Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   NRG Code Repository (http://www.chiefdelphi.com/forums/showthread.php?t=24360)

Guest 25-01-2004 18:06

NRG Code Repository
 
The code repository at http://nrg.chaosnet.org/repository is finished.

Anybody can view the code already posted there, but you need to register for an account at the above website to add code.

The repository works only if people add and view code fairly. If you're gonna use it, add some code too! If you have any questions post them here.

If you see any "bad" code, tell me so I can delete it.

And give some reputation to anybody whose code you use! :)

Raven_Writer 26-01-2004 08:37

Re: NRG Code Repository
 
Great job!

Just 2 suggestions so far:

1] Add a way so that when you login, you don't have to do it everytime you return (just like the "Remember Me?" checkbox on CD).

2] When you do login, just redirect the user to where they were before logging in. Or atleast redirect the page after 5 or so seconds.

Guest 26-01-2004 13:26

Re: NRG Code Repository
 
Problem (2): Fixed.

Problem (1): I'm figuring out how to do the "Remember Me" box right now.

Thanx for the help!

Raven_Writer 26-01-2004 13:28

Re: NRG Code Repository
 
Quote:

Originally Posted by SilverStar
Problem (2) has been fixed.

I'm figuring out how to do the "Remember Me" box right now.

Thanx for the help!

Just store a cookie, and don't delete it when the session ends. I think that'll work anywho. I know PHP & ASP has functions to get info from a cookie.

Guest 26-01-2004 13:30

Re: NRG Code Repository
 
Got it.

Plz give reputation to anybody whose code you use. It'll tell them that they're appreciated and will make give people incentive to add useful code.

deltacoder1020 26-01-2004 13:45

Re: NRG Code Repository
 
you still need to replace the <base href="..."> with actual references in the links.

Guest 26-01-2004 13:51

Re: NRG Code Repository
 
I've kept the base tag AND changed all the "../uploads/" paths to absolute paths.

The rest of the links are in the same directory.

mtrawls 26-01-2004 14:01

Re: NRG Code Repository
 
Might I suggest a directory structure of some sort? By no means, I'm not saying I know what would be a good structure ... but certainly some directory structure might help. Perhaps you could group it by input: a directory for controlling robot features using a pot, another using limit switches, gyros, encoders, etc. Maybe a special directory for autonomous code. Maybe a directory for code to control driving, and another for other elements of the robot.

The directories would, in my mind, help people to know what to contribute to the repository. Certainly short snippets that, say, lift a robotic arm via some switch, or control a gripper via pots, would help in training people to program the robot -- if they are sufficiently well-written, and well commented. The project sounds like it has potential.

Guest 26-01-2004 14:02

Re: NRG Code Repository
 
Adding folders right now...

Raven_Writer 26-01-2004 15:40

Re: NRG Code Repository
 
Is it possible to move the code that was previously submitted before the changes (folders)?


Also, I don't really see the need to let the user create a new folder. What if someone just does the process over & over again, flooding the server & using up more bandwidth than needed?

Guest 26-01-2004 15:41

Re: NRG Code Repository
 
* Disabling new folder method (except for admins)
* Adding move feature (you can move your own code, and admins can move any code)

Standby...

Raven_Writer 26-01-2004 15:43

Re: NRG Code Repository
 
Quote:

Originally Posted by SilverStar
* Disabling new folder method (except for admins)
* Adding move feature (you can move your own code, and admins can move any code)

Standby...

Ok. Great job so far though mate!

I hope this pans out for the best.

Guest 26-01-2004 15:48

Re: NRG Code Repository
 
echos asked about posting rights.

To make it clear:
To get posting rights, you must register for an account at nrg.chaosnet.org. Make sure you put your team number on the register page.

echos 26-01-2004 15:56

Re: NRG Code Repository
 
Could you make it highlight the syntax of php files?

here is the function
http://us3.php.net/manual/en/functio...light-file.php

Guest 26-01-2004 15:59

Re: NRG Code Repository
 
A problem with the highlighting:

When you download the code, it's supposed to give it to you in "pure text" so that you can simply save it. So, I'll add another option - "View with Highlighting" - good idea!


All times are GMT -5. The time now is 01:26.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi