The Linux Page

Page list for Drupal

  • PAD File Module for Drupal

    Introduction

    You can find my PAD File module on Drupal.

    It is intended for any company and individual that has executable files for download but its customers and potential customers. The PAD File describes the content of such executable to the target machine (robots that spider the Internet for PAD Files).

    With the module you can create, import, update and delete PAD Files as necessary. It automatically generates the XML files and maintains them on your website without you having to do anything about it.

    It is also intended ...

  • I suppose we could talk about security all day and only barely touch the tip of the iceberg, if even more than a spec of it.

    Yet, I wanted to mention that in many instances, there are such limits to the characters you can use in a password that already the provider prevents you from creating a string password in the first place!

    So... what is it I'm talking about?

    I have one company I work with that does not support anything more than letters and digits. Not only that, they limit your password between 6 and 10 characters. Everyone knows that 6 characters is cracked very very quickly and

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

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

  • Somehow, whenever I tried PHP CLI, it would crash because of PostgreSQL. (i.e. if I use the database in PHP through Apache, no problem, but the same script run via the command line, and it crashes on exit, no matter what I do with the resource handle.)

    I was puzzled and did not really know what to do, but some people have found the solution. Now, what is really surprising is the fact that it has been around for ages and not yet fixed in the system.

    The fact is, it does not matter too much as long as there is a work around, but you need to apply it yourself...

  • Today I learned that not defining a variable in PHP would generate a notice error.

    I had been wondering, why it is that so many people in Drupal define their variable or check them with isset()? That's why. In a way it is terrible that you can use a variable that does not exist and just get NULL, on the other hand, quite often that's because you intended to use another variable... (i.e. $create instead of $created, you declare $bool in one function and use it again in another, etc.)

    This applies to objects, array indexes, and just plain variables. If you write:

  • If you don't work on creating web pages, you are probably not much aware of the creativeness necessary to make them work in Internet Explorer 6.0 and older.

    Today, I had to make PNG images work in IE 6.0 since one of my customers still has that version of the browser and his website has several PNG images that require to have a working alpha channel.

    [toc hidden:1]
  • As I was moving my Drupal 6.x websites from an old server to a new one, I decided to make use of the newest PostgreSQL database system because over time I've notice quite a few things that got fixed and thus it is a lot better! (It is not as exciting as moving from 7.4 to 8.0 way back then, but still!)

    Doing so, my Drupal site started showing WSOD (White Screens Of Death). Looking at the errors in my apache2 logs, I noticed that the error was in link with the cache. Looking closer, I could see that the cache (one of the only table doing so) makes use of the %b flag which means blob. It ...

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

  • System tables and how to edit them is just not defined in the SQL language, unfortunately. So different database systems have different solutions to handle their table declarations. PostgreSQL is no different.

    In most cases, MySQL uses some special instruction to update system information. In PostgreSQL, you have internal tables that the administrator can access and tweak as required.

    [toc hidden:1]
Syndicate content

SMS From Me Logo

SMS From Me

To automatically start one on one conversations with your online leads.

     

   

Terms of Site Index

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

  • LibreOffice
  • Mozilla
  • Option Group
  • ping.fm
  • ps

    Unix command line tool used to list processes currently running. On some older Unices, it would also show zombies (processes that have exited but with parents who have not yet acknoledged their death.)