Welcome To Snipplr


Everyone's Recent Snippets



1 ... 490 491 492 493 494 ... 552
2 2114 posted 18 years ago by rblalock
1 1766 posted 18 years ago by jesse
This class var creates a belongsTo association between this and another Model
1 1692 posted 18 years ago by jesse
This class var definition configures a Model to have a OneToOne relationship with a Model of another class.
1 1658 posted 18 years ago by jesse
This is the basic edit action suggested by the CakePHP Manual
1 1733 posted 18 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 1956 posted 18 years ago by pufftenticle
2 2071 posted 18 years ago by iTony
To grant all privileges to a user from any location login to the mysql shell and run the following queries.
3 2256 posted 18 years ago by cbrant
To reset the MySQL root password, login to the mysql shell and run the following commands.
1 2028 posted 18 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 1992 posted 18 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 1872 posted 18 years ago by cczona
This snipped is split in two sections: Actionescript 3 and PHP
2 2166 posted 18 years ago by gfazioli
29 16313 posted 18 years ago by rouxmout
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 3301 posted 18 years ago by wfdev
Small function that returns a random rounded value between two given numbers.
0 2128 posted 18 years ago by Wiederkehr
Use this command to delete all the thumbs.db files on your drive.
2 4792 posted 18 years ago by sachinbhavsar
0 2096 posted 18 years ago by webonomic
0 2481 posted 18 years ago by webonomic
0 1961 posted 18 years ago by webonomic
0 1934 posted 18 years ago by webonomic
Colour code table cells to help visually reveal results.
0 1801 posted 18 years ago by webonomic
1 1623 posted 18 years ago by iTony
2 2042 posted 18 years ago by iTony
Wenn ein INSERT einen doppelten Wert erzeugen würde, wird das UPDATE ausgeführt.
1 1691 posted 18 years ago by drk
7 2341 posted 18 years ago by iTony
1 ... 490 491 492 493 494 ... 552