« first day (1679 days earlier)      last day (3267 days later) » 

user559633
4:01 PM
sup nerds
 
@davidism wierd, it definitely does the way I have implemented - literally the 1 character change is the difference between it working and not. Hmm, my interest is piqued.
 
os.path.join doesn't require a / at the end of dir segments, it adds them automatically
 
cbg, all
 
@holdenweb cbg
 
4:08 PM
Ah - I see what's happening. It's adding `\` because I'm on windows. So - in fact when I unzip yours I am getting a 404
But silently
which is probably what the OP is seeing
If I explicitly add the /, then it works, because that's OK for URL syntax
 
huh?
What's adding / when you unzip?
 
No. os.join puts a file separator - i.e. \` between when I use yours "out of the box". Instead of /` which it needs (apparently) to get the resource
 
Didn't get the job I applied for ( at ClusterHQ, in Bristol) :-(. "Too difficult to integrate into the team without being full-time and in Bristol."
 
I'll dpaste the output with a few comments if you are interested in pursuing
 
@JRichardSnape yes, I see what you're saying now
 
4:10 PM
Are you on Linux / mac?
 
user559633
@holdenweb if it makes you feel better, i'm surprised this is a company
 
@tristan ?
 
sorry to hear that @holdenweb. Their loss
 
@JRichardSnape I'd like to think so. And at least I have five days in Cyprus starting Sunday to nurse my wounds
 
user559633
their products seem like cool github projects, not a product from a company
 
4:12 PM
Well - that will be a nice place to nurse wounds, at least :)
 
@tristan Well, they have an "open core" strategy, so they do have products layered over their open source technologies
 
user559633
of course they do
 
user559633
i love that model. "hey it's open source, so you should do work for us for free so we can sell it and make money"
 
@tristan I'd see it more as "if you help us adapt our technologies to yours we both end up with bigger markets," but I take your point
 
@JRichardSnape I don't think you're right about the /, because send_static_file does the work of joining the path and generating the url, and it explicitly uses posixpath
although there's a lot of weird stuff going on with the path handling
 
4:18 PM
definitely, definitely, definitely changes behaviour with 1 character fix here. Python 3.4, Windows 8, Flask whatever pip3 installs as of today
 
waiting for my review request to get reviewed.
 
Sure - it definitely does - I'm not disputing that. But is that a Windows server? Because os.path.join is doing the work of putting the path together before it goes to send_static_file. Are you saying that send_static_path should rectify that?
I should say sub-path. I know send_static_path is handling concatenating the hostname etc with the sub-path
 
So I think I might have made the worst recursive solution to this problem... hrmph, anyone wanna check this out? It's at least an interesting problem.
 
@JRichardSnape from flask.helpers import safe_join; safe_join(app.static_folder, '/crews/python_crew.json')
what does that do for you?
 
4:24 PM
I CAN FEEL MY LEFT ARM AGAIN - woot!
 
@JonClements What about your fourth leg?
:D
 
@Bhargav let's not go into that one :)
 
>>> import os
>>> os.path.join('foo', '/bar')
'/bar'
>>> os.path.join('foo', 'bar')
'foo\\bar'
 
@AaronHall yes?
 
TBH - I'm guessing the OP has other issues with his project setup. And probably can't translate your example using / as the route into his desired one with CrewCast
 
4:27 PM
@JRichardSnape did you try the code I posted?
 
I'll try your now, but the point would surely be flask.helpers import safe_join; safe_join(app.static_folder, '/crews\python_crew.json') because that's where the wrong direction slash comes in
 
@JonClements What's the story here?
 
Sorry slow (doing this in between work)
 
oh, sure, try that too (\`, not `)
 
@davidism you got a mo' in skype or elsewhere mate?
 
4:28 PM
slack is a messaging application the ro's use, but is also good advice for Friday
 
here's the example I was talking about. I feel like there must be a better solution without re-running the function recursively.
fakeFormatter is passing something like Faker.name.first_name
 
