Loading...

Category: Blog posts

  • The SourceBench 12:35 am on March 3, 2010 Permalink | Reply
    Tags: code search, codex, lookup, , wphit   Posted in Blog posts

    A simple lookup tool for WordPress functions, filters, actions and more – wphit.com 

    This WordPress lookup tool aims to provide a quick gateway to various documentation sources.

    The layout and design is kept simple to allow integration of this page within various IDEs. Intentionally this page was created to hook into Coda.

    You can also add wphit.com as a search engine in your browser and various indexes allow easy navigation between topics.

    Check it out at http://wphit.com/lookup

     
  • The SourceBench 8:14 pm on December 20, 2009 Permalink | Reply
    Tags: ack, Bash/shell,   Posted in Blog posts

    Ack is better than grep! – And it’s not only their slogan. 

    I recently was pointed to ack for scanning a huge pile of files for a certain pattern. So far I was always using grep, awk, cut, sed and such in combination with find to build whatever I needed. But having a look at ack reveals that my life could have been much easier. Here are some simple examples:

    Search for a pattern recursively through directories, while ignoring .svn, CVS and other VCS directories:
    With grep: grep pattern $(find . -type f | grep -v '\.svn')
    With ack: ack pattern

    Search for a pattern in all perl files, while ignoring .svn directories:
    With grep: grep pattern $(find . -name '*.pl' -or -name '*.pm' -or -name '*.pod' | grep -v .svn)
    With ack: ack --perl pattern

    That’s it for the basics. More on their manual page at http://betterthangrep.com/

    Just a last one:
    Get a list of all functions and their parameters attached to your “wp_head” action hook of a WordPress installation.
    With grep: please don’t make me do it.
    With ack: ack "add_action\((.*[\"|'](.*)[\"|'][,|\s]+.*)\)" --output="hook: \$1, params: \$2"

     
  • The SourceBench 5:40 pm on November 30, 2009 Permalink | Reply
    Tags: caps-lock, caps-maniac, shift, windows7   Posted in Blog posts

    Get rid of Caps-Lock avoid CAPS-LOCK desasters in Windows7 

    Finally Windows7 let’s you define the way the caps-lock key should act. I know people who even tried to remove this key with pliers, killing their whole keyboard. This is now over after 15 years of Windows.

    Go to Control Panel->Clock, Language and Region->Change keyboards or other input methods->Keyboards and Languages->Change keyboards->Advanced Key Settings and select “Press the SHIFT key” and from now on shift will cancel caps-lock.

     
  • The SourceBench 1:51 pm on November 30, 2009 Permalink | Reply
    Tags: desktop, geektool, , ping, server monitor   Posted in Blog posts

    Use GeekTool 3 as Server Status monitor 


    I just stumbled upon GeekTool which is great for displaying all sorts of information directly on your desktop in OSX.
    You can even add a simple status monitor for your servers by following these steps.
    Install GeekTool and open your GeekTool preferences and follow these steps

    1. add shell area
    2. give it a name
    3. enter the command : ping -t 30 -qc 10 address_to_ping_without_http | grep "packet loss" | grep "10 packets received"
    4. mark “Display status feedback image”
    5. Mark “Override text”
    6. Enter the name that should appear next to the status image

    For more GeekTool goodies check out this site

     
  • The SourceBench 10:31 pm on November 28, 2009 Permalink | Reply
    Tags: freelancing, job boards, job sites   Posted in Blog posts

    List of Freelancing Job Sites 

    Keeping busy (paid) as a freelancer can be quit challenging. Luckily there are plenty of Freelancing Job Sites out there.

    Here is a collection of our favorites.

    1. JobPile – Job Aggregator with 11 mainly Web Development based Job Boards
    2. WordPress Jobs – Job board with WordPress related job offers
    3. Krop – Job Board focused on Design jobs
    4. GigaOM Job – Tech job board provided by GigaOM
    5. GetAFreelancer – Job bidding site
    6. Elance – One of the biggest job bidding sites
    7. Guru – Job Bidding site

    For a list of many more Freelancing sites please visit FreelanceSwitch

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel