Skip to main content

Posts

Showing posts from June, 2008

Firefox 3 on mac os X

I'm happy with FF3.
The intelligent address bar is nice. I can see it eventually making bookmarks obsoleteThe new bookmark maanger is great. On mac I missed the ability to drag/drop reorganize my bookmarks, I'm glad its back.Bookmarks, thanks to the address bar history - and now the intelligent address bar -, are now only really needed for those pages I only visit like once a month, like you know to pay bills, and really I don't WANT a bookmark for those pages...

TV converter box

Looked at consumer reports and decided to get the Insignia NS-DXA1 which is the same as the Zenith DTT900. Some reports say that there is an audio problem, and some guys actually did an fft of the signal output and showed that there are mysterious peaks at 12kHz and 16kHz. I'll be able to tell later tonight if this is gonna be a problem. Isn't it convenient that this simple piece of electronics is prices around $60? Which comes to $20 after our pooled tax money supplies $40? I think the guys at the company decided that people would be willing to pay $20 for this thing, and hence the price.

UPDATE: One trick for the sound apparently to bump up your TV volume all the way and use the Insignia to control the volume. [here] See my experience below

UPDATE: The box works well
I got 22 channels. This depends on antenna positioning. With another position I got 19The signal is really really clear. We used to get grain all the time with analogSound doesn't have a hiss problem. I boost t…

Aspell on Mac os

Get cocoAspellmount the dmg, install the packagego to /Library/Application Support/cocoAspell/ and find any dictionaries that are install, or go to ftp://ftp.gnu.org/gnu/aspell/dict and install some new dictsgo into the dictionary directory and do
sudo ./configure
sudo make
sudo make installaspell is now ready

Incremental backups

From here:
rshargs = -C

perms = 1
path = Unison-test

backup = Name *
#backuplocation = local
backupdir = Laptop-Backup/ZZ-Old-versions --> NOTE RELATIVE PATH!!!
backupprefix =
backupsuffix = .$VERSION
maxbackups = 100

root = /Users/kghose/
root = ssh://**.**.**//Volumes/Blur File Server/Users/kghose/Laptop-Backup

Icons on mac

Crop square image file from photo or from scratch using a picture editor e.g. GIMPOpen up Icon Composer (Comes with xcode, /Developer/Applications/Utilities)Drag and drop the image file onto Icon ComposerSave the file (say 'myicon.icns')
Open myicon.icns in previewCopy the imageSelect the folder/file whose icon you want to changeRight click and 'get info'Click and highlight the small icon at the top left (just above 'spotlight comments')'Paste'

TeXlipse (aspell for Mac)

Eclipse is an IDE for everything. There are at least two plugins for Latex. I'm using texlipse. You need aspell and can get a Mac OS X version here. [cocoAspell]. After installation it will be available at /usr/local/bin/aspell

FEATURES:
There is a nice simple table editor. Yay!BUGS:
There is a small bug in the project setup. I like to keep projects under my directory structure, not under .eclipse. In texlipse if you click 'Create project at external location' and select a folder, then fill out project name, it will get created under .eclipse. You need to first fill out project name, then click 'Create ...' and then choose the directory.When you create a new file, it tries to open the editor but dies with some error. Closing the editor window and double clicking on the file opens itOutline view does not workUPDATE:
Too many bugs, things not working, going back to texmaker... The good thing is that I found aspell for Mac, that integrates nicely with the system preferenc…

QT on mac

#include <QtGui> //For the GUI components

#include "ui_main_window.h" //generated from QT Designer

void setup_menu_bar(QMainWindow *mw) {
QMenu *fileMenu = mw->menuBar()->addMenu("&File") ;

//QT on Mac automagically moves these to the application menu item because
//they have the strings 'quit', 'about' etc. in them
//(http://doc.trolltech.com/4.4/qmenubar.html#details)

fileMenu->addAction("&About", mw, SLOT(close()));
fileMenu->addAction("&Quit", mw, SLOT(close()));
}

