New Unofficial OBEX

2»

Comments

  • dgately wrote: »
    David...

    I attached a zip of the errors that Safari finds. I'll test with FireFox & Chrome, soon!

    Ah! Problem solved. You just need to use a real computer :grin:
  • DavidZemon wrote: »
    dgately wrote: »
    \Ah! Problem solved. You just need to use a real computer :grin:
    Funny, that :blush: !
  • Okay, I've just pulled out my work machine (a Mac) and reproduced the problem in Safari. I'll let you know when it's fixed.
  • @dgately, it should be working for you now.
  • Yes, working well!
    DavidZemon wrote: »
    @dgately, it should be working for you now.
    Thanks!

    dgately
  • David, we're getting a closer look at your server. Could you bring the NewObex back online (the TeamCity link)?

    Ken Gracey
  • Sure. The obex files are still placed in the /tmp directory on my server, so, every time it reboots to apply updates.... lol.

    https://obex.zemon.name is now working again (until the next reboot).

    For some reason, downloading an entire folder from within a symlink'd directory is not working. This used to work... so I'm not entirely sure what broke. This is something I'll have to actually reproduce locally and debug to figure out. But, the rest of it I think is still functional.
  • Looks like Github is easier to use. Maybe when you work out the bugs it will be useful.
  • DigitalBob wrote: »
    Looks like Github is easier to use. Maybe when you work out the bugs it will be useful.

    I certainly understand bugs making this.. less than useful :lol:. Is that all you're referring to? Are there usability issues with the working parts of it that you'd like to see addressed? Even if it's already been listed in the GitHub issue tracker or here on the forums, please feel free to speak up. This is definitely a case of "squeaky wheel gets the grease."
  • Propeller users are interested in your approach, David. I think that you're facing many of the issues we did with OBEX: design, coding, maintenance, bug hunts. It becomes a lot of work, quickly.

    We're not sure how to tie in your efforts. I think you need to get together with Jeff Martin at some stage and discuss if there's a fit/use/link approach we should use.

    Ken Gracey
  • I'm not a fan of Github at all, but I can go to github Obex, All, or a subcategory and open a spin file. sometimes the raw option doesn't work and you have to save it with the line numbers, then delete them later, some objects are missing. On yours I open some white page with a tree on my left, click on libraries, or docs, etc. and it shows a two line readme. If I use my old Win7 it just shows a plain white page and nothing else. I guess I could save every OBEX object and then post them on the forum. There should be a new forum category and call it OBEX. And have each spin object as a post. Like Basic I2C so all you do is click on it and it opens your spintool. (Good Idea Bob)
  • ElectrodudeElectrodude Posts: 1,432
    edited 2020-10-01 - 23:42:11
    DigitalBob wrote: »
    I'm not a fan of Github at all, but I can go to github Obex, All, or a subcategory and open a spin file. sometimes the raw option doesn't work and you have to save it with the line numbers, then delete them later, some objects are missing. On yours I open some white page with a tree on my left, click on libraries, or docs, etc. and it shows a two line readme. If I use my old Win7 it just shows a plain white page and nothing else. I guess I could save every OBEX object and then post them on the forum. There should be a new forum category and call it OBEX. And have each spin object as a post. Like Basic I2C so all you do is click on it and it opens your spintool. (Good Idea Bob)

    What do you mean the raw option sometimes doesn't work? Does it consistently not work for certain filetypes or something, or does it appear to work or fail randomly? What happens when it doesn't work - does it just show you a blank page, or what? What web browser are you using, and have you tried a different one? Does it work if you right-click the "Raw" button and then pick "Save Link As..."?
  • Depending on the object post the Raw option works 50/50. Sometimes it shows the code perfectly other times its just a page of random characters. I still use my Win7, but I have Win10, and my RasberryPi. I have my Mac but rarely use it, just bought it to do Xcode.
  • My OBEX II thread could work, just have to post all of OBEX. If everyone kicked in a category, like display or human input, etc.
  • Roy ElthamRoy Eltham Posts: 2,918
    edited 2020-10-02 - 06:49:47
    @DavidZemon
    I stumbled on this answer about accessing single files from github:
    This is an old question nowadays you can get to the source through: https://raw.githubusercontent.com
    
    https://raw.githubusercontent.com/ user / repository / branch / directory / file
    
    e.g. https://raw.githubusercontent.com/sachatrauwaen/OpenContent-Templates/master/Bootstrap3Accordion/schema.json
    

    The e.g. in that quote loads up the raw file in the browser. This one works too: https://raw.githubusercontent.com/parallaxinc/propeller/master/libraries/community/p2/All/jm_1-wire/jm_1-wire.spin2

    I assume one could use this to get any files from the repo, one at a time fairly easily. If I knew enough about webdev, I would attempt to write something to use this, but I don't...
    I figured either you knew this already, or would like to know about it.
  • Roy Eltham wrote: »
    @DavidZemon
    I stumbled on this answer about accessing single files from github:
    This is an old question nowadays you can get to the source through: https://raw.githubusercontent.com
    
    https://raw.githubusercontent.com/ user / repository / branch / directory / file
    
    e.g. https://raw.githubusercontent.com/sachatrauwaen/OpenContent-Templates/master/Bootstrap3Accordion/schema.json
    

    The e.g. in that quote loads up the raw file in the browser. This one works too: https://raw.githubusercontent.com/parallaxinc/propeller/master/libraries/community/p2/All/jm_1-wire/jm_1-wire.spin2

    I assume one could use this to get any files from the repo, one at a time fairly easily. If I knew enough about webdev, I would attempt to write something to use this, but I don't...
    I figured either you knew this already, or would like to know about it.

    I am aware of it. I actually thought I was using it already. Apparently not though. For displaying a file "preview", obex.zemon.name makes a call out to https://obex.zemon.name/api/downloads/<path>; to retrieve the file content. This same service can serve both files and folders. If the service detects that the requested "<path>" is a folder or symlink, it will zip it up and respond with that archive. If it is a regular file, it will respond with the file's contents.
  • A good thing about a spin post is, if you click on it the spintool opens up. Anything on Github you have copy, paste, or save it. If you can get your Obex to open the spintool automatically, that would be much better than Github.
  • DigitalBob wrote: »
    Depending on the object post the Raw option works 50/50. Sometimes it shows the code perfectly other times its just a page of random characters. I still use my Win7, but I have Win10, and my RasberryPi. I have my Mac but rarely use it, just bought it to do Xcode.

    If you save that page of seemingly random characters anyway and open it in Propeller Tool, does it load correctly? It's probably just encoded as UTF-16, which your browser probably doesn't know how to display but should be able to save correctly.
Sign In or Register to comment.