Friday, 28 February 2014

HBO True Detective : Clue Sheet - Part 2

The new penultimate episode 7 is just around the cornor.  In the True Detective Clue Sheet - Part 1 we saw a list of 7 clues. Those clues were seemingly too obvious. In this second part we focus on the least obvious clues. Hints that we might have totally missed. People whom we might have totally ignored. Let's talk of some alternate theories, which might totally surprise us.

Clue 1 : Episode 3 : The guy whom Lisa (Alexandra Daddario) takes home. The guy who is beaten and thrashed by Marty. Could this be our guy? It's a shot in the dark but hey you never know. Perhaps he's the guy who lures young girls and drives them towards the Yellow King for ritualistic killings. Well if he's the transport guy it would come as a big surprise. What say?



Clue 2 : Episode 3 : The gardener / mower at the old dilapidated "The Light of the Way" school which shut down in 1992 . He bears a striking resemblance to the Reggie Ledoux. I mean he too has some facial hair. Perhaps he's the real Tall Man (we can't figure out his height since he's sitting). Is he the real Reggie Ledoux? When Rust chats with him, he said that he worked for the parish and started just a few months ago. Suddenly Marty calls Rust back to the car and tells him that Ledoux skipped parole 8 months ago. I strongly feel that he is the real Reggie Ledoux. Bam ! This would be an in-your-face surprise.



The man who was shot by Marty in Episode 5 was perhaps a similar looking decoy planted by the real Reggie Ledoux.



Folks, I bet you must have watched the episode 7 preview a multiple times. Rust shows Marty the sketch of a guy with moustache and beard, saying he doesnt know where he is, but it ends with him. It perfectly matches the above gardener's looks. I feel like we might have hit the jackpot. He is the guy. 

Comments? Views? Thoughts? Theories? 

Blog Reflections

Wow. It's been a couple of months of active regular blogging. I never really thought I could write so much. But hey, here I am... IronCladZone is now almost 111 posts old and going strong :)

If you might have noticed, much of my content currently focusses on coding, programming & technology. I also do mix in some light hearted posts featuring music, movies, food, entertainment etc. I think such an approach gives a nice relaxed comfortable feel to the visitors visiting my blog. I mean imagine if you landed on my blog through some technical topic, you can also have some quick fun by reading posts on HBO or entertainment or some Hollywood movie or travel or photography. As I said previously, I plan to diversify the topics of interest so that, "there's something for everyone".

Though so far, technology appears to be the center point of this blog, I constantly think about diversifying it and widening it's scale. Folks, do drop in your thoughts, suggestions and views on how to enhance the quantity & quality of the blog so that it reaches a much bigger audience.

Info on Google Chrome with Java 7 on Mac OS X

Fact Check : Guys, did you know the following fact about Chrome : Google Chrome does not work with Java 7 on Mac OS X. Turns out that the 32-bit Chrome browser does not support Oracle Java 7 on Mac OS X.



Folks, please make a note of this, in case you're planning to upgrade Apple supplied Java 6 to Java 7.

Also note that Chrome works perfectly fine with Java 6 while other browsers like Mozilla Firefox & Apple Safari do support Java 7 out of the process.

Refer the following official Oracle Java link about this fact.

Chrome's 64-bit version is among it's future plans as listed on this Chromium Design Documents page.

Thursday, 27 February 2014

Tomcat Controller for Mac OS X

Folks, if you've installed Apache Tomcat on your Mac OS X machines for deploying webapps, this post will surely interest you. This quick byte is about a free small useful utility - Tomcat Controller, used for starting and stopping Apache Tomcat with a single mouse click.

Once downloaded, install it. Observe that it will add a new PrefPane in the System Preferences. It supports the newer 64-bit machines and older 32-bit machines as well. However, on newer 64-bit machines, am wondering why it closes and reopens the 32-bit System Preferences. Guys, do drop in your comments if you're aware of the reasons why it happens this way.


You simply have to mention the location pointing to the Tomcat instance. The current version 2.1 works like a charm for Tomcat 6 & 7 alike. Just click Start Tomcat Server. This comes in very handy if you have to bounce the server over and over again.


Finally, if you need some help with installing Tomcat & accessing the Tomcat manager, do refer my previous post. Bye.

Tuesday, 25 February 2014

Repositories in Maven - A Refresher

Before covering a topic on Nexus repository manager, let's first understand the various types of repositories in Maven. In Apache Maven, there are 3 basic types of repositories :

  • Local
  • Central
  • Remote
Let me quickly cover a few basics about each one of them :

The Local Repository is the local folder on your machine that you mention in the project's settings.xml with <localRepository> tags. This is where all the artifacts - plugin jars, dependencies and other configuration files that Maven downloads, would be stored. 

The Central Repository is http://repo.maven.apache.org/maven2 which redirects you to http://search.maven.org/#browse. If the dependencies are not found in the local repository, Maven attempts to download them from this central repository. This is Maven's official central repository, where you search for various artifacts. This is analogous and similar to Perl's CPAN for searching modules.

Note that at the time of build, the download of dependency is triggered only if the required dependency is mentioned in pom.xml.

On certain occasions, it may happen that the required dependency does not exist on either local or central repository. It may exist on some other Remote Repository. For instance : Jboss or Java.net repository. In that case we have to mention the remote repository url in the pom.xml so that at the time of build, Maven will scan pom.xml and download the dependency jars from the mentioned remote url.

Remember, the thumb rule for Maven's dependency management is as follows : 
  1. First it will search local repository for the dependency.
  2. If dependency is not found in local repository, it will download it from central repository. 
  3. If dependency does not exist on either local or central repository, it will download it from the remote repository url mentioned.
Guys, more Maven posts are in the pipeline. Lots of useful information is coming up. Be positive, stay healthy and enjoy your life :)

Samsung Galaxy S5 Launch - First Thoughts

Ever since the first Samsung Galaxy S I, the brand has rapidly evolved into a more matured, technologically advanced superior product. There's no doubt about it.

The latest Samsung Galaxy S5 promises to take the phone to yet another level. Bundled with a fresh new fingerprint scanner, heart rate sensor, it is powered by a faster 2.5GHz Quadcore processor.

Image Courtesy : The Verge



The phone now sports a fresh new 16MP camera with HDR recording capabilities. This seems to be an answer to Nokia Lumia camera phones.

The fingerprint sensor is a direct reply to Apple's fingerprint recognition. Though it's a bit slow, I guess this feature will improve over time ( in terms of privacy, security, reliability ).

This phone made with the tough looking industrial polycarbonate grants it a sturdy durable look from the rear. This makes it one of the perfect phones for extreme regular outdoor use. Let me explain why.

Consider the following scenario - you often visit the bars, restaurants and lounges after work or on the weekend. You often tend to use the phone while chatting up with your friends, girlfriends. You usually are inclined to keep the phone on the bar or the table - I mean the phone usually comes in direct contact with external surfaces like wood or stone or marble. Frequent usage leads to scratches on the back of of the phone. Right? In my opinion, the simple dotted polycarbonate rear cover design greatly reduces the chances of scratches and improves overall grip as well. Since you also never know when you would slip the phone from your hands while holding.

Image Courtesy : Engadget



What's more is that it is waterproof now - a direct answer to Sony's top-shelf Experia lineup. Yet another useful feature to protect the phone from spilled drinks and water. Now you can roam around the crowded bars fearlessly and worry-free.

The phone also comes loaded with a heart rate sensor - a great feature to capture a couple of health metrics. Well, reportedly it works with S-Health app for now, am wondering if it would work seamlessly with Strava. With this feature, Samsung tries to woo the niche athletics-oriented sportsmen as well as the fitness-savvy and health conscious crowd.

Overall, this product pushes the bar of the heavily crowded smartphone market. It tries to incorporate all the killer features of multiple rivals ( read Apple, Sony, Nokia ) and positions itself as the universal All-in-One multi-purpose superphone. This phone pitches itself as "Hey, I've got it all, you don't have to look elsewhere".

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.


List all Perl CPAN modules installed on the system

In order to list all the CPAN modules installed on a system, use the following command :

instmodsh

Now you'll see the following menu : 

Available commands are:
   l                      - List all installed modules
   m <module>   - Select a module

   q                     - Quit the program

cmd? l

On entering option l, it will display the complete list of modules installed on the system.

Eg: 

   Net::HTTP
   PDF::API2
   PDF::Report
   PDF::Report::Table
   PDF::Table
   Params::Validate
   Parse::CPAN::Meta
   Perl
   Perl::Destruct::Level
   Perl::OSType
   Probe::Perl
   SOAP::Lite

Wednesday, 12 February 2014

Oracle Weblogic 12c Installation Guide on Mac OSX

This post will walk you through the installation of Oracle Weblogic Application Server 12c on a Mac OSX machine.

First of all, visit the official Oracle Weblogic download page and download the latest generic version. You would need to create a Oracle ID first. Accept the agreement and start the download. In this example, we would download the Weblogic v12.1.2. The filename in this case is wls_121200.jar

