Thursday, December 4, 2014

flock - All u need to know abut file locking in perl




Some times we need control over  read and write over files operation. File locking comes for rescue.

Though Perl provide many function to control over  file locking operation. I found flock function is the best.

Perl monks has a great tutorial for flock and operation and usage . Simple usage  and operation number and their meaning.


  sub LOCK_SH { 1 } ## shared lock
  sub LOCK_EX { 2 } ## exclusive lock
  sub LOCK_NB { 4 } ## non-blocking
  sub LOCK_UN { 8 } ## unlock 





Sunday, August 10, 2014

all u need to know about perl unit testing

Hi
I have been using Test::Simple, I always wanted to know about Test::More

In the below talk James has been able to easily capture all important modules and function offered by them especially ok, is,  and like

Check out the video , 56 min worth spending :)


 

Thursday, June 19, 2014

RESTfull Love service Triangle

Hi All ,

 Today I will be writing little about RESTful api (Represntational state transfer) , kind of web service.Now day every  application (generally mobile application) and good website will provide one
of these services to the programer to interact more and develop application on top of it.





 So to start with REST u should be knowing these 3 terms (mug it) (also REST triangle)
1. noun
2.verb
3.content-type

In rest , noun is URL identifier (eg. www.example.com ).
Verb   is the action to be taken HTTP request method eg GET to read , POST to create, PUT to update and DELETE to delete.

Wednesday, May 14, 2014

Why I have started prefering viber over skype on my linux box for messaging!!

Recently , I installed the viber on my linux machine (ubuntu 14.04) for my development box just enthusiastically and found the above my expectation  as compared  skype linux version.

Lets begins with the login , where I used my mobile no and it automatically synced my login to mobile contact. So for now onward I am getting into habit of messaging my friends on viber in place of whatsapp. That is a huge gap in skpye,  which identification element is your mail/ facebook login.

Next comes the gui, the gui of viber for the linux flavour is more friendly intuitive. I do not think any one will disagree on this (again I will highlight I am the linux version).

What left me in miserable state while using viber was about the call quality. I cant neither hear sound or my mic is working for viber , that is not the case for skype. (bug)

 Hope , viber development team will soon be resolving these issue.

Saturday, April 12, 2014

SQL Fiddle - Cloud way test your query and schema.




Most of the times, we are in need to validate our query with the test data for validation purpose and proof of concept.
Recently I came across the SQL Fiddle and got hooked to it to validate my query to match the expected results.

SQL Fiddle not only provide list of database including oracle and also a new cloud base tool to validate your query and sharing your schema over various forum


Tuesday, April 8, 2014

Overriding the core function/ subrotine in perl

Though its not recommended but some times we are in need to change or extend the core functionality of inbuilt Perl function/ subroutine.

This can be easily implemented in the following way. I have created a small gist for changing the core functionality.( Just for fun)



You can read it more in perdoc .

Tuesday, March 25, 2014

Interview experience for perl developer with booking.com

Recently I had an opportunity to give the interview for booking.com for perl developer.

I got the call from the HR after 2 week from the CV submission date. Initial HR round was very simple . Introduction about the company and kind of work you are expected to do, the team strength etc

The online interview with the technical people was arrange after 2 people with 2 perl developer. The interview was about perl.

Saturday, March 8, 2014

Learning the SQL by practising online - SQLZOO




SQL is standard language to access and manipulation data in MySQL and Oracle.

Although SQL is quite easy to learn and has limited syntax, but the concept of using mainly DDL (Data Definition Language) ,DML (Data Manipulation Language) and DCL (Data Control Language) take time to understand or to get accustomed to make use of  when it is required. (ref)

As far as , Learning SQL and grasping the syntax may be quite easy to begin with (lot of online resource are there) , but to get the required data for the  real world problem might be not that much easy and may require practice.

SQLZOO is website where you have opportunity to practice these problem, to sharpen your skill and to test what you have acquired. The best thing of this website , it support all type of database engine (Oracle, MySQL etc) and has many problem to practice.

Problem start with a scenario and will ask you to use specific DML , to get the required results.

Great website to start with your SQL training and hone your ability.

Wednesday, January 1, 2014

tosdr.org - a new initiative to explain the goods and hidden bad in the service terms you are signing




Now day We are signing new account now and then.  Each service provider has it own sets of "term of service". These terms are bulky and  usually ignored by the end user before signing.

Now a new initiative called tosdr.org, can help know the goods and hidden bad in simple layman terms about the service , you are about to signed or have signed already. They have simple rating system very good A to very bad (E).