« first day (1838 days earlier)      last day (3110 days later) » 

12:10 AM
@AdamSmith glad you liked it. I kept track of what I traversed, and if I saw it again, that means I completed the loop. I did a lot of these...don't want to annoy you with sending you a bunch of links, but if you're interested in a few other fun ones, let me know. :)
 
12:41 AM
It's been nice and quiet at work - until I was swarmed by a bunch of movers with boxes - they're going to move in a bunch of programmers. They said I wouldn't like them. I've been told the lady across from me does a lot of calls. I'm going to commandeer an office down the hallway.
 
1:01 AM
Programmers. Hate 'em.
Make the neighborhood unlivable.
 
seriously....
 
Less good than empty seats, from my selfish point of view.
But my firm will save some money on real estate expenses, so good for them. I just need them to spring for me a corner office or something like that.
 
Your office doesn't have corners?
 
My old workplace was just about to move in another company when I left.
Last I heard, they were thinking of schemes that would encourage people to carpool, because the lot wasn't big enough for two companies.
Rbrb for a bit.
 
1:18 AM
There's a couple of corner offices on my floor, but they do weird stuff with it.
 
@idjaw That's what I did too. Made a dictionary with for i in itertools.count(): my_dict[node] = i; if node.next in my_dict: # I'm done, count from that index!
 
2:02 AM
cbg
 
coleslaw
sauerkraut?
 
2:45 AM
I had a bacon-wrapped hotdog with sauerkraut, jalapeños, and chili today... yum!
(Thank you, 7 Eleven!)
 
3:05 AM
Morning all
 
Good evening, @vaultah how are you?
 
Good, I just woke up :D
 
Do anything interesting in the last 24 hours?
 
Nothing too interesting...
 
3:26 AM
I got a friend to teach me more of the basics of setting up a github repo for a Python package tonight.
 
Anonymous
3:50 AM
So, I'm finally working on Python3. I got past the madness of indent/print() error.
 
Anonymous
One thing bothering me that I had python 2.7, and whenever I start my machine, it defaults to 2.7 I have to manually do scl enable python33 bash to book python3.
 
Anonymous
yum list installed | grep pyth gives a whole lot of results, does anyone know how to get rid of 2.7
 
I usually ignore system python these days and use virtualenv and work within one
also, your distro may have tools that are written for python2.7 so you can't just get rid of it.
spoiler: yum is written for python2.7
 
Anonymous
wow, I didn't know that. Specially given that I am using Redhats CentOs it makes sense :\
 
cat /usr/bin/yum and cry ;)
 
Anonymous
3:55 AM
TIL
 
Anonymous
I don't know why, but I thought Python 2.7 was new, and 3 was like less than a year old, until someone here said it was more like a decade since it was released
 
well technically 2.7.10 is quite new
 
Anonymous
But, how can that be? I just saw 3 was released in '08
 
Anonymous
Are they separately maintained like Fedora/CentOs?
 
They sometimes release updates to 2 for some reason.
 
3:59 AM
Python 3.0 final was released on December 3rd, 2008.
The final version of Python 2.0 was released on October 16, 2000.
iirc 2.7.10 is the first version of python to violate Guido's version numbering rule
but given that they won't have 2.8 and they need a security release to 2.7.9...
but yeah, distros generally do maintain their own python packages.
though if you are talking specifically about python, 2.7 will supposedly EOL some time in 2020
originally it was scheduled some time in 6-7 weeks.
 
Anonymous
I supposed 2.7 is a on feature-freez and the 2020 is for minor patches and bug fixes right?
 
more that python 2 has been on feature freeze for half a decade now, so yes.
 
 
1 hour later…
5:10 AM
> Ugh, I hate python 3. So much.
> Usually I try to be very nice as a maintainer, but don't bitch about my library in one comment then tell me how to design it in another. Get a clue bro, who do you think you are?
I had thought about using and improving that library until I discovered these
 
what library is it?
 
aww if it was something I knew about I'd recommend uprooting them and designing a competing module with Py3 support
but I don't know anything about Redis :)
 
