« first day (2672 days earlier)      last day (2274 days later) » 
01:00 - 20:0020:00 - 00:00

1:45 AM
Anyone who is good with Scrapy willing to offer some guidance? Posted a few questions about abs/rel file paths and files pipelines but haven't gotten any bites!
 
 
2 hours later…
3:54 AM
@RashawnDoyley: don't ask for help with newly-posted questions in this room, please sopython.com/chatroom
 
 
3 hours later…
6:39 AM
Hi Everyone, anybody did the Python MIT 6001 course? If so did you find it useful in your career afterwards?
 
 
1 hour later…
7:43 AM
cbg
 
7:57 AM
cbg ashish
 
cbg
 
9:01 AM
recbg
@ChameleonX basics of everything is useful, but then to really have a stellar career you must become an expert in something...
@ChameleonX a) it is a mit course, b) about general programming, c) using python 3.5, well, it could be worse ;)
 
9:27 AM
not-so-offtopic considering the music and the subtitles :P
 
How long is the chat safed in the record before trashed?
I am talking about this stackoverflow chat.
 
noice video
 
@SebastianNielsen all chat messages are kept indefinitely and are visible to everyone (maybe unless a moderator deletes a message/nukes a room)
 
9:55 AM
@vaultah Or someone nukes all StackOverflow databases & backups :-p
 
10:18 AM
@SebastianNielsen everyone will now and forever see whatever you've said here and connect it with your real name if you gave one.
even after deletion, the @SebastianNielsen pings will ensure that the anonymized username can be identified...
 
11:18 AM
Hi all
could someone recommand me a good progranm tu use for LATex on macOS?
i use Texshop now and but i dont like it
 
Cabbage
 
im looking for something similar to TEXnic Center of Windows.
unfortunately TEXnic Center is not compatible with macOS
 
@AhmyOhlin Hi, it might be quite difficult to get that recommendation here, since this is the Python room and your question is off-topic.
 
I can recommend TexMaker. Had the least problems with it, and it's cross platform.
 
11:22 AM
I used Sublime Text and a build process to have the preview side by side… *rolls eyes*
 
i will try TexMaker. Thank you
it looks easy to use and elegent
 
cbg
 
11:45 AM
I'm having forum, the forum thread and reply content are stored in the DB as markdown text. While Saving i need to convert HTML to Markdown text by html2text and While retrieving Convert the Markdown text to HTML by Mistune. For that parsing i'm using two package. Is this better way orelse suggest some better solution
 
Why do you need to convert html to markdown?
 
@poke, Saving the HTML code in the DB is a good idea?
 
What is the actual input that users make in? Markdown or HTML?
 
I'm going to create forum like Stackoverflow, for that question and reply data. I was planned to convert and Save it in the DB. Is this good or bad idea?
 
@sakthiselvam You need to store user input in the database, the standard transformations can be made on the frontend.
ideally...
 
11:55 AM
@sakthiselvam That’s not an answer to my question.
 
@AshishNitinPatil, Can you explain it clearly.
@poke , I'm explaining my requirement clearly
 
And you are ignoring my question clearly as well.
 
Well, poke asked you what you get as user input, markdown or HTML, because the input should be stored in the database. If you are transforming that input (markdown to HTML) for representation purposes, then you can do it on the frontend.
 
@poke the user input will be question thread and solution content, Same in the Stackoverflow
 
9 mins ago, by poke
What is the actual input that users make in? Markdown or HTML?
Last chance before I choose to ignore the conversation.
 
12:03 PM
@poke User will enter the plain text, front-end it will be converted to HTML and in the backend i will the convert the HTML to markdown for storing purpose
 
@sakthiselvam Then ask your frontend to not convert it to HTML when it sends the input to backend.
And then store that plain text.
 
@AshishNitinPatil, can you tell me how forum question and reply formatted data(i.e bold, italic, code) are saved in the DB.
 
@sakthiselvam What do you mean by how? How were you going to store HTML / markdown in the database? It's just long text, so whatever appropriate field is applicable for that in whatever backend you are using should do the job.
 
