exports.starts = (string, literal, start) ->
literal is string.substr start, literal.length
This file contains the common helper functions that we’d like to share among the Lexer, Rewriter, and the Nodes. Merge objects, flatten arrays, count characters, that sort of thing.
Peek at the beginning of a given string to see if it matches a sequence.
exports.starts = (string, literal, start) ->
literal is string.substr start, literal.length
Peek at the end of a given string to see if it matches a sequence.
exports.ends = (string, literal, back) ->
len = literal.length
literal is string.substr string.length - len - (back or 0), len
Repeat a string n
times.
exports.repeat = repeat = (str, n) ->
Use clever algorithm to have O(log(n)) string concatenation operations.
res = ''
while n > 0
res += str if n & 1
n >>>= 1
str += str
res
Trim out all falsy values from an array.
exports.compact = (array) ->
item for item in array when item
Count the number of occurrences of a string in a string.
exports.count = (string, substr) ->
num = pos = 0
return 1/0 unless substr.length
num++ while pos = 1 + string.indexOf substr, pos
num
Merge objects, returning a fresh copy with attributes from both sides.
Used every time Base#compile
is called, to allow properties in the
options hash to propagate down the tree without polluting other branches.
exports.merge = (options, overrides) ->
extend (extend {}, options), overrides
Extend a source object with the properties of another object (shallow copy).
extend = exports.extend = (object, properties) ->
for key, val of properties
object[key] = val
object
Return a flattened version of an array.
Handy for getting a list of children
from the nodes.
exports.flatten = flatten = (array) ->
flattened = []
for element in array
if '[object Array]' is Object::toString.call element
flattened = flattened.concat flatten element
else
flattened.push element
flattened
Delete a key from an object, returning the value. Useful when a node is looking for a particular method in an options hash.
exports.del = (obj, key) ->
val = obj[key]
delete obj[key]
val
Typical Array::some
exports.some = Array::some ? (fn) ->
return true for e in this when fn e
false
Simple function for inverting Literate CoffeeScript code by putting the documentation in comments, producing a string of CoffeeScript code that can be compiled “normally”.
exports.invertLiterate = (code) ->
maybe_code = true
lines = for line in code.split('\n')
if maybe_code and /^([ ]{4}|[ ]{0,3}\t)/.test line
line
else if maybe_code = /^\s*$/.test line
line
else
'# ' + line
lines.join '\n'
Merge two jison-style location data objects together.
If last
is not provided, this will simply return first
.
buildLocationData = (first, last) ->
if not last
first
else
first_line: first.first_line
first_column: first.first_column
last_line: last.last_line
last_column: last.last_column
This returns a function which takes an object as a parameter, and if that object is an AST node, updates that object’s locationData. The object is returned either way.
exports.addLocationDataFn = (first, last) ->
(obj) ->
if ((typeof obj) is 'object') and (!!obj['updateLocationDataIfMissing'])
obj.updateLocationDataIfMissing buildLocationData(first, last)
return obj
Convert jison location data to a string.
obj
can be a token, or a locationData.
exports.locationDataToString = (obj) ->
if ("2" of obj) and ("first_line" of obj[2]) then locationData = obj[2]
else if "first_line" of obj then locationData = obj
if locationData
"#{locationData.first_line + 1}:#{locationData.first_column + 1}-" +
"#{locationData.last_line + 1}:#{locationData.last_column + 1}"
else
"No location data"
A .coffee.md
compatible version of basename
, that returns the file sans-extension.
exports.baseFileName = (file, stripExt = no, useWinPathSep = no) ->
pathSep = if useWinPathSep then /\\|\// else /\//
parts = file.split(pathSep)
file = parts[parts.length - 1]
return file unless stripExt and file.indexOf('.') >= 0
parts = file.split('.')
parts.pop()
parts.pop() if parts[parts.length - 1] is 'coffee' and parts.length > 1
parts.join('.')
Determine if a filename represents a CoffeeScript file.
exports.isCoffee = (file) -> /\.((lit)?coffee|coffee\.md)$/.test file
Determine if a filename represents a Literate CoffeeScript file.
exports.isLiterate = (file) -> /\.(litcoffee|coffee\.md)$/.test file
Throws a SyntaxError from a given location.
The error’s toString
will return an error message following the “standard”
format <filename>:<line>:<col>: <message>
plus the line with the error and a
marker showing where the error is.
exports.throwSyntaxError = (message, location) ->
error = new SyntaxError message
error.location = location
error.toString = syntaxErrorToString
Instead of showing the compiler’s stacktrace, show our custom error message (this is useful when the error bubbles up in Node.js applications that compile CoffeeScript for example).
error.stack = error.toString()
throw error
Update a compiler SyntaxError with source code information if it didn’t have it already.
exports.updateSyntaxError = (error, code, filename) ->
Avoid screwing up the stack
property of other errors (i.e. possible bugs).
if error.toString is syntaxErrorToString
error.code or= code
error.filename or= filename
error.stack = error.toString()
error
syntaxErrorToString = ->
return Error::toString.call @ unless @code and @location
{first_line, first_column, last_line, last_column} = @location
last_line ?= first_line
last_column ?= first_column
filename = @filename or '[stdin]'
codeLine = @code.split('\n')[first_line]
start = first_column
Show only the first line on multi-line errors.
end = if first_line is last_line then last_column + 1 else codeLine.length
marker = codeLine[...start].replace(/[^\s]/g, ' ') + repeat('^', end - start)
Check to see if we’re running on a color-enabled TTY.
if process?
colorsEnabled = process.stdout?.isTTY and not process.env?.NODE_DISABLE_COLORS
if @colorful ? colorsEnabled
colorize = (str) -> "\x1B[1;31m#{str}\x1B[0m"
codeLine = codeLine[...start] + colorize(codeLine[start...end]) + codeLine[end..]
marker = colorize marker
"""
#{filename}:#{first_line + 1}:#{first_column + 1}: error: #{@message}
#{codeLine}
#{marker}
"""
exports.nameWhitespaceCharacter = (string) ->
switch string
when ' ' then 'space'
when '\n' then 'newline'
when '\r' then 'carriage return'
when '\t' then 'tab'
else string


Software Development
Programming
Computer Science
Web Development
Data Analysis
Distributed Systems
Artificial Intelligence
Project Management
Shell Scripting
Web Applications
SEO
Python
Linux
JavaScript
Hadoop
SQL
MySQL
Microsoft SQL Server
PHP
Eclipse
Databases
LaTeX
R
Conversational UI
Regular Expressions
Chatbots
Multi-agent Systems
Statistical Programming
scikit-learn
Information Retrieval
Sphinx
Groovy


The following is a curated collection of relevant and trustworthy financial news websites to track the lates events on world markets.
Market headlines from across the globe.


THE GREEN MILE (1999) A film review by Justin Felix. Copyright 1999 Justin Felix.
All of my film reviews are archived at http://us.imdb.com/M/reviews_by?Justin+Felix
This review has been submitted to The Shrubbery http://www.theshrubbery.com
Any comments about this review? E-mail me at<EMAIL_ADDRESS>Rating: **** (out of five)
Screenplay by Frank Darabont.
Based on the novel THE GREEN MILE by Stephen King.
Directed by Frank Darabont.
Starring Tom Hanks, Michael Duncan, and James Cromwell.
Rated R (contains scenes of extreme violence and profanity)
Synopsis: 1930s Death Row warden Paul Edgecomb begins to suspect his newest prisoner, a huge bulking man convicted of killing two small girls, possesses supernatural powers and a philanthropic outlook on life.
Comments: Stephen King initially wrote THE GREEN MILE, the story from which the movie is based upon, in installments. In other words, the story appeared in serial form and was later collected and republished as a novel. While some considered this a ploy to garner even more money from King's legions of fans, others saw this as an attempt to recapture the feel of serials from the 19th Century. Charles Dickens, for example, wrote many of his novels in a serial form. Several contemporary critics are beginning to accept King as the "Dickens of our day". King's voice, in other words, is the voice of the latter half of the American 20th Century, they say.
Whether or not you feel King is a great writer, a good writer, or a god-awful writer is largely irrelevant when you see a movie based upon one of his books. While a number of turkeys exist (the recent CARRIE 2 for instance), there can be no denying that several of the finest films produced in the last decade and a half are based upon King's stories. THE SHINING, the understated STAND BY ME, and the Academy-Award-winning suspense classic MISERY are just a couple examples.
The film which seems to garner the most fan praise, though, is THE SHAWSHANK REDEMPTION. Because of this, die-hard Stephen King fans and movie buffs have been waiting for THE GREEN MILE, in some respects a sequel to SHAWSHANK, to be released. THE GREEN MILE, like SHAWSHANK, revolves around a prison, is based on a King novel, and features the same director, Frank Darabont.
Was it well worth the wait? Yes. Is it perfect? No. In fact, THE SHAWSHANK REDEMPTION may stand as the superior of the two films, though I do not necessarily wish to detract from THE GREEN MILE's appeal.
THE GREEN MILE deals with rather unpleasant issues. The main character, portrayed by Tom Hanks, suffers from a urinary infection and is in constant pain during the first half of the film. He is the warden at a prison for Death Row inmates, most of whom are not pleasant people. His staff includes a sadist who wishes to hurt the inmates in any way he can. The audience is presented with three electrocutions during the course of the movie (set, by the way, in the 1930s), and these electrocutions are presented in a methodically slow and deliberate manner.
The dark subject matter is contrasted, however, with dim-witted John Coffey, who seems to offer hope to all around him in the prison. Coffey has been sentenced to death for the murder of two girls, though the audience, from the very beginning, suspects correctly that he is innocent of the crimes. Coffey seems responsible for several "miracles" which occur throughout the film, and his sacrifices are obvious allusions to Christ (note that they both share the initials J.C.).
While this all may seem "heavy" and dark, there are quite a few moments of human compassion and humor in the movie as well. A mouse, christened Mr. Jingles by an inmate, in particular, provides several comic moments. These moments are necessary, for the movie runs well over three hours. Add in trailers and theater promotions, the audience sits for nearly 3 1/2 hours. This is perhaps THE GREEN MILE's weak spot. While a lengthy running time is certainly justifiable in many films, I couldn't help but feel that THE GREEN MILE could easily have been cut by about 20 or so minutes. Several scenes seem to take too much time to develop.
The acting in THE GREEN MILE is superb, and I wouldn't be surprised if an Academy Award nomination or two are in the works for the cast. Tom Hanks is good as the lead, but he's supported by quite an ensemble which includes veterans like Graham Greene, James Cromwell, and Michael Jeter. Michael Duncan seems to steal the show, however, with his massive presence as John Coffey, a presence which seems to hang over all the scenes that he isn't in as well as the ones that he is in.
THE GREEN MILE was released during the Christmas season. While it doesn't seem like a Stephen King film would make a good family holiday movie (and, make no mistake, THE GREEN MILE is certainly an adult film), its theme of redemption and sacrifice, oddly, do seem to resonate with the holiday spirit. After the atrocious THE RAGE: CARRIE 2, it's good to see that America's most popular storyteller is again being well-represented by the movie industry.
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


