Discussion » Cal's rants 2

This is a read-only copy. The forum ran on iamcal.com from 2000 until its database was lost in 2016, and this topic was rebuilt from copies saved by the Internet Archive's Wayback Machine. Some replies may be missing, and its dates are approximate.
Posted by syl, 27th April 2009:
 
everything was better in the past. you know, apart from the fact it was shit. i want to poke out their stupid elitist eyes »

All I saw was a bit of food on a fork that looks like it could be haloumi cheese. Nyom.
Posted by Grim..., 29th April 2009:
 
AAAAAAges ago, Cal was talking about how he wished there was a tabbed version of Putty.
Putty Connection Manager is this, and it can log in for you, and it can run commands after logging in, and it's ace.
64-bit support
Posted by cal, 29th April 2009:
 
been playing with it, but not really in love with it. plain old putty might just be good enough
Posted by Saltation, 9th May 2009:
 
sometimes, ruby makes me sad

ok, i just came home and i'm hella drunk and for no goo dreadson i can think of i'm looking here instead of upside down puking in the toilet

but i don't follow this, the "sad" bit

"but it still matches end of line with $ rather than end of string."

struggling to see the differnce, in the example, of end of string vs end of line, gven you've passed a closed-ended string

i may be missing something obvious.

fukit, i'll go out on a libm and say i'm CERTAIN i;'m missing something obvious. does maybe the /s flag imply a non-line string?

(CBATG)
Posted by cal, 9th May 2009:
 
/s is single line mode, /m is multiline mode

they have two effects in regexps.

1) the dot (.) metacharacter matches any single codepoint in /s mode, and any codepoint apart from newlines in /m mode.

2) '^' and '$' match the beginning and end of a line in /m mode and the beginning and end of the string in /s mode. line is defined as any sequence of codepoints bounded either by the start of the string, the end of the string, or a newline.

for instance, in perl:

"hello" =~ /^hello$/; # true
"hello\nworld" =~ /^hello$/s; # false
"hello\nworld" =~ /^hello$/m; # true

this is all very well, since you often need both. but ruby only has /m mode.
Posted by Grim..., 10th May 2009:
 
Re: The T-Mobile advert - is this Pink?
Posted by Saltation, 11th May 2009:
 
cal: ta
but:
based on this, isn't multiline mode then simply string mode but with endofline not explicitly trappable/specifiable, whereas in stringmode it's implicit?
ie, if you make EOL an explicit character (separate from EOS) (i could NEVER find a way to escape ctrl-J (old fume)), isn't multiline mode complete?

hang on, your examples subtly contradict your explanation... or rather invert my own restatement... let me think
Posted by Saltation, 11th May 2009:
 
ok, i think i was getting muddled by old-unix shell-level/shell-utilities-level of string handling

the perl examples you use are multi-line strings, where in traditional shell-utilities it was tricky to type multi-line strings [without depending on shell respect]. on the other hand, you could casually create multi-line files and pass them in.

unix standard behaviour was to treat lines as separate and separable w/in the larger input.

with multi-line files (EOF proxying for EOS in this context), '"hello\nworld"'
  ==
    'hello
    world'
=~ /^hello$' would be true (for first line)

it strikes me that /s mode might be a bodge. EOL was never intended to imply EOS. (and $ was strictly EOL.) quite the opposite: EOS carried an implicit EOL. it's possible that in latter years EOS became synonymous with EOL, and the implicit relationship latterly inverted. certainly that's what your /s example suggests.

it's possible also that it might be useful to make explicit a differentiation between per-line and per-file State (t/f) for handling /m mode (traditional unix mode). such that your 3rd example returns {T,F},{T}.

ok, i REALLY need to attach a breathalyser to my keyboard
Posted by Saltation, 12th May 2009:
 
the step-shift in sed for distinguishing EOL and EOS/EOF was always a hassle for non-trivial scripts. you learned to love :
Posted by Saltation, 12th May 2009:
 
Re: The T-Mobile advert - is this Pink?"

Grim... good call. am checking, via what aussies would call a mate of hers in LA. i recognise remi nicole, too, i think.
Posted by Saltation, 12th May 2009:
 
Grim...: it is
Posted by Grim..., 12th May 2009:
 
Score!
Posted by WarHead, 12th May 2009:
 
Duh! You can easily see that it is. There's been quite a lot of hype about it anyway, if you're down with the kids.
Posted by jeffry, 12th May 2009:
 
of course it's pink, she did an "impromptu" performance afterwards, that and as much as I hate to admit it, she's the only one singing in tune
Posted by WarHead, around 16th May 2009:
 
this photo of solar transit by the space shuttle is incredible. lots of great photos in the nasa stream »


And lots of crap ones of people standing at podiums (one of whom looks a bit like Gerry Adams, but isn't).

Not Gerry Adams

We want hooge rockets, not hooge egos.
Posted by cal, around 17th May 2009:
 
the ones at the very beginning are cool, and the very end
Posted by che, around 17th May 2009:
 
Surely that is Gerry Adams
Posted by Saltation, around 17th May 2009:
 
>if i wore a watch, i'd wear this one. beautiful

ok, that's the first watch i've seen in years that i'd wear. cal: do you know the maker/make? (there's no comments on the site, and my email's currently busted so i can't ask the poster)
Posted by cal, around 17th May 2009:
 
