{% extends "navbar.html" %} {% block styles %} {{ super() }} {% endblock %} {% block home_active %}active{% endblock %} {% block app_content %}
“Now if you are going to win any battle you have to do one thing. You have to make the mind run the body. Never let the body tell the mind what to do. The body will always give up. It is always tired in the morning, noon and night. But the body is never tired if the mind is not tired.”
George S. Patton


{% extends "global/Page.html" %} {% load otree static %} {% block title %} Feedback {% endblock %} {% block content %}
Decision 1. The number picked by the computer was {{player.computer_1}}. The number x you chose was {{player_decision_1}}.
{% if player.decision_1 >= player.computer_1 %} Therefore you played the lottery. {% if player.lottery[0] == 1 %} The lottery was successful, so you earned {}€. {% else %} The lottery was not successful, so you earned 0. {% endif %} {% else %} Therefore you earned 5€. {% endif %} {% endblock %}


Customization
Fire UI color
Start customizing Fire UI's color with your preferences by doing these steps:
- Open
Fire UI.css
file with your file editor - In the
:root
section, customize colors' value with your preferences. - Voila! You've customize the color of Fire UI
Fire UI font
Fire UI use Roboto
, Noto
and Work
font as default. To customize it, follow these steps:
- Open
Fire UI.css
file with your file editor - Fonts are imported in
@font-face
. Edit them with your preferences. - Remember to add fonts you added into
.html
'sfont-family
- Voila! You've customize the font of Fire UI
Fire UI scrollbar
Fire UI has a custom scrollbar by default. If you want to change it, open FireUI.css
file and edit the value inside ::webkit-scrollbar


Daniel Jones’ girlfriend, Ella Bonafede, couldn’t bring Giants good luck
by Jaclyn HendricksSo much for Daniel Jones’ No. 1 fan bringing the Giants some much-needed luck.
On Sunday, Ella Bonafede, the girlfriend of the rookie Giants quarterback, shared a snap from Soldier Field, where New York was hoping to score its third win of the season but ended up falling to the Bears, 19-7.
Bonafede, who caught Jones’ first win as the starter in September, has shown the quarterback and Big Blue plenty of love this season.
Before the Giants battled the Tampa Bay Buccaneers in Week 3, Bonafede posted a sweet message in support of Jones, who helped lead the Giants to a 32-31 road win.
Unfortunately for Bonafede, she’s seen Jones win only once more since then as the Giants have lost seven straight.


 Did you reward the others?
If yes, how did this reward affect worker contributions? Please briefly explain in your own words.
5.Did you punish others?
If yes, how did this punishment affect worker contributions? Please briefly explain in your own words.
6.Did you neither reward nor punish others?
If yes, how did this decision affect worker contributions? Please briefly explain in your own words.
7. Did you reward yourself?
If yes, why did you do it? Please briefly explain in your own words.
8. Did you punish yourself?
If yes, why did you do it? Please briefly explain in your own words.
7. How did you try to maximize your payout in the rounds? Please explain your strategy:


As administrators of the Family History Database, we would like to make your experience a good one. If you have any feedback that would assist us in this effort, please feel free to contact us!
Tools to contact the admin can be made available by validating your account. Please register, and then check your email for a message from<EMAIL_ADDRESS>that contains a validation link.


In accordance with U.S. Government Open Data Policy and the NIST Plan for providing public access to the results of federally funded research data, NIST maintains a publicly accessible listing of available data, the NIST Public Dataset List (json).
The government open data policy for managing information as an asset may be found on the Project Open Data website.
Please refer to the NIST Open Data Strategy for Implementation and Processes for additional organizational detailed description.


ControlAltDefeat
Home
(current)
Players
Reports
Drives
Players
{% if result %}
Player Name
Position
Player Tag
Height (in)
Weight (lbs)
{% for row in result %}
{% endfor %} {% endif %}
{% for message in get_flashed_messages() %}
×
{{ message }}
{% endfor %}
Insert New Player
Player Name
Position
Player Tag
Height (in)
Weight (lbs)
Active?
Remove a Player
{% for row in result %}
{{row["name"]}}
{% endfor %}


Hackital After Party
April 29, 2018, 6:00PM
Tompkins Hall - Room M06
Claim Tokens
You'll receive
H
100


A multidimensional explorer of Topic Models results of LDA..
The parallel coordinates displays each topic discovered by the output of the corpus of ducments pass into LDA.
Brush: Drag vertically along an axis.
Remove Brush: Tap the axis background.
Reorder Axes: Drag a label horizontally.
Invert Axis: Tap an axis label.
Remove Axis: Drag axis label to the left edge.


Methods
get()
The map of records received by the event.
Returns:
get()
The map of records received by the event.
- Source:
Returns:
get()
The map of records received by the event.
- Source:
Returns:
value(record) → {Promise}
A function that is automatically invoked and passed each record that
the function has received from the associated DynamoDB stream.
Parameters:
| Name | Type | Description |
|---|---|---|
record |
Record | the record to perform an action with |
- Source:
Returns:
a promise that should be resolved or rejected
- Type
- Promise
Type Definitions
lambdaCallback(res, bodyopt)
A Lambda Callback signals to AWS Lambda that the function has completed
either successfully or otherwise. It can contain a result body (as a string)
or throw an Error object.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
res |
null | Error | The result of the function being called | ||
body |
string |
<optional> |
"" | A string response payload |
- Source:


Disney+ reaches 10 million subscribers on its first day of new streaming service launch
Disney's answer to Netflix has finally landed and exceeded sign-up expectations on the first day of its launch
by Tiffany WallisThe new Disney streaming service hit more than 10 million subscribers as it launched in the US yesterday, far exceeding expectations.
Shares in the company were reportedly up nearly 5% on the New York Stock Exchange on Wednesday afternoon, following the tremendous launch success.
In April the iconic entertainment giant unveiled its future plans and revealed its hopes to reach 60 to 90 million Disney+ subscribers globally by 2024.
Following day one's huge influx of sign-ups, these figures seem possible.
According to Mail Online , Disney invested billions in its new streaming service, which costs $7 a month or $70 a year after a 7-day free trial.
Th publication also reported on the rumoured technical glitches on launch dau which the company claimed were caused by higher-than-expected demand.
The new service joins Apple TV, Amazon Prime, BBC and ITV online ventures and Netflix in the top comprehensive streaming platforms line-up.
The new digital platform features previous shows and films, as well as new content exclusive only to Disney+.
It was recently reported that the service would initially boast more than 7,500 episodes and 500 films in it first year.
Highlights include animated classics such as Snow White and Moana as well as favourite movies like Who Framed Roger Rabbit, Flubber and High School Musical.
Disney+ will not only include a huge number of Disney's own back catalogue but also a whole slate of original content, including Star Wars live-action television series The Mandalorian , starring Narcos star Pedro Pascal in the title role as a bounty hunter active after the events of Return of the Jedi.
The Marvel Cinematic Universe will also be getting a serious look-in as well, with multiple series confirmed to be set in the world of the Avengers, with series for The Falcon and the Winter Soldier , WandaVision, Loki, and She-Hulk , to name just a few
Disney+ works the same way as other streaming services. It is available via an app on Smart TVs and mobile devices, as well as via browsers.
Users can also download shows to watch offline.
Customers with Verizon wireless and home-internet plans were in luck as they were offered Disney+ for a year for free.
It is rumoured that by the end of 2019, there’s likely to be hardly any Disney-created content left on rival platform Netflix.
Disney+ launches in the UK on March 31, 2020.


HTML
The language for building web pages
HTML Example:
! DOCTYPE html
html
title
body
h1 This is a heading
/h1
p This is a paragraph.
/p
/body
/html
CSS
The language for styling web pages
CSS Example:
body {
background-color: lightblue;
}
h1 {
color:
white;
text-align: center;
}
p {
font-family: verdana;
font-size: 20px;
}
JavaScript
The language for programming web pages
JavaScript Example:
button
onclick Click Me!
/button
script
myFunction( ) {
x =
document.getElementById( "demo" ) ;
x.style.fontSize =
"25px" ;
x.style.color =
"red" ;
}
</script
SQL
The language for accessing databases
SQL Example:
SELECT *
FROM Customers
WHERE Country=
'Mexico' ;
Python
A programming language
PHP
A web-server programming language
jQuery
A Javascript library for developing web pages
Java
A programming language
w3.css
A modern CSS framework for faster and better responsive web pages
color picker
Bootstrap
A CSS framework for faster and better responsive web pages
Exercises
Test yourself with exercises
Web Templates
Browse our selected of free responsive HTML Templates
how to section
Code snippets for HTML, CSS and JavaScript


|
Event<TSource>(TSource, String)
|
Creates a task that completes when an event is raised.
|
|
Event<TSource, TEventArgs>(TSource, String)
|
Creates a task that completes when an event is raised, the result of the task is the event arguments passed to the event handler.
|
|
FromAsyncCallback<T1>(Func<T1, AsyncCallback, Object, IAsyncResult>, Action<IAsyncResult>, T1)
|
Creates a System.Threading.Tasks.Task from a BeginAsync.. EndAsync pair of methods.
|
|
FromAsyncCallback<TReturn>(Func<AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TReturn>)
|
Creates a System.Threading.Tasks.Task from a BeginAsync.. EndAsync pair of methods.
|
|
FromAsyncCallback<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, AsyncCallback, Object, IAsyncResult>, Action<IAsyncResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
|
Creates a System.Threading.Tasks.Task from a BeginAsync.. EndAsync pair of methods.
|
|
FromAsyncCallback<T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TReturn>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
|
Creates a System.Threading.Tasks.Task from a BeginAsync.. EndAsync pair of methods.
|
|
FromAsyncCallback<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, AsyncCallback, Object, IAsyncResult>, Action<IAsyncResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
|
Creates a System.Threading.Tasks.Task from a BeginAsync.. EndAsync pair of methods.
|
|
FromAsyncCallback<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TReturn>, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
|
Creates a System.Threading.Tasks.Task from a BeginAsync..        EndAsync pair of methods.
|
|
FromAsyncCallback<T1, T2>(Func<T1, T2, AsyncCallback, Object, IAsyncResult>, Action<IAsyncResult>, T1, T2)
|
Creates a System.Threading.Tasks.Task from a BeginAsync.. EndAsync pair of methods.
|
|
FromAsyncCallback<T1, TReturn>(Func<T1, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TReturn>, T1)
|
Creates a System.Threading.Tasks.Task from a BeginAsync.. EndAsync pair of methods.
|
|
FromAsyncCallback<T1, T2, T3>(Func<T1, T2, T3, AsyncCallback, Object, IAsyncResult>, Action<IAsyncResult>, T1, T2, T3)
|
Creates a System.Threading.Tasks.Task from a BeginAsync.. EndAsync pair of methods.
|
|
FromAsyncCallback<T1, T2, TReturn>(Func<T1, T2, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TReturn>, T1, T2)
|
Creates a System.Threading.Tasks.Task from a BeginAsync.. EndAsync pair of methods.
|
|
FromAsyncCallback<T1, T2, T3, T4>(Func<T1, T2, T3, T4, AsyncCallback, Object, IAsyncResult>, Action<IAsyncResult>, T1, T2, T3, T4)
|
Creates a System.Threading.Tasks.Task from a BeginAsync.. EndAsync pair of methods.
|
|
FromAsyncCallback<T1, T2, T3, TReturn>(Func<T1, T2, T3, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TReturn>, T1, T2, T3)
|
Creates a System.Threading.Tasks.Task from a BeginAsync.. EndAsync pair of methods.
|
|
FromAsyncCallback<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5, AsyncCallback, Object, IAsyncResult>, Action<IAsyncResult>, T1, T2, T3, T4, T5)
|
Creates a System.Threading.Tasks.Task from a BeginAsync.. EndAsync pair of methods.
|
|
FromAsyncCallback<T1, T2, T3, T4, TReturn>(Func<T1, T2, T3, T4, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TReturn>, T1, T2, T3, T4)
|
Creates a System.Threading.Tasks.Task from a BeginAsync.. EndAsync pair of methods.
|
|
FromAsyncCallback<T1, T2, T3, T4, T5, T6>(Func<T1, T2, T3, T4, T5, T6, AsyncCallback, Object, IAsyncResult>, Action<IAsyncResult>, T1, T2, T3, T4, T5, T6)
|
Creates a System.Threading.Tasks.Task from a BeginAsync.. EndAsync pair of methods.
|
|
FromAsyncCallback<T1, T2, T3, T4, T5, TReturn>(Func<T1, T2, T3, T4, T5, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TReturn>, T1, T2, T3, T4, T5)
|
Creates a System.Threading.Tasks.Task from a BeginAsync.. EndAsync pair of methods.
|
|
FromAsyncCallback<T1, T2, T3, T4, T5, T6, T7>(Func<T1, T2, T3, T4, T5, T6, T7, AsyncCallback, Object, IAsyncResult>, Action<IAsyncResult>, T1, T2, T3, T4, T5, T6, T7)
|
Creates a System.Threading.Tasks.Task from a BeginAsync.. EndAsync pair of methods.
|
|
FromAsyncCallback<T1, T2, T3, T4, T5, T6, TReturn>(Func<T1, T2, T3, T4, T5, T6, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TReturn>, T1, T2, T3, T4, T5, T6)
|
Creates a System.Threading.Tasks.Task from a BeginAsync.. EndAsync pair of methods.
|
|
FromAsyncCallback<T1, T2, T3, T4, T5, T6, T7, T8>(Func<T1, T2, T3, T4, T5, T6, T7, T8, AsyncCallback, Object, IAsyncResult>, Action<IAsyncResult>, T1, T2, T3, T4, T5, T6, T7, T8)
|
Creates a System.Threading.Tasks.Task from a BeginAsync.. EndAsync pair of methods.
|
|
FromAsyncCallback<T1, T2, T3, T4, T5, T6, T7, TReturn>(Func<T1, T2, T3, T4, T5, T6, T7, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TReturn>, T1, T2, T3, T4, T5, T6, T7)
|
Creates a System.Threading.Tasks.Task from a BeginAsync..  EndAsync pair of methods.
|
|
FromAsyncCallback<T1, T2, T3, T4, T5, T6, T7, T8, TReturn>(Func<T1, T2, T3, T4, T5, T6, T7, T8, AsyncCallback, Object, IAsyncResult>, Func<IAsyncResult, TReturn>, T1, T2, T3, T4, T5, T6, T7, T8)
|
Creates a System.Threading.Tasks.Task from a BeginAsync.. EndAsync pair of methods.
|


{% extends "base.html" %}
{% block title %}{{ super() }}How to process incoming data{% endblock %}
{% block head %}
{{ super() }}
{% endblock %}
{% block body %}
{{ super() }}
Here you can define what {{ applicationNameShort }} should do with incoming data from honyepot instances. By default, all incoming data that does not match any rule, will be stored for reporting.
Are you sure you want to delete this rule?


Today's material comes from p. 1-9 and 15-21 (Examples P.A and P.B) of the book. You are expected to read it before coming to class. Material from Example P.A was covered in the intro stats course and we will assume knowledge of it in this course.
in-context


免責聲明
Disclaimer
(English below)
本網站及其內容和鏈接是出於教育和信息目的而提供的，並且是真誠提供的。請注意，作者對網站上提供的任何信息的準確性、充分性、有效性、可靠性或完整性不作任何明示或暗示的陳述或保證。
本網站包含提供直接訪問互聯網上可用外部公共資源的鏈接。從本網站到第三方網站的鏈接不構成作者對外部或其內容、產品和服務的認可。任何鏈接文章和資源中表達的觀點和意見僅代表其作者，並不一定反映本作者的觀點。本作者不對這些第三方站點中包含的信息的準確性或真實性負責。
本網站可能包含錯誤和遺漏。對於直接或間接依賴、使用或參考本網站上發布的任何資料而導致的任何個人或組織遭受的損失或不便，作者不承擔任何責任。
▲
This website and its contents and links are provided for educational and informational purposes, and are provided in good faith. Please note that the author makes no representation or warranty of any kind expressed or implied, regarding the accuracy, adequacy, validity, reliability or completeness of any information presented on the site.
This website includes links providing direct access to external public resources available on the internet. Links from this website to third party sites do not constitute an endorsement, by this author, of the external parties or of their contents, products and services. Views and opinions, expressed in any linked articles and resources, are solely of their authors, and do not necessarily reflect the views of this author. This author is not responsible for the accuracy or veracity of information contained in these third-party sites.
This website may contain errors and omissions. No liability is assumed by this author for losses and/or inconveniences suffered by any persons and/or organizations relying directly or indirectly on, arising out of use of, and/or reference to any information published on this site.
▲


Want to hear straight up nerd talk, then you you're in luck! This is the part of my site where I detail my use of specific languages, content structuring, and automation of tasks.
Languages Known:
- HTML5
- CSS3
- SCSS/ LESS
- JavaScript
- jQuery
- SQL
- PHP
IDE Usage
- Sublime
- PHPStorm
- Brackets
- Notepad
- A pencil and a piece of paper
Responsive Frameworks
- Foundation
- Bootstrap
- Joints WP
- FoundationPress
Development Applications, Task Runners, And Anything Else That Makes My Life Easier
- WordPress
- Gravity Forms
- Contact Form 7
- Visual Composer
- Gulp
- Node Package Manager (NPM)
- Regular Expressions (Regex)
- Git
- Google Tag Manager


--- layout: post title: Inline Edit Box.Net date: '2008-06-26T16:15:00.001+01:00' author: solrevdev tags: modified_time: '2008-06-26T16:15:30.957+01:00' blogger_id: tag:blogger.com,1999:blog-31446756.post-3652411520865501731 blogger_orig_url: http://www.solrevdev.com/2008/06/inline-edit-boxnet.html ---
CodePlex is hosting a .NET control called InlineEditBox.NET that provides in-line text editing functionality.


So far, you've worked with a smattering of backend-y things like REST endpoints, reading from files, and storing data in databases. With a bit of creativity, you can put these building blocks together to create an actually useful web application (or a not-useful application, I won't judge)!
Starting from a blank file, though, it helps to have an idea of the overall design of your project so that you can, as with a frontend, tackle each high-level component separately (like user logins, for example).
Exercise
In the following steps, we'll design the backend for a system that allows people to make posts and vote on other peoples' posts (think Reddit). These steps obviously aren't the only way to go about designing an application. The idea is just to get an idea of what goes into making a web application.Principles of Design
Step 1 - High-Level Design (same as last time)
Think about the application you want to build and imagine that it's already done and in users' hands. Next, determine the requirements by answering questions similar to the following:-
What is the basic functionality of the application?
> To allow users to make posts and vote on others' posts
-
What kinds of other features should it have?
> user accounts (we won't add this in this exercise, but you already have a login system, so you could actually implement this!)
Step 2 - Modeling the Data
Once you have the application requirements, the next step is to determine what kind of data you need to represent and how it must flow through your system. This is important for two main reasons. The first is so that you know how to store your data in a database (i.e. the schema) and the second is to determine the interface between the client and the server. Let's now take a moment to think about what types of data we need to model to make a Reddit clone peer-reviewed content hosting service:
- Post
- id - this is the primary key/unique id of the Post
- timestamp
- title
- message
- score
- Comment - one Post has many Comments (one-to-many relationship)
- id
- postId - this is a foreign key that references a specific Post by its unique ID
- timestamp
- message
Although I can't show the iterative process of filling these out on a static page, I generally started with the obvious things (like message and timestamp in Post) and added things as necessary. For instance, we need to know to which Post a Comment belongs, so now Comment requires the postId
field. It would also be nice to know when a Comment was made, so it naturally needs a timestamp, too.
One very important point to notice is the x-to-y relationship designations. These define the setup of relational database. For instance, the one-to-many relationship of Posts to Comments requires a Comment to keep track of the primary key of its associated Post (foreign key).
If you were going to add Users, you might consider using the same model from the last exercise and adding an author
foreign key to Post and Comment.
Step 3 - Presenting the Data to the Client
Having a coherent data model that can be easily stored in a database is all well and good, but it's not very useful if clients can't access it! This is when you come up with the API. In this case, we're fortunate enough to not have any real-time or stateful data, so we can use a nice, simple REST API.
The first step in creating a REST API is determining the endpoints. What kind of resources does this application need to expose? An obvious one is the list of Posts, so let's build a /posts
endpoint.
What kinds of operations should be allowed on this resource? We certainly want to be able to GET
some number of the highest-scoring Posts and POST
new posts. It would also be helpful if we could PATCH a Post to update its score.
The latter operation could also be done as a POST, but a PATCH is more semantically correct.
Now we must ask ourselves whether there are any sub-resources that need to be considered. Certainly! For one, each Post has Comments, but sending the Comments for each Post in the list when we just want the titles and timestamp would needlessly increase response latency. Therefore, we should expose the individual Post and its Comments as a sub-resource: /posts/:postId
.
We could also include another sub-resource /posts/:postId/comments
to get just the comments, but we also don't want to spend all day writing endpoints for unlikely use cases.
The last and most important step in designing your endpoints is determining the inputs and outputs. The highest-level, and probably easiest, decision is of which serialization scheme to use. JSON is convenient, so we'll stick with that. Depending on your clients (which may not be JS-powered web browsers), XML might also be appropriate.
Below that is determining what inputs each endpoint should take and what each should return. For our /posts
endpoint, we want to get a list (array) of the highest scoring Posts.
At this point you should be thinking about the SQL statement that would allow this.
We only want to display the Post metadata, initially, so the returned array should contain objects that have the title
and score
properties; id
should also be included so that the full Post can be looked up later.
On that note, when a single Post is queried, all of the fields should be returned. The Comments, with all of their info, should be included as an array in the comments
property, too.
Of course, there will be thousands of Posts, so we want to limit the number returned on each request so to save bandwidth. The pagination you implemented in the APIs exercise is a good model for how this could be exposed to the client: just offer a page number (and, optionally, a results per page) parameter! As an extra convenience, the endpoint will offer the nextPage
and prevPage
properties so that the client can know when to add next/prev buttons.
When POSTing a new POST, all that must be included are the title and message.
In the same way as POSTing a post, POSTing a Comment can just be a POST request to the /post/:postId
endpoint with a message since a Comment is a sub-resource of a post.
Before we go on to implementation, it'll help to write all of these down as a concise API specification:
GET /posts /** * Returns an array containing 25 Posts, sorted by score. * { * posts: array of the metadata of 25 Posts, sorted by score, * nextPage: pageNumber++ or undefined if on last page, * prevPage: pageNumber-- or undefined if on first page * } * * Post metadata takes the format: * { * id: Number, * timestamp: String (ISO 8601 date string), * title: String, * score: Number, * numComments: Number * } * * @param {Number} pageNumber - the page to retrieve. Default 1. */ GET /posts/:postId /** * Returns a specified Post and all of its Comments * * Each Post has the format: * { * id: Number, * timestamp: String, * title: String, * score: Number, * message: String, * comments: [ Comment ] * } * * where a Comment is defined as: * * { * id: Number, * timestamp: Number, * message: String * } * * @param {Number} postId - the ID of the post */ Notice how thepostId
field that exists in our model was not exposed to the client since it would be redundant, given that the response already contains the Post ID.POST /posts /** * Creates a new Post. Parameters should be urlencoded or JSON. * * @param {String} title - the title * @param {String} message - the message * @return {Object} { id: Number - the ID of the newly-created post } */ POST /posts/:postId /** * Creates a Comment on a specified Post * * @param {Number} postId - the ID of the Post the Comment is on * @param {String} message - the message */ PATCH /posts/:postId /** * Updates the score of a particular Post * * @param {Number} postId - the ID of the Post * @param {Boolean} increment - true to ++ score, false to -- */
Remember that REST APIs are just functions that you call over the network. That means that, just like the JS functions you've seen and implemented, you define inputs, return values, and their types. It also means that you should always start by writing down the specification! Implementation will be much, much easier when you have concrete goals to work towards.
Principles to Practice
Wow! That was a spec-and-a-half! Don't worry, though. We (you) will tackle it bit by bit. Another nice part about speccing out the server early is that you can already farm out the client to someone else (in this case me).
Setup
Start by downloading the starter code. Then, click on the drive-thru database button to make yourself theposts
and comments
tables that are described below.posts:
| id | timestamp | title | message | score |
|---|---|---|---|---|
| SERIAL | TIMESTAMP | VARCHAR(255) | LONGTEXT | MEDIUMINT |
comments:
| id | postId | timestamp | message |
|---|---|---|---|
| SERIAL | BIGINT UNSIGNED | TIMESTAMP | LONGTEXT |
credentials
object, you're ready to plough onward into implementing the endpoints!
POSTing a Post
POST /posts
endpoint. It's almost exactly like in the last exercise in which you inserted a new User.Complete the
/posts
POST
endpoint as specified above and then click on the checker button.Hint: use this syntax for inserting the incoming values. Note that the keys of the object should be the names of the columns and that the values should be... well, the values
GETting a list of Posts
This one has actually been done for you because the SELECT statement is a real grizzly bear. If you're curious, though, you're welcome to have a look.POSTing a Comment
Hint: check out the Express req.params docs.
Implement the
/posts/:postId
POST
endpoint as described above and then click on the checker button.
GETting a Post and its Comments
Implement the
GET /posts/:postId
endpoint as designed above and then click on the checker button.Hint: start by SELECTing the specified Post from the
posts
table and then SELECTing all of the comments from the comments
table WHERE the postId
equals the specified Post ID. Merge the data into an object and send it back to the client (see the spec, above, for the correct format).
Are you not satisfied?!
PATCH /posts/:postId
endpoint used for voting, as specified above, click on the checker button and go on your way.Hint: try this if you get stuck. Spoiler alert, though.
One last question...
You got to the end of Introduction to JavaScript! Test drive your backend using the frontend I whipped up, just for this purpose. Show your friends how cool you are for making a Reddit clone :)
Just FYI, there will be one more class on Monday in which all you have to do is observe tools and techniques that come in handy when writing real-life web applications like HTML templating systems, JS frameworks, and JS task runners.
Also, don't forget that if you are taking the class for credit, you need 70% of total points (140 points) to pass. Please have these in by January 30. Please let me know if you have any lingering questions!
Thanks again for coming. Your dedication to learning JS is what makes this all worthwhile. I hope that you go on to build some really neat web apps! In any case, though, you should be really proud of yourself from coming all the way from toying around with


RecipeMe
Home
New Search
My Recipes
Add A Recipe
Add your own recipe to
Name of Your Recipe
Amount
Measurement
Ingredient Name
Add Item
Add
Instructions
Submit


Anthony Joshua insists he is "still a champion" ahead of Andy Ruiz Jr rematch
Anthony Joshua has insisted he won't "become a p***** overnight" ahead of his huge rematch with Andy Ruiz Jr next month
by Irishmirror.ieAnthony Joshua insists he is still a champion, claiming: “I’m not about to become a p**** overnight.”
Joshua has dismissed suggestions he has become psychologically damaged since his sensational first pro loss to Andy Ruiz Jr.
He claims he is still the same fighter who won Olympic gold and unified the WBA Super, IBF and WBO heavyweight titles before losing to Ruiz in June.
Joshua is adamant one defeat cannot wipe away all that he achieved in the previous seven years as he prepares to face Ruiz again in Saudi Arabia on December 7.
“We haven’t done anything differently mentally, I’m a champion,” he said defiantly. “I walked into the gym and three years later I was Olympic champion.
“I’ve had one loss, but I’m not about to become a p***** overnight and not be able to fight.
“I can fight, that’s it. I don’t need to reflect on that, I just need to win.”
Joshua has had to listen to all sorts of criticisms in the months since his shattering loss to Ruiz at Madison Square Garden and Tyson Fury claims he looked to him like he did not want to be there.
The former heavyweight world king rejected Fury’s claim and says he does not know what’s going on inside his head because they are different fighters.
“Of course I wanted to be there,” he said. “Tyson is at a different stage in his career.

“What me and him deal with, he would never understand what I’m going through. That’s another entitled opinion, I was ready, I was in a good place.”
Joshua, 30, appeared before the media yesterday at his training base at the English Institute of Sport in Sheffield, sporting a beard and longer hair, signs that he is totally focused on work.
He looked leaner, but claimed he has not deliberately lost weight to be more mobile against the stocky Ruiz.
He says he is using his sparring against the likes of Dereck Chisora and Bryant Jennings to gauge how heavy he should be for the rematch in Diriyah.
“I leave it down to my sparring and how I prepare for the fight,” said Joshua, who is due to fly to Saudi Arabia at the weekend.
“I’m not really focused on my weight, I’m just focused on my sparring.
“I could weigh anything, but it just comes down to how I perform in the ring. I’m not interested in getting down or up to 110kg and then thinking I’m fit.
“If I’m sparring 10 or 15 rounds at 120kg, then I’m good. The sparring gives me all the information I need.”
Sky Sports Box Office will exclusively show Ruiz v Joshua 2 on December 7. Available to buy now at www.sky.com/joshua .


Salvation Army launches annual Christmas kettle drive
by Alanna SmithThe familiar sound of bells ringing has returned as the annual Salvation Army Christmas kettle drive launched Saturday.
As the holidays near, the charity is hoping to raise $1.1 million over the next six weeks to fund programs and services, like Christmas toy hampers, school supplies, shelter programs and more.
Spokesperson Karen Livick said the charity’s supports are needed now more than ever.
“It’s a really uncertain time right now in Calgary, and families and parents are just not sure what’s going to happen,” said Livick. “I think it’s really important, especially at Christmas, that the Salvation Army can walk alongside them and provide something really basic like toys under their tree at Christmas to continue that hope.”
She said the funds support seasonal and year-long programming by the Salvation Army, and as needs are projected to rise, it’s important these programs stay afloat.
Last year, the charity didn’t meet its $1.1 million goal and instead raised just under $900,000. Fortunately, she said, there was no reduction in services thanks to donations outside of the festive season.
This year marks the second fundraiser where tap-and-go options are available to passersby, who can donate using debit, credit or cash.
One of the challenges of the yearly campaign is finding volunteers, said Livick, who added that they rely on hundreds of volunteers to offer their time to work the Christmas kettles.
Without them, the campaign wouldn’t be possible, she said.
The Salvation Army provides toys for about 8,000 children each holiday season.


The first Article
This is contained within an <article> block.
This section contains the main content of the page.
It is enclosed within a <section> block
This is contained within an <article> block.
Another small article.
This is a note associated with the second article on the page.


ClusterManagerDelegate
public protocol ClusterManagerDelegate : AnyObject
Undocumented
-
cellSize(for:)
Default implementationThe size of each cell on the grid (The larger the size, the better the performance) at a given zoom level.
Default Implementation
Declaration
Swift
func cellSize(for zoomLevel: Double) -> Double?
Parameters
zoomLevel
The zoom level of the visible map region.
Return Value
The cell size at the given zoom level. If you return nil, the cell size will automatically adjust to the zoom level.
-
shouldClusterAnnotation(_:)
Default implementationWhether to cluster the given annotation.
Default Implementation
Declaration
Swift
func shouldClusterAnnotation(_ annotation: MKAnnotation) -> Bool
Parameters
annotation
An annotation object. The object must conform to the MKAnnotation protocol.
Return Value
true
to clusterize the given annotation.


