Science topic

JavaScript - Science topic

Explore the latest questions and answers in JavaScript, and find JavaScript experts.
Questions related to JavaScript
  • asked a question related to JavaScript
Question
4 answers
Visual Studio Code (VS Code) has become a popular choice among developers for several reasons:
1. **Free and Open Source**: VS Code is free to use and open source, making it accessible to everyone.
2. **Cross-Platform**: It runs on Windows, macOS, and Linux, making it a versatile choice for developers working in different environments.
3. **Lightweight and Fast**: Despite being feature-rich, VS Code is relatively lightweight and fast, with quick startup times and a responsive interface.
4. **Customizable**: Users can customize the editor extensively through themes, key bindings, and settings. This allows developers to tailor the environment to their workflow.
5. **Extensive Extensions**: The VS Code marketplace offers thousands of extensions for various programming languages, tools, and frameworks. This makes it easy to add functionality for different tech stacks, including Python, JavaScript, C++, and more.
6. **Integrated Terminal**: VS Code includes an integrated terminal, allowing developers to run command-line tasks without leaving the editor.
7. **Git Integration**: It has built-in Git support, making it easier to manage version control without switching tools.
8. **Debugging Support**: VS Code offers powerful debugging capabilities, allowing developers to set breakpoints, inspect variables, and step through code directly in the editor.
9. **Active Community and Updates**: It has a large and active community, with frequent updates and improvements from Microsoft. This ensures that the editor stays up-to-date with the latest technologies and best practices.
10. **Intelligent Code Completion**: Features like IntelliSense provide smart code completion, suggestions, and quick fixes, making coding more efficient and reducing errors.
These factors combine to make VS Code a preferred choice for developers across various domains.
Relevant answer
Answer
It's amazing, it's one of the few MS software that I don't curse at.
It's very complete, bug-less, powerful, flexible, highly customizable, good looking, sleek, not bloated (full of unnecessary or superfluous things).
It has very few things that bother me (there are, but the program is so good that is not worth mentioning).
  • asked a question related to JavaScript
