Monday, 24 February 2014

True Detective - Climax Clue Sheet - Part 1

True Detective - HBO's awesome mystery thriller whodunnit is almost reaching its climax. But hey, with each episode the plot thickens and each episode drops some significant clues. Let me put down some clues which seem to hold a key to the plot.

Clue 1 : The title "True Detective" with word Detective in singular is the first big clue. Also, in latest episode 6, Rust says to Marty "Without me, there is no you". Could this mean the plot resembles "The Fight Club"'s alter ego scenario ? Strange and supernatural ? Is Rust a figment of Marty's imagination?

Clue 2 : Episode 2 : Marty & Hart chat with deceased Dora Lange's mother. At one moment the camera zooms to a picture frame on the wall. This shows 5 men wearing conical masks surrounding a little girl. A hint to the esoteric pagan rituals perhaps.




Clue 3 : Episode 2 : The black star tattoos on the neck of victim's friend - Miss Carla. The Black Star significance is intermittently visible through the storyline. 




Clue 4 : Episode 2 : Marty tells Rust that the Sheriff Tate too has a stake in the whorehouse run in the woods. So assuming if there are 5 people involved in the ritualistic cult killings, the Sheriff also could be one of them or atleast knows who the killers are.

Clue 5 : Episode 2 & 5 : The Carcosa, the black stars & the Yellow King references in Dora's diary and their recurring references by the prisoner in Episode 5 who tries to cut a deal with Rust in return for tips and information.



Clue 6 : Episode 3 : Also, Maggie's grandfather is seen drinking a Lone Star beer while chatting with Marty. This seems to be a subtle hint that he might be involved as well, since Rust drinks Lone Star beer all along the interrogation. Also, note the fact that Marty's daughter created the setup of miniature dolls on floor ( girls surrounded by men ). Perhaps she saw the gangbang like orgy act with her own eyes.



Clue 7 :  Episode 5 : If you pay attention, Rust carves out exactly 5 men from the empty beer cans from the available 6-pack. He smashes one can into a flat circle. This definitely seems to have significance to the plot - highly indicative of involvement of 5 men in the gruesome killings.



Folks, if you have any theories, any clues, any hints, do comment in your suggestions, which can be included in the Climax Clue Sheet - Part 2

Installing Apache Maven on Mac OS X

Well, all new Mac machines loaded with Lion and above, come pre-installed with Maven. In order to find out which version is installed on your machine by default, just type the following in terminal :

mvn -version

Mine came pre-loaded with v3.0.3 and the default Maven Home was set at /usr/share/maven

However you if want to upgrade the version or configure the Maven Home to a different location, perform the following steps :

  • After downloading, unzip it and copy the entire folder to some other directory. Let's say for instance - /usr/lib/apache-maven-3.2.1
  • We now need to a couple of environment variables to our bash profile. In terminal, type vi ~/.bash_profile and insert the following variables to it ( i for insert ).
  • Now lets add the environment variable M2_HOME so type export M2_HOME=/usr/lib/apache-maven-3.2.1
  • Also define the M2 environment variable so type export M2=$M2_HOME/bin
  • Next type export PATH=$M2:$PATH and save .bash_profile and quit ( :wq )
  • Finally type source ~/.bash_profile. Note that when you close and open a new shell, the same settings will be intact.
Confirm the new settings by typing mvn -version to see the updated Maven version and home.
Congratulations, you just customised Maven on your machine. 

Just as am writing this post, am thinking about some stuff about Nexus repository manager which will enable you to manage your Maven repositories. Never mind, I'll cover Nexus in another upcoming post. Stay tuned :)

Sunday, 23 February 2014

Disable Google Chrome Notifications on Mac OS X

All Mac OS X users using Google Chrome browser might have recently noticed a new Google Notification icon ( a grey bell ) on the OSX menu bar.

You'll quickly notice that it's settings menu does not provide any intuitive way to exit or disable it.

In order to disable it, do the following :

Open Google Chrome browser.

In address bar, type chrome://flags

Now search for the option "Enable Rich Notifications" and change "Default" to "Disabled" from its drop down menu. Hope it helps.


Saturday, 22 February 2014

Luxury Uber launches in Mumbai

Uber - the luxury pickup company has launched its operations in Mumbai. The current car fleet will feature Audi A8 and Mercedes E-class as well.

