« first day (1656 days earlier)      last day (3306 days later) » 

2:00 PM
but, but, penup, pendown, how can't you love it
 
Whenever I see a post like "I want to construct a bar chart using turtle..." I know something has gone horribly wrong
 
To be fair if you go for that you might as well go the full distance.
 
It's an old shoe or glass bottle kind of question.
 
@BhargavRao Best response I've gotten on here. — SuperBiasedMan 13 secs ago
:D
 
I suppose so. But I've done worse: drawing graphs in a pixel grid defined as a list of lists, and saving the output as a PBM file. However, I'm pretty sure that
FuriousFoxxy just wants to draw an XY grid.
 
2:04 PM
Ohh - you've outdone me @fizzy
A graphing plane
 
That graph disgusts me on levels I didn't even know I had.
 
sorry - I'm going to stop being scurrilous now
 
@Kevin I might've mentioned here that there's a budding Python programmer on xkcd who knows how to do pygame stuff, but can't use any of the well-known proper GUI libraries available in Python. So he's building his own GUI library on top of pygame...
 
Google's finest - top page of images for both :)
 
@Kevin Good article. Unfortunately, his tone is too harsh--his advice won't be taken.
 
2:05 PM
@PM2Ring It's not impossible. Pygame has relatively robust bit blitting functionality.
Probably a hundred times slower than doing it in C++, but that goes without saying
 
@WayneConrad Some people like harsh - hence the popularity of things like "Learn Python The Hard Way".
 
Hey all, anyone know if Scrapy ever interferes with normal python builtin functions? I can't get replace() to work with it.
 
@WayneConrad Yeah, agreed. "You're presenting a false dichotomy" is insightful, but "stop working immediately until you're smarter" is as undiplomatic as you can get.
 
@Kevin Sure, and he's learning heaps in the process. It's kinda interesting to watch.
 
Rhubarb all!
Thanks @JonC, It's workin perfectly
 
2:08 PM
@PM2Ring I claim there's a difference between harshness you choose (I'm awesome because I'm doing it the hard way), and harshness that is thrust upon you unbidden (Oh, I'm not awesome after all)
 
user559633
pygame is why i went back to coding c++
 
@CharlesWatson as in, str.replace? I don't think so. Overwriting a method of a built in class is pretty dark magic.
 
user559633
[also various personality defects, but that's a known issue]
 
I want to say "it's actually impossible" but I'm not entirely sure
 
I must be messing up something else. Thanks Kevin
 
2:09 PM
Kay I got another dumb question. Does anyone know if you can assign variables into the console on runtime with javascript? As a means of debugging mostly
 
Aren't all variables available to the console?
 
user559633
@Ffisegydd what are you listening to for music today?
 
@CharlesWatson If the problem persists and if you can construct an MCVE, I'm sure many of us will be eager to dig deeper
 
@tristan nothing at the moment, got a recommendation?
 
user559633
@Ffisegydd was hoping you had suggestions.
 
2:11 PM
(not me personally though, since I don't have scrapy installed)
 
You and @davidism are some of my go-to music people.
 
user559633
I sometimes regret killing my 13 hour coding playlist on Spotify.
 
@Ffisegydd @davidism I've updated github.com/sopython/sopython-site/issues/36
 
@tristan you (I think?) once recommended zach-adams.com/2014/05/music-to-listen-to-while-coding to me
 
user559633
I don't believe that was me, but cheers :)
 
2:12 PM
Must have been someone from this room.
 
user559633
I believe that.
 
user559633
I'm going to start a social network only for people in southern california.
 
user559633
the SoCal Network (domain taken, no longer interested)
 
@Kevin I'm trying to replace –
Can I swap out unicode issues or is replace() the wrong idea?
 
@WayneConrad Fair call. Still, some people do respond well to the sergeant-major / boot-camp approach. I'm not one of those people. :)
 
2:14 PM
@Kevin I was simply trying str.replace("–", "-")
 
I'm going to start one for baiting postmodernists - The Sokal network.
 
user559633
I'm going to create one for absurdists "The Fishcomb Bubblegum Interpipes"
 
@CharlesWatson Seems like that would work, assuming str is the name of a string variable, and is not the actual built-in str type itself
(style tip: try to avoid overshadowing built-in names this way)
 
@tristan I would join that.
 
user559633
We type in fake Italian on Tuesdays!
 
2:18 PM
benne benne fratello mio
 
@Kevin yeah, it's actually item.replace()
 
:22997242 Perhaps you've made the common error of calling replace, but not assigning the result to anything. thing = "cat"; thing.replace("c", "b"); print(thing) will still print "cat". If you want "bat", you need thing = "cat"; thing = thing.replace("c", "b"); print(thing)
 
user559633
you needa to ascii encode the how-say variablues BENNISIMO
 
user559633
MAMMA MIA
 
user559633
on Fridays we put moustaches on stray dogs and take pictures!
 
2:20 PM
Moustaches? Romance languages? Pipes? You'll attract the steampunk crowd if you're not careful.
 
user559633
Oh god, site closed.
 
user559633
The fact that I don't own CheckRepublic.com is one of my saddest realities.
 
@CharlesWatson If you're trying to repair stuff like "–" it's likely that you're doing your Unicode handling wrong. Are you using Python 2 or Python 3?
 
@tristan When you're around, I don't even try to be strange. I can't compete with you. ;)
 
@Kevin 2.7
 
2:22 PM
re-cbg
 
@Wayne are you calling our MTFL strange!? How dare you :p
 
@Kevin I believe I'm running into an ASCII character issue
 
we just settle on plain out weird :p
 
@JonClements Middle Tennessee Football League?
 
user559633
Yes.
 
user559633
2:23 PM
Mostly Tomatoes for Luigi
 
user559633
'We've sold many domains each year since 1999 (Through dommarket.com) and we have had good history'
 
user559633
'We have had good history'
 
@Kevin my file is defined with # -*- coding: utf-8 -*-
But I get AttributeError: replace
 
user559633
'We have had good history! You make the trust! We no rip you off! Domain is good deal you buy, yes! Good friends.'
 
user559633
'F.A.Q

Q. Can I trust you?'
 
2:25 PM
@CharlesWatson: Can you show us a larger example input string, and what you're desired output would be?
 
@Kevin if I remove the utf-8 definition at the top, I get SyntaxError: Non-ASCII character
 
user559633
Not having huge hopes in not getting spammed from this company.
 
@CharlesWatson Sounds like item is not actually a string, then. Try print type(item) and see what it says.
@CharlesWatson Better keep the definition where it is.
 
@Kevin What I want "IRIDIUM – FLIGHT 1", what I get "Iridium – FLIGHT 1"
 
And the result of print type(item) is...?
 
2:27 PM
@CharlesWatson: # -*- coding: utf-8 -*- allows you to put Unicode characters in your Python script, but it has no effect on how that script actually processes Unicode data.
 
@Kevin I see.....
item is set to a class() which handles the parsed text string. So I'm not sure. ex:
item = SpacexItem()
 
Ok, so it's not too surprising that replace doesn't work on it, because it's not a string.
 
@Kevin it is what handles all of my selectors
 
So all you need to do now is modify your SpacexItem class so that it has a replace method.
 
@Kevin I have a for loop that appends all of the parsed text to a list. In the replace method, would I just set a for loop to iterate through the same list and replace the characters?
 
2:37 PM
is it possible to do something like this in threading:
t = threading.Thread(target=self.run(cmd, timeout=120))

Or do I have to define self.run(cmd, timeout=120) in a separate function ?
 
@Kevin
def non_ascii(parse):
for item in items:
item = item.replace("–", "-")
return items
@kevin indented
 
@CharlesWatson Very very hard to say without seeing the whole code. I'm going to guess "no"
 
@kevin haha ok
 
@HEADLESS_0NE t = threading.Thread(target=self.run, args=(cmd,), kwargs={'timeout': 120})
 
@vaultah args=(cmd,) the comma is required because otherwise it's not interpreted correctly? This is a tangent question. :)
 
2:41 PM
(thing,) is a tuple and (thing) is not. See also wiki.python.org/moin/TupleSyntax
 
@Kevin How's (thing) interpreted otherwise?
 
DSM
(morning cabbage) for all!
 
Most of the time, (thing) is identical to thing
Ex. if (a == b): has the same behavior as if a == b:
 
@Kevin Alright, makes sense. Thank you
@va
@vaultah Thanks for your response
 
The exceptions are the obvious ones, ex. len(x) and len x are not equivalent
 
2:43 PM
arhghgghgh... spec. changes
 
@CharlesWatson But you really shouldn't need to do that, unless you're working on some ancient system that can't store or display Unicode stuff properly.
 
I'm guessing in any ethical society it's still not okay to kill your client
 
DSM
What if by killing him you spare him great suffering? (The suffering you'd otherwise inflict.)
 
@PM2Ring It displays correctly notepad, but excel is where the non-ascii characters show up
 
user559633
Do we really live in an ethical society? I mean, dogs on average get paid 0% of what men get paid.
 
2:45 PM
@DSM That's a great point - just will borrow @MartijnPieters' Katana for a bit - do a bit of Kill Bill - what could go wrong
 
@PM2ring and oddly, if two words use a hyphen without any spaces, it shows up "John-Wayne" but not with space "John - Wayne"
 
To determine whether you're living in a utilitarian society where murder is occasionally legal, grab the nearest supreme court justice and ask them about the Trolley Problem.
 
I was going to say dogs don't go to work, but they do. I guess they're wage is measured differently - they're provided with care and housing (working dogs).
 
I'll stop annoying everyone with the animation now.
 
user559633
~~~ ninja vanish ~~~
 
DSM
2:47 PM
"do dogs get paid" was not something I expected to find myself googling today.
 
@DSM
 
guys, anybody knows if these conference rooms support s2s for ejabberd?
 
user559633
This is an incomplete list of famous dogs. == Actors == === Commercials === Axelrod, Basset Hound – appeared in commercials and print ads for Flying "A" Service Station advertisements in the 1960s. Cheeka, a Pug who appeared in the popular "You & I" advertising campaign of Hutch's cellular service in India, along with the child actor Jayaram. Gidget, a female Chihuahua, was featured in a Taco Bell advertising campaign as the "Taco Bell Chihuahua." She also played the role of Bruiser's mother in Legally Blonde 2. Honey Tree Evil Eye, a female Bull Terrier, was known as Spuds MacKenzie in her role...
 
user559633
this is the beeeest
 
Ahh I wanted to just accept the tag. @DSM yea, it's one of those things you don't really question until some smartass brings it up.
 
2:48 PM
@paus AFAIK, these chat rooms use a special unique protocol, and is compatible with precisely nothing.
 
DSM
Wow. Even without clicking, I can hear the theme song.
 
need to produce a new document of about 115 pages by nine
 
I've never seen the show, but I can imagine the theme song by extrapolating the genre and television era from the picture quality and text font.
A little bit Step by Step with a dash of John Denver
 
user559633
@Kevin Wow, this guy is an abrasive jerk that really gets off pretending he's some sort of enlightened coder. Child: "Daddy, how do I eat this big ice cream cone? It's too cold to bite and I can't drink it!" Alex: "You need to drop everything 'your' [SIC] doing right now and read a goddamn book on eating!!"
 
2:52 PM
head desk and sigh
 
user559633
And I'm the supposed MTFL saying that.
 
@JonClements That starts out almost like the theme song to Columbo.
 
@CharlesWatson That string, "IRIDIUM – FLIGHT 1" isn't plain ASCII - it's encoded using utf-8. In particular, that dash isn't an ASCII dash - it's a Unicode ndash, u'\u2013'. So you could convert it to a regular dash which is ASCII chr(45) == '\x2D', which in Unicode is u'\u002D'. But it'd probably be better to keep it how it is, and let Excel know that you're passing it a UTF-8 string, not an ASCII string. However, I don't know much about Excel, so I can't tell you how to do that.
@CharlesWatson: The weird chars you're seeing are because the string is being treated as a Windows-1252 string. I'll post a short demo in a moment.
 
DSM
An ex-girlfriend and I used to watch Columbo episodes in French. His rumpled charm works in any language.
 
@PM2Ring Your initial conversion method is probably best, because I will be emailing the file to others
 
2:57 PM
>>> s='IRIDIUM – FLIGHT 1'
>>> print s.decode('Windows-1252')
IRIDIUM – FLIGHT 1
>>> print s.decode('utf-8')
IRIDIUM – FLIGHT 1
>>> print repr(s)
'IRIDIUM \xe2\x80\x93 FLIGHT 1'
>>> print unicode(s, 'utf-8')
IRIDIUM – FLIGHT 1
>>> print repr(unicode(s, 'utf-8'))
u'IRIDIUM \u2013 FLIGHT 1'
 
Loved "The Littlest Hobo" when younger... great theme tune... one I like most though is:
 
@JonClements Why am I not surprised. :)
 
Oops. I almost forgot.
>>> print repr(s)
'IRIDIUM \xe2\x80\x93 FLIGHT 1'
 
cabbage
 
3:00 PM
@PM2Ring stop. using. python. 2.6. already. :D
 
@davidism cbg... think I found the problem adding users
 
@PM2Ring If the 'IRIDIUM - FLIGHT 1' is inside a list, can I do something along the lines of:
clean_up = items.decode('utf-8')
?
@PM2Ring because there are multiple with the same problem
 
Why did you never accept my answer - does it not do what you asked for? — Amoss 4 hours ago
:D:D
 
Yeah, I saw that. I knew generally what the problem was, I need to check if the user already exists when registering them.
 
I got 50 rep, but it wasnt from the exec/vs eval
it was from the damned "php messes with my python env"
even with the bounty all the upvotes go to the accepted answer
 
3:04 PM
@AnttiHaapala Um, CharlesWatson is using Python 2. But I knew you'd say the solution is to use Python 3. :)
 
Just got a silver badge for .
 
@davidism Congratulations!
 
Cool
 
600 more points to sweet sweet gold.
 
@PM2Ring of course it is :D
 
3:15 PM
@CharlesWatson: You should write a proper question on SO, preferably with some typical input & output data, as well as some code that shows how you're currently reading & writing these strings. Don't forget to add the and tags, and I guess an Excel tag, or at least mention Excel in the question's title.
 
I can never tell how much spaghetti to cook. With pasta like fussili or penne it's quite easy but spaghetti I always struggle.
 
@Ffisegydd you need to buy the ring... you know the round hole
 
Dude I'm not buying a piece of plastic with a hole in it specifically to measure spaghetti. I'll just have to bust out the scales and measure mass.
 
:P
that's your problem
Mr Physics
 
That's not a problem, that's a cure
 
3:18 PM
It'll be Dr Physics soon.
6
 
Dr No :D
 
And by the Lord when that days comes I'll make sure no one in this room will forget it. I'm thinking of changing the room topic.
 
or changing the room rules so that only doctors are allowed to speak
 
Me and DSM just talking about pandas? Sounds like an excellent show.
 
3:20 PM
And when corvid continues to be able to talk, we'll all be shocked to discover his Time Lord ancestry.
 
You could call it The Sad Pandas...
 
DSM
If davidism isn't going to let us watch him code, maybe listening to Ffisegydd and myself talk about pandas is a fallback plan.
 
Rʜᴜʙᴀʀʙ
 
@PM2Ring I'll do that now. Thanks
 
user559633
@Ffisegydd I'd listen and watch
 
user559633
3:26 PM
@Ffisegydd go by water displacement...
 
@DSM @Ffisegydd I better learn something about pandas besides "eats shoots and leaves"
 
user559633
They're also such crappy bears that they're trying to make themselves extinct.
 
They're bear wannabes
 
user559633
"RIP Pandas. Sorry you didn't want to do it with each other."
 
DSM
@davidism: We could combine the ideas. You could livestream learning pandas with us offering helpful suggestions! (I'm the one who sounds like he's from Minnesota.)
 
user559633
3:32 PM
"dear other bears: congrats on your choice in diet of foods that aren't nutritionally void"
 
I used to agree but I've now changed my opinion to "it's hard to get in the mood when you're in a tiny concrete room that's been painted to resemble your natural environment which no longer exists"
 
user559633
"dear evolution: you win xoxo, panda 'bears'"
 
Bonus difficulty points if there are a crowd of apes watching you through a plexiglass window
 
user559633
@Kevin I think movies exist in which people do it in fake schools, libraries, churches, etc. Humans don't seem to have such a problem.
 
DSM
@Kevin: works for humans. My college building was affectionately (?) called "the bunker", and people managed to find themselves in the mood, so to speak.
 
user559633
3:33 PM
@DSM Oh, you had a naughty office too?
 
user559633
I worked at a place in which everyone "in the know" would decline meetings in a specific room.
 
DSM
@tristan: this was undergrad, so I didn't have an office yet..
 
@tristan Dumb animals don't have the benefit of our species' power of imagination :-)
 
user559633
@DSM I didn't mean you specifically, but good work on what the rest of your sentence implies
 
user559633
And Kevin agrees that Pandas are dumb.
 
3:35 PM
@Kevin or so we assume ;)
 
