August 21, 2008, 02:32:41 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Get quality web hosting, virtual private servers, reseller web hosting, and dedicated servers from www.webhostfreaks.com or www.serverpowered.com!
 
   Home   Help Search Calendar Rules Staff List Login Register  
Pages: [1] 2 3
  Print  
Author Topic: Competition #1: PHP GD Graphing Calculator  (Read 11063 times)
0 Members and 1 Guest are viewing this topic.
Crayon Violent
Stupid 2.0
Super Moderator
**********
Offline Offline

Posts: 4,963


Super Ninja Monkey


View Profile
« on: November 16, 2006, 03:43:22 AM »

Welcome to what will hopefully be the first of many more to come official PHPFreaks scripting/design contests!

Now, we have decided to kick this thing off with a small(er) challenge, with the hopes that many people will be enticed to sign up! We think that the subject of this contest will be easy and small enough for the average Joe scripter and yet challenging enough for the more advanced scripters out there, alike.  So without further ado, the official first contest "theme" will be to design and code a:

PHP GD Graphing Calculator!

Contest details:
The minimum basic coding/design requirements for your php graphing calculater will include the script/buttons necessary to complete the following functions: 

  • Basic math: addition/subtraction/division/multiplication
  • Logrithmic functions - ln, log, x^y
  • Trig functions - sin(), cos(), tan() of basic 2D equations
  • Traversal of the axis (x and y)

In addition to the basic functions, you may do 'advanced' functions, which will be judged and awarded seperately, such as (but not limited to):

  • Anything 3D
  • Zoom capability
  • Plotting multiple equations on the same graph


The duration of this contest will be one month.  You have exactly one month to have your calculator posted to be judged.  No exceptions will be made!  In the unlikely event that you somehow manage to lose ability to host your entry at the deadline, please say so; there are several people including myself that can accomodate hosting for your entry. 

Deadline Date: Dec 16th, 2006 11:59p pst

The judges of this contest are: To be disclosed in due time..

In addition to these requirements,
There are some rules you must follow:

Rule #1:
This contest is a solo coder contest.  That means that it is you pitting your skills against other contestants on a single coder basis.  The exception to this rule is that you may have a designer type person help you out on the "look" of your calculator.  So if you are one of those people who just doesn't "do" design, feel free to beg borrow or steal someone's help on that.  But only that.  No getting other people to directly code with/for you!

Rule #2:
All functions, calculations, graph drawing, interface, etc.. etc.. must be done with ONLY PHP and HTML.  You may use images for buttons or the overall "look" of the calculator, but they must be standard images such as .png, .gif, or .jpg. Flash objects, java applets, activeX controls,  or anything of that sort are NOT allowed as an interface. 

Rule #3:
All functions must be "drawn" to your graph using PHP's GD library.  Again, no using java, javascript, flash, activeX, etc.. to draw your graph.  We want this to remain as strictly PHP as possible. 

The ONLY exception to rules #2 and #3 is that you may use AJAX if you wish to do certain things like minimize the "refresh the whole page" thing.  Judges are advised to be somewhat lenient on what exactly is and is not allowed with AJAX, but you should also be advised that all your hard work you put into making some "feature" might be thrown out the window on even the smallest technicality or even by some silly whim.  You may certainly NOT use AJAX (Javascript) for any kind of calculations or drawings.  Again, if you wish to go the AJAX route, tread carefully. 

Rule #4:
No asking for help on the PHPFreaks forums! Now I realize that this kind of puts us at an awkward situation here. You see, we hope for this to be, among other things, a learning experience for people; that's part of what makes contests challenging.  Now on the one hand, in order to figure out and learn something, you must find a learning resource, and phpfreaks.com just so happens to be a convenient place to seek some help.  But on the other hand, we don't think it's entirely fair for contestants to go asking how to do blah or what blah does, etc.. as this can force you to give away your calculator features that you hope will blow away the competition.  Also it kind of takes away the challenge if, you know, you have the answers all right there sitting in front of you. 

