obex and git hub
pilot0315
Posts: 910
in Propeller 2
@cgracey @"Ken Gracey"
I am sorry that you closed the obex. I am sorry that you went to git hub.
I cannot find anything as git hub is too hard to use for the layman.
Please, please find a way to make it more easy to navigate.
Thanks.
I am sorry that you closed the obex. I am sorry that you went to git hub.
I cannot find anything as git hub is too hard to use for the layman.
Please, please find a way to make it more easy to navigate.
Thanks.
Comments
However, as it currently exists you either have to copy each file from the "raw" display on GitHub, or download the entire repository that contains all the objects. Maybe there's a way to automate this with some Java script code in a front-end webpage.
Unless you are willing to download the whole lot it’s totally useless!
I might give this a shot in my free time.
It will, of course, be READ ONLY. I've NO interest in providing any backdoors to submit new objects, but there's no reason to make acquiring objects as difficult as it is now.
The process of cloning the repository (requiring an installed git client) and finding the right file within are the end-user problems IMO.
Could be solved by integrating into propeller tool/spin - have a button to "refresh object library" or smth and it does it all automagically and you could just start using the lastes community objects (ideally with some way of giving it a commit reference (i.e. a tag or SHA1) so when the object gets updated your code doesn't magically break)
Splitting the repository into a bunch of seperate ones (maybe one per category, aswell as per-project if the author wishes to maintain their own repository) and then submodule-ing them into the main one would fix that and the organization problem, but submodules are a major PITA in Git, so, yeah, idk.
https://github.com/parallaxinc/propeller/archive/master.zip
I followed this and only found p1 is there one for p2?
Still looking.
Thanks
https://github.com/parallaxinc/propeller/tree/master/libraries
Click on community.
Click on P1 or P2.
Click on all.
Problem? It does not seem that all of the obex for P1 made it there.
Still what a pain. Took me hours to find this.
There just seemed to be more than what is on git hub than the obex.
Keep in mind that while we liked OBEX, it was a ticking time bomb we were not able to maintain. As our company was reduced in size to finish Propeller 2 some sacrifices had to be made - one of them was the loss of two staff that had this Drupal experience earlier this year.
It takes a front page to evolve the presentation to be more useful. This is @"Jeff Martin" 's job at Parallax.
We'll get there; just stick with us!
Ken Gracey
I usually search a downloaded copy of what's on Github. It's available here: https://github.com/parallaxinc/propeller/archive/master.zip
I usually search with grep and locate, but those tools aren't easy to get working in WIndows. Instead, try this open-source WIndows locate GUI: https://locate32.cogit.net/
The obex search engine wasn't that great to start with, so Github's search engine should at least be able to match it. If you have the repository open, you can enter search terms into the box in the top left corner, then click on 'In the repository', to only search the Propeller libraries.
All of the old P1 projects should be on Github, and they are all in the 'All' folder you mentioned. The category folders just link to the project's folder in 'All', so only one set of files needs to be maintained.
― David Carrier
Thanks.
Been a while.
https://gist.github.com/gitaarik/8735255
So the only reasonable way to stand up a read-only OBEX for quickly downloading objects is to have an app running server side which can clone the repository and then the browser can retrieve the directory listing from this custom app. I'll play around with this a bit... shouldn't be hard.
@"Ken Gracey", is this something Parallax would be interesting taking over if I do the initial development? If so, reach out to me... I'd like to write it in whatever language you guys would prefer, that way it has a better chance of being maintained.
Lots more work to make this more usable. Known issues:
1. Can't download objects from the symlink'd directories. You can navigate the list of symlinks, but to download, you must find the object under "All"
2. Nothing is configured to auto-update the server-side Git repository
3. It would be nice if you could view individual files in the browser
4. It would be nice to display a loading bar while a ZIP is being prepared (it can take a long time if you try to download all P1 libraries, for instance)
5. There's definitely some sys-admin related stuff that needs cleaning up.
We like where you're headed and would consider adopting it as our own. I don't think we'd be too effective doing more development around the concept once it's near-done, though. Taking over other people's work seems sensible, but sometimes this causes us some time loss we just can't afford.
I suggest you continue on, we watch the feedback/acceptance, and make a decision at the right time.
We're appreciative of what we're seeing here, just to be clear. It is truly wonderful to have the community step in to help us get this effort up and running. Therefore, thank you!
Ken Gracey
Glad to hear. Do you have a language preference? Right now, it's Java because that's my native tongue. But I could easily port it to Python. Rust is a bit tempting, just because it would be a fun learning experience. C is out of the question
This makes it much better and easy to download a file, so many thanks
Could the files named "README.md" be viewable on the page, rather than just downloadable? That way an interested party could get a description and usage before downloading.
dgately
Yep, absolutely. Already on the todo list
Looks like a good idea coming together. Thank you all for understanding. Looks like I was not the only one.
Thanks
Martin
I took a quick look. Will look again shortly.
I'm asking @"Jeff Martin" to jump in and take a look. I'd think Python would be the preferred choice. If we use this tool we'd hope not to have to maintain any code at all in the future.
Ken Gracey
Any software needs, at very least, dependencies updates to patch security vulnerabilities. And then of course, as dependencies get updates, APIs break... you know.
But that sounds good. I'll look into migrating to Python.
The individual sections, ie sensors, data, etc., could be added into the repository names, like this:
A quick email to Parallax with either a link to your own repository or a zip file containing your project would be sufficient to get it on the OBEX.
Your summary is right. But this is what I know... It's the only kind of webapp I've ever built. I'd hardly know where to begin if I went about it your way.
But I get you, when you know how to use a hammer, everything is a nail. (I'm still using Allegro 4 for simple graphics stuff on PC because that's what I always used, despite it being a buggy mess even on Win7...)