What do you think of marking this as dup of this?
Too late, someone already answered.
 
you can still mark as dup
but I feel like there's a better target
 
5:22 AM
Dunno if it's a good one, and I'm too tired to care much right now.
 
Thanks.
 
anyhow -- bedtime for me. Rhubarb!
 
rbb
 
Rhubarb Adam!
 
5:35 AM
hello
 
I like how someone reopened that question just to give another answer, then someone else closed it again.
 
6:02 AM
well... I voted to delete the Q.
 
Probably for the best.
 
 
2 hours later…
8:26 AM
Hey up all
 
9:05 AM
Hi
 
is there a reasonable reaction to a question like this one? stackoverflow.com/questions/33386707/…
 
I have a matrix say coords = [(1,2,3), (4,5,6)] now I want 25 * 3 matrix by appending zeros.
I tried this numpy.pad(coords, ((0,29), (0,0)), mode='constant', constant_values=0) but it ias adding 29 0's
but i want my matrix always remind to be 29 * 3
not 25 it's 29
 
Cabbage!
@hiroprotagonist Close as too broad. We can’t possibly give Python tutorials for every question like that.
 
@poke thanks. saw the close votes and joined in. liked the first comment though...
 
As long as the question gets closed, everything should be fine ;)
 
9:21 AM
cbg
 
9:41 AM
hi
 
How goes it?
 
9:57 AM
Cabbij
 
errr hellow @IanClark? :p
 
10:21 AM
\o @JonClements - how be?
 
o/ me be fine, how be you? :p
 
10:48 AM
cbg
> Hi my question is my friend get upset from me and make my number unavilable it mean is not gona see my number but If text him message gona recived text from me
 
spam or NAA?
 
:D
NAA
 
yeah ok
 
Spam must be either a troll or a company stuff
Lol, first page of searching for NAAs and found 6 of them :D
 
my goodness...8.7K close votes...I guess that list always stays big eh?
 
10:54 AM
@idjaw yup :)
@idjaw oh... I missed the you reaching 3k party!? :(
 
I dunno why the LQP is above 800 these days
 
Unless you fancy getting into some hardcore closing - use the filtering so it's at least something you're interesting in cleaning up
 
cabbage
 
cbg
@BhargavRao some recent changes... they're staying in the community queue longer before going into the mod queue
 
cbg
 
10:56 AM
@JonClements He was sitting on 2998, so I pushed him over the line. By upvoting a question that deserved an upvote, of course. :)
 
@JonClements PM2Ring brought me in to the 3K club...he was looking for a close vote and I was 2 away from 3K. My party was celebrated by voting on a close vote...and just to contribute more to the magic of it all, my vote was the closing vote! It was wonderful.
 
But @Jon almost 40 out of my prev 50 were deleted by mods ....
Needs some more changes I guess.
 
I was starting to think I'd lost a persistent downvoter, then my four latest answers all got downvoted 35 minutes ago. So who have I peeved this time?
 
Perhaps best to not guess/name names, hey guys?
 
good point
 
10:58 AM
That was more of a rhetorical question!
Also, this was going on before I commented on Voldemort
 
How to flag to ask a mod to convert to a comment? Custom flag?
 
yup
Or ping Jon
 
That'd be funny :D
 
I’m actually serious… >_<
 
11:05 AM
wow...
 
That's spam BTW
 
We should only be pinging Jon for serious things, like fetching a tennis ball or barking at strangers.
 
@Ffisegydd exactly - not so much the strangers thing... but absolutely definitely the tennis ball one
 
Or telling Who's a good boy?
 
Or if you see a squirrel
 
11:07 AM
sweet! My city has been ranked the worst in Canada to run a business!
..
 
congrats?
 
@poke precisely!
 
wouldn't this be something more for code-review? stackoverflow.com/questions/33389337/…
 
I seem to have a Tkinter app that's gone unresponsive and can't be killed in Task Manager.
 
11:13 AM
Tkinter gone wild?
Damn awesome prof pic @TigerhawkT3
 
