Thursday, March 25, 2010

AutoHotKey – Easily Create An HTML Link

I’m huge fan of AutoHotKey which saves me a ton of time in not having to type repetitive keystrokes. Basically, it helps me be a better keyboard ninja.

Often for blog posts, I need to encapsulate a link with a HTML <a> anchor tag. So that http://Mehul.net becomes <a href=”http://Mehul.net” target=”blank”>http://Mehul.net</a>

So I’ve hacked up the following AutoHotKey script which allows you to highlight a link and press Control+Shift+L and it automagically converts into an HTML <a> anchor tag.

Copy this script into a autohotkey script. Load the script. Select an HTML link and press Control+Shift+L.


;-------------------------------------------------------------
; Create A Link -- Ctrl+Shift+L
;-------------------------------------------------------------

^+l::
{
Send, ^c
Sleep 50
var=% "<a href=""" . clipboard . """ target=""_blank"">" . clipboard . "</a>"
clipboard=% var
Send, ^v
Return
}

To learn more about AutoHotKey, check out these LifeHacker posts:

Turn Any Action into a Keyboard Shortcut

Hack Attack: Knock down repetitive email with AutoHotKey

Monday, March 22, 2010

Improve iPhone Safari Readability

I like to catch up on my blog reading using my iPhone. However, many sites don’t have a mobile version that formats the page for a smaller device.

Instatpaper to the resuce!

Instapaper.com is known for allowing you to bookmark a web page and ‘Read It Later’ using either their website or iPhone app. What’s also great is they format the bookmarked web page so that it is readable on mobile devices. They also offer their ‘mobilizer engine’ to use as a separate service:

If you go to this site on your mobile browser: http://instapaper.com/m 

Then Enter a url of blog you like to read: For example: http://community.devexpress.com/blogs/aspnet/default.aspx

Hit Go and watch as all the formatting is removed and you see big text that only scrolls vertically. Beautiful and perfect for mobile browsers.

I’ve taken it a step further by creating a bookmarklet that will automatically call the ‘Instapaper mobilizer’ site for you when you’re reading a blog on your mobile browser. Here’s the steps to add it to an iPhone:

  1. From Safari, add a new bookmark and call it something like ‘Instapaper Mobilizer’.
  2. Edit the Bookmark you just added.
  3.    Replace the url with the JavaScript code in this box.
  4. Now, while reading a blog, open the bookmark you just added.

And that’s it. Enjoy.

Tuesday, March 02, 2010

I’m a Creator and Social Manager

Taking up Travis’ suggestion, I took the color career test and got the following results. Surprisingly, it is not too different than my day job:

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

Best Occupational Category
You're a CREATOR
Keywords

Nonconforming, Impulsive, Expressive, Romantic, Intuitive, Sensitive, and Emotional

These original types place a high value on aesthetic qualities and have a great need for self-expression. They enjoy working independently, being creative, using their imagination, and constantly learning something new. Fields of interest are art, drama, music, and writing or places where they can express, assemble, or implement creative ideas.

CREATOR OCCUPATIONS
Suggested careers are Advertising Executive, Architect, Web Designer, Creative Director, Public Relations, Fine or Commercial Artist, Interior Decorator, Lawyer, Librarian, Musician, Reporter, Art Teacher, Broadcaster, Technical Writer, English Teacher, Architect, Photographer, Medical Illustrator, Corporate Trainer, Author, Editor, Landscape Architect, Exhibit Builder, and Package Designer.

CREATOR WORKPLACES
Consider workplaces where you can create and improve beauty and aesthetic qualities. Unstructured, flexible organizations that allow self-expression work best with your free-spirited nature.

Suggested Creator workplaces are advertising, public relations, and interior decorating firms; artistic studios, theaters and concert halls; institutions that teach crafts, universities, music, and dance schools. Other workplaces to consider are art institutes, museums, libraries, and galleries.

2nd Best Occupational Category
You're a SOCIAL MANAGER
Keywords:

Tactful, Cooperative, Generous, Understanding, Insightful, Friendly, and Cheerful

This very social type enjoys working in groups, sharing responsibilities, and being the center of attention. Fields of interest are instructing, helping, nurturing, care giving and instructing-especially young people. They discuss and consider feelings in order to solve problems, lead, direct, persuade, guide, organize and enlighten others.