Monthly Archives: August 2009

A day with SVN CLI

Problem:

Have you ever seen this?

$ svn commit
svn: Commit failed (details follow):
svn: Could not use external editor to fetch
log message; consider setting the
$SVN_EDITOR environment variable or using
the --message (-m) or --file (-F) options
svn: None of the environment variables
SVN_EDITOR, VISUAL or EDITOR is set,
and no 'editor-cmd' run-time configuration
option was found

Answer:
$ export SVN_EDITOR="/usr/bin/nano"

Problem:

I need to know what the changes I’ve made on my local copy?

Answer:
$ svn diff

Read more »

Week In Links – 8/21/2009

Over the last few weeks I’ve noticed a few things,

  1. I always have a lot of links open in FireFox that I haven’t looked at yet.
  2. Blog traffic drops like mad on Fridays ;)

These are just some sites or articles that I found interesting or helped me in some way this week.

So here’s what I have this week!  (other posters can add to this page as they wish)

  1. http://www.infoq.com/articles/agile-version-control
  2. http://kenai.com
  3. http://oauth.net
  4. http://code.google.com/p/modwsgi/wiki/DebuggingTechniques
  5. http://blog.lowkster.com/2008/01/getting-to-pesky-foreign-key-data-in.html
  6. http://www.box.net
  7. http://beanstalkapp.com
  8. http://www.ducea.com/2006/08/11/apache-tips-tricks-deny-access-to-some-folders
  9. http://www.fogcreek.com/FogBugz
  10. http://www.sitepoint.com/article/build-to-do-list-30-minutes

Good luck Johnny! – Updated!

This is basically me using the site to “retweet” :(   But props to JohnnyIHackStuff for helping get technology out to the less fortunate people out there.  I mean even if that kid takes your shipment the laptops are still going to be sold to someone over there that wouldn’t have had that opportunity otherwise right?

http://www.hackersforcharity.org/340/owned-or-not-crap/

Twitter: http://twitter.com/ihackstuff/status/3368594229

I have one of those Compaq Evo 610′s…pretty sweet laptop.  I would still use it except my sister has it :( But she just got a new macbook pro….hmmm….

Anyway, go Johnny! I really believe in giving people the tools they need to educate them selves.

UPDATE:

So it all worked out!

http://www.hackersforcharity.org/344/the-eagle-has-landed/

Microsoft’s Math Skills

I was bored today and decided to play some Minesweeper.  I won, but the ultimate prize was seeing how bad Microsoft’s math is.  How is it that hard when you leave it to the computers?

Yep, 1 / 50 = 1%.  Wait…

Click the image for the full view.

PHP5-CLI versus Python CLI

I just thought this was kind of interesting.   Out of the box CLI comparison of PHP and Python type errors :D

Python

>>> test = 123
>>> test2 = "ewfwef"
>>> test / test2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for /: 'int' and 'str'

PHP

$test = 123;
$test2 = "werwe";
echo $test/$test2;

Warning: Division by zero in Command line code on line 1

It’s nice that python tells you what is really wrong here, you can’t divide an integer by a string! PHP on the other hand implies that $test2 is equivalent to 0.
It should be noted that python is doing a trace and PHP is not. Doing a trace on the error in PHP would give more information but since PHP is very weak with types, you would probably have to notice the error on your own.