--- layout: project title: He Who Shall Not Be Named (FRC 2017) order: 10 about: For the 2017 FRC challenge, I mentored the SWAT Bots as they built He Who Shall Not Be Named. photo: /images/FRC-2017/title.jpg ---
For the 2017 FRC competition, FIRST Steamworks, I began mentoring the SWAT Bots. Our initial goal was to produce a robot capable of shooting wiffle balls, called "fuel", into a goal. However, launching the balls quickly and accurately turned out to be extremely challenging, so the team decided that the time required to get ball shooting to work well could be better spent on other components of the robot. This led to the decision to focus on the other two objectives in the game, delivering gears and climbing a rope. As a result of this choice, we were able to produce a simple and reliable robot.
In competition, He Who Shall Not Be Named performed extremely consistently in both autonomous and drive controlled modes. This consistent performance propelled the SWAT Bots to the position of tournament finalists at the Western Canada FRC regional and qualified them for the FRC world championship.


Projects
This section contains projects created and contbriuted to by Akansha. Everything listed is an open source effort, the distinction is only my role as owner or contributor.
Some of projects worked on by Akansha.
Azure Integration Services to provide EAI and B2B transaction capabilities
A transaction processing infrastructure on Azure for Microsoft's financial transactions processing system. This system was built with the eventual goal of moving away from existing transaction processing infrastructure running on bare metal servers.
- Provided support for Business2Business transactions of Microsoft and Enterprise Application Integration (EAI).
- A UI powered by Restful API was provided to stake holders to provide them the capability to query, monitor, download, resume or resubmit (in case of failure) transactions.
- In case of network failure messages were stored (encrypted according to the HBI policy) and retried several times later before calling the transaction as a failure.
Read more..
Final year thesis: Solving Target Coverage Problem in Wireess Sensor Networks Using Iterative Heuristic Algorithms
An efficient algorithm to extend the sensor network lifetime, which works on the principle of organizing the sensors nodes into maximum number of set covers that are activated one by one, is proposed.
- The goal of the research is to propose an improved greedy heuristic and a new metaheuristic Particle Swarm Optimization (PSO) algorithm to increase the lifetime the sensor network by organizing the sensors into a maximal number of set covers that are activated successively.
- Two heuristics that efficiently compute the sets, using exact approximation algorithm greedy heuristic and meta-heuristic algorithms such as genetic algorithm and Particle Swarm Optimization have been designed.
Read more..
Distributed tracing of transactions for an existing financial transaction processing pipeline
This is a distributed transaction tracing mechanism for tracing Microsoft's financial transaction pipeline flowing through multiple subsystems and making them available to the stakeholders through a UI powered by REST API. The end to end transaction tracing system served many Line of Business(LOB) to help them trace their transactions. The UI provided a number of features to the stakeholders -
- View the status and details of a transaction at various stages
- Get details of individual transaction of a batched transaction which which can further split into multiple discrete transactions and multiple batched transactions and so on such that each final discrete transaction can be traced individually.
Read more..
Some personal projects on which I worked. Learning new technologies is a passion of mine which is spilled on to my personal projects
Web Diary
A personalized content management system to maintain an offline diary of a user’s online web activities. Currently it is supporting only videos.A browser extension powered by a RESTFUL API provides the feature of associating custom tags and notes with the videos. The contents can be organised into playlist to help user search and filter out watched contents.
- A centralized place to view all the web contents and informations associated with it stored by the user
- The information is stored offline and can be browsed anytime.
- These contents can be organized by placing them into different playlists.
- User can search videos with tags.
The github link of the project s - https://github.com/akansharmn/personal-media-manager-api
Read more..


{% if current_user %}
{{ current_user.email }}
|
Sign out
{% else %}
Sign in
{% endif %}
Which game do you want to play:
Please enter your mobile phone number, the number will subscribe for geolocation and SMS services,then you can realtime sync your current location and get SMS from other players.


Sydney man charged for punching, kicking pregnant qoman, CCTV captures incident
After several frenzied punches, the woman fell to the ground and was stamped on, before bystanders wrestled the assailant away.
by AFPSydney: A Sydney man has been charged for punching and stomping on a heavily pregnant woman unprovoked, in what was described as an "Islamophobic" attack by a leading Australian Islamic association.
Shocking security camera footage showed a man approaching a table of three women wearing headscarves as they chatted at a cafe in the city's west on Wednesday.
Seemingly without provocation, the 43-year-old suspect was seen lunging over the table to attack a 31-year-old woman, who police said is 38 weeks pregnant.
After several frenzied punches, the woman fell to the ground and was stamped on, before bystanders wrestled the assailant away.
Police said a suspect has been charged with "assault occasioning actual bodily harm and affray" and denied bail.
Here is the link of the CCTV footage
They declined to comment on the attacker's motives, but left open the possibility of additional charges being laid against him.
The Australian Federation of Islamic Councils (AFIC) said on Thursday the man was heard "yelling anti-Islamic hate speech at the victim and her friends."
"This was clearly a racist and Islamophobic attack and we expect it to be treated as such," said AFIC president Rateb Jneid.
"If it were not for the brave actions of these members of the community in stopping the assault the victim may very well have sustained much more serious injuries," said police inspector Luke Sywenkyj.
The woman was taken to hospital following the attack and discharged, the police said on Friday.
A recent report by researchers at Charles Sturt University found Islamophobia in Australia was "a continuous phenomenon" and women wearing a headscarf are especially at risk.
Of 113 female victims who reported being physically intimidated or harassed, researchers found 96 percent were wearing a headscarf.
Catch the latest news, live coverage and in-depth analyses from India and World. Follow us on Facebook and Twitter.


Just do the following after daemon start:
.\komodo-cli -ac_name=ROGUE getaccountaddress ""
.\komodo-cli -ac_name=ROGUE validateaddress put_address_from_call_above_here
You'll get `pubkey:`
Stop daemon by .\komodo-cli -ac_name=ROGUE stop
and for next start change -pubkey=03c0dff4c4ec057f256251c4a6c5dae92696ff956c214253d052af9287e6e21cb1 to -pubkey=pubkey_which_you_get_from_validateaddress


