Wednesday, November 13, 2013

Changes 11/13/11

Web Design:

  • Added Math Drill link to homepage banner
  • Added styling for an <hr> element with class=solid_dark that allows for a border only on the top and bottom, but not sides of an element to be added (used in banner and navigation sections so far)
  • Couldn't figure out why the <hr> element has a 1px gap under the <nav> element (any ideas?)

Tuesday, November 12, 2013

Changes 11/12/11

Web Design:

  • Switched <link> tag loading stylesheet to style="@import(general.css);"
  • <link> tag documentation for html5 is very confusing, says if you want to use it in body you should use the itemprop attribute instead of rel, but I couldn't figure out what to set itemprop to. w3 <link> docs
  • Tried to figure out why jQuery code wasn't picking a random color on page load, but couldn't figure out the syntax

Friday, November 8, 2013

Changes 11/8/13

Web Design:

  • Made padding on the header links table look better
  • Changed what the header said
  • Added links to blog and another page to header
  • Added a custom <hr> element to create a border only on the bottom of the header
  • For some reason the page won't validate, and I couldn't figure out why. The error was:
    Line 56, Column 61: Element link is missing required attribute property. <link href="css/header.css" rel="stylesheet" type="text/css">

Thursday, November 7, 2013

Changes 11/7/13

Django:

  • Read some of the Django documentation

Web Design:

  • Set body margin to 0 on page
  • Started working on a header for the page
  • learned about <link> element for linking to css stylesheets, apparently it's better to use than @import url()

Wednesday, November 6, 2013

Changes 11/6/13

The post below will not be updated, please refer to this page instead

Converting a Bottle program to be Google App Engine compatible:

  1. Downloaded Google App Engine Python SDK and used google_appengine/dev_appserver.py math_drill/ rather than python3 run.py to build while testing
  2. Added from bottle import * in the import statements (I think that fixed something)
  3. Added app = Bottle() in order to:
    • Change all of the default @bottle.route() statements to @app.route() because that was causing errors
    • Changed bottle.run() statement to be bottle.run(app=app, server="gae")
  4. Created a file app.yaml:
    application: math-drill
    version: 1
    runtime: python27 #Python3 not supported, so 2.7 was used
    api_version: 1
    threadsafe: no #One tutorial said to do this, but since threads are not used it probably doesn't matter
    
    handlers:
    - url: /static
      static_dir: static
    
    - url: /.*
      script: run.app #Using run.py causes strange debug output to show up on the webpage
    
  5. With that all set up, it was uploaded to GAE using google_appengine/appcfg.py update math_drill/

Resources Used

Monday, November 4, 2013

Changes 11/4/13

Bottle:

  • Did a ton of troubleshooting and fixing and got GAE to accept the app
  • Added code app = Bottle(), and changed bottle.run() to app.run, etc
  • Almost uploaded it but didn't have time

Friday, November 1, 2013

Changes 10/1/13

Bottle:

  • Fixed refresh button, making it use location.reload(true) instead of history.go(0)
  • Uploaded math_drill to students.gctaa.net so it can be added to bottle zoo so proud

SO PROUD

  • Installed google app engine and set up yaml file
  • I think it isn't finding the template directory though because the page loads with no lines of html or anything