Autarchy of the Private Cave

Tiny bits of bioinformatics, [web-]programming etc

    • Archives

    • Recent comments

    Archive for the 'Web' Category

    Anything web-related. Just anything.

    Drupal is more than just a CMS

    6th April 2008

    This post provides several links which would be useful for the beginning Drupal developers, or developers deciding which CMS to use as the base for their next project. Also, strengths of Drupal are highlighted.

    Intensively working with Drupal during the past two weeks, I find it to be an excellent tool, and also much more than a YACMS.

    Now I think that Drupal is also a framework – providing invisible to developer caching, session handling, access control, theming, localization, and more. The minimal effort required to extend already huge Drupal functionality is to write your own module – and, if done right, your module will immediately benefit from all the bonuses Drupal provides.

    But Drupal also really shines as a CMS! You can start with a free design theme, and without any PHP knowledge have your custom portal built within a week – with your own hands, if you desire! (Note: “within a week” is true, but only if you already know what exactly you should be doing; learning time is short, but it’s not within that same week.)

    What makes Drupal so powerful? I’d say that beautiful core and numerous modules.

    What Drupal has to offer?
    Read the rest of this entry »

    Share

    Posted in CMS, Drupal, Software, Web | No Comments »

    AN Hosting affiliate program

    31st March 2008

    I have just joined AN Hosting Affiliate Program – you can tell by the new link in Web Hosting section in the right sidebar, and by the real huge banner on the blog hosting page (so huge actually that it won’t fit completely with smaller resolutions like 1024×768 and less). I do not yet know if this affiliate program is worth the trouble, but I did find good feedback for their hosting on Drupal forums (here and here and search for more), so that really was the initial reason to put the links to them.

    I would be interested in AN Hosting feedback, as I do plan to try their services one day.

    P.S. A Small orange (direct link) also has lots of positive feedback.

    Share

    Posted in Affiliate programs, Links, Web | No Comments »

    WordPress Drupalization

    31st March 2008

    Is that only me, or WordPress is really leaning towards the Drupal ideology?

    Here’s what I mean:

    • user levels were changed to user roles – just like in Drupal
    • now, instead of categories and just recently introduced tags, the word ‘taxonomy’ is used – which is a Drupal slang
    • ‘widgets’ work just like ‘blocks’ in Drupal – even style IDs are assigned the same way, e.g. id=”widget subscribe_to_comments_widget”
    • (add here the similarity you found yourself)

    I wonder, what will be next. PHPTemplate support, as default theming engine? :)
    Or no-backwards-compatibility policy?
    Or, best for WP users, advanced Drupal-like caching and throttling techniques?

    Share

    Posted in CMS, Drupal, Software, Web | 2 Comments »

    Developing with Drupal: screencasts

    26th March 2008

    drupaldojo.com – at the moment of writing, has 42 video-lessons (screencasts) of developing with Drupal.

    Share

    Posted in CMS, Drupal, Links, Notepad, Software, Web | No Comments »

    Good techie intro for would-be Drupal developers

    26th March 2008

    Drupal technical introduction
    It’s quite old, but as it describes core functionality, it should be still actual.

    Please comment if you know of any other good high-quality technical Drupal introductions/descriptions.

    Share

    Posted in CMS, Drupal, Links, Notepad, Software, Web | No Comments »

    2008 Webware 100 Awards: voting is still open

    26th March 2008

    I voted in the 2008 Webware 100 Awards

    Have you voted already?

    Share

    Posted in Web | No Comments »

    Instructions on installing libmp3lame-enabled ffmpeg on shared linux hosting

    12th March 2008

    Note: this post is based on the comment by Simon, who generously shared his experience.

    Step-by-step:

    • Download the compiled ffmpeg with libmp3lame support (direct download links: older version ffmpeg.with.lame and newer version ffmpeg.2007-10-28.with-libmp3lame-support).
    • Rename the downloaded executable file to “ffmpeg” (no extension), upload it to the directory on your server (in this example /home/myusername/).
    • Download libmp3lame.so.0.
    • Upload libmp3lame.so.0 to the same directory where you placed ffmpeg in.
    • Create a php file with the following code (remember to change the paths to your own, where you actually uploaded binaries in previous steps):
      1. <?php
      2. exec("export LD_LIBRARY_PATH=/home/myusername/");
      3. echo passthru("/home/myusername/ffmpeg -formats");
      4. ?>
    • If you access that PHP file with your browser, you should be able to see a list of formats which are supported by ffmpeg, and if you find “EA libmp3lame” somewhere in the output, then it means you now can Encode Audio in libmp3lame!
    • If that doesn’t work for you: LD_LIBRARY_PATH can be a protected variable in PHP (you can check for this by searching for the “safe_mode_protected_env_vars” value in phpinfo() output). The workaround here can be to write your commands to a file from php, then chmod that file with 0755 permissions (rwx-rx-rx), and run the file through exec(). In this way, PHP is not changing the LD_LIBRARY_PATH, but telling the server to run a file, which tells the server to change it. This method worked for the original author of these instructions.

    For passing arguments to the PHP wrapper script – check out PHP’s $argv variable (more on this here). If you decided to use shell-script as a wrapper for “export LD_LIBRARY_PATH”, then using $1, $2 etc will allow you to pass parameters to the shell script, e.g. in the example below

    1. #!/bin/bash
    2. export LD_LIBRARY_PATH=/home/myusername/
    3. /home/myusername/ffmpeg -i /home/myusername/$1 $2 /home/myusername/$3

    you could pass “input file” as first argument, “parameters” as second and “output file” as third to make such a wrapper script work.

    Share

    Posted in *nix, PHP, Programming, Software, Web | 19 Comments »