Tatva-Artha

meaning of "it"

Archive for April, 2009

Fixing remap error in cygwin

without comments

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.

Written by admin

April 24th, 2009 at 6:41 pm

Posted in All, Technology

Tagged with

calling private methods in ruby

without comments

object.method call won’t work if the method is protected or private. Do this instead:

object.send(:method)

Written by admin

April 24th, 2009 at 5:24 pm

Posted in All, Technology

Tagged with

Backing up all databases in mysql

without comments

$ 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

Written by admin

April 23rd, 2009 at 9:18 pm

Posted in All, Technology

Installing specific version of a gem

without comments

gem install <gemname> –version “= M.m.p”

or

gem install -v=M.m.p <gemname>

Written by admin

April 23rd, 2009 at 5:58 pm

Posted in All, Technology

ICD Code Lookup

without comments

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.

Written by admin

April 18th, 2009 at 4:21 am

Posted in All, Medical IT, Technology

Tagged with , ,

Leverage your Today for a better Tomorrow

without comments

Another great article from Nan Russell.

Written by admin

April 16th, 2009 at 3:22 am

Posted in All

Installing unicode gem on windows

without comments

ruby-gem.pngUnicode 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:unicode.gif

gem install unicode-<VERSION>-mswin32.gem

Written by admin

April 3rd, 2009 at 8:22 pm

Book Review: Javascript for Programmers

without comments

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.javascript_for_programmers.jpg

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.

Written by admin

April 3rd, 2009 at 5:44 pm

Posted in All, Technology

Tagged with ,

Blogging using Zoundry Raven

without comments

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 :-)

Written by admin

April 3rd, 2009 at 3:18 am

Posted in All, Technology

Tagged with ,

Surveys are fine, but keep’em short please!

without comments

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!

Written by admin

April 2nd, 2009 at 8:32 pm

Posted in All

Tagged with , , , ,