user559633
RIP Pandas: Their downfall was a very specific fetish.
 
I was going to say "animals clearly have no imagination because only a human could find amusement in a blank cardboard box" but then I thought "oh wait, cats exist"
 
DSM
The bunker in question.
 
What a modernist disaster.
 
It's so... Brutal.
 
DSM
3:37 PM
It won awards.
 
@DSM Wow, you guys have nice bunkers
 
@DSM Awards for... what?
 
user559633
That's a cool looking building, but looks terrible to deal with on a daily basis.
 
It won the "most likely to win this award" award.
 
DSM
Took me years to realize that if you crossed the valley beside the college and looked at it from a mile away, the other side of it looks like a ziggurat. But you can't see the effect up close.
 
3:39 PM
It's as imaginative and inviting as a parking garage.
 
user559633
@WayneConrad Yeah, architects are dicks. I forgot what it comes from, but there's some joke about "architect: this building represents the oppression of modernity and reflects the emptiness we feel in cities. person: yes, but you live in the countryside and i need to look at it this thing every day"
 
So true!
 
I vaguely remember reading about a government building that was intentionally designed to be confusing for the sake of the architect's vision. The day it opened, an elderly woman didn't notice an unmarked step down from one room to another, and broke her ankle.
Moral: architects hate you and want you to suffer.
 
