« first day (1902 days earlier)      last day (3269 days later) » 

05:38
cbg
user559633
cbg
user559633
everything is terrible. i just spend 2 hours source diving into mysql when the issue was that someone named a column after a built-in command.
DSM
DSM
Must've had an unhappy debugging path not to find it earlier.. my condolences!
user559633
I actually saw it when I was about to hit "Post Your Question"
user559633
Yeah, the problem was wrapped up in being a string data type and in the stress of a character set change, so I just made the bad assumption that whoever made the schema for the DB didn't do bad things.
user559633
05:50
The number of longtextcolumns should have been my first clue.
wim
wim
I FEEL SURE THAT IAN MURDOCK WAS MURDERED, mark my words ..
user559633
That's terrible. I hadn't heard.
DSM
DSM
A sad and untimely end. Under the circumstances I think speculation is somewhat inappropriate, but there are several far more plausible theories given his recent behaviour than murder.
wim
wim
06:08
circumstances extremely suspicious. I hope the truth bubbles up eventually.
user559633
ugh, 9am. bed time.
user559633
take care all
DSM
DSM
Have a good, er, morning. :-)
user559633
:) thanks
06:41
Hi
guys
any one here
i face one issue in Node JS
using URSA
“ImportError: No module named _multiprocessing
any one know whats the cause ?
good morming @gayathri
gud aftn here
@MayankVadiya
07:33
cbg
@Kevin Funny you should say that. Over the last few days I've seen a couple of questions that did that sort of thing. In one question the OP assigned an int to len, and then a few lines later had problems trying to call len. IIRC, another question did similar things with dict.
There was also a question with a custom hash implementation which named their own function hash, but that one was benign, since they didn't want to use the built-in: they were trying to implement their own hash table from scratch.
 
1 hour later…
08:35
@wim re: stackoverflow.com/a/29867270/4014959 To use the 1st version we really should create an instance of the class, but the Any class in the 2nd version is designed to be used directly. Also, the 2nd version shows how to handle isinstance & subclass checks, although you may wish to restrict those tests for your purposes.
wim
wim
08:54
Hey PM2! Yeah I eventually figured out that was the added features of the 2nd version, and deleted my comment. You may want to edit to actually mention it in the post, because it's not obvious ?
I've just tried for using metaclasses and overriding subclasscheck to try and create an object which can strong-arm anything from the right side of an equality comparison, but I couldn't get it working in the general case :(
the Any on your answer doesn't work with datetimes either , by the way
also be careful with those because I got bitten once, they don't play well inside dicts
because of __hash__
@wim Good idea. :) Pity it doesn't work with datetimes. Maybe Antti will know a way around that...
@PM2Ring strangely reminded of an old answer
IIRC, the usual way to use datetime keys is to just convert them to some standard string format. I guess that's a little kludgy, though. OTOH, exact datetime keys tend not to be very useful: it's much more common to want to find stuff in a range of date/times, and hashtables aren't much good for that.
@JonClements Cute!
If anyone has opinions on whether Python's automatic concatenation of adjacent string literals is a bug or a feature you may wish to comment here
wim
wim
09:31
Wow, that has never happened to me, but I can see that it could cause some really gnarly bugs
actually I wasn't talking about datetime keys. I was talking about the "Any" kind of objects. since they break the invariant that x == y should imply hash(x) == hash(y), they can break the sensible behaviour of dict or set containers
e.g. you could have Any == x but you don't get Any in {x}
@PM2Ring I recall seeing one question where the guy was I don't get why my list doesn't have three items! his code was ['one' 'two' 'three'] :(
@wim Ah, right.
wim
wim
now reminds me of nan madness aka "I don't get why my set has two items"
>>> x = float("nan")
>>> len({x, float(x), float("nan")})
2
@wim "nan madness" - just reminded me of the Catherine Tate show that's been on...
wim
wim
lol .. everyone will experience nan madness when they get old enoough ...
09:41
I can see that happening to me... just blurting out random words like cabbage to people
... oh beep... "happening" might be optimistic :(
@wim I guess it'd be a PITA to make nan a cached singleton float value, similar to what's done with small integers.
wim
wim
I really think nan != nan is a questionable decision in IEEE 754
it wreaks havoc in numpy
@wim Oop! I'd forgotten about that... but that explains why they don't bother making nan a cached singleton. :)
wim
wim
if nan was a singleton she'd be very busy making cookies for EVERYONE
10:31
I don't think this guy deserved 7 downvotes. Sure, it's not a great question, but it's reasonably clear and its got decent code samples.
Umm... was 15 in the queue, went down to one - got all excited, then I was 2, then 3, then 4... have they just changed FIFO to FILO :(
10:57
list = (1)
This is impressive
11:08
LOL
@vaultah you may enjoy this site on how messed up English can be m.mentalfloss.com/article/57032/…
Oh, interesting
 
1 hour later…
12:35
cbg
 
1 hour later…
13:57
Morning cabbage.
Morning. Happy New Year from the UTC+11 timezone.
Han
Han
14:16
hello
HAPPY NEW YEAR~~~~~~~~
why should i start python
Because it's fun and useful?
@Han I see from your profile that you've done a little Java. Some core features of Python are radically different from Java, so it can be a bit weird at first, but you'll soon grow to love Python's approach. I hope. :) But maybe you should concentrate on solidifying your Java skills for a while before you start tackling other languages, or you might confuse yourself.
15:03
hmm
15:48
Hey guys. Happy New year!!
Same to you
Happy New year
16:03
Happy New Year! One year closer to Python 4.
8
Happy New Year
Happy New Year!
(In 13 hours).
Happy New Year (6 hours to go, for me)
@davidism s/4/2.8/
They should just skip Python 4 and move to 5, it seems to be the trendy thing to do.
16:09
2.8 is the false hope, 4 will truly save us all.
One year Closer to Kevin Script 1
7
They should move to using mountain names for versions.
Python Mt Everest.
Python Mt K2
Python El Capitan.
16:10
I'd love to visit Yosimite ;_;
I think Iceland, Japan, Yosimite would be my Top 3 "do the needful and travel there" destinations
My brother is going to Norway/Sweden this summer. I'm super jealous.
Norway/Sweden would also be in the Top 10 easily, maybe even Top 5.
I've been half an hour into Canada, and that's only because my grandparents live right on the border.
We're also Norwegian, so it's kind of a learning about our heritage trip.
I think Scotland would be my #1 place to visit.
I want to visit the family castle.
I love Scotland, it's truly beautiful.
I drove into the Snowdonia National Park (Wales) over Christmas to get some photographs. Will process them when I get back to Cheltenham and then share them if they turn out okay.
Such a beautiful part of the world.
Oh, also, question for the London SoPYers. My GF is visiting London for two weeks on the 2nd. Anything she absolutely needs to do? Or any good bars/restaurants she can't miss?
16:16
@Martijn and @Jon are probably two of the better to ask.
Alright, thanks. I couldn't remember who lived in London proper.
Well I think Martijn works in London and Jon is close.
Not sure about Rob or JRSizzle.
Didn't Rob just move there for work?
He moved to Oxford.
Ah, gotcha.
16:18
Depending on what she enjoys, she should go to the National History museum, maybe the Science Museum.
She's an acting student. She's going with school and seeing ~7 shows on the west end.
Ah awesome. I've been to a few musicals in London.
She really wanted to see The Curious Incident Of The Dog In The Night Time but it would've conflicted with the other shows she's seeing. We saw it on Broadway, and it's probably the best piece of theater I've ever seen.
I highly recommend it if you get the chance.
I've seen Les Miserables, We Will Rock You, and Phantom Of The Opera.
Oooo, I'd never heard of We Will Rock You. I assume it's a Queen jukebox?
16:23
Yeah it's amazing.
It's an original story based around the songs.
Oh, cool. Yeah, I would definitely love to see that.
Set in a dystopian future where music is banned, there's rebels and such.
Les Mis was incredible in London.
So was Phantom actually.
There's a Sam Shepard play that was similar. I cannot seem to find it though.
16:54
Cabbage!
Cabbage
To prepare for the lift of the spoiler-ban on here, read these hilarious original Star Wars trilogy live tweets now: Episode 4, Episode 5, Episode 6.
@poke HNY :)
It’s always super weird for me to say “Happy New Year” before the new year is there… We have a separate greeting for that here… :/
But yeah, Happy New Year @Bhargav ;D
Also I missed your B'day. Belated Birthday wishes.
16:59
Thank you ;)
So with your B'day comes my 1 year in this room. :)
Oh really? Nice :D
Yep, you invited me here to discuss bout your name :P
Oh lol, was that on my birthday?
17:02
Awesome xD
Hmm, I wonder how long I've been here. It's been since at least May.
Is there a better way to do this? Ideally without manual indexing?
iter_totals = iter(parcel.payment_totals)
iter_dates = iter(parcel.due_dates)
for _ in range(RATES.number_of_payments):
    payment_amount = next(iter_totals)
    payment_date = next(iter_dates)
