« first day (1444 days earlier)      last day (3487 days later) » 

12:18 AM
With Halloween coming up, it's appropriate that I've reached 666 days on Stack Overflow.
 
 
5 hours later…
5:45 AM
cbg
 
cbg @AnttiHaapala
 
6:03 AM
Helloes
 
6:41 AM
Cbg all
 
cbg @ff :-)
 
+1 to existence
 
cbg
 
6:52 AM
cbg
 
One short of a party!
 
A field?
Is this chat room software open source? Because it's amazing.
 
@RobertGrant cabbage
@Jerry no cabbage
 
ok, I think I managed to change the notification settings somehow
uhh, except the previous ones might have been lost forever
 
cbg
@Jerry omg, bronze badge in tcl, ppl actually use it?
 
7:09 AM
lol, I do in any case :)
I'm aiming for gold!
well, as long as there are enough questions within my reach
 
Cbg :)
 
avi
cbg
 
@Swordy Hmm, I think I might need at least 1 more achievement to get a feed there. We'll see =/
 
wrong room i guess..
 
I want generalist
 
7:19 AM
oh that's you for pinging me here @Swordy
 
you can see many posts here , can't you?
 
when I do a lot of things at the same time... no
 
lol
 
8:04 AM
-1
Q: HiveServerException--when I run a xx.py

wenhive_service.ttypes.HiveServerException: HiveServerException(errorCode=9, message='Query returned non-zero code: 9, cause: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MapRedTask', SQLState='08S01')

Not sure how I'm meant to interpret that "question".
 
VTC'd
Like a number of the commenters, I can't reproduce with 3.4 on a 64-bit Debian-based OS.
 
@ZeroPiraeus Doesn't mean it's not a real bug
 
It might well be ... but SO isn't a bugtracker ;-)
 
It could be user-stupidity (probably, the way these things go), but it feels like a good place for benefit of the doubt.
 
It's specifically unreproducible, which is a standard close-vote reason.
 
8:09 AM
I tend to take that reason to mean "I pasted the wrong code"
 
Look at it this way ... multiple people have tried and failed to reproduce the problem. It's either a user error not mentioned in the question, in which case the question is a) unanswerable and b) no use to anyone else, or a bug in Python / Debian / whatever, in which case SO is not the place to report it.
 
Yeah seems fair, voted.
 
This might not be a good place to report it, but "we're working together to build a library of detailed answers to every question about programming." This seems like something somebody might Google (if it's a real problem), and a post saying "it's a bug, too bad" would at least be helpful.
 
But a better place to post said bug would be to a bugtracker of a repo. Then they can either say "Not our fault brah, try X, Y, or Z repos as possible failure" rather than someone googling for the problem on the off chance.
Plus, just because it's closed doesn't mean someone can't comment and say "Oh yeah this is a bug"
I dunno. I see your point but, based on the fact that comments still work, disagree with it.
 
Bad example
Would you have voted to close this? The answer was "I think this is a (minor) documentation bug."
 
8:22 AM
Honestly, I don't see it having much value even as a google result - it's old enough that it's unlikely to get an answer on SO now, and all anyone finding it will get is a vague feeling of solidarity with OP.
 
Yeah.
 
I didn't realize the last reply from OP was Aug 12
I'm with you now
 
9:08 AM
cbg
 
G'day
 
cbg
 
Mornin' :-)
 
@Zero wotcha - cbg all :)
 
@Jon BRIIIIIIIIIIAAAAAAAN!!!!
 
9:09 AM
@Ffisegydd STEWIE!!!!!!!!!!!!!!!!!!
 
closed
cbg Jon
 
Oh sh** davidism has been answered questions again and catching up!
 
you guys in an informal competition? :)
 
Yeah...informal...
It was a competition to 5k originally, it's kinda just become a running joke now.
 
@Jerry Informal, pah! They're slashing each others tyres, pouring sugar into fuel tanks, the whole bit ...
 
9:13 AM
ok, my choice of words is poor xD
 
I've got a 512 rep lead.
 
@Ffisegydd Nice binary number lead :)
 
I'd prefer a lead that is logarithmic, preferably something like 10^3 or 10^4.
 
Do you really mean logarithmic?
Not exponential?
 
Yeah. That.
I was thinking of logarithmic graph paper :P
 
9:40 AM
Umm... lovely cup of tea...
 
cbg(folks)
 
helloc peter
 
Goodbye Direct Line, hello More Than
 
File "<stdin>", line 1
    helloc peter
               ^
SyntaxError: invalid syntax
@Swordy that's still another room ;)
anywa, has anyone have an ello.co invite?
 
@Robert car insurance?
 
9:49 AM
try :
     helloc Peter
except SyntaxError:
     cbg(Peter)
 
@Swordy much better now, cbg(Swordy)
 
:)
 
@Swordy except that it does not work.
too bad.
 
cbg all after return from vacantion... :(
 
@AnttiHaapala debug it
 
9:53 AM
>>> try:
...     helloc peter;
  File "<stdin>", line 2
    helloc peter;
               ^
SyntaxError: invalid syntax
 
??
 
15
A: Can Syntax Errors be handled properly?

delnanSyntaxError is a perfectly ordinary built-in exception. It is not special in any way. Only the circumstances of when it's (usually) thrown are a bit unusual. A syntax error means that the code featuring said error cannot be parsed. It doesn't even begin to be a valid program, hence it cannot be ...

 
>>> try:
...     eval('helloc @Peter;')
... except SyntaxError:
...     cbg(Peter)
 
@AnttiHaapala know of any good library to convert pdf to xml??
there are many but i'm confused which one to go with
 
Try them out then.
 
9:59 AM
@JonClements look what I found to avoid proprietary, closed sourced cloud systems, like GoogleDrive or DropBox (or even BTSync) => syncthing (I knew sooner or later the FOSS community will come up with something useful!)
3
 
@Peter nice spot - I've bookmarked that - will have to check it out later :)
 
@Swordy I only said better -- never mentioned if it is working or not ;)
@JonClements I'm thinking of building a social network on the technology of syncthing
 
@Peter how many projects do you have on the go already!? :p
 
because only if a social network would be true P2P, fully open source
that would be the only way to defend yourself against ads and malicious features
@JonClements this one is only in my mind, right now ;)
as one of my friend said in high-school => Peter is working with an avarage of 6 ideas per second..
well I think I got better since then ;)
 
@Swordy depends on what do you mean "by xml" :D
base64? :D
 
10:06 AM
huh?
what is the difference? I want to extract text from xml , which would be easiest??
 
@JonClements house insurance
@PeterVaro yeah that's clever
And I just want a fully trustworthy $thing I can run that syncs everything between laptops and whatever else on my network when I walk in the door. Maybe syncthing is that $thing
Clue's in the name, I suppose, now I read that back
 
Talking about catching SyntaxError reminds me of this gem:
# Implementation of exec_ is from ``six``:
if PY3:
    import builtins
    exec_ = getattr(builtins, "exec")
else:
    def exec_(code, globs=None, locs=None):
        """Execute code in a namespace."""
        if globs is None:
            frame = sys._getframe(1)
            globs = frame.f_globals
            if locs is None:
                locs = frame.f_locals
            del frame
        elif locs is None:
            locs = globs
        exec("""exec code in globs, locs""")
The last line is beautiful
 
If anyone has time, please teach me some more Python by explaining that :)
 
Well, OK
I'll do a Q&A.
Give me a mo', there's quite a bit of magic in it
 
10:22 AM
AMA :)
 
0
Q: How does Six's exec_ work?

VeedracHow does this code, which forward-ports exec, work? # Implementation of exec_ is from ``six``: if PY3: import builtins exec_ = getattr(builtins, "exec") else: def exec_(code, globs=None, locs=None): """Execute code in a namespace.""" if globs is None: fram...

@RobertGrant Ping!
 
Thanks :)
 
10:43 AM
@AnttiHaapala Your ingenuity is terrifying.
 
howso
just looked at it and didnt believe it is necessary to use exec, so I wanted to try something
same with print,
print "statement, args" does not parse in python 3
but if you want python <=2.5 compatibility, you can always do
 
@AnttiHaapala did you write six?
 
print >> sys.stdout, "foo", "bar"
nope
 
It's the lovely in hack that made me impressed
 
@Veedrac Indeed, it is quite delicious :-)
 
10:46 AM
"exec" expression ["in" expression ["," expression]]
 
cbg, btw.
 
1
A: How does Six's exec_ work?

Antti HaapalaThe final exec("""exec code in globs, locs""") is indeed superfluous, the statement can be made to parse in Python 3 without SyntaxError by writing the code as exec (code) in globs, locs Which in python 2 will be parsed as exec code in globs, locs And in Python 3 it is effectively identical...

 
cbg
 
@Veedrac: surprised six includes that whole dance for exec, because you can use exec as a function in Python 2.
It's specifically there for future compatibility.
 
