« first day (1832 days earlier)      last day (1400 days later) » 

9:58 AM
This bicycle-ad from a Dutch company is banned in France on the basis of "fear mongering" xD
 
what's "moof"?
 
eh, that's pretty tame
@Dev-iL in Hungarian the equivalent word has some naughty connotations :P
 
@Dev-iL "Van Moof" is the company name. I presume it's a last name of someone involved
 
So just a random combination of letters?
 
"muff" originally means a fur-laced hand warmer (basically a fluffy tube you can stick your hands in). So...unsurprisingly it picked up another meaning :D
 
10:02 AM
@Dev-iL no, a valid last name in Dutch
 
@AndrasDeak yeah, but we're discussing a completely different spelling (and pronunciation) :)
@Adriaan Let me clarify: is there some etymology to this name?
e.g. some people are named after a profession, some after a place, etc.
 
wiktionary doesn't include the name
 
@Dev-iL "van" means "from", i.e. usually denotes a location the ancestors are from. "Moof" then presumably is some older spelling/nickname/whatever of an area somewhere
 
@Dev-iL I always think that van/von/etc. originate from places
YES! :P
so this just shifts the blame on "why is that place called Moof?"
 
Is this still true, i.e. I can't programmatically add subfolders to my search path? Darn MathWorks, why allow me to right-click in the folder directory and select "Add folder and all subdirectories", but not allow me to do the same programmatically using addpath ffs
 
10:06 AM
@Adriaan Welllllllllllll... experience shows that anything you can do with the UI can be invoked programmatically
 
I have no idea what addpath(genpath(dir)) does, but that does the trick :s
 
10:17 AM
It appears that MATLAB's java methods that interact with the PATH, internally use eval(addpath(genpath(...)))
 
@Adriaan generates full path names with current folder and all its subfolders
so if you want to add a toolbox to path with N subfolders, you can do it with that
 
@AnderBiguri yup, it worked perfectly fine. I'm just surprised by that official TMW answer (ok, it's from 2009, but still the first result in Google) that there's no recursive way, even though this works fine :s
 
that's why forum posts are never a substitute for decent documentation
 
@Adriaan hum? but the question is specifically "can i do it without genpath"?
so you can not do it recursively, as genpath doesnt do recursive add-path, just generates a massive list of paths
 
Right, so formally adding recursive paths is impossible, all you can do is generate a (potentially very long) list of path names at once and add that
 
10:25 AM
yeah
Its quite ugly, I have some tool with about a hundred folder and subfolders
adds as many thigns to path
 
to be fair I don't think I've seen a PATH system where recursive entries existed
at best I'd expect a tool that lets me add all those directories easily, without having to construct them first
plus since there aren't really any namespaces in MATLAB it's hard to organize it any better than "go check each directory if something with this name is there"
 
yup
just ugly anyway :D
 
I don't get how patch() works. I want ~12 patches plotted, but for some reason I only get the last patch, and covering my entire plot at that as opposed to nice stripes.
the documentation doesn't even use hold on, but rather seems to somehow make a giant patch out of everything
 
depends on how you have the data arranged, yes , you can use a single call
 
10:41 AM
I have a 2D array: season_split with 12 rows. First column indicates a starting index, the second a flag (1,2,3,4) on which season it is. So I want each season colour accordingly.
 
how does that relate to shapes to display?
 
also patch() seems to ditch my x-axis labels (years through datetick() in my case) completely.
 
if you use pathc(x,y,c) you need x,y to be 2D matrices, where rows are vertex positions and colums are "shape indices"
 
I don't see any shape on there
 
10:43 AM
Basically I want to colour each vertical stripe as per its left edge
@AnderBiguri there's none, these are simple xline() calls
 
each of those "squares" needs to be 4 coords
% as the docs say:
x = [0 1 1 0];
y = [0 0 1 1];
patch(x,y,'red')
that is a square
 
@AnderBiguri yea, I did that, but then two things happened: my entire plot went cyan (colour of my last patch), and I lost my x-labels
 
MCVE
 
I'll keep fighting this monster for a bit. If I'm still stuck in a bit, I'll come back here.
 
sure
if you want single calls to patch, you should do x=[0 10; 1 11; 1 11; 0 10] and same with y
that should plot you 2 squares
then a c value for each (for colorbar) or I think a triplet for each works too
 
10:52 AM
so a triplet for each doesn't work, that just results in errors because "vectors must be the same length", given a 4x12 X and Y vector, and a 3x12 RGB triplet C.
so I guess I need a single uint16 or something instead of a triplet?
 
@Adriaan try just a 1x12 see if it works, but I see
@Adriaan n-by-1-by-3 array of RGB values
try that second one
 
OK, I have ugly hacked my patch together, but now my line is gone
and doing datetick('x') messes up everything completely. Apparently patch just doesn't want to work like any other plot
 
patch isn't a plot, is it?
 
Does your figure only contain a patch?
 
