--- layout: post title: 'budget bites: hummus & tomato tartine' date: 2011-09-30 23:33:11.000000000 -04:00 type: post published: true status: publish categories: - budget bites - college - lunch - vegan tags: - budget bites - hummus - sundried tomatoes - tartine meta: _edit_last: '1' author: login: sophie email<EMAIL_ADDRESS>display_name: Pika first_name: '' last_name: '' ---
Schoolwork has definitely been amping up to full volume now and that in combination with attempts to keep a small budget is my excuse for the lack of creative/real recipes lately.
But sometimes simpler is better!
Here was a quick lunch I had last week: sundried tomato hummus and fresh tomatoes on a slice of baguette. (Tartine is just a fancy French word for open-face sandwich! Sounds nice, doesn't it?)
The best part?
It was almost completely free. I had worked an event at the Deutsches Haus that night and got to take all the yummy leftover hors d'oeuvres home: fresh baguettes, cheese, and this lovely hummus (I adore sundried tomatoes!).
Not much of a recipe, but it was delicious!


| PostgreSQL 9.0.10 Documentation | ||||
|---|---|---|---|---|
| Prev | Up | Appendix F. Additional Supplied Modules | Next |
dict_xsyn (Extended Synonym Dictionary) is an example of an add-on dictionary template for full-text search. This dictionary type replaces words with groups of their synonyms, and so makes it possible to search for a word using any of its synonyms.
A dict_xsyn dictionary accepts the following options:
matchorig controls whether the original word is accepted by the dictionary. Default is true.
matchsynonyms controls whether the synonyms are accepted by the dictionary. Default is false.
keeporig controls whether the original word is included in the dictionary's output. Default is true.
keepsynonyms controls whether the synonyms are included in the dictionary's output. Default is true.
rules is the base name of the file containing the list of synonyms. This file must be stored in $SHAREDIR/tsearch_data/ (where $SHAREDIR means the PostgreSQL installation's shared-data directory). Its name must end in .rules (which is not to be included in the rules parameter).
The rules file has the following format:
Each line represents a group of synonyms for a single word, which is given first on the line. Synonyms are separated by whitespace, thus:
word syn1 syn2 syn3
The sharp (#) sign is a comment delimiter. It may appear at any position in a line. The rest of the line will be skipped.
Look at xsyn_sample.rules, which is installed in $SHAREDIR/tsearch_data/, for an example.
Running the installation script creates a text search template xsyn_template and a dictionary xsyn based on it, with default parameters. You can alter the parameters, for example
mydb# ALTER TEXT SEARCH DICTIONARY xsyn (RULES='my_rules', KEEPORIG=false); ALTER TEXT SEARCH DICTIONARY
or create new dictionaries based on the template.
To test the dictionary, you can try
mydb=# SELECT ts_lexize('xsyn', 'word'); ts_lexize ----------------------- {syn1,syn2,syn3} mydb# ALTER TEXT SEARCH DICTIONARY xsyn (RULES='my_rules', KEEPORIG=true); ALTER TEXT SEARCH DICTIONARY mydb=# SELECT ts_lexize('xsyn', 'word'); ts_lexize ----------------------- {word,syn1,syn2,syn3} mydb# ALTER TEXT SEARCH DICTIONARY xsyn (RULES='my_rules', KEEPORIG=false, MATCHSYNONYMS=true); ALTER TEXT SEARCH DICTIONARY mydb=# SELECT ts_lexize('xsyn', 'syn1'); ts_lexize ----------------------- {syn1,syn2,syn3} mydb# ALTER TEXT SEARCH DICTIONARY xsyn (RULES='my_rules', KEEPORIG=true, MATCHORIG=false, KEEPSYNONYMS=false); ALTER TEXT SEARCH DICTIONARY mydb=# SELECT ts_lexize('xsyn', 'syn1'); ts_lexize ----------------------- {word}
Real-world usage will involve including it in a text search configuration as described in Chapter 12. That might look like this:
ALTER TEXT SEARCH CONFIGURATION english ALTER MAPPING FOR word, asciiword WITH xsyn, english_stem;


Kyle Isom
Software Engineer
http://www.kyleisom.net
<EMAIL_ADDRESS>Skills
- Development: C, Python, Clojure, Objective-C, UNIX / POSIX programming
- Software Engineering: GNU Autotools suite, LaTeX, Texinfo,
- Development Tools: Valgrind, lint, rats, vim, emacs
- I know how to do the other engineering involved with software
projects, such as documentation, build system setup, and developing
useful unit tests.
- I have a strong background in computer security, particularly the
field of secure programming. Some of my security skills include
penetration testing, reverse engineering, and proactive network
defense.
Work Experience
- EchoStar Technologies, L.L.C. (Englewood, CO / Software Security Engineer)
- July 2010 - Present
- Conduct code reviews and audits in C and C++.
- Patch Linux kernel for embedded devices to address site-specific
security requirements.
- Write Python code to generate encrypted softtware updates for
Linux-based set top boxes.
Selected Open Source Projects and Publications
- Crypto Intro (Python)
- An introduction to Cryptography with PyCrypto
- Published June 2011
- Introduces cryptography to developers who may not have a solid
understanding of not only what cryptography is, but also when to use
it.
- Uses Python to clearly introduce how to properly integrate
cryptography into projects
- Includes source code examples with tests.
Libdaemon (C)
- A lightweight POSIX daemon library.
- Published September 2011
- Written to satisfy the need for a common API to daemonise programs
written in C.
- Satisfies requirement that programs using the library compile and
run under OpenBSD, OS X, and Linux.
Woofs (Python)
- Share files easily from the commandline.
- Published July 2011
- Designed to quickly share a file over HTTPS.
- Addresses the fact that similar programs were not using TLS/SSL.
Current Classes:


Actress Sawajiri tests negative after admitting drug use
TOKYO — Actress Erika Sawajiri, arrested for allegedly possessing the synthetic drug MDMA, has tested negative in a urine test for MDMA and other illegal drugs, police said Wednesday.
After she was arrested last week, the 33-year-old told investigators that she obtained MDMA from an acquaintance a few weeks ago at a nightclub and admitted to taking the drug, also called Ecstasy.
MDMA usually goes out of a person's system within two to three days after taking it, and Sawajiri took the test on a voluntary basis on Saturday, the day she was arrested, according to the Metropolitan Police Department.
The police are trying to trace how she obtained drugs by analyzing data in a confiscated mobile phone, among other steps.
Sawajiri was quoted as telling investigators, "I first used illegal drugs more than 10 years ago, and I also used marijuana, LSD, and cocaine," according to the police.
The police searched her home in Tokyo on Saturday morning when she returned after a night out at a club in the Shibuya shopping and nightlife district, and found 0.09 gram of powder containing MDMA.
She did not have any illegal drugs in her possession when she came home.
MDMA is a popular street drug especially among young people.
Sawajiri was cast to play the role of 16th-century Japanese warlord Oda Nobunaga's wife in public broadcaster NHK's historical drama series "Kirin ga Kuru" in 2020.
© KYODO


Please enter the email address you used to create your account and we will send you a confirmation email.
Don't forget to check your junk folder as it may be filtered.


Course Name: {{course.title}} {{course.description}} {{course.created_at}} {%else%} Course not available


{% load i18n %} {% with width=width|default:"800"%} {% include 'includes/base/html_head.html'%}
|
{% block header%}
{% include 'emails/includes/base/header_row.html' with width=width%}
{% endblock %}
|


MKHTMLExtractorDelegate Protocol Reference
| Conforms to | NSObject |
| Declared in | MKHTMLExtractorDelegate.h |
Overview
The MKHTMLExtractorDelegate send messages from the the MKHTMLExtractor class.
Tasks
-
- extractor:didFindPage:content:
Called when a page of contents is found by an extractor. -
- extractorHTMLHeaderPath:
Called when the optimizedOutputForiPhone property is set toYES
. -
- extractor:didError:
Called if an extractor errors
Instance Methods
extractor:didError:
Called if an extractor errors
- (void)extractor:(MKHTMLExtractor *)extractor didError:(NSError *)error
Parameters
- extractor
- the extractor instance that encountered an error.
- error
- the error that was encountered.
Declared In
MKHTMLExtractorDelegate.h
extractor:didFindPage:content:
Called when a page of contents is found by an extractor.
- (void)extractor:(MKHTMLExtractor *)extactor didFindPage:(NSInteger)page content:(NSString *)htmlString
Parameters
- page
- the page number that was found
- the
- extacted contents of the page
- extractor
- the MKHTMLExtractor instance that found a page.
Declared In
MKHTMLExtractorDelegate.h
extractorHTMLHeaderPath:
Called when the optimizedOutputForiPhone property is set to YES
.
- (NSString *)extractorHTMLHeaderPath:(MKHTMLExtractor *)extractor
Parameters
- extractor
- the instance of MKHTMLExtractor that called this method
Return Value
NSString The path to an HTML file containg  tag information.
Discussion
Called when the optimizedOutputForiPhone property is set to YES
.
This method should return the path to an HTML file containing information of the  tag. This can be used to style the output from MKHTMLExtractor. If the optimizedOutputForiPhone property of MKHTMLExtractor is set YES
, HTML code is added to the output to support styling of the page.
- Titles will be wraped in

tags. - Authors will be wraped in

tags. - Paragaraphs will be wraped in

tags. - Sources will be wraped in

tags.
Declared In
MKHTMLExtractorDelegate.h


| About Dailyrotten |
|
Feedback
If you like this page, hate it, or would like to suggest changes,
<EMAIL_ADDRESS>is listening. This page
is experimental and somewhat different from what we usually offer, so please
do send your feedback.
Adding Stories
If you are a rotten newshound and you would like to suggest a story,
visit our submit page to
send us the URL. Stories that are accepted will have your name credited.
Viewership
On the first full day this page went live, 100,000 people visited this Rotten
News page. Of course that was the day after the WTC attacks, so that number is
somewhat distorted. Right now this page gets between 50,000 and 75,000 people
every day.
Linking
We encourage everyone to link to this page; if you like it, others probably
will as well.
Other Rotten
Rotten
Gaping Maw
Celebrity Morgue
Mugshots
Rotten Store
Shockumentary
Rate My Poo
Rate My Kitten
Rate My Finger
Penny Postcards
Phallic
Dr. Sputnik
Boners
Dead Pool
NNDB
Home
Make Dailyrotten your start page
|
|
|
August 04, 2003
Larry Flynt praying for Bill O'Reilly's death
larryflynt.com | Submitted by: M. Richardson
"Larry Flynt invites you to join him in prayer. On Tuesday, August 5th at 12:45pm, he has organized a special gathering to pray to God for Fox News Channel blowhard Bill O'Reilly's death. ...  O, Lord, may his blood vessels bulge out of his head and explode without mercy. May he writhe in agony -- '" [And so on.]
|
|
Read article...
|
|
Wife commits rape, husband takes punishment
Arab News | Submitted by: I hate everything
"A court in Jeddah sentenced a businessman to three years in prison for the torture inflicted by his wife on their Indonesian maid, a newspaper reported yesterday. According to Al-Madinah newspaper, Judge Muhammed Amin Mordad said the wife tortured the Indonesian maid 'by inserting a heated screwdriver into her genitals.' ... The businessman husband, who did not know about his wife’s torture of the maid, took responsibility for her actions, and was also sentenced to a unspecified number of lashings and ordered to pay $10,000 in damages."
|
|
Read article...
|
|
The sound of fan blades struck by flying crap
Independent | Submitted by: Reid Fleming
"The former American diplomat who exposed false claims that Iraq was trying to purchase uranium from Niger has accused members of the Bush administration of a dirty tricks campaign against him. The revelation of Joseph Wilson's investigation in the African state forced President George Bush to retract claims about Iraq's attempts to buy uranium made in his State of the Union speech two months before the war began. The Administration is alleged to have leaked the name of Mr Wilson's wife, an undercover CIA operative in the field of weapons of mass destruction, with the aim of discrediting him. ... US intelligence officials and the Democrats are furious about the move, arguing that it jeopardises Ms Plame's work and undermines her husband. They have called for an inquiry." [That's a federal crime. Somebody's going down for this.]
|
|
Read article...
|
|
Alleged cocoa thief slashed, paraded around nude
pidp.eastwestcenter.org | Submitted by: Reid Fleming
"A high school student suspected of stealing wet cocoa beans was stripped naked and paraded in two public places in Kokopo on Tuesday after five of his fingers were cut. ... An eyewitness said between 11.30am and noon on Tuesday, a cocoa grower from a village along the Kuradui road shouted out in Tok Pidgin for everyone to come out of the shop at Talina -- telling them to take a look at 'this boy who stole my cocoa.' The eyewitness said the young man was stripped naked, had five fingers on his right hand slashed and was dripping blood. He said the boy covered his private parts with his bloodied hands while the man spoke to members of the public."
|
|
Read article...
|
|
Brooklyn judges on the take
Associated Press | Submitted by: Reid Fleming
"After 14 years on the bench, Judge Victor Barron spoke with authority at a sentencing last year when he declared, 'No one is above the law.' The sentencing, after all, was his own. The silver-haired Brooklyn judge was led out of the courtroom in handcuffs to begin a three- to nine-year prison term for taking thousands of dollars in bribes -- perhaps the most troubling scene so far in a judicial corruption scandal that one watchdog group calls the worst in the nation."
|
|
Read article...
|
|
American troops beat shit out of Japanese reporter in Iraq
Toronto Star | Submitted by: Reid Fleming
"A Japanese journalist who was manhandled by U.S. troops in Iraq on July 27 is recovering from injuries sustained during the confrontation but remains outraged at the use of excessive force against him, said co-worker Mika Yamamoto. ... 'An American soldier twisted my arm behind my back and told me to show her some ID, but by the time I had managed to find it, the soldier said that I was too late... As the soldier began to lead me away, Sato began to protest and claimed that we had done nothing wrong by filming the scene and that this was an unreasonable reaction. When he said that, a nearby soldier began kicking him and then another four or five soldiers took him to the ground, removed the safeties from their weapons, aimed their guns at his head and continued to kick at him repeatedly.' ... Sato sustained several cuts to his face and arms, and bruises on his back and stomach."
|
|
Read article...
|
|
NYC prosecutors to charge DNA samples with rape
ny1.com | Submitted by: Adam Wilks
"To effectively eliminate the statute of limitations in aging cases, New York will become the first city in the nation to make rape indictments based solely on a DNA profile, before a suspect is even identified, Mayor Michael Bloomberg announced Monday. If an an individual is eventually arrested and linked to the crime by DNA evidence, the suspect will go on trial, regardless of how much time has elapsed, Bloomberg said. Under state law, indictments cannot be made in crimes more than 10 years old. ... Bloomberg said the city has been lobbying state lawmakers for three years to eliminate the statute of limitations, due to the success of using DNA to solve old cases. He said the pleas will continue despite the new program." [Doesn't exactly sound legal.]
|
|
Read article...
|
|
Thong Man's death ruled a suicide
San Antonio Express-News | Submitted by: Daniel Gossett
"The death of Joseph Gottschalk, an eccentric who liked to pedal San Antonio streets wearing shoes and a thong, was ruled a suicide Saturday. The decision came more than a month after his naked body was found June 21 below a cliff at Big Bend National Park. ... A few days before going to Big Bend, Gottschalk, 52, had told a friend, Norm Billings, that he intended to jump from the South Rim of the Chisos Mountains at the park, Williams said. ... Gottschalk made himself the talk of the town and earned the nickname 'Thong Man' by riding his bicycle wearing nothing but a thong."
|
|
Read article...
|
|
School superintendent fails must-pass English test
Eagle-Tribune | Submitted by: Jim Jones
"Schools Superintendent Wilfredo T. Laboy has three times failed a basic literacy test all state educators are required to pass, The Eagle-Tribune has learned. Calling it a 'frustrating' and 'emotional' issue, Laboy blamed his failing scores on a lack of preparation and concentration and the fact that English is his second language. ... The revelation comes at a time when students across the state -- even non-English speakers -- are being forced to pass the MCAS in order to receive a high school diploma."
|
|
Read article...
|
|
Japan unwilling to give up sexism
New York Times | Submitted by: LucrezaBorgia
"Japan has tried all sorts of remedies to pull itself out of a 13-year economic slump, from huge public works projects to bailouts of failing companies. Many experts have concluded that the expanding the role of women in professional life could provide a far bigger stimulus than any scheme tried so far. But it often seems that the Japanese would rather let their economy stagnate than send their women up the corporate ladder. ... Earlier this year, former Prime Minister Yoshiro Mori, a member of a government commission charged with finding solutions to the population crisis, was widely quoted as saying the main reason for Japan's falling birthrate was the overeducation of its women. Mr. Koizumi's top aide, Yasuo Fukuda, was recently quoted as saying that often women who are raped deserve it, while a legislator from the governing party said, approvingly, that the men who carried out such acts were virile and 'good specimens.'"
|
|
Read article...
|
|
People unhappy about Mel Gibson's pet project
Guardian | Submitted by: FaceInTheSea
"On the face of it Mel Gibson's new film, The Passion, appears to be little more than a work of celluloid self-indulgence by a Hollywood veteran. Portraying the final 12 hours of the life of Jesus Christ, it has no distributor, features no stars and the dialogue is in Latin and Aramaic. ... The star has claimed the 'Holy Ghost was working through me on this film, and I was just directing traffic. I hope the film has the power to evangelise.' But a panel of three Jewish and six Catholic scholars, who have studied a draft script, say the film is anti-semitic and theologically inaccurate, portraying Jews as bloodthirsty and vengeful and reviving the worst traditions of the passion plays which contributed to deadly attacks against Jews over the centuries." [Don't worry, they can fix all that in post.]
|
|
Read article...
|
|
Ex-FBI agent embezzles $1.5 million
Washington Times | Submitted by: Reid Fleming
"A former New Hampshire FBI agent pleaded guilty Monday in federal court in Boston to one count of mail fraud in a scheme to steal $1.5 million. M. William Potts III, a former FBI supervisor in charge of investigating white-collar crime, was employed most recently by Jelmoli Holding Inc. ... Potts wrote 20 checks totaling $1.5 million on Jelmoli's bank account but he used the money to satisfy securities margin calls on his own personal securities accounts."
|
|
Read article...
|
|
Film clip of Van Gogh just a hoax
USA Today | Submitted by: Reid Fleming
"A team of Dutch filmmakers who said they had made a documentary about a snippet of film showing Vincent van Gogh admitted Monday that the claim was a hoax, the Dutch national news service said. The filmmakers had claimed a grainy passer-by in the film was the brilliant but troubled painter. Van Gogh committed suicide in 1890, when photography was still young and celluloid film had scarcely been invented. ... The film supposedly lay for almost a century in a damp attic before it was discovered in 1984 and restored."
|
|
Read article...
|
|
HavenCo going under, maybe
CNET News.com | Submitted by: Reid Fleming
"A widely publicized project to transform a man-made platform in the English Channel into a 'safe haven' for controversial Web businesses has failed due to political, technical and management problems, one of the company's founders said. ... HavenCo is located on a rusting, basketball-court-size fortress erected by the British military during World War II to shoot down Nazi aircraft. Roy Bates, the quirky 'crown prince' of 'Sealand' landed on the abandoned platform in 1966 and claimed it as an independent nation with its own currency, stamps and flag. Although its legal status is unclear, Sealand lies within the territorial boundary of 10 miles claimed by England. ... A Sealand representative said in an e-mail interview on Monday that 'HavenCo is a viable operation.'"
|
|
Read article...
|
|
White trash arrested after Jerry Springer appearance
WCAU-TV 10 Philadelphia | Submitted by: Fast01Gt
"A Wildwood man who bragged on television that he dumped his girlfriend for her mother was sentenced to one year in prison Thursday for criminal sexual contact. ... When Cape May County prosecutors watched the show on tape after being given a tip, they listened as Alexander and his 22-year-old girlfriend, Rita Koelle (pictured, right), spoke of their 7-year-old child, one of Koelle's five children.  He had been 20 years old at the time the child was born."
|
|
Read article...
|
|
|
|
|


Chain3 JavaScript API¶
Chain3 JavaScript API was built for MOAC chain. It followed the Ethereum web3.js API routines so the users can easily move their Ðapp to MOAC chain.
To make a Ðapp work on MOAC network, user should use the chain3
object provided by the chain3.js
library. It communicates to
a local MOAC node through RPC
calls. chain3.js
works with any MOAC node, which exposes an RPC layer.
chain3
contains the mc
object - chain3.mc
(for MOAC
blockchain VNODE interactions) and account.js (for transaction signing).
Over time we’ll introduce other objects such as SCS for the other chain3
protocols. Working examples can be found
here.
Using callbacks¶
As this API is designed to work with a local RPC node and all its functions are by default use synchronous HTTP requests.con
If you want to make an asynchronous request, you can pass an optional callback as the last parameter to most functions. All callbacks are using an error first callback style:
chain3.mc.getBlock(48, function(error, result){
if(!error)
console.log(result)
else
console.error(error);
})
Batch requests¶
Batch requests allow queuing up requests and processing them at once.
var batch = chain3.createBatch();
batch.add(chain3.mc.getBalance.request('0x0000000000000000000000000000000000000000', 'latest', callback));
batch.add(chain3.mc.contract(abi).at(address).balance.request(address, callback2));
batch.execute();
A note on big numbers in chain3.js¶
You will always get a BigNumber object for balance values as JavaScript is not able to handle big numbers correctly. Look at the following examples:
"101010100324325345346456456456456456456"
// "101010100324325345346456456456456456456"
101010100324325345346456456456456456456
// 1.0101010032432535e+38
chain3.js depends on the BigNumber Library and adds it automatically.
var balance = new BigNumber('123456786979284780000000000');
// or var balance = chain3.mc.getBalance(someAddress);
balance.plus(21).toString(10); // toString(10) converts it to a number string
// "123456786979284780000000021"
The next example wouldn’t work as we have more than 20 floating points, therefore it is recommended that you always keep your balance in sha and only transform it to other units when presenting to the user:
var balance = new BigNumber('13124.234435346456466666457455567456');
balance.plus(21).toString(10); // toString(10) converts it to a number string, but can only show max 20 floating points
// "13145.23443534645646666646" // you number would be cut after the 20 floating point
Chain3 Javascript Ðapp API Reference¶
- chain3
- version
- isConnected()
- setProvider(provider)
- currentProvider
- reset()
- sha3(string)
- toHex(stringOrNumber)
- toAscii(hexString)
- fromAscii(textString, [padding])
- toDecimal(hexString)
- toChecksumAddress(string)
- fromDecimal(number)
- fromSha(numberStringOrBigNumber, unit)
- toSha(numberStringOrBigNumber, unit)
- toBigNumber(numberOrHexString)
- isAddress(hexString)
- net
- mc
- defaultAccount
- defaultBlock
- syncing/getSyncing
- isSyncing
- coinbase/getCoinbase
- hashrate/getHashrate
- gasPrice/getGasPrice
- accounts/getAccounts
- mining/getMining
- blockNumber/getBlockNumber
- getBalance(address)
- getStorageAt(address, position)
- getCode(address)
- getBlock(hash/number)
- getBlockTransactionCount(hash/number)
- getUncle(hash/number)
- getBlockUncleCount(hash/number)
- getTransaction(hash)
- getTransactionFromBlock(hashOrNumber, indexNumber)
- getTransactionReceipt(hash)
- getTransactionCount(address)
- sendTransaction(object)
- call(object)
- estimateGas(object)
- filter(array (, options) )
- contract(abiArray)
- contract.myMethod()
- contract.myEvent()
- contract.allEvents()
- encodeParams
- namereg
- sendIBANTransaction
- iban
- fromAddress
- fromBban
- createIndirect
- isValid
- isDirect
- isIndirect
- checksum
- institution
- client
- address
- toString
Usage¶
chain3.version.api
The chain3
object provides all methods.
Example¶
var Chain3 = require('chain3');
// create an instance of chain3 using the HTTP provider.
var chain3 = new Chain3(new Chain3.providers.HttpProvider("http://localhost:8545"));
chain3.version.api
chain3.version.api
// or async
chain3.version.getApi(callback(error, result){ ... })
Returns¶
String
- The moac js api version.
Example¶
var version = chain3.version.api;
console.log(version); // "0.2.0"
chain3.version.node
chain3.version.node
// or async
chain3.version.getClient(callback(error, result){ ... })
Returns¶
String
- The client/node version.
Example¶
var version = chain3.version.node;
console.log(version); // "Moac/v0.1.0-develop/darwin-amd64/go1.9"
chain3.version.network
chain3.version.network
// or async
chain3.version.getNetwork(callback(error, result){ ... })
Returns¶
String
- The network protocol version.
Example¶
var version = chain3.version.network;
console.log(version); // 54
chain3.version.moac
chain3.version.moac
// or async
chain3.version.getMoac(callback(error, result){ ... })
Returns¶
String
- The moac protocol version.
Example¶
var version = chain3.version.moac;
console.log(version); // 0x3f
chain3.isConnected
chain3.isConnected()
Should be called to check if a connection to a node exists
Parameters¶
none
Returns¶
Boolean
Example¶
if(!chain3.isConnected()) {
// show some dialog to ask the user to start a node
} else {
// start chain3 filters, calls, etc
}
chain3.setProvider
chain3.setProvider(provider)
Should be called to set provider.
Parameters¶
none
Returns¶
undefined
Example¶
chain3.setProvider(new chain3.providers.HttpProvider('http://localhost:8545')); // 8545 for go/moac
chain3.currentProvider
chain3.currentProvider
Will contain the current provider, if one is set. This can be used to check if moac etc. set already a provider.
Returns¶
Object
- The provider set or null
;
Example¶
// Check if moac etc. already set a provider
if(!chain3.currentProvider)
chain3.setProvider(new chain3.providers.HttpProvider("http://localhost:8545"));
chain3.reset
chain3.reset(keepIsSyncing)
Should be called to reset state of chain3. Resets everything except manager. Uninstalls all filters. Stops polling.
Parameters¶
Boolean
- Iftrue
it will uninstall all filters, but will keep the chain3.mc.isSyncing() polls
Returns¶
undefined
Parameters¶
String
- The string to hash using the SHA3 algorithmFunction
- (optional) If you pass a callback the HTTP request is made asynchronous. See this note for details.
Returns¶
String
- The SHA3 of the given data.
Example¶
var str = chain3.sha3("Some ASCII string to be hashed in MOAC");
console.log(str); // "0xbfa24877cd68e6734710402a2af3e29cf18bd6d2f304aa528ffa3a32fa7652d2"
chain3.toHex
chain3.toHex(mixed);
Converts any value into HEX.
Parameters¶
String|Number|Object|Array|BigNumber
- The value to parse to HEX. If its an object or array it will beJSON.stringify
first. If its a BigNumber it will make it the HEX value of a number.
Returns¶
String
- The hex string of mixed
.
Example¶
var str = chain3.toHex("moac network");
console.log(str); // '0x6d6f6163206e6574776f726b'
console.log(chain3.toHex({moac: 'test'}));
//'0x7b226d6f6163223a2274657374227d'
chain3.toAscii
Parameters¶
String
- A HEX string to be converted to ascii.
Returns¶
String
- An ASCII string made from the given hexString
.
Example¶
var str = chain3.toAscii("0x0x6d6f6163206e6574776f726b");
console.log(str); // "moac network"
chain3.fromAscii
chain3.fromAscii(string);
Converts any ASCII string to a HEX string.
Parameters¶
String
- An ASCII string to be converted to HEX.
Returns¶
String
- The converted HEX string.
Example¶
var str = chain3.fromAscii('moac network');
console.log(str); // "0x6d6f6163206e6574776f726b"
chain3.toChecksumAddress
chain3.toChecksumAddress(hexString);
Converts a string to the checksummed address equivalent.
Parameters¶
String
- A string to be converted to a checksummed address.
Returns¶
String
- A string containing the checksummed address.
Example¶
var myAddress = chain3.toChecksumAddress('0xa0c876ec9f2d817c4304a727536f36363840c02c');
console.log(myAddress); // '0xA0C876eC9F2d817c4304A727536f36363840c02c'
chain3.toDecimal
chain3.toDecimal(hexString);
Converts a HEX string to its number representation.
Parameters¶
String
- An HEX string to be converted to a number.
Returns¶
Number
- The number representing the data hexString
.
Example¶
var number = chain3.toDecimal('0x15');
console.log(number); // 21
chain3.fromDecimal
chain3.fromDecimal(number);
Converts a number or number string to its HEX representation.
Parameters¶
Number|String
- A number to be converted to a HEX string.
Returns¶
String
- The HEX string representing of the given number
.
Example¶
var value = chain3.fromDecimal('21');
console.log(value); // "0x15"
chain3.fromSha
chain3.fromSha(number, unit)
Converts a number of sha into the following moac units:
ksha
/femtomc
msha
/picomc
gsha
/nano
/xiao
micro
/sand
milli
mc
kmc
/grand
mmc
gmc
tmc
Parameters¶
Number|String|BigNumber
- A number or BigNumber instance.String
- One of the above moac units.
Returns¶
String|BigNumber
- Either a number string, or a BigNumber instance,
depending on the given number
parameter.
Example¶
var value = chain3.fromSha('21000000000000', 'Xiao');
console.log(value); // "21000"
chain3.toSha
chain3.toSha(number, unit)
Converts a moac unit into sha. Possible units are:
ksha
/femtomc
msha
/picomc
gsha
/nano
/xiao
micro
/sand
milli
mc
kmc
/grand
mmc
gmc
tmc
Parameters¶
Number|String|BigNumber
- A number or BigNumber instance.String
- One of the above moac units.
Returns¶
String|BigNumber
- Either a number string, or a BigNumber instance,
depending on the given number
parameter.
Example¶
var value = chain3.toSha('1', 'mc');
console.log(value); // "1000000000000000000" = 1e18
chain3.toBigNumber
chain3.toBigNumber(numberOrHexString);
Converts a given number into a BigNumber instance.
See the note on BigNumber.
Parameters¶
Number|String
- A number, number string or HEX string of a number.
Returns¶
BigNumber
- A BigNumber instance representing the given value.
Example¶
var value = chain3.toBigNumber('200000000000000000000001');
console.log(value); // instanceOf BigNumber, { [String: '2.00000000000000000000001e+23'] s: 1, e: 23, c: [<PHONE_NUMBER>, 1 ] }
console.log(value.toNumber()); // 2.0000000000000002e+23
console.log(value.toString(10)); // '200000000000000000000001'
chain3.net
chain3.net.listening
chain3.net.listening
// or async
chain3.net.getListening(callback(error, result){ ... })
This property is read only and says whether the node is actively listening for network connections or not.
Returns¶
Boolean
- true
if the client is actively listening for network
connections, otherwise false
.
Example¶
var listening = chain3.net.listening;
console.log(listening); // true of false
chain3.net.peerCount
chain3.net.peerCount
// or async
chain3.net.getPeerCount(callback(error, result){ ... })
This property is read only and returns the number of connected peers.
Returns¶
Number
- The number of peers currently connected to the client.
Example¶
var peerCount = chain3.net.peerCount;
console.log(peerCount); // 4
chain3.mc
Contains the MOAC blockchain related methods.
Example¶
var mc = chain3.mc;
chain3.mc.defaultAccount
chain3.mc.defaultAccount
This default address is used for the following methods (optionally you
can overwrite it by specifying the from
property):
Values¶
String
, 20 Bytes - Any address you own, or where you have the
private key for.
Default is undefined
.
Returns¶
String
, 20 Bytes - The currently set default address.
Example¶
var defaultAccount = chain3.mc.defaultAccount;
console.log(defaultAccount); // 'undefined'
// set the default block
chain3.mc.defaultAccount = '0x8888f1f195afa192cfee860698584c030f4c9db1';
console.log(chain3.mc.defaultAccount);//'0x8888f1f195afa192cfee860698584c030f4c9db1'
chain3.mc.defaultBlock
chain3.mc.defaultBlock
This default block is used for the following methods (optionally you can overwrite the defaultBlock by passing it as the last parameter):
Values¶
Default block parameters can be one of the following:
Number
- a block numberString
-"earliest"
, the genisis blockString
-"latest"
, the latest block (current head of the blockchain)String
-"pending"
, the currently mined block (including pending transactions)
Default is latest
Returns¶
Number|String
- The default block number to use when querying a
state.
Example¶
var defaultBlock = chain3.mc.defaultBlock;
console.log(defaultBlock); // 'latest'
// set the default block
chain3.mc.defaultBlock = 12345;
console.log(chain3.mc.defaultAccount);//'12345'
chain3.mc.syncing
chain3.mc.syncing
// or async
chain3.mc.getSyncing(callback(error, result){ ... })
This property is read only and returns the either a sync object, when
the node is syncing or false
.
Returns¶
Object|Boolean
- A sync object as follows, when the node is
currently syncing or false
: - startingBlock
: Number
- The
block number where the sync started. - currentBlock
: Number
-
The block number where at which block the node currently synced to
already. - highestBlock
: Number
- The estimated block number to
sync to.
Example¶
var sync = chain3.mc.syncing;
console.log(sync);
/*
{
startingBlock: 300,
currentBlock: 312,
highestBlock: 512
}
*/
chain3.mc.isSyncing
chain3.mc.isSyncing(callback);
This convenience function calls the callback
everytime a sync
starts, updates and stops.
Returns¶
Object
- a isSyncing object with the following methods:
syncing.addCallback()
: Adds another callback, which will be called when the node starts or stops syncing.syncing.stopWatching()
: Stops the syncing callbacks.
Callback return value¶
Boolean
- The callback will be fired withtrue
when the syncing starts and withfalse
when it stopped.Object
- While syncing it will return the syncing object:startingBlock
:Number
- The block number where the sync started.currentBlock
:Number
- The block number where at which block the node currently synced to already.highestBlock
:Number
- The estimated block number to sync to.
Example¶
chain3.mc.isSyncing(function(error, sync){
if(!error) {
// stop all app activity
if(sync === true) {
// we use `true`, so it stops all filters, but not the chain3.mc.syncing polling
chain3.reset(true);
// show sync info
} else if(sync) {
console.log(sync.currentBlock);
// re-gain app operation
} else {
// run your app init function...
}
}
});
chain3.mc.coinbase
chain3.mc.coinbase
// or async
chain3.mc.getCoinbase(callback(error, result){ ... })
This property is read only and returns the coinbase address were the mining rewards go to.
Returns¶
String
- The coinbase address of the client.
Example¶
var coinbase = chain3.mc.coinbase;
console.log(coinbase); // "0x407d73d8a49eeb85d32cf465507dd71d507100c1"
chain3.mc.mining
chain3.mc.mining
// or async
chain3.mc.getMining(callback(error, result){ ... })
This property is read only and says whether the node is mining or not.
Returns¶
Boolean
- true
if the client is mining, otherwise false
.
Example¶
var mining = chain3.mc.mining;
console.log(mining); // true or false
chain3.mc.hashrate
chain3.mc.hashrate
// or async
chain3.mc.getHashrate(callback(error, result){ ... })
This property is read only and returns the number of hashes per second that the node is mining with.
Returns¶
Number
- number of hashes per second.
Example¶
var hashrate = chain3.mc.hashrate;
console.log(hashrate); // 493736
chain3.mc.gasPrice
chain3.mc.gasPrice
// or async
chain3.mc.getGasPrice(callback(error, result){ ... })
This property is read only and returns the current gas price. The gas price is determined by the x latest blocks median gas price.
Returns¶
BigNumber
- A BigNumber instance of the current gas price in sha.
See the note on BigNumber.
Example¶
var gasPrice = chain3.mc.gasPrice;
console.log(gasPrice.toString(10)); // "20000000000"
chain3.mc.accounts
chain3.mc.accounts
// or async
chain3.mc.getAccounts(callback(error, result){ ... })
This property is read only and returns a list of accounts the node controls.
Returns¶
Array
- An array of addresses controlled by client.
Example¶
var accounts = chain3.mc.accounts;
console.log(accounts); // ["0x407d73d8a49eeb85d32cf465507dd71d507100c1"]
chain3.mc.blockNumber
chain3.mc.blockNumber
// or async
chain3.mc.getBlockNumber(callback(error, result){ ... })
This property is read only and returns the current block number.
Returns¶
Number
- The number of the most recent block.
Example¶
var number = chain3.mc.blockNumber;
console.log(number); // 2744
chain3.mc.getBalance
chain3.mc.getBalance(addressHexString [, defaultBlock] [, callback])
Get the balance of an address at a given block.
Parameters¶
String
- The address to get the balance of.Number|String
- (optional) If you pass this parameter it will not use the default block set with chain3.mc.defaultBlock.Function
- (optional) If you pass a callback the HTTP request is made asynchronous. See this note for details.
Returns¶
String
- A BigNumber instance of the current balance for the given
address in sha.
See the note on BigNumber.
Example¶
var balance = chain3.mc.getBalance("0x407d73d8a49eeb85d32cf465507dd71d507100c1");
console.log(balance); // instanceof BigNumber
console.log(balance.toString(10)); // '1000000000000'
console.log(balance.toNumber()); //<PHONE_NUMBER>000
chain3.mc.getStorageAt
chain3.mc.getStorageAt(addressHexString, position [, defaultBlock] [, callback])
Get the storage at a specific position of an address.
Parameters¶
String
- The address to get the storage from.Number
- The index position of the storage.Number|String
- (optional) If you pass this parameter it will not use the default block set with chain3.mc.defaultBlock.Function
- (optional) If you pass a callback the HTTP request is made asynchronous. See this note for details.
Returns¶
String
- The value in storage at the given position.
Example¶
var state = chain3.mc.getStorageAt("0x407d73d8a49eeb85d32cf465507dd71d507100c1", 0);
console.log(state); // "0x03"
chain3.mc.getCode
chain3.mc.getCode(addressHexString [, defaultBlock] [, callback])
Get the code at a specific address. For a contract address, return the binary code of the contract.
Parameters¶
String
- The address to get the code from.Number|String
- (optional) If you pass this parameter it will not use the default block set with chain3.mc.defaultBlock.Function
- (optional) If you pass a callback the HTTP request is made asynchronous. See this note for details.
Returns¶
String
- The data at given address addressHexString
.
Example¶
var code = chain3.mc.getCode("0x1d12aec505caa2b8513cdad9a13e9d4806a1b704");
console.log(code); // "0x600160008035811a818181146012578301005b601b6001356025565b8060005260206000f25b600060078202905091905056"
chain3.mc.getBlock
chain3.mc.getBlock(blockHashOrBlockNumber [, returnTransactionObjects] [, callback])
Returns a block matching the block number or block hash.
Parameters¶
String|Number
- The block number or hash. Or the string"earliest"
,"latest"
or"pending"
as in the default block parameter.Boolean
- (optional, defaultfalse
) Iftrue
, the returned block will contain all transactions as objects, iffalse
it will only contains the transaction hashes.Function
- (optional) If you pass a callback the HTTP request is made asynchronous. See this note for details.
Returns¶
Object
- The block object:
number
:Number
- the block number.null
when its pending block.hash
:String
, 32 Bytes - hash of the block.null
when its pending block.parentHash
:String
, 32 Bytes - hash of the parent block.nonce
:String
, 8 Bytes - hash of the generated proof-of-work.null
when its pending block.sha3Uncles
:String
, 32 Bytes - SHA3 of the uncles data in the block.logsBloom
:String
, 256 Bytes - the bloom filter for the logs of the block.null
when its pending block.transactionsRoot
:String
, 32 Bytes - the root of the transaction trie of the blockstateRoot
:String
, 32 Bytes - the root of the final state trie of the block.miner
:String
, 20 Bytes - the address of the beneficiary to whom the mining rewards were given.difficulty
:BigNumber
- integer of the difficulty for this block.totalDifficulty
:BigNumber
- integer of the total difficulty of the chain until this block.extraData
:String
- the “extra data” field of this block.size
:Number
- integer the size of this block in bytes.gasLimit
:Number
- the maximum gas allowed in this block.gasUsed
:Number
- the total used gas by all transactions in this block.timestamp
:Number
- the unix timestamp for when the block was collated.transactions
:Array
- Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter.uncles
:Array
- Array of uncle hashes.
Example¶
var info = chain3.mc.getBlock(0);
console.log(info);
/*
{ difficulty: { [String: '100000000000'] s: 1, e: 11, c: [<PHONE_NUMBER>00 ] },
extraData: '0x31393639415250414e4554373354435049503039425443323031384d4f4143',
gasLimit: 9000000,
gasUsed: 0,
hash: '0x6b9661646439fab926ffc9bccdf3abb572d5209ae59e3390abf76aee4e2d49cd',
logsBloom: '0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
miner: '0x0000000000000000000000000000000000000000',
mixHash: '0x0000000000000000000000000000000000000000000000000000000000000000',
nonce: '0x0000000000000042',
number: 0,
parentHash: '0x0000000000000000000000000000000000000000000000000000000000000000',
receiptsRoot: '0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421',
sha3Uncles: '0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347',
size: 540,
stateRoot: '0xe221c9e4ad19514d7ce3e6b0bec3ad7f6cc293336e59c301cda293cfbda83df6',
timestamp: 0,
totalDifficulty: { [String: '100000000000'] s: 1, e: 11, c: [<PHONE_NUMBER>00 ] },
transactions: [],
transactionsRoot: '0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421',
uncles: [] }
*/
chain3.mc.getBlockTransactionCount
chain3.mc.getBlockTransactionCount(hashStringOrBlockNumber [, callback])
Returns the number of transaction in a given block.
Parameters¶
String|Number
- The block number or hash. Or the string"earliest"
,"latest"
or"pending"
as in the default block parameter.Function
- (optional) If you pass a callback the HTTP request is made asynchronous. See this note for details.
Returns¶
Number
- The number of transactions in the given block.
Example¶
var number = chain3.mc.getBlockTransactionCount("0xddfb8508bff841242099e640efe59f5e5252be1a60fa701d333e1a8bfdee6263");
console.log(number); // 1
chain3.mc.getUncle
chain3.mc.getUncle(blockHashStringOrNumber, uncleNumber [, returnTransactionObjects] [, callback])
Returns a blocks uncle by a given uncle index position.
Parameters¶
String|Number
- The block number or hash. Or the string"earliest"
,"latest"
or"pending"
as in the default block parameter.Number
- The index position of the uncle.Boolean
- (optional, defaultfalse
) Iftrue
, the returned block will contain all transactions as objects, iffalse
it will only contains the transaction hashes.Function
- (optional) If you pass a callback the HTTP request is made asynchronous. See this note for details.
Returns¶
Object
- the returned uncle. For a return value see
chain3.mc.getBlock().
Note: An uncle doesn’t contain individual transactions.
Example¶
var uncle = chain3.mc.getUncle(500, 0);
console.log(uncle); // see chain3.mc.getBlock
chain3.mc.getTransaction
chain3.mc.getTransaction(transactionHash [, callback])
Returns a transaction matching the given transaction hash.
Parameters¶
String
- The transaction hash.Function
- (optional) If you pass a callback the HTTP request is made asynchronous. See this note for details.
Returns¶
Object
- A transaction object its hash transactionHash
:
hash
:String
, 32 Bytes - hash of the transaction.nonce
:Number
- the number of transactions made by the sender prior to this one.blockHash
:String
, 32 Bytes - hash of the block where this transaction was in.null
when its pending.blockNumber
:Number
- block number where this transaction was in.null
when its pending.transactionIndex
:Number
- integer of the transactions index position in the block.null
when its pending.from
:String
, 20 Bytes - address of the sender.to
:String
, 20 Bytes - address of the receiver.null
when its a contract creation transaction.value
:BigNumber
- value transferred in Sha.gasPrice
:BigNumber
- gas price provided by the sender in Sha.gas
:Number
- gas provided by the sender.input
:String
- the data sent along with the transaction.
Example¶
var txhash = "0x687751dd47684f4b5df263ae4ec39f54f057d0e2a1dde56f9d52766849c9c7fe";
var transaction = chain3.mc.getTransaction(txhash);
console.log(transaction);
/*
{ blockHash: '0x716c602d49055b4e24fbe7da952c1ad81820ad0401f3cb3ce12e832fbcc368f5',
blockNumber: 57259,
from: '0x7cfd775c7a97aa632846eff35dcf9dbcf502d0f3',
gas: 1000,
gasPrice: { [String: '200000000000'] s: 1, e: 11, c: [<PHONE_NUMBER>00 ] },
hash: '0xf1c1771204431c1c584e793b49d41586a923c370be93673aac42d66252bc8d0a',
input: '0x',
nonce: 840,
syscnt: '0x0',
to: '0x3435410589ebd06b74079a1e141759d8502aeb8b',
transactionIndex: 689,
value: { [String: '1000000000'] s: 1, e: 9, c: [<PHONE_NUMBER> ] },
v: '0xea',
r: '0x77aa72d0900e436b60f8be377e43dead3567241a85fbeb5517283e2dc8aca2b4',
s: '0x24477ec130fc4101289b37e6107acfe64026c898994273110faa8f19b8ea6985',
shardingFlag: '0x0' }
*/
chain3.mc.getTransactionFromBlock
getTransactionFromBlock(hashStringOrNumber, indexNumber [, callback])
Returns a transaction based on a block hash or number and the transactions index position.
Parameters¶
String
- A block number or hash. Or the string"earliest"
,"latest"
or"pending"
as in the default block parameter.Number
- The transactions index position.Function
- (optional) If you pass a callback the HTTP request is made asynchronous. See this note for details.
Returns¶
Object
- A transaction object, see
chain3.mc.getTransaction:
Example¶
var transaction = chain3.mc.getTransactionFromBlock(921, 2);
console.log(transaction); // see chain3.mc.getTransaction
chain3.mc.getTransactionReceipt
chain3.mc.getTransactionReceipt(hashString [, callback])
Returns the receipt of a transaction by transaction hash.
Note That the receipt is not available for pending transactions.
Parameters¶
String
- The transaction hash.Function
- (optional) If you pass a callback the HTTP request is made asynchronous. See this note for details.
Returns¶
Object
- A transaction receipt object, or null
when no receipt
was found:
blockHash
:String
, 32 Bytes - hash of the block where this transaction was in.blockNumber
:Number
- block number where this transaction was in.transactionHash
:String
, 32 Bytes - hash of the transaction.transactionIndex
:Number
- integer of the transactions index position in the block.from
:String
, 20 Bytes - address of the sender.to
:String
, 20 Bytes - address of the receiver.null
when its a contract creation transaction.cumulativeGasUsed
:Number
- The total amount of gas used when this transaction was executed in the block.gasUsed
:Number
- The amount of gas used by this specific transaction alone.contractAddress
:String
- 20 Bytes - The contract address created, if the transaction was a contract creation, otherwisenull
.logs
:Array
- Array of log objects, which this transaction generated.
Example¶
var receipt = chain3.mc.getTransactionReceipt('0x9fc76417374aa880d4449a1f7f31ec597f00b1f6f3dd2d66f4c9c6c445836d8b');
console.log(receipt);
{
"transactionHash": "0x9fc76417374aa880d4449a1f7f31ec597f00b1f6f3dd2d66f4c9c6c445836d8b",
"transactionIndex": 0,
"blockHash": "0xef95f2f1ed3ca60b048b4bf67cde2195961e0bba6f70bcbea9a2c4e133e34b46",
"blockNumber": 3,
"contractAddress": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
"cumulativeGasUsed": 314159,
"gasUsed": 30234,
"logs": [{
// logs as returned by getFilterLogs, etc.
}, ...]
}
chain3.mc.getTransactionCount
chain3.mc.getTransactionCount(addressHexString [, defaultBlock] [, callback])
Get the numbers of transactions sent from this address.
Parameters¶
String
- The address to get the numbers of transactions from.Number|String
- (optional) If you pass this parameter it will not use the default block set with chain3.mc.defaultBlock.Function
- (optional) If you pass a callback the HTTP request is made asynchronous. See this note for details.
Returns¶
Number
- The number of transactions sent from the given address.
Example¶
var number = chain3.mc.getTransactionCount("0x407d73d8a49eeb85d32cf465507dd71d507100c1");
console.log(number); // 1
chain3.mc.sendTransaction
chain3.mc.sendTransaction(transactionObject [, callback])
Sends a transaction to the network.
Parameters¶
Object
- The transaction object to send:
from
:String
- The address for the sending account. Uses the chain3.mc.defaultAccount property, if not specified.to
:String
- (optional) The destination address of the message, can be an account address or a contract address, left undefined for a contract-creation transaction.value
:Number|String|BigNumber
- (optional) The value transferred for the transaction in Sha, also the endowment if it’s a contract-creation transaction.gas
:Number|String|BigNumber
- (optional, default: To-Be-Determined) The amount of gas to use for the transaction (unused gas is refunded).gasPrice
:Number|String|BigNumber
- (optional, default: To-Be-Determined) The price of gas for this transaction in sha, defaults to the mean network gas price.data
:String
- (optional) Either a byte string containing the associated data of the message, or in the case of a contract-creation transaction, the initialisation code.nonce
:Number
- (optional) Integer of a nonce. This allows to overwrite your own pending transactions that use the same nonce.shardingFlag
:Number|String
- (optional) Set to 1 for micro/subchain direct contract-call, 0 or undefine for global contract-creation transaction.
Function
- (optional) If you pass a callback the HTTP request is made asynchronous. See this note for details.
Returns¶
String
- The 32 Bytes transaction hash as HEX string.
If the transaction was a contract creation use chain3.mc.getTransactionReceipt() to get the contract address, after the transaction was mined.
Example¶
// compiled solidity source code using https://chriseth.github.io/cpp-ethereum/
var code = "603d80600c6000396000f3007c01000000000000000000000000000000000000000000000000000000006000350463c6888fa18114602d57005b600760043502
8060005260206000f3";
chain3.mc.sendTransaction({data: code}, function(err, address) {
if (!err)
console.log(address); // "0x7f9fade1c0d57a7af66ab4ead7c2eb7b11a91385"
});
chain3.mc.call
chain3.mc.call(callObject [, defaultBlock] [, callback])
Executes a message call transaction, which is directly executed in the VM of the node, but never mined into the blockchain.
Parameters¶
Object
- A transaction object see chain3.mc.sendTransaction, with the difference that for calls thefrom
property is optional as well.Number|String
- (optional) If you pass this parameter it will not use the default block set with chain3.mc.defaultBlock.Function
- (optional) If you pass a callback the HTTP request is made asynchronous. See this note for details.
Returns¶
String
- The returned data of the call, e.g. a codes functions
return value.
Example¶
var result = chain3.mc.call({
to: "0xc4abd0339eb8d57087278718986382264244252f",
data: "0xc6888fa10000000000000000000000000000000000000000000000000000000000000003"
});
console.log(result); // "0x0000000000000000000000000000000000000000000000000000000000000015"
chain3.mc.estimateGas
chain3.mc.estimateGas(callObject [, defaultBlock] [, callback])
Executes a message call or transaction, which is directly executed in the VM of the node, but never mined into the blockchain and returns the amount of the gas used.
Parameters¶
See chain3.mc.sendTransaction, expect that all properties are optional.
Returns¶
Number
- the used gas for the simulated call/transaction.
Example¶
var result = chain3.mc.estimateGas({
to: "0xc4abd0339eb8d57087278718986382264244252f",
data: "0xc6888fa10000000000000000000000000000000000000000000000000000000000000003"
});
console.log(result); // "1465"
chain3.mc.filter
// can be 'latest' or 'pending'
var filter = chain3.mc.filter(filterString);
// OR object are log filter options
var filter = chain3.mc.filter(options);
// watch for changes
filter.watch(function(error, result){
if (!error)
console.log(result);
});
// Additionally you can start watching right away, by passing a callback:
chain3.mc.filter(options, function(error, result){
if (!error)
console.log(result);
});
Parameters¶
String|Object
- The string"latest"
or"pending"
to watch for changes in the latest block or pending transactions respectively. Or a filter options object as follows:
fromBlock
:Number|String
- The number of the earliest block (latest
may be given to mean the most recent andpending
currently mining, block). By defaultlatest
.toBlock
:Number|String
- The number of the latest block (latest
may be given to mean the most recent andpending
currently mining, block). By defaultlatest
.address
:String
- An address or a list of addresses to only get logs from particular account(s).topics
:Array of Strings
- An array of values which must each appear in the log entries. The order is important, if you want to leave topics out usenull
, e.g.[null, '0x00...']
. You can also pass another array for each topic with options for that topic e.g.[null, ['option1', 'option2']]
Returns¶
Object
- A filter object with the following methods:
filter.get(callback)
: Returns all of the log entries that fit the filter.filter.watch(callback)
: Watches for state changes that fit the filter and calls the callback. See this note for details.filter.stopWatching()
: Stops the watch and uninstalls the filter in the node. Should always be called once it is done.
Watch callback return value¶
String
- When using the"latest"
parameter, it returns the block hash of the last incoming block.String
- When using the"pending"
parameter, it returns a transaction hash of the last add pending transaction.Object
- When using manual filter options, it returns a log object as follows:logIndex
:Number
- integer of the log index position in the block.null
when its pending log.transactionIndex
:Number
- integer of the transactions index position log was created from.null
when its pending log.transactionHash
:String
, 32 Bytes - hash of the transactions this log was created from.null
when its pending log.blockHash
:String
, 32 Bytes - hash of the block where this log was in.null
when its pending.null
when its pending log.blockNumber
:Number
- the block number where this log was in.null
when its pending.null
when its pending log.address
:String
, 32 Bytes - address from which this log originated.data
:String
- contains one or more 32 Bytes non-indexed arguments of the log.topics
:Array of Strings
- Array of 0 to 4 32 BytesDATA
of indexed log arguments. (In solidity: The first topic is the hash of the signature of the event (e.g.Deposit(address,bytes32,uint256)
), except you declared the event with theanonymous
specifier.)
Note For event filter return values see Contract Events
Example¶
var filter = chain3.mc.filter('pending');
filter.watch(function (error, log) {
console.log(log); // {"address":"0x0000000000000000000000000000000000000000", "data":"0x0000000000000000000000000000000000000000000000000000000000000000", ...}
});
// get all past logs again.
var myResults = filter.get(function(error, logs){ ... });
...
// stops and uninstalls the filter
filter.stopWatching();
chain3.mc.contract
chain3.mc.contract(abiArray)
Creates a contract object for a solidity contract, which can be used to initiate contracts on an address. You can read more about events here.
Parameters¶
Array
- ABI array with descriptions of functions and events of the contract.
Returns¶
Object
- A contract object, which can be initiated as follows:
var MyContract = chain3.mc.contract(abiArray);
// instantiate by address
var contractInstance = MyContract.at([address]);
// deploy new contract
var contractInstance = MyContract.new([contructorParam1] [, contructorParam2], {data: '0x12345...', from: myAccount, gas: 1000000});
// Get the data to deploy the contract manually
var contractData = MyContract.new.getData([contructorParam1] [, contructorParam2], {data: '0x12345...'});
// contractData = '0x12345643213456000000000023434234'
And then you can either initiate an existing contract on an address, or deploy the contract using the compiled byte code:
// Instantiate from an existing address:
var myContractInstance = MyContract.at(myContractAddress);
// Or deploy a new contract:
// Deploy the contract asyncronous:
var myContractReturned = MyContract.new(param1, param2, {
data: myContractCode,
gas: 300000,
from: mySenderAddress}, function(err, myContract){
if(!err) {
// NOTE: The callback will fire twice!
// Once the contract has the transactionHash property set and once its deployed on an address.
// e.g. check tx hash on the first call (transaction send)
if(!myContract.address) {
console.log(myContract.transactionHash) // The hash of the transaction, which deploys the contract
// check address on the second call (contract deployed)
} else {
console.log(myContract.address) // the contract address
}
// Note that the returned "myContractReturned" === "myContract",
// so the returned "myContractReturned" object will also get the address set.
}
});
// Deploy contract syncronous: The address will be added as soon as the contract is mined.
// Additionally you can watch the transaction by using the "transactionHash" property
var myContractInstance = MyContract.new(param1, param2, {data: myContractCode, gas: 300000, from: mySenderAddress});
myContractInstance.transactionHash // The hash of the transaction, which created the contract
myContractInstance.address // undefined at start, but will be auto-filled later
Note When you deploy a new contract, you should check for the next 12 blocks or so if the contract code is still at the address (using chain3.mc.getCode()), to make sure a fork didn’t change that.
Example¶
// contract abi
var abi = [{
name: 'myConstantMethod',
type: 'function',
constant: true,
inputs: [{ name: 'a', type: 'string' }],
outputs: [{name: 'd', type: 'string' }]
}, {
name: 'myStateChangingMethod',
type: 'function',
constant: false,
inputs: [{ name: 'a', type: 'string' }, { name: 'b', type: 'int' }],
outputs: []
}, {
name: 'myEvent',
type: 'event',
inputs: [{name: 'a', type: 'int', indexed: true},{name: 'b', type: 'bool', indexed: false]
}];
// creation of contract object
var MyContract = chain3.mc.contract(abi);
// initiate contract for an address
var myContractInstance = MyContract.at('0xc4abd0339eb8d57087278718986382264244252f');
// call constant function
var result = myContractInstance.myConstantMethod('myParam');
console.log(result) // '0x25434534534'
// send a transaction to a function
myContractInstance.myStateChangingMethod('someParam1', 23, {value: 200, gas: 2000});
// short hand style
chain3.mc.contract(abi).at(address).myAwesomeMethod(...);
// create filter
var filter = myContractInstance.myEvent({a: 5}, function (error, result) {
if (!error)
console.log(result);
/*
{
address: '0x8718986382264244252fc4abd0339eb8d5708727',
topics: "0x12345678901234567890123456789012", "0x0000000000000000000000000000000000000000000000000000000000000005",
data: "0x0000000000000000000000000000000000000000000000000000000000000001",
...
}
*/
});
Contract Methods¶
// Automatically determines the use of call or sendTransaction based on the method type
myContractInstance.myMethod(param1 [, param2, ...] [, transactionObject] [, callback]);
// Explicitly calling this method
myContractInstance.myMethod.call(param1 [, param2, ...] [, transactionObject] [, callback]);
// Explicitly sending a transaction to this method
myContractInstance.myMethod.sendTransaction(param1 [, param2, ...] [, transactionObject] [, callback]);
// Explicitly sending a transaction to this method
myContractInstance.myMethod.sendTransaction(param1 [, param2, ...] [, transactionObject] [, callback]);
// Get the call data, so you can call the contract through some other means
var myCallData = myContractInstance.myMethod.getData(param1 [, param2, ...]);
// myCallData = '0x45ff3ff6000000000004545345345345..'
The contract object exposes the contracts methods, which can be called using parameters and a transaction object.
Parameters¶
String|Number
- (optional) Zero or more parameters of the function.Object
- (optional) The (previous) last parameter can be a transaction object, see chain3.mc.sendTransaction parameter 1 for more.Function
- (optional) If you pass a callback as the last parameter the HTTP request is made asynchronous. See this note for details.
Returns¶
String
- If its a call the result data, if its a send transaction a
created contract address, or the transaction hash, see
chain3.mc.sendTransaction for details.
Example¶
// creation of contract object
var MyContract = chain3.mc.contract(abi);
// initiate contract for an address
var myContractInstance = MyContract.at('0x78e97bcc5b5dd9ed228fed7a4887c0d7287344a9');
var result = myContractInstance.myConstantMethod('myParam');
console.log(result) // '0x25434534534'
myContractInstance.myStateChangingMethod('someParam1', 23, {value: 200, gas: 2000}, function(err, result){ ... });
Contract Events¶
var event = myContractInstance.MyEvent({valueA: 23} [, additionalFilterObject])
// watch for changes
event.watch(function(error, result){
if (!error)
console.log(result);
});
// Or pass a callback to start watching immediately
var event = myContractInstance.MyEvent([{valueA: 23}] [, additionalFilterObject] , function(error, result){
if (!error)
console.log(result);
});
You can use events like filters and they have the same methods, but you pass different objects to create the event filter.
Parameters¶
Object
- Indexed return values you want to filter the logs by, e.g.{'valueA': 1, 'valueB': [myFirstAddress, mySecondAddress]}
. By default all filter values are set tonull
. It means, that they will match any event of given type sent from this contract.Object
- Additional filter options, see filters parameter 1 for more. By default filterObject has field ‘address’ set to address of the contract. Also first topic is the signature of event.Function
- (optional) If you pass a callback as the last parameter it will immediately start watching and you don’t need to callmyEvent.watch(function(){})
. See this note for details.
Callback return¶
Object
- An event object as follows:
args
:Object
- The arguments coming from the event.event
:String
- The event name.logIndex
:Number
- integer of the log index position in the block.transactionIndex
:Number
- integer of the transactions index position log was created from.transactionHash
:String
, 32 Bytes - hash of the transactions this log was created from.address
:String
, 32 Bytes - address from which this log originated.blockHash
:String
, 32 Bytes - hash of the block where this log was in.null
when its pending.blockNumber
:Number
- the block number where this log was in.null
when its pending.
Example¶
var MyContract = chain3.mc.contract(abi);
var myContractInstance = MyContract.at('0x78e97bcc5b5dd9ed228fed7a4887c0d7287344a9');
// watch for an event with {some: 'args'}
var myEvent = myContractInstance.MyEvent({some: 'args'}, {fromBlock: 0, toBlock: 'latest'});
myEvent.watch(function(error, result){
...
});
// would get all past logs again.
var myResults = myEvent.get(function(error, logs){ ... });
...
// would stop and uninstall the filter
myEvent.stopWatching();
Contract allEvents¶
var events = myContractInstance.allEvents([additionalFilterObject]);
// watch for changes
events.watch(function(error, event){
if (!error)
console.log(event);
});
// Or pass a callback to start watching immediately
var events = myContractInstance.allEvents([additionalFilterObject,] function(error, log){
if (!error)
console.log(log);
});
Will call the callback for all events which are created by this contract.
Parameters¶
Object
- Additional filter options, see filters parameter 1 for more. By default filterObject has field ‘address’ set to address of the contract. Also first topic is the signature of event.Function
- (optional) If you pass a callback as the last parameter it will immediately start watching and you don’t need to callmyEvent.watch(function(){})
. See this note for details.
Callback return¶
Object
- See Contract Events for more.
Example¶
var MyContract = chain3.mc.contract(abi);
var myContractInstance = MyContract.at('0x78e97bcc5b5dd9ed228fed7a4887c0d7287344a9');
// watch for an event with {some: 'args'}
var events = myContractInstance.allEvents({fromBlock: 0, toBlock: 'latest'});
events.watch(function(error, result){
...
});
// would get all past logs again.
events.get(function(error, logs){ ... });
...
// would stop and uninstall the filter
myEvent.stopWatching();
chain3.encodeParams
chain3.encodeParams
Encode a list of parameters array into HEX codes. ##### Parameters
types
- list of types of paramsparams
- list of values of params
Example¶
var types = ['int','string'];
var args = [100, '4000'];
var dataHex = '0x' + chain3.encodeParams(types, args);
console.log("encoded params:", dataHex);
// outputs
encoded params:0x0000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000043430303000000000000000000000000000000000000000000000000000000000
chain3.mc.namereg
chain3.mc.namereg
Returns GlobalRegistrar object.
Usage¶
see namereg example
chain3.mc.sendIBANTransaction
var txHash = chain3.mc.sendIBANTransaction('0x00c5496aee77c1ba1f0854206a26dda82a81d6d8', 'XE66MOACXREGGAVOFYORK', 0x100);
Sends IBAN transaction from user account to destination IBAN address.
Parameters¶
string
- address from which we want to send transactionstring
- IBAN address to which we want to send transactionvalue
- value that we want to send in IBAN transaction
chain3.mc.iban
var i = new chain3.mc.iban("XE81ETHXREGGAVOFYORK");
chain3.mc.iban.fromAddress
var i = chain3.mc.iban.fromAddress('0xd814f2ac2c4ca49b33066582e4e97ebae02f2ab9');
console.log(i.toString()); // 'XE72P8O19KRSWXUGDY294PZ66T4ZGF89INT
chain3.mc.iban.fromBban
var i = chain3.mc.iban.fromBban('XE66MOACXREGGAVOFYORK');
console.log(i.toString()); // "XE71XE66MOACXREGGAVOFYORK"
chain3.mc.iban.createIndirect
var i = chain3.mc.iban.createIndirect({
institution: "XREG",
identifier: "GAVOFYORK"
});
console.log(i.toString()); // "XE66MOACXREGGAVOFYORK"
chain3.mc.iban.isValid
var valid = chain3.mc.iban.isValid("XE66MOACXREGGAVOFYORK");
console.log(valid); // true
var valid2 = chain3.mc.iban.isValid("XE76MOACXREGGAVOFYORK");
console.log(valid2); // false, cause checksum is incorrect
var i = new chain3.mc.iban("XE66MOACXREGGAVOFYORK");
var valid3 = i.isValid();
console.log(valid3); // true
chain3.mc.iban.isDirect
var i = new chain3.mc.iban("XE66MOACXREGGAVOFYORK");
var direct = i.isDirect();
console.log(direct); // false
chain3.mc.iban.isIndirect
var i = new chain3.mc.iban("XE66MOACXREGGAVOFYORK");
var indirect = i.isIndirect();
console.log(indirect); // true
chain3.mc.iban.checksum
var i = new chain3.mc.iban("XE66MOACXREGGAVOFYORK");
var checksum = i.checksum();
console.log(checksum); // "66"
chain3.mc.iban.institution
var i = new chain3.mc.iban("XE66MOACXREGGAVOFYORK");
var institution = i.institution();
console.log(institution); // 'XREG'
chain3.mc.iban.client
var i = new chain3.mc.iban("XE66MOACXREGGAVOFYORK");
var client = i.client();
console.log(client); // 'GAVOFYORK'
chain3.mc.iban.address
var i = new chain3.mc.iban('XE72P8O19KRSWXUGDY294PZ66T4ZGF89INT');
var address = i.address();
console.log(address); // 'd814f2ac2c4ca49b33066582e4e97ebae02f2ab9'
chain3.mc.iban.toString
var i = new chain3.mc.iban('XE72P8O19KRSWXUGDY294PZ66T4ZGF89INT');
console.log(i.toString()); // 'XE72P8O19KRSWXUGDY294PZ66T4ZGF89INT'


Select the year and your race.
| Runner |
Bib:{{result.racenumber}}
| {{result.ctitle}}
|
Place |
Place: {{result.position}}
Cat:{{result.agecategory}}
| CatPos:{{result.posincat}}
|
Time |
Time: {{result.racetime}}
Pace: {{result.pace}} | Std:{{result.standard}}
|
|---|


FILM TITLE: JOHNNY STECCHINO DIRECTOR: ROBERTO BENIGNI COUNTRY: ITALY 1992 CINEMATOGRAPHY: GIUSEPPI LANSI MUSIC: EVAN LURIE CAST: Roberto Benigni, Nicoletta Braschi, Paolo Banacelli, Franco Volpi SUPER FEATURES: Roberto Benigni is a good actor. And funny.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I had not seen roberto Benigni, when I was told that I should see this film. I had been debating seeing the latest Pink Panther film, specially when I happen to be a Peter Sellers fanatic. Well, who cares about the panther film, anyway..... this is more like it, and better.
Johnny Stecchino is one of those films that one gets sucked into without knowing why, and eventually, it is because of the double role which the lead actor plays, and even though the acting could be considered a bit campy, it is nice, and a good shift of space.
A lonely guy, happens upon a woman, and falls in love with her, and he thinks she is in love with him. And he finds her ( or she keeps track of him, which is more likely ) a few times, until he is invited to her place in Malta. Lo and behold, as it turns out, he is a carbon copy of the girl's husband who happens to be a Mafia guy who has fallen on hard times and is being chased around. And the plot is to try and get the double shot so the other two can run off.
And the rest is an array of misadventures, that are funny and off the wall, with very subtle gags, and unusual situations. And a tour de force for Roberto Benigni, who also directed the film.
While it isn't the world's best comedy, it does have some very odd comedy bits, that directly say something about both the church and the state, and of course the Mafia.... it seems that if you are in the right side you are government, and if you are in the wrong side you are Mafia..... Ohh well.....
4 GIBLOONS Pedro Sena Member of the Internet Movie Critics Association
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


Liverpool predicted lineup vs Aston Villa as Mohamed Salah to start despite ankle issue
Jurgen Klopp's men look to continue their unbeaten run against Dean Smith's side at Villa Park
by Alex Richards, https://www.facebook.com/AARichards/Liverpool look to continue their unbeaten start to the Premier League season when they face Aston Villa.
The Reds are six points clear of champions Manchester City after nine wins from their opening 10 Premier League matches.
Mohamed Salah's penalty at Anfield last Sunday was enough to secure another three points with a 2-1 win over Tottenham Hotspur.
But the Kop's Egyptian hero continues to nurse an ankle problem, the lasting effects of Hamza Choudhury's challenge in the win over Leicester last month which so infuriated Jurgen Klopp.
Salah has followed a tailored fitness plan during the past week, training away from the rest of the first team before Friday.
However, he is set to start in the West Midlands against the Villans.
"He should be fine," said Klopp. "He has had to do his individual stuff but he will be in training (on Friday).
“I think it is more really annoying - for him, not me - the fact that the injury always has a bit of fluid in, and he has to deal with it, we get it out and it comes back, and stuff like that.
“But this is not a real injury in this sense, so I’ve heard ( from the physios), so he should be fine."
The biggest decision for Klopp involves his midfield, with Fabinho set to be only a substitute at Villa Park; the Brazilian is one booking away from a suspension, which would rule him out of the City clash.
As such, Jordan Henderson is set to play in the deeper role, with Alex Oxlade-Chamberlain starting alongside
Villa are set to have captain Jack Grealish available, after he missed their League Cup win over local rivals Wolves .
Grealish is set to start as part of the front three once more, having been pushed further forward by boss Dean Smith in recent weeks.
Liverpool predicted XI: Alisson; Alexander-Arnold, Lovren, van Dijk, Robertson; Henderson, Wijnaldum, Oxlade-Chamberlain; Salah, Firmino, Mane


The NT port works, but has not been tested extensively.
Currently, under NT4.0 with
Cygwin (version b20.1), prebuilt Cygnwin X11R6 binaries and an X server, we can run
pigi
, the Ptolemy Interactive Graphical Interface.
There are two NT ports: nt4
and nt4.vc
.
nt4
PTARCH
environment variable is set to nt4
,
then we build with Cygwin, which is a port of the GNU tools
to Windows. nt4
is easier to port because Cygwin
allows us to use the Unix GNU makefiles in the regular distribution.
The nt4
port requires that Cygwin be present.
The port was done with version b20.1
of Cygwin
The two biggest problems with the nt4
port is
that it is slow, and incremental linking of stars is not supported.
nt4.vc
PTARCH
is set to nt4.vc
, then we use
Microsoft Windows Visual C++ 5.0. This port relies on using
makefile.vc
files which are MS VC++ versions of the
usually makefile
s.
The nt4.vc
port does not yet work, there
are problems creating dlls. The nt4.vc
port
has not been built recently, and probably does not work.
Currently, we can only compile ptcl.ptiny
using MSVC++. This port is substantially incomplete.
See $PTOLEMY/mk/config-nt4.vc.mk.vc
for
nt4.vc
installation instructions.
nt4.vc
port be completed?
nt4
port has higher priority, so after
pigi
works under nt4
, we may start
work on the nt4.vc
port.


--- layout: archive title: Zulip Chat Archive permalink: /stream/116395-maths/topic/category_theory.2Ecategory_struct.2Ecomp.20arguments.html ---
Hi! What is the reason to have the arguments of category_struct.comp
reversed compared to function.comp
? This way, e.g., an action is a homomorphism to (End β)ᵒᵖ instead of (End β), equiv.perm α
is (Aut α)ᵒᵖ
etc.
I don't think that there's an obstruction to either interpretation.
@Yury G. Kudryashov Welcome on the chat!
Here is a thread with more discussion about composition order: https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Convention.20on.20composition.20order/near/165699204
The opinions are maybe somewhat divided...
One (not entirely satisfactory) solution is to locally provide a notation for "normal" composition order.
@Johan Commelin Thank you for the link! I don't care about notation; I care about has_mul
instance.
Oh, is the End has_mul instance also backwards?
I never noticed that. Yeah, I definitely think we should fix that one
I can submit a PR in a day or two.
You might find that it also affects category.fold
... hopefully not too much of a mess.
I think it should just be a matter of switching the definitions of foldl
and foldr
That's why "a day or two", not "a few minutes after driving my kid to the day care".
[way -> why] :-)
Submitted #1128
Hi @Johan Commelin , could you please tell me what's wrong with the new proofs in #1128? Then I'll try to improve them myself.
@Yury G. Kudryashov I'm really not an expert on Kleisly and fold etc... I think @Simon Hudon is the person to ask.
Most of it looks fine to me. The only thing that worries me is the .get
that were not there before.
There was a .get
(an alias for unop
) for one of foldl/foldr
, and it migrated from one proofs to others. Also, I added .get
to both (as aliases to id
and unop
) to have a common interface to foldl/foldr
. Should I remove the get=id
part?
@Simon Hudon :up: you know much better how you would like this part of the library to behave.
Sorry, I've been meaning to get back to it. I'll have a look today
@Simon Hudon @Johan Commelin Sorry, I tagged a wrong person first on github, then here.
@Simon Hudon Do you have time to take a look at this?
Yes, I'll have a look now. Sorry for taking so long
I made a PR on top of the PR. It's ready to merge if it works for you @Johan Commelin and @Yury G. Kudryashov
{% endraw %}Last updated: Apr 24 2020 at 19:02 UTC


Motion
Motion in physics is mainly about forces. Forces define as any interaction that changes the motion of an object. The question is how is motion being measured? First, you need to find how rapid an object moves, such as the speed or velocity. Acceleration is the measure of how much the velocity of an object changes. Velocities can either decrease or increase over time. Mass is also a huge factor in motion. Mass is the weight of an object and it is measured in grams. For example, a car has a greater mass than an iPhone.
There are three types of motion:
- Translational Motion
- Oscillatory Motion
- Rotational Motion
Translational motion defines as a change of location. In other words, an object can be moving and yet it is not moving to anywhere. For example, a ten-year-old boy walks up in the morning and goes to school at a distance of 10 km, after he finishes school, he is heading back home, where he was first started. Translational motion is the distance that the ten-year-old boy travels to school and back, which is 10 km to go to school and 10 km to come back home for a total of 20 km.
Oscillatory motion defines as a process of moving repeatedly and fluctuates between two locations. In the previous example of a ten-year-old boy going from his house to school and coming back home from school, in the end, he is moving but he did not go anywhere. Imagine a door opens and closes, it moves but goes nowhere that is Oscillatory motion.
Rotational motion happens when an object spins. For example, when a girl rides a bicycle, her wheels are rotating circular motion, that is a rotational motion.


Help poup.
DREME results in plain text format.
DREME results in XML format.
The name of the motif uses the IUPAC codes for nucleotides which has a different letter to represent each of the 15 possible combinations.
The name is itself a representation of the motif though the position weight matrix is not directly equivalent as it is generated from the sites found that matched the letters given in the name.
Read more about the MEME suite's use of the IUPAC alphabets.
The logo of the motif.
The logo of the reverse complement motif.
The E-value is the enrichment p-value times the number of candidate motifs tested.
The enrichment p-value is calculated using Fisher's Exact Test for enrichment of the motif in the positive sequences.
Note that the counts used in Fisher's Exact Test are made after erasing sites that match previously found motifs.
The E-value of the motif calculated without erasing the sites of previously found motifs.
Show more information on the motif.
Submit your motif to another MEME Suite program or download your motif.
# positive sequences matching the motif / # positive sequences.
Note these counts are made after erasing sites that match previously found motifs.
# negative sequences matching the motif / # negative sequences.
Note these counts are made after erasing sites that match previously found motifs.
The p-value of Fisher's Exact Test for enrichment of the motif in the positive sequences.
Note that the counts used in Fisher's Exact Test are made after erasing sites that match previously found motifs.
The E-value is the motif p-value times the number of candidate motifs tested.
Note that the p-value was calculated with counts made after erasing sites that match previously found motifs.
The E-value of the motif calculated without erasing the sites of previously found motifs.
All words matching the motif whose uncorrected p-value is less than .
# positive sequences with matches to the word / # positive sequences.
Note these counts are made after erasing sites that match previously found motifs.
# negative sequences with matches to the word / # negative sequences.
Note these counts are made after erasing sites that match previously found motifs.
The p-value of Fisher's Exact Test for enrichment of the word in the positive sequences.
Note that the counts used in Fisher's Exact Test are made after erasing sites that match previously found motifs.
The word p-value times the number of candidates tested.
Note that the p-value was calculated with counts made after erasing sites that match previously found motifs.
The sequence file used by DREME to find the motifs.
The alphabet of the sequences.
The count of the sequences.
The name of the alphabet symbol.
The frequency of the alphabet symbol in the control dataset.
For further information on how to interpret these results please access
http://meme-suite.org/.
To get a copy of the MEME software please access
http://meme-suite.org.
If you use DREME in your research please cite the following paper:
Timothy L. Bailey, "DREME: Motif discovery in transcription factor ChIP-seq data", Bioinformatics, 27(12):1653-1659, 2011.
[full text]
No motifs were discovered!
| Source | Alphabet | Sequence Count |
|---|---|---|
| Source | Sequence Count |
|---|---|


package away3d.events { import away3d.cameras.*; import flash.events.Event; /** * Passed as a parameter when a camera event occurs */ public class CameraEvent extends Event { /** * Defines the value of the type property of a cameraUpdated event object. */ public static const CAMERA_UPDATED:String = "cameraUpdated"; /** * A reference to the session object that is relevant to the event. */ public var camera:Camera3D; /** * Creates a new CameraEvent object. * * @param type The type of the event. Possible values are: CameraEvent.CAMERA_UPDATED. * @param camera A reference to the camera object that is relevant to the event. */ public function CameraEvent(type:String, camera:Camera3D) { super(type); this.camera = camera; } /** * Creates a copy of the CameraEvent object and sets the value of each property to match that of the original. */ public override function clone():Event { return new CameraEvent(type, camera); } } }


Our dedicated team is always here to help and care for you. Let us know if you have any questions or concerns!


I worked in the corporate world for nearly a decade doing sales and marketing. One of the key things about learning how to market is understanding who your target audience for your product is. You’re on Steem with some idea of wanting to grow your account, get noticed, and have a better life than what the fiat world can offer. To know how to do that it helps to know who is represented on the platform.
Four Stakeholder Groups
Right now I can think of four stakeholder groups and they all have a different footprint and needs on the platform. I think of them as investors, devs, content creators, and merchants. Collectively that covers nearly everyone that’s on here.
Investors
These guys have a lot of Steem. They are an important and powerful minority. Back when Steem was launched Dan and Ned were trying to figure out how to do an ICO legally without the need for registration etc. They settled on an approach that involved telling people they could mine publicly, but not giving a lot of info on how to do it. The people that knew them spent money mining. Others came too and they all have a lot of stake now. Some have millions of Steem. There aren’t many of these accounts. As it stands roughly 93% of the Steem is in the hands of roughly 100 accounts. Most of them mined it, but many bought in as well. The folks that are active non-selfish curators are often looking for what is adding value to the platform. They upvote posts that get eyeballs, dazzle with content, do something cool, or seem to support really good people.
Devs
While there’s a lot of overlap with the whale catagory there are also a fair number of Steem poor devs too. These are folks that came in after mining was closed and didn’t have a chance to mine. They have skills and can make projects for the blockchain. They can code a million apps, but many aren’t social creatures. Many prefer linux coding to human interaction. Some have art or music skills and many do not. If you’re looking to attract and build a relationship with devs consider ways that you can help them achieve their goals first and then follow up by asking for programming favors later.
Bloggers and content creators
This is the majority of people on the platform everyday. Right now there’s about 60k active accounts per day. Most of them are people (and bots) writing content and trying to get noticed by literally anyone. Many come from third world nations that are fairly poor, but they themselves are lucky enough to have food, water, internet, and a phone. These people are the bread and butter from an activity standpoint, but from a wealth standpoint forget it. They basically have no steem. If you’re trying to get in with this crowd try to figure out ways to help them grow their account through tools or communities.
Merchants
This is a nearly non-existent group today, but will eventually form the hardened middle class of the Steem platform. As more people come here to blog more businesses are setup to help them. Programs specific to this platform to take payment, form community, track data, and a million other things are coming. When people show up businesses come too. While this is a minority now figuring out a tool that will help them will help you as well.
So….
There’s your target audiences. As you’re building and doing things on this platform think to yourself what will Bobby the Blogger need or Danny the Dev. Try to think of things that you have struggled with, find the pain point, come up with a solution, and then start on a small scale implementing it. That’s how I think you can grow around these blocks.
This page is synchronized from the post: ‘Making headway on Steem by learning the key stakeholder groups’


Server panicked while
{{.Request.Method}}
to
{{.Request.URI}}
was being processed
Error
{{.Err}}
Hostname
{{.Host}}
Stack Trace
{{range $i, $line := .Stack}} {{$line}}
{{end}}


This is an interactive sudoku solver that works on only the most basic strategies for solving sudokus (which in the vast majority of cases is enough). When ever a cell is entered by a user, the program sets to work figuring out candidates using a simple set of rules.
Read more about the original experiment here.


Hi, ! Your match is here!
We will contact you with details how to proceed later. For now just enjoy a picture of your soulmate!
Hi, ! Your match is here!
We will contact you with details how to proceed later. For now just enjoy a picture of your soulmate!
Hi, ! Your match is here!
We will contact you with details how to proceed later. For now just enjoy a picture of your soulmate!


System Configuration
Subdivision Name label word limit to 30
This should be the standard subdivision name in your country (e.g. district or province). The name will appear in all location labels in the system.
Notification message word limit to 300
This message will be displayed on the IP's UNICEF Shipment page when IPs report on delivery. This will allow you to inform IPs on who to contact if deliveries are not showing up on their dashboard or put any other relevant info related to reporting on deliveries.


--- layout: project title: "Learning Structured Inference Neural Networks with Label Relations" date: 2016-11-22 categories: "computer-vision" authors: - name: Hexiang Hu url: 'https://hexiang-hu.github.io' - name: Guang-Tong Zhou url: 'https://www.cs.sfu.ca/~gza11/personal/' - name: Zhiwei Deng url: 'https://www.sfu.ca/~zhiweid' - name: Zicheng Liao url: 'http://www.zichengl.net/' - name: Greg Mori url: 'https://www.cs.sfu.ca/~mori/' ---
Abstract: Images of scenes have various objects as well as abundant attributes, and diverse levels of visual categorization are possible. A natural image could be assigned with fine-grained labels that describe major components, coarse-grained labels that depict high level abstraction or a set of labels that reveal attributes. Such categorization at different concept layers can be modeled with label graphs encoding label information. In this paper, we exploit this rich information with a state-of-art deep learning framework, and propose a generic structured model that leverages diverse label relations to improve image classification performance. Our approach employs a novel stacked label prediction neural network, capturing both inter-level and intra-level label semantics. We evaluate our method on benchmark image datasets, and empirical results illustrate the efficacy of our model.


--- layout: default title: ICNB'16 - International Conference on Nanobiotechnology ---
The International Conference on Nanobiotechnology (ICNB'16) aims to become the leading annual conference in fields related to nanobiotechnology. The goal of ICNB'16 is to gather scholars from all over the world to present advances in the relevant fields and to foster an environment conducive to exchanging ideas and information. This conference will also provide an ideal environment to develop new collaborations and meet experts on the fundamentals, applications, and products of the mentioned fields.
All accepted and presented papers will be published in the conference proceedings. Furthermore, selected papers from the conference will be submitted for possible publication in the following journals from Avestia Publishing (publication fees may apply):
International Journal of Theoretical and Applied Nanotechnology
Journal of Biomedical Engineering and Biosciences
ICNB is an acronym for International Conference on Nanobiotechnology.


Fund Navigator
Log In
Email
Password
Log In
Register Now
Forgot Password
Log In
Email
Password
Log In
Forgot Password
Register Now