These are a few functions that I use in every rails project I do so I figured I would pass them along. Perhaps someone will find them useful.
This first one is a function to get a page number for pagination based on start index and result set size.
...
Jack Slocum and the guys over at Ext JS labs have delivered in my humble opinion one of the best JavaScript UI libs I have ever had the pleasure to work with.
They have a particularly nice tree widget that I've leveraged a few times using Json rendered...
Here is a short example of password protecting a directory with htaccess and htpassword.
#put this is your .htaccess file that resides
#in the directory that you wish to protect
AuthUserFile /path/to/whereever/.users
AuthType Basic
AuthName...
I will be beginning a series of code tutorials on different subjects soon. Stay tuned for tasty code tidbits and tricks to make your binary life a bit more manageable.
Latest comments