« first day (2069 days earlier)      last day (1144 days later) » 

12:59 PM
windows, please abolish backslashes for paths
 
 
1 hour later…
2:14 PM
@flawr use python :P
 
@AndrasDeak I was actually using python
but normally I use python on linux:)
 
 
1 hour later…
3:44 PM
@flawr I thought MS-DOS introduced the backslash as a path separator just to be different, but there’s actually a good reason. I just learned about this now.
 
4:19 PM
@flawr then use forward slashes
 
@AndrasDeak I had to read paths as a string from a file, and the backslashes caused e.g. \new\stuff to be interpreted as <linebreak>ew\stuff or so
horrible
 
@flawr that shouldn't happen...
you probably did something wrong
 
@AndrasDeak it must be the python or the windows doing it wrong, but certainly not I:P
 
$ echo 'potato\npotahtoe' >foo
$ cat foo
potato\npotahtoe
$ python3.8
Python 3.8.6 (default, Sep 25 2020, 09:36:53)
>>> with open('foo') as f:
...     dat = f.read()
...
>>> print(dat)
potato\npotahtoe
If you read a string from a file \n gets read as two characters. You only get in trouble if you put that string in a regex, but that's not specific to control characters. In that case you need re.escape.
Because 'alte.exe' would match 'altehexe'
 
so I think then a hardcoded path part might have been a problem
if you just write a = 'asdf\nasdf' then the \n is going to be a line break right?
 
4:35 PM
@flawr yes. That's what raw string literals are for. Or for paths forward slashes.
 
if you want to have that string literally you'd need to write a = str(r'asdf\nasdf') or a = 'asdf\\nasdf' instead?
right
 
Nooo str()
r'...' is already a string
It parses to 'asdf\\nasdf'
 
I figured it can't hurt^^
 
Bad flawr! Bad! :P
people think raw string literals are special. They are just syntactical sugar for creating strings.
People ask how to turn regular strings into "raw strings" and that's not even wrong
 
maybe they mean the string of symbols you'd have to put in bettween r'' to get the original string back
(thanks for the example btw!!!)
 
4:43 PM
no problem
 
maybe they are looking for something like print('Hello,\nworld!'.encode('unicode_escape'))
 
5:16 PM
yeah, usually
 
5:46 PM
@AndrasDeak If you lived in my neighbourhood I'd give you some fresh amaretti as a thank you.
 
6:24 PM
This is an interesting question. Any idea? Cc @Dev-iL
1
Q: White box colorbar MatLab

Rolando GonzalesHow can I make the rectangular line around the box of the colorbar white, but keep the tick labels black? Reproducible code below: colormap(flipud(autumn(6))); % Create Colormap cb = colorbar; % Create Colorbar cb.Ticks = [.1667 .3334 .5001 .6668 .8335]; % Create ticks ...

 
6:46 PM
@LuisMendo Do ticks nowadays have a color property? I haven’t dealt with HG2 a whole lot yet, but I do know a lot of things have become possible that weren’t before.
Otherwise, just overdraw with a white line.
 
@flawr sounds enticing
 
7:24 PM
@CrisLuengo Yeah, I thought about both options. But ticklabels don't seem to have a color property. About plotting the line, it's hard to know where. The colorbar is directly a child of the figure (not of any axes), and its coordinates are with respect o the figure, whereas plot and line use axis coordinates
 
8:14 PM
@AndrasDeak including self-chipped dark chocolate chips
 
Self-chipped? You hipster.
 
even hand-chipped, nothing of this fancy new electrical murder stuff, but real work!
 
With a chisel, I hope...
It's a really shit design, to be honest...
 
8:37 PM
my parents used to have (and probably still do) one of these bad boys:
they are dope if you don't just want to grind a tiny bit
also great for making all salads and stuff (those raspy-things inside are exchangeable for ones with different patterns)
 
Yeah, we have one like that but for walnuts
 
or if you just think your fingers are too long
 
I'd hate to try and clean chocolate out of it
 
@AndrasDeak oooh, that's a great idea, never used it for nuts!
 
We have a few sweets that need ground walnuts so it's critical infrastructure ;)
 
8:39 PM
it's actually not bad, basically the handle comes of the raspy thing (and you can take that out) and it is realy easy to clean!
 
@flawr yeah but there's also the white housing which would get smeared with chocolate all over
 
yep that is a metal thing
@AndrasDeak ah yes then I guess it is essential:) can you recommend any typical ones?:)
 
@AndrasDeak specifically, somlói galuska and aranygaluska
 
uuuh that look fantastic!
 
