Deployment of SignalR with nginx
Dec 19, 2017 21:52 · 281 words · 2 minute read
At the beginning of the semester, I took software engineering course which has a term project. It requires us to do real-time web application. After discussion with team members, we chose ASP.NET Core with SignalR. While I was writing this story, SignalR is on alpha stage (1.0.0-alpha2). Therefore, it has issues. Such as, the documentation is incomplete, some of the features are under development and there is no information about unit testing or functionality testing etc. Of course, somehow you can achieve those things, no doubt, but you have to work hard. In this story, I will mention about deployment of SignalR with nginx.
Problem
Two months after we completed the project with a few shortcomings such as link. Then, we had to deploy the project. I followed this documentation, app was working but the SignalR part was giving me this error
Error during WebSocket handshake: Unexpected response code: 204
Solution
If we look behind of the problem, it is based on headers of connection.
If you need to create a WebSocket connection from scratch, you’ll have to handle the handshaking process yourself. After creating the initial HTTP/1.1 session, you need to request the upgrade by adding to a standard request the Upgrade and Connection headers, as follows: Connection: Upgrade Upgrade: websocket
Source Mozilla
The deployment documentation sets the connection header as keep-alive. And, WebSocket does not working with keep-alive. In our project, SignalR Hub is mapped to “/api/chat”. So, we have to add a new location and set the connection header as “upgrade”
This configuration solves the problem. Also, our term project github page is shown below.
lyzerk/ChannelX
_ChannelX Project for the Software Engineering Course 411E_github.com
Thats all, thanks !


---
layout: default
---
{% include sections/header.html %}
{% include sections/resources.html %}
New! 贊助PrivacyTools，推廣您的品牌並創造一個沒有大規模監控的世界!
了解詳情...
{% include sponsors/gold.html %}
{% include sections/quotes.html %}
{% include sections/privacy-resources.html %}
{% include sections/participate.html %}


{% extends "base.html" %}
{% block content %}
{% call text() %}
Hi {{ name }}
{% endcall %}
{% call text() %}
SimpleLogin has blocked an email that was sent to your alias {{ alias.email }} from its mailbox
{{ mailbox.email }}:
the email would be forwarded to the same mailbox {{ mailbox.email }}.
{% endcall %}
{% call text() %}
This creates a cycle and the email will probably be refused or hidden by your email service anyway.
{% endcall %}
{{ render_button("View the refused email", refused_email_url) }}
{% call text() %}
The email is automatically deleted in 7 days.
{% endcall %}
{% call text() %}
Please let us know if you have any question.
{% endcall %}
{{ render_text('Thanks,
SimpleLogin Team.') }}
{% endblock %}


SunBriteTV designs and engineers the only time-tested TVs in the world that are specifically built from the ground up for the outdoor environment. These true all-weather, outdoor LED-LCD TVs deliver superior brightness, while resisting the harsh effects of rain, dirt, insects, extreme temperatures and UV rays.
SunBriteTV has three distinct series, each designed to bring crystal-clear picture to a specific outdoor environment. Don't risk safety and your warranty by using an indoor TV outside. Choose an outdoor-safe, permanent installation SunBriteTV, crafted to handle the worst of Mother Nature.
Stop using an indoor TV for your screened-in porch or patio. Now there's a true, outdoor-rated, 4K TV that is brighter, safer and reliable. Introducing the Veranda Series ‐ the world's first weatherproof TV built for full shade outdoor living areas. Veranda is THE breakthrough in affordable outdoor TV featuring a premium 4K UHD screen with direct LED backlight and other exclusive SunBriteTV all-weather options.
The benchmark for partial sun TVs has been completely upgraded for even greater performance. While current Signature televisions encompass full 1080p, the all-new Signature Series features 4K (2160p), built-in HDBaseT, and OptiView Technology for optimized day & night viewing.
Designed to withstand the harshest environments, the Pro Series is completely weatherproof and features a tempered glass shield to protect the screen in active environments. A built-in heating and cooling system allows the display to operate in temperatures from -40 F up to 122 degrees F. Made for permanent outdoor installation.


above |
Chen The Arousing, Thunder |
|
below |
Chen The Arousing, Thunder |
Shock brings success.
Shock comes--oh, oh!
Laughing words--ha, ha!
The shock terrifies for a hundred miles,
And he does not let fall the sacrificial spoon and chalice.
Thunder repeated: the image of Shock.
Thus in fear and trembling
The superior man sets his life in order
And examines himself.
Nine at the beginning means:
Shock comes--oh, oh!
Then follow laughing words--ha, ha!
Good fortune.
Six in the second place means:
Shock comes bringing danger.
A hundred thousand times
You lose your treasures
And must climb the nine hills.
Do not go in pursuit of them.
After seven days you will get them back.
Six in the third place means:
Shock comes and makes one distraught.
If shock spurs to action
One remains free of misfortune.
Nine in the fourth place means:
Shock is mired.
Six in the fifth place means:
Shock goes hither and thither.
Danger.
However, nothing at all is lost.
Yet there are things to be done.
Six at the top means:
Shock brings ruin and terrified gazing around.
Going ahead brings misfortune.
If it has not yet touched one's own body
But has reached one's neighbor first,
There is no blame.
One's comrades have something to talk about.


CSS has a simple syntax and uses a number of English keywords to specify the names of various style properties.
A style sheet consists of a list of rules. Each rule or rule-set consists of one or more selectors, and a declaration block.
Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language like HTML.[1] CSS is a cornerstone technology of the World Wide Web, alongside HTML and JavaScript
Article


Permissions¶
Examples can be found at the end of the page.
Permissions¶
| Permission | Description
|
|---|---|
| dt.home | Travel to and set home (combines the two child permissions)
|
| dt.sethome | Only set own home
|
| dt.travelhome | Only travel to own home
|
| dt.ctravel | Travel to coordinates
|
| dt.ptravel | Travel to a player
|
| dt.fhome | Travel to faction-home (requires Factions)
|
| dt.tspawn | Travel to town spawn (requires Towny)
|
| dt.travel.* | Travel to all stations
|
| dt.travel.<stationname> | Travel to a specified station
|
| dt.flight.* | Using all flights
|
| dt.flight.<flightname> | Using the specified flight
|
| dt.admin.* | All administrative functions
|
| dt.admin.reload | Permission to reload config files
|
| dt.admin.signs | All administrative functions connected to signs
|
| dt.admin.stations | All administrative functions connected to stations
|
| dt.admin.flights | All administrative functions connected to flights
|
| dt.admin.statdragon | Create and remove stationary dragons
|
| dt.admin.remdragons | Remove dragons without riders near the player
|
| dt.nocost.* | Player doesn’t need to pay for anything
|
| dt.nocost.travel.* | Player doesn’t need to pay for travels at all
|
| dt.nocost.travel.command | Player doesn’t need to pay for travels by command
|
| dt.nocost.travel.sign | Player doesn’t need to pay for travels by sign
|
| dt.nocost.randomtravel.* | Player doesn’t need to pay for travels to a random location at all
|
| dt.nocost.randomtravel.command | Player doesn’t need to pay for travels to a random location by command
|
| dt.nocost.randomtravel.sign | Player doesn’t need to pay for travels to a random location by sign
|
| dt.nocost.ptravel | Player doesn’t need to pay for travels to players
|
| dt.nocost.ctravel | Player doesn’t need to pay for travels to coordinates
|
| dt.nocost.fhome | Player doesn’t need to pay for travels to faction’s home
|
| dt.nocost.flight.* | Player doesn’t need to pay for flights at all
|
| dt.nocost.flight.command | Player doesn’t need to pay for flights by command
|
| dt.nocost.flight.sign | Player doesn’t need to pay for flights by sign
|
| dt.nocost.home.* | Player doesn’t need to pay for home-stuff at all
|
| dt.nocost.home.travel | Player doesn’t need to pay for home-stuff for travelling to his home
|
| dt.nocost.home.set | Player doesn’t need to pay for home-stuff for setting his home
|
| dt.nocost.ctravel | Player doesn’t need to pay for travel to coordinates
|
| dt.nocost.ptravel | Player doesn’t need to pay for travel to players
|
| dt.ptoggle | Allows a player to toggle ptravels to him on/off
|
| dt.notrequireitem.* | Player doesn’t need the “requiredItem” to use DT at all
|
| dt.notrequireitem.travel | Player doesn’t need the “requiredItem” to use DT for travels
|
| dt.notrequireitem.flight | Player doesn’t need the “requiredItem” to use DT for flights
|
| dt.ignoreusestations.* | Player doesn’t need to be at a station to use anything
|
| dt.ignoreusestations.travels | Player doesn’t need to be at a station to use travels
|
| dt.ignoreusestations.flights | Player doesn’t need to be at a station to use flights
|
| dt.ignoredragonlimit | Allows player to mount a dragon, even if the server has already
reached the limit of dragons set in the config
|
| dt.ignoreminheight | Allows player to mount a dragon, even if he is below
the minimum mount height set in the config
|
| dt.ignoredamagerestriction | Allows player to mount a dragon, even if the server has already received
damage and the cooldown time set in the config has not passed since then.
|
Examples¶
| dt.travel.stationatspawn | A player with this permission can travel to the starion “stationatspawn”
|
| dt.travel.* | A player with this permission can travel to any station
|
| dt.flight.exampleflight | A player with this permission can use the flight “exampleflight”
|
| dt.flight.* | A player with this permission can use all flights
|
| dt.nocost.travel.command | A player with this permission can travel by command | without getting charged for it
|


MType
- the type of message for the fieldBType
- the type of builder for the fieldIType
- the common interface for the message and the builderpublic abstract class RepeatedFieldBuilder<MType extends com.google.protobuf.Message,BType extends com.google.protobuf.Message.Builder,IType extends com.google.protobuf.MessageOrBuilder> extends java.lang.Object implements ProtoInterfaces.BuilderParent, ProtoInterfaces.IFieldBuilder
RepeatedFieldBuilder
implements a structure that a protocol message uses to hold a
repeated field of other protocol messages. It supports the classical use case of adding immutable
Message
's to the repeated field and is highly optimized around this (no extra memory
allocations and sharing of immutable arrays).
It also supports the additional use case of adding a Message.Builder
to the repeated
field and deferring conversion of that Builder
to an immutable Message
. In this
way, it's possible to maintain a tree of Builder
's that acts as a fully read/write data
structure.
Logically, one can think of a tree of builders as converting the entire tree to messages when
build is called on the root or when any method is called that desires a Message instead of a
Builder. In terms of the implementation, the SingleFieldBuilder
and
RepeatedFieldBuilder
classes cache messages that were created so that messages only need
to be created when some change occured in its builder or a builder for one of its descendants.
RepeatedFieldBuilder
| Constructor and Description |
|---|
RepeatedFieldBuilder(java.util.List<MType> messages,
boolean isMessagesListMutable,
ProtoInterfaces.BuilderParent parent,
boolean isClean)
Constructs a new builder with an empty list of messages.
|
| Modifier and Type | Method and Description |
|---|---|
RepeatedFieldBuilder<MType,BType,IType> |
addAllMessages(java.lang.Iterable<? extends MType> values)
Appends all of the messages in the specified collection to the end of this list, in the order
that they are returned by the specified collection's iterator.
|
BType |
addBuilder(int index,
MType message)
Inserts a new builder at the specified position in this list.
|
BType |
addBuilder(MType message)
Appends a new builder to the end of this list and returns the builder.
|
RepeatedFieldBuilder<MType,BType,IType> |
addMessage(int index,
MType message)
Inserts the specified message at the specified position in this list.
|
RepeatedFieldBuilder<MType,BType,IType> |
addMessage(MType message)
Appends the specified element to the end of this list.
|
java.util.List<MType> |
build()
Builds the list of messages from the builder and returns them.
|
void |
clear()
Removes all of the elements from this list.
|
void |
dispose() |
BType |
getBuilder(int index)
Gets a builder for the specified index.
|
java.util.List<BType> |
getBuilderList()
Gets a view of the builder as a list of builders.
|
int |
getCount()
Gets the count of items in the list.
|
MType |
getMessage(int index)
Get the message at the specified index.
|
java.util.List<MType> |
getMessageList()
Gets a view of the builder as a list of messages.
|
IType |
getMessageOrBuilder(int index)
Gets the base class interface for the specified index.
|
java.util.List<IType> |
getMessageOrBuilderList()
Gets a view of the builder as a list of MessageOrBuilders.
|
ProtoInterfaces.BuilderParent |
getParent() |
boolean |
isEmpty()
Gets whether the list is empty.
|
boolean |
isInitialized() |
void |
markDirty()
A builder becomes dirty whenever a field is modified -- including fields in nested builders
-- and becomes clean when build() is called.
|
protected abstract SingleFieldBuilder<MType,BType,IType> |
newSingleFieldBuilder(MType message,
ProtoInterfaces.BuilderParent parent,
boolean isClean) |
void |
remove(int index)
Removes the element at the specified position in this list.
|
RepeatedFieldBuilder<MType,BType,IType> |
setMessage(int index,
MType message)
Sets a message at the specified index replacing the existing item at that index.
|
public RepeatedFieldBuilder(java.util.List<MType> messages, boolean isMessagesListMutable, ProtoInterfaces.BuilderParent parent, boolean isClean)
messages
- the current list of messagesisMessagesListMutable
- Whether the messages list is mutableparent
- a listener to notify of changesisClean
- whether the builder is initially marked cleanprotected abstract SingleFieldBuilder<MType,BType,IType> newSingleFieldBuilder(MType message, ProtoInterfaces.BuilderParent parent, boolean isClean)
public ProtoInterfaces.BuilderParent getParent()
getParent
in interface ProtoInterfaces.BuilderParent
public void dispose()
dispose
in interface ProtoInterfaces.IFieldBuilder
public int getCount()
public boolean isEmpty()
public MType getMessage(int index)
Builder
, it is converted to a Message
by calling Message.Builder#buildPartial
on it.index
- the index of the message to getpublic BType getBuilder(int index)
Message.toBuilder()
.index
- the index of the message to getpublic IType getMessageOrBuilder(int index)
index
- the index of the message to getpublic RepeatedFieldBuilder<MType,BType,IType> setMessage(int index, MType message)
index
- the index to set.message
- the message to setpublic RepeatedFieldBuilder<MType,BType,IType> addMessage(MType message)
message
- the message to addpublic RepeatedFieldBuilder<MType,BType,IType> addMessage(int index, MType message)
index
- the index at which to insert the messagemessage
- the message to addpublic RepeatedFieldBuilder<MType,BType,IType> addAllMessages(java.lang.Iterable<? extends MType> values)
values
- the messages to addpublic BType addBuilder(MType message)
message
- the message to add which is the basis of the builderpublic BType addBuilder(int index, MType message)
index
- the index at which to insert the buildermessage
- the message to add which is the basis of the builderpublic void remove(int index)
index
- the index at which to remove the messagepublic void clear()
clear
in interface ProtoInterfaces.IFieldBuilder
public java.util.List<MType> build()
build
in interface ProtoInterfaces.IFieldBuilder
public java.util.List<MType> getMessageList()
public java.util.List<BType> getBuilderList()
public java.util.List<IType> getMessageOrBuilderList()
public void markDirty()
ProtoInterfaces.BuilderParent
markDirty
in interface ProtoInterfaces.BuilderParent
markDirty
in interface ProtoInterfaces.IFieldBuilder
public boolean isInitialized()
isInitialized
in interface ProtoInterfaces.IFieldBuilder


BIM360 Project Setup
SETUP
1. Use Forge clientID rZboPCXwdKnmxeByCWbX7Fz1YGmIjGja and add it to BIM 360 integration page
2. In Forge App configuration, set the callback to `http://localhost:8000/oauth/callback`
3. export CLIENT_ID=1234 & export SECRET=1234 in environment variables
LOGIN
1. Click login button
2. This will redirect the browser to the CLI callback and provide a BIM360 "Access Token" to the CLI
3. Now the CLI has an ACCESS_TOKEN to run the other operations
(NOTE: You can use the browser's network console, and grab an access token from the BIM 360 web page, but only for development/testing purposes )


--- title: grain2d sidebar: function_reference_sidebar permalink: grain2d.grain2d.html folder: function_reference toc: false ---
class representing two dimensional grains
| V | n x 2 list of vertices |
| poly | cell array of the polyhedrons |
| ori | array of mean orientations |
| CSList | cell array of symmetries |
| phaseId | list of phaseId for each grain |
| phaseMap |
| phaseId | phase identifier of each grain |
| id | id of each grain |
| poly | cell list of the vertex ids of each grain (index to V) |
| V | list of verticies (x,y coordinates) |
| boundary | grainBoundary |
| innerBoundary | grainBoundary |
| triplePoints | @triplePoints |
| grainSize | number if pixels belonging to the grain |
| GOS | grain orientation spread |
| meanOrientation | average grain orientation (only single phase) |
GrainReconstruction GrainSpatialPlots SelectingGrains ShapeParameter


I was in the process of start.sh when one of the updates was pushed. Started ok and immediately got a couple of notarizations. git log -1
commit fda3e349607b4606dfc7f5acd1cd6eac819707c1 (HEAD -> master, origin/master, origin/HEAD)
Author: blackjok3r<EMAIL_ADDRESS>Date: Fri Mar 1 16:28:55 2019 +0800
fix update_komodo.sh with build.sh


This example demonstrates using the Slick.Plugins.HeaderButtons plugin to easily add buttons to column headers. These buttons can be specified directly in the column definition, and are very easy to configure and use.


In our society today, there are a lots of ways to make money but when classified into a more generalized spectrum, falls in either of the two categories --selling products or offering services. If you intend to run a successful business on-line, then product marketing is the best way to do it,with affiliate marketing being the best way to start. Here are some advantages.
Albeit the claims form professional about how easy affiliate marketing is, that is far from being true which is reflected in the steep leaning curve. The success of your business will depend on how fast you are able to get over that curve, and whether or not your business model is viable enough to get over its initial stages.Chances are that you have a long-term busi ness venture in mind, something that you would love to spend every day doing. Do you really want to risk the viability (and fun) of that idea by erately trying to make it work? Of course not! Affiliate marketing allows you to learn the ropes with other products and niches, protecting your big idea.
Everyone has something that they are passionate about. You may not realize it, but the things that you like, no matter what they are, can be turned into a
viable business. You just have to be able to find the market within your passion and figure out what products
this market is willing to buy on-line.Affiliate marketing allows you to interact
with other product creators effectively, thereby sharing ideas, skills and most important of all alleviating you
of any doubt about how valid your business idea is. With the knowledge gained over time, decide to create
something incredibly big becomes really easy.
Over 75% of new business barely makes it past their third year.The statistics are even more crippling for start-ups. Paraphrasing the renowned co-founder of y-combinator- Paul Graham ,\"if you can just escape dying, you succeed\" . As it turns out the reason for this massive failure is not because the land scape is too harsh or not convenient for doing business, it just so happens that most new business owners are not prepared well enough educationally and experience wise. The world of affiliate marketing is not an exception to the above rules.The good news is that education-wise there are lots of great resources out there for you to devour its just a mater of knowing where to look. As for experience being a significant factor, is left for time itself to prove right or wrong.
Start earning bitcoins for your articles published on palingram today
Searhing for apartments near your school has never been easier


JS Switch Statement
The switch statement is used to perform different actions based on different conditions.
This is how it works:
- The switch expression is evaluated once.
- The value of the expression is compared with the values of each case.;
- If there is a match, the associated block of code is executed.
- If there is no match, the default code block is executed.


ZIP: 211 Title: Disabling Addition of New Value to the Sprout Chain Value Pool Owners: Daira Emma Hopwood<EMAIL_ADDRESS>Credits: Sean Bowe Status: Final Category: Consensus Created: 2019-03-29 License: MIT
The key words "MUST", "SHOULD", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119. 1
The term "network upgrade" in this document is to be interpreted as described in ZIP 200 3.
The term "Sprout shielded protocol" in this document refers to the shielded payment protocol defined at the launch of the Zcash network.
The term "Sapling shielded protocol" in this document refers to the shielded payment protocol introduced in the Sapling network upgrade 4 2.
The term "Sprout chain value pool balance" in this document is to be interpreted as described in ZIP 209 5.
This proposal disables the ability to add new value to the Sprout chain value pool balance. This takes a step toward being able to remove the Sprout shielded protocol, thus reducing the overall complexity and attack surface of Zcash.
The first iteration of the Zcash network, called Sprout, provided a shielded payment protocol that was relatively closely based on the original Zerocash proposal. 8
The Sapling network upgrade 4 introduced significant efficiency and functionality improvements for shielded transactions. It is expected that over time, the use of Sapling will replace the use of Sprout in shielded transactions.
The Sapling and Sprout shielded protocols employ different cryptographic designs. Since an adversary could potentially exploit any vulnerability in either design, supporting both presents additional risk over supporting only the newer Sapling shielded protocol.
For example, a vulnerability was discovered in the zero-knowledge proving system originally used by Zcash that could have allowed counterfeiting 9. While this particular vulnerability was addressed (also for Sprout shielded transactions) by the Sapling upgrade, and we are not aware of others at the time of writing, the possibility of other cryptographic weaknesses cannot be entirely ruled out.
In addition, the Zcash specification and implementation incurs complexity and "technical debt" from the requirement to support and test both shielded payment protocols.
Removing the ability to add to the Sprout chain value pool balance, is a first step toward reducing this complexity and potential risk. This does not prevent extracting value held in Sprout addresses and sending it to transparent addresses, or to Sapling addresses via the migration tool 7.
Consensus rule: From the relevant activation height, the vpub_old
field of each JoinSplit description MUST be zero.
When this proposal is activated, nodes and wallets MUST disable any facilities to create transactions that have both one or more outputs to Sprout addresses, and one or more inputs from non-Sprout addresses. This SHOULD be made clear in user interfaces and API documentation.
Notes:
vpub_old
fields are zero, but there are nevertheless sufficient funds from Sprout inputs to balance the Sprout outputs. This is prohibited for usability reasons, but not by consensus.This design does not require any change to the JoinSplit circuit, thus minimizing the risk of security regressions, and avoiding the need for a new ceremony to generate circuit parameters.
The code changes needed are very small and simple, and their security is easy to analyse.
During the development of this proposal, alternative designs were considered that would have removed some fields of a JoinSplit description. These alternatives were abandoned for several reasons:
The security motivations for making this change are described in the Motivation section. Privacy concerns that led to the current design are discussed in the Rationale section.
Since all clients change their behaviour at the same time from this proposal's activation height, there is no additional client distinguisher.
This proposal will be deployed with the Canopy network upgrade. 6
| 1 | RFC 2119: Key words for use in RFCs to Indicate Requirement Levels |
|---|
| 2 | Zcash Protocol Specification, Version 2021.2.16 or later |
|---|
| 3 | ZIP 200: Network Upgrade Mechanism |
|---|
| 4 | ZIP 205: Deployment of the Sapling Network Upgrade |
|---|
| 5 | ZIP 209: Prohibit Negative Shielded Value Pool |
|---|
| 6 | ZIP 251: Deployment of the Canopy Network Upgrade |
|---|
| 7 | ZIP 308: Sprout to Sapling Migration |
|---|
| 8 | Zerocash: Decentralized Anonymous Payments from Bitcoin (extended version) |
|---|
| 9 | Zcash Counterfeiting Vulnerability Successfully Remediated |
|---|


|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.net.ProxySelector
public abstract class ProxySelector
Selects the proxy server to use, if any, when connecting to the
network resource referenced by a URL. A proxy selector is a
concrete sub-class of this class and is registered by invoking the
setDefault
method. The
currently registered proxy selector can be retrieved by calling
getDefault
method.
When a proxy selector is registered, for instance, a subclass
of URLConnection class should call the select
method for each URL request so that the proxy selector can decide
if a direct, or proxied connection should be used. The select
method returns an iterator over a collection with
the preferred connection approach.
If a connection cannot be established to a proxy (PROXY or
SOCKS) servers then the caller should call the proxy selector's
connectFailed
method to notify the proxy
selector that the proxy server is unavailable.
| Constructor Summary | |
|---|---|
ProxySelector()
|
| Method Summary | |
|---|---|
abstract void |
connectFailed(URI uri,
SocketAddress sa,
IOException ioe)
Called to indicate that a connection could not be established to a proxy/socks server. |
static ProxySelector |
getDefault()
Gets the system-wide proxy selector. |
abstract List<Proxy> |
select(URI uri)
Selects all the applicable proxies based on the protocol to access the resource with and a destination address to access the resource at. |
static void |
setDefault(ProxySelector ps)
Sets (or unsets) the system-wide proxy selector. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProxySelector()
| Method Detail |
|---|
public static ProxySelector getDefault()
ProxySelector
SecurityException
- If a security manager has been installed and it denies
NetPermission
("getProxySelector")setDefault(ProxySelector)
public static void setDefault(ProxySelector ps)
ps
- The HTTP proxy selector, or
null
to unset the proxy selector.
SecurityException
- If a security manager has been installed and it denies
NetPermission
("setProxySelector")getDefault()
public abstract List<Proxy> select(URI uri)
socket://host:port
uri
- The URI that a connection is required to
Proxy
;
when no proxy is available, the list will
contain one element of type
Proxy
that represents a direct connection.
IllegalArgumentException
- if either argument is nullpublic abstract void connectFailed(URI uri, SocketAddress sa, IOException ioe)
uri
- The URI that the proxy at sa failed to serve.sa
- The socket address of the proxy/SOCKS serverioe
- The I/O exception thrown when the connect failed.
IllegalArgumentException
- if either argument is null
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2004, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.


{% load crispy_forms_tags %}
File browser
You are logged in as {{user}}
{% for dir, subfiles, subdirs in directories %} {% include "files/listing.html" with root=dir files=subfiles dirs=subdirs %} {% endfor %}
Create new directory
Search for a file
{% csrf_token %} {{ search_form|crispy }}


Official Breaks With White House, Will Testify in Impeachment Probe
by ERIKA WILLIAMSWASHINGTON (CN) – Breaking from Trump’s orders to not comply with the impeachment inquiry, White House budget official Mark Sandy indicated Thursday he will testify before the House Intelligence Committee at a closed hearing on Saturday.
Unlike many officials who seemingly continue to abide by White House instructions to ignore congressional subpoenas related to the president’s Ukraine dealings, the former acting director of the Office of Budget and Management is reportedly expected to testify.
“If he is subpoenaed, he will appear,” said Sandy’s attorney Barbara “Biz” Van Gelder on Thursday.
After weeks of closed-door sessions that featured prominent former U.S. ambassadors and other officials, public hearings kicked off on Wednesday.
About $400 million in U.S. aid for Ukraine was put on hold this year and, as the agency’s current associate director for national security programs, Sandy may be able to tell Congress why Trump withheld those funds.
That question is the crux of the inquiry, which focuses on whether the president illegally pushed Ukraine officials to probe former Vice President Joe Biden and his son Hunter in exchange for military aid.
Sandy’s testimony will mark the first in this case derived from a White House budget official. The testimony, however, is not expected to be a public one.
Former U.S. ambassador to Ukraine Marie Yovanovitch, who was removed from her post by Trump in May, is expected on Friday to expand on her closed-door deposition that took place last month. There, she told lawmakers that there was a “concerted campaign” against her by Trump and his personal lawyer Rudy Giuliani.
Eight more witnesses will testify next week during open hearings, including; National Security Council official Lt. Col. Alexander Vindman, U.S. ambassador to the European Union Gordon Sondland and Fiona Hill, former Russia adviser to the White House.
Hill previously told lawmakers about former National Security Advisor John Bolton’s concerns about Ukraine and his attempt to dissasociate himself from an effort to pressure the Ukrainian president into investigating the Bidens.
This story is developing…
Copyright © 2019 courthousenews.com


The SineWave object generates a sine wave output:
y = Offset + Amplitude * sin( 2π t/Period + PhaseAngle )
where:
y = present output value for the SineWave object
t = present simulation time
The value returned by the SineWave is calculated on demand.


Here are some projects I've worked on. Most have GitHub repositories. Some have associated blog posts.
A jQuery plugin for making a div with a shadow that moves as you scroll down the page. The effect is similar in idea to the parallax effect. But with shadows.
A website for learning how to do pull requests. Basically just a sandbox area for learning collaborative git skillz.
Combine any 2 Twitter feeds with this app! Create surprising and fun phrases! Give this app any two Twitter handles, and it will generate a few new tweets based on the 2 Twitter user's past handles. It's a markov chain. And it's fun. You can even retweet the results from the Twitter Fitter account.
A Goodreads clone in Rails. Currently working on this.
A little tool written in Ruby that will put Geocode data into any CSV file based on the address column. Created as part of the CodeAcross Atlanta Hack event.
A cheatsheet for writing poetry in form!
A dashboard created with a team of other designers, engineers, and creators for the Atlanta Regional Commission during GoodieHack 2015.


HMVC requests
HMVC requests are a great way to separate logic and re-use controller logic in multiple places. One common use of this is when you use a theme or template engine to generate your pages, where every page is divided into sections, and sections are populated by widgets. By using modules to produce the widget output, you can create a highly modular application, with easy to re-use components.
You call a module controller method using the Request class:
// fetch the output of a controller
$widget = Request::factory('mycontroller/mymethod/parms')->execute();
echo $widget;
// or fetch the output of a module
$widget = Request::factory('mymodule/mycontroller/mymethod/parms', false)->execute();
echo $widget;
By default, all requests made are processed by Fuel's routing engine. If you want to request something that isn't routeable (for example because you don't want a browser to request it) you should pass 'false' as second parameter to the factory() call. If you don't you will end up with a 404 error when you execute the request!
Loading views in HMVC request is the same as in normal requests and controller accessed by HMVC request are also approuchable via the browser. In some cases, for example widgets, are not suppose to accessed through the browser. In those cases you'll want to check if the request is made through HMVC or the browser. The following example shows you how to check for a HMVC request:
<?php
class Controller_Widget extends Controller {
public function action_show()
{
if(Request::main() === Request::active())
{
// this is the main request
}
else
{
// this is a HMVC request
}
}
}
404 during HMVC requests
When a 404 occurs during a HMVC request a Request404Exception is thrown. If uncaught it will trigger a full 404 message using Request::show_404(). But you can prevent this and handle the 404 yourself:
try
{
\Request::factory('this_will_fail');
}
catch (Request404Exception $e)
{
// deal with it
}
Traversing Request instances
If you want to access other Requests you can traverse them using two methods: $request->parent() and $request->children. The parent is the Request during which the current Request was created (null for the main Request). The children are all the Requests created during the current Request.


| # | Name | Location | Review | |
|---|---|---|---|---|
| 1 | Raffaelo's Pizza | San Antonio de Pereira Park | See More | |
| 2 | Lazzaroni Pizzería | San Antonio - La Ceja Road | See More | |
| 3 | Napoles Pizza | Porvenir Neighborhood | See More | |
| 4 | Pizzería El Porton | San Antonio de Pereira Park | See More | |
| 5 | Líbano Pizza | Porvenir Neighborhood | See More |


Events
Home
Upcoming Events
Ongoing Events
Previous Events
Contact Us
About
UPCOMING EVENTS
S-NO.
EVENT NAME
DATE
2
REPUBLIC DAY
26th January 2020
1
MANAGEMENT FEST
4th February 2020


Hello
I'M MOHD HAMZA SUHAIL.

ABOUT
Who I Am
I am sure you just want to check my work out, so I'll be quick. I am not the smartest, but I am smart. Currently, I live in Aligarh and work as UI/UX Head for Inceptum Technologies. Strong engineering professional with an ongoing Bachelor's degree focused in Chemical Engineering from Aligarh Muslim University.
What I Do
Build websites. I specialize in front-end development (HTML5, CSS3, JavaScript) but many times I get my hands dirty with some backend (PHP, MySQL). If you want to work with me or just say "hey hamza, what's up?" for no reason what so ever, send me an email.
Download CVCONTACT
Mail Me
&
Find me on Social Networks
ALWAYS INTERESTED IN NEW PROJECTS, JUST SEND ME AN EMAIL AND I'LL GET BACK TO YOUR INQUIRY ASAP.


[gecode-users] Gecode 4.0.0
Filip Konvička
filip.konvicka at logis.cz
Sun Nov 6 08:41:35 CET 2011
Hi Vincent,
I agree. Regarding LGPL - I should have said that it would make the
Gecode package include LGPL code, which might be problematic for some.
But it's still OK for many. I was briefly looking at the Internet on
Friday and I haven't seen a usable math library that is not LGPL.
Best,
Filip
> Hi Filip,
>
> I don't know smathlib, but as you said, it seems to be not maintained
> anymore.
> Elisa is based on Gaol which is based on the IBM mathematical library,
> so it also relies on
> another external library.
>
> I agree to not start a new implementation, it will be painfull. I
> don't think that Gecode will
> become LGPL if it links with a LGPL library. But users should have the
> choice to not embed such a dependency.
> I didn't find a mathematical library which fit all our needs (license,
> multi platforms, small, reliable).
> So I see no choice but to use an external dependency which will be
> LGPL. Up to now, I retained two possibilities which
> are MPFR or CRlibm. Maybe CRLibm is easier to build under windows than
> MPFR? (I am not a Windows user so I have no feedback on this)
>
> I also think that a build-option should be used to decide if
> transcendental constraints must be included. But we still have
> to provide a fully functional implementation of FloatVar, and to
> achieve it, we must choose a library. I prefer a library
> which works on Linux and Windows. I think it's up to Gecode
> maintainers to decide which choice has to be made, I will follow
> their conlusions. But in the meantime, I will continue to dig the
> topic, so thank you very much for all your remarks and
> advices :) If a Windows user has ever used an exact mathematical
> library, feel free to share your comments.
>
> Best,
> Vincent
>
> Filip Konvi?ka <filip.konvicka at logis.cz> a écrit :
>
>>> Maybe you can have a look at Gaol:
>>> http://sourceforge.net/projects/gaol/
>>>
>>> You can also write to the author Frederic Goualard to talk about the
>>> subject.
>>>
>>
>> One issue will probably be the license - both Gaol and MPFR are LGPL,
>> so including them in a Gecode distribution would make that Gecode
>> package also LGPL, I guess. Again, if a user decides to build their
>> own Gecode with this included, it's fine, so it's great to have the
>> option. But for a standard Gecode release my understanding was that
>> the ideal license would be MIT-style.
>>
>> Best,
>> Filip
>>
>>
>> _______________________________________________
>> Gecode users mailing list
>> users at gecode.org
>> https://www.gecode.org/mailman/listinfo/gecode-users
>>
>
>
>
More information about the users
mailing list


use FSM branch AND then build as normal
./komodod -ac_name=ROGUE -ac_supply=1000000 -pubkey=<yourpubkey> -addnode=<IP_ADDRESS> -ac_cclib=rogue -ac_perc=10000000 -ac_reward=100000000 -ac_cc=60001 -ac_script=2ea22c80203d1579313abe7d8ea85f48c65ea66fc512c878c0d0e6f6d54036669de940febf8103120c008203000401cc -daemon
Guide here: https://github.com/KomodoPlatform/komodo/wiki/Get-Started-with-Rogue-Game
Explorer: http://rogue.explorer.dexstats.info/
Player's Handbook: https://github.com/jl777/komodo/blob/jl777/src/cc/rogue/rogue.doc
100 messages
Before 05-Dec-19 12:00 AM
TonyL01-Mar-19 04:48 PM
But if keystroke with "failed" status in log and not generated transaction - after I quit rogue how it'll be broadcasted
jl777c01-Mar-19 04:48 PM
tui
TonyL01-Mar-19 04:48 PM
Aha
jl777c01-Mar-19 04:49 PM
when i put in logic to wait for confirmation, people complained about locked up system
so on exit, i now exit
TonyL01-Mar-19 04:49 PM
Ok, I'll parse keystrokes.log I think to know the status
jl777c01-Mar-19 04:49 PM
but that means that there could be 2 keystrokes tx in the mempool
1 that was there the moment of game end and another that is the last keystrokes
i think a good thing would be to do an extract, it prints the gold, etc
if that is sane, then do a bailout
if not, then dont. once you do a bailout, whatever happens is permanent
the utxo from the newgame tx is being spent and that is a onetime thing
i think extract as a sanity test is good. you can also see if there are 1 or 2 keystrokes tx in the mempool
and user can confirm the gold amounts extracted before issuing bailout
this way, we can at least troubleshoot any games that have a bad extraction, while they are still in that state. once it is bailed out, there isnt much i can do, nor can i find out what state it was in
extract should be able to extract the full gameplay even if it is in the mempool, but that needs to be tested
TonyL01-Mar-19 04:55 PM
I need to know two things as I see;
1) txids of keystrokes which were broadcasted - to wait until they mined
2) explore if there any error = not broadcasted keystroke, ensure that it broadcasted and mined before bailout(edited)
jl777c01-Mar-19 04:55 PM
keystrokes.log should have all that
TonyL01-Mar-19 04:55 PM
Yep, so I'll just parse keystrokes.log
jl777c01-Mar-19 04:55 PM
and get confirmation of bailout with extract command result
that way I can always fix whatever bug and rescue an otherwise would be deleted playerdata
TonyL01-Mar-19 04:56 PM
Extract working before bailout as well?
Oh it doing first
Then baillout
jl777c01-Mar-19 04:56 PM
it should, needs testing
TonyL01-Mar-19 04:56 PM
Ok, I see
jl777c01-Mar-19 04:57 PM
yes, extract to make sure it will be a happy result, then and only then bailout. that alone might solve the main issue of tears for lost playerdata
then as all the various edge cases are fixed, all the extract will return the happy data for safe bailout. extract is essentially a trial run for a bailout, without doing the actual bailout
only if there is any issue, would tui need to parse keystrokes to reconstruct what needs to be done
it could be that all keystrokes need to be confirmed before a proper extract
not sure
so, there seems to be a lot of questions that can be answered with a few changes to tui
1
TonyL01-Mar-19 04:59 PM
I'll look for "status":"error" in keystrokes.log but only when player stopped game - to not corrupt keystrokes consistency
jl777c01-Mar-19 05:00 PM
yes
that and extract before bailout with user confirm of results
TonyL01-Mar-19 05:00 PM
Great! Now it's clear what to do and why
Will start tomorrow from it
Now head not working good already - typing keystokes instead of keystrokes lol(edited)
So written code will be buggy 100%
Dear ROGUERs - if you don't want to lose progress - it's better to not play now. I'll try to implement data saving ensuring on TUI side tomorrow.(edited)
Cryptofist01-Mar-19 05:05 PM
@TonyL So testing play bounty, lets say March 4th -7th ?
TonyL01-Mar-19 05:06 PM
Let's not set deadlines
Cryptofist01-Mar-19 05:06 PM
I'm still on the same version as of 2 days ago, everything works fine except that all warriors save
Sure
TonyL01-Mar-19 05:06 PM
If it will work fine tomorrow we'll make it after tomorrow. If not - there will be no sense until it fixed(edited)
Cryptofist01-Mar-19 05:06 PM
will switch to "Upcoming Play testing bounty: Stay tuned"
And add the instructions and info to view. Its a lot so having a head start on what to doc is good.
Ill delete all of the other posts I made as well.
TonyL01-Mar-19 05:07 PM
You can just write that critical bugs were found
And first round of campaign is finished
Cryptofist01-Mar-19 05:08 PM
Do you want me to keep documenting every time i play?
I think I have like... 12 games to submit
TonyL01-Mar-19 05:08 PM
Btw ronyi earned reward because sent correct report
1
Cryptofist01-Mar-19 05:08 PM
yay ronyi!
TonyL01-Mar-19 05:08 PM
Only winner again!
Pinned a message.
Cryptofist01-Mar-19 05:09 PM
Ill submit mine when I get a chance. I had some trouble understanding where to see if gold --> ROGUE properly
ronyi01-Mar-19 05:10 PM
? I'm just playing.
Cryptofist01-Mar-19 05:10 PM
There was a bounty for filling out the form. Thank you for all of your help !!!
Glad you have an awesome perspective about it
ronyi01-Mar-19 05:11 PM
Now everything works well on my side, intresting. Last 8 play without any issue.
1
TonyL01-Mar-19 05:23 PM
For me it happening in ~20% of such short games. So maybe you just was unlucky at first. Anyway hope TUI fix will help
ronyi01-Mar-19 06:00 PM
hypothermia(secound time), kill "1 hit" and warrior is alive.
Cryptofist01-Mar-19 10:36 PM
Finished my update, going to look it over a couple more times before sharing it. I'l be back here asap, going to try and rest up and beat being sick. See you all soon.
TonyL02-Mar-19 06:59 AM
Have some progress Only left to detect errors in keystrokes and re-broadcast
Will assume that each second element I get from keystrokes.log for game is JSON response and left only it (params persists in JSON so I no need this list with call args)(edited)
A little inconsistency persists in JSONs:
When transaction broadcasting fine its:
So in case of success I need to expect "result" key, in case of error "status" key
TonyL02-Mar-19 07:22 AM
Hmm, not sure what can I do in case when no keystrokes at all for game in keystrokes.log:
Top Ten Scores:
Score Name
1 79 : quit on level 1.
39574
39574
Waiting for next block before bailout
Keystrokes of this game:
Extraction info:
{'name': 'rogue', 'method': 'extract', 'gametxid': 'ee487efdb37d4df59b680f5f3fbfe93b7da8bc49e3b954f3b463f379b3680e96', 'rogueaddr': 'RVuzXY65FyJiPPWSBc9efATh6nb4M9MceR', 'status': 'error'}
Aha, it was added with some delay
To file
So just have to scan file more until find something (edited)
jl777c02-Mar-19 07:24 AM
i can add local file logging for keystrokes if needed.
TonyL02-Mar-19 07:24 AM
I'm parsing keystrokes.log
jl777c02-Mar-19 07:27 AM
i guess that should work as good as it would be the same functions making the local log. ok, so it seems we are maybe going to have a new level of reliability. instead of relying on luck for bailing out with the right warrior we can verify ahead of time. and even take corrective actions. what would be left are edge case bugs where the bug is reproduced with somehow an extract that isnt working properly
1
TonyL02-Mar-19 07:29 AM
Oh yes, if progress not satisfy user - he can press button now and wait 10 seconds more, if no keystrokes found in log at all - it waiting until there will be some attempts, if keystroke broadcasted with error - it should rebroadcast it until get txid
Should me much better after polish it
Ohhh wrote Windows incompatible parser - just realised :/


