« first day (1574 days earlier)      last day (3378 days later) » 

8:00 PM
@joran so not hexlifying the file before the joining did not produce those results,
"00 xx 00 xx 00"
i got this
"[ 00 b 00 ' 00 1 00 6 00 ,..."
 
umm you did something wrong ...
 
the answer even links to the dupe, rather than voting to close...
 
post your whole code on bitbucket and post the file
 
im pretty sure i need to hexlify it before hand or its adding the "00" to the string. 16,17,18...
 
then after I look at those you can explain what you want
 
8:03 PM
its more than one script.
 
@JoranBeasley it's 9000 lines, are you sure he should post it ;)
 
ok
fair enough
 
Ya its super long..
 
dont post that
 
Is today the day that we teach @Death_Dealer about Short, Self-Contained, Correct Examples?
 
8:05 PM
actually, let's cv the dupe target while we're at it:
 
ok given the input you listed above "14\n15\n..." what do you actually expect to get back from this function for those first 6 bytes
 
Reducing a long piece of problematic code into a small piece of problematic code is probably the one most important skill you need to learn, to get the most use out of Stack Overflow
 
I will give you an example that is essentially the SSCCE for your problem statement as a gist
 
Wait it writes corretly. just doesnt print to the console the way i expected. sorry guys another "misguided expectation".
 
@Death_Dealer so you did str(list of bytes).encode('UTF-16')?
 
8:09 PM
@Antti Yes sir i did:) thanks tho.
 
is an example of a short self contained code example
that is tailored roughly to you
 
cbg all
 
@joran thanks for the example.
The problem i had with the console was the "\n" new line bytes.
 
DSM
@Zero: #1, I'm all about the callbacks, and #2: I loved that whole conversation so it stuck with me. :-)
 
repr usually helps you inspect a string that has newlines.
>>> s = "Hello\nWorld!"
>>> print s
Hello
World!
>>> print repr(s)
'Hello\nWorld!'
 
8:20 PM
as well as many other non-ascii characters :P
(which is actually what I was expecting to see ... not just newlines..)
 
@davidism yeah, also using entry points to discover plugins
the "tricky" thing in my package is the plugin context which behaves similar than e.g. the app/request context of flask but points to the plugin the current code is running in
for view functions that's somewhat easy - if it's on a blueprint in the plugin, it's running in the plugin context
 
Yeah, I was just thinking about implementing that, as right now imports are a little brittle
 
but now imagine a jinja template that inherits from a template in the core and contains something like that:
{% call stuff_from_core() %}foo {% trans %}xxx{% endtrans %} bar{% endcall %}
at least the way we are doing things, plugins have their own gettext domain so i18n code needs to know where to look for translations
 
argggggg localization makes me cry into my pillow at night
 
@JoranBeasley , just heard back, they liked the solution, got an onsite interview now
 
8:26 PM
nicely played
does that include a fancy lunch?
 
17
Q: Re-opened after appearance on Hacker News

vaultahI have incidentally come across this thread, where people have actively disapproved of closing this question: Put on hold as too broad by rene, davidism, vaultah, Sam, iCodez 2 hours ago ... Meta: It's interesting that 5 users thought that it would benefit the SO community to pu...

 
DSM
Pineapples for corvid!
 
wowo where there's lunch included in onsite interview?
 
Remember that bad Python vs Ruby question linked on Hacker News? Drama ensues.
@corvid \o/
 
@JoranBeasley Now imagine messing around with jinja internals for 3 days to end up with this ;) github.com/indico/flask-pluginengine/commit/…
 
8:27 PM
they include lunches on interviews now?
 
DSM
Oooh, now you can say you closed a Historical Question!
 
wait do you work for CERN?
 
@davidism but we also need a website like that, hmm, but we have quora
 
I think what bothers me most is that I can't respond to all the people in that thread calling out what I did as "elitist" and "eager to be bureaucratic". — davidism 19 secs ago
 
100% of HN posts that are related to Stack Overflow will mention the elitist close squads. Don't take it personally.
 
DSM
8:39 PM
The rules about what we allow and what we close aren't the ones I would choose if I were emperor-for-a-day, but they're reasonable enough and they're our rules.
 
> [davidism] is out there! It can't be bargained with. It can't be reasoned with. It doesn't feel pity, or remorse, or fear. And it absolutely will not stop, ever, until [your question is closed].
3
Because there's never a bad time to quote Terminator.
 
@JoranBeasley yes
 
DSM
Didn't we already use that as line as part of a Martijn/Chuck-Norris routine?
 
It's cute that HN can amass enough attention to reopen a post once, but their attention span is thirty minutes long, and we never forget a question that should be closed.
 
@Kevin it's a good thing HN hasn't heard of the Dark Council (which definitely does not exist) yet ...
 
8:42 PM
@Kevin one of my bot ideas was to monitor what I had closed and send timeline updates. If I don't forget, Skynet won't forget even more.
topical comment on something we just closed: stackoverflow.com/questions/28373291/…
 
