6/09/2015

Explaining the "Mystery Code"

Currently the population of the Internet in India and also the media is talking about the "script injection" discovery that Thejesh GN (@thej) made, who claims to be a programmer.

Our country's Telecorps like Airtel, Vodafone, Aircel to name a few have been always a victim of allegations regarding their service and their quality.

About the Script Injection

The same thing happened a few days back when the aforementioned coder claimed to make a break-through discovery of a malicious and mysterious script that was being inserted in every website he visited.

The only proof and reproduction of the script injection was demonstrated with this screenshot of the source code of "thej.in" where a JavaScript code (the de facto scripting language of the web) was added in the website's source.

source: Trak.in

This is the complete HTML markup that the coder wanted to show was this:
<script type='text/javascript' src='http://223.224.131.144/scripts/Anchor.js'></script>

Apart from that there were no explanations or any other research which proved how the injected script got there and most importantly what it did!

I checked the host IP address on a IP tracer and it looks like it is being hosted in Bangalore, India and the ISP is Airtel. That is what I think led the coder assume that Airtel played with the privacy with this mere JavaScript code.

The Coder Got A Notice from FlashNetwork 

The main thing that actually sparked the news was the discoverer getting a noticed for explicitly posting the code on his Github Repository. The Israeli company Flashnetwork consequently filed a DMCA complaint and also sent a notice to him for the takedown of the code and it was taken down.

I when read the news on a blog too thought this might be something very serious if a professional/qualified programmer have made the discovery and warned people about this and searched for the code that was the center of the topic.

Explaining The Mysterious Code that Might Compromise your Privacy

That's what the coder claimed. But later when I found the code it was this:
/**
 * Automatically executed if DOM is ready
 */
$(function() {
    $('a[href*=#]').anchor({
        transitionDuration : 1200
    });
});

/**
 * anchor.js - jQuery Plugin
 * Jump to a specific section smoothly
 *
 * @dependencies jQuery v1.5.0 http://jquery.com
 * @author   Cornel Boppart 
 * @copyright  Author
 
 * @version  1.0.5 (02/11/2014)
 */

;(function ($) {
 
 window.anchor = {
  
  /**
   * Default settings
   *
   */
  settings: {
   transitionDuration: 2000,
   transitionTimingFunction: 'swing',
   labels: {
    error: 'Couldn\'t find any section'
   }
  },

  /**
   * Initializes the plugin
   *
   * @param {object} options The plugin options (Merged with default settings)
   * @return {object} this The current element itself
   */
  init: function (options) {
   // Apply merged settings to the current object
   $(this).data('settings', $.extend(anchor.settings, options));

   return this.each(function () {
    var $this = $(this);

    $this.unbind('click').click(function (event) {
     event.preventDefault();
     anchor.jumpTo(
      anchor.getTopOffsetPosition($this),
      $this.data('settings')
     );
    });
   });
  },

  /**
   * Gets the top offset position
   *
   * @param {object} $object    The root object to get sections position from
   * @return {int}  topOffsetPosition The top offset position
   */
  getTopOffsetPosition: function ($object) {
   var href = $object.attr('href'),
    $section = $($(href).get(0)),
    documentHeight = $(document).height(),
    browserHeight = $(window).height();

   if (!$section || $section.length < 1) {
    throw new ReferenceError(anchor.settings.labels.error);
   }

   if (($section.offset().top + browserHeight) > documentHeight) {
    return documentHeight - browserHeight;
   } else {
    return $section.offset().top;
   }
  },
  
  /**
   * Jumps to the specific position
   *
   * @param {int}  topOffsetPosition The top offset position
   * @param {object} settings   The object specific settings
   * @return {void}
   */
  jumpTo: function (topOffsetPosition, settings) {
   var $viewport = $('html, body');

   $viewport.animate(
    {scrollTop: topOffsetPosition},
    settings.transitionDuration,
    settings.transitionTimingFunction
   );

    // Stop the animation immediately, if a user manually scrolls during the animation.
   $viewport.bind('scroll mousedown DOMMouseScroll mousewheel keyup', function(event){
    if (event.which > 0 || event.type === 'mousedown' || event.type === 'mousewheel') {
     $viewport.stop().unbind('scroll mousedown DOMMouseScroll mousewheel keyup');
    }
   });
  }

 };

 $.fn.anchor = function (method) {
   // Method calling logic
  if (anchor[method]) {
   return anchor[method].apply(this, Array.prototype.slice.call(arguments, 1));
  } else if (typeof method === 'object' || !method) {
   return anchor.init.apply(this, arguments);
  } else {
   return $.error('Method ' + method + ' does not exist on jQuery.anchor');
  }
 };

})(jQuery);

