« first day (839 days earlier)      last day (2372 days later) » 

12:02 AM
@AndrasDeak it works perfectly fine in matlab. I have no idea why its insane or in what use case it works badly for you. — Charlie Parker 15 secs ago
I don't know what I expected
 
:D
doesn't Python have an eval analogue?
 
it's called eval
well, MATLAB's eval is python's exec, but whatever
 
well he tried exec and it apparently didn't work, so I guess that's out
 
Python eval only evaluates expressions (so no assignments etc) but you can erase your harddrive with an expression stackoverflow.com/a/37081082/5067311
he's being what their question sounds like
 
I love Steve Lott's answer
 
12:05 AM
both locals() and exec could create their variables, they're probably trying to use those variables in other functions
I should tell him to use globals() :|
lol, they pinged me again
 
@AndrasDeak maybe my main issue is why it looks so trivial to me in maltab but then in python I get yelled at and its seems nearly impossible (even though it doesn't seem to be equivalent to the halting problem at all to me). Maybe someone can tell me why the discrepancy in the two languages? I guess I genuinely don't get it. — Charlie Parker 30 secs ago
Python is trying to keep you from doing something stupid, and MATLAB just lets you do it
:)
 
@CharlieParker you just weren't asking about dynamic variable names in the MATLAB tag; we yell at people all the time. See for instance stackoverflow.com/search?q=user%3A5067311+eval and these are just my posts; I comment way more in the subject. — Andras Deak 13 secs ago
actually python lets you do it too, but you need to be a bit more than a nincompoop
it's the same amount of bad practice in both languages
 
I hope someone screencaps the entire conversation before it gets nuked
 
hehe :D
yeah, comment flags are crazy nowadays
last attempt:
I'm not sure I understand your previous comment, nor your question above. But anyway: it seems to me that your issue stems from the fact that you have var1, var2, var3 etc in MATLAB and want to have var1, var2, var3 etc in python. This is bad, even if you're using just one language: whenever you do something with your data you either type out all the variable names, or you try to use eval (*shudder*). The sane data model is to use a collection in both languages: typically a struct in MATLAB and a dict in python. Then you map alldat.('var1') to alldat['var1']. — Andras Deak 11 secs ago
expected response: "yeah well I just want it to work in python 3, why is that so hard?"
 
Why is Python 3 not MATLAB?
 
12:17 AM
runner-up expected response: "this used to work in python 2, I'm switching back"
 
This is the greatest comment thread I've read in years.
 
Isn't there a package to load MAT files?
 
scipy.io
How does locals help with that? Anyway, scipy seems to have solved that issue for you: docs.scipy.org/doc/scipy-0.19.0/reference/generated/…juanpa.arrivillaga 27 mins ago
 
So the OP's too lazy to load the MAT correctly and do things correctly?
 
12:22 AM
no, it loads stuff into a dict
 
Exactly. Correctly.
 
OP wants the contents to become top-level variables instead
"just like load in MATLAB", which sucks
 
Exactly. Not correctly.
 
yes, but "it should just work" :P
 
Talking in circles will obviously lead somewhere new.
 
12:24 AM
MATLAB should only support this behaviour for a single variable to be loaded. It would do wonders to the plague of eval.
 
True.
 
"You're asking for more than one variable to be loaded? Here's this nice struct"
FWIW dynamic struct fields are probably somewhat obscure, which repels a bunch of potential users
 
Also, load-ing can create weird situations if you're not careful. But I'm sure the OP is too good at MATLAB for ever have that happen.
 
that's really the key to the struct path
 
yeah but he has full control over everything so it's not an issue
 
12:25 AM
@AndrasDeak Yes. Very under-used, but very powerful.
Also works for methods and properties in classes.
> then detect the variable names and actually write out the real script I want to run by declaring empty variables and then populating the with the exec and then it would work. At the end just delete the dummy python script.
Hahahahaha.
Yeah. That's easier.
 