About Olympics
The Olympic Games are divided into two seasons, summer and winter. The Summer Olympics was founded longer, so the participation is wider. However, unlike the Summer Olympics events and teams have become saturated, the Winter Olympics are still accelerating development and growth.
About Participants of Countries
Fortunately, among the 12 countries I chose, there have been hosts of the Olympics in recent years, so we can clearly see from the number of participants that as the host, there will be an exaggerated increase in the number of participants.Nonetheless, for the still developing Winter Olympics, this increase is not so conspicuous.
About Comparison
It can be seen from the performance of various countries that there is a certain positive correlation between the participating projects and the number of awards. Only countries with certain economic strength will pay more attention to sports development. From per capita GDP and per capita health care, we can see that they have a certain positive correlation with the number of participants. However, to my surprise, population and number of participants are negatively correlated, but this may also be due to the use of less data. If all participating countries are used, the correlation should be more obvious.
Forecasting
The participating teams and competitions of the Summer Olympics will tend to be gentle, and there will be no significant increase in each session. The Winter Olympics will maintain a certain growth trend, and more countries and teams will participate.
The number of participants in the Summer Olympics will slow down with the participating teams, while the number of participants in the Winter Olympics will continue to increase as the teams expand. As women participate more in sports, the ratio of men to women in the Olympics will eventually become 1: 1. Undoubtedly, as the host of the 2020 Summer Olympics, the number of participants in Japan is bound to have an exaggerated growth.
Overall
As the economy develops, more and more countries and people will participate in the Olympics. The higher the national standard of living, the greater the number of national participants and the better the performance of athletes. As the host, they will get more opportunities to participate in the Olympic Games.


Jessica's Dev Bootcamp Blog
June 01, 2014
Javascript!
Javascript! It's so hot right now! Javascript. (Zoolander reference!)
Javascript is indeed everywhere. What is the reason for the ubiquity, you ask? Well I hope to address this question in this blog post.
Why Javascript is popular in web development:
You've probably accessed web applications in your internet browsing right? Of course you have. We run applications on the web, via the web browser all the time! Some common web applications are things like Google Maps, facebook, etc. These sites are not merely websites, but are web applications, and surprise! They are written in JavaScript!
What does the JavaScript do, you ask? Well, generally it is included in the coding of a web application, and it enhances the dynamics and interactive features of the web page, by allowing the web site to do things like add special effects, customize graphics, create security passwords, etc! You're probably thinking to yourself, "Hey yeah, I've seen websites that do that kind of thing!" Javascript is what makes websites INTERESTING, adding interactive effects within web browsers, without it the web would be boring. :)
Basically, JavaScript is the reason why people who use the web are able to input info and interact with most of the websites they visit on a daily basis!
What are the great things about JavaScript?
JavaScript used to have a bad rep!  YEESH. But it's come a long way!
One of the reasons for it's popularity, aside from the fact that it makes web applications LOOK COOL, is that you don't have to be a programming wizard to use JavaScript. There are a lot of programmers out there who have already gone through the trouble of writing the code that makes pages look cool and have functions that you may want to incorporate into your own web pages. These scripts are often freely avialable for you to copy from script libraries, and you can use them on your own site! You just follow instructions provided with the script to customize to your liking, then paste into your web page!
Currently, a lot of development energy is being put into new technologies, like the ones coming out of HTML5. Since JavaScript is the programming language behind HTML5, it behooves programmers to know JavaScript, or they may get left in the dust when it comes to developing these new and exciting technologies!
Another reasons why JavaScript is awesome: it comes installed on every modern web browser, so you can program in JavaScript right away, without having to deal with complicated downloads and installation of additional software.
What are JavaScript's limitations:
A lot of JavaScript's limitations are pretty technical in nature, so may not be interesting or make sense to the layperson. However, there are some that I have come across that may be of concern to the average person.
JavaScript does nto have multithreading capabilities. Multithreading is the ability of a program or OS process to manage use by more than one user at a time, or to manage multiple requests by one user.
JavaScript can't access web pages hosted on a different domain solely using JavaScript.
JavaScript depeds a lot on the browser it runs on. Different browsers (firefox, IE, safari, etc) interpret JavScript differently. So if you're writing JavaScript code, it's best to always test it on all major browsers before you put your code out into the world!
And apparently, you cannot use most of your local devices with JavaScript. You cannot access your printer or other user devices directly via JavaScript.


---
layout: page
commens: true
---
I'm Samanvya Tripathi, an aspiring AI solutions architect currently working as Product Engineer at Myelin Foundry. I like to work on anything and everything that brings about a positive change in the society. I believe AI has the power to revolutionalise
every industry there is, and I want to be working on the frontier of this amazing field.
I've always wanted to start a blog and share whatever I know with the world. You can find posts on technology and life here.
In my free time you can find me playing chess, send me a friend request here! Let's play sometime.
I also like to play the guitar, soccer and click photos (or atleast used to).
Feel free to connect with me on any of the social media platforms.
Cheers!
{% include footer.html %}


Seng 371 Project
Displaying Project: <<--REPO-->>
commits -- additions -- deletions
Commits
Additions
Deletions
Modifies
Unique Contributors
< Prev
Next >
Project Description
<<--README-->>
Other Figures


{% load staticfiles %}
Take full reuse of Python's existing powerful libraries: Requests, unittest and Locust. And achieve the goal of API automation test, production environment monitoring, and API performance test, with a concise and elegant manner.


Web 2.0
Modern, appealing web applications are the basis of web 2.0. Whether it be a front-end for your business, a personal blog, wikis, video sharing, hosted services, web apps, mash ups or folksonomie. Elite Solutions is prepared to take your web presence to another level.
Computer Service
We have years of experience working with a wide range of computing technologies. On-site and remote computer repair services are available. This includes, but is not limited to, all varieties of network appliances and computer software. Browse our services page to find a solution that meets your needs.
Technology
Elite Solutions Computer Service is a premier cyber technology business, we stay up to date with the latest technology trends. We are familiar with current techniques of computer repair and IT problem solving. Let ESCS get things done the right way with affordable rates the first time. Estimates are available. PayPal accepted. Satisfaction Guaranteed.


#include <node.h>
Definition at line 32 of file node.h.
◆ Node() [1/2]
| LatticeGraph::Node::Node |
( |
| ) |
|
◆ ~Node()
| LatticeGraph::Node::~Node |
( |
| ) |
|
◆ Node() [2/2]
◆ addEdge()
| void LatticeGraph::Node::addEdge |
( |
std::weak_ptr< Edge > |
e | ) |
|
Add edge e to the current vortex (node)
- Parameters
-
| e | Weak pointer to the edge to add |
◆ getConnectedNode()
| std::shared_ptr<Node> LatticeGraph::Node::getConnectedNode |
( |
std::shared_ptr< Edge > |
e | ) |
|
Get the node on the other side of the edge e.
- Parameters
-
| e | Edge sharing connection with required node |
- Returns
- Share pointer to connected vortex (node)
◆ getConnectedNodes()
| void LatticeGraph::Node::getConnectedNodes |
( |
unsigned int & |
nodes | ) |
|
Get all connected nodes to the current vortex. PassByRef.
- Parameters
-
| &nodes | Pass by reference location for nodes result |
◆ getData()
Get vortex (node) data struct.
- Returns
- Vortex data struct
◆ getEdge()
| std::weak_ptr<Edge> LatticeGraph::Node::getEdge |
( |
int |
idx | ) |
|
Get edge at index idx. Assumes indices exist.
- Parameters
-
| idx | Index of the requested edge |
- Returns
- Vector of weak pointers to the requested edge at index idx
◆ getEdges()
| std::vector<std::weak_ptr <Edge> >& LatticeGraph::Node::getEdges |
( |
| ) |
|
Get all connected edges to vortex (node)
- Returns
- Vector of weak pointers to the connected edges
◆ getSuid()
| unsigned int& LatticeGraph::Node::getSuid |
( |
| ) |
|
Get vortex (node) static UID for new UID generation.
- Returns
- Static class UID
◆ getUid()
| unsigned int LatticeGraph::Node::getUid |
( |
| ) |
|
Get vortex (node) UID.
- Returns
- Vortex UID
◆ removeEdge() [1/2]
| void LatticeGraph::Node::removeEdge |
( |
std::shared_ptr< Node > |
n | ) |
|
Remove edge connecting this to Node n.
- Parameters
-
| n | Shared pointer to vortex (node) edge connected with. |
◆ removeEdge() [2/2]
| void LatticeGraph::Node::removeEdge |
( |
std::weak_ptr< Edge > |
e | ) |
|
Remove edge e directly.
- Parameters
-
| e | Shared pointer to edge for removal |
◆ removeEdgeIdx()
| void LatticeGraph::Node::removeEdgeIdx |
( |
unsigned int |
idx | ) |
|
Remove edge with index idx.
- Parameters
-
| idx | Index of the requested edge to remove |
◆ removeEdges()
| void LatticeGraph::Node::removeEdges |
( |
| ) |
|
Remove all connected edges.
◆ removeEdgeUid()
| void LatticeGraph::Node::removeEdgeUid |
( |
unsigned int |
uid | ) |
|
Remove edge with UID uid.
- Parameters
-
| uid | UID of requested edge to remove |
◆ setData()
Set the vortex data (in node)
- Parameters
-
| &data | Reference to vortex struct to set. |
◆ uid
| unsigned int LatticeGraph::Node::uid |
The documentation for this class was generated from the following files:


