How to make an application and website? - web

I want to make a chat application in website and desktop application
How can I make that?
Need I use 2 language for that? Like java for app and php for website
Thanks you!!

Sure.
Java for the desktop application (there a lot more possible languages).
Php in the website back-end and HTML (and JavaScript) for the front-end.
There are two ways to achieve this:
1. Peer to peer: the clients connect directly.
2. Use a server with, for example, MySQL to "connect" the applications.

Related

How to embed Google Assistant in web application?

Is it possible to include the google assistant into my local web application so that everyone can use it? I've got a JSF-Application that runs on a local tomcat 7 server. My goal is to change the views by voice. I want to do it with the google assistant sdk.
There is the service sdk (python, all functions) and the library sdk(gPRC (java), general function). I tried the java-client, but the hotword detection only works for the service sdk. I need the hotword detection.
Can I run the service python google assistant and my jsf-app on one tomcat server? I can't get my head around it and need your help.
This is only the first step to my goal. Have you any suggestions?
Hotword detection would be non-trivial to implement. A web application contains two parts: a client, which would be the web browser, and the server, which is your local tomcat server.
Web apps basically work with multiple clients communicating to one server through HTTP requests, primarily through Javascript. Your server then processes this, and the cool thing is that the server can be any language you want.
However, the client cannot directly interact with server-side code. This means that locally running feature like hotword detection on the server cannot be directly controlled by the client. You'd need to use a client-side hotword detection library, which would presumably need to be written in Javascript.

Host for website that use node.js

I need a good web hosting where I can use node.js.
I have alot experience about cpanel and basic webhotel but I dont know how to use/install node.js.
I'm mainly using html, php, javascript and mysql but I have some features that need node.js.
Can you help me if you know good sites or you know how to use node.js in cpanel
Here is good post: http://codecondo.com/hosting-platforms-for-node-js/
These web sites have (pre)installed note.js, so no need aby installation.

Is it possible to integrate/access Node.JS inside a Qt application?

More specifically, I have a QWebView inside my Qt application and would like Node.JS to run inside pages displayed inside it. I have a bridge between the web view and my application, so I'm able to run Javascript commands inside the web view which communicate with the application.
I'm wondering if it's possible to make Node.JS available to the web view to use?
Node.js typically starts up a web server of sorts, at least in some of the applications I've tried. So accessing the localhost with the appropriate port name should not be a problem.
So basically, start Node.js on port 9000 for example, then open the webview to http://localhost:9000/ and you should be good to go. If you want to have a headless way to access the webserver or its sockets or rest/soap interfaces, you should be able to do it pretty easily with the QNetworkAccessManager class and its related support classes.
Hope that helps.

Metro Ui Security Architecture

Does anyone know of any article/publication on the security architecture of Metro app?
For example, can the metro app call an external service. If it can,
under what condition. Will it prompt the user first? And if so will
they be able to change their restriction later and how?
Cross domain scripting in a website is usually considered a big
no-no. But if I were to turn the same code into a metro app (since
presumably they're both written in Html 5 + js), does it mean I can
make ajax calls to any server irrespective of their domain? Is it
even possible to port a website into an app? If so how easy is that?
What about accessing local file system? Or does it have to go
through the contracts to do so?
And this is kind of related but if I were to write a website (not an
app). And the site was opened using Metro IE10, can it subscribe
into the metro specific js events? I guess I'm trying to figure out
how to save cost by doing as little development as possible. I
prefer a website that can target multiple platforms and only target
specific platform for the features that absolutely require it - also
not to thrilled with the idea of having to go through microsoft in
order to publish my app.
Any help appreciated.
Metro applications can call into web services located on other machines, but their ability to interact with the local machine is severely limited.
Similarly, accessing arbitrary parts of the local filesystem is not permitted. If your application has the documents (or music or photos) library permission, it can access the files in those libraries.

Olark like software in node.js needed

Do you know any node.js application that do something similar to http://olark.com. Not necessarily for multiple website, I just need it for single domain.
I just want to install it myself on heroku and run chat customer support for my website on it.
Thanks,
Michal
Try out opensource-olark. I built it for my own use - it may be useful to you. It is not entirely based on Nodejs. But it works exactly like Olark. It uses strophe.js - A xmpp push based library for jabber which works with BOSH
try http://www.vivocha.com, based on node.js
It's very symple to use and you can integrate with other applications via API (with CRMs and ticketing systems for exemple).
This platform, with only one line of code on your website, allow you to configure all the widgets, without other tech skills needed.
And also, you can adding voice on your website, so you can call with your visitors directly on your web pages.
There are open source tools that you can check out like :
http://nowjs.com
http://www.socketstream.org
They allow you to incorporate realtime features into your nodejs app & you can probably have a very simplified olark-type app in just a couple lines of code.

Resources