adbachman
Joined 19 years ago
Joined 19 years ago
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.
https://github.com/abachman
https://hachyderm.io/@abachman
[ my public key: https://keybase.io/abachman; my proof: https://keybase.io/abachman/sigs/5IvuaBYW3ebu8brDPLDFNNhtp1jw86kG7xRx1VVTUms ]