I developed a tool to convert german transit data into GTFS and GTFS-realtime.
Now I've got the task to test these files in OTP and I installed this standalone Version:
https://github.com/opentripplanner/OpenTripPlanner/wiki/Minimal-Introduction
Everything works fine with my GTFS Data, but now I'm totally lost when it comes to using my GTFS-realtime Data. How can I include them? Is it even possible in the standalone Version?
Sorry if these are totally stupid questions but I'm a rookie in OTP and I appreciate any help or hint :)
Here is a Java demo that consume a GTFS-realtime data.
https://github.com/OneBusAway/onebusaway-gtfs-realtime-visualizer/wiki
Take a look at "digging into the code" section.
All the mentioned entities such as FeedMessage, Vehicle, ..., etc. is generated from GTFS-realtime.proto via
protoc GTFS-realtime.proto --java_out=
You will need to download, make install the Protocol buffer tool(protoc)
Related
I've built an app using arrowDB for the backend. Is there a simple way to duplicate development data to production?
Seems like an oversight not to be able to do this, have an app going through review process and just realised all our test data won't be accessible
As far as I know, there is no feature like this right now.
You could probably build your own using their REST API. I haven't seen a solution like this built yet but I definitely think it is possible. If I get some free time, I will try to put one together and will post a link here.
I am trying to implement jasmine-maven-plugin for my project.
In my project there are multiple separate web projects, I successfully integrate the above plugin in all of my web projects except one.
I have used HtmlUnit driver for all of my web projects but getting RuntimeException: Exception invoking setOnopen from WebSocket class for a particular web project, others are executing fine.
Instead of htmlunit if I use phantomjs driver then it is working seamlessly but for that I have to keep the phantomjs executable in my system PATH which is not go with the maven philosophy, I do not want to keep any separate executable in my system. Due to this I want to use htmlunit driver which is throwing the above setOnopen exception.
I did lots of google but not able to get any solution, if you have any insight on this issue please let me know. Thanks In advance.
If you want to avoid requiring phantomjs be installed separately you may want to take a look at these projects for some ideas:
https://github.com/qa/arquillian-phantom-binary
https://github.com/qa/arquillian-phantom-driver
And take a look at this forum discussion:
https://groups.google.com/forum/#!topic/phantomjs/yZj_ciH21pE
I've yet to have time to try this out myself but it sounds promising. Also, note that you don't need to have phantomjs on your system path. You can specify the location of the binary using the phantomjs.binary.path property. See the second example on this page which shows how to configure it using this property.
Hope that helps.
I need use protobuf in my windows store app and I use this Protobuf port but when I generate classes from proto file seen like not full because I dont have access to .newBuilder()... nad if I use p:lightFramework I still cannot work with .newBuilder()... Anyone can help?
Part of generated code without light framework options
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=#"Person")]
Part of generated code with light framework options
[global::ProtoBuf.ProtoContract(Name=#"Person")]
Problem is there:(.newBuilder() is not recognized
CP.ConnectionResponse respp = CP.ConnectionResponse.newBuilder()...
You seem to be using two different libraries at once; in particular, you seem to be following the instructions for protobuf port, but actually using protobuf-net. These are two different libraries, connected only in so much as:
they both target .NET
they both serialize/deserialize protobuf data
To add context - this is a bit like using JSON.NET but following the instructions for ServiceStack.Text: both can serialize/deserialize JSON, but the API is different.
You need to decide which library you want to use, and follow the instructions for that implementation.
As an aside: for the best performance on a store app / windows phone app with protobuf-net, you may also want to consider using the precompiler - but you should be able to get it working (for a proof-of-concept etc) without this.
I am using the oAuth library for Codeigniter made by Alex Bilbie. It is made for MySQL.
Has anyone used it with MongoDB? I will try to "convert" it to MongoDB but there are som many files in the repo and only few of them is needed for the server setup.
Does anyone know if there is a ready made Mongodb of this repo and / or which files that
is the bare minimum for a server only setup?
Repo:
https://github.com/alexbilbie/CodeIgniter-OAuth-2.0-Server
Thankful for all input!
This doesn't exactly answer your question but it might be what you're looking for.
Funnily enough Alex has already created a mongodb active record driver for CI. You will probably have a much easier time converting it to using this than anything else I'm guessing.
Blog
http://archive.alexbilbie.com/2010/04/17/a-codeigniter-active-record-library-for-mongodb/
Bitbucket
https://bitbucket.org/alexbilbie/codeigniter-mongo-library/wiki/Home
If you do get around to making a conversion github it and link here please :)
So I've started using MvcMiniProfiler on our websites and quite like it. We have a Windows Application component/framework that is leveraged by the website and I was wondering if it was possible to use the profiler on that. I'm assuming not, but maybe there is a subcomponent of the code that could be used? I see that there is a way to configure where the results are stored (i.e. Sql Server) so maybe it is close to possible?
We have the following flow:
Website submits job to 'broker' then returns a 'come back later' page.
Broker runs and eventually data in the websites database gets updated by the broker.
Website displays the results.
I'd be great if there was a way I could get the entire workflow profiled. If there is no way/no intentions from the developers to make MvcMiniProfiler available to Windows applications, any recommendations for similar styled profilers?
You could get this working by using SqlServerStorage, there is very little in the code base that heavily depends on ASP.NET, in fact the SQL interceptor is generalized and so it the stack used to capture the traces.
I imagine that a few changes internally need to be made, eg: use Thread.SetData as opposed to HttpContext but they are pretty superficial.
The way you would get this going is by passing the "profiling identity" into the App and then continuing tracking there. Eventually when the user hits the site after it happens, it would show up as little "chiclets" on the left side.
A patch is totally welcome here but it is not something it does in its current version.
(note to future readers, this is probably going to be out of date at some point, if it is please suggest an edit)
Yes, there's a Windows porting of MiniProfiler: http://nootn.github.io/MiniProfiler.Windows/