• Breaking News

    Sunday, June 13, 2021

    Audio Software Engineering, why only c++? Ask Programming

    Audio Software Engineering, why only c++? Ask Programming


    Audio Software Engineering, why only c++?

    Posted: 13 Jun 2021 12:27 PM PDT

    Is there a reason that all (that I know of) audio software like VST's and full on programs are done in C++? I know of frameworks like Juce that integrate with it but why is it that other languages aren't being use to build these? I've only worked with front end development and my technical knowledge is shallow-ish. But I would really like to explore working with these and was curious if there was something that maybe only C++ can do to sound that others can't?

    Extra: if anyone is working in the field or has experience I would really like to learn more and see how to get started learning and if they would have any tips.

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

    Why does it seem like many drawing-coordinate systems start with 0,0 in the upper left hand corner, rather than what we traditionally learn in grade school with 0,0 being at the bottom left?

    Posted: 13 Jun 2021 05:50 AM PDT

    I've experienced this in a few coordinate systems now, and I'm just kind of curious towards the phenomenon.

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

    How to go about implementing differential equations?

    Posted: 13 Jun 2021 08:38 PM PDT

    I found this really neat gallery which has a bunch of renderizations of strange attractors.

    I want to have a fixed-size boolean 3D array generated by these equations, for example. I have basic understanding of what derivatives are, but I've never implemented an algortihm that used them before, so i have no idea how to go about doing this.

    How can this matrix be generated from these formulas in the language you're most familiar with?

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

    is it a bad idea to learn two big, complex languages at the same time? If so, should I focus on Rust or C++ first?

    Posted: 13 Jun 2021 08:07 PM PDT

    this isn't like learning Java and Python concurrently; C++ in particular is massive even if you just learn a subset, and Rust carries a lot of new, unique concepts. Is it doable?

    submitted by /u/Puzzleheaded-Hour472
    [link] [comments]

    Applet java help

    Posted: 13 Jun 2021 12:31 PM PDT

    Hi, I'm using eclipse IDE and installed JDK 8 from ninite But the IDE isn't working it says need JDK 11 or higher What to do to make it work ? I can't using version 11 or higher because of applet

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

    Has anyone dabbled with the idea of creating a software to prevent botting?

    Posted: 13 Jun 2021 06:08 PM PDT

    Some say it's a pursuit with no end but thinking of ways to prevent botting on social media, especially twitch has always intrigued me.

    There is always reCAPTCHA but I am talking about something more intelligent.

    I spent a few months having users send me BOT names on Twitch when they got follow or view botted.

    I noticed a few interesting things

    1) many of the bots had 1 follower. And it was the same person. Perhaps a lot of these bot accounts have the same IP.

    2) this one is obvious, but often a very new account with little activity.

    3) were following thousands of people but with little view time in streams (the follow bots)

    4) a standardized intro (upon joining the channel, an introduction was given like Hi but nothing after even after viewing the stream for 6 hours)

    Now not one of these things alone is suspicious, but perhaps a formula could be derived where if X combination of the things were present, the user was determined X percent a bot followed by an execution program.

    I think it'd be very interesting to research this more and create a software to help filter these users available to users.

    Any thoughts?

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

    How to print a statement on the SAME line multiple times

    Posted: 13 Jun 2021 02:06 PM PDT

    Hello, I was wondering how to print the same statement on the same line multiple times in python or preferably VB . I am familiar on how to do it on multiple lines, but couldn't figure out how to do it on the same line. Say if I want to print a star by the amount of times that a variable star_count = 6 represents, expected output ****** , thanks in advance

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

    Image recognition app cost?

    Posted: 13 Jun 2021 05:50 PM PDT

    Does anyone here knows how much it would cost to make an app that can recognize househould appliance, and manage basic data from dispositives recognized. I am considering paying to thirds to develop the app, managment and the use of an API for the imagen recognition. Thanks.

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

    Question: Microphone detects sound and sends an audio recording to me via telegram

    Posted: 13 Jun 2021 06:33 AM PDT

    hey! I am really desperate because I cannot find the right solution on the internet. Even similar projects are only (recognize a tone, send a text message with Telegram).

    I would like to connect a microphone to my Raspberry Pi and if it perceives a tone, it should record until nothing can be heard anymore. He should then send this audio recording to me via Telegram.

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

    Looking for web framework recommendations in statically typed languages

    Posted: 13 Jun 2021 04:25 PM PDT

    I have a few ideas for personal projects and I am starting to think about the tech stack. For the front-end I will probably use mostly typescript with bits and pieces written in c++ or rust and compiled to WASM. For the database, I will probably use some flavor of SQL. I am not sure about the backend.

    As stated in the title, I have a strong preference for statically typed languages. Here are some other aspects that I am considering:

    • support for REST and websockets
    • expressiveness
    • mature ecosystem (plugins and tooling)
    • good ORM
    • friendly community
    • relatively straightforward way to include native code
    • codegen for OpenAPI spec or something similar (then I could use the OpenAPI spec to generate some of the front-end code)
    submitted by /u/PlayingTheRed
    [link] [comments]

    Which Do You Prefer?

    Posted: 13 Jun 2021 03:30 PM PDT

    fn fun func function

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

    I need help understanding using an API

    Posted: 13 Jun 2021 03:16 PM PDT

    Hi! So I'm going through the documentation for the Eventbrite API (https://www.eventbrite.com/platform/docs/introduction), but I am new to this and am extremely lost. All I see is a lot of JSON formats for what information the Eventbrite API will require, but I see not place where they give examples using Javascript or another language of actually utilizing the API in code to be able to send data to the Eventbrite website. Like I assumed we'd have to do something like: var api = new EventbriteAPI or something

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

    Can someone explain this bit of Java code

    Posted: 13 Jun 2021 02:48 PM PDT

    "Override the built in method of StringTokenizer class countTokens so that the tokens that contain Numeric values cannot be counted"

    This was the question in the assignment, here's the solution I found on Chegg after I couldn't do it myself,

    import java.util.*; public class Q1 { public static int countTokens(StringTokenizer s) { int count = s.countTokens(), finalCount = 0; String temp; boolean flag; double dValue; for (int i = 0; i < count; i++) { flag = true; temp = s.nextToken(); try { dValue = Double.parseDouble(temp); } catch (NumberFormatException e) { flag = false; } if (!flag) finalCount++; } return finalCount; } public static void main(String[] args) { StringTokenizer s1 = new StringTokenizer("There are 2 students in this class"); StringTokenizer s2 = new StringTokenizer("There are two students in this class"); int count = countTokens(s1); System.out.println("Total number of Tokens in string 1: "+ count); count = countTokens(s2); System.out.println("Total number of Tokens in string 2: "+ count); } 

    I need to know how does this work, Can't seem to figure it myself

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

    Best Practice/Design Pattern for PubSub in combination with a tree?

    Posted: 13 Jun 2021 02:40 PM PDT

    TL;DR Is there a design pattern for cascading updates along a tree structure for arbitrary functions in each node?

    Goal

    I am trying to write a library in python which is supposed to implement a Value Driver Tree, which is a basically a glorified scenario calculator, where a change of various business metrics are combined along an analyst-defined tree and every node (except the first input layer) is calculated by analyst-defined functions. So it's an inverted tree and we start with time-series inputs at the leafs and end up with a combined value, through multiple stages, at the root of the tree.

    Trivial Example

    We sell 1000 units (constant time series) of stuff per month, which is 10% (also constant time series) of the whole market potential ( = overall demand). A study shows that overall demand is going to increase by 50% next year, so my library should indicate that we are going to sell 1500 units (if nothing else changes).

    An analyst should then be able to set the overall demand increase to different values (because e.g. he thinks the study is too optimistic) and all depent variables (in this trivial case only sales) should automatically update. He might also modify the market share we expect to get and the metrics should update accordingly again.

    My progress so far

    I used a PubSub design pattern to model relationships between to metrics. Each metric is an instance of a class which contains the time series of a business metric and I wrote the functions for basic linear combinations of metrics (mul, add, rmul,...). I still have problems getting the business metrics to update when hopping some levels of the tree, but I think I have a solution for propagating value changes along more complex trees. I also have no idea how to implement general functions of higher order.

    My question

    Am I missing a major design pattern here? It seems there should be a solution for cascading updates along a tree structure for arbitrary functions?

    Should I model my tree in a different class which handles updating business metrics from above as an all-seeing eye or do I stay on the lower level and let the network of business metrics be handled by themselves and just make every metric (=node in the tree) point to their successor?

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

    Which programming language should I learn for design?

    Posted: 13 Jun 2021 09:40 AM PDT

    Gonna be doing product/industrial design at uni and wanted to take my hand at coding, wondering which would be the most useful?

    Mainly designing products of any sort, so probably gonna be working with arduinos + LED's on the practical side.

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

    Why is java spring dependency-injection/application-context so popular?

    Posted: 13 Jun 2021 09:04 AM PDT

    I get that tools like Controller and Spring boot makes writing web servers pretty easy. But for services that don't use springs controllers, why would they still use the context-application, beans and dependency injection? All you avoid is just setting up an dependency object in the constructor.

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

    I can't figure out this is a Q and answer or just question. There are 2 blank table spaces under last number line. But this means I need to fill the table?? I'm studying Binary search in Java.

    Posted: 13 Jun 2021 12:22 PM PDT

    Sort and trace the walkthrough (steps) of selection sort with the following set?

    4 7 11 4 9 5 11 7 3 5

    3 4 7 11 4 9 5 11 7 5

    3 4 7 11 4 9 5 11 7 5

    3 4 4 7 11 9 5 11 7 5

    3 4 4 5 7 11 9 11 7 5

    3 4 4 5 5 7 11 9 11 7

    3 4 4 5 5 7 11 9 11 7

    3 4 4 5 5 7 7 9 9 11

    3 4 4 5 5 7 7 9 11 11

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

    my dataset in Jupyter notebook

    Posted: 13 Jun 2021 11:49 AM PDT

    so im new ! and my question is when i have a dataset like a CSV or excel file on my desktop and i want to use it in my coding in Jupyter . how should i write the code to read it ?

    thanks guys!!

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

    Why not share web snippets as SVG?

    Posted: 13 Jun 2021 11:26 AM PDT

    I understand why people share web content as screenshots. Screenshots are built in to their OSes. Free hosting for images and direct linking makes for a better experience than sending people to some bloated social media page that will track you and overlay six bullshit modals on top of the image and download tons of unnecessary junk and ads.

    But images are obviously not the best format for text. They're not accessible. They're not searchable. Lossy images degrade as people screenshot screenshots and lower their quality and fail to crop and add watermarks.

    So I think SVG has the potential to be the best of both worlds, provided the infrastructure is in place. SVG is a single file, widely supported standard format that stores text as text. And it supports links.

    Apple bringing web extensions to iPhone will help with this. There's always the possibility of an app or website that you share the link to that will make a nice image for you, of which plenty already exist for raster images.

    Of course screenshots work for any arbitrary content. From a naive standpoint you should be able to convert any arbitrary text + CSS HTML node to an SVG. But I don't know how well this works in practice. I assume you need a whole browser to render the HTML and then you need a bunch of work to turn that into SVG. Is there much overlap between the two to make this easy?

    If you've ever used the pointer tool in your browser dev tools you know it's possible to select part of a page with point and click and be taken to the underlying HTML element. Replicating that with touch on mobile will probably take a fair amount of effort.

    And then there's the incentive problem. Why change your workflow if there isn't much in it for you? Luckily reddit helps with that since we have moderators and rules for subreddits, so the community and mods can set rules to push such a transition along. There just needs to be buy in and again as I said, all the technical support along the way.

    Alternatively, are there raster image formats that support embedding text in metadata? Maybe we just need to capture the text and embed it at the point the screenshot is made.

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

    Best way to share images in real-time between 2 local processes?

    Posted: 13 Jun 2021 03:33 AM PDT

    dk if this is the right subreddit, but for a project im working on i have a server sending several images to a client. The client needs to process these (currently in python, OpenCv) and share them to another local process (cpp, also using OpenCv) which uses these pictures to render using OpenGl.
    The server keeps sending images constantly, which makes the speed of ICP crucial.

    First i tried Redis, an in memory db, but the speed of IPC was way too slow.
    Im considering trying zeroMQ out, but before i continue i wanted to know if there are better ways to do this.

    The processing happens client side because the processing of images makes them increase in size, and for now bandwidth isnt really a problem.

    TLDR; Get as much images from python process to cpp process as fast as possible at a constant rate

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

    Examples where multithreading improves performance greatly. Even when only using a single core.

    Posted: 13 Jun 2021 10:13 AM PDT

    Title. What are some examples of algorithms that take advantage of multithreading to greatly increase their speed?

    Of course there are many examples where having many threads speeds up computation when you have multiple cores working on different threads.

    I was wondering if there are any examples where mutlithreading speeds up some process even if you only run the process on a single core and its threads on a single core? Thanks :)

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

    Where should a wanna be programmer start?

    Posted: 13 Jun 2021 09:56 AM PDT

    I'm gonna begin uni soon, but I can't wait and I wanna learn something during the summer, just on my own. There are so many resources out there but I want an input from a practicing programmer. Anything you'd suggest?

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

    About optimality in stochastic local search algorithms.

    Posted: 13 Jun 2021 09:44 AM PDT

    Hello everyone, I think I read somewhere a result about optimality in stochastic local search algorithms but I can't remember the resource where I read it, I even tried to google it but didn't manage. The result stated something like this:

    A stochastic local search algorithm can find the optimal solution with probability approaching to 1 only if it allows unfavourable moves, i.e. moves that are not driven by some optimization criteria.

    The idea is that an algorithm that always tries to improve its objective function might get stuck in local maxima and therefore never find the optimal solution to the problem, whereas allowing moves that cause a decrease in the objective function could get you out of it (really informal, ikr).

    I think I've seen the idea being implemented like in Simulated annealing but I'm not sure anymore if I just dreamt about it since I can't find anything about it. Anyone please enlighten me.

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

    what are some good options for making executable application windows with small file sizes?

    Posted: 13 Jun 2021 08:53 AM PDT

    title. i've been looking into making windowed applications, but the problem is some choices ive looked into (such as ElectronJS or NW.js) compile to around 100MB minimum (namely because of the size of the libraries included). it kind of irks to me distribute 40-line programs to friends bigger than the entire Photos app on Windows 10.

    doesn't have to be javascript (in fact i don't think it CAN be javascript because chromium). i'd like to keep it high-level (i can learn) if at all possible, though. as far as a size benchmark goes, i'd go for like, "less than 30MB for a basic window that says Hello World! on it" low. internet access not required for the app itself at all.

    i know java programs compile to be pretty small, and i'd expect python to do so too. if at all possible, though, i'd rather not force people to download some obscure library just to be able to open this application. java and python in this example are fine because a ton of people already have those installed (and/or it'd be way easier to convince someone to install them).

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

    No comments:

    Post a Comment