r/csELI5 • • Feb 10 '21

Does the angle with respect to the horizon axis change the way gravity affects the perception of the object's weight?

0 Upvotes

In my homework apeared this question

"Calculate the work, in Joules, that a person does if he pulls a cart with a force of 60 kgf to move it 7 m using a rope that forms with the horizontal an angle of 30 °."

How does the angle afect to the usual equetions? (Force = weight = mass * 9.8 m/seg2; and ; work=Force * distance)


r/csELI5 • • Nov 21 '17

csELI5 Print Utility Function on Epson WF3520

2 Upvotes

I've tried everything and can't find the Print Utility Function for my printer, Epson WF3520. I believe the ink jets are clogged. Can csELI5 redditors perhaps help? Thank you very kindly.


r/csELI5 • • Jan 22 '14

csELI5: FSA/DFSA/NFSA

3 Upvotes

I understand that they are used to describe a "language", but how will you make a diagram for something such as

{x ε {a,b}* | x ends with aaba}

and what is the difference between the three of them, as well as how as how to go from a diagram/graph of FSA <-> NFSA <-> DFSA


r/csELI5 • • May 14 '17

Why can't we just ask AI to generate a framework of rules as oposed to just making a decision?

0 Upvotes

So reading articles like this is getting fairly common over the last few years: https://www.technologyreview.com/s/604087/the-dark-secret-at-the-heart-of-ai/?set=607864

I understand that we can't get AI to tell us it's reasoning behind a decision very well just yet, and even if we could it most likely wouldn't make a whole lot of sense. So in a scenario where AI is making decisions on loans I see how it would be infuriating for the answer to just be “Yes” or “No” with no explanation on why or what I could do if anything to improve my chances. But I would have that same reaction if a random guy named Chad made that decision as well.

As an alternative could we not get AI to present a list of questions to be asked and weightings to be put against the answers so that we could determine the terms of the loan. No I understand that if we went this route we could end up with a seriously weird set of questions. Things like random high school grades for certain classes, have you ever visited the Grand Canyon? etc. could be in there. Then it might want to ask questions that were a faux pas such as sexual orientation.

But regardless of these missteps with the weightings we could understanding what the AI was placing value on. We’d have the ability to say to a Loan applicant that they weren’t successful and some insight into why. While that insight might be because they had never visited the Grand Canyon and could seem a little odd or insensitive it is still a justification.

In a wider context isn’t the whole reason behind the justice system is that we needed due process to present to all competent individuals looking into the system that there was a fair unbiased way of dealing with criminal activity? We just didn’t want Chad to come along and say guilty, because he was butt hurt that the defendant let his dog poop in his yard once 10 years ago.


r/csELI5 • • Jul 21 '15

What is a zombie process?

5 Upvotes

Can someone explain how this works to me? Also Could someone explain how wait() works to help prevent this?

EDIT: how does it differ from a orphan process?


r/csELI5 • • Apr 17 '18

ELI5 fabric.js and canvas free drawing

1 Upvotes

Hi y'all. I'm creating a project that involves making a app where users can draw lines with different style of brush strokes with the option of saving, changing color, and erasing them. I've discovered fabric.js and am interested in it since it can help me with the different colors and brush options, however I feel like i'm so stupid trying to figure it out.

I've been trying to follow one demo and two github projects to figure it out and I sorta get the basic javascript functions but I'm having issues making it run on my project. https://jsfiddle.net/jpenvose/w2ydw47y/

Heres the demos and github projects I've been looking at and attempting to build off of http://fabricjs.com/freedrawing https://github.com/tennisonchan/fabric-brush

Much appreciate the help!


r/csELI5 • • Dec 12 '13

Component-entity design

1 Upvotes

So, I had a friend looking at some code I wrote. He told me that for many of my problems, I was going about them all wrong; he suggested I take a look into component entity design. As he explained it, a 'component system' is just a container of behaviors and associated implementations - for example, a hash table with the 'keys' being the function names and the 'values' being pointers to the functions in question.

