Archive for the ‘ software ’ Category

Digital log book

Ever since reading Kurt and Monica’s blog posts on org-mode back in January, I have been wanting to check it out for myself.  And the second week of my PhD studies seems like as good a time as any.  Oh, wait.  A month ago would have been better, what with the learning curve and all.  But it’s okay.

Org-mode website

I’ve been following David O’Toole’s Org-mode tutorial to get started.

Incidentally, while reading Monica’s post on org-mode, I noticed she was using Aquamacs (emacs for macOSX), something else I’ve been meaning to try… so many fun, new things to discover!  :-)

Matlab in 32-bit Mode

When using the Matlab interface to Antelope, you need to use the 32-bit version of Matlab.  The default for my version of Matlab (2010a) is 64-bit.  So when opening it in the terminal, I need to do:

matlab maci

BRTT – Datascope and Antelope

I’m back in school, and before classes start, I’m going to be be learning about a seismology database called Datascope, and also the Antelope software, which is used for both real-time and post-processing applications.  I’m happy about it because I’ve been wanting to learn about databases for a while now.  I had originally wanted to learn how to build them from scratch (which I still do), but learning how to use one that already exists is probably a much more logical approach.

Datascope and Antelope were developed by Boulder Real Time Technologies (BRTT), and there’s a Datascope tutorial on their website that I’ve been trying to work through.  Eventually, I’ll using the Matlab interface to Antelope, since I’ll be doing lots of data processing in Matlab.

Inkscape + Latex on Mac

I thought this was going to be trivial – it seemed so easy on Ubuntu.  But I getting Textex working with Inkscape on a Mac is a bit different.  I found these instructions on the mactex-wiki.  I’m not gonna lie.  It looks terrifying, and involves changing several lines of code in textext.py and textext.inx, and moving and deleting files from various folders in the inkscape package.

So before I embark on that journey, I’m going to try just blindly copying textext.py and textext.inx into the Inkscape extensions folder.  Oh hey, I got the textext item in the Extensions menu:

Next problem:  I click on the Textext option, and get this error:

Couldn’t find python-lxml in Fink, so I tried fink install lxml-py26…. and it didn’t work. :-(

It’s too late to be messing with this tonight. Maybe tomorrow. Or maybe Inkscape is not the answer – there’s got to be a better way!!

Maybe next time I’ll look into this blog post.

Diagrams in Mac

Here we go again… I was trying to draw a little diagram, and since I’m using a Mac, figured I’d look up OmniGraffle.  But OmniGraffle is now $100 for the basic package – and $200 for professional.  It wouldn’t be quite so painful except I got it for free back when I got my old Mac Powerbook back in 2006.

So it’s back to Inkscape.  I love open source!  It was an easy install – I decided to take a pass on compiling from source, and just grabbed the .dmg file from the downloads page. And of course, I already went through the whole Inkscape plus Latex thing a while ago.

And, for fun, here’s a screen shot of Inkscape in action:

… who needs OmniGraffle anyway… (sniffle)

Emacs Meta Key on Mac

To use the Meta Key in Emacs on a Mac computer, just go to the Terminal preferences –> settings –> keyboard, and check the box that says “use option key as meta key”. Easy peasy.

Use Alt/Option key as Meta Key in Emacs

Backing up the Macbook

I finally got around to setting up Time Machine on the Macbook, and ran into a few problems. I bought a Western Digital Essential external hard drive, 750GB. Nice and big. I plugged it in, and started the Time Machine backup. It formatted the drive, and started. It seemed promising at first. Then I got an error: ” Disk not ejected properly”. Time Machine was frozen, it couldn’t see the drive. I tried re-formatting, I tried installing a firmware update, nothing was working. I finally gave up, brought it back to Best Buy, and swapped it for an iomega eGo Helium. It worked like a charm, right out of the box. While searching for a solution with the WD drive, I came across several forums where this was a topic of discussion. Apparently I’m not the only person who has seen this problem. Seems like certain WD drives are a bit finicky with Macs. I’ve never had a problem with them before, but one time is probably enough for me to steer clear for a while, just in case.

Val mentioned that he also uses some backup software called Carbon Copy Cloner (CCC). I had a look at the website, and it looks like it helps create a completely bootable backup of your system. I guess that means I need another external hard drive, so I have something to boot from if it comes down to that. But it looks really cool – and it’s also free. Although if you like it, you’re encouraged to make a donation, after trying the full-featured version and judging for yourself whether it’s work supporting. It seems like great software, and a great philosophy.

More Brushes

Okay, I’ll admit it – I’ve been a bit obsessed with the Brushes app for the last few days.  I finally figured out how to export the video:  Just go to the image you want to export, click on the second button from the left, and choose “Mail Actions”.  Yeah, it was pretty obvious, I just didn’t notice it before tonight.  Here’s a sample:

Experiment with Brushes from Michelle Wray on Vimeo.

Here’s the final image:

Too bad it doesn’t look like either Val OR Gracie….

Simple beam pattern in Python

It’s been a long time since I’ve

(a) used Python, numpy, scipy, or matplotlib

(b) done a beam pattern calculation of any kind

So I thought it would be a good chance to brush up on several things all at once, and maybe even have the satisfaction of making a pretty picture at the end of the night.

Well, here’s the (perhaps not so) pretty picture:

This was so simple, I’m almost embarrassed to post it, but it will probably be helpful for me later, so here it is.  What is it?  I pretended I had two little pingers spaced 5 wavelengths apart, sending out continuous sinusoidal waves.  I summed these signals at each of the elements in a 2-D grid, plotted the resulting magnitudes, and voila.

What I had to learn:

- How to use exp() using numpy – I had to load it separately for some reason, otherwise it would default to the exp() that comes with the basic math package, which doesn’t allow computations on arrays.

-How to plot an image, a la “imagesc” in Matlab.  This is accomplished using <code>imshow(datahere)</code>, and a colorbar can be added using <code>colorbar()</code>.

-How to do a screen capture of a certain area on a Mac computer:  command+shift+4 gives you crosshairs so you can pick what you like.

It would have been nice to add some attenuation, but I’m too tired now.  One more thing that I need to figure out though, what’s the best way to post my code?  I probably should figure out how to put it up on the bluehost server (where this blog lives), and link to it from here.

Trying out GRASS GIS

It seems like the next logical step, in a way – I’ve already got GMT and MB-System. Might as well try out the GRASS free GIS software.  I just downloaded it using sudo apt-get install grass in Ubuntu. And it looks like there’s a pretty easy installer for Mac also.

This screenshot is from the Ubuntu version – don’t get too excited though – the cool display is due to Compiz-Fusion, not GRASS.  But the overall effect is impressive.  (Nice to know that I’m more concerned with how the UI looks than the functionality of the program).