How to develop an simple application for Blackberry that allows me to send and receive data from mysql server - blackberry-simulator

I want to develop an simple application for a blackberry that allows me to send and receive data from a MySQL server. I am not that familiar with Java Mobile Programming but am aware I need some sort of web service/servlet. I have been trying to find out how I can do this from blackberry tutorials/forums but without success. Basically I want to query a MySQL database from a blackberry and want the result returned. Can anyone tell me how I can do this or provide sample code? Or offer any easier alternatives?

Related

Server communication with database

I'm creating an online game and the client is going to be made using unity as well as the server and I'm wondering whether it's okay for the server to communicate with mysql database via PHP
For simple tasks, there is actually nothing wrong with that.
There is also a example of using this method in the wiki here: http://wiki.unity3d.com/index.php?title=Server_Side_Highscores
But be aware: that is not the fastest solution.
You could make a faster direct connection with a plugin like this one:
https://github.com/Hanslen/Unity-with-MYSQL
And for native unity support on Android and iOS support i would go with a sqlite database plugin: https://github.com/rizasif/sqlite-unity-plugin

Is it possible to create a database driven website with flash?

I am a newbie programmer and i dont yet have any idea of the WEB. I wish to start learning a technology that will allow me to build websites( database driven) i dont know which one to choose. I know some actionscript3 and flash.
Is it possible to create a database driven website using these alone? Or do i need to learn any other technology? If i do then what should i learn? I know j2se for the desktop and oracle SQL/MySQL
please show me a path. Also wanted to know if there is any technology like Wordpress for J2EE/flash
OK so i finally got the feeling that i need to learn PHP anyway along with css and javascript. So it is fine. Also another query. Which CMS should i consider? Wordpress or Joomla?
You can develop a database driven website using Flash, but only in the same sense that you can develop a database driven website using AJAX. That is, you can build the front-end using Flash/ActionScript but the back-end is built using other technologies. Just like working with JavaScript to develop a front-end, from ActionScript you would be communicating with Java or PHP or Python or something on the server using RESTful calls and then actually working with the database in the server-side scripts.
Honestly = this question is too broad and generic, and answers are easily found with some google searches.
That being said = of course you can build a data driven flash site. The one caveat here is that flash itself is fundamentally client-side technology, so we must rely on other remote tech to do the heavy data lifting. The options are profuse.
For example, a developer might create a front facing presentation in Flex, which is the streamlined, data-centric extension of pure flash. His database interactions are written in php, and these are constantly called upon to deliver content to the user.
So - what technologies to use? Whatever you know. And if you don't know, then learn the ones that are closest to what you know.
Finally, although I am a die-hard fan of flash, this type of project (you didn't specify what you had in mind) could be done with many different technologies. So - maybe flash is the right answer, but maybe javascript (ajax) could manage the same thing and do it without the need of plugins.
Yes you can develop database driven site in flash/action script but you still need and back-end technology i recommend you to check WebORB you can develop the back-end using Java, PHP, or .NET In addition you can use Flash Remoting technology Flash/Flex to communicate with a back-end
Flash can't be directly connected to database. You must use another technique which would be "mediator". I have developed Flash game with MySql database and PHP and I recommend you to use this combination. Here is visually presented this kind of communication: http://www.youtube.com/watch?v=gRi-oxjFfCU
yes, it is possible to crate database driven website with flash and action-script. You would get an XML file when you do action script in flash, so you can store nodes of that XML file into database(mysql). You can then create an Admin interface to manage your database contents, that would indirectly change your xml nodes. So basically you can edit the xml file and store it in the database.

nodejs and database communication - how?

I've heard much good about nodejs and writting client-server application with it. But I can't get, for example, when developing IM client-server application, how nodejs server script is supposed to talk to database server to actually store it's data? Or may be I miss something and nodejs server scripts are not supposed to do that? If so, please, push me to correct direction.
I've noticed DBSLayer http://code.nytimes.com/projects/dbslayer/wiki, but it looks like it's still in beta.
You need to grab a module that handles the communication to the database you want. See here for a list of modules for node.js. Popular databases that work well with node.js are MongoDB, CouchDB and Redis.
As stagas says, you can use a module that handles communication if you want to use an external database.
If you want an internal (=embedded) database, you can use one written in javascript you can require like any other module such as NeDB or nStore. They are easier to use and useful if your webapp doesn't need to handle a lot of concurrent connections (e.g. a tool you make for yourself or a small team), or if you write a desktop app using Node Webkit

Web Application Server

I'm very new to web development but I will try to explain my question as best I can.
I am making a basic chatroom program (in C#) but I have never made my own online server before, and it needs to respond to tcp packets. I know how a server works, I just don't know how to implement my server and how people will be able to access it.
Hope thats clear. Thanks in advance.
Edit: Sorry I didn't mean to ask for examples of chat/server applications, I already know how they work. My question is how do i host an online server that is accessible to anyone?Are they written in php? asp?I dont want to be running an application on my computer that will be the "server". Thanks!
If you like to study some existing network applications, i recommend the twisted project; it contains a web server, numerous chat clients, chat servers, mail servers, and more.
Some example C# code for a chat client and server: http://www.developerfusion.com/code/3574/a-chat-clientserver-program-for-c/
You can take a look at Web Tornado.
They have a chat application sample, and it's basically a light, non-blocking web server. It is written in python.
if you are using c# then you can have a look on signal R as well. It is getting popular because of event based pull / push mechanism which may assist you in the development of chat room.

mobile software that inserts and sends text message to database

I'm looking for a mobile software that will send/receive text messages from mobile phone to a database(if not directly I can build a service or something to receive it) so that the program will insert new messages into specific table and polls another table for outgoing messages. I found a program called Ultrasms that does something similar but it runs on a computer paired with the mobile. I would like the software to actually run on the mobile. I don't really have preference about the mobile OS I just want to build it fast.
If you don't know of any software, do you recommend the easiest way to do this? (Windows Mobile, Android, IPhone, BlackBerry?) and using what language/Framework to do this?
You could use Windows Mobile quite easily. The Compact Framework has the MessageInterceptor class which allows you to do something (i.e. inserting it in a database) when a message is received.
Just use a web service on the server which the Windows Mobile device can call to store the message data, and use another function to poll the server and return any messages to the device that need to be sent out.
All the code needed for this is C# and standard available in the .NET Compact Framework, so no need for any third-party DLLs or software.
If you mean, text messages, as just text messages by the internet and not a sms service, I would definitely go for android or maybe just a web widget.
Why Android? - its so fast to develop on and I mean crazy fast. Sure its lacking features, but if you want messaging, web, get/post data, this is the platform for you.
If you mean sms text messages, things will be a little more complicated I'm afraid. Involves hiring a sms-service provider and getting the sms text messages from them with the sms-provider API and then you can put messages into your database. This will involve some kind of payment to the provider.

Resources