2718.us blog » winscp http://2718.us/blog Miscellaneous Technological Geekery Tue, 18 May 2010 02:42:55 +0000 en hourly 1 http://wordpress.org/?v=3.0.4 Why Didn’t Someone Tell Me About Subversion Sooner? http://2718.us/blog/2008/06/06/why-didnt-someone-tell-me-about-subversion-sooner/ http://2718.us/blog/2008/06/06/why-didnt-someone-tell-me-about-subversion-sooner/#comments Sat, 07 Jun 2008 02:26:09 +0000 2718.us http://2718.us/blog/?p=43 I’d gotten very used to editing some of my sites on the live running copy or editing a testbed server, then rsyncing it to the live server.  I really had the WinSCP+TextPad thing down, then moved to Transmit+KomodoEdit when I went Mac-only for programming.  It wasn’t bad at all, though every once in a while I really wished I could do one of those “search every file” actions from the editors, but that’s just not possible when editing one file at a time as a temporary copy via SFTP.

At the moment, I’m just starting to dig into one of the larger web projects I’ve done, migrating a large, data-driven site from PHP4 to PHP5, moving it from a commercial host to my own hosting, and rewriting large swaths of code—all at once.  The previous webmaster, who wrote the original code, said he’d used subversion to deal with making revisions and having the ability to roll back when things broke, so I decided to look into subversion.

While most of the documentation made it seem really complex, once I’d settled on https access (apache mod_dav_svn), in the context of an existing SSL site I had, things were very easy–just a few svnadmin commands to set up the directories and a few lines of tweaking in an apache config file.  About 10 minutes into playing with the repository, having imported the existing site and set up a working copy on my local machine, I wondered if there weren’t some nice GUI way to deal with checkout/checkin/status/etc.  Enter svnX.

Now I’ve got working copies on my desktop and laptop as well as a copy checked out to the new production server and I can easily edit locally, even searching all files (that makes it a lot easier to fix all the instances of some incompatibility with PHP5 or some assumption about the directory structure or other oddity).  Once I’ve edited, I can easily check what’s been revised (status) and save the changes to the repository (checkin/commit) using svnX.  A quick “svn up” on the server and everything’s live.

This setup is so wonderfully easy that I’m annoyed I didn’t know to do it sooner.

]]>
http://2718.us/blog/2008/06/06/why-didnt-someone-tell-me-about-subversion-sooner/feed/ 1
The Argument for a Mac http://2718.us/blog/2008/04/10/the-argument-for-a-mac/ http://2718.us/blog/2008/04/10/the-argument-for-a-mac/#comments Fri, 11 Apr 2008 02:16:53 +0000 2718.us http://2718.us/blog/?p=13 I have about as many WinXP machines as OS X machines around here (and a few OpenBSD boxes, but that’s beside the point), and yet I find it’s rare that I touch anything other than the Macs anymore.  Why?  Well, I suspect it’s the same reason I keep seeing little things here and there that suggest developers are increasingly working on Macs–if I want a Mac program, well, duh, I’m on a Mac; if I want a PC program, I’ve got Parallels, so I don’t even have to deal with dual-booting; if I want a ‘nix machine, I just look under the Mac GUI and there’s a BSD-type ‘nix (oh, and OS X can run a standard X11 server, too).  I can use virtually any tool out there and work in all three worlds with one machine.  I no longer need to have two or three machines on my desk at home, just my Mac desktop.  I probably won’t be taking more than one laptop on the road with me anymore (I have travelled with two on several occasions in the past), just my Mac laptop.

Why do I want all these different facets?  Well, much as I hate to use it, damn near everyone in “the business world” uses Microsoft Office, and the Mac versions suck (I don’t know about 2008, but I’m not optimistic) and I’d rather use the PC version (2003, since 2007 is a disaster best described as MS openly giving the finger to all its customers).  Graphics work and page layout are in various Adobe Creative Suite products under OS X (I suppose that there exist PC versions, but really, who does graphics work on a PC?).  I also prefer web and email on the Mac side.  Then, when I have to deal with network/server/etc. stuff, I dive into terminal and I’m off.  For actual programming, while I love using WinSCP + TextPad under Windows, LOVE it, I tend more toward Transmit + Komodo Edit nowadays (this is largely a side effect of having a huge project hosted on a server that only supports FTP, not SFTP, and for whatever reason, WinSCP can’t seem to maintain a stable FTP connection with that server, so editing led to all sorts of nasty corruption and whatnot when the connection would drop mid-edit).

Oh, and it doesn’t hurt that my day job is in an all-Mac office.

]]>
http://2718.us/blog/2008/04/10/the-argument-for-a-mac/feed/ 0