« first day (2144 days earlier)      last day (2795 days later) » 

4:28 AM
cbg
 
4:46 AM
cbg!
 
cbg
I just woke up
 
I woke up around 3:30pm today >:D
 
... well :D
welcome to stackoverflow
 
I wish there were a "close for poor quality" option. we can flag for poor quality but can't close vote for it, which I find confusing
 
@Karin there used to be an option called "lacks minimal understanding"
 
5:05 AM
seems like there's a lot of support to have it back
 
well I do understand why it was removed.
it does not guide how to make a better question in the future, all it tells is that the OP is stoopid.
 
true...I guess it seems the best case would be to help the OP in comments, but close the question to answers. is this what "on hold" does?
 
on hold means that any edits to the question will automatically push it to the reopen queue
the only distinction between on hold/closed is that after the question is closed it will not be placed in the reopen revq without an explicit reopen vote
it requires 3000 rep then :P
 
makes sense
 
6:12 AM
Hmm. If there's something that I loathe more than PHP, it must be the whole RFT process, today evaluating some bids/tenders...
well I hope we're evaluating some bids.
 
 
1 hour later…
7:18 AM
can a data:text/html,... uri be used for a proper XSS attack on <a href="">?
 
7:42 AM
hello
 
user6256879
7:58 AM
Does anyone know the best way to smoothly move an object in PyGame ?
 
gently push it forward
 
8:19 AM
Cabbage
@Idontreallywolf Welcome to the SO Python chat room! Please read the room rules. As the rules mention, we ask people to not link their own fresh questions here.
 
nvm :p
 
8:35 AM
cbg all
 
cbg
@Idontreallywolf whenever you get a keydown event you'd set velocity ... or acceleration to non-zero value.
when you get keyup, you'd set velocity to 0... or set deceleration until he velocity has reached 0.
and your solution is not a solution really either.
 
user6256879
@PM2Ring Got it! M8.
 
user6256879
@AnttiHaapala Already solved, thnx :D
 
@Idontreallywolf Cool.
 
8:59 AM
@Idontreallywolf Please don't edit your question titles like that. See Why can't I mark my title as [Solved]?
 
user6256879
9:20 AM
@pm
 
user6256879
@PM2Ring Got that too! m8 :D
 
9:54 AM
@AnttiHaapala If TTIP (as it stands) dies an undignified death I'll be happy. For those saying that the UK will get "TTIP on steroids" clearly haven't taken the time to look at the American anti-TTIP camp's worries. One of those is "The City" (London's financial sector). The UK has some frankly worrying unregulated financial sector practises that even the USA has regulated - so in theory the UK banks would "sue" the American government for anti-competitive legislation.
I think we'll see more trade deals with the states, but it'll be likely be mutually limited ("oh, you're not going to allow free trade for our financial sector? Fine then, we won't allow <insert list of industries here with relative gross worth here> to trade tariff free in the UK")
But - TTIP will never happen because of French agriculture protectionism (rightly or wrongly, beyond the scope of this discussion I reckon).
Say what you will about the EU's trade area, for all intents and purposes it does a good job at facilitating trade between diverse economies without inherently favouring certain economies. It's not perfect, but it could definitely be much, much worse. The USA wouldn't exactly be worse off by trading under its rules.
</non-python-politics-frothing>
Cabbage y'all
 
10:14 AM
cbg
@IntrepidBrit well, I've got nothing to add there...
 
That's gotta be a first ^^. Normally there's a bit of to-and-fro between us on European politics
 
cbg("bobby_g")
 
cabbage
 
10:23 AM
(TL;DR, lawyers and software freedom activists are a disease)
 
@AnttiHaapala Oh, I only saw the author at the end of the mail. Nice:D
very interesting stuff, thanks
@Karin poor quality questions can often be closed as other crap. And, yes, the official stance is that if you see a low-quality post that is not closable, then help out by editing it into shape:P
but I've never done that myself, so I understand other people's reluctance to do so
 
10:45 AM
@AndrasDeak help out by editing into closable :P
 
hehe:D
 
