Tuesday, January 30, 2007

allowing subdirectory access with .htaccess on Apache

Another bit of documentation that should be more obvious online:
If you have a directory on an apache webserver that is protected by a .htaccess script and you want to allow access in one of its subdirectories, simply create a .htaccess file in the "allowed" directory with the text.

Allow from all
Satisfy Any

Thanks to Pascal over at nano-rails who's correct solution showed up on as google hit #79.

Labels: ,

Thursday, January 25, 2007

installing Numerical Recipes on cygwin

#unpack source tarball into /usr/local/src/
#edit Makefile so that "CFLAGSANSI = -ansi -I../include" (we added the -ansi) this gets rid of a conflict between math.h and nr's fmin function
# bash$ ln -s /lib/gcc/i686-pc-cygwin/3.4.4/include/stddef.h /usr/include -nrutil.c wants this file, the target director I found by find /lib -name stddef.h
#go to directory with Makefile and execute make
#compile programs with: bash$ cc -ansi -o myprogram myprogram.c /usr/local/lib/librecipes_c.a

Labels: , , , ,