Yes I currently don't feel like writing a paragraph right now so I am going to just start to type in random letters. hsdhksdhfdfjldfjjf;jfjddjfkdjkdjieuoeuoueriueeo.jjdljifjifjoieuoiueiufewueuefeihffh.


SPTYourMusic Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | SPTYourMusic.h |
Overview
This class provides helpers for using the your music features in the Spotify API.
API Docs: https://developer.spotify.com/web-api/browse-endpoints/
API Console: https://developer.spotify.com/web-api/console/user%20library/
API Request Factories
+ createRequestForCurrentUsersSavedTracksWithAccessToken:error:
Create a request for getting the authenticated user’s Your Music library tracks
+ (NSURLRequest *)createRequestForCurrentUsersSavedTracksWithAccessToken:(NSString *)accessToken error:(NSError **_Nullable)error
Parameters
accessToken |
An authenticated access token. Must be valid and authorized with the |
|---|---|
error |
An optional pointer to an |
Declared In
SPTYourMusic.h
+ createRequestForSavingTracks:forUserWithAccessToken:error:
Create a request for adding a set of tracks to the authenticated user’s Your Music library.
+ (NSURLRequest *)createRequestForSavingTracks:(NSArray *)tracks forUserWithAccessToken:(NSString *)accessToken error:(NSError **_Nullable)error
Parameters
tracks |
An array of |
|---|---|
accessToken |
An authenticated access token. Must be valid and authorized with the |
error |
An optional pointer to an |
Declared In
SPTYourMusic.h
+ createRequestForCheckingIfSavedTracksContains:forUserWithAccessToken:error:
Create a request for checking whether the authenticated user’s Your Music library contains a set of tracks.
+ (NSURLRequest *)createRequestForCheckingIfSavedTracksContains:(NSArray *)tracks forUserWithAccessToken:(NSString *)accessToken error:(NSError **_Nullable)error
Parameters
tracks |
An array of |
|---|---|
accessToken |
An authenticated access token. Must be valid and authorized with the |
error |
An optional pointer to an |
Declared In
SPTYourMusic.h
+ createRequestForRemovingTracksFromSaved:forUserWithAccessToken:error:
Create a request for removing a set of tracks from the authenticated user’s Your Music library.
+ (NSURLRequest *)createRequestForRemovingTracksFromSaved:(NSArray *)tracks forUserWithAccessToken:(NSString *)accessToken error:(NSError **_Nullable)error
Parameters
tracks |
An array of |
|---|---|
accessToken |
An authenticated access token. Must be valid and authorized with the |
error |
An optional pointer to an |
Declared In
SPTYourMusic.h
Convenience Methods
+ savedTracksForUserWithAccessToken:callback:
Gets the authenticated user’s Your Music Library tracks
+ (void)savedTracksForUserWithAccessToken:(NSString *)accessToken callback:(SPTRequestCallback)block
Parameters
accessToken |
An authenticated access token. Must be valid and authorized with the |
|---|---|
block |
The block to be called when the operation is complete, with the data set if success, otherwise an error. |
Discussion
This is a convenience method around the createRequest equivalent and the current SPTRequestHandlerProtocol
Declared In
SPTYourMusic.h
+ saveTracks:forUserWithAccessToken:callback:
Adds a set of tracks to the authenticated user’s Your Music Library.
+ (void)saveTracks:(NSArray *)tracks forUserWithAccessToken:(NSString *)accessToken callback:(SPTRequestCallback)block
Parameters
tracks |
An array of |
|---|---|
accessToken |
An authenticated access token. Must be valid and authorized with the |
block |
The block to be called when the operation is complete, with the data set if success, otherwise an error. |
Discussion
This is a convenience method around the createRequest equivalent and the current SPTRequestHandlerProtocol
Declared In
SPTYourMusic.h
+ savedTracksContains:forUserWithAccessToken:callback:
Checks whether the authenticated user’s Your Music Library contains a set of tracks.
+ (void)savedTracksContains:(NSArray *)tracks forUserWithAccessToken:(NSString *)accessToken callback:(SPTRequestCallback)block
Parameters
tracks |
An array of |
|---|---|
accessToken |
An authenticated access token. Must be valid and authorized with the |
block |
The block to be called when the operation is complete, with the data set if success, otherwise an error. |
Discussion
This is a convenience method around the createRequest equivalent and the current SPTRequestHandlerProtocol
Declared In
SPTYourMusic.h
+ removeTracksFromSaved:forUserWithAccessToken:callback:
Removes a set of tracks from the authenticated user’s Your Music Library.
+ (void)removeTracksFromSaved:(NSArray *)tracks forUserWithAccessToken:(NSString *)accessToken callback:(SPTRequestCallback)block
Parameters
tracks |
An array of |
|---|---|
accessToken |
An authenticated access token. Must be valid and authorized with the |
block |
The block to be called when the operation is complete, with the data set if success, otherwise an error. |
Discussion
This is a convenience method around the createRequest equivalent and the current SPTRequestHandlerProtocol
Declared In
SPTYourMusic.h


