Brad Lucas

Programming, Clojure and other interests

Local Browseable Copy Of Sicp

June 13, 2008

Instructions

  1. create a directory where you want to download into
    $ mkdir ~/sicp
    
    $ cd ~/sicp
    
  2. Use wget to mirror the site to your local directory
    wget -v -m -w 2 -p -E -k http://mitpress.mit.edu/sicp/full-text/book/book.html
    
  3. Load the following file in your browser
    ~/sicp/mitpress.mit.edu/sicp/full-text/book/book.html
    

Continue reading →

To Use Wget Through An Authenticating Proxy

June 11, 2008

Create an environment variable http_proxy using the following syntax

http_proxy=http://USER:PWD@PROXY-SERVER:PORT

Continue reading →

Full Cygwin Install

June 11, 2008

I am a big fan of cygwin and have been using it for years. If you’ve installed it and choosen the default install you’ll at some point run into a missing command and will have to run the setup program again. After a few iterations of this you’ll wonder about installing the whole thing. If you have the space it certainly makes your life easier in the long run.

A couple points to consider.

I just did a full install on a machine and it looks like cygwin has taken 3.21 gig of space.

Also, when you do install you should pick a time to just let it run. Also, it may take a few retries as you may have a “download incomplete” message after a time.


Continue reading →

Fix For Drscheme Under Windows Hang

June 18, 2007

After installing DrScheme and playing with it for a few minutes I was able to get it to hang with an error similar to the following error. standard-module-name-resolver: collection not found: “texpict” in any of: ()

=== context ===
cloop
temp1229
c:\program files\plt\collects\drscheme\private\rep.ss:1276:17

The fix is to go under C:\documents and settings\Your username\Application Data\PLT Sheme and remove the file pref.ss

If I figure out what I did to produce this file in such a state and post that as well.


Continue reading →

Bash - Display Function Definition

May 2, 2007

A tip.

If you create a function in bash and want to see its definition. Try

declare -f 'your-function'


Continue reading →