int main(int argc, char *argv[]) {

QApplication app(argc, argv);

QMainWindow *mw = new QMainWindow;

Ui::MainWindow ui;
ui.setupUi(mw);

setup_menu_bar(mw);
//putting this line before setupUi causes menubar to be erased


mw->show();
return app.exec();
}

[code -> html conversion using Francois' tool]
Reinstalling steam does not wipe your downloaded gamesBittorrent downloads can be resumed even after a reinstall of windows and bittorrent, because there are no messy states that bittorrent keeps lying around.Windows can be reinstalled without wiping the data

Google sketchup hints

If updating gets slow, go to View and turn off 'section planes' and 'section cuts'For the tape measure tool hitting 'option' (on Mac) will allow you to add guidesMeasuring from a guide line results in a infinite guide line parallel to the starting guideline, measuring from a component point results in a finite guideline in the direction chosenPanning and rotating with any tool active slows things down - it could be that sketchup is doing a lot of computations with tools active. When I need to pan, I just switch to the pan/zoom/rotate tool.Drawing plane depends on where the horizon is. If Horizon is high ('ground' fills 2/3 or more of the screen) drawing happens on the horizontal plane. If the horizon is low ('sky' fills most of screen) drawing will happen on the vertical plane

Unison on Mac OS X

Works swimmingly. I have 10.5 on my laptop (Darwin Kernel Version 9.3.0) and there is 10.4 on the lab server (Darwin Kernel Version 8.11.0) and Unison synchs just fine over ssh. Thanks to Alan Schmitt for the binaries.

lsof

lsof is a fun tool to use. It lists files opened by a process.

Man page here.

Example usage

lsof -p 6415 (list files open by given process)


Thanks to Jon Hendry for introducing me to this tool!

Sourceforge wiki space

is nice but has some annoyances:
Pros:
Its a great place to put project notes. Saves the trouble of having a separate space on the local computer where notes are stored and have to synched etc etc.
Its a great place for documentation and manuals etc.

Cons:
It will not warn you if you have lost your session - if you save your work, it will lose the draft and say you need to be logged in to editIts slowIt has annoying ads on top. Almost half the screen is taken up by non-wiki stuff

In some ways Macs are well thought out

The multiple monitor handling is well done:
multiple desktops are handled seamlessly over two monitors
a screen shot will result in two images, one for each monitor
The operation animations are not only eye candy, but assist the brain by creating a continuous change rather than an abrupt oneFan exhaust is aimed backwards, not intakes/outtakes on the bottom.
The magnetic power plugLED on power plug changes color when the computer is fully chargedThe battery has a LED charge indicator
The decent battery life

Archery in Boston

In Maryland there was a public archery range 5min walk from home. Its not that simple up here. From here, we see that MIT has a club, but it is restricted to MIT affiliates. Harvard has a club, and they meet at the QRAC. I will try that out. Their mailing list is here.

There is a group doing outdoor practice, but that's far away.

Now, if you go to the national rifle association's webpage (thereby losing all your 'liberal' credentials) you find that Massachusetts has 95 gun ranges. (Compared to California which has 212, beating out Texas 179). Surely some of them should be closeby and should allow a meek archer to practice once a week...

Well if you go down the list there are 16 public ranges, of which 6 have archery:

Edgartown - Martha's Vineyard Rod & Gun Club , 265 The Boulevard, Edgartown, MA 02539.
Phone: 508-627-3537
Facilities include: Outdoor Pistol (50 yds), Pistol Silhouette, Muzzleloading, Trap, Skeet, Archery, Airgun
Range Access: Public
Web Site: www.mvroda…

Boston Commute

I commute between the Malden area and the Longwood area. There are several ways to solve this problem:
Orange Line to Ruggles (30min) + walk (10-15min) ~ 45min
Orange line to Ruggles + Free Longwood area shuttle (No ID required) - 35min to 45minOrange line to Ruggles + Bike (Haven't tried this, wouldn't work during peak)
Orange line to North Sta (15min) + Green (Heath) to Longwood (20min to 1hr)Orange line to Ruggles (30min) + walk one block (5min) + Green (Heath) to Longwood (10min to 20min)The Green line is a bit of a crapshoot. Some days its just fine, some days it crawls. The commute is faster/more reliable if you can put it out of the equation. The Orange line is fast, reliable, and during peak hours, very frequent. I would say near Malden, about 1 every 5min. In the evening, at North Station, perhaps one every 10min

The great thing about trains is that you can read on 'em. I get a paper a trip (about), which is decent.

Web gallery with Image Magick

I had trouble getting Gimp to do my bidding via the console for batch processing. Learn Scheme? Yet another language? Well, Image Magick is amazing, and Darwin comes with a version of it. So, from here (IM tutorial) and here (Bash scripting guide) we have a pretty simple script to make a quick and dirty image gallery:
#!/bin/sh

#Call using say ./gallery.sh "*.JPG"

gfn="gallery.html"
mkdir Thumbs
mogrify -format jpg -path Thumbs -auto-orient -thumbnail 100x100 *.JPG
echo "
<html>
<body>" > $gfn

for img in $1
do
echo "<a href=\"$img\"><img src=\"Thumbs/$img\"></a>" >> $gfn
done

echo "
</body>
</html>" >> $gfn
And BTW, putting code in Blogger is a pain, because blogger interprets the html, so here is an applet from Francois to do the conversions. Thanks Francois!

GIMP in batch mode on OS X 10.5

Gimp has a batch mode. On Mac calling Gimp as

Applications/Gimp.app/Contents/MacOS/Gimp -b

Brings up the whole GUI and not interactive mode. from a hint here, we see that we can do

/Applications/Gimp.app/Contents/Resources/bin/gimp-console -b -

which does not bring up the GUI and puts gimp in batch mode.

Opensource Mac OS X scp client : Cyber Duck

The replacement for winSCP is Cyber Duck. Its very nice, and its released under the GPL.

I also tried out Fugu. It looks elegant, and it has the respectability of a copyleft software hosted under a .edu domain, but you can't store sessions in it (i.e. setup things os you can login to a particular server into a particular local and remote directory).

Finding OSS for Mac OS is a bit of a hurdle. Mostly they have commercial stuff. magicpubs carries some listings of Mac OS software, but not exclusively OSS.

xattr @ HFS and the junk Mac OS X puts on top of *nix

ls will sometimes yield a '@' in the file permissions string. This means that the file has extended attributes - a new feature of HFS
Its supposed to be cool - you can add metadata to your files - that only Mac OS can understand - not so cool [here]Use xattr -d to get rid of these things, especially if you didn't put them there in the first place. e.g. xattr -d com.apple.metadata:kMDItemFinderComment IMG_7086.JPG

Xcode

QT projects can be made from thisDoes have code completion - hit f5, haven't figured out how to get QT classes etc to be included in thisWill do code completion for PythonWill not do code completion for Ruby

Xcode and QT

qmake is a powerful thing. QT is serious about the cross platform thing.

Adapted from hints here [Qt-interest Archive]:

qmake -project
qmake -spec macx-xcode myproject.pro

This will produce myproject.xcodeproj, which can be opened in xcode

Smultron

Remembers last directoryLast opened file historyCan change line endingsHas projectsNo code completionTabs (implemented as a side pane)
Syntax highlighting
Looks like a SciTE replacement for me

Free Multiplayer Online games

There is a nice big list here.

KumaWar is a kind of ad supported valve. The games are based off the source engine, so they have a counter strikey feel to them, but most of them are just big frag fests.

Some of the MMPORPGs look interesting

Securing a wireless router

Disable SSID broadcast. Router still remains discoverable but not by general users. Causes intermittent problems on Mac OS X but not Vista
UPDATE: Windows machines expose the SSID when they connect, so Microsoft suggests that the SSID broadcast is kept enabled and encryption turned on [here].
Enable MAC address filtering. MAC addresses can still be spoofed, but not by general users.Use WPA or WPA2 rather than WEP. Vista and Mac OS X support WPA2
From practically networked.