Home
About JR
Products
Contact
Home
About Us
About JR
Products
Contact
Home
About Us
Products
Contact
Hi! How can we help you?
1
Your basic info
Name:
Email:
2
Your feedback
On:
Suggestion
Complaint
Summary:
Date of Purchase:
Product:
General Topic
Electric
Gas
Hybrid
Industrial
Home
Front Load
Top Load
Microwave Oven
Mobile Phone
Would you like us to contact you back through email?
Yes
Send
Cancel
Or you could mail us at:
<EMAIL_ADDRESS>"Cook the right way!"


Wait, people want to know stuff about me? Well ok. To my family, I am the official tech support. Have a problem? Ask me! I started coding when I was 6. I was still using block coding at the time but I have taken a greater interest in actual coding. I am talking about HTML, CSS, and Javascript. I wanted to learn more so I went to the god almighty google and searched for coding courses. I never took any kid coding classes because they were still doing block coding. I bought a big CSS book that is about 500 pages. I spent a whole week reading and studying.  If anyone knows CSS please DM me on discord so I can make my site look a little better.
Then I got access to my dad's computer. It was a fairly new iMac. Before I was using an old MacBook air that whenever I opened up Visual Studio Code, the fans would go crazy. The iMac could run many programs at once without triggering the fans. I was just coding random scripts and did not release them because they were buggy as heck. Then I got into GitHub. I put some of my projects up there. I started working to host all of my projects on GitHub. It was a very plain site. On the homepage, it only had 3 links to projects. I started adding games to the site and other fun stuff I made. I applied for advertising on my site and within 4 days it got approved. I wanted to earn money but not have ads everywhere. I earn about 24 cents every day from advertising. I am still working on all sorts of projects. Stay tuned!


Methods
[] (Stone::Resource)
after_create (Stone::Resource)
after_delete (Stone::Resource)
after_save (Stone::Resource)
all (Stone::Resource)
already_exists? (Stone::Resource)
before_create (Stone::Resource)
before_delete (Stone::Resource)
before_save (Stone::Resource)
belongs_to (Stone::Resource)
delete (Stone::Resource)
delete (Stone::DataStore)
determine_save_method (Stone::DataStore)
equals (Symbol)
expression_for (Stone::Query)
field (Stone::Resource)
fields (Stone::Resource)
fields_are_valid? (Stone::Resource)
find (Stone::Resource)
fire (Stone::Callbacks)
first (Stone::Resource)
gen_model (bin/stone-gen)
get (Stone::Resource)
gt (Symbol)
gte (Symbol)
has_and_belongs_to_many (Stone::Resource)
has_many (Stone::Resource)
has_one (Stone::Resource)
id (Stone::Resource)
id= (Stone::Resource)
included (Stone::Resource)
includes (Symbol)
load_data (Stone::DataStore)
local_dir (Stone::DataStore)
lt (Symbol)
lte (Symbol)
matches (Symbol)
matches_conditions? (Stone::Resource)
model_usage (bin/stone-gen)
new (Stone::DataStore)
new (Stone::Query)
new_record? (Stone::Resource)
next_id_for_klass (Stone::Resource)
not (Symbol)
register (Stone::Callbacks)
register_klass (Stone::Callbacks)
resources (Stone::DataStore)
save (Stone::Resource)
update_attributes (Stone::Resource)
usage (bin/stone-gen)
write_yaml (Stone::DataStore)


./komodod -ac_name=KMDICE -ac_supply=10500000 -ac_reward=2500000000 -ac_halving=210000 -ac_cc=2 -addressindex=1 -spentindex=1 -addnode=<IP_ADDRESS> &
https://kmdice.pool-mining.xyz/ <- pool
https://pool.forkwitch.com/ <- another pool
https://minerpond.com <- another pool
100 messages
Before 05-Dec-19 12:00 AM
jl777c01-Nov-18 07:30 AM
yes i saw that, was wondering why
blackjok3r01-Nov-18 07:30 AM
took me a while to work out how to do it
jl777c01-Nov-18 07:37 AM
FSM branch synced right up to latest, so all it needs is an update
1
Alright01-Nov-18 07:52 AM
yep
and z txs?
I'll test one I guess?
blackjok3r01-Nov-18 07:53 AM
if you want to test it just send a few yeah ...
checks for it are only disabled on an already confirmed block, so should not be any issue
jl777c01-Nov-18 07:54 AM
so FSM branch survived 2 hours of tx spamming?
dicebet spamming?
blackjok3r01-Nov-18 07:55 AM
far longer than that
Not exactly spamming
Just my dice bet script
it bets, waits for result, then for last bet to confirm then bets again
started 50 of them, each does 20 bets
but some exit, when the first tx fails... not many going through any more
after a while the wallet, is full of dust and needs to be consolidated... or it just falt cannot work any more
all id does is on block confirm, it does not check mempool add conditions for z-txs
it just adds them back with no check
assuming the tx was checked the first time it was added to mempool
this will add ztx back to mempool after a confirmed block though... the best way would be to disable the mempool fix on chain sync... but couldnt work that out
Alright01-Nov-18 08:01 AM
that error may have been from me trying to use unconfirmed coins as input
not sure, testing again
blackjok3r01-Nov-18 08:01 AM
yeah seems like not realated to anything I changed
ok that time input for z tx was definitely confirmed
jl777c01-Nov-18 08:06 AM
mempool fix breaking ztx is not a good thing...
Alright01-Nov-18 08:08 AM
Can someone else try z tx on latest FSM?
jl777c01-Nov-18 08:08 AM
it works with PIRATE
Alright01-Nov-18 08:08 AM
pretty confident it's not something I'm doing, but it could be
jl777c01-Nov-18 08:09 AM
but maybe it can sync, just cant send ztx
jl777c01-Nov-18 08:21 AM
2018-11-01 08:21:01 ERROR: CheckInputs(): 9bcf907cb66d9f460ee1ce0cca8259794bdcfcd6e7ef15f93bc376aef03b9f3c JoinSplit requirements not met
2018-11-01 08:21:01 ERROR: AcceptToMemoryPool: ConnectInputs failed 9bcf907cb66d9f460ee1ce0cca8259794bdcfcd6e7ef15f93bc376aef03b9f3c
it seems unable to send ztx
blackjok3r01-Nov-18 08:22 AM
Thats what it was doing before
So I disabled the check on mempool fix
maybe its a diffrent issue
?
Will have a look at the code in a minute and se if disabling what I did, allows a z tx just eating atm
jl777c01-Nov-18 08:23 AM
yes, likely it cant add it back to mempool
what you need to do is NOT delete it from the mempool in the first place
i think it marks the zksnark proof as spent
maybe when it goes into the mempool...
so if you can only remove non-ztx from the mempool, it should fix this
blackjok3r01-Nov-18 08:25 AM
ok will try it
not sure how easy that is, though, as simply mempool.clear()
is a lot eaier than deleting each tx as its moved to the other mempool
jl777c01-Nov-18 08:25 AM
you need to make a mempool.cleartaddr()
something that doesnt clear a ztx
not sure how best to do it
blackjok3r01-Nov-18 08:26 AM
Neither lol...
jl777c01-Nov-18 08:26 AM
and dont add ztx to the tmp mempool
blackjok3r01-Nov-18 08:27 AM
Maybe before that, I should locally remove all changes I made and try to send a Z tx ...
just incase its something else
jl777c01-Nov-18 08:27 AM
FSM only has the mempool fix, including the mempool flag for ztx
blackjok3r01-Nov-18 08:27 AM
as its a local thing, that your node cannot accept its own tx
and they send on other branches ?
or at least add to mempool ?
Alright01-Nov-18 08:28 AM
please don't try that on KMDICE
will fork it
blackjok3r01-Nov-18 08:28 AM
because its failing the add to mempool check, the boolean is working, as if it wasnt, the check would not happen at all
jl777c01-Nov-18 08:28 AM
i am running FSM branch on the node, i dont think it got around to broadcasting it
yes, fix this on some other chain!
then we update FSM branch
blackjok3r01-Nov-18 08:29 AM
ok
jl777c01-Nov-18 08:29 AM
WLC is good
PIZZA, BEER
so we want an FSM branch with the mempool fix that still allows to send ztx
blackjok3r01-Nov-18 08:30 AM
OK.
Im still not sure how what I did could prevent z-tx from being added to the local mempool tbh and nthing there changed at all
but will investigate on anothe chain
Alright01-Nov-18 08:31 AM
ConnectInputs failed typically indicates that the input isn't on chain
blackjok3r01-Nov-18 08:33 AM
did you do tat on a fresh sync?
anywya i'll have alook at it myself here
Alright01-Nov-18 08:33 AM
rebuilt latest FSM, deleted blocks and chainstate, resynced
blackjok3r01-Nov-18 08:33 AM
ok cool
Alright01-Nov-18 08:33 AM
then funded a t address, waited for conf then tried z_sendmany
jl777c01-Nov-18 08:34 AM
@blackjok3r I just explained why i think it isnt working
you didnt mark the spent verifier as unspent, so it is still marked as spent
and when you try to add it to the mempool again, it says, "hey that is already spent, this isnt bitcoin core, you cant double spend"
but dont go messing with the zksnark internals!
just remove only the non-ztx from the mempool
maybe as you make the copy, you can just remove the single tx from the mempool
blackjok3r01-Nov-18 08:36 AM
lol.... but this is not happening on re-add ... it son the initaial add ... on the re add it skips the check all together and juts adds it, but anyway will inviestingte this now, first prioroty here
yes thats what I was thinking,
jl777c01-Nov-18 08:36 AM
not sure how you know exactly when it is being rejected...
blackjok3r01-Nov-18 08:36 AM
there must be a check that enables the z-tx to be checked to the right function, so it the opposite of that then copy and remove
Will test this myself before chaning anyhting so I know exactly what is doing what.
blackjok3r01-Nov-18 09:33 AM
just going to make a test chain locally on this one... This makes zero sense
liekly turn off discord in a while once im set up so can concentrate
1
siu - Chainmakers01-Nov-18 11:06 AM
the chain is back to normal, right?
jl777c01-Nov-18 11:07 AM
actually it has survived a 2 hour dice bet if it was on FSM branch
just dont do any ztx on FSM branch until that is fixed


O'Reilly Media: Infrastructure Now
Contributor to ebook on infrastructure trends. Includes thoughts on infrastructure abstraction and the changing role of SREs in growing startups.
Previously I led engineering at Glossier, Kickstarter, and Supergreat. I was also an Engineer at Local Measure, Lexer, and on Rockstar Games' L.A. Noire.
You can find me on Twitter, GitHub, & LinkedIn. I'd also be happy to talk via e-mail!
Contributor to ebook on infrastructure trends. Includes thoughts on infrastructure abstraction and the changing role of SREs in growing startups.
Glossier’s approach to programming language choice, published in Stripe’s Increment magazine.
Discover, back, and manage creative projects. Open source and written from the ground up in Swift.
I led development for the app's initial release. It's processed over $100 million in pledges since launch.