11:01 AM
Finally
 
@Adriaan schemecolor.com/season.php This one, but with only 1 blue may look more "seasonal"
 
 
1 hour later…
12:29 PM
@Adriaan hold on.... are you sure it's a good idea to have the patches "in front" of the curve?
Personally, it bothers me when the curve changes colors between various shades of black
 
😃 Agree
 
(IIRC this is easy to fix, all you need to do is reorder the .Children of the axes)
 
@Dev-iL I already fixed it ;)
 
👍
When a reviewer asked me to let a native English speaker revise the manuscript, do you think they meant I could give it to one of our Indian post-docs?
 
@Dev-iL depends on whether their English is native I guess, rather than, say, Hindi with English as educational language.
 
1:06 PM
@Dev-iL heh
 
hehe it should count :P
 
Hm, if I use this exact code to get 4 subfigures, my lower-left figure is not aligned (all sub-figures are of equal size of course)
What parameter did I miss most likely?
 
Did you verify that they are the same size?
 
Are you sure you dont have a line break or somwthing like that somewhere?
and yeah, what Andras said. Maybe there is some white in the figures
 
seems like a \hfill is missing from the second row
hfill on top, quad below??
 
1:17 PM
@AndrasDeak yes
\begin{figure}
\begin{subfigure}{0.45\textwidth}
\includegraphics[width=\textwidth]{./Figures/iota_summer.png}
\caption{Summer}
\end{subfigure}
\hfill
\begin{subfigure}{0.45\textwidth}
\includegraphics[width=\textwidth]{./Figures/iota_winter.png}
\caption{Winter}
\end{subfigure}
\vskip\baselineskip
\begin{subfigure}{0.45\textwidth}
\includegraphics[width=\textwidth]{./Figures/iota_spring.png}
\caption{Spring}
\end{subfigure}
\quad
\begin{subfigure}{0.45\textwidth}
\includegraphics[width=\textwidth]{./Figures/iota_fall.png}
Basically, what the dude does. And my iota.png figures are output by the exact same MATLAB routine
 
So...change both to hfill?
 
@AndrasDeak eskerriönöm!
interesting that that answer seems to suggest otherwise... I'll leave a comment
 
@Adriaan if you watch closely their output is also misaligned
it's just that their flexible hfill is barely larger than a quad
Should definitely be fixed
 
2:19 PM
@AndrasDeak now that you mention it, indeed. I had the same problem, but more visible
 
2:36 PM
2
A: How can I make it clear to other road users that I'm an inexperienced cyclist?

Saaru LindestøkkeHere in NL kids have an orange flag attached to their bike making the young, inexperienced biker more noticeable and signaling that the biker is young and inexperienced: (Sorry, photo of a kid as I couldn't find another, no offence meant w.r.t. your biking abilities) The flag "pole" is flexible ...

This brings back so many childhood memories <3
 
3:01 PM
> Error using zeros Requested 2587520x2587522 (49883.6GB) array exceeds maximum array size preference.
I reject your preference and substitute my own
(and just fix my typo in dimensions, I guess)
 
49 TB of zeroed RAM
sweet
priscine RAM,
RAM vacuum. Purer than out-of factory RAM, modified by cosmic rays
 
 
6 hours later…
8:55 PM
in 2020 Stack Overflow Moderator Election Chat, 1 min ago, by Cris Luengo
@ElectionBot I won't run, but just out of curiosity, what is my candidate score?
in 2020 Stack Overflow Moderator Election Chat, 1 min ago, by ElectionBot
@CrisLuengo Your candidate score is 38 (out of 40). You are missing these badges: Marshal, Investor. Having a high candidate score is not a requirement - you can still nominate yourself in the election!
That was fun...
 
I think I have 40
 
I don't even know how it's computed.
I liked the bit "you can still nominate yourself in the election!" I guess my score is not that high?
 
@CrisLuengo it would be more than enough
20 from rep, 20 from badges I think
 
I think at 20k you get the full 20 points for rep then, because some user with just over 20k has a score of 40 over there.
 
yup
I'm missing Copy Editor
 
9:08 PM
Go copy-edit then!
 
But I don't want to be a mod :P
 
I guess that's like copy-pasting but making a change?
You don't need the badge to be mod. You don't need 40 score to be elected.
Also, being a mod is a crazy job that doesn't pay.
Why anyone would want to do that is beyond me.
 
teh powa
plus a few crazy people channeling their addiction into something more useful
 
Yeah, I gotta spend less time here, not more...
 
I never wanted to be a mod, but as of a while ago I won't even lift a finger for the company
 
9:14 PM
It's weird, because the work people do here is not for the company, it's to improve a free resource that helps a lot of people. It's just that the company happens to also benefit.
This would probably be a better place if it was owned by a non-profit.
 
@CrisLuengo yes, that's why a lot of people and mods still engage. For the community
 

« first day (1832 days earlier)      last day (1400 days later) »