« first day (2122 days earlier)      last day (2818 days later) » 

3:07 AM
Look at this lil' script I whipped up to confuse debuggers: (python 2 only)
real_false = False
real_true = True
True = real_false
False = real_true
__main__.True = real_false
__main__.False = real_true
 
 
2 hours later…
5:12 AM
cbg
 
 
5 hours later…
10:44 AM
cabbage
 
10:58 AM
Cabbage
Is it just me, or is this description unclear? stackoverflow.com/questions/38802536/…
 
Jim
cbg, I believe it is too.
 
Hi. Which framework is used to write docs.python-guide.org ?
 
Thank you a lot @AndrasDeak
 
@BillalBEGUERADJ Sphinx
 
11:11 AM
Very interesting! Thank you so much @PM2Ring
 
11:36 AM
Guys Im going to write a notification server. is it ok to do that in python? or should I use nodejs and socket.io?
 
@MarlonAbeykoon What answer do you expect from Python room?
 
some advice
 
Okay
 
is it ok to ask it here? or is there any other place?
 
Do that in Python
 
11:41 AM
ok python with socket.io?
any example link you have or any libraries you recommend?
@vaultah thanks for your response
 
I've heard good things about autobahn.ws
 
lol:D
 
user6568562
Haha
 
user6568562
Well to their defense most of these words are spelled differently from their french counterparts. Pétitions, passeports, contrôle, langages
 
11:55 AM
haha
 
so not only don't the Britons know these words are French in origin, but additionally they misspell them...
 
user6568562
I really do hope that Europe will figure out a way to handle its current crisis. Sometimes, after watching a bit of news, I tell myself that Skynet might be not that bad of an idea. At least killing robots get their efficiency right.
 
next in line: stop singing songs of European origin
change the flag too...
@randomhopeful how do you think stupidity could be cured?
 
Why do they hate europeans that much? im a sri lankan no clear idea about it.. but curious to know.
 
user6568562
@AnttiHaapala I, honestly, can't think of a peaceful way to cure stupidity and other ignorance related traits. Stupidity is a comfort zone, no one in their right mind would prefer burning his synapses over a traceback error than enjoying the bliss of blank mind.
 
12:02 PM
@MarlonAbeykoon ignorance
 
user6568562
@MarlonAbeykoon Humans tend to bite the hands that feed them. Can't think of a logical reason why.
 
user6568562
@AnttiHaapala What about you ? How do you think stupidity could be cured ?
 
@AnttiHaapala I think good education can cure stupidity
 
@MarlonAbeykoon you know what they say?
the populist movements here speak like education is a curse.
the slogan is "the people do know".
 
user6568562
@Marlon School can teach you information and test your memory, but it can't teach someone good manners. That's their parents' job
 
12:06 PM
not all kids have parents...
 
user6568562
Unfortunately, yeah
 
@AndrasDeak no, instead I am being tormented by several projects at the same time
 
user6568562
@AnttiHaapala Do you prefer the use of a database connector over ORMs, or do you use both ?
 
I use SQLAlchemy on Python, it is everything... :D
 
I think education + discipline is whats needed
 
user6568562
12:22 PM
@AnttiHaapala Thank you [ : I will come back with a ton of other questions, once I understand what I really want to do
 
cbg guys
 
@AnttiHaapala :/
 
@AnttiHaapala I find ORMs not so useful.
complicated queries are much better with raw SQL and simple queries don't take too much time to write
 
user6568562
@khajvah By complicated queries, do you mean dynamic ones that users enter during runtime ? Or is it some other thing ?
 
@randomhopeful No, just complicated ones with many joins
 
user6568562
12:34 PM
@khajvah So you prefer using db connectors and switching between Python and Sql code ?
 
yes
 
user6568562
Developing time aside, how the two procedures (ORM / DB connectors) compare security and run-time performance wise, in your experience ?
 
@AnttiHaapala "The problem with defending the purity of the English language is that English is about as pure as a cribhouse whore. We don't just borrow words; on occasion, English has pursued other languages down alleyways to beat them unconscious and rifle their pockets for new vocabulary." — James Nicoll
4
 
security wise, both are fine as long as you know what you are doing, you will be fine, performance wise: same story, if you don't mess up, you will get at least as fast queries using manual queries, as you would with ORM.
 
Does any one know what the value of q is in this regex?
def q=(str =~ /^(H .)\s+T(.*)$/)[0][2]
 
12:43 PM
@Perfect_Comment that doesn't look like python
 
O ok
Sorry
 
lol
 
user6568562
@khajvah In other words, learn to know what you're doing
 
It's hard to write an insecure SQL code, so you will be fine
DB connectors take care of everything
 
@khajvah Little Bobby Tables agrees;)
 
