« first day (145 days earlier)      last day (3090 days later) » 

12:15 AM
Here's another one for @Adriaan:
17
Q: Would it be possible for a planet to form so it has all of the landmass in only one hemisphere?

MalandyWould it be possible for a planet to form so it has all of the landmass in only one hemisphere? By landmass, I mean all landmass that is above sea level. And human-habitability is encouraged...

 
Yeah I've read that one
pretty silly question, actually
good night, @beaker
 
12:38 AM
good night @AndrasDeak
 
 
8 hours later…
8:16 AM
Hi @AnderBiguri and @TroyHaskin
 
8:32 AM
@beaker Question is cool, but that most upvoted answer... Which idiot would support a Francocentric globe? They are too full of themselves as is, let's not give them more things to brag about
@AndrasDeak I got my "cheaters-badge" as you aptly said I'd name it :P
 
9:05 AM
Hi @Adriaan
 
Hej @BillBokeey
 
Were you there on friday @Adriaan
 
What Friday and where?
 
Here on this chat and last friday ^^
 
not much, have been away for the weekend
 
9:08 AM
Okay. Excaza and I developped a cool stuff that could interest you, here's the link :
3
A: Customizing data tips in editor

excazaWith a slight tweak and some modifications to the calling function you can also utilize @BillBokeey's answer without any external dependencies. By placing a structure array in the same workspace as the variable you are previewing, you can store a string in a field with the same name as your varia...

 
@BillBokeey is cool, but I never use those :P
 
Hehe :)
 
I do not need to debug, since I refuse to make mistakes
(only a typo every now and then)
 
That was a very nice non-procrastinating friday ^^
Yeah it's more for the non-fluent Matlab speakers like me
 
 
1 hour later…
10:12 AM
Hi all!
 
Hi @Dev-iL
 
10:27 AM
I need some advice... Trying to convert a matrix of chars into a vector of doubles (each line looks like this: ` 2260.018900`, including the space at the beginning).
What I'm currently doing is `cellfun(@str2double,cellstr(myMat));` but this seems somewhat inefficient..... Any other suggestions?
sscanf?
 
10:53 AM
@Dev-iL str2num is surprisingly versatile
try str2num(myMat):)
@BillBokeey I think it's more related to "those who have to make sense of other people's shitty code"
 
@AndrasDeak didn't we agree to never use eval? :P
 
yes?
 
str2num == eval
 
shit it isn't
 
says so in the docs
 
10:59 AM
too bad
 
>**Note** str2num uses the eval function to convert the input argument. Side effects can occur if the string contains calls to functions. Using str2double can avoid some of these side effects.
 
than keep fretting with unsuitable solutions:P
str2double(mat2cell(myMat,ones(1,size(myMat,1)),size(myMat,2)))
there, you picky old ninny
 
wth is this? :D
(let me "benchmark")
 
it's actually your original solution just using str2double as it should be, without a cellfun:P
str2double(cellstr(myMat))
whichever is faster
 
