Omnimaga

General Discussion => Technology and Development => Web Programming and Design => Topic started by: ruler501 on March 27, 2011, 09:53:06 pm

Title: saveTrees Web Project
Post by: ruler501 on March 27, 2011, 09:53:06 pm
This will be a thread for development of my school project. There will be a few new users I know joining to help me with it.

This project is a plan to help with the destruction of the rain forest. We are making a website on the basis of freerice.com and changing it. We are making a site where every every x questions you answer correctly we will plant one tree. right now we do not even have a beta(I am still learning/getting the hang of django)
I will have introductions here later with more information

the website is at http://savetrees.alwaysdata.net/

Quote from: musicalgamer484
O.k. For all the newcomers: Welcome to team SaveTrees (or something)!
If you have been added to the team, that means that we think you could help us with the class website. Write anything that you think might help contribute to our success in prevent the disappearance of the rainforest.
Every thought counts! All idea credit goes to the Triple AAA's. Be sure to thank ruler501.

All contributions are appreciated.

The Current Team:
Head:
wowyguy

Programmer:
leader:ruler501

Designers:
leader:musicalgamer484

testers:
Thedenvy


Helper:
Michael_Lee

EDIT: I have now attached the source for this project. i will try to update it regularly till I figure Out how to get an SVN set up to do it for me

EDIT2: I have had to upload the source to another site because of size http://www.mediafire.com/?zi4nfwfx5cfob3a

EDIT3: I got very angry at always data and now have the website on http://savetrees.dyndns-server.com/ . I know the link leads to a 500 error.
Title: Re: saveTrees Web Project
Post by: Thadenvy on March 27, 2011, 09:56:40 pm
I heard that we'd plant a tree for every twenty questions answered right.
Title: Re: saveTrees Web Project
Post by: DJ Omnimaga on March 27, 2011, 10:05:21 pm
Hi and welcome here Thadenvy by the way. Also I can't wait to see the website. The project seems kinda interesting. Are you allowed to get help from outside school? I'm sure some people might be happy to give suggestions on the site here when it comes online. :)
Title: Re: saveTrees Web Project
Post by: jnesselr on March 27, 2011, 10:11:32 pm
I heard that we'd plant a tree for every twenty questions answered right.
Welcome to omnimaga.  Do you know ruler501 personally?
Title: Re: saveTrees Web Project
Post by: Thadenvy on March 27, 2011, 10:15:39 pm
Yes, I do. Anyways, I only know the basics to HTML, such as formatting fonts, and setting pictures and images.
Title: Re: saveTrees Web Project
Post by: jnesselr on March 27, 2011, 10:16:59 pm
Yes, I do. Anyways, I only know the basics to HTML, such as formatting fonts, and setting pictures and images.
ah, okay.  Do you use html directly here, or do you use something like dreamweaver?  Where will this be hosted?
Title: Re: saveTrees Web Project
Post by: Thadenvy on March 27, 2011, 10:22:43 pm
Hmm, we should be using this in a place where our school networks can access it. Mainly, it should be able to get through the average school firewall. I don't know about the dreamweaver or direct HTML, because that would have mainly been ruler501's job, while my job is to help with testing and formatting.
Title: Re: saveTrees Web Project
Post by: musicalgamer484 on March 27, 2011, 10:26:03 pm
Hi everyone! I am one of said new users. I hope to help with design, ideas, and general programming.
Any audio help is my forte.
Title: Re: saveTrees Web Project
Post by: jnesselr on March 27, 2011, 10:29:06 pm
Oh my, there's a bunch of new members.  Welcome to omnimaga.  If you would please introduce yourself here (http://www.omnimaga.org/index.php?board=10.0), we would be able to get to know you better.  Thank you!  (We also give peanuts and make you lose the game, so beware)
Title: Re: saveTrees Web Project
Post by: ruler501 on March 27, 2011, 10:32:03 pm
I posted the url. I have no idea on how to upload files there though. anyone have an idea.
I'm sure we're allowed help(It is not for a grade I don't think) Its a fun class project(for now)
Title: Re: saveTrees Web Project
Post by: Michael_Lee on March 27, 2011, 10:33:38 pm
Just to let you know, Norton just told me that that was a malicious website.

There doesn't appear to be anything on it, though...
Title: Re: saveTrees Web Project
Post by: ruler501 on March 27, 2011, 10:35:15 pm
There isn't anything I have no clue how to add things. Norton told me the same thing. I has also said that about omnimaga before. Norton is evil.

Anyone have any ideas on how to upload files?
Title: Re: saveTrees Web Project
Post by: musicalgamer484 on March 27, 2011, 10:36:57 pm
I posted the url. I have no idea on how to upload files there though. anyone have an idea.
I'm sure we're allowed help(It is not for a grade I don't think) Its a fun class project(for now)

I'm still working on contacting my dad for that. I'm sure he can help, though: it's his exact area of profession.
Title: Re: saveTrees Web Project
Post by: ruler501 on March 27, 2011, 10:38:53 pm
I'm glad for all possible help

This is a very big project for someone just starting on django two days ago.

I lost the game reading this
Title: Re: saveTrees Web Project
Post by: DJ Omnimaga on March 27, 2011, 10:41:11 pm
Ok thanks for the URL. I'll check again when it comes online. Good luck and also welcome to the new people. :)
Title: Re: saveTrees Web Project
Post by: musicalgamer484 on March 27, 2011, 10:45:37 pm
AWWWh! I wanted to be Head of Design! I will learn that code. Thanks for posting my speech.
Title: Re: saveTrees Web Project
Post by: ruler501 on March 27, 2011, 10:47:22 pm
I will make you head of design if you get the template language down well.
I will give you something I need templates for later. How well do you understand Django templates right now?
Title: Re: saveTrees Web Project
Post by: musicalgamer484 on March 27, 2011, 10:48:47 pm
I'm glad for all possible help

This is a very big project for someone just starting on django two days ago.

I lost the game reading this
I also lost the game.... should we spread word for recruiting? I have a feeling this is going to get really big, really fast.
Title: Re: saveTrees Web Project
Post by: musicalgamer484 on March 27, 2011, 10:49:51 pm
I will make you head of design if you get the template language down well.
I will give you something I need templates for later. How well do you understand Django templates right now?
I understand what I need to do. None of the philosophy, though.
Title: Re: saveTrees Web Project
Post by: ruler501 on March 27, 2011, 10:49:56 pm
It might. This is a great site for getting help I have found.
If people find it and ask to join the team I will let them

How do I set up a code repository for this that automatically updates itself?

EDIT: try not to double post just edit your posts. When you get how to use it(possible custom blocks) I will promote you to design leader
Title: Re: saveTrees Web Project
Post by: musicalgamer484 on March 27, 2011, 10:52:29 pm
The Django should be easier after a few days. I already understood most of the rules of coding.
I feel like such a newb.
Title: Re: saveTrees Web Project
Post by: ruler501 on March 27, 2011, 10:54:51 pm
So did I till I had my first projects finished/started here. Now I feel more like a (hopefully valued)member.

The coding side is a little more complicated.
Damn Sqlite. does anyone know how to check this?
Title: Re: saveTrees Web Project
Post by: musicalgamer484 on March 27, 2011, 10:56:24 pm
It might. This is a great site for getting help I have found.
If people find it and ask to join the team I will let them

How do I set up a code repository for this that automatically updates itself?

EDIT: try not to double post just edit your posts. When you get how to use it(possible custom blocks) I will promote you to design leader
I haven't double-posted yet, thank you! And make that a deal on being Design leader.
Title: Re: saveTrees Web Project
Post by: ruler501 on March 27, 2011, 10:57:46 pm
You did double post... thats not a big deal though

I hope to see your great work with templates/graphics

We could use someone who knows javaScript if anyone wants to join
Title: Re: saveTrees Web Project
Post by: musicalgamer484 on March 27, 2011, 11:04:51 pm
If I have double posted, I had no idea.
I will do my best.
It feels weird to be involved in something with such great potential....and not being alone...no one ever considers me, so thanks. I'll work hard for the position on this team.
Title: Re: saveTrees Web Project
Post by: musicalgamer484 on March 27, 2011, 11:12:25 pm
Dude, it's weird...you sound like a boss or something..like you're a CEO of a company. It's weird to hear that from you, the most sadistic person I know (other than myself).
Title: Re: saveTrees Web Project
Post by: ruler501 on March 28, 2011, 12:01:49 am
I'm not sadistic. When I want to get something done I get it done in the best most efficient way i know. This is me trying to do that Triple AA is still the leader I just am temporarily setting things up.
I've always been told that I naturally adapt to be a leader in a situation and I guess this just another example of whoever said that being proved right.
Title: Re: saveTrees Web Project
Post by: jnesselr on March 28, 2011, 06:51:24 am
Yeah, please don't double post in threads.   The rules page (see link at the top menubar) gives rules for things like posting twice in a row on the same thread in a short amount of time.  Thank you. ;-)
Title: Re: saveTrees Web Project
Post by: Thadenvy on March 28, 2011, 06:11:50 pm
My primary goal is to be able to test the website, and to note every detail of error.
Title: Re: saveTrees Web Project
Post by: ruler501 on March 28, 2011, 10:30:38 pm
We need someone to test the security of it(any prospective hackers out there). That will be later though
Title: Re: saveTrees Web Project
Post by: DJ Omnimaga on March 30, 2011, 02:55:48 am
I lost the game reading this
I also lost the game....
-.- I think I did like 8 times today. :crazy:

Anyway good luck people on this.
Title: Re: saveTrees Web Project
Post by: ruler501 on March 30, 2011, 08:31:29 am
Thank you DJ.
off,topic.I can usually keep my losing the game down on these boards. I just lost the game by talking about the gme,</offtopic>
Title: Re: saveTrees Web Project
Post by: ruler501 on March 31, 2011, 08:56:04 am
sorry for the double post but I have an update
I have the first page working now all it needs is  a template
I have a few errors I'll elaborate on later when I have time
Title: Re: saveTrees Web Project
Post by: musicalgamer484 on April 02, 2011, 06:41:08 pm
My primary goal is to be able to test the website, and to note every detail of error.

....Please don't be too harsh about our surely coming fails, o.k.?
 As ruler501 knows, I fail quite often.... :-[
Title: Re: saveTrees Web Project
Post by: DJ Omnimaga on April 06, 2011, 03:50:40 am
Lol don't worry about it here. We'll give suggestion and criticise stuff to help improve but we try to be as less harsh as possible and we try to be constructive. :D
Title: Re: saveTrees Web Project
Post by: ruler501 on April 10, 2011, 08:11:39 pm
I'm only insulting in real life ;)
Always be positive online

Not much happening since I can't figure out how to upload the damn files and I've been gone most of the week(sunday-Thursday until mid afternoon; Friday night-Sunday mid-afternoon)
Title: Re: saveTrees Web Project
Post by: Ashbad on April 10, 2011, 09:48:48 pm
We need someone to test the security of it(any prospective hackers out there). That will be later though

I know some extremely avid hackers extremely avidly well ;) if you want me to, I can get them to test hack your site.
Title: Re: saveTrees Web Project
Post by: AngelFish on April 10, 2011, 09:52:02 pm
Um, should the page linked in the original post be blank?
Title: Re: saveTrees Web Project
Post by: ruler501 on April 10, 2011, 10:02:53 pm
I have not figured out how to load the website up to the server yet. If someone could tell me how to do that It would probably not be blank.

@Ashbad Once I get more stuff working lets loose the hackers on it. [off topic]I would like to be taught how to hack if they someone would teach me. mainly for security checking[/off topic]
Title: Re: saveTrees Web Project
Post by: musicalgamer484 on April 17, 2011, 12:51:26 pm
I'm only insulting in real life ;)
Always be positive online

Not much happening since I can't figure out how to upload the damn files and I've been gone most of the week(sunday-Thursday until mid afternoon; Friday night-Sunday mid-afternoon)

AHEM. I already knew that. -growls- It's too bad that you're so insulting.
P.S. I am avidly looking into the loading problem...
Title: Re: saveTrees Web Project
Post by: Ashbad on April 17, 2011, 01:08:10 pm
Is it possible we can take a look at it and provide suggestions?  ;)
Title: Re: saveTrees Web Project
Post by: ruler501 on April 17, 2011, 04:08:06 pm
I am trying to figure out how to load it to the server I am using but currently having problems. I think I figured out part of it but now I'm trying to do what it says my computer won't let me

I'm trying to run the SSH from PuTTY and it says connection refused. I added it to the exception list on Windows Firewall so I can't figure out whats wrong. According to their docs I only need to run some SSH commands to get the site up.
Title: Re: saveTrees Web Project
Post by: Michael_Lee on April 17, 2011, 04:24:41 pm
Do you need any help?  If you want, I could try getting something up, if you wanted me to.
Title: Re: saveTrees Web Project
Post by: ruler501 on April 17, 2011, 07:46:33 pm
That would be great.

There might be one problem though. The documentation is in French I have been using Google Translate to try and read it.
If you want I will PM you the login info if you will help
Title: Re: saveTrees Web Project
Post by: Michael_Lee on April 17, 2011, 07:53:46 pm
Sure, go ahead.
Title: Re: saveTrees Web Project
Post by: ruler501 on April 17, 2011, 08:00:51 pm
Thank you so much if you can do anything. I really got frustrated at the website yesterday
Title: Re: saveTrees Web Project
Post by: Michael_Lee on April 17, 2011, 08:28:39 pm
Okay, I sent you a pm with details.  I didn't really want to use SSH, so I used FTP if it's all right with you.
Title: Re: saveTrees Web Project
Post by: ruler501 on April 17, 2011, 09:27:57 pm
Thats fine.I reuploaded the source and the new link is on the first post in the same place
Title: Re: saveTrees Web Project
Post by: DJ Omnimaga on April 21, 2011, 08:41:00 pm
Sorry I couldn't help much, unfortunately the doc seemed to lack any info on how to upload stuff where I checked. D:
Title: Re: saveTrees Web Project
Post by: ruler501 on April 21, 2011, 08:50:09 pm
I'm now  trying to use Apache to see if I could just get it running of of my computer, but the program I used to find my IP address returned to separate ones. One seems to be what I need but according to the internet is nonexistant and the other one redirects me to a verizon website(our ISP i believe).

When I try to start Apache 2.2 I get this error
Code: [Select]
Only one use of each socket address (protocol/network/address/port)
is normally permitted. : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
unable to open logs

What do I need to fix now?
Title: Re: saveTrees Web Project
Post by: DJ Omnimaga on April 21, 2011, 08:52:41 pm
Hmm strange. You may have to create a separate topic for that, though, so people can see it easier with the title and it might be helpful to others. I unfortunately have no experience on Apache myself, though.
Title: Re: saveTrees Web Project
Post by: ruler501 on April 21, 2011, 10:32:23 pm
If I run the apache server on my computer how do other people get to it?
Is it through my IP address? if so which one(LAN or WAN)

It is currently running and my firewalls are off
LAN IP 192.168.1.103(I think this is the correct one)
WAN IP 71.252.170.114
url should be http://192.168.1.103/
if this doesn't work please tell me so I can figure out whats going on
Title: Re: saveTrees Web Project
Post by: jnesselr on April 21, 2011, 10:54:57 pm
If I run the apache server on my computer how do other people get to it?
Is it through my IP address? if so which one(LAN or WAN)
Oh dear me.  There's some things you don't want to mess with.  This might just be one of them.  Essentially, and depending on how your network is set up, you open a port in the router to access your website.  They can access via IP, If it has a static IP.  Your router will probably configure it with DHCP, and you'll probably have a local IP and your network will share the same global IP.  At least, that's how mine is set up. (I don't have the port on my firewall open, though)

Essentially, you can do something like dynDNS to get a domain name for free, and run a client that automatically updates it's IP.  If you open the port in your router, you're pretty much set to go.  Not that I would advise this, mind you, because of security and uptime issues, not to mention that the cost is probably more if people are accessing your network, and you're having to send a lot more data than you usually do.
Title: Re: saveTrees Web Project
Post by: ruler501 on April 21, 2011, 11:00:20 pm
I don't know much about web development.
HOw do I set-up dynDS?
Title: Re: saveTrees Web Project
Post by: jnesselr on April 21, 2011, 11:04:46 pm
What system are you using again? Not apache, but OS.  Look here (http://www.dyndns.com/services/dns/dyndns/).
Title: Re: saveTrees Web Project
Post by: ruler501 on April 21, 2011, 11:10:38 pm
Windows 7 32 bit Home Premuim

I set up an address now what do I do
Title: Re: saveTrees Web Project
Post by: jnesselr on April 21, 2011, 11:18:00 pm
Windows 7 32 bit Home Premuim

I set up an address now what do I do
What type of router/connection do you have?  Is it ethernet, wireless, linksys, etc.  Essentially, log into the router (like 192.168.1.1 on my network), and set up a port that way.  To make sure dynDNS is working first, go to another computer inside the network, and try to access your site via the dyndns name.  This should work inside your network.  If not, make sure that the computer is on the network, and that dyndns is updating.
Title: Re: saveTrees Web Project
Post by: ruler501 on April 22, 2011, 12:47:44 pm
Westell A90-9100EM15-10 is my router
My parents don't know the login for my router. How do I find it?
Title: Re: saveTrees Web Project
Post by: jnesselr on April 23, 2011, 11:41:19 am
Westell A90-9100EM15-10 is my router
My parents don't know the login for my router. How do I find it?

You reset it.  There is literally no other way.  Or at least, none that I know of.  I still suggest you have something else host it, but that's just because you might have trouble with security and such on your home network, and it can make your bill go up.
Title: Re: saveTrees Web Project
Post by: ruler501 on April 23, 2011, 08:04:56 pm
I hope it doesn't make the bill go up.
I ahve it working now and have edited the first post to have the link to the dyndns url it was given
Title: Re: saveTrees Web Project
Post by: jnesselr on April 23, 2011, 09:19:59 pm
I see it's working.  I would monitor your data usage in case of a spike.  Also, remember, this is a possible security risk, especially if your parents do online banking or something of that nature.  Basically, you're opening port 80 on your network.
Title: Re: saveTrees Web Project
Post by: ruler501 on April 23, 2011, 09:21:54 pm
How do I monitor data usage? and what do I do to protect my computer/network?
Is there any way I can add security to my computer?
Title: Re: saveTrees Web Project
Post by: jnesselr on April 23, 2011, 09:28:51 pm
How do I monitor data usage? and what do I do to protect my computer/network?
Is there any way I can add security to my computer?
Well, this is why I advised against doing it this way.  First of all, is your network wpa encrypted?  (I'm not sure if this affects incoming data on an open port, though, but it should be encrypted anyway) For usage, try going to a terminal and typing "httpd status".  I'm not sure how to do that via GUI as I haven't done a whole lot with apache.  (You did say it was apache, right?)

Firewalls are a great way to have security, but you did just basically poke a hole through one of the ports.  Also, I'm hoping you don't use this computer for anything else, and never turn it off.  (One of the many other reasons you shouldn't directly host this)
Title: Re: saveTrees Web Project
Post by: ruler501 on April 23, 2011, 09:36:38 pm
My network is WEP encrypted.

I don't use this computer for much of anything else and It is almost always on
Title: Re: saveTrees Web Project
Post by: jnesselr on April 23, 2011, 09:55:35 pm
My network is WEP encrypted.

I don't use this computer for much of anything else and It is almost always on
Okay.  WEP is no longer considered secure, IIRC.
Title: Re: saveTrees Web Project
Post by: ruler501 on April 23, 2011, 10:07:45 pm
I no just my parents don't want me changing it to WPA2 or WPA.
Title: Re: saveTrees Web Project
Post by: jnesselr on April 23, 2011, 10:17:04 pm
I no just my parents don't want me changing it to WPA2 or WPA.
I see.  Well, not much else I can do, as this is the limit of my expertise in this area. Hope that goes well.
Title: Re: saveTrees Web Project
Post by: ruler501 on April 23, 2011, 10:19:28 pm
So do I.