It was working, then I left it running while I played a game, and now it apparently can't load itself back into RAM or something. It's not even trying to use the HDD anymore; just stuck.
And thank you - it's courtesy of Jon. :)
I went into the "details" tab in Task Manager, tried to End Task for python.exe... access denied.
 
Doesn't sound good
 
Can't you reboot? Doin some imp stuff?
 
Apparently, sometimes Python does stuff in kernel mode that no user has permissions for.
And when it's stuck, you either need a special tool like Process Hacker or a full reboot.
 
Using keyboard shortcuts in the new tab design is problematic... :'(
 
11:20 AM
Scribbles in notebook Another reason to use Linux
 
Well this is peachy.
 
@thefourtheye if you're referring to the new nav, the folks working on it appreciate the feedback and react to it, so you should post that here --> meta.stackoverflow.com/questions/308875/… : )
 
I guess that's what I get with a computer over 6 years old.
 
Cabbage @Thomas!
 
@ThomasOrozco Sure. I'll do that. Thanks :-) I was wondering if the problem is specific to my machine
 
11:22 AM
@TigerhawkT3 I found this: stackoverflow.com/a/19381725/1832539 . If you're interested in sciencing
 
Hey @poke
 
@ThomasOrozco so "nav" and "teams" seem to be the words to get your attention then :p
 
Wow @Thomas do you monitor every chat room?
 
Speaking of teams… any news? ;D
 
@thefourtheye Awesome; thanks. I don't think keyboard shortcuts are something they've put work in just yet, so I wouldn't be surprised that they don't work
 
11:23 AM
Access denied.
 
@BhargavRao No, just this one (and the teacher's lounge, most of the time)
@JonClements :D
 
Wow - in that case - we're honoured! :)
 
@poke It's almost ready and we'll be testing it internally for probably about a week or so. The beta should start sometime next week
 
Meh, I’m in Berlin next week :(
 
11:24 AM
@ThomasOrozco Okay then. I'll leave my comments there. Thanks once again :)
 
@thefourtheye sure, you're welcome!
 
@JonClements you know I'm just around in the rooms you're in.
 
@poke if only Germany had the internet!
 
Yay! My own personal stalker... you know you've made it big time when...
 
11:25 AM
Well, I’m at a conference, so I won’t have much time to play with teams.
 
Ah, I see. Speaking, or listening?
 
I downloaded, installed, and ran Process Hacker 2.
 
@jonrsharpe haha "just answer the question if you can"
 
Looked for python.exe, and... didn't find it. Checked regular Task Manager to confirm, and python.exe wasn't there anymore. Looked in taskbar... the app closed on its own.
 
@jonrsharpe Working actually
 
11:26 AM
 
@poke working on speaking/listening? :p
 
@ThomasOrozco Looks like @MartijnPieters already reported the problem which I am facing.
11
Q: Keyboard navigation and the new nav don't mix

Martijn PietersI use keyboard shortcuts. A lot. But unfortunately, it appears that the new nav tries to steal the focus, all the time. It does so when loading the page, when new questions are being loaded, and when live-refresh adds the grey box to show new questions can be loaded. When a new question comes in...

 
@thefourtheye Beat to the punch by @MartijnPieters; doesn't seem unusual ;)
 
@JonClements I’m part of the conference team, so I’m busy helping stuff around there. But I’ll also be listening mostly.
 
11:29 AM
@Sklivvz: only ever autofocus a text box if that's the primary focus of a page. The Google homepage can auto-focus the search box, a contact form can auto-focus the first field. But the tag box is not the primary focus of the question list. The questions are. Auto-focusing is a terrible idea here. — Martijn Pieters ♦ 3 hours ago
I totally agree.
 
This shouldn’t be an input on saved tabs anyway. Make it a static list and add a “modify this” button that toggles into an edit mode. — poke 4 hours ago
 
That's what I thought.
Most websites do that only
 
The only way to beat Martijn to something is to do it before he was born :p
7
 
Difficult for most of us.
So, go for it Jon.
*cough*
(sorry)
 
In my short time here, that is the conclusion I came to as well @JonClements .
 
11:37 AM
Time for an early rhubarb for me.
 
rbrb Tigerhawk
 
That moment when you find a bug in some special situation that should have never worked under any circumstance…
 
@poke priceless?
 
I’m just super confused.
 
11:49 AM
Expressing your aggression through git commit messages is the best.
"Jenkins can jog on, the tests are wrong and I'm right"
 
@Ffisegydd I found it comforting to curse in comments and variable names
and printing curse words to the stderr
 
def convertToNum(x): return '123456781123434353465' and def convertToText(x): return 'test test1 test2 test3'poke 23 mins ago
@poke ha!
 
:)
 
A true TDD approach
 
@poke that made my morning.
 
11:54 AM
@Ffisegydd eventhough I curse in my code, I never commit those stuffs.. I like my commit messages when they are short, explicit and very informative..
 
@JonClements Good thanks! Just busssy :D
 
idle hands and all that :)
 
