--- title: MA 371 ---
Prerequisites: Sobolev spaces, Elliptic boundary value problems, Heat and wave equations, Variational formulation and semigroup theory.
Optimal Control of PDE: Optimal control problems governed by elliptic equations and linear parabolic and hyperbolic equations with distributed and boundary controls, Computational methods.
Homogenization: Examples of periodic composites and layered materials. Various methods of homogenization.
Applications and Extensions: Control in coefficients of elliptic equations, Controllability and Stabilization of Infinite Dimensional Systems, Hamilton-Jacobi-Bellman equations and Riccati equations, Optimal control and stabilization of flow related models.
Books
B. Lee and L. Markus, Foundations of Optimal Control Theory, John Wiley, 1968.
L. Lions, Optimal Control of Systems Governed by Partial Differential Equations, Springer, 1991.
L. Lions, Controlabilite exact et Stabilisation des systemes distribues, Vol. 1, 2 Masson, Paris 1988.
Bardi, I. Capuzzo-Dolcetta, Optimal Control and Viscosity Solutions of Hamilton-Jacobi-Bellman Equations, Birkhauser, 1997.
Kesavan, Topics in Functional Analysis and Applications, Wiley-Eastern, New Delhi, 1989.
Dal Maso, An Introduction to $\Gamma$-Convergence, Birkhauser, 1993.


This web-site is dedicated to a school project which is part of a course about cryptocurrencies.
Check information about Bitcoin's blockchain here !
Contract address : 0x5B637147643EEc6EC5fACD9be5E0bC22aC5b5306


hearme
Home
Artists
Download Music
Search
Contact
Update Required
To play the media you will need to either update your browser to a recent version or update your
Flash plugin
song for you
00:00
Shreya Ghoshal
02:33
Update Required
To play the media you will need to either update your browser to a recent version or update your
Flash plugin


James Rodriguez sidelined for Colombia’s friendly against Peru with knee injury
The Real Madrid star complained of discomfort in his left knee during training.
Real Madrid midfielder James Rodriguez has been ruled out of Colombia’s international friendly against Peru on Friday after suffering a knee injury in training.
The Colombia Football Federation announced that the 28-year-old complained of discomfort after twisting his left knee near the end of Thursday’s training session.
“The Colombian National Team reports, what during the training this Thursday, in an accidental move, James Rodriguez complained of a discomfort in his left knee,” the governing body said in a statement.
“For now and as a precaution, the player James Rodriguez is ruled out for the match against Peru.
“In the next few hours, a detailed imaging study will be carried out to confirm the definitive diagnosis, which will be shared with his club.”
James has made just nine appearances for Real this season and has scored one goal.


Toggle navigation
Welcome!
About.
Things I
♥
Contact.
Hello, my name is:
Smash!
Get to know me!
About.


I have had much experience in the realm of the unknown. DMT had opened many doors in the past... or is it the future, I sometimes forget. At any rate, that doesn't matter much right now. It was around 12pm, the sun was in full view, and the wind was gently blowing through the window, the fans catching the breeze. I was ready.
T -24hr
I had fasted for 24 hours, drinking only water, and excercising moderately over those hours, and sleeping for a full 7 hours.
T -5hr
I drank a lot of water early in the morning and went for a walk to prepare my conciousness for the journey I was about to go on.
T - 10min
I packed my handmade inline perc, with a rather large pinch of Salvia extract. I have had a select few experiences with it before, and had rather profound visions of alternate realities. The DMT packed on top was fresh, made a couple days before by a friend from M.Hostilis. It was a clear/yellow shard, and very dense. I prepared myself by putting on a DNA activation mp3, which was a very dull tonal synth melody.
T - 5min
I stripped down to my boxers, to avoid any potential constriction whilst rolling around.
T- 2min
I sat on my bed, meditating for a time. Finally, once I was in the zone, I put the screen over the bowl so as to not burn that beautiful DMT crystal.
T +/- 0
I exhaled deeply, and sparked the bowl. I slowly pulled, Taking care to fully expand my lungs. With the tube cashed, I sat it down on the floor and layed back, whilst holding my breath.
T + 30sec
I lost the ability to see the material world almost immediately, and was sucked into the bed, enveloped by a technicolour web of energy and light. It was soon replaced with what I would call dark matter.  I had become a singularity, if only for a glimpse of a second.
T + 1min
The feeling of dark pressure had finally torn me apart, I was no longer in my physical vessel. I had become an interweaving series of these multi coloured tubes, which formed into a great machine of sorts. I drifted away from my own soul, as those I were becoming something more... or like I was being reconstructed. I awoke, and I was in a morgue? It was more like a research labratory, everything was white, Immaculate. These pulsating sounds, like a piledriver, were rhythmically breathing.
T + 3min
I became aware of the situation.  I was inside a casket? or a drawer of sorts. I was not breathing, I was back in material form. Naked. I am freezing. I realized the situation as I saw metallic tubes sticking out of my every joint, pumping a metallic crystal substance into my lifeless body... Am I dreaming?  I forced the drawer open, pulling the tubes out of my body.
I was not expected to wake up, was I?
I jump out, only to find an infinite number of all of these drawers. They were neatly aligned, like a library. They had humans, humanoids, outright monsters, and beings that I just couldn't begin to understand, and all of them were in the catatonic state I had previously been in. It was just beyond my comprehension. Immediately, I came to the conclusion I was not supposed to be standing up, awake.
Where am I?
How did I get here?
What is the meaning of this?
Immediately, a voice jumps into my thoughts, explaining that this is where you go when you fall asleep. All of the races go there. Together, in their slumber, their thoughts intertwine, intermingle, to form the web I would best understand as the multiverses. The voice explained that our collective conciousness is what keeps the multiverse in existance.
It was horrible. We are enslaved in our sleep, harvested to allow this garganttuan machine made out of glass and light to pump all of our energy around at high speeds. I ran. I knew exactly where to go. I found the tremendous disk. It was silver, and solid to the touch. I pushed on it slightly, and it bounced back, resonating my own voice. It asked me why I wanted to escape, if I knew the implications of returning with this knowledge. I didn't care. Do what thou wilt. That is the power of man. I pushed through, I jumped sooooo slowly. Finally, as I flew through this tunnel with alternating perpendicular rungs of a ladder, they slid this way and that, forcing me to take alternate routes. It seemed as though I never had a choice in the matter.
T + 15min
I opened my eyes and I was naked, staring at myself in the mirror in my bathroom at home. How did I end up here? Where was this place? Was I really just in my head? My eyes were flickering different colors, they were phasing through a rainbow, finally settling at silver blue for a time... Which is odd because my eyes are normally honey brown. I was sweating profusely. I ran to my notepad, and scribbled down a little drawing of what I saw and what you read right now. My radio was not playing what I had set it to. It had a faint voice coming from it, very distorted and synthesized. It was mumbling things that I will never repeat.
T + 22min
I am finally back to baseline. The afterglow from this is mind numbing. I am coughing up weird dry chunky white stuff... what is this? I am very very parched. I am starving.
T + 25min
I am back. This place is so strange. So pointless. We all need to set aside our differences, our greed, our anger. We need to live in a state of love, rythm, joy.  It is a trap. It is there to enslave our energy. We should be in control of our own souls, our own destiny. Collectively as a race, and separately. No more war. I am not afraid of death, but I truely appreciate the beauty of life quite a bit more.
I may further experiment, but the lessons I learned internally are so profound I think I may take a break from tryptimines.
Namaste
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


3 men charged for illegal possession of firearm and ammunition
Investigators assigned to the St Andrew South Police Division arrested and charged three men for illegal possession of firearm and illegal possession of ammunition on Tuesday.
They are 32-year-old Konchella Fisher, 27-year-old Nakiki Fisher and 27-year-old Micheal Binglin all of Davison Crescent, Kingston 20.
The police report that about 2:30 p.m., a premises was searched and one 9mm pistol with three 9mm rounds of ammunition was found in a shoe underneath a dresser.
The men are to appear before the Kingston and St Andrew Supreme Court on Monday, December 2.


