« first day (1719 days earlier)      last day (3240 days later) » 

user559633
4:00 PM
Cheers. This room is so full of utterly brilliant people that it's so easy to get a taste of what someone is working on and be impressed, but if we had time to reflect and focus, we could perhaps have a threaded conversation on low-boil.
 
I've been working on mastering "The Butcher" on Heroes Of The Storm.
 
self-feedback: needs more comments. KD_Tree is a class, it shouldn't have an underscore. You probably have some unneeded import statements all over. You have commented-out code in main and geometry and animation. create_path could stand to be in its own file.
You forgot to change that one line in main back to make_gif(images, delay=4) after you gave up diagnosing the dot remnant bug mentioned this morning.
 
okay, rhubarb for now.
 
(which is almost certainly ImageMagick's fault, for acting weird when you subprocess.call it)
I'm pretty sure you went over 80 characters per line in a bunch of places.
Rect and Point are reinventing the wheel. pmap is an incomprehensible name. bisect isn't a strictly accurate name because it doesn't split the rect into equal halves. You could change rect.contains(x) to x in rect.
Rect.contains is inconsistent in its use of < and <=.
Ok I'm done.
 
user559633
wow, tough crowd ;)
 
4:06 PM
He's not wrong, though.
 
> I am going to refresh image so speedfully, hoping it seems like streaming.
Terrible, but somehow great, idea
 
user559633
Why cv? Needs "and my issue is?"
 
it's a code dump with no error
 
so speedfully
To be fair, it's a problem that a lot of people hit, I think
 
user559633
It reminds me of how datacenter cameras used to do this -- iframe + refresh
 
4:17 PM
Kimichi, y'all. It's a Python kind of day.
 
Or the infamous coffee pot in the Cambridge computing labs cl.cam.ac.uk/coffee/coffee.html
 
Is there a way to modify class data outside of an instance of that class? Is it just MyClass.stuff = ''?
 
Yes. Did you try it?
 
I did not. I should really just try these things, shouldn't I.
 
Yes.
 
4:29 PM
But it's faster to ask here! :-D that's why we should impose an artificial 15 second delay on answering any question that would take less than fifteen seconds to find out on one's own.
Then each self-interested rational actor has no incentive to drain the communal well of question-answerer-patience.
(I hope it doesn't sound like I'm haranguing Morgan here, because that's not my intention)
 
Yeah, but Tragedy of the Commons. It's in my best interested to use up as much of the communal room patience for stupid questions on my stupid questions. ;)
It just sucks for everyone else.
 
Yeah, you have no idea.
 
Yes, precisely. And my proposed time tax prevents the commons from becoming tragic.
 
@Kevin But I prefer tragedy. Without tragedy there would be no Hamlet.
 
Ok, we can have a little tragedy.
 
4:34 PM
11:00 AM - 12:00 PM: Tragedy Hour.
 
Now let's analyze the game-theoretical consequences of one person defecting and answering an easy question during the artificial time delay. I suspect it looks a lot like the prisoner's dilemma.
 
@Kevin It would be more interesting on the main site, because then you have rep as a factor.
 
Actually I guess it's not as symmetrical as the prisoner's dilemma, because answerers with slower connections have a greater incentive to violate the time delay, since the first answerer gets more warm fuzzies than subsequent answerers and they're not likely to be the first answerer if they abide by the delay.
 
@Kevin speaking of the prisoner's dilema, have you read The Quantum Thief, etc. yet?
 
That sounds really interesting.
 
4:41 PM
@davidism Nah, I haven't started reading anything since "Hard Boiled Wonderland".
I'll probably do Dune next... I could pencil in The Quantum Thief after that.
 
Speaking of Dune, I'm going to float the unpopular idea that I actually really enjoyed the prequels.
 
That is an unpopular idea.
 
SnowCrash!
...
 
Having not actually read Dune yet, I must defer my opinion
Future Kevin can handle it.
 
dune is great ... not as good as snowcrash but meh
 
4:47 PM
@Ffisegydd To be fair, I was ~13 when I read them, but I remember enjoying them.
 
I tried them, got a few chapters in then just said "Narp."
I can testify that Quantum Thief trilogy is very good.
 
I really enjoyed the background on the navigators guild and the spice.
 
Ok, officially penciling in the quantum thief.
 
@Morgan yeah that's why I tried them, I wanted to know the background mythos, but I just said "Narp."
 
It's like when I thought "Hey, I liked the Lord of the Rings books, let's try The Silmarillion." Lasted three pages.
 
4:49 PM
Background mythos, that's what the wiki is for.
 
Fair warning: there are some made up words, I know you don't like them.
 
The Silmarillion, yeah. It's a grind. I don't have that big an appetite for elvish poems and dwarvish creation myths and etc.
 
To be honest, I had no idea what it was before I got it. Probably just wasn't properly prepared, but I have no desire to try again.
 
I can accept a fair amount of fake words if they actually define what they mean during their first use. (whether explicitly or via context)
 
To be fair, The Silmarillion is basically just an encyclopedia.
 
4:50 PM
But if the main character is fighting a giant slor in chapter one, and they don't actually tell you what a slor looks like or is capable of... Narp right outta there.
 
Fake words, I just turn into symbols in my head. I don't even try to pronounce them. It makes it difficult to discuss any fantasy I've ever read, because I don't actually know the names of anyone.
 
I really want more Brandon Sanderson. I need more Mistborn/Wax+Wayne
 
One thing I liked about Hard Boiled Wonderland is, nobody had an actual name. It was just "the professor" or "the general" or "the professor's granddaughter". Saved me a lot of remembering names.
 
HBW was good.
 
That's pretty much how I categorize characters in stories regardless.
 
4:52 PM
@Kevin that's one of the (lack of) details that I really liked too
 
And yet they go into great detail about what the characters eat and read.
I felt a little like the author was saying "here are some things that you, the reader, should eat and read"
 
The weird thing was, I didn't even notice that there were no names until about halfway through.
 
I don't know what umeboshi is, but damn if he didn't make it sound appealing anyway.
 
Oh, in is a reserved word. Ok, infile it is. No, wait... input is better.
 
I use f, or f_in and f_out if I need both at the same time.
 
DSM
4:55 PM
.. function name. :-)
 
