The particular algorithm used in calculating Pi is one which converges to Pi as you add terms; it’s not calculating out to a number of digits, although I might try that one as well at some point. Here’s the output from a run; it’s interesting how it gets closer and closer, but… Another interesting thing …
Category Archive: programming
EDIT: The metrics below are skewed. Not all JVM’s are created equal. For updated metrics on the Pi, please see JVM Choice Matters (a lot!). What better thing to do on Pi Day than to calculate Pi? I figured while I’m at it, I might as well do some performance testing of the Raspberry Pi …
The following is fixing the wrong problem, but often technology is easier than people problems. $WORK removed the ability to use plugins with Chrome without having to go through a bureaucratic process lasting weeks. One tool I’ve found useful is the ability to copy the title and link of a page to the clipboard and …
DZone is conducting a survey of Developer Personality Types along the lines of a Meyers-Briggs analysis. They plan to shortly release the results, but will leave the “quiz” up after. If you’re curious about your developer type, you can take it at: Full Personality Test Short Personality Test Here’s my results from the full test …
I have been doing some site scraping of late. And as a result, I have really come to appreciate the semantic web. It’d make life infinitely easier for grabbing data. Of course there are other, better reasons for using the semantic web, but right now, it’d make a difference in my life.
This is a how-to for using jmx and rrd4j, a java implementation of rrdtool, to report on app server statistics. Thanks to Jeff Mesnil(author of jmx4r), Werner Schuster (JMX the Ruby way with jmx4r), sishen (JRobin sucks), and the rrd4j team. You’ll need the following: JVM 1.5 or higher — JRE is not enough, you …
I had an issue reported by a developer where their jboss connection pool wasn’t working properly. It looked good to me, so I decided to verify that everything worked in so far as connectivity from the box. So, I used the following jruby script to help:
url = "jdbc:oracle:thin:@SERVER:1521:DB"
user = "user"
pass = "pass"
conn = java.sql.DriverManager.get_connection(url,user,pass)
stmt = conn.create_statement
query = "select 1 from dual"
rss = stmt.execute_query(query)
puts rss.next? # did we get anything?
More about methods, it’s inspired/spurred by a comment on methods, public_methods, and private_methods by Pit Captain. It also corrects some misconceptions I had (and may have (wrongly) given others). I’ve added a new category, “eating crow” for this and any other postings where I step back and re-evaluate my posts. This is to keep me …