SpatialDropout2D
Spatial 2D version of Dropout.
Inherits From: Dropout
tf.compat.v1.keras.layers.SpatialDropout2D
tf.compat.v2.keras.layers.SpatialDropout2D
This version performs the same function as Dropout, however it drops entire 2D feature maps instead of individual elements. If adjacent pixels within feature maps are strongly correlated (as is normally the case in early convolution layers) then regular dropout will not regularize the activations and will otherwise just result in an effective learning rate decrease. In this case, SpatialDropout2D will help promote independence between feature maps and should be used instead.
rate
: Float between 0 and 1. Fraction of the input units to drop.data_format
: 'channels_first' or 'channels_last'.
In 'channels_first' mode, the channels dimension
(the depth) is at index 1,
in 'channels_last' mode is it at index 3.
It defaults to the image_data_format
value found in your
Keras config file at ~/.keras/keras.json
.
If you never set it, then it will be "channels_last".inputs
: A 4D tensor.training
: Python boolean indicating whether the layer should behave in
training mode (adding dropout) or in inference mode (doing nothing).4D tensor with shape:
(samples, channels, rows, cols)
if data_format='channels_first'
or 4D tensor with shape:
(samples, rows, cols, channels)
if data_format='channels_last'.
Same as input.
__init__
__init__( rate, data_format=None, **kwargs )


| < Day Day Up > |
Hack 89 How'd He Know That?
Make the most of your available resources. Unless you've achieved Unix guru status, you probably find yourself asking "how did he know that?" whenever you're around other Unix users or read a really cool snippet in a book.  As I tell my students, "No one knows everything. Make sure the one thing you do know is where to go to get the information you need." 9.2.1 Online ResourcesIf you're using FreeBSD, there is no shortage of well-written documentation. If you haven't already, bookmark the FreeBSD Documentation page at http://www.freebsd.org/docs. There you'll find hyperlinks to the four handbooks, the FAQ, how-to articles, online manpages, as well as other sources of information. There's a very good chance that someone else has already documented what you want to do. 9.2.2 Keeping Offline Resources Up-to-DateOnline resources are great, but what if you don't always have access to an Internet connection? If you installed the doc distribution, you already have most of those resources on your hard drive. You'll find the handbooks, FAQ, and articles in /usr/share/doc. That directory contains symlinks so you can quickly navigate to the desired resource.
The online resources receive daily updates, so be sure to update your docs when you use cvsup. Make sure your cvsup file includes this line: doc-all tag=.
As cvsup retrieves the latest docs, it will write them to /usr/doc. This will not overwrite or update existing files in /usr/share/doc. Also, if you've ever poked about /usr/doc, you probably noticed that the resources themselves are written in SGML, making them a bit hard to read (unless you enjoy wading through tags). How do you merge in those new changes? It's going to require a conversion of SGML to HTML. To achieve that, first install the docproj-nojadetex port: # cd /usr/ports/textproc/docproj-nojadetex # make install clean Then: # cd /usr/doc # make install clean This will merge all of the changes into the HTML files in /usr/share/doc. If you add this step to your cvsup routine, your offline resources will always be up-to-date. 9.2.3 What Did the Manpage Forget to Say?Have you ever read a manpage and been unclear on how a certain switch worked? Perhaps you thought you understood the syntax until you tried it out and only managed to produce syntax error messages? Even more maddeningly, you might scour the Internet for concrete examples only to find endless links to the same manpage! When this happens to me, I consider the program's source as a possible answer. If you're thinking, "I'm not a programmer; I couldn't read source code if my life depended on it," don't just skip to the next hack. You can still read comments, and most source in the FreeBSD core is very well commented. Here's an example. I was reading through man mac_portacl, which indicates that the rule MIB takes this syntax: idtype:id:protocol:port[,idtype:id:protocol:port,...] but didn't give a specific example of a working rule. Since this particular MAC policy doesn't do anything until you successfully create a rule, I was looking for a more concrete example of an effective rule.  So, before hitting the mailing lists, I took a peek at the source. To locate any C source file, use the locate command. Pass it the name of what you're looking for, followed by a .c. For example: % locate mac_portacl.c /usr/src/sys/security/mac_portacl/mac_portacl.c You must have src installed in order for this to work, and, as indicated, it will only find source code written in C. Happily, that's most of the FreeBSD core. You can use /sys/sysinstall to install all of the src distributions. If disk space is an issue or it's not appropriate to install source on the system you're logged into, you can read the source online at http://minnie.tuhs.org/FreeBSD-srctree/FreeBSD.html. If you have src installed but don't see any results or do receive an error message that your database is too small, update the database and try again: % su Password: # /usr/libexec/locate.updatedb >>> WARNING >>> Executing updatedb as root. This WILL reveal all filenames >>> on your machine to all login users, which is a security risk. # exit Once you've located the source file, skim through its comments: % grep '*' /usr/src/sys/security/mac_portacl/mac_portacl.c | tail +30 Here, I told grep to search for an asterisk (*), since C comments always include one. If you forget to enclose the asterisk within single quotes (''), you won't receive any results, as it is also a shell wildcard. You may want to adjust tail +30 for your own purposes. Source code begins with anywhere from 25 to 40 lines of copyright and licensing comments. Here I've told tail to ignore the first (+) 30 lines of comments. In this particular case, the comments included the example I hoped for: * # sysctl security.mac.portacl.rules="uid:425:tcp:80,uid:425:tcp:79" * * This ruleset, for example, permits uid 425 to bind TCP ports 80 (http) * and 79 (finger). User names and group names can't be used directly * because the kernel only knows about uids and gids. Your mileage will vary, but source is definitely another resource at your disposal. 9.2.4 See Also
|
| < Day Day Up > |


EMR Interfacing¶
BLIS allows tests to be requested via an external system. BLIS has been configured in a way where a test can be requested by multiple external systems. This will only happen if the systems can integrate and map fully with BLIS. External system configuration and integration with BLIS will depend on the available systems in any given hospital.
Currently BLIS allows intergration of SANITAS and mHealth4Afrika to interface with BLIS.
A user can send a test request to BLIS and receive the results.
Steps for BLIS Integration to an EMR API¶
*The EMR should try to log in to the BLIS server to authenticate if its allowed to send a test request.eg. Url:
api/tpa/login
Data:
{
"headers" : {
"Accept" : "application/json",
"Content-type" : "application/json"
},
"json" : {
"email"<EMAIL_ADDRESS>"password" : "password"
},
}
*BLIS should have the credentials that EMR shoud use inorder to give them access to send a request to the system.
*When the EMR is authenticated it receives an access token from BLIS and uses it to post test requests to BLIS.eg. Url:
/api/testrequest
Data:
{
'headers' :
'Accept' : 'application/json',
'Content-type' : 'application/json',
'Authorization' : 'Bearer '.$accessToken
}
'json' : {
"resourceType": "ProcedureRequest",
"contained": [
{
"resourceType": "Patient",
"id": "patient",
"identifier": [
{
"value": "CJjajd6237"
}
],
"name": [
{
"family": "Dickson",
"given": [
"Makanga"
]
}
],
"gender": "male",
"birthDate": "1994-05-30"
},
{
"resourceType": "Practitioner",
"id": "practitioner",
"identifier": [
{
"value": "blis-username"
}
],
"name": [
{
"family": "John",
"given": [
"Doe"
]
}
],
"telecom": [
{
"system": "phone",
"value": "+2541234567"
},
{
"system": "email",
"value"<EMAIL_ADDRESS>}
]
}
],
"code": {
"coding": [
{
"system": "http://www.mhealth4afrika.eu/fhir/StructureDefinition/dataElementCode",
"code": "art-hb"
}
]
},
"subject": {
"reference": "#patient"
},
"context": {
"reference": "Encounter/abC32ah4X"
},
"requester": {
"agent": {
"reference": "#practitioner"
}
}
After BLIS receives a test request from an EMR and completes the result entry,it does the following:
*First BLIS tries to log into the EMR, When BLIS is authenticated it receives an access token from EMR and uses it to post test results to EMR eg.:
{
'headers' : {
'Accept' : 'application/json',
'Content-type' : 'application/json',
'Authorization' : 'Bearer '.$accessToken
}
'json' : {
"resourceType": "DiagnosticReport",
"contained": [
{
"resourceType": "Observation",
"id": "Observation1",
"extension": [
{
"url": "http://www.mhealth4afrika.eu/fhir/StructureDefinition/dataElementCode",
"valueCode": "art-hb"
}
],
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "718-7",
"display": "Hemoglobin [Mass/volume] in Blood"
}
]
},
"effectiveDateTime": "2019-01-14T17:12:54+03:00",
"performer": [
{
"reference": "Practitioner/blis-username"
}
],
"valueQuantity": {
"value": 7.2,
"unit": "g/dl",
"system": "http://unitsofmeasure.org",
"code": "g/dL"
}
}
],
"identifier": [
{
"value": "diagnosticReportExampleIdentifier"
}
],
"subject": {
"reference": "Patient/CJjajd6237"
},
"context": {
"reference": "Encounter/abC32ah4X"
},
"performer": [
{
"actor": {
"reference": "Practitioner/blis-username"
}
}
],
"result": [
{
"reference": "#Observation1"
}
]
}


 You divide your
