• Breaking News

    Sunday, October 3, 2021

    I can't make the double linked list my assignment is requesting, is this a bad sign for me as a programmer? Ask Programming

    I can't make the double linked list my assignment is requesting, is this a bad sign for me as a programmer? Ask Programming


    I can't make the double linked list my assignment is requesting, is this a bad sign for me as a programmer?

    Posted: 03 Oct 2021 04:06 PM PDT

    We're being introduced to doubly linked lists and I have an assignment I've been working on for about 20 hours now, and I still can only pass half of the JUnit tests (means I will get less than 50% on the assignment). I've been banging my head against the wall for so long now I'm just totally lost. Everyone in the Slack discussions in my classroom seems to be passing all the tests without issue. Is this a bad sign for me as a programmer?

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

    What does the word "core" mean in the software world?

    Posted: 03 Oct 2021 03:12 PM PDT

    Hello, I often see the keyword "core" being used. I can't think off the top of my head in which instances I have seen it, but I know for example there is "babel core" or ".NET core".

    Does core mean anything specific in software development?

    Thank you.

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

    When learning projects like pandas or matplot, do you keep the files so you can reference later?

    Posted: 03 Oct 2021 10:53 AM PDT

    Any pdf validation tool "Command line tool"?

    Posted: 03 Oct 2021 01:12 PM PDT

    I am writing a markup language that target PDF. put I struggle to know whether my target files "generated PDF files" conforming to the standard or not, I know and read the standard and understand it quite enough to target PDF but is there any tool to facilitate the validation of generated PDF files.

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

    Unable to understand how the recursion is working....in this C++ program

    Posted: 03 Oct 2021 06:40 AM PDT

    // Count the number of paths possible from start point to end point in GameBoard
    #include<iostream>
    using namespace std;
    int gameboard(int s,int e)
    {
    if(s==e)
    {
    return 1;
    }
    if(s>e)
    {
    return 0;
    }

    int count =0;
    for(int i=1;i<6;i++) { count+=gameboard(s+i,e); } *return* count; } int main() { int s,e; cin>>s>>e;
    cout<<gameboard(s,e);

    return 0;
    }

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

    Need some help

    Posted: 03 Oct 2021 07:53 PM PDT

    I'm a new programmer and barely know anything. I have an idea for how I could add a feature to a popular web application which I don't own. Is there anyway I could code on my own and add that feature and then possibly sell it to the owner ?

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

    Tips for hiring a new programmer. Details below.

    Posted: 03 Oct 2021 03:35 PM PDT

    I work for a small company (100-200) and recently our senior programmer retired and we are looking to hire a beginner (fresh grad or similar) and offering above average pay and not getting hardly anyone to apply.

    Requirements?

    Experience with Java, develop, test, maintain projects, college degree. The only "catch" is we want them to spend most of the time in office to learn how our business works as we would expect high level recommendations after 3-5 years.

    Starting pay: $70,000 + full benefits &401k matching. (Note we are located in one of the cheapest cost of living states in the US) … so we expect the offer to be pretty fair.

    It's been about 40 days and we've gotten 2 applications from people who live in India and are using 3 main stream hiring platforms.

    Thoughts/suggestions?

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

    Java Issue

    Posted: 03 Oct 2021 12:44 PM PDT

    Hi, I am working on a java code that outputs the highest book price in an array and it is working fine but I want to output the publisher name along with the book price, and every time I try to do it I get End along with the price and I can't get the publisher name.

    import java.util.*; public class LAB5EX3{ public static double maximumPrice(Book [] list, int booksNumber){ double highest = list[0].getBookPrice(); for (int i=0; i<booksNumber; ++i){ if (highest<list[i].getBookPrice()) highest=list[i].getBookPrice(); } return highest; } public static void main(String [] args){ Scanner adnan = new Scanner(System.in); String bookTitle; String bookPublisher; double bookPrice; double highestPrice; int counter = 0; Book [] booklist = new Book[100]; while(true){ System.out.println("Enter the book title, price and publisher name (Type End to stop) : "); bookTitle = adnan.next(); if (bookTitle.equals("End")) break; bookPrice = adnan.nextDouble(); bookPublisher = adnan.next(); booklist[counter] = new Book(bookTitle, bookPublisher, bookPrice); counter++; } highestPrice = maximumPrice(booklist, counter); System.out.println("The book with the highest price is " + bookTitle + " and it costs : " +highestPrice); } } 

    Any help would be really appreciated.

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

    What's unique about this Microsoft patent from 2007 on Search compared to Google search?

    Posted: 03 Oct 2021 12:30 PM PDT

    Did the lady who made this patent (Nicole Hamilton) really make something 'unique' that Google didn't already have present with their search engine dominance? The patent issue date is in 2007, not like early days of Google or anything like that.

    https://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO1&Sect2=HITOFF&d=PALL&p=1&u=%2Fnetahtml%2FPTO%2Fsrchnum.htm&r=1&f=G&l=50&s1=7,254,576.PN.&OS=PN/7,254,576&RS=PN/7,254,576http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO1&Sect2=HITOFF&d=PALL&p=1&u=%2Fnetahtml%2FPTO%2Fsrchnum.htm&r=1&f=G&l=50&s1=7,254,576.PN.&OS=PN/7,254,576&RS=PN/7,254,576

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

    Litmus Test for Jobs

    Posted: 03 Oct 2021 09:43 AM PDT

    I have been programming for some time but I never feel like I know enough. I've been afraid to apply to a software role because I'm nervous that I won't be any good in a professional role. When did you say, " screw it I am going to apply for a job"? Is there a litmus test to determine if I am good enough?

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

    When debugging in an IDE, how do you execute the current line?

    Posted: 03 Oct 2021 07:44 AM PDT

    Right now I'm working with Clion.

    When the debugger highlights a certain line it means it has stopped just before executing that line. If you want it to execute, you can do step over which will take you to the next line and execute the line you were just on. I feel like there should be a way to execute the line you're currently on, without jumping to the next one (which visually might be a big leap away).

    Is there?

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

    Can you code this regarding audio files?

    Posted: 03 Oct 2021 09:43 AM PDT

    Hey all,

    Can someone give advice either if something like this exists, how to code it, or how/where to maybe hire someone to make a piece of code that does the following:

    Something that either analyzes audio files and relabels the file based on the key/note of the audio file, OR something that just renames an audio file based on the analysis done by a third party key analyzer?

    Example: I have a drum tom sample that hits the note "A", i would like the software to discover the note and relabel the file name, OR simply rename the file based on the analysis done by an already existing software...

    If you need further explaining please let me know! Just trying to organize my audio sample library.

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

    Java Issue

    Posted: 03 Oct 2021 11:33 AM PDT

    Hi, I am working on a java code that should take a one-dimensional array of type Book and creates and returns a copy of the book with the highest price. . and I should create a class called Book, I have created the Book class but I am having a problem with the code that should return the average.

    error: variable bookPublisher might not have been initialized

    booklist[counter] = new Book(bookTitle, bookPublisher, bookPrice);

    Book class :

    public class Book{ private String bookTitle; private String bookPublisher; private double bookPrice; public Book(){ bookTitle = "Unknown"; bookPublisher = "Unknown"; bookPrice = 0.0; } public Book(String bookTitle, String bookPublisher, double bookPrice){ this.bookTitle = bookTitle; this.bookPublisher = bookPublisher; this.bookPrice = bookPrice; } public void setBookTitle(String bookTitle){ this.bookTitle = bookTitle; } public String getBookTitle(){ return bookTitle; } public void setBookPublisher(String bookPublisher){ this.bookPublisher = bookPublisher; } public String getBookPublisher(){ return bookPublisher; } public double getBookPrice(){ return bookPrice; } public void setBookPrice(double bookPrice){ this.bookPrice = bookPrice; } public String toString(){ String st = bookTitle + ":" + bookPublisher + ":" + bookPrice; return st; } public Book getCopy(){ Book temp = new Book(); temp.bookTitle = bookTitle; temp.bookPublisher = bookPublisher; temp.bookPrice = bookPrice; return temp; } public void makeCopy(Book other){ bookTitle = other.bookTitle; bookPublisher = other.bookPublisher; bookPrice = other.bookPrice; } public void printInfo(){ System.out.println(this); } } 

    The code to get the highest price of an array :

    import java.util.*; public class BookDriver{ public static double maximumPrice(Book [] list, int booksNumber){ double highest = list[0].getBookPrice(); for (int i=0; i<booksNumber; ++i){ if (highest<list[i].getBookPrice()) highest=list[i].getBookPrice(); } return highest; } public static void main(String [] args){ Scanner adnan = new Scanner(System.in); String bookTitle; String bookPublisher; double bookPrice; double highestPrice; int counter = 0; Book [] booklist = new Book[100]; while(true){ System.out.println("Enter the book title and price (Type End to stop) : "); bookTitle = adnan.next(); if (bookTitle.equals("End")) break; bookPrice = adnan.nextDouble(); booklist[counter] = new Book(bookTitle, bookPublisher, bookPrice); counter++; } highestPrice = maximumPrice(booklist, counter); System.out.println("Highest Grade is : " +highestPrice); } } 

    Any help would be really appreciated.

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

    Way to Unlock IOS device using Appium?

    Posted: 03 Oct 2021 10:17 AM PDT

    Hi, I want to test my app. Need to unlock the phone using script before testing the app and programmatically lock it aftwards. I don't see a way to unlock when pin is enabled. From appium discussions here ..https://discuss.appium.io/t/how-to-lock-and-unlock-iphone-real-device-using-appium/15632, I see it's not possible. Any workarounds for this ?

    Thanks in Advance!

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

    Fixing a misaligned box on my application

    Posted: 03 Oct 2021 09:54 AM PDT

    I'm building an object detection application (in Java, for Android) that attempts to draw a Rect on my display that surrounds the detected object. To build the camera preview, I used this CameraX documentation. To build the object detection framework, I used this this Google ML Kit documentation.

    My problem lies with my application display looking like THIS. As you can see, the Rect does not encapture the object fully, rather hovering above it in a way that looks inaccurate. I've come to the conclusion that the flaw in the application lies not within the coordinates that I've drawn, but in the image resolution that CameraX passes through to the ML Kit. The image that my device takes and the image that is displayed on my application appear to be two totally different sizes. This results in the flawed display. This application is built using two java classes, so to avoid cramming the post with excess code, here is the link to the Pastebin containing all the code to my MainActivity class

    Here is all the code for my (much lighter) DrawGraphic class that draws the rectangle:

    public class DrawGraphic extends View { Paint borderPaint, textPaint; Rect rect; String text; public DrawGraphic(Context context, Rect rect, String text) { super(context); this.rect = rect; this.text = text; borderPaint = new Paint(); borderPaint.setColor(Color.WHITE); borderPaint.setStrokeWidth(10f); borderPaint.setStyle(Paint.Style.STROKE); textPaint = new Paint(); textPaint.setColor(Color.WHITE); textPaint.setStrokeWidth(50f); textPaint.setTextSize(32f); textPaint.setStyle(Paint.Style.FILL); } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); canvas.drawText(text, rect.centerX(), rect.centerY(), textPaint); canvas.drawRect(rect.left, rect.top, rect.right, rect.bottom, borderPaint); } } 
    submitted by /u/JonnieSingh
    [link] [comments]

    [C Language] Could anyone take a look at my code and see if you can find any issues with it?

    Posted: 03 Oct 2021 09:39 AM PDT

    #include <msp430.h> int main(void) { while(1){ WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer P3DIR = ~BIT6; // Set P3.6 to output direction P3OUT = 0; // Set all P3 ports to LOW/OFF P1DIR = ~BIT0; // Set P1.0 to output direction P1OUT = 0; // Set all P1 ports to LOW/OFF volatile int i = 0; // Setting i to volatile so I can see registry steps for (i=0; i<100; i=i+1) { // Counts/Loops to 100 if (i>0&&i%10==0){ // On increments of 10, turn on motor for 1.5 seconds P3OUT = ~BIT6; // Setting pin 3.6 to HIGH/ON __delay_cycles(1500000); // 1.5 sec delay P3OUT = 0; // Setting all of pin 3 to LOW/OFF } else { P1OUT = ~BIT0; // Setting pin 1.0 to HIGH/ON __delay_cycles(1500000); // 1.5 sec delay P1OUT = 0; // Setting all of pin 1 to LOW/OFF } } } return 0; } 

    The purpose of this is to count from 0-99. When the count is a multiple of 10, a vibrating motor turns on for 1.5 seconds. On every other count, an LED turns on for 1.5 seconds. The motor is connected to PIN3.6 and a 3.3V DC power supply. The LED is PIN 1.0 on the MSP430. The code makes sense to me (but doesn't it always) but I must be doing something wrong. When I run the program, nothing happens on the board, if I pause the program i will be set to 10, no matter how long it's running. If I step into, the steps hang at __delay_cycles (I'm guessing I would have to step 1500000 times to get past that?). I can submit pics of the circuit if needed. Any advise is wanted, I've been working on this for about 3 days and I can't figure out what's wrong.

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

    No comments:

    Post a Comment