Saturday, December 11, 2010

Bohemian words

Learning the zend framework. First difficulty was connecting to database. Found the solution by editing the mysql configuration file my.cnf located in the /path/to/lampp/etc/my.cnf
If you face this problem comment the skip-networking line.

I'm working on http://www.corporatekeys.com.au/blog/ website now.

I didn't know that Drupal doesn't follow the object oriented paradigm!

Trying to write a post on wordpress codeflow.

Tuesday, July 13, 2010

Find your Flickr ID

I was trying to learn the flickr api.I found that I don't know my flickr ID! so I have made a small script that can help everyone finding FLICKR ID.

FIND YOUR ID HERE



I used the flickr api to fetch the ID.

Sunday, July 4, 2010

hit-moviez.co.cc wordpress posts automated

http://hit-moviez.co.cc
I had beeen plannig to write a script that can publish posts automatically in wordpress from different sites. It took me two days to write the script. currently it takes movie information from IMDB and publishes automatically.
Only best 5 movies are published now.It publishes the images,title,poster,review etc.categoris users are automatically created.planning to convert it to a wordpress plugin.

Sunday, April 25, 2010

PHP Listing all files in a folder and sub-folders

I was trying to write a php code that lists all files in a folder and sub folders tree.
At first I wrote this one
function printAll($dirName)
{
$handle=opendir($dirName);
while($file=readdir($handle)){
if(is_file($file)){
echo $file;
}
else if(is_dir($file)&&$file!='.' && $file!='..')//for excluding . and .. 
{
$dirName=$dirName.'/'.$file;
chdir($dirName);
printAll($dirName);
}//elseif
}
}
printAll(getcwd());//calling the function 

But it will list only the deepest files in the first subfolder tree.SO I searched php.net and got the solution. all the subfolder will be kept in a array and will be searched recursively. Here is the code
function printAll($dirName)
{
$dirs=array($dirName);
$files=array();
while($dir=array_pop($dirs)){
$handle=opendir($dir);
while($file=readdir($handle)){
if($file!='.' && $file!='..'){
$dest=$dir.'/'.$file;
if(is_file($dest)){
$files[]=$file;
echo $file;
}
else{
$dirs[]=$dest;
}
}
}//end of 1st while
}//end of 2nd while

return $files;
}//end of function

printAll(getcwd());
The function now returns a array containing the name all files in the current folder and subfolders tree.It will print all the file names too. you can easily modify this.
That's it! It was fun.If any function is unknown to you just visit php.net.

Monday, January 25, 2010

INKSCAPE ROCKS

Inkscape is a great tool for working with vectors.I have been using inkscape instead of adobe illustrator.I have designed themes ,exported the images using inkscape. It's easy to use, small, open-source and free!!
It seems like i am advertising for inkscape but this is really powerful.You can design logos,banner,web templates very easily.For downloading you can visit here
Inkscape download

You can find many tutorials from this site and youtube.Deviantart contains a lot of tutorials on Inkscape too.Inkscape has many rich features to work with nodes and paths.
Here are two sample works that I made using Inkscape

Plumber



plumbing



I am using this tool for only 1 month.Tryin to learn more inkscape. Try Inkscape have fun.

Tuesday, January 5, 2010

A simple Dropdown menu using only CSS




Here is a dropdown menu using only css.It has issues with the internet explorer. It needs to be modified but you can get the basic idea.
You can get the code here CLICK to Download


The most important part of the css code is:
 
.navigator ul li ul{
display:none;
}
or you can  use
.navigator ul li ul{ 
visibility:hidden;

}
 Then for  hovering

.navigator ul li:hover ul{
display:block;
}

or
.navigator ul li:hover ul{
visibility:visible;
}


About Me

Web Developer From Dhaka, Bangladesh.