« first day (2355 days earlier)      last day (2578 days later) » 

3:21 AM
Let us all take care not to bully or harangue newbies off the site, such as is happening on this question (which is admittedly confused, but not much more confused than each of us when we first learned basic Python concepts) :
-4
Q: What's wrong with this class __init__() method?

e-bird14I'm trying to write a code in which it creates a Person class that creates a name, but it keeps crashing and I honestly don't know where else to go from here. My professor originally did the code for us but it also kept crashing so I've tried tweaking it and it's gone nowhere. class Person(objec...

 
dyb
It is really hard to create a new question on stackoverflow for a newbie indeed. We have a hard time ;)
Many times i don't know what am i looking for or how to ask the question hence the search function is useless.
Then i create a questions and it seems like it was answered many many times, but i couldn't find it :|
And not being a native english speaker doesn't help ^^
 
@dyb use the google search instead.
no one uses the stack overflow search.
 
 
2 hours later…
5:25 AM
187
A: When is it justifiable to downvote a question?

Denis de BernardyPlease stop being a care bear, and proceed to be harsher at once. Poorly written question? Downvote and move on. Feel like puking in the face of the OP's wall of hideous spaghetti code? Downvote and move on. Did the OP obviously forego googling? Downvote and move on. Did the OP obviously forego...

@dyb If you are sure you have the right keywords for the search, try Google instead as Antti Haapala mentioned. If you suppose you may not have the right keywords, try to come close to the language specific ones. And for errors, try to search them verbatim (except for user-specific material like Paths or functions)
 
5:49 AM
@smci btw, the wording of the error is rather stupid :D it says "should" when "should" in pretty much everywhere means ~"it is recommended"
also the question still doesn't have a MCVE...
only the __init__ is relevant
btw,
not reproduceable (the question is one big typo, and now irrelevant)
 
 
2 hours later…
 
1 hour later…
8:46 AM
cbg
 
9:12 AM
cbg
 
how's tricks @holdenweb?
 
9:28 AM
cbg
too broad / no MCVE stackoverflow.com/questions/43061669/… Those if loops can be tricky. ;)
 
9:46 AM
I don't have much confidence in this teacher: Regarding the use of "input" that was not my decision. The assignment forces us to call that parameter input. stackoverflow.com/questions/43065805/…
 
"teacher wanted us to call it eval(input) at first, but that gave a syntax error"
cbg
What is pig latin's specification for words starting with multiple consonants? Such as "start"?
 
@AndrasDeak Usually, you move the initial consonant cluster to the end of the word. But that might be the topic of the next assignment...
 
:)
thanks
that would've been my guess
 
10:06 AM
My mum's family could all speak pig latin really quickly. But it didn't take me long to figure it out. :)
 
I usually find that human brains adapt to these weird things really quickly
there's a similar thing in Hungarian where for every vowel you have an additional "v"+vowel syllable inserted. So "Te tudsz így beszélni?" -> "Teve tuvudsz ivígy beveszévélnivi?". It's probably easier to parse than pig latin, but anyway it's really easy to get used to it as a kid
 
@AndrasDeak there are several variants there: terge turgutsz irgigy bergeszelgernirgi?
 
I haven't seen any other variants:)
 
really?
my parents taught me a lot
 
must be a small-scale thing
I mean, part of family haritage or smaller community:D
rhubarb for now
 
10:18 AM
@AndyK Busy as a one-legged man in an ass-kicking contest. Preparing for a new job at the start of May, so currently documenting things.
My emplyer, despite a three-month notice period, will not have appointed a replacement by the time I leave on 25 April. Who knew I'd be so heard to replace? ;-)
 
gem are noticeably hard to replace ;)
I like the analogy
 
11:10 AM
Wow. Raymond Hettinger has been a busy boy lately. I was surprised at first to see answers with 0 score, but they mostly appear to be on old questions.
 
user6845426
o/ cbg
 
11:43 AM
I nominate this for the best function name of the day. :)
 
user6845426
Lol!
 
