Riding The Breeze

Jump to content

Additional information

Categories


Posts filed in ‘Computer’


Get back Insert media button in WPMU

Nov 2008
04

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


CSV export from MySQL

Sep 2007
15

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 need to export a custom resultset or you need to export data from a remote MySQL server on your machine you can use this command :

hpatoio@namazu:~$ mysql -uroot -h HOSTNAME -p DATABASE_NAME -B -e "select field1,field2 ... fieldX from \`TABLE_NAME\`;" | sed 's/\t/","/g;s/^/"/;s/$/"/;s/\n//g' > my_export.csv


Finally ! What you see is what you mean

Aug 2007
05

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 !


Add days to a date in javascript

May 2007
30

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:


Rails API with the AJAX flavor

May 2007
10

http://www.railsbrain.com/


MSSQL | Convert unix timestamp to date

Apr 2007
24

select dateadd(ss, {field_name}, '19700101')


Ruby on Rails cheat sheet

Mar 2007
15

All the commands you need in one page


Get last day of the month with Ruby

Feb 2007
08

last_day_of_the_month = (Date.parse(year_to_process + "-" + (month_to_process.to_i + 1).to_s + "-01") - 1).mday().to_s


XUL tools

Dec 2006
07

My interest for XUL is groving every day. Today I started to develop a Thunderbird Extension.

Nothing special, just want to explore the XUL world.

Here some usefull links:


Names

Nov 2006
16
Table
friends | Stores data
Model
Friend | Data validation & relationships like belongs_to or belongs_to
Controller
friend | Says what to do and where to do it

Paging

Credits

Template designed by praegnanz.de.