garlic
 
@AshishNitinPatil , i'm just asking how it works. One more thing is it good save the html code DB ?
 
There's nothing inherently wrong with saving HTML in a DB, but it's better to store the user input in a more readable/useful format. What if you ever redesign your HTML? All the HTML stored in your database will be outdated. You don't have that problem if you store the user input as-is, and convert it to HTML when you need it.
 
Rawing'd Aran-Fey'd
wait, did I get it wrong? Did I forget your original username? :|
 
no, that was it
 
Nope, you got it right :)
 
12:18 PM
ah thanks, I got confused with MooingRawr :-p
@Aran-Fey you can do counter += 1 now
 
:D
it's at 1.5 now.
*shakes fist at Andras for increasing the counter by 0.5 with his joke/pretense*
 
@Aran-Fey , thanks
One more questions, how stackoverflow saves the formatted question and solution Data to DB?
 
I don't think anyone here knows how SO does that
 
@Aran-Fey ok
 
We can help you with this much: api.stackexchange.com and data.stackexchange.com/help . Otherwise the problem is completely irrelevant to us.
 
12:31 PM
@AndrasDeak oh, didn't realize this was off-topic
 
@AndrasDeak <= @AshishNitinPatil you should have...
 
"How is SO implemented?" is. And anyway I'm biased by the user's recent history
 
@AnttiHaapala My bad :/
 
Can I distract y'all with a beautiful song from a beautiful game?
 
12:34 PM
well, Being a good sport > being on topic
 
They have already forfeited the game
 
hah! Can't lose if we aren't playing!
 
1:07 PM
OK, I finally got myself to do the pluralsight test, and it seems fair
most of the things I messed up I know I don't know
 
1:24 PM
@Andras I’m not happy with it.
The timing is really arbitrary and some questions are really written in a very confusing way.
 
I clicked on the test and it asked for my email, full legal name, and country of residence. I do not think I will be taking the test.
 
heh, that’s fair
The meta post with that guy becoming a SQL expert just by googling also helps justifying that you don’t need such a test
 
@poke One even had a typo D=
 
1:52 PM
@poke that's true, and the googling bit is obvious. But my use case is getting a rough feedback of any kind.
 
Well… I’m in the 1% percentile for Python, and I’m really annoyed at myself for getting distracted during one question and for not being able to decipher what one question meant in time… >_<
 
Cabbage
We should have a canonical for stackoverflow.com/questions/48686886/… but I can't find one in our common questions, or by Googling. We do have a canonical for the similar problem where the sublists are created by multiplication, and I can find other similar questions via Google, but not one where the sublists are created by modifying a list and appending it in a loop.
 
@poke 99 you mean? :)
 
@AndrasDeak Not sure from what side you name it… >_<
 
@poke from the bottom
 
1:57 PM
Then I guess, yeah
 
I messed up 3 or 4 questions and it told me I'm in the 98th percentile, so you shouldn't take the test very seriously to begin with :D
well, 99th percentile vs top 1%
 
Doesn’t stop me from being unsatisfied with the result >_<
 
sure, I get it
I only took it now because I was worried I'd score too badly, and even though I'm not a dev my pride wouldn't have taken it well :D
 
I wish the dev story wouldn’t show the actual score in points but just the level
 
My work project has an unusual bug: whatever page you're on, the url bar shows the address of whatever page you were on before this page.
If you're on main.aspx and go to widgetView.aspx, then the url still shows main.aspx. Nobody has complained but it makes debugging unrelated problems harder because I don't know what page I'm on.
I'm not soliciting technical assistance here; I just think it's an interesting story.
 
2:10 PM
Every browser?
 
aspx. ouch.
 
Snakes everywhere
 
Grrr. That Cartesian product question now has 2 virtually identical answers that show how to do it properly via itertools.product but which totally ignore the OP's question as to why their algorithm didn't work. Fortunately, the OP accepted the answer that does have an explanation. And I still haven't found a good dupe target...
 
@poke Yeah. It's very likely a server-side problem.
 