--- layout: default title: HTFF'17 - 4th International Conference on Heat Transfer and Fluid Flow meta: A conference about heat transfer and fluid flow. Great opportunity to network and gain more knowledge! keyword: heat transfer conference, cfd conference, fluid flow conference, energy conference, combustion conference, heat pipe conference, renewable energy conference, rheology conference, turbulent flow conference, drying, feul cells, heat exchangers, nanofluids, multiphase flow, multiphase heat transfer, non-newtonian flow, porous media, thermodynamics, fluid mechanics, fluid dynamics, heat transfer, cfd, fluid flow, energy, combustion, heat pipe, renewable energy, rheology, turbulent flow, drying conference, feul cells conference, heat exchangers conference, nanofluids conference, multiphase flow conference, multiphase heat transfer conference, non-newtonian flow conference, porous media conference, thermodynamics conference, fluid mechanics conference, fluid dynamics conference ---
The 4th International Conference on Heat Transfer and Fluid Flow (HTFF'17) aims to become the leading annual conference in fields related to heat transfer and fluid flow. The goal of HTFF'17 is to gather scholars from all over the world to present advances in the relevant fields and to foster an environment conducive to exchanging ideas and information. This conference will also provide an ideal environment to develop new collaborations and meet experts on the fundamentals, applications, and products of the mentioned fields.
All accepted and presented papers will be published in the conference proceedings, under an ISBN reference in a USB drive. The online version of the proceedings will also be published under an ISSN reference and each paper in the proceedings will be assigned unique DOIs by CrossRef. Furthermore, selected papers from the conference will be submitted for possible publication in the following journals from Avestia Publishing (publication fees may apply):
Journal of Fluid Flow, Heat and Mass Transfer
HTFF is an acronym for Heat Transfer and Fluid Flow.
To view HTFF 2016 website, please visit www.2016.htffconference.com
Dr. Yuwen Zhang,
University of Missouri, USA
Biography & Abstract
Dr. Subrata Roy,
University of Florida, USA
Biography & Abstract


[§327E-1] Short title. This chapter may be cited as the Uniform Health-Care Decisions Act (Modified). [L 1999, c 169, pt of §1]


City:
Country:
Temp is Degree Celcious Now
But It Feels Like degree celcious
Humidity is
Atmospheric Pressure is Now
Wind blows In Degree Angle Now
Wind Speed Is km/hour


Connect to your Alfresco Server
Put your Alfresco User Credential below. The Server Url is automatically retrieved from Comprador Url.
Alfresco Server Url
/cmisatom
User Name
Password
Connect Me !!!
Okay, Get Me In


Tim Roth reveals he turned down huge role in Harry Potter
by By Press AssociationTim Roth has revealed he turned down the role of Snape in the Harry Potter films because he was worried he would end up just being known for that part.
The actor, 58, said he thought that while playing the professor might have got his face on lunchboxes, that would have been all he was famous for.
He added his three children still mention the fact he missed out on being in the hugely popular franchise.
Opening up about his decision on TV show There’s Something About Movies, he said: “There are films that I do for my kids … and so I got offered Planet Of The Apes and it was Tim Burton and it was make-up and I thought it would be fun.
“At the same time as that they came to me and asked me to do Snape in the Harry Potter films.
“I was like ‘OK OK that’s interesting’ and then I just thought ‘I’ll be on every lunchbox or whatever it is, but that will be it really, I’ll be known for that’.”
Roth said he would rather have a career that is “completely bonkers”.
The role of Snape went to the late actor Alan Rickman.
Roth said of his children: “They were all right about it but they do bring it up. They still do.”
There’s Something About Movies is on Sky One and NOW TV on Thursday at 9pm.


Settings
Cancel
Submit
Node-RED
Other
Runtime Configuration
Userdir
Credential secret
Nodes blacklist
Enable Projects
Listen port
HTTP Node Auth
Username
Password
Hide app on miminize
Check update on startup
Allow usging prerelase
Open a last file on startup


| About Dailyrotten |
|
Feedback
If you like this page, hate it, or would like to suggest changes,
<EMAIL_ADDRESS>is listening. This page
is experimental and somewhat different from what we usually offer, so please
do send your feedback.
Adding Stories
If you are a rotten newshound and you would like to suggest a story,
visit our submit page to
send us the URL. Stories that are accepted will have your name credited.
Viewership
On the first full day this page went live, 100,000 people visited this Rotten
News page. Of course that was the day after the WTC attacks, so that number is
somewhat distorted. Right now this page gets between 50,000 and 75,000 people
every day.
Linking
We encourage everyone to link to this page; if you like it, others probably
will as well.
Other Rotten
Rotten
Gaping Maw
Celebrity Morgue
Mugshots
Rotten Store
Shockumentary
Rate My Poo
Rate My Kitten
Rate My Finger
Penny Postcards
Phallic
Dr. Sputnik
Boners
Dead Pool
NNDB
Home
Make Dailyrotten your start page
|
|
|
December 06, 2003
Magic potion kills 64
Reuters UK | Submitted by: ptrotter
"A priest is on the run after 64 members of his congregation were poisoned to death by a potion he said would grant them salvation. 'Sixty-four of the approximately hundred people who drank the potion have died. We have sent two doctors and a Red Cross team to the site,' the Democratic Republic of Congo's health minister Yagi Sitolo told Reuters... Congo's health minister said the Bosobe authorities were looking for the priest who had fled for fear of recrimination."
|
|
Read article...
|
|
Bad haircut prompts matricide
Mainichi Daily News | Submitted by: Cagehead
"A schoolboy arrested for stabbing his mother and setting fire to their home carried out the attack after his mother ridiculed his haircut, it has been learned.  He subsequently picked up a knife and stabbed her."
|
|
Read article...
|
|
Gary Glitter back in action
News of the World | Submitted by: Reid Fleming
"Repulsive pop pervert Gary Glitter tries to hide his identity behind a long goatee beard, sunglasses and cowboy hat... Our reporters trailed the new-look, slimmed-down Glitter as he travelled around the country in a Suzuki Vitara jeep, which had curtains blanking out its rear windows... As well as shamelessly eyeing up the girl as she carried water past the roadside cafe, he made approaches to groups of small children, some of them naked, who were playing at the side of the road."
|
|
Read article...
|
|
Dozens of cops reprimanded for sex industry ties
Japan Today | Submitted by: Cagehead
"The Tokyo Metropolitan Police Department said Friday it has punished 42 police officers for corruption... The officers in question, who it did not identify, engaged in prohibited activities, such as allowing themselves to be wined and dined, treated to rounds of golf and entertained at sex industry establishments, the department said."
|
|
Read article...
|
|
American tactics pissing off Iraqis
New York Times | Submitted by: Jonny Plasma
"American soldiers have begun wrapping entire villages in barbed wire... So far, the new approach appears to be succeeding in diminishing the threat to American soldiers. But it appears to be coming at the cost of alienating many of the people the Americans are trying to win over... 'You have to understand the Arab mind,' Capt. Todd Brown, a company commander with the Fourth Infantry Division, said as he stood outside the gates of Abu Hishma. 'The only thing they understand is force - force, pride and saving face.'"
|
|
Read article...
|
|
Eminem attracts Secret Service attention
CNN | Submitted by: Cagehead
"The Secret Service is trying to determine if any action needs to be taken regarding a lyric from rapper Eminem that may be a threat to President Bush. The lyric comes from a bootleg Eminem recording - one of several from the rapper making rounds on the Internet over the past week. In the song called 'We Are American,' Eminem sings: 'Fuck money, I don't rap for dead presidents/ I'd rather see the President dead.' ... A Secret Service probe is routine when something that could be construed as a threat to the president is brought to agents' attention."
|
|
Read article...
|
|
Indigent babies shitting their brains out
BBC | Submitted by: Hardcastle
"Repeated bouts of diarrhoea in infancy significantly impairs mental performance later in life, researchers have found. A team from the University of Virginia followed hundreds of children in a Brazilian shanty town for 14 years. Those afflicted by diarrhoea showed signs of stunted mental development by the age of 10... 'The best single predictor of how a child is doing in the third grade in school is how much diarrhoea they had during their first two years of life.'"
|
|
Read article...
|
|
Women opting for foot mutilation
New York Times | Submitted by: Jonny Plasma
"Women are having parts of their toes lopped off to fit into the latest Manolo Blahniks or Jimmy Choos. Cheerful how-to stories about these operations have appeared in women's magazines and major newspapers and on television news programs. But the stories rarely note the perils of the procedures. For the sake of better 'toe cleavage,' as it is known to the fashion-conscious, women are risking permanent disability, according to many orthopedists and podiatrists."
|
|
Read article...
|
|
Sorry, uglies: no hours for you
CBS News | Submitted by: ClamSpank
"Two ex-managers for a clothing chain accused of discrimination say corporate representatives of the chain, Abercrombie & Fitch, routinely had them reduce the hours of less attractive salespeople... A group of minorities suing Abercrombie & Fitch doesn't think the retailer has the right to hire based on a look, a look they say too often is mostly white. '[The look] is dominated by Caucasian, football-looking, blond hair, blue-eyed males. Skinny, tall. You don't see any African American, Asian Americans,' says Jennifer Lu, an Asian who says she is suing the retailer for firing her and other Asians because management preferred white males."
|
|
Read article...
|
|
NRA desperately wants its own media outlet
USA Today | Submitted by: Cagehead
"Hoping to spend as much as it wants on next year's elections, the National Rifle Association is looking to buy a television or radio station and declare that it should be treated as a news organization, exempt from spending limits in the campaign finance law. 'We're looking at bringing a court case that we're as legitimate a media outlet as Disney or Viacom or Time-Warner,' the NRA's executive vice president, Wayne LaPierre, told The Associated Press... The NRA and its lawyers will 'look at every option to continue to exercise our First Amendment rights,' even anchoring a ship 'in international waters and beaming in' if necessary to get its gun-rights message on the air at election time, LaPierre said." [Maybe Wayne will revive Radio New York International?]
|
|
Read article...
|
|
Animal rights people fed ham to lambs
CNN | Submitted by: Cagehead
"Tests have confirmed that animal rights activists fed ham to sheep waiting for export to Kuwait, government officials said. The move left 1,800 sheep unsuitable for export to Islamic buyers in Kuwait because pork, and anything it comes into contact with, is considered unclean by Muslims... Group campaigner Ralph Hahnheuser has been charged over the incident with trespassing and contaminating goods to cause economic loss, and will appear in court next month."
|
|
Read article...
|
|
College Republicans embarrassed by racist photos
Pittsburgh Post-Gazette | Submitted by: Reid Fleming
The Penn State Black Caucus demanded that the chairman of the university's College Republicans resign after finding on his personal Web site a photo of a white man in blackface and another with a Ku Klux Klan reference. Black Caucus President Tiffanie Lewis yesterday said the pictures were inappropriate for the leader of a student organization and urged the resignation of Brian Battaglia, chair of the College Republicans, and anyone else involved in posting the pictures... The pictures on Battaglia's Web site were among dozens of pictures from a Halloween party Battaglia hosted at his off-campus home."
|
|
Read article...
|
|
|
|
|


Despense:
Refills: 0 1 2 3 4 5 6 7 8 9 10
Days of Supply:
Date of Script:
Pharmacy:
Prescription Provider:


The PostgreSQL adapter works both with the C-based (www.postgresql.jp/interfaces/ruby/) and the Ruby-base (available both as gem and from rubyforge.org/frs/?group_id=234&release_id=1145) drivers.
Options:
- :host — Defaults to localhost
- :port — Defaults to 5432
- :username — Defaults to nothing
- :password — Defaults to nothing
- :database — The name of the database. No default, must be provided.
- :schema_search_path — An optional schema search path for the connection given as a string of comma-separated schema names. This is backward-compatible with the :schema_order option.
- :encoding — An optional client encoding that is using in a SET client_encoding TO <encoding> call on connection.
- :min_messages — An optional client min messages that is using in a SET client_min_messages TO <min_messages> call on connection.
Methods
- active?
- adapter_name
- add_column
- default_sequence_name
- disconnect!
- native_database_types
- new
- pk_and_sequence_for
- quote
- quote_column_name
- reconnect!
- rename_table
- reset_pk_sequence!
- supports_migrations?
- table_alias_length
Constants
| BYTEA_COLUMN_TYPE_OID | = | 17 |
| TIMESTAMPOID | = | 1114 |
| TIMESTAMPTZOID | = | 1184 |
Public Class methods
[ show source ]
# File vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 54 54: def initialize(connection, logger, config = {}) 55: super(connection, logger) 56: @config = config 57: configure_connection 58: end
Public Instance methods
Is this connection alive and ready for queries?
[ show source ]
# File vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 61 61: def active? 62: if @connection.respond_to?(:status) 63: @connection.status == PGconn::CONNECTION_OK 64: else 65: @connection.query 'SELECT 1' 66: true 67: end 68: # postgres-pr raises a NoMethodError when querying if no conn is available 69: rescue PGError, NoMethodError 70: false 71: end
[ show source ]
# File vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 50 50: def adapter_name 51: 'PostgreSQL' 52: end
[ show source ]
# File vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 314 314: def add_column(table_name, column_name, type, options = {}) 315: execute("ALTER TABLE #{table_name} ADD #{column_name} #{type_to_sql(type, options[:limit])}") 316: execute("ALTER TABLE #{table_name} ALTER #{column_name} SET NOT NULL") if options[:null] == false 317: change_column_default(table_name, column_name, options[:default]) unless options[:default].nil? 318: end
[ show source ]
# File vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 239 239: def default_sequence_name(table_name, pk = nil) 240: default_pk, default_seq = pk_and_sequence_for(table_name) 241: default_seq || "#{table_name}_#{pk || default_pk || 'id'}_seq" 242: end
[ show source ]
# File vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 82 82: def disconnect! 83: # Both postgres and postgres-pr respond to :close 84: @connection.close rescue nil 85: end
[ show source ]
# File vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 87 87: def native_database_types 88: { 89: :primary_key => "serial primary key", 90: :string => { :name => "character varying", :limit => 255 }, 91: :text => { :name => "text" }, 92: :integer => { :name => "integer" }, 93: :float => { :name => "float" }, 94: :datetime => { :name => "timestamp" }, 95: :timestamp => { :name => "timestamp" }, 96: :time => { :name => "time" }, 97: :date => { :name => "date" }, 98: :binary => { :name => "bytea" }, 99: :boolean => { :name => "boolean" } 100: } 101: end
Find a table’s primary key and sequence.
[ show source ]
# File vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 264 264: def pk_and_sequence_for(table) 265: # First try looking for a sequence with a dependency on the 266: # given table's primary key. 267: result = execute("SELECT attr.attname, name.nspname, seq.relname\nFROM pg_class seq,\npg_attribute attr,\npg_depend dep,\npg_namespace name,\npg_constraint cons\nWHERE seq.oid = dep.objid\nAND seq.relnamespace = name.oid\nAND seq.relkind = 'S'\nAND attr.attrelid = dep.refobjid\nAND attr.attnum = dep.refobjsubid\nAND attr.attrelid = cons.conrelid\nAND attr.attnum = cons.conkey[1]\nAND cons.contype = 'p'\nAND dep.refobjid = '\#{table}'::regclass\n", 'PK and serial sequence')[0] 268: 269: if result.nil? or result.empty? 270: # If that fails, try parsing the primary key's default value. 271: # Support the 7.x and 8.0 nextval('foo'::text) as well as 272: # the 8.1+ nextval('foo'::regclass). 273: # TODO: assumes sequence is in same schema as table. 274: result = execute("SELECT attr.attname, name.nspname, split_part(def.adsrc, '\\\\\\'', 2)\nFROM pg_class t\nJOIN pg_namespace name ON (t.relnamespace = name.oid)\nJOIN pg_attribute attr ON (t.oid = attrelid)\nJOIN pg_attrdef def ON (adrelid = attrelid AND adnum = attnum)\nJOIN pg_constraint cons ON (conrelid = adrelid AND adnum = conkey[1])\nWHERE t.oid = '\#{table}'::regclass\nAND cons.contype = 'p'\nAND def.adsrc ~* 'nextval'\n", 'PK and custom sequence')[0] 275: end 276: # check for existence of . in sequence name as in public.foo_sequence. if it does not exist, join the current namespace 277: result.last['.'] ? [result.first, result.last] : [result.first, "#{result[1]}.#{result[2]}"] 278: rescue 279: nil 280: end
QUOTING ==================================================
[ show source ]
# File vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 113 113: def quote(value, column = nil) 114: if value.kind_of?(String) && column && column.type == :binary 115: "'#{escape_bytea(value)}'" 116: else 117: super 118: end 119: end
[ show source ]
# File vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 121 121: def quote_column_name(name) 122: %("#{name}") 123: end
Close then reopen the connection.
[ show source ]
# File vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 74 74: def reconnect! 75: # TODO: postgres-pr doesn't have PGconn#reset. 76: if @connection.respond_to?(:reset) 77: @connection.reset 78: configure_connection 79: end 80: end
[ show source ]
# File vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 310 310: def rename_table(name, new_name) 311: execute "ALTER TABLE #{name} RENAME TO #{new_name}" 312: end
Resets sequence to the max value of the table’s pk if present.
[ show source ]
# File vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 245 245: def reset_pk_sequence!(table, pk = nil, sequence = nil) 246: unless pk and sequence 247: default_pk, default_sequence = pk_and_sequence_for(table) 248: pk ||= default_pk 249: sequence ||= default_sequence 250: end 251: if pk 252: if sequence 253: select_value "SELECT setval('\#{sequence}', (SELECT COALESCE(MAX(\#{pk})+(SELECT increment_by FROM \#{sequence}), (SELECT min_value FROM \#{sequence})) FROM \#{table}), false)\n", 'Reset sequence' 254: else 255: @logger.warn "#{table} has primary key #{pk} with no default sequence" if @logger 256: end 257: end 258: end
[ show source ]
# File vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 103 103: def supports_migrations? 104: true 105: end
[ show source ]
# File vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 107 107: def table_alias_length 108: 63 109: end


{% extends 'commercialoperator/emails/base_email.html' %} {% block content %}
This is a reminder that your commercial operations licence {{ approval.lodgement_number}} expires on {{approval.expiry_date}}.
To renew your commercial operations licence please click here.
It is important you apply to renew your licence now so that we can process it before your current licence expires. If you would like to continue operating within WA’s national parks and other conservation reserves you need a licence under the Conservation and Land Management Regulations 2002.
As a reminder, the Commercial Operator Handbook outlines the conditions of your licence. The current handbook is available online at the {{ settings.DEP_NAME }} website:
{{ settings.COLS_HANDBOOK_URL }}Please make sure you have access to this handbook, either in hardcopy or online, when operating within WA’s national parks and conservation reserves.
If you have any questions about how to renew your licence please call Licencing Officer on {{settings.DEP_PHONE}} or email {{settings.SUPPORT_EMAIL}}.
{% endblock %}


{% extends 'app_server/main.html' %} {% block content %}
The object Name is:
The Handles are:
The ObjectRevision is


{% extends "hr/Base.html" %} {% load hr %} {% block breadcrumbs %} {% include 'prolific/includes/breadcrumbs.html' %} {% endblock %} {% block title %} Prolific bonus payments {% endblock %} {% block content %} {% if participants %} {% else %}
(No participants have bonus payments)
{% endif %}Above is the payment data for participants who:
participant.finished = True
)In Prolific, while viewing submissions for your study, select the "More" dropdown menu and go to the "Bulk bonus payment" option. Paste this list of payments there.
{% endblock %}


