Wednesday, December 21, 2011

Fix for Ubuntu Theme Change

I am running Ubuntu in VirtualBox. At random times, Gnome decides to switch the Theme from Ambiance to some ugly generic one that is hard on the eyes. Until today, I've been logging out and back in to restore Ambiance. Today I discovered that simply opening the Themes settings sets the theme back to Ambiance: System>>Preferences>>Appearance>>Themes

Thursday, December 15, 2011

Restore Eclipse subversion project connection

Using Eclipse-Indigo and Subversive, Eclipse frequently 'forgets' that my project is under SVN control. (The Project explorer lacks the revision numbers, The Team menu is missing most functions). Happens most often after an Eclipse crash or forced restart. Finally found the solution:

1. Right Click Project:
2. Team >> Share Project >> SVN
3. The URL should just show up.
4. 'Something like Keep existing project settings' *Can't reproduce the steps while writing this.
5. Finish

The Subversive functionality should be back.

Source: http://stackoverflow.com/questions/166220/restore-eclipse-subversion-project-connection

Monday, November 7, 2011

Problem installing Subversive Connectors

For some reason, I can't install Subversive Connectors from Work. The installation times out while downloading files. Installs fine from home. Clearly a site specific network issue. (this is a note to myself so I don't waste any more time troubleshooting this problem.)

Sunday, October 16, 2011

SOLVED: pyTivoX photos app not working

The pyTivoX photo app has never worked for me. Even after installing PIL (python imaging library) and libjpeg, I still get the 'broken icon' on the TV for all photos. I think the problem is that the PIL bundled with pyTivoX (/Applications/pyTivoX.app/Contents/Resources/PIL) overrides my 'site-packages' copy of PIL and it doesn't know how to find libjpeg on my system. I fixed the problem by renaming pyTivoX.app/..../PIL to _PIL. It works now

Install PIL easily with homebrew:

%brew install PIL

which should also take care of the libjpeg dependency. (you can verify you have libjpeg by executing the 'cjpeg' command.

SOLVED: Picasa Doesn't Recognize Iphone

For several months, I've been unable to import photos from the Iphone via Picasa. Instead, I have to use ImageCapture (and remember to choose to delete photos from the device.) and then import the photos into Picasa as a folder.

After a little Google searching I found that swapping the USB cables in the back of the computer caused the Iphone (but not the printer) to appear in Picasa's list of devices. Currently working when printer occupies the leftmost port and Iphone occupies the rightmost (as viewed from front of Mac Mini).

Tuesday, October 4, 2011

A good source for Precompiled Python Packages for Windows 64

http://www.lfd.uci.edu/~gohlke/pythonlibs/

PyDev Reindex Packages

After adding a new Package to Python, PyDev needs to reindex the packages. To do so:

Window >> Preferences >> PyDev >> Interpretter - Python
Make a non-destructive edit to the path: For instance-Use New Folder to add anything (C:\ for instance) then use Remove to remove it.
Click Apply

Done!

Monday, October 3, 2011

Virtual Box, Symlinks, Protocol Error

Running Ubuntu 64 in Virtual Box on a Windows 7 (64) host. ln -s commands to create symbolic links to files in the shared folder were failing with 'Protocol Error'

Solution: Run VirtualBox as administrator.

Skype client uses port 80!!!

I was wondering why my local WAMP instance wasn't reachable at http:/localhost/ ....turns out Skype is using port 80!! !%#$@^

Thursday, August 4, 2011

Subversive Password Problem

On several instances I've seen subversive in a state where it won't accept user credentials: every remote operation results in a password dialog that won't accept valid credentials. One solution is to clear out the keyring:

http://nlp.cs.byu.edu/~rah67/wordpress/?p=4

If subclipse is setup to use JavaHL (which it is by default: check in Preferences > Team > SVN > SVN interface), then the passwords are stored in the same location as if the command-line svn tool was used. For unix-based systems (or using the command-line tool under cygwin), this is in ~/.subversion/auth/svn.simple. On windows it is in c:\Documents and Settings\[username]\Application Data\subversion\auth\svn.simple. It looks like there is one file per repository in this directory (the filename is a long hexadecimal number). This file contains your username and password.
On the other hand, if subclipse is configured to use the JavaSVN adapter, the .keyring file mentioned in the post appears to be located in the eclipse directory (not the workspace, the actually directory where the eclipse executable is found) under configuration/org.eclipse.core.runtime/.keyring. This is a binary file and hence must be deleted.

Monday, June 6, 2011

Importing Existing SVN projects to Eclipse

I was having difficulty "importing existing SVN projects" (checked out on command line) into Eclipse/subversive. The problem is

Window >> Preferences >> SVN Connector >> SVN Connector

In my shop it needs to match SVN 1.6

Sunday, June 5, 2011

OSX Convert VIDEO_TS to ISO for Burning DVD

hdiutil makehybrid -udf -udf-volume-name MULLER_1991 -o MULLER_1991.iso 1991-DVD/

Wednesday, May 4, 2011

Delete camera roll photos from Iphone using OSX

Here's one way:

Use Image Capture to download all photos from the iphone.
Be sure to select Options >> Delete all photos from Device.

Saturday, April 16, 2011

Processing .tivo Files on mac

1. Connect to tivo over https://. Login = tivo/. Download file.
2. Remove drm using tivodecode command line app.
3. Convert to apply friendly format using Handbrake.

Wednesday, March 23, 2011

Import Existing Project into Eclipse-Subversive

I like to checkout projects from svn using the command line, and then import the project into eclipse. Recently I tried this with Helios-Subversive and after importing, the project explorer indicated these projects were not 'Team' projects: no revision number or url was displayed next to the project name. The problem was mismatch in versions between svn command line (1.6) and the subversive connector (1.5)

The solution is Window>>Preferences>>Team>>SVN>>SVN Connector

Then select a SVN connector compatible with SVN 1.6.

The Project Explorer immdiately updated to show the SVN connection.

Wednesday, February 2, 2011

Running vnc on centos 5

I helped a friend set up vnc on centos 5 today. Here's how we did it.

Wrote a shell script to start the vncserver daemon

#!/bin/sh


unset DBUS_SESSION_BUS_ADDRESS
vncserver -geometry 1000x1000 :1


I needed the unset part on Ubuntu, not sure it's needed on Centos5.

Create a password:

% cd ~/.vnc
% vncpasswd


Edit xstartup

#!/bin/sh

unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session &


the last line tells vnc to start the gnome desktop.

Connect with RealVnc, using hostname:5901

Sunday, January 16, 2011

Getting SMB to work on CentOS 5

I followed these instructions for command line setup.

http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-samba-configuring.html

Make the following changes to /etc/samba/smb.conf

workgroup = ADS
server string = Matt's Penguin box, Samba Server Version %v


[mullermw]
comment = mullermw's stuff
path = /local/mullermw
valid users = mullermw root
public = yes
writeable = yes
printable = no
create mask = 0765

Be sure to set up a password for the user.

%smbpasswd -a mullermw

I'd like to know if there's a way to use the machine password.

When connecting, prepend the username with the domain: ADS/mullermw

Friday, January 7, 2011

Somehow I broke yum on CentOS 5.5. I was getting this:

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

No module named cElementTree

Please install a package which provides this module, or
verify that the module is installed correctly.

It’s possible that the above module doesn’t match the
current version of Python, which is:
~~~~~~

If you cannot solve this problem yourself, please go to
the yum faq at:

http://wiki.linux.duke.edu/YumFaq

I was able to fix it following this:

http://stuff.nekhbet.ro/2010/05/27/yum-error-on-centos-5.html