A place to invest time in technology.

Mac OS X crashing Firefox, Chrome and Safari

While the browser lock ups that have happened since around April 19th, 2011 might not be solved by this, I haven't had a problem since I ran these 2 commands in terminal:

mv ~/Library/Preferences/com.apple.systemuiserver.plist fu.com.apple.systemuiserver.plist.fu

sudo mv /System/Library/LaunchDaemons/com.apple.audio.coreaudiod.plist fu.com.apple.audio.coreaudiod.plist.fu

I moved the files, but the post I read said to just delete them.

Now I have looked and the /System/Library/LaunchDaemons/com.apple.audio.coreaudiod.plist is still gone.

The ~/Library/Preferences/com.apple.systemuiserver.plist is back. It is now 82 bytes instead of 653.

This whole experience has made me realize that both Mac and Windows are unstable. Ubuntu is as well. But at least it is free!

I got it from this web page: http://problemresolved.wordpress.com/2009/09/12/slow-snow-leopard/

Using Windows Server 2003 R2 Enterprise Ed with VMWare

If you use VMWare Fusion and decide to try Windows Server 2003 R2 Enterprise Ed trial software, it is not as easy as the two-step method described here: http://www.vmware.com/landing_pages/fusion-trial-vms.html

1) You do have to download the 3 files. That will take some time.

2) After that you need to import it twice. The page above only mentions importing the file once. You select the EXE and then click on the new Import and select the file again. If you have 3 uncorrupted files, it should finally import the virtual machine (VM).

3) If you start the VM, you will have to watch Windows 2003 restart.

4) When it restarts you will be asked for the password for the Administrator. The password is "Evaluation1". Supposedly it is in a readme.txt in one of the three files downloaded, but on a Mac you can't uncompress the files, so how do you know? I googled it and found this page: http://www.techtalkz.com/windows-server-2003/41313-2k3server-vhd-trial-p...

Hudson goes to the cloud

Hudson CI is a great tool. Now the people at CloudBees have created a cloud-based solution. As of 11/09/2010 it is in beta and is free. See http://www.cloudbees.com/dev.cb for more details.

MySQL tips

Here is how to create a MySQL database with out having to remember the syntax:

MYSQL=`which mysql`


if [ $# -ne $EXPECTED_ARGS ]
echo "Usage: $0 dbname dbuser dbpass"
$MYSQL -uroot -p -e "$SQL"

Just put that into a file, change the permissions and you should be able to create a user and database. You might have to change the "-uroot" if you are on a shared host.

What does 3PAR do? Why is HP taking it over

As they wait for these virtualization industry growing pains to subside, Mercury and other companies continue to pine for a utility future. "For Mercury to consider storage a utility, we'd have to have an environment that is fully integrated between the operating system, the file system and the block level. That way, when an application needs more storage, the virtualized environment would automatically increase the resources and send a message back to the server," Kreisa says. "That's the endgame, and it's still a ways out."

from: http://www.networkworld.com/supp/2008/ndc3/051908-storage-virtualization... is the conclusion of a good article on what "Utility storage" the main product that 3PAR sells.

How to develop for Drupal

A new developer often find setup issues starting Drupal development. I'm trying to make it easier for people.


Overview: (click read more)

  1. Install Mysql, Apache, PHP. Versions should be MySQL 5.x, Apache 2.x, and PHP 5.x. This is harder than it should be. One OK solution is to install XAMPP on Windows. MacPorts has a nice system to install everything one needs.
    1. Often, you will find issues with PHP modules not being installed. One should learn how to add PHP modules in Windows and Unix.
    2. MySQL connection issues through Apache will also be a configuration issue.

Jar listing utility--Java archive file tool. Handling import errors easily in 4 steps.

Here is a quick example on how to get a database of what is contained in jars:
1 of 4) Create a file containing:
declare -a jarclass
find $jarfolder -name "*.jar" > $jarlist
for jarfile in `cat $jarlist`;
jarname=`basename $jarfile`;
jarfolder=`dirname $jarfile`;

jarclass=( $( jar -tvf $jarfile | awk '{ print $8 }' ) )
for aclass in "${jarclass[@]}"
echo $jarname $jarfolder $aclass;

2 of 4) Edit top 2 lines if needed/wanted.

3 of 4) Run the script and capture the output. You will get output like this:
maven-core-2.0.6-uber.jar /usr/share/maven/lib org/apache/maven/wagon/events/SessionEvent.class
maven-core-2.0.6-uber.jar /usr/share/maven/lib org/apache/maven/wagon/events/TransferEventSupport.class
maven-core-2.0.6-uber.jar /usr/share/maven/lib org/apache/maven/wagon/events/SessionEventSupport.class
maven-core-2.0.6-uber.jar /usr/share/maven/lib org/apache/maven/wagon/resource/Resource.class
maven-core-2.0.6-uber.jar /usr/share/maven/lib org/apache/maven/wagon/Wagon$1.class
maven-core-2.0.6-uber.jar /usr/share/maven/lib org/apache/maven/wagon/Wagon.class

Note: The list has 3 fields: Jar file name, Jar path, Class name.

Pete Hecht's resume on Google Docs

My resume is on google docs. If you need a word or other format, please contact me.


Getting newlines

defaults domains | sed 's/, /\'$'\n/g'

Will change all ", " to a real new line. Notice the use of a single quote.

Microsoft Office 2008 options

While open office is the way to go, or neooffice for the Mac. Microsoft 2008 Office users should look at: http://www.maclife.com/article/tip_day/office_2008_filecompatibility_tro...

That might save your form data.

Syndicate content