Recently Added

How to reset mysql root password (Windows)

Posted by Sajith M.R in general on 03. Mar, 2010 | No Comments

How to reset mysql root password (Windows)

Of course, it is not my post. But I wrote it here for a back up for myself. I got this from some website, it works !
Steps1)

Stop running Mysql service  first (Administrative tools > Services )
Open command prompt (cmd) and reach the directory  (using CD command) where Mysql bin  is installed (eg: C:/Program Files/Mysql/bin)
type mysqld.exe [...]

If you are mad with coding ??

Posted by Sajith M.R in general on 16. Jan, 2010 | 1 Comment

If you are mad with coding ??

If  you become mad with coding , play this game for some time.
http://firstpersontetris.com/
I like the way it is implemented
Cheers
Sajith

Mx Lookup Tool

Posted by Sajith M.R in php on 31. Dec, 2009 | No Comments

Mx Lookup Tool

If you want to know where your website is blacklisted and why all the email you send from your website do not delivered to inbox, and reporting as Spam, use the following url:
http://mxtoolbox.com/blacklists.aspx
Happy new year
Mr.

Lorem Ipsum

Posted by Sajith M.R in php on 29. Dec, 2009 | No Comments

Lorem Ipsum

This is a lazy post. Read the following first:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mattis placerat dolor at accumsan. Aenean quis magna eget dolor adipiscing porttitor. Sed vestibulum placerat neque, in lacinia mauris luctus in. Aliquam adipiscing commodo hendrerit. Proin a metus id diam malesuada egestas. Mauris nisi sem, ullamcorper nec elementum [...]

WMODE – Flash overlapping problem

Posted by Sajith M.R in php on 28. Dec, 2009 | 2 Comments

WMODE –  Flash overlapping problem

When we use mixed html and flash content, we usually face the problem of overlapping flash contents over html text. In the case of mere html we use z-index to format which content should be on top. But Z-index cannot do nothing here. So the recommended option is wmode parameter.   Sometimes the wmode mode [...]

JBar – Jquery Bar

Posted by Sajith M.R in Downloads, php, webworld on 27. Dec, 2009 | No Comments

JBar – Jquery Bar

Flash messages or notification messages are very essential part of every update/edit or delete operations. We either use ajax update messages like “You account has been updated” or “Your photo has been successfully deleted”
Here, a new plugin of jQuery can be used to display the flash messages like twitter. (see twitter’s settings page)
I added some [...]

Augmented reality – 6th Sense – Amazing Video

Posted by Sajith M.R in general on 22. Nov, 2009 | 2 Comments

Augmented reality – 6th Sense – Amazing Video

Watch this amazing presentation. It is really fantastic.

Fancybox runtime height change

Posted by Sajith M.R in php on 20. Nov, 2009 | 8 Comments

Fancybox runtime height change

For those who use fancy box and iframe inside fancy box might face the issue of changing the height. Once fancybox is loaded with a particular height and width, it does not change when you change the content inside iframe dynamically. Auto height change is only possible for images.
Use the below code to change the [...]

Bootstrapping the startup

Posted by Sajith M.R in php on 16. Nov, 2009 | 1 Comment

I uploaded my first presentation in slideshare. It is about , how the current world’s online technical tools can be used to bootstrap your startup. Most of the services in this presentation are based on UK based startup companies.
Bootstrapping the stratups
View more presentations from sythoos.

Remove emails, numbers or url from text inputs

Posted by Sajith M.R in php on 14. Nov, 2009 | No Comments

Remove emails, numbers or url from text inputs

Below is a simple php code to sanitise an input message . The function has 3 parameters, depending on the parameter the input is parsed to filter.

function sanitize_message( $message , $email = true, $numbers = true, $url = true )
{
$message = strip_tags( $message );
if($email)
{
//strip email address
$email_regexp = “[_A-Za-z0-9-]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(\.[A-Za-z]{2,3})”;
$message = ereg_replace($email_regexp, ‘XXX’, $message);
}
if($numbers)
{
//strip all numerical values
$number_regexp [...]

Session/Cookie alone does not secure your web application – CSRF

Posted by Sajith M.R in general on 13. Nov, 2009 | No Comments

Session/Cookie alone does not secure your web application – CSRF

Guess what will happen if you add an image like below in your html page:
<img src=”http://mail.google.com/mail/?logout&hl=en”  />
It does not appear in page, but your google account in another window or another tab will get logoff. Now an external website could logout you from your gmail or orkut.

IF you coded your website to delete a photo [...]

Just a second with Iframe

Posted by Sajith M.R in php on 12. Nov, 2009 | 1 Comment

Just a second with Iframe

IF you are facing problem with layout issues inside iframe (which is normally not there in normal pages) just test these things.

Iframe is considered as a separate html page. So it needs all the basic tags, from html, head, body.
It does not get styles from parent, so you need to add manually in the header
Take [...]