Archive for December, 2011

Reset footnote counter in LaTeX

December 28, 2011 1 comment

In our paper we have 3 authors and our LaTeX style uses footnotes to show their affiliations. Then, numbering footnotes in the text starts with 4. How to reset it back to 1?

After the list of authors, add this line:


More info here.

Plotting with

December 27, 2011 Leave a comment

Try the following with

sqrt(cos(x))*cos(200 x)+sqrt(abs(x))-.07)*(4-x*x)^0.01, sqrt(9-x^2),-sqrt(9-x^2) from -4.5 to 4.5

More info here.

Thanks Füli for the tip.

Categories: google Tags: ,

Windows 7 Loader by DAZ

December 24, 2011 Leave a comment

Current release information is here.

Categories: windows Tags: ,

Wired network speed is very slow

December 15, 2011 6 comments

At my new place I got a new machine. I installed Windows 7 and Ubuntu 11.10 on it. Under Windows everything was OK. However, under Ubuntu my network connection was awfully slow. I could update my machine with 80 KB/sec. Downloading Eclipse took 30 minutes.

It was clear that there was a problem with the system settings or there was a bug in the network driver. It turned out it was the latest.

Find out the exact type of the network card. I knew it was Realtek:

$ lspci | grep Realtek
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)

After doing some research, I found the solution here: This article states that the driver must be patched for the 3.0 kernel. As I noticed, the current version of the driver works fine with the 3.0 kernel series.

Steps to follow:

  • Download the Linux driver from here.
  • Extract it somewhere.
  • sudo ./

That’s all. If you upgrade your kernel, you might have to repeat these steps.

The Realtek r8168B network card does not work out of the box in Redhat, Centos, Fedora, or Ubuntu: instead of loading the r8168 driver, modprobe loads the r8169 driver, which is broken as can be seen with ifconfig which shows large amounts of dropped packets.

Disable IPv6
First I thought that the network was slow because of IPv6. I tried to disable it but it didn’t change anything. Here are some links though that could be useful once:


Extract images from PDF

December 14, 2011 Leave a comment
pdfimages -j foo.pdf  bar

Extract all images from foo.pdf, save them in JPG format (-j), and rename them to bar-001.jpg, bar-002.jpg, etc.

This tip is from here.

Categories: Uncategorized Tags: ,

YesScript: disable Javascript on a given site

December 9, 2011 Leave a comment

Today I visited a site and it blew the following message in my face: “if you want to use this site, disable AdBlock”. What da… ?

Install YesScript and put the given site on blacklist. From now on Javascript is disabled on that site.


December 5, 2011 4 comments

The following function is from the BeBook, which details the API of the BeOS operating system.

The Be Book – Classes And Methods – The Kernel Kit / System Information:

int32 is_computer_on();

“Returns 1 if the computer is on. If the computer isn’t on, the value returned by this function is undefined.”

Found here in a comment.

Categories: fun Tags: , ,

No one can stop The Pirate Bay

December 1, 2011 Leave a comment

Firefox: If you’re living in a location where local DNS and IP blocks keep you from visiting certain websites, The Pirate Bay Dancing is an extension that undoes that automatically by routing you through random proxy servers.

More info here.

Proxy list
I looked at the source of the add-on and it takes the list of proxy servers from this source:

So if you need a list of working free proxy servers…

Categories: firefox Tags: , , ,