@AnttiHaapala that's why I am asking how to do. — iamnewuser 6 mins ago
And I am asking you: to do what? — Antti Haapala 46 secs ago
unclear Like in SqlAlchemy - Pattern Matching - iamnewuser‎ - 2016-08-29 10:35:38Z
 
@AnttiHaapala the needful, of course
 
-1
A: Python Mathematical signs in function parameter?

KasramvdUse the corresponding functions, from operator module: from operator import add def math(x, y, add): add(x, y) = answer return answer

kasra ad fgitw ftw worse than failure
< 10 minutes but the url gives 404 :P
 
@AnttiHaapala now that guy is a non-programming goat
nice edit there on the question....
it just got more confusing
 
10:57 AM
Howdy folks, I am pulling information out of outlook. In general I am trying to snag the text out of the email's body areas. After pulling out the information I get a bunch of text such as "\\xa0" or "\\xc2" or "\\r\\n\\\\r" ... I understand this to be some level of string formatting or some sort of encoding but I am not sure what type of encoding it is and how I can simply strip it out of the ( what are in the end are ) strings. Any thoughts to share?
 
\\r\\n is probably CRCF with escaped \r\n
\\xa0 \\xc2 are escaped hexadecimals, \xa0 and \xc2?
 
@ToddLewden are you looking at print(), or repr()?
 
finnish quality <3
 
@AnttiHaapala ask Nokia to fix it
 
10:59 AM
not-so-controlled drilling and blasting ops
 
:D
I thought it was the weather-situation
 
no, see the tire mats
makes one wonder when are they going to learn...
 
:D
were those Nokia tires?
 
@AndrasDeak , I get the email via functions in win32com.client , I then collect all the emails together into a list, then write the list to a .txt... I then am subsequently opening the .txt file and trying to iterate through it to gain insight into the archive. Within the .txt there are the \\xyz things. Upon you mentioning it I agree with the idea that they may be hexadecimal... Could I do anything with .encode (or .decode) to rid the strings of them?
 
@AndrasDeak nokiaN
 
11:02 AM
@AnttiHaapala oh, right, sorry
 
@AndrasDeak like this livingroom:
 
This is an excerpt from the .txt --- ollowing stores:\\r\\n\\r\\n\\xc2\\xa0\\r\\n\\r\\n0108 S ME\\r\\n\\r\\n\\xc2\\xa0\\r\\n\\r\\n0285 VA\\r\\n\\r\\n\\xc2\\xa0\\r\\n\\r\\n0825 NY\\r\\n\\r\\n\\xc2\\xa0\\r\\n\\r\\nThank you ---
 
Is this pyhon2 or pyhon3? I really can't help you, but the others will appreciate the information
@AnttiHaapala :S
 
I am using Python3
 
it seems to me that those are hexadecimal-defined characters and \r\n escaped, so it shouldn't be hard
but I don't know the specific trick
 
11:04 AM
@AndrasDeak , I appreciate the honesty and friendliness :) Thank you. I will play around with .strip and google .encode to see if anything comes up. Just having a lead on what the characters may be helps a lot!
 
well try them without escaping
In [38]: print('\x53')
S
of course your characters are probably not printable
 
@ToddLewden why do you get them in the first place!
are you sure it doesn't start with b'
@ToddLewden you've written binary data forced into a text file
 
@AnttiHaapala , Is...Is writing binary data to a .txt bad?
 
@ToddLewden well...
 
I am going to start from the beginning and look at how I collect the emails then go from there. I am certain there is a better way I can go about this.
Thank you for helping with reviewing the concepts of the code I am writing :)
 
11:08 AM
I am certain about it too... :D
in Python 3 there are 2 distinct concepts: text files and binary files
if you are storing low-level email messages, then they're binary.
 
@AnttiHaapala why do I get the feeling that those weren't shattered by shock, but by projectiles?
 
@AndrasDeak projectiles naturally. Finnish construction quality
it happens so often that it isn't news any longer here.
 
@AnttiHaapala , Thank you for the information, I had no clue that they were treated differently :) ... Learn new things every day, love it!
 
