Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
With the typical fork+exec method of spawning an application, you are left in the dark about failures in the exec. Once the fork occurs, the "main" process doesn't have any communication channel except waitpid, so it's hard to tell what happened....
1
943
posted 18 years ago by CUViper
created some navigation buttons for a site i'm working on, this is without images in a horizontal arrangement. kevh.net has the article on creating the vertical navigation, and how to do both using images instead of native CSS styling
1
1021
posted 18 years ago by kevh
This is an example of how to use the articleHandler.class.php , this class can be found @ pietervp.com -> downloads
1
874
posted 18 years ago by pietervp
Por ejemplo, haciendo uso del operador ^= (que nos permite seleccionar solo aquellos elementos cuyo atributo especificado coincida, al comienzo de la cadena, con el valor especificado) podremos crear una reglas para determinar el aspecto de nuestros...
4
979
posted 18 years ago by Hirmine
Los favicon soporta varios (ignoro si todos) los formatos de imagen siguientes: png (type="image/png"), .gif (type="image/gif"), .ico. (etc.).
Porc cierto, los favicons soportan trasnparencias.
3
862
posted 18 years ago by Hirmine
Evitar que en el código de la página se pueda ver “[email protected]â€.
2
1057
posted 18 years ago by Hirmine
Just name it s3cp (or similar), chmod it, and then you can do stuff like:
s3cp ~/somefile.whatever bucket
1
916
posted 18 years ago by sudarkoff
Used for rounding corners of a div. Need an upper left corner and an upper right corner. Example page is http://www.ruby-lang.org/en/documentation/quickstart/
3
1054
posted 18 years ago by ryanprel
Open some internet-page with some pictures on it. Then just paste this text into the address line and press "Enter". Works good only in IE, sometimes in Opera...
0
758
posted 18 years ago by Memphys
phpspot開発日誌より引用
--
ã“ã®ãƒ•ァイルã§ã¯ã€å¤–部ファイルã§ã‚ã‚‹ã€/exec/some.html ã¨ã„ã†ãƒ•ァイルをèªã¿è¾¼ã‚“ã§ã„ã¾ã™ã€‚
IEã®å ´åˆã€ã‚¿ã‚°ã«ã‚¹ã‚¿ã‚¤ãƒ«ã§ã‚µã‚¤ã‚ºã‚’指定ã—ãªã„ã¨è¦‹ãˆãªã„ã®ã§æ...
0
682
posted 18 years ago by fabric1
fixture_file_upload is another nifty Rails testing feature. It allows you to create "MIME-encoded content that would normally be uploaded by a browser input field." (Part in quotes straight from Agile Web Development with Rails, v2). Put your files t...
3
1842
posted 18 years ago by tjstankus
Plist file for heartbeatd to be handled by Launchd - change the ip addresses to match your own - I have called this uk.ac.rave.heartbeatd.plist. Change the "x.x.x.x" in the array within ProgramArguments to the IP's that you are using.
0
769
posted 18 years ago by smoothnoodle