« first day (4037 days earlier)      last day (1135 days later) » 

00:39
Coming home to find that my car has been stolen and then fighting the NHS app to get a pass needed for the conference tomorrow, which still just doesn't work. It looks like we're both not having a great time :/
 
8 hours later…
08:22
cbg
@roganjosh tough one, best of luck with getting things sorted
 
1 hour later…
09:36
@roganjosh Oh, ouch! Why do these things often seem to happen at the least convenient time? Sorry to hear that!
09:46
softwareengineering.stackexchange.com/questions/305148/… I wonder why enums even exist in SQL, they seem to be a strictly worse version of a table
 
2 hours later…
11:49
@roganjosh sorry to hear that, mate
12:11
if I were less than an ocean away, I would have offered to come drive you around
web.archive.org/web/20180324095351/http://komlenic.com/244/… Ok that convinces me enough that I need a reference table
12:27
Hey masters, (sorry for cry call) can any help me with this - stackoverflow.com/questions/69838595/…
Can somebody write a script which checks the posted time of each question and links the rules in case it's younger than 48hours?
@AnirbanNag'tintinmj' Please see the room rules. In particular, we ask that you do not ask here for help on questions that are less than 48 hours old.
12:41
@MattDMo oh sorry about that
@roganjosh good luck with the conference though :D
hmmm looks like this is the best django has to offer when localizing the database goodcode.io/articles/django-multilanguage. It's kinda meh. I think I will do the "not clean" thing and only store an int in a column instead of a reference table and have a dict in the code. It's a bit hacky, but way simpler and I get djangos localization capabilities for free without a bunch of extra effort
 