As being a professional web developer I analyzed the code and found that this is nothing but a mere script that provides smooth scrolling effect on websites. And it was nothing like what the person was successful in making people believe it was.

I can't start to wonder what led Thejesh assume that the code was something injected suspiciously by Airtel to exploit their privacy. But whatever it was, it was not right and not true either.

Taking Sides?

Sorry, not. There is nothing like taking the side of the Telecorps to protect them. Through my research this is what I found. This case is a case of ignorance on the part of the coder who spread this and the people who believed this without researching much.

On the side note I have been on Airtel's network and honestly that IP address or no similar script nor any script was ever injected into the sites. Though it is to note that ISPs do insert small snippets of codes, for example the mobile Facebook site where they insert their home page's link but that's all. Anything unethical is wrong, and should be acted against.

5/24/2015

The Best Dongle Internet 3G Plans in Assam

If you were in a big city like Mumbai or Delhi you wouldn't have to worry about Internet plans with unlimited high speed data, wired and wireless broadband plans are very cheap and available almost everywhere now.

Whereas you have a very few options for Broadband plans in Guwahati. Even if you find a good one it is uncertain if they will install lines in your area.

Tikona has some of the cheapest high speed (4Mbps) Unlimited data plans, but unfortunately it isn't available in Guwahati. Though you got to see their plans, I mean mouthwatering plans!


With such plans you never have to worry about your data usage. Anyways it's like a dream to have such plans in Assam, anyways, Guwahati is progressing and we might see such Tikona Broadband and alike very soon in Assam too.

Best Dongle Plans in Assam?

Personally I first used Tata Photon, and it was bad, really bad. Then I switched to Airtel 2 years ago, it provided 6GB for a month for Rs. 1067 (Postpaid) and including the price of their 3G Dongle which you can only use with an Airtel sim.

Whereas the speed Airtel provided was great, the data got consumed very quickly as I use the Internet almost 8 hours a day. And as per FUP, the speed was throttled to 64Kbps, which is only 8KBs.

Aircel Is a Way to Go

Aircel has the best Internet plans for mobiles and dongles and you will love to see the amount of data they provide even for very less price. 

Here are some of the 3G Data Plans Aircel provides in Assam. I will also tell you how can you get 20% more data with Rs. 4 less on the price on some Unlimited Packs.



There are also limited plans available
The Rs. 79, Rs. 601 and Rs. 295 plans are ideal for people who want more validity and less data. For Rs. 395 you get 6GB for 3G High speed data valid for 30 days.

Get 20% More Data on Unlimited Packs


This is a web exclusive offer by Aircel which means you can avail this offer only if you Recharge your Aircel mobile online from Aircel's Online Recharge Service.

When you will be recharging your Aircel number online just remember to select the amount listed.

For Rs. 193 you get 20% more data than Rs. 198 plan
For Rs. 393 you get 20% more data than Rs. 399 plan
For Rs. 693 you get 20% more data than Rs. 697 plan
For Rs. 993 you get 20% more data than Rs. 997 plan

Buy the best Dongle

Aircel or any operator might prompt you to buy their Dongles but I would suggest don't. Buy a nice dongle online, well the max speed must be at least 7Mbps, anyways having a dongle with greater max speed would increase your network speed and rarely your network speed will ever reach even the max speed of the most dongles. 



Huawei Power-Fi E8221 Data Card  - Low price with great features. Use any sim card and it is Wifi enabled, you can use it as a Wifi hotspot and share your Internet connection with other devices, upto 10.

If you don't know about Huawei and don't want to trust it then you should know that Huawie is the hardware manufacturer of Dongles for Telecorps. like Airtel, Aircel, Vodafone, Idea etc. Almost all.
Or


Thank for reading. We will update when we find even better plans but for now I think Aircel provides the best data plans in Assam with good coverage of 3G throughout the city.

4/26/2015

A Thought on LGBT and Equality

There has been a large number of arguments and debates between LGBT supporters and the anti-LGBT people, just like any other social topic this one is opposed and supported by all kinds of people in every community.

