Archive for December, 2005

Chipped : Human Imbedded RFID

Posted in Cyberpunk, Tech, RFID on December 30th, 2005

While Digging I came across Chipped : Human Imbedded RFID. Some techie guy is “modding” his own body. The article goes into detail with videos and part numbers and pricing. Interesting that this guy injected a chip into his hand but states that the idea (technically feasible) was more important than the use.

Somewhat related, but extrapolated through fiction, I found Douglas Rushkoff’s Testament, which contains anti RFID (person tracking) sentiment within the the story.

mod_rewrite, htaccess and Perl CGI

Posted in Tech, Software, Perl on December 28th, 2005

For the record, Rewrite rules do not like to be written as slashes in CGI-BIN URLs.

Perhaps this was known to others before, but was new to me. In your .htaccess file

Bad

RewriteRule ^(.*)$ /cgi-bin/books/$1 [QSA,L]

Good

RewriteRule ^(.*)$ /cgi-bin/books?$1 [QSA,L]

Notice the ? instead of the / in the good one.

For some reason, I was under the impression that using the slash, I could get the information in the URL using a PATH_INFO e.g.

PERL:
  1.  
  2.    my $string_to_mangle = $cgi->path_info;
  3.  

The above would grab /page/main
from http://yourhost.com/cgi-bin/some.cgi/page/main

However, I now need to change this to

PERL:
  1.  
  2.    my @bits = $cgi->keywords;
  3.    my $string_to_mangle = join " ", @bits;
  4.  

and this shows that I use the keywords method on the Perl CGI object.

This then would grab page/main
from http://yourhost.com/cgi-bin/some.cgi?page/main

You may want to combine this to be able to deal with either path_info or keywords. E.g.

PERL:
  1.  
  2. my $details = "";
  3.  
  4. if  ( (defined $cgi->path_info)
  5.        and (length($cgi->path_info) ) {
  6.     $details = $cgi->path_info;
  7. }
  8. elsif ( (defined $cgi->keywords)
  9.            and (length($cgi->keywords) ) {
  10.     my @bits = $cgi->keywords;
  11.     $details = join " ", @bits;
  12. }
  13. else {
  14.     $details = "";
  15. }
  16.  

Anyway .. a frustration now has an answer. I should probably have RTFM'ed !

Commonplace Books

Posted in Information related, Pseudo Psychology, Books on December 22nd, 2005

While perusing Rebecca Blood's website, she introduced me to Commonplace books.

Her original findings came from Long Haired Child with two articles:

These articles also discuss how blogs are similiar to the common place book, but that you might feel more comfortable recording in the privacy of you notepad things you don't know. The basic function of the book, record things you don't know like words, names etc, if your thinking about something a lot, take a note, carry it with you and lastly, reflect on it at some point.

When notebooks/notepads are ever discussed it is always that case that Moleskine comes up. The notebook of legend apparently used by Van Gogh, Picasso et al. Modo&Modo makes a similiar style to that spoken of in notebook legend.

Eight Myths About Video Games Debunked

Posted in Pseudo Psychology on December 14th, 2005

While perusing Digg I found The Video Game Revolution: "Eight Myths About Video Games Debunked"

Nice to see some thought and analysis concerning computer games. It mentions that violent behaviour and violent game playing are a correlation, not causal relationship.