Coordinator
A coordinator for threads.
tf.compat.v1.train.Coordinator
tf.compat.v2.train.Coordinator
This class implements a simple mechanism to coordinate the termination of a set of threads.
# Create a coordinator. coord = Coordinator() # Start a number of threads, passing the coordinator to each of them. ...start thread 1...(coord, ...) ...start thread N...(coord, ...) # Wait for all the threads to terminate. coord.join(threads)
Any of the threads can call coord.request_stop()
to ask for all the threads
to stop. To cooperate with the requests, each thread must check for
coord.should_stop()
on a regular basis. coord.should_stop()
returns
True
as soon as coord.request_stop()
has been called.
A typical thread running with a coordinator will do something like:
while not coord.should_stop(): ...do some work...
A thread can report an exception to the coordinator as part of the
request_stop()
call. The exception will be re-raised from the
coord.join()
call.
try: while not coord.should_stop(): ...do some work... except Exception as e: coord.request_stop(e)
try: ... coord = Coordinator() # Start a number of threads, passing the coordinator to each of them. ...start thread 1...(coord, ...) ...start thread N...(coord, ...) # Wait for all the threads to terminate. coord.join(threads) except Exception as e: ...exception that was passed to coord.request_stop()
To simplify the thread implementation, the Coordinator provides a
context handler stop_on_exception()
that automatically requests a stop if
an exception is raised. Using the context handler the thread code above
can be written as:
with coord.stop_on_exception(): while not coord.should_stop(): ...do some work...
After a thread has called coord.request_stop()
the other threads have a
fixed time to stop, this is called the 'stop grace period' and defaults to 2
minutes. If any of the threads is still alive after the grace period expires
coord.join()
raises a RuntimeError reporting the laggards.
try: ... coord = Coordinator() # Start a number of threads, passing the coordinator to each of them. ...start thread 1...(coord, ...) ...start thread N...(coord, ...) # Wait for all the threads to terminate, give them 10s grace period coord.join(threads, stop_grace_period_secs=10) except RuntimeError: ...one of the threads took more than 10s to stop after request_stop() ...was called. except Exception: ...exception that was passed to coord.request_stop()
__init__
__init__(clean_stop_exception_types=None)
Create a new Coordinator.
clean_stop_exception_types
: Optional tuple of Exception types that should
cause a clean stop of the coordinator. If an exception of one of these
types is reported to request_stop(ex)
the coordinator will behave as
if request_stop(None)
was called. Defaults to
(tf.errors.OutOfRangeError,)
which is used by input queues to signal
the end of input. When feeding training data from a Python iterator it
is common to add StopIteration
to this list.joined
clear_stop
clear_stop()
Clears the stop flag.
After this is called, calls to should_stop()
will return False
.
join
join( threads=None, stop_grace_period_secs=120, ignore_live_threads=False )
Wait for threads to terminate.
This call blocks until a set of threads have terminated. The set of thread
is the union of the threads passed in the threads
argument and the list
of threads that registered with the coordinator by calling
Coordinator.register_thread()
.
After the threads stop, if an exc_info
was passed to request_stop
, that
exception is re-raised.
Grace period handling: When request_stop()
is called, threads are given
'stop_grace_period_secs' seconds to terminate. If any of them is still
alive after that period expires, a RuntimeError
is raised. Note that if
an exc_info
was passed to request_stop()
then it is raised instead of
that RuntimeError
.
threads
: List of threading.Threads
. The started threads to join in
addition to the registered threads.stop_grace_period_secs
: Number of seconds given to threads to stop after
request_stop()
has been called.ignore_live_threads
: If False
, raises an error if any of the threads are
still alive after stop_grace_period_secs
.RuntimeError
: If any thread is still alive after request_stop()
is called and the grace period expires.raise_requested_exception
raise_requested_exception()
If an exception has been passed to request_stop
, this raises it.
register_thread
register_thread(thread)
Register a thread to join.
thread
: A Python thread to join.request_stop
request_stop(ex=None)
Request that the threads stop.
After this is called, calls to should_stop()
will return True
.
Note: If an exception is being passed in, in must be in the context of
handling the exception (i.e. try: ... except Exception as ex: ...
) and not
a newly created one.
ex
: Optional Exception
, or Python exc_info
tuple as returned by
sys.exc_info()
. If this is the first call to request_stop()
the
corresponding exception is recorded and re-raised from join()
.should_stop
should_stop()
Check if stop was requested.
True if a stop was requested.
stop_on_exception
stop_on_exception( *args, **kwds )
Context manager to request stop when an Exception is raised.
Code that uses a coordinator must catch exceptions and pass
them to the request_stop()
method to stop the other threads
managed by the coordinator.
This context handler simplifies the exception handling. Use it as follows:
with coord.stop_on_exception(): # Any exception raised in the body of the with # clause is reported to the coordinator before terminating # the execution of the body. ...body...
This is completely equivalent to the slightly longer code:
try: ...body... except: coord.request_stop(sys.exc_info())
nothing.
wait_for_stop
wait_for_stop(timeout=None)
Wait till the Coordinator is told to stop.
timeout
: Float. Sleep for up to that many seconds waiting for
should_stop() to become True.True if the Coordinator is told stop, False if the timeout expired.


