« first day (2354 days earlier)      last day (2597 days later) » 
00:00 - 17:0017:00 - 23:00

5:01 PM
@marxin Yep sorry, my bad
@Kevin for now I'm only planning to use it with people that I know personally, so confidence won't really be an issue. The site I'm overlaying does use https, however I'm not sure how this works with requests, does it automatically make them on https ? if I just include htttps:// at the beginning will it "automatically" be sent securely ?
 
I want to say "creating an automated process to login to the website should be exactly as secure as the customer logging into the website themselves" but I'm not willing to endorse that statement and put myself on the hook for when you accidentally leak 100,000 accounts' information because I forgot about some obscure attack vector
 
yes right :) don't worry about 100,000 accounts, this will probably be used by 20-30 people max. This is really more of an educational project for myself and people around me that might need it, than anything important. I think I'll go with what you said for now, and if I decide to scale up later then I'll try to do something else. Thanks for all the help !
 
@Kevin too late :V
 
Yeah, I'm currently wondering if "he told me 'acquire their plaintext credentials' so it's all his fault" would stand up in a court of law
 
Probably a better way would be to tell users to login to that site ahead of time and then your app will already have access to a cached session
 
5:12 PM
@enderland I can use a cached session from another website in mine ? How does that work ?
 
my bad, I thought I knew what he was talking about but I got unsure
 
I mean this discussion is basically "how do I make malware websites"
 
DSM
I'm deliberately not even saying things I think are true because if our guest is wearing a black hat I don't want to help, and if he's wearing a white hat, he should get advice from someone who's more qualified than me. So, basically, how 'bout them Jays?
 
how do those jays relate to them leafs?
 
I can't typecast jays to leafs :|
 
5:16 PM
@AndrasDeak city
looks like I have come back at an "interesting" moment
 
DSM
It's about time for me to start setting my fantasy roster so I'm in a little-round-ball mood.
 
do you do fantasy baseball too?
 
for a second I was wondering how "little round ball" applied to a puck
 
1 min ago, by enderland
I can't typecast jays to leafs :|
 
stereotypes will be stereo
 
5:18 PM
hehe
 
@Kevin really bad idea about credentials into plain text. opens up a whole can of worms.
 
based on my loss of interest throughout a season of <given_sport>
 
Pucks and balls look the same when viewed from above.
 
I only join fantasy playoff pools
 
@Kevin VR is the thing nowadays
you can even smell the puck
 
5:19 PM
4D!!!!!!!!!
 
DSM
@Kevin: maybe from really far above..
 
2.0 will also make you feel the hits
 
one of my pet peeves (calling smell or anything that is not described by a linear space "dimensions")
 
@DSM looks solid starting pitching, pen is lack luster like always (same as always). Hitting looks decent, overall excited.
 
Well I mean practically you can distinguish a puck from a baseball even if they have the same apparent shape. Y'know, because they're different colors.
But if all you have to go by is outline, then they're indistinguishable circles
 
5:22 PM
@Kevin profile is different on a puck, since it's rectangular :d
 
Well the camera in this hypothetical is nailed to the ceiling so I don't think you'll get a lot of clean profile shots that way. Unless pucks tend to topple end-over-end when they're airborne? idk
 
some puck spin while in the air or when it bounce off the ice, but mostly I didn't see the aerial view comment xD
 
I am building a json object in the wrong way please help
for player in teams["red"] + teams["blue"]:

myObj[player.steam_id] = {
    'stats': {
        'score': player.stats.score,
        'kills': player.stats.kills,
        'deaths': player.stats.deaths,
        'damage_dealt': player.stats.damage_dealt,
        'damage_taken': player.stats.damage_taken,
        'time': player.stats.time,
        'ping': player.stats.ping
    }
}


myJson = json.dumps(myObj)
r = requests.get('http://192.168.1.103:8000', params=myJson)
 
@neoDev what's wrong with it ? it looks like a dictionary to me more than anything ...
 
@Kevin *infinitely high ceiling
 
5:25 PM
@neoDev what errors are you seeing? what do you expect that isn't happening?
 
it becomes a single property
I am using requests
 
How did you determine that it becomes a single property?
 
