adbachman
It is a for-profit product which is sold to parents and state-level customers more than it is a school.
the C in CBP, "Customs", is specifically this kind of stuff.
Is this weakness in their training regimen the impact of operating under regulatory frameworks for too long?
tl;dr - ActiveSupport::TimeWithZone used absolute seconds counting to determine dates while DateTime used a proper Gregorian calendar. This means dates before October 15, 1582 have different internal values when compared.
The behavior showed up because a test was using a DateTime value to set a MySQL DATETIME column to the DB minimum value, which is 1000-01-01 00:00:00, and then comparing the DB record attribute to the original variable used to set it.
Something like:
date = DateTime.new(1000, 1, 1, 0, 0, 0, 'UTC')
record.update(happened_at: date)
record.happened_at == date # => false
I "discovered" the missing Gregorian dates when I wrote a loop counting forward in time from Jan 1, 1000 until the corresponding TimeWithZone and DateTime records returned true when compared with ==.What's up, OP?
Given the author, his history in the field, and the project, though, I'm confident the repetition is intentional.
Like a contemporary rapper dropping Doom bars on a track, I read it as an homage / callback / shout-out, even if the meaning is changed.
tl;dr - MySQL uses 1000-01-01 as the minimum value for a datetime field. Different Ruby libraries use different methods to represent dates, which can lead to situations that appear to claim that 1000-01-01 != 1000-01-01.
Is there something about you that you would do anything to keep covered up?
Are you susceptible to outside influence?
Can anyone, in any country, compel you to act counter to the interest of your employer?
Foreign property means you are, at the very least, going to take interest if/when the foreign government threatens it.
guessing post bodies and link previews feels too easy.
comment threads? post listings?
was there a lot of nesting?
it sounds like you're describing a whole post--use message, comments, and all--for presentation to a browser or crawler.
(sorry, saw the handle and have so many questions :D)
If it means you are unable to make any decisions or reach any conclusions which do not align with your -ism, then you're in a dead end.
Civil service in the US has been neutral politically and merit based for the last 140 years. It stands directly opposed to the "spoils system" which awarded positions to friends, campaign contributors, family members, etc. https://en.m.wikipedia.org/wiki/Spoils_system
"We will have conversations and share information and we agree we can act on the information but would all prefer not to be directly quoted or have the information we shared be shared with others outside the meeting."
It's not legal, it's social.
Break trust with a wiretap (really?) and you'll just find yourself no longer invited to the fun places.
Created (or at least established or set the benchmark for) the action RPG genre, spawned clones and imitators, and has multiple triple A sequels.
Left a HUGE footprint, in other words.
1. Split an integer into two smaller integers.
2. Combine (add) two integers into a larger one.
Both suggest that negative numbers are not possible.
It's the dryness, for me. She evokes the setting so clearly and in so few words, it took me by surprise. Also my first exposure to thoughtful anarchist ideas, which has been fun.
That and Wizard of Earthsea. Which is as spare, poetic, and strange as any YA magic fiction book wishes it could be.
We evaluated several horizontally scalable DBs and Cockroach was by far the slowest for our access patterns.
Important humanitarian mission (I worked in the asylum and refugee org) filled with true believers, dedicated civil servants with a heart for service, managed by career middle managers.
18F, USDS, interesting smaller contractors, and all the "innovation" orgs direct hiring software devs like me were aimed at supporting the mission, but it felt like they were never going to win over the system of 9 digit contacts to support the status quo.
a backup.sh script, which boils down to: `cd ${obfolder}; git add .; git commit -m "auto backup $(date +%Y%m%d%H%M%S)"; git push`. Give it a `chmod +x` and it's ready.
a crontab entry: `1 17 * * * ${obfolder}/backup.sh`, which is "at 5:01pm every day, run the backup script.
${obfolder} is the actual path of the vault directory and I haven't had to think about it in years.
that's the only point of the operator.
given: a = 0; b = 42;
then `a or b` and `a ?? b` give two different answers, but take the same number of characters to write.
> just explicitly check for nil
1. I am lazy and 2. I am explicitly checking, that's why I picked `??` not `or`
my example data did include the edge case that caught me out in part two, but didn't include it in a way that broke my first pass at a solution.
funny piece is it didn't click until i submitted a wrong answer, read my code for a few minutes, added a bunch of logging, and then saw the trick. i looked back at the given example and it was right there the whole time, just not called out explicitly.
I also highly recommend _Anathem_, by Neal Stephenson if the STEM monastery theme is interesting to you.
He's been writing about it as he goes, most recently: https://mathstodon.xyz/@tao/111271244206606941
I can imagine a company whose business is impacted by intentional deletion of data by an aggrieved ex-employee could make a convincing case in a civil suit, even if criminal charges don't stick.
even a big old russet only has, what, like 32 bites?
Millions of students coming online, textbooks are digital now, SSO all the things. Perfect storm.
It's the sort of statement that might get someone called out as being somewhere negative on some political spectrum, but I read it here as academic.
Dude probably gets absolutely spammed with, "can you read my paper | review my project | comment on this article?" requests.