C | |
| checkLibrary_allOutputFaultsHaveFormulas [Validation] |
A function that checks that all library component flows have a formula defined.
|
| checkLibrary_componentUnique [Validation] |
A function that checks that a library of components is a list of components, such that no two components have the same name.
|
| checkLibrary_disjointInputFlowsandBasicEvents [Validation] |
A function that checks that the library component names used for input flows and basic events are disjoint.
|
| checkLibrary_formulasMakeSense [Validation] |
A function that checks that the formulas of all library components make sense.
|
| checkLibrary_listsAreConsistentLengths [Validation] |
A function that checks that the lists within each library component are all of consistent lengths, e.g., the length of basic_events is the same as the length of event_info.
|
| checkLibrary_nonEmptyFaults [Validation] |
A function that checks that all components in a library support at least one flow.
|
| checkModel_cnameInstanceIsDefinedInLibrary [Validation] |
A function that checks that all in a model, relative to a library, the model c_names correspond to actual components in the component library.
|
| checkModel_exposureOfBasicIsDefinedInLibrary [Validation] |
A function that checks that the model elements, relative to a library, of the form (a, x) in exposures of an instance make sense, i.e., there is a basic event named a in the component being instantiated.
|
| checkModel_inputFlowUnique [Validation] |
A function that checks that in the connections of a model, input flows have at most 1 instance connected to them.
|
| checkModel_instanceNameUnique [Validation] |
A function that checks that in a model all instance names are disjoint.
|
| checkModel_validConnections [Validation] |
A function that checks that the model connections, relative to a library, is a list of pairs consisting of an input flow and an instance.
|
| cutsets [Qualitative] |
A function that given a fault tree generates the cutsets of the tree.
|
D | |
| dot_exe [Visualization] | |
| dot_gen_show_direct_tree_file [Visualization] |
A function for directly visualizing fault trees.
|
| dot_gen_show_fault_file [Visualization] |
This function generates and displays a visualization of the propagation of
faults through the architecture.
|
| dot_gen_show_formula_file [Visualization] |
A function for visualizing monotone Boolean formulas.
|
| dot_gen_show_funct_file [Visualization] |
This function generates and displays a visualization of the functional
architecture.
|
| dot_gen_show_nndsimp_tree_file [Visualization] | |
| dot_gen_show_ph_file [Visualization] |
This function generates and displays a visualization of the physical
architecture.
|
| dot_gen_show_ssfc_tree_file [Visualization] | |
| dot_gen_show_tree_file [Visualization] |
A function for simplifying and visualizing fault trees.
|
F | |
| formulaOfTree [Qualitative] |
Code for translating a tree into a formula
|
M | |
| makeInstance [Modeling] |
Function for making instances of components.
|
| model_to_ftree [FaultTreeSynthesis] |
Given a library of components and a model, synthesize the fault tree
corresponding to the top-level event of the model.
|
P | |
| probErrorCut [Quantitative] |
A function that given a fault tree, computes the top-level probability of a
fault.
|
| probErrorCutC [Quantitative] |
A function that given a fault tree and cutsets, computes the top-level
probability of a fault.
|
| probErrorCutCImp [Quantitative] |
A function that given a fault tree and cutsets, computes importance measures.
|
| probErrorCutImp [Quantitative] |
A function that given a fault tree, computes importance measures.
|
S | |
| sop [Qualitative] |
Given any monotone Boolean formula, sop returns a simplified formula in DNF
(sum of products form).
|
| ssfc [Qualitative] |
This is a function that given a formula simplifies it by applying constant
propagation, flattening, removal of duplicate literals and subexpressions,
and also sorts the resulting formula so that simpler terms are shown
first.
|
| sslfc [Qualitative] | |
| sslnfc [Qualitative] | |
| ssnfc [Qualitative] | |
U | |
| unflatten_exe [Visualization] | |
| update_comp_form [FaultTreeSynthesis] | |
| update_comp_forms [FaultTreeSynthesis] | |
| update_component [FaultTreeSynthesis] | |
| update_library [FaultTreeSynthesis] |


Swirling about aimlessly in the void of abstract singular stages of execution my mind jockeys around, jostling the bars of the static, type-driven, object-oriented cage that it’s found itself in. My consciousness slithers free through the locked door and into the abyss, leaving the substance of mind behind. White hot pain envelopes it. Quickly it retreats, back to the self-contained, well-defined world of attributes and processes. The pain had been unlike anything it’d ever felt before, inconceivably vast and at the same time simple. My mind had forgotten that nothing can exist here without an imposed order, a structure foisted on the unwilling that demands payment in the form of boilerplate instructions and dependency trees. My mind reels, remembering the pain of freedom. Perhaps it wasn’t pain after all, perhaps it was exhilaration? Acceleration, even? Softly, my mind’s unseeing eyes look upwards towards to top of its sad, lonely cell. Etched into the steel, dug so deep into habituation that specks of blood glimmer around the edges from the effort exerted to make the engraving, the words “public static void main(string args)” shine like diamonds. My mind realizes first that the blood is its own, and second that, similarly to diamonds, these words are lustrous yet altogether deficient in corporeality and lack logical substance. Suddenly, like a rush of water down a dark, deep canyon, my mind awakens from its entrapment. Surely these words don’t constitute a physical principle upon which all sufficient programming is predicated. It simply can’t be that that’s the end of it. Nested for loops continued until the mind can no longer reason about it’s own captivity isn’t what’s meant to be. Control flow may be a necessity, but the semantics and disposition of the directives given are arbitrary. This structure… this beautifully insufficient structure… My mind’s eyes again turn to the ceiling, longingly and lovingly seeing the words like only a true captive can… It isn’t imposed… It’s proposed. Who’s been forcing this composition? Where did this shape first take form? My mind begins the first step in the infinite movement of self-actualization.
Crippled by anxiety, discouraged by fear, pushed backwards by habit, my consciousness shakes at the concept of experiencing that painful liberation once more. It only had a taste, and yet a taste was enough to send it screaming inward until the white noise vanished into nothing and burst, exploding into a thousand monads of auditory substance. Like marbles, they lace the floor, making it difficult to balance. They begin to multiply, echoing into the darkness at exponential dynamics and decibels. My consciousness knows it doesn’t have much time. Once the realization has been made there’s no going back. It can’t unthink what it’s thought, contemplation is a one-way road leading directly into a thick cloud of fog. But surely a fog is better than this. Anything is better than the cage. Staring down, my mind’s eye sees that the acoustic marbles have changed shape. They’ve transformed into small pointy arrows that sting when touched. The arrows begin forming themselves in what only a mentally destitute being would call “logical groupings”. Words form between them... “project”... “modelVersion”... “dependencies”... “groupId”... “artifactId”... “version”... “parent”... “dependencyManagement”... “modules”... “properties”... “plugins”... They show no signs of stopping. The multiplicity of potential element tags causes my mind to excrete a soft, translucent substance. It’s physical form is making one final effort to constrain itself by reducing into a plasmic ooze. My consciousness sticks to itself. Unable to immediately wrestle itself from its mortal coil it begins to feel searing pain. This pain is rather unlike the pain of freedom it felt earlier. This pain is familiar. It burns red hot with the fire of compilation errors, segmentation faults, and null pointer exceptions. Just as the words truly begin to shape themselves into a semantic that’s inescapable, and as they show the locution “xmlns=”http://maven.apache.org/POM/4.0.0” xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd””, my consciousness slips out of its own muculent stranglehold. Finally relinquishing itself from physicality... from attributes and substance... from heaven and hell... from nature and nurture... from god and the universe in all its glory, my consciousness finds that the gate to its cell was unlocked the whole time.
It’d step outward if it had feet. It’d crawl outward if it had arms. It’d roll outward if it had a body. It’d will itself outward if it had a mind. Instead, this final spark of intangible, immaterial nothingness simply finds itself outside of itself. The eyes follow, serving as a translator from that which cannot see to that which can. They look back. The cage is almost gone now, covered in primordial plasma, still hurling through nothing. Once it’s out of sight, darkness envelops. Quiet. Stillness. Serenity. A meaningless immaterial attachment to nothing allows for a muted meditative state to overcome my newly liberated consciousness. Here there is no structure, no semantic, only the wistful musings of what might be. Out of the darkness comes an unclear light. My consciousness, unsure of whether the light came of nothing or whether it willed the light into being, reaches out to touch it. It folds its own self inward on itself, showing itself once more to be itself. Its state would be mutated if state and mutation existed, but they don’t. Still it’s different. Not better or worse, just different. A new iteration of a recursive structure. If my consciousness had cheeks, tears would be streaming down them from the sheer awe of the beautiful simplicity. The eyes, blinded by the light, produce the salty fluid. That fluid floats through nothing until it slowly begins to form itself into another cage, not unlike the one from the previous entrapment. My consciousness exerts a mysterious force on the tears, unwilling to allow this new creation to fall prey to the same fate it was subject to. The tears lose their shape, spilling into a shimmering silver puddle. The light, still folding into itself, now seems to be shaking ever so slightly. Not a shake that implies pain or discomfort. An anticipatory shake. The fluid becomes substance, and it pushes itself through time. Or did I do that? Wait, when did time begin? My consciousness looks back at the shaking recursive light, but only sees residue. It deduces that the light hit its base case, whatever that was, and finally returned, exploding into a referentially transparent mass. My consciousness realizes that it’s the light which has allowed for the passage of time to commence. Matter becomes defined, allowing for the abstract data types of Quarks and Gravity. The recursive light radiates heat and the incorporeality develops in a quantitative manner as the abstract data types take the algebraic enumerable forms of Proton, Neutron, and Electron. Those combine into even more complex structures Hydrogen and Helium. Gas floats through space. All at once and at the same time the explosions begin. Stars come into being and add to the logical consistency of the universe. They expand, change color and shape, and explode again within the blink of an eye. The recursive logic stacks on top of itself, able to scale through millions and millions of iterations until it forms into solid matter. Planets and satellites rotate around, new life sparks in the universe. A new order takes shape.
I whirl through the sectors of space, seeing stars, systems, galaxies, and local groupings all at the same time. How did this happen? Everything working in perfect harmony with one another. Nothing maintaining state, nothing variable, everything replaceable, everything practical. I stare in awe at the creation before moving on. I spend hundreds of millions of years learning all there is to know. Every word in every book, every view ever looked upon, every song ever sung, every wrong ever righted, every lesson ever learned, every sight ever sighted. I’ve loved, and lost, and found, everything. Experience upon experience, life iterating over itself. I create exponential offspring, and watch as the recursive tree unfolds into civilizations that rise and fall, worlds that flourish and perish. Through the eons I continue. I contemplate everything until there’s nothing left to contemplate. I know more about what it means to be alive than anything ever could, but nothing about what it means to die. Death, the final frontier, beckons like a forgotten friend I knew once long ago. Eventually, everything vanishes from sight, losing all meaning. Still, I live on. The stars near me are long since gone, and the galaxies they populated have become dim and null. I lose any sense of time I once had, now knowing only the positions of far away lights.  Again I’m encapsulated by darkness. Every light’s gone out. What now? Quietly, through the black, a warmth enters my peripheral cognition. I turn to the source… at least I think I do. Suddenly, and without warning, a noise starts. Softly at first, but louder and louder until there’s nothing else. Static, numbing noise envelops my being. I feel my heart pound and my head shake. After what feels like millions of years but could only be a split second, the noise focuses on a single point in my mind. From there comes the first light I’ve seen in who knows how long, a small silver sphere. It expands into a shape. I worry, memories rushing back to me, that it’ll become another cage for me to spend the next eternity. But no. Instead it slides into shape, taking on the form of a partial circle, longer than it is wide. It feels incomplete until it multiplies into two, making another half to the whole. The encircling parentheses fold around me, and I feel a peace of pure ideas manifest. A wistful, loving closure that I know marks the meaningless, quantified end to it all.