12:05 PM
Hi
I am facing a problem trying to elaborate received JSON data
zlstring = ""

            for player in data:

                calculation = (player.stats.score + player.stats.kills - player.stats.deaths + player.stats.damage_dealt - player.stats.damage_taken) / 5

                zlstring + player.name+": "+calculation+","
what I am trying to do is extract some data from the JSON and create a string
but as I am new to python it is difficult for me to figure it out
please help
 
Where is the JSON data? What is your question?
 
For starters, what is data?
 
sec
 
...And please don't dump a huge JSON blob or anything like that in the chat directly.
 
that ^
create an mcve if necessary
 
12:10 PM
{"654645656576":{"team":"red","name":"trdtrdtd","country":"US","stats":{"kills":0,"time":2154850,"deaths":1,"score":0,"damage_taken":300,"ping":8,"damage_dealt":0},"model":"grunt/sport"},"5675665764":{"team":"blue","name":"tyfytfytfytf","country":"US","stats":{"kills":18,"time":5904225,"deaths":0,"score":0,"damage_taken":0,"ping":8,"damage_dealt":5400},"model":"xaero/default"}}
 
But anyhow, since you hint at data being unserialized JSON, it'd perhaps be a list of dict, in which case you'd have to use item access instead of attribute access. player["stats"]["score"] etc.
 
the json is coming from javascript
 
@neoDev Iterating over a dictionary will iterate over its keys, so player in this case will be "654645656576" etc.
 
@IljaEverilä I am going to try it, I'll tell you how is going
 
You can iterate over data.values() or even for key, player in data.items().
And still note that dictionaries in python do not support item access through attributes.
 
12:14 PM
I tried to access like players['stats']['kills'] etc, but
TypeError: string indices must be integers
 
See the later comment about iterating over values of a dictionary.
 
you mean data.items()?
 
And learn to read and understand error messages. "string indices must be integers" is a good indicator that you have something unexpected, a string in this case, where you expected a dictionary.
For example.
 
I am receiving the data from a node.js server (javascript)
r    = requests.get('http://192.168.1.103:8000/chatget')
data = json.loads(r.text)
 
It's not that the data is corrupt or anything, just that your first for-loop attempt goes over the keys, which are strings. You then tried to handle them as the values (dicts).
 
12:20 PM
It is still not clear how I have to do instead
 
I add a print(data) after that and I will paste the repsonse
 
Please don't paste it, there's no need.
Read the linked tutorial on handling dictionaries in python.
 
{"34567654678":{"team":"red","name":"^7♣^5Ric^4hard^5to^4frag^7♣^7","country":"IT","stats":{"kills":0,"time":2154850,"deaths":1,"score":0,"damage_taken":300,"ping":8,"damage_dealt":0},"model":"grunt/sport"},"345675467":{"team":"blue","name":"^1♥syn_d^7ø^1gâ™ ^7^7","country":"IT","stats":{"kills":18,"time":5904225,"deaths":0,"score":0,"damage_taken":0,"ping":8,"damage_dealt":5400},"model":"xaero/default"}}
 
user6845426
He pasted it
 
12:22 PM
I am stuck at this from last night
I started used python few days ago....
I'm sorry
 
Your response JSON is deserialized in to a python dictionary. When you use it as-is in a for-loop, it will iterate over the keys. "34567654678", then "345675467", etc. You could then use the key to access the items in the dictionary, like data[player] in your case.
But you can also just iterate over the items, or values, directly:
for player in data.values():
    ...
 
@neoDev Also, you don't need to do json.loads(r.text). The Requests module understands JSON, and if it detects JSON you can load that JSON into a Python dictionary with the .json() method. So with your code, you can do data = r.json()
 
Or if you need the key (possibly player id?) and the value, use data.items() and unpacking, e.g. for player_id, player in data.items():.
 
user6845426
Anyone familiar with OpenCV know how to just take a section of an image given the x,y,w,h coordinates/values are known?
 
in my case they are player id
 
12:31 PM
Iterable dictionaries have some interesting edge cases. What's a and b in:
In [2]: a, b = { 1: 1, 2: 2 }
(Before we got ordered dicts)
 
