Importing joomla from localhost to server

joomla-logoJoomla is a very popular CMS (Content Management System). Creating a site with joomla, it’s very useful to create the site in localhost and then upload it to the server. Because, joomla needs more net speed to work smoothly.

After creating your site with joomla, now it’s time to upload your site to the server from localhost. But doing this job manually is very tuff. You need to suffer a lot managing your site configuration when doing manully. So we need something that will do this job with a few mouse click. Well, joomla pack does the job for you.

Download joomla pack and kickstart file from here. Joomla pck is a joomla component. You need to install the joomla pack like other component. You can do this job by the joomla’s install/uninstall feature.

Now, lets go to pack your joomla site. Create a folder named backup or joomla pack or as you wish. We will store the pack in this folder. Now go to Components > JoomlaPack from your admin panel. There are two mode here. One is Expert Mode and other is Easy Mode. We will work on Easy Mode. Now click Backup Now. Joomla Pack will start to backup your site.

After some minutes, joomla pack will provide you a archive that contents your whole site backup with database and your files also. So we got the backup. Now it’s time to work in the server. Upload your backup file to the server. If it is the main site, upload it in the server root. Then upload the kickstart.php file to the same directory, run the file and follow the instruction. Then you are done

Activate cURL in XAMPP

cURL is a command line tool for transferring files with url syntax. cURL has a library for php.
Working with scripts that needs cURL, we must have cURL support.
In xampp, cURL support is not enabled built-in. Within a second we can activate cURL library.
You just need to follow the simple steps:

1. Go to the xampp directory of your server
2. Open bin directory under Apache.
3. Open php.ini file with notepad
4. Remove the semicolon (;) from front the text “extension=php_curl.dll
5. Restart your apache server
You are done

Is javascript enabled?

Sometimes we need to check that if javascript is enabled. To do this, we will add some codes. It will show, if only javascript is disabled.

<NOSCRIPT>
<H3>Your JavaScript is disabled</H3>
<strong>For Internet Explorer</strong><br />
Go to "View -> Internet Options -> Security tab<br />
Select "Custom" and click on the "Settings..." button<br />
To enable: make sure "Enable" is selected under "Active scripting"<br />
To disable: make sure "Disable" is selected under "Active scripting"<br /><br />

<strong>For FireFox</strong><br />
Go to "Tools" -> "Options"<br />
Go to "Content" tab and "Enable JavaScript"<br /><br />

<strong>For Opera</strong><br />
Go to "Tools" -> "Preferences"<br />
Go to "Advanced" tab -> "Content" and "Enable JavaScript"<br /><br />
</div>
</NOSCRIPT>

Everything under <noscript></noscript> will be escaped, if javascript is enabled

Take a break: Gmail’s new feature

Today i noticed the new feature of Gmail and that is Take a break.
When i activate it, it shows the message “Break Time: Take a walk, get some real work done, or have a snack. We’ll be back in 40 minutes!”
Thats really funny and also very usefull feature for us, who needs to sit in front of computer over many hours long with no break.
This feature encourage us to take some rest while working. Thats really great :P . So Took the break and completed my breakfast at
the first time. lolz

Formatting date, time and time zone with php

Formatting date, time and time zone with php is a very easy task. You may have a date
string in your database like (March 7, 2009, 5:16 pm), (03.10.01), (Sat Mar 10 15:16:08 MST 2001)
or as a timestamp like (1232886599) or something else. But you want to show this time in other
formats.
As example, you may have (March 7, 2009, 5:16 pm), but you want show this as 10-03-2001. So how
will you do this task? The answer is simple. Following code shows that

<?php
$date = 'March 7, 2009, 5:16 pm'; //date from your database
//make it as time stamp
$date = strtotime($date); //makes the date as timestamp
$date = date('d-m-Y',$date); // show as (07-03-2009)
echo $date;
?>

You can make any kind of formate with the timestamp. So, at first you need to convert the date
in timestamp.

Another Thing is to show a time in your time zone. How to do this?

<?php
$date = $some_gmt_date; //date from your database
//make it as time stamp
$date = strtotime($date); //makes the date as timestamp
date_default_timezone_set('Asia/Dhaka'); //this is for +6 with gmt
$date = date('d-m-Y',$date); // show as (07-03-2009)
echo $date;
?>

That was preety easy

Some useful web developement firefox extensions

Developing any site, firefox extensions has been served a lot. Here is some useful firefox extensions that will reduce your work a lot

FireBug 1.3 : Edit, debug, and monitor CSS, HTML, and JavaScript live. (download)

Web Developer’s Toolbar: Adds a menu and a toolbar with various developer tools. (download)

View Formatted Source: Displays formatted source and CSS info for each element. (download)

YSlow: Analyzes pages and tells why they’re slow. REQUIRES FIREBUG. (download)

Dust-Me Selectors 2.11: Dust-Me Selectors finds unused CSS selectors in your site. (download)

UrlParams: Displays the GET and POST parameters of a web page. (download)

Link Checker: Checks all links on a webpage and reports broken ones. (download)

I became a fan of KM Player

From somedays, i am using KM Player also known as ‘The KM Plyer’. I used Power DVD for plying DVD files. But it can’t play all the movie formats and it is getting resource hungry and more size day by day. At this meantime, i got the ‘KM Plyer’ and i became a fan of it for it’s wide support of video formats and it is also a free software. Controlling KM Plyer is very strong. You can control playing options of it by any means. I am placing the features of KM player below as it was given in their website. I think you will loving it.KM Plyer

1. Supported Files or Devices

  • Incomplete/Damaged AVI file (Skip Damaged Frames)
  • Locked Media Files while downloading or sharing (with realtime index rebuilding under certain condition: AVI downloading in consecutive order)
  • Incoming Stream delivered via HTTP (ASF/OGG/MP3/AAC/MPEG PS/MPEG TS: Only works with KMP splitters)
  • Directshow playback (avi, mkv, mov, mp4, 3gp, ogg theora, ogm, rmvb, mpeg1/2, vob, wmv, dvr-ms, http:// etc including almost every audio formats)
    • Async File Source (network) filter for memory caching
    • Compressed Audio Album Support (zip, rar)
    • Shoutcast (Including NSV), Icecast
    • DTS Wave, AC3, AAC, Ogg Vorbis, Monkey’s Audio, Musepack, FLAC/Ogg FLAC, Modules (MOD, S3M, MTM, UMX, XM and IT), AMR, ALAC, WavPack, TTA etc
    • Native (ansi/unicode) Cue Sheet Support
    • Google Video (GVI), Flash Video (FLV), Nullsoft Streaming Video (NSV), PMP
      Continue reading