| re (version 2.2.1) |
index /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/re.py Module Reference |
Support for regular expressions (RE).
This module provides regular expression matching operations similar to
those found in Perl. It supports both 8-bit and Unicode strings; both
the pattern and the strings being processed can contain null bytes and
characters outside the US ASCII range.
Regular expressions can contain both special and ordinary characters.
Most ordinary characters, like "A", "a", or "0", are the simplest
regular expressions; they simply match themselves. You can
concatenate ordinary characters, so last matches the string 'last'.
The special characters are:
"." Matches any character except a newline.
"^" Matches the start of the string.
"$" Matches the end of the string or just before the newline at
the end of the string.
"*" Matches 0 or more (greedy) repetitions of the preceding RE.
Greedy means that it will match as many repetitions as possible.
"+" Matches 1 or more (greedy) repetitions of the preceding RE.
"?" Matches 0 or 1 (greedy) of the preceding RE.
*?,+?,?? Non-greedy versions of the previous three special characters.
{m,n} Matches from m to n repetitions of the preceding RE.
{m,n}? Non-greedy version of the above.
"\\" Either escapes special characters or signals a special sequence.
[] Indicates a set of characters.
A "^" as the first character indicates a complementing set.
"|" A|B, creates an RE that will match either A or B.
(...) Matches the RE inside the parentheses.
The contents can be retrieved or matched later in the string.
(?aiLmsux) Set the A, I, L, M, S, U, or X flag for the RE (see below).
(?:...) Non-grouping version of regular parentheses.
(?P<name>...) The substring matched by the group is accessible by name.
(?P=name) Matches the text matched earlier by the group named name.
(?#...) A comment; ignored.
(?=...) Matches if ... matches next, but doesn't consume the string.
(?!...) Matches if ... doesn't match next.
(?<=...) Matches if preceded by ... (must be fixed length).
(?<!...) Matches if not preceded by ... (must be fixed length).
(?(id/name)yes|no) Matches yes pattern if the group with id/name matched,
the (optional) no pattern otherwise.
The special sequences consist of "\\" and a character from the list
below. If the ordinary character is not on the list, then the
resulting RE will match the second character.
\number Matches the contents of the group of the same number.
\A Matches only at the start of the string.
\Z Matches only at the end of the string.
\b Matches the empty string, but only at the start or end of a word.
\B Matches the empty string, but not at the start or end of a word.
\d Matches any decimal digit; equivalent to the set [0-9] in
bytes patterns or string patterns with the ASCII flag.
In string patterns without the ASCII flag, it will match the whole
range of Unicode digits.
\D Matches any non-digit character; equivalent to [^\d].
\s Matches any whitespace character; equivalent to [ \t\n\r\f\v] in
bytes patterns or string patterns with the ASCII flag.
In string patterns without the ASCII flag, it will match the whole
range of Unicode whitespace characters.
\S Matches any non-whitespace character; equivalent to [^\s].
\w Matches any alphanumeric character; equivalent to [a-zA-Z0-9_]
in bytes patterns or string patterns with the ASCII flag.
In string patterns without the ASCII flag, it will match the
range of Unicode alphanumeric characters (letters plus digits
plus underscore).
With LOCALE, it will match the set [0-9_] plus characters defined
as letters for the current locale.
\W Matches the complement of \w.
\\ Matches a literal backslash.
This module exports the following functions:
match Match a regular expression pattern to the beginning of a string.
fullmatch Match a regular expression pattern to all of a string.
search Search a string for the presence of a pattern.
sub Substitute occurrences of a pattern found in a string.
subn Same as sub, but also return the number of substitutions made.
split Split a string by the occurrences of a pattern.
findall Find all occurrences of a pattern in a string.
finditer Return an iterator yielding a Match object for each match.
compile Compile a pattern into a Pattern object.
purge Clear the regular expression cache.
escape Backslash all non-alphanumerics in a string.
Some of the functions in this module takes flags as optional parameters:
A ASCII For string patterns, make \w, \W, \b, \B, \d, \D
match the corresponding ASCII character categories
(rather than the whole Unicode categories, which is the
default).
For bytes patterns, this flag is the only available
behaviour and needn't be specified.
I IGNORECASE Perform case-insensitive matching.
L LOCALE Make \w, \W, \b, \B, dependent on the current locale.
M MULTILINE "^" matches the beginning of lines (after a newline)
as well as the string.
"$" matches the end of lines (before a newline) as well
as the end of the string.
S DOTALL "." matches any character at all, including the newline.
X VERBOSE Ignore whitespace and comments for nicer looking RE's.
U UNICODE For compatibility only. Ignored for string patterns (it
is the default), and forbidden for bytes patterns.
This module also defines an exception 'error'.
| Modules |
||||||
|
| Classes |
||||||||||||||||||||||||||
|
|
| Functions |
||
|
| Data |
||
| A = <RegexFlag.ASCII: 256> ASCII = <RegexFlag.ASCII: 256> DOTALL = <RegexFlag.DOTALL: 16> I = <RegexFlag.IGNORECASE: 2> IGNORECASE = <RegexFlag.IGNORECASE: 2> L = <RegexFlag.LOCALE: 4> LOCALE = <RegexFlag.LOCALE: 4> M = <RegexFlag.MULTILINE: 8> MULTILINE = <RegexFlag.MULTILINE: 8> S = <RegexFlag.DOTALL: 16> U = <RegexFlag.UNICODE: 32> UNICODE = <RegexFlag.UNICODE: 32> VERBOSE = <RegexFlag.VERBOSE: 64> X = <RegexFlag.VERBOSE: 64> __all__ = ['match', 'fullmatch', 'search', 'sub', 'subn', 'split', 'findall', 'finditer', 'compile', 'purge', 'template', 'escape', 'error', 'Pattern', 'Match', 'A', 'I', 'L', 'M', 'S', ...] |


-
Last Update:
Totals:
Comments:
Share:
Like:
Potential Reach:
Estimated Reach:
Subscribers
Total Friends:
Friends Per Subsribers:
Check-ins:
Comments:
Share:
Like:
Potential Reach:
Estimated Reach:
Pictures:
Comments:
Share:
Like:
Potential Reach:
Estimated Reach:
Evolution over time:
| Interactions | Check-ins | Pictures |


Wes Craven's career as a director is starting to get more interesting - he seems to be finally exploring the mysteries of horror as he did in the classic 1984 film "A Nightmare On Elm Street." His subsequent films didn't match that one's genuine power or mystery as witnessed by the horribly misguided "Wes Craven's New Nightmare" or the jarring horror-comedy "Vampire in Brooklyn." "Scream" is a visually impressive movie and it attempts to revise and transcend the typical slasher flick with mixed results. At the very least, it tries.
"Scream" is set in a typical L.A. suburb where the local high school teenagers worship the torpid slasher flicks of the 80's, including the Jamie Lee Curtis screaming roles from "Halloween" to "Prom Night." They know all the formulas and cliches by heart, and they worship them with unmitigated glee. Neve Campbell, from TV's "Party of Five," stars as Sidney, a virginal teenager who is receiving strange calls from a stalker; he keeps quizzing her on slasher movies. Sidney's mother was killed by a stalker, and she is torn (pardon the pun) by how he mentions intimate details of her. Enter Sidney's pals, which include her anxious boyfriend, Billy (Skeet Ulrich), and her best friend (Rose McGowan from "The Doom Generation"). I will omit the other cast members for now because part of the fun of this thriller is that we don't know who the killer is, it could be any of Sidney's clique of friends.
Strange murders start occurring at the high school and Billy is a prime suspect. Feeling that her life is in danger, Sidney attends an all-night slasher video party with her pals.  No medals for anyone who guesses that the killer may be there. And if these teenagers are so clever, why do they make the same mistakes as the cartoonish teens in those movies?
"Scream" is a smart, very entertaining satiric thriller in the first three-quarters. It is only until the last quarter that the movie opts to be as bloodily nauseating and predictably stupid as any of the slasher flicks it pretends to mock. Instead of throwing us surprising thrills and chills, it goes for nonstop gore and an avalanche of stabbings and pointless cruelty - blood filling up the screen is not scary. Craven takes the easy route rather than enthralling us in our seats with unimaginable horror as he does in roughly the first hour and ten minutes.
The pleasures in "Scream," though, are many. The electrifyingly intense and scary opening sequence with Drew Barrymore is one of the most thrilling sequences in any thriller I've ever seen. Another plus is the killer who wears a black cape, and a mask that resembles Edvard Munch's painting, The Scream, thus making the killer a monstrous figure of pain. The performances by the actors set the right tone for this material. Neve Campbell makes Sidney into an effective heroine; a girl tortured by the painful memory of her mother's death, and with the sad notion that her boyfriend could be the killer. Rose McGowan is beguiling to watch with her huge eyes and Betty Boop lips as Sidney's no-nonsense pal, and there's the brooding Skeet Ulrich who resembles Johnny Depp from the original Elm Street. There's also a pointed jab at the media with a "To Die For" news reporter (Courteney Cox) who wants to find this stalker by any means necessary. There are also numerous in-jokes and cameos, including Wes Craven himself as a janitor named Fred and, if you're quick, Linda Blair as a reporter.
"Scream" is scary, effective and sometimes haunting, and balances elements of comedy, horror and satire with ease. But when the typical stalker-in-the-house routine ending comes in making Sidney less stronger than she was previously, it's all blood and guts with no imagination or real sense of terror. Craven's idea was to make a film that would transcend all the cliches of the slasher film genre, invent some new ones, and bring a creepy sense of menace to the proceedings. By the end, it's Craven wallowing in the bloody thrills rather than poking fun at them, and reinventing them.
For more reviews, check out JERRY AT THE MOVIES at http://buffs.moviething.com/buffs/faust/
E-mail me with your comments and/or arguments at<EMAIL_ADDRESS>or<EMAIL_ADDRESS>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


Loading file......
Play/Pause
Title
Artist
Save
Prev Chord
Next Chord
Snap Chord Left
Snap Chord Right
Delete Chord
Ab
A
Bb
B
C
Db
D
Eb
E
F
Gb
G
major
minor
7
maj7
min7
dim
aug
sus4
add2
Apply Chord
F
G
Gb
A
Ab
B
Bb
C
D
Db
E
Eb


Reports say Clubs hover around disgruntled Dortmund star Sancho
by FSA EditorReports suggest England winger Jadon Sancho could be on his way out of Borussia Dortmund, where he feels “humiliated and scapegoated”.
The battle for Jadon Sancho’s signature looks set to begin.
Four high-profile clubs in England and Spain are reportedly monitoring the teenager, one of Europe’s brightest prospects.
Aggrieved with recent events at Borussia Dortmund, Sancho could now seek a new home for next season.
TOP STORY – CLUBS QUEUE UP FOR ‘SCAPEGOAT’ SANCHO
Barcelona, Liverpool, Manchester United and Real Madrid are the “leading quartet” of suitors for Borussia Dortmund star Jadon Sancho, according to The Athletic.
Former club Manchester City have also asked to be “kept informed” following a string of events that have upset the 19-year-old England winger, notably his first-half substitution in the 4-0 Klassiker loss to Bayern Munich earlier this month.
Sancho’s representatives are said to have deemed that move “disgraceful”, paving the way for his Dortmund departure at the end of the Bundesliga season.
ROUND-UP
– Paul Pogba’s prolonged absence for Manchester United is part of a concerted effort to force through a January transfer to LaLiga giants Madrid, claims Spanish journalist Paco Gonzalez. Pogba, not sighted since September, is recovering from an ankle injury.
– According to Calciomercato, Zlatan Ibrahimovic is weighing up a move to AC Milan. The 38-year-old is available on a free transfer after leaving MLS outfit LA Galaxy. Ibrahimovic has been linked to Bologna, Tottenham, Napoli and Perth Glory.
– West Ham are considering replacing Manuel Pellegrini with Chris Wilder, reports The Mirror. The Hammers are languishing 16th in the Premier League after 13 games, while Wilder’s Sheffield United are riding high in sixth. Chris Hughton, David Moyes and Rafael Benitez are reportedly among the other candidates should West Ham lose patience with Pellegrini.
– Wolves defender Owen Otasowie is wanted by Ligue 1 champions Paris Saint-Germain and Bundesliga team Schalke, reports The Sun. 18-year-old centre-back has also been watched by Liverpool and Arsenal.
– The Mirror reports Aston Villa are leading the race to sign Rhian Brewster on loan in January. Brewster, 19, has been unable to break his way into Liverpool’s Premier League plans this term. The report states Villa face competition from Crystal Palace, Leeds United and Swansea City.


aiAnimation Struct Reference
#include <anim.h>
List of all members.
Detailed Description
An animation consists of key-frame data for a number of nodes. For each node affected by the animation a separate series of data is given.
Definition at line 411 of file anim.h.
Member Data Documentation
The name of the animation. If the modeling package this data was exported from does support only a single animation channel, this name is usually empty (length is zero).
Definition at line 415 of file anim.h.
Duration of the animation in ticks.
Definition at line 418 of file anim.h.
Ticks per second. 0 if not specified in the imported file
Definition at line 421 of file anim.h.
The number of bone animation channels. Each channel affects a single node.
Definition at line 425 of file anim.h.
The node animation channels. Each channel affects a single node. The array is mNumChannels in size.
Definition at line 429 of file anim.h.
The number of mesh animation channels. Each channel affects a single mesh and defines vertex-based animation.
Definition at line 434 of file anim.h.
The mesh animation channels. Each channel affects a single mesh. The array is mNumMeshChannels in size.
Definition at line 438 of file anim.h.
The number of mesh animation channels. Each channel affects a single mesh and defines morphing animation.
Definition at line 442 of file anim.h.
The morph mesh animation channels. Each channel affects a single mesh. The array is mNumMorphMeshChannels in size.
Definition at line 446 of file anim.h.
The documentation for this struct was generated from the following file:
- C:/Users/New/Documents/Games_Technology/Year4_Semester1/ICT397/~My Work/Assignment2/ICT397Carre/CarreGameEngine/Dependencies/assimp-4.1.0/include/assimp/anim.h


THE BASKETBALL DIARIES A film review by Raymond Johnston Copyright 1995 Raymond Johnston
Directed by Scott Kalvert Based on the memoir by Jim Carroll Starring Leonardo DiCaprio, Bruno Kirby, Lorraine Bracco, Mark Wahlberg
The motion picture camera just loves some people. Leonardo DiCaprio is one such person. Put him in a scene, any scene, and he becomes the center of attention. You have to go back to James Dean or the young Robert DeNiro to find somebody that had such an easy rappore with the big screen. In his first top-billed role, Leonardo DiCaprio has come to the forefront of young American actors.
Mark Wahlberg, the artist formerly known as Marky Mark, proves himself to be a good character actor. He catches a gritty, streetwise flavor that lends a sorely needed sense of authenticity to THE BASKETBALL DIARIES. Wahlberg might have found his niche is punky tough guy roles. No doubt, he will be artfully reprising this kind of character for years to come.
Juliette Lewis is a more versatile actor. She risks falling into typecasting by doing another version of the white trash character that she has done in her last several films. These performances, along with fine work by Bruno Kirby and Ernie Hudson are a few of the reasons to see THE BASKETBALL DIARIES. Unfortunately, the reasons not to see the film are a much longer and more convincing list.
Jim Carroll's classic novel of coming of age in the 1960s is transposed into the 1990s. All of the flavor of Carroll's novel gets lost among a series of anachronisms. One character finds a beat-up revolver, and this makes him a tough guy on the street. Much more powerful weapons have been common for years among ever younger criminals. The teenagers get high on furniture polish, when in the 1990s real drugs are readily available everywhere in New York. Current urban problems like crack and AIDS are not mentioned in the film. A major scene takes place in a subway bathroom, when subway bathrooms have been shuttered for over a decade. Even the whole sense of the young white Catholic schoolboys going around New York in his school uniform has vanished through waves of white flight to the suburbs. If the story needed to be updated, a better job needed to be done. It seems as if the film makers were simply too cheap to paint over the graffiti and rent the old cars for the street scenes. Relocating the story from the middle class north of Manhattan to the seedy Lower East Side also didn't add anything more to the story except a bunch of cliches.
Those complaints aside, some of which perhaps would only annoy native New Yorkers, the film stumbles badly in its overall structure. Jim Carroll's book is a series of loosely related incidents. The film makers change it into a linear anti-drug story that is not really faithful to the books irreverent and wistful tone. Beautifully funny scenes of teenagers causing trouble become turgid episodes in REEFER MADNESS like anti-heroin cautionary tale. A judgmental Reagan era just-say-no feeling has been injected into the aimless and amoral goings on of Carroll's life. Anybody that saw the German film CRISTIANE F. has seen this all before.
Director Scott Kalvert's experience as a rock video director is evident in a few disjointed scenes. Narrative elements become filler between psychedelic montages set to alternative rock music. A scene of a burning basketball hoop is a great image, but it seems forced into the story just to create a good rock video effect. Some of the music comes from Jim Carroll's own band. These images will probably wind up in rock videos that will be better than the film. The sound track album is by far better than the film too.
A better attempt at adapting an unadaptable novel about street life in New York was done with LAST EXIT TO BROOKLYN featuring Jennifer Jason Leigh. Martin Scorcese's MEAN STREETS also creates a much more coherent and authentic urban vision, using much of the same cut-to-the-beat technique. For an anti-drug film that manages to be good cinema, Otto Preminger's THE MAN WITH THE GOLDEN ARM is still tops in the genre.
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


Hosted by Aaron Greenlee / @aarongreenlee
@aarongreenlee
Thank you to the organizers and sponsors!
Amazon Web Services (abbreviated AWS) is a collection of remote computing services (also called web services) that together make up a cloud computing platform, offered over the Internet by Amazon.com. The most central and well-known of these services are Amazon EC2 and Amazon S3. The service is advertised as providing a large computing capacity (potentially many servers) much faster and cheaper than building a physical server farm.
- Wikipedia
Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides resizable compute capacity in the cloud. It is designed to make web-scale computing easier for developers.- AWS
Simple Storage Service
Amazon S3 is storage for the Internet. It’s a simple storage service that offers software developers a highly-scalable, reliable, and low-latency data storage infrastructure at very low costs.- AWS
Your own "Content Delivery Network (CDN)"
Just use a file path like so:
<EMAIL_ADDRESS>Simple database
Amazon SimpleDB is a highly available, flexible, and scalable non-relational data store that offloads the work of database administration. It provides the core database functions of data indexing and querying in the cloud.- AWS
High-performance NoSQL
Amazon DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability. Amazon DynamoDB enables customers to offload the administrative burdens of operating and scaling distributed databases to AWS, so they don’t have to worry about hardware provisioning, setup and configuration, replication, software patching, or cluster scaling.- AWS
Relational Database Service
Amazon Relational Database Service (Amazon RDS) is a web service that makes it easy to set up, operate, and scale a relational database in the cloud. It provides cost-efficient and resizable capacity, while managing time-consuming database administration tasks, freeing you up to focus on your applications and business.- AWS
Distributed Cache
Amazon ElastiCache is a web service that makes it easy to deploy, operate, and scale an in-memory cache in the cloud.- AWS
Simple Queue Service
Amazon Simple Queue Service (Amazon SQS) offers a reliable, highly scalable hosted queue for storing messages as they travel between computers. By using Amazon SQS, developers can simply move data between distributed application components performing different tasks, without losing messages or requiring each component to be always available.- AWS
Platform as a service
AWS Elastic Beanstalk makes it even easier for developers to quickly deploy and manage applications in the AWS cloud. Developers simply upload their application, and Elastic Beanstalk automatically handles the deployment details of capacity provisioning, load balancing, auto-scaling, and application health monitoring.- AWS
Let's deploy a new build with Git, Ant and Jenkins!
This side held an iFrame for our Jenkins instance
github.com/wreckingball/elastic-beanstalk-deployment
-jar elastic-beanstalk-deployment.jar ${dir.package}/${versionTag}.war ${versionTag} ${aws.s3bucketName} ${aws.elasticBeanstalkApplicationName} ${aws.ElasitcBeanstalkEnvironmentName} ${aws.accessKey} ${aws.secretKey}
Q&A


--- title: Multiple graphs with ggplot author: '' date: '2018-06-23' slug: learning-ggplot categories: ["R coding"] tags: ["R coding"] header: caption: '' image: '' ---
So, I am learning how to use ggplot. Here is one my first attempts and at the same time I discover that you need to use the gridExtra package to layout multiople ggplots. I am using one of my favourite datasets: the Anscombe quartet
library(ggplot2)
library(grid)
library(gridExtra)
data(anscombe)
The quartet comprises four datasets that have nearly identical simple descriptive statistics, yet appear very different when graphed.
p1<-ggplot(anscombe,aes(x1,y1))+geom_point()+geom_smooth(method="lm",se=FALSE,color="red")+xlim(3,16)
p2<-ggplot(anscombe,aes(x2,y2))+geom_point()+geom_smooth(method="lm",se=FALSE,color="red")+xlim(3,16)
p3<-ggplot(anscombe,aes(x3,y3))+geom_point()+geom_smooth(method="lm",se=FALSE,color="red")+xlim(3,16)
p4<-ggplot(anscombe,aes(x4,y4))+geom_point()+geom_smooth(method="lm",se=FALSE,color="red")+xlim(7,20)
grid.arrange(p1,p2,p3,p4,ncol=2)
We can see that the fitted lines are actually almost identical since the summary statistics are almost identical as well.
coefficients(lm(y1~x1,anscombe))
## (Intercept) x1
## 3.0000909 0.5000909
coefficients(lm(y2~x2,anscombe))
## (Intercept) x2
## 3.000909 0.500000
coefficients(lm(y3~x3,anscombe))
## (Intercept) x3
## 3.0024545 0.4997273
coefficients(lm(y4~x4,anscombe))
## (Intercept) x4
## 3.0017273 0.4999091


Flash configuration
Trigger Type
Flash Settings
Trigger Type
Light
Sound
Initial Delay (ms)
Flash Repeats
Repeat Delay


Disclaimer
Disclaimer
The information on this website is for educational purposes only, "Author of this work is reffered as Hacking Kit which will be delivered at your home" and is not intended as Illegal advice. The author of this work will not be held accountable for any use or misuse of the information contained inside the kit. Because there is always some risk involved, the author is not responsible for any effects or consequences from the use of any suggestions, recommendations, or procedures described herein.
Privacy Policy
We receive and store certain types of information only if you interact with us. And, unlike many Websites, we do not use "cookies," so we do not obtain information when your Web browser accesses Life Force Books or advertisements and other content served by or on our behalf on other Web sites., porttitor at sem.


Crossweb is a web framework internal use in Crossproject web team to develop web applications.
It includes filter, handler and guard for basic authentication with simple configuration file.
Crossweb framework consist of 3 parts, Router, Filter and Guard.
Router is internal framework component that control request flow. User can't change anything in this layer.
Filter is stack of action that parse request and reject or allow and pass it to next filter or handler. It may add some information to request which may use in next filter or handler.
Handler is application or resource logic that process request and render real result to user.
Crossweb framework configuration is JSON format file that user can add any tag or attribute and parse it by themselves when create own filter or handler.
{ "name": "crossweb", "hostname": "localhost", "address": "<IP_ADDRESS>", "port": 8080, "pid": "project.pid", "initial": [ "guard" ], "filters": [ "FormFilter", "GuardFilter" ], "routes": { "post:/authenticate": { "handler": "GuardHandler.authenticate" } }, "log": { "appenders": [ { "type": "console" } ], "levels": { "console": "info", "crossweb": "info", "danger": "error" } } }
After install framework by command npm install -g git+http://<IP_ADDRESS>/git/crossweb/framework.git
user can use command cw
to generate project structure. It will create folder which have file like
below structure.
Project +- client : Client static file live here +- css : CSS Stylesheet +- images : Images +- scripts : Javascript live here +- index.html : Main index file. +- server : Server handler and filter live here. +- filters : Filter object should live here. +- handlers : Handler object should live here. +- modules : Other class or object should live here. +- app.js : Real application live here. +- config-default.json : Default configuration file which user can copy to new config.json file and use it in production env.
Handler is a resource or logic handler. It consists of two main parts, setup and real logic handler.
setup (optional) is magic method have only one argument (configPath) and don't need to return anything. It use for read configuration from configuration file path that pass as method argument and setup handler itself.
handler or other method is real logic handler. It must have two arguments. (request,resource) Handler will invoke after client request on path that set in configuration file.
All methods in object or class must exports with it name and use that name in configuration file. Method name in object may not match with export name but export name must match in configuration file.
var fs = require('fs'); var _prefix = ''; var TimeHandler = { setup: function (configPath, callback) { callback = callback || function () {}; var config = JSON.parse(fs.readFileSync(configPath, 'utf8')); _prefix = config.time.prefix; callback(); }, 'time': function (request, response) { response.writeHead(200, {}); var render = _prefix ? _prefix + new Date().getTime() : 'Time: ' + new Date().getTime(); response.end(render); } }; exports.setup = TimeHandler.setup; exports.time = TimeHandler.time;
Handler configuration live in the same place as application configuration. To receive request, add object
{"handler":"Class.method"}
in routes in format
"method:/path/to/resource"
If want to add class configuration e.g. time prefix, just add another node to configuration file e.g.
"time":{"prefix":"Current:"}
{
"name": "crossweb",
"hostname": "localhost",
"address": "<IP_ADDRESS>",
"port": 8080,
"pid": "project.pid",
"filters": [ "FormFilter", "GuardFilter" ],
"routes": {
"get:/time": { "handler": "TimeHandler.time" }
},
"time": {
"prefix": "Current: "
},
"log": {
"appenders": [ { "type": "console" } ],
"levels": {
"console": "info",
"crossweb": "info",
"danger": "error"
}
}
}
Filter is an object use to filter request and reject when it doesn't match criteria or extract some information from request or filter information that pass before to append new information in request. Filter must have 2 methods, check and fail and may have setup method for read configuration file.
exports.variable name must be the same as file name.
Filter class must have two methods, check and fail to tell framework is it should pass request to next filter or handler and if it fail what is should do. Other optional method is setup that is the same as Handler which have one argument configPath.
var fs = require('fs'); var _version = null; var VersionAppenderFilter = { name: 'Version appender filter', setup: function (configPath, callback) { callback = callback || function () {}; var config = JSON.parse(fs.readFileSync(configPath, 'utf8')); _version = config.version; callback(); }, check: function (request, callback) { if (_version) { request.version = version; callback(null, true); } else { callback(null, false); } }, fail: function (request, response) { response.writeHead(503, {}); response.end('No version number provide.); } }; exports.VersionAppenderFilter = VersionAppenderFilter;
Filter configuration live in the same place as application configuration same as handler. It must add to filters which name the same as filter file. And framework will process filter the same order as list in filters attribute.
["Filter1","Filter2"]
From above configuration, it will use filter1 check and process to filter2 if filter1 is pass check.
{
"name": "crossweb",
"hostname": "localhost",
"address": "<IP_ADDRESS>",
"port": 8080,
"pid": "project.pid",
"filters": [ "VersionAppenderFilter" ],
"routes": {
"get:/time": { "handler": "TimeHandler.time" }
},
"time": {
"prefix": "Current: "
},
"log": {
"appenders": [ { "type": "console" } ],
"levels": {
"console": "info",
"crossweb": "info",
"danger": "error"
}
}
}
Form is filter that parse request and extract information from query or data user send
with form
tag in client side. It create a map name:value
and append it to request in body attribute.
To use this feature, put "FormFilter"
in "filters"
attribute
in configuration file. It must place it in first item.
<form action="/resource?id=1" method="post" enctype="multipart/form-data">
 Username <input type="text" name="username">

 File <input type="file" name="file">

 <input type="submit" value="Send">
 <form>
This form after transfer to server will parse and transform to map put it to request by FormFilter which you can use in Handler like below
var SampleHandler = { ... doSomething: function (request, response) { ... var username = request.body.username; var file = request.body.file; ... } ... }
Guard is security module live in framework, user can use by add it to filter and handler. It have 3 main parts, Authentication, Authorization and Encryption.
User can authenticate with GuardHandler
method authenticate
.
It will generate session that will encrypt and live on client cookie. Default authenticator
is in-memory authenticator which read user information list from configuration file.
Internal authenticator can set users by add below configurations.
"guard": { "users": { "username": { "password": "password", "roles": [ "role1" ] } } }
User can use external authenticator by provide it module name in authenticator
attribute.
"guard": { "authenticator": "LDAPAuthenticator" }
Framework check authorization base on path in GuardFilter
. It read routes
configuration and check allow attribute in path object. If it have allow attribute,
only user that have role in it list can get that resource. However, resource that doesn't
have that attribute mean everyone include anonymous can access it.
"routes": {
"get:/resource": {
"handler": "Module.method",
"allow": [ "role1","role2" ]
}
}
Because user session is keep in cookie and send to client side. So, framework will encrypt it before set it in cookie. User can set encrypt method in configuration file for example aes256. Key and IV can generate from openssl command.
$openssl enc -aes-128-cbc -k password -nosalt -P
After got key, set it to configuration like below example.
"guard": { "encryption": { "method": "aes128", "key": "5F4DCC3B5AA765D61D8327...", "iv": "2B95990A9151374ABD8FF8C..." } }
Combine those three part to get guard configuration
"filters": [ "GuardFilter" ], "routes": { "post:/authenticate": { "handler": "GuardHandler.authenticate", "allow": [ "role1" ]} }, "guard": { "session": "sessionid", "locations": { "index": "/index" }, "users": { "admin@sample": { "password": "samplepassword", "roles": [ "role1" ] } }, "encryption": { "method": "aes256", "key": "5F4DCC3B5AA765D61D8327DEB882CF992B95990A9151374ABD8FF8C5A7A0FE08", "iv": "B7B4372CDFBCB3D16A2631B59B509E94" } }
Crossweb framework use log4js module. It can use in application logic by
require log4js
in application and use it by getLogger from
require object.
Log configuration is the same as log4js configuration format but live in JSON format in the same application configuration file.
"log": { "appenders": [ { "category": "danger", "type": "logLevelFilter", "level": "error", "appender": { "type": "file", "filenamae": "crossweb-error.log", "maxLogSize": 10485760, "backups": 5, "pollInterval": 15 }}, { "type": "file", "filename": "crossweb.log", "maxLogSize": 10485760, "backups": 5, "pollInterval": 15 }, { "type": "console" } ], "levels": { "console": "info", "crossweb": "info", "danger": "error" }
This form will authenticate to server side and redirect back here. You can see source and use it to embed in login form.


RADIUS RFCs and Attribute definitions
The list of all standard RADIUS attributes
The RFCs have a number of issues and ambiguities. Some are resolved in the Issues and Fixes document. Instructions for creating new RADIUS standards are found in the Design Guidelines document.
Unfortunately, the preceding documents do not address all known issues with RADIUS. The RFCs are still ambiguous in places. There are many things which are neither forbidden nor explicitly allowed. We caution implementors to not assume that something is allowed, just because it is not strictly forbidden. RADIUS has a 20 year history of deployments. Any "new" behavior you design is likely to be incompatible with existing practices. We recommend following the specifications closely.
The open issues page documents the problems we are aware of, and our suggested fixes.
RFCs
| RFC 2548 (attributes) | Microsoft Vendor-specific RADIUS Attributes |
| RFC 2809 | Implementation of L2TP Compulsory Tunneling via RADIUS |
| RFC 2865 (attributes) | Remote Authentication Dial In User Service (RADIUS) |
| RFC 2866 (attributes) | RADIUS Accounting |
| RFC 2867 (attributes) | RADIUS Accounting Modifications for Tunnel Protocol Support |
| RFC 2868 (attributes) | RADIUS Attributes for Tunnel Protocol Support |
| RFC 2869 (attributes) | RADIUS Extensions |
| RFC 2882 | Network Access Servers Requirements: Extended RADIUS Practices |
| RFC 3162 (attributes) | RADIUS and IPv6 |
| RFC 3576 (attributes) | Dynamic Authorization Extensions to Remote Authentication Dial In User Service (RADIUS) |
| RFC 3579 (attributes) | RADIUS (Remote Authentication Dial In User Service) Support For Extensible Authentication Protocol (EAP) |
| RFC 3580 (attributes) | IEEE 802.1X Remote Authentication Dial In User Service (RADIUS) Usage Guidelines |
| RFC 4675 | RADIUS Attributes for Virtual LAN and Priority Support |
| RFC 4679 | DSL Forum Vendor-Specific RADIUS Attributes |
| RFC 4590 (attributes) | RADIUS Extension for Digest Authentication |
| RFC 4818 (attributes) | RADIUS Delegated-IPv6-Prefix Attribute |
| RFC 4849 (attributes) | RADIUS Filter Rule Attribute |
| RFC 5080 | Common Remote Authentication Dial In User Service (RADIUS) Implementation Issues and Suggested Fixes |
| RFC 5997 | Use of Status-Server Packets in the Remote Authentication Dial In User Service (RADIUS) Protocol |
Other files (old RFCs, etc)
| leap.txt | Cisco LEAP protocol description |
| rfc1157.txt | A Simple Network Management Protocol (SNMP) |
| rfc1227.txt | SNMP MUX Protocol and MIB |
| rfc1448.txt | Protocol Operations for version 2 of the Simple Network Management Protocol (SNMPv2) |
| rfc1901.txt | Introduction to Community-based SNMPv2 |
| rfc1905.txt | Protocol Operations for Version 2 of the Simple Network Management Protocol (SNMPv2) |
| rfc2058.txt | Remote Authentication Dial In User Service (RADIUS) |
| rfc2059.txt | RADIUS Accounting |
| rfc2138.txt (gz) | Remote Authentication Dial In User Service (RADIUS) |
| rfc2139.txt (gz) | RADIUS Accounting |
| rfc2243.txt (gz) | OTP Extended Responses |
| rfc2289.txt (gz) | A One-Time Password System |
| rfc2433.txt | Microsoft PPP CHAP Extensions |
| rfc2607.txt | Proxy Chaining and Policy Implementation in Roaming |
| rfc2618.txt (gz) | RADIUS Authentication Client MIB |
| rfc2619.txt (gz) | RADIUS Authentication Server MIB |
| rfc2620.txt (gz) | RADIUS Accounting Client MIB |
| rfc2621.txt (gz) | RADIUS Accounting Server MIB |
| rfc2716.txt | PPP EAP TLS Authentication Protocol |
| rfc2759.txt | Microsoft PPP CHAP Extensions, Version 2 |
| rfc2924.txt | Accounting Attributes and Record Formats |
| rfc3575.txt | IANA Considerations for RADIUS (Remote Authentication Dial In User Service) |
| rfc3748.txt | Extensible Authentication Protocol (EAP) |


Kitt's availability. Each day is divided into Morning, Afternoon, and Evening, with time blocked as 'busy' (red) for planned events and 'moveable' (yellow) for things that can (with notice) be offset (such as work and regular events).
The current week is highlighted in blue.


Why the Robin's Breast is Red
A WELSH boy was throwing stones one day at a robin redbreast. "My poor boy," said his grandmother to him, "have you not heard of the fiery pit and how this merciful bird takes cool dew on his little bill and lets it fall on sinful souls in torment? The marks of the fire that scorches him as he drops the water are to be seen on his red breast. Never throw a stone at a robin."


(2021-10-27 02:59:51 UTC)
# Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils conf-gmp 3 Virtual package relying on a GMP lib system installation coq dev Formal proof management system dune 2.9.1 Fast, portable, and opinionated build system ocaml 4.12.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.12.0 Official release 4.12.0 ocaml-config 2 OCaml Switch Configuration ocaml-options-vanilla 1 Ensure that OCaml is compiled with no special options enabled ocamlfind 1.9.1 A library manager for OCaml zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers # opam file: opam-version: "2.0" authors: [ "Yves Bertot" ] maintainer<EMAIL_ADDRESS>homepage: "https://github.com/coq-community/semantics" dev-repo: "git+https://github.com/coq-community/semantics.git" bug-reports: "https://github.com/coq-community/semantics/issues" license: "MIT" synopsis: "A survey of semantics styles, from natural semantics through structural operational, axiomatic, and denotational semantics, to abstract interpretation" description: """ This is a survey of programming language semantics styles for a miniature example of a programming language, with their encoding in Coq, the proofs of equivalence of different styles, and the proof of soundess of tools obtained from axiomatic semantics or abstract interpretation. The tools can be run inside Coq, thus making them available for proof by reflection, and the code can also be extracted and connected to a yacc-based parser, thanks to the use of a functor parameterized by a module type of strings. A hand-written parser is also provided in Coq, but there are no proofs associated. """ build: [make "-j%{jobs}%" ] install: [make "install"] depends: [ "coq" {>= "8.10"} "ocamlbuild" {build} ] tags: [ "category:Computer Science/Semantics and Compilation/Semantics" "keyword:natural semantics" "keyword:denotational semantics" "keyword:axiomatic semantics" "keyword:Hoare logic" "keyword:Dijkstra weakest pre-condition calculus" "keyword:abstract interpretation" "keyword:intervals" "logpath:Semantics" ] url { src: "https://github.com/coq-community/semantics/archive/v8.11.1.tar.gz" checksum: [ "md5=ed6ac2b800fd6277e9bf8a49ea9f4468" "sha512=02c6c8f8049e23fd36ec754f3df26d52f2b8f9e7f9d6b86841970dbad164a4283fdb33f8711aea17cafc73c4159dfdcb3005cf926b5bb1d2ebd847bddcbecdf5" ] }
true
Dry install with the current Coq version:
opam install -y --show-action coq-semantics.8.11.1 coq.dev
Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:
true
opam list; echo; ulimit -Sv 4000000; timeout 4h opam install -y --deps-only coq-semantics.8.11.1 coq.dev
opam list; echo; ulimit -Sv 16000000; timeout 4h opam install -y -v coq-semantics.8.11.1 coq.dev
# Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils conf-gmp 3 Virtual package relying on a GMP lib system installation coq dev Formal proof management system dune 2.9.1 Fast, portable, and opinionated build system ocaml 4.12.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.12.0 Official release 4.12.0 ocaml-config 2 OCaml Switch Configuration ocaml-options-vanilla 1 Ensure that OCaml is compiled with no special options enabled ocamlbuild 0.14.0 OCamlbuild is a build system with builtin rules to easily build most OCaml projects. ocamlfind 1.9.1 A library manager for OCaml zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers [NOTE] Package coq is already installed (current version is dev). The following actions will be performed: - install coq-semantics 8.11.1 <><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><> Processing 1/1: [coq-semantics.8.11.1: http] [coq-semantics.8.11.1] downloaded from https://github.com/coq-community/semantics/archive/v8.11.1.tar.gz Processing 1/1: <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> Processing 1/2: [coq-semantics: make] + /home/bench/.opam/opam-init/hooks/sandbox.sh "build" "make" "-j4" (CWD=/home/bench/.opam/ocaml-base-compiler.4.12.0/.opam-switch/build/coq-semantics.8.11.1) - coq_makefile -f _CoqProject -o Makefile.coq - make -f Makefile.coq Makefile - make[1]: Entering directory '/home/bench/.opam/ocaml-base-compiler.4.12.0/.opam-switch/build/coq-semantics.8.11.1' - COQDEP VFILES - *** Warning: in file context_sqrt.v, library Omega is required and has not been found in the loadpath! - *** Warning: in file function_cpo.v, library Omega is required and has not been found in the loadpath! - make[1]: Nothing to be done for 'Makefile'. - make[1]: Leaving directory '/home/bench/.opam/ocaml-base-compiler.4.12.0/.opam-switch/build/coq-semantics.8.11.1' - make -f Makefile.coq all - make[1]: Entering directory '/home/bench/.opam/ocaml-base-compiler.4.12.0/.opam-switch/build/coq-semantics.8.11.1' - COQC syntax.v - COQC function_cpo.v - COQC intervals.v - COQC context_sqrt.v - File "./context_sqrt.v", line 1, characters 22-27: - Error: Unable to locate library Omega. - - make[2]: *** [Makefile.coq:764: context_sqrt.vo] Error 1 - make[2]: *** Waiting for unfinished jobs.... - File "./function_cpo.v", line 2, characters 27-32: - Error: Unable to locate library Omega. - - File "./intervals.v", line 28, characters 4-5: - Warning: Unused variable a catches more than one case. - [unused-pattern-matching-variable,pattern-matching] - File "./intervals.v", line 39, characters 12-13: - Warning: Unused variable a catches more than one case. - [unused-pattern-matching-variable,pattern-matching] - make[2]: *** [Makefile.coq:764: function_cpo.vo] Error 1 - File "./intervals.v", line 55, characters 0-5: - Error: The reference omega was not found in the current environment. - - make[2]: *** [Makefile.coq:763: intervals.vo] Error 1 - make[1]: *** [Makefile.coq:387: all] Error 2 - make[1]: Leaving directory '/home/bench/.opam/ocaml-base-compiler.4.12.0/.opam-switch/build/coq-semantics.8.11.1' - make: *** [Makefile:2: all] Error 2 [ERROR] The compilation of coq-semantics failed at "/home/bench/.opam/opam-init/hooks/sandbox.sh build make -j4". #=== ERROR while compiling coq-semantics.8.11.1 ===============================# # context 2.0.8 | linux/x86_64 | ocaml-base-compiler.4.12.0 | file:///home/bench/run/opam-coq-archive/released # path ~/.opam/ocaml-base-compiler.4.12.0/.opam-switch/build/coq-semantics.8.11.1 # command ~/.opam/opam-init/hooks/sandbox.sh build make -j4 # exit-code 2 # env-file ~/.opam/log/coq-semantics-22593-0a5907.env # output-file ~/.opam/log/coq-semantics-22593-0a5907.out ### output ### # [...] # [unused-pattern-matching-variable,pattern-matching] # File "./intervals.v", line 39, characters 12-13: # Warning: Unused variable a catches more than one case. # [unused-pattern-matching-variable,pattern-matching] # make[2]: *** [Makefile.coq:764: function_cpo.vo] Error 1 # File "./intervals.v", line 55, characters 0-5: # Error: The reference omega was not found in the current environment. # # make[2]: *** [Makefile.coq:763: intervals.vo] Error 1 # make[1]: *** [Makefile.coq:387: all] Error 2 # make[1]: Leaving directory '/home/bench/.opam/ocaml-base-compiler.4.12.0/.opam-switch/build/coq-semantics.8.11.1' # make: *** [Makefile:2: all] Error 2 <><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> +- The following actions failed | - build coq-semantics 8.11.1 +- - No changes have been performed # Run eval $(opam env) to update the current shell environment 'opam install -y -v coq-semantics.8.11.1 coq.dev' failed.
No files were installed.
true


Which are the best and most energy efficient power adaptors to buy for the Arduino (emonTx) and Raspberry Pi (emon base)?
So far, I have found these:
https://www.adafruit.com/products/501 < for R-Pi and/or Arduino
https://www.adafruit.com/products/63 < for Arduino
http://www.amazon.com/Motorola-Micro-USB-Home-Travel-Charger/dp/B004EYSK... < for R-Pi
Is there any advantage to running the Arduino with 9V vs 5V?
How important is it that I monitor AC power with the 9V AC-AC converter?
Would love to get everyone's thoughts. Thanks!
Re: Power adaptors for Arduino and R-Pi
I'll just answer this one: "How important is it that I monitor AC power with the 9V AC-AC converter? "
Crucial. It is used to measure both the line voltage and phase. Without that, you cannot properly measure power. Read up in Building Blocks for the technical details.
Re: Power adaptors for Arduino and R-Pi
We have tested this one with the Nanode RF and emonTx and found it to work well: http://shop.openenergymonitor.com/usb-power-adapter-uk-plug/
This one is a bit smaller (and cheaper), it's best suited to emonTx and emonGLCD: http://shop.openenergymonitor.com/emerson-5v-usb-mini-b-power-supply/
Re: Power adaptors for Arduino and R-Pi
Not all power adapters are the same, see this post for why is's worth getting a good quality adapter, there are some very poor units out there (usually sold cheap on ebay): http://openenergymonitor.blogspot.com/2011/08/not-all-usb-power-supplies-are-created.html
Re: Power adaptors for Arduino and R-Pi
Thanks guys. I have seen the post but it is hard to know before buying. I can only hope that the unit approved by Adafruit is a high quality power supply.
I am looking at switching power supplies because they are more efficient (although more noisy). Do you know if a switching power supply can be used for the AC-AC adaptor?
Re: Power adaptors for Arduino and R-Pi
"Do you know if a switching power supply can be used for the AC-AC adaptor?"
Yes, of course I know. And if you had bothered to properly read and follow up my first answer to your question, then thought about what the output from a switched-mode power supply is, you would know the answer too.
[It's no].
Re: Power adaptors for Arduino and R-Pi
Robert, that response was uncalled for. I have a lot to learn about electronics, and I hope that this forum is a place where I am welcome to ask questions. I have not seen mention of switched-mode power supplies in the Building Blocks, which is why I posed the question.
Thanks for your help.
Re: Power adaptors for Arduino and R-Pi
You're probably right - sorry. A SMPS invariably works at a high audio or super-sonic frequency so that it can use a minuscule transformer, and the transformer output is rectified, smoothed and comes out as a regulated direct voltage. That of course gives you absolutely no information about the mains supply, which is the whole objective of monitoring the mains. Read these in order to see how power is measured:
http://openenergymonitor.org/emon/buildingblocks/ac-power-introduction
http://openenergymonitor.org/emon/buildingblocks/ac-power-arduino-maths
http://openenergymonitor.org/emon/buildingblocks/ac-power-advanced-maths
http://openenergymonitor.org/emon/buildingblocks/measuring-voltage-with-...


disco(1) disco(1) NAME disco - Mono's Web Service Discovery Tool SYNOPSIS disco [options] url DESCRIPTION disco is a tool for discovering web services and for retireving the docu‐ ments that describe those services. url is the location of a DISCO document, which includes a list of WSDL documents, XML schemas and references to other DISCO documents. disco downloads the DISCO document and all referenced documents (unless the -nosave option is specified), and saves them to disk. OPTIONS The following options are available: -nologo Supress the startup logo. -nosave Do not save the discovered documents to disk. The default is to save the documents. -o:directory , -out:directory The directory where to save the discovered documents. By default, documents are saved in the current directory. -u:username , -user:username The user name to use when connecting to the server. -p:password , -password:password The password to use when connecting to the server. -d:domain , -domain:domain The domain to use when connecting to the server. -proxy:url The url of the proxy server to use for http requests. -proxyusername:username The user name to use when connecting to the proxy. -proxypassword:password The password to use when connecting to the proxy. -proxydomain:domain The domain to use when connecting to the proxy. AUTHORS Lluis Sanchez Gual<EMAIL_ADDRESS>LICENSE disco is released under the terms of the GNU GPL. SEE ALSO wsdl(1), soapsuds(1), mono(1), mcs(1) disco(1)


Source code for hdim_app
import os
from data_process import formatForD3
from multi_regression import MultiRegression
from flask import Flask, render_template, request, json, redirect, url_for, send_from_directory
from werkzeug.utils import secure_filename
from flask_cors import CORS, cross_origin
import logging
from logging.handlers import RotatingFileHandler
ALLOWED_EXTENSIONS = set(['csv', 'xlsx'])
app = Flask(__name__)
CORS(app)
app.config['ALLOWED_EXTENSIONS'] = ALLOWED_EXTENSIONS
# For a given file, return whether it's an allowed type or not
[docs]def allowed_file( filename ):
""" Determine wether a given file has an allowable file type.
Args:
filename: Name of the file ( data.csv for example ).
Returns:
False if filename has an extension not listed the app config. variable
"ALLOWED_EXTENSIONS", True otherwise.
"""
return '.' in filename and \
filename.rsplit('.', 1)[1] in app.config['ALLOWED_EXTENSIONS']
@app.route('/')
[docs]def index():
""" Display the root HTML file.
"""
return render_template('index.html')
# Route that will process the file upload
@app.route('/regression', methods=['POST'])
[docs]def regress():
""" Perform an L1 regularized ( ie LASSO ) regression on a data set.
Args:
Data will be passed from a client (website, cURL, Excel App etc ) via an HTTP POST request.
The POST request form-data should specify the design matrix,
the vector of predictors and any header information.
The request MUST also contain the following fields in addition to the form data:
regression_type: specifices the regression method to use
data_type: specifies what format the data is in
regression_index: the index of the column containing the vector of predictors
Returns:
A JSON object containing the result of the regression, including Intercept term.
This object will be an array of two-element dictionaries. The dictionaries
define the individual regression coefficients and
are formatted as follows: {Name:"coefficient_name", Val: coefficient_val}.
An example response showing two coefficients and an intercept term is shown below.
[{Name: "rm", Val: 4.2}, {Name: "Intercept", Val: 20.8},{Name: "lstat", Val: -0.5}]
"""
regression_type = request.form['regression_type']
data_type = request.form['data_type']
regression_var = request.form['regression_index'];
data = request.form['data'] if data_type == "json" else request.files['file'].read()
return app.response_class( formatForD3( MultiRegression( data, regression_type, data_type, regression_var ) ), mimetype='application/json' )
if __name__ == '__main__':
handler = RotatingFileHandler('./logs/python_errors.log', maxBytes=10000, backupCount=1)
handler.setLevel(logging.INFO)
app.logger.addHandler(handler)
app.run( debug = True )


--- ---
For archival purposes, older versions are listed here (these use the older style documentation):


Building the Front End
Previously for Final Static, I built and tested the NFT marketplace’s smart contract.
To support user interactions that work with it, the next important step would be to build out the web-based front end.
This was where the Tailwind CSS setup came in handy as well.
Building the navigation bar
To set up a global navigation component that would persist across all pages, I updated /pages/_app.js
as such:
Building the homepage
Then I started setting up the main entry-point of the app, which would eventually display the NFTs for sale.
For the time being though, I was just going to put in some placeholders.
I updated /pages/index.js
as such:
Running the project on localhost
At this point, I couldn’t wait to get a sneak peek of how everything looked, and so I spun up the website on my local network by running the following command on Terminal:
[Optional] npm command
I used the command above because I had opted for yarn
in this project. The npm
equivalent would be:
Seeing it on localhost
The CLI then pointed me to this URL to preview the site: http://localhost:3000
Here’s what I saw on Chrome:
Not too shabby so far, but obviously this was just the bare-bones version. In the next post, I will start building out a seller portal, where users can list and sell NFTs.


Direct WhatsApp
No more efforts to save temporary contacts.
Key Information
I don't reserves any rights for WhatsApp and their application/website.
Click
here
to learn more.
Message
WhatsApp Number
+91
Send Message
Settings
×
Dark Theme (Coming Soon!)
Clear all field on Send Message
Clear Message only
Clear Number only
Recent Recipient
Pardon, recipient didn't receive any message from your side ;(
Oh! You didn't send one?


▼ Floor 69 A participatory palindrome was written on the parchment, successfully engaging the reader in its complex and interactive playfulness.[G|D] The passionate padre would lavish his parishioners with loving attention, always eager to pamper them with his generous spirit.[G|D] The wise pedagogue paddled his boat across the pacific waters, imparting wisdom to his eager students along the journey.[G|D] The parachutist embodied the ideals of pacifism as they descended gracefully in the pageant, a shining beacon of peace and hope.[G|D]


Name: Sara María Bejarano Puello
Profile: Computer Science student
Email:
sm.bejarano44[~at~]uniandes.edu.co
Github:
/sarabepu/
Linkedin:
/sarabejarano/
Skills
Java 85%Profesional:
Do you want to know more? Check my full CV here
Technologies
Here is my email and social media. Let's be friends :) .


Hello@@@
Hello1 nope rrrrrrrrrrrrrrrrrr
Hello1000 nope
Hello12
Hello13
Hello14
Hello15
Hello16
search, replace and string manipulation here dude!
raoishereraoishere
zzzz
hello


I am writing HTML WOW
I am trying to program this page
With twitter github facebookText me in Facebook


Adds on-demand heatmap (age) indicator to the edge of the gutter to show how recently lines were changed
Use the
command to turn the annotations on or offPress Esc to turn off the annotations
Indicator color reflects the age of the most recent change (hot or cold), while indicator brightness ranges from bright (newer) to dim (older) based on the relative age
For more options, open Settings and search for gitlens.heatmap


The index plan¶
In order to index the CSV, we want to take two fields from each row, title and description, and turn them into suitable terms. For straightforward textual search we don’t need document values.
Because we’re dealing with free text, and because we know the whole dataset is in English, we can use stemming so that for instance searching for “sundial” and “sundials” will both match the same documents. This way people don’t need to worry too much about exactly which words to use in their query.
Finally, we want a way of separating the two fields. In Xapian this is done using term prefixes, basically by putting short strings at the beginning of terms to indicate which field the term indexes. As well as prefixed terms, we also want to generate unprefixed terms, so that as well as searching within fields you can also search for text in any field.
There are some conventional prefixes used, which is helpful if you ever need to interoperate with omega (a web-based search engine) or other compatible systems. From this, we’ll use ‘S’ to prefix title (it stands for ‘subject’), and for description we’ll use ‘XD’. A full list of conventional prefixes is given at the top of the omega documentation on termprefixes.
When you’re indexing multiple fields like this, the term positions used for each field when indexed unprefixed need to be kept apart. Say you have a title of “The Saints”, and description “Don’t like rabbits? Keep reading.” If you index those fields without a gap, the phrase search “Saints don’t like rabbits” will match, where it really shouldn’t. Usually a gap of 100 between each field is enough.
To write to a database, we use the WritableDatabase class, which allows us to create, update or overwrite a database.
To create terms, we use Xapian’s TermGenerator, a built-in class to make turning free text into terms easier. It will split into words, apply stemming, and then add term prefixes as needed. It can also take care of term positions, including the gap between different fields.


An n-simplex is the simplest bounded region in n-dimensional space.
A 0-simplex is a point,
A 1-simplex is a line segment,
A 2-simplex is a triangle,
A 3-simplex is a tetrahedron,
etc.


ANTI MONKEY BUTT DIAPER RASH - zinc oxide and ferric oxide red cream
DSE Healthcare Solutions, LLC.
Disclaimer: Most OTC drugs are not reviewed and approved by FDA, however they may be marketed if they comply with applicable regulations and policies. FDA has not evaluated whether this product complies.
Active Ingredients
Zinc Oxide 12.0%
Calamine Powder 2.0%
Uses
- Helps treat and prevent diaper rash
- Protects chafed skin due to diaper rash and helps seal out wetness
Warnings
For external use only
Stop use and ask a doctor if
- Condition worsens
- Symptoms last more than 7 days or clear up and occur again within a few days
Keep out of reach of children.
If swallowed, get medical help or contact Poison Control center right away.
Directions
- Change wet and soiled diapers promptly
- Cleanse the diaper area
- Allow to dry
- Apply cream liberally as often as necessary, with each diaper change, especially at bedtime or anytime when exposure to wet diapers may be prolonged.
Other Information
Store at 20° to 27°C (68° to 80°F)
Inactive Ingredients
Allantoin, calendula extract, castor oil, dowicil, fragrance, mineral oil, Peruvian balsam, white petrolatum.
PRINCIPAL DISPLAY PANEL
Baby
Anti Monkey
Butt®
Diaper Rash Cream
with Calamine
Helps Treat and Prevent Diaper Rash
NET WT 3 oz (85g)
Diaper Rash Cream" src="http://dailymed.nlm.nih.gov/dailymed/image.cfm?setid=d95eeedb-393e-0859-19ef-72bb421e3046&name=anti-monkey-butt-diaper-rash-cream-01.jpg">
DSE Healthcare Solutions, LLC.


Dad Jokes is so easy to use that it's hard to explain.
We made it really, really simple for people to make a joke and showcase is. You can make a joke
about almost anything - personal stories, TV shows, music, fashion, art, ANYTHING - you think
it's funny? Post it! Dad Jokes is a community filled with Jokes enthusiasts.
Next
Dad Jokes are Hilarious.
Turns out that when you make it easy to create jokes, that's exactly what people do.  We'll help you find and
follow
jokes like that, and we'll help other people find and follow yours.
Why can't you play poker on the African Savanna?
There's too many cheetahs.
Why is it always hot in the corner of a room?
Because a corner is 90 degress.
I was wondering why the baseball was getting bigger.
And then it hit me!
What are the strongest days of the week?
Saturday and Sunday, the rest are all week days.
What did the shy pebble wish for?
That she was a little boulder.
What did the hat say to the hat rack?

What do you call a pencil without lead?
Pointless.
Have you heard about the restaurant on the moon?
Great food, but no atmosphere!
Next
Created by John Doe
March 31
Want to hear a joke about construction?
I'm still working on it.
You already know how this works.
Once you follow a joker, all of their jokes show up in
your dashboard, just like you'd
expect. See something great? Repost it to your own page. Add commentary if you like. Make it
your own. Other people will do the same to your jokes. That's how you meet people here.


Throughout the years, I have been working with several front-end frameworks and technologies such as React with Redux. I am comfortable and have experience with HTML, CSS and JS.
I have experience with back-end development, primarily in C# using the .NET framework with EF Core. I am also comfortable using Node.js for server side development.
Relational databases are what I have primarily been exposed to in my projects. I have also been a teaching assistant in Database Technology at KTH. Therefore, I am comfortable building and using SQL databases.
Degree Programme in Media Technology. The educational programme has a technical, scientific base with a foundation in mathematics and natural science.
As a part of my Master's Degree, I studied at the Royal Melbourne Institute of Technology during the spring of 2018 after having being nominated by KTH based on my study results.
Summer intern at Gisecke+Devrient Mobile Security, working as a software engineer at the R&D department. During the internship I worked together in a small team, developing several internal projects.
Part-time employee at SEB as a software developer, working both front- and back-end. Developing features regarding forced transactions for an internal project in private banking.


I have struggled with knowing and understanding my personal values for a long time. I will tell you what I found out about myself so far. Empathy is something I try to display to each and every person I meet. Simply because one has no idea what another is struggling with under the surface. Respect is another value I try to display. Hurting people isn’t something I want to do so just showing general respect and understanding helps prevent that. Just being caring and understanding of who people are and why they might do what they do and accepting that is a big part of who I am.
As someone who cares about other people's feelings and emotions I face a lot of moral dilemmas when I have to; for example cut toxic people out of my life or tell someone the way they are treating me is upsetting. Because it goes against my beliefs. I know I will hurt people. So regardless of who I'm talking to I try to articulate my sentences in a way it reduces the pain I cause them.
My strengths and limitations are not something I am not too in tune with. So I have asked a few good friends of mine what they think. They have told me I am a good listener and that they feel heard when they talk to me about their problems and they don't feel judged. They have also said they admire my generosity. I personally don’t like how generous I am because that opens avenues for people to use me and it's disheartening. Limitations my friends have brought to my attention are that I get distracted easily and let external forces influence my mood severely.
I didn't know what was being asked of me when I was asked how my culture influenced my values and beliefs. So I googled it. I learned what culture meant and have determined that this will be difficult to answer because I have my own culture that I have described above. I have also taken the time to go out of my comfort zone to experience other cultures. For example I have gotten to know people in the automotive industry and experienced learning about the culture through tiertery study. I have also been a part of the party scene. But I wasn’t happy there. Through all of these cultural experiences I have learned about what I value most. And what I value most is genuine connection and empathy.
My evaluation of my strengths and limitations when it comes to learning and work ethic are very contradictory because while being a good listener is excellent for learning, being easily distracted negates my listening ability.


--- layout: post title: Bookmarks for March 15th through March 22nd tags: - .end() - calendar - css - fir - float - fonts - framework - html5 - iconic - icons - image replacement - inline-block - javascript - jquery - jslint - Kalendae - list - loader - localStorage - node.js - pictogram - sass - scrip - trigger.io - tumble - tutorial - video - widget - youtube - zepto status: publish type: post published: true meta: aktt_notify_twitter: 'no' ---
These are my links for March 15th through March 22nd:


Before Change
// prev_layers is a list with elements of size
// (batch_size, layer_sizes[i-1])
prev_layer = Concat(axis=1, in_layers=prev_layers)
with self._get_tf("Graph").as_default():
alpha = TensorWrapper(
tf.Variable(
tf.truncated_normal((1,), stddev=alpha_init_stddev),
name="alpha_layer_%d_task%d" % (i, task)))
trainable_layers.append(alpha)
prev_layer = prev_layer * alpha
dense1 = Dense(
in_layers=[prev_layer],
out_channels=layer_sizes[i - 1],
After Change
prev_layers.append(all_layers[(i - 1, prev_task)])
// prev_layers is a list with elements of size
// (batch_size, layer_sizes[i-1])
if len(prev_layers) == 1:
prev_layer = prev_layers[0]
else:
prev_layer = Concatenate(axis=1)(prev_layers)


Broken Cargo Box:
Someone is inspecting the box. You mustn't reveal yourself, so wait until the coast is clear.


Login
..
..
Sign In
Dont have an account, Create now
Create Account
..
..
..
..
..
Sign Up
Already have an account? Sign in.


The items you can found in the randomizer are usually items from the base game like keystones, health upgrades or skills but the randomizer also adds some new items to the mix if you enable the Bonus Items option during the seed generation:
- Extra Double Jump: if you already found Double Jump, this pickup will give you a bonus jump for extra mobility.
- Extra Air Dash: if you already found Dash, this pickup will give you another dash in the air for extra mobility.
- Health Regeneration: regenerates your health over time.
- Energy Regeneration: regenerates your energy over time.
- Rapid Hammer: increases hammer’s swing speed.
- Rapid Sword: increases sword’s swing speed.
- Weapon Efficiency: reduces the energy cost of the corresponding weapon by half.
There are also some other new items that are not classified as Bonus Items:
- Teleporters: make you able to teleport to the corresponding spirit well, even if you never went near it.
- Clean Water: make the water swimmable without taking any damage. In the base game you would need to clear the Wellspring Escape to clear it, which isn’t the case in this mod.
- Black Market Keystones: Out of keystones? No problem, buy as many as you need from Opher. Price increases for every keystone bought.
- Relic: special items you need to collect in the World Tour goal mode.


GENDER
Which city you live in?
Interest
Select the photo you want to upload
Your ideas about my WEBPAGE .


{% if project.has_inactive_allocations %}
{% endif %}
{% if not project.has_active_allocations and not project.has_approved_allocations and not project.has_pending_allocations %}
No current allocations
You don't have any current allocations. This could be because your allocation
recently expired or your project is new and you have not requested one yet.
Please click on the Request Allocation below to get started!
{% for alloc in project.active_allocations %}
{% include 'projects/allocation.html' %}
{% endfor %}
{% for alloc in project.approved_allocations %}
{% include 'projects/allocation.html' %}
{% endfor %}
{% for alloc in project.pending_allocations %}
{% include 'projects/allocation.html' %}
{% endfor %}
{% for alloc in project.waiting_allocations %}
{% include 'projects/allocation.html' %}
{% endfor %}
{% for alloc in project.rejected_allocations %}
{% include 'projects/allocation.html' %}
{% endfor %}
{% for alloc in project.inactive_allocations %}
{% include 'projects/allocation.html' %}
{% endfor %}
{% include "projects/charge_modal.html" %}
Project Members
{% if can_manage_project_membership %}
{% include "projects/bulk_invite_modal.html" %}
{% include "projects/bulk_remove_modal.html" %}
{% endif %}
Username
First Name
Last Name
Email
Role
{% for join_request in join_requests %}
{{ join_request.user.username }}
{{ join_request.user.first_name }}
{{ join_request.user.last_name }}
{{ join_request.user.email }}
Requested to join
{% if can_manage_project_membership %}
{% endif %}
{% endfor %}
{% for u in users %}
{{ u.username }}
{{ u.first_name }}
{{ u.last_name }}
{{ u.email }}
{% if u.username != request.user.username %}
{% if can_manage_project %}
{% endif %}
{% if can_manage_project_membership %}
{% endif %}


This is just an example page. Get a feel for the file structure then remove this boilerplate markup to get started.


| Library: | Base |
| Introduced: | 2.0 Beta 1 |
Allows individual components to be placed into the current selection. There are a number of actions possible with this tool.
By default, Logisim will compute a way to add new wires
so that no existing connections are lost during the move.
(Sometimes it will delete or shorten existing wires.)
If you're performing a move where you do not want these changes to be made,
you can press the shift key during the move.
If you want to disable this behavior entirely,
go to Project > Options, select the Canvas tab,
and uncheck the Keep Connections When Moving
box;
in this case, the connections are computed only when the shift key is down.
Dragging a selection can lead to unexpected behavior from wires: If you drag a selection including some wires on top of some other wires, all wires are merged, and the merged wires are placed into the selection. As a result, if you drag the selection a second time, the wires previously at the location will not be left behind. This behavior is necessary to keep with the expected behavior of wires in Logisim. And it does not normally constitute a major problem: Logisim will draw the full selection in the midst of dropping, and you should not drop it until you are sure it is in the correct location.
After selecting the desired items in the selection, you can of course cut/copy/paste/delete all the items via the Edit menu.
Logisim's behavior when pasting the clipboard into a circuit is somewhat peculiar: It will not immediately place the components into the circuit; instead, the selection will be a collection of "ghosts," which will be dropped into the circuit as soon as they are either dragged to another location or removed from the selection. (This peculiar behavior is necessary because pasting will otherwise merge the wires of the selection into the current circuit at once, and the wires there previously will be dragged with the pasted clipboard if the user wants to move the pasted components somewhere else.)
None. Selecting a component, though, will display its attributes. With multiple components selected, attributes shared by all are shown, blank if they have different values and otherwise with the value they all have in common. (Wires are ignored if there are any non-wires in the selection.) Changes to the attribute value affect all selected components.


s6
Software
skarnet.org
The s6-svlisten1 program
s6-svlisten1 runs a program while listening on notifications from a
supervised service, and blocks until said service goes up, or down.
s6-svlisten1 only waits for notifications; it never polls.
Interface
s6-svlisten1 [ -U | -u | -D | -d | -r | -R ] [ -t timeout ] servicedir prog...
- s6-svlisten1 checks the state of the servicedir
service directory and monitor its
state changes.
- It spawns prog... as a child right after getting the
initial state of the service.
- It then blocks until the wanted state happens.
Exit codes
- 0: success, the wanted state has been reached
- 1: the service was supposed to go up, but reported permanent failure
- 99: timed out
- 100: wrong usage
- 102: the s6-supervise process monitoring the service died
- 111: system call failed
Options
- -u : up. s6-svlisten1 will wait until the service is up, as
reported by s6-supervise.
This is the default; it is not reliable, but it does not depend on specific
support in the service programs. See this page
for details.
- -U : really up. s6-svlisten1 will wait until the service is
up and ready as reported by the daemon itself. This requires
specific support in the service programs, and the use of the
notification-fd file in the
service directory.
See the explanation on this page.
- -d : down. s6-svlisten1 will wait until the service is down.
- -D : really down. s6-svlisten1 will wait until the
service is down and the cleanup script in servicedir/finish
has finished executing (or has timed out and been killed).
- -r : restart. s6-svlisten1 will wait until
the service has been started or restarted, i.e. they have been in the
down state, then the up state.
- -R : restart and ready. s6-svlisten1 will wait until
the service has been started or restarted and has notified
readiness.
- -t timeout : if the requested event has not
happened after timeout milliseconds, s6-svlisten1 will print a message
to stderr and exit 99. By default, timeout is 0, which means no time
limit.
Notes
- s6-svlisten1 is the service-specific version of
s6-ftrig-listen1. The point of s6-svlisten1
is to use it to spawn a program such as s6-svc,
in order to send signals to a service while making sure to catch its
state changes - thus avoiding the race condition that occurs when running
s6-svc then s6-svwait
sequentially.
- The s6-svlisten program is an extension
of s6-svlisten1. It can watch the state of several services at once; however,
its syntax makes it best used in execline
scripts only.


| WinAPI Wrapper |
The File class extends HANDLE objects that are handles to files. See File I/O Overview for the details.
The File class has the following functions:
| Function | Related WinAPI function | Description |
|---|---|---|
| File | CreateFile | Assigns INVALID_HANDLE_VALUE or calls SetTo(). |
| ~File | CloseHandle | Calls Close() |
| operator HANDLE | - | Returns the file handle. |
| SetTo | CreateFile | Opens or creates file. |
| IsOpen | - | Validates the handle. |
| Close | CloseHandle | Closes file. |
| Read | ReadFile | Reads a buffer from file. |
| Write | WriteFile | Writes a buffer to file. |
| GetSize | GetFileSize | Returns size of the file. |
| Seek | SetFilePointer | Moves file pointer within the file. |
| Truncate | SetEndOfFile | Makes the current position of the file pointer the end of file. |
| Flush | FlushFileBuffers | Saves all unsaved internal Windows file buffers to disk. |
WinAPI Wrapper, WinAPI Wrapper classes, File I/O Overview, File I/O Functions


Upload new File
Snapster
File name
description
price
category
{{ submission_form.category(class_="btn custom-select") }}
media_type
{{ submission_form.media_type(class_="btn custom-select") }}


|
pico]OS
1.0.4
|
Macros | |
| #define | POSCFG_FBIT_USE_LUTABLE 0 |
| #define | POSCFG_FBIT_BITSHIFT 1 |
The pico]OS is shipped with a generic file that implements variouse methods for finding the first and least significant bit set. This section contains switches for configuring the file fbit_gen.c. Please see the section pico]OS Porting Information for details about findbit.
| #define POSCFG_FBIT_BITSHIFT 1 |
Generic finbit configuration, machine bit-shift ability. Some machines are very slow in doing bit-shifts. If your target is such a machine, you can define this parameter to zero to prevent findbit of doing excessive bitshifts.
| #define POSCFG_FBIT_USE_LUTABLE 0 |
Generic finbit configuration, look-up table support. The findbit mechanism can be implemented as look-up table.
POSCFG_FBIT_USE_LUTABLE = 0:
Do not use look up tables. "findbit" is implemented as a function. (This does not increase code size through tables. Also some CPUs may execute program code faster from their caches than fetching data from big lookup tables.) Note: This is the only possible setting for systems with MVAR_BITS != 8
POSCFG_FBIT_USE_LUTABLE = 1:
POSCFG_FBIT_USE_LUTABLE = 2:
This is only applicable for round robin scheduling. "findbit" is implemented as a two dimensional lookup table. This blows code size very much.


QUIETING TITLE
Section 12. No person shall be deprived of title to an estate or interest in real property by another person claiming actual, continuous, hostile, exclusive, open and notorious possession of such lands, except to real property of five acres or less. Such claim may be asserted in good faith by any person not more than once in twenty years. [Add Const Con 1978 and election Nov7, 1978]
Cross References
General statutory provisions, see chapter 669.
Law Journals and Reviews
Adverse Possession and Quiet Title Actions in Hawaii--Recent Constitutional Developments. 19 HBJ 59.
Case Note
Section does not bar adverse possession claims to more than five acres of land where claim matured prior to November 7, 1978. 91 H. 545 (App.), 985 P.2d 1112.


(You can search any file or page on this web site by
following the steps found by clicking on Search. You can also use the Search Engine found on
the first page / Home page)
More About FAMILY TREES
and
WEB SITES to other family trees
[The Family Trees Section of
this website was formerly part of:
FAMILY TREES AND OTHER
GENEALOGICAL TREASURES. This section
formerly included an index for Books and Biographical Sketches that appear on
this site. Because these sections
became too large, Books and Biographical Sketches have become separate sections
with their own respective titles. You
can go to any of the individual sections by clicking on
Family Trees, Web Sites, Books and Biographical
Sketches]
One of the main
goals of genealogical research is to identify our ancestors and to discover as
much about them as possible. The fruits of our labor are usually collected as
organized family trees and books in which authors hope to share their
discoveries with others and preserve the memories of family members for their
progeny. Perhaps the single most lasting honor that we can convey to our
ancestors and their progeny is through such a written record. Family trees found on this site are listed
below.
Since many
family tree documents and books exist on other web sites that are useful
researchers of Monroe County genealogy this section has been included as a
guide to some of these sites. The individual sites are listed below along with
their respective addresses on the Internet. Access is available by clicking on
the Internet address shown. To be sure that you can return to our web site, you
may wish to add our address to your list of "favorites. The address for
this site is: http://www.rootsweb.com/~ohmccogs
MCC of OGS
members and visitors with family connections to Monroe County are encouraged to
make their family trees and related genealogical treasures available through
the Research Room and through this web site. This can be arranged at your
convenience by contacting the MCC of OGS at Karen Romick or contacting the webmaster Dick Harrington .
Click here for the Short-Cut Table of Contents


Buggy Sat
问题描述 :
Discovery Co. ltd. builds a satellite using a new kind of an intelligent camera. The camera has special software to detect cities and roads from an image, and is also able to detect every region (which is a connected part of surface), bounded by a series of connected roads with no other region inside. Using this technology, the satellite is able to compress the picture before sending it. The compressed format of a picture is the city locations and its regions.
The above Figure shows a sample image received (see sample input).
You are to write a program to read a buggy image and report the outer region.
Discovery has launched the satellite, without testing the software completely. So, after a while, they received some buggy pictures which includes one more extra region: the outer region. The outer region is the region of the plane enclosing every other region (which has infinite area). Further analysis shows that all http://poj.org/images sent have the following properties:
1.All cities, in the image, have at least two roads to the other cities.
2.There is a path connecting every pair of cities.
3.There is at most one road between each pair of cities.
4.Roads do not cross each other except at the cities.
The above Figure shows a sample image received (see sample input).
You are to write a program to read a buggy image and report the outer region.
输入:
The first line of the input consists of a single integer N (1 <= N <= 20), which is the number of test cases. The test cases appear with no blank lines in between. The first line of each test case consists of the number of cities (between 1 and 50) followed by pairs of integers (x, y) which are location of cities (each pair in one line), followed by number of faces in a separate line (between 1 and 50), followed by face information on each line. Face information consists of number of cities making the face and the city numbers in clockwise (or counterclockwise) order.
输出:
There should be a single line containing the boundary face number for each test case, with no blank lines in between.
样例输入:
1 5 2 6 4 4 4 7 8 6 4 10 3 4 1 2 4 3 4 1 3 4 5 4 1 2 4 5
样例输出:
3
解题代码:
//* @author: import java.util.*; class Point{ int x; int y; public Point(){ this.x=0; this.y=0; } public Point(int x,int y){ this.x=x; this.y=y; } } public class Main{ static int cross_product(Point a,Point b){ return a.x*b.y-a.y*b.x; } public static void main(String args[]){ Point p[]=new Point[55]; Scanner in=new Scanner(System.in); int cse=in.nextInt(); while(!((cse--)==0)){ int pre=0; int tmp=0; int id=0; int n=in.nextInt(); for(int i=0;i< n;i++){ p[i]=new Point(); p[i].x=in.nextInt(); p[i].y=in.nextInt(); } int x=in.nextInt(); int maxs=-1;int ans=0; for(int i=0;i< x;i++){ int y=in.nextInt(); int sum=0; for(int j=0;j< y;j++){ id=in.nextInt(); id--; if(j==0){ pre=id; tmp=id; } else{ sum+=cross_product(p[pre],p[id]); pre=id; } } sum+=cross_product(p[id],p[tmp]); if(sum>maxs){ maxs=sum; ans=i+1; } } System.out.printf("%d\n",ans); } } }
(adsbygoogle = window.adsbygoogle || []).push({});
为什么暴力求解方法循环到sqrt(n) 就可以了呢
这是往年的笔试题，非在线，主要考察基础，Java会在面试时问到
为什么暴力求解方法循环到sqrt(n) 就可以了呢
全是智力分析的题
不错，感谢分享。
多谢提醒。代码又编辑了一下
对，就是把这32位当成一个长度为32的数
这个还不错
第二个方法挺不错。NewHead代表新的头节点，通过递归找到最后一个节点之后，就把这个节点赋给NewHead，然后一直返回返回，中途这个值是没有变化的，一边返回一边把相应的指针方向颠倒，最后结束时返回新的头节点到主函数。
没敢用map，总怕stl用着会超时
必须试过啊
没敢用map，总怕stl用着会超时


If you love Telegram but don't want to leave Discord then you'll be pleased to find we've built a bridge in this channel. If you'd like to join the group in the Telegram app you can find it here: https://t.me/KomodoPlatform_Official.
100 messages
Before 05-Dec-19 12:00 AM
GatewayBOT29-Sep-18 01:51 PM
[telegram] <Menaka> I contacted them they told me btcd now available as KMD contact KMD team (re @Acura360: Ask Poloniex)
[telegram] <Acura360> Yeah but we are not responsible for your BTCD on your Poloniexaccount (re @Menaka: I contacted them they told me btcd now available as KMD contact KMD team)
jl777c29-Sep-18 01:52 PM
BTCD redeem lasted for a year and finished in january
GatewayBOT29-Sep-18 01:53 PM
[telegram] <Menaka> Yeah I know but is there anyway I can swap my BTCD to KMD?
jl777c29-Sep-18 01:53 PM
not unless you have a time machine
maybe you can sell it on the other remaining exchange still trading BTCD
GatewayBOT29-Sep-18 01:53 PM
[telegram] <Menaka> BTCD now not usable?
jl777c29-Sep-18 01:54 PM
its blockchain hasnt been usable for a year+
GatewayBOT29-Sep-18 01:56 PM
[telegram] <Menaka> Can you suggest me any? (re @Matterbridge_kmdbot: [discord] <jl777c> maybe you can sell it on the other remaining exchange still trading BTCD)
they used to do a lot of volume, but was always a bit suspicious
GatewayBOT29-Sep-18 01:59 PM
[telegram] <Acura360> We have a new Piratedeal
dexstats.info/onboarding.php
Here is 777 PIRATES for 77.7 KMD
GatewayBOT29-Sep-18 02:12 PM
[telegram] <CryptoBlockchain38> From 15 KMD to 77.7 in exchange for 777 $PIRATE
That's a ++400% increase (re @Acura360: We have a new Piratedeal
dexstats.info/onboarding.php
Here is 777 PIRATES for 77.7 KMD)(edited)
[telegram] <CryptoBlockchain38> From 15 KMD to 77.7 in exchange for 777 $PIRATE
That's a ++400% increase (re @Acura360: We have a new Piratedeal
dexstats.info/onboarding.php
Here is 777 PIRATES for 77.7 KMD)
jl777c29-Sep-18 02:14 PM
marketprice went up to 0.1 KMD per PIRATE
Gordon Komodo29-Sep-18 02:14 PM
mining difficulty has increased significantly as well
jl777c29-Sep-18 02:14 PM
as hashrate went to 30Msols, which is the third highest equihash coin as far as I know
the 777 for 15 KMD was a VERY good deal
GatewayBOT29-Sep-18 02:15 PM
[telegram] <CryptoBlockchain38> Ok then... if it's the market (re @Matterbridge_kmdbot: [discord] <jl777c> marketprice went up to 0.1 KMD per PIRATE)
[telegram] <CryptoBlockchain38> Yes but i have no PC (re @Matterbridge_kmdbot: [discord] <jl777c> the 777 for 15 KMD was a VERY good deal)
jl777c29-Sep-18 02:15 PM
for now PIRATE is for native mode only.
next year we expect lite mode to be available, but of course this 0.1KMD cannot be guaranteed to last
also it is being offered by a community member
GatewayBOT29-Sep-18 02:16 PM
[telegram] <CryptoBlockchain38> PIRATE is already on its way to Mars? (re @Matterbridge_kmdbot: [discord] <jl777c> for now PIRATE is for native mode only.)
[telegram] <Bonged> That’s a nice increase for real .
jl777c29-Sep-18 02:22 PM
it seems almost unprecedented for such a new coin
GatewayBOT29-Sep-18 02:42 PM
[telegram] <Bonged> I agree but I don’t mind the gains ahaha (re @Matterbridge_kmdbot: [discord] <jl777c> it seems almost unprecedented for such a new coin)
[telegram] <CryptoBlockchain38> Did you sold your $PIRATE? And how did you do that? On Barterdex? Sorry noob here (re @Bonged: I agree but I don’t mind the gains ahaha)
[telegram] <Acura360> OTC trades - Barterdex can‘t actually handle Z Adresses (re @CryptoBlockchain38: Did you sold your $PIRATE? And how did you do that? On Barterdex? Sorry noob here)
[telegram] <Bonged> OTC only yes
GatewayBOT29-Sep-18 03:06 PM
[telegram] <PTYX11> How is this price being calculated?
@btcecho #BarterDEX existiert und funktioniert.  Currently it is about DEX and they don’t mention Komodo...(edited)
GatewayBOT29-Sep-18 03:57 PM
[telegram] <PTYX11> Seko which one?
[telegram] <Seko> BTC-Echo... They don't deserve a link.
[telegram] <CryptoBlockchain38> Are they in accumulation mode as well? (re @Seko: The biggest crypto site (BTC-Echo) in Germany ignore always Komodo. Currently it is about DEX and they don’t mention Komodo...)
[telegram] <Seko> And all other German crypto sites are copying. They don’t mention Komodo.
GatewayBOT29-Sep-18 04:09 PM
[telegram] <Lennart> yeah i noticed that too. happened not the first time. They always ignore KMD, when mentioning KMD's hottest topics but with other cryptos
2019 will be a crucial year for blockchain. Will it make waves or slow down? Some companies are aiming high.
[telegram] <DingDongSoLong> How are they going to mention QTUM and not KMD smh
GatewayBOT29-Sep-18 04:31 PM
[telegram] <CryptoBlockchain38> Hi admin, can i shill Utrum here ?
[telegram] <Acura360> Pls no, but you can post the Utrum channel here
[telegram] <CryptoBlockchain38> One Cartoon? (re @Acura360: Pls no, but you can post the Utrum channel here)
[telegram] <Acura360> you can post the Utrum channel here
[telegram] <CryptoBlockchain38> Ok thx (re @Acura360: you can post the Utrum channel here)
GatewayBOT29-Sep-18 05:31 PM
[telegram] <changemymindk> What is the supply of pirate?
GatewayBOT29-Sep-18 05:42 PM
[telegram] <William9182> 200 mil is Max supply from what I've read (re @changemymindk: What is the supply of pirate?)
[telegram] <William9182> 200 mil is Max supply from what I've read (re @changemymindk: What is the supply of pirate?)
GatewayBOT29-Sep-18 06:26 PM
[telegram] <B4D_R> hi. witch address to use to withdraw coins from exchange? public or private?
[telegram] <B4D_R> agama
[telegram] <LAP> BarterDEX transaction is too slow and I can not buy coins because of miss match.
That will improve in 2.0?
GatewayBOT29-Sep-18 06:38 PM
[telegram] <hifonz> any idea when we will see more significant trading volume on BarterDEX?
[telegram] <hifonz>
[telegram] <hifonz> is this real?
[telegram] <LAP> 1. There should be no transaction failure.
2. The transaction speed should be fast.
3. All you need is a Buy button and a Sell button.
[telegram] <LAP> Distributed exchanges are key to the block chain industry, but they seem to have many challenges.
[telegram] <B4D_R> hi. witch address to use to withdraw coins from exchange? public or private? i m using agama wallet
GatewayBOT29-Sep-18 06:57 PM
[telegram] <William9182> Barterdex is for advanced users.
That will improve in 2.0?)
GatewayBOT29-Sep-18 07:09 PM
[telegram] <golovka4lena> It this live (re @hifonz: is this real?)
[telegram] <Acura360> You can use your T KMD Adress (re @B4D_R: hi. witch address to use to withdraw coins from exchange? public or private? i m using agama wallet)
[telegram] <Acura360> You know that not all 10000 tradingpairs are listed on CMC? (re @hifonz: is this real?)
[telegram] <Ole> how close is the team to do the 1mill tps test?(edited)
[telegram] <B4D_R> Thank you. exchanges dont like z adresses (re @Acura360: You can use your T KMD Adress)
[telegram] <Acura360> Next week there will be news (re @Ole: how close is the team to do the 1mill tps test?)
[telegram] <Acura360> Correct (re @B4D_R: Thank you. exchanges dont like z adresses)
[telegram] <Ole> thx (re @Acura360: Next week there will be news)
Binance Academy: Blockchain & Cryptocurrency Education for the World
Fellow Binancians,
Binance is pleased to announce the beta launch of Binance Academy: www.binance.vision
Binance Academy is ...
[telegram] <Ole> thoes scammers become better and better
GatewayBOT29-Sep-18 07:41 PM
[telegram] <CryptoBlockchain38> I heard it isn't the transaction capacity but CPU or GPU transaction capacity. (re @Ole: how close is the team to do the 1mill tps test?)
GatewayBOT29-Sep-18 08:34 PM
[telegram] <mafaiq> Hello, may i know at what development phase komodo is at? ie, BETA/mainnet/testnet etc? thanks
GatewayBOT29-Sep-18 08:49 PM
[telegram] <cryptoginto> How many for masternode again?
GatewayBOT29-Sep-18 08:56 PM
[telegram] <luckynuke> 5 (re @cryptoginto: How many for masternode again?)
GatewayBOT29-Sep-18 09:15 PM
[telegram] <fellowsheep> Since Komodo is opensource, can i create another "Komodo" with new "KMD" then interoperate with these Komodo Assetchains?
GatewayBOT29-Sep-18 09:49 PM
[telegram] <Mentortechies> Yup (re @fellowsheep: Since Komodo is opensource, can i create another "Komodo" with new "KMD" then interoperate with these Komodo Assetchains?)
[telegram] <Mentortechies> But good luck (re @fellowsheep: Since Komodo is opensource, can i create another "Komodo" with new "KMD" then interoperate with these Komodo Assetchains?)
GatewayBOT29-Sep-18 10:05 PM
[telegram] <fellowsheep> What is the use of KMD in the Platform?
[telegram] <PTYX11> Komodo is used to pay for notarizations
[telegram] <PTYX11> Komodo is used also to pay cryptocondition contracts and to Jumblr coins.
[telegram] <fellowsheep> Notary Nodes only maintain Komodo Platform right? Not the Assetchains in the Platform...(edited)
[telegram] <fellowsheep> How Jumblr works? Its like a temporary holder to make a coin anonymous? (re @PTYX11: Komodo is used also to pay cryptocondition contracts and to Jumblr coins.)
[telegram] <PTYX11> Jumblr works yes
[telegram] <fellowsheep> Thanks (re @PTYX11: Jumblr works yes)
[telegram] <PTYX11> Jumblr makes coins fungible
[telegram] <PTYX11> It does it by making a series of transactions that create a "Blackbox" where you cant decipher what is being mixed. You can only see what goes in and comes out. However, what comes out is all denominated in the same amounts and in timeframes that can be delayed. So it's difficult to trace once KMD is Jumblrd.
[telegram] <PTYX11> The sequence is transparent - > private then private - > private and finally a private - > to public
GatewayBOT29-Sep-18 11:14 PM
[telegram] <leslie> Binance Pump Signal®
Join the Official Binance Pump Signal today to make profits today !
Click on the link below !
https://t.me/joinchat/AAAAAEsrm15p6MWOAVSGtg
[telegram] <anna> Binance Pump Signal®
Join the Official Binance Pump Signal today to make profits with us !
Click on the link below !
https://t.me/joinchat/AAAAAEsrm15p6MWOAVSGtg


ECCurve
public enum ECCurve : CaseIterable
Built-in elliptic curves
-
brainpoolP160r1 curve
Declaration
Swift
case BP160r1
-
brainpoolP160t1 curve
Declaration
Swift
case BP160t1
-
brainpoolP192r1 curve
Declaration
Swift
case BP192r1
-
brainpoolP192t1 curve
Declaration
Swift
case BP192t1
-
brainpoolP224r1 curve
Declaration
Swift
case BP224r1
-
brainpoolP224t1 curve
Declaration
Swift
case BP224t1
-
brainpoolP256r1 curve
Declaration
Swift
case BP256r1
-
brainpoolP256t1 curve
Declaration
Swift
case BP256t1
-
brainpoolP320r1 curve
Declaration
Swift
case BP320r1
-
brainpoolP320t1 curve
Declaration
Swift
case BP320t1
-
brainpoolP384r1 curve
Declaration
Swift
case BP384r1
-
brainpoolP384t1 curve
Declaration
Swift
case BP384t1
-
brainpoolP512r1 curve
Declaration
Swift
case BP512r1
-
brainpoolP512t1 curve
Declaration
Swift
case BP512t1
-
NIST sect163k1 curve
Declaration
Swift
case EC163k1
-
NIST sect163r2 curve
Declaration
Swift
case EC163r2
-
NIST sect192k1 curve
Declaration
Swift
case EC192k1
-
NIST sect192r1 curve
Declaration
Swift
case EC192r1
-
NIST sect224k1 curve
Declaration
Swift
case EC224k1
-
NIST sect224r1 curve
Declaration
Swift
case EC224r1
-
NIST sect233k1 curve
Declaration
Swift
case EC233k1
-
NIST sect233r1 curve
Declaration
Swift
case EC233r1
-
NIST sect256k1 curve
Declaration
Swift
case EC256k1
-
NIST sect256r1 curve
Declaration
Swift
case EC256r1
-
NIST sect283k1 curve
Declaration
Swift
case EC283k1
-
NIST sect283r1 curve
Declaration
Swift
case EC283r1
-
NIST sect384r1 curve
Declaration
Swift
case EC384r1
-
NIST sect409k1 curve
Declaration
Swift
case EC409k1
-
NIST sect409r1 curve
Declaration
Swift
case EC409r1
-
NIST sect521r1 curve
Declaration
Swift
case EC521r1
-
NIST sect571k1 curve
Declaration
Swift
case EC571k1
-
NIST sect571r1 curve
Declaration
Swift
case EC571r1


Onshore Studios
Menu
Home
About
Services
Solutions
Recent Work
Contact
Contact Us
We are currently open for new projects
Don’t fill this out if you're human:
Send message
Or you can email us at
onshorestudios@gmail.com