Whereas it was a debate or an argument, there are two sides of the story, one from the perspective of the people who belonged to LGBT and the people who supported LGBT regardless of being one themselves and the other by people who opposed it.

The larger percentage of population in most or almost every country opposes LGBT rights, why because the larger percentage doesn't belong to it, or who knows what but that's what those people want the World to think about them.

Take a moment to think

If you are an anti-LGBT person take a moment to think, and that's how most of the problems are solved. How you see the World is the first step to change the World for yourself and people around you.

Every human on Earth has the right to love whoever they like and are attracted to, they live for people they live then why do anybody must have any sort of problems with a person loving another of the same sex?

The Lack of Education Causes It

Believe it or not, lack of education is something that causes ignorance towards any issue, I might agree there are people with qualifications that is enough for them to be referred as well educated and still they oppose Gay marriages and the rights of LGBTs - But education here we are talking about is the education of your mind, of yourself.

Then there are people who are not even aware of such things as LGBTs mostly because they live in a community or society where this has never came out as a topic, so suddenly someone coming out as a Homosexual or Bisexual can cause chaos and a wave of negativity towards that person which might result into a devastating experience for them.

Why Must You Even Hate ?

There's no reason for you to hate a person based on his sexuality. If we are in a World where a human is disregarded for having sexuality other than what the "general" population has.

It's all what your moral values are, why do you respect a person also defines why do you disrespect them. In this age we talk about equality, everyone does, but no, none of them actually wants to be equal, they just want their space. You might be fighting for your space in one field or the other, everyone does, LGBT people do it for their space and we as fellow human beings should never discourage anybody, not just LGBTs, but anybody.

Ignorance about the Topic

In most backward countries and even in some first World countries people posses a mentality that Homosexuality, Bisexuality etc. are a kind of disease.

Nope, it's a thing that nature did, no human could control that, no body. Could a person control his hunger? No, they can't, because it's how nature made them. Dishonoring anybody for this is not right, both socially and morally.

Be Neutral, that's all you have to do

Before Martin Luther King Jr. fought for equality of African-Americans people were then against them because people thought it disgraced them for accepting black people in their country to be equally treated. Majority of people in that age thought they were right, but how many of you do really agree to that ?

There were people who didn't agree to it even then and those were the visionaries. You don't need to be a supporter and participate in Gay Parades to really have no problem with LGBT, you can do that by showing it in your action and words. Being neutral about it is all you need to do. That's what I do. 

3/31/2015

News Channels Airing Biased News of "6 Man Beating a Woman"

Well I know the women in India are not treated equally and reason wise the Govt. has taken extra measures for Women, whereas it is a great step towards the welfare of women, but there exists a large number of women who abuses this advantage.

Recently Zee News and Star News (ABP News) India News aired a news where they showed an partially blurred censored video where they claim a man was beating a woman and they condemned the act that a man treated a women shamelessly and beat her in public.

This is the video:
http://zeenews.india.com/news/videos/watch-woman-professor-beaten-up-by-male-colleagues-in-delhis-coaching-centre_1570743.html

I watched the video, and the story is that the woman was the one who was using swear words for the man and when the man told him that it is not professional way to talk but she didn't stop and he took his phone out to take a video of her abusing him, as soon as he took out his mobile the women aggressively attacked the man in order to snatch his phone, and physically harmed him and thus sudden and natural reaction came from the man, he too hit her, which is natural as if anybody is
attacked like that, no matter if by a man or a woman, the two men standing aside soon stopped the fight and took them apart but later they were also blamed of beating the women in group which is completely false and the headline by the aforesaid News channels is "6 Man In A Cabin and One Woman Beaten Up".

I may ask one question, is this the way our News channels present a news ? Really a serious issue and should be raised up and as a responsible citizen it is important for me to make responsible news channels know about this.

This is a case of 2014 in the month of November, but now when the Woman was fired from her position from the council she used to work in she has come up with this video with those biased media channels who are without any proof supporting her blindly and hurting the man's reputation, whereas the woman's face was blurred up, the man's face was shown without any censor which totally might have ruined up his reputation.

I want you to take a look at the video they aired and see for yourself what actually happened and how that woman used the advantages unethically.

I believe a news channel should support truth and not a specific gender.

12/29/2014

Time Table for HSLC/AHM SEBA Assam 2015

The time table and schedule for the matriculation examinations 2015 held by SEBA is now out.