Archive for April, 2009
Fixing remap error in cygwin
After updating cygwin packages, sometime you get following error:
C:\cygwin\bin\<some>.exe: *** fatal error – unable to remap C:\cygwin\bin\<some>.dll to same address as …
To fix this:
- close all cygwin consoles
- open DOS console (Start >> Run >> “cmd”)
- cd c:\cywgin\bin
- ash (this will open bash console with $ prompt)
$ ./rebaseall
- “exit” from bash console
- “exit” from DOS window
This should fix your remap problems.
calling private methods in ruby
object.method call won’t work if the method is protected or private. Do this instead:
object.send(:method)
Backing up all databases in mysql
$ mysqldump -u root -p database-name > bkup.sql (to backup a single database)
$ mysqldump –user=root –lock-all-tables –all-databases > ${BACKUPDIR}/all-databases-${DATE}.sql
$ sleep 600
$ gzip ${BACKUPDIR}/all-databases-${DATE}.sql
Installing specific version of a gem
gem install <gemname> –version “= M.m.p”
or
gem install -v=M.m.p <gemname>
ICD Code Lookup
A friend has a medical billing business and recently we were talking about ICD code lookup facility which would be a big help for him. After a little talk, we figured that it wouldn’t be too difficult to implement. So, after a weekend of coding, I got this.
Current implementation is for ICD-9 lookup. ICD-10 lookup will be added soon.
If you find this useful, please do not hesitate to provide us feedback so we can improve on it.
Leverage your Today for a better Tomorrow
Another great article from Nan Russell.
Installing unicode gem on windows
Unicode is a native gem and intalling it on windows may fail if you don’t have all supporting build tools that it needs.
“gem install unicode” won’t work.
I had to download it from http://supremetyrant.com/ruby/
and then execute:
gem install unicode-<VERSION>-mswin32.gem
Book Review: Javascript for Programmers
I was happy to see a Javascript book from Deitels. Deitel and Deitel’s C++ How to Program was a great reference book for me when in school.
The title got me interested since Javascript is only getting popular and most seasoned programmers, who at one point shunned javascript as ugly and lowly language, are taking a look at it again because of its popularity with Ajax and web 2.0 stuff.
I was disappointed when I looked at the TOC. It starts with history of internet, then CSS and then a few chapters that cover the basics of Javascript. These may be good if you’ve never done javascript before but wasn’t the book meant for programmers?! It only touches on the latest web2.0 and Ajax stuff in the last 2 chapters. There is mention of just one great javascript toolkit: Dojo. What about Prototype, jQuery, and lots of others…
I would re-title this book: Javascript Essentials for non-Web Programmers. The javascript contents in the book is just basics that you can pickup from google search and don’t need a book for. Most non-Javascript stuff is again fundamentals of web programming which would be of use only to programmers who have never done web programming.
Blogging using Zoundry Raven
Now that I have started blogging regularly, I started looking for a blog client that would allow me greater flexibility and efficiency. Without much research, I decided to try Windows Live Writer thinking that it is from Microsoft.
The installation took 25 minutes and finally failed on my Windows Vista. I was flabber ghasted that a simple client to write blog would take that long to install. I didn’t try it again.
Quick search on internet and I found Zoundry Raven. And yes, this is my first post using zRaven
Surveys are fine, but keep’em short please!
I just got off the phone from Blue Cross Blue Shield of Illinois. The service was great as always. I always bailed out but decided to fill out a survey this time. and I was surprised that the survey had only 3 questions. I have given surveys before but always wondered why survey companies don’t realize the simple fact that quality of survey depends on how long they are. Nothing against BCBS, I can only imagine how many millions they may have spent before arriving at observation to keep’em short and simple.
Great work, BCBS. Good Luck!