Yvan Seth's Hole in the Internet

Further Internetual randomness courtesy of Yvan Seth, parsnip wrangler.
/Entries/Technology/General/ <rss>

Comments

Mon 2007-11-12 20:36

I've added commenting. It's likely not at all worth the effort involved, but eh. Maybe now I wont have to try and remember corrections/observations that people send my way via email, once or twice a year. Minor spam protection is in place, but no registration/captcha … for now (let's see how long that lasts). Not quite sure what's proper for this sort of thing, the comment form ends up in the RSS — maybe that's wrong? Doesn't seem to be normal. Existing comments also end up in the RSS version of entries, but do not have their own RSS feed and the UUID isn't altered so there isn't an RSS way of tracking them (that'd really not be worth bothing with!).

Along the way I had troubles getting LWP to work. The reason being that I run apache in a gaol (being a tech-term I guess I should use "jail"?) and it didn't quite have the full set of required files. Anyway, strace is your friend in these instances. Error along the lines of:

500 Can't connect to google.com:80 (Bad protocol 'tcp')

Caused by lack of /etc/protocols and /etc/libnss_files.so.2. Or:

500 Can't connect to google.com:80 (Bad hostname 'google.com')

Caused by lack of /lib/libnss_dns.so.2.

Example of inventorying the files required for something like LWP:

:; strace lwp-request http://google.com/ 2>&1 | \
    grep '^open' | \
    grep -v ENOENT | \
    cut -d'"' -f2 | \
    sort -u | \
    grep '^/\(etc\|lib\)'
/etc/host.conf
/etc/hosts
/etc/ld.so.cache
/etc/localtime
/etc/nsswitch.conf
/etc/protocols
/etc/resolv.conf
/lib/libc.so.6
/lib/libcrypt.so.1
/lib/libdl.so.2
/lib/libm.so.6
/lib/libnss_dns.so.2
/lib/libnss_files.so.2
/lib/libpthread.so.0
/lib/libresolv.so.2

Note that while these files are used by the command they're not all necessarily required. That final grep is just to trim down the list, which is otherwise quite a flood from /usr/lib/

23 Responses

Yvan wrote: Foo! (02/12/2007 00:35:27)
Hello monkey boy.
Yvan wrote: Cow (02/12/2007 00:42:42)
Moo!
Yvan wrote: Dog (Sat, 01 Dec 2007 23:44:29 +0100)
Woof!
Yvan wrote: Pig (2007-12-01 23:58:33)
Oink!
Yvan wrote: Sheep (2007-12-01 23:59:23 +0100)
Baaa!
Yvan wrote: Horse (2007-12-01 23:59:44 CET)
Neigh!
Yvan wrote: (2007-12-02 00:11:54 UTC)
Test
Yvan wrote: (2007-12-02 00:12:33 UTC)
Hoho
Yvan wrote: Para/HTML test (2007-12-31 13:39:25 UTC)
Testing paragraphs.

And HTML stripping, i.e.: &lt;a href="/">root&lt;/a>

And entities like & vs &amp;

Any good?
Yvan wrote: Para/HTML test (2007-12-31 13:41:36 UTC)
Testing paragraphs.

And HTML stripping, i.e.: <a href="/">root</a>

And entities like & vs &amp;

Any good?
Yvan wrote: (2007-12-31 14:32:13 UTC)
Test bold and test underline.
Me wrote: (2007-12-31 15:00:05 UTC)
Some silly text.

Yay.
Me wrote: Is my title < evil? Ho ho & har! <script type="javascript">alert('rofl')</script> (2007-12-31 15:09:11 UTC)
Testing the title?
Yvan wrote: Cookie Test (2007-12-31 16:32:47 UTC)
I do not want HASH cookies!
Yvan wrote: Cookie Test (2007-12-31 16:42:44 UTC)
I do not want HASH cookies!
Yvan wrote: Test cookie updating. (2007-12-31 16:43:35 UTC)
As title.
Yvan wrote: (2007-12-31 16:45:24 UTC)
Still hashing along?
Yvan wrote: (2007-12-31 16:46:50 UTC)
I'm getting high.
Yvan wrote: (2007-12-31 17:25:26 UTC)
The blosxom cookie plugin has a horrible bug.
Yvan wrote: (2007-12-31 17:29:09 UTC)
The blosxom cookie plugin has a horrible bug.
Yvan wrote: Give me cookie! (2007-12-31 17:50:38 UTC)
Cookie! Cookie!
Yvan wrote: (2007-12-31 18:02:29 UTC)
Fark.
Yvan wrote: Testing (2008-01-09 07:45:45 UTC)
1 2 3
Name:
Email: (You must register an email address!)
Url: (optional)
Title: (optional)
Response:
All HTML will be escaped. Paragraphs and new-lines are honoured and you can use *word* for bold and _word_ for underline.
Save my Name, URL, and Email for next time
/Entries/Technology/General/Comments

© 2005-2009 Yvan Seth — EMail Yvan | XHTML 1.0 Strict | Add to GoogleSubscribe with Bloglines | Creative Commons License

    follow me on Twitter

    Categories

    Badgers

    Protecting your bits. Open Rights Group