Skip to main content

Posts

Showing posts from April, 2008

HP laptop service chain

The INVENT number given out for service questions connects you with the first tier service who have no powers and really just repeat the info on the website.You can ask (at the central HP number) for a senior case manager. They claim to have more powers, but so far have done nothing of noteHP's service is taking VERY long:
I sent in the unit on March 24th their revised repair estimates go:
April 7th
April 15th
April 29th

I will stop buying HP.

Windows photo gallery metadata tag names

Windows photo gallery reportedly stores metadata like captions and tags in the metadata, so that you keep all your hard done organization when you move your pictures from one folder to another, one computer to another, one program to another, one OS to another...So where does Windows Photo Gallery store all that organizational dataUsing Phil Harvey's great ExifTool [queens U] I dumped jpg metadata and found that:Tags are stored in
Subject
Last Keyword XMPCaptions are stored in
Title
XP Title

I will top-post no more

From the wikipedia article on posting etiquette
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?But what to do about impatient people like myself who don't want to scroll down a lot of junk to get at an answer? The old dilemma remains...

See all files in Finder and searches (Mac)

From an awesome hint here [macworld].

Want to see all the files, but finder won't let you? Break out of the Nanny State of Mac OS X. Change the appropriate key in Finder's preferences

defaults write com.apple.Finder AppleShowAllFiles YES

Then kill the finder process to restart it. This will let you see . files (preferences etc)

This will still not show you system files. For that, in the finder window, underneath the search string, drop down the 'kind' box, select other, then add 'System'

Reading excel spreadsheets into Python

ftp http://www.lexicon.net/sjmachin/xlrd-0.6.1.zip
unzip xlrd-0.6.1.zip
sudo python setup.py install

xlrd - works as advertized, no mess, no fuss. "There are no dependencies on modules or packages outside the standard Python distribution." - that's what we like to hear.

Quick start is here.
import xlrd
book = xlrd.open_workbook("myfile.xls")
print "The number of worksheets is", book.nsheets
print "Worksheet name(s):", book.sheet_names()
sh = book.sheet_by_index(0)
print sh.name, sh.nrows, sh.ncols
print "Cell D30 is", sh.cell_value(rowx=29, colx=3)
for rx in range(sh.nrows):
print sh.row(rx)


Reading dates is here.
xlrd.xldate_as_tuple(sh.cell_value(rowx=120, colx=0),1) (1 for Mac OS)

Video chat app shootout mac

iChat
Native mac chat program
Does not play well with PC
Rumored to work with AIM
MSN Messenger
Does not have video chat
Mercury messenger
Has video chat, but frame rate is very jerky
Works with MSN messenger
aMSN
Decent video framerate
Works with MSN messenger
Can not do audio!

Python IDE shootout (Mac)

