Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (580)
games submitted by our members
Games in WIP (500)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Dealing with source code on several PC  (Read 7631 times)
0 Members and 1 Guest are viewing this topic.
Offline Bonbon-Chan

JGO Coder


Medals: 12



« Posted 2010-02-02 09:12:39 »

Hi,

I move a lot between several PCs and I have hard time to deal with source code  Sad
At first, I have tried to use a sync software that works over FTP... but some PC have a really bad internet connexion and it has screwed up my code several time  Angry
I know CVS and Versionning but it seem that you can only install it on a private server. (And I don't want to use something like google code or sourceforge for every little test project I do)

Is here any software like versionning that can be install on a PHP server ?
Offline Matzon

JGO Knight


Medals: 19
Projects: 2


I'm gonna wring your pants!


« Reply #1 - Posted 2010-02-02 09:32:01 »

setup Subversion - and hook it up through apache

Offline Bonbon-Chan

JGO Coder


Medals: 12



« Reply #2 - Posted 2010-02-02 10:14:41 »

setup Subversion - and hook it up through apache

You must have a private server to do this. I want (if possible) to use a basic webserver with php/mysql.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline pjt33
« Reply #3 - Posted 2010-02-02 10:18:35 »

What precisely is your use case? Do you have shell access to your server? Do you want to extract the code there or just use it as a drop box?
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 605
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #4 - Posted 2010-02-02 10:47:48 »

Approaching it from a different angle:

I solve this problem by doing everything from a (fast) mobile disk. That includes JRE, Eclipse, workspace... and everything else.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Orangy Tang

JGO Kernel


Medals: 51
Projects: 11


Monkey for a head


« Reply #5 - Posted 2010-02-02 11:00:47 »

There are plenty of free svn hosting sites, and some that don't require you to be open source too:

http://www.svnhostingcomparison.com/

Although I favour getting proper webhosting which allows you to install svn yourself.

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline moogie

JGO Knight


Medals: 11
Projects: 5
Exp: 10 years


Java games rock!


« Reply #6 - Posted 2010-02-02 12:19:42 »

i do a hybrid: like riven i use a portable harddrive / flash drive but have a svn repository, svn server, eclipse and JRE on it
Offline Bonbon-Chan

JGO Coder


Medals: 12



« Reply #7 - Posted 2010-02-02 15:03:58 »

Quote
What precisely is your use case? Do you have shell access to your server? Do you want to extract the code there or just use it as a drop box?

1) No shell access (not on my current cheap webhost).
2) My priority is the drop box but I think I will not escape a versionning.

Quote
I solve this problem by doing everything from a (fast) mobile disk. That includes JRE, Eclipse, workspace... and everything else.
3) I'm a scatterbrain...  Grin I will forget it so forget it  Wink

Quote
There are plenty of free svn hosting sites, and some that don't require you to be open source too
4) Thanks, I will take a look to them

Quote
Although I favour getting proper webhosting which allows you to install svn yourself.
5) Beside basic (cheap) webhosting, I didn't search one... In fact, I never came accross one with searching for webhosting.

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 605
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #8 - Posted 2010-02-02 15:57:02 »

3) I'm a scatterbrain...  Grin I will forget it so forget it  Wink

Strap it to your head.


Seriously though, it can't be that hard? Once you forgot it a few times, you'll get the hang of it.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline h3ckboy
« Reply #9 - Posted 2010-02-02 16:29:55 »

I have this exact problem... so waht I do is I have a NAS that I store all of my code on Smiley.

but then again, you probably dont happen to have one of those just chilling in your house...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Karmington

Senior Member


Medals: 1
Projects: 1


Co-op Freak


« Reply #10 - Posted 2010-02-02 17:20:51 »

I haven't tried it yet, but 'git' is one of a couple of non-centralized versioning systems. 'distributed version control system' http://git-scm.com/

Offline TheAnalogKid

JGO Coder


Projects: 3



« Reply #11 - Posted 2010-02-02 20:41:55 »

