Tuesday, October 8, 2013

Hack new Yahoo Mail!


Yahoo Mail is back with a Bang! 

By now you must have heard that Yahoo have launched much cooler Mail

However, to make it much usable, I'm trying with few Hacks.

* Increase the Message Read Pane Area (stretch)
In Mailbox vertical split, Inbox area is hardly using 65% of my screen width, and right most ~20% of the area is unused (Ads, Banners!). Moreover, my content viewable area is quite small.
  1. Check if you have Greasemonkey or Tempermonkey installed in your browser.
  2. Install the following script there:
    1. // ==UserScript==
      // @name       Ymail stretch
      // @namespace  http://vishnu-agarwal.blogspot.com/
      // @version    0.1
      // @include    https://in-mg0.mail.yahoo.com/neo*
      // @description  stretches the new YMail Inbox area
      // @match      https://in-mg0.mail.yahoo.com/neo/*
      // @copyright  2012+, You
      // ==/UserScript==
      
      if(ele = document.getElementById('shellcontent')) ele.style.width='1300px';
      

Done!

Will update the post with more tweaks!


References:
1. https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo
2. http://vishnu-agarwal.blogspot.com/2010/03/introduction-to-greasemonkey.html
3. http://yahoo.tumblr.com/post/63462971435/yahoo-mails-sweet-16-is-sweet-a-brand-new-view




Thursday, February 7, 2013

Webinar : Selenium Test Automation

Wednesday, Feb 13, 2013 5:00 PM IST

In current era, the software project deliveries are getting very fast paced to meet the strong growing demands from the customers and users esp. on the web application side. The competition is hot and teams which will fail to deliver fast, on time and with high quality will loose out in the race to win the customers and users.  
 
Testing forms a crucial part of the achieving these objectives. Banking just on manual testing may slow the pace and increase the business risk. Hence, there is lot of demand from testing professionals to automate web application testing and hence ensure faster test results and higher test coverage.   

"Selenium automates browsers." That's it

Selenium is one of the most popular tool to achieve this objective.It is widely used due to its robustness and unique features. It does not incur additional cost to company to acquire this tool as it is open source and free and is backed by some of the leading software companies. Those who become skilled in this tool and its technology will gain to stand to grab opportunities coming up in the market place and better their career prospects as software testing professionals.  

Key Learning Areas:  
  • What is Selenium IDE?
  • What is Selenium RC?
  • What is Selenium Grid?
  • What is Selenese?
  • What is Selenium Web Driver?
  • What is Selenium 1.0 vs 2.0?
  • Can we do parallel test execution using Selenium?
  • Why to use Selenium?

Speaker's Biography

Ganesh Sahai has done B. Tech. from IIT Delhi (1993) and EGMP from IIM Lucknow. He has been founder, co-founder and founder team member of few start up companies and initiatives in the field of information technology, marketing and academics.


He has worked for 12 yrs at Adobe since 1999. He has led and setup many of the key testing teams from scratch for various Adobe products, like, Acrobat, Adobe Reader, AIR, CS (Creative Suite) , Tools etc. spanning desktops, handhelds (mob. phones etc.), hosted and enterprise area .


Resources /Reads about Selenium:
Webinar Recording:

Wednesday, January 2, 2013

Hacking Mac : Useful installations & shortcuts

Some of the software usually you'll love to have:


Mac Installers:
  1. iSync (not available for Mountain Loin)
  2. Adobe Reader
  3. Adobe flash player
  4. Adobe Air
  5. Twhirl
  6. Evernote
  7. OneNote
  8. Picasa
  9. Adium
  10. Alfred
  11. Skype
  12. Chrome
  13. VLC
  14. Keepassx
  15. X11 and XQuartz (Macport)
  16. MySQL (mysql/php configuration)
  17. Skitch
  18. Sublime 2
  19. SilverLight
  20. ImageMagick
  21. Ntfs-3G
  22. Java & eclipse
  23. GreaseMonkey / TemperMonkey Script - firefox/chrome
