• Breaking News

    Saturday, August 24, 2019

    Can someone who is good (or even mediocre) at programming explain why a game can’t just constantly save? Ask Programming

    Can someone who is good (or even mediocre) at programming explain why a game can’t just constantly save? Ask Programming


    Can someone who is good (or even mediocre) at programming explain why a game can’t just constantly save?

    Posted: 24 Aug 2019 11:00 AM PDT

    I'm a complete moron with 0 computer experience. I'm wondering why every game has manual saving or the whole "if you see this icon the game just saved" thing. Fire away.

    submitted by /u/Girthquake-0200
    [link] [comments]

    What do you write your documentation/notes in? What is your workflow to avoid messy documentation?

    Posted: 24 Aug 2019 04:57 PM PDT

    Hello everyone. Just wanted to know more about your methodology to organize data and export it to other formats when you do a project.

    I do mostly research so all my documents are in latex format and as I make experiments or discover useful data, I keep appending it on the file. It also has the added advantage that it's journal ready most of the time. Texmaker helps me keep it by chapters, but I've found myself wanting to query/process the data or export it to my phone for experiments.

    I find relational databases too obstructive due to the need to define the notes format beforehand and sometimes I want to change them on the fly or link them to references for the bibliography which may vary in size or format. Have thought of using non-relational but don't wanna invest time and energy on it until I'm sure it'd be adequate (plus don't see that many options for android parsing).

    Have done some extremely fast documentations or notes using vim + yaml, then query them in Python when I need to display them. And some other documents I've tried using Restructured Text with Sphinx so that I can use the make latex option if I ever need to append it into a paper. But find more annoying to reference a bibliography in Sphinx when I could do it directly in latex and save a step.

    Have also read that many enjoy using the Jupyter notebook, but honestly I have never been able to integrate it into my workflow when it seems that vim + shell suffice. And so far I haven't read if it can easily turn into tex for papers so it feels not worth it for small projects or tests and even then, I still haven't been able to find the advantage of using it.

    What is your preferred method or workflow to avoid messy documentation? Do you have a favorite data type to store, parse and redact your work? Do you use some fancy project management application or just git? I know it may be too much to ask, just wondered what's your setup.

    t.l.d.r. What data format do you recommend that can be easily transferred, parsed, version controlled AND is human readable so that you can store and organize your project and share it with other programmers?

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

    FFT

    Posted: 24 Aug 2019 04:26 AM PDT

    Hi, i am writing a program that uses audio fingerprinting to identify voice commands, in java, but i need to get the frequency from the digital audio, and doing research, i found a fast Fourier transform to be the best method, but i was wondering what the best way to go about learning how to code one, cause i just can't seem to find a good tutorial or properly understand it, no matter how much research i do

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

    At which point can you list C++ on a resume when self teaching?

    Posted: 24 Aug 2019 12:34 AM PDT

    Or are there other avenues to take once proficient with C++?

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

    Rust | Question about Option usage in structs.

    Posted: 24 Aug 2019 03:00 PM PDT

    ``` pub struct MyStruct<'a> { pub prop1: &'a str, pub prop2: Option<&'a str>, }

    fn main() { const struct_instance_1 = MyStruct { prop1: "test", prop2: Some("test"), // <-- Do I really have to use the 'Some()' syntax? };

    const struct_instance_2 = MyStruct { prop1: "test", prop2: None, // <-- Do I really have to use the 'None' syntax? };

    if struct_instance_1.prop2.is_some() { // <-- Is it how it's suposed to be done? do_stuff(&struct_instance_1.prop2); } } ```

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

    What exactly is an HTA (HTML Application)? And why aren't they popular?

    Posted: 24 Aug 2019 04:40 AM PDT

    I read about HTAs recently and what I understood was that it's basically a web page but opened as if it is a standalone desktop application instead.

    I made a text editor using HTML and JavaScript/JScript (used ActiveXObject to open and save files) and changed the extension to .hta instead of .htm. It worked, it's basically a desktop app now.

    So... is that what HTAs are all about, desktop apps but written as if they were webpages? What are their actual uses? And why aren't they popular? I can't find many information about them, yet they seem to be very easy and convenient to make which makes me wonder.

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

    What is the brightest color in hex code, I know black is #000000AA but what is white

    Posted: 24 Aug 2019 05:51 PM PDT

    How could I detect black circles in a white image?

    Posted: 24 Aug 2019 09:17 AM PDT

    The task is simple: detect circles in an image, color them, if they are ovals, delete them (paint them white).

    My algorithm currently only works when there is only one circle in the image, but sometines there will be several, none or even incomplete ones (cropped). The incomplete ones don't count.

    I first find 4 points in the circle and then get the centroid, get the radius of top-center and left-center, get the difference in ratios, if the difference is < 10: circle, else: oval.

    My problem is that my search is up-down, left-right, down-up and right-left, so when there are multiple circles, my algorithm won't work because they will overlap the search.

    I need some strategy to separate circles and run the algorithm on these separated pictures, or a better idea...

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

    Auto Hotkey question

    Posted: 24 Aug 2019 09:53 AM PDT

    I have an auto hotkey script that just spams my mouse fast, this is the script:

    `SetTimer Click, 100

    F6::Toggle := !Toggle

    Click: If (!Toggle) Return Click send a return`

    Now I just want this script to hold alt down while it's spamming the mouse, what would be the line of code that I add?

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

    Integrating own MFA into Active Directory for Machine Logon

    Posted: 24 Aug 2019 08:38 AM PDT

    I'm trying to get my hands on any kind of resources on how to accomplish this. I've this far gathered that every enterprise solution integrates somewhat into AD federation services but i haven't found any documentation or SDKs for now.

    Does anyone have/know some resources on this?

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

    Effective Research when Programming

    Posted: 24 Aug 2019 02:13 AM PDT

    It often happens that someone has to do research on a certain topic before they can implement a feature. Sometimes I notice that my research takes too long, that I can't come to good conclusions quickly, and that I don't have enough confidence in what kind of solution I have found, sometimes you have to compare many options with each other for a correct implementation.

    I see that research is an important skill for programming, so I wondered if there are any resources, articles, posts, videos, tips to do more effective research on a certain topic when we are programming. The research doesn't have to go very deep, but has to give a picture of what the solutions are and what the alternatives are and how to choose the right thing. So I'm not referring to reading a book when one is going to implement a feature (which with me is often the case).

    What are often the ways in which you do it and do you still have good tips?

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

    Android Google SIgn In

    Posted: 24 Aug 2019 07:09 AM PDT

    How do I suppress or deal with this warning. I already make sure to sign into google and ask for permissions if not granted already. This method is in another class and is only called when I have the permissions to access it. Catching the exception doesn't suppress the issue either. Is there still somehow a chance it is called with a null account.

    Fitness.getRecordingClient(context, GoogleSignIn.getLastSignedInAccount(context))

    GoogleSignIn.getLastSignedInAccount(context) might be null

    Thank you

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

    Building a web search engine

    Posted: 23 Aug 2019 11:59 PM PDT

    Was wondering if a programmer could tell me what's involved in building a web search engine how many programmers, time, approx cost etc. thnx

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

    ANSWER PLS

    Posted: 24 Aug 2019 01:53 AM PDT

    I am an arts student and I'm curious about computer programming and I'd like to get a job in this field. But I repeat again I'M AN ARTS STUDENT!! So, my question is can I get a back end developer job with my Arts degree since companies wants a bachelor or masters degree in computer science or more good qualification? Btw I'm from India!

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

    No comments:

    Post a Comment