« first day (1551 days earlier)      last day (3397 days later) » 

12:22 AM
stackoverflow.com/q/26610316/2359271 resource request/poll that was just bumped by a late answer
 
Rhubarb everyone, and thanks for the ideas @JonClements
 
 
2 hours later…
2:49 AM
cbg
 
 
2 hours later…
4:26 AM
Cbg
 
 
2 hours later…
6:32 AM
hello
 
7:11 AM
6 badges in a day... Feeling awesome :) Cabbage :)
rbrb
 
7:44 AM
hi
can i run python on dot.net and php servers?
 
I have created a new Tkinter widget! Good start to this day :)
now off to work
 
7:58 AM
Yay, Prodigy released the new single
 
Cbg
 
cbg
 
8:14 AM
Stupid snow. Enough to be annoying, not enough to shut down public transport and thus mean I can stay off work.
 
8:39 AM
Had a dream I was in Hungary visiting @Peter last night O_o for some reason he owned a clothing shop.
3
 
:D:D:D
what if I'm actually owning a clothing shop -- and you were sleepwalking?
;)
 
Does this condition have a name:

if n:
return n
it's not the id function...
 
conditional statement..? :P
 
yeah, but this specific one
like: if x: return x
 
(I know, I know.. personally I don't think it has a specific name..)
 
8:48 AM
argh too bad
 
9:32 AM
@vaultah what are you guys doing before you go to sleep? too big dinner? watching horror movies?
 
To be fair, I was discussing with my GF you visiting London and the possibility of the meet, which is why my dream my make sort-of-sense.
 
I suppose my dream was about Nidaba, so it makes sense :D
(wasted my vote, can't vote now)
bbiab
 
9:57 AM
Cabbage!
 
10:38 AM
Hi
Suggestions: use regular expressions, use str.index, use a xml parser... — José Tomás Tocino 45 secs ago
Can you explain me that and help with this question?
 
@Ty221 please see sopython.com/chatroom for the chatroom rules.
In particular, please don't link your newly asked questions here.
1 message moved to Trash can
 
fess.me – This is so funny.
 
http://pastebin.com/z9Pqvggb
I seem to be getting an error, help me out
 
Use self.min_hitpoints and self.max_hitpoints.
 
12:10 PM
phew - I think that's the project deployed
absolutely to spec, but still not convinced and will still argue it isn't what's required - but screw it, getting paid for it, and it's what was asked for so...
 
12:24 PM
Bah, downvotes are on the rise, it appears.
 
haven't had any recently - probably just you being an iconic figure now? :p
 
12:39 PM
Nah, another answerer on the same question felt that me updating my answer to cover the angle his answer covered was shady.
I hadn't read their answer yet..
Downvoted as the question was edited to match this answer, with my answer embedded into this one in case that op didn't mean addition. I'm completely pro a complete answer. Which is what you've now got, but the edit to the question made it look shady. - Otherwise I wouldn't mind — Scironic 13 mins ago
 
user559633
The best part of that is that @MartijnPieters, you edited the question so that it made sense. It's not like you found a tikinter question and said "NOPE, edits to match Qt answer"
 
I agree that editing the question to suit your answer would be shady, but it's pretty obvious from the edit history that you didn't do that!
 
user559633
But whatever, we all know that @MartijnPieters is some noob that just plagiarizes other peoples' content.
 
user559633
I heard that he's actually a web designer that does all his stuff in macromedia flash and he just edits the contracts he receives with a crayon
 
Yeah, he's nearly as annoying as that Stéphane Chazelas bloke over on U&L.
 
12:50 PM
Heh, I missed that he said 'edited the question' actually.
 
1:14 PM
Hmmm, some heavy downvoting happening here
 
@thefourtheye At least he was honest when asked what he'd tried.
 
Yup, that was a surprise
 
People are closing it as unclear when it's perfectly clear what he wants (a slight pet peeve there)
(Imaginary-Kevin-In-My-Head-That-Acts-As-A-Devils-Advocate - Fizzy I'm pretty sure you've closed questions with the wrong reason when it was just a completely awful question, hypocritical much?)
 
Recently I read a meta post saying, we need to have to close even if the OP hasn't tried anything :(
 
And now a truly, truly awful answer has been posted.
(Imaginary-Kevin-In-My-Head-That-Acts-As-A-Devils-Advocate - Jesus Fizzy you voted unclear too! You swine!) (Yes, yes I did, because I read the question again and realised it made no sense).
 
1:22 PM
Cabbage!
 
Cbg
ermehgerd they're making a Total War: Warhammer game polygon.com/2015/1/14/7544727/… :O
 
@Ffisegydd nums = "1234567890" * 6; permutations(nums, 6) would be fine, right?
 
@thefourtheye yeah it would answer the question, but not match the examples (the examples have 7 digits as PM has just pointed out)
 
Does anyone have an idea where to as question about setting locale in Debian on VPS? I am confused if "Server Fault", "Superuser" or "UNIX & Linux".
 
1:25 PM
mmm, we can just change the numbers to 7 in that case.
 
[Brute force Algorithm [Python]](stackoverflow.com/q/27943718/3005188)
 
@Ffisegydd That question is awesome.
“I have the following number” *never refers to the number again*
 
@Ffisegydd I think Dan almost deserves my finger-painting comment...
 
The deleted answer is awesome too
I’d have upvoted it.
 
I suppose a generator version of random.sample() would do the trick...
 
1:36 PM
Hello, long time not here.
 
Hey @Inbar, been a while :)
 
@JonClements Still here I see. :)
@Ffisegydd Indeed it has.
I was traveling. And I got a new job now.
So had no reason to come on here.
(never really had a reason to begin with)
 
