Roger’s Brain Dump

July 3, 2009

eco echo carrier baby sling

Filed under: Uncategorized — rogerdpack @ 10:52 pm

when someone refers to the “eco sling” or what not, I think they mean this:

http://www.amazon.com/Sleepy-Wrap-Baby-Carrier-Gray/dp/B001BXBC0W/ref=sr_1_2?ie=UTF8&s=baby-products&qid=1246661525&sr=8-2

eco maternity
since google didn’t know when I asked it once

July 2, 2009

back to firefox

Filed under: Uncategorized — rogerdpack @ 5:34 pm

Decided to start using firefox again now that 3.5 is out [at least, on machines with 1G+ of RAM].

Reason? It highlights text slightly nicer than chrome. The highlight only goes behind the text highlighted, nothing more, which feels tighter. It loads slightly slower than chrome still, and startup time is significantly slower than chrome, but it also has adblock plus, which totally rocks. So…back to firefox.

July 1, 2009

java woe

Filed under: Uncategorized — rogerdpack @ 10:28 pm

$proxy7 $proxy8 “cannot be cast” java rmi

meant “your interface is missing its extends Remote or all of its methods don’t throw RemoteException”

June 30, 2009

resize dev shm

Filed under: Uncategorized — rogerdpack @ 3:55 pm

for reference:
sudo mount -o remount,size=7G /dev/shm

how to check all checkboxes in a web page

Filed under: Uncategorized — rogerdpack @ 1:28 am

there’s a firefox extension that will do it.
download/install it: https://addons.mozilla.org/en-US/firefox/addon/2708
then highlight the ones you want to toggle
then right click and it shows up on the menu.
phew!

This useful for adding your planetlab slice to all nodes, for example.

June 29, 2009

ruby candlesticks graphs [percentiles, quartiles]

Filed under: Uncategorized — rogerdpack @ 7:55 pm

using gnuplot ! [gnuplot gem]
straight from the gnuplot candlesticks demo [demo/candlesticks.dem]

rdp@rdp-vm:~/Downloads/gnuplot-4.2.5/demo$ cat test.rb
# 1	1.5	2 	2.4	4	6.
# 2	1.5	3 	3.5	4	5.5
# 3	4.5	5 	5.5	6	6.5
a = [1,2,3]
b = [1.5, 1.5, 4.5]
c = [2,3,5]
d = [2.4, 3.5, 5.5]
e = [4,4,6]
f = [6,5.5, 6.5]
require 'rubygems'
require 'gnuplot'
Gnuplot.open do |gp|
  Gnuplot::Plot.new( gp ) do |plot|

    plot.title  "Example"
    plot.ylabel "x"
    plot.xlabel "x^2"
    plot.xrange "[0:11]"
    plot.yrange "[0:10]"

    plot.data << Gnuplot::DataSet.new( [a,b,c,d,e,f] ) do |ds|
      ds.using = "1:3:2:6:5"
      ds.with = "candlesticks lt 3 lw 2 title 'Quartiles' whiskerbars"
      #ds.notitle
    end

    plot.data << Gnuplot::DataSet.new( [a,b,c,d,e,f] ) do |ds|
      ds.using = "1:4:4:4:4"
      ds.with = "candlesticks lt -1 lw 2"
      ds.notitle
    end

  end
end

June 27, 2009

gnuplot how to plot percentiles

Filed under: Uncategorized — rogerdpack @ 10:58 pm

I’d recommend plotting them as candlesticks

http://gnuplot.sourceforge.net/demo_4.3/candlesticks.html

??

June 26, 2009

bufferedreader buffered FileInputStream

Filed under: Uncategorized — rogerdpack @ 9:37 pm

what you want for buffered binary incoming file data in java is “BufferedInputStream”

ref:

http://java.sun.com/j2se/1.4.2/docs/api/java/io/BufferedInputStream.html

ruby tape woe

Filed under: Uncategorized — rogerdpack @ 8:02 pm

reading from a tape, then again, resulted in

irb(main):010:0> b = File.new ‘/dev/nst0′, ‘r’

Errno::EBUSY: Device or resource busy - /dev/nst0

from (irb):10:in `initialize’

from (irb):10:in `new’

from (irb):10

from :0

fix:

close the first handle [though it's already past EOF, apparently it needs a local close, too]

irb(main):011:0> a.close

=> nil

note you’ll want to read in chunks of 64*1024, even if it doesn’t actually return you chunks of that size, for some odd reason

June 25, 2009

github woe

Filed under: Uncategorized — rogerdpack @ 3:00 pm

git pull

Permission denied (publickey).

fatal: The remote end hung up unexpectedly

meant do:

$ exec ssh-agent bash

$  ssh-add ~/.ssh/id_rsa

ref:

http://blog.stonean.com/2008/04/17/github-and-public-key/

http://www.cs.indiana.edu/csg/FAQ/Security/openssh.html

possibly caused by too restrictive of firewalls [?]

Older Posts »

Powered by WordPress