« first day (1980 days earlier)      last day (2985 days later) » 

3:01 PM
thank you all
 
We have a "salt", but it too is too deterministic to be of any use.
 
@JonClements you mean Modern Warfare 2 or Advanced Warfare?
 
One of those... the one you were keen on and wanted the Euro copy of it
 
Ah. Turns out nobody wants to play it anymore :( At least not in my area...
 
user559633
Yeah, I'm a CS:GO guy
 
3:06 PM
I tried CS:GO and didn't really like it :[
 
@vaultah also might have sent you a message on slack - bit difficult to tell as the app's just crashed on my phone though :)
 
user559633
I've been playing counterstrike since 1.5, maybe earlier
 
@tristan you started young
 
I've been playing since whatever version of counterstrike was available where one would still haul their rig to a friend's basement
 
I've never played Counterstrike.
 
user559633
3:08 PM
CS:GO is far worse than 1.5 in terms of skill demand/strategy.
 
Hmm, I think I need chord after all. I'm trying to draw a lozenge shape whose outline is a particular width. none of arc/chord/pieslice have width options, so my best choice is to use chord and poly to draw a solid colored lozenge shape, then draw a second lozenge shape on top of that with a slightly smaller size and using the background color as the fill.
 
@Kevin isn't a losenge made up of straight line segments?
how would an arc work for that?
 
Sometimes I'm a god in CSGO and other times I can't hit the broad side of a barn.
 
cbg all
 
3:10 PM
I won't be able to overlay a lozenge on top of already existing shape, but I don't actually care about that for my purposes.
@AndrasDeak To be clear, this is the shape I mean.
 
@inspectorG4dget cabbage o/
 
Google says lozenge means "a rhombus or diamond shape" but that's not what I had in mind
 
I read that and thought about the candy flavored things you eat when you have a sore throat
 
@Kevin oh, still set! game:)
 
Yeah, that's definitely what I thought of.
 
3:11 PM
Yeah. cough drops aren't usually rhombuses.
 
I call that an ellipse-like capsule thingy
 
anyone wanna check out this interesting problem:
 
DSM
Does anyone else ever open up dozens of windows to run verbose deletes so you can watch all the directories being deleted simultaneously? #productive
 
@DSM no:(
 
I now have satisfactory lozenge and diamond drawing capabilities, each in filled/empty/striped varieties. The squiggle shape still presents a challenge.
 
3:12 PM
I have a large unsorted list that can't be loaded into memory (because it's large)
I need to find the median
 
@Kevin still no bezier, then
 
Assume I know the size of the list, but will only iterate over it
 
It's a circular table with an insert.
 
@QuestionC or a line with rounded caps;)
 
An overweight line.
 
3:14 PM
Yeah. Even if I do come up with a nice way to do non-jaggy bezier curves, I also need to be able to differentiate between the inside of the squiggle and the outside. This is necessary in order to fill the interior with stripes.
 
yup, I see
 
I could detect the interior with a flood filll... But I'm concerned that there may be a break in the outline, or isolated "islands" of interior separate from the main body.
It would be trivial to check manually that neither of these things occur... If I wasn't trying to write robust code that works at any resolution.
 
how can there be any variation of the pattern? don't you have to construct a single instance of the squggle?
ah, with respect to resolution
I assume you've found them already
 
 
no. I'm looking now. Thanks
 
3:18 PM
Here is an example of my concern. Note the two white pixels in the center not touched by flood fill.
 
DSM
Phrases like "Online median selection" may come in useful.
 
@Kevin but it should never be that sharp, right?
in set the squiggle is quite benign
 
This error in windows is unbelievably annoying and seems to emit all the time: filename or path too long
 
YES:D
use linux;)
 
@AndrasDeak You are probably right.
 
3:19 PM
there's also a max directory depth in ntfs or fat or something, right?
 
Wait, are you recreating the cards from set?
 
user559633
you can hit that limit pretty trivially in linux as well
 
You could just render a lozenge, and then morph it into squiggle shape.
 
@tristan really?
is there one?
I mean, on an OS level?
 
user559633
yep. in ext3, ext4. os passes on limitations.
 
