Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger

Friday, July 18, 2008

Linux Find and Sed commands

This days I'm migrating from domainA.com to domainB.com and I need to replace the links in so many files at time.
The best way I found to do this is this:

Find all PHP files with the "domainA.com" string inside it:
find . -name "*.php*" -type f -print0|xargs -0 grep "domainA.com" >> smaCat.log

Replace all PHP it with command:
find ./* -name "*.php*" -type f -exec sed -i 's/domainA.com/domainB.com/g' {} \;

Thursday, July 17, 2008

IE6 and transparent PNG

Usually we develop a webpage using png images, it really looks better at IE7 and Firefox. But when we try to see that webpage with IE6 it doesn't shows the PNGs transparency :-(
For preventing this you can add this JavaScript Library to your webpage and just with an include like this:



Makes your webpage compatible with any transparent PNGs.

Download - Home

Wednesday, July 16, 2008

Symfony Step1

A few days ago I started a symfony project, and there is some comandos that i will share width yours....




Creating a project
$ mkdir /home/sfprojects/askeet
$ cd /home/sfprojects/askeet
$ symfony init-project askeet

Creating an application on your project
$ symfony init-app frontend

After do that you created a new application called frontend that can be accessed from :

http://localhost/frontend_dev.php/

By default you can see the symfony default webpage of a symfony project.

See you tomorrow!!!

Monday, June 9, 2008

Sunday, June 8, 2008

Carrusel mootools effects

Very nice movement effects. I'd liked  specially the number 7.

OS X: Capture a piece of screen

This days I'm just testing my new macbook pro and I found the way to take a screenshot from just a piece of screen.
Here is the chain codes for this utility:

Cmd+MAY+3. Complete screen to a Desktop png
Cmd+Ctrl+MAY+3. Complete screen ready for paste.
Cmd+MAY+4. You can select a piece of your screen by a cursor, and save it automaticaly on the desktop.
Cmd+Ctrl+MAY+4. You can select a piece of your screen by a cursor and save it where you want.
Cmd+MAY+4 and the spacebar The cursor becomes a camera and you can select the aplication for create your 'appShot' saveing it automatically on the desktop.
Cmd+Ctrl+MAY+4 and the spacebar the same but ready for paste.

AJAX Password Strenght

Check your password fields.