user559633
say what you will about zee russians, but they design functional buildings
 
user559633
 
3:43 PM
Blech. More modernist noise.
 
user559633
haha, no, it's cheap/fast to build/solid/functional
 
DSM
I can't remember, tristan, are you in the land of borscht or the land of eintopf?
 
Modernism is dumb because it's like a hundred years old now. Poor planning when they picked the name.
 
user559633
good noise isolation from neighbors, everyone gets windows, everyone gets a balcony
 
@tristan have you moved already?
 
user559633
3:46 PM
@DSM in the land of pine trees right now, in florida next month, then land of borscht, then land of eintopf
 
user559633
@davidism yep :) about to start bouncing around between check-ins are my company
 
The trouble with modernist architecture is that it sets the architect in the role of God, and the building is considered an unchangeable work of art. The building's relationship with the people in it is secondary. And, especially, it is a sin for the people to substantially modify the building to meet their needs. Don't mess with God's work!
 
user559633
^^ please tell me what you're quoting that from
 
user559633
Oh :( I wanted to go troll.
 
3:57 PM
Although I'm pretty sure I've read similar things written by Christopher Alexander.
Christopher Alexander you may remember as the man who came up with the idea of pattern languages, which gave rise to formal patterns in software (the GoF book, etc.)
 
Meep, I cannot vote for my own synonym suggestions even as a moderator.
 
And, on very much a tangent, Larry Wall's great talk about modernism in software
I think that's on youtube somewhere also, for those who'd rather listen than read.
 
vote if you have enough of a score in the tag and agree and are just synonyms.
 
@MartijnPieters glad to know the synonym system is just as frustrating as a mod
 
4:03 PM
I was once in an office that lacked air conditioning, because the architect planned it in such a way that the air flow through the building would keep it cool in the summer. The problem is, it didn't. When given temperature measurements showing this, at first he didn't believe it, demanding we measure it with a specially-calibrated, high-accuracy thermometer. Then the architect basically said he didn't know why it wasn't working, but it wasn't his problem. So we were stuck with it.
 
I don't have enough score in any of them.
 
where was that blackcat ?
 
Germany
 
lol a fellow german ?
 
No, but I worked there for a time.
 
4:04 PM
@TheBlackCat my high school was designed as one building containing all the rooms, where all the inside walls were only half height. They realized this was a terrible idea pretty quickly, built full walls, but now half the classrooms have no vents while the other half have too many.
So no matter what time of year, you're guaranteed to be either too hot or too cold in every class.
 
in most cases architects are good for drawing pretty things , but otherwise are totally clueless
 
My roomate is a structural engineer, he complains about the architects a lot.
 
My roommate was an architect. He had...odd schedules.
 
user559633
@TheBlackCat what city is that building in?
 
architecture was in the same building as civil engineering.. so i know what they are doing :P
 
user559633
4:08 PM
drinking for lunch?
 
cbg
 
i remember once a guy wanted to get a fence on a balcony out of metal rods that had like a diameter of 0.01cm or something insane, after explaining to him that that is physically impossible because people would just push it to the side..he looked at you like you are just incompetent :)
 
I'm a noob mod. There is an approve link..
 
DSM
Even the best ninjas need time to master their jutsu.
 
Do tell me the reason for the downvote. I will gladly make amends — Bhargav Rao 5 mins ago
:(
 
4:12 PM
@MartijnPieters you should go through all posts and make people happy then
 
@davidism another time maybe.
 
What if I told you that you could also make some people sad? Tempted now?
 
(removed)
 
(not really)
 
DSM
♫ one of these things is not like the others ♫
 
4:19 PM
Argh DSM, you broke the flow :(
 
user559633
Wow, what happened
 
@tristan (removed)
 
A disagreement between two users, followed by the rest of us being silly
 
user559633
>>>> (removed)
 
wth, I get another on another post
 
4:23 PM
morning you beautiful people
 
cbg corvid
The eval mystery continues onto meta
:D
 
DSM
Guess Ruby has the same eval-related issues as Python.
 
But they don't have Ned Batchelder
 
Once upon a time, eval was more common in Ruby code. Ruby now has enough metaprogramming power that eval is seldom needed. I haven't used it in years.
 
user559633
lol at people ranting against eval
 
4:32 PM
@vaultah, I kind of wish you hadn't added the python tag to that question... Now the vultures will swoop down on it before I can leisurely compose an answer.
 
:(
 
You've discovered my secret - answer questions that have obscure tags, then edit in some mainstream tags to boost viewership.
 
DSM
I seldom need it myself, but I admit it's hard to get that worked up about the security implications. Maybe other people have code which is always accepting arbitrary input from untrusted sources, but for me it's about as dangerous as control-Z.
 
> Rookie looking for help on the code urgently
facepalm
 
I think the trouble with eval is that you need to have detailed knowledge of where the data came from in order to know if it's safe. Sometimes the source of the data is far away from the eval. I guess I'd only want to use eval when the source of the data is near the eval, so that inspection for safety is trivial.
 
DSM
4:38 PM
My most common use is when I want to be able to enter an arbitrary formula in a configuration file. Since I'm the user of most of my code, and I'm capable of destroying my own files without having to trick myself, I'm not very worried.
 
99% of the Python code I write is meant to be executed by the user on their own machine. So any security measure is meaningless, since they can edit the .py file and make it do whatever they want anyway.
 
@DSM That seems fine
 
Oh noez, eval(input()) is insecure because the user could type __import__('os').system('rm -rf *'). Or they could just open up a command prompt and do that directly.
 
DSM
@asf107: If the hacker can edit the source code, there are other problems to worry about. — DSM Feb 8 '12 at 22:07
 
How I wish I could do that to my Professor's comp. Dear Prof, please eval your inputs
 
4:42 PM
@Kevin What is input() in this case?
 
raw_input if you're in 2.7
 
DSM
gets.chomp, IIRC.
 
Thanks.
 
@DSM That's a sad state there!
The accepted answer - 57 votes
the last answer a sad 14 votes
even with an examples
 
Is there a better FTP library than ftplib? Like Requests, but for FTP?
 
4:45 PM
I don't think an example really lends much to the answer, since it's so simple.
It doesn't help that their answer came ~20 months later than the accepted one.
 
And it somewhat implies that the code only works on Windows, which seems wrong to me.
Either that or they mean "I tried it on Windows, I don't know about any other OS" which is a bit lazy if you're trying to be the authoritative answer
(which I assume you are if you are necroing a post from a year and a half ago)
((not that "necroing" is really a thing on SO))
 
DSM
Well, there is the necromancer badge. Maybe that was the goal.
 
@MorganThrapp I'm the author of an ftp library for Ruby. My research often led me to pyftpd. I get the impression that pyftpd is the gold standard ftp library for Python. No actual experience with it, of course (other than I've used it in benchmarks to compare it against my Ruby solution)
 
@WayneConrad Awesome, thanks. I'll take a look at it.
 
4:50 PM
Huh Ninja beaten? It is rare, very rare stackoverflow.com/questions/29949792/…
 
The docs for my library say this: "pyftpdlib is what every FTP library wants to be when it grows up."
 
DSM
@WayneConrad: there a lot of variation performance-wise among libraries? I'd've thought it'd be entirely network-bound.
 
Yes, a great deal of variation, mostly around concurrent large file transfers.
 
DSM
Huh. TIL.
 
[github.com/wconrad/ftpd/blob/master/doc/benchmarks.md](here) you can see that pyfftpd blows my Ruby ftpd away in most benchmarks. It's not suprising: The pyftpd source shows that it's been carefully optimized. Mine, not as much.
 
4:54 PM
Oh, it looks like it's more about writing an FTP server. I just need to send a file to an FTP server.
 
user559633
what problems did you run into with ftplib @MorganThrapp
 
@MorganThrapp Oh, oh, I'm sorry. I misunderstood.
 
They have pysendfile, but that uses sockets, and I'd rather not import more things when I could just use ftplib.
@tristan I've never used the raw FTP commands, STOR, etc, and I'm just not sure I'm doing it right. I'd rather just do FTPThingy.uploadfile(my_file_object)
Really I just want more abstraction in ftplib. :P
 
user559633
it's really not that hard
 
user559633
7
Q: Python Script Uploading files via FTP

Frustrated Python CoderMe and a buddy of mine, we are trying to make it so whenever we have our script take a screenshot, we can automatically run a program to upload the file. What we need to to know is how the login system would work, like, the verification in the script. Sort of like (I don't know the code) I need t...

 
4:56 PM
Okay, I am doing it right.
 
rbrb all
:D
 
@tristan Having to specify STOR in the API is ugly.
The library should be hiding details like that.
 
user559633
uh okay. we disagree, but that's fine
 
Agreed
 
user559633
you can wrap that function in a oneliner if you want... it's there in case someone wants to use a different storage command
 
user559633
4:59 PM
afk food
 
ftplib.upload(file_object, command="OTHERTHING")
Personally I'd rather see that.
 

« first day (1656 days earlier)      last day (3306 days later) »