Ah cool, where did you go?
 
All over :)
I was in California, Chicago, Amsterdam, Paris, Singapore, London, Tel-Aviv.. You name it. :P
 
Hey there @InbarRose!
@InbarRose Yet you were not here...
 
1:41 PM
@MartijnPieters No, I was not here
Good to see you are still up an about.
 
@InbarRose Anything in Germany?
 
MCVE vs SSCCE battle was less exciting than I thought it would be ;-;
 
I'm disappointed. From the title of the question I assumed this would be something juicy and worthy of FOX News. — J. Steen 5 hours ago
 
I thought we were looking at the new vi vs. emacs.
 
tabs vs. spaces
 
1:47 PM
@poke Nope.
 
But, as it turns out, the same person wrote both vi and emacs.
Uses both tabs and spaces.
 
@InbarRose Boo.
@MartijnPieters I do that.
 
Likes to open their egg on the big and the little side.
 
Challenge mode: Open your egg on the side!
 
@poke I do that every time I make pancakes.
Or did you mean a boiled egg?
 
1:49 PM
I mean the same egg that people open at the big or the little side
 
@MartijnPieters Oh my!
Gulliver would be amused. And that is one giant you don't want angry.
 
Yup, the downvoter is indeed complaining that me adding in the verb to add fits my answer better than theirs.
 
Hello guys... I am just starting out with python... I am using a mac and I was looking at an open source project on github. The project says that I need to use the YUM package manager. I can't see how to get this working with a Mac... can anyone help me?
 
you can't.
the similar thing for mac is brew
 
brew
okay I'll check that out
is there a simple way to install it?
 
2:01 PM
@PrimeByDesign brew.sh
 
perfect.. thanks I will take a look at this
 
You'll never regret it, it's one of the most useful things on a Mac.
 
This is totally alien to me.. I'm a windows .NET developer
 
@ReutSharabani guard pattern
 
okay this seems to be working
I'm able to install packages using brew
instead of YUM
 
2:09 PM
@PrimeByDesign note that not all packages available on one will be available on the other.
 
@Ffisegydd thanks... most seem to be working... one thing that is strange... I'm installing gcc and it seems to be stuck on "make bootstrap" I'm not sure if it's installing or not... the title bar keeps flashing between "ruby" and "clang"
 
I think that's fine, some of them can take a while.
 
this has been ages
but it is till flashing
 
You may be able to search and use a verbose flag if you want to cancel it and try it again.
 
ah no it's flashing other things too now
so I think it's working
just taking a long time as you say
Once this is done I have no idea how I am going to go about running this project
 
2:19 PM
For reference, you can do brew install -v <package> and that'll enable verbose mode, so you'll see more in the background.
 