designed by Denis Guidone

www.flickr.com/photos/desig...
Posted by Saltation, 19th May 2009:
 
ta muchly
Posted by Grim..., 19th May 2009:
 
I assumed it was a mock-up, though.
Posted by Saltation, 19th May 2009:
 
you're so cynical
Posted by Grim..., around 19th May 2009:
 
Bring on the colondee moderatorship!
Posted by cal, around 20th May 2009:
 
shoot me an email - can't remember your address
Posted by Grim..., around 21st May 2009:
 
I emailed you just the other day about the Bugs torrets, lazy.
I'll write one now.
Posted by cal, 21st May 2009:
 
oh yeah!
Posted by syl, around 5th June 2009:
 
"wow, thanks for resetting my preferences and tweeting on me behalf spymaster. fuck you"

What the hell is that all about?
Posted by WarHead, around 10th June 2009:
 
This is a bain2 rant, actually, from Twitter. "i have armadillos loose in the back of my van. :( #worksucks #fail #dimebar"

Possibly the best and arguably most surreal Tweet ever.
Posted by cal, around 10th June 2009:
 
he delivers pets, so it's not quite as odd as it sounds. but yes
Posted by WarHead, around 10th June 2009:
 
Yes, I knew that, but even so that's got to be a classic and probably unique tweet.
Posted by WarHead, 7th July 2009:
 
this infographic-style resume is wonderful. hire this human


Clever, but he's just showing off.
Posted by Grim..., 10th July 2009:
 
god, i really want to read more of this book

People are suggesting it's this one: www.amazon.com/Moon-People-...
Posted by Grim..., 10th July 2009:
 
Confirmed!
www.amazon.com/review/RDJZ7...
Posted by cal, 10th July 2009:
 
yeah, i know - considering buying it
Posted by Grim..., around 23rd July 2009:
 
I thought that continue time clock looked familiar: www.handinhandclock.com
Posted by Saltation, around 25th July 2009:
 
clockinhandgareth.com
Posted by Grim..., around 29th July 2009:
 
So you're writing another book, Mr Henderson? What's it about?
Posted by che, around 30th July 2009:
 
unicorns probably.
Posted by Saltation, around 1st August 2009:
 
500 pages?
Posted by che, around 1st August 2009:
 
The thing about unicorns is that if you start at the wrong end, it takes ages to get to the point.
Posted by WarHead, around 23rd August 2009:
 
Badum, tish.

the humans are doomed . we should just give up now


But surely it's only a matter of time before they develop the ultimate wanking machine. If only Brock could have held out a little bit longer.
Posted by WarHead, around 24th August 2009:
 
© 2000-2009 Cal Henderson. We try to have valid XHTML, CSS and high Accessibility.
It's all a bit pointless really.


Why's that, old bean?
Posted by Grim..., around 28th August 2009:
 
Now, I'm not that good at maths, but that zombie outbreak thing - why are dead zombies coming back to life?
Posted by cal, around 28th August 2009:
 
warhead: validity is a dumb goal. doesn't guarantee it will work everywhere of everyone can see it. it's mostly to make nerds happy.

grim: don't imagine i actually read the article...
Posted by syl, around 10th December 2009:
 
"LOST 1-5 is super cheap right now"

Thank you! I love LOST. I've not ever been so hooked on a series..
Posted by Saltation, 10th December 2009:
 
urBacon, 1948
Posted by WarHead, around 15th December 2009:
 
oh god, this is great. but what's the music playing in the background?


It's 'A summer place,' by Max Steiner. I knew the tune very well, as it was always on the radio when I was a kid, and was a big hit for Percy Faith and his Orchestra, but I was damned if I could remember its name or the artist. So, I Googled, 'what is the name of this tune?' and was directed here. In the 'name that tune' section, I chose 'tap the rhythm on the keyboard' and the damn thing recognised it as soon as I tapped it out. Fantastic.

PS You can find it on last.fm under 'Percy Faith' with the title 'Theme from A Summer Place.'
Posted by syl, around 15th December 2009:
 
I also remember that tune.
Posted by syl, around 17th December 2009:
 
"Dude" LMFAO!

Desmond "Brotha" : www.youtube.com/watch?v=Tq_...
Posted by WarHead, around 29th December 2009:
 
Hmm, when I first saw this I thought that the second chart showed the time of day when you had peaks of activity and assumed it meant you were doing the five-knuckle-shuffle before getting out of bed every second day. Of course, that could still be true.
Posted by Saltation, 9th June 2010:
 
Star Wars Uncut:
Steve Jobs introduces... iDeathStar
www.youtube.com/watch?v=jbH...


Yahoo's Ridiculous Mission Statement:
standard instance/symptom of Infestation of Parasites, common to all large yankcorps
saltation.blogspot.com/2004...
(tail end email is the funny/poignant part. skip the intro; i was still fuming then)