optimization

In mathematics, computer science, economics, or management science, mathematical optimization (alternatively, optimization or mathematical programming) is the selection of a best element (with regard to some criteria) from some set of available alternatives. read more at WikiPedia


  • Since I am facing performance problem due to the load of visitors and a badly configured server, I decide today to document my findings in this new series of articles.

    As soon as PHP run as FastCGI and no more inside an Apache module (mod_php4.so is not multi threaded), You should be able to switch the default MPM setting of Apache from MPM prefork to MPM worker.

    So, what's the difference between prefork and worker?

    Quoting from the Apache MPM Prefork page: http://httpd.apache.org/docs/2.0/mod/prefork.html
    MPM Prefork implements a non-threaded, pre-forking web server that handles requests in a manner similar to Apache 1.3.

    And for the Apache MPM Worker says: http://httpd.apache.org/docs/2.0/mod/worker.html
    MPM Worker implements a hybrid multi-process multi-threaded server. By using threads to serve requests, it is able to serve a large number of requests with less system resources than a process-based server.


    Server: Strato (www.strato.de)
    Operating system: SuSE / openSuSE
    Requirements: root access and basic Unix knowledge

    1 Edit the file  
    # vi /etc/sysconfig/apache2

    and change the key:

    APACHE_MPM=" "


    to

    APACHE_MPM="worker"


    2 You can now tune also  default parameters in file /etc/apache2/server-tuning.conf
    Here are my settings, these are still the default setting of Apache

    vi/etc/apache2/server-tuning.conf

    # worker MPM

    <IfModule worker.c>
        ServerLimit 16
        # initial number of server processes to start
        StartServers         2
        # minimum number of worker threads which are kept spare
        MinSpareThreads     25
        # maximum number of worker threads which are kept spare
        MaxSpareThreads     75
        # maximum number of simultaneous client connections
        MaxClients       150
        # constant number of worker threads in each server process
        ThreadsPerChild     25
        # maximum number of requests a server process serves
        MaxRequestsPerChild  6000
    </IfModule>




    3 start
    # apache2-reconfigure-mpm
    this recreate the file  /etc/apache2/sysconfig.d/loadmodule.conf
    and restart apache automatically. Test Your site to ensure everything still work as expected.


  • This module controls the setting of the Expires HTTP header and the max-age directive of the Cache-Control HTTP header in server responses. The expiration date can set to be relative to either the time the source file was last modified, or to the time of the client access.

    These HTTP headers are an instruction to the client about the document's validity and persistence. If cached, the document may be fetched from the cache rather than from the source until this time has passed. After that, the cache copy is considered "expired" and invalid, and a new copy must be obtained from the source.

    How to activate mod_expires.so
    # vi /etc/apache2/conf.d/mod_expires.conf

    config is rough right now, but it is better than nothing,put the following in the file

    LoadModule evasive20_module     /usr/lib/apache2/mod_expires.so
    <IfModule mod_expires.c>
     ExpiresActive On

     ExpiresDefault "access plus 1 month"
     ExpiresByType text/html "access plus 1 month 15 days 2 hours"
     ExpiresByType image/gif "modification plus 1 month"
     ExpiresByType image/png "modification plus 1 month"
     ExpiresByType image/jpg "modification plus 1 month"
     ExpiresByType text/css "access plus 1 month 15 days 2 hours"
     ExpiresByType text/javascript "access plus 1 month 15 days 2 hours"
    </IfModule>

    You can also set the expire header by type, but it wa snot working in my case, that is why I use the ExpiresDefault directive

  • In order to regain control of development, avoid code duplications, easing installations, I have decided to group all these extensions Into one single component CedThumbnails.

    This new component will be delivered shortly! You are advised to update to Joomla 1.7 and soon 2.5 if you are still using Joomla 1.5. A version for Joomla 1.5 may be done later this week.

    Module Latest article with thumbnails (mod_articles_latest_thumb)

    This is a drop in replacement for the Joomla! core module "Latest Articles", it offer the same level of features but also add thumbnails.

    Module Popular articles with thumbnails (mod_articles_popular_thumb)

    This is a drop in replacement for the Joomla! core module "Popular Articles", it offer the same level of features but also add thumbnails.

    Module Related articles with thumbnails (mod_related_items_thumb)

    This is a drop in replacement for the Joomla! core module "Related Articles", it offer the same level of features but also add thumbnails.
    This Module displays other Articles that are related to the one currently being viewed. These relations are established by the Meta Keywords.
    All the keywords of the current Article are searched against all the keywords of all other published Articles. For example, you may have an Article on "Breeding Parrots" and another on "Hand Raising Black Cockatoos". If you include the keyword "parrot" in both Articles, then the Related Items Module will list the "Breeding Parrots" Article when viewing "Hand Raising Black Cockatoos" and vice-versa.

    Plugin Related articles with thumbnails (plg_content_relatedthumbarticles)

    This plugin displays other Articles that are related to the one currently being viewed. These relations are established by the Meta Keywords or using Joomla categories.
    All the keywords of the current Article are searched against all the keywords of all other published Articles. For example, you may have an Article on "Breeding Parrots" and another on "Hand Raising Black Cockatoos". If you include the keyword "parrot" in both Articles, then the Related Items Module will list the "Breeding Parrots" Article when viewing "Hand Raising Black Cockatoos" and vice-versa.

    Library WideImage (lib_wideimage)

    Is a famous PHP library for manipulating images. WideImage is a lot better than TimThumb for that job,.

    Note that Joomla 2.5&160; though JImage support images manipulations, this new extension will let you the choice to use JImage or WideImage. It support both!
    Attention JImage do not support manipulation of remote file. If your articles, in introtext or fulltext,&160; have images not located on your Joomla host, it will be better to use WideImage.

    * -> Security Fix
    # -> Bug Fix
    + -> Addition
    ^ -> Change
    - -> Removed
    ! –> Note

    - Remove support for TimThumb,
    + Support for Joomla 2.5 JImage class.
    + Caching of thumbnails is done per extension, and the same image can be displayed on different size in the module or plugin
    + assembly one component to install to install 3 modules, 1 plugin and 1 library
    ^ avoid code duplications, same code for all extensions
    + ability to locate picture for thumbnails is more flexible

    I am currently making the changes at Joomla Extensions Directory , the version for Joomla 1.6, 1.7 and 2.5 is ready!

  • cedThumbnails

    CedThumbnails 2.5.0 is now available (download at the bottom of this post) and contains in one single installation the following:

    Module Latest article with thumbnails (mod_articles_latest_thumb)

    This is a drop in replacement for the Joomla! core module "Latest Articles", it offer the same level of features but also add thumbnails.

  • CedThumbnails has been updated to version 2.5.2 and contains 2 bug fixes and compatibility for both Joomla 1.7 and Joomla 2.5. For existing users the update will display in the Extensions Manager under Updates. If you do not have this currently installed, you can click the link below and install as normal via the Extensions Manager.

    New ideas/features/bugs are always welcomed either through forums or  by using feedback

    What’s new?

    Update mod_related_items_thumb to 2.5.2:

    • BUG: item route was not working in Joomla 2.5.0+
    • BUG: module CSS class was not propagated to module view default.php

    Full list of changes available in GIT commit c6de1f0c70e834af2d95b4f91ecfbb0260f5a1e6

  • cedThumbnails&160; has been updated to version 2.5.3 correct 3 bugs and contains two new important feature for both Joomla 1.7 and Joomla 2.5.

    New ideas/features/bugs are always welcomed either through forums or&160; by using feedback

    What’s new?

    • BUG: Latest Articles module for the doesn’t take the pictures after the "readmore"hr <hr id="system-readmore" />.&160;
      &160;&160;&160;&160;&160;&160; is only using the images within the intro text.
    • BUG: Most Popular with thumbnails module.
    • BUG:was also in plugin, it is also solved there.
    • FEATURE: update servers, use the update manager of Joomla for updating easily after this version 2.5.3
    • FEATURE: add new layout "horizontal" for modules Latest Articles/Most Popular

    You can now use safely&160; "search in intro text but if not found try in full text" for thumbnails source.

    You can click the link below and install as normal via the Extensions Manager. After having installed this version 2.5.3, all future updates will be done through the update manager (updates will display in the Extensions Managerunder Updates).

    Full list of changes available in GIT commit c7af3623e5dfb270d324ebdddcb4d82a61b2f280

  • CedThumbnails has been updated to version 2.5.5 and contains 1 new features for both Joomla 1.7 and Joomla 2.5. For existing users the update will display in the Extensions Manager under Updates. If you do not have this currently installed, you can click the link below and install as normal via the Extensions Manager.

    What’s new?

    • Video Thumbnail Feature: Google Youtube video are now supported as thumbnails!
    • Administrator panel
    • Update server simplified

    Full list of changes available in GIT commit aa32de404c928f3bd0fc67d7b9302e236893fd48

  • CedThumbnails has been updated to version 2.5.7 and contains 4 new features and correct a critical bug for both Joomla 1.7 and Joomla 2.5. For existing users the update will display in the Extensions Manager under Updates. If you do not have this currently installed, you can click the link below and install as normal via the Extensions Manager.

    What’s new?

    BUG: Highly critical bug that was under some conditions leading to infinite loop and as a result lead to too many open connections from and to your server.

    NEW:Better algorithm to clean and remove invalid images,

    NEW: Status icon in the administrator panel to help you detecting misconfiguration of your server and in the future help troubleshooting installation issues,

    NEW: Specify the image dimensions in the source code, which improves the page score according to Google Page speed. (thanks to Puneet for the idea)

    NEW: plugins oriented architecture for rendering and a cleaner controller for the plugin, this will allow me to add new output more easily,

    Full list of changes available in GIT commit 99f25840fd3c0f15b864f45c7321cd42820aa2f5

  • CedThumbnails has been updated to version 2.5.9 and contains 4 new features and correct some bug for  Joomla 2.5. For existing users the update will display in the Extensions Managerunder Updates. If you do not have this currently installed, you can click the link below and install like you are use to via the Extensions Manager.

    NEW: The function that detect images in your articles is now clever and now support better fallbacks. It now support Joomla articles metadata (intro image and full article image). With the first option selected the system will always find at least one image to render as thumbnail. Priority is from left to right.

    • search in intro text -> use intro image -> in full text -> use full article image (NEW) it’s the default,
    • search in intro text only,
    • search in intro text -> use intro image (NEW),
    • search in full text only,
    • search in full text -> use full article image (NEW),
    • search in intro text -> in full text,
    • search in full text -> in intro text,

    If no images are found, despite going through intro text, full text, intro image and full article image, the system will fallback to a default image that can be set up per modules/plugins.

    NEW: Support for alternate images text and caption.

    NEWSupport for new resizing method:

    • inside: image fits the given dimensions from the inside, aspect ratio will be kept.
    • outside: image will be at least as big as X x Y, aspect ratio will be kept.
    • fill: image will be stretched as necessary, aspect ratio may not be kept. it’s the default resizing method.

    NEW: Support for scaling method, this determines when to scale an image:

    • any: resize regardless of the image size. it’s the default scaling method.
    • up: resize if image is smaller than the new dimensions.
    • down: resize if image is larger than the new dimensions.

    On a side note the code has been improved, no static methods, better decoupling, but that’s another story that interest only developers. Anyway adding new features will be easier!

  • CedThumbnails has been updated to version 2.6.0 and contains 4 new features and correct 1 bug for Joomla 2.5. For existing users the update will display in the Extensions Managerunder Updates. If you do not have this currently installed, you can click the link below and install like you are use to via the Extensions Manager.

  • joomla_cms

    jocomment I did install yesterday evening the latest version of !JoomlaComment

    !JoomlaComment is one of the first extensions for Joomla,that let you comment under articles.

    The !JoomlaComment system can be installed on any joomla website within seconds! Make
    your website more interactive!

    Main Features:

    • ajax-based
    • captcha protection
    • akismet support
    • ubb code support
    • threathed/nested comments
    • multilanguage support
    • mail, website input
    • See more features here

    Joomla support templates, depending on which templates you use

    • MTdefault-emotop, these templates MTxxxx use mootols 1.11
    • JQdefaut-emotop, these templates JQxxxx use Jquery
    • ..

    You may behind the scene include another additional AJAX library in Joomla!® frontend, this lead to performance issues:

    If !JoomlaComment use JQuery 1.1.4 and not the AJAX library of Joomla!, aka Mootools 1.11. Another huge JavaScript files that make my server busier!

    Since any static files can be offloaded to another server to gain more speed. For example, any static images, JavaScript or CSS files can be moved to a different server for more speed.

    In order to be able to offload this JavaScript library to Google code, you’ll have to do the following:

    In the template you are using, for example in components/com_comment/joscomment/templates/JQdefault-emotop/index.html

    Search for

    {library}
    <script type="text/javascript" src="components/com_comment/joscomment/jscripts/jquery-1.1.4.pack.js"></script>
    <script>jQuery.noConflict();</script>
    {/library}

    and replace with

    {library}
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> 
    <script>jQuery.noConflict();</script>
    {/library}

    Note that I use here the latest JQuery version (1.3.2) and not the default version of !joomlaComment (1.1.4), here is why

    • This version 1.1.4 is not available at jquery">http://code.google.com/apis/ajaxlibs/documentation/jquery :-)
    • I did test the frontend of !JoomlaComment 4.0 with JQuery 1.3.2 and it work great
  • A new version of the module popular posts with thumbnails version 2.1.0 has been released for Joomla! 1.7. This version is offering a new layout (Matrix) and improved code. You can see it running in the right side of this post.

    This is a drop in replacement for the Joomla! core module "Popular Articles", it offer the same level of features but also add thumbnails.

    Attention, it is required to install the library "TimThumb for Joomla! 1.6 / 1.7" for proper operations

    Download HERE

  • I switch off the original module of Joomla! and made my own as I did not find anything similar in Joomla! extensions (JED)

    most.read.articles.with.thumbnails.for.joomla

    This Module shows a list of the currently published Articles with thumbnails which have the highest number of page views.

    Features

    • Native Joomla! 1.5 module
    • Next 5 or more most popular articles are displayed with their thumbnails
    • Support for SEF friendly URLs
    • Code produced is XHTML 1.0 Strict,
    • Tested in the following browser Firefox, Opera, Chrome, IE 8
    • Approved at Joomla Extension JED (Soon),
    • GPL v3.0,
    • CSS driven output customizable to your likings,
    • PHP5 object oriented with enough comments for you to be able to understand the code :-)
    • Non commercial.

    Requirements

    • Thumbnails resizing require PHP GD2 library for manipulating images. Any serious hosting company should have this option. Ask your Hosting support company!

    Thumbnails

    • Are created from the first images found in your introtext,
    • For articles without images or when none are found you can provide a path to a default image
    • Are saved in Joomla! /cache directory and are created only once for an article as it is required addtional CPU
    • Currently the oldest thumbnails get removed 5 by 5 when you will have more then 5000 thumbnails in /cache.

    most.read.articles.with.thumbnails.for.joomla.admin 

    Documentation

    Download & Details

  • joomla_cms

    I did optimize a bit my Joomla! homepage in the last few days. This has been achieved with

    • Enabling Joomla module caching in all 3rd party module where it was missing/ not implemented at all,
    • Starting to offload some assets (JavaScript) to faster hosting,

    Click read more to apply the same for your internet site.

    Use Joomla Module caching

    Not all 3rd party Joomla modules are using caching. This means that in worst case, some Joomla! modules may create way too much SQL queries. A way to reduce the load is to activate module caching. You’ll have to go through all 3rd party modules and check that they have in their administrator panel a setting to enable/disable cache.

    jooomla.enable.caching

    You’ll see that 90% of all modules (except official Joomla! modules which are able to deal with caching) are NOT supporting caching. We will change that now:

    For every module without cache, open the xml file at /modules/mod_xxxxxxx/mod_xxxxxxx.xml and add between <params> .. </params>

    <param name="cache" type="radio" default="0" label="Enable Cache" 
           description="Select whether to cache the content of this module">
     <option value="0">No</option>
     <option value="1">Yes</option>
    </param>

    Note that if <params> .. </params> do not exist, just add it like below

    <params>
     <param name="cache" type="radio" default="0" label="Enable Cache" 
           description="Select whether to cache the content of this module">
      <option value="0">No</option>
      <option value="1">Yes</option>
     </param>
    </params>

    Visit or reload the admin panel of that module and set the Enable Cache to Yes.Click Save/Apply at least once.

    Now the output of this module will be saved in /cache and only refresh when global Joomla cache timeout (900 seconds as default). Consider also contacting the author of the module so he can patch his code.

    Offload assets

    Offloading assets (JavaScript, static images, static files) can bring tremendous speed gains, at the cost of resolving more DNS name. Using this technique will help your Apache concentrate on php instead of streaming static data.

    Offload JavaScript

    When you look at Joomla! frontend source code, you will see that the JavaScript library mootols.js is 74kb big. Google is offering to host all major AJAX  libraries free of charge at http://code.google.com/apis/ajaxlibs/documentation/ so why not profiting of their datacenter speed/bandwidth/response time?

    Now the dirty part, You can’t tell Joomla! not to include the mootols.js from /media/system/js/mootools.js at rendering time. We will have to patch the code of Joomla!

    open /libraries/joomla/html/html/behavior.php and search for

    if ($debug || $konkcheck) {
      JHTML::script('mootools-uncompressed.js', 'media/system/js/', false);
    } else {
     //JHTML::script('mootools.js', 'media/system/js/', false); // old Joomla code
     JHTML::script('mootools-yui-compressed.js', 'http://ajax.googleapis.com/ajax/libs/mootools/1.11/', false);
    }

    Joomla use mootools.js in version 1.11, don’t use the latest version (1.2.3) as most Joomla! plugin wont work (but your mileage may vary).

    To be continued

  • My homepage goes mobile :-) templates is not yet optimized, but your feedback is as always welcomed!

    From Mobile Sites with Joomla! CMS

    As the number of mobile devices continues to outpace the number of desktop computers, the creation of mobile-accessible sites is becoming more and more important. This article addresses the issue of making a Joomla based site mobile-accessible.

    For other content management systems such as Typo3, Wordpress, and Drupal, the making of mobile-friendly versions of the sites has already been discussed on mobiForge (seeMulti-client Websites with the Typo3 CMS and WURFL,Mobile-Friendly Blogging with WordPress, andCreating Mobile Sites in Drupal Using Multisites). This article is devoted to achieving a similar effect in Joomla using the 'PDA-mambot'.

    And

    Creating Mobile Websites with Joomla 1.5

    I also want to point out some very handy web applications, the first one is to measure how currently your site is performing while in mobile mode:

    http://ready.mobi/launch.jsp?locale=en_EN

    While the other are more for testing the result of your hard work:

    waltercedric.iphone http://www.testiphone.com/
    This is a web browser based simulator for quickly testing your iPhone Applications. This tool has been so far tested and working using Internet Explorer 7, FireFox 2 and Safari 3 in Windows, but you need Safari to get the real
    waltercedric.opera.mobile http://www.opera.com/mini/demo/
    A live demo of Opera Mini that functions like it would when installed on a handset (Java Applet)
    waltercedric.android.mobile To test on Android, there is a bit much more effort: you'll have to download a simulator (in fact the full sdk) and launch sdk\tools\emulator.exe

    To test the result in ANY browser with none of the above, just append to your site index.php?tp=1&template=pda like

    http://www.waltercedric.com/index.php?tp=1&template=pda

  • joomla_cms

    This is a drop in replacement for the Joomla! core module "Popular Articles", it offer the same level of features but also add thumbnails.

    • Joomla! 1.5 use mod_articles_popular_thumb_j15.zip
    • Joomla! 1.6 and above use mod_articles_popular_thumb_j15_j16.zip

    Visit the download section

    Features

    New features are in yellow

    PopularArticleswithThumbnailsforJoomla_03

    • For Joomla! 1.5/1.6/1.7
    • CSS driven output (file located at media/mod_articles_popular_thumb/css.css), feel free to submit changes, alternate CSS layout.
    • Use Joomla caching for best performances,
    • Thumbnails width and height can be specified,
    • Thumbnails are automatically extracted from the text introduction. If no image is found, a default picture can be defined
    • You can switch off separately the title, text teaser and thumbnails,
    • The length of the text teaser and ending (»/…/ read more) can be modified in the administrator panel,
    • It is based on the code of the internal Joomla! core module mod_mostread.

    Notes

    This module use TimThumb 2.8.0 that must be installed as a Joomla! library

    TimThumb is a simple, flexible, PHP script that resizes images. You give it a bunch of parameters, and it spits out a thumbnail image that you can display on your site.

    Example of output

    With title, text teaser or only with thumbnails. Any combinations is possible.

    PopularArticleswithThumbnailsforJoomla_01 PopularArticleswithThumbnailsforJoomla_00 PopularArticleswithThumbnailsforJoomla_02

  • it is not inusual for my firefox to eat more than 400Mb of RAM and this because I rarely closed it down and/or work with many windows at the same time. Memory leaks is a known problem and some action are currently taken by the developers...

    The Hack below will improve (but not fix the problem) by unloading Firefox as much as possible from memory and saving it to disk when you minimize its windows.

    1. Open Firefox and go to the Address Bar. And Type in the URL bar  about:config and then press Enter.
    2. Right Click in the page and select New -> Boolean.
    3. it is not inusual for my firefox to eat more than 400Mb of RAM and this because I rarely closed it down and/or work with many windows at the same time. Memory leaks is a known problem and some action are currently taken by the developers...

      The Hack below will improve (but not fix the problem) by unloading Firefox as much as possible from memory and saving it to disk when you minimize its windows.

      1. Open Firefox and go to the Address Bar. And Type in the URL bar  about:config and then press Enter.
      2. Right Click in the page and select New -> Boolean.
      3. In the box that pops up enter config.trim_on_minimize. Press Enter.
      4. Now select True and then press Enter.
      5. Restart Firefox.

      This trick is also reversible and is not affecting speed or stability of mozilla Firefox.

      You can also reduce the number of pages saved for the BACK button (who need it today? with 8Mb bandwidth...) by affecting the key browser.sessionhistory.max_total_viewers

      In Between I must also admit, that I now only use Firefox for development (thanks to the great list of plugins available: webtools, measureit, css editor, javascript debugger....). My choice is Opera 8.5 and this because I have always 50 windows open! :-)

    4. joomla_cms

      This is a drop in replacement for the Joomla! core module "Related Articles", it offer the same level of features but also add thumbnails.

      This Module displays other Articles that are related to the one currently being viewed. These relations are established by the Meta Keywords. 
      All the keywords of the current Article are searched against all the keywords of all other published Articles. For example, you may have an Article on "Breeding Parrots" and another on "Hand Raising Black Cockatoos". If you include the keyword "parrot" in both Articles, then the Related Items Module will list the "Breeding Parrots" Article when viewing "Hand Raising Black Cockatoos" and vice-versa.

      You can see this module live running here (module in top right corner)

      Attention, it is required to install the library "TimThumb for Joomla! 1.6 / 1.7" for proper operations.

      Features

      • For Joomla! 1.5/1.6/1.7
      • CSS driven output (file located at media/mod_articles_popular_thumb/css.css), feel free to submit changes, alternate CSS layout.
      • Use Joomla caching for best performances,
      • Thumbnails width and height can be specified,
      • Thumbnails are automatically extracted from the text introduction. If no image is found, a default picture can be defined
      • You can switch off separately the title, text teaser and thumbnails,
      • The length of the text teaser and ending (»/…/ read more) can be modified in the administrator panel,
      • It is based on the code of the internal Joomla! core module mod_related_items.

      Notes

      This module use TimThumb 2.8.0 that must be installed as a Joomla! library

      TimThumb is a simple, flexible, PHP script that resizes images. You give it a bunch of parameters, and it spits out a thumbnail image that you can display on your site.

      Visit the download section

    5. joomla_cms

      This extension plugin displays other Articles that are related to the one currently being viewed. These relations are established by the Meta Keywords.&160;
      All the keywords of the current Article are searched against all the keywords of all other published Articles. For example, you may have an Article on "Breeding Parrots" and another on "Hand Raising Black Cockatoos". If you include the keyword "parrot" in both Articles, then the Related Items Module will list the "Breeding Parrots" Article when viewing "Hand Raising Black Cockatoos" and vice-versa.

      What’s new?

      • Tested against Joomla 1.7.0, 1.7.1 and Joomla 1.7.2
      • It use latest TimThumb library for more performances and better resizing options,
      • Joomla! Update manager let you update from 3.0.0 to 3.1.1 in one click
      • Refactoring 25% less code, more functionalities!

      and best of all new plugin outputs are available!

      Matrix

      Allow you to display a matrix of N thumbnails per lines. Post title is visible only when user hover on each pictures.&160; Use it for blog having great pictures, when you want to maximize the visual impact and if you are ready to use thumbnails at least of 140 x 140 pixels.

      Related Posts Slide Out Boxes

      Related Posts Sliding Boxes with Shuffle Function using jQuery 1.5 and CSS3.

      All credits goes to the author at http://tympanus.net/codrops/2010/07/21/related-posts-slide-out-boxes/

      New existing plugins are also soon coming!

      You can see the latest version 3.1.1 live running at demo-joomla-1.7.waltercedric.com in demo mode and download it here.

      Currently only for Joomla! 1.7, a back port of the functionality for Joomla! 1.5 is underway

    6. I really like this small Firefox extension Smushit as it allow to quickly check if all my images are optimized for the best size and thus speed of rendering. But wait IE/Opera/Chrome can still use this bookmarlet :-) to optimize the images found on any web page!

      From http://www.smushit.com/

      Image optimization is an art that not many people master. There are many good image editing tools that allow us to get the best visual result for a certain file size but "under the hood" a lot more optimization can be done.

      Smushit.com is a service that goes beyond the limitations of Photoshop, Fireworks & Co. It uses image format specific non-lossy image optimization tools to squeeze the last bytes out of your images - without changing their look or visual quality. You'll get a report of how many bytes you can save by optimizing your images and all the changed images as a single zip for download.

      Saving bytes has never been so easy - you point us in the right direction, and we'll do the rest for you. A ZIP archive with optimized images will be generated for you.

    7. mobile.waltercedric.com

      I’ve created an optimized site for mobile, it is pretty basic but is lightning fast on any smart phone (Android, iPhone, Windows Mobile). I will invest more time on it later this week.

      It detect and redirect visitors to an optimized template (pda) which only display what is worth, aka articles content.

      Regular user can see how it look like by cheating Joomla! and switching template on the fly http://www.waltercedric.com/index.php?template=pda

      I did not follow this tutorial, found it too late,&160; but it is really complete and easy to follow. By the way, opera has a “small screen rendering” view in Opera 10, visit my site or any other and click SHIFT-F11 together.

      The plugin with its template can be downloaded free of charge at Joomla! extension directory (JED) here

      &160;

      I did test it in IE8/IE7/Opera10/Firefox/Chrome, but send me an email if you encounter any issues..

    8. apache_maven

      The obvious things to do first in no particular order

      • Use a better build server, CPU power is cheap today,
      • Throw more memory, as Maven run in a JVM the more you have the better it may behave, you may want also to increased the perm gen space,
      • Use the latest  version of JVM!
      • Switch as many plugins as possible as long as there are not needed in the main build loop: Use profile to modularize your build and trigger some additional build/reporting plugins when needed. You want your build to be fast to provide fast feedback to your developers.
      • Optimize your test cases, some may take longer than other, use @BeforeClass or Lazy initialization to cache some heavy to create objects,
      • Tune the garbage collector according to your build behavior, number of CPU core:  use parallel garbage collector for example,
      • Carefully review your dependencies as the less Apache Maven has to load while building the faster it will get.
        • Are they all needed?
        • No duplicates dependencies?
        • Do you miss some <exclusions>? are all these transitive dependencies to your 3rd party needed?
        • No dependencies cycles? check the order in reactor. A developer should understand, and not be surprised by  the order of the modules calculated by Maven (as long as you have layers in your software, you expect some modules to be build before some others) .
      • Review ALL logs files
        • The one created by Maven to avoid any warnings and
        • All your application logs (do you log too much data during the build?)