Archive for the ‘uncategorized’ Category

My dev box reloaded! Lucid Lynx 10.04 LTS

Wednesday, May 12th, 2010

Notice the window’s close, maximize and minimize buttons. OS X inspired, eh?

First things first: apps! apps! apps!

* Google Chrome (+jQuery shell extension)
* TweetDeck

Ok, done with Desktop apps. Moving on to other housekeeping items.

* aptitude install emacs
* gnu screen (came out of the box)
* aptitude install irssi
* aptitude install synergy
* aptitude install openssh-server
* aptitude install htop
* aptitude install python-setuptools (this gives you python’s easy_install)
* easy_install pip (if you use aptitude to install ‘pip’, that’s perl’s pip)
* pip install virtualenvwrapper && virtualenv
* pip install fabric (for partial continuous deployment)
* aptitude install gitk
* aptitude install python-dev

I’m too tired to do the other stuff, but tomorrow, it will be:

* Apache
* Django
* MySQL, Redis, Mongo
* pip install python-mysql (and whatever else drivers)
* Set up SSH keys, .bashrc, .screenrc, .irssi,
..

Update 1:
* aptitude install flashplugin-nonfree (Adobe Flash plugin for Mozilla)
* OpenJDK Java 6 runtime (requirement for Eclipse)
* Eclipse IDE
* Firebug

Update 2:
* aptitude install build-essential
* aptitude install ipython
(click for bigger, must be signed in to Flickr)

Screenshot

Reverse engineering things other than malware

Friday, December 11th, 2009

.. like music. It’s nice to see how fields outside of mine can be similar in some ways .. I’m impressed.

Allow your visitors to sign in via Twitter, Facebook, FriendFeed, OpenID, and OAuth with django-socialregistration

Wednesday, October 28th, 2009


The title says it all. Allow your visitors to sign in via Twitter, Facebook, FriendFeed, OpenID, and OAuth with django-socialregistration. Hence the name, “social registration”. I’ve been tinkering with this module and I’ve just got the Twitter OAuth login/registration to work. It’s pretty neat!

You know how much you loathe having to register/sign-up for yet another new service, just to try it? Well, as a site owner, it’s really in your best interest to lower the bar for the public to figure out if they want to use your service. Make it as frictionless as possible.

The README provides all the instructions you need, except one thing: you must explicitly tell Django’s authentication process to also check the socialregistration module’s authentication backend

In other words, in your settings.py:

AUTHENTICATION_BACKENDS = (

    # this is the default backend, don't forget to include it!
    'django.contrib.auth.backends.ModelBackend', 

    # this is what you're adding for using Twitter
    'socialregistration.auth.TwitterAuth', 

    'socialregistration.auth.FacebookAuth', # Facebook

    'socialregistration.auth.OpenIDAuth', # OpenID

    )

You can either add it in your settings.py or global_settings.py (mine’s in /usr/local/lib/python2.6/dist-packages/django/conf/ )
(more…)

Updated WordPress!

Saturday, September 5th, 2009

I’ve been dragging my feet because I’ve been so busy but I’ve finally updated my aging WordPress installation! With the widespread attacks, I could no longer take any chances on getting compromised (and be yet another web site owner that’s unknowingly infecting visitors!) Warning indicators for me include spammers signing up for accounts on this blog.

This is a test post. If you’re seeing this, the upgrade worked. Time to shop for a theme. But first … some motorcycle gear. Happy Saturday moin!

Update #1 – Wow, looks like other WordPress users were not so lucky. Here’s WordPress’s Matt’s take.

Patterns at work

Thursday, July 2nd, 2009

Tomorrow is a corporate holiday for just about everyone (July 4th weekend), and today is a slow day at work with most people already out of office. Crunch time for me though, and I will be at work tomorrow. Am I seeing patterns now? Hmm ..