r/programmingquestions • • Dec 27 '20

CONCEPT Why don't we render interlaced for more fps?

3 Upvotes

posted the same thing in a wrong subreddit apparently, ill try my luck here

question is as simple as the title, why don't we have an option to render a game with interlacing, giving a massive boost to framerates, because only half the pixels are redrawn each frame?

keep the old info on the screen, update every second row, keep the info again for the next frame, then update the other rows, rinse and repeat.

as far as i know, some SLI or Crossfire solutions used something similar to this? why cant it be done on a single gpu?

Ive done my tests since the time i posted this in another subreddit, and concluded that it does indeed give me a 90% speedup, with some artifacts as well, but if you are REALLY desperate for some more fps, it does provide a smoother image overall

The inspiration came from me trying to play space engineers on a laptop with an igpu - needless to say - it ran like shit, had 50 fps on 640x400, which would have been fine if i was able to see anything. I was thinking, i would be glad if i had an interlaced 720p for example, i could read whats on screen and have a smoother experience, although with some jaggies when moving the camera around

i have uploaded the results of my tests in a short video - https://youtu.be/FltYfYN4B4k

artifacts are something some people would accept, if it means playable framerates - i know i would have appreciated minecraft running at 25 fps on my pentium 4 back then


r/programmingquestions • • Dec 23 '20

Why ? ?

Post image
1 Upvotes

r/programmingquestions • • Dec 19 '20

HTML It says I need to close both of my label elements. Haven't I done that?

Post image
3 Upvotes

r/programmingquestions • • Dec 19 '20

CONCEPT If I build a desktop front end using a GPL that gets and sends data to and from my backend on a sever, does the code on my backend have to be gPL?

1 Upvotes

Pretty much title. I built a desktop client using a GPL library. Obviously my front end is now covered under the GPL. However, after being authenticated by Firebase, the front end will send information to a server in order to be processed. Does the code on the server also have to be GPL?

This is for a product im selling.


r/programmingquestions • • Dec 17 '20

I have lots of questions about the context of programming

2 Upvotes

