Friday, November 12, 2010

Transfer Your Joomla Website From One Host To Another

Ever wanted to shift your joomla site from one host to another better host? There are lots of thirdparty joomla extensions to transfer your joomla web contents, but the layout may remain same. You can transfer the joomla with your whole layout and widgets same as in previous host.

Backup your database

First you’ll need to backup your database from phpmyadmin. Go to your phpmyadmin from control panel. Then at the left sidebar, select the database your joomla is based on.

After you select the database, you’ll get list of tables.

At the right column, select on export tab.

In next page, under View dump (schema) of database, Export, click on select all.

Below this, you’ll have large options of formats available to export in. Choose SQL.

Under Save as File, give the filename and choose the compression method if you have larger size of database.

Then at the most right corner, click on GO button.

Then you’ll have a text format of the database.

Select all and copy it in Notepad. Save it as “database.txt” with Unicode formatting.

Now you have successfully backed up your data. Next you’ll be copying the core contents of the joomla site.

Copying the files to another host.

This is nothing harder; it is like just copying and pasting. Copy the contents from the source host and paste it to another host by using any FTP client favorable to you. You can also use windows inbuilt ftp client.

Since you are using joomla and using different host than previous one, delete the configuration.php file from the root of the webhost. Get the installation folder of the joomla version you were using and upload it to your new host again, as you might have deleted it from your previous host for security reasons.

Now we have the files ready.

Preparing for transfer.

Next, you’ll again login to phpmyadmin control panel and manually create a new database. To create a new database, in your phpmyadmin main page, type the database name exactly same that you had before.

Click on create button.

Installing again

To fix the host configuration, you’ll need to re-install joomla. Reinstalling joomla will create completely new website and you haven’t created any tables yet in your new database.

In your web browser browse to the main page and install it as usually with no sample data installed. Even though you install sample data, it doesn’t matter as you will be droping all the tables later.

After you the installation is complete, either rename or replace or remove installation folder. You’ll have new configuration.php in your root folder where joomla is installed.

Deleting the database

We installed joomla again only for the configuration.php. Now we won’t need the new tables created in this database. Therefore we’ll be removing it.

To remove all the tables, choose the database as before. In the right column at the end of the table list, click on Check All.

Now at in with selected dropdown list, select drop.

In next confirmation window, click on Yes button.

There you go, you’ve successfully cleared all the contents in your database. At the moment, your website won’t work, so better not browsing it.

Recovering your previous database

Again choose the database you’ve just emptied, at the right column choose import tab.

In next page, click on choose file and upload the backed up database. Before uploading make sure you’ve chosen the right format. We’ve saved database.txt in utf-8 format. Hence we must select utf-8 format in the dropdown list.

Leave rest of the things as default and click on Go button.

You’ll be notified if the database has been successfully uploaded.

Now you’ve successfully completed transferring your blog. You’ll see everything similar as before.

Note: You might have problem in administration page login if you have typed different username and password. The Username and Password that you used at the time of installation gets deleted. As you upload the backed up database, your previous administer username and password will be recovered instead. Therefore try logging in username and password as you had in your previous host.

Thursday, November 11, 2010

CSS Mouse Hover Tips To Beautify Your Web Templates

Beautiful web template is what everyone expects to have in their site. Moreover making it is much more challenging. Previously websites were designed in tabled form. Later the tabled forms were replaced by Cascading Style Sheets (CSS).

CSS is the versatile method to design website, while HTML as the platform. Today, for interactive websites, mostly flash based movie files are used. However Flash is not based on any HTML program. Plus, it needs additional plug-in and applets in browser to view the flash based website. This is the main backward feature of flash based websites.

However with the release of new HTML 5 and CSS, it is now possible to achieve interactive websites more versatile than Flash based interactive websites.

Today, in this post, we’ll discuss about few methods that we can apply in HTML and CSS only to achieve highly dynamic and interactive web templates.

Using pseudo classes

CSS pseudo-classes are used to add special effects to some selectors. For example, some popular and widely used pseudo classes are:

:link, :visited, :hover, :active.

Following example demonstrates the use of pseudo class in tags.