@PM2Ring “but which totally ignore the OP's question” – To quote another user on that… *rolls eyes*
@poke Answers are not required to adhere to bad design restrictions posed by questions. Stating that they're bad and offering the better alternative is the preferred way to answer. As a 173k user, you should know better than to promote bad code. — jpmc26 Feb 4 at 20:51
 
2:15 PM
oh snap
 
@poke Well, sure, a good answer should show the better way to achieve the desired goal, but it should also explain why the OP's code doesn't do what they expect, since the same problem can arise in a lot of other contexts.
 
@PM2Ring Thank you for understanding me there.
 
They seem to have entirely misunderstood what you meant. :-/
 
Yeah, which is why I chose to simply ignore it *shrug*
 
If someone asks "I'm trying to do X with Y, but why isn't it working?" and you reply with "don't use Y here, use Z", then you have not answered the question
 
2:19 PM
It annoys me when answers just give a solution that promotes cargo-cult coding, especially when the OP has specifically asked for an explanation for why their code doesn't behave as expected.
 
But it seemed relevant here :P
This is basically the exact “How does X work in JavaScript – use jQuery” thing, just without jQuery.
 
@AndrasDeak what are you guys solving? Link?
 
@poke Commented.
 
2:26 PM
meeeeeeeh~ that’s not what I was trying to achieve here.. :& but thanks
 
Google has "trail view" backpacks that people walk around with.
A Google building opened up in San Diego, maybe this is one of the things they're doing.
 
“processing takes about 6 months”
 
I knew all the answers for the ones I got wrong (~4) :(
They should probably put a warning before they start the test that "answer options can be dubious".
 
I can't figure out how to see which trails have this though.
 
To solve this problem I may have to ask a question in the C# room that will make them think I'm an idiot
 
@Aran-Fey Do you want to add a python tag, so we can hammer it?
 
@davidism I can't find a list either, but I did find the rental application form :D
 
@PM2Ring done
 
@PM2Ring done
 
I was slower by 7 seconds.
 
2:36 PM
Hammered
 
Thanks
 
I somehow managed to screw up more (+150%) this time :D (Pluralsight)
But 3 of the wrong answers taught me something this time
 
2:53 PM
I'm buying a rowing machine. Amazon says "gift wrap options available" and I kind of want to do it just to see how they manage it.
 
the concept 2 at least just comes in a box
 
Don't ruin my dreams.
 
dreams un-ruined
this is the best I could find in 30 seconds
I don't know why they wouldn't take the picture from the side
 
That's clearly a body, not a rowing machine.
Aww, sorry to disappoint, but Amazon was lying, it says "no gift wrap available" at checkout.
Unfortunately the Twitter version of this post has already taken off. I may have to wrap the thing once it arrives just to keep the facade up.
 
In the future, 3d printers will be able to extrude wood pulp and cure it in-place so that you can cover objects in paper even if they're not topologically equivalent to a flat plane.
 
Don't wasps do that already, or hornets? Freaky wood-in-a-spray-can bugs.
 
I feel sorry for that OP. Even if he had enough rep for chat, I guess such a discussion is rather off-topic for this room, since he's light-years away from writing actual code. But maybe there's another chat room somewhere on Stack Exchange where he could have the necessary discussion.
 
In the future, 3d printers will be swarms of vomiting robotic nanowasps
 
cbg....
someone just yelled in my office "and it couldn't even passed a syntax check"... I wonder what's the story behind that
 
3:15 PM
@PM2Ring possibly software engineering chat
 
Syntax error: expected present tense "pass", got "passed" instead on SmarmyCoworkerComment, line 1
 
I hate paper wasps. Australian wasps make mud nests, and are much less aggressive than the yamming European paper wasps that somehow got imported here.
 
@Kevin technically, that's an infinite form, not present.
 
morning cbg
 
Syntax error: expected "infinite", got "present", on kevinsSmarmyComment, line 1
 
3:19 PM
Yet Another Stupid Recursion Exercise: stackoverflow.com/questions/48688763/…
 
being smug on the internet is still the best i got out of my linguistics degree
 
I think I was out sick on the day they taught the names of tenses in school. I don't know anything but past, present, future.
 
which, honestly, is pretty great
 
I refuse to acknowledge that "pluperfect" is a word. You can't just add plu to words and expect the result to also be a word.
 
DRP
Hi Experts, kindly assist with following doubt. On the code below, i'm having trouble wrapping my head around the working of this function in the for loop.
1 #! /usr/bin/python3
2
3 def countdown():
4
5 a=5
6 while a>0:
7 yield a
8 a-=1
9
10 for i in countdown:
11 print(i)
my background is vanila js
 
3:21 PM
@Kevin Seems like you've been had.
 
I only just barely get that joke.
 
DRP
what is troublesome for me is how does the for understand that the variable i is in fact a
variable a
The function acts naturally and yields the value, so why have a for?
 
do you understand what yield does?
 
DRP
this is an excercise from sololearn tut
 
Because it yields more than one value, and you want to call print on every value
 
DRP
3:23 PM
ges its a generator
yes*
hmmm thinking
 
do you understand what a generator does?
 
You say "Why have a for?", but if you deleted every line that references a from countdown, then there wouldn't be any lines left.
 
@Kevin I think the question is "why have a for-loop"
 
DRP
@Aran-Fey ok that makes sense, so just to wrap a bit more that idea
why would the print need a variable
 
how else should it know what it has to print?
 
DRP
3:25 PM
its like, how does it interpret that the value being yielded isgoing to be represented by the i variable
 
I want to believe that the question is actually "is it really necessary to have a variable a here when I could just as easily do yield from range(5, 0, -1)?" But somehow I doubt that's the case
 
DRP
couldnt it just be print
 
Because that's the way the code is written.
The code isn't a particularly good demonstration of generators.
 
DRP
@Kevin very close
 
@DRP Because that's how for loops work on generators: in every iteration it takes the yielded value and assigns it to your variable name.
 
DRP
3:26 PM
@davidism yeah for sure
 
"I found this one random example, I am now going to take it as gospel that this is The One Way to do things."
 
well, do you understand this code?
for i in [5, 4, 3, 2, 1, 0]:
    print(i)
 
Why not play around with it and discover if the loop or print is necessary?
Python has an interactive interpreter.
 
DRP
@davidism no no dont take me wrong, that is a tut page not a gospel :)
 
