Libin Pan

One post at a time

Archive for the ‘English’ Category

iftop: display bandwidth usage on an interface

How to install?

  • Download and install the Universal Binary from here
  • Or if you already have MacPort installed

sudo port install iftop

How to use it?

  • run “ifconfig -l” or “/Applications/Utilities/Network\ Utility.app” to get your network interface id.

  • In my case is ‘en1′, so I just type into Terminal:

sudo iftop -i en1

Enjoy!
Tales From The Command Line: Where Has My Bandwidth Gone?

FireFox did it!

Don’t forget to download your very own certificate for helping set a Guinness World Record.

  • 0 Comments
  • Filed under: English, Software
  • Trading Places with Indian Outsourcers

    This is the best show I’ve seen on this topic, besides the movie Outsourced. Definitely worth watching!

    Roger Spurlock (from the Supersize Me movie) explores what the the US job outsourcing experience is like on the other side.

    Outsourcing has changed our planet.

    This was done on the “30 Days” series on FX hosted by Morgan Spurlock. It was very entertaining and thought-provoking for the guy who went to India, the Indians themselves and, of course, those of us watching.

    read more | digg story

  • 0 Comments
  • Filed under: English, Software
  • Keyboard navigation for TextMate stacktraces

    Put this script at the end of /Applications/TextMate.app/Contents/SharedSupport/Support/script/webpreview.js.

    document.addEventListener('keypress', function(e){
        var key = e.keyCode
        if (key != 63233 && key != 63232) return
        links = document.getElementsByTagName('a')
        for (var i = 1; i < links.length; i++)
            if (links[i].title == 'focused') break
        if (i == links.length) i = 0
        links[i].title = null
        if (key == 63233){
            if (i == (links.length - 1)) i = 1
            else i += 1
        }
        if (key == 63232){
            if (i <= 1) i = links.length - 1
            else i -= 1
        }
        links[i].title = 'focused'
        links[i].focus()
    })
    

    Incredibly useful when I am running my tests!

    Firefox Keyboard Shortcuts on Mac

    Top Ten Firefox Keyboard Shortcuts

    1. ⌘ + l = focus address bar
    2. ⌘ + d = bookmark current page
    3. ⌘ + k = focus google search bar
    4. ⌘ + f = find
    5. ⌘ + g = find next
    6. ⌘ + t = new tab
    7. ⌘ + w = close current tab
    8. ⌘ + shift + t = reopen accidentally closed tab (Best one ever!)
    9. crtl + tab = tab through tabs
    10. crtl + shift + tab = tab backwards through tabs

    Bonus for Delicious Extension users:

    ⌘ + Shift + . = pulls delicious page if you have delicious firefox extension installed

    It was yesterday, one news in my GitHub feeds which really has got my attention:

    defunkt started watching chit 1 hour ago

    Who is defunkt anyway? Chris Wanstrath, the guy who sits behind ErrTheBlog, GitHub, FaceBox, Cheat and lots of other cool stuffs.

    So, there has to have something really good in Chit! I took a quick look into it and found Chit is really Awesome!

    Chit

    Chit is a command line cheat sheet utility based on git.

    AUTHOR: Robin Lu. Thank you, Robin!

    FEATURES:

    Chit was inspired by ‘cheat’ by Chris Wanstrath. You can use chit to access and manage your cheat sheets easily.

    There are several differences between ‘cheat’ and ‘chit’. By using chit, besides the wonderful features of ‘cheat’, you get:

    1. Git powered cheat sheet repository. You can specify where you get the sheets and where to share them.
    2. Your own private cheat sheets. Everybody has some project related or smoe cheat sheets which are not mean to public. You can also put them into chit
    3. Directory support. You can group cheat sheets by directory now.
    4. One less letter to type.

    REQUIREMENTS:

    rubygems (You already have, don’t you?!), git (sudo gem install git) and hoe (sudo gem install hoe)

    INSTALL:

    sudo gem install robin-chit -s http://gems.github.com

    USAGE:

    To get a feeling about chit:

    $ chit chit

    To get a cheat sheet:

    $ chit [cheatsheet]

    If it does not exist, a new one will be created and waiting for your editing. Leave it blank and quit the editor if you don’t want to add a new one.

    To edit a cheat sheet, use the—edit switch.

    $ chit [cheatsheet] –edit

    To add a cheat sheet, use the—add switch.

    $ chit [cheatsheet] –add

    During editing a cheat sheet, empty the content will get the cheat sheet removed.

    A prefix ’@’ indicates the cheat sheet is in private mode. A private cheat sheet is kept in another repository.

    To get a private cheat sheet:

    $ chit @[cheatsheet]

    The prefix ’@’ works the same for both—edit and—add.

    The cheat sheet can be in a path. For example:

    $ chit mysql/select

    will get the cheat sheet ‘select’ under mysql.

    To show all the cheat sheets:

    $ chit [all|sheets]

    To show all the private cheat sheets:

    $ chit @[all|sheets]

    To search cheat sheets begin with ‘name’, use the—search/-s switch

    $ chit name -s

    SHARE:

    Thanks git, shareing cheat sheets has never been such easier.

    After the first time running chit, chit will create 2 local git repositories:

    • ~/.chit/main, which will pull out the default cheat sheets repository from http://github.com/robin/chitsheet
    • ~/.chit/private, which will be empty and wait for you to fill it out all your private goodies

    After that, they are all yours. You can use git to do all the fancy things: push to a shared server for your team, push to github repo share with us, pull from some other shared place…

    WANT TO KNOW MORE:

    Chit GitHub Repository

    Chit GitHub Wiki - Most of this post is copied from here.

    chit - 基于git的cheat sheets工具 - Only if you can read Chinese

    chit - cheat sheets - nowa forked chit and added custom repository config support - It was wrote in Chinese too.

    Cheat + Git = Chit - Chris Wanstrath @ GitHub

    WHAT’S NEXT?

    Chit and share your sheets!

  • 6 Comments
  • Filed under: English, Mac, OS X, Ruby
  • How Obama reinvented campaign finance

    So, social networks can help you make real good money.

  • 0 Comments
  • Filed under: English
  • Mondrianum gets a update!

    Mondrianum is one of my favorite color pickers on Mac OS X, as it brings all the goodies from Adobe® kuler, the best color themes sharing community!

    The last version of Mondrianum, 1.0b5 had exired on June 14, even it is still a freeware now. So two authors did a quick update and sent an apology out, which I think is great.

    You can download the latest version from their site, and this version could be used until Sep. 30, 2008. I believe they will release another before that day.

    The most interested part for me is not the post or software itself, it is the comment! One of the visitors left a comment said “I love your product and what you are doing… For the heck of it I slightly edited your statement to make the english flow a little more ‘natively.’”

    What a lovely reader! I wish I could have some of them too!

    Anyway, before they could update the post, I did a quick diff on them:

    So, my dear readers, if you find anything wrong in my posts, please leave a comment. I would love to fix it!

    Thanks! :)

  • 0 Comments
  • Filed under: English, Mac, OS X
  • Microsoft’s ‘500′ way:

  • 0 Comments
  • Filed under: English, Software
  • Download Day

    Download Day - English

    Search

    AideRss Status

    * Date Title Top conversations
    10 Jun 25 Firefox Keyboard Shortcuts on Mac 0 1 0 0
    9.3 Jun 27 links for 2008-06-27 1 0 0 0
    9 Jun 21 Introducing Chit - the only Cheat Sheet you’ve ever need 6 7 1 3
    5.4 Jun 25 Ruby on Rails 2.1 新特性之简体中文版 2 1 0 1
    2.6 Jun 16 Using Zoomii to find your books on Amazon 0 0 0 1
    2.6 Jun 08 links for 2008-06-08 1 0 0 0
    1 Jul 04 links for 2008-07-04 0 0 0 0
    1 Jul 04 iftop - Find out who is eating your bandwidth 0 0 0 0
    1 Jul 03 links for 2008-07-03 0 0 0 0
    1 Jul 03 FireFox did it! 0 0 0 0

    Upcoming Events

    Pages

    Recommend