Lets Talk
Tips n Tricks
What is the difference between this & this(), super & super()
Jul 30th
Well the topic is a basic in OOP, when I first learned my first OO language (C++ back in 2004), I have learned the basic. Few days ago some one asked the question, suddenly I become confused, so I made a quick research, and decided to post
this and super both are object. this() and super() both are constructors.
this is the object of current class.
this() is the constructor of current class.
super is the object of parent class.
super() is the constructor of parent class.
Example (in java) please check out this nice example provided in this link
I hope this will save someone’s day
How to generate getter/setter in PHP easily
Jul 14th
For one of my current project I need to write getter/setter functions for 20+ variables. You know, how annoying it is! Well, I can use magic quotes, but I don’t like it. More over getter setter will help you later to use the class when your IDE (in my case Netbeans) supports auto complete suggestion. Though all Java development environments allow to generate getter and setter code automatically.
Then I started coding a php script for generating getter/setter for supplied variables, but I was lucky as suddenly I thought “why don’t I look for something like this online”
And here is the link I got, its quite good. http://www.icurtain.co.uk/getset.php, It saved my time.
How to enable Apache HTTP Authentication using PHP
Nov 11th
The easiest way to password-protect a site is to use HTTP Authentication, where if a browser’s request for a protected page is not accompanied by the correct username and password, the Web server replies with an HTTP 401 error – which means “Unauthorized Access” – and an invitation for the browser to re-submit the request with a proper username and password. From the user’s point of view, most of this dialogue is hidden. Following that first failed request, the browser prompts the user (in a dialog box) for a username and password, and then re-submits the request, this time with the authentication information attached. Assuming the username/password combo is on the list of allowed users, the Web server then sends the page requested. The Web browser will likewise continue to send that username/password with all subsequent requests.
Look at the following code:
More >
How to overcome download time limit
May 25th
Some file storage sites give you a download link which use to expire after a definite time , like 1 hour or 24 hour. MiHD.net is one like them. They allow you to download files hosted on their server without any limitations, but the download link will be functional for 6 hours or other certain time. Not only these file hosting servers, often many sites from where you can download movie or songs, impose this kind of time limitation to balancing load.
But surely you can overcome this limitation.
8 easy steps to play with Google efficiently
May 24th
When you don’t find anything or don’t know where to find, the only probable answer you may get “Google it!”. But finding your desired result is really a hard job unless you search for the keyword “Google”, “Microsoft”, “Facebook” or something like that!. But surely you are not going to search them. You may want to find where your favorite song or movie or e-book can be downloaded or a specific note about a specific person.
To make easier the job, you may wish to follow the following steps..
More >
Is 'www' necessary?
May 18th
Have you checked this? write www.google.com and google.com in your browser’s address bar, then hit Enter. Both will work. same as true for Yahoo!, WordPress.com and other leading sites. Again there are some sites which won’t work without ‘www‘, like www.buet.ac.bd will work but buet.ac.bd won’t work.
So what’s the reason behind this?
How to publish your wordpress.com blog in Facebook
May 13th
Joseph Scott from WordPress.com has developed a new Facebook app called WordPress.com Facebook App which can publish your WordPress.com blogs directly to Facebook when you have an account with Facebook.
With this app, you can post via Facebook to your blog. Your posts will appear both in Facebook and in your blog. Your friends will be notified by the mini-feed when there is a new post. You can view the stats of your blog directly in Facebook and can explore other friends blogs having the same app installed in their Facebook account.
To install the app, just point your browser to http://apps.facebook.com/wordpress-com/.
So lets start now……………….
How to get nice and best pictures posted into your mail box for free
May 11th
Hi all,
I think all of us always try to get nice, interesting pictures either for collection or for desktop background. You crawl on web like Google in search of nice pictures. When you grab one, you don’t know if its copyrighted or not! But you can always grab all the best pictures posted into your mail box just for free.