Slashdot Mirror


User: tlhf

tlhf's activity in the archive.

Stories
0
Comments
68
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 68

  1. And this is new how? on Solid Capacitor Motherboards Introduced · · Score: 1

    Yeah, you know, because that's *the* biggest complaint you see on enthusiast/overclocker message boards.

    I guess the common complaint about this article is that... I've already got a Gigabyte motherboard with solid state capacitors!

    Link, note point 7.

  2. Re:Not all comp sci papers are difficult to grok on Great Computer Science Papers? · · Score: 1
    "That's not a paper. It's someone rambling on and on. [...] A great paper does not complain that the name of the C++ language does not lead to an obvious file extention for files."

    I'll let L. Wall response to that with a quote I remembered from the paper.

    Note how we still periodically hear the phrase ``serious literature''. This is literature that is supposedly about Real Life. Let me tell you something. The most serious literature I've ever read is by Lois McMaster Bujold. Any of you read her? It's also the funniest literature I've ever read.

    Ok, I've never read any Bujold, and I don't like space opera, so I'd probably hate it anyway. But the point is that the points of his speech wouldn't be any (more|less) true if he'd embodied them in a "serious" paper, a talk, a tv programme, or even a slashdot post. Although as the message itself criticises beliefs you seem to hold, I'm not surprised you didn't like it.

    xxx
    tlhf

    ps, something you think the paper was about but wasn't != something that the paper was about

  3. Not all comp sci papers are difficult to grok on Great Computer Science Papers? · · Score: 2, Informative
    Try reading Perl, the first postmodern computer language, by Larry Wall. It's informal and not too focussed on perl - the first few pages hardly touch perl.

    Well, maybe I just wanted to whore my favourite paper.

    xxx

  4. Try XFS [nt] on Linux File System Shootout · · Score: -1, Troll

    La la La la La la La la La la La la La la La la La la. No text.

  5. Re:Perl Golf on Can You Raed Tihs? · · Score: 1
    In case you're interested, on advice from fxn, the code can become just:

    perl -pe's|\B(\w+)\B|join"",sort{rand 2}split//,$1|ge'

    Which is frigteningly impressive.

    xxx

  6. Re:You's just jealous cuz you got no 1337 skillz on Can You Raed Tihs? · · Score: 1
    Genius!

    xxx

  7. You's just jealous cuz you got no 1337 skillz on Can You Raed Tihs? · · Score: 1
    perl -pe's|(\w)(\w+)(?=\w)|$1.join"",sort{rand 2}split//,$2|ge'

    Booyah! Funny how a piece of code written using a "worthless" methodology didn't need fixing, where as a bloated piece with endless unnecessary variables did...

    xxx
    And I think this is the shortest version so far, no one else has got below 64 characters. Evolved from Pez's version.

  8. Re:Perl Golf on Can You Raed Tihs? · · Score: 1
    You may have noticed the intentional (me? lie?) mistake in leaving in the -n. And poor writing. The -i isn't needed because it's gready, but because \w is the same* as [0-9a-zA-Z_]. I found you can also use the paradigm of sort{rand 2} over sort{.5+rand} without sacrificising the pseudo-randomness. The code is now:

    perl -pe's|(\w)(\w+)(?=\w)|$1.join"",sort{rand 2}split//,$2|ge'

    Which is a lot shorter than the code in the story ^_^. And survives slashdot mangling ^_^.

    When I did look at the randomness for the values of occurances of how the string "abcdef" got randomized the results weren't great:

    abcdef: 1/ 8
    abcedf: 1/ 8
    acbdef: 1/ 8
    acbedf: 1/ 8
    adbcef: 1/32
    adbecf: 1/32
    adcbef: 1/32
    adcebf: 1/32
    adebcf: 1/16
    adecbf: 1/16
    aebcdf: 1/32
    aebdcf: 1/32
    aecbdf: 1/32
    aecdbf: 1/32
    aedbcf: 1/16
    aedcbf: 1/16

    But, these variations in probability for different possibilities occur in words of only 6 letters or greater. I got the same results with the sort{.5+rand} paradigm. I suppose the probability of where the letters fall doesn't really matter tho.

    xxx
    *According to perlretut, anyway. But whether they are functionally identical is anyone's guess.

  9. Re:Perl Golf on Can You Raed Tihs? · · Score: 1
    Taking it a little further...


    The \b are not needed because the \w+ match is greedy. So is the -i modifier on the regex. The print statement can be replaced with a -p modifier. With a -p modifier then -n is assumed, so it too becomes unnecessary. We can remove the need for a $3 by lookaheading for the last character, which in turn allows us remove the parenthesis on the join statement. I've also replaced the "!" regex barriers with "|" ones cause they're prettier. I imagine them as being pink. I wonder if there's a font with flowers instead? With these in mind, we can reduce your code to:


    perl -npe's|(\w)(\w+)(?=\w)|$1.join"",sort{.5+rand}spli t//,$2|ge'


    With, obviously, out the linebreak. Your random sorting algorithm isn't that random either, but good enough. Far better than I can come up with in such short space. Oddly enough, I'd written a script to do this prior to even reading slashdot (I'd seen it on a friends blog), and despite it not being golf (thank you List::Util::shuffle) it bares an uncany respemblence to yours.


    I've have a feeling the replacement part of the regex could be shortened more, but I know not how.


    xxx

  10. maybe sort the hash? [nt] on Perl 5.8.1 RC1 Released · · Score: 1

    yada, no text, ...

  11. Re:Dead embarassing... on Apache 2.0 r00ted on NetWare, Windows, OS/2 · · Score: 1
    Well, on my Win2k box Apache/2.0.40 installed itself as a '.\LocalSystem'. Which will give Apache far more rights than you'd expect. Effectively not far from root.

    I had to set up a seperate user, '.\Apache', - you'd expect Apache to create a restrictive user by default on install.

    tlhf

  12. Re:Questions in Perl on Ask Larry Wall · · Score: 1
    Gee, that's so much more typing that you need...

    print for @weird_syntax;

  13. You're stoopid on Shattering Windows · · Score: 1
    "I would like to point out that Java runs just fine under Linux."

    He never said it wouldn't. What he said was that between Java and .Net there would be an improvement in the security of applications running on the Windows platform.

    He isn't considering whether .Net will live up to the hype or not; he's just stating that the security frameworks implemented in .Net and Java will create a more secure system.

    tlhf
    Oh - and nice arbitrary '2-5 years' figure. Making up figures make your point seem more valid....

  14. Re:This even rivals... on Anonymous Will Award $200,000 for Xbox Linux · · Score: 1

    If my modding prilidges hadn't been removed for modding up criticisms of Slashdot, then I'd mod you up.

    The world needs more obscure references :D

  15. Bzzt, Wrong on World Cup Final · · Score: 2, Informative

    They changed the rules.

    tlhf
    xxx

  16. Re:join groups on AudioGalaxy Reaches Settlement With the RIAA · · Score: 1

    This has changed AudioGalaxy to 'opt-in', not 'opt-out'. All songs are blocked until they are given the green light. Even songs which having nothing to do with the major labels.

  17. Re:I DID read the article... on Andreessen on the Browser Wars · · Score: 1

    Hmm, well, it's 50x better now, anyway. I remember when it was only 3.2x better. Hopefully soon it will be 58x better by version 1.1!

    tlhf
    Kids...

  18. Re:Microsoft should be applauded for this on Visual Studio .Net: Now with more Viruses · · Score: 1

    Yep.

    You obviously did forget the sarcasm tags.

  19. Follow This - was (Re:Grow up. Please.) on F# - A New .Net language · · Score: 1

    You said "It seems rather simple for an intelligent person to be against Microsoft, yes." I would say you're wrong.

    Let's do a little roleplaying, shall we?

    You're an intelligent centeral African woman, who was raped whilst a teen, and resultingly now has AIDS. You also have a child, and no full time job, and as such live pretty much a destitute life. The UNAIDS organisation provides some, if not enough, medication which helps with your condition. Without said medication, you'd almost certainly be dead, which would leave your child an orphan. The Bill and Melinda Gates Foundation gave $100,000,000 to help with AIDS relief in Africa[1]; a donation which they could not have afforded had Microsoft not performed monopolistic practices. Also, you don't really care about neither comparatively rich western nerds, nor ex m/BeOS|Netscape|Dr.Dos|Borland/ employees. Do you hate Microsoft?

    In such a situation, I very much doubt that I would hate Microsoft. But I guess that makes me stupid.

    tlhf
    xxx
    1. Shaan Online: With a Billion in Pledges, AIDS Fund Still Falls Short

  20. Re:Grow up. Please. on F# - A New .Net language · · Score: 1

    Oh, sure, it's always been anti-microsoft to a certain extent, but I found that it became "ridiculously" so after the take over. Maybe I was just looking at Slashdot in a more cynical eye. As for my user ID; I remember seeing sig a while ago which went something like "I was an Anonymous Coward for years, but all I got was this sucky uid". Well, I think I got the first bit of that quote right. Granted that I wasn't around when the 3 digits were still going, but I've been around the blog scene for a good few years.

    tlhf
    xxx

  21. Re:Democracy won't help on Beijing Newspaper Spoofed by The Onion · · Score: 1

    Hey, I never said it whether was flawed or not, good or bad, perfect or imperfect. I just said it was a proof of concept. And as for "So what" - well, it was a counter example to the original post which requested more democracy in Slashdot story posting process. That's 'what'.

    tlhf
    xxx

  22. Re:Grow up. Please. on F# - A New .Net language · · Score: 1

    Heheheh. You honestly think the world is that simple?

    tlhf
    xxx

  23. Democracy won't help on Beijing Newspaper Spoofed by The Onion · · Score: 3, Informative

    Kuro5hin.org, the proof of concept democratic group blog, has already posted this, a few days earlier than slashdot. It got voted to front page.

    tlhf
    xxx

  24. Grow up. Please. on F# - A New .Net language · · Score: 1

    What, you mean, it wasn't a pro open source article? Read site description. Originally, this was News for nerds. Stuff that matters.. It only picked up the ridiculously anti-MS slant after it was bought by VALinux. (Well, I think it was known as VALinux at the time, it seems to be constantly changing betwixt the /VA(\w+)/ names.) They seem to be slowly moving back to a less partisan position.

    And anyway, it's hardly explicity pro Microsoft. It's just stating that a new language is availible.

    tlhf
    xxx
    And if you do want to be a true open source advocate, you need to understand proprietry software, for otherwise you are ignorant.

  25. Re:Finially an answer on Artificial Intelligence to Predict Sports Injuries · · Score: 0, Offtopic

    I always thought Python was Ruby for sissies.

    tlhf
    xxx
    Sorry...