Saturday, March 9, 2013

Marissa Mayer (CEO of Yahoo) - Got Million dollar as a bonus with in 6 months

Marissa Mayer CEO of YAHOO getting her first half annual bonus as 1.12 Million, at the same time
her salary is also 1 Million per annum. This bonus was based upon her achievements with
in this 6 months, She joined on July 16, 2012 at YAHOO.. Previously she worked with GOOGLE.
She joined google in 1999 as first female employee of google.
   
                                                         
The million-dollar payment is probably considered pretty much a bargain by investors, since the shares of Yahoo have risen close to 50 percent since she arrived. That’s been based largely on hopes that Mayer can turn the company around, and on the actual stellar performance of its Alibaba Group stake in China.

CFO Ken Goldman, who joined in October, was not eligible for a bonus in 2012, but was awarded a discretionary one of $100,000 nonetheless. He is also eligible for a 90 percent bonus in 2013, based on a $600,000 annual salary.



Friday, March 8, 2013

Setting Cron job with cakephp 2.0 in Easy steps

 
Setting Cron job with cakephp 2.0 in Easy steps: 
 
In some cases we need to do some process automatically every day /every hour / every week. For this 
we can use the Cron job. To see more about Cron Job Click here.
 
This example will shows that sending email to customers every 6 hours based on some  conditions:
 
My Project name is Sample and the Sample folder contains the following folders:
Sample
  — app
   — Controller etc
  —  lib
  — vendors
  — plugins
 
 
Step 1:  Go to the following folder
           Project folder/app/Console/Command/ 
 
Step 2: Create a file named MyShell.php  (You can create the file as per your own risk like SampleShell, CalShell etc)
 
Step 3: Paste the following code in that file. 
 
   class MyShell extends Shell {
    function main()
    {
        App::import(‘Component’, ‘BusinessLogic’);
        $businessLogic = & new BusinessLogicComponent();
        $businessLogic->initialize();
        $settings = $businessLogic->senReminderEmail();
           // senReminderEmail Mail function is defined in my Controller/Components/BusinessLogicComponent.php File
    }
    function expireMail()
    {
 App::import(‘Component’, ‘BusinessLogic’);
        $businessLogic = & new BusinessLogicComponent();
        $businessLogic->initialize();
        $settings = $businessLogic->senExpireEmail();
     // senExpireEmail Mail function is defined in my Controller/Components/BusinessLogicComponent.php File
    }
}
?>
 
 
Step 4 : Go to the following folder:   Project folder/app/Vendor/Shell/
            Inside that create a file name called cron.sh and paste the following code.  Give 777 permission to this file.
 #!/bin/bash
# lock logic for semaphore – http://mywiki.wooledge.org/BashFAQ/045
lockdir=/tmp/cron_sh.lock
echo >&2 “$(date ‘+%Y-%m-%d %H:%M:%S’)
 
 #################################################”
if mkdir “$lockdir”
 then    # directory did not exist, but was created successfully
     echo >&2 “successfully acquired lock: $lockdir”
 
##########################################################
 
# —————————————————————–
# Project name —>
# =========
 
 
# Project folder/lib/Cake/Console/cake – app  Project folder/app cron
/var/www/Sample/lib/Cake/Console/cake – app /var/www/Sample/app cron
################################################################
rmdir “$lockdir”
 else
     echo >&2 “cannot acquire lock, giving up on $lockdir”
     exit 0
 fi 
 
Step 5: To check that the cron functions are working or not, Go to the following folder in terminal
 Project folder/app/  #example  /var/www/Sample/app
and run the following Command :
 
 /var/www/Sample/app$  Console/cake myshell
The above line will execute the main function that we written in the MyShell.php file
To call other function just Console/cake my function_name
example: Console/cake my expireMail
 
Check the above functions are executing without any errors. If it executes with out any error then go for next step
 
Step 6: Now we are going to set the crontab. Just go to the Project folder through terminal and type crontab -e
 
It will open the editor in that paste the following code:
#The below line will execute the function every 6 hours
# *  */6   *    *   * /var/www/Sample/app/Console/cakeshell  my -cli /usr/bin -console /var/www/Sample/lib/Cake/Console -app /var/www/Sample/app
 
#The below line will execute the function named “expireMail” from myshell.php every 6 hours and it will log the execution in to the Home/error_file.log file
# *  */6   *   *   * /var/www/Sample/app/Console/cakeshell  my -cli /usr/bin -console /var/www/Sample/lib/Cake/Console -app /var/www/Sample/app >> ~/error_file.log
 
 

Saturday, December 1, 2012

Jon Skeet தமிழ் இல் எனது முதல் பதிவு

  ஜோன் சகீத்  இவரை  பற்றி  தெரியாதவர்கள் இந்த லிங்க்  பார்கவும் .

Jon Skeet .இவர்  ஒரு சிறந்த ப்ரோக்ராம்மர் . இவருடைய அறிவை இதுவரைக்கும் எவரும் எட்ட வில்லை  என்று நினைகின்றேன்.தற்பொழுது  பணி புரிவது GOOLGE. .