Calling safe_join seems to just make the code abort at that point (i.e. it never gets to even a print statement afterwards). But I can see that when crews\<filename>.json is sent to send_static_path, the implementation fails with 404 on my box, Flask dev server. When crews/<filename>.jsonis sent, it all just works.
And I can also see that os.path.join sends the former, on this windows box. With that I have to go home. Or the real boss will be mad, instead of just the work one.
 
4:56 PM
Hello
 
cbg Lukas
 
What is the command in ipython to look for reference / meaning of something?
 
I don't know what ipython is, but help(name) works in the interactive prompt
 
DSM
@Kevin: really? (To the first part, not the second. :-)
 
Oh it's ?? at the end example int??
 
4:59 PM
ipython is awesome.
@Lukas there's ? and ??
 
I'm willfully ignorant about anything that isn't Notepad++ and cmd
Gotta block out the alternatives, or I'll spend all day comparing IDEs instead of writing code
 
DSM
I can barely remember life without ??.
 
I would heartily recommend ipython to replace your normal python terminal.
 
DSM
You can even use --classic if you miss the chevrons. :-)
 
I'd also recommend ipython notebooks, but if you don't want to leave the stone age mess around with different things, you should still try out the ipython terminal.
 
5:01 PM
@Ffisegydd Thanks!
 
@Lukas I think ? is docstrings and ?? is the definition.
 
@Ffisegydd Thank you!!
 
DSM
I'm about to write a Python script to parse an Excel file and spit out Java code. This has been a very strange week.
 
You're generating Java code in your Python script?
 
DSM
Code generation the old fashioned way: via print.
 
5:06 PM
If I take this data job then my start date isn't until August. That means I'll have 2 months with nothing to do. I will destroy 20k in front of @davidism's eyes.
 
noooo!
 
@Ffisegydd not as bad as writing java code yourself! ;)
 
fizzy, 2 months to do contract work and make even more money. :D
 
No. I have my priorities. 20k smash.
@vaultah I disagree with Cory there as well.
I mean ideally you should use while not xxx
 
DSM
And now I'm modifying the Python code to implement a feature the Java doesn't handle by hacking the input data..
 
5:20 PM
Straw poll. I realise that while not derp is the best way, but if you were to use a test would while derp is False or while derp == False be better?
derp in this case is a boolean.
 
while derp is False (imo)
 
I agree.
 
Yeah, while derp == False just looks weird to me.
 
I prefer == because is should only be used for singletons, and True/False is a doubleton
 
O_o
 
5:23 PM
booked a holiday - might try and stick it to this time :)
 