@AnttiHaapala you would think that after years of lawsuits/payments they would learn:D
 
brb
 
11:14 AM
in Finnish there is this saying "Rapatessa roiskuu" - "~can't plaster without spilling"
 
:D
always the optimists
 
i.e. when you're working "efficiently", then to a certain degree, damage is expected :P
 
yeah, I gathered that
 
*collateral damage!
 
@ToddLewden "I then collect all the emails together into a list, then write the list to a .txt" It looks like you're saving the repr of those strings to the file, rather than the actual characters of the strings. Try opening the file in binary mode, then using .decode('unicode-escape') on the bytes you read. But it would probably be better to change the way you save the string data in the first place. A simple portable way would be to save your list as JSON, possibly with ensure_ascii=True.
 
11:27 AM
ah I didn't see that :P
@PM2Ring but not only that, but it is UTF-8 code double-escaped...
so wrong on so many levels :D
 
Try 001
 
@AnttiHaapala Perhaps. We don't know how Todd created the strings he posted here. :)
 
>>> b'\xc2\xa0'.decode()
'\xa0'
Unicode Character 'NO-BREAK SPACE' (U+00A0)
 
I am a bit embarrassed to share my script now that I know it to be flawed from the ground up haha
 
you're writing a list of binary strings...
 
11:29 AM
:) You each have been very useful in figuring out what I was doing wrong. Let me take a second attempt at this little process and I will post back here what I find.
afk <3
 
[b'123', b'something\xc2\xa0\n\n']
if you read in the string, then print, ^that is what you're going to see.
however if you repr() that string in a Python shell, you will see
"[b'123', b'something\\xc2\\xa0\\n\\n']"
 
@AnttiHaapala , You are absolutely correct regarding the UTF-8 encoding... I have the following line --- body = item.Body.encode("utf-8") --- which put in all the \\abc things... When I do a "Print" command off of body I get clean neat text.
I got rid of the encode() and NOW I get clean neat text... With the encode() I got all the extra characters.
 
the point of python3 is to get rid of all the unicode magic, right?
as much as possible
and one of the points of
 
@ToddLewden it isn't the solution yet.
you're still writing the list into the file?
not each item in the list?
 
Speaking of which:
 
11:39 AM
@AnttiHaapala, correct. My next step is to just write directly to the file rather than collecting it into a list first.
 
lol...
 
@ToddLewden There's no need to be embarrassed, it can be tricky getting the hang of this stuff, and even experts will mess it up from time to time. But after a while you learn to spot when you're making this kind of error, and know how to deal with it.
FWIW, the difference between a string's actual contents and its representation is an example of the use–mention distinction. Lewis Carrol has some fun with this in Through the Looking-Glass. See Haddock's Eyes
 
at some point they will notice that 1,111,998 wasn't enough for everyone :P
 
@PM2Ring I appreciate the gesture and the links, thank you :)
 
11:43 AM
No worries. You may find this article helpful: Pragmatic Unicode, which was written by SO veteran Ned Batchelder.
 
nedbat ftw
 
we need a rabbit command that drops a (random?) bit of knowledge written by SO veteran Ned Batchelder;)
 
This is the nonsense I made . I am in the process of modifying archiveCollector() (( pastebin.com/Kv7qHGvE ))
 
@ToddLewden you're opening the same file twice with w, that can't be right :D
 
11:52 AM
Ah , yes you are right, that was part of the modification. was going to be ridding myself of the second time the file was open. That was a mistake in the copy/paste while mid-way making changes.
 
@ToddLewden Collecting the data into a list is fine, and it's a little more efficient to write a whole bunch of stuff to file in one go rather than string by string, but you need to process that list a little rather than just convert it to string and dump it. If you want to be able to get individual list items when you read the data back in then I strongly recommend saving & reading the list using the json module.
Another strategy would be to join all the string in the list into one string, with a separator between each of the original strings, and then encode that to UTF-8 before saving it. You can do the joining operation with the string .join method.
 
@PM2Ring join and json , googling :)
 
