blogs

A good blog on Visual Studio

http://www.develop-one.net/blog/default.aspx is an interesting blog. I first posted the "hug a developer" video, but now I want to share the rest

Fixing Ubuntu install from 10.04 -> 10.10 -> 11.0

If faced with a grub prompt, I did these commands to fix it:

set root=(hd0,1)
linux /vmlinuz root=/dev/sda1 ro
initrd /initrd.img
boot

after reboot:

sudo grub-install /dev/sda
sudo update-grub

Found in a comment here: http://aaron-kelley.net/blog/2011/04/grub-prompt-after-upgrade-to-ubuntu...

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/

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:
Step
1 of 4) Create a file containing:
#!/bin/bash
jarfolder=/usr/share
jarlist=/tmp/jarlist.txt
declare -a jarclass
find $jarfolder -name "*.jar" > $jarlist
for jarfile in `cat $jarlist`;
do
jarname=`basename $jarfile`;
jarfolder=`dirname $jarfile`;

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

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.

Sourforge links of the day

http://asymptote.sourceforge.net/index.html appears to be like graphviz.

http://homepage.mac.com/krmathis/ is where one can get a mac command line version on 7z.exe

new version of GnuWIn32 as of 10/18/08

http://gnuwin32.sourceforge.net/ I want to try out the new wget and getopts commands!

Hudson main page

Where to get hudson: https://hudson.dev.java.net/
If you have wget then you can do this:
/usr/local/bin/wget -N --no-check-certificate http://hudson.gotdns.com/latest/hudson.war

http://hudson.jboss.org/hudson/ is a real live Hudson site used by jboss.org

http://fisheye4.atlassian.com/browse/~raw,r=12517/hudson/trunk/hudson/pl... is not working for me because my cvs does not parse the huge string that I am using.

I logged into dev.java.net and review this program. It uses stringBuilder in a wasteful way. in arrayToString it creates a new stringBuilder for each line of the modules list. It should use append instead.

Also, since many CVS clients are old, the servers are old, it is prone to failure in many ways. It should not put the whole module list on one line. It should run cvs rtag for each module individually. Still, it still just use one stringBuilder object.

Syndicate content