« first day (2113 days earlier)      last day (2841 days later) » 

5:00 PM
If @davidism is going to mark this as duplicate then why not share the duplicated question? At least that should lead me to an answer. — DigitalDisaster 38 secs ago
Read the top of the page. — davidism 19 secs ago
Really?
Wait, someone just hammered it open?!
yam it
@ClodoaldoNeto I'm curious why you've reopened this. I think the dupe pretty clearly described how to convert a PostgreSQL query from Python to a serializable format. — davidism 27 secs ago
 
network down....wifi works...vpn won't. Demo's supposed to start four minutes ago
Friday. Friday. Friday.
 
yes, remember trial by fire is just how we make steel stronger
or some other badly misguided motivational quote that management gives
Your not pointing him to an example he can just copy&paste - so it must not be a duplicate @davidism
:\
 
Actually, there is a copy paste answer: the second one. It seems like they're just bad at reading.
 
@JGreenwell nobody gets strings;)
 
according to my physicist friend, nobody gets gravity either
 
5:13 PM
QFT is a very general term, it incorporates all particle physics, but yes, I'm pretty sure string theory's in there too
@JGreenwell yup
 
Welp, I voted to close it as dupe
 
you may be at a garlic point davidism
 
And nobody understands charge...
 
@JGreenwell Well - there's the expression: "There's no such thing as gravity. The Earth just sucks"
 
that one was actually kinda shocking the first time I heard it (you know Classical Physics and Newton with the apple myth)
 
5:16 PM
Guys I learned a cool web trick: try replacing ?watch in youtube with ?watch_popup
 
@corvid h4x0r life
 
I just wanted to add a konami code to my program that opened a web view with a dumb video in it
 
@corvid yum
 
cbg
 
5:18 PM
Do any ROs want to kick me so I can test my kick-detection code?
 
I guess I could just kick someone myself, but I suspect that would be impolite
 
@Kevin kick yoself before you lit yoself (bae)
I know you can't do that...shame
 
@Kevin kick you, or kick Terry?
 
Me. I want to see if Terry comments humorously on the event, and he can't do that if he himself is kicked.
 
5:22 PM
As if my record wasn't bad enough already. :-P @JonClements
 
Terry's avatar freaks me out. You should call him Frank.
 
I'm surprised we can even kick ROs.
 
@JGreenwell Yeah, but jet fuel can't melt, etc.
 
terry's avatar looks like \,,/
 
5:23 PM
jet fuel can't melt? okay, officially out of my depth
 
@davidism well since you can de-RO a RO, no use in constraining kicks
 
It's so dark without Kevin here. I miss the starlight.
 
Hmm, terry didn't say anything. I have to return to the drawing board.
 
I have brought shame to our family, father.
 
:D
@Terry do you do any replies yet?
no:(
 
5:24 PM
Yes, you have. But no matter. You'll be made... Correct... Soon enough.
 
@Kevin have you tested the new "room timeout" feature?
 
@WayneWerner Added tip: you can add ?autoplay=1 to be super annoying
 
I've been looking for an excuse to click the button.
 
Does that give a chatter a "timeout" or lock out the room?
 
I love it how Shog used Magisch as an example in the FAQ edit
 
5:26 PM
I'm not familiar with such a feature, unless you're referring to rabbit issue #10, "ban mode"
 
@Programmer mod-like room freeze by RO, I think
 
magisch? what is that dutch?
 
@Andras no replies other than the ones that Kevin has to input manually
 
Except for this one:
!ping
 
5:27 PM
pong
 
that's automatic. But it only works for me
 
@JGreenwell he's a German dude in SOCVR, and he has a tendency to stir up crapstorms with the best of intentions:) Often related to the fact that he knows no compromise when it comes to rules.
!ping
 
To be added to the authorized users list for !ping, send 1$ plus shipping and handling fees to Kevin Kevinson, PO Box...
 
worth a try:P
 
What happens if you edited one of your messages to "!ping"? :P
 
5:28 PM
@AndrasDeak Different than a freeze... it's a like a timed mini-freeze which prevents anyone except ROs talking
 
ah, so I was close :)
 
@JonClements oooh, thanks. I thought it applied to ROs as well
 
@Programmer It probably wouldn't work. Uh, I think.
 
and my German friends are marching towards my house to "educate" me on saying Dutch was close to German
 
@AndrasDeak a freeze prevents ROs from talking... a timeout doesn't
 
5:29 PM
Found it!
56
A: A guide to moderating chat

bluefeetWhat tools are available to room owners? Room owners are users that have some elevated permissions in a chatroom. Typically, they will be the first line of defense when it comes to inappropriate content or behavior in a room. Users will look to the room owners to guide the room. The room owners...

@JonClements yeah I gathered that now, thanks:)
 
Ok, gotta log out for a bit...
 
> Try to write a message that explains the problem you've observed and encourages people to reflect. Avoid messages that will further inflame tempers or that point fingers at individuals. Note that the message is limited to 100 characters.

Good: This conversation is getting heated - let's take a break and talk about something else.
Bad: Magisch ruined it for everyone. Now no one gets to talk.
Good: Conversation here should be relevant to SciFi enthusiasts; let's create a separate room for politics
@JGreenwell call them Hollands, that will defuse the situation
Oh wait, you're worried about German friends:P
 
@JonClements alright room, you're in timeout!
(timeouts don't prevent my children from talking, either ;)
 
@WayneWerner have you tried a cattle prod?
 
Ok, so I assumed that all kick events would have a content value of "priv 1815 created" because that's what it said the first time I kicked myself.
 
5:36 PM
you can kick yourself?
that's funny
 
But the second time I kicked myself, it had a value of "priv 1817 created".
 
maybe it's 18##?
or 181#
 
maybe it's globally incremental
 
Well by "kick myself" I mean, log in on Firefox as Terry, log in using the bot as Kevin, and have the bot kick me
 
maybe it depends on whether RO is the kickee?
 
5:37 PM
@Kevin err... so who ends up kicked - you or the bot?
 
Me.
 
weird... as far as I can tell - you've only been kicked once...
 
stupid clickbait headline, but interesting read anyway
 
And by "me" I mean the account Terry, piloted by the human Kevin.
Not to be confused with the account Kevin, piloted by the bot main.py
 
5:39 PM
@AndrasDeak that was almost in English
@Kevin wait, there's a human Kevin?
 
Anyway. I guess what I can do is just look for the substring "created" because the only two "account level changed" events I've seen so far are "user kickmuted" and "user unmuted" and the latter's content is "priv <number> deleted"
@AndrasDeak Well, in real life I am an abstract partial tesselation of white polygons on an infinite green plane, but I identify as human. Mostly for tax reasons.
 
that's racist
 
@Kevin Yeah... looks like that's a permission adjustment event...
 
There are probably other "account level changed" events I haven't seen yet, like "got permission to post in a gallery room" but for the time being I can ignore them because room six isn't a gallery room.
 
5:42 PM
@idjaw they're called Ducks
but spelled DUKW
 
no one would mess with me in one of those
Move. I'm a DUKWAAAAARIOR
 
They still had a few for training when I started in military but pretty much been replaced with awesome hovercrafts
 
woooo version 2.0 looks awesome! Will definitely upgrade
Does it have Bluetooth?
 
I've seen those ducks
I've always wanted a hovercraft
i had a friend with one of these
 
@WayneWerner I did one of those in PA. So much fun as a child.
 
5:52 PM
Time to figure out how to setup a server on localhost that can respond to XMLHttpRequests.
My fifteen seconds of googling suggests that I need http.server.
 
Just putting it out there for fellow Windows users. Today is the last day for free Windows 10 upgrades
 
And if you upgrade and then downgrade back to 7, you keep the free 10 license in perpetuity.
 
DSM
I forced myself to upgrade last night even though it was the first time I'd booted into windows in a year and a half on that notebook. I screwed up the boot process a long time ago, though, so if I want to boot into windows I have to hold down F12..
 
re-cbg
Whoops
 
re-cbg
 
5:59 PM
There we go.
 
@MorganThrapp downgrading is a thing?
 
@AndrasDeak I forget where I saw it, but yes.
 
sneaky, sneaky
 
I heard it doesn't work well though.
 
6:01 PM
Alright. Successful demo. Successful sprint. Time to retro this puppy. rbrb friends. If I'm not back, have a great rest of the day and weekend. Try to get nuts this weekend. You deserve it. Erryone in the chat get tipsy.
 
I have no idea how well it works, I've been on 10 since developer betas.
Have a good weekend, idjaw!
 
peace
 
@idjaw it has GPS
and Blue Force Tracker
which is better
Have a great weekend
 
Ok, my first BAseHttpRequestHandler can see that a do_GET call is occurring when I try to go to localhost:8000 in Firefox, but the browser shows "Server not found" even though I'm returning "<html><body>Hello</body></html>". I guess that's not how I'm supposed to be doing that.
I probably need to specify a... Response type... Or something. I don't know.
I'm right before the threshold of the "knows just enough to be dangerous" category
 
@WayneWerner hovercrafts are really weird to ride on - first a slight bump as it inflates and then you just feel like your floating
 
6:07 PM
@JGreenwell as you are ;)
 
not flying (like in a helo) but floating kinda like a boat but your on the ground
 
self.send_response(200, "<html><body>Hello</body></html>") at least stops "server not found" from occurring, but now the browser is just showing a blank screen.
 
@Kevin is that a socket? Or are you supposed to add all the header information?
 
@JGreenwell especially if it's full of eels
 
It's not a socket, it's an http.server.HTTPServer. But I'm not married to this approach. I'll use whatever works with the least amount of frustration.
And/or whatever the other SoPython contributors will mock me the least for using.
 
6:15 PM
lol.
 
not eels?!
 
Oops, I'm supposed to be writing to wfile. gotta RT those FMs.
 
are you sending the headers?
(personally I enjoy flask, because it's super simple to do simple things)
i.e. the hello world example is this
from flask import Flask
app = Flask(__name__)

@app.route('/')
def main():
    return '<html><body><h1>Yep, it works</h1></body></html>'

app.run(debug=True)
 
There we go, the browser is rendering "Hello" as desired.
import http.server

class MyHandler(http.server.BaseHTTPRequestHandler):
    def do_GET(self, *args):
        self.send_response(200)
        self.end_headers()
        self.wfile.write(b"<html><body>Hello</body></html>")

server_address = ('', 8000)
httpd = http.server.HTTPServer(server_address, MyHandler)
httpd.serve_forever()
 
Very nice
 
6:20 PM
does the IDE topic just seem like it is bait for people to rep farm and argue about "the best IDE/tool" - to anyone else?
 
@WayneWerner Yeah I'm almost certainly going to switch to flask once I'm out of the prototyping phase
... If not sooner, if prototyping takes much longer.
 
@Kevin Why not switch now? lol
 
@JGreenwell Yes, SOD does seem like an excuse for people to rep farm.
 
@JGreenwell very much - even more than normal
 
Because I've got 99% of the base technology working with just built-in libs so the marginal gain from installing flask isn't that attractive
 
6:23 PM
yeah, but that topic seems extreme to me. Just add your favorite IDE, and GVim cause that's as good as an IDE, but that means we have to add GMACs, and that means notepad.....
 
But it's going to become attractive as soon as I have to justify my design decisions to davidism.
 
yeah, that will certainly be a push toward Flask
 
I've actually used cat << EOF > file to write some stuff
 
all real programmers have Wayne ;)
 
6:29 PM
@JGreenwell also true :D
 
Oh boy, I googled my error message and got zero stack overflow hits.
 
@Kevin disable safe search
 
okay, added delete request we'll see what happens
btw. That is well and fully covered in python wiki too
 
wowo plot thickens
now i have corrupt msi.dll in windows\system32
 
Whoops forgot the http:// prefix in my get request.
 
6:33 PM
it seems i should have a copy in windows\syswow64 (wow!)
so I am trying to copy it to windows\system32
but can't since I do not have permissions.
WINDOWS FFS
so I am now booting to linux to copy that 1 file over
 
@JGreenwell Well... I clicked on something...
 
even as administrator?
 
even as administrator
I should take ownership of the whole disk or something IDK
 
Ok, cool. My Firefox userscript can talk to Python on localhost. This should open up some fun possibilities.
 
linux can copy without issues, of course.
 
6:34 PM
could you run Powershell as administrator and copy it that way?
 
idk now installing update 16/32
 
cause I've never had that fail.....but I'd believe it if it did
 
but some of those are going to fail if they're msi's... sigh.
 
DSM
Given Kevin's already infamous userscript wizardry, I'm worried that now he'll be even more powerful.
 
also on another computer I am trying to make usb recovery boot to work
to fix this stupid idiotic bcd binary registry hive FFS
who in their right mind decided this is a sane system should probably have better medication
 
6:36 PM
hmm....do topic deletes only need a single approve vote if it is mod? As I've had to have two most of the time I approve those. (also thanks @JonClements)
 
If I could get everybody's userscript to talk to my localhost, that would be pretty bonkers
I don't think HugeCo wants me passing around the ip addresses of its computers, though
 
@JGreenwell well - can apparently reject edits with a single click... so it might be the same with deletions?
 
You can trust us.
 
I think that's as it should be, was just curious
 
6:38 PM
@Ffisegydd Page 1 of my employee's manual is a full-size image of your avatar and the text DO NOT TRUST HIS LIES
12
 
Fair
 
@Kevin +1 for Memento
(or is that Don't believe his lies?)
 
Still not seen Memento.
 
But now that you say it's fair, maybe it isn't fair.
 
I love it! One of my favourite movies
 
6:39 PM
God I love that movie.
 
DSM
Me neither! I think I was being more indie than post-indie in not watching it..
 
Got it on bluray, just never gotten round to it.
 
@AndrasDeak How thematically appropriate that I mis-remembered the proper reference.
 
@Ffisegydd you have my support for getting round to it eventually:)
@Kevin :D
it Shall Not Be Discussed Further
 
@AnttiHaapala That dehydration vaccine is mostly the dangerous chemical dihydrogen monoxide!
 
6:41 PM
@WayneWerner it's what keeps terrorists alive
 
I heard they found traces of it in the atmosphere after 9/11.
 
it killed an average of 10 people a day in 2013-2015
 
That chemical has been detected in trace amounts in the ice caps of Mars... A planet which would kill your children in minutes.
 
@WayneWerner in the US alone...
 
@WayneWerner Does that include deadly attacks by various beasts striving on the chemical? I mean hippos.
 
6:43 PM
@AndrasDeak nope, just the vaccine improperly applied
 
66% of the composite atoms of dihydrogen monoxide have been detected on the surface of known carcinogenic agent "The Sun"
 
I still can't believe that kid was wearing that shirt
 
kid? shirt?
 
protect yourself from the DHM menace, vote for Sweet Meteor O' Death in the 2016 elections
 
6:45 PM
@Kevin which is a british "news"paper
 
yesterday, by JGreenwell
lol...I actually saw a young guy wearing a "Ban Dihydrogen Monoxide" shirt and thought it was a great joke shirt. Then I realized he actually meant it and I wept for the future of science.
 
@Jon just msgd you in slack :-)
 
@JGreenwell hmm why do you think he'd actually meant it?
 
cause I asked him
 
perhaps he was just a Finn
 
6:46 PM
DHM is already inside you. Get it out by reversing the direction of your microwave's magnetron using the following steps...
 
of course, worse was when I taught a few summer math courses and one person came in wearing a shirt that said "Math is useless"
 
@JGreenwell nooooooo
 
Math is useless in the same way a screwdriver is useless. It just kind of sits there doing nothing.
Come on, screwdriver, have a little agency. Write an opera or something.
 
Maths don't kill problems.
 
so I made him calculate the amount of money he would lose if he failed the class (thereby not getting degree) over time series
 
6:49 PM
it is so funny, so many people say that math is useless because they didn't need it ever since (physicians, vets, political scientists (is there a word for that))
 
Mathematicians on the other hand. Can't trust a mathematician!
 
but neither do I :D
 
@JGreenwell maybe he was a really good troll
 
I've not needed a single bit of calculus since graduating.
 
Not surprising in the code monkey business.
 
6:51 PM
I've had a couple instances where I needed to solve a system of linear equations, which would have been a really good time to remember anything I learned from linear algebra, but I had already forgotten it all
 
I did study more of the engineering maths than was necessary to graduate.
 
DSM
I've needed lots of math, but the academic + data physics career path kind of guarantees that..
 
except the fact that triangles are involved somehow, which admittedly did land me on a useful wikipedia page
 
completely useless for me. differential equations, na-a.
numerical methods, yeah right.
they've written in C and assembler everything that they taught in that course
complex analysis
lol.
 
yeah, this was college math though (so like order of operations, basic operations, really highest was barely covering slope/intercept).....it was bad
 
6:53 PM
Yeah but I need to at least know enough about the topic to google what I need
 
"residue theorem"
never needed that, never close to needing that
 
I use math constantly but then data and analysis (and that darn AI stuff) kinda makes me a special case.....knowing what 10% of something is = stuff I assume everyone should know
 
I am doing data analysis,
yet residue theorem and line integrals are of no use :D
they wanted to educate RF engineers for Nokia <3
 
mostly everything below calculus (most I use of calculus is determining limits and plotting gradients)
more graph, set theory, and statistics for actual math (and I let the computer do the calcuations) and knowing how to apply logic and combinatorics is helpful
 
Most of the maths I use day-in-day-out now I wasn't even taught at uni, I've had to teach myself. Luckily the algebra/matrix/set/calculus theory has helped in learning it.
 
DSM
7:06 PM
Just in terms of how much it helps you understand other things, I wish Joe Q. Public was better at statistics.
 
Yeah my statistics knowledge was pretty minimal, basically just errors on measurements.
Curse of being an experimental physicist, don't need any of that hypothesis testing or Bayesian prob. or anything.
 
@DSM And that correlation does not imply causation
so good
 
yeah, I didn't really start learning any math until Graduate and most of that was because I saw how much I needed it and forced myself (plus I discovered I liked Discrete Math cause it has fun puzzles)
 
DSM
I know that one of the things which drove a lot of particle physicists into the Bayesian camp is that they got tired of reporting frequentist error bands which crossed into negative values for mass.
 
:D
 
7:09 PM
@WayneWerner I have a big poster in my office with that quote
 
Bayesian is just so much better/more intuitive.
 
@JGreenwell very nice. Too bad more grade school teachers don't teach that sort of thing
 
*Looking around with an intelligent expression on his face*
 
Wayne: also cause cancer causes cell phones
no, no - when Andras start talking about Math stuff I end up reading research papers until the wee hours of the morning trying to figure out what he just said: it's too much
 
:D
@JGreenwell I was going to comment on him holding the laptop, then I read the alt text. Kudos, Randall.
 
7:21 PM
good, good. I'm safe then
 
@JGreenwell I'm a bit worried that by morning you found out that I'm a fraud
 
typically that's just when I give up trying to fiqure it out....always more to learn there is
 
What's that bit from Life of Brian... "Only the Prophet would deny that he is the Prophet!"
 
"Only the true Messiah denies His divinity"
 
That's the one.
 
7:27 PM
since I just watched it
20 minutes ago
 
The true power of Python flows through you.
 
B: "Now F* off?" Arthur: "How shall we F* off O Lord?"
 
Always look on the bright side of life
Why does my function not return anything if it doesn't return anything?
 
...wait, what?
oh, nvrmnd
 
yeah ;)
I'm always disappoint when I come across stuff like that. I just hope there's a good question, and surprise, I'm not returning anything from my function!
 
7:43 PM
the answer is more disappointing
 
He's trying to learn python by metaprogramming
Or he's just really bad at explaining what he wants to know
 
he's C++ coming to Python and refuses to see Python as Python (just as a new programming language that he is going to try and force to work like C++)
 
It's almost as if the technical documentation isn't what you're supposed to be reading. If only there was some other document that was sort of like a tutor for students. But what would it be called?
 
I see that often enough (usually Java people)
that might be just due to my region though
 
@WayneWerner I'm sure they'll be very happy with Martijn's proper answer
 
7:51 PM
@AndrasDeak I wanted to point them towards that in their other question
effectively the problem was / in python2 vs python3
 
8:09 PM
when ops writing the app and he doesn't know what a function definition is :( I will kill myself..
 
Ops? like IT Ops? when do they ever program anything
 
OPs
OP's
OP is
Original Poster is
@Marko you're confused; if somebody else is stupid, you don't kill yourself
 
oh, well that happens all the time
 
How many constructors can a class have?
 
@Yeeee what's a constructor?:P
 
8:14 PM
366
Q: What is a clean, pythonic way to have multiple constructors in Python?

winsmithI can't find a definitive answer for this. AFAIK, you can't have multiple __init__ functions in a Python class. So what is a good way to solve this problem? Suppose I have an class called Cheese with the number_of_holes property. How can I have two ways of creating cheese-objects... one that ...

 
@AndrasDeak you kill him ?
lol
 
two machines, two windozes, two fixes...
both with linux of course.
impossible to fix windows with windows!!!!!!
 
impossibru!:D
 
on one I needed to copy msi.dll from one place to another... can't do... except in linux
on the other i needed to fix the bcd boot configuration data... for which I needed to build a rescue disk, using linux. I needed to format the usb disk with linux because windows couldn't do it. I needed to write the mbr to the usb disk with linux, because windows fsckd it up and can't do it.
 
Is this the natural continuation of your php clustershuck?
 
8:20 PM
furthermore my bios still couldn't boot from the usb stick for some reason, so I used grub to boot the windows rescue.
like utter wtf.
how do people fix windows without linux?!?
4
 
pff...
@AnttiHaapala they don't notice it's broken?
they probably can't tell the difference
 
yeah they just reinstall
however I do not know what is happening on that windows
has now been starting for 10 miutes :D:D
 
:D
Is it doing some posh fairy flower dance as a loading screen?
or just a calming text saying "loading, please wait......"?
 
starting windows
(c) microsnot corporation
anyhow, windows 10 free update ends at 23:59 UTC-10
so IICC then I've got 13.5 hours more
(gonna need it)
 
lol:D
 
8:30 PM
we boot to command line with powershell and pray that it is fixable and doesn't require a re-install
 
@AnttiHaapala Knoppix was a staple in my CD case for a while
I've helped many a poor Windows user recover data and fix settings
 
those of us that are smart also keep a few bootable Linux CDs
but we keep that on the downlow
 
Ahhhh, debugging production code at 4:38PM on a Friday, what could possibly go wrong?
 
TGIF, rbrb all
 
rbrb, enjoy
@MorganThrapp Not one thing - just like deploying to production on Friday ;)
 
8:48 PM
@MorganThrapp you could next be saying: "still yet to sleep... can't believe I'm debugging production code at 4:38PM on a Sunday..."?
 
Oh, I'm not pushing this. :P It's nothing critical.
It can wait til Monday morning.
 
I need some python advice. I got a large dict that contains options (options['some_param']). I'm having trouble keeping the large number of enums in check, and spelling errors etc. Whats the typical solution?
 
When you say "large" do you mean 10+? 50+? 100+?
 
^ Like I haven't heard that one before
 
@Mikhail sounds like you have too many things that are configurable?
 

« first day (2113 days earlier)      last day (2841 days later) »