Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [javascript]

JavaScript is the common name for the language initially used for scripting in web browsers. It is NOT the same as Java. Use this tag for questions regarding ECMAScript and its dialects/implementations (excluding ActionScript and JScript).

Filter by
Sorted by
Tagged with
0 votes
0 answers
43 views

Issue with `libz.so.1` when running PhantomJS

After extracting the file contents from the phantomjs archive, I ran the command phantomjs and was met with the error: phantomjs: error while loading shared libraries: libz.so.1: cannot open shared ...
Michael Sodeke's user avatar
0 votes
1 answer
301 views

How to compare minimised JS files with very long lines? diff prints whole lines which is unreadable (400k characters per line)

I need to compare two "minimised", very similar JavaScript files. Minimisation means that (among other things) newline and space characters that are not needed for interpretation by a ...
Ned64's user avatar
  • 8,802
1 vote
2 answers
84 views

Seems that any JavaScript makes my debian laptop crash

I have a Dell, debian stable, laptop working with gnome environment. For several weeks Firefox crashed more and more often, resulting in mouse slows down during fews seconds, and then everything ...
Boudy's user avatar
  • 11
1 vote
0 answers
93 views

Is it possible to use webassembly in QNX

I’m trying to figure out if I’m able to port a webassembly based webapplication to QNX. But it is hard to find any information about what versions of browsers and web engine libraries that are shipped ...
mattsson's user avatar
  • 111
0 votes
0 answers
24 views

ungit crashes on Debian 11 bullseye - ELOOP - too many levels of symbolic links

Tried to install and run git GUI 'ungit' on Debian 11. The default versions for npm and nodejs from Debian were too old for ungit, so I updated them manually, but ungit still crashes. Versions git: 2....
LukesDiner's user avatar
0 votes
1 answer
195 views

How to pipe STDIO from a thread process to /dev/null?

I am trying to run Plarium Play with wine, but have encountered an odd issue. When trying to launch it from a regular desktop entry, I get this JavaScript error: This does not happen if I launch from ...
TheLabCat's user avatar
  • 113
-9 votes
6 answers
4k views

Is the linux kernel ported to JavaScript yet?

Is the linux kernel or at least part of it been ported to JavaScript yet ? I want to program on linux kernel but don't want to use c.
user572212's user avatar
0 votes
0 answers
159 views

Simple text browser website access BUT PROTECTED by CloudFlare - JavaScript problem

EDIT on 13-11-2022 (DD-MM-YYYY) to clarify things a bit: I, a human, want to simply read the text contents of a website, which happens to be protected by CloudFlare protection. Yes, I know that such a ...
Orca37's user avatar
  • 1
1 vote
1 answer
63 views

extract links from webpages which require interaction

I'm trying to figure out how, from a linux shell, to extract the links from a webpage in which the links appear only after clicking a button on the webpage, for example the "Assets" in ...
cipper's user avatar
  • 363
0 votes
2 answers
61 views

What is the *nix parallel to Microsoft front page (HTML page builder)?

Just as LibreOffice is the current parallel to Microsoft Office and just as GIMP is the current parallel to Adobe Photoshop, what is the *nix parallel to Microsoft front page (HTML page builder)? Can ...
searcher's user avatar
0 votes
1 answer
157 views

Can cURL or WGET Trigger an Adwords Conversion via Shell Script?

I'm currently working on a project that has a legacy system, unique product, and unique webstore which can't really be changed or updated at the moment. I've programed a bash script to check the ...
T. Thomas's user avatar
  • 233
0 votes
1 answer
318 views

How to obtain data from a site that uses javascript?

What I want is to query metallum to obtain a plain list of songs that contain x word, let's say spider, so the query for the browser would be https://www.metal-archives.com/search?searchString=spider&...
ape1's user avatar
  • 41
1 vote
0 answers
394 views

Is /org/freedesktop/DBus accessible from a web browser?

We have some homebrewn applications running in top of a Xubuntu 18.04 OS, communicating with each other using D-Bus. The UI part is run in a web browser and web socket is being used for the ...
Aritz's user avatar
  • 123
1 vote
1 answer
613 views

Cron task not running

I've configure a cron task for running a NodeJS script everyday. crontab -l # Edit this file to introduce tasks to be run by cron. # # Each task to run has to be defined through a single line # ...
guillaumearnx's user avatar
0 votes
1 answer
756 views

Arch Linux Manjaro: npm start not detecting chrome and returning ENOENT error

I am using Manjaro and have downloaded google-chrome-stable from the AUR package. Even though google chrome is set as a default browser, npm start still defaults to opening firefox, after I deleted ...
dracarys's user avatar
  • 101
0 votes
0 answers
492 views

Crontab running a Node.js script

I have a script that runs at boot and every 1 min after. This is a nodeJS script that executes a nightmare/cheerio to scrape a cricket site for scores. This script itself runs until killed when ...
Diamond Dave's user avatar
4 votes
2 answers
1k views