12:48 PM
You can get by with JMSU coding when you're just writing a quick script to manipulate data on your own machine, but when your code is manipulating a database that may affect thousands of other people it's important to have enough expertise that you can be confident that your code is actually doing what you think it's doing.
 
user6568562
@khajvah I see, thank you [ : Also, python related sql documentation is full of DO NOT / DO THIS INSTEAD.
 
@AndrasDeak morons used '%' to construct the sql :D
 
user6568562
@PM2Ring True. I'm disciplining myself to not turn a blind eye on the ethical scope of promising users that their private data will be handled in the best way.
 
@randomhopeful or just don't promise that and you'll be fine. Ask for their first born in the EULA.
 
nobody reads the EULA anyways, put whatever you want in it
 
user6568562
12:52 PM
Haha ! Or making them agree to first being turned into a human centipede if they ever sue me one day.
 
@randomhopeful well, microsoft got away with even worse EULA, so it should work
 
user6568562
@khajvah I'd rather end up homeless than live with the idea that I used to be a CEO of a careless predatory company. Also, they're too rich to account for their mistakes.
 
user6568562
I remember once where Microsoft lost a great amount of data stored in their clouds. I believe all they did was to write a lawyer-version of Oopsie, hehe.
 
@randomhopeful well, you would be on you yacht on your way to your personal island.
 
user6568562
@khajvah Yeah, would it worth the unexplained sensation of anxiety that would hit you from time to time ? I don't know.
 
user6568562
1:05 PM
The Sidekick data outage of 2009 resulted in an estimated 800,000 smartphone users in the United States temporarily losing personal data, such as emails, address books and photos from their mobile handsets. The computer servers holding the data were run by Microsoft. The brand of phone affected was the Danger Hiptop, also known as the "Sidekick", and were connected via the T-Mobile cellular network. At the time, it was described as the biggest disaster in cloud computing history. The Sidekick smartphones were originally produced by Danger, Inc., a company that was bought by Microsoft in February...
 
user6568562
> The class action lawsuit was settled in 2011, with affected users compensated with "a $35 T-Mobile gift card, a $17.50 check payment, or up to 12 free downloadable items."
 
user6568562
Just lol
 
Well, it had Danger right there in its name.
 
user6568562
Haha, so true
 
user6568562
Also temporarily means that they permanently lost their data stored in a definite period of time. Not that they got their data back some time later.
 
1:10 PM
I guess that was one of the rare times when the usual Microsoft philosophy of "Oh, it's supposed to work that way" just wouldn't cut it.
 
@tristan in case you haven't heard it already: Rival Consoles released a new EP recently
Thought you would be interested because you introduced me to Rival Consoles some time ago
 
user6568562
1:25 PM
I stopped complaining about the difficulty of reading documentation once I understood the difficulty of writing them.
 
1:54 PM
stackoverflow.com/q/38814425/2301450 tool request/too broad + very poor answer
 
ray
2:13 PM
lol, when all of your data is worth a mere $35.
 
user6568562
35$ in gift cards, lol. 17 in actual money
 
ray
Now that's gangsta :v
 
user6568562
I need to reinstall postgreSQL on my computer because I messed up something. Does removing it from Control Panel suffice or do I need to run a system restore ? "What I messed up was not disabling antivirus, apparently. "
 
@khajvah ... writing raw queries is not an option.
 
user6568562
@ray + 50 cents, because they really did calculate how much your private data were worth.
 
2:18 PM
Hi @ray. Thanks for dropping by. Please check the room rules, especially the section about Salad Language. :)
 
ray
@randomhopeful Indeed they did. Do those .50 cents come with 9 gunshot wounds too?
@PM2Ring: Will take a quick look.
 
user6568562
@PM2Ring Melon for the link. I knew that I had to be patient to understand what cabbage and peas mean . Didn't cross my mind to "read the documentation" lol
 
We don't actually use much Salad these days, and at least one of the regulars hates it. You can mostly get by with cabbage, rhubarb, garlic, and yam. :)
 
