This template provides a starting point for creating your web
application. This easily configurable template allows you to define the
map, title and links for the site. This read-me file explains how to
setup and configure the template to run on your web server.
Table of Contents
Install the web application
These instructions assume that you have a web server like Internet Information Services
(IIS)
installed and setup on your machine. If you are using another web
server the general installation steps will be the same but you will
need to check your web server's documentation for specific information
on deploying and testing the application.
- Copy the contents of the zip file into your web server's
root directory. In IIS, the default location for the root
folder is
c:\inetpub\wwwroot
.
- If your application edits features in a feature service,
enables the elevation chart, contains secure services, web maps that
aren't publicly shared, or generates requests that exceed 2000
characters you may need to setup and use a proxy page. Common
situations where you may exceed the URL length are, using complex
polygons as input to a task or specifying a spatial reference using
well-known text (WKT).
For details on installing and
configuring a proxy page, see Using
the proxy page. After setting up the proxy set the
proxyurl
option in index.html to point to the location of your proxy.
- Test the page using the following URL:
http://localhost/[template name]/index.html, where [template name] is
the name of the folder where you extracted the zip contents.
Top
Configure the application
Now let's configure the application to use a different map,
title or subtitle.
- Every
map you save contains a unique identifier. You’ll use this ID to configure the
application. To
obtain the ID, log in and open the map you
want to include in your application.
If
you own the map, make sure it is shared with everyone. View
the map details and copy
the ID from the URL in the top of your browser. The section you need to
copy is highlighted in yellow in the image below.
- Open the index.html file in a text editor. You can edit
this file to set the following application properties:
- webmap: Unique identifier for the map.
- appid: Unique identifier for the map app. No need to specify if a webmap id has been given.
- title: If not specified the map's title is used
- description: By default the
application uses the description for the web map. Add
custom text here if you want to replace the default description.
- Theme: Specify a color theme for the
application. Valid values are: gray|purple|blue|green|orange.
- basemapgroup: Specify the title and
owner of a group that contains the basemaps to display
in the Basemap Gallery. The Basemap Gallery lets users of the
application choose a new basemap for the current map. All operational
layers will persist - only the basemap will change.
- To modify the map, replace the string for webmap with your
map's id. For example:
function init(){
//The ID for the map
webmap = "dbd1c6d52f4e447f8c01d14a691a70fe";
- If your map contains data from Bing Maps, enter your Bing
Maps key in commonConfig.js.
bingmapskey = "Enter your Bing Maps key here";
- By default, the application displays the map's
title as the applications title and the map's summary as the subtitle.
You can change this by setting the title and subtitle properties.
title = "This is a custom title for your map";
subtitle = "This is a custom subtitle";
- Save the file then test your application. Note that it
now displays your map and your custom title and subtitle, if specified.
Top
Specify
Map Options
- When creating a new map you can specify optional parameters
that define various map options, For example, whether pan arrows or a slider are
displayed, if popups defined in web map display and if the map
supports continous pan across the dateline. View the API reference for
the Map
class for more details. Note: continous pan across the dateline is only
supported if the map's spatial reference is WGS84 or Web Mercator.
- To change the map options in your application open the
layout.js file
search for mapOptions then add or remove map options.
- You may set "true" to display or "false" to hide the
following items (positions are shown in the image below):
- Modify sharingurl,
found inside index.html, to point to your sharing service URL if you
are using an ArcGIS Online organization or Portal for ArcGIS.
- The default value is null, and
automatically attempts to use www.arcgis.com.
- For an organization, specify the url as
follows:
http://MyOrg.maps.arcgis.com
- For Portal for ArcGIS, specify the url as follows: http://<fully qualified
domain name>/<web adaptor instance name>. For
example,
http://myportal.domain.com/arcgis.
sharingurl: "Sharing URL",
- Specify a group that contains the basemaps to
display in the basemap gallery. The basemap gallery should only include with the same coordinate system as basemap of the webmap you are authoring with the application. For example:
title:'ArcGIS Online Basemaps',
owner:'esri'
- Set link text and url parameters if you want to display
clickable links in the upper right-corner of the application. Enter link values for the link1 and link2 and text to add
links. For example:
link1: {
url: 'http://www.arcgis.com',
text: 'ArcGIS Online'
},
link2: {
url: 'http://www.esri.com',
text: 'ESRI'
},
- Specify the width of the panel that holds the editor,
legend, details. For example:
leftpanewidth: 228,
- Restrict the map's extent to the initial extent of the web
map. When true users will not be able to pan/zoom outside the initial
extent.
constrainmapextent: true|false,
- Provide an image and url for a logo that will be displayed
as a clickable image in the lower right corner of the map. If nothing
is specified then the esri logo will appear.
customlogo: {
image: 'image name',
link: 'image URL'
},
- Embed = true means the margins will be collapsed to just
include the map no title or links
embed: true|false
Top
Supported url parameters
In addition to the configurable parameters the basic viewer supports the following url parameters:
- find : Specify a location that is used as the map's starupt extent. The map will automatically be zoomed to the closest match and a callout marker is added to the map. The
find
parameter accpets single-line addresses, partial addresses (such as city only or country only), place-names and latitude-longitude coordinates. For example:
index.html?find=disneyland
- extent: Define the extent of the map. The
extent
parameter accepts coordinates in the same spatial reference as the map as MinX,MinY,MaxX,MaxY. For example:
index.html?extent=-13079253.954115,3959110.38566837,-12918205.318785,4086639.70193162,102113
- gcsextent : Define the extent of the map. The
gcsextent
parameter accepts geographic coordinates (GCS) as MinX, MinY, MaxX, MaxY For example:
index.html?extent=-117.20,34.055,-117.19,34.06
Top
Configure custom utility services and
other external URLs
Your Basic Viewer application can be configured to use your
own
utility services. Additionally, any other externally facing URLs can be
customized to point to URLs within your network, except where otherwise
noted. The instructions below detail the steps necessary to configure
your application in a disconnected environment.
- Specify a
custom print service. In commonConfig.js, replace the URL
value in quotes for the printTask
property with your custom print service. For example:
printTask:{
url: location + protocol + "//MyServer/../rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"
}
Note:
If a custom print service is not configured, the application uses the
ArcGIS.com default print service.
- Specify a
custom geometry
service. In
commonConfig.js, replace the URL
value in quotes for the geometry
property with your custom print service. For example:
geometry:{
url: location + protocol + "//MyServer/../rest/services/Geometry/GeometryServer"
}
Note:
If a custom geometry service is not configured, the application uses
the
ArcGIS.com default geometry service.
- Specify a
custom geocode
service. In
commonConfig.js, replace the URL
value in quotes for the geocode
property with your custom print service. For example:
geocode:{
url: location + protocol + "//MyServer/../rest/services/World/GeocodeServer"
}
Note:
If a custom geocode
service is not configured, the application uses the
ArcGIS.com World geocode service by default.
- Search and
replace Javascript API (JSAPI) references. In index.html, use a text
search to find all instances of
"//serverapi.arcgisonline.com/jsapi/arcgis/3.5". Your search should find five
references to the ArcGIS.com JSAPI. Replace these five references with
your internally hosted JSAPI. Be aware you may need to modify the
search and replace text strings to correctly update the references to point to your
hosted JSAPI.
If you are using Portal for ArcGIS, you can update
the references to use the portal's internally hosted JSAPI, for
example:
Search for: //serverapi.arcgisonline.com/jsapi/arcgis/3.5
Replace with: //MyPortalServer.domain.com/arcgis/jsapi/jsapi
Confirm the update
was successful by opening one of the updated references in a web
browser. If the file contents are displayed properly in the web browser, the
update was succesful. For example:
Open in web browser: "http://MyPortalServer.domain.com/arcgis/jsapi/jsapi/js/dojo/dojox/layout/resources/FloatingPane.css"
Note: If
JSAPI
references are not updated, the application uses the JSAPI hosted by
ArcGIS.com.
External URLs that cannot
be modified
The application may not function correctly if
the references below are modified. However, the application can be
configured to disable functionality that uses these external references, detailed as necessary below.
- Elevation
widget. Disabled by default. The elevation widget uses
these external references, which cannot be changed:
- http://help.arcgis.com
- http://sampleserver4.arcgisonline.com/ArcGIS/rest/services/Elevation/ESRI_Elevation_World/MapServer/exts/ElevationsSOE/ElevationLayers
- Share button
on the menu
bar. Enabled
by
default. To disable, refer to the disableshare
option in Step #3 in the above section, Specify
Map Options. The share button on the menu bar
uses these external references, which cannot be changed:
- http://www.facebook.com
- http://www.twitter.com


tripoloski blog
_
Hello i am arsalan. information system student, i blog about cyber security, ctf writeup , web development , and more about tech. born and raised in indonesia , currently living in indonesia
Posts
About
Posts
Balsn CTF 2022 Writeup
Sep 9, 2022
Ret2usr Kernel Exploitation Basic
Mar 27, 2022
Hiding Malicious Code in Smartcontract Solidity
Feb 4, 2022
Bypassing seccomp BPF filter
Jul 12, 2021
Writeup Mobile Penetration Testing challenge wreckit CTF 2021
Jun 14, 2021
CSCCTF FINAL 2020
Dec 20, 2020
Sandbox 1 | redmask CTF 2020 Final
Dec 14, 2020
Reverse Engineering writeup | IDSECCONF 2020
Dec 13, 2020
BabyARM redmask CTF 2020
Dec 7, 2020
Writeup KKST TNI Angkatan Darat 2020
Dec 6, 2020
Writeup Hology 3.0 CTF Final
Nov 26, 2020
Writeup Hology 3.0 CTF by Universitas Brawijaya
Nov 3, 2020
Writeup MetaCTF CyberGames 2020
Oct 26, 2020
Cyber Jawara 2020 Final
Oct 18, 2020
b01lers CTF bootcamp
Oct 5, 2020
Cyber Jawara 2020 Quals
Sep 18, 2020
Compfest 12 2020 CTF quals
Sep 8, 2020
Hacktoday IPB 2020 CTF final
Sep 6, 2020
Hacktoday IPB 2020 CTF quals
Sep 6, 2020
ret2csu ROPEmporium
Aug 24, 2020
1
2


Jerry B. Weinberg, Mary L. Stephen
They have explored using paper prototyping and ethnography within a HCI course, teaching computer scientists.  Resonates very strongly with my own view.
Paper provides a nice overview of the intent and differences between techniques such as User-Centred Design, Human-Centered Systems, Participatory Design and Contextual Design. Particularly good summary of Ethnography.
"Software designers need to apply methods that provide insights into the user's mental model of the application's target task and to invite the user to be an active participant in the design process."
"While the software programmer/engineer is concerned with developing reliable, robust, and maintainable software, the software designer is concerned with creating products that fit within the user's overall activities, enhance productivity, and produce a satisfying experience"
"Left to their own devices, computer programmers take a "systems-centered point of view", concerned about "how the software works and what parts of it do what" [8, p. 217-218]."
"Contextual design relies on ethnographic techniques from anthropology [10, 19, 15, 4, 5]. Ethnography is a method of research in which the researcher gathers data within a natural setting that involves a dynamic network o f interrelated variables. No attempt is made to control variables within the setting, for this could alter or destroy the phenomenon being studied. The purpose o f ethnographic research is to attempt to understand what is happening naturally in the setting, and through interpreting the data gathered to see what implications can be formed from the data."
"The final product produced from an ethnographic study should be a 'thick description" of the situation, so that the situation appears sufficiently realistic, and so that others in examining the description can determine whether the implications drawn from the study can be applied to other settings."
"HCI Students [after being taught Participatory Design] lamented that while they now understood the way design should be done, based on their experiences "unfortunately that is not the way it is done in the real world.""
Contextual Design, Ethnography


Berkeley Quality Software
`Prev `__
B
`Next `__
--------------
**Berkeley Quality Software**: adj.
(often abbreviated “BQS”) Term used in a pejorative sense to refer to
software that was apparently created by rather spaced-out hackers late
at night to solve some unique problem. It usually has nonexistent,
incomplete, or incorrect documentation, has been tested on at least two
examples, and core dumps when anyone else attempts to use it. This term
was frequently applied to early versions of the dbx(1) debugger. See
also `*Berzerkeley* `__.
Note to British and Commonwealth readers: that's /berk´lee/, not
/bark´lee/ as in British Received Pronunciation.
--------------
+------------------------------+----------------------------+--------------------------------+
| `Prev `__ | `Up <../B.html>`__ | `Next `__ |
+------------------------------+----------------------------+--------------------------------+
| benchmark | `Home <../index.html>`__ | Berzerkeley |
+------------------------------+----------------------------+--------------------------------+


Date set for Corbyn and Johnson to go head to head in TV debate
The first televised election debate between Boris Johnson and Jeremy Corbyn has been set for November 19.
The debate will be aired on ITV and it will be the first time the party leaders go head to head in the election campaign.
Labour Party leader Jeremy Corbyn challenged Mr Johnson to a debate earlier in the week, and on Friday said it was “welcome” that he accepted.
“This is a once in a generation election. So it’s welcome that Boris Johnson has accepted our challenge of a head to head TV debate. The choice could not be clearer: Boris Johnson’s Conservatives protecting the privileged few or a Labour government on the side of the many,” Mr Corbyn tweeted on Friday.
Mr Johnson also took to Twitter to comment on the debate.
“Looking forward to making the positive case to the country that we should #GetBrexitDone & deliver on the people’s priorities – #OurNHS, schools, tackling crime & the cost of living,” he said.
The Prime Minister was accused of running scarred from TV debates by rival Jeremy Hunt during the race to take over the Tory Party after the departure of Theresa May.
Mr Johnson did take part in two one-on-one debates during the battle for the Tory crown, but not before Mr Hunt and others placed him under great pressure to do so.
ITV Press Centre made the announcement on Twitter on Friday afternoon and said details of further multi-party debates will be released in due course.
READ MORE
Nigel Farage proposes General Election ‘Leave alliance’ to Boris Johnson


"For every move we take, we affect another in this world, in the subtlest
of ways. What then if we all take up significant action?
How would that chain reaction go?"
Edition II | August 6
National Institute of Technology Trichy
Witness it. August 6 2016.
National Institute of Technology Trichy
National Institute of Technology Trichy
The National Institute of Technology, Trichy is a public
university located in Tiruchirappalli, Tamil Nadu. Having
completed 50 years of existance last year, it continues to
house a set of culturally diverse student. Ranking among
the top 10 universities of Indis, NIT Trichy prides itself on
having produced some of the country's most brilliant
technologists & entreprenuers.
The National Institute of Technology, Trichy is a public university located in Tiruchirappalli, Tamil Nadu. Having completed 50 years of existance last year, it continues to house a set of culturally diverse student. Ranking among the top 10 universities of Indis, NIT Trichy prides itself on having produced some of the country's most brilliant technologists & entreprenuers
TED
TED, an acronym for Technology Entertainment Design, is a nonprofit organization devoted to Ideas Worth Spreading. Started as a four-day conference in California 30 years ago, TED has grown to support its mission with multiple initiatives. The two annual TED Conferences invite the world's leading thinkers and doers to speak for 18 minutes or less.
TEDx
In the spirit of ideas worth spreading, TEDx is a program of local, self-organized events that bring people together to share a TED-like experience.
TEDx, where x = independently organized TED event, is a program where TED Talks video
and live speakers combine to spark deep discussion and connection in a small group.
TEDxNITTrichy
Started in 2015 and hosted on the NIT Trichy campus, TEDxNITTrichy wishes to
create a unique platform to spark new ideas amidst enthusiastic and keen
young minds, through a series of extremely inspiring and thought provoking
talks by individuals with powerful ideas worth spreading. TEDxNITTrichy is
organised by a team of dynamic individuals who believe in the
power of ideas to change attitudes, lives and eventually the world.
TEDxNITTrichy
Started in 2015 and hosted on the NIT Trichy campus, TEDxNITTrichy wishes to create a unique platform to spark new ideas amidst enthusiastic and keen young minds, through a series of extremely inspiring and thought provoking talks by individuals with powerful ideas worth spreading. TEDxNITTrichy is organised by a team of dynamic individuals who believe in the power of ideas to change attitudes, lives and eventually the world.
Our Principles
#1 Skill > Intuition
We're competently organised, creative and detail-oriented.
#2 Develop Resources
We know how to get the ideas out there.
#3 Minimise Distance
We're all about creating valuable conversations.
#4 Orient by Vision
We love what we do and have mutual goals.
#5 Work Efficient
We know how to work social media towards greatness.
#6 Better Together
We are part of a community that seeks to help.
March 14, 2015. A breath-taking day of Challenging Conventions!
We thank our speakers for sharing their novel and innovative
ideas on the TEDxNITTrichy stage.
THE TEAM 2016
Jason
Prajish
Sujith
Lakshminarayanan
Hari
Hariharan
Nishit
Nagaraj
Nithin
Prajwal
Varun
Sudharshan
Manjith
Anuj
Lakshmi
Shashank
Abineya
Laasya
Mayank
Sudharsana
Vignesh
THE TEAM 2016
Jason
Prajish
Sujith
Lakshminarayanan
Hari
Hariharan
Nishit
Nagaraj
Nithin
Prajwal
Varun
Sudharshan
Manjith
Anuj
Lakshmi
Shashank
Abineya
Laasya
Mayank
Sudharsana
Vignesh


{% extends 'actor/templates/people_base.html' %} {% load nonce avatar vcard format %} {% block title %}{{whose}} followers{% endblock %} {% block people %}
Your followers allow you to see their {{POST_NAME|plural}} Those with a blue background are ones that you are following.
{% endifequal %} {% if actor_tiles %} {% include 'common/templates/actor_tiles.html' %} {% else %}No followers yet, but maybe soon :)
{% endif %}