The former is plenty of work (needs two kinds of sponge cake and stuff) and it's more like a dessert (unless you eat it for two days straight). The latter is more appropriate as a main course, although still very sweet. Less work to pull off too.
Fun fact: "galuska" in itself means a kind of dumplings, similar to gnocchi but made of flour, water and eggs. But in the name of these dishes it refers to the lump shape (aranygaluska means "golden galuska" and is obviously lumped; somlói galuska means "galuska from Somló" and it's often served as spoon-sized lumps)
Needless to say, both dishes need 3x as much chocolate/vanilla sauce as any recipe will tell you
Aranygaluska is definitely of similar fiddliness as your kanelbullar. Except you need to roll the little buggers in margarine and sugery walnuts few at a time.
You just need 1. the appropriate yeast dough, 2. flattened, "cut" into small discs, 3. each dipped into margarine and then rolled in sugary crushed walnuts, 4. put into a jenaer glass (?) dish and baked, 5. drowned in vanilla sauce. I can get you a detailed recipe if you're curious enough. But the somlói looks much better. We also have a recipe for that.
aranygaluska is really really good, but somlói is like an orgasm (your own I mean) in your mouth
(It might be obvious that I have a bit of a sweet tooth :P)
 
9:30 PM
@AndrasDeak does "sugary" mean just with sugar or caramelized?
@AndrasDeak you need to work on the analogies:P
@AndrasDeak it really sounds great, I have to try this, maybe next weekend:)
I was a little confused when the first recipe talked about trifle - turns out trifle and tripe are not the same thing (luckily)
thanks a lot for the recommendation!
 
@flawr we just mix crystal sugar and crushed walnuts
 
ok I see
 
@flawr heh, ew
The recipe we have has pretty buffed-up dough. You can even put them down with gaps among them and they'll just POOF fill it all. I think when we first made it we filled the dish to its 2/3, and then the galuska pushed up the lid. Or something along those lines... I can ask the wife.
 
I already hat the same problem (well nto really a problem) with the kanelbullar
...this is going to be a sweet week. I just remembered that I also got some of this flaky pastry and honey to make baklava
 
9:47 PM
Here's a recipe that's a lot fancier than what we use, but it's from a dude whose bread recipe we use youtu.be/sIfxFaLUCSI?t=684 . The linked part shows how loosely the galuska are packed at first (you need to let them rise after packing)
And he doesn't dip them in margarine but rather spreads it (or butter) under and over the dough. Way too posh for us :P
Which is just to say that you can make them with a lot less work/mess. And Dr. Oetker vanilla sauce is perfect to go with them.
(or even vanilla pudding with double the milk content)
Our recipe needs flour, yeast, margarine, milk, sugar and eggs for the dough; and walnuts, sugar and margarine for the fur.
 
@AndrasDeak I didn't know you can get the (almost) finished sauce!
 
Hmm, actually, our recipe doesn't let them rise before baking. That's why I didn't remember that step.
@flawr well it's not a huge deal to make it yourself (for somlói galuska you need a thick vanilla sauce (custard?) which we make ourselves)
of course 95% of the time when I say "we" I really mean "my wife"
 
hehe
@AndrasDeak yes but I'm sometimes overwhelmed when I have to make too many things at once, so that is good to know
 
absolutely
 
Do you actually also know Kaiserschmarrn?
(I know it from austria.)
 
9:56 PM
On google I can only find the pudding, which is as I said perfect if you add twice the milk
@flawr absolutely! Love it too :)
 
@AndrasDeak well it sounds obvious but I'd never thought to do it that way
 
ohne kochen is useless
 
they do seem to have a "sauce" version of their pudding
well I'll just have to try
 
Yeah, that's it
@flawr there's some chemistry going on so it's not obvious that it works. It could happen that there's a sharp transition from "vanilla milk" to "vanilla pudding" as you decrease the milk content.
But the sauce version is a safer bet, after all that's designed to be a sauce
 
10:12 PM
Hmm, or maybe it's 1.5x the milk content? If you end up buying the pudding version ping me and I'll ask the authority.
 
10:29 PM
@AndrasDeak I guess that is the peferct experiment for applying a reinforcement learning model.
Or maybe some black box optimization
 
I thought the point was to reduce work :P
 
 
1 hour later…
11:47 PM
reminded me of this ^
actually I need this but with a correction factor that accounts for how much I under estimate how long something takes
 
Hofstadter's law is a self-referential adage, coined by Douglas Hofstadter in his book Gödel, Escher, Bach: An Eternal Golden Braid (1979) to describe the widely experienced difficulty of accurately estimating the time it will take to complete tasks of substantial complexity: Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law. The law is often cited by programmers in discussions of techniques to improve productivity, such as The Mythical Man-Month or extreme programming. == History == In 1979, Hofstadter introduced the law in connection with...
 

« first day (2069 days earlier)      last day (1144 days later) »