3:21 PM
@QuestionC I was thinking of something like that, yeah. There's a PIL method called ImageOps.deform which might do the needful, but I've never used it before
 
I didn't know that:(
much harder to snark at MS then
at least my files can be larger than 4 GB;)
 
Lozenge and Squiggle are very similar looking, there's probably a way to do it that isn't awful. You just have to make sure how you do it uses antialiasing.
 
user559633
2^8 for filename, 2^12 for most other total lengths iirc
 
Is this something you'll have to recompute constantly? Or just every time the user resizes his window?
 
thanks
 
user559633
3:23 PM
windows can't do filesizes of > 4GB? are you sure?
 
vfat does not
 
My file path size is waaaaay less than that :| it's just C:\Users\fake\Documents\Github\repo\stylesheets\_animations.scss it is complaining about
 
@QuestionC At most, I'll recalculate after each window resize. But I'm not opposed to pre-caching a handful of sizes and jumping between them as the window grows/shrinks.
 
user559633
@corvid i think you're looking at the wrong place or loading a different file
 
Ex. for window sizes between 100 and 200, I could stick to a 64x64 image and just add padding.
 
3:25 PM
@tristan It definitely can.
 
user559633
you'd extremely trivially hit that in windows if it was 62 chars
 
I have an 8GB file on my computer at the moment.
 
@tristan on linux, each component is 255,
 
user559633
@MorganThrapp Yeah, that's what I thought. Seems like a FAT or otherwise super old format
 
user559633
@AnttiHaapala Yuppers.
 
3:25 PM
path_max is 4096
 
@tristan That's exactly what it is.
 
on windows the max is 255 which is PITA
 
user559633
Yeah, 2^8, 2^12
 
user559633
ran into this on linux when writing a warmed cache device
 
in the engineering company that I work half time, they need to always rename their directories
because of this.
paths longer than 255 in windows - no - just no.
 
3:26 PM
16 TeraBytes minus 64KB is max file size on Windows.
Unless you're on 7 or earlier.
And are still using FAT32, which no one does.
 
@AnttiHaapala I'm glad some room's still left for snark
 
You could pre-cache a handful of image sizes, but vector graphics are cool.
 
@MorganThrapp OK OK, I revoke my earlier statement:)
 
what is happening on me...
 
3:39 PM
@MorganThrapp FAT32 is still pretty popular on USB sticks.
 
@PM2Ring That's fair.
 
Here's something dark, heavy, and a little bit jazzy from Gov't Mule: Thorazine Shuffle
 
A friend of mine suggested I read The Metamorphosis, and it's actually really good so far. Very funny.
 
Will it change your life?
 
I was something boring honestly.
 
3:47 PM
@AndrasDeak Nope, I'll take a look.
 
If I turned into a bug I think the python chat aspect of my life would be more or less the same. So not everything would change.
 
On The Internet No One Knows You're A Bug.
Which, incidentally, explains how IE is still a thing.
 
So I have a wmic command that I'm trying to used with subprocess.check_ouput. I know this command returns "No Instance(s) Available.", but that's not what I get back...
subprocess.check_output('wmic netuse get /value', universal_newlines=True, shell=True)
'\n\n\n\n\n\n'
 
Maybe "No Instance(s) Available" is getting directed to stderr.
 
that too gets directed to the same output
ah it doesn't
@Programmer To also capture standard error in the result, use stderr=subprocess.STDOUT:
>>> subprocess.check_output(
...     "ls non_existent_file; exit 0",
...     stderr=subprocess.STDOUT,
...     shell=True)
'ls: non_existent_file: No such file or directory\n'
 
3:59 PM
I should have realized...thanks :)
For some reason I assumed it would all get returned through check_output
 
me too, because I remember something doing something silly like that
 
@Programmer best to get used to not using shell=True
@MattDMo seems legit to me. What's the problem?
 
> you are the man
 
They had me at )
I knew I was in for kwality
 
4:03 PM
I'd like to know who he's addressing that to
 
@MattDMo You, Of course
 
since we're delving now
btw the @MattDMo post requires only 1 delv is gone
 
