sábado, diciembre 27, 2008

git-stash

git-stash is a really cool command, it let you save a work in progress, for example you are developing a new feature in your application, and still your changes are not ready to do a commit, and you must switch of branch (or another option that requires that indexes are up to date), so what can you do?, easy, just use git-stash it will save your current changes and then will revert to the last commit, then you do what ever you need to do, and when you are ready to back to your work simply use git-stash pop (or you can use the man page to other options)


freyes@yoda:rascase.git$ git stash list
stash@{0}: WIP on rewrite-items: 52cfbe4... [items] registered the new items with gobject
freyes@yoda:rascase.git$ git stash pop
# On branch rewrite-items
# Changed but not updated:
# (use "git add ..." to update what will be committed)
#
# modified: rascase/views.py
# modified: setup.py
#
no changes added to commit (use "git add" and/or "git commit -a")
Dropped refs/stash@{0} (74b9490b8bf8b22f5b1e687e5c0bc881719f6763)

sábado, diciembre 13, 2008

dlink dir-320 with dd-wrt

My old router after two years of work died, so I used this like a excuse to buy a linux compatible, after a few searches I found the dir-320, It's a broadcom based device, that runs dd-wrt, and like an extra gift it brings a usb port :D, do you imagine the hundreds of possibilities that opens this simple feature.

Well, right, I run a torrent web-based client, a webserver (cherokee rocks, you should give a test), and a lot of things. Still the usb driver is a little buggy, for example my usb key (the old one a kingston data traveler that died mysteriously, and the new one also a kingston) it was not recognized by the kernel, but when I plugged the usb hard drive (it's an ide HD inside a usb enclosure) the kernel detected it, so I installed a few packages.

If you are interested in the firmware that I used, well left it in my router :P

update: I recently installed django, damn it, optware is so fucking good :D

PS: thanks to linuxdiinf for the subdomain.
PS2: guys, the linuxdiinf domain expires in march, so we must start a call for donations.

jueves, diciembre 04, 2008

Python 3.0

Finally is here baby: Python 3.0

I will have to start reading the incompatible changes with 2.6 to write the new code in a compatible way with 3.0 and think when to change my old code to make it compatible with this new and shine piece of software.