Daedalus would approve.
Incredible. Something that could only happen on the Internet.
I love what is possible with animation. The future of movies looks very good.
Official Full HD Trailer.
Utterly compelling.
If you can draw it, you can discover its name. Shapecatcher has a database of more than 10,000 Unicode characters. Draw the one you are interested in and it will return a list of possible matches.
This is excellent.
(via: Everybody)
All things considered my colonoscopy experience was surprisingly good. While some parts of the process were uncomfortable none of it was horrible. Best of all I have a clean bill of health.
The preparation starts 24 hours before the procedure when you switch to a clear liquids only diet. Clear liquids include some juices, broth, hard candy, and Jello. You just have to stay away from anything with red coloring. I started yesterday with an enormous breakfast – a Belgium waffle, two fried eggs and two sausage patties. My normal breakfast routine is a bowl of cold cereal with milk and a glass of orange juice. Being pleasantly over full helped to curb my hunger pains most of the day. The richness of the food also contributed in a mild bout of diarrhea which made the evening preparation activity easier I think.
At three o’clock I took four tablets of a laxative. Starting at six o’clock I drank 8 ounces of laxative laced Gatorade every 15 minutes until I’d consumed an entire gallon. From reading online I knew that in the past this was the hardest part of the whole process. The mixture used to taste like dirty salt water and caused a powerful urge to vomit. My mixture, in orange Gatorade, only had a mild chalky after taste. The only issue with downing each glassful was still feeling full from the previous glass. Once the mixture started doing its thing the fullness issue went away.
By 8:15 I was done with the gallon but not done in the bathroom. It was closer to 10:30 or 11 before I felt like I could go to bed without needing to get up in a hurry. Out of curiosity I weighed myself just prior to starting the gallon and then again at the conclusion of taking it. I had only gained a pound in the two intervening hours, a neat trick when you consider a gallon of water weighs 8 pounds. By the time my bowels had subsided for the night I was down 1 pound rom my starting weight. This morning I was 2.5 pounds lighter than yesterday’s weight.
This morning I had the mildly uncomfortable sensation of needing to go but being unable to produce any thing. When I ask about that at the surgical center I was told this was normal. At the surgery center they started an IV, hooked me up to an automatic blood pressure cuff, and hooked up leads to monitor my blood oxygen saturation and pulse. After a brief pre-procedure visit with the doctor the sedation nurse used the IV to give me a couple drugs, one for pain and a sedative. The next thing I was aware of was being given some juice to drink in the recovery room.
After eating a banana on the ride home I crawled into bed and slept for a couple hours. Lunch after my nap was delicious. Since air is pumped into the colon during the procedure there is some post-procedure gas and mild cramps. Otherwise I feel great.
Since no polyps were found and no other issues discovered I don’t have to repeat this test for another ten years. If you are over the age of 50 and haven’t had a screening for colon cancer don’t let street “knowledge” about how awful colonoscopies are keep you form completing one. It’s one day out of 10 years and may save your life.
Pi, the ratio is correct, but many of its uses may be wrong. Or at least ill-advised.
(via: @stevelosh)
The new shell prompt I created for myself is working wonderfully. However, the Subversion prompt was only effective when I was in the root directory of a Subversion project. Once I drilled down into sub-directories the prompt, which depended upon the presence of a .svn directory, lost all Subversion information.
After much fiddling around last night I came up with a simple change that allows the Subversion information to be displayed, regardless of where I am in the directory hierarchy under the root directory of a Subversion controlled project.
Here’s the code:
{% raw %}
# ----------------------------------------------------------------------------
# svn prompt
# based on: https://gist.github.com/1156969
# with help from: http://andrewray.me/bash-prompt-builder/index.html
#
# Only the root directory holds the .svn repository. We need to test each directory in the current
# directory's path to determine if we are under Subversion control.
# ----------------------------------------------------------------------------
function svn_prompt_info {
# Set up defaults
local svn_branch=""
local svn_repository=""
local svn_version=""
local svn_change=""
# if `svn info` returns more than 1 line, we are under subversion control
testsvn=`svn info > /dev/null 2>&1 | wc -l`
if [ $testsvn -gt 1 ] ; then
# query svn info and parse the results
svn_branch=`svn info | grep '^URL:' | egrep -o '((tags|branches)/[^/]+|trunk).*' | sed -E -e 's/^(branches|tags)\///g'`
svn_repository=`svn info | grep '^Repository Root:' | egrep -o '(http|https|file|svn|svn+ssh)/[^/]+' | egrep -o '[^/]+$'`
svn_version=`svnversion -n`
# this is the slowest test of the bunch
change_count=`svn status | grep "?\|\!\|M\|A" | wc -l`
if [ "$change_count" != " 0" ]; then
svn_change=" [dirty]"
else
svn_change=""
fi
# show the results
echo "%{$fg[blue]%}$svn_repository/$svn_branch @ $svn_version%{$reset_color%}%{$fg[yellow]%}$svn_change%{$reset_color%}"
fi
}
{% endraw %}The testsvn variable on line 17 is set to the result of running an svn info and then counting the lines of output via wc -l. By shunting the output of the command into /dev/null it’s quiet, i.e., no output leaks out into the shell. And the 2>&1 bit captures the error message produced when svn info is run in a non-Subversion controlled directory. So, if I’m in a Subversion project the line count (wc -l) will be about 12. If I’m not in a Subversion project, there will be a single line counted – the error produced.
The if statement on line 18 determines if there count is greater than 1 and if so, builds the Subversion portion of the prompt.
Everything else stays the same as I had it before. It works beautifully.