Signup now at this link and enter the promo code UberMumbaiLaunch to avail 2 free rides, valid till March 31 '14. Make sure you own an iPhone or an Android fone.

Costs : 

Base price : INR 100

For every kilometer : INR 17

Per minute surcharge : INR 2




Friday, 21 February 2014

Getopts Tutorial - Command line options in Perl

In Perl, if we want the user to pass certain options at command line, we can define the switches in the program code using Getopts. Following is a brief tutorial underlying it's usage with a practical example.

First of all, search the CPAN for Getopt and you'll see a lot of available modules - each with a slightly distinct functionality. All serve the same purpose though - providing a framework for passing user-defined command line options.

Now, install either the Getopt::Long or Getopt::Compact or Getopt::Lucid module from CPAN. I assume you know how to install modules from the terminal. If not, dig in through this blog. You'll get the answers.

In this example, I'll use the highly rated Getopt::Long module. Make sure you refer the module's official documentation link for more details. The following illustration is about it's simple basic usage, just to give you a feel. I'll cover an advanced usage tutorial for this module in another post.

Ok guys, enough talk. Lets code some stuff. Here we go...

use strict;
use warnings;
use Getopt::Long;

my $name;
my $location;

GetOptions (

               'name=s' => \$name,
               'location=s' => \$location,
);

if ($name) {
          print "Welcome $name \n";
}

if ($location) {
          print "Hows the weather at $location \n";

}

Here, "name" and "location" are the options to which we pass an argument. Note that we have mentioned name=s and location=s. The alphabet 's' implies the switch will be of string type. If you want the switch to be of integer type, use i. ( Eg : 'age=i' => \$age ).

Also, the equal sign = indicates that it is a mandatory option. If you want an option to be optional, use the colon : sign ( Something like - 'help:h' => \$help ).

Save the program as Getopts_Ex.pl and now open the terminal. From the command line, run the program as follows :

perl Getopts_Ex.pl -name "IronCladZone" -location "New York"

The output would be as follows :


Note that you have to pass an argument for each mandatory option. If you don't pass an argument, you will get an error. You can also play around by defining a separate function with customized error messages or switches' usage. This can be extremely helpful to a newbie or a layman, informing him how to run the program and how to use the custom switches defined in the script.

The above code contains print statements within the "if" block. You can instead tweak the "if" block to call custom user-defined functions a.k.a subroutines from here and put the print codes in the subroutine. The output will be the same, but the below structure makes it more graceful and secure. In fact, I plan to cover the topic of subroutines in another fresh post. Stay tuned for that as well.

use strict;
use warnings;
use Getopt::Long;

my $name;
my $location;

GetOptions (

               "name=s" => \$name,
               "location=s" => \$location,
);

if ($name) {
          func_name();
}

if ($location) {
          func_location();

}


sub func_name()  {
            print "Welcome $name \n";
}

sub func_location()  {
            print "Hows the weather at $location \n";
}

Folks, do let me know your comments about this post and suggestions on how to improve the quality of the content. Ciao.

Tuesday, 18 February 2014

Repeat last run command in Linux, Unix, OSX

In order to repeat the last run command on Linux, Unix, Apple OS X machines, type the following in terminal :

!!

Yes. That's precisely 2 exclamation marks.

Monday, 17 February 2014

Perl Message Box Tutorial

Previously, we covered the Perl Listbox example using the Tk module. In this post, we will discuss about using Tk to create a simple Message Box.

First of all, install the Tk Msgbox module from the command line as follows:

sudo cpan Tk::MsgBox

Then consider the following code snippet : 

---------------------------------------------------------

use Tk;
use Tk::MsgBox;

my $m = MainWindow->new;

my $x = $m->MsgBox(
-title=> 'Perl MsgBox Example'
-message=> "Welcome to Tk Message Box"
-type=> 'okcancel'
);

my $button = $x->Show;

---------------------------------------------------------

The output window will be as follows :


In above example, we've used the okcancel box type. The msgbox type can be changed to one of the following : ok, okcancel, yesno, yesnocancel, retrycancel, abortretrycancel.

Even the info icon can be changed to error, warning types if needed.


Related Posts Plugin for WordPress, Blogger...
eXTReMe Tracker