Quick GIT notes.. from a developer perspective

0 comentarios
A few months ago i started using GIT, here I'll post quick notes I've learned since then (from a developer perspective, not as an admin).. and I'll update this thing!

User details:
git config --global user.name "Daniel Morales"
git config --global user.email daniel@isp.com
Clone a repository:
git clone ssh://USERNAME@git.server.com/PATH/TO/MODULE
Create a new branch (locally):
git branch "new_branch_name"
Checkout a branch:
git checkout "branch_name"
Update changes from server:
git pull
Commit changes:
git commit
Add files:
git add /path/tho/file.c 
View local changes:
git diff
View log:
git log
Reset (revert) changes of a single file:
git reset HEAD /path/to/file.c
Push (upload) changes to server:
git push
Push a new branch (created locally) to server:
git push origin "branch_name"
Run a git command, in 'testing' mode (it doesn't affect anything):
Add --dry-run as an option of any git command you use.
Download a branch from server:
Update:
git remote fetch origin
Setup a local branch to track the remote branch:
git branch --track [local-name] origin/remote-name
Switch to local-name:
git checkout [local-name]

Parisian Love.. by Google

2 comentarios
Google, on a new Youtube channel share with us short stories based on what people searches.
Isn't a very special thing, but a very creative one!

The next is a short video that also was showed last night as a SuperBowl AD, enjoy it:


Youtube channel: SearchStories

Zend Studio 7 and the mouse click problem on Ubuntu

1 comentarios
Due to some strange reason ZendStudio (and Eclipse i think) have a bug when running under Ubuntu 9.10, with the mouse click!! #EpicFail

Here my solution:

1. Create a new file: Zend.sh

    #!/bin/sh
    export GDK_NATIVE_WINDOWS=1
    /path/toZend/Install/ZendStudio

2. Add exec permission: chmod u+x Zend.sh

3. Run Zend using the new file :)

Well, you can also create a launcher from that *.sh, with a nice icon and blah blah... but that's the fix to this epic bug.

Happy PHP coding =)

Paquetes recomendados en Debian.. o amigos

0 comentarios
Hace poco (Hoy) me puse a reinstalar el sistema de mi notebook, no por problemas sinó por un tema de prolijidad del mismo :P

Al comenzar me encuentro que hay aún muuuchisimos paquetes que se instalan por defecto (Recomendados y sugeridos) que no los iba a usar jamás! Algo así como un Abuso!

Para evitar esto hay que editar (o crear en su defecto) el archivo:

/etc/apt/apt.conf.d/70recommends

Y agregar las siguientes lineas:

APT::Install-Recommends "0";
APT::Install-Suggests "0";

Listo :)

Nota: Si usan aptitude o synaptic creo que hay opciones para hacerlo por ahi... pero no es muy de hombrecito.. sobretodo quienes usan aptitude :')