• Breaking News

    Friday, March 13, 2020

    What does the "on" in names such as "onEvent", "onKey" etc mean? Ask Programming

    What does the "on" in names such as "onEvent", "onKey" etc mean? Ask Programming


    What does the "on" in names such as "onEvent", "onKey" etc mean?

    Posted: 13 Mar 2020 05:44 AM PDT

    Whenever there is a tutorial or source code regarding input or event systems, there is always this prefix "on" which is used without any explanation as to why, at least I couldn't really find it.

    What is the meaning of that prefix?

    EDIT: Oh. It's a simple "on". I thought that it was was some sort tradition similar to "m_" or something along those lines.

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

    How do you handle large amounts of data?

    Posted: 13 Mar 2020 06:12 PM PDT

    I'm using python to scrape stuff off the internet. My current method, is to download it all into a JSON file, but this is going to be one BIG json and I am worried about memory overload.

    At the same time, most of the processing I'm going to do is with json, which makes json a very convenient data-type.

    I'm not sure what type of approach to take, whether to stick with json or switch to something else (perhaps a sqlite file ... but I'm not too informed about this data-type)

    Alternatively, I've been looking into json streamers like https://github.com/danielyule/naya and https://pypi.org/project/jsonslicer/ which seem somewhat promising.

    Appreciate any insights / suggestions you guys might have.

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

    Image Training and Selection

    Posted: 13 Mar 2020 05:09 PM PDT

    I'm not sure if this is the correct place to ask this (if there is a better subreddit please let me know), but I am looking for an object detection software. I want to be able to feed it a thousand images of a certain thing to train it and it be able to take a data set of maybe 10,000 images, and decide if those images contain the object or not. If they probably do contain the object, move the images to one folder, while if they don't, move it to another. I have been seeing a lot about using ImageAI, but I have not been able to get that to work and I cannot find any info relating to what I am trying to do. I honestly don't know that much about coding, which is why I am asking here. I would prefer it to be free, but it is okay if I have to spend some money, but I have seen some services cost large amounts of money which just is not worth it. I would just rather not have the program run on the cloud, rather on my own computer since I should have good enough hardware to run it.

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

    Possible/feasible to use Twilio for this project?

    Posted: 13 Mar 2020 08:56 PM PDT

    Hi, I'm making an email sender desktop application and I was wondering if anyone has used Twilio in this way before? Would it be possible to use twilio's api to send one or many people the same email after a certain amount of time?

    Thanks

    submitted by /u/cow-hider
    [link] [comments]

    Text filtering project

    Posted: 13 Mar 2020 02:22 PM PDT

    Hello friends, I'm trying to find a program or application that allows me to take a page of text, filter out specific lines/parts of that text, and output only the filtered results in a neat and orderly fashion. The page of text would preferably be on notepad or a word doc, and be displayed in the same text file.

    To be more specific, at work I receive a database return as a block of unformatted/unorganized text. The information we need to take down is always at the exact same location and line. For the sake of my eyes and saving a bit of time, I was hoping to create or even better find and existing program that could take that return and display only the information I need.

    Please let me know any suggestions you have! Coins for the best answer :)

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

    Timeout on curl, after adding docker containers. Symfony projects. Need help configuring Docker.

    Posted: 13 Mar 2020 02:22 PM PDT

    I have an issue with 2 Symfony projects and the configurations with Docker.

    More details can be found here, on StackOverflow.

    Could you please help me with some answers or tips?

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

    [JS CSS] If FontFace is "experimental technology", how did then people in the past create new @font-face's in JS?

    Posted: 13 Mar 2020 11:32 AM PDT

    Hello!

    I realized that my code is upside down, and that it would be best to generate my fonts in JS.

    What I intend to do:

    1. read which fonts I have in my path for the "fonts" folder (this is a desktop app, so I have access to read and write whatever I like with node)

    2. Generate fonts (like @font-face)

    3. Display fonts in dropdown menu for the user to choose which font he likes (and he can drop his own fonts in the folder, which is the whole point of this.)

    So, I need a way to do part 2. Let's say I have an array with ["font1.tff, "font2.woff", "font3.otf"]

    I need to load these fonts like I would with @font-face, and be able to switch them and change the font-family of my <body> or :root to ANY of the provided fonts.

    I know that FontFace might work ok, but I don't like the word "experimental". And I am sure people have dealt with this problem in the past.

    Thank you!

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

    Hello I need help

    Posted: 13 Mar 2020 11:05 AM PDT

    Hello I need to make a program that spits out notifications on a timer. What would be a good language? Also tips would also be very appreciated. I'm a newbie and I don't know a lot of programming but I'm looking forward to learning it and understanding it better!

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

    Python pandas install error

    Posted: 13 Mar 2020 10:41 AM PDT

    I'v tried to do this program but have problem with pip install pandas

    https://youtu.be/E5cSNSeBhjw

    error: (...) -- setuptools wheel Cython>=0.29.13 "numpy==1.13.3; python_version=='3.6' and platform_system!='AIX'" "numpy==1.14.5; python_version>='3.7' and platform_system!='A

    IX'" "numpy==1.16.0; python_version=='3.6' and platform_system=='AIX'" "numpy==1.16.0; python_version>='3.7' and platform_system=='AIX'"" failed with error code 1 in None

    Thanks in adivce for help

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

    Which language would you use to build a retro arcade/space invaders style game?

    Posted: 13 Mar 2020 10:11 AM PDT

    I'm totally clueless so any help would be much appreciated. Thanks in advance.

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

    How would I go about making a Diablo clone

    Posted: 13 Mar 2020 01:27 AM PDT

    So I suddenly have a lot of time and to prevent boredom I wanna embark on a project to make a diablo clone but with 3d models etc. I'm comfortable with all I'd have to do, worked out blender, did a compsci degree many years ago but I've never done 3d work. How would I get a model into the world? Is it as simple as exporting a model from blender? And what of animation? Is a similar thing required?

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

    Help with C++ casting from int to unsigned char!

    Posted: 13 Mar 2020 03:53 AM PDT

    I am writing a code for class. In this specific section, I have two arrays, unsigned char out[256][256][3] and int temp[256][256][3]. In this specific section, I am inside three nested for loops, which cycle through the three dimensions of the arrays. I need to assign out[i][j][k] = (unsigned char)temp[i][j][k]. In fact, the teacher even gave us that exact code snippet. However, I think that C++ is converting temp[i][j][k] to ASCII, because when I print the values in the out array, it prints � and other random characters, even though I know for a fact that everything inside of temp is between 0 and 255, since I did some clamping beforehand. Everything I've tried to get C++ to convert the int to an actual unsigned char and not its ASCII equivalent has not worked. Also I cannot change out to be an int array, as the teacher has already defined it as a char array. Please help!

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

    No comments:

    Post a Comment