10:58 AM
>>> exec_ = exec
you cannot use exec as a function, you can use it with syntax that looks like function call
 
Sure, but why create the alias at all?
 
bc someone wants to have it as a function :D
you for example cannot have exec in lambda
 
Yes! Use it with map!
 
:P
how do you do while loop in lambda without exec?!?!
lambda: exec('while True: print("Happy!")')
 
@Veedrac: not sure yet, nothing in the 2.6 or 2.7 news file, nothing in What's New..
 
11:03 AM
thank you guido for this insight :D
 
It seems Jython runs it, and that's 2.5.3
Anyhow, despite the fun, I shall be a-leaving for a while.
 
That's fixed for 2.7.9, so there are still issues with the tuple form.
 
@Veedrac thanks for taking the time to explain all that!
 
I'm into SVN merges now, so the support is quite old.
1997...
and it's called 'backwards compatibility'. :-P
So exec(...) has worked forever.
Because that was the default.
It became a statement in 1993‌​, but using a tuple argument was kept as backward compatibility.
Which became forward compatibility when Python 3 switched it back to a function.
 
Isn't the point of this that you can just import six and regardless of how you call exec in your code, it'll keep working?
 
11:11 AM
There are some very obscure corner cases where exec(...) doesn't quite work inside a function inside a test, fixed in Python 2.7.9.
@RobertGrant You cannot use exec as a statement in Python 2 even with six.
But you don't need six.exec_ in Python 2 when you can just use the tuple form.
 
Oh okay, fair enough
Yeah, I see what you mean
In fact the last line of code relies on exec() being there in python 2
 
no it does not
it relies on exec being able to take an expression
exec(tuple([code, globs, locs]))
works in python 2
phew
 
11:30 AM
@MartijnPieters Thanks for the trawl through SVN!
Also, cbg
 
This seems to be completely forgotten behaviour; I'm not surprised that they missed it.
 
11:47 AM
Umm.. stackoverflow.com/questions/26098775/python-3-41-a-set might make a good dupe target in addition to the dictionary order one... (as it focuses on sets)
 
Yet the answer is exactly the same.
Sets are just dictionaries with no associated values.
The implementations are very close to one another.
@JonClements We could just update the existing post to include sets, really.
 
@Martijn don't see why not... I've added to the CQ list anyway while I remember... flicking between tabs and apps left right and centre at the moment :(
 
Done, edited the 'dictionary order is arbitrary' post to cover sets too.
 
@KeremZaman I don't think you can use CSS in Tkinter. The ttk themed widget set lets you apply styles to its widgets, but it doesn't look like it has the "cascading" that is characteristic of CSS; you can only apply one style per widget.
 
greetings and salutations @Kevin
 
11:59 AM
You could always write your own engine, of course. But that's quite a lot of work compared to downloading a GUI toolkit that already has CSS. (if such a toolkit exists)
Hi Jon
The fifth grade gym teacher begrudgingly accepts your non-looping submission. However, you'll notice that he has something of a vendetta against you the next time the class plays dodge ball.
 
@JonClements Since the second 'part' of that post is basically answered by the first part (.pop() takes the next element in iteration order, but you cannot rely on that order) I have closed it as a duplicate now.
 
@Martijn okie dokies...
 
12:17 PM
 
What's with the open bounty? The current answer with 6000 upvotes not good enough?
 
@Kevin apparently not? :)
6000 upvotes? That's more than my enitre rep in one question :(
meep meep
 
I have a feeling 50 reputation isn't going to affect much on that thread.
 
> Looking for an answer drawing from credible and/or official sources.
"git-commit(1) Manual Page" not official enough, then?
 
@MartijnPieters The question you closed also asks about why {1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 20, 55} is in order. I'm not totally sure my response fits on the duplicate target.
 
12:20 PM
@JonClements Maybe he got them all in one day, making it worth a measly 200 :-)
 
I jealously hope so :)
 
Cross posting from Hacker News: writing a simple operating system from scratch‌​. As an assembly neophyte, I'm finding the section on interrupts to be quite interesting.
 
user559633
the section on what
 
The guy's cheating a little bit, though, as it's not entirely "from scratch"; he's using a text editor & assembler on a second machine to craft his boot loader. If you ask me, it doesn't count as From Scratch unless you enter the machine code instructions by twiddling a "0/1" lever on the front panel of the computer.
 
user559633
yeah, unless he's waiting for lightning to strike sand, it doesn't count
 
@Veedrac The order is a coincidence and a function of the hash values of integers.
 