Hi, anyone here familiar enough with pandas/xarray to suggest what I should do to extend a particular functionality?
 
DRP
3:27 PM
however sometimes even though i do the testing and the outcomes make sense, its the underlying logic that gives me the thinking
@ArneRecknagel yes, the i variable will act as an index number, it will start at 0 and go over the list you have provided, so number 5 will be index 0, 4 will be index 1 and so worth
 
It defines a generator function that yields 5 values. It loops over those values and prints each out.
It works exactly how it reads.
 
@DRP no, it won't it will actually be a direct copy of the values in the array. so, in sequence, 5, 4, 3, 2, 1, 0. Pyhton loops are by default for-each loops, not index loops
 
DRP
thinking..
@davidism i think i see what you mean, its a bad example, but following the code as it reads its like saying that for the function part yield a number untill the while finishes, now how do we print each yielded number, it has to be invoked several times, and for this a for/in is needed
@ArneRecknagel yes very good point, im still wrapping my head over this details
Thanks Arne Recknagel and Davidism, it is clear now. Cheers!
 
happy to help!
 
Nobody familiar with pandas/xarray?
 
3:38 PM
Hello Anatoly.
You can read the room rules here sopython.com/chatroom
You can just ask your question, and if there are any interested and/or knowledgeable people around to answer, they will. 😀
FTR I don't know either of those
what are the left and right columns here: stackoverflow.com/tags/python/topusers
 
do you mean score / answers provided ?
 
ooooooh. of course!
lol
thanks......hehe
 
I'm trying to figure out how I fit in there, because I see my name, but then when not logged in I don't. So I don't know why I see my name, or what the context is of why my name is there
...because I'm pretty sure I am not in the top all time user list
 