Commands:
  1. Install .dmg from Command Line : hdiutil mount cotvnc-20b4.dmg 
*nix Commands:
In Mac Terminal:

  1. ls -lSr : list files (-S for sort by size)
  2. cd - :  to swap directories to the previous working directory
  3. for f in *.txt;do echo $f;done : Looping over a set of files
  4. find . –name "*.txt" –mtime 5 : files & folders modified in the last 5 days
  5. rename –v 's/foo/bar/g' * : Rename files using regular expressions
  6. mv /path/to/file.{txt,xml} #rename just part of a filename
  7. cp /etc/rc.conf{,-old} #Backup of the file
  8. sudo !! #represent the last command you ran
  9. mkdir my{1,2,3} #will create my1,my2 & my3 folders
  10. Bash Shortcut 
    1. Ctrl + U: Clears the line from the cursor point back to the beginning.
    2. Ctrl + A: Moves the cursor to the beginning of the line.
    3. Ctrl + E: Moves the cursor to the end of the line
    4. Ctrl + R: Allows you to search through the previous commands.
  11. Using Alias : Some useful examples
    1. alias agi='sudo apt-get install'
    2. alias emp='cd /usr/local/mysql/data/employee'
    3. alias grep='grep --color'
    4. alias ls='ls –l' # if you always wanted ls to actually do ls –l


Some shorcuts:
  1. Shift + Command + I : Compose outlook
  2. Shift + Command + N : New Folder
  3. Shift + Command + 4 : Screen Capture
  4. Command + Alt + D : Dock Hide / Unhide
  5. Command + Alt + Esc : Force Quit
  6. Command + M : Minimize
  7. Command + H : Hide 
  8. Command + D : Clone in finder
  9. Command + Q : Quit
  10. Command + I : File Info
  11. Command + S/C/V : Save/Copy/Paste
  12. Command + Delete : Delete
  13. Enter / Return : Rename
  14. Space : Quick Info
  15. Command + Space : Spotlight
  16. Delete : Backspace
  17. Delete + fn : Delete
  18. Command + Z : Undo
  19. Command + Shift + Z : Undo
  20. Command + Left : beginning of line
  21. Command + Left : Ending of line
  22. Alt + arrow : jump by word
  23. Command + Alt + I : Inspector in Browser
  24. Shift + Ctrl + arrow: Word selection
  25. ctrl + arrow : Desktop switch
  26. Lock Screen : Enable Hot Corner

Wednesday, August 29, 2012

BootStrap from Twitter


Twitter BootStrap
What is BootStrap?
It a front-end open source toolkit for rapidly developing web applications. It is a collection of CSS (CSS3) and HTML(HTML5) conventions.
It uses some of the latest browser techniques to provide you with stylish typography, forms, buttons, tables, grids, navigation and everything else you need in a super tiny (only 6k with gzip) resource.

Technologies used in it?
HTML/HTML5, CSS/CSS3, jQuery (but not limited to these J )
  • By nerds, for nerds! Built at Twitter by @mdo and @fat, Bootstrap utilizes LESS CSS, is compiled via Node, and is managed through GitHub to help nerds do awesome stuff on the web.
  • Made for everyone! Bootstrap was made to not only look and behave great in the latest desktop browsers (as well as IE7!), but in tablet and smartphone browsers via responsive CSS as well.
Benefits?
  • A clean and uniform solution to the most common, everyday interface tasks developers come across
  •  Light weight,   Easy & faster development
  • Well tested across OSs & Browsers ( ie6 users please excuse J ) 
I want to try!
·         Site : http://twitter.github.com/bootstrap/
·         Download : http://twitter.github.com/bootstrap/
·         Complete Documents : http://twitter.github.com/bootstrap/scaffolding.html

Note, the above sites/links itself built in bootstrap.

References:

Thursday, May 10, 2012

YUIDoc JavaScript documentation generator released