Also, note that the generic version does not come with JVM / JDK for its installation. So make sure, you have Java installed on your machine.

Once downloaded, note the following steps :

Run the following command to initiate the installer

java -d64 -Dspace.detection=true -Xmx1024m -jar wls_121200.jar

This will start the extraction of the wls_121200.jar and also perform some routine system pre-requisite checks. Note the arguments that we passed. The space.detection parameter is set to true to detect available space. Also, the max memory usage size by JVM is set to 1024m i.e 1 GB.


Now, you'll the following installer GUI screens.



In the next screen, you'll see the option to modify or change location of Oracle_Home directory. Leave it to default option if you don't want to modify the location. Click Next.


In the following screen, you have to choose the type of installation. Choose the default option. However, choosing the Complete Installation will also install OPatch and some examples like medrec. 


In next screen, you can see the overall Installation summary. Save the response file if you intend to perform silent installations in the future. Check this link for reference. Click Next.


This will start the installation process. This will take a few minutes. You can observe the overall progress here.



Once the installation is completed, you'll see the following screen. Click Finish. This will initiate the next step - Configuration Wizard.


Below is the welcome screen of the Wizard.


Following is the first screen of the Configuration Wizard. Here you can set the Weblogic Administrator account and define the Parent domain location. Click Next.


In next screen, you'll see the progress of the domain creation.


Now, in the next and final screen, you'll see the Configuration success scene. Here you can check the option to start domain. Leave it unchecked, so that we can start it manually. Click Finish. That's pretty much a plain vanilla installation of Oracle Weblogic server 12c on Mac OSX machines.

In my next post, I'll cover how to start and stop Weblogic 12c and any associated issues related to it.

Monday, 10 February 2014

Info on decryptedFile.dmg - Mac OS X

I've come across many users who get confused or panicked, the moment they see something strange like "decryptedFile.dmg" in the Disk Utility. Well usually, it is the remnants of the last Flash Player install / update that you performed. Seemingly it is a harmless dmg. Although there is a well-known malware named Flashback, which disguises itself as the decryptedFile.dmg.

If you feel like it might be Flashback, check this link for detailed instructions on how to remove it manually. (Your system is clean if you have to jump from steps 1-3-8-9)

If its not the malware, then note these simple instructions for how to remove the harmless dmg from your system :
  • Open Disk Utility
  • From the left pane, control-click decryptedFile.dmg and choose the eject option
  • Again control-click decryptedFile.dmg and choose "Reveal in Finder" option.
  • Now, once you see the file in Finder (usually it's located in the sub-folders of /var/folders), delete it using Cmd-delete
Also, refer the following Apple Discussion page for more related content.

Types of Paper Shredders - A Comparison

In an office environment, all companies maintain sensitive documents. Over time, one is often required to shred and dispose the papers containing some valuable sensitive information. That's when a shredder comes into the picture, in order to shred huge volumes of paper in a short span of time.

The main advantages of using a paper shredder is its speed, its automation, ability of handle large volumes.

When it comes to paper shredders, there are roughly about 4 types of machines used for shredding (each identified by the style of shredding) as follows :
  • Strip-cut Shredders
  • Cross-cut Shredders (Confetti, Diamond cuts)
  • Micro-cut Shredders
  • Super-Micro-cut Shredders
Strip-cut shredders are the most basic, cheapest form of shredders. It cuts papers in strips. Note that, with some effort, these strips can be put back together and the document can be reconstructed. Hence these shredders are extremely the low level types and are not secure. These shredders are just perfect for basic home or small office use.

Eg : Fellowes 4690001 Powershred 90S 18-Sheet Strip Cut Shredder

Image Courtesy : Amazon

Cross-cut shredders add an extra level security by cutting the paper in cross cuts. Usually, in diamond or confetti cuts. This makes it more difficult to reassemble the pieces to reconstruct the original document. These can shred CD's and credit cards as well.

Eg : Swingline Hands-free 100-Sheet Super Cross Cut Shredder


Image Courtesy : Amazon

Micro-cut shredders are considered even more secure since they cut the papers in much smaller sizes than strip-cut. Just like the cross-cut varieties, these can shred CD's and credit cards as well.

Eg : SimplyShred 10-Sheet Micro Cut Heavy Duty Shredder


Image Courtesy : Amazon

Super Micro-cut shredders are even secure than micro-cut varieties since the cutting size is even much smaller. Thus making it extremely difficult to reconstruct the document.

Similarly, Confetti and Diamond shredders cut papers in specific shapes and are quite useful for extra added security.

Note that most good quality top-shelf products come jam-detection functionality to detect any paper jams. Check each product's specifications to suit your needs before buying.

If you plan to use shredders for heavy duty industrial purpose, then maybe you should try the following industrial strength products :

Intimus Cross Cut Shredder

Swingline CX40-59 Commercial Shredder

Thursday, 6 February 2014

Out of the Furnace 2013 - Limitless goofup

Hey guys, did you notice a weird thing on Google? When you google for "Out of the furnace", notice the topmost result. The 2-line description snippet of the IMDB link to Out of the Furnace, is actually the description for the Limitless movie. Is it just me or you see it as well? Looks like a Google goofup :)



