« first day (1846 days earlier)      last day (3328 days later) » 

Yeah... shame that's not been done with 2015 data - that'd be interesting
I'm still curious as to how I appear in my own little cluster there - I'm a lonely little 24k rep yellow puppy :(
Plus, Martijn would be absolutely smashing that now...
Air
Air
@Ffisegydd You might not need to invest too much money, if you can experiment/learn on the free tier. Though, that's what I tried to do, and I goofed up and got charged $5 anyway.
DSM
DSM
I'm not even on that because I've never asked a question. :-/
Air
Air
Their interface doesn't make it very obvious, when you're viewing your active instances, that you're only viewing one availability zone at a time, and you have to switch between zones - so I had two instances running when I thought I had only one.
By the time I got the billing alert that I had exceeded $0, the extra instance had run for about 300 hours (doing precisely nothing, because it was the first instance I created, which I then couldn't find and assumed had been deallocated)
19:26
Anyone able to help me with mah question? :P
@Air The only extra charges I incurred was leaving an elastic IP unclaimed
@Humvee202 The one you most recently posted on the main site? Looks like it already has an accepted answer.
the Elastic IPs are free so long as they're in use
But if you're not using them, they charge you some ridiculously small amount
like $0.10/day or something? I don't even remember, now.
DSM
DSM
@Kevin: and unfortunately an answer which perpetuates the myth that there are some primitive types which behave differently from non-primitive (imprimitive?) ones.
Air
Air
@AdamSmith Yeah, I noticed that - I'm not sure why they charge you if you don't have it linked to an instance, but not if you do.
19:31
@Air presumably because it costs them money, which you would otherwise be paying them by running the instance it's attached to! :)
I should look into just hosting my mail server myself
I have the hardware laying around and the electricity cost would be less than $10/mo :P
but my network hardware is firmly consumer grade and I don't know if Comcast will whitelist me to send and accept mail
@DSM Yep it's kind of a mess.
Just made a comment on that answer and immediately deleted it. My "don't get involved" meter jumped into the red for a second.
He saw it! Gasp!
I'll just pretend it's for a different Kevin.
Thanks @DSM. Much more concise than what I was writing lol
DSM
DSM
I think he's carrying over an object model from a different language into Python. :-/
19:39
Fight that good fight.
I need food
Dairy Queen for lunch today. Meh
DSM
DSM
Strength for the struggle!
You're the hero Gotham (deserves | needs)
DSM
DSM
@AdamSmith: Reese's Pieces Blizzard it is!
Air
Air
@AdamSmith I'm in the same boat there, really - I repurposed an old laptop as a home server and have exposed it to the greater internet a couple times just to test things out but I don't think it can handle any significant demands in terms of traffic and uptime, so I've stuck to hosting plans
19:48
@Air traffic doesn't bother me so much, but spammers have ruined the mail relay system so most addresses designated consumer grade aren't allowed to serve as a relay
Hmmmm, numpy.random.choice is returning an empty list. I can't seem to find anything in the docs that says that could happen. Anyone have any idea?
My choices and weights are the same length.
I request an MCVE.
well-known issue with numpy if you have too many zeroes and not enough ones in your bitstream pipeline. Try unplugging your cat5, shaking it to let any errant bits fall out, then plugging it back in the other way round to reverse the polarity.
Wait, figured it out. p is kwarg only and I wasn't using kwarg.
Now I just have to make it like floats. :/
Another job well done. pats self on back
19:56
Followup question, my weights sum to 1.00003, but they need to sum to 1. Is there a way to make it handle floats better?
DSM
DSM
They made that pretty sensitive a while back. Just normalize your weights.
How? I'm doing [round(weight/100,6) for weight in weights]
DSM
DSM
Why round? Just pass weights/weights.sum().
That worked, thanks!
numpy is still magic to me
DSM
DSM
20:03
It's magic to us all. :-)
numpy is the numpiest.
DSM
DSM
Having my phone shake when I get a comment on SO is still astonishing to me. It's like a fictional character holding the door for me or something.
Alright, one last question. How do I check if an object is one of a list of classes?
ooh ooh I know this!
I'm doing if inspect.isclass(o) and o.__class__ in list_of_classes, but that doesn't seem to work.
20:09
isinstance accepts a sequence
Oh, really? Sweet! Thank you
if isinstance(o, (str, int, list, dict)): do_something_with_the_strintlistdict(o)
I got a bad case of the strints
is it affecting your dicts?
in which case you should really go to the doctor
I'll tell you when you're older.
DSM
DSM
20:17
@JonClements: if you get a second, the comment section here could do with a bulk cleanup. It started reasonably productively but went off the rails. :-/
Moved 'em to chat - didn't have time to read through and prune selectively
DSM
DSM
Works for me.
thanks :)
cbg
I'm sure that it has been asked before
@BhargavRao I was looking at this, what do you think: stackoverflow.com/questions/430811/…
20:32
Quite similar but the OP wants the global variables also.
Similarly, there's stackoverflow.com/questions/843277/… which answers what they're looking for, but the name of the question doesn't make it obvious
I leave it up to the ones with the dupe hammer to squash it
:)
All are soo close but none a dupe :/
Yeah, which is frustrating, because I know I've seen that same question in a few different forms several times... Just can't find them...
20:37
I've even answered a question like this...and I just started. :P
:o I'm 1 point away from being "trusted"
@Joe One reason why we need to edit the title to meaningful stuff
maybe I should undo a downvote somewhere :D
@tzaman That rep looks cool 19,999. Congrats in advance.
@tzaman :)
20:38
thanks in advance! :D
@tzaman Congrats :) +1
congrats @tzaman
woot, thanks all!
now to make all the delvotes
DSM
DSM
Pineapples for tzaman!
(whew)
Whew?
(and congrats, @tzaman!)
20:45
Passed an audit? :P
DSM
DSM
@JoeKington: ended a long conv. with someone new to Python's object model who was deeply confused about things. Came up with a dictionary-based analogy I might use in the future, though, so it wasn't a total loss.
(Actually I passed 1 now)
21:03
Ah! Fun! Always good when you get reusable analogies out of things, though!
Oh, and now I see the chat conversation. I actually really like that dictionary analogy to explain how variable names are related to actual objects in Python. May have to borrow it at some point in the future!
that's always how I understood it. I kind of get pointers, though, so if you just think of every variable as actually being a pointer it works too
as long as you also assume that Python will dereference the pointer any time you want to do something to it
so basically I imagine Python knows exactly as much about pointers as I do. Enough to use them: not enough to try any pointer arithmetic.
It's all very simple until you try to puzzle out how a, a[0] = [[0]]*2 works
Wow. Looks the same as a = []; a.append(a)
that's what I assumed it would be
since [[0]] * 2 gives two references to the same object.
I'm sure it's been discussed in here before but I can't come up with a good search term
21:16
Where's that canonical post for changes sublist unexpectedly
I just googled my comment and it was the first link :P
Hmm, maybe I'm thinking of this. In which case, I got the code wrong, it's a = a[0] = [0]
DSM
DSM
TBH I'm not sure that allowing multiplication of lists was a good idea. It's relatively seldom useful (various bits of wizardry notwithstanding) and causes a fair bit of confusion.
I like for code golfing, but yeah, otherwise it's pretty pointless.
21:19
That one's a bit harder to work out if you don't know the order of resolution of multiple assignment
Although it's a bit of a giveaway if you assume that it won't crash, so surely a = [0] goes first
Is @Air here? Or anyone else who knows golang? Trying to think through something w.r.t. static typing and my Python brain doesn't work that way
trying to compare the md5 hash of a file to the contents of a text file
the md5 hash is a byte slice, and I can read bytes from the text file and compare those, or I can use bufio to read the textfile into a string, type convert, and compare those instead
seems to me I should just compare the bytes, but maybe it doesn't work that way?
21:35
Cbg.
cbg @TigerhawkT3
Is there a way to use map to create arbitrary objects? Something like map(__init__, list_of_classes).
map(lambda type_: type_.__init__(), list_of_types)
I would think
or just lambda type_: type_()
why the lambda: just use the type
Because I don't know the type ahead of time.
Disclaimer: Golf.
21:47
@Ffisegydd The developers of GIF wanted it pronounced that way: "Choosy developers choose GIF." Like the peanut butter, JIF. Pronouncing it with a hard "G" is non-canon.
does it have to be a map? (T() for T in classes)
Oooo, even better.
In What's new in Py3 they've mentioned better not use map
well that's just if you expect map to give a list
map is still good for generating sequences, though I still find genexps more readable
personal preference IMO
bah I hate static typing
cannot use argHash (type [16]byte) as type []byte in argument to bytes.EqualFold
21:54
I much prefer to move my fingers when typing as well
3:30am here ... rbrb all
really? You can't use an array of fixed size in place of a slice of dynamic size?
stupid piece of rutabaga.
Whoa whoa, no reason for such harsh words
It's not even written in the salad language guide, so you know it means something really awful.
My sister's computer is dying with Windows profile issues. I told her two days ago to back up the whopping 300MB of important documents... and she didn't. And now a simple restart isn't enough to get past the error. And she needs those documents within 10 minutes.
Sounds like a case of the "IToldYouSos"
Rbrb :)
DSM
DSM
22:02
10 minutes is doable, I guess: yank the drive, put it in a case, mount it on another machine. Not something you'd be able to talk a nontechie through over the phone, though.
Fortunately, all the fixes online are mere registry editing hacks and hidden profile things with dire warning messages.
It would help if I could actually boot Windows in Safe Mode, but hammering F8 doesn't change startup's F8.
DSM
DSM
One of the reasons I keep a linux distro on my physical keychain. Never know when a machine's OS is going to flake out and I'm going to need to grab something from it without a screwdriver handy..
^^I do the same thing!
DSM
DSM
As did my teacher, and his teacher before him.. okay, my teacher used a DVD, but you get the idea. :-)
were zip drives bootable?
probably not eh?
DSM
DSM
22:07
I never actually had one, so couldn't tell you. Missed that window somehow.
I"m literally unable to start her computer in safe mode. I hold F8 and it doesn't do anything.
I'm finding some articles that say it is possible. I think I still have it in my parents basement
pretty sure you needed file system drivers for zip disks, so no, not bootable
but I could be wrong
DSM
DSM
That sounds pretty frotzed. If you need the files before you can fix the system, mounting the drive from the non-native OS might be the right play.
I remember how excited I was to have something that could store 100MB. "I'll never run out of space now!"
DSM
DSM
22:15
When I was a kid I suggested that a friend should provide a data hosting service. I think he had about 20MB.
The idea was that people would encrypt their extra files and then give them to him for safekeeping. Made a certain kind of sense..
@idjaw yes
I definitely booted from zip disk
oh awesome!
but I was about 10 at the time. No idea how to do it now
what OS?
some flavor of DOS I'm sure
I wasn't playing with *nix at the time
and I doubt it could have booted Win95
(maybe, though)
22:18
I grew up on a Mac. back then it didn't really count as anything.
DSM
DSM
I sometimes think I was smarter about hardware-y stuff back then than I am now.
@DSM I chalk this up to "Time to tinker with stuff"
I have the same feeling when I go back and replay NES games
I remember beating Megaman
haha. I remember a few years ago I was ordering pieces for a computer...and then I noticed this awesome button "pay 50$ for us to build it for you"
Yeahhhh no WAY could I beat Megaman nnow
I clicked yes without a second thought
22:19
but then I remember coming home every day after school and playing Megaman for HOURS.
Street Fighter...oh man that one had me.
and ninja turtles
Updating a product database with "VAN HOLTEN PICKLN PCH BG PAPA"
DSM
DSM
♫ go ninja ♫ go ninja ♫ go! ♫
Apparently the verbiage on the package is "Portly." It's a pouch of portly pickles.
I just went to their website hah
@DSM did you bother watching the latest movie? I refuse to for the sake of my childhood
DSM
DSM
22:25
@idjaw: actually, I did. It was not great. Not even awful enough to be entertaining. Just not very good.
good to know. I stand by my boycott
DSM
DSM
Those were not hours well-spent. But there's a theatre very near my place, so I sometimes give in and see things I know I shouldn't.
I watched it as well. It wasn't awful, but agreed that it wasn't worth the price of admission
(and I watched it on amazon Prime or Netflix or something else that I was already paying for)
I need an action movie to keep me company tonight while I work one of my apps tonight. I like having silly movies in the background while I code for some reason.
Kung Fury? That's about the silliest
22:29
I've already indulged in its awesomeness
DSM
DSM
Is the last Mission Impossible available? It was a lot of fun. I wouldn't mind that in the background.
good call...I'll have to look out for that
So the third-to-the-top post on reddit right now is r/todayilearned talking about Rubber Duck Debugging
like five-thousand freaking votes. This is not new!
DSM
DSM
New to them, I guess.
I tried my "2 Linux distros 1 USB flash drive" method to at least get it to run some kind of OS, but it simply ignores the drive. I have it set to first priority, I even disabled the HDD OS option, but then it just says there's no OS. No USB port made it recognize the drive.
What kind of nonsense is this that I can't enter Safe Mode and I can't boot to Linux? These are the first steps of their respective solution paths.
22:31
@TigerhawkT3 "2 distros 1 drive" sounds like the kind of thing you should NSFW.
It is; that's why I say it.
best guess with no further information: USB hub is dead, power supply is at fault.
power supply is always at fault
I woke up once and my videocard melted...why? power supply!
well it didn't really melt....it was just really really burned
My previous computer's power supply was at fault. It was funny because I had no idea what the problem was, took it to a repair store, and the most specific they could get was "it's either the motherboard, the CPU, or the RAM. That'll be $70."
I killed a video card 8 years ago by spilling soda on it.
22:34
I just noticed your reddit comment......seriously??
I killed a video card... around the same time, actually, by poking it with a metal stick.
DSM
DSM
Killed a work machine by spilling coffee on it.
Mine still worked for a while, so I turned off the machine and tried to clean up the best I could then booted it again and played a game for a couple hours
apparently soda got inside the AGP (yep!) slot and carmelized due to the heat.
The stick was one of those mechanic's stethoscope's; I was trying to find the noisy part. I don't know why I didn't at least cover it with something non-conductive.
That was about it for that.
22:36
last AGP card I owned was a Ti4200
I have no idea what it wa
was
I can barely remember my current specs
(Sapphire R9)
(i5...I think? Maybe I skimped out and got the i3. I forget)
(8GB RAM. Or was it 16?)
(Windows 10. Or was it Mac OS?)
DSM
DSM
Time to flee. Thursday rhubarb for all!
rhubarb @DSM
Turns out Safe Mode isn't necessarily F8. Sometimes it's F5.
you have to check the motherboard specs
it can even be F11 sometimes
I think....
it's been a while since I did any of that
22:44
The card I poked to death was a Radeon 8500 LE with 128 MB of RAM. It was a slightly underclocked version of the most power card on the market, but it was only $200.
*powerful, not power.
I normally just start mashing keys until have the right one
F2, F5, F8, F11, and Del
are the ones that stand out to me
F10 maybe too?
then I'll get dumped into BIOS and have to figure out which one did that...
lol
New product idea: FunctionBar. "Tired of figuring out which function key to press for Safe Mode? With this this sleek rod, made out of durable ABS plastic, you can mash all of them at the same time with one simple press! It can also be used to discipline recalcitrant students! Buy now and we'll include a second one FREE! Just pay S&H."
Hello.
I need help with Python.
23:01
Hi - have a look at the room rules up on the top right (sopython.com/chatroom). In particular - just ask your question - if someone can help they will.
Speak, friend, and enter.
yeah - or that :)
@Rajinikanth we're all waiting with bated breath.
Maybe the python has gone into constriction mode and his arms are now pinned to his body.
Dear, he's mistaken programming with animal behavior.
23:10
I don't know how to feel about being repeatedly contacted by a former coworker with requests for work-related help.
he's doomed now, poor chap.
@TigerhawkT3 charge them?
I was promised a lunch, but I don't know what to think of that either. Would I be okay with doing it as a favor for a friend (the coworker is a cool guy)? Or should I charge them as a contractor at $200 an hour? Or should I see if I can help with just Teamviewer? They never taught this stuff in school. =\
If they were your roommate, would you help?
or would you charge them?
I feel like saying "I don't mind checking it out if it's something simple, but you may want to look at hiring someone if it's something I Can't fix in an hour" is entirely appropriate
I actually have helped a friend with work stuff before, but he's my best friend, I had nothing to do with his workplace, and I got to keep the tip. But this person is a coworker first and a friend second, and we've only hung out outside of work once, and it was while I was employed.
And I don't think the company would be able to pay me; the whole reason I don't work there anymore is because they're poor. They actually had another round of layoffs a few weeks ago.
proper way is to ask him to talk to his manager into contracting you'
23:24
profit
Air
Air
@AdamSmith There's a golang room that people sometimes talk in. Probably best to take such conversation there.
@Air I popped my head in there a week and some ago. "Last message sent 28 hours ago" or something like that lol
Air
Air
Yeah, that's been my disappointment with the SQL/db room, too.
But if we bring it in here we'll give davidism an ulcer.
user559633
evening gents (and ladies..making no assumptions, but i did look at the active user area)
wassup tristan
user559633
23:44
at a coffee shop that just turned into a grandmother social event room
bingo night?
user559633
hah, cackle and scream night ostensibly. i think it's time to move back to a city.

« first day (1846 days earlier)      last day (3328 days later) »