In this example we set the initial state of the SVG Nodes component. This includes nodes (how many, and where they are placed), labels, initial connections and selected/highlighted nodes.
This initial state will not be mutated by the SVG Nodes component.
{{ Example.svg_nodes_initial_state | json }}


The camp began to go up quickly, in the mouth of Jangai Pass, if away from Taien, and spreading over the hills around the approaches, among the scattered thornbushes, and even onto the slopes of the mountains. Not that anything was very visible except what was inside the pass; Aiel tents blended into the stony soil so well that you could miss them even when you knew what you were looking for and where. In the hills the Aiel camped by clan, but those in the pass itself grouped themselves by society. They were mostly Maidens, but the men’s societies sent their representatives, too, some fifty each, spreading tents well above the ruins of Taien in slightly separated camps. Everyone understood, or thought they did, about the Maidens carrying Rand’s honor, but all societies wanted to guard the Car’a’carn.
Moiraine—and Lan, of course—went to get Kadere’s wagons settled, just below the town; the Aes Sedai fussed over what was in those wagons nearly as much as she did over Rand. The drivers muttered and cursed about the town’s smell, and avoided watching the Aiel cut bodies down from the wall, but after their months in the Waste, they seemed to like being close even to the wreckage of what they saw as civilization.
Gai’shain were erecting the Wise Ones’ tents—those of Amys and Bair and Melaine—below the town, astride the faded track that led up out of the hills. Rand was sure they would say they had chosen the spot to be available to him as well as to the countless dozens of Wise Ones below, but he thought it no coincidence that anyone coming up from the hills to him would have to go through or around their camp to reach him. He was a little surprised to see Melaine directing the white-robed figures. Only three nights before, she had married Bael, in a ceremony that made her his wife and first-sister to his other wife, Dorindha. That part had been just as important as the marriage, apparently; Aviendha had been shocked at his surprise, or maybe angry.
When Egwene arrived with Aviendha up behind her on the gray mare, those full skirts pushed above their knees, they looked a matched pair despite their different coloring and Aviendha being tall enough to look over Egwene’s shoulder without stretching, each with just one ivory bracelet and one necklace. The work of removing the hanged corpses had barely begun. Most of the ravens lay dead, bundles of black feathers littering the ground, and the rest had flown, but vultures too gorged to flap aloft still waddled through the ashes inside the walls.
Rand wished that there was some way he could keep the two women from having to see, but to his surprise, neither went running to empty her stomach. Well, he had not really expected anything of the sort from Aviendha; she had seen death often enough, and dealt it out, too, and her face remained expressionless.
She drew Mist over to Jeade’en and leaned to put a hand on his arm. “I am so sorry, Rand. There was no way you could have stopped this.”
“I know,” he told her. He had not even known there was a town here until Rhuarc mentioned it casually five days ago—his councils with the chiefs had all been on whether they could cover more ground in a day, and what Couladin would do when he cleared the Jangai—and by that time the Shaido had finished here and gone. He had done with cursing himself for a fool then.
“Well, just you remember it. It was not your fault.” She heeled Mist on, and began talking to Aviendha before she was out of earshot. “I am glad he is taking it so well. He has the habit of feeling guilty over things he cannot control.”
“Men always believe they are in control of everything around them,” Aviendha replied. “When they find out they are not, they think they have failed, instead of learning a simple truth women already know.”
Egwene giggled. “That is the simple truth. Once I saw those poor people, I thought we would find him heaving somewhere.”
“Is his stomach so tender? I . . . ”
Their voices faded away as the mare ambled on. Rand pulled himself back upright in the saddle, flushing.  That did not stop him frowning at their departing backs. He only took responsibility for what he was accountable for, if only to himself. Just for things he could do something about. And what he should have done something about. He did not like them talking about him. Behind his back, or under his nose. The Light only knew what they were saying.
Dismounting, he led Jeade’en in search of Asmodean, who seemed to have wandered off. After so many days in the saddle, it was good to walk. Various clusters of tents were springing up along the pass; the mountain slopes and cliffs made formidable barriers, but the Aiel still arranged themselves as if they could expect attack from them. He had tried walking with the Aiel, but half a day was enough to put him back on the horse. It was hard enough to keep up with them mounted; they could wear out horses when they pressed.
Mat was down, too, squatting with his reins in one hand and that black-hafted spear across his knees, peering at the gaping gates, studying the town and muttering to himself while Pips tried to nibble at a thornbush. Mat was studying, not just staring. Where had that remark about sentries come from? Mat said odd things at times now, since their first visit to Rhuidean. Rand wished that he were willing to talk about what had happened, but he still denied that anything had, despite the foxhead medallion, the spear, and that scar around his neck. Melindhra, the Shaido Maiden that Mat had taken up with, was off to one side, watching Mat, until Sulin came and chased her away on some errand. Rand wondered if Mat knew the Maidens were laying bets on whether Melindhra would give up the spear for him. And on whether she would teach him to sing, too, though they only laughed when Rand asked what that meant.
The sound of music drew him to Asmodean, seated by himself on a granite outcrop with his harp on his knee. The crimson banner’s staff had been twisted into the rocky soil, and the mule tethered to it. “You see, my Lord Dragon,” he said cheerfully, “your bannerman keeps loyally to his duties.” His voice and expression changed, and he said, “If you must have this thing, why not let Mat carry it, or Lan? Or Moiraine, for that matter? She would be glad to carry your banner, and clean your boots. Be careful of her. She is a devious woman. When a woman says she will obey you, of her own will, it is time to sleep lightly and watch your back.”
“You carry it because you were chosen, Master Jasin Natael.” Asmodean gave a start and looked around, though everyone else was too far away, and too busy, to be listening. None but they two would have understood, anyway. “What do you know about those ruins up near the snow line? They must come from the Age of Legends.”
Asmodean did not even glance up the mountain. “This world is very changed from the world I . . . went to sleep in.” He sounded weary, and he shivered slightly. “What I know of what lies where, I have learned since waking.” The mournful sounds of “The March of Death” rose from his harp. “That could be what is left of the city where I was born, for all I know. Shorelle was a port.”
The sun had maybe an hour before the Spine of the World hid it; this close to high mountains, night came early. “I am too tired for one of our discussions tonight.” That was what they called Asmodean’s lessons in public, even when no one was around. Added to practice sessions with Lan or Rhuarc, those lessons had left him little time for sleep since leaving Rhuidean. “You take to your tent when you’re ready, and I will see you in the morning. With the banner.”  Maybe he could find somebody in Cairhien.
As he was turning away, Asmodean plucked something discordant and said, “No burning nets woven around my tent tonight? Do you finally begin to trust me?”
Rand looked back over his shoulder. “I trust you like a brother. Until the day you betray me. You have a parole for what you’ve done, in return for your teaching, and a better bargain than you deserve, but the day you turn against me, I will tear it up and bury it with you.” Asmodean opened his mouth, but Rand forestalled him. “That is me talking, Natael. Rand al’Thor. Two Rivers folk don’t like people who try to stab them in the back.”
Irritably, he pulled at the dapple’s reins and went on before the other man could say anything. He was not sure whether Asmodean had any inkling that a dead man was trying to take him over, but he should not let himself give the man hints. Asmodean was sure enough already that his was a helpless cause; if he began to think that Rand was not in full control of his own mind, perhaps that he was going mad, the Forsaken would abandon him in a heartbeat, and there was too much Rand had to learn yet.
White-robed gai’shain were erecting his tent under Aviendha’s direction, well into the pass mouth, with that huge carved snake rearing above. The gai’shain had their own tents, but those would be the last erected, of course. Adelin and a dozen or so Maidens squatted nearby, watching, waiting to guard his sleep. Even with over a thousand Maidens encamped around him every night, they still put a guard on his tent.
Before approaching, he reached out through the angreal in his coat pocket to seize saidin.  Mingled filth and sweetness filled him, that raging river of fire, that crushing avalanche of ice. Channeling as he had done every night since leaving Rhuidean, he set wards around the entire encampment, not only what was in the pass but every tent in the hills below as well, and on the slopes of the mountains. He needed the angreal to set wardings so large, but only just. He had thought that he was strong before, but Asmodean’s teachings were making him stronger. No human or animal crossing the line of that ward would notice anything, but Shadowspawn that touched it would sound a warning that everyone in the tents would hear. Had he done this in Rhuidean, the Darkhounds could never have entered without him knowing.
The Aiel themselves would have to keep watch for human enemies. Wardings were complex weaves, if tenuous, and trying to make them do more than one thing could render them useless, in practicality. He could have made this one to kill Shadowspawn instead of merely giving warning, but that would have been like a beacon to any male Forsaken who might be searching, and to Myrddraal, too. No need to bring his enemies down on him when they might not know where he was. This, even one of the Forsaken would not know until he was close, and a Myrddraal not until it was too late.
Letting go of saidin was an exercise in self-control, despite the foulness of the taint, despite the way the Power tried to scour him away like sand on a riverbed, to burn him, obliterate him. He floated in the vast emptiness of the Void, yet he could feel the air stirring against each hair on his head, see the weave of the gai’shain’s robes, smell Aviendha’s warm scent. He wanted more. But he could smell the ashes of Taien, too, smell the who had been burned, the corruption of those who not, even the ones already buried, mingled with the soil of their graves. That helped. For a while after it was gone, all he did was take deep breaths of hot, arid air; compared to before, the whiff of death seemed absent, and the air itself pure and wonderful.
“Look what was here before us,” Aviendha said as he let a meek-faced white-robed woman take Jeade’en. She held up a brown snake, dead, but as thick as his forearm and nearly three paces long. The bloodsnake took its name from the effect of its bite, turning the blood to jelly in minutes. Unless he missed his guess, the neat wound behind its head had come from her belt knife. Adelin and the other Maidens looked approving.
“Did you ever for one minute think that it could have bitten you?” he said. “Did you ever think of using the Power instead of a bloody belt knife?  You had to be close enough.”
She drew herself up, and her big green eyes should have brought on the night’s chill early. “The Wise Ones say it is not good to use the Power too often.” The clipped words were as cold as her eyes. “They say it is possible to draw too much and harm yourself.” Frowning slightly, she added, more to herself than him, “Though I have not come near what I can hold yet. I am sure of it.”
Shaking his head, he ducked into the tent. The woman would not listen to reason.
No sooner had he settled himself against a silk cushion near the still unlit fire than she followed him. Without the bloodsnake, thankfully, but gingerly carrying something long wrapped in thick layers of gray-striped blanket. “You were worried for me,” she said in a flat voice. There was no expression at all on her face.
“Of course not,” he lied. Fool woman. She’ll get herself killed yet because she doesn’t have the sense to be careful when it’s needed. “I’d have been as worried for anyone. I would not want anyone bitten by a bloodsnake.”
For a moment she eyed him doubtfully, then gave a quick nod. “Good. So long as you do not presume toward me.” Tossing the bundled blanket at his feet, she sat on her heels across the firepit from him. “You would not accept the buckle as canceling debt between us . . . ”
“Aviendha, there is no debt.” He thought that she had forgotten about that. She went on as if he had not spoken.
“ . . . but perhaps that will cancel it.”
Sighing, he unwrapped the striped blanket—warily, since she had held it far more uneasily than she had the snake; she had held the bloody snake as if it were a piece of cloth—unwrapped it, and gasped. What lay inside was a sword, the scabbard so encrusted with rubies and moonstones that it was hard to see the gold except where a rising sun of many rays had been inset. The ivory hilt, long enough for two hands, had another inlaid rising sun in gold; the pommel was thick with rubies and moonstones, and still more made a solid mass along the quillons. This had never been made to use, only to be seen. To be stared at.
“This must have cost . . . Aviendha, how could you pay for it?”
“It cost little,” she said, so defensively that she might as well have added that she lied.
“A sword. How did you ever come by a sword? How did any Aiel come by a sword? Don’t tell me Kadere had this hidden in his wagons.”
“I carried it in a blanket.” She sounded even more touchy now than she had about the price. “Even Bair said that would make it all right, so long as I did not actually touch it.” She shrugged uncomfortably, shifting and re-shifting her shawl. “It was the treekiller’s sword. Laman’s. It was taken from his body as proof that he was dead, because his head could not be brought back so far. Since then it has passed from hand to hand, young men or fool Maidens who wanted to own the proof of his death.  The price has come down very far since it first was sold. No Aiel would lay hand to it even to remove the stones.”
“Well, it is very beautiful,” he said, as tactfully as he could manage. Only a buffoon would carry something this gaudy. And that ivory hilt would twist in a hand slippery with sweat or blood. “But I cannot let you . . . ” He trailed off as he bared a few inches of the blade, out of habit, to examine the edge. Etched into the shining steel stood a heron, symbol of a blademaster. He had carried a sword marked like that once. Suddenly he was ready to bet that this blade was like it, like the raven-marked blade on Mat’s spear, metal made with Power that would never break and never need sharpening. Most blademasters’ swords were only copies of those. Lan could tell him for certain, but he was sure already in his own mind.
 “I will take the blade to cancel the debt, Aviendha.” It was long and slightly curved, with a single edge. “Just the blade. You can have the hilt back, too.” He could have a new hilt and scabbard made in Cairhien. Maybe one of Taien’s survivors was a decent bladesmith.
 “But those gems are worth much, much more than I—You are trying to put me in your debt again, Rand al’Thor.”
