I am programming a database with Dart and JSON. So my question is:
When I want to run my app, do I have to have a real webserver running on my PC? And if yes, what kind of a program would you recommend and should it be packed in a virtual-machine?
Thanks in advance!
Karl
Dart VM can run on the command line and it has a built-in web server. You can run Dart VM on Linux, Mac, and Windows. I can't really answer further unless you provide more specifics.
Related
So, I'm writing a basic application, with a html5/jquery front end and a ruby backend. I've never used a ruby backend, and was wondering how I'd go about that. I am going to be using MySQL, very much like an Apache/MySQL/PHP thing but without PHP. I will need to eventually put the application on some sort of web server. For now I just need something local so I can develop it. So, is there a WAMP for ruby instead of php? I've been reading and Ruby on Rails seems like it may be what I'm looking for, but I'm really not sure.
So, what kind of platform do I need to learn in order to do this. I want to use ajax if possible(ruby backend). How do I go about setting up my environment.
Sorry if my question is somewhat vague, thank you so much for the help.
IMO railsinstaller is the way to get started on Windows.
For getting started with Rails itself, Hartl's Rails Tutorial is great.
When I was developing in Rails on Windows I used rails installer as Dave Newton said. For local development you can either use the bundled database SQLite and the bundled WEBrick server which means you don't need to install Apache or MYSQL. If you really want to though, XAMPP worked for me to provide MYSQL and Apache services on Windows.
There are alot of applications like MAMP, WAMP, etc. That come with a version of mysql that needs no installation and can be turned on and off easily. I am trying to create a web based application that will use a mysql database, where do you get mysql to bundle and how is it done so the user doesn't have to install it?
you can get it mysql
http://dev.mysql.com/downloads/
you can used php, ruby (rubyonrails) or java for developed application. in the case php install xampp.
MAMP, WAMP, etc. all have a bunch of configuration that is already set up for them. Essentially they've installed MySQL and everything else included under a single directory that doesn't rely on anything outside that directory and then zipped it up together. I'm not sure exactly what you're trying to do, but that really seems like overkill. May I suggest checking out sqlite? It's designed for bundling and embedding and will be quite a bit easier to deal with.
Are you truly creating a Web Based app or are you wanting to create a desktop application using web scripting languages?
If you are creating a web app, you shouldn't need to bundle MySQL since when you deploy to your hosting environment it should already be in place. If you truly need to package everything you'd be best off offering your software as a virtual machine appliance with the appropriate services already configured and running.
If you are creating a desktop app, that's a whole other issue.
I need to be able to read/write to a mysql database using Perl. On all previous servers I have been able to use ppm-shell do download and configure the DBI module for mysql (mysql-dbd I think). However on one particular server, I don't have internet access.
Is there an easy way to get this installed? I'm on Windows 2008 Server by the way. I'm not brilliant at Perl either so if anyone can give some easy to understand instructions I'd really appreciate it
Thanks
Download the module from here http://cpan.uwinnipeg.ca/PPMPackages/10xx/
install via the command line:
ppm install filename.ppd
Get the module. ( this can help: http://win32.perl.org/wiki/index.php?title=PPM_Repositories)
and do: ppm install FILE.ppd
I am creating application for MAC using cocoa framework, I would like to know how and what are the ways i can connect to MySql database using cocoa framework.
You might want to look into http://www.sequelpro.com/docs/Source_Code. They seem to have resurrected the original MySQL-Cocoa code and it seems to be under active development. The other option is the commercial MacSQL Framework.
Edit: You might also want to look at the following tutorial. It is a great introduction in using the libmysqlclient and even provides a sample Xcode project.
Short answer: You can't, at least not directly.
The Cocoa Framework doesn't have a database driver, generic or otherwise (CoreData notwithstanding). In order to connect to a mysql database you need to use the aptly named libmysqlclient. This library is not included with Xcode, and as such will have to be downloaded (and probably built) separately: You can get it from here.
You'll probably have to distribute the library with your application, license issues might result.
Edit: It seems as if a library for connecting to the mysql database should be installed together with a MySQL server install. If the application will only need to run on machines where MySQL is installed, you might get away with linking to this.
Hey! I've searched high and low for this, and no luck. Is there a way that CRUD methods for a MySQL install (Linux box) be exposed via ADO.NET WCF Data Services? I would really love to leverage this in my WPF app :)
Thank u!
EDIT:
:D I am aware that it's called Windows Communication Foundation, but just thought I'd put it out there and hope that it is possible
The only way to do this would be to use a something like a MySql to linq provider and host the wcf service on a windows server box which connects to the mysql linux box in the usual connection string way.
So you will need windows server as well as the linux one hosting the mysql database, unless you want to move the mysql instance to the same windows box.
Hope this helps.
Edit
Couple of potential links which could help ... here and here
Have a look at the Mono WCF Core stack, this might be better for you.