This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Start Virtual Guest without using the GUI frontend (source: http://www.virtualbox.org/manual/ch07.html#vboxheadless): | |
VBoxManage startvm "VM name" --type headless | |
The extra --type option causes VirtualBox to use VBoxHeadless as the front-end to the internal virtualization engine instead of the Qt front-end. | |
The alternative is to use VBoxHeadless directly, as follows: | |
VBoxHeadless --startvm <uuid|name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call pathogen#infect() | |
syntax on | |
filetype plugin indent on " load filetype plugins/indent settings | |
" General | |
set autochdir " always switch to the current file directory | |
set incsearch " highlight as you type your search phrase | |
set laststatus=2 " always show the status line | |
set number " turn on line numbers | |
set showcmd " show the commad being typed, e.g. ctrl+y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This trick will help when you open a file using normal user and then realize that you need to be root to save the file: | |
In command mode: | |
:w !sudo tee % | |
Ref: http://stackoverflow.com/questions/1005/getting-root-permissions-on-a-file-inside-of-vi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# django settings.py - LOGGING configuration | |
LOGGING = { | |
'version': 1, | |
'disable_existing_loggers': True, | |
'formatters': { | |
'verbose': { | |
'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# contents of a django wsgi file. | |
import os | |
import sys | |
SITE_PACKAGES_DIR='<absolute-path-to-virtualenv-folder>/lib/python2.7/site-packages' | |
DJANGO_PROJECT_PARENT_FOLDER='<absolute-path-to-django-project-folder>' | |
DJANGO_PROJECT_PATH='<absolute-path-to-django-project-app-folder>' | |
SETTINGS_FILE='settings' | |
# Add the virtual Python environment site-packages directory to the path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Apache 2 - wsgi configuration. | |
<VirtualHost *:80> | |
WSGIScriptAlias / <absolute-path-to-.wsgi-file> | |
ServerName <some-server-alias> | |
Alias /static <absolute-path-to-the-django-project-static-files-folder> | |
<Directory <absolute-path-of-the-django-project-directory> > | |
Order allow,deny | |
Allow from all | |
</Directory> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# django urls.py format | |
(regular expression, Python callback function [, optional dictionary]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
All the Mathematics You Missed: But Need to Know for Graduate School | |
Mathematics: Its Content, Methods and Meaning | |
Mathematics for the Million: How to Master the Magic of Numbers | |
Nicolas Bourbaki | |
The Artist and the Mathematician: The Story of Nicolas Bourbaki, the Genius Mathematician Who Never Existed | |
https://sites.google.com/site/math104sp2011/lecture-notes | |
http://math.stackexchange.com/questions/69060/what-is-a-good-book-for-learning-math-from-the-ground-up | |
http://math.stackexchange.com/questions/178302/i-want-to-start-mathematics-from-scratch-what-should-i-begin-with |
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 7 columns, instead of 4. in line 7.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Story of Art (Hardcover),E.H. Gombrich,3.88,371409,1950,art,www.goodreads.com//book/show/222078.The_Story_of_Art | |
The New Drawing on the Right Side of the Brain (Paperback),Betty Edwards,3.84,397471,1979,art,www.goodreads.com//book/show/627206.The_New_Drawing_on_the_Right_Side_of_the_Brain | |
Wall and Piece (Paperback),Banksy,3.84,302128,1988,art,www.goodreads.com//book/show/114683.Wall_and_Piece | |
Steal Like an Artist: 10 Things Nobody Told You About Being Creative (Paperback),Austin Kleon,3.88,278559,2012,art,www.goodreads.com//book/show/13099738-steal-like-an-artist | |
Girl with a Pearl Earring (Paperback),Tracy Chevalier,3.86,717160,1999,art,www.goodreads.com//book/show/2865.Girl_with_a_Pearl_Earring | |
The Artist's Way (Paperback),Julia Cameron,3.89,154488,1992,art,www.goodreads.com//book/show/615570.The_Artist_s_Way | |
The Art Book (Paperback),Phaidon Press,3.81,227646,1997,art,www.goodreads.com//book/show/567616.The_Art_Book | |
Art and Fear: Observations on the Perils (and Rewards) of Artmaking,David Bayles,3.7,1398 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; | |
const int INF = 99*999 + 1; | |
int main() { | |
freopen("input.txt", "r", stdin); | |
freopen("output.txt", "w", stdout); |
OlderNewer