Turn your laptop into a wireless access point using Hostapd

This is a guide to turn your old laptop into an access point, using Ubuntu or Debian as your operating system.

We are assuming your laptop have only one wireless card installed, if you have an extra usb wireless adapter during performing the steps in this guide, you may need to do extra steps to not apply the wrong settings to the wrong device.

Step 1

Run everything from here as root:

sudo -i

Install necessary tools:

apt-get install iw hostapd bridge-utils

Step 2 Continue reading Turn your laptop into a wireless access point using Hostapd

How to make NetBeans auto complete better in PHP ?

NetBeans have good autocomplete, it helps productivity and reduce wasted time, but it can be better by using PHPDoc. NetBeans need to know what data types does the variable contains to be able to auto complete it to give it hints about what the data types of variables or function parameters.

Consider this example:

class class2 {
     * @var string
    public $var = null;
class class1 {
     * @var class2 
    static $some_class = null;
     * @var string 
    static $some_var = null;
     * @param array $in_val
     * @return array
    static function functionName($in_val) {

After you add the PHPDoc values like above, if you try in your code doing something like this:


it will give you a hint that it can be auto completed to:


and when you do:


it will also hint to this:


Pretty powerful, isn’t it?

There is probably more details on PHPDoc than this. but for many, this little addition to autocomplete could make a big change.