@TroyHaskin talk about Principle of Least Astonishment
welp, OP's been silent for ~15 minutes, time to call it a day :)
I'll check my 5 replies tomorrow
 
Cool. Be well, sir.
 
Buenos nachos
 
good night
 
:)
 
12:29 AM
yeah, that :D
I'm getting up in <6 hours
 
 
2 hours later…
2:55 AM
maybe we can put this question to a true rest by having somewhere clearly explained why dynamically allocated variables is so bad. Here is a placeholder for such an answer rather than have it distributed among 10 questions: quora.com/unanswered/…Charlie Parker 1 hour ago
lol
 
 
5 hours later…
7:26 AM
@excaza Judging by thequora post, OP either left it unclear on purpose or completely missed the point of the problem. The problem isn't "allocating memory during runtime", it's creating variables whose names are generated dynamically during runtime. Is this even possible in compiled languages...?
 
 
2 hours later…
9:01 AM
I don't think so
Unless compiled on the fly, like matlab and python
I could further explain to OP but let's face it: he doesn't want to do it right
 
 
2 hours later…
10:53 AM
hello all
 
Hi there
 
and how are you
 
TIRED OF THIS DAMN THING I WANT TO GRADUATE AAAAAAAAAAAGHHHH
good, im good
how about you
 
haha, I'm good
just playing with some neural net models
I've only ever worked with basic datasets in uni but now I have a dataset where 1 person has multiple records, wondering how to model it
 
oh neat
what types of NNs are you looking at?
(I know very little of the field)
 
10:59 AM
For the moment just a basic FFnn
 
What are you triying to predict?
 
an medical event Atrial flutter
Not sure you can even effectively model time varying data with ffnn
 
no, that is why cyclic NN where invented , AFAIK
 
Yeah recurrent NN's is what I want
but my boss wants incremental builds lol
from rags to riches.
 
yeah probably. probabilistic graphical models may also work
harder to use though
@Daruchini spend 2h writing why it wont work, and hand it later so you have more time to do the one that works
My supervisor is the same. "try this first". Well, as I am 100% sure it wont work, I do it quick and spend that week actually researching the good one XD
 
11:11 AM
I could sum it up in 5 minutes. He wants me to use basic baseline variables i.e. age, gender, smoking status.... only way I can think of doing it using a feed forward it grouping by patient and taking the latest record
 
@AnderBiguri Cutting lots of balls lately?
 
11:24 AM
just had a chat, he agreed.
 
11:59 AM
@Dev-iL :D
My granddad genuinelly uesd to say that
 
That sentence made me twitch
 
Can anybody rephrase this in a way that the OP could understand?
 
12:40 PM
Woot, I mastered enough bash to create a velocity model and plot it :D
 
Looks like my duvet in the morning
 
