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 am looking to create a game application and have done a lot of video tutorials and read a lot of books on IOS.
I would like to know more information on techniques and common practices for game applications. I do not want to setup a game using GK/Game Center. Ideally I would like the user to have the option to enter some basic fields like Username/Password or to login with Facebook to create a user account.
The game will be peer-to-peer and played by one user completing a move that sending to the other and vice versa.
I have had a look at the Facebook SDK and the Hackbook sample application and that part is all fine.
I would like to know if someone can provide more information, video tutorial, eBooks and/or sample code for applications that create user accounts. What methods do they use to create these for multi player games, how these are then managed in terms of multiple users being created and playing the game, how these are scalable etc.
Thanks
You'll need to have a server to store user accounts and game data. If you don't want to create the server yourself, I'd recommend using a backend-as-a-service platform. I've had good luck with Parse
https://www.parse.com/
They have some samples and SDK functionality for user accounts and Facebook integration. That should get you started. Your game data will be saved in an object that acts very similar to an NSDictionary that you can persist on their servers.
If you want a different provider, just search for "backend-as-a-service"
Related
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'm creating a book website where people can add books to their shelves. I'm currently planning on using the Amazon API or maybe Google books API. I'm unsure how to model it in the database though.
Should I look up a book once then store all the book's info in my database (ISBN, Description, Title, Author, etc) or should I look all this information up each time? Performance issues may lean toward lookup once, while having updated data leans toward lookup each time...
If I do store it in database, how do I keep database updated with Amazon (description or price, etc)?
If I look it up each time, how do I allow users to search for other uses using the same book? Maybe just store the ISBN?
You can model the database with these tables to start with:
Books
Authors
User/Customer
BooksUserReading
When the user search for a book add them to your database. To keep the database updated with Amazon you can use a web service to run every 24 hours to check for updates.
Not sure how much this helps you.
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.
in the last weeks I have built a small notification system using HTML5 Websockets and node.js with socket.io.
There are still some things that I haven´t solved, yet.
I have read that realtime notification using node.js should be the best performance solution vs long polling etc because of non blocking i/o operations.
Now assume we have to notify friends of this user. Something like "I have bought a new iphone". How do I teach node.js to realtime notify specific user 1:n? Till know I have only got sending and receiving message 1-1 communication.
This means I have to go check against facebook api friendlist first and find out which facebook_id is connected with which socket_id somehow. Then check the users privacy settings, if he would like to receive notifications and then send and save it into the database.
So to me this somehow seems not to be the most effective solution...
At the moment I would use mongo-db native driver for node.js and have db operations done by serversided javascript.
I still need to implement facebooks javascript sdk to get the friendslist, but I would have trouble with the users privacy settings. Doesn´t this destroy all the advantages of non-blocking I/O?
How do you actually solve this. To me, it seems very complex.
Thank you very much.
You shouldn't go to Facebook to check friends list and such..
you should cache them, i assume the users are logged in if so the solution
seems to be very easy.
Get the user.
check if the sender is his friend
check if the recipient want to receive the message.
btw, redis is a lot faster.
Edit:
if you are worried that the user data won't be updated
and that's why you do not cache you should check Real-time Updates.
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 metro application in which am trying to display notifications whenever my service get updated.I tried to read Metro App push notification concepts overview from microsoft website and I observed Push Notifications sample but I did not get proper idea to implement push-notifications in Metro-apps?
Can anyone give me a sample example to implement push notifications in metro apps using HTML5 & JavaScript,really it will helpful to me?
Thank you in advance.
For push notifications, you need a server side component to perform the actual push of the notification. This is performed by your server sending a request to a specific URL -- that URL is obtained from your application which registers with your service. Clearly doing this in a pre-canned way is marginally non-trivial, although the process itself is not.
Details on how to obtain the URL, and how to send a notification to it:
http://msdn.microsoft.com/en-us/library/windows/apps/hh465412.aspx (Getting the URL)
http://msdn.microsoft.com/en-us/library/windows/apps/hh465450.aspx (Sending a notification to the URI)
If, however, you just want to update the tile for your application when it does something when the user is using it:
http://msdn.microsoft.com/en-us/library/windows/apps/hh465439.aspx is a good starting point.
The above links have snippets. There is a fully worked through sample for tiles/notifications on MSDN also:
http://code.msdn.microsoft.com/windowsapps/Push-and-periodic-de225603 (Push)
http://code.msdn.microsoft.com/windowsapps/App-tiles-and-badges-sample-5fc49148 (Local)
I'm also working on the same. Here I'm sharing few links below which might be useful to you.
Prior to this, once read the Guidelines and Checklist for implementing push notifications.
Go through this link for Implementing Windows 8 Push Notifications.
Hope it Helps.
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 would like to set up a premium subscription service for a PHP/MySQL based site. The site is Wordpress based, but highly customized and I'm not looking for a plugin solution necessarily. To oversimplify, I need to query the signed in user's subscription level (paid or free) and tailor the content that gets presented accordingly.
I'm looking for suggestions on how to implement the back end for billing/payments. I know one option is to use the paypal API, but I was wondering whether there are alternatives that I should also be considering. One thing I have noticed with many sites using paypal is that the experience is quite disjointed in the way one gets passed from the original site to the paypal site and back again. Is this just the way these sites have implemented the integration or are there better options than paypal from a UX point of view?
Also...
Have you used any tools / libraries / services that made this easier?
Do you have any advice on this topic in general? Gotchas, pointers, etc.
Finally, we're not a large corporation (yet), so a solution that could scale with us would be ideal.
UPDATE: After learning an enormous amount about the different options, we decided to use Braintree. Deciding factors were:
We could easily get full PCI
compliance and still control the
user experience completely with
their transparent redirect
They guarantee portability of your
customer data from their vault (very
few vendors do this)
They remove
the need to set up your own payment
gateway and merchant account
I wrote a detailed review here: http://expletiveinserted.com/2011/03/18/comparing-recurring-payment-solutions/
I also put the cost comparison list for our shortlist of solutions here: http://expletiveinserted.com/recurring-payment-cost-calculator/
Every payment gateway is different, and whichever one you decide to go with will provide complete instructions on how to integrate with the various features they offer.
PayPal is of course the only one that is not regulated by any governmental body, and coincidentally enough, the only one that makes their money by robbing people blind. Shouldn't be too hard to find thousands of horror stories if you look.
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 am looking for something that will allow me to put a photo gallery onto my website. I would also like to let someone else be able to easily add/remove pictures.
It would be nice, though not required, to work with a photo sharing website (like Flickr).
http://gallery.menalto.com/
Personally, I use Coppermine Photo Gallery which is PHP-based. It requires a database (I'm using MySQL) but there are other alternatives which use flat file based data sources.
Coppermine allows users to create accounts, upload their own photos and comment and vote on photos. There is a bunch of advanced features which I haven't dug into as yet. The main website has a complete list of functionality.
Obviously there are also other options for ASP.net solutions also. What web server are you hosting on?
Coppermine's Requirements are:
Any webserver, Apache recommended (Coppermine has been reported to work with Apache, Microsoft Internet Information Server (IIS), Roxen WebServer, Abyss, JanaServer)
PHP 4.2.0 or better
GD lib or Image Magick
mySQL 3.23.23 or better (4.x recommended). Don't confuse the client api version (which is shown in phpinfo) with the mySQL version!
Oh plus, Coppermine is free software and is being released under the GNU GPL license.
[ http://coppermine-gallery.net/ ]
CoolIris has XML/Flickr support with a "Vido wall" style Flash component.
No add/remove functionality though, depends on other code to do that. Maybe use this as well as someone else's suggestion?
http://developer.cooliris.com/?p=embed
Can I add xFlow! to this illustrious list?
http://xflow.pwhitrow.com
xFlow! is a gallery application that has been built to answer the internet's demand for a fully functional Coverflow style gallery.
Written in PHP and Javascript, it's a breeze to setup and administer, and boasts a wealth of features, including support for Flickr and YouTube.