Anybody has tried dropbox (https://www.dropbox.com/)? I plan to use for my future projects. Apparently you can share files among multiple users. If it works well then bye bye flash drive!

Offline Bonbon-Chan

JGO Coder


Medals: 12



« Reply #12 - Posted 2010-02-03 09:19:21 »

Strap it to your head.


Seriously though, it can't be that hard? Once you forgot it a few times, you'll get the hang of it.

Well, when you forgot it and you can do anything for 2 or 3 weeks, it's really annoying  Sad
And I had bad experience of corrupted files on mobile storage.


For subversion server, I found projectlocker.com interresting. Anyone has try it ?
If I remember, I can deal with subversion directly in netbeans.
Offline CommanderKeith
« Reply #13 - Posted 2010-02-03 10:17:30 »

Approaching it from a different angle:

I solve this problem by doing everything from a (fast) mobile disk. That includes JRE, Eclipse, workspace... and everything else.

I did this but I was always thwarted when a new computer gave the USB stick a different drive mapping, say B: instead of G: or whatever. Since Ant is used to build projects in netbeans (and eclipse?), and Ant uses drive-dependent commands which screws up my builds... Is there a way around this?   Huh

Offline Nate

JGO Kernel


Medals: 129
Projects: 3
Exp: 14 years


Esoteric Software


« Reply #14 - Posted 2010-02-03 13:03:20 »

I use DynDNS to host my own SVN server from my home. My server runs a service that periodically updates my home's IP with DynDNS.

Offline Karmington

Senior Member


Medals: 1
Projects: 1


Co-op Freak


« Reply #15 - Posted 2010-02-03 13:32:08 »

I use ant and no need to have drive letters in there.
Here's mine:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
<project name="Build jars" default="build_jar_server" basedir=".">
<property name="output_dir" value="jars"/>
<property name="output_jar_server" value="jars/server.jar"/>

<target name="build_jar_server">
   <mkdir dir="${output_dir}"/>
   <jar jarfile="${output_jar_server}">
       <fileset dir="bin/" includes="**/*.*"/>
      <fileset dir="../anotherpackage/bin/" includes="**/*.class"/>
   </jar>
   <signjar jar="${output_jar_server}" alias="nobrakes" storepass="secret" keystore="nobrakes.keystore"/>
</target>

<target name="gen_keys">
   <genkey alias="nobrakes" storepass="secret" keystore="nobrakes.keystore">
      <dname>
          <param name="CN" value="No Brakes Media Osk."/>
          <param name="OU" value=""/>
          <param name="O"  value="nobrakesmedia.com"/>
          <param name="C"  value="FI"/>
        </dname>
   </genkey>
</target>
   
</project>

Offline DzzD
« Reply #16 - Posted 2010-02-03 20:46:33 »

dont know about versionning over php but as said before there is probably low price and/or freeSVN server, I am a bit paranoid and preferabily use SVN aswell as mirror folder on two separated hard drives as a low cost raid 1 software solution...

Offline i30817

Junior Member





« Reply #17 - Posted 2010-02-04 17:53:24 »

I have netbeans + java + svn on my pen. With a little bit of config file hacking, netbeans can be set to use relative paths (so your configs are on a directory adjoining or netbeans itself contained on another dir).

Then i just copy this directory to the computer i am using and use it from there (i hardcode the jdk to the pen - since pens have the same names).

It can even work on linux too since netbeans uses a bash script, and you can point it to another config file.


Then i put my projects on google code and the local copies on the pen somewhere, and copy the dir to the desktop to run it (much faster, less harsh on the pen)

It's a little bit irritating when i need to update the ide, or installing plugins or accept certificates/passwords (run from the pen) but it works ok.
Offline JL235

JGO Coder


Medals: 10



« Reply #18 - Posted 2010-02-13 13:00:27 »

A source control system is the best solution (i.e. Subversion), either by running it yourself or provided by one of the many free project hosting sites.

But another suggestion is to get a GMail account and then install GMail Drive on all the machines. It's a shell extension that makes your GMail account look like just another a networked folder. You can then just drag and drop source-code in and out from the folder as though it's a file server.

Offline h3ckboy
« Reply #19 - Posted 2010-02-14 16:22:24 »

I tried the Gmail drive thing. And it looks pretty cool Smiley.
Offline JL235

JGO Coder


Medals: 10



« Reply #20 - Posted 2010-02-16 20:23:14 »

Forget GMail drive, I think I've found exactly what you need. Windows Live Mesh. Only in beta, but it's 5gb of online storage space which will automatically upload and backup marked folders to it. It will also sync the content of these folders across multiple PCs for you, plus online access through the website.

Best of all it's entirely free!

Offline delt0r

JGO Coder


Medals: 22


Computers can do that?


« Reply #21 - Posted 2010-02-17 14:13:30 »

As someone doing the same thing. Working between the 3 machines at home, a laptop and 2 machines at work plus  the cluster, I use git. I would recommend using a decentralized version control in this situation as svn(what i tried first) really doesn't like it if 2 different versions are out of sync. Merging is a pain, and often doesn't work. I had problems with the repository getting corrupted. 

So i use git. When i work on something on the train on the laptop, where i forgot to update from my "central server", i just pull when i get an internet connection and 99.9% I get a clean merge.  I often end up with 2-3 versions of little changes that i just forgot. I do a full pull push just before release to ensure everything is there. (or do a fetch diff to just check).  The other thing i like about git is i get a clean directory to work in. I don't need eclipse to support git. Its completely transparent. While SVN and CVS where not.

If you use windows however git may not be the best tool since it has poor windows support. However there are other decentralized version control tools out there that work pretty good too. I would never recommend centralized version control anymore.  Note i am the ONLY developers working on this code, and decentralized rocks. But i still have a "central" server that I push and pull from. I use dynDNS so i can access it anywhere, but there are public git servers around too.

cheers
Detl0r, defender of the integrator.

I have no special talents. I am only passionately curious.--Albert Einstein
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (48 views)
2014-04-15 18:08:23

BurntPizza (44 views)
2014-04-15 03:46:01

UprightPath (60 views)
2014-04-14 17:39:50

UprightPath (42 views)
2014-04-14 17:35:47

Porlus (58 views)
2014-04-14 15:48:38

tom_mai78101 (82 views)
2014-04-10 04:04:31

BurntPizza (140 views)
2014-04-08 23:06:04

tom_mai78101 (240 views)
2014-04-05 13:34:39

trollwarrior1 (200 views)
2014-04-04 12:06:45

CJLetsGame (207 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!