@idjaw I'm defining all the commands and it will run on a client's machine, so if they want to do something malicious to themselves, they already can.
 
user559633
Yeah, but part of providing a good service is building in safety.
 
not the best practice to adopt in a software profession.
 
4:08 PM
I couldn't find any other way for the cmd prompt to not open when running the application and my boss doesn't want it to seem malicious either. I would definitely run shell=False if I knew otherwise
 
@MattDMo @BhargavRao thanks, I was going crazy with that one :D
 
np
 
np.np()
 
AttributeError: module 'numpy' has no attribute 'np' :-(
 
import myownlibrary as np
 
4:15 PM
Heya
 
hello
 
Cabbage Bernard
 
What?
 
@BernardMeurer Cabbage
 
4:18 PM
Artichoke, is this for reals?
 
Or is this fantasy?
 
Cabbage.
 
@TheCrawl Cabbage
 
@BhargavRao ... caught in a landslide...
 
@Programmer Also,
@ChrisMorgan My belief is (...) I think it's not what happens. In fact with shell=True every subprocess opens its own console but it's hidden. See startup parameter, subprocess.CREATE_NEW_CONSOLE flag, subprocess.STARTUPINFO.wShowWindow attribute and this line of subprocess.py. — Piotr Dobrogost Oct 18 '12 at 21:47
 
4:21 PM
@PM2Ring Thanks. I swore I had looked for something along these lines previously...
 
No escape from reality
 
beat me to it ^
open your eeeyes
 
Look up to the skies and see,
 
I'm just a poooor boy....I need noooo sympathy
 
karaoke sopython style hey? :p
 
4:23 PM
especially for Bohemian Rhapsody
it's a must
 
Because I'm easy come, easy go ...
 
little high, little low
 
feature request: bot that posts Bohemian Rhapsody video when any lyric of the song is detected
 
@idjaw +1 ^
 
DSM
.. why don't we get Kevin to do it as a userscript, and then those who want the feature can have it without getting in the way of anyone else? ;-)
 
4:26 PM
I don't see your point:P
You get a Queen! And you get a Queen! EVERYBODY GETS A QUEEN!
see you later
 
user559633
Freddie Mercurial, commits a record every time a queen lyric is detected
 
One of my favourite Queen tracks, the much-neglected Brighton Rock
 
anyone here has 5 points in "scikit-image" and can suggest "skimage" as synonym? I apologize if this question belongs on meta rather than here.
 
And something a bit rockier, written by Brian May: Tie Your Mother Down
 
4:52 PM
has anyone ever encountered issues with gevent leaving dummy threads to pile up in memory thus creating a memory leak?
its hurting me ^
 
cbg
 
cbg
 
5:13 PM
The OP is asking for a better way to do this; these hints are not enough to fix what is wrong with his code — TisteAndii 5 mins ago
<3
then the instant that I tell them that I didn't downvote their answer, OP accepts mine.
 
Writing void main() is an abomination, not a mere oversight. :)
I'd upvote pmg for using isupper and islower, except they're using 0 instead of '\0' for their string nul-terminator.
 
I mean... it ain't wrong.
Just weird.
 
> im trying but i didn't write it here to not mix you
Awww, I wanted to be remixed.
 
@PM2Ring I was thinking about writing a bot that would scan questions and answers then automatically suggest a comment like "it is int main, not void main" or "you are not supposed to cast the return value of malloc"
 
I find it odd when people (like that OP) get < and > confused. I saw another question with that problem recently. And I used to have a housemate who could never remember which was which. He also got slash and backslash mixed up, but I guess I can blame Windows paths for that.
 
5:27 PM
no, OP didn't get those confused, it was about OK at first, but then someone else confused them in the comments.
 
@QuestionC Sure. It's a very minor thing, but it's nice to be type consistent. Similarly, you shouldn't use int 0 when you want a NULL pointer.
 
"<" and ">" are easy. They're the mouths of greedy crocodiles that always face towards the bigger value.
 
I prefer '\0' as well, but it's below my bar for caring unless it's a code review or something.
 
@PM2Ring actually, there is nothing magical with NULL either
 
