Autarchy of the Private Cave

Tiny bits of bioinformatics, [web-]programming etc

    • Archives

    • Recent comments

    Archive for the 'Programming' Category

    The launch of the Ada Gems series

    15th May 2007

    Today in mail:

    AdaCore is pleased to announce the launch of the new Ada Gems series. The Gems will cover a wide-range of Ada programming topics and will often include executable source code and other related resources to help understand and discover the Ada programming language. The first Gem, written by Bob Duff entitled “Limited Aggregates in Ada 2005”, is available at:

    adacore.com/category/developers-center/gems

    Share

    Posted in Ada, Links, Programming | No Comments »

    mod_rewrite cheat sheet

    2nd May 2007

    There was an excellent mod_rewrite cheat sheet at ILoveJackDaniels, but it is now gone.

    I have been using it for over a year now, as from time to time there’s a need to try to remember how to use mod_rewrite (e.g. in the case of no-www Class B web-site).

    To help preserve this useful bit of information, and for the cases of the original article being unavailable (which did happen a few years later), below is a link to the cheat sheet stored on my server.
    Read the rest of this entry »

    Share

    Posted in Links, Notepad, Programming, Web | No Comments »

    How to find absolute path on a web-server (using PHP)

    30th April 2007

    When using PHP, the simplest way to find the absolute path of your files/folders on the server is by creating a simple path.php file with the following contents (click on the “Plain text” box header for copy-pasting):

    1. <?php
    2. echo realpath(dirname(__FILE__));
    3. ?>

    Put the new file anywhere in the web-accessible folder on your server,
    then just access that file from your favourite web-browser – and you’ll have the absolute path shown to you.

    Alternatively, you may use the following code:

    1. <?php
    2. echo getcwd();
    3. ?>

    This also should display the absolute path on your server.

    Share

    Posted in Notepad, PHP, Programming, Web | 17 Comments »

    Does background-image display on top of background-color?

    10th April 2007

    Yes, it should.
    Read the rest of this entry »

    Share

    Posted in Notepad, XHTML/CSS | No Comments »

    Why Zope 3 is just great

    15th March 2007

    Recently I learned about Zope, which is an “open source web application server”, primarily written in Python.

    Then Django and Turbogears were seen as web-development frameworks akin to Zope. Search revealed an interesting anti-Zope rant at Zope vs Django. Reading until the end, and then following the comments, I came across the comment by Holger Froebe, which is a huge one (probably the longest comment I had ever seen), and represents a detailed explanation with examples of the reasons to use Zope 3. I found that comment to be a really good-written one, so if you are deciding on whether you should use Zope 3 or not, then read the comment here (scroll down or just search for “Holger Froebe”).

    For convenience and in order to preserve this worhty piece of work from vanishing, below is the 99%-exact copy-paste of that comment.
    Read the rest of this entry »

    Share

    Posted in CMS, Programming, Python, Software, Web | 1 Comment »

    Ada: Type System

    15th March 2007

    If you didn’t read the Ada programming book I earlier recommended, then here’s the excerpt on Ada type system.

    Note: the excerpt is taken from this chapter, with copyrights belonging to respective authors.

    Here is the Ada types hierarchy (click for larger image):
    Ada types tree

    Read the rest of this entry »

    Share

    Posted in Ada, Programming | No Comments »

    Ada Programming book at Wikipedia

    10th March 2007

    About a month ago I found this good Ada Programming book at Wikipedia Books.

    I already have some (minor) knowledge in Ada, and read some books/tutorials. I had only started reading the above-mentioned book, but from the very “Basics” I liked the narration and details provided (e.g., I do not recollect encountering the renaming of packages as a short-cut used instead of ‘use’ing packages).

    If the book continues in at least the same style, depth and examples enrichment, then I can recommend this book for those who want to study/refresh the Ada Programming knowledge and skills.

    It is from this book that I learned that GNAT “is the only Ada compiler that supports all of the optional annexes of the language standard”.

    Share

    Posted in Ada, Programming | 1 Comment »