Dozens of dogs tested in French search for woman's forest killers
by AFPFrench police investigating the death of a pregnant woman mauled to death by dogs while walking in the woods have carried out DNA tests on 67 dogs to try identify those that attacked her, investigators said Thursday.
Elisa Pilarski, 29, was found dead on Saturday in Retz forest about 90 kilometres (55 miles) northeast of Paris.
A hunt with hounds was underway at the time in the forest where she was walking her own dog.
An autopsy showed that she died of bleeding after several dog bites to the upper and lower limbs and the head.
Frederic Trinh, the public prosecutor leading the investigation into her death, said Thursday that DNA tests had been carried out on 67 dogs -- 62 from the hunting club and five belonging to Pilarski and her partner.
An investigation has been launched against persons unknown -- a common procedure in France at the start of a probe -- for manslaughter due to carelessness or negligence.
Trinh said that police still had no main line of inquiry.
He confirmed that Pilarski had phoned her partner, who was at work, before the attack to tell him that she had come across "threatening dogs".
In a Facebook message she also wrote that a German shepherd was on the prowl but police had yet to identify that dog, Trinh said.
Pilarski's partner Christophe told BFM channel that when he arrived on the scene around 45 minutes later he came across hunting hounds first of all and a rider.
He then saw a pack of "around 30" dogs near a ravine where he found her body as well as the couple's own dog Curtis, whom he said had been bitten on the head.
Sobbing during the interview, he told BFM that what he initially mistook for a log turned out to be Pilarski's bare stomach.
She was "entirely undressed" and had been "bitten all over," he said.
"It can only be the hunt," he said.
According to local newspaper Le Courrier Picard, the hounds were hunting deer.
Hunting associations have however denied that they could be to blame.
The Paris-based French hunting association said in a statement that "nothing shows the involvement of hunting hounds in the death of this woman".
France has more than 30,000 hunts with hounds in total and the association stated that "these dogs are trained to hunt a particular animal and obey man in all circumstances".