Eclipse + PyDev
Code folding
Code browser
Syntax highlighting
Nag screen (PyDev extensions)
No code completionXcode + Marxy's scripts
Code section highlighting (rather than folding)
Syntax highlighting
No code completion
No code browsing
Not a tabbed interface
Komodo Edit
Code folding
Syntax highlighting
Code completion (but doesn't work on pylab for some reason)
No code browsing
PIDA
To try out
http://blog.doughellmann.com/2008/01/python-development-tools-you-can-live.html

Expose & Spaces - screen corners

In system preferences -> Expose & Spaces you can set up 'active screen corners' which will allow you to do various actions my moving the mouse pointer to one of the four screen corners. This is great to cut down on keystrokes to say, see all your desktops and move windows between themUse 'ctrl' + cursor key to shift between desktopsDrag a window to the edge of the screen (your mouse pointer must be at the edge of the screen) and wait momentarily: your window will be moved to the adjacent desktop

Mencoder on mac

UPDATE:
I've switched to ffmpeg

ftp http://downloads.sourceforge.net/freetype/freetype-2.3.9.tar.bz2
tar -xvf freetype-2.3.9.tar.bz2
cd freetype-2.3.9
./configure
make -j8
sudo make install

ftp http://www.mplayerhq.hu/MPlayer/releases/mplayer-export-snapshot.tar.bz2
tar -xvf mplayer-export-snapshot.tar.bz2
cd mplayer-export-2009-03-24/
./configure
make -j4
sudo make install

ftp://ftp.mplayerhq.hu/MPlayer/releases/codecs/essential-macosx-x86-20060611.zip
unzip essential-macosx-x86-20060611.zip
sudo installer -pkg Essential\ Codecs\ Package\ \(Intel\).pkg -target "/"

Image sequence to movie that QuickTime can play

mencoder mf://*.JPG -mf fps=2:type=jpg -ovc lavc -o rig.avi -vf scale=600:450 -ffourcc DX50

Mac broken in

After three days the mac has been set up. What is missing is a good photo album app. iPhoto is fancy, but it keeps all these copies of photos around (even with the 'copy' option unchecked, and the originals unmodified) and it can not read the IPCT metadata that windows photo gallery has written.Firefox editor shows some visual glitchesThunderbird composer garbles text, and the cursor is not positioned correctly.
UPDATE - Only Ariel does not have this problem:







RRiki is much, much faster - instantaneous response, even when it has been inactive for a while. This could be the larger memory, faster processor or the different OS

/tmp on finder

Finder (which is what the folder navigation thing is called on a mac) does not show you the /tmp folder, and there is no option that will reveal such dangerous system folders to you apple users - move along. From a tip here [metafilter], you need to hit the 'go' menu and type in /tmp

UPDATE: Or change Finder's Nanny programming by

defaults write com.apple.Finder AppleShowAllFiles YES

(This post)

LaTeX on mac

This page [pennstate] has a great comparison of latex related stuff on macs.I went with the MacTeX-2007 package [tug.org] - this seems to have EVERYTHING, since my thesis compiles just fine, and I recall vaguely I used a bunch of extra styles and packages.I'm used to Texniccenter, which helps organize files into projects and uses \section, \chapter etc. commands to build a document structure. TeXShop lacks in that. I'm trying out Texmaker.Follow texmaker's instructions to set up the pathsuse fink to install aspell
sudo fink install aspell (this will require a few dependencies)
sudo fink install aspell-en (this will install the english dictionaries)
the path to set is /sw/bin/aspell

Startup programs/services on Mac OS 10.5

UPDATE: This page has a better tutorial which I have adapted in this post.

From this page [osxfaq.com]:
Startup commands are found under /Library/StartupItems/Each application has its own folder
The folder has:
XXX - A startup shell script
StartupParameters.plist - A message and information file
Resources - A folder with translations for strings etc.
XXX is a shell script with root ownership e.g.:
#!/bin/sh
. /etc/rc.common
ConsoleMessage "Starting RRiki"
cd /path/to/rriki/
rrikiserver &
StartupParameters.plist is a text file with some info:
{
Description = "RRiki server";
Provides = ("RRiki");
Requires = ("MySQL");
Uses = ("Ruby");
OrderPreference = "Last"; (can be Late,Last,None)
Messages =
{
start = "Starting RRiki server";
stop = "Stopping RRiki server";
};
}

sudo /sbin/serviceis the commandline way of manipulating services.

Firefox and Thunderbird migration vista to OS X

Links are in this post.Firefox - ~/Library/Application Support/Firefox/profiles.iniThunderbird - ~/Library/Thunderbird/profiles.ini (Note the difference, which is not given correctly)Firefox + extensions seem to port with the profile just fine onto mac,
Thunderbird's tags etc work fine, the lightning layout seems a bit wierd...I uninstalled lightning and installed the mac version, and my panes look better now
And can I just state here, for the record, that I'm becoming a mac fan not because of the mac eye candy (which vista has) but because of the bash shell in which I used vi to edit the profile files. Yee Hah, back to Unix! Basically, finally! A laptop that's running *nix out of the box ;-)

RRiki on Mac

Install MySQL

Ruby comes installed with Mac OS 10.5 [rubyforge.org].
sudo gem update rails --include-dependencies

Download the BlueCloth gem and do
sudo gem update bluecloth-XXXX from the directory you downloaded the gem in

To set up RRiki as a service see this post.

MySQL on mac

Download the community server .dmg from the mysql website. Install as usual.Download mysql gui tools (if you are too lazy to use the command line stuff) and its a lot like MySQL on windowsSetting up the service is involved, see here [osxfaq] and this post.Mysql is installed under /usr/local/mysql/bin