Also, when you place your hands palms-out and extend your index fingers and thumbs, the left hand makes an L. #Grade1LifeTips
 
5:31 PM
you can use constant 0 and it is ok, and when it is not ok, you're not supposed to use NULL without casting either :D
and you guys should also join the C room
 
isupper((unsigned char) *src) the cast is super strange to me. I really hope it's not necessary.
 
@AnttiHaapala You can. But as I said before, it's a matter of being type-consistent.
 
standard defines explicitly that integer constant 0 casts to null pointer
 
NULL == 0 is a C++ ism I believe.
 
@QuestionC Well, isupper is implemented as an array lookup, and array indices need to be non-negative.
 
5:34 PM
(but integer value 0 does not need to)
 
I guess with ASCII it doesn't matter if it's signed or not.
 
@AnttiHaapala Sure. And it's guaranteed to work correctly even on weird systems where the NULL pointer isn't actually an all-zero bit pattern.
 
I'll give the C room a shot, but if it's same as the C++ room but worse I'll hate you.
 
@QuestionC it is probably worse :d
I do not know how C++ room is?
 
@AnttiHaapala The C++ Lounge has the worst reputation of all the SO chat rooms.
 
5:43 PM
that I know
I just don't know how bad :D
 
Fair enough. It's not that bad really. But you do need a thick skin. I'm sure you'd be fine. :)
 
I do not have skin, I've got grown armour
 
Definitely a thick skin - although armour in the shape of a diamond is also a good idea :)
 
carapace
 
I really should visit The Lounge some day - one of the regulars is an old buddy of mine from Fidonet days.
 
5:46 PM
it's only a few clicks away :d
 
But I'd feel like an intruder, since I don't know C++.
 
no one knows.
except bjarne
 
user559633
The lounge is okay, but really susceptible to groupthink and sycophancy
 
user559633
@PM2Ring i don't know python and i'm in here like all the time
 
I'm still waiting for C++ to stop incrementing itself.
 
user559633
5:47 PM
i spend more time with you guys than i do with my kids. you guys didn't even know i had kids, did you?
 
is there good tutorial in python about socket connections btw different machines in python? All I have found so far use localhost.
 
@AbhishekBhatia there is nothing different really.
 
I came here to ask a question about list comprehensions and got trapped in the star list's gravity well.
 
@QuestionC poor you, for the C++ programming :D
 
My current job has me doing C# actually, but I imagine it's temporary. I prefer purgatory to hell.
 
5:52 PM
how so?
what I really hate about C# is that they took everything from Java and inverted camel casing
 
I like C#.
LINQ is pretty awesome.
 
@tristan you're so right, room owner!
 
user559633
/me updates preferred_users.xls
 
@AnttiHaapala theory != practice
 
@tristan Dad, when do I get my allowance?
 
5:55 PM
Daaaaaaaaaaaad.
 
user559633
Creepy plz to make stop
 
@tristan we know all your secrets eyes glow blue
 
Oh, sorry I thought us non-ROs were your "kids". :P
 
user559633
Yeah, no, there's no parent/child-esque relationship between ROs and room regulars or guests
 
@tristan Pffft, says you.
 
5:58 PM
I have used LINQ, but it was to solve a problem that wouldn't have been a problem in C because pointers, so I'm not super impressed yet.
 
user559633
yeah, says me. if there was any sort of weird role play involved, i'd nope the fuck out of this internet page so fast that AOL wouldn't even realized that i went offline
 
If you're using AOL you're definitely old enough to be our dad
 
@tristan What about master/slave? :)
 
user559633
"heh"
 
user559633
@RobertGrant how else would i get to my world wide interspace pages
 
6:01 PM
I guess the Tristan Family takes a lot of communication
 
@tristan you're a bad parent... your kids need to come to sopython room to talk to you.
 
user559633
@AnttiHaapala first they'd have to learn my name
 
I like to think of the regular/asker relationship as wise man of the mountain / exhausted mountaineer
 
6:08 PM
I'm sure they'll recognize you from your picture.
 
user559633
 
6:26 PM
hey all I need a help
 
@sudhakar Just ask your question after reading our room rules sopython.com/chatroom :)
 