@AnttiHaapala you're the coolest kid around:P
 
@AndrasDeak kid?
probably closer to death already :D
 
@AnttiHaapala Please don't use max as a variable name as that shadows the max built-in function. ;p
 
11:58 AM
pythontips.com/2013/08/08/storing-and-loading-data-with-json , this is the link I've settled on to begin learning JSON ( I hit the official Python.org page and the official JSON page first though )... I am seeing examples like the following ( pastebin.com/wMpupKtR ) ... Am I just first making what essentially is a dictionary then using json.dump to store it?
 
JSON doesn't need to be a dict. It can handle lists too.
 
okies :)
 
@PM2Ring that aside, doesn't that prove that I am more skilled than nedbat, after all I've fixed a bug in his code, but he's never done the same to mine :P
 
Random thought... Would it be better if I wrote to a .db via sqlite ( or sqlalchemy ) rather than a .txt if I want to in the future further manipulate or read from it?
 
the two categories of Finnish humour: self-deprecation and self-deprecation disguised as hubris.
 
12:03 PM
@AnttiHaapala :giggles:
@ToddLewden Maybe. JSON is handy because it's readable by humans, and you can even edit it with a plain text editor. But if you are saving a huge amount of data and you want to be able to do various kinds of searches on it then a database may be a better idea.
 
well, json is the format that is good for nothing at all :d
there are more human-readable formats...
and there are faster machine-readable formats
 
@PM2Ring , It isn't a 'huge' amount of data I think. It's maybe about 1000 emails for now. I think I am going to start thinking towards .db...
 
@Ev.Kounis since the OP failed to show any effort to produce the correct result, I balanced the scales by making a contrived answer. — Antti Haapala 16 secs ago
 
Yeah. 1000 is starting to get a bit unwieldy for JSON. And even if I were doing this with JSON I'd make it a bit more structured than a simple list of strings. Eg, store each email as a dict, with separate fields to store the header info (like To, From, and Date), with the email body as a string, or even a list of strings, with each paragraph in its own string, to make it easy to re-format the body.
 
I'd use msgpack
 
12:16 PM
Where did that 3 come from? — PM 2Ring 14 secs ago
 
@PM2Ring <3
@PM2Ring perhaps I should have answered list(range(int(number[0]), int(number[-1]) + 1))
 
Perhaps. Or maybe the 3 is just a typo. If the OP doesn't respond, I'm voting to close as unclear.
 
...
@PM2Ring why just not vote as unclear
let it go to the reopen queue
it's got enough answers already!
 
I'll give it a few more minutes. But I suspect that the OP is a hit & run poster, they haven't been online since they posted the question.
 
cbg. If you guys agree that this is the correct dupe target for this, please hammer away. I cv as too broad, but realized after that this must have been answered before.
 
12:35 PM
done
 
ty!
 
@idjaw Oops. I was just getting rid of the pending edit on that question, but I didn't do it in time before it got hammered. Oh well, no big deal. My edit won't put it into the reopen queue because it's closed as a dupe, not on-hold.
 
oh you
-1
A: Convert a list that contains a string into a list that contain multiple integers?

Antti Haapalanumber=["124567"] result = [] for i in number: for j in i: for k in j: result.append(k) else: result[-1] = int(result[-1]) number = result

haha
 
12:39 PM
@AnttiHaapala Looks like chepner gave you a downvote for being snarky.
 
big deal
I am counting on getting a ban :D
would increase my productivity :P
 
Do you want a couple more downvotes so you can get Peer Pressure? :)
 
Have they changed something about the main site? Every time I add a comment, the question's text whites out for half a second.
 
@Kevin I had that today with flagging
But the question was edited in the mean time...wasn't yours? It's possible that the question now gets reloaded in case of interacting with it
 
Antti we can all contribute to your ban if you like
You just give us the ok
 
12:44 PM
Morning cabbage.
 
morning
 
Even voting on an answer causes the answer to flash white.
 
@PM2Ring I've got it already :d
 
@idjaw everyone would be happy ;)
 
12:47 PM
especially the python 2 mafia
 