UPDATE:
MySQL provides binaries for the great GUI tools for Mac OS 10.4 only, and I had some mysterious crashed when creating/editing tables. Downloading and installing the fixed prefpane [here] seems to have fixed that.

Transparency in plots

Set the alpha parameter:

N=100;m.scatter(m.rand(N),m.rand(N),m.rand(N)*2000,m.rand(N),alpha=.4)


Opening a bank account

Bank of America, somewhere in the Boston region. Took me 10 minutes to open the account. I needed my driver's license and my existing BOA debit card. They opened it even though I snuck in just at closing time.

Internet connection speed test II

From work:


Installing python and friends on a mac

Get the latest python interpreter and some packages from here [from a pointer on python.org]To get matplotlib installed you will need pytz and dateutil, both found on the above mentioned page [pythonmac.org].SciPy is notably missing - get the source and the fortran compiler from here and compile as acc to the instructions.
There are several IDEs, I'm giving eclipse and xcode a whirl. This [showmedo] is an excellent video tutorial on how to get PyDev for eclipse all set up. Also see this for PyDev installation. PyDev has a really annoying nag screen now. I'm stopping using it.
Eclipse does not play sensibly with matplotlib - I'm using ipython to actually run the scripts and eclipse for the editing environment. Eclipse beats Xcode because eclipse will layout your methods and classes for browsing (like pyscripter).Marxy has some scripts for Python on Xcode here.
ipython should be installed from source as detailed here.

EEK: A Mac!

Use 'command' or 'apple' key instead of CTRL for copy and paste operations'end' is 'command'+'right cursor', 'home' is 'command'+'left cursor''backspace' is Mac 'delete' and 'delete' is Mac 'fn'+'delete'On firefox (which is what I have used the most) moving the cursor quickly sometimes causes the cursor to have afterimages.
Programs are sometimes installed by dragging the dmg into the applications folder (e.g. when you get Firefox for mac), but are sometimes installed by double clicking the .dmg file (which is basically an archive file of sorts) and then double clicking the .mpkg file which does the actual installation. e.g. for the python installerCreate a shortcut to the applications folder on your desktop - now you can drag applications into this shortcut to install - e.g. firefox/mysqlScreen shots are taken using command+shift+4 or 3 [from here]Finder doesn't show folders li…

Internet connection speed test

The internet service at Graduate Hills, which is student housing at the university of Maryland and has internet service through the university is [from speedtest.net]:

6561 kb/s download
2428 kb/s upload

calculated with a server at Frederick Maryland



Other servers:

Remove field code from Word document

e.g. before submitting a MS, or hand manipulating some formatting because Word does things (like cross-references) so half-assed [from here]

Select all the text (CTRL-A)
Press Ctrl+Shift+F9

Editing to remove anonymous comments that only contain thanks. I really appreciate the thanks, but it makes it harder to find comments that carry pertinent information. I'm also going to try and paste informative comments in the body of the post to make them easier to find.

Lighting change at UMD

They replaced all the lights in the corridor with these very depressing blue fluorescent lights. Apparently they're going to save a lot of money on the electric bill the environment and prevent our recovery from the last ice age.

Kevin Galloway was joking that he wondered if the univ. was also going to foot the counseling fees for the depression this was going to cause.

The logical solution would have been to have on-demand lighting, e.g. motion sensor activated etc. This will probably save a lot more power, and not skimp on the lighting quality.

But hey, its easy to whine after the fact. Who do we complain to? Hmm. There's a project. Who was the genius who thought of this any way, and have their lights been replaced?

Firefox and Thunderbird Extensions

Permit cookies - adds a button on Firefox status bar to adjust cookie preferences for current pageReminder Fox - simple and effective todo and reminder gadget - sits in Firefox status bar
Lightning - calendar extension for Thunderbird - talks with your google calendar
Provider for google calendar - needed by Lightining for google calendar accessNightly tester tools -SQLite Manager - wow! a sqlite databse manager in your browser! Can create databases, add tables.

Windows photo gallery on win XP

One of the things I really liked about windows vista is the photo gallery. At work I'm using a win xp machine, which does not. Apparently you can get windows photo gallery on your XP machine - you need to install windows live, and then select what components you need and install those. Most of it, of course is junk, but you can get messenger and photo gallery.