Shaikh Sonny Aman’s Blog

Lets learn and share!

Firefox round corner css only, no gif

Every border has its own set of native functions support some cool features to the developers. Like IE has gradient feature built in!
One nice feature of Firefox is to support rounded corner without any extra hassle. With no gif at all!
here is how:
-moz-border-radius:20px
Lazy enough? Just copy the code and see yourself!
<div style=’-moz-border-radius:20px;background-color:#ff0000′>
Hello rounded Firefox [...]

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 [...]

How to set Google analytics on joomla 1.5 to see number of visitors

Google analytics is a powerful tool to know the site visit status. You can easily sign up with google analytics from www.google.com/analytics and register a domain. You will be provided with two codes, one for legacy which has limited features and another is new code with lots of features to enable various kind of graphs [...]

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 !!

Run windows XP, vista in Linux with InnotTek Virtual Machine

Many of us abandoned  windows and  landed on linux. But many of us also works in web development. A great twist between the brow  appears when we need to test on Internet Explorer ( IE ).
So, how test web pages  in Linux on Internet Exploer  and IE7 ?
Solution is brought to you by InnoTek virtual [...]

index.php : Stepping into php Orchid framework

Recently I had the opportunity to involve in php orchid framework developed by Hasin Hayder. This is a MVC framework with lots of feature a system would ever need. Many of these features are already implemented while some are still under development. And surely there will be some other feature which will be recommended by [...]

svn failed to commit, file or resource is locked !

Some times while committing a file or folder using svn it says the resource is locked ! It happens if we forcefully cancel  an ongoing update or commit, say by using Ctr+C.
To unlock the resource use:
$svn cleanup
This will unlock the content. Now do commit

Select a random row from large mysql table in an optimized way.

Random — This simple pronounced and apparently gentle looking word can make your brain randomly scattered.
We often need to select a random row from a table. … cutting short.. less time.
Prob: Need a random row from a table name ‘Dim’ which has 1,000,000 rows.
{selected only pad, i am in hurry :(}
1.
Create a stored procedure:
create [...]

How to create polls with Polldaddy

 So, you like have some polls showed up on your site? What should you do ? Design database, design the models and finally passing hours together with image processor to give a nice look.
There  is a easy solution offered by Polldaddy. Create an account instantly in polldaddy, create your poll. You can configure questions in [...]

keep looking »