Pediatric Trauma Score
Weight
CriterionScore> 20 kg (44 lbs.)210-22 kg (22-44 lbs.)1< 10 kg (22 lbs.)-1
Airway
CriterionScorePatent2Maintainable1Unmaintainable-1
Systolic B/P
CriterionScore> 90 mm Hg250-90 mm Hg1< 50 mm Hg-1
CNS
CriterionScoreAwake2+ LOC1Unresponsive-1
Fractures
CriterionScoreNone2Closed or suspected1Multiple closed or open-1
Wounds
CriterionScoreNone2Minor1Major, penetrating or burns-1
Adapted from Tepas (1987) J Pediatr Surg 22:14-18 [PubMed].


close
Closes a log that has previously been opened for writing.
facility(optionalFacility)
Specifies the logging facility, which can be one of any of the values
found in the facilityMap map. If optionalFacility is omitted, returns
the currently set facility.
facilityMap
Contains the following keys, which represent numbers that can be used when opening a log:
- LOG_KERN
- LOG_USER
- LOG_MAIL
- LOG_DAEMON
- LOG_AUTH
- LOG_SYSLOG
- LOG_LPR
- LOG_NEWS
- LOG_UUCP
- LOG_CRON
- LOG_AUTHPRIV
- LOG_FTP
- LOG_RESERVED0
- LOG_RESERVED1
- LOG_RESERVED2
- LOG_RESERVED3
- LOG_LOCAL0
- LOG_LOCAL1
- LOG_LOCAL2
- LOG_LOCAL3
- LOG_LOCAL4
- LOG_LOCAL5
- LOG_LOCAL6
- LOG_LOCAL7
identity(optionalIdentity)
If optionalIdentity is specified, provides an identity for all of the messages you will be sending to the syslog daemon. Returns the identity.
isOpen
Returns self if the log is opened for writing. Otherwise, returns Nil.
log
Writes the supplied data to the log. Requires 2 arguments:
- Logging Priority
- Message to log
mask(optionalMask)
If optionalMask is specified, optionalMask is a list which contains
any one or more values stored in the maskMap hash that will be OR'd
together, to provide the proper mask. Returns the logging mask (as a List).
maskMap
Contains keys/value pairs which represent numbers that specify the
logging mask. These values may be any one (or more) of the following:
open(aPriority, someOptions, optionalIdentity)
Opens the syslog for writing. optionalIdentity need not be entered
and will default to the name of the distribution of Io you are running
or if you have embedded Io into your application and set
Lobby distribution = "foo", it will be set to "foo".
options(optionalOptions)
If optionalOptions is specified, it should represent a list of the logging
options you can find in the optionsMap slot. All the values in the supplied
aList will be OR'd together when you call the open or reopen slots.
Returns the list of options if optionalFacility is omitted.
optionsMap
A map containing key/value pairs holding all available options. These include:
- LOG_PID
- LOG_CONS
- LOG_ODELAY
- LOG_NDELAY
- LOG_NOWAIT
- LOG_PERROR
priority(optionalPriority)
If optionalPriority is specified, sets the value, and returns it.
If no value is specified, will return the previously stored value if
one has been set previously.
priorityMap
Contains key/value pairs for logging priorities for use when calling the log() method. These include:
- LOG_EMERG
- LOG_ALERT
- LOG_CRIT
- LOG_ERR
- LOG_WARNING
- LOG_NOTICE
- LOG_INFO
- LOG_DEBUG
reopen(aFacility, someOptions, optionalIdentity)
Reopens an already open log session. This is useful if you wish to
change the facility you are logging to, the options you are logging
with, or the identity of the session. Takes the same options as the open slot.
|


Your file content will not be stored or visible to anyone.
Please upload the same file: {{vm.requestDetails.userFileName}}
The selected file name does not match the requested file name. Are you sure you want to continue?


An enthusiastic and determined Android Developer with highly developed analytical and problem solving skills and a graduate of Moringa School - a coding bootcamp based in Nairobi, Kenya. I am highly experienced in various web technologies such as HTML5, CSS3, JavaScript, Django, Flask, Angular as well as Mobile Application Development using Flutter and the Android framework.


Elegant MP3 player skin PSD download
Download shopping bag & icons (PSD & PNG)
High resolution abstract bokeh background


Using Position Values in CSS
How the CSS position property saved my relationship with my computer
November 27, 2014
Learning CSS has been challenging. There were moments of triumph when the CSS element that I added did exactly what I wanted it to do, but more often were the moments of utter confusion that left me throwing my arms in the air and yelling obscenities at my computer. (I’d like to take this moment to recommend learning CSS from the comfort and privacy of your home…you get a lot of odd looks when you’re cursing at your computer in Starbucks. Trust me.)
One of the battles I encountered when adding CSS to this website was matching the beautiful wireframes I’d designed. This became less of a struggle once I better understood the different position property values.
position:static
This is the default position value of all elements. There is actually no positioning involved with this value, so you could also think of it like it’s position:none. Static is best used for single column layouts where each element sits below the previous element. This is the only position value you’re unable to reposition using top, right, bottom, and left offset properties.
position:relative
The relative value behaves much like the static value until you add a top, right, bottom, or left offset property. Adding any of these will adjust the position of the section you’re working with, using its normal (original) placement as the starting point.
position:absolute
You can place an element absolutely anywhere using the absolute value. It does not follow the normal flow of a document. You can use the top, right, bottom, and left offset properties to define its dimensions without the use of height and width properties, which adds the bonus of stretching/shrinking as you change the size of your screen.
position:fixed
The fixed value allows you to keep an element in the same position on the screen when scrolling up/down and left/right. This is best for any information that is critical for the user to see and be able to access at any time. I’ve noticed that some sites will use this for their header/footer, advertisements, and in some cases links to their social media accounts.


The svgtojs tool requires javascript, naturally. Please enable it to run this website.
We've made sure the UI uses as little javascript as possible to function.
There are no net requests made after loading this site. What you download the first time round (html+css+js) is what you get, and nothing more.


single file, with preview image:
Get the Flash Player
to see this player.
playlist file, with different colors:
Get the Flash Player
to see this player.
online configuration wizard


Before Change
import warnings
// Custom layers for keras deserialization:
custom_keras_layers = {
"GraphConvolution": layer.GraphConvolution,
"ClusterGraphConvolution": layer.ClusterGraphConvolution,
"GraphAttention": layer.GraphAttention,
"GraphAttentionSparse": layer.GraphAttentionSparse,
"SqueezedSparseConversion": layer.SqueezedSparseConversion,
"MeanAggregator": layer.graphsage.MeanAggregator,
"MaxPoolingAggregator": layer.graphsage.MaxPoolingAggregator,
"MeanPoolingAggregator": layer.graphsage.MeanPoolingAggregator,
"AttentionalAggregator": layer.graphsage.AttentionalAggregator,
"MeanHinAggregator": layer.hinsage.MeanHinAggregator,
"RelationalGraphConvolution": layer.rgcn.RelationalGraphConvolution,
"PPNPPropagationLayer": layer.ppnp.PPNPPropagationLayer,
"APPNPPropagationLayer": layer.appnp.APPNPPropagationLayer,
"GatherIndices": layer.misc.GatherIndices,
"SortPooling": layer.SortPooling,
}
A dictionary of the ``tensorflow.keras`` layers defined by StellarGraph.
When Keras models using StellarGraph layers are saved, they can be loaded by passing this value to
After Change
LeakyClippedLinear as _LeakyClippedLinear,
)
custom_keras_layers = {
class_.__name__: class_
for class_ in [
layer.GraphConvolution,
layer.ClusterGraphConvolution,
layer.GraphAttention,
layer.GraphAttentionSparse,
layer.SqueezedSparseConversion,
layer.graphsage.MeanAggregator,
layer.graphsage.MaxPoolingAggregator,
layer.graphsage.MeanPoolingAggregator,
layer.graphsage.AttentionalAggregator,
layer.hinsage.MeanHinAggregator,
layer.rgcn.RelationalGraphConvolution,
layer.ppnp.PPNPPropagationLayer,
layer.appnp.APPNPPropagationLayer,
layer.misc.GatherIndices,
layer.deep_graph_infomax.DGIDiscriminator,
layer.deep_graph_infomax.DGIReadout,
layer.graphsage.GraphSAGEAggregator,
layer.knowledge_graph.ComplExScore,
layer.knowledge_graph.DistMultScore,
layer.preprocessing_layer.GraphPreProcessingLayer,
layer.preprocessing_layer.SymmetricGraphPreProcessingLayer,
layer.watch_your_step.AttentiveWalk,
layer.sort_pooling.SortPooling,
layer.gcn_lstm.FixedAdjacencyGraphConvolution,
_LinkEmbedding,
_LeakyClippedLinear,
]
}
A dictionary of the ``tensorflow.keras`` layers defined by StellarGraph.
When Keras models using StellarGraph layers are saved, they can be loaded by passing this value to


About Me
I am a writer who's trying to get into programming. I'm fully fluent in Italian and can figure my way around most romance languages. I am a member of Phi Beta Kappa and have degrees in Linguistics, Classics and summa cum laude in Italian. I lived in Italy for two years before moving back to Colorado.
About This Website
This page is an implementation of my r2api package to translate recipes and their units from Italian to English. Hopefully besides giving me practice with a bunch of uses of CSS and basic web design, people will be able to find the website useful.
Technologies Used
Flask, Sass, r2api, Javascript, a few simple illustrations (mostly image tracing)
© 2020-2021 by Benyakir Horowitz. All rights reserved.


Posted by Baoling on April 17, 2018
Posted by Baoling on December 29, 2017
Posted by Baoling on March 18, 2017
Posted by Baoling on November 05, 2016
Posted by Baoling on September 27, 2016


Hello %%GLOBAL_CustomerName%%,
We wanted to let you know that the following details have been changed on your %%GLOBAL_StoreDomainName%% account:
%%GLOBAL_ChangedCustomerFields%%
If you made the changes yourself, please disregard this email. If not, please contact the store immediately through their website: %%GLOBAL_StoreDomainName%%.
Thanks,
The BigCommerce Security Team


[1]
the staff were very well presented and helpful.
[2]
tea coffee and water were very friendly and helpful.


Before Change
// do not use += because autograd does not support it
loss = loss + self.triplet_loss_(fX[anchor, :],
fX[positive, :],
fX[negative, :])
n_comparisons = n_comparisons + 1
After Change
loss = 0.
n_comparisons = 0
distance = self.metric_(fX)
// consider every embedding as anchor
for anchor, y_anchor in enumerate(y):
// consider every other embedding with the same label as positive
for positive, y_positive in enumerate(y):
// if same embedding or different labels, skip
if (anchor == positive) or (y_anchor != y_positive):
continue
for negative, y_negative in enumerate(y):
// if same label, skip
if y_negative == y_positive:
continue
loss_ = distance[anchor, positive] - \
distance[anchor, negative] + \
self.margin * self.metric_max_
if self.clamp == "positive":
loss_ = ag_np.maximum(loss_, 0.)
elif self.clamp == "sigmoid":
loss_ = 1. / (1. + ag_np.exp(-loss_))
// do not use += because autograd does not support it
loss = loss + loss_
n_comparisons = n_comparisons + 1
return loss / n_comparisons


My Title
Profile
Discography
Promotions Compilations
Choose an ERA
The Story Begins
Page Two
Twicecoaster : Lane 1
Twicecoaster : Lane 2
Signal
twicetagram
#TWICE
One More Time (JP)
Merry & Happy
Candy Pop (JP)
What is Love?
Wake Me Up (JP)


Node.js has multiple utilities for handling events as well as scheduling the execution of code. These utilities give you the ability to reactively respond at the right time, for example:
setInterval works in a similar fasion:
// setInterval.js
// This function simulates us checking the length of a person waiting on hold.
let getQueueLength = function() {
  return Math.round(12 * Math.random());
};
setInterval(function() {
  let queueLength = getQueueLength();
  console.log(`You are now ${queueLength} in line.`);
    if (queueLength === 0) {
      console.log('You are next in line. Please standby.');
    }
    if (queueLength > 8) {
      return console.log('This is beginning to look impossible!');
    }
}, 3000);


We are a GI cancer bioinformatic research Team at the Sun Yat-sen university Cancer Center. We are also part of the bioinformatic platform of SYSUCC leading by Professor REN Jian(For more about RenLab, please go to https://renlab.org/).
Our research goal is development of novel algorithm, application, database tools for GI cancer omic data analysis; Identification of biomarkers for tumor diagnosis and prognosis with machine-learning approaches.
Here are some feild that we currently work on:
Biomarkers for Cancer Immunotherapy
Software and Database related to Cancer genomics
Development novel targeting treatment strategies for GI cancers
Machine Learning based models for cancer diagnosis and prognosis
Gut Microbiota and tumor Microenvirment in Cancer Immunotherapy
Genomic based cancer evolution analysis of Gastric mixed adenoneuroendocrine carcinoma (MANEC) is finally publihsed in Cell Report link
22. May. 2023
Our group performed a comprehensive analysis between mutational signatures and tumor microenvironment in pan cancers. The result is published on line at Front. Immunol link
1. March . 2023VSOLassoBag have been published as a cover story in Journal of Genetics and genomics. link
24. May . 2022MPTevol published online in Briefings in bioinformatics! A practical computational framework for comprehensively exploring the Multiple primary tumor(MPT) from multiregion sequencing (MRS) experiments. link
29. April . 2022Our team lead by Prof Xu reported main result of Chankang project: Genomic analysis of 1015 Chinese ColorectalCancer patients reveals a subgroup defined by mitochondrial genomic alterations link
15. March . 2022Our group has published a new review artile related about diagnosis gastric cancer with new Raman Technology By Kunxiang Liu link. Congrat!
1. February . 2022Our new software, CaMutQC by Xin Wang, has been accepted as poster presentation in the coming AACR 2022 conference, Congrat!


The top level network module.
The Network
module is used to access networking related functionality.
For TCP sockets, see Titanium.Network.Socket.TCP
.
The legacy Titanium.Network.TCPSocket
object is still required
by the BonjourBrowser and
BonjourService objects.
For all other socket needs, use Titanium.Network.Socket.TCP
.
| change | Fired when network connectivity changes. |
Adds the specified callback as an event listener for the named event.
Arguments
| name | [String] | Name of the event. |
| callback | [Callback<Object>] | Callback function to invoke when the event is fired. |
Applies the properties to the proxy.
Arguments
| props | [Dictionary] | A dictionary of properties to apply. |
Creates and returns a BonjourBrowser
object.
Arguments
| serviceType | [String] | Service to search for, must include the protocol type suffix (._tcp). |
| domain | [String] | Bonjour service domain to conduct the search in. |
| parameters | [Dictionary<Titanium.Network.BonjourBrowser>] | A dictionary object of properties defined in Titanium.Network.BonjourBrowser. |
Creates and returns a BonjourService
object.
Arguments
| name | [String] | Name of the service. Must be a unique identifier for this service type and domain. |
| type | [String] | Type of service. Must include the protocol identifier (._tcp). |
| domain | [String] | Domain to publish the service in. |
| parameters | [Dictionary<Titanium.Network.BonjourService>] | Dictionary object of properties defined in Titanium.Network.BonjourService. |
Creates and returns an instance of Titanium.Network.HTTPClient
.
Arguments
| parameters | [Dictionary<Titanium.Network.HTTPClient>] | Properties to set on a new object, including any defined by Titanium.Network.HTTPClient except those marked not-creation or read-only. |
Use Titanium.Network.Socket.createTCP
instead.
Arguments
| hostName | [String] | Host name to connect to/listen on. |
| port | [Number] | Port for the socket. |
| mode | [Number] | Socket's mode; one of Titanium.Network.READ_MODE, Titanium.Network.WRITE_MODE, Titanium.Network.READ_WRITE_MODE. |
| parameters | [Dictionary<Titanium.Network.TCPSocket>] | Dictionary object with properties defined in Titanium.Network.TCPSocket. |
Returns a decoded version of a URI encoded value.
Arguments
| value | [String] | URI encoded input value to be decoded. |
Returns a URI encoded version of the specified URI component.
Arguments
| value | [String] | Input value to be encoded. |
Fires a synthesized event to any registered listeners.
Arguments
| name | [String] | Name of the event. |
| event | [Dictionary] | A dictionary of keys and values to add to the Titanium.Event object sent to the listeners. |
Gets the value of the httpURLFormatter property.
Gets the value of the networkType property.
Gets the value of the networkTypeName property.
Gets the value of the online property.
Gets the value of the remoteDeviceUUID property.
Gets the value of the remoteNotificationTypes property.
Gets the value of the remoteNotificationsEnabled property.
Registers for push notifications with the Apple Push Notification Service.
Arguments
| config | [PushNotificationConfig] | Dictionary specifying push-notification related options. |
Removes the specified callback as an event listener for the named event.
Arguments
| name | [String] | Name of the event. |
| callback | [Callback<Object>] | Callback function to remove. Must be the same function passed to addEventListener. |
Sets the value of the httpURLFormatter property.
Arguments
| httpURLFormatter | [Callback<String>] | New value for the property. |
Event properties
| networkType |
[Number] New network type, one of the |
| networkTypeName |
[String] New network type as a string. |
| online |
[Boolean] Boolean to indicate if the device is online. |
| reason |
[String] Human-readable text describing the reason for the change. |
| source |
[Object] Source object that fired the event. |
| type |
[String] Name of the event fired. |


This is the first div.
This is the second div.
This is the third div.
Click me!
Color:
Change color
Toggle Fade


--- title: "US presidential popular vote margins" date: '2020-11-08' draft: no showpagemeta: yes excerpt: "Since 1976 who's won big?" ---
Let's look at the margin of victory of US presidents since 1976. Here we find the vote count for the Democratic and Republican candidate each year, and calculate the percentage difference between the two.
We first pull the U.S. President 1976–2016 dataset from the MIT election lab.
For the 2020 election, let's add in results from the WSJ as of Nov 8 2020. At that time it showed 75.2M votes for Joe Biden and 70.8M votes cast for Donald Trump.
The resulting table shows the raw vote totals as well as the percentage difference (such that the democratic victory are positive in the dem_perc_win
column below). Note, this isn't percentage of total votes, but percentage between dems and repub candidates. Also note that raw values mean little because of population growth.
| year | dem_candidate | repub_candidate | dem_votes | repub_votes | dem_perc_win |
|---|---|---|---|---|---|
| 1976 | Carter, Jimmy | Ford, Gerald | 40680446 | 38870893 | 4.45 |
| 1980 | Carter, Jimmy | Reagan, Ronald | 35480948 | 43642639 | -23.00 |
| 1984 | Mondale, Walter | Reagan, Ronald | 37449813 | 54166829 | -44.64 |
| 1988 | Dukakis, Michael | Bush, George H.W. | 41716679 | 48642640 | -16.60 |
| 1992 | Clinton, Bill | Bush, George H.W. | 44856747 | 38798913 | 13.50 |
| 1996 | Clinton, Bill | Dole, Robert | 47295351 | 39003697 | 17.53 |
| 2000 | Gore, Al | Bush, George W. | 50830580 | 50311372 | 1.02 |
| 2004 | Kerry, John | Bush, George W. | 58894554 | 61872711 | -5.06 |
| 2008 | Obama, Barack | McCain, John | 69338846 | 59613835 | 14.03 |
| 2012 | Obama, Barack | Romney, Mitt | 65752017 | 60670117 | 7.73 |
| 2016 | Clinton, Hillary | Trump, Donald J. | 65677168 | 62692411 | 4.54 |
| 2020 | Joe Biden | Donald Trump | 75215986 | 70812803 | 5.85 |
Overall, it's amazing Ronald Reagan won the popular vote by ~45% in 1984. In terms of the current election, it appears that last Republican president to achieve a larger popular vote victory than Joe Biden was George HW Bush in 1988, 32 years ago.


ShortBoard Help
Index
Providing Feedback
You can report bugs and submit feature requests for ShortBoard at:
http://shortboard.uservoice.com/


Table Name: tabSales Invoice
| Sr | Fieldname | Type | Label | Options |
|---|---|---|---|---|
| 1 | customer_section |
Section Break |
fa fa-user |
|
| 2 | title |
Data | Title | |
| 3 | naming_series |
Select | Series |
SINV- SINV-RET- |
| 4 | customer |
Link | Customer | Customer |
| 5 | customer_name |
Data | Customer Name | |
| 6 | tax_id |
Data | Tax Id | |
| 7 | project |
Link | Project | Project |
| 8 | is_pos |
Check | Include Payment (POS) | |
| 9 | offline_pos_name |
Data | Offline POS Name | |
| 10 | pos_profile |
Link | POS Profile | POS Profile |
| 11 | column_break1 |
Column Break | ||
| 12 | company |
Link | Company | Company |
| 13 | posting_date |
Date | Date | |
| 14 | posting_time |
Time | Posting Time | |
| 15 | set_posting_time |
Check | Edit Posting Date and Time | |
| 16 | due_date |
Date | Payment Due Date | |
| 17 | amended_from |
Link | Amended From | Sales Invoice |
| 18 | returns |
Section Break | Returns | |
| 19 | is_return |
Check | Is Return | |
| 20 | return_against |
Link | Return Against Sales Invoice | Sales Invoice |
| 21 | address_and_contact |
Section Break | Address and Contact | |
| 22 | customer_address |
Link | Customer Address | Address |
| 23 | address_display |
Small Text | Address | |
| 24 | contact_person |
Link | Contact Person | Contact |
| 25 | contact_display |
Small Text | Contact | |
| 26 | contact_mobile |
Small Text | Mobile No | |
| 27 | contact_email |
Data | Contact Email |
|
| 28 | territory |
Link | Territory | Territory |
| 29 | col_break4 |
Column Break | ||
| 30 | shipping_address_name |
Link | Shipping Address Name | Address |
| 31 | shipping_address |
Small Text | Shipping Address | |
| 32 | company_address |
Link | Company Address Name | Address |
| 33 | company_address_display |
Small Text | Company Address | |
| 34 | currency_and_price_list |
Section Break | Currency and Price List | |
| 35 | currency |
Link | Currency | Currency |
| 36 | conversion_rate |
Float |
Exchange Rate
Rate at which Customer Currency is converted to customer's base currency |
|
| 37 | column_break2 |
Column Break | ||
| 38 | selling_price_list |
Link | Price List | Price List |
| 39 | price_list_currency |
Link | Price List Currency | Currency |
| 40 | plc_conversion_rate |
Float |
Price List Exchange Rate
Rate at which Price list currency is converted to customer's base currency |
|
| 41 | ignore_pricing_rule |
Check | Ignore Pricing Rule | |
| 42 | items_section |
Section Break |
fa fa-shopping-cart |
|
| 43 | update_stock |
Check | Update Stock | |
| 44 | items |
Table | Items | Sales Invoice Item |
| 45 | packing_list |
Section Break | Packing List |
fa fa-suitcase |
| 46 | packed_items |
Table | Packed Items | Packed Item |
| 47 | product_bundle_help |
HTML | Product Bundle Help | |
| 48 | time_sheet_list |
Section Break | Time Sheet List | |
| 49 | timesheets |
Table | Time Sheets | Sales Invoice Timesheet |
| 50 | total_billing_amount |
Currency | Total Billing Amount | |
| 51 | section_break_30 |
Section Break | ||
| 52 | base_total |
Currency | Total (Company Currency) |
Company:company:default_currency |
| 53 | base_net_total |
Currency | Net Total (Company Currency) |
Company:company:default_currency |
| 54 | column_break_32 |
Column Break | ||
| 55 | total |
Currency | Total |
currency |
| 56 | net_total |
Currency | Net Total |
currency |
| 57 | taxes_section |
Section Break |
fa fa-money |
|
| 58 | taxes_and_charges |
Link | Taxes and Charges | Sales Taxes and Charges Template |
| 59 | column_break_38 |
Column Break | ||
| 60 | shipping_rule |
Link | Shipping Rule | Shipping Rule |
| 61 | section_break_40 |
Section Break | ||
| 62 | taxes |
Table | Sales Taxes and Charges | Sales Taxes and Charges |
| 63 | sec_tax_breakup |
Section Break | Tax Breakup | |
| 64 | other_charges_calculation |
Text | Taxes and Charges Calculation | |
| 65 | section_break_43 |
Section Break | ||
| 66 | base_total_taxes_and_charges |
Currency | Total Taxes and Charges (Company Currency) |
Company:company:default_currency |
| 67 | column_break_47 |
Column Break | ||
| 68 | total_taxes_and_charges |
Currency | Total Taxes and Charges |
currency |
| 69 | section_break_49 |
Section Break | Additional Discount | |
| 70 | apply_discount_on |
Select | Apply Additional Discount On |
Grand Total Net Total |
| 71 | base_discount_amount |
Currency | Additional Discount Amount (Company Currency) |
Company:company:default_currency |
| 72 | column_break_51 |
Column Break | ||
| 73 | additional_discount_percentage |
Float | Additional Discount Percentage | |
| 74 | discount_amount |
Currency | Additional Discount Amount |
currency |
| 75 | totals |
Section Break |
fa fa-money |
|
| 76 | base_grand_total |
Currency | Grand Total (Company Currency) |
Company:company:default_currency |
| 77 | base_rounding_adjustment |
Currency | Rounding Adjustment (Company Currency) |
Company:company:default_currency |
| 78 | base_rounded_total |
Currency | Rounded Total (Company Currency) |
Company:company:default_currency |
| 79 | base_in_words |
Data |
In Words (Company Currency)
In Words will be visible once you save the Sales Invoice. |
|
| 80 | column_break5 |
Column Break | ||
| 81 | grand_total |
Currency | Grand Total |
currency |
| 82 | rounding_adjustment |
Currency | Rounding Adjustment |
currency |
| 83 | rounded_total |
Currency | Rounded Total |
currency |
| 84 | in_words |
Data | In Words | |
| 85 | total_advance |
Currency | Total Advance |
party_account_currency |
| 86 | outstanding_amount |
Currency | Outstanding Amount |
party_account_currency |
| 87 | advances_section |
Section Break | Advance Payments |
fa fa-money |
| 88 | get_advances |
Button | Get Advances Received | |
| 89 | advances |
Table | Advances | Sales Invoice Advance |
| 90 | payments_section |
Section Break | Payments |
fa fa-money |
| 91 | cash_bank_account |
Link | Cash/Bank Account | Account |
| 92 | payments |
Table | Sales Invoice Payment | Sales Invoice Payment |
| 93 | section_break_84 |
Section Break | ||
| 94 | base_paid_amount |
Currency | Paid Amount (Company Currency) |
Company:company:default_currency |
| 95 | column_break_86 |
Column Break | ||
| 96 | paid_amount |
Currency | Paid Amount |
currency |
| 97 | section_break_88 |
Section Break | ||
| 98 | base_change_amount |
Currency | Base Change Amount (Company Currency) |
Company:company:default_currency |
| 99 | column_break_90 |
Column Break | ||
| 100 | change_amount |
Currency | Change Amount |
currency |
| 101 | account_for_change_amount |
Link | Account for Change Amount | Account |
| 102 | column_break4 |
Section Break | Write Off | |
| 103 | write_off_amount |
Currency | Write Off Amount |
currency |
| 104 | base_write_off_amount |
Currency | Write Off Amount (Company Currency) |
Company:company:default_currency |
| 105 | write_off_outstanding_amount_automatically |
Check | Write Off Outstanding Amount | |
| 106 | column_break_74 |
Column Break | ||
| 107 | write_off_account |
Link | Write Off Account | Account |
| 108 | write_off_cost_center |
Link | Write Off Cost Center | Cost Center |
| 109 | terms_section_break |
Section Break | Terms | |
| 110 | tc_name |
Link | Terms | Terms and Conditions |
| 111 | terms |
Text Editor | Terms and Conditions Details | |
| 112 | edit_printing_settings |
Section Break | Printing Settings | |
| 113 | letter_head |
Link | Letter Head | Letter Head |
| 114 | language |
Data | Print Language | |
| 115 | column_break_84 |
Column Break | ||
| 116 | select_print_heading |
Link | Print Heading | Print Heading |
| 117 | more_information |
Section Break | More Information | |
| 118 | customer_group |
Link | Customer Group | Customer Group |
| 119 | campaign |
Link | Campaign | Campaign |
| 120 | col_break23 |
Column Break | ||
| 121 | status |
Select | Status |
Draft Return Credit Note Issued Submitted Paid Unpaid Overdue Cancelled |
| 122 | source |
Link | Source | Lead Source |
| 123 | more_info |
Section Break | Accounting Details |
fa fa-file-text |
| 124 | debit_to |
Link | Debit To | Account |
| 125 | party_account_currency |
Link | Party Account Currency | Currency |
| 126 | is_opening |
Select | Is Opening Entry |
No Yes |
| 127 | c_form_applicable |
Select | C-Form Applicable |
No Yes |
| 128 | c_form_no |
Link | C-Form No | C-Form |
| 129 | column_break8 |
Column Break | ||
| 130 | remarks |
Small Text | Remarks | |
| 131 | sales_team_section_break |
Section Break | Commission |
fa fa-group |
| 132 | sales_partner |
Link | Sales Partner | Sales Partner |
| 133 | column_break10 |
Column Break | ||
| 134 | commission_rate |
Float | Commission Rate (%) | |
| 135 | total_commission |
Currency | Total Commission |
Company:company:default_currency |
| 136 | section_break2 |
Section Break | Sales Team | |
| 137 | sales_team |
Table | Sales Team1 | Sales Team |
| 138 | subscription_section |
Section Break | Subscription Section | |
| 139 | subscription |
Link | Subscription | Subscription |
| 140 | recurring_invoice |
Section Break | Recurring Invoice |
fa fa-time |
| 141 | column_break11 |
Column Break | Settings | |
| 142 | is_recurring |
Check | Is Recurring | |
| 143 | recurring_id |
Link | Reference Document | Sales Invoice |
| 144 | recurring_type |
Select | Frequency |
Monthly Quarterly Half-yearly Yearly |
| 145 | repeat_on_day_of_month |
Int | Repeat on Day of Month | |
| 146 | end_date |
Date | End Date | |
| 147 | submit_on_creation |
Check | Submit on creation | |
| 148 | notify_by_email |
Check | Notify by email | |
| 149 | notification_email_address |
Code | Notification Email Address |
|
| 150 | recurring_print_format |
Link | Recurring Print Format | Print Format |
| 151 | column_break12 |
Column Break | This Document | |
| 152 | from_date |
Date | From Date | |
| 153 | to_date |
Date | To Date | |
| 154 | next_date |
Date | Next Date | |
| 155 | against_income_account |
Small Text | Against Income Account |
Inherits from erpnext.controllers.selling_controller.SellingController
__init__ (self, arg1, arg2=None)
No docs
No docs
No docs
No docs
No docs
calculate_billing_amount_for_timesheet (self)
No docs
No docs
No docs
clear_unallocated_mode_of_payments (self)
No docs
No docs
get_gl_entries (self, warehouse_account=None)
No docs
No docs
make_customer_gl_entry (self, gl_entries)
No docs
make_gl_entries (self, gl_entries=None, repost_future_gle=True, from_repost=False)
No docs
make_gle_for_change_amount (self, gl_entries)
No docs
make_gle_for_rounding_adjustment (self, gl_entries)
No docs
make_item_gl_entries (self, gl_entries)
No docs
make_pos_gl_entries (self, gl_entries)
No docs
make_tax_gl_entries (self, gl_entries)
No docs
make_write_off_gl_entry (self, gl_entries)
No docs
No docs
on_recurring (self, reference_doc, subscription_doc)
No docs
No docs
No docs
set_against_income_account (self)
Set against account for debit to account
set_billing_hours_and_amount (self)
No docs
set_income_account_for_fixed_assets (self)
No docs
Set indicator for portal
set_missing_values (self, for_validate=False)
No docs
No docs
set_pos_fields (self, for_validate=False)
Set retail related fields from POS Profiles
set_serial_no_against_delivery_note (self)
No docs
check in manage account if sales order / delivery note required or not.
update_billing_status_in_dn (self, update_modified=True)
No docs
update_current_month_sales (self)
No docs
No docs
No docs
update_serial_no (self, in_cancel=False)
update Sales Invoice refrence in Serial No
update_status_updater_args (self)
No docs
update_time_sheet (self, sales_invoice)
No docs
update_time_sheet_detail (self, timesheet, args, sales_invoice)
No docs
update_timesheet_billing_for_project (self)
No docs
No docs
validate_account_for_change_amount (self)
No docs
validate_auto_set_posting_time (self)
No docs
Blank C-form no if C-form applicable marked as 'No'
validate_c_form_on_cancel (self)
Display message if C-Form no exists on cancellation of Sales Invoice
No docs
No docs
No docs
No docs
No docs
validate_pos_paid_amount (self)
No docs
check for does customer belong to same project as entered..
validate_serial_against_delivery_note (self)
validate if the serial numbers in Sales Invoice Items are same as in
Delivery Note Item
validate_serial_against_sales_invoice (self)
check if serial number is already used in other sales invoice
validate_serial_numbers (self)
validate serial number agains Delivery Note and Sales Invoice
validate_time_sheets_are_submitted (self)
No docs
No docs
validate_with_previous_doc (self)
No docs
validate_write_off_account (self)
No docs
Public API
/api/method/erpnext.accounts.doctype.sales_invoice.sales_invoice.get_bank_cash_account
erpnext.accounts.doctype.sales_invoice.sales_invoice.get_bank_cash_account (mode_of_payment, company)
No docs
erpnext.accounts.doctype.sales_invoice.sales_invoice.get_list_context (context=None)
No docs
Public API
/api/method/erpnext.accounts.doctype.sales_invoice.sales_invoice.make_delivery_note
erpnext.accounts.doctype.sales_invoice.sales_invoice.make_delivery_note (source_name, target_doc=None)
No docs
Public API
/api/method/erpnext.accounts.doctype.sales_invoice.sales_invoice.make_sales_return
erpnext.accounts.doctype.sales_invoice.sales_invoice.make_sales_return (source_name, target_doc=None)
No docs
erpnext.accounts.doctype.sales_invoice.sales_invoice.set_account_for_mode_of_payment (self)
No docs


Employee Id
Employee Name
Courses
JAVA
.NET
SALESFORCE
PEGA
Qualification
BCA
BE/BTECH
MCA
Online
Yes
No


Website Design and Setup
Kristofor and Lindsay both work on the web design aspect of things. Contact them with your needs and they will put together a custom package for you. Whether you are starting from scratch and have no idea where to begin, already have hosting and a domain set up, or have run into a problem you just can't fix, they can help. Website design help is available in person or via email.
If you would prefer one-on-one support to teach you how to set up and maintain it yourself, rates start at $50 per hour within the Cowichan Valley.


To complement the Architecture we have released the Worldpay Within SDK. The intention for of the SDK is to encapsulate implementation and therefore assist third party vendors and developers in integration into their Internet of Things (IoT) solutions.
The core of the SDK is developed in the Go programming language with wrappers created for Java, Node.JS, Python and .net(C#). Service delivery and broadcast have been implemented using TCP/IP networking.
For more information about the low level service messaging, see click here.
In the IoT, each Thing will perform the function it is designed for be it acting as a sensor, a controller or both. In order for the Thing to be able to make and receive payments for services they can provide to other Things, they need to add the payments functionality contained in Worldpay Within.
Things in the IoT will be implemented on dedicated low cost processor systems. The Thing and Worldpay Within must co-exist and operate on the resources provided by these devices, as demonstrated in Figure 2.
In order to make and receive payments in the IoT, a Thing must be able to perform the roles of “consumer”, to make a payment for services, and the “merchant” or "producer", to receive a payment for provision of services. In the Worldpay Within IoT architecture, the “consumer” pays for services by supporting Host Card Emulation (HCE). The “merchant” or "producer" receives payments for services by supporting Host Terminal Emulation (HTE). Worldpay Within contains both an HCE Brain & HTE Brain functionalities, ensuring a Thing can both consume and supply services. These services are provided through a series of public APIs, described within this document.
HCE and HTE require the secure storage and use of the credentials during the payments process. This requires the use of secure processing within the Thing in a “Secure Execution Environment”.
For HCE Things, these credentials include the details of the “card” which the payment will be made from. For HTE Things, these credentials include the details the Merchant requires to perform transactions with Worldpay.
As well as the provision of the payment for the services, Worldpay Within provides for the generation and validation of secure service tokens, which allow for services to be consumed in part or together, but separately from the payments functionality.
The provision of a service within the Worldpay IoT system is performed in 4 phases, as shown in Figure 4, these being: Service Discovery, Service Negotiation, Payment, and Service Delivery. Each of these phases are described in the following sections.
Each Thing that offers services, the service ‘supplier’ shall broadcast it’s list of available services, as shown in Figure 4 below. When a potential ‘consumer’ of the service connects with ‘supplier’ it can request details of the services offered.
Providing a suitable service is discovered, the consumer then requests the service from the supplier, and price negotiations can begin.
| Key | Parameters | Purpose |
| broadcast | server_UUID | Advertising services and identifying the sender |
| request services | none | Request a list of all services |
| services_response | list of services, server_UUID | Provide client with a list of possible services that the sender can provide |
A broadcast message that includes Thing B’s UUID is sent.
Upon receiving the message Thing A connects to Thing B and requests the list of available services.
Thing B responds with a list identifying the services available.
Once a suitable service has been discovered, there will be a price negotiation. The provider may offer the same service at different rates depending on the number of units of service to be purchased. The process is outlined in Figure 5. The outcome of the process is an agreement to purchase an amount of service and a total price for the service to be provided. The service provider can then request payment for the agreed service and price.
| Key | Parameters | Purpose |
| price_request | service_id | Request a list of all prices for a given service. |
| price_response | server_UUID, list of prices, (service_id, price_id, price_per_unit, unit_ID, unit_description, price_description) | Provide the client with a list of prices for a given service. A price object contains the per unit price. |
| price_select | service_id, price_id, number_of_units, client_UUID | Select a price with price_id, for service_id for a number of units. |
| price_select_response | price_id, number_of_units, total_price, server_UUID, client_UUID, payment_ref_ID, Merchant_Client_key | Communicate the expected total price to the client. |
A price request is sent containing the selected service_id.
The response from Thing B contains a list of price items; each item should contain a price_id, per unit price, unit_ID and description fields of both the unit and the price.
Thing A then selects an appropriate price_id by sending a request with its client_UUID, the selected service_id, the price_id, and the number of items required.
If the number of items falls within the correct number of items for the price selected, then Thing B responds with a price select response containing the service_id, price_id, the total price, the service_UUID and a reference for the payment and its Merchant Client key. Otherwise Thing B shall return the number of units it can supply along with the correct price, and additional details required to initiate the payment.
The payment process with Worldpay is a two stage process, split between the consumer and merchant Things involved in the transaction, these stages are:
Client Token Request, and
Payment Authorisation Request. (Also known as Order Request)
During the first stage, the consumer sends Worldpay their payment credentials and the merchants Client Key. We return a Client Token, which the consumer passes to the Merchant. This allows the merchant to perform the payment authorisation request with Worldpay by providing the Client Token and transaction details.
This payment process ensures that the consumer does not pass their payment credentials to the merchant, only to Worldpay.
The first step in the payment process is when Thing A receives the Merchant_Client_Key from Thing B. Thing B passes their public Client Key to Thing A as part of the price_select_response during the Service Negotiation phase. Upon receiving the Client Key from Thing B, Thing A connects with Worldpay to request the client token from us. This request includes Thing A’s payment credentials: Card PAN, expiry, and the client_key of Thing B. Worldpay will respond with a message that includes a client_token. This is shown in Figure 7.
| Key | Parameters | Purpose |
| client_token_request | Payment_method, reusable_flag, Merchant_client_key Payment\_method (name, PAN, expiryMonth, expiryYear, type) | Request a client token from Worldpay, whilst providing us with the payment credentials. |
| client_token_response | client_token, reusable_flag, payment_method_response (type, name, expiryMonth, expiryYear, card\_type, card\_scheme\_type, card\_scheme\_name, masked\_card\_number, card\_product\_type\_description\_non\_contactless, card\_product\_type\_description\_contactless, card\_issuer, country\_code, card\_class, pre-paid) | Response from Worldpay containing the client_token. |
| Payment_request | client_token, client_UUID, payment_ref_ID | The client_token is passed to Thing B to allow the 2^nd^ part of the transaction process to take place. |
Thing A will connect to Worldpay using TLS. It will then request a client_token by securely (see 2.2.1) sending a JSON message containing the paymentMethod, its payment credentials (PAN, expiry) to us, along with the client_ key from Thing B. In addition a flag indicating if the client details can be used in future is sent, for IoT this should always be set ‘reusable’:’false’ in order to force generation of a new client token for each transaction.
A successful response will be an HTTP POST response containing fields: client_token, reusable_flag and the payment_method_response. Once received, the client_token shall be passed to Thing B
A sample request is shown in Appendix B: Sample Service Messaging.
See API keys for documentation for client_token_request and client_token_repsonse APIs data descriptions.
Thing B will process the order and request the payment from Worldpay providing its Service key, client_token, transaction currency and payment amount. This is transmitted to Worldpay over TLS. After successful processing the payment, Worldpay will provide a payment response. Thing B shall then generate a service token, which Thing A may use in future to obtain the services that the payment has been made for. This is shown in Figure 7.
| Key | Parameters | Purpose |
| order_request | client_service_key, client_token, currency_code, amount, order_description, customer_order_code | Request payment from Worldpay. |
| order_response | order_code, client_token, order_description, amount, currency_code, payment_status, customer_order_code, environment, risk_score, payment_response (type, name, expiryMonth, expiryYear, card\_type, card\_scheme\_type, card\_scheme\_name, masked\_card\_number, card\_product\_type\_description\_non\_contactless, card\_product\_type\_description\_contactless, card\_issuer, country\_code, card\_class, pre-paid) | Payment response indicating a successful transaction on the Worldpay platform. |
Thing B shall assemble a message to be posted to Worldpay that contains the client token, Service key, the amount, currency and transaction description. We will then perform an authorisation using the payment credentials identified by the client_token. A successful authorisation will result in a payment_status of SUCCESS being returned to Thing B.
| Key | Parameters | Purpose |
| payment_request_response | service_delivery_token, server_UUID, client_UUID, total_paid | service_delivery_token is passed to ThingB. |
Thing B shall then generate a cryptographically secure service_delivery_token, which can be used by Thing A to request provision of services from Thing B.
Once the payment has been made, Thing B shall return to broadcasting its available services. Thing A will now be able to consume the service from Thing B by providing the service_delivery_token. The service delivery may be in a single step, or over time. An overview of service delivery is shown in Figure 8.
Once in possession of a service_token, Thing A may then request the service be provided. The service could be consumed in one session, or in several sessions over time, depending on the nature of the service and number of units purchased. Thing A may repeatedly send service delivery requests until Thing B indicates that the service has been delivered.
| Key | Parameters | Purpose |
| payment_request_response | service_delivery_token, server_UUID, client_UUID, total_paid | service_delivery_token is passed to ThingB. |
| broadcast | server_UUID | Advertising services and identifying the sender. |
| delivery_begin_request | service_delivery_token, client_UUID, number_of_units_to_supply | Request the service item, with the service_delivery_token providing right to receive the service, and amount of service to be supplied. |
| delivery_begin_response | server_UUID, service_delivery_token, client_UUID, number_of_units_to_be_supplied | Response for the service delivery. Confirmation of number of service units to be supplied (Allowing for less units than requested). |
| delivery_end | client_UUID, number_of_units_received | Confirmation of service received. |
| delivery_end_response | server_UUID, service_delivery_token, client_UUID, number_of_units_just_supplied, number_of_units_remaining | Service end indicating outstanding service credits and token for subsequent delivery. |
Thing A sends a message with the service_delivery_token to Thing B, along with the amount of service it wishes to consume. The response shall confirm the amount of service units that Thing B can supply to Thing A at that time. Once the service has been delivered, Thing A shall confirm the amount of service units it has received, with Thing B responding, stating the number of units still remaining to Thing A, if any.
A few useful terms we're making quite a lot of use of, and if you are new to the world of payments these may be unfamiliar to you!
| Term | Definition |
| API | Application Programming Interface |
| Worldpay | Worldpay Open Payment API, https://online.worldpay.com/ |
| HCE | Host Card Emulation |
| HTE | Host Terminal Emulation |
| HTTPS | HyperText Transfer Protocol Secure |
| IoT | Internet of Things |
| P2PE | Point to Point Encryption |
| TLS | Transport Layer Security |
| UUID | Universally Unique Identifier |
| RPC | Remote Procedure Call |


ScalaTest 1.0
All objects and classes
Packages
org.scalatest
org.scalatest.concurrent
org.scalatest.events
org.scalatest.fixture
org.scalatest.junit
org.scalatest.matchers
org.scalatest.mock
org.scalatest.prop
org.scalatest.testng
org.scalatest.tools
org.scalatest.verb


Rusty Client Demo with JSP Request Handler
Actual Response send by web service. No Encryption Applied. Faster than Secured Service.
Encrypted Response send by web service. Decryption Done by RustyRequestHandler.jsp
- Press F12 to open Developer Tools in Chrome.
- Click Network tab to capture requests
- Try Replay Service using developer tools


zjsdecode(1) zjsdecode(1) NAME zjsdecode - Decode a ZjStream into human readable form. SYNOPSIS zjsdecode [options] <zjs-file DESCRIPTION zjsdecode decodes a ZjStream into human readable form. A ZjStream is the printer langauge used by some Minolta/QMS and HP print‐ ers, such as the 2300DL and LJ-1000. More information on Zenographics ZjStream can be found at: http://ddk.zeno.com COMMAND LINE OPTIONS These are the options that can appear on the command line. -d basename Basename of .pbm file for saving decompressed planes. -r basename Basename of .jbg file for saving raw planes -h Print hex file offsets. -o Print file offsets. -p Don't do 4 byte padding -D level Set Debug level [0]. EXAMPLES Decode an ZjStream file created by foo2zjs. $ zjsdecode < testpage.zm ZJT_START_DOC, 3 items ZJI_PAGECOUNT, 0 (0x0) ZJI_DMDUPLEX, 1 (0x1) ZJI_QUANTITY, 1 (0x1) ZJT_START_PAGE, 17 items ZJI_0x17, 0 (0x0) ZJI_0x16, 1 (0x1) ZJI_VIDEO_X, 10200 (0x27d8) ZJI_VIDEO_Y, 6600 (0x19c8) ZJI_VIDEO_BPP, 1 (0x1) ZJI_RASTER_X, 10200 (0x27d8) ZJI_RASTER_Y, 6600 (0x19c8) ZJI_OFFSET_X, 0 (0x0) ZJI_OFFSET_Y, 0 (0x0) ZJI_NBIE, 1 (0x1) ZJI_RESOLUTION_X, 1200 (0x4b0) ZJI_RESOLUTION_Y, 600 (0x258) ZJI_DMDEFAULTSOURCE, 7 (0x7) ZJI_DMCOPIES, 1 (0x1) ZJI_DMPAPER, 1 (0x1) ZJI_DMMEDIATYPE, 1 (0x1) ZJI_MINOLTA_PAGE_NUMBER, 1 (0x1) ZJT_JBIG_BIH, 0 items Data: 20 bytes DL = 0, D = 0, P = 1, - = 0, XY = 10200 x 6600 L0 = 128, MX = 16, MY = 0 Order = 3 ILEAVE SMID Options = 92 LRLTWO TPDON TPBON DPON 52 stripes, 0 layers, 1 planes ZJT_JBIG_BID, 0 items Data: 65536 bytes ZJT_JBIG_BID, 0 items Data: 29120 bytes ZJT_END_JBIG, 0 items ZJT_END_PAGE, 0 items ZJT_END_DOC, 0 items FILES /usr/bin/zjsdecode SEE ALSO foo2zjs-wrapper(1), foo2zjs(1), jbg2pbm(1) AUTHOR Rick Richardson<EMAIL_ADDRESS>http://foo2zjs.rkkda.com/


--- title: Projects icon: repo order: 2 --- Here is a short list of my projects:
This is an mpd client written in Qt. The aim is to allow to quickly find some songs to add to the current playlist and to close it afterwards.
The main goal of this project is to have a low memory footprint and to be quick to open and close.
This is an ancient project I've recently digged from an old hard drive. Basically, this was an RPG engine. It was rewritten multiple times, this version is actually the fourth or fifth.
I never use my webcam, but I'd like to use its LED to notify me of some things. That's the purpose of webcam_led.
This will open the video device and activate the minimum functions to turn the light on.  I use it with another project to be quickly notified of incoming mails.
On my netbook, I don't want to have a big appliance to read mails like kmail. I still like to have a tray icon that tells me how unread mails I currently have in my INBOX.
This is what this does. It's also optionnallyplugged with webcam_led so that it notifies of unread mails by turning on the webcam LED.
I have a raspberry PI that I'd like to plug in my car or on my bike to play music. This is meant to be an mpd client with some other basic UI elements.
As I want that raspberry to boot really fast, I don't want to use Xorg, and for now, I've taken the route of a custom framebuffer-based display.
I often like to remember about 15 years ago, when I read the few documentation I had to write some assembly code and wrote a minimal OS.
Since there isn't really a practical use of writing another general purpose OS nowadays, and I still want to tweak things in Assembly, I began this project of creating a few small games that can be both booted (from a floppy or USB disk) and ran from a real OS.
The games themselves are not fixed yet, but for now I've begun to write support for the display handling.
This is an audio tool that will simulate an environment, with the objective of creating an atmosphere suitable for work (or whatever you actually want).
This was inspired by the website http://www.noisli.com


Welcome to MacDevMike's Code Journey
Ten years ago when I realized that IT was really the janitorial staff of technology, I started considering a change in fields. When it came to programming, back then most of your options were to go back to school or head to Barnes and Nobles and start reading programming books.
Today, there are so many ways to learn how to write code. And you aren’t limited on platforms either. Between You Tube, iTunes University, Khan Academy, and amazing educational platforms like Lynda.com, you can start with the fundamentals and go just about anywhere. This includes high level languages (Ruby, Python, etc) and lower level root languages that are closer to the metal like the C language derivatives (Objective-C, C++, C#, etc.)
The beauty of today is that you have a variety of methods for learning. I find that I learn better when I have multiple sources available for the same information. When you think about it, this is the way traditional schooling works.  You can now do these things without spending a dime. And specifically with programming, there is no limit to what you can learn on your own. With sites like Stack Overflow, you have a community of experts that can review any code you submit and offer advise, clarify questions and concepts, and assist you as a group of peers.
Once I made the conscious decision to chase my dream, I did some programming on Code Academy using JavaScript as the initial language. I found that it was alot like some C++ that I learned a few years prior, and I took to it pretty quickly. But the biggest challenge was that you are going through a program that is somewhat rigid and designed to teach more syntax then anything else. I wanted to build things.
That's when I discovered coding bootcamps, and Dev Bootcamp in particular. After getting myself ready over the Christmas 2014 break for an admissions assessment where you will be asked to do some actual Ruby programming, I was accepted into their amazing program. Now actively part of the Dev Bootcamp 'Pocket Gophers' cohort, I will be using this site to document my journey. We will be studying HTML, CSS, Ruby, Ruby on Rails, JavaScript, JQuery, and SQL to name a few of the fundamental coding areas that Dev Bootcamp teaches. Oh, and one more thing: This is all done in nine weeks of online learning, and nine weeks of onsite learning that totals over 1000 hours of programming in 18 weeks. Prepare to drink from the firehose of knoweldge.
If you have always yearned to be “That guy” that can write code for just about any platform, the universe is trying to accommodate you. Hopefully this page will show one man's journey going from knowing almost nothing about actual programming to becoming a Full Stack Web Developer. Enjoy!