ruby: meant “you used some poor GCC compiler flags, my friend” [I think] and required a make clean to overcome [and removing the flags]
Monthly Archives: March 2009
storage control blocks destroyed
This for me meant [while installing mingw ruby] “try that download again your wireless is flaky”
too many open files md5sum
So…running md5sum from within java on…1000′s of files eventually led to a java exception “too many open files”
fix: compute the md5′s internally
how to install your own wikipedia instance
download mediawiki
sudo apt-get install php5 php5-mysql
add to apache2 or httpd .conf
something like
<VirtualHost *:80>
ServerName skipbadscenes.doachristianturndaily.info
DocumentRoot /home/rdp/www/path/to/unpacked/mediawiki
</VirtualHost>
go there in browser [possibly add it to DNS first].
oh static types where art thou?
Ruby and Python despise strong types. I kinda like them
Adds a sense of security to your program. Like “I at least *think* this will work with all paths into my program.
But then how to be highly dynamic? eval-ing new closures left and right, etc., and still have them fit? I guess you recompile and recheck types each time. And apply a type to blocks, as well. And receive blocks only if they have certain types. Man that is hard and restrictive. Like
a = SomeClass
b = a.new
you’d have to be explicit about what b is and somehow runtime check it for workingness or what?
Anyway my wish would be for a strongly typed scripting language that’s as concise and useful as ruby and python. Groovy? Scala? Are these actually concise and useful as ruby and python are?
Though come to think of it, I suppose you could still analyze path information
java FileReader for binary data on windows
Turns out you can’t use FileReader for reading in binary files. Go figure.
http://www.1your.com/drupal/ReadingACharacterFileUsingFileReader
use
http://java.sun.com/j2se/1.4.2/docs/api/java/io/FileInputStream.html
instead
java memory dump memory profiler
http://docs.hp.com/en/5992-1918/ch01s15.html says it all
you run jmap
http://java.sun.com/javase/6/webnotes/trouble/TSG-VM/html/tooldescr.html#gblfj
against a running live process
jmap -dump:format=b,file=file pid
how to speed up active record
move the easy easy queries to C. As in “nice” C
mt permission denied
So I got this in one console:
$ mt -f /dev/st3 rewoffl
Permission denied.
and in another console [same user] it worked fine.
Appears that running it from within a “screen” command caused it to err.
httpd apache how to turn off logs
go to httpd.conf and comment out any line that starts with CustomLog
ref:
http://macupdate.dmrconseil.com/DMRRoot/EXT_MSC_En/Html/En_MSC_134_472_OPD.html