user6568562
Will keep that in mind [ :
 
ray
The real question is what happens if you really wanted to talk about real salad... it seems ambiguous, the nemesis of any programming language, and especially Python :)
 
2:27 PM
One good thing about Salad Language: if someone is mystified by it that lets us know that they didn't read the rules thoroughly (if at all). :evil grin:
 
user6568562
@ray Then we should figure out how to escape these words whenever they're real-salad related. I suggest "Real cabbage for my tummy" as a starting point
 
user6568562
Then again most of us fuel on coffee, liquor and cheap steaks, I hope
 
ray
@randomhopeful: We could just escape them normally, e.g. \cabbage, or real overkill, \c\\a\\b\\b\\a\g\e
 
user6568562
True. I still lack instruction efficiency
 
2:39 PM
FWIW, there is a lot of conversation about actual food in this room, but ambiguity due to Salad Language is rarely a problem. In fact, it can be an advantage. :)
If there's a help vampire around and someone wants to drop the hint that it's time to stop responding to the HV then they'll start talking about food with garlic in it, and quite often when that happens the conversation will just naturally metamorphose into genuine food talk. :)
 
Mmm. Garlic.
 
user6568562
Case in point, lol
 
user6568562
@PM2Ring True. I try to only talk when nothing else is being said in the chat room or when it's pop culture related. I would ban myself if I find myself clogging the room with my noob gobbledegoo
 
user6568562
Also :
    for i in help_received:
        print(sincere_thankyou)
 
3:08 PM
roasting garlic right now actually - and other vegetables and a london broil
 
Hey @JGreenwell You might enjoy this XKCD forum thread: Misunderstanding basic math concepts, help please?. Or you might find it extremely frustrating, and wish you could grab the OP by the shoulders and shake some sense into him. :)
2
BTW, that isn't his first "Math is broken" thread. But hopefully it'll be his last...
 
@PM2Ring I see your example of ignorance, and raise you an "every book about FFT is wrong" (>10k)
 
that is an accurate title
 
3:22 PM
I keep thinking, he needs to study set theory more, then well also "well-defined" as opposed to "not well-defined and undef", then grammar usage, and then he just kept coming back with more.
 
user6568562
Or simply learn to not pick bad habits or perceptions and manage to try hard to get rid of already existing ones
 
@AndrasDeak thank you kind sir
 
well or actually step through math courses and topics progressively (instead of piecemeal which I bet he did cause that happens a lot in my field)
 
@RobertGrant anytime
 
@AndrasDeak Oh dear. When I was teaching myself about the discrete Fourier transform I sat down and calculated the general case for 8 data points by hand, and did the reverse transform to prove that it works (and that I hadn't screwed up). It gave me a much better feel for it than simply reading through the algebra and nodding in agreement. :)
 
3:27 PM
@AnttiHaapala I am not sure I understand
 
@khajvah if you think it is easy to write raw queries, then clearly you've not written anything complicated :D
 
@JGreenwell Having a discussion with Treatid is like trying to nail jelly (jello) to a wall.
 
@khajvah our worst queries are 2 screens full of SQLAlchemy python code
using sqlalchemy makes it possible to compose it from parts though.
 
oh well. my worst was about 1 screen of sql
 
With @AndrasDeak example, I wonder if he was a researcher - they can get really excited when they find "something nobody else has thought of or shown!" and get blinded to the fact that they could be wrong (or that people thought about it but it is not worth publishing)
 
3:29 PM
@AnttiHaapala yes I agree. And even if you're amazing at them, doesn't mean the next person will be
And you can eliminate a whole class of errors by using an ORM
 
@khajvah sqlalchemy is amazing in that it knows the default join relationships between models
 
It would be amazingly cool if SQLA did hotspot "compilation" of some of the most frequently used/longest running operations into core SQL
 
@JGreenwell yeah but as rayryeng noted in a comment: if you find a flaw in a mathematical subject with a few centuries of history; odds are you're wrong;)
 
But that requires more maths than I can even vaguely understand, I'm sure
 
@RobertGrant I can't imagine how 2 screens of sqlalchemy code would look like to non-amazing person
 
3:32 PM
it's not physics where you just find a new system/set of circumstances where the old theory simply doesn't work
 
@JGreenwell Maybe. But surely he realises that FFT gets tested through use all the time. Apart from all the hard scientific use it gets put to, MP3, JPEG & MPEG rely on FFT (or at least the discrete cosine transform).
 
@khajvah I meant amazing at raw SQL queries
 
god damn you windows. idiot thing restarted itself in the middle of poker tournament
 
@khajvah for example SQL aggregate functions over filtered sets,
I even can't remember how to write them in sql
 
We need SQLA to become standard ORM code that all DBMSes understand natively
 
3:33 PM
vs
 
@RobertGrant yeah I meant the same goes for sqlalchemy too
 
    sentiments = session.query(
        func.count(1).filter(Sentiment.value == 1).label('positive_count'),
        func.count(1).filter(Sentiment.value == 0).label('neutral_count'),
        func.count(1).filter(Sentiment.value == -1).label('negative_count'),
        func.count(1).filter(Sentiment.value == 'NaN').label('irrelevant_count'),
    ).select_from(...)
I do not remember at all how to write that in standard sql.
the syntax is just braindead
 
One would think, but had one kid who was convinced he had found a flaw in recursive methods and had rolled his own version that would out perform all other loops - I looked at it and said: "that's a while loop" @AndrasDeak @PM2Ring
 
@JGreenwell it does (most of the time)
 
@JGreenwell How novel. :)
 