“Not so.” If this blade had lain untouched, and untarnished, in its scabbard for over twenty years, it had to be what he thought. “I did not accept the scabbard, so it has been yours all along.” Tossing one of the silk cushions into the air, he executed the seated version of the form called Low Wind Rising; feathers rained down as the blade sliced neatly through. “And I don’t accept the hilt, either, so that’s yours, too. If you have made a profit, it’s your own doing.”
Instead of looking happy at her good fortune—he suspected she had given everything that she had for the sword, and likely gotten back a hundred times as much or more in the scabbard alone—instead of seeming glad, or thanking him, she glared through the feathers as indignantly as any goodwife in the Two Rivers seeing her floor littered. Stiffly, she clapped, and one of the gai’shain appeared, immediately going to her knees to begin cleaning up the mess.
“It is my tent,” he said pointedly. Aviendha sniffed at him in perfect imitation of Egwene. Those two women were definitely spending too much time together.
Supper, when it came at full dark, consisted of the usual flat pale bread, and a spicy stew of dried peppers and beans with chunks of nearly white meat. He only grinned at her when he learned that it was the bloodsnake; he had eaten snake and worse since coming to the Waste. Gara—the poisonous lizard—was the worst in his estimation; not for the taste, which was rather like chicken, but because it was lizard. It sometimes seemed that there must be more poisonous things—snakes, lizards, spiders, plants—in the Waste than in the rest of the world combined.
Aviendha appeared disappointed that he did not spit the stew out in disgust, though sometimes it was difficult to tell what she was feeling. At times she seemed to take great pleasure in discomfiting him. Had he been trying to pretend that he was Aiel, he would have thought she was trying to prove he was not.
Tired and eager for sleep, he only took off his coat and boots before crawling into his blankets and turning his back to Aviendha. Aiel men and women might take sweat-baths together, but a short time in Shienar, where they did something much the same, had convinced him that he was not made for that sort of thing, not without going so red in the face that he died of it. He tried not to listen to the rustle of her undressing beneath her own blankets. At least she had that much modesty, but he kept his back turned anyway, just in case.
She claimed she was supposed to sleep there to continue his lessons on Aiel ways and customs, since he spent so much of his days with the chiefs. They both knew that was a lie, though what the Wise Ones thought she could find out this way, he could not imagine. She gave little grunts every now and then as she tugged at something, and muttered to herself.
To cover the sounds, and stop himself thinking of what they must mean, he said, “Melaine’s wedding was impressive.  “Why should he know before Melaine laid the bridal wreath at his feet and asked him?” Abruptly she laughed. “Melaine nearly drove herself and Dorindha to distraction finding segade blossoms for the wreath. Few grow so close to the Dragonwall.”
“Does that mean something special? Segade blossoms?” That was what he had sent her, the flowers she had never acknowledged.
“That she has a prickly nature and means to keep it.” Another pause, broken by mutters. “Had she used leaves or flowers from sweetroot, it would have meant she claimed a sweet nature. Morning drop would mean she would be submissive, and . . . There are too many to list. It would take me days to teach all the combinations to you, and you do not need to know them. You will not have an Aiel wife. You belong to Elayne.”
He nearly looked at her when she said “submissive.” A word less likely to describe any Aiel woman he could not conceive. Probably means she gives warning before she stabs you.
There had been more of a muffled sound to her voice at the end. Pulling her blouse over her head, he realized. He wished the lamps were out. No, that would have made it worse. But then, he had been through this every single night since Rhuidean, and every single night it was worse. He had to put an end to it. The woman was going to sleep with the Wise Ones, where she belonged, from now on; he would learn what he could from her as he could. He had thought exactly the same thing for fifteen nights now.
Trying to chase the pictures out of his head, he said, “That bit at the end. After the vows were said.”  A hundred of Bael’s kin had rallied to him, and he had fought his way to her. No one had been veiled, of course—it was all part of custom—but blood had still been shed on both sides. “A few minutes before, Melaine was vowing that she loved him, but when he reached her, she fought like a cornered ridgecat.” If Dorindha had not punched her in the shortribs, he did not think Bael would ever have gotten her over his shoulder to carry off. “He still has the limp and the black eye she gave him.”
“Should she have been a weakling?” Aviendha said sleepily. “He had to know the worth of her. She was not a trinket for him to put in his pouch.” She yawned, and he heard her nestling deeper into her blankets.
“What does ‘teaching a man to sing’ mean?” Aiel men did not sing, not once they were old enough to take up a spear, except for battle chants and laments for the dead.
“You are thinking of Mat Cauthon?” She actually giggled. “Sometimes, a man gives up the spear for a Maiden.”
“You’re making that up. I never heard of anything like that.”
“Well, it is not really giving up the spear.” Her voice held a thick muzziness. “Sometimes a man desires a Maiden who will not give up the spear for him, and he arranges to be taken gai’shain by her. He is a fool, of course. No Maiden would look at gai’shain as he hopes. He is worked hard and kept strictly to his place, and the first thing that is done is to make him learn to sing, to entertain the spear-sisters while they eat. ‘She is going to teach him to sing.’ That is what Maidens say when a man makes a fool of himself over one of the spear-sisters.” A very peculiar people.
“Aviendha?” He had said he was not going to ask her this again. Lan said it was Kandori work, a pattern called snowflakes. Probably loot from some raid up north. “Who gave you that necklace?”
“A friend, Rand al’Thor. We came far today, and you will start us early tomorrow. Sleep well and wake, Rand al’Thor.” Only an Aiel would wish you a good night by hoping you did not die in your sleep.
Setting the much smaller if much more intricate ward on his dreams, he channeled the lamps out and tried to sleep. A friend. The Reyn came from the north. But she had had the necklace in Rhuidean. Why did he care?