Test that seeking attribute is true immediately after a seek to the current position, and goes back to false when the seek completes.


A tab
A
Foo.com
foo
Foo
foo
Void 0 Link
A
A
The Euro sign is € or €. In a link they render like this
Euro Doc


BantuDicoHistoryRealmStorage
public class BantuDicoHistoryRealmStorage
Handles translations persisted Realm in data base.
-
Type of the store.
- inMemory: Translations will be persisted only during application lifetime.
- persistent: Tanslations will be persisted between application laaunches.
Declaration
Swift
public enum StoreType
-
Creates an instance of BantuDicoHistoryRealmStorage.
Declaration
Swift
public init(storeName: String, storeType: StoreType = .persistent)
Parameters
storeName
name of the data base.
storeType
type of the store (in memory or persistent).
-
Fetch a translation result from the data base.
Declaration
Swift
public func fetchTranslation(word: String, language: String,translationLanguage: String, queue: DispatchQueue = DispatchQueue.main, completion: @escaping BDFetchTranslationCompletionHandler)
Parameters
word
the word to translate.
language
the language of the word.
translationLanguage
the language to which the word will be translated.
queue
the queue on which the completion will be called.
completion
closure called when task is finished.
-
Fetche translations which word property begins with
beginning
Declaration
Swift
public func fetchTanslationsBeginningWith(_ beginning: String, language: String, translationLanguage: String, queue: DispatchQueue = DispatchQueue.main, completion: @escaping BDFetchTranslationsCompletionHandler)
Parameters
beginning
the string that translation’s word begins with.
language
language of the translated word.
translationLanguage
language of the translation.
queue
the queue on which the completion will be called.
completion
closure called when task is finished.
-
Fetches all history.
Declaration
Swift
public func fetchAllTranslations(queue: DispatchQueue = DispatchQueue.main, completion: @escaping BDFetchTranslationsCompletionHandler)
Parameters
queue
the queue on which the completion will be called.
completion
closure called when task is finished.
-
Saves a translation history or updates it if it already exists.
Declaration
Swift
public func saveTranslation(word: String, language: String, translationLanguage: String, translations: [String], queue: DispatchQueue = DispatchQueue.main, completion: @escaping BDSaveTranslationCompletionHandler)
Parameters
word
the word to translate.
language
the language of the word.
translationLanguage
the language to which the word will be translated.
queue
the queue on which the completion will be called.
translations
the translations of the word.
completion
closure called when task is finished.
-
Saves a translation or updates it if it already exists.
Declaration
Swift
public func saveTranslation(_ translation: BDRealmTranslation, queue: DispatchQueue = DispatchQueue.main, completion: @escaping BDSaveTranslationCompletionHandler)
Parameters
translation
translation to save or update.
completion
closure called when task is finished.
-
Add translation to favorites and saves it to history.
Declaration
Swift
public func addTranslationToFavorites(_ translation: BDRealmTranslation, queue: DispatchQueue = DispatchQueue.main, completion: @escaping BDAddTranslationToFavoritesCompletionHandler)
Parameters
translation
translation to add or remove from favorites.
isFavorite
if true then translation will be added to favories. If false then translation will be removed from favorites.
queue
the queue on which the completion will be called.
completion
closure called when task is finished.
-
Add translation from favorites and saves it to history.
Declaration
Swift
public func addTranslationToFavorites(word: String, language: String, translationLanguage: String, translations: [String], queue: DispatchQueue = DispatchQueue.main, completion: @escaping BDAddTranslationToFavoritesCompletionHandler)
Parameters
word
the word to translate.
language
the language of the word.
translationLanguage
the language to which the word is translated.
queue
the queue on which the completion will be called.
translations
the translations of the word.
completion
closure called when task is finished.
-
Remove a translation from favorites. If a translation is not favorite or does not exist then operation will finish with success.
Declaration
Swift
public func removeTranslationFromFavorites(_ translation: BDRealmTranslation, queue: DispatchQueue = DispatchQueue.main, completion: @escaping BDRemoveTranslationFromFavoritesCompletionHandler)
Parameters
translation
translation to remove from favorites.
queue
the queue on which the completion will be called.
completion
closure called when task is finished.


| ID |
Company name |
Turnover |
CEO |
Board of Directors |
Listed in Stock Exchange |
Sector |
About Company |
Stock Code |
Action |
| {{company.id}} |
{{company.companyname}} |
{{company.turnover}} |
{{company.ceo}} |
{{company.bod}} |
{{company.lse}} |
{{company.sector}} |
{{company.boc}} |
{{company.stock}} |
|


To access the node at position i in a singly-linked list
i
How can we reach the ith position?
We have to work from the front.


| pid_exists {parallelly} | R Documentation |
Check whether a process PID exists or not
pid_exists(pid, debug = getOption2("parallelly.debug", FALSE))
pid |
A positive integer. |
There is no single go-to function in R for testing whether a PID exists
or not. Instead, this function tries to identify a working one among
multiple possible alternatives. A method is considered working if the
PID of the current process is successfully identified as being existing
such that pid_exists(Sys.getpid())
is TRUE
. If no working
approach is found, pid_exists()
will always return NA
regardless of PID tested.
On Unix, including macOS, alternatives tools::pskill(pid, signal = 0L)
and system2("ps", args = pid)
are used.
On Windows, various alternatives of system2("tasklist", ...)
are used.
Returns TRUE
if a process with the given PID exists,
FALSE
if a process with the given PID does not exists, and
NA
if it is not possible to check PIDs on the current system.
The Open Group Base Specifications Issue 7, 2018 edition, IEEE Std 1003.1-2017 (Revision of IEEE Std 1003.1-2008) https://pubs.opengroup.org/onlinepubs/9699919799/functions/kill.html
Microsoft, tasklist, 2018-08-30, https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/tasklist
R-devel thread 'Detecting whether a process exists or not by its PID?', 2018-08-30. https://stat.ethz.ch/pipermail/r-devel/2018-August/076702.html