runtime-wise:
str2num < cellfun(@(c)sscanf( < str2double(mat2cell( ...
It is truly a cruel world, if eval prevails....
 
11:05 AM
Well, I advised str2num for a reason:P
 
heh ok then I'll join you in the dark side :)
tnx
 
no prob
(I didn't know it used eval, but I'd still use it. It should still be safer than eval.)
 
11:39 AM
@StewieGriffin - Well then we should expand it to something like [builtin, clear, eval, feval, str2func] = deal(@(varargin)false);
In R2014b you can do feval('clear') to fix it. Or: s=str2func('clear'); s(). — Stewie Griffin Nov 8 at 16:50
Better yet, put it in someone's startup.m ;)
@AndrasDeak - you will be happy to know that str2num('[builtin, clear, eval, feval, str2func] = deal(@(varargin)false);') doesn't break your MATLAB, so it's a bit safer than eval after all :)
 
Hi again all
How is the optimization going @Dev-iL ?
 
@Dev-iL thanks, that's what I expected:)
Hi @BillBokeey
 
@BillBokeey it isn't really, I ended up going with str2num and rearranging the code so that this piece runs on a smaller vector than the original
 
Do you import the datas from some weird files?
 
11:56 AM
yep...
 
The struggle :/
Would preprocessing the files be an option? I believe C can rearrange your strings pretty fast (i.e. remove blank spaces and change dots to comas)
 
a) This script *is* the preprocessing :D
b) I need the output to be the same format as the input, only with less lines
also, why on earth would I change dots to commas?
 
Oh lol it's the other way around (sorry)
 
@Dev-iL because there are some people (not calling names here) that use commas instead of dots as a decimal separator.
 
@Adriaan Fortunately, computers don't work like that ;)
 
12:03 PM
@Dev-iL Netherlands does it as well, officially. So Excel on the university computers rolls with the comma as default decimal separator. Bloody irritant
 
@Adriaan To me that would just look like a broken CSV import....
 
@Dev-iL well, when hand-writing stuff it's handy, since dots tend to be overlooked, whilst a comma would not
 
@Dev-iL how complicated is the filtering process? You might be way better off with sed/awk/grep:P
 
@AndrasDeak - some external data structure that needs to be filtered with different logic based on different columns... A complex processing seems unavoidable
 
Or perl if it gets very messy, but I haven't used that for ~15 years
 
12:11 PM
@AndrasDeak You're old. And Nerd.
 
@Dev-iL awk is column-based by nature
 
(remove lines where the data in column 1 a<val<b || where column2 ==2 || where column 3 ~= {3,4})
 
but it also processes each line separately, so if you have to do non-local stuff, it can be hard
haha
that's right up the alley of awk:)
 
I might as well convert it to SQL and query it :P
@AndrasDeak Do you know the joke about the programmer who wanted to make tea?
 
awk -v a=$a -v b=$b '!((a<$1 && $1<b) || ($2==2) || ($3!=3 && $3!=4)){print $0;}' or something like this, if you're seriously considering this option then give me 10 lines of dummy input and expected output:)
@Dev-iL I don't think so
are columns separated by whitespace, or comma?
 
12:16 PM
they aren't separated by anything.... I need to parse it from longer strings (e.g. textscan(fid,['%2c' '%1u' '%1c' '%11f' '%145c'],....,'delimiter', ''))
 
seriously? this is disgusting:D
 
That's how physicists chose to save it!!!
 
ascii with no separators?
 
Yeah... that's kinda like working with binary files
 
ewww
Hi @excaza
 
12:18 PM
@Dev-iL with the exception of huge files
ascii is meant to be readable
binary to be efficient
this is grasping the worst of both worlds
 
@Dev-iL can't you cast directly your doubles as doubles if you remove the whitespaces?
 
@AndrasDeak - so you would suggest reading the file using the known parsing, save it back as CSV, awk, grep to remove commas?
 
@Dev-iL not necessarily, I think it could be done in a single pipeline
preproc to add whitespace -> awk -> print without whitespace
 
@BillBokeey - I cannot guarantee that the first character is always a space
 
for instance, in the awk script you can say $print $1,$2,$3,$4,$5; instead of print $0; and -- voila -- no white space on output;)
 
12:22 PM
@AndrasDeak - the trouble is that every line has multiple whitespaces as it is
 
@Dev-iL ah, I see. Signed numbers
That's still OK, there's printf in awk, works as expected
 
not necessarily signed... just reseved space
 
@Dev-iL you mean empty fields?
no number in one of the columns?
 
sometime you will have XXXXX.YYYYY and sometimes XXXX.YYYYY
 
@Dev-iL I see. Yeah, then it would probably be prudent to convert to a csv-like format first, at least if you want to use awk. Then you can tell awk to expect a comma between columns...
I hate fixed-format files
I'm sure these colleagues learned to program in fortran77 and haven't moved since
 
12:27 PM
Not colleagues lol... it's pretty much the standard for spectroscopic databases
 
colleagues to me:P
 
@AndrasDeak You were old when Fortran77 was introduced weren't you?
 
Nah, some things pre-date me:P
 
@AndrasDeak Pyramids? Dinosaurs?
 
How do I remove a column (element) from a row vector of cells?
Can't take the shortcut of assigning [] :)
 
12:33 PM
@Dev-iL why not?
 
mycell = mycell(1:a-1, a+1:end) ?
 
oh, I see
@Dev-iL that should work
 
@AndrasDeak I wonder if this has some strange overhead
 
mycell(i)=[] seems to work, with the usual parentheses
not the curly braces
 
oh right
 
