Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Makes the form field background yellow and the border red when it is the active field. Works in most browsers except the usual lame ones (IE5.5 & 6).
1
1327
posted 17 years ago by will
ExpiresActive tells the apache2 to use the expires module.
ExpiresDefault specifies the expire date for all mime-types in this directory.
ExpiresByType specifies the expires date for the specified mime-type in this directory.
2
1804
posted 17 years ago by CharlyBr
recover to normal speed with
/sbin/ipfw delete 100
/sbin/ipfw delete 200
... or reboot
0
1677
posted 17 years ago by zingo
„Versioning and Cross-document InteractionInternet Explorer 8 introduces the IE8 standards mode by default—this lets Web designers use the latest rendering features available in Internet Explorer 8. In addition to layout changes, IE8 standards mo...
3
2370
posted 17 years ago by localhorst
https://www.chrisjmendez.com/2008/03/23/mysql-commands-i-wish-i-could-remember/
9
1851
posted 17 years ago by chrisaiv
[directory]
├index.php //this snippet
├imageA.jpg
├imageB.gif
â””imageC.png
This snipet displays the thumbnail of the picture file that exists in the
same directory.
When the thumbnail image is clicked, the original size image is...
6
1915
posted 18 years ago by kyokutyo
I notice that a lot of database driven websites make easy mistakes by not checking for plural words. An example might be "2 vote" or "1 votes". Here is an example of a function using ASP to check for plurals.
1
2061
posted 18 years ago by neal_grosskopf
IE7 and IE8 support “No Add-ons Mode,†a troubleshooting mode. When you run IE this way, no 3rd party code runs... You can start No Add-ons Mode in a few ways:
(To exit No Add-ons Mode, simply close that browser window.)
0
1498
posted 18 years ago by cczona
Add this arg code plus set first argument as "OG: Group nid(s)"
2
1648
posted 18 years ago by metareason
this is not the ultimate secure way, but it's at least not displaying the email link
3
1608
posted 18 years ago by iTony
Useful when trying to cleanup a large repo to see where you've made the most changes
1
2422
posted 18 years ago by JacobSingh
Sometimes i forget to remove firebug console commands when debuging, which makes IE and some other browsers fail / cry.
To stop this happening use the below script from firebugx.js on the firebug lite homepage.
3
1720
posted 18 years ago by 1man