I use file because I'm a rebel B-)
 
@davidism And if you're opening a universal file (whatever that might be), then f_u?
 
DSM
Because of my heritage I write fp, and fp_in/fp_out.
 
Ah, I miss the days of FILE * fp;. Come to think of it, no I don't.
 
What is that? FORTRAN?
 
4:59 PM
difference engine punch cards? Jacquard loom pattern templates?
 
It's declaring a file pointer in C. Probably not right--it's been a long time.
 
DSM
Yep, C.
 
user559633
Si, C
 
       WRITE(2, 10)
   10  FORMAT('HELLO, WORLD')
 
Pssh. FORTRAN > C :P
 
5:03 PM
I have no idea why it won't line the columns up right. Sometimes the chat editor baffles me.
That was the first language I ever wrote anything in. You don't forget your first.
 
VB 6, that salty so-and-so...
 
5:32 PM
Bah, there's an error in my FORTRAN hello world: there needs to be a space before the "H". Oh, well.
 
@WayneConrad Silly whitespace delimited languages. Who would ever use such a silly syntax.
 
The actual problem is that the first space of the string literal isn't being printed--it's carriage control. It should be a space for "just print this on a line", a "1" for "start a new page," or a "0" for "overprint the previous line." I have no idea what "H" will do... probably Halt and Catch Fire.
 
@WayneConrad Thats... Really weird.
 
@MorganThrapp That's FORTRAN in a nutshell. "Really weird."
 
@WayneConrad FORTRAN is a little before my time, so I've never actually used it.
 
5:37 PM
It was nearly before my time, too.
 
Wow. It was first released in 1957.
So, yeah, 37 years before my time. ;)
 
I got my first programming job doing FORTRAN in... about '78, I think. It was still pretty mainstream, but microcomputers were about to kick some minicomputer behind.
 
I would've been -16 at the time.
 
It might have been hard for you to reach the keyboard on the key punch at that age.
 
Possibly.
 
5:45 PM
Jeeze Wayne, you're old
 
FORTRAN 95 was the first language I learned.
 
@Dracunos Yeah, I'm pretty much a troglodyte.
 
