Loading...

Recent Additions RSS Toggle Comment Threads | Keyboard Shortcuts

  • 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 1:24 am on February 6, 2010 Permalink | Reply
    Tags: green and blue   Posted in Quotes

    We would like a website. We want it to be green and blue.

    http://twitter.com/DevonRW/statuses/8557286102

     
  • The SourceBench 1:21 am on February 6, 2010 Permalink | Reply
    Tags: experience   Posted in Quotes

    Experience is what you get when you don’t get what you want.

    http://twitter.com/SamanthaWarren/statuses/8639725239

     
  • The SourceBench 1:53 pm on February 1, 2010 Permalink | Reply
    Tags: jobs, multiple, parallel, process, threading, wait   Posted in Bash/shell

    Simple parallel processing with Bash using “wait” and “jobs” 

    #!/bin/bash
    # this is a simple helper script that can be used when you are in need of running multiple processes at once
    # simply run your command with an ampersand at the end and after this
    # execute forky with the number of parallel processes as argument.
    
    function forky() {
    	local num_par_procs
    	if [[ -z $1 ]] ; then
    		num_par_procs=3
    	else
    		num_par_procs=$1
    	fi
    
    	while [[ $(jobs | wc -l) -ge $num_par_procs ]] ; do
    		sleep 1
    	done
    }
    
    # below is an example - make sure to change this to your needs
    for fname in `ls -1`; do
    	echo "`jobs | wc -l` jobs in spool"
    	echo -e "processing $fname\n"
    	# below should be the command you like to execute. in this example it's a php script that would do something with a file.
    	# important is the & at the end of the command which sends the command to the background
    	php ~/a_script_that_does_something_with_the_file --file=$fname &
    	# after this call the forky function with the amount of parallel processes as parameter
    	forky 5
    done
    
    wait

     
  • The SourceBench 11:52 pm on January 19, 2010 Permalink | Reply
    Tags: dns, , nameserver, ns, whois   Posted in Bash/shell

    Test if a nameserver change is done right 

    # imagine you just updated your whois data so it will point your domain to an other nameserver and you want to know if that worked out
    # this little command lets you know on *nix based machines
    for i in a b c d e f g h i j k l; do dig +short ns domainname.com @$i.GTLD-SERVERS.NET; done

     
  • The SourceBench 11:03 pm on January 10, 2010 Permalink | Reply
    Tags: distance   Posted in Quotes

    Can you scale down the US map showing our locations so doesn’t look like Seattle is so far away from our other offices?

    http://clientsfromhell.tumblr.com/post/323570454/

     
  • The SourceBench 11:00 pm on January 10, 2010 Permalink | Reply
    Tags: good eyes   Posted in Quotes

    Client: “the associate under the trailer has white socks, they need to be dark grey.” The image is 150×90.

    http://twitter.com/graphnick/statuses/7486792683

     
  • The SourceBench 7:10 pm on December 29, 2009 Permalink | Reply
    Tags: design, microsoft word   Posted in Quotes

    I prefer that you create all the designs in Microsoft Word as this is a much better program to work with.

    http://clientsfromhell.tumblr.com/post/303353900/i-prefer-that-you-create-all-the-designs-in

     
  • The SourceBench 7:07 pm on December 29, 2009 Permalink | Reply
    Tags: uglier option   Posted in Quotes

    If you want the client to pick option 1, you must make option 2 uglier.

    http://twitter.com/thewhether/statuses/7003784493

     
  • The SourceBench 12:28 pm on December 22, 2009 Permalink | Reply
    Tags: falling sky   Posted in Quotes

    “Hang on, if you erase the top of the building in Photoshop, the sky will be behind it, won’t it?”

    http://twitter.com/NoBadCreative/statuses/6920154361

     
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