--- title: Contact call_to_action: Map ---
Contact us!
{{ site.data.company.contact_phone_number }}
{{ site.data.company.contact_email_address }}


# node-tar
Tar for Node.js.
[![NPM](https://nodei.co/npm/tar.png)](https://nodei.co/npm/tar/)
## API
See examples/ for usage examples.
### var tar = require(‘tar’)
Returns an object with .Pack, .Extract and .Parse methods.
### tar.Pack([properties])
Returns a through stream. Use [fstream](https://npmjs.org/package/fstream) to write files into the pack stream and you will receive tar archive data from the pack stream.
This only works with directories, it does not work with individual files.
The optional properties object are used to set properties in the tar ‘Global Extended Header’.
### tar.Extract([options])
Returns a through stream. Write tar data to the stream and the files in the tarball will be extracted onto the filesystem.
options can be:
path: ‘/path/to/extract/tar/into’, strip: 0, // how many path segments to strip from the root when extracting
}¶
options also get passed to the fstream.Writer instance that tar uses internally.
### tar.Parse()
Returns a writable stream. Write tar data to it and it will emit entry events for each entry parsed from the tarball. This is used by tar.Extract.


{% extends "content_template.html" %} {% from "components/page-header.html" import page_header %} {# Used by the content_template.html layout, prefixes the "navigation" accessible name #} {% set navigation_label_prefix = 'About Notify' %} {% block per_page_title %} Who can use Notify {% endblock %} {% block content_column_content %} {{ page_header( 'Who can use Notify' ) }}
GOV.UK Notify is available to:
If you work for one of these organisations but get an error when you try to create an account, contact support.
If you’re doing work for a public sector organisation you can use GOV.UK Notify.
Someone from the public sector organisation you’re working with needs to set up the account. Then they can invite you as a team member.
Notify is not currently available to charities.
The GOV.UK Notify service is only for people who work in the government or other public sector organisations.
{% endblock %}


--- date: 2013-10-18 08:00:05 author: Colene Chow title: "PhoneGap Day US 2013: PhoneGap Self Defense for Web Devs" format: html tags: - PhoneGap Day - Community - Event ---
Thank you to everyone who attended PhoneGap Day US 2013 and made it such a huge success!
As we mentioned in our previous PhoneGap Day posts, the audio quality is not what we were hoping for due to some technical glitches. We've been working madly to get it improved which is why we've been delayed in sharing them. Nothing too shabby, but not as good as being at PhoneGap Day in person! So, our apologies in advance but with that, on to the video!
Our next speaker is Lyza Danger Gardner, Co-founder of Cloud Four, and her talk "PhoneGap Self Defense for Web Devs".


| Rent Details | |
|---|---|
|
Pick Up Date: {RentalStartDate} Drop Off Date: {RentalEndDate} Rental Price: {TotalPrice} Paid Now: {RentalOnlineFee} Due at Dock: {DueAtDock} *Price does not include tax, security deposit, or reservation deposit. (Locate tax + deposits under "Boat Details" or on the boat owners listing page) |
|
| Owners Contact Information | |
|
Contact Name: {OwnerName} Marina Name: {MarinaName} Boat Address: {BoatAddress} Owner Phone: {OwnerPhone} Email: {OwnerEmail} Website: {OwnerWebsite} Cancellation Policy: {CancellationPolicy} |
|
| Boat Details | |
|
Facility #: {FacilityNumber}
Boat #: {BoatID} Boat Name: {BoatName} Year: {BoatYear} Make: {BoatMake} Model: {BoatModel} Size: {BoatSize} Passengers: {MaximumPassengers} Description: {BoatDescription} Requirements: {Requirement} Tax Rate: {TaxRate} Reservation Deposit: {ReservationDeposit} Security Deposit: {SecurityDeposit} Location Address: {MarinaAddress} |


Home
Products
About
Contact
Account
Connect with Me
I would love to connect with you. Please feel free to get in touch with me.
Send your request
Name
Phone
Email
Subject
Message
Submit
Email
<EMAIL_ADDRESS>Phone
4846433705
Address
Oxford Pennsylvania, 19363


The approaches to this city are as dramatic as its skyline, with its graceful church spires projecting above its huge ramparts. Even when inside the old walls, it is not easy to realise that large parts of it were rebuilt only 50 years ago, after the devastaion of World War Two.
Position 48° 38'26"N, 02° 02'15"W (river entrance)
For the visiting yacht, there are several berthing options.
Locking through to the Bassin Vauban provides complete shelter, with the added bonus of being right under the walls of the Intra Muros
(the old city).
The large marina at Les Bas-Sablons also provides a useful base, although is is a long walk from the old city. It is the best situation if any repairs are required.
The river Rance itself provides a huge number of anchorages, once through the lock in the Barrage. There is also a marina 6 miles up river, at Plouër, as well as ones at Lyvet (by the Chatelier lock) and at Dinan (if you draw 1.5m or less).
In more settled weather, the anchorage off Dinard is attractive, although it is a fair way from the shore. Also in the bay on the eastern side, north of the Sablon Towers. Don't be caught out by the huge tide range here - up to 13 metres!
Ile des Hébihens, just west of St. Malo, is one of Brittany's treasures. Yachting Monthly produced a short cruising guide to the island in October 2015 - go to http://www.yachtingmonthly.com/cruising-guides/ile-des-hebihens-brittany-32236


Yellow weather alert in East Coast from tomorrow
KUALA LUMPUR, Nov 24 — The Malaysian Meteorological Department has issued a yellow weather alert in almost all areas throughout Kelantan and Terengganu, as well as several districts in Pahang following the east wind surge expected in the region from Nov 25 (tomorrow) which can bring continuous heavy rainfall.
Its director-general Jailan Simon said the areas involved in Pahang were Jerantut, Maran, Kuantan, Pekan and Rompin.
“Strong winds with speeds of 40 to 50 km/h with waves as high as 3.5 metres are expected to occur in waters off the respective states, and the weather warning is effective from Nov 25 to 27 (Wed).
“In addition, the seawater level is also expected to rise due to the high tide during the period.
“The incident could pose a risk of seawater overflowing along the coast and into river mouths in these areas,” he said in a statement today.
Meanwhile, he said, as the weather on the east coast was expected to improve, the orange weather alert issued on 2 pm on Nov 22 for Terengganu (Kemaman district) and Pahang (Kuantan, Pekan and Rompin) had been downgraded to a yellow alert, while in Johor the warning had been lifted. — Bernama


Supply List
| Item | Quantity | Contributor | Cost | Remove |
|---|---|---|---|---|
| Pizza | 8 Slices |<EMAIL_ADDRESS>| $6 | |
| Soda | 12 Cans |<EMAIL_ADDRESS>| Not Yet Determined | |
| Beer | 12 Bottles | Not Yet Determined | ||
| Chips | 4 Bags | Not Yet Determined | ||
| Soda | 12 Cans | Not Yet Determined | ||
| Pizza | 8 Slices |<EMAIL_ADDRESS>| $6 | |
| Pizza | 24 Slices | Not Yet Determined |


My intention to become a Product Manager originally was a long term goal, but the opportunity came much sooner than I expected and I embraced the challenge. I prepared by taking an on-line course on SCRUM and later on I obtain my Agile Methodologies Certificate. I am currently in process of finishing a course to become a Certified Software Product Manager. All while being in charge of our Software platform & the development cycle, sprint planning and defining our product roadmap based on the company's strategy and vision.
Since November I've been working with a Hollywood start-up developing 3 applications for the luxury transport industry. The technologies and languages I am currently using for this work are: AngularJS, Ionic Framework for iOS & Android mobile development, PHP with Laravel framework, MYSQL database. CSS, HTML & JavaScript. My long term goal is to become a Full Stack JavaScript Developer.
Below are some early projects I was developing towards the end of General Assembly and within the first month I finished their web development bootcamp. The current apps I am working are on private repositories and there for can't be viewed however I can take screen shots of my code activity/contribution upon request.
Towards the end of 2008 I picked up a new hobbie, Digital Photography. As I was trying to find my way into Sound for Film at Warner Bros. I managed to buy a Canon DSLR and take photographes of artist in the studio or performing. Quickly my good eye and composition garner me opportunities to shoot for entertainment industry events and studios. Later on my curiosity for bigger challanges took my camera and I to France, Thailand, Indonesia, England, Estonia and Brazil to new a few places I've had the privildge to shoot their famoous landmarks and natural landscapes.
I am not afraid to admit that I didn't realized all of my music industry ambitions. From 2001 to 2011 I dedicated my professional life to developing my sound, mixing and production skills. I wanted to be a Music Producer and I am perfectly at peace with that goal not materialzing. I don't consider it a failure because I never game up. I discover a new vision and escape that's photography and now my new passion in Web Development. I learned a lot in the music industry and have some of the best stories that would have you laughing for days or make your jaw drop! I am still very well connected in this industry and could faciliate any music project. Here are some links to some music I either engineered, mixed, produce or help write. Cheers!


The floor
3
contains the room
5
Room description:
LxWxH:
54.0
x
5.0
x
5.0
Footage:
270.0
Type:
ENTRANCE
Contains
0
passages
Contains
0
windows
Contains
0
sensors
Contains
0
devices


--- layout: post title: |- Achievement unlocked - Xamarin Studio MVC4 Razor app with ServiceStack API and Ember.js date: '2013-08-20T09:41:00.001+01:00' author: solrevdev tags: modified_time: '2013-08-20T09:42:23.469+01:00' blogger_id: tag:blogger.com,1999:blog-31446756.post-931040059996064571 blogger_orig_url: http://www.solrevdev.com/2013/08/achievement-unlocked-xamarin-studio.html --- With more faff than I would like and the odd hour here and there spent over the past few months I now have a nice little starter template running on my Mac that uses Xamarin Studio, mono 3, asp.net mvc4 with razor syntax highlighting combined with the lovely ServiceStack api framework, bootstrap 3 and ember.js running!


---
layout: post
title: 'Darren on Ruby: JGem, JRake... For Your Convenience'
date: '2009-04-11T11:42:00.005+01:00'
author: Darren Bishop
tags:
modified_time: '2009-04-12T13:07:08.987+01:00'
blogger_id: tag:blogger.com,1999:blog-3826577489563855618.post-7719448289216532985
blogger_orig_url: http://blog.darrenbishop.com/2009/04/jgem-jrake-for-your-convenience.html
---
I have recently been investigating migrating RoR apps to JRoR, furthermore to Tomcat/JEE. This naturally means that I have both Ruby and JRuby installed at the same time, both on my PATH
variable, meaning one takes precedence over the other; in my case Ruby comes first.
Consequentially, I found myself typing in jruby -S gem ...
or jruby -S rake ...
a lot of the time and it started to annoy me. I took a look into the JRUBY_HOME\bin
folder and discovered there is the jirb.bat
script, obviously the JRuby equivalent to IRB. The inards are:
@ECHO OFF IF NOT "%~f0" == "~f0" GOTO :WinNT @"jruby.bat" -S "jirb" %1 %2 %3 %4 %5 %6 %7 %8 %9 GOTO :EOF :WinNT @"jruby.bat" "%~dpn0" %*Pretty simple, ay? So what happens when you change the
jirb
to gem
or rake
? Exactly what you expect, lol. Go ahead and do it, save the files as jgem.bat
and jrake.bat
, respectively.
You are now good to go. This should work for any executable-type script residing in your JRUBY_HOME\bin
e.g. jwarble.bat
.
I'm not sure why the JRuby team did/do not distribute these scripts as standard, especially for gem
and rake
, as they are as common as irb
.
Anyway, enjoy.


{% extends 'page.html' %} {% block content %} {% for quest in quests %}
Reward: {{ quest.template.reward }}
Date: {{ quest.date }}
Completed: {{ quest.completed }}
Mark Complete


Testing shows no 1080 in rats
by Department of Conservation20 November 2019
Results of toxicology testing of dead rats that washed up on North Beach near Westport recently show no presence of 1080.
Maanaki Whenua Landcare Research tested eight dead rats and one weka. None of these animals had any residue of 1080 toxin. Two other rats were too decomposed to test.
Massey University School of Veterinary Science undertook post-mortem examinations of five of the dead rats but could not determine their cause of death. The weka was also examined with cause of death unknown.
Department of Conservation (DOC) West Coast Operations Director Mark Davies says the test results confirm that the rats washed up on the beach are unlikely to have come from an area where 1080 had been used.
“We thought it was unlikely that rats had come from our aerial 1080 operation in Lewis Pass National Reserve near Maruia, 140 km upstream from Westport.
“We don’t know the source of the dead rats but it’s possible they came from beech forest areas closer to Westport in the Buller Gorge, affected by flood conditions.
“Rat numbers have exploded in beech forests due to heavy seeding and now seed is germinating, they are desperate for food, which can drive them into new areas and cause them to cross waterways,” says Mark Davies.
“Predator control is critical to protecting our most at-risk population of native wildlife as rats turn to eating native birds and bats and their young this spring and summer.”
DOC sent ten rats for testing. Five went to Massey University for post-mortem, and five to Maanaki Whenua Landcare Research for toxicology testing.
Following post-mortem, the five rats were also sent to test for 1080 although two were too decomposed to do this. The weka was also sent for post-mortem and 1080 testing.
It’s likely the marine animals which also washed up near Westport were victims of prolonged stormy weather at the time, which can have a negative impact on marine life.
About 680 dead rats were collected from North Beach over the weekend of 9-10 November. The rats were buried following advice from West Coast Regional Council.
–Ends–


General Election seats to watch: Wales
There are opportunities – and risks – for all parties on December 12.
Labour has dominated the political landscape of Wales for generations. The party has won the most votes and the most seats there in every one of the last 26 general elections.
In 2017 it took almost half of the share of the vote (49%), far ahead of the Conservatives (34%), Plaid Cymru (10%) and the Liberal Democrats (5%).
Might things prove different this time?
While Labour seems set to once again win the most votes and the most seats, polls suggest the party’s share of the vote on December 12 could fall below 40% – putting a number of Labour constituencies across Wales at risk.
Most vulnerable is Wrexham, where Labour is defending a majority of 1,832 and which would fall to the Conservatives on a swing of 2.7%.
A recent constituency poll of voters in Wrexham suggested the Tories are set for a comfortable win, and by a large enough margin to threaten a couple of other Labour-held seats in Wales.
Vale of Clwyd and Gower were both won by Labour from the Conservatives in 2017. Now the Conservatives might be about to win them back, though they would need swings of 3.1% and 3.6% respectively.
Further down the Tories’ target list are the likes of Cardiff North, Delyn, Bridgend and Ynys Mon.
Were these constituencies to turn blue on December 12, the Tories would be having a very good night indeed.
This election may prove to be an exercise in damage limitation for Labour – but if the party performs better than expected, not only could it hold all its seats but it might also make a few gains.
Preseli Pembrokeshire is one of them, needing a tiny swing of just 0.4% to go from blue to red. Former Cabinet minister Stephen Crabb is defending a majority in this seat of just 314.
Another target is Aberconwy, which Labour would win from the Conservatives on a swing of 1.0%. In 2017 Guto Bebb – who is not standing in this election – held the seat by a majority of 635.
An exceptional performance in Wales would see Labour also taking the Tory-held constituencies of Vale of Glamorgan and Carmarthen West & Pembrokeshire South.
Meanwhile, the Liberal Democrats will be hoping to hold on to Brecon & Radnorshire, which they won from the Tories in a by-election earlier this year.
Montgomeryshire might fall to the Lib Dems if the party manages to monopolise the Remain vote in the seat, though they would need a mighty 13.3% swing from the Tories.
And Plaid Cymru will be fighting to hold the four constituencies it won in 2017: Arfon, Ceredigion, Dwyfor Meirionnydd and Carmarthen East & Dinefwr.
Of the four, Ceredigion is perhaps most at risk of changing hands, though the fact it is a four-way marginal – with the Lib Dems, Labour and the Tors all fancying their chances – might help Plaid cling on.


It is a text format composed of a list of numerical and string terms separated by spaces. Instead of using names for making reference to variables, variable indexes are employed. The same for domain values. All indexes start at zero.
Cost functions can be defined in intention (see below) or in extension, by their list of tuples. A default cost value is defined per function in order to reduce the size of the list. Only tuples with a different cost value should be given (not mandatory). All the cost values must be positive. The arity of a cost function in extension may be equal to zero. In this case, there is no tuples and the default cost value is added to the cost of any solution. This can be used to represent a global lower bound constant of the problem.
The wcsp file format is composed of three parts: a problem header, the list of variable domain sizes, and the list of cost functions.
- Header definition for a given problem:
<Problem name>
<Number of variables (N)>
<Maximum domain size>
<Number of cost functions>
<Initial global upper bound of the problem (UB)>
The goal is to find an assignment of all the variables with minimum total cost, strictly lower than UB. Tuples with a cost greater than or equal to UB are forbidden (hard constraint).
- Definition of domain sizes
<Domain size of variable with index 0>
...
<Domain size of variable with index N - 1>
- Note
- domain values range from zero to size-1
-
a negative domain size is interpreted as a variable with an interval domain in
- Warning
- variables with interval domains are restricted to arithmetic and disjunctive cost functions in intention (see below)
- General definition of cost functions
- Definition of a cost function in extension
<Arity of the cost function>
<Index of the first variable in the scope of the cost function>
...
<Index of the last variable in the scope of the cost function>
<Default cost value>
<Number of tuples with a cost different than the default cost>
followed by for every tuple with a cost different than the default cost: <Index of the value assigned to the first variable in the scope>
...
<Index of the value assigned to the last variable in the scope>
<Cost of the tuple>
- Note
- Shared cost function: A cost function in extension can be shared by several cost functions with the same arity (and same domain sizes) but different scopes. In order to do that, the cost function to be shared must start by a negative scope size. Each shared cost function implicitly receives an occurrence number starting from 1 and incremented at each new shared definition. New cost functions in extension can reuse some previously defined shared cost functions in extension by using a negative number of tuples representing the occurrence number of the desired shared cost function. Note that default costs should be the same in the shared and new cost functions. Here is an example of 4 variables with domain size 4 and one AllDifferent hard constraint decomposed into 6 binary constraints.
- Shared CF used inside a small example in wcsp format:
AllDifferentDecomposedIntoBinaryConstraints 4 4 6 1
4 4 4 4
-2 0 1 0 4
0 0 1
1 1 1
2 2 1
3 3 1
2 0 2 0 -1
2 0 3 0 -1
2 1 2 0 -1
2 1 3 0 -1
2 2 3 0 -1
- Definition of a cost function in intension by replacing the default cost value by -1 and by giving its keyword name and its K parameters
<Arity of the cost function>
<Index of the first variable in the scope of the cost function>
...
<Index of the last variable in the scope of the cost function>
-1
<keyword>
<parameter1>
...
<parameterK>
Possible keywords followed by their specific parameters:
- >= cst delta to express soft binary constraint with associated cost function
- > cst delta to express soft binary constraint with associated cost function
- <= cst delta to express soft binary constraint with associated cost function
- < cst delta to express soft binary constraint with associated cost function
- = cst delta to express soft binary constraint with associated cost function
- disj cstx csty penalty to express soft binary disjunctive constraint with associated cost function
- sdisj cstx csty xinfty yinfty costx costy to express a special disjunctive constraint with three implicit hard constraints and and and an additional cost function
- salldiff var|dec cost to express a soft alldifferent constraint with either variable-based (var keyword) or decomposition-based (dec keyword) cost semantic with a given cost per violation
- sgcc var|dec cost nb_values (value lower_bound upper_bound)* to express a soft global cardinality constraint with either variable-based (var keyword) or decomposition-based (dec keyword) cost semantic with a given cost per violation and for each value its lower and upper bound
- ssame cost list_size1 list_size2 (variable_index)* (variable_index)* to express a permutation constraint on two lists of variables of equal size (implicit variable-based cost semantic)
- sregular var|edit cost nb_states nb_initial_states (state)* nb_final_states (state)* nb_transitions (start_state symbol_value end_state)* to express a soft regular constraint with either variable-based (var keyword) or edit distance-based (edit keyword) cost semantic with a given cost per violation followed by the definition of a deterministic finite automaton with number of states, list of initial and final states, and list of state transitions where symbols are domain values
- wamong global constraint restrains the number of variables of its scope to take a bounded number of times a value from a given set. The global cost function associated to Among is WeightedAmong. This global cost function can be decomposed into a set of ternary constraints with an additionnal set of variables. This decomposition uses the new variables as counters and does a cumulative sum all along the set of ternary cost functions.
- wvaramong hard global constraint restrains the number of variables of its scope, except the last variable, to take a value from a given set to be equal to the last variable.
- woverlap The Overlap global constraint limits the overlaps between two sequence of variables X, Y (i.e. set the fact that Xi and Yi take the same value (not equal to zero)). The global cost function associated to Overlap is WeightedOverlap. This global cost function can be decomposed into a set of ternary constraints with an additionnal set of variables. This decomposition uses two sets of new variables : the first as an overlap flag and a second one as a cumulative sum. Finally, an unary cost function ensures that the overlap respects a given value.
- wsum The Sum global constraint tests if the sum of a set of variables match with a comparator and a right-handside value (for example == 4). The global cost function associated to Sum is WeightedSum. This global cost function can be decomposed into a set of ternary constraints with an additionnal set of variables. This decomposition uses the new variables as counter and does a cumulative sum all along the set of ternary cost functions. Finally, an unary cost function ensures the comparator.
- wvarsum The Sum global constraint tests if the sum of a set of variables match with a comparator and a given variable. The global cost function associated to Sum is WeightedSum. This global cost function can be decomposed into a set of ternary constraints with an additionnal set of variables. This decomposition uses the new variables as counter and does a cumulative sum all along the set of ternary cost functions. Finally, a binary cost function compares the last counter variable with the last variable in the scope.
- Note
- This decomposition can use an exponential size (domains of counter variables). Let us note <> the comparator, K the value associated to the comparator, and Sum the result of the sum over the variables. For each comparator, the gap is defined according to the distance as follows:
- if <> is == : gap = abs(K - Sum); if <> is <= : gap = max(0,Sum - K); if <> is < : gap = max(0,Sum - K - 1);
- if <> is != : gap = 1 if Sum != K and gap = 0 otherwise; if <> is > : gap = max(0,K - Sum + 1);
- if <> is >= : gap = max(0,K - Sum);
- wregular nb_states nb_initial_states (state and cost enum)* nb_final_states (state and cost enum)* nb_transitions (start_state symbol_value end_state cost)* to express a wregular constraint with variable-based cost semantic with a given cost per violation followed by the definition of a deterministic finite automaton with number of states, list of initial and final states, and list of state transitions where symbols are domain values
- Warning
- list_size1 and list_size2 must be equal in ssame.
-
Cost functions defined in intention cannot be shared.
- Note
- More about decomposable global cost functions can be found here https://metivier.users.greyc.fr/decomposable/
Examples:
- quadratic cost function in extension with variable domains (equivalent to a soft clause ):
- simple arithmetic hard constraint :
- hard temporal disjunction :
- soft_alldifferent({x0,x1,x2,x3}):
4 0 1 2 3 -1 salldiff var 1
- soft_gcc({x1,x2,x3,x4}) with each value v from 1 to 4 only appearing at least v-1 and at most v+1 times:
4 1 2 3 4 -1 sgcc var 1 4 1 0 2 2 1 3 3 2 4 4 3 5
- soft_same({x0,x1,x2,x3},{x4,x5,x6,x7}):
8 0 1 2 3 4 5 6 7 -1 ssame 1 4 4 0 1 2 3 4 5 6 7
- soft_regular({x1,x2,x3,x4}) with DFA (3*)+(4*):
4 1 2 3 4 -1 sregular var 1 2 1 0 2 0 1 3 0 3 0 0 4 1 1 4 1
- wsum ({x1,x2,x3,x4}) with hard cost (1000) if :
4 0 1 2 3 -1 wsum hard 1000 == 4
- wvarsum ({x1,x2,x3,x4}) with hard cost (1000) if :
4 0 1 2 3 -1 wvarsum hard 1000 ==
- wamong ({x1,x2,x3,x4}) with hard cost (1000) if or :
4 0 1 2 3 -1 wamong hard 1000 2 1 2 1 3
- wvaramong ({x1,x2,x3,x4}) with hard cost (1000) if :
4 0 1 2 3 -1 wvaramong hard 1000 2 1 2
- wregular({x0,x1,x2,x3}) with DFA (a(ba)*c*):
4 0 1 2 3 -1 wregular 3 1 0 0 1 2 0 9 0 0 1 0 0 1 1 1 0 2 1 1 1 1 0 0 1 0 0 1 1 2 0 1 1 2 2 0 1 0 2 1 1 1 2 1
- woverlap({x1,x2,x3,x4}) with hard cost (1000) if :
4 0 1 2 3 -1 woverlap hard 1000 < 1
Latin Square 4 x 4 crisp CSP example in wcsp format:
latin4 16 4 8 1
4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
4 0 1 2 3 -1 salldiff var 1
4 4 5 6 7 -1 salldiff var 1
4 8 9 10 11 -1 salldiff var 1
4 12 13 14 15 -1 salldiff var 1
4 0 4 8 12 -1 salldiff var 1
4 1 5 9 13 -1 salldiff var 1
4 2 6 10 14 -1 salldiff var 1
4 3 7 11 15 -1 salldiff var 1
4-queens binary weighted CSP example with random unary costs in wcsp format:
4-WQUEENS 4 4 10 5
4 4 4 4
2 0 1 0 10
0 0 5
0 1 5
1 0 5
1 1 5
1 2 5
2 1 5
2 2 5
2 3 5
3 2 5
3 3 5
2 0 2 0 8
0 0 5
0 2 5
1 1 5
1 3 5
2 0 5
2 2 5
3 1 5
3 3 5
2 0 3 0 6
0 0 5
0 3 5
1 1 5
2 2 5
3 0 5
3 3 5
2 1 2 0 10
0 0 5
0 1 5
1 0 5
1 1 5
1 2 5
2 1 5
2 2 5
2 3 5
3 2 5
3 3 5
2 1 3 0 8
0 0 5
0 2 5
1 1 5
1 3 5
2 0 5
2 2 5
3 1 5
3 3 5
2 2 3 0 10
0 0 5
0 1 5
1 0 5
1 1 5
1 2 5
2 1 5
2 2 5
2 3 5
3 2 5
3 3 5
1 0 0 2
1 1
3 1
1 1 0 2
1 1
2 1
1 2 0 2
1 1
2 1
1 3 0 2
0 1
2 1


stagerunner_initialize(context, stages, remember = FALSE, mode = getOption("stagerunner.mode") %||% "head")
context
.FALSE
. When set to TRUE
, the return value
of the run
method will be a list of two environments: one of what
the context looked like before the run
call, and another
of the aftermath.run
method for this stageRunner. The two supported options are
"head" and "next". The former gives a stageRunner which always begins
from the first stage if the from
parameter to the run
method is blank. Otherwise, it will begin from the previous unexecuted
stage. The default is "head". This argument has no effect if
remember = FALSE
.stageRunner objects are used for executing a linear sequence of
actions on a context (an environment). For example, if we have an
environment e
containing x = 1, y = 2
, then using
stages = list(function(e) e$x <- e$x + 1, function(e) e$y <- e$y - e$x)
will cause x = 2, y = 0
after running the stages.


Microsoft is going to make it worth your while to switch from Samsung Cloud to OneDrive
by SururWe reported recently that Samsung was encouraging smartphone users in Korea to switch from Samsung Cloud to OneDrive by Microsoft in South Korea, and now SamMobile reports the feature is also becoming available worldwide as part of the Android 10 beta.
The feature will be available as an option in the Photos app and it seems to be one-way action, with no way to switch back.
Only photos and videos are switched, with backups remaining on the Samsung Cloud.
Microsoft is being particularly generous to Samsung switchers. Once you switch from Samsung Cloud to OneDrive you get free storage equivalent to what you paid for, for one year, and a refund for any future payments and Microsoft is also offering an additional 15 GB free storage for Samsung users.
Ultimately of course Microsoft hopes users will sign up for Office 365, which remains a great deal by offering access to Microsoft’s Office Suite and 1 TB of storage for only $9.99 per month.
Microsoft is partnering very closely with Samsung, with their flagship phones also shipping with Microsoft’s Office Mobile apps and Link to Windows also bringing Samsung phones closer to your desktop.
What do our readers think of this deepening relationship? Let us know below.


SystemD Units > Cron
Posted by Jonathan Gray in linux
Using a SystemD service with timers is a great alternative to Cron. I myself have used it on several occassions to run daily maintenance tasks on production servers. Why do I use it? Well, convenience. Allow me to demonstrate...
So, SystemD uses units. Whilst I think it's useful to know about all of the units, we will only focus on the ones we need: timers and services. I have included an article for further reading should you be interested in the others.
This command is useful to have visibility over all units :
systemctl list-units
Let's create a unit. First, we need a service
vim /etc/systemd/system/RunMyScript.service
You are saying create a unit, which is a service, the service runs a script and that you wish to run it after multi-user.target. Multi-user target is the equivalent to run level 3 which is a non-graphical multi user system. This is what your system will be (at least) in most cases.
[Unit]
Description= some Python script that does something
After=multi-user.target
[Service]
ExecStart= /usr/bin/python /usr/local/bin/somescript.py
[Install]
WantedBy=multi-user.target
Save then
chmod 664 /etc/systemd/system/RunMyScript.service
Reload SystemD:
systemctl daemon-reload
Then you can start the service with
systemctl start RunMyScript.service
Now create the timer
vi /etc/systemd/system/RunMyScript.timer
Then paste the following
[Unit]
Description=Run my script at midnight every day
[Timer]
OnCalendar=*-*-* 00:00:00
Unit=RunMyScript.timer
[Install]
WantedBy=multi-user.target
This time you need to enable it at boot, then start the timer.
systemctl enable RunMyScript.timer
Then start it
systemctl start backup.timer
If you make any changes to the timer you need to run
systemctl daemon-reload
But back to the original question: why use SystemD timers? Firstly, SystemD timers can be accurate to the unit of miliseconds or even further should you want such accuracy. Secondly, since its now a systemd service managed by a timer, you can very easily manage it with the normal systemctl commands.
This also means you have logging for free! Simply run journalctl command to check the unit. You can also see similar output (but less verbose) in systemctl status RunMyScript.
journalctl -xb -u RunMyScript
Conclusion:::
SystemD units are awesome, use them where applicable.


Live Malware & Internet Endangerment Assembled In Brooklyn. A collection of packaged pestilence that has caused nearly $100 billion in damage to the global economy.
Use at your own risk. Curated from Open Malware, hosted by the Georgia Tech Information Security Center.
A project by Yifan Hu and Song Hia. Initial run produced for sale and barter at the Internet Yami-Ichi in NY 2. Featured on Mashable's "Best Gifts For Internet Lovers" Snapchat Discovery Channel and in The New York Observer. A limited run was produced for sale online. High resolution photos.
Mydoom is primarily transmitted via e-mail, appearing as a transmission error, with subject lines including "Error", "Mail Delivery System", "Test" or "Mail Transaction Failed" in different languages, including English and French.
The mail contains an attachment that, if executed, resends the worm to e-mail addresses found in local files such as a user's address book. It also copies itself to the “shared folder” of peer-to-peer file-sharing application KaZaA in an attempt to spread that way.
Sobig was the first of the spam botnet worms and turned computers into spam relays. Before the advent of Broadband Internet, manually sending spam or making use of an open SMTP relay were the most common methods of sending spam emails, but these methods are time-consuming and/or can quickly lead to the spammer being caught and (at least) having an account revoked.
The botnet was a godsend to spammers, as it made easy the falsifying of email headers and many other ways to completely hide the spammer's identity, while sending millions of spam emails per day.
The name of the worm is a play on the word "Configuration" and "Ficker", a German obscenity akin to the English word "Fucker".
Because the worm avoids infecting computers with a Ukrainian keyboard, it is commonly thought that this worm may come from Ukraine. In late March of 2009, a Vietnamese firm, BKIS, claimed to have found evidence that it actually originated in China.
ILOVEYOU, sometimes referred to as Love Letter, was a computer worm that attacked tens of millions of Windows personal computers on and after 5 May 2000 local time in the Philippines when it started spreading as an email message with the subject line "ILOVEYOU" and the attachment "LOVE-LETTER-FOR-YOU.txt.vbs".
The latter file extension (in this case, 'VBS' - a type of interpreted file) was most often hidden by default on Windows computers of the time, leading unwitting users to think it was a normal text file.
CodeRed is a worm that caused possible billions of dollars of damage in the summer of 2001. It contains the text string "Hacked by Chinese!", which is displayed on web pages that the worm defaces.
It is also one of the few worms able to run entirely in memory, leaving no files on the hard drive or any other permanent storage.
Taking 15 minutes to spread worldwide, the SQL Slammer worm was one of the largest and fastest spreading worms ever. For this reason, some have described Slammer as the first "Warhol worm" (had its 15 minutes of fame), a fast-propagating Internet worm hypothesized in 2002 in a paper by Nicholas Weaver.
Continental Airlines resorted to pens and paper to record reservations and tickets. The airline had to delay and cancel some flights, though no delays lasted more than 30 minutes. Banks in the US and Canada were hard hit. A majority of Bank of America's ATMs were rendered useless and while most were running by the evening, some customers reported being unable to use them well into the next day. The U.S. departments of State, Agriculture, Commerce and Defense were infected with the worm. The Emergency 911 network was down for some time.


Module logsweet.watch
¶
Real-time text file watcher supporting log rotation.
Based on: Log Watcher Python Recipe
From: Giampaolo Rodolà
Licensed under: MIT
Source: ActiveState Code Recipe 577968
-
class
logsweet.watch.
LogWatcher
(file_glob: str, handler: Union[Callable[[str, Sequence[str]], None], Any], watch_cb: Optional[Callable[str, None]] = None, unwatch_cb: Optional[Callable[str, None]] = None, all_lines: bool = False, tail_lines: int = 0, chunk_size: int = 1048576, encoding: Optional[str] = None)[source]¶ Looks for changes in all files matching a glob pattern. This is useful for watching log file changes in real-time. It also supports files rotation.
Parameters: - file_glob (str) – A Unix shell style globbing pattern for the files to watch.
- handler (Union[Callable[[str, Sequence[str]], None], Any]) –
A function which is called every time one of the files being watched is updated; this is called with filename and lines arguments.
Alternatively an object with a method
notify_lines(filename, lines)
and optionally the methodsnotify_watch(filename)
andnotify_unwatch(filename)
. - watch_cb (Optional[Callable[[str], None]]) – A function which is called every time a file has joined the set of watched files; this is called with a filename argument.
- unwatch_cb (Optional[Callable[[str], None]]) – A function which is called every time a file has left the set of watched files; this is called with a filename argument.
- all_lines (bool) – Read all existing lines before starting to watch new lines. Ignores tail_lines.
- tail_lines (int) – Read last N lines from files being watched before starting.
- chunk_size (int) – An approximation of the maximum number of bytes to read from
a file on every ieration (as opposed to load the entire
file in memory until EOF is reached).
Is passed to
file.readlines()
. Defaults to 1MB. - encoding (Optional[str]) – The name of a character encoding to decode the text files.
If None defaults to
locale.getpreferredencoding()
.
Example:
def callback(filename, lines): for line in lines: print(filename, line) lw = LogWatcher("/var/log/*.log", callback) lw.watch()
-
watch
(interval: float = 0.1, blocking: bool = True)[source]¶ Starts watching for new lines in matching files and for new or removed matching files.
Blocks until Ctrl + C is pressed, or
SIGINT
orSIGTERM
is received by the process.Parameters: - interval (float) – The polling interval in seconds.
- blocking (bool) – If True is given, performs only one loop and then returns.


Our design practice offers a full range of services including brand strategy, interaction and vertual design and user experience testing.
Through out your project, our designers create and implement visual design and workflows, solicit user feedback and work with you to make sure what gets built is what is needed.
All engineers are fluent in the latest enterprice, mobile and web development technologies.
They colaborate with your team to write and improve code on a daily basis, using proven practices such as test-driven development and pair programing.
Planning and development is relative. Because we are constantly coding and testing. The products we build are always ready to go live.
This relative process allows for changes as business requirements evolve.
Project Management
Development
Design
Development
Project Management
Project Management
Design
Design


Open-source at
https://github.com/KirillOsenkov/RoslynQuoter
Parse as:
Regular-File
Script-File
Member
Statement
Expression
Open parenthesis on a new line
Closing parenthesis on a new line
Preserve original whitespace
Keep redundant API calls
Do not require 'using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;'
Ready-To-Run (with compilation and diagnostics)
Get Roslyn API calls to generate this code!
Working...
Get Roslyn API calls to generate this code as LINQPad file!
CompilationUnit() .WithMembers( SingletonList<MemberDeclarationSyntax>( ClassDeclaration("C"))) .NormalizeWhitespace()


{% extends "base.html" %} {% block title %}{{ block.super }}Server error{% endblock title %} {% block content %}
Something is broken in or on the server.
{% if message %}The following error message was retrieved from the wreckage:
{{ message }}
{% endif %} {% endblock content %}


App logo
Sign in
Sign up
Get more done with
your Research Projects
Now more efficient, smarter and easier way—helping you
save time and do more with your Research Projects .
Create an account
Keep your team organized and connected.
RPMS’s boards, lists, and cards enable you to organize and prioritize your projects in a fun, flexible, and rewarding way.
Sign Up - It's Free!
Save time with in-app messaging
RPMS’s online project management tools include a built-in chat — a fun way to seamlessly reduce your team’s email use!
See how it works
Go from idea to action in seconds with RPMS’s intuitively
simple boards, lists, and cards.