Syndicate content

time

Moving a website from one server to another

Moving a website to a new server

Now and again, you have to move a website from one server to another.

There are good and bad things about that, the main problem is with dynamic websites. Why is that? Simple: a dynamic website expects to access a database and if you hit the wrong server, that will go bad.

What's the best solution?

1. Install your website on the new server, make sure it loads okay (you may want to use a test sub-domain name to make sure, although that's not a rock solid proof since some things may use a fully qualified URL)

2. Change the IP address in your ...

Changes to a Drupal theme & ThemeKey

I use Drupal for most of my sites. I use it in many different ways and it has been working real good for me.

On one of the sites, I use the ThemeKey module to select a different theme once you are logged in. This means, when I want to switch themes, that one theme selected for logged in users sticks, whether you disable it or not, it remains selected by the system.

And?

Well... one thing sticks from themes, their .info file. You just cannot refresh the cache properly unless you disable the theme, then re-enable it. (By the way, when disabled, don't go to the Blocks administration screen ...

My title, test #7

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: [].

Twittering without being in Twitter!

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

Twitter and emails

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]

reCATPCHA for Drupal

It took me a little time, but I finally search and found the reCAPTCHA.

The default CAPTCHA for Drupal looks awful. It is called Image and creates very ugly extremly hard to read images. So I always wanted to switch to reCAPTCHA that is not perfect but looks a lot better and has audio availbale.

So today I found it, it is here: http://drupal.org/project/recaptcha

Note that you still need the CAPTCHA system, it just adds one more option which is reCAPTCHA instead of Image. (at leat, that the way I use it.)

List Open Files

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.

wput, a really bad tool?

The other day, I setup a small script to send file on an FTP. That was a long time since I had done anything like that and was not really thrilled, but I'm working for a client.

The FTP worked pretty well. The upload was going for a while. According to wput, if the connection is lost, it automatically retries and continues the transfer. It got stuck 3 times on me. For hours. No retry. Zilch.

Now, I updated my files on my end and then started the transfer again. Had to wait forever, although that is not the direct fault of wput, when it gets stuck mid-way, it's bad.

MO Paragraph trimmer filter test page

This page has empty paragraphs at the top (before this line), at the bottom and in between each paragraphs. In a way, this is a weird module!

It use the MO Paragraph trimmer filter1, written in PHP for Drupal 6.x, to remove all of those empty paragraphs. Sadly, there isn't a good way for you to check the page source, but you can test by posting a comment (I think...)

The idea ...

  • 1. Available on the Made to Order Software website.

MS-Access: INSERT INTO syntax error

Today I was creating a report and created a table with a column named 'Group'. It looked like it worked just fine so I moved on with it.

Then, at the point I wanted to insert data with a simple INSERT INTO ... statement, it broke. The statement would generate a syntax error. Yes. The simple answer is that GROUP is viewed as a keyword and thus when used as a field name it needs to be escaped (i.e. written between backward quotes: `...`). Not liking the need to escape a field name each time I use it, I just renamed the field which is even better.

Syndicate content Syndicate content

     

Terms of Site Index

Find the page/content you are looking for with our index.

  • access
  • delete
  • event
  • field
  • Qt

    Qt is a multi-platform development system for servers, command line tools, and graphical applications (GUI). It allows you to create objects that will work on many operating systems with very minimal if any changes.