« first day (322 days earlier)      last day (2899 days later) » 

12:00 AM
0
A: How to put the text labels (keys) to the left of the lines in the legend?

Dev-iLI've decided to take a slightly different approach for the HG2 case. Although admittedly somewhat silly, it could actually be useful if the figure ends up being exported. What we do is pretty much rotate every conceivable thing by 180°: function q37286345 %// Define some functions: f = {'sin(x)...

Anyway... I'm outta here!
 
me too, good night
 
12:23 AM
@Dev-iL Yea I was actually playing with the meta class stuff to see how to get at the underlying objects. I actually found how I could do it but I can't figure out how to mess with Transform objects.
 
 
2 hours later…
2:10 AM
Found another legit use for evalin
1
A: Compress your code in an image

SueverMATLAB, 81 72 69 bytes @()image(shiftdim(reshape(evalin('base','char(ans)'),3,1,23)/255,1.)) This creates an anonymous function which can be pasted into the command window and run using ans(). When run this creates a 23-pixel image (a prime) therefore the most square representation is a simple...

 
 
6 hours later…
8:03 AM
Hi folks!
 
8:33 AM
yo
 
9:14 AM
How are you doin'?
 
hi there
good and you
 
9:35 AM
:)
Pretty fine
 
MATLABing a lot in your PhD ?
 