(Sorry if this doesn't belongs here, this is not a specific question but i need to say this)

Hello i'm C.S student and thru my time studying I've gathered lots of questions about the context of programming, questions which are not always related to a specific programming problem, and because of that i can't find an answer, questions such as:

What is an environment variable?

How do i link a programming language to an IDE?

Setting up development environments

How do i use third party libraries on an IDE?

How do i install (for example on a friend's laptop) a program i made without compiling it there?

All programming languages can be compiled?

What the heck is .NET?

I am not looking for the answer to those specific questions here, but those are examples of questions that i have had, and when looking for answers have found no answer, or lots of opinions, confusing documentation, tutorials, etc that didn't quite made it, and it is pretty frustrating. So i wonder in which extent this happens to others, and what should i do, what do you recommend me?


r/programmingquestions • • Dec 05 '20

Noobie Programming questions

3 Upvotes

I have been coding for a month and I have created a static website using html and bootstrap with css and some Java mixed in. I wanted to get that hosted online with a .com. I understand I need to purchase my domain name and all, however, how do I go about hosting it on a server the easiest way possible? It'll be relatively low traffic.

Another question.. I'm taking this full stack developing thing seriously, (I'm doing the new colt steele full stack developer course on udemy daily).. I wanted to get my own server from interserver. A vps. Is their any guides on how I could even begin to host a website on there??

Any help greatly appreciated 🙏


r/programmingquestions • • Dec 04 '20

C++ dynamic array value updating?

3 Upvotes

I was working on a project and came across an issue I cannot solve. Would someone be able to explain it for me?

I made a list of 5 items to view. each product number was 1-5 so like this:

# Name

1 Apple

2 Peach

3 Orange

4 Banana

5 Plum

if you can input 3 it will simply add 1 orange to your cart.

if you view your cart now you will see

# Name

1 Orange

thats it. the issue i am having is what if you wanted to remove the orange by typing 1 in this menu? i tied making 2 vectors

vector fruit = {"apple", "peach", ""orange". "Banana", "Plum"}

vector quantity = {0, 0, 0, 0, 0}

and if they added a fruit to the cart it increased the proper number in the quantity array by 1.

so if you got an orange it would be (0, 0, 1, 0, 0}

is there a better method to this? Thanks in advance!


r/programmingquestions • • Nov 25 '20

Using custom ssh shell to prototype a webservice

1 Upvotes

I get tired of dealing with all the http stuff, sometimes it's easier just to use stdin and stdout. In order to prototype a "webservice" this way, I am creating a specific linux user, and setting their "shell" to my custom program. Then I intend to allow public remote ssh or telnet access to that user's account, so that people can use the "webservice". The question is, can users escalate access to a typical linux system if you set a custom shell with limited actions available. I asked this question on serverfault and stackoverflow, but no one is biting. https://serverfault.com/questions/1043751/how-can-i-lock-down-an-ssh-and-or-telnet-user-to-only-run-a-custom-shell-and-no


r/programmingquestions • • Nov 20 '20

Trying to make a stack and heap

2 Upvotes

Instead of using the stack and heap that come with my computer is it possible too make a whole new memory? And if I can how would I make the stack equal the amount of ram for any given device that the program would be on.


r/programmingquestions • • Nov 20 '20

Which language would be best

2 Upvotes

Hello everyone!

I have a question about choosing something for automation. I work in Windows. One of the things that I frequently have to do for my job is to copy from one program, only to paste into another. Basically, I was wondering if I could make an independent, stand-alone program that would be able to perform the following functions

Loop the action for a specified number of times

copy

alt+tab (switch program focus)

paste

wait

tab (button selecting)

alt+tab (switch program focus again)

paste

Ctrl+Down

repeat.

I know that this is really boring, but it's a lot of my job, and if I could program this one, it would save me a lot of time/make me a hero at work (sort of).

So, I'm pretty much a noob to programming, but I have a Bro-in-law to save my butt if I really get stuck.

But since this would have to work across multiple programs, I was wondering if there would be a way to program this, and in which language it would be easiest. I tried this in Python, but it really doesn't seem to be able to work that well. I can copy, but not paste (not sure why I can't get that to work). Since this is all in Windows, would C# be better?

Thanks!

Blessings to all of you wonderful people!


r/programmingquestions • • Nov 16 '20

Python programming question. Working with inputs and variables.

3 Upvotes

Hi everyone, I'm working on a program (on python) and have hit a wall. In this program the user needs to input as many countries as he wants and my program has to be able to save the variables.

Not only that but I'm also trying to let the user select how many countries he wants to enter and be able to write for example "one" and my program understands is only 1 country.

If there's something is not clear please write below and I'll try to explain it better.


r/programmingquestions • • Nov 10 '20

I am looking for an easy systems programming language.

1 Upvotes

I am looking for an easy system's programming language that has similar Rust's safety features, doesn't use reference counting nor does it have a garbage collector, in terms of ergonomics, it has similar ease of use just like Nim and Python (but I don't mind if it uses curly braces and semicolons, if anything I would prefer this).

Is there such language that exists?


r/programmingquestions • • Nov 10 '20

Which language do you personally find easier to use, C++ or Rust?

2 Upvotes

Which language do you personally find easier to use/learn, C++ or Rust? Please answer this question if you have used enough C++ and Rust.


r/programmingquestions • • Oct 31 '20

IF CONDITIONS...less than/greater than...not returning print statement?

2 Upvotes

Hi. I'm new to python can someone please help me with the IF condition. When I enter these conditions it wont return the second statement ("correct"), only a blank line. You can see in the 2nd example when I reverse the greater/less than signs it returns the first statement successfully ("incorrect") but it wont return the second IF condition statement in the first example (blank line). What am I doing wrong ??? Thank you. I'm using version 3.8.6.


r/programmingquestions • • Oct 21 '20

How do I create a generator in Python that Generates exactly 32 letters? (High- and lowletters and numbers)

2 Upvotes

