The Linux Page

Pages with category Web Server

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

  • Why is my nameserver IP address not changing?

    If you have a domain that you use as a nameserver (instead of using your domain name provider name servers), then you will need to maintain the IP address of that nameserver.

    You can (and should) define your nameserver IP address in your zone. This is fairly straight forward. Simply define the ns1, ns2, ns3, etc. as a regular address and also mark them as NS entries:

    [toc hidden:1]
  • 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 worked on a site a week ago or so and checked it with IE 8 but not IE 7...

    The customer then contacted me saying that some images were "completely" off. (about 30 pixels)

    The image being off was actually centered. IE 7 and older does NOT properly reset the text-align CSS settings. So the parent setting leaks in the children instead of the chidren using the default as they should. So that one was easy, I just added a text-align: left; in the next <div> statement and got that to work right!

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

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

  • I use all sorts of tricks in order to duplicate functionality without actually duplicating PHP code.

    One of the main, easiest way under Unix is to create softlinks. First put all your code in one folder, then create a softlink to it. That gives you two paths:

  • Today I helped a customer get a PECL extension going. The first error I was getting was as follow:

    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/http.so' - /usr/lib64/php/modules/http.so: cannot open shared object file: No such file or directory in Unknown on line 0

    Obviously the extension was not yet installed... I run pear install pecl/pecl_http in order to get it to work, which it did after I installed the C compiler, the curl header files, and a few other things.

    After a few minutes, I got the message:

    install ok: ...

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

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.