Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Jordi Pakey-Rodriguez
    @0xdec
    And I added a save file button
    Jordi Pakey-Rodriguez
    @0xdec
    When you get the chance, could you add the new fonts by themselves to a PR on my repo? alerque pointed out that attribution is always key. Also, do you want to just make further changes on my repo, since we're working together on some things? I can give you write access.
    Ian Douglas
    @iandoug
    BTW how do I integrate your json fixes without causing world war 3?
    Re attributions and all that: I see from http://fadefade.com/json-comments.html that one is not supposed to add comments to Json, but can't one just add fields that whichever program uses the file, knows what to do with? Eg author, datetime, version, title, etc, and just Does Not Worry if they are missing? Beyond this, if we are going to add further data to each key field, we may need a version number on the json so that we know what fields to expect.
    Ian Douglas
    @iandoug
    Have started watching Calum's video, very educational. I've tested adding other tags to the json and it doesn't break things, as long as I put it at the bottom. eg:
    [{"Author":"Ian Douglas"},{"Title":"Programmer's KeyBoard"},{"Version":"1.85"},{"DateTime":"2015-06-30 14:33:00 GMT"},{"Public":"Yes"},{"KLEVersion":"0.001"},{"KLEKey":"jd3e9jw"}]
    Ian Douglas
    @iandoug
    The thing that so annoys me about Javascript (and made worse by all these new libraries and their own funny syntaxes) is that when, after hours of struggle and going around in circles, you finally get the damn thing to work, it looks so blindingly obvious, that you wonder why the other 500 blindingly obvious things you already tried didn't work ... I feel like Edison and his 1000 lightbulb failures before success.
    Ian Douglas
    @iandoug
    "I FIXED JSON" ... where? Like to see what you're doing and how :)
    Jordi Pakey-Rodriguez
    @0xdec
    The latest code has working, correct JSON
    go to editor.d1sc0te.ch/kb.html to see it
    As for attribution, I just meant for github commits. I’m currently working through alerque’s videos.
    And hahaha yeah, I feel you on the JS thing…it can be so frustrating.
    Ian Douglas
    @iandoug
    What I meant was in which file :-) ..... I'm asking because in my work work I've had to return json to an API from php, and php has this very nice function for doing it... just build an array, call it and you're done. Even nested arrays.
    $reply = array();
    $reply['Result'] = 'OK';
    $reply['CereliaClientTime'] = $now;
    print json_encode($reply);
    I see there is something similar for Javascript: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
    your editor. site say: 404 There isn't a GitHub Pages site here.
    Jordi Pakey-Rodriguez
    @0xdec
    As for where it is in code, take a look at kb.js and serial.js in my recent commits
    I’m using Angular.toJson() to stringify a JSON object and JSON.parse() to parse a JSON string
    Jordi Pakey-Rodriguez
    @0xdec
    Okay fixed editor.d1sc0te.ch
    The CNAME file had gone missing
    Ian Douglas
    @iandoug
    Thanks, works now. I've got urgent work work to do today, will continue with this later. First want to watch the vids, then watch them again in 'work along' mode and hopefully get my local repo and remote sorted properly. I did notice before that you had reformatted areas of kb.html that I also worked on, which is probably where the clash originated. I don't yet know how to upload the fonts to you. Last night I managed to find better alternatives to Gorton.
    Ian Douglas
    @iandoug
    We're going to have to talk to Swill... his plate creator is not expecting proper json, so results are not as expected :smile:
    Ian Douglas
    @iandoug
    Did you fixes include this item: "fix save to include rx ry rotation origin."?
    Ian Douglas
    @iandoug
    Have got that SVG thing working in my Firefox, had to upgrade to current version (38.0.5) which is still marked as "unstable" in my distro. But I think it does it slightly differently to say Windows, the top menu bar (Add key etc) gets shifted down and the svg goes above it. Now need a way to save the SVG. The conversion still has at least one issue with non-conventional layouts - the conversion is a little broken. Maybe I should talk to ajm about it. Also need a way to get this to 1:1 scale with the real world .... maybe a "scale stick" of exactly 1 or 10 cm would work?
    Jordi Pakey-Rodriguez
    @0xdec
    re: “rx ry origin”, nope, not mine. That’s from amj’s SVG code I think
    Also, I’m currently in Portugal and have crap internet, so I might not be able to do anything for a week or so. I’ll try my best.
    Ian Douglas
    @iandoug
    Presume you saw ijprest has surfaced (D1SC0tech/keyboard-layout-editor#9) , so maybe you should hang five on the work until we hear what he has to say about the licence. I see he has made some changes in the last day or so to his branch. Enjoy the holiday :-)
    Jordi Pakey-Rodriguez
    @0xdec
    I had not noticed that, I’ll take a look.
    Jordi Pakey-Rodriguez
    @0xdec
    Wow, he’s back! Crazy...
    I agree that we should wait until we hear more from him before we do any more work
    Ian Douglas
    @iandoug
    Ian must go sleep now.. cheers :-)
    Jordi Pakey-Rodriguez
    @0xdec
    Talk to you later!
    S
    @SRGOM
    hello, can anypoint me to a formal description of rx, ry? I can't find anything here https://github.com/ijprest/keyboard-layout-editor/wiki/Serialized-Data-Format
    S
    @SRGOM
    While it was obvious that this is some kind of rotation, I've so far onlyl managed to deduce that r is the angle from y axis. What else does rx and ry represent?