Hacker Newsnew | past | comments | ask | show | jobs | submit | 33degrees's commentslogin

> Is this a by-product of some compliance or self-regulatory requirement like ESRB?

Yes, Steam addressed this an announcement a few years ago:

> Q: Why do you KEEP asking my damn age throughout the store?

> A: We're with you on this. Unfortunately, many rating agencies have rules that stipulate that we cannot save your age for longer than a single browsing session. It's frustrating, but know we're filling out those age gates too.

https://steamcommunity.com/games/593110/announcements/detail...


Steam always remembers my date of birth: Jan. 1 1900, just like half their users.


For me it's always 1990-01-01


why isn't 1970-01-01 more common?


It's surprising that they are not even allowed to remember that you are older than, say, 21.


I can understand the “better safe than sorry” mindset. If I have a 15 year old son who wants to play Resident Evil, I’d be willing to let him play it, despite the “M” rating. But I wouldn’t then want a service to set it so that he’s allowed to view M-rated games in perpetuity, since M-rated games can vary greatly.


In Ruby that would be

    sleep 3.seconds
Hard to to be more concise than that


Technically Ruby only accepts seconds. You're thinking of ActiveSupport from Rails.


Here's a fun way to annoy a Rails developer.

    (Time.now + 1.month).to_i == Time.now.to_i + 1.month.to_i
    #=> false


Not sure why that's annoying? The right side doesn't really make sense.

Though it does seem pretty easy for a novice to do thinking it's the same, but what does 1.month.to_i even mean!?


> 1.month.to_i

Duration of a month in seconds? Before you balk at the idea, there exists a definition of a constant month duration for accounting stuff. I you hate dates - and yourself - try accounting, there's mind boggling stuff that makes the engineer mind recoil in absolute terror.


Actually taken almost verbatim from the report summarizing a real and subtle bug (distributed across multiple files) in code written by definitely-not-novices.


I'm not really familiar to RoR. Is is due to Time.now getting called twice and each returns slightly different value?


Alas, no. It's because ActiveSupport's duration arithmetic is not distributive under conversion.

The expression on the left hand side advances time (as a domain object) by exactly a month, then converts the result to integer unix time. The expression on the right adds 2629746¹ to the current unix time.

The conversion becomes dangerously magical in the presence of shared code that accepts both object and integer representations of time & duration. A consumer from one part of a system can inadvertently obtain different results to another unless they use identical calling conventions.

[1] this is 1/12 of the mean length of a gregorian year²

[2] 365.2425 days i.e. 31,556,952 seconds


Oh wow. This is totally make sense when you think about it, but something that'll never cross my mind when casually checking the code. I guess this is why python's timedelta doesn't have month unit as the length of a month is highly context dependent.


I would just use `1.month.from_now` instead of the additions anyway


That won’t save you; 1.month.from_now is implemented by addition.


Are we golfing? Because that's identical to

   sleep 3


Are we golfing? This whole discussion is about clarifying units.


I must clarify, that was intended rhetorically, and in the most self-serving fashion; I try never to miss a golfing prompt


I’m definitely not an expert and I haven’t found running postgres any more difficult than mysql. There are some differences that take a bit of getting used to, though.


Yeah, I find they’re best used for data where the creation time is public information, like chat messages or logs


Does browserstack not work for you?


It's supported, but only for NGINX Plus. You can kind of work around it by using proxy_cache_bypass though


Or delete the file in question on disc, the full path is encoded, and I've come across scripts and lua modules that does it for you.


I'd love something like this but for docker. I know of Qovery but I've had problems with it, and a CLI application would be better



https://blitzjs.com/ does something similar, where you can write server side code inside components and it turns it into an API


I have first hand experience this ,as I was recently diagnosed with reactive hypoglycaemia[1]. The recommended treatment was eating protein and vegetables before carbohydrates, along with daily 12 hour fasting, and within week my symptoms were gone. It's apparently an intestinal issue, where it over-reacts to the presence of carbs when the stomach is empty, and is fairly common in people who have had bariatric surgery.

[1] https://en.wikipedia.org/wiki/Reactive_hypoglycemia


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: