safari jquery keypress event bind problem for arrow key!
Its a little post just to share with you that today I was working on keyboard navigation with javascript. Surprisingly the arrow keys was not working at all while using $(document).keypress(function(event){alert(’in here’)}) on Safari browser! Even the alert was not firing up!!
Anyway, for this you need to use $(document).keyup solved the problem
Check the [...]
Snip first words from first n charecters using php
Problem: You are writing a blogging software. Where on the first page you like to show the lates posts in a list but not their full content, only say first 200 letters. Porblem raises when the last word is spans out of the 200 letter limit.
For example, say, 198th letter is ‘H’ which is the [...]
Lightwieght VOIP billing software using mysql,servlet and ajax
Though I don’t like to do extra work beside my day job, but there are some people (and some offer :P) whom I don’t like to refuse. Surely the work must be interesting.
Before some days, one of my ex bosses gave a project to build a VOIP billing software. I was studying SIP protocol for [...]
Orchid mvc framework tutorial : Basic example showing how to write a simple hello world application
Originally from orchid blog at: http://orchid.phpxperts.net/2008/03/18/creating-a-basic-app-with-orchid/
Ok, lets try to create baby out of orchid
Take her at your place for date:
Copy the orchid folder to a location of choice where you like to host the app.
Make sure she is vergin
There should not be any app folder inside the orchid folder. If any, remove [...]
PHP Active record with relational foreign key support
Many a time i wished I could find a php active record or active model that will support relational table. Failure on this, I wrote my own and named it as ActiveRelationalRecord.
Say, I have two tables posts(idposts,title,body) and comments(idcomments,comment,date). Now, using Active relational record I can do the following:
$arr = new ActiveRelationalRecord();
//$arr->init(’posts’,$_POST);
$arr->init(’posts’,array(’idposts’=>’12′));
$arr->addRelation(’comments’);
//$arr->addRelation(’anotherrelationaltable’);
echo $arr->title ;
echo $arr->body;
$comms [...]
Joomla 1.5 SEO friendly url how to
Creating SEO friendly url in Joomla 1.5 is very easy. You don’t need to download any modules now. Just follow the steps below:
1. Login to Administration panel.
2. Go to Site->Global Configuration from menu.
3. Change the SEO settings:
4. Almost done. Now just rename the htaccess.txt to .htaccess.
Bingo.. you are done !!
PHP MVC Framework
Its my dream to make a popular site. I was dreaming since long. But, all I know is java and .net, little perl. And unfortunately all the affordable and adorable hosting plans runs on PHP. A language which I used to like the least and knew almost nothing. Since I am now working on PHP [...]
Array operator overloading
ArrayAccess interface is an excellent offer from PHP. Though I do not personally like the idea of operator overloading, this interface can be a great tool for developing application faster and neatly by overloading the array access.
The interface is to be implemented by a class and override the accessors methods.
I am giving a simple code [...]
PHP with NetBeans
I am always a fan of Java. And like NetBeans as well. Though it used to be slow, but the latest release netbeans 6 is super fast, it may be due to the latest jre. Using the the latest jre, old java swing applications are now super fast!!! Believe me, better else try yourself. I [...]