• Dr Headdesk (unregistered) in reply to SarahE
    SarahE:
    Rumen:
    So, ppoplp, instpad of bpllyaching, lpt's hplp Alpx out and submit somp WTF's for him to usp. If wp arp rpading thpm, wp can submit thpm.

    (Sorry, pvpry timp I kpy thp lpttpr 'p' I gpt an 'e'.)

    You've piqued my curiosity... how did you get that last (real) 'e' in there? Alt + 101? Or were you just faking it?

    Assuming a non-fake-out, why on earth is your keyboard doing that?

    headdesk

  • theoneandonlyme (unregistered)

    I once had to revive an arkane zomputer with a problem very similar to the 'p'<->'e'(and no reserve keyboard in sight). Simply cutting the missing letter out of the software licence and using ctrl-v saved that day. Interestingly, the mental switch was made in less than a minute, and didn't bother me for the next few hours there.

  • Burpy (unregistered) in reply to Federico
    Federico:
    undefined:
    The real WTF is hardcoded first day of week. In Russia first day is Monday.

    Same story here: the week-end is the end of the week.

    On seventh day he rested. So Sunday is clearly not first day of the week :)

  • tragomaskhalos (unregistered)

    Item 8 in Stob's 13 Ways to Loathe VB:

    8. Arrays of constants. No such thing. Anyway, what would you do with 'em if you had 'em?
  • some guy (unregistered) in reply to Nathon

    I agree. The only WTF here is that the programmer (programming language?) doesn't know arrays!

  • some guy (unregistered) in reply to Burpy

    Nope, the 7th day in the bible is sabbath (= Saturday). The Christians moved their holy day to Sunday because of Eastern.

  • (cs) in reply to Watson
    Watson:
    Rumen's post contains two 'e's....
    It doesn't, unless you count the one from his handle. Given that that's a value that is cached in a cookie, you can't really count it. (Still looks faked, but weird keyboard faults do sometimes happen. Or a cow-orker knows how to apply a keyboard remap while a user is on a biobreak…)
  • unimo (unregistered) in reply to undefined
    undefined:
    The real WTF is hardcoded first day of week. In Russia first day is Monday.
    Not just Russia. Also Europe for example.
  • arsivindir.com (unregistered)

    arsivindir.com ı have

  • illtiz (unregistered) in reply to Dr Headdesk
    Dr Headdesk:
    SarahE:
    Rumen:
    So, ppoplp, instpad of bpllyaching, lpt's hplp Alpx out and submit somp WTF's for him to usp. If wp arp rpading thpm, wp can submit thpm.

    (Sorry, pvpry timp I kpy thp lpttpr 'p' I gpt an 'e'.)

    You've piqued my curiosity... how did you get that last (real) 'e' in there? Alt + 101? Or were you just faking it?

    Assuming a non-fake-out, why on earth is your keyboard doing that?

    headdesk

    That's what I tried, but every time I head my desk, I get a facepalm.

  • My Name? (unregistered) in reply to dkf
    dkf:
    ... Or a cow-orker knows how to apply a keyboard remap while a user is on a biobreak…)

    What is a cow-orker?

  • Burpy (unregistered) in reply to unimo
    unimo:
    undefined:
    The real WTF is hardcoded first day of week. In Russia first day is Monday.
    Not just Russia. Also Europe for example.

    Seems like we're heading towards the good old "more or less the whole world except americans" which is the most classic WTF :)

  • Anonymous Coward (unregistered) in reply to undefined
    The real WTF is hardcoded first day of week. In Russia first day is Monday.

    In Portugal, Monday is called 'segunda feira', tuesday is 'Terca feira' etc. which translates as 'second', 'third', etc. Spanish is (probably) similar. As a result, people from Spain, Portugal and Latin countries will tend to want Monday as second day of the week. That's a lot of people.

    ISO-8601 is brillant in that respect- Sunday is day 0 (or 7!), monday is day 1- and everybody's happy. ISO weeks start on Monday, which is the first day of the working week in most cultures.

  • SCB (unregistered) in reply to My Name?
    My Name?:
    dkf:
    ... Or a cow-orker knows how to apply a keyboard remap while a user is on a biobreak…)

    What is a cow-orker?

    www.lmgtfy.com/?=cow-orker
  • (cs) in reply to My Name?
    My Name?:
    What is a cow-orker?
    Someone who orks cows. Do keep up!

    (http://catb.org/jargon/html/C/cow-orker.html)

  • DarkJMKnight (unregistered) in reply to Rumen

    Ok, so if Rumen's keyboard is theoretically swapping E and P, then the last sentence, if interpreted, would read: (Sorry, every time I key the letter 'e' I get an 'p'.)

    Now the a/an mix up could be a typo based on knowing what it's going to end up saying, so your brain auto-corrects... but If it were doing this itself, then the second word of the post should read epoplp... which would have blown the whole gag.

    Personally, I think Rumen is just a straw man posting so we'll stop harping on the accidental duplicate. :~)

  • Bob (unregistered) in reply to gus
    gus:
    The real WTF is that while the number of days per year is constantly increasing (by about 68 seconds per century), necessitating adding extra days to the YEAR, the number of days per week is unlikely to undergo any changes anytime soon.

    So by "soon" you mean within 127,000 years?

  • vindico (unregistered) in reply to Bob
    Bob:
    gus:
    The real WTF is that while the number of days per year is constantly increasing (by about 68 seconds per century), necessitating adding extra days to the YEAR, the number of days per week is unlikely to undergo any changes anytime soon.

    So by "soon" you mean within 127,000 years?

    Whoosh!

  • (cs) in reply to Anonymous Coward
    Anonymous Coward:
    In Portugal, Monday is called 'segunda feira', tuesday is 'Terca feira' etc. which translates as 'second', 'third', etc. Spanish is (probably) similar. As a result, people from Spain, Portugal and Latin countries will tend to want Monday as second day of the week. That's a lot of people.
    No. In Spanish, monday (day of the moon) is 'lunes' (day of the Luna, i.e. the Moon), then we have 'martes' (for Mars), 'miércoles' (Mercury), 'jueves' (Jove, Jupiter), 'viernes' (Venus), 'sabado' (sabbath), and 'domingo' (Dominus, the Lord). Italian and French are similar.

    As for when does the week start, I can't vouch for other countries, but here in Argentina (Spanish spoken, yes), it starts on Monday.

    And now you know possibly more than you wanted about this.

  • DiverKas (unregistered) in reply to tragomaskhalos
    tragomaskhalos:
    Item 8 in Stob's 13 Ways to Loathe VB:
    8. Arrays of constants. No such thing. Anyway, what would you do with 'em if you had 'em?

    TRWTF is that you actually quoted Verity Slob like she's relevant, despite the fact the article it originates from is almost 10 years old. Kudos VB hater, now troll along elsewhere, we don't care.

  • Vendor Relations (unregistered)

    It all started on the thirteenth hour, of the thirteenth day, of the thirteenth month.

    "Oh, lousy Smarch weather!"

  • SR (unregistered) in reply to DiverKas
    DiverKas:
    tragomaskhalos:
    Item 8 in Stob's 13 Ways to Loathe VB:
    8. Arrays of constants. No such thing. Anyway, what would you do with 'em if you had 'em?

    TRWTF is that you actually quoted Verity Slob like she's relevant, despite the fact the article it originates from is almost 10 years old. Kudos VB hater, now troll along elsewhere, we don't care.

    I liked it. Thanks for posting tragomaskhalos

  • (cs) in reply to Rumen
    Rumen:
    So, ppoplp, instpad of bpllyaching, lpt's hplp Alpx out and submit somp WTF's for him to usp. If wp arp rpading thpm, wp can submit thpm.

    (Sorry, pvpry timp I kpy thp lpttpr 'p' I gpt an 'e'.)

    I think you got that reversed--every time you type an 'e' you get a 'p'. Otherwise, it would be "eeoele", not "ppoplp".

  • Anonymous (unregistered) in reply to toth
    toth:
    Rumen:
    So, ppoplp, instpad of bpllyaching, lpt's hplp Alpx out and submit somp WTF's for him to usp. If wp arp rpading thpm, wp can submit thpm.

    (Sorry, pvpry timp I kpy thp lpttpr 'p' I gpt an 'e'.)

    I think you got that reversed--every time you type an 'e' you get a 'p'. Otherwise, it would be "eeoele", not "ppoplp".

    There's only one way to find out. Now, where was that comment? Oh, here it is:
    // commented for design has change - ask Rumen for info

  • John Preston (unregistered)

    The real WTF is VB's BS return syntax.

    That lovely

    Public Function StupidFunction as String StupidFunction = Stuff

    syntax has always bothered me. Especially since it isn't even actually a return, because it continues processing, while using the function's return value as a variable. What a load of shiat.

  • Paul (unregistered) in reply to Burpy
    Burpy:
    Federico:
    undefined:
    The real WTF is hardcoded first day of week. In Russia first day is Monday.

    Same story here: the week-end is the end of the week.

    On seventh day he rested. So Sunday is clearly not first day of the week :)

    If you are taking the Bible as the authority on the days of the week, then Sunday is the first day, and Saturday is the last day. If nothing else we can tell this from the Easter events. Jesus was crucified on Friday, because they wanted to get it done before the Sabbath (the last day of the week). The Resurrection took place on the first day of the week (Sunday). (John 20:1 "Early on the first day of the week...")

    Christians changed their 'day of rest' or 'holy day' from the traditional Sabbath (Saturday) to Sunday to commemorate the Ressurection.

    A lot of European languages call Saturday something derived from Sabbath - eg Sabato in Italian, Sabado in Portuguese, Shabat in Armenian etc.

    (English is odd because Saturday is named after a Roman god, Saturn, where the rest of the 'god' days were renamed after Norse gods - possibly because the old Norse name for Saturday was 'wash day', and the old English never washed ;) so they just left it as it was after the Romans left).

  • A Gould (unregistered) in reply to Berry
    Berry:
    It looks like it might be useful if you have, say, today's day-in-week number N and you want to show "a week from now" with DayOfTheWeek(N+7), but surely a modulo will be more flexible -- then you can do a fortnight hence as well!

    As mentioned elsewhere, you would be amazed at how many people don't know what a modulo is (or even "remainder"), in today's world of all calculator, all the time.

  • Anonymously Yours (unregistered)

    The problem with that is it's not dynamic enough.

    <?php function getDayOfWeekHeresy($intToday = 0) { $intToday = abs($intToday); $file = fopen('/includes/weekArray.php', 'w'); fwrite($file, "<?php\n"); fwrite($file, "require_once('/includes/dayOfWeekConsts.php');\n"); fwrite($file, '$astrDays = Array("FILE_NOT_FOUND");' . "\n"); for($i = 1; $i <= $intToday; $i++) { switch(($i % 13) + 1) { case 1: fwrite($file, '$astrDays[' . $i . '] = $STR_SUNDAY;' . "\n"); break; case 2: fwrite($file, '$astrDays[' . $i . '] = $STR_MONDAY;' . "\n"); break; case 3: fwrite($file, '$astrDays[' . $i . '] = $STR_TUESDAY;' . "\n"); break; case 4: fwrite($file, '$astrDays[' . $i . '] = $STR_WEDNESDAY;' . "\n"); break; case 5: fwrite($file, '$astrDays[' . $i . '] = $STR_THURSDAY;' . "\n"); break; case 6: fwrite($file, '$astrDays[' . $i . '] = $STR_FRIDAY;' . "\n"); break; case 7: fwrite($file, '$astrDays[' . $i . '] = $STR_SATURDAY;' . "\n"); break; case 8: fwrite($file, '$astrDays[' . $i . '] = $STR_SUNDAY;' . "\n"); break; case 9: fwrite($file, '$astrDays[' . $i . '] = $STR_MONDAY;' . "\n"); break; case 10: fwrite($file, '$astrDays[' . $i . '] = $STR_TUESDAY;' . "\n"); break; case 11: fwrite($file, '$astrDays[' . $i . '] = $STR_WEDNESDAY;' . "\n"); break; case 12: fwrite($file, '$astrDays[' . $i . '] = $STR_THURSDAY;' . "\n"); break; case 13: fwrite($file, '$astrDays[' . $i . '] = $STR_FRIDAY;' . "\n"); break; } } fwrite($file, "?>\n");
    fclose($file);
    
    
    sleep(5);	//Give the server a chance to close the file (this WTF is the extra credit point for those of you shooting for a 105% on grading me)
    
    
    //I'm going to hell for this
    require_once('/includes/weekArray.php');
    return $astrDays[$intToday];
    

    }

  • ycgngvb (unregistered) in reply to Rumen
    Rumpn:
    So, epoelp, instpad of bpllyaching, lpt's hple Alpx out and submit somp WTF's for him to usp. If wp arp rpading thpm, wp can submit thpm.

    (Sorry, pvpry timp I kpy thp lpttpr 'p' I gpt an 'e'.)

    SGSL

    (Fbeel, zl xrlobneq frrzf gb cebqhpr ebg13.)

  • tragomaskhalos (unregistered) in reply to DiverKas
    DiverKas:
    tragomaskhalos:
    Item 8 in Stob's 13 Ways to Loathe VB:
    8. Arrays of constants. No such thing. Anyway, what would you do with 'em if you had 'em?

    TRWTF is that you actually quoted Verity Slob like she's relevant, despite the fact the article it originates from is almost 10 years old. Kudos VB hater, now troll along elsewhere, we don't care.

    Calm down sunshine. For what it's worth, I actually quite like VB, despite its many inadequacies. But since the (missing) ability to define an array of constants would have enabled the function to be rewritten much more elegantly, your implied claim that the point I quoted is irrelevant is bizarre.

  • Pablo (unregistered)

    what about modulo arithmetic?

    works for all numbers and isn't ignited to 14. also: for the default case- Caturday

  • tengrshyFghqrag (unregistered) in reply to ycgngvb
    ycgngvb:
    (Fbeel, zl xrlobneq frrzf gb cebqhpr ebg13.)
    Gunaxf, V tbg gb hfr gur qhzo yvggyr ebg13 rapbqre V jebgr lrfgreqnl (V'z yrneavat P).
  • Anonymous Organ Donor (unregistered)

    You know, soime people are still arguing over whether Sunday, or Monday should be day #1... you're still not really mentioning the fact that there's only 13 days, it's still missing a saturday.

  • Shishire (unregistered) in reply to W.A. ten Brink

    iDay = ((iRandomDay%7)+7)%7

    Now you've got a number 0 to +6 containing the day of the week. Which day is hard-coded as Day 0 is up to the programmer.

    Captcha: decet Deceit? Misdirection maybe?

  • the beholder (unregistered) in reply to Shishire
    Shishire:
    iDay = ((iRandomDay%7)+7)%7

    Now you've got a number 0 to +6 containing the day of the week. Which day is hard-coded as Day 0 is up to the programmer.

    Captcha: decet Deceit? Misdirection maybe?

    That's what I did when I had to solve a similar problem many years ago. And there's some irony in that people started discussing ROT13 for completely unrelated reasons, because it can be solved with a similar operation: ((x + 13) % 13) .

  • Anonymous Coward (unregistered) in reply to Anonymous Coward
    In Portugal, Monday is called 'segunda feira', tuesday is 'Terca feira' etc. which translates as 'second', 'third', etc. Spanish is (probably) similar. As a result, people from Spain, Portugal and Latin countries will tend to want Monday as second day of the week. That's a lot of people.

    That's not true. All of latin america (perhaps excluding Brazil?) uses Monday as first day. Only retarded "still living the past/conservative/enslaving" countries use the week end day as first day.

  • John (unregistered) in reply to Nathon
    Nathon:
    This is not that bad. Someone wanted to be able to add a number (less than 7) to the current day of the week and still know what day of the week it would be. Sure, there are other ways to do that, but really it's just a quick hack. I'm surprised this qualifies.

    Uhm....

    Modular Arithmetic would fix that problem (not to mention that if multiple cases will always do the same thing, there are provbably better ways to write the case statement).

    Of course, I may be a billy goat....

  • Mike (unregistered) in reply to W.A. ten Brink
    W.A. ten Brink:
    The WTF is that you disagree with using 13 numbers... Do this:

    iDay = (iRandomDay%7)+7

    When -RandomDay is negative, you would get a negative value with the % but by adding 7, all days end in the range between 1 and 13...

    It actually makes sense, especially if you'd allow negative dates...

    Not even remotely. AFAIK, Mod always returns +ve values in most languages. If it doesn't, try iDay=((iRandomDay%7)+7)%7

  • Mike (unregistered) in reply to Mike
    Mike:
    W.A. ten Brink:
    The WTF is that you disagree with using 13 numbers... Do this:

    iDay = (iRandomDay%7)+7

    When -RandomDay is negative, you would get a negative value with the % but by adding 7, all days end in the range between 1 and 13...

    It actually makes sense, especially if you'd allow negative dates...

    Not even remotely. AFAIK, Mod always returns +ve values in most languages. If it doesn't, try iDay=((iRandomDay%7)+7)%7

    In fact, I have a suspicion that some (many?) languages don't actually return -ve mods properly....

  • (cs) in reply to Anonymous Coward
    Anonymous Coward:
    Only retarded "still living the past/conservative/enslaving" countries use the week end day as first day.
    Why does it even matter? I couldn't even tell you for sure what we officially use in Canada. I'd guess Sunday. But I can tell you that the only time it's ever come into discussion in my life is when developers get pissy over it for no apparent reason. Other than that, nobody cares what the hell numeric digit you give to each day of the week.

    What asshole is making you fill out paperwork using days of the week as numbers?

    It's not like this is an honest-to-God problem like date formats, for example (which are actually meant to be read and interpreted by, you know, humans).

  • Jimbo (unregistered) in reply to z f k
    z f k:
    SarahE:
    Rumen:
    So, ppoplp, instpad of bpllyaching, lpt's hplp Alpx out and submit somp WTF's for him to usp. If wp arp rpading thpm, wp can submit thpm.

    (Sorry, pvpry timp I kpy thp lpttpr 'p' I gpt an 'e'.)

    You've piqued my curiosity... how did you get that last (real) 'e' in there? Alt + 101? Or were you just faking it?

    Assuming a non-fake-out, why on earth is your keyboard doing that?

    It reminds me of a prank I've read somewhere recently (a webcomic?): you detach two keys from the keyboard of a coworker (who type looking at the chars) and reattach them switched; then wait.

    Some keyboards (IBM for instance) have the chars over "key-covers" you can easily pop out; I think it was done for make localization costs cheap.

    CYA

    Particularly effective (I've found) when you switch two common keys that are near each other

    S & D or E & R are two of my favourites I once had a manager of mine call service desk to get his password reset 3 times before someone came down to have a look - and (interestingly) spotted the problem almost immediately. I guess his passwords always had an R or an E in them...

  • Henning Makholm (unregistered) in reply to John Preston
    John Preston:
    The real WTF is VB's BS return syntax. That lovely

    Public Function StupidFunction as String StupidFunction = Stuff

    syntax has always bothered me.

    As fun as bashing VB is, this one is not Microsoft's fault. It traces back at least to FORTRAN II, possibly via ALGOL 60 and Pascal.

  • Henning Makholm (unregistered) in reply to Mike
    Mike:
    AFAIK, Mod always returns +ve values in most languages.
    Define "most languages".

    C, C++, Java, C#, JavaScript, and PHP are counterexamples. C89 did allow implementations to do the mathematically sensible thing and compute a nonnegative modulo for the % operator, but C99 requires that the result, if nonzero, has the sign of the first argument.

    Perl and Python, however, always compute a modulo of the same sign as the second argument.

  • Kolchack (unregistered) in reply to Leo

    Just to be on the safe side, you can't make any assumption about what will be done in the future. I still remember the year when in Sweden they got a February 30th...

  • Kolchack (unregistered) in reply to Anonymous Coward
    Anonymous Coward:
    In Portugal, Monday is called 'segunda feira', tuesday is 'Terca feira' etc. which translates as 'second', 'third', etc. Spanish is (probably) similar. As a result, people from Spain, Portugal and Latin countries will tend to want Monday as second day of the week. That's a lot of people.

    That's not true. All of latin america (perhaps excluding Brazil?) uses Monday as first day. Only retarded "still living the past/conservative/enslaving" countries use the week end day as first day.

    Sunday is the first day of the week since millenia for the christian countries, Monday being the first working day of the week...

  • (cs) in reply to Kolchack
    Kolchack:
    Sunday is the first day of the week since millenia for the christian countries, Monday being the first working day of the week...

    Actually, no. In fact, ISO 8601 mandates that the first day of the week is Monday, and it is following long-established practice in many countries including the UK, South Africa, most of Europe...

  • moz (unregistered) in reply to John Preston
    John Preston:
    The real WTF is VB's BS return syntax.

    That lovely

    Public Function StupidFunction as String StupidFunction = Stuff

    syntax has always bothered me. Especially since it isn't even actually a return, because it continues processing, while using the function's return value as a variable. What a load of shiat.

    Yes; it makes far more sense for "StupidFunction = Stuff" to denote a sort of recursion.

  • lesle (unregistered)

    Thanks for the reference to ISO 8601.

    After reading the wiki article on 8601, I find what I think is a WTF! in MS Outlook 2007.

    I long ago changed my Outlook calendar to begin with Monday. At the left end of the week is a week number.

    According to the wiki article, "the week with the year's first Thursday in it (the formal ISO definition)" is Week 01.

    In 2010, that would be Thursday, January 7, 2010.

    MS Outlook 2007 says that's Week 2.

    A real WTF, maybe?

  • Stpvpn Grppnp (unregistered) in reply to Brian
    Yakov Smirnoff:
    The real WTF is hardcoded first day of week. In Russia first day is Monday.

    In Soviet Russia we have no WFT's

    But what about thp man who is knockpd down by a tram?

    Brian:
    Dennis:
    Ha! Everybody knows there's "Eight Days a Week."
    Haha, Beatles. I'm a Stones man, myself.

    I'm a Bpastip Boys man, pprsonally.

    Captcha: plaga- plagarism from two days ago?

  • Patrick (unregistered) in reply to lesle

    MS Outlook is the WTF

Leave a comment on “The Long Week”

Log In or post as a guest

Replying to comment #:

« Return to Article