Monday, January 26, 2015

Setting up your Mac with Homebrew and Cask

Homebrew is a community-driven package management software that is based off ruby for  compiling and install tools and applications on your mac.    Each "formula" is essentially a build script which also downloads the associated dependencies for the build. 

To install Homebrew,  open up terminal and run:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

brew update

To install tools, run the following:
brew install coreutilsbrew install findutilsbrew install bashbrew tap homebrew/dupesbrew install homebrew/dupes/grep

Run clean up to clear out the downloaded source code or old versions.
brew cleanup 

Every now and then, to update old packages, run: 
brew upgrade `brew outdated`

Apps with Homebrew Cask

Install cask with the following command:
brew install caskroom/cask/brew-cask

Heres quick and dirty script to install apps:
apps=(   appcleaner
  atom
  cloudup
  dnscypt
  firefox
  flash
  google-chrome
  iterm2
  nvalt
  qlcolorcode
  qlprettypatch
  qlstephen
  quicklook-json
  shiori skitch
  skype
  transmission
  vagrant
  virtualbox
  vlc)


brew cask install --appdir="/Applications" ${apps[@]}

Sunday, May 11, 2014

How to increase your internet privacy with DNS Crypt


"DNS Leaking" happens when your DNS query continues to query your ISP's DNS servers every time you visit a new website, connect to a new server, or fire up a new internet-connected application.   Hence, it means that even though your traffic is encrypted, your ISP can clearly see everything you connect to you're going on the internet and every site you visit on the web.

To install DNSCrypt on Mac OS via brew cask
brew cask install dnscrypt
Once installed, enable it and choose a server that is closest to your location for performance.




Sunday, January 19, 2014

Top 5 most asked interview questions and answers


1. Tell me about yourself: This is often the opening question in an interview. It's also one of the most difficult if you're not prepared. Remember, the interviewer does not want to hear about your hometown or your scrapbooking hobby.
This question calls for your one-minute commercial that summarizes your years of experience and skills and your personality in the context of the job for which you are interviewing. Get to the point and sell your professional self. Develop a few brief sentences that demonstrate you have what it takes to do the job -- experience, proven results and desire to contribute.


2. Why should we hire you?: The key to answering any question about you versus your competition is using specifics.
"Everybody is going to speak in generalities, so you need something that will make you stand out a bit," said Linda, a teacher in Springfield, Ohio. Give real examples that show them you are best-suited for the job. Linda says she would point out her achievements and accomplishments throughout her career that are relevant to the open position, as well as her experiences in dealing with different types of students and teaching situations.
Pinpoint the qualities you have that are truly valuable to the company.


3. Why do you want to work here? What do you know about our company?: Peter, a physician in Indianapolis, said that research is important in answering these questions.
"I would use this opportunity to show off what I know about the company and, more importantly, how I would fit in."
Susan, a vice president of benefits in Chicago, said that she would address issues and challenges in the company to demonstrate the depth of her knowledge.
"I usually talk about revenue, numbers of employees, and also challenges in their type of business and how my experience relates to that," she said. "I would point out things I have done in similar companies that could address their problems."


4. What are your weaknesses?: The secret to answering this question is using your weaknesses to your advantage.
"I would turn my weaknesses into strengths," said Tara, an attorney. "For example, if my weaknesses include my lack of patience I would then state that because of this, I have learned to take special measures to ensure that I remain calm and attentive."
Just make sure that you do give a real answer to this question. None of us is without faults, so don't pretend that you do not have weaknesses.


5. What did you dislike about your last job? Why did you leave your last job?: You need to be cautious about these kinds of questions and make sure you do not end up sounding bitter.
"I would never talk down about my former company, the boss, or my former co-workers," Tara said.
You need to have a good understanding about the job for which you're applying to turn this question into a positive one. It may be best to say that you really enjoyed many aspects of your job, then focus on how this new job will give you the opportunity to contribute more in a particular area that is key to the position.

Sunday, July 07, 2013

How to include instagram photos on blogger


SnapWidget generates the code for and and its a simple job of adding it as a html widget on blogger.


Goto Snap Widget and fill in the relevant details

Copy entire Snap widget code

Goto Blogger.com -> Layout

Add Widget -> html/javascript


Paste code into content




Tuesday, December 18, 2007

15 Must have Modules and Tips for Seach Engine Optimization in Drupal

The list of add on modules for Drupal makes SEO easy.

  • Page Titles - This module gives you control over the page title. It gives you the chance to specify patterns for how the title should be structured, and on content creation pages, gives you the chance to specify the page title rather than defaulting to the content's title.
  • URL paths - This creates automatic path aliases for nodes, users, and category terms, eliminating the need to create them manually. This way, your site is more user and search engine friendly, and more descriptive about its content with less work from your side.
  • Clean URLs - This tells Drupal to use "clean URLs", eliminating the "?q=" in internal URLs
  • Find URL Alias - This is a small utility module to help you track down particular URL aliases.
  • URLify - - This simple module that generates the path alias of a node automatically using javascript. The alias is generated from the title of the node.
  • Pathauto - Thi module automatically generates path aliases for various kinds of content (nodes, categories, users) without requiring the user to manually specify the path alias. This allows you to get aliases like /category/my-node-title.html instead of /node/123
  • Excerpt- This module allows you to enter a separate excerpt/summary/teaser for a node, which does not have to be a cut off version of the body.
  • Meta Tags - Sets up keyword and other meta tags for each node.
  • Scheduler - This allows nodes to be published and unpublished on specified dates
  • Safe HTML - This module that filter the input before the content is stored in the database
  • Search 404 - This module performs a search on the keywords in the URL instead of showing a 404 error.
  • Digg This - This module adds a Digg this button to your nodes. If the story is not yet submitted to Digg a "Digg this story" button is displayed. If the story was already submitted a button showing the number of Diggs you received is displayed.
  • Service Links - This enables admins to add links to a number of social bookmarking sites, blog search sites etc. Includes sites are del.icio.us, Digg, Reddit, ma.gnolia.com, Newsvine, Furl, Google, Yahoo, Technorati and IceRocket
  • Trackback - Adds TrackBack support to Drupal. Sending and retrieval of TrackBacks are supported either using POST or GET.

Wednesday, December 12, 2007

Google map your vistors


This is a free version, which only tracks the last twenty visitors. You can check out their example here.The instructions are basic with only two steps.



1) Copy and paste this JavaScript anywhere onto the pages you'd like to track:


2) View your map with this URL: ( note, this is for my website )

http://www.gvisit.com/map.php?sid=9f24ad6cf34ed722181908d63eaaa11f




Tuesday, December 04, 2007

Psychometric Tests

Practice, practice and practice.... Here are a collections links where you can try those out.

AddThis Feed Button