games by the weekday they were plated (Monday, Tuesday, etc.)
You notice that Saturday’s winrate is noticeably lower, which doesn’t really make sense, until you
consider that Friday is bar night. If you’re gunning for legend, that’s valuable information: either cut
back the drinks or avoid playing with a hangover. (I warned you it was silly)
This is a (fictional) example of gaining insight though disaggregation. And though it sounds stupid, it’s
pretty close to the advice Eloise gave on
/r/CompetitiveHS.
I strongly suggest you play at mid night. because when people get tired they don’t want to play around
arcane combo. I get very insane winrate at mid night.
What is Disaggregation?
Disaggregation means splitting your data into categories, usually after collecting and lumping it all
together (hence dis-aggregating).
- The easiest example is Deck Matchups, e.g. What’s the winrate of Control Warrior against Zoolock? If
you’re heading into a tournament, that informs your deck picks. If you’re on ladder, pick a deck that
with a good winrate against today’s meta, not last week’s.
- Disaggregation is also behind card-by-card analysis. This
writeup breaks down how Zephrys
the Lethal is actually one of the worst cards in Aggro Rogue, based on this disappointing drawn
winrate. This is an example of disaggregating Winrate by whether a certain card was drawn.
Problems with Disaggregation
Breaking data into distinct pieces lets us see the differences between them, but it can also make the
data less reliable, since each piece has a smaller sample size.
Take Control Warrior. At time of writing, HSReplay has ~300,000 games with one list. That’s a big sample!
But how many were vs. the new Murloc Paladin? How many against one specific list of Mrrrgl Pally? Are
those games enough to publish a reliable Winrate?
It is easy to over-categorize your data, breaking it into pieces that are too small to be useful.
Hearthstone may be absurdly popular, but data about it is thin on the ground. Even Vicious Syndicate
(whose work I respect) cannot always gather the 100 game minimum to fully populate their matchup chart.
What else?
One of the ways we can fight these problems is to be smarter about the way we slice and dice the data. A
few methods:
- Fuzzy decklist. There are many variants of Combo Priest, but most differ by a Holy Ripple here, a
Topsy Turvy there. If there are too few games to publish a reliable matchup winrate, why not aggregate
similar decklists to get a better idea? This goes double for Highlander decks, which naturally have a
million variations.
- Divide matchups by archetype. Matchups could be analyzed by the style of the opponent’s deck. Token
druid might ‘play’ closer to ZooLock than to Combo or Quest druid. Aggro warrior and Aggro rogue
certainly share more with it each other than Control Warrior.
- Look at board state. There is a mountain of untapped data in the board state. A simple example would
be determining the best time to Brawl / Mass Hysteria / Earthquake. Is this board too small to AoE, or
should I have thrown the brawl down against 3 minions? Questions like these are still unanalyzed, and
the answers are lost because we only have a simple drawn winrate for each card in the deck.
Disaggregation & Game Design
Lastly, disaggregation can affect Hearthstone itself.
- Disguised Toast’s analysis of Animal
Companion showed that while each Companion has an area of strength, each is about equally good.
- Or take the Tuskarr Totemic nerf,
which was driven by the gap in winrates between basic vs 3/4 totems.
- Finally, this kind of thinking informed the design of the Coin, ensuring near perfect balance between
going first or second.
In summary, creative categorization of a data set can lead to more insight on the game, without the need
for more data.


Inicio
Common tasks
Open common task modal
Open common task modal
User
User
Title
Description
Open
Common tasks
Task
Last time read
New messages
New task
Title
Last time read


Credit Union of Epicodus
Register a new account:
Name:
Initial Deposit:
open account
Deposit or withdraw funds:
Account Id:
Deposit Amount:
Withdrawal Amount:
show current balance


Featured Section Heading
Spicy jalapeno bacon ipsum dolor amet shankle salami rump, porchetta meatball filet mignon beef fatback ham hamburger chuck cow spare ribs. Filet mignon venison picanha, fatback pork ground round brisket.  Fatback brisket frankfurter chuck. Beef picanha shank tail turkey.   Meatloaf chicken pork, short ribs sausage burgdoggen alcatra.  Filet mignon bresaola flank pork pork loin tri-tip brisket tongue sirloin corned beef capicola beef ribs hamburger. Burgdoggen meatball bresaola jerky, ground round rump meatloaf alcatra short ribs doner brisket.    Meatloaf biltong jerky burgdoggen alcatra shank corned beef bacon pastrami.


Season of the Witch * * (out of * * * * )
Directed by George A. Romero. Cast: Jan White, Ray Laine, Bill Thunhurst, Joedida McClain, Virginia Greenwald. 1972 - 89 minutes.  Reviewed October 27, 1998.
"Season of the Witch," which was director George A. Romero's first film after making the groundbreaking 1968 horror classic, "Night of the Living Dead," is a creepy and unusual experience. It has a sort of a story, but is intercut frequently with on-going dream sequences, which, paired with a loud, bizarre music score, are admittedly very disturbing.
Joan Mitchell (Jan White), an unhappy housewife and mother of a teenage daughter, has been suffering from a terrible recurring nightmare that features a person in a demon mask trying to break into her house. Her husband, Jack (Ray Laine), is always away on business trips, it seems, and so with a lot of time on her hands, she becomes intrigued with a practicing witch who lives near her. Trying out her spells to see if they work, she first manages to seduce her daughter's older boyfriend (Bill Thunhurst), and then begins to sway towards a potential murder.
"Season of the Witch," is no ordinary horror film, that's for sure. It is in no way a slasher film, nor is it about the living dead, which Romero has made quite a few films about. It is deliberately paced, with lots of exposition sequences, and then there are the frightening dream scenes. It is a skillful, respectable picture, and is extremely effective.
Unfortunately, "Season of the Witch," comes as a disappointment by the film's end for several reasons. The plotline and motives of the characters are very muddled, and we never really understand why Joan is so taken aback by witchcraft, except that it is interesting to her. The characters are also not very tightly written. In one scene, Joan's husband will be kind and caring, and in the next he will be physically abusive and distant. A subplot involving Joan's daughter is never resolved in any way, and she is not given enough screen time for us to care either way. The last scene is anticlimactic, leaving almost every story thread hanging loose, and there is no payoff.
Romero has proven himself to be a masterful director, and it is clearly evident in, "Season of the Witch," that he was onto something that potentially would be horrifying. Maybe the answer to these problems lies in the fact that, prior to its release, the film was cut from 130 minutes to a relatively short 89 minutes. By cutting 41 minutes of footage, almost half of the current running time, it seems that Romero edited out the elements that the film desperately needs more of, in order to be a satisfying experience, rather than an unfulfilling one.
- Copyright 1999 by Dustin Putman < Dustin Putman's Film Haven >
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


I am an Associate Licensed Marriage & Family Therapist and a graduate of the Marriage and Family Therapy Masters Program at Northwestern University. I gained experience as a clinician with the Betty D. Harris Family Clinic located at the Family Institute and I currently work as a Clinical Therapist at Spring Tree Counseling. I work with adults and families with an emphasis on couples in conflict, multi-generational families and interracial and multicultural couples. In addition, I work with individual women who are navigating transitions such as retirement, grief, employment difficulties or divorce.
I believe change can best occur when therapy engages the entire family system.
I enjoy working collaboratively with couples and individual clients to help identify and address presenting challenges. I seek to provide a safe place in my counseling office for clients to engage in change, develop new strategies and approaches to long standing matters. I value working with client feedback and integrating various theoretical approaches and techniques that uniquely fit client situations.
1007 Church Street Suite 302
Evanston, IL 60201
Ready to start your next project with us? That's great! Give us a call or send us an email and we will get back to you as soon as possible!
847-492-1938 ext. 15


Honzi
/
Bookmarks
/
Honzifox's EVE
/Config
Neocom:
Chat Channels
Inventory
Contacts
Locations
Mail
Opportunities
Fitting
Regional Market
Industry
Map
Personal Assets
Corp
Notepad
Wallet: all settings enabled
Planetary Industry
Contracts
Project Discovery
Notifications disabled:
Agents:
Research Mission Available
Insurance:
Corvette Replacement
Miscellaneous:
Activity Tracker Mastery
Booster Consumed
Daily Alpha Injection Available
Implant Plugged In
Personalization Unlocked
Skill Training:
Skill Injected
Skill Queue Empty
Skill Training Complete
Skills Added from Skill Plan
Unused Skill Points
Ship HUD:
Display Passive Modules: enabled
Display Empty Slots: disbled
Display Readout: enabled
Display Readout as Percentage: disabled
Display Uility Buttons: enabled
Display Zoom Buttons: disabled
Display Module Tooltips: enabled
Display Sensor Overlay: disabled
Lock Modules in Place: enabled
Blink Cargohold Icon on Update: enabled
Lock Overload State: disabled
HUD Aligned to Top: disabled
Always Above Fullscreen Views: disabled
Shortcuts:
Combat:
Directional Scan: Z
Lock Target: X
Drones:
All Drones: Engage: C
All Drones: Return to Drone Bay: V
General:
Toggle 3D View: Control_L-Shift_L-\
Toggle User Interface Visibility: Num /
Navigation:
Stop Ship: S
Window:
Probe Scanner: A
Top Left Settings:
Search New Eden (hidden)
System Info
Route:
Show Route in Space: disabled
Prefer Safer
Include Jump Gates in Route: enabled
Security Penalty: 100
Avoid Systems Where Pod Killing has Recently Occured: disabled
Avoid Triglavian Minor Victory Systems: enabled
Avoid EDENCOM Systems: disabled
Avoid Systems on Your Avoidance List: enabled
Disable Autopilot at each Waypoint: enabled
Daily Challenges
Events
Agent Missions
AIR Career Program
Honzifox
iterami "CEO" -https://honzi.github.io/guides/eve/ = fits+notes+tools -https://github.com/honzi/biggestisk = list of the most expensive kill of each entity -https://github.com/honzi/EVE-Overviews.yaml = iterami Overview 2023-06-13 -Alts = Honzibot + [REDACTED], only 1 account -Civilian Gatling Pulse Laser = the best weapon in EVE -https://zkillboard.com/character/96811141/
iterami:
ISK Tax: 1.0%
LP Tax: 0.0%
Friendly Fire: Legal
Permitted FW:
Gallente
Minmatar
https://zkillboard.com/corporation/98481182/ Contact=Honzifox Alts=imareti -https://honzi.github.io/guides/eve/ = fits+notes+tools -https://github.com/honzi/biggestisk = list of the most expensive kill of each entity -https://github.com/honzi/EVE-Overviews.yaml = iterami Overview 2023-06-13 RECRUITMENT -Alliance = HAPPY -Alliance Corps = POSSIBLY -Corp Members = 1T DONATION -Structures = ACCEPTED -Wars = UNDEFEATED
Amarr Barnacle V
Amarr is Home ♥ ♥EFAsenpai♥ watches over us as we filter feed content all day long! Discount Local: Mining
Honzibot
Neutral alt of Honzifox, not actually a bot! Lossboard Top 10 - https://zkillboard.com/character/96811141/losses/ 1. Kill: Honzifox (Nestor) 2. Kill: Honzifox (Capsule - Genolution 'Auroral' 197-variant) 3. Kill: Honzifox (Astero) 4. Kill: Honzifox ('Yurt' Mobile Depot) 5. Kill: Honzifox (Capsule) 6. Kill: Honzifox (Coercer) 7. Kill: Honzifox (Coercer) 8. Kill: Honzifox (Coercer) 9. Kill: Honzifox (Executioner) 10. Kill: Honzifox (Impairor)


public abstract class LoaderManager
extends java.lang.Object
android.app.LoaderManager
.
Used to write apps that run on platforms prior to Android 3.0. When running
on Android 3.0 or above, this implementation is still used; it does not try
to switch to the framework's implementation. See the framework SDK
documentation for a class overview.
Your activity must derive from FragmentActivity
to use this.
| Modifier and Type | Class and Description |
|---|---|
static interface |
LoaderManager.LoaderCallbacks<D>
Callback interface for a client to interact with the manager.
|
| Constructor and Description |
|---|
LoaderManager() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
destroyLoader(int id)
Stops and removes the loader with the given ID.
|
abstract void |
dump(java.lang.String prefix,
java.io.FileDescriptor fd,
java.io.PrintWriter writer,
java.lang.String[] args)
Print the LoaderManager's state into the given stream.
|
static void |
enableDebugLogging(boolean enabled)
Control whether the framework's internal loader manager debugging
logs are turned on.
|
abstract <D> Loader<D> |
getLoader(int id)
Return the Loader with the given id or null if no matching Loader
is found.
|
boolean |
hasRunningLoaders()
Returns true if any loaders managed are currently running and have not
returned data to the application yet.
|
abstract <D> Loader<D> |
initLoader(int id,
Bundle args,
LoaderManager.LoaderCallbacks<D> callback)
Ensures a loader is initialized and active.
|
abstract <D> Loader<D> |
restartLoader(int id,
Bundle args,
LoaderManager.LoaderCallbacks<D> callback)
Starts a new or restarts an existing
android.content.Loader in
this manager, registers the callbacks to it,
and (if the activity/fragment is currently started) starts loading it. |
public abstract <D> Loader<D> initLoader(int id, Bundle args, LoaderManager.LoaderCallbacks<D> callback)
In either case, the given callback is associated with the loader, and
will be called as the loader state changes. If at the point of call
the caller is in its started state, and the requested loader
already exists and has generated its data, then
callback LoaderManager.LoaderCallbacks.onLoadFinished(android.support.v4.content.Loader<D>, D)
will
be called immediately (inside of this function), so you must be prepared
for this to happen.
id
- A unique identifier for this loader. Can be whatever you want.
Identifiers are scoped to a particular LoaderManager instance.args
- Optional arguments to supply to the loader at construction.
If a loader already exists (a new one does not need to be created), this
parameter will be ignored and the last arguments continue to be used.callback
- Interface the LoaderManager will call to report about
changes in the state of the loader. Required.public abstract <D> Loader<D> restartLoader(int id, Bundle args, LoaderManager.LoaderCallbacks<D> callback)
android.content.Loader
in
this manager, registers the callbacks to it,
and (if the activity/fragment is currently started) starts loading it.
If a loader with the same id has previously been
started it will automatically be destroyed when the new loader completes
its work. The callback will be delivered before the old loader
is destroyed.id
- A unique identifier for this loader. Can be whatever you want.
Identifiers are scoped to a particular LoaderManager instance.args
- Optional arguments to supply to the loader at construction.callback
- Interface the LoaderManager will call to report about
changes in the state of the loader. Required.public abstract void destroyLoader(int id)
LoaderManager.LoaderCallbacks.onLoadFinished(Loader, Object)
, a call
will be made to LoaderManager.LoaderCallbacks.onLoaderReset(Loader)
.public abstract <D> Loader<D> getLoader(int id)
public abstract void dump(java.lang.String prefix, java.io.FileDescriptor fd, java.io.PrintWriter writer, java.lang.String[] args)
prefix
- Text to print at the front of each line.fd
- The raw file descriptor that the dump is being sent to.writer
- A PrintWriter to which the dump is to be set.args
- Additional arguments to the dump request.public static void enableDebugLogging(boolean enabled)
public boolean hasRunningLoaders()