[('i', 'NN'), ('want', 'VBP'), ('flower', 'NN')] may i know the name of this format in python
 
@sudhakar A list of tuples?
 
List of Tuples? ---> 'i' - String ; ('i','NN') - Tuple ;
[('i', 'NN'), ('want', 'VBP'), ('flower', 'NN')] - List of Tuple
 
I wanted it convert as json
please guide me
I am new
 
6:28 PM
It looks like it was generated from some sort of NLP. I'm guessing the second element is a classification.
Have you tried anything?
 
Yes I did that from nlp
 
@sudhakar json.dumps()?
 
sure let me try abishek
 
@AbhishekBhatia That converts a JSON object to a string.
 
6:31 PM
JSON doesn't have a concept of 'Tuple', so type information is lost in the transition.
 
@sudhakar Your data is suitable for a simple Python dictionary, like this:
{'i': 'NN', 'flower': 'NN', 'want': 'VBP'}
 
yes it shows internal server error
 
In JSON form, that dictionary would look like this:
 
@MorganThrapp It converts Python objects to JSON strings.
 
{"i": "NN", "flower": "NN", "want": "VBP"}
 
6:32 PM
@QuestionC Er, yeah, that.
 
actually I wanted that data as Json
 
Let us know when you've tried json.dumps on the object.
 
yes I tried but I didn't get any output :(
 
@QuestionC I was assuming they need a JSON object, ala loads.
 
@MorganThrapp I am not sure
 >>> import json
>>> l=[('i', 'NN'), ('want', 'VBP'), ('flower', 'NN')]
>>> type(l)
<type 'list'>
>>> j_l=json.dumps(l)
>>> type(j_l)
<type 'str'>
>>> rec_l=json.loads(j_l)
>>> type(rec_l)
<type 'list'>
>>>
 
6:34 PM
>>> import json
>>> json.dumps([('i', 'NN'), ('want', 'VBP'), ('flower', 'NN')] )
'[["i", "NN"], ["want", "VBP"], ["flower", "NN"]]'
 
sorry sorry I missed imort
 
@MorganThrapp oh missed that, thanks
 
I think the problem here is the term "JSON Object". It's like saying a dead guy is "RIP in Peace".
 
Thank you very much guys
:)
I am really impressed
you guys are rocking
 
@QuestionC What's wrong with saying that? It's a JavaScript JSON Object Notation, obviously.
 
6:36 PM
JSON is the lingua franca of people who think XML is dumb so it's a familiar subject.
 
If you decide you'd prefer dictionaries you can do this:
a = [('i', 'NN'), ('want', 'VBP'), ('flower', 'NN')]
d = dict(a)
print(d)
print(json.dumps(d))
That's how I created the output I posted earlier
 
If you want to thank me, you can get some cash out of the ATM machine with your PIN number.
 
ha ha lol Morgan
 
any good tutorials on framing mechanism and port-forwarding in sockets using python?
 
PM2Ring thanks :)
 
6:42 PM
No problem!
 
Stack Overflow used to be a weird place.
 
used to? [confused_gandalf.png]
 
I can't think of anything else weird on this site at all. I mean, we all hate fun.
 
not since it was burninated
 
I receive data using while True: data= json.loads(s.recv(1024)). Same mentioned in docs. I am doing something wrong. Should I be using framing, if so how?
 
6:50 PM
What makes you think you're doing something wrong?
 
I am send a json object. What if a single packet is received in two data streams(broken)?
 
bros one more help! @app.route('/post/<post_sub>')

for this how the url will be like localhost/post/post_sub=sudhakar is it?
 
Rhubarb
 
Rbrb PM.
 
@AbhishekBhatia I see. There could be a problem if you send an object that's more than 1024 bytes long.
I don't think you need to worry if the object is shorter than that, though. I'm pretty sure that recv will stop reading if it hits the end of a packet, even if it hasn't read 1024 bytes. If you do socket.send("foo"); socket.send("bar"), you can depend on socket.recv(1024) returning "foo" rather than "foobar"
Uh, I think. I haven't worked with sockets in a while.
 

« first day (1980 days earlier)      last day (2985 days later) »