Realtalk: I do worry about a group of users like us forming a question closing clique. That's why I critically appraise each cv-pls I read, to make sure that it meets my own reckoning of what does or does not meet community standards.
4
It's important to me that I not close a post just because my friend thinks I should, even if I implicitly trust their opinion.
 
@Kevin Funny you should mention that; I was planning to bring it up at the meeting.
 
DSM
I regularly don't cast votes when I don't know enough to decide (which is on most of the flask ones, TBH, unless it's obviously OT like a resource request.) On the bright side, there are enough of us to pull back a CV (as yesterday, when one of mine was repointed after the the issue was clarified.)
But hearing people with three-digit rep speak so confidently about site policy when there's 50k rep assembled against them always makes me smile a little. Doesn't mean they're wrong, of course. Does mean, IMHO, they shouldn't be so confident of their understanding of house rules.
 
@DSM I'm pretty sure I've quoted that before. Maybe multiple times.
I just find it so evocative.
 
I did actually vote duplicate there, because it seemed, well, like a duplicate
 
8:53 PM
Woohoo!
 
congrats, now you see dead posts.
 
Those three rep users just gotta rally together on Meta and change the site culture democratically. I bet there's more of them than there are of us.
 
Easiest 25 rep I ever got. Question asker was getting TypeError from doing for i in len(range instead of for i in range(len
 
15 rep you mean... <g>
you were repcapped still, remember
 
@AdamSmith gratz :-)
 
8:55 PM
bah, true
 
@AdamSmith Quick, let's go CV it as a trivial typo and then delete it out of spite
 
DSM
Huh. For some reason I thought if you had the accept you got all the rep associated with that answer.
 
no, you get 15 points for accept not-repcapped
upvotes are repcapped to 200 daily
 
What if all the 1 rep users in the world got organized and collectively put ten thousand upvotes towards a "we should allow 'plz give the codes' questions" Meta post?
 
@Kevin it would be closed as off-topic.
 
8:56 PM
@Kevin would not happen.
1 rep cannot upvote
 
phew, safe for another day.
 
how can y'all be so ignorant of SO privileges??? :D
 
I have forgotten what it was like to be a prole.
 
Ewwww... I failed a crap audit
fwp
 
I have a lot of problems with the way that system is done
 
8:58 PM
Not to brag but that hasn't happened in months
Also annoying that they don't show you the deleted answer but ask you to review it to understand why you failed
 
stackoverflow.com/questions/388242/… - This question would also be closed as too broad for the audience here, despite the fact that it has actually helped thousands of programmers and, wonderfully, as survived as a triumph of usefulness over rules. You are right that this is a meta topic, though. — tohster 5 mins ago
@AdamSmith go use your newly discovered powers at that link ^
see why the C++ craptastic question is locked :D
 
@AnttiHaapala lol, I hadn't scrolled down
 
DSM
It's really surprising how often people have difficulty with the idea of limitations. The sort of people who complain to their bank tellers about their taxes, on the grounds that they both deal with money, so the conversation has to be appropriate.
 
It's actually locked open, not locked closed - should be closed, but the mod who locked it is an anti-closist.
(burn the infidel etc)
 
DSM
I think that comment thread has gone beyond recovery; hopefully he'll open a question on Meta and it can be handled there.
 
9:10 PM
I think a lot of people just confuse "good question" and "good question for SO". One is a subset of the other.
 
DSM
@Antti: I'm inclined to agree with you, but I'm not sure your comment is going to help matters. :-/
 
I flagged his first rant with a custom reason asking to delete everything beyond it.
 
I think "what are some good C++ books?" is a great and useful question! But it doesn't fit our mission.
 
If he does post on meta, that will probably be closed or downvoted too, which won't help matters.
 
@DSM I do not particularly care if it helps matters, I just am drinking beer, reading stackoverflow, and told what I saw at that link.
 
9:11 PM
There really should be a place for "great posts which aren't great SO posts". Unfortunately whenever I see the idea mooted it's as a new SE site, and what makes them "not great SO posts" generally makes them not great for any SE site.
 
I occasionally confuse "Interesting problem to solve" with "Good question for SO" and spend 20 or 30 minutes writing up some solution to an interesting problem only to come back and notice the question is locked because it sucked.
 
DSM
@Antti: but if it's not constructive, then it's just as inappropriate as the question was..
 
@AdamSmith I know that feeling. Sometimes I spend an additional 10 minutes turning the solution into a one line solution, so I can post it as a comment anyway :-)
 
@DSM ah
@DSM it was not about his rep but the 10k limit :D
he goes to see that question, just sees 1 answer
@DSM maybe not a good idea to debate with users when drinking beer :D
 
@AnttiHaapala please delete your last comment on that question, the rest were cleaned up and I'd rather it not continue
 
9:17 PM
I got some cheap chinese food from the deli at the grocery store for lunch, included some fried rice. 99% sure they steamed the rice and just tossed some cooked eggs and veggies in with it.
Tastes awful
 
@ZeroPiraeus Isn't that place Blogger et al.?
 
DSM
You deserve it, for not eating Indian food on a Friday like civilized people.
 
Oh man, I wish there was an Indian lunch buffet walking distance from work
 
I eat vietnamese food every day
 
9:18 PM
@AnttiHaapala Is that a cover of the Snoop Dogg song
 
Is it? I thought it is my lunch?
 
DSM
Vietnamese, Thai, and Cambodian tend to be early in the week for me. Chinese is more a midweek thing.
 
I would be more explicit with reference but I don't really want to Google the subject matter from my work computer
 
adams_choices_for_lunch = ["cheap chinese", "real (expensive) chinese",
                           "McDonald's", "Convenience store hot dog",
                           "Dairy Queen", "Arby's", "Drive 20 minutes each way"]
@DSM
 
I had Thai food weekly when I worked in downtown Philly. It was good, but there's none in this neighborhood.
 
9:20 PM
oh I forgot one! adams_choices_for_lunch.append("Bar food")
 
DSM
> Homer: Whoa! Oh, no, you don't!
(He repeatedly snorts the goo back into his nose)
If I can keep down Arby's, I can keep down you!
That said, I like Arby's a lot, which may say something about me.
 
Isn't Arby's the same as Hardee's?
 
@Antti Just now I had an "ah yes, Antti's Finnish" moment re: your "you don't know what you're talking about" comment on the Q, and the "I was just being factual" defence of it here. So, a question: would you appreciate being given a heads-up when something you say might make people who don't know [you|Finnish culture] think "what a jerk"?
 
Or am I confusing fast food chains? Hardee's is the same as some other chain, I know, only for a different region.
 
I miss when I worked for Comcast in a business park. I'd sneak across the parking lot to the extruded plastics manufacturer because their cafeteria was much better.
 
9:22 PM
@AirThomas Hardee's is Carl's Jr
 
Best cafeteria I ever ate at was Harvard Business School
They have a rotating "world cuisine" buffet in the middle
Lebanon day was so great
 
I guess I could technically still go there. I wonder if the irascible proprietor would still recognize me.
 
Unfortunately HBS is stuffy and they don't even let students of the other Harvard grad schools use their facilities
 
DSM
I'll say this for downtown Large Canadian City: eating opportunities are plentiful.
 
speaking of food, I should get some
 
DSM
9:24 PM
[I seriously can't believe how much trouble the date 01/01/1870 is giving me today. I'll be very happy when this week is over.]
 
@DSM I work in retail so a big part of my job is troubleshooting POS systems that aren't doing what they ought to do. Recently had a customer's driver's license fail to scan because her birthday was 2/29/1988
 
I've got a relative born on Feb 28 of a leap year... Close call.
 
@ZeroPiraeus :D definitely
 
DSM
Can you legally report a different birthday to avoid the hassle?
 
Cool, will keep it in mind :-)
 
