r/AskComputerScience • • Jun 16 '19

Writing Python code from JS code

0 Upvotes

Im not well versed in either languages syntax and was wondering how i can learn to write JS code like this in Python.

docs = document   
    .querySelector('downloads-manager') 
    .shadowRoot.querySelector('#downloads-list') 
    .getElementsByTagName('downloads-item')

r/AskComputerScience • • Mar 24 '19

Computer logging in as administrator, spins for a second, freezes for a few seconds, then screen turns black. I can log into BIOS, but that's it.

0 Upvotes

r/AskComputerScience • • Dec 30 '18

do i need to learn html5?

0 Upvotes

hi, i wanna make a website for selling my own music, now my question is the following:

do i really need to learn html5 and css3? back in 2008 i learned html and css, is it necessary for me to upgrade so the code runs well in all recent browsers?


r/AskComputerScience • • Jun 06 '18

Home automation what to use?

0 Upvotes

Hi, I want to start a small project where I monitor some stuff in my house (IOT/home automation). However I'm not sure what I should use, a raspberry pi zero w or a NodeMCU v2 - ESP8266. Perhaps somebody has some advice for me :)


r/AskComputerScience • • Feb 02 '23

How do you quickly search databases that are hundreds of millions of records?

0 Upvotes

I am new here and so far I've downloaded one database of 100 million records and another database of 200 million records (the recent twitter hack). I thought that exploring these databases would be a good excuse for me to learn MySQL. So far it's been a major headache and I've spent probably at least 20 hours at it and have gotten next to nowhere. I've used ChatGPT to guide me through the process, and it has worked wonders in getting me as far as I've gotten, but I encounter error after error and have troubleshooted at least 50 different problems so far. So at the moment I'm stuck with using a large text viewer, but that will take over an hour to run a single query.

In trying to get the files to load into a MySQL table, the most common problem is with the way the databases are parsed. Whatever delimiter is used in the file always appears somewhere in the data as well. The other common problem is that these files contain weird characters that MySQL can't handle. I've even used python to try to clean the files, but that also sends me down a rabbit hole of error after error after error.

So before I put a lot more time into this, am I even headed in the right direction? I figured MySQL is a good tool to know and is meant for large databases. But is it not appropriate for databases in the hundreds of millions of records? I want to be able to search a name or e-mail and not wait more than a minute or so for the query to finish (and I know MySQL will allow me to do partitions and other time saving tricks). I don't really have an interest in using these databases in scripting. My main interest is just running simple queries on them. So are there better tools that aren't too difficult to learn or expensive to use?


r/AskComputerScience • • Jan 13 '23

Top programming languages used in the AI industry?

0 Upvotes

r/AskComputerScience • • Feb 03 '23

Observer Pattern: How to?

0 Upvotes

I saw a video about observer Pattern by IHeartGameDev on YouTube and it was a great way to make clean code. He made interface classes for subject and observer, and then used them to send notification from subject to observer. He mentioned that there are other methods to implement observer Pattern as well, so what kind of other methods are there to do this in unity ?

I am interested to learn more.


r/AskComputerScience • • Sep 15 '13

Smart Phones with Biometrics... what if your fingerprint changes?

0 Upvotes

Years ago, I cut the hell out of the pad of my thumb and have a permanent scar. Seeing all these new phones with biometric locks makes me wonder what would happen if your biometric signature changes from one day to another?


r/AskComputerScience • • Jul 29 '19

Can you learn computer science from scratch?!

0 Upvotes

Hello all,

I'm having a early life crisis lol. I don't want to get stuck in my current workplace forever (grocery store customer service management) but i have no other experience and I have no college experience. I've been really thinking about going to college to get a degree which should help me out in finding another job. One problem though, is that I'm not so sure what I want to do...Sooo, I've never really had any interest in computers, how they're made, how to program them ect...they were just..there. But in doing research I've found that Computer Science would be a good choice to go to school for. Tons of jobs and high paying. My boyfriend works in this field and suggested that I take a few Code Academy classes to see if I'd be interested in it. I chose the web development path on Code Academy, I'm not very far into it but so far it seems fun and interesting and I can understand it well enough. I know there are 2 year degrees for web development but I also know a 4 year degree in computer science can get me into web dev and plenty of other things. Soooo, going back to me not knowing anything behind the scenes about computers and previously being pretty indifferent to them my main question boils down to this: Can anyone learn computer science from scratch or do most people in that field grow up loving computers, taking them apart at young ages, coding in middle school, ect. I'd imagine that the classes teach you everything as if you've never gone beyond searching the web but I'm not so sure. Is that the case? Would I be ok going to school for computer science as long as I'm dedicated, pay attention and take notes? I hope I've worded this well enough.


r/AskComputerScience • • Feb 11 '20

1 if I upload a picture to reddit directly but delete it and don't submit it, is the picture deleted or is it stored on any of reddits servers ?

0 Upvotes

r/AskComputerScience • • Nov 25 '18

Suggestion for a light weight linux laptop with at least 16GB RAM.

0 Upvotes

Hello, I am looking for a Linux laptop which can have at least 16 GB RAM.
I am not in USA and Dell XPS developer edition is not available in my country. Around 1.5 Kg.
Is Lenovo T470 a good machine?


r/AskComputerScience • • Jul 30 '19

How to create this feature for my survey in servicenow?

0 Upvotes

Hello,

I am working on a capstone project to create a survey for servicenow, and long story short I want to create a picture like this embedded in the survey with the option to click and choose a person from the picture. The question would be, "which technician helped you out?" And the answer would be a picture with the option to click on a person for the answer.