@idjaw btw you can hover over it and it tells you FWIW :D
I learnt that SO likes to hide information in the hoverbox a while back... :\
 
3:45 PM
It shows the top 20, plus 'you'.
the first time i went to that page I was swept off my feet, "how did I make it into the list?! .. oh, that's why."
 
right yeah. I wonder if I can see where exactly I am
 
13.8k 2.1k - DSM
168 127 - MooingRawr
Wait are you telling me I'm not the 21th?!?!?! behind DSM? /s
 
In my heart, you'll always be the 21st behind DSM
 
Nah you can be the 21th, I wanna be 99 :D
 
Fine. I'll take 94
 
3:52 PM
idjaw I just finally clicked on your profile and looked at where you work =O
@idjaw I'm sure you can find out using the SE's query database...
 
@MooingRawr :)
 
Neat!
 
it now make sense why you are where you are... things are clicking together :D
 
geographically?
I was here much longer. So, it was just a nice convenience that it happened to be in the same place I am from. 😀
 
Debugging character set encoding problems today ;_; of course I have no way of knowing if the character set my database uses is the same character set that prod uses
 
4:07 PM
-pat pat- it's okie... soon we will all use the same encoding.... or it might just be another encoding to the list
 
"Some day the war will be over thanks to the brave sacrifice of our soldiers" is of little comfort to the soldier
 
@idjaw Alright, I missed that section. Honestly just skimmed...
 
No worries!
 
I am doing data science-related stuff, and I want to add metadata to columns (as variables) and rows (training/validation/etc. sets) and be able to select groups easily syntactically (e.g. df.loc['train','exogenous']). I looked at subclassing MultiIndex, but that seems like a LOT of user code is needed to wrap around it.
I also looked at xarray and it seems much easier to subclass the Dataset object with "variables" support, but it is much less pleasant to work with indexing "rows" than with pandas.
This wouldn't really fit an SO question, just this design decision has been really annoying me.
End use is for a time series framework, by the way.
 
I definitely don't know any of that.
leaving that one to any of the data people here.
 
4:29 PM
My error is occurring probably because the user is entering a "special" character that can't be encoded in Windows-1252, or perhaps some other similar character encoding.
Our error reporting system can't identify the exact character, because it gets sanitized to a "?" in the stack trace, but it usually appears at the beginning of a sentence where things are being listed off. So the character might be a bullet point, or some kind of hyphen-like symbol. The user might be using a non-American keyboard. Are there any non-American keyboards that let you easily type hyphen-like symbols that are not actually hypens?
 
hebrew maqaf character?
#esoteric
 
@Kevin Maybe a en-dash or em-dash —
 
Could be. em dashes work in my environment but that doesn't tell me one way or another whether it's the culprit in production.
 
It's easy to do em-dash using a Compose key sequence. That's very common on *nix, but it's also available for Windows. And of course word processing software can magically promote chars, so you get fancy hyphens, smart quotes, etc.
 
Random question: Is it normal that writing 2 pages of documentation takes 4 hours, or am I just really really bad at it?
 
4:45 PM
@Aran-Fey That's really fast. It'd take me 2 days to get it to a state I'm happy with. :)
 
On second look, I see that em dash is representable in Windows 1252, so that at least explains why it works on my machine.
 
I've managed to procrastinate on the Flask docs for almost a year, so you're good.
 
When I intentionally try to insert a character sequence that definitely isn't in 1252, such as "ಠ_ಠ", it crashes, but not with the same error message and not on the same line as the stack trace from production
 
@PM2Ring I didn't say I'm happy with how it turned out ;)
Still, that's reassuring.
 
My best guess is that if the character isn't in 1252, it tries to make a reasonable conversion. There's no reasonable conversion for "ಠ_ಠ", so it crashes hard. Maybe whatever the user is typing does has a reasonable conversion, so the program gets a little farther along before some other component notices the discrepancy of "database has EM_DASH, application has SUPER_FANCY_UNICODE_DASH"
 
