• Breaking News

    Thursday, April 15, 2021

    Is Spotify better than a vast majority of other apps on its compression algorithms and/or uses some kind of special protocols for its streaming data, or is it just simpler to compress audio than compressing the text/images that make up a web page Ask Programming

    Is Spotify better than a vast majority of other apps on its compression algorithms and/or uses some kind of special protocols for its streaming data, or is it just simpler to compress audio than compressing the text/images that make up a web page Ask Programming


    Is Spotify better than a vast majority of other apps on its compression algorithms and/or uses some kind of special protocols for its streaming data, or is it just simpler to compress audio than compressing the text/images that make up a web page

    Posted: 15 Apr 2021 01:33 PM PDT

    There are certain spaces in my apartment, where I don't get very good network connectivity, and the speeds are very slow. I've always noticed that the only app on my phone that is not affected by the low bandwidth/speed issues is Spotify which still manages to stream online songs pretty well. Reddit, Twitter, Instagram, discord, even WhatsApp take noticeable hits in latency of both sending and retrieving stuff (Reddit in particular is extremely bad at this when I'm on mobile data). Did the Spotify engineers just figure out a way to stream information much better than anyone else or have we just made huge strides in audio compression that haven't yet been matched in text/images compression. Also, why is Reddit in particular so much worse at this than comparable apps like Instagram which have a very similar type of content feed (every individual post consists of one or more images and associated comments.)

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

    Trying to make a web program that will generate prices based on dependent variables on a spreadsheet.

    Posted: 15 Apr 2021 06:30 PM PDT

    So first off let me start by saying this. I am in no way an advanced programmer. I've been dabbling in different languages such as JS React, C#, and HTML/CSS for various projects. On top of this I'm a website and graphic designer so I've never had to write any complex programs before. Everything I deal with is mostly front end. I'm coming here to find some direction on how I would go about writing this program, or if there is something that already exists out there that I'm just not finding. I've spent hours googling and I'm just not finding what I'm looking for. I'm willing to hire a programmer, but I'd like to at the very least try and see if it's something I can create first.

    Here's the context:I own and operate a custom t-shirt company. I have two business partners are super tech illiterate and don't know how to use the spreadsheet I use to give quotes to customers. I need them to be able to give quotes on the fly on their phone because they move around a lot and are very good at networking. Now with that said, I have a WordPress website that I've built and I'm looking to integrate this quote calculator tool into the website.

    Here's what I need:I need a program that can take a set of selective fields that have variable prices that are subject to change based on their dependents. Essential I would have a spreadsheet that would contain all of the different variables.

    When it comes to putting together a quote for customer, there's quite a few variables that go into that involving the production of the custom clothing.

    • Specific Garment Type( Price Per Specific Garment)
      • Garment sizes 2XL and over.
    • Print Cost ( has variables of it's own)
      • How many colors in the design
      • How fast the turn around is (7 day, 3 day, 1 day)
      • What is the quantity they are buying for that one design
      • How many locations ( when you add a location you literally just start from the top and count it as a second print cost)
    • Lastly, an open input variable to be able to add profit margin.

    So let me give you a quick example of how this might look.

    Garment Price - Gildan Ultra Cotton: $1.97Garment Quantity - 25 (Plays factor in print rate)Print Cost Front Chest - 1 color screen print(7 day): $3.03Print Cost Back Check - 2 color screen print(7 day): $4.37Profit Per Shirt: $2

    Total = $11.37 Per GarmentThen from there it would calculate the rest of the quote subtotal and taxes, then grand total. Keep in mind all of those variables are dependencies and will change based on quantity, design color count, turn around time, etc.

    I feel like there should be a program that exists already to deal with this. I've looked into WP Plugins and all them seem to deal with fixed values to calculate things like this. The key to this working is to be able to read a spreadsheet with all the different variable prices on it. Furthermore, maybe there is another way to do it without a spreadsheet, just really not sure. I'm no backend developer so hence the reason I've come here. If this belongs on a different subreddit, please point me where I need to go

    Thanks!

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

    Is NIH syndrome necessarily a bad thing?

    Posted: 15 Apr 2021 06:23 PM PDT

    The title says it all, but I find as a developer that depending on other libraries/programs at times can be tedious (you have to read the (sometimes awful) docs, it might not work exactly the way you want to, etc.). At some point, things will break and it won't be your fault, which can be really frustrating. At that point, you might as well write the library/program yourself (especially if it's small, but might also to medium-sized things).

    I believe this is effectively NIH syndrome. Why is it a bad thing?

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

    How to create a block programming language which translates to C++/Java

    Posted: 15 Apr 2021 09:55 PM PDT

    I'm working on an open source project and wanted some help in finding how to create a block based programming language, which can be translated to java or c++. I tried checking BloP and some other block based languages but they weren't super helpful. What can be some potential security challenges in it as a web application? I would really be happy with any help/resources you guys can give. Thank you!

    submitted by /u/th3-snwm4n
    [link] [comments]

    What are the steps necessary to pursue a career in software engineering or IT?

    Posted: 15 Apr 2021 09:26 PM PDT

    As a game design graduate currently going through learning C++ through online courses and books which is great. With all this information available, where to go from there? Is getting certified something that would be valuable to pursue or is working on some portfolio project?

    What is the next step after going through education to end up in these career positions?

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

    Where do I find meaningful projects?

    Posted: 15 Apr 2021 09:12 PM PDT

    I'm luckily in a salaried job that doesn't actually take up 40 hrs/wk so I have extra time and a restless mind. I would like to work on projects or even just volunteer for places that need programming help and have an impact.

    For example I knew a guy in college who worked for Veteran's Affairs, automating some disgustingly slow process that didn't need to be slow at all (talkin process would take weeks when it could have been taking hours) and helped almost clear a backlog so veterans could get their requests processed in a sane amount of time.

    Another example is ClearMyRecord by Code For America. It helps people automatically request expungement of small marijuana related arrests and charges in a bunch of California counties since weed is legal now in CA and the request process is unnecessarily cumbersome.

    I'd love to work on a project like one of these in my spare time but have no idea how to go about finding such a project. I feel like a lot of them require niche knowledge about what is lacking in some non-tech industry so I don't even know where to start....

    Any ideas?

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

    A little help on turning words/numbers in images into text.

    Posted: 15 Apr 2021 08:46 PM PDT

    do you guys have any ideas/resources on how to make a program that scans an image or screen and outputs the words and numbers seen onto a separate txt file. I don't even know how to begin, i feel like python would be the best tool but i have no clue. if you guys have any videos/recourses/recommended languages or libraries to use it would be much appreciated. I'm obviously a novice.

    submitted by /u/The-3rd-Party
    [link] [comments]

    Does anyone know of a developer & CI friendly platform like Zapier?

    Posted: 15 Apr 2021 08:18 PM PDT

    Hey all,

    Platforms like Zapier make it super easy to integrate different services and APIs. However they've gone down the full no-code path and do not offer an API, CLI or any programmatic way to deploy "zaps" using automated means.

    Does anyone know of a platform that does? Ideally I'd love to be able to configure integration steps using YAML, JSON or another config format that could be committed to git and be able to be deployed via automation/CI platform.

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

    What is the use for dynamic JSON?

    Posted: 15 Apr 2021 11:08 AM PDT

    Right now I was looking at the Reddit API json and a lot of the properties include dynamic names. It just seems like a huge pain to have to take all those into account rather than just giving it a normal name. Couldn't they just move this dynamic name to a ID property?

    Is there any benefits it being dynamic? What's the use case?

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

    C++ Exceptions (passwords)

    Posted: 15 Apr 2021 07:46 PM PDT

    Hello I am thinking of making a code where the user will input a password but it has to have atleast 10 characters, a number, a lowercase letter, an uppercase letter, and special characters. Does anyone have an idea how to do this? I'm not sure if i should use strings or character arrays, or maybe have a while loop or for loop or if else statement? Thanks! :))

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

    What exactly is the difference between greedy algorithms and brute-force ones ?

    Posted: 15 Apr 2021 03:05 PM PDT

    Programming language for cryptocurrencies.

    Posted: 15 Apr 2021 06:45 PM PDT

    Hello guys,

    Soon I'll be finishing high school, and I have in mind to start studying programming as it's something I've always been interested in. 2 years ago I used to go to programming courses for javascript, and I honestly really liked it! So it's something I've always had in mind for my future. And lately I started getting started in the cryptocurrencies world. And I'd love to focus my carrier around them. So what would be the best programming language to learn for crypto? (Java, C++, Javascript, Pyton...)

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

    How can I make a twitter bot that auto tweets up to thousands of times with the same tweet

    Posted: 15 Apr 2021 06:18 PM PDT

    The bot would spam this on its own account. I want to do this for a friend that wants to drown out his name from google images so ideally this would have an image attached. I'd like to know how this can be done please point me in the right direction. His name is unique so I feel like this is doable.

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

    Why the syntax "let" is not so prevalent in compiler design? What are the pros and cons of the syntax "let" ?

    Posted: 15 Apr 2021 06:01 PM PDT

    I've only seen few PL who uses the syntax "let" in their compiler design, like in Rust, BASIC and Clojure. What are the pros and cons of syntax "let"? Is their any advantage to the user when coding with let expression? Why other programming languages are not implementing the syntax "let" ? Thanks.

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

    How do you activate something a set number of messages have been sent in Discord?

    Posted: 15 Apr 2021 12:48 PM PDT

    I am trying to make a discord bot that acts as a basic RPG and I am trying to get enemies to spawn after a certain number of messages sent. I am on a server that uses pokebot and they do something similar of what I am trying to do.

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

    Do any of you remap your keys?

    Posted: 15 Apr 2021 04:21 PM PDT

    Pressing the control and shift a lot has aggravated my pinky a lot. Was wondering if anyone had any places where they move their keys. I moved control to caps lock for now, but I'm not sure where to put the shift button.

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

    Looking for functional programming exercises around arrays and collections

    Posted: 15 Apr 2021 04:20 PM PDT

    What are some good data sources and exercises to practice functional programming methods, transformations, computations in any language? namely map, reduce, filter, sort, search functions in javascript, java, ruby languages

    it can be an array, json collection, dictionary or any type of collection, nested, complex or otherwise

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

    What's the best way to modify a list of numpy datetime64 objects through finding the time deltas of consecutive objects in the list?

    Posted: 15 Apr 2021 04:10 PM PDT

    I have a list of numpy datetime64 objects, like so:

    time_list_array = [numpy.datetime64('2021-01-01T07:23:00.000000000'), numpy.datetime64('2021-01-01T07:25:00.000000000'), numpy.datetime64('2021-01-01T07:26:00.000000000'), numpy.datetime64('2021-01-01T07:27:00.000000000'), numpy.datetime64('2021-01-14T16:27:00.000000000')] 

    I want to loop through this list and modify it in a specific way.

    Essentially, any time the difference between two datetime64 objects next to each other in the list is more than one minute, duplicate that datetime64 object and place it after the original one in the list.

    Any time the difference between two datetime64 objects next to each other in the list is equal to a minute, move on to the next datetime64 object in the list until you come across a difference that is more than a minute. Then, take the first datetime64 object and the last datetime64 object in that range and place them next to each other.

    So, my final time_list_array would look like this:

    time_list_array = [numpy.datetime64('2021-01-01T07:23:00.000000000'), numpy.datetime64('2021-01-01T07:23:00.000000000'), numpy.datetime64('2021-01-01T07:25:00.000000000'), numpy.datetime64('2021-01-01T07:27:00.000000000'), numpy.datetime64('2021-01-14T16:27:00.000000000'), numpy.datetime64('2021-01-14T16:27:00.000000000')] 

    Notice how the 1/1/21 7:23:00 datetime64 object was duplicated and added directly after the original. Then, the range from 1/1/21 7:25:00 through 1/1/21 7:27:00 in the original array was shortened to just a start time and end time. Finally, 1/14/21 at 16:27:00 was once again duplicated and added directly after the original.

    This needs to be formatted in this way to be exported to a txt file and consequently used in an online software program that only accepted txt files in a very specific format.

    I have tried to find the time delta of time_list_array like so:

    time_list_array_delta = np.diff(time_list_array) 

    And then find the difference in minutes:

    minutes = time_list_array_delta.total_seconds()/60 

    But keep getting an error:

    AttributeError: 'numpy.ndarray' object has no attribute 'total_seconds' 

    I may be totally off base with my methods, however. Any help would be much appreciated!

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

    What are the usage and difference between "Hot Swapping", "Hot Code Reloading" and "Live-Reloading"?

    Posted: 15 Apr 2021 08:36 AM PDT

    I"ve read from different articles that Erlang and Elixir support "hot swapping" while Nim and Vlang supports "hot code reloading" at runtime and then there's "live-reloading" in Golang. Technically speaking, what are the usage and differences between "hot swapping", "hot code reloading" and "live-reloading"? Thanks.

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

    Transitioning from frontend to backend.

    Posted: 15 Apr 2021 03:32 PM PDT

    I am currently a "full-stack" developer, primarily in Angular, React, NodeJS. However I work 90% in the front-end and have found much more satisfaction working in the backend. Although I like the full-stack monicker, my company provides little opportunity for me to transition to the backend for the foreseeable future. What can I do to prepare myself for another job as a backend engineer?

    Note: I do not have a CSS degree.

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

    so i dont know a lot about coding

    Posted: 15 Apr 2021 07:11 AM PDT

    I just started this rpg and i want to make a small program that could just hit a button every 10 seconds or everytime the cooldown ends and after that if a certain window pops up to press it, could i make that and what should i use?

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

    What should a backend developer know of before going in an interview?

    Posted: 15 Apr 2021 10:35 AM PDT

    I am fairly new in the field of programming, I am currently applying for jobs for a Junior Developer, I have a little bit experience ASP. NET MVC 5, Web APIs and mostly worked with Core PHP and it's frameworks, specially Laravel. I am also learning Flask. What are the basic concept I should know before going or even applying for a job/interview? I do have basic knowledge of Pillars of OOP, Aggregation, Composition and Association, a bit familiar with Web APIs, Design Patterns and Project Management stuff. Most of it is self learned.

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

    Arbitrary Precision Arithmetic

    Posted: 15 Apr 2021 01:13 PM PDT

    Hi, all. There seems to be a great lack in resources for learning how to implement Arbitrary Precision arithmetic, specifically division.

    I'm working in a programming language that has no libraries for big numbers, and the only data types are doubles and strings. The language is GML (GameMaker Language).

    Language choice doesn't really matter in my case. Using resources online, I've managed to get addition, subtraction, and multiplication working. I'm creating this class for use with AES and RSA, neither of which have solutions in my target language. I cannot figure out division, modulo, exponentiation, or modular exponentiation. If anyone has any algorithms for these in C, C#, C++, Java, or Javascript, it would be greatly appreciated.

    I have looked at the implementation of BigInteger in Java and somewhat at GNU, but they are both so enormous and intimidating. I'm no beginner, but I don't even know where to start.

    Thank you for reading and for any help you can provide. I will create a YouTube series on Arbitrary Precision arithmetic once I can get most operations solved. Roots and fractions are not something I necessarily care about at this time, but having more operations never hurts.

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

    Best language to code a stock trading interface?

    Posted: 15 Apr 2021 12:50 PM PDT

    Looking for the simplest way too. I want to mess around with the design portion of a potential stock trading interface mainly.

    So for simplicity reasons I'd just code it to show one specific company (for now) and can just go into the code if I wanted to use another company.

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

    No comments:

    Post a Comment