Tuesday, December 28, 2010

Jeff Bezos Princeton Commencement

Jeff Bezos Princeton Commencement: "omorrow, in a very real sense, your life -- the life you author from scratch on your own -- begins.
How will you use your gifts? What choices will you make?
Will inertia be your guide, or will you follow your passions?
Will you follow dogma, or will you be original?
Will you choose a life of ease, or a life of service and adventure?
Will you wilt under criticism, or will you follow your convictions?
Will you bluff it out when you're wrong, or will you apologize?
Will you guard your heart against rejection, or will you act when you fall in love?
Will you play it safe, or will you be a little bit swashbuckling?
When it's tough, will you give up, or will you be relentless?
Will you be a cynic, or will you be a builder?
Will you be clever at the expense of others, or will you be kind?"

Monday, December 27, 2010

How to Get Free Kindle Ebooks: Online Electronic Books Free for the Download

How to Get Free Kindle Ebooks: Online Electronic Books Free for the Download: "Times are tough, and in the recession era of today, the cheaper the better. Many people adore books, which is why libraries are seeing record numbers during the recession (they are free entertainment choices). Today many people already have an ebook readers such as a Sony Reader or Kindle, or they just like to download onto their laptop computers. I’ve seen many classic books being used in a Homeschool environment. Whichever the case, there are free ebooks up for download with any of the five sites below."

Monday, September 20, 2010

Monday, May 03, 2010

Yucks --- see the nasty way of initializing the jdbc driver. all the examples on the web are wrong...
I had to get this from a forum post!


#!/Users/spicysquid/java/jruby/jruby-1.5.0.RC2/bin/jruby
require 'java'
require 'rubygems'
require 'jdbc/mysql'

#this isnt needed since we have jdbc/mysql already loaded
#require './mysql-connector-java-5.0.5.jar'
#import 'com.mysql.jdbc.Driver'

begin
#Nasty way of loading the jdbc driver
java.lang.Thread.currentThread.getContextClassLoader().loadClass("com.mysql.jdbc.Driver",true).newInstance

conn = java.sql.DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/database", "root", "");
stmt = conn.createStatement
rs = stmt.executeQuery("select * from member")
while (rs.next) do
puts rs.getString("username")
end
rs.close
stmt.close
conn.close()
end

Sunday, February 28, 2010

How to install tokyocabinet and tokyotyrant on a mac.

Berry easy!

LOLCAT@/opt/local/bin$sudo ./port install tokyocabinet tokyotyrant
---> Computing dependencies for tokyocabinet
---> Fetching zlib
---> Attempting to fetch zlib-1.2.3.tar.bz2 from http://distfiles.macports.org/zlib
---> Verifying checksum(s) for zlib
---> Extracting zlib
---> Applying patches to zlib
---> Configuring zlib
---> Building zlib
---> Staging zlib into destroot
---> Installing zlib @1.2.3_4
---> Activating zlib @1.2.3_4
---> Cleaning zlib
---> Fetching tokyocabinet
---> Attempting to fetch tokyocabinet-1.4.42.tar.gz from http://distfiles.macports.org/tokyocabinet
---> Verifying checksum(s) for tokyocabinet
---> Extracting tokyocabinet
---> Configuring tokyocabinet
---> Building tokyocabinet
---> Staging tokyocabinet into destroot
---> Installing tokyocabinet @1.4.42_0
---> Activating tokyocabinet @1.4.42_0
---> Cleaning tokyocabinet
---> Computing dependencies for tokyotyrant
---> Fetching tokyotyrant
---> Attempting to fetch tokyotyrant-1.1.40.tar.gz from http://distfiles.macports.org/tokyotyrant
---> Verifying checksum(s) for tokyotyrant
---> Extracting tokyotyrant
---> Configuring tokyotyrant
---> Building tokyotyrant
---> Staging tokyotyrant into destroot
---> Installing tokyotyrant @1.1.40_0
---> Activating tokyotyrant @1.1.40_0
---> Cleaning tokyotyrant