The Linux Page

Where are the network connections on Windows 7?! (for static IP addresses)

I don't know about you, but on my end I like to use static IP addresses on my Intranet.

But under Windows Vista and Windows 7, Microsoft have done an incredibly good job at hiding the network connections to make sure you don't temper with them.

The path is as follow:

        Control Panel\Network and Internet\Network Connections

Once you are in there, you can use the right mouse button to get to the usual MS-Windows settings (The one where you can click on IPv6 or IPv4 and setup the IP to static.)

Error: this.table.tBodies is undefined

Today I got this error which surprised me for a little while. I was pretty sure I had it before, but could not find a reference, so I decided to put it here for sure this time!

Error: this.table.tBodies is undefined
Source File: http://linux.m2osw.com/sites/all/modules/jquery_update/replace/tabledrag...
Line: 516

Whenever I create a table in Drupal and the elements can be sorted, I like to use the drupal_add_tabledrag() feature. This function first parameter is the name of the table to drag. I was totally sure I had it right but it just kept giving me that error, over and over again

AddThis is down, how to prevent the slow download of your pages?

Today AddThis is down, big time! For hours...

So to make my websites load faster (although I did not delete all the caches, which is a problem too?!) I removed the functionality. If you have Drupal, there is what I have done to leave the settings the same but still hide the AddThis button and thus get all the pages of all my websites to load fast.

First we remove the link by returning an empty array:

/**
 * Implementation of hook_link(). 
 */
function addthis_link($type, $node=NULL, $teaser = FALSE) {
return array(); // immediate return
  $links = array();

  if ($type ===  ...

ASIX Electronics Corp. AX88178 -- not working with default module

My Story

First of all, if I got this device it is because my two integrated NIC Card on my P55A-UD4P died. One of them does not even light up. Completely dead! When connected to my modem, the light on the modem doesn't come up either. Weird! That's the first NIC that broke on me like this. I plugged my cable in the other NIC, just in case, and the light came up. Hurra? Not really. Ain't working either. It connects, but when trying to send a ping, it goes really fast meaning that the hardware doesn't know what's happening and is most certainly generating a flood of interrupts. Just in

[info] Subsequent (No.7) HTTPS request received for child 0 (server secure.m2osw.com:443)

The other day I was looking for an error in Apache error logs and I noticed an error that was repeated over and over again:

[info] Initial (No.1) HTTPS request received for child 5 (server secure.m2osw.com:443)
[info] Initial (No.1) HTTPS request received for child 0 (server secure.m2osw.com:443)
[info] Initial (No.1) HTTPS request received for child 7 (server secure.m2osw.com:443)
[info] Initial (No.1) HTTPS request received for child 2 (server secure.m2osw.com:443)
[info] Initial (No.1) HTTPS request received for child 4 (server secure.m2osw.com:443)

Notice the pattern? Only one

A button on the edge (HTML)

Today I played around with my feedback button (a button that sticks on the edges.)

The one I had worked on manually was fixed on the edge just fine, even in Internet Explorer.

Today, I felt like testing a few more things and thus tested with some HTML code. The code was very simple, a few paragraphs, one div with the feedback button, and a few more paragraphs. The style for the feedback button was in the <style> block in the header.

It worked just find in SeaMonkey and I found something of interest! (see below) but the position of the feedback button was fixed.

  ...
  position:

Apache error: pcfg_openfile: unable to check htaccess file, ensure it is readable

Today I got an error about an .htaccess file that Apache2 could not load.

   pcfg_openfile: unable to check htaccess file, ensure it is readable

I looked like 10 times in that folder to make sure the .htaccess was fine, which meant looking that there wasn't an actual .htaccess file there!

The fact is not exactly that the file cannot be opened, it has more to do with the parent folder accessibility. Somehow Apache2 does not check the parent folder accessibility and prints the error since, indeed, it gets an error other than the usual "File Not Found". (It's getting the ...

HylaFAX Status Codes (STATUSCODE numbers explained!)

Strange thing! I could not find the list of HylaFAX status codes on the net. They are listed in the faxd/STATUS.txt file for convenience, but I think they ought to be findable by Google so here they are.

Note that each time HylaFAX sends an error, the message is included. So I guess most people don't really care that much. But it can be useful to know what's what... (when you're a programmer trying to get something done for your company...)

All the codes are 3 digits, 000 meaning that everything worked just fine (best code ever!) The codes are very similar to the FTP codes and ...

tar: Record size = 8 blocks

The tar utility has changed over time and older versions would generate what is viewed as incompatible files. Although most tar utilities will still support older version (before 1988), the may generate this one warning:

   tar: Record size = 8 blocks

I tried, a couple times, to create tar files and they worked just fine but I would get this warning... This is rather annoying so I looked in a way to avoid the warning. Why do you think we get it?

The answer is in the newest versions of POSIX the block size of a tar file was decided to be 10Kb. Internally, the block sizes are still 512

POSTing multiple files over HTTPS with PHP curl

I've been trying to send a POST to Apache 2.x using cURL. In itself, that's very easy to do. However, I run modsecurity and when cURL sends a POST that's too large, it actually decides to break the transfer down using an Expect: 100-continue header. That in itself sound good.

Some people said that you could override the Expect by adding the curl option to add a header like this:

  curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));

This sounds all nice, however, it only removes the header from the request, it does not prevent the errors with modsecurity. Not only ...