Man dies, teen trapped and left fighting for life after two-car crash
by Rachel EddieAn elderly man has been killed and an 18-year-old driver is fighting for his life after a two-car crash in the state's east.
Emergency services were called to the South Gippsland Highway in Leongatha, near Steele Street, at 3.15am on Monday.
A 79-year-old man from Meeniyan died at the scene.
A 74-year-old woman travelling in the same car, also from Meeniyan, was flown to the Royal Melbourne Hospital in a stable condition with chest injuries.
An 18-year-old Leongatha man, who had to be freed after becoming trapped in the second car, has been airlifted to The Alfred hospital in a critical condition.
Police are investigating the exact cause of the crash.
The collision brings Victoria's road toll for the year so far to 241 – 57 more than the same time last year.
The South Gippsland Highway remained closed on Monday morning, just south of the hospital.
Police were directing traffic and the Department of Transport advised motorists to use the Bass Highway and Koonwarra-Inverloch Road instead.
Anyone with information should contact Crime Stoppers on 1800 333 000 or submit a confidential report at www.crimestoppersvic.com.au.


--- layout: noimage title: Privacy Policy permalink: /privacy-policy/ ---
This is privacy policy page


 Salindeg, this city.
Slain was Jenifer Quiton, 40.
Police are pursuing suspect Edgardo Quidolit.
The victim and the suspect are both residents of Bgy. Salindeg, Vigan City, Ilocos Sur.
Quiton was playing cards at the wake of Evelio Banza in the village when Quidolit suddenly arrived.
The suspect, for unknown reason, shot the victim thrice, to the surprise of the people at the wake.
Witnesses rushed Quiton to Gabriela Silang Hospital in Vigan City, where she was declared dead on arrival by attending physician, Dr. Milalyn Ruth Delizo.
The suspect fled after the gun attack.
Authorities are eyeing old grudge as possible motive for the killing.


Output format:
QTree
Forest
Tree will display here when loaded...
Node Label:
↓
Help
Click and drag display
Click on leaf to create two daughters
Click on inner node to create new parent and left sister
Ctrl+Click on node to select label
Click "Set Label" or press "Enter" to give label to currently selected node
Alt+Click on node to remove all node descendants
Paste an existing tree in the text area below and click "Import" to modify it in the graphics editor.


OVERVIEW
Hercules is is the nationâ€™s leading provider of Oxygen, DME and Clinical Respiratory Services for Long Term Care. For more than 25 years, Hercules has set the industry standard for service, value and patient care. Hercules is dedicated to improving clinical outcomes for our patients and financial outcomes for our partners in Long Term Care. Hercules strives to develop win/win relationships that deliver significant financial benefits for our partners. We are able to achieve this through a comprehensive approach to our relationships which include, cost reduction measures, revenue enhancement programs, productivity and outcomes improvement programs and regulatory compliance support.
VISION
- Sustainability: Hercules' businesses are driven by a focus on sustainable practices that contribute to the planet’s health, and a deep commitment to the communities we impact.
-
- Integrity and Fairness: We strive to the highest ethical standard and embrace fairness and respect.
- Teamwork: We encourage and promote teamwork and team spirit.
- Stakeholder Focus: We ensure customer satisfaction and preserve and enhance shareholder value.
- Dynamism: We promote responsive, effective and results-oriented behaviour. We are innovative and technology savvy.
- Quality: We achieve the highest quality standards


First page
Back
Continue
Last page
Overview
Graphics
Outline
What is python?
Why use python?
How to use python?
Basic types
Containers
Basic control flow
Plotting
Common packages


C.H.I.P, flic and openhab
So I finally received my C.H.I.P, and over the break I purchased myself some flic bluetooth buttons with the plan of making some nice push buttons around the home to control openhab. This idea mostly came from usablity/speed of use of openhab. Having the dashboard in the middle of the house is a nice idea, but if you are in another room, without your phone there isn’t too much you can do without having to go to this dashboard to interact with openhab. Flic makes it nice and convenient to do things you do often, with a click, double click or press of a button!
Some examples, incase this still seems silly to you.
- A button by the back door
- A single click it will “turn off” the house. This includes lights, lamps and music from my mpd server.
- double click on the way back in, and it will turn the main house lights back on for you
- Long press to update openhab that you are now home. This then triggers some other openhab rules
- A button by my bedside table
- Single click to turn bedside table lights on night mode (For those middle of the night wake ups)
- Double click to turn the main house lights on (useful for winter when its still dark when I wake up)
- Long press to turn all the lights off. For bed time
- A button by my wife’s bed side table
- Single click to turn the hall way, and lounge room lights on night mode. For when she has to feed the baby
- Double click to turn those back off
- Long press to turn all lights off, for bed time
- Button on a clip that sits around the house
- Single click to play music
- Double click to pause music
- Long press to skip song
This makes some everyday tasks much more convenient, without having to pull your phone out and load openhab (if you aren’t near the dashboard). The only con of this setup I have found so far is that, as it runs off bluetooth, the range of the buttons is quite limited if using the on-board bluetooth controller of C.H.I.P. To exend it nicely through your house, I recommend purchasing a usb bluetooth controller (I will update this once I find a suitable one for my setup)
Setup
So C.H.I.P comes preinstalled with a GNU/Linux debian based OS customised specifically for C.H.I.P. This is nice as I am very familiar with debian. Connecting to C.H.I.P was super easy. Plug into usb on a desktop and it presents itself as a serial connection you can then screen
into!
Their docs are quite well written so it was a breeze to follow
Flic have developed a linux sdk for working with the buttons, obviously aimed at developers, so you can extend the buttons further then using the smart phone apps. This is nice as instead of having to pair the buttons with your phone (which moves around all the time) you can create a dedicated devices in 1 place in the house to use and interact with flic. Anyway, some initial setup notes on connecting flic to C.H.I.P
Now at this point I had no idea what to use to script up flic, but the SDK comes with some nice client librarys (and examples!) for C, Java, nodejs python and websocket. Out of this list, I have had the most experience with javascript lately, so I chose Nodejs. So lets install nodejs and npm
So because I have an ISP that offers IPv6 too, I was running into an issue where apt
was timing out connecting to a debian repository over IPv6, so I had to force apt
to only use IPv4
A weird thing you need to do for npm to make sure its up to date with the latest
And we also need the http library for nodejs
Now we have all we to get things running! Just for now, we will start the server in a screen
so we can see whats happening if needed. It also starts in daemon mode too, but we will use that one later to integrate with systemd
So the flic server will store all the information in needs into this sqlite db, make sure you have it in a safe location so you dont have to re-pair your buttons again! Now onto the client.
If you check your server screen
it will also show that a “client” has connected to it
Now press one of your buttons and watch some magic! Save that address of the button for later, we will now write up a small client to handle the buttons and make them do things when you press them
vim nodejs-flic.js
As you can see in my terribly coded example, we are watching for a button press, and when a button press happens, we find out which button it was, what sort of press it was, and do an action. So in those gaps you can do anything you want! In my case I am just hitting the openhab rest API to action the items I have connected to openhab. This is where the SDK is nice, you can do anything you want here!
You may notice here that I only specify 1 openhab item that I am changing the state of. This is because I am doing the rest of the work via the openhab rules engine. The item in openhab is just a switch, that binds to nothing. The entry in default.items
looks like this Switch all_off "All Off"
You can also add this as a switch item to your sitemap, so you can run the rule below from the openhab UI. Here is the rule that handles this blue button (all_off item)
I have all these sleep commands in here, as I found that having the commands run directly after one another did not work well with milight, so adding a small delay made sure each one runs successfully and the milight bridge actually gets the command
Now that we have a nice peiece of code that handles our buttons and actions, I didn’t want these to be running in screen
sessions. you know, in case of an outage or similar, I didnt want to have to ssh into C.H.I.P to start everything back up again. systemd
is nice here. We can write some stuff in a file so systemd
can handle running the code as a service for us, just like any other daemon you have installed.
vim flic.service
Make sure you change the user here, and make the .js
file executable! I did not, and had some errors.
Now copy it to where systemd exects these files
Start it
check logs
This acts like tail -f
on the log file. Now its running under systemd
you can add this service to start at startup, and manage it using the systemctl
command. Now we just do a similar thing to make the flic daemon managed by systemd