Modestep's new album is awesome
Though nobody appears to like genres I like (in this room) :[
 
(might be the last I have... but oh well...)
 
The people I interviewed with on Wed are "positively minded" to offer me a job, and have asked for references.
That makes it 3/4 success rate so far.
 
Thanks for the comments. People marked this as a duplicate, but I can't seem to implement the solution suggested there in my case. I'll edit in an input output. — user3310059 12 mins ago
 
Do you get notifications for changes to questions you've closed?
 
5:35 PM
Not that I've ever noticed
 
No, thankfully
 
Not even for hammered posts.
 
Uh
 
It seems like a good idea. One, I can't imagine how else a fixed question is supposed to get noticed.
Two, maybe it's not so bad to have a cost associated with closing questions.
 
no, it's a bad idea
Something I want to make with shanty though is a "post listener", where you can subscribe to selected actions on a post
 
5:41 PM
similar ideas were discussed on meta.SO and meta.SE
[status-declined]
 
I think it might be worth being able to opt-in for certain posts.
 
Cabbage :D
 
"Hey, why did u guyz close dis?? I need halp.. pls" I don't want to be notified about such comments
 
@davidism you wanted shanties for your repo? Look up these Black Flag shanties. They're all authentic to the Golden Age of Piracy.
 
If you take "optimize for pearls, not sand" to its extreme conclusion, and assume that there's a lot of overlap between post answerers and post closers, then we don't want to discourage them in any way.
Yes, this smacks of "I won't perform unless you remove all the red M&Ms from this bowl", but there you go
@Ffisegydd That page has a weird UI.
What's the logic in having several panels each with a different number of tabs?
 
I'm in FIFO mode and can't close anything until we discuss wiki design to my satisfaction.
 
Okay then: you're wrong, it's a beautiful and elegant design.
 
Aesthetics aside, I just want to know the logic. Like: the first panel is all the shanties you can unlock in the base game, and the next panel requires the Dead Man's Chest DLC. Or whatever.
 
Do you think a question must be closed just because it is not in english? — Gocht 1 min ago
 
user559633
heh
 
5:56 PM
Is that a trick question?
 
:p "Why request a close on a question just because the community cannot be expected to understand it" more like.
 
Currently browsing around Meta to see if I can find an official (tm) stance on non-English posts
 
I can't find the help page where it says "English only"
Ah. You search meta, I'll search help.
 
user559633
the irony of the support for closing non-english questions in the room that invented cabbage language is not lost on me
 
user559633
"questions must either be in english, jibberish, or in the form of a dance"
 
5:59 PM
Jeff Atwood on July 22, 2009

Since this came up on meta, here’s our official policy towards non-English questions on Stack Overflow, Server Fault, and Super User.

(note that I say “programming” below, but this policy is the same across all the sites — when reading, you should substitute the actual topic of the site you use, e.g. “sysadmin topics” for Server Fault, etc.)

It is not, nor has it ever been, our goal to be the one place in the world for all programming information in every possible human language. …

Whoops, it doesn't actually say "close posts that aren't in English"
Whoopsx2, there it is in the second bullet point
> If the post has salvageable English and makes some modicum of sense, it should be edited and improved just like any other post. If it does not, it should be closed.
 
user559633
"i'll have you, i'll have you know that i'm a pre-stee-gee-us stackoverflow lawyer. i do say, i do say"
 
(Devil's advocate: "has salvageable English" may include "a coherent question in a foreign language that could conceivably be translated to English by someone")
(Can it be salvaged? It can? Great, leave it open)
 
Sometimes, Spanish-speaking people (like me) uses tools to help other people in english. Why English-speaking people can't do the same? — Gocht 3 mins ago
Must resist temptation to answer "Because I'm actually a closet-racist."
 
cbg
 
user559633
@Ffisegydd same. resisting joke of "come to our site and don't even bother learning the language"
 
user559633
6:04 PM
the victim or entitlement complex on that guy, wow
 
Kind of the same flavor of users that say "I should be able to say anything objectionable I want, because of freedom of speech"
 
user559633
e soglasan
 
<insert relevant xkcd> Inserted.
 
fixed :P
 
@Joran awesome. I didn't want to Google Translate it myself in case I broke it.
Now that it's translated we can open it back up it's still unclear as hell, leave it closed.
 
6:07 PM
http://stackoverflow.com/questions/30402842/use-literal-negative‌​-indices-in-list OP clarified in comments and I edited question to be answerable
 
user559633
ughhhhh no, leave it closed, i don't like this as a precedent (on the translation)
 
I spent time in Argentina .... he just wants to know how to use class based views in django
how is that any different than if theres salvagable english? if someone can translate it why not?
 
user559633
great, so then you'll translate the answers for him?
 
I demand a Welsh Stack Overflow for all 750,000 speakers!
 
no he will need google translate for that ... code is language agnostic usually (well its english agnostic)
 
user559633
6:09 PM
the point of closing or downvoting is to discourage behavior
 
I demand Stack Overflow for the secret twin language I invented when I was five.
I am not a twin, which makes the feat all the more impressive.
 
Stackoverflow Salad?
 
Salad Overflow?
 
Stack Cabbages?
 
I want a stack of cabbages
 
6:29 PM
:(
when things don't work like you think they'll work...
 
that feel when
 
user559633
@AaronHall good luck on the divorce
 
I'm at work, not at home.
and I'm not talking about me, but another guy on my team.
 
user559633
@AaronHall that's just the work equivalent of "some guy i know"
 
He's now on his mulligan.
I'd automate that stuff if I were him.
 
7:05 PM
I love my company's error handling strategy. "Lets catch all the exceptions and then show a dialogue that says "An error has occurred"". Just spent an hour debugging, only to find out I was missing a format file...
On an unrelated note, the USA has a justified murder clause for unpaid technical debt, right?
 
I have no clue what I am doing
 
Adulthood means, only saying the above sentence to yourself when nobody else is around
 
7:23 PM
@MorganThrapp You might want to suggest they stop throwing useful information away. They DO know what information IS, right?
@Kevin disagree - we should all admit that we are making our lives upas we go along, and quite often our plans have no effect on actual outcomes
 
:-)
 
@holdenweb I'm not convinced they do.
My favorite moment of coworker WTF was when I found a loop that added " " 94 times to an empty string then called trim.
 
@MorganThrapp ... so why didnt you just add traceback.print_exc() to where they were catching the error
 
@JoranBeasley It's not Python. :/
 
o i c
 
7:38 PM
Delphi 7.
/cry
 
cbg
 
c-cbg?
 
Whenever I think about Lisp, or read about Lisp, I think, "It's a really cool language, but I'd change this, and that ..." and by the time I'd be done tweaking it to my liking, it would be Python.
 
7:56 PM
cbg([Antti, BhargavRao])
 
cbg Vyktor
:)
 
def cbg(*users):
    for user in users:
        CHATROOM.say("cbg {}".format(user.username))
 
Hey I can do that actually! Nice idea
urd = urllib.urlopen('http://chat.stackoverflow.com/rooms/6/python')
data = urd.read()
 
8:12 PM
that won't actually do anything interesting, all the data comes in over a websocket after the page is loaded
 
Gives the current users of the room
CHAT.RoomUsers.initPresent([ ...... ])
So we can take data from that
 
@BhargavRao how are you my dear?
 
@Vyktor Fine! How bout you? :)
 
