Comments for girtby.net this blog is girtby.net 2009-09-30T01:44:34Z WordPress http://girtby.net/comments/feed/atom/ Comment on Staging Wordpress With Bazaar by Jonno Jonno http://girtby.net/?p=3851#comment-15179 2009-09-30T01:44:34Z 2009-09-30T01:44:34Z Great info. Would love to see a “dummy” or tutorial version of this. Expanded and detailed for users like me who aren’t programmers :-)

Something that a user could follow, step by step, with no prior knowledge but with some experience.

]]>
Comment on Last Post! by Arash Partow Arash Partow http://girtby.net/?p=3909#comment-15077 2009-09-22T01:02:42Z 2009-09-22T01:02:42Z Sad to see you stop. You’ve had some nice gems over the years.

]]>
Comment on Last Post! by Sunny Kalsi Sunny Kalsi http://blog.quaddmg.com http://girtby.net/?p=3909#comment-14958 2009-09-18T01:42:10Z 2009-09-18T01:42:10Z Sad face…

]]>
Comment on First Post! by girtby.net – Last Post! girtby.net – Last Post! http://girtby.net/archives/2009/09/18/last-post/ http://girtby.net/2007/01/13/first-post#comment-14952 2009-09-17T14:27:27Z 2009-09-17T14:27:27Z [...] the 18th of September 2004, I unveiled the first post on [...]

]]>
Comment on Archiving Tweets by Aristotle Pagaltzis Aristotle Pagaltzis http://plasmasturm.org/ http://girtby.net/?p=3905#comment-14641 2009-08-24T05:14:21Z 2009-08-24T05:14:21Z I concede that JSON::XS is less likely to be installed than libxslt.

I started out with your stylesheet actually, but eventually I got to annoyed at all the effort that XSLT takes for very simple cases like this one.

The deciding factor was JSON + dynamic language, so Ruby would work as well as Perl here; I guess it would look cleaner at the expense of a longer command. (Python’s not much for one-liners, however.) Of course you’d ultimately put this in a script, so that’s neither here nor there.

As for the spamminess, that was probably because somehow all the underscores in my code block got turned into _ character references, and ASCII characters spelled as NCRs is a popular filter blinding technique. (On both sides of the war, actually – we use it against spammers too, c.f. mailto: hiding.)

]]>
Comment on Archiving Tweets by alastair alastair http://girtby.net http://girtby.net/?p=3905#comment-14638 2009-08-23T23:31:48Z 2009-08-23T23:31:48Z A weird sort of easier:

% curl -k -u randomphrase:shh -o tweets-#1.json ...
zsh: no matches found: tweets-#1.json
% curl -k -u randomphrase:shh -o tweets-\#1.json ...
[...]
% perl -MJSON::XS -E'...' -- tweets-* | json_xs
zsh: command not found: json_xs
Can't locate JSON/XS.pm in @INC (@INC contains: ... )
.
BEGIN failed--compilation aborted.

Despite the snarky comment above, yes it does work nicely after installing libjson-xs-perl.

Another nice to have would be to resolve shortened URLs – this is probably a lot easier to do in Perl than XSLT…

BTW: Your comment was marked as “Very Spammy” by Defensio, and had to be manually rescued. This makes me sad.

]]>
Comment on Archiving Tweets by Aristotle Pagaltzis Aristotle Pagaltzis http://plasmasturm.org/ http://girtby.net/?p=3905#comment-14634 2009-08-23T16:40:35Z 2009-08-23T16:40:35Z A weird sort of power.

  1. You can use [01-32] instead of [1-32] to get filenames with correctly sorting names and with the -o switch you can clean up the filenames further.
  2. You can download JSON rather than XML.

Bottom line:

curl -k -u user:pass -o tweets-#1.json 'https://twitter.com/statuses/user_timeline.json?count=100&page=[01-32]'
perl -MJSON::XS -E'@s=map{local@ARGV=$_;@{decode_json<>}}@ARGV;delete@{$_}{qw(user source)}for@s;say encode_json\@s' -- tweets-* | json_xs

Tad easier…

]]>
Comment on At The End Of One’s Tether by Phil H Phil H http://dropletsforming.blogspot.com http://girtby.net/?p=3894#comment-14289 2009-08-04T08:37:04Z 2009-08-04T08:37:04Z Unfortunately the carriers are not all Apple’s bitches, as you put it. As per the normal business negotiation, each side brings their cards to the table. Apple had the iPhone, for which it wanted moolah. The carriers had moolah, for which they wanted the iPhone and as many restrictions they could get. For each restriction they will be willing to offer more money, so if Apple want to be nice to a small group of users that want to use tethering they have to be willing to give up some revenue for that.

In creating restrictions, carriers push a larger proportion of users into buying addons to their contracts or into using the expensive bit of the tariff (international calls by banning net phone apps, etc), so driving up their Average Revenue Per User. Remember, the better the iPhone, the more Apple can squeeze out of the carrier and the more the carrier has to raise the ARPU to get their profit margin back. So Apple leverage the hype they can build to get a better deal from the carrier. And the carrier know that if you’re spending $40/m on a contract, you probably won’t mind another $5 for tethering.

Yes, they are all there to take your money. That’s Big Business at work. The terms of the deal to prevent tethering, to quietly throttle certain apps, were all written into the contracts at the negotiating table. This was a done deal a long time ago. As time goes on, and more apps and uses are prevented, the terms of that deal will be slowly revealed, clause by clause. Apple has not just turned on its loving fans, it has already sold them. Did you expect anything else?

]]>
Comment on Sleeping Bloggy by Andy Andy http://cloudberrylab.com http://girtby.net/?p=3900#comment-14288 2009-08-04T06:03:07Z 2009-08-04T06:03:07Z I always enjoy learning what other people think about Amazon Web Services and how they use them. Check out my very own tool CloudBerry Explorer that helps to manage S3 on Windows . It is a freeware. http://cloudberrylab.com/

]]>
Comment on Easiest $100 I’ll Ever Make by Chris Chris http://sutes.co.uk/ http://girtby.net/?p=3890#comment-14287 2009-08-04T05:20:01Z 2009-08-04T05:20:01Z I agree with Alan. The problem isn’t clear. In your computer simulation, you rule out all cases where you don’t pick at least one candy, but, given the wording, you could have had:

if (hand[0] != licorice)
            continue;

i.e. rule out all cases where the one that you put on the table isn’t a licorice candy, and that would give you the 1/3 probability.

]]>