oAuth and Codeigniter with MongoDB - codeigniter

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 :)

Related

arrowDB - is there a way to move development data to production?

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.

OnChange on a table is available in golang driver - rethinkDB?

I am working on RethinkDB and Golang and completely new to these two Technologies/Database.
Note
GOLang driver - I am using this driver for connecting rethinkDB.
Problem
There is no onChange on a table functionality in this driver.
Note - OnChange functionality is available in rethinkDB.
Any suggestion of golang driver which supports rethinkDB onChange.
Thanks in advance
Sorry for the delayed reply I dont check StackOverflow as often as I should.
GoRethink actually does offer support for Changefeeds. Unfortunately the documentation is currently a bit lacking and I hope to work soon, until then I recommend having a look at the tests. Hopefully that should give you an idea on how to use them.
https://github.com/dancannon/gorethink/blob/master/query_table_test.go#L215
If you have any further questions regarding change feeds or any other issues with the driver let me know.
That Go driver is provided by a third party and as you note they do not seem to have yet added support for changefeeds. It is hosted on GitHub, so you could file an enhancement request. There is recent activity in their repository, so there is hope that they will add it.

How to use GTFS-realtime in OpenTripPlanner standalone?

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)

FreeSwitch - MongoDB integration

I've installed FreeSwitch on Linux CentOS 6.4 server. I found out that if I want to add a user, I need to make a xml file under /freeswitch/conf/directory/default folder. I was wondering why it doesn't use database to manage account and password?
FreeSwitch supports MongoDB CDR Mod. http://wiki.freeswitch.org/wiki/Mod_cdr_mongodb It shows detailed call record on web browser. It is like admin tool. However, this is not what I was looking for.
I am looking for a way to store new account and password into MongoDB and use it when a user make a call through FreeSwitch. So, I can handle user data in a better way. Does anyone know how to solve my problem? Thank you.
I think the fastest way for you to get familiar with FreeSWITCH is to read the book: http://www.packtpub.com/freeswitch-1-2/book
The book is quite short, and it answers most of potential questions, and for the rest of questions you have the Wiki and the source code :)
to answer your question, yes, there's a number of mechanisms to look up external sources for user information and credentials. The simplest one is to use mod_xml_curl: it requests pieces of XML from an HTTP server, and you can build the service with whatever database backend you prefer.
Freeswitch supports sqlite, pgsql and odbc those three way all can solve you problem .In sip_profiles/internal.xml you can find some way to connect database
<!--<param name="odbc-dsn" value="dsn:user:pass"/>-->
<!-- Or, if you have PGSQL support, you can use that -->
<!--<param name="odbc-dsn" value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch user=freeswitch password='' options='-c client_min_messages=NOTICE' application_name='freeswitch'" />--> ##

Server push in php

In an app, I am looking forward to implement server push functionality. I have gathered some information about the technology also, but I am little confused that with which language should I prefer for and what else requirement needed(note: this is going to be a social n/w app)?
I have just finished a project based on php / mysql, so will PHP be a good option or ruby on rail.
So can anybody guide me here. also if any good article before start working on it?
Thank you in advance.
What you're looking for is Comet. With PHP, your options are somewhat limited; see here for details.

Resources