Paul Legato

Main menu

Skip to content
  • Home

Category Archives: Tech

Post navigation

Newer posts →

Yahoo Finance in Clojure

Posted on March 13, 2010 by Paul Legato

A Clojure version of my Yahoo Finance Ruby gem seemed like an interesting challenge and a good way to learn Clojure better. This version uses Apache HttpClient, which is significantly slower than libcurl. A libcurl version is on the way.

Posted in Tech | Tagged automated trading, clojure, Java, programming | 5 Comments

Remote debugging Clojure and Leiningen

Posted on March 12, 2010 by Paul Legato

You can enable remote debugging of your Clojure / Leiningen programs by setting JVM flags in the JAVA_OPTS environment variable at startup.

Posted in Tech | Tagged clojure, programming | Leave a comment

JNI, Leiningen, and the :native-path argument

Posted on March 4, 2010 by Paul Legato

How to load JNI native libraries via Leiningen’s undocumented :native-path argument, for installation of Rincanter.

Posted in Tech | Tagged clojure, Incanter, Java, JNI, JVM, leiningen, programming, r, statistics | Leave a comment

Resettable Memoize in Clojure

Posted on February 25, 2010 by Paul Legato

Memoize in Clojure is cool. Memoize is even built in to the core Clojure API. Resetting the built-in version is impossible since the atom used as a cache is hidden in a closure, but it’s easy to write a custom resettable version. Here are two versions that we came up with on IRC today.

Posted in Tech | Tagged clojure, programming | 2 Comments

Yahoo Finance in Ruby with Typhoeus

Posted on February 18, 2010 by Paul Legato

A fast and efficient way to download historic stock data from Yahoo! Finance with Ruby.

Posted in Tech | Tagged automated trading, programming, ruby | 11 Comments

jQuery Tablesorter Absolute Value Sort

Posted on February 17, 2010 by Paul Legato

jQuery’s Tablesorter is easily customizable to sort by absolute value or anything else you’d like. In my case, I have a column of “standard deviations above or below the mean” that I want to display sorted by absolute value. This was pretty easy with a little Javascript code.

Posted in Tech | Tagged javascript, jquery, programming, tablesorter | Leave a comment

Emacs clojure-mode eats line-final commas on save?

Posted on February 14, 2010 by Paul Legato

Clojure-mode for Emacs will clobber any line-final commas, even if they’re embedded in a string literal. O_o

Posted in Tech | Tagged clojure, emacs | Leave a comment

Launchctl vs Cron: You’ve Got To Be Kidding Me

Posted on February 1, 2010 by Paul Legato

So I wanted to write a cron job on my Mac. Just run this script every day at midnight. Nothing fancy. In standard Unix, this is one line in a crontab: 0 0 * * * /some/script That’s it. Put that in your crontab and /some/script will run every day at midnight. Naturally, I typed [...]

Posted in Tech | Tagged apple, unix | 1 Comment

DD-WRT WPA2 Shared Key Password Length Problem

Posted on February 1, 2010 by Paul Legato

The shared key (password) used to encrypt a WPA2 wireless connection to a DD-WRT router has a maximum length associated with it. If the key you enter is too long, it won’t work. (This may also be the case for other encryption protocols besides WPA2; I haven’t tried.) Unfortunately, the web interface does not limit [...]

Posted in Tech | Tagged dd-wrt | Leave a comment

DD-WRT, Firefox, Internet Explorer, and apply.cgi

Posted on February 1, 2010 by Paul Legato

The DD-WRT forum has some cargo cult tech support floating around on the topic of blank pages and the inability to update settings after a firmware upgrade. Many people are saying that you must use Internet Explorer to flash your router to DD-WRT, or else you will get a blank page (at apply.cgi) that does [...]

Posted in Tech | Tagged dd-wrt, firefox, internet explorer | 6 Comments

Post navigation

Newer posts →
Subscribe via E-Mail / RSS

Contact Me

  • pjlegato at gmail dot com
  • My GitHub account

Recent Posts

  • Reading BZip2 Files in Clojure
  • Clojure: Logging to a file with clj-logging-config
  • The Democratic Party and Postmodernism
  • Why is NATO in Libya? Data-based analysis of whether it’s just an oil grab.
  • Torrent Contents – List Files in a Torrent
  • Stop Calling Your Tests “Stories”
  • New Lambda Automaton Song: Yo Yo Globe
  • Custom Dialog Boxes Using Cocos2d on iPhone
  • HowTo: projectM visualization + mp3 = video for YouTube
  • Android or iPhone Development?

Categories

Archives

Proudly powered by WordPress
JustCSS v1.2 by Pross