Cakephp PubNub tutorial [closed] - cakephp

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I want to use PubNub's api in my cakephp app, but I cannot find any cakephp plugins for pubnub. Essentially I want to use the pubnub api to deliver realtime messages about a user's geolocation using the google maps geolocation api. Are there any tutorials on how to integrate pubnub with cakephp apps?

I don't think there is a PubNub plugin for CakePHP. Looks like somebody had an idea for it, but it isn't developed: https://github.com/siran/pubnub
I don't personally know much about PubNub, but if you are using the PHP API then I guess what you should do is download it - https://github.com/pubnub/pubnub-api/tree/master/php/3.3 - into the vendors directory in your app (e.g. app/Vendor/PubNub) and start using it in your Cake app where you need it. You might have to write your own Cake code or classes to help make working with the API easier and your code more reusable, but I can't really advise on that.
However, it looks like the most popular option is the JavaScript API, which you wouldn't really need any special integration for with CakePHP. You would just include the PubNub script in your view or your layout if you are using it everywhere in your application:
http://www.pubnub.com/account-javascript-api-include

Related

Better way to a front-end and back-end developing [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'm starting a project and I'm not sure about what technology to use on the back-end and front-end sides. The project needs to generate charts and a lot of statistics so I have been surfing on the site and I think that the best way to front-end is Backbone.js or Ember.js, is it?
On the other hand I've to decide the server part. I'm an old school developer...Php. I need to develope an API that reads de ddbb and provide the information to the front-end side. I don't know what is the best way to develope a system that let final user to choose a date interval to view their statistics (like Google Analytics, Square, etc.). Maybe Ruby? Symfony as well?
Thx! =)
I was in your same situation months ago and I decided to go for Backbone. The main reason is that it's more used and so it's easier to get help and find good tutorials, plus it's not much opinionated so I think you can learn more while develping and also you can shape your app to fit better your needs. Anyway I didn't tried in deep Ember or Angular so take my opinion with care. For the server side part I've always worked with PHP too, I tried Ruby and I think it's a better support for a webapp but I ended use PHP anyway cause of my company's needs. You can do a good job with PHP too, but I suggest to use frameworks like Silex, Slim or Laravel that are better suited to put up a REST api which you will need if you want to use Backbone.

Can a project adopt AngularJS as its template engine while being a non-MVC project? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I use Pure as the template engine for my current project. It is, however, rather minimal in terms of what it offers. I am in need for a template engine that allows "conditional statements". AngularJS is a candidate that I am interested in. I have been reading a lot about the MVC framework lately and it seems quite interesting. If I have the resources to spare later on, I would definitely want to try to apply AngularJS on my project. For now, I just want to use AngularJS's template engine without converting my project to MVC. Is this viable? If so, please suggest any good resources for me to learn its template language. Thanks.
You can choose to only use the template bit in angular, yes. Check the angular website for tutorials. It's quite straight forward.

Yii for mobile browser [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I intend to rebuild my existing web site using the Yii framework. I want it to be mobile-friendly, so I've decided to start right off with a generic small-screen size (mobile safari, perhaps?)
I thought I would find a ready-to-go option in Yii, ideally something like Uncomment this line in the layout page for small-size display. Not there, nothing concrete in the documentation, and nothing at the blueprint css site.
I hit Google for mobile yii, 'responsive web' yii and so on, thinking Okay, I might have to patch in someone's css solution -- not a great way to start my Yii learning, but maybe doable. All I found were tips and approaches, and they tended to assume I had experience building for mobile browsers.
(Which I don't. So far the most important thing I've learned during this search is that CSS alone doesn't make it happen; apparently jquery mobile is the tool of choice. I mention this only so you'll know the state of my understanding.)
I'm all for "wet paint technology" and not having everything handed to me, but I imagined Yii would have a response for the mobile-app challenge. What am I missing? (Maybe some choice keywords, since my research produces so little?) How do you suggest I move forward?
Try with Bootstrap framework. Create a new theme in yii and put all the boostrap files in that theme .. your yii application will start working in responsive design mode. You can also use the bootstrap extension for yii

Collaboration in AppEngine [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I have a question regarding google app engine.
Let us say you are working on a project and you want to have 5 developers on it.
How will the collaboration be carried out? SVN, CVS - anything of that sort for the google app engine?
The collaboration is for a private project.
After adding them to your application in the Permission Pane of the admin console, developers will be able to deploy new application version using appcfg.py command.
People usually create multiple application version for each developer, or multiple applications if they want to isolate development data from production.
Each application version is addressable through: versionname.appid.appspot.com
You can use whatever Version Control System you want, and host it where ever you want. Google App Engine doesn't restrict you to using any specific ones, nor have one integrated (why would it?).
I personally use Git (and eventually GitHub) for my App Engine project, but I could have used any other- it's entirely what you think your team would work best with.

Is there a good tutorial for figuring out what a website is doing so your program can do the same thing? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Is there a good guide or tutorial for people who need to programmatically interact with dynamic websites? There's been a rash of Perl questions about that lately, and I haven't found a good resource to point people toward. I'm asking not because I need one but because I don't want to waste my time writing it if it already exists. Although I'm most interested in Perl, the extra tools and techniques are mostly the same.
Typically, I see see these problems in people's questions:
Handling, setting, and saving cookies
Finding and interacting with forms
Handling JavaScript inside your user-agent
especially things like onLoad, onSumbit, and Ajax
Using HTTP sniffer tools
Using Web developer plugins in interactive browsers
Interacting with DOM, screen scraping, etc.
If there's no good tutorial, I'll add it to my list of things to do (unless someone else wants to do it). Along the way, if you don't have a suggestion for an existing tutorial, please suggest the things that you think should be in a new one, including links, your favorite tools, and your own user-agent development experiences. I don't care about the particular language you use.
The best I've seen is a Defcon presentation video.
Look at perl library of libraries. Some html parsing libraries should be made for talking to dynamic websites.
Like:
http://metacpan.org/pod/HTML::DOM
But do you want to use web-browser enhanced by perl. Or perl stand alone app?

Resources