12:37 PM
Hey all, just a quick question regarding licenses. I just answered this question and was wondering how to go about 'citing' files from other people that can no longer be retrieved from the official sources. You can still find the function I am talking about on github etc. but not from the author, what's the policy here? Thanks for any thoughts...
 
@lhcgeneva refer to Github + Original author's name
 
1:19 PM
Any of you guys on their uni network and can check if they have access to the following article?
http://link.springer.com/article/10.1007/s12541-012-0163-7
 
1:32 PM
@Dev-iL I don't
 
@Dev-iL today is your lucky day:P
 
lol that's not for me but a guy from my lab
 
oh, then no I don't:D
 
haha ok, I'll tell him he has to manage
 
Hey @Dev-iL , Do you have whitespaces only on supposed double fileds in your file? You could first replace whitespaces with zeros and then import directly as double if it's the case
 
1:35 PM
@BillBokeey Can't tell you that this is a valid assumption
 
Okay, I don't have any more ideas then ^^
 
I'm afraid whitspaces have meaning in some cases (the fact that there's no info there, that is... "0" would be considered info)
@AndrasDeak It must be really handy that you guys have access to the strangest journals :P
 
Yeah, but 020 would still be imported as 20 right?
 
@Dev-iL we usually don't, I was very surprised to have acess
I usually need mainstream APS journals, and sometimes even those are out of our reach...
 
@BillBokeey from my tests: if you try to import "021" as '%2f' it would give you 21 instead of 2 + "1 extra char"
which is why you must str2double(%2c)
sorry, I meant ` 21` not 021
delete
 
1:42 PM
thanks
 
u2
 
no prob:)
 
@AndrasDeak looks like you have a bday soon, nice!
 
Yeah, it would seem:)
My girlfriend's uncle has just been to Eilat on vacation, brought back a box of halva. My girlfriend loves it, too bad I can't stand it:D
 
hehe.. Turns out that Russians consider "sunflower halva" a delicacy... This I can't stand...
 
1:56 PM
Yeah, I've tasted the sunflower version and didn't like it
 
(the "normal" sesame halva is the only form of sesame I find acceptable)
 
but I smelled the sesame version and liked it even less:P
But I do hate sesame seeds, so no surprises there
 
@AndrasDeak heehee :D
 
posted on November 23, 2015 by Loren Shure

Today's guest blogger is Matt Tearle, who works on our MATLAB training materials here at MathWorks. Originally from New Zealand, Matt was delighted with the All Blacks' recent victory at the 2015 Rugby World Cup. What better way to celebrate than to analyze the results with MATLAB?... read more >>

 
What a scam this ^ post is... "Surely I should be able to do better than 27/48 correct predictions. But how?"
 
2:14 PM
not really any different than the barrage of internet posts accompanying march madness every year
 
If anything, people may enjoy the book "the signal and the noise"
 
3:00 PM
@rayryeng @LuisMendo new code golf: stackoverflow.com/questions/33873593/…
 
3:26 PM
@Ballbreaker long time no see, whats up?
+'
 
@AndrasDeak Hey man! Not much, was sick on Friday so I took the day off
needed to recover..
Havin' an unlucky day today so far, but keeping my spirits as high as I can considering lol
How about you man?
 
3:43 PM
I'm fine, thanks for asking:) I'm sorry to hear your shitty day and sickness...
belated "get well soon";)
 
3:56 PM
@AndrasDeak That's good man! and thanks :) I feel better now though, it was just last week with the strrep
 
4:08 PM
@Ballbreaker you're not feeling well, thus you start drinking liquor? :P
 
Haha different kinds of spirits
 
5:07 PM
posted on November 23, 2015 by Cleve Moler

SC15, the International Conference for High Performance Computing, Networking, Storage and Analysis, was held in Austin, Texas, last week, November 15 through 20. This is the largest trade show and conference that MathWorks participates in each year.... read more >>

 
 
2 hours later…
6:47 PM
@excaza Hm... it's been put on hold
 
6:59 PM
@LuisMendo ...and the OP doesn't have Matlab? o_0
 
7:26 PM
-3
Q: Matlab : Help in implementing an encoding for realizing a mapping function