What is the term to describe the naming method "MyVariable" (as opposed to "myVariable")?

Variables and procedures in JavaScript are often named via the "camelCase" naming method, as: myVariable Any letter of the only or not-only-but first letter in an expression which acts as ...
timesharer's user avatar
0 votes
0 answers
563 views

Increase Chrome/Firefox's max parallel worker limit?

Our company have a webpage dedicated to processing costs information for our customers locally on their machines via Javascript code. In the past, this processing was sequential, which could easily ...
Jorge_Freitas's user avatar
2 votes
1 answer
4k views

how to download partial content from remote video url in nodejs?

I have the following code to download a specific part (range) of a video using nodejs http.get(), const fileUrl = 'https://www.example.com/path/to/video.mp4' const fs = require('fs') const http = ...
ali hadi's user avatar
0 votes
1 answer
56 views

How do I locate precisely WHERE 5 syntax errors are in "recovery.js" (Firefox), and identify WHAT they are?

I accidentally deleted two Firefox files (recovery.js and recovery.bak) that contained the details of a huge number of tabs that I have open when I use Firefox. The tabs (website information) are ...
dave99's user avatar
  • 1
0 votes
0 answers
16 views

Javascript -- Prey project -- Os: does not exist

I'd been using Prey Project on and off for years, and I just realized it wasn't working. So I'm trying to re-initialize my setup ... Since I'm running Slackware and not Ubuntu, it refuses to run: ...
hymie's user avatar
  • 1,710
1 vote
1 answer
125 views

Java 8 for Minecraft Forge Error (Debian 10)

I tried to install Java 8 in addition to Java 11 on my VPS. Apparently that was only moderately successful. It is displayed under "java -version". And also with "sudo update-...
BrianYT's user avatar
  • 11
0 votes
1 answer
232 views

Get % of how much of a javascript file is commented out

I'm wanting to check if files are more than 50% commented out with javascript style commenting of //. My idea is to count the number of lines in the file and then count the number of // and do some ...
Jacksonkr's user avatar
  • 201
0 votes
1 answer
338 views

recursively find out webpage video file url with wget or something like this

i'm trying to script a bash script which automatically can download video or audio files, maybe even "playlists" from youtube and other platforms like this. Especially the youtube video file ...
m17ch1337's user avatar
0 votes
3 answers
310 views

Get exact installed version from npm package

How do I find the exact installed version of a package from package.json in an express application in a Fedora distribution? I could look through package-lock.json but are there an easier way, as it'...
GameAtrix1's user avatar
1 vote
1 answer
1k views

When writing to a terminal, get the current column number you are writing to

In Node.js I can get the number of a columns of a terminal window using: const cols = process.stdout.columns; if the user shrinks the terminal during the process, the number of columns should shrink ...
user avatar
1 vote
4 answers
4k views

Are there any terminal emulators that can render html?

I think it would be awesome if we could render and also interact with html and javascript in a terminal. The idea is to render buttons and other interactive widgets like file trees in the command line,...
stimulate's user avatar
  • 203
0 votes
1 answer
241 views

Find and replace the columns of matched and non-matched lines with a character

I have a csv file with a bunch of numbers ranging from 500 to 500,000 and would like to replace the matches with 1 and mismatches by shifting the mismatched content to right simultaneously shifting ...
user3441801's user avatar
0 votes
1 answer
44 views

CenOS 7 - Javascript Files don't update [closed]

I have a small issue on my server. Javascript *.js files in a certain folder don't update. I mean, files update but in the browser, I see the old version. I have installed a new browser on my ...
DavSev's user avatar
  • 203
2 votes
3 answers
768 views

What JavaScript interpreter does Polkit use to interpret rules.d files?

What JavaScript interpreter does Polkit use to interpret rules.d files? The source code at time of writing links to a defuct Wikipedia heading "ECMAScript.2C_5th_Edition", however that would only be ...
ThorSummoner's user avatar
  • 4,452
0 votes
1 answer
1k views

CSV to NESTED JSON

I need to convert a CSV file to a JSON output, I'm using the csvtojason library from https://www.npmjs.com/package/csvtojson, csv File: mode,device,stb,data,data1,data2,data3,data4 modelo1,device1,...
Felipe Tank's user avatar
10 votes
3 answers
2k views

Debian Buster: install yarnpkg as yarn

I have installed yarn - Node.js package manager (alternative to npm): $ sudo apt install yarnpkg ... $ dpkg -l | grep yarn ii yarnpkg 1.13.0-1 all ...
Messa's user avatar
  • 231
1 vote
1 answer
596 views

polkit rule: determine if user is an admin?

polkit is configured using rules files, written in javascript. You write custom functions, and pass them as the argument to polkit.addRule(). When a polkit action is performed, the functions are ...
sourcejedi's user avatar
  • 50.6k
3 votes
3 answers
5k views

JQ (GET ID based on NAME)

