- HIGH - Major Godshall's Teacher Account
- I need to create an aggregate statistics page for the major, as 63 pages for each section is not useful.
- HIGH - Fix Students who cannot see tasks
- There are two students who have emailed me saying they cannot see their assigned tasks. (One is especially terse and unhelpful -- his first problem report was 'survey...'. I may look like a wizard's apprentice but I do not actually have magical reading powers!) I have received no response yet as to what message they do see or what browser they use, and their database entries are correct. The task-fetch query returns correctly, their classes and groups are correct -- I even logged in as one and found everything working. Not being able to see tasks is pretty serious, though, so this is rated as HIGH.
- HIGH -- Tricia's site
- Just talked about this.
- HIGH -- Reminder emails
- I don't trust the current reminder programs to email each university correctly, so I've made my own manual program instead as a temporary solution. I need to rework the email entries in the database and automate this.
- MEDIUM -- Demographics survey fix
- A couple students still had troubles with the demographics survey. I haven't had time to bullet-proof it as I would like. I need to not only fix it, but record each error so I don't have to get information from the students. It's not urgent, however, as I can skip the students past the survey without trouble.
- MEDIUM -- Rutgers demographics
- Need to parse and enter Rutgers course and majors, then let them retake the demographics survey.
- LOW -- Problem Report reply-to
- Problem reports are emailed to me with my own address as reply-to. Change to reporter's address, so I don't need to copy-paste.
Friday, September 16, 2011
RAWR Ideas and Fixes, developed by running headlong into their problems
Right. Here's my list of things I will be working on. I'll try to migrate it from post to post, changing relevant information and adding new things. Issues are ordered more or less in matter of importance, with a priority heading as well.
Wednesday, August 10, 2011
![]() | |
| Pre- and post-tests |
![]() |
| RAWR |
Mostly presentation work today. I thought it was too long, timed myself, and found it was too short. I'll put it up in the Dropbox under Franklin Lab > Nathan as final_draft once I time myself to about ten minutes.
Tuesday, August 9, 2011
USMA Cadet's Stripes
![]() |
| Poor Wally has had to transfer so many times recently.... |
I added the West Point courses we need to the database. Physics I & II, Advanced Physics I & II, and their math counterparts, Calculus I & II and Multivariable Calc & Dif Eq (otherwise known as Advanced Calc I & II.) Those are just the basic physics courses and their pre- and co-requisites, although I can easily add more.
I also found a list of their majors and created another parsing program for it. Each major had a duplicate 'w/ Honors' list item, which was irritating but removable. I ended up leaving the different tracks (Foreign Language:German vs Foreign Language:Arabic, for example), because there ended up only being about 60-80 majors in the end. There wasn't a need to trim those down to something manageable. I'm a little worried that I missed a few, as the major list was only of what's available to this year's students. I hardcoded an 'Other' department and major into the list to take care of that.
Next up is the program that assigns tasks to groups. What there is now is serviceable but not flexible; I'd like to change it to allow for breaks, and a couple other little tweaks. I also need to work out the task lineup for each group. Their semester is...about 17 weeks, not including finals, including breaks.
EDIT: Just got the same response from Rutgers as West Point. Work through Rutgers Employee.
Monday, August 8, 2011
It's gotten bad; I typed :q in here to close the page
Could an immensely powerful text editor pose a dangerous and addictive threat to our nation's children? Find out more, tonight at 11!
Turns out it is a pain to find technical service emails on some university websites. The good news is that they all should have LDAP or something like it. I know for certain that Rutgers has at least five authentication systems. I don't know why. The 'Contact Us' page for that department is locked with one of those systems. I don't know why they did that either. It's a bit silly. I suspect that they may answer with the same as the West Point guy -- we need to work through our contacts. I thought as much, but it's worth a try. It did take a while to psych myself up for calling West Point -- it took me an hour to find the phone number, on a page emblazoned with US Army Signal Network Enterprise Center, with a picture of a grim brick of a detention facility, taken from a distance to allow the cameraman time to run away. Or so I assume.
I fixed a little SVN bug, which seems to have been hibernating for a while. It was irritating.
And the demographics form no longer has any RIT hardcoding. I added another field to the Course table, so I could tell which courses were math and which were physics (and possibly later for distinguishing other subjects like biology, chemistry, etc.). The form uses that to pull out the correct courses. The only hardcoded fields remaining are year and HS Physics, and even HS Physics can be very easily changed. Sam even put the HS courses in the database.
(Unrelated music recommendation!) And I did all this while listening to this. Never heard of the game before clicking play, but about two minutes after I'd decided to buy the songs, the game, worship the narrator, and be in acoustic/rockish/somethingish heaven the rest of the day.
Turns out it is a pain to find technical service emails on some university websites. The good news is that they all should have LDAP or something like it. I know for certain that Rutgers has at least five authentication systems. I don't know why. The 'Contact Us' page for that department is locked with one of those systems. I don't know why they did that either. It's a bit silly. I suspect that they may answer with the same as the West Point guy -- we need to work through our contacts. I thought as much, but it's worth a try. It did take a while to psych myself up for calling West Point -- it took me an hour to find the phone number, on a page emblazoned with US Army Signal Network Enterprise Center, with a picture of a grim brick of a detention facility, taken from a distance to allow the cameraman time to run away. Or so I assume.
I fixed a little SVN bug, which seems to have been hibernating for a while. It was irritating.
And the demographics form no longer has any RIT hardcoding. I added another field to the Course table, so I could tell which courses were math and which were physics (and possibly later for distinguishing other subjects like biology, chemistry, etc.). The form uses that to pull out the correct courses. The only hardcoded fields remaining are year and HS Physics, and even HS Physics can be very easily changed. Sam even put the HS courses in the database.
(Unrelated music recommendation!) And I did all this while listening to this. Never heard of the game before clicking play, but about two minutes after I'd decided to buy the songs, the game, worship the narrator, and be in acoustic/rockish/somethingish heaven the rest of the day.
Friday, August 5, 2011
Power in the point
Yup, that's bad. Couldn't think of another title.
Mostly been working on my presentation today. Changed a few slides, thought about some, added some notes and script. Little bit of practicing in my head, too. Doesn't feel like a Friday without doing most of your work on the presentation :). We also listened to and helped Alec with his presentation.
I found a Office solution for Alec. I feel silly for not having thought of it before. Once I get a demo version of something, a lot of the time I tend to hold on to it. I got my version of Office through their student deal a few years back. They let you download a file that would install Office as a trial, then gave you a product key you could enter to unlock it. Well, I still have the demo, and Alec's using it now. Plenty of time on it for him.Whenever Brett gets back to me I can install the full version.
Stephanie found a badly scratched CD labelled 'Music Collection'. Intrigued, I tried recovering it as a mostly background process, and after locking my computer multiple times, came out with a lot of classical music. Beethoven, Bach, Mozart, Vivaldi's Four Seasons: about evenly split between orchestral and piano solos. It's really neat. :)
I've also done some fiddling with questionMap, but not visible change yet. I've planned out what I want to do -- a teacher clicks a task from whatever week in the main statistics page. They get directed to a question map of just that group's answers. Once at that page, there will be a control panel where they can choose to extend the limits on what answers are included. They can limit answers to before and/or after a certain date, and limit to just their own class or possibly include every answer in the database. I don't think it would hurt to let teachers see just a percentage of what other students have chosen, even if those students aren't in their class. Let me know what you think.
Mostly been working on my presentation today. Changed a few slides, thought about some, added some notes and script. Little bit of practicing in my head, too. Doesn't feel like a Friday without doing most of your work on the presentation :). We also listened to and helped Alec with his presentation.
I found a Office solution for Alec. I feel silly for not having thought of it before. Once I get a demo version of something, a lot of the time I tend to hold on to it. I got my version of Office through their student deal a few years back. They let you download a file that would install Office as a trial, then gave you a product key you could enter to unlock it. Well, I still have the demo, and Alec's using it now. Plenty of time on it for him.Whenever Brett gets back to me I can install the full version.
Stephanie found a badly scratched CD labelled 'Music Collection'. Intrigued, I tried recovering it as a mostly background process, and after locking my computer multiple times, came out with a lot of classical music. Beethoven, Bach, Mozart, Vivaldi's Four Seasons: about evenly split between orchestral and piano solos. It's really neat. :)
I've also done some fiddling with questionMap, but not visible change yet. I've planned out what I want to do -- a teacher clicks a task from whatever week in the main statistics page. They get directed to a question map of just that group's answers. Once at that page, there will be a control panel where they can choose to extend the limits on what answers are included. They can limit answers to before and/or after a certain date, and limit to just their own class or possibly include every answer in the database. I don't think it would hurt to let teachers see just a percentage of what other students have chosen, even if those students aren't in their class. Let me know what you think.
Thursday, August 4, 2011
Putting on the CSS hat
I mentioned last post that I ran into some trouble when I made my CSS dynamic. Turns out I just forgot a line in the file, but it's a pretty interesting line. Some of our pages used the CSS correctly, some didn't. I found out that in ones that didn't, deliberately breaking the HTML would make it start to work. And then I realized it was just another quirks and standards thing.
HTML is a member of the Frankenstein family. A lot of it is just something somebody added because they needed it or wanted it at the time. Almost two decades ago was the first of the browser wars, in which each browser pretty much made up its own standards. Many site creators didn't even bother with standards and just made broken sites, and couldn't even tell because HTML and CSS don't tell you anything. They just bend over backwards trying to accommodate you, until they break without giving a clue as to the cause. *grumble grumble*
Anyway, modern browsers still have to render these old sites. They do this by using multiple operating modes. If it's a good website, they're in Standards mode. If they encounter errors, they go into Quirks mode, and become much more forgiving. (Browsers differ slightly in the number and type of modes.) Breaking my HTML made Firefox go into Quirks and accept my wonky dynamic CSS. Although I am flattered that it liked my site well enough to stay in Standards mode....
All I needed to do was use PHP to basically put a CSS hat on. It sends out a message saying, "Hey! I'm actually CSS, not anything else." Pretty cool.
I've mostly been trying to fix the question map. You can access it on my site by clicking the big line graph, but the look is broken. It should function, though. I also dismantled a(nother) computer Andrew found. This one was broken, though, so we cannibalized it and threw it back on the dump. And no Office for Alec yet, but I did find Brett today.
HTML is a member of the Frankenstein family. A lot of it is just something somebody added because they needed it or wanted it at the time. Almost two decades ago was the first of the browser wars, in which each browser pretty much made up its own standards. Many site creators didn't even bother with standards and just made broken sites, and couldn't even tell because HTML and CSS don't tell you anything. They just bend over backwards trying to accommodate you, until they break without giving a clue as to the cause. *grumble grumble*
Anyway, modern browsers still have to render these old sites. They do this by using multiple operating modes. If it's a good website, they're in Standards mode. If they encounter errors, they go into Quirks mode, and become much more forgiving. (Browsers differ slightly in the number and type of modes.) Breaking my HTML made Firefox go into Quirks and accept my wonky dynamic CSS. Although I am flattered that it liked my site well enough to stay in Standards mode....
All I needed to do was use PHP to basically put a CSS hat on. It sends out a message saying, "Hey! I'm actually CSS, not anything else." Pretty cool.
I've mostly been trying to fix the question map. You can access it on my site by clicking the big line graph, but the look is broken. It should function, though. I also dismantled a(nother) computer Andrew found. This one was broken, though, so we cannibalized it and threw it back on the dump. And no Office for Alec yet, but I did find Brett today.
Wednesday, August 3, 2011
Showing your true colors
![]() |
| I was trying to add these colors for Ellie's sake, but teachers don't work yet. This is faked. ;) |
Worked a bit on that CSS University recoloring, just to see how it would work. Pretty well. :) (Except for that one bitty mysterious problem that has borked my directory's css for the time being whoopsie moving onwards!)
I changed a lot of the task and question descriptions, as you can see from the picture. You can see the rest and edit them at rawr.cis.rit.edu/nap7276/webcurves/taskInfoEdit.php. I would certainly appreciate a look-over, especially on the more advanced tasks like Magnetism or Electric Field Potential. I'm not sure if I'm describing them in the best way, because I don't really have the terminology. If it looks good, I faked it from the question's context.
Other than that, it's been a lot of very incremental changes on the teacher pages. Mostly look and feel, a little bit of function. This is definitely the point where I could use some feedback -- my ideas are starting to peter out. I do have some work to do on the question map, though, and I can just keep coming back when I think of something.
I'm working on getting Microsoft Office from Brett, so Alec can use Powerpoint. I now regret that; I should have just installed OpenOffice. I can only find Brett every third time I look for him. Alec also asked me if I could find some way to append a count to his picture filenames in IDL. Easy enough if it was all at one time, just a loop, but it sounded like he wants it to check what files are there, then create the latest files. That sounds like it could get inefficient with large sequences of files. I should see if I can figure out more about what he wants, and probably just work out a loop and count.
The lab has been very busy with visitors this week. The first came not an hour after Dr. Franklin left, looking for him. We told him he'd be back next week, but left out how close he was. There's been two others since, and I wasn't even here the last two days. I've even just played an impromptu guide. Another professor (short gray hair, glasses, shorter than I am) who we ate with at lunch a week or two ago led in a 'prospective physics major', as he said. As it happened, I was the only one there, and gave a quick description of what everything was. They seemed happy with it, and the other professor explained a bit about the granular physics field.
Interesting day.
Tuesday, August 2, 2011
Back to teacher statistics
Didn't head into lab today, just stayed home. I hope I can make it to lab tomorrow; I do feel better. Then again, I've been sitting in a comfy chair, in a dark room, with a fan, hardly moving, so no exertion or dust to make symptoms noticeable. On the other hand, I did get to use that Mac voice for a purpose: to ask someone to turn on Janice. (I forgot I had Stephanie's cell number too. :)
Anyway, I've now been a while officially back to work on teacher pages! Those are satisfying, because I make more changes in one day. Plus it's more fun to have two screen shots showing a visual difference, than to say, "I spent all day fixing these two bugs." So...screenshots...yeah. No. Teacher pages still look the same. Darn.
But wait, there's more!
Anyway, I've now been a while officially back to work on teacher pages! Those are satisfying, because I make more changes in one day. Plus it's more fun to have two screen shots showing a visual difference, than to say, "I spent all day fixing these two bugs." So...screenshots...yeah. No. Teacher pages still look the same. Darn.
But wait, there's more!
Monday, August 1, 2011
The Hand of Plague
Not really.
I've had a bit of a cold developing over the weekend, but I thought it was just allergies, or at least something I could ignore. Not so much. I tried to go to lab anyway, but I ended up heading home early. I fixed a problem with the SVN repository while I was there, and stayed on Skype when I came back. Yifei gave me some queries to do. I hope tomorrow is better, but I'll probably still stay home. I don't want to be distracting and/or sickening (in the literal sense).
I've had a bit of a cold developing over the weekend, but I thought it was just allergies, or at least something I could ignore. Not so much. I tried to go to lab anyway, but I ended up heading home early. I fixed a problem with the SVN repository while I was there, and stayed on Skype when I came back. Yifei gave me some queries to do. I hope tomorrow is better, but I'll probably still stay home. I don't want to be distracting and/or sickening (in the literal sense).
Friday, July 29, 2011
...
Demographics works with the new university->departments->majors thing, and most of the form will also now keep its value upon a refresh or an error. In implementing the latter, I was reminded of...well, let's just say there are very good reasons why I hate working with HTML and Javascript.
Unfortunately, I didn't have time to figure out how to make the rest of the form dynamic, so prior and current math and physics courses are all hardcoded, still. Funnily enough, the easiest one to fix (Prior High School) is also the one that doesn't really need fixing.
Anyway, I've also been puttering around doing various things for Conor and Stephanie. Conor needed a table of overall course and student information, and I decided to have some fun with SQL and try to get it all out in one query. I got most of it, too, but I had to stop at the point where it would have taken much more time than a single separate query. I still think there was a way, though.
Ellie asked Stephanie to make a graph combining all 90 groups across the entire year into just 30. I explained how tasks were assigned to groups, and we ran into a problem with Fall because of the extra week's worth of tasks. For example, groups 40 (from Winter) and 70 (from Spring) take the same tasks in the same weeks, but 10 (from Fall) has an extra task that would offset its weeks by one. We asked Ellie what she wanted us to do, and she told us to ignore the groups and just sort by whoever took the same task in the same week. It's a good lesson for groups next year, though, even if they're not as useful now.
Unfortunately, I didn't have time to figure out how to make the rest of the form dynamic, so prior and current math and physics courses are all hardcoded, still. Funnily enough, the easiest one to fix (Prior High School) is also the one that doesn't really need fixing.
Anyway, I've also been puttering around doing various things for Conor and Stephanie. Conor needed a table of overall course and student information, and I decided to have some fun with SQL and try to get it all out in one query. I got most of it, too, but I had to stop at the point where it would have taken much more time than a single separate query. I still think there was a way, though.
Ellie asked Stephanie to make a graph combining all 90 groups across the entire year into just 30. I explained how tasks were assigned to groups, and we ran into a problem with Fall because of the extra week's worth of tasks. For example, groups 40 (from Winter) and 70 (from Spring) take the same tasks in the same weeks, but 10 (from Fall) has an extra task that would offset its weeks by one. We asked Ellie what she wanted us to do, and she told us to ignore the groups and just sort by whoever took the same task in the same week. It's a good lesson for groups next year, though, even if they're not as useful now.
Thursday, July 28, 2011
RIT Majors done
I made a program that parses the RIT programs page Stephanie found. It should only take a bit of tweaking for it to work with any university with a parseable majors page. I also should make a note somewhere that it should be run every year or so, to catch any new majors that RIT (or any other school) adds. Now it's on to the demographics form, where students enter their majors...which is currently hardcoded with RIT information. I was actually going to try and push through that tonight, but it will take longer than I thought, partly because I didn't even think about the Prior Math and Prior Physics fields, which are also hardcoded. To do it right I need to add those to the database, but not quite in the same way as the other classes. I need to pull them out and identify them, somehow. Prior physics I can pull from normal classes, but what about prior math courses? Once those are added, how do I identify them?
I added a couple new tables, Department and DepartmentMap, mostly as organization for that demographics form. Department contains whatever category each school uses to lump their majors together (in RIT's case, separate colleges). DepartmentMap maps departments to majors. I will need to leave a hardcoded "Other" in there, but that's no trouble. RIT lumps its miscellaneous certifications, degrees and majors under the 'Division of Academic Affairs', which I'm thinking of renaming to a much more clear and concise 'Other'. I could put it there.
I'd planned on spending what time I needed this week on multiple-site implementation, and that's certainly happened. I hadn't thought it would take until the end of the week, but I did spend the first couple days on profiling. Considering that, this is about the time I figured I'd spend. I don't think I'll do anything about custom university colors, as cool as it would be, unless I end up with extra time.Hopefully we'll get beta-testers at this next conference to kick-start the teacher page. Ellie should also be checking out the instructor pages next week.
I forgot to go down again after three to look for Brett. I'll have to talk to him tomorrow about redirecting rawr.rit.edu.
I added a couple new tables, Department and DepartmentMap, mostly as organization for that demographics form. Department contains whatever category each school uses to lump their majors together (in RIT's case, separate colleges). DepartmentMap maps departments to majors. I will need to leave a hardcoded "Other" in there, but that's no trouble. RIT lumps its miscellaneous certifications, degrees and majors under the 'Division of Academic Affairs', which I'm thinking of renaming to a much more clear and concise 'Other'. I could put it there.
I'd planned on spending what time I needed this week on multiple-site implementation, and that's certainly happened. I hadn't thought it would take until the end of the week, but I did spend the first couple days on profiling. Considering that, this is about the time I figured I'd spend. I don't think I'll do anything about custom university colors, as cool as it would be, unless I end up with extra time.Hopefully we'll get beta-testers at this next conference to kick-start the teacher page. Ellie should also be checking out the instructor pages next week.
I forgot to go down again after three to look for Brett. I'll have to talk to him tomorrow about redirecting rawr.rit.edu.
Wednesday, July 27, 2011
Major interests
Unfortunately, the little baby laptop proved to be a loss. Either Stephanie will have to use Winbugs or she'll need another computer. Does she actually need it to be a laptop, if it's only for one program she's using occasionally? Maybe she could use the extra computer I set up instead. I'll have to ask her tomorrow.
Although Stephanie's interview was distracting, I managed to get a good start on what I wanted to do today. The only database tables that link to University are Course, Student and Teacher, and that's not bad. Everything there will mesh pretty well, although we might need to do some juggling if we want to pull out the 'Univ Physics I' equivalent from each school, for example. Major doesn't link to University at the moment. I was thinking that it should for a while, so we wouldn't get exact duplicates (how many schools would add a variation on 'Computer Science', for example) but I don't think it will matter any more. So what if every university uses the same SysID for their Computer Science degree? We'll be starting from Student anyway, which already has Univ_SysID.
Right now, we get the students' majors from our demographics form. This is the area I need to change most, as RIT majors are hardcoded into the form. I may have misunderstood, but when I asked Sam I think he said he did it by hand, although he may have used several throwaway scripts. I've written one script that pulls department and major from an RIT website Stephanie found and throws them into an array, with department as keys. If every college has a parseable site like that, I can just change the script slightly for every university, with no problem. I wonder if I should add a Department table to the database, though. A lot of schools separate majors into categories or departments, and it might be useful for an overall look at different areas of a school. I haven't quite sold the idea to myself yet, though. It'll add less complication to our form, as I can draw everything from the database instead of a file with a PHP array for each school, but it will add slightly more complication to our database.
Now that I've parsed the file, I need to add any new majors to the database, and make sure all the old ones are spelled correctly. I think Sam included major codes, which I don't have in my majors, which will suck. Thursday's gonna be fun :) .
Although Stephanie's interview was distracting, I managed to get a good start on what I wanted to do today. The only database tables that link to University are Course, Student and Teacher, and that's not bad. Everything there will mesh pretty well, although we might need to do some juggling if we want to pull out the 'Univ Physics I' equivalent from each school, for example. Major doesn't link to University at the moment. I was thinking that it should for a while, so we wouldn't get exact duplicates (how many schools would add a variation on 'Computer Science', for example) but I don't think it will matter any more. So what if every university uses the same SysID for their Computer Science degree? We'll be starting from Student anyway, which already has Univ_SysID.
Right now, we get the students' majors from our demographics form. This is the area I need to change most, as RIT majors are hardcoded into the form. I may have misunderstood, but when I asked Sam I think he said he did it by hand, although he may have used several throwaway scripts. I've written one script that pulls department and major from an RIT website Stephanie found and throws them into an array, with department as keys. If every college has a parseable site like that, I can just change the script slightly for every university, with no problem. I wonder if I should add a Department table to the database, though. A lot of schools separate majors into categories or departments, and it might be useful for an overall look at different areas of a school. I haven't quite sold the idea to myself yet, though. It'll add less complication to our form, as I can draw everything from the database instead of a file with a PHP array for each school, but it will add slightly more complication to our database.
Now that I've parsed the file, I need to add any new majors to the database, and make sure all the old ones are spelled correctly. I think Sam included major codes, which I don't have in my majors, which will suck. Thursday's gonna be fun :) .
Tuesday, July 26, 2011
Chasing unicorns
Speeding up R proved to be almost hypnotic in the focus it drew from me. Hours went by instantly, it seems. I spent more time than I wanted, but I'm done now, and it runs pretty well. I wasted the last few hours, though, except for deeper knowledge of R.
My R graphs now use parallelization. I had trouble for a while because I had forgotten to close a graphics object for the line graph. It wasn't a problem without threading, as long as I didn't have too many objects open, but it broke parallelization completely. I found that problem and tightened up the R object code. It's still rough, and I haven't fully explained the parallelization additions in comments, but it works well. I also made another change in caching. Earlier, I made it so if a graph that looks the same already exists, it will load that instead of recreating it. However, there wasn't any such limit on a single session. One command to R could have code to recreate the same graph over and over. I fixed that, and now instead of making 80 for a new teacher page, it makes around 20. This jump will be a lot less drastic when groups are larger and we have more variation, but it helps. This really helped me find and fix the problem with threading, as there was less R code to look through.
Calling on R to make all of the graphs for a teacher page took about .5 seconds before threading. After, it took around .25. The rest of the program takes less than .05. The page loads in about 1.5-2.5 seconds, with no cache of graphs. I hadn't consciously expected a figure, but .25 still seemed high, so I made an R "Hello World" program and profiled that. It took about .23 seconds, so most of that had to be going into starting R. (You execute shell code in PHP using the exec function. exec doesn't return until whatever you executed stops running [generally]. That's how I could use a PHP profiler to find R's execution time.) I tried a couple things to speed that up, and that's when I saw the unicorn.
It was pretty stupid. I tried running the HW program in BATCH mode. I'd previously discounted it for a number of reasons, but this time it ran in .015 seconds. Ooh, BATCH mode exists with all of its problems because it loads R faster!, I thought, and spent the next few hours chasing that idea. Nope. It ran fast because exec returned early. exec returned early because it ran into a permissions error. The speedy unicorn turned out to be a mirage.
My R graphs now use parallelization. I had trouble for a while because I had forgotten to close a graphics object for the line graph. It wasn't a problem without threading, as long as I didn't have too many objects open, but it broke parallelization completely. I found that problem and tightened up the R object code. It's still rough, and I haven't fully explained the parallelization additions in comments, but it works well. I also made another change in caching. Earlier, I made it so if a graph that looks the same already exists, it will load that instead of recreating it. However, there wasn't any such limit on a single session. One command to R could have code to recreate the same graph over and over. I fixed that, and now instead of making 80 for a new teacher page, it makes around 20. This jump will be a lot less drastic when groups are larger and we have more variation, but it helps. This really helped me find and fix the problem with threading, as there was less R code to look through.
Calling on R to make all of the graphs for a teacher page took about .5 seconds before threading. After, it took around .25. The rest of the program takes less than .05. The page loads in about 1.5-2.5 seconds, with no cache of graphs. I hadn't consciously expected a figure, but .25 still seemed high, so I made an R "Hello World" program and profiled that. It took about .23 seconds, so most of that had to be going into starting R. (You execute shell code in PHP using the exec function. exec doesn't return until whatever you executed stops running [generally]. That's how I could use a PHP profiler to find R's execution time.) I tried a couple things to speed that up, and that's when I saw the unicorn.
It was pretty stupid. I tried running the HW program in BATCH mode. I'd previously discounted it for a number of reasons, but this time it ran in .015 seconds. Ooh, BATCH mode exists with all of its problems because it loads R faster!, I thought, and spent the next few hours chasing that idea. Nope. It ran fast because exec returned early. exec returned early because it ran into a permissions error. The speedy unicorn turned out to be a mirage.
Astounding stupidity
So remember last night I was all worried because I couldn't get my R object to draw graphs? And how I went back to a previous revision of the object, and it still didn't work, and I was freaking out? The R object was fine. Well, fine in the sense it worked as it always has. The problem was that, before trying out R parallelization, I added task names to the graph titles. I didn't even think about it, and went on to spend the next several hours working on parallelization. Hence, I didn't even think about the tiny addition of characters in the program calling my R object.
The problem was Newton. Or, Newton's. As in Newton's Third Law, with its unclosed, unescaped apostrophe.
Arrrrggggggh
The problem was Newton. Or, Newton's. As in Newton's Third Law, with its unclosed, unescaped apostrophe.
Arrrrggggggh
Monday, July 25, 2011
SPEEEDY
In my last post, I talked about a PHP profiler I was going to use. I spent this morning learning how to use it, and I like it. It comes with some excellent debugging functions, and the software for profiling is very useful. As I suspected, SQL was the biggest source of slowdown behind the R graphs -- that is, one SQL query was. I use a very simple query to return the latest week in the class being viewed. That query was joining a table that had nothing whatever to do with anything. Due to the vagaries of relational calculus, this meant I was computing the maximum number of 3 million rows. Two words removed from that query and SQL queries hardly made a blip anymore.
This is where things took a turn for the worse. Emboldened, I decided to tackle the speed of the R graphs. It didn't look as if R were parallelizing, so I decided to try and make it. The creation of each graph was very simple in itself -- splitting each graph into its own thread could really help. So I thought. I haven't found out yet.
I spent a long while figuring out how to parallelize, installed the package, tested the function, and tried to insert it into my PHP object. It didn't work, but the code it created seemed to sometimes work. I tried to put things back to non-parallelization for now...and it still didn't work. I went back to an earlier revision of my PHP object, way before any changes I made -- no dice. I'm debugging now, but I figured I'd post. I've got to get this fixed by tonight.
This is where things took a turn for the worse. Emboldened, I decided to tackle the speed of the R graphs. It didn't look as if R were parallelizing, so I decided to try and make it. The creation of each graph was very simple in itself -- splitting each graph into its own thread could really help. So I thought. I haven't found out yet.
I spent a long while figuring out how to parallelize, installed the package, tested the function, and tried to insert it into my PHP object. It didn't work, but the code it created seemed to sometimes work. I tried to put things back to non-parallelization for now...and it still didn't work. I went back to an earlier revision of my PHP object, way before any changes I made -- no dice. I'm debugging now, but I figured I'd post. I've got to get this fixed by tonight.
Friday, July 22, 2011
"The Death RAWR is fully operational! It's a trap!"
I successfully debugged a problem I had with creating graphs using R on the new server -- the problem was I didn't have R. So that's fixed now. Sam sent me a list of a couple things he did when he set up zoot, so I have a couple non-major things to do. Even with those, little rawr should be good to go. I'd like to have Janice on and connected for a little while, in case I need anything quickly, but I'd also like to get rawr off my desk. Let's see what I can do....
I've also done some writing today -- finished up the AERA section and the little bio for that booklet thing. It always feels strange to condense my life to a few sentences.
I've also come up with a broad plan. Basically, before prime-time, I need to do two, maybe three things. I need to have teacher pages; I need to have multiple universities working; I possibly need a more sophisticated grouping system. Nearly all of them need things that are almost out of my control before I can finish them.
Next week, I'm going to work a little on teacher pages. I installed a PHP profiler today that I can use to find out what is taking up the larger fraction of time in generating teacher pages. I suspect the SQL queries, but you really shouldn't profile on suspicion. Whatever it is, I may try rewriting if I think it's worth it. If it becomes necessary, I could definitely speed up the database, at the cost of making it slightly harder to use for Ellie and stats folks. We'll have to see if that's needed. Most other teacher page improvements, definitely the most helpful ones, will be in tandem with beta testing from instructors. We could even do stuff during primetime -- have a little suggestions form for teachers. Once they see what we've already done, they may have a good idea of what else they want that we can actually provide.
Most of next week I want to use to pave the way for multiple universities. I can't really finish that until I know which schools we'll be working with, because I'll need specific class and major information. Sam had to manually input RIT majors, for example, but RIT's LDAP system made passwords much simpler. Speaking of that, I should look into redoing RIT's majors for this year. Haven't they added all sorts of Sustainability Engineering jazz?
The last thing is student grouping. I don't expect to work on this until much later, if at all. For one thing, I don't really know how we'll group them yet, except maybe by gender and GPA. Definite answers depend on Stephanie's MLM (as far as I know, anyway.) Gender and GPA could be a problem, though. Rosters we get from instructors don't include gender and assigning students to groups only after they log in and provide their information could prove problematic. On the other hand, we would need to acquire GPA information beforehand, and gender could easily come with that. Time will tell.
See ya next week!
I've also done some writing today -- finished up the AERA section and the little bio for that booklet thing. It always feels strange to condense my life to a few sentences.
I've also come up with a broad plan. Basically, before prime-time, I need to do two, maybe three things. I need to have teacher pages; I need to have multiple universities working; I possibly need a more sophisticated grouping system. Nearly all of them need things that are almost out of my control before I can finish them.
Next week, I'm going to work a little on teacher pages. I installed a PHP profiler today that I can use to find out what is taking up the larger fraction of time in generating teacher pages. I suspect the SQL queries, but you really shouldn't profile on suspicion. Whatever it is, I may try rewriting if I think it's worth it. If it becomes necessary, I could definitely speed up the database, at the cost of making it slightly harder to use for Ellie and stats folks. We'll have to see if that's needed. Most other teacher page improvements, definitely the most helpful ones, will be in tandem with beta testing from instructors. We could even do stuff during primetime -- have a little suggestions form for teachers. Once they see what we've already done, they may have a good idea of what else they want that we can actually provide.
Most of next week I want to use to pave the way for multiple universities. I can't really finish that until I know which schools we'll be working with, because I'll need specific class and major information. Sam had to manually input RIT majors, for example, but RIT's LDAP system made passwords much simpler. Speaking of that, I should look into redoing RIT's majors for this year. Haven't they added all sorts of Sustainability Engineering jazz?
The last thing is student grouping. I don't expect to work on this until much later, if at all. For one thing, I don't really know how we'll group them yet, except maybe by gender and GPA. Definite answers depend on Stephanie's MLM (as far as I know, anyway.) Gender and GPA could be a problem, though. Rosters we get from instructors don't include gender and assigning students to groups only after they log in and provide their information could prove problematic. On the other hand, we would need to acquire GPA information beforehand, and gender could easily come with that. Time will tell.
See ya next week!
Next draft for AERA Paper
The RAWR system runs on distribution of Linux, an open-source and free platform. The student and instructor interfaces are web-based and authenticated. All results and information are stored in a MySQL database for easy retrieval. Reports, statistics, and graphs can be generated quickly and easily using the database, custom programs and R, a free statistics engine.
Participating instructors upload their class roster to the RAWR system and notify their students about tasks. When students register on our site, they are given information about the project and asked for consent to use their test data. If they refuse, their test results are not used in outside research. Students also provide demographic data such as gender, major, and prior math and physics credit. This data is correlated with later test results.
Students across every section of each physics sequence class are assigned into ten groups. Groups are randomly assigned and usually have about 25-45 students. Each group is pre-assigned a list of tasks to complete every week. The same group may repeat the same task over a single class, although separate groups do not generally take the same task in a single week. Students cannot see which task they will take until the time it opens for completion. Typically, tests become available on Monday of each week and are due on Wednesday. Students may log in at any time to complete the task, although there is a thirty minute time limit once they start the test.
There are currently 18 tasks in the RAWR system. Each task is multiple-choice, concept-based, and short—typically taking 5-10 minutes for completion. Tasks are single-topic–examples of topics are Newton’s Third Law (example question below), simple vector operations including dot and cross product, and behavior of simple waves.
![]() |
| First question from task on Newton's Third Law. |
Thursday, July 21, 2011
Paper Data AND Nathan vs. PHPMyAdmin ROUND 2!!!
I haven't heard anything from Ellie about the paper yet. There's a few changes I'm going to put in tonight; I'll repost when I finish that.
Other than that, today I worked on Jessica's paper data. That proved to be a challenge. I decided, not unaffected by stubborness, to use rawr's phpmyadmin instead of Janice's, despite rawr's broken export. I figured I would have to fix it when I finished, and everything would be good; if not, I could still go another way.
Over the course of the day I uploaded and formatted the data, wiped it accidentally, uploaded and formatted again, wiped it on purpose after discovering an unfixable mistake, uploaded and formatted again, and finally had my data. I lost several hundred rows while correlating with GPA and grade, because I matched by name, term, course and section. That was as specific as I could get, and even that nearly failed. Names suck for matching. Just look at the case of Christopher Johnson -- that is, all five of them in two quarters. I also by chance noticed one entry that should have matched, except that Jess's data said Christopher and the grade data said Chris. Unfortunately, manually matching hundreds of rows of data isn't feasible, so I sacrificed total rows for accuracy. Yifei still has 700 results across two quarters for his Newton's Third task results.
And in the end? My plan to pit myself against PHPMyAdmin's broken export in a ferocious battle of wills worked. As far as the ferocious battle goes, anyway. It's still broken. I'm going to email Sam and ask him how he raised the export filesize limit so high.
Other than that, today I worked on Jessica's paper data. That proved to be a challenge. I decided, not unaffected by stubborness, to use rawr's phpmyadmin instead of Janice's, despite rawr's broken export. I figured I would have to fix it when I finished, and everything would be good; if not, I could still go another way.
Over the course of the day I uploaded and formatted the data, wiped it accidentally, uploaded and formatted again, wiped it on purpose after discovering an unfixable mistake, uploaded and formatted again, and finally had my data. I lost several hundred rows while correlating with GPA and grade, because I matched by name, term, course and section. That was as specific as I could get, and even that nearly failed. Names suck for matching. Just look at the case of Christopher Johnson -- that is, all five of them in two quarters. I also by chance noticed one entry that should have matched, except that Jess's data said Christopher and the grade data said Chris. Unfortunately, manually matching hundreds of rows of data isn't feasible, so I sacrificed total rows for accuracy. Yifei still has 700 results across two quarters for his Newton's Third task results.
And in the end? My plan to pit myself against PHPMyAdmin's broken export in a ferocious battle of wills worked. As far as the ferocious battle goes, anyway. It's still broken. I'm going to email Sam and ask him how he raised the export filesize limit so high.
First draft for AERA paper
The RAWR system runs on an entirely open-source and free platform. The student and instructor interfaces are web-based and authenticated. All results and information are stored in an electronic database for easy retrieval. Reports, statistics, and graphs can be generated quickly and easily using the database, custom programs and an open-source statistics engine.
Instructors notify their students about RAWR during the second week of class. When students register on our site, they are given information about the project and asked for consent to use their test data. If they refuse, their test results are not used in outside research. Students also provide demographic data such as gender, major, and prior math and physics credit. This data is correlated with later test results.
Students across every section of each physics sequence class are assigned into ten groups. Groups are randomly assigned and usually have about 25-45 students. Each group is pre-assigned a list of tasks to complete every week. Students cannot see which task they will take until the time it opens for completion. Typically, tests become available on Monday of each week and are due on Wednesday. Students may log in at any time to complete the task, although there is a thirty minute time limit once they start the test.
There are currently 18 tasks in the RAWR system. Each task is multiple-choice, concept-based, and short—typically taking 5-10 minutes for completion. Tasks are single-topic–examples of topics are Newton’s Third Law (example question below), simple vector operations including dot and cross product, and behavior of simple waves.
![]() |
| First question from task on Newton's Third Law. |
Yesterday
I forgot a blog post yesterday, so here's a belated one.
I found out I forgot a pretty crucial element in the new server -- SSL. Since our website requires SSL, not having it makes it not work. Not so big a deal once I found out what it was, it only took an hour to learn it, install it and get the site working. Now rawr is almost equivalent to Janice. The R graphs don't work yet because the permissions for the graph folder got messed up, but I'm going to figure out a better way than I had previously. I wasn't entirely happy with how I made it work before.
The only thing left to do on rawr is tweaking, but that last tweaking can be crucial too, as I found out. Literally minutes after my "Yes!" at fixing the server, Yifei contacted me asking for tables. It took much longer to find out what he wanted than it took to actually make it, but I finished that eventually.
In the process, I found out that rawr's phpmyadmin couldn't export the table I had created. Google offered a fix immediately: edit a configuration file I didn't have, for a program I didn't install. So I turned to Janice, and everything worked perfectly...until it started printing ASCII integer characters in hex. Conversion is 30=0, 31=1, etc., so I thought it was just going mad and printing threes everywhere. Oh my dear what.
I found out I forgot a pretty crucial element in the new server -- SSL. Since our website requires SSL, not having it makes it not work. Not so big a deal once I found out what it was, it only took an hour to learn it, install it and get the site working. Now rawr is almost equivalent to Janice. The R graphs don't work yet because the permissions for the graph folder got messed up, but I'm going to figure out a better way than I had previously. I wasn't entirely happy with how I made it work before.
The only thing left to do on rawr is tweaking, but that last tweaking can be crucial too, as I found out. Literally minutes after my "Yes!" at fixing the server, Yifei contacted me asking for tables. It took much longer to find out what he wanted than it took to actually make it, but I finished that eventually.
In the process, I found out that rawr's phpmyadmin couldn't export the table I had created. Google offered a fix immediately: edit a configuration file I didn't have, for a program I didn't install. So I turned to Janice, and everything worked perfectly...until it started printing ASCII integer characters in hex. Conversion is 30=0, 31=1, etc., so I thought it was just going mad and printing threes everywhere. Oh my dear what.
Tuesday, July 19, 2011
Little rawr!
Little rawr now has two-way internet access! I've finally been able to test the email function of the RAID array. Since the drives are hot-swappable, I pulled one right out. The system kept on going, not without screaming a bit, and I got an email saying "Help!" So all's good. It takes several hours to reinstate a hard drive into the array, but there's no helping that.
IDL, PixeLINK and Labview all seem to be working properly on New Zoot now. I was trying to test PixeLINK in Labview by reading a guide of their API functions, but I couldn't figure out where to start writing code -- then Patrick let me know it's all graphical. Perhaps there is a manual code window somewhere, but I haven't found it yet. I'm going to work with him tomorrow to try and test it.
I spent most of the day today migrating data from Janice to rawr -- I've got the database, repository, all of my stuff and some of Sam's old stuff for reference, and a few other backup services. The last 5% (and probably the longest) will be linking everything together and making sure it works.
A new complication is that there is no domainname set up for rawr. I have an IP address, so I can access the Internet and access rawr from the Internet, but rawr.cis.rit.edu does not work. I'll ask Brett about that.
IDL, PixeLINK and Labview all seem to be working properly on New Zoot now. I was trying to test PixeLINK in Labview by reading a guide of their API functions, but I couldn't figure out where to start writing code -- then Patrick let me know it's all graphical. Perhaps there is a manual code window somewhere, but I haven't found it yet. I'm going to work with him tomorrow to try and test it.
I spent most of the day today migrating data from Janice to rawr -- I've got the database, repository, all of my stuff and some of Sam's old stuff for reference, and a few other backup services. The last 5% (and probably the longest) will be linking everything together and making sure it works.
A new complication is that there is no domainname set up for rawr. I have an IP address, so I can access the Internet and access rawr from the Internet, but rawr.cis.rit.edu does not work. I'll ask Brett about that.
Monday, July 18, 2011
Second and final draft
Homework and exams, the traditional methods for measuring course performance, do not capture all of the dynamics of student learning over time. The RAWR (Rapid Assessments and Web Reports) project aims to show student learning and forgetting through the entire length of the course, to help develop understanding of what helps students to learn and retain knowledge. Assessments are done using short concept-based weekly tests. Test results correlate with student and course data and are stored in an online database. Reports can then be generated for instructors and researchers quickly.
The current focus of the RAWR project is on the instructor interface: creating useful instructor tools for use during a school term. The R statistics engine is used in conjunction with server-side scripting to present reports for instructor use. RAWR will test the new interface next school year, as well as expanding the program to other participating colleges.
_____________________________
This would have been submitted, but the Innovation folks.... You know what, I'll be nice.
Their website is pretty. And their building is pretty.
That's all I've got so far.
Their website is pretty. And their building is pretty.
That's all I've got so far.
Friday, July 15, 2011
Thursday, July 14, 2011
Website Prettifying, Server Shyness and Dynamic CSS
![]() |
| I can has pretty header? |
![]() |
| Yay! |
I spent a while working with rawr, the new server, today. I could have sworn I was able to connect to the Internet at first, but it can't now. It seems to connect to the RIT network, at least. Andrew says beaker wasn't able to connect either until Brett registered it -- rawr hasn't been registered yet, which would explain it. If it still isn't by Monday, I'll go down and remind him -- I would now, but I already did when I went down to ask if Andrew was going to get arrested. If rawr still doesn't connect after registration, I have a couple other ideas and tricks to fix it.
Also, I found a post on an awesome and elegant way to use dynamic CSS for different university colors. Instead of having multiple stylesheets, which our PHP site will choose between, have one stylesheet pre-processed by PHP! It is so simple, but can have so many uses...wait, I'm getting excited about CSS!
I'm posting the site news early today to spend extra time banging out the rest of the RAWR abstract. Maybe there'll be presentation practice too. I'll post the abstract draft here when I'm finished.
Wednesday, July 13, 2011
Much rejoicing
Got some of my CSS to work! Does this mean I'm beginning to understand CSS? Oh dear....
On going to add a question description field to our database, I found there already was one. Not very well populated, however, so still work to do.
On going to add a question description field to our database, I found there already was one. Not very well populated, however, so still work to do.
![]() |
| I think Questions 3-6 need "?!?!?!?!" appended to them. |
Also, the actual question appears upon mouseover.
![]() |
The question mouseover popup doesn't behave exactly how I want yet, but it's a simple fix. It grows for a large question well, or has so far.
But the real bug-bear is looming: soon comes cross-browser testing.
Beta Testers
Took a break from CSS to add the beta testers' account. Here's the info.
Esther Tay
username: tester
Teacher SysID: 34
Login SysID:1747
Class SysIDs 30 and 89 previously belonged to Teacher SysIDs 6 and 13, but have now been temporarily given to Esther. A direct copy would have been much more difficult to implement, keep from contamination of real data, and later remove, hence the simple switch.
Esther Tay
username: tester
Teacher SysID: 34
Login SysID:1747
Class SysIDs 30 and 89 previously belonged to Teacher SysIDs 6 and 13, but have now been temporarily given to Esther. A direct copy would have been much more difficult to implement, keep from contamination of real data, and later remove, hence the simple switch.
Tuesday, July 12, 2011
Here comes another gut-busting blog-breaking picture:
Not much looks different, actually. The green border just denotes where the container is (I had trouble getting the container to actually contain) and is not staying. I've been messing with CSS in other ways as well, and found a lot of ways not to do what I want.
I've been thinking about how to make the question bars useful. Right now, they're better as abstract art than a helpful tool. Labeling them with the question would be nice, but would take up a lot of room. There is a Description field in the database, though -- it's a little terse right now, but could work for short-form. I could also display the entire question on a mouse-over. I could also do both. The only trouble is in setup questions -- the information in those is, for the most part, inaccessible here.
Password Pranks
Just found out anyone can reset anyone's password with the password reset form. Not totally bad, because the new password is sent to the user's email, but I would like to change it -- instead of automatically resetting, send a prompt email. When that email link is clicked, then reset. Also, I would like to look at how passwords are automatically generated.
On another note, I wonder if I can somehow allow the graphs R creates to be cached. Maybe a check, to see if there is already a picture? How, when the filenames are semi-random?
On another note, I wonder if I can somehow allow the graphs R creates to be cached. Maybe a check, to see if there is already a picture? How, when the filenames are semi-random?
Monday, July 11, 2011
Teacher Statistics Page
| This scroll-bar does not work. The image overflows the blog. And yes, that's from "Once More With Feeling". |
So that's what the page looks like now. Ugly, but better than before. (You're glad you didn't see it then.)
Next up:
- Add task name and description paired with the Group Participation cell.
- Format everything better, taking advantage of the empty right space so I can make the line graph bigger.
- Think about using CSS instead of tables. Grrrrr....
- Read question when hovering over little bar-graph? May not be possible with PHP, would have to use Javascript. Maybe I should think about rewriting the entire task-question system, so all information is stored in the database instead of linking to separate HTML files.
- Click on section shows relevant question map. Enclose table rows in div to do so? Possibly.
- Change table dates to smaller numeric-only? (Ex. Apr 13 -> 4/13).
- Do something about the Wabash questionnaires and Epistemology....A task with every bar solid red looks bad.
Subscribe to:
Posts (Atom)