com.cloudera.sqoop.lib
Class RecordParser
java.lang.Object
org.apache.sqoop.lib.RecordParser
com.cloudera.sqoop.lib.RecordParser
Deprecated. use org.apache.sqoop.lib.RecordParser instead.
public final class RecordParser
- extends RecordParser
Parses a record containing one or more fields. Fields are separated
by some FIELD_DELIMITER character, e.g. a comma or a ^A character.
Records are terminated by a RECORD_DELIMITER character, e.g., a newline.
Fields may be (optionally or mandatorily) enclosed by a quoting char
e.g., '\"'
Fields may contain escaped characters. An escape character may be, e.g.,
the '\\' character. Any character following an escape character
is treated literally. e.g., '\n' is recorded as an 'n' character, not a
newline.
Unexpected results may occur if the enclosing character escapes itself.
e.g., this cannot parse SQL SELECT statements where the single character
['] escapes to [''].
This class is not synchronized. Multiple threads must use separate
instances of RecordParser.
The fields parsed by RecordParser are backed by an internal buffer
which is cleared when the next call to parseRecord() is made. If
the buffer is required to be preserved, you must copy it yourself.
- See Also:
RecordParser
|
Nested Class Summary |
static class |
RecordParser.ParseError
Deprecated. use org.apache.sqoop.lib.RecordParser.ParseError instead. |
|
Field Summary |
static org.apache.commons.logging.Log |
LOG
Deprecated. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
LOG
public static final org.apache.commons.logging.Log LOG
- Deprecated.
RecordParser
public RecordParser(DelimiterSet delimitersIn)
- Deprecated.
Copyright © 2013 The Apache Software Foundation


Chirper is a Twitter-clone built app with Ember.js that I created in order to practice and improve my knowledge about the framework. I used S3 service from AWS to upload the application on the internet and learn about the process of deploying to Amazon S3 Bucket.
Check it outApp built using Vue.js framework. The API always returns the same movies. It provides the option to filter by genre, time and select even for other date than today.
Check it out


Our service goes through the fulfillment of our customers' needs, using the most appropriate technologies for their business or modernizing the existing systems.
 We can help and see what fits your business and your budget.
we offer two service fronts: the development and maintenance of systems.
Cyber security system has become a fundamental business strategy.
INFORMATION TECNOLOGY
©2021 by CIRGROUP. All rights reserved


ROAD TO VICTORY
US Open Men - Game Predictor
SELECT A PLAYER
First Serve %
ACE
DOUBLE
First Point Won %
Second Point Won %
Average First Serve (KPH)
Average Second Serve (KPH)
NET %
BREAK %
Return %
Winner
Error


Orders
Menu
Orders
Add new order
Search by date from
to
Search
№
Name
Price
Date
1
1
1
1
Edit
Delete
Delete order
×
Please confirm delete


TABLEDASH
menu
Home
Sign In
Register
Home
Sign In
Register
Create your Account Today
Email
First name
Last name
Password
Confirm Password
Phone Number
Register
send


-->
AMMAR KOORA LIVE aims to provide a professional player-focused approach. First-class player development is combined with the Dutch “total football” approach where each player is trained to move freely around the field, while still maintaining team structure. With European teaching methods we are creating total football players who have the opportunity to excel individually and yet be part of a high-performing team.
We believe that good nutrition and proper fitness are very important for the development of our players in order for them to reach the next level. Nutritional advice and help will be given to ensure that our players stay in top shape, physically and mentally. Cutting-edge fitness programs will be part of the weekly routine for strengthening and agility—all with the mindset of creating a total footballer. Besides focusing on technical skills for the field, we also strive to help our players learn the tactical side of football through field classes and seminars; both are necessary to become a total football player and to better understand the game. At BCFC we are committed to helping our players reach their top potential. With our approach to the beautiful game of football—and with connections inside India and around the globe—we are positioned well to have our players take the next step and to assist them along their journey.
Read More..Respect for others is one of the basic requirements of democratic life and the capacity to live in society. It affects the individual and has both a social and a collective dimension.
There are many social models that avoid effort and advocate instead luck, opportunism and immediate triumph. However, effort is a value that can take us to unthinkable heights and lead us to achieve targets and objectives that may at other times appear distant or inaccessible.
Ambition is the desire to achieve the maximum performance and do things not only well but also as well as is feasibly possible and to improve every day. This value is applicable both to individuals and to groups.
Teamwork implies that the subject forms part of a group and that, as a member of the same, becomes an active element that acts on behalf of the whole (sometimes even to the determine of their own individuality).
It was first performed on 27 November 1974, before the game that marked the end of the 75th anniversary celebrations. A choir of 3,600, conducted by Oriol Martorell, gathered on the pitch for the very first public performance of the new anthem. The words were written by Josep Maria Espinàs and Jaume Picas, and the music was composed by Manuel Valls. The song quickly grew in popularity. The fans loved the fact that they could clap their hands in time to its catchy rhythm, and the words perfectly depicted the values of supporting Barça, especially the spirit of welcoming outsiders into Catalan society, a spirit that is reflected all the way through the Club membership.
"Now it's more important to the fans than to the players as it is a chance to show our appreciation for what a player has done for us and the club.
JOHN FRANKLIN"The relationship between fans and players has changed, they are no longer the working class heroes who you would see in the pub after a game, now they are multi-millionaires and disconnected from the fans' lives so this is a chance for us to be bit more personal with them."
TOM MENDERW"He was their star player, and a former City hero, and was awarded the entire profit from the game. Unfortunately, the player and club were in dispute for years to come as Meredith felt he was never paid the full amount and cited this as one of the reasons why he later returned to Manchester City."
ALIN SMITH


You spot the tracks easily and are soon neck deep in the vegetation as you follow them.
You believe you should reach the creature making these tracks by nightfall and are so fixated by this goal
that you almost don't hear the sound of something following you.
Should you stop, look around, and find the source of noise.
Or is this the sound of something horrible and therefore you should run for it.
. . .
You should decide soon because it sounds like the footsteps are getting closer


Log Out
ERS
Reimbursement Form
Reimbursement Type:
Food
Travel
Lodging
Other
Reimbursement Cost
Description
submit


Test your eduroam configuration.
You can use our tool to test your RADIUS configuration. Provide here your TEST account and we will test the whole authentication process. Complete debug output will be shown.


Choose some plugins to get you started (optional).
There are no plugins included.
These plugins are included with the project {{ projectName }}.


Upside Down
Application Automation
Ian J Henry | Habitat Community Lead
@eeyun___ | eeyun on GitHub
How many of you have heard of Habitat before today?
Text "yes" or "no" to
1.646.490.0192
habitat.ngrok.io/cmcamp17/vote/hab
Habitat is an open-source project that enables you to ship your application, to any platform, along with all the automation you'll need to manage it in production.
Great!
Except... well that's sort of vague, wouldn't you say?
Kinda, yeah. So, how about we start our journey with a story?
Text "yarp" or "narp" to
1.646.490.0192
habitat.ngrok.io/cmcamp17/vote/story
Just Kidding
Democracy is a myth
We really do need to start with a story
Modern Apps
Operable (Humane) Software
Isolated
Immutable
Atomic
Configurable
Common Interface for Health Checks
Rebuilt from source
Common Packaging
Runtime Independence
Say hello
to my little Microservice
The Production Cliff
Starts easy, gets a little harder
Dip of False Mastery, non-linear
Non-Linear
More to deploy, more to configure
Application Automation keeps the curve flat
Lets show you how
Ok, so how does habitat solve that pain?
Great Question. Since I took entirely too long walking you through that story with so many damn slides and didn't give you a chance to skip past it we won't have enough time in our session to address ALL of the ways that habitat helps. So instead let's look at a few ways and we'll decide democratically.
Build
Deploy
Manage
Free to take in both perspectives
Fast, efficient, software driven
Could would we Build, Deploy, Manage
All the software, enterprise and cloud
The same way?
Text "build" or "manage" to
1.646.490.0192
habitat.ngrok.io/cmcamp17/vote/build_manage
Simple
Native
declarative
Low Abstraction
Complete Dependencies
Simple Functions
Studio
Clean room Environment
Safe and minimal by default
Installs dependencies
Only has what you need.
Safe, completely auditable
multiple types, customizable, flexible abstraction
Continue exploring the build time or take a look at something else?
Text "stay" or "leave" to
1.646.490.0192
habitat.ngrok.io/cmcamp17/vote/bored
Depot
Central Location
Publicly Hosted
Lightweight Views
Public Build Service (soon)
Post
Processors
Docker
Aci
Mesosphere
Tarball!
Manage
The `/results` of our efforts are a habitat artifact
<origin>-<package>-<version>-<build>-<arch>-<distro>.hart
results/core-cyoa-0.0.1-20170203094443-x86_64-linux.hart
Install with `hab`
Easy Pattern
CLI Shortcuts
Increasing Specificity
Packages on Disk
Binaries and Config
Metadata
Side-by-side
Supervisor runs services
Installs Automatically
Keeps things running
Manages Configuration
Installs packages
Starts the service we've defined
Manages the lifecycle
Supervisors
Self- Organize
Peers
Service Groups
Gossip
Availability increases with scale
Supervisors provide REST API
External Actors
Health and Status
Supervisor Debugging
Supervisors Understand Topologies
Dynamic Configuration
Service group level
uses the ring
Supervisors provide update strategies
Topology Aware
Tracks Channels in Depot
Ideal for Continuous Delivery
Application
Automation
Automation travels with the application
Existing AND Cloud Native Software
App automation come from the perspective of the application
We don't rewrite the world to fix our management struggles
Hands-On
wednesday
10:00 - 16:30
Room B3.019


class ActiveRecord::Associations::CollectionProxy
Association proxies in Active Record are
middlemen between the object that holds the association, known as the
@owner
, and the actual associated object, known as the
@target
. The kind of association any proxy is about is
available in @reflection
. That's an instance of the class
ActiveRecord::Reflection::AssociationReflection.
For example, given
class Blog < ActiveRecord::Base has_many :posts end blog = Blog.first
the association proxy in blog.posts
has the object in
blog
as @owner
, the collection of its posts as
@target
, and the @reflection
object represents a
:has_many
macro.
This class delegates unknown methods to @target
via
method_missing
.
The @target
object is not loaded until needed. For example,
blog.posts.count
is computed directly through SQL and does not trigger by itself the instantiation of the actual post records.
Public Instance Methods
Adds one or more records
to the collection by setting their
foreign keys to the association's primary key. Returns
self
, so several appends may be chained together.
class Person < ActiveRecord::Base has_many :pets end person.pets.size # => 0 person.pets << Pet.new(name: 'Fancy-Fancy') person.pets << [Pet.new(name: 'Spook'), Pet.new(name: 'Choo-Choo')] person.pets.size # => 3 person.id # => 1 person.pets # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ]
# File lib/active_record/associations/collection_proxy.rb, line 969 def <<(*records) proxy_association.concat(records) && self end
Equivalent to Array#==
. Returns true
if the two
arrays contain the same number of elements and if each element is equal to
the corresponding element in the other
array, otherwise
returns false
.
class Person < ActiveRecord::Base has_many :pets end person.pets # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1> # ] other = person.pets.to_ary person.pets == other # => true other = [Pet.new(id: 1), Pet.new(id: 2)] person.pets == other # => false
# File lib/active_record/associations/collection_proxy.rb, line 907 def ==(other) load_target == other end
Returns true
if the collection is not empty.
class Person < ActiveRecord::Base has_many :pets end person.pets.count # => 0 person.pets.any? # => false person.pets << Pet.new(name: 'Snoop') person.pets.count # => 0 person.pets.any? # => true
You can also pass a block
to define criteria. The behavior is
the same, it returns true if the collection based on the criteria is not
empty.
person.pets # => [#<Pet name: "Snoop", group: "dogs">] person.pets.any? do |pet| pet.group == 'cats' end # => false person.pets.any? do |pet| pet.group == 'dogs' end # => true
# File lib/active_record/associations/collection_proxy.rb, line 805 def any?(&block) @association.any?(&block) end
# File lib/active_record/associations/collection_proxy.rb, line 861 def arel scope.arel end
Returns a new object of the collection type that has been instantiated with
attributes
and linked to this object, but have not yet been
saved. You can pass an array of attributes hashes, this will return an
array with the new objects.
class Person has_many :pets end person.pets.build # => #<Pet id: nil, name: nil, person_id: 1> person.pets.build(name: 'Fancy-Fancy') # => #<Pet id: nil, name: "Fancy-Fancy", person_id: 1> person.pets.build([{name: 'Spook'}, {name: 'Choo-Choo'}, {name: 'Brain'}]) # => [ # #<Pet id: nil, name: "Spook", person_id: 1>, # #<Pet id: nil, name: "Choo-Choo", person_id: 1>, # #<Pet id: nil, name: "Brain", person_id: 1> # ] person.pets.size # => 5 # size of the collection person.pets.count # => 0 # count from database
# File lib/active_record/associations/collection_proxy.rb, line 258 def build(attributes = {}, &block) @association.build(attributes, &block) end
Equivalent to delete_all
. The difference is that returns
self
, instead of an array with the deleted objects, so methods
can be chained. See delete_all
for more information.
# File lib/active_record/associations/collection_proxy.rb, line 982 def clear delete_all self end
Add one or more records to the collection by setting their foreign keys to
the association's primary key. Since << flattens its argument
list and inserts each record, push
and concat
behave identically. Returns self
so method calls may be
chained.
class Person < ActiveRecord::Base has_many :pets end person.pets.size # => 0 person.pets.concat(Pet.new(name: 'Fancy-Fancy')) person.pets.concat(Pet.new(name: 'Spook'), Pet.new(name: 'Choo-Choo')) person.pets.size # => 3 person.id # => 1 person.pets # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] person.pets.concat([Pet.new(name: 'Brain'), Pet.new(name: 'Benny')]) person.pets.size # => 5
# File lib/active_record/associations/collection_proxy.rb, line 333 def concat(*records) @association.concat(*records) end
Count all records using SQL.
class Person < ActiveRecord::Base has_many :pets end person.pets.count # => 3 person.pets # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ]
# File lib/active_record/associations/collection_proxy.rb, line 696 def count(column_name = nil, options = {}) # TODO: Remove options argument as soon we remove support to # activerecord-deprecated_finders. @association.count(column_name, options) end
Returns a new object of the collection type that has been instantiated with attributes, linked to this object and that has already been saved (if it passes the validations).
class Person has_many :pets end person.pets.create(name: 'Fancy-Fancy') # => #<Pet id: 1, name: "Fancy-Fancy", person_id: 1> person.pets.create([{name: 'Spook'}, {name: 'Choo-Choo'}]) # => [ # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] person.pets.size # => 3 person.pets.count # => 3 person.pets.find(1, 2, 3) # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ]
# File lib/active_record/associations/collection_proxy.rb, line 289 def create(attributes = {}, &block) @association.create(attributes, &block) end
Like create
, except that if the record is invalid, raises an
exception.
class Person has_many :pets end class Pet validates :name, presence: true end person.pets.create!(name: nil) # => ActiveRecord::RecordInvalid: Validation failed: Name can't be blank
# File lib/active_record/associations/collection_proxy.rb, line 305 def create!(attributes = {}, &block) @association.create!(attributes, &block) end
Deletes the records
supplied from the collection according to
the strategy specified by the :dependent
option. If no
:dependent
option is given, then it will follow the default
strategy. Returns an array with the deleted records.
For +has_many :through+ associations, the default deletion strategy is
:delete_all
.
For has_many
associations, the default deletion strategy is
:nullify
. This sets the foreign keys to NULL
.
class Person < ActiveRecord::Base has_many :pets # dependent: :nullify option by default end person.pets.size # => 3 person.pets # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] person.pets.delete(Pet.find(1)) # => [#<Pet id: 1, name: "Fancy-Fancy", person_id: 1>] person.pets.size # => 2 person.pets # => [ # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] Pet.find(1) # => #<Pet id: 1, name: "Fancy-Fancy", person_id: nil>
If it is set to :destroy
all the records
are
removed by calling their destroy
method. See
destroy
for more information.
class Person < ActiveRecord::Base has_many :pets, dependent: :destroy end person.pets.size # => 3 person.pets # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] person.pets.delete(Pet.find(1), Pet.find(3)) # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] person.pets.size # => 1 person.pets # => [#<Pet id: 2, name: "Spook", person_id: 1>] Pet.find(1, 3) # => ActiveRecord::RecordNotFound: Couldn't find all Pets with IDs (1, 3)
If it is set to :delete_all
, all the records
are
deleted without calling their destroy
method.
class Person < ActiveRecord::Base has_many :pets, dependent: :delete_all end person.pets.size # => 3 person.pets # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] person.pets.delete(Pet.find(1)) # => [#<Pet id: 1, name: "Fancy-Fancy", person_id: 1>] person.pets.size # => 2 person.pets # => [ # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] Pet.find(1) # => ActiveRecord::RecordNotFound: Couldn't find Pet with id=1
You can pass Fixnum
or String
values, it finds
the records responding to the id
and executes delete on them.
class Person < ActiveRecord::Base has_many :pets end person.pets.size # => 3 person.pets # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] person.pets.delete("1") # => [#<Pet id: 1, name: "Fancy-Fancy", person_id: 1>] person.pets.delete(2, 3) # => [ # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ]
# File lib/active_record/associations/collection_proxy.rb, line 588 def delete(*records) @association.delete(*records) end
Deletes all the records from the collection according to the strategy
specified by the :dependent
option. If no
:dependent
option is given, then it will follow the default
strategy.
For +has_many :through+ associations, the default deletion strategy is
:delete_all
.
For has_many
associations, the default deletion strategy is
:nullify
. This sets the foreign keys to NULL
.
class Person < ActiveRecord::Base has_many :pets # dependent: :nullify option by default end person.pets.size # => 3 person.pets # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] person.pets.delete_all # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] person.pets.size # => 0 person.pets # => [] Pet.find(1, 2, 3) # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: nil>, # #<Pet id: 2, name: "Spook", person_id: nil>, # #<Pet id: 3, name: "Choo-Choo", person_id: nil> # ]
Both has_many
and +has_many :through+ dependencies default to
the :delete_all
strategy if the :dependent
option
is set to :destroy
. Records are not instantiated and callbacks
will not be fired.
class Person < ActiveRecord::Base has_many :pets, dependent: :destroy end person.pets.size # => 3 person.pets # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] person.pets.delete_all Pet.find(1, 2, 3) # => ActiveRecord::RecordNotFound
If it is set to :delete_all
, all the objects are deleted
without calling their destroy
method.
class Person < ActiveRecord::Base has_many :pets, dependent: :delete_all end person.pets.size # => 3 person.pets # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] person.pets.delete_all Pet.find(1, 2, 3) # => ActiveRecord::RecordNotFound
# File lib/active_record/associations/collection_proxy.rb, line 442 def delete_all(dependent = nil) @association.delete_all(dependent) end
Destroys the records
supplied and removes them from the
collection. This method will always remove record from the
database ignoring the :dependent
option. Returns an array with
the removed records.
class Person < ActiveRecord::Base has_many :pets end person.pets.size # => 3 person.pets # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] person.pets.destroy(Pet.find(1)) # => [#<Pet id: 1, name: "Fancy-Fancy", person_id: 1>] person.pets.size # => 2 person.pets # => [ # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] person.pets.destroy(Pet.find(2), Pet.find(3)) # => [ # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] person.pets.size # => 0 person.pets # => [] Pet.find(1, 2, 3) # => ActiveRecord::RecordNotFound: Couldn't find all Pets with IDs (1, 2, 3)
You can pass Fixnum
or String
values, it finds
the records responding to the id
and then deletes them from
the database.
person.pets.size # => 3 person.pets # => [ # #<Pet id: 4, name: "Benny", person_id: 1>, # #<Pet id: 5, name: "Brain", person_id: 1>, # #<Pet id: 6, name: "Boss", person_id: 1> # ] person.pets.destroy("4") # => #<Pet id: 4, name: "Benny", person_id: 1> person.pets.size # => 2 person.pets # => [ # #<Pet id: 5, name: "Brain", person_id: 1>, # #<Pet id: 6, name: "Boss", person_id: 1> # ] person.pets.destroy(5, 6) # => [ # #<Pet id: 5, name: "Brain", person_id: 1>, # #<Pet id: 6, name: "Boss", person_id: 1> # ] person.pets.size # => 0 person.pets # => [] Pet.find(4, 5, 6) # => ActiveRecord::RecordNotFound: Couldn't find all Pets with IDs (4, 5, 6)
# File lib/active_record/associations/collection_proxy.rb, line 660 def destroy(*records) @association.destroy(*records) end
Deletes the records of the collection directly from the database ignoring
the :dependent
option. Records are instantiated and it invokes
before_remove
, after_remove
,
before_destroy
and after_destroy
callbacks.
class Person < ActiveRecord::Base has_many :pets end person.pets.size # => 3 person.pets # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] person.pets.destroy_all person.pets.size # => 0 person.pets # => [] Pet.find(1) # => Couldn't find Pet with id=1
# File lib/active_record/associations/collection_proxy.rb, line 469 def destroy_all @association.destroy_all end
Specifies whether the records should be unique or not.
class Person < ActiveRecord::Base has_many :pets end person.pets.select(:name) # => [ # #<Pet name: "Fancy-Fancy">, # #<Pet name: "Fancy-Fancy"> # ] person.pets.select(:name).distinct # => [#<Pet name: "Fancy-Fancy">]
# File lib/active_record/associations/collection_proxy.rb, line 678 def distinct @association.distinct end
Returns true
if the collection is empty. If the collection has
been loaded it is equivalent to collection.size.zero?
. If the
collection has not been loaded, it is equivalent to
collection.exists?
. If the collection has not already been
loaded and you are going to fetch the records anyway it is better to check
collection.length.zero?
.
class Person < ActiveRecord::Base has_many :pets end person.pets.count # => 1 person.pets.empty? # => false person.pets.delete_all person.pets.count # => 0 person.pets.empty? # => true
# File lib/active_record/associations/collection_proxy.rb, line 772 def empty? @association.empty? end
Same as first
except returns only the fifth record.
# File lib/active_record/associations/collection_proxy.rb, line 190 def fifth(*args) @association.fifth(*args) end
Finds an object in the collection responding to the id
. Uses
the same rules as ActiveRecord::Base.find
. Returns
ActiveRecord::RecordNotFound
error if the object cannot be
found.
class Person < ActiveRecord::Base has_many :pets end person.pets # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] person.pets.find(1) # => #<Pet id: 1, name: "Fancy-Fancy", person_id: 1> person.pets.find(4) # => ActiveRecord::RecordNotFound: Couldn't find Pet with id=4 person.pets.find(2) { |pet| pet.name.downcase! } # => #<Pet id: 2, name: "fancy-fancy", person_id: 1> person.pets.find(2, 3) # => [ # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ]
# File lib/active_record/associations/collection_proxy.rb, line 140 def find(*args, &block) @association.find(*args, &block) end
Returns the first record, or the first n
records, from the
collection. If the collection is empty, the first form returns
nil
, and the second form returns an empty array.
class Person < ActiveRecord::Base has_many :pets end person.pets # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] person.pets.first # => #<Pet id: 1, name: "Fancy-Fancy", person_id: 1> person.pets.first(2) # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1> # ] another_person_without.pets # => [] another_person_without.pets.first # => nil another_person_without.pets.first(3) # => []
# File lib/active_record/associations/collection_proxy.rb, line 170 def first(*args) @association.first(*args) end
Same as first
except returns only the forty second record.
Also known as accessing “the reddit”.
# File lib/active_record/associations/collection_proxy.rb, line 196 def forty_two(*args) @association.forty_two(*args) end
Same as first
except returns only the fourth record.
# File lib/active_record/associations/collection_proxy.rb, line 185 def fourth(*args) @association.fourth(*args) end
Returns true
if the given record
is present in
the collection.
class Person < ActiveRecord::Base has_many :pets end person.pets # => [#<Pet id: 20, name: "Snoop">] person.pets.include?(Pet.find(20)) # => true person.pets.include?(Pet.find(21)) # => false
# File lib/active_record/associations/collection_proxy.rb, line 857 def include?(record) !!@association.include?(record) end
Returns the last record, or the last n
records, from the
collection. If the collection is empty, the first form returns
nil
, and the second form returns an empty array.
class Person < ActiveRecord::Base has_many :pets end person.pets # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] person.pets.last # => #<Pet id: 3, name: "Choo-Choo", person_id: 1> person.pets.last(2) # => [ # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] another_person_without.pets # => [] another_person_without.pets.last # => nil another_person_without.pets.last(3) # => []
# File lib/active_record/associations/collection_proxy.rb, line 226 def last(*args) @association.last(*args) end
Returns the size of the collection calling size
on the target.
If the collection has been already loaded, length
and
size
are equivalent. If not and you are going to need the
records anyway this method will take one less query. Otherwise
size
is more efficient.
class Person < ActiveRecord::Base has_many :pets end person.pets.length # => 3 # executes something like SELECT "pets".* FROM "pets" WHERE "pets"."person_id" = 1 # Because the collection is loaded, you can # call the collection with no additional queries: person.pets # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ]
# File lib/active_record/associations/collection_proxy.rb, line 750 def length @association.length end
# File lib/active_record/associations/collection_proxy.rb, line 44 def load_target @association.load_target end
Returns true
if the association has been loaded, otherwise
false
.
person.pets.loaded? # => false person.pets person.pets.loaded? # => true
# File lib/active_record/associations/collection_proxy.rb, line 53 def loaded? @association.loaded? end
Returns true if the collection has more than one record. Equivalent to
collection.size > 1
.
class Person < ActiveRecord::Base has_many :pets end person.pets.count # => 1 person.pets.many? # => false person.pets << Pet.new(name: 'Snoopy') person.pets.count # => 2 person.pets.many? # => true
You can also pass a block
to define criteria. The behavior is
the same, it returns true if the collection based on the criteria has more
than one record.
person.pets # => [ # #<Pet name: "Gorby", group: "cats">, # #<Pet name: "Puff", group: "cats">, # #<Pet name: "Snoop", group: "dogs"> # ] person.pets.many? do |pet| pet.group == 'dogs' end # => false person.pets.many? do |pet| pet.group == 'cats' end # => true
# File lib/active_record/associations/collection_proxy.rb, line 843 def many?(&block) @association.many?(&block) end
# File lib/active_record/associations/collection_proxy.rb, line 975 def prepend(*args) raise NoMethodError, "prepend on association is not defined. Please use << or append" end
# File lib/active_record/associations/collection_proxy.rb, line 865 def proxy_association @association end
Reloads the collection from the database. Returns self
.
Equivalent to collection(true)
.
class Person < ActiveRecord::Base has_many :pets end person.pets # fetches pets from the database # => [#<Pet id: 1, name: "Snoop", group: "dogs", person_id: 1>] person.pets # uses the pets cache # => [#<Pet id: 1, name: "Snoop", group: "dogs", person_id: 1>] person.pets.reload # fetches pets from the database # => [#<Pet id: 1, name: "Snoop", group: "dogs", person_id: 1>] person.pets(true) # fetches pets from the database # => [#<Pet id: 1, name: "Snoop", group: "dogs", person_id: 1>]
# File lib/active_record/associations/collection_proxy.rb, line 1005 def reload proxy_association.reload self end
Replaces this collection with other_array
. This will perform a
diff and delete/add only records that have changed.
class Person < ActiveRecord::Base has_many :pets end person.pets # => [#<Pet id: 1, name: "Gorby", group: "cats", person_id: 1>] other_pets = [Pet.new(name: 'Puff', group: 'celebrities'] person.pets.replace(other_pets) person.pets # => [#<Pet id: 2, name: "Puff", group: "celebrities", person_id: 1>]
If the supplied array has an incorrect association type, it raises an
ActiveRecord::AssociationTypeMismatch
error:
person.pets.replace(["doo", "ggie", "gaga"]) # => ActiveRecord::AssociationTypeMismatch: Pet expected, got String
# File lib/active_record/associations/collection_proxy.rb, line 359 def replace(other_array) @association.replace(other_array) end
Unloads the association. Returns self
.
class Person < ActiveRecord::Base has_many :pets end person.pets # fetches pets from the database # => [#<Pet id: 1, name: "Snoop", group: "dogs", person_id: 1>] person.pets # uses the pets cache # => [#<Pet id: 1, name: "Snoop", group: "dogs", person_id: 1>] person.pets.reset # clears the pets cache person.pets # fetches pets from the database # => [#<Pet id: 1, name: "Snoop", group: "dogs", person_id: 1>]
# File lib/active_record/associations/collection_proxy.rb, line 1026 def reset proxy_association.reset proxy_association.reset_scope self end
Returns a Relation
object for the records in this association
# File lib/active_record/associations/collection_proxy.rb, line 878 def scope @association.scope end
We don't want this object to be put on the scoping stack, because that could create an infinite loop where we call an @association method, which gets the current scope, which is this object, which delegates to @association, and so on.
# File lib/active_record/associations/collection_proxy.rb, line 873 def scoping @association.scope.scoping { yield } end
Same as first
except returns only the second record.
# File lib/active_record/associations/collection_proxy.rb, line 175 def second(*args) @association.second(*args) end
Works in two ways.
First: Specify a subset of fields to be selected from the result set.
class Person < ActiveRecord::Base has_many :pets end person.pets # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] person.pets.select(:name) # => [ # #<Pet id: nil, name: "Fancy-Fancy">, # #<Pet id: nil, name: "Spook">, # #<Pet id: nil, name: "Choo-Choo"> # ] person.pets.select(:id, :name ) # => [ # #<Pet id: 1, name: "Fancy-Fancy">, # #<Pet id: 2, name: "Spook">, # #<Pet id: 3, name: "Choo-Choo"> # ]
Be careful because this also means you're initializing a model object
with only the fields that you've selected. If you attempt to access a
field except id
that is not in the initialized record
you'll receive:
person.pets.select(:name).first.person_id # => ActiveModel::MissingAttributeError: missing attribute: person_id
Second: You can pass a block so it can be used just like Array#select. This builds an array of objects from the database for the scope, converting them into an array and iterating through them using Array#select.
person.pets.select { |pet| pet.name =~ /oo/ } # => [ # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] person.pets.select(:name) { |pet| pet.name =~ /oo/ } # => [ # #<Pet id: 2, name: "Spook">, # #<Pet id: 3, name: "Choo-Choo"> # ]
# File lib/active_record/associations/collection_proxy.rb, line 110 def select(*fields, &block) @association.select(*fields, &block) end
Returns the size of the collection. If the collection hasn't been
loaded, it executes a SELECT COUNT(*)
query. Else it calls
collection.size
.
If the collection has been already loaded size
and
length
are equivalent. If not and you are going to need the
records anyway length
will take one less query. Otherwise
size
is more efficient.
class Person < ActiveRecord::Base has_many :pets end person.pets.size # => 3 # executes something like SELECT COUNT(*) FROM "pets" WHERE "pets"."person_id" = 1 person.pets # This will execute a SELECT * FROM query # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1> # ] person.pets.size # => 3 # Because the collection is already loaded, this will behave like # collection.size and no SQL count query is executed.
# File lib/active_record/associations/collection_proxy.rb, line 726 def size @association.size end
# File lib/active_record/associations/collection_proxy.rb, line 230 def take(n = nil) @association.take(n) end
# File lib/active_record/associations/collection_proxy.rb, line 40 def target @association.target end
Same as first
except returns only the third record.
# File lib/active_record/associations/collection_proxy.rb, line 180 def third(*args) @association.third(*args) end
Returns a new array of objects from the collection. If the collection hasn't been loaded, it fetches the records from the database.
class Person < ActiveRecord::Base has_many :pets end person.pets # => [ # #<Pet id: 4, name: "Benny", person_id: 1>, # #<Pet id: 5, name: "Brain", person_id: 1>, # #<Pet id: 6, name: "Boss", person_id: 1> # ] other_pets = person.pets.to_ary # => [ # #<Pet id: 4, name: "Benny", person_id: 1>, # #<Pet id: 5, name: "Brain", person_id: 1>, # #<Pet id: 6, name: "Boss", person_id: 1> # ] other_pets.replace([Pet.new(name: 'BooGoo')]) other_pets # => [#<Pet id: nil, name: "BooGoo", person_id: 1>] person.pets # This is not affected by replace # => [ # #<Pet id: 4, name: "Benny", person_id: 1>, # #<Pet id: 5, name: "Brain", person_id: 1>, # #<Pet id: 6, name: "Boss", person_id: 1> # ]
# File lib/active_record/associations/collection_proxy.rb, line 944 def to_ary load_target.dup end


XRWY Hotel
Home
Rooms
Reservation
Food Rezervasyon
Spa Rezervasyon
Pool Rezervasyon
Sport Rezervasyon
Promotions
Services
Contact & Location
☰
Click For Reservation
Wifi
Parking
Breakfast
SEND


To maintain manageable-length identifiers, developers often abbreviate words when constructing identifiers. If these abbreviations are not carefully chosen, they can create confusion.
Following is a list of acceptable abbreviations (in alphabetical order of abbreviated word).
Original Word abbreviation
Other C language standards' pages:
Naming Standards
Variables & Function Parameters
C Language Standards
Copyright (C) Sierra Wireless Inc. Use of this work is subject to license.


Smoking causes cancer, heart disease, stroke, lung diseases, diabetes, and chronic obstructive pulmonary disease (COPD), which includes emphysema and chronic bronchitis. Smoking also increases risk for tuberculosis, certain eye diseases, and problems of the immune system, including rheumatoid arthritis.
With supporting text below as a natural lead-in to additional content.
Click hereWith supporting text below as a natural lead-in to additional content.
Consult a doctor


.qrcode
and .qrcode.clickable
.
'wpk.qrcode'
to your app's dependencies.
<qrcode data="text"
ecclevel="ecc"></qrcode>
The scope variables text
and ecc
are now bound
and watched and the QR code automatically updates whenever either of them
changes.
Copyright 2015 Paul Koppen, released under MIT licence.


Two discretization-based Monte Carlo algorithms, namely the Fu-Wang algorithm and the Wang-Lee algorithm, are provided for random sample generation from a high dimensional distribution of complex structure. The normalizing constant of the target distribution needs not to be known.
| Version: | <IP_ADDRESS> |
| Depends: | R (≥ 2.7.0) |
| Imports: | stats, graphics, MASS |
| Published: | 2015-11-30 |
| Author: | Chel Hee Lee [aut, cre], Liqun Wang [aut] |
| Maintainer: | Chel Hee Lee <gnustats at gmail.com> |
| Contact: | Chel Hee Lee<EMAIL_ADDRESS>|
| BugReports: |<EMAIL_ADDRESS>|
| License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
| URL: | https://r-forge.r-project.org/projects/wanglee/ |
| NeedsCompilation: | no |
| Materials: | ChangeLog |
| CRAN checks: | dsample results |
| Reference manual: | dsample.pdf |
| Package source: | dsample_<IP_ADDRESS>.tar.gz |
| Windows binaries: | r-devel: dsample_<IP_ADDRESS>.zip, r-release: dsample_<IP_ADDRESS>.zip, r-oldrel: dsample_<IP_ADDRESS>.zip |
| OS X binaries: | r-release: dsample_<IP_ADDRESS>.tgz, r-oldrel: dsample_<IP_ADDRESS>.tgz |
| Old sources: | dsample archive |
Please use the canonical form https://CRAN.R-project.org/package=dsample to link to this page.


class EventProbeLog
Event to update notify user about a log event.
msg
- the human readable message
<init> |
Event to update notify user about a log event. EventProbeLog(msg: String?) |
mEventName |
var mEventName: String |
mMessage |
var mMessage: String? |
getMessage |
fun getMessage(): String? |


A convenience component is a composition of several bits components into a larger component that's pre-configured/pre-implemented to accommodate the majority of use cases within its problem set. In addition to reusability, a convenience component is optimized for ease-of-use, meaning its internal workings are hidden away and you shouldn't have to fuss too much to get it working. The public interface is ideally as small as possible and relatively straight-forward.
Well, there are a couple of things that could be considered drawbacks, but hopefully the benefits, more often than not, outweigh any downsides.
An easy-to-use, small interface comes at the cost of flexibility which means, if you want a convenience component to do something out of the ordinary, you may need to instead use the requisite bits components to create your own custom version of the larger component.
This relative lack of flexibility may be an insurmountable inconvenience in some cases, but to mitigate at least some of the reduction in flexibility, wherever it's practical, a convenience component will provide projection slots to:


Prompt:
We are presented with a static page with a ‘Demo’ button
Clicking on the Demo button sends us to this page:
Not much going on. There no cookies set, url parameters, user input, or anything else that we can explore in the web app.
We are luckily provided with some source code, so let’s take a look there.
The source code is structured:
public/
└── app
├── Dockerfile
├── index.js
├── package.json
├── package-lock.json
├── redis.js
├── serverless
│ ├── billing.js
│ ├── functions
│ │ ├── app.js
│ │ └── waf.js
│ └── index.js
└── static
├── index.html
└── tailwind.min.css
4 directories, 11 files
Looking at app/serverless/functions/app.js
I was immediately drawn to the flag endpoint:
/*
* A demo application.
*/
const express = require(‘express’);
const morgan = require(‘morgan’);
const FLAG = process.env.FLAG || ‘fakeflag{}’;
const router = express.Router();
router.use(morgan(‘dev’));
router.get(‘/’, (req, res) => {
res.send(‘
Hello World!
Your FluxCloud Serverless deployment works!And it is unhackable™ :)’).end();
});
router.get(‘/flag’, (req, res) => {
res.send(FLAG).end();
});
router.get(‘/blocked’, (req, res) => {
res.send(‘’).end();
});
// wrap in named function for better logging
module.exports = function app(…args) {
return router(…args);
};
However, navigating to demo/:id/flag
gave me this:
As hinted by the existence of waf.js, there is a web app firewall that is acting as gatekeeper.
We can also see in the response that we get a X-WAF-Blocked
header that complains about a WAF violation found in the requested URL:
HTTP/1.1 403 Forbidden
Server: nginx
Date: Sat, 24 Oct 2020 13:59:18 GMT
Content-Type: text/html; charset=utf-8
Connection: close
X-Powered-By: Express
X-WAF-Blocked: url
ETag: W/“c6-n0KR/wCN9SFgXKAZficOHY67Sqc”
Vary: Accept-Encoding
Content-Length: 198