For some reason my server has set my keyboard layout to "us", so now my @ and " are switched, my backslash is on shift-3, and my # and | are gone completely.
Anyone know where they went in the "us" keyboard layout? (So not us-international with deadkeys, which is what I'm using outside the server, hence I can post them here)
 
that's not "us" I think
try alt+stuff?
 
@AndrasDeak I'll look into that
I just pressed shift and all keys to see what I had where
alt+stuff is not working anywhere
my pipe/backslash key isn't working at all either
I'm using copy-paste for all hashtags and pipes atm :P
 
12:57 PM
you can use vim digraphs...
nevermind, those don't include basic ascii
 
@AndrasDeak one of my colleagues tried coding FORTRAN, and he even had to copy the double quotes from another document in vim...
 
lol.
if it's otherwise qwerty then this makes no sense
contact the admins
 
I might
at least I can access data, and see data. That alone has taken me 6 weeks :p
Now I can actually start to work
 
 
1 hour later…
2:11 PM
I am now mentally preparing for when I need to defeat the snake, in the thesis viva: mcsweeneys.net/articles/…
It's good someone made a FAQ
 
@AnderBiguri Does this mean the mongoose is the most highly-educated mammal?
 
It may be! However the FAQ suggests that you also need to defend a thesis
that the snake fight is only part of teh defense
Yo should know, you defeated one
 
Guys, what's the meaning of the "inequality" symbol above? >~ ?
 
@AnderBiguri I had to reschedule my defense because I had trouble finishing the final chapter of my thesis, so they made me fight this one:
 
Damn
thats one of the hard ones
@gnovice I am literally in this situation :S
Thanks for the heads up, I now know what to expect
 
2:26 PM
@AnderBiguri It happens to a lot of people. It's easy to underestimate the amount of time it takes to write your thesis.
 
Somewhere along the way I also decided to delete all the results I had for it
because why not
I have finally recomputed all, but it took time
 
@AnderBiguri Oh, so IT guys couldn't undelete it?
 
@Dev-iL I'm guessing "greater than or approximately equal to".
 
Aparently .mat files are not very well saved
 
So, I told my supervisor I'm on holiday to Brugge next week, Monday to Thursday, and what does he say: "My parents (from India) are in the country, we're going Friday-Sunday to Brugge" >.<
 
2:29 PM
@gnovice I am puzzled as to the meaning of "approximately equal to" when the input is always an integer
 
I recover most things, but absolutely all .mat files where lost (0 bytes)
@Adriaan LETS DO WORK TOGETHER! :P
 
@AnderBiguri well, so he leaves the day before I arrive :p
I told him to scout the bars
 
@Dev-iL Yeah, it seems like it should just be a normal greater than or equal to.
 
@gnovice Yes, but then why go through all the trouble of typing this newly-invented symbol, if it's just a mistake? o_0
 
@Dev-iL Looks like Latex has a similar one already:
5
Q: Is there a "greater than about" symbol?

foobarbecueTo indicate approximate equality, one can use ≃, ≅, ~, ♎, or ≒. I need to indicate an approximate inequality. Specifically, I know A is greater than a quantity of approximately B. Is there a way to succinctly express this mathematically?

 
2:36 PM
@gnovice iirc there's one with only a single, slanted wiggle below the < or > as well
 
Yeah I don't understand most of these ^
 
@SardarUsama András wrote a semi-related meta on editing on hold questions last month:
3
A: May we have a way to edit a closed question without bumping it into the review queue?

Andras DeakAs I recently expressed in the comment thread of a now-deleted question, I believe we should be somewhat conservative when editing closed posts until this feature is implemented (and this answer is mostly intended to contrast with hichris123's answer). I agree that editing old closed posts is ha...

 
I bet some of those symbols are just some cave drawings
 
@Dev-iL I don't need many of those :p
 
I have no iea in which case to use 95% of those
\eqcirc ? wtf
 
2:43 PM
@AnderBiguri It's for passports
 
@AnderBiguri looks like the logo of some train company (I forgot which one)
 
@Dev-iL It took me 10 seconds, I must admit
 
Isn't \nleq the same as >?
 
@gnovice I think it has emphasis on the not of the possible equality
 
yes, but if you are a metematician you need to obscure your theorems as much as you can, else engineers may understand what you do
 
2:45 PM
I'd probably use \cancel{\leq} :p
 
@AnderBiguri Well, we can't have engineers understanding things.
Think of all the trouble they would cause.
 
@gnovice Tries to silently communicate I'll be an official engineer in a year
 
@Adriaan thanks . This is why I asked that btw
 
They may use the maths for practical applications, UNACCEPTABLE
 
@SardarUsama rejected the edit. Do rephrase that comment though to say "Only edit on-hold questions if you can make them worthy of reopening" or something along those lines though
 
2:48 PM
@Adriaan One of us, one of us, one of us...
 
@gnovice in a good while :p
 
@ballBreaker Oooh, saw that but hadn't listened yet.
 
@Adriaan done, thanks
 
@gnovice It's pretty good, interestingly enough has kind of a puscifer sound to it though, can't tell if that's just because of Maynards style changed or not
 
2:50 PM
@ballBreaker neat
 
@ballBreaker comes along and destroys all the science/engineering/LaTeX talk with random titbits :p
 
Oh u guy's doin da science stuf
herp da derp my bad
Was just a lil excited
 
TB + kinda repost (of another unclear) stackoverflow.com/questions/46781559
 
@Dev-iL no whitespace
 
My browser is stuck
 
2:54 PM
@Dev-iL just in case if someone has missed "anonymous"
 
@SardarUsama I don't follow...
 
@Dev-iL blègh, no roomba due to the answer. Not even the 30 day one. Sucks
@SardarUsama are you piping the SOCVR user script into this room?
I've seen that dude before... then he also made shitty questions and @Dev-iL said he misspelled his name
 
yes.. and no. .
except no.
so to sum up , yeah
 
What is the significance of that user? I still don't see it... Is it a reincarnation of Masi?
 
@Dev-iL No, I remember him posting crappy questions before and you said his name wasn't properly spelled or something
at least 9 answers between 17 and 19 Feb this year, most downvoted. I can see why we discussed him...
 
3:10 PM
I see
 
oh, it were answers he posted like crazy. That makes so much more sense why we mentioned him here
lots of people dumping steady streams of poo questions here, not many dump lots of poo answers in short time
 
This user posted 3 Q&A with the same title on the same day :O oh, nvm, missed the different word
What happened to posting Q&A that others actually care about...?
 
@ballBreaker Somehow I missed the new stuff from NIN a couple months back:
Good as always
 
@gnovice is this related to the latex talk from before
 
@gnovice can't watch here
I'll stick to this:
(I was there)
 
3:21 PM
@Adriaan Must've been fun!
@Adriaan is it easier for Dutch speakers to understand (standard) German, or vice versa?
 
@Dev-iL well, all Dutch get taught (some amount of) German in comprehensive school, and we all speak proper English. Germans on the other hand get taught no Dutch whatsoever, and often are rather bad at English. So we understand German rather easily (finesse is often lost though), but not the other way around
I can bluff my way through Germany with my knowledge of German + Dutch pronounced as if it were German
 
:) Ok
 
3:51 PM
@gnovice Ah this is a great album! I've been waiting for it to be released on Vinyl T_T
That album is definitely a solid listen
 
 
4 hours later…
8:20 PM
bwahaha this is amazing
> I think the first suggestion I’m going to make here is that you should take any criticism from Stack Overflow with a grain of salt. There seems to be a degree of snootiness and ad hoc nepotism at play by which completely ridiculous answers have a tendency to get voted to the top.
@excaza @Troy the quora linked yesterday ^
so much amazing irrelevant content
 
8:46 PM
stackoverflow.com/q/46798878/5211833 as what can we close this? RTFM still is not a valid reason alas
 
@Adriaan I'm sure there's a duplicate with accumarray, sparse, sub2ind, etc.
It's probably even on the old canonical list
 
@beaker I hadn't even realised it's [row, col, value]... Basically he has a concatenated find output
 
 
1 hour later…
10:10 PM
@beaker @Adriaan care for some garbage collection? stackoverflow.com/questions/46735231/…
 
10:25 PM
@AndrasDeak not sure why it's such a bad question... MATLAB does have a zip command ...
 
really?
that's really weird
that makes the answer even worse :D
 
meh... using other tools might make sense depending on your workflow. if you have to break MATLAB to use a new tool and then feed the result back into MATLAB, that probably doesn't make much sense. but if the whole process can be done more easily in another tool, i see no reason not to suggest the easy way :)
then it's just another XY problem
 

« first day (839 days earlier)      last day (2372 days later) »