my SO wouldn't have to compete with my other SO :D
 
I don't like change. This is why I don't like change.
 
Change is the mind-killer. Change is the little death.
 
@PM2Ring OTOH, I just noticed that the answer I just downvoted had been edited since I loaded the page, and my vote caused the answer to refresh. Which I guess is a good thing. :)
 
12:49 PM
Aaand the Q got deleted before I could post an answer. It's going to be one of those days.
My mystical perception of which answers are going to be deleted in the next ten minutes, must be rusty.
 
@AnttiHaapala Let's see if you can get it multiple times. :evil grin:
 
@PM2Ring :P
@PM2Ring go ahead
 
oh noes :d
 
Your wish is my command
 
12:56 PM
I am going to drink all the coffee in this office.
no coffee for ilja
 
Bwahahahaha, you are late! I already took some
Though I shouldn't. Apparently the antibiotics I'm on cause caffeine to build up in the system...
 
@IljaEverilä yeah, don't pour coffee into your computer if it's on medication.
cbg vaultah
 
Can the size of a list ever change because of a call to map? Eg, could I remove and mutate each object in a list from one map call? Or should I just have map return None/False for the objects I want to remove and then filter?
 
re-cbg
 
1:04 PM
@IljaEverilä Sounds like an MAO inhibitor. Best to not have any more coffee.
 
@MorganThrapp I'm pretty sure you need to use filter.
 
@Kevin Yeah, I figured. Thanks.
 
@MorganThrapp No, a mapping process has to map items, it cannot create or destroy them. The functional programming people would be very upset if map didn't work that way.
 
that I guess wasn't bhargav rao :?
 
seq = []
map(lambda x: seq.append(x) if x %2 == 0 else None, range(10))
print seq
#result: [0, 2, 4, 6, 8]
 
1:10 PM
Thanks, and the documentation says: "fmt%(v1,v2,...) is roughly equivalent to sprintf(fmt, v1, v2, ...)" — Laurent LAPORTE 6 mins ago
@LaurentLAPORTE it should probably say fmt % (v1,v2,...) is almost but not quite entirely unlike sprintf(fmt, v1, v2, ...). — Antti Haapala 26 secs ago
 
DSM
Cabbages for all.
 
cbg
 
DSM
@Kevin: the temptation to ask you to wash your mouth out with soap after that is hard to resist.
 
@PM2Ring ciproxin, the leaflet did not outright ban caffeine, just that it should be limited, if used to consuming lots
 
ciprofloxacin?
oh, ciproxin is the name of the product, OK
 
1:12 PM
That
 
I must remember to tag my dark magic code samples as such when posting them in the room.
I think this one goes without saying, though, because discarding the result of map without reading it first is obviously naughty
 
The beauty of functional programming making concurrency natural or something...oh wait
or threading or something
so not having race conditions, whatever that is called
 
share nothing
 
Insert Ayn Rand joke here.
 
Insert a /^[aynrandpulo]+$/ joke here
 
1:17 PM
According to a David Cross thing on Netflix, she dies living in subsidized housing while on medicare
 
I decided to just to filter(bool, map()) and return None. It seemed less likely to have the next person to look at this code to want to murder me.
 
@IljaEverilä Yeah, it's not a big deal, unless you drink a lot of coffee. Ciproxin inhibits the enzyme CYP1A2, which breaks down caffeine (and various other things). Having a little coffee won't reduce the effectiveness of the antibiotic, but the caffeine will have a longer half-life in your system. But IANAD.
 
If a longer half-life means half a cup of coffee can keep you going all day, I'm surprised this Ciproxin thing isn't available over the counter in convenience stores.
"But Kevin," you say, "Ciproxin probably has a host of undesirable side-effects". Perhaps, but... gestures wordlessly at tobacco, alcohol, and caffeine industries
 
DSM
IAAD! But not that kind of doctor, more's the pity.
3
 
IAJAMM :/
 
1:25 PM
I'm not a doctor but I do a pretty good job eliminating the most ridiculous diagnoses from WebMD.
 
DSM
#lupus
 