Monday, 3 February 2014

Encrypt Tomcat Manager Password

In my previous post, we discussed about access to Tomcat Manager. In this post, we will discuss how to encrypt the Tomcat Manager password to make it more secure.

Recall that we had entered a plaintext password in the tomcat_users.xml file for access to Tomcat Manager. In this post we'll see how to encrypt the plaintext string using either SHA or MD5 encryption.

Go to bin folder within your Apache Tomcat home folder { eg: /usr/temp/apache-tomcat-7.0.47/bin }

Run the script digest.sh and pass your plaintext password to it in following way:

./digest.sh -a sha abc123  { For SHA encryption }  The output will give SHA encrypted password

abc123:6367c48dd193d56ea7b0baad25b19455e529f5ee

Alternatively use ./digest.sh -a md5 abc123 { If you intend to use MD5 encryption }

Note this encrypted password somewhere as you'd need this later.

Now, go to the conf folder and edit the tomcat-users.xml. Enter this encrypted password for the admin role instead of the plaintext password you entered previously for accessing tomcat manager.

Eg:

<user username="admin" password="6367c48dd193d56ea7b0baad25b19455e529f5ee" roles="admin-gui,admin-script,manager-gui,manager-script"/>

Now, lets edit the server.xml file, which also is present in the conf folder.

Search for the following text:

      <!-- Use the LockOutRealm to prevent attempts to guess user passwords
           via a brute-force attack -->
      <Realm className="org.apache.catalina.realm.LockOutRealm">
        <!-- This Realm uses the UserDatabase configured in the global JNDI
             resources under the key "UserDatabase".  Any edits
             that are performed against this UserDatabase are immediately
             available for use by the Realm.  -->
        <Realm className="org.apache.catalina.realm.UserDatabaseRealm"

Once you locate the above code block, we just have to add digest="sha" at its end.

<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
               resourceName="UserDatabase" digest="sha"/>

Check out the screenshot for reference


Restart the Tomcat server so that the changes take effect.

Inserting values in Perl Tk Listbox

Perl programming language can be used to design GUI interfaces as well. Some most known modules used for this are Tk, Prima, Gtk2, wxPerl. Most popular and broadly used module is the Tk module. Thanks to the extensive documentation and easy learning curve.

In this post, we'll cover a basic tutorial using Perl Tk. We will create a basic listbox and insert array values into it.

First of all, download the Tk module and install it. If you're not aware about how to install Perl modules, we'll cover those basics in another post.

Consider the following piece of code :

use Tk;
use Tk::Listbox;

#This is the array containing values, which will be inserted into the listbox

my @values1 = qw(China Russia India Brazil USA UK);

#This is the code for defining the main window size along with the window title.

my $m = MainWindow->new;
$m->geometry("320x300");

$m->title("Listbox values Example");

# This is the definition of the Listbox. Try tweaking its parameters to modify its design.

my $lb = $m->Listbox(
-background =>'Yellow',
-font => 'Helvetica',
-foreground => "Red",
-selectborderwidth => '2',
-selectmode => "single",
-width => "15",
-exportselection => 1
)->pack();

#This is the syntax for inserting values into the defined listbox.

$lb->insert('end', @values1);

MainLoop;

Save the program as ListBox_Eg.pl and run it. (perl ListBox_Eg.pl). The output window would be as follows :


Note the above code will work on Windows and OSX alike, since Perl is a platform independent programming language.

Change Owner of a stream in Clearcase

In IBM Clearcase, we can change the owner of a stream using the protect command. The protect command can be used to change permissions and ownership of VOB objects.

Eg:

clearool protect -recurse -chown TESTUSER -chgrp TEST_GROUP //Vob_Path

Note the -recurse switch used to recursively protect all the elements within the VOB.

Official detailed technote can be found here.
Related Posts Plugin for WordPress, Blogger...
eXTReMe Tracker