Today was the official release of the new YUIDoc JavaScript documentation generator. YUIDoc is a Node.js application that generates API documentation from comments in source, using a syntax similar to tools like Javadoc and Doxygen. YUIDoc is currently powering the API documentation for YUI and has been actively updated over the last year.


YUIDoc provides:
  • Live previews YUIDoc includes a standalone doc server, making it trivial to preview your docs as you write.
  • Modern markup YUIDoc’s generated documentation is an attractive, functional web application with real URLs and graceful fallbacks for spiders and other agents that can’t run JavaScript.
  • Wide language support YUIDoc was originally designed for the YUI project, but it is not tied to any particular library or programming language. You can use it with any language that supports /* */ comment blocks.

See the blog post for more details:
http://www.yuiblog.com/blog/2012/05/09/yuidoc-0-3-0-is-official/

Monday, May 7, 2012

Gmail Keyboard Shortcuts


Keyboard shortcuts help you save time by allowing you to never take your hands off the keyboard to use the mouse. You'll need a Standard 101/102-Key or Natural PS/2 Keyboard to use the shortcuts.

To turn these case-sensitive shortcuts on or off:
  1. Click the gear icon in the upper right, then select Settings.
  2. Choose the option next to "Keyboard shortcuts" to turn them on. You can also enable shortcuts automatically by going to http://mail.google.com/mail/?kbd=1

Shortcut Key Definition Action
c Compose Allows you to compose a new message. + c allows you to compose a message in a new window.
/ Search Puts your cursor in the search box.
k Move to newer conversation Opens or moves your cursor to a more recent conversation. You can hit to expand a conversation.
j Move to older conversation Opens or moves your cursor to the next oldest conversation. You can hit to expand a conversation.
n Next message Moves your cursor to the next message. You can hit to expand or collapse a message. (Only applicable in 'Conversation View.')
p Previous message Moves your cursor to the previous message. You can hit to expand or collapse a message. (Only applicable in 'Conversation View.')
o or Open Opens your conversation. Also expands or collapses a message if you are in 'Conversation View.'
u Return to conversation list Refreshes your page and returns you to the inbox, or list of conversations.
e Archive Archive your conversation from any view.
m Mute Archives the conversation, and all future messages skip the Inbox unless sent or cc'd directly to you. Learn more.
x Select conversation Automatically checks and selects a conversation so that you can archive, apply a label, or choose an action from the drop-down menu to apply to that conversation.
s Star a message or conversation Adds or removes a star to a message or conversation. Stars allow you to give a message or conversation a special status.
+ Mark as important Helps Gmail learn what's important to you by marking misclassified messages. (Specific to Priority Inbox)
- Mark as unimportant Helps Gmail learn what's not important to you by marking misclassified messages. (Specific to Priority Inbox)
! Report spam Marks a message as spam and removes it from your conversation list.
r Reply Replies to the message sender. + r allows you to reply to a message in a new window. (Only applicable in 'Conversation View.')
a Reply all Replies to all message recipients. +a allows you to reply to all message recipients in a new window. (Only applicable in 'Conversation View.')
f Forward Forwards a message. + f allows you to forward a message in a new window. (Only applicable in 'Conversation View.')
Escape from input field Removes the cursor from your current input field.
+ sSave draft Saves the current text as a draft when composing a message. Hold the key while pressing s and make sure your cursor is in one of the text fields -- either the composition pane, or any of the To, CC, BCC, or Subject fields -- when using this shortcut.
# Delete Moves the conversation to Trash.
l Label Opens the Labels menu to label a conversation.
v Move to Moves the conversation from the inbox to a different label, Spam or Trash.
+ i Mark as read Marks your message as 'read' and skip to the next message.
+ u Mark as unread Marks your message as 'unread' so you can go back to it later.
[ Archive and previous Removes the current view's label from your conversation and moves to the previous one.
] Archive and next Removes the current view's label from your conversation and moves to the next one.
z Undo Undoes your previous action, if possible (works for actions with an 'undo' link).
+ n Update current conversation Updates your current conversation when there are new messages.
q Move cursor to chat search Moves your cursor directly to the chat search box.
y Remove from Current View* Automatically removes the message or conversation from your current view.
  • From 'Inbox,' 'y' means Archive
  • From 'Starred,' 'y' means Unstar
  • From 'Trash,' 'y' means Move to inbox
  • From any label, 'y' means Remove the label
