Computer Science
Subforums
-
Discussion of computer problems
- 434 posts
3274 topics in this forum
-
<html> <head> </head> <body> <script> i=0; for (i=0; i<100; i++) { document.write("."); setTmeout( null,100); } </script> </body> </html> I want to print 100 dots, after one dot, rest 0.1 second. I do NOT use to use the statement "setTimeout(function, s)"; I want to set the function to null, but it does NOT work, how to make it work as the function is null.
-
0
Reputation Points
- 2 replies
- 813 views
-
-
Hello there. So I was reading this blog (url deleted) and decided to fall into the field of web development, and I'm feeling a little overwhelmed by all of the options. I want to make a good strategy to guide my study, but I don't know where to begin. Can you help me figure out the best next steps? Here's what I'm thinking: What are the important steps I should follow to get started in web development? Should I learn front-end code, back-end coding, or both? What are the easiest programming languages and tools for newbies like me to learn? Can you recommend any beginner-friendly materials or courses that can help me get started? I'd be super grat…
-
0
Reputation Points
- 0 replies
- 586 views
-
-
Github has lots of artificial neural networks unlicensed/FLOSS Q: "What brain regions do albatrosses have?" Q: "How do birds have so much more intelligence per neural volume versus humans?" Q: "How to base artificial neural networks off us birds to allow to lower resource use versus ones based off of human cortices?" Q: "Goose and albatross process lots per neural volume versus humans, because birds evolved from dinosaurs and so had longer to optimize neural structures versus mammals, howto base artificial neural networks off of goose or albatross neural networks?" Q: "Modern artificial neural networks such as…
-
0
Reputation Points
- 22 replies
- 2.1k views
- 2 followers
-
-
I successfully implemented GJK. It is fast, but narrow phase is a bottleneck because i do GJK many times in the binary search. I read about the EPA, expanding poly tope algorithm. Question: EPA returns the point on the CSO closest to the origin. Does this point correspond to the edge/edge or vertex/face to collide first?
-
0
Reputation Points
- 1 reply
- 1.3k views
- 1 follower
-
-
will it works? The office XP is far cheaper than office 21. And what is the cheapest price to get a office 21 copy?
-
0
Reputation Points
- 4 replies
- 1.1k views
-
-
someone told me that --- How to change you IP address Windows 10: 1) Press the Win+R keys together to open the Run box dialog. Type cmd and enter. 2) Enter ipconfig /release (make sure to include the space) and hit Enter. 3) Type ipconfig /renew (include the space) and select Enter. Close the prompt to exit. Why it does not wok?
-
1
Reputation Points
- 6 replies
- 1.2k views
- 1 follower
-
-
i am going over the complex process of reading data from files. Let's start by studying a code sample that attempts to read data from a file: # Opening a file for reading file = open("data.txt", "r") data = file.read() print(data) file.close() At first sight, this code appears easy. However, a deeper investigation shows some subtle places for improvement: To begin, error management is an important part of file operations since it ensures resilience and dependability. This code sample lacks error handling tools to deal with probable difficulties like file not found or unavailable. Incorporating error handling logic into try-except blocks can improve code …
-
0
Reputation Points
- 2 replies
- 741 views
-
-
For example, when I create a new file or folder, it is logged, when I delete a file, it is logged, when I edit a file, it is logged, when I rename a file, it is logged, when I cut and move a file, it is logged, when I copy and paste a file, it is logged, anything altered is logged. Of course, the corresponding time is necessary. It will be great if it can automatically delete the old log after a specified time, e.g. 7 days, 15 days etc. Log with text is good enough, recording screen is costly, which will take a lot of time to watch and a lot of space to save. Is there such tool?
-
1
Reputation Points
- 11 replies
- 1.8k views
- 1 follower
-
-
Although impractical, what if? 2 by Randall Munroe has made me think: would it be possible to make a credit card scanner size device (e.g. a calculator) that read punch cards?
-
0
Reputation Points
- 4 replies
- 986 views
- 2 followers
-
-
What's the future of quantum computers? I recently watched a video by Neil deGrasse Tyson and Michio Kaku on which the latter claimed that quantum computers will replace classical computers since they are thousands if not millions of times more powerful. Do you agree with that assessment or not? Neither Tyson nor Kaku has any specialized knowledge of computer science, both of them have PhDs in different fields and likely don't know more about computers than an average science enthusiast. So they might be wrong... Or are they?
-
1
Reputation Points
- 3 replies
- 1.1k views
-
-
I have not saw an autonomous robot do work for us, just videos on Youtube that were possibly computer generated (of autonomous robots in factories.) Besides red tape problems that only politicians can solve, what problems to solve to have all goods (houses, vehicles, desktops, phones, foods) produced from autonomous robots for us? Howto program general purpose robos autonomous: Q: "Could you use bfs/dfs/iddfs to output codes for robos (such as Fanuc) to figure how to move servos to move the robos to perform a task or to produce for us, with the edges = servo motions and fitness function = desired outcome for us? Could you just have "max accelerate"…
-
2
Reputation Points
- 2 replies
- 891 views
- 1 follower
-
-
Take a box (e.g. a matchbox), filled with identical objects (e.g.matches, balls, …). Find a method to determine the number of objects in the box solely by the sound produced while shaking the box. How does the accuracy depend on the properties of the objects, the box, and the packing density? Is it possible to use a AI model to analyze the sound? If yes, How?
-
1
Reputation Points
- 3 replies
- 2k views
-
-
Hello Python community! 🐍. I'm exploring the fascinating world of interpreted and compiled languages, with a particular concentration on Python. Can somebody describe the fundamental distinctions between interpreted and compiled languages, and how Python's simplicity fits into the interpreted landscape? I'd also want to see some hands-on Python examples demonstrating its interpreted nature - any takers? As we negotiate the Python terrain, could someone give insights regarding the benefits and drawbacks of interpreted languages, particularly in the Python development community? What makes Python tick, and where may we stumble on our Pythonic journey? Switching gears to p…
-
0
Reputation Points
- 1 reply
- 520 views
-
-
Slightly off topic, but defeating quantum decryption is quite simple (human stupidity excepted) and the technique has been known since at least 1882. From Wikipedia In cryptography, the one-time pad (OTP) is an encryption technique that cannot be cracked, but requires the use of a single-use pre-shared key that is larger than or equal to the size of the message being sent. A couple of phones, each with say 64GB identical one time code storage and no ability to change the software without physical access should be fine for a few years of communication. For obvious reasons, adverts for increasingly powerful phones and encryption rarely mention this.
-
1
Reputation Points
- 15 replies
- 1.7k views
- 2 followers
-
-
Given an array of integers, find the length of the longest increasing subsequence. A subsequence is a sequence that can be derived from another sequence by deleting some or no elements without changing the order of the remaining elements. For example: #include <iostream> #include <vector> int longestIncreasingSubsequence(const std::vector<int>& nums) { // Your dynamic programming solution goes here. // Return the length of the longest increasing subsequence. } int main() { std::vector<int> sequence = {10, 22, 9, 33, 21, 50, 41, 60, 80}; int result = longestIncreasingSubsequence(sequence); std::cout << "Leng…
-
0
Reputation Points
- 1 reply
- 675 views
-
-
I am developing a web application using Node.js and Express.js. However, encounter a challenge with routing that involves choosing between using the core Node.js http module for routing or leveraging Express.js for the same purpose. Consider the following code snippet: const http = require('http'); const url = require('url'); const server = http.createServer((req, res) => { const path = url.parse(req.url).pathname; if (path === '/home') { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Welcome to the home page!'); } else if (path === '/about') { res.writeHead(200, {'Content-Type': 'text/plain'}); res.en…
-
0
Reputation Points
- 1 reply
- 755 views
-
-
Is ChatGPT trustworthy? Is it reliable? I have used it a lot in science and mathematics.
-
1
Reputation Points
- 17 replies
- 2.4k views
- 2 followers
-
-
For example, you could buy an AI that is an expert on the movie Dune. You could ask it any question and it would always do it's best to have a conversation about Dune and learn from what is told by the user base. It can gather statistics about what the audience thinks and catalog information on the Internet.
-
0
Reputation Points
- 8 replies
- 1.1k views
-
-
I'm using an online Java compiler for my project, and I'm encountering unexpected behavior in the execution of my code. Here's a simplified snippet: import java.util.ArrayList; public class Main { public static void main(String[] args) { ArrayList<String> fruits = new ArrayList<>(); fruits.add("Apple"); fruits.add("Banana"); fruits.add("Orange"); for (String fruit : fruits) { System.out.println(fruit.length()); } } } Despite the seemingly straightforward code, I'm not getting the expected output. What could be causing this issue with the online Java compiler, and how can I rectify it t…
-
0
Reputation Points
- 1 reply
- 745 views
-
-
in Truth Table, wiki https://en.wikipedia.org/wiki/Truth_table # Section: Applications of truth tables in digital electronics It says, "In digital electronics and computer science (fields of applied logic engineering and mathematics), truth tables can be used to reduce basic boolean operations to simple correlations of inputs to outputs, without the use of logic gates or code. " How does it work? That is only using Truth Table, without the use of logic gates or code.
-
0
Reputation Points
- 4 replies
- 1k views
- 2 followers
-
-
Note, this is not an assignment. Just something that I came across online. Say I wanted to determine if a path exists that will allow an electrical car to travel to every single city on an undirected, weighted graph, given a limited number of recharges. Note, it is not stipulated that the car ever returns to its original city (which I believe disqualifies this problem as a case of the traveling salesman). However, I do need to determine path, and path cost. Can Djikstra's algorithm be modified in order to solve this problem, and how?
-
0
Reputation Points
- 0 replies
- 502 views
- 1 follower
-
-
When programming, logging is an essential operation to find out what happened and why it happened. Especially in an application written on Linux and running on a server, without a GUI, whose output goes to a terminal / shell. I have created some basic C++ classes that can be useful in an application (C++, but they can be easily adapted to other OOP languages). Logs.Base is a virtual class without implemented methods. Logs.QuietLogs is implemented as a no-op. Simply put, nothing, quiet. Logs.Logs is implemented to write only about serious errors (Logs.Error() method implemented). Logs.VerboseLogs is implemented to write about errors a…
-
0
Reputation Points
- 0 replies
- 549 views
-
-
Hello, as much of you have degrees and some are even real scientists, I have a question. Do you often work with analytics? And if so, how do you think any analytics software could improve. so far, I have made a very basic plotting software. What do you think it should have more? THIS IS NOT AN ADVERTISEMENT! IT HAS NOT EVEN RELEASED AND MIGHT JUST BE A DRAFT!
-
1
Reputation Points
- 21 replies
- 1.5k views
-
-
Having been studying the mathematical basis behind so called AI I understand the term to mean that the output is basically determined by a suoer Markov process. That is the 'association' of words and phrases is determined by analysing the writings of humans for such associations and assigning probabilities on the basis of that analysis. That hopefully yields the most probable response a human would give to a specific input. Now my question is based on the fact that much of human writing is downright wrong. For instance Rayleigh's calculation of the age of the Earth, the theory of phlogiston and much much more, some more recent as we have abandon…
-
1
Reputation Points
- 8 replies
- 1.2k views
- 2 followers
-
-
How DNA computer works? Look at the photo, how it works?
-
3
Reputation Points
- 7 replies
- 1.6k views
- 1 follower
-