The Linux Page

Saving a .dot file as a template for MS Office

To avoid recreating the same styles and title, summary pages over and over again one wants to create a template file. These are called <name>.dot where dot means document template.

To create a .dot just create a regular .doc file and then when saving it, change the extension to .dot. Nothing complicated here.

Now, if you are with a large company, the template file would be saved in a folder where Microsoft Office can find it automatically so when you say New you can then choose your template, it has to be placed here:

    C:\Users\<name>\AppData\Roaming\Microsoft\Templates

The application was unable to start correctly (0xC0150002). Click OK to close the application.

On MS-Windows, you get really strange errors and at times some of those errors are difficult to fix.

Sams Teach Yourself C++The error 0xC0150002 means that a DLL could not be loaded and thus the software could not get started since a piece of it was missing. The only solution is to "close the application" (since it wasn't really started, closing it sounds a bit funny here.)

There are several ways to find out about the problem. In Visual Studio, the output should tell you what is happening and that a library could not be loaded. However, many times, low level libraries will not be displayed in the ...

How to recompile a package on Ubuntu and install the new version.

I have a problem with a package that doesn't exactly do what I need it to do so I wanted to recompile it.

Here are the steps to take to get the source, modify it, recompile the new version, and finally install that new version.

WARNING

Before you start, make sure that you make a copy of all the current settings. The installation step is not unlikely going to overwrite any existing changes.

So... let's assume that the package was well done and thus that the author properly tested that all the necessary build development tools are specified on the corresponding line in the spec file

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 ...