இவர்   நம்ம ரஜிகாந்த்  போல சூப்பர்  ஸ்டார் .









இதோ  அவரை  பற்றி   சில வேடிக்கையான உண்மைகள் :


* இவர் எழுத்திய     ப்ரோக்ராம் கோடு வேலை செய்ய வில்லை என்ன்றால் கம்ப்யூட்டர் கம்ப்யூட்டர் ரே  இவரிடம் ம மன்னிப்பு கேக்கும் மாம். 

* இவர் கூகிள் இல்   எதாவது தேடினால் கூகிள் இன் பதில் "தயவு செய்து என்னக்கு கொஞ்சம் அவகாசம் கொடுகங்கள் ".

* ஒரு இன்பிடே For LOOP இவர் நினத்தால் அது தானாக நின்று  விடும்.

* Stackoverflow இல் கேக்க பட்ட ஒரு கேள்விக்கு  வெறும் 42 நொடிகளில் சரியான பதிலை கொடுத்து  உள்ளார்.

* இவரை  புஜியைதால் வகுக்க முடியும்.

* நீங்கள் கூகிள்இல் "குரு" என்று தேடியானால் , அது ""Did you mean Jon Skeet?" என்று பதில் அளிக்கும்

* இவர் ப்ரோக்ராம் Nullயை பாயிண்ட்  பண்ணும் பொது Null value பயந்து விடுமாம்.

* இன்று வரை Stackoverflow தளத்தில் முதல் இடத்தில் உள்ளார். மேலும் பார்க்க
http://stackoverflow.com/users/22656/jon-skeet

*மாற்ற முடியாத நபர் இவர் .ஏதாவது மாற்ற நடக்கிறது என்றால், அது பிரபஞ்சம் முழுவதும் இருக்க வேண்டும். அப்பொழுது  தான்  இவர்  மாறுவார்

* இவருக்கு DEBUGGER தேவை  இல்லை. இவர் எழுதிய கோடு இவரிடம் மன்னிப்பு கேக்கும் வரை பிழையை ஆய்வு செய்வார்.




Friday, February 11, 2011

Great Amazing Trick in GMAIL


Suppose There is a Gmail account : sample@gmail.com
having password : abcd

You will get logged in to example@gmail.com If you use
email as : s.ample@gmail.com
password : 123456
email as : sa.mple@gmail.com
password : 123456
email as : sam.ple@gmail.com
password : 123456
email as : samp.ple@gmail.com
password : 123456


That means gmail does not count periods (.). So isnt its Great ...

So you can use this trick for using the same email for various Social networking accounts(Twitter,Facbebook ) as they interpret all the above emails as different but gmail considers it the same.

REFERNCE : http://www.isoftdl.com/

Hide any file inside JPEG image manually


Steps to Hide any File behind JPEG image Manually
1. Create an folder into C drive (recommendation is that use this C:\Hidden).

2. Now gather all files that you want to hide in this folder.

3. Now add these all files to compressed .rar file using winrar
(example myhiddenfiles.rar ).
Note: This rar file should be in the same directory (i.e. C:\Hidden)

4. Now Select the JPEG file that you want to use to hide the above content
(say myimage.jpg). Put this image file also in the same folder that is in C:\Hidden

5. Now, open Command Prompt (Go to Run and type ‘cmd‘). Make your working directory C:\hidden.
(When you open CMD you will get like C:\Documents and settings\username (something like this)
Now type cd.. and press enter and then again type cd.. and press enter. Now you have something like this in cmd C:\ . Now in front of that type cd "Hidden" and press enter. )

6. Now type: “COPY /b myimage.jpg + myhiddenfiles.rar outputimage.jpg” (without quotes) - Now, myimage.jpg is the picture you want to show, myhiddenfiles.rar is the file to be hidden, and outputimage.jpg is the file which contains both....

7. Now, after you have done this, you will see a file output.jpg in C:\hidden. Open it (double-click) and it will show the picture you wanted to show. Now try opening the same file with WinRAR, it will show the hidden archive...

This hack will help us to hide things behind the JPG file

REFERNCE : http://www.isoftdl.com/


Monday, February 7, 2011

Google Ready to pay $20,000, If You hack Chrome ? Are you ready




Now Chrome is the only browser of the big four - , Firefox, Safari, and Internet Explorer being the other three -- to escape the Pwn2Own hacking competition unscathed the past two years. (Sorry Opera aficionados, looks like there's not enough of you to merit a place in the contest... yet.) Evidently, its past success has Google confident enough to pony up a cool $20,000 and a CR-48 laptop to anyone able to find a bug in its code and execute a clean sandbox escape on day one of Pwn2Own 2011. Should that prove too daunting a task, contest organizer TippingPoint will match El Goog's $10,000 prize (still $20,000 total) for anyone who can exploit Chrome and exit the sandbox through non-Google code on days two and three of the event. For those interested in competing, Pwn2Own takes place March 9th through 11th in Vancouver at the CanSecWest conference. The gauntlet has been thrown -- your move, hackers.

What Kind of iPhone Owner Are You?



7 Types of iPhone Users by All Area Codes