The Linux Page

Help other users realize that everything is possible, especially avoiding Windows for their own personal use.

Welcome to The Linux Page


Fox Trot by Bill Amend. Click to enlarge.
Click to enlarge

This site is a collection of my own work with Linux. Certain things are easy, others take time to decipher and if I ever need to repeat the work (which usually happens!), then I need to remember everything by memory or... have a site with all the steps taken and to take again.

The following are my most recent posts:

Today I decided to write a document for a customer about some work I have done for them.

I thought it would be a good idea to use Microsoft Word on the system I'm using for the development. It is from Office 2007.

Not too surprised that things look all different since I used MS-Access for a while now and it has this same new "weird" look.

What I ran into, however, is a wall when it came to creating styles with nested lists. You know, a usual document with points:

1.
1.1
1.2
1.2.1
1.2.2
2.
2.1
2.2
etc.

And I could create lists, but not nested lists. In other ...

White Screen of Death

Using Drupal happily and all of a sudden... nothing! A completely blank page, often called the White Screen of Death or WSOD.

Quite annoying situation, I have to say, but well... it happens.

There are several (many?) pages about the White Screen of Death (in reference to the Blue Screen of Death by our friend Microsoft.)

[toc hide:1]

I thought it was interesting to see that some people actually tested the length of URLs in different browsers. You have to know that the size of a URL in the location bar may be differently limited than the length of the URLs you can go to with the browser (i.e. the URL in an anchor may need to be shorter! Or could be longer and still work.)

Note: These are Browsers limits in 2006.

This is a quick note so I can find the command I need to use to list open files.

My search will work this time.

lsof stands exactly for "LiSt Open Files"

That gives you a list of all the files opened by your system, process by process. It can be useful to know if you are developing a program or if you are limited in the number of files opened at once.

I spent hours today to find this one module: Rules.

In most cases, you can set up a rule in Drupal with their Actions and Triggers and it will work just fine. The fact is that these options are extremely limited if you want any kind of condition on the Rule before triggering the action.

The idea is very simple:

1. Something happens

2. Check whether it is of interest1

3. Trigger the action

I needed that functionality for a couple of websites because I wanted to get an event whenever someone created a new page, but not for any type of ...

  • 1. This part is what is missing in Drupal Core v6.x

Since I installed Samba on my Linux box, I get many errors. From root kit checkers that tell me the port is deadly infected (no kinding!) to PAM that every day would tell me that the /lib/security/pam_smbpass.so module could not be found.

Oh! Yeah! I actually had to install that module. Not too obvious from the error though. I thought it would be automatic.

Every time a Windows box would connect, I'd get this entry:

May 17 07:05:01 hostname CRON[14871]: PAM unable to dlopen(/lib/security/pam_smbpass.so)
May 17 07:05:01 hostname CRON[14871]: PAM [error: /lib/security/pam_smbpass.so:

MS-Access defines many different types, including a newer one called DECIMAL.

You are supposed to be able to create tables with the DECIMAL type. So a statement such as:

   CREATE TABLE MyTbl (decimal_test DECIMAL(20, 5))

should work. Right?

I have been using CurrentDb.Execute for a while and that statement was causing the Execute function to return an error saying that the field definition was erronous (Syntax error in field definition, to be exact).

The trick is very simple!

I have been writing C/C++ code for... well... over 10 years.

I'm always surprised when I use another language and some basic rules are completely different.

History

Today I finally noticed that the W3C validator was open source (some people are real slow!)

This means I can get the source and run that validator on my system! Cool!

Under Debian you can just download the package with:

   apt-get install w3c-markup-validator

The will properly install the module, however, it won't be recognized just as is. I had to do several things to get things to mostly work...

Domain

If you want to use a specific domain name, you will need to edit your bind configuration file and add it.

Apache

Now, Apache is seemingly setup properly to ...

With Drupal, it is possible to have many sites defined in many different ways.

These are the things you can have in your URL that Drupal will understand and use to configure your site. The configuration file is called settings.php and will reside in a folder of which the name is determined using the URL used to access the site.

1. Fully qualified domain name

2. Port

3. Path withing the website

Sites are expected to be found under the 'sites' folder found in the same directory as the index.php file.

Thank you for visiting my website.