« first day (300 days earlier)      last day (2922 days later) » 
05:00 - 16:0016:00 - 23:00

5:54 AM
@Amro Added in a couple of preliminary commits. Wanted to get my engine up :)
I've made a separate branch for it so it doesn't mess with anything you are developing.
I'll keep working on it... make improvements and such.
 
 
2 hours later…
7:31 AM
 
7:43 AM
MATLAB has git integration now!?!!?
Or was it always there and I just didn't notice....?
 
8:32 AM
@Dev-iL you didnt notice
for a couple of years at leastr
 
Ok, tnx
 
however, there is no pull!!! NO FREAKING PULL
there is fetch and merge separatedly I think
But works there there in my PC, so I open Git bash for pulling XD
 
Go explain to MATLAB's main body of users why they even need git in there...
 
hahaha yeah
I was positively suprised when I saw that the first time
has helped me a lot in my toolbox. No need of "git status" and the likes, you got colorful symbols!
 
8:51 AM
btw, we might be getting a dark theme for MATLAB soon, courtesy of these guys...
I'm saying this because MATLAB is strongly associated with netbeans
 
Nice!
 
 
2 hours later…
11:08 AM
Yo @AndrasDeak
 
sup
 
Good... Good... you?
 
fine, fine thanks:)
 
Do you have any "golfy" idea how to convert a hex string (by taking 2 characters at a time) to a vector of uint8s ?
Specifically I'm asking about how to take a character vector and split it to a cell array of strings that contain 2 characters each
 
hm
just something like mat2cell?
will that transform them to numeric?
 
11:11 AM
hex2dec will, and it works on cell arrays
perhaps reshape?
yeah reshape sounds good :D
 
yeah I was thinking about that
reshape, that is
 
tnx ;)
 
bin2dec does work column-wise or something
so it's plausible
 