|
ARK2D
1.0
Game development framework for Windows, Mac OS X and Android.
|
Main Particle System class that contains the Emitters, Pools and Particles. More...
#include <ParticleSystem.h>
Public Member Functions | |
| ParticleSystem (Image *defaultSprite) | |
| void | reset () |
| bool | isVisible () |
| void | setVisible (bool b) |
| void | setRemoveCompletedEmitters (bool b) |
| void | setUsePoints (bool b) |
| bool | isUsePoints () |
| unsigned int | getBlendingMode () |
| void | setBlendingMode (unsigned int i) |
| unsigned int | getEmitterCount () |
| ParticleEmitter * | getEmitter (unsigned int index) |
| void | addEmitter (ParticleEmitter *e) |
| void | removeEmitter (ParticleEmitter *e) |
| void | removeAllEmitters () |
| float | getX () |
| float | getY () |
| void | setPosition (float x, float y) |
| void | render () |
| void | render (float x, float y) |
| void | update (GameTimer *timer) |
| void | update (float delta) |
| unsigned int | getParticleCount () |
| Particle * | getNewParticle (ParticleEmitter *emitter, float life) |
| void | release (Particle *p) |
| void | releaseAll (ParticleEmitter *e) |
| void | moveAll (ParticleEmitter *emitter, float x, float y) |
| void | load (Image *defaultSprite, int numberOfParticles) |
| virtual | ~ParticleSystem () |
Static Public Member Functions | |
| static Particle * | createParticle (ParticleSystem *system) |
Public Attributes | |
| vector< ParticleEmitter * > | removeMe |
| map< ParticleEmitter *, ParticlePool * > | particlesByEmitter |
| int | maxParticlesPerEmitter |
| vector< ParticleEmitter * > | emitters |
| Particle * | dummy |
| unsigned int | blendingMode |
| int | pCount |
| bool | usePoints |
| float | m_x |
| float | m_y |
| bool | removeCompletedEmitters |
| Image * | sprite |
| bool | m_visible |
| Color * | mask |
Static Public Attributes | |
| static const unsigned int | BLEND_ADDITIVE = 1 |
| static const unsigned int | BLEND_COMBINE = 2 |
| static const unsigned int | DEFAULT_PARTICLES = 100 |
Main Particle System class that contains the Emitters, Pools and Particles.
Adapted from Kevin Glass's Java implementation.
Definition at line 32 of file ParticleSystem.h.
| ARK::Particles::ParticleSystem::ParticleSystem | ( | Image * | defaultSprite | ) |
Definition at line 25 of file ParticleSystem.cpp.
|
virtual |
Definition at line 351 of file ParticleSystem.cpp.
| void ARK::Particles::ParticleSystem::addEmitter | ( | ParticleEmitter * | e | ) |
Definition at line 91 of file ParticleSystem.cpp.
|
static |
Definition at line 368 of file ParticleSystem.cpp.
| unsigned int ARK::Particles::ParticleSystem::getBlendingMode | ( | ) |
Definition at line 77 of file ParticleSystem.cpp.
| ParticleEmitter * ARK::Particles::ParticleSystem::getEmitter | ( | unsigned int | index | ) |
Definition at line 88 of file ParticleSystem.cpp.
| unsigned int ARK::Particles::ParticleSystem::getEmitterCount | ( | ) |
Definition at line 84 of file ParticleSystem.cpp.
| Particle * ARK::Particles::ParticleSystem::getNewParticle | ( | ParticleEmitter * | emitter, |
| float | life | ||
| ) |
Definition at line 292 of file ParticleSystem.cpp.
| unsigned int ARK::Particles::ParticleSystem::getParticleCount | ( | ) |
Definition at line 288 of file ParticleSystem.cpp.
| float ARK::Particles::ParticleSystem::getX | ( | ) |
Definition at line 114 of file ParticleSystem.cpp.
| float ARK::Particles::ParticleSystem::getY | ( | ) |
Definition at line 117 of file ParticleSystem.cpp.
| bool ARK::Particles::ParticleSystem::isUsePoints | ( | ) |
Definition at line 73 of file ParticleSystem.cpp.
| bool ARK::Particles::ParticleSystem::isVisible | ( | ) |
Definition at line 59 of file ParticleSystem.cpp.
| void ARK::Particles::ParticleSystem::load | ( | Image * | defaultSprite, |
| int | numberOfParticles | ||
| ) |
Definition at line 345 of file ParticleSystem.cpp.
| void ARK::Particles::ParticleSystem::moveAll | ( | ParticleEmitter * | emitter, |
| float | x, | ||
| float | y | ||
| ) |
Definition at line 336 of file ParticleSystem.cpp.
| void ARK::Particles::ParticleSystem::release | ( | Particle * | p | ) |
Definition at line 310 of file ParticleSystem.cpp.
| void ARK::Particles::ParticleSystem::releaseAll | ( | ParticleEmitter * | e | ) |
Definition at line 316 of file ParticleSystem.cpp.
| void ARK::Particles::ParticleSystem::removeAllEmitters | ( | ) |
Definition at line 108 of file ParticleSystem.cpp.
| void ARK::Particles::ParticleSystem::removeEmitter | ( | ParticleEmitter * | e | ) |
Definition at line 96 of file ParticleSystem.cpp.
| void ARK::Particles::ParticleSystem::render | ( | ) |
Definition at line 125 of file ParticleSystem.cpp.
| void ARK::Particles::ParticleSystem::render | ( | float | x, |
| float | y | ||
| ) |
todo: we don't know what particles are points and what are images so are currently binding and unbinding the default image LOTS. TOO MUCH.
Definition at line 128 of file ParticleSystem.cpp.
| void ARK::Particles::ParticleSystem::reset | ( | ) |
Definition at line 44 of file ParticleSystem.cpp.
| void ARK::Particles::ParticleSystem::setBlendingMode | ( | unsigned int | i | ) |
Definition at line 80 of file ParticleSystem.cpp.
| void ARK::Particles::ParticleSystem::setPosition | ( | float | x, |
| float | y | ||
| ) |
Definition at line 120 of file ParticleSystem.cpp.
| void ARK::Particles::ParticleSystem::setRemoveCompletedEmitters | ( | bool | b | ) |
Definition at line 66 of file ParticleSystem.cpp.
| void ARK::Particles::ParticleSystem::setUsePoints | ( | bool | b | ) |
Definition at line 70 of file ParticleSystem.cpp.
| void ARK::Particles::ParticleSystem::setVisible | ( | bool | b | ) |
Definition at line 62 of file ParticleSystem.cpp.
| void ARK::Particles::ParticleSystem::update | ( | GameTimer * | timer | ) |
Definition at line 213 of file ParticleSystem.cpp.
| void ARK::Particles::ParticleSystem::update | ( | float | delta | ) |
Definition at line 216 of file ParticleSystem.cpp.
|
static |
Definition at line 34 of file ParticleSystem.h.
|
static |
Definition at line 35 of file ParticleSystem.h.
| unsigned int ARK::Particles::ParticleSystem::blendingMode |
Definition at line 53 of file ParticleSystem.h.
|
static |
Definition at line 37 of file ParticleSystem.h.
| Particle* ARK::Particles::ParticleSystem::dummy |
Definition at line 50 of file ParticleSystem.h.
| vector<ParticleEmitter*> ARK::Particles::ParticleSystem::emitters |
Definition at line 47 of file ParticleSystem.h.
| bool ARK::Particles::ParticleSystem::m_visible |
Definition at line 74 of file ParticleSystem.h.
| float ARK::Particles::ParticleSystem::m_x |
Definition at line 62 of file ParticleSystem.h.
| float ARK::Particles::ParticleSystem::m_y |
Definition at line 65 of file ParticleSystem.h.
| Color* ARK::Particles::ParticleSystem::mask |
Definition at line 77 of file ParticleSystem.h.
| int ARK::Particles::ParticleSystem::maxParticlesPerEmitter |
Definition at line 44 of file ParticleSystem.h.
| map<ParticleEmitter*, ParticlePool*> ARK::Particles::ParticleSystem::particlesByEmitter |
Definition at line 41 of file ParticleSystem.h.
| int ARK::Particles::ParticleSystem::pCount |
Definition at line 56 of file ParticleSystem.h.
| bool ARK::Particles::ParticleSystem::removeCompletedEmitters |
Definition at line 68 of file ParticleSystem.h.
| vector<ParticleEmitter*> ARK::Particles::ParticleSystem::removeMe |
Definition at line 39 of file ParticleSystem.h.
| Image* ARK::Particles::ParticleSystem::sprite |
Definition at line 71 of file ParticleSystem.h.
| bool ARK::Particles::ParticleSystem::usePoints |
Definition at line 59 of file ParticleSystem.h.


{% extends "base.html" %} {% block content %}
Incorrect password
Your account doesn't have access.
Please login to see this page.


{% if form.errors %}
Your username and password didn't match. Please try again.
{% endif %} {% block content %}
Login
{% csrf_token %} {{ form.as_p }}
Login
{% endblock %}


Base Model Class. Takes care of all of the low-level details needed to implement the cost function, dynamics. Derive from this class and override the pure virtual functions Cost(t,x(t),u(t),u(t+1)), TerminalCost(x(N)), and DynamicsF(t,x(t),u(t));.
More...
#include <Model.h>
|
|
typedef | CPPAD_TESTVECTOR (AD< double >) ADvector |
| |
| | Model (int N, int nx, int nu, int delay, const vector< double > &trajectory={}) |
| |
| void | set_trajectory (vector< double > &trajectory) |
| |
|
bool | initialized () |
| |
|
vector< int > & | starts () |
| | returns reference to starts vector
|
| |
|
int | nx () |
| | returns state dim nx
|
| |
|
int | nu () |
| | returns input dim nu
|
| |
|
int | N () |
| | returns horizon N
|
| |
| virtual int | xstart ()=0 |
| |
| virtual int | ystart ()=0 |
| |
| void | operator() (ADVec &fg, const ADVec &vars) |
| |
|
|
virtual AD< double > | Cost (int t, const ADVec &xt, const ADVec &ut, const ADVec &utp1)=0 |
| | Pure virtual function: should return per-stage cost.
|
| |
|
virtual AD< double > | TerminalCost (const ADVec &xN)=0 |
| | Pure virtual function: should return terminal cost.
|
| |
|
virtual ADVec | DynamicsF (int t, const ADVec &xt, const ADVec &ut)=0 |
| | Pure virtual function: should return x(t+1) = f(x(t),u(t))
|
| |
|
template<typename Vector > |
| Vector | x_t (int t, const Vector &vars) |
| | Helper function to extract x(t) from vars.
|
| |
|
template<typename Vector > |
| Vector | u_t (int t, const Vector &vars) |
| | Helper function to extract u(t) from vars.
|
| |
|
|
int | N_ |
| |
|
int | nx_ |
| |
optimization horizon is N_-1
|
| |
|
int | nu_ |
| |
state dimension
|
| |
|
int | delay_ |
| |
input dimension
|
| |
|
vector< int > | starts_ |
| |
input delay: x(t+1) = f(x(t),u(t-delay_))
|
| |
| vector< double > | trajectory_ |
| |
Base Model Class. Takes care of all of the low-level details needed to implement the cost function, dynamics. Derive from this class and override the pure virtual functions Cost(t,x(t),u(t),u(t+1)), TerminalCost(x(N)), and DynamicsF(t,x(t),u(t));.
◆ Model()
| Model::Model |
( |
int |
N, |
|
|
int |
nx, |
|
|
int |
nu, |
|
|
int |
delay, |
|
|
const vector< double > & |
trajectory = {} |
|
) |
| |
|
inline |
Establishes opitmization horizon (N), state-dim (nx), input-dim (nu), input delay (delay), and populates bookkeeping vector starts_
◆ operator()()
| void Model::operator() |
( |
ADVec & |
fg, |
|
|
const ADVec & |
vars |
|
) |
| |
|
inline |
Functor operator that is called by IpOPT. This implements the low level details
◆ set_trajectory()
| void Model::set_trajectory |
( |
vector< double > & |
trajectory | ) |
|
|
inline |
Called by MPC to set Model's trajectory_ to MPC's warmstart_, where the latter term is teh solution to the previous MPC run
◆ xstart()
| virtual int Model::xstart |
( |
| ) |
|
|
pure virtual |
Needed to plot MPC planned trajectory in simulator: should return starts_[X], where X specifies the the position of X in the the state vector. e.g. if state[0] = x, then xstart shoudl return starts_[0];
Implemented in BikeModel.
◆ ystart()
| virtual int Model::ystart |
( |
| ) |
|
|
pure virtual |
Needed to plot MPC planned trajectory in simulator: should return starts_[Y], where Y specifies the the position of X in the the state vector. e.g. if state[1] = y, then xstart shoudl return starts_[1];
Implemented in BikeModel.
◆ trajectory_
| vector<double> Model::trajectory_ |
|
protected |
bookkeeping vector: starts_[i] says where in optimization vector vars component i (either a scalar state or input)
The documentation for this class was generated from the following file:


U.S. calls for Iran crackdown videos as internet slowly returns
U.S. Secretary of State Mike Pompeo has called on Iranians to send the U.S. videos “documenting the regime’s crackdown on protestors”.
by APAs the internet is slowly being revived across Iran after a days-long, government-imposed shutdown amid demonstrations, U.S. Secretary of State Mike Pompeo has called on Iranians to send the U.S. videos “documenting the regime’s crackdown on protestors”.
Mr. Pompeo’s tweet early Friday comes as pockets of Iran saw internet over landlines restored.
Authorities have said the internet may be entirely restored soon, suggesting Iran’s government put down the demonstrations that began Nov. 15 over government-set gasoline prices rising.
Amnesty International says protest unrest and a subsequent security crackdown killed at least 106 people. Iran disputes that figure without offering its own. A U.N. office earlier said it feared the unrest may have killed “a significant number of people.”


olive oil ozonated ozone treatment lesions therapy group control effects patients {border-style lesion px;} #ffffff;} .±. glucantime size test Ozone leishmaniasis Leishmania effect study weeks .(±.) Iran groups skin (.%), Med activity cutaneous major Also, healing px; showed therapeutic week wound {font-family Figure cell font-size high human mean oils Isfahan Medical Sci [], caused double; effective like ozonized used wounds (±.) Isfahan, P<.) Res University area border-color border-width different duration fatty growth included oil, oil. oxygen parasite production promastigotes rate significantly solid; topical treated {font-style {font-weight (mm Basic Clin Group Leishmaniasis Mean Mohaghegh Table Trop acid analysis antimicrobial bold cases comparison courier; cure difference drug em; oleuropein oral pomace properties pt;} received shown significant using water weekly


{% extends 'server_ui/templates/base.html' %} {% block title %}{{ settings.SITE_TITLE }}{% endblock %} {% block header %} {% endblock %} {% block content %}
The Helios Voting technology is based on advanced peer-reviewed cryptographic techniques that enable your vote to remain secret while providing an intelligent ballot tracker to let you verify that your ballot was received and counted properly:
O Helios foi coberto pela imprensa:


Welcome! My name is Tony Pan. I am a Computer Science student and research assistant at the University of Michigan. Explore this site to learn more about me.
I am currently a sophomore at the University of Michigan college of Engineering pursuing a degree in Computer Science Engineering. Here are the relevant courses that I have taken or am enrolled this year.
Software methods and implementation for robot perception, world mapping, and control, using physical robots. Topics include: sensor, sensor processing, control, motion planning, localization and mapping, and forward and inverse kinematics. Multiple team projects, culminating in a major design experience (MDE) project.
The topics covered include: systems of linear equations; matrix algebra; vectors, vector spaces, and subspaces; geometry of Rn; linear dependence, bases, and dimension; linear transformations; Eigenvalues and Eigenvectors; diagonalization; inner products. Throughout there is an emphasis on the concepts, logic, and methods of theoretical mathematics.
Introduction to algorithm analysis and O-notation; Fundamental data structures including lists, stacks, queues, priority queues, hash tables, binary trees, search trees, balanced trees and graphs; searching and sorting algorithms; recursive algorithms; basic graph algorithms; introduction to greedy algorithms and divide and conquer strategy. Several programming assignments.
This course offers a basic understanding of how computers execute programs. How a low-level language is executed by the hardware, and how to put together basic, hardware building blocks to form the functional units of a computer. Design and "build" simple computers at various levels of detail and describe the hardware in diagrams, finite-state machines, and hardware simulators (written in C).
Techniques and algorithm development and effective programming, top-down analysis, structured programming, testing, and program correctness. Program language syntax and static and runtime semantics. Scope, procedure instantiation, recursion, abstract data types, and parameter passing methods. Structured data types, pointers, linked data structures, stacks, queues, arrays, records, and trees.
Introduction to the mathematical foundations of computer science. Topics covered include: propositional and predicate logic, set theory, function and relations, growth of functions and asymptotic notation, introduction to algorithms, elementary combinatorics and graph theory and discrete probability theory.
I am passionate about scientific research. Here are some of my research projects
I love coding. Here are some of my recent projects


BristleBot Accelerometer
Connection status:
UNCONNECTED
x-acc:
0
y-acc:
0
Power:
0
Steer:
0
Start Motors


public class ThreadPool extends AbstractComponent implements Scheduler, java.io.Closeable
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ThreadPool.Info |
static class |
ThreadPool.Names |
static class |
ThreadPool.ThreadPoolType |
Scheduler.Cancellable, Scheduler.ReschedulingRunnable
| 限定符和类型 | 字段和说明 |
|---|---|
static Setting<TimeValue> |
ESTIMATED_TIME_INTERVAL_SETTING |
static java.util.Map<java.lang.String,ThreadPool.ThreadPoolType> |
THREAD_POOL_TYPES |
deprecationLogger, logger, settings
| 构造器和说明 |
|---|
ThreadPool(Settings settings,
ExecutorBuilder<?>... customBuilders) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
absoluteTimeInMillis()
Returns the value of milliseconds since UNIX epoch.
|
static boolean |
assertNotScheduleThread(java.lang.String reason) |
boolean |
awaitTermination(long timeout,
java.util.concurrent.TimeUnit unit) |
java.util.Collection<ExecutorBuilder> |
builders() |
void |
close() |
org.apache.lucene.util.Counter |
estimatedTimeInMillisCounter() |
java.util.concurrent.ExecutorService |
executor(java.lang.String name)
Get the
ExecutorService with the given name. |
java.util.concurrent.ExecutorService |
generic()
Get the generic
ExecutorService . |
ThreadContext |
getThreadContext() |
ThreadPoolInfo |
info() |
ThreadPool.Info |
info(java.lang.String name) |
java.lang.Runnable |
preserveContext(java.lang.Runnable command)
Does nothing by default but can be used by subclasses to save the current thread context and wraps the command in a Runnable
that restores that context before running the command.
|
long |
relativeTimeInMillis()
Returns a value of milliseconds that may be used for relative time calculations.
|
java.util.concurrent.ScheduledFuture<?> |
schedule(TimeValue delay,
java.lang.String executor,
java.lang.Runnable command)
Schedules a one-shot command to run after a given delay.
|
java.util.concurrent.ScheduledExecutorService |
scheduler() |
Scheduler.Cancellable |
scheduleWithFixedDelay(java.lang.Runnable command,
TimeValue interval,
java.lang.String executor)
Schedules a periodic action that runs on scheduler thread.
|
static int |
searchThreadPoolSize(int availableProcessors) |
void |
shutdown() |
void |
shutdownNow() |
ThreadPoolStats |
stats() |
static boolean |
terminate(java.util.concurrent.ExecutorService service,
long timeout,
java.util.concurrent.TimeUnit timeUnit)
Returns
true if the given service was terminated successfully. |
static boolean |
terminate(ThreadPool pool,
long timeout,
java.util.concurrent.TimeUnit timeUnit)
Returns
true if the given pool was terminated successfully. |
logDeprecatedSetting, logRemovedSetting, nodeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
awaitTermination, initScheduler, terminate
public static final java.util.Map<java.lang.String,ThreadPool.ThreadPoolType> THREAD_POOL_TYPES
public ThreadPool(Settings settings, ExecutorBuilder<?>... customBuilders)
public java.util.Collection<ExecutorBuilder> builders()
public long relativeTimeInMillis()
This method should only be used for calculating time deltas. For an epoch based
timestamp, see absoluteTimeInMillis()
.
public long absoluteTimeInMillis()
This method should only be used for exact date/time formatting. For calculating
time deltas that should not suffer from negative deltas, which are possible with
this method, see relativeTimeInMillis()
.
public org.apache.lucene.util.Counter estimatedTimeInMillisCounter()
public ThreadPoolInfo info()
public ThreadPool.Info info(java.lang.String name)
public ThreadPoolStats stats()
public java.util.concurrent.ExecutorService generic()
ExecutorService
. This executor service
Executor.execute(Runnable)
method will run the Runnable
it is given in the
ThreadContext
of the thread that queues it.
Warning: this ExecutorService will not throw RejectedExecutionException
if you submit a task while it shutdown. It will instead silently queue it and not run it.
public java.util.concurrent.ExecutorService executor(java.lang.String name)
ExecutorService
with the given name. This executor service's
Executor.execute(Runnable)
method will run the Runnable
it is given in the
ThreadContext
of the thread that queues it.
Warning: this ExecutorService might not throw RejectedExecutionException
if you submit a task while it shutdown. It will instead silently queue it and not run it.
name
- the name of the executor service to obtainjava.lang.IllegalArgumentException
- if no executor service with the specified name existspublic java.util.concurrent.ScheduledFuture<?> schedule(TimeValue delay, java.lang.String executor, java.lang.Runnable command)
threadPool.getThreadContext().preserveContext
on the runnable before passing
it to this method.schedule
在接口中 Scheduler
delay
- delay before the task executesexecutor
- the name of the thread pool on which to execute this task. SAME means "execute on the scheduler thread" which changes the
meaning of the ScheduledFuture returned by this method. In that case the ScheduledFuture will complete only when the command
completes.command
- the command to runEsRejectedExecutionException
- if the task cannot be scheduled for executionpublic Scheduler.Cancellable scheduleWithFixedDelay(java.lang.Runnable command, TimeValue interval, java.lang.String executor)
Scheduler
scheduleWithFixedDelay
在接口中 Scheduler
command
- the action to takeinterval
- the delay intervalexecutor
- the name of the executor that has to execute this task. Ignored in the default implementation but can be used
by subclasses that support multiple executors.Scheduler.Cancellable
that can be used to cancel the subsequent runs of the command. If the command is running, it will
not be interrupted.public java.lang.Runnable preserveContext(java.lang.Runnable command)
Scheduler
preserveContext
在接口中 Scheduler
public void shutdown()
public void shutdownNow()
public boolean awaitTermination(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.lang.InterruptedException
public java.util.concurrent.ScheduledExecutorService scheduler()
public static int searchThreadPoolSize(int availableProcessors)
public static boolean terminate(java.util.concurrent.ExecutorService service, long timeout, java.util.concurrent.TimeUnit timeUnit)
true
if the given service was terminated successfully. If the termination timed out,
the service is null
this method will return false
.public static boolean terminate(ThreadPool pool, long timeout, java.util.concurrent.TimeUnit timeUnit)
true
if the given pool was terminated successfully. If the termination timed out,
the service is null
this method will return false
.public void close() throws java.io.IOException
close
在接口中 java.io.Closeable
close
在接口中 java.lang.AutoCloseable
java.io.IOException
public ThreadContext getThreadContext()
public static boolean assertNotScheduleThread(java.lang.String reason)


A module for retrieving information about Venues from Foursquare.
- Source:
- ../node-foursquare/lib/venues.js, line 1
Methods
-
<static> explore(lat, lng, [params], accessToken, callback)
-
Explore Foursquare Venues.
- Source:
- ../node-foursquare/lib/venues.js, line 36
- See:
-
- https://developer.foursquare.com/docs/venues/explore.html
Parameters:
Name Type Argument Description lat
String | Number The latitude of the location around which to explore. lng
String | Number The longitude of the location around which to explore. params
Object <optional>
An object containing additional parameters. Refer to Foursquare documentation for details on currently supported parameters. accessToken
String The access token provided by Foursquare for the current user. callback
Function The function to call with results, function({Error} error, {Object} results). -
<static> getCategories([params], accessToken, callback)
-
Retrieve a list of Venue Categories.
- Source:
- ../node-foursquare/lib/venues.js, line 20
- See:
-
- https://developer.foursquare.com/docs/venues/categories.html
Parameters:
Name Type Argument Description params
Object <optional>
An object containing additional parameters. Refer to Foursquare documentation for details on currently supported parameters. accessToken
String The access token provided by Foursquare for the current user. callback
Function The function to call with results, function({Error} error, {Object} results). -
<static> getHereNow(venueId, [params], [accessToken], callback)
-
Retrieve Check-ins for Users who are at a Venue "now".
- Source:
- ../node-foursquare/lib/venues.js, line 160
- See:
-
- https://developer.foursquare.com/docs/venues/herenow.html
Parameters:
Name Type Argument Description venueId
String The id of a Foursquare Venue. params
Object <optional>
An object containing additional parameters. Refer to Foursquare documentation for details on currently supported parameters. accessToken
String <optional>
The access token provided by Foursquare for the current user. callback
Function The function to call with results, function({Error} error, {Object} results). -
<static> getLinks(venueId, [params], [accessToken], callback)
-
Retrieve Links for a Foursquare Venue.
- Source:
- ../node-foursquare/lib/venues.js, line 232
- See:
-
- https://developer.foursquare.com/docs/venues/links.html
Parameters:
Name Type Argument Description venueId
String The id of a Foursquare Venue. params
Object <optional>
An object containing additional parameters. Refer to Foursquare documentation for details on currently supported parameters. accessToken
String <optional>
The access token provided by Foursquare for the current user. callback
Function The function to call with results, function({Error} error, {Object} results). -
<static> getPhotos(venueId, [group], [params], [accessToken], callback)
-
Retrieve Photos for a Foursquare Venue.
- Source:
- ../node-foursquare/lib/venues.js, line 208
- See:
-
- https://developer.foursquare.com/docs/venues/photos.html
Parameters:
Name Type Argument Default Description venueId
String The id of a Foursquare Venue. group
String <optional>
"venue" The type of photos to retrieve. Refer to Foursquare documentation for details on currently supported groups. params
Object <optional>
An object containing additional parameters. Refer to Foursquare documentation for details on currently supported parameters. accessToken
String <optional>
The access token provided by Foursquare for the current user. NOTE: This may or may not be required for certain types of photos associated to the venue. Refer to the Foursquare documentation for details. callback
Function The function to call with results, function({Error} error, {Object} results). -
<static> getTips(venueId, [params], [accessToken], callback)
-
Retrieve Tips for a Foursquare Venue.
- Source:
- ../node-foursquare/lib/venues.js, line 182
- See:
-
- https://developer.foursquare.com/docs/venues/tips.html
Parameters:
Name Type Argument Description venueId
String The id of a Foursquare Venue. params
Object <optional>
An object containing additional parameters. Refer to Foursquare documentation for details on currently supported parameters. accessToken
String <optional>
The access token provided by Foursquare for the current user. callback
Function The function to call with results, function({Error} error, {Object} results). -
<static> getTrending(lat, lng, [params], [accessToken], callback)
-
Return Foursquare Venues near location with the most people currently checked in.
- Source:
- ../node-foursquare/lib/venues.js, line 86
- See:
-
- https://developer.foursquare.com/docs/venues/trending.html
Parameters:
Name Type Argument Description lat
String | Number The latitude of the location around which to search. lng
String | Number The longitude of the location around which to search. params
Object <optional>
An object containing additional parameters. Refer to Foursquare documentation for details on currently supported parameters. accessToken
String <optional>
The access token provided by Foursquare for the current user. callback
Function The function to call with results, function({Error} error, {Object} results). -
<static> getVenue(venueId, [accessToken], callback)
-
Retrieve a Foursquare Venue.
- Source:
- ../node-foursquare/lib/venues.js, line 108
- See:
-
- https://developer.foursquare.com/docs/venues/venues.html
Parameters:
Name Type Argument Description venueId
String The id of a Foursquare Venue. accessToken
String <optional>
The access token provided by Foursquare for the current user. callback
Function The function to call with results, function({Error} error, {Object} results). -
<static> getVenueAspect(venueId, aspect, [params], accessToken, callback)
-
Retrieve a specific aspect from the Venues endpoint.
- Source:
- ../node-foursquare/lib/venues.js, line 132
- See:
-
- https://developer.foursquare.com/docs/index_docs.html
Parameters:
Name Type Argument Description venueId
String The id of a Foursquare Venue. aspect
String The aspect to retrieve. Refer to Foursquare documentation for details on currently supported aspects. params
Object <optional>
An object containing additional parameters. Refer to Foursquare documentation for details on currently supported parameters. accessToken
String The access token provided by Foursquare for the current user. callback
Function The function to call with results, function({Error} error, {Object} results). -
<static> search(lat, lng, [params], [accessToken], callback)
-
Search Foursquare Venues.
- Source:
- ../node-foursquare/lib/venues.js, line 61
- See:
-
- https://developer.foursquare.com/docs/venues/search.html
Parameters:
Name Type Argument Description lat
String | Number The latitude of the location around which to search. lng
String | Number The longitude of the location around which to search. params
Object <optional>
An object containing additional parameters. Refer to Foursquare documentation for details on currently supported parameters. accessToken
String <optional>
The access token provided by Foursquare for the current user. callback
Function The function to call with results, function({Error} error, {Object} results).


Risk factors
-
chronic kidney disease = major risk factor for AKI
-
DM
-
HTN
-
obestiy
-
proteinuria
Causes
Pre-renal
-
hypovoelaemia
-
diarrhoea, vomiitng
-
diuretics
-
osmotic diuresis - from poorly controlled DM
-
haemorrhage
-
truama (shock)
-
sepsis (shock)
-
-
Decreased effective blood volume
-
heart failure
-
cirrhosis
-
-
Vasoregulation
-
NSAIDs
-
ACEi or ARB
-
Hypercalcaemia
-
Intrinsic
-
direct damage to nephron
-
complex
-
may be secondary to another illness
-
-
Acute tubular necrosis = most common
-
as result of pre-renal injury or
-
direct toxicity
-
hypotension
-
hypovolaemia
-
haemolysis
-
rhabdomyolysis
-
nephrotoxic meds
-
NSAID
-
lithium
-
aminoglycosides
-
-
-
pre rneal + ATN = 90% AKI
-
-
Medication induced
- high mortality
-
Acute glomerulonephritis
-
small vessel vasculitis
-
uncommon but improtamtn
-
early diagnosis and appropriate treatment prevents end-stage CKD
-
Post-renal
-
blockage to flow of urine
-
back-pressure to kidney: damage to nephrons
-
obstructive nephropathy
- uncommon = 5%
-
urinary tract sotnes
-
prostatic hypertrophy
-
intra-abdominal process encasing ureters
Prevention
CKD guidelines
- check renal function as per guideliens
medications
-
Triple whammy
-
NSAID
- blocks prostaglandin-mediated afferent arteriolar vasodilation
-
ACEi
-
blood flow to kidney can’t be reduced
-
efferent arteriolar vasoconstriction prevented
-
-
diuretics
- decrease GFR exacerbated
-
-
Many cause intrinsic acute renal injuyr
-
frusemide
-
ppi
-
beta lactam
-
aminoglyucoside
-
colchicine
-
phenytoin
-
History
-
acute recent illness
-
symptoms of outflow obstruction
-
history of abdominal or pelvic malignancy
- obstruction/myeloma
-
systemic symptoms
-
rahs
-
joint/muscle pain
-
-
current prescribed and OTC medicine or recent contrast radiology
-
pre-existing conditions
exam
-
hydration
-
systemic disease
-
fever
-
skin rashes
-
joint swelling
-
iriits
-
vasuclar disases
-
organomegaly
-
AA
-
bladder
-
-
urinalysis
-
ecg if K+ >5.5
Refer
-
discuss especially if active sediment
- positive blood and protein
red flags
negligible UO for 6hrs or \<200mL over 12hrs
serum K+ >7 or \<5.5 with ECG changes
Volume overload
Cr >300 or change of 50%


HLI Lab.
Home
Members
Research
Links
Contact
Members
Human Language Intelligence Lab. @ SKKU
Faculty
JinYeong Bak
<EMAIL_ADDRESS>Ph.D. in Computer Science, 2020, KAIST
Homepage


I've been playing the video game
I looked up how to send emails programmatically on Windows (the platform MTGA runs on). I found a perl program called sendemail that does this. The program is hosted on an official-seeming page from 2009, a sourceforce page which was last updated in 2009, and a github page last updated in 2012 which all seem to be the same program. I picked the most recently edited of these three thinking it might have some fixes (or maybe a backdoor!). After installing strawberry perl and doing a naive invocation, I was met with:
$ perl path/to/sendEmail -f "aozgaa AT gmail DOT com" -u "starting mtg arena" -t "aozgaa AT gmail DOT com" -s "smtp.gmail.com:587" -o tls=yes -xu "aozgaa AT gmail DOT com" -xp 'mypassword' -m "some message" invalid SSL_version specified at /home/daedalus/perl5/lib/perl5/IO/Socket/SSL.pm line 728.
Huh? It looks like this issue has been encountered before. So I tried a few things, and eventually this patch looked reasonable:
$ git diff diff --git a/sendEmail b/sendEmail index 9f9392e..8a8dec2 100755 --- a/sendEmail +++ b/sendEmail @@ -1903,7 +1903,7 @@ else { if ($conf{'tls_server'} == 1 and $conf{'tls_client'} == 1 and $opt{'tls'} =~ /^(yes|auto)$/) { printmsg("DEBUG => Starting TLS", 2); if (SMTPchat('STARTTLS')) { quit($conf{'error'}, 1); } - if (! IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'SSLv3 TLSv1')) { + if (! IO::Socket::SSL->start_SSL($SERVER)) { quit("ERROR => TLS setup failed: " . IO::Socket::SSL::errstr(), 1); } printmsg("DEBUG => TLS: Using cipher: ". $SERVER->get_cipher(), 3);
(Note, it looks like this is necessary on both Windows and Linux). Now I get:
$ perl /path/to/sendEmail -f "aozgaa AT gmail DOT com" -u "starting mtg arena" -t "aozgaa AT gmail DOT com" -s "smtp.gmail.com:587" -o tls=yes -xu "aozgaa AT gmail DOT com" -xp 'mypassword' -m "some message" Mar 15 16:16:57 daedalus-arch sendEmail[56559]: ERROR => ERROR => SMTP-AUTH: Authentication to smtp.gmail.com:587 failed.
Putting in my actual password (you didn't think it was that bad, did you?) didn't work. I enabled IMAP in gmail's settings. Stack Overflow stopped giving answers, so I continued searching and found Google's password help where I was reminded that I have 2-Factor authentication enabled. So I needed to make an app password. I chose a Windows password for mail because, well, that's what we're doing. Finally, I used the app password, and now I can send an email to myself (or my brother!). I then made a (powershell) script that sends an email then runs MTGA:
perl /path/to/sendEmail -f "aozgaa AT gmail DOT com" -u "starting mtg arena" -t "aozgaa AT gmail DOT com" -s "smtp.gmail.com:587" -o tls=yes -xu "aozgaa AT gmail DOT com" -xp 'apppassword' -m "some message" &"C:\Program Files (x86)\Wizards of the Coast\MTGA\MTGALauncher\MTGALauncher.exe"
Now I can go back to feeding my addiction.


_Recess:_School's_Out_ (G) ** 1/2 (out of ****)
At one point in this film, an adult character says something along the lines of, "Even grown-ups know the value of recess." Similarly, the appeal of _Recess:_School's_Out_, a big-screen extension of the popular TV cartoon series, won't be lost on the older viewers in the audience. Make no mistake--this is a film made for the kiddies, and it's the young 'uns who will take the most from the animated antics. But there's enough likable qualities displayed here to keep the parents interested though not entirely bowled over.
Part of the problem is the film's no-frills animation style, that makes the film look exactly like what it is: a big-screen blowup of a Saturday morning cartoon. Even the _Rugrats_ films exhibited some greater ambition with its visuals, however slight. Here, all we get are a couple of too-obviously computer-generated overhead shots, one for the very beginning, and one for the very end. Making matters worse is the fact that the CG shots hardly feel of a piece with the traditionally drawn bulk of the film.
This complaint is of little consequence to the target audience, who will certainly eat up this amusing kids' fantasy. As the title suggests, school is out, and mischievous T.J. Detweiler (voiced by Andy Lawrence) is looking forward to a summer of fun with friends Gus (Courtland Mead), Gretchen (Ashley Johnson), Vince (Rickey D'Shon Collins), Mikey (Jason Davis), and Spinelli (Pamela Segall). However, that doesn't appear it will be the case, for he is the only one of the gang not going to a special camp for the summer. But when he stumbles upon an evil plot involving what appears to be a large laser cannon (!) being cooked up within the closed walls of Third Street Elementary, T.J. must break out his friends to set things right.
The kid-aimed story is interesting and fast-paced enough to keep the adults somewhat amused, but there are also touches in _Recess:_School's_Out_ blatantly designed to engage the adults: an extended flashback to the late-'60s-set early careers of Third Street Principal Prickly (Dabney Coleman) and the main bad guy, a former secretary of education (James Woods); and an especially effective running gag involving Mikey's impressively developed singing voice (provided by Robert Goulet). But when it all comes down to it, the comedic fights (some involving ninjas) and slapsticky chases that make up most of _Recess:_School's_Out_ were meant for viewers that are in the same age range as the main characters, and unless you have kids, there's nothing here that's compelling enough to merit buying a ticket.
©2001 Michael Dequina
Michael Dequina<EMAIL_ADDRESS>|<EMAIL_ADDRESS>|<EMAIL_ADDRESS>Mr. Brown's Movie Site: http://www.mrbrownmovies.com CinemaReview Magazine: http://www.CinemaReview.com on ICQ: #25289934 | on AOL Instant Messenger: MrBrown23
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


4. Repositories
Creating a repository requires
- login to API with appropriate account (e.g. admin)
- package a request to create a repository
- send the request to create the repository
- saving the response from the create request
We repeat the process to create multiple repositories.


Welcome and Explore kerala Tourism
Kerala, a state on India's tropical Malabar Coast, has nearly 600km of Arabian Sea shoreline.
It's known for its palm-lined beaches and backwaters, a network of canals.
Inland are the Western Ghats, mountains whose slopes support tea, coffee and spice plantations as well as wildlife.
National parks like Eravikulam and Periyar, plus Wayanad and other sanctuaries, are home to elephants,
langur monkeys and tigers.
Kerala is renowned for some of its unique cultural and geographical characteristics.
The practices and traditions handed down from generation to generation,
alongside some of the natural wonders that we have been blessed with have attracted people to this land for centuries.
From the ancient healthcare system ofAyurveda to our picturesque hill stations and diverse wildlife,


Getting Started With Go
Michael Kacher and James Culbertson, Houston Golang Meetup, February 23, 2017
Getting Started With Go
James Culbertson
Michael Kacher
Houston Golang Meetup
February 23, 2017
Getting Started With Go
- What is Go
- Why and When to Go?
- Setup and Build
- Tour of Go
- Package Management
- IDE and Debugging
- Essential Resources
- Further Practices
- Q and A
What is Go?
A programming language
What is Go?
Go personality
Go mascot and community member representation (A "Gopher").
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
What is Go?
A programming philosophy
What is Go?
A programming philosophy
- Design the architecture, name the components, document the details.
- Documentation is for users.
- Clear is better than clever.
- Reflection is never clear.

- The bigger the interface, the weaker the abstraction.
More proverbs from Rob Pike
What is Go?
A programming philosophy
What is Go?
A community
What is Go?
A community - expected values
- Be friendly and welcoming
- Be patient
- Be thoughtful
- Be respectful
- Be charitable
- Avoid destructive behavior
Code of Conduct
What is Go?
Features
- Imperative
- Statically Typed
- Strong Standard Library
- Garbage Collected
- Built for Scale
- Single Executable
- Cross Platform
- Compiles quickly
- Simple to Read/Maintain
- Strong Concurrency Support
- Fast to Learn
- Built-in testing and profiling
- Low use of compute resources
Why and When to Go?
Application Domains
- High scale server applications
- Command line applications
- Web API and web applications
- Concurrent applications
- Devops (easy deployment and native orchestration tools)
Less Optimum Domains
- Native UI Applications
- Native Mobil Applications
Setup and Build
- GOPATH - Setting and how it works
- Including $GOPATH/bin in your PATH
- Basic build options (go build, go install)
Setup and Build
- Go command options
- oracle
- trace
- test
- cover
- race
- oracle
Setup and Build
- Other Commands
- godoc
- gofmt
- goimports
- vet
Highlights
- Types
- Functions
- Method receivers, composite literals
- Embedding
- Multiple return types
- Error handling
- Interfaces
Package Management
- Go Get
- Vendoring
- Tools -> GoDeps, Glide
- Forking a Package for Contributions
Go Get
- Tool for installing/updating packages to Go path
- Example:
go get github.com/knq/xo
- Pulls the code to $GOPATH/src/github.com/knq/xo and builds the package
- Also pulls and builds dependent packages
- Doesn't provide any means to track or pin versions
Vendoring
- Vendoring is the placement of packages in a vendor directory within the $GOPATH
- Vendored packages have precedence over packages obtained via go get
- Allows for reproducible builds and control over package versions
- Tools are available to help with vendoring
- "Official" tool dep is in development: github.com/golang/dep
Vendoring Tools To Use Now
- Popular vendoring tools (until dep is officially released):
- Glide (github.com/Masterminds/glide)
- Godep (github.com/tools/godep)
- Govendor (github.com/kardianos/govendor)
- Others...
Vendoring Guidelines
Library Development
- Avoid unnecessary external dependencies
- Take care with vendoring
- Some developers advise to avoid vendoring within libraries
Application Development
- Vendor all external dependencies
- Commit vendored folder to source control (reproducible builds)
Forking a Package For Contributions
- Internal package names in import referencing wrong location
- If you forkedgithub.com/your-username/xo, the original references will be:
import (
"github.com/knq/xo/internal"
"github.com/knq/xo/models"
)
- Renaming all of them to github.com/your-username/xo is not practical and error prone
Forking a Package For Contributions
Technique
- Go get the package as normal
- Fork package as usual on Github
- At "go get" code location set fork as remote
git remote add fork https://github.com/your-username/repo.git
git fetch fork
git checkout -b test fork/test
- Push commits back to fork
- Issue pull request from fork
Editors
- Vim with vim-go plugin
- Emacs with go-mode plugin
- Sublime with go-sublime plugin
- Atom with go-plus plugin
- VS Code with lukehoban.go plugin
IDE's
- LiteIDE (github.com/visualfc/liteide)
- Gogland - JetBrains IDE (in beta)
- Eclipse with goclipse plugin
Recommendation
VS Code
- Free and Open Source
- Multi-platform
- Performant Compared to Atom
- Frequent Upgrades
- Good integration with Delve Debugger
- Highly configurable with Go tools
- Nice integration with Git/Github
Debugging Practices
- Printing state
- go run -race (to detect race conditions)
- ctrl+Backslash (Linux command line to dump state)
- Interactive debugging with breakpoints (Delve)
Essential Resources
- How to Write Go Code (golang.org/doc/code.html)
- Awesome Go (github.com/avelino/awesome-go)
- "The Go Programming Language" - Book by Donavan and Kernighan
- Go By Example (gobyexample.com)
Further Practice
- Exercism Exercises (http://exercism.io/languages/go/exercises)
- Contribute to Go open source software
- Write your own Go open source apps/libraries
- Contribute to existing Go open source
- Read examples of Go code
- Standard Library (golang.org/src/net)
- Open Source (github.com/gorilla/mux)


This is first in my collection of cheat-sheets. This is here as a blog post until I figure out how to have a separate section just for cheat-sheets and not make them show up in posts, and then find time to implement it. Till then here it is and here it will be updated as and when need arises 🙃
Show change-history of a file
History of commits where this file was changed. This only gives the commits where it was changed (not the file-diff for those commits)
git log -- <file>
History of commits with file-diff
git log -p -- <file>
History of commits with file-diff tracked across renames
git log --follow -p -- <file>
Automatically rearrange fixup commits to their appropriate positions when rebasing
git rebase --interactive <commit-hash> --autosquash
Find which files have had the most commits
git log --all -M -C --name-only --format='format:' "$@" | sort | grep -v '^$' | uniq -c | sort -n | awk 'BEGIN {print "count\tfile"} {print $1 "\t" $2}' | tail -10
Create an empty commit
git commit --allow-empty -m "Commit message goes here"
List files in a commit
git show --pretty="" --name-only <sha1-commit-hash>
Have a great day people 👋


Software that leverages the capabilities of Circos by manipulating data, preparing configuration files, and running the Perl-native Circos directly from the R environment with minimal user intervention. Circos is a novel software that addresses the challenges in visualizing genetic data by creating circular ideograms composed of tracks of heatmaps, scatter plots, line plots, histograms, links between common markers, glyphs, text, and etc. Please see <http://www.circos.ca>.
| Version: | 1.0 |
| Depends: | R (≥ 2.14) |
| Imports: | png, grid |
| Published: | 2017-01-22 |
| Author: | Luis Diaz-Garcia |
| Maintainer: | Luis Diaz-Garcia <diazgarcia at wisc.edu> |
| License: | GPL-3 |
| URL: | http://cggl.horticulture.wisc.edu |
| NeedsCompilation: | no |
| SystemRequirements: | Circos |
| Citation: | SOFIA citation info |
| CRAN checks: | SOFIA results |
| Reference manual: | SOFIA.pdf |
| Package source: | SOFIA_1.0.tar.gz |
| Windows binaries: | r-devel: SOFIA_1.0.zip, r-release: SOFIA_1.0.zip, r-oldrel: SOFIA_1.0.zip |
| OS X binaries: | r-release: SOFIA_1.0.tgz, r-oldrel: SOFIA_1.0.tgz |
Please use the canonical form https://CRAN.R-project.org/package=SOFIA to link to this page.


Image Credit
Published under the Creative Commons Attribution-NonCommercial 2.0 Generic (CC BY-NC 2.0):
https://creativecommons.org/licenses/by-nc/2.0/
Image on Website was edited(cropped) to be optimized for 1400 x 800 resolution.
Original Picture: https://www.flickr.com/photos/tedconference/24771059919/in/photostream/


--- layout: default title: "Laptops" date: 2014-03-20 09:30:00 ---
There will occasionally be in-class exercises. If possible, please bring a laptop to class. You will need to have R installed.


{% extends "base_2col.html" %} {% block title %}Comment posted successfully | {{ block.super }}{% endblock %} {% block sl %}
Thanks for contributing.


Suyash the lion has invited his friend Penny the penguin round to his house. Suyash is used to the hot weather in Africa, but Penny loves the cold ice in the Arctic. If it’s colder than 20 degrees Suyash will start to freeze, but if the room gets hotter than 25 degrees Penny will get very very hot! Suyash doesn’t own a thermometer, but Penny brought her Engduino round with her. In this tutorial, we will teach you how to build a simple thermometer that will go red if it’s too hot, or blue if it’s too cold.
#include "EngduinoLEDs.h"
#include "EngduinoThermistor.h"
void setup() {
}
void loop(){
}
The Engduino comes with a built-in thermistor, which is a little electronic device that affects how a circuit works depending on the temperature. This means we can use the thermistor as a temperature sensor. To use the thermistor, we need to include the library with all the great functions that people have already written for us at the top of the program.
#include "EngduinoLEDs.h"
#include "EngduinoThermistor.h"
void setup() {
EngduinoThermistor.begin();
EngduinoLEDs.begin();
}
void loop(){
}
We then need to turn on the thermistor by calling the begin function on it, so that we can start measuring temperature with it later on, and we also need to do the same with the LEDs so like we did in the previous tutorial.
#include "EngduinoLEDs.h"
#include "EngduinoThermistor.h"
void setup() {
EngduinoThermistor.begin();
EngduinoLEDs.begin();
Serial.begin(9600);
}
void loop(){
}
Next, we need to set up a connection between the Engduino and a computer so that we can send the temperature values from the Engduino back to our computer. To do this, we use the Serial port; this is the USB port that you plug your Engduino into. We need to set up the Serial port so that it matches our particular Engduino board; this line in red sets the serial port to 9600, which is the speed that our board can send and receive messages.
void loop() {
float temp = EngduinoThermistor.temperature();
}
Now we can get the thermistor on the Engduino to measure the temperature of the room (or whatever is touching the thermistor!) We do this by calling the .temperature(); function on the thermistor. We need to store this temperature value in a variable, so we can use it later on in our program - this is what temp is. Float means that the temperature can be stored as a decimal number, so it is more accurate.
#include "EngduinoLEDs.h"
#include "EngduinoThermistor.h"
void setup() {
EngduinoThermistor.begin();
EngduinoLEDs.begin();
Serial.begin(9600);
}
void loop(){
float temp = EngduinoThermistor.temperature();
Serial.print("The temperature is: ");
Serial.print(temp);
Serial.println(" C");
}
Next, we want to be able to see what the temperature value is! So we use the serial port that we talked about to display information on the computer screen. This is what print does - it ‘prints’ the information in the brackets to a small screen if your Engduino is plugged into the serial port. So if the value of temp was 25 for example, this bit of code would display “The temperature is 25 *C” on the screen!
#include "EngduinoLEDs.h"
#include "EngduinoThermistor.h"
void setup() {
EngduinoThermistor.begin();
EngduinoLEDs.begin();
Serial.begin(9600);
}
void loop(){
float temp = EngduinoThermistor.temperature();
Serial.print("The temperature is: ");
Serial.print(temp);<
Serial.println(" C");
}
if(temp>20 && temp<25){
EngduinoLEDs.setAll(GREEN, 5);
}
This is all well and good, but if we don’t have our Engduino plugged into our computer, then we have no idea what the temperature is! So the first thing we will do is make all of the LEDs flash green when the room is at a good temperature for both Penny and Suyash.
As long as the temperature is over 20 degrees then Suyash will not freeze, and as long as the room is colder than 25 degrees then Penny will not overheat. So this is our ideal range for our temp value.
So inside our if statement, we use the AND symbol && to say that if the temperature is over 20 degrees and also under 25 degrees, then do whatever we put inside the curly brackets. Inside the curly brackets, we use the EngduinoLEDs that we
set up earlier, and call the .setAll function on them. Inside the brackets, we say which colour we want the LEDs to go, which is green because this is the perfect temperature range. The number is the brightness of the LEDs, and 5 is a pretty average level of brightness.
#include "EngduinoLEDs.h"
#include "EngduinoThermistor.h"
void setup() {
EngduinoThermistor.begin();
EngduinoLEDs.begin();
Serial.begin(9600);
}
void loop(){
float temp = EngduinoThermistor.temperature();
Serial.print("The temperature is: ");
Serial.print(temp);
Serial.println(" C");
}
if(temp>20 && temp<25){
EngduinoLEDs.setAll(GREEN, 5);
}
else if(temp<20){
EngduinoLEDs.setAll(BLUE, 5);
}
else if(temp>25){
Engduino.setAll(RED, 5);
}
Now we want to do the same thing again, but for if the room is too hot or too cold. We use else if statements to say, if the room is not at the ideal temperature and is too cold, do one thing, or if it is too hot, do another thing. Here we are saying that if the room is less than 20 degrees, set all the LEDs to be blue, because the room is too cold. Or, if the room is over 25 degrees, set all the LEDs to red because the room is too hot.
#include "EngduinoLEDs.h"
#include "EngduinoThermistor.h"
void setup() {
EngduinoThermistor.begin();
EngduinoLEDs.begin();
Serial.begin(9600);
}
void loop(){
float temp = EngduinoThermistor.temperature();
Serial.print("The temperature is: ");
Serial.print(temp);
Serial.println(" C");
}
if(temp>20 && temp<25){
EngduinoLEDs.setAll(GREEN, 5);
}
else if(temp<20){
EngduinoLEDs.setAll(BLUE, 5);
}
else if(temp>25){
Engduino.setAll(RED, 5);
}
delay(1000);
}
The last thing we need to do is add a delay of 1000 milliseconds at the bottom of the code, so it does not run too quickly and overload the tiny computer chip. Now this code will work perfectly! But for Penny and Suyash, who are super involved in learning more about how to code in C, they don’t notice the Engduino lighting up because the LEDs are not bright enough. The hotter the room gets, the more dangerous for Penny, and the colder it gets, the more likely Suyash is to freeze! So to help them out, we can make the lights on our Engduino get brighter as the room gets hotter or colder.
#include "EngduinoLEDs.h"
#include "EngduinoThermistor.h"
void setup() {
EngduinoThermistor.begin();
EngduinoLEDs.begin();
Serial.begin(9600);
}
void loop(){
float temp = EngduinoThermistor.temperature();
Serial.print("The temperature is: ");
Serial.print(temp);
Serial.println(" C");
if(temp>20 && temp<25){
EngduinoLEDs.setAll(GREEN, 5);
}
else if(temp<20){
EngduinoLEDs.setAll(BLUE, 5);
}
else if(temp>25){
Engduino.setAll(RED, 5);
}
else if(temp<20){
EngduinoLEDs.setAll(BLUE,5);
}
else if(temp<15){
EngduinoLEDs.setAll(BLUE,10);
}
else if(temp<10){
EngduinoLEDs.setAll(BLUE,15);
}
else if(temp>25){
EngduinoLEDs.setAll(RED,5);
}
else if(temp>30){
EngduinoLEDs.setAll(RED,10);
}
else if(temp>35){
EngduinoLEDs.setAll(RED,15);
}
delay(1000);
}
So we can carry straight on from the code we had before, we only have to change the else statements that set the LED values when the temperature is too hot or too cold. The bigger the number in the brackets, the higher the brightness of the LED. So here we are saying that if the temperature falls below 20 degrees, set the LEDs to blue, but at an average brightness. If the temperature goes below 15, turn the brightness up 5 higher, and if the temperature falls below 10 degrees, turn the brightness up to the highest!!
Can you figure out what the final 3 else statements are doing? (Hint: it’s almost the same as the first 3 else statements, but the opposite!)
So now we have a super great temperature sensor on our Engduino, how cool is that!!
Further problems:
Summary:
Further reading:


Welcome to Comeet!
meet your study buddies, and maybe future friends :)
Enter your BGU mail
Enter your name


Pictured: Mum claims 'ghost' photobombed family on trip to Birmingham cinema
The mum was looking through her pictures taken at a Sutton Coldfield Cinema and noticed a man sitting behind them wearing goggles likes an old fashioned pilot
by birminghammail.co.ukIs the face of a ghost haunting a Birmingham cinema?
One mum certainly thinks so after capturing a shadowy figure photo-bombing a selfie.
The 43-year-old mother took her daughter and nephew to Empire Cinema, on Birmingham Road, Sutton Coldfield , when she took the spooky image.
It was not until days later that she noticed a mysterious figure sat behind them in the snap.
The spooky soul seems to be wearing goggles and is looking down at the camera with his hands clasped before him.
What is more intriguing is that there are no seats where the man is supposed to be sat - only a space for people to exit.
The mum - who is also from Sutton Coldfield - said: “I knew it was strange. The corridor veers out and there are no further seats behind me.
"There’s nowhere for someone to sit. I thought the person or whoever it is sitting there has got these old fashioned goggles on their head, like a pilot.
“I would’ve noticed if someone was sitting there because it was just before the film was going to start and the cinema wasn’t packed out.
"There were a series of selfies I took with me and the children and he suddenly appears in one of them.”
The picture was taken in 2014 as the family watched a movie. Yet the image has played on the mum’s mind as time has gone on.
She said: “Over the years, I showed the photographs to friends and they thought it was strange, particularly with the goggles.
“When Birmingham Live asked this week if anyone had seen had seen a ghost to get in touch, I thought I would send it in, so the readers could make their mind up.
She added: “When I was a kid and growing up, I always used to go to the Odeon as it was known back then and there were stories that there was ghost or it was haunted.
“I thought nothing of it.
“Maybe the readers know what it is?”


seg1d.algorithm.combine_corr¶
-
seg1d.algorithm.
combine_corr
(x, w, method='m', scale=True)[source]¶ Combines Weighted Correlation
Takes in the correlated data results and multiply the weighting values to each array of data for that feature. | Combines the results of the weighted features
Parameters: - xDict[int,Dict[string,numpy.array]]
{scale:{ feature: array([correlations]) } }
- wDict[string,float]
{ feature: weight }
- method{‘m’,’w’, ‘s’}
keyword to use for aggregating feature correlations (default m). Options, m=mean, w=weighted mean, s=sum
- scalebool, optional
keyword argument for scaling the correlated feature before applying any of the aggregation methods
Returns: - Dict[int,numpy.array]
{scale: array([weighted correlations]) }
See also
rolling_corr
- (input for this function)
get_peaks
- (takes the return of this function)
Examples
>>> import random >>> import numpy as np >>> import seg1d.algorithm as alg
>>> #make a convenience function to get a wave for sample data >>> def s(f1, f2, f3): return np.sin( np.linspace(f1, f2, f3) )
>>> x = { ... 10: {'a': s(-np.pi*0.8, 0, 10), 'b': s(0, np.pi*0.8, 10)}, ... 20: {'a': s(-np.pi*0.7, 0, 10), 'b': s(0, np.pi*0.7, 10)} ... }
Assign some weights and find the averaged value
>>> w = { 'a': 0.5, 'b': 0.9 } >>> a = alg.combine_corr(x, w ) >>> for k,v in a.items(): print(k,v) 10 [-0.14694631 -0.07296588 0.00666771 0.0857847 0.15825538 0.21846498 0.26174865 0.28475292 0.2856955 0.26450336] 20 [-0.20225425 -0.12293111 -0.03630481 0.0524783 0.13814375 0.21560229 0.2802522 0.32825274 0.35675226 0.36405765]
Change the weight values and see the weighted scores change
>>> w = { 'a': 0.9, 'b': 0.2 } >>> a = alg.combine_corr(x, w ) >>> for k,v in a.items(): print(k,v) 10 [-0.26450336 -0.3270411 -0.36424081 -0.37322037 -0.35328408 -0.30597655 -0.23496298 -0.14574528 -0.04523573 0.05877853] 20 [-0.36405765 -0.39304054 -0.39867347 -0.38062179 -0.33995792 -0.27909765 -0.20165658 -0.1122354 -0.01614647 0.0809017 ]


Box English Student
40 random cards
Words are divided into30 themes
The box of cards with
English words EnglishStudent
The words do not repeat on different levels
A1 – Elementary “Starting from scratch”
A2 – Pre-Intermediate “Orientating in everyday life”
B1 – Intermediate “Speaking with confidence”
B2 – Upper-Intermediate “Avid conversationalist”
Cards with English words for kids
450 cards, unique pictures,
the words from children environment,
for kids 3+
399 UAH
Cart


Tree of knowledge
Chronos
The tree of knowledge springs eternal.
A central place for catalogueing all my contributions.
Applied Math
Probability & Counting
Coin toss markov chains
&
Mathy version.
Walking on a grid.
Mean and variance in coupons collected
The simplest proof of Blackwell's renewal theorem
Statistics
Breaking hypothesis testing for failure rates
Hypothesis testing visualized
Algebra
Solving systems of polynomial equations.
Solid geometry
vid:
Binomial coefficients on hypercubes
vid:
Slicing a Teserract
blog:
Permutations in slices of hyper-cubes
TODO: Equiangular lines in d-dimensions.
Optimization
Lagrange multipliers
Physics
Nothing can go faster than light from Maxwell's eqns.
CS and algorithms
Graphs
Combinatorial objects
Bijecting Dyck paths to binary search trees
Futurism
blog:
An invitation to become a Dyson swarming civilization
TODO: The simulation hypothesis
TODO: Threats


Pull-Request/Issue Manager Responsibilities
The D Language Foundation employs two part-time pull-request managers thanks to the sponsorship of Symmetry Investments. One of them is intended to fill an administrative/managerial role, the other a more technically-oriented role. This document outlines their general responsibilities in managing the pull requests submitted to the D Programming Language Github organization repositories, and the issues submitted to issues.dlang.org.
The primary goal for the creation of these positions is to streamline the contribution process. We are grateful to the volunteers who have been doing the work of maintaining our Issue and PR queues over the past several years, but the loose nature of our process has been such that too many contributions grow stale (no one takes an interest, they become bottlenecked on one maintainer, etc). Contributors should have confidence that their submissions, be they bug reports or content contributions, will be reviewed and shepherded to a conclusion without languishing for long periods of time. With paid staff overseeing the process, we expect the process will become more efficient, and contributors will have a primary point of contact to assist with tracking and resolving their contributions.
The following list is divided into Administrative and Technical responsibilities. Some may overlap, and there may be loose boundaries between others. We trust the PR managers to establish their own approach to carrying out these responsibilities.
In the text below, APR refers the Administrative PR Manager Role, TPR refers to the Technical PR Manager Role.
Administrative Responsibilities
In order to effectively carry out his responsibilities, the APR needs to be aware of which core contributors are responsible for which areas and which community members to contact when necessary to resolve issues, and have an understanding of the general direction the language and ecosystem are going (i.e., for any given PR, the APR should be able to answer the question, "Do we do this?").
- Maintain the contribution guide - the contribution guide establishes best practices for submitting issues and pull requests. The APR should work with the TPR to evolve these details as needed and ensure the document is up to date.
- Triage issues and PRs - ensure that each issue report is properly prioritized and, where possible, assigned to someone who can resolve it; establish criteria to ensure that pull requests get as much time as they need for a proper review before being merged (e.g., trivial vs. complex, routine vs. controversial, etc); establish criteria to close issues/PRs; recognize when a pull request should first be incorporated as a DIP; etc.
- Keep track of progress - the APR should establish some means of keeping up to date on the status of every issue and PR in our system, and will be the primary point of contact for queries about the status of any issue or PR.
- Communicate with relevant parties - communication is vital to ensuring the efficient handling of issues and pull requests. Contributors will need to be sought out to resolve issues that are not picked up voluntarily; non-trivial pull requests will need to be reviewed by an appropriate core contributor/maintainer; contributors will need to be kept abreast of the status of their contributions when they cannot be resolved quickly; etc.
Technical Responsibilities
In order to effectively carry out the responsibilities of this role, the TPR needs a solid understanding of the architecture of our GitHub projects (i.e., for any given PR, the TPR should be able to answer the question, "Can we do this?").
- Ensure compliance with contribution guide - each issue and pull request should meet the guidelines established in the contribution guide. The TPR will work with contributors to ensure these guidelines are met (reduced test cases, proper commit message format, changelog entries, resolve merge conflicts, etc).
- Identify and resolve regressions - sometimes bugs are reported that are regressions, but not marked as such. The TPR should identify such issues, attempt to pinpoint the source of all reported regressions, and take steps to resolve them (e.g., contact the author/reviewer of the offending PR).
- Review trivial PRs - pull requests that need no specialized review should be reviewed and merged by the TPR.
- Fix trivial issues - the TPR is free to fix trivial issues and submit such fixes as pull requests, but must request review from a competent reviewer.


Horizontal cells:
6
Vertical cells:
9
Play!
UNDO
Canvas tag not supported!
Audio tag not supported!
Rules
Only one move can be Undone!


mad props recently given to the 'Vette.
| The following props came from all highly respected sources, that's why
I like them so much. I love you all. --j0seph
|
YOU'RE MY HERO, JOSEPH SHEEDY!! well done indeed, sir!
a great website and car you have produced, young
grasshopper.
- Herman, Los Angeles, CA, USA
|
Hej Joseph !!!
Your website is really great !!i have more reality
about the free vegetable oil ,it's really a great idea
- Kiritin, Paris, France
|
AWESOME
Great stuff Joseph.
- Juergen, Ottawa, ON, Canada
|
Cool looking Chevette.
<...>
When you have a Diesel, you don't fill the tank.
- Bob "Diesel Chevette Man", Cincinnati, OH, USA
|
when i looked at your vette page, i literally swooned for a matter of
minutes.
literally!
- Andrea (&rea), Indiana, or Buffalo or Australia or something
|
I am so thoroughly stoked on this car!
- Nick, Seattle, WA, USA
|
|


--- layout: default title: About description: Basic info and about Agung Setiawan including links and contact info. ---
My name is Agung Setiawan.
I'm a software engineer at BukaLapak and a .NET developer turned Rubyist on early 2016, so yeah I'm a noob.
I love book so much and can't resist to buy it when I'm on a bookstore, even I still have so many unread books on my shelf. For me Book is Love, Book is Life.
Legacykode is my personal website in English I'm using mainly for learning English, yes.  If you find a strange sentence in this website that's because... ah you know it. Other than that, this website is my online presence in this big, big world of software engineering. At least, people in other side of the world (read: :usa) will know my name (haha!).
If you are fellow Indonesian, then you might prefer my other personal website agung-setiawan.com.
Feel free to contact me through Twitter or privately through email. I really enjoy talking with people.


Light pollution Mapmaps satellite night light and pollution data from DMSP data.created byDarsh shyam kumar


Brazil vs Argentina LIVE result: Lionel Messi goal enough to earn victory in Saudi Arabia
Final score: Brazil 0-1 Argentina
by Lawrence OstlereLionel Messi's solitary first-half goal was enough for Argentina to get the better of their old foe Brazil in Saudi Arabia.
Brazil had the first clear opportunity when Gabriel Jesus earned a penalty, but the Manchester City forward registered the fifth missed penalty of his young career, steering the ball wide of the post having sent the goalkeeper the wrong way.
Messi earned a penalty of his own a few minutes later when Alex Sandro tripped him in the box, although the contact appeared minimal. Messi got up to take the kick himself and although Alisson Becker saved his initial shot, the Liverpool keeper couldn't hold on to the ball and it squirmed loose for Messi to tap home.
Argentina were forced to dig deep at times in the second half although they also missed chances to wrap up the match. Re-live the game in Riyadh:
Show latest update
2019-11-15T16:14:15.090Z
It's almost time!
Brazil vs Argentina in Riyadh.
One of the glamour fixtures in all of sport.
- Jack Rathborn
- 15 November 2019 16:14
TEAM NEWS
Brazil XI: Alisson; Danilo, Militao, Silva, Sandro; Casemiro, Arthur, Lucas; Gabriel Jesus, Willian, Firmino
Argentina XI: Andrada; Foyth, Otamendi, Kannemann, Tagliafico; De Paul, Paredes, Lo Celso; Messi, Lautaro, Aguero
- Jack Rathborn
- 15 November 2019 16:20
2019-11-15T16:27:24.190Z
A chance for Willian on the left.
While an extra midfielder is included in Milan's Paqueta.
Jesus will have to play from the right.
- Jack Rathborn
- 15 November 2019 16:27
2019-11-15T16:31:24.040Z
A solid base for Messi, Lo Celso and Lautaro to shine.
- Jack Rathborn
- 15 November 2019 16:31
Advertisement
2019-11-15T16:36:51.620Z
Here, our writers break down the squads in search of the perfect combined XI; injured players or those overlooked in the current squads are ruled out, while form is taken into account.
So Mauro Icardi, Ederson and Neymar are unavailable.
Here are our writers’ combined line-ups and a composite XI below.
Selecting a combined Brazil vs Argentina XI
- Jack Rathborn
- 15 November 2019 16:36
Willian on who was the greatest of them all
"Ronaldinho was the best of them all," the Chelsea star said.
"Better than Messi and Cristiano. They score more goals but what Ronnie did was incredible.
"He was incredible on the field and he also scored. Although I am a fan of his, he left too soon."
- Jack Rathborn
- 15 November 2019 16:51
2019-11-15T16:57:06.756Z
The players are out! A reminder of the line-ups coming up...
- Lawrence Ostlere
- 15 November 2019 16:57
Line-ups
BRAZIL: Alisson, Danilo, Militao, Silva, Sandro, Casemiro, Arthur, Paqueta, Jesus, Willian, Firmino
ARGENTINA: Andrada, Foyth, Pezzella, Otamendi, Tagliafico, Ocampos, Paredes, De Paul, Messi, Lo Celso, Martinez
- Lawrence Ostlere
- 15 November 2019 16:58
Advertisement
2019-11-15T17:01:59.326Z
The anthems play. Brazil's is undoubtedly elite, for me, with sufficient jauntiness to rouse any crowd. Argentina's is a little more sombre with a balletic edge which isn't entirely out of keeping with their captain, Lionel Messi.
- Lawrence Ostlere
- 15 November 2019 17:01
2019-11-15T17:04:52.516Z
A wealthy looking Saudi Arabian chap shakes hands with the two playing squads on the sidelines. On field, the Kiwi referee flips a coin. The benches are impressive by the way, featuring Fabinho, Coutinho, Dybala and Aguero.
- Lawrence Ostlere
- 15 November 2019 17:04
KICK OFF
2019-11-15T17:06:32.016Z
KICK-OFF!
We are under way and Brazil are straight on the ball, and look a little shaky at the back immediately, giving the ball away twice, both times via Paqueta.
- Lawrence Ostlere
- 15 November 2019 17:07
3 min: Brazil 0-0 Argentina
Esteban Andrada has started brightly, the Boca goalkeeper, spraying balls to Argentina's flanks like a midfielder.
- Lawrence Ostlere
- 15 November 2019 17:09
Advertisement
2019-11-15T17:11:22.653Z
6 min: Brazil 0-0 Argentina
Oof, almost an outrageous mistake by Andrada, who pretty much tackles his own defender and then is nearly tackled himself by Jesus, but he manages to win a goalkick from the situation when it could have gone badly wrong.
- Lawrence Ostlere
- 15 November 2019 17:11
7 min: Brazil 0-0 Argentina
Jesus follows up a few minutes later with a chance on the angle but it's tamely hit and easily collected by Andrada.
- Lawrence Ostlere
- 15 November 2019 17:12
Penalty to Brazil!
- Lawrence Ostlere
- 15 November 2019 17:13
2019-11-15T17:15:33.673Z
Gabriel Jesus misses! He sent the goalkeeper the wrong way with one of those shuffle-y, jumpy run-ups, before sliding the ball a long way wide of the right post.
- Lawrence Ostlere
- 15 November 2019 17:15
Advertisement
2019-11-15T17:17:09.663Z
10 min: Brazil 0-0 Argentina
Jesus was certainly tripped and it was a definite penalty, but wow, what a miss. He's now scored four penalties in his career, five missed.
- Lawrence Ostlere
- 15 November 2019 17:17
Penalty to Argentina!
- Lawrence Ostlere
- 15 November 2019 17:17
2019-11-15T17:18:11.766Z
Lionel Messi is tripped by Alex Sandro. There's no doubt about it, and Messi will take it...
- Lawrence Ostlere
- 15 November 2019 17:18
GOAL! Brazil 0-1 Argentina (Messi)
Lionel Messi's penalty is saved by Liverpool's Alisson Becker, but he can't hold on to it and Messi has the easiest rebound to hand Argentina the lead.
- Lawrence Ostlere
- 15 November 2019 17:33
PREVIEW
When is it?
The match kicks off on Friday 15th November at 5pm (GMT), or 8pm local time.
How can I watch it?
The match will not be shown on UK television but you can watch it on Fanatiz or beIN SPORTS in the United States.
Odds
Brazil 6/5
Draw 2/1
Argentina 21/10


Mirrors
Officially unofficial mirrors for various GNU/Linux package repositories. Hosted in Nairobi, Kenya. Born out of personal/institutional necessity, offered to the community. When traffic is local (ie using KENET, Jamii, Zuku, etc) the speeds are several orders of magnitude faster than mirrors in the US, Europe, etc.
Faster updates, less international traffic, and giving something back to the community—everybody wins!
Arch Linux
Add the following to the top of your /etc/pacman.d/mirrorlist
:
Server = https://hpc.ilri.cgiar.org/mirror/archlinux/$repo/os/$arch
CentOS
Use https://hpc.ilri.cgiar.org/mirror in your /etc/yum.repos.d/CentOS-Base.repo
, ie:
[base]
name=CentOS-$releasever - Base
baseurl=https://hpc.ilri.cgiar.org/mirror/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-$releasever
Alternatively, download this CentOS-Base.repo
.
EPEL
EPEL 6 & 7 are also available. Use https://hpc.ilri.cgiar.org/mirror in your /etc/yum.repos.d/epel.repo
, ie:
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
baseurl=https://hpc.ilri.cgiar.org/mirror/epel/6/$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Alternatively, download this epel-6.repo
for EPEL 6 or epel-7.repo
for EPEL 7.


--- title: nice selection author: Zhian N. Kamvar date: '2019-06-18' slug: nice-selection categories: - example - R tags: - tidyverse - tidyselect - purrr - R - functions - programming ---
I started writing in R before the tidyverse became a thing and I never really had to think about non-standard evaluation when writing functions.
One of my biggest struggles was trying to figure out how, excactly to select a
varaible from a user as either a character string or a bare variable. I had only
known about rlang::enquo()
and rlang::sym()
, but I thought I had to use one
or the other.
I had liked tidyselect::vars_select()
because it gave me characters that I
could use on my data frame columns, and it worked really will with the dots:
f <- function(.df, ...) {
tidyselect::vars_select(colnames(.df), ...)
}
f(iris, tidyselect::starts_with("Sepal"))
## Sepal.Length Sepal.Width
## "Sepal.Length" "Sepal.Width"
f(iris, Sepal.Width)
## Sepal.Width
## "Sepal.Width"
f(iris, "Sepal.Width")
## Sepal.Width
## "Sepal.Width"
But when I would try it with specific arguments, it would scold me if the data weren’t in character form:
f <- function(.df, var) {
tidyselect::vars_select(colnames(.df), var)
}
f(iris, Sepal.Width)
## Error in .f(.x[[i]], ...): object 'Sepal.Width' not found
f(iris, "Sepal.Width")
## Sepal.Width
## "Sepal.Width"
I recently found that I could use !! enquo(var)
to allow the user to input
either a character or a bare variable:
library("rlang")
f <- function(.df, var) {
tidyselect::vars_select(colnames(.df), !! enquo(var))
}
f(iris, Sepal.Width)
## Sepal.Width
## "Sepal.Width"
f(iris, "Sepal.Width")
## Sepal.Width
## "Sepal.Width"
And now it finally makes sense!


UN Climate Change Conference - Poznań
05-Dec-08 — original report
The AWG-KP agreed to discuss various agenda items together.
Several parties identified the need to start negotiations on Annex I further commitments.
The EU highlighted 25-40% emission reductions by Annex I countries through a combination of domestic and international measures, while BRAZIL stressed that reductions using the mechanisms be additional to these Annex I reductions.
NORWAY identified a national reduction target of 30% from 1990 levels by 2020. NEW ZEALAND called for analyzing a range of factors and identifying varying national targets around the aggregate range, but the GAMBIA warned against allowing country-specific circumstances to delay progress.
CANADA said technical and methodological issues must be understood before deciding commitments.
SAUDI ARABIA and OMAN said sectoral targets should be restricted to Annex I parties, with OMAN stating that he would not accept further obligations beyond the UNFCCC.
The RUSSIAN FEDERATION identified the need to simplify LULUCF rules.
South Africa, for the G-77/CHINA, suggested a focus on scope, further analysis and possible solutions.
JAPAN, CANADA, AUSTRALIA and the RUSSIAN FEDERATION noted the relevance of these issues to all parties, said both negative and positive implications should be considered, and highlighted co-benefits.
CHINA said the AWG-KP must focus on Annex I parties and that this discussion should focus on adverse impacts.
The EU disagreed, preferring a balanced view.
In informal consultations, delegates discussed the process for the review and assessment of the effectiveness of the implementation of Convention Articles 4.1(c) and 4.5.
Parties were unable to agree on the timing of the review, with some preferring to postpone it until after COP 15.
They discussed the frequency of the reviews and composition of the review body, with disagreements over whether it should include EGTT members.
Parties also began consideration of a draft COP decision on the GEF strategic programme to scale up investment for technology transfer.
NORWAY and AUSTRALIA identified the need to consider legal issues and, with NEW ZEALAND, stressed synergies between the AWG-KP and AWG-LCA.
NORWAY said the work of the two AWGs forms the basis of a comprehensive package in Copenhagen and supported joint meetings.
NEW ZEALAND proposed that a Committee of the Whole or similar body be created in 2009.
CHINA opposed any major revision to how the AWG-KP and AWG-LCA conduct their work.
Leon Charles (Grenada) chaired the workshop, which sought to enhance understanding of risk management and risk reduction strategies.
The Secretariat presented the relevant documents ( FCCC/TP/2008/3 , 4 and 9, and FCCC/AWGLCA/2008/INF.2).
Bekele Geleta, International Federation of Red Cross and Red Crescent Societies, stressed risk reduction as the foundation for effective adaptation.
He highlighted the 2005 Hyogo Framework for Action and said existing institutions should be strengthened.
Julio Garcia Vargas, UN International Strategy for Disaster Reduction, discussed national planning for adaptation, sector-specific risk reduction plans, and risk assessments.
Koko Warner, Munich Climate Insurance Initiative, proposed a focus on prevention and insurance, including climate insurance pools and support for micro and macro-insurance systems.
She estimated the cost of these initiatives at US$10 billion.
Bangladesh, for LDCs, supported micro-insurance schemes.
Micronesia, for AOSIS, proposed a new multi-window mechanism that would include insurance, rehabilitation and compensation, and risk management.
CHINA said effective disaster response includes capacity building, infrastructure development, monitoring and early warning systems, international and regional cooperation, and insurance instruments.
The EU said insurance is a useful but context-dependent tool.
She suggested strengthening the links between the Hyogo Framework for Action and the UNFCCC.
PERU proposed insurance schemes for agricultural protection to cover crops and cattle loss.
SWITZERLAND focused on national examples of risk management relating to a flood protection strategy, and the agricultural and forestry sectors.
The PHILIPPINES noted the need for technical support, climate models, maps and information to implement risk management strategies.
At the contact group, the Philippines, for the G-77/CHINA, highlighted the need to operationalize the Fund as soon as possible and noted three issues to be resolved: cost of GEF services; direct access to funds; and the World Bank s role as a trustee.
The EU and SWITZERLAND said the Fund should be part of the post-2012 regime and able to attract additional funding.
As delegates rushed from one group to another on Thursday, some were expressing concern at overlaps between the issues being addressed in different meetings.
The CDM is being discussed in three groups, and privileges and immunities is also coming up in various places, observed one negotiator.
Similar issues were also reportedly being raised in the AWG-KP negotiations on spillover effects and on Protocol Articles 2.3 and 3.14 under the SBI/SBSTA.
I guess some duplication is inevitable given how connected all these issues have become - especially since we have six formal bodies meeting here, said a delegate.
It s giving me a headache trying to keep track, although I can see the Chairs and Secretariat making a concerted effort to coordinate everything, she added.
Meanwhile, some participants from civil society seemed to have given up on trying to follow the contact groups.
This is too confusing.
I m going to wait until they come back to plenary, said one bewildered private sector participant.
The co-facilitators reported on informal consultations on the flexible mechanisms and LULUCF, including efforts to prepare text for the next AWG-KP session.
On the type of further commitments, South Africa, for the G-77/CHINA, supported continuing the current approach but urged defining national targets based on objective criteria rather than political negotiation.
CHINA highlighted the need for continuity and simplicity and, with TUVALU and the EU, supported retaining 1990 as the base year.-¯JAPAN stated that further commitments should be expressed in absolute emission levels and that using a single base year gives unfair advantage to certain countries.
AWG-KP Chair Dovland highlighted the need to concentrate on emission reductions and express them clearly.
The G-77/CHINA proposed that Annex I parties take on at least a 25-40% goal, and INDIA stressed that lifestyle changes could lead to greater reductions.
In a contact group and informal consultations, delegates considered draft text setting out various options, including an EU proposal for a pilot phase.
Some parties supported CCS under the CDM, while others said it should not be included in the current commitment period, but might be considered at a later stage.
Co-Chair Børsting highlighted the contact group s focus on the CDM s operational aspects, including geographic distribution.
He explained that the structure of the draft text is similar to that of previous COP/MOP decisions.
He noted, inter alia , requests to the CDM Executive Board to: emphasize its executive and supervisory role; increase transparency; complete as a highest priority revision of the DOE accreditation process; and streamline procedures for countries with fewer than five projects.
BRAZIL outlined his proposal to expand eligibility criteria for afforestation and reforestation activities.
Compliance Committee Co-Chair Oberthür explained proposed amendments to the Committee s rules of procedure.
These amendments would introduce transparent rules for the calculation of time periods, clarify parties right to be represented, and elaborate rules concerning the submission and assessment of compliance action plans.
CANADA and JAPAN raised concerns about introducing new criteria concerning compliance action plans.
On the Committee s independent experts, NEW ZEALAND and the EU noted that privileges and immunities are also considered under the SBI.
Co-Chair Lefevere said the contact group could, for instance, recommend the consideration of the issue under the SBI.
The Co-Chairs will prepare a draft text and consult informally.
During informal consultations, delegates continued to discuss the draft decision on the fourth review of the financial mechanism.
Disagreement persisted on the title for the first section, which concerns the assessment of funding to assist developing countries in fulfilling their commitments under the Convention.
No text was agreed.
Informal consultations will continue.
During the contact group, Brazil, for the G-77/CHINA, rejected proposals for differentiation among non-Annex I parties.
SINGAPORE and the BAHAMAS said diverse national circumstances should be taken into account.
JAPAN suggested broadening Annex I on the basis of multiple criteria and differentiating among developing countries.
Barbados, for AOSIS, said developed countries should take the lead and developing countries should pursue a clean development pathway.
The ENVIRONMENTAL INTEGRITY GROUP noted that all parties to the Convention have to undertake actions and drew attention to South Korea s proposal to establish a registry of nationally appropriate mitigation actions.
Delegates responded to draft text on Articles 2.3 and 3.14.
The EU noted the need to take into account ongoing, relevant discussions under other SBI agenda items, the AWG-LCA and AWG-KP.
Saudi Arabia, for the G-77/CHINA, observed that Annex I communications have provided little information on how policies and measures have impacted on developing countries.
The EU explained that it was difficult to ascertain potential impacts and requested developing countries to provide information on impacts experienced.
AUSTRALIA called for a focus on actual rather than potential impacts.
Parties met informally in the morning to identify areas of agreement, and in the evening to consider draft text seeking to clarify, inter alia ,possible elements of agreed progress.
Some parties sought a COP decision to demonstrate progress, while others wished to focus on further refining methodological advice.
Discussions also addressed interaction with the AWG-LCA, with some parties suggesting that progress is needed on the policy side to specify outstanding methodological work.
Parties also considered future expert consultations and a possible request for submissions on capacity building needs.


What we will learn is not just a textbook kind of happiness but one that you will be able to experience and apply to your daily life.
Happiness is not about giving ourselves some optimistic fantasies or self-hypnotic wishful thinkings. Here, the only way is truth.
Anyone can live. But to live a truly meaningful life one must has a clear purpose. Here, you will find what matters most to you.
World peace depends on happiness. If our happiness is to "take" rather than to "give" then there is no way humanity will find world peace. We here to develop happiness.


--- layout: archive title: Zulip Chat Archive permalink: /stream/113488-general/topic/mathlib.20PR's.html ---
I don't understand how to make a mathlib PR any more. I used to make a new branch on leanprover-community/mathlib
and then open a PR request to leanprover/mathlib
. Now I have write access to non-master branches on what is the main mathlib repo. How does it work now?
Nearly the same, just that you open the PR on leanprover-community/mathlib
against the master
branch
OK thanks; I didn't know you could open a PR for a branch on the same project. I've only done it from a fork before.
{% endraw %}Last updated: Apr 24 2020 at 19:02 UTC