Using Django Admin Sortable¶
Models¶
To add sorting to a model, your model needs to inherit from Sortable
and have an inner Meta
class that inherits from Sortable.Meta
:
# models.py
from adminsortable.models import Sortable
class MySortableClass(Sortable):
class Meta(Sortable.Meta):
pass
title = models.CharField(max_length=50)
def __unicode__(self):
return self.title
It is also possible to order objects relative to another object that is a ForeignKey.
Note
A small caveat here is that Category
must also either inherit from Sortable
or include an order
property which is a PositiveSmallInteger
field. This is due to the way Django admin instantiates classes.
Sortable
has one field: order
and adds a default ordering value set to order
, ascending.
Adding Sortable to an existing model¶
If you’re adding Sorting to an existing model, it is recommended that you use django-south to create a schema migration to add the “order” field to your model. You will also need to create a data migration in order to add the appropriate values for the order
column.
Example assuming a model named “Category”:
def forwards(self, orm):
for index, category in enumerate(orm.Category.objects.all()):
category.order = index + 1
category.save()
See this link for more information on Data Migrations.
Django Admin¶
To enable sorting in the admin, you need to inherit from SortableAdmin
:
from django.contrib import admin
from myapp.models import MySortableClass
from adminsortable.admin import SortableAdmin
class MySortableAdminClass(SortableAdmin):
"""Any admin options you need go here"""
admin.site.register(MySortableClass, MySortableAdminClass)
To enable sorting on TabularInline models, you need to inherit from SortableTabularInline:
from adminsortable.admin import SortableTabularInline
class MySortableTabularInline(SortableTabularInline):
"""Your inline options go here"""
To enable sorting on StackedInline models, you need to inherit from SortableStackedInline:
from adminsortable.admin import SortableStackedInline
class MySortableStackedInline(SortableStackedInline):
"""Your inline options go here"""
There are also generic equivalents that you can inherit from:
from adminsortable.admin import (SortableGenericTabularInline,
SortableGenericStackedInline)
"""Your generic inline options go here"""
Overriding queryset()
¶
django-admin-sortable supports custom queryset overrides on admin models and inline models in Django admin!
If you’re providing an override of a SortableAdmin
or Sortable
inline model, you don’t need to do anything extra. django-admin-sortable will automatically honor your queryset.
Have a look at the WidgetAdmin
class in the sample project for an example of an admin class with a custom queryset()
override.
Overriding queryset()
for an inline model¶
This is a special case, which requires a few lines of extra code to properly determine the sortability of your model. Example:
# add this import to your admin.py
from adminsortable.utils import get_is_sortable
class ComponentInline(SortableStackedInline):
model = Component
def queryset(self, request):
qs = super(ComponentInline, self).queryset(request).filter(
title__icontains='foo')
# You'll need to add these lines to determine if your model
# is sortable once we hit the change_form() for the parent model.
if get_is_sortable(qs):
self.model.is_sortable = True
else:
self.model.is_sortable = False
return qs
If you override the queryset of an inline, the number of objects present may change, and adminsortable won’t be able to automatically determine if the inline model is sortable from here, which is why we have to set the is_sortable
property of the model in this method.
Sorting subsets of objects¶
It is also possible to sort a subset of objects in your model by adding a sorting_filters
tuple. This works exactly the same as .filter()
on a QuerySet, and is applied after get_queryset()
on the admin class, allowing you to override the queryset as you would normally in admin but apply additional filters for sorting. The text “Change Order of” will appear before each filter in the Change List template, and the filter groups are displayed from left to right in the order listed. If no sorting_filters
are specified, the text “Change Order” will be displayed for the link.
An example of sorting subsets would be a “Board of Directors”. In this use case, you have a list of “People” objects. Some of these people are on the Board of Directors and some not, and you need to sort them independently:
class Person(Sortable):
class Meta(Sortable.Meta):
verbose_name_plural = 'People'
first_name = models.CharField(max_length=50)
last_name = models.CharField(max_length=50)
is_board_member = models.BooleanField('Board Member', default=False)
sorting_filters = (
('Board Members', {'is_board_member': True}),
('Non-Board Members', {'is_board_member': False}),
)
def __unicode__(self):
return '{} {}'.format(self.first_name, self.last_name)
Warning
django-admin-sortable 1.6.6 introduces a backwards-incompatible change for sorting_filters
. Previously this attribute was defined as a dictionary, so you’ll need to change your values over to the new tuple-based format.
Extending custom templates¶
By default, adminsortable’s change form and change list views inherit from Django admin’s standard templates. Sometimes you need to have a custom change form or change list, but also need adminsortable’s CSS and JavaScript for inline models that are sortable for example.
SortableAdmin
has two attributes you can override for this use case:
change_form_template_extends
change_list_template_extends
These attributes have default values of:
change_form_template_extends = 'admin/change_form.html'
change_list_template_extends = 'admin/change_list.html'
If you need to extend the inline change form templates, you’ll need to select the right one, depending on your version of Django. For Django 1.5.x or below, you’ll need to extend one of the following:
templates/adminsortable/edit_inline/stacked-1.5.x.html
templates/adminsortable/edit_inline/tabular-inline-1.5.x.html
For Django >= 1.6.x, extend:
templates/adminsortable/edit_inline/stacked.html
templates/adminsortable/edit_inline/tabular.html
Note
A Special Note About Stacked Inlines... The height of a stacked inline model can dynamically increase, which can make them difficult to sort. If you anticipate the height of a stacked inline is going to be very tall, I would suggest using TabularStackedInline instead.


I am an experienced (6 years) Swift and Objective-C developer based in Berlin, Germany.
I have worked in various domains as software developer including aerospace, entertainment and gaming, healthcare, and FinTech as well as academic work in computation and data science in the past 10 years.
I have worked on some successful mobile apps and am well aware of some key factors needed to get from an idea to App store and maintain its success. In Wooga I worked on Diamond Dash where I experienced with customized UI and social network integration. In My other experience at Feingold/Sharecare a child company of WebMD, I worked on a B2B data intensive health app for user data collection and tailored health content for users.
I am looking for new clients who would like to build their early stage product and MVPs, or simply have a running app and would like to add features or improve. Please take note of my LinkedIn profile and If you think we would be a good match working together I would be glad to hear more about you and your project via my email.
As a computer science graduate I have enthusiasm for programming languages and enjoy attending community gatherings such as swift.berlin.
If you want to take a look into my coding style, I have made one of my early swift projects namely Lafro, open source. Lafro allows you to memorize first 1500 most commonly used German words collected from subtitles of hundreds of real movies.
Objective-C, Swift, CoreData, HealthKit, ResearchKit, Multi Threading, Grand Central Dispatch, UIKit, Test Driven Development, Functional Programming, Reactive Programming, Object-Oriented Paradigm, Rest API, Networking, CI, Python, Ruby, Rails, C++, Git, MySQL, Carthage, Cocoapods, Google Cloud Platform, Pair Programming, Facebook iOS SDK, App Store submission, Auto layout, MVC, MVVC.
The tepmplate for this page is heavily inspired by the page of dear fellow developer Eric Stromlund


Two dead, multiple injured in shooting at California high school; suspect in custody
by Scripps NationalA student gunman opened fire at a southern California high school Thursday morning, leaving two dead and several others injured, officials said.
According to authorities, the male suspect, who is a student at the school, opened fire in the quad at Saugus High School in Santa Clarita around 7:38 a.m. before classes started. Authorities were on scene by 7:40 a.m. after receiving several 911 calls about the shooting.
The suspected gunman shot and killed two students, a 16-year-old female a 14-year-old male, and injured three others before shooting himself in the head, police said. He is currently in custody and being treated at a local hospital, according to Los Angeles County Sheriff Alex Villanueva. Officials say he is in grave condition.
Video obtained at the scene showed the suspect taking a .45-caliber semi-automatic pistol from a backpack before shooting the five other students and then himself, said Capt. Kent Wegener of the Los Angeles County Sheriff's Department.
The other victims include two females, ages 14 and 15, and a 14-year-old male, police said. They were transported to local hospitals with gunshot wounds.
Police are investigating the alleged shooter's home, which is near the school, authorities said at a press conference. Officials also said that Thursday was the student gunman's 16th birthday.
The suspected shooter's mother and girlfriend are being interviewed by detectives. Other student witnesses are also still providing information to police.
Other schools in the district were placed on lockdown amid the shooting.
Police say they still don't have a motive in the shooting.
EDITOR'S NOTE: A previous version of this story said that three people were killed based on a report from ABC News. ABC News is no longer reporting that three students have died, and this story has been updated to reflect ABC's reporting.