@PeterVaro: Here's a little snippet of Japanese blues for you: Maki Shizusawa demonstrating that she knows her way around an ES 335
 
rbrb. Time to push changes and reboot :-)
 
Here's a longer, moodier piece from Maki: Flowers.
 
12:06 PM
cbg
 
I have my own MTG card!
 
urllib2 is giving me errors when i request the same site more than once every ~10s. Is there a way to solve this?
 
@Pigman168 Probably not - it sounds like the server is rate-limiting you. If you're lucky the site may provide an API so you can get the data you want without hammering their poor server.
 
12:27 PM
@JonClements That card is OP.
 
"OP"?
 
@JonClements OverPowered
 
ahhh - makes sense - ty
 
watermelon
 
12:58 PM
@DSM Yeah, counterclockwise is what I want. Good thinking.
14 is a little on the expensive side for a 99/99. You can get "never dies in combat" and "will kill your opponent dead if they don't block it, no matter what" for 12 mana with Blightsteel Colossus.
And you can get just the latter effect at 7 with Phage the Untouchable.
OTOH, the semi-canonical Big Furry Monster card is a 99/99 for 15, so maybe that just demonstrates the power creep that's occurred between now and 1998.
 
Hey, kevin. I noticed in the recent transcripts you were playing with partitions. There's a nice discussion of algorithms at jeromekelleher.net/partitions.php ; here's a slightly improved version of his Python code:
def partition(num):
    a = [0, num] + [0] * (num - 1)
    k = 1
    while k > 0:
        x = a[k - 1] + 1
        y = a[k] - 1
        k -= 1
        while x <= y:
            a[k] = x
            y -= x
            k += 1
        a[k] = x + y
        yield a[:k + 1]
 
Ooh, a nonrecursive implementation. Interesting.
 
It's still not particularly fast for large args, but it's better than any recursive algorithm. And on his site he proves it's the most efficient partitioning algorithm yet known.
 
@Kevin Did they ever do another double card like that?
 
No, but they did print cards that become more powerful if you assemble the whole set, ex. Crown|Scepter|Throne of Empires; Shield|Sword|Helm of Kaldra; Bogbrew Witch/Festering Newt/Bubbling Cauldron
 
1:10 PM
@Kevin Aw, that's not nearly as fun.
 
"Cards that you can't play unless you have them together" is an amusing idea on paper, but in practice it frustrates the 99% of players that only get one half
 
@Kevin Oh sure, but it's not like Unglued was an especially serious set. :P
 
Appears I have a voicemail from someone's pocket...
 
The Unhinged set had a number of problems like that. "Let's make a card that comes back from the grave if your opponent says the word 'damage'. That will be fun, right?" Cue all players playing in perpetual glum silence so they don't get "gotcha'd"
 
Yeah, that is kinda anti-fun.
 
1:15 PM
Other than breaking the room rules?
 
Deleted it then
 
Kindly post largish code in a pastebin and link it here
 
I did it :-) the inevitable 8:1 compression — David Pulse 16 hours ago
Wow
 
