Archive for the 'Computer' Category
Monday, June 20th, 2011
Here a simple script to backup all your mysql database on a remote FTP server. The script weekly overwrite the backup so you have full backup of your DBs for the last 6 days and your FTP server doesn't run out of space. #!/bin/sh BACKUP="/path/to/temp/dir/$$" DAY=$(date +"%a") ### MySQL Setup ### MUSER="root" [...]
Posted in Computer, MySQL | No Comments »
Tuesday, October 5th, 2010
I've just published a new WordPress plugin that allow you to control NGINX cache. You ca download it here. More details and info are coming. If you are using it and you have whatever kind of problem or want to suggest something just leave a comment. To make this plugin works you must install ngx_cache_purge [...]
Posted in Computer | 12 Comments »
Tuesday, December 29th, 2009
Today I had to add and SVN external project to my wordpress based project, nothing strange but the fact that the external project (NextGen Gallery) is hosted on Google Code and the authentication is different from my main repository. After a bit of search I've found that you can specify the user for external resource [...]
Posted in Computer | No Comments »
Saturday, December 19th, 2009
Posted in Computer | No Comments »
Friday, January 9th, 2009
[NB] This feature will be available in NGG 1.2 You can already test it by checking out the trunck version from here This is a small extension for NextGen Gallery, it allow you to specify which area NGG must use to generate the the thumbnail. Quite often the thumbnails generated by NGG do not show [...]
Posted in Computer, WP - Plugins | 65 Comments »
Tuesday, November 4th, 2008
This is a really simple plugin I always add to my default installation of WPMU. Nowadays embedded media are really commons in blog's post and all my customers were asking for it. I found the plugin "Allow Embedded Videos" (http://wpmudev.org/project/Allow-Embedded-Videos) but still the button in the editor didn't show up. Download it here
Posted in Computer, WP - Plugins | 3 Comments »
Saturday, September 15th, 2007
If you have access on the machine with MySQL and you need to export all tables in a database you can use: hpatoio@namazu:~$ mysqldump -uroot -p DATABASE_NAME -T '/home/simone/export_csv' –fields-terminated-by "," –fields-enclosed-by '"' –lines-terminated-by "\n" the script will create a files for each table of the DB and will place it in export_csv. If you [...]
Posted in Computer, MySQL, Things I forget | No Comments »
Sunday, August 5th, 2007
I was looking for a good and clean editor for one of my customers, and I end up to WYMeditor ! That's the way I like, that's the way I meant !
Posted in Computer, English | No Comments »
Wednesday, May 30th, 2007
shiftDay = 10 var myDate = new Date(); myDate.setDate(myDate.getUTCDate() + shiftDay) day = myDate.getUTCDate() month = myDate.getUTCMonth()*1 + 1 year = myDate.getUTCFullYear() This code is quite easy: shiftDay hold the number of days you want to add, if you need to go backwards you can set it to a negative value. myDate is set to [...]
Posted in Computer, javascript, Things I forget | No Comments »
Thursday, May 10th, 2007
http://www.railsbrain.com/
Posted in Computer, Travelling on Rails | No Comments »