- stop vagrant VM if running
- git checkout
<branch>
(unisubs & unisubs-integration) - vagrant up
- vagrant ssh
- vereset (blows away virtualenv)
- dbreset (blows away DB)
- dev-runserver.sh
stage { "pre": before => Stage["main"] } | |
class python { | |
package { | |
"build-essential": ensure => latest; | |
"python": ensure => "2.6.6-2ubuntu1"; | |
"python-dev": ensure => "2.6.6-2ubuntu1"; | |
"python-setuptools": ensure => "latest"; | |
} | |
exec { "easy_install pip": | |
path => "/usr/local/bin:/usr/bin:/bin", |
// | |
// Orthodox Chaining | |
// | |
//basic Object that implements chaining | |
var myObj = { | |
_val : 'lorem', | |
val : function(val){ | |
if(val === void(0)){ | |
return this._val; |
import os | |
import shutil | |
import subprocess | |
import sys | |
import tarfile | |
import urllib2 | |
LIBXML2_PREFIX = "libxml2" | |
LIBXSLT_PREFIX = "libxslt" | |
LIBXML2_FTPURL = "ftp://xmlsoft.org/libxml2/" |
var win = Titanium.UI.createWindow({ | |
backgroundColor: 'blue' | |
}); | |
var btn = Ti.UI.createButton({ | |
title : 'Add Notification' | |
}); | |
btn.addEventListener('click', function(e) { | |
var activity = Ti.Android.currentActivity(); |
//usage | |
withAdvice.call(targetObject); | |
//mixin augments target object with around, before and after methods | |
//method is the base method, advice is the augmenting function | |
withAdvice: function() { | |
['before', 'after', 'around'].forEach(function(m) { | |
this[m] = function(method, advice) { | |
if (typeof this[method] == 'function') { | |
return this[method] = fn[m](this[method], advice); |
#!/bin/bash | |
# | |
# Install Postgres 9.2 on a clean Ubuntu 12.04 | |
""" | |
LC_ALL issue | |
comment out the AcceptEnv LANG LC_* line in the remote /etc/ssh/sshd_config file. | |
sudo apt-get install language-pack-en-base | |
sudo dpkg-reconfigure locales | |
comment out the SendEnv LANG LC_* line in the local /etc/ssh/ssh_config file. |
hmm ok maybe I should bisect this bug | |
let's see if this has always happened | |
$ git checkout some-old-rev | |
nope it used to be good ok let's bisect | |
$ git bisect good | |
already bisecting |
A couple of days ago a bunch of demo envs were failing to upload subtitles. Uploads would go through, but text would be empty (timming, number of subs, etc were ok). Could not repro locally, nor on staging, nor on dev. After a very fun debugging session, this is what happens:
- babelsubs requires bleach
- bleach requires an unpinned (latest) version of html5lib
Html5lib released a backwards incompatible release a couple of days ago. So, when creating a new env, pip would find the babelsubs dependency. Then the bleach dependency, then the html5lib, and would install the broken version. Everything 'worked' except bleach.clean would return an empty string instead of anything else.
Therefore, those new envs would get html5lib-1.01a which is broken, but our local installs would still be on 0.95 (which works). This is their bug report: mozilla/bleach#94
The fix (hopefully) is to load our pinned down version of html5lib before bleach so that when pip finds the dependency on bleach i
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<string name="config_app_name">AVélib</string> | |
<string name="config_authority">com.cyrilmottier.android.avelib.citybikes</string> | |
<string name="config_com.google.android.maps.v2.api_key">XXX</string> | |
</resources> |