3:36 PM
heh
 
I'm thinking numpy is getting too clever for me...
 
@AnttiHaapala yeah that would be longer
 
tsettling =t[(y1 < final_val*0.95) | (y1 > final_val*1.05)][-1] #settling time.
Now is that line perfectionism is utter uglyness... I just can't figure out.
 
@khajvah not longer but harder to write... and then that ^ could be optimized with a lambda
 
("y" = array with same size as "t", and it goes to a final value)
 
3:40 PM
well my experience is mostly with DJango's ORM
 
@khajvah exactly.
django orm is the worst orm for python.
the NiH
 
I answered a question on SE.Mathematics yesterday where the OP thought he'd discovered a quadratic expression in integers for the cube root of 7. But he was being misled by floating-point errors. math.stackexchange.com/questions/1884231/…
 
I will try sqlalchemy and then argue :D
 
its better
 
3:42 PM
Django's ORM feels a bit like something built to support Django; SQLA feels a lot more as though it solves the general case
 
@JGreenwell it is like comparing trabant to STS
 
Django's ORM really does stink
 
Not that I'm qualified to say whether or not it does
 
@khajvah alex gaynor is a django core dev
 
from a DBA's perspective, which I was the last time I had to use it
 
3:43 PM
@PM2Ring lol wait what? How are you even using computational numerical algebra when you try to "prove" a mathematical problem?
 
@AnttiHaapala he looks young
 
sorta was....I never seem to get a single job title
or boss
or less than 4 bosses
 
@khajvah a typical django coredev
 
Let's throw some things at the wall to see what sticks...
@MartijnPieters,can using threads solve my problem?am new to python i have no idea of it so asking — SaiVamshi Dobbali 42 secs ago
 
Amazing
 
3:44 PM
Asks the OP that is wondering why changes to their dictionary don't persist between invocations of the Python interpreter..
 
Perhaps it's worth using LINQ, or increasing -Xmx
 
granted I don't know that it is the worst - used a custom rolled one once that was....just frightening
 
Or installing the latest Rakudo
 
django's orm is the worst NiHhitis
with all other things in django you could sort of argue that there wasn't anything other that could be used.
but the django orm is so bad compared to the even-then-existing competition, including Bicking's SQLObject... (which still sucks)
 
@paul23 Well, to be fair, it's more like he stumbled across the result via numerical methods and was seeking confirmation / refutation via proper formal mathematics.
 
3:47 PM
@paul23 if you dislike it, you can make it clearer with auxiliary variables
 
Yeah, if Django just maintained perfect mapping between SQLA models and its own then it'd be so much better
 
but I think that's OK
 
@RobertGrant django orm could be built on sqla.
but they just wouldn't
 
Wouldn't they just replace theirs with it?
 
you could get some minor incompatibilities and whatnot
 
3:48 PM
(Were they to use it, etc)
 
@AndrasDeak Well once you get used to that notation it's "perfect" but I saw it just in a solution for an examn the first time and it surprised me. Didn't know you could insert an array as indices to another array. (And that numpy would then return an array for which the inserted array is "true").
 
Wow, okay
 
No indents... so yes
 
@Qlstudio it throws a syntax error
@paul23 there are (at least) two kinds of indexing; and it matters whether the indices are logicals
 
user4913676
3:51 PM
well Just indent it properly lol
 
why don't you indent it properly @Qlstudio?
 
although I come from MATLAB which works similarly (although not the same), so it wasn't surprising for me
 
Just a hint: to past code here indent it by an extra 4 spaces.
 
@Qlstudio and what makes you think it will crash? What makes you think it won't? What happens if you try it?
 
3:53 PM
@Qlstudio use itertools.produt
 
itertools.product('01',repeat=12)?
oh, ninjad by Antti
 
@Qlstudio It's your code you indent it.
 
user6568562
@Qlstudio the indents of the l statement should take 44 spaces, I think. There must be a better way to write your loops.
 
@Qlstudio if you're going to paste 14 lines of broken code, then please at least use pastebin
 
Oh the magics of itertools, I always wonder how you guys "remember" that something is in that library...
 
3:55 PM
list(map(''.join,itertools.product('01',repeat=12)))
in py3
 
@Qlstudio you think, in a language where indentation matters and your bug could be caused by indentation errors, we can guess what your code looks like?
 
@paul23 I knew something had to be there, so I googled "itertools combination", then looked at the itertools docs, and saw product right there with an example
 
Or are you always just looking up the documentation each time something repeatable happens?
 
^ ding ding ding
 
OTOH, I'd probably not use itertools.product for something like that: I'd write a simple for i in range loop and print i in binary.
 
3:56 PM
that's cheating:P
but that's what I'd do (and have done in the past) with matlab
 
Does itertools work nicely with numpy arrays btw?
 
@AndrasDeak It feels kinda natural to use binary on a computer when you're trying to produce binary numerals. :)
 
> Cartesian product of input iterables.
iterable sounds quite general
you might have to .ravel() a few things in order to not work row-wise, but I don't see how that concerns itertools;)
disclaimer: I don't use itertools, so I'm mostly guessing
I make up for lack of experience with confidence
 
user4913676
itertools.product works very well. Thanks! Oh, and also when I tried to copy the code on the chat room, I indented it but when I sended it Stack overflow undoed the indentation it... how do i make it correctly formatted?
 
@Qlstudio like others said: indent all by 4 spaces with ctrl+k, or pressing the "fixed width" button that appears for multiline messages
 
4:00 PM
8 mins ago, by paul23
Just a hint: to past code here indent it by an extra 4 spaces.
 
paul23 Just a hint: to past code here indent it by an extra 4 spaces.
 
take a close look at the help and faq links to the bottom right
 
don't know, usually what I want itertools for is covered in numpy or through pandas or I already wrote it up with numpy a year or so ago so just import or something so don't usually use them together
 
it's not extensive, but helpful
 
Oh and make sure your whole "input" is code..
 
4:02 PM
like for product I would probably use meshgrid and reshape
 
@paul23 well, collateral code-formatted lines should be less of a problem
 
[format(i, '012b') for i in range(1<<12)]
 
or scikit's cartesian if I loaded it too which is common
 
user6568562
Is Python the first language to delimit functions by indentations (and a colon) ?
 
user6568562
The more I think about it, the more I get impressed. And my previous fiddles were with languages where indentation doesn't matter (and get sold as a convenience)
 
4:06 PM
nope, ABC used it
 
ABC is an imperative general-purpose programming language and programming environment developed at CWI, Netherlands by Leo Geurts, Lambert Meertens, and Steven Pemberton. It is interactive, structured, high-level, and intended to be used instead of BASIC, Pascal, or AWK. It is not meant to be a systems-programming language but is intended for teaching or prototyping. The language had a major influence on the design of the Python programming language (as a counterexample); Guido van Rossum, who developed Python, previously worked for several years on the ABC system in the early 1980s. == Features... ==
 
I have to bail; this battery's running low. Rhubarb.
 
Rbrb :-)
 
user4913676
since how long had statements had to been ended with a semicolon?
 
granted I prefer indent + : to Lisp indent and parens
go search for the answer
it's called research and it is how one develops a deeper knowledge :)
 
user6568562
4:09 PM
@vaultah That's one cool ancestor
 
I dislike whitespace in my syntax.
 
Think algol is one of the earliest using semicolons?
Can't get much older than that.
 
cbg
 
This comparison of programming languages (syntax) compares the features of language syntax (format) for over 50 various computer programming languages. == Expressions == Programming language expressions can be broadly classified in three classes: prefix notation Lisp (* (+ 2 3) (expt 4 5)) infix notation Fortran (2 + 3) * (4 ** 5) suffix, postfix, or Reverse Polish notation Forth 2 3 + 4 5 ** * math-like notation TUTOR (2 + 3)(45) $$ note implicit multiply operator == Statements == Programming language statements typically have conventions for: statement separators; statement terminator...
 
user4913676
apparently FORTRAN, predecessor of ALGOL 58, did NOT use semicolons... why did they decide to change?
 
4:21 PM
@Qlstudio assembly doesn't either. I know, right?
 
user6568562
@Qlstudio Whenever I throw in a question that vague, I get the answer : " It's a design choice. " And it's a pretty valid answer since this isn't a Q&A lecture.
 
And hey, DOS didn't have GUIs. WTF?
 
user6568562
@Qlstudio This might help put you in the right path [ :

http://programmers.stackexchange.com/questions/139482/why-are-statements-in-many-programming-languages-terminated-by-semicolons
 
And what's with that mouse?
 
Huh, Chance looks interesting youtube.com/watch?v=TIPRjWN8hcg
 
user559633
4:37 PM
@vaultah Nice, thank you
 
user6568562
4:47 PM
@tristan Getting ready to stream [ : ?
 
user559633
@randomhopeful I am!
 
user559633
1PM / 1500 UTC DOOM Stream. Talking DOOM, multiplayer, and "tiny house living" twitch.tv/0xkeen
 
What's tiny house living?
 
user559633
You'll have to tune in to my weekly nerdgasm to find out!!! (or you can find it easily on google)
 
Ah :)
Possibly fun twitch game: Human: Fall Flat
@tristan I see - interesting
 
user559633
5:01 PM
I'll pick that game up, remind me
 
My tip: get two half-width dishwashers and alternate them as being your clean cupboard and your dirty cupboard
Full disclosure about that game: WindowsCentral twitch streamed it already
Not that I saw that, but I read their summary and thought it sounded cool for your stream
I'm a one-Twitch kinda guy
 
Where's the DOOM at?
 
user559633
Windows 10 has decided to stop detecting my audio interface. Rebooting :/
 
5:17 PM
I'm only 3 votes away from Python gold. This is a purely informational post, with no expectation at all that you find all my Python answers and vote on ones you like.
 
@MattDMo I was starting to worry that you have expectations from us
good thing we cleared that:P
 
yes, very good thing. There wouldn't even be expectations of reciprocal voting should the identity of any upvoters become known :)
 
that's a no for real
 
Because, that kind of thing is, like, frowned upon and stuff
 
Welp, time to downvote some stuff.
I'm just in a downvoting mood.
 
Jim
5:25 PM
@MattDMo I'm 1 away, fight me bro.
 
I'm looking forward to you two counterhammering all sorts of posts
 
watches Jim and MattDoMo dv each other
 
Greetings.
 
@Tr0y cabbage
 
@AndrasDeak lettuce
 
5:33 PM
Huh. I always thought it was MattDoMo and it's MattDMo! Apologies.
 
@Tr0y I'm peas...
@RobertGrant it's the ninja eyes..
 
Isn't that a moth talking to a hare? I'm learning so much today!
 
Small question, in sorted(i, cmp, key) would sorted(i, cmp=lambda x,y: cmp(abs(x), abs(y))) equal sorted(i, key=lambda x: abs(x))? (Am I understanding key correctly?)
 
Looks good to me
 
@paul23 did you try to try?
 
5:38 PM
Could you just do key=abs?
 
@RobertGrant I think so
 
@AndrasDeak Well yes it gives for my tries the same result. - But that's no proof...
 
@paul23 of course it is;)
 
Neither is asking here :) Now try sorted(i, key=abs)
 
Trying works for syntax problems, not for understanding what is meant by inputs.
 
5:39 PM
@Jim you're over the top now. Congrats!
 
@RobertGrant Yup works too :P
 
Woohoo
I love that key parameter
 
that parameter is key
 
Nice
 