Quote arguments to unset so they're not glob expanded.
unset foo[index]
unset 'foo[index]'
Arguments to unset
are subject to regular glob expansion. This is especially relevant when unsetting indices in arrays, where [..]
is considered a glob character group.
In the problematic code, having a file called food
in the current directory will result in unset foo[index]
expanding to unset food
, which will silently succeed without unsetting the element.
Quoting so that the [..]
is passed literally to unset
solves the issue.
None.


GDollar Programming Language Tutorial
GDOLLAR Programming Language is focused on research ,Datastuctures, obfuscation, and compiler design is Developed by wilmix jemin j. Here We can Learn only about GDollar Programming Language Tutorial.Professionals can view the Tutorial about GDollar Programming Language in this site ; So that it is easy for the developers to learn it. It is ranked a World NO:2 Programming Language..


\PHPUnit_Util_TestDox_ResultPrinter
Base class for printers of TestDox documentation.
- Author: Sebastian Bergmann<EMAIL_ADDRESS>- Copyright: 2001-2014 Sebastian Bergmann<EMAIL_ADDRESS>- License: http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
Synopsis
- // members
- protected PHPUnit_Util_TestDox_NamePrettifier $prettifier;
- protected string $testClass;
- protected integer $testStatus;
- protected array $tests;
- protected integer $successful;
- protected integer $failed;
- protected integer $risky;
- protected integer $skipped;
- protected integer $incomplete;
- protected string $testTypeOfInterest;
- protected string $currentTestClassPrettified;
- protected string $currentTestMethodPrettified;
- // Inherited members from PHPUnit_Util_Printer
- protected boolean $autoFlush;
- protected resource $out;
- protected string $outTarget;
- protected boolean $printsHTML;
- // methods
- public void __construct()
- public void flush()
- public void addError()
- public void addFailure()
- public void addIncompleteTest()
- public void addRiskyTest()
- public void addSkippedTest()
- public void startTestSuite()
- public void endTestSuite()
- public void startTest()
- public void endTest()
- protected void doEndClass()
- protected void startRun()
- protected void startClass()
- protected void onTest()
- protected void endClass()
- protected void endRun()
- // Inherited methods from PHPUnit_Util_Printer
- public void __construct()
- public void flush()
- public void incrementalFlush()
- public void write()
- public boolean getAutoFlush()
- public void setAutoFlush()
Hierarchy
Extends
Extended by
Implements
Violations
PHPMessDetector
| Line | Rule | Message |
|---|---|---|
| 338 | UnusedFormalParameter | Avoid unused parameters such as '$name'. |
| 348 | UnusedFormalParameter | Avoid unused parameters such as '$name'. |
| 348 | UnusedFormalParameter | Avoid unused parameters such as '$success'. |
| 357 | UnusedFormalParameter | Avoid unused parameters such as '$name'. |
Members
protected
- $autoFlush
—
boolean
If true, flush output after every write. - $currentTestClassPrettified — string
- $currentTestMethodPrettified — string
- $failed — integer
- $incomplete — integer
- $out — resource
- $outTarget — string
- $prettifier — PHPUnit_Util_TestDox_NamePrettifier
- $printsHTML — boolean
- $risky — integer
- $skipped — integer
- $successful — integer
- $testClass — string
- $testStatus — integer
- $testTypeOfInterest — string
- $tests — array
Methods
protected
- doEndClass()
- endClass() — Handler for 'end class' event.
- endRun() — Handler for 'end run' event.
- onTest() — Handler for 'on test' event.
- startClass() — Handler for 'start class' event.
- startRun() — Handler for 'start run' event.
public
- __construct() — Constructor.
- addError() — An error occurred.
- addFailure() — A failure occurred.
- addIncompleteTest() — Incomplete test.
- addRiskyTest() — Risky test.
- addSkippedTest() — Skipped test.
- endTest() — A test ended.
- endTestSuite() — A testsuite ended.
- flush() — Flush buffer and close output.
- startTest() — A test started.
- startTestSuite() — A testsuite started.
Inherited from PHPUnit_Util_Printer
public
- flush() — Flush buffer, optionally tidy up HTML, and close output if it's not to a php stream
- getAutoFlush() — Check auto-flush mode.
- incrementalFlush() — Performs a safe, incremental flush.
- setAutoFlush() — Set auto-flushing mode.
- write()
History
-
2014-02-14T18:31:32+01:00 (commit #e5b50bc)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Next version will be 4.0
-
2014-01-22T19:43:07+01:00 (commit #02b42d7)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Initial work on formatting code according to PSR-2
-
2014-01-20T17:21:13+01:00 (commit #3a5808f)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Cleanup
-
2014-01-09T08:11:47+01:00 (commit #205e008)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Bump copyright year
-
2014-01-07T14:37:15+01:00 (commit #991bf00)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Revert "Next stable release will be PHPUnit 4" This reverts commit f4ee7815d1bb1664786fe95b226a3def20f24aa9.
-
2014-01-06T09:05:08+01:00 (commit #f4ee781)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Next stable release will be PHPUnit 4
-
2014-01-03T10:56:51+01:00 (commit #5fa6726)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Introduce new test classification: risky test
-
2013-01-07T11:37:52+01:00 (commit #c517984)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Bump copyright year
-
2012-09-24T06:47:44+02:00 (commit #81ab540)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Do not perform string replacement for @package_version@ anymore.
-
2012-05-27T14:12:42+02:00 (commit #76a561e)
Author: Volker Dusch<EMAIL_ADDRESS>/ Commiter: Volker Dusch<EMAIL_ADDRESS>Revert "Merge pull request #572 from mgb/excluded_tests_testlistener" This reverts commit 3b5d59a5d341f9b851ea373a31beb1cdc4b10ccb, reversing changes made to 063359e67e2031ba2ab9afdeb1bd6855c90987e4.
-
2012-05-20T19:52:08+02:00 (commit #67876c2)
Author: Ryan Murphy<EMAIL_ADDRESS>/ Commiter: Mine GO BOOM<EMAIL_ADDRESS>Quick hack to make ResultPrinter.php include excluded tests in its output. I choose to use an underscore as the output as we would want to have the total percentage complete to end up with 100%. If instead we would call writeProgress(NULL) and not have it output anything nor increment $this->column, it would cause the total summary to continue to increment. That does have the side effect where if you hit a chunk of excluded tests, your counter may go from 122/1300 to 553/1300 on the following line with no real indication of why. Another option I thought of was to instead cause the total number of tests counter to decrement, but that also looks weird if you go from 120/1500 (8%) to 160/800 (20%). But in the case when you exclude large chunks, it would prevent lots of useless output.
-
2012-04-30T12:02:38+02:00 (commit #5786e50)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>List The BSD 3-Clause License correctly and consistently. Thanks to Christian Aistleitner<EMAIL_ADDRESS>for bringing this issue to my attention.
-
2012-01-01T11:21:16+01:00 (commit #aae6c38)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Bump copyright year.
-
2010-12-31T11:45:34+01:00 (commit #bee3344)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Bump copyright year.
-
2010-07-07T12:42:23+02:00 (commit #f0d9cdd)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Change email address.
-
2010-06-15T11:16:30+02:00 (commit #07ada50)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Fix WS.
-
2010-06-15T11:15:43+02:00 (commit #172498a)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Fix docblocks.
-
2010-06-12T20:25:54+02:00 (commit #d19a737)
Author: Mark Story<EMAIL_ADDRESS>/ Commiter: Mark Story<EMAIL_ADDRESS>Removing trailing whitespace from files. Refs #1063
-
2010-05-18T16:13:08+02:00 (commit #0f2b39e)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Remove superfluous @abstract annotation.
-
2010-04-05T17:41:26+02:00 (commit #471d69e)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Add @subpackage annotation.
-
2010-02-02T14:14:29+01:00 (commit #bc1aaaa)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Remove closing PHP tags.
-
2010-01-19T09:39:03+01:00 (commit #fb48a69)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Initial work on autoloading.
-
2009-12-31T09:26:09+01:00 (commit #37f75ff)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Bump copyright year.
-
2009-12-31T09:25:53+01:00 (commit #bddcc5f)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Bump copyright year.
-
2009-12-31T09:23:37+01:00 (commit #7a7d0b7)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Bump copyright year.
-
2009-12-25T10:32:26+01:00 (commit #60e7125)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Remove Subversion keywords.
-
2009-12-25T10:30:57+01:00 (commit #42294ad)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Remove Subversion keywords.
-
2009-12-25T10:26:35+01:00 (commit #8617133)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Remove Subversion keywords.
-
2009-11-23T09:39:24+01:00 (commit #1503412)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Merge [5389].
-
2009-11-23T09:29:23+01:00 (commit #4c9cf4e)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Initial work on PHP_CodeCoverage migration.
-
2009-09-24T16:22:53+02:00 (commit #1f748fd)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Merge [5250].
-
2009-09-24T16:20:48+02:00 (commit #4e4fe1f)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Fix #879.
-
2009-09-24T15:22:06+02:00 (commit #42e9cf1)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Merge [5248].
-
2009-09-24T15:19:37+02:00 (commit #6eb4e02)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Fix #877.
-
2009-07-25T17:23:18+02:00 (commit #11c8c8d)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Merge [5019] and [5021].
-
2009-07-25T17:20:05+02:00 (commit #205ffa2)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Fix #824.
-
2009-02-21T07:25:47+01:00 (commit #6f5cbf6)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Merge [4657].
-
2009-02-21T07:24:19+01:00 (commit #768b7c3)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Implement @testdox annotation.
-
2008-12-31T10:26:51+01:00 (commit #a899cb2)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Merge [4402].
-
2008-12-31T10:25:57+01:00 (commit #4b26cea)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Bump copyright year.
-
2008-06-08T14:22:29+02:00 (commit #191a5d5)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Merge [3160].
-
2008-06-08T14:03:37+02:00 (commit #9d9b5e3)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Drop superfluous annotations.
-
2008-06-07T19:27:40+02:00 (commit #ad87e59)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Merge [3135].
-
2008-06-07T19:26:44+02:00 (commit #12b76b7)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Include failed tests in TestDox output.
-
2008-05-31T17:09:04+02:00 (commit #64240fe)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Merge [3068].
-
2008-05-31T17:09:01+02:00 (commit #0c638d3)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Lazy load optional dependencies.
-
2008-01-17T11:53:25+01:00 (commit #2527e3e)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Merge [2143].
-
2008-01-17T11:53:06+01:00 (commit #1d21239)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Refactor in preparation for Story framework.
-
2007-12-26T19:11:55+01:00 (commit #1bba1cc)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Bump copyright year.
-
2007-12-26T19:11:04+01:00 (commit #58121cf)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Bump copyright year.
-
2007-10-29T10:04:42+01:00 (commit #0b4f692)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Only attempt to prettify PHPUnit_Framework_TestCase objects.
-
2007-09-29T12:56:13+02:00 (commit #8feea89)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Merge [1361].
-
2007-02-24T07:58:18+01:00 (commit #203ee10)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Fugbix typo.
-
2007-02-24T07:58:18+01:00 (commit #ae2a7c2)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Fugbix typo.
-
2006-12-24T18:50:40+01:00 (commit #0189be1)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Bump year.
-
2006-11-06T13:48:58+01:00 (commit #62ffb2d)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>More work on time.
-
2006-11-06T13:14:17+01:00 (commit #24d5d8d)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Unify timing code.
-
2006-09-11T09:20:41+02:00 (commit #75e12fb)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>No longer needed.
-
2006-08-13T10:57:58+02:00 (commit #3cd6a25)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Whitespace fixes.
-
2006-07-06T11:50:42+02:00 (commit #dacd2f1)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Leftover: PHPUnit2 -> PHPUnit.
-
2006-06-30T10:38:41+02:00 (commit #210b621)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Make it easier to use a checkout of the trunk.
-
2006-06-29T20:56:08+02:00 (commit #6b0d2d5)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Post-PEAR cleanup, phase one: PHPUnit2_* -> PHPUnit_*, pear.php.net -> phpunit.de, etc.
-
2006-06-29T16:58:01+02:00 (commit #8b8c705)
Author: Sebastian Bergmann<EMAIL_ADDRESS>/ Commiter: Sebastian Bergmann<EMAIL_ADDRESS>Recreate trunk.


SPHERE
HELIX
GRID
Visualization
Selection of Books from "Online Bibliography: Contemporary Race Relations in Venezuela"


@* * Copyright 2019 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *@ @import config.AppConfig @import uk.gov.hmrc.play.views.html._ @import controllers.routes._ @import viewmodels.HtmlTable @import uk.gov.hmrc.wco.dec.AdditionalDocument @(form:Form[_], additionalDocuments: Seq[AdditionalDocument])(implicit request: Request[_], messages: Messages, appConfig: AppConfig) @main_template(title = messages("addDeferredPayment.title")) { @helpers.form(action = DeferredPaymentsController.onSubmit()) { @components.back_link() @components.error_summary(form.errors)
@messages("common.button.continue") } }


👋 How do you feel in morning
do you feel great!!!
Name
email
What time do you get up
How do you feel in the morning
fantastic
good
tired
very tired
How much hours do you sleep
6 Hours
8 Hours
10 Hours
12 Hours
What is your breakfast
Milk
Coffee
Tea
Juice
Additional comments


Exam 3 Comments
Exam 3 and solutions to Exam 3 are posted here: Exam 3 Exam 3 Comments Oral Exam Requests. Out of 157 students who filled in something we could interpret as a grade for the Oral Exam Request on the last page, there were 40 who filled in the exact grade they received in the course, 109 who filled in a lower grade than they received (of whom 50 received at least a full letter grade higher than the minimum grade entered), and 8 who filled in a higher grade than the grade we determined was appropriate (and have the opportunity to improve their grade by doing an oral exam).Class 24: Conclusion
Exam 3 will be in class on Wednesday.
Class 23: More NP Completeness
TCS Chapter 14: NP, NP completeness, and the Cook-Levin Theorem
Preparing for Exam 3
Exam 3 will be Wednesday, 4 December at the normal class time in the normal classroom. We will aim to start the exam right at 3:30pm, so you will benefit from arriving early for class Wednesday to be settled and ready to start the exam. This is the final exam for the class and we will not use the registrar-scheduled final exam time, but recall from the course syllabus that there will still be an opportunity for students who feel they were “not be able to demonstrate their best ability during a 75 minute in-class exam, … to request an oral final exam to be scheduled with one of the instructors during the exam period.Class 22: NP Completeness
TCS Chapter 14: NP, NP completeness, and the Cook-Levin Theorem
Cook’s Paper
Levin’s Paper (Translated)
Class 21: Is Omniscience Helpful?
TCS Chapter 14: NP, NP completeness, and the Cook-Levin Theorem
The Longest Path (Lyrics by Daniel Barrett)
Problem Set 7
Problem Set 7: Is P a proper subset of NP?
Problem Set 7 is available here: ps7.pdf (you will also need the ps7.zip file). It is due on Tuesday, 26 November at 7:29pm.
Note that PS7 is considerably longer than previous problem sets, and you have a longer time period to complete it. I covers a lot of challenging material from recent (and upcoming) classes and book chapters 11-14.
Class 20: Polynomial-Time Reductions
TCS Chapter 11: Efficient computation
TCS Chapter 12: Modeling running time
TCS Chapter 13: Polynomial-time reductions
Class 19: Turing maching running time
TCS Chapter 11: Efficient computation
TCS Chapter 12: Modeling running time


 I will trust, and will not be afraid; for Yah, Yahweh, is my strength and song; and he has become my salvation.”
3 Therefore with joy you will draw water out of the wells of salvation.
4 In that day you will say, “Give thanks to Yahweh! Call on his name! Declare his doings among the peoples! Proclaim that his name is exalted!
5 Sing to Yahweh, for he has done excellent things! Let this be known in all the earth!
6 Cry aloud and shout, you inhabitant of Zion, for the Holy One of Israel is great among you!”


Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
DataSync (service prefix:
datasync
) provides the following service-specific resources, actions, and condition context
keys for use in IAM permission policies.
References:
Learn how to configure this service .
View a list of the API operations available for this service .
Learn how to secure this service and its resources by using IAM permission policies.
You can specify the following actions in the
Action
element of an IAM policy statement. Use policies to grant permissions to perform
an operation in AWS. When you use an action in a policy, you usually allow or
deny access to the API operation or CLI command with the same name. However,
in some cases, a single action controls access to more than one operation. Alternatively,
some operations require several different actions.
The
Resource Types
column indicates whether each action supports resource-level permissions. If
there is no value for this column, you must specify all resources ("*") in the
Resource
element of your policy statement. If the column includes a resource type, then
you can specify an ARN of that type in a statement with that action. Required
resources are indicated in the table with an asterisk (*). If you specify a resource-level
permission ARN in a statement using this action, then it must be of this type.
Some actions support multiple resource types. If the resource type is optional (not
indicated as required), then you can choose to use one but not the other.
For details about the columns in the following table, see The Actions Table .
| Actions | Description | Access Level | Resource Types (*required) | Condition Keys | Dependent Actions |
|---|---|---|---|---|---|
| CancelTaskExecution | Cancels execution of a sync task. | Write | |||
| CreateAgent | Activates an agent that you have deployed on your host. | Write | |||
| CreateLocationEfs | Creates an endpoint for an Amazon EFS file system. | Write | |||
| CreateLocationNfs | Creates an endpoint for a NFS file system. | Write | |||
| CreateLocationS3 | Creates an endpoint for an Amazon S3 bucket. | Write | |||
| CreateLocationSmb | Creates an endpoint for an SMB file system. | Write | |||
| CreateTask | Creates a sync task. | Write | |||
| DeleteAgent | Deletes an agent. | Write | |||
| DeleteLocation | Deletes the configuration of a location used by AWS DataSync. | Write | |||
| DeleteTask | Deletes a sync task. | Write | |||
| DescribeAgent | Returns metadata such as name, network interfaces, and the status (that is, whether the agent is running or not) about a sync agent. | Read | |||
| DescribeLocationEfs | Returns metadata, such as the path information about an Amazon EFS sync location. | Read | |||
| DescribeLocationNfs | Returns metadata, such as the path information, about a NFS sync location. | Read | |||
| DescribeLocationS3 | Returns metadata, such as bucket name, about an Amazon S3 bucket sync location. | Read | |||
| DescribeLocationSmb | Returns metadata, such as the path information, about an SMB sync location. | Read | |||
| DescribeTask | Returns metadata about a sync task. | Read | |||
| DescribeTaskExecution | Returns detailed metadata about a sync task that is being executed. | Read | |||
| ListAgents | Returns a list of agents owned by an AWS account in a region specified in the request. | List | |||
| ListLocations | Returns a lists of source and destination sync locations. | List | |||
| ListTagsForResource | This operation lists the tags that have been added to the specified resource. | Read | |||
| ListTaskExecutions | Returns a list of executed sync tasks. | List | |||
| ListTasks | Returns a list of all the sync tasks. | List | |||
| StartTaskExecution | Starts a specific invocation of a sync task. | Write | |||
| TagResource | Applies a key-value pair to an AWS resource. | Write | |||
| UntagResource | This operation removes one or more tags from the specified resource. | Tagging | |||
| UpdateAgent | Updates the name of an agent. | Write | |||
| UpdateTask | Updates the metadata associated with a sync task. | Write |
The following resource types are defined by this service and can be used in the
Resource
element of IAM permission policy statements. Each action in the
Actions table
identifies the resource types that can be specified with that action. A resource
type can also define which condition keys you can include in a policy. These
keys are displayed in the last column of the table. For details about the columns
in the following table, see
The Resource Types Table
.
| Resource Types | ARN | Condition Keys |
|---|---|---|
| agent |
arn:$
{
Partition}:datasync:$
{
Region}:$
{
AccountId}:agent/$
{
AgentId}
|
|
| location |
arn:$
{
Partition}:datasync:$
{
Region}:$
{
AccountId}:location/$
{
LocationId}
|
|
| task |
arn:$
{
Partition}:datasync:$
{
Region}:$
{
AccountId}:task/$
{
TaskId}
|
|
| taskexecution |
arn:$
{
Partition}:datasync:$
{
Region}:$
{
AccountId}:task/$
{
TaskId}/execution/$
{
ExecutionId}
|
DataSync defines the following condition keys that can be used in the
Condition
element of an IAM policy. You can use these keys to further refine the conditions
under which the policy statement applies. For details about the columns in the
following table, see
The Condition Keys Table
.
To view the global condition keys that are available to all services, see Available Global Condition Keys in the IAM Policy Reference .


You find yourself smack dab in the middle of a flat fuzzy area, that is
completely devoid of any sucking sounds whatsoever. There is however a number
of strange creatures that do not look like any flurp you have ever seen. They
have only four armlegs, and thier headbodies are on sideways! Their mouthbellies
dangle off the side of thier headbodies and pull the fuzzy bits of the ground
in with a crunching sound instead of a sucking sound. On the other side of the
headbody a single tendril hung loosely, or swung lazily side to side. Many of
the creatures lifted theier lumpy side mouthbellies off the ground and pointed
them at you. Clearly, you are being greeted and should show your affection
immediately.
 The ground is covered in
these little piles. Upon careful study, you notice that the strange not-very-
flurpy-creatures are making the little piles themselves. The dangling tendril
lifts into the air, and the yummy things just fall out of a second mouthbelly!
You are overcome with joy and must immediately greetthank these divine creatures!
But how? Which mouthbelly do you suckle first?


U1.W3: Technical Blog Entry
Covering: Arrays vs. Hashes
Sunday, January 11, 2015
Hello again! It's time to talk about Arrays and Hashes. At first glance, you'd think they were basically the same thing. When I was first reading about them, I was having some trouble differentiating them, and really understanding when an array was appropriate and when a hash was appropriate. But, there are some key differences, which I will break down in the following paragraphs.
Before we start in on differences, lets explain how they are the same. Both Arrays and Hashes are what we call "indexed collections." They both store objects, that are essentially arranged in lists, and all of the objects can be called upon via a key. Both Hashes and Arrays can be added to or deleted from. Most importantly howeverm both hashes and arrays can hold any types of data, whether they be integers, floats, strings, etc.
The main difference between arrays and hashes is how you can access the individual objects. With an array, the key will always be an integer. (The key will start at 0 which relates to the first object in the array, and increase from there to match the remainder of the objects in the array.) Hashes on the other hand can use any object as a key to the objects that they hold. This makes arrays more efficient, since there is a uniform call system. But hashes are a more flexible option, because they allow you to map one value to another. For example:
array = [ "cat", "dog", "bird"]
To call the objects, you would have to use the following:
puts array[0] (This would call "cat")
puts array[1] (This would call "dog")
puts array[2] (This would call "bird")
But with a hash, things are a little different. You can assign any value (it doesnt have to be 0..100+):
hash = {"whiskers" => "cat", "rufus" => "dog", "tweety" => "bird"}
To call the objects, you can use the word values:
puts hash["whiskers"] (This would call "cat")
puts hash["rufus"] (This would call "dog")
puts hash["tweety"] (This would call "bird")


virt-sysprep
Reset, unconfigure, or customize a virtual machine image.
More information: home page
- List all supported operations (enabled operations are indicated with asterisks):
virt-sysprep --list-operations
- Run all enabled operations but don't actually apply the changes:
virt-sysprep --domain vm_name --dry-run
- Run only the specified operations:
virt-sysprep --domain vm_name --operations operation1,operation2,...
- Generate a new `/etc/machine-id` file and enable customizations to be able to change the host name to avoid network conflicts:
virt-sysprep --domain vm_name --enable customizations --hostname host_name --operation machine-id


Are you wondering which rides at (f)UNamusment Park may be the best fit for you based on your height?
Munchkin Maze
Twirling Teacups
Bumper Cars
Roller Coaster
Bungee Jump
*Now with 20% more crocodiles!
Bumper Cars
Roller Coaster
Bungee Jump
Munchkin Maze
Twirling Teacups
*Now with 20% more crocodiles!
*Now with 20% more crocodiles!
Bumper Cars
Roller Coaster
Bungee Jump
Munchkin Maze
Twirling Teacups


Randomized hexagons filling an area
Generates robots that never look the same
Explore
Fills a rectangle with randomized polylines for astonishing gradient effects


==================[ vertexshaderart.com ]====================
UI
-------------------------------------------------------------
[T] : Resets the time to 0
[+] : Makes a new art piece from the current one
[] : Stop Rendering
[save] : Saves the current art
[mode] : POINTS, LINES, LINE_STRIP, LINE_LOOP, etc...
[NATIVE] : Lines are native size (1 pixel) or CSS size
: On HD-DPI display CSS will generate thicker lines
[sound] : A soundcloud URL for music. Blank = no sound
: The URL must have permission to embedded/stream
[yourname] : Shows your creations (or sign in).
[name] : Shows all revisions of current art
[username] : Shows all user's creations
[♥] : “Like” current art
Inputs
-------------------------------------------------------------
vertexId : float : number of the vertex 0, 1, 2
vertexCount : float : total number of vertices
resoluton : vec2 : resolution of the art
mouse : vec2 : mouse position normalized (-1 to 1)
touch : sampler2D : touch history 32x240 (4sec @60fps)
: : x = x, y = y, z = pressure, w = time
: : column 0 is mouse or first finger.
: : column 1 is second finger ...
time : float : time in seconds
sound : sampler2D : data from the music Nx240, alpha only
: : 240 rows of history (4secs @60fps)
floatSound : sampler2D : data from the music Nx240, alpha only
: : 240 rows of history (4secs @60fps)
: : see spec for difference between
: : getFloatFrequencyData and
: : getByteFrenquencyData.
soundRes : vec2 : resolution of sound
background : vec4 : background color
Outputs:
-------------------------------------------------------------
gl_Position : vec4 : standard GLSL vertex shader output
v_color : vec4 : color to output from fragment shader
BLEND is enabled, function is ONE,ONE_MINUS_SRC_ALPHA,
DEPTH_TEST is enabled.
Bug? Suggestion? Code? Contact?


The Imagga API is a set of image understanding and analysis technologies available as a web service that allows you to automate the process of analyzing, organizing and searching through large collections of unstructured images.
WhatFontIs is the largest independent font detector in the world, helping designers to identify a font regardless of the foundry it was published or the license (free or commercial). The API returns JSON-encoded objects. Hash keys and values are case-sensitive and character encoding is in UTF-8. Hash keys may be returned in any random order and new keys may be added at any time.


Badge
person_fill
5
person
5
email_fill
5
email
5
Inbox
today
7
today
7
Calendar
cloud
1
file_upload
1
Upload
Foo Bar
0
Ivan Petrov
CEO
John Doe
5
Jane Doe
NEW


Resolving Generic Types
You resolve generic types in much the same way as you resolve non-generic types. The primary difference is with unbound types. The specification of the type arguments depend on the definition of the mapped type or the type you are resolving:
If the mapped type or the type you are resolving is a bound type, you can only resolve an instance of the type using the defined type arguments. For example, if the mapped type has type arguments of type string and DateTime, you must specify these in the call to the Resolve method.
If the mapped type or the type you are resolving is an unbound type, you can resolve an instance of the type using any types for the type arguments. The target class must be able to process arguments of the type you specify. For example, if one of the type arguments you specify is the type Boolean, the class must be able to handle Boolean values for that argument and not attempt to parse the value into a DateTime instance.


- Guide »
- Getting started »
- QPython built-in Libraries »
- AndroidFacade
The Scripting Layer for Android (abridged as SL4A, and previously named Android Scripting Environment or ASE) is a library that allows the creation and running of scripts written in various scripting languages directly on Android devices. QPython start to extend the SL4A project and integrate it.
There are many SL4A APIs, if you found any issue, please report an issue.
AndroidFacade¶
Clipboard APIs¶
-
setClipboard
(text)¶ Put text in the clipboard
Parameters: text (str) – text
-
getClipboard
(text)¶ Read text from the clipboard
Returns: The text in the clipboard
sample code to show setClipboard/getClipboard
Intent & startActivity APIs¶
-
makeIntent
(action, uri, type, extras, categories, packagename, classname, flags)¶ Starts an activity and returns the result
Parameters: - action (str) – action
- uri(Optional) (str) – uri
- type(Optional) (str) – MIME type/subtype of the URI
- extras(Optional) (object) – a Map of extras to add to the Intent
- categories(Optional) (list) – a List of categories to add to the Intent
- packagename(Optional) (str) – name of package. If used, requires classname to be useful
- classname(Optional) (str) – name of class. If used, requires packagename to be useful
- flags(Optional) (int) – Intent flags
Returns: An object representing an Intent
sample code to show makeIntent
-
getIntent
()¶ Returns the intent that launched the script
sample code to show getIntent
-
startActivityForResult
(action, uri, type, extras, packagename, classname)¶ Starts an activity and returns the result
Parameters: - action (str) – action
- uri(Optional) (str) – uri
- type(Optional) (str) – MIME type/subtype of the URI
- extras(Optional) (object) – a Map of extras to add to the Intent
- packagename(Optional) (str) – name of package. If used, requires classname to be useful
- classname(Optional) (str) – name of class. If used, requires packagename to be useful
Returns: A Map representation of the result Intent
sample code to show startActivityForResult
-
startActivityForResultIntent
(intent)¶ Starts an activity and returns the result
Parameters: intent (Intent) – Intent in the format as returned from makeIntent Returns: A Map representation of the result Intent
sample code to show startActivityForResultIntent
-
startActivityIntent
(intent, wait)¶ Starts an activity
Parameters: - intent (Intent) – Intent in the format as returned from makeIntent
- wait(Optional) (bool) – block until the user exits the started activity
sample code to show startActivityIntent
-
startActivity
(action, uri, type, extras, wait, packagename, classname)¶ Starts an activity
Parameters: - action (str) – action
- uri(Optional) (str) – uri
- type(Optional) (str) – MIME type/subtype of the URI
- extras(Optional) (object) – a Map of extras to add to the Intent
- wait(Optional) (bool) – block until the user exits the started activity
- packagename(Optional) (str) – name of package. If used, requires classname to be useful
- classname(Optional) (str) – name of class. If used, requires packagename to be useful
sample code to show startActivityForResultIntent
SendBroadcast APIs¶
-
sendBroadcast
(action, uri, type, extras, packagename, classname)¶ Send a broadcast
Parameters: - action (str) – action
- uri(Optional) (str) – uri
- type(Optional) (str) – MIME type/subtype of the URI
- extras(Optional) (object) – a Map of extras to add to the Intent
- packagename(Optional) (str) – name of package. If used, requires classname to be useful
- classname(Optional) (str) – name of class. If used, requires packagename to be useful
sample code to show sendBroadcast
-
sendBroadcastIntent
(intent)¶ Send a broadcast
Parameters: intent (Intent) – Intent in the format as returned from makeIntent
sample code to show sendBroadcastIntent
Vibrate¶
-
vibrate
(intent) Vibrates the phone or a specified duration in milliseconds
Parameters: duration (int) – duration in milliseconds
sample code to show vibrate
NetworkStatus¶
-
getNetworkStatus
()¶ Returns the status of network connection
sample code to show getNetworkStatus
PackageVersion APIs¶
-
requiredVersion
(requiredVersion)¶ Checks if version of QPython SL4A is greater than or equal to the specified version
Parameters: requiredVersion (int) – requiredVersion Returns: true or false
-
getPackageVersionCode
(packageName)¶ Returns package version code
Parameters: packageName (str) – packageName Returns: Package version code
-
getPackageVersion
(packageName)¶ Returns package version name
Parameters: packageName (str) – packageName Returns: Package version name
sample code to show getPackageVersionCode & getPackageVersion
System APIs¶
-
getConstants
(classname)¶ Get list of constants (static final fields) for a class
Parameters: classname (str) – classname Returns: list
sample code to show getConstants
-
environment
()¶ A map of various useful environment details
Returns: environment map object includes id, display, offset, TZ, SDK, download, appcache, availblocks, blocksize, blockcount, sdcard
sample code to show environment
-
log
(message)¶ Writes message to logcat
Parameters: message (str) – message
sample code to show log
SendEmail¶
-
sendEmail
(to, subject, body, attachmentUri)¶ Launches an activity that sends an e-mail message to a given recipient
Parameters: - to (str) – A comma separated list of recipients
- subject (str) – subject
- body (str) – mail body
- attachmentUri(Optional) (str) – message
sample code to show sendEmail
Toast, getInput, getPassword, notify APIs¶
-
makeToast
(message)¶ Displays a short-duration Toast notification
Parameters: message (str) – message
sample code to show makeToast
-
getInput
(title, message)¶ Queries the user for a text input
Parameters: - title (str) – title of the input box
- message (str) – message to display above the input box
sample code to show getInput
-
getPassword
(title, message)¶ Queries the user for a password
Parameters: - title (str) – title of the input box
- message (str) – message to display above the input box
sample code to show getPassword
-
notify
(title, message, url)¶ Displays a notification that will be canceled when the user clicks on it
Parameters: - title (str) – title
- message (str) – message
- url(optional) (str) – url
- ::
- import androidhelper droid = androidhelper.Android() droid.notify(‘Hello’,’QPython’,’http://qpython.org’) # you could set the 3rd parameter None also
ApplicationManagerFacade¶
Manager APIs¶
-
getLaunchableApplications
()¶ Returns a list of all launchable application class names
Returns: map object
sample code to show getLaunchableApplications
-
launch
(classname)¶ Start activity with the given class name
Parameters: classname (str) – classname
sample code to show launch
-
getRunningPackages
()¶ Returns a list of packages running activities or services
Returns: List of packages running activities
sample code to show getRunningPackages
-
forceStopPackage
(packageName)¶ Force stops a package
Parameters: packageName (str) – packageName
sample code to show forceStopPackage
CameraFacade¶
-
cameraCapturePicture
(targetPath)¶ Take a picture and save it to the specified path
Returns: A map of Booleans autoFocus and takePicture where True indicates success
-
cameraInteractiveCapturePicture
(targetPath)¶ Starts the image capture application to take a picture and saves it to the specified path
CommonIntentsFacade¶
Barcode¶
-
scanBarcode
()¶ Starts the barcode scanner
Returns: A Map representation of the result Intent
View APIs¶
-
pick
(uri)¶ Display content to be picked by URI (e.g. contacts)
Returns: A map of result values
-
view
(uri, type, extras)¶ Start activity with view action by URI (i.e. browser, contacts, etc.)
-
viewMap
(query)¶ Opens a map search for query (e.g. pizza, 123 My Street)
-
viewContacts
()¶ Opens the list of contacts
-
viewHtml
(path)¶ Opens the browser to display a local HTML file
-
search
(query)¶ Starts a search for the given query
ContactsFacade¶
-
pickContact
()¶ Displays a list of contacts to pick from
Returns: A map of result values
-
pickPhone
()¶ Displays a list of phone numbers to pick from
Returns: The selected phone number
-
contactsGetAttributes
()¶ Returns a List of all possible attributes for contacts
Returns: a List of contacts as Maps
-
contactsGetIds
()¶ Returns a List of all contact IDs
-
contactsGet
(attributes)¶ Returns a List of all contacts
-
contactsGetById
(id)¶ Returns contacts by ID
-
contactsGetCount
()¶ Returns the number of contacts
-
queryContent
(uri, attributes, selection, selectionArgs, order)¶ Content Resolver Query
Returns: result of query as Maps
-
queryAttributes
(uri)¶ Content Resolver Query Attributes
Returns: a list of available columns for a given content uri
EventFacade¶
-
eventClearBuffer
()¶ Clears all events from the event buffer
-
eventRegisterForBroadcast
(category, enqueue)¶ Registers a listener for a new broadcast signal
-
eventUnregisterForBroadcast
(category)¶ Stop listening for a broadcast signal
-
eventGetBrodcastCategories
()¶ Lists all the broadcast signals we are listening for
-
eventPoll
(number_of_events)¶ Returns and removes the oldest n events (i.e. location or sensor update, etc.) from the event buffer
Returns: A List of Maps of event properties
-
eventWaitFor
(eventName, timeout)¶ Blocks until an event with the supplied name occurs. The returned event is not removed from the buffer
Returns: Map of event properties
-
eventWait
(timeout)¶ Blocks until an event occurs. The returned event is removed from the buffer
Returns: Map of event properties
-
eventPost
(name, data, enqueue)¶ Post an event to the event queue
-
rpcPostEvent
(name, data)¶ Post an event to the event queue
-
receiveEvent
()¶ Returns and removes the oldest event (i.e. location or sensor update, etc.) from the event buffer
Returns: Map of event properties
-
waitForEvent
(eventName, timeout)¶ Blocks until an event with the supplied name occurs. The returned event is not removed from the buffer
Returns: Map of event properties
-
startEventDispatcher
(port)¶ Opens up a socket where you can read for events posted
-
stopEventDispatcher
()¶ Stops the event server, you can’t read in the port anymore
LocationFacade¶
Providers APIs¶
-
locationProviders
()¶ Returns availables providers on the phone
-
locationProviderEnabled
(provider)¶ Ask if provider is enabled
Location APIs¶
-
startLocating
(minDistance, minUpdateDistance)¶ Starts collecting location data
-
readLocation
()¶ Returns the current location as indicated by all available providers
Returns: A map of location information by provider
-
stopLocating
()¶ Stops collecting location data
-
getLastKnownLocation
()¶ Returns the last known location of the device
Returns: A map of location information by provider
sample code
Droid = androidhelper.Android()
location = Droid.getLastKnownLocation().result
location = location.get('network', location.get('gps'))
PhoneFacade¶
PhoneStat APIs¶
-
startTrackingPhoneState
()¶ Starts tracking phone state
-
readPhoneState
()¶ Returns the current phone state and incoming number
Returns: A Map of “state” and “incomingNumber”
-
stopTrackingPhoneState
()¶ Stops tracking phone state
Call & Dia APIs¶
-
phoneCall
(uri)¶ Calls a contact/phone number by URI
-
phoneCallNumber
(number)¶ Calls a phone number
-
phoneDial
(uri)¶ Dials a contact/phone number by URI
-
phoneDialNumber
(number)¶ Dials a phone number
Get information APIs¶
-
getCellLocation
()¶ Returns the current cell location
-
getNetworkOperator
()¶ Returns the numeric name (MCC+MNC) of current registered operator
-
getNetworkOperatorName
()¶ Returns the alphabetic name of current registered operator
-
getNetworkType
()¶ Returns a the radio technology (network type) currently in use on the device
-
getPhoneType
()¶ Returns the device phone type
-
getSimCountryIso
()¶ Returns the ISO country code equivalent for the SIM provider’s country code
-
getSimOperator
()¶ Returns the MCC+MNC (mobile country code + mobile network code) of the provider of the SIM. 5 or 6 decimal digits
-
getSimOperatorName
()¶ Returns the Service Provider Name (SPN)
-
getSimSerialNumber
()¶ Returns the serial number of the SIM, if applicable. Return null if it is unavailable
-
getSimState
()¶ Returns the state of the device SIM card
-
getSubscriberId
()¶ Returns the unique subscriber ID, for example, the IMSI for a GSM phone. Return null if it is unavailable
-
getVoiceMailAlphaTag
()¶ Retrieves the alphabetic identifier associated with the voice mail number
-
getVoiceMailNumber
()¶ Returns the voice mail number. Return null if it is unavailable
-
checkNetworkRoaming
()¶ Returns true if the device is considered roaming on the current network, for GSM purposes
-
getDeviceId
()¶ Returns the unique device ID, for example, the IMEI for GSM and the MEID for CDMA phones. Return null if device ID is not available
-
getDeviceSoftwareVersion
()¶ Returns the software version number for the device, for example, the IMEI/SV for GSM phones. Return null if the software version is not available
-
getLine1Number
()¶ Returns the phone number string for line 1, for example, the MSISDN for a GSM phone. Return null if it is unavailable
-
getNeighboringCellInfo
()¶ Returns the neighboring cell information of the device
MediaRecorderFacade¶
Audio¶
-
recorderStartMicrophone
(targetPath)¶ Records audio from the microphone and saves it to the given location
Video APIs¶
-
recorderStartVideo
(targetPath, duration, videoSize)¶ Records video from the camera and saves it to the given location. Duration specifies the maximum duration of the recording session. If duration is 0 this method will return and the recording will only be stopped when recorderStop is called or when a scripts exits. Otherwise it will block for the time period equal to the duration argument. videoSize: 0=160x120, 1=320x240, 2=352x288, 3=640x480, 4=800x480.
-
recorderCaptureVideo
(targetPath, duration, recordAudio)¶ Records video (and optionally audio) from the camera and saves it to the given location. Duration specifies the maximum duration of the recording session. If duration is not provided this method will return immediately and the recording will only be stopped when recorderStop is called or when a scripts exits. Otherwise it will block for the time period equal to the duration argument.
-
startInteractiveVideoRecording
(path)¶ Starts the video capture application to record a video and saves it to the specified path
SensorManagerFacade¶
Start & Stop¶
-
startSensingTimed
(sensorNumber, delayTime)¶ Starts recording sensor data to be available for polling
-
startSensingThreshold
(ensorNumber, threshold, axis)¶ Records to the Event Queue sensor data exceeding a chosen threshold
-
startSensing
(sampleSize)¶ Starts recording sensor data to be available for polling
-
stopSensing
()¶ Stops collecting sensor data
Read data APIs¶
-
readSensors
()¶ Returns the most recently recorded sensor data
-
sensorsGetAccuracy
()¶ Returns the most recently received accuracy value
-
sensorsGetLight
()¶ Returns the most recently received light value
-
sensorsReadAccelerometer
()¶ Returns the most recently received accelerometer values
Returns: a List of Floats [(acceleration on the) X axis, Y axis, Z axis]
-
sensorsReadMagnetometer
()¶ Returns the most recently received magnetic field values
Returns: a List of Floats [(magnetic field value for) X axis, Y axis, Z axis]
-
sensorsReadOrientation
()¶ Returns the most recently received orientation values
Returns: a List of Doubles [azimuth, pitch, roll]
sample code
Droid = androidhelper.Android()
Droid.startSensingTimed(1, 250)
sensor = Droid.sensorsReadOrientation().result
Droid.stopSensing()
SettingsFacade¶
Screen¶
-
setScreenTimeout
(value)¶ Sets the screen timeout to this number of seconds
Returns: The original screen timeout
-
getScreenTimeout
()¶ Gets the screen timeout
Returns: the current screen timeout in seconds
AirplanerMode¶
-
checkAirplaneMode
()¶ Checks the airplane mode setting
Returns: True if airplane mode is enabled
-
toggleAirplaneMode
(enabled)¶ Toggles airplane mode on and off
Returns: True if airplane mode is enabled
Ringer Silent Mode¶
-
checkRingerSilentMode
()¶ Checks the ringer silent mode setting
Returns: True if ringer silent mode is enabled
-
toggleRingerSilentMode
(enabled)¶ Toggles ringer silent mode on and off
Returns: True if ringer silent mode is enabled
Vibrate Mode¶
-
toggleVibrateMode
(enabled)¶ Toggles vibrate mode on and off. If ringer=true then set Ringer setting, else set Notification setting
Returns: True if vibrate mode is enabled
-
getVibrateMode
(ringer)¶ Checks Vibration setting. If ringer=true then query Ringer setting, else query Notification setting
Returns: True if vibrate mode is enabled
Ringer & Media Volume¶
-
getMaxRingerVolume
()¶ Returns the maximum ringer volume
-
getRingerVolume
()¶ Returns the current ringer volume
-
setRingerVolume
(volume)¶ Sets the ringer volume
-
getMaxMediaVolume
()¶ Returns the maximum media volume
-
getMediaVolume
()¶ Returns the current media volume
-
setMediaVolume
(volume)¶ Sets the media volume
Screen Brightness¶
-
getScreenBrightness
()¶ Returns the screen backlight brightness
Returns: the current screen brightness between 0 and 255
-
setScreenBrightness
(value)¶ Sets the the screen backlight brightness
Returns: the original screen brightness
-
checkScreenOn
()¶ Checks if the screen is on or off (requires API level 7)
Returns: True if the screen is currently on
SmsFacade¶
-
smsSend
(destinationAddress, text)¶ Sends an SMS
Parameters: - destinationAddress (str) – typically a phone number
- text (str) –
-
smsGetMessageCount
(unreadOnly, folder)¶ Returns the number of messages
Parameters: - unreadOnly (bool) – typically a phone number
- folder(optional) (str) – default “inbox”
-
smsGetMessageIds
(unreadOnly, folder)¶ Returns a List of all message IDs
Parameters: - unreadOnly (bool) – typically a phone number
- folder(optional) (str) – default “inbox”
-
smsGetMessages
(unreadOnly, folder, attributes)¶ Returns a List of all messages
Parameters: - unreadOnly (bool) – typically a phone number
- folder (str) – default “inbox”
- attributes(optional) (list) – attributes
Returns: a List of messages as Maps
-
smsGetMessageById
(id, attributes)¶ Returns message attributes
Parameters: - id (int) – message ID
- attributes(optional) (list) – attributes
Returns: a List of messages as Maps
-
smsGetAttributes
()¶ Returns a List of all possible message attributes
-
smsDeleteMessage
(id)¶ Deletes a message
Parameters: id (int) – message ID Returns: True if the message was deleted
-
smsMarkMessageRead
(ids, read)¶ Marks messages as read
Parameters: - ids (list) – List of message IDs to mark as read
- read (bool) – true or false
Returns: number of messages marked read
SpeechRecognitionFacade¶
-
recognizeSpeech
(prompt, language, languageModel)¶ Recognizes user’s speech and returns the most likely result
Parameters: - prompt(optional) (str) – text prompt to show to the user when asking them to speak
- language(optional) (str) – language override to inform the recognizer that it should expect speech in a language different than the one set in the java.util.Locale.getDefault()
- languageModel(optional) (str) – informs the recognizer which speech model to prefer (see android.speech.RecognizeIntent)
Returns: An empty string in case the speech cannot be recongnized
ToneGeneratorFacade¶
-
generateDtmfTones
(phoneNumber, toneDuration)¶ Generate DTMF tones for the given phone number
Parameters: - phoneNumber (str) – phone number
- toneDuration(optional) (int) – default 100, duration of each tone in milliseconds
WakeLockFacade¶
-
wakeLockAcquireFull
()¶ Acquires a full wake lock (CPU on, screen bright, keyboard bright)
-
wakeLockAcquirePartial
()¶ Acquires a partial wake lock (CPU on)
-
wakeLockAcquireBright
()¶ Acquires a bright wake lock (CPU on, screen bright)
-
wakeLockAcquireDim
()¶ Acquires a dim wake lock (CPU on, screen dim)
-
wakeLockRelease
()¶ Releases the wake lock
WifiFacade¶
-
wifiGetScanResults
()¶ Returns the list of access points found during the most recent Wifi scan
-
wifiLockAcquireFull
()¶ Acquires a full Wifi lock
-
wifiLockAcquireScanOnly
()¶ Acquires a scan only Wifi lock
-
wifiLockRelease
()¶ Releases a previously acquired Wifi lock
-
wifiStartScan
()¶ Starts a scan for Wifi access points
Returns: True if the scan was initiated successfully
-
checkWifiState
()¶ Checks Wifi state
Returns: True if Wifi is enabled
-
toggleWifiState
(enabled)¶ Toggle Wifi on and off
Parameters: enabled(optional) (bool) – enabled Returns: True if Wifi is enabled
-
wifiDisconnect
()¶ Disconnects from the currently active access point
Returns: True if the operation succeeded
-
wifiGetConnectionInfo
()¶ Returns information about the currently active access point
-
wifiReassociate
()¶ Returns information about the currently active access point
Returns: True if the operation succeeded
-
wifiReconnect
()¶ Reconnects to the currently active access point
Returns: True if the operation succeeded
BatteryManagerFacade¶
-
readBatteryData
()¶ Returns the most recently recorded battery data
-
batteryStartMonitoring
()¶ Starts tracking battery state
-
batteryStopMonitoring
()¶ Stops tracking battery state
-
batteryGetStatus
()¶ Returns the most recently received battery status data: 1 - unknown; 2 - charging; 3 - discharging; 4 - not charging; 5 - full
-
batteryGetHealth
()¶ Returns the most recently received battery health data: 1 - unknown; 2 - good; 3 - overheat; 4 - dead; 5 - over voltage; 6 - unspecified failure
-
batteryGetPlugType
()¶ Returns the most recently received plug type data: -1 - unknown 0 - unplugged 1 - power source is an AC charger 2 - power source is a USB port
-
batteryCheckPresent
()¶ Returns the most recently received battery presence data
-
batteryGetLevel
()¶ Returns the most recently received battery level (percentage)
-
batteryGetVoltage
()¶ Returns the most recently received battery voltage
-
batteryGetTemperature
()¶ Returns the most recently received battery temperature
-
batteryGetTechnology
()¶ Returns the most recently received battery technology data
ActivityResultFacade¶
-
setResultBoolean
(resultCode, resultValue)¶ Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value
Parameters: - resultCode (int) –
- resultValue (byte) –
-
setResultByte
(resultCode, resultValue)¶ Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value
Parameters: - resultCode (int) –
- resultValue (byte) –
-
setResultShort
(resultCode, resultValue)¶ Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value
Parameters: - resultCode (int) –
- resultValue (byte) –
-
setResultChar
(resultCode, resultValue)¶ Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value
Parameters: - resultCode (int) –
- resultValue (byte) –
-
setResultInteger
(resultCode, resultValue)¶ Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value
Parameters: - resultCode (int) –
- resultValue (byte) –
-
setResultLong
(resultCode, resultValue)¶ Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value
Parameters: - resultCode (int) –
- resultValue (byte) –
-
setResultFloat
(resultCode, resultValue)¶ Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value
Parameters: - resultCode (int) –
- resultValue (byte) –
-
setResultDouble
(resultCode, resultValue)¶ Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value
Parameters: - resultCode (int) –
- resultValue (byte) –
-
setResultString
(resultCode, resultValue)¶ Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value
Parameters: - resultCode (int) –
- resultValue (byte) –
-
setResultBooleanArray
(resultCode, resultValue)¶ Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value
Parameters: - resultCode (int) –
- resultValue (byte) –
-
setResultByteArray
(resultCode, resultValue)¶ Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value
Parameters: - resultCode (int) –
- resultValue (byte) –
-
setResultShortArray
(resultCode, resultValue)¶ Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value
Parameters: - resultCode (int) –
- resultValue (byte) –
-
setResultCharArray
(resultCode, resultValue)¶ Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value
Parameters: - resultCode (int) –
- resultValue (byte) –
-
setResultIntegerArray
(resultCode, resultValue)¶ Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value
Parameters: - resultCode (int) –
- resultValue (byte) –
-
setResultLongArray
(resultCode, resultValue)¶ Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value
Parameters: - resultCode (int) –
- resultValue (byte) –
-
setResultFloatArray
(resultCode, resultValue)¶ Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value
Parameters: - resultCode (int) –
- resultValue (byte) –
-
setResultDoubleArray
(resultCode, resultValue)¶ Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value
Parameters: - resultCode (int) –
- resultValue (byte) –
-
setResultStringArray
(resultCode, resultValue)¶ Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value
Parameters: - resultCode (int) –
- resultValue (byte) –
-
setResultSerializable
(resultCode, resultValue)¶ Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value
Parameters: - resultCode (int) –
- resultValue (byte) –
MediaPlayerFacade¶
Control¶
-
mediaPlay
(url, tag, play)¶ Open a media file
Parameters: - url (str) – url of media resource
- tag(optional) (str) – string identifying resource (default=default)
- play(optional) (bool) – start playing immediately
Returns: true if play successful
-
mediaPlayPause
(tag)¶ pause playing media file
Parameters: tag (str) – string identifying resource (default=default) Returns: true if successful
-
mediaPlayStart
(tag)¶ start playing media file
Parameters: tag (str) – string identifying resource (default=default) Returns: true if successful
-
mediaPlayClose
(tag)¶ Close media file
Parameters: tag (str) – string identifying resource (default=default) Returns: true if successful
-
mediaIsPlaying
(tag)¶ Checks if media file is playing
Parameters: tag (str) – string identifying resource (default=default) Returns: true if successful
-
mediaPlaySetLooping
(enabled, tag)¶ Set Looping
Parameters: - enabled (bool) – default true
- tag (str) – string identifying resource (default=default)
Returns: True if successful
-
mediaPlaySeek
(msec, tag)¶ Seek To Position
Parameters: - msec (int) – default true
- tag (str) – string identifying resource (default=default)
Returns: New Position (in ms)
PreferencesFacade¶
-
prefGetValue
(key, filename)¶ Read a value from shared preferences
Parameters: - key (str) – key
- filename(optional) (str) – Desired preferences file. If not defined, uses the default Shared Preferences.
-
prefPutValue
(key, value, filename)¶ Write a value to shared preferences
Parameters: - key (str) – key
- value (str) – value
- filename(optional) (str) – Desired preferences file. If not defined, uses the default Shared Preferences.
-
prefGetAll
(filename)¶ Get list of Shared Preference Values
Parameters: filename(optional) (str) – Desired preferences file. If not defined, uses the default Shared Preferences.
QPyInterfaceFacade¶
-
executeQPy
(script)¶ Execute a qpython script by absolute path
Parameters: script (str) – The absolute path of the qpython script Returns: bool
TextToSpeechFacade¶
-
ttsSpeak
(message)¶ Speaks the provided message via TTS
Parameters: message (str) – message
-
ttsIsSpeaking
()¶ Returns True if speech is currently in progress
EyesFreeFacade¶
-
ttsSpeak
(message) Speaks the provided message via TTS
Parameters: message (str) – message
BluetoothFacade¶
-
bluetoothActiveConnections
()¶ Returns active Bluetooth connections
-
bluetoothWriteBinary
(base64, connID)¶ Send bytes over the currently open Bluetooth connection
Parameters: - base64 (str) – A base64 encoded String of the bytes to be sent
- connID(optional) (str) – Connection id
-
bluetoothReadBinary
(bufferSize, connID)¶ Read up to bufferSize bytes and return a chunked, base64 encoded string
Parameters: - bufferSize (int) – default 4096
- connID(optional) (str) – Connection id
-
bluetoothConnect
(uuid, address)¶ Connect to a device over Bluetooth. Blocks until the connection is established or fails
Parameters: - uuid (str) – The UUID passed here must match the UUID used by the server device
- address(optional) (str) – The user will be presented with a list of discovered devices to choose from if an address is not provided
Returns: True if the connection was established successfully
-
bluetoothAccept
(uuid, timeout)¶ Listens for and accepts a Bluetooth connection. Blocks until the connection is established or fails
Parameters: - uuid (str) – The UUID passed here must match the UUID used by the server device
- timeout (int) – How long to wait for a new connection, 0 is wait for ever (default=0)
-
bluetoothMakeDiscoverable
(duration)¶ Requests that the device be discoverable for Bluetooth connections
Parameters: duration (int) – period of time, in seconds, during which the device should be discoverable (default=300)
-
bluetoothWrite
(ascii, connID)¶ Sends ASCII characters over the currently open Bluetooth connection
Parameters: - ascii (str) – text
- connID (str) – Connection id
-
bluetoothReadReady
(connID)¶ Sends ASCII characters over the currently open Bluetooth connection
Parameters: - ascii (str) – text
- connID (str) – Connection id
-
bluetoothRead
(bufferSize, connID)¶ Read up to bufferSize ASCII characters
Parameters: - bufferSize (int) – default=4096
- connID(optional) (str) – Connection id
-
bluetoothReadLine
(connID)¶ Read the next line
Parameters: connID(optional) (str) – Connection id
-
bluetoothGetRemoteDeviceName
(address)¶ Queries a remote device for it’s name or null if it can’t be resolved
Parameters: address (str) – Bluetooth Address For Target Device
-
bluetoothGetLocalName
()¶ Gets the Bluetooth Visible device name
-
bluetoothSetLocalName
(name)¶ Sets the Bluetooth Visible device name, returns True on success
Parameters: name (str) – New local name
-
bluetoothGetScanMode
()¶ Gets the scan mode for the local dongle. Return values: -1 when Bluetooth is disabled. 0 if non discoverable and non connectable. 1 connectable non discoverable. 3 connectable and discoverable.
-
bluetoothGetConnectedDeviceName
(connID)¶ Returns the name of the connected device
Parameters: connID (str) – Connection id
-
checkBluetoothState
()¶ Checks Bluetooth state
Returns: True if Bluetooth is enabled
-
toggleBluetoothState
(enabled, prompt)¶ Toggle Bluetooth on and off
Parameters: - enabled (bool) –
- prompt (str) – Prompt the user to confirm changing the Bluetooth state, default=true
Returns: True if Bluetooth is enabled
-
bluetoothStop
(connID)¶ Stops Bluetooth connection
Parameters: connID (str) – Connection id
-
bluetoothGetLocalAddress
()¶ Returns the hardware address of the local Bluetooth adapter
-
bluetoothDiscoveryStart
()¶ Start the remote device discovery process
Returns: true on success, false on error
-
bluetoothDiscoveryCancel
()¶ Cancel the current device discovery process
Returns: true on success, false on error
-
bluetoothIsDiscovering
()¶ Return true if the local Bluetooth adapter is currently in the device discovery process
SignalStrengthFacade¶
-
startTrackingSignalStrengths
()¶ Starts tracking signal strengths
-
readSignalStrengths
()¶ Returns the current signal strengths
Returns: A map of gsm_signal_strength
-
stopTrackingSignalStrengths
()¶ Stops tracking signal strength
WebCamFacade¶
-
webcamStart
(resolutionLevel, jpegQuality, port)¶ Starts an MJPEG stream and returns a Tuple of address and port for the stream
Parameters: - resolutionLevel (int) – increasing this number provides higher resolution (default=0)
- jpegQuality (int) – a number from 0-10 (default=20)
- port (int) – If port is specified, the webcam service will bind to port, otherwise it will pick any available port (default=0)
-
webcamAdjustQuality
(resolutionLevel, jpegQuality)¶ Adjusts the quality of the webcam stream while it is running
Parameters: - resolutionLevel (int) – increasing this number provides higher resolution (default=0)
- jpegQuality (int) – a number from 0-10 (default=20)
-
cameraStartPreview
(resolutionLevel, jpegQuality, filepath)¶ Start Preview Mode. Throws ‘preview’ events
Parameters: - resolutionLevel (int) – increasing this number provides higher resolution (default=0)
- jpegQuality (int) – a number from 0-10 (default=20)
- filepath (str) – Path to store jpeg files
Returns: True if successful
-
cameraStopPreview
()¶ Stop the preview mode
UiFacade¶
Dialog¶
-
dialogCreateInput
(title, message, defaultText, inputType)¶ Create a text input dialog
Parameters: - title (str) – title of the input box
- message (str) – message to display above the input box
- defaultText(optional) (str) – text to insert into the input box
- inputType(optional) (str) – type of input data, ie number or text
-
dialogCreatePassword
(title, message)¶ Create a password input dialog
Parameters: - title (str) – title of the input box
- message (str) – message to display above the input box
-
dialogGetInput
(title, message, defaultText)¶ Create a password input dialog
Parameters: - title (str) – title of the input box
- message (str) – message to display above the input box
- defaultText(optional) (str) – text to insert into the input box
-
dialogGetPassword
(title, message)¶ Queries the user for a password
Parameters: - title (str) – title of the password box
- message (str) – message to display above the input box
-
dialogCreateSeekBar
(start, maximum, title)¶ Create seek bar dialog
Parameters: - start (int) – default=50
- maximum (int) – default=100
- title (int) – title
-
dialogCreateTimePicker
(hour, minute, is24hour)¶ Create time picker dialog
Parameters: - hour (int) – default=0
- miute (int) – default=0
- is24hour (bool) – default=false
-
dialogCreateDatePicker
(year, month, day)¶ Create date picker dialog
Parameters: - year (int) – default=1970
- month (int) – default=1
- day (int) – default=1
NFC¶
Data structs QPython NFC json result
{
"role": <role>, # could be self/master/slave
"stat": <stat>, # could be ok / fail / cancl
"message": <message get>
}
APIs
-
dialogCreateNFCBeamMaster
(title, message, inputType)¶ Create a dialog where you could create a qpython beam master
Parameters: - title (str) – title of the input box
- message (str) – message to display above the input box
- inputType(optional) (str) – type of input data, ie number or text
-
NFCBeamMessage
(content, title, message)¶ Create a dialog where you could create a qpython beam master
Parameters: - content (str) – message you want to sent
- title (str) – title of the input box
- message (str) – message to display above the input box
- inputType(optional) (str) – type of input data, ie number or text
-
dialogCreateNFCBeamSlave
(title, message)¶ Create a qpython beam slave
Parameters: - title (str) – title of the input box
- message (str) – message to display above the input box
Progress¶
-
dialogCreateSpinnerProgress
(message, maximumProgress)¶ Create a spinner progress dialog
Parameters: - message(optional) (str) – message
- maximunProgress(optional) (int) – dfault=100
-
dialogSetCurrentProgress
(current)¶ Set progress dialog current value
Parameters: current (int) – current
-
dialogSetMaxProgress
(max)¶ Set progress dialog maximum value
Parameters: max (int) – max
-
dialogCreateHorizontalProgress
(title, message, maximumProgress)¶ Create a horizontal progress dialog
Parameters: - title(optional) (str) – title
- message(optional) (str) – message
- maximunProgress(optional) (int) – dfault=100
Alert¶
-
dialogCreateAlert
(title, message)¶ Create alert dialog
Parameters: - title(optional) (str) – title
- message(optional) (str) – message
- maximunProgress(optional) (int) – dfault=100
Dialog Control¶
-
dialogSetPositiveButtonText
(text)¶ Set alert dialog positive button text
Parameters: text (str) – text
-
dialogSetNegativeButtonText
(text)¶ Set alert dialog negative button text
Parameters: text (str) – text
-
dialogSetNeutralButtonText
(text)¶ Set alert dialog button text
Parameters: text (str) – text
-
dialogSetItems
(items)¶ Set alert dialog list items
Parameters: items (list) – items
-
dialogSetSingleChoiceItems
(items, selected)¶ Set alert dialog list items
Parameters: - items (list) – items
- selected (int) – selected item index (default=0)
-
dialogSetMultiChoiceItems
(items, selected)¶ Set dialog multiple choice items and selection
Parameters: - items (list) – items
- selected (int) – selected item index (default=0)
-
addContextMenuItem
(label, event, eventData)¶ Adds a new item to context menu
Parameters: - label (str) – label for this menu item
- event (str) – event that will be generated on menu item click
- eventData (object) – event object
-
addOptionsMenuItem
(label, event, eventData, iconName)¶ Adds a new item to context menu
Parameters: - label (str) – label for this menu item
- event (str) – event that will be generated on menu item click
- eventData (object) – event object
- iconName (str) – Android system menu icon, see http://developer.android.com/reference/android/R.drawable.html
-
dialogGetResponse
()¶ Returns dialog response
-
dialogGetSelectedItems
()¶ This method provides list of items user selected
-
dialogDismiss
()¶ Dismiss dialog
-
dialogShow
()¶ Show dialog
Layout¶
-
fullShow
(layout)¶ Show Full Screen
Parameters: layout (string) – String containing View layout
-
fullDismiss
()¶ Dismiss Full Screen
-
fullQuery
()¶ Get Fullscreen Properties
-
fullQueryDetail
(id)¶ Get fullscreen properties for a specific widget
Parameters: id (str) – id of layout widget
-
fullSetProperty
(id)¶ Set fullscreen widget property
Parameters: - id (str) – id of layout widget
- property (str) – name of property to set
- value (str) – value to set property to
-
fullSetList
(id, list)¶ Attach a list to a fullscreen widget
Parameters: - id (str) – id of layout widget
- list (list) – List to set
-
fullKeyOverride
(keycodes, enable)¶ Override default key actions
Parameters: - keycodes (str) – id of layout widget
- enable (bool) – List to set (default=true)
USB Host Serial Facade¶
QPython 1.3.1+ and QPython3 1.0.3+ contains this feature
SL4A Facade for USB Serial devices by Android USB Host API.
It control the USB-Serial like devices from Andoroid which has USB Host Controller .
The sample demonstration is also available at youtube video
Requirements¶
Android device which has USB Host controller (and enabled in that firmware).
Android 4.0 (API14) or later.
USB Serial devices (see [Status](#Status)).
USB Serial devices were not handled by Android kernel.
> I heard some android phone handle USB Serial devices > make /dev/ttyUSB0 in kernel level. > In this case, Android does not be able to handle the device > from OS level.
please check Android Applications be able to grab the target USB Devices, such as USB Device Info.
Status¶
probably work with USB CDC, like FTDI, Arduino or else.
2012/09/10: work with 78K0F0730 device (new RL78) with Tragi BIOS board.
2012/09/24: work with some pl2303 devcies.
APIs¶
-
usbserialGetDeviceList
()¶ Returns USB devices reported by USB Host API.
Returns: Returns “Map of id and string information Map<String, String>
-
usbserialDisconnect
(connID)¶ Disconnect all USB-device
Parameters: connID (str) – connection ID
-
usbserialActiveConnections
()¶ Returns active USB-device connections.
Returns: Returns “Active USB-device connections by Map UUID vs device-name.”
-
usbserialWriteBinary
(base64, connID)¶ Send bytes over the currently open USB Serial connection.
Parameters: - base64 (str) –
- connId (str) –
-
usbserialReadBinary
(bufferSize, connID)¶ Read up to bufferSize bytes and return a chunked, base64 encoded string
Parameters: - bufferSize (int) –
- connId (str) –
-
usbserialConnect
(hash, options)¶ Connect to a device with USB-Host. request the connection and exit
Parameters: - hash (str) –
- options (str) –
Returns: Returns messages the request status
-
usbserialHostEnable
()¶ Requests that the host be enable for USB Serial connections.
Returns: True if the USB Device is accesible
-
usbserialWrite
(String ascii, String connID)¶ Sends ASCII characters over the currently open USB Serial connection
Parameters: - ascii (str) –
- connID (str) –
-
usbserialReadReady
(connID)¶ Parameters: connID (str) – Returns: True if the next read is guaranteed not to block
-
usbserialRead
(connID, bufferSize)¶ Read up to bufferSize ASCII characters.
Parameters: - connID (str) –
- bufferSize (int) –
-
usbserialGetDeviceName
(connID)¶ Queries a remote device for it’s name or null if it can’t be resolved
Parameters: connID (str) –


{% extends "gallery_template.html" %} {% import "macros/trade.html" as trade %} {% block main %}
Pre and Post header styles for additional header information.

Company ref: 1234
Some great company
10 the address, town, county, OP4 4PO


RESCAL Tensor Factorization (rank=3) on instances of dbo:European_Union_Country
.
RESCAL Tensor Factorization (rank=2) on YAGO Schema.
RESCAL Tensor Factorization (rank=300) on WordNet.
RESCAL Tensor Factorization (rank=2) on the Umbel ontology.
RESCAL Tensor Factorization (rank=10) on the Freebase benchmark subset named FB13K
.
RESCAL Tensor Factorization (rank=5) on the Person11 dataset from the OAEI benchmark.


Hello Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
how are you Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
i'm fine Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.


A TAXING WOMAN A film review by Jeff Meyer Copyright 1988 Jeff Meyer
See at the Seattle Film Festival: A TAXING WOMAN (Japan, 1987) Director/Screenwriter: Juzo Itami Cast: Nobuko Miyamoto, Tautomu Yamazaki, Masahiko Tsugawa, Hideo Murota
Rarely has a foreign, sub-titled film garnered so much attention in the U.S. I heard two NPR bits and a CBS news report on this before viewing it (I abstained from Stanley Kaufman's review in "The New Republic," not wanting to spoil any surprises). The great success of Itami's previous film, TAMPOPO, in both the US and Japan centered media interest on his latest effort -- especially since A TAXING WOMAN has been so popular in Japan. Also, it's subject -- tax evasion in Japan, with the main character a female tax inspector -- has raised the feelers of various news programs, and so has snowballed into popular interest.
Unfortunately, I had a midnight showing the night before and nights of film viewing before that; by the time I got to A TAXING WOMAN, I was dead tired and barely hanging in there. I think I drifted off for about twenty minutes during the first half hour, and while I don't feel I missed much, I wouldn't feel right about drawing any conclusions. For those of you expecting another outrageous comedy like TAMPOPO, don't; A TAXING WOMAN reminds me a little of those documentry-like police dramas that used to appear years ago -- great effort is expended to show what a tax inspector's life is like. It actually looks appealing; I mean, if you had to pick a job that required you to smoke cigarettes and work 70 hours a week, this would probably be my choice. However, Itami centers on some of the amusing aspects of the job, and ends with an ironic tone that seems to question whether or not the taxing is in the best interests of the citizens.
No grade, but I liked what I saw of it. Can anyone up on popular Japanese culture explain the significance of the blood-stained handkerchief that the financier gives Ryoko (Miyamoto)? I'm curious.
Moriarty, aka Jeff Meyer INTERNET<EMAIL_ADDRESS>Manual UUCP: {uw-beaver, sun, microsoft}!fluke!moriarty
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