I've discovered that it's quite difficult to construct a computer using only materials you can extract from nature. Maybe silicon can be found on any beach in the world, but if you want chromium, you have to go to South Africa or Turkey.
 
That's still covered by my answer, really.
 
Just goes to show how important a global economy is, to support the wonders of the modern age.
 
The same applies to dictionaries.
As you stated, it is an implementation detail.
 
12:28 PM
Saying it's an implementation detail isn't the same as saying why
 
@Kevin Which supernatural materials are you short of?
 
The question was asking about the implementation detail
 
@Veedrac Sure, but you should at the very least remove the 'someone closed it as as dupe' part.
 
Before I can even make a computer out of this handful of sand, I'll need an industrial lathe. Does anyone know how to make steel?
 
The 'why' about the ordering of integers in a set can easily be inferred, in any case.
 
12:29 PM
@MartijnPieters No humor, eh? I'll remove it.
 
sorry, trying to make MySQL do my bidding.
And it is being stubborn.
Always kills my mood.
 
user559633
you should be using mongodb. it's more webscale
 
@tristan Now officially proven
 
@Martijn ready the Katana!
 
Even Martijn knows not to argue with a blog post
 
user559633
12:37 PM
 
user559633
this is a neat video too
 
user559633
 
@ZeroPiraeus That could well be a good question if it was remotely readable.
 
I wondered what ODOO was... then realised I'm actually on their mailing list :)
 
Yeah, if I had the slightest idea what they were on about I might even bother to look up ODOO ...
 
I'm guessing "please speak English better" wouldn't be a constructive comment here. I don't think we can do much for this guy :-(
 
meta.stackexchange.com/questions/240167/how-odoo-inheritance-work
 
Neither of those go anywhere useful :)
 
Not any more.
 
I'm guessing high rep meta users can see something there. I wouldn't know, I don't have high meta rep.
 
@Kevin yeah, that makes sense
 
1:32 PM
Little bit of map-territory confusion in this post. The guy wants his list of strings to be displayed with ' instead of ".
 
aaarrrgghh.. I'm writing the project brief to one of my classes in english, but I can't come up with a grammatically correct version of this:
> (The structure) may contain empty spaces ('holes') but the area of which are lesser than 10000mm2 each
 
The other component of the question, "how do I remove apostrophes from the inside of my string?" is quite answerable, though
@PeterVaro That's a tricky one.
 
@Kevin I know :(
 
I think the easy way out would be to split it into two sentences. "The structure may contain empty spaces ('holes'). The area of each hole must be less than 10000 mm^2"
 
this sentence is part of a long list of criteria
and if possible, I want avoid using more than sentences in each item of the list
 
1:35 PM
(The structure) may contain empty spaces ('holes'), the area of each of which is less than 10000mm2.
 
(The structure) may contain empty spaces ('holes'), each of which having an area less than 10000mm2.
 
@Kevin in your version, you can lose "of which" ... which would make it better than mine IMO.
 
Are you looking for the word "gap"?
(The structure) may contain gaps of area less than 10000mm².
 
hmm.. is "gap" better?
 
"∀ H: H ∈Holes → H.area < 100000"
 
1:38 PM
If you prefer the old terms, "(The structure) may contain empty spaces ('holes'), each of area less than 10000mm²."
 
@Kevin that's the one ;)
 
@ZeroPiraeus I think I agree with you. "(The structure) may contain empty spaces ('holes'), each having an area less than 10000mm2."
 
For me, a hole is a fully-bounded void, whereas a gap is open. For instance, a donut has a hole, but there's a gap between the train and the platform.
 
@PeterVaro Fixed
 
@ZeroPiraeus if that's true, I need holes then
 
1:40 PM
In my mind a gap has a well defined width, but not a length.
 
And whole swathes of the conversation were laid to waste, leaving only grayed patches of (removed) littering the rubble.
 
@Kevin I think I go with one :) Thanks guys!
 
Or: "(The structure) may contain empty spaces, or holes, where each hole's area must be less than 10000mm²."
You're always just too late to the party, Rob.
 
*each's whole area
 
I think anything's fine as long as the reader doesn't think that the sum of all the areas must be less than 10000.
 
1:42 PM
@RobertGrant LOL
 
@Kevin There are spaces in the object but the sum of the spaces don't need be less that 10000.
 
(The structure) can be holed; a mere 10000mm2 is loosed upon the area.
 
But what colour are the holes?
*colours
 
The structure has to have the right "feel". Email me a schematic for final approval.
 
Umm..... found a bug in a parser as well now... that's not good...
 
