Queries & Responses for 18 July 2005

converting perl hash to javascript hash
use warnings;
use strict;
use CGI qw(:standard);
my %animal = ( fish => 'coelacanth', canid => 'Channel Island fox', bird => 'moa' ); my @pairs; for my $type ( keys %animal ) { push @pairs, "'$type':'$animal{$type}'"; } my $js_string = 'new Object({' . join("\n,", @pairs) . '});';
print header(), start_html(), <<"JSend", <script type="text/javascript"> var obj = $js_string; for ( var attr in obj ) { document.write(attr + ' --> ' + obj[attr] + '<br />'); } </script> JSend end_html();
Remember JavaScript has an eval function so you can add stuff on the fly if you’re doing AJAX or something.
[close] Permanent link · http://querylog.com/q/converting+perl+hash+to+javascript+hash

Suggested HTML for linking:
Link preview: converting perl hash to javascript hash
18 July 2005 · Internet & computing
The page found by the original query:
Code snippets in Perl and JavaScript
env perl shell script
You don’t need a script. A one liner easily does the trick.
perl -e 'printf("%25s --> %s\n", $_, $ENV{$_}) for keys %ENV'
All those variables are available to the scripts started from the a shell; depending on the actual user and process running the script. You probably have a built-‌in env command too if that’s all you need. Try man env.
[close] Permanent link · http://querylog.com/q/env+perl+shell+script

Suggested HTML for linking:
Link preview: env perl shell script
18 July 2005 · Internet & computing
The page found by the original query:
Fake Perl shell
sodomy 100%
Nonsense. Any good coach will tell you that if you want to win, you need to give 110%.
[close] Permanent link · http://querylog.com/q/sodomy+100%

Suggested HTML for linking:
Link preview: sodomy 100%
18 July 2005 · advice & self-help
The page found by the original query:
Sedition·com: Top 100 Devil’s Dictionary X…
THE ORIGIN OF CUNNILINGUS
I don’t think it’s a big puzzler. I’m much more bemused by the origins of hagus or pig’s feet or lobster as something to put in your mouth. Seriously. Who as the first guy who found a dead lobster washed up on shore and, after giving it a cursory whiff, said to himself, “Mmmmm, I have just got to cram this thing in my mouth.” Or cheese for that matter! Who cut open a lamb’s stomach to see the curdled ewe’s milk and thought, “You know I’ll bet if I just scrape off the inside of a dead sheep’s stomach and mix it with milk and let it sit in the dark for a week, that’d taste mighty fine.”
[close] Permanent link · http://querylog.com/q/THE+ORIGIN+OF+CUNNILINGUS

Suggested HTML for linking:
Link preview: THE ORIGIN OF CUNNILINGUS
18 July 2005 · potluck
The page found by the original query:
Sedition·com: 50 queries from the weblog a…
look at naked girls
Oh, thanks for the advice. I tried it on the strength of your recommendation and it was pretty enjoyable. I never would have thought of that on my own.
[close] Permanent link · http://querylog.com/q/look+at+naked+girls

Suggested HTML for linking:
Link preview: look at naked girls
18 July 2005 · advice & self-help
The page found by the original query:
majenta || FLIP SIDES || sedition.com
second guess
You’re a preoperative tranny. No? Well, I know you gave me three tries but I’m out of guesses.
[close] Permanent link · http://querylog.com/q/second+guess

Suggested HTML for linking:
Link preview: second guess
18 July 2005 · sex counselor
The page found by the original query:
Sedition·com: Dear Halle Berry,
only pakistani naked girls
That’s pretty racist, I have half a mind to show you naked pictures of only Indian girls in retaliation.
[close] Permanent link · http://querylog.com/q/only+pakistani+naked+girls

Suggested HTML for linking:
Link preview: only pakistani naked girls
18 July 2005 · international issues
The page found by the original query:
Sedition·com: Young nude girls
adam haley, taos
This is the key to the photos that appear on the Sedition post: Adam Haley, Taos.
Adam photos 1. Barnaby and Adam. This was a photo shoot for our high school band, Autumn Moon. Cort and I were also on the pipe. It’s an aqueduct that takes the local acequia over NM State Road 64, I think. It’s 18 feet over the highway.
2. Adam and me. This was Zak’s birthday on the mesa in Los Colonias. Maybe 14th. Cropped out of the picture are David Cox, Zak Weisfeld, Jason Heyman, Jason Weisfeld, Francis Bartley, Chris and Mike Flaherty, Pablo Hopman, Noah Kaufman, and Jeff Yeoman. Forgive me guys if I got someone’s last name misspelled.
3. Adam hanging from a chain on a viga and Zak pretending to hold him up. Zak’s house.
4. The church (Will’s living room). Adam is playing keyboard. The other band members there: Barnaby, Cort, Marcus (Adam’s brother), and me.
5. Adam and Barnaby watching the eastern sky as the sun sets in the west. My house on Blueberry Hill. Northern New Mexico skies are like that somewhat often. I wish y’all would stay away though so maybe I should keep it to myself.
5. Adam windsurfing. Alberto Cattaneo was there too and got blown a mile or two off-‌shore, so to speak. We thought we’d killed our exchange student.
7. Adam and Will. I think this was the anti-‌prom party of 1985.
8. Adam at the Tennis Ranch pool. I think we were allowed to visit as non-‌members because my aunt “knew” the tennis pro or something.
9. Rio Grande at the bottom of the box and the start of the State Park run. Adam and Feilding (and maybe Chris F jumping from the bridge in the shadow).
10. Adam at sunset at my house. 1986.
This is the post on Sedition which the original query found. There is one more picture there too.
Mostly what I remember about Adam is he was the only close friend I’ve ever had who I never had a single fight with. In high school when I was sleeping 3 hours a night at home and couldn’t stand to be there in general he’d let me crash on his couch after school most afternoons.
I have a handful of other photos in black and white from the only time I hooked up with Adam after high school. He had formed a painters’ group with two other young men, Sasha Vom Dorp and Cedar Goebel. I wrote an article about them for the local news paper. It was very exciting. A time that one couldn’t help but have tremendous optimism for life and enthusiasm for participating. I wrote more and better poetry that year than I have in 23 years of writing verse.
I didn’t go back to New Mexico when Adam was sick. I didn’t think it would end up being serious. I didn’t go back when he was dying. Marcus said he wasn’t really recognizing people.
[close] Permanent link · http://querylog.com/q/adam+haley,+taos

Suggested HTML for linking:
Link preview: adam haley, taos
18 July 2005 · potluck
The page found by the original query:
Sedition·com: I don’t know