« first day (75 days earlier)      last day (3147 days later) » 

10:00 PM
@AndrasDeak - No. I write raw images to the GIF.
I used to do that when I had an image sequence and wanted to write images directly to the GIF.
what I do now is simply make sure the figure window is open, crop out what I don't need in the capture window, then run the script.
 
But I mean with imwrite, before you switched to licecap.
 
Yes, using imwrite.
no trash though
because I seriously just take the RAW images in the workspace and dump them into the GIF... so all you see is raw image data.
No unnecessary figure window stuff.
With Licecap, I have to be careful because it captures whatever you want to see on the desktop
with imwrite, the image is in memory and I write directly to the GIF. I found it really annoying though to set up.
 
OK, thanks:)
Well, licecap doesn't sound like a part of matlab, so it shouldn't know about window boundaries.
So that doesn't surprise me.
 
Yup! It's a third party program
 
OK, gimp can select individual windows, so in principle licecap should be able to manipulate focus as well.
 
10:08 PM
Nice room topic, @rayryeng! Yes, it's a pity I never coincide with Divakar here
 
I know :( He just left.
maybe 20 minutes ago
 
I was reading over the messages. It was a very funny conversation
A little fixation with Lena, do I notice? ;-)
 
hahaha yes :)
My PhD supervisor bought that issue with Lenna in it on eBay
It cost him $250.
 
LOL:D
 
So I actually got to see the picture up close.
 
10:10 PM
Was the cover sticky?
 
@AndrasDeak Aaagh
 
@AndrasDeak hahhahaa surprisingly no.
It was in pristine condition.
Interesting story. That portion of the image was exactly 5.12 x 5.12 inches.
which resulted in a resolution of 512 x 512 pixels... because the scanner that was used to create the image had a 100 dpi resolution.
So the 5.12 x 5.12 square managed to get her face and part of her shoulder.
 
I've had an idea for Code Golf: write a program that destroys itself. "Destroy" meaning delete the file that contains the program (irrespective of the file's actual name, so that it's more interesting). But there's something I need to work out: how to test the program in an online interpreter? What condition could there be that's more or less equivalent to destroying the file, but that can be carried out on an online interpreter? Any idea?
 
Online interpreter would be tough.
delete the file as in remove it from the file system?
easiest way would be to dump the directory contents before and after and do a difference. Make sure the file isn't there... or simply list the file in the directory before and ensure that it isn't there after.
 
10:23 PM
Well...that won't work in a portable manner.
Depending on OS, you won't be able to delete a program that's still running. I think windows will be the one that prevents that.
Due to memory mapping or something...
 
I agree.
 
@LuisMendo or just give them to perform lower! MATLAB has that function for it.
 
@Divakar - there he is!
 
Yes, remove from the file system. But that can't be done in the onlie interpreter. So I'd want something more or less equivalent to "destroying", but on the interpreter. I need to think about that
Hi, @Divakar!
 
hey! :)
 
10:24 PM
We never seem to coincide here
 
well finally!
 
What I'm saying is that you can't even do that on a PC.
 
yup, its like .. you know we used to say 24 hr coverage thing
 
@Divakar You have Matlab tag a little abandoned as of late :-)
 
across the three parts of the globe!
 
10:25 PM
Yeah, it was fun!
 
well, I am in and out sort of now :)
 
@AndrasDeak Do what? Delete the file you surely can
Oh, I see what you mean. Yes, Matlab can
 
Here's a confession, I tried bsxfunning this - stackoverflow.com/questions/32564763/…
 
The file is not blocked while running
 
2
Q: MATLAB - Avoid repeated values in a vector inside cell arrays and take next

S. PerezThis is the problem: I have a cell array on the form indx{ii} where each ii is an array of size 1xNii (this means the arrays have different size). And another cell array on the form indy{jj} where each jj is an array of the same size as ii. The question is that I would like to create a function...

 
10:27 PM
Noooo
That's way to madness!
:-)
 
But, then the dependency actually killed me.
 
You'll end up writing in Zalgo
 
whats zalgo?
 
T̜̤̩͋͑̀̍̈́̔͐͞Ĥ̺̗̳̱̺̋̈́I̞͌͠S̰̼ͦ̓̊̏ͮ ͈̰͉̖̜͋̋̊̃͜i̵̮̪̯̳͖̗̊s̯͌͡ ̢̦̬̩̳͛͌͐̌Z͇̠ͭ̈́ͦa̡̫̙̱͕͇͖͎̿ͤͦ͊͛ḷ̹͔̯̘̰̜g̶̖̜̺̠͎̗̲̓ͭͩ͋o̫̹̬̬̎͋ͥͯ̄̒
 
