« first day (1205 days earlier)      last day (2039 days later) » 

7:47 AM
Urf, freight companies :( They said they delivered my package yesterday at 15:21 to my home; I happened to be home between 15:15 and 15:30, waiting for my driving lesson, and received nothing. But their system says it was delivered to my house -.-
 
8:12 AM
Aww, poo, someone's revenge-downvoting me
no idea who or why
 
8:25 AM
@Adriaan Amazon "broke into" my neighbours garden and left my 1500£ laptop on the grass, in the UK, in November
I feel ya
 
Turns out that the delivery dude has delivered my package to the general drop-off point in the neighbourhood, without mentioning that to me (aka: not saying that in the track-and-trace thingy). I called customer support, and they told me the bookshop here scanned the package in as delivered.
So the delivery dude A) did not go by my house, even though that was requested by me and B) neglected to mention that in the delivery status. He'll be told not to do that again
So off to the bookshop it is!
 
9:03 AM
Well, got the package, turns out I failed as well. Bought 7 books, of which 3 apparently audiobooks -.-
The store page looked exactly like that of the paperbacks, and only somewhere in small print it was mentioned they were audiobooks :(
Oh well, the most amazing thing I've had with postal companies was when I sent my PC from NL to Sweden with UPS. They wanted a €50 surcharge because I lived in the "wilderness", then my PC was not delivered. So I called UPS, cost me €25, turns out that my apartment block had a locked front door before my doorbell. Stupid Swedish concept. Local postman has the key, delivery company didn't.
So that took some 20 minutes to find out, and then the parcel service hired by UPS to go that Northern had to return to me, call me when they were at my door
Going back with it was fun as well; DHL was the sole freight operator there (except for Swedish Post, but they were €150 or so), but my package was 1.5cm too wide. 1.5! So they wouldn't take it. In the end I checked it in at the airport as additional luggage, that was cheaper xD
@gnovice I want addParameter, as addOptional is a positional argument. I have a list of arguments one can enter, all have defaults, and all equally likely to be changed. Requiring a certain order of arguments is therefor not handy to me
 
9:34 AM
FWIW DHL is pretty decent (once it accepts your package)
too broad, needs 1 more vote stackoverflow.com/questions/52814842/… (I posted it here earlier)
 
already voted
ANyone here have experience in writing functions in MATLAB with a variable number of input arguments using name/value pairs? I seem to suck at it, and the docs don't help me much
 
isn't that what inputparser is for?
 
Yes, but I suck at using it apparently.
MyParser = inputParser;
addRequired(MyParser,'data',@(x)(isstruct(x)));
addParameter(MyParser,'a',a,@(x)(any(ismember(x,[0.5,1,2]))));
parse(MyParser,data,S,varargin{:});
 
git gud
 
Doesn't help me when I enter 'a',1 as argument, it still uses the default 0.5
So I think I need a nargin check as well...
 
9:48 AM
I left a comment here saying "Sorry about your date". It got deleted :(
 
Noice, I think I got it working \o/
 
great
 
10:11 AM
@LuisMendo is the Piet language something for you? :
 
10:25 AM
wow, that's crazy
 
@Adriaan I just know about it. I've seen some answers with it. It looks cool
Sometimes the code looks pretty indeed
 
10
A: Piet (Mondrian)'s Puzzle

Tim PederickPiet, 9625 (It finally works!) The people demanded it, so here it is. This is an extremely naive solution (essentially the same as the loose upper bounds on the OEIS page): it divides each square into just two rectangles. This gist contains the details in two files: The program's output (usi...

 
@Adriaan I always do that without inputparser (because I only found out about it recently): manual and tedious, but you know what you are doing
 
@Adriaan whats the problem? I use it
the default value is the 3rd input
MCVE pls
 
10:40 AM
@AnderBiguri it was; problem was dual: A) I didn't pass the varargin after parsing, so input was not used, and B) I think if I enter addParameter(MyParser,'a',defaulta), my variable is named defaulta` instead of a. Anyhow, it's fixed now
 
 
2 hours later…
12:13 PM
@CrisLuengo for some reason there's a list with names and dates in the kitchen drawer of QI/AWI, which still bears your name amongst others :P I think it's a turflijst for when you drink the Nespresso, although why >10 yo lists were moved along with the kitchen I can't phantom
 
1:03 PM
@Adriaan Nice! I left my indelible mark on the kitchen!
We didn’t really have a kitchen, more of a coffee lounge. And we certainly didn’t have a Nespresso machine. I was here before all of that. That’s how old I am!
My guess is that’s a birthday list. We did do vlaai for every birthday there. I’m sure there was someone there making sure we didn’t skip our turn buying vlaai. :)
 