parcel.payment_totals and parcel.due_dates are lists.
ok dumb question is there a numpy function to count occurances .... ie a=[1,2,3,3,4,4,4,0,1] becomes [2,1,2,2,3,3,3,1,2]?
ahh go figure theres some simillar questions on SO :P I shoulda just googled :P
17:36
@Morgan for payment_amount, payment_date in islice(zip(parcel.payment_totals, parcel.due_dates), RATES.number_of_payments) ?
@JonClements Oooo, that does look much better. I've never actually used islice. Thanks. :)
Use izip if Python 2.x to keep it lazy
Nah, 3.4.3.
In 2016, can we agree to not give Python 2.x hints by default? Let’s just assume everybody uses Python 3 unless they tell otherwise.
I already do that.
DSM
DSM
17:52
TBH, if an answer depends on the difference between 2 and 3 I already shy away from it..
Morning cabbage for all.
Wait. The hat for chat on NYE is just having it being starred?
3
Okay, who wants the hat?
@DSM I was mostly referring to chat though
DSM
DSM
I don't help enough people in chat for it to matter one way or another. :-)
18:19
Okay, should get ready for tonight now. See you in 2016 everybody! Happy Cabbage!
Ciao. Bye
user559633
Oh man, this game. I got it on some shareware CD and it was the first game that I "figured out" that removing/changing parts of a file changed the way the game played.
18:38
github.com/Max00355/FlappyBird - flappy bird within 100lines :) pretty cool
user559633
pygame is more than 100 lines
DSM
DSM
Well, so is a Python implementation.
hah lol)
star for a hat ?
is it already working.. ?
18:57
now hating: html mail signatures
I'm willing to bet your computer has more than 100 bus lines.
Not sure if it's working yet or not
arg Im going crazy I hate proxies ...
(The PSA being a link to a "stars and hats for all" chat room, that is
I cannot get through this clients proxy server with requests ... at all ... but if I run fiddler to intercept the requests ... it seems to use some tunnel and all the requests go through fine ... I dont even know where to begin to debug this at this point .... I clearly have a shitty understanding of proxies
but I have no idea how to create the tunnel in my software ... and I dont think the clients gonna love that they need to run fiddler ...
19:07
What type of proxy is it? NTLM or the standard, more friendly kind (which I suddently can't remember the name of...)?
If it's NTLM, I think there's a requests-based library that supports it. If it's a standard SOCKS5 proxy, I think there's another library involved to get requests to work (requesocks, or something like that?).
oh thats actually helpful ... I dont know their IT company is in germany ... and they are in south america ... Ive asked repeatedly what type of proxy server it is ... they just keep letting me have remote access to one of the computers
I asked about ntlm and tried the ntlm library for requests with no luck
I had no idea about the SOCKS5 ... I guess I have a chance to explore that now
thanks @JoeKington
Weirdly enough, from my limited googling, it seems like requests is actually more trouble to use behind SOCKS (which most open source tools play well with) than it is behind NTLM (which almost nothing plays well with)...
Hope it helped, anyway
it works fine with simple httpproxies (requests...) I suspect this is SOCKS5 proxy (at the very least I learned a new proxy type :P)
do you know how I could tell what type it is while im remoted into this computer?
If it's a *nix machine, try looking at the http_proxy environment variable. If it's defined, it's typically pointing to at SOCKS proxy, I think.
I could be wrong about that
And it is actually a lowercase environment variable name (http_proxy and not HTTP_PROXY), which always throws me for a loop.
naw its not ... but I can see the proxy file through internetoptions
19:22
I dunno, I think I've exhausted my knowledge of proxies...
Me helping is a bit like being led by the blind :)
But there's probably some really easy, standard way... You'll find it a month after you implemented some awful hack to do the same thing :)
To truly understand the proxy, one must become the proxy and just google all your questions.
DSM
DSM
"Nicolas Cage Forced to Return Stolen Tyrannosaurus Skull" is a sentence which is at once surprising and perfectly reasonable.
lol I have googled exaustivly for weeks now :P
I think I actually have to find a real life know it all
19:24
@DSM - Wow.. That's just awesome!
@Joran - Those still exist?? :p
@davidism this ought to read "one year closer to Python 2 EOL"
its also a true story (about N. Cage)
@JoeKington I worked for one. It was great
One final thought on proxies: The wapd.dat file should also have the information, I think... That's the mechanism that a browser will use to automatically detect proxies, etc...
I cant find that file ...
19:31
Try "wget wpad.com/wpad.dat"; or something similar
Though you might have to do that when the proxy isn't being used... And that's actually the incorrect form...
The Web Proxy Auto-Discovery Protocol (WPAD) is a method used by clients to locate the URL of a configuration file using DHCP and/or DNS discovery methods. Once detection and download of the configuration file is complete, it can be executed to determine the proxy for a specified URL. The WPAD protocol only outlines the mechanism for discovering the location of this file, but the most commonly deployed configuration file format is the proxy auto-config format originally designed by Netscape in 1996 for Netscape Navigator 2.0. The WPAD protocol was drafted by a consortium of companies including...
meh this is windows ... I think that file must live on the server and probably isnt readily accessible by me
You can definitely get it if it's configured. It's just a matter of requesting the correct url. I always get the exact url to request confused, but I've used it to figure out the right proxy servers to connect to on Windows in the past.
Of course it might not be configured
Anywho, it's just one last long shot. Good luck!
bah
ok if you download and run fiddler4 it seems to create a tunnel that makes it past your proxy server ... not an ideal solution,

