Post To WordPress

https://chrome.google.com/webstore/detail/post-to-wordpress/hhmhfcfbheceghfbfjgkjnlhooadpnej?hl=en-GB

 

Downloading courses from coursera

sudo apt-get install libxml2 libxml2-dev libxslt-dev python-dev

easy_install lxml

Just do a “pip install coursera-dl” and then run as follows:

coursera-dl -u myusername -p mypassword -d /my/courses/ algo-2012-001 ml-2012-002

Code is in python and can be found on Github.

Source:http://dirkgorissen.com/2012/09/07/coursera-dl-a-coursera-download-script/

 

Installing qtstalker in Ubuntu 12.04

sudo apt-get install build-essential libdb4.4-dev qt3-dev-tools libqt3-mt-dev

libdb4.4-dev not found

 

Django 1.5 User Model and Registration

Facebook Login

Sell stuff to your audience: https://gumroad.com/

https://github.com/omab/django-social-auth

https://github.com/jonathanendersby/SocialAuthCustomUserModel

Trying to get this one working!

pip install django-social-auth

django-admin.py startapp accounts

Add to settings:

‘genomex.accounts’,
‘social_auth’,

add to middleware classes

‘social_auth.middleware.SocialAuthExceptionMiddleware’,

Add to settings

AUTHENTICATION_BACKENDS = (
    ‘social_auth.backends.google.GoogleOAuth2Backend’,
    ‘django.contrib.auth.backends.ModelBackend’,
)
LOGIN_URL = ‘/’
LOGIN_REDIRECT_URL = ‘/post’
LOGIN_ERROR_URL = ‘/error’
GOOGLE_OAUTH2_CLIENT_ID = ‘CLIENTIDCLIENTIDCLIENTIDCLIENTID’
GOOGLE_OAUTH2_CLIENT_SECRET = ‘CLIENTSECRETCLIENTSECRETCLIENTSECRET’
AUTH_USER_MODEL = ‘myapp.User’ # You do not need SOCIAL_AUTH_USER_MODEL

Go to google api to get an id

https://code.google.com/apis/console/?pli=1#project:804861904040:access

Call back www.genomex.org/post

Add keys

Fill Models and Views, templates

add urls.py

 url(r”, include(‘social_auth.urls’)),
    url(r’^$’, TemplateView.as_view(template_name=”pre.html”)),
    url(r’^post$’, TemplateView.as_view(template_name=”post.html”)),
    url(r’^error$’, TemplateView.as_view(template_name=”error.html”)),
./manage.py syncdb

migrate

Fix templateview

Deploy!

Setting up env in Webfaction

https://github.com/xenith/django-base-template

$ pip install -r requirements/local.txt
$ cp projectname/settings/local-dist.py projectname/settings/local.py
$ python manage.py syncdb
$ python manage.py migrate
$ python manage.py runserver

Edit http apache confg

edit wsgi.py

from site import addsitedir
addsitedir(‘/home/raony/.virtualenvs/cursoder/lib/python2.7/site-packages’)

sys.path.append(‘/home/raony/webapps/cursoder/rcourse’)

requirements/local

requirements/production

Set up Database

python manage.py sync

St up local.py

Redirect uri request

http://genomex.org/complete/google-oauth2/

Found this website a long time ago

http://learn.hackerearth.com/

https://github.com/pennersr/django-allauth

 

Rooting my Android Phone

Super One Click http://forum.xda-developers.com/showpost.php?p=8699742&postcount=537 sudo apt-get install lib32ncurses5 sudo apt-get install lib32stdc++ sudo apt-get install mono http://developer.android.com/tools/device.html#setting-up Link2SD http://forum.xda-developers.com/showthread.php?t=2177655

 

Sobre o futuro da publicação científica

http://the-scientist.com/2012/08/01/whither-science-publishing/

 

Articles of the week

http://www.ncbi.nlm.nih.gov/pubmed/21198543

http://download.cell.com/AJHG/pdf/PIIS0002929711000966.pdf

 

Minitube & Android Development

http://flavio.tordini.org/minitube

sudo apt-get install minitube

This app let me watch youtube videos without using a browser, perfect if you are doing something else (like programming) and watching a video.

You can also achieve the same thing with totem native ubuntu video player but you have to download an extra plugin in order to watch videos with a higher quality:

http://www.simplehelp.net/2008/05/23/how-to-watch-youtube-videos-in-the-ubuntu-media-player/
http://www.omgubuntu.co.uk/2012/09/desktop-youtube-app-minitube-adds-search-filtering-youtube-fix
http://flavio.tordini.org/musictube

 

Minitube

http://flavio.tordini.org/minitube

sudo apt-get install minitube

This app let me watch youtube videos without using a browser, perfect if you are doing something else (like programming) and watching a video.

 

Daily Notes and Links

Enabling Spell Check for portuguese brazilian in Kile:

sudo apt-get install ibrazilian

aspell-pt-br

myspeel-pt-br

systemsettings