• Breaking News

    Thursday, September 3, 2020

    What game DEV library do you use and why? Ask Programming

    What game DEV library do you use and why? Ask Programming


    What game DEV library do you use and why?

    Posted: 03 Sep 2020 07:03 PM PDT

    Not looking for an engine like Unity, with a big editor. But I'd rather write everything from scratch, with the help of a nice library.

    What are your favourite game libraries for the current day? I'm looking to get back into game programming, I don't mind which language it is implemented for. I'm familiar with LWJGL for Java and have used that before for 2D game dev.. looking for something similar to that, and looking for any feedback you lot can give on what you may have used.

    Edit - experienced OOP programmer. Have worked with graphics and game libraries in Java and C++ before. With experience in many languages.

    submitted by /u/vysor99
    [link] [comments]

    My professor said that python and PHP are the only two languages with dictionary. So is Map and Dictionary different?

    Posted: 03 Sep 2020 05:49 AM PDT

    How to combine Node and Java in a single project

    Posted: 03 Sep 2020 07:02 PM PDT

    I'm trying to learn about the relative strengths and weaknesses between Java and Node. To do this i want to build a project that uses both to learn more about each and to learn about REST APIs. I was considering using node as a controller due to its faster through put, and Java for the model and database access since it can introduce latency which can be solved using threads.

    Any suggestions on how to better structure the project and the reasons why?

    This is a genuine question for my learning so please dont be too harsh. would also be great if there wasnt any bias. i want to know why one is better for a given situation.

    submitted by /u/ubercodet
    [link] [comments]

    ArrayList with capacity (new ArrayList<>(n))

    Posted: 03 Sep 2020 06:19 PM PDT

    So I am learning what Big O Notation is and found out that there is also Amortized Constant Time. So basically, if I am initializing an ArrayList without capacity, whenever I am adding to it, it will take O(n) as it needs to create a new array with +1 size then copy the old array to the new array then add the element while if I am initializing an array with capacity, it will only take O(1) to add and will take O(n) every time that I exceed the capacity.

    ArrayList<String> arr = new ArrayList<>(); ArrayList<String> arr = new ArrayList<>(10); 

    If I am wrong please correct me also what is the difference in:

    ArrayList<String> arr = new ArrayList<String>(); ArrayList<String> arr = new ArrayList<>(); 
    submitted by /u/jcarlo1
    [link] [comments]

    Trying to develop an app for mobile linux(Mobian) and need help

    Posted: 03 Sep 2020 09:26 PM PDT

    I have a scale that does all the tweaks listed on the Mobian page(below) using python gtk and subprocess package with python to run the bash commands. The app is basically a bunch of switches that turn on and off all the tweaks and just realized that I don't know if these tweaks are already on. So my question is do you happen to know of a way I can use Python/subprocess to check to see if these tweaks are already active?

    https://wiki.mobian-project.org/doku.php?id=tweaks

    submitted by /u/Hercislife23
    [link] [comments]

    Could someone write a script for Transmission (for Mac) that will cause Transmission to send an email when a file is finished downloading?

    Posted: 03 Sep 2020 02:59 PM PDT

    I have no idea where to start... all I know is that Transmission has the option of running a script when a download completes. I would like to set up something that says "FILENAME has finished downloading."

    Sorry if this is not a good place for this request -- if there's a better place to ask for this, please let me know!

    submitted by /u/Sr_Navarre
    [link] [comments]

    would making an app to track your rank in a game be a good beginner project to learn?

    Posted: 03 Sep 2020 02:29 PM PDT

    Or is that a bit out of reach for someone who is just starting out and trying to learn by doing his first project?

    submitted by /u/LMikeyy
    [link] [comments]

    Where to draw the line between View-Logic and Controller-/Service-Logic, example in the description!

    Posted: 03 Sep 2020 02:19 PM PDT

    Hey guys,

    let me show you a quick example. Let's say we have a shop with products and some products have images and some only have a placeholder image.

    Where does the IF/ELSE logic belong to set the placeholder image if the product has no image.

    • Some people say: It's Controller/Service logic because the View should not contain any logic. If you need it multiple times then put it in a separate Service which fixes the dataset. Like Service::FixProductImages(products).

    • Some people say: It's view logic and it should stay in the view. If you need it multiple times then make a ViewHelper. Like ViewHelper::showProductImage(product).

    submitted by /u/TatzyXY
    [link] [comments]

    C/C++ Mac

    Posted: 03 Sep 2020 12:30 PM PDT

    Why are there no good c++ IDE's on Mac. I get we have xcoder but I personally don't like it and all the other ones are either paid or look rustic/not sleek unlike visual studios. I know this isn't a massive issue but like why?

    submitted by /u/xX__Nigward__Xx
    [link] [comments]

    Novice here, wanting to learn web scraping but don’t know what to learn, python or JavaScript or something else?

    Posted: 03 Sep 2020 03:21 PM PDT

    My end goal is to take air dates and titles for shows (from multiple sites).

    submitted by /u/SimplyFrostaku
    [link] [comments]

    Learning Python as first programming language?

    Posted: 03 Sep 2020 01:33 PM PDT

    I have wanted to learn about programming for a long time. A little while back, I came across two books. One is python crash course by Eric Matthes and the other is impractical python projects by Lee Vaughn. I decided to get them.

    Is it a good programming language to learn as your first one?

    submitted by /u/ACyclist1
    [link] [comments]

    What c language should I start learning first?

    Posted: 03 Sep 2020 01:07 PM PDT

    I know nothing about SoapUI and now have to use it every day; where can I get very specific questions answered?

    Posted: 03 Sep 2020 02:14 PM PDT

    My background is data analyst, write excel vba and tiny amounts of python.

    What is the best resource for me to get a grasp on this; i'll just list some of my questions aswell.

    So in my context Soap free version is used to find client details on another company's database.

    Run a request script on a database and the output window shows the result.

    What is a test case why is it called a test case?

    What is annoying for me is there are 2 databases but the request windows only input and output for their 1 database at a time. It would be better for me if both outputs were in the same window that is something I can copy once to paste into excel and have a formula sort out. At the moment if i have 5 cases i'm having to do 10 searches and 10 copy and pastes.

    I have no idea what soap is how it works, what i can do with it, what people are meant to use it for.

    submitted by /u/Ambiguousdude
    [link] [comments]

    How do you make a video platform like YouTube, where the videos are hosted by YouTube or things like Vimeo?

    Posted: 03 Sep 2020 06:15 AM PDT

    How could this be done without embedding and root files?

    Essentially I'm asking how does YouTube host it's own videos, if I where to create my own website I'd like to mimic their method, but I have no clue as to how they do it

    submitted by /u/pasinc20
    [link] [comments]

    How to get current date and time only using time(NULL)?

    Posted: 03 Sep 2020 11:55 AM PDT

    Hello, I need to get the current date and time in C++ only using time.h library and the time(NULL) function. I figured out how to get the current year, but I have no idea where to start for getting the rest of the date and the current time. I am supposed to only use my own calculations, no functions that can do it for me. This is what I currently have:

    int t =time(NULL );

    int SecondsInYear = 60*60*24*365;

    cout << "The current date and time is " << "mm/" << "dd/" << 1970 + t/SecondsInYear << endl;

    submitted by /u/Ok-Amoeba5080
    [link] [comments]

    What is the best way to do IoT service discovery?

    Posted: 03 Sep 2020 11:13 AM PDT

    SSDP is very unreliable on Windows. Even when I get it to work, it will all the sudden stop working.

    Is there a reliable way to discover IoT services? Like raspberry pis listening for devices trying to connect?

    submitted by /u/zwhitchcox
    [link] [comments]

    simple question about asymptotic growth

    Posted: 03 Sep 2020 10:56 AM PDT

    Would the following be O(n^2)?

    for (int i = 1 ; i <= n ; i++ {
    for (int j = i + 1 ; j <= n ; j++){

    }
    }

    submitted by /u/Ok-Cod1551
    [link] [comments]

    How does the Boyer & Moore algorithm work?

    Posted: 03 Sep 2020 08:16 AM PDT

    I'm doing an assignment where we must find the most common element in an array of numbers at O(n) time. I'm confused about how it could find this, based on an example input like this: 1 2 1 3 4 (end) Before it could count 1 as a majority element, the counter would have already gone down and the number (1) would've lost its chance. Does anyone know about this algorithm that can help me?

    Also, I asked the same question on my question board for this assignment, and the answer I got was confusing (English is my professor's second language). I asked the question based on the same input that I gave you guys here.

    When you finish processing the array, yes you will be left with 4, but that is NOT majority or most common element, it is the only candidate for being M.E. When you check the actual count, you will see that it does occur only once, so there is NO M.E. Again, there was one candidate, but NO actual M.E (this is for N/2 version).

    submitted by /u/Gov_N_ur
    [link] [comments]

    Sorting/cropping text

    Posted: 03 Sep 2020 06:31 AM PDT

    I was wondering if it's possible to select and crop certain text in a big sea of sentences, preferably using java/python.

    The issue I'm having is that I only want to keep the numbers highlighted in red in the image attached here: https://i.gyazo.com/5c3d054ebc9e1bc22496b68579dd7a5c.png

    I'm not sure if it's actually most efficient to use a programming language to do this, or if there are other alternatives to achieve this. But i would imagine that it should be possible to do in a programming language, I just can't seem to find the solution.

    I realize that i could simply copy and paste the numbers into a new document and delete the rest of the text after, but that would take a long time to do if I had let's say 1000 more lines like this...

    the closest I have gotten so far is this:

    System.out.println(message.replace("Ja","")); } }

    Where I replace for example "Ja" with a blank space. But that would obviously take a lot longer than simply copy and pasting the numbers manually as i mentioned earlier. So this is not a solution.

    What I'm looking for is a way to delete everything else than these numbers that I'm interested in, and preferably rearrangning the numbers in a format like this: "4033766021848|4033766093265|4033766093432|4033766048852|4033766048869|4033766093098|4018653944776|" Where the numbers are all on the same line and ends with a vertical bar "|"

    Is this in any way possible to do efficiently?

    submitted by /u/donut_qewbs
    [link] [comments]

    Neo4j PHP library? Are there any new ones that are maintained?

    Posted: 03 Sep 2020 06:09 AM PDT

    I'm in need of a Neo4j library for PHP - as I prefer to keep to one language as much as possible. But all of the packages I have found are years out of date.

    I'd prefer one which plays nicely with Laravel, but I'd be perfectly happy with building the queries myself.

    Are there any packages which are still maintained?

    submitted by /u/lolis-are-so-cute
    [link] [comments]

    WTF is the epic games launcher actually doing on my PC while installing?

    Posted: 03 Sep 2020 10:46 AM PDT

    I'm setting up a new system and I started downloading the epic games client. It's taken over half a hour and still hasn't finished downloading the launcher... 370/450MB. I've got a 10+ Mbps connection, I've also isntalled steam and 3 games on steam while this has being going on (before you say anything, the launcher isn't any faster when it's the only thing running).

    Looking at the task manager, it's weird...

    https://i.imgur.com/yJgUfCn.png

    I've been looking at the numbers and the network usage is a constant 1.4-1.5 Mbps (despite the progress bar being stuck and reporting 0.0 B/s) and why is it using my graphics card this much?

    https://i.imgur.com/x05C1y9.png

    Is there any way to get more insight into what the launcher is actually doing?

    submitted by /u/Supperhero
    [link] [comments]

    Something weird has happened to the character encoding on my mac terminal after installing a node package

    Posted: 03 Sep 2020 04:47 AM PDT

    I've ran into a weird problem I need urgent help with. I've been playing around with some node.js, writing code to convert bytes read from a file into different formats.

    Everything on my mac terminal used to be fine!

    I then did npm install utf8

    Ever since, my terminal is weird, when I copy and paste into it normal text it converts certain characters into weird ones. Even my terminal name, used to be joe joes-MBP and now it says joeÉjoes-MBP (note the new É character).

    I have tried uninstalling node and npm but it doesn't help. Also my old noe programs which used to work, now when I console.log output the character encoding has changed to gibberish - and I changed no code, all I did was run the npm install command above.

    Any ideas how to fix this? Or what's going on?

    submitted by /u/hammertimeisnow
    [link] [comments]

    What could I have done anything better/different (user inputs numbers, once they enter 0 print sum, max, min, mean)

    Posted: 03 Sep 2020 12:45 AM PDT

    import java.util.ArrayList; import java.util.Collections; import java.util.InputMismatchException; import java.util.Scanner; public class Stats { public static void main(String[] args) { Scanner scan = new Scanner(System.in); ArrayList<Double> list = new ArrayList<Double>(); double enteredValue = -1; while (enteredValue != 0) { System.out.println("Enter a number.."); try { enteredValue = scan.nextDouble(); }catch(InputMismatchException ex) { System.out.println("ERROR: INVALID INPUT"); scan.next(); continue; } if (enteredValue != 0) { list.add(enteredValue); } } scan.close(); System.out.println("# items: " + getSize(list)); System.out.println("Sum: " + getSum(list)); System.out.println("Maximum: " + getMax(list)); System.out.println("Minimum: " + getMin(list)); System.out.println("Mean: " + getMean(list)); } public static int getSize(ArrayList<Double> list) { return list.size(); } public static Double getSum(ArrayList<Double> list) { double sum = 0; if (!list.isEmpty()) { for(Double d : list) { sum += d; } } return sum; } public static Double getMean(ArrayList<Double> list) { double sum = 0, mean = 0; if (!list.isEmpty()) { for(Double d : list) { sum += d; } mean = sum / list.size(); } return mean; } public static Double getMax(ArrayList<Double> list) { double max = 0; if (!list.isEmpty()) { max = Collections.max(list); } return max; } public static Double getMin(ArrayList<Double> list) { double min = 0; if (!list.isEmpty()) { min = Collections.min(list); } return min; } } 
    submitted by /u/daddymateriial
    [link] [comments]

    Build something in MVC5 or lean asp.net core

    Posted: 03 Sep 2020 03:05 AM PDT

    I recently finished a course by Mosh on udemy about MVC5. Should I focus on it and build something or lean MVC core first? I also plan to learn angular in parallel.

    submitted by /u/SamoBH
    [link] [comments]

    No comments:

    Post a Comment