Drawbacks of a dynamically typed language: you have to say "I have a list which contains only lists that contain only strings" instead of "I have a List<List<String>>"
 
user559633
@JonClements Well, how's it going? Was it Wallet? How is he, anyway?
 
user559633
1:24 PM
 
user559633
compression?!
 
If you want to "turn a buck", now's the time to get in on the ground floor
 
user559633
I compress all my data down to 1s so I can easily recreate it on the fly.
 
@tristan Not quite sure - I'm not au fait in translating "rustling sounds"
 
@jonrsharpe That comment chain is long. Can I just assume the conclusion will be "OP does not understand the pigeonhole principle"?
 
1:25 PM
Also you can pack ones closer than zeroes, because they're thinner
 
user559633
@JonClements Au fait? Using that fancy executive vocabulary now
 
@Kevin I think all you need to know is that the algorithm involves "what I'll call a spliff-roll"
 
user559633
/me makes ones and zeros with his fingers and puts them close together... yes...this makes sense
 
"But this works. It's shown in easy logic. It is THE strongest compression method. That is what I think."
 
Looks at crazy theory wall with polaroids of ones and zeroes attached by red string
Wait a minute... The strings look like ones! This blows the whole thing right open!
 
user559633
1:27 PM
This string conspiracy goes all the way to the top of the stack
 
I've got to get to the precinct. Don't let anyone see this.
 
user559633
 
How to convert a list of strings into a list of numbers. Claims it "doesn't work" when in fact it works perfectly
 
With bonus profoundly unhelpful answer
 
user559633
Oh, that was 14 minutes ago.
 
user559633
1:32 PM
What did we decide on for the time.sleep() for our hoarde?
 
I'm pretty certain that OP wants [3975, 1197, ...] instead of [[3975], [1197...]], but I'm not feeling inclined to answer if he's not feeling inclined to ask properly.
@tristan 10 minutes.
 
user559633
Oh. Set phasers to and also ping kevin
 
@tristan You can't use : in a tag. Which makes me sad.
 
user559633
@MorganThrapp this is BULLSHIT kicks chair across the room
 
Now I'm grumpy because I've seen two bad questions in a row.
 
1:35 PM
@Kevin Only two? Today is a good day.
 
I need 'em to be spaced out to retain faith in humanity
 
morning everyone
 
Do we have a title competition? Because:
1
Q: I try to build a universal wheel, but it rolls away

bmarguliesI run: python3 setup.py bdist_wheel --universal It says it's making all sorts of stuff, but then the resulting directory (build/bdist.macosx-10.10-x86_64) is empty. Where did my wheel roll away to? running bdist_wheel running build running build_py running egg_info writing dependency_links t...

 
user559633
hey corvid
 
Hey, @Kevin, if you're looking for an image processing puzzle, there's a code golf going on to replicate an image scaled to a certain size. codegolf.stackexchange.com/questions/61989/circular-blues
 
I keep getting invalyd syntax error. Whzt did I do wrong? gist.github.com/themaawaa/0a6f76c7f8346747b8ad
 
Annoyance the third: I ask this guy for an MCVE and point out a syntax error (among several other problems with his current code) and he fixes only that one syntax error
 
@MaartenWachters could you at least tell us where the syntax error occurs?
 
