Ben has a good post about choosing random files in Bash:
ls | while read x; do echo "`expr $RANDOM % 1000`:$x"; done \ | sort -n| sed 's/[0-9]*://' | head -15
Ben has a good post about choosing random files in Bash:
ls | while read x; do echo "`expr $RANDOM % 1000`:$x"; done \ | sort -n| sed 's/[0-9]*://' | head -15
A pervasive attitude among programmers today is that their language is “good enough” and that whatever their language lacks in expressiveness they can make up for with brute force.
Be forewarned: pretty soon you will just end up realizing Greenspun’s Tenth Rule!
Here is the classic programming “how do you shoot yourself in the foot” joke, brought to Lisp by someone who “gets it”!
TASK: Shoot yourself in the foot.
LISP: You shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which holds…
(via DaniWeb)
Here is a good page that gives VI users the equivalent Emacs commands for very common actions.
This is sure to help those of us making the transition!
Subversion is perfect (simple concept, lots of books, good tool integration, and easy to use) but for the fact that it doesn’t support:
While the former should be addressed in version 1.5, the latter is anyone’s guess.
The problem is that Subversion is just so good that eventually you will will want a distributed mode with Subversion.
Fortunately, Git supports distributed operation against Subversion repositories!
If this gets you “on the Git bus”, check out this:
An introduction to git-svn for Subversion/SVK users and deserters.
(Thanks Geoff for the links)
Addendum 05/03/08:
Tonight I tested out setting up cygwin from scratch to use Git, and in doing so confirmed what I knew and discovered what I didn’t!
You must use the following packages:
Failure to install the subversion-perl bindings results in the error: = Can’t locate SVN/Core.pm in @INC
Thank you ycdtosa for the pointer!
Addendum 05/03/08:
If, like many of us, you haven’t fully cut over to cygwin, you may receive the following error message when you attempt a commit:
You have some suspicious patch lines=
Here is both an explanation of and a work-around for the error.
To solve the problem, you need to edit .git/hooks/pre-commit and comment out the following lines:
=if ($) { bad_line(“trailing whitespace”, $_); }=
Before tonight, I figured that I would never have the need to use dos2unix ever again! Based on one of the commentors replies, though, I expect that further research on the operation of Git is required on my part in order work between CR and CRLF environments:
Git from some time has core.autocrlf and crlf attribute, which should help in mixed UNIX (LF) and Windows (CR LF) environment
Here is a good article about the role and value of “toy” programming tasks.
LeftParen is a framework for quickly creating web apps. It runs on PLT Scheme v3.99.0.23 or greater.
Here is an article that documents ten falsehoods about Emacs.
For programmers, how motivational is a poster with John McCarthy on it?
(Mirrored here U.S. and here A4.)
Tenerife Skunkworks is a great programming blog run by Joel.