We visualize systems!
- strategize real-time initiatives
- repurpose out-of-the-box channels
- harness mission-critical initiatives
- engineer frictionless initiatives
- scale proactive content
- synthesize 24/365 content
- syndicate e-business paradigms
- enhance seamless methodologies
- leverage web-enabled networks
- grow intuitive schemas
- unleash transparent users
- strategize revolutionary architectures


time (4 digits)
time (6 digits)
duration (8 digits / 25 frames)
duration (8 digits / 30 frames)
ADD & SUBSTRACT: select operator.
ENTER: execute operation.
ESC: cancel operation and get previous value back.
ARROW LEFT & RIGHT: select HH, MM, SS or FF.
ARROW UP & DOWN: ± 1 unit.
SHIFT + UP & DOWN: ± 10 units.
BACKSPACE: remove last digit.
SUPR: set current and initial value to 00.
ALT + ENTER: set value to current time (only 4 or 6 digits).
CTRL: show/hide historic values. * indicates values to show.
FUNCTION KEYS: select historic value.


WITNESS LIST Higher Education Committee April 18, 2006-8:00A Interim Charge 3 On: Paredes, Raymund (Tx Higher Education Coordinating Board) Interim Charge 5 On: Garcia, Rey (Texas Assn. of Community Colleges)


Welcome this is the payements section documentation part
for Time being I am adding here direct Links we could add a left sidebar
Authenticate-Redoc
Inventory-Redoc
Library-Redoc


JupyterLab Documentation¶
JupyterLab is the next-generation web-based user interface for Project Jupyter. Try it on Binder. JupyterLab follows the Jupyter Community Guides.
JupyterLab is the next-generation web-based user interface for Project Jupyter. Try it on Binder. JupyterLab follows the Jupyter Community Guides.


This club is focused on all the books about the lean startup methodologies
Juanger proposes to read next: The Complete Sherlock Holmes, by Arthur Conan Doyle
This club is focused on all the books about the lean startup methodologies
Juanger proposes to read next: The Complete Sherlock Holmes, by Arthur Conan Doyle


@* * Copyright 2021 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *@ @this( main_template: MainTemplate, formHelper: FormWithCSRF, backLink: GovukBackLink, govukInsetText: GovukInsetText, button: GovukButton ) @()(implicit request: Request[_], messages: Messages) @main_template( title = messages("yourTaxRelief.2021.title"), beforeContentBlock = Some(backLink(BackLink( href = routes.DisclaimerController.onPageLoad().url, content = Text(messages("site.back")), attributes = Map("id" -> "back-link") ))) ) {
@messages("yourTaxRelief.2021.paragraph.one")
@messages("yourTaxRelief.2021.paragraph.two")
@messages("yourTaxRelief.disclaimer")
@formHelper(action = YourTaxReliefController.onSubmit(), 'autoComplete -> "off") { @button( Button( content = Text(messages("yourTaxRelief.submit.button.text")), preventDoubleClick = true ) ) } }


Class: ActionCable::Server::Configuration
| Inherits: |
Object
|
| Defined in: |
Overview
An instance of this configuration object is available via
ActionCable.server
.config, which allows you to tweak Action Cable
configuration in a Rails config initializer.
Instance Attribute Summary collapse
- #allowed_request_origins
- #cable
- #connection_class
- #disable_request_forgery_protection
- #log_tags
- #logger
- #mount_path
- #url
- #use_faye
- #worker_pool_size
Class Method Summary collapse
-
.new ⇒ Configuration
constructor
a new instance of Configuration
Instance Method Summary collapse
- #client_socket_class
- #event_loop_class
-
#pubsub_adapter
Returns constant of subscription adapter specified in config/cable.yml.
Constructor Details
.new ⇒ Configuration
a new instance of Configuration
11 12 13 14 15 16 17 18
# File 'actioncable/lib/action_cable/server/configuration.rb', line 11
def initialize @log_tags = [] @connection_class = -> { ActionCable::Connection::Base } @worker_pool_size = 4 @disable_request_forgery_protection = false end
Instance Attribute Details
#allowed_request_origins
[ GitHub ]8
# File 'actioncable/lib/action_cable/server/configuration.rb', line 8
attr_accessor :disable_request_forgery_protection, :allowed_request_origins
#cable
[ GitHub ]9
# File 'actioncable/lib/action_cable/server/configuration.rb', line 9
attr_accessor :cable, :url, :mount_path
#connection_class
[ GitHub ]7
# File 'actioncable/lib/action_cable/server/configuration.rb', line 7
attr_accessor :use_faye, :connection_class, :worker_pool_size
#disable_request_forgery_protection
[ GitHub ]8
# File 'actioncable/lib/action_cable/server/configuration.rb', line 8
attr_accessor :disable_request_forgery_protection, :allowed_request_origins
#log_tags
[ GitHub ]6
# File 'actioncable/lib/action_cable/server/configuration.rb', line 6
attr_accessor :logger, :
#logger
[ GitHub ]6
# File 'actioncable/lib/action_cable/server/configuration.rb', line 6
attr_accessor :logger, :
#mount_path
[ GitHub ]9
# File 'actioncable/lib/action_cable/server/configuration.rb', line 9
attr_accessor :cable, :url, :mount_path
#url
[ GitHub ]9
# File 'actioncable/lib/action_cable/server/configuration.rb', line 9
attr_accessor :cable, :url, :mount_path
#use_faye
[ GitHub ]7
# File 'actioncable/lib/action_cable/server/configuration.rb', line 7
attr_accessor :use_faye, :connection_class, :worker_pool_size
#worker_pool_size
[ GitHub ]7
# File 'actioncable/lib/action_cable/server/configuration.rb', line 7
attr_accessor :use_faye, :connection_class, :worker_pool_size
Instance Method Details
#client_socket_class
[ GitHub ]47 48 49 50 51 52 53
# File 'actioncable/lib/action_cable/server/configuration.rb', line 47
def client_socket_class if use_faye ActionCable::Connection::FayeClientSocket else ActionCable::Connection::ClientSocket end end
#event_loop_class
[ GitHub ]39 40 41 42 43 44 45
# File 'actioncable/lib/action_cable/server/configuration.rb', line 39
def event_loop_class if use_faye ActionCable::Connection::FayeEventLoop else ActionCable::Connection::StreamEventLoop end end
#pubsub_adapter
Returns constant of subscription adapter specified in config/cable.yml. If the adapter cannot be found, this will default to the Redis adapter. Also makes sure proper dependencies are required.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
# File 'actioncable/lib/action_cable/server/configuration.rb', line 23
def pubsub_adapter adapter = (cable.fetch("adapter") { "redis" }) path_to_adapter = "action_cable/subscription_adapter/#{adapter}" begin require path_to_adapter rescue Gem::LoadError => e raise Gem::LoadError, "Specified '#{adapter}' for Action Cable pubsub adapter, but the gem is not loaded. Add `gem '#{e.name}'` to your Gemfile (and ensure its version is at the minimum required by Action Cable)." rescue LoadError => e raise LoadError, "Could not load '#{path_to_adapter}'. Make sure that the adapter in config/cable.yml is valid. If you use an adapter other than 'postgresql' or 'redis' add the necessary adapter gem to the Gemfile.", e.backtrace end adapter = adapter.camelize adapter = "PostgreSQL" if adapter == "Postgresql" "ActionCable::SubscriptionAdapter::#{adapter}".constantize end


What's going on in here?
- New Technology File System (NTFS) used on most Windows machines
- Master File Table (MFT) contains most metadata for entire file system
- found in
[filesystem root]/$MFT
, once per filesystem
- rather than rely on layers of technology, work with directly with the MFT
Direct MFT analysis for great good
- MFT is typically small, (although dedicated 12.5% of volume), often under 100MB
- compress well (usually ~90% ratio)
- answer most questions you have
- good for data recovery
- flexible set of analysis tools
Don't rely on a tool until you know what its doing.
- MFT is variably sized file
- contents are fixed sized records: 1024 bytes
- (at least) one record for each file/directory
- MFT reference: index into the MFT array
- references among records form FS tree
MFT Record
- static size: 1024 bytes
- small header
- contiguous attributes, stored contiguously
typedef struct {
/*Ofs*/
/* 0*/ NTFS_RECORD_TYPE magic;
le16 usa_ofs;
le16 usa_count;
/* 8*/ le64 lsn;
/* 16*/ le16 sequence_number;
/* 18*/ le16 link_count;
/* 20*/ le16 attrs_offset;
/* 22*/ MFT_RECORD_FLAGS flags;
/* 24*/ le32 bytes_in_use;
/* 28*/ le32 bytes_allocated;
/* 32*/ leMFT_REF base_mft_record;
/* 40*/ le16 next_attr_instance;
/* 42*/ le16 reserved;
/* 44*/ le32 mft_record_number;
/* sizeof() = 48 bytes */
} __attribute__ ((__packed__)) MFT_RECORD;
Attributes
- 17 standard attributes, extensible by user
- <>16d/0x10 - Standard Information ($SI)
- 48d/0x30 - Filename Information ($FN)
- 128d/0x80 - Data
- 144d/0x90 - Directory Index Root
- 160d/0xA0 - Directory Index Allocation
- common structure:
- DWORD attribute type
- DWORD attribute size
- offset 0x72, attribute specific data
Residency
- all attributes may not fit in static size
- resident attribute: content stored inline
- non-resident attribute: attribute points to external data runs
- examples:
- small file: stored within MFT
- large file: fragmented across disk
- note: things get really complex for huge files
Standard Information
- always resident, one per entry
- contains good stuff:
- MACB timestamps
- hidden? system? other flags
- quota info
- not size
- not filename
Filename Information
- maybe multiple per entry, at least one resident
- types: 8.3, Unicode, POSIX
- contains good stuff
- filename
- MACB timestamps of filename
- parent directory MFT reference
- size sorta
Timestamps
- At least eight (8) timestamps per entry
- Standard Information
- For: file content
- Shown by Explorer, most forensic tools
- Easily modified via
SetFileTime
API
- Filename Information
- For: filenames
- Difficult to stomp, need unusual copy operation (SetMACE) or kernel driver
Tool: MFTView
- boring name, sorry
- interactive inspection of MFT with tree view
- some features:
- strings, hex view
- integrated INDX root parsing
- data extraction & cluster run calculation
- source
Tool: list-mft
- compare with: AnalyzeMFT
- offers better memory usage, speed
- supports:
- standard information
- multiple filename information
- INDX root
- renamed from MFTINDX.py
- source
Tool: get_file_info
- manual MFT record inspection
- timeline all embedded timestamps
- extract strings from allocated/slack space
- source
Tool: fuse-mft
- FUSE driver for MFTs
- mount an MFT and explore using favorite CLI/GUI tools
- read from resident files, all metadata mirrors MFT entries
- check
/path/to/file::meta
for goodies
- source
Record Slack Space
- NTFS doesn't zero out records, overwrites old data
- new record content often smaller, often recoverable artifacts
- inspect final bytes for:
- UTF-16LE strings
- timestamps
- DO THIS! automated tools don't do this for you
Directory Indices
- commonly called INDX buffers
- B+ tree for fast lookup of filenames (usually)
- page size is 4096 bytes (== cluster size)
- key is $FN attribute
- value is MFT reference
- attribute
INDX_ROOT
always resident, usually ~4 entries
- attribute
INDX_ALLOCATION
always non-resident
- use INDXParse.py to recover file metadata
Alternate Data Streams
- programs may store "hidden" data in ADSs
- unnamed $DATA attribute is a file's content
- NTFS supports extra named $DATA attributes
file_basename:ads_name
- examples:
- malware stores configuration in ADS
- browsers mark downloaded files with :Zone.Identifier
- use SysInternals streams.exe
File System Tunneling
- file created within 15 secs of deleted file inherits metadata
- supports programs that copy/replace file during a save operation
- includes, but not limited to, timestamps
- research topic: extract/carve "quarks" from metadata cache
Rebuilding FS Tree
- top down parsing of FS is fast, but requires non-resident directory indices
- bottom up reconstruction is self-contained in MFT
- walk all $FN parent references
- shortcut: cache common subtree roots
Directory Indices are not Unique
- Also indices for
$SII
, $Quota
, $ObjId
- NTFS supports multiple index views over same data(!)
B+ indices support variable sized keys
Ownership is complex to compute
$SI → $SII → SID → Registry/AD → Username
THE END
BY Willi Ballenthin


Eddie's Internet Page
First, the basics.
The Basics
Headings set your default page size
Add your four mochi images from your tutorial here.
Lists
Let's make an unordered list.
- HTML/CSS underpins most user interfaces now
- CSS tries something so hard no other computer language even bothers
- Javascript got popular from having a runtime in every browser in the world
Add an unordered list element
nest each item inside the unordered list in a list tag
List elements can be in any order
And now, one in order.
- Take Care
- Thank me Later
- Passerby
- Over
- Check it out, numbers by default.
Add an ordered list element.
Add your top five music albums in order to the list.
Inline elements
Sometimes you want to draw attention to something in a line of text.
Sometimes you want to strongly emphasize something in the text.
Sometimes you want to do both.
Empty Elements
Soft line breaks can't wrap anything.
Neither can image tags, or hard lines.
Add a hard line under here.
This page probably doesn't look great - we'll learn how to hook it to CSS next week.


--- layout: default title: About --- I'm a graduate student at University of Minnesota, Twin Cities and currently pursuing PhD in computer science (Fall 2015 - Present). My interest lies in field of machine learning including but not limited to deep learning, feature learning, manifold learning and optimization.


| ${value} Energy Cost | 3 6 9 12 15 18 21 24 27 30 |
| ${value}% of Attack damage converted to Health | min: [10.0, 13.0, 16.0, 19.0, 22.0, 25.0, 28.0, 31.0, 34.0, 37.0] |
| +${value}% Damage to Construct & Device & Undead & Ghost | 50 75 100 125 150 175 200 225 250 275 |
| MaxLevel | 6 |
| UltimateLevel | 10 |


Use the following input to query a WFS end point. A successful query will return a list of Feature Types. Toggle through the feature types list to view sample data from the Feature Type. Note: the sample data is limited to 50 items at initial load.
Example WFS URL endpoint: http://demo.boundlessgeo.com/geoserver/wfs
| Name | Type |
|---|---|
| {{column.name}} | {{column.type}} |
| {{column.name}} |
|---|
| {{feature.properties[column.name]}} |
Enter a full WFS url
| Name | Type |
|---|---|
| {{column.name}} | {{column.type}} |
| {{column}} |
|---|
| {{feature.properties[column]}} |


The DBGene sample application uses a classic Prolog application idea to illustrate how the Amzi! Logic Server can be used to provide the services of Prolog in conventional application environments. Given a genealogical database of information about people, the application lets you pose queries about various relationships, such as sister, uncle, grandparent, and ancestor.
This implementation was built with three tools:
To learn more see:
Using DBGene as stand-alone Prolog - How to run just the Prolog program.
Using DBGene with C++ front-end - How to use the sample, and how to put in your own family database.
Application Architecture - Details on the implementation, including annotated source code.
www.amzi.com - Additional demos, articles, freeware, evaluation copies and information about Amzi! Prolog + Logic Server.
We welcome any and all comments about this demo. Contact us at<EMAIL_ADDRESS>Simply open the project in Eclipse and run the project, either interpreted or compiled. The dbgene.pro file can also be run as a single file. Follow the prompts.
Running an Prolog program that uses ODBC requires two things: 1) to load the LSX amzi/bin/aodbc.lsx; and 2) to load the PLM amzi/abin/aodbc.plm. These can be done directly in the source code of the application file:
% Load the LSX that provides the extended predicates % for the ODBC interface. This could also be done % from amzi.cfg, or from a Logic Server host language % program.
:- loadlsx('aodbc.lsx').
% Make user the Prolog portion of the ODBC library, % which provides a Prolog-like interface to the % database, is loaded, and that its predicates are % imported.
:- ensure_loaded(aodbc). :- import(aodbc).
AODBC.LSX could also be loaded using amzi.cfg, but the direct loading method above is easier. See Amzi! runtime documentation for details on using amzi.cfg for loading LSXs.
AODBC.PLM could be linked with the program, which is preferred for running a compiled application. When that is done, the .plm is linked into the application .xpl file.
In the Eclipse project for DBGENE, you can also specify in the project properties that AODBC LSX and PLM are needed, and then, when running or building in Eclipse, the correct files will be loaded. Note that using ensure_loaded/1 means that aodbc.plm will be loaded only if it hasn't already been loaded, say by Eclipse or being linked into a .xpl file.
To run it you need:
DBGene automatically loads the ODBC database, ‘gene’ and the logic base, ‘dbgene’. The middle listbox contains the names of the people in the gene database. The left hand listbox contains a list of the relations the dbgene logic base knows about. If you select a relation and an individual and push the ‘Query’ button, the names of the people who satisfy that relation appear in the right hand box.
If you have the tools to modify the database, which was created using Microsoft Access, you can fill it with individuals from your own family tree. Or you can replace the gene database with an ODBC database of your own choosing.
The logic base contains rules that define relationships based on the database. These are rules that express what it means to be a sibling, uncle, ancestor, etc. At the base of each of these rules are Prolog predicates that map directly to the database, using the Logic Server ODBC extension.
The user interface contains list boxes that present the pertinent information from the logic base. That information is obtained from a C++ class that encapsulates the logic base services.
There are two tables in the database defined as follows.
Person
*pid number (key) *surname text[40] (indexed) *midname....text[40] *name text[40] *gender text[1] m/f *mother number (indexed) (a pid) *father number (indexed) (a pid) dob text[10] (date yyyy-mm-dd) dod text[10] (date yyyy-mm-dd) birthplace text[50] nation text[40] note text[255]Marriage
*husband number (indexed) (a pid) *wife number (indexed) (a pid) married text[10] (date yyyy-mm-dd) divorced text[10] (date yyyy-mm-dd) note text[255]* - Fields that are used in this demonstration. Other fields are ignored.
Individuals with the same middle and last name are the top of the ancestral tree and also have parents indicated by the PersonID 0.
The code consists of these primary sections:
Some of the files in the application are pure boiler plate generated by the application wizard of Visual C++. That code is not included here. The code listed is:
progene.h - the header file for the class that encapsulates the Prolog services, based on the Logic Server C++ wrapper class.
progene.cpp - the implementation file for the ProGene class. Its primary function is to take one of the three list boxes of the application as input and fill it with the appropriate information derived from the Logic Base. API calls that loop through lists and queries are used to generate all the information required for each list box.
dbgendlg.cpp - the main dialog implementation that use the ProGene services. The OnInitDialog function calls ProGene to fill up the relations and individuals list boxes, and the OnQuery function passes the selected name and relation to ProGene, which then fills in the answers list box.
Copyright ©1987-2004 Amzi! inc. All Rights Reserved. Amzi! is a registered trademark and Logic Server and e-Prolog are trademarks of Amzi! inc.