cbg
 
Charming.
 
@Ffisegydd That's pretty cool. What did you learn from it?
 
5:49 PM
Patience. New and inventive ways to break linux. That capital letters are cool.
 
@Ffisegydd New and inventive ways to break linux. So, using it? ;)
 
Here's a question and some background, looking for whatever comes. I'm looking to write a SaaS type application with a python backend. I want to support multiple front ends (iOS, Android, browser) to use it. As such I'm trying to just design the backend as an API - you send a message to the API, the listener catches it, throws it into a thread to be processed, and spits back a message to you.

Now, at work we have something kind of like this (and is what inspired it). We have a middleware program that talks to a bunch of these devices running python. The way they talk is like so:
 
I remember my friend Karl once writing some code, nothing strange just meant to do some analysis, that was so borked up that we had to go get our IT admin to log on and kill the process.
As it had ground our shared server to a halt.
 
@Ffisegydd Heh. Maybe it was gobbling memory. I think FORTRAN95 has dynamic memory allocation if you want it.
 
We had a leaderboard of "most awesome error."
 
5:54 PM
cbg
 
rbrb guys!
 
Oh, lookatthat. Object properties just spring into existence when you set them. Is there any way I can guard against typos when someone accidentally sets config.hosst = 'localhost' instead of config.host = localhost?
 
You could define all known attributes during the object init, then override __setattr__ and make it check that it exists already before setting

http://stackoverflow.com/questions/7042152/how-to-i-properly-override-setattr-and-getattribute-on-new-style-classes
 
Thanks, Musher. I just found that same question. The I should have searched for before asking the room :/
 
np
 
6:02 PM
I don't think it's a big enough problem to write extra code for. I'll let the unit tests be the guard.
 
I Actually just ran into that same issue where I wanted to redesign how an object works (store all its data in a dict in itself rather than in itself), so rather than change it in every bit of code that called it I just changed set/get attr
 
Metaprogramming for the win.
 
It's really an anti-pattern in Python.
 
What is?
 
More like antti-pattern hur hur hur.
 
6:04 PM
Preventing setting attributes that weren't around at init.
It's more of a thing that should be picked up by a linter. Most linters will warn you about it.
 
Is there an easy way to track through Pycharm where exactly a variable changed during debugging?
 
@davidism I think so. If I tried to make it warn me at runtime, I'd be trying to force Python to be Ruby. That kind of endeavor only ends in sorrow.
When in Rome, etc.
 
@user5061 You mean break when a variable changes? No, you just have to be observant.
 
@davidism Being observant isn't very effective since I have 10k LOC. Any other way? Btw, i mean detect exactly what changed my variable to the wrong value.
 
@user5061 Does this help?
 
6:09 PM
You can also set a break point with a condition, so if you're running in some loop you can wait until the value meets the condition before breaking.
 
@WayneConrad I did check that earlier, but i was wondering if there is an easier way, like.. drag and drop some variable in the debugger window.
 
@user5061 what I'll sometimes do, only when debugging, is actually related to the other discussion where you override __setattr__ and if the attr requested is the one you care about put a breakpoint. Assuming it's an object variable. something like

def __setattr__(self, attr, val):
    if attr == "thing I care about"
       pass #breakpoint here

    super().__setattr__(attr)
 
It sounds like you're just going about the debugging the wrong way. There's probably a better breakpoint you could set than "arbitrarily where this value changes". That's the point of stepping through execution.
 
You could also add in a check for like if attr == "thing I care about" and val == "wrong value I'm trying to catch" to make sure you don't always hit it
 
@Ffisegydd I saw that!
 
6:14 PM
lol
 
Before I spend some of my valuable reputation, anyone have any thoughts on this?
1
Q: Connecting to local SQL Server instance

Morgan ThrappI'm attempting to connect to a local instance of SQL Server running on my machine. I am able to connect to a local instance with this code from our server, but it fails on my local machine. I've enabled named pipes and all the ips in the SQL Server configuration. The code I'm using is as follo...

 
@MorganThrapp use some other db :D
 
@AnttiHaapala If only.
 
though, I've read that mssql would handle the exact case we're having problems with with postgresql
or cross-column stats
 
