Tiny Bug in 64bit WAMPServer

If you have installed 64bit version of WAMPServer, you guys might have noticed that my.ini configuration changes are not reflecting in MySQL server.

Actually there is a tiny bug that got through testing on the 64bit version of WAMPServer.

In the 64bit version of WAMPServer the name of the MySQL service was changed to wampmysqld64 but they forgot to change the section name in the my.ini file accordingly.

So in my.ini change the section name to

# The MySQL server
[wampmysqld64]

The way MySQL works is to look at its own service name and then look in the my.ini for configuration setting under a section heading that matches its service name.

This should make MySQL pay attention to your config changes.

How to center align absolute element

How to center align vertically or horizontally element within CSS?

To align it horizontally, use:

classname{
   left:0;
   right:0;
   width: 200px;
   position: absolute;
   margin: auto;
   overflow: auto;
} 

 

However, to align it vertically use:

.classname{
   top:0;
   bottom:0;
   height:200px;
   position: absolute;
   margin: auto;
   overflow: auto;
}

 

Inorder to use them in combination

.classname{
   position: absolute;
   margin: auto;
   top:0;
   bottom: 0;
   left: 0;
   right: 0;
   width:200px;
   height: 200px;
   overflow: auto;
}

Try out with JS Fiddle

Only drawback using this is, height or width properties are mandatory. If you miss it, the element will show 100% width and height.

Cheers

How to get free Akismet plugin API Key for WordPress

Many of you must have heard about Akismet plugin but may not be knowing about its actual use. This is something interesting which help you to make a spam FREE wordpress. In this article I am going to tell you about Akismet plugin and its use.

Akismet is one of the free plugins which comes with stock wordpress. It is very essential plugin to get rid of spam comments in wordpress. You might have noticed the spam comments on your live wordpress blog. Akismet plugin protects wordpress from these spam comments. However, to activate this plugin you need to enter API key. Now how to get FREE api key from Akismet website.

From plugin setting page click on Get Akismet API Key button, it will redirect you to akismet website and will ask you to sign up for the Akismet account. In Pricing options, you need to select Personal option.

Complete the Akismet sign up form, and you need to make a single change. In yearly contribution(on right side), move the slider to $0, and you will be done with the payment option. Finish the sign-up and click on continue. You will get the Akismet API key in the popup window. Also will receive the same via Email.

Now enter this key in Akismet plugin setting page and it will activate the plugin. Once it is activated, Akismet will start protecting your wordpress from spam comments.

Page 1 of 41234