Friday, July 26, 2013

How to disable Java Updater Tray Icon in Windows

If you ask Java to disable the tray icon, sometimes it won't respect your wishes.  The issue is that the Administrator needs to disable it.  This what you do:

1) Start the command prompt as the Administrator
2) cd \Program Files\Java\jre6\bin
3) javacpl
4) Go to the Advanced Tab
5) Expand Miscellaneous
6) Uncheck the Place Java icon in system tracy
7) Right click the Java icon, and click on Cancel
8) Under Advanced | JRE Auto-Download, switch it to Never Auto-Download

Thursday, July 4, 2013

Why does Windows 7 reboot itself every 2 minutes?

I ran into this issue: I had installed the 320.49-desktop-win8-win7-winvista-64bit-english-whql.exe NVidia GeForce driver.  This forced me to install some type of .NET 4 (extra?) runtime environment.  The next time I booted my computer, Windows 7 would automatically reboot itself after about 2-3 minutes.  If I were in safe mode, it didn't reboot.  This is how I solved it:

  1. Booted Windows 7 in safe mode (press F8 when booting)
  2. Installed an old NVidia driver, such as 314.07-desktop-win8-win7-winvista-64bit-english-whql.exe
  3. Reboot Windows in normal mode
  4. Now you have to be real quick before your machine reboots: uninstall the .NET 4 runtime environment that had just been installed.  The uninstaller will ask you to reboot your machine.  Reboot it into normal mode.
  5. If all goes well, your system will be back to normal!

You can also try reading the logs in the Event Viewer for some hints.

Similar symptom, different solution: http://social.technet.microsoft.com/Forums/windows/en-US/d7379f4d-9337-4800-9c8b-582fd0c439a7/windows-7-pro-keep-restarting-on-itself-will-not-last-longer-than-2-minutes-but-safemode-works

Ditto: http://www.tomshardware.com/answers/id-1672386/computer-rebooting-pretty-stumped.html

Wednesday, July 3, 2013

How to get viewvc working with Apache httpd and Fedora and subversion (svn)


  1. Get subversion working with httpd first. (See http://muddyazian.blogspot.com/2013/05/how-to-start-subversion-repository-over.html)
  2. yum install viewvc viewvc-httpd
  3. Edit /etc/viewvc/viewvc.conf and modify the svn_roots and root_parents options.
  4. Edit /etc/httpd/conf/httpd.conf and add in the following:

    <Directory /usr/lib/python2.7/site-packages/viewvc/bin/mod_python>
      Order allow,deny
      Allow from all
      AuthType Basic
      AuthName "Subversion repositories"
      AuthUserFile /etc/svn-auth-users
      Require valid-user
    </Directory>

    <Directory /usr/share/viewvc/templates/docroot>
      Order allow,deny
      Allow from all
    </Directory>

    ...

    Alias /viewvc-static "/usr/share/viewvc/templates/docroot/images"

    ...

    ScriptAlias /viewvc /usr/lib/python2.7/site-packages/viewvc/bin/cgi/viewvc.cgi
    ScriptAlias /query /usr/lib/python2.7/site-packages/viewvc/bin/cgi/query.cgi

  5. Restart the web server: /sbin/service httpd restart
  6. Go to http://localhost/viewvc
  7. If you haven't already done so, create the /etc/svn-auth-users file:

    htpasswd -cm /etc/svn-auth-users firstUsername
    New password:
    Re-type new password:
    Adding password for user firstUsername
You can test things out (sanity check) like this:

/usr/lib/python2.7/site-packages/viewvc/bin/standalone.py -r /path/to/svn/repository/location

Then in firefox, go to http://localhost:49152/viewvc