275 questions
0
votes
1
answer
140
views
Why in JavaScript and so in other programming languages is not possible to do if (a==b==c) to compare 3 variable at once? [closed]
Why, objectively, in programming languages in general, as far as I know, isn't possibile to compare 3 variable at once doing something like this:
if(a == b == c)
{
do something;
}
but it is ...
0
votes
2
answers
100
views
Proposal for python syntax - what would go into implemention? [closed]
I would like to use certain keywords and unary/binary operators as functions. For example:
_not = lambda a: not a
_plus = lambda a, b: a + b
_or = lambda a, b: a | b
I think there is an opportunity ...
1
vote
1
answer
473
views
When to use cleanup() in Jython
Is it necessary to call cleanup() before close() in a PythonInterpreter in Jython every time?
I've been reading the docs, but I don't find much information about this function. The javadocs don't say ...
1
vote
1
answer
343
views
What prevented a WebAssembly-like system from being implemented and adopted on the web to begin with? [closed]
JavaScript was designed specifically for browsers. It wasn't pulled off the shelf. So what were the reasons behind making it a scripting language rather than a compiled language?
With the ...
-2
votes
1
answer
31
views
How to take screenshots of a web page and make a video of them using coding(any language)? [closed]
I have a table on my web-page with thousands of entries and it shows 20 entries at a time. I want to take screenshots of all the entries page by page and then create a video of them using code. What ...
0
votes
1
answer
404
views
When I inspect the code, why does the layout break?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-type" content="text.html" charset="utf-8">
<...
0
votes
1
answer
271
views
Get only child LI when using "getElementsByTagName("li").length"
I am using below command to get the child LI nodes for the element ID 'treeview_sub' but it returns me the count of all the LI present recursively.
var treeLILength = document.getElementById("...
2
votes
1
answer
1k
views
Is there some quick magic trick to remove digital signature form field from pdf file just by editing PDF in text editor?
What I want is to edit PDF file, and remove digital signature form field. I would like to do that without buying Adobre Pro liscence. I remember some time ago I opened PDF file in text editor and saw ...
2
votes
1
answer
141
views
DLR: Put statement and declaration objects to CodeCompileUnit or CodeCompileUnit-like objects
IronRuby and IronPython have custom built-ins, standard modules and you can write code straight out of hand(Directly using statements and declarations in the code), instead of using namespaces and ...
1
vote
2
answers
2k
views
Is there a C-like syntax scripting language interpreter for C++?
I've started long ago to work on a dynamic graph visualizer, editor and algorithm testing platform (graphs with nodes and arcs, not the other kinds).
For the algorithm testing platform i need to let ...
0
votes
3
answers
679
views
How to have a global variable that has been read from a list that has filenames in bash?
I have one txt file that has bunch of class names.
I would like to read those class names line by line in bash script and assign that value to a variable to use it globally in another command in the ...
0
votes
0
answers
157
views
Fixing DN from Canonical name and the Timestamp is always set at: 1/01/1601 11:00:00 AM?
I am trying to fix the PowerShell script below to list the member of AD security group called Domain Admins and export it to .CSV file.
$ADGroupType = 'security'
$ADGroupNamePattern = 'Domain Admins'
...
3
votes
3
answers
12k
views
Problem in JSR223 script, JSR223 PostProcessor : javax.script.ScriptException
I am using Jmeter 5.0 where i have piece of java code written inside a JSR223 PostProcessor. The code is as follows -
import java.util.Map;
import java.util.HashMap;
Map gamePlayHistoryMap = new ...
0
votes
1
answer
768
views
What are the similarities between scripting language and programming language?
By searching I have found a similarity that is both import libraries. But unable to point out any other similarities, as everywhere I can see only differences.
5
votes
1
answer
242
views
Translating a Gravity (a scripting language) call to a native C function call
I am currently looking into implementing a cleaner way to call native C functions from the Gravity scripting language.
So far, the most simplistic example would be this one:
int add(int lhs, int rhs)...