4:49 PM
@Kevin Ok, but that's a pretty weird char. Try something European with a smaller codepoint that's not in cp1252, and see what error message you get, eg ā, which is chr(257)
 
Hmm, good idea. 1252 has a number of "a with a squiggle on top" characters, but they don't have the same byte value as their unicode-encoded equivalents I think
Ok... "foo ā bar" gets saved in the database as "foo a bar". Even if I modify the db directly. So Oracle does do "reasonable conversion".
 
Guido give me the strength to not down-vote Ajax... stackoverflow.com/questions/48690127/…
 
In python, is array[-1] constant time?
 
Yeah.
 
Awesome, thanks!
 
5:02 PM
I'm going to go with yes as well, because your_list[x] where x is any integer will cost O(1)
 
wiki.python.org/moin/TimeComplexity lists both "get item" and "get length" as O(1), so seq[-1], which is equivalent to seq[len(seq)-1], should also be O(1)
 
so I would think any is also < 0
 
@PM2Ring Your answer links to the 3.3 documentation :D
 
Actually, hmm, that table is for lists, not arrays. Is array an array or a list?
A lot of people name their lists array because they don't know that arrays and lists are different things in Python
 
^^ I'm going to assume in this particular example array == list
 
5:03 PM
@Aran-Fey Oops! Blame Google. :)
 
but, yes. Important to make that distinction
 
If you're thinking "I don't know if array is an array or a list, I just did array = [1,2,3]", then it's a list. You're not using arrays unless you imported from the array module.
 
BTW, I wasn't actually fishing for votes, but thanks!
 
This is all kind of besides the point because I strongly suspect that the behavior is also O(1) for arrays.
 
@PM2Ring I know. I didn't think Ajax's answer was bad enough to warrant a downvote, but yours definitely warranted an upvote.
 
5:05 PM
Ta
 
If anything, array indexing is faster than list indexing because Python can store the objects directly instead of storing references to them
 
Ajax's code is ok, but does have a pointless explicit double loop, and it doesn't actually explain what's wrong with the OP's code, even though the OP specifically asked for that info. But as we all know, Ajax is a perennial offender at doing that sort of thing.
@Kevin Sadly, array module arrays generally aren't noticeably faster than lists, but they do tend to be a lot more compact.
 
To be fair, the whole idea of asking "what's wrong with my code" on a site like SO doesn't make a whole lot of sense. How's anyone else ever going to benefit from that question and its answers? So it kind of makes sense to interpret the question as "how do I do this correctly?" and write an answer about that.
 
IIRC, when I tried to optimize a prime sieve by using arrays instead of lists it ended up being slower, because list slice assignment is very efficient.
@Aran-Fey I see what you mean, but IMHO it depends on the kind of error in the code. If it's due to faulty logic in implementing some algorithm, then sure, it's unlikely to be very helpful to future readers, since they probably won't find the question even if they're trying to implement the same (or similar) algorithm.
OTOH, if the error is due to misunderstanding some fairly common language feature, eg the example I linked earlier of trying to build a list of lists by appending multiple references to the same sublist, then I think it's important to correct the OP's misunderstanding, and I believe there's a good chance that it can also help other readers.
 
5:24 PM
Makes sense. You never know how many people might find that question useful.
 
@PM2Ring Yeah I expect the difference is a single C-level dereference, which is like... One hard drive seek.
Or a cache lookup
 
Is a C-level dereference when someone puts the CEO of a company as a reference on their resume, so you call to make sure it's legit?
4
 
cbg Andras
That's really odd
I'd literally just come on here to see if you were around so I could ask you a question
And was trying to work out which Random avatar was yours.
 
Time for some salad music for the blues fans. Green Onions, Roy Buchanan.
 
6:31 PM
Cabbage!
For all those who are getting rain like in my country:
 
\o cbg it's frozen rain here :D
 
cbg
 
morning cabbage
 
frozen rain sucks
 
XD thesun.co.uk/news/2598682/… There were loads of snow warnings set up by the met office. We had one afternoon snow and otherwise it was liquid rain.
 
6:45 PM
@ArneRecknagel both wasps and hornets, but hornets are way better and way creepier when they're done
@Withnail cbg. Was that also directed at me? Pinging and asking the question might help in that case ;)
 
@Kevin so you want a paper covered donut?
 
@Kevin Sounds good although it might hurt if they get out of control. :p
 
@Code-Apprentice Yes although you can actually gift-wrap a donut with ordinary modern wrapping technology, if the wrapping material is stretchy at all
Because you can bend a rectangle and stitch the edges together and get a torus
So "topologically equivalent to the plane" is not wholly representative of the kinds of shapes you can wrap today
 
stitching violates the whole "topologically equivalent" theme
 
Indeed, my problem requirements did not match reality, where tape is available
 
6:52 PM
I was just trying to think of a surface which was not topologically equivalent to a plane
 
Let's not even get into the fact that you can also wrap rectangular prisms
 
true...which aren't planes
 
Solids in general aren't planes, come to think of it
 
 
only a mathematician calls a gift box a "rectangular prism" lol
just don't talk about exploding a plane at a point when you are at the airport
4
 
6:54 PM
@Kevin too many dimensions
 
just off by one
@Kevin so let's just go with the lateral sides
 
Careful opening your present, it's infinitely sharp
You thought that opening clamshell packages was dangerous, well you ain't seen nothing yet
 
7:07 PM
Good afternoon... Can somebody help me please? I have a problem with Flask and Windows Server.
I have a little app that let me upload a file and then copy that into a folder...
When I do that locally in windows server, it works...
But when I do that connnected from another computer to the server.... The file never load.
 
kinda hard to answer without, well, any details
I'd suggest taking a look at how to create a Minimal, Complete, and Verifiable example. And the chat rules while you're at it.
 
Yeah sorry, I was trying to access to pastebin... But here in my work is blocked.
Let me see how upload the code
 
Try gist.github
 
I'd like to emphasize the 'minimal' keyword
 
Thanks @AshishNitinPatil
This is the python code...
The html code is a simple form...
Like a said, inside the server, doing the test, it works perfectly... But when I connect to the server from another computer, the file doesn't copy.
 
7:18 PM
That f.save looks a bit suspicious to me... Shouldn't that raise a NameError?
 
Yeah, sorry, I changed the name f to file for better understanding.
But in here both are called f
 
you can edit gists
 
yeah, sorry, I edited it now.
 
7:42 PM
are opinion-type questions valid for chat? Such as which do you prefer using glob.glob or os.walk? I personally don't have any, but I'm asking for future reference
 
asking for a friend?
 
I use walk unless wildcards would be particularly useful
 
@MattR sure they are valid, but you might not like the answers (or lack of answers).
 
Opinion based questions are allowed, and in my experience usually generate more conversation than objective ones
 
@Kevin I'm not sure I agree about that
 
7:44 PM
@AndrasDeak and that's your opinion :D
 
Whether the conversation is of any substance other than "I like X" and "I like Y, myself" for two pages, is another matter ;-)
 
@Code-Apprentice, nope! in all seriousness just curious.
Thank you all, I appreciate it!
 
/gets the popcorn
 
Really? I didn't know I could ask for opinion-type questions. I might ask more often then. (hehehe)
 
preparing "so is your face" as a generic response
 
7:47 PM
Who doesn't like opinion type questions? runs away
 
I like opinionated questions because I like sitting on the fence, maybe
4
 
Ready to jump whichever side is more fun? :-p
 
I personally hate opinion based questions. I was just checking to see who were my friends....
jk
 
Chat is good for discussions of opinions, and similar stuff that's too open-ended for the main site.
 
This is my first message in here, so I better make it count
Oh, nevermind
 
Good enough.
 
As for walk vs glob, it depends what you're doing. But really, it's probably better to use pathlib.
 
@SavagePotato Cabbage, it not that bad. : )
How can I see what my first post here was? Go right through the transcript?
 
more or less
 
That sucks :(
 
01:00 - 20:0020:00 - 00:00

« first day (2672 days earlier)      last day (2274 days later) »