BASIC Language Parser – My new PHP class published in PHPClasses.org
Recently, I was stuck in a situation where I wanted to have my own small conditional language and its parser. I only wanted to execute the conditions using “IF THEN ELSE”. I came up with this idea and it worked. Although it could be bit memory costly so it may takes time for bigger conditions. [...]
Posted in blog | No Comments
Yii Framework : How to change the DB connection in Yii models at run time
How to change the DB connection in Yii models at runtime. After you have generated the Yii model, you need to add a parent method from CActiveRecord “getDbConnection()”. This method is actually resposible to return the database connection. In this method, you need to create a DB connection. If you use return $connection->db; This will [...]
Posted in blog | No Comments
A Story of Lycos Customer Support
Recently my 14 years old “hotmail” account was blocked as someone managed to access it to send lots of spam email. MSN blocked my account and asked me to send a code that has been sent to my email account which was at lycos mail. I was surprised to see that my lycos email was [...]
Posted in blog | No Comments
Executing a SQL without calling a Model in Yii framework
Recently I have started working on Yii framwork. This framework has really inspired me because of the architecture of its model and above all “Gii”, the model generator. It’s now quite easy to call your DB queries via models in Yii without even writing long SQL. But still there is a room to implement your [...]
Posted in blog | No Comments
How to run SQL Yog in Ubuntu
SQLYog is the best MySQL GUI client for Windows ( to me ). Since I started work on Ubuntu, I was badly missing the tool. Thanks to Andrew Ault for his nice blog. Andrew Ault has written a blog which actually guide you through the process of running SQL Yog in Ubuntu. Have a look.
Posted in blog | No Comments
Understanding JSON Data
JSON (JavaScript Object Notation) is the modern way of data exchange. You can find more on JSON here. It is easy to manually create the JSON data. JSON data based on key/value pairs. These pairs can be in the form of object and array too. JSON data enclosed within curly brackets “{ }” and array [...]
Posted in blog | No Comments
A little tutorial on MySQL UNION and GROUP BY
Recently I have experienced a situation while working on a PHP project with MySQL, where I had to combine 2 SQL result set while grouping with common key for the entire combines result. I found a thread on mysql forums ( http://lists.mysql.com/mysql/182163 ) that solved this problem. Let’s make a messaging example: Table: Messages ============== MsgID [...]
Posted in blog | No Comments
How to set a vanity URL for your newly created (with 0 likes) facebook page ?
Facebook page is a great modern social platform for the business and public figure profiles. These days it is a must for every business/web site/app to create their facebook pages to market any sort of thing. As we know, facebook offers its users to create a vanity URL for the personal profiles and the facebook [...]
A simple wordpress plugin to extract images from video
Sometimes we would rather want to add only the thumbnails images from a video ( say a youtube video ) in our post. I have written a simple plugin that does the same. This plugin works for youtube.com only this time. From time to time I will be adding more video sites, or you can [...]
Posted in blog | No Comments
Sencha ExtJS Framework
Recently, I’ve been working on ExtJS framework which is made by Sencha. This framework is actually javascript framework built for developing rich user interfce web applications. While developing a complex dynamic web applications or web sites, we often needs dynamic UI components such as grids, tree structures, tabs and other things which are quite difficult [...]
Posted in blog | No Comments