The site with the LAMP

raditha.com, The Site With The LAMP is dedicated to Linux, Apache, Mysql and PHP. It's the work of Raditha Dissanayake, who has an affinity for these technologies as well as several other non redmond technologies such as Java

These photos are from my infrequently updated photo blog

  • Ruby Symbols

    In my learn Ruby in 48 hours project, I left one black box unopened, Now I am attacking it with a hammer and chisel. It’s those tiny little ‘:’ symbols scattered all over ruby code that’s bugging me. You find them in many different tutorials and books with little or no explaination. Sample codes that [...]

    May 14th, 2012 | Filed under Uncategorized
    Tags:
  • Toshiba L655D Toast

    Well, been an year since I had this Toshiba L655D, which was a replacement for my dead macbook. What replace a macbook with a Toshiba? yes. That’s pretty obvious! Though I used to own a mac doesn’t mean I am a fan boy. At the time the Toshiba was bought, it was more powerful than [...]

    May 13th, 2012 | Filed under Uncategorized
  • Iterators and Generators and Yields

    Both python and ruby have a yield which is thoroughly confusing to Java programmers and looks like the stuff that nightmares are made of. But eventually you realize that it isn’t so bad after all. But before we deal with our nightmares, we to look at iterators. Python for loops look so nifty thanks to [...]

    May 12th, 2012 | Filed under Java
  • Python functions

    We’ve already taken quick glance at python functions elsewhere, and know that they are created with the def keyword, can have default parameters and which part of the code belongs to the function is identified by it’s indentation level When using default parameters, the PHP approach is that you need to specify the first few [...]

    May 8th, 2012 | Filed under Uncategorized
    Tags: , ,
  • Python Packages, Modules and Classes

    Modules Python says Don’t Repeat Yourself. This is made possible by module. A module is just a python script that is ‘included’ into another one. The syntax for doing that though is with the import keyword. For example if you have a file named crazyModule.py with some code in it you can import it into [...]

    May 4th, 2012 | Filed under Uncategorized
    Tags:
No comments