Archive for the ‘General’ Category
Removing info bubble from Google Map, and keeping placemark
UPDATE: Apparently this solution does not work anymore. I did a quick search, and it seems this could be a working solution.
Default behavious is to show the information bubble when embedding a Google Map in your web page. Some times this is not a desired behaviour, and you only want to show the placemark. After a little digging this Google Groups thread provided a very simple solution to the problem.
Add the iwloc-parameter with value near. Here’s an example:
View Larger Map
View Larger Map
So the string to insert is
&iwloc=near
somewhere in between. Take a look at my source code if you’re unsure.
Notes on setting up Arch Linux in VirtualBox with Awesome wm
For several reasons I wanted to have a GNU/Linux system with root access available. In a bright moment I suddenly realized that the simplest way of achieving this was to have a virtual installation on my Macbook.
I chose VirtualBox from Sun as virtualization environment as this is free software (GPL) and Arch Linux as the distribution because I’ve quite some experience with this distribution and it’s easy to create rather minimalistic installs with it.
This walkthrough does not explain how to install Arch Linux in Virtual Box, as this can be considered trivial. The focus is on setting up Arch Linux with the awesome window manager, correct screen resolution and getting access to shared directories in Mac OS.
After installing Arch Linux the first step is to install Xorg and Awesome together with the hwd tool which is used for configuration of Xorg.
pacman -Syu pacman -S xorg awesome hwd
Then the VirtualBox Guest Additions must be installed in order to be able to set the correct screen resolution for Xorg. In the VirtualBox menu go to Devices → Install Guest Additions
Perform the following commands as root/sudo:
mount /media/cdrom bash /media/cdrom/VBoxLinuxAdditions.run
Add 98vboxadd-xclient to .xinitrc for your user and add modules to rc.conf according to Arch Linux Wiki VirtualBox Guide. Then reboot the Arch virtual machine.
In order to configure Xorg an xorg.conf file must be created:
hwd -xaEdit xorg.conf and set the video driver to vboxvideo and add the resolution 1280×800 to the 16 color depth and remove the other resolutions. Remove all other color depths subsections.
If you want to start Xorg and Awesome and automatically log in at boot, follow the description in the Arch Wiki – Start X at boot and add exec awesome to .xinitrc.
File sharing is easy to set up. First set up the desired folder for sharing by going to Devices → Shared Folders in the VirtualBox menu.
Create the folder where you want to mount the share in your Arch filesystem. This name must not be the same as the share name. Now you can mount the share with the following command (as root or sudo):
mount -t vboxsf NAME_OF_THE_SHARE /home/YOUR_USER/MOUNTPOINT
Repairing corrupted FAT32 drive
By using fsck as described below I managed to restore one of my hard drives.
$ fsck.msdos -r -v -V /dev/hda2
According to the man file, the options have the following effects:
| -r | Interactively repair the file system. The user is asked for advice whenever there is more than one approach to fix an inconsistency. |
| -v | Verbose mode. Generates slightly more output. |
| -V | Perform a verification pass. The file system check is repeated after the first run. The second pass should never report any fixable errors. It may take considerably longer than the first pass, because the first pass may have generated long list of modifications that have to be scanned for each disk read. |
Reference: Fedora Mailing List.