{% extends "email/email_base.html" %} {% block content%}
Hi,
Your event titled "{{ event.name }}" is published and public now. You can share the event using the following url:
{{ site_url }}{{ event.get_absolute_url }}
Here is the link you can use to edit the event: {{ site_url }}{{ event.get_edit_url }}. You can share this link with other whom you want to provide edit access.
If you are having any issues or got any feedback, you can reply to this email and someone from the team will reach out to you.
In case you have not created this event, please contact site moderators.
{% endblock content%}


This small example will help you get started with setting up OAuth on Horizon. Here's what you need to get OAuth going:


I've been thinking about templating for a while now. Here my thoughts, and here's what they make.
It's only two evenings work so far, so don't expect too much. Like lots of examples or docs or any consideration of real use cases.
I used lxml for this; the killer feature is HTML parsing:
from lxml import etree parsed_html = etree.HTML(html_string)
That's darn easy, and none of that Tidy crap (it was still cool in 1999, but I've way over Tidy by 2006).
Update: in an email Kevin Dangoor pointed me to SiteMesh, another tool in the same veign for Java. He also noted Kids' py:match support makes it possible to apply templates to content (py:match is vaguely similar to what XSLT does). Kid could really use that lxml HTML parsing too.
One design feature of WSGIOverlay is that the system is not connected to Python, or even to WSGI (despite the name); though clearly the implementation is connected to both those things. This is distinct from Kid and SiteMesh, where templates are associated with specific languages (Python/Kid and Java/JSP). Unlike Kid and JSP, WSGIOverlay is entirely useless for creating content, it is only useful for composing content.
You might find this interesting http://www.kuwata-lab.com/kwartz/ from the Ruby crowd.
I think that's pretty different in motivation, if I understand what they are doing. It reminds me of XMLC and similar products, but with a more CSS-ish feel. It's also about separating Business Logic from Presentation Logic, and WSGIOverlay doesn't do that in the slightest. It's really more about separating site composition from the templating of individual applications.
# Ian Bicking


--- layout: documentation title: OptionDataType ---
Defines the variable-length fields associated with IPv6 extension headers (the Hop-by-Hop Options header and the Destination Options header). Contains one or more type-length-value (TLV)-encoded options.
| Field Name | Type | Description |
|---|---|---|
| Option_Type0..1 | IPv6OptionType |
Identifies the type of option. This 8-bit Option Type identifier is internally encoded such that different bits have different meanings. These meanings are further specified in the IPv6OptionType type. |
| Option_Data_Len0..1 | HexBinaryObjectPropertyType |
Length of the Option Data field of this option, in octets. |
| Pad10..1 | Pad1Type |
The Pad1 option is used to insert one octet of padding into the Options area of a header. The Pad1 option does not have length and value fields. |
| PadN0..1 | PadNType |
The PadN option is used to insert two or more octets of paddings into the Options area of a header. |


Start address
Search an address or click the icon to use your current location
Destination address
Search an address or click the icon to use your current location
Submit
View Heatmap


Switch to toggle between hide and show seconds
Hide Seconds
Hide
Switch to toggle between 24 and 12 hour clock
24 Hour Clock
24 Hour
Programming By Stealth #92 Challenge


I finally got a nice volume icon working for my Air:
Since this was slightly convoluted, I thought I’d do a quick write-up.
The icon itself is /System/Library/CoreServices/CoreTypes.bundle/ Contents/Resources/com.apple.macbookair.icns
(discovered here).
Assigning icons can be tricky in OS X, as I described in an earlier post. I had no luck with icns2icon this time, even when I tried very liberal permissions, so I went with the kludge described in that post (sticking the icon in an app bundle) instead.
I was then able to copy-and-paste the icon as the icon of the icns
file itself, but for some reason I was still unable to make it the icon of my system volume.
Here is the icon file with itself as its icon, to save you some work. The download is an archive since the icon wouldn’t stick otherwise.
I ended up having to use CandyBar (which has a free trial). In CandyBar, I just dragged the fixed icon file to the volume.