I get a long list of such arrays { "id": "byu6g6c4cjys5mdkg5znh8ju8c", "create_at": 1511875272294, "update_at": 1511875272294, "delete_at": 0, "display_name": "BMA", "name": "...
WhoAmI's user avatar
  • 179
0 votes
1 answer
668 views

Why would javascript document.lastModified stop working, and return current date?

I have web pages on Ubuntu that return the lastModified date as part of the displayed text using javascript to create the following: Last modified: 08/28/2017 That's the actual last-modified date of ...
Dickster's user avatar
  • 139
1 vote
1 answer
94 views

How this process running in the background?

user 1550 1 0 Jun19 ? 00:00:00 node /usr/bin/nodemon src/server.js user 11051 1550 0 Jun19 ? 00:00:38 /usr/bin/node src/server.js Can someone tell how this process running ...
mszabolcs's user avatar
0 votes
0 answers
170 views

How to install HTML5/JavaScript to Netbeans?

I installed the NetBeans Connector plugin to Chromium on my MacBook. That worked perfectly. I could create new projects in HTML5/Javascript. I tried to do the same on my Linux Mint 18.3 computer. But ...
Aurel Ernst's user avatar
1 vote
0 answers
166 views

Profile a Gnome Shell extension

An extension I'm working on is having severe performance issues, causing the screen or gnome to freeze and other issues. I'd like to fix it, but I have no idea how or where to start. Is there a way ...
piegames's user avatar
  • 907
-1 votes
1 answer
2k views

Run javascript on headless browser with specific website as origin

I'm using ubuntu server (only terminal) and I have a javascript that must be run from a specific website (to avoid cross-domain issues). Basicly I would follow this steps if I were in a convencional ...
Rafael Marinho's user avatar
-1 votes
1 answer
327 views

Correct way to call a Bash function from all sessions

I use Ubuntu with Bash and I have a file hosting a script with 5 functions. Sometimes I want to call some function of these functions (but not all of them), directly from the CLI. I could say it's ...
Arcticooling's user avatar
-1 votes
1 answer
310 views

error when compiling java file script

So I am trying to compile a .java file in my vim script but it keeps giving the error "could not find or load main class name.java" while I have put a main class in my .java file`, can someane help me ...
florian de wulf's user avatar
1 vote
0 answers
137 views

Error: Command 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-clang-format

When I try fetch v8 or gclient sync I get this error: Error: Command 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-clang-format -s v8/buildtools/linux64/...
user3486308's user avatar
2 votes
1 answer
934 views

Is it possible to make Firefox open a URL in a popup window?

I would like Firefox (the new super fast Quantum with low memory usage) to open some URLs in a special/popup window, i.e. almost without anything (toolbar, menu bar, tab bar, address bar, etc.) other ...
Sadi's user avatar
  • 495
1 vote
1 answer
180 views

How to retrieve price information from www.meinfluessiggas.de in a bash script?

On https://www.meinfluessiggas.de one has to click a tank size button (section “Behältergröße”) and fill in a postal code (section “PLZ Behälterstandort”) for the price to appear on the right. I want ...
dessert's user avatar
  • 1,687
2 votes
1 answer
636 views

Installing JavaScript Plasmoids in KDE 5

For the last year, I have been a happy user of KDE Plasma 5. KDE widgets, however, make me miss more directly programmable systems such as conky. Setting up an ad-hoc monitor for anything that needs ...
Witiko's user avatar
  • 791
4 votes
1 answer
3k views

Javascript BTOA vs base64 in bash?

I need to convert a username and password combination into base64 before sending to an API. The javascript BTOA function is working for me, but when I try to use base64 command in bash I get slightly ...
Philip Kirkbride's user avatar
0 votes
1 answer
1k views

Javascript in Chromium very slow

In am running Chromium 57.0.2987.133 in FreeBSD 12-CURRENT with the Lumina desktop interface, in a Lenovo Ideapad with a Celeron N3050. I also set in /etc/sysctl.conf as recommended: kern.ipc....
Rui F Ribeiro's user avatar
1 vote
1 answer
522 views

Unable to run a .py file in cgi-bin by using ajax call from my .php file

Hi guys:) I am using a Beagle Bone Black with Debian Wheezy to make a project. I have a small problem:I have my index.php in /var/www from there I call a python file called send_email.php using ajax: ...
Juan Jose Jaramillo's user avatar
1 vote
1 answer
377 views

How to downloaded HTML file with obfuscated text

I use Firefox and I don't have any issues viewing and reading English text on the loaded websites. If I click Save in Firefox and save the web page in question as a text file I can read everything in ...
speld_rwong's user avatar
2 votes
1 answer
884 views

How to get javascript key path in long json files in Linux

I'm using several keys from a long javascript object, represented as json. Example: ... "stock": { "type": 'str', "properties": { "warehouse": { "type": 123 }, "retail": { ...
Fernando César's user avatar