JavaScript is a prototype-based scripting language

learn more… | top users | synonyms

27
votes
4answers
3k views

Is there a way to cheat javascript games (like Unicoin mining) where rapid clicking is required?

I saw that there's a new currency on the site today for higher privileges called Unicoin. You can mine them by clicking quickly. I was wondering if there's any Ubuntu wizardry that could speed up the ...
24
votes
7answers
22k views

Google Chrome not rendering webpages correctly

I am facing some serious web page rendering issues with Chrome. It is more prominent during javascript based animations and stuff on websites like youtube. I have tried removing chrome using (sudo apt-...
20
votes
2answers
1k views

Is the source code of the online tour available?

For Oneiric Ocelot launch, there was an awesome Tour created for showcasing how Ubuntu especially Unity works. The Ubuntu Online tour actually mimics a whole desktop and to a greater extent behaves a ...
9
votes
2answers
24k views

Ubuntu / Install NodeJS & npm

I'm trying to install nodejs and npm, however, it fails. This is my terminal: sudo apt-get install nodejs npm Reading package lists... Done Building dependency tree Reading state information... Done ...
7
votes
3answers
3k views

Is possible to run the jsc (JavaScriptCore) utility from the command line in Ubuntu, like in OSX?

In OSX there is a hidden utility called jsc, part of WebKit, that can be used to run JavaScript code on the command line. It can be used as a JavaScript console, like irb for Ruby. I have the ...
7
votes
3answers
7k views

Is there a package for an executable version of v8?

I'm trying to get Vim JS lint plugin working under Ubuntu 12.04. The plugin requires the d8 command, which is an executable version of Google's v8 JavaScript Engine. I do see a libv8 package, but ...
6
votes
1answer
4k views

Is it possible to run Windows 8 apps in Ubuntu?

I read that new apps in Windows 8 will mainly be developed in HTML5 and Java-script. Those two languages are already supported in Ubuntu. Hence, is it − or will it be − possible to run those apps in ...
6
votes
3answers
269 views

Sockets in Ubuntu Touch Apps

I am creating an IRC client for the Ubuntu App Showdown. I need a way to be able to access an IRC server in QML (or JavaScript). What is the best way to accomplish this?
5
votes
2answers
2k views

Why doesn't JSLint/JSHint work in Ubuntu?

I installed as described here and other places, but after using npm to install jslint, jshint, neither will work. Running "jslint", I only get: /usr/bin/env: node: No such file or directory Is ...
4
votes
2answers
182 views

Do i need to know C++ to develop ubuntu app?

I'm a java developer. I dont know much about C++. should i learn C++ to develop ubuntu app? or can develop app without c++?
4
votes
2answers
2k views

Does Evince support javascript in pdf files?

In some pdf file readers for MS Windows such as those from Adobe or Foxit, it is possible to turn off the ability to implement javascript in a pdf file. Is that possible with Evince (Document Viewer) ...
3
votes
1answer
6k views

How to install PyV8 in Ubuntu 13.04?

I want to install PyV8 in Ubuntu 13.04. However pip install -v pyv8 takes super long to build and finally fails. How can I install PyV8 on a Ubuntu 13.04 machine? Here is the error log ...
3
votes
2answers
736 views

How can one invoke lg (Looking Glass) from a command line?

I had asked another question which is related. I know that I can invoke lg (looking glass) via the gnome-shell "run application" window (by pressing Alt+F2). What I'd like to know is how to do this ...
3
votes
2answers
2k views

QML - How to create QML Components properties so they can be set from JavaScript?

I am trying to create a component with certain properties I've set. The sounds location and name are given by a C++ function that is actually working because the console.log() shows so: qml: Adding /...
3
votes
2answers
1k views

Not able to see Kate Plugin for Javascript in Kubuntu

I installed Kubuntu 14.04 recently. I had heard about the Javascript related plugins(Pretty JSON specifically) being there in Kate setup. But it does not show up in any of the options. I am not sure ...
3
votes
2answers
956 views

Gnome Shell JS - Listen for DBus signal on an interface for any path

I'm trying to write an extension that listens for a DBus signal, but I don't know the path ahead of time. Actually, there are multiple paths (unique for each application that implements the interface)....
2
votes
3answers
467 views

How to make /bin/ps, called with aux as its argument, write to a file?

Is there a command line argument I can pass to /bin/ps -aux to make it write its output to a file? edit: To resimulate my issue: Open firefox Enable developer preferences (or as shortcut install ...
2
votes
1answer
14k views

How to run javascript/html page

I want to know what is the terminal command for compiling and executing Javascript/HTML. Is it the same as that of compilation of C program or is it different?
2
votes
2answers
12k views

How to enable Javascript?

Both gmail and chrome browser tell me I need to enable javascript. How do I do this. Did not find anything in software center.
2
votes
2answers
1k views

GWT (Google Web Toolkit) designer not working on Ubuntu 13.04

On 13.04 the GWT designer is not working on Eclipse 4.2 and Eclipse 3.7. If I want to switch in the design-mode after executing Workaround 2 from this page, Eclipse crashes and is closing ...
2
votes
2answers
3k views

How to install JavaScript Eclipse platform on Ubuntu

I sudo apt-get install eclipse installed Eclipse on my Ubuntu 12.0.4 server, by checking I found it is a classic platform. So, how can I make it as a JavaScript IDE? I followed http://marketplace....
2
votes
2answers
487 views

Is it possible to assign a keyboard shortcut to cause the Looking Glass to appear?

On Ubuntu 11.10, using GNOME Shell, I find myself using the "Looking Glass" JavaScript Console very much. I know how to assign desktop shortcuts in general; but, this seems a little unusual. Instead ...
2
votes
1answer
226 views

Get exclusive lock constant? In ctypes it is O_EXLOCK [closed]

I'm trying to open a file with exclusive lock via Javscript. So the library to open is no sweat just the number to pass as unixFlags is a problem. This is syntax: OS.File.open('/path/to/file', {...
2
votes
1answer
5k views

Ubuntu 12.04 and Firefox 23 - how to turn off JavaScript? [closed]

My browser updated yesterday and today I've noticed that the option to turn off JavaScript is no longer there. Did they relocate it somewhere? Help.
2
votes
1answer
303 views

Why XMLHttpRequest send only “server connection established” in readyState attribut?

I try to store the result of JSON webservice into a List view. I create my request in javascript but my readyState value is always 1 and never change. I don't understand what is wrong. This is my ...
2
votes
1answer
31 views

Allow OptionSelector to Scroll While Expanded

My QML app uses an OptionSelector to allow users to choose from a list of items. On tablet size, I have it set to keep it expanded. However, I limit the container height, and while it's expanded, it ...
2
votes
1answer
263 views

How to enable javascript on xdg-open

I am trying to open a url using xdg-open but the terminal says, So how do I enable the javascript?
2
votes
2answers
10k views

How to run javascript in Mozilla URL bar?

I am using mozilla and trying to run this code on the url bar javascript:alert(document.cookie); but when I hit go, nothing happens. But in chromium, it alerts, so what is with the firefox? does ...
2
votes
2answers
2k views

GWT (Google Web Toolkit) Designer not working on Ubuntu 12.10

The GWT Desinger is not working on Ubuntu 12.10. It worked on Ubuntu 12.04. I installed the Eclipse Plugin as described on the GWT Homepate If I want to open the Design-View (for an xml-GWT-File), ...
1
vote
3answers
2k views

What all do I need with my Apache Server

I was wondering what all extra I have to install on top of apache2. My websites are running some javascript, css, and some jquery stuff. Does apache come with everything necessary to run a website ...
1
vote
1answer
329 views

Which one is best js minifier used in Ubuntu [closed]

I have the big project developed in the javascript framework. Hence its necessary to minify all the js so as the speed may enhance. Please tell which js minifier software will best option?
1
vote
1answer
576 views

gnome-shell-extension: JS that works in looking glass doesn't in extension

I've got the following snippet of code that (in the looking glass) gives me a list of contacts I have (managed by gnome-contacts): // METHOD 1: const ContactDisplay = imports.ui.contactDisplay; let ...
1
vote
1answer
84 views

Problem with AngularJS and jQuery libraries in Ubuntu SDK - HTML 5 App

I'm trying to explore the "Ubuntu SDK" and just to test I made a "HTML 5 App". The app need to use angular library (such as: angular.min.js), jQuery library, and angular module for routing (angular-...
1
vote
1answer
227 views

Installing a JavaScript file

Whenever I try to install a JavaScript file it opens it in an editor instead of installing it. How do I change this action? Specifically I'm trying to install a script from userscripts.org,
1
vote
1answer
84 views

help with using the Unity Web API for my website

I'm trying to follow this tutorial, but when clicking on the 'executing this now' on that site nothing happens, i have put up this code here press (CTRL+U) to see the code and that doesn't work ...
1
vote
1answer
567 views

set window properties (above, on all workspaces) in js/gnome-shell-extension?

As part of teaching myself how to make gnome-shell-extensions, I'd like to be able to tell a window to be on all workspaces on on top of all other windows. I notice in the mutter API there is a ...
1
vote
1answer
239 views

GWT (Google Web Toolkit) App through USC (Ubuntu Software Center)

Is it possible do deploy google web toolkit (GWT) apps through the UBUNTU software center? I never deployed any application through the UBUNTU software center (newbie). So if yes, is there someone who ...
1
vote
0answers
38 views

16.04: Error while installing LAMP

Every time I try to reinstall LAMP I get this error. Please tell me how to fix it: Errors were encountered while processing: javascript-common phpmyadmin E: Sub-process /usr/bin/dpkg returned an ...
1
vote
0answers
23 views

Skype does not sign me in on Ubuntu 14.04

When I try to sign in to Skype, I get a message about a JavaScript problem. Here is a screenshot. I already tried re-installing Skype and deleting all lock files as well as shared.xml but the problem ...
1
vote
1answer
37 views

How to pass phone number to phone application from scope

I'd like to be able to pass a phone number to the phone application from within a preview of a scope. Is that possible? Is it done with action widgets? Is there an example of this somewhere in ...
1
vote
0answers
218 views

Bad installation of Uglify (Node-based JavaScript minifier)

I want to install Uglify in order to minify JavaScript files on the command line. Some sources say to install npm and then use npm install uglify-js -g. Some sources say you can just apt-get install ...
1
vote
2answers
619 views

How do I setup a server side JavaScript

I keep hearing about how fast server side JavaScript is. I also have a project in which I want to use that tool. I tried Googling it, but could not find a simple and detailed tutorial on how to get ...
1
vote
1answer
41 views

api for new and stable versions of Ubuntu

I am trying to build an automatic Ubuntu widget for my website, that displays the latest version and the next to be released version and the to be LTS versions. Right now at every new Ubuntu release ...
1
vote
0answers
49 views

Using applets from another distribution

There are several very useful applets from Mint Cinnamon which I would like to be able to use: http://cinnamon-spices.linuxmint.com/applets. I know how to write a shell script to start a Java program,...
0
votes
2answers
21k views

Java Script functionality not working in firefox on linux

I have developed a project in asp.net which contains javascript functionality as well. The application is working as expected in windows with all the browsers. But I am facing issues with linux OS. ...
0
votes
2answers
472 views

how to remove best-deals-products.com from firefox

When i try to load any web oage (askubuntu.com for example), noscript addon blocks some scripts from a domain called best-deals-products.com I've searched about this topic on duckduckgo and google and ...
0
votes
1answer
143 views

What's the proper way of connecting a signal to a JavaScript method?

In an Ubuntu phone application, I need to perform some logic when an event occurs. Since I don't want to pollute the QML with too many lines of JavaScript, I made a class in an external file and I ...
0
votes
2answers
4k views

Unresponsive Script window pops up all the time now. Why and what to do?

I don't know that it's for the exact same script each time, it may be. A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to ...
0
votes
1answer
49 views

Is it possible in Ubuntu app, start C++ function from javascript?

I have application using QML and C++ and want to start C++ function from javascript . Is it possible ?
0
votes
1answer
299 views

Variable problem when using FB.api async calls with jQuery.when() [closed]

Trying to get data from several calls to FB into one array and operate with it when ready. Unfortunately. Script waits for response, but in any way I cannot access it later. var xxx = 0; // ...