656 karma · joined Feb 21, 2007 (19y ago) · 180 submissions
https://github.com/abachman
https://hachyderm.io/@abachman
[ my public key: https://keybase.io/abachman; my proof: https://keybase.io/abachman/sigs/5IvuaBYW3ebu8brDPLDFNNhtp1jw86kG7xRx1VVTUms ]
comment 2mo ago · link · parent
It is a for-profit product which is sold to parents and state-level customers more than it is a school.
comment 3mo ago · link · parent
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 ==.comment 7mo ago · link · parent
comment 1y ago · link · parent
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.
comment 1y ago · link · parent
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.
comment 1y ago · link · parent
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.
comment 1y ago · link · parent
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)
comment 1y ago · link · parent
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
comment 1y ago · link · parent
"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.
comment 2y ago · link · parent
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.
comment 2y ago · link · parent
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.
comment 2y ago · link · parent
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.
comment 2y ago · link · parent
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.
comment 2y ago · link · parent
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`
comment 2y ago · link · parent
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.
comment 3y ago · link · parent
I also highly recommend _Anathem_, by Neal Stephenson if the STEM monastery theme is interesting to you.
comment 3y ago · link · parent
He's been writing about it as he goes, most recently: https://mathstodon.xyz/@tao/111271244206606941
comment 3y ago · link · parent
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.
comment 3y ago · link · parent
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.