9:27 PM
@DSM if you don't mind committing fraud!
 
DSM
.. that doesn't sound like it would be legal.
 
@ZeroPiraeus though I am notoriously bad even for a Finn ;(
 
As my father always said: it's only illegal if you get caught
We don't talk as much now that he's in prison
 
@DSM Sometimes I wonder if that's exactly what her parents did - they were in a non-American time zone at the time of delivery, so it would be easy to fudge the time and fool us ignorant westerners.
Date of birth: february... twenty eighth. Yeah, that's the ticket. heh heh heh.
 
@DSM I realized we didn't have the resources to waste on that corner case and certainly wouldn't be contracting a PCI-certified software developer to fix the software, so I told the clerk to just override it and to tell the customer it flagged her for being underage because technically she was only 7.
That's the one part of my job that really bugs me. I can't really do any programming here, it's all general I.T. and sysadmin stuff
because anything that runs on the same network that card data goes over has to be developed by a PCI-certified team and be independently tested and QA'd.
 
0
Q: Python perform actions only at certain locations in text file

DaniraI have a text file which contains the data like this AA 331 line1 ... line2 ... % information here AA 332 line1 ... line2 ... line3 ... %information here AA 1021 line1 ... line2 ... % information here AA 1022 line1 ... % inform...

 
DSM
Clever on the part of both @Kevin's relations and @AdamSmith.
 
Every time someone mentions an Amazon web solution I remember that I have to pull my mail server off EC2 sometime soonish
 
you have a mail server in EC2? :D
good luck
 
9:38 PM
My free tier expires in the next month or three
@AnttiHaapala it actually works great, believe it or not
 
user559633
why run your own mail server?
 
@tristan to see if I could :D
 
@AdamSmith I don't
because they have rate limits on port 25 traffic, been there done that
 
user559633
Just seems like a tedious thing to worry about
 
@tristan that's why I don't run my company's mail server :)
 
I know, done that too
@AdamSmith IIRC we just ended up putting all outgoing mail via 587 and google, it felt always so~so about having to configure the spam records etc correctly
 
@ThiefMaster thats awesome ... I assume anyway
 

« first day (1574 days earlier)      last day (3378 days later) »