Comments (13)
Question 1 was added in pull request #20, and questions 2-5 are in pull request #21.
from apps1.
Many thanks Alex, looking good. You are saving me so much time!
M
A couple of things to look at:
-
Latest merge broke the
grunt unmask
mode. I did a git bisect on it and it reported:
dc77f86 is the first bad commit
commit dc77f86
Author: Alex Chan [email protected]
Date: Tue Jul 9 14:12:41 2013 +0100added dependency for helpers/geometry.js
:040000 040000 1bc82fe150e867330df2c4784c717e376a4646ac 0212f222cba6e462cbfcd85e6136392b544797e4 M src
So my guess is that the dependency has to be added in the require config for the unmasked app.
Secondly - this one's mine - I notice that if the answer to a question is showing, and you press 'next' pr 'prev' then the answer to those questions shows too. I think it should revert to hidden when the question changes.
On 9 Jul 2013, at 14:21, Alex Chan wrote:
Question 1 was added in #20 , and questions 2-5 are in #21 .
—
Reply to this email directly or view it on GitHub.
Mike Pearson
+44 (0)1223 764244
+44 (0)7742 6418207
MMP, Centre for Mathematical Sciences,
Cambridge CB3 0WA
from apps1.
On 9 Jul 2013, at 14:56, Mike Pearson [email protected] wrote:
- Latest merge broke the
grunt unmask
mode. […]So my guess is that the dependency has to be added in the require config for the unmasked app.
Yep, I’d added it to the main config.ls
but not to the version in pubs/mathmo
. This should be fixed in commit 992c319, which I’ve just filed a pull request for.
Secondly - this one's mine - I notice that if the answer to a question is showing, and you press 'next' pr 'prev' then the answer to those questions shows too. I think it should revert to hidden when the question changes.
Probably a good suggestion. It’s useful to have the Q/A both showing when I’m debugging questions, but I can keep the change out of my working tree to keep my life easier.
from apps1.
Must be something else missing there. I'm now seeing a couple of js errors in Chrome.
Uncaught Error: Invalid require call
http://requirejs.org/docs/errors.html#requireargs require.js:1758
Uncaught Error: Load timeout for modules: pubs/mathmo/controllers/mathmoController,pubs/mathmo/directives/mathmoPlot,pubs/mathmo/services/config,libs/qa/problems,libs/qa/geometry
http://requirejs.org/docs/errors.html#timeout require.js:1758
M
On 9 Jul 2013, at 15:15, Alex Chan wrote:
On 9 Jul 2013, at 14:56, Mike Pearson [email protected] wrote:
- Latest merge broke the
grunt unmask
mode. […]So my guess is that the dependency has to be added in the require config for the unmasked app.
Yep, I’d added it to the main
config.ls
but not to the version inpubs/mathmo
. This should be fixed in commit 992c319, which I’ve just filed a pull request for.Secondly - this one's mine - I notice that if the answer to a question is showing, and you press 'next' pr 'prev' then the answer to those questions shows too. I think it should revert to hidden when the question changes.
Probably a good suggestion. It’s useful to have the Q/A both showing when I’m debugging questions, but I can keep the change out of my working tree to keep my life easier.
— Alex
—
Reply to this email directly or view it on GitHub.
Mike Pearson
+44 (0)1223 764244
+44 (0)7742 6418207
MMP, Centre for Mathematical Sciences,
Cambridge CB3 0WA
from apps1.
On 9 Jul 2013, at 15:28, Mike Pearson [email protected] wrote:
Must be something else missing there. I'm now seeing a couple of js errors in Chrome.
Hmm. I didn’t catch anything when I tested it just now, but I’ll have another look.
I’m also halfway through the final question from Vicky.
from apps1.
Okay, I found the error and I think I’ve fixed it.
I was only calling helpers
as a dependency for geometry.js
, but apparently it wants seedrandom
as well. Fixed it in both copies of main.ls
, and the error seems to have disappeared.
Pull request shortly.
from apps1.
Brief notes after today’s work:
All but the final question on the original list have been written and are in the master branch. The final question still needs me to write the maths for the circle/circle case and implement appropriately, and I still need to find a good way to print the answers.
Specifically, I have numbers of the form (a+b root(c))/d for integers a,b,c,d, and I need a good way to print them neatly. My current bugbears are b=+/-1 (where I don’t want the 1 showing), and the cases a=0 or b=0. This will probably be useful elsewhere, so I may define an appropriate helper utility. Catching the cases where the answers are rational or (!) integer should then just be a bunch of messy if statements.
from apps1.
Thanks Alex, I was still finding a few problems with the latest pull as I left - some js errors showing in the chrome console - but I'm sure you'll get to them - may well be related to the WIP below as it was an undefined 'e' var if I remember rightly.
M
Mike Pearson
+44 (0)1223 764244
+44 (0)7752 562977
Millennium Mathematics Project,
Centre for Mathematical Sciences,
University of Cambridge
Cambridge CB3 0WA
On 9 Jul 2013, at 21:36, Alex Chan wrote:
Brief notes after today’s work:
All but the final question on the original list have been written and are in the master branch. The final question still needs me to write the maths for the circle/circle case and implement appropriately, and I still need to find a good way to print the answers.
Specifically, I have numbers of the form (a+b root(c))/d for integers a,b,c,d, and I need a good way to print them neatly. My current bugbears are b=+/-1 (where I don’t want the 1 showing), and the cases a=0 or b=0. This will probably be useful elsewhere, so I may define an appropriate helper utility.
—
Reply to this email directly or view it on GitHub.
from apps1.
On 9 Jul 2013, at 23:21, Mike Pearson [email protected] wrote:
Thanks Alex, I was still finding a few problems with the latest pull as I left - some js errors showing in the chrome console - but I'm sure you'll get to them - may well be related to the WIP below as it was an undefined 'e' var if I remember rightly.
An undefined “e” var sounds right. I had a bunch of them floating around yesterday, and I thought I’d caught them all. Perhaps not; I’ll check it tomorrow.
from apps1.
This issue should be closed by pull request 24. I’ll leave it open until the pull request has been merged, and in case any other problems crop up, but if not I think this is done.
from apps1.
Did we catch all of the bugs in this on Wednesday? If so, then I’ll close the issue.
from apps1.
I've not seen any new ones. I suppose we should really have extended our unit tests to include the cases that were managing to get round them, but go ahead and close. Vicky may have further input on them this morning.
Mike Pearson
+44 (0)1223 764244
+44 (0)7752 562977
Millennium Mathematics Project,
Centre for Mathematical Sciences,
University of Cambridge
Cambridge CB3 0WA
On 15 Jul 2013, at 09:17, Alex Chan [email protected] wrote:
Did we catch all of the bugs in this on Wednesday? If so, then I’ll close the issue.
—
Reply to this email directly or view it on GitHub.
from apps1.
It’s a nice-to-have which I’ll add to the laundry list, but I’ll close this issue as functionally finished.
from apps1.
Related Issues (20)
- Laundry list of little mathmo question problems HOT 11
- mathmo routing not working HOT 3
- Create a new 'Diamond Collector' fluency app.
- lib for embedding
- Once an exercise has been created in the “shared” tab, it can’t be used in a user’s exercise tab
- New questions needed HOT 3
- Graph plotter
- Enigma simulator needed
- A Proof Sorter
- Refactor reusable code
- mathmo plots fail to work in unmasked mode but are ok in masked mode HOT 1
- update to angular.js 1.0.7 HOT 1
- `grunt test` doesn't run the old frogs and d3 directive tests HOT 2
- Update LiveScript compiler HOT 1
- Automate library updates - using yeoman/bower generated apps
- sharing implementation broken HOT 1
- Angular-ui/bootstrap v0.5.0 does not optimize
- Move individual Apps each to their own repository
- Upgrade karma configuration files to latest format
- Update mathmo to use qalib HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apps1.