You are certainly welcome to make use of the search function to find related threads/posts for your issues, and you are certainly welcome to make use of tutorials or other resources on phpfreaks.com, on a READ ONLY basis.  Do not make a thread or post asking for help with coding or how to do something having to do with this contest.  Do not PM other people asking for coding help; this includes regular members, not just recommended members or moderators. 

If you are caught violating any of the rules (rule violations are determined soley at the judge's discretion), disciplinary action shall be used against you, up to and including termination from the contest.

You are, of course, allowed to post questions asking for clarification on the rules, etc.. and also just to talk smack about how much your calculator is gonna pwn everybody else's. But only in this thread, and only in moderation. 

There is no official "signup" for this, though it would be nice if you made a post stating your intention to participate. You can technically start on the last day and bust something out and submit it if you're badass like that. 

« Last Edit: December 12, 2006, 11:50:11 AM by ober » Logged

Take my advice for what it's worth, for I am not the brightest crayon in the box...
Quote from: ober
Umm... no.  See how much power I have?  I can just say no... and it stays that way Wink
KingPhilip
Member
Offline Offline

Posts: 373



View Profile WWW
« Reply #1 on: November 16, 2006, 10:43:26 PM »

I'm game Smiley

Edit: Too bad I don't have enough time. I dunno if I can finish or not -- stupid college essays
« Last Edit: November 22, 2006, 10:13:52 PM by KingPhilip » Logged

$Yummy = $_COOKIE['choc_chip'];
heckenschutze
Member
Offline Offline

Posts: 444



View Profile
« Reply #2 on: November 17, 2006, 08:36:14 AM »

Yes, I will compete Smiley

Already finished the interface / planning / layout Cheesy
Logged
Barand
Sen . (ile || sei) You decide
Super Moderator
**********
Online Online

Posts: 14,366


php 4.3/5.1 MySql 5.0.1


View Profile
« Reply #3 on: November 17, 2006, 04:15:09 PM »

OK. I'll throw my hat in the ring too.

One question, how are submissions to be made? One's not going to post the code here, especially if it's finished with a couple of weeks to go.

Well, two questions. If one submits after say two weeks, then improves on it and makes a second, or even an Nth submission, then which one counts? The first or the final before the deadline?

OK, three. Is the Freaks site providing an area for submissions for those who don't have PHP-hosted site of their own?
Logged

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts
|baaSelect| generate js and php code for dynamic linked dropdowns
|AJAX/xmlhttp| article and sample application
heckenschutze
Member
Offline Offline

Posts: 444



View Profile
« Reply #4 on: November 17, 2006, 04:51:22 PM »

Yes, Cause it would be unfair to show submissions that others could copy.

And, are we allowed to use any 3rd party math parser libraries ?
Logged
ober
Pandas pwn j00
Administrator
**********
Offline Offline

Posts: 7,256


404? what!?


View Profile WWW
« Reply #5 on: November 17, 2006, 07:27:02 PM »

No 3rd party stuff.

Submissions have not been figured out yet, but it would be in your best interest to wait until you hear further before posting. 

Only one submission counts.  Any subsequent entries will be deleted.

Hosting is up in the air as well.  I may offer up my own hosting.
Logged

PHP 5 - MySQL 5 - Win XP - Opera 9.5, Firefox 3, IE 7
Info: PHP Manual
Crayon Violent
Stupid 2.0
Super Moderator
**********
Offline Offline

Posts: 4,963


Super Ninja Monkey


View Profile
« Reply #6 on: November 18, 2006, 02:15:28 AM »

wait until the deadline to post submissions. 

if you don't have a way to post your submission (like no host), then say something.  There are several people able to host it for you (including myself).  All submissions become open source, so don't worry about someone "stealing" your code, because it will no longer be yours anyways.  Except for your name being attached to it, anyways.  My host supports both php4 and php5.

Logged

Take my advice for what it's worth, for I am not the brightest crayon in the box...
Quote from: ober
Umm... no.  See how much power I have?  I can just say no... and it stays that way Wink
heckenschutze
Member
Offline Offline

Posts: 444



View Profile
« Reply #7 on: November 18, 2006, 06:05:28 AM »

Yeah, Sorry to be a pest, I cannot get hosting for the submission...

But for development I can just use my PC...

Logged
KingPhilip
Member
Offline Offline

Posts: 373



View Profile WWW
« Reply #8 on: November 18, 2006, 05:05:46 PM »

Okay, I need some clarifications on the requirements:

Quote
  • Basic math: addition/subtraction/division/multiplication
  • Logrithmic functions - ln, log, x^y
  • Trig functions - sin(), cos(), tan() of basic 2D equations
  • Traversal of the axis (x and y)

Within basic math, is it required to have it be able to do parenthesis ( ) like the following equation:
(3(sin(X)+(x^3)))/(x)
which looks like on paper:
3sin(x) + 3x^3
         x

 
or is it just optional?

Also, trig functions, all trig functions (include arcs and inverse) or just the basics (sin, cos, tan?)
Logged

$Yummy = $_COOKIE['choc_chip'];
redbullmarky
I Like Peas.
Global Moderator
**********
Offline Offline

Posts: 3,082


you more...


View Profile
« Reply #9 on: November 18, 2006, 05:15:44 PM »

Within basic math, is it required to have it be able to do parenthesis ( ) like the following equation:
(3(sin(X)+(x^3)))/(x)
which looks like on paper:
3sin(x) + 3x^3
         x

 
or is it just optional?

Also, trig functions, all trig functions (include arcs and inverse) or just the basics (sin, cos, tan?)

...

i wish i'd have listened more in class
Logged

"you have to keep pissing in the wind to learn how to keep your shoes dry..."

I say old chap, that is rather amusing!
KingPhilip
Member
Offline Offline

Posts: 373



View Profile WWW
« Reply #10 on: November 18, 2006, 05:21:40 PM »

Yeah, I'm having to teach myself Calculus for my AP class. Sad My teacher can't teach well.

Also, are there any requirements on the size of the graph image?
« Last Edit: November 18, 2006, 05:24:41 PM by KingPhilip » Logged

$Yummy = $_COOKIE['choc_chip'];
ober
Pandas pwn j00
Administrator
**********
Offline Offline

Posts: 7,256


404? what!?


View Profile WWW
« Reply #11 on: November 18, 2006, 10:09:04 PM »

Not sure... I think we had decided 300x300 or 400x400 (pixels).  But honestly, as long as it's a decent size, you won't get docked.
Logged

PHP 5 - MySQL 5 - Win XP - Opera 9.5, Firefox 3, IE 7
Info: PHP Manual
KingPhilip
Member
Offline Offline

Posts: 373



View Profile WWW
« Reply #12 on: November 19, 2006, 01:18:26 PM »

Okay, that's not too bad. Smiley

What about the other things I asked?
Logged

$Yummy = $_COOKIE['choc_chip'];
ober
Pandas pwn j00
Administrator
**********
Offline Offline

Posts: 7,256


404? what!?


View Profile WWW
« Reply #13 on: November 19, 2006, 06:04:45 PM »

You should be able to do parens.... arcs and inverses are optional and considered "advanced" for this competition.  You will get points for the advanced stuff, but it still won't help you win if you don't meet the other requirements.

Advanced options will be judged on a weighted factor.
Logged

PHP 5 - MySQL 5 - Win XP - Opera 9.5, Firefox 3, IE 7
Info: PHP Manual
Monkeymatt
Member
Offline Offline

Posts: 35


EKINboard Administrator


View Profile WWW
« Reply #14 on: November 19, 2006, 11:47:57 PM »

I'll be joining. Any idea what the prizes will be like?

Monkeymatt
Logged
Pages: [1] 2 3
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.071 seconds with 19 queries.