VR
Home
Registration
Order Tracking
About-Us
Covid-19 Vaccine Registration
User Type:
Choose user type
Admin
Applicant
User ID:


This application works out which country a person belongs to if you provide their first name and surname
Click here to start


--- layout: default hero-image: url(/assets/images/stock-images/prep.jpg) hero-message: PiE on the Road title: PiE on the Road ---
Pioneers in Engineering is back with the second year of PiE on the Road! Our mission is to make robotics more accessible to students across the bay by bringing a kit to you. Our team of Berkeley students will visit three High Schools across the bay area. This event is open to all UC Berkeley and High School students.
Our custom kit is designed to teach gear ratios, elementary kinematics, and simple circuits. Our curriculum includes hands-on building coupled with instructions, conceptual problems, and design challenges to make the most out of the kit.
Based on availability, groups will be able to take a box home, so sign up now for a box near you!
Sign up here
Oct. 26th5PM - 7PM |
UC Berkeley220 Jacobs Hall |
Oct. 27th10AM - 12PM |
UC Berkeley540 Cory HallIn collaboration with the Society of Women Engineers |
Oct. 30th4PM - 7PM |
Coliseum High SchoolCCPA Room D23 |
Nov. 9th4PM - 7PM |
Hayward High SchoolRoom K4 |
Jan. 18th4PM - 7PM |
Hercules High SchoolRoom H201 (Cafeteria) |
Support for this program goes directly toward production of our customized kits. This money goes toward purchasing materials, design experimentation, curriculum development, and equipment usage. This support makes it possible for us to deliver an robotics learning experience directly to schools in the bay area. Continued support for this program enables students to take kits home to continue their learning experience outside of the workshop time.


This package was debianized by Gergely Nagy .
It was checked out from NetBSD CVS on 2008-06-14.
(CVS_RSH=ssh CVSROOT=anoncvs@anoncvs.NetBSD.org:/cvsroot cvs checkout -P $path)
Upstream Author: NetBSD Foundation
Homepage: http://ftp.netbsd.org/pub/NetBSD/NetBSD-release-5-0/src/lib/libedit/
Copyright:
Copyright (c) 1992, 1993
The Regents of the University of California. All rights reserved.
This code is derived from software contributed to Berkeley by
Christos Zoulas of Cornell University.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.


React Meetups! #
Ever wanted to find developers who also share the same interest in React than you? Recently, there has been a React Meetup in San Francisco (courtesy of Telmate), and one in London (courtesy of Stuart Harris, Cain Ullah and Zoe Merchant). These two events have been big successes; a second one in London is already planned.
If you don't live near San Francisco or London, why not start one in your community?
Complementary Tools #
In case you haven't seen it, we've consolidated the tooling solution around React on this wiki page. Some of the notable recent entries include:
Ryan Florence and Michael Jackson's react-nested-router, which is a translation of the Ember router API to React.
Stephen J. Collings's react-bootstrap, which wraps the popular framework with a bit of React goodness. The website features live-editable demos.
Andrey Popp's react-quickstart, which gives you a quick template for server-side rendering and routing, among other features.
These are some of the links that often pop up on the #reactjs IRC channel. If you made something that you think deserves to be shown on the wiki, feel free to add it!
React in Interesting Places #
The core concepts React themselves is something very valuable that the community is exploring and pushing further. A year ago, we wouldn't have imagined something like Bruce Hauman's Flappy Bird ClojureScript port, whose interactive programming has been made possible through React:
And don't forget Pete Hunt's Wolfenstein 3D rendering engine in React (source code). While it's nearly a year old, it's still a nice demo.
Give us a shoutout on IRC or React Google Groups if you've used React in some Interesting places.
Even More People Using React #
Prismatic #
Prismatic recently shrank their codebase fivefold with the help of React and its popular ClojureScript wrapper, Om. They detailed their very positive experience here.
Finally, the state is normalized: each piece of information is represented in a single place. Since React ensures consistency between the DOM and the application data, the programmer can focus on ensuring that the state properly stays up to date in response to user input. If the application state is normalized, then this consistency is guaranteed by definition, completely avoiding the possibility of an entire class of common bugs.
Adobe Brackets #
Kevin Dangoor works on Brackets, the open-source code editor. After writing his first impression on React, he followed up with another insightful article on how to gradually make the code transition, how to preserve the editor's good parts, and how to tune Brackets' tooling around JSX.
We don’t need to switch to React everywhere, all at once. It’s not a framework that imposes anything on the application structure. [...] Easy, iterative adoption is definitely something in React’s favor for us.
Storehouse #
Storehouse (Apple Design Award 2014)'s web presence is build with React. Here's an example story. Congratulations on the award!
Vim Awesome #
Vim Awesome, an open-source Vim plugins directory built on React, was just launched. Be sure to check out the source code if you're curious to see an example of how to build a small single-page React app.
Random Tweets #
Spent 12 hours so far with #reactjs. Spent another 2 wondering why we've been doing JS frameworks wrong until now. React makes me happy.
— Paul Irwin (@paulirwin) June 24, 2014


The purpose of this guide is to describe the uses for and usage of twisted.protocols.amp
beyond what is explained in the API documentation. It will show you how to implement an AMP server which can respond to commands or interact directly with individual messages. It will also show you how to implement an AMP client which can issue commands to a server.
AMP is a bidirectional command/response-oriented protocol intended to be extended with application-specific request types and handlers. Various simple data types are supported and support for new data types can be added by applications.
Setting Up
AMP runs over a stream-oriented connection-based protocol, such as TCP or SSL. Before you can use any features of the AMP protocol, you need a connection. The protocol class to use to establish an AMP connection is AMP
. Connection setup works as it does for almost all protocols in Twisted. For example, you can set up a listening AMP server using a server endpoint:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
from twisted.protocols.amp import AMP from twisted.internet import reactor from twisted.internet.protocol import Factory from twisted.internet.endpoints import TCP4ServerEndpoint from twisted.application.service import Application from twisted.application.internet import StreamServerEndpointService application = Application("basic AMP server") endpoint = TCP4ServerEndpoint(reactor, 8750) factory = Factory() factory.protocol = AMP service = StreamServerEndpointService(endpoint, factory) service.setServiceParent(application)
And you can connect to an AMP server using a client endpoint:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
if __name__ == '__main__': import basic_client raise SystemExit(basic_client.main()) from sys import stdout from twisted.python.log import startLogging, err from twisted.protocols.amp import AMP from twisted.internet import reactor from twisted.internet.protocol import Factory from twisted.internet.endpoints import TCP4ClientEndpoint def connect(): endpoint = TCP4ClientEndpoint(reactor, "<IP_ADDRESS>", 8750) factory = Factory() factory.protocol = AMP return endpoint.connect(factory) def main(): startLogging(stdout) d = connect() d.addErrback(err, "Connection failed") def done(ignored): reactor.stop() d.addCallback(done) reactor.run()
Commands
Either side of an AMP connection can issue a command to the other side. Each kind of command is represented as a subclass of Command
. A Command
defines arguments, response values, and error conditions.
1 2 3 4 5 6 7 8 9 10 11 12
from twisted.protocols.amp import Integer, String, Unicode, Command class UsernameUnavailable(Exception): pass class RegisterUser(Command): arguments = [('username', Unicode()), ('publickey', String())] response = [('uid', Integer())] errors = {UsernameUnavailable: 'username-unavailable'}
The definition of the command's signature - its arguments, response, and possible error conditions - is separate from the implementation of the behavior to execute when the command is received. The Command
subclass only defines the former.
Commands are issued by calling callRemote
on either side of the connection. This method returns a Deferred
which eventually fires with the result of the command.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
if __name__ == '__main__': import command_client raise SystemExit(command_client.main()) from sys import stdout from twisted.python.log import startLogging, err from twisted.protocols.amp import Integer, String, Unicode, Command from twisted.internet import reactor from basic_client import connect class UsernameUnavailable(Exception): pass class RegisterUser(Command): arguments = [('username', Unicode()), ('publickey', String())] response = [('uid', Integer())] errors = {UsernameUnavailable: 'username-unavailable'} def main(): startLogging(stdout) d = connect() def connected(protocol): return protocol.callRemote( RegisterUser, username=u'alice', publickey='ssh-rsa AAAAB3NzaC1yc2 alice@actinium') d.addCallback(connected) def registered(result): print 'Registration result:', result d.addCallback(registered) d.addErrback(err, "Failed to register") def finished(ignored): reactor.stop() d.addCallback(finished) reactor.run()
Locators
The logic for handling a command can be specified as an object separate from the AMP
instance which interprets and formats bytes over the network.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
from twisted.protocols.amp import CommandLocator from twisted.python.filepath import FilePath class UsernameUnavailable(Exception): pass class UserRegistration(CommandLocator): uidCounter = 0 @RegisterUser.responder def register(self, username, publickey): path = FilePath(username) if path.exists(): raise UsernameUnavailable() self.uidCounter += 1 path.setContent('%d %s\n' % (self.uidCounter, publickey)) return self.uidCounter
When you define a separate CommandLocator
subclass, use it by passing an instance of it to the AMP
initializer.
1 2
factory = Factory() factory.protocol = lambda: AMP(locator=UserRegistration())
If no locator is passed in, AMP
acts as its own locator. Command responders can be defined on an AMP
subclass, just as the responder was defined on the UserRegistration
example above.
Box Receivers
AMP conversations consist of an exchange of messages called boxes. A box consists of a sequence of pairs of key and value (for example, the pair username
and alice
). Boxes are generally represented as dict
instances. Normally boxes are passed back and forth to implement the command request/response features described above. The logic for handling each box can be specified as an object separate from the AMP
instance.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
from zope.interface import implements from twisted.protocols.amp import IBoxReceiver class BoxReflector(object): implements(IBoxReceiver) def startReceivingBoxes(self, boxSender): self.boxSender = boxSender def ampBoxReceived(self, box): self.boxSender.sendBox(box) def stopReceivingBoxes(self, reason): self.boxSender = None
These methods parallel those of IProtocol
. Startup notification is given by startReceivingBoxes
. The argument passed to it is an IBoxSender
provider, which can be used to send boxes back out over the network. ampBoxReceived
delivers notification for a complete box having been received. And last, stopReceivingBoxes
notifies the object that no more boxes will be received and no more can be sent. The argument passed to it is a Failure
which may contain details about what caused the conversation to end.
To use a custom IBoxReceiver
, pass it to the AMP
initializer.
1 2
factory = Factory() factory.protocol = lambda: AMP(boxReceiver=BoxReflector())
If no box receiver is passed in, AMP
acts as its own box receiver. It handles boxes by treating them as command requests or responses and delivering them to the appropriate responder or as a result to a callRemote
Deferred
.


Splitting and stratifying¶
Splitting data sets into training and test sets, and ensuring a balanced distribution of class labels are common preprocessing tasks for machine learning.
Splitting data¶
We start with a toy example, and randomly split a list of numbers ranging from 0 to 9 into a training and a testing set with a size ratio of 70%:
>>> train, test = range(10) >> SplitRandom(ratio=0.7)
>>> print('\n', train, '\n', test)
[6, 3, 1, 7, 0, 2, 4]
[5, 9, 8]
Note that SplitRandom()
is a sink and no Collect()
or Consume()
is required at the end of the pipeline. SplitRandom()
returns a tuple
containing the split data sets.
Often a three-fold split into a training, validation and testing set
is needed and this is easily done as well:
>>> train, val, test = range(10) >> SplitRandom(ratio=(0.6, 0.3, 0.1))
>>> print(train, val, test)
([6, 1, 4, 0, 3, 2], [8, 7, 9], [5])
SplitRandom()
randomizes the order of the samples in the split but
uses the same seed for the randomization for each call. You can provide a
random number generator to create seed-dependent splits, e.g.
>>> from nutsflow.common import StableRandom
>>> rand = StableRandom(seed=0)
>>> range(10) >> SplitRandom(ratio=0.7, rand=rand)
[[6, 3, 1, 7, 0, 2, 4], [5, 9, 8]]
Note
Python’s pseudo random number generator random.Random(0)
returns different
number sequences for Python 2.x and 3.x – with the same seed! If you need
repeatable results across Python versions, e.g. for unit testing,
use StableRandom()
.
Occasionally, there are constraints on how the data can be split. For instance,
in medical data sets records originating from the same patient should not be
distributed across sets, since this would bias the results. SplitRandom()
supports a constraint
function and in the following example we ensure that
numbers with the same parity are not scattered across splits:
>>> same_parity = lambda x: x % 2 == 0
>>> range(10) >> SplitRandom(ratio=0.5, constraint=same_parity)
[[0, 2, 6, 8, 4], [3, 1, 7, 5, 9]]
Note that the constraint has precedence over the ratio. For instance, for a ratio of 0.7
the constraint holds (even or odd numbers are not scattered over splits) but
the first split contains all samples and the second split is empty, violating
the 0.7
ratio of split sizes:
>>> range(10) >> SplitRandom(ratio=0.7, constraint=same_parity)
[[0, 5, 2, 6, 4, 9, 8, 7, 3, 1], []]
Let’s close with a more realistic example. We load the Iris flower data set and split it into training and testing sets:
>>> train, test = ReadPandas('tests/data/iris.csv') >> SplitRandom(ratio=0.5)
>>> len(train), len(test)
(74, 75)
As you can see, with a split ratio of 0.5
training and test are roughly
about the same size.
Note
SplitRandom()
loads all samples into memory. Splitting therefore has to
occur before large data object (e.g. images) belonging to samples are
loaded.
If your data set is very small, you likely will need a leave-one-out split,
which can be performed via SplitLeaveOneOut()
:
>>> samples = [1, 2, 3]
>>> for train, test in samples >> SplitLeaveOneOut():
... print(train, ' : ', test)
[2, 3] : [1]
[1, 3] : [2]
[1, 2] : [3]
Stratifying data¶
Real world data often contains considerably different numbers of samples for the classes to learn (class imbalance). Training a classifier on such an unbalanced data set could introduce a classification bias. Typically the classifier is more accurate on the class with more samples. A common method to avoid this bias, is to stratify the data by over- or under-sampling samples based on their class labels.
In the following example, we create an artificial sample set with 10 samples
belonging to the good
class and 100 samples for the bad
class.
CountValues()
returns a dictionary with the sample frequencies for the
class labels:
>>> samples = [(0, 'good')] * 10 + [(1, 'bad')] * 100
>>> labelcol = 1
>>> labeldist = samples >> CountValues(labelcol)
>>> print(labeldist)
{'good': 10, 'bad': 100}
Obviously, this is a strongly unbalanced data set. After stratification the samples frequencies are much more balanced:
>>> stratified = samples >> Stratify(labelcol, labeldist) >> Collect()
>>> print(stratified >> CountValues(labelcol))
{'good': 10, 'bad': 9}
Stratify()
requires the label distribution of the unbalanced data set
as input and down-sampling is based on the sample frequencies in labeldist
.
If the label distribution is known upfront, it can provided directly and
there is no need to call CountValues()
.
Note
Stratify()
randomly selects samples but does not change the order
of samples. Use Shuffle
to ensure random ordering, e.g.
Stratify() >> Shuffle(1000) >> Collect()
.
Splitting and stratifying¶
In this example we combine loading, splitting and stratification of sample data. We take only 120 of the 150 samples of the Iris flower data set to create an artificially unbalanced sample set:
>>> filepath = 'tests/data/iris.csv'
>>> train, test = ReadPandas(filepath) >> Take(120) >> SplitRandom(ratio=0.7)
>>> labelcol = 4
>>> train >> CountValues(labelcol)
{'Iris-versicolor': 33, 'Iris-setosa': 35, 'Iris-virginica': 16}
Next we stratify and shuffle the training data:
>>> labeldist = train >> CountValues(labelcol)
>>> train >> Stratify(labelcol, labeldist) >> Shuffle(100) >> CountValues(labelcol)
{'Iris-setosa': 23, 'Iris-virginica': 16, 'Iris-versicolor': 16}
As you can see, the training data is now balanced again. Shuffle(100)
loads 100
samples in memory and shuffles them to perform a (partial) randomization of the
sample order. Typically we would perform stratification and shuffling in the
training loop. Here a template example:
train, val, test = ReadPandas(filepath) >> SplitRandom((0.8, 0.1, 0.1))
for epoch in range(EPOCHS):
accuracy = (train >> Stratify(labelcol, labeldist) >> Shuffle(100) >>
build_batch >> network.train() >> Mean())
Note that SplitRandom()
creates the same split every time it is called,
while Stratify()
will down-sample randomly. This ensures rerunning a training
operates on the same training and test data but in the training loop stratification
and shuffling randomizes the order of samples. This is usually what you want but
you can provide random number generators with specific seeds to change this
default behavior.
For the building of batches and network training see the later sections of the tutorial.


{% extends 'app/base.html' %} {% block content %} Please pay 1 BTC to the following address from your bitcoin wallet: {{ address }} Click continue when done.