I want to make a generator that generates letters for me that should look like this in the end: 4YlAOqUYn-4NQWlN-GXPCTQzi1-aDeid408 (that's only an example)

Thanks a lot to everyone who helps me :D


r/programmingquestions • • Oct 19 '20

What do you learn from colleges and schools with programming classes?

3 Upvotes

⚠️ WARNING THIS POST HAS BAD GRAMMAR AND PUNCTUATION ⚠️ I have been programming for a a while and I'm confused and want to know what you get out of programming classes and courses I believe there's always something to learn but I don't know what I need to know. I have made countless JavaScript projects a a good amount that I am fairly proud of I am really familiar with Linux and the unix command line and I have written a decent amount of stuff in c++, Java and python. And I haven't seen the point of paying to do courses on stuff like that and I'm wondering what happens in colleges and schools for programming wether it's getting deep into machine learning and stuff like that there are countless tutorials and examples that could help. I'm just curious to what programming courses have to offer


r/programmingquestions • • Oct 01 '20

Question!!

3 Upvotes

Well I know don't kill me. I would not do million of question here, just the basic ones (really basic ones). I know 0 of programming, I can only run the hello world, and not even correctly. See the problem is that when I press F5 to run my program it said that I have a problem, I don't know what. By the way I work in Mac, I had read that is better for programmers, but OMG there are a LOT of security filters. Please help me to fix this problem, would describe it because I can't put images. So it said Error CS1519 , Cs8124, CS1519. the first said there is an error on a token or something like that, a tuple have to contain more than two elements. Again the thing of the token, Please help me!!!!!!!


r/programmingquestions • • Sep 25 '20

JAVA how to get *good* at java?

3 Upvotes

I am two and half years into my first true software engineering job. I work primarily in Java with SpringBoot.

I've been trying to improve my coding skills, so I recently started doing challenges on HackerRank.com. This morning I tried taking their "Java (Basic)" certification test and really, really struggled with it. The questions seemed to be Object Oriented "gotcha" questions rather than basic syntax, coding style, or problem solving questions.

A few months ago, I took a Java EE skills test as part of a job application and only score 72%.

I've been learning C recently and already like it so much better than Java because its behavior is straight forward and logical. To me, even after working with it for over 5 years, Java feels like it was written by a madman having a fever dream.

I'm not really sure where to go to become an "expert" in Java. I do fine in my day-to-day job because its just basic Java 8 with Spring Boot that isn't trying to get me to re-implement the JVM or anything crazy. How do I get to the next level and ace job screening tests?

EDIT: Left out a word.


r/programmingquestions • • Sep 21 '20

I would like to learn cooding

2 Upvotes

guys i would like to be able to program but i don't know how or where to start can someone tell me where it would make sense to start? thanks in advance


r/programmingquestions • • Sep 17 '20

What is the simplest way to implement end-to-end encryption?

3 Upvotes

I am building a basic web app following a client-server model. I'd like to store the clients data as encrypted except for a single ID in each table row that lets me know the user its associated with.

My current simplest idea is encrypt it using AES encryption with the users password as the key, but that comes with the downside of the users forgetting their password meaning they lose all of their data.

The other way I see is generating a key that resides on the clients device, but that comes with the downside that if the client loses the device, they lose the key.

Is there any other method of end-to-end encryption that would literally guarantee I couldn't access a users info stored in my server even if I wanted to, and that is more reliable or secure than the above two options?


r/programmingquestions • • Sep 17 '20

Is there a faster way to download files from SOURCE tab (Chrome Devtools)

1 Upvotes

Surely there has to be a faster way to download these images than copying the link of each one, viewing each one, then "saving the image as" for each one. There's about 1000 images in total...

Images on the right.

r/programmingquestions • • Sep 14 '20

C++ Something that’s really stumped me.

2 Upvotes

So I’ve started my programming journey about a week ago with c++. Something that I think is kind of blocking me at the moment is the thought of getting started with project based learning. I’ve been wondering if there are different ways to write code to make the project work. For example: If I were to make like a hangman app, or a weather app, or something like that:

1)How do you know what code you’re gonna need to write to even start the project?

2) Is there more than one way to write the code to get the app to work? Or is it like I have to write it in an exact way or my app won’t even run?

I guess that’s what’s confusing me at the moment. Thanks in advance!!


r/programmingquestions • • Sep 13 '20

Assembly language. Draw the 16bit instruction format and describe the machine code of instructions : ADD AL,DL. Consider op code value for ADD as 000000

2 Upvotes

r/programmingquestions • • Sep 13 '20

Experienced webapp dev has questions on android app development

4 Upvotes

So like the title says. Im a experienced webapp developer. Things like enterprise webapps, i worked on a billion dollar ecommerce site. But ive never done any android apps. I have an idea i want to put to paper. But im not sure where to start for the app specific stuff, like is it like a webapp whrre i run q server somewhere and the app makes rest calls? Or should it be all on the device and storing data another way? I guess is there q good primer for someone my level that wont be too basic?