Let’s look at waf.js
and figure out how to bypass any restrictions:
/*
* A demo Web Application Firewall (WAF).
*/
const badStrings = [
‘X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*’,
‘woyouyizhixiaomaol’,
‘conglaiyebuqi’,
‘UNION’,
‘SELECT’,
‘SLEEP’,
‘BENCHMARK’,
‘alert(1)’,
‘


| In Authorization Header: token | ||||
|---|---|---|---|---|
| URL | Method | Parameter | Description | Return |
| /user | post | email, name, plus_id, gcm_regid | user registration | - HttpStatusCode: 201 - HttpStatusCode: 400 fehlerhafte Anfrage + JSON { "error": { "message": "Required field(s) name, .... is missing or empty"" } } - HttpStatusCode: 409 User exitiert bereits |
| /user/:emailhash/delete | delete | delete user | ||
| /user/:emailhash/friends | get | get friends | ||
| /user/:emailhash/newfriends | get | get unconfirmed friends | ||
| /user/:emailhash/process | get | ??? | get process info | |
| /user/:emailhash/pokefriends | get | poke all | ||
| /user/:emailhash/pokefriend | get | friendmail | poke one friend | |
| /user/:emailhash/addfriend | post | friendmail | add one friend | |
| /user/:emailhash/confirmfriends | post | friendsarray | confirm 1..* friends | |
| /user/:emailhash/deletefriends | delete | friendsarray | deletes 1..* friends | |
| /user/:emailhash/insertlocation | post | latitude, longitude, acc, address, updated_on | insert a location | |
| /user/:emailhash/renovateGCMRegID | post | gcm_reg_id | add a gcm id |


Bootswatch
Blog
GitHub
Ragu Ramaswamy
Look, I'm in a well!
List groups
new
Blog title
Cras justo odio
Dapibus ac facilisis in
Morbi leo risus
Look, I'm in a well!


Netizens call for 'Produce' groups to disband + react to the revelation that the top 20 trainees for 'Produce 48' and 'Produce X 101' were picked before public voting
by sl278Netizens have been continuously abuzz after the truth about the 'Produce' series was revealed.
The main PD has now admitted that the top 20 trainees for both 'Produce 48' and 'Produce X 101' were determined before public voting even started, leading to major buzz regarding this issue. The entire premise of the show is now revealed to be completely fabricated, leading to an unfortunate number of victims in the aftermath.
Netizens have been commenting:
"The labels who made the deals... *shivers*"
"Shaking my head. All the groups need to disband."
"I wonder if the labels of the trainees who didn't place couldn't afford the deal?"
"People paid money to vote. Refund everyone."
"Fromis9, X1, IZ*ONE all need to disband."
"We should have all known when Song Dong Pyo made it to X1. He lacks charm and skill yet he made it into the top..."
"The most important thing is if the chosen trainees knew this was going on."
What do you think of this ongoing situation?


Only uses a minimal number of plugins targeting consistency with the upcoming CSS4 specification.
Limits the amount of bloat, create SASS-like color maps for your web app(s), and assists you in writing clean, future-proof syntax.
CSS & Image optimization/minification with cssnano and image-min.
Timber includes many other features for easy, fast local development including:
Easily generate accessible color maps for any color, instantly. By using the primary color swatches from Open Color and 3 color-adjuster's from the postcss-color-function plugin.
/* Violet */
--violet: #7048E8;
--violet-lighter: color(var(--violet) lightness(+20%) tint(15%));
--violet-light: color(var(--violet) lightness(+10%) tint(15%));
--violet-medium: color(var(--violet) lightness(-10%) shade(15%));
--violet-dark: color(var(--violet) lightness(-20%) shade(15%));
git clone https://github.com/wad3g/Timber.git
cd Timber
yarn
or npm
yarn install
npm i
yarn start


ThreeJS monolithic example (without AngularJS)
ThreeJS with AngularJS model and view
ThreeJS with Angular controller and bindings
ThreeJS monolithic example (without AngularJS)
ThreeJS with AngularJS model and view
ThreeJS with Angular controller and bindings


General class for the training environment for a neural net graph.
More...
|
| def | __init__ (self, classifier, input_dim, max_input_length, max_target_length, init_learning_rate, learning_rate_decay, num_steps, numutterances_per_minibatch) |
| | NnetTrainer constructor, creates the training graph. More...
|
| |
| def | compute_loss (self, targets, logits, logit_seq_length, target_seq_length) |
| | Compute the loss. More...
|
| |
|
def | initialize (self) |
| | Initialize all the variables in the graph.
|
| |
| def | start_visualization (self, logdir) |
| | open a summarywriter for visualisation and add the graph More...
|
| |
| def | update (self, inputs, targets) |
| | update the neural model with a batch or training data More...
|
| |
| def | evaluate (self, inputs, targets) |
| | Evaluate the performance of the neural net. More...
|
| |
|
def | halve_learning_rate (self) |
| | halve the learning rate
|
| |
| def | save_model (self, filename) |
| | Save the model. More...
|
| |
| def | restore_model (self, filename) |
| | Load the model.
- Parameters
-
| classifier | the neural net classifier that will be trained |
| input_dim | the input dimension to the nnnetgraph |
| max_input_length | the maximal length of the input sequences |
| max_target_length | the maximal length of the target sequences |
| init_learning_rate | the initial learning rate |
| learning_rate_decay | the parameter for exponential learning rate |
| decay | |
| num_steps | the total number of steps that will be taken |
| numutterances_per_minibatch | determines how many utterances are processed at a time to limit memory usage |
§ compute_loss()
| def neuralNetworks.trainer.Trainer.compute_loss |
( |
|
self, |
|
|
|
targets, |
|
|
|
logits, |
|
|
|
logit_seq_length, |
|
|
|
target_seq_length |
|
) |
| |
Compute the loss.
Creates the operation to compute the loss, this is specific to each trainer
- Parameters
-
| targets | a list that contains a Bx1 tensor containing the targets for eacht time step where B is the batch size |
| logits | a list that contains a BxO tensor containing the output logits for eacht time step where O is the output dimension |
| logit_seq_length | the length of all the input sequences as a vector |
| target_seq_length | the length of all the output sequences as a |
| vector | |
- Returns
- a scalar value containing the total loss
§ evaluate()
| def neuralNetworks.trainer.Trainer.evaluate |
( |
|
self, |
|
|
|
inputs, |
|
|
|
targets |
|
) |
| |
Evaluate the performance of the neural net.
- Parameters
-
| inputs | the inputs to the neural net, this should be a list containing an NxF matrix for each utterance in the batch where N is the number of frames in the utterance |
| targets | the one-hot encoded targets for neural nnet, this should be a list containing an NxO matrix for each utterance where O is the output dimension of the neural net |
- Returns
- the loss of the batch
§ restore_model()
| def neuralNetworks.trainer.Trainer.restore_model |
( |
|
self, |
|
|
|
filename |
|
) |
| |
Load the model.
- Parameters
-
| filename | path where the model will be saved |
§ restore_trainer()
| def neuralNetworks.trainer.Trainer.restore_trainer |
( |
|
self, |
|
|
|
filename |
|
) |
| |
Load the training progress (including the model)
- Parameters
-
| filename | path where the model will be saved |
§ save_model()
| def neuralNetworks.trainer.Trainer.save_model |
( |
|
self, |
|
|
|
filename |
|
) |
| |
Save the model.
- Parameters
-
| filename | path to the model file |
§ save_trainer()
| def neuralNetworks.trainer.Trainer.save_trainer |
( |
|
self, |
|
|
|
filename |
|
) |
| |
Save the training progress (including the model)
- Parameters
-
| filename | path where the model will be saved |
§ start_visualization()
| def neuralNetworks.trainer.Trainer.start_visualization |
( |
|
self, |
|
|
|
logdir |
|
) |
| |
open a summarywriter for visualisation and add the graph
- Parameters
-
| logdir | directory where the summaries will be written |
§ update()
| def neuralNetworks.trainer.Trainer.update |
( |
|
self, |
|
|
|
inputs, |
|
|
|
targets |
|
) |
| |
update the neural model with a batch or training data
- Parameters
-
| inputs | the inputs to the neural net, this should be a list containing an NxF matrix for each utterance in the batch where N is the number of frames in the utterance |
| targets | the targets for neural nnet, this should be a list containing an N-dimensional vector for each utterance |
- Returns
- the loss at this step
The documentation for this class was generated from the following file:


Echo
You've been invited to use Batmobile for load tracking and invoicing!
Please Create A Password
Password
Confirm Password
Set
Password should contain:
At least 1 uppercase letter
At least 1 lowercase letter
At least 1 number
At least 8 characters


| Home | Trees | Indices | Help |
|
|---|
|
|
object --+ | S3Method
REST Method Handler Base Class
Method handler classes should inherit from this class and implement the apply_method() method.
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|
|||
|
|||
|
|||
|
|
|||
|
Inherited from |
|
Entry point for the REST interface
|
Stub for apply_method, to be implemented in subclass
|
Get the ID of the target record of a S3Request
|
Get a configuration setting of the current table
|
Get the path to the view stylesheet file
|
Add additional view variables (invokes all callables)
Note: overload this method in subclasses if you don't want additional view variables to be added automatically |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Mar 29 14:25:41 2011 | http://epydoc.sourceforge.net |


This package provides classes with methods for doing AI related maths. At present it has an information theory class that
computes some of Shanons information theory results from the occurence counts of symbols in a stream or probabilities of
occurence.


***********************************************************
Free Shipping & Returns On All Bras
http://e.ae.com/a/tBRXDX0B7u3j4B8xvAqNuZn6SBC/link12b?AAP_FLAG=N&CUSTOMER_NBR=1235023277209
***********************************************************
Even more reasons to love our #1 bra!
New Maddie Multi-Way
The Same Custom Designed Lift & Push, Now With 5 Ways To Wear It.
http://e.ae.com/a/tBRXDX0B7u3j4B8xvAqNuZn6SBC/link13a?AAP_FLAG=N&CUSTOMER_NBR=1235023277209
Shop Maddie Multi-Way
http://e.ae.com/a/tBRXDX0B7u3j4B8xvAqNuZn6SBC/link13c?AAP_FLAG=N&CUSTOMER_NBR=1235023277209
***********************************************************
Aerie Bras 40% Off
http://e.ae.com/a/tBRXDX0B7u3j4B8xvAqNuZn6SBC/link11b?AAP_FLAG=N&CUSTOMER_NBR=1235023277209
Shop All Bras
http://e.ae.com/a/tBRXDX0B7u3j4B8xvAqNuZn6SBC/link11c?AAP_FLAG=N&CUSTOMER_NBR=1235023277209
Select Styles
http://e.ae.com/a/tBRXDX0B7u3j4B8xvAqNuZn6SBC/link11d?AAP_FLAG=N&CUSTOMER_NBR=1235023277209
***********************************************************
Show us your straps…
Strap Happy Instagram Giveaway
Get For Your Chance To Win An Aerie Gift Card!
Now Thru 4.15
http://e.ae.com/a/tBRXDX0B7u3j4B8xvAqNuZn6SBC/link6b?AAP_FLAG=N&CUSTOMER_NBR=1235023277209
Enter Now
http://e.ae.com/a/tBRXDX0B7u3j4B8xvAqNuZn6SBC/link6d?AAP_FLAG=N&CUSTOMER_NBR=1235023277209
***********************************************************
Find Sizes 30A - 40DD At Aerie.com
http://e.ae.com/a/tBRXDX0B7u3j4B8xvAqNuZn6SBC/link16c?AAP_FLAG=N&CUSTOMER_NBR=1235023277209
***********************************************************
Forward
http://e.ae.com/a/tBRXDX0B7u3j4B8xvAqNuZn6SBC/link7?RAF_TRACK=&AAP_FLAG=N&CUSTOMER_NBR=1235023277209
Become A Fan On Facebook
http://e.ae.com/a/tBRXDX0B7u3j4B8xvAqNuZn6SBC/link23?AAP_FLAG=N&CUSTOMER_NBR=1235023277209
Follow Us On Twitter
http://e.ae.com/a/tBRXDX0B7u3j4B8xvAqNuZn6SBC/link8?AAP_FLAG=N&CUSTOMER_NBR=1235023277209
Pinterest
http://e.ae.com/a/tBRXDX0B7u3j4B8xvAqNuZn6SBC/link25?AAP_FLAG=N&CUSTOMER_NBR=1235023277209
shopkick
http://e.ae.com/a/tBRXDX0B7u3j4B8xvAqNuZn6SBC/link1?AAP_FLAG=N&CUSTOMER_NBR=1235023277209
Instagram
http://e.ae.com/a/tBRXDX0B7u3j4B8xvAqNuZn6SBC/link5?AAP_FLAG=N&CUSTOMER_NBR=1235023277209
***********************************************************
Come Hang Out…Find A Store
http://e.ae.com/a/tBRXDX0B7u3j4B8xvAqNuZn6SBC/link20?AAP_FLAG=N&CUSTOMER_NBR=1235023277209
Mobile Alerts
http://e.ae.com/a/tBRXDX0B7u3j4B8xvAqNuZn6SBC/link24?AAP_FLAG=N&CUSTOMER_NBR=1235023277209
Download The Aerie App
http://e.ae.com/a/tBRXDX0B7u3j4B8xvAqNuZn6SBC/link18?AAP_FLAG=N&CUSTOMER_NBR=1235023277209
Earn Up To 40% Off
Sign Up For AEREWARDS
http://e.ae.com/a/tBRXDX0B7u3j4B8xvAqNuZn6SBC/link19?AAP_FLAG=N&CUSTOMER_NBR=1235023277209
***********************************************************
Beginning January 14, 2013 at 6:00 am EST through
April 30, 2013 at 11:59 pm PDT receive automatic free shipping on all
orders with the purchase of one (1) or more Aerie bras. Offer is valid
on orders shipping to U.S. & Canadian addresses only. Offer not valid on
international orders. This offer is good for U.S. standard shipping
within 3 to 7 business days pending credit approval and authorization.
Orders to Canadian addresses will be shipped via Canada post within 6 to
10 business days to urban areas and 15 to 22 business days to rural
areas. Shopping bag must contain at least one (1) Aerie bra to qualify
for free shipping. This free shipping offer can be combined with other
discount offers. No discount code is required at the aerie.com shopping
bag. Not applicable toward previously purchased merchandise. All
deliveries are pending credit approval, merchandise availability,
delivery and weather conditions. Free shipping promotion and associated
terms & conditions subject to change at Aerie’s sole discretion.
Beginning January 14, 2013 at 6:00 am EST through April 30, 2013 at
11:59 pm PDT, and shipping to U.S. & Canadian addresses, receive free
returns on all Aerie bras. If you need to return an Aerie bra(s), simply
attach the free return label included with your order. It’s that easy.
Offer excludes other Aerie merchandise, AE and AEO Factory. Free return
promotion and associated terms & conditions subject to change at AE’s
sole discretion.
Beginning April 3, 2013 through April 9, 2013 at 11:59 pm PDT take 40%
off select Aerie bras. 40% off discount is indicated in listed prices
for Aerie bras. This 40% off offer cannot be combined with other
discount offers. No discount code is required at the aerie.com shopping
bag. Discount applies to Aerie merchandise costs only, not tax and
shipping & handling costs. Not applicable toward previously purchased
merchandise. Excludes Clearance, AE and AEO Factory. Valid on select
styles only in Aerie stores and at aerie.com. Discount promotion and
associated terms and conditions subject to change at Aerie’s sole
discretion.
For more information on the “Strap Happy Instagram Giveaway” click
http://e.ae.com/a/tBRXDX0B7u3j4B8xvAqNuZn6SBC/link26?AAP_FLAG=N&CUSTOMER_NBR=1235023277209.
© 2013 AEO MANAGEMENT CO. ALL RIGHTS RESERVED.
***********************************************************
Update Your Email Address:
<EMAIL_ADDRESS>Sign Up For Email:
http://e.ae.com/a/tBRXDX0B7u3j4B8xvAqNuZn6SBC/link17?AAP_FLAG=N&CUSTOMER_NBR=1235023277209
Privacy Policy:
http://e.ae.com/a/tBRXDX0B7u3j4B8xvAqNuZn6SBC/link15?AAP_FLAG=N&CUSTOMER_NBR=1235023277209
Add<EMAIL_ADDRESS>to your address book.
Our mailing address: 77 Hot Metal Street, Pittsburgh, PA 15203


{% extends "registration/registration_base.html" %} {% block title %}Forgotten password{% endblock %} {% block content %}
Forgot your password? Enter your email in the form below and we'll send you instructions for creating a new one.


Alian room1 day ago
Alian room1 day ago
Alian room1 day ago
Alian room1 day ago
Alian room1 day ago
Alian room1 day ago
Alian room1 day ago
Alian room1 day ago
Alian room1 day ago
Alian room1 day ago
Alian room1 day ago
Alian room1 day ago
Alian room1 day ago
Alian room1 day ago
Alian room1 day ago
Alian room1 day ago
Samasource
SERIES A
Samasource raises $14.8M for global AI data biz driven from Africa on TechCrunch
Decibel Insight
SERIES B
Samasource raises $14.8M for global AI data biz driven from Africa on TechCrunch
BigPanda
SERIES C
Samasource raises $14.8M for global AI data biz driven from Africa on TechCrunch
Alian room1 day ago
Alian room1 day ago
Alian room1 day ago
Alian room1 day ago
Alian room1 day ago
Alian room1 day ago
Alian room1 day ago
Alian room1 day ago


Generating Search URLsExamplesSearch Fields and OperatorsResults are in Size-Limited Batches: Get the RestData Parameters and Batch SizesSortingServer-Side PagingBuilding Resource (Locator) URLsFetch Incremental Changes using the Last Modified fieldUse our Source CodeJSON Results: Interfaces and Key to AbbreviationsReference DataValue Counts and Spell Check


Bikeshare Hawaii sets sights on electric bikes | Honolulu Star-Advertiser
Bikeshare Hawaii, founder of Honolulu’s first bikeshare system, is looking toward the future with an eye on electric bikes. Read more
Mahalo for reading the Honolulu Star-Advertiser!
You're reading a premium story. Read the full story with our Print & Digital Subscription.
Already a subscriber? Log in now to continue reading this story.
Print subscriber but without online access? Activate your Digital Account now.


git clone https://github.com/k4m4/dymerge.git
Takes previously made multiple dictionaries and merges them into a single one
Syntax: ./dymerge <path> <path> -s -o <path>
First dict
Second dict
output path


Give us a list of articles, and we'll tell you which ones are Open Access
Start with your email address so we can send you your results.
Try one at a time on our homepage to see how it works.
Upload a CSV file with your article identifiers, including column headers.
Our tool will look for at least one column named "url", "doi", "pmid", "pmcid", or "title".
The maximum file size is 15000 rows.


| | |
- __builtin__.object
-
- Pool
-
- AutoPool
- FakePool
class AutoPool(Pool) |
| |
Wrapper for multiprocessing.Pool simplifies client code.
Opening and closing of the Pool is implemented in the constructor/
destructor of the class, the function to be executed can be passed
as usual.
Exception handling already implemented. |
| |
- Method resolution order:
- AutoPool
- Pool
- __builtin__.object
Methods defined here:
- __del__(self)
- Destructor for the class.
- __init__(self, **kwargs)
- Constructor for the class.
kwargs
ncpus : number of cpus/worker processes
timeout : time (seconds) until multiprocessing.get returns
TimeoutError
- apply_async(self, f, args)
- Apply a function to a given set of arguments. Length of the argument
list and number of arguments of the function must agree.
For asynchronous application of a function on multiple sets of input
parameters see func::map_async or `func::map_async_tracked`.
f : function, must be picklable
args : argument list
- cleanup(self)
- Close the pool, terminate jobs and join processes.
- del_common_args(self)
- Delete common arguments.
- get(self)
- Waits and obtains the results of the tasks form the worker processes.
- get_tracked(self)
- Waits and obtains the results of the tasks form the worker processes.
Implements progress tracking. In order to get the best accuracy,
`get_tracked()` should be called right after `apply_async()`.
- info(self)
- Print information about number of CPUs, timeout settings and state.
- map_async(self, f, args)
- Apply a function to all elements in the argument list asynchronously.
f : function, must be picklable
args : argument list
- map_async_tracked(self, f, args)
- Apply a function to all elements in the argument list asynchronously,
while the progress is being tracked and printed to <stdout>. The optimal
partition into parallel executed chunks is determined automatically based
on the print_interval.
f : function, must be picklable
args : argument list
- revive(self, verbose=False)
- Revive Pool, return to initial state.
verbose : re-raise exception True/False
- set_common_args(self, args)
- Set common arguments.
- state(self)
- Return the state of the current instance.
Methods inherited from Pool:
- close(self)
- join(self)
- terminate(self)
Data descriptors inherited from Pool:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
|


re:CYCLE
Bike-Sharing Made Easy
Bike-Sharing Made Easy
We are a group of university students inspired by our transportation struggles to provide a service that benefits individuals as well as the greater humanity. Our service allows easy, inexpensive, and temporary bicycle lending and renting. On a larger scale, re:CYCLE is provides access to a healthier mode of transportation. Choosing bikes for transportation instead of gas-consuming vehicles reduces pollution that penetrates the ozone layer which protects our precious planet from the deathly hot rays of the Sun. Money is not the main objective for our company or website. Rather, our aim is to encourage biking for its health and environmental benefits while providing a service that increases and eases bike accessibility around the world.
re:CYCLE is determined to make an everlasting impact on this planet by providing a safe, easy-to-use service that increases the number of bikes on the road and decreases the amount of pollution in the air.


Namespaces
TOC
color
- Main name space. Usually contain color model classes, but also might contain other useful things.
color::akin
-
Mach most similar model/formats. e.g akin type for
::color::rgb< double >
is ::color::hsl< double >
and vice versa.
For more details see akin.
color::category
-
Contain all color categories. Category is pair of model and format.
For more details see category.
color::check
-
Test/check color components for some inconsistency.
For more details see check.
color::compare
-
Compare two functions according to some criteria. Usually it is by lexicographic compare respecting.
Code sample:
::color::rgb< double > a, b;
std::cout << ::color::compare::darker( a,b );
std::cout << ::color::compare::brighter( a,b );
For more details see compare.
color::constant
-
Contain various constants and constant like types for easy color manipulation.
Code sample:
::color::rgb< double > a( ::color::constant::aqua_t{} );
For more details see constant.
color::fix
-
Fix color by specified algorithm
For more details see fix.
color::get
-
Get some property of color by the name. Depend of used color model this operation might be instant like getting red from RGB or require some calculation, get red from HSV model.
For more details see get.
color::make
-
Make color by given name.
Code sample:
::color::rgb< double > c{ ::color::constant::pink{} };
For more details see make.
color::operation
-
All operations are situated here. Some operations are not designed to be used in this form e.g.
color::operation:addition
For more details see operations.
color::place
-
Get index of some color component.
For more details see place.
color::set
-
Set some property of color. Similarly to get this operation might be instant or need calculation.
Code sample:
::color::rgb< double > c{ ::color::constant::pink{} };
::color::set::red( c, 0.5 ); // set red to be 0.5
For more details see set.
color::trait
-
Contain classes to retrieve some property of color specified color category.
For more details see trait.
color::type
-
Contain useful types.
For more details see type.
color::_internal
-
Miscellaneous internal things. Do not use entities from here. It is highly probably that this might change from version to version or from one commit to another.


You can use this website to check if your data conforms to the Human Services Data Specification (HSDS), a data standard established and maintained by the Open Referral project.
Upload an HSDS zip file to validate multiple files or validate single files using the table below.
Make sure your files are using the proper table names, which are documented in the “path” sections of the HSDS specification.
| CSV Name | Upload | Status | Result |
|---|---|---|---|
| {{file.filename+".csv"}} |
No file chosen...
|
{{file.status}} | {{file.result}} |


Click on the buttons below to see a different popup's coming up. Please note that popup is a sub-class of a container.
Click here
Click here
A popup centered to the viewport. Click anywhere outside the popup to hide it.
A history modal popup. Press "back"-button and then forward button to see it in action.
A resizable popup. Resize grip is 10 pixels around the popup.


Since 2016, we've been helping people choose, plan, and finance the vacation of their dreams.
You love hiking, camping, and adventure, and there's no doubt that Canada is where it's at when it comes to outdoor thrills. Breathe in the brisk alpine air and enjoy those views!
Check out our About sections to learn more about your suggested country and to view plans and pricing.
You love to take things slow and are always down for a solid nap. From beach hangs to jungle adventures, Costa Rica's got the goods for anyone looking for some easy-going fun in the sun. Pura vida!
Check out our About sections to learn more about your suggested country and to view plans and pricing!
Ah, la vita dolce!  It's no secret you like wine. Who wouldn't be down for historical strolls, amazing food, and endless gelato on a Tuscan terrace?
Check out our About sections to learn more about your suggested country and to view plans and pricing!


Instalment 2 of the "sharing links" thingy. Shorter too.
On Software:
I recently subscribed to the Dataquest newsletter, and today got this post emailed to me:
Python vs R: head to head data analysis
Make pairwise scatterplots: One common way to explore a dataset is to see how different columns correlate to others.
The above example is from the excellent Seaborn Documentation. Good stuff!
On Conflict:
I read several great D. B. S. Jeyaraj articles in my ongoing fascination with the Sri Lankan Civil War.
“Pottu Amman” and the Intelligence Division of the LTTE
He was amazed at Pottu’s growth in later life and observed “I just don’t know how he is running the intelligence division so well nowadays”. But then academic brilliance is not a pre-requisite to run an intelligence outfit.
What is required is lateral thinking, practical approaches, devious cunning, organizational skills, shrewd judgement of men and matters and above all perpetual paranoia about everything.
“Col Charles”: The ”tiger” Mastermind Behind LTTE Attacks Outside North-East
It was decided that Colombo should be taught a bitter lesson. Charles, then only nineteen was entrusted with the task. He moved into Colombo in January 1991 and set two plans of attack in motion. Within a few weeks the LTTE struck in Colombo. The JOC headquarters was blown up.  This was only the beginning. Charles as an “unknown face” of the LTTE remained incognito in Colombo till 1997.

On Economics:
The excellent piece on the Daily FT by IPS Chairman Prof. Razeen Sally, titled "The Sri Lankan economy after regime change"
First the Government hammers consumers with high prices through inflation and import taxes – which hits the poor particularly hard since they spend more of their disposable income on essential items. Then it bludgeons producers with price controls. This is market-busting, an echo of Mrs Bandaranaike’s command economy in the 1970s.
On the same old wine in new bottles:
Old, established politicians have played musical chairs around the cabinet table, and kept a new generation of younger, competent professionals away from positions of power. This is not surprising: the old political elite – and their business cronies – have vested interests to defend. And so entrenched, unprofessional, bankrupt attitudes and methods persist.
On tax reform:
Objectives should be to get revenue up to 15-20% of GDP, while concurrently increasing incentives to save, invest, create jobs and boost productivity. The watchword should be “simplification”. There should be clean, simple rates for VAT and direct (personal and corporate) income taxes, with as few exemptions as possible. [...] Even relatively low tax rates will generate more revenue providing the system is clean, simple and well-enforced.
On the possible repercussions of this government failing:
The more malign scenario is that the present situation will spiral backwards. A macroeconomic crisis might be the catalyst. Or it could result from popular frustrations – no new investments, no new jobs, no change – boiling over. Then, in the Sinhala-Buddhist heartland, people might yearn again for a Big Man, a Rajapaksa or someone else, to ride in and clean house, sweeping away liberal rights and democratic niceties with his authoritarian broom. They could vent their frustrations at the minorities who got President Sirisena and a UNP-led Government elected.
Hat tip for Yudhanjaya and Himal for pointing me at this.
I've been watching a LOT of "Crash Course World History", and I loved their episode on Imperialism, especially the oft-overlooked economic side of it. See also their episode on American Imperialism, mostly covering the Spanish-American War.
Well, I guess not that much shorter. Oh well.


Class: JsonapiCompliable::Util::Persistence Private
- Inherits:
-
Object
- Object
- JsonapiCompliable::Util::Persistence
- Defined in:
- lib/jsonapi_compliable/util/persistence.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Save the given Resource#model, and all of its nested relationships.
Instance Method Summary collapse
-
#initialize(resource, meta, attributes, relationships, caller_model) ⇒ Persistence
constructor
private
A new instance of Persistence.
-
#run ⇒ Object
private
Perform the actual save logic.
Constructor Details
#initialize(resource, meta, attributes, relationships, caller_model) ⇒ Persistence
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Persistence
8 9 10 11 12 13 14 |
# File 'lib/jsonapi_compliable/util/persistence.rb', line 8 def initialize(resource, , attributes, relationships, caller_model) @resource = resource @meta = @attributes = attributes @relationships = relationships @caller_model = caller_model end |
Instance Method Details
#run ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Perform the actual save logic.
belongs_to must be processed before/separately from has_many - we need to know the primary key value of the parent before persisting the child.
Flow:
-
process parents
-
update attributes to reflect parent primary keys
-
persist current object
-
associate temp id with current object
-
associate parent objects with current object
-
process children
-
associate children
-
run post-process sideload hooks
-
return current object
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/jsonapi_compliable/util/persistence.rb', line 34 def run parents = process_belongs_to(@relationships) update_foreign_key_for_parents(parents) persisted = persist_object(@meta[:method], @attributes) assign_temp_id(persisted, @meta[:temp_id]) associate_parents(persisted, parents) children = process_has_many(@relationships, persisted) do |x| update_foreign_key(persisted, x[:attributes], x) end associate_children(persisted, children) unless @meta[:method] == :destroy post_process(persisted, parents) post_process(persisted, children) persisted end |


| module ti.uia.events.UIAThreadCtx |
|
|
|
UIA Thread Context Instrumentation
The UIAThreadCtx module defines context change events
and methods that allow tooling to identify thread context
switches and to enable thread-aware filtering, trace and
analysis.
[
more ... ]
#include <ti/uia/events/UIAThreadCtx.h>
Functions |
UInt | |
UInt | |
Bool | |
Void | |
UInt | |
Functions common to all target modules |
|
|
Typedefs |
typedef Bool | |
Constants |
| |
| |
extern const Bits16 | |
| |
extern const Bits16 | |
DETAILS
The UIAThreadCtx module defines context change events
and methods that allow tooling to identify thread context
switches and to enable thread-aware filtering, trace and
analysis.
It inherits IUIACtx, which defines a function pointer to
an isLoggingEnabled function which, if configured to point to
a function, will evaluate the function prior to logging the context
change event and will determine whether to log the event based on the
return value of the function. If the function is not configured,
logging will be conditional upon ti_uia_runtime_CtxFilter_module->mIsLoggingEnabled.
The generation of UIAThreadCtx events is also controlled by a module's diagnostics
mask, which is described in details in
xdc.runtime.Diags.
'UIAThreadCtx` events are generated only when the Diags.ANALYSIS bit is set
in the module's diagnostics mask.
The following configuration script demonstrates how the application might
control the logging of ANALYSIS events embedded in the Mod module at configuration
time. In this case, the configuration script arranges for the Log
statements within modules to always generate ANALYSIS events.
Without these configuration statements, no ANALYSIS events would be generated
by any modules.
EXAMPLES
Example 1: This is part of the XDC configuration file for the application:
var LogCtxChg = xdc.useModule('ti.uia.runtime.LogCtxChg');
var Diags = xdc.useModule('xdc.runtime.Diags');
var LoggerSys = xdc.useModule('xdc.runtime.LoggerSys');
var Defaults = xdc.useModule('xdc.runtime.Defaults');
var logger = LoggerSys.create();
Defaults.common$.diags_ANALYSIS = Diags.ALWAYS_ON;
Defaults.common$.logger = logger;
Example 2: The following example configures a module to support logging
of ANALYSIS events, but defers the actual activation and deactivation of the
logging until runtime. See the
Diags_setMask()
function for details on specifying the control string.
This is a part of the XDC configuration file for the application:
var LogCtxChg = xdc.useModule('ti.uia.runtime.LogCtxChg');
var Diags = xdc.useModule('xdc.runtime.Diags');
var Mod = xdc.useModule('my.pkg.Mod');
Mod.common$.diags_ANALYSIS = Diags.RUNTIME_OFF;
This is a part of the C code for the application:
// turn on logging of ANALYSIS events in the module
Diags_setMask("my.pkg.Mod+Z");
// turn off logging of ANALYSIS events in the module
Diags_setMask("my.pkg.Mod-Z");
| typedef UIAThreadCtx_IsLoggingEnabledFxn |
|
typedef Bool (*UIAThreadCtx_IsLoggingEnabledFxn)(Int);
| config UIAThreadCtx_ENABLEMASK // module-wide |
|
Ctx Filter Enable Mask
extern const Bits16 UIAThreadCtx_ENABLEMASK;
DETAILS
configures which bit of the ti_uia_runtime_CtxFilter_gFlags
is assigned to control context aware filtering for
frame context changes. Must be configured with a
value that is 2**SYNCID.
| config UIAThreadCtx_SYNCID // module-wide |
|
Trace Synchronization ID
extern const Bits16 UIAThreadCtx_SYNCID;
DETAILS
configures the value to be written into the
4 bit context change type field used by the
UIASync trace synchronization
| config UIAThreadCtx_ctxChg // module-wide |
|
threadSwitch Context Change event
VALUES
fmt
a constant string that describes the context change and provides a format specifier for newThreadId
newThreadId
an integer which uniquely identifies the new context
DETAILS
Used to log a thread switch
Note that the previous thread Id is logged automatically by the ti_uia_runtime_LogCtxChg_thread
API.
If ti_uia_events_UIAThreadCtx_isLoggingEnabledFxn is not NULL
it is called and its return value determines whether logging is enabled or not.
EXAMPLE
The following C code shows how to log a Thread Context Change
event that identifies a new thread using a BIOS task switch hook function
#include <ti/uia/runtime/LogCtxChg.h>
...
Void tskSwitchHook(Task_Handle hOldTask,Task_Handle hNewTask){
LogCtxChg_thread("thread: new = 0x%x",(Int)hNewTask);
}
This event prints the Log call site (%$F) and a format string (%$S)
which is recursively formatted with any addition arguments.
The following text is an example of what will be displayed for the event:
"Thread Ctx Change at Line 123 in demo.c [Prev. thread ID=0x1234] New thread ID=0x1235"
| config UIAThreadCtx_ctxChgWithFunc // module-wide |
|
threadSwitch Context Change event with prempted function and resumed function addresses
extern const Log_Event UIAThreadCtx_ctxChgWithFunc;
VALUES
fmt
a constant string that describes the context change and provides a format specifier for newThreadId
newThreadId
an integer which uniquely identifies the new context
oldFunc
the address of the function that was preempted
newFunc
the address of the function that is being resumed
DETAILS
Used to log a thread switch along with function info (preempted function and new function)
Note that the previous thread Id is logged automatically by the ti_uia_runtime_LogCtxChg_threadAndFunc
API.
If ti_uia_events_UIAThreadCtx_isLoggingEnabledFxn is not NULL
it is called and its return value determines whether logging is enabled or not.
EXAMPLE
The following C code shows how to log a Thread Context Change
event that identifies a new thread, the preempted function and the preempting function.
#include <ti/uia/runtime/LogCtxChg.h>
...
LogCtxChg_threadAndFunc("New thread ID=0x%x, oldFunc=0x%x, newFunc=0x%x",(Int)hNewTask, (Int)&oldFunc,(Int)&newFunc);
This event prints the Log call site (%$F) and a format string (%$S)
which is recursively formatted with any addition arguments.
The following text is an example of what will be displayed for the event:
"Thread CtxChgWithFunc at Line 123 in demo.c [Prev. thread ID=0x1234] New thread ID=0x1235, oldFunc=0x80001200, newFunc=0x80001080"
| config UIAThreadCtx_isLoggingEnabledFxn // module-wide |
|
| UIAThreadCtx_getCtxId() // module-wide |
|
Get the ID for the current thread
UInt UIAThreadCtx_getCtxId();
RETURNS
returns the thread ID logged by the last call to UIAThreadCtx_logCtxChg.
| UIAThreadCtx_getEnableOnValue() // module-wide |
|
Get the EnableOn value
UInt UIAThreadCtx_getEnableOnValue();
RETURNS
returns the thread ID value that logging will be enabled for.
| UIAThreadCtx_isLoggingEnabled() // module-wide |
|
returns true if the new context matches the value to enable logging with
Bool UIAThreadCtx_isLoggingEnabled(UInt newThreadId);
ARGUMENTS
newThreadId
the new thread ID
DETAILS
Default implementation of the IUIACtx_IsLoggingEnabledFxn for user context.
To enable context-aware filtering, in the .cfg script assign
UIAThreadCtx_isLoggingEnabledFxn = '&UIAThreadCtx_isLoggingEnabled'
or assign your own implementation of this function.
RETURNS
true if logging is enabled
| UIAThreadCtx_setEnableOnValue() // module-wide |
|
Set the EnableOn value
Void UIAThreadCtx_setEnableOnValue(UInt value);
ARGUMENTS
value
the CtxId value that logging will be enabled for.
| UIAThreadCtx_setOldValue() // module-wide |
|
sets ti_uia_events_UIAThreadCtx_gLastValue to the new value and returns the old value before it was updated
UInt UIAThreadCtx_setOldValue(UInt newValue);
ARGUMENTS
newValue
the new value to save in the global variable
(return0 the original value of the global variable before it was updated.
| Module-Wide Built-Ins |
|
// Get this module's unique id
Bool UIAThreadCtx_Module_startupDone();
// Test if this module has completed startup
// The heap from which this module allocates memory
Bool UIAThreadCtx_Module_hasMask();
// Test whether this module has a diagnostics mask
Bits16 UIAThreadCtx_Module_getMask();
// Returns the diagnostics mask for this module
Void UIAThreadCtx_Module_setMask(Bits16 mask);
// Set the diagnostics mask for this module
var UIAThreadCtx = xdc.useModule('ti.uia.events.UIAThreadCtx');
module-wide config parameters
msg: "Thread Ctx Change at %$F [Prev. thread ID = 0x%x] %$S"
};
msg: "Thread CtxChgWithFunc at %$F [Prev. threadId = 0x%x] %$S"
};
| config UIAThreadCtx.ENABLEMASK // module-wide |
|
Ctx Filter Enable Mask
UIAThreadCtx.ENABLEMASK = Bits16 undefined;
DETAILS
configures which bit of the ti_uia_runtime_CtxFilter_gFlags
is assigned to control context aware filtering for
frame context changes. Must be configured with a
value that is 2**SYNCID.
C SYNOPSIS
| config UIAThreadCtx.SYNCID // module-wide |
|
Trace Synchronization ID
UIAThreadCtx.SYNCID = Bits16 undefined;
DETAILS
configures the value to be written into the
4 bit context change type field used by the
UIASync trace synchronization
C SYNOPSIS
| config UIAThreadCtx.ctxChg // module-wide |
|
threadSwitch Context Change event
msg: "Thread Ctx Change at %$F [Prev. thread ID = 0x%x] %$S"
};
VALUES
fmt
a constant string that describes the context change and provides a format specifier for newThreadId
newThreadId
an integer which uniquely identifies the new context
DETAILS
Used to log a thread switch
Note that the previous thread Id is logged automatically by the ti_uia_runtime_LogCtxChg_thread
API.
If ti_uia_events_UIAThreadCtx_isLoggingEnabledFxn is not NULL
it is called and its return value determines whether logging is enabled or not.
EXAMPLE
The following C code shows how to log a Thread Context Change
event that identifies a new thread using a BIOS task switch hook function
#include <ti/uia/runtime/LogCtxChg.h>
...
Void tskSwitchHook(Task_Handle hOldTask,Task_Handle hNewTask){
LogCtxChg_thread("thread: new = 0x%x",(Int)hNewTask);
}
This event prints the Log call site (%$F) and a format string (%$S)
which is recursively formatted with any addition arguments.
The following text is an example of what will be displayed for the event:
"Thread Ctx Change at Line 123 in demo.c [Prev. thread ID=0x1234] New thread ID=0x1235"
C SYNOPSIS
| config UIAThreadCtx.ctxChgWithFunc // module-wide |
|
threadSwitch Context Change event with prempted function and resumed function addresses
msg: "Thread CtxChgWithFunc at %$F [Prev. threadId = 0x%x] %$S"
};
VALUES
fmt
a constant string that describes the context change and provides a format specifier for newThreadId
newThreadId
an integer which uniquely identifies the new context
oldFunc
the address of the function that was preempted
newFunc
the address of the function that is being resumed
DETAILS
Used to log a thread switch along with function info (preempted function and new function)
Note that the previous thread Id is logged automatically by the ti_uia_runtime_LogCtxChg_threadAndFunc
API.
If ti_uia_events_UIAThreadCtx_isLoggingEnabledFxn is not NULL
it is called and its return value determines whether logging is enabled or not.
EXAMPLE
The following C code shows how to log a Thread Context Change
event that identifies a new thread, the preempted function and the preempting function.
#include <ti/uia/runtime/LogCtxChg.h>
...
LogCtxChg_threadAndFunc("New thread ID=0x%x, oldFunc=0x%x, newFunc=0x%x",(Int)hNewTask, (Int)&oldFunc,(Int)&newFunc);
This event prints the Log call site (%$F) and a format string (%$S)
which is recursively formatted with any addition arguments.
The following text is an example of what will be displayed for the event:
"Thread CtxChgWithFunc at Line 123 in demo.c [Prev. thread ID=0x1234] New thread ID=0x1235, oldFunc=0x80001200, newFunc=0x80001080"
C SYNOPSIS
| config UIAThreadCtx.isLoggingEnabledFxn // module-wide |
|
UIAThreadCtx.isLoggingEnabledFxn = Bool(*)(Int) null;
C SYNOPSIS
| metaonly config UIAThreadCtx.common$ // module-wide |
|
Common module configuration parameters
DETAILS
All modules have this configuration parameter. Its name
contains the '$' character to ensure it does not conflict with
configuration parameters declared by the module. This allows
new configuration parameters to be added in the future without
any chance of breaking existing modules.
generated on Wed, 28 Aug 2019 19:03:35 GMT