I tried TRIUing across 3D, but didnt work out.
ahh, is that a game?? :)
 
10:28 PM
It's text with characters like accents and stuff, but slightly overused
 
Yeah you basically take characters and add random characters that are non-ASCII to it
 
You can see it use in this famous answer
4427
A: RegEx match open tags except XHTML self-contained tags

bobinceYou can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool th...

 
the amount that each character gets follows a normal distribution.
 
wow, reminds me of the days once I was crazy about handwriting fonts and trying to put those on pictures with photoshop.
 
That's probably my favourite answer here :-)
So Divakar, you're not getting much sleep tonight, are you?
 
10:32 PM
nope
I was trying to head back, saw you in here, so jumped in for a quickie :)
 
Hahaha
 
head back to bed that is
 
@rayryeng, you ended up writing an answer without Image Processing Toolbox here!
2
A: Surround a string with hashes

rayryengMATLAB, 93 91 bytes Not the prettiest, but it gets the job done. t=[32 input('','s') 32];m='#####'.';n=repmat('# ',numel(t),1)';disp([m [n;t;flipud(n)] m]) Code Explanation Step #1 t=[32 input('','s') 32]; Read in a string from STDIN and place a leading and trailing single space inside it...

 
@LuisMendo - yes I did. When I used it, it generated a higher byte count.
 
I thought it would be short, but I'm not really into those functions
 
10:34 PM
Good night all
 
I'm intrigued by this
 
yeah the extra flags make the byte count larger :9
:(
 
4
Q: Strange behaviour in integral function in MATLAB

bassirI create two functions fx and fy as follows: fx = @(x) ncx2pdf(x, 10, 1); fy = @(y) ncx2pdf(y + 25, 10, 10); Then, I define fs function as follows: shift = 0 fs = @(s) fx(s) .* fy(shift - s) Note that fs is always positive (product of two probability density function). If I compute: integr...

 
@AndrasDeak take care!
 
cya Andras!
 
10:35 PM
@AndrasDeak G'night!
integral doesn't have m-code (other than a wrapper), so you can't see what it's doing
 
@LuisMendo Getting you off-topic, but one more thing NumpY - One-liners are very easily do-able because of the concept of view, that works without making copies.
 
One day I have to learn Py/Np
Was it hard for you? Coming from Matlab, I mean
 
@LuisMendo - That's true.
Yes... List comprehensions are awesome.
 
Nope, just followed that Numpy for MATLAB users manual/tutorial thing
 
Yup. That guide should be good enough to start.
A lot of it I learned on the go
 
10:41 PM
Funny thing is I still dont know much about list comprehensions, nothing about zipping and dictionaries :)
all I do on Numpy - Broadcasting! :)
 
Which guide? Not that I'll start right away, but...
I can believe that, hahaha
 
Thanks!
 
That's the more comprehensive version
 
viridis colormap FTW!!!
Now I'm really off:D
 
10:43 PM
@AndrasDeak Go to bed!!!!!
 
LOL
yeah go to bed!
 
:-)
 
OK moms.
 
@LuisMendo - The second link is what I used instead.
 
on some chester!
 
10:43 PM
It's a quick checklist of MATLAB and NumPy equivalent commands
first column on the left is MATLAB, second column NumPy, third are some additional notes / caveats in case.
Also, the easiest way to get Python installed is to use the Anaconda Package from Continuum Analytics.
It has all of the necessary data analysis, data processing and other packages all in one consolidated install.
This includes NumPy/SciPy
 
very easy user interface
 
Yes that's a very good one.
 
it has an interface for something called ipython.
 
Anaconda and Spyder go very well together
IPython is very very nice.
It's basically the command line that Octave gives you more or less... but on overdrive.
 
On it, you have workspace, just like MATLAB. Do whos like MATLAB.
well, I must head back now, so have fun guys!
and dont forget to bsxfun! ;)
 
10:54 PM
take care! I gotta get going too
@Divakar - Did you see the room topic? :)
 
yup!!
thanks :)
its fun!
Well, I will see you laters!
 
Sorry, I'm back
Bye, @Divakar!
And bye @rayryeng!
I should probably go to sleep too
 
Yes you should Luis!
Take care.
 
:-)
 

« first day (75 days earlier)      last day (3147 days later) »