9:50 AM
@AnderBiguri Really i want to implement this journal sciencedirect.com/science/article/pii/S156849461500527XOmid Gharib 2 mins ago
He did actually helped offer to help :(
was I being not clear enough?
 
10:38 AM
hmmm lemme check something
somebody other than Ander please ping "@ And" without spaces:P
I seem to recall that both of us get pinged in this case, but a guy's stating that only the newest one will
@BillBokeey if you're around sometime, please do that ^ for me:)
Guys, bad news: MATLAB isn't happening with prettify either:
2
@AndrasDeak - adding the MATLAB prettify script blows up the size to 144kb, 51kb minified, so that's not happening. The author of the answer on that post says there is a version without the keywords, but that doesn't seem to exist on the GitHub repo - not sure how useful something like that would be, but a large part of the increase is in the keywords. Even with such a version, I would need to re-test. — Oded ♦ 9 mins ago
@Oded thank you very much for the response. "It won't work" is perfectly fine, in that we now know what's going on, and what to expect:) Thank you once again for your time, I won't be nagging any of you with this in the future. — Andras Deak 1 min ago
@rayryeng @Adriaan @Dev-iL @Suever @excaza @beaker ping ^
Troy and Ander are here, no ping for them:P
@AndrasDeak - if the overhead wasn't so high... that's why I am talking about a stripped down version (as mentioned in that answer). If that kinds of version was useful to MATLAB posts and would be small (for comparison - most language files for prettify are 1kb-4kb in size - before minification), we would certainly consider it. — Oded ♦ 23 secs ago
OK, I don't know any prettify stuff to determine if that would be helpful ^
Amro's not pingable:(
 
10:55 AM
Damn, why's MATLAB so ridiculously large?
@and hullo
 
thanks dude
@AnderBiguri did you get pinged by Adriaan's previous message? If yes, could you please take a screenshot?:D
 
why's matlab 50-100 times larger than other language prettifiers?
 
cf.
2 mins ago, by Andras Deak
OK, I don't know any prettify stuff to determine if that would be helpful ^
and is why Amro would be awesome to hear of
 
MATLAB support'd increase the current SO-prettify package by 3 times o.0 and they already support quite a few languages. WTF is going on with MATLAB? I rarely see a lot of keywords, just blue for for/if etc, cyan for globals (God forbid), green for comments and some yellowish for system commands (!system)
 
maybe .' is hard to parse:D
 
11:05 AM
hmm yea, you'd have to figure out whether ' is a transpose or string operator
but apart from that
 
that sounds like a huge "apart from that", I've been wondering about that
hmm, well, maybe not
a string's beginning can't be attached to another token except =
 
@AndrasDeak =('text')
['text''text2']
 
or brackets and parens:P
 
plot(x,y,'.r')
 
and maybe commas and whitespace
my point is, all these things can't be transposed/adjoined
so it's surprisingly unambiguous, but it must be a pain in the ass to implement
 
11:10 AM
@AndrasDeak seems like a simple regex
even I could write that (gimme a week though)
 
nope
you could find the beginning of strings, but then you'd have to watch out for the ending
escaped '' and shit
and anyway, regex is bulky, that could exactly lead to a huge size or something
 
@AndrasDeak ending's always ', except indeed the escaped ''
 
I have absolutely no idea how prettify works, what it can use natively, etc
 
we'll get Luis to golf all teh things
 
oh crap @LuisMendo forgot to ping you with the pinned post above ^
 
11:17 AM
No C or R in this room :D
 
@ And
@And
 
thanks, too late:P
(Adriaan already pinged, thanks:)
 
@AndrasDeak not even a return ping? :(
I'll just go back to class in that case
 
 
2 hours later…
1:15 PM
yawns mornin goobers
@Adriaan lmfao this is gold
 
1:29 PM
Hi @ballBreaker
 
1:40 PM
Hey!
 
@AndrasDeak well that blows about highlight.js.
 
@rayryeng no, it's prettify
highlight.js is
 
sorry I'm out of date. I haven't been here in a few days
 
just check the meta post, it's brand new
I mean, the status change and Oded's feedback
 
God damn bobby
 
1:47 PM
So it looks like we're stuck with the default highlighting. boo
 
lol:D
 
hehehe
I've worked so much the past 2 weeks I'm taking a long ass-comic break this morning
 
Replace Bobby with Mar Mar / Kar Kar / Shar Shar and that's how I feel.
 
Har Har
 
1:52 PM
lmfao
 
:D
 
my eye muscles are sore today
it's a weird feeling
shouldn't have worked them out so vigorously last night at the gym
...staring at all the booty in yoga pants
 
2:11 PM
AHHHHHHH hahahaha
Damnit.
The second comic in that pic
So good.
the one with jesus.
 
2:31 PM
@ballBreaker:
in SO Close Vote Reviewers, 3 mins ago, by Andras Deak
I can keep it up for microseconds easily
at least here I can make dirty jokes about it without the mods around :D
 
guys, dupehammer this plz: stackoverflow.com/questions/37302505/…
I remember something very similar from a few days ago
 
With what question?
 
basically it's a "blockwise reshape"
@rayryeng I wish I remembered where I saw it :\
 
Suever already answered. The other question now shall be closed as a dupe of the almighty @Suever
 
@Adriaan I'm at a loss on how to edit this question
0
Q: Getting back original color Matlab

Maq92I wonder if there is any way to get back an original color for picture in matlab? color.bmp is a colorfull picture and after operationas such as segmentation and setting few pixels to 0 just to delete them from my pic I'd like to "color" the rest of figures back to the original color.. I know exa...

The grammar is so bad that I don't know where to start.
 
2:42 PM
@rayryeng if you edit it, I'll get you your upvote for the illuminator badge ;)
 
@Adriaan sweet. OK
 
I'd start with the worst of all mistakes: "color" cringes
 
lol I'm going to leave it at that.
I don't correct regional spelling
I just need to do this... 35 more times lol
 
@rayryeng he's definitely not a native speaker, so we can still save him from misspelling it all his life!
@AnderBiguri @And ^
 
2:46 PM
lmao
 
STOP PINGING ME @ad @ad @Ad @Ad @AD
:P
 
@AnderBiguri two characters doesn't work ;)
 
@And
 
:( :( :(
 
@Ande
@An
@A
@VadeRetro
 
2:48 PM
hahaha
 
It makes life so much easier
 
Should I change my username to that??
:P
anyway Im off for the day
 
"@And, how's the wife?" '@and, how's the beard grooming?'
 
lmao maybe
take care sir!
 
@AnderBiguri see you
 
2:49 PM
My supervisor from CERN is in town
 
@AnderBiguri so you're getting hammered again?
 
which means: Beer beer beer beer particle physics? beer beer
yeah
see ya fellas!
 
bahahah sweet
later
 
@AnderBiguri thank you, sir
 
@AndrasDeak Which post? (I'm on the mobile). The no-prettify thing? :-(
 
2:58 PM
@LuisMendo jup
 
3:14 PM
@AndrasDeak thanks, did you manage to ping Amro? If not, I'll add the link to his meta.SE answer
 
You can also try emailing him too
 
btw, I remember Amro mentioning the keyword listing as a possible reason they weren't including his prettify script
 
oh yeah? If we remove that you think it would move things forward?
 
@rayryeng well, Oded said it would still have to be tested, but I think it would at least be up for consideration if it was similar in size to the other scripts
 
makes sense.
Does 50 KB really make a difference?
 
3:28 PM
when it's served 10 million times a day, i think so
 
hmmm right.
 
Oded mentioned that the highlight.js script was big enough to introduce noticeable lag in loading the formatted code
oops... maybe that was the CPU usage...
11
A: Highlight.js: For Real, Please

OdedThe results of my testing were disappointing - we will not go ahead with highlight.js as a syntax highlighter for Stack Overflow and our other sites. It is not too big It is - I generated a custom set of languages that mirrors the exact set we currently support with prettify. Uncompressed i...

under "It's way faster"
 
I have been summoned!
 
@Adriaan See it this way: if they changed the highlighting we'd probably miss the current (crappy) one :-)
 
3:44 PM
@LuisMendo I sure as hell wouldn't lol
I'm getting tired of doing %// for comments and doing %' to fix highlighting when using the transpose.
 
@rayryeng if we could just get those two fixed, i think that would be 90% of the battle
 
For sure.
I can live without dedicated highlighting for toolbox functions
But doing %// and %' make answering questions longer.
 
yup
 
It has gotten to a point now where when I write actual code on my computer, I do %// to delimit comments out of force of habit lmao
 
3:57 PM
@rayryeng You should use # for comments...
>:D
 
@beaker ha!
 
i'm pretty sure that would format properly
 
@rayryeng See? That's what I meant :-D
(It happens to me too)
 
sorry, been AFK + connectivity problems
@beaker I didn't even try. Please add the link to his answer:)
and yeah, @Luis, the prettify thing, but you must have figured it by now:)
 
4:14 PM
@AndrasDeak I have :)
@Amro I'm not sure if you've seen this: meta.stackexchange.com/questions/278141/… It appears the size of the prettify script is a problem. — beaker 54 mins ago
 
connection's still fucking with me
@beaker thanks:)
 
sorry, i meant to let you know that i had commented :")
 
well, you could've and I still might have missed it
restarting fxx, hoping it will help
it will certainly make the 100% constant CPU load go away
oh I see that lack of the lite version, that's what Oded was talking about
wonder why Amro removed that
maybe support reasons
 
@AndrasDeak It's the last link on the post
I was just looking at that
 
Amro is also about 1.5k short of rep to get unicorn gifts from the so team
 
4:21 PM
it still comes in over 10k
 
OK, the direct link pops up greasemonkey for me
but I can't see that branch on github
nevermind, I just can't use github:P
probably Oded can't either
@beaker :(
 
4:44 PM
@beaker - ah, thanks - couldn't figure that one out myself. Will test when time allows. — Oded ♦ 2 mins ago
@AndrasDeak He has now...
 
nice, thanks:)
in SO Close Vote Reviewers, 55 secs ago, by Kyll
Yeah saw that, thanks. Almost posted "OMG WHAT A BEARD" as a comment, thought there was already enough fluff in there xD
@AnderBiguri ^
your efforts with the screenshot were not in vain
 
 
1 hour later…
6:03 PM
Hello, does it make sense to want to put a variable length into an array of cells
 
posted on May 18, 2016 by Yair Altman

We can easily use saved profiling results to analyze, view and compare profiling results of multiple runs. Related posts:Function call timeline profiling – A new utility enables to interactively explore Matlab function call timeline profiling. ...Profiling Matlab memory usage – mtic and mtoc were a couple of undocumented features that enabled users of past Matlab releases to easily profile me

 
@Thijser if you mean a collection of elements that vary in length, then yes
 
@beaker well I currently have the following bit of code that attempts this:
bbag=zeros(0);
for i=3:size(apples)
image=imread(strcat('apple/',apples(i).name));
image = imresize(image,0.1);
bag=extractinstances(image);
[dontcare,y] = size(bag);
clearvars tbag
for i=1:y
tbag(i)={bag(1,i),bag(2,i),bag(3,i),bag(4,i)};
end
vertcat(bbag,tbag)
labels(i) = 1;

end
but it keeps giving me Subscripted assignment dimension mismatch.
errors at tbag(i)={bag(1,i),bag(2,i),bag(3,i),bag(4,i)};
But what I need is a setup where I have an matrix of cells where every cell contains between 1 and 4 values
(currently only showing the 4 example)
not sure if that makes sense to want?
 
@Thijser if you simplify that to a mcve and give sample input and output, it would make a fine question on SO
 
Alright so that basic idea is not stupid to try?
(not an experienced matlab programming so it' s hard to judge)
 
6:15 PM
I haven't looked at what types of elements you're trying to add, but it sounds quite reasonable to put varying-length elements in a cell array (that's kinda what they're for)
 
it' s all doubles
 
so something like C = {[1.0, 1.7, 1.4], [2.1, 1.0, 7.1, 3.1], [2.7182819]}?
 
yes but as a 2d array
 
it is
 
yup
 
6:27 PM
3d then
 
"various errors" is insufficient
for a proper debugging question, add the full error message
 
@Thijser did you try it and check the results?
 
With your line?
 
yes
 
[1x3 double] [1x4 double] [2.7183]
 
6:28 PM
tbag=[tbag,{bag(1,i),bag(2,i),bag(3,i),bag(4,i)}];
that's not the best, array concatenation syntax with a cell inside, I wouldn't dare to guess the type of the output, if valid
 
well it has a tendency to try to concatinate the cells
so we get an array with say 16 values in it (if input was 4 x 4 )
 
>> C = {[1.0, 1.7, 1.4], [2.1, 1.0, 7.1, 3.1], [2.7182819]}
C =
{
  [1,1] =

     1.0000   1.7000   1.4000

  [1,2] =

     2.1000   1.0000   7.1000   3.1000

  [1,3] =  2.7183
}
>> C{4} = magic(5)
C =
{
  [1,1] =

     1.0000   1.7000   1.4000

  [1,2] =

     2.1000   1.0000   7.1000   3.1000

  [1,3] =  2.7183
  [1,4] =

     17   24    1    8   15
     23    5    7   14   16
      4    6   13   20   22
     10   12   19   21    3
     11   18   25    2    9

}
 
This would be valid for a single line
so this would be tbag
but not bbag
by the way I updated my question a bit
 
I'm still not clear on your desired results... you want 98 2-dimensional matrices stored in a cell array?
 
@Thijser pro tip: use %// for comments on stack overflow, to fix the broken syntax highlighting
 
6:39 PM
@beaker I think I understand what I' m doing wrong let me check
alright I think I got it thanks guys
 
so what was the solution?
 
double loop and using different brackets
[vs(vs{
 
20 mins ago, by Andras Deak
that's not the best, array concatenation syntax with a cell inside, I wouldn't dare to guess the type of the output, if valid
 
;)
 
@AndrasDeak yes that was indeed the problem and by looking at @beakers sollution I was able to derive the correct brackets
So team work :)
 
6:52 PM
we're glad it's solved:)
 
7:10 PM
@AndrasDeak lol tbag
 
@LuisMendo how do you use spdiags in MATL? ;)
@Suever it took a great deal of self-control for me to not say anything about that
 
7:33 PM
heh, yeah:D
 
 
2 hours later…
9:41 PM
@beaker Is it for flawr's convolution challenge? :-)
Let me know if this answers your question:
    >> matl -h spdiags
    Xd  diagonal matrices and diagonals of a matrix
        1--4 (1 / 2);  1--2 (1)
        If 1 input and 1 output: diag. Otherwise: spdiags, with char
        inputs automatically converted to double

    >> matl '[1:3;4:6;7:9]tZy2):q&Xd'
    1 0 0
    5 2 0
    9 6 3
Oh you wrote in the other room too
 
@LuisMendo yeah, i figured i'd use the MATL room for MATL stuff ;)
 
:-D It's probably better for centralizing the info. But whichever you prefer
 
10:16 PM
stackoverflow.com/questions/37310916/… <- close that piece of Too Broad PCA crap pls. I'm fed up with people who hear about PCA and think it's a magic wand on their data.
 
@Adriaan It's been diamond hammered ;)
 
@beaker JonC is my hero :D
 
@Adriaan parfor is often mistaken as magic wand too :-)
 
@LuisMendo I'm fourth in that tag:D
It's like I can do stuff :O
 
@Adriaan I dunno. I never used parfor :-) It's probablhy very useful in certain cases, but not a speed-up-all magic thing
 
10:24 PM
@LuisMendo for trivial things like a huge Fourier transform, it does wonders
 
@LuisMendo I used it at work! went from 1.6h processing time to 15 mins :P
 
that's a lot of cores
8?
that's not even all that much
 
@AndrasDeak €3.000 processor ;)
 
Wow. Maybe I should look into that. But I avoid for anyway. When I do use for it's probably not parallelizable
 
8 cores
 
10:25 PM
well, I have 4 physical ones
 
10
A: Saving time and memory using parfor in Matlab?

AdriaanGeneral information Basically, parfor is recommended in two cases: lots of interations in your loop (i.e., like 1e10), or if each iteration takes a very long time (e.g., eig(magic(1e4))). In the second case you might want to consider using spmd (slower than parfor in my experience). The reason p...

^parfor is magic
@AndrasDeak I have one, containing my organs. Quite satisfied with it
 
@LuisMendo yeah, parfor only works trivially for trivially parallel problems
 
@Adriaan +1 for nice pic :-P
 
though I might have pushed my liver a tad far tonight
@LuisMendo actually one of my first posts on SO. Still I am rather satisfied with it as a general starting point for parallel MATLAB processing
 
@Adriaan if you turn yellow by tomorrow, we'll see
 
10:27 PM
@AndrasDeak I doubt you'd see that, as I'd hardly make the local news
 
well, you'll see
 
@AndrasDeak I sure will. Good night lads
 
good night
 
Good night!
 
d'nite @Adriaan
 

« first day (322 days earlier)      last day (2899 days later) »