• Breaking News

    Thursday, June 3, 2021

    My teacher ghosted me and now I need someone to interview who works in the general field for my final project Ask Programming

    My teacher ghosted me and now I need someone to interview who works in the general field for my final project Ask Programming


    My teacher ghosted me and now I need someone to interview who works in the general field for my final project

    Posted: 03 Jun 2021 12:37 PM PDT

    TLDR;I need someone to answer the questions at the bottom

    So for my class we need to interview someone in the general field of what we wanna do in the future. Now I don't know computer programmers so I asked around and found out my school has a programming teacher. Anyway I messaged him, three days later I got a reply and after a week of this I finally set up a date and time that works with both of us. Except he decided to ghost me on the day of the interview (yesterday). Anyway this portion of the project is due tomorrow afternoon and my only programmer is gone.

    So basically I turn to the only large group of programmers who might answer this so I can pass my course.

    1. What kind of skills are required to become a computer programmer?
    2. What would you say the hardest part of being a computer programmer is?
    3. Could you give an example of a difficult problem you struggle with often in this field
    4. How would you say success is measured in this field?
    5. When starting a new project what do you usually like to start with first, organizing how everything is going to be or diving straight in?
    6. What advice would you give to people who are interested in pursuing this career?

    Also please include a pen name of some sort cause I have to cite a person
    Thanks in advance.

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

    Need to regex 5k files on desktop Windows to a text file?

    Posted: 03 Jun 2021 11:58 AM PDT

    Have: Windows desktop with a folder containing 5k raw html files.

    I need to regex a single text block out of each file in this folder between "<script>" and "</script>", and then put this all into a text file with each text block taking 1 line (so 5k lines total in the text file).

    What's the best way to do this on windows desktop? is python ok or should I use java? is this beginner friendly or professional level? how long would this take you to program?

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

    What would you learn if you happen to be "naturally" inclined to being good at fixing bugs?

    Posted: 03 Jun 2021 09:48 PM PDT

    I know debugging is really big part of coding, I'm experienced enough to fix things when broken, I noticed I'm naturally good at fixing stuff, maybe even better than I'm actually building.

    In general I code a bunch of languages when needed, is there anything specific in the area of debugging I could look at? How demanding is this area? I have fixed bugs on github before and often answer questions on stack, but I wonder if there is something else I can learn on this path.

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

    I'm trying to make a method that waits a few seconds before a message is output. It works the first time but after that it just spams out the messages with out waiting the specified number of seconds. I'm not sure why it is doing this.

    Posted: 03 Jun 2021 09:33 PM PDT

    var waitOutput; function wait(whatsWaited, seconds = 1000, outputXTimes = 1){ client.on("message", msg => {

    if(resetWait != outputXTimes) { resetWait++; waitOutput = setTimeout(function(){ msg.channel.send(whatsWaited); }, seconds); return waitOutput; } 

    }) }

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

    How advanced is this Python task?

    Posted: 03 Jun 2021 04:28 AM PDT

    My friend is trying to get this case study complete. Just wondering what would be a good way to go about it as I want to learn code myself and might use this as practice. Would a Python coder make 4 separate programs to run these calculations?

    https://imgur.com/2LprkTE

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

    How to count number of occurrences within a recursive method in java

    Posted: 03 Jun 2021 09:06 PM PDT

    The question is NOT about counting something using recursive method.

    It is about counting number of that which satisfies certain condition within each call of recursion.

    For example, given a pseudo-code:

    public static double CollatzConjecture(int n){

    int numPrime = 0;

    int numNonPrime = 0;

    if n is 1 --> return numPrime / numNonPrime;

    else if n is even --> n = n / 2;

    else if n is odd --> if n isPrime --> numPrime ++;

    else --> numNonPrime ++;

    n = 3n + 1;

    CollatzConjecture(n);

    }

    The code is designed to return the ratio between the number of primes and the rest of odd numbers in a given calculation according to collatz conjecture.

    Here, I want to count the number of occurrences of prime and non prime numbers until the recursive call reaches base condition--n is 1--and then calculate the ratio between those counts.

    I want the method in STATIC.

    I can't figure this out. HELP ME.

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

    How to index inner loop item a[j] without using "The loop variable of the inner loop is not used to index !"

    Posted: 03 Jun 2021 08:14 PM PDT

    Hint from original Question: Your function should have one loop nested in another. The outer loop iterates through the elements of P. The inner loop iterates through the next sequence of A. The upper bound of the inner loop is the absolute value of the current element of P. The lower bound of the inner loop is 0. The loop variable of the inner loop is not used to index A!

    **My Question** => How to index inner loop item a[j] without using "The loop variable of the inner loop is not used to index A!"

    ### Here is my answer code ###

    public static int matches(int[] a, int[] p)

    {

    int pSum = 0, isMatch = 0;

    for(int i=0; i<p.Length; i++)

    {

    for(int j= 0; j< Math.Abs(p[i]); j++)

    {

    if (p[i] > 0)

    {

    if (a[j] < 0) return 0;

    else isMatch = 1;

    }

    else if (p[i] < 0)

    {

    if (a[j] > 0) return 0;

    else isMatch = 1;

    }

    }

    if (p[i] < 0)

    {

    p[i] = Math.Abs(p[i]);

    }

    pSum += p[i];

    }

    if (pSum == a.Length) isMatch = 1;

    else isMatch = 0;

    return isMatch;

    }

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

    Project ideas which involve a good amount of math?

    Posted: 03 Jun 2021 03:31 PM PDT

    Hey, I am a student who hopes to start his career off with a fintech role next year. In hopes of that, I want to build a nice project for my CV which highlights my math and programming skills. I also want to learn about testing because that's something I still have no idea about.. Will be using Java, or maybe even C++.

    So, i'm looking for project ideas, but I don't mean like a simple calculator or a to-do list, i mean something rather large and complex. I don't mind spending even a few months on it, I'm just not a very creative individual so I'm asking you for help.

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

    What programming language should I use?

    Posted: 03 Jun 2021 06:28 PM PDT

    So my cousin wants to build something that is like in a sense Reddit + Facebook but it works as a security website. The website offers lost and found missing pets and people what should he use?

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

    Rough estimate of packet collisions frequency in TCP

    Posted: 03 Jun 2021 06:17 PM PDT

    I know this question probably doesn't make a lot of sense since it depends on a number of factors but I was curious to know a very rough estimate (or at least order of magnitude) on how often do TCP packets collide in the "wild" internet. Let's imagine I am just browing the web for one hour and using a cabled connection. How many packets during that hour will collide and have to be resent? Are we talking about 0.001% or 10%? Is there a paper or article expanding on this? And to expand, how many packets will fail to reach the destination on the first try for whatever reason?

    Thanks.

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

    Java, spring boot vs Node and Express

    Posted: 03 Jun 2021 01:28 PM PDT

    What are the pros and cons of each ?

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

    Any web developers who have no designing experience?

    Posted: 03 Jun 2021 04:37 PM PDT

    I have been a full-stack developer for around 2~3 years so I have a pretty good understanding of what to do for a web project. However, when it comes to designing (making landing pages for example) I get very lost as to where to begin. Let's say, for example, you are trying to create a web application for your self PR and blog. Do I have to go through wireframing / designing process to make a clean-looking website? I know there are templates available, but I was wondering if anyone has tips and tricks for launching a neat website as a person who has no experience in designing.

    Thanks for your help!

    PS> If you use templates, could you give me some recommendations?

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

    Best way to develop a Windows and MacOS desktop app for someone used to C# and Winforms

    Posted: 03 Jun 2021 02:42 AM PDT

    I'm looking for a good combination of IDE/language/framework to make a multiplatform desktop app for Windows and MacOS with a GUI editor.

    I'm used to programming in C# and I mostly use Winforms. Visual Studio makes it really easy to develop desktop Windows apps. I also know C/C++, Java and Python. I have a very basic knowledge of web development (HTML, CSS, JS, PHP).

    For C#, MAUI certainly seems like the perfect solution, but it won't release any time soon, there's only Xamarin which doesn't seem to support MacOS. I've checked UNO and Avalonia, but I'm not sure about them.

    For Java, JFX is great, except that it's no longer part of the main Java and you need to make sure the end user has the libraries, instead of making a simple to compile, deploy and open app.

    For Python, I can't find anything modern with GUI editor. Same with web, where the default option seems Electron.

    Do you know a better way to do this?

    I also need a way to compile the MacOS build from Windows, should I use a virtual machine or is there a better way?

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

    Best program to learn to code robots(Arduino)?

    Posted: 03 Jun 2021 11:21 AM PDT

    I recently bought a robotic arm and am looking for help in learning to programming it. I've tried looking for boot camps or classes of the sort to help in learning but have achieved no results. Does anyone know of any good classes, specifically in Arduino? Preferably in a physical class and not online.

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

    How would I go about engaging a freelance iOS developer who specializes in the camera? I have an idea that I want to build an MVP for and pay a potential hourly rate.

    Posted: 03 Jun 2021 01:43 PM PDT

    Setup git for ssh where repos are already cloned via GH Desktop

    Posted: 03 Jun 2021 12:46 PM PDT

    I've been using GitHub Desktop for a few years and have repos already cloned through that. However, I'm trying to start using git bash more so I can better understand the process. But, I'm getting hung up on the authentication to git push\git pull to\from the remote. I've already gone through the process of creating an ssh key via ssh-agent and have added that to GitHub. but, I'm not sure what to do from here.

    1. Do I need to delete the existing repos and re-clone them via ssh to enable ssh in the repo?
    2. Is this configured per repo or is\can this be global in git (such as git config --global)?
    3. Also, will doing any of this cause issues with GitHub desktop authenticating?
    submitted by /u/MeGustaDerp
    [link] [comments]

    Google sent me an email with what appears to be working Javascript. How is that possible when sending emails?

    Posted: 03 Jun 2021 12:22 PM PDT

    It's an advertisement for the new Pixel Buds Series-A. The email includes a form where I can choose the style of bud (clicking the gray option changes the image in the email to a gray pair of buds). There's also a button which links to a checkout page with my cart already filled.

    Any idea how Google is embedding functioning JS buttons in email?

    submitted by /u/Apart-Tie-9938
    [link] [comments]

    C# WinForms : How to center a form on another form regardless of the position.

    Posted: 03 Jun 2021 12:15 PM PDT

    I have 2 forms. FormA and FormB, both have fixed sizes and can't be resized. I have a button that I click and it opens FormB, I would like FormB to always open at the center point of FormA no matter where FormA is positioned. How could I achieve this?

    Edit: I actually managed to solve my own question after a bit of research.

    Here is the code just in case anyone else stumbles upon this post.

    using System; using System.Collections.Generic; using System.Drawing; using System.Runtime.InteropServices; using System.Windows.Forms; namespace WindowsForm { public partial class FormA : Form { public Form1() { InitializeComponent(); } private void CenterFormBToA() { // Always centers formB to middle point of FormA formB.Location = new Point( this.Location.X + this.Width / 2 - formB.ClientSize.Width / 2, this.Location.Y + this.Height / 2 - formB.ClientSize.Height / 2); } // Button pressed event that calls the center method and shows formB. private void formB_Click(object sender, EventArgs e) { CenterFormBToA(); formB.Show(); } } } 

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

    Predicting Stock Price Program Error Help (Keras/TensorFlow/Python)

    Posted: 03 Jun 2021 12:09 PM PDT

    Can anyone help with fixing this error? I'm working on NeuralNine's Predicting Stock Price in Python video and I'm following exactly what he's doing, but for some reason I keep getting this Value Error.

    # Make Predictions on Test DataReader

    x_test = []

    y_test = []

    for i in range(prediction_days, model_inputs.shape[0]):

    x_test.append(model_inputs[i - prediction_days:i])

    y_test.append(model_inputs[i, 0])

    x_test, y_test = np.array(x_test), np.array(y_test)

    x_test = np.reshape(x_test, (x_test.shape[0], x_test.shape[1], 1))

    predicted_prices = model.predict(x_test) # note that now the prices will be scaled

    predicted_prices = scaler.inverse_transform(predicted_prices)

    Error:

    raise ValueError("Found array with dim %d. %s expected <= 2." ValueError: Found array with dim 3. Estimator expected <= 2.

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

    Anybody work with Adobe Program projects? Or .MOGRT files?

    Posted: 03 Jun 2021 09:38 AM PDT

    Excuse my naivety, I'm not all too familiar with coding. I'm wondering if anybody knows if .MOGRT files can be read outside of Premiere/After Effects? .MOGRT files are templates that Premiere can use to edit After Effects templates.

    I'm hoping it's possible for a website to be able to read these files, and display them on the page. I'm hoping that it's possible to input text to a text field, or upload an image, and edit the .MOGRT with a live preview.

    If anybody knows if this is possible that would be great, we're looking to hire someone to make this happen!

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

    Moment.js incorrectly displaying time

    Posted: 03 Jun 2021 09:23 AM PDT

    I have a moment.js object made in EDT time zone, testTime where if I do console.log(testTime) I get 2021-06-03T13:00:00Z (ie 1PM). However, when I do testTime.local().format('MMMM Do, YYYY h:mm A z')), even though I am still in EDT it displays June 3rd, 2021 9:00 AM.

    I'm really confused about this bug

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

    Multithreading in real life

    Posted: 03 Jun 2021 09:15 AM PDT

    Hi, I will do a presentation in the next week about multithreading in real life, but I need to know what are the real life examples of multithreading? ( They don't want a very complicated example, an easy but good one will be great ) what do you recommend me to search? Any help will be great, thanks

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

    I am a recently self taught programmer, what next steps should I take?

    Posted: 03 Jun 2021 03:04 PM PDT

    I appreciate any sort of feedback whatsoever, thank you to everyone for taking the time to help me out. Here is my story as well…

    https://youtu.be/CJ76ksOF5zE


    [link] [comments]

    please recommend a codeblocks alternative easy to use

    Posted: 03 Jun 2021 06:40 AM PDT

    I have been using codeblocks for c for some time now.It is easy to use and install.But it lacks dark mode and hurts my eyes.please recommend a good ide.i tried installing vs code and eclipse but both of them did not run programs even after installing mingw.i dont know maybe i did somthing wrong.please recommend something easy to install

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

    No comments:

    Post a Comment