* 'y' has no effect if you're in 'Spam,' 'Sent,' or 'All Mail.'
. Show more actions Displays the 'More Actions' drop-down menu.
+ Opens options in Chat
  • + moves from edit field in your chat window to select the 'Video and more' menu
  • Next, press to select the emoticon menu
  • Press to open the selected menu
? Show keyboard shortcuts help Displays the keyboard shortcuts help menu within any page you're on. (Note: Typing ? will display the help menu even if you don't have keyboard shortcuts enabled)
k Move up a contactMoves your cursor up in your contact list
jMove down a contactMoves your cursor down in your contact list
o or
OpenOpens the contact with the cursor next to it.
uReturn to contact list viewRefreshes your page and returns you to the contact list.
eRemove from Current GroupRemoves selected contacts from the group currently being displayed.
xSelect contactChecks and selects a contact so that you can change group membership or choose an action from the drop-down menu to apply to the contact.
Escape from input fieldRemoves the cursor from the current input
#DeleteDeletes a contact permanently
lGroup membershipOpens the groups button to group contacts
zUndoReverses your previous action, if possible (works for actions with an 'undo' link)
.Show more actionsOpens the "More actions" drop-down menu.



Combo-keys - Use the following combinations of keys to navigate through Gmail.
Shortcut Key Definition Action
then Send message After composing your message, use this combination to send it automatically. (Supported in Internet Explorer and Firefox, on Windows.)
y then o Archive and next Archives your conversation and moves to the next one.
g then a Go to 'All Mail' Takes you to 'All Mail,' the storage site for all mail you've ever sent or received (and have not deleted).
g then s Go to 'Starred' Takes you to all conversations you have starred.
g then c Go to 'Contacts' Takes you to your Contacts list.
g then d Go to 'Drafts' Takes you to all drafts you have saved.
g then l Go to 'Label' Takes you to the search box with the "label:" operator filled in for you.
g then i Go to 'Inbox' Returns you to the inbox.
g then t Go to 'Sent Mail' Takes you to all mail you've sent.
* then a Select all Selects all mail.
* then n Select none Deselects all mail.
* then r Select read Selects all mail you've read.
* then u Select unread Selects all unread mail.
* then s Select starred Selects all starred mail.
* then t Select unstarred Selects all unstarred mail.

Tuesday, November 22, 2011

Recover deleted file on Linux


If you deleted a file on linux based OS accidentally, and want to recover it, lsof command may help you.

lsof is a Linux tool which can show open files and network connections, and even recover deleted files.

If you have ever deleted a file by mistake; been clearing up log files, or just used rm without thinking, there is a way of recovering that deleted file. For example, to recover a missing access_log used by Apache you can search for it via this command:

$ lsof | grep access_log

which output will be similar to:

httpd 26120 apache 42w REG 253,0 5852 12222531 /apachelogs/access_log (deleted)

The key word to look for here is deleted in brackets. The good news is a process (26120) still has the file open and without this process keeping the file open we would have lost the file permanently. So, with the Apache daemon helping us out we can view the missing info by looking inside the proc filesystem, the process id (26120), and finally in the file descriptor (fd):

$ cat /proc/26120/fd/42

This outputs the contents of my deleted access_log which shows the data is still there. All you need to do now is simply redirect the contents back to /apachelogs/access_log, like this:

$ cat /proc/26120/fd/42 > /apachelogs/access_log

Now you have recovered your access_log with all the data back to its original location. (You should also restart Apache). lsof can do much more, however, this is one example which could save the day.

Feel free to share other useful example of lsof here (in comments).

LinkWithin

Related Posts with Thumbnails