Last month @ SANIsoft blog September 1, 2010

  • [CakePHP] How to re-size images at run-time
    This is a helper + controller combo for CakePHP which I often use. It helps to re-size images at run-time and also aid display them. Oh yes! once the image is resized it also caches them. First let’s look at helper method. PLAIN TEXT PHP: class MyHelper extends AppHelper {     function getImageUrl($path, $size, […]
  • SQL data source in Sphinx
    These days I am getting more and more into Sphinx and falling in love with it . In this post we will see how to make use of SQL data source to create indexes. Sphinx has inbuilt support for MySQL and PostgreSQL databases. The drivers for these databases can connect to the database using its […]
  • Namespaces in PHP 5.3 – Part 2
    Welcome back! In Part 1 of this post we discussed how to create namespaces and use them for classes, functions and constants. If you have not read Part 1 I strongly recommend you read it before we move on to some of the advanced parts related to namespaces. Lets start from where we had left. […]
  • Adding security to your CakePHP application – Part 2
    In the Part 1 of this post, we’ve discussed how to secure your CakePHP application by following some thumb rules and using Sanitize class. Now, in the second part, we’ll discuss how to add some more security to your application by using the nice Security component of CakePHP. Before coming down to the nitty-gritty of […]
  • [iPhone] Parsing RSS with NSXMLParser
    One of the test apps I created while learning iPhone development was a FeedReader app using UITabbarController. Using TabbarController in combination with NavigationController, TableViewController and WebViewController was challenging enough for someone who just began with iPhone development. But more on that later … One of the problems I faced in this app was parsing the […]