Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
How to send load-balanced requests to a web cluster and split the requests to different server pools based on specific ACL rules.
This configuration sends files ending with .php to a pool of "dynamic" web servers (running Apache).
It sends all...
0
853
posted 15 years ago by alexwilliams
All credit to Richard Clarke, code taken from HTML 5 Doctor. Posted here for quick access from TextMate.
6
3431
posted 15 years ago by mrjohnsly
Needed to retire a staging domain, so I'm redirected all traffic to the equivalent page in the root directory in the .htaccess file
1
956
posted 15 years ago by canarymason
By default ps2pdf re-encodes images, which usually reduces their quality. The commandline below prevents that. It also embeds fonts into the PDF, making it more portable. Substitute -sPAPERSIZE=letter if you are American.
0
1186
posted 15 years ago by deepsoul
Keeps your page intact if you don't wish to add to (just visit) Snipplr, by opening a new tab... also, this one works in both, Firefox + Safari/Opera.
1
824
posted 15 years ago by dvdrtrgn
Flash has a weird cache mechanism, this makes sure that the browser isn't caching any data.
0
1253
posted 15 years ago by iloveitaly
check out why the get_include_path() was appended to the new path.
0
926
posted 15 years ago by iTony
In this tutorial we are going to use the :before pseudo-element to create a 3D style box. This effect will not work in Internet Explorer since it does not support the :before attribute. IE users will only see the element's themselves, and nothing els...
0
781
posted 15 years ago by myrebel420
Here is a small function that I use to update records in a database.
It coincides with the insertFromPost function that I have posted earlier.
The element names in the form need to have the same name as in the DB and the field names should all...
1
1003
posted 15 years ago by brownrl
Simplifies a button to use only one function for URL navigation.
1
751
posted 15 years ago by MacEvelly
Rather than hard-coding values shared between classes/methods/servlets, it's good to use content params in web.xml.
0
901
posted 15 years ago by sunkist