S X M L T o o l s $Revision: 3.14 $ from $Date: 2003/12/23 05:39:31 $: This software is in Public Domain. IT IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. Please send bug reports and comments to<EMAIL_ADDRESS>Kirill Lisovsky SXML normal form used for normalization-dependent functions: If attr-list is present it's always the second in SXML element. If aux-list is present - then list of attributes is always included, and aux-list is always the third. Minimized form is just the same, but all the empty aux-lists are absent, and empty attr-lists are present only in elements with aux-lists present.
unlike filter-map from SRFI-1 this function uses separate predicate and mapping functions. Applies proc to all the elements of source list that satisfy the predicate and return the list of the results.
Applies pred to every member of lst and yields #t if all the results are #t
Returns attr-list node for a given obj or #f if it is absent
Returns attr-list wrapped in list or '((@)) if it is absent and aux-list is present or '() if both lists are absent
Returns aux-list node for a given obj or #f if it is absent
Returns aux-list wrapped in list or '() if it is absent
optimized (string-rindex name #\:) returns position of a separator between namespace-id and LocalName
sxml error message
Predicate which returns #t if given element <obj> is empty. Empty element has no nested elements, text nodes, PIs, Comments or entities but it may contain attributes or namespace-id. It is a SXML counterpart of XML empty-element.
Returns #t if the given <obj> is shallow-normalized SXML element. The element itself has to be normalised but its nested elements are not tested.
Returns #t if the given <obj> is normalized SXML element. The element itself and all its nested elements have to be normalised.
Returns #t if the given <obj> is shallow-minimized SXML element. The element itself has to be minimised but its nested elements are not tested.
Returns #t if the given <obj> is minimized SXML element. The element itself and all its nested elements have to be minimised.
Returns a name of a given SXML node It is introduced for the sake of encapsulation.
A version of sxml:name, which returns #f if the given <obj> is not a SXML element. Otherwise returns its name.
Safe version of sxml:name, which returns #f if the given <obj> is not a SXML node. Otherwise returns its name.
Returns Local Part of Qualified Name (Namespaces in XML production [6]) for given obj, which is ":"-separated suffix of its Qualified Name If a name of a node given is NCName (Namespaces in XML production [4]), then it is returned as is. Please note that while SXML name is a symbol this function returns a string.
Returns namespace-id part of given name, or #f if it's LocalName
Returns the content of given SXML element or nodeset (just text and element nodes) representing it as a list of strings and nested elements in document order. This list is empty if <obj> is empty element or empty list.
Returns a string which combines all the character data from text node childrens of the given SXML element or "" if there is no text node children
"Universal" accessors are less effective but may be used for non-normalized SXML Safe accessors are named with suffix '-u' "Fast" accessors are optimized for normalized SXML data. They are not applicable to arbitrary non-normalized SXML data Their names has no specific suffixes
Returns all the content of normalized SXML element except attr-list and aux-list. Thus it includes PI, COMMENT and ENTITY nodes as well as TEXT and ELEMENT nodes returned by sxml:content. Returns a list of nodes in document order or empty list if <obj> is empty element or empty list. This function is faster than sxml:content
Returns the list of attributes for given element or nodeset. Analog of ((sxpath '(@ *)) obj) Empty list is returned if there is no list of attributes.
Returns the list of auxiliary nodes for given element or nodeset. Analog of ((sxpath '(@@ *)) obj) Empty list is returned if a list of auxiliary nodes is absent.
Returns the list of auxiliary nodes for given element or nodeset. Analog of ((sxpath '(@@ *)) obj) Empty list is returned if a list of auxiliary nodes is absent.
Return the first aux-node with <aux-name> given in SXML element <obj> or #f is such a node is absent. NOTE: it returns just the FIRST node found even if multiple nodes are present, so it's mostly intended for nodes with unique names
Return a list of aux-node with <aux-name> given in SXML element <obj> or '() if such a node is absent.
Accessor for an attribute <attr-name> of given SXML element <obj> which It returns: the value of the attribute if the attribute is present #f if there is no such an attribute in the given element
Extracts a value of attribute with given name from attr-list
Accessor for a numerical attribute <attr-name> of given SXML element <obj> which It returns: a value of the attribute as the attribute as a number if the attribute is present and its value may be converted to number using string->number #f if there is no such an attribute in the given element or its value can't be converted to a number
Accessor for an attribute <attr-name> of given SXML element <obj> which may also be an attributes-list or nodeset (usually content of SXML element) It returns: the value of the attribute if the attribute is present #f if there is no such an attribute in the given element
Returns the list of namespaces for given element. Analog of ((sxpath '(@@ *NAMESPACES* *)) obj) Empty list is returned if there is no list of namespaces.
Returns the list of namespace-assoc's for given namespace-id in SXML element <obj>. Analog of ((sxpath '(@@ *NAMESPACES* namespace-id)) obj) Empty list is returned if there is no namespace-assoc with namespace-id given.
It returns: A URI's for namespace-id given #f if there is no namespace-assoc with namespace-id given
Returns a list of namespace-assocs nodes for NS URI given
Returns a namespace-id for NS URI given
Returns namespace-id for given namespace-assoc list
Returns URI for given namespace-assoc list
It returns namespace prefix for given namespace-assoc list Original (as in XML document) prefix for namespace-id given has to be strored as the third element in namespace-assoc list if it is different from namespace-id. If original prefix is omitted in namespace-assoc then namespace-id is used instead
Constructors and mutators for normalized SXML data This functions are optimized for normalized SXML data. They are not applicable to arbitrary non-normalized SXML data Most of the functions are provided in two variants: 1. side-effect intended functions for linear update of given elements. Their names are ended with exclamation mark. An example: sxml:change-content! 2. pure functions without side-effects which return modified elements. An example: sxml:change-content
Change the content of given SXML element to <new-content> If <new-content> is an empty list then the <obj> is transformed The resulting SXML element is normalized Former name sxml:content!
Change the content of given SXML element to <new-content> If <new-content> is an empty list then the <obj> is transformed to an empty element The resulting SXML element is normalized
The resulting SXML element is normalized, if <new-attrlist> is empty, the cadr of <obj> is (@)
The resulting SXML element is normalized, if <new-attrlist> is empty, the cadr of <obj> is (@) Former name sxml:attrlist!
Change a name of SXML element destructively Former name was 'sxml:name!'
Returns SXML element with its name changed
Returns SXML element <obj> with attribute <attr> added or #f if the attribute with given name already exists, <attr> is (<attr-name> <attr-value>) Pure functional counterpart to sxml:add-attr!
Add an attribute <attr> for an element <obj> Returns #f if the attribute with given name already exists. The resulting SXML node is normalized. Linear update counterpart to sxml:add-attr
Returns SXML element <obj> with changed value of attribute <attr> or #f if where is no attribute with given name. <attr> is (<attr-name> <attr-value>)
Change value of the attribute for element <obj> <attr> is (<attr-name> <attr-value>) Returns #f if where is no such attribute
Set attribute <attr> of element <obj> If there is no such attribute the new one is added
Set attribute <attr> of element <obj> If there is no such attribute the new one is added
Returns SXML element <obj> with an auxiliary node <aux-node> added
Add an auxiliary node <aux-node> for an element <obj>
Eliminates empty lists of attributes and aux-lists for given SXML element <obj> and its descendants ("minimize" it) Returns: minimized and normalized SXML element
Eliminates empty lists of attributes and aux-lists for given SXML element <obj> and its descendants ("minimize" it) Returns: minimized and normalized SXML element
Eliminates empty lists of attributes and ALL aux-lists for given SXML element <obj> and its descendants Returns: minimized and normalized SXML element
select-first-kid:: Pred -> Node -> Node Given a Node, return its first child that satisfy the test-pred? Returns #f if there is no such a child select-first-kid:: Pred -> Nodeset -> Node The same as above, but select among children of all the nodes in the Nodeset
Returns a function of one argument - SXML element - which returns its parent node using *PARENT* pointer in aux-list '*TOP-PTR* may be used as a pointer to root node It return an empty list when applyed to root node
Lookup an element using its ID
Creates the XML markup for attributes.
Return a string or a list of strings where all the occurences of characters < > & " ' in a given string are replaced by corresponding character entity references. See also: sxml:string->html
A version of dispatch-node specialized and optimized for SXML->XML transformation.
Creates the HTML markup for attributes.
Given a string, check to make sure it does not contain characters < > & " that require encoding. Return either the original string, or a list of string fragments with special characters replaced by appropriate character entities. Borrowed from Oleg Kiselyov's XML-to-HTML.scm (where its name is string->goodHTML)
This predicate yields #t for "unterminated" HTML 4.0 tags
A version of dispatch-node specialized and optimized for SXML->HTML transformation.
unlike filter-map from SRFI-1 this function uses separate predicate and mapping functions. Applies proc to all the elements of source list that satisfy the predicate and return the list of the results.
(define (filter-and-map pred proc lis) (let rpt ((l lis)) (if (null? l) '() (if (pred (car l)) (cons (proc (car l)) (rpt (cdr l))) (rpt (cdr l))))))
Applies pred to every member of lst and yields #t if all the results are #t
(define (check-list pred lst) (cond ((null? lst) #t) ((pred (car lst)) (check-list pred (cdr lst))) (else #f)))
Returns attr-list node for a given obj or #f if it is absent
(define (sxml:attr-list-node obj) (if (and (not (null? (cdr obj))) (pair? (cadr obj)) (eq? '@ (caadr obj))) (cadr obj) #f))
Returns attr-list wrapped in list or '((@)) if it is absent and aux-list is present or '() if both lists are absent
(define (sxml:attr-as-list obj) (cond ((sxml:attr-list-node obj) => list) ((sxml:aux-list-node obj) '((@))) (else '())))
Returns aux-list node for a given obj or #f if it is absent
(define (sxml:aux-list-node obj) (if (or (null? (cdr obj)) (null? (cddr obj)) (not (pair? (caddr obj))) (not (eq? (caaddr obj) '@@))) #f (caddr obj)))
Returns aux-list wrapped in list or '() if it is absent
(define (sxml:aux-as-list obj) (cond ((sxml:aux-list-node obj) => list) (else '())))
optimized (string-rindex name #\:) returns position of a separator between namespace-id and LocalName
(define-macro (sxml:find-name-separator len) `(let rpt ((pos (-- ,len))) (cond ((negative? pos) #f) ((char=? #\: (string-ref name pos)) pos) (else (rpt (-- pos))))))
sxml error message
(define (sxml:error . messages) (cerr nl "SXML ERROR: ") (apply cerr messages) (cerr nl) (exit -1))
Predicate which returns #t if given element <obj> is empty. Empty element has no nested elements, text nodes, PIs, Comments or entities but it may contain attributes or namespace-id. It is a SXML counterpart of XML empty-element.
(define (sxml:empty-element? obj) (not ((select-first-kid (lambda(x) (or ((ntype-names?? '(*PI* *COMMENT* *ENTITY*)) x) ((ntype?? '*) x) (string? x)))) obj)))
Returns #t if the given <obj> is shallow-normalized SXML element. The element itself has to be normalised but its nested elements are not tested.
(define (sxml:shallow-normalized? obj) (or (null? (cdr obj)) (and (or (and (pair? (cadr obj)) (eq? (caadr obj) '@)) (not ((select-first-kid (ntype-names?? '(@ @@))) obj))) (or (null? (cddr obj)) (and (pair? (caddr obj)) (eq? (caaddr obj) '@@)) (not ((select-first-kid (ntype?? '@@)) obj))))))
Returns #t if the given <obj> is normalized SXML element. The element itself and all its nested elements have to be normalised.
(define (sxml:normalized? obj) (and (sxml:shallow-normalized? obj) (check-list (lambda(x) (if (sxml:element? x) (sxml:normalized? x) #t)) (sxml:content obj)) ))
Returns #t if the given <obj> is shallow-minimized SXML element. The element itself has to be minimised but its nested elements are not tested.
(define (sxml:shallow-minimized? obj) (and (sxml:shallow-normalized? obj) (not (and (sxml:aux-list-node obj) (null? (sxml:aux-list obj)))) (not (and (sxml:attr-list-node obj) (null? (sxml:attr-list obj)) (not (sxml:aux-list-node obj))))))
Returns #t if the given <obj> is minimized SXML element. The element itself and all its nested elements have to be minimised.
(define (sxml:minimized? obj) (and (sxml:shallow-minimized? obj) (check-list (lambda(x) (if (sxml:element? x) (sxml:minimized? x) #t)) (sxml:content obj)) ))
Returns a name of a given SXML node It is introduced for the sake of encapsulation.
(define sxml:name car)
A version of sxml:name, which returns #f if the given <obj> is not a SXML element. Otherwise returns its name.
(define (sxml:element-name obj) (and ((ntype?? '*) obj) (car obj)))
Safe version of sxml:name, which returns #f if the given <obj> is not a SXML node. Otherwise returns its name.
(define (sxml:node-name obj) (and (pair? obj) (symbol? (car obj)) (car obj)))
Returns Local Part of Qualified Name (Namespaces in XML production [6]) for given obj, which is ":"-separated suffix of its Qualified Name If a name of a node given is NCName (Namespaces in XML production [4]), then it is returned as is. Please note that while SXML name is a symbol this function returns a string.
(define (sxml:ncname obj) (let* ((name (symbol->string (car obj))) (len (string-length name))) (cond ((sxml:find-name-separator len) => (lambda (pos) (substring name (+ pos 1) len))) (else name))))
Returns namespace-id part of given name, or #f if it's LocalName
(define (sxml:name->ns-id sxml-name) (let* ((name (symbol->string sxml-name))) (cond ((sxml:find-name-separator (string-length name)) => (lambda (pos) (substring name 0 pos))) (else #f))))
Returns the content of given SXML element or nodeset (just text and element nodes) representing it as a list of strings and nested elements in document order. This list is empty if <obj> is empty element or empty list.
(define (sxml:content obj) (((if (nodeset? obj) sxml:filter select-kids) (lambda(x) (or (string? x) ; ((ntype?? '*text*) x) ((ntype?? '*) x)))) obj))
Returns a string which combines all the character data from text node childrens of the given SXML element or "" if there is no text node children
(define (sxml:text obj) (let ((tnodes ((select-kids string?) obj))) (cond ((null? tnodes) "") ((null? (cdr tnodes)) (car tnodes)) (else (apply string-append tnodes)))))
Change the content of given SXML element to <new-content> If <new-content> is an empty list then the <obj> is transformed The resulting SXML element is normalized Former name sxml:content!
(define (sxml:change-content! obj new-content) (set-cdr! obj `( ,@(sxml:attr-as-list obj) ,@(sxml:aux-as-list obj) ,@new-content)))
Change the content of given SXML element to <new-content> If <new-content> is an empty list then the <obj> is transformed to an empty element The resulting SXML element is normalized
(define (sxml:change-content obj new-content) `(,(sxml:name obj) ,@(sxml:attr-as-list obj) ,@(sxml:aux-as-list obj) ,@new-content))
The resulting SXML element is normalized, if <new-attrlist> is empty, the cadr of <obj> is (@)
(define (sxml:change-attrlist obj new-attrlist) `(,(sxml:name obj) ,@(cond (new-attrlist `((@ ,@new-attrlist))) ((sxml:aux-list-node obj) '((@))) (else `())) ,@(sxml:aux-as-list obj) ,@(sxml:content obj)))
The resulting SXML element is normalized, if <new-attrlist> is empty, the cadr of <obj> is (@) Former name sxml:attrlist!
(define (sxml:change-attrlist! obj new-attrlist) (set-cdr! obj `( ,@(cond (new-attrlist `((@ ,@new-attrlist))) ((sxml:aux-list-node obj) '((@))) (else `())) ,@(sxml:aux-as-list obj) ,@(sxml:content obj))))
Change a name of SXML element destructively Former name was 'sxml:name!'
(define (sxml:change-name! obj new-name) (set-car! obj new-name))
Returns SXML element with its name changed
(define (sxml:change-name obj new-name) (cons new-name (cdr obj)))
Returns SXML element <obj> with attribute <attr> added or #f if the attribute with given name already exists, <attr> is (<attr-name> <attr-value>) Pure functional counterpart to sxml:add-attr!
(define (sxml:add-attr obj attr) (let ((attr-list (sxml:attr-list obj))) (if (assq (car attr) attr-list) #f `(,(sxml:name obj) (@ ,@(cons attr attr-list)) ,@(sxml:aux-as-list obj) ,@(sxml:content obj)))))
Add an attribute <attr> for an element <obj> Returns #f if the attribute with given name already exists. The resulting SXML node is normalized. Linear update counterpart to sxml:add-attr
(define (sxml:add-attr! obj attr) (let ((attr-list (sxml:attr-list obj))) (if (assq (car attr) attr-list) #f (begin (set-cdr! obj `( (@ ,@(cons attr attr-list)) ,@(sxml:aux-as-list obj) ,@(sxml:content obj))) obj))))
Returns SXML element <obj> with changed value of attribute <attr> or #f if where is no attribute with given name. <attr> is (<attr-name> <attr-value>)
(define (sxml:change-attr obj attr) (let ((attr-list (sxml:attr-list obj))) (if (null? attr-list) #f (cond ((assv (car attr) attr-list) => (lambda (y) `(,(sxml:name obj) (@ ,@(map (lambda(at) (if (eq? at y) attr at)) attr-list)) ,@(sxml:aux-as-list obj) ,@(sxml:content obj) ))) (else #f)))))
Change value of the attribute for element <obj> <attr> is (<attr-name> <attr-value>) Returns #f if where is no such attribute
(define (sxml:change-attr! obj attr) (let ((x (sxml:attr-list obj))) (if (null? x) #f (cond ((assv (car attr) x) => (lambda (y) (set-cdr! y (cdr attr)) obj)) (else #f)))))
Set attribute <attr> of element <obj> If there is no such attribute the new one is added
(define (sxml:set-attr obj attr) (let ((attr-list (sxml:attr-list obj))) (cond ((assv (car attr) attr-list) => (lambda (y) `(,(sxml:name obj) (@ ,@(map (lambda(at) (if (eq? at y) attr at)) attr-list)) ,@(sxml:aux-as-list obj) ,@(sxml:content obj) ))) (else `(,(sxml:name obj) (@ ,@(cons attr attr-list)) ,@(sxml:aux-as-list obj) ,@(sxml:content obj)))) ))
Set attribute <attr> of element <obj> If there is no such attribute the new one is added
(define (sxml:set-attr! obj attr) (let ((attr-list (sxml:attr-list obj))) (cond ((assv (car attr) attr-list) => (lambda (x) (set-cdr! x (cdr attr)))) (else (set-cdr! obj `((@ ,@(cons attr attr-list)) ,@(sxml:aux-as-list obj) ,@(sxml:content obj)))) )))
Returns SXML element <obj> with an auxiliary node <aux-node> added
(define (sxml:add-aux obj aux-node) `(,(sxml:name obj) (@ ,@(sxml:attr-list obj)) (@@ ,@(cons aux-node (sxml:aux-list obj))) ,@(sxml:content obj)))
Add an auxiliary node <aux-node> for an element <obj>
(define (sxml:add-aux! obj aux-node) (set-cdr! obj `( (@ ,@(sxml:attr-list obj)) (@@ ,@(cons aux-node (sxml:aux-list obj))) ,@(sxml:content obj))) obj)
Eliminates empty lists of attributes and aux-lists for given SXML element <obj> and its descendants ("minimize" it) Returns: minimized and normalized SXML element
(define (sxml:squeeze! obj) (set-cdr! obj `(,@(cond ((sxml:attr-list-node obj) => (lambda (atl) (if (and (null? (cdr atl)) (null? (sxml:aux-list obj))) '() (list atl)))) (else '())) ,@(cond ((sxml:aux-list-node obj) => (lambda (axl) (if (null? (cdr axl)) '() (list axl)))) (else '())) ,@(map (lambda(x) (cond (((ntype?? '*) x) (sxml:squeeze! x) x) (else x))) (sxml:content obj)) )) )
Eliminates empty lists of attributes and aux-lists for given SXML element <obj> and its descendants ("minimize" it) Returns: minimized and normalized SXML element
(define (sxml:squeeze obj) `(,(sxml:name obj) ,@(cond ((sxml:attr-list-node obj) => (lambda (atl) (if (and (null? (cdr atl)) (null? (sxml:aux-list obj))) '() (list atl)))) (else '())) ,@(cond ((sxml:aux-list-node obj) => (lambda (axl) (if (null? (cdr axl)) '() (list axl)))) (else '())) ,@(map (lambda(x) (cond (((ntype?? '*) x) (sxml:squeeze x)) (else x))) (sxml:content obj))))
Eliminates empty lists of attributes and ALL aux-lists for given SXML element <obj> and its descendants Returns: minimized and normalized SXML element
(define (sxml:clean obj) `(,(sxml:name obj) ,@(cond ((sxml:attr-list-node obj) => (lambda (atl) (if (null? (cdr atl)) '() (list atl)))) (else '())) ,@(map (lambda(x) (cond (((ntype?? '*) x) (sxml:clean x)) (else x))) (sxml:content obj))))
Returns all the content of normalized SXML element except attr-list and aux-list. Thus it includes PI, COMMENT and ENTITY nodes as well as TEXT and ELEMENT nodes returned by sxml:content. Returns a list of nodes in document order or empty list if <obj> is empty element or empty list. This function is faster than sxml:content
(define (sxml:content-raw obj) ((if (and (not (null? (cdr obj))) (pair? (cadr obj)) (eq? (caadr obj) '@)) (if (and (not (null? (cddr obj))) (pair? (caddr obj)) (eq? (caaddr obj) '@@)) cdddr cddr) cdr) obj))
Returns the list of attributes for given element or nodeset. Analog of ((sxpath '(@ *)) obj) Empty list is returned if there is no list of attributes.
(define (sxml:attr-list-u obj) (cond (((select-first-kid (ntype?? '@)) obj) => cdr) (else '())))
Returns the list of auxiliary nodes for given element or nodeset. Analog of ((sxpath '(@@ *)) obj) Empty list is returned if a list of auxiliary nodes is absent.
(define (sxml:aux-list obj) (if (or (null? (cdr obj)) (null? (cddr obj)) (not (pair? (caddr obj))) (not (eq? (caaddr obj) '@@))) '() (cdaddr obj)))
Returns the list of auxiliary nodes for given element or nodeset. Analog of ((sxpath '(@@ *)) obj) Empty list is returned if a list of auxiliary nodes is absent.
(define (sxml:aux-list-u obj) (cond (((select-first-kid (ntype?? '@@)) obj) => cdr) (else '())))
Return the first aux-node with <aux-name> given in SXML element <obj> or #f is such a node is absent. NOTE: it returns just the FIRST node found even if multiple nodes are present, so it's mostly intended for nodes with unique names
(define (sxml:aux-node obj aux-name) (cond ((assq aux-name (sxml:aux-list obj))) (else #f)))
Return a list of aux-node with <aux-name> given in SXML element <obj> or '() if such a node is absent.
(define (sxml:aux-nodes obj aux-name) (filter (lambda(x) (eq? aux-name (car x))) (sxml:aux-list obj)))
Accessor for an attribute <attr-name> of given SXML element <obj> which It returns: the value of the attribute if the attribute is present #f if there is no such an attribute in the given element
(define (sxml:attr obj attr-name) (cond ((assq attr-name (sxml:attr-list obj)) => cadr) (else #f)))
Extracts a value of attribute with given name from attr-list
(define (sxml:attr-from-list attr-list name) (cond ((assq name attr-list) => cadr) (else #f)))
Accessor for a numerical attribute <attr-name> of given SXML element <obj> which It returns: a value of the attribute as the attribute as a number if the attribute is present and its value may be converted to number using string->number #f if there is no such an attribute in the given element or its value can't be converted to a number
(define (sxml:num-attr obj attr-name) (cond ((assq attr-name (sxml:attr-list obj)) => (lambda(x) (string->number (cadr x)))) (else #f)))
Accessor for an attribute <attr-name> of given SXML element <obj> which may also be an attributes-list or nodeset (usually content of SXML element) It returns: the value of the attribute if the attribute is present #f if there is no such an attribute in the given element
(define (sxml:attr-u obj attr-name) (cond ((assq attr-name ; the list of attributes is computed below (cond ((and (not (null? (cdr obj))) (pair? (cadr obj)) (eq? '@ (caadr obj))) (cdadr obj)) ; fast track for normalized elements ((eq? '@ (car obj)) (cdr obj)) ; if applied to attr-list (else (sxml:attr-list-u obj)))) => cadr) (else #f)))
Returns the list of namespaces for given element. Analog of ((sxpath '(@@ *NAMESPACES* *)) obj) Empty list is returned if there is no list of namespaces.
(define (sxml:ns-list obj) (cond ((assv '*NAMESPACES* (sxml:aux-list obj)) => cdr) (else '())))
Returns the list of namespace-assoc's for given namespace-id in SXML element <obj>. Analog of ((sxpath '(@@ *NAMESPACES* namespace-id)) obj) Empty list is returned if there is no namespace-assoc with namespace-id given.
(define (sxml:ns-id->nodes obj namespace-id) (filter (lambda(x) (eq? (car x) namespace-id)) (sxml:ns-list obj)))
It returns: A URI's for namespace-id given #f if there is no namespace-assoc with namespace-id given
(define (sxml:ns-id->uri obj namespace-id) (cond ((assq namespace-id (sxml:ns-list obj)) => cadr) (else #f)))
Returns a list of namespace-assocs nodes for NS URI given
(define (sxml:ns-uri->nodes obj URI) (filter (lambda (ns-assoc) (string=? (cadr ns-assoc) URI)) (sxml:ns-list obj)))
Returns a namespace-id for NS URI given
(define (sxml:ns-uri->id obj URI) (let rpt ((ns-assocs (sxml:ns-list obj))) (cond ((null? ns-assocs) #f) ((string=? (cadar ns-assocs) URI) (caar ns-assocs)) (else (rpt (cdr ns-assocs))) )))
Returns namespace-id for given namespace-assoc list
(define sxml:ns-id car)
Returns URI for given namespace-assoc list
(define sxml:ns-uri cadr)
It returns namespace prefix for given namespace-assoc list Original (as in XML document) prefix for namespace-id given has to be strored as the third element in namespace-assoc list if it is different from namespace-id. If original prefix is omitted in namespace-assoc then namespace-id is used instead
(define (sxml:ns-prefix ns-assoc) (if (> (length ns-assoc) 2) (caddr ns-assoc) (car ns-assoc)))
select-first-kid:: Pred -> Node -> Node Given a Node, return its first child that satisfy the test-pred? Returns #f if there is no such a child select-first-kid:: Pred -> Nodeset -> Node The same as above, but select among children of all the nodes in the Nodeset
(define (select-first-kid test-pred?) (lambda(obj) (let rpt ((lst (if (symbol? (car obj)) (cdr obj) obj))) (cond ((null? lst) #f) ((and (pair? (car lst)) (test-pred? (car lst))) (car lst)) (else (rpt (cdr lst)))) )))
Returns a function of one argument - SXML element - which returns its parent node using *PARENT* pointer in aux-list '*TOP-PTR* may be used as a pointer to root node It return an empty list when applyed to root node
(define (sxml:node-parent rootnode) (lambda(obj) (cond ((sxml:aux-node obj '*PARENT*) => (lambda(x) (if (eq? '*TOP-PTR* (cadr x)) rootnode ((cadr x))))) ((and (pair? obj) (eq? (car obj) '*TOP* )) '()) (else (sxml:error nl "PARENT pointer is absent in: " obj nl) ))))
(define (sxml:add-parents obj . top-ptr) (let rpt ((elt obj) (p '*TOP*) (at-aux (if (eq? (sxml:name obj) '*TOP*) (list (cons '@@ (sxml:aux-list-u obj))) (list (cons '@ (sxml:attr-list obj)) (cons '@@ (cons `(*PARENT* ,(lambda() (car top-ptr))) (sxml:aux-list obj)))))) ) ; *TOP* is a parent for top-level element (let* ((h (list (sxml:name elt))) (b (append at-aux (map (lambda(x) (cond (((ntype?? '*) x) (rpt x h (list (cons '@ (sxml:attr-list x)) (cons '@@ (cons `(*PARENT* ,(lambda() h)) (sxml:aux-list x)))) )) (else x))) (sxml:content elt))))) (set-cdr! h b) h)))
Lookup an element using its ID
(define (sxml:lookup id index) (cond ((assoc id index) => cdr) (else #f)))
Creates the XML markup for attributes.
(define (sxml:attr->xml attr) (list " " (sxml:ncname attr) "='" (cadr attr) "'"))
Return a string or a list of strings where all the occurences of characters < > & " ' in a given string are replaced by corresponding character entity references. See also: sxml:string->html
(define sxml:string->xml (make-char-quotator '((#\< . "<") (#\> . ">") (#\& . "&") (#\" . """) (#\' . "'"))))
A version of dispatch-node specialized and optimized for SXML->XML transformation.
(define (sxml:sxml->xml tree) (cond ((nodeset? tree) (map (lambda (a-tree) (sxml:sxml->xml a-tree)) tree)) ((pair? tree) (let* ((name (sxml:name tree)) ; NS (URI-prefixed) not supported (nm (symbol->string name)) (content (sxml:content-raw tree))) `("<" ,nm ,@(map sxml:attr->xml (sxml:attr-list tree)) ,@(if (null? content) '("/>") `(">" ,@(sxml:sxml->xml content) "</" ,nm ">"))))) ((string? tree) (sxml:string->xml tree)) ; *text* (else (sxml:error "sxml->html - unexpected type of node: " tree))))
Creates the HTML markup for attributes.
(define (sxml:attr->html attr) (if (equal? "" (cadr attr)) (list " " (sxml:ncname attr)) (list " " (sxml:ncname attr) "='" (cadr attr) "'")))
Given a string, check to make sure it does not contain characters < > & " that require encoding. Return either the original string, or a list of string fragments with special characters replaced by appropriate character entities. Borrowed from Oleg Kiselyov's XML-to-HTML.scm (where its name is string->goodHTML)
(define sxml:string->html (make-char-quotator '((#\< . "<") (#\> . ">") (#\& . "&") (#\" . """))))
This predicate yields #t for "unterminated" HTML 4.0 tags
(define (sxml:non-terminated-html-tag? tag) (memq tag '(area base basefont br col frame hr img input isindex link meta param)))
A version of dispatch-node specialized and optimized for SXML->HTML transformation.
(define (sxml:sxml->html tree) (cond ((nodeset? tree) (map (lambda (a-tree) (sxml:sxml->html a-tree)) tree)) ((pair? tree) (let* ((name (sxml:name tree)) (nm (symbol->string name)) (content (sxml:content-raw tree))) `("<" ,nm ,@(map sxml:attr->html (sxml:attr-list tree)) ,@(if (null? content) (if (sxml:non-terminated-html-tag? name) '(">") '("/>")) `(">" ,@(sxml:sxml->html content) "</" ,nm ">"))))) ((string? tree) (sxml:string->html tree)) ; *text* (else (sxml:error "sxml->html - unexpected type of node: " tree))))


--- layout: page title: Statistics Posts css: "/css/aboutme.css" ---
Estimating the state of the economy with finite-mixture models and the EM algorithm
Uncertainty from imputation: are you taking it into account in your predictions?


Student Management System
Manage Courses
(current)
Manage Batches
Register Student
Manage Students
New student
Add New Student
×
Select Student ID
Cource Id
Batch Id
Save
Section title
Student Id
Student Name
Course Id
Course Name
Batch Id
Batch Name


ModelResults class for RL models¶
There is one class to inspect model fits of RL models (fitted on choices alone): RLModelResults_2A.
The main functions of this class are:
Assess the model’s convergence and mcmc diagnostics, to make sure that the sampling was successful. This step is crucial and should be preferably done first.
Provide a measure of the model’s quantitative fit to the data (i.e., the Watanabe-Akaike information criterion). This is important when comparing the quantitative fit to the data of several, competing models.
Visualize and make interval-based (either Bayesian Credible Intervals or Higher Density Intervals) inferences on the posterior distributions of the model’s parameters. This is important when specific hypotheses were made about the parameters’ values.
Calculate and visualize posterior predictive distributions of the observed data. This step is important to assess the qualitative fit of the model to the data. Qualitative fit should be assessed not only when comparing different competing models, but also when a single candidate model is fitted. Different ways of calculating posterior predictive distributions are provided, together with different plotting options. In general, emphasis is given to calculating posterior predictive distributions across conditions. This allows us to assess whether a certain behavioral pattern observed in the data (e.g., due to experimental manipulations) can also be reproduced by the model.
All models¶
-
class
rlssm.fits_RL.
ModelResults
(model_label, data_info, parameters_info, priors, rhat, waic, last_values, samples, trial_samples)¶ -
plot_posteriors
(gridsize=100, clip=None, show_intervals='HDI', alpha_intervals=0.05, intervals_kws=None, **kwargs)¶ Plots posterior predictives of the model’s parameters.
If the model is hierarchical, then only the group parameters are plotted. In particular, group means are plotted in the first row and group standard deviations are plotted in the second row. By default, 95 percent HDI are shown. The kernel density estimation is calculated using scipy.stats.gaussian_kde.
- Parameters
gridsize (int, default to 100) – Resolution of the kernel density estimation function, default to 100.
clip (tuple of (float, float), optional) – Range for the kernel density estimation function. Default is min and max values of the distribution.
show_intervals (str, default to "HDI") – Either “HDI”, “BCI”, or None. HDI is better when the distribution is not simmetrical. If None, then no intervals are shown.
alpha_intervals (float, default to .05) – Alpha level for the intervals. Default is 5 percent which gives 95 percent BCIs and HDIs.
intervals_kws (dict) – Additional arguments for matplotlib.axes.Axes.fill_between that shows shaded intervals. By default, they are 50 percent transparent.
- Other Parameters
**kwargs – Additional parameters for seaborn.FacetGrid.
- Returns
g
- Return type
seaborn.FacetGrid
-
to_pickle
(filename=None)¶ Pickle the fitted model’s results object to file.
This can be used to store the model’s result and read them and inspect them at a later stage, without having to refit the model.
- Parameters
filename (str, optional) – File path where the pickled object will be stored. If not specified, is set to
-
Reinforcement learning models¶
-
class
rlssm.fits_RL.
RLModelResults_2A
(model_label, data_info, parameters_info, priors, rhat, waic, last_values, samples, trial_samples)¶ RLModelResults allows to perform various model checks on fitted RL models.
In particular, this can be used to to visualize the estimated posterior distributions and to calculate and visualize the estimated posterior predictives distributions.
- show-inheritance
- inherited-members
-
get_grouped_posterior_predictives_summary
(grouping_vars, n_posterior_predictives=500)¶ Calculates summary of posterior predictives of choices, separately for a list of grouping variables.
The mean proportion of choices (in this case coded as accuracy) is calculated for each posterior sample across all trials in all conditions combination.
For example, if grouping_vars=[‘reward’, ‘difficulty’], posterior predictives will be collapsed for all combinations of levels of the reward and difficulty variables.
- Parameters
grouping_vars (list of strings) – They should be existing grouping variables in the data.
n_posterior_predictives (int) – Number of posterior samples to use for posterior predictives calculation. If n_posterior_predictives is bigger than the posterior samples, then calculation will continue with the total number of posterior samples.
- Returns
out – Pandas DataFrame. The column contains the mean accuracy. The row indes is a pandas.MultIndex, with the grouping variables as higher level and number of samples as lower level.
- Return type
DataFrame
-
get_posterior_predictives
(n_posterior_predictives=500)¶ Calculates posterior predictives of choices.
- Parameters
n_posterior_predictives (int) – Number of posterior samples to use for posterior predictives calculation. If n_posterior_predictives is bigger than the posterior samples, then calculation will continue with the total number of posterior samples.
- Returns
pp_acc – Array of shape (n_samples, n_trials).
- Return type
numpy.ndarray
-
get_posterior_predictives_df
(n_posterior_predictives=500)¶ Calculates posterior predictives of choices.
- Parameters
n_posterior_predictives (int) – Number of posterior samples to use for posterior predictives calculation. If n_posterior_predictives is bigger than the posterior samples, then calculation will continue with the total number of posterior samples.
- Returns
out – Data frame of shape (n_samples, n_trials).
- Return type
DataFrame
-
get_posterior_predictives_summary
(n_posterior_predictives=500)¶ Calculates summary of posterior predictives of choices.
The mean proportion of choices (in this case coded as accuracy) is calculated for each posterior sample across all trials.
- Parameters
n_posterior_predictives (int) – Number of posterior samples to use for posterior predictives calculation. If n_posterior_predictives is bigger than the posterior samples, then calculation will continue with the total number of posterior samples.
- Returns
out – Data frame, where every row corresponds to a posterior sample. The column contains the mean accuracy for each posterior sample over the whole dataset.
- Return type
DataFrame
-
plot_mean_grouped_posterior_predictives
(grouping_vars, n_posterior_predictives=500, **kwargs)¶ Plots the mean posterior predictives of choices, separately for either 1 or 2 grouping variables.
The first grouping variable will be plotted on the x-axis. The second grouping variable, if provided, will be showed with a different color per variable level.
- Parameters
grouping_vars (list of strings) – They should be existing grouping variables in the data. The list should be of lenght 1 or 2.
n_posterior_predictives (int) – Number of posterior samples to use for posterior predictives calculation. If n_posterior_predictives is bigger than the posterior samples, then calculation will continue with the total number of posterior samples.
- Other Parameters
x_order (list of strings) – Order to plot the levels of the first grouping variable in, otherwise the levels are inferred from the data objects.
hue_order (lists of strings) – Order to plot the levels of the second grouping variable (when provided) in, otherwise the levels are inferred from the data objects.
hue_labels (list of strings) – Labels corresponding to hue_order in the legend. Advised to specify hue_order when using this to avoid confusion. Only makes sense when the second grouping variable is provided.
show_data (bool) – Whether to show a vertical line for the mean data. Set to False to not show it.
show_intervals (either “HDI”, “BCI”, or None) – HDI is better when the distribution is not simmetrical. If None, then no intervals are shown.
alpha_intervals (float) – Alpha level for the intervals. Default is 5 percent which gives 95 percent BCIs and HDIs.
palette (palette name, list, or dict) – Colors to use for the different levels of the second grouping variable (when provided). Should be something that can be interpreted by color_palette(), or a dictionary mapping hue levels to matplotlib colors.
color (matplotlib color) – Color for both the mean data and intervals. Only used when there is 1 grouping variable.
ax (matplotlib axis, optional) – If provided, plot on this axis. Default is set to current Axes.
intervals_kws (dictionary) – Additional arguments for the matplotlib fill_between function that shows shaded intervals. By default, they are 50 percent transparent.
- Returns
ax – Returns the matplotlib.axes.Axes object with the plot for further tweaking.
- Return type
matplotlib.axes.Axes
-
plot_mean_posterior_predictives
(n_posterior_predictives, **kwargs)¶ Plots the mean posterior predictives of choices.
The mean proportion of choices (in this case coded as accuracy) is calculated for each posterior sample across all trials, and then it’s plotted as a distribution. The mean accuracy in the data is plotted as vertical line. This allows to compare the real mean with the BCI or HDI of the predictions.
- Parameters
n_posterior_predictives (int) – Number of posterior samples to use for posterior predictives calculation. If n_posterior_predictives is bigger than the posterior samples, then calculation will continue with the total number of posterior samples.
- Other Parameters
show_data (bool) – Whether to show a vertical line for the mean data. Set to False to not show it.
color (matplotlib color) – Color for both the mean data and intervals.
ax (matplotlib axis, optional) – If provided, plot on this axis. Default is set to current Axes.
gridsize (int) – Resolution of the kernel density estimation function, default to 100.
clip (tuple) – Range for the kernel density estimation function. Default is min and max values of the distribution.
show_intervals (either “HDI”, “BCI”, or None) – HDI is better when the distribution is not simmetrical. If None, then no intervals are shown.
alpha_intervals (float) – Alpha level for the intervals. Default is 5 percent which gives 95 percent BCIs and HDIs.
intervals_kws (dictionary) – Additional arguments for the matplotlib fill_between function that shows shaded intervals. By default, they are 50 percent transparent.
- Returns
ax – Returns the matplotlib.axes.Axes object with the plot for further tweaking.
- Return type
matplotlib.axes.Axes


API expressing the ppwcode Semantics Bean vernacular.
{@link org.ppwcode.vernacular.semantics.VII.bean.SemanticBean} is the basis of our vernacular. It expresses that semantic beans should be used by reference, and that they should feature a {@link org.ppwcode.vernacular.semantics_I.bean.SemanticBean#toString()} method aimed at debugging and logging. {@link org.ppwcode.vernacular.semantics.VII.bean.AbstractSemanticBean} provides help in implementing these rules.
{@link org.ppwcode.vernacular.semantics.VII.bean.RousseauBean} introduces the notion of civilized and wild state for semantic beans, making explicit the difference in state that is acceptable for naked Java objects, and the state that is acceptable when those Java objects truly represent a domain object. This depends on the vernacular for semantic exceptions laid out in {@link org.ppwcode.vernacular.semantics.VII.exception}. {@link org.ppwcode.vernacular.semantics.VII.bean.AbstractRousseauBean} provides help in implementing this contract.


In this example we use a fully implemented dataTable with commandSortHeaders, dataPaginators and change the default style settings for the dataTable.


--- title: Fall is Here! date: 2008-10-15 00:00:00 -06:00 categories: - whats-blooming layout: post blog-banner: whats-blooming-now-fall.jpg post-date: October 15, 2008 post-time: 9:44 AM blog-image: wbn-default.jpg ---
Big Tooth Maple Acer grandidentatum
It seems like just yesterday that we couldn't wait for the snow to melt so we could get out and work in our gardens, and already some of us have had to break out the snowshovels. The summer just flew by.
Now is the time to visit the garden to witness the transition to fall. There are trees changing colors in just about every location here at Red Butte.
Yellowwood Cladrastis lutea
Big Tooth Maple Acer grandidentatum
Smooth Sumac Rhus glabra
Golden Currant Ribes aureum


Re-colouring SVG icons
Sometimes you have an icon drawn in SVG but you want to display it in different colours depending on the state, for example when a given menu item is selected or when you want to warn the user about something.
Most SVG icons are draw on a transparent background. The foreground colour in such icons can be easily converted using SVG filter feColorMatrix
. All we have to do is creating a matrix where the original colours are zeroed out and the constant component is taken from the new colour. The transparency channel is left unmodified, so that we draw only there where the original icon has something drawn. The matrix should look like this:
0 0 0 0 r
0 0 0 0 g
0 0 0 0 b
0 0 0 1 0
If you try putting the RGB values in the matrix, you will get a completely white icon in most cases. This is because SVG uses the sRGB colour space where the R, G, B channels get a value between 0 and 1. If you now try setting the R, G, B values by dividing the target values by 255.0, you will get more colours but they will be strangely off from the target. It turns out that the transformation to sRGB is non-linear: the correct formula is pow(x / 255.0, 2.2)
.
Now all that remains is adding the transformation filter to the HTML page and setting it for the icon. This can be done like this:
<svg height="0" width="0">
<filter id="filter">
<feColorMatrix in="SourceGraphic" type="matrix"
values="0 0 0 0 0.05 0 0 0 0 0.35 0 0 0 0 0.84 0 0 0 1 0"/>
</filter>
</svg>

The example shows the whole setup with the colour matrix set dynamically.


Mustang could become a Ford sub-brand – report
Ford is considering making the Mustang a sub-brand, with other vehicles joining the coupe, convertible and new Mach-E electric crossover.
by William Stopford- shares
Mustang is arguably Ford’s most iconic and well-known nameplate, globally. Now Ford's considering on capitalising on the equity in that name and expanding the Mustang stable.
Murat Gueler, the design chief for Ford Europe, told Autocar, “We’ve talked about building a family.”
For those already concerned about the scope creep of an electric crossover bearing the Mustang name, rest assured there are no plans for a wide range of Mustang EVs in different sizes.
“We don’t want to take a Russian doll approach, where you can’t tell them apart other than the size of the car, but we want a family feel where a Ford EV starts to build off this concept,” Gueler told Autocar.
“But we’d never do a smaller version of this - if we did a smaller vehicle it would have different proportions.”
Though the decision to brand the new Mach-E electric crossover a Mustang has proved controversial in some corners, the thinking is clear – a Ford EV with a Mustang badge gets more attention than a Ford EV without.
The Mustang, after all, is an extremely well-known nameplate, Gueler calling it and the Porsche 911 the two most famous sports cars on the planet. That gives the Mustang Mach-E a rich, 55-year heritage to tap into, to help it in the fight against upcoming electric crossovers from the Volkswagen Group, Nissan and others.
Gueler confirmed Mach-E development started in 2014 but it wasn’t conceived as a member of the Mustang stable. In 2017, the whole program was “rebooted” and the Mach-E’s interior and exterior styling and positioning were completely changed.
The latest generation of Mustang – the coupe and convertible, that is – has proven to be a global success, Ford reporting global demand double what it'd expected.
It’s also the most exported generation of Mustang yet, sold in markets as far and wide as Brazil, China, and South Africa.
The Mustang Mach-E marks the first time in the Mustang’s 55-year history that an electric vehicle has worn the name and the first time a Mustang has been offered with four doors.
That’s remarkable consistency for a company that has introduced various permutations of other heritage models – the Ford Thunderbird, for example, was offered with four doors from 1967 until 1971, the Mercury Cougar briefly spawned sedan and wagon variants, and the Lincoln Town Car became a livery variant of the MKT crossover.
Prototypes were produced of Mustang sedans and wagons in the 1960s and 1970s but Ford never approved them for production, though in those years the Mustang shared its platform with a multitude of other passenger cars such as the Ford Falcon.
The Mustang Mach-E isn’t Ford’s first electric vehicle but it’ll be their most widely available EV yet. Earlier EV efforts from the Blue Oval brand include the Ranger EV, produced from 1997 to 2002 and sold only in North America, and the Focus Electric, manufactured from 2011 until 2018 and sold only in Europe and in select markets within North America.
Australia
Though the Mustang Mach-E has been engineered for right-hand drive and will be sold in markets like the UK, it hasn’t been confirmed for Australia.
1
4
nextprevious
Mustang could become a Ford sub-brand – report


AMAZING PEOPLE ARE MAKING AMAZING DESIGNS IN A FUN ENVIRONMENT
When you work with us,you are part of a team of committed
collaborators. All aspects of our software development process are
integrated,interactive
and agile.
Our approach unifies design,development and
product management to create exceptional products.
We start
each project by understanding your business goals,the user's needs and
the product requirements.
Then we help them transaite them
into effective and elegant solutions.
Before we sign a contract or write a line of code our team will spend
the necessary time needed to understand your product vision.
The
outcome of this scoping is proposal or high-level statements of
work
based on your requirements, we can provide a complete
offering or just the pieces you need.
Our design practices offers a full range of services including brand
strategy,interaction and visual design and user experience
testing.
Throughout your project,our designers create and
implement visual design and workflows,solicit user feedback and work
with you to make sure what gets built is what is needed.
All engineers are fluent in the latest enterprise,mobile and web
development technologies.
They colaborate with your team
to write ,and improve code on a daily basis,using proven practices
such as test-driven development and pair programming.
Planning and development is iterative.Because we are constantly
coding and testing ,the products we build are
always ready to
goals to go live.
This iterative process allows for
changes as business
requirement evolve.


This paragraph should have a black background and yellow text
Green text with white background color
Green text, white background color, dashed purple border


§621-1 Subpoena, issue of. The clerks of the several courts shall issue writs of subpoena as provided by the rules of court or by statute. Except as otherwise provided, the clerks shall issue to any prosecuting officer, and to any party plaintiff or defendant, in any cause, civil or criminal, pending before such courts, or to the counsel of the party, writs of subpoena for witnesses, in blank, so that the names of the witnesses to be summoned may be inserted after the issuing of the writs. [L 1876, c 32, §1; am imp L 1905, c 39, §95; am imp L 1907, c 118, §116; RL 1925, §2556; am imp L 1932 1st, cc 1, 13, §1; RL 1935, §3810; RL 1945, §9821; RL 1955, §222-1; am L 1957, c 124, §1; am L 1963, c 85, §3; HRS §621-1; am L 1972, c 104, §1(a)]
Cross References
Fees for issuing and serving subpoena, see §§607-4, 607-5, 607-6, and 607-8.
Rules of Court
See HRCP rule 45; HRPP rule 17; DCRCP rule 45.


'No substantive progress made' in talks to end CN Rail strike: union
by The Canadian PressMONTREAL -- The strike at the country's biggest railway has entered its fourth day with no resolution in sight as round-the-clock negotiations continue under the watch of federal mediators.
The Teamsters union says that “no substantive progress has been made” since 3,200 workers hit the picket lines early Tuesday morning.
The union claims Quebec's propane shortage “appears to be largely manufactured” by Canadian National Railway Co. amid rising pressure from industry and Prairie premiers to reconvene Parliament ahead of schedule and pass back-to-work legislation.
Premier Francois Legault said yesterday the province is days away from running out of propane, which heats hospitals and nursing homes and fuels operations in agriculture and mining.
The Teamsters Canada Rail Conference says CN's decision to transport freight other than propane using employees who remain on the job “is a business decision.”
CN Rail is rejecting the union's claim that the strike concerns workplace health and safety, suggesting instead that it revolves around worker compensation.
CN says it has offered to enter into binding arbitration, with a neutral arbitrator chosen by the parties or appointed by the federal government.


Home
About
Work
Blog
Contact
Variety
to please
everyone
Welcome to Sweet + Spicy, the original
artisanal popsicle company


Welcome to Svea's Currency Exchange Portal!
Please Enter a US Dollar Amount
Where would you like to travel?


BLISTEX LIP- dimethicone, camphor oil, menthol and phenol ointment
HART Health
Disclaimer: Most OTC drugs are not reviewed and approved by FDA, however they may be marketed if they comply with applicable regulations and policies. FDA has not evaluated whether this product complies.
Uses: for the temporary protection and relief of pain and itching associated with
Do not use
Stop use and ask a doctor if
Keep out of reach of children. If swallowed, get medical help or contact a Poison Control Center right away. 1-800-222-1222
Directions
Adults and children 2 years of age and over: apply liberally to affected area not more than 3 to 4 times daily
Children under 2 years of age: ask a doctor
Inactive Ingredients: Allontoin, Ammonium Hydroxide, Beeswax, Calcium Disodium EDTA, Calcium Hydroxide, Cetyl Alcohol, Flavors, Glycerin, Lanolin, Lauric Acid, Mineral Oil, Myristic Acid, Oleic Acid, Palmitic Acid, Paraffin, Petrolatum, Polyglyceryl-3 diisostearate, Potassium Hydroxide, Purified Water, SD Alcohol 36, Silica, Sodium Hydroxide, Sodium Saccharin, Stearyl Alcohol
|
BLISTEX LIP
dimethicone, camphor, menthol, phenol ointment | ||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||
|
| Labeler - HART Health (069560969) |


Reports division by zero or remainder by zero.
In this case, users will get Nan
for doubles or floats, and ArithmeticException
for integers.
Note, that the divisor is not necessarily a zero literal, but the expression that is statically known to be evaluated as zero.
The fix suggests replacing division expression with the NaN
constant for floating-point types.


This is the course website for IS590 Data Visualization in Spring 2019
For this week’s code-along demo, if you haven’t already done so, please be sure to install Anaconda. Please also download this dataset:
This week we discussed how data is stored on disk and in memory, how that interacts with our visualization process, and we introduced the notion of a palette of operations you can apply to data to visualize it.


--- layout: default --- {%- include masthead.html -%} {%- include research.html -%} {%- include featured-publications.html -%} {%- include team.html -%}


{% extends "base.html" %} {% load form_tags %} {% block title %}{{sitename}} - View/Edit Profile{% endblock %} {% block main %}
Please Note: Support for changing your OpenID not available at present.


Demos¶
In this section we will go over a number of demos of nukikata along with the main takeaways.
To walk through all the demos, run:
nukikata https://github.com/insight-infrastructure/nukikata-demos
Monty Python¶
The most basic demo, this is supposed to show off some of the core functionality of nukikatas syntax which allows for loops and conditionals.
nukikata https://github.com/insight-infrastructure/nukikata-demos --directory demos/monty-python
Gallery of Cookiecutters¶
This demo is supposed to show users a variety of selected popular cookiecutters in use today. There are around 5k existing open source cookiecutters today which can easily be connected by nukikata.
nukikata https://github.com/insight-infrastructure/nukikata-demos --directory demos/gallery
All Operators¶
A tutorial of all the operators available and how to use them.
nukikata https://github.com/insight-infrastructure/nukikata-demos --directory demos/all-operators
Jinja Patterns¶
A tutorial on using jinja templating and patterns that could be useful in building dynamic decision trees.
nukikata https://github.com/insight-infrastructure/nukikata-demos --directory demos/jinja-forrest


Converting the login.php page to the new template went off with absolutely no problem. The forms work just fine, and entering the name and password takes me to searchproduct.php as intended. The sidebar is not there because there's no need for it on the login page, and I may delete it entirely. I still want to create a separate page for the sidebar and see if I can load it automatically onto the pages that need it.
Then I went to do the same to searchproduct.php, and somehow broke the script that was enabling the autocomplete function. At this point I will probably try to roll back the changes I've already made - there must be a way to pull a single file back from Github*.
Right now the autocomplete scripts are accessing the entire list of items that could be searched for, then saving them as an array. It works now because the test lists that I have been working with have been quite small. They worked fine during the actual course demo for the same reason. But it's not going to work on a larger scale. What I want to eventually do is set it up so that it only checks for options after a certain number of charaters has already been entered. For now I could get away with one or two. Later it might be three. I wanted to do something similar during the course, but it was a low priority.
I'm planning to start over with the autocomplete scripts instead of trying to adapt the one here. I need to rewrite the code myself so that I can really understand what it's doing. Autocomplete at this point is not an absolute necessity. I'm still going to investigate the current scripts and figure out what happened, because I am not sure what happened.
*This is how I fixed it.
It took me a while to find a straight answer about this problem. I hope that writing it down here will help someone.


This script defines text system environment and is included in the J standard library. Definitions are loaded into the z locale.
|
FHS
|
n
|
filesystem hierarchy: 0=not used 1=linux and installed under /usr/...
|
|
hostpathsep
|
v
|
converts path name to use host path separator
|
|
IF64
|
n
|
if a 64 bit J system
|
|
IFDEF
|
v
|
if DEFxxx exists
|
|
IFIOS
|
n
|
if iOS (iPhone/iPad)
|
|
IFJA
|
n
|
if J Android (not jconsole)
|
|
IFJHS
|
n
|
if jhs libraries loaded
|
|
IFQT
|
n
|
if Qt libraries loaded
|
|
IFRASPI
|
n
|
if Raspberry Pi or Linux arm64
|
|
IFUNIX
|
n
|
if UNIX
|
|
IFWIN
|
n
|
if Windows (2000 and up)
|
|
IFWINCE
|
n
|
if Windows CE
|
|
IFWINE
|
n
|
if Wine (Wine Is Not an Emulator)
|
|
IFWOW64
|
n
|
if running J32 on a 64 bit o/s
|
|
jcwdpath
|
v
|
adds path to J current working directory
|
|
jpathsep
|
v
|
converts path name to use / separator
|
|
jsystemdefs
|
v
|
loads appropriate netdefs or hostdefs
|
|
UNAME
|
n
|
name of UNIX o/s
|
|
winpathsep
|
v
|
converts path name to use separator
|


Enjoy Pakistani & Chinese Food of International Standard. We assure you of the highest standards and services with the homely atmosphere which we call “Home Away From Home”. Meeting Hall: 1 x Fully Equipped Meeting Halls. Multimedia Projection. Refreshment + Lunch + Dinner Facility. 30 to 40 Persons Capacity. Complimentary high-speed Internet access. Rent A Car Facility Also Available.
Copyright © 2020 Karachi Guest House


Lawmen asked to donate P10 each for quake victims
by Alfred P. DalizonPHILIPPINE National Police Officer-in-Charge Lt. Gen. Archie Francisco Gamboa yesterday asked each member of the 195,000-strong police force to voluntarily donate a minimum of P10 for civilian-victims of a series of earthquakes that ravaged parts of Mindanao.
The official said that the voluntary donation will be sent to help victims of the earthquake in Regions 10, 11 and 12.
He said the PNP national headquarters will be taking care of policemen who were also affected by the quakes.
Gamboa required all financial institutions servicing the PNP to offer “soft loans” or “zero-interest loans” to the policemen-victims.
The Philippine Red Cross (PRC) yesterday appealed for more support for thousands of families affected by the earthquakes.
With Arlene Rivera


First off, the Raspberry Pi is cool, really cool. It uses a 5 V micro USB port for power, like the standard for many Android phones. There are two standard USB ports. For video, there is a HDMI port and a composite video out (the yellow of the yellow, red, and white RCA cable). The is a slot for an SD card, which is used as the boot drive. There is a GPIO port for those technically inclined hackers who want to interface with other things.
After a quick Amazon shopping spree, I got:
This is more than you really need but I had ideas of making a Linux server/media center/remote backup solution.
The main thing you need is an SD card. I downloaded the Raspian OS and used dd on my Mac (various install methods are listed here). The command looked something like this:
sudo dd if=path_of_your_image.img of=/dev/diskn bs=1m
I messed this up the first time and wrote it on my first partition instead of the root of the card (e.g. /disk1p1 instead of /disk1 (warning your device may be different)). This caused only the red light to come on and nothing else.
After that was fixed, it was more straightforward to get it running. The wireless keyboard was automatically recognized. It uses a USB RF receiver so the Raspberry Pi just sees it as a USB keyboard. Some keys were not recognized correctly, like the | and ~ were mis-mapped. If you like Linux, you know how important these keys are. Playing in the config utility (raspi-config) fixed it (after rebooting). I think it was setting the language to “US UTF-8 UTF-8″ but I did other fiddling so I’m not entirely sure what fixed the problem.
Booting up and logging in, you get the standard command line (aaaah, like being home). Intuitively, I ran startx and it worked. There was an icon on he desktop to configure the wireless adaptor. I scanned for networks, entered the password for our network, and it was connected to the world (like how Skynet got started).
I shutdown and connected the powered USB hub. Then, I moved the keyboard and Ethernet adapters through the hub. Also, since the power plug is a two piece plug and adapter set, I took the power cable out of the power plug and connected into the hub. Starting it up, it all worked!
I spent too much time installing software. After updating apt-get:
sudo apt-get update
you install by finding software:
apt-cache search {blah}
and installing it:
sudo apt-get install {blah}
To get the Raspberry Pi set up as a media center, I wanted to install XBMC. This did not work when I installed from apt-get. I found a nice guide which worked. There are alternatives to get XBMC working, like a boot image version, Raspbmc, or ways to compile it directly. I went with the path that got running in 10 minutes (didn’t want to compile due to laziness and wanted to retain access to a Linux OS).
The last piece of the puzzle was getting an external HD to work. I have a 1TB USB drive formatted for the Mac which had my DVD archive. Plugging this into the hub did not work. Nothing was recognized and blkid did not show it. Plugging it directly into the Raspberry Pi caused a series of problems with modprobe. I’m not sure if it’s a problem with getting enough power since the drive pulls power through the USB port.
Until I figure it out, I’m glad I have the 32 GB SD card for storage. I can copy media to it as a temporary fix.
 Until then, I’d crossing the Raspberry Pi off the list and refocusing back on other projects.


Versions
When using packages, you can keep multiple versions of a single package that refer to different versions of the corresponding application program. This way, the programmer can use a previous incarnation of a program without rebinding. Before the availability of packages, when programmers wanted to use an old version of a program, they were forced to rebind the program's plan using the correct DBRM. If the DBRM was unavailable, they had to repeat the entire program preparation process.
You can specify a version as a parameter to the DB2 precompiler identifier up to 64 characters long. If so instructed, the precompiler can automatically generate a version identifier (which will be a timestamp). The version identifier is stored, much like the consistency token, in the DBRM and the link is generated from the precompile.
Other than the specification of the version at precompilation time, versioning is automatic and requires no programmer or operator intervention. Consider the following:
When a package is bound into a plan, all versions of that package are bound into the plan. When a program is executed specifying that plan, DB2 checks the version identifier of the link that is running and finds the appropriate package version in the plan. If that version does not exist in the plan, the program will not run. To use a previous version of the program, simply restore and run the load module.
Versioning is a powerful feature of DB2 packages. You must take care, however, to administer the versions properly. Whenever a package is bound from a DBRM with a new version identifier, a new version of the package is created. As old versions of a package accumulate, you must periodically clean them up using the FREE command. Monitoring this accumulation is particularly important when the version identifier defaults to a timestamp because every new bind creates a new version.
|


Srisailam temple teeming with devotees
Over 1.2 lakh people had ‘darshan’ on the last Monday of Karthika Masam
by Staff ReporterDevotees continued to throng the Sri Bhramaramba Mallikarjuna temple in Srisailam on the very auspicious fourth Monday of ‘Karthika Masam’. There are over 1.2 lakh devotees at the temple on Monday, and ‘darshan’ took six and four hours for free and ₹150 ‘darshan’ respectively.
The temple gates opened at 3 a.m., and an hour later ‘darshan’ started. Only ‘Alankara Darshan’ was allowed by the temple authorities to accommodate the sheer volume of devotees. Earlier, ‘darshan’ was planned across a few phases, however, on Monday ‘darshan’ went on without any breaks.
Free snacks
The authorities distributed free snacks and water to devotees waiting in serpentine queue lines. Earlier in the morning, warm milk was also distributed. ‘Prasadam’ was also distributed by the temple authorities throughout the day.
A large number of devotees were spotted taking a holy dip in in Krishna River and then going to ‘darshan.’ Some of the devotees also released ‘Karthika Deepams’ in the river.
Commemorating the auspicious day, ‘Laksha Deepotsavam’ and ‘Pushakarani Harathi’ were organised on the temple premises. The devotees were also given free lamps to perform ‘Deeparadhana’.
The ‘Vanabhojanam’ held at the forest nearby on route to ‘patalaganga’ and thousands of devotees participated in it on Monday.
All the temple authorities were given special duties, and Executive Officer K.S. Rama Rao interacted with the people in the queue lines. He also took suggestions from them.


Welcome to Bus Mall!
Click on the image of your choice!
Once you've clicked on 25 successive images
a barchart will appear that displays the most popular items for the catalog.
Click on the image of your choice!
Once you've clicked on 25 successive images
a barchart will appear that displays the most popular items for the catalog.


Interesting application form
What is your name? 🙄
What is your favorit color?
Red
Green
Blue
Other:
Would you like to become a developer?
Yes
Ano
Igen
是
Why would you like to become a developer?


A simple calendar app for scheduling your work day
7am
8am
9am
10am
11am
12pm
1pm
2pm
3pm
4pm
5pm
6pm
7pm
8pm
9pm
10pm
11pm


Creativity Tuts
Home
About
About
Tutorials
Bootstrap
Java
Css
PHP
Contact
Contect Form
Name
Name
Name
Favourite Website
You Tube
Google
Twitter
Favourite Website
Male
Female
City
Landon
newark
Newyark
Piscataway
Edison
Submit
Clear
Copyright © Creativity tuts.
Terms and Conditions
Terms and Conditions
The text will go here....


{{template "partials/header.html"}}
Primer is the basecoat of GitHub, made by nerds just like you who share a passion for HTML and CSS.
Available for use under the MIT license and built with open source projects like SCSS, Jekyll, Grunt, and more.
Includes a small Gruntfile for compiling our SCSS, Autoprefixer for vendor prefixes, and Parker for CSS stats.


JavaScript is disabled on your browser.
Skip navigation links
Package
Class
Tree
Deprecated
Index
Help
Prev
Next
Frames
No Frames
All Classes
Hierarchy For All Packages
Class Hierarchy
java.lang.Object
Koohii
Koohii.Accuracy
Koohii.Circle
Koohii.DiffCalc
Koohii.HitObject
Koohii.Map
Koohii.MapStats
Koohii.Parser
Koohii.PPv2
Koohii.PPv2Parameters
Koohii.Slider
Koohii.Timing
Koohii.Vector2
Skip navigation links
Package
Class
Tree
Deprecated
Index
Help
Prev
Next
Frames
No Frames
All Classes


Snapshots from molecular dynamics simulations of (a) the ZnO(101[combining macron]0), and (b) the ZnO(112[combining macron]0) surface in contact with liquid water, illustrating the slab models used in this work. The simulations were performed under three-dimensional periodic boundary conditions. One periodic image for each system, with the given dimensions, is highlighted.


Why Us ?? B/c there is a great reason to choose us.
This is the reason. This is the reason. This is the reason. This is the reason. This is the reason. This is the reason. This is the reason. This is the reason. This is the reason. This is the reason. This is the reason.


Integrating Active MQ with Websphere Application Server using
Generic RA for JMS
Author : Vinod Jessani
Part 1 --- Prepare the RAR
Add the activemq jar files to the root of genericjmsra.rar file.
activemq-optional-3.2.1.jar
derby-<IP_ADDRESS>.jar
activecluster-1.1-SNAPSHOT.jar
activemq-ra-3.2.1.jar
activeio-1.1.jar
commons-logging-1.0.3.jar
spring-1.2.2.jar
activemq-core-3.2.1.jar
concurrent-1.3.4.jar
xstream-1.1.2.jar
NOTE: Instead of adding these jars to the RAR file, you should also be able to add these jars to the classpath of the resource adapter in the next step.
Part 2 --- Install the RAR
Log into WebSphere's admin-console and on the left hand side tree navigate to Resources->Resource Adapters.
On the resource adapter page, click the "Install RAR" button.
On the next page, browse to and select the genericjmsra.rar file.
On the next page, press Ok and that will install the genericjms resource adapter.
Part 3 --- Set up the properties for the RAR so that it works with ActiveMQ
Go back to the Resource Adapters page (i.e., Resources->Resource Adapter) and click on " Generic J2EE Resource Adapter for JMS".
(NOTE: if you didn't add the activemq jars to the genericjmsra.rar file, you could add them to the classpath on this page).
On this configuration page, click on the "custom properties" link to set up the adapter's properties as follows:
XAConnectionFactoryClassName org.activemq.ActiveMQXAConnectionFactory
XAQueueConnectionFactoryClassName org.activemq.ActiveMQXAConnectionFactory
XATopicConnectionFactoryClassName org.activemq.ActiveMQXAConnectionFactory
connectionFactoryClassName org.activemq.ActiveMQConnectionFactory
connectionFactoryProperties brokerURL=tcp://localhost:61616
providerIntegrationMode javabean
queueClassName org.activemq.message.ActiveMQQueue
queueConnectionFactoryClassName org.activemq.ActiveMQConnectionFactory
supportsXA true
topicClassName org.activemq.message.ActiveMQTopic
topicConnectionFactoryClassName org.activemq.ActiveMQConnectionFactory
(Note: you'll need to click on each of the properties and on the next page set the value and click ok)
And that's it.
Part 4 --- Configure J2C Actication Specifications
Go back to the "Generic J2EE Resource Adapter for JMS" page and click on the "J2C Activation Specification" link.
Click on the New button to add a new ActivationSpec.
On the next page, set the following properties
Name: HelloAS
JNDI Name: jms/HelloAS
Connection Factory Interface javax.jms.QueueConnectionFactory
Click OK to add the HelloAS activation spec.
Go back to the main Activation Spec page and click on HelloAS to get back to its configuration page.
On its config page, click on "J2C activation specification custom properties" to configure information for this activationspec.
On the Custom Properties page, set the following properties:
destinationProperties Name=HelloQ
destinationType javax.jms.Queue
supportsXA true
Repeat the above for each of the activationspecs.
Part 5 --- Configure J2C administered objects
Go back to the "Generic J2EE Resource Adapter for JMS" page and click on the "J2C administered objects" link.
Click on the New button to add a new administered object
On the next page, set the following properties
Name: HelloQ
JNDI Name: jms/HelloQ
Administered Object Class com.sun.genericra.outbound.QueueProxy
(select from drop-down list)
Click OK to add the HelloQ queue.
Go back to the main Administered Object page and click on HelloQ to get back to its configuration page.
On its config page, click on "J2C administered object custom properties" to configure information for this queue
On the Custom Properties page, set the following properties:
DestinationProperties Name=HelloQ
supportsXA true
Repeat the above for each of the administered objects that you want to create.
Part 6 --- Configure J2c Connection factories
Go back to the "Generic J2EE Resource Adapter for JMS" page and click on the J2C Connection factories" link.
Click on the New button to add a new connection factory
On the next page, set the following properties
Name: HelloCF
JNDI Name: jms/HelloCF
Administered Object Class javax.jms.QueueConnectionFactory
Click OK to add the HelloCF connection factory.
Go back to the main Administered Object page and click on HelloCF to get back to its configuration page.
On its config page, click on "custom properties" to configure information for this connection factory
On the Custom Properties page, set the following properties: (NOTE: none required)
Repeat the above for each of the connection factories that you want to create.
Finally make sure to save the configuration and restart the appserver.


That's not bad. But we can do better. If we look at the definition for sorted
, we see that it takes in a closure of type (T, T) -> Bool
, where T
is just the type of the array (in our case, Int
). The closure takes two parameters, in this case integers, and returns a Bool
that's true if and only if the first parameter comes before the second one in the sorted list. I know of another function that takes two Int
s and returns true
if and only if the first one is "in order": <
, the less-than operator.
So revisiting the sorting example above, let's rewrite this.


Working with a massive number of projects in VS is painful. I know, don't do that, but I don't have a choice for now.
8/7/2009, 10:09:45 AM
Favs: 0
Retweets: 0
link--- layout: tweet ---
Working with a massive number of projects in VS is painful. I know, don't do that, but I don't have a choice for now.
8/7/2009, 10:09:45 AM
Favs: 0
Retweets: 0
link


Personal
Details
Education process
Working process
Society activities
Skills
Experiences
Certifications
Hobbies
Desire


The server encountered a temporary error or couldn't complete your request.
Please try again in couple of minutes. We are doing our best to fix the issue..

Please try again later. We are doing our best to fix the issue..
Go back to dashboard >>


Hi there, I love the simplicity of the TeamOn app to to play and organize my favorite sports. I believe you will love it also! TeamOn is available to download for free at: Apple Appstore | Android Market | Web Hope to see you there! [user-name]


|
| void | rt_cluster_mount (int mount, int cid, int flags, rt_event_t *event) |
| | Cluster power-up and power-down. More...
|
| |
| int | rt_cluster_call (rt_cluster_call_t *call, int cid, void(*entry)(void *arg), void *arg, void *stacks, int master_stack_size, int slave_stack_size, int nb_pe, rt_event_t *event) |
| | Call a function that will execute on the cluster. More...
|
| |
| void | rt_cluster_notif_init (rt_notif_t *notif, int cid) |
| | Initialize a notification structure. More...
|
| |
| static void | rt_cluster_notif_trigger (rt_notif_t *notif, unsigned core_mask) |
| | Send a notification. More...
|
| |
| static int | rt_cluster_notif_event (rt_notif_t *notif) |
| | Get the event associated to the notification. More...
|
| |
| static void | rt_cluster_notif_wait (int event) |
| | Put the calling core to sleep until a notification is received. More...
|
| |
| void | rt_cluster_notif_deinit (rt_notif_t *notif) |
| | Close a notification structure. More...
|
| |
Clusters must be mounted before they can be used.
Once mounted, remote function executions can be enqueued to offload computation to the cluster. A remote execution is a multi-core execution. This starts execution only on the master core, however the other cores of the cluster are available for parallel computation through synchronization primitives. Events can be used to receive a notification on the fabric controller when an execution is finished.
◆ RT_TRIGGER_ALL_CORE
| #define RT_TRIGGER_ALL_CORE |
◆ rt_cluster_call()
| int rt_cluster_call |
( |
rt_cluster_call_t * |
call, |
|
|
int |
cid, |
|
|
void(*)(void *arg) |
entry, |
|
|
void * |
arg, |
|
|
void * |
stacks, |
|
|
int |
master_stack_size, |
|
|
int |
slave_stack_size, |
|
|
int |
nb_pe, |
|
|
rt_event_t * |
event |
|
) |
| |
This will wake-up the master core (core 0) of the specified cluster and make it execute the specified function. This function is intended to be used for coarse-grain job delegation to the cluster side, and thus the stack used to execute this function must also be specified. When the function starts executing on the cluster, the other cores of the cluster are also available for parallel computation. Thus the stacks for the other cores (called slave cores) can also be specified, as well as the number of cores which can be used by the function on the cluster (including the master).
Note that this enqueues a function execution. To allow cluster executions to be pipelined 2 can be enqueued at the same time. If 2 functions are queued, as soon as the first is finished, the master core immediately continues with the next one, while the fabric controller receives the termination notification and can enqueue a new execution, in order to keep the cluster busy.
- Parameters
-
| call | A pointer to the cluster call structure, needed by the runtime to manage the call. This is only needed if more than 2 calls are enqueued at the same time, otherwise it can be NULL. |
| cid | The identifier of the cluster on which to call the function. |
| entry | The function to be called. |
| arg | The argument of the function to be called. |
| stacks | The stacks of the cores. This must contain the master stack and one stack for each slave core. If NULL the stack will be allocated and freed automatically. The free occurs the next time that rt_cluster_call is invoked. |
| master_stack_size | Stack size of the master core which will execute the function. If stacks is NULL can be 0 to indicate to use the default master stack size. See rt_cl_master_stack_size_get(). |
| slave_stack_size | Stack size of each core associated to the execution of the function. If stacks is NULL can be 0 to indicate to use the default slave core stack size. See rt_cl_slave_stack_size_get(). |
| nb_pe | Number of cores involved in the execution of the function. Can be 0 to select the maximum number of cores. |
| event | An event to specify how to be notified when the cluster function has returned. If NULL, the function will only return when this is done. Otherwise the event can be used to either call a callback or to wait on the event afterwards. |
◆ rt_cluster_mount()
| void rt_cluster_mount |
( |
int |
mount, |
|
|
int |
cid, |
|
|
int |
flags, |
|
|
rt_event_t * |
event |
|
) |
| |
By default the cluster is powered down and cannot be used. Before using the cluster this function must be used to power it up.
- Parameters
-
| mount | Must be set to 1 for powering-up the cluster, or 0 for powering-down. |
| cid | The identifier of the cluster to configure. This must be an integer from 0 to the number of clusters minus 1. |
| flags | Flags to configure the cluster. Not currently used. |
| event | An event to specify how to be notified when the new cluster configuration has been applied. If NULL, the function will only return when this is done. Otherwise the event can be used to either call a callback or to wait on the event afterwards. |
◆ rt_cluster_notif_deinit()
| void rt_cluster_notif_deinit |
( |
rt_notif_t * |
notif | ) |
|
This will free all allocated resources. Can only be called from fabric controller.
- Parameters
-
| notif | A pointer to the notification structure. |
◆ rt_cluster_notif_event()
| static int rt_cluster_notif_event |
( |
rt_notif_t * |
notif | ) |
|
|
inlinestatic |
The event is the information used by cluster cores to go to sleep. As the notification structure is usually stored close to the fabric controller, calling this function let cluster cores store the event information closer, e.g. on the stack. Can only be called from cluster.
- Parameters
-
| notif | A pointer to the notification structure. |
- Returns
- The event. This can then be used when calling rt_cluster_notif_wait.
◆ rt_cluster_notif_init()
| void rt_cluster_notif_init |
( |
rt_notif_t * |
notif, |
|
|
int |
cid |
|
) |
| |
Notifications can be used to make a cluster core go to sleep until a notification is sent to him. This is useful for example for polling a variable without consuming power for nothing. Can only be called from fabric controller.
- Parameters
-
| notif | A pointer to the notification structure, needed by the runtime to manage the notification. This must be allocated by the caller and must be kept alive until the notification is closed. |
| cid | The identifier of the cluster on which the the notification will be triggered. |
◆ rt_cluster_notif_trigger()
| static void rt_cluster_notif_trigger |
( |
rt_notif_t * |
notif, |
|
|
unsigned |
core_mask |
|
) |
| |
|
inlinestatic |
Notifications can be used to make a cluster core go to sleep until a notification is sent to him. This is useful for example for polling a variable without consuming power for nothing. Can only be called from fabric controller.
- Parameters
-
| notif | A pointer to the notification structure, this will tell the runtime which event must be used and to which cluster it must be sent. |
| core_mask | The mask of cores which will receive the notification. There is 1 bit per core, bit 0 (least signigicant bit) is for core 0. A bit set to 1 means the core will receive the notification. The special value RT_TRIGGER_ALL_CORE can also be used to send to all cores. |
◆ rt_cluster_notif_wait()
| static void rt_cluster_notif_wait |
( |
int |
event | ) |
|
|
inlinestatic |
Notifications are using hardware events which can be multiplexed between several notifications. So a core should not only rely on the notification to get an information, he should always check a condition variable and use the notification just as a way to sleep until something happens. Can only be called from cluster.
- Parameters
-
| event | The event returned by rt_cluster_notif_event. |


IMPORTANT: This file is generated by cucumber-rails - edit at your own peril. It is recommended to regenerate this file in the future when you upgrade to a newer version of cucumber-rails. Consider adding your own code to a new file instead of editing this one. Cucumber will automatically load all features/*/.rb files.


☰
Home
Search
Contact Us
Search Here!
Search the main ingredient for your desired recipe. Be specific. For example, search salmon, not fish.


It's one thing to read the AlphaComposite javadoc to understand mathematically what each composite does, but sometimes its easier just to render it to help visualize the difference between SRC_ATOP and DST_OVER.
This demo does not feature any custom code from the Pumpernickel codebase. It's just here to help visualize what the AlphaComposite
does on its own.


Queries the configuration information for a specified service.
For examples of how to use this command, see Examples.
Syntax
sc [<ServerName>] qc [<ServiceName>] [<BufferSize>]
Parameters
Parameter Description
<ServerName> Specifies the name of the remote server on which the service is located. The name must use the Universal Naming Convention (UNC) format (for example, \\myserver). To run SC.exe locally, omit this parameter.
<ServiceName> Specifies the service name returned by the getkeyname operation.
<BufferSize> Specifies the size (in bytes) of the buffer. The default buffer size is 1,024 bytes.
/? Displays help at the command prompt.
Remarks
The qc command displays the following information about a service: SERVICE_NAME (service's registry subkey name), TYPE, ERROR_CONTROL, BINARY_PATH_NAME, LOAD_ORDER_GROUP, TAG, DISPLAY_NAME, DEPENDENCIES, and SERVICE_START_NAME.


Man Utd fans plead with Jose Mourinho to sign Nemanja Matic for Tottenham
Manchester United fans have urged Jose Mourinho to sign Nemanja Matic for Tottenham after he was appointed manager at Spurs.
Tottenham’s surprise sacking of Mauricio Pochettino was quickly followed by the announcement Mourinho would be taking charge.
Mourinho has not worked in football management since he was sacked by United last December and Red Devils fans have already sent a plea to their former boss.
Matic is struggling to get into Ole Gunnar Solskjaer’s team this season and has made just three appearances in the Premier League.
The midfielder was already being tipped with a January transfer exit, but now United fans are pleading with Mourinho to take Matic off their hands.
Matic to Tottenham?
Advertisement Advertisement
Matic previously played under Mourinho at Chelsea and United and it was the Portuguese who signed the Serbian for the Red Devils in 2017.
But the 31-year-old’s stock has diminished rapidly this season and he is out of contract in the summer.
It is unclear which players Mourinho has in mind for Tottenham, but it is expected club chairman Daniel Levy is prepared to back his new manager in the transfer market.


info
Instructions
You will be given some questions, that came from real users on the internet.
Each question have a 1 minute time limit.
If you think you can answer the question, type it in the corresponding box.
At some point within a minute potential answers might appear. You will need to judge their quality on a scale from 1 - 4
1 - Bad
2 - Fair
3 - Good
4 - Excellent
DO NOT REFRESH THE PAGE!
Instructions
av_timer
Question time: 1:00
HIT time: 15:00
category
question_title
question_body
I can answer this question
mode_edit
If you can provide a good response, please type it here...
Submit
send
Your answer is recorder, thank you! Now, please rate the answers below...
Currently, there are no pending questions. Please wait...
Please wait, the answers are coming...
Instructions
This HIT will last
exactly 15 minutes
Your HIT will only be submitted after these 15 minutes
In this period of time you will receive some questions, that came from real users on the Internet
Each question has a
time limit
after which it will disappear and you will need to want for the next one
If you know the answer to the question, please type it in the corresponding box
At some point several candidate answers will appear at the bottom of the page
Please rate them on a scale from 1 (bad) to 4 (excellent)
Do not close the browser or reload the page as this will reset your assignment.