Archive for November, 2005

Confidence Cheats

Thursday, November 24th, 2005

I landed at ksblog via a Ramit Sethi blog post

The confidence cheats post really got me thinking about my own confidence cheats.
Gettting back to writing some code is one.
Doing some pushups help me too. Really gets me all worked up to start again.

Sometimes, the off day feeling just refuses to leave me. I have to come up with more and better confidence cheats, can’t afford lack of confidence.. as K says … it costs.

And also this leaves me wondering how the confidence cheats have nothing to do with the things that make me loose confidence in the first place. Almost 100% of the time it is lack of financial growth. I want to make more money. I want to grow my business. I am working towards it…. I know it will take time… but still….

added geotags

Tuesday, November 22nd, 2005

I added geotags, specifying my location in Delhi, to this blog’s header.
Then pinged geourl.org and feedmap.net, they will use the information in geotags to find other sites nearby. Already feedmap shows 40 blogs in my neighborhood.

Also, I learnt a new word “meatspace” at geourl.org.

The physical world (as opposed virtual reality)
where you might spend facetime with the “carbon community”

Well, even “carbon community” is a new word for me.

Customizing Rails validation error messages

Tuesday, November 22nd, 2005

Rails Version information: activerecord-1.12.1, rails-0.14.1

I have a form, where the user enters a name, “johndoe”. I already have a user “johndoe”, and i want user name to be unique.
The default error message that validate_uniqueness_of returns is “Name is already taken”
But I want “Name johndoe is not available”.

Here is my user model, user.rb file, with the custom message.

(more…)

top 12 ruby on rails tutorials

Saturday, November 19th, 2005


Here is
a collection of top12 ruby on Rails tutorials.

suprglu is kewl

Friday, November 11th, 2005

Suprglu is a kewl way to piece your web together.

I have done mine at http://mjuneja.suprglu.com/

webDAV

Thursday, November 10th, 2005

I wonder why i had not known about webDAV, though it has been around for so long. I needed to have the capability to create a document in word and save it directly to a remote server. The solution i had in mind was to use smb/cifs [samba, in this case]. Then a new requirement cropped up, the file was to be stored in a database on the remote server and not in the file server. That meant I had to write my own smb server, which would get the file from word and save it to a database. I was about to start working on this, when i discovered webDAV.
Smb/cifs has a lot of legacy, while webDAV is nascent and promising. And since webDAV is based or rather an extension of HTTP, I decided to try it.

WebDAV made my task very easy, thanks to microsoft for implementing webFolders.
Now i am planning to move most of my documents that i access from multiple location online, and access them via webDAV.

Read more about webDAV at http://www.webdav.org