Release Notes Knopflerfish 2.0.3
The Release Notes are included in the KF distributions.
Release Notes Knopflerfish 2.0.3
--------------------------------
Maintenance release of Knopflerfish
Here follows a breakdown of the most important changes.
=== Framework (Core) ===
* Bug fix, Registered services are removed from the registry
directly when SeriveRegistration.unregister() is called.
Bundles with access to the ServiceReference for a service may get
the service during the unregistering phase if the system property
org.knopflerfish.servicereference.valid.during.unregistering
have been set to "true" otherwise null will be returned.
* Bug fix, Calling bundle.getResources(String) on the bundle object
for the System bundle throws a ClassCastExcpetion.
* Bundle.getResource("/") now returns a valid URL to the root of the
bundle's classpath. Bundle.getResources("/") now returns an
enumeration of root URLs for the bundles class path. Both these
methods previously returned null when called with the argument "/".
* Bug fix, Bundle.getResources(name) did not include resources from
attached fragments if one or more matches was found in the bundle
itself.
=== Services (Compendium) ===
* EventAdmin
Updates Event class to allow for alphanumeric event topics
* URLConnection
Added getContentType and getContentLength
* Component (Declarative Services)
Corrected bugs concerning finding activate, deactivate methods
defined in superclasses for Component.
#1834414,
=== Misc (KF specific, start scritps, build system etc ===
* TrayIcon - WindowsVista recognized as platform alias
* Junit fix (#1816102)


Interface TreeTable.Node
-
- All Known Implementing Classes:
DefaultTreeTable.Node
- Enclosing interface:
- TreeTable
public static interface TreeTable.Node
A node in a tree combined with a row in a table. ATreeTable.Node
can be seen as a tree node associated to a single user object (like ordinary trees), augmented with the capability to describe some aspects of the user object in pre-defined columns. The list of allowed columns is given by theTreeTable.getColumns()
method.The following table summarizes the tree-related and table-related methods:
In addition, eachTree-table methods Tree-related methods Table-related methods Node
can be associated to an arbitrary object by thegetUserObject()
method. This object is not used directly by the tree tables.- Since:
- 0.3
Defined in the
sis-utility
module
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
equals(Object other)
Returnstrue
if the given object is a node with the same content than this node.Collection<TreeTable.Node>
getChildren()
Returns the children of this node.TreeTable.Node
getParent()
Returns the parent node, ornull
if this node is the root of the tree.Object
getUserObject()
Returns the user object associated to this node.<V> V
getValue(TableColumn<V> column)
Returns the value in the given column, ornull
if none.int
hashCode()
Returns a hash code value consistent with theequals(Object)
implementation for this node.boolean
isEditable(TableColumn<?> column)
Determines whether the value in the specified column is editable.boolean
isLeaf()
Returnstrue
if this node can not have any children.TreeTable.Node
newChild()
Creates a new child with the same columns than the other children, and adds it to the children collection.<V> void
setValue(TableColumn<V> column, V value)
Sets the value for the given column (optional operation).
-
-
-
Method Detail
-
getParent
TreeTable.Node getParent()
Returns the parent node, ornull
if this node is the root of the tree.There is intentionally no
setParent(Node)
method, as children and parent managements are highly implementation-dependant. If the children collection is modifiable, then implementations are encouraged to update automatically the parent when a child is added to or removed from that collection.- Returns:
- the parent, or
null
if none.
-
isLeaf
boolean isLeaf()
Returnstrue
if this node can not have any children. The children collection of a leaf node can only be empty, and adding new child is an unsupported operation.This value is provided as a tip for graphical user interfaces, in order to determine if a node is expandable (even if empty).
TreeTableFormat
does not use this value.- Returns:
true
if this node can not have any children.
-
getChildren
Collection<TreeTable.Node> getChildren()
Returns the children of this node. The returned collection may or may not be modifiable, at implementation choice. If the collection is modifiable, then it shall be live, i.e. any modification to the returned collection are reflected immediately in the tree. This allows addition or removal of child nodes as below:
The collection is often aTreeTable.Node newNode = new ...; // Create a new node here. parent.getChildren().add(newNode);
List
, but not necessarily. For some implementations like the metadata tree table view, compliance to theList
contract is impractical or inefficient.- Returns:
- the children, or an empty collection if none.
-
newChild
TreeTable.Node newChild() throws UnsupportedOperationException
Creates a new child with the same columns than the other children, and adds it to the children collection. The new child is typically added at the end of the collection, but this is not mandatory: implementations can add the child at whatever position they see fit.- Returns:
- the new child.
- Throws:
UnsupportedOperationException
- if this node can not add new children.
-
getValue
<V> V getValue(TableColumn<V> column)
Returns the value in the given column, ornull
if none.- Type Parameters:
V
- the base type of values in the given column.- Parameters:
column
- identifier of the column from which to get the value.- Returns:
- the value in the given column, or
null
if none. - See Also:
TreeTable.getColumns()
-
setValue
<V> void setValue(TableColumn<V> column, V value) throws IllegalArgumentException, UnsupportedOperationException
Sets the value for the given column (optional operation). TheisEditable(TableColumn)
method can be invoked before this setter method for determining if the given column is modifiable.- Type Parameters:
V
- the base type of values in the given column.- Parameters:
column
- identifier of the column into which to set the value.value
- the value to set.- Throws:
IllegalArgumentException
- if the given column is not a legal column for this node.UnsupportedOperationException
- if values in the given column can not be modified.- See Also:
TreeTable.getColumns()
,isEditable(TableColumn)
-
isEditable
boolean isEditable(TableColumn<?> column)
Determines whether the value in the specified column is editable. If the given column is not a legal column for thisNode
instance, then this method returnsfalse
.- Parameters:
column
- the column to query.- Returns:
true
if the given column is a legal column for thisNode
implementation and the corresponding value is editable, orfalse
otherwise.
-
getUserObject
Object getUserObject()
Returns the user object associated to this node. The user object is for information purpose only and does not appear in the rendered tree. It is typically a Java object whose content is splitted into the various table columns.Example: If aCityLocation
class is defined as a (city name, latitude, longitude) tuple, then aTreeTable.Node
could be defined to have 3 columns for the above 3 tuple components, and the user object could be the originalCityLocation
instance.- Returns:
- any object stored at this node by the user, or
null
if none.
-
equals
boolean equals(Object other)
Returnstrue
if the given object is a node with the same content than this node. For this method, the meaning of same content is defined as below:- The given object is also a
Node
. - The list returned by
TreeTable.getColumns()
is equals for both nodes. - The objects returned by
getValue(TableColumn)
are equal for each column. - The list returned by children is equals for both node.
getParent()
shall not be taken in account. It is necessary to ignore the parent for consistency with clone and for avoiding infinite recursivity when comparing the children. A third reason is given in the purpose example below.Purpose of this method: example with ISO metadata
Consider the following tree made of ISO 19115 metadata objects: a platform containing a list of instruments, and an instrument containing a reference to the platform on which the instrument is installed. In this example, nodes 2 and 4 contain a reference to the samePlatform
instance, so we have a cyclic graph:
TheMetadata tree example Node 1:
Acquisition informationNode 2: └─
PlatformNode 3: └─
InstrumentNode 4: └─
Platform (same instance than above)Node 5: └─
etc…AbstractMetadata.asTreeTable()
method gives a view in which each node has its content fully generated from wrapped metadata object. Consequently a naive walk over the above tree causes an infinite loop withTreeTable
generating nodes with identical content as we bounce betweenPlatform
andInstrument
metadata objects. To break this loop, we need to know when the content of a node (in this example, the wrapped metadata object) has already been visited. The parent shall not be taken in account since node 2 and 4 have different parents despite having the samePlatform
content.In this use case, the
Node.equals(Object)
implementation needs only to compare the wrapped metadata (usually given by the user object) since the node content, including the list of children, is fully determined by those metadata. An identity comparison (with==
) is sufficient for the purpose of avoiding infinite recursivity.Flexibility in implementationsThe above list specifies minimal conditions that must be true when two nodes are considered equal. Implementations should not relax those conditions, but are free to make them more restrictive. In particular, many implementations will require that the two nodes are instances of the same class. Some implementations may also perform identity comparisons (with the==
operator) between values instead than usingObject.equals(Object)
. This flexibility means that even if all above conditions are true, this is not a guarantee that this method will returntrue
.It is okay to not override this method at all since the identity comparison inherited from
Object.equals(Object)
is consistent with this method contract. Alternatively,Node
implementations having a content fully determined by the wrapped user object need only the following implementation:
Implementation details may vary, for example in the way to compare@Override public boolean equals(Object obj) { return (obj instanceof MyNode) && ((MyNode) obj).getUserObject() == getUserObject(); }
null
user objects or by invokingObject.equals(Object)
instead than performing identity comparisons. Note however that since this method purpose is to detect cyclic graphs (see above example), user objects should be compared withequals(Object)
only if their implementations are known to be safe against infinite recursivity. - The given object is also a
-
hashCode
int hashCode()
Returns a hash code value consistent with theequals(Object)
implementation for this node. If theequals(Object)
method has not been overridden, then thishashCode()
method should not be overridden neither. Otherwise if this node content (values and children) is fully generated from the user object, then theequals(…)
andhashCode()
methods may be implemented like below:
Otherwise this method should compute a hash code based on values and children of this node, ignoring parent.@Override public boolean equals(Object obj) { return (obj instanceof MyNode) && ((MyNode) obj).getUserObject() == getUserObject(); } @Override public int hashCode() { return System.identityHashCode(getUserObject()); }
-
-


06.Write a script that enters the coefficients a, b and c of a quadratic equation a*x2 + b*x + c = 0 and calculates and prints its real roots. Note that quadratic equations may have 0, 1 or 2 real roots.
Input 'a':
Input 'b':
Input 'c':
Calculate


Da Vinci Palace
Appetizers
Bacon Wrapped Dates - $12
Vegetable Spring Rolls - $10
Calamari - $17
Cocktails
Mint Julep - $8
Vesper Martini - $14
Cuba Libre - $7
Entrees
Personal Pizza - $12
Filet Mignon with Seasonal Greens - $35
Udon noodles
Desserts
Chocolate Mousee w/Ganache - $14
Tiramisu - $10
Contact
(917)-408-3695
8th ave E 53rd st


Developer Sandbox 👷🖥
Modular
D3FC is a collection of modules that are designed to make it easier to build charts with D3, extending its vocabulary from SVG paths, rectangles and groups, into series, annotation and chart. You can use the modules independently, or you can use them together as part of the default bundle.
Responsive
With D3FC, building responsive charts that re-render as their size changes is straightforward. For simple charts, use the Cartesian chart component, or create more complex charting layouts with d3fc-element.
Canvas / SVG
D3(v4) introduced d3-path, which is an abstraction over SVG and Canvas, allowing path generators to write to both. D3FC embraces this pattern throughout our components, all of the d3fc-series components support both Canvas and SVG rendering.
Transitions
Creating D3 charts where each of the elements transitions correctly is a challenge. All of the D3FC components have been built with transitions support included.
Decorate
Most chart APIs are complex and expansive in order to provide flexibility. D3FC takes a fundamentally different approach, where the underlying power of the data-join is exposed via the decorate pattern.
Composition
D3FC favours simple interfaces and composition. If the interface for a component does not fulfil your needs, just open it up, look at the code and make use of the lower-level components that it was built with.


Io Reference
Server
/
User
/
User
This object provides access to the local operating system's information about the current user.
homeDirectory
Returns the current user's home directory as a Directory object.
name
Returns the current user's name.


spa
shared
package
shared
Visibility
Public
All
Type Members
trait
Api
extends
AnyRef
case class
LinkObject
(
id:
Option
[
Long
]
,
sourceId:
String
,
title:
String
,
href:
String
)
extends
Product
with
Serializable
case class
TodoItem
(
id:
String
,
timeStamp:
Int
,
content:
String
,
priority:
TodoPriority
,
completed:
Boolean
)
extends
Product
with
Serializable
sealed
trait
TodoPriority
extends
AnyRef
Value Members
object
TabFeedSources
object
TabId
object
TodoHigh
extends
TodoPriority
with
Product
with
Serializable
object
TodoLow
extends
TodoPriority
with
Product
with
Serializable
object
TodoNormal
extends
TodoPriority
with
Product
with
Serializable
object
TodoPriority
Ungrouped


"Sign in with Apple" Passport Strategy
Use Apple's brand new sign-in service with Passport.
Warning: "Sign in with Apple" is not actually on the market yet, and this library was developed according to the documentation specifications. Use with caution.
Documentation
Installation
npm install passport-apple-sign-in --save
Usage example
Use it like you would any other Passport strategy:
var AppleSignInStrategy = require('passport-apple-sign-in');
passport.use(
new AppleSignInStrategy(
{
clientID: appKey,
clientSecret: appSecret,
callbackURL: 'https://example.com/auth/apple-sign-in/callback'
},
function(accessToken, refreshToken, expires_in, profileData, done) {
const user = await Database.findUser(/* ... */);
return done(null, user);
}
)
);
For detailed documentation, please refer to the Docs.
Release History
- 0.0.4
- Added .npmignore to remove docs from build
- 0.0.3
- Removed false dependency on express
- 0.0.2
- Fixed minor docs issues
- 0.0.1
- Implementation according to specs
Authors
Lukas Mateffy – @Capevace – mateffy.me
Distributed under the MIT license. See LICENSE
for more information.
Contributing
- Fork it (https://github.com/capevace/passport-apple-sign-in/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
Acknowledgments
Passport Spotify for the basic Strategy template.


This is a simple mobile application, it helps you to get pray times quickly.
Get prayer times with one click.
Muslim Pray Times Application , it is made for getting pray times for all the muslims around the world.
you can open the application in any type of devices : mobile , ipad , tablet...etc
This application is made by flutter .
you can find the documentation of the code source on our github soon.
Download it on Play Store and App Store
tape the name of your city and get the pray times on your location .
get your city pray time with one CLICK.


Home
About Me
LIKES
- I love photography as you can tell from the background images especially street and potrait photography
- I'm a die hard street style enthusiast meaning anything to do with street style I gots to know
- I dont think there is anyone whose doesn't like binge watching movie and shows


GABR
Cell-surface proteins that bind GAMMA-AMINOBUTYRIC ACID with high affinity and trigger changes that influence the behavior of cells. GABA-A receptors control chloride channels formed by the receptor complex itself. They are blocked by bicuculline and usually have modulatory sites sensitive to benzodiazepines and barbiturates. GABA-B receptors act through G-proteins on several effector systems, are insensitive to bicuculline, and have a high affinity for L-baclofen.
(mesh:D018079)
Cross-references
Synonyms
| Synonym |
Reference |
Specificity |
| GABA receptors |
|
Exact
|
| gamma-aminobutyric-acid A receptor |
|
Exact
|
| GABA receptor |
|
Exact
|
| GABA-A receptor |
|
Exact
|
| γ-aminobutyric-acid A receptor |
|
Exact
|
Incoming Relations
Outgoing Relations


Program started at Mon-07-May-2007 18:02.
Analysed requests from Fri-01-Dec-2006 00:00 to Sun-31-Dec-2006 23:59 (31.00 days).
(Go To: Top | General Summary | Monthly Report | Daily Summary | Hourly Summary)
This report contains overall statistics.
Successful requests: 14,406,973
Average successful requests per day: 464,751
Successful requests for pages: 4,691,645
Average successful requests for pages per day: 151,346
Failed requests: 15,377
Redirected requests: 306,468
Distinct files requested: 808
Distinct hosts served: 199,578
Corrupt logfile lines: 171
Data transferred: 243.52 gigabytes
Average data transferred per day: 7.86 gigabytes
(Go To: Top | General Summary | Monthly Report | Daily Summary | Hourly Summary)
This report lists the activity in each month.
Each unit () represents 150,000 requests for pages or part thereof.
| month | reqs | pages | |
|---|---|---|---|
| Dec 2006 | 14406973 | 4691645 |
Busiest month: Dec 2006 (4,691,645 requests for pages).
(Go To: Top | General Summary | Monthly Report | Daily Summary | Hourly Summary)
This report lists the total activity for each day of the week, summed over all the weeks in the report.
Each unit () represents 25,000 requests for pages or part thereof.
| day | reqs | pages | |
|---|---|---|---|
| Sun | 2617688 | 859714 | |
| Mon | 2707613 | 881416 | |
| Tue | 1899148 | 619174 | |
| Wed | 1754191 | 567250 | |
| Thu | 1506745 | 497807 | |
| Fri | 1706360 | 567256 | |
| Sat | 2215228 | 699028 |
(Go To: Top | General Summary | Monthly Report | Daily Summary | Hourly Summary)
This report lists the total activity for each hour of the day, summed over all the days in the report.
Each unit () represents 10,000 requests for pages or part thereof.
| hour | reqs | pages | |
|---|---|---|---|
| 0 | 223148 | 76615 | |
| 1 | 113231 | 43797 | |
| 2 | 66776 | 29329 | |
| 3 | 47246 | 23290 | |
| 4 | 39822 | 20942 | |
| 5 | 46670 | 23430 | |
| 6 | 91030 | 38647 | |
| 7 | 215066 | 76551 | |
| 8 | 502215 | 163395 | |
| 9 | 785601 | 252779 | |
| 10 | 828531 | 267838 | |
| 11 | 874705 | 283625 | |
| 12 | 960972 | 318372 | |
| 13 | 918891 | 296113 | |
| 14 | 785754 | 256346 | |
| 15 | 801001 | 259621 | |
| 16 | 954165 | 303690 | |
| 17 | 1095778 | 340855 | |
| 18 | 1117940 | 352297 | |
| 19 | 1066909 | 337738 | |
| 20 | 974781 | 311582 | |
| 21 | 850953 | 277431 | |
| 22 | 656190 | 210436 | |
| 23 | 389598 | 126926 |


monitor-enter
Purpose
Acquire the monitor for the indicated object.
Details
| Op & Format |
Mnemonic / Syntax |
Arguments |
| 1d 11x |
monitor-enter vAA |
A: reference-bearing register (8 bits) |
Constraints
-
A must be a valid register index for the current stack frame.
-
Register vA must contain a reference to an object.
Behavior
-
An attempt is made for the current thread to acquire the monitor of the
indicated object. Various results are possible:
-
If the monitor is not owned by any thread at this point, then the
current thread becomes owner of the monitor. The entry count of the
indicated object is set to 1.
-
Otherwise, if the monitor is owned by the same thread that attempts the
acquiration, then the entry count of the indicated object is increased
by 1.
-
Otherwise the monitor is owned by a different thread. The current thread
sleeps until the monitor of the object is released. Once that happens, a
new attempt to acquire the monitor is made, as described here. There is
no guarantee that the second attempt (or any subsequent attempt) will be
successful.
Exceptions
-
NullPointerException if vA is null.
-
IllegalMonitorStateException if the entry count exceeds an
(implementation-dependent) upper bound for recursive monitor entries. Note
that it is unlikely this bound is ever hit, since for most implementations
the call stack will overflow before.


--- layout: post title: Battlelog API Update date: 2011-10-24 16:11:29.000000000 -05:00 categories: - Projects tags: - battlelog - battlelogapi - bf3 - bugfix - php - programming - projects - update status: publish type: post published: true meta: _edit_last: '1' author: login: Blake email<EMAIL_ADDRESS>display_name: Blake first_name: Blake last_name: Harley ---
It looks like Battlelog has gone public and there are already a number of servers up and running. Unfortunately, the game does not unlock here for another 10 hours or so.
It seems EA updated the authentication system slightly. This caused the API to not get proper credentials when logging into Battlelog. Fortunately, the fix was relatively painless. The image locations on the Battlelog CDN have also changed slightly, and those helper methods have been updated accordingly.
This is simply a bugfix release, but I plan to explore Co-op and other additions to the API when I actually have access to Battlefield 3. (Oh looky, longest headshot is actually being recorded now!)
Head over to the project page to see the specifics and download the updated API.


<ExampleView>
<UserInterface>
<Button Text="Play" Click="StartGame" />
</UserInterface>
<EventSystem />
</ExampleView>
public class ExampleView : View
{
public void StartGame()
{
Debug.Log("Play Clicked");
}
}
[ExcludeComponent("ImageComponent")]
[HideInPresenter]
public class Label : UIView
{
| Class Attribute | Description |
|---|---|
| HideInPresenter | When specified the view is not shown in the view presenter's main view selection. Used to not clutter up the main view selection with views only intended to be used internally in other views. |
| ExcludeComponent | When encountering a component field in the view the processor automatically adds the component to the view. This attribute tells the processor to not add component associated with the specified field. Used primarily to exclude one graphic component so it can be replaced with another since Unity doesn't allow multiple graphic components to be added to a view. |
| MapViewField | Allows you to map one view field to another on the class level. Usually MapTo is used when mapping fields but in some cases such as when view actions are mapped you'd want to use this instead. |
public class Example : UIView
{
public string Text;
}
<Example Text="Example Text" />
SetValue(() => Text, "Test"); // sets Text = "Test" and notifies observers
SetValue(() => ChildView.Orientation, Orientation.Horizontal);
public class Example : UIView
{
public _string Text;
}
Text.Value = "Test"; // sets value and notifies observers
Text.DirectValue = "Test"; // sets value without notifying observers
public class Example : UIView
{
public Label MyLabel;
}
<Example>
<Label Id="MyLabel" />
</Example>
<Example MyLabel.Text="Label Text" />
public class Example : UIView
{
public UnityEngine.UI.Text TextComponent;
}
<Example TextComponent.text="Example Text" />
public class TriggerExample : UIView
{
public ViewAction MyCustomAction;
}
public class ListenExample : UIView
{
public void MyCustomActionHandler(Example source, string data)
{
}
}
<ListenExample>
<TriggerExample MyCustomAction="MyCustomActionHandler" />
</ListenExample>
public class TriggerExample : UIView
{
public ViewAction Click;
}
public class Example : UIView
{
public UnityEngine.UI.Text TextComponent;
}
<Example TextComponent.text="Example Text" />
public class Example : UIView
{
[MapTo("TextComponent.text")]
public _string GameTitle;
public UnityEngine.UI.Text TextComponent;
}
GameTitle.Value = "Example Text";
<Example GameTitle="Example Text" />
public class Example : UIView
{
[ChangeHandler("TextChanged")]
public _string Text;
public virtual void TextChanged()
{
// called once at init and whenever text changes value
}
}
[MapTo("TextComponent.text", "TextChanged")]
public _string Text;
public class Example : UIView
{
public _string Player;
}
<Example Player="Default Player">
</Example>
public override void Initialize()
{
base.Initialize();
// populate runtime data, do lookups, etc.
}
Be notified when new themes, views, tutorials and updates are available


Enter an address or click the map
Place:
Type:
---
Coffee Shops
Restaurants
Gas Stations
Grocery Store
Shopping
Hotels
In Map
Go
Clear


Got Questions? We Got Answers.
1-866-702-4024 Mon & Thu 8am till 9pm Tue, Wed & Fri, 8am till 6pm
menu
Success. File is uploaded
Error uploading file
The current file is being processed...
Loading files ...


Chef Client Provisioner
Provisioner name: chef_client
The chef client provisioner allows you to provision the guest using Chef, specifically by connecting to an existing Chef Server and registering the Vagrant machine as a node within your infrastructure.
If you're just learning Chef for the first time, you probably want to start with the Chef Solo provisioner.
Warning: If you're not familiar with Chef and Vagrant already, I recommend starting with the shell provisioner.
Authenticating
The minimum required to use provision using Chef client is to provide a URL to the Chef sever as well as the path to the validation key so that the node can register with the Chef server:
Vagrant.configure("2") do |config|
config.vm.provision "chef_client" do |chef|
chef.chef_server_url = "http://mychefserver.com:4000/"
chef.validation_key_path = "validation.pem"
end
end
The node will register with the Chef server specified, download the proper run list for that node, and provision.
Specifying a Run List
Normally, the Chef server is responsible for specifying the run list for the node. However, you can override what the Chef server sends down by manually specifying a run list:
Vagrant.configure("2") do |config|
config.vm.provision "chef_client" do |chef|
# Add a recipe
chef.add_recipe "apache"
# Or maybe a role
chef.add_role "web"
end
end
Remember, this will override the run list specified on the Chef server itself.
Environments
You can specify the environment for the node to come up in using the environment
configuration option:
Vagrant.configure("2") do |config|
config.vm.provision "chef_client" do |chef|
# ...
chef.environment = "development"
end
end
Other Configuration Options
There are a few more configuration options available. These generally don't need to be modified but are available if your Chef server requires customization of these variables:
-
client_key_path
-
node_name
-
validation_client_name
Cleanup
When you provision your Vagrant virtual machine with Chef server, it creates a new Chef "node" entry and Chef "client" entry on the Chef server, using the hostname of the machine. After you tear down your guest machine, you must explicitly delete these entries from the Chef server before you provision a new one with Chef server. For example, using Chef's built-in knife
tool:
$ knife node delete precise64
$ knife client delete precise64
If you fail to do so, you'll get the following error when Vagrant tries to provision the machine with Chef client:
HTTP Request Returned 409 Conflict: Client already exists.


Scalable Topic Modeling Using Variational Inference in MapReduce
Mr.LDA is an open-source package for flexible, scalable, multilingual topic modeling using variational inference in MapReduce.
Latent Dirichlet Allocation (LDA) and related topic modeling technique are useful for exploring document collections. Because of the increasing prevalence of large datasets, there is a need to improve the scalability of inference for LDA. Unlike other techniques that use Gibbs sampling, Mr.LDA uses variational inference, which easily fits into a distributed environment. More importantly, this variational implementation, unlike highly tuned and specialized implementations based on Gibbs sampling, is easily extensible — examples include informed priors to guide topic discovery and extracting topics from a multilingual corpus.
More details are described in our paper:
Ke Zhai, Jordan Boyd-Graber, Nima Asadi, and Mohamad Alkhouja. Mr. LDA: A Flexible Large Scale Topic Modeling Package using Variational Inference in MapReduce. Proceedings of the 21th International World Wide Web Conference (WWW 2012), 2012, pages 879-888, Lyon, France. [slides]
Mr.LDA was developed in the context of our NSF-funded project on Cross-Language Bayesian Models for Web-Scale Text Analysis Using MapReduce (CCF-1018625).
For instructions on getting started, look at the readme.
This work has been supported by the US NSF under awards IIS-0916043 and CCF-1018625. Any opinions, findings, or conclusions are the researchers and do not necessarily reflect those of the sponsors.


WITNESS LIST Ways & Means Committee May 9, 2006-1:00P HB 152 For: Venable, Peggy (Self and Americans for Prosperity) Against: Casey, Daniel T. (Fast Growth School Coalition) Clark, Catherine (Texas Association of School Boards) Hutcheson, Mark (Self and Texas Assn of Property Tax Professionals) Raab, Ted Melina (Texas Federation of Teachers) On: Falick, Mike (Spring Branch ISD) HB 164 For: Brady, Sharon (Self) Brauner, Jan (Self and Americans for Prosperity) Mintz, David (Texas Apartment Association) Schlomach, Ph. D., Byron (Texas Public Policy Foundation) Venable, Peggy (Self and Americans for Prosperity) Against: Allison, Jim (County Judges & Commissioners Assn. of Tx.) Browder, Leslie (City of Austin) Casey, Daniel T. (Fast Growth School Coalition) Day, Aaron (The City of Fort Worth) Hamlin, Marc (President Texas Association of Counties) Kautz, David (City of Round Rock) Lee, Donald (Texas Conference of Urban Counties) Mendez, Mark (Tarrant County) Pardue, Craig (Dallas County) Sandlin, Bennett (Texas Municipal League) Slagel, Gary (City of Richardson/Metroplex Mayors Assoc.) HJR 36 Against: Casey, Daniel T. (Fast Growth School Coalition) Hutcheson, Mark (Self and Texas Assn of Property Tax Professionals) Raab, Ted Melina (Texas Federation of Teachers)


module: Python file (.py
) that contains definitions and statements.
package: a collection of modules in the same directory
Package directory must contain __init__.py
for Python to "see" it*
* ... Not true with namespace packages
compphys
package structure:
compphys/
|-- __init__.py
|-- constants.py
|-- physics.py
|-- more/
| |-- __init__.py
| |-- morephysics.py
| |-- evenmorephysics.py
|-- assets/
| |-- data.txt
| |-- orphan.py
|-- tests/
| |-- test_physics.py
| |-- test_morephysics.py
...
compphys
contents:__init__.py
:
tells Python this is a package; typically empty. Executed before any other modules imported.
constants.py
and physics.py
more
is a submodule
raw
is a subdirectory;
not a submodule since it doesn't have __init__.py
(orphan.py
is unreachable!)
tests
: subdirectory with tests
Use attribute access operator: .
import compphys.constants
import compphys.more.morephysics
two_pi = 2 * compphys.constants.pi
These are absolute imports
From physics.py
:
from . import constants
from .constants import pi, h
from .more import morephysics
From evenmorephysics.py
:
from . import morephysics
from .. import constants
from ..constants import pi, h
Rely on the Python standard library, NumPy, SciPy, etc. as much as you need.
from time import sleep
print("This is my file to demonstrate best practices.")
def process_data(data):
print("Beginning data processing...")
modified_data = data + " that has been modified"
sleep(3)
print("Data processing finished.")
return modified_data
def read_data_from_web():
print("Reading data from the Web")
data = "Data from the web"
return data
def write_data_to_database(data):
print("Writing data to a database")
print(data)
def main():
data = read_data_from_web()
modified_data = process_data(data)
write_data_to_database(modified_data)
if __name__ == "__main__":
main()
pip
and PyPI pip
can be used to install Python packages from source or from PyPI
pip
how to install your package by creating a setup.py
file for the setuptools
package to use.
setup.py
goes at the same level as your package's source code directory.
setup.py
compphys/
|-- __init__.py
|-- _version.py
|-- constants.py
|-- physics.py
|-- more/
| |-- __init__.py
| |-- morephysics.py
| |-- evenmorephysics.py
|-- assets/
| |-- data.txt
| |-- orphan.py
|-- tests/
| |-- test_physics.py
| |-- test_morephysics.py
LICENSE
README.md
CHANGELOG.md
CONTRIBUTING.md
CODE_OF_CONDUCT.md
setup.py
imports and calls setup()
function, which can both install
a package locally and make/upload to PyPI
from setuptools import setup
setup(
name='compphys',
version='0.1.0',
description='Effective Computation in Physics',
author='Anthony Scopatz and Kathryn D. Huff',
<EMAIL_ADDRESS>url='http://physics.codes',
classifiers=[
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'Programming Language :: Python :: 3',
],
license='BSD-3-Clause',
python_requires='>=3',
zip_safe=False,
packages=['compphys', 'compphys.more', 'compphys.tests'],
# or find automatically:
# packages=find_packages(),
package_dir={
'compphys': 'compphys',
'compphys.more': 'compphys/more',
'compphys.tests': 'compphys/tests',
},
#
include_package_data=True,
# or you can specify explicitly:
package_data={
'compphys': ['assets/*.txt']
},
)
setup.py
copy in README, version information from
_version.py
file in your package, and include dependency information.
setup.cfg
file with some additional configuration options
MANIFEST.in
file to tell PyPI to bring other files.
from setuptools import setup
from codecs import open
from os import path
import sys
here = path.abspath(path.dirname(__file__))
version = {}
with open(path.join(here, 'compphys', '_version.py')) as version_file:
exec(version_file.read(), version)
__version__ = version['__version__']
with open(path.join(here, 'README.md')) as readme_file:
readme = readme_file.read()
with open(path.join(here, 'CHANGELOG.md')) as changelog_file:
changelog = changelog_file.read()
long_description = readme + '\n\n' + changelog
install_requires = [
'numpy',
]
tests_require = [
'pytest',
'pytest-cov',
]
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
setup_requires = ['pytest-runner'] if needs_pytest else []
setup(
name='compphys',
version=__version__,
description='Effective Computation in Physics',
long_description=long_description,
author='Anthony Scopatz and Kathryn D. Huff',
<EMAIL_ADDRESS>url='http://physics.codes',
classifiers=[
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'Programming Language :: Python :: 3',
],
license='BSD-3-Clause',
install_requires=install_requires,
tests_require=tests_require,
python_requires='>=3',
setup_requires=setup_requires,
zip_safe=False,
packages=['compphys', 'compphys.more', 'compphys.tests'],
package_dir={
'compphys': 'compphys',
'compphys.more': 'compphys/more',
'compphys.tests': 'compphys/tests',
},
include_package_data=True,
)
_version.py
:
__version_info__ = (0, 1, 0, 'a0')
__version__ = '.'.join(map(str, __version_info__[:3]))
if len(__version_info__) == 4:
__version__ += __version_info__[-1]
CHANGELOG.md
:
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [0.1.0] - 2015-10-06
### Added
- Answer "Should you ever rewrite a change log?".
### Changed
- Improve argument against commit logs.
- Start following [SemVer](http://semver.org) properly.
## [0.0.8] - 2015-02-17
### Changed
- Update year to match in every README example.
- Reluctantly stop making fun of Brits only, since most of the world
writes dates in a strange way.
### Fixed
- Fix typos in recent README changes.
- Update outdated unreleased diff link.
## [0.0.7] - 2015-02-16
### Added
- Link, and make it obvious that date format is ISO 8601.
### Changed
- Clarified the section on "Is there a standard change log format?".
### Fixed
- Fix Markdown links to tag comparison URL with footnote-style links.
## [0.0.6] - 2014-12-12
### Added
- README section on "yanked" releases.
## [0.0.5] - 2014-08-09
### Added
- Markdown links to version tags on release headings.
- Unreleased section to gather unreleased changes and encourage note
keeping prior to releases.
## [0.0.4] - 2014-08-09
### Added
- Better explanation of the difference between the file ("CHANGELOG")
and its function "the change log".
### Changed
- Refer to a "change log" instead of a "CHANGELOG" throughout the site
to differentiate between the file and the purpose of the file — the
logging of changes.
### Removed
- Remove empty sections from CHANGELOG, they occupy too much space and
create too much noise in the file. People will have to assume that the
missing sections were intentionally left out because they contained no
notable changes.
## [0.0.3] - 2014-08-09
### Added
- "Why should I care?" section mentioning The Changelog podcast.
## [0.0.2] - 2014-07-10
### Added
- Explanation of the recommended reverse chronological release ordering.
## 0.0.1 - 2014-05-31
### Added
- This CHANGELOG file to hopefully serve as an evolving example of a
standardized open source project CHANGELOG.
- CNAME file to enable GitHub Pages custom domain
- README now contains answers to common questions about CHANGELOGs
- Good examples and basic guidelines, including proper date formatting.
- Counter-examples: "What makes unicorns cry?"
[Unreleased]: https://github.com/olivierlacan/keep-a-changelog/compare/v1.0.0...HEAD
[0.1.0]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.8...v0.1.0
[0.0.8]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.7...v0.0.8
[0.0.7]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.6...v0.0.7
[0.0.6]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.5...v0.0.6
[0.0.5]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.4...v0.0.5
[0.0.4]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.3...v0.0.4
[0.0.3]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.2...v0.0.3
[0.0.2]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.1...v0.0.2
python setup.py install
pip install <path>
pip install -e <path>
Semantic Versioning: Given a version number MAJOR.MINOR.PATCH, increment the:
To start: set initial development release at 0.1.0 and increment minor version for subsequent releases.


I'm sorry, but it appears that your browser does not support HTML5 Canvas. I guess you should try a better browser...
Keys: Left Arrow, Right Arrow and Space to jump.


The crisp protruding scales of this reptile portray somewhat of a majestic dragon.
A stunning view withinn Zion National Park, Southwest Utah.
The Sonoran Desert is home of the cacti. Their spines give them a callous disposition until you see one in full bloom.
A few more beautiful red rocks.
The Long-nosed Leopard Lizard can be found in the Western United States in deserts with little vegetation. This particular specimen was found at Pioneer Park in Saint George, Utah.
"Darkness there, and nothing more." - Edgar Allan Poe
This image had an exposure time of 20 min, resulting in this spectacular star spin.
Another semi-long exposure; it's what lights up the night.
This is actually a plant, not an underwater sea monster with long tenicles. The yucca plant is widely used for decoration by houses or in gardens but is, I hear, also traditionally used as shampoo by some Native Americans.
A classic shot of life's neverending need for light.
Hurrah, hurrah.
The two boys are scouts on an outing in the Grand Tetons of Wyoming. The range's ominous presence creates a strangely beautiful atmosphere.
From an early morning drive to a hike up a steep mountain to a tour of the Timpanoguous Caves, a dimly lit moon brightens the scene.
With a steamed rainbow, a snake-green river, and several roughly painted clouds, this image undoubtably is one of my favorites.
This tree has likely been around long enough to see this once desolate valley transformed into a bustling community.
The only shade for miles.
I view these pair of windmills as "Father and Son."
Copyright © nathandickson.github.io 2017


| Siteswap | Hand Movement | Prop Type |
|---|
Gunswap is a web-based juggling animator. Patterns are defined using standard siteswap notation with support for synchronous, multiplex, bouncing and passing. Some examples to get you started:
Check out http://gunswap.blogspot.com/ for updates on development.
Gunswap uses some really awesome open source projects:


--- layout: default ---
This page describes the functions available in Jsonnet's standard library, i.e. the object
implicitly bound to the std
variable. Some of the standard library functions can be
implemented in Jsonnet. Their code can be found in the std.jsonnet file. The behavior of
some of the other functions, i.e. the ones that expose extra functionality not otherwise available
to programmers, is described formally in the specification.
The standard library is implicitly added to all Jsonnet programs by enclosing them in a local
construct. For example, if the program given by the user is {x: "foo"}
, then the
actual code executed would be local std = { ... }; {x: "foo"}
. The functions in the
standard library are all hidden fields of the std
object.
If an external variable with the given name was defined, return its string value. Otherwise, raise an error.
Note that this is a field. It contains the current Jsonnet filename as a string.
Return a string that indicates the type of the value. The possible return values are: "array", "boolean", "function", "null", "number", "object", and "string".
Depending on the type of the value given, either returns the number of elements in the array,
the number of codepoints in the string, the number of parameters in the function, or the number of
fields in the object. Raises an error if given a primitive value, i.e. null
,
true
or false
.
Returns true
if the given object has the field (given as a string), otherwise
false
. Raises an error if the arguments are not object and string respectively.
Returns false if the field is hidden..
Returns an array of strings, each element being a field from the given object. Does not include hidden fields.
As std.objectHas
but also includes hidden fields.
As std.objectFields
but also includes hidden fields.
The following mathematical functions are available:
std.abs(n)
,
std.max(a, b)
,
std.min(a, b)
,
std.pow(x, n)
,
std.exp(x)
,
std.exponent(x)
,
std.mantissa(x)
,
std.floor(x)
,
std.ceil(x)
,
std.sqrt(x)
,
std.sin(x)
,
std.cos(x)
,
std.tan(x)
,
std.asin(x)
,
std.acos(x)
, and
std.atan(x)
.
The function std.mod(a, b)
is what the % operator is desugared to. It performs
modulo arithmetic if the left hand side is a number, or if the left hand side is a string, it does
Python-style string formatting with std.format()
.
Ensure that a == b
. Returns true
or throws an error message.
Convert the given argument to a string.
Returns the positive integer representing the unicode codepoint of the character in the given
single-character string. This function is the inverse of std.char(n)
.
Returns a string of length one whose only unicode codepoint has integer id n
. This function is the inverse of std.codepoint(str)
.
Returns a string that is the part of s
that starts at offset from
and
is len
codepoints long.
Returns whether the string a is prefixed by the string b.
Returns whether the string a is suffixed by the string b.
Returns a string that is the part of s
that starts at offset from
and
is len
codepoints long.
Split the string str
into an array of strings, divided by the single character
c
.
Example: std.split("foo/bar", "/")
yields ["foo", "bar"]
.
Example: std.split("/foo/", "/")
yields ["", "foo", ""]
.
As std.split(str, c) but will stop after maxsplits
splits, thereby the largest array
it will return has length maxsplits + 1
. A limit of -1 means unlimited.
Example: std.splitLimit("foo/bar", "/", 1)
yields ["foo", "bar"]
.
Example: std.splitLimit("/foo/", "/", 1)
yields ["", "foo/"]
.
Split the string str
into an array of strings, each containing a single
codepoint.
Example: std.stringChars("foo")
yields ["f", "o", "o"]
.
Format the string str
using the values in vals
. The values can be an
array, an object, or in other cases are treated as if they were provided in a singleton array. The
string formatting follows the same rules as Python.
The %
operator can be used as a shorthand for this function.
Example: std.format("Hello %03d", 12)
yields "Hello 012"
.
Example: "Hello %03d" % 12
yields "Hello 012"
.
Example: "Hello %s, age %d" % ["Foo", 25]
yields "Hello Foo, age 25"
.
Example: "Hello %(name)s, age %(age)d" % {age: 25, name: "Foo"}
yields
"Hello Foo, age 25"
.
Wrap str
in single quotes, and escape any single quotes within str
by
changing them to a sequence '"'"'. This allows injection of arbitrary strings as arguments
of commands in bash scripts.
Convert $ to $$ in str
. This allows injection of arbitrary strings into systems
that use $ for string interpolation (like Terraform).
Convert str
to allow it to be embedded in a JSON representation, within a string. This adds quotes, escapes backslashes, and escapes unprintable characters.
Example:
{
local description = "Multiline\nc:\\path",
json: "{name: %s}" % std.escapeStringJson(description)
}
yields: {"json": "{name: \"Multiline\\nc:\\\\path\"}"}
Convert str
to allow it to be embedded in Python. This is an alias for std.escapeStringJson.
Convert the given structure to a string in INI format. This allows using Jsonnet's object model to build a configuration to be consumed by an application expecting an INI file. The data is in the form of a set of sections, each containing a key/value mapping. These examples should make it clear:
{
main: { a: "1", b: "2" },
sections: {
s1: {x: "11", y: "22", z: "33"},
s2: {p: "yes", q: ""},
empty: {},
}
}
Yields a string containing this INI file:
a = 1
b = 2
[empty]
[s1]
x = 11
y = 22
z = 33
[s2]
p = yes
q =
Convert the given value to a JSON-like form that is compatible with Python. The chief differences are True / False / None instead of true / false / null.
{
b: ["foo", "bar"],
c: true,
d: null,
e: { f1: false, f2: 42 },
}
Yields a string containing this Python code:
{"b": ["foo", "bar"], "c": True, "d": None, "e": {"f1": False, "f2": 42}}
Convert the given object to a JSON-like form that is compatible with Python. The key
difference to std.manifestPython
is that the top level is represented as a list of
Python global variables.
{
b: ["foo", "bar"],
c: true,
d: null,
e: { f1: false, f2: 42 },
}
Yields a string containing this Python code:
b = ["foo", "bar"]
c = True
d = None
e = {"f1": False, "f2": 42}
Create a new array of sz
elements by calling func(i)
to initialize each
element. Func is expected to be a function that takes a single parameter, the index of the element
it should initialize.
Example: std.makeArray(3,function(x) x * x)
yields [0, 1, 4]
.
Return the number of times that x occurs in arr.
Apply the given function to every element of the array to form a new array.
This is primarily used to desugar array comprehension syntax. It first filters, then maps thte given array, using the two functions provided.
Return a new array containing all the elements of arr
for which the
func
function returns true.
Classic foldl function. Calls the function on the result of the previous function call and each
array element, or init
in the case of the initial element. Traverses the array from
left to right.
Classic foldl function. Calls the function on each array element and the result of the previous
function call, or init
in the case of the initial element. Traverses the array from
right to left.
Return an array of ascending numbers between the two limits, inclusively.
If sep
is a string, then arr
must be an array of strings, in which case
they are concatenated with sep
used as a delimiter. If sep
is an array,
then arr
must be an array of arrays, in which case the arrays are concatenated in the
same way, to produce a single array.
Example1: std.join(".", ["www", "google", "com"])
yields
"www.google.com"
.
Example2: std.join([9, 9], [[1], [2, 3]])
yields [1, 9, 9, 2, 3]
.
Concatenate an array of strings into a text file with newline characters after each string. This is suitable for constructing bash scripts and the like.
Concatenate an array of arrays into a single array.
Sorts the array using the <= operator.
Removes successive duplicates. When given a sorted array, removes all duplicates.
Syntax sugar for std.uniq(std.sort(arr)).
Set intersection operation (values in both a and b).
Set union operation (values in either a or b). Note that + on sets will simply concatenate the arrays, possibly forming an array that is not a set (due to not bein ordered without duplicates).
Set difference operation (values in a but not b).
Encodes the given value into a base64 string. The encoding sequence is A-Za-z0-9+/ with = to pad the output to a multiple of 4 characters. The value can be a string or an array of numbers, but the codepoints / numbers must be in the 0 to 255 range. The resulting string has no line breaks.
Decodes the given base64 string into an array of bytes (number values). Currently assumes the input string has no linebreaks and is padded to a multiple of 4 (with the = character). In other words, it consumes the output of std.base64().
Behaves like std.base64DecodeBytes() except returns a string instead of an array of bytes.
Applies patch
to target
according to RFC7396


Integer Intervals
问题描述 :
An integer interval [a,b], a < b, is a set of all consecutive integers beginning with a and ending with b.
Write a program that: finds the minimal number of elements in a set containing at least two different integers from each interval.
Write a program that: finds the minimal number of elements in a set containing at least two different integers from each interval.
输入:
The first line of the input contains the number of intervals n, 1 <= n <= 10000. Each of the following n lines contains two integers a, b separated by a single space, 0 <= a < b <= 10000. They are the beginning and the end of an interval.
输出:
Output the minimal number of elements in a set containing at least two different integers from each interval.
样例输入:
4 3 6 2 4 0 2 4 7
样例输出:
4
解题代码:
//* @author<EMAIL_ADDRESS>import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { InputStreamReader is=new InputStreamReader(System.in); BufferedReader in=new BufferedReader(is); int a=Integer.parseInt(in.readLine()); int ans=2,i; my[] arr=new my[a]; String[] ss; for(i=0;i< a;i++) { ss=in.readLine().split(" "); int x=Integer.parseInt(ss[0]); int y=Integer.parseInt(ss[1]); arr[i]=new my(x,y); } Arrays.sort(arr); int x=arr[0].b,y=x-1; for(i=1;i< a;i++) { if(y>=arr[i].a){} else if(x>=arr[i].a) { y=x; x=arr[i].b; ans++; } else { x=arr[i].b; y=x-1; ans+=2; } } System.out.printf("%d\n",ans); } } class my implements Comparable< my> { public int a,b; public my(int x,int y) { a=x; b=y; } public int compareTo(my o) { return b-o.b; } }
(adsbygoogle = window.adsbygoogle || []).push({});
This write-up presents the gentle in which we can notice the fact. this is extremely wonderful one and gives in depth info.
请问printAllCombination的时间复杂度怎么分析呢？
很好的思路，可以借鉴
为什么暴力求解方法循环到sqrt(n) 就可以了呢
Excellent Web-site! I required to ask if I might webpages and use a component of the net web website and use a number of factors for just about any faculty process. Please notify me through email regardless of whether that would be excellent. Many thanks
多谢提醒
多谢支持！
afsasfasfasf
学习了