{{set . "title" "Home"}} {{template "header.html" .}} It works!
The /HelloExempted and /Hello123/Exempted routes are exempted from CSRF checking and should be functional even if the CSRF token has been tampered.
Hidden CSRF token (in form) has been tampered and subsequent connections to server on the /Hello route should fail. Clear session to restore.
Access to /HelloExempted and /Hello123/Exempted should not be affected.
For some reason, CSRF token will still have its old value if you display the source code. But it has really been updated, trust me!


{% extends "base.html" %} {% block head %} {% endblock %} {% block title %}{{subscription.source.name}} | {% endblock %} {% block content %}
{{subscription.source.description|default_if_none:""|safe }}
The unique feed for this Recast is:
https://{{ host }}/feed/{{ subscription.key }}/
Copy
Copy and Paste it to your podcast player of choice.
The next episode will drop {{subscription.next_send_date}} (GMT).
There is a link to this page in every episode, so you can change these settings at any time.
| {{e.title}} | {{e.created|date}} | |
| {{ and_more }} more episodes |


|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.biopax.paxtools.controller.Traverser org.biopax.paxtools.controller.AbstractTraverser org.biopax.paxtools.controller.PropertyReasoner
public class PropertyReasoner
A tool to set or infer a particular BioPAX property for an object and all its children. For best (consistent) results, it's recommended to generally start from a "root" element, or at least form the parent-most one, that have given property. However, for some (if not most of) BioPAX properties, except for, e.g., 'dataSource', 'xref', 'organism', 'cellularLocation', - using of this tool does NOT make sense; i.e., one should not normally "infer" (apply to children elements) such properties as 'displayName', 'ph', 'nextStep' (for sure!), etc.. Tip: use with care; write tests for your case!
| Field Summary |
|---|
| Fields inherited from class org.biopax.paxtools.controller.Traverser |
|---|
editorMap, filters, visitor |
| Constructor Summary | |
|---|---|
PropertyReasoner(java.lang.String property,
EditorMap editorMap)
Constructor, which additionally sets a BioPAX property filter for traverse(BioPAXElement, Model) to call
visit(Object, BioPAXElement, Model, PropertyEditor)
for each *object* property, except for 'nextStep'. |
|
PropertyReasoner(java.lang.String propertyName,
EditorMap editorMap,
Filter<PropertyEditor>... propertyFilters)
|
| Method Summary | |
|---|---|
void |
clearProperty(BioPAXElement element)
For the element and its children, where it's desired (in domains ) and possible,
it sets the property values to "unknown". |
java.lang.String |
getPropertyName()
|
void |
inferPropertyValue(BioPAXElement element)
For the element and its children, where it's empty, desired (in domains ) and allowed,
it adds or sets the property from parents's
(if they have any values) |
void |
inferPropertyValue(BioPAXElement element,
java.lang.Object addValue)
For the element and its children, where it's empty, desired (in domains ) and allowed,
it adds or sets the property from parents's
(if the top-most, a parent element that has this property,
does not have any values, then given values will be set, and
children may inherit it) |
boolean |
isGenerateComments()
|
boolean |
isOverride()
|
void |
resetPropertyValue(BioPAXElement element,
java.lang.Object defaultValue)
For the element and its children, where it's desired (in domains ) and allowed (by BioPAX),
it forces the given property values replace existing ones. |
protected void |
run(BioPAXElement element,
java.lang.Object defaultValue)
Basic, universal method (used by others in this class) - updates the property values of a BioPAX element
and its children. |
void |
setDomains(java.lang.Class<? extends BioPAXElement>... domains)
When set (not empty list), only instances of the listed types can be updated by run(BioPAXElement, Object) method, although the
property property value of every element (where apply)
can be still considered for its children (of the specified type). |
void |
setGenerateComments(boolean generateComments)
|
protected void |
setOverride(boolean override)
Sets the override mode. |
void |
setPropertyName(java.lang.String propertyName)
|
void |
traverse(BioPAXElement bpe,
Model model)
This traverse method, first, takes care about the property we are interested in, then proceeds-
as the basic Traverser.traverse(BioPAXElement, Model)
would normally do (i.e., - delivering to the method
visit(Object, BioPAXElement, Model, PropertyEditor)
for all properties without any predefined order). |
protected void |
visit(java.lang.Object range,
BioPAXElement bpe,
Model model,
PropertyEditor editor)
Simply, calls traverse(BioPAXElement, Model)
and goes deeper when the property range/values is a BioPAX object. |
| Methods inherited from class org.biopax.paxtools.controller.AbstractTraverser |
|---|
getProps, getVisited, reset, visit |
| Methods inherited from class org.biopax.paxtools.controller.Traverser |
|---|
filter, getVisitor, setVisitor, traverseElements |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyReasoner(java.lang.String propertyName, EditorMap editorMap, Filter<PropertyEditor>... propertyFilters)
public PropertyReasoner(java.lang.String property, EditorMap editorMap)
traverse(BioPAXElement, Model)
to call
visit(Object, BioPAXElement, Model, PropertyEditor)
for each *object* property, except for 'nextStep'.
property
- editorMap
- | Method Detail |
|---|
public java.lang.String getPropertyName()
public void setPropertyName(java.lang.String propertyName)
property
- the BioPAX property name to usepublic void setDomains(java.lang.Class<? extends BioPAXElement>... domains)
run(BioPAXElement, Object)
method, although the
property
property value of every element (where apply)
can be still considered for its children (of the specified type).
domains
- (optional) the types to modify (others won't be affected)public boolean isOverride()
setOverride(boolean)
,
run(BioPAXElement, Object)
protected void setOverride(boolean override)
override
mode.
Following the A,B,C example in the run(BioPAXElement, Object)
method:
- when override
is true, and property
is
a functional BioPAX property: A, B and C all get the X value
(unless valueStack
was not null, and they are to get the default values).
- when override
is false, and property
is
a functional BioPAX property: A, B - stay unmodified, C acquires Y values (B's).
- when override
is false, and property
is
a multiple cardinality property: - B and C will have both X and Y values.
override
- the override mode to set (see the above explanation)run(BioPAXElement, Object)
public boolean isGenerateComments()
public void setGenerateComments(boolean generateComments)
generateComments
- true/false to generate BioPAX comments on all changespublic void traverse(BioPAXElement bpe, Model model)
property
we are interested in, then proceeds-
as the basic Traverser.traverse(BioPAXElement, Model)
would normally do (i.e., - delivering to the method
visit(Object, BioPAXElement, Model, PropertyEditor)
for all properties without any predefined order).
traverse
in class Traverser
bpe
- BioPAX element to be traversedmodel
- to be traversed, but not necessarily (depends on the Visitor implementation).protected void visit(java.lang.Object range, BioPAXElement bpe, Model model, PropertyEditor editor)
traverse(BioPAXElement, Model)
and goes deeper when the property
range/values is a BioPAX object.
visit
in class AbstractTraverser
range
- is property valuebpe
- is parent BioPAX elementeditor
- is the property editorprotected void run(BioPAXElement element, java.lang.Object defaultValue)
property
values of a BioPAX element
and its children. The root element (first parameter) does not
necessarily have the property though.
For example, if X is the property
value(s) of A, Y - value of B,
and C has no value (unknown); A has a child B, which in turn has child C
(not necessarily direct child); A, B, C are instances of
one of classes listed in domains
(if any). Then
the following results are expected
(note: even if, e.g., B would not pass the domains filter,
the results for A and C will be the same):
- X will be considered a replacement/addition to Y for B,
and both X and Y values - for C. The result also depends
on override
, the default valueStack
and the property's cardinality.
The default value (a Set
of values, object or primitive)
is to be applied when both current and parent's property values are
yet unknown. However, if override
is true, the default
values, if given, will unconditionally replace all existing ones.
Warning: when the defaultValue is null or empty set, and override==true,
this will clear the property
values of all corresponding elements.
element
- defaultValue
- a default values or set of valuessetDomains(Class...)
,
setOverride(boolean)
public void clearProperty(BioPAXElement element)
domains
) and possible,
it sets the property
values to "unknown".
element
- run(BioPAXElement, Object)
public void resetPropertyValue(BioPAXElement element, java.lang.Object defaultValue)
domains
) and allowed (by BioPAX),
it forces the given property
values replace existing ones.
element
- defaultValue
- run(BioPAXElement, Object)
public void inferPropertyValue(BioPAXElement element, java.lang.Object addValue)
domains
) and allowed,
it adds or sets the property
from parents's
(if the top-most, a parent element that has this property,
does not have any values, then given values will be set, and
children may inherit it)
element
- addValue
- run(BioPAXElement, Object)
public void inferPropertyValue(BioPAXElement element)
domains
) and allowed,
it adds or sets the property
from parents's
(if they have any values)
element
- run(BioPAXElement, Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


I hope to remain in the fashion industry and work in the tech/digital sector. I would also like to freelance on the side and develop websites for local brands.
I would like to develop a growth mindset. I want to be able to view failures as opportunities to learn and embrace the process. I believe my current mindset is leaning closer towards a fixed mindset, I often get frustrated and avoid challenges.
My strengths lie in my authenticity and my creativity. I am confident in my design aesthetic and stay true to it.
I am limited by my anxiety and my tendency to allow my emotions to take over. I am easily irritated and highly sensitive, and when I run into problems and challenges I find that I am overcome with negative emotions.
Weekdays 8am - 4pm are dedicated to this programme
After a few honest attempts and thorough research on the internet, I will let go of my pride and reach out to my cohort and facilitators for help and guidance.
From my facilitation team, I expect open and relaxed communication. I want to feel safe and devoid of judgement when I approach the team with technical and emotional help.
It is important for my mental health that I am staying active and social throughout the program. During the foundations program, my weekends and some weekdays after 4pm are times I block-out to go for walks, go to the beach, and socialise with friends.