Skip to main content

Posts

Showing posts from August, 2008

MERA 877-431-2833 scam

I had a charge to a visa card for $9ish from a company identified only as MERA 877-431-2833 TX. I hadn't used the card for a while, so that sent up flags. I did a quick search on the internet. It seems that this has happened to a bunch of people [ 800notes ]. I've disputed the charge with my company. The only additional information I got from them is that the co is listed as a toy company from texas. Check your records.

Endnote and MS word 2008 mac

With tracking on, and under circumstances I have not nailed down, endnote insert citation will fail with a 'COM' error and will not update the field codes. The solution is to close word, close endnote and then reopen the document. On the next citation insert all field codes will be properly updated.

use.exit.not.quit.med.harvard.edu

Some one has a sense of humor...

200 MB log file

And I was wondering why syslogd was hogging 100% CPU and why, at midnight bzip, of all things grabbed 100% CPU.

"Instruments" : Memory leak tracking on Mac

Instruments is a Mac GUI tool "...for dynamically tracing and profiling Mac OS X code." Jon says Instruments uses dtrace . I wanted a tool to track memory leaks in a c++ application I wrote I find the "Extended detail" view most useful because it shows a stack trace for each memory leak which includes the function name and the source code line number. To me, this is amazing. I did not compile the code with any DEBUG settings on. A big "Thank you" to Jon Hendry for this one. The Mac just got a lot more attractive for me as a development platform, not that I hadn't gotten comfortable with it already. Between the debug mode in eclipse and this tool, I'm all set.

Installing matplotlib 0.98.3 on mac

(See this post for a step by step list for getting python and friends set up for analysis on a mac) Get numpy 1.1 from here [sourceforge]. Use the disk image version. Mount and then double-click the package installer Get matplotlib 0.98.3 egg from here [sourceforge]. Use easy_install to install the egg. It fails, but it installs fine. Why? UPDATE: Charlie says: The OSX egg on SF should work fine on ppc and x86 machines on OS 10.3 and up. Unfortunately setuptools does not understand fat binaries at all yet. For some reason it installs the egg fine, but then tries to go out and download the source and compile it. Your idea of using the nodeps flag is a good one. That's the situation as it stands.

Why I love Python

I was reading "The remarkable inefficiency of word recognition" (Pelli et al. 2003) and I wanted to generate some of the stimuli they were using. In Python it took me a few hours total, starting cold using the Python Imaging Library. The code is below.... """This contains routines to generate degraded letter stimuli""" import Image #The PIL import ImageDraw import ImageFont import numpy def generate_letter(contrast_energy = .01, #michelson contrast energy noise = 30., bg_luminance = 128., letter = "a", letter_size = 400): N = 300 #size of image in pixels #first figure out what is the ink-area of the letter font = ImageFont.truetype("Data/arial.ttf", letter_size) #we copy the .ttf file to the local directory to avoid problems im_temp = Image.new("1", (1,1), 0) draw = ImageDraw.Draw(im_temp) #now we can draw on this sz = draw.textsize(l...

Laptop saga III

Well, a month or two ago HP came good with their promise to replace the busted laptop [post 1 , 2 ] and they sent over a dv2000 replacement for the old one. However, I read here (electronista) that several of their models have been affected by bad nvidia chips (this was the problem I was facing) - and the dv2000 (the replacement I got) was one of them. So.. the replacement is subject to the same problem eh? I gotta ask HP what to do...