I’ve been using computers for almost 28 years now (yes, my first ever computer was ZX Spectrum when I was 3) and thoughout that time I was always using traditional keyboards. Some of them were better, some of them were worse, but I never thought about all those fancy ‘flat’, waved or ergonomic keyboards. That changed recently as I got a nice and shiny Macbook Pro.
On April 21st I pushed the ScalaWebSocket library to GitHub. But what is it? As the name suggests, it’s WebSockets for Scala.
There are already a few implementations of WebSocket for Java, there is also the Scala project called wCS but all of them support Javaish style of passing the anonymous implementations of some kind of Listener interface. I didn’t want that as I prefer the functional style of handlers.
ScalaWebSocket is a thin wrapper around async-http-client and it exposes a more Scala-like vocabulary to interact with WebSockets.
I need this library to talk to SocketIO servers, so in version 0.2.0 I will implement some basic support for SocketIO.
For now, please use it and report any issues you have. My goal for this library is to make WebSocket natural in Scala.
This is a simple log of what I have done during past few days trying to deploy a simple app to OpenShift. I thought it would be quite easy but apparently this is beyond my knowledge. My application is a simple Hello World app. The only real requirement is that I wanted this app to compile with Scala 2.10.
Setup
I won’t discuss how to set up the application on OpenShift (unless it is really needed). The only thing worth mentioning is that you will need a Do-It-Yourself type.
SBT
There is no SBT on OpenShift. That’s right, you have to get it yourself. OpenShift however provides a nice way of storing things with its data directory (available at $OPENSHIFT_DATA_DIR) and it’s action hooks are the way to go in this case. After some trial and error this is the script I came up with.
pre_build script
123456789
cd $OPENSHIFT_DATA_DIR
if [[ -d sbt ]]; then
echo "SBT installed"
else
curl -o sbt.tgz http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.2/sbt.tgz
tar zxvf sbt.tgz sbt
rm sbt.tgz
fi
This script basically downloads SBT from its site but only if SBT folder is not present in the data directory. Then the downloaded tgz archive gets unpacked and SBT is ready to be used.
Building
Now this is the part I spent most time with and unfortunately I can’t make it fully work :( There were several issues with building using SBT, but after some time it almost worked. Here’s the build script I developed that semi-works.
This took a while to figure out. Let’s go line by line to see what everything is needed for. Lines 1, 2 and 3 define three variables that are required to run SBT (they could have been moved to pre_build script to keep everything SBT related in one place).
* Line 1 simply defines the path to SBT directory.
* Line 2 is a variable with path to folder SBT uses to store its data. On OpenShift you don’t have permission to write to your home directory, hence a need for custom dir.
* Line 3 is like line 2 except for Ivy cache.
* Line 5 then switches to the repository directory. This is the place where your sources reside and this is mostly the place where you should start your build at.
* Line 7 is a simple invocation of the SBT with the predefined settings. I’m generating a start script here (using xsbt-start-script-plugin) and that’s why I only include this goal.
This somewhat works. Considering the requirements we now have a project that uses Scala 2.10. But there are now two things to consider.
At first in pre_build I downloaded SBT 0.12.2 and in project build.settings I had SBT setup to 0.12.1. This triggered a compilation of ‘compiler-interface’.
12
remote: [info] Compiling 1 Scala source to /var/lib/openshift/512617424382ec272a0000b1/app-root/runtime/repo/target/scala-2.10/classes...
remote: [info] 'compiler-interface' not yet compiled for Scala 2.10.0. Compiling...
But this failed. Compilation wouldn’t finish and the process was killed. Small fix in build.properties and upping the actual SBT version to 0.12.2 fixed this – no more recompilation of ‘compiler-interface’.
When you push your project to OpenShift now, it downloads SBT, unpacks it and tries to build your project. And it fails with the same error as above.
The process is being killed anyway. This was driving me crazy, because no matter what I did the build always crashed. Then I tried SSH and run the script manually and… bam! It worked.
Build successful when run manually from SSH session
build
/var/lib/openshift/512617424382ec272a0000b1
/var/lib/openshift/512617424382ec272a0000b1/app-root/runtime/repo
[info] Loading project definition from /var/lib/openshift/512617424382ec272a0000b1/app-root/runtime/repo/project
[info] Set current project to YAT Server (in build file:/var/lib/openshift/512617424382ec272a0000b1/app-root/runtime/repo/)
[debug]
[debug] Initial source changes:
[debug] removed:Set()
[debug] added: Set(/var/lib/openshift/512617424382ec272a0000b1/app-root/runtime/repo/src/main/scala/pl/apptile/yat/YAT.scala)
[debug] modified: Set()
[debug] Removed products: Set()
[debug] Modified external sources: Set()
[debug] Modified binary dependencies: Set()
[debug] Initial directly invalidated sources: Set(/var/lib/openshift/512617424382ec272a0000b1/app-root/runtime/repo/src/main/scala/pl/apptile/yat/YAT.scala)
[debug]
[debug] Sources indirectly invalidated by:
[debug] product: Set()
[debug] binary dep: Set()
[debug] external source: Set()
[debug] Initially invalidated: Set(/var/lib/openshift/512617424382ec272a0000b1/app-root/runtime/repo/src/main/scala/pl/apptile/yat/YAT.scala)
[debug] Recompiling all 1 sources: invalidated sources (1) exceeded 50.0% of all sources
[info] Compiling 1 Scala source to /var/lib/openshift/512617424382ec272a0000b1/app-root/runtime/repo/target/scala-2.10/classes...
[debug] Running cached compiler 12a6774, interfacing (CompilerInterface) with Scala compiler version 2.10.0
[debug] Calling Scala compiler with arguments (CompilerInterface):
[debug] -d
[debug] /var/lib/openshift/512617424382ec272a0000b1/app-root/runtime/repo/target/scala-2.10/classes
[debug] -bootclasspath
[debug] /usr/lib/jvm/java-1.7.0-openjdk-<IP_ADDRESS>/jre/lib/resources.jar:/usr/lib/jvm/java-1.7.0-openjdk-<IP_ADDRESS>/jre/lib/rt.jar:/usr/lib/jvm/java-1.7.0-openjdk-<IP_ADDRESS>/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.7.0-openjdk-<IP_ADDRESS>/jre/lib/jsse.jar:/usr/lib/jvm/java-1.7.0-openjdk-<IP_ADDRESS>/jre/lib/jce.jar:/usr/lib/jvm/java-1.7.0-openjdk-<IP_ADDRESS>/jre/lib/charsets.jar:/usr/lib/jvm/java-1.7.0-openjdk-<IP_ADDRESS>/jre/lib/netx.jar:/usr/lib/jvm/java-1.7.0-openjdk-<IP_ADDRESS>/jre/lib/plugin.jar:/usr/lib/jvm/java-1.7.0-openjdk-<IP_ADDRESS>/jre/lib/rhino.jar:/usr/lib/jvm/java-1.7.0-openjdk-<IP_ADDRESS>/jre/lib/jfr.jar:/usr/lib/jvm/java-1.7.0-openjdk-<IP_ADDRESS>/jre/classes:/var/lib/openshift/512617424382ec272a0000b1/app-root/data/.sbt/boot/scala-2.10.0/lib/scala-library.jar
[debug] -classpath
[debug] /var/lib/openshift/512617424382ec272a0000b1/app-root/runtime/repo/target/scala-2.10/classes
[debug] Scala compilation took 34.206682197 s
[debug] Step 2 changed sources and immdediate dependencies:
[debug] Set(/var/lib/openshift/512617424382ec272a0000b1/app-root/runtime/repo/src/main/scala/pl/apptile/yat/YAT.scala)
[debug] Non-trivial strongly connected components:
[debug]
[debug] Step 2 invalidated sources:
[debug] Set(/var/lib/openshift/512617424382ec272a0000b1/app-root/runtime/repo/src/main/scala/pl/apptile/yat/YAT.scala)
[info] Wrote start script for mainClass := Some(pl.apptile.yat.YAT) to /var/lib/openshift/512617424382ec272a0000b1/app-root/runtime/repo/target/start
This is quite puzzling and I can’t figure out why automatic build doesn’t work. What’s worth mentioning though is that it does work when you change Scala to 2.9.2. But it’s against requirements and hence I stopped at this point, unable to continue.
Summary
While I was really happy that most of the things were quite easy to start with, inability to compile the sources makes it a no-no for further work, like actually starting a spray-can server. My application was a Hello World app and if this can’t compile… Sorry OpenShift, for now I’m switching to CloudFoundry to see how it fares.
Recently at Bootstrap I was working on the profile page part. I had to introduce a simple validation of passwords – when you type in your password, you often have to repeat it. This was implemented in a few places already, however it wasn’t correct – changing the original password did not trigger validation.
To see how this works, just go to the Bootstrap page and play with the registration form’s “password” and “repeat password” inputs. All code snippets are taken from Bootstrap.
Requirements
We have two input fields and we just need to validate whether values in them are synchronized. Values entered in both these fields need to be the same, if they’re not, then display error message next to the second input field that the contents are invalid.
Simple approach
When I started, there was something implemented already. It was a simple solution that based on the ng-change directive. This directive was attached to the repeated field and every time the value changed, method checkPassword() in RegisterController was called.
This isn’t the best solution. First of all, this only checked equity upon changing the repeated field, not the original password field. To make this work it would be required in both original and repeated fields. This also wasn’t reusable – to use it in another place, checkPassword method had to be actually copied.
Angular directive to the rescue
Directives in AngularJS are used to create reusable components so I thought about how to use them to solve the validation problem. It was rather easy and straightforward.
At first I was trying to attach $parser function to just the element the directive was attached to. But this didn’t work, because when I was comparing to the value stored in controller the results not always were correct. The reason for this is that invalid values are not passed to controller, and so when one value was invalid, it wasn’t present in controller, and directive failed. As you can see, the trick is to attach $parsers to each control that requires syncing. This took me some time to figure out, but for now it works quite nice.
Summary
Angular directives are quite nice. They can be used to create reusable components and in this case, I created something that was automatically usable in three places, without the need to writing any controller code. Moreover, this directive is not only for passwords – rename that to stringsMatch and you get a nice directive that checks if you string values are in sync. Neat!
The year 2012 was a year of change to me. First I was moved to a new team in CGM Poland. Things were nice at first, but after a while I lost all my motivation to work. It was time to change the organization and so I applied to a company called SoftwareMill.
Why them? Trully a coincidence. I was browsing some stuff on LinkedIn and I stumbled upon their job posting and I got intrigued by the fact that they mentioned possibility to work from home. As it turned out, the whole team is distributed! But then I took a closer look at the company and noticed that on SoftwareMill website there’s a section about developers. Browsing short descriptions of those who worked there I thought that it was a very good company to work at. So I applied in August. It took a longer while to finish the recruitment process (I wasn’t accepted at first), but I finally started work at SoftwareMill on 2nd January 2013.
Now a month has passed and I have to say that I’m very happy I was given the chance. Not only have I met some brilliant people but it was also a great cultural change for me: from big company, corporation, to a smaller entity with more focus on single developers.
This experience is quite pleasant. Frequent code reviews is something I often missed in my previous jobs but here I have them almost every push to Git repo. That’s reassuring, as any mistake I make may be quickly recognized by someone else, but I think I don’t have to stress out how important code reviews are :)
The next thing I’d like to mention is the Scrum/Chrum meetings. Every team has a Scrum sometime before 10:00. It’s your normal Scrum meeting where you answer the three questions. Then is the Chrum meeting. Since the team is distributed, we don’t see each other normally, so at 10:00 we have a video meeting where we answer additional, fourth question. This question can be anything – from what was your yesterday’s dinner to how does your surrounding look like at the moment. This is really quite fun meeting and most importantly it’s self organizing. There is no specific order at which people speak out but we usually end the meeting around 10:20. When the official meeting is over we are free to discuss about anything.
Working from home was something I always wanted to try and now I have the chance. I was affraid though that some responsibilities might take over my work (like cooking dinner, for example) but fortunately that’s not the case. I think I adapted pretty quickly to working from home, despite many distractions. There are occasional problems, like having a sick kid at home, but other than that, distractions can be avoided. It’s also worth noting that remote work does not equal to working from home, which I hope to prove sometime soon :)
For now I’m developing this open source project called SML Bootstrap and while it’s nothing too big, it helps me to familiarize with how things work at SoftwareMill. I also encourage you to check this project out – it’s quite simple, but can be useful if you start your project with Scala and AngularJS.
As a last note I’ll just mention that I was given this Macbook Pro to work with ;) While I never agreed with how Apple works, but I have to admit that the quality of build of this machine is just superb.
So I recently started some really simple Scala development for Android. However because I’m a very lucky person, I stumbled upon my first problem the very first moment I tried doing something nice.
There is a neat way for doing things in Android with AsyncTasks – this cool utility abstracts away the need for creation and management of threads for invoking stuff that would block UI thread. For more info just go to AsyncTask documentation.
So I tried doing something with this cool AsyncTask and here’s the class definition:
The major problem here is that this thing compiles. Running this on Android emulator I got an exception suggesting that doInBackground is not implemented (it’s abstract in AsyncTask)… So where’s the problem?
Googling about this I found this bug. I won’t go into detail, however to make this code work you have to actually change the signature of doInBackground. Instead of String input, you need AnyRef and just cast params to the desired class.
I didn’t attent any conference for the past 18 months. Last time I was on one was when I was sent to eye-opening meeting with Greg Young. Recently a friend of mine suggested that we should go to Warsjawa 2012 conference as it’s free and relatively close to Lublin.
We decided to sign up for a workshop called ‘One day with a difficult client’ that was lead by guys from SoftwareMill. The idea of the workshop was to show attendees some common problems people face when working with their clients. Even though I don’t work directly with our client every day I read a few things here and there how they can be PITA and I had some expectations regarding this workshop. It turned out great and here’s how it went.
The whole workshop began with a short, but fun, game which helped every attendee remember other’s names. This game is very simple: just say your name and make up some kind of symbol (V sign, finger on your mouth, anything) and the person after you has to repeat EVERY name and EVERY symbol before. There were 13 attendees and 3 leaders so after 16 rounds we pretty much knew every name. Very fun way of introducing a group of people to each other, and very efficient at that.
After that we were split into three groups and each group was given a contract to build a space capsule. We were presented with some stuff that we could use (scissors, paper, glue, boxes, foil – you get the picture) and we had some time to think about the contract. The whole game was to take around 1,5 hours and it was split into a few 15-20 minute sprints. After each sprint our client would come and look at what we’ve done and answer questions.
When the time run out we were taken to the launch site – the capsule had to actually fly! The clients were mostly happy and we mostly delivered what they wanted. Or did we? That was the whole point of the workshop. We started out with a contract for a space capsule and ended up with a prototype model that instead of flying out to space was to fly just three meters straight from the launcher, which wasn’t a rocket booster but a simple slingshot.
At the end, we were doing retrospectives in teams and shared our experiences with others. Some teams had problems other didn’t and guys from SoftwareMill told us what we did good and where our attention should be next time. I can’t tell for other teams, but our team didn’t have most of the problems, and we also did the best looking capsule! Unfortunately we did one thing wrong – we emphasized one aspect of the capsule without much regard to another which resulted in the best looking and most secure capsule that… didn’t fly.
There were a few things I didn’t like though. The difficult client didn’t appear that difficult after all. I expected the client to be a little more aggresive, inconsistent (the ‘client’ had three representatives and on each meeting another representative was present, and mostly agreed with his/her colegues) and impatient. But apparently some previous groups had problems already and this workshop was meant to be fun and not hardcore :) I can live with that.
Another ‘thing’ was that shortly after the workshop was over, everyone was gone. We couldn’t talk more about what happened and share more experiences, not only regarding workshops. I’d definately fix that next time because for me this was the worst thing to happen.
Overall, it was one of the best days lately. Lots of laughter, lots of good experience and lots of great people to work with. I think I will attend Warsjawa 2013 :)
Before proceeding please remember that I’m learning Scala and what follows is the result of lack of proper knowledge :)
In the previous article I wrote how to specify where annotations should be applied. But if you remember an example class I ported from Java to Scala there was one thing left to do and that was using constants in annotations.
but in Scala USER_ID and STATUS_ID are not resolved. Since normally an object is used for defining static content I then tried using a companion object to store those constants:
but this also didn’t work as it gave the following error:
12
error: annotation argument needs to be a constant; found: ScanningBookmark.USER_ID
case class ScanningBookmark(@(Field@field)(ScanningBookmark.USER_ID) userId: Long,
At this point I gave up. I tried looking for answer at Google but didn’t find it – or as it occured later – just missed it.
The problem here is that in Scala a constant doesn’t have type in definition. The last thing necessary to make those constants work was removing the String type from definitions:
Recently in Twittory I moved from Java to Scala. Well, to be honest I just switched from Java to Scala syntax and will move on to adapt to functional programming principles.
There was one glitch during the process. I am using Spring Data for MongoDb and to ease up a few queries I used statics to define field names of objects I store.
Here’s an example: very simple class that I use to store tweet scanning bookmarks:
Storing this thing with Spring Data. The static fields defining field names are here so that somewhere else I can define a query using those fields. The @Field annotations allow customization of field names in collections and while here they are the same as actual field names, they could be set differently.
Now when I was rewriting this to Scala, it’s quite obvious I ended up with a case class.
places the @Field annotation on constructor arguments, fields and Scala accessors which probably makes Spring Data scanner fail. The result is that these fields are no longer customizable and I wanted to somehow remedy that.
Playing with @BeanProperty annotation didn’t solve the problem because apparently the @Field annotation is then also placed on generated accessors. But solution to this problem is actually quite easy. In Scala there are target meta-annotations that can be put on the annotation type when instantiating the annotation. There are six of those: @beanGetter, @beanSetter, @field, @getter, @setter, @param. Consult the target package for more info.
And that’s it! But there’s one last thing to make it behave like Java version. In Java I used statics to define field values (so that there’s no problem when some name changes). So I want something like this:
So the course started a week ago and I’d like to share my opinion after the first week.
First of all I got this feeling that most people attending the course thought that it’ll be a Scala course. While Scala is used to demonstrate functional programming principles it is not a Scala course. You have to know Scala on your own, however for now Martin Odersky does explain it’s syntax. If you’re into learning Scala only, this is not a course for you IMO.
Lectures are recorded with good quality and Martin’s English is very good, he also speaks slowly. This is OK for people who have problems with understanding English and for those who don’t, you can increase video speed to 1.25x or even 1.5x and it’s still quite easy to understand what he’s saying.
Since it’s my first Coursera course, I was surprised with the first quiz during a lecture :) but these are nice little stops for you to think. Sometimes you have to check a proper answer and sometimes you are only asked to do something on your own.
As for assignments, they are pretty clear. You have to do a thing or two and submit your solutions. Altough there are tests written for you already, the very first thing that I did for the first assignment was adding a few tests for corner cases. Later on things were smoothly as the assignments were not that hard.
I’ve had a few problems with the countChange function but mainly because I made some wrong assumptions (thanks go to @marcinderylo for pointing that out to me). I didn’t use Eclipse or Intellij Idea for the first assignment – I used vim and just set tests to run continously in sbt. For the next week I plan to use Intellij, however the course is setup using Eclipse (it’s probably easier to do, since Scala plugin for Intellij is like alpha stage).
And that’s it. This is the first ‘real’ learning since I finished university, but this time it’s for the good cause :) I hope everyone enjoys the course and I really hope that my skills in functional programming will benefit from the it.


| Home | Trees | Index | Help |
|---|
| Package svnmailer :: Module processes :: Class Process |
|
object
--+
|
Process
| Method Summary | |
|---|---|
Initialization | |
Process |
Returns the process object of a detached process (Class method) |
Process |
Returns the process object of a piped process (Class method) |
Process |
Returns the process object of a piped process (Class method) |
| int |
Waits for the process to end |
| Inherited from object | |
x.__delattr__('name') <==> del x.name... | |
x.__getattribute__('name') <==> x.name... | |
x.__hash__() <==> hash(x)... | |
helper for pickle... | |
helper for pickle... | |
x.__repr__() <==> repr(x)... | |
x.__setattr__('name', value) <==> x.name = value... | |
x.__str__() <==> str(x)... | |
| Inherited from type | |
T.__new__(S, ...) -> a new object with type S, a subtype of T... |
| Instance Variable Summary | |
|---|---|
| file | fromchild : pipe from the child |
| file | tochild : pipe to the child |
| Class Variable Summary | |
|---|---|
| str | IMPLEMENTATION : A token describing the chosen implementation. |
| Instance Method Details |
|---|
__init__(self,
cmd,
pstdin=False,
pstdout=False,
pstderr=False,
detach=False)
Initialization |
wait(self)Waits for the process to end
|
| Class Method Details |
|---|
detach(cls, command)Returns the process object of a detached process The function spawns a command detached from the current one. All std-handles are inherited (no pipe is opened).
|
pipe2(cls, command)Returns the process object of a piped process The function spawns a command and opens two pipes. One pipe is for writing to command's stdin and the other one is for reading stdout. stderr is inherited from the caller.
|
pipe4(cls, command)Returns the process object of a piped process The function spawns a command and opens two pipes. One pipe is for writing to command's stdin and the other one is for reading stdout + stderr (together)
|
| Instance Variable Details |
|---|
fromchildpipe from the child
|
tochildpipe to the child
|
| Class Variable Details |
|---|
IMPLEMENTATIONA token describing the chosen implementation. Possible tokens are: subprocess, popen, win32api, dumb
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.0 on Sun Sep 25 20:49:05 2005 | http://epydoc.sf.net |


