« first day (1986 days earlier)      last day (2977 days later) » 

user559633
2:00 PM
Whoa
 
davidism told me it's OK if I let you know of this, but also that I shouldn't bring these batches here regularly. So if anybody is interested in looking at some more (since the current batch is small and near closing), feel free to drop by in the Campaigns room and ask Drew for more:)
thanks, carry on:P
 
user559633
It's good to know that the tech industry only recently did not start speaking in acronyms (SIR: VAX VMS X.Y. FUBAR)
 
señor tristan. What's up hombre
 
IBM were using TLAs back in 1967 when I started programming
 
user559633
oi oi oi m8. not much. last day of the workweek for me. how are you? settled back home now?
 
2:10 PM
First day of annual leave for me. Back in work on Wed.
 
user559633
Leaving for an entire annual?!
 
do you do SO from home as well?:) I just figured that today is the first day...and you're here
 
Last day of work for the week today as well. End of sprint today, so these two days at work have made it really easy to settle back in
 
Wait why do people get tomorrow off? :p
 
damn I should sleep more
 
2:12 PM
easter
good friday. We get the option of friday or monday off.
 
DSM
@Programmer: it's Good Friday by the Western calendar.
 
Hi! Started writing unit tests before implenting actual code. Should I post it on Code Review or Sofware Testing forum for advices? Never really created testing code before.
 
@idjaw We get both off.
 
user559633
Scheduled it off :) Going to a doctor for humans to get my oil changed or my ram reseated or w/e and then looking at apartments
 
Ahh yes, silly me. I wonder if I get a day off.
 
2:13 PM
And I've taken today/Tuesday off as leave too.
@Yann I'd guess it's definitely not appropriate for CR, at least not without some code to test it against.
 
it's going to be really laid back at work until next Tuesday. So I'm going to have to get creative.
 
I don't know about Software Testing so cannot say one way or another.
 
@Ffisegydd I have both actually. It's just my methodology that changed (write test code before coding).
 
user559633
Is there a "software testing" stackexchange?
 
2:15 PM
I don't know if CRing tests is allowed, but I'd say you definitely have to provide both the tests and the code itself.
 
@Ffisegydd thanks for your advices
 
@Yann SQAT would have been a better acronym
 
no....no it wouldn't
 
heh
 
user559633
Yeah, no one does legs
 
2:17 PM
People would have asked questions about squatting :P
 
I'm sure we have a site for that...
 
@Bhargav yeah...yeah...
 
right...squatting. :)
 
Simplest way to find a site is to put a new proposal on Area51. They'll close your proposal as a dupe of the already available site. Ask your question there :P
 
DSM
Only 4000 questions? I have half that many answers.
 
2:18 PM
 
Sportball!
I got into the Docs beta last night.
 
DSM
Looks like the all-cricket, all-the-time channel.
 
user559633
 
3
Python

Proposed Q&A site for the Python enthusiast inside you.

Closed before being launched.

 
chatroom@sopython just got an email about CVs. Great.
 
2:20 PM
@tristan does that go with the "mind blown" gif?:D
@Ffisegydd close votes or curricula vitae?
 
curriculum vitas.
 
Aww. I was excited about metadrama.
 
user559633
When? I managed to dodge it
 
Just this second.
 
DSM
Do *@sopython emails get redirected to fizzy@fizzycorp.com?
 
2:22 PM
They get directed to multiple people, including DrFizzyPhD@fizzycorp.xxx
 
That extension sounds fishy, Hmm, Dr Fizzy must be up to something.
 
:D
just watch out that he doesn't make your drink fizzy
 
Just looking at some of the Docs examples so far for Python. People are putting in 2.x examples first.
 
user559633
The Docs? The new SO thing?
 
2:25 PM
Yeah.
 
I hope there's rep involved so we can stage downvote wars
 
user559633
Yawn.
 
user559633
Hey Fizzy, you're a genius. Make finding an apartment to rent not a terrible process.
 
Sure. I'll need some money in advance to cover my expenses.
 
DSM
We're now closer to 2's EOL than to 3's release. 2 should not be the standard.
 
2:27 PM
@tristan I can't seem to find a better resource than craigslist for that...
 
user559633
Oh, wait, let me run that through a en_US to en_GB translator: "Oi oi mate, you're proper smart. Make butcher's hook a flat to duke of kent not pen and ink."
 
(╯︵╰,)
 
user559633
@Programmer Yeah, I was working on my own company until I found out about streeteasy, which is great. And now there's compass, which is also very, very good. But both only cover a very limited range of cities
 
Let me reply converting from en_GB to en_US "TRUMP TRUMP GUNS GUNS MCDONALDS RACISM MURICA!"
 
How dare you! My mother is a saint.
 
DSM
2:33 PM
Impressive callback!
 
 
user559633
@Ffisegydd :/ you can't translate from en_us to en_gb back to en_us.
 
user559633
 
user559633
now kith
 
2:37 PM
:D
something something taking away our culture
 
user559633
Obama and some...guy you'd find crying in a strip club parking lot at 11am?
 
user559633
 
user559633
solid advice, even without the context
 
Awww man I thought that was a real video :(
 
so who of us is in the docs beta right now?
 
DSM
2:39 PM
I have both node and java installed. :-| Someone should have informed me earlier.
 
user559633
 
@davidism I am.
 
I signed up when it first started, and again a couple days ago, and still haven't got in
 
We can just share my account to fight the good fight.
My password is hunter2
 
2:40 PM
@davidism I signed up a few days ago, haven't been notified either.
 
To log in, you must have commited to the Area 51 site proposal and received the invitation email. Click the invitation link in the email to log in!
nope for me
 
Ah, no then.
 
Private Beta probs
 
DSM
tst aargh, wrong window
 
2:43 PM
@DSM could have been worse! :P
 
@Ffisegydd does your gold badge / rep carry over to docs?
 
Not at the moment as it's a different SE site for now.
So I'm on 101 rep.
I assume when they merge it will.
 
would be awesome if docs were under the SO rep tally
fake internet point addiction
 
That's an example page. Each of those accordions is an example.
 
DSM
"will raise an error and will not work"
 
2:46 PM
PYTHON 2 PRINT!
G SDKODFJNKOFGJIKSEMFDFB
 
so, with that sample shown...how does that differ from the official docs?
and why are we not contributing to the official docs if we find something insufficient? (did I just echo Tristan)?
 
DSM
It's more illiterate. "to iterat thriugh"
3
 
@idjaw well this one gets SE money from ads.
And the official docs do not.
 
ah...business
many a business to be made
 
@DSM Docs aren't in English then :D
 
DSM
2:52 PM
I'm really going to need to see how this works in practice before I know whether it's going to be useful. Those three examples don't convince me it will be, but admittedly we may not be the target audience for examples like that.
 
I've fixed the errors and made it 3.x compatible.
 
Fizzy to the rescue
 
I think it could have a use, but then I think it could be more useful to make the Python docs themselves better (if that makes sense)
These things might not be actively harmful, and might give us a place to document examples for people that we "control"
 
The use case (iirc) is for those langs with scattered docs; not for python
 
Easier to change stuff here with rep privileges than it is to edit python docs via committee.
 
I also think it's going to get messy when there's 100s of people committing to it. Ideally docs have a set style to make them consistent, without lots of active moderation these will not be consistent.
 
DSM
It could easily become an endless maze of similar-but-different examples. Maybe that's a good thing, I don't know.
 
@Ffisegydd that equals truth
 
I'm asking in chat about the consistency issue.
As I think it could be the main factor that really screws things.
 
2:57 PM
Php.net has a similar issue
 
@davidism From the comments, You mention "not reproducible"; Shouldn't it be that?
 
@BhargavRao Eh. CV is a CV.
 
Ususally I only use that reason for things that the op did. Things they omitted mean they need an mcve.
 
Ah, Fine. Understood.
 
3:31 PM
Technically incorrect answer stackoverflow.com/a/29501938/4099593
 
Got my first rep in the docs. Suddenly it all seems like a better idea.
 
:D
gateway drug
 
I'm desperately trying to talk a customer out of creating a standard that only lets us (and future consumers) connect to their DB via REST
 
@RobertGrant but that's how web scale works. You want to be web scale, right?
 
DSM
@RobertGrant: what's your counterproposal? Direct queries for internal users and REST for outsiders?
 
3:52 PM
@Ffisegydd link?
 
Can't, private only.
 
bah, humbug
 
I basically got "Suggested edit accepted" rep of +2 by replace all print statements with functions.
 
2 hours ago, by Ffisegydd
user image
 
3:58 PM
Weird, I got 'image not found' previously but it works in that post.
 
If I am changing directories and the path is longer than 80 characters, how would I continue it on a separate line so the path is intact?
 
Sturred.
@dustin don't worry about the 80 char limit
Or use `\` to continue strings.
 
So instead of os.chdir('//IACOE_SAS_Pgms/PROGRAMS/INDIVIDUALS/Dustin_Smith/Active/404.2 MTTT Where Now and Movements/Output')
, I would have os.chdir('//IACOE_SAS_Pgms/PROGRAMS/INDIVIDUALS/ \ Dustin_Smith/Active/404.2 MTTT Where Now and Movements/Output')
 
DSM
Remember that contiguous string literals automatically concatenate, which is another option.
 
4:03 PM
a = ('a very '
    'long string '
    'split over '
    'several lines')
print(a)
 
So a carriage return won't affect the path
 
prints
a very long string split over several lines
 
Derp was thinking about javascript.
Yeah PM2 is right.
s = 'skdfgong kmg g \
dk,f g'
print(s)
# 'skdfgong kmg g dk,f g'
 
Hi all, I am wondering about a problem that might be too opinion based to post as a question. Is there a Pythonic way to do something like this: willmaster.com/blog/javascript/…
 
Okay thanks.
 
4:06 PM
@Dzhao what particular part of that do you need to make Pythonic?
 
DSM
? To call multiple functions from within a function?
 
Basically are other solutions to this functionality? I know I'm sounding vague and it's because I am not totally sure how to solve this problem.
 
You're right, you are sounding vague.
 
Actually lemme explain my problem
 
What exactly do you want?
Don't worry about how you'd solve it, just say "What I want to do"
 
DSM
4:08 PM
He wants that functionality, apparently. ;-)
 
so I need to design a tool that has many features. Most of these features call similar functions like. For example feature one scans files and reads out titles. Feature two scans files and reads the paragraphs
 
@Dzhao - I'm assuming you don't necessarily know the functions in advance? E.g. Call this list of functions? In that case you can write a function that takes the list and returns another function that will call all of those
 
@Ffisegydd Backslash continuation is a PITA, since it's so easy to accidentally put extra whitespace before or after the backslash. (Essentially, the backslash escapes the following newline char). There are generally better ways, typically using parentheses (or other types of brackets).
 
So when the user presses 'begin' on the gui, some function is called. How does THIS function know which feature to run?
 
@PM2Ring I agree absolutely and completely. I'm just used to writing my 100-200 line DB queries in Javascript and needing to use \ continuation.
 
4:11 PM
Fair enough.
 
I was considering making an enum but I was wondering if this type of problem was already solved b4
 
And they don't allow multiline strings :P
Plus DB queries it doesn't matter about extra whitespace.
 
I was previously taught to use + to concatenate strings over multiple lines. Is that not considered a good idea anymore?
 
Possibly. It's just more work.
 
@Dzhao - If I'm understanding you correctly, you could do somethign similar to
def caller(funcs):
    def returned_func():
        for func in funcs:
            func()

callback.connect(caller([function1, function2]))
callback2.connect(caller([function2, function 3])
 
DSM
4:13 PM
@Programmer: you still can if you want. Compiler will usually optimize it anyhow.
 
Okay. It's more of a visual thing for me :p
 
ok I see what you've done, Jeo
 
DSM
And some people really dislike the automatic concatenation because of how it can lead to bugs if you forget a trailing comma in a sequence of strings.
 
Joe*
But what if the functions in the list take inputs that are returned from the previous function in the list?
 
There should be a return returned_func in there, but the principle holds
 
4:15 PM
Just started watching "Lucifer". It should be utterly awful but actually it's really good so far O.o
 
really?
I'm surprised to hear this. I had such low expectations for it, that I didn't bother
 
Yeah. Basically Castle but rather than a crime author it's literally The Devil.
 
I tried Castle. Could not get in to it at all
 
DSM
I gave the first episode a go. Didn't really capture me, mostly because I kept comparing it to the source material.
 
Not sure it'll have the staying power of Castle (6-7 seasons now?) but worth a shout for something not too serious.
@idjaw Further proof that you're literally a lego person with no soul.
 
4:16 PM
@Dzhao - In that case you can chain them. The same idea holds. There are also a few things to do function composition along those lines, but rolling your own is just a line or two. I've got to run, otherwise I'd give an example
 
Ok I'll reading into chaining functions thank you!
 
DSM
Castle is a 100% character-driven show. You either love 'em, in which case you just want to spend time with them no matter how silly things get, or you don't, in which case you'll ask yourself "why am I watching this?"
 
@DSM Maybe in Python 3, but not in Python 2:
from dis import dis
def f():
    return ('a very '
        'long string '
        'split over '
        'several lines')
dis(f)
 19           0 LOAD_CONST               1 ('a very long string split over several lines')
              3 RETURN_VALUE
 
@DSM Yeah pretty much. There's some cute crime pieces but it's really all about the characters.
 
DSM
@PM2Ring: sorry, what's that showing?
 
4:18 PM
def g():
    return 'a very ' +\
        'long string '+\
        'split over ' +\
        'several lines'
dis(g)
 27           0 LOAD_CONST               5 ('a very long string ')
              3 LOAD_CONST               3 ('split over ')
              6 BINARY_ADD

 28           7 LOAD_CONST               4 ('several lines')
             10 BINARY_ADD
             11 RETURN_VALUE
 
@DSM pretty much
Well, direct queries by us (the ESB) and then we can expose stuff as REST/SOAP from there
But they want the ESB talking to the db via REST
 
So the automatic concatenation creates a single string literal, but using + has to build the result at runtime.
 
DSM
@PM2Ring: it seems to depend on the number of additions. I tested it before I commented, and found:
def f():
    return "a very " +\
        "long string"

def g():
    return 'a very ' +\
        'long string ' +\
        "split over"
>>> dis.dis(f)
  2           0 LOAD_CONST               3 ('a very long string')
              3 RETURN_VALUE
>>> dis.dis(g)
  5           0 LOAD_CONST               4 ('a very long string ')
              3 LOAD_CONST               3 ('split over')
              6 BINARY_ADD
              7 RETURN_VALUE
I could well believe they optimized the simplest case and left the others alone.
 
Ok, I get that result when using + on a pair of string literals.
 
Well, there we go.
 
4:25 PM
he'll be taking a break for a while
 
:D
 
@Undo beat me to it :p
 
At least he has something to keep him occupied.
 
Well at least - DAMNIT.
 
@JonClements Someone the other day said You snooze you lose :P
 
DSM
4:27 PM
There, there. I'm sure there will be more spam in the future.
 
I wouldn't class that as spam, really.
:P
 
spam? where???
 
^^^ there!? :p
 
DSM
That's just a picture of a can, not the fabulously tasty meat product itself.
 
hmf
I got here too late.
 
4:36 PM
You didn't want to come early enough for that
 
:( me too. Perturbation missed.
 
Ask for re-spam-pls :D
 
@FlorianMargaine Nice of you to drop by on a rare occurrence of a flag happening in this room though :)
 
@JonClements hey, I drop in every couple of weeks to help vamp.
 
4:43 PM
Do you; help "vamp" or do you; "help vamp"? :P
 
Wow - we're up to 107 in the sopython community team now :p
 
DSM
@JonClements: I think I was the 100th! I'm expecting some kind of celebratory cabbage-based dish in the mail.
 
@DSM you're missing on stackoverflow.com/teams/5/sopython though :p
 
DSM
@JonClements: I think I'd need an invite or something. There's no shiny "join us, we know you're sopythonic" button.
 
4:51 PM
Err.. the key was posted on our slack channel...
 
Anyone know why a Django view would randomly 404? It doesn't error, just randomly when I refresh the page it says that the URL isn't valid.
 
DSM
@JonClements: and I'm not on slack, as you very well know. :-)
 
I'll email you it then :)
 
@AnttiHaapala cabbage
 
any hindi(?) readers present
 
4:54 PM
@DSM emailed to both addresses I have for you - wasn't sure which one was which
 
Hey guys, could you please help me understand how to use the answer provided to me here: stackoverflow.com/questions/36191146/…
I never created cython modules before
What is f and f2 there?
 
DSM
@JonClements: much obliged.
 
I'd wish some Hindi speaker see this pic and tell me if the banners have messages mostly the same as in English:
 
Islam will dominate the world? LoL!
 
4:58 PM
Could someone please help me with my problem?
 
@TheQuantumPhysicist there is claim now that this is a pro-ISIS demonstration circulating, but it is 2 years old picture.
@BhargavRao how's your hindi? :d
 
This has been the dream of Muslims since forever...
 
@BhargavRao That's awesome - although everyday should be a puppy day :p
 
I'm an arab ex-muslim, so I know their agenda
Unfortunately I don't speak hindi ^_^
Just Arabic, English and German
 
@AnttiHaapala Quite bad. I speak canadian
 
5:01 PM
blah - never mind
 
I'm still hoping to be helped with my question :-)
Any Cython expert here?
 
@TheQuantumPhysicist just ask, you don't need to ask if anyone knows X.
 
I did ask, my friend @Ffisegydd
Should I recopy my question?
 
Most of the time my questions go unanswered because I'm forced to deal with Django lol
 
@JonClements :D lol
 
5:03 PM
Hey guys, could you please help me understand how to use the answer provided to me here: stackoverflow.com/questions/…
I never created cython modules before
What is f and f2 there?
2
Q: Lambdify works with Python, but throws an exception with Cython

The Quantum PhysicistMy website runs this Python script that would be way more optimized if Cython is used. Recently I needed to add Sympy with Lambdify, and this is not going well with Cython. So I stripped the problem to a minimum working example. In the code, I have a dictionary with string keys with values that ...

@AndrasDeak Nice to see you again! :)
 
Oh I see, I missed your previous parts.
 
@JonClements yep, soon we'll pitch for that :D
 
You've asked now anyway, if someone can help you they will.
 
@TheQuantumPhysicist hey, I was glad to see your question being well-received
 
Thanks! Unfortunately it turned out it's a problem in Cython :-(
 
5:04 PM
If you don't understand the answer provided, I suggest making a comment on that answer asking the user to provide more detail. They're more likely to know how it works than any of us.
 
odds were huge for that to begin with, right?
since it worked without cython:)
bug report?
 
@Kevin That's plan B :-)
 
or is it a known issue?
 
Cython said it's a limitation
So it's not expected to be fixed
 
oh...
I'm sorry to hear that
 
5:05 PM
Actually I can understand why it's a limitation
 
Making "ask in chat" plan A can only end in disaster. You can't depend on us for anything :-P
 
I mean to Lambdify in C/C++ is a nightmare in reality!
 
@TheQuantumPhysicist I see
the obvious solution is clear: use fortran >:)
 
hehe, fortran too :)
 
FORTRAN is the best language.
 
5:06 PM
Well, fortran is good if all you do is calculations
 
It's so simple and beautiful.
 
and complex multi-d arrays
 
but I develop all kinds of things
 
^^^ I think I've found @Undo
 
I have been having trouble adding a vector to the end of a data frame in pandas. If I have a dataframe called df and a vector called v, how can I add the vector as a new column in df?
 
5:10 PM
@JonClements lol
 
@dustin what do you mean by "vector"?
 
a column of numbers
I initialized v as v = np.zeros(len(x)) and then later filled v with data. Now I want to put v as the last column in df.
 
@dustin so it's a numpy array?
"a column of numbers" could mean an awful lot of things.
Did we all hear about the Node guy that unpublished his modules and broked the internets?
 
@Ffisegydd Yeah, @AnttiHaapala posted it yesterday
 
5:27 PM
hi
 
cbg
 
5:45 PM
@Ffisegydd ?
 
@JRichardSnape there was some drama with some copyright lawyers on a node library in NPM that had the same name as a company. Because NPM gave the name to the copyright lawyers the author decided to remove all his libraries from NPM.
This then proceeded to break 10kish libraries that used them as dependencies.
 
And some trolls managed to jump on the names and steal them.
Meaning if they're bad actors they could push some malevolent code to the lib and and Node.js code automatically run it as a dep.
It'd be like someone in the scipy stack unpublishing from pypi effectively.
All those broken pip installs
Just reading a good article by Armin Ronacher on the subject
> juliangruber's "isarray" has 15 stars on github and only two people watch the repository. It's downloaded 18 million times a month. Sentry depends on it 20 times. 14 times it's a pin for 0.0.1, once it's a pin for ^1.0.0 and 5 times for ~1.0.0. Any pin for anything other than a strict version match is a disaster waiting to happen if someone would manage to push out a point release for it by stealing juliangruber's credentials.
 
oh boo...daily vote limit reached.
 
5:53 PM
@Ffisegydd @Carpetsmoker seen this: left-pad.io ?
 
@Antti yeah saw that :P
 
in other news. This happened
 
Ronacher's article for anyone interested
 
Is there any cython expert here?
 
5:56 PM
@TheQuantumPhysicist you've only recently asked your question.
Please don't ask again for a while, there's no need to spam the room.
 
Well, no one will read the whole history :)
 
You'd be surprised.
 
Actually I would be!
 
And even so, please don't spam your question (that's actually newly asked and so is even against our room rules to link!)
 
I read the whole transcript even of rooms that I have never visited.
 
5:57 PM
if you get no answers it might well be that there are no cython experts
I am not one for sure.
 

« first day (1986 days earlier)      last day (2977 days later) »