Internet Misc

Night time story – Move over Cloud, Edge computing is here

Once upon a time, computing was happening on PCs and Servers. Bigger organizations like Banks were setting up the server farms in data-centers for their computing needs. Along came big companies like Amazon, AT&T, Microsoft and what not that setup their own server farms and started to rent out the computing power. And one day Big Data showed up. Small companies that could not afford maintain their own data-centers but had a great idea, started out in Cloud. That was the dawn of Cloud as we know it. And rest is history. So computing moved from the devices that were on the Edge of Internet or “Cloud” to the “Cloud”.

Fast forward few years. Smart Phones and Autonomous devices brought in a new age. Mobile phones became way powerful than 15 year old high end PCs providing good amount of processing power. Autonomous components needed answer right then and there based on the live-events. There is no margin for error or delay. If the autopilot in car detects oncoming car in its track it has to decide next course of action right away. No time to send a message to Cloud and wait. Or god forbids, no signal. So computing has to be done in situ. That is Edge computing.

Now this does not mean that Cloud is on its way out. Both have their own niches. For example, Autonomous device has to react based on real-life events in wild. Think nature. These are the critters that react to their environment. They do not need a central hub to guide them or help them to navigate. They look around and find their way to food and avoid colliding with other objects or insects. But that does not mean that queen or alpha-counterpart is useless. They guide the colonies in case of disaster or finding new abodes and prospects. That is Cloud which is seeing all and deciding the next best course of action.

So to get a quick solution, Edge Computing is must. But on a grand scale you need to bring data to central computing or Cloud, analyze, find patterns and decide what is best course of action.

And then they both lived happily ever after!

Hardware Internet Network Tools

Rename network interface on ubuntu

/etc/udev/rules.d/70-persistent-net.rules defines the names for network interfaces. You can modify it, as long as you keep each rule on a single line, and change only the value of the NAME= key (as per the file).

php Unix Admin

php : find if IP address is in Network range

Using pear Net_IPv4 module one can find if a given IP address is in provided Network range or on the subnet.

        // check if IP falls in provided subnet

        $ipAddr  = "";
        $netAddr = ""; // -

        $objIP = new Net_IPv4();

        echo $objIP->ipInNetwork($ipAddr, $netAddr) ? "$ipAddr is in $netAddrn" : "$ipAddr is not in $netAddrn";

This requires pear Net_IPv4 module which can be installing in one of the following ways.

pear install Net_IPv4
php pyrus.phar install pear/Net_IPv4
Perl Unix Admin

perl : find if IP address is in Network range

Using NetAddr::IP one can find if a given IP address is in provided Network range or on the subnet. This can take many different representations of the subnet address. For example you can throw at it the CIDR (e.g. or explicit start and end addresses (e.g. or even with network mask (e.g. mask Following example shows all of these possible cases.


use NetAddr::IP;

my $ipAddr  = "";
my $netAddr = ""; # -

my $network  = NetAddr::IP->new($netAddr);
#my $network  = NetAddr::IP->new("", "");
#my $network  = NetAddr::IP->new("", "29");
#my $network  = NetAddr::IP->new("");
my $ip = NetAddr::IP->new($ipAddr);

if ($ip->within($network)) {
        print $ip->addr() . " is in same subnetn";
else {
        print $ip->addr() . " is outside the subnetn";

There are multiple ways the input for network can be provided (four ways are shown above with 3 commented).

Internet Misc

Play PacMan on Google today

Google Doodle is showing and letting users play PAC-MAN today on their home page for celebrating 30th birthday of PAC-MAN. Go play on Google. Click on “Insert Coin” to restart the game. You will be pleasantly surprised to see Ms. PAC-MAN in 2 player mode (try inserting one more coin). Read more at

Play PacMan on Google