(please ignore wrong indentation, which is ok in my code)
I am determining it because I am getting this on client side
and it all became a single property
I am trying to pass it to the server using GET method
please tell me how to fix it... :'(
this is how it comes to the server atm:
{ '{"76561198261670930": {"stats": {"deaths": 0, "time": 11875, "kills": 0, "damage_taken": 0, "ping": 8, "damage_dealt": 0, "score": 0}}}': '' }
 
DSM
Are you sure you're supposed to do the json encoding yourself?
 
@DSM what you mean?
 
user6845426
5:33 PM
I've used the `reduce()` function (OpenCV) to obtain a vertical projection of an image. The image im using is a text document (black background, white text). So the result of `reduce()` returns a nice vector:
0
0 *
43
433
43
0 *
0

Obviously, text lines > 0. Generally, how could I go about drawing lines (contours) between each line of text?
 
>>> import json
>>> x = { '{"76561198261670930": {"stats": {"deaths": 0, "time": 11875, "kills": 0, "damage_taken": 0, "ping": 8, "damage_dealt": 0, "score": 0}}}': '' }
>>> list(x.keys())[0]
'{"76561198261670930": {"stats": {"deaths": 0, "time": 11875, "kills": 0, "damage_taken": 0, "ping": 8, "damage_dealt": 0, "score": 0}}}'
>>> d = json.loads(list(x.keys())[0])
>>> d
{'76561198261670930': {'stats': {'kills': 0, 'damage_dealt': 0, 'time': 11875, 'ping': 8, 'score': 0, 'deaths': 0, 'damage_taken': 0}}}
 
DSM
@neoDev: typically when you pass a payload you pass a dictionary. You're passing a JSON-encoded string. Which is fine, but then you need to be prepared to unpack it on the other end.
 
@kevin does it mean that it is ok?
@dsm yes I know how to unpack it once I figure out how to pass it properly first..
 
@neoDev That's up to you to decide. I interpreted "it all became a single property" to mean "I could no longer index the object to get its internal values". I changed it so you could. If that's not what you wanted, I don't know what you want.
Also I endorse whatever DSM suggests, I'm just providing the most direct solution I could come up with regardless of whether it's actually a good idea.
 
@dipper what do you mean by drawing lines between each line of text ?
 
5:38 PM
Or is that what you mean by "OK"? If you're asking "is this readable and maintainable?", no it isn't.
It's better to determine the correct way to send data, rather than trying to come up with a way to unmangle the data you sent incorrectly
 
user6845426
Oh sorry @MooingRawr, I should of explained better. The example vector I shared above is the maximum pixel values for each row in an image. I think I might have figured out a way now. I want to loop through each value of the vector and if the value == 0, and the value + 1 != 0, then the next pixel line represents text, so i can save that value as a coordinate
 
@dipper are you a native English speaker?
 
@kevin the json is malformed
I've handled json before in javascript, but I am not doing it properly now with Python
can't make it working
 
How strange. It works perfectly on my machine, as you can see.
 
@Kevin did you have a look to my initial post? chat.stackoverflow.com/transcript/message/36333735#36333735
after that I have a node.js server with express, on get request I console.log(req.query)
 
5:52 PM
Oh, the server isn't in Python? I wish I had known that sooner. In that case, there's not much I can do for you.
 
Don't you love when OP's slowly release information, after you provide an answer or pry them for more details :D
 
My feelings on the matter change from day to day. Today I'm feeling quiet resignation. So it goes.
 
either you shouldn't have answered, or this
 
bye
 
DSM
This really feels more like a post to me than a get -- feels weird to say "get" a score of 0 and it doesn't matter anyway 'cause he's gone. :-)
 
5:55 PM
I had a little bit of fun accidentally giving unhelpful advice, so it's not like I've lost much in the exchange
 
hey DSM, what's your opinion on the Jays this season so far, and do you watch with your father? is he a fan too? or only for the Leafs
 
DSM
@MooingRawr: mixed, but cautiously optimistic. And my father's not that much into baseball, more's the pity. Tends to only pay attention at the end of a season and it's not like there's been much postseason action lately..
 
Yesterday I bought the game Stardew Valley, a Harvest-Moon-esque country life simulator. I'm enjoying it so far, but I've been frustrated by some ambiguity in the item descriptions. For example, the Scarecrow "prevents crows from eating your crops. Area of effect: 8 tiles". I can think of three ways to interpret this:
123
4X5
678

12345678
12345678
12345678
12345678
1234X678
12345678
12345678
12345678

       8
      878
     87678
    8765678
   876545678
  87654345678
 8765432345678
8765432X2345678
 8765432345678
  87654345678
   876545678
    8765678
     87678
      878
       8
Obviously my scarecrow placement strategy will change depending on which one is correct.
 
I'm told it's easy to water the cat
(unless I'm confusing weird online things)
 
@Kevin it's the second one IIRC :D I remember playing that game when it first came out and it was amazing.
 
6:02 PM
I very frequently water pretty much everything I try to interact with, but I haven't watered the cat yet.
 
You water the cat's bowl... and it becomes happy.
 
I've grown quite fond of little Chungus. I've also grown quite fond of the game's ridiculous random name generator.
 
I wish there was a multiple player mode for it.
 
@MooingRawr Oh... I haven't been doing that at all. Oops.
 
oh :\ well w.e :D I'll let you enjoy the game and discover things for yourself.
 
6:03 PM
@MooingRawr That's surprising to me, since it's not symmetrical. I kind of arbitrarily placed the X in the lower right quadrant.
 
I found it relaxing and it soothed my need for things to be laid out well..
 
Unless it means, like, "area of effect: a rectangle extending outwards 4 tiles in all directions from the tile the scarecrow is on", in which case it's actually a 9x9 square
@MooingRawr The community news page says they'll implement multiplayer... Eventually.
 
Ok, I'll spoil myself just this once... Hmm.
Can't say I expected that. But in fairness, the description does say "about 8 tiles", so a squircle technically qualifies
 
And I know, but Idk, how that will work... for some functions of the game...
 
6:08 PM
I've reached my spoiler quota for the game but I believe you that there are logistics issues at play
 
Either way, it's a fun game. I think I played like 3 different ways to get to the end goal.
 
Oh, there's an end goal? Suddenly I feel more urgency...
 
I think I enjoyed it because I enjoy games like Minecraft, Terraria, any base building or management style.
well to a degree, did you not follow the very thin story line?
 
I got as far as "Kevin is unhappy working in a cube farm, so he moves to the actual farm he inherited from his grandfather. There, he finds a cryptic note, saying 'I will visit on the third anniversary of your arrival'"
 
there you go :D
end goal in that cryptic note :D
 
6:15 PM
Does anyone in here use pycharm?
I got this annoying thing that everytime I paste a link into pycharm and hits enter. it opens the link, instead of '\n' going to a new line.
 
I imagine you want shift + enter. I have no clue if it works, just intuition...
 
@SebastianNielsen you've been here long enough, you should know not to ask 'if anyone knows ____?' and then follow it up with a question about _____ :(
 
Sorry, I guess I am incredible stupid :/
 
I assume Ghost Grandpa is going to show up and judge how well I've done for myself. I don't need or want his opinion. I make a living wage fishing and exploring caves, so I grant myself a triple A rating on the virtual life satisfaction score.
 
what does that even mean?
lol
 
6:19 PM
@Kevin :D well then dont worry about the loose end goal and just play how you want too.
 
@MooingRawr Well, asking "anyone know X?" and then following it up with a question about X is a vast improvement over asking "anyone know X?" and then not following it up with a question until someone replies saying they know X.
 
fair enough.... I concede on that point
 
user6845426
@AndrasDeak yes?
 
6:36 PM
@MooingRawr does anyone know what the rules for this chat are? :o
 
woosh. :P
 
@dipper then "should have" :P
(I try not to grammar nazi foreign speakers, is all)
 
@AndrasDeak I'm pretty sure there is a bot on reddit that corrects that, lol
 
user6845426
@AndrasDeak ah I see. -1 point to hufflepuff.
 
6:49 PM
NO!!!! hufflepuff cannot afford more point loss
be better hufflepuff
 
float("NaN") points to Hufflepuff
How often does Hogwarts unit test its input validation? Q points to Hufflepuff. Pi points to Hufflepuff. 0.999....9 points to Hufflepuff. Hufflepuff points to 1.
 
user6845426
:p
 
user6845426
7:16 PM
 
:D
didn't know that hufflepuff's mascot was a skunk *runs away*
 
Today I read an article about a black hole formed from two other black holes, but I was skeptical at the level of confidence employed in asserting that they were definitely black holes, since I had previously read that we don't have any actual hard evidence that black holes even exist, so I looked it up and it turns out there's no actual hard definition of "actual hard evidence"
 
damn
 
I hope earlier LIGO signals of gravitational waves turn out to be exactly that
 
There's a thing at the center of the galaxy which probably has a lot of mass because a lot of stars orbit it tightly, and the thing doesn't give off the kind of light that stars do, so if it's not a black hole it's not really clear what it is. Does this mean black holes exist?
 
DSM
7:27 PM
I'm now in an excellent mood. Accountant got back to me with good news, which is exactly opposite from the type of news I'm trained to expect at this time of year! #marchmadness
 
I think for all intents and purposes that's as good as our bet gets for the time being
 
I officially signed my contract at work today :(
 
Now I'm trying to look up when it became generally accepted that black holes were theoretically possible, and when it became generally accepted that they exist in our univese
 
but I wanted to quit
 
@DSM do you have a bracket set up and also Pineapple.
@khajvah Pinepaple to you too ?
 
7:28 PM
I've narrowed it down to "between 1783 and present"
 
DSM
I would bet a million dollars that black holes exist. I would bet a lot less about whether or not there's actually a singularity at the heart, things get murky.
 
@khajvah so why did you sign?
 
@AndrasDeak cause I am afraid of quitting
 
DSM
@MooingRawr: yep.
 
@Kevin "black holes were theoretically possible" when Schwarzschild published his results
 
DSM
7:29 PM
@khajvah: unless you signed up for life, that doesn't mean you can't find a new situation down the line.
 
Maybe the term "theoretically possible" is imprecise here because "if we compress all this mass into this tiny sphere, a black hole will form" may or may not be theoretically possible if you're still arguing over whether it's possible to compress mass to that extent.
i.e. precisely what is happening in this paragraph:
> In 1931, Subrahmanyan Chandrasekhar calculated, using special relativity, that a non-rotating body of electron-degenerate matter above a certain limiting mass (now called the Chandrasekhar limit at 1.4 M☉) has no stable solutions.[18] His arguments were opposed by many of his contemporaries like Eddington and Lev Landau, who argued that some yet unknown mechanism would stop the collapse.
 
what does that Landau guy know anyway?
 
DSM
;-)
 
Landau doesn't have a radius named after him, therefore I disregard his opinion
At least, he doesn't have any radii named after him which are in my current range of vision (which I call the Kevin radius)
 
DSM
7:34 PM
I had a prof who still used L&L as required reading.
 
apparently Schwarzschild published in 1916
 
That latterly mind fucked me
 
@Kevin he does have levels named after him though
(and a gauge too, I think)
 
DSM
@SebastianNielsen: be advised that I've recently embraced my inner schoolmarm, and am now going to enforce site policy.
 
Wait, I didn't swear.
 
7:37 PM
winter DSM is coming
 
It was a phrase
 
@SebastianNielsen dude.
 
still a swear phrase :\ - it has a swear word in it... :\
 
is "mind ***" swearing?
 
Depends on your definition of "swear", perhaps.
 
7:38 PM
I refuse to believe that you're being serious
 
You guys are harsh.
 
especially considering the linked question that has "swear words or vulgar language" in the title
 
:\ I would like to think we are fair :( but that's a matter of opinions I guess..
 
One might have a special category of profanity specifically used as exclamations of negative emotion, and you might call that "swearing". You might consider all other uses of profanity not swearing.
 
but anyway we're not here to argue about policy (not me anyway :P)
 
7:39 PM
@AndrasDeak would you like to discuss it instead :D -poke poke-
 
if I were you I'd just note the warning and try to be as PG-13 as possible
 
Let's talk about black holes some more. "In 1967, a student reportedly suggested the phrase "black hole" at a lecture by John Wheeler;" What did they call black holes before they called them black holes?
 
<philosoraptor>
I could guess but I have no idea
 
@Kevin I was going to make a joke, but I feel like it's not appropriate :\ so instead i'ma guess void hole
 
DSM
@Kevin: dark or frozen stars, IIRC.
Frozen stars is ringing a bell.
 
7:41 PM
Dark Star? That's the name of my DnD character! I'm going to sue the past for copyright infringement.
 
so one of the Frozen stars was...let go.
 
In astronomy, a frozen star, besides a disused term for a black hole, is a hypothetical type of star that, according to the astronomers Fred Adams and Gregory P. Laughlin, may appear in the future of the Universe when the metallicity of the interstellar medium is several times the solar value. == Characteristics == Due to opacity effects, as metallicity of the interstellar gas increases both the maximum and minimum masses a star can have will decrease. For the latter case, it's expected that an object with a mass of 0.04 solar masses (40 times the mass of Jupiter), that currently would become a...
ding ding ding, your memory is still good :D
 
note that only the first half sentence applies right now
> In astronomy, a frozen star, besides a disused term for a black hole [...]
 
DSM
You wouldn't say that if you knew how poorly I did on those Youtube mental assessment-training-for-med-students videos.
@AndrasDeak: I just got that. Nice.
 
hey man, you were able to retain past terminology for random astronomy things. I would still give you a gold star for that :D
 
7:43 PM
"random astronomy things" --> DSM twitches in front of his monitor
@MooingRawr you should take a peek at his profile;)
 
xD - I faintly hear a distress screaming man - CURSE YOUUUU MR~!
@AndrasDeak Oh I fully well know what I'm doing... :D to a degree.. I just hope I don't regret it later in life.
 
OK then
don't say I didn't warn you when you find a dwarf planet shooting at you one day
 
I'm now imagining anachronistic Wikipedia: "A dark star, or frozen star, is a body suspended in the luminiferous aether which lacks the phlogiston characteristic of ordinary stars"
 
(that's how it works, right?)
 
DSM
@Kevin: steampedia! I'd read that.
 
7:47 PM
I find it very hard not to read steampedia as senpai
thanks, internet
 
Steampedia would naturally be strongly eurocentric and thus lack any senpais. Not a lot of cultural exchange between the west and the mysterious Orient during our target time period.
 
DSM
Reminds me of the sort of things the Sons of Ether might write-- they were the alternative science Tradition in White Wolf's Mage game and good grief this is the nerdiest sentence I've written in a while.
 
(note: target time period may not actually exist in history outside of the imaginations of adults with too much enthusiasm for gears)
 
then let's not imagine the rabbit hole slash paradox that the self-referential steampedia article would lead to
or would it be in a steam-compatible format?
 
@DSM Not even in the top ten of the nerdiest things I've read in the last week, If that's any consolation to you.
 
7:57 PM
sigh why do imgur.gif/ .gifv load so slow :(
 
High traffic? Poor optimization?
 
static images are two dimensional, so they can easily fit into the Internet tubes when we roll them up into cylinders. But gifs have the additional dimension of time, so we can't roll them up. This clogs the tubes.
 
89 MBs
 
user6845426
8:19 PM
Can someone tell me if i'm using pairwise wrong. I've getting: 'pairwise is not callable'
 
user6845426
listing = [0, 0, 3, 4, 5, 0, 0]
y_coords = []

for count, (current, nextCo) in enumerate(pairwise(listing), 1):
    if current == 0 and nextCo != 0:
        y_coords.append(count)

print y_coords
 
what's a pairwise?
if you're getting an error, then you're using it wrong virtually by definition
 
dyb
Hello everyone, i'm fiddling with Pythonista for iOS and trying to read a bezier outline from text. The thing with Pythonista is that it has all basic modules but if i want to install more then they have to be "pure python". So my question maybe should be: is there a way to get the bezier outline from text using standard python modules? Where do i look?
On Mac i can do this with drawBot drawbot.com
 
9:08 PM
rb folks
 
rbrb
 
@dyb you mean you have text that you want to turn into bezier curves?
 
dyb
10:03 PM
@WayneWerner yes
apparently there is a bridge in Pythonista to ObjC, maybe i can use that somehow.
 
00:00 - 17:0017:00 - 23:00

« first day (2354 days earlier)      last day (2597 days later) »