SKMAn example : Consider the unimodal logistic map : x[n+1] = 4*x[n](1-x[n]). The map can be used to generate +1/-1 symbols using the technique: s = (2 * (x > 0.5)-1) + j * (2 * (x > 0.5)-1); % 0 (maps to)---> -1; 1 ---> +1 I want to extend the above concept using the map f(x) for 3 levels, each ...

This question... He posted it, edited it, deleted it, reopend after four days, edited it, bountied it, and finally deleted 90% of the content
 
that's a completely different question
 
@beaker it's also his sixth or so about QAM in under a month. First one was 22 May, which was certainly solid, everything since is borderline Too Broad
 
8:37 PM
oops, just edited a MATLAB gold-badger's answer. It was horrible English, bloke's aptly named "Yuk"
 
@Adriaan Why would you edit grammar in an answer?
On a post from 2010?
you can't be serious
 
was it 2010? No idea. It did pop up on either the homepage or bounties I guess
 
yeah, bumped to front page by retagging
still, do consider not editing answers
 
ah, I see. Brian Thompset is editing like a maniac on all kinds of old posts, that must've put that post on my path. I thought it a good answer, just horrible in English, that's why I edited.
 
at least try to post a comment first
they're burninating , which sounds logical
meaningless tag
 
8:43 PM
@AndrasDeak "Dear Yuk, your username is very aptly chosen with regards to your English. Would you mind me fixing the grammar and formatting for you?"
 
You can try to make it sound like it's not, but regardless editing answers is in a way different asshole-league than editing questions
And I'd rather not disclose my opinion about grammar-only edits on answers.
 
@AndrasDeak I did everything. Grammar, code formatting, error formatting
now the post is readable and understandable
 
hm
No, I checked the original and it's not disastrous
sloppy, but not disastrous
and more like a comment than an answer, but not disastrous
and it did solve OP's error
You're of course free to do whatever you can with your privileges, but I'd be immensely pissed seeing such an edit to one of my answers.
 
43 seconds after posting a question is closed. Must be a record.
@AndrasDeak I am all right with edits to my posts, as long as they actually improve things. This is clearly an improvement over the original, so I would not be concerned if it were my post.
 
That's why I was trying to tell you that you should consider other points of view:P
 
8:51 PM
@AndrasDeak I'm rather sure that if I ask on meta most people will agree with me that this was a beneficial edit. But, to ask about your point of view, if you'd write a post with very sloppy (and I think generally bad because of the lack of skill in the language) English and someone corrects it, you'd roll it back and be pissed?
 
@Adriaan Nope. I'd just be pissed. And leave a comment pinging the editor that they should've had the courtesy to let me know that my post sucks balls and that I should improve it
And sure, it's perfectly SO-compatible to edit the posts of others
That doesn't mean it's right
And also, bunch of old posts are off-topic, yet you can't get rid of them, even though the rules of SO would imply that
 
This is a problem which is fixed very easily by me, but might be problematic for the original author to fix (though in this case he might have well improved his English over the past 5 years living in America). I'd much rather spend the two minutes myself and make a useful answer better in terms of grammar and formatting, which is beneficial to the author as well, since he'd be more likely to get upvoted because of it.
I guess we won't be agreeing on this any time soon, so I suggest letting the issue rest ;)
 
agreed
 
@TroyHaskin but, but :(
I fixed that bloke's post in 2 minutes and decided András is not the best discussion partner on ethics (sorry buddy) within a couple of minutes as well :P
 
9:02 PM
@Adriaan And that's fine. I'm actually pleased when people can agree to disagree.
But it reminded me of the comic nonetheless.
 
yea, it's very apt
Check this post, I like it:
49
Q: What can we do about FGITW answers that dump out garbage, and then plagiarize existing duplicates?

TigerhawkT3I just had the misfortune of trying to make SO a little better by tidying up this question with my dupehammer. It was a clear duplicate - the OP states that they want the "total of all characters" without having to get the count of each character and manually add them all up. Note that such a bas...

 
9:17 PM
@Adriaan I'm gonna finally show a proper inhomogeneous ODE to my physicists on Wednesday
driven dissipative oscillators
 
@AndrasDeak Oh boy. Call the paramedics to be in the room
 
@AndrasDeak Make sure its one where Undetermined Coefficients won't work. maniacal cackle
*it's
 
@TroyHaskin haha, I wish:D
I don't make up the exercises:(
 
That's disappointing. When I tutored ODEs, I always loved throwing up a right-hand side of 1/x^3 and asking them if they could solve it ... before they learned Variation of Parameters.
I called it "motivation".
 
@TroyHaskin Oh, sure. But I'm teaching "experimental physics 1" for first-year physicists:)
They're not supposed to solve ODEs
 
9:26 PM
@AndrasDeak Ah. Understood.
 
@AndrasDeak Because ODEs are easy, you leave those to your subordinates. PDEs now, that's where the fun starts!
I handed in my 8 pages of LaTeX today, but you'll be mad at me @AndrasDeak; I had to hand-draw the graphs, since I suck balls at TiKz
 
@Adriaan ah, should've told me in time:P
 
@Adriaan That's why this exists: matlab2tikz.
 
@AndrasDeak I can still send you the TeX, just not the graphs. They're quite easy though, one's just a circle partitioned in 6 with some angles drawn, the other a time-decaying Gaussian
@TroyHaskin crap, he's been updating that for 7 years. Good work
 
@Adriaan It's a extremely good utility.
 
9:31 PM
@TroyHaskin until you learn matplotlib;)
 