6:25 PM
cbg
 
With pandas, is there an easy way to use the apply() function in place? I am trying to replace all backslashes and quotes with the following code:
frame.ix[:,frame.dtypes==object].apply(lambda s:s.str.replace('"', ""))
frame.ix[:,frame.dtypes==object].apply(lambda s:s.str.replace('\\', ""))
 
Didn't you ask this a while ago?
 
Without a response :(
Or at least I might've missed it
 
You might want to consider asking a question on the main site.
 
6:41 PM
unit_test uses camelCase for setUp and tearDown methods. I wonder if PEP 8 came after unit_test.
 
I think they borrowed the method naming from JUnit
 
That would make sense.
 
> The unittest unit testing framework was originally inspired by JUnit
 
user559633
I thought some of the unit testing or assert stuff came from smalltalk
 
user559633
The Python unit testing framework, sometimes referred to as “PyUnit,” is a Python language version of JUnit, by Kent Beck and Erich Gamma. JUnit is, in turn, a Java version of Kent’s Smalltalk testing framework. Each is the de facto standard unit testing framework for its respective language.
 
6:53 PM
> JUnit is, in turn, a Java version of Kent’s Smalltalk testing framework. Each is the de facto standard unit testing framework for its respective language.
hah
 
user559633
:]
 