hex2dec(cellstr(reshape('00FF0000',[],2).'))
only that I lose 2 values
nvm
stupid mistake
 
11:16 AM
still I need something like "block reshape"
cellstr(reshape('00FF0000',[],2))

ans =

    '00'
    '00'
    'F0'
    'F0'
 
what do you mean?
fliplr before transpose?
 
@AndrasDeak I want {'00';'FF';'00';'00 '}
 
ah
cellstr(reshape('00FF0000',2,[]))
:)
just switch the dimensions
 
that's what I tried above :P
cellstr(reshape('00FF0000',2,[]))

ans =

    '0F00'
    '0F00'
cellstr(reshape('00FF0000',2,[]).').'
 
meh, I'll fire up matlab:)
 
11:22 AM
no need
all done
 
probably need reshape(...,2,2,[])
cellstr doesn't like that though
 
the latest code I wrote works
>> uint8(hex2dec(cellstr(reshape('00FF0000',2,[]).'))).'

ans =

    0  255    0    0
 
elegant;D
 
hehe tnx
you will be more impressed when whatever it's for is ready ;)
 
looking forward to it:)
 
11:28 AM
Don't hold your breath ;)
I finally have some time to work on some side-side-projects :D
 
:D
you clearly don't procrastinate enough
or is it Pesach downtime?
 
'tis
 
I see
 
I don't know the right English term for it.. It's something like "forced holiday"
 
yeah I get the picture
mandatory leave or something?
 
11:32 AM
I get a certain amount of days-off each year, and there are some holidays where I have to use them
mandatory leave is when you're accused of rape etc., no?
 
@Dev-iL "Public Holiday"-> everyone gets the day off (most Pub Hols in Europe are Christian celebratory days of course)
 
@Adriaan It's not that
It's like a "half holiday" where most people work, but some may choose to rest
I honestly don't know if other countries have that... I guess it's something like "the Christmas season" where it's a period of several weeks in which the populace "kinda works" but many also choose not to pretend and just take a vacation
 
hex2dec(reshape((permute(reshape('00FF0000',2,2,[]),[2 3 1])),4,[]))
finally (@Dev-iL ^)
 
dear lord
Why's this?
 
it seemed more elegant to me, before I finished it:D
 
11:43 AM
at least tell me you gain performance..
 
no cells?
that's a plus
 
@AndrasDeak at the cost of total unreadability
btw
 
details, details;D
 
you might be able to lose the permute entirely if you just hex2dec the reshape result
methinks it turns it into a column vector
 
wait I have a pair of unnecessary parentheses
and no, hex2dec works row-wise
for which I need an Nx2 matrix
but that can only be done (filling row-major) with the above
 
11:47 AM
hex2dec(reshape('00FF0000',2,[]).').' ? no cells...
 
yeah, if that works, go for it:)
 
it does
 
cool
 
Uncharacteristically, I tested it before posting
 
your latest version had cellstr in it
this is the best then, obviously
 
11:51 AM
Koszonom + :::: ;)
 
:D
בבקשה
(?)
 
כן
!!נכון
 
:D glad to hear that, thanks
 
12:22 PM
annulus is such a good word
whyyy is this upvoted
2
Q: Project Euler Solving

user214425Good afternoon! (At least in korea) I'm a normal colleage guy in Korea. Now I'm serving my military service and during these boring days, I found the site called project euler and I've been into solving it for 6 months or more. About 90 problems solved and....here's something that I want to ask ...

 
Project Euler questions themselves defeat the whole purpose of project euler
but that question sucks bananas
 
@AndrasDeak this guy crushed it meta.stackoverflow.com/a/319338/2748311
@Shog9: Also, if examples are so good at explaining things, then show a good example of Docs.SO working. — Nicol Bolas Mar 19 at 1:09
 
12:39 PM
I got in the Docs thing
but no tags that I can contrubute to :(
But I think Docs is a nice idea for some tags
With fear of repeating myself: CUDA needs docs, and NVIDIA doesnt seem to be really bothered about it
and CUDA is not just an obscure tag
 
1:06 PM
Mornin guys
 
heya
 
1:16 PM
How goes it?
 
You guys are invited to download a custom theme for MATLAB I just uploaded, based on Jetbrains' Darcula... It looks quite nice even without modifying the L&F to something dark....
 
1:31 PM
 
mm sligthly too dark for me i'd say, but ill give it a try
@Dev-iL how do you add those fancy "Issues=0 " thingy in your github?
 
Oh shield.io
learned it from @excaza ;)
 
you just copy paste (and modify the repo) of the links they provide?
 
@AnderBiguri true
you can add cool stuff like links to SO tags
 
2:00 PM
nice
ill add some of those to my soon-to-be-released toolbxo
 
2:44 PM
@excaza I agree with the guy. Vertex Shader is a perfect example of how Docs.SO would fail.
 
how?
 
Docs.SO is basically documentation by example. You show how something works and you don't really explain how it's supposed to work
A Vertex Shader in OpenGL is a huge beast... there are a lot of nuances you have to know to get it to work properly.
There's no way you could break that topic up into separate examples
It wouldn't fail for us per se
but something like OpenGL... I can't see it working for that particular platform
 
I see what you mean
but you are supposed to explain how it work sin the Docs, isnt it?
 
For us it's pretty simple... plot, bsxfun, permute etc. can all be broken up into one small example
 
its not just examples
it is example-driven
 
2:48 PM
I got the impression that it's just code dumping
I may have read too fast.
 
I am in already
 
ah, I'm not. I missed the signup
@AnderBiguri OH btw, I don't know if you were around, but Amro and I are working on a Neural Network Playground engine.
 
and the posts that are a code dump have generally a "this needs improvement" tag with them
 
pretty much a MATLAB implementation of playground.tensorflow.org
 
I saw you guys working
 
2:49 PM
He's been working on the GUI, I worked on the training engine
I finished writing the class that trains... forward and backprop, etc.
 
shit thats amazing
 
I'm just improving it now.
 
I wish I had time for that
 
heheh I know. I've been working on this during my off time
once I understand Convolutional Neural Networks, I'll make a MATLAB engine for that
@AnderBiguri I guess you saw the figures I posted too? :D
 
No I didnt!
 
2:51 PM
That figure was generated by a demo script I wrote that uses the engine
So this neural network training system I wrote by myself. It doesn't use the Neural Networks toolbox.
We're trying to make this core MATLAB only.
 
Cool!!
You got a gothub thingie?
 
So, the idea is releasing a big Toolbox for NN in MATLAB?
 
Right now my code is in a branch called engine
I'm not messing with Amro's stuff... whenever he decides to commit
ahhh.. I'm not sure actually @AnderBiguri. I just wanted to help Amro make a MATLAB equivalent of the TensorFlow NN Playground that you saw
 
Ahh okok
 
2:54 PM
It may transition to a NN toolbox!
but TBH this was on my bucket list.
 
more didactic-oriented?
 
I wanted to write code to train a neural network given any arbitrary configuration
You specify the number of input neurons, hidden layers, hidden neurons per layer and output neurons, and the code trains it
Didactic?... yeah I'd say so!
 
And what about MATLABS NN library?
 
It was more about seeing if I could do it... and how efficiently I could do it
We wanted to write code that was core MATLAB. No NN toolbox
 
I see I see
 
2:56 PM
because we wanted all MATLAB users to be able to run the code
no toolbox dependency
 
Thats cool
 
that and I think I could write code that is faster than NN to train XD
 
what baout User interface? you looking for something like tensorflow?
or mode API-liek
 
a bit of both I htink
think*
Amro already wrote a preliminary GUI that looks like the one you see on TensorFlow
 
that is cool
 
2:57 PM
that's what he is doing now. I asked if I could write the training algorithm
 
I am incredibly waiting for 2016a in my PC
 
yeah I updated all of the weights using sum/bsxfun/permute :). No loops.
 
the notebooks seem like the best place in the world to do this kind of didactic/showcase thingies
 
Except for looping over each layer... which you have to given that each layer is uneven in size.
 
yeah indeed
in NN training there will be loops, wheteher you like or not
 
2:58 PM
2016a eh? I'm behind. I'm only on 15a.
for sure.
and when you calculate backprop, the layer's sensitivities depends on the layer after it
There isn't a way to parallelize because of that information dependency
 
yeah, Ipython NOtebook (Jupyter nowadays) is one of the best thing that happened in programing, in my opoinion
 
for sure.
MATLAB 16a will have something like that right?
 
You're both nuts.
But that's just my opinion.
 
I find it hard to believe that eval is your only solution to save variables. Why do you think that that is the case? — Adriaan 6 secs ago
BURN IT WITH FIRE
 
@rayryeng yeah it has, but IT is IT
 
3:01 PM
@AnderBiguri oh? in what way?
 
@TroyHaskin you misspelled fact
@rayryeng university IT I mean. They suck bananas and dont want me to install MATLAB releases until "b" releases
 
@Adriaan Indeed. Even if gmm is something weird, cell arrays and structs exist.
 
hahahaha.
 
You guys ever hear the sayings like "fuck and chuck", "hump and dump" ?
 
@LuisMendo I whipped together a little script to scrape all MATL answers and passed them through matl_parse to figure out the frequency with which each function is called and also the number of input arguments that are used (if explicitly called). I will clean up the script, but for now here are the preliminary results.
 
3:02 PM
@AnderBiguri Yeah that's why I never use the university computers.
 
I heard the best variant the other day
 
@Suever that's crazy!!
 
@rayryeng is not like I have an option
 
@AnderBiguri I only use "opinion" when I'm being serious.
 
3:02 PM
hahahaha
 
I got buried in actual matlab
Fair enough
 
Default number of input arguments are shown in red (I hope you aren't colorblind)
 
@Adriaan That being said, do you think eval is the root cause of the OP's, to me, ambiguous problem?
 
@Suever PERCEPTUALLY UNIFORM COLORMAAAAAPS
 
@Suever That's ok. I think you're the nicest black guy ever.
 
3:06 PM
@TroyHaskin I have absolutely no idea
 
hahaha nvm, I made a toolbox importing some colormaps XD
 
@Suever Put some parula on that bad boy! :D
 
@AnderBiguri Haha well it's a strange mix of continuous data and categorical data
 
@rayryeng or jet. I like jet.
 
And I'm lazy
 
3:07 PM
nah, its cool, I was just kidding
actualyl is REALLY cool
(your tables)
 
Yea this is all in hopes of figuring out the best use of &
 
@Adriaan you didn't just blaspheme here.
 
@Adriaan GET OUT FROM HERE
 
Basically we were considering making & be "secondary default number of input arguments"
 
3:10 PM
Which obviously depends on the function. And there is clearly a consensus (based on usage) what that secondary nargin should be for many of the functions
Granted these are biased because 99% of them are Luis'
 
hahaha
 
@AnderBiguri the OP is using k-means.
That's why it's different every time the OP runs the script lmao
It is a randomized algorithm.
 
fantastic how we're all bullying the poor chap
 
loooooooool
people are stupid
 
This statement "I was told before to use structures as well but could not implement it in my code, many things had to be changed, so I just went the easier route of eval" and your username kind of go together. — Suever 55 secs ago
 
3:13 PM
@Suever OH SNAP
@Adriaan I wasn't bullying!... just offering some friendly advice :D
 
@Suever LOOOOOOOOOOOOOOOOOOOOOL
 
@Suever lolll jesus
 
too harsh?
 
@Suever Burn! :P
@rayryeng Isn't the proper term "stochastic" (as opposed to "deterministic")?
 
@LuisMendo My brain started working this morning and I figured out then entropy algorithm. I have no clue why it was giving me such trouble yesterday.
 
3:25 PM
@Suever Wow! I'm amazed, such great work! I'll take a closer look when I have some time. This week and the next I'm, quite busy. As prelimiary comment, in addition to saying again what a good work this is, We'll have to be careful about functions whose name has been changed. I think we should use this as a guide, but apply modifications as needed. As a specific example, N$h was used a lot, so I made v have that behaviour by default, so now N$his less useful
 
@Dev-iL ahh... yeah stochastic. Yes. That's better.
It could be deterministic if you set the random seed every time you run the algorithm though :D
 
@beaker :-) I think it's not that different from my answer, alghough I'm not sure
 
@TroyHaskin :D
 
3:27 PM
Actually one of my favourite PPCG posts is the one below... make code that appears to be fair but it really isn't.
 
@LuisMendo yours does something like S == unique(S)', right?
 
107
Q: Random script that isn't actually random

Tom HartAs a little joke in the office someone wanted a script that randomly picks a name, and said person will make a round of drinks. Let's call the people John, Jeff, Emma, Steve and Julie. I thought it would be funny to make a script that seems random at a quick glance, but actually always gives t...

 
I wish bounties could be set on chat comments! @Suever
vvv
25 mins ago, by Suever
user image
 
@AnderBiguri At least the Hackathon one isn't using the recursive form of the calculation.
 
@beaker Yes, that's the basis of it
 
3:29 PM
@TroyHaskin Indeed! ahahaha
 
@all have you noticed a change in the code highlighting for the MATLAB tag?
0
Q: Can using eval effect the values of my saved variables?

StuckInPhDI have a script that takes about 4 days to generate its result. I have access to a 20 workstations in my Lab. I have K-means and GMM clustering on a huge data set that takes the most time. So I decided to divide my work over these 20 machines and save the result of every machine that can be proc...

The strings are no longer red... they're green.
Also this is now highlighted... I have a feeling they f*cked up our highlighting with Java lol
 
@Suever I'm not :-)
@AnderBiguri Viridiiiiiiis
 
Viridis For president
 
@rayryeng default syntax highlighting has changed (someone in the SOCVR mentioned C++ as well). MATLAB takes the default highlighter
 
<3 cool colormaps
 
3:32 PM
Jet??
It stands out as the outsider, even in the miniature version of the image :-D
 
@LuisMendo jet! It's fantastic!
 
@Adriaan about as fantastic as Notepad set in 20-point Comic Sans
 
@Adriaan ok so I'm not going crazy. Thanks.
 
@LuisMendo with ark blue background and yellow text
 
And flashing! Quickly!
(Disclaimer: I do use Notepad a lot)
 
3:37 PM
BOOOO!!!!!
 
@LuisMendo in 20pts Comic Sans I presume, since apparently that is just as fantastic as jet, and we all know jet is brilliant
 
:-D
 
@LuisMendo you are missing the ++ there
 
I'll go have dinner now before I get kicked for antagonising everyone else ^^
 
@AnderBiguri Hahaha. I have to try that some day
@Adriaan Yes... "brilliant" as in "full of ​light, ​shining, or ​bright in ​colour:"
 
3:41 PM
@AnderBiguri Fun fact: Apple decided to remove the ++ and -- operators from the next iteration of their new language Swift (v3) as they "don't add much" beyond += and -= and also encourage using for loops to iterate over collections where the promoted approach is to use constructs like "for each"
 
@LuisMendo sounds like shiny :P
 
@Dev-iL really? that's stupid.
 
@Dev-iL they suddenly took the wrong direction..... in time
 
I want my ++ :(
 
3:41 PM
It's Apple. What do you expect?
 
@rayryeng
20
Q: Syntax highlighting for strings is hard to see now

MichaelMany of the recent color changes to Stack Overflow have been welcome, but I find it frustrating that the syntax highlighting no longer colors strings and numbers in an easily identifiable color. I can't tell the difference between #4a1c21 (CSS .str, .lit) and #181a1c (CSS .pln) with any reliabil...

 
@LuisMendo xnor's algorithm is a bit different from yours... 10 bytes in MATL matl.tryitonline.net/…
 
@Suever Does your script allow a similar analysis for #? For certain functions it may be better to let &redefine # instead of (or in addition to) $
 
@LuisMendo They also claim that this chimera of a language can be taught as a "first language" to people. Perhaps I'm already ruined by the order in which I learned coding languages... But Swift.... It is a combination of pretty much everything (mostly JS, python, Java, ObjC)....
 
@beaker Huh? Go post it!
@Dev-iL I know nothing about Swift, but yes, doesn't seem like a good choice for first language
 
3:47 PM
@Dev-iL this is beacuse applefanboys will believe it and will start learnign from there
making them even more tied to apple
 
@LuisMendo The way I see it, there's currently not much point in learning it, unless you want to be involved in its design (ahem... ahem...)
 
@Dev-iL Besides, they'll change it whenever they want. And you can't complain
 
@AnderBiguri totally... What's annoying though, are the rumors that "Google wants to transition to Swift for Android"
 
?????????????!?!?!?????????
really?
 
@LuisMendo It is open-source....
 
3:49 PM
I mean, I pretty much think java sucks also
 
@AnderBiguri RUMORS that people take as facts!!!
 
but I am surpsied by that
 
@Dev-iL Oh :-)
 
@AnderBiguri Plus there's the whole Oracle lawsuit thing :/
 
3:51 PM
"_Swift is a high-performance system programming language. It has a clean and modern syntax, offers seamless access to existing C and Objective-C code and frameworks, and is memory safe by default._

_Although inspired by Objective-C and many other languages, Swift is not itself a C-derived language. As a complete and independent language, Swift packages core features like flow control, data structures, and functions, with high-level constructs like objects, protocols, closures, and generics. Swift embraces modules, eliminating the need for headers and the code duplication they entail._"
 
@AnderBiguri Oracle is suing Google over the use of the Java API in Android
 
I thought the API itself wasn't patentable, but only its implementation... Or maybe that was the ruling in Europe X_x
 
@beaker ohhhh
 
Oracle's claim has been gaining traction in the US courts, though
 
oh yeah US courts, where you can make a lawsuit about everything
 
3:58 PM
@LuisMendo Currently working on implementing # into the script. It's slightly more difficult due to FFT# syntax
Maybe I should just ignore those since those aren't easily duplicated with &?
Or would you have & only return a specific output
 
05:00 - 16:0016:00 - 23:00

« first day (300 days earlier)      last day (2922 days later) »