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:

See attachment at the bottom for sample code that fails in different versions of PHP 5.2.x

Today a customer told me that his pages disappeared on his Drupal site.

I looked into it and after a few hours determined that a module was the cause. Then I looked in the module and the only part I could see that could possibly be wrong was the preg_replace_callback() call.

So I got the input data from one of my customer pages and run the PCRE against it in an interactive version of PHP. That gave me the same result: nothing.

The expression started with (?:<p.*?>)?\[ and it used the /s ...

When you use a PostgreSQL database, it gets vacuumed every night (by default on most systems, verify on yours, it may not be the case...) This is a quite simple process to make sure that the database remains fast. And it works great, also. You can have millions of entries and it remains very fast (they have real good algorithms to auto-generate index files as required by your repetitive queries.)

The problem is that tables are being grown for 24h and then they get cleaned up. They can then grow again for 24h. If you don't clean up, the tables continue to grow, fast. Up to the point where ...

Hmmm... Okay... so Facebook has a latency, but ping.fm does not seem to take anything in account!?

I'm wondering whether ping.fm checks the PTR (whatever that is, hey?!) and if incorrect, refuses to forward the post. That would make sense since the PTR is 99% of the time wrong when spammers send emails.

Well! Today it worked 8-) After more than 7 tests because I did not always increment that number, but still. That's good. I'm moving forward. More soon! 


Inserting:

This is the title of your node: [Welcome to The Linux Page].

I actually remembered that ping.fm would do what I wanted to do and even better than the couple of things I tested before. It will broadcast everything everywhere. In a way, a bit scary!

There are 45 systems as of today (Jul 11, 2009) where your posts will automatically be posted.

And if you want to know, you will need a user key for everything to work. When logged in your ping.fm account, go to http://ping.fm/key

You key is a long string of letters and digits (for those in the known, it is called an md5sum)

Just got that message today:

[18:06:04] Scan Alert: WINDOWS REQUIRES IMMEDIATE ATTENTION
=============================

ATTENTION ! Security Center has detected
malware on your computer !

Affected Software:

Microsoft Windows Vista
Microsoft Windows XP
Microsoft Windows 2000
Microsoft Windows Server 2003

Impact of Vulnerability: Remote Code Execution / Virus Infection /
Unexpected shutdowns

Recommendation: Users running vulnerable version should install a repair
utility immediately

Your system IS affected, download the patch from the address below !
Failure to do so ...

Today I installed a Joomla site because I have a contract to do some development in Joomla.

So... I started, looks real nice and stuff, clicked next, next and got and error. It tells me that the configuration.php file is not writable and that I'll have to copy and paste once I'm finished or make it writable. Well... I thus copy configure.php-dist as configure.php and try again.

That makes it fail a little later with the following error:

Playing around with facebook for a couple weeks now and I bumped into a new one!

Yep! There is a limit to the number of friends you can have on Facebook... It is 5,000±10.

This explains why I have found several people with multiple accounts. That's the way to circumvent the limit. With 3 accounts, you can get 15,000 people in your circle.

I was wondering whether I could twitter without having to add my posts to twitter each time...

That works, of course, but it is time consuming.

The website I'm using runs on Drupal and it includes a Twitter module. And that module will automatically twit my posts titles to twitter. There you go!

This message is a test to see whether that works...

Today I wanted to copy a column from one table to another. One way is to go through the table and update the items one by one. The other way is to use the UPDATE order a copy the data as required.

The UPDATE command does NOT support such a feature by default and thus each database has its own syntax when it comes to how to make that work.

PostgreSQL uses an extra FROM between the SET and WHERE orders.

[toc hide:1]

Today, I finally registered with Twitter. I'll be looking into a way to connect that to my blogs so each time I blog, I get a tweat eliminating the need for me to actually tweat for real.

Okay, that's fine, but guess what... they want me to verify my email address and it does not work.

[toc hide:1]

Thank you for visiting my website.