Will Web Service / MySQL run in iOs Simulator [closed] - mysql

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 coding an app in XCode4, and am approaching a part of the development in which I use web services to connect to a MySQL database to both pull current and write new user account information.
Just wondering if this will work in the iOS Simulator that comes with the XCode bundle?

You don't need an answer for this question, as you have it right there in the same question.
I really think you should take home the following:
A web-service is an interface to a (possibly) remote entity that will answer to you with data/calculations etc.
There are two sides to a web-service: (1) the server side which is the real web-service, and (2) the client side which are the web-service libraries that you use to connect and use/get data from
A web-service to a MySQL database will encapsulate/hide the database from you. This is usually so that you don't need to deal with the query language/data conversion/relationships/etc. Keep in mind that there's no MySQL over web-services (out-of-the-box), so someone has to connect those two for you.
A MySQL server can run on your computer, on a virtual machine on your computer or on a remote computer.
The web service can run on the same places, but not necessarily on the same place
That said the iOS Simulator doesn't need to run the web-service or the MySQL server, It only needs to connect to them. As such they may be wherever, you just need to be able to connect to them.

The simulator is able to make HTTP(S) requests, so of course web services would work.

Related

Objective-c app for iPhone and mysql [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 planning to build an iPhone application in Objective-C that will require to be connected to an MySQL database.
Should I,
Use a framework and query the database directly from the application
Go through a PHP page that will get the data, transform it into JSON and send it to the application?
Is the first solution secured ? Which framework do you recommend?
How can I secure the server and the access to the database as it will be open to anyone on the internet?
Thank you for your precious answers.
Most probably point 2 is used in mobile appliction.
Personally, if the MySQL DB is based on the internet, I would expose a Webservice to interact with it.
It is depends on your database size. If it is very large then you should use Webservice to received data from server. You can use secure HTTP base server connection. Very large size database is not recommended to stored in local(phone memory).
If your database is small in size and not frequent updating then you can use Sqlite as your database. This is most preferable.

Is my Web-Server Deployment is fine? [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 going to deploy an IIS 7 Web Server for my ASP.NET MVC 4 Application.
Windows Server 2008
IIS 7
SQL Server 2008
I'm going to do this:
In my application:
*Each customer have to use two database
First DB: Their own database(each customer have one)
Second DB: The Global Database (all customer have the same one)
And the First DB can join to the second DB.
(I'm going to use Server Binding)
And about Web-server:
Each customer have their own Web-site (on the same IIS Web Server) to get the View/UI
All customer have the same API Web Server (this one will do everything: get data from database, add/remove data,...)
Each customer have one Search-Engine(Suggestion tool), to use this tool, I have to load all relative data into Memory(reload this data each 4 hours)
This is the first time I have to deploy a server like this, so I don't know how to do the best...
If there are any advises, suggest, reference, books,...please send it to me.
Any help is appreciated!
IIS and SQL Server already cache things in memory for performance, provided there is enough memory and the programming allows it. You don't need to write a special module to do this.
You don't need Server Binding to join across databases in SQL Server. You just join accross the database in your SQL (provided they are on the same server)
SELECT D1.F1, D2.F2
FROM
ClientDatabase.dbo.Table1 D1
INNER JOIN
GlobalDatabase.dbo.Table2 D2
ON D1.Key = D2.Key
SQL Server already comes with a text search engine http://msdn.microsoft.com/en-us/library/ms142571.aspx
Will you be searching text within database records, or will you be searching text in external documents (i.e. Word, PDF)
It appears you are reinventing the wheel. You are more likely to have success if you use pre-built proven components!

Desktop or Offline Web App? [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 am building an application for a friend's event company. The software will only be used by a handful of people who run the events.
These are the essential requirements:
The software will capture basic data input regarding the event and
competitors.
The software will need to work offline - an Internet connection
cannot be guaranteed in venues.
The software will locally store data which is to be synced to a
remote database when an Internet connection is available.
The software will display a second window sent to a projector screen and displaying updates
to the audience.
The software will need to record data via a serial port for each event.
Though this might traditionally be a desktop application, I think there are good reasons for trying to build something like as a web app namely:
Easier for me to build / maintain / test.
Cheaper (.NET would be my first port of call for desktop but I heard Microsoft are
abandoning VS Express for Windows 8).
Platform independent - if an onsite laptop failure occurs, the ability to use another
machine without installing and configuring the software is available, as is the possibility
of future hardware upgrades.
As I have not yet used the offline capabilities of HTML5. I'm wondering are there any caveats before going down this route - is a desktop app better, or another solution?
(I know I'd have to create a Java Applet for the serial port communication as demonstrated here.)
Since you need to communicate with hardware I wouldn't bother with HTML5 and possibly Java applets. Just go with a desktop application.

HTML5 Websocket + Node.js Realtime Notification System [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.
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.

Vb.NET Client Server Push Notification [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 am a an amateur in Vb.NET programming, or in this case any programming language that needs push server notification.
I am currently making an application which requires the server to send a notification if Client A is making a task assigned to Client B.
I can only imagine to create another application on the server which up all the time and listens to any changes happening on the database, and then if there any changes send a notification to assigned user.
Is there any better approach?
Can someone point me to a good resource?
Any help will be greatly appreciated.
Thank you.
This has been covered already here [asp.net http server push to client], which should give you some good info about adding a push service to your project.
On a related question, John Saunders, says:
"Unfortunately, that's just not the way the web is designed. Rather,
it's set up so that a user asks for a specific resource and the web
server provides it if it can. One request always returns exactly one
response.
This means that you need to simulate the push service by creating a
heartbeat between a rendered browser page and your server. The web
page will have javascript that tells the browser to periodically ask
the server, "Do you have any changes for me?" You can implement that
in ASP.Net AJAX using the timer control, but it can be tricky to get
it right. There are lots of little gotchas you need to watch out for."
Some other realted websites & questions:
http://www.strathweb.com/2012/05/native-html5-push-notifications-with-asp-net-web-api-and-knockout-js/
Instant notifications like Facebook
Server-Push Technology (aka. "COMET", "http server push", "websockets")
AJAX Server Push
One thing I know about push services, is that it uses a lot of resource. Also look at Reverse AJAX.