In [7]: youtube_video_is_blocked("tMhzINs6DjA") Out[7]: (False, None)
In [8]: youtube_video_is_blocked("2VfMafuY6o8") Out[8]: (True, [u'CO'])
{"url": "http://dev.aquehorajuega.co:8000/noticias/barros-schelotto-esto-sera-asi-hasta-junio/", "story": "\\"Esto ser\\u00e1 as\\u00ed hasta junio. Por algo Boca tuvo que cambiar el entrenador; no ven\\u00eda jugando bien \\u00bfQuieren que les mienta? No les puedo mentir\\", afirm\\u00f3 Schelotto haciendo su an\\u00e1lisis sobre el nivel de Boca tras el supercl\\u00e1sico que igual\\u00f3 frente a River, en donde poco o nada de buen f\\u00fatbol se pudo ver. \\r\\n\\r\\nEl mellizo admite que el equipo fue inferior tal y como lo asegur\\u00f3 Gago al termino del partido, pero avisa que no habr\\u00e1n grandes cambios por ahora, \\"Tenemos muy poco tiempo de trabajo, poco tiempo para entrenar y llegamos al partido de River con tres pr\\u00e1cticas\\", a\\u00f1adi\\u00f3 el nuevo entrenador del equipo \'xeneize\'.\\r\\n\\r\\nBoca Juniors ha tenido un flojo arranque en el torneo local, se ubican en el sexto puesto de la zona 2 con 8 puntos en 6 fechas jugadas y Schelotto tiene la dura tarea de poner al equipo |
# install postgres. install heroku and run "heroku login". | |
heroku pg:backups capture --app appname | |
curl -o latest.dump `heroku pg:backups public-url --app appname` | |
createdb dbname | |
pg_restore --verbose --clean --no-acl --no-owner -d dbname latest.dump |
# 1. lanza instancia | |
# 2. ssh instancia (click en ec2 instance, click en boton [connect] para ver info de conexion. | |
# update ubuntu | |
> export LANGUAGE=en_US.UTF-8 | |
> export LANG=en_US.UTF-8 | |
> export LC_ALL=en_US.UTF-8 | |
> sudo apt-get update | |
> sudo apt-get upgrade | |
> sudo dpkg-reconfigure tzdata |
public void getOrCreateUser(final ParseUser parseUser, final String email, final ProgressDialog dialog){ | |
String URL = "https://example.co/api/accounts?email="+ email +"&action=get_or_create"; | |
JsonArrayRequest req = new JsonArrayRequest(URL, new com.android.volley.Response.Listener<JSONArray>() { | |
@Override | |
public void onResponse(JSONArray jsonArray) { | |
try { | |
JSONObject apiUser = jsonArray.getJSONObject(0); | |
parseUser.put("email", email); | |
parseUser.put("api_token", apiUser.getString("token")); | |
parseUser.put("api_id", apiUser.getInt("id")); |
In [7]: youtube_video_is_blocked("tMhzINs6DjA") Out[7]: (False, None)
In [8]: youtube_video_is_blocked("2VfMafuY6o8") Out[8]: (True, [u'CO'])
import requests | |
# sample data to index. a layer. | |
d = { | |
'abstract': u'Public transportation in Sierra Leone is a rather unregulated business, with no comprehensive country-wide agenda. Most public transport appears to be provided by private entities. TaxiIn the larger towns, taxi service is rather reliable and occurs along predetermined routes. Most common is the use of Motorbike taxis, also known as Ocadas, which travel both within and across neighboring towns.BusMinibuses, known as Poda-Podas are the most common means of transport between towns. There are also Government Bus Routes and private Coach Buses, but these only connect the cities of Freetown, Bo and Kenema. Water transportIn Freetown, the use of water-based transportation is especially important for travel to and from the Lungi International Airport. The airport is located on the opposite side of the Sierra Leone River and at a distance of 3-4 hours if accessed by road, so options such as taxi-boat and ferries are the preferred modes of transp |
* What went wrong: | |
A problem occurred evaluating root project 'buildSrc'. | |
> Gradle 2.13 is required to build elasticsearch | |
--- | |
/Users/panchicore/www/es/elasticsearch/buildSrc/src/main/groovy/org/elasticsearch/gradle/vagrant/TapLoggerOutputStream.groovy: 25: unable to resolve class org.gradle.logging.ProgressLogger | |
@ line 25, column 1. |
import datetime | |
import requests | |
# Create boxes from map here: | |
# http://boundingbox.klokantech.com/ | |
# FORMAT CSV COMES: ymin, xmin, ymax, xmax | |
PLACES = { | |
"FRANCE": [ | |
[0.8129882813,45.5563717359,3.9331054688,47.6616878033], |
Worker information | |
hostname: i-0515722-precise-production-2-worker-org-docker.travisci.net:e7ced2aa-7e22-46a5-a0e5-854e13bdc252 | |
version: v2.5.0-8-g19ea9c2 https://github.com/travis-ci/worker/tree/19ea9c20425c78100500c7cc935892b47024922c | |
instance: 07f5ea8:travis:python | |
startup: 775.970325ms | |
system_info | |
Build system information | |
Build language: python | |
Build group: stable | |
Build dist: precise |
essere | |
avere | |
andare | |
fare | |
potere | |
volere | |
venire | |
dovere | |
dare | |
stare |