Go to Post Once you have a lathe you'll wonder how you ever got through life without one. - Wayne TenBrink [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-01-2004, 18:06
Guest
 
Posts: n/a
Exclamation 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!

Last edited by SilverStar : 26-01-2004 at 14:03.
  #2   Spotlight this post!  
Unread 26-01-2004, 08:37
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
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.
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #3   Spotlight this post!  
Unread 26-01-2004, 13:26
Guest
 
Posts: n/a
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!

Last edited by SilverStar : 26-01-2004 at 13:29.
  #4   Spotlight this post!  
Unread 26-01-2004, 13:28
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
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.
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #5   Spotlight this post!  
Unread 26-01-2004, 13:30
Guest
 
Posts: n/a
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.
  #6   Spotlight this post!  
Unread 26-01-2004, 13:45
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: NRG Code Repository

you still need to replace the <base href="..."> with actual references in the links.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #7   Spotlight this post!  
Unread 26-01-2004, 13:51
Guest
 
Posts: n/a
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.
  #8   Spotlight this post!  
Unread 26-01-2004, 14:01
mtrawls's Avatar
mtrawls mtrawls is offline
I am JVN! (John von Neumann)
#0122 (NASA Knights)
Team Role: Programmer
 
Join Date: Mar 2003
Location: Hampton, VA
Posts: 295
mtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to behold
Send a message via AIM to mtrawls
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.
  #9   Spotlight this post!  
Unread 26-01-2004, 14:02
Guest
 
Posts: n/a
Re: NRG Code Repository

Adding folders right now...
  #10   Spotlight this post!  
Unread 26-01-2004, 15:40
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
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?
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #11   Spotlight this post!  
Unread 26-01-2004, 15:41
Guest
 
Posts: n/a
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...
  #12   Spotlight this post!  
Unread 26-01-2004, 15:43
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
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.
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #13   Spotlight this post!  
Unread 26-01-2004, 15:48
Guest
 
Posts: n/a
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.
  #14   Spotlight this post!  
Unread 26-01-2004, 15:56
echos's Avatar
echos echos is offline
Jack of all trades
#1125
Team Role: Programmer
 
Join Date: Dec 2003
Location: San Diego, CA
Posts: 61
echos will become famous soon enough
Send a message via ICQ to echos Send a message via AIM to echos Send a message via MSN to echos Send a message via Yahoo to echos
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
__________________

Entity Hosting Staff
http://www.entityhosting.com/
  #15   Spotlight this post!  
Unread 26-01-2004, 15:59
Guest
 
Posts: n/a
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!
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is your most prefered programming language? Hailfire Programming 156 19-01-2005 21:42
InfraRed autonomous code ... mtrawls Programming 1 11-01-2004 00:25
Autonomous code PBoss Programming 7 14-01-2003 15:29
Does your team use the Default code. Jeff McCune General Forum 2 09-01-2003 14:46
Patent source code? Kyle Fenton Chit-Chat 3 20-10-2001 17:53


All times are GMT -5. The time now is 19:53.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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