@MaartenWachters Missing parentheses on this line: ircsock.send(ping.encode("utf-8")
 
...and several similar lines (15, 31, 32)
 
1:51 PM
@MaartenWachters Use a better editor.
 
This is my first time using python so :s
 
Hot tip: when the interpreter tells you there's a syntax error on line 1234, check line 1233 as well. It is impossible to give perfectly accurate line numbers for syntax errors.
Well, perhaps it's possible in languages that don't use parentheses, like assembly.
But it's definitely impossible in Python.
 
@MorganThrapp Sorry to bother, but how exactly do I fix it?
 
Add parentheses until the number of left parentheses equals the number of right parentheses.
 
Put the missing parentheses in?
 
1:53 PM
ircsock.send(ping.encode("utf-8"))
 
  ircsock.send(stuur.encode("utf-8"))
Still puts stuur in red for me
 
Did you fix all four of the lines where you have mismatched parens?
For starters, both in ping and in sendmsg?
 
@MaartenWachters See my above comment. Use an editor with paren matching.
 
I don't know wich python editors there are. I'm a webdesign kinda guy dabbeling in programming
 
@MaartenWachters Notepad++ will do it.
 
1:55 PM
I was using Sublime Text 3 before but how to run it?
 
@MaartenWachters That will work too.
 
My friend showed me an hour ago so
 
@MaartenWachters this isn't remedial computing, could you figure some of this out yourself?
 
As in, "once I have opened my script in notepad++, how do I get it to execute?"? You can run it from the command prompt.
 
If you're new to Python, find and follow an introductory tutorial
 
1:57 PM
That's a good idea :-) tutorial authors are a lot less abrasive than we are.
 
The patient, thoughtful bastards
 
How I hate them! And yet... gazes into secret heart-shaped locket
@MorganThrapp Wow, I'm not sure how I would even do this in non-golfed code.
 
@Kevin Yeah, it looked pretty tricky. I know nothing about image processing, but it seemed like something you might enjoy.
 
Maybe I could write a mathy function f(x,y) that returns True if the pixel at x,y should be black, and False otherwise.
Making use of PIL's native circle-drawing operations is probably a dead end
 
Got more syntax errors now then I started XD
 
2:02 PM
Kevin I won't spoiler anything for you, but the only answer posted is for python 2 / PIL.
 
Yeah I looked at it but I can't read it XD
 
@Kevin Yeah, golfed code is nigh-unreadable.
 
At least I'm not the only one
 
Golfing Python strikes me as strangely circular
 
@MaartenWachters Maybe, maybe not. as previously indicated, programmatic detection of Syntax errors is an imprecise art, so even if it says you have more errors than before, it's possible that the true number has gone down.
 
2:04 PM
@Programmer I've done a fair bit of golfing and I can't even come close to reading golfed Python code.
 
Why not just start with a language not based on readability?
 
@jonrsharpe You mean like Pyth or CJam?
&pqJrz0hCKcrw0)}JK Yup, no readability at all.
 
I hadn't heard of those specifically, but yes
Either write readable Python or use something else, is what I'm saying!
 
a=input().lower()
d=input().lower().split()
h=tuple(a)==next(zip(*d))
print(h,h&(a in d))
 
2:06 PM
That's not too unreadable.
 
@Kevin That comment chain is just the start. It then goes into a long surreal Chat. Eventually, the OP admits to having depression and schizophrenia.
 
@PM2Ring good effort from Kirk, though, staring into the abyss for so long
 
Yeah. I'm amazed he managed to escape. :)
 
@Kevin Does KevinScript give perfectly accurate line numbers in error messages?
 
2:16 PM
@poke No, for precisely the same reason Python doesn't.
 
aww :(
 
2:38 PM
Ok, got a working implementation of that golf question in 698 characters.
 
did you cut the excess off?
 
It looks exactly like the image in the OP, so I guess "yes"
 
I meant like the variable names and whatnot
 
This is where I'd link "what's he building in there?", given I weren't at work
 
2:46 PM
@Programmer Oh. Just did and now I'm at 452
 
Every morning I wake up and have to wade through the junk that's accumulated in overnight.
once again, cv-pls flask :-(
 
It's a demanding job, but someone's gotta do it :D
 
I know that Python handles itself the memory, but I have to do many initializations. The zero values is not absolutely correct, because the algorithm uses unspecified values. — Ezazel 3 mins ago
This question is becoming less clear to me the more the OP says...
 
Down to 354. Should I post it?
 
I believe so. I want to see it anyway
 
2:51 PM
There's no "there can only be one" rule or anything? There's already a Python answer.
 
@Kevin Nope, I've seen multiple Python answers before.
 
I've never done code golf, but I don't see why not.
 
Especially if it's shorter (which it is).
 

« first day (1838 days earlier)      last day (3110 days later) »