@neoDev Here's an example of accessing that data:
    for key, player in data.items():
        print(key, player['name'], player['team'])
        stats = player['stats']
        print(stats['kills'], stats['time'])
#output
654645656576 trdtrdtd red
0 2154850
5675665764 tyfytfytfytf blue
18 5904225
 
12:45 PM
r = requests.get('http://192.168.1.103:8000/chatget')
data = r.json()

    zlstring = ""

    for key, player in data.items():
        stats = player['stats']
        calculation = (stats['score'] + stats['kills'] - stats['deaths'] + stats['damage_dealt'] - stats['damage_taken']) / 5

        zlstring + player['name']+": "+calculation+","
ERROR: for key, player in data.items():
ERROR: AttributeError: 'str' object has no attribute 'items'
My goal is create a string like:
John: 345, Ed: 23, etc...
 
Your API endpoint responded with a JSON string? Perhaps there was an error?
Btw you really should check your indentation. It matters in Python a great deal.
 
I am using only spaces (4)
 
user6845426
 
@dipper please, don't share questions asked less than 1-2 days ago
 
@neoDev That's weird. That JSON should be decoded to a Python dict. See the Requests quickstart.
 
user6845426
12:55 PM
sorry :)
 
But if what you were doing before creates a dict, then use that. I guess it's possible for the server to send the JSON wrapped in an extra layer of quotes, making it a single string (which would require escaping all the internal quotes). But if that's the case, stuff need to be fixed on the server side, because that's frankly mental. :)
 
Double escaping with a twist.
Always fun to deal with stuff like %25C3%25A4... :D
 