user559633
That's good because if it was from Java, I'd never write another test. (lol just kidding i don't write tests)
 
I wonder if Smalltalks "messages" are any different from "methods" as we know them in Python.
 
7:24 PM
Does SO have any simple tools for answering questions like "What percent of Answers have over 200 votes?"
I ask because I want to know what percent of answers have over 200 votes.
I could swear I've seen a web api for those kinds of queries but I can't find it.
 
@QuestionC I assumed it was because you wanted questions that were asked on a Friday.
 
@Musher That's it thanks!
Describing an SQL client as a 'simple tool' may have been a misnomer.
 
7:44 PM
MSSQL is going to make me stab someone one of these days.
 
7:56 PM
OH DEAR GOD IT'S WORKING.
3
 
Stabbing someone?
 
@QuestionC In a way.
 
In an alley
 
POKE is a kind of stab, if you think about it.
 
@AaronHall Ruby's message model is very close to Smalltalk's. I think Python's is a little different... for example, I don't think there's a method_missing method defined on the base object.
Oof. The Python namespace model continues to baffle me. Must go read more...
 
DSM
8:07 PM
I manage to write in Python most days without ever even needing to think about it. What's puzzling you?
 
In my unit test directory, called (surprisingly) test, I've got a class Queue, defined in queue.py. In my test, I can from queue import * and it works fine. I'm trying to move Queue into a namespace called 'captive_rabbit', so I created a directory called captive_rabbit and moved queue.py into it, but now the test can't import it.
 
__init__.py ?
 
Both the test directory and test/captive_rabbit have __init__.py files
 
Test directory shouldn't be a package. (Not that that solves your problem.)
 
How are you importing it?
And what python version?
 
8:11 PM
@davidism How do I make it not be a package? Is that what the __init__.py file does?
 
Yeah, you don't put an __init__.py and it's not a package. Again, this won't solve you're problem, it's just a general design thing.
 
2.6.7. from captive_rabbit import *. Actually, it looks like that succeeds. My error comes later when I try to reference a class from that namespace: 'captive_rabbit' is not defined
 
Oh, in that case it's because you imported all the things in that module to the current module, you didn't import the module name itself.
 
DSM
Is this a from captive_rabbit import * vs import captive_rabbit issue?
 
do import captive_rabbit instead
 
8:14 PM
@davidism That changed my error message from 'captive_rabbit' is not defined to `'module' object has no attribute 'Rabbit'.
I think I need to cook up a minimal gist for you to see.
 
well, does it? Yeah, example would be good
 
@WayneConrad before you read more documentation, read PEP 8: "Wildcard imports ( from <module> import * ) should be avoided"
 
Obviously it doesn't, despite me thinking that I told it it should. Let me get that gist cooked up.
@AaronHall I'll fix that. Thanks.
 
Surely you need import captive_rabbit.queue?
 
There's a lot of good advice in that "style" guide.
 
8:16 PM
Can't test as on phone.
 
And when you're done reading that, read the Google Python Style Guide for good measure.
 
I hate hate hate not understanding the underlying model. It leaves me trying random things...
 
DSM
Soon all will be revealed.
 
I was banging my head against the wall with a subprocess call that wouldn't subprocess. Turned out shlex.split was mangling my command because I didn't pass posix=False
 
8:21 PM
from captive_rabbit.queue import Queue should work (am now at my PC :P)
I remember struggling with this a lot, but the Gospel of Davidism set me straight.
 
We're all on a learning curve somewhere.
@fizzy what magic phrase brought enlightenment?
 
@Ffisegydd No joy. I'll keep making that gist.
 
I think it was the drugs.
Ah see in my Gwydion repo I use the full path.
So I've got a directory funcs which has various files in like linear.py that I want to get the Linear class from.
It might be that you have to add some imports to your __init__.py file.
 
Interesting. If I add from rabbit import * to test/captive_rabbit/__init__.py, then the test can successfully import captive_rabbit.rabbit and then do captive_rabbit.Rabbit(). I'm sure this is a shining example of worst practices, though. I'll finish up this gist.
 
It's my understanding you can import any name (including module level global variables, classes, functions, and submodules/subpackages) from any module or package using from packageormodule import name
with a straight import you can import any module or package, but not other names.
 
8:35 PM
Gospel of Davidism roughly there.
May help.
 
from lets you use explicit relative imports. I've seen relative imports criticized in style guides, but I think that's because of implicit imports, which I think are phased out now.
 
Oh, gist does not support directories. OK, I'll make it a real boy instead of a wooden one.
 
You could just do a dump of tree.
 
This is exciting, and this gin is fantastic.
 
@Ffisegydd Which gin?
 
8:37 PM
 
@MorganThrapp I don't understand "dump of tree".
 
ok, so you didn't get packages, I may be taking a bit for granted in my summary. Did anyone learn anything new there? Or would anyone like to correct me?
 
@WayneConrad I'm not sure what the linux/osx equivalent is, but in Windows you can run tree from the command line and it'll give a pretty printed directory structure.
@Ffisegydd Their website makes me angry. :P
Also, it's weird not having to lie about my age any more.
 
DSM
Why are the shapes in Alphagetti so much better than the shapes in Alpha-bits? #realq
 
I'm using hedging phrases to avoid looking like a know-it-all, but I'm fairly certain I'm right on these topics.
 
8:41 PM
Deityalmighty, it shouldn't take this much work to show a couple of files to y'all. :(
 
Okay I've made 2 files with the following structure:

top.py
dir/
    bot.py
In bot.py I've put class Test(object): pass which I want to import from top, right?
There's also an __init__.py in dir
 
241 Python Gold Badges now awarded: stackoverflow.com/help/badges/51/python
 
I can do from dir.bot import Test in top.py fine without needing to add anything to __init__.py.
 
ah, in top, put from dir.bot import Test (from .dir.bot import Test might not work unless dir is a subpackage)
 
Alright, I'm going to cheat and just paste the files in here. They're small:
----- tests/test_rabbit.py
import captive_rabbit.rabbit
rabbit = captive_rabbit.Rabbit()

----- tests/captive_rabbit/__init__.py
from rabbit import *

----- tests/captive_rabbit/rabbit.py
class Rabbit:
    pass
That's what I've got working. I can run "python tests/test_rabbit.py" and it works.
 
8:46 PM
Why is the code you're testing in the test directory?
 
That's not the code under test. It's test support code.
 
What's the command you use to run the tests/what directory do you run it in?
 
you want this: rabbit = captive_rabbit.rabbit.Rabbit() ... or maybe what you have?
 
@davidism python ~/lab/rabbit_droppings/tests/test_rabbit.py. cwd could be anywhere. Does it matter?
 
@AaronHall no, he imports Rabbit into captive_rabbit
yes, because captive_rabbit is not on the python path
either run the test from the test directory, or in test_rabbit.py add import sys, os; sys.path.insert(0, os.path.dirname(__file__))
 
8:51 PM
Depending on how you do your tests there may be better ways. Quick Q: is this for a package?
 
this goes back to the pytest page I linked earlier: things that are importable should be part of your project
or, in the case of pytest, there's also a standard way to make extra stuff available to your tests
 
@Ffisegydd Yes.
I'm using unittest. That's different than pytest, right?
 
Yeah. I won't overcomplicate things for you right now, but really consider using pytest instead.
 
Yes but good practices may still translate.
 
import sys, os; sys.path.insert(0, os.path.dirname(__file__)) in the test file is the quickest hack to get it working
 
8:54 PM
that's an interesting looking hack, but why not modify the python path? (I don't know a lot about python paths...)
 
@MorganThrapp the equivalent is tree
 
@davidism I've already got a test_setup.py that all of the tests import; test_setup adds the library itself to the load path. So, you're saying I could also add the test directory to the load path, and things will get easier?
 
And not to really, really overcomplicate things but look into tox. It's an automation tool that will take your package (and tests), make a fresh virtualenv for you, install all requirements, and then test them. As it's all done in a fresh virtualenv you can worry less about contaminations from other stuff.
tox runs tests for unittest or pytest or whatever, so you don't need to change them.
 
neato
 
@WayneConrad yes
 
8:56 PM
@davidism Oh, that's easy. :P
 
@AaronHall You wouldn't modify the Python PATH itself because what if I tried to run the tests on my computer?
Plus you don't really want to permanently pollute your PATH with unnecessary things.
 
@Ffisegydd not the best argument, since I used a general path
 
I'm modifying sys.path. That's the right one, right?
 
Say you added something to your path accidentally and then got some kind of import contamination problems.
 
Basically the rule is: if you're modifying the path, there's probably a more correct way to do things
 
8:57 PM
@davidism I assumed Aaron meant "why not permanently modify your path?"
 
agree with that
no, not permanently modify, I'm just thinking about environment variables, and I know there's the path, and there's the pythonpath, right?
 
yeah, but that's even worse, since it's not visible from the code people post
you also run into problems since all python binaries will look at the same env var
 
and I'm thinking, what is the PythonPath used for?
 
It's where python looks for packages.
Everything you could ever want to know about it. ^
 
Well it's used to import packages, right? stackoverflow.com/q/19917492/541136
 
9:01 PM
Rb!
 
@davidism "everything" is not always what a beginner needs :) Let's find out...
 
Well I don't know enough to be certain, and I don't remember seeing that talk yet, so I'll check it out...
 
DSM
Today I both (1) snarked at a dynamic-variables question in Python, and (2) happily answered a dynamic-variables question in Julia.
 
@WayneConrad it's an interesting talk, but it probably won't make anything clearer.
 
3 hours!
 
9:02 PM
watch it at 1.5x speed, and it's only 2 hours.
 
@DSM you did it so you could be the canonical "don't do it" answer for Julia, right?
 
DSM
@davidism: well, no.. in Julia where metaprogramming has first-class support I don't mind answering it as much, even though in many cases where people reach for it it's still a bad idea for all the reasons it's a bad idea in Python.
 
Alright. It's working... thanks! I'm still not sure exactly how or why--this gets back to "understanding the model." So I'm going to go off and read some more. Thanks for your kindness to your confused Ruby cousin.
 
I can't imagine how it would be any clearer in Julia, but then again I know nothing about Julia.
 
DSM
"Question about bleeding" is not about what I thought it was.
 
9:06 PM
@WayneConrad if you want to understand the model, the talk is the way to go, but by the end you'll realize you didn't want to understand it.
 
Haha! Yeah, I know that kind of talk.
I'm starting with the basic python docs, which I've sort of..... um.... mostly skipped, seeing how much I can away with not reading. Clearly, I can't get away with quite as much as I thought :D
 
At one point, he writes a new import hook that will install the package if it doesn't exist. Awesome and a terrible idea.
 
9:34 PM
It's old-testament awesome.
 
I got rid of all of the "import *". Making better... well, less awful... Python, one step at a time.
 
Any idea why this warning pops up?
$ python - << cat
> print 'hello world'
> -bash: warning: here-document at line 66 delimited by end-of-file (wanted `cat')
hello world
it's cygwin
 
I get the same warning in Linux, so it's not Cygwin's fault.
That's if I type control-d (eof). However, this works:
$ python - << cat
print 'hello world'
cat
hello world
 
9:58 PM
cat's weird.
 
I think it makes sense, thinking about how a heredoc has to work.
 
Haha, I want this one
 
Hello all, anybody know about regression in python?
I have a question that I posted on stack overflow but is getting no useful answers..
 
@TanMath Just ask your actual question, if someone knows they'll answer
 
10:02 PM
3
Q: Python regression with matrices

TanMathI have some 7x7 matrices that are really time-dependent matrices evaluated at various times. These matrices are the predicted values. I also have the times the each of these 7x7 matrices correspond to. Now with these matrices and times I want to find a time-dependent expression for each element m...

 
so it turns out that's not actually cat... en.wikipedia.org/wiki/Here_document
 
heredocs are pretty cool
 
I guess END would be the best end characters?
$ python - << END
> print 'hello world'
> END
hello world
 
I've seen EOF used fairly ubiquitously
 
Yeah. Usually people uppercase those. END is popular. I've seen EOF, and I use EOS a fair amount.
 
10:10 PM
Can anybody over here help?
@WayneConrad did you say anything regarding my question?
 
@TanMath looks like you may have changed your question after asking it?
and the current answer no longer answers the question?
 
@TanMath Yes, but it was just stupid snark, not all that funny, and I removed it because I realized it was disrespectful. I apologize.
 
@AaronHall it doesn't.. I don't think the current answerer understands my question...
 
did you try stats.stackexchange.com
 
@AaronHall Should I have asked it there? I want an answer with python code, I thought asking my question over there won't help..
 
10:21 PM
@TanMath they're a different site, with their own expectations as to questions, but here our expectations are that you show us the code you've tried and demonstrate the wall you've hit and then people will help you overcome that obstacle. If you don't do that, we don't usually even begin trying unless we can build a solution from scratch in a few minutes, and even then, that's rare. You want a code solution? Provide a code question.
 
@AaronHall As I have discussed before, I don't know where to start..I could add a a few lines of code...
 
Begin at the beginning. And when you come to the end, stop.
I think I'm going to skip the meetup tonight. Kaggle winner blah blah blah...
 
Agreed. You might also want to further edit your question. Are all the observed function values at the timesteps independent (i.e. is rho11 independent of rho12 and so forth always?). If so - you're doing 49 independent linear (or polynomial) regressions that happen to be grouped in a matrix. If they might depend upon each other - that's different, potentially harder, and should be made clear in the question...
 
@JRichardSnape Now, this is what I am not sure of... How can I figure out if there is some correlation between them and if there isn't, just use independent polynomial regression?
 
Ah, that's what I was afraid you might say. In which case, it becomes not really a programming question until you can figure it out.
I'd be going beyond my expertise to tell you how to do that - it really is one for stats.stackexchange.com. My instinct is that you'd have to assume they could all be interdependent and then find a statistical test that tested that hyopthesis (but it may be you test the hypothesis that they're dependent)
Unfortunately - as I say - it's beyond my usual area and I'm off to bed shortly so I'm afraid I'll have to bow out just advising to think of a way to phrase a question on stats.stackexchange.com saying I have these matrices RHO_t1, RHO_t2 that are observations of a time dependent rho(t) and I want to check if the elements are independent, or something like that.
 
10:36 PM
@JRichardSnape thanks
Now I wouldn't have such a problem if I knew how to do numerical integration with my rho(t)...
 
11:19 PM
You guys have been way too on-topic lately :(
 
user559633
11:37 PM
@Dracunos We always have the potential to be this on-topic.
 
user559633
It's usually someone blasting in that disregards the room rules and or a time vampire that blows us off course
 
user559633
anyway, it's almost 3. have a good night :)
 
11:53 PM
Gnight
 
what is an example expression that you would expect to find?
is it just Y(t) = mX+b ?
or perhaps more aX^2+bx+c? or even more complex? are you trying to find this equation just once and use it? or are you trying to calculate it each run (it will probably take a long time to find a viable solution...)
I dont understand your problem space nor your expected output ...
oh and he's not even in here
@TanMath
 

« first day (1719 days earlier)      last day (3240 days later) »