Pro-tip: Press space bar to progress and it won't skip any slides
A thorough crash course
template.php
mytheme.theme
The theme's name with a ".theme" extension.
mytheme.info
mytheme.info.yml
The theme's name with a ".info.yml" extension.
aka (BEM)
.component-name {}
.component-name__element-name {}
.component-name--modifier-name {}
.component-name__element-name--modifier-name {}
div.menu__wrapper {}
nav.menu {}
ul.menu__list {}
li.menu__list-item {}
a.menu__link {}
li.menu__list-item {}
a.menu__link.menu__link--active {}
li.menu__list-item {}
a.menu__link {}
ul.menu.menu--sub-menu {}
.menu__list {}
If a class is being used by or is coming from Javascript, it gets a "js-" prefix.
.js-open {}
.js-accordion {}
.js-best-thing-you-ever-saw {}
.u-button {}
.u-clearfix {}
.u-text-replace {}
.u-element-invisible {}
* This is something we do at Lullabot on our BEM projects, and not something core is doing.
This is D8 with no theme CSS
Both have well organized files, and all of the templates from core.
Starting your theming project, which is right for you?
Liked D7's default markup and styles?
Classy is the base theme for you.Frustrated by D7 defaults and want more control?
Use StableOR
Want the latest and greatest from core markup? Don't mind keeping up with markup updates?
You can have no base theme...In your *.info.yml
add:
base theme: false
Core markup and classes could change and could effect your site.
{# block.html.twig #}

{{ title_prefix }}
{% if label %}

{{ label }}

{% endif %}
{{ title_suffix }}
{% block content %}
{{ content }}
{% endblock %}

Print something
Hi {{ name }}
Run code
{% set class = 'my-cool-class' %}
Comment
{# My awesome comment #}
$title
$content['field_body']
$myvar['has']->alot['of']['nesting']['und'][0]->safe_value
Dot notation
{{ title }}
{{ content.field_body }}
{{ myvar.has.alot.of.nesting.safe_value }}
$my_array[$index]
$element['#id']
{# Since I want to use a variable called index #}
{{ my_array[index] }}
{# Since this index starts with a hash #}
{{ element['#id'] }}
/**
* If you have {{ sandwich.cheese }} in your twig, it checks:
*/
// Array key.
$sandwich['cheese'];
// Object property.
$sandwich->cheese;
// Also works for magic get (provided you implement magic isset).
$sandwich->__isset('cheese'); && $sandwich->__get('cheese');
// Object method.
$sandwich->cheese();
// Object get method convention.
$sandwich->getCheese();
// Object is method convention.
$sandwich->isCheese();
// Method doesn't exist/dynamic method.
$sandwich->__call('cheese');
{{ what.does.this.do }}
It could be getting data, or performing functionality.
This is helpful because it's more legible and less picky about syntax.
But it can be confusing if you’re not familiar with the code, and don't know which it's doing.
Filters modify and then return variables,
and are denoted by a pipe | symbol.
{# Send translatable string through t function #}
{{ 'Translatable String'|t }}
{# Make a string fit to be a HTML Class #}
{{ node.bundle|clean_class }}
{# Get the string length #}
{% set title_length = title|length %}
There are plenty more:
twig.sensiolabs.org/doc/filters/index.html
drupal.org/node/2357633
{% filter trim %}
Trim will eliminate this weird white space
{% endfilter %}
{# Without will omit part of the array,
this is being used instead of hide()/show() #}
{{ node|without('comments') }}
{# Get the keys of an array (as an array) #}
{% set my_array_keys = my_array|keys %}
{# Reverse the values #}
{% set countdown = [1, 2, 3, 4, 5]|reverse %}
There are plenty more: twig.sensiolabs.org/doc/filters/index.html
{% if not page %}
{# Stuff #}
{% endif %}
{% if not page %}
{# Stuff #}
{% else if page and awesome %}
{# Awesome Stuff #}
{% else %}
{# Other Stuff #}
{% endif %}
{# A for loop that counts to 10 #}
{% for i in 0..10 %}
This is number {{ i }}!
{% endfor %}
{# A for loop that iterates through an array #}
{% for user in users %}
User #{{ loop.index }} is {{ user.username }}
{% endfor %}
# fluffiness.info.yml
name: Fluffiness
type: theme
description: A cuddly theme.
package: Custom
core: 8.x
libraries:
- fluffiness/global-styling
regions:
header: Header
content: Content
sidebar_first: Sidebar first
footer: Footer
# fluffiness.info.yml
name: Fluffiness
type: theme
description: A cuddly theme.
package: Custom
core: 8.x
base theme: classy
# fluffiness.libraries.yml
global:
version: 1.x
css:
theme:
css/layout.css: {}
css/style.css: {}
css/colors.css: {}
css/print.css: { media: print }
# Further down in fluffiness.libraries.yml
cuddly-slider:
version: 1.x
css:
theme:
css/cuddly-slider.css: {}
js:
js/cuddly-slider.js: {}
# We forgot our jquery dependency!
cuddly-slider:
version: 1.x
css:
theme:
css/cuddly-slider.css: {}
js:
js/cuddly-slider.js: {}
dependencies:
- core/jquery
For most use cases, you can tie a library to markup using attach_library()
{{ attach_library('fluffiness/cuddly-slider') }}

Some fluffy markup {{ message }}

In your .theme
file you can use PHP to add the library using whatever logic you'd like.
<?php
function fluffiness_preprocess_maintenance_page(&$variables) {
$variables['#attached']['library'][] = 'fluffiness/cuddly-slider';
}
function fluffiness_preprocess_page(&$variables) {
if ($variables['fluffiness'] >= 5000) {
$variables['#attached']['library'][] = 'fluffiness/cuddly-slider';
}
}
# fluffiness.breakpoints.yml
fluffiness.mobile:
label: mobile
mediaQuery: ''
weight: 2
multipliers:
- 1x
- 2x
fluffiness.narrow:
label: narrow
mediaQuery: 'all and (min-width: 560px) and (max-width: 850px)'
weight: 1
multipliers:
- 1x
- 2x
fluffiness.wide:
label: wide
mediaQuery: 'all and (min-width: 851px)'
weight: 0
multipliers:
- 1x
{# Will dump all vars available to the template #}
{{ dump() }}
{# Or dump a specific variable #}
{{ dump(specific.var) }}
At this point, don't use Devel to dump code unless you enable the Devel Kint sub module.
Kint will replace Krumo, and is usable inside of twig.
{# Will dump all vars available to the template #}
{{ kint() }}
{# Or dump a specific variable #}
{{ kint(specific.var) }}
twig.config
and change these values (should be in development.services.yml)
# Will be buried in the file, search for 'twig.config'
twig.config:
debug: true
settings.local.php
file with:
<?php
$settings['cache']['bins']['render'] = 'cache.backend.null';
$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';
Once you've turned on twig debug, you'll get this:

Add this to your settings.php of choice:
$conf['theme_debug'] = TRUE;
Using your theme's *.info.yml
# fluffiness.info.yml cont'd
libraries-override:
# Replace an entire library.
core/drupal.collapse: mytheme/collapse
# Replace an asset with another.
subtheme/library:
css:
theme:
css/layout.css: css/my-layout.css
# OR in fluffiness.info.yml
libraries-override:
# Remove an asset.
drupal/dialog:
css:
theme:
dialog.theme.css: false
# Remove an entire library.
core/modernizr: false
# fluffiness.info.yml cont'd
# Extend drupal.user: add assets from classy's user libraries.
libraries-extend:
core/drupal.user:
- classy/user1
- classy/user2
The render arrays of tomorrow!
Look for #type
in render arrays
<?php
$variables['link'] = array(
'#type' => 'link',
'#title' => 'Visit Lullabot',
'#url' => 'https://lullabot.com',
'#options' => array(
'class' => array(
'some-class',
),
),
);
Unfortunately, the easiest way I've found is to modify it in the preprocessor.
<?php
/**
* Implements template_preprocess_menu_local_task().
*/
function frontendrapport_preprocess_menu_local_task(&$variables) {
$variables['link']['#options']['attributes']['class'][] = 'admin-tabs__link';
}
theme_suggestions
They're all done in one place, no longer buried in preprocessor code!
hook_theme_suggestions_alter(array &$suggestions, array $variables, $hook)
hook_form_alter()
in your future...Instead of using hook_form_alter()
to add a bit of presentation to a form you can suggest a specific template for the form or any of it's fields!

No extra space needed
{# ↓ Don't need this space #}

{# Add or Remove Classes #}

{# Set any attribute #}

{# Remove any attribute #}

{# hasClass boolean! #}
{% if attribute.hasClass('myClass') %}
{# do stuff #}
{% endif %}

{%
set classes = [
'node--' ~ node.bundle|clean_class,
'node--my-custom-modifier',
]
%}

In D7 this would have been done in the preprocessor.
{# cool.html.twig #}
{% block foo %}
Default content
{% endblock %}
Meanwhile...
{# cool-er.html.twig #}
{% extends "cool.html.twig" %}
{% block foo %}
Alternate Content
{% endblock %}
{# cool-er.html.twig #}
{% extends "cool.html.twig" %}
{% block foo %}
{{ parent() }}
Alternate Content
{% endblock %}
Extends make a tonne of sense for custom Symfony applications...
But in Drupal land they might make code DRYer at the expense of being intuitive.
Drupal 8 Theme System: hook_theme() to Twig template - Cottser and Joel Pittet at DrupalCon LA events.drupal.org/losangeles2015/sessions/drupal-8-theme-system-hooktheme-twig-template
Drupal 8 Theming with <3 - Morten DK at DrupalCon LA events.drupal.org/losangeles2015/sessions/drupal-8-theming
Theming in Drupal 8 - Drupal.org drupal.org/coding-standards/css/architecture
Twig Official Documentation - twig.sensiolabs.org twig.sensiolabs.org/documentation
Drupal 8 Theming Fundamentals - John Hannah
lullabot.com/articles/drupal-8-theming-fundamentals-part-1


--- layout: default title: ICTE'17 - Conference Program meta: The conference program will allow you to plan out how to best utilize your time at ICTE. keyword: traffic engineering, transportation engineering, traffic engineering conference, transportation engineering conference, civil engineering conference, public transportation conference, transportation safety conference, public transportation, transportation safety ---
The Conference Program for the International Conference on Traffic Engineering (ICTE'17) is now available! Please follow the link below to access the program:


Insert Logo Here
All Your Tablature Needs
Making its way to our number 1 spot we have the classic song Sweet Child O' Mine by Guns N' Roses. The killer intro of this song continues to challenge newborn guitarists at trying their hands on one of the icons of guitar history, while the solo continues to captivate many great guitarists. Check out the tabs for this legendary song below!
These songs have also made their impacts on guitarists new and old


No dashboards are active for the current data set.
Probable causes:
- You haven’t written any data to your event files.
- TensorBoard can’t find your event files.
If you’re new to using TensorBoard, and want to find out how to add data and
set up your event files, check out the
README
and perhaps the
TensorBoard tutorial.
If you think TensorBoard is configured properly, please see
the section of the README devoted to missing data problems
and consider filing an issue on GitHub.
Last reload: {{lastUpdated | date: 'medium'}}


What's a CNN?
In deep learning, a convolutional neural network (CNN, or ConvNet) is a class of deep neural networks, most commonly applied to analyzing visual imagery. They are also known as shift invariant or space invariant artificial neural networks (SIANN), based on their shared-weights architecture and translation invariance characteristics.[1][2] They have applications in image and video recognition, recommender systems,[3] image classification, medical image analysis, and natural language processing.


like Platen? want to support the author?
donate
want to drop me a line?
email me at<EMAIL_ADDRESS>Platen is a Markdown Wordpress editor created by Alex Tatiyants. As the description suggests, you can use it to write posts using Markdown (GitHub flavored) and upload them to your WordPress blog.
Platen is designed to work offline.
To view the list of posts, click on the posts icon . Here you can edit, delete, and sort your posts. To create a new post, click on the new post icon .
To view images you've used in your posts, click on the images icon .
To use an image in your post, simply copy it from any application you like and paste it into your post. Note that you'll be prompted to specify the name of your image.
When uploading a post with images, Platen will automatically upload images to your blog's Media Library and update the image links.
You can set the excerpt, tags, and categories for your post. Click on the narrow strip below the edit window to bring up the metadata panel.
The first time you open the panel, the excerpt will be automatically populated from the first paragraph of your post. You can edit it by hand or refresh it by clicking the refresh icon .
To add mutliple tags or categories, separate them with a comma. You can also use tags and categories from your WordPress blog. To load them, just click on the WordPress sync icon .
To publish the post, click the "publish" button. The post will get published to WordPress next time you upload it.
Clicking platen's status indicator will show you the status of the most recent action. If everything is ok, you'll see a green light . In case of error, the light will turn red .
To see a running log of activity, click the logs icon .
Platen can be customized using the settings panel (to open, click the settings icon ). You can change the theme, customize fonts used in the editor, and configure your WordPress login credentials.


OutOfDate
Task definition for the outofdate
task. This is
an extension of uptodate
which allows multiple
targets and contains an embedded parallel
or
sequential
element. If any of the target file's
dates are earlier than any of the source file's dates, then
the specified parallel
or sequential
block is executed. The task may also contain mappers to map
source files to corresponding target files.
Parameters
|
Attribute |
Description |
Required |
|---|---|---|
|
property |
The name of the property to set with the contents of the "value" parameter if any of the target files are out of date |
No |
|
value |
The value to set the property specified by the "property" parameter to, if any of the target files are out of date |
No, defaults to "true" |
| force | Force outofdate ("true"/"false"). Default is "false". | No |
| verbose | Set verbose logging level for this task ("true"/"false"). Default is "false". | No |
|
outputsources |
The name of a property to set containing the sources that are newer that their corresponding targets. |
No |
|
outputtargets |
The name of a property to set containing the targets that are outofdate with respect to their corresponding sources. |
No |
|
alltargets |
The name of a property to set containing all the targets. This is useful for debugging mapper nested elements. |
No |
|
separator |
The separator used to separate the files in the properties above. If a filename contains the separator, double quotes will be placed around the filename. |
No, defaults to “ “ |
|
outputsourcespath |
The id of a path to create containing the source files that are outofdate. |
No |
|
outputtargetspath |
The id of a path to create containing the target files that need to be updated. |
No |
|
alltargetspath |
The id of a path to create containing all the target files. |
No |
Attributes specified as nested elements
sourcefiles
The list of files which are source files. This element is required.
targetfiles
The list of files which are target files.
Both of these nested elements are Path elements which are are used to select sets or lists of files or directories.
The sourcefiles
may contain no files. In this
case, outofdate
will check the existence of the
targetfiles
.
mapper
This is used to map source files to target files.
As well as the regular attributes for mapper
,
there is an extra attribute to specify the relative
directory of the sources.
| Attribute | Description | Required |
| dir |
The directory to the sources are relative to for the
mapper . Default is ${basedir} .
|
No |
There may be a number of mapper nested elements.
deletetargets
This is used to delete targets if the corresponding sources are outofdate.
| Attribute | Description | Required |
| all | Whether to delete all the targets ("true"/"false"). Defaults to "false". | No |
| quiet |
Do not display diagnostic messages when deleting targets
("true"/"false"). Defaults to false. When set to "true",
if a file or directory cannot be deleted, no error is
reported. This setting emulates the -f
option to the Unix rm command. Default is
"false". Setting this to "true" implies setting
failonerror to "false"
|
No |
| failonerror | Controls whether an error (such as a failure to delete a file) stops the build or is merely reported to the screen. Only relevant if quiet is "false". Default is "true". Controls whether a failure to delete a target stops the build or is merely reported to the console. | No |
Examples
The following example creates the file
${jrun.file}
if it is older than
build.xml
, or any file in
${lib.dir}
.
<outofdate> <sourcefiles> <pathelement path="build.xml"/> <fileset dir="${lib.dir}"/> </sourcefiles> <targetfiles path="${jrun.file}"/> <sequential> <mkdir dir="${build.bin.dir}"/> <echo file="${jrun.file}" message="java -cp ${jrun.path} $*"/> <chmod file="${jrun.file}" perm="ugo+rx"/> </sequential> </outofdate>
The following example check the generated files, MODULE.IDS,
acme_agent_mib.h, acme_agent_mib.cpp are older that
miblist.txt, or any file in ${mib.src}
, and if
so an embedded shellscript
is invoked to update
the files.
<outofdate> <sourcefiles> <pathelement path="${agent.src}/miblist.txt"/> <fileset dir="${mib.src}"/> </sourcefiles> <targetfiles> <pathelement path="${rep}/MODULE.IDS"/> <pathelement path="${gen-agent}/acme_agent_mib.h"/> <pathelement path="${gen-agent}/acme_agent_mib.cpp"/> </targetfiles> <sequential> <shellscript shell="bash" dir="${agent.src}"> classname=com.agentpp.agentgen.AgentGenConsole h1=${gen-agent}/acme_agent_mib.x ag() { java -cp ${lib.dir}/agentgen.jar $classname ${rep} $@ } ag initialize ag load miblist.txt ag generate ACME-AGENT-MIB h > $h1 (head -16 $h1; echo "using namespace Agentpp;"; tail +16 $h1) > ${gen-agent}/acme_agent_mib.h ag generate ACME-AGENT-MIB c >\ ${gen-agent}/acme_agent_mib.cpp </shellscript> </sequential> </outofdate>
The following example sets the project
manual.outofdate
if any of the .xml files are
newer than index.html, or if any of the .xml files are newer
than their corresponding .html file. A path identified by
sources.path
, is created which contains the
sources that fulfilled these conditions.
<outofdate property="manual.outofdate" outputsourcespath="sources.path"> <sourcefiles> <fileset dir="${src.manual}" includes="**/*.xml"/> </sourcefiles> <targetfiles path="${doc.manual}/index.html"/> <mapper type="glob" dir="${src.manual}" from="*.xml" to="${doc.manual}/*.html"/> </outofdate>
The following assumes that there is a program called gengrammar that takes a grammar file as an input and generates a .h and a .c file in the current directory.
<outofdate property="manual.outofdate" outputsources="grammar.sources"> <sourcefiles> <fileset dir="${src.grammar}" includes="**/*.y"/> </sourcefiles> <mapper type="glob" dir="${src.grammar}" from="*.y" to="${gen.grammar}/*.c"/> <mapper type="glob" dir="${src.grammar}" from="*.y" to="${gen.grammar}/*.h"/> <sequential> <shellscript shell="bash"> cd ${gen.grammar} for g in ${grammar.sources} do gengrammar $g done </shellscript> </sequential> </outofdate>


version 2.3 changes¶
UKCP grid plotting
0. Added support for the UKCP grid¶
Support has been added for the UKCP grid which is an instance of the tranveverse mercator projection.
cfp.mapset(proj='UKCP') will give a transverse mercator projection with the limts of lonmin = -11, lonmax = 3, latmin = 49 and latmax = 61.
Some examples of this and other pavailable projections have been added at http://ajheaps.github.io/cf-plot/projections.html
New cfp.setvars options affecting the grid plotting for the UKCP grid are:
Done
1. Additional projections added - OSGB, EuroPP and TransverseMercator¶
OSGB and EuroPP projections have been added.
Done
2. Colourmaps inadvertently removed¶
The cf-plot colourmaps directory was inadvertently removed.
Fixed
3. Bug with cyclindrical projection map xlabel and ylabel¶
A bug with labelling of x and y axes in the cylindrical (PlateCarree) projection has been fixed.
Fixed
4. Update land, ocean and lake colouring example¶
The land, ocean and lake colouring example in http://ajheaps.github.io/cf-plot/advanced.html was updated to use cartopy code internally in cf-plot
Fixed
5. Bug in blockfill on a map code¶
A bug in the blockfill code for maps was fixed. This bug assumed all blockfill plots were maps which is incorrect.
Fixed


Java Networking
API Specification
API Enhancements
Tutorials and Programmer's Guides
- Networking Overview
Overview of networking facilities in java.net
,
including Addressing, Making TCP Connections, Sending/Receiving
Datagram Packets via UDP, Locating/Identifying Network Resources,
and Security.
- HTTP client API. The following articles describe features of
the HTTP client API. (See java.net.HttpURLConnection
for an overview).
- URLConnection Caching API
Detailed overview, with code samples, of the new cache management
API.
- Cookie Management
Overview of how to deal with cookies, often used as an HTTP state
management mechanism, in Java SE 5.0.
- Http authentication
Overview of how to use HTTP authentication, which schemes and
protocols are supported, and the system properties that affect its
behavior.
- Persistent Connections
Overview of the HTTP persistent connections (aka keep alive
mechanisms), and the means to control them.
- Java Networking and Proxies
In depth exploration, with code samples, of proxy management Java
networking APIs including the newly introduced ProxySelector
mechanism.
- IPv6 Support
IPv6 support, including special IPv6 address types and dual-stack
node.
- Networking Properties
Descriptions of properties used by networking.
- Orderly Versus
Abortive Connection Release in Java
How to ensure orderly or graceful release of TCP connections in
Networking applications.
- Extendable Socket and
ServerSocket
The design, rationale, and how to do it.
- Socket Options
Support for popular BSD-style options in the java base
classes.
- Socket Exceptions
Subclasses of SocketException for finer granularity of handling
network errors.
- Sockets Direct Protocol, a trail in The Java Tutorials.


Reverse Ajax is the biggest new feature in DWR 2.0. It gives you the ability to asynchronously send data from a web-server to a browser.
The web was not designed to allow web servers to make connections to web browsers, so it can be tricky to get data to a browser in a timely manner. DWR supports 3 methods of pushing the data from to the browser: Piggyback, Polling and Comet.
Polling is the most obvious solution to the problem. This is where the browser makes a request of the server at regular and frequent intervals, say every 3 seconds, to see if there has been an update to the page.
Comet (AKA long lived http, server push) allows the server to start answering the browser's request for information very slowly, and to continue answering on a schedule dictated by the server. For more information about Comet, see the following:
With the piggyback option, the server, having an update to send, waits for the next time the browser makes a connection and then sends it's update along with the response that the browser was expecting.
Each method has some benefits. Polling is simple to implement, however it can easily overload a server. In contrast Comet is a huge hack, but is much easier on servers. Comet also scores by having very low latency - there is no need to wait for the next time the browser connects. Both polling and comet require extra network connectivity, so the really low overhead version is piggyback, but that can be very high latency.
The good news is that DWR allows you to use all three, with only configuration changes to switch implementation.
Since Comet connections almost never last forever; for various reasons it is common to reconnect on a semi-regular basis, Comet and Polling can be seen as extremes on a spectrum where there are 2 customizable parameters - the connected time and the disconnected time. DWR can manage these dynamically to help manage server load.
DWR can be configured to use Comet/Polling for times when extra load is acceptable, but faster response times are needed. This mode is called active Reverse Ajax.
This site also contains information about getting started with Reverse Ajax, on more advanced configuration, and how to interact with browsers from non-web threads.


 And if you’re writing tests, it gets too time-consuming. Just the number of boilerplate you need makes it a little annoying to use.
I was playing around with Spock as a way to make test writing in Java much more fun. The problem is, the project I am currently working on is using a lot of static classes.
I couldn’t find a lot of references about Spock natively being able to mock a static method for a Java class. But good thing is that we could use a Java Mocking Library. I decided to choose PowerMock simply because the project is already using it.
It took me a while to make Spock work with PowerMock though. I think that there’s not much references out there. There were a bunch of references saying that PowerMock couldn’t be used together with Spock. Luckily, I managed to stumble upon this repository which allowed me to successfully use PowerMock with Spock.
To use PowerMock, you need to add the following dependencies. The PowerMock :
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
<version>${powermock.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4-rule</artifactId>
<version>${powermock.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-classloading-xstream</artifactId>
<version>${powermock.version}</version>
<scope>test</scope>
</dependency>
As of writing, I used 1.5.4 version of PowerMock.
My final test class looks something like this:
import org.junit.Rule
import org.mockito.Mockito
import org.powermock.api.mockito.PowerMockito
import org.powermock.core.classloader.annotations.PrepareForTest
import org.powermock.modules.junit4.rule.PowerMockRule
import spock.lang.Specification
@PrepareForTest([StaticClass.class])
public class FlightFormSpec extends Specification {
@Rule PowerMockRule powerMockRule = new PowerMockRule();
def "When mocking static"() {
setup :
PowerMockito.mockStatic(StaticClass.class)
when :
Mockito.when(StaticClass.getStaticMethod()).thenReturn("Philippines!");
then :
StaticClass.getStaticMethod() == "Philippines!"
}
}
I hope that this article does help other people who were stuck at trying to mock static methods using Spock.


Home
This is the Great and Wonerfull:
Clicking Buttons Game!
In this game you'll be expected to click buttons,
To click buttons, FAST.
Are you ready?
START NOW WITH LEVEL 1!
Level 1


PRO
Lightweight and fast The library contains a set of 6 charts and is 11Kb gzipped, this makes its loading time and page impact low.
PRO
Clear documentation The chart.jsdocumentationis well organized and provides detailed information on using each feature.
PRO
Responsive charts The charts are fully responsive, meaning they resize based on the viewport width. |
PRO
Many different charts with lots of options Highcharts provides 20 different types ofchartsto choose from, and they make it simple tocombinechart types.
PRO
Excellent browser support Highcharts supports all modern browsers (including IE6 and up), iOS and Android.
PRO
Large and active community Highcharts has a large and supportive community, resulting in a fast response from bothstack overflowand the Highchartsforum.
PRO
Lots of good examples The site has a selection of good examples that will help you get started quickly.
PRO
Good documentation Very handy with examples and explanations.
PRO
Library to support Microsoft .NET Compatable with .NET framework 4+, can develop graphs from server side for ASP .NETand ASP .NET MVC applications.
PRO
Supports multiple Y axes Important for trend correlation, eg. comparing number of clicks to sale amounts. Not same scales / units. |
CON
Limited features Chart.js currently offers only 6 graph types, and lacks the flexibility offered by other options. For example, controlling the display of tooltips is fairly limited.
CON
Canvas based Canvas it bitmap based and shares the same issues as non-vector formats. |
CON
Commercial Highcharts is not free for commercial projects, with astarting priceof US$590 for Single Developer + Maintenance & Support
CON
The examples are not that great For instance, example's JsFiddle may get stalled when loading. |


Introduction
A t2dSceneObject is the base of all other objects in Torque 2D.
Static sprites, animated sprites, scrollers, etc, all derive from this
base. What this means is that every object you add to your scene will
have a shared set of properties. This doc covers the common properties.
Creation
Any object created within the Torque 2D editor is derived from a
t2dSceneObject. If you wish to create a blank scene object, navigate to
the Create panel. Find the Scene Object object in the Other panel.
Drag and drop this into the scene where you want it to exist. Once the
scene object has been placed, it can be resized like any other object
within the Scene View.
Properties
The following properties can be modified from the editor on every object in the level.
 Whether you want to turn a certain object
into an enemy, make it move back and forth, move to wherever the player
touches the screen or more - Behaviors allow you to very quickly add
code to an object without need to do a lot of extra work.
To select one of your behaviors, choose it from the Drop Down List and
press the green plus button. Your project must have behaviors associated
with it for this list to have anything in it.
Scene Object
- Position
- X - The position of this object upon the X axis in the scene.
- Y - The position of this object upon the X axis in the scene.
- Size
- Width - The width of this object.
- Height - The height of this object.
- Rotation - The rotation of this object, in degrees.
- Auto Rotation - The speed that this object will
automatically rotate when loaded into the scene. Positive will rotate
clockwise, negative will rotate counter clockwise.
- Flip Horizontal - If true, the object will be flipped horizontally.
- Flip Vertical - If true, the object will be flipped vertically.
- Sort Point
- X - The X position, relative to the object, that the Sort Point is located.
- Y - The Y position, relative to the object, that the Sort Point is located.
- Layer - Which depth layer that this object will exist upon.
- Group - Which object group that this object will be in.
- Back/Forward - Moves the object backwards and forwards
within the layer it is in. Use this if you have multiple objects in the
same layer and need to adjust their sorting.
- Visible - If true, the object is visible in the scene. If false, the object will not render.
- Lifetime - How long this object will exist.
Align
Modify how this object is aligned with the camera view.
- - Align to the left.
- - Align to the horizontal center.
- - Align to the right.
- - Align to the top.
- - Align the to vertical center.
- - Align to the bottom.
- - Match horizontal size to horizontal viewport size.
- - Match vertical size to vertical viewport size.
- - Match size of object to the viewport size.
Scripting
- Persist - Set this object to persist across all levels.
- Config Datablock - The configuration datablock to associate this sceneobject with.
- Name - Name the object for referencing in script.
- Class - Link this object to a Class.
- Super Class - Link this object to a Parent Class.
- Use Mouse Events - Enable mouse callbacks on the object.
Collision
- Send Collision - This object sends collision events.
- Receive Collision - This object receives collision events.
- Send Physics - This object sends physics events.
- Receive Physics - This object receives physics events.
- Callback - This object handles collision events in script
callback functions. If you wish to do more than the simple Collision
Response defined below you must check this box.
- Detection Mode - This selects which mode you wish to use to
detect collisions.
- FULL - This uses the entire sprite boundary to detect
collisions. Ok for rectangular objects.
- CIRCLE - This uses a circle that fits the widest dimension of
your sprite to detect collisions.
- POLYGON - (Default) This uses the collision polygon defined for
the sprite. You can edit this polygon by selecting "Edit this object's
collision polygon" from the object's Selection Editor Toolbar.
- CUSTOM - This is for generating custom C++ collision response
calls and is an advanced feature.
- Collision Response -
This selects the physical behaviour you wish your objects to have when they
collide.
- CLAMP - The object will stop when it collides with another
object.
- BOUNCE - (Default) The object will bounce off of the other
object in a collision.
- STICKY - The object will stick to the collision target.
- KILL - The object will be destroyed on collision.
- RIGID - The object's behavior is calculated using basic rigid
body physics.
- Collision Layers - This determines which scene layers to use
when detecting collisions. All are selected by default.
- Collision Groups - This determines which Scene Object groups to
use when detecting collisions. All are selected by default.
Physics
- Velocity - The speed in units per second that the object is
moving in the X and Y directions.
Positive values are to the right and down, respectively, while negative values
are to the left and up, respectively. Min and Max
values determine the minimum and maximum speeds for your object.
- Angular Velocity -
- Immovable - This object cannot be moved by physics events.
- Forward Only - Allows the object to only move in its forward
direction.
- Constant Force - Applies a steady force in the desired amount
in the X and Y directions. Could be used
to simulate wind force, etc.
- Gravitic - This object has a steady downward force applied to
it, as if it were affected by gravity.
- Force Scale - Scales the magnitude of all forces applied to the
object.
- Calculate Mass and Inertia - Uses the object's defined
attributes below for determining physics reactions in a more realistic fashion.
- Mass - The object's mass.
- Inertia - The object's inertial moment.
- Density - The object's density.
- Damping - Damping force applied to motion.
- Friction - Friction when moving against other objects.
- Restitution - Value used to decide when the object has come to
rest.
Mounting
- Rotation - Mount Rotation
- Auto Rotation - Automatic Mount Rotation
World Limits
- Limit Mode - The selected Limit Mode affects what occurs when the object touches the edges of the bounds of the World Limits.
- Off - The world limits are not even tested by the object.
- Null - The world limits are tested, but no action is
taken when the object reaches the limits; it just continues on its way.
This mode is used in combination with the Callback checkbox to script
your own responses to reaching the world limits.
- Clamp - The object slides along the world limits and will not move past them.
- Bounce - The object bounces off the world limits in a simple, pong-like way and doesn't include spin.
- Sticky - The object stops all movement when it touches the world limits.
- Kill - The object deletes itself when it touches the world limits.
- Min Bounds - The minimum X and Y position of the bounds
for the World Limit. This can be edited here, however is also modified
by using the visual World Limit Editor.
- Max Bounds - The maximum X and Y position of the bounds
for the World Limit. This can be edited here, however is also modified
by using the visual World Limit Editor.
- Callback - If true, will cause a script-response to
occur when the World Limits are reached. In your script, the callback
for this object should look like this to function:
function myObject::onWorldLimit(%this, %mode, %limit)
{
// %mode will be one of the following strings:
// off, null, bounce, clamp, sticky, kill
// %limit will be one of the following strings:
// top, bottom, left, right
}
Blending
- Enabled - Enable blending for this object
- Source Factor - Source blend factor for this object. These represent constants in the format (R, G, B, A).
- ZERO - The blend factor is (0, 0, 0, 0).
- ONE - The blend factor is (1, 1, 1, 1).
- DST_COLOR - The blend factor is (R, G, B, A) of the destination pixel applied as alpha to each channel.
- ONE_MINUS_DST_COLOR - The blend factor is (1 - R, 1 - G, 1 - B, 1 - A) of the destination pixel applied as alpha to each channel.
- SRC_ALPHA - The blend factor is (A, A, A, A) of the source pixel alpha channel.
- ONE_MINUS_SRC_ALPHA - The blend factor is (1 - R, 1 - G, 1 - B, 1 - A) of the source pixel applied as alpha to each channel.
- DST_ALPHA - The blend factor is (A, A, A, A) of the destination pixel alpha channel.
- ONE_MINUS_DST_ALPHA - The blend factor is (1 - A, 1 - A, 1 - A, 1 - A) of the destination pixel alpha channel.
- SRC_ALPHA_SATURATE - The blend factor is (f, f, f, 1) where f = min(Asource, 1 - Adestination).
- Destination Blend Factor - Destination blend factor for this object. These represent constants in the format (R, G, B, A).
- ZERO - The blend factor is (0, 0, 0, 0).
- ONE - The blend factor is (1, 1, 1, 1).
- SRC_COLOR - The blend factor is (R, G, B, A) of the source pixel applied as alpha to each channel.
- ONE_MINUS_SRC_COLOR - The blend factor is (1 - R, 1 - G, 1 - B, 1 - A) of the source pixel applied as alpha to each channel.
- SRC_ALPHA - The blend factor is (A, A, A, A) of the source pixel alpha channel.
- ONE_MINUS_SRC_ALPHA - The blend factor is (1 - R, 1 - G, 1 - B, 1 - A) of the source pixel applied as alpha to each channel.
- DST_ALPHA - The blend factor is (A, A, A, A) of the destination pixel alpha channel.
- ONE_MINUS_DST_ALPHA - The blend factor is (1 - A, 1 - A, 1 - A, 1 - A) of the destination pixel alpha channel.
- Blend Color
- Red - Red Blending Value
- Green - Green Blending Value
- Blue - Blue Blending Value
- Alpha - Alpha (Transparency) Blending Value
Dynamic Fields
Each entry specifies another Dynamic Field for the object. Their
functionality should be defined in the scripts that utilize the object.
Script Representation
new t2dSceneObject() {
canSaveDynamicFields = "1";
Position = "128.769 -110.190";
size = "128.000 128.000";
CollisionMaxIterations = "3";
AlphaTestValue = "-1";
mountID = "13";
};
Conclusion
All objects in Torque 2D derive from the t2dSceneObject class, allowing for powerful, object-oriented system design. |


--- layout: page-wide title: Newsletter Signup class: newsletter sitemap: priority: 0.5 changefreq: yearly lastmod: 2013-08-29T12:49:30-05:00 ---


Package contains some data and functions that are used in my forthcoming "R you ready?" book.
| Version: | 0.4 |
| Imports: | stats, graphics, ggplot2, stringr, car |
| Published: | 2015-12-03 |
| Author: | Mark Heckmann [aut, cre] |
| Maintainer: | Mark Heckmann <heckmann.mark at gmail.com> |
| License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
| NeedsCompilation: | no |
| Materials: | README NEWS |
| CRAN checks: | ryouready results |
| Reference manual: | ryouready.pdf |
| Package source: | ryouready_0.4.tar.gz |
| Windows binaries: | r-devel: ryouready_0.4.zip, r-release: ryouready_0.4.zip, r-oldrel: ryouready_0.4.zip |
| OS X binaries: | r-release: ryouready_0.4.tgz, r-oldrel: ryouready_0.4.tgz |
| Old sources: | ryouready archive |
Please use the canonical form https://CRAN.R-project.org/package=ryouready to link to this page.


Source code for tasks.balltask
# -*- coding: utf-8 -*-
"""
pyhpdm version of the balltask task
TODO: describe tasks
"""
import copy
import numpy as np
from tasks.taskTemplate import Task
from model.modelTemplate import Stimulus, Rewards
[docs]class Balltask(Task):
# TODO: Describe parameters
# each bag always contains balls of same color
def __init__(self, nbr_of_bags=6, bag_colors=['red', 'green', 'blue'], balls_per_bag=3):
super(Balltask, self).__init__()
# TODO: change nbr_of_bags default to 90
# check for counterbalance
assert(nbr_of_bags % len(bag_colors) == 0), "nbr of bags should be multiple of color count"
bag_sequence = np.repeat(bag_colors, nbr_of_bags / len(bag_colors))
bag_sequence = np.random.permutation(bag_sequence)
self.parameters["nbr_of_bags"] = nbr_of_bags
self.parameters["bag_colors"] = bag_colors
self.parameters["balls_per_bag"] = balls_per_bag
self.parameters["bag_sequence"] = list(bag_sequence)
self.parameters["nbr_of_trials"] = nbr_of_bags * balls_per_bag
# variables internal to a task instance
self.trial = -1
self.bag = -1
self.action = None
self.ballcolor = None
# self.reward = None
self.action_history = [-1] * self.parameters['nbr_of_trials']
# self.reward_history = [-1] * self.parameters['nbr_of_trials']
self.ball_history = [""] * self.parameters['nbr_of_trials']
def __next__(self):
"""
Produces the next stimulus for the iterator
Returns
-------
stimulus : None
nextValidActions : (0, 1, 2) representing red, green, blue in default case
but can be many colors. it's assumed this always goes in same order
left to right as bag_colors parameter
Raises
------
StopIteration
"""
self.trial += 1
if self.trial == self.parameters['nbr_of_trials']:
raise StopIteration
# on first trial, bag is 0, go to next bag when all balls in bag are shown
if self.trial == 0:
self.bag = 0
elif self.trial % self.parameters['balls_per_bag'] == 0:
self.bag += 1
next_stimulus = self.parameters['bag_sequence'][self.bag]
self.ballcolor = next_stimulus
valid_actions = np.arange(0, len(self.parameters['bag_colors']))
next_valid_actions = tuple(valid_actions) # (0, 1, 2) for RGB
# next_valid_actions = tuple(self.parameters['bag_colors'])
return next_stimulus, next_valid_actions
[docs] def receiveAction(self, action):
"""
Receives the next action from the participant
Parameters
----------
action : int or string
The action taken by the model
"""
self.action = action
[docs] def feedback(self):
"""
Responds to the action from the participant
balltask has no rewards so we return None
"""
self.storeState()
return None
[docs] def proceed(self):
"""
Updates the task after feedback
"""
pass
[docs] def returnTaskState(self):
"""
Returns all the relevant data for this task run
Returns
-------
history : dictionary
A dictionary containing the class parameters as well as the other useful data
"""
history = self.standardResultOutput()
history['participant_actions'] = copy.copy(self.action_history)
history['ballcolor'] = copy.copy(self.ball_history)
return history
[docs] def storeState(self):
""" Stores the state of all the important variables so that they can be
output later
"""
self.action_history[self.trial] = self.action
self.ball_history[self.trial] = self.ballcolor
[docs]class StimulusBalltaskSimple(Stimulus):
"""
Processes the stimulus cues for models expecting just the event
"""
# TODO! change below to work for more colors than 3
[docs] def processStimulus(self, observation):
"""
Processes the decks stimuli for models expecting just the event
Returns
-------
stimuliPresent : int or list of int
The elements present of the stimulus
stimuliActivity : float or list of float
The activity of each of the elements
"""
if observation == "red":
return (1, 0, 0), (1, 0, 0)
if observation == "green":
return (0, 1, 0), (0, 1, 0)
if observation == "blue":
return (0, 0, 1), (0, 0, 1)
[docs]class RewardBalltaskDirect(Rewards):
"""
Processes the reward for models expecting just the reward
"""
[docs] def processFeedback(self, feedback, lastAction, stimuli):
"""
Returns
-------
modelFeedback:
"""
return feedback


env
Show the environment or run a program in a modified environment.
More information: home page
- Show the environment:
env
- Run a program. Often used in scripts after the shebang (#!) for looking up the path to the program:
env program
- Clear the environment and run a program:
env -i program
- Remove variable from the environment and run a program:
env -u variable program
- Set a variable and run a program:
env variable=value program
- Set multiple variables and run a program:
env variable1=value variable2=value variable3=value program


Configure Luntbuild connection(s) by clicking on (or select Connections... from view menu). The Connection Dialog will appear. Enter connection name, Luntbuild URL, Luntbuild user and password, view refresh rate and Luntbuild version.


| Author | Andy Brooker, Copyright © 2008..2011, all rights reserved. |
| Adapted-by | (Joep Suijs) |
| Compiler | >=2.4m |
Programme to read and control the PCF8563 real time IC IC address is 0xA2 PCF8563 read sequence 1. Send a START condition and the slave address for write (A2h). 2. Set the address pointer to 2 (VL_seconds) by sending 02h. 3. Send a RESTART condition or STOP followed by START. 4. Send the slave address for read (A3h). 5. Read VL_seconds. 02 6. Read Minutes. 03 7. Read Hours. 04 8. Read Days. 05 9. Read Weekdays. 06 10. Read Century_months. 07 11. Read Years. 08 12. Send a STOP condition. To use set: const byte pcf8563_address = 0xA2 include rtc_pcf8563
No dependency found
var bit r
No documentation found
pcf8563_register_write(byte in ic_address, byte in reg, byte in data)
procedure to write a register - send data as decimal
| 16f877a | 16f877a_rtc_pcf8563.jal |


InterNot!


CC Queue
0
Packaging Queue
0
Shipping Queue
0
Manage Delivery
0
Collection Queue
0
Seach Order
Vendor Option
Logout
Order Id/ Group Id
Email-ID
Start Date
End Date
Choose Option
Order Creation Time
Order Queue Time
Clear Filter
Search
City
Phone Number
No. of Result Per Page
Order Ageing Filter:
Exact Time
Business Hours
< 2 hours
2-8 hours
> 8 hours
> 24 hours
No. Of Orders in Queue
11
11
11
11
Prev
Next
Select all
Download Excel
×
Order description
S. No
Store Name
Group ID
Order ID
Order Date and Time
Address
Pincode
Bill Number
Coupon Discount
Final Payable
Order Status
Delivery partners
FE Name
FE Number
×
Fill FE Details
Submit


I am a Research Engineer in the Department of Radiation Physics at the MD Anderson Cancer Center. My current research is on decoding tumor phenotype with statistical methods and Radiomics approach such as the extraction and analysis of advanced quantitative imaging features obtained from CT, PET or MRI.
Decoding tumor phenotype with machine learning approach (Radiomics) such as the extraction and analysis of advanced quantitative imaging features obtained from CT, PET or MRI
Medical image analysis, Big Data, Data mining, Machine learning, Deep learning, Radiomics, Genomics in Clinical research
Apart from being a research scientist, I enjoy most of my time being outdoors. During the winter time in Houston, I enjoy mountain biking, free climbing, and kendo.
When forced indoors, I follow a number of sci-fi and fantasy genre movies and television shows, I am an aspiring chef, and I spend a large amount of my free time exploring the latest technology advancements in the front-end web development world.


Here is the demo, Click the button ( take care of popup blocker of your browser ) and enter your name in child window opened. Then once closed it will be available at parent window.
Your Name
Click here to open the child window
Return to tutorial on Data shifting from Child to Parent window


Event Details
Team Size: Teams of 2 to 3.
Venue : will be updated shortly.
Time : will be updated shortly.
Prize Money :Winners:₹6000
Runners-up:₹4000
Registration fee:₹50 per team.
Epsilon 2K17
Event Details
Team Size: Teams of 2 to 3.
Venue : will be updated shortly.
Time : will be updated shortly.
Prize Money :Winners:₹6000
Runners-up:₹4000
Registration fee:₹50 per team.
For more info, contact:
Aditi:7024131003
Shivam:7406075642


debug Class
A simple object to show some debug items
Methods
showDebugInfo
(
-
game
-
pad
Shows some debug info such as player position and the gamepad state
Parameters:
-
game
GameThe game instance to show info for
-
pad
BooleanWhether or not to show gamepad info (defaults to true)
showFpsCounter
()
Shows the FPS Counter
update
()
private
Called internally by the Game instance
Properties
fpsStyle
Unknown
The styles applied to the fps box after it is created


The perfect marriage between ArcGIS and Excel.
Base
Show Data
Cluster
Heatmap
Enrich
Chart
Clear
Find more samples online...


Buckets the output by the given columns.
Buckets the output by the given columns. If specified, the output is laid out on the file system similar to Hive's bucketing scheme.
This is applicable for all file-based data sources (e.g. Parquet, JSON) starting with Spark 2.1.0.
2.0
Saves the content of the DataFrame
in CSV format at the specified path.
Saves the content of the DataFrame
in CSV format at the specified path.
This is equivalent to:
format("csv").save(path)
You can set the following CSV-specific option(s) for writing CSV files:
sep
(default ,
): sets a single character as a separator for each
field and value.quote
(default "
): sets a single character used for escaping quoted values where
the separator can be part of the value. If an empty string is set, it uses u0000
(null character).escape
(default \
): sets a single character used for escaping quotes inside
an already quoted value.charToEscapeQuoteEscaping
(default escape
or \0
): sets a single character used for
escaping the escape for the quote character. The default value is escape character when escape
and quote characters are different, \0
otherwise.escapeQuotes
(default true
): a flag indicating whether values containing
quotes should always be enclosed in quotes. Default is to escape all values containing
a quote character.quoteAll
(default false
): a flag indicating whether all values should always be
enclosed in quotes. Default is to only escape values containing a quote character.header
(default false
): writes the names of columns as the first line.nullValue
(default empty string): sets the string representation of a null value.compression
(default null
): compression codec to use when saving to file. This can be
one of the known case-insensitive shorten names (none
, bzip2
, gzip
, lz4
,
snappy
and deflate
).dateFormat
(default yyyy-MM-dd
): sets the string that indicates a date format.
Custom date formats follow the formats at java.text.SimpleDateFormat
. This applies to
date type.timestampFormat
(default yyyy-MM-dd'T'HH:mm:ss.SSSXXX
): sets the string that
indicates a timestamp format. Custom date formats follow the formats at
java.text.SimpleDateFormat
. This applies to timestamp type.ignoreLeadingWhiteSpace
(default true
): a flag indicating whether or not leading
whitespaces from values being written should be skipped.ignoreTrailingWhiteSpace
(default true
): a flag indicating defines whether or not
trailing whitespaces from values being written should be skipped.2.0.0
Specifies the underlying output data source.
Specifies the underlying output data source. Built-in options include "parquet", "json", etc.
1.4.0
Inserts the content of the DataFrame
to the specified table.
Inserts the content of the DataFrame
to the specified table. It requires that
the schema of the DataFrame
is the same as the schema of the table.
1.4.0
Unlike saveAsTable
, insertInto
ignores the column names and just uses position-based
resolution. For example:
scala> Seq((1, 2)).toDF("i", "j").write.mode("overwrite").saveAsTable("t1") scala> Seq((3, 4)).toDF("j", "i").write.insertInto("t1") scala> Seq((5, 6)).toDF("a", "b").write.insertInto("t1") scala> sql("select * from t1").show +---+---+ | i| j| +---+---+ | 5| 6| | 3| 4| | 1| 2| +---+---+
Because it inserts data to an existing table, format or options will be ignored.
Saves the content of the DataFrame
to an external database table via JDBC.
Saves the content of the DataFrame
to an external database table via JDBC. In the case the
table already exists in the external database, behavior of this function depends on the
save mode, specified by the mode
function (default to throwing an exception).
Don't create too many partitions in parallel on a large cluster; otherwise Spark might crash your external database systems.
You can set the following JDBC-specific option(s) for storing JDBC:
truncate
(default false
): use TRUNCATE TABLE
instead of DROP TABLE
.In case of failures, users should turn off truncate
option to use DROP TABLE
again. Also,
due to the different behavior of TRUNCATE TABLE
among DBMS, it's not always safe to use this.
MySQLDialect, DB2Dialect, MsSqlServerDialect, DerbyDialect, and OracleDialect supports this
while PostgresDialect and default JDBCDirect doesn't. For unknown and unsupported JDBCDirect,
the user option truncate
is ignored.
JDBC database url of the form jdbc:subprotocol:subname
Name of the table in the external database.
JDBC database connection arguments, a list of arbitrary string tag/value. Normally at least a "user" and "password" property should be included. "batchsize" can be used to control the number of rows per insert. "isolationLevel" can be one of "NONE", "READ_COMMITTED", "READ_UNCOMMITTED", "REPEATABLE_READ", or "SERIALIZABLE", corresponding to standard transaction isolation levels defined by JDBC's Connection object, with default of "READ_UNCOMMITTED".
1.4.0
Saves the content of the DataFrame
in JSON format (
JSON Lines text format or newline-delimited JSON) at the specified path.
Saves the content of the DataFrame
in JSON format (
JSON Lines text format or newline-delimited JSON) at the specified path.
This is equivalent to:
format("json").save(path)
You can set the following JSON-specific option(s) for writing JSON files:
compression
(default null
): compression codec to use when saving to file. This can be
one of the known case-insensitive shorten names (none
, bzip2
, gzip
, lz4
,
snappy
and deflate
).dateFormat
(default yyyy-MM-dd
): sets the string that indicates a date format.
Custom date formats follow the formats at java.text.SimpleDateFormat
. This applies to
date type.timestampFormat
(default yyyy-MM-dd'T'HH:mm:ss.SSSXXX
): sets the string that
indicates a timestamp format. Custom date formats follow the formats at
java.text.SimpleDateFormat
. This applies to timestamp type.1.4.0
Specifies the behavior when data or table already exists.
Specifies the behavior when data or table already exists. Options include:
overwrite
: overwrite the existing data.append
: append the data.ignore
: ignore the operation (i.e. no-op).error
or errorifexists
: default option, throw an exception at runtime.
1.4.0
Specifies the behavior when data or table already exists.
Specifies the behavior when data or table already exists. Options include:
SaveMode.Overwrite
: overwrite the existing data.SaveMode.Append
: append the data.SaveMode.Ignore
: ignore the operation (i.e. no-op).SaveMode.ErrorIfExists
: default option, throw an exception at runtime.
1.4.0
Adds an output option for the underlying data source.
Adds an output option for the underlying data source.
2.0.0
Adds an output option for the underlying data source.
Adds an output option for the underlying data source.
2.0.0
Adds an output option for the underlying data source.
Adds an output option for the underlying data source.
2.0.0
Adds an output option for the underlying data source.
Adds an output option for the underlying data source.
You can set the following option(s):
timeZone
(default session local timezone): sets the string that indicates a timezone
to be used to format timestamps in the JSON/CSV datasources or partition values.1.4.0
Adds output options for the underlying data source.
Adds output options for the underlying data source.
You can set the following option(s):
timeZone
(default session local timezone): sets the string that indicates a timezone
to be used to format timestamps in the JSON/CSV datasources or partition values.1.4.0
(Scala-specific) Adds output options for the underlying data source.
(Scala-specific) Adds output options for the underlying data source.
You can set the following option(s):
timeZone
(default session local timezone): sets the string that indicates a timezone
to be used to format timestamps in the JSON/CSV datasources or partition values.1.4.0
Saves the content of the DataFrame
in ORC format at the specified path.
Saves the content of the DataFrame
in ORC format at the specified path.
This is equivalent to:
format("orc").save(path)
You can set the following ORC-specific option(s) for writing ORC files:
compression
(default is the value specified in spark.sql.orc.compression.codec
):
compression codec to use when saving to file. This can be one of the known case-insensitive
shorten names(none
, snappy
, zlib
, and lzo
). This will override
orc.compress
and spark.sql.orc.compression.codec
. If orc.compress
is given,
it overrides spark.sql.orc.compression.codec
.1.5.0
Currently, this method can only be used after enabling Hive support
Saves the content of the DataFrame
in Parquet format at the specified path.
Saves the content of the DataFrame
in Parquet format at the specified path.
This is equivalent to:
format("parquet").save(path)
You can set the following Parquet-specific option(s) for writing Parquet files:
compression
(default is the value specified in spark.sql.parquet.compression.codec
):
compression codec to use when saving to file. This can be one of the known case-insensitive
shorten names(none
, snappy
, gzip
, and lzo
). This will override
spark.sql.parquet.compression.codec
.1.4.0
Partitions the output by the given columns on the file system.
Partitions the output by the given columns on the file system. If specified, the output is laid out on the file system similar to Hive's partitioning scheme. As an example, when we partition a dataset by year and then month, the directory layout would look like:
Partitioning is one of the most widely used techniques to optimize physical data layout. It provides a coarse-grained index for skipping unnecessary data reads when queries have predicates on the partitioned columns. In order for partitioning to work well, the number of distinct values in each column should typically be less than tens of thousands.
This is applicable for all file-based data sources (e.g. Parquet, JSON) starting with Spark 2.1.0.
1.4.0
Saves the content of the DataFrame
as the specified table.
Saves the content of the DataFrame
as the specified table.
1.4.0
Saves the content of the DataFrame
at the specified path.
Saves the content of the DataFrame
at the specified path.
1.4.0
Saves the content of the DataFrame
as the specified table.
Saves the content of the DataFrame
as the specified table.
In the case the table already exists, behavior of this function depends on the
save mode, specified by the mode
function (default to throwing an exception).
When mode
is Overwrite
, the schema of the DataFrame
does not need to be
the same as that of the existing table.
When mode
is Append
, if there is an existing table, we will use the format and options of
the existing table. The column order in the schema of the DataFrame
doesn't need to be same
as that of the existing table. Unlike insertInto
, saveAsTable
will use the column names to
find the correct column positions. For example:
scala> Seq((1, 2)).toDF("i", "j").write.mode("overwrite").saveAsTable("t1") scala> Seq((3, 4)).toDF("j", "i").write.mode("append").saveAsTable("t1") scala> sql("select * from t1").show +---+---+ | i| j| +---+---+ | 1| 2| | 4| 3| +---+---+
In this method, save mode is used to determine the behavior if the data source table exists in Spark catalog. We will always overwrite the underlying data of data source (e.g. a table in JDBC data source) if the table doesn't exist in Spark catalog, and will always append to the underlying data of data source if the table already exists.
When the DataFrame is created from a non-partitioned HadoopFsRelation
with a single input
path, and the data source provider can be mapped to an existing Hive builtin SerDe (i.e. ORC
and Parquet), the table is persisted in a Hive compatible format, which means other systems
like Hive will be able to read this table. Otherwise, the table is persisted in a Spark SQL
specific format.
1.4.0
Sorts the output in each bucket by the given columns.
Sorts the output in each bucket by the given columns.
This is applicable for all file-based data sources (e.g. Parquet, JSON) starting with Spark 2.1.0.
2.0
Saves the content of the DataFrame
in a text file at the specified path.
Saves the content of the DataFrame
in a text file at the specified path.
The DataFrame must have only one column that is of string type.
Each row becomes a new line in the output file. For example:
// Scala: df.write.text("/path/to/output") // Java: df.write().text("/path/to/output")
You can set the following option(s) for writing text files:
compression
(default null
): compression codec to use when saving to file. This can be
one of the known case-insensitive shorten names (none
, bzip2
, gzip
, lz4
,
snappy
and deflate
).1.6.0
Interface used to write a Dataset to external storage systems (e.g. file systems, key-value stores, etc). Use
Dataset.write
to access this.1.4.0


The Gallatin Valley
Bicycle Club Presents:
Saturday, July 31st,
2004
Race
sanctioned by USAC, USCF permit pending.
All
USCF rules apply. All racers must wear helmets while racing, warming-up and
cooling-down. Junior gearing restrictions will be enforced.
This
race is only open to Montana USAC/USCF racers, and points will count towards Subaru Cup standings. Riders who are
not Montana USAC/USCF members will be timed, but not awarded monetary prizes. NOTE!! One-day
licensee's cannot compete for the title of State TT Champion nor receive any of
the medals!
Pre-registration will be Friday, July 30th
at Rocky Mountain Roasting Company at
777 East Main, 7 to 9 p.m. There will be special prize drawings open only to
those who pre-register Friday evening.
Race
day registration, staging and sign-in will be from 9 to 9:45 a.m. Saturday, July 31st
at the Veteran’s Park in Wilsall, Montana.
Race
Location:
Wilsall, Montana.
From
Bozeman: drive north out Bridger Canyon (Hwy 86) to the intersection of Hwy 86
and Hwy 89, north of Wilsall. Turn right on Hwy 89 and proceed ¾ mile into
Wilsall. Follow the signs 4 blocks to the Veteran’s Park staging area on the
west side of the street. Approximately a 45 minute drive from downtown Bozeman.
Do not drive right up to the staging area – park along Hwy 89 (main drag
through town).
From
Livingston: drive north on Hwy 89 to Wilsall, look for the Veteran’s Park
staging area on your left, about half way through town. Do not drive right up
to the staging area – park along Hwy 89 (main drag through town).
The
course: is
a 40km out-and-back time trial running north on Hwy. 89, starting and finishing
at the Shields River overlook at the north end of Wilsall, MT.
Pavement
is in good condition, with a wide, generally clear shoulder, and a few rollers.
The highway will be open to traffic, and racers are required to obey all
traffic laws at all times – this includes, but is not limited to: staying to
the right except to pass other riders, and yielding to vehicular traffic at the
turn-around.
Race
Schedule:
9
to 9:45 a.m..
Race-day registration.
9:50
a.m..
Pre-race meeting.
10:15
a.m.. Race
begins. Depending on the number of entrants, we will have either 30 second or 1
minute intervals between riders. Starting order follows:
1)
Women
junior
2)
Women
3,4
3)
Men
junior
4)
Men
masters B
5)
Men
Cat. 4/5
6)
Women
1,2
7)
Men
masters A
8)
Men
3
9)
Men
1,2
Prizes:
In
additional to the payouts listed below, there will be a prize of $100 each
for the fastest man and woman, and $50 each for the fastest male and female
juniors.
Minimum
Payouts:
|
Category |
1st Place |
2nd Place |
3rd Place |
|
Men 1,2 |
50 |
30 |
20 |
|
Men 3 |
40 |
25 |
15 |
|
Men 4,5 |
30 |
20 |
10 |
|
Men Master A |
40 |
25 |
15 |
|
Men Master B |
30 |
20 |
10 |
|
Women 1,2 |
50 |
30 |
20 |
|
Women 3,4 |
30 |
20 |
10 |
|
Men Junior |
30 |
20 |
10 |
|
Women Junior |
30 |
20 |
10 |
Additional
prizes of merchandise will be distributed through drawings at the end of the
race, featuring products from Hammer/E-Caps, Rocky Mountain Roasting Comapany,
and SigmaSport. All racers will be eligible for these prizes!
Fees: $20 race entry, includes
USCF insurance surcharge. USCF annual or one-day license required and available
for purchase on-site. NOTE!! One-day licensee's cannot compete for the title of State TT
Champion nor receive any of the medals!
MBRA memberships and permanent numbers also available upon registration. Racers without permanent MBRA numbers must purchase a one-day number for $2.
Questions:
John
Winnie<EMAIL_ADDRESS>or
Matt Lavin: mlavin@montana.edu


This site is obviously not php.net and neither affiliated with it. It's a site to demonstrate a IDN Homograph Attack which is possible due to unicode character support for many TLDs using the correct language tag.
This site uses the registration of the punycoded URL http://xn--p1aa28a.net which is resolved to the cyrillic domain name рһр.net which appears like the Latin C domain name php.net.
This is a Timo Furrer project, built with good intentions.


TinyURI
Stats
Generate a short URI and a QR for your webpage
Short URI
Generate custom QR
Your shortened URI code
After "http://tinyuri.xyz/uri/".
QR Width
Must be a integer number o left empty for default.
QR Height
Must be a integer number o left empty for default.
Generate QR
Check availability of your URI
Your shortened URI code
After "http://tinyuri.xyz/".
Check
Edit the name of your shortened URI
Your shortened URI code
After "http://tinyuri.xyz/".
HashPass of your URI
The HashPass is a private key given to you only at the creation of a new shortened URI.
New name for the shortened URI
The name that will appear at the end of the URI. Example: http://tinyuri.xyz/myCoolNewName.
Apply changes
Delete your shortened URI forever
Your shortened URI code
Starts with "http://tinyuri.xyz/uri/".
HashPass of your URI
The HashPass is a private key given to you only at the creation of a new shortened URI.
Delete FOREVER your URI


Specifies the bulk of the classes in use. The main entry points are SimpleReader and SimpleWriter
SimpleReader
SimpleWriter


--- layout: page title: Get Involved description: Ways to get involved js_includes: - getInvolved.js ---
The places we recreate often feel naturally beautiful and abundant, but it acutally takes a lot of work to try and keep them that way. Below is a list of organizations with ways to give back time, money, and more so that the beauty and abundance is still there next time you want to visit your favorite treasure.


iCheckMovies Comparer
First export the csv files of the people you want to compare checks with from the official iCheckMovies website. Then select these files using the button below. The filename will be used as a title of the users column, so you might want to change the default filename.


THE WIND IN THE WILLOWS A film review by Steve Rhodes Copyright 1998 Steve Rhodes
RATING (0 TO ****): ***
THE WIND IN THE WILLOWS, the new live-action version by the Monty Python gang, is playing now in very limited theatrical distribution in the United States. If it comes to a city near you, as it is now in our area, you'd better see it immediately or it'll be history before you can blink an eye. And being easily one of the most unusual family films in years, you don't want to let this one slip by you. Even if you haven't got any kids - the adults outnumbered the children in our Saturday matinee audience by 10 to 1 - you don't want to miss out on this little delight.
Writer and director Terry Jones sticks fairly close to the story and the cadence of the original Kenneth Grahame novel. And his players approach their parts almost reverentially as befits such a classic. It is not until the movie's midway point, during Toad's trial, that the actors begin to really cut loose with the comedy. Up until then they keep the humor on the subtle side, which is fine since it is in its delicacy and beauty that the film is most effective.
As filmed by CON AIR's cinematographer David Tattersall, the radiant picture has a golden autumnal look. Every one of the daylight scenes appear to have been filmed when the sun was low on the horizon, basking everything in a loving glow.
THE MAN IN THE IRON MASK's costume designer, James Acheson, came up both with the magical costumes that carefully evoke each actor's animal and with the sets worthy of a Disney theme park attraction. (In fact, those who have been to Disneyland will cherish Mr. Toad's Wild Ride even more after seeing it acted out in the movie.) The evil weasels, for example, have long orange coats and hair, dark elliptical sunglasses, and devilish little mustaches. Toady, played with wild abandon by the film's director and writer Terry Jones, has an overstuffed costume, long narrow shoes, and pond green make-up. And so forth through all of the other animals.
Steve Coogan plays a humble Mole, who starts the story off when the nefarious weasels crush his underground home. Eric Idle is Ratty, whose whiskers fold like an accordion when danger lurks. Nicol Williamson is the take-charge Badger. Antony Sher plays wicked Chief Weasel. John Cleese shows up briefly as Mr. Toad's lawyer at the trial, which is the movie's best scene. (He condemns his own client's wild driving so effectively that all the prosecution wants to do is shake his finger at Toad and go "tsk, tsk, tsk!") Stephen Fry plays the judge in the kangaroo - actually rabbit except for one weasel impersonating a rabbit - court. The judge wants to hang Toady for his reckless driving but settles for 20 years, eventually raised to 100 when Toad goes berserk in court. And finally, Michael Palin is the talking sun.
The basic plot has the weasels conniving to take over Toad's massive ancestral home, the famous Toad Hall. Toady, a classic wastrel, chases one fad after another. His current infatuation is with motor cars, and, being a miserable driver, this becomes quite an expensive hobby for him. Although played fairly straight, the show's outlandish touches, such as Toad's long tongue that he uses to catch flies and even to help him escape, are done sparingly.
The movie has not only dialog but a bit of singing as well. The whole story is developed in such an offbeat and methodical manner that many people, especially kids, may not know quite what to make of it. If they've read the book, it probably helps, but those looking for the traditional movie-going experience may be mystified by this one. For those with an open mind and heart, the picture is a treasure worth savoring. Don't miss this delicate mixture of tenderness and whimsy. If you wait, it'll be gone as fast as Toad in one of his motor cars.
THE WIND IN THE WILLOWS runs just 1:20. It is rated PG for fanciful villainy and would be fine for all ages.
My son Jeffrey, almost 9, and his friend George, age 7, thought the film was good, especially the scene in which the heroes dance on the table while punching the weasels. Jeffrey's friend Jessica, almost 9, thought the picture was okay, and said that her favorite part was when Toad dressed up as a woman to escape.
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


#include <uwinterference.h>
Definition at line 135 of file uwinterference.h.
◆ uwinterference()
| uwinterference::uwinterference |
( |
| ) |
|
◆ ~uwinterference()
| uwinterference::~uwinterference |
( |
| ) |
|
|
virtual |
◆ addToInterference() [1/2]
| void uwinterference::addToInterference |
( |
Packet * |
p | ) |
|
|
virtual |
Add a packet to the interference calculation.
- Parameters
-
| p | Pointer to the interferer packet |
Definition at line 88 of file uwinterference.cpp.
◆ addToInterference() [2/2]
| void uwinterference::addToInterference |
( |
double |
pw, |
|
|
PKT_TYPE |
tp |
|
) |
| |
|
virtual |
Add a packet to the interference calculation.
- Parameters
-
| pw | Received power of the current packet |
| type | type of the packet (DATA or CTRL) |
Definition at line 108 of file uwinterference.cpp.
◆ getCounters() [1/2]
| counter uwinterference::getCounters |
( |
Packet * |
p | ) |
|
|
virtual |
Returns the counters of collisions.
- Parameters
-
| p | Pointer of the packet for which the counters are needed |
- Returns
- counter variable that represent the counters of the interference
Definition at line 321 of file uwinterference.cpp.
◆ getCounters() [2/2]
| counter uwinterference::getCounters |
( |
double |
starttime, |
|
|
double |
duration, |
|
|
PKT_TYPE |
tp |
|
) |
| |
|
virtual |
Returns the counters of collisions.
- Parameters
-
| starttime | timestamp of the start of reception phase |
| duration | duration of the reception phase |
| type | type of the packet (DATA or CTRL) |
- Returns
- counter variable that represent the counters of the interference
Definition at line 335 of file uwinterference.cpp.
◆ getCurrentTotalPower()
| double uwinterference::getCurrentTotalPower |
( |
| ) |
|
|
virtual |
◆ getEndRxTime()
| double uwinterference::getEndRxTime |
( |
| ) |
|
|
inline |
Get the timestamp of the end of reception phase.
- Returns
- timestamp of the start of reception phase
Definition at line 222 of file uwinterference.h.
◆ getInitialInterferenceTime()
| double uwinterference::getInitialInterferenceTime |
( |
| ) |
|
|
inline |
Get the timestamp of the begin of reception of the first interferer packet.
- Returns
- timestamp of the begin of reception of the first interferer packet
Definition at line 233 of file uwinterference.h.
◆ getInterferencePower() [1/2]
| double uwinterference::getInterferencePower |
( |
Packet * |
p | ) |
|
|
virtual |
Compute the average interference power for the given packet.
- Parameters
-
| p | Pointer to the interferer packet |
- Returns
- average interference power
Definition at line 211 of file uwinterference.cpp.
◆ getInterferencePower() [2/2]
| double uwinterference::getInterferencePower |
( |
double |
power, |
|
|
double |
starttime, |
|
|
double |
duration |
|
) |
| |
|
virtual |
Compute the average interference power for the given packet.
- Parameters
-
| pw | Received power of the current packet |
| starttime | timestamp of the start of reception phase |
| duration | duration of the reception phase |
- Returns
- average interference power
Definition at line 224 of file uwinterference.cpp.
◆ getStartRxTime()
| double uwinterference::getStartRxTime |
( |
| ) |
|
|
inline |
Get the timestamp of the start of reception phase.
- Returns
- timestamp of the start of reception phase
Definition at line 213 of file uwinterference.h.
◆ getTimeOverlap() [1/2]
| double uwinterference::getTimeOverlap |
( |
Packet * |
p | ) |
|
|
virtual |
Returns the percentage of overlap between current packet and interference packets.
- Parameters
-
| p | Pointer of the packet for which the overlap is needed |
- Returns
- percantage of overlap
Definition at line 284 of file uwinterference.cpp.
◆ getTimeOverlap() [2/2]
| double uwinterference::getTimeOverlap |
( |
double |
starttime, |
|
|
double |
duration |
|
) |
| |
|
virtual |
Returns the percentage of overlap between current packet and interference packets.
- Parameters
-
| starttime | timestamp of the start of reception phase |
| duration | duration of the reception phase |
- Returns
- percantage of overlap
Definition at line 292 of file uwinterference.cpp.
◆ removeFromInterference()
| void uwinterference::removeFromInterference |
( |
double |
pw, |
|
|
PKT_TYPE |
tp |
|
) |
| |
|
virtual |
Remove a packet to the interference calculation.
- Parameters
-
| pw | Received power of the current packet |
| type | type of the packet (DATA or CTRL) |
Definition at line 151 of file uwinterference.cpp.
◆ end_rx_time
| double uwinterference::end_rx_time |
|
protected |
◆ end_timer
◆ initial_interference_time
| double uwinterference::initial_interference_time |
|
protected |
timestamp of the begin of reception of the first interferer packet
Definition at line 244 of file uwinterference.h.
◆ power_list
| std::list<ListNode> uwinterference::power_list |
|
protected |
◆ start_rx_time
| double uwinterference::start_rx_time |
|
protected |
◆ use_maxinterval_
| double uwinterference::use_maxinterval_ |
|
protected |
The documentation for this class was generated from the following files:


This is a dangerously delicious cake.
It's always taco night somewhere!
Omelette you in on a little secret
It's a sandwich. That's all we .


"In the fundraising business, there’s an old axiom that 'one is greater than one million.' This isn’t bad math; it is a reminder that when it comes to people in need, one million is a statistic, while one is a human story.” - Arthur C. Brooks
Give One
Give One is a non-profit federal tax-exempt organization under section 501(c)(3) of the Internal Revenue Code, EIN 81-4924613.


Hey It's Me Anna
Talk to me to have your work automated
Your Personal Assistant on Google Chrome
Please Grant me Microphone permissions.


Welcome to Cisco Automation Framework’s documentation!¶
The Cisco Automation Framework is intended to provide a network administrator or network engineer a single tool to allow them to write scripts that when run against any Cisco device return consistent output so the author does not have to account for changes in command syntax or command output.

Requirements:¶
Paramiko


Strictly viewers left baffled by judge Motsi Mabuse's outfit choice
Viewers instantly took to Twitter to mock the head judge's unusual choice of dress for Sunday night's seventh results show
by Tiffany WallisTonight's results show saw head judge Motsi Mabuse shimmy onto the Strictly Come Dancing ballroom in an unusual dress.
The judge, 38, baffled viewers as she stepped out in a blush-coloured frilly dress with sheer layered detailing and dramatic lace ruffles.
The glamorous professional started the seventh results show with the eye-catching look, but viewers weren't so keen with the quirky number.
Strictly fans quickly fled to Twitter to comment on the judge's dress choice and compare it to a 'sheep'.

While another shared: "Motsi looks like the end of a roll of fabric."
A third fan commented: "Do you think Motsi has ever met a ruffle she didn't like?"
Another viewer swiped: "I like Motsi but that dress is horrifying."
Motsi's nude fashion ensemble featured a short ruffled hemline, similar to that of a 90's Ra Ra skirt, but also layered ruffles across the whole bodice.
The dress is priced at £129 and available from fashion retailer House Of CB.
The pretty lace and frill concoction is cut from a soft semi sheer and stretchy dotted chiffon and lace and features a sexy off shoulder asymmetric cut.
Fellow judge Shirley also turned heads on tonight's results show as she stepped out in a classy satin blouse in a rich emerald green colour and smart black trousers.
The 59 year old was having her breast implants removed amid cancer fears, but still managed to rock up looking sensational for the Strictly results
Similar to yesterday, she sporting a very classic, yet a no less bold, look - a trouser and blouse combo.
Tonight's results show will reveal the next celebrity to be booted off the show and join fellow voted off stars England goalie David James, presenter Dev Griffin, TV legend Anneka Rice and Olympic Rower James Cracknell .
Karim Zeroual and Amy Dowden soared to the top of the leaderboard after their week seven Quickstep performance last night.
At the other end of the table are Emma Barton and Anton du Beke, who finished last on the leaderboard with 22.
The nine surviving pairs now dance past the competition’s halfway mark with the highly-anticipated Blackpool Tower Ballroom episode just two routines away.
Tonight's results show kicked off with an Elton John inspired group dance, as well as a musical performance from award-winning singer and songwriter Emelie Sande, performing her single Shine.
The two couples facing the dreaded dance-off are Mike Bushell and Katya Jones against Viscountess Emma Weymouth and Aljaž Škorjanec.
*Strictly returns next Saturday on BBC One


Will this rtc module for raspberry pi on ebay be compatible with the rfm12b? So far its the only rtc module for raspberry Pi I've found that includes physical pins to allow stacking of additional modules. Is it fairly likely to work with an rfm12pi (v1 or 2)?
The ebay listing says it "includes a I2C logic level converter allowing you to connect other 5V I2C devices to your Raspberry Pi". I guess that means in protects itself from 5v i2c devices? The rfm12pi technical document seems to say that its 3.3v, but as far as I can tell its not actually an i2c device anyway?
Re: realtime clock module for raspberry pi
The RFM2Pi board doesn't touch the I2C pins of the Raspberry pi, so my assumption is that you can plug it on top of the RTC board and it will work.
Why do you need a RTC, isn't your Pi connected to the Internet via a WiFi dongle or LAN cable?
Re: realtime clock module for raspberry pi
Thanks very much for that.
Do I need an rtc? The use case is a system for my father, who lives in a rural area, prone to power brown outs and outages. We want to reliably record the state of the house power supply. He can get refunds from the power company with reasonable evidence of a supply issue. Graphs or tables of Vrms from an emon setup should do nicely. Its as much about making a point about their quality of service, as recovering money.
I don't know for sure that this needs an rtc. On a resumption of supply, his pi will ntp from his router, which will be doing its own ntp update, and perhaps has its own rtc anyway. I suppose there's scope for the pi to have some seconds of runtime with a poor time value. Having an onboard rtc would just make it certain that the pi knows its time, at power on.
Re: realtime clock module for raspberry pi
If there is a power failure, isn't the Pi going to shut down too? I think, it would make more sense to get the cheapest computer UPS, your Pi will run on it for quite a while. It just needs NTP for a short period upon booting to get its clock right.
Re: realtime clock module for raspberry pi
To follow up on this, I first bought the Wyolum Epoch rtc board from Seeed Studio, seems good, cheap delivery. It doesn't have the long pins to allow stacking, but given that the rtc board and the rfm12pi use different raspi io pins, I just soldered on some strips of header. Then added hot glue to support the header better. Put it together, followed various guides on enabling rtc, and it seems to be working nicely.
I've also bought another rtc board from AB Electronics, which looks to be the same as my initial ebay link, but from the manufacturer, cheaper than ebay, with better postage. Still a bit more than the Wyolum board, but comes with the stackable header. Haven't tried it yet but I expect it will work perfectly. AB Electronics seem to have a few pretty nice raspi daughterboards, such as a 1-wire interface board with an rj12 socket, which seems pretty common for 1-wire sensors.
Thanks for the help!


Lesson Plan Title: How to Exploit "Off-by-One" Buffer Overflow Vulnerabilities
Concept / Topic To Teach:
How to Exploit a Web Based "Off-by-One" Buffer Overflow.How the attack works:
Despite being more rare, buffer overflow vulnerabilities on the web occur when a tier of the application has insufficient memory allocated to deal with the data submitted by the user. Typically, such a tier would be written in C or a similar language. For the particular subset, namely, off-by-one overflows, this lesson focuses on the consequences of being able to overwrite the position for the trailing null byte. As a result, further information is returned back to the user, due to the fact that no null byte was found.Lesson Goal(s):
Welcome to the OWASP Hotel! Can you find out which room a VIP guest is staying in?
* Understand how a buffer overflow vulnerability can be triggered on a web application.


A pool represents a group of members over which the load balancing will be applied.
Method:
The load balancer algorithm that distributes traffic to the pool members.
-
LEAST_CONNECTIONS: Allocates requests to the instance with the least number of active
connections.
-
ROUND_ROBIN: Rotates requests evenly between multiple instances.
-
SOURCE_IP: Requests from a unique source IP address are consistently directed to the same instance.
Session Persistence:
The type of session persistence for distributing traffic to the pool members.
-
SOURCE_IP: Session persistence based on source ip.
-
HTTP_COOKIE: Session persistence based on http cookie.
-
APP_COOKIE: Session persistence based on application cookie.


Home-field Advantage
As discussed above, we first tried scatter plot with jitter. The x-axis is the countries that have ever hosted the Olympics and y-axis denotes the percentage of a medals earned by a country against the total number of medals in that year. Blue dots represent data when the country were not the host and the orange ones for when it was the host. See Figure 31.
[FIGURE 31 HERE]
The blue dots were too packed. We later tried beeswarm plot coupled with box plot. Dots were shown much more clearly but one drawback is that we could not see the density distribution of all the dots very well. Density distribution was important in this case because it would allow an easier comparison between the medal percentage when a country was a host and that when it was not. See Figure 32.
[FIGURE 32 HERE]
To show density distribution of medal percentages, we used kernel density estimation in a small multiple. The x-axis is the medal percentage and the y-axis is the probability density. We used a red arrow to denote when the country was a Olympics host. An arrow located at the tail would indicate the existence of home-field advantage. See Figure 33.
[FIGURE 33 HERE]
Medal Efficiency
As planned, first of all, we did data manipulation before plotting. Golds were given four points, Silver 2, and Bronze 1. Attendance without any medals was assigned to 0 point. A country’s “medal efficiency” was calculated as the quotient of total medal points and the total number of athletes participating over 120 years.
We then plotted a choropleth map using orthographic projection. We applied Viridis color map where darker shades denote higher medal efficiency. To ensure interactivity, we made this map with the Plotly package. See Figure 34.
[FIGURE 34 HERE]
We found this index of medal efficiency to be both more accurate and intuitive. The reasons why it is more accurate have been outlined above. We believe that it is also more intuitive because, for example, for countries that still exist today, the highest medal efficiency is 0.91 for the United States of America. The fact that the highest is close to one makes it easier for compare between countries.
Ranking Sports by Number of Athletes
To rank sports according to the number of athletes, we first plotted a bar chart, each bar representing a category. As can be seen below, since there were too many categories, the names of sports overlapped to a degree that most of them were indistinguishable. Since there are around thirty sports, using colors is not an ideal option. See Figure 35.
[FIGURE 35 HERE]
We then thought about word cloud. In word cloud, the size of words is associated with the frequencies. This would make our ranking clearer. We did this visualization with the wordcloud package. See Figure 36.
[FIGURE 36 HERE]


Room Search
Class Search
Day
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Time
8:30
9:30
10:30
11:30
12:30
1:30pm
2:30pm
3:30pm
4:30pm
5:30pm
7:00pm
Duration
1 Hour
2 Hours
3 Hours
Smart Filtering
Room Type
Empty Rooms Only
Lectures Only
All Rooms
Submit
Submit


Hey, I'm Sajeel! I'm a software engineer with a passion for teaching, research, and medicine. Read more About Me, see my Portfolio, or Contact Me.
Pet Package is an API-driven platform that allows pet-seekers to search and contact local humane societies and adoption clinics by offering geographic references!
Pet Package is a robust, tool to simplify and inform about the pet adoption process.
We strive to create a user-friendly product that can help abandoned and in-need animals find homes. Our web app will also help the new owner locate pet-related resources in their area, like vet clinics & pet stores.
Often, we overlook the needs of animals in our own locales due to our hectic daily lives, especially in noisy, tumultuous cities like San Francisco and New York City. However, with the right tools, many of us would lend a hand to our fellow creatures. Our hope is to provide the connection between animals and future pet-owners to establish a friendly environment for all.
Follow the deployed project link below to utilize the application.
The page can be run from any browser, preferably on Google Chrome!
In the United States alone, there are over 1000 searches per hour of users looking for cats and dogs to adopt, according to North America’s largest non-profit pet adoption service. We strive to harness this market and enhance those users’ ability to make informed decisions about potential pet adoption.
Here, we queried Petfinder’s API with a jQuery AJAX call and created unique conditional statements to check whether certain pet characteristics existed for each pet. Since Petfinder’s API has different requirements and different outputs for each query, we had to make sure that each parameter existed before we proceeded.
Dynamic generation of HTML elements via jQuery is an extremely powerful tool to instantaneously adjust the webpage to the user’s interaction with the interface. Here, we establish a simple, clean iframe in the HTML waiting to be rendered. Without a source, Google Maps doesn’t generate.
Then, we embed a “data-location” attribute within each pet thumbnail on the page. From there, we push the address on click of the thumbnail to dynamically generate a particular source attribute of a Google Maps iFrame HTML element so that we can query appropriately and populate the location of the animal.
We also implemented dynamic CSS styling upon creation of new HTML elements.
$(document).on("click", "#hideShow", function (){
hideShow();
});
$(document).on("click", ".animal-pick", function() {
hideShow();
})
function hideShow() {
var toolbar = $("#toolbarRender");
var searchBar = $("#picturesRender");
if(!hidden){
toolbar.css("top", "-104px");
searchBar.css("bottom", "150px");
$("#hider").text("SHOW");
$("#hider").css("background-color", "#424874");
$("#hider").css("color", "white");
hidden = true;
}
else if(hidden){
toolbar.css("top", "0px");
searchBar.css("bottom", "0px");
$("#hider").css("background-color", "rgba(255,255,255,.0)");
$("#hider").css("color", "#424874");
$("#hider").text("HIDE");
hidden = false;
}
}
| Task | Lead |
|---|---|
| Design, Research, Logic and Execution | Syam, Sajeel, Taylor, Kevin |
| Google Maps Success Team | Syam, Sajeel |
| Petfinder Operations & Execution | Taylor |
| Graphics/Front End Direction | Kevin |
| Firebase Management & Logistics | Taylor |
| Analytics | Syam |
| Team Coordinator, Documentation, Git Branching and Project Board Manager | Sajeel |
This project is licensed under the MIT License - see the LICENSE.md file for details


The zip you're looking for: {{zip}}
The current weather condition in {{today.name}} is
The temperature is
Max temperature for today is: {{today.main.temp_min * (9/5) - 459.67459 | number:0}} °F
Min temperature for today is: {{today.main.temp_max * (9/5) - 459.67459 | number:0}} °F