Recent content by jjc
-
J
HTML/CSS HTML5 and Javascript file handling
Mark, Thanks for the reply; I am still looking into this, but have put it on the back burner for a few days. I will re-read things and hope that I can glean what you mention. -- J- jjc
- Post #9
- Forum: Programming and Computer Science
-
J
HTML/CSS HTML5 and Javascript file handling
Mark, Thanks for pointing out the debugger tools; I didn't know about those yet. That could help a lot. I think that much of my confusion was trying to figure WHAT was being passed to all these different layers of functions (the two nested functions of the "onLoad" event function, and...- jjc
- Post #7
- Forum: Programming and Computer Science
-
J
HTML/CSS HTML5 and Javascript file handling
OK, so here is my updated code, and down below that, the sample code that I am using as my template. There is a curious structure going on there that I don't quite get, and had disassembled slightly in my earlier version of code originally posted here. This new version of my code much more...- jjc
- Post #5
- Forum: Programming and Computer Science
-
J
HTML/CSS HTML5 and Javascript file handling
Ah, thanks! That trailing (f) was befuddling me. So, to trace thing outloud... The "fReader.OnLoad..." portion is the function definition (i.e. not actually doing anything at that time). The trailing "(f)" becomes the parameter to the function. What defines "f"? Does "f" come from the...- jjc
- Post #4
- Forum: Programming and Computer Science
-
J
HTML/CSS HTML5 and Javascript file handling
To narrow things down a bit, I guess my two main questions come from these lines: fReader.onLoad = (function (aFile) { return base64Encode(aFile); } ) (f); output.push('<li><strong>', escape(f.name), '</strong> (', f.type || 'n/a', ') - ', f.size, ' bytes, last modified: '...- jjc
- Post #2
- Forum: Programming and Computer Science
-
J
HTML/CSS HTML5 and Javascript file handling
I am quite new to the JavaScript and HTML5 world, and I am having trouble with some code that I was hacking together (based on demo's from other people). I am trying to take a file as input (a binary image) and base64 encode it. I think I have the right function for the base64 encoding, I...- jjc
- Thread
- File Javascript
- Replies: 8
- Forum: Programming and Computer Science
-
J
Modulus calculation to find decreasing Year-Quarter
Yeah, I didn't explicitly mention it but my sample data showed it. Thanks for this function. I will assume that 'x' in your formula is the starting quarter number. n = 1 all the time, in my case. So that essentially reduces the formula to: 1+Mod(x+2 ; 4 ) When I work through it in...- jjc
- Post #5
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
J
Modulus calculation to find decreasing Year-Quarter
It seems like it wouldn't quite work in this situation; I could still end up with a zero result of the mod(); I want a result from 1 through 4. Val = 1 ; Mod (1 + 4 - 1 ; 4 ) = Mod (4) = 0. And if I add 4 to that, it works for that one, but not the others. I have thought of doing a...- jjc
- Post #3
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
J
Modulus calculation to find decreasing Year-Quarter
I am feeling silly because I can't seem to crack this, but maybe I have been staring at it too long. I am trying to find a math function that will yield a single unit decrement of the currently defined Year/Quarter. This is a software UI thing: I am trying to create a script to decrement, in...- jjc
- Thread
- Calculation decreasing Modulus
- Replies: 4
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
J
Graduate Creating mathematical model from table of permutations?
They are more like descriptions of states. As originally mentioned, they are things like Experience (low, med, high), location (in, out), time (1-2 hrs, 3-4 hrs, ...), equipment (none, some, lots), computer work (none, some, lots), etc. Yes, you asked specifically, but that is what you get...- jjc
- Post #9
- Forum: General Math
-
J
Graduate Creating mathematical model from table of permutations?
By granularity I am trying to go from needing an entire matching line to find a resulting number, e.g: A2 B5 C5 D6 E3 F3 G2 = 96 to a system where each individual variable contributes it's particular specific share. In the case above, trying to define A2 = 13, B5 = 10, etc. (Just pulling...- jjc
- Post #7
- Forum: General Math
-
J
Graduate Creating mathematical model from table of permutations?
@Number Nine: Yes, I was sort of wondering the same thing, if this might be more a statistical question. (Or at least I was after I realized my error in my first conception of trying to solve with simultaneous equations.) @Stephen: I wasn't implying 'model' in DB specific terms. Our...- jjc
- Post #5
- Forum: General Math
-
J
Graduate Creating mathematical model from table of permutations?
Hmmm...that's not going to work, is it? Each instance of a variable is itself, really, a new variable. They aren't coefficients in front of the same variable, necessarily. So simultaneous equations doesn't really apply, it seems. So now I am thinking I need to figure out how much a...- jjc
- Post #2
- Forum: General Math
-
J
Graduate Creating mathematical model from table of permutations?
I am trying to create a mathematical model from a table of possible permutations. The table essentially consists of a list of various combinations of variables (there are 7 of them) and then an education guesstimate of how long that combination would take. Each variable is restricted to a...- jjc
- Thread
- Mathematical Model Permutations Table
- Replies: 9
- Forum: General Math
-
J
C programming Q: initializing an array of structures
Bummer, but good to know. :) Thanks again for all the pointers. -- Justin- jjc
- Post #7
- Forum: Engineering and Comp Sci Homework Help