|
Wheany posted:....yeah, i guess i'm not going to even bother starting the advent of code well you had to finish both problems before 00:13:43 today to get any points, but if you aren't doing it competitively then it's really not hard so far
|
# ? Dec 3, 2019 20:20 |
|
|
# ? May 7, 2024 16:48 |
|
Bloody posted:another day, another round of being driven to madness by mutable data Join the loving club. im trying to convince the people in charge of our data that maybe they should not overwrite existing data, but actually keep a record of changes so we can reproduce the state of the data at a later point in time.
|
# ? Dec 3, 2019 20:21 |
|
lmao we've been generating invalid "ghost" <a> references on this grid for years because the grid plugin was trying to load from a data structure that didn't exist because the base table was pre rendered, but we never noticed because the function over the data did this:code:
and ofc javascript is terrible so if data[FartID] doesn't exist it returns undefined which then silently casts to string, builds an invalid url to \undefined, but because CellValue is already a valid url because we pre rendered it, it creates a weird nested anchor that renders as an invisible <a> with no value and then a valid one next to it so it all looked fine unless you inspect the elements only noticed because there was a non-url column that the same render function was applied to and it threw a "value is undefined" error because it didn't need to concatenate anything so didn't do the implicit cast
|
# ? Dec 3, 2019 20:34 |
|
Private Speech posted:competitively oh gently caress lol definitely not
|
# ? Dec 3, 2019 20:37 |
|
competitive programming is probably the most digusting concept i can imagine
|
# ? Dec 3, 2019 20:39 |
|
Wheany posted:competitive programming is probably the most digusting concept i can imagine It was pretty fun in high school.
|
# ? Dec 3, 2019 20:40 |
|
MononcQc posted:It sure required less mutability. I did end up going with the easy thing of generating all points in both paths and then just combining them as a set intersection because I couldn't remember how to properly do line collision effectively and I didn't want to look dumb on video. I should probably figure it out that way though. mystes fucked around with this message at 20:48 on Dec 3, 2019 |
# ? Dec 3, 2019 20:46 |
|
Wheany posted:competitive programming is probably the most digusting concept i can imagine you don’t have to film yourself doing it
|
# ? Dec 3, 2019 21:13 |
|
thats what the judges keep telling me
|
# ? Dec 3, 2019 21:18 |
|
nah i'm sorry for being so negative. have fun having fun.
|
# ? Dec 3, 2019 21:21 |
|
Wheany posted:....yeah, i guess i'm not going to even bother starting the advent of code I just did a brute force thing: if the line is from {0,5} to {3,5}, I just add {0,5},{1,5},{2,5},{3,5} to a set, do that for all lines, and check for the sets that share the same points. If you use the proper data structure, it takes a reasonable amount of time and does not feel like brute-force at all.
|
# ? Dec 3, 2019 21:39 |
|
mystes posted:You mean you literally just generated all the points in each segment rather than looking at pairs of segments to see if they intersected? Checking for intersections isn't that bad because the segments are all either vertical or horizontal. Yeah exactly. Then I put each wire layout in a set, find the intersecting points, and then do the calculations they ask for. If you keep a list of all the points in order then part 2 is just about counting all the non-matching points until you get the matching one. Took me about 200ms in Erlang (which isn't a super fast language) including disk access for the problem definition. Was fast enough for me to call it a day.
|
# ? Dec 3, 2019 21:41 |
|
refleks posted:Join the loving club. im trying to convince the people in charge of our data that maybe they should not overwrite existing data, but actually keep a record of changes so we can reproduce the state of the data at a later point in time. my current institution is awful at a lot of things but has this one down. We have a document we pass around like a redheaded stepchild but we keep spares in the DB with timestamps.
|
# ? Dec 3, 2019 21:48 |
|
refleks posted:Join the loving club. im trying to convince the people in charge of our data that maybe they should not overwrite existing data, but actually keep a record of changes so we can reproduce the state of the data at a later point in time. do you think disk space grows on trees?!
|
# ? Dec 3, 2019 21:50 |
|
MononcQc posted:Yeah exactly. Then I put each wire layout in a set, find the intersecting points, and then do the calculations they ask for. If you keep a list of all the points in order then part 2 is just about counting all the non-matching points until you get the matching one. Took me about 200ms in Erlang (which isn't a super fast language) including disk access for the problem definition. Was fast enough for me to call it a day.
|
# ? Dec 3, 2019 22:14 |
|
Soricidus posted:do you think disk space grows on trees?! this same person sees no issue with storing terabytes of raw binary data in a SQL table
|
# ? Dec 3, 2019 22:26 |
|
if your db is any good (postgres, ms sql server, hell even oracle, or anything besdies mysql) it will have no problem doing so
|
# ? Dec 3, 2019 22:39 |
|
has anybody implemented a filesystem on top of sql I honestly trust the database people more than the filesystem people, seems like a reasonable exchange to me Vista doesn't count
|
# ? Dec 3, 2019 22:44 |
|
animist posted:has anybody implemented a filesystem on top of sql https://www.nongnu.org/libsqlfs/
|
# ? Dec 3, 2019 22:46 |
|
the database people have to trust the filesystem people though, since they rely on the filesystem for things like "cache this page" or "sync to disk". well postgres does anyway, oracle not so much
|
# ? Dec 3, 2019 22:56 |
|
DELETE CASCADE posted:the database people have to trust the filesystem people though, since they rely on the filesystem for things like "cache this page" or "sync to disk". well postgres does anyway, oracle not so much just store the db on that google docs spreadsheet filesystem someone hacked up
|
# ? Dec 3, 2019 23:06 |
|
I prefer my 200 compact flash card RAID0 tyvm
|
# ? Dec 3, 2019 23:12 |
|
Soricidus posted:do you think disk space grows on trees?! dont even loving start... we're 300 people in the company, and around 150 of those are under the IT umbrella, yet there is no CTO. There is an MBA CFO who somehow has the responsibility for IT, but no understanding of it... I'll let you figure out if IT is a value-generating entity in his eyes, or a cost to be minimized aggressively to the point where i have to argue when I want a VM with more than 2 gigs of RAM and 40 gigs of space
|
# ? Dec 3, 2019 23:26 |
|
Today's advent of code was really easy, wow.
|
# ? Dec 4, 2019 06:24 |
|
I keep wanting to do Advent of Code but have zero motivation to sit at my computer once I get home nowadays. I suppose that's not a bad thing.
|
# ? Dec 4, 2019 06:33 |
|
advent of code is for people who cant get jobs programming but want to feel what its like to maybe be a part of it
|
# ? Dec 4, 2019 06:41 |
|
you could do them at work like me
|
# ? Dec 4, 2019 06:47 |
|
I have fun doing aoc in jupyter. just rip some code out like farting and push on it till number is correct. no need to think about tomorrow just get some answers today is this what data science feels like. maybe I should learn some stats and be a data scientist
|
# ? Dec 4, 2019 06:56 |
|
Nomnom Cookie posted:I have fun doing aoc in jupyter. just rip some code out like farting and push on it till number is correct. no need to think about tomorrow just get some answers today I guess other people's ranges might contain that edge case, though (I assume it's different for everyone?).
|
# ? Dec 4, 2019 07:01 |
|
CPColin posted:I keep wanting to do Advent of Code but have zero motivation to sit at my computer once I get home nowadays. I suppose that's not a bad thing. I just do it at work
|
# ? Dec 4, 2019 07:17 |
|
DELETE CASCADE posted:the database people have to trust the filesystem people though, since they rely on the filesystem for things like "cache this page" or "sync to disk". well postgres does anyway, oracle not so much didn't postgrs only recently fix up their sync() issue where you have to call it twice (?) on linux for it to work edit https://www.percona.com/blog/2019/02/22/postgresql-fsync-failure-fixed-minor-versions-released-feb-14-2019/#FSYNC-ERRORS-ARE-NOW-DETECTED cowboy beepboop fucked around with this message at 08:17 on Dec 4, 2019 |
# ? Dec 4, 2019 07:49 |
|
DELETE CASCADE posted:the database people have to trust the filesystem people though, since they rely on the filesystem for things like "cache this page" or "sync to disk". well postgres does anyway, oracle not so much a big part of writing a database is figuring out how to work around each of the filesystems you support running on because you can’t actually trust the fs to do anything
|
# ? Dec 4, 2019 08:09 |
|
filesystems are so last century. postgres should store its data in something modern like mongodb
|
# ? Dec 4, 2019 08:30 |
|
Fatal Error posted:delete everything and destroy all computers.
|
# ? Dec 4, 2019 09:12 |
|
CRIP EATIN BREAD posted:advent of code is for people who cant get jobs programming but want to feel what its like to maybe be a part of it It would be amazing if programming jobs were like Advent of Code. Tiny, fixed-sized, rigorously specified, closed problems with singular correct answers.
|
# ? Dec 4, 2019 10:38 |
|
Doom Mathematic posted:It would be amazing if programming jobs were like Advent of Code. Tiny, fixed-sized, rigorously specified, closed problems with singular correct answers. can you imagine a manager ever giving a spec as well written as the typical advent of code problem?
|
# ? Dec 4, 2019 10:43 |
|
Oneiros posted:can you imagine a manager ever giving a spec as well written as the typical advent of code problem? just last month i was asked for a time estimate on a statement of work where one of the tasks was literally "fix all the bugs"
|
# ? Dec 4, 2019 11:05 |
|
DaTroof posted:just last month i was asked for a time estimate on a statement of work where one of the tasks was literally "fix all the bugs" 2 years
|
# ? Dec 4, 2019 12:17 |
|
(oneliner) 15 minutes 30 minutes 1 hour half day 1 day 3 days 1 week 2 weeks 1 month 3 months 6 months 1 year 2 years
|
# ? Dec 4, 2019 12:21 |
|
|
# ? May 7, 2024 16:48 |
|
DaTroof posted:just last month i was asked for a time estimate on a statement of work where one of the tasks was literally "fix all the bugs" whatever you think it is divide by 2 and add a time unit ie 3 weeks becomes 1.5 months
|
# ? Dec 4, 2019 14:32 |