Happy New Year!
Wednesday, December 31, 2008
Puppy vacu-sucked out of well!
Happy New Year!
MB-System 5.1.1 update in Fink
Tuesday, December 30, 2008
Upgrading to X11 2.3.1 w/ some slight issues
Upon install I noticed a couple of things:
1) Matlab would no longer start
For some reason after the X11 update, some of the links for required lib files during Matlab startup no longer worked. I searched online and found that if you start Matlab using the alias icon (the one with the up arrow on it in your Matlab directory, for me called Matlab Student 7.4 (also can be found at Matlab/bin/maci/StartMatlab)), the problem is somehow avoided. So I simply removed the original app icon from my dock and dropped the alias there instead. I still may submit a help ticket to Matlab though. I did try a reinstall and it did not solve the issue.
2) Fonts appear out of whack
When Matlab did finally start, the font was huge; I had to go into preferences and adjust it. After I reinstalled Matlab and got the registration window, the font was so big that letters were overlapping. I am not sure what is causing this, but adjusting the font under preferences seemed to do the trick.
3) Window resizing does not always seem to work right
In MB-System, sometimes the windows seem to cut off part of the text, making it hard to read. This happens in both mbedit and in the mbgrdviz control window. Resizing the window makes the grey bounding box bigger, but does not nothing to make the inner boxes around the text bigger. This could be an issue in MB-System itself and not X11, but that still remains to be determined. I know Kurt Schwehr, who packages MB-System for Fink (see his maintained Fink packages here), as well as the MB-System guys themselves, are hard at work with updates so if it is an issue on that end I am sure it will be worked out soon.
Monday, December 29, 2008
Asteroid Hitting Earth - set to Pink Floyd
Sunday, December 28, 2008
MB-System: free, open-source sonar data editing software!
First I installed MB-System using Fink. If you have not heard of Fink, check it out here. It packages up open-source unix programs and compiles them to run on a mac. The only incompatibility as of now is that the MB-System grid viewer is not supported by Fink due to an issue with OpenGL and some differences in the naming conventions between the OS X 10.4 and 10.5 environments, but it is currently being worked on. Once I had fink installed and updated, I simply ran:
I decided to test out MB-System with a single data file from my summer hydrographic field course. First I ran mbinfo to get an idea of the scope of the data I was dealing with:
$ mbinfo -I 0162_20080616_161142_RVCS.all
This provides a neatly organized output that includes navigation info, start and end info (times, lat, long, depth, etc.), total number of pings, etc.
Another good thing to check early on in your processing is the navigation, which can be done using mbnavlist:
$ mbnavlist -I 0162_22080616_161142_RVCS.all
This command can be modified to display different data, but by default it displays date and time, unix time (in decimal seconds), longitude, latitude, heading, and speed.
The next tool I ran was mbm_plot, so I could look at the line an see what it looked like:
$ mbm_plot -I 0162_20080616_161142_RVCS.all
this command generates a .cmd file that contains all the necessary commands to generate a postscript file and display it using ghostview. To run the command:
$ ./0162_20080616_161142_RVCS.all.cmd
Since I do not have ghostview, I get a small error message which I ignore and just run the open command to view it in Preview. The last command simply plotted the navigation trackline, but now say I want to see what the actual bathymetry looks like. I can run mbm_plot again and indicate that I want to use a color-fill of the bathymetry by using the graphics mode (-G). I can also specify to overlay the trackline by adding -N:
$ mbm_plot -I 0162_20080616_161142_RVCS.all -G1 -N
Again, a .cmd file is generated that I can run to plot the data and view it. The mbm_plot function utilizes GMT to create the plot and handle the axes. You can customize mbm_plot quite a bit, but aside from specifying color-fill and navigation, I left mine at the default settings. Here is the result:
In order to edit the actual pings, you use a command called mbedit. Right now you can only edit using a 2D viewer, but there is a 3D MB-System editor in the works (it is currently in a beta version now). To open up mbedit for the line, I simply ran:
$ mbedit -I 0162_20080616_161142_RVCS.all
I could also have just opened mbedit by itself and then opened the line file from within the program. In mbedit you can apply filters to blank out the outer beams, flag bad data points, edit individual beams and pings, etc. There are many different view options in mbedit that makes examining the data fairly easy. In the example below I am using the waterfall display with the option to color by bottom detection algorithm turned on. The data was collected with a Simrad EM3002 dual-head system, and the waterfall displays enables you to see the individual pings of each transducer. Red beams are phase-detected and black are amplitude-detected.
These tools represent only a few of the things that MB-System can do. To really get a sense of it all, you need to check it out for yourself. I highly recommend Val Schmidt's MB-System Cookbook as a must-have manual.
So far, the only quirk I have noticed with editing my data in MB-System is that when I plot it, it appears that the actual ping data and the navigation data start and stop at different times. It is hard to see in the plot figure above, but you can clearly see it in the plot of a turn line below. This could be due to how MB-System handles the extrapolation of the navigation data for Simrad systems, or it could just be something weird on the Simrad side. Simrad does not store navigation for each individual ping, so it is possible to have pings without nav and vice-versa. Kurt looked at some Hydrosweep data in MB-System (Hydrosweep does store nav data for each ping) and his data did not have this problem. I am definitely going to have to play around with it and see if I can figure out exactly what is going on. Regardless, I think MB-System is a great tool and fills a very real-world need. Not everyone can afford the multi-thousand dollar price tag that comes with many of the more mainstream sonar processing software suites, and it is nice to know that there are other options available.
Saturday, December 27, 2008
Stars Wars on Apple Terminal
I am currently sitting in the San Jose airport waiting to board my plane and as taking advantage of the free wifi to putz around on my mac. Here a couple fun terminal commands that I just ran across:
1) say hello
just type say and then whatever else you want and your mac will speak to you.
2) telnet towel.blinkenlights.nl
allows you to play Star Wars IV (all in ascii) on your mac. Someone had way too much time on their hands.
for these and more, check out: http://www.mactricksandtips.com/2008/02/top-50-terminal-commands.html
Monday, December 22, 2008
Sync iCal and Google! (and other cool Mac tools)
Here's a little list of tools I have found really beneficial to have:
1) CalDav: a little tool that will sync your iCal and Google calendars. The refresh rate is very fast. Once I add an event in iCal, by the time I load my Google calendar page, it is there.
2) MenuMeter: this little tool Kurt pointed me to. You can display graphs and meters for your CPUs and network traffic (as well as memory and disk usage) in your menu bar.
3) KeyCue: displays a floating window of keyboard shortscuts whenever you press and hold the command key. It will tailor the shortcuts to whatever application you are working in. The professional version costs money, but the unregistered version works very well and just displays the registration screen every once in a while when you hit command instead of the shortcut menu (it will go away after a second). As a mac newbie, this tools has been great for me!
4) Caffeine: this tool prevents your mac from dimming the display or going into sleep mode. This is essential if you watch Netflix on your mac. It simply puts a little icon in your menu bar, and you click it once to turn it on and once more to turn it off.
5) Zoom: zoom can be found under Universal Access in your System Preferences. Turning this on allows you to zoom into and out of your screen using command+option and the + or - keys. This is great for zooming in programs and on web pages that do not normally support the zoom feature.
6) Flip4Mac: this plug-in feature allows Quicktime to playback Windows Media files (wma, wmv).
7) DivX: this tool includes a trial version of their media player (it expires after 180 days), but more importantly adds DivX functionality to Quicktime (which does not expire).
8) VLC: this is a separate media player from Quicktime, but can play a lot of videos that Quicktime cannot (such as ogg files).
Here is one more that is not necessarily beneficial per se (at least not to the average user), but sure is cool as heck:
9) Seismac: this tool will turn your Sudden Motion Sensor (SMS) equipped mac (any newer mac model, and some of the older powerbooks and ibooks) into a real-time three-axis accelerometer!
Wednesday, December 10, 2008
Interactive 3D models in PDFs!
Friday, December 5, 2008
File version control with Subversion
To access svn on my Windows machine, I use a program called Tortoise. Tortoise allows me to upload, checkout, update, and commit files easily to svn. For example, initially I uploaded some source code of mine to the repository. It is now safely stored on the server. When I checkout the file from svn, the most recent version (unless I specify otherwise) is dropped onto my local machine. Once I am happy with any edits I make to this local copy, I simply commit the file back to svn. This new copy autmatically gets a new version number (called revision in SVN) and will be stored as the most recent version. The update command is used to update any checked out copies on your local machine to most recent version in the svn repository. This is handy when multiple people are working on the same file.
A typical svn reposity is set up with three main directories (note this is only a recommended structure):
- trunk - this is the main directory for your files and where you commit regular changes
- tags - a collection of snapshots of the trunk (or a branch) at a user-defined point in time. This basically contains pointer files to specific versions. This is good for a version you want to be able to access quickly. For example, if I used a specific version of my source code to process some data for a publication, I will want to quickly be able to access this exact version.
- branches - active variations of the project compared to the trunk (or even another branch). Branches are good for when you are editing a file already in the trunk, but you do not have a working version yet. Perhaps you are trying out some new addition to your code, and you are still in the testing phase. This is also a good place to store any revisions you have to make to older versions of files in your trunk directory. For example, say I use version X of my code to process data for a paper. Now, a year later, I am on version Z of that code. Someone using version X from my paper finds a bug in it I need to fix but I do not wish to give them version Z yet. I can fix the bug in version X, and commit the new version of that code to the branch directory. That version Z of the code is still my most recent version in the trunk directory.
Saturday, November 29, 2008
Everybody do the wave! (Lightwave, that is!)
Tuesday, November 25, 2008
CCOM Seminar Series Calendar
Friday, November 7, 2008
Code search and Blogger Backup
Thursday, November 6, 2008
Recovering files off my very old and very dead Macbook G4
The drive itself could not fit into my external casing due to the Torx screws, but I was able to connect the USB connector to the IDE interface anyway and connect it to my ACER.
(here the drive is sitting on a protective sheet that came in my Mac. I would not recommend just plunking it down on just any old surface)
Windows XP could not recognize the MAC formatted drive (Quel surprise!) so I booted up in Ubuntu, which recognized the drive right away.
The next challenge was to unlock all the directories so I could access the files. All my personal files were denoted with:
drwxr-----
meaning that only the owner can access them. Since I cannot login to my MAC, this is a problem.I was not actually sure if this would work, but I ran a chmod command as root to add the needed permissions. I opened a terminal window and navigated to the mounted hard drive where I ran the following command:
monica@Tzedakah:/media/Scooby$ sudo chmod -R +xrw Documents/
the -R causes the permissions to be changed for the Documents directory as well as all subdirectories and files. Now all the permissions on all the files denoted by:
drwxr-xr-x
meaning I can read/write/execute all files, group permissions are read/execute, and others can only execute.This is great, as I can now look into to the subdirectories and see what is there. I found a bunch of papers I had written in college, including my undergrad thesis.
Saturday, November 1, 2008
Netflix "Watch Instantly" on Ubuntu
Getting this working might just be my Ubuntu project for tomorrow...
FYI:
Hibernate happy in Ubuntu 8.10: Itrepid Ibex
The only weird thing I have discovered so far is again related to the function keys. After installing the acerhk module in 8.04, the mail client would open whenever I hit the web browser button and nothing would happen when I hit the mail button. Under 8.10, the web browser button still opens my mail client, but now mail button opens my web browser. At some point I should figure out what file controls how these keys are mapped and reconfigure it.
Wednesday, October 29, 2008
Lidar data in Caris pt. 2: waveform view
Tuesday, October 28, 2008
Hibernate fails in Ubuntu 8.04
Monday, October 27, 2008
Shallow Survey 2008
In exchange for volunteering, I got to attend all the events and talks, which was really nice. I met a lot of interesting people doing really cool research, made some very valuable contacts, and even got to catch up with some of my old NAVO coworkers.
The program can be found here: Shallow Survey 2008 program
There were many excellent talks, but one of the most exciting as far as my research is concerned was the one by Valérie Robitaille, entitled "Identification of Sedimentary Facies and Biological Habitats through Reflectance Measurements Using a Multi-Beam Autonomous Portable Laser Equipment (MAPLE) to Standardize Airborne Laser Bathy Systems." Her abstract can be downloaded from the program link above. This research was done for her Master's, and she is about to move into her Ph.D. Hopefully I will get to see more of Valérie at future conferences.
At the very end of the conference they announced that Shallow Survey 2011 will be held in Wellington, New Zealand. I am definitely going to try to go that!
Acer Hotkeys in Ubuntu
First I downloaded and installed: acerhk.tar.bz2
I did an lsmod > txt file before and after installation and performed a difference on the two to see if the linux module was indeed changed. The module had certainly been modified. An lsmod | grep Acer returned the following:
monica@Tzedakah:~$ lsmod | grep acer
acerhk 26036 0
wmi_acer 9644 0
I then edited the /etc/modules and added "acerhk" to the top of the list, so the module will boot at startup.
I restarted my system and voila: nothing. I decided not to mess with it for a while and went about other business.
A few days later I tried controlling volume using the function keys out of habit, forgetting they would not work. But it did work! Complete with a little image that popped up showing the volume bar. I could not believe it! The only thing I could figure is that a day or so before I had updated my system to the latest Linux kernel: 2.6.24-21.
So all of my "Fn" keys seem to work and some of my special softkeys work too, albeit not exactly in the correct way. For example, my mail button does nothing, but press the web button and Eudora (the mail client) opens. Another interesting one is that if I press the bluetooth button, my screen locks and asks for my passowrd. The screen rotations buttons also do not work. Once I have time, I will have to tackle this issue. In the meantime, I am happy to be able to control volume using the keyboard again.
Friday, October 10, 2008
Ubuntu on an Acer TM C300
Not all of my Tabet PC functions worked with Ubuntu out of the box. A few things needed some tweaking. The first challenge was getting my wacom stylus to work under Ubuntu. Here is what eventually worked for me (pulled from various online sources, including this site from Ubuntu forums):
1. Run any Ubuntu updates that are ready for the system
2. Go to System -> Administration -> Synaptic Package Manager -> (or use apt-get install from a terminal window) and install the following:
xinput
setserial
wacom-tools
wacom-kernel-source
xserver-xorg-input-wacom
3. Edit your xorg.conf file to add information for your stylus. Add the following:
Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/ttyS0"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4"
Option "BottomX" "28800"
Option "BottomY" "21760"
Option "Mode" "absolute"
Option "TPCButton" "on"
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/ttyS0"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4"
Option "BottomX" "28800"
Option "BottomY" "21760"
Option "Mode" "absolute"
Option "TPCButton" "on"
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/ttyS0"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4"
Option "BottomX" "28800"
Option "BottomY" "21760"
Option "Mode" "absolute"
Option "TPCButton" "on"
EndSection
Then under the "Server Layout" section, add the following:
InputDevice "cursor" "SendCoreEvents"
InputDevice "stylus" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
4. Edit/create a /etc/serial.conf file:
#Stylus pen
/dev/ttyS0 port 0x06f8 irq 6 uart 16550A
5. Go to System -> Preferences -> Sessions -> Start up Programs
Add the following command:
/usr/X11R6/bin/./xinput set-button-map stylus 1 3 2 4
6. Reboot the system and Voila! Your stylus should now be working and you can create lovely works of art such as the example below, created in GIMP:
Thursday, October 9, 2008
AIS helps save the whales
Thursday, October 2, 2008
Lidar Data in CARIS HIPS and SIPS
Tuesday, September 30, 2008
Lidar on Mars: The Movie
Friday, September 26, 2008
Mac Tablets
I have to admit, they do seem pretty sweet. I think I am too tied to manually typing to be able to work sans keyboard though (this guy is a slate, not a convertible), and the price is pretty steep (entry price $2,290). I currently have an Acer Tablet PC (the Travelmate C300, which is a convertible) that is about 4 years old. I cannot remember how much it cost when I first got it, but I know it was nowhere near this much. Of course, the Modbook is a lot more powerful (2.1 gHz processor, available w/ 2.4) and it even comes with a built-in GPS!
How long can I survive?
I could survive for 47 seconds chained to a bunk bed with a velociraptor
Sunday, September 21, 2008
The Fighting Cartographers!
The Great Arctic Conflict - Media spin of Law of the Sea
Friday, September 19, 2008
Healy makes Ship of the Week!
Wednesday, September 17, 2008
USCGC Healy and the CCGS Louis St-Laurent
USCGC Healy Blogs and Twitter
Sunday, September 14, 2008
The Foot
Wednesday, September 10, 2008
Back to Reality
Thursday, September 4, 2008
Update from the Arctic!
Hello again from the
Tuesday, Aug 19:
I saw my first set of polar bear tracks today! Actually, I saw two. At least one of them was fairly fresh because you could still see detail (e.g. the individual pad marks) in each print. I think I heard a ring seal today as well. I did not see it, but I heard it bark. There are also bearded seals up here, but apparently they are of the non-barking seal variety.
I also saw an icebow, which is essentially a rainbow that forms over ice. The colors are very faint and for the most part the icebow is all white. Now some folks out here have said the icebows are really fogbows, since although they start and end over the ice, the main body is in the fog. Fogbows can form wherever there is fog though, and are not constrained to the ice. Whatever it is, they are pretty cool!
The pressure ridges today were pretty vast and were surrounded by pools of aquamarine. As the ice gets old, it becomes compacted and less saline, turning more and more blue as it does so. We got stuck several times and had to back up and ram repeatedly. We finally broke through when they brought on a second engine. The Healy has four engines, 3 that can be used together if necessary and one that is always kept for emergencies only. Standing on the bow as Healy broke through the ice was an amazing experience. You could really hear the ice break and watch the crack propagate out in front of us. As ice is pushed down underneath the ship, the sound of it scrapping along the hull is tremendous. Luckily, the multibeam sonar and sub-bottom profiler are protected by ice windows!
Right now we are still in "drive-by-cursor" mode. Essentially we are just following the foot of the continental slope to see where it goes. Most continental margins are comprised of a continental shelf, slope, and rise. The foot of the slope is defined as the maximum change in slope where the slope and the rise meet. Up here in the
Still no polar sightings. Well, not by me anyway… The bridge has spotted a couple, and did a couple of the night watchstanders. I am keeping my fingers crossed.
Thurday, Aug. 28:
Last night I managed to stay up and watch the sunset. Actually, it is more of a sun-"lowering" I suppose and really all it does is make a slight arc in the sky. We are at ~ 83 degrees North, so it never gets dark at all now. At the most, we get some shades of pink.
Dredging operations are slated to start on Friday and we hope to have our first ice buoy deployment sometime in the next couple of days. This will involve actually putting people on the ice (not me, unfortunately). There will be two watchstanders armed with rifles, one with the guys on the ice, and one on the boat, to look out for polar bears.
Still have not seen a polar bear. L Word has it that a number of bears have been seen just off the north Alaskan coast, so we are hopefully to spot more bears on our return to Barrow.
Wednesday, Sept. 3:
I SAW A POLAR BEAR!
Here are some pics from my adventures. Once I have a better internet connection, I will post some more.
me on the bow of the Healy:
The sun and the bear (he's small, but he's there):
A picture of the bear taken with a camera much better than mine: