|
5 lines of code to do a file upload:
SftpClient sftp = new SftpClient("192.168.0.3", "[username]", "[password]");
sftp.Connect();
var st = new FileStream(@"c:\foo.txt", FileMode.Open);
sftp.UploadFile(st, "/home/debian/foo.txt");
sftp.Disconnect();
The only nuance was that the target (second parameter) must also include the filename. The WinSCP.NET dll implementation doesn't require this. With SSH.NET, finding that was a bit annoying, as the exception message was "Failure!" That was helpful. Had to read through a couple forums with people having the same error to find someone that posted "you need the filename on the destination path."
Marc
|
|
|
|
|
jgakenhe wrote: switched from FTP to FTPS
Just to make sure everyone reading this thread understands there is a difference between SFTP and FTPS.
WinSCP does not do FTPS as far as I can tell; it does SFTP. SFTP basically wraps copying files with SCP (which in turn uses SSH), and FTPS is FTP over SSL. These follow very different protocols to achieve the same result.
|
|
|
|
|
Yes you're right, it is FTP over SSL. WinSCP has some documentation on FTPS at: FTPS :: WinSCP[^].
|
|
|
|
|
Ok, thanks. I did not see that information.
|
|
|
|
|
WinSCP .NET Assembly is an option
"The WinSCP .NET assembly winscpnet.dll is a .NET wrapper around WinSCP’s scripting interface that allows your code to connect to a remote machine and manipulate remote files over SFTP, FTP, WebDAV and SCP sessions from .NET languages, such as C#, VB.NET, and others, or from environments supporting .NET, such as PowerShell, SQL Server Integration Services (SSIS), ASP.NET and Microsoft Azure WebSite." winscp.net
|
|
|
|
|
I did get the WinSCP.NET assembly working (quite easily) but it requires that the exe be installed, whereas ssh.net worked just as easily without any dependencies. Also, when I tried WinSCP.NET, I had an older version of the exe, and got an incompatibility exception, so I don't want to create the added annoyance of having to make sure the exe and dll are sync'd.
Marc
|
|
|
|
|
|
Brisingr Aerowing wrote: NSFW
Which does not belong in the lounge, if you've bothered to read the guidelines.
|
|
|
|
|
It's just a pillowcase printed with a picture of Nick Cage, during his "I need to attract more gay fans" period.
I think what Brisingr meant was that it's Not Safe For Anywhere.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Click bait. Now Amazon will start suggesting poop and pillows to whoever clicks this. Why did I take the red pill?
|
|
|
|
|
Click-bait it ain't, for four clear reasons:
0. There is no advertising on the page, at all.
1. It doesn't make you click through several ad-filled pages, before finally allowing you to do the click that you go there for.
2. It isn't "filled" with fifty words of badly written text on a poorly thought out topic, which describes itself as "an article".
3. It is actually quite a fun idea.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
True. But all I'm saying is the ad push comes after you click on them.
|
|
|
|
|
Yeah, well, from sales sites, you expect crassness.
It doesn't look like the guy made the site for money; he did it for a laugh.
That's fine by me. I'd have a beer with him.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
|
Brisingr Aerowing wrote: Found using Weird or Confusing[^] My first click brought me this[^].
I gotta buy it!
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
You'd better hurry! It's discontinued by the manufacturer and there are only 16 left in stock!
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- I'd just like a chance to prove that money can't make me happy. Me, all the time
|
|
|
|
|
No, not this Metaprogramming[^]
I'm referring to this metaprogramming[^]
Be sure to read the comments as well.
Not sure what I wanted to convey with this, but he has a point, successful programs products usually starts small with a visionary in the lead, rather than run by a management team.
|
|
|
|
|
Very few coders would I give the title "programmer".
Of those, even fewer, "software engineer"
Of those, even fewer, "metaprogrammer"
That said, the kind of successful programs that he's talking about in the article (Turbo Pascal, CP/M, QDOS, WordStar, MSWord, Lotus123) well, most of those are archaic, and even the origins of MSWord and Lotus are archaic in their 1.0 versions.
It was also a very different time. Come on, Turbo Pascal had a text-based IDE with special text characters to draw the frames.
Nowadays, a successful product requires a small village with several visionaries -- back-end, front-end, security, customer support, social media marketing, cross-platform / mobile, etc.
It's not the same game anymore.
[edit]Oh, and a lot of those characters he mentions as metaprogrammers are also narcissistic egomaniacs. [/edit]
Marc
|
|
|
|
|
Marc Clifton wrote: Oh, and a lot of those characters he mentions as metaprogrammers are also narcissistic egomaniacs
You can still get a long way being a narcissistic egomaniac. Just think Apple.
|
|
|
|
|
Marc Clifton wrote: a lot of those characters he mentions as metaprogrammers are also narcissistic egomaniacs. Oh, I'm in the list. Cool.
This space for rent
|
|
|
|
|
Pete O'Hanlon wrote: Oh, I'm in the list. Cool But I'm higher on it, of course.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
You can be high on what you want, we don't judge.
CALL APOGEE, SAY AARDWOLF
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
Never pay more than 20 bucks for a computer game.
I'm a puny punmaker.
|
|
|
|
|
An interesting if nostalgic article. The comments are very revealing including those about Dave Cutler Dave Cutler - Wikipedia[^] . I found the link to the history of Xenix Xenix - Wikipedia[^] fascinating. The author could have mentioned Wayne Ratliff - Wikipedia[^] of dBase fame and Briklin and Frankston who created VisiCalc VisiCalc - Wikipedia[^] .
While I do agree with Marc Clifton's comments this article reminds us of a time where great steps forward were achieved by single individuals with a vision. Narcissists maybe but clever and motivated also. Ever since then I have had great respect for the adage "If it takes 1 programmer 1 year it will take 100 programmers 100 years".
Peter Wasser
"The whole problem with the world is that fools and fanatics are always so certain of themselves, and wiser people so full of doubts." - Bertrand Russell
modified 7-Feb-17 22:31pm.
|
|
|
|
|
pwasser wrote: "If it takes 1 programmer 1 year it will take 100 programmers 100 years".
I've heard the version with nine women and a baby.
|
|
|
|
|
pwasser wrote: "If it takes 1 programmer 1 year it will take 100 programmers 100 years" And eighty programmers with twenty managers 1,000 years.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|