a:link {color:#FF0000;} /* unvisited link */
a:visited {color:#00FF00;} /* visited link */
a:hover {color:#FF00FF;} /* mouse over link */
a:active {color:#0000FF;} /* selected link */

It can also be applied to lists and divisions to add more hover effects to the web page.

For example, the following images shows how it can be applied to divisions to add content highlight effect.

We’ used hover to one of the class for division.

Here is the basic CSS code:

And for the HTML part:

Every contents located here will have mouse highlighting effect.


Method to add image link hover effect

Bascially, we apply background image to a:link and another background image to a:hover to have background image hover effect in CSS. It is ok with all of the browsers as most of them supports it.

But incase you are using large size image then you’ll have a problem here. What exactly the above method does is that, whenever the link is in normal state (i.e. mouse is not over the link) the browser will in default load the background image specified in a:link CSS class, but when mouse is hovered over the link, it will load background image from a:hover class. If the image is larger in size then it will take time to load.

Let us discuss alternative method which will load both of the images at the of page load.

Look at the HTML code below:

< href="link.html">

image

imagehover

We have two images inside tag each of the image have specific class defined.

We can hide one of the image when hovering with the help of CSS.


img.nohover {

border:0

}

img.hover {

border:0;

display:none

}

a:hover img.hover {

display:inline

}

a:hover img.nohover {

display:none

}

In above four different CSS functions, at first when no mouse is hovered over the link image, the image defined with class “nohover” will take in action, resulting only one image to be viewed. In other words, one image is set to hidden while other one is set to visible. We do this by the help of display:none;

Now when a link image is hovered, we’ll apply display:none; to the image that must be hidden when hovered. And for the one that must be visible, we’ll apply display:inline;

Copy and try the above codes. Play with it, you’ll learn more when you research it yourself.

This works in all the version of browsers, so you won’t have cross browser compatibility problem.

The rise of CSS3 have made more thing possible, the above tutorial is classified under CSS 2.1 version.

In this way you can utilize the pseudo class hover to make your web page much more user friendly and interactive.

Monday, November 8, 2010

Hacking CSS For Rounded Colors In All Browsers No Images And No Javascript

There are lots of tricks to get rounded/curved corners for our CSS websites. For example, you may want rounded corner for a box. You may easily think of using images and aligning it top left, top right, bottom left and bottom right. It sounds easy, but is way too complicated as we’ll need to create large number of blank divisions. Also another minus point can be, it is little bit harder to crop the exact pixel of the corner. Consequently, we’ll have something irregular display of corners and the plain line.

Also we’ve another technique, border-radius, which is supported from CSS3. But CSS3 is not supported in enemy of web developers, i.e. Internet Explorer. However CSS3 is partially supported in other popular browsers like Chrome, Firefox, Safari, etc.

The main problem here became the internet explorer. Even Internet Explorer 8 doesn’t support CSS3 rounded corners. However, it is expected in Internet Explorer 9.

Now, instead of trying images and CSS3, we’ll focus on CSS2 as every of the browsers supports it.

Before creating rounded corners we must technically have pixel to pixel knowledge about rounded corners.

Rounded corners are created from pixels. Imagine a bunch of few lines combining to form a rounded corner. To get clearer, refer to following example:

The above illustration is the illustrated microscopic view of rounded corner in raster image.

Again when the lines come closer together, then it looks like this:

Finally when all of the line combines then it gives a pixilated image of rounded corner.

In normal view, a rounded corner will look like the image below:

We are going to work on the same principle.

Assume that you want rounded corner of about 6 pixel, then you’ll need 7 different lines of 1 pixel height with several width.

As you can see the first line illustrated image above, the height is made constant with few gaps and the width keeps increasing by 1px or few more pixels.

For your easy, again refer to following illustration.

The first line is 93px long, and second line is 2px more than first one. After that the width of the line is kept increasing by 1px till it gives 99px.

Note: For larger radius, you’ll need larger number of lines.

Now we’ll do the CSS trick here which is applicable as CSS2.

We’ll create 6 spans with different classes. We’ll name the class as class1, class2, class3, class 4, class5, class6. And we’ll put each line in each span class. But we are not going to place image, we’ll be instead using background color for each span.

You might question right here, why 6 classes only when we have 7 lines in above image. Well, this is because, the last two lines have similar width and we can set the height to make it as two lines.

Again to define the width of each span, we’ll use margin, where the actual width remains same but the background color will skip the marginal areas. And we’ll again set the height of each span.

OK, now let me show you how this can be accomplished in CSS script.

We will first set default values for all the classes that lies in span.

.class1, .class2, .class3, .class4, .class5, .class6 {

display:block;

overflow:hidden;

}

This will make each span as a block instead of inline content and set the overflow hidden.

We’ll now set the width of each line. But we are not using width CSS code as we actually will have dynamic div wrapping this. So we are doing only pixels work here not a line. Therefore, we’ll use margin.

Here is a code for each class,

.class1 {

Height:1px

Background:#ddd;

Margin:0 6px; /* this will make the first line of the rounded corner 6px smaller than normal maximum line width */

}

.class2 {

Height:1px

Background:#ddd;

Margin:0 4px; /* this will make the second line of the rounded corner 4px smaller than normal maximum line width */

}

.class3 {

Height:1px

Background:#ddd;

Margin:0 3px; /* this will make the third line of the rounded corner 6px smaller than normal maximum line width */

}

.class4 {

Height:1px

Background:#ddd;

Margin:0 2px; /* this will make the fourth line of the rounded corner 2px smaller than normal maximum line width */

}

.class5 {

Height:1px

Background:#ddd;

Margin:0 1px; /* this will make the fifth line of the rounded corner 2px smaller than normal maximum line width */

}

.class6 {

Height:2px /* this will double the line */

Background:#ddd;

Margin:0 0; /* this will make the last line of the rounded exactly the maximum width of the wrapper */

}

Now we’ll be coding for XHTML.

span>span>

Rounded Corner here!!

span>span>

The bottom rounded corner must have reversed order of span class. Like we have class1 then class 2 then class 3 then class 4 up to class 6 for the top rounded corner. We’ll need exactly reverse, class6 then class5 … for the bottom rounded corner.

Finalized style sheet:

Apply the above code and see the result in every browser. It is supported in every browser, as we have used nothing complicated here.

Free WIFI Software Downloads

Here I present you 2 free WIFI software that can recover WEP, WPA PSK keys and more. Enjoy!

1) WIFI Hacking Software

This tool has many different tools to hack and crack wifi so you can use your neighbours internet and do whatever. Tools for Windows and Linux also some nice extra tools!

Windows : Aircrack, Wireshark, Ettercap, Netstumbler, Airsnare, WIFIfofum, Wdriver, Pong, CommView, Airsnort, AiroPeek, Knsgem 2, Aptools, And A Nice PDF File

Linux Hacks: Airpwn, WEPcrack, Prismstumbler, WIFIscanner, Airfart, Magicmap, WPA-cracker , Wellenreiter , Void, Kismet, Cowpatty, WIFIzoo, And A Nice PDF File

Download Link

2) AirCrack 2.1, AirSnort 0.2.6, AeroPeek 2.02

Aircrack ng is an 802.11 WEP and WPA PSK keys cracking program that can recover keys once enough data packets have been captured. It implements the standard FMS attack along with some optimizations like KoreK attacks, as well as the all new PTW attack, thus making the attack much faster compared to other WEP cracking tools. In fact, Aircrack ng is a set of tools for auditing wireless networks.

AirSnort is a wireless LAN (WLAN) tool which recovers encryption keys. AirSnort operates by passively monitoring transmissions, computing the encryption key when enough packets have been gathered. 802.11b, using the Wired Equivalent Protocol (WEP), is crippled with numerous security flaws. Most damning of these is the weakness described in Weaknesses in the Key Scheduling Algorithm of RC4 by Scott Fluhrer, Itsik Mantin and Adi Shamir. Adam Stubblefield was the first to implement this attack, but he has not made his software public. AirSnort, along with WEPCrack, which was released about the same time as AirSnort, are the first publicly available implementaions of this attack.

AiroPeek NX captures and decodes packets, with special emphasis on the 802.11 protocol. AiroPeek NX receives all wireless LAN packets based on user settable configuration parameters and stores these packets in memory. For example, you can set a filter to capture all packets, only 802.11 authentication request frames, or all frames except beacons frames. Just about any combination of packet types and protocols are possible.

Download AirCrack 2.1, AirSnort 0.2.6, AeroPeek 2.02

Saturday, November 6, 2010

How To Hide uTorrent Client From System Tray

Using uTorrent with full bandwidth allocated by it makes your browser way too slow. Assume that you are downloading file which is more than 5 GB and you need it as soon as possible. But you don’t want to download if from your PC, rather you want to download it to your friend’s PC. But the chances of getting it downloaded sooner is almost null and this idea won’t work since he’ll stop it or close the uTorrent client if it’s hampering his regular browsing experience.

You might think if you could hide the uTorrent client from running in system tray and also disabling the Windows Task Manager. This can be one of the good ideas to get files you need in time.

Well, that was only the case assumption. Let me show you how one can hide uTorrent from system tray.

As far as in my mind, I can do this by two methods. One is by changing the default icon of uTorrent client that appears in system tray to some other regular icons like internet connection status icon. And another is just by removing uTorrent from system tray.

Later one seems more practical and logical as compared to prior one. Let me show you how to do this.

Create a new shortcut of uTorrent client in your desktop by going to installation location of uTorrent client. The installation directory is usually %systemroot%/Program Files/ uTorrent

After you’ve created shortcut in your desktop, Right Click and choose Properties in the shortcut icon.

The Properties window will load up. In the target field, you’ll see:

We are just 4 words away from hiding the uTorrent client. Add the parameter HIDE to it just after one space.

Now the final result in the target field will be:

“C:\Program Files\uTorrent\uTorrent.exe” /HIDE

Click OK.

Double click the shortcut icon to start the program.

What if you have uTorrent in startup? The solution is, either you can copy the shortcut icon to startup folder or do some registry tweaks.

Registry tweaks to hide the uTorrent client in startup.

First you need to know which registry key is actually controlling the startup of uTorrent client. To find it out, open RUN command and type msconfig.

In the msconfig window, go to Startup tab. Scroll to uTorrent.exe (If you have the startup then it will be there). Note the registry location.

Again in RUN window, type regedit, navigate to the location that you’ve noted. HKCU, HKLM, etc are initials of the root registry folder. For example, HKCU stands for HKey Current User and HKLM is for HKey Local Machine.

After you navigate to Run, you’ll see uTorrent value at the right column.

Double click on the utorrent. In value data add /HIDE after single space as we did above. Click OK.

Now you are done.

Open msconfig again to confirm it,

In next system restart whenever your systems starts, the utorrent client icon will not be visible in system tray.

But when you openTask Manager, you can see the process running.

This confirms that your utorrent client is running but invisible to you.

Hope this tutorial was helpful.

Note: Don’t hesitate to update your uTorrent client. This tricks doesnot works in lower versions of uTorrent.

Tuesday, November 2, 2010

How To Tell If Someone Has Blocked You From Skype

In this post I will show you simple way to know if someone has blocked you from skype. Just follow steps below.

1) Go to http://www.amiblocked.com/ and simply filling out the top of the page.
2 ) Type the screenname, and simply click submit
3) The page will then tell you if your contact is Online or Offline, and you can figure out if they blocked you or not.

