Indenting lines in vim

Vim has always been my primary editor for programming. There was always one part I hated doing the most, indenting lines. I did not know how to indent lines without manually doing it, as my laziness got the better of me. This time, I had to indent a huge block of text and I couldn’t let it be as it was. Here are some ways of indenting in vim.

1. <number of lines> <direction> <indent direction>
e.g. 5jj> indents 5 lines below to the right. jj represents the down direction. kk can be used for the opposite direction. < can be used for indenting to the left. Increasing the number of > or < , repeats the indentation that many times. E.g. >> indents it twice.

2. Indenting using Visual mode
You can use the visual mode to select the text you want to indent and then type ‘>‘ or ‘<‘ to indent the block.

3. Indenting a block between curly braces
If you want to indent an entire text block between curly braces, place the cursor on one of the curly braces and type %>
This is particularly useful for indenting loops and if/switch statements.

Happy indenting!

InCTF 2011: National Capture the flag Ethical Hacking Contest


http://inctf.in/site/wp-content/themes/Infrared/images/inCTF-website-header-2011.jpg

Amrita University & TIFAC CORE

proudly present

InCTF ’11: National Level “Capture the Flag” Ethical Hacking contest


InCTF’11 is from February to March 2011 and is focused exclusively on the student community. You can participate from your own university and no travel is required. No prior exposure or experience in cyber security needed to participate.

What you need to do?
1. Form a team (max five members from your college)
2. Approach a faculty/mentor and request him/her to mentor your team

3. Register online at http://inctf.in

Whats more? There is no registration fee this year!

Great Rewards

25K The winning team receives a cash prize of Rs. 25000/-
20K The first runner-up team receives a cash prize of Rs. 20000/-
15K The second runners-up team receives a cash prize of Rs. 15000/-

Special Prizes*

  • Teams are awarded cash prizes of up to 10K based on their performance
  • Deserving teams are well awarded. Exciting prizes to be won.

So, what are you waiting for? – It’s simple Register, Learn, Hack!

Keep up with us
Website | Email | Facebook | Twitter


*Cash prizes are subject to their performance and participation in the CTF round. Only teams who connect to the VPN server and successfully gain points in the CTF round are eligible for prizes

Ranking of US univs for Computer Science

For all the computer science undergraduates aspiring to do an M.S / Ph.D. in the U.S, i found some info i thought i should share.

Rankings US News 2009 (Computer Engineering):

Massachusetts Institute of Technology
Stanford University
University of California–Berkeley
Carnegie Mellon University
University of Illinois–Urbana-Champaign
University of Michigan–Ann Arbor
California Institute of Technology
Georgia Institute of Technology
Cornell University
University of Texas–Austin (Cockrell)
Princeton University
Purdue University–West Lafayette
University of Southern California (Viterbi)
University of Wisconsin–Madison
University of California–Los Angeles (Samueli)
University of Washington
University of Maryland–College Park (Clark)
University of California–San Diego (Jacobs)
Pennsylvania State University–University Park
Columbia University (Fu Foundation)
Harvard University
Ohio State University
Rice University (Brown)
Texas A&M University–College Station (Look)
University of Minnesota–Twin Cities

Rankings U.S. News 2009 (Computer Science):

Massachusetts Institute of Technology
Stanford University
University of California–Berkeley
Carnegie Mellon University
University of Illinois–Urbana-Champaign
Cornell University
Princeton University
University of Washington
Georgia Institute of Technology
University of Texas–Austin
California Institute of Technology
University of Wisconsin–Madison
University of California–Los Angeles
University of Maryland–College Park (Clark)
University of Michigan–Ann Arbor
Columbia University
Harvard University
University of California–San Diego (Jacobs)
Purdue University–West Lafayette
Brown University
Duke University
Rice University (Brown)
University of Massachusetts–Amherst
University of North Carolina–Chapel Hill
University of Pennsylvania
University of Southern California (Viterbi)
Yale University
Johns Hopkins University
Pennsylvania State University–University Park
University of Virginia

Flock – The Social Web Browser

logo

FLOCK 2.0 Beta

Here Arives Flock 2.0 Beta…The coolest browser in the Business!

The best part about the brower is that

  • Its Built on the FIREFOX 3 Platform which is great
  • It has a great interface
  • Amazing new features
  • Improved Perfomance
  • Enhanced Security

I personally love the feel of Flock.You guys should get it 2!!!

Be a Flockstar