1:19 PM
@CrisLuengo the list is structured as 'name | date | date | date | ... ', but some dates have multiples, i.e. yours is cris luengo | 7-6 | 7-6 | ...
 
1:53 PM
0
A: Number 0's and 1's blocks in a binary vector

Adriaanx=[1 1 0 0 0 1 1 0 0 1 1 1 0]; A = bwlabel(x); B = bwlabel(~x); if x(1)==1 tmp = A>0; A(tmp) = A(tmp)+A(tmp)-1; tmp = B>0; B(tmp) = B(tmp)+B(tmp); C = A+B elseif x(1)==0 tmp = A>0; A(tmp) = A(tmp)+A(tmp); tmp = B>1; B(tmp) = B(tmp)+B(tmp)-1; C = A+B end C ...

I know this works, the question is why...
aaand, of course someone else thinks out of the box and presents a much better and faster solution
 
2:24 PM
@Adriaan Wouldn't that be the same as A*2-1 + B*2?
 
@CrisLuengo yes
 
But yes, the other answer is pretty clever
 
Might even be the OP needs it in 2D, which is much more difficult and is what the mex does
 
@Adriaan "7-6"? That don't ring a bell. I have no memory of any of that. Interesting...
 
There's about 20 pages with names and dates, might also be the secret service trying to determine your toilet visits, who knows!
 
2:28 PM
@Adriaan *fathom
 
@Adriaan That would certainly make sense... I do remember going to the toilet on the 7th of June. :D
 
@Adriaan I get the proper results when I change your last line to: parse(MyParser,S,varargin{:});
Required arguments are positional, not name-value.
 
@Adriaan Oh, now I understand why you do the if... it's just to check if A or B contains the region that get the label 1. Now your answer makes sense!
 
2:44 PM
@Adriaan I found another one liner, still using bwlabel.
 
3:23 PM
90
Q: To what extent does language need to be moderated?

decezeRecently the case occurred where a questioner realised in the comments he had painted himself into a corner code-wise, and commented with "Damn it. Can anyone suggest a work-around then please?" Just this one exclamation in an otherwise civilised and rather constructive comment thread. That comm...

Relevant to the topic the other day about damning it ^
 
@gnovice Nice! I always think when writing these solutions that probably someone has thought up a more clever way than I did, and when I turn back to my own code I squint at it with the same thought
 
3:52 PM
posted on October 18, 2018 by Johanna Pingel

This post is from Ieuan Evans, who has created a very unique example combining deep learning with LSTM and beer. (Please drink responsibly!) I love craft beer. Nowadays, there are so many choices that it can be overwhelming, which is a great problem to have! Lately I have found myself becoming... read more >>

 
 
1 hour later…
4:58 PM
Now that this has been clarified, it could probably be reopened. I would probably move my comment to answer, saying basically it probably can't be done, but here's a workaround.
 
@gnovice I've voted to reopen.
 
5:12 PM
Damn it! I knew this would happen. — Braiam 2 days ago
lmao
nice.
 
 
4 hours later…
9:20 PM
NQ? Maybe think about the red things in the background before you slap on a red NO. — candied_orange 4 hours ago
uhhhh they are different enough no? maybe user is colorblind?
 
pfft, no
red is red, and if they have impaired color vision it'll still be the same color
they just misread and now rationalize by blaming you
 
No, they are not different enough, or no, user is not right
 
no, user is not colorblind, just a dummy
 
fair
 
yes, it's not confusing :)
 
9:24 PM
:D
 
139
A: Revisiting the "Hot Network Questions" feature, what are our shared goals for having it?

MagischThe PR and optics of this discussion could not be worse and less fortunately timed if someone tried to orchestrate it that way. Some things happened yesterday that caused a need for us to (quickly) remove a site's eligibility to contribute to the list of hot network questions. What hap...

Magisch nicely explains how yet again the company is taking a dump on the community (yet another community?)
 
Sigh
 
I need more rep on MSE :( Can't see vote counts
 
there's a userscript for that
+82/-28 now on the question
+144/-4 on Mag's answer
 
@AndrasDeak that's the one I was looking for, thanks
off to bed now, sleep well all
 
9:33 PM
night
 
nite
 

« first day (1205 days earlier)      last day (2039 days later) »