Well, I can see how that would be useful (add, alter, index, and if need be, completely disable behaviors!), but I'm not quite sure how to do it. And - to be frank, he was explaining it in terms of a roguelike I was working on.

So - can anyone help explain in non-roguelike terms what a component-entity system does, and what it's generally used for / what situations call for it?


r/csELI5 • • Aug 28 '17

Should I shift to comp sci

1 Upvotes

Hi, I am a 2nd year I.T student and I really like infosec and application security, and software development. It seems what I want is to build or create. If you read this blog post, com Sci is all about development http://www.computersciencedegreehub.com/faq/difference-information-technology-computer-science

Should I shift to comp sci,since I really like coding or any programming things.


r/csELI5 • • Jan 05 '14

ELI5: Normalisation

7 Upvotes

Functional dependencies, determinants, dependents, anomalies.


r/csELI5 • • Mar 08 '16

[C++] Adding .dll files to System32 and sysWOw64 and in Visual Studio/.../VC/lib

2 Upvotes

The Explanation (What I know so far):

 

I've been learning C++ for about 8 months now, and I've felt the need to really explore outside the range of console applications. So I wanted to start using openGL, but several startup tutorials require that I undergo the process of acquiring glew, freeglut, and/or glfw files.

 

So I get these folders and inside them is a structure that looks like this.. glew/bin/glew.lib, ../include/GL/glew.h, and ../lib/glew32.dll

 

I get 32 bit, and 64 bit versions of these files. I'm running 64-bit windows, on an x64 processor. So I opt to use the 64 bit versions. But honestly sometimes I really hesitate whether I really want to use 64 bit over 32 bit.

 

Then (what I believe is happening) I have to tell my OS that they exist and give the OS the ability to use them? Hence why the library's corresponding .lib files need to go into the System32 and sysWOw64.

 

Then I need to give MSVS access to those files as well, the include headers and dll files. So that when MSVS compiles everything it can include these dlls. And "magically" Intellij works with these files YAY!

 

The Question:

 

But I'm still very confused as to how the inclusion of header and dll files really works. I'm not at the point where I fully understand HOW and WHY I need to acquire these files and place them exactly WHERE they should be.

 

I've seen one tutorial place the dll and include headers inside MSVC's folder into VC/lib and VC/includes, while another tutorial placed those files inside their actual solution project. Is one way more correct over the other, does it really matter at the end of day since it all gets compiled the same anyway?

 

Lastly, I sometimes get the warning "module machine x86 conflicts with target machine x64" I'm aware of the different compile settings in project properties, but some further explanation would be nice. For example what's the difference between MSVC local debugger window set to "x86" vs "x64" vs "(Active) Win32"? I thought x86 was 32-bit anyway, why the need for Win32?


r/csELI5 • • Nov 12 '13

E: Looking for an algorithm

2 Upvotes

Hey all,

So I am doing this assignment for my first year Java class and I need to generate a random 8 char password that must contain at least one of the following:

  • upper and lowercase character

  • one number

  • one symbol (*&+%$@)

I am using a random number generator method to generate a random number in an ASCII table, so I can get a random password, but I am having trouble making it always contain at least one symbol. Is there an easier way to do this rather than a massive boolean equation in a do-while loop?

I couldn't find anything posted anywhere else. This one of my first reddit posts so let me know if I missed anything.

TL;DR Is there an efficient algorithm to make sure at least one symbol is contained in a group of randomly generated chars?


r/csELI5 • • Nov 07 '13

Best (most organized) way to set up my workspace/directory for coding? (Screenshots are welcome)

2 Upvotes

How do you guys organize your workspaces? Do you do one for each IDE you use? Each language? Do you just set up a folder on the desktop and call it workspace? Or maybe the Documents? I've always been confused by this. I usually just create a random folder in a random place.

Also, I'm not very good at organizing multiple projects within a workspace.

Any tips and suggestions are welcome. I am also using OS X as my main OS for programming. This may help in giving suggestions on how to organize my workspaces. Thanks!