Feature improvements
- Home server "response_window" can now take fractions of a
second. See proxy.conf.
- radmin now supports "show module status", as the counterpart
to "set module status"
- Added dictionary ericsson.packet.ccore.networks, bluecoat,
citrix, compatible, riverbed, ruckus, and RFC 7268.
- Add %{tag:} expansion to get the tag value of an attribute.
- Report 'application_name' in connections to PostgreSQL servers.
FreeRADIUS connections will now appear as
'FreeRADIUS <version> - <name>' in pg_stat_activity.
- All config item fields are now type checked at compile time
to prevent issues similar to #634 occuring again.
- Modify pairparsevalue to deal with embedded NULLs better,
and use the binary versions of attribute values in rlm_ldap.
- "ipaddr" will now use v6 if no v4 address is present. You should
use "ipv4addr" or "ipv6addr" to force v4/v6 addresses.
- The above applies to "listen", "home_server", and "client" sections.
- "client" sections will allow "ipaddr = 192.192.0/24". The old
"netmask" is still accepted, but the new format is preferred.
- Allow custom HTTP headers to be set for rlm_rest requests using
control:REST-HTTP-Header (attributes consumed after use).
- Extend format of %{rest:} expansion to allow HTTP method and POST
data to be specified
e.g. %{rest:POST http://example.org/api foo=bar&baz=boink}.
- Add %{hmacsha1:&data &key} and %{hmacmd5:&data &key} expansions
for signing data in requests.
- rlm_cache now consumes its control attributes to make runtime
configuration easier.
- Add control:Cache-Read-Only which when set to 'yes' will make the
cache module merge existing cache data, but not create new entries.
- Add %{unescape:} and %{urlunquote:} expansions to reverse escaping
and urlquoting.
- Add support for aliases in rlm_ldap.
- Add support for connection pool sharing to all modules that use
the connection pool (pool = <instance>).
- "tls" sections now have a "psk_query" configuration item, for dynamic
queries to discover a key from a PSK identity.
- Preliminary support for EAP channel bindings.
- Foundational work for dynamic home servers. They do not yet work,
but this is now only a matter of updating the "realm" module in
a future release.
- Support &attr[*] syntax to copy all instances of an attribute when
used with the += operator in an update section. May be qualified with
a tag.
- The logintime and expiration modules can now be listed in the
post-auth section. This makes some configurations simpler.
- Allow comparison of integer attributes of different sizes,
without requiring a cast.
- rlm_sqlippool is now IPV6 capable. Set "ipv6 = yes" to get
Framed-IPv6-Prefix returned. The SQL queries have NOT been updated.
Please submit patches.
- The debian build now checks for the OpenSSL package with the heartbleed
fix, and if found, sets: allow_vulnerable_openssl = 'CVE-2014-0160'
- allow bootstrap from multiple files in sqlite driver.
Bug Fixes
- make case-insensitive regular expressions work again, and add tests
for them.
- A few more talloc parenting issues
- Fix delayed proxy reply handling. Closes #637
- Fix OpenSSL initialization order when using
RADIUS/TLS. Fixes #646
- Don't double-quote strings in debugging messages
- Fix foreach / break. Fixes #639
- Chargeable-User-Identifier, ADSL-Agent-Circuit-Id and
ADSL-Agent-Remote-Id should be "octets" types in the default
dictionary.
- Fix typo in mainconfig. Fixes #634
- More rlm_perl fixes. Fixes #635
- Free OpenSSL memory on clean exit.
- Fix <attr>[0] !* ANY - Was removing all instances of <attr>
- Fix case where multiple attributes were returned from RHS of
mapping, as with rlm_ldap. Fixes #652
- Fix corner case in cursor where using fr_cursor_next_by_da
after calling fr_cursor_remove may of resulted in a read of
uninitialised memory.
- Don't SEGV if all connections to a database server go away.
Fixes #651.
- Fix issue where <attr> -= <value> was not removing tagged
instances of <attr> equal to <value> (only untagged).
- Fix issue where tag values were not being set on attributes
created with unlang/ldap update blocks.
- Create rlm_sqlcounter attributes as integer64 types instead
of integer types, so large counter values can be specified.
- Fix issue where specifying a dynamic client IP addresss using
FreeRADIUS-Client-IPv6-Prefix or FreeRADIUS-Client-IP-Prefix
may have caused a validation error.
- Don't print two "&" for messages about attribute or list
references in debug output.
- Fix urlquote and escape to encode Unicode characters correctly.
- Fix redundant-load-balance blocks to try other modules in
the group if one fails.
- Fix issue with rlm_pap password normalisation where
'known good' password strings stored in octets type attributes,
would be sometimes misnormalised as base64.
- Don't stop processing DHCP options if we find a 0x00 padding
option.
- Fix issue where modifying the value of an attribute created
from a template with a literal value, may have resulted in the
template literal being freed.
- Fix parenting issues in tls code which may have resulted in
memory corruption and crashes.
- Fix issue in radsniff where writing to PCAP files and using
-R response filters, where the requests would still be written
to the PCAP for non matching responses.
- Define __APPLE_USE_RFC_2292 so that the server builds with IPv6
support on OSX.
- Fix LDAP group lookups for named rlm_ldap instances.
Note that attribute references should be used when
checking LDAP-Group attributes. e.g. if (&LDAP-Group == 'foo').
- Delayed attribute references can now be used in unlang
existence checks. i.e. if (&Attribute-Name) { ... }
- Fix issues in EAP-PWD. CVE-2014-4731, CVE-2014-4732, and
CVE-2014-4733. There is no external authentication bypass.
- Fix a number of uses of the talloc parent/child reference.
- Release connection used for reading bulk clients in rlm_ldap.
- rlm_rest is now fail-safe if it's used without any configuration
- Pull in build fixes for FreeBSD from ports.
- Fix error in sqlite postauth query
- Evaluate argument to "switch" statements once, instead of for each
"case" statement.
- Define sig_t on systems without it. Closes #765.
- Fix boundary issue with rlm_rest. Closes #768
- Optimize "%{Attribute-Name}" in comparisons only if the dictionary
types match.
- Don't do chmod() in rad_mkdir() if the directory already exists.
We might not have permission to change it.
- Use getpwnam_r() and getgrnam_r() on systems which support it.
Closes #775.
- Clients loaded from SQL are now tied to the "listen" section
of a virtual server, instead of being global.
- Check for -lpcre. The system might have pcre.h without -lpcre.
- When proxying to a virtual server, use the proxy_reply instead
of ignoring it.
- Fixed typos in DHCP SQL IPPool.
- Fix crash when passing multiple arguments to Perl xlat.


|
Unity Overlay Toolkit
|
The NetworkServerSimple is a basic server class without the "game" related functionality that the NetworkServer class has. More...
Public Member Functions | |
| void | SetNetworkConnectionClass< T > () |
| This sets the class that is used when creating new network connections. More... | |
| NetworkServerSimple () | |
| virtual void | Initialize () |
| Initialization function that is invoked when the server starts listening. This can be overridden to perform custom initialization such as setting the NetworkConnectionClass. More... | |
| bool | Configure (ConnectionConfig config, int maxConnections) |
| This configures the network transport layer of the server. More... | |
| bool | Configure (HostTopology topology) |
| This configures the network transport layer of the server. More... | |
| bool | Listen (string ipAddress, int serverListenPort) |
| This starts the server listening for connections on the specified port. More... | |
| bool | Listen (int serverListenPort) |
| This starts the server listening for connections on the specified port. More... | |
| bool | Listen (int serverListenPort, HostTopology topology) |
| This starts the server listening for connections on the specified port. More... | |
| void | ListenRelay (string relayIp, int relayPort, NetworkID netGuid, SourceID sourceId, NodeID nodeId) |
| Starts a server using a Relay server. This is the manual way of using the Relay server, as the regular NetworkServer.Connect() will automatically use the Relay server if a match exists. More... | |
| void | Stop () |
| This stops a server from listening. More... | |
| void | RegisterHandler (short msgType, NetworkMessageDelegate handler) |
| This registers a handler function for a message Id. More... | |
| void | UnregisterHandler (short msgType) |
| This unregisters a registered message handler function. More... | |
| void | ClearHandlers () |
| Clears the message handlers that are registered. More... | |
| void | UpdateConnections () |
| This function causes pending outgoing data on connections to be sent, but unlike Update() it works when the server is not listening. More... | |
| void | Update () |
| This function pumps the server causing incoming network data to be processed, and pending outgoing data to be sent. More... | |
| NetworkConnection | FindConnection (int connectionId) |
| This looks up the network connection object for the specified connection Id. More... | |
| bool | SetConnectionAtIndex (NetworkConnection conn) |
| This adds a connection created by external code to the server's list of connections, at the connection's connectionId index. More... | |
| bool | RemoveConnectionAtIndex (int connectionId) |
| This removes a connection object from the server's list of connections. More... | |
| void | SendBytesTo (int connectionId, byte[] bytes, int numBytes, int channelId) |
| This sends the data in an array of bytes to the connected client. More... | |
| void | SendWriterTo (int connectionId, NetworkWriter writer, int channelId) |
| This sends the contents of a NetworkWriter object to the connected client. More... | |
| void | Disconnect (int connectionId) |
| This disconnects the connection of the corresponding connection id. More... | |
| void | DisconnectAllConnections () |
| This disconnects all of the active connections. More... | |
| virtual void | OnConnectError (int connectionId, byte error) |
| A virtual function that is invoked when there is a connection error. More... | |
| virtual void | OnDataError (NetworkConnection conn, byte error) |
| A virtual function that is called when a data error occurs on a connection. More... | |
| virtual void | OnDisconnectError (NetworkConnection conn, byte error) |
| A virtual function that is called when a disconnect error happens. More... | |
| virtual void | OnConnected (NetworkConnection conn) |
| This virtual function can be overridden to perform custom functionality for new network connections. More... | |
| virtual void | OnDisconnected (NetworkConnection conn) |
| This virtual function can be overridden to perform custom functionality for disconnected network connections. More... | |
| virtual void | OnData (NetworkConnection conn, int receivedSize, int channelId) |
| This virtual function can be overridden to perform custom functionality when data is received for a connection. More... | |
Properties | |
| int | listenPort [get, set] |
| The network port that the server is listening on. More... | |
| int | serverHostId [get, set] |
| The transport layer hostId of the server. More... | |
| HostTopology | hostTopology [get] |
| The transport layer host-topology that the server is configured with. More... | |
| bool | useWebSockets [get, set] |
| This causes the server to listen for WebSocket connections instead of regular transport layer connections. More... | |
| ReadOnlyCollection< NetworkConnection > | connections [get] |
| A read-only list of the current connections being managed. More... | |
| Dictionary< short, NetworkMessageDelegate > | handlers [get] |
| The message handler functions that are registered. More... | |
| byte[] | messageBuffer [get] |
| The internal buffer that the server reads data from the network into. This will contain the most recent data read from the network when OnData() is called. More... | |
| NetworkReader | messageReader [get] |
| A NetworkReader object that is bound to the server's messageBuffer. More... | |
| Type | networkConnectionClass [get] |
| The type of class to be created for new network connections from clients. More... | |
The NetworkServerSimple is a basic server class without the "game" related functionality that the NetworkServer class has.
This class has no scene management, spawning, player objects, observers, or static interface like the NetworkServer class. It is simply a server that listens on a port, manages connections, and handles messages. There can be more than one instance of this class in a process.
Like the NetworkServer and NetworkClient classes, it allows the type of NetworkConnection class created for new connections to be specified with SetNetworkConnectionClass(), so custom types of network connections can be used with it.
This class can be used by overriding the virtual functions OnConnected, OnDisconnected and OnData; or by registering message handlers.
|
inline |
|
inline |
Clears the message handlers that are registered.
|
inline |
This configures the network transport layer of the server.
| config | The transport layer configuration to use. |
| maxConnections | Maximum number of network connections to allow. |
|
inline |
This configures the network transport layer of the server.
| topology | The transport layer host topology to use. |
|
inline |
This disconnects the connection of the corresponding connection id.
| connectionId | The id of the connection to disconnect. |
|
inline |
This disconnects all of the active connections.
|
inline |
This looks up the network connection object for the specified connection Id.
| connectionId | The connection id to look up. |
|
inlinevirtual |
Initialization function that is invoked when the server starts listening. This can be overridden to perform custom initialization such as setting the NetworkConnectionClass.
|
inline |
This starts the server listening for connections on the specified port.
| serverListenPort | The port to listen on. |
|
inline |
This starts the server listening for connections on the specified port.
| serverListenPort | The port to listen on. |
| topology | The transport layer host toplogy to configure with. |
|
inline |
This starts the server listening for connections on the specified port.
| ipAddress | |
| serverListenPort | The port to listen on. |
|
inline |
Starts a server using a Relay server. This is the manual way of using the Relay server, as the regular NetworkServer.Connect() will automatically use the Relay server if a match exists.
| relayIp | Relay server IP Address. |
| relayPort | Relay server port. |
| netGuid | GUID of the network to create. |
| sourceId | This server's sourceId. |
| nodeId | The node to join the network with. |
|
inlinevirtual |
This virtual function can be overridden to perform custom functionality for new network connections.
By default OnConnected just invokes a connect event on the new connection.
using UnityEngine; using UnityEngine.Networking;
public abstract class ExampleScript : NetworkManager { public virtual void OnConnected(NetworkConnection conn) { conn.InvokeHandlerNoData(MsgType.Connect); } }
| conn | The new connection object. |
|
inlinevirtual |
A virtual function that is invoked when there is a connection error.
| connectionId | The id of the connection with the error. |
| error | The error code. |
|
inlinevirtual |
This virtual function can be overridden to perform custom functionality when data is received for a connection.
By default this function calls HandleData() which will process the data and invoke message handlers for any messages that it finds.
using UnityEngine; using UnityEngine.Networking;
public abstract class ExampleScript : NetworkManager { byte[] msgBuffer = new byte[1024];
public virtual void OnData(NetworkConnection conn, int channelId, int receivedSize) { conn.TransportRecieve(msgBuffer, receivedSize, channelId); } }
| conn | |
| receivedSize | |
| channelId |
|
inlinevirtual |
A virtual function that is called when a data error occurs on a connection.
| conn | The connection object that the error occured on. |
| error | The error code. |
|
inlinevirtual |
This virtual function can be overridden to perform custom functionality for disconnected network connections.
By default OnConnected just invokes a disconnect event on the new connection.
using UnityEngine; using UnityEngine.Networking;
public abstract class ExampleScript : NetworkManager { public virtual void OnDisconnected(NetworkConnection conn) { conn.InvokeHandlerNoData(MsgType.Disconnect); } }
| conn |
|
inlinevirtual |
A virtual function that is called when a disconnect error happens.
| conn | The connection object that the error occured on. |
| error | The error code. |
|
inline |
This registers a handler function for a message Id.
| msgType | Message Id to register handler for. |
| handler | Handler function. |
|
inline |
This removes a connection object from the server's list of connections.
This is a low-level function that should not be used for regular connections. It is only safe to remove connections added with SetConnectionAtIndex() using this function.
| connectionId | The id of the connection to remove. |
|
inline |
This sends the data in an array of bytes to the connected client.
| connectionId | The id of the connection to send on. |
| bytes | The data to send. |
| numBytes | The size of the data to send. |
| channelId | The channel to send the data on. |
|
inline |
This sends the contents of a NetworkWriter object to the connected client.
| connectionId | The id of the connection to send on. |
| writer | The writer object to send. |
| channelId | The channel to send the data on. |
|
inline |
This adds a connection created by external code to the server's list of connections, at the connection's connectionId index.
Connections are usually added automatically, this is a low-level function for the rare special case of externally created connections.
| conn | A new connection object. |
|
inline |
This sets the class that is used when creating new network connections.
The class must be derived from NetworkConnection.
| T |
| T | : | NetworkConnection |
|
inline |
This stops a server from listening.
|
inline |
This unregisters a registered message handler function.
| msgType | The message id to unregister. |
|
inline |
This function pumps the server causing incoming network data to be processed, and pending outgoing data to be sent.
This should be called each frame, and is called automatically for the server used by NetworkServer.
|
inline |
This function causes pending outgoing data on connections to be sent, but unlike Update() it works when the server is not listening.
When the server is using externally added connections and the dontListen flag is set, the regular connection flush in the Update() function does not happen. In this case, UpdateConnections can be called to pump the external connections. This is an advanced usage that should not be required unless the server uses custom NetworkConnection classes that do not use the built-in transport layer.
|
get |
A read-only list of the current connections being managed.
|
get |
The message handler functions that are registered.
|
get |
The transport layer host-topology that the server is configured with.
A host topology object can be passed to the Listen() function, or a default host topology that is compatible with the default topology of NetworkClient will be used.
|
getset |
The network port that the server is listening on.
|
get |
The internal buffer that the server reads data from the network into. This will contain the most recent data read from the network when OnData() is called.
|
get |
A NetworkReader object that is bound to the server's messageBuffer.
|
get |
The type of class to be created for new network connections from clients.
By default this is the NetworkConnection class, but it can be changed with SetNetworkConnectionClass() to classes derived from NetworkConnections.
|
getset |
The transport layer hostId of the server.
|
getset |
This causes the server to listen for WebSocket connections instead of regular transport layer connections.
This allows WebGL clients to talk to the server.


The "name"-logic was already working, else it wouldn't find any configs. Most of the coins don't need confpath, they were so clever to simply use the same logic as BTC, which means the path to the config file is ~/.bitcoin/bitcoin.conf and so the path in mm2 is ~/$name/$name.conf. Unfortunately there are also not so clever guys, who use strange and unnecessary stuff like ~/.dashcore/dash.conf.


The ViewModel is attached to a "root" DOM element. When changes are made to the elements within the root DOM element, the changes are reflected in the ViewModel.


ßß
BusMall
Onbus Shopping Catalog, Unique Gifts Travel Gear
-->
>Please click on your favorite product in each group<


The Window.on_key_press and Window.on_key_release events are fired when any key on the keyboard is pressed or released, respectively. These events are not affected by "key repeat" -- once a key is pressed there are no more events for that key until it is released.
Both events are parameterised by the same arguments:
def on_key_press(symbol, modifiers): pass def on_key_release(symbol, modifiers): pass
The symbol argument is an integer that represents a "virtual" key code. It does //not// correspond to any particular numbering scheme; in particular the symbol is //not// an ASCII character code.
pyglet has key symbols that are hardware and platform independent for many types of keyboard. These are defined in pyglet.window.key as constants. For example, the Latin-1 alphabet is simply the letter itself:
key.A
key.B
key.C
...
The numeric keys have an underscore to make them valid identifiers:
key._1
key._2
key._3
...
Various control and directional keys are identified by name:
key.ENTER or key.RETURN key.SPACE key.BACKSPACE key.DELETE key.MINUS key.EQUAL key.BACKSLASH key.LEFT key.RIGHT key.UP key.DOWN key.HOME key.END key.PAGEUP key.PAGEDOWN key.F1 key.F2 ...
Keys on the number pad have separate symbols:
key.NUM_1
key.NUM_2
...
key.NUM_EQUAL
key.NUM_DIVIDE
key.NUM_MULTIPLY
key.NUM_MINUS
key.NUM_PLUS
key.NUM_DECIMAL
key.NUM_ENTER
Some modifier keys have separate symbols for their left and right sides (however they cannot all be distinguished on all platforms):
key.LCTRL
key.RCTRL
key.LSHIFT
key.RSHIFT
...
Key symbols are independent of any modifiers being held down. For example, lower-case and upper-case letters both generate the A symbol. This is also true of the number keypad.
The modifiers that are held down when the event is generated are combined in a bitwise fashion and provided in the modifiers parameter. The modifier constants defined in pyglet.window.key are:
MOD_SHIFT
MOD_CTRL
MOD_ALT Not available on Mac OS X
MOD_WINDOWS Available on Windows only
MOD_COMMAND Available on Mac OS X only
MOD_OPTION Available on Mac OS X only
MOD_CAPSLOCK
MOD_NUMLOCK
MOD_SCROLLLOCK
MOD_ACCEL Equivalent to MOD_CTRL, or MOD_COMMAND on Mac OS X.
For example, to test if the shift key is held down:
if modifiers & MOD_SHIFT: pass
Unlike the corresponding key symbols, it is not possible to determine whether the left or right modifier is held down (though you could emulate this behaviour by keeping track of the key states yourself).
pyglet does not define key symbols for every keyboard ever made. For example, non-Latin languages will have many keys not recognised by pyglet (however, their Unicode representation will still be valid, see Text and motion events). Even English keyboards often have additional so-called "OEM" keys added by the manufacturer, which might be labelled "Media", "Volume" or "Shopping", for example.
In these cases pyglet will create a key symbol at runtime based on the hardware scancode of the key. This is guaranteed to be unique for that model of keyboard, but may not be consistent across other keyboards with the same labelled key.
The best way to use these keys is to record what the user presses after a prompt, and then check for that same key symbol. Many commercial games have similar functionality in allowing players to set up their own key bindings.
pyglet provides the convenience class KeyStateHandler for storing the current keyboard state. This can be pushed onto the event handler stack of any window and subsequently queried as a dict:
from pyglet.window import key window = pyglet.window.Window() keys = key.KeyStateHandler() window.push_handlers(keys) # Check if the spacebar is currently pressed: if keys[key.SPACE]: pass


| parent - parent entity of mirror |
|
Creates a mirror entity and returns its handle.
A mirror entity is basically a flat, infinite 'ground'. This ground is invisible, except it vertically flips anything above it, below it and vice versa. It is useful for games where you want have the effect of a shiny floor showing a reflection. For a true shiny floor effect, try combining a mirror entity with a textured plane entity that has an alpha level of 0.5. The optional parent parameter allows you to specify a parent entity for the mirror so that when the parent is moved the child mirror will move with it. However, this relationship is one way; applying movement commands to the child will not affect the parent. Specifying a parent entity will still result in the mirror being created at position 0,0,0 rather than at the parent entity's position. See also: CreatePlane. |
|
; CreateMirror Example
; -------------------- Graphics3D 640,480 SetBuffer BackBuffer() camera=CreateCamera() PositionEntity camera,0,1,-5 light=CreateLight() RotateEntity light,90,0,0 ; Create cone cone=CreateCone(32) PositionEntity cone,0,2,0 ; Create plane plane=CreatePlane() grass_tex=LoadTexture( "media/chorme-2.bmp" ) EntityTexture plane,grass_tex EntityAlpha plane,0.5 ; Create mirror mirror=CreateMirror() While Not KeyDown( 1 ) If KeyDown( 203 )=True Then MoveEntity cone,-0.1,0,0 If KeyDown( 205 )=True Then MoveEntity cone,0.1,0,0 If KeyDown( 208 )=True Then MoveEntity cone,0,-0.1,0 If KeyDown( 200 )=True Then MoveEntity cone,0,0.1,0 If KeyDown( 44 )=True Then MoveEntity cone,0,0,-0.1 If KeyDown( 30 )=True Then MoveEntity cone,0,0,0.1 RenderWorld Text 0,0,"Use cursor/A/Z keys to move cone above infinite mirror" Flip Wend End |


Full name:
org.dellroad:dellroad-stuff-maven-plugin:2.5.9:svn-version
Description:
svnversion
.Attributes:
initialize
.| Name | Type | Since | Description |
|---|---|---|---|
<committed> |
boolean |
- |
Report last changed rather than current revisions. Default value is: false .User property is: committed . |
<encoding> |
String |
- |
The name of the character encoding to use when converting the
command's standard output bytes into a String .Default value is: UTF-8 .User property is: encoding . |
<propertyName> |
String |
- |
The name of the Maven property to set. Default value is: svn.version .User property is: propertyName . |
<trailingUrl> |
String |
- |
Trailing portion of the URL used to determine if the working
directory itself is switched. User property is: trailingUrl . |
<trim> |
boolean |
- |
Whether to trim whitespace before setting the property value. Default value is: true .User property is: trim . |
<workingDirectory> |
File |
- |
The svn(1) working directory where the code is checked
out.Default value is: ${project.basedir} .User property is: workingDirectory . |
boolean
No
committed
false
String
.java.lang.String
No
encoding
UTF-8
java.lang.String
No
propertyName
svn.version
java.lang.String
No
trailingUrl
boolean
No
trim
true
svn(1)
working directory where the code is checked
out.java.io.File
No
workingDirectory
${project.basedir}


Toggle navigation
Dashboard
FIR
Home
Dashboard
Latest Orders
FIR ID
USERNAME
FIRST NAME
FIR TYPE
DATE
VIEW DETAILS
CURRENT STATUS
UPDATE STATUS
Sort By
Type of crime
MURDER
ATTEMPT TO MURDER
DACOITY
DACOITY WITH FIREARMS
ROBBERY
ROBBERY WITH FIREARMS
BURGLARY
THEFT
RAPE
MOLESTATION
HURT
RIOTS
COMMUNAL RIOTS
ASSAULT ON GOVT. SERVANT ACT
GAMBLING
MONEY LENDERS ACT
ESSENTIAL COMMODITIES ACT
OTHERS


OverlayHUD is a generic component to build HUD's. You can use this for example to show notifications of completed tasks, a blocking notification of a busy task or a login box. The userinput to underlaying views is blocked to prevent bypassing of the HUD. But in a tabView you are still free to switch to a different tab.
2 kinds of HUDs are included. A generic empty hud and a loading hud with a label, activity indicator and the posibility to show a image or image sequence. The loading HUD is similar to MBProgressHUD wich is a native component with a similar functionality.
Every hud is customizable with the posibility to add additional subviews and elements.
To access this module from JavaScript, you would do the following:
var overlayhudModule = require("nl.icept.overlayhud");
The overlayhudModule variable is a reference to the Module object.
Don't forget to list the module in tiapp.xml!
Create a empty HUD. Options is a optional object with the following properties and default values:
{ zIndex: 999,
backgroundColor: "#000",
borderRadius: 10,
opacity: 0.8,
height: 'auto',
width: 'auto',
top: null,
bottom: null,
left: null,
right: null
}
Create a empty HUD on the specified window. Use this when you use the Single Context Model.
Create a loading HUD. Options is a optional object with the following properties and default values:
{ zIndex: 999,
backgroundColor: "#000",
borderRadius: 10,
opacity: 0.8,
color: '#fff',
fontSize: 20,
fontWeight: 'bold',
message: "Loading...",
activityIndicator: {
style: Titanium.UI.iPhone.ActivityIndicatorStyle.BIG,
hidden: false,
top: null,
bottom: null,
left: null,
right: null
},
image: {
image: null,
images: null,
opacity: 1.0,
repeatCount: 1,
hidden: false,
height: 'auto',
width: 'auto',
top: null,
bottom: null,
left: null,
right: null
},
label: {
hidden: false,
height: 'auto',
width: 'auto',
top: null,
bottom: 20,
left: null,
right: null
},
overlay: {
height: 150,
width: 150,
top: null,
bottom: null,
left: null,
right: null
}
}
Create a loading HUD on the specified window. Use this when you use the Single Context Model.
Show the HUD. Its attached to the current window.
Hide the HUD.
Add a new element or subview to the HUD.
Remove a element or subview from the HUD.
var loadingOverlay = overlayhudModule.createLoadingHUD({}); loadingOverlay.show();
setTimeout(function () { loadingOverlay.hide({}); }, 3000);
For a complete overview of the options, a example project is included.
Martijn Bogaard<EMAIL_ADDRESS>After purchase in the Appcelerator Marketplace you get a unlimited, non-transferable 1 seat license. You are free to use this in a unlimited amount of projects but you are not allowed to (re)sell your license.


PDXNode is a Node.js usergroup based in Portland, Oregon. We organize two meetups every month: one for talks, one for hacks. We're also working on putting together some workshops!
Every 2nd Thursday we put on a presentation night at Alchemy Code Lab where the goal is to provide high-quality presentations from people in the Node community locally and abroad. At the present we typically have local speakers present in person, and other geographically distributed speakers present remotely via talky.io.
Every last Thursday we put on a hack night at Ctrl-H Hackerspace where the goal is to provide a fun and easy-going environment for individuals & groups to hack on their own projects and ask questions along the way, as well as support beginners and people who are new to Node with help in answering questions and pair-coding.
We're working on reactivating our workshop series to provide some hands-on community learning experiences. Check back soon, or reach out to us to get involved!
Watch the latest presentation videos below. Visit our youtube channel to see all the presentations we've recorded at our talk nights!


Introduction¶
Declarative Stream Mapping(DSM) is a stream deserializer library that makes parsing of XML and JSON easy. DSM allows you to make custom parsing, filtering, transforming, aggregating, grouping on any JSON or XML document at stream time(read only once). DSM uses yaml or json for configuration definitions
If you parsing a complex, huge file and want to have high performance and low memory usage then DSM is for you.
Simple Example¶
Lets Parse below simple JSON and XML file with DSM
File contents are taken from Swagger Petstore example. Slightly changed.
Source file
JSON
{
"id": 1,
"name": "Van Kedisi",
"status": "sold",
"createDate": "01/24/2019",
"category": {"id": 1,"name": "Cats"},
"tags": [
{"id": 1,"name": "Cute"},
{"id": 2,"name": "Popular"}
],
"photoUrls": ["url1","url2" ]
}
XML
<?xml version="1.0" encoding="UTF-8" ?>
<Pet id="1">
<name>Van Kedisi</name>
<status>sold</status>
<createDate>01/24/2019</createDate>
<category>
<id>1</id>
<name>Cats</name>
</category>
<tags>
<tag>
<id>1</id>
<name>Cute</name>
</tag>
<tag>
<id>2</id>
<name>Popular</name>
</tag>
</tags>
<photoUrls>
<photoUrl>url1</photoUrl>
<photoUrl>url2</photoUrl>
</photoUrls>
</Pet>
Those are rules that we want to apply during parsing.
- exclude “photoUrls” tag.
- read only “name” field of “tags” tag.
- read only “name” field of “category” tag.
- add new the “isPopular” field that it’s value is true, if “tag.name” has “Popular” value
DSM config file
[YAML]
params:
dateFormat: MM/dd/yyyy
result:
type:object
path: /
xml:
path: /Pet
filter: $self.data.status=='sold'
fields:
id:
dataType: int
xml:
attribute: true
name: string
status: status
createDate: date
category:
path: category/name
isPopular:
default: $self.data.tags.contains("Popular")
tags:
type:array
path: tags/name |tags/tag/name # this is a regex expression. works for both JSON and XML
Class to deserialize
[JAVA]
public class Pet {
private int id;
private String name;
private boolean isPopular;
private String status;
private String category;
private Date createDate;
private List<String> tags;
// getter/setter
}
Read Data
DSMBuilder builder = new DSMBuilder("dsm-config-file.yaml");
DSM dsm = builder.setType(DSMBuilder.XML).create();
Pet pet = dsm.toObject(new File("path/to/xmlFile.xml"),Pet.class); // read data from xml file
dsm = builder.setType(DSMBuilder.JSON).create();
pet = dsm.toObject(new File("path/to/jsonFile.json"),Pet.class); // read data from json file
Features¶
- Work for both XML and JSON
- Custom stream parsing
- Filtering by value on any field with very low cognitive complexity
- Flexible value transformation.
- Default value assignment
- Custom function calling during parsing
- **Powerful Scripting**(Apache JEXL, Groovy, Javascript and other jsr223 implementations are supported)
- Multiple inheritance between DSM config file (DSM file can extends to another config file)
- Reusable fragments support
- Very short learning curve
- Memory and CPU efficient
- Partial data extraction from JSON or XML
- String manipulation with expression
Installation¶
Maven
Jackson
<dependency>
<groupId>com.github.mfatihercik</groupId>
<artifactId>dsm</artifactId>
<version>1.0.4</version>
</dependency>
Gradle
Jackson
compile ('com.github.mfatihercik:dsm:1.0.4')
Sample Config File¶
Detailed documentation and all option is here.
This config file contains some possible option and their short description.
[header.yaml]
params:
dateFormat: MM/dd/yyyy # define date format for "date" data type
transformations:
SOLD_STATUS: # value transformation for "isAvailable" property
map:
sold: false
pending: false
available: true
DEFAULT: false
SOLD_STATUS_SKIP:
$ref: $transformations.SOLD_STATUS # extends to "SOLD_STATUS" transformation.
map:
DEFAULT: exclude # exclude default value
onlyIfExist: # make transformation only source value exist in transformation map other wise return as it is
functions:
insertPet: com.example.InsertPet # declare a function to declare at Parsing Element.
fragments: # create reusable fragment
category:
type:object
fields:
id: int
name: string
type: string
[main.yaml]
$extends: header.yaml # extends to header.yaml config.
result:
type:array # result is an array
path: / | /Pets/Pet # start reading form beginning for json. path is a regex. we can define both for xml and json same time. or we can declare for xml in XML field.
xml:
path: /Pets/Pet # start reading from /Pets/Pet for xml
filter: $self.data.isAvailable # filter by "isAvailable" property. "self" key word refers to current Node. self.parent refers to parent Node. self.data refers to current node data
function: insertPet # call "insertPet" function for every element of "result" array
fields:
name: string # read name as string.
id:
dataType: int # read id as int
xml:
attribute: true # id is an attribute on /Pets/Pet tag.
createDate: date # use dateFormat in params then convert string to date
isAvailable:
path: status # read isAvailable as string from "status" tag
dataType: boolean
transformationCode: SOLD_STATUS # user "SOLD_STATUS" transformation to map from "status" to "isAvailable"
category:
$ref: $fragments.category # extends to "fragment.category"
fields:
type: exclude # exclude "type" field from "category" fragment
name:
default: 'Animal' #set default value to 'Animal' if "category/name" tag not exist in source document
isPopular:
default: $self.data.tags.contains("Popular") # set default value of "isPopular" property
tags:
type:array
path: tags/name
filter: $value.length>15 # filter by length of value.
xml:
path: tags/tag/name


Specifies custom rulepacks or directories. When specifying a directory, all of the files in the directory with .bin and .xml extensions are included.
This field supports rulepack filesystem locations as well as URL's. The URLs may be to individual .bin or .xml rulepacks, or to .zip archives containing multiple rulepacks. The contents are downloaded, optionally unzipped, and placed into a temporary directory where they will be picked up automatically by Cloudscan.


|
goog.testing.stacktrace.CHROME_STACK_FRAME_REGEXP_()
Regular expression for parsing one stack frame in Chrome.
|
code » | ||
|
goog.testing.stacktrace.FIREFOX_STACK_FRAME_REGEXP_()
Regular expression for parsing one stack frame in Firefox.
|
code » | ||
|
goog.testing.stacktrace.FUNCTION_SOURCE_REGEXP_()
Regular expression for finding the function name in its source.
|
code » | ||
|
Brings the stack trace into a common format across browsers.
|
code » | ||
|
goog.testing.stacktrace.deobfuscateFunctionName_()
No description.
|
code » | ||
|
Creates a stack trace by following the call chain. Based on
goog.debug.getStacktrace.
Returns:
Stack frames.
|
code » | ||
|
Converts the stack frames into canonical format. Chops the beginning and the
end of it which come from the testing environment, not from the test itself.
Arguments:
Returns:
Canonical, pretty printed stack trace.
|
code » | ||
|
Gets the native stack trace if available otherwise follows the call chain.
Returns:
The stack trace in canonical format.
|
code » | ||
|
Escapes the special character in HTML.
|
code » | ||
|
No description.
Returns:
Whether the Closure Inspector is active.
|
code » | ||
|
Deobfuscates a compiled function name with the function passed to
#setDeobfuscateFunctionName. Returns the original function name if
the deobfuscator hasn't been set.
|
code » | ||
|
Parses one stack frame.
Arguments:
Returns:
Stack frame object or null if the parsing failed.
|
code » | ||
|
Parses the browser's native stack trace.
Arguments:
Returns:
Stack frames. The unrecognized frames will be nulled out.
|
code » | ||
|
goog.testing.stacktrace.setDeobfuscateFunctionName(fn)
Sets function to deobfuscate function names.
Arguments:
|
code » |
|
RegExp pattern for function name alias in the Chrome stack trace.
|
Code » | |
|
RegExp pattern for function call in the Chrome stack trace.
Creates 3 submatches with context object (optional), function name and
function alias (optional).
|
Code » | |
|
RegExp pattern for function names and constructor calls in the Chrome stack
trace.
|
Code » | |
|
RegExp pattern for an URL + line number + column number in Chrome.
The URL is either in submatch 1 or submatch 2.
|
Code » | |
|
RegExp pattern for function call in the Firefox stack trace.
Creates 2 submatches with function name (optional) and arguments.
|
Code » | |
|
RegExp pattern for JavaScript identifiers. We don't support Unicode
identifiers defined in ECMAScript v3.
|
Code » | |
|
Maximum number of steps while the call chain is followed.
|
Code » | |
|
RegExp pattern for an URL + position inside the file.
|
Code » |


web noodlings from Phil Hawksworth
blog posts & announcements
conferences & meetups
notes and resources
about the author


Preference
Initial rate:
JPY / USD
JPY / EUR
JPY / GBP
JPY / CHF
JPY / HKD
JPY / GOLD
Spread:
Step size:
Unit:
Lot (x Unit):
Lot:
*Automatic set
Start or Reset
Instructions
Fluctuation
Up
/
Down
BID:
0.00
/ ASK:
0.00
Decide
History:
[]
Result
Profits:
0
Unrealized gains:
0
Deposit:
0
(x25:
0
)(x888:
0
)
Positions
Limit orders
© 2016
danmaq / DAYS PRODUCTION


Try out our Premium Member services: Virtual Legal Assistant, Query Alert Service and an ad-free experience. Free for one month and pay only if you like it.
IN THE HIGH COURT OF KERALA AT ERNAKULAM PRESENT: THE HONOURABLE MR. JUSTICE A.V.RAMAKRISHNA PILLAI MONDAY,THE 7TH DAY OF APRIL 2014/17TH CHAITHRA, 1936 WP(C).No. 19985 of 2011 (W) ---------------------------------------- PETITIONER: ------------------- GEORGE VARGHESE, S/O. M.G.GEORGE, AGED 56 YEARS, MULAMKOZHIL HOUSE, MAKKAMKUNNU, KOZENCHERRY, PATHANAMTHITTA (PROPRIETOR, ROYAL INDANE SERVICES, PATHANAMTHITTA). BY ADVS.SRI.V.A.MUHAMMED, SRI.RAJESH CHAKYAT. RESPONDENTS: ----------------------- 1. THE KERALA STATE POLLUTION CONTROL BOARD, REPRESENTED BY ITS CHAIRMAN, KERALA STATE - POLLUTION CONTROL BOARD OFFICE, THIRUVANANTHAPURAM - 695 001. * 2.THE K.P.C.B., DISTRICT OFFICE, PATHANAMTHITTA - 689 645. *CORRECTED AS "THE KERALA STATE POLLUTION CONTROL BOARD, DISTRICT OFFICE, PATHANAMTHITTA - 689 645" VIDE ORDER DATED 01/08/2011 IN I.A. NO.12152/2011. 3. SRI.PAULOSE EPEN, THE ENVIRONMENTAL ENGINEER, KERALA STATE - POLLUTION CONTROL BAORD, DISTRICT OFFICE, PATHANAMTHITTA - 689 645. 4. THE OMALLUR GRAMA PANCHAYATH, REPRESENTED BY ITS SECRETARY, PANCHAYATH OFFICE, OMALLUR P.O., PATHANAMTHITTA - 689 647. 5. THE COMMERCIAL MANAGER (INDANE L.P.G), INDIAN OIL CORPORTION LIMITED, PANAMBILLY NAGAR,KOCHI, KOCHIN - 682 031. Prv. W.P.(C).NO.19985/2011 - W: 6. THE DEPUTY CHIEF CONTROLLER OF EXPLOSIVE, ERNAKULAM SUB CIRCLE OFFICE, KOCHI - 682 018. R1 TO R3 BY SRI.M.R.ARUNKUMAR, S.C, SRI.M.K.CHANDRAMOHAN DAS, S.C, R4 BY ADVS. SRI.S.P.ARAVINDAKSHAN PILLAY, SMT.N.SANTHA, SRI.S.A.ANAND, SRI.K.A.BALAN, SRI.PETER JOSE CHRISTO, R5 BY ADVS. SRI.E.K.NANDAKUMAR, SRI.K.JOHN MATHAI, SRI.P.BENNY THOMAS, SRI.P.GOPINATH, R6 BY GOVT. PLEADER SRI. R. RANJITH.  EXT.P.2: A TRUE COPY OF THE NOTICE DTD. 28/01/2011. EXT.P.3: A TRUE COPY OF THE LETTER DTD. 14/02/11. EXT.P.4: A TRUE COPY OF THE LETTER ISSUED BY THE 4TH RESPONDENT DTD. 14/02/2011. EXT.P.5: A TRUE COPY OF THE APPLICATION DTD. 17/03/2011. EXT.P.6: A TRUE COPY OF THE INFORMATION SUPPLIED TO THE PETITIONER DTD. 09/05/11. RESPONDENTS' ANNEXURES: ANNEXURE R2 (a): COPY OF THE AUTHORIZATION MADE BY THE CHAIRMAN, KERALA STATE POLLUTION CONTROL BOARD DTD. 11/08/2011. ANNEXURE R2 (b): COPY OF THE EXTRACT OF GAS CONNECTION `CUSTOMER CARD' IN THE NAME OF DISTRICT OFFICE,POLLUTION CONTROL BOARD, PATHANAMTHITTA. ANNEXURE R2 (c): COPY OF THE GOVERNMENT G.O. NO.2586/2002 H & FWD DTD. 21/10/2002. ANNEXURE R2 (d): COPY OF THE RELEVANT PAGES OF THE ACT (PREVENTIONS AND CONTROL OF POLLUTION) ACT 1981. ANNEXURE R2 (e): COPY OF ONE OF THE PUBLIC COMPLAINT SUBMITTED BEFORE THE SECRETARY, KARUKACHAL GRAMA PANCHAYATH DTD. 09/03/2010. ANNEXURE R2 (f): COPY OF THE LETTER MADE BY KERALA STATE POLLUTION CONTROL BOARD ADDRESSED TO THE GENERAL MANAGER, INDANE AREA OFFICE DTD. 31/03/2011. ANNEXURE R2 (g): COPY OF THE MINUTES OF THE MEETING HELD BY THE CHAIRMAN OF THE POLLUTION CONTROL BOARD DTD. 12/10/2011. //TRUE COPY// P.A. TO JUDGE. Prv. A.V.RAMAKRISHNA PILLAI, J --------------------------------------------- W.P.(C) No.19985 of 2011 --------------------------------------------- Dated this the 7th day of April, 2014 JUDGMENT
The petitioner has come up before this Court for getting Exts.P2 and P4 issued by the third and 4th respondents respectively quashed and for a declaration that the petitioner can maintain a go-down for storing gas cylinders without any consent from respondents 1 to 3.
2. The petitioner is a proprietor dealing LPG in Pathanamthitta District. The petitioner alleges that during December 2010, the third respondent approached him and demanded a domestic gas cylinder illegally and as it was against the rules, the petitioner could not oblige which made the third respondent to threaten the petitioner that the petitioner's godown would be closed. Therefore, the WPC No.19985 of 2011 2 petitioner alleges that the third respondent issued Ext.P2 to the petitioner and Ext.P3 to the 5th respondent fabricating a false story and requesting to take action. According to the petitioner, all these actions are without authority and misusing his official capacity.
3. According to the petitioner, Ext.P1 license was issued by the 6th respondent after strict scrutiny and he alone have the right to cancel the license issued by him. According to the petitioner, there is no stipulation that the certificate from respondents 1 to 3 should be obtained for storage of LPG. It is with these allegations, the petitioner has approached this Court.
4. The second respondent filed a report for and on behalf of first and second respondents wherein they have contended that it is the statutory obligation of the petitioner to obtain consent from the Panchayat or Pollution Control Board as he is carrying out a dangerous and offensive trade. It is WPC No.19985 of 2011 3 not a mere requirement for obtaining clearance from explosive directorate. It is also stated that based on the representations filed by the organization of LPG distributors, the first respondent convened a meeting with the representatives of the organization and the necessity of obtaining consent by them is clearly conveyed to them as evident from Ext.R2(g) minutes. Therefore, according to the Pollution Control Board, the action taken was strictly in accordance with the statutes and government orders.
5. When the matter came up for hearing, it was brought to my notice that the license already issued to the petitioner expired.
6. LPG is a petroleum product and all petroleum product storage is listed as an industrial plant and comes under item No.26 of the Orange category industry vide G.O.No.2586/2002 H & FWD dated 21.10.2002. True copy of the government order is produced and marked as Annexure R2(c). WPC No.19985 of 2011 4 In general, industries are categorized into three category; viz. Green (non polluting), Orange (moderately polluting) and Red (seriously polluting).
7. As per Section 21 of the Air (Preventions and Control of Pollution) Act 1981, no person shall establish or operate such establishments without prior consent of the Board. Further, Section 37 of the said Act highlights the penalties to be imposed for the violators. True copy of the relevant part of the said Act is produced as Annexure-R2(d).
8. Exts.P2 and P3 are notices issued to the petitioner in accordance with the prevailing statutory procedure. It was only a direction to obtain consent from the respondent Board. Though sufficient time was granted, the petitioner did not respond positively. Ext.P4 produced by the petitioner confirms that he is carrying out the dangerous and offensive trade without a license from the 4th respondent Panchayat. Thus, there cannot be an operation of petroleum product WPC No.19985 of 2011 5 storage without required statutory consent from the Pollution Control Board and D & O license from the local body.
As the license issued to the petitioner has expired, this writ petition is disposed of permitting the petitioner to approach the respondent Board as well as the local authority with a proper application for consent and D & O license and in the event of filing such an application, the first respondent Board as well as the 4th respondent Panchayat shall consider the same and pass appropriate orders after affording the petitioner and affected persons an opportunity of being heard.
Till that exercise is completed, the existing state of affairs shall continue.
Sd/-A.V.RAMAKRISHNA PILLAI JUDGE css/ true copy P.S.TO JUDGE


[Erowid Note: Driving while intoxicated or tripping is dangerous and irresponsible because it endangers other people. Don't do it!]
  A nice young fellow brought me a box of pills from him mothers cabinet to identify and when I did so he preceded to give me a couple Amitriptyline.
I went on a burn run and ate 2 Amitriptyline thinking I could determine my dose once they started kicking in. An hour and a half later I felt nothing so I popped 3 more and began to feel a body buzz. I figured I had better drive home and so in doing so I started to hallucinate. I thought a deer was in the road and slammed on the brakes for no reason.
When I got home the walls were crawling and I found myself lounging tiredly at the computer. When I heard my mom pull in I jumped into bed and told her id been up all night and that I was going to take a short nap.
My short nap lasted 17 hours.
17 hours of talking and walking in my sleep. Some of the strangest dreams Iíve ever had. the one time I woke up, I was in a trance and could hardly make my way to the bathroom.
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


--- layout: post title: Python script to query github code in your terminal date: 2013-01-05 01:25:51.000000000 +01:00 type: post published: true status: publish categories: - Coding tags: - github - python - terminal meta: _edit_last: '1' _thumbnail_id: '2284' dsq_thread_id: '1008727850' _oembed_59475790b732dc6ccd07fc685e8708ec: '{{unknown}}' _oembed_537322d1d99112be2fb7599d716cb543: '{{unknown}}' author: login: bbWebdesign email<EMAIL_ADDRESS>display_name: Bob first_name: Bob last_name: Belderbos ---
I was using the Advanced Search in Github the other day and thought: what if I could use this in a terminal. So I started to try out some things in Python which led to the following script.
See below and on github:
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: Bob Belderbos / written: Dec 2012 # Purpose: have an interactive github cli search app # import re, sys, urllib, pprint # import html2text # -- to use local version class GithubSearch: """ This is a command line wrapper around Github's Advanced Search https://github.com/search """ def __init__(self): """ Setup variables """ self.searchTerm = "" self.scripts = [] self.show_menu() def show_menu(self): """ Show a menu to interactively use this program """ prompt = """ (N)ew search (S)how more context (github script) (Q)uit Enter choice: """ while True: chosen = False while not chosen: try: choice = raw_input(prompt).strip().lower() except (EOFError, KeyboardInterrupt): choice = 'q' except: sys.exit("Not a valid option") print 'nYou picked: [%s]' % choice if choice not in 'nsq': print "This is an invalid option, try again" else: chosen = True if choice == 'q': sys.exit("Goodbye!") if choice == 'n': self.new_search() if choice == 's': self.show_script_context() def new_search(self): """ Take the input field info for the advanced git search """ #Â reset script url tracking list and counter self.scripts = [] self.counter = 0 #Â take user input to define the search try: self.searchTerm = raw_input("Enter search term: ").strip().lower().replace(" ", "+") except: sys.exit("Error handling this search term, exiting ...") lang = raw_input("Filter on programming language (press Enter to include all): ").strip().lower() try: prompt = "Number of search pages to process (default = 3): " numSearchPages = int(raw_input(prompt).strip()[0]) except: numSearchPages = 3 # get the search results for page in range(1,numSearchPages+1): results = self.get_search_results(page, lang) for result in results[1].split("##"): # each search result is divided by ## self.parse_search_result(result) def get_search_results(self, page, lang): """ Query github's advanced search and re.split for the relevant piece of info RFE: have a branch to use html2text local copy if present, vs. remote if not """ githubSearchUrl = "https://github.com/search?q=" searchUrl = urllib.quote_plus("%s%s&p=%s&ref=searchbar&type=Code&l=%s" % (githubSearchUrl, self.searchTerm, page, lang)) html2textUrl = "http://html2text.theinfo.org/?url=" queryUrl = html2textUrl+searchUrl html = urllib.urlopen(queryUrl).read() return re.split(r"seconds)|## Breakdown", html) def parse_search_result(self, result): """ Process the search results, also store each script URL in a list for reference """ lines = result.split("n") source = "".join(lines[0:2]) pattern = re.compile(r".*((.*?))s+((.*?)).*") m = pattern.match(source) if m != None: self.counter += 1 url = "https://raw.github.com%s" % m.group(1).replace("tree/", "") lang = m.group(2) self.print_banner(lang, url) self.scripts.append(url) # keep track of script links for line in lines[2:]: # ignore pagination markup if "github.com" in line or "https://git" in line or "[Next" in line: continue if line.strip() == "": continue print line def print_banner(self, lang, url): """ Print the script, lang, etc. in a clearly formatted way """ print "n" + "+" * 125 print "(%i) %s / src: %s" % (self.counter, lang, url) def show_script_context(self, script_num=""): """ Another menu option to show more context from the github script surrounding or leading up to the search term """ if len(self.scripts) == 0: print "There are no search results yet, so cannot show any scripts yet." return False script_num = int(raw_input("Enter search result number: ").strip()) script = self.scripts[script_num-1] # list starts with index 0 = 1 less than counter a = urllib.urlopen(script) if a.getcode() != 200: print "The requested script did not give a 200 return code" return False lines = a.readlines() a.close() if len(lines) == 0: print "Did not get content back from script, maybe it is gone?" return False num_context_lines = 8 print "nExtracting more context for search term <%s> ..." % self.searchTerm print "Showing %i lines before and after the match in the original script hosted here:n%sn" % (num_context_lines, script) for i, line in enumerate(lines): if self.searchTerm.lower() in line.lower(): print "n... %s found at line %i ..." % (self.searchTerm, i) j = i - num_context_lines for x in lines[i-num_context_lines : i+num_context_lines]: if self.searchTerm.lower() in x.lower(): print "%i ---> %s" % (j, x), # makes the match stand out else: print "%i %s" % (j, x), j += 1 ###Â instant github = GithubSearch()
$ vi github_search.py (N)ew search (S)how more context (github script) (Q)uit Enter choice: N You picked: [n] Enter search term: os.system Filter on programming language (press Enter to include all): python Number of search pages to process (default = 3): +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ (1) Python / src: https://raw.github.com/fhopecc/stxt/1a14c802362047af4c9f6d5ec2312a57cbc9bca6/task/setup_win.py import os _os.system_( +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ (2) Python / src: https://raw.github.com/fhopecc/stxt/325dc6e2cbfecc9d071264f71aee7b156a8a6970/task/shutdown.py import os _os.system_('shutdown -s -f') .. .. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ (9) Python / src: https://raw.github.com/rob0r/snmpnetif/b6228f3ba6c55a7f8119af3a1bd4c014f5533b9b/snmpnetif.py (True): try: # clear the screen if os.name == 'nt': clearscreen = _os.system_ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ (10) Python / src: https://raw.github.com/trey0/geocamShare/98029ffb1d26784346f7a2e5984048e8764df116/djangoWsgi.py .mkstemp('djangoWsgiSourceMe.txt') os.close(fd) _os.system_('bash -c "(source %s/sourceme.sh && printenv > %s +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ (11) Python / src: https://raw.github.com/jphcoi/MLMTC/48029dd647dc17173ed94693deccbb8d7bb42ed6/map_builder/CFpipe.py _sys try: _os.system_(command_sys) except: '----------------------------------detection de communaut (N)ew search (S)how more context (github script) (Q)uit Enter choice: s You picked: [s] Enter search result number: 9 Extracting more context for search term <os.system> ... Showing 8 lines before and after the match in the original script hosted here: https://raw.github.com/rob0r/snmpnetif/b6228f3ba6c55a7f8119af3a1bd4c014f5533b9b/snmpnetif.py ... os.system found at line 250 ... 242 ifidx = self.ifactive() 243 244 # get active interface names 245 ifnames = self.ifnames(ifidx) 246 247 while(True): 248 try: 249 # clear the screen 250 ---> if os.name == 'nt': clearscreen = os.system('cls') 251 ---> if os.name == 'posix': clearscreen = os.system('clear') 252 253 # print the device name and uptime 254 print(devicename) 255 print('Device uptime: {0}n').format(self.devuptime()) 256 257 # print stats if the first loop has run .. (N)ew search (S)how more context (github script) (Q)uit Enter choice: n You picked: [n] Enter search term: grep Filter on programming language (press Enter to include all): perl Number of search pages to process (default = 3): +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ (1) Perl / src: https://raw.github.com/xPapers/xPapers/1fe2bf177e3d37f2024d00601340627a8ded85ad/lib/xPapers/Cat.pm ->catCount($me->catCount-1); $me->save; $me->clear_cache; # detach $me->cat_memberships([_grep_ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ (2) Perl / src: https://raw.github.com/roethigj/Lx-Office-Anpassungen/e06afb2fc94573bc4a305a41e95a8b7a812e2db0/SL/IS.pm ->{TEMPLATE_ARRAYS}->{$_} }, "") } _grep_({ $_ ne "description" } @arrays)); } $form +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ (3) Perl / src: https://raw.github.com/roethigj/Lx-Office-Anpassungen/e06afb2fc94573bc4a305a41e95a8b7a812e2db0/SL/OE.pm ->{sort} && _grep_($form->{sort}, keys(%allowed_sort_columns))) { $sortorder = $allowed (N)ew search (S)how more context (github script) (Q)uit Enter choice: s You picked: [s] Enter search result number: 3 Extracting more context for search term <grep> ... Showing 8 lines before and after the match in the original script hosted here: https://raw.github.com/roethigj/Lx-Office-Anpassungen/e06afb2fc94573bc4a305a41e95a8b7a812e2db0/SL/OE.pm ... grep found at line 210 ... 202 "ordnumber" => "o.ordnumber", 203 "quonumber" => "o.quonumber", 204 "name" => "ct.name", 205 "employee" => "e.name", 206 "salesman" => "e.name", 207 "shipvia" => "o.shipvia", 208 "transaction_description" => "o.transaction_description" 209 ); 210 ---> if ($form->{sort} && grep($form->{sort}, keys(%allowed_sort_columns))) { 211 $sortorder = $allowed_sort_columns{$form->{sort}} . " ${sortdir}"; 212 } 213 $query .= qq| ORDER by | . $sortorder; 214 215 my $sth = $dbh->prepare($query); 216 $sth->execute(@values) || 217 $form->dberror($query . " (" . join(", ", @values) . ")"); ... grep found at line 1135 ... 1127 my $sameitem = ""; 1128 foreach $item (sort { $a->[1] cmp $b->[1] } @partsgroup) { 1129 $i = $item->[0]; 1130 1131 if ($item->[1] ne $sameitem) { 1132 push(@{ $form->{TEMPLATE_ARRAYS}->{description} }, qq|$item->[1]|); 1133 $sameitem = $item->[1]; 1134 1135 ---> map({ push(@{ $form->{TEMPLATE_ARRAYS}->{$_} }, "") } grep({ $_ ne "description" } @arrays)); 1136 } 1137 1138 $form->{"qty_$i"} = $form->parse_amount($myconfig, $form->{"qty_$i"}); 1139 1140 if ($form->{"id_$i"} != 0) { 1141 1142 # add number, description and qty to $form->{number}, .... .. (N)ew search (S)how more context (github script) (Q)uit Enter choice: q You picked: [q] Goodbye! shell returned 1


Hello world! This is HTML5 Boilerplate.
Log In
Token:
User ID:
Add User Photo
Add Image Message
Chat ID:
Discriminator:
Image:


All fields are required
The date is:
You entered this birthdate:
Your current age on Earth is: years.
Your current age on Mercury is:
Your current age on Venus is:
Your current age on Mars is:
Your current age on Jupiter is:
Your life expectancy on Earth is:
Your life expectancy on Mercury is:
Your life expectancy on Venus is:
Your life expectancy on Mars is:
Your life expectancy on Jupiter is:
You have years left on Earth.
You have years left on Mercury.
You have years left on Venus.
You have years left on Mars.
You have years left on Jupiter.