Tag: java

56 votes
3 answers
600 views
log4j with timestamp per log entry

this is my log output INFO main digestemails - process inbox INFO main digestemails - checking for emails in

avatar
Corey
0 1 0 9
asked 07 September, 2021
67 votes
12 answers
1.3K views
Calling Python in Java?

I am wondering if it is possible to call python functions from java code using jython, or is it only for calli

avatar
Clarice
0 1 0 9
asked 07 September, 2021
59 votes
12 answers
1.9K views
Even though JRE 8 is installed on my MAC -" No Java Runtime present,requesting to install " gets displayed in terminal

Even though JRE 8 is installed on my MAC OS Yosemite 10.10.3,while running the Android present in tools in

avatar
Keith
0 1 0 9
asked 07 September, 2021
50 votes
10 answers
2.9K views
How to see the javascript errors of PhoneGap app in Xcode?

I want to debug my PhoneGap app in Xcode, but its Console can not show javascript errors.

avatar
Xavier
0 1 0 9
asked 07 September, 2021
46 votes
30 answers
2.6K views
PhoneGap: Detect if running on desktop browser

I'm developing a web application that uses PhoneGap:Build for a mobile version and want to have a single

avatar
Sena
0 1 0 9
asked 07 September, 2021
55 votes
16 answers
343 views
JAVA_HOME is set to an invalid directory:

I have set JAVA_HOME in my system C:\Program Files\Java\jdk1.8.0_ 131\bin; and I am trying to run cordova comm

avatar
Fabian
0 1 0 9
asked 07 September, 2021
56 votes
21 answers
3.1K views
How to host material icons offline?

My apologies if this is a very simple question, but how do you use google material icons without a <link

avatar
Forrest
0 1 0 9
asked 07 September, 2021
64 votes
9 answers
1.5K views
Refused to load the script because it violates the following Content Security Policy directive

When I tried to deploy my app onto devices with Android system above 5.0.0 (Lollipop), I kept getting these ki

avatar
Carmelina
0 1 0 9
asked 07 September, 2021
66 votes
10 answers
383 views
How To Save Canvas As An Image With canvas.toDataURL()?

I'm currently building a HTML5 web app/Phonegap native app and I can't seem to figure out how to sav

avatar
Alba
0 1 0 9
asked 07 September, 2021
66 votes
12 answers
2.3K views
How do I correctly detect orientation change using Phonegap on iOS?

I found this orientation test code below looking for JQTouch reference material. This works correctly in the i

avatar
Georgie
0 1 0 9
asked 07 September, 2021
57 votes
9 answers
2.3K views
External resource not being loaded by AngularJs

Using Angular and Phonegap, I'm trying to load a video that is on a remote server but came across an issu

avatar
Keila
0 1 0 9
asked 07 September, 2021
64 votes
5 answers
2K views
jQuery Mobile: document ready vs. page events

I am using jQuery Mobile, and I am having trouble understanding differences between classic document ready and

avatar
Tuan
0 1 0 9
asked 07 September, 2021
55 votes
3 answers
1.7K views
Emberjs, server side vs client side, All in?

I have been looking into Ember.js, and it looks really great, but one thing that concerns me, and that I can&a

avatar
Tuan
0 1 0 9
asked 07 September, 2021
59 votes
6 answers
442 views
Jquery - Uncaught TypeError: Cannot use &apos;in&apos; operator to search for &apos;324&apos; in

I'm trying to send a Get request by ajax and output json data that is returned by server in html. But, I

avatar
Juliane
0 1 0 9
asked 07 September, 2021
69 votes
13 answers
1.7K views
Only on Firefox "Loading failed for the <script> with source"

I want to integrate Marketo form with my existing website on yii framework. My code works on all the browsers

avatar
Lashawna
0 1 0 9
asked 07 September, 2021
53 votes
18 answers
3K views
Include CSS,javascript file in Yii Framework

How to include a Javascript or CSS file in Yii Framework? I want to create a page on my site that has a littl

avatar
Rudy
0 1 0 9
asked 07 September, 2021
64 votes
3 answers
1.5K views
Why is there no same-origin policy for WebSockets? Why can I connect to ws://localhost?

I'd like to use WebSockets for inter-process communication for my application (Daemon<->WebGUI and

avatar
Shantay
0 1 0 9
asked 07 September, 2021
49 votes
5 answers
1.5K views
Sending message to a specific connected users using webSocket?

I wrote a code for broadcasting a message to all users: // websocket and http servers var webSocketServer = re

avatar
Xavier
0 1 0 9
asked 07 September, 2021
61 votes
5 answers
2.3K views
Creating a "Hello World" WebSocket example

I don't understand why I cannot make the following code work. I want to connect with JavaScript to my ser

avatar
Solomon
0 1 0 9
asked 07 September, 2021
59 votes
6 answers
2.3K views
How to create websockets server in PHP

I am looking for a simple code to create a WebSocket server. I found phpwebsockets but it is outdated now and

avatar
Gigi
0 1 0 9
asked 07 September, 2021