I hereby claim:
- I am matthewmccullough on github.
- I am matthewmccull (https://keybase.io/matthewmccull) on keybase.
- I have a public key whose fingerprint is A435 C5DA 2F79 BCBC 6D27 3CA0 96C1 9CC4 240C F23C
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
The Git version control system and GitHub collaboration platform offer a myriad of innovative and classic development workflow options. The wide range of opinions about these on the Internet can make it challenging to nimbly make wise Git workflow decisions for your team's next project.
In this presentation, Matthew will provide a tour of successful workflow patterns harvested from 7 years of studying and working with open source projects, small and large scale businesses, and governmental agencies employing everything from waterfall to fully agile processes. Flows will feature live demonstrations of the supporting Git and GitHub commands.
A little guidance can go a long way in helping you navigate the new world of distributed version control, and this talk will help you make informed choices of the Git features you'll use, the branching patterns you'll leverage, and the way you will integrate your chosen pattern with your team's development practices.
InitialContext initialContext; | |
StringBuffer sb | |
try { | |
sb = new StringBuffer(); | |
initialContext = new InitialContext(); | |
loopLevel(sb, initialContext, "java:comp"); | |
} catch (NamingException e) { | |
writer.println("<html><body>"); |
#!/bin/sh | |
#Example Usage: findjars com/ambientideas/groovy | |
CLASSNAMETOFIND="$1" | |
for eachjar in `find . -iname "*.jar"` | |
do | |
echo "Searching in $eachjar ..." | |
jar tvf $eachjar | grep $CLASSNAMETOFIND > /dev/null |
#!/bin/sh | |
#Example Usage: findjars com/ambientideas/groovy | |
CLASSNAMETOFIND="$1" | |
echo "Searching all JARs recursively..." | |
for eachjar in `find . -iname "*.jar"` | |
do | |
#echo "Searching in $eachjar ..." |
# http://henrik.nyh.se/2008/12/git-dirty-prompt | |
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/ | |
# username@Machine ~/dev/dir[master]$ # clean working directory | |
# username@Machine ~/dev/dir[master*]$ # dirty working directory | |
function parse_git_dirty { | |
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" | |
} | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/" |
HOW TO ENABLE TETHERING ON YOUR 3.0 iPHONE | |
Step 1: Check if you own a 3G iPhone. If you're on EDGE (as I am): sorry. Tethering does not seem to work with EDGE phones. | |
Step 2: Check to see if AT&T is your carrier. If it is: sorry. AT&T will not let you tether. | |
Step 3: Navigate to ~/Library/iTunes/iPhone Carrier Support. Notice the spaces in that last folder name! If you're at the command line, use backslashes to escape the spaces, i.e. cd ~/Library/iTunes/iPhone\ Carrier\ Support. You will find a file with an ipcc extension. Copy that file: e.g. cp foo.ipcc foo.ipcc.original. This creates a backup for when you mess up. | |
Step 4: rename the ipcc extension to zip. For me that was ATT_US.ipcc renamed to ATT_US.zip. (Did I mention how I'm on a 1st Gen iPhone with AT&T?). Unzip it. This creates a new folder called Payload. | |
public static void setSwingFontDefault(javax.swing.plaf.FontUIResource newFont) { | |
java.util.Enumeration<Object> uiManagerKeys = UIManager.getDefaults().keys(); | |
while (uiManagerKeys.hasMoreElements()) { | |
Object key = uiManagerKeys.nextElement(); | |
Object value = UIManager.get(key); | |
if (value instanceof javax.swing.plaf.FontUIResource) | |
UIManager.put(key, newFont); | |
} | |
} |
// JavaDoc Search Bookmarklet by Josh Goebel | |
// Original source at Pastie.net: http://pastie.org/434851 | |
// | |
// Select the text below, then drag it to your browser's toolbar. This creates a | |
// bookmark to perform Java 6 searches. After you create the bookmark, you probably | |
// want to edit the description. On FireFox, just right click the bookmark, select | |
// Properties, and change the name. | |
javascript:void(q=prompt('Java%20class%20Name:',''));if(q)void(location.href='http://www.google.com/search?q='+escape(q)+'%20site%3Ajava.sun.com%2Fjavase%2F6%2Fdocs') |