<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Anooj Narvekar&#039;s weblog</title>
	<atom:link href="http://anoojnarvekar.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://anoojnarvekar.wordpress.com</link>
	<description>The Techie ME..</description>
	<lastBuildDate>Thu, 23 Jun 2011 08:11:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='anoojnarvekar.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/ca495898cbd47fbaa4a65f419b38e7a8?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Anooj Narvekar&#039;s weblog</title>
		<link>http://anoojnarvekar.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://anoojnarvekar.wordpress.com/osd.xml" title="Anooj Narvekar&#039;s weblog" />
	<atom:link rel='hub' href='http://anoojnarvekar.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Installing ruby-pg on MAC Snow Leopard</title>
		<link>http://anoojnarvekar.wordpress.com/2011/06/23/installing-ruby-pg-on-mac-snow-leopard/</link>
		<comments>http://anoojnarvekar.wordpress.com/2011/06/23/installing-ruby-pg-on-mac-snow-leopard/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 07:27:50 +0000</pubDate>
		<dc:creator>Anooj</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://anoojnarvekar.wordpress.com/?p=129</guid>
		<description><![CDATA[Spent almost 2hrs in figuring how to get this done successfully. The error messages are so cryptic. First of all, make sure u have postgres installed on your machine and the path to the postgres bin folder is in the $PATH enviroment variable. You can follow http://anooj.me/blog/?p=64 to set PATH. To confirm, type pg_config in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anoojnarvekar.wordpress.com&amp;blog=9039945&amp;post=129&amp;subd=anoojnarvekar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Spent almost 2hrs in figuring how to get this done successfully. The error messages are so cryptic.</p>
<p>First of all, make sure u have postgres installed on your machine and the path to the postgres bin folder is in the $PATH enviroment variable. You can follow <a href="http://anoojnarvekar.wordpress.com/2010/01/12/setting-path-environment-variable-in-mac/" title="Setting PATH environment variable in MAC" target="_blank">http://anooj.me/blog/?p=64</a> to set PATH.</p>
<p>To confirm, type pg_config in terminal to see if its in PATH. It should display the pg related configuration</p>
<blockquote><p>
<code><br />
anooj.n@dv-mac-anooj-n ~$ pg_config<br />
BINDIR = /Library/PostgreSQL/8.4/bin<br />
DOCDIR = /Library/PostgreSQL/8.4/doc/postgresql<br />
HTMLDIR = /Library/PostgreSQL/8.4/doc/postgresql<br />
INCLUDEDIR = /Library/PostgreSQL/8.4/include<br />
PKGINCLUDEDIR = /Library/PostgreSQL/8.4/include/postgresql<br />
INCLUDEDIR-SERVER = /Library/PostgreSQL/8.4/include/postgresql/server<br />
LIBDIR = /Library/PostgreSQL/8.4/lib<br />
PKGLIBDIR = /Library/PostgreSQL/8.4/lib/postgresql<br />
LOCALEDIR = /Library/PostgreSQL/8.4/share/locale<br />
MANDIR = /Library/PostgreSQL/8.4/share/man<br />
SHAREDIR = /Library/PostgreSQL/8.4/share/postgresql<br />
SYSCONFDIR = /Library/PostgreSQL/8.4/etc/postgresql<br />
PGXS = /Library/PostgreSQL/8.4/lib/postgresql/pgxs/src/makefiles/pgxs.mk<br />
CONFIGURE = '--prefix=/Users/buildfarm/pginstaller/server/staging/osx' '--with-openssl' '--with-perl' '--with-python' '--with-tcl' '--with-bonjour' '--with-pam' '--with-krb5' '--enable-thread-safety' '--with-libxml' '--with-ossp-uuid' '--with-includes=/usr/local/include/libxml2:/usr/local/include' '--docdir=/Users/buildfarm/pginstaller/server/staging/osx/doc/postgresql' '--with-libxslt' 'CFLAGS=-isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -headerpad_max_install_names -arch ppc -arch i386' 'LDFLAGS=-L/usr/local/lib'<br />
CC = gcc -no-cpp-precomp<br />
CPPFLAGS = -I/usr/include/libxml2 -I/usr/local/include/libxml2 -I/usr/local/include<br />
CFLAGS = -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -headerpad_max_install_names -arch ppc -arch i386 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv<br />
CFLAGS_SL =<br />
LDFLAGS = -L/usr/local/lib -L/usr/lib<br />
LDFLAGS_SL =<br />
LIBS = -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lkrb5 -lz -lreadline -lm<br />
VERSION = PostgreSQL 8.4.8<br />
</code>
</p></blockquote>
<p>Initially went straight and fired:</p>
<blockquote><p>
<code><br />
anooj.n@dv-mac-anooj-n ~$ sudo gem install ruby-pg<br />
Building native extensions. This could take a while...<br />
ERROR: Error installing ruby-pg:<br />
ERROR: Failed to build gem native extension.</code></p>
<p>/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb &#8211;with-pg-config=/Library/PostgreSQL/8.4/bin/pg_config<br />
checking for main() in -lpq&#8230; yes<br />
checking for libpq-fe.h&#8230; yes<br />
checking for libpq/libpq-fs.h&#8230; yes<br />
checking for PQconnectionUsedPassword()&#8230; no<br />
checking for PQisthreadsafe()&#8230; no<br />
checking for PQprepare()&#8230; no<br />
checking for PQexecParams()&#8230; no<br />
checking for PQescapeString()&#8230; no<br />
checking for PQescapeStringConn()&#8230; no<br />
checking for lo_create()&#8230; no<br />
checking for pg_encoding_to_char()&#8230; no<br />
checking for PQsetClientEncoding()&#8230; no<br />
creating Makefile</p>
<p>make<br />
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -DHAVE_LIBPQ_FE_H -DHAVE_LIBPQ_LIBPQ_FS_H -I/Library/PostgreSQL/8.4/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -c compat.c<br />
In file included from compat.c:16:<br />
compat.h:38:2: error: #error PostgreSQL client version too old, requires 7.3 or later.<br />
In file included from compat.c:16:<br />
compat.h:69: error: conflicting types for ‘PQconnectionNeedsPassword’<br />
/Library/PostgreSQL/8.4/include/libpq-fe.h:293: error: previous declaration of ‘PQconnectionNeedsPassword’ was here<br />
compat.h:70: error: conflicting types for ‘PQconnectionUsedPassword’<br />
/Library/PostgreSQL/8.4/include/libpq-fe.h:294: error: previous declaration of ‘PQconnectionUsedPassword’ was here<br />
compat.h:123: error: redeclaration of enumerator ‘PQERRORS_TERSE’<br />
/Library/PostgreSQL/8.4/include/libpq-fe.h:105: error: previous definition of ‘PQERRORS_TERSE’ was here<br />
compat.h:124: error: redeclaration of enumerator ‘PQERRORS_DEFAULT’<br />
/Library/PostgreSQL/8.4/include/libpq-fe.h:106: error: previous definition of ‘PQERRORS_DEFAULT’ was here<br />
compat.h:126: error: redeclaration of enumerator ‘PQERRORS_VERBOSE’<br />
/Library/PostgreSQL/8.4/include/libpq-fe.h:108: error: previous definition of ‘PQERRORS_VERBOSE’ was here<br />
compat.h:126: error: conflicting types for ‘PGVerbosity’<br />
/Library/PostgreSQL/8.4/include/libpq-fe.h:108: error: previous declaration of ‘PGVerbosity’ was here<br />
compat.h:130: error: redeclaration of enumerator ‘PQTRANS_IDLE’<br />
/Library/PostgreSQL/8.4/include/libpq-fe.h:96: error: previous definition of ‘PQTRANS_IDLE’ was here<br />
compat.h:131: error: redeclaration of enumerator ‘PQTRANS_ACTIVE’<br />
/Library/PostgreSQL/8.4/include/libpq-fe.h:97: error: previous definition of ‘PQTRANS_ACTIVE’ was here<br />
compat.h:132: error: redeclaration of enumerator ‘PQTRANS_INTRANS’<br />
/Library/PostgreSQL/8.4/include/libpq-fe.h:98: error: previous definition of ‘PQTRANS_INTRANS’ was here<br />
compat.h:133: error: redeclaration of enumerator ‘PQTRANS_INERROR’<br />
/Library/PostgreSQL/8.4/include/libpq-fe.h:99: error: previous definition of ‘PQTRANS_INERROR’ was here<br />
compat.h:135: error: redeclaration of enumerator ‘PQTRANS_UNKNOWN’<br />
/Library/PostgreSQL/8.4/include/libpq-fe.h:101: error: previous definition of ‘PQTRANS_UNKNOWN’ was here<br />
compat.h:135: error: conflicting types for ‘PGTransactionStatusType’<br />
/Library/PostgreSQL/8.4/include/libpq-fe.h:101: error: previous declaration of ‘PGTransactionStatusType’ was here<br />
compat.h:140: error: conflicting types for ‘PQtransactionStatus’<br />
/Library/PostgreSQL/8.4/include/libpq-fe.h:285: error: previous declaration of ‘PQtransactionStatus’ was here<br />
compat.h:141: error: conflicting types for ‘PQparameterStatus’<br />
/Library/PostgreSQL/8.4/include/libpq-fe.h:287: error: previous declaration of ‘PQparameterStatus’ was here<br />
compat.h:155: error: conflicting types for ‘PQsetErrorVerbosity’<br />
/Library/PostgreSQL/8.4/include/libpq-fe.h:309: error: previous declaration of ‘PQsetErrorVerbosity’ was here<br />
compat.h:165:2: error: #error unsupported postgresql version, requires 7.3 or later.<br />
compat.c: In function ‘PQsetClientEncoding’:<br />
compat.c:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:28: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:49: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:55: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:61: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:67: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:79: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:85: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:93: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:102: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:109: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:115: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:125: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:131: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:137: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:143: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:151: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:159: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:167: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:173: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:179: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:185: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:191: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:197: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:203: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:209: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:218: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:225: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:268: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:327: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:374: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:453: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token<br />
compat.c:527: error: old-style parameter declarations in prototyped function definition<br />
compat.c:527: error: expected ‘{’ at end of input<br />
make: *** [compat.o] Error 1</p>
<p>Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/ruby-pg-0.7.9.2008.01.28 for inspection.<br />
Results logged to /Library/Ruby/Gems/1.8/gems/ruby-pg-0.7.9.2008.01.28/ext/gem_make.out<br />
</code>
</p></blockquote>
<p>The error mentioned something like "PostgreSQL client version too old, requires 7.3 or later.". Don't get fooled by this.</p>
<p>Now try,</p>
<blockquote><p>
<code><br />
anooj.n@dv-mac-anooj-n ~$ sudo env ARCHFLAGS="-arch i386" gem install ruby-pg -- --with-pg-config=/Library/PostgreSQL/8.4/bin/pg_config<br />
Password:<br />
Building native extensions. This could take a while...<br />
Successfully installed ruby-pg-0.7.9.2008.01.28<br />
1 gem installed<br />
Installing ri documentation for ruby-pg-0.7.9.2008.01.28...<br />
Installing RDoc documentation for ruby-pg-0.7.9.2008.01.28...<br />
</code>
</p></blockquote>
<p>PEACE. This worked for me.. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Hopefully this should work for everyone.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anoojnarvekar.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anoojnarvekar.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anoojnarvekar.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anoojnarvekar.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anoojnarvekar.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anoojnarvekar.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anoojnarvekar.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anoojnarvekar.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anoojnarvekar.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anoojnarvekar.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anoojnarvekar.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anoojnarvekar.wordpress.com/129/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anoojnarvekar.wordpress.com/129/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anoojnarvekar.wordpress.com/129/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anoojnarvekar.wordpress.com&amp;blog=9039945&amp;post=129&amp;subd=anoojnarvekar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anoojnarvekar.wordpress.com/2011/06/23/installing-ruby-pg-on-mac-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7a4e29a148196573fed5314a3fe4eea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nobrains</media:title>
		</media:content>
	</item>
		<item>
		<title>Fixing the preverifier build error for Mpowerplayer on Mac OS X</title>
		<link>http://anoojnarvekar.wordpress.com/2010/08/27/fixing-the-preverifier-build-error-for-mpowerplayer-on-mac-os-x/</link>
		<comments>http://anoojnarvekar.wordpress.com/2010/08/27/fixing-the-preverifier-build-error-for-mpowerplayer-on-mac-os-x/#comments</comments>
		<pubDate>Fri, 27 Aug 2010 17:16:05 +0000</pubDate>
		<dc:creator>Anooj</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[MAC]]></category>
		<category><![CDATA[Mpowerplayer]]></category>
		<category><![CDATA[preverifier]]></category>

		<guid isPermaLink="false">http://anoojnarvekar.wordpress.com/?p=123</guid>
		<description><![CDATA[fixing preverifier build error for Mpowerplayer<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anoojnarvekar.wordpress.com&amp;blog=9039945&amp;post=123&amp;subd=anoojnarvekar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you’re using the Mpowerlayer SDK for your J2ME development on Mac OS X, and you get the following ant build error:<br />
<code><br />
  $ ant<br />
  Buildfile: build.xml</p>
<p>  compile:</p>
<p>  preverify:<br />
       [exec] Error preverifying class java.lang.Class<br />
       [exec]     VERIFIER ERROR java/lang/Class.newInstance0()Ljava/lang/Object;:<br />
       [exec] Illegal type in constant pool<br />
       [exec] Result: 1</p>
<p>  package:</p>
<p>  BUILD SUCCESSFUL<br />
  Total time: 1 second<br />
</code><br />
Then you can fix it by changing the following entry in your build.xml:<br />
<code><br />
&lt;property name="java.classes.jar"  value="/System/Library/Frameworks/JavaVM.framework/Classes/classes.jar" /&gt;<br />
</code><br />
to<br />
<code><br />
 &lt;property name="java.classes.jar" value="/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Classes/classes.jar" /&gt;<br />
</code><br />
This was the solution which i got after researching for quite sometime. However, this might have fixed issue for some, i was still facing the same issue.. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  </p>
<p>So after debugging for some more time, realized that<br />
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2 was a symlink to the current jdk<br />
<code><br />
dv-mac-anooj-n:Versions anooj$ ls -l<br />
total 64<br />
lrwxr-xr-x  1 root  wheel    5 Jun 26 21:09 1.3 -&gt; 1.3.1<br />
drwxr-xr-x  3 root  wheel  102 Jul 21  2009 1.3.1<br />
lrwxr-xr-x  1 root  wheel   10 Jun 26 21:09 1.4 -&gt; CurrentJDK<br />
lrwxr-xr-x  1 root  wheel   10 Jun 26 21:09 1.4.2 -&gt; CurrentJDK<br />
lrwxr-xr-x  1 root  wheel   10 Jun 26 21:09 1.5 -&gt; CurrentJDK<br />
lrwxr-xr-x  1 root  wheel   10 Jun 26 21:09 1.5.0 -&gt; CurrentJDK<br />
lrwxr-xr-x  1 root  wheel    5 Jun 26 21:09 1.6 -&gt; 1.6.0<br />
drwxr-xr-x  8 root  wheel  272 Jun 26 21:11 1.6.0<br />
drwxr-xr-x  9 root  wheel  306 Jun 26 21:11 A<br />
lrwxr-xr-x  1 root  wheel    1 Jun 26 21:09 Current -&gt; A<br />
lrwxr-xr-x  1 root  wheel    3 Jun 26 21:09 CurrentJDK -&gt; 1.6<br />
</code><br />
So now i just had to remove the symlink :<br />
<code><br />
sudo rm 1.4.2<br />
</code><br />
and paste 1.4.2 version folder here.. Issue resolved. </p>
<p>PS: i got 1.4.2 from my colleagues lappy.. Donno if apple allows you to download it. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anoojnarvekar.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anoojnarvekar.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anoojnarvekar.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anoojnarvekar.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anoojnarvekar.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anoojnarvekar.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anoojnarvekar.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anoojnarvekar.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anoojnarvekar.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anoojnarvekar.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anoojnarvekar.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anoojnarvekar.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anoojnarvekar.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anoojnarvekar.wordpress.com/123/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anoojnarvekar.wordpress.com&amp;blog=9039945&amp;post=123&amp;subd=anoojnarvekar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anoojnarvekar.wordpress.com/2010/08/27/fixing-the-preverifier-build-error-for-mpowerplayer-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7a4e29a148196573fed5314a3fe4eea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nobrains</media:title>
		</media:content>
	</item>
		<item>
		<title>Initialize List the way Arrays are initialized</title>
		<link>http://anoojnarvekar.wordpress.com/2010/08/10/initialize-list-the-way-arrays-are-initialized/</link>
		<comments>http://anoojnarvekar.wordpress.com/2010/08/10/initialize-list-the-way-arrays-are-initialized/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 09:53:38 +0000</pubDate>
		<dc:creator>Anooj</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[refactoring]]></category>

		<guid isPermaLink="false">http://anoojnarvekar.wordpress.com/?p=106</guid>
		<description><![CDATA[If you want a fixed size list, wherein you don&#8217;t want to add/remove elements into it then probably this trick will save some line of code: Consider this:   List&#60;Character&#62; vowels = new ArrayList&#60;Character&#62;(); vowels.add('a'); vowels.add('e'); vowels.add('i'); vowels.add('o'); vowels.add('u');  This could have also be written as:   List&#60;Character&#62; vowels = Arrays.asList('a', 'e', 'i', 'o', 'u'); [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anoojnarvekar.wordpress.com&amp;blog=9039945&amp;post=106&amp;subd=anoojnarvekar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you want a fixed size list, wherein you don&#8217;t want to add/remove elements into it then probably this trick will save some line of code:</p>
<p>Consider this:<br />
<code> <br />
          List&lt;Character&gt; vowels = new ArrayList&lt;Character&gt;();<br />
          vowels.add('a');<br />
          vowels.add('e');<br />
          vowels.add('i');<br />
          vowels.add('o');<br />
          vowels.add('u'); <br />
</code></p>
<p>This could have also be written as:<br />
<code><br />
           List&lt;Character&gt; vowels = Arrays.asList('a', 'e', 'i', 'o', 'u');<br />
</code>
</p>
<p>Trying to add/remove elements from this list will result in an UnsupportedOperationException exception</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anoojnarvekar.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anoojnarvekar.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anoojnarvekar.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anoojnarvekar.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anoojnarvekar.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anoojnarvekar.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anoojnarvekar.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anoojnarvekar.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anoojnarvekar.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anoojnarvekar.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anoojnarvekar.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anoojnarvekar.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anoojnarvekar.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anoojnarvekar.wordpress.com/106/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anoojnarvekar.wordpress.com&amp;blog=9039945&amp;post=106&amp;subd=anoojnarvekar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anoojnarvekar.wordpress.com/2010/08/10/initialize-list-the-way-arrays-are-initialized/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7a4e29a148196573fed5314a3fe4eea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nobrains</media:title>
		</media:content>
	</item>
		<item>
		<title>Javascript refactoring</title>
		<link>http://anoojnarvekar.wordpress.com/2010/07/29/javascript-refactoring/</link>
		<comments>http://anoojnarvekar.wordpress.com/2010/07/29/javascript-refactoring/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 10:37:48 +0000</pubDate>
		<dc:creator>Anooj</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[refactoring]]></category>

		<guid isPermaLink="false">http://anoojnarvekar.wordpress.com/?p=97</guid>
		<description><![CDATA[Might sound funny.. but ya.. i liked what i did today, so thought of sharing it.. So there was this combo box which needed to be pre-filled with currencies. This list of currencies was also loaded in a javascript array for other reasons. The immediate refactoring was to use array to create options for the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anoojnarvekar.wordpress.com&amp;blog=9039945&amp;post=97&amp;subd=anoojnarvekar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Might sound funny.. but ya.. i liked what i did today, so thought of sharing it..</p>
<p>So there was this combo box which needed to be pre-filled with currencies. This list of currencies was also loaded in a javascript array for other reasons.</p>
<p>The immediate refactoring was to use array to create options for the combo box. So i created a function which was called on body OnLoad event which would fill the select html element.</p>
<p>Was this required? This function will be called only once that too only onload of the page. Hmmm.. So my next refactoring was to remove the function and make javascript inline with my html body content.. Solved!</p>
<p>The advantages:</p>
<ul>
<li>The function would make no sense, as in imagine a developer checking this code, he would be confused as to where all this function is used.</li>
<li>Debugging is easier. You don&#8217;t have to go to head to check your function, rather can just  write the js code where ur html element is.</li>
</ul>
<p>The disadvantages(as mentioned by <a title="Kirit Parmar" href="http://kiritsinhparmar.tumblr.com/" target="_blank">Kirit Pamar</a>):</p>
<ul>
<li>The javascript code is sent to the client each time a request is made to that page. This would be the case even if we called a method on body load. You could shove this script in a .js file and call the method on body load. This would improve the page load for each subsequent page request.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anoojnarvekar.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anoojnarvekar.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anoojnarvekar.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anoojnarvekar.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anoojnarvekar.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anoojnarvekar.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anoojnarvekar.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anoojnarvekar.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anoojnarvekar.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anoojnarvekar.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anoojnarvekar.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anoojnarvekar.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anoojnarvekar.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anoojnarvekar.wordpress.com/97/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anoojnarvekar.wordpress.com&amp;blog=9039945&amp;post=97&amp;subd=anoojnarvekar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anoojnarvekar.wordpress.com/2010/07/29/javascript-refactoring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7a4e29a148196573fed5314a3fe4eea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nobrains</media:title>
		</media:content>
	</item>
		<item>
		<title>OpenX installation issue with postgres</title>
		<link>http://anoojnarvekar.wordpress.com/2010/06/07/openx-installation-issue-with-postgres/</link>
		<comments>http://anoojnarvekar.wordpress.com/2010/06/07/openx-installation-issue-with-postgres/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 16:21:28 +0000</pubDate>
		<dc:creator>Anooj</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[issues]]></category>
		<category><![CDATA[MAC]]></category>
		<category><![CDATA[openx]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[postgres]]></category>

		<guid isPermaLink="false">http://anoojnarvekar.wordpress.com/?p=88</guid>
		<description><![CDATA[OpenX official&#8217;s site says that it supports both Postgres as well as Mysql databases. But when i tried to install the OpenX, it only gave Mysql as the database option. Google&#8217;ing didn&#8217;t help much.. Banging head made me check the phpinfo() to check if my local php supports postgres. Luckily it was bang on.. It [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anoojnarvekar.wordpress.com&amp;blog=9039945&amp;post=88&amp;subd=anoojnarvekar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.openx.org/">OpenX</a> official&#8217;s site says that it supports both Postgres as well as  Mysql databases. But when i tried to install the OpenX, it only gave Mysql as the database option. Google&#8217;ing didn&#8217;t help much..<br /> Banging head made me check the phpinfo() to check if my local php supports postgres. Luckily it was bang on.. It was not supporting Postgresql.</p>
<p>Fix:<br /> Downloaded the latest installer for Mac OS X from <a href="http://www.entropy.ch/software/macosx/php/">here</a>. Had to uncomment php module in the httpd.conf file located at /etc/apache2/httpd.conf so that php could be installed..</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anoojnarvekar.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anoojnarvekar.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anoojnarvekar.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anoojnarvekar.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anoojnarvekar.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anoojnarvekar.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anoojnarvekar.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anoojnarvekar.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anoojnarvekar.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anoojnarvekar.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anoojnarvekar.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anoojnarvekar.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anoojnarvekar.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anoojnarvekar.wordpress.com/88/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anoojnarvekar.wordpress.com&amp;blog=9039945&amp;post=88&amp;subd=anoojnarvekar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anoojnarvekar.wordpress.com/2010/06/07/openx-installation-issue-with-postgres/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7a4e29a148196573fed5314a3fe4eea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nobrains</media:title>
		</media:content>
	</item>
		<item>
		<title>Get size of a required Schema in postgreSQL</title>
		<link>http://anoojnarvekar.wordpress.com/2010/01/19/get-size-of-a-required-schema-in-postgresql/</link>
		<comments>http://anoojnarvekar.wordpress.com/2010/01/19/get-size-of-a-required-schema-in-postgresql/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 15:38:53 +0000</pubDate>
		<dc:creator>Anooj</dc:creator>
				<category><![CDATA[postgre]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[postgres]]></category>
		<category><![CDATA[schema]]></category>

		<guid isPermaLink="false">http://anoojnarvekar.wordpress.com/?p=77</guid>
		<description><![CDATA[Well, so my requirement this time was to get the size of all tables in a particular schema. HOW? AFAIK, there was no direct way to fulfill my requirement. So wrote my own query.. SELECT pg_size_pretty(sum(pg_total_relation_size(&#8216;archival.&#8217;&#124;&#124;table_name))::bigint) FROM information_schema.tables WHERE table_schema=&#8217;archival&#8217;; Where &#8216;archival&#8217; is the schema name. Checkout the type-casting. Short explanation: sum() returns int type, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anoojnarvekar.wordpress.com&amp;blog=9039945&amp;post=77&amp;subd=anoojnarvekar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Well, so my requirement this time was to get the size of all tables in a particular schema. HOW?</p>
<p>AFAIK, there was no direct way to fulfill my requirement. So wrote my own query..</p>
<p><i>SELECT pg_size_pretty(sum(pg_total_relation_size(&#8216;archival.&#8217;||table_name))::bigint)<br />
FROM information_schema.tables<br />
WHERE table_schema=&#8217;archival&#8217;;</i></p>
<p>Where &#8216;archival&#8217; is the schema name. Checkout the type-casting.<br />
Short explanation: sum() returns int type, but pg_size_pretty() takes bigint as the param data type. Hence the type casting.</p>
<p>NB:- when copying the query, take care of the quotes.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anoojnarvekar.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anoojnarvekar.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anoojnarvekar.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anoojnarvekar.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anoojnarvekar.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anoojnarvekar.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anoojnarvekar.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anoojnarvekar.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anoojnarvekar.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anoojnarvekar.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anoojnarvekar.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anoojnarvekar.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anoojnarvekar.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anoojnarvekar.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anoojnarvekar.wordpress.com&amp;blog=9039945&amp;post=77&amp;subd=anoojnarvekar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anoojnarvekar.wordpress.com/2010/01/19/get-size-of-a-required-schema-in-postgresql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7a4e29a148196573fed5314a3fe4eea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nobrains</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting postgres table and database size</title>
		<link>http://anoojnarvekar.wordpress.com/2010/01/19/getting-postgres-table-and-database-size/</link>
		<comments>http://anoojnarvekar.wordpress.com/2010/01/19/getting-postgres-table-and-database-size/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 14:14:25 +0000</pubDate>
		<dc:creator>Anooj</dc:creator>
				<category><![CDATA[postgre]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[postgres]]></category>

		<guid isPermaLink="false">http://anoojnarvekar.wordpress.com/?p=67</guid>
		<description><![CDATA[Getting Database size: SELECT pg_database_size(&#8216;user&#8217;); pg_database_size &#8212;&#8212;&#8212;&#8212;&#8212;&#8212; 58241934 Oh.. thats in Bytes.. Make it nicer.. Get db size in MBs. SELECT pg_size_pretty(pg_database_size(&#8216;user_table&#8217;)); pg_size_pretty &#8212;&#8212;&#8212;&#8212;&#8212;- 60 MB Getting Table size: SELECT pg_size_pretty(pg_total_relation_size(&#8216;user_table&#8217;)); pg_size_pretty &#8212;&#8212;&#8212;&#8212;&#8212;- 55 MB<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anoojnarvekar.wordpress.com&amp;blog=9039945&amp;post=67&amp;subd=anoojnarvekar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><em>Getting Database size:</em></strong><br />
SELECT pg_database_size(&#8216;user&#8217;);<br />
pg_database_size<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
58241934<br />
<br />
Oh.. thats in Bytes.. Make it nicer.. Get db size in MBs.<br />
<br />
SELECT pg_size_pretty(pg_database_size(&#8216;user_table&#8217;));<br />
pg_size_pretty<br />
&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
60 MB<br />
<br />
<strong><em> Getting Table size</em></strong>:</p>
<p>SELECT pg_size_pretty(pg_total_relation_size(&#8216;user_table&#8217;));<br />
pg_size_pretty<br />
&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
55 MB</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anoojnarvekar.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anoojnarvekar.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anoojnarvekar.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anoojnarvekar.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anoojnarvekar.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anoojnarvekar.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anoojnarvekar.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anoojnarvekar.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anoojnarvekar.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anoojnarvekar.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anoojnarvekar.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anoojnarvekar.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anoojnarvekar.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anoojnarvekar.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anoojnarvekar.wordpress.com&amp;blog=9039945&amp;post=67&amp;subd=anoojnarvekar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anoojnarvekar.wordpress.com/2010/01/19/getting-postgres-table-and-database-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7a4e29a148196573fed5314a3fe4eea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nobrains</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting PATH environment variable in MAC</title>
		<link>http://anoojnarvekar.wordpress.com/2010/01/12/setting-path-environment-variable-in-mac/</link>
		<comments>http://anoojnarvekar.wordpress.com/2010/01/12/setting-path-environment-variable-in-mac/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 18:21:56 +0000</pubDate>
		<dc:creator>Anooj</dc:creator>
				<category><![CDATA[MAC]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[path]]></category>

		<guid isPermaLink="false">http://anoojnarvekar.wordpress.com/?p=64</guid>
		<description><![CDATA[This probably most of the MAC users must be knowing, but still would like to document it.: I had a pain myself figuring the way out. Following is the way(or should i say PATH??) to do it: In your terminal, type cd /etc/paths.d/ touch mysql(this could be any name) sudo vi mysql [press i to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anoojnarvekar.wordpress.com&amp;blog=9039945&amp;post=64&amp;subd=anoojnarvekar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This probably most of the MAC users must be knowing, but still would like to document it.:</p>
<p>I had a pain myself figuring the way out. Following is the way(or should i say PATH??) to do it:</p>
<ul>
<li>In your terminal, type cd /etc/paths.d/</li>
<li>touch mysql(this could be any name)</li>
<li>sudo vi mysql</li>
<li>[press i to insert] type in the path u want to append to the $PATH variable. In my case i wanted to set mysql&#8217;s path. So i had to type(copy paste rather) /usr/local/mysql/bin</li>
<li>[esc] :wq! to save the file.</li>
</ul>
<p>U are done..</p>
<p>There is another way to set up $PATH, which is rather simple but wont be persisted with new sessions(new terminal or terminal tab).</p>
<p>To do so, in terminal u can just say export PATH=$PATH:&lt;the path u want to append&gt;</p>
<p>for ex., PATH=$PATH:/usr/local/mysql/bin</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anoojnarvekar.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anoojnarvekar.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anoojnarvekar.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anoojnarvekar.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anoojnarvekar.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anoojnarvekar.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anoojnarvekar.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anoojnarvekar.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anoojnarvekar.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anoojnarvekar.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anoojnarvekar.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anoojnarvekar.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anoojnarvekar.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anoojnarvekar.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anoojnarvekar.wordpress.com&amp;blog=9039945&amp;post=64&amp;subd=anoojnarvekar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anoojnarvekar.wordpress.com/2010/01/12/setting-path-environment-variable-in-mac/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7a4e29a148196573fed5314a3fe4eea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nobrains</media:title>
		</media:content>
	</item>
		<item>
		<title>TextMate Macro recording</title>
		<link>http://anoojnarvekar.wordpress.com/2009/12/21/textmate-macro-recording/</link>
		<comments>http://anoojnarvekar.wordpress.com/2009/12/21/textmate-macro-recording/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 11:24:16 +0000</pubDate>
		<dc:creator>Anooj</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[textmate]]></category>
		<category><![CDATA[macro]]></category>
		<category><![CDATA[recording]]></category>
		<category><![CDATA[DRY]]></category>

		<guid isPermaLink="false">http://anoojnarvekar.wordpress.com/?p=58</guid>
		<description><![CDATA[Had to perform a series of regular expression search and replace actions. And had to do this on multiple files.. After doing it manually for sometime, got bored.. Cursed myself for violating DRY principle! Well, to automate it, i used the TextMate&#8217;s bundled recording macro. Easy to use. Just start recording(Bundles-&#62;Macros-&#62;Start Recording). You can now [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anoojnarvekar.wordpress.com&amp;blog=9039945&amp;post=58&amp;subd=anoojnarvekar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Had to perform a series of regular expression search and replace actions. And had to do this on multiple files.. After doing it manually for sometime, got bored.. Cursed myself for violating <a title="DRY" href="http://en.wikipedia.org/wiki/Don%27t_repeat_yourself">DRY</a> principle!</p>
<p>Well, to automate it, i used the <a href="http://macromates.com/">TextMate&#8217;s</a> bundled recording macro. Easy to use. Just start recording(Bundles-&gt;Macros-&gt;Start Recording). You can now replay it on multiple files.. Did my work.. Happy <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anoojnarvekar.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anoojnarvekar.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anoojnarvekar.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anoojnarvekar.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anoojnarvekar.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anoojnarvekar.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anoojnarvekar.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anoojnarvekar.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anoojnarvekar.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anoojnarvekar.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anoojnarvekar.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anoojnarvekar.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anoojnarvekar.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anoojnarvekar.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anoojnarvekar.wordpress.com&amp;blog=9039945&amp;post=58&amp;subd=anoojnarvekar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anoojnarvekar.wordpress.com/2009/12/21/textmate-macro-recording/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7a4e29a148196573fed5314a3fe4eea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nobrains</media:title>
		</media:content>
	</item>
		<item>
		<title>Wow.. It&#8217;s a Limo&#8230;</title>
		<link>http://anoojnarvekar.wordpress.com/2009/11/29/wow-its-a-limo/</link>
		<comments>http://anoojnarvekar.wordpress.com/2009/11/29/wow-its-a-limo/#comments</comments>
		<pubDate>Sun, 29 Nov 2009 06:20:57 +0000</pubDate>
		<dc:creator>Anooj</dc:creator>
				<category><![CDATA[Cool]]></category>
		<category><![CDATA[Limo]]></category>
		<category><![CDATA[US]]></category>

		<guid isPermaLink="false">http://anoojnarvekar.wordpress.com/?p=43</guid>
		<description><![CDATA[We reached Dallas(DFW) airport at around 5.30pm.. Hell, they even charge for the trolleys here; that to $3.. We got one trolley, tried making the most efficient use of it.. 6 bags on one trolley&#8230; Dad had enabled international roaming on his SIM.. So called up sis.. She said she wud be there within 10mins, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anoojnarvekar.wordpress.com&amp;blog=9039945&amp;post=43&amp;subd=anoojnarvekar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We reached Dallas(DFW) airport at around 5.30pm.. Hell, they even charge for the trolleys here; that to $3.. We got one trolley, tried making the most efficient use of it.. 6 bags on one trolley&#8230; <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Dad had enabled international roaming on his SIM.. So called up sis.. She said she wud be there within 10mins, as there was traffic on the highway..<br />
So while waiting at the exit, i was privileged to see some amazing cars.. Cars that make every Indian open their mouth wide OPEN.. Mazda, Nissan, Porsche, Ford, Toyota, Honda, Audi being some brands.. Saw the amazing Ford MUSTANG <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
After waiting for 15mins.. A white Corolla arrives.. It does not come close to us but is parked some 50metres away..<br />
Suddenly sis comes out of nowhere!! She runs towards Dad.. Was expecting her to come and hug mom first.. But no..<br />
&#8220;Hmmm&#8230; why did she hug dad first?? Oh.. She must have seen dad fuming with anger for coming in late.. Damn.. Munnabhai was correct.. Jadoo Ki Jhappi always to the rescue.. &#8221; i said to myself after some brain processing.<br />
She then hugs me and mom together..<br />
I can see other 4 sis&#8217; friends. After shaking hands i realise that the Corolla won&#8217;t be enough for us..<br />
&#8220;Wats wrong with her?? She knew we wud be getting so much luggage.. Still she had to get her friends! Idiot.. Moron&#8221; speaking to myself.. Am sure mom and dad were with me on this though..<br />
While sis&#8217; friends are loading the Corolla, i see a white Limo behind..<br />
&#8220;WOW.. Its a Limo&#8230; MOM.. see that.. Its a Limo..&#8221; i proclaimed..<br />
&#8220;WAT?&#8221; mom replies as she is trying to count the bags being loaded in the car.. (Typical Mom)<br />
&#8220;Limo mom&#8230; Limousine&#8230; In short LIMO&#8221; i reply excitedly!!<br />
&#8220;It&#8217;s must be for some Big Person.. Its nice but&#8221; she replied..<br />
I see sis moving away with remaining bags.. Wondering where she is taking it.. There were no cars behind that limo.. I can see a well dressed chauffeur loading the Limo with bags.. After sometime i realise that they were our bags that were making it into the Limo&#8217;s boot.<br />
&#8220;WTF!!!!??? FUCK&#8230; WATS GOING ON HERE??????&#8221; i screamed!!!!<br />
&#8220;Guys.. this is for you&#8217;ll&#8230; &#8221; sis replies.. I am stunned!!!<br />
&#8220;Are you kidding me?? Are u crazy? Are u in senses??&#8221; Well, i realize that they all mean the same.. But was out of words that time..<br />
&#8220;Go on guys.. Its for you&#8217;ll..&#8221; she smiles.. and replies..</p>
<p>After sometime i find myself in one of the most luxurious car in the world.. WOW!!</p>
<p><img src="http://farm3.static.flickr.com/2556/4143037670_ea776f32f8.jpg" alt="Me and mom posing with the limo" /><br />
<em>Me and mom posing with the limo</em></p>
<p><img src="http://farm3.static.flickr.com/2675/4143035778_2f9828e5f1.jpg" alt="Family re-union... in the US.. inside the Limo.. :)" /><br />
<em>Family re-union&#8230; in the US.. inside the Limo.. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <em> </em></em></p>
<p><em><em> </em></em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/anoojnarvekar.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/anoojnarvekar.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/anoojnarvekar.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/anoojnarvekar.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/anoojnarvekar.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/anoojnarvekar.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/anoojnarvekar.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/anoojnarvekar.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/anoojnarvekar.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/anoojnarvekar.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/anoojnarvekar.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/anoojnarvekar.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/anoojnarvekar.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/anoojnarvekar.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anoojnarvekar.wordpress.com&amp;blog=9039945&amp;post=43&amp;subd=anoojnarvekar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anoojnarvekar.wordpress.com/2009/11/29/wow-its-a-limo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7a4e29a148196573fed5314a3fe4eea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nobrains</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2556/4143037670_ea776f32f8.jpg" medium="image">
			<media:title type="html">Me and mom posing with the limo</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2675/4143035778_2f9828e5f1.jpg" medium="image">
			<media:title type="html">Family re-union... in the US.. inside the Limo.. :)</media:title>
		</media:content>
	</item>
	</channel>
</rss>