Monday, November 1, 2010

How To Exclude Images In Summaries | Wordpress Tweak

I was stunned by Google today, because I didn’t get what I wanted from Google search. While designing a Wordpress template I suddenly noticed that my summary post at Wordpress home page considers image when I margin more tag below image. But I didn’t wished it to be like this.

Images in summary are be very unattractive and ugly looking. It can even dismantle or dis-layout your webpage.

While posting, what you usually do is add more tag:

When you add margin, everything above more tag the including image just above it also will be visible:

You may want somewhat similar features like this blog, as you can see that we don’t have irregular image in our main page.

Now let me teach you how to do this in your template. To do this you must have basic knowledge in html and must have little experience in html programming. But actually we are not doing any coding here, we’ll be just copying some code and replacing it with older one.

Usually most of the Wordpress template uses following code snippet to load post summary in index page.

Actually Wordpress by default has availed this feature to you. But this excerpt will not be visible until you replace the above code snippet with another one.

WordPress Excerpt is an optional summary or description of a post; in short, a post summary. The part of a post that appears on the front page when you use the More tag is called teaser. If you have post images showing up in your main excerpt page, then you must know that it’s using teaser rather than excerpt.

Now, how to replace teaser with excerpt.

You can easily accomplish this by following the method I guide you through.

In your Wordpress Admin page, navigate to Appearance > Editor.

At the right side of the page, click on Main Index Template.

Now in the code editor, search for following code snippet:

content(); ?>

Now replace the_content with the_excerpt.

must be replaced to .

Now update the page.

Now whenever you type anything on excerpt page, it will be posted as summary of the post and will appear on the main page.

Even if you don’t type anything in excerpt, the main page will automatically load first 50 words excluding image.