I need to know more details about your proxy server to help further

IE what type of proxy server is it? NTLM, SOCKS5, SOCKS4, etc?

I would really like to make it work ... but at this point Im not sure how other than running fiddler4 on the PC that is running software :P ... (which may allow circumventing other proxy stuff (Im not sure ...))
thats the email Im sending them
Im gonna go get some coffee ... maybe I'll have an epiphany
(but spellt write :P)
19:45
Coffee always helps!
Except when it doesn't
Is there a .isnumeric that works for floats?
DSM
DSM
Not as far as I know, because being float-repr-like isn't a composable quality, if you know what I mean.
Yeah, that makes sense.
I'm just going to hope that none of these addresses are '12.2' with no letters. :P
@DSM Wink wink, nudge nudge, say no more.
20:18
Why, oh why does this codebase use a CSH-based build system??? What's wrong with good-ole makefiles?? At least they stop when there's a failure instead of blindly marching on...
...Oh how I wish I didn't get stuck maintaining huge codebases that are abominatible combinations of C/Fortran/Tcl/Csh/C++/Perl...
Okay, rant over... At least know I know why my previous fixes didn't work... One binary out of a few hundred was never actually built...
20:42
rbrb, HNY :)
 
1 hour later…
user559633
21:49
Happy new year's everyone! I hope you're spending yours surrounded by friends and family. Get home safe and have fun!
Happy New Year from UTC+3!

« first day (1902 days earlier)      last day (3269 days later) »