1:12 PM
I cannot make it working
:(
print(r.headers['content-type']) is application/json; charset=utf-8
 
@neoDev What does print(type(data)) print?
 
{"45676546754":{"team":"red","name":"ertyurtyy","country":"US","stats":{"kills":0,"time":2154850,"deaths":1,"score":0,"damage_taken":300,"ping":8,"damage_dealt":0},"model":"grunt/sport"},"435676546754":{"team":"blue","name":"ertyutr","country":"US","stats":{"kills":18,"time":5904225,"deaths":0,"score":0,"damage_taken":0,"ping":8,"damage_dealt":5400},"model":"xaero/default"}}
 
That's impossible.
 
?
 
\o cbg
 
user6845426
1:21 PM
o/
 
@neoDev I didn't say print(data) I said print(type(data))
 
sorry sec
<class 'str'>
 
Thankyou
So you need to evaluate that string and then you will have a proper Python object. You can do that like this:
import ast
data = ast.literal_eval(data)
And then the code I posted before will should work correctly.
 
strange, in the examples I've seen before nobody were using any eval to iterate trough the json response
why do I need it in my case?
 
@neoDev, did you actually use the json() method of a response after all?
 
1:28 PM
I tried use both
data = r.json()
and
data = json.loads(r.text)
 
@neoDev Sure. You shouldn't need to do that. But it looks like the server is sending you the JSON data in a weird way.
 
they return identical response
@PM2Ring this is how I am sending it from the server:
 
A-hha!
 
Hey
 
Didn't think you had control over the server
 
1:30 PM
@IljaEverilä do you got it?
res.json(data);
 
No no, just that I didn't think you were in control of the server as well.
 
it is express through node.js
 
@neoDev Like Ilja, I didn't realise that you had control over the server. So you need to fix stuff on the server side.
 
@PM2Ring Why literal_eval() btw? I mean would double JSON decoding not work as well?
If the issue really is having a JSON response containing a string of encoded JSON :P
 
@neoDev Unfortunately, I don't know node.js, so I can't help with debugging that. And it's not really on-topic for this room. But someone here may have a suggestion. ;)
 
user6845426
1:33 PM
Guys I have a 2 tuples list (13, 243, 434, 43434) which contains y coordinates. I loop through the list using: for start, finish in enumerate(list):` and then use opencv to draw rectangles around my regions which works great. I then use glyph = small[y:start+height, x:0+cols] to get the data within that region of image and append it to another list called roi.
 
user6845426
But when I try and loop through roi and write each region to a file, instead of appending just the 1 region, each image just appends the next region to the existing image?
 
@neoDev And again, what is data?
 
sec
 
@dipper what is small?
 
user6845426
an image
 
1:35 PM
@IljaEverilä Good point. Yes, you can do data = json.loads(data). ANd that's probably better style than using ast.literal_eval; OTOH, I suspect that ast.literal_eval is faster.
 
follow up question where are you populating y,x,height,cols?
 
{"3245675467":{"team":"red","name":"Carl","country":"US","stats":{"kills":0,"time":2154850,"deaths":1,"score":0,"damage_taken":300,"ping":8,"damage_dealt":0},"model":"grunt/sport"},"4356754665":{"team":"blue","name":"John","country":"US","stats":{"kills":18,"time":5904225,"deaths":0,"score":0,"damage_taken":0,"ping":8,"damage_dealt":5400},"model":"xaero/default"}}
(logged just before send the response)
 
And if you log console.log(typeof data) just before res.json(data)?
 
string
 
There you have it
 
user6845426
1:38 PM
@MooingRawr 2 secs I'll just make a quick gist before I explain :)
 
You're sending a string, containing encoded JSON, encoded as JSON.
 
Btw should've known from that log already. A plain Javascript object would produce { team: ... for example. Note the missing quotes.
 
so what should I do?
 
Depends. Why is it encoded as JSON prematurely, and where? Where is the data from, originally? You should fix the source.
 
1:42 PM
I decided to do it intentionally for feelings... was just a choise
 
user6845426
oh, I just got told what i'd done wrong
 
user6845426
I was setting y = 0
 
so I do not have to encode it?
 
Code and feelings don't mix. Read documentation and follow the instructions.
For example res.json() has this to say: "Sends a JSON response. This method sends a response (with the correct content-type) that is the parameter converted to a JSON string using JSON.stringify()."
 
@dipper and this is why we dislike fragmentation of a discussion, but glad you found your answer
 
1:45 PM
so I have to send JSON with indentation
right?
 
No. You have to pass res.json() any type / object that can be converted to JSON.
It does the conversion for you.
 
infact I am doing it like this
 
> The parameter can be any JSON type, including object, array, string, Boolean, or number, and you can also use it to convert other values to JSON, such as null, and undefined (although these are technically not valid JSON).
 
I am able to parse it doing JSON.parse(data) in javascript
 
Btw that's a bit badly worded imo, since there's no such thing as a JSON type.
 
1:47 PM
but in python is different
 
Just pass the object without encoding it first.
 
pass into res.json you mean?
 
Sigh. The perils of CTO-ship:

Can we please ensure that there is a single canonical source for important information?

.../wiki/display/BMLL/Development+Environment
.../wiki/display/BMLL/Create+a+development+Environment
.../wiki/display/BMLL/Notes+on+Creating+a+Development+Environment
.../wiki/display/BMLL/Development+Requirements
.../wiki/display/Parsers/Setting+up+a+development+Environment

Some time ago I removed the content from all but the first of the above documents, since when yet another was created, whose content I have also removed.
 
<class 'dict'>
:)?
 
1:50 PM
That seems a lot better.
 
user6845426
@MooingRawr sorry, but thats for offering your help anyway :)
 
And now I've just had to tell a developer off for using the wrong template in a release document for the their release running. Going for a little walk to cool off
 
so in python I cannot parse it if is a string?
maybe because it cannot understand the javascript encoding?
 
@neoDev I just showed you two different ways to decode it in Python if it's been doubly-encoded. But you shouldn't doubly-encode it in the first place!
 
thank you guys for help, I really appreciate this :)
 
1:59 PM
jabbascript is everywhere
 
2:13 PM
cbg! I'm new to Django, would like to know how useful it is in my scenario. I am making a DOM-based HTML5 game, also using CreateJS. I would like to add login-logout kind of facilities and more to this game using Python. Is python+Django a good combo to do so?
 
@Grimlock Is it a one-page website? You may have to rely completely on APIs?
 
Yes, one page website, Users can login, play, store score, logout.
 
Django maybe good, but you'll have to find a library for the APIs, or write your own stuff as APIs instead of the standard Django views.
@Grimlock I wouldn't recommend it if you are new to Django AND the logins are the only thing you need. There are other simpler frameworks out there that can do the same.
It might take slightly more time to pick up on Django.
 
2:37 PM
Feedback requested: am I wrong here to ask people to not just code dump and example/answer OP's question. After OP asked questions about his answer the answeree edited his answer. Or is this a case where ego are oversized? stackoverflow.com/questions/43070686/…
 
@AshishNitinPatil okay, thanks! The game is like this makzan.net/html5-games/isometric-city, want to manipulate it using Python, what do you recommend?
 
I would really appreciate if someone could look into my comment in this answer stackoverflow.com/a/30575879/1379826
 
@Sosi if you have a new question, post a new question
 
DSM
Yeah, nobody's going to see a comment an ancient question except people directly attached, who aren't under an obligation to answer variants of the question in perpetuity..
And morning cabbage for all.
 
@Sosi Just reference the answer you linked, in your question and ask your new question with a MCVE
\o CBG DSM important game tonight :D
 
2:43 PM
ok guys, I'll do that
 
@davidism how was your weekend? and also, did you get motion sickness or headache for playing Nier for an extended period of time? (4+ hour)
 
@MooingRawr it was a lot of fun, but I was super tired this morning, my schedule was so off. :-)
I didn't get motion sickness, but more than one npc will ask if you do and tell you how to fix it.
You can mess with all the camera settings.
 
What's the standard error to raise when you have a "bad combinations of arguments" (IE every argument is optional, but certain combinations of argument giving are impossible)
 
@paul23 In that situation I tend to subclass ValueError and call it ArgError.
 
user6845426
I've used vertical projection to split lines of text... would you guys say its more efficient to use horizontal projection to then split words from lines or just thicken/blur characters and use contouring?
 
user6845426
2:52 PM
Just looking for opinions :)
 
@davidism Oh that's nice, good luck fixing your schedule. not many people I've talk to had motion sickness, just was curious.
 
@PM2Ring There's no default for that? too bad :(
 
@paul23 Assuming by "impossible" you mean that it's possible for them to arise due to bad user input but they don't make sense. OTOH, if it should be literally impossible for that bad combo of args to arise no matter what the external data is, then that's a flaw in the program logic, so you should use AssertionError for that.
@paul23 No, there isn't. But you are encouraged to define your own exceptions. Of course, if you consider the args to be a tuple, then you can consider it to be a ValueError of the tuple as a whole. :)
 
Well nah, it's something indeed that could rise from bad "user input" (file which a user shouldn't touch but we don't know that). It's a function that tries to "make the input complete given semi-logical inputs", and hence accepts (name, version, number, etc) - if all/too many are "None" there's nothing it can do.
 
Yeah, that's a situation for ValueError / ArgError.
 
3:10 PM
@MooingRawr , here is my question: stackoverflow.com/questions/43073254/…
thanks in advance! :)
 
I know nothing about that topic, so you don't have to thank me.
Also, please stop pinging people just to post your recent question, both of those things are discouraged in our room rules.
 
stackoverflow.com/questions/43022298/… Not sure if I should accept this answer.. As it's still a "non answer", but it seems there "is" no answer. (Yet it isn't a bug either I think?)
 
stackoverflow.com/q/43073282 too broad / recommendation
 
Hey guys, can anybody help me with Heroku + Python(Flask) ... I just want to know that is it possible to deploy some code on Heroku which will run like 2 - 3 hours to scrape data and keep storing it in database ?
 
Probably not on Heroku since the instances don't stay up when not accessed.
 
3:18 PM
Um ... So I guess scrapingHub will be the better choice
Thanks for the help :)
 
rb folks
 
3:36 PM
@paul23 I don't use Beautiful Soup, but I assume that different parsers give different results because they make different assumptions when you don't supply a doctype declaration.
 
@PM2Ring Actually that's not the case - I tried with specific doctype declaration (html4). html.parser just never "gives" a <br> close tag confirmation, and hence beatifull soup just closes all tags at the very end. - While lxml/html5lib see <br> as "self closing" and thus give a direct "open br -> close tag" information to bs.
The problem however, is that the above it's valid HTML(4), for which BS states "different parsers shouldn't give different results", yet the end result is different.
Guess that's a "bug" in beautifulsoup?
 
I'd prefer to regard it as a bug in HTML
 
-.-
 
Also, there are differences in design philosophy. BS is designed to be very forgiving of sloppy or broken HTML, so it will do its best to make sense of whatever you feed it. Whereas lxml is designed to be fast, but it expects to be fed well-formed data, and doesn't cope well with anomalies. But in either case, you make it easier on the parser if you can explicitly tell it what kind of data you're feeding it.
 
3:48 PM
TFW you realize it's only Tuesday :\
 
@paul23 Ah, OK.
I'm on my phone so I'm a bit slow.
 
Noticed :P
 
@paul23 This answer would seem to indicate that only the XHTML 1.0 Transitional standard required a closure for the <br> tag
Look out, here comes @Kevin
 
Yo
 
cbg
 
3:51 PM
I've been in the C# room all morning trying to track down a most frustrating bug
 
Ah so that's the reason there's no starred kevin post today
 
Four hours of labor has led me to the conclusion "dlls are involved, probably"
 
Sounds like quite the dll pickle
 
Whenever I spend a day fighting with malformed configuration files or whatever instead of actually writing code, it lends credence to my theory that I'm dead and in purgatory, cleansing my soul of its impurities through tasks that are a twisted mockery of my passion
 
@paul23 BS is popular, and tolerant. But that doesn't mean that it's flawless . :)
 
3:54 PM
ok weirdest issue ever. has anyone used requests_mock before? some colleagues are experiencing issues where... in a test, if they turn wifi off it passes the test, but if they don't it seems to be borked
 
@Kevin Oh that reminds me of when I came in one morning and there were errors everywhere, after looking around I couldn't spot the issue. The solution? compile-recompile about 10-20 times, generate the proper dll files and it works again :\
 
I can't figure out how to repro on my machine, either, which is a pain to investigate
 
@MooingRawr wat
 
Yep I've been in that situation before
Repeatedly
 
3:56 PM
not to you enderland sorry :D
 
Just gotta keep pushing this boulder up the mountain
 
@enderland is your request going through your network when wifi is on ? your problem is still very broad imo
 
@MooingRawr no, requests_mock is supposed to stop that
which is why it's more fubared
 
and I know it's suppose to do that, but are you sure it's not going through the network is my question. did you set it up properly etc ?either way, sorry but I'm just shooting out general suggestions, :\
 
cbg
 
3:58 PM
@MarcusS cbg \o long time no see how goes it
 
@MooingRawr yeah. it works as expected for me locally and in our CI process as well as a few other devs locally
 
s'all good
 
@PM2Ring I guess, it's just strange that such a problem with an often-used-tag has never been reported before.
 
I miss your math knowledge drops :\
@enderland welp, sounds like a headache so I'ma just step away :D
 
@MooingRawr story of my life today lol
 
wim
4:08 PM
titillating note for python 3.6 there. although, it could just be that debugging was 40x slower to begin with ...
 
40x?!?!?!?
 
PyCharm busting out the kaioken
 
DSM
I once left an O(N^2) testing code in production. Removing it led to a considerable speedup..
 
The most important fix in there is that it no longer uses the flask.ext. prefix when importing Flask extensions.
 
DSM
;-)
 
4:12 PM
The debugger has cython speedups, although that might have been in 2016. Maybe they just got even faster.
 
wim
native docker for macOS is interesting for me, as is PYthon/JS testing. very juicy update here!
checking to see if the abysmal coverage performance is sped up ...
 
4:31 PM
cbg
 
\o cbg
 
user6845426
4:51 PM
cbg
 
cbg
 
user6845426
hows it going :)
 
tired, thanks
need coffee
 
user6845426
I need sleep
 
user6845426
but im learning tkinter :)
 
5:01 PM
The most important thing to remember about tkinter is that time.sleep will never do what you want it to do
So many newbies come into Tkinter thinking that procedural programming is the only kind that exists, and struggle to understand the event-based paradigm necessary to do anything interesting with the framework
 
user6845426
im just trying to make a very basic UI for my project. buttons to upload files etc
 
As long as you don't need any "... And then one second later, I want X to happen" behavior, you're probably good
 
user6845426
thanks for the tip anyway ;) can I ask your opinion on something?
 
Certainly it is possible
 
user6845426
I've used vertical projection to seperate lines of text in a document. I'm trying to figure out an efficient approach to seperating words from these lines. I think it'll be a little more tricky to use horizontal projection because not only are there spaces in words but also spaces in characters
 
5:09 PM
I don't find event-based things difficult, but then again I've seen some basic gui things before
if I were a clueless noob, especially one who doesn't even know python, it would probably be different
 
user6845426
I'm that noob :/
 
I didn't mean you, sorry:D
 
user6845426
I boss slither.io though, all cool
 
user6845426
;)
 
What's the SOP for non-English posts? I CV'd as unclear. I think it's in Turkish or something like that. stackoverflow.com/questions/43075657/…
 
5:11 PM
I'm glad you've found your place in the world :P
@PM2Ring "remove ASAP" :P
it's in English now
 
Ah, it's self-deleted
 
and yes, John Coleman seems right post-translation
 
user6845426
Yeh, my 1 true purpose.
 
DSM
@PM2Ring: I don't know about the Official Position (tm), but I CV as unclear on those rare occasions it occurs.
 
I'm 90% sure the Meta consensus is to close them.
 
5:17 PM
it's borderline OK to flag as garbage, so yes
definitely close, and delete
 
95
Q: How do I deal with non-English content?

Cool GuyWhat action should I take if I come across non-English content? Does the amount of non-English content make any difference? Return to FAQ index

> Questions written in non-English should be closed as unclear what you're asking.
0.42 quatloos to DSM
It seems sensible to close and not delete because while it isn't a good question, it can become a good question through an objective process, i.e. OP rewriting it in English
If it's been a long time and OP is showing no signs of doing the needful, however...
 
On the other hand foreign-language closed questions accumulate a number of downvotes that can't be recovered. If it's deleted, OP can vote to undelete once it's been edited into English.
 
If I adopted the general policy of "vote to delete questions in order to spare OP from downvotes", I'd run out of deletes real fast ;-)
 
well you should :PP
but this is a bit different: the foreign language can hide an otherwise perfectly formed and valid and interesting one-in-a-million question, which wouldn't otherwise deserve a flood of downvotes
you might say "OK so if it's that good, why didn't OP bother to ask in English?", and I'd go back to my coffee
 
In a perfect world, it would get closed but not downvoted, but I don't think we can expect everyone to behave themselves in reality
 
5:26 PM
no, I'd downvote it
if I can't read it in English, it's not useful
nor clear
the thing is that it deserves every downvote as long as it's in Foreignese
 
Ok. In a perfect world, it would get closed and downvoted, and when OP edited it into english, every single downvoter would undo their downvote.
 
Agreed.
 
user6845426
Ah, I've figured out how to do my segmentation
 
user6845426
someone give me a gold star!!!
 
I'm hoarding my stars because I need them to sustain my life force
 
user6845426
y does my star have pimples
 
Real stars have sunspots, don't let the airbrushed models in mainstream media fool you
 
those are freckles, you sillies
one of those fabled red-head giant stars
 
user6845426
err spotty stars.
 
5:55 PM
sed's escaping syntax drives me nuts
 
Sed's Escaping Syntax. Level 3 Transmutation spell. Physical components: one satchel of powdered backslashes.
 
what do I have to roll to instant learn this spell?
 
I guess it wouldn't be too hard if I wasn't also using vim and grep and awk too and I'm fairly certain that none of these share the exact same escaping syntax
 
21, but you can add your knowledge (programming) modifier. And, if using the Pythonaut prestige class, you can also add Animal Husbandry.
5
 
agreed
 

« first day (2355 days earlier)      last day (2578 days later) »