Note: the latest functionality is tested only with Role lock on!
Add players by full BattleTag (PlayerName#1234 or PlayerName-1234). BattleTags are case-sensitive
Move players from lobby to teams and back with drag & drop or double click
Check-in a bunch of players with 'Manual check-in' button or one by one with drag & drop
Sort lobby for easier player management
Click 'Fill teams' to put 12 random players in teams
Click 'Balance teams' to automatically swap players between teams for best balance. Click again to get another combination
Click 'Blue/Red won' after a match to increase/reduce players SR. ΔSR = 2k/1+10(SRwinner-SRlooser)/830, where k changes from 115 to 25, depending on the games played; SRwinner/loser - the average SR of the winning or losing team
Click 'Draw' in case of a draw, just like 'Blue/Red won' button it will mark players, who played the last game with a color. Marked players will have a lower priority next time you fill the teams.
The priority also depends on four other factors: 1. Players who can play only one role has the same priority as players, who played last game. 2. Players who played > 70% games they were checked-in for will have lower priority than the rest. 3. Players who played > 90% will have even lower priority. 4. Then go rest of the players. 5. And finally, players, who marked as "Ghosts" in their profile will have even lower priority and will be playing only if there is no one else to play.
Players, who behaved badly can be punished by increasing penalty level in their profile. Each penalty level will reduce frequency at which they play: by 10%, 25%, 51% and - only for role-one-tricks further by 67%, 83% and 100%.
Click 'ReFill & Balance' to clear teams; and then fill them randomly, non-marked players go first; It also will balance them. Click again to get another combination
Right click on a player to edit name, SR and class. Or to Pin a player and to make sure he always plays
Player list and all settings are automatically saved in your browser's storage
Import players
For text format, fields can be separated with space, tab or following symbols: . , ; |
SR, class and offclass are optional.
Export players
Export teams
Click here to copy teams table to clipboard. Paste to Excel or Google Sheets.
Player name
BattleTag:
🔒
✍
Classes
✍
Top heroes:
Stats last updated:
Settings
Common
Team slots
%
%
%
Stats
Region
days
Classic balancer options
Balance priority
equal SR
equal classes
Role lock balancer options
Balance priority
equal SR
players on their main classes
Team variativity
The best balance
More combinations to chose from
Update stats
Update stats older than 0 days
Stats older than 0 will be updated.


I’m a data scientist based in Sydney, Australia. I currently work in the renewable energy sector, but have experience in research, teaching, and consulting in various fields including data science, coastal engineering, and climate science. I’m fascinated with the natural and engineered world, and how data science can be used to solve problems in these domains. I also enjoy developing open-source, educational data science material. Here’s some material I’ve come up with so far: Python Packaging book, Python Programming for Data Science, Deep Learning with PyTorch, Python for Geospatial Analysis.
PhD in Coastal Engineering, 2019
University of New South Wales
BEng in Civil Engineering, 2016
University of New South Wales
BSc in Climate Science, 2016
University of New South Wales


Hello, my name is Chiwei.
My school is called Fuhsing, and I've been a student in Fuhsing for more than 9 years.
This is what Fuhsing looks like
My School's Website


Overview of the way that batch endpoints should be implemented.
To facilitate the timely querying and processing of products and orders, the API specification is implemented in a way that allows many endpoints to accept return a collection (batch) or elements in lieu of a single element. This enables a higher throughput of product content, and price / quantity updates, and orders between your system and the Voyageone application. Exactly how many elements to put in each batch request to the API is configurable, and will be provided by you to your Voyageone business contact during launch. If your system cannot support processing multiple elements in a single request, this maximum batch size can be set to one.
Please consider the following considerations when developing your API endpoints that process batches
All batch endpoints should return element-level errors (as opposed to response-level errors) where possible. For more information on the distinction between these two error placements, please see the Errors Overview page.
Voyageone requires that there be a one-to-one matching between the elements in a request batch and the elements in the response batch. This mapping is determined based on the unique identifier of the batch element (SellerSKU for ProductGroup / BuyableProduct, and ID for Order). For example, if 3-item batch request is sent to the Create and update products endpoint containing SellerSKUs "ABC", "DEF", and "EFG" Voyageone would expect a 3-item response containing those same SellerSKUs.
Please note that the identifier of the elements returned in the batch response must match the identifier of the element sent in the batch request exactly-- character for character. For example, if your system XML-encodes all SKUs when storing them, and your API is sent an item with SellerSKU "PURSE&BAG" then the actual stored value in your database may be "PURSE&BAG." Your API will need to handle cases like this where the value stored in your system differs from the value sent by Voyageone and both accept and return the value that was originally sent ("PURSE&BAG") in all API responses.
Alternately, if reversing to the original value is not possible for your system, you may return an Error for that element in the batch indicating that the value is not valid per your system specifications.