No 'slide' images have been detected!
How To Add Images To Your Slider
  1. View your project in edit mode by clicking the edit button.
  2. Import or drag and drop an image into your editor.
  3. Double click the image and in the popup menu change the filename to something that starts with 'slide'.
  4. Add as many images as you want and make sure to also change the filenames to something that starts with 'slide' (e.g. slide-2.jpg, slide-3.jpg).

Software, Hardware, Research – Results

Castalia + Eclipse Juno

updated from

Took these steps to get Castalia 3.2 working under Eclipse Juno on OS X 10.8.2:

  1. Install Eclipse and CDT (C/C++ Dev Tools)
  2. Download Castalia (latest, which for me is 3.2)
  3. In Eclipse, create a new makefile-based C++ project (e.g., “CastaliaSim”)
    • File/New/C++ Project
    • Select Makefile project in Project Type, then select Empty Project
    • Provide name of project, click Finish
  1. Copy all of downloaded Castalia files into new project folder (i.e., into CastaliaSim)
    • Don’t worry about missing config directory…
  1. Refresh Eclipse project. All the copied files/directories should show up in Eclipse
  2. Right-click Eclipse project (CastaliaSim) and select Make Targets/Create…
    • Make three (3) targets
      • all: type “all” at the “Target Name” and “all” at the “Make Target”
      • clean: type “clean” at the “Target Name” and “clean” at the “Make Target”
      • cleanall: type “cleanall” at the “Target Name” and “cleanall” at the “Make Target”
    • For each, the Build command needs to be set to a script so that we can get around an OS X and Eclipse shortcoming for PATH variables (or my lack of knowledge and Google-fu)
      • Create a bash script with the following contents:
        • #!/bin/bash
        • source ~/.pathsrc
        • /usr/bin/make $1
      • where the bash script “.pathsrc” contains bash commands to set and export your PATH variable, including the absolute path to the omnetpp/bin
      • and make executable (“chmod +x”)
  1. The make targets are ready:
    • The targets are ready and can be found in the Make Target view on the right
  1. As suggested in the InstallationEclipse reference, a makemake script can be created
    • Right-click Eclipse project (CastaliaSim) and select Make Targets/Create…
    • Create the with the following contents:
      • #!/bin/bash
      • source ~/.pathsrc
      • ./makemake
    • where the bash script “.pathsrc” contains bash commands to set and export your PATH variable, including the absolute path to the omnetpp/bin
    • and make executable (“chmod +x”)
    • NOTE: so that Eclipse could find my $PATH, I had to take all my .bashrc PATH definitions and put them in a separate bash script that was sourced by
  1. You might try making a run configuration for simulations...
    • Since it’s better to run the simulation in the specific Castalia/Simulations/ directory, I don’t recommend it.


Some notes on setting up GIT and accessing via dynamic dns. Read More...

iPhone wireless logger

As everyone knows, you can’t run gdb on an iPhone/iPod (and I assume, iPad) that’s not tethered to your development machine.

This really sucks if you are trying to debug an app that relies on or controls an external accessory; you’re basically working blind unless you want to litter your iPhone screen with UIAlertViews. That approach works for very isolated bits of code, but if you have repetitive events or lots of points in your code you need inspect, it gets old fast.

So, after procrastinating a couple of months, I’ve whacked together a simple wireless logger class that should be easy to dump into your code base. Using the Acceleromater Simulator code as a template, I created for general use the WLog singleton.

The WLog class supports sending NSString messages to another computer via UDP broadcast, which means via WiFi when you’re using it for an iPhone/iPod/iPad app. All the receiver has to do is listen to a prescribed port. I chose the default port to be 5169 since it’s part of an unreserved block of port numbers.

The source files for a simple iPhone test app and a Java receiver are available at GitHub.

Wikipedia Affiliate Button

Stupid Human Inteface and MS

About 4 weeks ago I was totally frustrated by the latest MS Office suite. I’m on contract at a place that has a number of Human Interface engineers, so went looking for some sympathy...

I’ve been a Word user since the first demo version came out for my Mac 512K and although I’ve used better word processing software for important docs, like a thesis and dissertation, I have become pretty good at using MS products because work has always required it.

This latest incarnation (because it feels like the Devil was involved) is so badly broken that it’s barely usable. For normal tasks in Word, I’m significantly less productive. I am forever switching menu ribbon views to do simple things like inserting unformatted text and then creating a cross-reference or inserting and equation.

The Human Interface engineer I talked to agreed, and pointed out that supposedly the whole reason MS changed everything is that they found new users learned 10% more quickly how to use MS Office. Big Deal!!! What about the rest of us that have permanently lost productivity? What about the thousands of dollars I know the company I’m contracted to has spent on MS Office training just because they chose to roll out MS Office 2007. It almost makes ya think that there’s some collusion with training companies...

Long story short, I finally did the right thing and got a family pack of iWork. Much happier now.

Going Green 1 - Paperless

This is a first entry in my ongoing efforts to green-up my office and company. I’d love to hear from others on what they do, especially in Canada where, for example, I would be eligible for gov’t grants :-)

I’ve already committed to several things on The Good Life, and encourage everyone to do the same.

I work from a home office that is a separate building on our property. It’s well insulated and on it’s own electric, natural gas, and septic system. While I don’t get the benefit of being attached to another building (saving a radiating surface or two), I do get to keep the temperature lower than most people would be comfortable with. I can manage my water usage pretty well.

I try to manage electricity usage by turning computers off when not in use and disconnecting wall-warts from main power via power bars. I make use of motion sensor lighting as well. Still, I think that I could use more control devices to manage things electrical. I need to buy a programmable thermostat ASAP as my old mercury switch one is kind of wonky/unreliable. I have 3 sets of overhead halogen lights that I’d like to replace with LEDs soon.

Obviously, I travel only for meetings and such, except when a contract requires me to be on site. Then I try to wrangle as much work from my office as is feasible, then carpool, and as a last resort, drive by myself.

I’m trying to de-clutter my work environment, which is basically the top of a 25’x35’ 1.5 story garage. That’s a lot of space, but with all the books, CDs, LPs, computers, desks, and electronics work benches and stuff, it’s not as wide-open as you’d expect. I’ve recycled a lot of old electronics, though I keep some stuff because it can be useful for some projects. Most of my test equipment is used, some from eBay, some from other sources.

I’ve been scanning old docs and making PDFs; that’s kind of obvious, but it gets rid of several filing cabinet drawers of stuff. I’ve set up DevonThink with several variants of the Paperless Office template (under construction snap below).

I use Acrobat Pro to create PDFs of scanned docs, though SmileOnMyMac’s PDFPen looks like it might do as well. I do like their DiscLabel app, so may give PDFPen a whirl sometime, at least on the Mac side of things (read on...).

I’d love to get a SnapScan sometime to speed up this process, but for now am using an old OfficeJet T45 hooked to a box that can, when really nicely asked, run XP. It’s a pain to scan with this combo for a couple of reasons. The T45 is hit and miss for colour scanning. Some docs deserve colour scanning, but sometimes the colours are faded horizontally across the resulting scan. When I really care, I just use a flatbed scanner, which you’d think is much slower than the T45 with its sheet feeder... That brings up gripe 2, the need to click 2 or 3 times in the combined HP and Acrobat Pro apps per page! Gripe 3 is that the HP driver wants only to remember certain settings. It always defaults to grayscale, so I have to open a dialog each time I scan a colour page. Still, I can’t justify the cost of the SnapScan, at least not yet.

Some other interesting reading can be found on Gordon Meyer’s pages and, of course, on 43folders.

Bookmark and Share