Apple Store bookmarklet

Remix: this movie + WordPress’ PressIt bookmarklet = Apple Store bookmarklet javascript:if(navigator.userAgent.indexOf(‘Safari’) >=0){ Q=getSelection(); }else{ Q=document.selection?document.selection.createRange().text:document.getSelection();} void(window.open(‘http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore’ + ‘?productLearnMore=’+encodeURIComponent(Q))); (I’d make it draggable, but WordPress auto-curly-quoting is being too clever.) Update: the movie is from Jon Rentzsch.

bill silva management contact info

bill silva management unhelpfully does not list their phone number or address on their web site, instead offering this lame excuse: What are the Bill Silva Presents phone and fax numbers? What are the Bill Silva Presents mailing and physical addresses? As far as the phone/fax numbers and our mailing or phisical addresses, we do …

simple gethostbyname example

Here’s a simple example using gethostbyname() that emulates the host command. I wrote it to debug a DNS problem. On the network I’m on right now, gethostbyname() returns a different answer than host and dig. It is overaggressively caching other hostnames. i.e. nsloookup shrub.ca is returning 17.250.248.64, which is mail.mac.com (!). #include <netdb.h>#include <stdio.h>#include <stdlib.h> …