The Linux Page
  • Today we again ran in an out of memory error. As we are adding more websites our foot print is growing... Our servers use a VPS that has limited resources and whenever the limit is reached, the system automatically kills processes. How the VPS selects the process to kill isn't clear to me, but twice it has been our database manager meaning that all of a sudden all the websites stop working.

    So... We got an extra bit of RAM because our package allowed it, but that's still small.

  • Today I got an error about an .htaccess file that Apache2 could not load.

       pcfg_openfile: unable to check htaccess file, ensure it is readable
    

    I looked like 10 times in that folder to make sure the .htaccess was fine, which meant looking that there wasn't an actual .htaccess file there!

    The fact is not exactly that the file cannot be opened, it has more to do with the parent folder accessibility. Somehow Apache2 does not check the parent folder accessibility and prints the error since, indeed, it gets an error other than the usual "File Not Found". (It's getting the ...

  • I work with Apache a lot. It is a really good web server that has many options and features. Unfortunately, maybe it has too many of them!

    I ran in a problem where a notification from one server to another would fail with the following error:

    [Fri Oct 11 19:43:50 2013] [error] [client 162.226.130.121] client denied by server configuration: <path to file>
    

    Looking at the error, I was first thinking that my script was generating the error. The fact is that my script does not generate error 403. It has a 400 and 500 but not 403.

    So looking at the error I thought, maybe that's an ...

  • I've been using Drupal for a while and only now started to notice a problem with the cache of JavaScript code. In general, I don't cache the JS since they are not dynamic files. But we do that with Snap!.

    The Apache mime module offers two options: AddType and AddEncoding

    Both options are used in a similar way meaning that both react on file extensions. When a match is found, the corresponding MIME type or content encoding is attached to the content being sent.

    If you install the MIME module, it will attempt encode data properly for the most general case, but not all cases. That is, it does

  • I am working on an A/V switch with the kids and was annoyed by the fact that the page talking about how to do that did not include anything like a schema (it has some bus drawing... who cares?!) This being said, the concept is perfect and works just fine. It's just hard for me to see that when the person just says connect this here and that there and voilà!

    Original A/V switch information:

    https://www.engadget.com/2007/03/13/how-to-make-a-solid-state-a-v-switcher/

    The source is a gschem file as created by gEDA Schematic Editor (a free tool you can get on Ubuntu.) Already the free ...

  • As I was working on a new Report, I had two fields with computations.

    These are easy to handle, for example, for a Total you write something like this:

    =[Quantity]*[Price]

    And you get a product of the quantity and the price.

    That works great. At first I had a very simple query and it looked like there was a problem in computed field, but I still decided to first add the WHERE clause to allow the user to limit the data to a given set of dates:

    WHERE (((Invoice.CreatedDate)>=[Enter start date:])
       AND ((Invoice.CreatedDate)<=[Enter end date:]))

    Notice all the parenthesis. Also ...

  • My Story

    First of all, if I got this device it is because my two integrated NIC Card on my P55A-UD4P died. One of them does not even light up. Completely dead! When connected to my modem, the light on the modem doesn't come up either. Weird! That's the first NIC that broke on me like this. I plugged my cable in the other NIC, just in case, and the light came up. Hurra? Not really. Ain't working either. It connects, but when trying to send a ping, it goes really fast meaning that the hardware doesn't know what's happening and is most certainly generating a flood of interrupts. Just in

  • As I was looking for a COFF Browser today (a tool that would show me the internals of a DLL or EXE file) I stumbled upon a page talking about Assembly Language and the GoAsm tools.

    The page is here: [page was removed]

    Interestingly enough, he has a link to an advanced assembler called GoAsm. This is specifically for MS-Windows and they do not release the source code of the assembler (at least, not that I can see...) But it is still interesting to see such tool suite around. 8-)

  • Setup your interface for multiple IP addresses

    Today I got a new IP address for a server and I had to assign it to the same NIC as my current IP address.

    So?! How do you do that on a Debian or Ubuntu server?

    It is actually very simple. On Ubuntu you go to /etc/network and edit the interfaces file. It should already include a definition for eth0 (virtual machines will have something else than eth0).

      # The loopback network interface
      auto lo
      iface lo inet loopback
    
      # The primary network interface
      auto eth0
      iface eth0 inet static
            address 192.168.1.1
            ...
  • Problem: Associate, easy! De-associate... but how?!

    The association of a label with another widget is easy to obtain. You want to do that especially if you want to hide the widget or apply some similar effects to it so both, the widget and its label are affected. This is especially true if you hide the widget.

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.