# Crazy Idea

**URL:** <https://www.ruby-forum.com/t/crazy-idea/126028>\
**Category:** Rails\
**Created:** [January 14, 2008, 9:09pm UTC](https://www.ruby-forum.com/t/crazy-idea/126028 "2008-01-14T21:09:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kopf1988](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/74df32/32.png) [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Post date:** [January 14, 2008, 9:09pm UTC](https://www.ruby-forum.com/t/crazy-idea/126028/1 "2008-01-14T21:09:41Z")

</div>

Okay, so I have a laptop now, but I’ve been doing most of my RoR  
development on my home computer system. Both are Windows XP. Now, I  
have this crazy idea about using both to develop the same program  
(_gasp_). Although I’ve been doing programming for a few years, I have  
NO idea how to do this. I’m using Aptana RadRails right now… is  
there perhaps something built-in that I can use? I understand that  
what I’m trying to do is called CVS maybe? Any help? 🙂 Thanks!!

-Ryan

---

<div class="post-metadata">

**Author:** ![kopf1988](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/74df32/32.png) [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Post date:** [January 14, 2008, 9:12pm UTC](https://www.ruby-forum.com/t/crazy-idea/126028/2 "2008-01-14T21:12:40Z")

</div>

Read up on source control. You have a few options, but avoid CVS if you  
can. 🙂

Subversion is the easiest one to setup and get going.  
[http://subversion.tigris.org/](http://subversion.tigris.org/)

A lot of cheap web hosts (e.g., Dreamhost) offer Subversion support  
with their web packages. So basically you’d sync the source to your  
web account then pull it down on the other computer, push your changes  
back to the server, pull them down on the other computer, rinse  
repeat. 🙂

Wikipedia probably has a good article on it and there’s a book about  
Subversion on their website that’s free.

–Jeremy

On Jan 14, 2008 3:08 PM, kopf1988 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> >

–

> **[Jeremy McAnally](http://www.jeremymcanally.com/)**

My books:  
Ruby in Practice

> **[Ruby in Practice - Jeremy McAnally and Assaf Arkin](https://www.manning.com/books/ruby-in-practice)**
>
> Like Ruby itself, Ruby in Practice will make you more productive. The book shows you practical techniques and strategies for small projects and large-scale…

My free Ruby e-book

> **[Site not found · DreamHost](http://www.humblelittlerubybook.com/)**
>
> The owner of this domain has not yet uploaded their website.

My blogs:

> **[Site not found · DreamHost](http://www.mrneighborly.com/)**
>
> The owner of this domain has not yet uploaded their website.

[http://www.rubyinpractice.com/](http://www.rubyinpractice.com/)

---

<div class="post-metadata">

**Author:** ![kopf1988](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/74df32/32.png) [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Post date:** [January 14, 2008, 9:13pm UTC](https://www.ruby-forum.com/t/crazy-idea/126028/3 "2008-01-14T21:13:15Z")

</div>

On Jan 14, 2008 9:08 PM, kopf1988 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> there perhaps something built-in that I can use? I understand that  
> what I’m trying to do is called CVS maybe? Any help? 🙂 Thanks!!

not sure what you’ll find built in, but have a look at subversion.  
It’s more or less the standard in the rails community, and I  
understand TortoiseSVN is a very good windows client (though I’ve  
never tried it out, since I’m on another platform).

- Martin

---

<div class="post-metadata">

**Author:** ![kopf1988](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/74df32/32.png) [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Post date:** [January 14, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/crazy-idea/126028/4 "2008-01-14T23:15:12Z")

</div>

Yup, as everyone else pretty much said: SVN or Git. Pretty much the  
standard and not so crazy an idea after all 🙂

---

<div class="post-metadata">

**Author:** ![kopf1988](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/74df32/32.png) [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Post date:** [January 14, 2008, 9:33pm UTC](https://www.ruby-forum.com/t/crazy-idea/126028/5 "2008-01-14T21:33:23Z")

</div>

Em Seg 14 Jan 2008, kopf1988 escreveu:

> Okay, so I have a laptop now, but I’ve been doing most of my RoR  
> development on my home computer system. Both are Windows XP. Now, I  
> have this crazy idea about using both to develop the same program  
> (_gasp_). Although I’ve been doing programming for a few years, I have  
> NO idea how to do this. I’m using Aptana RadRails right now… is  
> there perhaps something built-in that I can use? I understand that  
> what I’m trying to do is called CVS maybe? Any help? 🙂 Thanks!!

Have a look at git. Google for it.

For Rails, you could also use Capistrano.

Best regards,

Davi V.

---

<div class="post-metadata">

**Author:** ![kopf1988](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/74df32/32.png) [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Post date:** [January 14, 2008, 11:58pm UTC](https://www.ruby-forum.com/t/crazy-idea/126028/6 "2008-01-14T23:58:31Z")

</div>

TortoiseSVN is the way to go with Windows

–  
Ryan B.

> **[frozenplague.net](http://www.frozenplague.net)**
>
> This domain may be for sale!

Feel free to add me to MSN and/or GTalk as this email.

---

<div class="post-metadata">

**Author:** ![kopf1988](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/74df32/32.png) [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Post date:** [January 15, 2008, 9:00am UTC](https://www.ruby-forum.com/t/crazy-idea/126028/7 "2008-01-15T09:00:18Z")

</div>

Once you’ve got svn installed on WinXP, and once you’ve got Tortoise  
SVN installed on WinXP, and once you figure out the url for the svn  
repository on your server, you then can do what you said.

You might prefer to skip the windows gui (Tortoise) and write a  
command line call svn in a .cmd file. You can then set up an icon to  
run the command .cmd scripts, one to get and one to upload. And then  
just click on them as needed. But this sounds like more trouble than  
using the GUI for Tortoise.

Just remember that the ‘update’ icon in Tortoise means download, and  
‘commit’ icon means upload to the server.

The other gotcha is that you first set up a directory with your stuff,  
and then put it into the repository. Then you check it out, but to a  
different directory. Then that second directory is your working  
directory and the first directory is an orphan, never to be touched  
again. Why they do this, I don’t know.

A completely different approach would use WinSCP and/or ftp to upload  
and download to the directory structure on your server.

f

---

<div class="post-metadata">

**Author:** ![kopf1988](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/74df32/32.png) [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Post date:** [January 15, 2008, 6:03am UTC](https://www.ruby-forum.com/t/crazy-idea/126028/8 "2008-01-15T06:03:13Z")

</div>

Right… subversion, I’ve read about it.

But is there a solution that’s… umm… simple? For example, I don’t  
care much about being able to revert to previous versions and things  
like that. I just want to change it on one system and be able to get  
the changes on the new system. Something like when I’m done at home I  
can click “Update Server” or use a command line prompt like “update  
server /rails/program/path/” and have the files uploaded. Then on my  
laptop I want to click or type “Update Computer” to download all the  
files and update the ones that have been edited.

Has anyone done something this simple for me yet? I don’t want those  
extra features if I’m not going to be using them (k.i.s.s. standard).

🙂

-Ryan

---

<div class="post-metadata">

**Author:** ![kopf1988](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/74df32/32.png) [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Post date:** [January 15, 2008, 11:08am UTC](https://www.ruby-forum.com/t/crazy-idea/126028/9 "2008-01-15T11:08:21Z")

</div>

On 15 Jan 2008, at 05:02, kopf1988 wrote:

> files and update the ones that have been edited.
> 
> Has anyone done something this simple for me yet? I don’t want those  
> extra features if I’m not going to be using them (k.i.s.s. standard).

Once you used source control you’ll never want to go back. Have you  
never been in situations along the lines off ‘Damn, this was working  
fine yesterday, what have I changed?’, or scrummaged through backups  
to find the code from 6 months ago which has something you need (or  
because someone running an older version has found a problem etc..) ?

At a basically level with subversion you can just do svn commmit to  
push changes to the repository and svn update to pull them down.  
There are a number of places which will host your repository (normally  
for a fee, but it’s not an awful lot) which means you don’t have to  
setup the server yourself it’s accessible from anywhere in the world  
and (most importantly as far as I’m concerned) your data is safe in a  
datacenter, on properly backed up hardware where you don’t have to  
worry about a toddler feeding its porridge through the vents on the  
computer hosting your repository.

Fred

---

<div class="post-metadata">

**Author:** ![kopf1988](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/74df32/32.png) [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Post date:** [January 15, 2008, 9:12am UTC](https://www.ruby-forum.com/t/crazy-idea/126028/10 "2008-01-15T09:12:01Z")

</div>

> But is there a solution that’s… umm… simple? For example, I don’t  
> care much about being able to revert to previous versions and things  
> like that. I just want to change it on one system and be able to get  
> the changes on the new system. Something like when I’m done at home I  
> can click “Update Server” or use a command line prompt like “update  
> server /rails/program/path/” and have the files uploaded. Then on my  
> laptop I want to click or type “Update Computer” to download all the  
> files and update the ones that have been edited.

Ryan - this is all I use subversion for! It seems really hard at  
first, but once you have set up your repositroy (preferably online,  
with your web hosts) all you do is checkout a version to each  
computer. After doing some updates you ‘commit’ these back to the  
central online subversion repository. A simple ‘update’ command will  
then update all the other copies to take account of the changes. I  
don’t use any of the stuff about rolling back and branches, but figure  
that I might use it in the future.

DAZ

---

<div class="post-metadata">

**Author:** ![kopf1988](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/74df32/32.png) [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Post date:** [January 15, 2008, 4:07pm UTC](https://www.ruby-forum.com/t/crazy-idea/126028/11 "2008-01-15T16:07:20Z")

</div>

I would definetely use SVN with Tortoise.

But if you just want the files synchronized between desktop and  
laptop, you can always use some sync utility, like GoodSync…

Cheers, Sazima

---

<div class="post-metadata">

**Author:** ![kopf1988](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/74df32/32.png) [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Post date:** [January 15, 2008, 11:50am UTC](https://www.ruby-forum.com/t/crazy-idea/126028/12 "2008-01-15T11:50:11Z")

</div>

Hi guys

I use NetBeans for Ruby as my IDE and it integrates really well with  
SVN - have Tortoise installed but really only use it when I have to go  
out into PHP land.

NetBeans has a very cool feature once it knows about your repository -  
you can turn on the diff sidebar and it shows you in the margins where  
you have made changes, when you mouse over the marks it tells you want  
the changes were and allows you to undo just that change, rather than  
the whole file.

If you’re using one of the Eclipse based IDE’s it’s probably got very  
similar functionality.

HTH

On Jan 15, 9:56 am, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![kopf1988](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/74df32/32.png) [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Post date:** [January 15, 2008, 6:34pm UTC](https://www.ruby-forum.com/t/crazy-idea/126028/13 "2008-01-15T18:34:42Z")

</div>

On 1/14/08, kopf1988 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Right… subversion, I’ve read about it.
> 
> But is there a solution that’s… umm… simple?

Don’t let the Subversion book discourage you. In a normal day you  
would only use a few of those commands and the online book is always  
there to help you when you need one of the more exotic commands.  
Knowing every single Subversion command or command line option is not  
required to use Subversion.

> extra features if I’m not going to be using them (k.i.s.s. standard).  
> There are indeed features in Subverion and Capastrano that you will  
> not need, but that’s true with most anything. Dismissing the  
> applications themselves simply because of those extra features is very  
> poor logic in my opinion.

Learning Subversion is not a waste of time. I almost want ask who  
_isn’t_ using it by now? And running `cap deploy` to redeploy any one  
of my Rails apps, instantly, on a whim, seems about as simple as it  
gets.

–  
Greg D.  
[http://destiney.com/](http://destiney.com/)

---

<div class="post-metadata">

**Author:** ![kopf1988](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/74df32/32.png) [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Post date:** [January 15, 2008, 7:28pm UTC](https://www.ruby-forum.com/t/crazy-idea/126028/14 "2008-01-15T19:28:16Z")

</div>

On Jan 15, 2008, at 12:07 PM, kopf1988 wrote:

> synchronized? I think the subversion idea is almost giving me a  
> headache… it took me weeks just to get GoDaddy and RoR to work, lol.  
> I don’t want to have to learn something new so soon after that  
> headache.
> 
> -Ryan

Another possibility, though not as good as source control, is a  
simple ftp server. Run it on your desktop then get or put as the  
case may be.

One question, though:

Do you ever expect to have changes on one that you don’t have on the  
other? If you will need to do any type of merging, you really need  
to figure out a way to use source control. I’d recommend git or  
mercurial. They are both distributed source control managers and you  
can push/pull from your notebook to your desktop. Merging is easy.  
It’s all pretty fast. And it’s not that hard to learn.

Google for them.

Peace,  
Phillip

---

<div class="post-metadata">

**Author:** ![kopf1988](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/74df32/32.png) [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Post date:** [January 15, 2008, 7:07pm UTC](https://www.ruby-forum.com/t/crazy-idea/126028/15 "2008-01-15T19:07:40Z")

</div>

Right, but I also don’t have a host that supports Subversion easily  
(although I’ve heard of some free places).

Also, as for just synchronizing the folders, I should note that the  
two computers are never on the same network. They use two differnt  
ISPs, always. Pretend my laptop is in florida while my home computer  
is in california. (or Sydney and New York, lol).

I’ve heard of WinSCP… might that work just to keep the folders  
synchronized? I think the subversion idea is almost giving me a  
headache… it took me weeks just to get GoDaddy and RoR to work, lol.  
I don’t want to have to learn something new so soon after that  
headache.

-Ryan

---

<div class="post-metadata">

**Author:** ![kopf1988](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/74df32/32.png) [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Post date:** [January 15, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/crazy-idea/126028/16 "2008-01-15T19:35:20Z")

</div>

On Jan 15, 2008 10:07 AM, kopf1988 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Right, but I also don’t have a host that supports Subversion easily  
> (although I’ve heard of some free places).

Apropos of which, this was just recommended to me:

[http://www.beanstalkapp.com/](http://www.beanstalkapp.com/)

The price is right (free for \<4 users), so it may be worth a look.

> Also, as for just synchronizing the folders, I should note that the  
> two computers are never on the same network.

Irrelevant. I agree with the recommendation to just go ahead and  
learn subversion, but if you really can’t deal with it, there’s always  
carrying around a USB drive with your project 🙂

## FWIW,

Hassan S. ------------------------ [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![kopf1988](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/74df32/32.png) [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Post date:** [January 15, 2008, 7:39pm UTC](https://www.ruby-forum.com/t/crazy-idea/126028/17 "2008-01-15T19:39:33Z")

</div>

Well, that’s just the thing… I’m never going to be using both for  
anything different. I have one application, chronorails, which will  
one day control all my websites (mwahahahah so much to do, so little  
time). But for now, I don’t even have my own server, just really  
inexpensive shared hosting.

I’ll never edit on one location without wanting the changes in the  
other place, so no merging required ever. Basically, I’m going to sit  
at home and code my program. Then, I’m going to get thirsty and tired,  
so I’ll save it, then take my laptop to Starbucks and continue my work  
there. Nothing fancy at all…

Granted one day I’ll want to learn subversion for all the features and  
because jobs will want it… but I don’t want to start anything new so  
soon, lol.

-Ryan

---

<div class="post-metadata">

**Author:** ![kopf1988](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/74df32/32.png) [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Post date:** [January 15, 2008, 7:57pm UTC](https://www.ruby-forum.com/t/crazy-idea/126028/18 "2008-01-15T19:57:50Z")

</div>

On Jan 15, 2008, at 12:38 PM, kopf1988 wrote:

> Well, that’s just the thing… I’m never going to be using both for  
> anything different. I have one application, chronorails, which will  
> one day control all my websites (mwahahahah so much to do, so little  
> time). But for now, I don’t even have my own server, just really  
> inexpensive shared hosting.
> 
> I’ll never edit on one location without wanting the changes in the  
> other place, so no merging required ever. Basically, I’m going to sit

I don’t think I phrased my question properly. If there’s a chance  
that the code will ever get out of sync, you’ll want merge. Think of  
a scenario in which you do some coding on your home computer, then  
get thirsty (as you say) and move it all over to your notebook.  
After a couple of hours at Starbucks, you come home, but for one  
reason or another, you forget to put the code back on your home  
computer. A while later, you sit down and make some changes at your  
home computer. Now you’re out of sync. If you upload your notebook’s  
copy to your home computer, you’ll lose what you just did. You now  
need to make the same changes on your notebook before you can upload  
the source again. Or, if you use mercurial or git, you could so  
something as easy as

pull  
merge  
commit  
push

and be done with it.

Peace,  
Phillip

---

<div class="post-metadata">

**Author:** ![kopf1988](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/74df32/32.png) [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Post date:** [January 15, 2008, 10:12pm UTC](https://www.ruby-forum.com/t/crazy-idea/126028/19 "2008-01-15T22:12:18Z")

</div>

google code is a good free svn host!

---

<div class="post-metadata">

**Author:** ![kopf1988](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/74df32/32.png) [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Post date:** [January 15, 2008, 10:02pm UTC](https://www.ruby-forum.com/t/crazy-idea/126028/20 "2008-01-15T22:02:53Z")

</div>

Still sounds painful. Although I’ve heard of a good free svn host…  
maybe I’ll try it. _sigh_. I just hope this goes better than my other  
new things…

Everytime I try to get something new working, I run into a years worth  
of problems.

-Ryan

[Next page](https://www.ruby-forum.com/t/crazy-idea/126028.md?page=2)
