PHP include vs. require
PHP programmers regularly use the functions (or more appropriately language construct) include(), include_once(), require() and require_once(), to insert useful codes written in other files, in the flow of execution. Although these constructs are used quite interchangeably, there are actually significant differences among them, specially when you are building well designed applications. Although these differences are very well defined in PHP manual, I've noticed many programmers don't really consider them while coding. I hope this tutorial will help them towards a better coding practice. Continue reading →
Beaware of the Fool's day!
People! this is the 1st April, so
Don't get fooled, by the fools, celebrating the fool's day.
Amazing Adobe Photoshop CS5 with content aware fill
How many times you've looked at a photograph and thought that if some particular junk was not there in the image, then it would be a masterpiece, or at least an excellent art work! And then, you wasted hours with your graphics editing software , only to find out that it was going to take lot more than just few hours of work. Well, watch the YouTube video below, I think the good old days are gone!
Remove sub-domain access from Addon Domain
Most of the shared hosting that allows hosting of multiple sites from a single hosting account (like Hostmonster, CirtexHosting etc.) has a common structure. You'll have one main site/domain and all the other sites/domains will be added as Add-on domains from cpanel. This way you can host multiple sites from a single hosting account. However, this approach has a problem. With each Add-on domain created from cpanel, you also automatically get a sub-domain (almost in all cases). Now, the challenge is to using the Addon domain, without the auto created subdomain. Continue reading →
Masking Test & Input Fields in Flash (Example)
This is the solution (with example demonstration) to Flash Text / Font masking problem. If you came to this page directly, then I suggest you read my Previous Post, which speaks about the problem. Otherwise follow the Tutorial. Continue reading →
Disable auto curly quotes in wordpress
After my last post about Changing WordPress URL, I found that a simple COPY/PASTE of the code I provided don't actually work, since WordPress converts straight single/double quotes to curly quotes. Although it looks good, but it doesn't work when used as CODE. See How to Fix this problem: Continue reading →
Wordpress blog URL change
Just yesterday I've changed my blog hosting from CirtexHosting to HostMonster. I've used CirtexHosting for 2 years and HostMonster for more than a year, mainly for development purposes. So perhaps, within a few days, I'll post a review about their performance. In short, both of them provide very good web hosting services. However, this post is not about the review, it's about the temporary problem I've faced while shifting this blog hosting. Continue reading →
Bloom Box - the new wow factor in Green Energy.
A U.S. based company has recently unveiled a new Green Energy source that is both cheap and efficient; And what more? - It is supposed to transfer the energy wireless! They named the devise as Bloom Energy Server. Is this the long waited breakthrough in green and efficient energy source technology?
There is a video in cbsnews site, along with an article discussing just that. Cbs is calling it the "Magic Bloom Box!" Although, the original company likes to call it as "Bloom Energy Server".
My new Toy Chopper!
Yes, you saw it right! It's about my new RC (Remote Control) Toy Chopper.
If you see the full video, then you'll notice that I've crashed it quite a few times. Well, it's not that I'm a bad pilot. It's just that I had to hold the remote on one hand and my camera phone on the other, to make the video. But, that's not my point. Continue reading →
Masking Test & Input Fields in Flash
Normally, mask setting in Flash IDE don't work for dynamic TextField and TextInput components. With default settings, you'll not be able to see the text through the mask. People using masked layers from Flash IDE often fall into this problem. One stupid solution to this problem is not using mask at all. However, if you want to implement something like custom scrolling, sliding etc. then most of the time you'll need to use mask.
The solution to this problem is rather simple if you use ActionScript. Continue reading →