Question
4 answers
Let's collect the best places /platforms /tools that offer affordable solutions to teaching coding to kids starting at age 5. Coding with fun and coding with gamification are becoming increasingly essential approaches. Let's have a list with your thoughts and a continuously updated list to inspire parents, teachers, mentors, and siblings to share knowledge and become effective tech ambassadors. Thanks to Maya Maceka for inspiration.
Block-based coding
  1. Blockly Games (https://blockly.games), Age: 5, Stack: block-based coding, Javascript
  2. Code for Life (https://www.codeforlife.education), Age: 5+, Stack: Blockly, Python
  3. CodeMonkey (https://www.codemonkey.com), Age: 5-14, Stack: block- and text-based coding, CoffeeScript, Python
  4. Tynker (https://www.tynker.com), Age: 5-18, Stack: Block-based coding, Javascript, Python
  5. Gamefroot (https://make.gamefroot.com), Age: 7+, Stack: block-based coding
  6. Code Galaxy (https://www.thecodegalaxy.com), Age: 7-18, Stack: Block-based coding, Lua, Scratch, Python
  7. Kodu Game Lab (https://www.kodugamelab.com), Age: 8+, Stack: block-based coding
  8. Kodeclik (https://www.kodeclik.com), Age: 8-18, Stack: block-based coding, Scratch, Lua, Python, Javascript
Programming languages
  1. Kodable (https://www.kodable.com), Age: 4-11, Stack: JavaScript
  2. Code.org (https://code.org), Age: 5+, Stack: Javascript, HTML, CSS
  3. Bitsbox (https://bitsbox.com), Age: 6-12, Stack: JavaScript
  4. Codemoji (https://codemoji.com), Age: 5-14, Stack: HTML, CSS, JavaScript
  5. Codeyoung (https://www.codeyoung.com), Age: 5-17, Stack: Scratch, HTML, CSS, Java, and Python
  6. Create & Learn (https://www.create-learn.us), Age: 5-17, Stack: Python, Scratch, Java
  7. Code Avengers (https://www.codeavengers.com), Age: 5-17, Stack: JavaScript, Python, HTML5, CSS3
  8. Coding with Kids (https://www.codingwithkids.com), Age: 5-18, Stack: Scratch, Python, Java
  9. Codevidhya (https://codevidhya.com), Age: 6-16, Stack: Scratch, Python, JavaScript
  10. CodaKid (https://codakid.com), Age: 6-18, Stack: Python, JavaScript, C#
  11. Real Programming 4 Kids (https://realprogramming.com), Age: 7+, Stack: Python, Java, C#, and C++
  12. Code4Fun (https://www.code4fun.com.au), Age: 7+, Stack: Scratch, Python, Java, C# with Unity, C++ with Unreal Engine
  13. Crunchzilla (https://www.crunchzilla.com), Age: 8+, Stack: JavaScript
  14. Girls Who Code (https://girlswhocode.com), Age: 8+, Stack: Python, JavaScript, HTML, CSS
  15. Juni Learning (https://junilearning.com/coding), Age: 8+, Stack: Scratch, Python, C++, JavaScript
  16. Scratch (https://scratch.mit.edu), Age: 8-16, Stack: Scratch
  17. CodeWizardsHQ (https://www.codewizardshq.com), Age: 8-18, Stack: Scratch, Python, HTML/CSS, and JavaScript
  18. CodeCombat (https://codecombat.com), Age: 9+, Stack: Python, JavaScript, C++, Java, Lua
  19. Vidcode (https://www.vidcode.com), Age: 9+, Stack: JavaScript
  20. EduCode Academy (https://educode.org), Age: 9+, Stack: JavaScript, HTML, CSS, Python
  21. CodeGuppy (https://codeguppy.com), Age: 13-18, Stack: JavaScript
  22. Roblox (https://create.roblox.com), Age: 13-18, Stack: Lua
Relevant answer
Answer
Coding is the new literacy! Introducing kids to the world of programming at an early age can spark creativity, problem-solving skills, and a strong foundation for future STEM careers. Here are some fantastic coding tools tailored for young learners:
Visual Block-Based Coding:
  • Scratch: A classic choice for kids aged 8-16, Scratch uses colorful blocks that can be snapped together to create interactive stories,games, and animations.📷 Opens in a new window 📷en.scratch-wiki.infoScratch coding interface
  • Scratch Jr: A simplified version of Scratch designed for younger kids (ages 5-7), Scratch Jr. introduces basic coding concepts through a user-friendly interface.📷 Opens in a new window 📷www.researchgate.netScratch Jr coding interface
  • Blockly: Another visual coding platform that offers a variety of languages and challenges, suitable for different age groups.📷 Opens in a new window 📷opensource.comBlockly coding interface
  • Code.org: This website offers a range of coding activities and games, including the popular "Hour of Code" challenges.📷 Opens in a new window 📷forum.code.orgCode.org website
Game-Based Learning:
  • CodeMonkey: Kids learn to code in CoffeeScript and Python while guiding a monkey through a jungle adventure.📷 Opens in a new window 📷www.codemonkey.comCodeMonkey game interface
  • Tynker: Offers a variety of coding courses and games, from block-based coding to Python and JavaScript.📷 Opens in a new window 📷www.tynker.comTynker game interface
  • Kodable: Focuses on teaching JavaScript through a fun and engaging puzzle-based approach.📷 Opens in a new window 📷www.kodable.comKodable game interface
Text-Based Coding:
  • Python: A versatile language that's easy to learn and widely used in various fields. Tools like Trinket and Replit offer interactive environments for Python coding.
  • JavaScript: The language behind web development, JavaScript can be explored through platforms like Codecademy and Khan Academy.
Additional Resources:
  • RoboCode: Kids can learn programming by creating robot battle programs.
  • Minecraft Education Edition: Offers opportunities to learn coding while building and exploring in the Minecraft world.
  • App Inventor: Create your own Android apps using a visual block-based interface.
Factors to Consider When Choosing a Tool:
  • Child's age and interests: Select tools that align with their age and what they enjoy doing.
  • Learning goals: Determine if you want to focus on specific programming concepts or general problem-solving skills.
  • Accessibility: Consider the cost, platform compatibility, and ease of use of the tool.
  • asked a question related to JavaScript
Question
19 answers
Learning Object Oriented Programming (OOP) in JavaScript is a crucial step to mastering the language, as it provides a structured way to manage complex code and allows for better reuse and maintenance.
Relevant answer
Learning Object Oriented Programming (OOP) in JavaScript is crucial because it allows for the creation of modular, reusable code through the use of objects and classes. This approach helps in organizing code, improving code readability and reducing complexity. The main concepts of OOP, such as abstraction, encapsulation, inheritance and polymorphism, help developers to create applications which are easier to scale and maintain. Furthermore, OOP promotes code reusability, which improves development speed and prevent mistakes.
  • asked a question related to JavaScript
Question
3 answers
Hi everyone,
Last few days I was wondering about which JavaScript frontend framework is better to learn and use in 2023? What are the advantages and prospects of each of them?
Would like to see your opinions!
Relevant answer
Answer
python django restframework is better for backend and front end JavaScript
  • asked a question related to JavaScript
Question
7 answers
I'm a freshmen and learning Information Technology on Philippines. I've heard that most developers uses Python. But others use JavaScript. I don't know where to start but they are reliable and easy to learn.
Relevant answer
Answer
I agree with James Garry. Indeed, learning programming languages will depend on what you intend to use them for... I can also say, that coding usually follows the same principle and only syntax and capabilities will differ. In other word, if you are a good programmer with FORTRAN, you can also be a good one in C with an extra effort, and much easier with Python, and so on...
  • asked a question related to JavaScript
Question
4 answers
I have been experimenting with machine learning in JavaScript, please, let me know also your experience! 😎🤗😍
In attachment a preprint!
Relevant answer
Answer
Feel free to add more details on your perspective!
  • asked a question related to JavaScript
Question
7 answers
Hi, I have a google earth engine code in Javascript. I want to carry out a trend analysis of Mann Kendall from the year 1985 to 2019 pixel by pixel taking the annual medians of the ARVI vegetation index, from the Landsat 8, 7, and 5 images. When I run the code I get the following error " kendallVariance: Layer error: Image.subtract: If one image has no bands, the other must also have no bands. Got 0 and 1.". I can't identify or fix the error. Please review the code thoroughly, identify the error, and show me the solution. Here is my code:
Relevant answer
Answer
Step-5 (cont..)
In this code, you'll need to define the geometry variable to specify the region of interest where you want to perform the analysis. Additionally, make sure you have defined the years variable as an array of years for which you want to calculate the annual medians.
Please note that this is a general example, and you may need to modify it according to your specific needs. If you encounter any specific errors or issues while running this code or modifying it, please let me know, and I'll be happy to assist you further.
  • asked a question related to JavaScript
Question
3 answers
The layer Polygon_A is a vector layer consisting of numerous polygons, created from a binary raster layer with values of 0 and 1. On the other hand, Polygon_B is a vector layer created from user-defined geometrical shapes and contains only three distinct polygon shapes. When subtracting Polygon_A from Polygon_B and exporting the resulting layer as Polygon_C, an issue arises when importing it into Arcmap. Specifically, only one polygon appears in the attribute table, which requires investigation to determine the cause of this problem and how to resolve it.
Below shows necessary JavaScript code related with subtraction of A from B in Google Earth Engine (GEE).
// Define the geometry of B feature
var Polygon_B= ee.FeatureCollection(table);
var B=Polygon_B.geometry();
// Define the geometry of A feature
var A = Polygon_A.geometry();
// Erase A from B and create C
var C= A.difference(B, ee.ErrorMargin(1));
// Convert geometry to feature
var Polygon_C= ee.Feature(C);
print(Polygon_C)
// Export the polygon as a shapefile to a specific folder in Google Drive
Export.table.toDrive({
collection: ee.FeatureCollection([Polygon_C]),
description: 'Polygon_C',
folder: 'Shapefile_GEE', //My Folder name of Google Drive
fileFormat: 'SHP'
});
Relevant answer
Answer
I am grateful for the advice you gave me, Harish Dangi. It helped me to feel more confident and capable
  • asked a question related to JavaScript
Question
1 answer
I am interested in learning Hyperledger Fabric 2.x and smart contracts to create my own API. I took a course in Udemy but it was based on Composer, that was deprecated since 2019. Do you have any idea about a great course preferely in Java or JavaScript than Go Lang?
Thank you
Relevant answer
Answer
That's a good idea
  • asked a question related to JavaScript
Question
9 answers
Hello,
My research focuses on analysing software applications that are written using multiple programming languages at the same time; So in summary Multi-Languages-Software-Application (MLSAs) analysis.
In such cases, solutions may be developed using some frameworks such as:
  • GWT (Java-XML)
  • Android framework (Java-XML)
  • Angular(Typescript, HTML, CSS)
Or just a combination of languages like: HTML CSS and Javascript for web development.
My question is: Whenever we have an application that is developed using mono-language, at the same time is calling an external web service using the HTTP/HTTPS protocol, can be considered as part of MLSAs ?
Your opinions are appreciated
Relevant answer
Answer
It depends.
First of all i would say HTML and CSS are not programming languages per definition, you are not able to write programms with them, they only add a layer to display/structure data.
If for example a webapplication frontend comunicates with an API written in PHP as it's backend, then the API could be considert as part of the application. If you use an external service like Deepl for example than Deepl is not part of the application, it is an *external* service.
  • asked a question related to JavaScript
Question
11 answers
Hi, everyone. I'm in the last year of my doctorate and would like to do a postdoc abroad next year. However, I see that many opportunities require extensive curriculum, publications, teaching experience, language proficiency, etc. Should I focus on getting more publications, improving my language proficiency, making contacts, or something else?
I am dedicating myself to learning about Machine Learning algorithms, landslide susceptibility modeling, LULC classification, coding in R (RStudio and Planetary Computer) and JavaScript (Google Earth Engine), and I'm also learning languages (Portuguese (native speaker), Spanish (fluent), English and Italian (advanced), French and German (basic)). However, I don't feel prepared for the Postdoc positions available.
Would it be better to focus on available postdoc position requirements or contact professors who coordinate research groups that interest me? Do I need to have a structured project or could I join some ongoing project?
I appreciate if anyone can give me some tips.
Relevant answer
Answer
Hi Renata
Before graduating I made a list of terms I was interested in and searched the internet for the top people and labs that might cover these subjects. After closely examining their research, I then sent an email expressing interest in their work and asking if they had any positions available. I did not send that many emails and I had about an 80% reply rate and maybe 60-70% interview rate. If I remember correctly I had around 8 interviews and was accepted by one. Many of the top labs will have open positions for talented people. At this point my CV was not that outstanding. I had little teaching experience and maybe just one paper published. However, I chose subjects I was interested in, so I was super-keen to work with experts in the field. Potential employers also look for enthusiasm :)
It's also not too early to start building bridges to potential employers. I used study new publications in my field and sometimes ask the authors questions by email. This way you can build up a familiarity with the field and get a general feeling what potential employers may be like. Remember at this stage you also get to do the choosing. Good luck in your search :)
  • asked a question related to JavaScript
Question
4 answers
I am trying to get seasonal changed land use and land classification for 1 km area study area. Most of the years in the wintertime period (November to January) have no image by Landsat 5 and Landsat 8. It will be nice if anyone can give me any hints
Relevant answer
Answer
It's clear now. Thank you very much
Dan Abudu
. Can you please give me an idea on another topic if you know about it ?
For the difficulty of getting images for specific seasons ( Spring, Summer, Autumn and Winter), I decided to spilt the yearly time period into two. Is there any gradient according to literature extending the time period and splitting the year into two parts rather than four seasons? I thought on growing and non-growing seasons for Urban forest, it difficult for me as it varies among study areas in the different regions of the world.
  • asked a question related to JavaScript
Question
3 answers
Good day
I want to use time-series (ET and CHIRPS) as well as single image (DEM) in my regression model.
Is this possible, and if so - what would the step recommendation be?
I have joined the time-series image collections for input, but unsure how to include the stagnant data for training input?
I am working in GEE (JavaScript) and currently I can only do it using the one or the other.
Regards,
CV
Relevant answer
  • asked a question related to JavaScript
Question
1 answer
I am wondering if this is some sort of a legacy issue, as XML comes with a few drawbacks like speed and human readability compared to JSON. See w3 schools on XML vs. JSON
"JSON is Like XML Because
  • Both JSON and XML are "self describing" (human readable)
  • Both JSON and XML are hierarchical (values within values)
  • Both JSON and XML can be parsed and used by lots of programming languages
  • Both JSON and XML can be fetched with an XMLHttpRequest
JSON is Unlike XML Because
  • JSON doesn't use end tag
  • JSON is shorter
  • JSON is quicker to read and write
  • JSON can use arrays
The biggest difference is:
 XML has to be parsed with an XML parser. JSON can be parsed by a standard JavaScript function." from https://www.w3schools.com/js/js_json_xml.asp
Relevant answer
Answer
I think you're right, it's a legacy issue. In my view, research in computational linguistics, corpus linguistics, and NLP would be better off transitioning to JSON, but there are a lot of legacy resources tied up in XML.
For a promising JSON alternative, see the work of Daniel W. Hieber (@dwhieb) at Digital Linguistics (DLx): https://format.digitallinguistics.io/index.html.
  • asked a question related to JavaScript
Question
3 answers
Ansys 19.2 R2 and 2020 R1 versions of Additive Manufacturing Workbench is convenient for powder-based Additive Manufacturing processing. However, in this workbench, there is a machine parameter setting dialogue box and this parameter setting dialogue box has not included the laser power parameter. Without laser power, the powder material will not melt. So, how to add laser power in the machine parameter setting?
Thank you very much for your cooperation
Relevant answer
Answer
In Ansys Additive Manufacturing System there is no provision for setting laser power, the scan strategy also can not be controlled. The system adds material and heat all at once for each element layer i.e., instead of applying heat flux, the system sets the entire layer to the melt temperature.
For controlling the laser power and scan strategy you can use element death and birth technique in ansys workbench and apply heat flux on the elements for specific time depending on your scanning speed.
Thanks,
Ankit
  • asked a question related to JavaScript
Question
5 answers
dear community, in order to describe a website architecture design (pages , order of pages, titles,..) I tried to apply web scraping , but till now I can't find a tutorial on how to get this type of data as mentioned below .
Relevant answer
Answer
  • asked a question related to JavaScript
Question
60 answers
Now I want to implement Balloon Analogue Risk Task(BART) in Qualtrics, one way is adding Javascript or HTML in Qualtrics to realize the task. Does anyone know how to programming in Qualtrics? I have found some cods previous researchers have done for BART using Javascript, but not in Qualtrics environment.
Relevant answer
Answer
There is a simple solution. Convert the arrays into String variables. This solution was created with the help of Morgan Taylor.
Search the Javascript code for the following lines:
$('#message').html(msg_end1+total+msg_end2).show();
$('#outcomes').show();
$('#NextButton').show();
Replace the code following the three lines above with:
var Holder1 = number_pumps.toString();
var Holder2 = exploded.toString();
Qualtrics.SurveyEngine.setEmbeddedData('number_pumps', Holder1);
Qualtrics.SurveyEngine.setEmbeddedData('exploded', Holder2);
Qualtrics.SurveyEngine.setEmbeddedData('total_win',total);
  • asked a question related to JavaScript
Question
5 answers
Hello,
recently I was asked for a formula to calculate the center of a circle based on GPS coords (Lon/Lat) of 3 registered points at the edge of the circle. The problem is quite complicated due to the spherical surface (it's not the same as the center of the planar circle!), however I found a brilliant solution at Ask Dr.Math (http://mathforum.org/library/drmath/view/68373.html).
I decided to calculate the example presented at Dr.Math in both excel and javascript and I get the same result:
Location 1: Lat 38.714642 Long -90.256857 Location 2: Lat 41.143586 Long -96.238873 Location 3: Lat 38.942661 Long -90.892235
Excel, JS -> center = Location 0: Lat 60.56656708626758 Long -69.01937823602283
however when I put some real-life GPS coords into the calculation I get different results in excel and JS.
P1: Lon 22,366813 Lat 51,159313
P2: Lon 22,387458 Lat 51,153109
P3: Lon 22,39142 Lat 51,167133
Excel -> center = P0: Lon 22,38085184 Lat -51,16107483
JS -> center = P0: Lon 22.38085184 Lat 51.16107483
I see that the latitude in excel (cell 'W10' in the attached file) is calculated with negative value (-), which is wrong (northern latitude is the right one), but why does it happen? When I put some other coords for testing I get only northern latitudes.
I'm sending an excel table and js files with Dr.Maths' coords and my ones. I use Polish version of excel (hope the formulas would change automaticly in other versions) and test my js script at https://js.do/
Anybody could help?
Relevant answer
Answer
Very interesting question. I had a job with MDA in Vancouver (the company that designed the robotic arm of the ISS), and in it we made use of GIS data of real estate properties in the US where we had a trigonometric formula to calculate distances between any two properties based on their geographic coordinates. That formula was as accurate as the coordinates, to within a metre. We used SAS, which you can try too if you have a license at hand. But it seems what you want here is slightly different anyway. Also, you could try MathCad, if it's an option, which was the main software used at MDA.
  • asked a question related to JavaScript
Question
3 answers
For small molecule drug discovery, we use PAMPA assay to classify compounds into three categeories, high, medium to high and low permeability. My question js that what`s the value of high, medium to high and low permeability? where dose these values come from? any paper mentioned these?
Relevant answer
Answer
I know the answer to this question. High bioavailability is F>70%, medium to high bioavailability is 20-70%, and low bioavailability is <20%. Their corresponding caco-2 membrane permeability Peff is 10*10-6cm. /s, (1-10)%10-6cm/s and 1*10-6cm/s. The categories of the PAMPA assay comes from the caco-2 assay. If in the PAMPA assay, >20% of the compound is on the membrane, it will also be defined as a category of M2H
  • asked a question related to JavaScript
Question
4 answers
Dear all,
How to solve inverse Laplace transform for the higher-order functions?
for example function f(s)=1/(a*s^5+b*s^4+c*s^3+d*s^2+e*s+f)
First, we do a partial fraction and then apply the inverse Laplace transform formula.
But In my problem, the coefficients (a,b...f) values are changing, not a constant one.
So I have difficulty solving the higher-order function using Javascript.
Kindly suggest any idea to solve this problem.
Thanking you.
Dr.D.Maharajan
Relevant answer
Answer
@Maharajan Duraisamy, why don't you try using MATLAB, or open source alternatives, Octave or sci-lab.
  • asked a question related to JavaScript
Question
5 answers
I am looking for a tool that is suitable for a collaborative online experiment where the participants can chat with each other synchronous. Furthermore I need the option to implement some custom code. Prefarably JavaScript or Python. Does anyone have experience with that?
Relevant answer
Answer
mIRC is a popular Internet Relay Chat client used by individuals and organizations to communicate, share, play and work with each other on IRC networks around the world.
  • asked a question related to JavaScript
Question
2 answers
We have an experiment coded in HTML/JavaScript, for which we would like to add EEG triggers via a parallel port.
After quite some Google searching, I am impressed how complicated it seems to set parallel port pins via JavaScript.
Therefore my question: Is there an easy solution you could recommened?
We are using a Windows 10, 64 bit system.
I tried to install the node package "parport" via npm but with no luck (fails with error "ERR! code ELIFECYCLE"), which I couldn't resolve.
I am also open to options using PHP or HTML, if there are any.
Any help or pointers are very welcome and highly appreciated.
Thanks,
Nico
Relevant answer
Answer
Not clear your exact requirement.
I think you are trying to create a web app to manipulate EEG data?
hope you can do use a simple php web service for that.
if you trying to render your data. you can use react js (with charts)
  • asked a question related to JavaScript
Question
29 answers
I am looking for options of GEE JavaScript code to perform atmospheric correction of Landsat 7-8 and Sentinel-2 directly within the GEE Code Editor.
I intend to use harmonized Landsat 7-8 and Sentinel-2 bottom of atmosphere (BOA) reflectance data across some locations in Brazil during 2017-2018. While Landsat 7-8 BOA data are readily available in GEE (at least for my region and date), Sentinel-2 BOA data are not always available in GEE (yet), depending on the region and date. Therefore, I may need to apply my own atmospheric correction on the Sentinel-2 TOA data - preferably within the GEE Code Editor in order to perform as many processes as possible inside GEE.
To improve harmonization among the different satellite data, the same atmospheric correction method could be applied to Landsat 7-8 TOA data as well.
In summary, it would be great to apply the same atmospheric correction method on Landsat 7-8 and Sentinel-2 data directly within the GEE Code Editor.
Relevant answer
Answer
Hi Harry A Alvarez , I'm not sure, but I think you just need to change point ground sensor to your point area interest.
thanks
  • asked a question related to JavaScript
Question
3 answers
While there are multiple Java implementation for managing semantic knowledge base (Hermit, Pellet...) there seems to be almost none in pure Javascript.
I would prefer to use JS than Java in my project since I find JS much more clean and practical and easy to maintain. Unfortunately, there seem to be almost nothing to handle RDF data together with rules inference in Javascript. Although there are some work to handle only RDF (https://rdf.js.org/), it's unclear what is the status of these works regarding to W3C specifications.
Relevant answer
Answer
Prasath Sivasubramanian Thank you for your answer, it seems like all Javascript tools listed on w3.org aren't maintained anymore though. Like Hercules last released was in 2009, OAT is not reachable anymore...
The Eye (https://github.com/josd/eye) engine looks quite interesting I wonder if it's comparable to https://github.com/ucbl/HyL ?
  • asked a question related to JavaScript
Question
4 answers
Hi all,
Using requests in python we can get json files from different webpages. However, in some cases due to Cloud flare or different cookies, we cannot get the json files. On the other hand, some extensions of different browsers can get any jsons of a webpage. Can we connect a python script to a browser extension to get the json file?
If yes, how?
Thanks in advanced
Vahid
Relevant answer
Answer
Fardad Frank Ansari
I use "Network" tab of Inspect element to find the json url. In most of cases, using requests.get () works correctly, but in some pages Cloud flare or csrf-token cookies prevent from my connections. Do you know how we can pass each of these cases?
Thanks
  • asked a question related to JavaScript
Question
1 answer
Is anyone familiar with sending commands to the Mesh Editor via the WorkBench Command window or via scripting?
I've done alot of reading on other people attacking this problem but nothing seems to work for me.
- From the command window I try sending actions via "mesh.SendCommand(Command=....." but always get 'command is under defined' errors
- and from the scripting side of things I've tried uploading .js files while the Mesh editor is open that take the style of: ds.Script.doInsertMeshSize(); ListView.ActivateItem("Scoping Method"); ListView.ItemValue = "Named Selection"; ListView.ActivateItem("Named Selection"); ............ .........
.....
but that always gives me an error that states "undefined variable 'ds'".
Any advice or examples on this would be greatly appreciated.
Relevant answer
Answer
Hello Andrew,
I don't know if the following post is the solution to your problem, but I hope it can at least guide you into the right direction.
A snipped of the code above:
model1 = system1.GetContainer(ComponentName="Model")
# Read the DS_macro_file to get all the commands from Mechanical
DSscript = open("C:\MyFolders\M_script.py", "r")
DSscript.close()
# Send the command
model1.SendCommand(Language='Python', Command = DSscriptcommand)
model1.Exit()
Here, a python script is read into the variable DSscriptcommand, which is later passed as argument to the SendCommand() function. Additionally, the programming language is informed. Again, this command is being sent to a Model component, not a Mesh Editor component. I haven't tested to see if this solution will work with the Mesh Editor.
Cheers,
Felipe
  • asked a question related to JavaScript
Question
7 answers
I need advice, I started to master the JavaScript React library and I want to choose a development environment, there are options - WebStorm, Visual Studio Code and Sublime Text.
Relevant answer
Answer
I would recommend Visual studio code as it is easy to use and also supports extensions related to React.
  • asked a question related to JavaScript
Question
3 answers
Hello Researchers,
I have created a browser extension that generates citations in different formats based on the DOI of the paper. It uses crosscite citation as a wrapper to give you the output.
Could you please take a minute or so and try it out, and I'll be happy if you could drop some feedbacks about it.
P.S: Currently available on Mozilla Firefox only.
Thanks.
Relevant answer
Answer
Very neat add-on!
  • asked a question related to JavaScript
Question
3 answers
This figure is about "Percentage change in land use land cover classes over Africa 2000–2015."
It is collected from a paper titled "Mapping land cover change over continental Africa using Landsat and Google Earth Engine cloud computing"
Can anyone suggest link of any supplementary script relevant to this?
Relevant answer
Answer
Is there a specific reagion you need to generate a land use change chart?
  • asked a question related to JavaScript
Question
4 answers
I'm starting working on generating web apps UIs automatically applying machine learning methods. I recently read about pix2code and code2pix, which are in the line of what I want to do.
Do any of you know more tools, javascript/python libraries or research papers related to the topic?
  • asked a question related to JavaScript
Question
4 answers
Which programming language is best to use for writing smart contracts in Hyperledger Fabric's (a private blockchain) chaincode: Go, Java, or Javascript? What are the limitations of each language provided the programmer has beginner-level proficiency in each?
Relevant answer
Answer
A chaincode typically handles business logic agreed to by members of the network, so it may be considered as a "smart contract".
Hyperledger initially was build using Go language, and Hyperledger team has aim to support as many languages as possible so that developers familiar with the language can start working on chaincode development rather than learning new language. Currently Hyperledger Fabric offers a number of APIs to support developing smart contracts (chaincode) in various programming languages.
Smart contract APIs are available for Go, Node.js, and Java. It is always big debate which language to choose to implement base features and better performance, here are things to consider:
1-Go being default language all the chaincode base features are made available in Go Language first then in other languages
2-Node.js chaincode uses npm install at the time of container building, which is slow and might fail due to network problems, while Golang just compiles the source code without fetching anything.
3-docker images size for chaincode are a lot bigger with nodejs than with go, in a 1:8 factor (180MB in Go vs 1.5GB in nodejs). If you need to test a network with several peers or several chaincodes interacting, you'll have to wait minutes and minutes between each network relaunch. A pain
4-Since the 1.0.0 release, Java chaincode support was disabled for the time being and enabled in 1.1.0 release
5-Since the key-value store writes byte arrays, using the Java API means that we’d need to either serialize stored objects or update byte arrays manually. Either way, this would mean a lot of boilerplate code. The Go API, on the other hand, has structs. This makes the whole process of retrieving or updating stored values trivial. Even in a general sense, in Go you will just have to write less code to do the same.
Selecting the language for chaincode language can be personal choice depends upon different factors, I will choose Go Language for the development being default language new features are available in this language.
  • asked a question related to JavaScript
Question
8 answers
Note: I programmed my project with JavaScript
The data I am talking about is data that I have queried from DBpedia, and therefore I want to improve the results by applying one of the data mining algorithms..
Relevant answer
Answer
It depends on your objective and data. Are you talking with classification or clustering? What is the task you are handling? Is it entity extraction? Is it ontology building, ontology alignment?
  • asked a question related to JavaScript
Question
8 answers
I was looking for a simulator to simulate a proof of concept in hyperledger fabric by changing the number of the orderer, endorser, organisation, and also wanted to apply consensus in the network. Is there any simulator which can help me in this regard? I also want to make a transaction by coding (e.g., javascript, java).
Any suggestions?
Thanks in advance.
  • asked a question related to JavaScript
Question
7 answers
This title might not be very clear, let me elaborate :
Let's say, you're a computer scientist on your browser. You innocently browse the web, looking for a new book about procrastination (or anything else). Suddenly, a click lead you to the homepage of EvilCorpWorld, a (fictional) company incarnating the opposite of your ethical views.
EvilCorpWorld isn't a "common evildoer", they blatantly make the world a worst place. According to your ethical views, they could be enslaving children, selling weapons to warlords, practicing tax fraud at country scale, they support network promoting racism and sexism...
On the homepage of EvilCorpWorld, you inadvertently notice a big security flaw. Something like "click here for rootshell (Admin only!)". For the sake of simplicity, let's say it's an actual flaw, not a honeypot or anything else.
Now you have three possibility :
  • to tell : email EvilCorpWorld to warn them about the huge flaw.
  • to poke : like with a stick, poke the flaw, trying to see how far you can get. Poking does not mix with wrongdoing on purpose or for benefit. It's more a playful activity.
  • to delegate : unsure of what to do, asking someone more versed in infosec what they think
What would be the most ethical-wise thing to do (maybe something other than three options)?
Relevant answer
Answer
This isn't as hypothetical as you might think.
Our IDS examines each incoming query and, if it decides it's malicious, it then sends a report to the ISP owning that IP address, who either cancels the account of the hacker, or removes any malware which sent the query.
In your case, I'd do the same thing i.e report the website to the ISP.
It works. ISP's loathe hackers nearly as much as we do, and they're only too pleased to take them off the air. To date: 118,747, and counting.
  • asked a question related to JavaScript
Question
5 answers
Hello,
I am new in Google Earth Engine Code Editor and I am interested in using the Landsat Mosaics of Collection 4 that seem to be available from MapBiomas from 1985 - 2018. Unfortunatelly, I haven't been able to find the script for Google Earth Engine (GEE). When I use the suggested link (https://mapbiomas.org/en/google-earth-engine), I only get 3 scripts, but none of them gives me the mosaics. Moreover, I get a blank page when I try to find the scripts from the MapBiomas site (http://mapbiomas.org/pages/scripts).
Could anyone please help me find these Landsat Mosaics MapBiomas scripts for the GEE?
In addition, in other scripts that seem to be available for download and mosaic Landsat images in GEE, I can only get 3 Bands of an image. Is there any limitation that has to do with the number of the bands that I can save to raster format, when I use the GEE code editor?
Is it possible to alternatively find a javascript or python script to download, mosaic Landsat images and save the mosaics to GeoTiff format with 7 bands (in GEE code editor)?
Relevant answer
Answer
Could this be what you're looking for?
Landsat Image Mosaic for each year of Collection 4
ID: projects/mapbiomas-workspace/MOSAICOS/workspace-c3
  • asked a question related to JavaScript
Question
3 answers
We are preparing a paper regarding image processing in raspberry boards, using javascript libraries that run inside browser space, under a new web assembly binary execution machine. Can this topic be considered an "embedded systems" topic? My question arise since Raspbian's browser is used for image processing (being Raspbian an operating system itself), perhaps a reviewer can disqualify the solution as an "embedded one".
Relevant answer
Answer
Thanks for your answers. Our paper was accepted in an Embedded Systems journal, when published, I'll notify here.
  • asked a question related to JavaScript
Question
1 answer
For thesis research, I am trying to calculate some metrics starting from Sentinel-1 data and using the platform GEE in JavaScript. I do not know if is possible to calculate the slope.
Have you ever done it?
Kind Regards
Federico
Relevant answer
Answer
Hi Federico,
I don't know about using GEE for generating DEMs from Sentinel-1 data.
But alternatively, a free solution for that is the Sentinel 1 Toolbox (STEP), part of the free open source software SNAP developed by the European Space Agency: http://step.esa.int/main/
In their website there are good tutorials for generating DEMs using SAR interferometry and a very active community that can help you with any problem that appears from trying to use the software.
Cheers!
  • asked a question related to JavaScript
Question
1 answer
I run an ANCOVA, finding a significant interaction between my treatmente and a covariate. Now I would like to identify the regions of significance in order to state for which values of the covariate my slopes are different. I've triyed "js" function of "probemod" package, but I have some problems. Maybe somebody knows how to solve this, or other methods.
Thank you.
Relevant answer
Answer
It describes an R package that does all of this. Hope this helps, D. Booth
  • asked a question related to JavaScript
Question
1 answer
I am trying to add a block that entails a memory game in which images flash on screen for 1000 milliseconds, followed by a word that flashes for 15 milliseconds, then another image, and finally another word. I have been reading various forums to find the right coding to add to the javascript to get the timer right but it doesn't seem to be working.
This is what I could find online:
Qualtrics.SurveyEngine.addOnload(function() { // first we wait ten milliseconds, for safety setTimeout(function(){ return undefined; }, 10); // make the div with id "subliminal" visible $("subliminal").style.display = 'block'; // make the div invisible again, after 15 milliseconds setTimeout(function(){ $("subliminal").style.display = "none" ; }, 15); // click the next button to move on to the next page $('NextButton').click(); });
But I don't think its working, or perhaps I'm entering it in wrong. I also would like for it to auto advance as opposed to using the next button.
Relevant answer
Answer
Hai,
Kindly Check this link:
Best Wishes..
  • asked a question related to JavaScript
Question
10 answers
SQL
Javascript
HTML
Relevant answer
Answer
The below link is represent connect and get the data from db..
see that link...you will get some answer
  • asked a question related to JavaScript
Question
3 answers
Does somebody know a JavaScript implementation of concatenating two (or more) alignments? A npm package that could do this would be nice. It should be able to customize the behavior of how to deal with missing sequences.
Relevant answer
Answer
in my opinion, you could implement your own JS class for that purpose by using built in functions check: MDN mozilla developer network as a reference . this will help you to reuse it again & contribute to open source community.
  • asked a question related to JavaScript
Question
4 answers
Hello to everyone. I am very new to computer-based experiments. Currently I am looking for Desert Survival Problem software or website that can be used for conducting a lab experiment. I saw in several papers that authors used computer-mediated version of this task. However I can't find any source to download this game. Is it possible that all those authors used self-created games? Thanks for any related information.
Relevant answer
Answer
You are welcome dear Anastasiia Popelnukha
  • asked a question related to JavaScript
Question
2 answers
My Virtuoso SPARQL (VOS v6) instance rejects HTTP requests from a javascript client despite configuring the CORS.
Relevant answer
Answer
Which graph store do you use? If you are using Virtuoso you have to check this:http://vos.openlinksw.com/owiki/wiki/VOS/VirtTipsAndTricksCORsEnableSPARQLURLs
  • asked a question related to JavaScript
Question
8 answers
I’m trying to implement semantic similarity based on Normalized Google Distance and i have many problems to obtain correct data. I tried to simulate browser, get data via Google API (PHP, Java, R, Google Docs) and every time i had different results. Is there any proper way to get accurate and current data?
Relevant answer
Answer
1) They do not provide in their API the same results as in Google Live.
2) The results are just an estimate of the total. If you navigate through the results pages you will see that for some queries there are actually less results than the number they show you.
3) Another point is that it is very difficult to compute NGD, you can check this thesis (chapter 4 (also 3)) as an alternative (method CBM): http://www.dbd.puc-rio.br/pergamum/tesesabertas/1012681_2014_completo.pdf
  • asked a question related to JavaScript
Question
6 answers
I actually used MATLAB neural network (Feedforwardnet).
The network has been trained with my data and it worked fine.
I will like others without MATLAB to use the trained network for their own predictions. Therefore, I built a website for this task.
My question is how do I include my trained network on this newly built website so that the user without MATLAB can make predictions through this webpage.
Thanks
Relevant answer
Answer
This isn't an answer to how to use a matlab in the browser, but it could be relevant. Have you heard of tensorflowjs? I don't know much about it but, apparently you can deploy and even train models in the browser using javascript.
  • asked a question related to JavaScript
Question
2 answers
I am looking for either prior work, or on going research that enables parallel programming and GPU based hardware acceleration for JavaScript on NodeJS (leveraged via OpenCL instead of WebGL). I maintain a high profile open source project (https://github.com/webpack) and I would like to explore a variety of research involving GPU/Multicore CPU programming to drastically enhance the speed of our Compiler, Parser, and Module Resolver.
Relevant answer
Answer
I think that is getting to the right place. I'm not sure how robust it is, and was looking for more Publications or Research Findings about its attempt!
  • asked a question related to JavaScript
Question
8 answers
I want to use the Java classes in the PHP snippet with the help of javascript or JQuery. As i found one way, using command prompt.. But is there any standard or direct connection exist? I tried but in real-time it won't works smoothly.
Relevant answer
Answer
I will recommend the following:
  • ScriptEngine
  • Rhino
for the first one:
he Java ScriptEngine API support many Scripting language like
JavaScript
for the second one:
an open-source implementation of JavaScript written entirely in Java
Best
  • asked a question related to JavaScript
Question
3 answers
Assume washingtonpost.com is blocked by Canandian government and Canadians are unable to access the website either through IP addresses or domain name. And VPNs are banned as well so Canandian citizens cannot use VPN as they want. I want to help them.
I am thinking using WP viewers as "proxy servers". A WP viewer voluntarily becomes a proxy server (using webRTC javascript code invluded in WP pages). Next, A Canadian's web browser will find a list of nearest proxy servers to access WP.
It will be practically unblokable as it means the Canadian government will have to block the internet to do so.
Now, how can a Canadian find a list of nearest proxy servers? An easy solution will be to host a signaling server. However, this solution is not "unblockable".
I then did research on Blockchain. I found that native client installation is required. This is again "blockable" as Canadian government can ban the client the same way they ban VPN. I want everything to be done using a web browser.
Your ideas, or links, or book names, or anything is highly appreciated!
Relevant answer
Answer
Privatix powered by P2P VPN Network on Blockchain.
  • asked a question related to JavaScript
Question
5 answers
Hi all
Are there any differences between legitimate requests which sent by a user versus requests that had sent because of malicious JavaScript?
which features are used to discriminate these requests and detect type of a ddos attack (browser based vs malware based)?
Thank You
Relevant answer
Answer
Collect the queries, label them (either bot or not). The tricky part will be to extract features.
As features you can use:
  • HTTP request method
  • HTTP status code
  • URL
  • File name (index.php)
  • Useragent
  • IP address
  • Geolocation of the IP address
Train and test machine learning model.
  • asked a question related to JavaScript
Question
10 answers
We are preparing for our final year project and have to submit our proposal in few days. We have prior knowledge of html (with basic css and javascript), and also very well familiar with C and C++ using object oriented programming. We are now learning C#.
Having said all that the main point is that our supervisor recommended us to make a web based application with PHP at back end and HTML and JS as a front end.
What ideas would you give me work on? What nature it should have? Its domain or anything else.
Relevant answer
Answer
As you know there are a huge range of applications. I would recommend you to search in your network for relatives, someone, some company or some no profit organization that needs some application to solve any need of their business.
Companies that use EXEL worksheets; and even have all your business supported by this application are excellent candidates to be your "client" in the project.
This approach will facilitate your elicitation of the requirements because you will take advantage of the customer's business knowledge (application domain).
Be careful only with the size of the project. Thus, you will not frustrate the customer or make project completion in the available course's dead end. Value for customer relationship, also.
Please, let me know the answer help you and your work anyway.
Good Luck! Enjoy the work!
  • asked a question related to JavaScript
Question
4 answers
I'm building a web based vehicle tracking and monitoring system using php, javascript, mysqli server, html5 and google maps. Because I will not be using an actual GPS receiver, I need to find ways on how to retrieve tracking details and store these details in my database and later will be able to view these details. Please I really need your expertise advice.
Relevant answer
Answer
1) You can use wireless technologies for the vehicle to sense its location.
-Satellite: GPS, Glonass and Galileo. Now available on chips, always cheaper, e.g. Sony GPS chip
-Cellular: Mobile telecom operators locate mobile phones or other mobile devices through triangulation between Base Stations. Sometimes, vehicles may travel out of the mobile network coverage area, then you have to use other techniques or extrapolate (anticipate, and later correct if needed)
-WiFi: in urban areas, you can sense the wifi networks around you and deduce your approximate location from these (fixed network operators know the precise location of the broadband access points they supply, and a wifi network needs fixed connectivity from a broadband connection point, unless it has a mobile feed ("Mi-Fi").
2) If you have none of the above, you may still use another innovative technique, which may be less precise.
Sense the received signals in the radio bands FM, AM or other from the vehicle. Sense the TV signals in the TV broadcasting bands. Then you can deduce an approximation of the current location of the vehicle.
3) None of the above is available.
You can still use the old-fashioned marine navigation techniques, looking at the star positions on a clear night, and at day time you can track the apparent movement of the sun, and use a compass from the vehicle.
Does it help?
  • asked a question related to JavaScript
Question
8 answers
What do i change in the text document when i get the error
"Reading from text file 'trial.txt'.
Problem with the text file: Line 1 contains less than two entries:
LM=7
Note: A frequent reason for this problem is that the file contains delimiters other than commas or tab stops.
Errors occurred in the reading process.
The new dataset could not be created."
Afterloading the .txt file into the morphoj software.
Thanks,
Nelly
Relevant answer
Answer
This problem is normal when you are trying to open a file that was digitized in TPS Dig in MorphoJ and when you are creating the project, you DID NOT select the option TPS in filetype...
By default MorphoJ when you create a new dataset the filetype is text, change it for TPS and the problem should be solve!
  • asked a question related to JavaScript
Question
9 answers
Could anyone give me some tips or codes to enlarge pictures and open them in a new window using programming language/JavaScripts codes with HTML and CSS?
Relevant answer
Answer
You can manipulate an <img> through the same DOM API as you would any other html tag
  • asked a question related to JavaScript
Question
4 answers
selenium used for web testing. Is it better or Mocha javaScript tool is better.
Relevant answer
Answer
Hi
this link is useful
List of AJAX Automated Testing and Debugging Tools
I think  OpenQA and Selenium are the popular testing tool that it is today. Selenium helps with functional testing of complex AJAX apps, but there isn’t an equivalent for load testing,  BrowserMob, a new type of load testing service.
  • asked a question related to JavaScript
Question
8 answers
I am on Linux platform with MySQL NDB 5.7. I am trying to monitor all traffic related to MySQL clustering – between data nodes, management node and sql nodes. To that end, I used netstat to list all open ports listening on my machine before starting MySQL cluster. Then, I started MySQL cluster and ran netstat again. I assumed that the ports that were listening the second time around, but not the first time, were related to MySQL clustering.
But there are two problems with this. First, there could be ports opened by other processes between the two netstat runs. Second, MySQL might open other ports after I ran the netstat command the second time.
What is the best way to go about finding all ports being used by MySQL for clustering purposes?
I believe ephemeral ports are picked dynamically, so perhaps if I knew all the MySQL clustering related processes that would be running, I can figure out every port that they are using. Pointers will be very welcome.
Relevant answer
Answer
Hi,
I'm not sure to fully understand your question, but it wonder if you are not mixing several concepts.
Indeed, unless a an application runs with root privileges, it cannot open or close a port itself. Ports can be opened or closed at the OS level, for instance using its firewall UI. In other words, MySQL (or any other app) doesn't need to run for its related ports being open or close. In fact, MySQL will not be able to run properly if the port(s) it uses are not open before it is launched. Thus, checking if ports are open or close will probably not be a solution for you. If I'm right (but again, I'm not sure to have fully understood your question), you need to check the traffic on the (open) ports. A right tool to do this is tcpdump. You'll find several examples around, for instance at http://superuser.com/questions/604998/monitor-tcp-traffic-on-specific-port
Hope this helps.
  • asked a question related to JavaScript
Question
2 answers
Recent popularity of design frameworks in all aspects of web development creates numerous JavaScript libraries. AngularJS seems to be such kind of framework. How a developer can prepare a recipe to accommodate all the good components.
Relevant answer
Answer
I suggest you have a look on NodeJS APIs and Electron Framework supporting by GitHub if you are thinking how to handle your requirements yet.
I found them very useful and currently, I'm developing a software based on Electron and if you need help, just contact me.
  • asked a question related to JavaScript
Question
6 answers
I want to convert the audio file to a text file in java i.e first the audio file will be played and after it is played it will copy the lyrics into a text file, and vice versa, in java. But, I don't know from where I will start it, so, can anyone tell me how to do that?
Relevant answer
Once you have your Base64 encoded string audio file, you can decode it to a byte array using Base64 Java class as follows:
String content = new String(Files.readAllBytes(Paths.get("path_to_your_base64_encoded_audio")));
byte[] decoded = Base64.decode(content);
From now on your byte array stores all the required info to be played if you want so.
  • asked a question related to JavaScript
Question
7 answers
Hello Community,
I'm not very familiar with these kind of tasks and my web development skills could also be better. If anyone is familiar with how to get the source code of an external web site using jquery, javascript, ajax or whatever it would be very cool! :-)
The situation is as follows: I have a list of URLs that were built using a CMS. To the CMS, however, I have no access whatsoever. The previous task was to move all the images by Drag&Drop from an old destination to a new one. Since I'm sure that a lot of images were skipped, my idea was to search the source codes for each occurance of "<img" until a ">" appears. Then within each of these substrings I would search and test whether the new path is missing, and if so, I would list the image name and the page it appears on. That would facilitate the task of checking for forgotten images a big time. My idea was to obtain the source code of these URLs as a sting-variable and fill it into a text area within an html form. Then, once one site was completed, it would do the same for the next page, and so on. The problem with this method (php) is that it requires that the site is refreshed after loading each source code. Maybe some javascript method would be faster?!
I would also appreciate other, maybe less awkward ideas. Also if anyone could hint me to some code snippets I would be very happy.
thanks in advance,
Martin
Relevant answer
Answer
If you have a bunch of URLs and you have PHP, then a quick 10 line script will give a simple solution.
- Loop through the URLs
    - Use file_get_contents to read each webpage into a string (the scrape!)
    - Use preg_match_all to seek the tags within the string (pattern matching)  
    - Display / log matches
- Continue loop 
This may need to more "stuff/tweaking" depending on the scale of the problem (how many URLs have you to got to check?)
  • asked a question related to JavaScript
Question
2 answers
Hi all,
i'm currently fiddling around with hashfunctions in JavaScript. Allthouth there are some implementations for Blake512 and Blake32, i could not find any implementation for Blake256. 
After comparing the definition of Blake256 with some Blake32 implementations, i'm wondering if there is any difference between those two at all. Or is this just two names for the same thing?
Best,
  Marc
Relevant answer
Answer
  • asked a question related to JavaScript
Question
3 answers
I am working on visual analytics (VA) topics. One key aspect in VA tools is to combine data visualization with data analysis algorithms (e.g. machine learning) in a highly interactive way. I am specially interested in interactive dimensionality reduction (DR), where the user steers a DR algorithm evolving in a "free runing" mode, whose intermediate results are continuously visualized "during" the convergence, resulting in animated views.
Such approaches are very computationally demanding, since many data have to be processed many times per second, to achieve a fluid dynamic visualization. This requires that the computation is done in the client, to avoid the overhead of communication with a server.
My best guess at this moment is numeric.js, but seems not to be currently under development (last version is from 2012). Am I missing any hot newer library for numeric and matrix computation in javascript?.
Thanks!
Relevant answer
Answer
You can also take a look at glMatrix and math.js.
  • asked a question related to JavaScript
Question
6 answers
I mean to collect the function calling, memory and cpu usage information of a running java application. Are there some existing open-source tools to achieve this? 
Relevant answer
As Youssfi Mohamed mentioned, you can use JConsole or even you can use the functions that JVMTI provides to monitor and manages the JVM directly.
  • asked a question related to JavaScript
Question
1 answer
Can anyone advise me on how to use MorphoJ for geometric morphometrics on a Windows 8.1 laptop that has refused to instal Javascript?
Also, how may I use tpsDig and tpsUtil for other fish species such as of the family Carangidae without the constraint of Stickleback and Poecelid templates?
Relevant answer
Answer
Dear Mohammad,
I'm affraid you'll need to first resolve your Java problem if you want to use MorphoJ.  On the MorphoJ site, it is specified that " All you will need to run it is a recent Java Runtime Environment (minimum Version 6.0) for your operating system, which is available for free from http://www.java.com (Windows and Unix/Linux) or comes with your operating system (Mac; users of OS X 10.5 may have to upgrade to version 6.0)."
About your second question on Carangidae morphometry, I'm not sure to understand well your question and I suggest you to contact me privately as I have recently performed to (still unpublished) work of the mophology of juveniles of Carangidae.
Best regards
Dominique
  • asked a question related to JavaScript
Question
1 answer
Embedded system programming.
Relevant answer
Majority of the microcontrollers are programmed in embedded C (It is very similar to C). But you can't program a microcontoller in java.
Reason:
The difference between a language like java (or c#) and a lower level language like c or c++ is the fact that they have a virtual machine. This has many advantages, like making the application platform-independent. But it also means that each platform has to have the vm for it.
Now, microcontrollers are not uniform and vary in power, memory, and many other features. So adopting the JVM (java's virtual machine) for them is not easy even when possible. Most of the time its just impossible - most of the microcontrollers have very low memory capacity (part of what makes them cheap) - this would make fitting any general-purpose JVM there impossible, not to mention also with the application code.
  • asked a question related to JavaScript
Question
2 answers
Does anybody know how I include the Encog library to use in my own project? An example would be great.
Relevant answer
Answer
I found the following tutorial:
I hope it helps.
All the best.
  • asked a question related to JavaScript
Question
4 answers
My purpose is to process optical as well as sar for standard operations like projection,   decomposition etc and mainly implement few of my algorithms.
I have some preliminary knowledge of Java and am totally new for Python. Some site suggest that Python has better references and Java is hard to implement in many cases. Some suggest using Java binding. I am a bit confused.
Which binding do you prefer for me?
I am a windows user.
Relevant answer
Answer
Hi Bhoj,
I vote Python as well, though I don't know anything about GDAL Java bindings. I'm not entirely won over by the Python bindings either, though. What I typically do is call the GDAL tool I want from the command line; I do that from within a Python script using the subprocess.call function (see https://docs.python.org/2/library/subprocess.html). A little example of doing it this way is in the screen capture.
Note: the question is tagged JavaScript, but that's a totally different language :)
Cheers,
P
  • asked a question related to JavaScript
Question
3 answers
The bottom hole pressure rise in injection wells.
Relevant answer
Answer
Check the salinity and water contamination. It might be due to blocking some pore throats. There is always fracking by the way. It might not be due to pressure, but thermal fracking is mostly there due to contrast in temperature between formation and injected water. Did you increase the water temperature during the injection process? Also, like Dr. Hassan asked, are you injecting under fracturing conditions? If you are, then any decline in pumping pressure will result in closing these fractures and thus decline in rate and increase in bhp occurs. I am assuming you saw some decline in injection rate. If you do not, then it might worth it to check your instruments. I highly recommend you start using Hall Plots for your injection. Once you generate the Hall Plots for your wells, try to check if the issue is with one well or all wells (I am assuming you are using central facilities water injection), then at least you will start realizing if the issue is with the water or the well. Also, for each well decide if the decline is abrupt + skin or gradual + skin. If gradual for a well then you might want to check your well for scaling .. etc issues that result in decline in pressure and thus injection rate .. etc
Good luck
  • asked a question related to JavaScript
Question
1 answer
I would like to add “new lives” to Petri Net diagrams that were published between 1962 – 2014. The Petri Nets with “new lives” would combine the published Petri Net diagrams from the past with JavaScript codes and supporting graphics to create interactive and dynamic Petri Nets in PDF. In other words, the revival creates token game versions of the Petri Net diagrams in PDF.
I am limiting the number of Petri Nets to a maximum of two per year.
Question 1: Which Petri Net diagrams should I include? Why should I include them?
Once I have finalized the list of Petri Net diagrams to revive, I am hoping to finish the work as soon as possible. So before I begin, I will be looking for volunteers who are interested in adding “new lives” to the Petri Net diagrams. I will  create at least two token game versions. Thus I will be looking for a maximum of 102 volunteers – one person per token game version. If there are less than 102, I will create the difference.
Question 2: Would you be interested in helping out? If so, please give me a shout.
- john
Relevant answer
Answer
Hi John,
Subject to your case scenario and system dynamics the embedded Petri Net System may  be relevant.
Best regards 
  • asked a question related to JavaScript
Question
2 answers
I’m planning to investigate number of benign/malicious JavaScript files. I read about various methods for JavaScript code analysis (Static and Dynamic) and I want to use ADSandbox for executing these files.
Relevant answer
Answer
  • asked a question related to JavaScript
Question
5 answers
I need your urgent help to fix this problem in web design, please.
I need to open an image with a new separate window larger than the original using JavaScript only and only without JQuery Just Html and JavaScript.
Relevant answer
Answer
new_span.append('<a id="imglink" href="'+ new.link +'" target="_blank"><img src="' + new.url +'" height="" width="" /></a>');
$('#imglink').click(function() {
window.location = $.myURL("index", $(this).attr("href"));
})
  • asked a question related to JavaScript
Question
9 answers
I want to make a navigation menu for website using CSS codes + HTML + JavaScript
Relevant answer
Answer
hello,
here is my code: it has a header with 2 images and gradient (CSS3 multiple images are used not forget to change image sources) and right below there is a menu with transition effect on mouse over, home has a link, if you'd like to have other links just copy/paste the<a href="">...</a> inside the list, with appropriate links:
<html>
<head>
<style type="text/css">
#header {
width:100%;
height:300px;
background-image:url('sun.png'),-moz-linear-gradient(to right,rgba(255,0,0,0),rgba(255,0,0,0.7)),url('1.jpg');
background-image:url('sun.png'),linear-gradient(to right,rgba(255,0,0,0),rgba(255,0,0,0.7)),url('1.jpg');
background-repeat:no-repeat,no-repeat,repeat-x;
background-position:right,left,left;
}
#menu {margin-top:20px; width:100%; height:100px;}
ul li { display:inline-block; margin-right:10px;padding:10px; background-color:gray; border-radius:5px;float:right;
-moz-transition:all 0.5s ease-in-out;
transition:all 0.5s ease-in-out;}
ul li:hover {background-color:red; border-radius:15px;}
</style>
</head>
<body>
<div id="header">
</div>
<div id="menu">
<ul>
<li><a href="">HOME</a</li>
<li>ABOUT</li>
<li>GALLERY</li>
<li>NEWS</li>
<li>VISITS</li>
</ul>
</div>
</body>
</html>
  • asked a question related to JavaScript
Question
3 answers
can I use sql with php , javascript , css , html? 
Relevant answer
Answer
if you mean mysql (by sql) y can do it using querries:
now in javascript you can't do that --> you need to use ajax
html and css are for web page creation and design only u must use php (<?php ..... ?>.
  • asked a question related to JavaScript
Question
5 answers
I would like to write client-side scripting to enable an offline web page to store data, but I understand there are restrictions on file access for security reasons. Is there any way of creating and managing a client side database using javascript?
Relevant answer
Answer
You can use pouchdb to use a database embedded in the user’s browser. It’s capable of synching with a CouchDB instance. It abstracts the differences between Web SQL and IndexedDB and wraps them in a single interface - so you can use it with any browser which supports either one of those. Beware of size limits and browser versions which support it: http://pouchdb.com/faq.html
Another and option without limits is to use Adobe Air to create native applications. By using it, you can create crossplatform javascript applications (online and/or offline) but with extended features (menus, access to local files within app's directory etc). That's probably the best option. Here is the reference: http://help.adobe.com/en_US/AIR/1.5/devappsflex/WS5b3ccc516d4fbf351e63e3d118666ade46-7d49.html
  • asked a question related to JavaScript
Question
2 answers
was wondering how to implement Javamail API to send an email using SMTP protocol. l managed to send a mail in java but the same code is not working in android the application is saying error force to close yet l included all permission required. any help please thank you !! ?
Relevant answer
Answer
Try using this port of the javamail API:
Also make sure that you're sending emails in a separate thread.
  • asked a question related to JavaScript
Question
4 answers
Or is the calculation done manually?
Relevant answer
Answer
Good luck, Tolu
  • asked a question related to JavaScript
Question
4 answers
For the above question, how to retrieve the hash for the specified image?
Relevant answer
Answer
If you suspect that someone can maliciously tamper an image, you may want to watermark it. Watermarking techniques allow one to modify the pixels of the image so that the changes are not visible to the naked eye, but at the same time they embed enough information to check if the image has been tampered. Plenty of techniques are described in literature (try searching "image watermarking tamper detection" on google scholar).
  • asked a question related to JavaScript
Question
5 answers
I need codes to open a small picture by click on it to open it in a new window using Java Script and HTML codes + CSS styles.
Relevant answer
Answer
Do you really need to open a complete new window (browser window) or just a floating box containing this image, bust within the active page?
If you really need to open a new window which will contain this image, you can use just JavaScript like this:
window.open("http://www.your-site.com/images/picture.jpg", "Window Title", "width=500, height=450");
That will create a "popup" window with the picture.jpg image. The windows's size will be pre-set to 500x450px.
If, on the other hand, you need to open a "box" with that image within the same page, you can use this approach:
HTML:
<a href="#" onclick="showMyImage();">Click here to open this image</a>
. . .
<img id="image-holder" alt="">
CSS:
#image-holder {
  width: 500px;
  height: auto;
  position: absolute;
  left: 300px;
  top: 200px; /* Or perhaps different coordinates */
  display: none;
}
JavaScript:
function showMyImage() {
  var img = document.getElementById('image-holder');
  img.style.display = 'block';
}
This is the most basic it can be. Of course, you can make it more sophisticated and more generalized.
  • asked a question related to JavaScript
Question
13 answers
It is a classification of JavaScript code in malicious and non-malicious classes.
Relevant answer
Answer
Hi,
There could be many reasons. one maybe because svm generally likes pre-processed data, same as ANN, like normalized in some way [-1,1], but RF can handle raw data better.
Check the guide to svm usage:
where they show poor usage can make a large difference (>20%) in performance
  • asked a question related to JavaScript
Question
1 answer
Does anyone have experience attaching glycosaminoglycans (CS, KS, HA, HS) to GE Healthcare Epoxy-activated Sepharose 6B beads? Thanks.
Relevant answer
Answer
I would recommend biotinylation of GAG chains and coupling to Streptavidin. In our hands, that worked better than Epoxy-activated Sepharose. You may have more structural flexibility of the GAG chains using a linker like Biotin. This may be very important for the interaction of the GAGs with proteins...
  • asked a question related to JavaScript
Question
4 answers
I have localhost java server. I haven't used node.js, servlet, JSP, glassfish server, tomcat server or apache server. This server uses TCP/IP connection to connect to javascript trough websocket (HTML5). I can pass data like (abacd,1234,xyz etc.) from this java server to Javascript and display HTML (as web application).
Now I want to transfer ProtoBuf data from this java server to javascript/HTML5 .
I think I can serialize the data in java side but couldn't figure out how to deserialize in javascript side..
Any links, examples, guidance will be highly appreciated.
Relevant answer
Answer
Try to serialize your data in JSON form. In this case you should only use eval() js-function to translate your JSON-data to javascript array or object.
  • asked a question related to JavaScript
Question
4 answers
I want to pass data from Java to JavaScript . I have tried to do this with applet but I don't trust it. What would be the simplest way to solve this problem?
Relevant answer
Answer
Your Java application can be a stand alone client program, or a server side Servlet script. Wither way, it binds a ServerSocket (a TCP listener in a way...) to a certain port.
Your application which uses socket.io for javascript connects to that Java application, opens a two way stream (binary or text) and then your end-points communicate.
Your JS app sends JSON (as Alexis said - the best way) data to the "server app" (your Java application) and it does something with it and responds through the stream by writing to it its response JSON data. This data is received by the JS in the user's web browser, parsed and interpreted by the JavaScript message handler you've written for any kind of message the Java app can send it and so on in an infinite loop... network communication between Java and JavaScript.
  • asked a question related to JavaScript
Question
8 answers
I have a localhost server written in Java and let's say it generates data continuously. My purpose is to send that data to JavaScript. I want to use that data for a web application. I have been looking at AJAX/Jquery, LiveConnect, etc. but couldn't find any correct direction. Can anyone suggest something?
Relevant answer
Answer
You may also try JSON. From your Java program, create a JSON object where you are going to write the data and from your JavaScript read it. I've recently worked in a project where I created JSON using PHP and later read it using JavaScript to display charts in d3js on a different site. It's quite straight forward and can be made work with Java too.
  • asked a question related to JavaScript
Question
207 answers
I want to know what is the programming language that people learn programming through? To make the aim of the question clear, please mention the name of the language only. I just want to make a quick survey.
Relevant answer
Answer
BASIC --- around 1982, using Sinclair ZX spectrum, Amstrad CPC
Z80 Assembly Language --- using the same Sinclair ZX Spectrum
PASCAL, FORTRAN --- at undergrad, 1984-1988
8086 (x86) Assembly Language --- at Undergard, 1984-1988
C ----- undergrad , 1988
C++ --- 1990, during MS degree
MIPS R2000 Assembly Language --- 1991
Open GL --- MS degree, Advanced Computer Geometry course
PARIS (on a Connection Machine, Parallel Instruction Set) --- 1992
Python, Java, Ruby --- 1993-97
C# --- 2008
Verilog HDL --- 2008 --- Hardware programming language, I am teaching it ...
TCL (Tool Command Language) --- I am teaching it in VLSI/IC design
Open CL --- GPU Parallel Programming --- 2009
CUDA (Nvidia GPU Parallel Programming Lang) --- 2009, I am teaching it ...
Apologies for the long list ! You asked !
  • asked a question related to JavaScript
Question
2 answers
Yesterday, I went to http://try.discourse.org, the new project developed by the Stack Overflow team. This project uses the EmberJs javascript Framework for requesting the content. And unfortunately my browser (Safari) sees the following error in the code:
TypeError: 'undefined' is not an object (evaluating 'PreloadStore.get("siteSettings").top_menu')
The consequence of this error is that no content is displayed; I have a blank page. The javascript error logically prevents the content from displaying.
My question is:
If javascript is disabled in my browser, I can see the content of Dicourse because of the <noscript> </noscript> tag in html.
But if I have javascript enabled and it encounters an error, I can see nothing.
So, in a web app development, is there a way to display the no script content or alternative content if the javascript app encounters an error?
Relevant answer
Answer
You can always put your javascript code in a try-catch construction. Where javascript will try to execute the code in the 'try' block and if an error occurs it will execute the 'catch' block.
  • asked a question related to JavaScript
Question
1 answer
Is it possible to collect data on a fractured surface?
Relevant answer
Answer
Please, clarify your question.
You can get a result with TOF-SIMS for just any solid surface. What do you want exactly? to get an ion image, a depth profile, a mass spectrum? What is an estimated area of analysis? thickness? etc.
  • asked a question related to JavaScript
Question
19 answers
I want to learn both CSS and Javascript but I am a little confused whether should I do CSS first or Javascript first.
Relevant answer
Answer
I agree: Learn HTML first, CSS second, and JavaScript third. CSS merely provides parts of your HTML with a non-default appearance. Think of CSS as a "coating of colored wax" over your HTML: It changes the appearance but it's "solid". Once you've applied the CSS, you're done. It won't change...
...until you use JavaScript, which can "melt the wax", "remove wax", and "add new wax", making your HTML and CSS "liquid", able to be dynamically changed based on current external conditions -- e.g., the time of day, user inputs, random number generation, GPS location, temperature, etc.
It's a little like learning the concept of numbers are before learning about mathematical operations like multiplication and division which can act on those numbers.
  • asked a question related to JavaScript
Question
22 answers
Java script access with databases.
Relevant answer
Answer
You could write a REST-based service using C# or Java and run it in a Web Container (IIS, Apache Tomcat). The REST-based retrieve data from the database (potentially using Hibernate or NHibernate so that it will not be necessary to write raw SQL) service would return the requested information to the client in JSON format (which can be parsed a lot faster than XML and JavaScript understands it - it sees it as a type of object). The service could be secured using OAuth authentication to ensure that only clients that you authorize are able to access it.