Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This class var creates a belongsTo association between this and another Model
1
761
posted 17 years ago by jesse
This class var definition configures a Model to have a OneToOne relationship with a Model of another class.
1
764
posted 17 years ago by jesse
i found this snippet here on snipplr (see the link up above), and really liked it. it came up with a validation error under XHTML 1.0 Strict so i changed it to what you see in the bottom.....
1
874
posted 17 years ago by pufftenticle
To grant all privileges to a user from any location login to the mysql shell and run the following queries.
3
993
posted 17 years ago by cbrant
To reset the MySQL root password, login to the mysql shell and run the following commands.
1
922
posted 17 years ago by cbrant
(EDITED: Originally I had this snip using 'cat /proc/version'. But have since replaced it with a more reliable -- and specific -- method)
If you need still more info (or are on a BSD), see 'uname', 'dpkg-architecture'
1
862
posted 17 years ago by cczona
If Ubuntu Server fails to resolve hostnames or find a network connection via Parallels 3 bridged networking, it may be attempting to use the wrong network interface.
0
884
posted 17 years ago by cczona
This snipped is split in two sections: Actionescript 3 and PHP
2
1113
posted 17 years ago by gfazioli
Quick command I use to remove .SVN folders from a tree structure copied from SVN working copy. Sometimes a bit easier than running an export.
6
1571
posted 17 years ago by wfdev
Small function that returns a random rounded value between two given numbers.
0
1017
posted 17 years ago by Wiederkehr
Use this command to delete all the thumbs.db files on your drive.
2
1238
posted 17 years ago by sachinbhavsar
Wenn ein INSERT einen doppelten Wert erzeugen würde, wird das UPDATE ausgeführt.
1
746
posted 17 years ago by drk