8:30 PM
@davidism say I wanted to run a Flask app inside a Flask app (kinda). Is using blueprints the best way to go about this?
What I mean is I've got my ffisegydd.com website, right. But if I wanted to add a small little data app to ffisegydd.com/data I'd prefer to keep it separate from the rest of the code.
 
Awesome.
 
user559633
{key: value for key, value in my_dict.items() if key != omit_value }
 
user559633
forgot that was a thing
 
8:33 PM
@tristan why not just use del?
 
Cool. I'll experiment with this tomorrow.
 
user559633
@corvid meh
 
O(1) rather than O(n) presumably.
 
the one thing you need to know is that they are separate apps, so you can't for example use url_for to generate urls from one app for the other app
 
user559633
yeah, and it lends itself to nice 'if key not in some_list'
 
8:36 PM
@BhargavRao went to sauna few hours back... I'm dried out :D I drank like 2 liters of wather :D
 
Promises make JavaScript SO much better... they should just be defaults in the language
 
user559633
promises and callbacks. sounds like job security through over-complication if it's ever existed
 
grumbles
 
if 'foo' in d: del d['foo'] is probably a lot faster than making a whole new dict.
 
user559633
add in a for loop and it ends up being very similar
 
user559633
8:44 PM
also, the dictionary key depth will be 10 at most
 
ok, who's off on Monday? I am! :D
 
user559633
i kind of am. i have a prototype i said i'd have out by then for a potential investor
 
I am, probably
:D
But... working all weekend
Also @AaronHall, for the Google stalking...
 
Python would be a perfect language if it compiled to binary, supported indefinite recursion, and had no GIL.
 
Just a quick search to see if you're near the top? Or what?
I hate the GIL...
 
8:47 PM
why?
 
@AlexanderHuszagh as if you were a potential employer.
or business partner
 
@AaronHall I'm off, hooray
 
Ah ok :D
 
@tristan my code is so obfuscated and big that I have ensured job security for many years to come
 
I get paid holiday
 
8:48 PM
yeah, what @davidism said.
 
Feels crappy to see a guy get told, "Do it again and you're gone."
 
@Vyktor Need some rest? :)
 
user559633
the GIL rules, i un-ironically like it
 
user559633
@AaronHall at least he got a warning
 
We all got a warning.
 
8:50 PM
@AaronHall, all I see is stack overflow stuff and Github, and your Twitter.
 
The rest of us, indirectly.
 
Ouch :/
So that's pretty good.
 
Ouch :/ what?
 
user559633
i once got an off-the-paper warning to step up the amount of stuff i was getting done. ended up leaving 3 months later and it took 3 people to do what I was doing in addition to one-off tasks. felt so vindicated :)
 
Nothing incriminating, good answers, clearly knowledgeable.
 
8:51 PM
Just another reminder to keep twitter topical.
 
user559633
heh, or just don't twit
 
Nah, it's in me to be public. Deny that and I'll probably just screw up and the only thing public about me will be the screw up.
 
:p I'm probably going to shut down my Facebook when I go for a job after grad school.
Mine's all controversial biology stuff that shouldn't be controversial, KPop, and random stuff.
 
You used to be able to download your entire Facebook record.
 
Probably fine if I want a job in academia...
 
8:54 PM
Or, better, find an employer who doesn't search/judge your online, non-professional presence
 
Yes, I love working for people who do sloppy work.
 
user559633
yes, it's sloppy for someone not to be an e-detective douchebag
 
Or find someone who does cyber stalk you and doesn't care
 
If I didn't google and judge a potential hire, and I'm the hiring manager, I'm not doing my job.
 
@BhargavRao indeed, so we could go climbing tommorow... do you do any sports?
 
8:56 PM
my company didn't even ask for my gpa and I was straight out of university
 
During grad school interviews, I was told my chemistry cover photo was not exactly correct "Because if ethanol is 100% pure, it's not technically a solution"
 
[python-magic] could refer to half of Python. The whole language is built out of hash tables and magical pixie dust. — Kevin 32 mins ago
Hmmm, Interesting!
 
user559633
@AaronHall Based on shit they do off the clock?
 
user559633
Yeah no, I don't think I'd want to work at that company.
 
this is kinda cool, looks like google translate added a pronunciation guide for languages which don't have a Western style alphabet
 
8:57 PM
@Vyktor I love trekking! Sports - Cricket.
 
You do the wrong public thing at any company and they will fire you.
 
@BhargavRao what's the difference between hiking and trekking?
 
user559633
@AaronHall Yeah, I guess if you like, drunk drive a tank into an orphanage while screaming about 9/11
 
> hiking is done more for leisure on man-made roads or trails, while trekking is done over a variety of terrain as a means of transportation, adventure, or challenge to the body and mind.
I go for trekking only coz coding makes me fat :D
 
You don't even have to commit a felony.
 
9:00 PM
nice
:D drinking cocacola makes you fat
 
^ duh
 
Yeah, Drink Pepsi. It will counter the effects
 
I've stopped putting sugar in my tea, and I avoided the free beer at a meetup this week.
It was Stella
 
user559633
@AaronHall If some overzealous, really-needs-more-going-on HR department or manager tried to give me a "talk" because of social stuff, I'd quit on the spot
 
That's some self control
 
9:01 PM
Stella isn't that bad
 
user559633
haha stella is "suburban dad in a hotel lobby for an insurance agent conference" beer
 
I've changed my diet this week a bit, but I went for a beer, twice :D
damn alcoholism
 
My 12th standard project was about Alcohol
 
@tristan Yeah, who would put up with that? But I do have to clear my speaking engagements with corporate communications.
 
user559633
12th standard?
 
9:03 PM
Err. After 10th, 11th and then 12th
:P
 
Yeah, I like Stella. I mean, if it's free, I'll usually drink it.
 
user559633
@AaronHall sigh. i hope you're making over 200k/yr to deal with that corporate-drone annoyance
 
@tristan not yet.
But I see it in my future.
 
@BhargavRao and you don't remember your findings ;)
 
I wrote around 4 pages on the benefits of Alcohol
It is good for heart
 
9:07 PM
Vytautus! :D
 
user559633
@BhargavRao regular drinking has delayed my death ray by at least 15 years
 
In Slovakia friendship goes trough liver (so if you don't drink you don't have any friends :D )
 
user559633
"imagine if smart people didn't use it as an escape from the annoyance of people?"
 
Yeah, I've got some really good tequila at home. I'm trying to make the value judgement that I only have so many drinks in my life, so I should only drink really good alcohol.
 
user559633
@AaronHall Agreed with this. Exception: crap alcohol at a good party or dive bar
 
user559633
9:09 PM
nothing wrong with the $5 shot and beer special
 
I hear Slovakia I remember Bratislava!
I hear Slovenia I feel bad about myself
:'(
 
As I start to build my savings account, I no longer look for the cheapest deal. But I completely resist paying a 200% premium for alcohol I can buy and drink at home.
we actually paid off our last credit cards this month.
 
^ Advantage of being a student.
 
@BhargavRao Bratislava is where I'm stuck :)
 
Still have a mortgage on a home in Florida though, and I still owe my dad 12k+ for my MBA.
 
9:12 PM
@Vyktor I had entered a Geography Quiz Comp and shouted Bratislava as the capital of Slovenia. I then got kicked out :(
 
I'm thinking I'll turn it into a joint life annuity for him. He'd probably be cool with that deal.
 
@BhargavRao lol, poor bastard
 
@AaronHall WoW you an MBA? Which univ
 
but I agree Slovakia/Slovenia is a bit confusing
 
University of West Florida.
 
9:13 PM
Now I know almost all capital cities.
That was 6 years back
 
In Slovak its Slovensko/Slovinsko
 
Oh damn. Good that the quiz was in English ;)
 
time for hibernation
 
One of the capitals asked was of Tristan-daCunha
Perhaps named after @tristan
:D
@Vyktor Cya! Rbrb
 
user559633
@AaronHall congrats.
 
user559633
9:19 PM
where in florida @AaronHall? i'm there right now
 
Pensacola
 
user559633
@BhargavRao yeah, that's where my secret lair ancestors are from
 
I think it's ---word--- for strikethrough? test
 
user559633
@AaronHall ah, so the "southern" part of florida
 
nope.
 
user559633
9:20 PM
three dashes @AdamSmith (thanks)
 
Yeah, it's more like Lower Alabama.
 
three dashes!
 
Reasons to use unicode strikes
 
that's why everyone knows your secret lair is -- wait, argh, I can't see it anymore nooooo!
 
Anyone else interested in world-geo?
borin stuff though
 
9:23 PM
Unicode strikethroughs l̶o̶o̶k̶ ̶l̶i̶k̶e̶ ̶p̶o̶o̶p̶
 
user559633
what's world-geo? like...knowing where things are?
 
Yeah
 
t̶e̶s̶t̶ test
 
user559633
not sure what constitutes "interested" but i guess cartographers?
 
which one looks better? :P
 
9:24 PM
the latter
 
test looks better
 
user559633
i have a decent command of geography as far as country names, but i generally don't care what people have decided to call an area of dirt
 
markup u̶n̶i̶c̶o̶d̶e̶
:P
the unicode strikethrough is too low.
 
Not bad tristan, you can help me when I have doubts :P
\o/ Download complete!
Rhubarb guys :)
 
user559633
take care boss
 
user559633
9:28 PM
alright my lovelies
 
user559633
i hope you all have great weekends.
 
you too @tristan. Rhubarb
 
cbg.
i still haven't been able to come up with a solution to this problem: https://stackoverflow.com/questions/30264374/using-hybrid-property-on-custom-method-using-sqlalchmey-expressions
anyone with ideas, let know in the comments over there. Thanks!
 
These are the 2015 grads of Columbia's masters degree in statistics: http://t.co/4BJU1tJZOg
That a lot of Asian names.
 
9:34 PM
so it's square brackets followed by parens for the link
I always mix it up.
 
@AaronHall that's pretty sweet, my two best languages are the top there
 
which? ah, Python and JS?
Yeah, I wonder how practical pypy.js is...
 
probably not hugely, javascript is very fast despite all its flaws
 
They seem to have a sense of humor
>>> import os
>>> os.chdir('/dev')
>>> os.listdir(os.getcwd())
['null', 'tty', 'tty1', 'random', 'urandom', 'shm', 'stdin', 'stdout', 'stderr']
>>>
 
@corvid it's not about speed.
@AlexanderHuszagh not sure, is it running on your machine?
 
9:49 PM
Nah
Tried their web browser
My /dev looks completely different.
 
might be some kind of virtual machine
 
Yeah I think it is. Their root says "web_user" inside "home", so I don't doubt it.
 

« first day (1679 days earlier)      last day (3267 days later) »