It's never lupus! Except that one time.
 
Hi guys, I have a basic query regarding threading/multiprocessing:
I have a continous stream of incoming data, which I process in batch, since everything runs on the main thread, the receiving pauses and I lose all my incoming data while it's doing the prediction. Can somebody please suggest if I should use multiprocess/threads or something else to improve my performance
My code structure is like this. https://gist.github.com/anonymous/fda35c4c3d6c680ed4af07b98a2d9481
 
@tourist "I lose all my incoming data"
?!
so there's your problem, you don't even have any buffering
 
@AnttiHaapala the script stops receiving new data while it's predicting
 
1:28 PM
you shouldn't rely on a python script sampling anything, even though at a low frequency such as 50 hz.
 
morning everyone
 
@corvid evening
 
morning cabbage corvid
 
i save some samples and then I call the predict function, but predict takes like 6ms and during this time, my incoming stream is paused.
 
Doing a python problem today
 
1:31 PM
@AnttiHaapala i save the incoming stream into a csv, and when its 100 rows, i call predict
 
@corvid Interesting. Good luck (I assume you're trying for a job)
 
Yeah the exercise is completely reasonable and relatively easy to implement
 
Reading that exercise gave me an unpleasant flashback to my second internship where I spent a month unsuccessfully searching for an automated email library that could pierce the company's impenetrable outgoing firewall
"You could send emails manually though, yes?", you ask. "In principle it should be easy to find at least one solution that could undetectably spoof the process that a human takes to send an email". Past Kevin thought the same, but Past Kevin plus two months knew otherwise. At one point I suspected that their security monitoring squad was watching me personally and hand-picking which packets to allow through based on whether I was typing at the keyboard at the time
Luckily I solved the problem by going back to school at the end of the summer semester and not having to work there any more.
 
awww
I feel sorry for little Past Kevin
 
When faced with painful memories such as that one, I pretend that I'm unknowingly in a purgatory-like afterlife where my sins are gradually cleansed through suffering.
 
user559633
1:46 PM
@corvid That's a pretty long exercise for throw-away code
 
@tristan tbh I mostly just use a basic boilerplate then fill in where needed. Just one one-to-many relationship
 
In my freshman year of college, I came within one foot of being hit by a large fast-moving truck. If I'm actually dead, that seems like the most likely cross-over point. No blinding tunnels or gates of white, just a fellow student pulling me backwards out of the crosswalk.
 
@AndrasDeak, Hey, I swapped over to storing the emails within a .db using SqlAlchemy and it has been so much easier than working with the .txt file and such. Thank you again for the advice.
Also, greetings everyone.
 
typo stackoverflow.com/questions/39207593/… OP admits it's an accidental indentation error
 
I'm mildly upset that OP thinks I was calling him stupid. There's a big difference between "I think you're making a basic mistake" and "I think you're dumb"
 
1:55 PM
I wonder if people would more easily digest "classic" rather than "basic" mistake?
(brief re-cbg y'all)
 
@ToddLewden wonderful, but that wasn't me
 
@Kevin as always, truth hurts :P
 
Sometimes I do think that OPs are genuinely dumb but this happened to not be one of those times. If you're five pages into a Python tutorial, not knowing how to do a certain thing in Python doesn't mean you're dumb, it means you haven't read more than five pages of the Python tutorial.
 
and you're asking on SO after only five pages...because you're dumb
 
Depending on the circumstances you can write that off as "poor impulse control". They're just so excited to start interacting with the community!!!
 
2:00 PM
.d
and we do interact :D
 
repulsive forces galore
 
user559633
@corvid Yeah, I mean, I think that will be what they'll get. Copy/paste django or experienced people just giving them a copy/paste of work they did before
 
Request for Off-Site Resource How to make changes in .py file? - Hunny Kaushal‎ - 2016-08-29 14:03:23Z
 
Almost knee-jerk downvoted that for "Someone make this script for me." before I understood it as "someone made this script for me."
 
A bit surprised by this and can't believe they accepted refunds for people who sunk in several hours in the game lazygamer.net/gaming-news/…
 
user559633
2:09 PM
I wonder if a company could write a feature only through prospective employee applications.
employee a) write an API using dropwizard or flask that lists current airfares between the most populated 100 cities
employee b) write a frontend using react or angular that shows airfares that come from an JSON API that gives data that looks like....
employee c) how would you deploy an application that looks like....
 
user559633
@idjaw i think it's case by case and not a general policy.
 
I've heard quite a few interview horror stories where it's obvious the interviewer is trying to extract free work from the applicant.
(never mind that the person telling the story is always biased in their own favor)
 
@tristan I sure hope so. Letting someone get a refund putting in 50+ hours is crazy
 
user559633
@Kevin hah, I've sniffed out this attempt before and gave them hilariously overcomplicated, obfuscated garbage
 
stackoverflow.com/q/39183298 no repro / not actually a problem
 
user559633
2:14 PM
Good morning :)
 
cabbage
 
Story idea: a well-known Fortune 500 company has no employees other than a massive HR department. Every task requiring actual work is performed under the guise of a "competency test" given to job applicants.
 
I got a spam to my email from F-Secure; they were seeking a senior Python backend developer
... I decided to do an open application... they had an automated process for that,
with 10 pages of questions ...
 
The company spends most of its time creating fake testimonials from fictional workers so they stay at the top of every "best places to work" list in order to keep the interview pump going.
 
after I had submitted that I didn't hear anything from them for 2 weeks.
... then I got mail that said "sorry but we're now going to start our summer vacation. While we're on vacation, you might want to do this programming assignment. After you've returned it we might want to interview you"
 
2:17 PM
"you might be wrong"
 
user559633
the company is going to start a summer vacation? what?
 
I'm a bit confused by this...
class EmailSignupForm(Form):
    email = StringField("Email", validators=[
        InputRequired('Email is Required'),
        Regexp(
            regex=r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)",
            message='Please enter a valid email'
        )
    ])
    region = SelectField(
        'Region',
        coerce=int,
        choices=[(1, 'Boston, MA')],
    )
 
user559633
i know that it's a new cool thing to say "oh we're like a family", but that's taking it too far
 
Wait wait. I want in on this company that takes an entire summer off
 
user559633
you're hired. we work 90 hour weeks the rest of the time to subsidize it
 
2:19 PM
(flask wtforms), when I enter a valid region and a valid email, it still does not pass form.validate().
 
they were spamming their ads to all Python mailing lists in Finland that they need this person ASAP.
 
@tristan oh sorry. My current employer just offered me something I couldn't refuse. Thanks for your tkme
 
Ah, the old "hurry up and wait"
 
DSM
ISTM the uncertainty of not knowing whether your oh-so-clever plan would succeed would make me want to just hire a dev. But maybe they just didn't have the money.
 
@Kevin They could get the Black Hat Guy from xkcd to do their marketing.
 
2:22 PM
the coding assignment wasn't anything hard...
just asked to write a website monitoring tool, so I guess a simple command-line script could've done
but I didn't personally talk with anyone, after filling the forms for one hour, got 2 line email with an attached word doc saying "complete this assignment and we might contact you in 6 weeks' time or so..."
I never submitted that and the never asked anything else.
 
Found the problem: wasn't using form.csrf_token
 
user559633
@AnttiHaapala while true; do curl -sL -w '%{http_code} :: %{url_effective}\n' "https://stackoverflow.com" -o /dev/null; sleep 5; done
 
user559633
do i get the job?
 
Plot twist: if you had completed the assignment, they would have responded right away. The "six weeks" timeframe was a test to see how well you tolerate irrational business-world BS. You failed.
If you're thinking "I would not want to work at such a company" then you are correct to do so. Good job dodging that bullet.
 
@davidism, quick question, at anywhere in Sopython-site, is there an example of using results from a query in a form?
 
DSM
2:59 PM
I didn't track down the mysterious error, but now I have a shiny Jupyter notebook with lots of interactive plots to show that it's not the fault of my team. :-)
 

« first day (2144 days earlier)      last day (2795 days later) »