r/csELI5 • • Dec 19 '14

GPU processing vs mainframe?

2 Upvotes

So I had this kicking around in my head the other day and I am not familiar enough with how either process data to have it be more than a thought. I know that mainframes are used for heavy duty amounts calculations, and If I am not mistaken that is primarily what GPU's were doing when people were using them for bitcoin mining. If this would be possible to replace a mainframe with what would amount to a batch of GPU's?


r/csELI5 • • Nov 19 '15

Hwang-Lin Merge Algorithm?

2 Upvotes

Hi,

I'm doing some research on k-way merging algorithms, and I'm first focusing on a 2-way (a binary merge). The most readily seen binary merge seems to be the one that shows up whenever my textbooks talk about merge sort.

I've heard the Hwang-Lin algorithm performs better, but I can't seem to wrap my head around it. Can anyone give me a simple explanation, and possibly a few sources I could look at?

Thanks!


r/csELI5 • • Feb 14 '16

please help me with some simple terminology(declaration, iteration)

2 Upvotes

I just want to use the terms correctly. I am taking a Data Structures class using C++ for reference. correct me where I am wrong.

You declare a function within a class in the Header file. You iterate the function in the class file. You iterate the class in the driver.

I suppose you could also iterate a function within another function right?

My understanding: declaration is basically your function prototype, or when you define a function, class, or variable. Iteration is when you actually use it.


r/csELI5 • • Feb 09 '16

CSELI5 : DHCP Server

4 Upvotes

Is it a server which gives PCs an IP? Also what is a DNS Server?


r/csELI5 • • Nov 07 '13

[Java] Instances of a class

4 Upvotes

I understand how to create the object but how do I pass (if that's the correct term) data to it? Especially if there are multiple data entries for one variable.


r/csELI5 • • Mar 14 '14

ELI5: Why use a black background for writing javascript/html code

4 Upvotes

Not sure if this is relevant, but I just got hired as a web developer. Don't have much experience but I noticed a large portion of the developers are writing code in notepad++ with a black background. I'm too embarressed to ask why, so can anyone explain if this commonplace/why if it is?

Edit: Thanks everyone for the answers. I figured it was just to make it easier on the eyes, but felt stupid asking about it.


r/csELI5 • • Feb 02 '15

Mathematical Induction

4 Upvotes

I tried, I really tried to understand my Algorithms 101 class during my comp sci degree. I tried to understand the analysis of algorithms therefore helping me to explain to others why one algorithm was faster than another.

And a lot of it seems to rely on this concept of induction.

I've watched youtube videos, I've read tutorial websites. But nobody seems to explain the crucial point, at which you're meant to "insert" your previous assumption like "n is divisible by 3" into "n+1". HELP.


r/csELI5 • • Aug 14 '18

What is stopping me from writing device drivers and kernels in python?

4 Upvotes

I have always heard that certain software like device drivers, kernels, and embedded system software needs to be written in low level languages like C. But if languages like Python are said to be turing complete, then what exactly is stopping me from writing this software in python? Is it just a performance issue rather than being impossible?


r/csELI5 • • Nov 12 '13

ELI5: [Java] Recursion

5 Upvotes

r/csELI5 • • Jun 22 '14

csELI5 Middleware

5 Upvotes

r/csELI5 • • Apr 26 '14

csELI5: Virtual Memory

5 Upvotes

I'm so confused and I'm having trouble connecting all the different components such as SRAM/DRAM cache, virtual addresses, MMUs, Page tables, Hits/faults, PTE, physical memory, etc. For practical purposes I'm focusing on 32-bit architecture. Thanks


r/csELI5 • • Feb 04 '16

What is a SAN?

5 Upvotes

Baffled by many of the terms I come across when trying to find out what a SAN is (Training to become a support helpdesk technician).

Cheers.


r/csELI5 • • Nov 04 '19

ELI5 what it means when software is referred to as "monolithic"

6 Upvotes

I have come across this twice now, once in industry and once at a workshop, and am unclear.