Jim
@MattDMo cheers, you must be 1 away now too, right? :-P
 
5:40 PM
min/max have no cmp parameter though (seems slightly weird to me, since I could use cmp in sort and then pick the first/last element).
 
yup. I wonder if some random soul will upvote something of mine.... ;)
 
Yeah that is weird
What comes of not having a Comparable interface muttermutterJavamutter
 
Jim
I wonder too.. (Congrats :-D)
 
5:54 PM
Controller works now neatly, nicely follows a ramp/step input (error goes to zero).
 
@paul23 is that some PID thingy?
 
Actually it's a stepped integration controller. We don't like PIDs as they can lead to annoying transient responses.
 
cool, sounds legit;)
I only met PID control in passing, and no other kinds
 
Middle block is to remove the oscillation (frequency). The Kp is to improve the response time (and Kp*tau is again to prevent overshoot).
 
and I also haven't received any formal control theory training:P
 
6:17 PM
HpT(s) describes the physics (of the satellite in this case - the satellite whose antenna dish we wish to turn).
Ah nvm then XD
 
Satellites? I can see why you'd want it to be good:D
 
Meh that's just some extra the prof provided as "background", could be anything to me really - so long as it has a natural frequency etc (any spring-mass-damper or inductor-resistor-capacitor system could be used).
 
But satelliiiiiiites maaaaan :P
 
6:34 PM
Tristan discussing Docs on his stream.
Magical.
 
user6568562
I gave up after a couple of attempts to connect : /
 
Very sadly I can't watch
 
I physically can, but physiologically can't:(
 
I popped in, but it's on mute
 
young kids and I think he's streaming Doom right now - do not need to deal with nightmares tonight :(
 
6:47 PM
Watching that is only a nightmare if you're a monster chunkachunk reload
 
7:05 PM
@RobertGrant DSS have been common in hospitals (in US, and mostly in pharmacies, at least) for a while but they are under-utilized so hopefully this put some umph behind the push to use them more
 
OOH. Watson style things?
The line you replied to confused me :)
 
yes, Watson stuff
not monsters from space
 
ST:TNG is on Netflix! Woop.
 
7:49 PM
@RobertGrant !!!
and officially hating JavaScript / Android / Ionic / etc now
especially websql
 
 
2 hours later…
9:42 PM
anyone have experience with pandas?
 
by that Andras means just ask your question @user1917407
 
user6568562
Does anyone have a good resource on monetary applications in Python ? I am reading the Decimal library documentations and found a couple of useful .format functions. But I couldn't find an extensive resource on the subject.
 
pandas was made by a guy for his work as a quant in finance industry so I would stick with it
 
@randomhopeful Yes, there is a good book called "Python for Finance" or some such.
 
9:48 PM
@JGreenwell actually, I meant "when you enter a room, make yourself acquainted with the rules". Just asking your question is a minor corollary, and also a symptom of somebody not reading said rules.
 
wim
gold how the heck you manage to get sublimetext , sublimetext2 , and sublimetext3 badges before python badge
 
but I was lazy so I went with the link
 
also would look at PyData videos for other options
 
user6568562
@Ffisegydd @JGreenwell
http://www.ahernseeds.com/wp-content/uploads/2013/08/Banner-Productos-Melon.jpg
 
user6568562
You rule [ :
 
9:50 PM
Not the least appropriate picture of melons you could've gone with - good work!
Rbrb
 
@AndrasDeak fair, I was lazy and just went with the short blurb :)
 
I assume that "melon" is some kind of Salad term, from the context I'm going to go with it meaning "Thanks"
 
I only remember rhubarb, cabbage, and garlic - after that I just guess
 
user6568562
@Ffisegydd You must be the regular who doesn't like Salad terms that much, someone else told me about : D Yes it was a very grateful thank you.
 
9:52 PM
wildly and based on a randomized algorithm
 
I'm one of them :P though I'm probably the most vocal one
 
how can i save a column from a groupby object as a new column in a dataframe?
in pandas
 
@Ffisegydd that often makes people peas, but that's not necessarily bean
 
DSM
@user1917407: you're going to need to be more specific.
 
 
1 hour later…
11:06 PM
Hello guys, does anybody know how to replace a previously added image with a new one on a PyQt Dialog?
 
11:51 PM
I'm freaking loving Seaborn
 

« first day (2122 days earlier)      last day (2818 days later) »