• Breaking News

    Wednesday, September 8, 2021

    What were some unnecessarily difficult requests by clients that you managed to get away from by offering an easier solution that solved the problem? Ask Programming

    What were some unnecessarily difficult requests by clients that you managed to get away from by offering an easier solution that solved the problem? Ask Programming


    What were some unnecessarily difficult requests by clients that you managed to get away from by offering an easier solution that solved the problem?

    Posted: 08 Sep 2021 10:10 AM PDT

    Just wondering if there are such examples

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

    What to expect in degree internship?

    Posted: 08 Sep 2021 07:41 PM PDT

    To explain, I am in my last semester for diploma not degree, for the final sem, we are to do internship for 6 months. The story is through some connections I got myself a spot but originally it is for degree not diploma level. Question, now the date to report myself is getting close and im not confident. i feel im really underqualified for this.

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

    Discount

    Posted: 08 Sep 2021 09:06 PM PDT

    I've been learning to program for a couple of months now, and I found a website that shows the recent discounts in a specific retail store. How do you think that they obtain this? I also want to make a program to learn the newest discounts of these retail stores. What language do I need to know, and can a beginner make a program to learn the newest discounts in a store? The website is https://brickseek.com

    Note: I don't want a create a website that is complex like the website. A simple program and website are more than enough for me. Thanks in advance!

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

    Writing Python Function that returns Two integers in Collatz Sequence

    Posted: 08 Sep 2021 07:46 PM PDT

    I have my collatz sequence python code but i need to add code to return two integers as such,

    First returned value: for each integer k, 1 ≤ k ≤ m, the maximal integer in the Collatz sequence for k is computed and the largest of these numbers is returned.

    Second returned value is the integer k, 1 ≤ k ≤ m, whose Collatz sequence has the largest maximal member. In case there are several such numbers, return the first one (the smallest).

    For example, maxValue(10)returns the numbers 52 and 7 Which means that among the numbers 1, 2, 3,…, 10, seven has the largest maximal number in its Collatz sequence, and that number is equal to 52.

    I am stuck on how to go about adding this to my already made Collatz python code.
    ill post my already made python code in comments

    go easy i am very new at this, thanks

    submitted by /u/Various-Pumpkin-8526
    [link] [comments]

    Is node.js similar to php?

    Posted: 08 Sep 2021 07:45 PM PDT

    According to google, node.js is, "an open-source, cross-platform, back-end JavaScript runtime environment that runs on the V8 engine and executes JavaScript code outside a web browser."

    And to be honest, that doesn't mean much to me. After some more googling, it seems like node.js is similar to php.

    I have used php in the past, and the way it works is when some user requests a web page the server will process the php code in the page before sending it to the user.

    Is this basically what node.js is used for? Does it work basically the same way? Or am I completely missing something here?

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

    What should I learn?

    Posted: 08 Sep 2021 03:25 PM PDT

    Hello guys! I've been coding for a bit and like i can make small apps etc. But I was thinking what are some must know things that a programmer should know? Like data structure and algorithm etc if you want to become a good software engineer? And if you don't want to look dumb at interviews 🤣 or at work?

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

    Lua (on Linux): how to point 'require' at a lua script

    Posted: 08 Sep 2021 06:43 PM PDT

         I have a lua file, call it 'main.lua'. I have another lua file, call it 'module.lua'. Those two files are in the same directory. I wish the former to be able to use functions from the latter, broadly in the manner of the command in the Bash language that is calledsource. I am having a devil of a time!

         I gather that I need syntax of this form:

    local myModule=require( 'myModule.lua') 

    Then - after employing that syntax - I believe that I should be able to call a function from 'myModule.lua' by doing myModule.myModuleFunction. So far so good - in theory.

         In practice, lua cannot find my 'module', even if I replace /s in the path with .s, even if I remove all space characters from the path, and no matter where - within reason - I put the file. I say 'within reason' because the lua interpreter tells me it searched various paths that our outside my /home, but I want to use a path within /home. I read - on some not-very-helpful webpages that I found - that there is a way of placing the module under the path of the calling script; but I cannot get that to work.

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

    1 KB or 1 KiB == 1024 bytes?

    Posted: 08 Sep 2021 08:50 AM PDT

    When I went through school, I was taught that a kilobyte was 2^10 bytes (1024), a megabyte was 2^20 bytes. and so forth.

    I recently had someone correct me that I should be using the term Mebibytes instead of megabytes unless I was trying to refer to a base-10 order of magnitude (1000, 1000 000 etc).

    I've seen this term before floating around online, but honestly never paid much attention to it, and in the work I do (front end web dev), the distinction has never confronted me (perhaps due to my ignorance)

    What term do you guys use to refer to the power of 2 based sizes? Kibi- Mebi- Gibi- etc. or the more traditional Kilo- Mega- Giga- and so forth?

    Thanks.

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

    keyframes animation generator for CSS ?

    Posted: 08 Sep 2021 05:54 PM PDT

    Hello, I am looking for software that allows for creating sufficiently complex `keyframes` animations for `CSS`. There are a bunch online, but almost all of which I have found are personal pet projects without the inbuilt functionalities I would hope for (like dragging objects responsively for instance).

    I am trying to design a `keyframes` animated clickable box that would go underneath my 2 chains (gifs) in the following gif:

    https://i.gyazo.com/2dee5e30b2332b6ad03850c9ec5b485c.mp4

    Any ideas ? Thank you in advance.

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

    I’ll always wonder if the higher ups, architects/staff just let me flounder so I’ll figure it out myself

    Posted: 08 Sep 2021 05:13 PM PDT

    Prime example: oh so all the parts work on their own, so the system as a whole should work then? Goes all the back to Aristotle

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

    Several years of experience and still feel like a novice

    Posted: 08 Sep 2021 10:19 AM PDT

    I've had mad impostor syndrome at my current job for the last year or so. I've been at the company as a software dev since 2018, and have been doing software development in general since 2017 after doing a CompSci course at university.

    I've been working with largely the same codebase for the last year (React, TypeScript, backend stuff mainly Java Springboot), but I still feel like I don't know how any of it works or how to do seemingly similar tasks to the ones I've done before. What would you recommend to help me feel like less of a noob because it's really starting to stress me out?

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

    csplit regex

    Posted: 08 Sep 2021 03:17 PM PDT

    Hello,

    Im stuck trying to get the correct regex for the unix/linux csplit command on an existing outfile. im trying to split using the ] \n } as my delimiters. I've tried using regex syntax tester sites, those were able to get the patterns I was looking for but the command isnt picking it up, seeking answers or pointers. Much appreciated.

    outfile contents

    { resources: [ stuff: "value", stuff2: "value" ] } { resources: [ stuff3: "value", stuff4: "value" ] } 

    command:

    csplit --quiet --prefix=x outfile '/\]\n}/+1' '{*}' 

    expected output:

    new file for each json block:

    file x00: { resources: [ stuff: "value", stuff2: "value" ] }

    file x01: { resources: [ stuff3: "value", stuff4: "value" ] }

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

    Heroku dyno worker working slower than expected

    Posted: 08 Sep 2021 03:57 AM PDT

    Hi Reddit,

    I have a Vue, Django integrated project. I hosted the Vue project on Netlify and the Django project on Heroku. A python script (integrated into Heroku) is called on certain buttons which extract data and posts this to the Django API and PostgreSQL database to be viewed on the frontend.

    Now the dyno's in my Heroku project take the tasks to run the python script in the background. With the free dyno plan, i had one worker dyno to finish the background processes. For testing purposes, I selected the professional dyno plan, with two workers and one web dyno. Then I made sure two background processes could be run simultaneously on the two worker dyno's. I do not get any errors or something, but the two background processes now take double the time of the one background process with the one worker dyno on the free dyno plan. (So instead of 250 seconds for one process on one hobby dyno, it now takes 500 seconds for one process on each of the two professional worker dyno's )

    Does anyone have any suggestions for this?

    Thanks!

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

    Is this .NET course useless?

    Posted: 08 Sep 2021 01:58 AM PDT

    EDIT: I just realized it's hard to say off of this if it's entirely "useless" but I was more wondering if the outdatedness is like a "red flag"

    Hey all. Sorry in advance if this is the wrong subreddit to post in.

    The school semester is now underway and I'm in a Computer Info Systems (web development and programming) major in a local community college. It's basically CIS with none of the finance courses and none of the math of Computer Science, but instead focuses almost purely on programming languages and web development fundamentals (ignore the overabundance of liberal arts classes; I switched into this major after a semester of English Literature). I've sort of been thinking of just buckling down with the math (I'm bad at it) and getting through an actual Computer Science degree, but it's really intimidating to me because the highest level of math I've completed is Algebra 2 in high school...about 7-8 years ago. And that was barely passing.

    I'm happy with this major so far. I like my teachers and the classes I took last semester seemed pretty useful to me. However, this .NET class kind of has me thinking...basically, it's an online course I'm taking and I'm skimming the powerpoint for the first chapter. I realized, however, that the copyright on the bottom is all the way from 2016. The first assignment actually says as one of the objectives:

    • Explain the use of Visual Studio 2017 when developing Visual Basic 2015 program

    This is making me question if this class is going to be out of date and, to be blunt, useless. I already have Visual Studio 2019 because I used it for my C++ class last semester so I don't understand why I should be working with an old version of Studio and I assume an outdated version of Basic. The C++ class was great, and this web development class seems like it's going to be pretty good too, but the .NET class is really making me second guess some things to say the least (like, as I said earlier, if I should switch into an actual CS major after all).

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

    SQL User Requests to HTML Table

    Posted: 08 Sep 2021 12:25 PM PDT

    Hi, I have a SQLite database and a HTML site. I want users of the site to be able to see my database in table format and for them to be able to use multiple drop downs as filter which will then filter the table and output the results of their parameters in the table.

    For example, if my database was of animals and contained information such as the type of animal and age, the users could filter by type of animal and the age of the animal and it would sort the table as such and remove everything that does not fit these parameters.

    I am very new to this and this is my first project so any help would be great :) THANKS!

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

    Trying to make an auto-search function that populates and runs when a page refreshes a specific field

    Posted: 08 Sep 2021 12:12 PM PDT

    Basically I work selling roofing, siding, and windows, and I want to make a small program that will basically take the address as it populates in our dialer, and have it automatically plug said address into zillow so I can pull up a buildings details as I reach out to specific customers for their needs. The issue is I am only at a basic skill level in Python/HTML5/CSS and our dialer uses a mix of Java/HTML5/CSS and pulls info from a .csv that we upload ourselves.

    Would I be looking to do this as a stand-alone batch file or as a chrome web-extension? Never done this kind of thing before but really want to as it's a fun a challenging small project that will make my life just a smidge easier

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

    Can I use machine learning to detect a presence of a person in a room?

    Posted: 08 Sep 2021 10:29 AM PDT

    For a school project, I am considering making an app that tells you whether there is a person in the specified room or not. I will most likely have a PIR motion sensor, an arduino and a Wifi module, all of which will send pings to the backend whenever someone moves. My question is: Is it possible to use machine learning or something similar to process the data and predict if a person is in the room? If so how should I go about doing it?

    I am a beginner when it comes to machine learning and want to learn it. And I am aware that a simple algorithm will suffice but I want to have fun using machine learning.

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

    Using args detection in C#

    Posted: 08 Sep 2021 10:19 AM PDT

    Hello. I am trying to code an app in C# (VStudio) that will do this :

    1. I open the app
    2. I type something like hi people
    3. It will save arg0 which is hi and arg1 which is people

    Can you help me with that ? I tried some tutorials on the internet but I think it never detects what I write because when I tried to write arg0 with Console.WriteLine it said Index was outside the bounds of the array.

    Thanks.

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

    Best way to start learning online mobile dev?

    Posted: 08 Sep 2021 09:55 AM PDT

    I want to start mobile dev, I was thinking about making a simple gym app, where you can login and see your data, exercices, etc. Which framework/language is the best to start learning? I already have some knowledge in java, js, html, css...

    submitted by /u/Different-Ad-9831
    [link] [comments]

    [C#] What's the best way to logically group a large number of methods?

    Posted: 08 Sep 2021 09:31 AM PDT

    I'm developing a module/library for interacting with a website through its API. Since the API only has a single endpoint and it responds with a huge JSON object containing all of the user's data I'm writing a series of methods in order to interact with the object made from ~10k lines of response.

    Since virtually all of my methods follow the naming pattern GetX where X is a nicely formatted subset of the dataset I was wondering what the best way to group them by concern would be. Many advised me to leave it as it is but since the number of methods is ever growing and is in the tens I thought that maybe a separation by concern would be better.

    My first idea was creating some classes named after the main areas on interest, say something like Account or Language, assigning them those methods and calling them like MainClass.Account.GetAccountData() but I was advised against it because it would be unorthodox. Others suggested I use extension methods and that too could be a valid way of doing it but in order to separate them in groups and have them show up in IntelliSense in the form of MainClass.Account.GetAccountData() I think it would end up being contrived.

    What I'm mainly asking of you guys if there's a tried and true way to group large numbers of methods, in order not to pollute IntelliSense suggestions and better separate concerns when it comes to maintaining code.

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

    What programming language would you use to create infinite maths questions?

    Posted: 08 Sep 2021 05:25 AM PDT

    There are a few websites that create infinite maths questions - the questions have the same template but the numbers/algebra changes.

    These are the types of questions I would like to create - https://imgur.com/a/KtXhKOz.

    They can be refreshed for a new set of similar (or more difficult) questions.

    I understand I would need a HTML frontend... but I have no idea what programming language people use for this sort of app. Can anyone recommend a good solution?

    Any help would be much appreciated! Thanks!

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

    Help with tutorial for NFT creation

    Posted: 08 Sep 2021 09:09 AM PDT

    Hello! I was hoping someone could help me as I'm trying to follow this tutorial

    https://www.youtube.com/watch?v=UCxA8sDltMY

    But am running into problems that aren't happening in the tutorial even though I'm following it exactly as mentioned.

    Here is a photo of my first error which happens when I run "npm install" https://ibb.co/T0Xn8tt

    Which then leads me to more problems down the line. Any help would be awesome!

    Thank you in advance 🙏🏼

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

    Vector Graphics

    Posted: 08 Sep 2021 09:09 AM PDT

    Anyone know how to do vector graphics in C++ with Vulkan?

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

    Difference Between Array Declarations In Java

    Posted: 08 Sep 2021 02:53 AM PDT

    Hello!
    So, what I wanted to ask is: what's the difference between using:

    int arr[] ={1,2,3};

    And using:

    int arr[] = new int[]{1,2,3};

    is it similar to C++'s int *arr = new int [3]{1,2,3}; where you're declaring a pointer to the array instead of int arr[] = {1,2,3}; where you're actually declaring the array? or is it something different altogether?
    Thank You!

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

    No comments:

    Post a Comment