Class TextHelper
Text helper library.
Text manipulations: Highlight, excerpt, truncate, strip of links, convert
email addresses to mailto: links...
-
AppHelper
-
TextHelper
Methods summary
public
string
|
#
highlight( string $text, string $phrase, string $highlighter = '\1' )
Highlights a given phrase in a text. You can specify any expression in
highlighter that may include the \1 expression to include the $phrase found.
Highlights a given phrase in a text. You can specify any expression in
highlighter that may include the \1 expression to include the $phrase found.
Parameters
- $text
string $text Text to search the phrase in
- $phrase
string $phrase The phrase that will be searched
- $highlighter
string $highlighter The piece of html with that the phrase will be highlighted
Returns
string The highlighted text
|
public
string
|
#
stripLinks( string $text )
Strips given text of all links (<a href=....)
Strips given text of all links (<a href=....)
Parameters
Returns
string The text without links
|
public
string
|
#
autoLinkUrls( string $text, array $htmlOptions = array() )
Adds links (<a href=....) to a given text, by finding text that begins
with strings like http:// and ftp://.
Adds links (<a href=....) to a given text, by finding text that begins
with strings like http:// and ftp://.
Parameters
- $text
string $text Text to add links to
- $htmlOptions
array $htmlOptions Array of HTML options.
Returns
string The text with links
|
public
string
|
#
autoLinkEmails( string $text, array $htmlOptions = array() )
Adds email links (<a href="mailto:....) to a given text.
Adds email links (<a href="mailto:....) to a given text.
Parameters
- $text
string $text Text
- $htmlOptions
array $htmlOptions Array of HTML options.
Returns
string The text with links
|
public
string
|
#
autoLink( string $text, array $htmlOptions = array() )
Convert all links and email adresses to HTML links.
Convert all links and email adresses to HTML links.
Parameters
- $text
string $text Text
- $htmlOptions
array $htmlOptions Array of HTML options.
Returns
string The text with links
|
public
string
|
#
truncate( string $text, integer $length = 100, string $ending = '...', boolean $exact = true )
Truncates text.
Cuts a string to the length of $length and replaces the last characters with
the ending if the text is longer than length.
Parameters
- $text
string $text String to truncate.
- $length
integer $length Length of returned string, including ellipsis.
- $ending
string $ending Ending to be appended to the trimmed string.
- $exact
boolean $exact If false, $text will not be cut mid-word
Returns
string Trimmed string.
|
public
|
#
trim( )
Alias for truncate().
See
|
public
string
|
#
excerpt( string $text, string $phrase, integer $radius = 100, string $ending = "..." )
Extracts an excerpt from the text surrounding the phrase with a number of
characters on each side determined by radius.
Extracts an excerpt from the text surrounding the phrase with a number of
characters on each side determined by radius.
Parameters
- $text
string $text String to search the phrase in
- $phrase
string $phrase Phrase that will be searched for
- $radius
integer $radius The amount of characters that will be returned on each side of the
founded phrase
- $ending
string $ending Ending that will be appended
Returns
string Modified string
|
public
string
|
#
toList( array $list, mixed $and = 'and' )
Creates a comma separated list where the last two items are joined with
'and', forming natural English
Creates a comma separated list where the last two items are joined with
'and', forming natural English
Parameters
- $list
array $list The list to be joined
- $and
Returns
string
|
public
string
|
#
flay( string $text, boolean $allowHtml = false )
Text-to-html parser, similar to Textile or RedCloth, only with a little
different syntax.
Text-to-html parser, similar to Textile or RedCloth, only with a little
different syntax.
Parameters
- $text
string $text String to "flay"
- $allowHtml
boolean $allowHtml Set to true if if html is allowed
Returns
string "Flayed" text
|


WARNING: This is an EXPERIMENTAL class. The API will change significantly in the coming versions and is incomplete. Please try to avoid using in production games with a long time to build. This is also why the documentation is incomplete.
FlexGrid is a a responsive grid manager that works in conjunction with the ScaleManager RESIZE scaling mode and FlexLayers to provide for game object positioning in a responsive manner.


{# To be included in form/field_create.html and form/field_edit.html #}
The first item is the identifier of the column. It is required.
The identifier will displayed in the header of the table.
Items on a line are separated by semi-colon ';'.
The second item is the type of value; currently 'string', 'int',
'float' or 'select'. This item is optional; the default is
'string'.
If the type is 'select', the third item specifies the options,
one after the other separated by vertical bar '|'.
An option '[no value]' may be defined; it will give an empty field.


|
Elektra
0.8.18
|
Applications should use Elektra to read (and store) configurations for a overall better integrated system. A light integration would be to write parsers for the configuration files of your application as Elektra plugin. This yields the following advantages:
For full integration, however, the application needs to be patched to directly access Elektra's key database. When the application is fully integrated in Elektra's ecosystem additional benefits arise:
The process to make applications aware of other's configuration is called "to elektrify". This tutorial is both for new and existing applications.
When a software starts to use Elektra, it is called to be elektrified. The places where configuration is parsed or generated must be located. Afterwards, Elektra's data structures must be used instead at these locations. In Elektra 0.7, that was nearly everything the software developer could do.
Now more optional possibilities are open. First, the parser and generator code can be moved to a storage plugin without having to rewrite additional parts. Doing this, the syntax of the configuration file stays exactly the same as it was before. The application immediately profits from Elektra's infrastructure solving basic issues like update and conflict detection and resolving of the file name.
Moreover, a huge variety of plugins can be utilised to extend the functionality of the configuration system and the programmer can write supplementary plugins. They can do syntactic checks, write out events in their log files and notify users if configuration has changed. So we get a bunch of plugins that are reusable, and we gain a lot because every other program can also access the configuration of this software.
For new software the situation is similar. Additionally, there is the option to reuse mature and well-tested plugins to achieve the optimal result for configuration. New applications simply do not have the burden to stay compatible with the configuration system they had to before. But they can also use self-written plugins for adding needed behaviour or cross-cutting concerns.
To sum up, if a developer wants to elektrify software, he or she can do that without any need for changes to the outside world regarding the format and semantics of the configuration. But in the interconnected world it is only a matter of time until other software also wants to access the configuration, and with elektrified software it is possible for every application to do so.
As first step in a C-application you need to create an in-memory Key
. Such a Key
is Elektra's atomic unit and consists of:
Key
s are either associated with entries in configuration files or used as arguments in the API to transport some information.
Thus a key is only in-memory and does not need any of the other Elektra's objects. We always can create one:
Key *parentKey = keyNew("/sw/org/myapp/#0/current", KEY_CACADING_NAME, KEY_END);
keyNew
always is the name of the key.sw
is for softwareorg
is a URL/organisation name to avoid name clashes with other application names. Use only one part of the URL/organisation, so e.g. kde
is enough.myapp
is the name of the most specific component that has its own configuration#0
is the major version number of the configuration (to be incremented if you need to introduce incompatible changes).current
is the profile to be used. This is needed by administrators if they want to start up multiple applications with different configurations.KEY_CACADING_NAME
is needed to accept a name starting with /
. Such a name cannot physically exist in configuration files, but they are the most important keys to actually work with configuration within applications as we will see in this tutorial.KEY_END
is needed because C needs a proper termination of variable length arguments.Now we have the Key
we will use to pass as argument. First we open our key database (KDB). This is done by:
KDB *repo = kdbOpen(parentKey);
A Key
is seldom alone, but they are often found in groups, e.g. in configuration files. To represent many keys (a set of keys) Elektra has the data structure KeySet
. Because the Key
's name is unique we can easily lookup keys in a KeySet
without ambiguity. Additionally, we can can iterate over all Key
s in a KeySet
without a hassle. To create an empty KeySet
we use:
KeySet *conf = ksNew(200, KS_END);
Key
s we think we will have in the KeySet
confKS_END
.Now we have everything ready to fetch the latest configuration:
kdbGet(repo, conf, parentKey);
To lookup a key, we simply use, e.g.:
Key *k = ksLookupByName(conf, "/sw/org/myapp/#0/current/section/subsection/key", 0);
We see in that example that only Elektra paths are hardcoded in the application, no configuration file or similar. Thus we are interested in the value we use:
char *val = keyString(k);
Finally, we need to convert the configuration value to the datatype we need.
Obviously, to do this manually has severe drawbacks:
So (larger) applications should not directly use KeySet
, but instead use code generation to provide a type-safe front-end.
For more information about that, continue reading here.
Now, we have a fully working configuration system without any hard-coded information (such as configuration files). So we already gained something. But, we did not discuss how we can actually achieve application integration, the goal of Elektra.
Elektra 0.8.11 introduces the so called specification for the application's configuration. It is located below its own namespace spec
(next to user and system).
Keys in spec
allow us to specify which keys are read by the application, which fallback they might have and which is the default value using meta data. The implementation of these features happened in ksLookup
. When cascading keys (those starting with /
) are used following features are now available (in the meta data of respective spec
-keys):
override/#
: use these keys in favour of the key itself (note that #
is the syntax for arrays, e.g. #0
for the first element, #_10
for the 11th and so on)namespace/#
: instead of using all namespaces in the predefined order, one can specify which namespaces should be searched in which orderfallback/#
: when no key was found in any of the (specified) namespaces the fallback
-keys will be searcheddefault
: this value will be used if nothing else was foundThey can be used like this:
kdb set /overrides/test "example override" sudo kdb setmeta spec/test override/#0 /overrides/test
This technique provides complete transparency how a program will fetch a configuration value. In practice that means that:
kdb get "/sw/org/myapp/#0/current/section/subsection/key",
will give you the exact same value as the application gets when it uses the above lookup C-code.
What we do not see in the program above are the default values and fallbacks. They are only present in the so specification (namespace spec
). Luckily, the specification consists of (meta) key/value pairs, too. So we do not have to learn something new.
So lets say, that another application otherapp
exactly has the value we actually want. We want to better integrate the system, that in the case we do not have a value for /sw/org/myapp/#0/current/section/subsection/key
we want to use /sw/otherorg/otherapp/#0/current/section/subsection/key
.
So we specify:
kdb setmeta spec/sw/org/myapp/#0/current/section/subsection/key "fallback/#0" /sw/otherorg/otherapp/#0/current/section/subsection/key
Voila, we have done a system integration between myapp
and otherapp
!
Note that the fallback, override and cascading works on key level, and not like most other systems have implemented, on configuration file level.
Elektra does not hardcode any configuration data in your application. Using the default
specification, we even can startup applications without any configuration file at all and still do not have anything hardcoded in the applications binary. Furthermore, by only using cascading keys for kdbGet()
and ksLookup()
Elektra gives you the possibility to specify how configuration data should be retrieved. In this specification you can define, that configuration data from other applications or shared places should be considered or even preferred. Doing so, we can achieve configuration integration.


SHOPPING FOR FANGS A film review by Steve Rhodes Copyright 1998 Steve Rhodes
RATING (0 TO ****): *
Phil (Radmar Jao) has a hairy problem. His beard is growing so rapidly that he has to shave every hour. He recently met the author of a non-fiction book on lycanthropy, also referred to in the movie as werewolfism, and Phil now believes that his problem is that he has become a werewolf. Using enough chains and handcuffs to be a hit at a sadomasochists convention, he ties himself in at night lest his urges overcome him.
And Phil is just one of the many quirky characters that inhabit SHOPPING FOR FANGS.
Made on a pittance, the film features an almost exclusively Asian-American cast. As directed by Quentin Lee and Justin Lin, the movie is so amateurishly bad that it could almost be a parody of indie films.
 We know this through the endless scenes of her confessing her sins, real and imagined, to her therapist. As her husband, Jim, Clint Jung plays a muscle man with a macho crudeness.
 There's a mysterious, loud-mouthed waitress with a big, platinum blonde wig who brags to everyone she meets that she's a lesbian. She spends most of the movie putting the moves on her favorite customer, a gay guy. And the lone white with a major role, the author on werewolfism, has wildly unkempt, orangey blonde, curly hair.
From its opening scene of an attempted rape at knifepoint to its easy to guess ending twist, the script rarely has anything to offer. The story is so minimally developed that it feels almost like the actors were ad-libbing. One can only hope that the directors' next film will have some substance and some credible acting.
SHOPPING FOR FANGS runs 1:30. It is rated R for sex, violence, and profanity and would be fine for older teenagers.
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


{% extends "layouts/main.html" %} {# is rendered in the content block of main.html view view #} {% block content %} Tweets von @pythononwheels {% end %}


'For us, the case is closed' - Sancho dropped by Dortmund for disciplinary reasons
The German club insist they do not have plans to sell the England teenager in the next window, however.
by AFPJADON SANCHO WAS dropped from Borussia Dortmund’s starting line-up at Barcelona this week following another disciplinary problem, club officials said today, but the English starlet is not being sold.
Sancho did not start Wednesday’s Champions League game. He came on at half-time with Dortmund losing and scored a remarkable goal to make the final score 3-1 to Barca.
Dortmund general manager Michael Zorc said German press reports that the 19-year-old missed a team breakfast and morning warm-up and arrived late for a talk by coach Lucien Favre, were wide of the mark.
“It’s not exactly that,” Zorc said Friday, but he did not deny there was an incident. “We talked about it internally, with him and with the team. For us, the case is closed, we look forward. Jadon is a normal player and part of the team.”
Sancho sent out a tweet on Thursday saying he had shown his commitment on the field and intended to do so against Hertha Berlin at the weekend.
Think I showed heart n desire last night anyway we will try our best to get the three points on Saturday!” wrote Sancho.
Zorc insisted the club were not about to be forced to sell Sancho.
“I do not have the impression that we are going towards a transfer this winter, according to the conversations we had with him and his agents,” said Zorc.
Dortmund bought Sancho in 2017 for €7.8 million from Manchester City, where he had never played in the first team. He has since become an England international.
He has six goals and nine assists in 18 club games this season but was also dropped for one match and fined for coming back late from international duty in October.


% var include = 'styles'; %> <% include components/app.html %> <% include components/header.html %> <% include components/subheader.html %> <% include components/feed.html %> <% include components/files.html %> <% include components/doc.html %> <% include components/write.html %>
<% var include = 'templates'; %> <% include components/app.html %> <% include components/header.html %> <% include components/subheader.html %> <% include components/feed.html %> <% include components/files.html %> <% include components/doc.html %> <% include components/write.html %> <% var include = 'scripts'; %> <% include components/header.html %> <% include components/subheader.html %> <% include components/feed.html %> <% include components/files.html %> <% include components/doc.html %> <% include components/write.html %> <% include components/app.html %>


|
| | MCEngine (T &_rng, const U &_path) |
| | Constructor 2x overloads. More...
|
| |
| | MCEngine (T &_rng, const paths &_paths, const Eigen::MatrixXd &_A, matType _mt) |
| | multiple assets More...
|
| |
| | MCEngine (T &_rng, const paths &_paths) |
| | multiple assets w/o correl matrix More...
|
| |
| | MCEngine (const MCEngine &other) |
| |
| virtual | ~MCEngine () |
| |
| void | setValues (const Vec &rtns, const double vol) |
| |
| void | setValues (const Mat &rtns, const Vec &vol) |
| |
| Vec | DoSimulation (size_t p=0, double n=1.e+05, underlyingProcess up=Gaussian) |
| |
| Mat | DoMultiSimulation (double n=1.e+05, underlyingProcess up=Gaussian) |
| |
template<class T, class U>
class MCEngine< T, U >
Student's t-distr.
Simulate return through Monte-Carlo T rng, U path


About
Resume
Web Design
Tree Walk
Other Work
Tree Walk
Links to the tree walk senior project
Take a Walk
Documentation
|
Website


|
|
Frequency and duration |
| Frequency: Hz | |
| Duration: ms | |
Timbre |
|
| 1st harmonic: | |
| 2nd harmonic: | |
| 3rd harmonic: | |
| 4th harmonic: | 5th harmonic: |
| 6th harmonic: | |
| 7th harmonic: | |
|
|
8th harmonic: |
| 9th harmonic: | |
| 10th harmonic: | |
Acoustic Envelope |
|
| Attack time: ms | |
| Decay time: ms | |
| Sustain level: | |
| Release time: ms | |


Controllers need to know certain things about your aircraft quickly that affect the way your flight is handled. Thankfully we have a system that tells ATC all of that information with a simple code generally referred to as a Suffix Code. In the following example, the "/L" is the equipment suffix code: B738/L = A Boeing 737-800 aircraft that is RVSM, GNSS capable and it has a Mode C transponder.


Index
Symbols
|
_
|
A
|
B
|
C
|
D
|
E
|
F
|
G
|
H
|
I
|
L
|
M
|
P
|
R
|
S
|
T
|
U
|
W
|
Y
|
Z
Symbols
--daemonize
command line option
--help
command line option
--kill
command line option
--syslog
command line option
--verbose
command line option
-c
command line option
-d
command line option
-h
command line option
-k
command line option
-l
command line option
-s
command line option
-v
command line option
_
__init__() (asab.Application method)
A
add() (asab.metrics.Counter method)
(asab.metrics.CounterWithDynamicTags method)
add_defaults() (asab.Config method)
add_module() (asab.Application method)
advertise() (asab.zookeeper.ZooKeeperContainer method)
AggregationCounter (class in asab.metrics)
AggregationCounterWithDynamicTags (class in asab.metrics)
Application (class in asab)
Application.Description (in module asab)
Application.exit!
command line option
Application.housekeeping!
command line option
Application.hup!
command line option
Application.init!
command line option
Application.run!
command line option
Application.stop!
command line option
Application.tick!
command line option
Application.tick/10!
command line option
Application.tick/1800!
command line option
Application.tick/300!
command line option
Application.tick/3600!
command line option
Application.tick/43200!
command line option
Application.tick/60!
command line option
Application.tick/600!
command line option
Application.tick/86400!
command line option
asab.abc
module
asab.abc.singleton
module
asab.log
module
asab.pdict
module
asab.socket
module
asab.timer
module
AsyncIOHandler (class in asab.log)
AzureStorageLibraryProvider (class in asab.library.providers.azurestorage)
B
BLACK (asab.log.StructuredDataFormatter attribute)
BLUE (asab.log.StructuredDataFormatter attribute)
C
collection() (asab.storage.StorageService method)
command line option
--daemonize
--help
--kill
--syslog
--verbose
-c
-d
-h
-k
-l
-s
-v
Application.exit!
Application.housekeeping!
Application.hup!
Application.init!
Application.run!
Application.stop!
Application.tick!
Application.tick/10!
Application.tick/1800!
Application.tick/300!
Application.tick/3600!
Application.tick/43200!
Application.tick/60!
Application.tick/600!
Application.tick/86400!
Config (in module asab)
ConfigParser (class in asab.config)
Counter (class in asab.metrics)
CounterWithDynamicTags (class in asab.metrics)
create_aggregation_counter() (asab.metrics.MetricsService method)
create_argument_parser() (asab.Application method)
create_counter() (asab.metrics.MetricsService method)
create_duty_cycle() (asab.metrics.MetricsService method)
create_eps_counter() (asab.metrics.MetricsService method)
create_gauge() (asab.metrics.MetricsService method)
create_histogram() (asab.metrics.MetricsService method)
create_server() (asab.socket.StreamSocketServerService method)
CYAN (asab.log.StructuredDataFormatter attribute)
D
delete() (asab.abc.Singleton class method)
(asab.abc.singleton.Singleton class method)
DutyCycle (class in asab.metrics)
E
emit() (asab.log.AsyncIOHandler method)
empty_sd (asab.log.StructuredDataFormatter attribute)
(asab.log.SyslogRFC5424Formatter attribute)
EPSCounter (class in asab.metrics)
ExitCode (asab.Application attribute)
export() (asab.library.LibraryService method)
F
FileSystemLibraryProvider (class in asab.library.providers.filesystem)
finalize() (asab.abc.Module method)
(asab.abc.Service method)
(asab.Application method)
(asab.Module method)
(asab.Service method)
(asab.socket.StreamSocketServerService method)
format() (asab.log.StructuredDataFormatter method)
formatTime() (asab.log.StructuredDataFormatter method)
G
Gauge (class in asab.metrics)
get_by() (asab.storage.StorageService method)
get_children() (asab.zookeeper.ZooKeeperContainer method)
get_data() (asab.zookeeper.ZooKeeperContainer method)
get_raw_data() (asab.zookeeper.ZooKeeperContainer method)
get_service() (asab.Application method)
getseconds() (asab.Config method)
geturl() (asab.Config method)
GitLibraryProvider (class in asab.library.providers.git)
GREEN (asab.log.StructuredDataFormatter attribute)
H
Histogram (class in asab.metrics)
HistogramWithDynamicTags (class in asab.metrics)
I
initialize() (asab.abc.Module method)
(asab.abc.Service method)
(asab.Application method)
(asab.Module method)
(asab.Service method)
is_connected() (asab.zookeeper.ZooKeeperContainer method)
is_started() (asab.timer.Timer method)
L
LibraryService (class in asab.library)
list() (asab.library.LibraryService method)
load() (asab.pdict.PersistentDict method)
Logging (class in asab.log)
Loop (asab.Application attribute)
M
MacOSXSyslogFormatter (class in asab.log)
MAGENTA (asab.log.StructuredDataFormatter attribute)
main() (asab.Application method)
message() (asab.Subscriber method)
MetricsService (class in asab.metrics)
module
asab.abc
asab.abc.singleton
asab.log
asab.pdict
asab.socket
asab.timer
Module (class in asab)
(class in asab.abc)
Modules (asab.Application attribute)
P
parse_args() (asab.Application method)
PersistentDict (class in asab.pdict)
publish() (asab.PubSub method)
PubSub (asab.Application attribute)
(class in asab)
R
read() (asab.library.LibraryService method)
RED (asab.log.StructuredDataFormatter attribute)
render_struct_data() (asab.log.StructuredDataFormatter method)
restart() (asab.timer.Timer method)
rotate() (asab.log.Logging method)
run() (asab.Application method)
S
Service (class in asab)
(class in asab.abc)
Service.App (in module asab)
Service.Name (in module asab)
Services (asab.Application attribute)
ServiceWebSession (class in asab.web.session)
session_middleware() (in module asab.web.session)
set() (asab.metrics.AggregationCounter method)
(asab.metrics.AggregationCounterWithDynamicTags method)
(asab.metrics.Gauge method)
(asab.metrics.Histogram method)
(asab.metrics.HistogramWithDynamicTags method)
set_exit_code() (asab.Application method)
Singleton (class in asab.abc)
(class in asab.abc.singleton)
start() (asab.timer.Timer method)
stop() (asab.Application method)
(asab.timer.Timer method)
store() (asab.pdict.PersistentDict method)
StreamSocketServerService (class in asab.socket)
StructuredDataFormatter (class in asab.log)
sub() (asab.metrics.Counter method)
(asab.metrics.CounterWithDynamicTags method)
subscribe() (asab.library.LibraryService method)
(asab.PubSub method)
(asab.Subscriber method)
subscribe_all() (asab.PubSub method)
Subscriber (class in asab)
SyslogRFC3164Formatter (class in asab.log)
SyslogRFC5424Formatter (class in asab.log)
T
time() (asab.Application method)
Timer (class in asab.timer)
U
unsubscribe() (asab.PubSub method)
update() (asab.pdict.PersistentDict method)
W
WebService (class in asab.web.service)
WHITE (asab.log.StructuredDataFormatter attribute)
Y
YELLOW (asab.log.StructuredDataFormatter attribute)
Z
ZooKeeperContainer (class in asab.zookeeper)
ZooKeeperLibraryProvider (class in asab.library.providers.zookeeper)
ASAB
Navigation
Introduction
Getting started
Web Server Tutorial
Create microservice with REST API
Services
The web server
REST API Docs
Authn module
Cross-Origin Resource Sharing (CORS)
Metrics
Storage
Alert Service
Reference
Application
Configuration
Logging
Publish-Subscribe
Service
Module
Various utility classes
Zookeeper
Library
Administration
Installation
ASAB Command-line interface
Containerisation
systemd
Related Topics
Documentation overview
Quick search


--- layout: post date: 2012-03-07 time: "10:00:00" authors: ["Greg Wilson"] title: Software Carpentry Meetup at PyCon tags: ["Community"] ---
I'm not able to be at PyCon this year, but if Software Carpentry fans would like to get together, Shreyas Cholia is organizing a lunchtime meetup on Friday. Please drop him a line if you'd like to connect.


Navbar
Home
(current)
7-Day Forecast
Map
Weather at
It is currently
degrees Fahrenheit
Wind:
Alerts:
Seven Day Forecast


It was a Novemerber day. I woke up to the smell of burning in the. I shouted "", and out of bed and downstairs.


Home Chef
Click to add a recipe
or
Choose ingredient for random recipe
Get random recipe:
Select ingredient...
Title
Image Url
Recipe Url
Ingredients


This is the third in a series of developmental updates for Matcheos. The last post (see here) explained the matching algorithm. In this post, the user interface has been integrated with the EOS Testnet and various improvements have been made to the software.
Matcheos profiles now connect with the EOS Testnet, so EOS balances and offers reflect the running blockchain totals.
Since the last update, Matcheos has renamed the "Dating" area to "Love" for aesthetics. It's now Love, Work, Friends.
An analytics screen shows realtime offers both received and sent. Plus, you see how may times your profile has been viewed.
The settings screen allows you to update your picture and profile data at any time. Try different things to see what happens.
Since Matcheos now connects with the EOS Testnet, the user interface for signup has been created.
To signup, you use your account username within the EOS network. This name is consistent across all EOS apps.
You then login to Matcheos using your EOS account username and password.
Matcheos will eventually support non-English languages. An age field is used to filter minors from adults.
That's it for this post. Next up will be a discussion about smart contracts. Stay tuned.


The Emoji Epoch
The Emoji Epoch is a record of my experience with COVID-19 expressed through emoji.;


--- lightTheme: /assets/css/lightTheme.css darkTheme: /assets/css/darkTheme.css currentTheme: /assets/css/darkTheme.css footerCss: /assets/css/footer.css timerCss: /assets/css/timer.css ---


Twitter reacts to Rohit Sharma brutally trolling Rishabh Pant on National TV
by SportsCafe DeskRishabh Pant has endured a tough time, as would anyone in his place, to fill the huge shoes that MS Dhoni seems to have vacated. After a couple of “silly mistakes”, Pant found himself being trolled by stand-in skipper Rohit Sharma in the middle of the field with the entire nation watching on.
Pant’s night in Rajkot got off to a horror start when he collected a ball in front of the stumps and instead of inflicting a simple stumping, gave away a free hit. Things didn’t get any better from then on as his glovework left a lot to be desired. On a warm night in Rajkot, Pant couldn’t catch a cold. Rohit Sharma decided to take things into his own hands and take some pressure of his young keeper with the pressure piling on. And he did it in the most unique way possible.
On the fourth ball of the 16th over - one ball after Pant had conceded an extra run - Afif Hossain played a Deepak Chahar ball to wide long on. With the ball lacking any serious pace, Rohit cleaned it up easily and decided to lighten the mood. The Indian skipper threw the ball way up in the air so as to not let it bounce, thereby allowing Pant to collect it comfortably.
To be fair, it did work as both the skipper and the keeper exchanged smiles as India tried to gain back some control in the game. The Twitteratti were quick to realize what had happened and jumped on to provide some “insights”.
This is how it happened!
Pant the innovator!
Rohit Sharma in the 1st and 2nd T20I!
LMAO!
Time to give it to someone who is serious about the role!
Couldn't have described it better!
A light-hearted moment amidst all the chaos!


LIMEY, THE (director:Steven Soderbergh; screenwriter: Lem Dobbs; cinematographer: Ed Lachman;cast: Terence Stamp (Wilson), Lesley Ann Warren (Elaine), Luis Guzman (Ed), Barry Newman (Avery), Joe Dallesandro (Uncle John), Nicky Katt (Stacy), Peter Fonda (Valentine), Amelia Heinle (Adhara), Melissa George (Jennifer), 1999)
Reviewed by Dennis Schwartz
I only know for sure that this is a revenge type of film and that it plays much like many a classical Western, but is shot in the '60s style of "Point Blank," and is scripted by Lem Dobbs, most probably, for the entertainment value it provides. I also know that a limey is a slang term for a Brit and that he is played with a bravura performance by Terence Stamp. Stamp is so good here, with his fiery blue eyes, intimidating tone, and hollowed cheekbones jutting out from his intense face, playing an ex-con who we only know as Wilson and who is 60- years-old and just got out of the can in England after doing 9-years for armed robbery. We see him on a plane from London to Los Angeles to find out how his daughter Jenny (Melissa) died while he was away, not believing for one moment her death was a result of a car accident.
The story frequently goes from what he is thinking to some flashback to some future thing he wants to do, therefore the time sequence is often confusing. But what remains riveting is the single-minded purpose he has, as he tries to understand what happened to his daughter through his conversations with two of her friends, the middle-aged acting coach for his daughter, Elaine (Warren), who tells him, his daughter says she considered her father to be a ghost in her life, and the burly, heavily tattooed Mexican-American, Eddie (Guzman), who felt sorry for her, and as an ex-con himself, identified with Wilson, therefore he writes Wilson in prison about her death. Wilson also tries to find out what happened to his daughter through a trucking business that is gangster operated, and the conversation with the surly men there takes a more violent turn, resulting in the typical crime film rub out scene. The only thing of interest, is that you have this elderly guy going after these younger hoods, and you can't help feeling that when he kills them, that they got what they deserved.
If there is supposed to be a deeper meaning than revenge in this very titillating feature, it is hard to say what that deeper meaning is, unless from all the garbled Cockney sayings by Wilson, this is a film about what the meaning of one's life is, as a senior citizen who had plenty of time by himself to give the question adequate thought, as we see that he from time-to-time reflects on that subject.
In any case, this film seems to be all style and that style is wonderful to behold. It is also a film about nostalgia, as it brings back haunting memories of a time that was intermixed with hope and confusion. The '60s are dismissed here, as only being what happened in 1966- and early '67, and that golden "hippie" age is further reduced to a few golden moments of feeling free through the promising new music arriving on the scene. At least, this is the view of Peter Fonda, who plays Terry Valentine, a wealthy rock music promoter, the supposed reason for Wilson coming to America, as he was Jenny's boyfriend when she died and is his prime suspect as her killer. Fonda is the slick manipulator of the times, who now has a few palatial homes and enough money to be thought of as a big-time operator, though there seems to be some trouble in his paradise, as he is laundering dirty money for drug dealers and is constantly looking over his shoulder at what trouble lies ahead. He is very convincing as a slime-ball, and I liked peeking into his closet, which is bigger than most people's apartments, with all those shoes and sweaters, and I shouldn't forget that splendid pool and that panoramic view his ultra-modern house has from the top of the Los Angeles hills, indicating that he is someone who is doing very well.
Steven Sodergergh (Sex, Lies, and Videotape/Kafka/Schizopolis/Out of Sight) has a way of making quirky films that border on the mundane but offer promises of much more. In this film he engages several intriguing possibilities and plays them out to the hilt: he has his two major stars, Fonda and Stamp, who were both born in 1939 and both played innocent anti-hero types in the '60s, Fonda, as the biker drug dealer in "Easy Rider" and Stamp, in "Billy Budd," be pitted against each other. In addition, Stamp had a role in 1967 as a thief called Wilson in the first feature by Ken Loach, "Poor Cow". These byplays to the film add some questions to what went wrong with the '60s, as it seems to ask in the film, how does Wilson end up doing hard time in prison robbing the ticket office of a rock concert while Valentine remains stuck in a time warp making big money by still packaging that same music, still going after beautiful young girls, this time replacing Jenny with another live-in beauty, Adhara (Amelia), and crossing the line of innocence in drugs by becoming a party to the big-time criminal aspect of the drug business, as money is his lure and no other pretences of becoming a better person is given. The director makes frequent flashback cuts to the Stamp of younger film days, using the 1967 film he was in, as it becomes more and more evident that this film has many purposes to it, not excluding the former real-life film roles of its present iconic stars and how they are now portrayed onscreen.
As Wilson and Valentine square off with each other, through Wilson's bitter way of looking at him, we get to view his take on Valentine's Hollywood lifestyle, as he visits him in his Los Angeles canyon home and meets his entourage full blast. The first one he meets, is his shady lawyer adviser who is paid to protect him from the unseemly side to his business, Barry Newman as the 60ish Avery, who plays his role as a villain with an intractable mind-set. His first attempt to get Wilson removed from the party results in his security man being fatally thrown down the canyon by the limey. There is also a colorful hitman that Avery hires to get Wilson, Stacy (Katt), someone in love with his image of being a hitman, who has the funniest joke in the film, that is tasteless and irresistible: "What is the smartest thing to come out of a woman's mouth?" Answer. "Einstein's cock."
The filmgoer gets a lot for his price of admission here: a great performance by the actors, a pleasing revenge film with all the usual action sequences and a twist in the plot to keep the viewer further enthralled, it's a film that has all the techniques of the French New Wave filming style, with jump cuts and a fast-moving camera to keep the viewer guessing what's coming next as he is kept adequately confused so that he thinks he is missing something and should see the film again, and the viewer also gets the promise that this baby has something wise to say, which it appears to be on the verge of saying at times; but, I would say, it is safer to believe that this film is style over substance, and in this case, that is not all that bad. Perhaps, the '60s itself was mostly an innocent call for a better world that was manipulated by those who knew better, like the Terry Valentine's of the world. Therefore style over substance isn't all that bad a message for this intensely shot nouveau-noir work, that seemed to be saying something like that or maybe it's just that the king's English, even when spoken by a common criminal in a rich Cockney accent, sounds so worthwhile, that I have been so duly conditioned to believe that about the English language, that I would listen keenly to anyone who spoke like that and believe I was listening to something philosophical.
REVIEWED ON 12/18/99 GRADE: B+
Dennis Schwartz: "Ozus' World Movie Reviews"
http://www.sover.net/~ozus
<EMAIL_ADDRESS>© ALL RIGHTS RESERVED DENNIS SCHWARTZ
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


PARATROOP COMMAND (director: William Witney; screenwriter: Stanley Shpetner; cinematographer: Gilbert Warrenton; editor: Robert S. Eisen; cast: Richard Bakalyan (Charlie), Jim Beck (Cowboy), Jack Hogan (Ace), Ken Lynch (Lieutenant), Jimmy Murphy (Sergeant), Jeff Morris (Pigpen), 1959)
Reviewed by Dennis Schwartz
A routine AIP action-packed WW11 drama of heroism. It stars Richard Bakalyan as Charlie, a screw up who joined the paratroopers to prove to himself that he can finish what he started, even if he has to die doing it.
The action begins in 1942 with the invasion of North Africa. There is a machine-gun nest in the hills to take out for the rough combat paratrooper company led by the Lieutenant (Ken Lynch).
Ace (Hogan) and Cowboy (Beck) who were friends from their hometown, come up with a plan to distract the Nazis, as Cowboy volunteers to don a dead Nazi's uniform and the men in his company fire at him as he returns their fire, until he gets within range of the Nazi firepower, and then he turns on them and kills them. After this worked, Charlie who fell behind the other men, not realizing that it was Cowboy in the Nazi uniform playfully pointing a rifle at the Americans, who had their hands raised. He fired killing the Cowboy. The men never forgave him for that accident, saying he killed Cowboy because he froze in action back at the start of the operation and Cowboy was the one who reported it.
 The next battle takes place with the invasion of Sicily, as Charlie can't wait to prove himself in battle but doesn't get a chance to, as the men successfully hold a barn and repel a contingent of Nazis who want to kill the Italian family that lives there, refusing to have him participate in the operation. When things get so bad there and the men treat Charlie as if were a pariah and it is suggested he transfer out, he tells the Lieutenant that he won't transfer out, that he will find a way to redeem himself.
The third invasion for this rugged outfit, comes at the beach of Salerno. The men jump into the middle of heavy Nazi armor movements. They need the radio to get this information back to headquarters or else they will all be killed, but they can't work it without the generator. Charlie is carrying the generator on the drop, but he gets tangled in a tree. For the men to free him, they will have to clear-out some heavy machine gun fire around him. Meanwhile the Lieutenant gets hit and can't move, as he calls for the generator from across the open road. The price was heavy to rescue Charlie, as the only one left from his company is the Sergeant (Murphy). Charlie now has to go across the road to reach the Lieutenant, but the road is right in the Nazis view. Somehow Charlie finds a way to get the generator there, giving up his life in doing it.
If you like a no-nonsense war story of all action, no big-name stars, and one that validates courage...you got it in this solid low-budget actioner.
REVIEWED ON 5/27/2000 GRADE: C
Dennis Schwartz: "Ozus' World Movie Reviews"
http://www.sover.net/~ozus
<EMAIL_ADDRESS>© ALL RIGHTS RESERVED DENNIS SCHWARTZ
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


Image loaders¶
-
sdl2.ext.
get_image_formats
() -> (str, str, ...)¶ Gets the formats supported by PySDL2 in the default installation.
-
sdl2.ext.
load_image
(fname : str[, enforce=None]) → sdl2.SDL_Surface¶ Creates a
sdl2.SDL_Surface
from an image file.This function makes use of the Python Imaging Library, if it is available on the target execution environment. The function will try to load the file via
sdl2
first. If the file could not be loaded, it will try to load it viasdl2.sdlimage
and PIL.You can force the function to use only one of them, by passing the enforce as either
"PIL"
or"SDL"
.Note
This will call
sdl2.sdlimage.IMG_Init()
implicitly with the default arguments, if the module is available and ifsdl2.SDL_LoadBMP()
failed to load the image.


From legacy to legendary:
modernising your AngularJS app
Goals
- Understand the upgrade process
- See what can go wrong
- Develop an upgrade roadmap
Agenda
- Setup AngularJS demo app
- Setup hybrid app with ng-upgrade
- Working with hybrid app
- Transitioning to Angular
passengr
- ride share client
- Angular 1.4
- gulp (no modules)
- controllers
- ui-router
ngUpgrade
AngularJS bootstrap
angular.module('my-app', [])
angular.module('my-app').controller('MyCtrl', ...)
<main ng-app="my-app">
<div ng-controller="MyCtrl">
Angular bootstrap
platformBrowserDynamic().bootstrapModule(AppModule)
bootstrap: [AppComponent]
selector: 'app-root'
<app-root></app-root>
ng-upgrade bootstrap...
A little from column A...
A little from column B...
Upgrading & downgrading
- Angular component to AngularJS directive
- Angular service to AngularJS factory
- AngularJS service to Angular provider/injectable
- AngularJS directive to Angular directive
Summary
- Cheat at all the module stuff
- Start with AngularJS host
- Build entire route/module
- Switch to Angular host
- Communication between routers is tricky


Awk makes the assumption that its input is structured and not just an endless string of characters. In the simplest case, it takes each input line as a record and each word, separated by spaces or tabs, as a field. (The characters separating the fields are often referred to as delimiters.) The following record in the file names has three fields, separated by either a space or a tab.
John Robinson<PHONE_NUMBER>
Two or more consecutive spaces and/or tabs count as a single delimiter.
Awk allows you to refer to fields in actions using the field operator $. This operator is followed by a number or a variable that identifies the position of a field by number. "$1" refers to the first field, "$2" to the second field, and so on. "$0" refers to the entire input record. The following example displays the last name first and the first name second, followed by the phone number.
$awk '{ print $2, $1, $3 }' names
Robinson John<PHONE_NUMBER>
$1 refers to the first name, $2 to the last name, and $3 to the phone number. The commas that separate each argument in the print statement cause a space to be output between the values. (Later on, we'll discuss the output field separator (OFS), whose value the comma outputs and which is by default a space.) In this example, a single input line forms one record containing three fields: there is a space between the first and last names and a tab between the last name and the phone number. If you wanted to grab the first and last name as a single field, you could set the field separator explicitly so that only tabs are recognized. Then, awk would recognize only two fields in this record.
You can use any expression that evaluates to an integer to refer to a field, not just numbers and variables.
$echo a b c d | awk 'BEGIN { one = 1; two = 2 }
>{ print $(one + two) }'
c
You can change the field separator with the -F option on the command line. It is followed by the delimiter character (either immediately, or separated by whitespace). In the following example, the field separator is changed to a tab.
$awk -F"\t" '{ print $2 }' names
666-555-1111
"\t" is an escape sequence (discussed below) that represents an actual tab character. It should be surrounded by single or double quotes.
Commas delimit fields in the following two address records.
John Robinson,Koren Inc.,978 4th Ave.,Boston,MA 01760,696-0987 Phyllis Chapman,GVE Corp.,34 Sea Drive,Amesbury,MA 01881,879-0900
An awk program can print the name and address in block format.
# blocklist.awk -- print name and address in block form. # input file -- name, company, street, city, state and zip, phone { print "" # output blank line print $1 # name print $2 # company print $3 # street print $4, $5 # city, state zip }
The first print statement specifies an empty string (@DQ@@DQ@) (remember, print by itself outputs the current line). This arranges for the records in the report to be separated by blank lines. We can invoke this script and specify that the field separator is a comma using the following command:
awk -F, -f blocklist.awk names
The following report is produced:
John Robinson Koren Inc. 978 4th Ave. Boston MA 01760 Phyllis Chapman GVE Corp. 34 Sea Drive Amesbury MA 01881
It is usually a better practice, and more convenient, to specify the field separator in the script itself. The system variable FS can be defined to change the field separator. Because this must be done before the first input line is read, we must assign this variable in an action controlled by the BEGIN rule.
BEGIN { FS = "," }
Now let's use it in a script to print out the names and phone numbers.
# phonelist.awk -- print name and phone number. # input file -- name, company, street, city, state and zip, phone BEGIN { FS = "," } # comma-delimited fields { print $1 ", " $6 }
Notice that we use blank lines in the script itself to improve readability. The print statement puts a comma followed by a space between the two output fields. This script can be invoked from the command line:
$awk -f phonelist.awk names
John Robinson, 696-0987 Phyllis Chapman, 879-0900
This gives you a basic idea of how awk can be used to work with data that has a recognizable structure. This script is designed to print all lines of input, but we could modify the single action by writing a pattern-matching rule that selected only certain names or addresses. So, if we had a large listing of names, we could select only the names of people residing in a particular state. We could write:
/MA/ { print $1 ", " $6 }
where MA would match the postal state abbreviation for Massachusetts. However, we could possibly match a company name or some other field in which the letters "MA" appeared. We can test a specific field for a match. The tilde (~) operator allows you to test a regular expression against a field.
$5 ~ /MA/ { print $1 ", " $6 }
You can reverse the meaning of the rule by using bang-tilde (!~).
$5 !~ /MA/ { print $1 ", " $6 }
This rule would match all those records whose fifth field did not have "MA" in it. A more challenging pattern-matching rule would be one that matches only long-distance phone numbers. The following regular expression looks for an area code.
$6 ~ /1?(-|)?\(?[0-9]+\)?(|-)?[0-9]+-[0-9]+/
This rule matches any of the following forms:
707-724-0000<PHONE_NUMBER><PHONE_NUMBER> 1-707-724-0000 1<PHONE_NUMBER> 1(707)724-0000
The regular expression can be deciphered by breaking down its parts. "1?" means zero or one occurrences of "1". "(-|)?" looks for either a hyphen or a space in the next position, or nothing at all. "\(?" looks for zero or one left parenthesis; the backslash prevents the interpretation of "(" as the grouping metacharacter. "[0-9]+" looks for one or more digits; note that we took the lazy way out and specified one or more digits rather than exactly three. In the next position, we are looking for an optional right parenthesis, and again, either a space or a hyphen, or nothing at all. Then we look for one or more digits "[0-9]+" followed by a hyphen followed by one or more digits "[0-9]+".
There are three distinct ways you can have awk separate fields. The first method is to have fields separated by whitespace. To do this, set FS equal to a single space. In this case, leading and trailing whitespace (spaces and/or tabs) are stripped from the record, and fields are separated by runs of spaces and/or tabs. Since the default value of FS is a single space, this is the way awk normally splits each record into fields.
The second method is to have some other single character separate fields. For example, awk programs for processing the UNIX /etc/passwd file usually use a ":" as the field separator. When FS is any single character, each occurrence of that character separates another field. If there are two successive occurrences, the field between them simply has the empty string as its value.
Finally, if you specify more than a single character as the field separator, it will be interpreted as a regular expression. That is, the field separator will be the "leftmost longest non-null and nonoverlapping" substring[2] that matches the regular expression. (The phrase "null string" is technical jargon for what we've been calling the "empty string.") You can see the difference between specifying:
[2] The AWK Programming Language [Aho], p. 60.
FS = "\t"
which causes each tab to be interpreted as a field separator, and:
FS = "\t+"
which specifies that one or more consecutive tabs separate a field. Using the first specification, the following line would have three fields:
abc\t\tdef
whereas the second specification would only recognize two fields. Using a regular expression allows you to specify several characters to be used as delimiters:
FS = "[':\t]"
Any of the three characters in brackets will be interpreted as the field separator.


Awesome Kanban Board
Create new list
Backlog
•••
+ Add card
Ready
•••
+ Add card
In Progress
•••
+ Add card
Finished
•••
+ Add card


|
libump
|
#include "ump/header.hpp"
#include "ump/BigNum.hpp"
#include "ump/Command.hpp"
#include "ump/Logger.hpp"
#include "ump/Version.hpp"
#include "ump/client/Bot.hpp"
#include "ump/client/Client.hpp"
#include "ump/mj/Agari.hpp"
#include "ump/mj/AgariParser.hpp"
#include "ump/mj/Config.hpp"
#include "ump/mj/Divider.hpp"
#include "ump/mj/Game.hpp"
#include "ump/mj/Hai.hpp"
#include "ump/mj/HaiArray.hpp"
#include "ump/mj/Hand.hpp"
#include "ump/mj/Kawa.hpp"
#include "ump/mj/Mentsu.hpp"
#include "ump/mj/Pattern.hpp"
#include "ump/mj/Player.hpp"
#include "ump/mj/Shanten.hpp"
#include "ump/mj/Sutehai.hpp"
#include "ump/mj/Yama.hpp"
#include "ump/server/Config.hpp"
#include "ump/server/Game.hpp"
#include "ump/server/Job.hpp"
#include "ump/server/JobAgari.hpp"
#include "ump/server/JobGame.hpp"
#include "ump/server/JobKyoku.hpp"
#include "ump/server/JobNaki.hpp"
#include "ump/server/JobReady.hpp"
#include "ump/server/JobRyukyoku.hpp"
#include "ump/server/JobTsumo.hpp"
#include "ump/server/Player.hpp"
#include "ump/server/Receiver.hpp"
#include "ump/server/Server.hpp"
#include "ump/server/Thread.hpp"
#include "ump/socket/Socket.hpp"
#include "ump/socket/SslSocket.hpp"
#include "ump/socket/TcpSocket.hpp"


# -*- coding: utf-8 -*-
""" The Hedge randomized index policy.
Reference: [Regret Analysis of Stochastic and Nonstochastic Multi-armed Bandit Problems, S.Bubeck & N.Cesa-Bianchi](http://research.microsoft.com/en-us/um/people/sebubeck/SurveyBCB12.pdf)
"""
from __future__ import division, print_function # Python 2 compatibility
__author__ = "Lilian Besson"
__version__ = "0.7"
import numpy as np
import numpy.random as rn
try:
from .BasePolicy import BasePolicy
except ImportError:
from BasePolicy import BasePolicy
#: Default :math:`\varepsilon` parameter.
EPSILON = 0.01
[docs]class Hedge(BasePolicy):
""" The Hedge randomized index policy.
Reference: [Regret Analysis of Stochastic and Nonstochastic Multi-armed Bandit Problems, S.Bubeck & N.Cesa-Bianchi, §3.1](http://research.microsoft.com/en-us/um/people/sebubeck/SurveyBCB12.pdf).
"""
[docs] def __init__(self, nbArms, epsilon=EPSILON,
lower=0., amplitude=1.):
super(Hedge, self).__init__(nbArms, lower=lower, amplitude=amplitude)
if epsilon is None: # Use a default value for the epsilon parameter
epsilon = np.sqrt(np.log(nbArms) / nbArms)
assert 0 < epsilon <= 1, "Error: the 'epsilon' parameter for Hedge class has to be in (0, 1]." # DEBUG
self._epsilon = epsilon
# Internal memory
self.weights = np.full(nbArms, 1. / nbArms) #: Weights on the arms
# trying to randomize the order of the initial visit to each arm; as this determinism breaks its habitility to play efficiently in multi-players games
# XXX do even more randomized, take a random permutation of the arm ?
self._initial_exploration = rn.permutation(nbArms)
# The proba that another player has the same is nbPlayers / factorial(nbArms) : should be SMALL !
[docs] def startGame(self):
"""Start with uniform weights."""
super(Hedge, self).startGame()
self.weights.fill(1. / self.nbArms)
[docs] def __str__(self):
return r"Hedge($\varepsilon: {:.3g}$)".format(self.epsilon)
# This decorator @property makes this method an attribute, cf. https://docs.python.org/3/library/functions.html#property
@property
def epsilon(self):
r"""Constant :math:`\varepsilon_t = \varepsilon`."""
return self._epsilon
@property
def trusts(self):
r"""Update the trusts probabilities according to Hedge formula, and the parameter :math:`\varepsilon_t`.
.. math::
\mathrm{trusts}'_k(t+1) &= (1 - \varepsilon_t) w_k(t) + \varepsilon_t \frac{1}{K}, \\
\mathrm{trusts}(t+1) &= \mathrm{trusts}'(t+1) / \sum_{k=1}^{K} \mathrm{trusts}'_k(t+1).
If :math:`w_k(t)` is the current weight from arm k.
"""
# Mixture between the weights and the uniform distribution
trusts = self.weights
# XXX Handle weird cases, slow down everything but safer!
if not np.all(np.isfinite(trusts)):
trusts[~np.isfinite(trusts)] = 0 # set bad values to 0
# Bad case, where the sum is so small that it's only rounding errors
# or where all values where bad and forced to 0, start with trusts=[1/K...]
if np.isclose(np.sum(trusts), 0):
trusts[:] = 1.0 / self.nbArms
# Normalize it and return it
return trusts / np.sum(trusts)
[docs] def getReward(self, arm, reward):
r"""Give a reward: accumulate rewards on that arm k, then update the weight :math:`w_k(t)` and renormalize the weights.
.. math::
w'_k(t+1) &= w_k(t) \times \exp\left( \frac{\tilde{r}_k(t)}{\varepsilon_t N_k(t)} \right) \\
w(t+1) &= w'(t+1) / \sum_{k=1}^{K} w'_k(t+1).
"""
super(Hedge, self).getReward(arm, reward) # XXX Call to BasePolicy
# Update weight of THIS arm, with this reward
reward = (reward - self.lower) / self.amplitude
loss = 1 - reward
# Multiplicative weights
self.weights[arm] *= np.exp(- loss * self.epsilon)
# Renormalize weights at each step
self.weights /= np.sum(self.weights)
# --- Choice methods
[docs] def choice(self):
"""One random selection, with probabilities = trusts, thank to :func:`numpy.random.choice`."""
# Force to first visit each arm once in the first steps
if self.t < self.nbArms:
# DONE we could use a random permutation instead of deterministic order!
return self._initial_exploration[self.t]
else:
return rn.choice(self.nbArms, p=self.trusts)
[docs] def choiceWithRank(self, rank=1):
"""Multiple (rank >= 1) random selection, with probabilities = trusts, thank to :func:`numpy.random.choice`, and select the last one (less probable).
- Note that if not enough entries in the trust vector are non-zero, then :func:`choice` is called instead (rank is ignored).
"""
if (self.t < self.nbArms) or (rank == 1) or np.sum(~np.isclose(self.trusts, 0)) < rank:
return self.choice()
else:
return rn.choice(self.nbArms, size=rank, replace=False, p=self.trusts)[rank - 1]
[docs] def choiceFromSubSet(self, availableArms='all'):
"""One random selection, from availableArms, with probabilities = trusts, thank to :func:`numpy.random.choice`."""
if (self.t < self.nbArms) or (availableArms == 'all') or (len(availableArms) == self.nbArms):
return self.choice()
else:
return rn.choice(availableArms, p=self.trusts[availableArms])
[docs] def choiceMultiple(self, nb=1):
"""Multiple (nb >= 1) random selection, with probabilities = trusts, thank to :func:`numpy.random.choice`."""
if (self.t < self.nbArms) or (nb == 1):
return np.array([self.choice() for _ in range(nb)]) # good size if nb > 1 but t < nbArms
else:
return rn.choice(self.nbArms, size=nb, replace=False, p=self.trusts)
# --- Other methods
[docs] def estimatedOrder(self):
""" Return the estimate order of the arms, as a permutation on [0..K-1] that would order the arms by increasing trust probabilities."""
return np.argsort(self.trusts)
[docs] def estimatedBestArms(self, M=1):
""" Return a (non-necessarily sorted) list of the indexes of the M-best arms. Identify the set M-best."""
assert 1 <= M <= self.nbArms, "Error: the parameter 'M' has to be between 1 and K = {}, but it was {} ...".format(self.nbArms, M) # DEBUG
order = self.estimatedOrder()
return order[-M:]
# --- Two special cases
[docs]class HedgeWithHorizon(Hedge):
r""" Hedge with fixed epsilon, :math:`\varepsilon_t = \varepsilon_0`, chosen with a knowledge of the horizon."""
[docs] def __init__(self, nbArms, horizon, lower=0., amplitude=1.):
super(HedgeWithHorizon, self).__init__(nbArms, lower=lower, amplitude=amplitude)
assert horizon > 0, "Error: the 'horizon' parameter for SoftmaxWithHorizon class has to be > 0."
self.horizon = int(horizon) #: Parameter :math:`T` = known horizon of the experiment.
[docs] def __str__(self):
return r"Hedge($T={}$)".format(self.horizon)
# This decorator @property makes this method an attribute, cf. https://docs.python.org/3/library/functions.html#property
@property
def epsilon(self):
r""" Fixed temperature, small, knowing the horizon: :math:`\varepsilon_t = \sqrt(\frac{2 \log(K)}{T K})` (*heuristic*).
- Cf. Theorem 3.1 case #1 of [Bubeck & Cesa-Bianchi, 2012](http://sbubeck.com/SurveyBCB12.pdf).
"""
return np.sqrt(2 * np.log(self.nbArms) / (self.horizon * self.nbArms))
[docs]class HedgeDecreasing(Hedge):
r""" Hedge with decreasing parameter :math:`\varepsilon_t`."""
[docs] def __str__(self):
return "Hedge(decreasing)"
# This decorator @property makes this method an attribute, cf. https://docs.python.org/3/library/functions.html#property
@property
def epsilon(self):
r""" Decreasing epsilon with the time: :math:`\varepsilon_t = \min(\frac{1}{K}, \sqrt(\frac{\log(K)}{t K}))` (*heuristic*).
- Cf. Theorem 3.1 case #2 of [Bubeck & Cesa-Bianchi, 2012](http://sbubeck.com/SurveyBCB12.pdf).
"""
return min(1. / self.nbArms, np.sqrt(np.log(self.nbArms) / (self.t * self.nbArms)))


@message
}@flash.get("error").map { message =>@message
}Terpski is the largest student club on campus. Whether its shredding some gnar or throwing the best parties we always have a good time.
@if(user == null || !user.deposit.isEmpty){ Find Out More }else{ Become a Member }The Terrapin Ski and Snowboard Club (a.k.a. Terpski) is the largest student run organization at the University of Maryland, College Park. Founded in 1960, Terpski has provided the students of the University of Maryland with the raddest ski trips known to man. Each year, Terpski embarks on four journeys in search of the softest snow. Terpskiers spend over 80 hours annually traveling coast to coast on a mission to find scenic views, untouched trails, lasting friendships, and the greatest of memories.
Trips!Ready to start your next project with us? Sign up on the site or come to a weekly meeting. Still have questions? Reach out to us by email or phone
410-689-5339


Terminal -- bash
$ status
opendc[4264]: segfault at<PHONE_NUMBER>be459d1 err 12 in libopendc.9.0.4
opendc[4269]: segfault at<PHONE_NUMBER>55fc2db err 3 in libopendc.9.0.4
opendc[4270]: STDERR Page does not exist
Got lost?
_
GET ME BACK TO OPENDC


{% extends "documentation/base.html" %} {% block title %}Direct file access from DataStage Linux host{% endblock %} {% block content %}
It is possible for research group members to log in directly to the DataStage Linux host and access the file system directly. Generally, this is not necessary and is of use only to those familiar with Linux commands. SCP can sometimes be used to read and write files in circumstances where other methods cannot be used, and has the advantage of being a very secure mechanism for remote file access. There are a small number of administrative tasks that depend on direct system access, though we plan to provide simple web interfaces for these tasks in due course.
Protocols used for direct access are:
Once logged in, a user will be able to read/write files in their own private
area, and also to read all files in the shared
and
collab
areas.
For Windows there are several freely available tools, including:
MacOS has a built-in ssh
command for creating SSH sessions,
which can be used thus from the Terminal
application:
ssh username@{{ hostname }}
Finder can be used to find the Terminal
application in
directory Applications/Utilities
.
It also provides a command-line SCP file copying command, which is used similarly:
scp username@{{ hostname }}:/home/username/filename localfilename
scp localfilename username@{{ hostname }}:/home/username/filename
For SCP file copying, there is a shareware GUI application called Cyberduck (http://cyberduck.ch/).
Linux has built-in commands ssh
and scp
which
can be run from a terminal window.
Here are some examples of their use:
ssh username@{{ hostname }}
scp username@{{ hostname }}:/home/username/filename localfilename
scp localfilename username@{{ hostname }}:/home/username/filename


Scaldi is dependency injection library for Scala. It's very lightweight (without any dependencies) and provides nice Scala DSL for binding dependencies and injecting them.
There are only 3 most important traits that you need to know, in order to make dependency injection with Scaldi:
bind
and binding
. Module
also extends Injector
trait and implicit Injector
instance always available when you are defining your bindingsinject
function (so it just provides nice syntax for injecting dependencies). It's important to understand, that it's the only the purpose of it. So it completely stateless and knows nothing about actual bindings you have defined in the module. In order to actually find and inject dependencies, inject
function always takes an implicit parameter of type Injector
Let's take a small example. Suppose you have have MessageService trait like this:
trait MessageService {
def getGreetMessage(name: String): String
}
Now let's define one implementation of it, where we will inject greeting string:
class OfficialMessageService(implicit inj: Injector) extends MessageService with Injectable {
val officialGreeting = inject [String] (identified by "greeting.official")
def getGreetMessage(name: String) = s"$officialGreeting, $name!"
}
You have probably noticed 2 things, that are required for injection to work:
Injectable
in order to make inject
function availableInjector
in order to provide bindings to the inject function.You are not required to always extend Injectable
in order to use inject
- you can just import it. This will work as good as in previous example:
import scaldi.Injectable._
class SomeService(implicit inj: Injector) extends MessageService {
val dep = inject [SomeOtherService]
}
Now that we've created a managed class, we need to add it to the Module
:
class UserModule extends Module {
bind [MessageService] to new OfficialMessageService
binding identifiedBy "greeting.official" to "Welcome"
}
In the module context you are able to instantiate OfficialMessageService because it always have implicit Injector
available in a scope, as I mentioned earlier. I also defined another binding with identifier greeting.official
because OfficialMessageService needs it and will try to inject it at some point.
Now we will try to integrate our new module in the Play app. The first thing you need to do is to add dependency on scaldi-play in the project file (build.sbt). Something like this:
name := "scaldi-play-example"
version := "1.0-SNAPSHOT"
libraryDependencies ++= Seq(
"com.github.scaldi" %% "scaldi-play" % "0.5.6"
)
lazy val root = (project in file(".")).enablePlugins(PlayScala)
Now you are able to use Scaldi in the project. Play application needs an application loader to be able to start and initialize your play application. So let's define an application loader together with the scaldi module, we just defined above, in application.conf:
play.application.loader = scaldi.play.ScaldiApplicationLoader
play.modules.enabled += "modules.UserModule"
Nice! Your Play application is now uses Scaldi for the dependency injection, but unfortunately it doesn't do anything, so let's fix it. Let's create a simple index page (index.scala.html) that will show greeting message to the user:
@(message: String)
@main("Test Page") {
<h1>@message</h1>
}
Now we need to create a controller for it. But instead of creating a singleton object, let's make a managed class (similar to the OfficialMessageService class):
class Application(implicit inj: Injector) extends Controller with Injectable {
val messageService = inject [MessageService]
def index = Action {
Ok(views.html.index(messageService.getGreetMessage("Test User")))
}
}
As you can see, MessageService is injected and its used to produce nice greet message.
In order to allow Play inject your controllers, you need to prefix them with @
in the routes file. So let's make it:
GET / @controllers.Application.index
The one last thing that remains is to add controller to the new module:
class WebModule extends Module {
binding to new Application
}
and add WebModule in the application.conf:
play.modules.enabled += "modules.WebModule"
At this point you should be able to run Play app and view the index page, that will show you: Welcome, Test User!
.
Alternatively, you can use scaldi.play.ControllerInjector
, which will bind all your controllers automatically:
play.modules.enabled += "scaldi.play.ControllerInjector"
scaldi-play provides integration with Play configuration (application.conf) out of the box. So you can, for example, define greeting.official
property there:
greeting.official = Welcome
and then just remove one extra binding for it from the UserModule:
class UserModule extends Module {
bind [MessageService] to new OfficialMessageService
}
It will continue to work as before. You can also inject other primitive types like Int
or Boolean
and not only String
. If you would like to use configuration
object directly, then you need inject it like this:
val config = inject [play.api.Configuration]
Suppose we have another implementation of MessageService that we want to use when Play app is in the dev
or test
mode:
class SimpleMessageService extends MessageService {
def getGreetMessage(name: String) = s"Hi, $name"
}
With Scaldi it's pretty easy to make. You just need to define UserModule like this:
class UserModule extends Module {
bind [MessageService] when (inDevMode or inTestMode) to new SimpleMessageService
bind [MessageService] when inProdMode to new OfficialMessageService
}
inDevMode
, inTestMode
and inProdMode
are just functions that produce Condition
objects. Condition
s are used by Scaldi to decide, whether binding is available for injection.
I hope you liked this small introduction to scaldi and scaldi-play. You can find example application, that I described here, in this github repo:
https://github.com/scaldi/scaldi-play-example
Please feel free to fork and hack it :) Also feel free to give a feedback in case of problems.


[gecode-users] Possible Bug - Increase IntVars Range and Gecode Stalls
Navid Mohaghegh
navid at navid.ca
Tue Jan 14 17:03:54 CET 2014
Hi Everyone,
My question:
I am wondering what is happening in below and why Gecode stalls stall whenI increase the range of my IntegerVars (while its CPU utilization goes very high) despite the fact that our constraints are not changed?
Background (http://navid.ca/gecode/test.cpp):
We are trying to solve a space. We can easily solve the space when our variable ranges are small (e.g. 0 to 800). As soon as the range goes higher (e.g. 0-1535) Gecode will stall and can not produce a solution for the space with exactly the same constraints as before.
We have 4 groups of integer_array variables. They are called vars_a, vars_b, vars_c and vars_d. And inside each of them, we have 15 integer variables.
NavidTest(int n, int vars_a_max_, int vars_b_max_, int vars_c_max_, int vars_d_max_, int vcost_max_);
NavidTest* m = new NavidTest(15, 800, 500, 410, 60,<PHONE_NUMBER>); means:
n = 15
vars_a[0] ... vars_a[15] can have values from zero to vars_a_max_ = 800
vars_b[0] ... vars_b[15] can have values from zero to vars_b_max_ = 500
vars_c[0] ... vars_c[15] can have values from zero to vars_c_max_ = 410
vars_d[0] ... vars_d[15] can have values from zero to vars_d_max_ = 60
our cost variable can be have values from zero to vcost_max_ = 2,000,000,000
As we have quadratic cost functions and values can easily grow.
lift() method is where we add our constraints.
For demonstration purpose, we have a method that once used, Gecode can produce solution: it is called "void the_one_works()"
And we have another one (called: void the_one_doesnot_work) that can not be solved using Gecode (it is perfectly solvable and we test our solution in verify_answer() method)
The only difference between the_one_works() and the_one_doesnot_work() is an increase in vars_a max range from 800 to 1535.
I have found a mailing list entry stating a possible bug:
==========
From: victor.zverovich at ... <victor.zverovich at ...>
Subject: bug in INT_VALUES_MAX
Newsgroups: gmane.comp.lib.gecode.user
Date: 2013-06-21 22:20:18 GMT (29 weeks, 3 days, 17 hours and 17 minutes ago)
There seems to be a trivial bug in INT_VALUES_MAX: SEL_VALUES_MIN is used instead of SEL_VALUES_MAX. The attached patch fixes it.
Victor
==========
Can someone have a look and let me know?
We are using Gecode 4.2.1 on Linux
GCC 4.7.2 and also latest 4.9
Debian 64bit and CentOS 64bit
My code and how I compile and run is here: http://navid.ca/gecode/test.cpp
Thank you,
Navid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20140114/77a15401/attachment.html>
More information about the users
mailing list


A problem has benn detected and Windows has been shut down to prevent damage to your computer.
The problem seems to be caused by the following file: ps3ds.exe
If this is the first time you've seen this stop error screen,
restart your computer. If this screen appears again, follow
these steps:
Check to make sure any new hardware of software is preperly installed.
If this is a new installation, ask your hardware or software manufacturer for any Windows updates you might need,


| DOSE: |
22 mg |
oral |
2C-E |
(powder / crystals) |
To follow up on my previous 2C-E experience, I have since done the phenethylamine once more, with a friend of mine whom we'll refer to as NB for anonymity's purposes.
So, I acquired some 2C-E from a guy JB. Unfortunate for me, as I still owe JP $20 for the 2C-E he gave me that one night, but I got these for $10 a piece. (Needless to say, he's not getting anything for trying to shyst me out.)
For about a month or so after the time I took 2C-E, I spent nearly every moment that I had either looking for it and trying to find someone that would do it with me, or finding some other thing to entertain myself with. I was seeking to recapture the
magic of the night I had first taken the chemical, and this experience to me completely dwarfs the first time.
Consider a two-bedroom apartment, low-rent, and considerably dirty. Our two roomates were asleep that night while we were up grasping insanity at our very fingertips. The time was around 3:00 AM when I finally convinced NB to take it with me, as he was very skeptical of it. He had taken 3 hits of some strong acid one time and he hasn't been really willing to delve into the world of entheogens much more. I reassured him that it would be very intense and he had to be ready, as I figured him taking 3 hits of acid would prepare him for just about anything his mind could conjour up.
4:00 AM. Nothing. I was somewhat disappointed, but nonetheless with the little time I had left before I was projected into a world of complete cognitive disarray, I had to make a music playlist or me and NB would certainly die on this trip. The way I saw it was, music was always a way of calming someone during a trip, or so I thought. I scrambled together some of the psychedelic favorites of mine and his, and we sat and waited yet a little longer.
5:00 AM. Oh yes, it's definitely started to affect NB. Me? I'm only beginning to feel the threshold of what the 2C-E had to offer me. He was still very suspicious that he might once again visit a land he refers to as 'cartoonland', but I told him that we weren't stopping there tonight... or today, whichever way you want to look at it as.
6:00 AM. Yeah, Sanity is definitely starting to relinquish itself from my body as the blank walls assume various patterns. The ceiling, which ordinarily has some form of a white assortment of little dots on it (apartment dwellers would know what I'm trying to communicate), begin to shapeshift into weird formations that remind me of Egyptian hieroglyphics or some weird Mayan/Aztec carvings you'd find in an excursion down in the Yucatan. NB has emptied his stomach contents into a small wastebasket conveniently procured by myself, as I knew either he or I would hurl sooner or later. He ate ramen earlier that day, and he said he saw little apple chunks in his vomit.
And here's where it would all take off for the two of us. I had put on Aphex Twin's 'Windowlicker' (a very good track for the tripping purposes), but NB felt the void creeping up on him. He said from the corner in the ceiling he could hear the voices of
cartoonland calling him back, but I somehow managed to get him out of the what appeared to be early doom for the man. I figured, if this man is going to have a bad trip, then I sure as hell will too. No need in spoiling $20 for a batch of encapsulated fear, I thought.
I had to maintain, as would he. Fischerspooner's 'Just Let Go' relieved the tension he felt as I recommended him to listen carefully to the words they had to say.
'Yeah... Just let it go... Just let it go, man...' I said, keeping a close eye on him.
If I wasn't careful enough, he would fall back into the same void that plagued him and enveloped his body that night he took the acid.
 I felt the majority of the half-sober tasks I would have to do have been completed, and I could sit back and enjoy the (what would seem to be) 3-day trip.
I shuffled through a bunch of Tool and Led Zeppelin (my personal favorites even when sober), namely both versions of No Quarter. This definitely was the benchmark of the trip, as I could feel the words emanating from the laptop's speakers, somehow. We pondered the various states of existence that we felt, what we saw, and what we might think this trip may become. I was ready for it, as the peak hit me right as the sun was rising. I had never been on a full day trip, so I figured I was about ready.
The tracers on this drug were incredible. They almost rival MDMA in this respect. We weren't given the provisions that we might acquire, say on a night that we were tripping as it was about to be daytime, but we had enough to maintain. I would move my hands in a weird, foreign motion around my face and watch the other 5 hands soon follow thereafter. NB would almost observe me the entire trip, and study my habits to see what was possible.
This is when I had the bright idea of moving furniture with my mind. 2C-E has an effect to it to where things sort of breathe and blow themselves temporarily out of proportion, namely stationary objects as well as extremities. The redundancy of this drug raining down weird thoughts through my mind like an artillery cannon is quite profound at this point, as some of you may imagine.
'N!  I breathe in deeply momentarily, exhaling soon thereafter and as I thrust my hands forward, a jolt of energy forces the chair back into the corner a little bit.
In retrospect, I feel like a fool for 'accomplishing' this particular 'feat', but it humored me and him as well as amazed me. During the apex of Tool's version of No Quarter, NB and I discovered transcended human powers did exist, especially on these phenethylamines. We would emulate each other by breathing in deeply, thrusting our hands forward and exchanging bodies of energy (that weren't really there) with one another as Maynard James Keenan's titan roar went on.
I felt it was time to get up. I had been sitting since we digested the 2C-E, and my legs were beginning to tire. I don't really know how that is possible, considering being stationary requires you to do little to remain ... stationary. The sunshine filtered itself through our apartment front window's blinds, casting brilliant rays of light upon our coffee table. I lifted the blinds to see what the outside world might offer us, as I figured even a venture into the outside world might not be totally out of the question.
What appeared in my line of vision was something completely different than I had ever imagined would be possible. The tail lights of cars all assumed the odd embodiment of 'eyes', if that makes any sense.  Better shut these blinds before more carnage unfolds... I do remember the grass and the dew as a higher hue of color than normal, almost fluourescent in some respect. NB questioned what I saw, but it wasn't anything really worth mentioning. Maybe it was, but the notion that I couldn't explain it in words might be a better explanation to go with.
NB's creativity seems to be fueled even moreso than normal on 2C-E, as he has a giant notepad of sorts out and is drawing on it. He's a very skilled artist and can draw basically anything imaginable. What he is drawing is a conglomerate of several other drugs we've done, ranging from mushrooms, to MDMA, to oxycodone, to the newest addition being 2C-E. I couldn't keep my focus on the paper, as I was certain when he held it a specific way, he was about to 'spill' the picture onto the carpet, and he did. I warned him of it, as I saw the pencil drawing itself slide off the paper and merge onto the carpet. I closed my eyes, basked in the fiery radiance of the one-second closed-eye visuals, then returned to trip-vision as I realized it was all a figment of my
imagination. Somehow, he saw it too, though. From then on for about 30 minutes, the picture wouldn't stop boiling...
The weird, chemical feeling of this drug had taken hold of me long before this time, but it was emanating a 'desert' kind of feel to it. Like, if I had been placed out in some kind of desert... Of course, this was only my tripping mind thinking. Thoughts overlapped into several others.
I take a look at the back door, and a wash of rainbow colors aligns the windows, through the blinds.  I bring it to NB's attention, but for once he assures me that the door isn't about to explode and existence isn't about to be split wide open. Maybe at this point, our minds were functioning on a more rational level than a couple hours previous. We return to the picture.
Cigarettes. So many cigarettes that night, not a single one could bring about cancer-tinged satisfaction.  It seemed like I was lighting one up every twenty minutes or so. Open discussion lined the moments when we would inhale and exhale on the manufacturer of death's product, about who knows what. I really wish I would have gotten hold of a tape recorder for the trip, as it would be of much aid than my in-and-out recollection.
It's got to at least be about 11:00 AM by this point, and NB and I are convinced we are one with the Goron people from the Legend of Zelda from Ocarina of Time. If you've ever played, when you walk up to one they are somewhat sleeping and give off a sound of 'Orr?' and then as you walk away they return back onto the ground and it sounds a bit more like 'Orrrrr...', the latter sounding a bit more discouraged in matters of tone of voice. NB's girlfriend was bewildered as to why we decided we were Gorons. I haven't figured it out to this day, honestly. It was all that mattered, because it was a part of the trip, I suppose. By this time I had encountered three versions of the NB I knew; one was the 20-year old whom I was shacking up with, the other was about 28 years old, and the most familiar one that brought itself into fruition was the 35-year old version of NB.
Time just kept winding onwards, as we desperately struggled to maintain ourselves as we grew weary of the drug as the day drew on. Our bodies ached, and our minds were tired of seeing the Aztec-Mayan-Egyptian hieroglyphics on the wall, as well as the thought that this might NEVER be over with... Hanging on, smoking cigarettes, and odd conversation kept us going.
3:00 PM came about, and our two other roomates who remained dormant for this particular trip, were off to work. I knew the drug was still in effect because of the way SS looked at me... You see, NB and I had been trying to secure a job for at least a month by this point with no luck. The particular one that gave me the look, SS, had a scrutinized look on his face, like he almost thought we were worthless because we were staying up all night on these weird drugs that he had never really heard much about... He gave a scornful look towards us and he said, 'Oh. Well. I'm going to work.'
After they left (SS and MT), NB and I discussed the possibilities of the statement SS left us with. I almost whipped myself into a frantic spree to regain complete sobriety as I felt it was demeaning towards us because we stayed up all night tripping and demeaning towards him as well because I didn't want to make it seem like to one of my best friends that I was worthless and good for nothing. After all, he had been there for me in hard times and now wasn't the time to be a pissant. NB reassured me that I was just tripping and it was nonsense and I shook it off after a sober reassurance of what he really intended later on that day.
4:00 PM rolls around, and the Egyptian thing is wearing off on the ceiling, thank whatever there is out there. For a second, I felt I was going insane. I lay down on the couch, weary from all the strange mental activity that had been going on for the past 13 or so hours. NB was already asleep, as I felt this journey come to a close. I had one cigarette left, as I felt it was perfect and couldn't suit this any more better. I smoked it to its entirety, and then headed off into my room and passed out.
In retrospect, I remember much more detail of this trip than my first and was definitely funner with virtually no bad effects as opposed to my first.
--splifferHSC
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.


Pupils help put finishing touches to new £1m greenspace in East Kilbride
New life is being breathed into the historic landfill at Glen Esk thanks to funding from the Scottish Government Vacant Derelict Land Fund.
by Nicola Findlay, https://www.dailyrecord.co.uk/authors/nicola-findlay/A new £1m greenspace in East Kilbride is nearing completion.
Funded via the Scottish Government Vacant Derelict Land Fund, the 7.6 hectare site is based at a historic landfill at Glen Esk and now incorporates native planting and habitat creation, footpaths, boundary treatments, artwork, an outdoor classroom, a junior mountain bike track and a car park.
Pupils from the nearby St Leonard’s Primary School recently had a sneak preview of the site and were able to plant some bulbs which will flower in time for next summer.
Chair of South Lanarkshire Council’s Community and Enterprise Resources Committee, Councillor John Anderson, said: “This development will have a positive impact on the local area and will create a space for the whole community to enjoy.
“It creates a positive link between residential estates with the increase of core paths and greenspace networks in this location.
“I am sure it will encourage more people to walk and cycle to here to enjoy the impressive outdoor space that has been created.
“It is an amazing transformation and I was delighted to see how much the children enjoyed being in the park – no doubt they will return many times with their friends and family.”
St Leonard’s head teacher, Lorraine Mullen, said: “The children who visited the park had a fantastic time and really enjoyed taking part in the bulb planting.
“It helps give them a real sense of ownership of the park, they will be able to come back here and point out the area that they helped develop.”
Stuart Robertson, Project Manager for Covanburn Contracts Ltd, who are carrying out the work on behalf of the council, said: “Covanburn were delighted to welcome the local children from St Leonard’s Primary School on a recent bulb planting day and for being a part of creating this fantastic asset which the whole community will benefit from.

Some areas of the park require further attention but all works are expected to be completed in full by the end of the year.


Japanese synthesist Hinako Omori shares debut EP Auraelia
by Natalia PanzerPress photo by: m r wash
Listen to the title track below.
Japanese musician and programmer Hinako Omori has released her debut EP Auraelia via Villette’s Injazero Records.
The London-based synthesist built the EP from four years’ worth of instrumental demos, lyrics and field recordings that she was able to thematically link and mould into songs after experiencing “a strange period of having daily migraines with auras for a month.”
“The physical reaction I was experiencing from the auras – the haziness/blurriness/partial loss of sight and spots of light surrounding every day vision – also seemed to reflect the emotions I was feeling at the time – confusion, lack of clarity, ambiguity, mixed feelings of hope and melancholy…”
The title track ‘Auraelia’ speaks to this same haze via fore-fronted, gently distorted vocals that Omori performs as if giving voice to the aura itself.
Auraelia is available now.
Read next: Superbooth 2019 pushed synth culture forward in fresh and unexpected ways
More from News
Saturday, November 23
Friday, November 22
Friday, November 22
Friday, November 22
Thursday, November 21
Thursday, November 21
Thursday, November 21
Thursday, November 21
Thursday, November 21
Thursday, November 21


0.9
Download and install
Where to get trekker?
Stand-alone executables
Source code
Python package
Test your installation
Extensions
Get started
Tutorial 1: The short trek
Tracking with trekker
Visualizing results
Tutorial 2: Trekker’s pathways
Defining pathway rules
Whole brain tractography
Using atlases or labeled images in pathway rules
Tracking in order
Tutorial 3: Python package usage
Manual
trekker
Synopsis
Usage
Description
Options
Tracking options
Probe options
Seeding options
Output options
Pathway options
Other options
Tips
How to set parameters?
Basic parameter setting tips
Advanced parameter setting tips
Publications
How to cite?
About
License and warranty
Acknowledgements
Contact
trekker
Docs
»
Acknowledgements
View page source
Acknowledgements
¶


Are you lost, bud? No worries, I'm an excellent guide!
Arf! Arf!
Don't worry! I'm on it!
I wish I had a cookie
Geez! This is pretty ti/resome!
Am I getting close?
Or am I just going in circles? Nah...
OK, I'm officially lost now...
I think I saw a
What are we supposed to be looking for, anyway? @_@


+++ title = "Juan Carlos the pampas guide" slug = "juan-carlos-the-pampas-guide" date = 2007-06-14T13:00:00+10:00 tags = ["tourguides", "eccentric-encounters", "locals"] locations = ["bolivia/rurrenabaque"] draft = false summary = """
Another great Juan Carlos that I've met on my travels. This Juan Carlos took care of us during our three days in the pampas, mainly just driving the motorised canoe, but also catching anacondas for us, and taking us piranha fishing.  This Juan Carlos took care of us during our three days in the pampas, mainly just driving the motorised canoe, but also catching anacondas for us, and taking us piranha fishing.


---
layout: post
title: Volleyball Playoffs
categories: []
tags: []
status: publish
type: post
published: true
meta:
_original_post_id: ''
_original_import_author: John Duprey
author:
---
-
-
jduprey
- February 17th, 2005
We had our arses summarily handed to us in the volleyball playoffs last Sunday. We didn't deserve to be on the court. Pretty soon I start playing on a second volleyball team, so I'll have to distinguish between the two teams.


Role
Developer, Designer
Tools
HTML,CSS,Javascript,Balsamiq,Highcharts
Environments
Angular
Duration
April 2017 (1 mo)
Tools
HTML,CSS,Javascript,Balsamiq,Highcharts
Environments
Angular
Duration
April 2017 (1 mo)
• Reconstructed Big Skinny corporate website (home, nav-bar, etc..) • Team of 4, awarded ‘Most Innovative Prototype’
PROBLEM
The product was still in stealth mode
OTHER WORK
I also participated in focus group meetings


You can now bind to an entirely custom user interface by just passing the id of the elements you want treated as buttons! This is especially useful when you need to fully control the look and feel of the user interface. (New since 0.9.50)
The relevant configuration options are shown below. Note the value for the options are the id of the element on the page to bind the button's action to.
OpenSeadragon({ ... zoomInButton: "zoom-in", zoomOutButton: "zoom-out", homeButton: "home", fullPageButton: "full-page", nextButton: "next", previousButton: "previous", ... });
Also note the interface in this example updates the current page numbers in the label "Page N of 3". This is achieved by making use of the provided callback 'onPageChange'
OpenSeadragon({ ... onPageChange: function( data ){ document.getElementById('currentpage').innerHTML = ( data.page + 1 ) + ' of 3'; } ... });


MWD OBJECTIVE 2.00 Understand digital image design.
2.01 Raster Graphics example
2.02 Vector Graphics example
Home Page
Objective 1.00
Objective 2.00
Objective 3.00


| rnassqs | Usage | Release | Development |
|---|---|---|---|
|
(Wheat image from here.) |
|||
rnassqs
allows users to access the USDA’s National Agricultural Statistics Service (NASS) ‘Quick Stats’ data through their API. It is simple and easy to use, and provides some functions to help navigate the bewildering complexity of some Quick Stats data.
For docs and code examples, visit the package web page here: https://docs.ropensci.org/rnassqs/.
Install the package via devtools
or CRAN:
# Via devtools
library(devtools)
install_github('ropensci/rnassqs')
# Via CRAN
install.packages("rnassqs")
To use the NASS Quick Stats API you need an API key. The API key should in general not be included in scripts. One way of making the key available without defining it in a script is by setting it in your .Renviron
file, which is usually located in your home directory. If you are an rstudio
user, you can use usethis::edit_r_environ()
to open your .Renviron
file and add a line that looks like:
Alternatively, you can set it explicitly in the console with nassqs_auth(key = <your api key>)
. This will set the environmental variable NASSQS_TOKEN, which is used to access the API. You can also set this directly with Sys.setenv("NASSQS_TOKEN" = <your api key>)
.
See the examples in inst/examples for quick recipes to download data.
The primary function is nassqs()
, with which you can make any query of variables. For example, to mirror the request that is on the NASS API documentation, you can use:
library(rnassqs)
# You must set your api key before requesting data
nassqs_auth(key = <your api key>)
# Parameters to query on and data call
params <- list(commodity_desc = "CORN", year__GE = 2012, state_alpha = "VA")
d <- nassqs(params)
Parameters do not need to be capitalized, and also do not need to be in a list format. The following works just as well:
d <- nassqs(commodity_desc = "corn", year__GE = 2012, state_alpha = "va")
You can request data for multiple values of the same parameter by using a simple list as follows:
params <- list(commodity_desc = "CORN", year__GE = 2012, state_alpha = c("VA", "WA"))
d <- nassqs(params)
NASS does not allow GET requests that pull more than 50,000 records in one request. The function will inform you if you try to do that. It will also inform you if you’ve requested a set of parameters for which there are no records.
Other useful functions include:
# returns a set of unnique values for the parameter "STATISTICCAT_DESC"
nassqs_param_values("statisticcat_desc")
# returns a count of the number of records for a given query
nassqs_record_count(params=params)
# Get yields specifically
# Equivalent to including "'statisticat_desc' = 'YIELD'" in your parameter list.
nassqs_yields(params)
# Get acres specifically
# Equivalent to including all "AREA" values in statisticcat_desc
nassqs_acres(params)
# Specifies just "AREA HARVESTED" values of statisticcat_desc
nassqs_acres(params, area = "AREA HARVESTED")
The NASS API handles other operators by modifying the variable name. The API can accept the following modifications:
For example, to request corn yields in Virginia and Pennsylvania for all years since 2000, you would use something like:
params <- list(commodity_desc = "CORN",
year__GE = 2000,
state_alpha = c("VA", "PA"),
statisticcat_desc = "YIELD")
df <- nassqs(params) #returns data as a data frame.
See the vignette for more examples and details on usage.
Contributions are more than welcome, and there are several ways to contribute:
rnassqs
to query data from ‘Quick Stats’ and would like to contribute your query, consider submitting a pull request adding your query as a file in inst/examples/.rnassqs
uses roxygen2, which means the documentation is at the top of each function definition. Please submit any improvements as a pull request.rnassqs
follows the style outlined in Hadley Wickham’s R Packages. Following this style makes the pull request and review go more smoothly.In June 2019 the usdarnass
package was released on CRAN and is also available to install via github. usdarnass
has similar functionality to this package.
NASS also provides a daily tarred and gzipped file of their entire dataset. At the time of writing it is approaching 1 GB. You can download that file via their FTP site.
The FTP link also contains builds for: NASS census (every 5 years ending with 2 and 7), or data for one of their specific sectors (CROPS, ECONOMICS, ANIMALS & PRODUCTS). At the time of this writing, specific files for the ENVIRONMENTAL and DEMOGRAPHICS sectors are not available.
Thank you to rOpensci reviewers Adam Sparks and Neal Richardson and editor Lincoln Mullen, for their fantastic feedback and assistance. User feedback and use case contributions have been a huge help to make rnassqs
more accessible and user-friendly. More use cases or feature requests are always welcome!