Questions tagged [javascript]
JavaScript is a prototype-based scripting language
156
questions
0
votes
0
answers
8
views
clicker on ubuntu interface using siklui
I want to click on an icon on ubuntu the problem is that when I run the program in the cmd tells me that the click action is already done while the program does not click in the right place here is ...
0
votes
0
answers
15
views
JSON File not Opening in VS Code
JSON error showing I come from Windows to Ubuntu so this file is created in Windows but it does not support Ubuntu:
0
votes
0
answers
28
views
"grunt run" doesnt work in sudo mode(Ubuntu 20.04.2)
~/Desktop/editify$ sudo -s
root@kritidipto-HP-Laptop-15-bs0xx:/home/kritidipto/Desktop/editify# grunt run
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module 'liftoff'
...
0
votes
0
answers
15
views
How people with low vision learned a web development path if can not see well
right now I am using screen reader to do my daily tasks like surfing web
and writing some documents , and I want to know how the person with low vision setup a web development environment what ...
0
votes
1
answer
425
views
Cannot use JavaScript inside PDF with Firefox
I am having troubles using JavaScript in a PDF file opened with Firefox.
To sum up, it is a file that uses XFA forms and JavaScript to validate the form and generate a QrCode. Here is the link to the ...
0
votes
1
answer
465
views
Where is the JSON Config File for Discord Installed Via Snap?
The only .json files I can find are build_info and manifest (I don't think either of them are config files).
Forgive me if my question is too amateurish, I just installed Ubuntu recently. I'm trying ...
0
votes
0
answers
183
views
Firefox snap version in 21.10 CORS problem
After upgrading to 21.10, I run into a CORS problem with an HTML page that uses Javascript fetch() to GET a page from a server. Same page does not have problems with Chromium under 21.10 (or Firefox ...
0
votes
0
answers
93
views
Chrome calendar js seems freezing my system
Ubuntu 20.04 up-to-date 24Gb RAM.
A couple of weeks ago I started suffering almost freezing my system, I can move the mouse pointer after an hour or so.
Visible parte of the problem is warning pop-up ...
0
votes
0
answers
146
views
Fixing fcitx-table-quick*
Description:
fcitx-table-quick* IMEs are virtually unusable.
You need to scroll through ~9 pages of characters just to get to a commonly used character and it has no phrases.
To fix this, I want to ...
0
votes
1
answer
167
views
Ubuntu server running a proxied Node/JS web app with Apache2 gets weird connection failure
Like this, I am running an Express JS app trough Apache (note retry=0 is important):
...
ProxyRequests Off
ProxyPreserveHost On
ProxyVia Full
<Proxy *>
Require all granted
&...
0
votes
0
answers
27
views
Value does not return if #codename using javascript ajax
If I press the Tab key, I want to display the value of the next cell using javascript and ajax.
This is my HTML code:
<input type="text" name="ccode" id="target" class=...
0
votes
0
answers
135
views
how to deploy an nginx website which has both php and javascript (.js)
Looking for clues/direction how to configure an nginx to run both php and java-script on the same website. My experience is limited to using nginx to run php website-only content (ie. WordPress). ...
0
votes
0
answers
19
views
Getting output of a javascript that was executed while loading webpage using phatomjs
When loading a web page, javascripts are executed to provide info. I want to "load" a page (including executing the javascripts), but instead of getting the html output after that, I want to ...
0
votes
1
answer
355
views
After Update to 21.04 Apache Not Fully Installed and JavaScript Not Working
Apache is running and is serving pages but it seems to have been only partially updated during the upgrade and prevents further updates.
sudo apt upgrade
Reading package lists... Done
Building ...
0
votes
0
answers
34
views
How do I get to the correct directory with Path.resolve?
How can I get the downloads using path.resolve() . Or is there another way?
0
votes
0
answers
34
views
Is there any trick to collecting data from a web page that using JavaScript and setting current time and date automatically?
I work under Ubuntu Linux in the terminal, using shell script wget, httrack and:
google-chrome --headless --dump-dom 'https://www.pref.kanagawa.jp/sys/taikikanshi/kanshi/realtime/index.html' > ~/...
0
votes
0
answers
126
views
Monitoring battery percentage using Gjs
I was looking to this answer to get an idea of how to get the value of the battery percentage. I modified the example using this documentation to the following code:
const Gio = imports.gi.Gio;
const ...
0
votes
0
answers
192
views
Accesing UPower battery percentage via DBus in gjs: Access Denied
I am trying to make an extension that displays a notification when the battery level reaches certain value. To get the percentage level I am trying to implement this method, but as I don't have a ...
2
votes
1
answer
40
views
Which package do I have to install to get `gjslint` in Ubuntu 21.04?
I've been using gjslint to verify that my JavaScript code is valid before sending it to my servers. Very practical.
In older versions (16.04, 18.04), it was found in the closure-linter package.
In ...
0
votes
1
answer
22
views
How to use npm file-storage package?
I learn Javascript and don't even know, how exactly use FileStorage object.
var storage = new FileStorage(...); // supply valid credentials
The package link: https://www.npmjs.com/package/file-...
0
votes
1
answer
478
views
Terminal not outputting result in Visual Studio Code
I'm fairly new to programming and I'm learning Node.js. When testing my installation of node.js and VS code, I just wanted to run a console.log('Hello');, but the terminal is not outputting anything ...
0
votes
1
answer
531
views
Installing Ganache GUI in Ubuntu
How exactly is Ganache installed on Ubuntu?
The approach of using git looks advantageous, yet, I'd expect a sort of wrapper around git for use from within npm or similar.
Or does this have to be ...
1
vote
1
answer
194
views
REACTJS local server freezes my Ubuntu
Whenever my reactjs app is starting, my Ubuntu os freezes and I use Firefox not chrome because of memory management. What could be the cause? Thanks in advance.
0
votes
0
answers
195
views
Escape HTML in bash ( Ubuntu server )
I have already html file ( Form ) that contains HTML Tags , css , Javascript and some of XOR cipher
I used a website to escape HTML then I write in bash file:
header= ' The HTML code after the ...
4
votes
2
answers
1k
views
Where are gnome-shell's UI javascript files on Ubuntu 20.04?
I have found the source code of gnome-shell UI js files on the Debian website:
https://sources.debian.org/src/gnome-shell/3.38.2-1/js/ui/
Then I have also found this answer here, which points out that ...
0
votes
1
answer
2k
views
What is the problem with node_modules (or npm) PPA on Ubuntu
I started to use Ubuntu last year and since today I face really annoying problems. Firstly the problems were Reactjs with script errors which I couldn't even start a project, anyway I solved in ...
1
vote
0
answers
7k
views
“SyntaxError: Cannot use import statement outside a module”: occurs on Ubuntu, but not on Windows
I work with this assembly: https://github.com/andreyalexeich/gulp-scss-starter
It works for me on Windows. But on Ubuntu, right after the run command (gulp, or npm run dev, or yarn run dev) does not ...
3
votes
1
answer
124
views
Nemo-preview throws out JS error
My system is Ubuntu 20.04, I download nemo-preview from the repository of Linux Mint and installed it manually. No error or warning shows in the installation. But nemo-preview does not function when I ...
1
vote
1
answer
772
views
What is the simplest way to run Javascript code on Ubuntu?
I tried to use browsers' console, but it interprets print as command to print a document, not as output on the console.
I heard about some JavaScript Shell, but didn't quiet get how to install and use ...
1
vote
0
answers
663
views
Internet Explorer 8 on Wine Ubuntu 18.04
I recently installed IE8 on my Ubuntu 18.04 laptop using Wine and Winetricks. The installation has completed successfully but the .exe file located in /home/woop/.wine/drive_c/Program Files/Internet ...
-1
votes
1
answer
3k
views
I am always getting the error "address already in use :::3000"
Error: listen EADDRINUSE: address already in use :::3000
at Server.setupListenHandle [as _listen2] (net.js:1280:14)
at listenInCluster (net.js:1328:12)
at Server.listen (net.js:1415:7)
0
votes
0
answers
5k
views
Selenium chromedriver doesn't load javascript in webpage
I'm running python code in a VPS with Ubuntu 18. After much trying, I was able to run the selenium Chromedriver there headfully. Now, I'm finding that the webpages sometimes loads fully, but more ...
1
vote
1
answer
542
views
Is there a way to use setTimeout in Gnome Shell Extension code?
I am trying to code a gnome-shell extension. It uses Javascript. But one major problem when I want to use setTimeout() it tells me this in the log: ReferenceError: setTimeout is not defined, what I am ...
1
vote
0
answers
415
views
""gjs-console" closed unexpectedly" error message
Mine is Ubuntu 18.4. I get the following error message frequently.
"Sorry the program "gjs-console" closed unexpectedly your computer doesn't have enough memory"
Sometimes the ...
0
votes
1
answer
1k
views
Using environment variables with Node.js
I am trying to prepare my app for production on a ubuntu running nginx. I have been using the dotenv npm package during development, but need a more stable and secure method for production. I have ...
1
vote
1
answer
103
views
Installing Jmemorize (flashcard) on Ubuntu
I want to install jmemorize (flashcard app) that I downloaded from sourceforge (link below) on ubuntu. It might be very simple that the developer didn't bother himself to explain but I'm stuck in it ...
0
votes
1
answer
941
views
How do I install an SSL certificate in order to serve a local web application?
I need to install a local SSL certificate so that the browser trusts it. The tutorial Running Angular CLI over HTTPS with a Trusted Certificate has instructions for OS X and Windows, but not Ubuntu.
...
2
votes
2
answers
5k
views
Puppeteer on Ubuntu 16.04 doesn't work
Is it possible to run Puppeteer on Ubuntu Server 16.04? I get this error.
(node:23213) UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process!
/root/bin/node_modules/puppeteer/...
1
vote
0
answers
332
views
RTSP to HTT using VLC command line
I have a camera which gives output in form of RTSP. However we want to run it on a browser inside HTML tag. For which we need HTTP url using terminal. I saw few posts which uses cvlc but I was not ...
1
vote
0
answers
440
views
Cannot run UglifyJS on Ubuntu 18.04
I installed UglifyJS on Ubuntu 18.04 using:
sudo apt install node-uglify
And then I tried to run uglifyjs command, but got error messages:
$ uglifyjs -h
internal/modules/cjs/loader.js:638
throw ...
4
votes
3
answers
22k
views
what is the location of node-modules
I want to see my all packages and modules of node-module. Please tell me its the location in ubuntu 18.04. such as /path/to/node-module. Moreover, How to see the code of modules such as http module or ...
3
votes
1
answer
586
views
Caprine (messenger client) fails to start
I am used to use Caprine as my messenger client on Ubuntu. However, after few months of using in with Ubuntu 18.04 it simply fails to start giving this exception:
nicnajder@nicnajder:~$ caprine
A ...
2
votes
1
answer
794
views
Interfacing DBus using gjs
I am extremely new to gjs and I want to interface dbus. I want to create a service and listen to it.
A small example or guide would be useful.
Thank You
2
votes
1
answer
121
views
pass return value from firefox process to linux shell?
I want to ask about, how to pass any value from Firefox process to Linux shell?
my case is, I want to create a Linux script tool to calling webpage using Firefox,
after any process in Firefox is done,...
3
votes
1
answer
6k
views
Modifying Large JSON Files in Linux
I have a need to modify large JSON files that choke most editors (meaning: most editors will take a long time to open the file, and even after the file is loaded, the editor will become unresponsive ...
1
vote
0
answers
190
views
How do I send a .js command from the terminal to a website?
I'd like to access these things from terminal:
Open a page in Chromium
Execute a JavaScript command (like these in the console, when you click on "Inspect element")
Kill the page.
How do I send the ...
4
votes
1
answer
850
views
gnome freezes with high CPU use of gnome-shell (JS ERROR)
Every now and then my gnome session freezes completely with gnome-shell using 100% CPU. The only thing I could do so far was to switch to a virtual terminal and kill gnome-shell. After that the gnome ...
0
votes
1
answer
1k
views
npm is not updating my node.js correctly
I have a js code that I want to run on a remote Ubuntu 16.04. And node -v is not showing the same results like nodejs -v. Well this happened after using npm update(the script I need to use asked for ...
0
votes
1
answer
310
views
How to install and use angularjs on ubuntu18.04?
Can anyone share me how can I use angularjs latest version. I want to do project on angularjs.
1
vote
1
answer
122
views
Unable to upload .amr files in Ubuntu?
I'm trying to upload media files to a website I'm maintaining. The latest one to be added is .amr (test file from here) and it's causing problems, but only with Ubuntu. It works fine on Mac OS (High ...