1:47 PM
Which parser?
If it's SO Chat's Markdown parser, you're a bit late.
 
@kevin lol
"As BDFL of the structure, please make it, and I will either ignore it, bless it then ignore it, or incorporate it into my stuff"
 
:):):)
 
Just keep making structures until you get one that doesn't collapse under its own weight.
(That philosophy is why I got kicked out of bridge design school)
 
I don't really have any authority in this matter but sometimes I state my opinion on the mailing list.
 
@Kevin that sounds like a genetic algorithm
...spec
 
1:52 PM
@RobertGrant Only if you learn from your successes.
 
@Veedrac a client's code some code that's meant to parse slk files, but it gets muddled up and misses things out or puts the row wrongs with the wrong columns (not good for financial data)
 
R̶E̶D̶A̶C̶T̶E̶D̶
 
lol
It seems to be rounding off at the 5th decimal place and...moving the difference somewhere?
 
That strikethrough line looks a little weird. Is it supposed to be dashed like that?
Is markup being weird again?
 
Yeah agreed, it does look weird (Firefox+Windows 7)
 
2:06 PM
if an interview was half the expected time, but I had experience with everything they mentioned in the interview, is it good or bad in general?
 
@Kevin It's a Unicode combining character; not all fonts support it well.
 
Ah, I thought it might be something like that
 
@corvid hard to say. Are you easy to talk to, would you say?
 
probably not too bad, dunno
 
I know it's a weird question :) Ask a friend maybe.
It's very hard to tell whether an interview is good or bad based on length; it could be you and the interviewer both say things quite succinctly and everything's covered. There's not much you can do about it or work out about it; I'd relax and drink a beer. Well done for doing an interview!
 
2:13 PM
psh, beer. Mead is so much better
 
I don't think it's necessarily bad. Maybe HR picked an expected time without actually conferring with the interviewers. Perhaps they just picked "four hours" out of a hat, when really the interviewers could do it in two.
 
@corvid or mead :)
 
This is more likely to happen in a large company, where the engineers can't lean over in their chairs and smack HR upside the head
 
...without getting fired
by HR
 
they said it'd be a half hour and it was 15 minutes. I think it was more of like "do you have the skills you claim to have" kind of thing
 
2:15 PM
Oh flip, that sounds alright to me
More like a technical interview
 
Did you say the word "encapsulation"? That usually helps
 
You're basically at one extreme or the other of a skills bell curve - either way, it was easy to tell :)
 
it wasn't too technical, it was like "do you know what test driven development is?" and "do you know what a ReSTful api is?"
 
But going on what you said about the job before, and where you seem to be, I assume you're at the correct end of the bell curve
 
Conjecture: SO questions containing the word "pythonic" can reliably be assumed to be of low quality.
Addendum: the word will probably have been used incorrectly.
Further addendum: ... to mean "with a list comprehension".
 
2:20 PM
@ZeroPiraeus or "one-liner"
 
I usually see the word in questions that already have working code, but want to make it better
So not so much "low quality" as "belongs on Code Review"
For questions that don't have working code, or any code, yeah, low quality.
Then it's like an appeal to language-patriotism, in order to trick you to write code for them.
"Are you a Pythonic enough dude to finish my homework?"
 
I smell barbecue coming from the deserted alley outside my window. Ghost BBQ?
Begone, O spectre. It isn't lunch time yet.
 
2:40 PM
So weird, I also smell BBQ
Someone else just commented on it
 
Must be a global event, then. Perhaps a nearby stellar phenomenon is emitting cosmic rays that have just the right frequency to excite our cooked meat smell receptors.
Astronomy, physics, biology... Hey, I'm a crackpot in three different sciences. I think that's a personal best.
 
@Kevin will you be my grammer-nazi please? Take a look at this one. I know you have GH acc so you can comment there, even update fixes -- if you have "nothing else to do"..
:)
 
s/build/built/
 
I'll take a look
 
are the following
 
2:55 PM
@RobertGrant not here, please -- fix the gist, don't spam the room ;)
oh and thanks for the effort -- both of you ;)
 
Oh sorry
Those are the only two :)
But in the future, how do I edit? Clone+PR?
 
absolutely no problem, but since this is as far from a python topic as it can be, I thought working on the gist instead of spamming the room would be a good idea ;)
 
oh I hate C++
here just another C++ program, 1 file that does not have a single line with "class"
 
@RobertGrant that's a good question -- this is the first time I share a gist post actually
I have node idea how it is working :)
 

« first day (1444 days earlier)      last day (3487 days later) »