2 hours later…
14:30
Today I am obsessed with the math behind en.wikipedia.org/wiki/Jansen%27s_linkage
Love me some complex behavior emerging from simple parts. And it's hard to get much simpler than ordinary bars and hinges and one rotating shaft
@Hakaishin That's a very good article!
Any gold badger that can change the dupe list on this one? While the titles make it look like it, the current dupe target is not correct. I put one in the comments (also the current dupe target is a duplicate itself...)
15:34
@Tomerikoo Done.
@holdenweb Thnx
Argh, coworkers code is driving me mad again. Copy pasting things should be forbidden, so many stupid copy pastes and I have to change the same thing over and over again. Now I wrote and assigned him tickets to fix that mess
16:24
uff, i can confirm that.
Can somebody explain me why flair loads a model although i dont specified it to load from code? Where do i deactivate the auto-loading option?
How can you tell it's loading a model?
because i get a console message that flair loads the model and it i see the RAM usage increases about 8 GBs
Interesting. Write up an MCVE that reproduces the problem and I will happily investigate further.
16:53
Ah stupid me, I had an old version of the function which loads the model via a default string-parameter. A reason more not to use default parameters.
@Hakaishin I had a different problem with my coworkers, who insisted that every piece of code that is longer than 2-4 lines should be moved into a separate function
Incidentally, does flairNLP actually have API documentation, anywhere online? github.com/flairNLP/flair has a lot of tutorials, but I don't know where to look to find e.g. the valid arguments for SequenceTagger.load('ner')
> For contributors looking to get deeper into the API we suggest cloning the repository and checking out the unit tests for examples of how to call methods.
:-/
Aren't there, like, automated tools that magically create pretty HTML docs from a project's docstrings and annotations? Having to clone repos is so 20th century
Oops, that's not SequenceTagger.load, that's MultiTagger.load. There is no method named "load" in the SequenceTagger class definition. Therefore I conclude it is not a true part of the API, despite the mountain of contradictory evidence
17:11
@vaultah he is right
@Kevin a lot of nlp libs are quite oöd and sparsely documented
Jimmies: rustled
I don't mind writing a two-line function, although I'll feel silly if I only call it once
OTOH I might feel silly even if I call it more than once. a = add(b,c); x = add(y,z) is not automatically better than a = b+c; x = y+z just because it's more functiony
@Hakaishin :D
"Oh hey coworker, very nice function that writes N rows into a CSV file. To make it even better, let's move the code that generates the name of the file to a separate method. Let's also move the code that literally just calls writer.writeheader to a separate method as well. Oh and the code that essentially just calls writer.writerow -- that's right it belongs to a separate method too. Beautiful!"
He also writes beautifully parametrized test functions with multiple levels of pytest.mark.parametrize with ifs and fors in test functions' bodies. A true joy to read and maintain. No repetition though
don't tell him about hypothesis :P
17:29
Don't get me started on using randomized test data
17:48
I think the idea is that you hard-code it once you find a value that fails your tests?
@Kevin Wow! That's pretty impressive. I guess you're familiar with en.wikipedia.org/wiki/Peaucellier%E2%80%93Lipkin_linkage which was the first linkage to produce exact linear motion from rotation without needing guide rails.
Yes, that is one of the ~12 wikipedia pages I've perused through on the topic
It's weird that the Jansen's page doesn't link to other linkage pages.
I'm trying to construct my own linkage out of K'Nex. I'm having trouble replicating most (all?) designs where at least two vertices move in a full circle. Depending on how I construct the joints, it's either impossible for one rod to rotate through another one, or it's impossible for a rod to pass over a vertex.
you probably need non-trivial lengths rather than multiples of two and square root two
17:55
How inconvenient that objects in real space are solid
@AndrasDeak Yeah, the relative proportions of the rods in Jansen's linkages are not easily replicated with a handful of sqrt(2)^k inch rods. I suppose I could use my 1/4 inch rod and declare that to be equal to 0.1 dimensionless units. Then I could make Jansen's linkage, albeit it would be 20 feet long.
In principle I can construct a "pseudo-rod" of nontrivial length by joining three rods in a square-wave configuration like: _|¯|_. The vertical components are washers that accomodate two parallel axles. By moving the washers closer together or farther apart, the width of the entire structure can be customized.
I rarely use this in practice because a pseudo-rod has much worse structural integrity than a regular rod. It twists, it bends. Most damningly, it squashes and stretches. Not good since its #1 selling point is maintaining a precisely definable width.
Anyway I'm more interested in solving my problem of making two rods pass through one another. Another way of imagining the problem is, how can you design a bicycle wheel that will continue to work even if you push a stick in between its spokes?
I feel like I've seen a mechanism that could allow that, on reddit (et al) under a heading like "15 bizarre gizmos that actually work!". Usually along other oddities like this mobius gear strip.
18:23
@holdenweb holy jibberjabber! so sorry you're going through that. I'm expanding my horizons - standing up an internal wiki and training our (non-technical) staff on how to use it. "Think you can stand this up and train everyone?" - "oh heck yeah, no sweat" // I frantically start googling how the yams to do this coz I just promised something I have no idea how to do :P
Anyone know how to extract a single image from a gif with ffmpeg/imagemagick?
Kevin I would like to preorder your book
Apparently the mobius gear design comes from Trott, M. "The Mathematica Guidebooks Additional Material: Rotating Möbius Bands." mathematicaguidebooks.org/additions.shtml#G_2_01. but I can't actually access it to verify
I sure love that higher learning is a for-profit institution
Actually it probably is freely available but I can't be bothered to download software that can read a .nb file
wolfram mathematica is "arm and a leg" kind of software, so I doubt it
from PIL import Image
im = Image.open("yeet.gif")
im.seek(im.tell())
I see a link for a trial version, but it might be a trial version in the sense of "to download this free product, enter your credit card number"
And in 30 days they'll helpfully upgrade you to the ultra premium monthly plan unless you can locate the opt out button in the user settings labyrinth
18:34
ah, no, that might work
free trials are in my mental blind spot
Similarly, I can't bring myself to use a free trial that is offered once per person per lifetime. What if I need it later?
Much like refusing to consume an MP-restoring elixir in a late game boss battle, because you might need them for the N+1th boss
@Kevin sounds like WARNING: TVTROPES LINK Too Awesome to Use TVTROPES LINK WARNING OVER
Warning acknowledged, and disregarded. [I click]
From the first example, I can confirm that this trope is hashtag-relatable. I will now read the remaining 999 examples for no particular reason.
as long as you don't click any links...
he said to the void
the time in IronMan2, when Tony and Rhodie were in the ravine and Tony killed the drones with the bilaser
18:45
I can divide my attention between tropes and chat, but my effectiveness will drop by more than half in each one
I've been doing that with the Okeanos Explorer livefeed. Fortunately they had current issues today and the dive was cut short.
@Kevin so how many different things can you get pulled into until your effectiveness hits zero? I believe the Kevinomaly states that any such system will converge to zero (\sum_{i=1}^{\infty}2^{-i}), with the notable exception of Kevin
(damn! I really need to work on that punch line)
it's OK because the majority here can't read latex
@Kevin Hey guys, do you mind if I bring up this convo we had few months ago back. Looking back at that, we dont even need to repeat two points to make a straight line, simply marking the all the points in the grid and then using smooth=True will curve it for you
I suspect my usefulness drops below measurable levels around things=5
18:51
@Kevin my wife starts asking "so what did you manage to do?" after 3
I don't mind revisiting quite old conversations. I might need to take a while to clear the dust out of those memory banks though
Haha no probs :)
@CoolCloud not sure what you're saying. What "grid" and will the curving not happen along the straight segments?
By grid I meant the picture I replied to from the past
OK. SO if you do that without duplicating the points, i.e. with 8(?) points, do you get straight segments at the top/bottom/left/right side?
18:58
Not with 8 though, we give those extra radius points too, so 12
I forget the specifics of the curve-drawing API but I'm willing to believe there's some tricky way to do it without repeating points
As usual, a complete MCVE would be the fastest way to convince me of anything
@CoolCloud in that case I find it plausible
Sure, dont mind if I paste here right? 27 lines
but that's only because you have 3 collinear points in each corner
@CoolCloud 27 is too much for chat
How come I remember no pasting service when I need one :/
19:02
pastebin, github gists
This should do it for now: controlc.com/d800060f
@AndrasDeak Oh, is it
I'm just handwaving. But I find it plausible.
I don't remember what happens when you douple the end points as we discussed a while back, but omit the four auxiliary corner points
my standard response to that is usually nsfw
@inspectorG4dget What is "that"?
damn! I was about the delete my message because I realized that my chat scroll stopped some time ago, and I was responding to this
19:06
ah
@AndrasDeak Hmmm yea, going back and reading those confused me as to what duplicating points would do
That part is easy: duplicating points ensures straight lines. The question is what happens at the corners when you omit the corner points.
Let me try removing those then
but then double the new corner points for straight lines
I don't remember what our conclusion was for decyphering that API
I think our working hypothesis was that control points are generated automatically
I remember trying one plausible approach for not repeating points, and it drew a rectangle with three round corners and one sharp one
But angled in a way that made it hard to notice the difference at low resolutions
19:10
Ah that was prolly the one with mistake that I did
But that code link has expired :(
@AndrasDeak Hmmmm something like that I guess
@Hakaishin Now you've done the research you're aware of the advantages and disadvantages of the approach, so at least you were able to make an informed decision. Only you know your circumstances well enough to say what's good enough.
@Kevin Back in 1969 I worked in an installation where function calls were held to be too expensive. This was IBM 360 DOS PL/1, so you had to label the line after the call, and before the call you had to set that specific function's return variable (not a PL/1 concept, but implemented as a "label variable") before jumping into the function code.
Needless to say, the chief programmer was not familiar with the notion that a function might be recursive.
19:32
I recall playing with an esolang where there wasn't a call stack, so you would put jmp 0 as the last instruction of every function, and manually set the 0 byte to the address just below the caller
If you needed recursion, you could just make additional copies of the entire function in whatever empty space you had handy :-)
Hello! I installed the needed modules - pandas, numpy, tensorflow in the tensorenviron (virtual environment) of anaconda3. Only desired module left is matplotlib but when i try to install matplotlib in tensorenviron, it says: Found conflicts! Looking for incompatible packages. Please help
Does anyone have experience deploying django backends to prod?
what is prod?
production, sorry
i am new, i know nothing, please help me in my above question regarding anaconda3, lol
19:42
Oh... not sure don't have much experience with Panadas
sorry!
@holdenweb How bizarre! FWIW, PL/1 was one of my first languages (on an IBM 360/20), but I don't remember much of it these days.
20:39
hello
21:05
@a0nic what are you trying to do?
 
2 hours later…
22:44
@Kevin Not that difficult an issue. Call it processing_completed and default it to False. Duh.

« first day (4037 days earlier)      last day (1135 days later) »