start new:
tmux
start new with session name:
tmux new -s myname
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common | |
sudo apt-get build-dep vim-gnome | |
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev | |
sudo rm -rf /usr/local/share/vim | |
sudo rm /usr/bin/vim | |
{ | |
"success":false, | |
"response":[{ | |
"tipo":"TIPO ERROR", | |
"error":"ERROR 123", | |
"exception":"EXCEPTION MESSAGE" | |
}] | |
} |
/* | |
* Copyright 2013 Evelio Tarazona Cáceres <evelio@evelio.info> | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
public class FragmentObserver extends Observable { | |
@Override | |
public void notifyObservers() { | |
setChanged(); // Set the changed flag to true, otherwise observers won't be notified. | |
super.notifyObservers(); | |
} | |
} |
/** | |
* This class provides the URI and const values to work with Any.do's Content Provider. | |
* | |
* A guide is available on http://tech.any.do/content-provider-for-any-do/ | |
*/ | |
public class TasksContract { | |
public static final Uri TASKS_URI = Uri.parse("content://com.anydo.provider/tasks"); | |
public static final Uri FOLDERS_URI = Uri.parse("content://com.anydo.provider/folders"); | |
public static final String PERMISSION_READ = "com.anydo.provider.permission.READ_ANYDO_TASKS"; |
sudo apt-get update && sudo apt-get upgrade -y; | |
sudo apt-get build-dep -y libqt4-gui libqt4-network libqt4-webkit; | |
sudo apt-get install -y openssl build-essential xorg git git-core libssl-dev libxrender-dev t1-xfree86-nonfree xfonts-scalable ttf-ubuntu-font-family ttf-mscorefonts-installer poppler-utils libqt4-dev qt4-dev-tools; | |
cd ~; | |
git clone git://gitorious.org/~antialize/qt/antializes-qt.git wkhtmltopdf-qt; | |
git clone git://github.com/antialize/wkhtmltopdf.git wkhtmltopdf; | |
cd wkhtmltopdf; | |
qmake-qt4; | |
cd ../wkhtmltopdf-qt; | |
git checkout 4.8.4; |
# These instructions were tested on Ubuntu 12.04 64bit | |
# Be prepared to wait a while... | |
sudo apt-get install openssl build-essential xorg libssl-dev libxrender-dev libxext-dev libpq-dev libx11-dev | |
git clone git://github.com/antialize/wkhtmltopdf.git | |
git clone git://gitorious.org/+wkhtml2pdf/qt/wkhtmltopdf-qt.git wkhtmltopdf-qt | |
cd wkhtmltopdf | |
mkdir static-build | |
ln -s ../wkhtmltopdf-qt static-build/qt | |
./scripts/static-build.sh |
As configured in my dotfiles.
start new:
tmux
start new with session name:
from django.contrib.sessions.backends.base import SessionBase, CreateError | |
from django.conf import settings | |
from django.utils.encoding import force_unicode | |
import redis | |
class SessionStore(SessionBase): | |
""" Redis store for sessions""" | |
def __init__(self, session_key=None): | |
self.redis = redis.Redis( |