it's a web project so I guess the python backend stuff is a bit like server side scripting.. I guess it will run in Apache
ah
perfect I prefer to have all the details
make bootstrap takes ages!
still working away
I really didn't want to have to learn python right now as there's a tight deadline.
I'm only supposed to be doing the front end stuff
but I guess I wanted to learn it at some point
 
Compilation takes time
 
==> Patching
==> ../configure --build=x86_64-apple-darwin14.0.0 --prefix=/usr/local/Cellar/gc
==> make bootstrap
I guess that is compilation right?
ah it's done!
oh shoot...
I can't install python-devel
PrimeByDesign$ brew install python-devel
Error: No available formula for python-devel
any ideas?
 
@FlorianMargaine you're talking about if x: return x ?
 
@ReutSharabani yes
 
2:25 PM
guard pattern, ok.. thanks
 
Or "return asap"
@ReutSharabani sorry, it's "guard clause", not "guard pattern"
 
@FlorianMargaine.. sorry I just wondered what I should do now... I tried to install python-devel and it didn't seem to work? Couldn't find it
I'm just following some instructions here
 
I don't know python
 
Oh :(
that makes two of us
 
@PrimeByDesign I don't really understand the different between python and python-devel :/
You should search around for homebrew recipes though (might be under a different name)
 
2:30 PM
how do I search?
 
> The Python programming language's interpreter can be extended with dynamically loaded extensions and can be embedded in other programs. This package contains header files, a static library, and development tools for building Python modules, extending the Python interpreter or embedding Python in applications.
 
@PrimeByDesign Google? :P
Or brew search possibly.
 
python-devel ^
 
Ah, cheers @Florian.
 
it's the C header files and development tools to build python native modules
not what he needs.
he doesn't need to install anything... python is already installed on mac
 
2:31 PM
@PrimeByDesign why do you think you need python-devel? Do you have reason to believe that brew install python is not installing the headers? I'm fairly certain it is not like apt or yum where the headers are removed.
 
well I was just following some instructions
 
@FlorianMargaine an old python is installed by default, it is pretty much a given that you should install a newer version separate from the system python
 
perhaps it will work with just python
 
@PrimeByDesign sounds like you need to find some better instructions
 
maybe I should just move on and see if it works
 
2:33 PM
@davidism ah, true. mac is shitty.
 
@davidism agreed... unfortunately this is all I have
there are no other instructions out there
 
I'm not saying it's Mac's fault, plenty of distros have an "old" version installed.
 
do you mean 2.7?
 
An old version of 2.7 usually
So not the latest bug fixes
 
There's plenty that still have 2.6 as well
 
2:36 PM
@Ffisegydd really? distros usually backport bug fixes
so that they stay on a stable version, while still having relevant bug fixes
 
@davidism let me check my mac now
 
and miss features. Anyway, I'm not arguing with you, I understand what the practices are, just pointing it out and justifying installing another version
 
I'm going to move on
see if python has the headers
 
not arguing either, just wondering what's the practice for python versions.
 
@PrimeByDesign really, you should be fine just doing brew install python
 
2:39 PM
My Mac currently has 2.7.5. Though that might be my fault for not updating my Mac in a while D:
 
shit now I need some other bespoke libs that aren't on brew
yum install -y mod_wsgi
 
yes, so install virtualenv, create a virtualenv, and pip install them
and mod_wsgi is not a python module at all
 
no it's not
but it says I will also need it
 
if you want to deploy stuff, I'd recommend getting a linux server
 
oh crap
 
2:40 PM
What is "it" and why are you taking it as the word of god before you've even seemingly started your project?
Move on, get your Python project working, then worry about deploying a production version
 
my instructions
say I need it
they come from the source
 
there is a failure to communicate here: what source?
 
work place
they've issues the instructions
 
Then maybe talk to someone at your workplace that is familiar with the instructions/project?
 
2:42 PM
can't get hold of them
I'm left in the dark
 
Basically, this is not the proper place to get support for your company's bad practices
 
okay cool
listen chaps thanks for your help
 
If you have to do it that way, then sit there doing something else until you can get a hold of them.
 
I'm not working in the office
 
lucky
 
2:43 PM
no I wish I was
ahhh
 
can't solve that problem either, sorry
 
nevermind... don't worry
thanks ttyl
:)
 
What is redirect-url field in linkedin application regiration dupe of the one I just linked, but I marked it something else before I knew
 
"This question does not have an upvoted or accepted answer"
 
2:51 PM
I went for same reason
 
ah, can't exact dupe because it's not the same user :-/
It really sounds like two coworkers are posting the same question
@JustinKominar if that's the answer, then you should really make it an answer as comments aren't guaranteed to be persistent, it'll also make this a Q&A pair such that any future identical questions can be referred to this — Jon Clements yesterday
@JonClements ಠ_ಠ
on that note:
 
One left
 
GOOOOOOOOOONG
 
ALMOOOST (if you said that about the last one)
 
2:57 PM
"Same here." answer is flag-worthy
 
yeah, I flagged it
 
user559633
why is that question +3 points
 
Was +4 a few minutes ago :D
 
user559633
that was me :x
 
@tristan because of “me too”s
 
user559633
3:01 PM
@poke yeah, it fills my heart with sadness
 
me too
^ see what I did there?
 
+1
 
user559633
i cannot see, for everything is red
 
The Ape Escape soundtrack is so good. Love that game.
 
user559633
what are good interview questions for a person that writes applications with flask? i was thinking about asking aboout the g object/context locals, some jinja questions
 
3:04 PM
Is this a college grad/entry-level hire or someone with a bunch of webapp experience already?
 
user559633
8 years since college, comp sci grad, with all his career experience in related fields
 
We were hiring an entry level guy for my project who listed Flask on his resume. I asked him to describe how a browser and server interact to get a page (request/response cycle), and how cookies are commonly used to handle log in.
And then asked him to describe the project he worked on in Flask, and an interesting problem he had and solved during development.
But this was all for entry level, so...
 
user559633
still helpful. i'm going to ask him about browser/server interactions to the point of thread locals for flask
 
yeah, thread locals would be good, although they don't really need to be understood to use them
 
user559633
sometimes i wish that the regulars in this room all worked together
 
3:10 PM
I asked the "tree in the middle of the island" question from puzzling.se: puzzling.stackexchange.com/questions/4304/…
 
user559633
"how many coffees can you carry"
 
@tristan we would be too powerful, a group of underdog heroes would rise up to defeat us
 
user559633
no way, we're totally mighty ducks right now
 
user559633
i'd be so happy if my current project took off because it leans into a bunch of the skills represented in this room (not that i could afford to hire martijn or clements full time)
 
WHY IS THE QUESTION CLOSED
 
user559633
3:16 PM
Which question?
 
Rope question
 
user559633
I don't know, but I'm puzzled too
 
Awsome answers
 
user559633
I'm kind of confused as to why it would be closed as well. It's a puzzle stack exchange, not one that really requires objective and critical answers
 
I think they do prefer puzzles that have one verifiable answer. Ex. cryptograms, the Zebra Puzzle, etc
 
3:18 PM
There is some sort of controversy going on at puzzling about what puzzles are and which ones can be posted.
 
user559633
Wow, the great puzzle controversy of Q1 2015. I hope there are some fearless, fresh-faced, take no bribes reporters to cover it
 
I don't think I'd want to work with you guys, because then you'd discover that I can only write coherent code when it's less than twenty lines long. That little fact never comes to light if all you read are my SO posts.
 
user559633
Oh, I'd hire you for your charisma
 
I just searched for jobs in my area that I may be interested in using a well known job-search-website and found absolutely nothing. I'm not going to start hyper-ventilating.
 
:3
 
3:20 PM
when i do obj1 == ob2, what actually happens is obj.__eq__(obj1, obj2)?
 
user559633
depends on obj @ReutSharabani
 
obj1.__eq__(obj2) typically.
 
default behaviour
I've overridden eq but I think that's not what happens. Maybe my logger is set too low
 
user559633
depends on eq and if then object type cares about eq or if there's a built in operator for the comparison :)
 
Oh I made a mistake in that message up there. I meant "I'm now going to start hyperventilating." Silly me!
 
user559633
3:22 PM
@Ffisegydd anything remote?
 
@Ffisegydd thanks
 
I don't think remote physicists are common...
 
That rope puzzle in particular is closed, I think because they don't like "smartass" answers, even for lateral thinking puzzles. "The infinite rope's gravitational field will bring the island to you" is precisely the kind of post they don't want.
 
No, and to be honest I'm not sure remote would be the best idea. I'm going to be learning new things and being able to pester engage in conversation with my co-workers easily would be better I think.
 
depending on where you live, remote can get you much better money though.
 
3:24 PM
@FlorianMargaine I don't think he's looking for programming jobs...
 
Oh I am. Data analytics/programming.
 
user559633
physicist? i thought he was training to teach phys ed
 
@tristan I train to do that as a hobby.
 
I thought he was training to be able to tell if fizzy drinks were good.
 
3:25 PM
It's all about a) cloudy lemonade, or b) cream soda.
 
user559633
cloudy raspberry lemonade is delicious. public service announcement or w/e
 
easy way to tell if two x1,x2 is intersects with x3,x4 ? (one dimensional lines)
 
it's a tie between Jones and Sprecher.
 
I wrote the explicit code for this, wondering if I'm missing something
 
With natural sugar Coke as honorable mention.
 
3:27 PM
(one dimensional lines = ranges)
 
Why have I seen like five questions this week that can be answered with "you can't have a try without an except or finally"
 
well, you can, it will just fail
 
in a pandas dataframe how could i subtract one columns value from the previous value
 
user559633
try or try not, there is always fail
 
move one down the dataframe and do the same opertaion
 
3:29 PM
@ReutSharabani In a 2D graph, two lines intersect if they have different slopes.
 
DSM
Morning cabbage for all.
 
It's harder to determine in 3d because you can get skew lines
 
Assuming you're talking about linear lines of course.
 
He's talking about 1d
 
In which case they're all sat on top of each other.
 
3:31 PM
in a 1d graph, all lines are the same line so the question is moot
 
line segments
 
Quit moving the goalposts ;-)
Uh, I think then you could do a.left < b.left < a.right or a.left < b.right < a.right or b.left < a.left < b.right or b.left < a.right < b.right
Basically asking "for any endpoint of either line segment, does that point lie between the endpoints of the other line segment?"
 
yeah, I thought there was some clever shortcut, but if there is I can't remember it
 
DSM
@DataTx: doing "vertical" recurrences in pandas isn't well-supported, but for that particular case it looks like you're really just doing a shifted cumulative sum on A + the first element of B.
Today's odd quirk: a surprising number of Python programmers think // was only introduced in Python 3.
 
user559633
i use floor because i i always forget it exists and then i have to look it up again
 
3:46 PM
@DSM
@DSM thanks, good to know
 
@DataTx please edit messages and delete duplicates
 
@Kevin that's what I did, was wondering if there is something like xrange.interescts(other_xrange) or something :)
 
@davidism: just duped a question to one you answered; Flask and %2F in the path..
 
\o/ I'm relevant!
too bad that 37k user didn't accept an answer...
 
You might be able to do some tricks with range, but it won't be O(1) like endpoint checking is
 
3:48 PM
I did have to correct some spelling in your answer. :-P
 
lol, sorry
 
user559633
You're just editing answers so they fit your questions now @MartijnPieters
 
lol
 
when I don't have autocomplete it's difficult!
 
sum([True]) == 1 is because True is technically 1?
or because it adds True to 0 and the addition operator treats it as 1?
 
3:49 PM
I think it's more to do with the fact that 0 + True equals 1
 
thanks :)
 
Incidentally, I wonder why sum explicitly refuses to work on strings.
 
DSM
Thereby hangs a tale.. by default it would be quadratic and people didn't want to special-case the optimization, IIRC.
 
Of course str.join is the correct approach, but I'd expect the devs to not hold your hand on the matter
I can do sum(myLists, []) just fine, so it seems like an odd double standard
 
DSM
I can only half-remember the conversation, but I think practicality won that time.
 
3:55 PM
If we ever get a flatten built-in function, I expect sum to refuse lists at that time
 
DSM
Heh. I once had to fix a bug in a stdlib flatten function because someone shadowed a builtin..
 
Is there actually a special branch to handle str in sum? that's odd :)
 

« first day (1551 days earlier)      last day (3397 days later) »