SomeLittleThings

From TechWiki

Contents

Google Maps

If you put too many places in your Google maps, not all locations will be visible at one time, because they are grouped (view next x-locations).

To fix this, you simply need to modify the URL:

Change the bit looking like "...&num=100&..." to any number of locations you would like to display at once.

Googlebots

Google's webmaster tools lets you subscribe to Google, i.e., gives the Googlebots an idea of your sites structure (via XML site map files).

This worked really great, until the Googlebot's started to run amok and downloaded big stuff as videos, software, large PDF's, ... like mad. Suddenly all my upload bandwidth was being sucked up by Google.

You can see a graph of the "Number of kilobytes downloaded per day" in Tools -> Set crawl rate. There is even a help page What can I do if Google is creating too high a load on my server?.

However, I just put the directories with the large files into the robots.txt for a couple of days. After removing it, everything was fine again...

As a side note, the Microsoft bot's for search.live.com had this stupid behavior from the beginning. They wouldn't stop downloading my kubuntu iso-file (CD image), which is roughly 700 megs, until I restricted them via the robots.txt file :-(

Killing Stuff

A good place to look if you want to kill stuff --- from processes to X sessions to the whole system --- is this: terminally-incoherent.com.

Installing Urban Terror

Urban Terror 4.0 is a Quake3 mod (also available as standalone ioquake3.org). Installation and stuff:

Playing

Dethro's server.

(~,°, /connect 62.2.150.68:6996)

Media Wiki Tricks

Some tricks using this wiki. Regular stuff can be found under Help:Contents.

Nowiki

The tags <nowiki> and </nowiki> escapes all markup and are an easy way to format code (you could also use <code><pre>code</pre></code>).

E.g.

 i'm an example of using <nowiki> preceded by a white space
 nothing happens:
 <math> \int_0^\infty </math>
 <bf> not bold </bf>

Colums

Using

<div style="width: x%; float:left;">

One
qwerty

 

Two
qwerty

 

Three
qwerty


 

Tables

Using

<table width="600" align="center" border=1>
<tr>
<td>

Blabla...

External Hard Disk

Use

df -hT

to find device name and see file system of external hd. Mount with

sudo mount /dev/sdc1 /mnt/myMountPoint

and unmount with

sudo umount /mnt/myMountPoint

Problems with Windows vfat systems can occur with symbolic links, permissions, etc.

cp: cannot create symbolic link `./fotoBase': Operation not permitted
chgrp: changing group of `.': Operation not permitted

Formatting External Hard Disk

If so, try formatting the (unmounted) hd to the ext3 file system:

mkfs.ext3 /dev/sdc1

Can't Mount

Error

hal-storage-removable-mount-all-options refused uid 1000

Some NTFS problem. Use

sudo mount -t ntfs-3g /dev/sdc1 /mnt/usb/ -o force

Perhaps you need

sudo apt-get install ntfs-config

Video

To capture things being displayed in the X Window System, you can use a "snapshot" tool

xvidcap

to record a MPEG video.

If you need to speed up a video, use

ffmpeg -i input.mpeg -f yuv4mpegpipe - | yuvfps -s 50:1 -r 50:1  | ffmpeg -f yuv4mpegpipe -i - -b 28800k -y output.avi

Found in the ubuntu forums.

iTunes Library on External Hard Disk

Downloading Wikipedia

Firefox

Multiple Independent Firefox Instances

To have more than one firefox instance (or profile) running at the same time, use

 firefox -no-remote -ProfileManager

and create a new profile to run in parallel to the current active firefox session.

High Load Using Firefox

Some web pages cause firefox to use a lot of CPU resources for doing nothing. This is usually due to some badly programmed flash animation in the web page.

Tools -> Add-ons -> Get Add-ons -> search for flashblock -> install

No each flash animation need to be clicked to start running...

VirtualBox

VirtualBox is a nice virtual machine. As an example, you can have Ubuntu running as a virtual machine on Vista, meaning both operating systems are running at a time. You can freeze and restart virtual machine sessions.

Guest Machine as Virtual Server

I have xubuntu as guest OS running on vists as home OS. To be able to use ubuntu's apache server, you need port forwarding for vista to pass on stuff to xubunt. Open Windos Command Prompt and enter (while guest OS is shut down):

cd C:\Program Files\Sun\xVM VirtualBox
VBoxManage setextradata MyLinux "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/HostPort" 8888
VBoxManage setextradata MyLinux "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/GuestPort" 80
VBoxManage setextradata MyLinux "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/Protocol" TCP

MyLinux is name of guest OS. 8888 is arbitrary port.

From allisterx.blogspot.com

Problem: I can't select port 80 and i don't know how to tell the router to use port 8888 for http...

Problems

Screen Resolution

Can't increase screen resolution with VirtualBox and Ubuntu. Consult:


Shared Folders

Tracked the problem back do missing module

sudo modprobe vboxsf

and can't find package

vitualbox-ose-[something or other additional modules]