blog

Musings on cache-money – Part I

So, I always wanted to find a way of memcaching via ActiveRecord, without having to re-invent the wheel 😉 My investigations initially took me via CachedModel, cache_fu and finally I settled on cache-money. Seems to be *almost exactly* what I wanted - any lookup goes via memcache, any update /edit goes via ActiveRecord + memcache … Continue reading Musings on cache-money – Part I

Converting dos(windows) files to unix files

While using windows we get ^M characters in files that will get displayed when you open files on unix machines.To remove such ^M characters,Install dos2unix package usingsudo apt-get install sysutilsConvert individual filedos2unix file_pathRun following command to convert recursively all the files inside directory.find . -type f -exec dos2unix {} \;sudo apt-get install sysutils