Where do I store it to be on the default MATLAB path? Somewhere in C:\Program Files\MATLAB\MATLAB Production Server\R2015a I guess, but which folder?
 
@Adriaan tikz is hard for function graphs, pgfplots kicks ass
@Adriaan add wherever it is to your path
addpath DIRNAME
 
@AndrasDeak but how :P
 
help addpath
dummy:P
 
@AndrasDeak :(
 
9:32 PM
@AndrasDeak Python is on the docket.
@Adriaan Yeah. Anywhere you want to put it. I have it in `C:\Matlab\Libraries`.
 
@TroyHaskin does that idiom mean that you're planning to learn it?
 
@AndrasDeak Indeed.
 
Cool, thanks:) I've started learning numpy/matplotlib not so long ago, and it's awesoooome
almost as pretty as pgfplots by hand with the fraction of the work, with in-situ data processing
 
@AndrasDeak Is it almost as pretty as I am?
 
9:47 PM
@Ballbreaker Almost, but it's missing the hipster moustache
 
@AndrasDeak pgfplots or @Ballbreaker?
 
the former
 
10:05 PM
@AndrasDeak I'm also missing the hipster moustache
 
@Ballbreaker your avatar isn't:P
 
@AndrasDeak Yeah, that avatar is my inner self
It holds my conscience
 
@Ballbreaker hard on the outside, soft and delicious on the inside?
 
@Ballbreaker I've heard lobster is the best medicine
 
10:18 PM
@Adriaan lmao
@Adriaan Maybe I'm just a teddy bear on the inside of my insides
@AndrasDeak My gaming handle used to be "Lobster Cock" , so yeah I can agree with that statement..
 
@Ballbreaker but those are soft on the inside and the outside
 
@Adriaan nuh-uh, lobsters don't have cocks
 
@AndrasDeak click on arrows, I referred to the teddy bear :(
 
Less funny that way:P
 
@AndrasDeak I suspect @Ballbreaker's is either non-existent or so small no-one can find it :P
 
10:28 PM
Too late, it found you.
God damn it, I'm ocean's eleven-ing this two-timing business right now, I do not feel good about myself lol
 
@Ballbreaker if you feel bad: you're the only person in a position to change the situation:P
 
@Ballbreaker or you can send it to @AndrasDeak disguised as a PDE. Then you'll get a worked out answer within a day :D
 
^ Hmmm, tempting
@AndrasDeak Basically I be heartless and relentless, and end things with my ex for good, or I tell Dom about my ex, or I just juggle both until it blows up in my face like every other man would do
Depends if I want to rip the bandaid off, or figure out if there's a better way to do it (there isn't)
 
@Ballbreaker Ooor. Thinking extemely outside the box: what's least crappy for the gals?:P
Gotta go right now
But I assume you can only end up with a maximum number of 1 lady
so you should choose which one you prefer, and stick with that
or you'll end up with zero with an uncomfortably high probability
good night:)
 
10:45 PM
I reckon they'll both be gone if you tell them, but it might be best anyway. Try and get a new lass somewhere and try to stick with one
 
I gotta go too, I'll answer tomorrow man!!
 

« first day (145 days earlier)      last day (3090 days later) »