Names
- 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

Gream Flower
On the pic you can see Greame, a friend of my mate Ludovica. He was playing yesterday at the Blue Note here in Milano in the band of Kyle Eastwood.
That's why me, Ludo and 2 more friends were there.
Greame is a nice and really easygoing guy, you can get a more info about him here.
He said that he is coming back to Milano for Xmas … let's wait and see …
Well, once more, thank you Greame for the free tickets !
Here some slang/vocabulary from the english course "Rain dogs"
Padova is, with Siena, the city I like most in Italy.
Things you can't miss :
And if after have cicled all day and have had a long night-party the day after you wanna relax, have a good bath at the Terme preistoriche hot open-air bath opened till midnight and more.
Oh no ! It happend again !!
The sysadmin turned on the gpc_magic_quotes and you got the DB full of \'
Here a fast way to get back the correct values.
UPDATE table_name SET field_name = REPLACE(field_name,'\"',"")
Some of my friends went abroad in this last month … Jan went to Paris, Ila to Barcelona and Vivi to London.
All these "goodbye" recall me my time in Sweden, so I've decided to put some pictures on-line … check them out
Well … great weekend in Tuscany last one ! Great place, good travelmate and perfect food&wine of course
Hello, I'm finally on Ubuntu, Dapper drake
The setup was really easy. I don't have any strange device connected to the PC.
The only thing that didn't work immediately was the dual monitor; I have a Nvidia 7600GS with dual DVI output with 2 BenQ FP93G.
Thanks to this great tutorial Dual Monitors TwinView HowTo By Steve Fink the setup was fast and easy.
Just 2 advices:
1) Be sure that in your xorg.conf under Section Device you have
Driver "nvidia"
and not
Driver "nv"
dunno why but this was my default value.
2) If the second monitor do not works set the horizontal resolution to twice the monitor resolution.
For example, my monitor has 1280×1024 and I had to set the resolution to 2560×1024.
I cut&paste this list from Bianca's BLOG.
I've got in contact with her throght the site Interrail.net where I'm subscibed as cit guide for Milano .
As someone knows I've lived in Sweden for a while (eleven months) and when I've read this I realized I was there for too long
So, here we go:
For security reason, MySQL doesn't allow access from other computer.
If you try to connect with a MySQL administration client like MySQL Administrator you will get a Mysql Error Number 2003.
All this operations modify system settings, so they must be executed with root privileges
If you want connect from a computer in your LAN to your mysql server you have to :
root@namazu:~#sudo vi /etc/mysql/my.conf
and change the line
bind-address = 127.0.0.1
with
bind-address = 192.168.178.100
Now, to apply changes you have to reload the MySQL server
root@namazu:~#sudo /etc/init.d/mysql restart
No MySQL listen on your external interface, to verify that the server is up and accept connection type
root@namazu:~#telnet 192.168.178.100 3306
and you should get:
Trying 192.168.178.100...
Connected to 192.168.178.100.
Escape character is '^]'.
@
5.0.75-0ubuntu10.2
Now MySQL is reachable on the "network" level, we have to enable access to databases.
Let's access MySQL with the mysql client, we still use localhost because we don't have privileges to access MySQL from others hosts yet.
root@namazu:~#mysql -uroot -pmyRootPass -h localhost
Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 7 to server version: 5.0.22-Debian_0ubuntu6.06-log Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
Modify access privileges to the server
mysql>GRANT ALL PRIVILEGES ON DB_NAME TO 'USERNAME'@'HOST' IDENTIFIED BY
'PASSWORD';
N.B.
So, for instance, with this command :
mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'foopass';
we allow root (whose pass is foopass) to access all databases whichever host.
Exit the client
mysql>exit
Reload the privileges
root@namazu:~#mysqladmin reload
For more info on GRANT command: GRANT Syntax on MySQL Reference Manual
Have fun …