Joomla error – Layout “unijoy” not found

I was getting a error message while trying to visit Joomla site in my local PC. I can visit the live joomla sites, but can not visit the Joomla site those are hosted in my local PC.

Following error message was generating:

[sourcecode language=”plain”]Layout "unijoy" not found[/sourcecode]

I was trying to visit using Mozilla Firefox. If I use any other browser it shows everything fine. What was the problem?

I was facing this problem since several months. I could not mange time to identify the problem. Today I made a promise “I’ll fix this problem today”, and identified the problem and fixed.

Simply, there was a cookie in Firefox named layout and the value was “unijoy” for the localhost domain. When I try to visit Joomla site from my local PC, it picks the cookie “layout” and try to render the view “unijoy“.

I have remove the cookie and now it works fine. 😀

7 things you may not know about me

The game I saw in Hasin Hayder‘s blog. I have been tagged by Rayhan Chowdhury yesterday. Thanks for the tagging.

“originally started by tony bibbs it is a funny thing indeed. okay, everyone knows what the seven things is. i was tagged by emran and here goes my seven things” – from Hasin Hayder‘s blog.

I like this game, and now let me share 7 things you may NOT know about me.

  1. I was a student of Humanities in SSC, HSC; and later I passed B.Ed. (Hons) and M.Ed. from Teachers Training College, Dhaka.
  2. In the last 4 years of my education, I was a hardware and trouble shooting engineer, based on home service.
  3. I have lots of students, youngest student read in class 8 (in 2003) and the oldest student is a doctor. I assume his age around 95 years.
  4. I wrote a book on computer learning named “এসো কম্পিউটার শিখি – Computer learning guide”, published by D.Net.
  5. Last month I got a baby girl who can not write PHP code. LOL. I am sure her mother knows PHP and C++. Continue reading “7 things you may not know about me”

Open Flash Chart :: amazing chart generating application

Now a days I am working in Open Flash Chart (OFC). I found this amazing, easy to generate chart and use in web applications. Flash produces high quality graphics. OFC generates high resolution charts, I think you like this very much. Lets take a look into a screenshot.

OFC generated chart
OFC generated chart

Click on the thumbnail to view actual size. You may visit OFC homepage, try the tutorial to lean how to make chart using open flash chart. Here your find some sample charts. OFC has two sets of chart library, version 1 and version 2. I think version 2 is better than version 1. Here is the download link of OFC version 2. OFC tutorial is very much easy to understand.

OFC includes some other tools, swfobject, and JSON for data files. And also includes Server Side Helper Libraries for PHP, Perl, Python, Ruby, .NET, Google Web Toolkit and JAVA to generate hassle free JSON formatted data.

I hope you enjoy OFC.

Flip and Fun

Flip your textFew days ago Hasin Hayder sent me a link where texts can be flipped. Really interesting and funny.


Try this to flip your texts.


I made some modification according to my necessity. You may use Flip Text service for following things

  • IM screen names
  • Put it in your profiles like MySpace, Bebo, Hi5, Facebook, Youtube etc.
  • Create strong passwords
  • Encrypt your download links to prevent leechers
  • Freak your friends
  • And make fun

Flip and Fun

HTML tag label is useful for Radio buttons

Radio Buttons

To click on a Radio button is very boring things to me. A radio button is maximum 15 x 15 pixels. So need extra care to click on Radio buttons.

When I work with Radio buttons in my web applications, I use HTML tag – ‘Label‘.

For example, I have a Radio button like this-

[sourcecode language=”html”]

Click on this Radio button


This Radio button require extra care to click. I write the above code like bellow, so that the visitors can select the Radio button clicking on the text – “Click on this Radio button“.

[sourcecode language=”html”]


Now the visitors can select the Radio button clicking on the text. Enjoy easy clicking on the Radio buttons.

HTML form :: difference between disabled and readonly element

I was working with HTML forms. In the forms I used readonly and disabled input elements. What is the deference between these two attributes of input element?

Say for I have an input element in HTML form.

If we set the attribute readonly="readonly" then the input element is not editable. This attribute allows the user to highlight and copy the text inside the input field, but not change the value.

This attribute is only used if the type attribute of the input element is set to “text” or “password”.

I have another text field like bellow.

If we set the attribute disabled="disabled", the input element is disabled, un-editable and un-selectable. This attribute not allow the users to highlight and copy the text inside the input field. Another thing happen here, the data within the input element will not be submitted to the action page.

Talking with PHP

Talking with PHP
Talking with PHP

I need the current time then I call the php function – time() and get the current Unix timestamp. Then function time() returns the second measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT). Say for, in my website users can register for free for one year. I need to calculate an account expiration time after one year. How can I calculate the expiration time. I need to add one year with the account creation time. We may get the the date and time of account expiration using following code.

[sourcecode language=”php”]$expiration = date( ‘Y-m-d H:i:s’, time() + (365 * 24 * 60 * 60) );[/sourcecode]

I have another easy solution. See bellow.

[sourcecode language=”php”]$expiration = date(‘Y-m-d H:i:s’, strtotime( ‘now + 1 year’ ) );[/sourcecode]

Everyone knows PHP is a flexible language. In the second statement, it seems I am talking with php. ha ha ha

Submit HTML form to pop up window

Some times we may need to submit HTML form to a pop up window. Let’s take a look into the details.
Say for I have a HTML form.

[sourcecode language=”html”]

Name :
E-mail :


We may submit this form to a blank window by setting target=”_blank”, but when we need to submit the form to a pop up window then we should do some extra code. Let’s try.

Step one: Defining a JavaScript function
[sourcecode language=”javascript”]function openWindow(url, wname, width, height) {, wname, “height=” + height + “,width=” + width + “location = 0, status = 1, resizable = 0, scrollbars=1, toolbar = 0”);
return true;

Above function opens a pop up window according to the supplied arguments. There is a tricky thing. ‘name’ is a keyword in JavaScript. We should not put the variable name as ‘name’. IE reports error if we put name as a variable name.

Step two: Setting the form attributes
Now we set the form attributes like bellow
[sourcecode language=”html”]


Step three: Preparing thank you page
Now we are ready to prepare the thank-you.php page for processing the form data.

Some more things must follow for security and to protect spamming. We should apply both JavaScript and server side validation into the form, protect spamming and XSS.

Internet Connection at My Home


Last one year I used an internet connection of a local ISP at Dhanmondi. I was not happy with them. Most of the time their server got down. If I called them they told “there is a problem in a hub or switch”. I was very much angry with them. I started to keep a log file of connection status manually in excel file. I found 60% of the total time my PC was disconnected.

I left them. Now I am using GPRS connection of Teletalk using Motorola L6 mobile set.

The average download speed is 6 KB. Average uptime 95%. I am satisfied with this connection.

What is your connection? How is your feelings?