Thursday, December 01, 2011

Show Internet Explorer auto-detected proxy settings

How to view Internet Explorer auto-detected proxy settings?
Was at a customer site and needed to update eclipse, maven, etc.  And the client just said use "auto-detected proxy" in IE, firefox, etc.  To find out the proxy used just open a browser and go to the url

http://wpad/wpad.dat

download the file and the contents should show you the proxy being used.

Friday, April 15, 2011

Ubuntu 10.04 on dell inspiron 8100

Now installing ubuntu 10.04 after 9 became unusable.

1. Once again had to use floppy to then boot to usb.
2. Tried installing with 10.10 but kept coming up with a weird black and white lined screen. Looked through forums and tried different things but eventually gave up.
3. Went back to installing 9.10 from usb which worked flawlessly. Probably because "nomodeset" is by default in the grub file
4. Used upgrade manager to then upgrade installation to 10.04LTS. This took all night.
5. Changed the /etc/default/grub

Code:
sudo gedit /etc/default/grub
add nomodeset as shown below in bold

Quote:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
GRUB_CMDLINE_LINUX=""

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_LINUX_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
save the file and type

Code:
sudo update-grub
You should then be able to boot normally without having to edit grub.

6. Installed the nvidia driver
had black screen of death on reboot so then did this:

reboot machine with shift button down to get grub.

run in recovery mode to get a console

run the nvidia-xconfig program:

cd /usr/lib/nvidia-96/bin/
sudo ./nvidia-xconfig

Modify the xorg.conf file, and replace the driver name nvidia with nv.

sudo vi /etc/X11/xorg.conf

Replace:

Driver         "nvidia"

With:

Driver         "nv"
Then just try and start the Xserver again:
startx

Still can't get 1600x1200 resolution but working on it.

7. Now moving on to Broadcom wirless driver
Just installed it activated it and it worked. Yeah!

Wednesday, February 10, 2010

ubuntu 9.10 wireless on old linksys pcmcia card

install broadcom drivers connect computer to internet with cable
$sudo apt-get install b43-ftcutter
then follow these instructions

ubuntu 9.10 on dell inspiron 8100

Bios doesn't accept boot from usb. The cdrom laser is fried but the dvd laser works. Yup read about this that the two are different. Floppy drive works but barely.

After searching for a few days here's the easiest way that I found to do this.
Use plop boot manager
  • write this to a floppy disk as an image using rawrite
  • boot to floppy and once plop loaks choose usb WITHOUT the usb drive in. It will say that it hasn't found anything in the usb slot.
  • insert the usb drive with ubuntu iso on it hit esc and choose boot from usb again and then it should work. At least it did for me.

Monday, September 01, 2008

Using freeproxy

Just got a new eee pc 901 and needed to hook up to the company network without declaring the computer. Just needed internet access. I'm using freeproxy http://www.handcraftedsoftware.org, a USB to ethernet gadget which costs about $10, and a foot long ethernet cable.

1. Install freeproxy 3.9
2. configure freeproxy like this


3. Create a new Network connection using the USB to Ethernet adapter on the proxy machine and configure it like this



4. On the client machine create a new LAN connection using
  • static address 192.168.0.1 (for example)
  • subnet mask 255.255.255.0
  • getway 192.168.0.100
5. Change your navigator to use a proxy on 192.168.0.100 port 8080

Monday, May 19, 2008

Axis and commons-logging problem

Had a weird bug. On our windows development machines our integration tests passed but on our Unix cruisecontrol machine the tests didn't pass. Both were run using maven command lines and fresh checkouts. Here's the stacktrace:

Caused by: org.apache.commons.discovery.DiscoveryException?: No implementation defined for org.apache.commons.logging.LogFactory?

at org.apache.commons.discovery.tools.DiscoverClass?.find(DiscoverClass?.java:404) at org.apache.commons.discovery.tools.DiscoverClass?.newInstance(DiscoverClass?.java:579) at org.apache.commons.discovery.tools.DiscoverSingleton?.find(DiscoverSingleton?.java:418) at org.apache.commons.discovery.tools.DiscoverSingleton?.find(DiscoverSingleton?.java:378) at org.apache.axis.components.logger.LogFactory?$1.run(LogFactory?.java:45) at java.security.AccessController?.doPrivileged(Native Method) at org.apache.axis.components.logger.LogFactory?.getLogFactory(LogFactory?.java:41) at org.apache.axis.components.logger.LogFactory?.(LogFactory?.java:33)


After searching on the web which didn't have much I finally figured out that in commons-logging 1.1.1 there is no longer org.apache.commons.logging.impl.Log4jFactory. I don't know why. But in the version 1.0.4 it exists. For some reason even though we had the Maven dependancy for Axis 1.3 the maven generated classpath had commons-logging 1.1.1. Don't ask me why. The strange thing is that I guess the surefire classloader or some classloader is different under windows and unix.

Tuesday, April 29, 2008

recursivly delete svn directories

How to recursively delete .svn directories in *nix
$ find . -name .svn -exec rm -rf {} \;

Wednesday, October 31, 2007

accent problem in Rails and MySQL

I was getting the those diamonds with the face for every character with an accent. Had to just tell the MySQL to use UTF-8 encoding.

In database.yml

development:
adapter: mysql
database: adatabase
encoding: utf8
username: user
password: password
host: localhost