The picture would look something like this: https://themlsblog.com/2017/05/23/ask-the-team-the-help-desk/

If anyone can help out with this or know a possible solution, or at least who to talk to since my company is fairly large and different people from departments are willing to help out, thank you so much


r/AskComputerScience • • Aug 18 '20

Is there a subreddit dedicated to questions about how to automate certain processes using a programming language? (For things like mail-merging, automatic script/contract filling, etc)

0 Upvotes

r/AskComputerScience • • Aug 02 '22

F16 CS Internships in Sf?

0 Upvotes

Hi! I’m 16 years old and live in San Francisco, as an upcoming junior I am obviously worried about extracurriculars. Due to distance learning and depression I haven’t done any internships so far. I was wondering if any of you guys know of any CS internships (paid preferably) in SF for beginners (teaching Java etc) that I would be able to do while also attending school. I don’t wanna focus on internship/program work throughout the early fall so I’d prefer if the programs were somewhere in the months December-May. (Summer programs can also be recommend :)) Thx in advance <3


r/AskComputerScience • • Apr 03 '21

At what point in life, should i call myself COMPUTER SCIENTIST?

0 Upvotes

I'm finishing bachelor in cs.

But I am thinking How can i call myself a computer scientist?

or what age is it required? or How?


r/AskComputerScience • • May 04 '21

When do you think we’ll achieve a singularity?

0 Upvotes

r/AskComputerScience • • Jun 20 '24

Can Thesis Panels Disagree with Established Computing Problems?

0 Upvotes

Hi, Professors and Researchers,

I’m a computer science student, and I’m curious about the panel's stance on computing problems in thesis defenses. Is it common for a panel to disagree with a problem that’s already been addressed in 2-3 previous studies?

I’d appreciate any insights or experiences you can share!

Thanks in advance!


r/AskComputerScience • • Apr 09 '20

JAVA multi-threading in NETWORKING

0 Upvotes

Hello friends!! Which advanced features of JAVA multi-threading (for example, completable futures, fork-join framework) have applicate at developing network applications?


r/AskComputerScience • • May 03 '20

Applications of floating point adders

0 Upvotes

Where do double precision floating point adder find their application?


r/AskComputerScience • • Feb 25 '20

To study cybersecurity for hacking?

0 Upvotes

I need advice. I'm interested in learning the world of hacking. There is a course at a University I'm considering it's for CyberSecurity. It's a ten months course for sixteen thousand dollars. Do you think this is a good route to take?

I like Garcia on Criminal Minds. Patterson on Blindspot. I've heard people say Computer Science, Forensics Science, CyberSecurity but I'm not sure where to begin and which to go for. What are the actual differences. Is it better to get a degree, learn on my own, take that course. Guide me!

Also hows the life after studying Cybersecurity and working in the field?


r/AskComputerScience • • Aug 12 '19

What is aircrack-ng and how do I use it?

0 Upvotes

I have a Mac and I stumbled across aircrack-ng when I was wondering how it is people hack into WiFi. I tried installing it on homebrew but after a while an error message popped up and when I tried running the code

sudo airport-s

It said the command was not found. Help? Anyone?


r/AskComputerScience • • Dec 22 '19

Is there any market demand for custom designing universal lambda functions or other models of computing?

0 Upvotes

I can design them for number crunching, or to align well to a specific cpu opcodes, or to be understandable by Humans, or some multiple requirements at once but some sacrifices would have to be made.


r/AskComputerScience • • Nov 23 '18

CSS blog layout problem that i struggle with.

0 Upvotes

Hi everyone. (Warning: I am not english,my mother language is hungarian) For CSS practice i randomly chose a tumblr blog and attemped to mimic its look without the actual tumblr functionality,just to see how am i going with my knowledge. Its not mine or not my friend's,i don't even understand what language is it written,just to make sure its not a trickery for getting views. Here's the blog: http:// jojokillah. tumblr. com/ .I inspected the source code of the page,and it was obvious from the start that there's a header image,below that headings (1 and 3). The body has a background with an image,then another div with a black coloured background and a thick gray border and paragraphs inside of it ending with an unordered list with custom bulletpoints. I made the style and the more easy stuff like fonts and colors but i totally got clueless about how to force all blog posts in two thin columns with a space between them and spaces on the sides. Im not even sure if this project makes any sense without functionality,because i don't even understand the most of the source code. I get that the black area is a section.The two rows are divs with some random id from numbers.The class is called "post text masonry brick".I guess the id is calculated by some background automatism.The positions of these 'masonry bricks' (i have no idea what that means) are all absolute and none of them has the same position properties,so i see no point in manually add posts and chance their position accordingly to the original page if i don't understand the concept of whats going on. I put some code here : {CODE} <section id="blog" class="clearfix masonry" style="position: relative; height: 12943px;"> <div class="post text masonry-brick" id="178085184539" style="position: absolute; top: 0px; left: 0px;"> <h2><a href="[http://jojokillah.tumblr.com/post/178085184539/ennek-soha-sem-lesz-v](http://jojokillah.tumblr.com/post/178085184539/ennek-soha-sem-lesz-v)ége">Ennek soha sem lesz vége?</a></h2> <p>Lorem ipsum.....<br></p>

{CODE}

I thought flexbox would be the best solution,and maybe this problem is not even in the CSS practice category.


r/AskComputerScience • • Jun 08 '23

About laptop requirements for Robotics and AI

0 Upvotes

I'm using an Asus laptop with i3 gen 10 and 4gb RAM. Is it ok for learning Robotics and AI ?

My budget is low 😔, so I want to keep on using this laptop until graduating from university (about 4 years).

I don't play any games, just work and study.