Please help contribute to the Reddit categorization project here

    [–] TIL 'GoodBye' is a shortened form of the phrase "God be with ye" 4spooky6you 79 points ago in todayilearned

    'It may originate from the phrase "God be with you".' Also, there are zero references on this wiki article

    [–] hmmm 4spooky6you 1 points ago in hmmm

    Must be an Impala

    [–] My copy of Windows has been around for over 400 years 4spooky6you 1 points ago in softwaregore

    I saw this neat 'feature' while writing some code that checked a files last write time. Windows usually uses this as the date when the real date can't be found.

    Some history on this dates significance https://stackoverflow.com/questions/10849717/what-is-the-significance-of-january-1-1601

    TL;DR The Gregorian calendar operates on a 400-year cycle, and 1601 is the first year of the cycle that was active at the time Windows NT was being designed. In other words, it was chosen to make the math come out nicely.

    [–] Had a run in with a kid crossing a road on a bike without looking yesterday, I came off worse! 4spooky6you 5 points ago in bicycling

    Make sure you take a look at the stem and fork. I had a similar incident a few years back, head on collision. Everything seemed to be ok aside from the wheel. Then about a year later I hit a pot hole, the fork snapped and I face planted into the pavement. The fork had been damaged the whole time and I never knew until it was too late.

    [–] After the last update my desktop flashes or refreshes every second and I cant do anything. Any advice? 4spooky6you 2 points ago in Windows10

    I'm having the same issue. Seems that the latest update failed to update key files correctly. Running

    sfc /scannow

    fails with the message

    Windows Resource Protection found corrupt files but was unable to fix some of them.

    Sites have suggested running:

    DISM /Online Cleanup-Image /RestoreHealth

    to reapply the latest update. However, this also fails for me with the message:

    Error: 1726 'The remote procedure call failed.'

    I'm currently unable to get past this step. Any advice/help would be much appreciated!

    [–] Best selling music artists in each US state [2000x1362] 4spooky6you 2 points ago in MapPorn

    Where was the data for this map scraped from? I only ask because I'm slightly skeptical about Illinois, since The Smashing Pumpkins are also from Illinois. I like both bands, and it's quite possible Chicago outsold them (especially considering they had way more time to sell records) but I just couldn't find the data for either of them.

    [–] Forgive me if this question has been asked before... 4spooky6you 2 points ago in wowservers

    Haven't gotten a chance to play on any of their realms yet (the queue is insane), but according to their realm list the PVE realm has a pop of 5.8k. The other realms are 8k and 10k.

    So, my guess is the PVE realm would be pretty good too (if people are actually playing there).

    [–] I can't seem to connect to the Elysium website? 4spooky6you 1 points ago in wowservers

    It's been down all day, they reported 'heavy DDOSing' earlier in the day. You can at least get the client while you wait.

    [–] My mom died. I need music. Help. 4spooky6you 1 points ago in Music

    I love this song, it helped a lot when my mom died. This cover of it is particularly sad and beautiful https://youtu.be/TBxVwV0Uy1E

    [–] catch(object) { } 4spooky6you 5 points ago in ProgrammerHumor

    While it does run fine, I wouldn't consider it 'good' code. There are a couple of issues that should be fixed:

    // The toss function is currently a global variable named toss, that points to an anonymous function.
    // The difference is subtle but naming a function makes debugging much easier.
    // For example, if an error occurs in this function (which it does), 
    // the stack trace will list this as an anonymous function instead of 'toss'
    toss = function(object){
        throw object;
    }
    
    try {
         // Here, while it's legal to throw a string it's not recommended, 
         // since people using your code may expect to catch an object.
         // If someone caught your error and attempted to call message() on it, their catch would throw an error
         toss("ball");
    }
    // Just a minor detail, but the name object implies you intend to catch an object,
    // but instead you catch a string which is misleading.
    catch(object) {
        // Since this is sample code, it's not a big deal.
        // But you need to be careful with console.log since it will cause IE's JS engine to crash unless the debugger is open
        console.log("I caught a " + object + "!");
    }
    

    Here is the revised sample with all of that in mind (note: I kept the naming the same for the sake of the joke):

    function toss(object){
        throw new Error(object);
    }
    
    try{
       toss('ball');
    }  
    catch(object) { 
        console && console.log(`I caught a ${object.message}`);
    }
    

    I also decided to use template literals since they're new and sexy. And I added 'console && console.log' to check the existence of console first before attempting to log. In the real world, I would do something else and not use console.log at all.

    [–] catch(object) { } 4spooky6you 6 points ago in ProgrammerHumor

    i

    careful with that global variable eugene

    [–] Nothing to see here, carry on... 4spooky6you 2 points ago in OSHA

    That's unsafe on so many levels.

    [–] Everyone says how hard depression is... 4spooky6you 1 points ago in AdviceAnimals

    Since depression tends to run in families, why not both? My mom has major depression and was depressed for most of what I remember of my childhood. I had some minor depression during my mid-teens, but the worst was in college. I had severe depression and so did my mom. It was terrible, most days I couldn't do anything, didn't even have enough energy to care how anyone felt. The days I felt better, I felt like shit for not caring about my mom. So much pain and guilt on both sides. It put a huge strain on our relationship.

    [–] Rio declares financial emergency, requests funding for Olympics 4spooky6you 1 points ago in worldnews

    I'm kind of curious how VAT works for a consumer. I was doing some reading about VAT, after I saw your comment, and it supposed to only be a tax on the margin (not the retail value).

    So how do you know how much the tax will be on the item? Is the tax included in the listed price? In the US, we don't list the tax in the price, it's just a nice surprise when you get to the checkout.

    [–] Rio declares financial emergency, requests funding for Olympics 4spooky6you 1 points ago in worldnews

    Yeah, it's a flat tax on anything purchased goods/services. Except some online stores don't collect the tax (even though you're supposed to report it in this case).

    But to give some perspective, I grew up in the suburbs where the tax rate was around 6%. So having nearly double when I moved to Chicago was a large change for me. Not to mention, the goods themselves are inflated in the city. The biggest example of this inflation is cigarettes (I used to smoke). You could buy a pack in the suburbs for around $6 and in the city it would be $10+ (before taxes).