nazly.me

Weblog of Nazly Ahmed

Nazly Ahmed

Nazly Ahmed

Web Developer. PHP Addict. Wordpress Hacker. FOSS Enthusiast. (Micro)Blogger. Photo Hobbyist. Cricket Fanatic. Husband. Dad.

Hide WordPress Version from HTML Source

If you let your website visitors know, what version of WordPress you are running, you are potentially at risk. Hackers might use this opportunity to exploit the vulnerabilities in that particular version and will try to take down your website. Though you might keep your WordPress installation up-to-date, any lapses in failing to do so may open the doors to hackers. A good security measure would be to hide the WordPress version from the HTML source. By default if the theme uses wp_head() function which is true in most cases, the chances are that the WordPress version will be displayed in your HTML source.

Read More >>

Posted 6 years ago

WordPress 3.2 is here..!!

I’m just all excited.. That’s what this post is all about. It would be wrong if I don’t share it here. It’s time to upgrade to WordPress 3.2

Read More >>

Posted 6 years ago

Auto resizing the FB App canvas page

This post is more of a note to self. A canvas page in an FB app has a height of 800px. There won’t be any issues if the content of the page is within that limit. If the content is dynamic in nature and can grow above 800 pixels, only a part of your content will be visible. The canvas page won’t know that your content has grown since it uses iframes. To overcome this issue, we can use the setAutoResize() function in the Facebook JavaScript SDK. Unfortunately getting it to work can be pain. But I finally found a working code which would increase the height of the canvas page when the content grows.

Read More >>

Posted 6 years ago

FB iframe apps & sessions on IE8

Recently I was developing a Facebook iframe application using PHP and all was good until I got few complaints that the application wasn’t functioning as it’s supposed to on IE8. I was using the Facebook php-sdk and I have tested this app successfully on Firefox 4 and Google Chrome 11. Since I was on a Ubuntu box, I tested the app on IE6 under wine and I didn’t have any issues as such. I had to get a help from a friend using Windows and IE8 to dig deep into the problem. The issue seemed that session data didn’t persist across the application specifically on IE8.

Read More >>

Posted 6 years ago

My favourites from Flickr

Here goes my all time favourites from Flickr, picked amongst my contacts. Enjoy!

Posted 6 years ago

Speak out loud at Refresh Colombo

By now you would have heard about the Refresh Colombo meetup which happens every month. In a nutshell, Refresh Colombo brings all the technology, Internet, Web, Mobile and Social Media enthusiasts into a place where they could share knowledge and ideas. We have been live tweeting and streaming the event which allows people to take part in the meetup even though they cannot attend. The meetup has a pre-scheduled agenda with 3-4 talks by voluntary speakers so that people have a general idea about what’s in store for them. Ideally we want something like an unconference or lightning talk driven meetup but we are still in the early stages. So we are having everything in the agenda prior to the meetup.

Refresh Colombo needs more speakers from different areas of expertise. This is where you need to chip in. The whole idea is about sharing knowledge. Submit this form and let us know your areas of expertise and on which areas you can speak on. If you need any further details drop me an email. Looking forward for your response. Thanks guys!

Posted 6 years ago

Get your Emails back in Thunderbird after Ubuntu upgrade

Due to the unavailability of proprietary drivers for my VGA card since Ubuntu 8.04 (Hardy Heron), I have been using Hardy as I couldn’t give up on working with dual screens. Though I tried upgrading when ever there was a new release, I had to revert back since neither proprietary driver nor out of the box support was available. As of late I was desperate for an upgrade and decided to work at least with a single screen and installed Ubuntu 10.10 (Maverick Meerkat). But to my amusement the dual screen support was available out of the box and with the help of Mili, I was able to set it up and I’m one happy fellow since yesterday.

Read More >>

Posted 6 years ago

Photography as a hobby

Photography is an art that you have to be born with. If your eyes doesn’t capture the beauty of what you are about to click, its hard to imagine that your camera will. Some may argue it’s the quality of the camera that makes the difference. If you have the passion for photography, it really doesn’t matter what camera you have in your hand. But you need both skill and tools to be producing top quality images which would live up to expectations.

Read More >>

Posted 7 years ago

Headlight restoration with toothpaste

This might sound like I’m trying to increase the sales of toothpaste or at least thats what I thought when I saw couple of posts that mentioned about using toothpaste to restore cloudy, foggy and yellowed headlights due to oxidation. In the market and all over the Internet you will find plenty of Headlight restoration KITs and even here in Colombo, you will find agents who will charge over $30 per headlight to get it restored. But if that can be achieved by something that we use on a day to day basis, why pay a thumping amount for it?

Read More >>

Posted 7 years ago

Multiple custom field handling in WordPress

Since WordPress 3.0 introduced Custom Post Types, I have been using it extensively in my projects. Each Custom Post Type had multiple Custom Fields, but I had major concerns on building an algorithm to search across multiple Custom Fields using query_posts() since it allowed only a single key value pair (meta_key and meta_value). I had to extend the functionality of query_posts() to get over this problem. Looking at the documention it appears that with the release of WordPress 3.1, query_posts() will have a new parameter called meta_query which could handle multiple Custom Fields.

Read More >>

Posted 7 years ago

3 of 33.234.10.