• Breaking News

    Wednesday, December 2, 2020

    Looking to hire IT'ers for a project but I have no clue what the terminology is to get the guy I need. Ask Programming

    Looking to hire IT'ers for a project but I have no clue what the terminology is to get the guy I need. Ask Programming


    Looking to hire IT'ers for a project but I have no clue what the terminology is to get the guy I need.

    Posted: 02 Dec 2020 09:40 AM PST

    I want to automate the ordering of products of a webshop using existing APIs of the site and then sending the request fulfillment center but how do I describe this so I can make a post to hire someone? I don't even know what part of technicians this belongs to. English not being my first language doesn't make this easier either. Thanks a lot

    Edit: thanks a lot for all the replies! Could you guys suggest what language I get everything made in? As you might have guessed I have no clue what language to pick either.

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

    HELP with "A JavaScript error occurred in the main process"

    Posted: 02 Dec 2020 09:05 PM PST

    I keep getting a popup box error when I open my laptop for the application- Discord.

    The body of the box says

    "Uncaught Expectation:

    Error: Cannot find module..."

    Then it continues with location of some .json and .js files under "Required Stack:"

    What I understand from the error box is some of the js files required to run the application are either unavailable or corrupted. So, I tried to erase all the related files, to then reinstall Discord, but when I go to file location and try to delete all files related, I get an alert box. The typical "This action can't be completed because the file is open in Discord." (I tried to deleted form AppData file)

    BUT when I go to Settings>Apps, the program does not exist there. So, I head over to Control Panel> Programs>Programs and Features, and still no Discord program in sight.

    I don't see the program running from the User Interface, but I don't know how to go deeper than that to see if the files are running in the background.

    I tried reinstalling the application from different browsers but I still get the same "Installation has failed" error. I know Discord was having js issue from their end, but last I heard that was fixed. Also doesn't explain why my pc reads the application as still running when user can't see on UI.

    NOTE: Important to note the issue happen after IT guy uninstalled and reinstalled graphics card and Windows 10, while the application was open. The problem started happening after that.

    Thanks for reading this far. If you can help me I would appreciate it, if you know another forum I could post to with more results, please feel free to refer me to it. THANKS :)

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

    C question about vectors

    Posted: 02 Dec 2020 04:13 PM PST

    So im trying to program code that prints out 100 random numbers but print them out in 10 row and 10 columns. I have come a bit in but my problem is that my code prints out the same numbers all 10 rows and I don't know how fix the problem.

    for(int i=0;i<NUMMAX;i++){
    num[i]= getslump(0,900);

    }

    for(int i=0;i<10;i++){
    for (int i=0;i<NUMMAX/10; i++){
    printf("%d ", num[i]);
    }
    printf("\n");

    this is the part I'm stuck on atm.

    when i run my program this is what it prints out.

    "299 539 514 406 678 403 52 735 570 413 "

    299 539 514 406 678 403 52 735 570 413

    299 539 514 406 678 403 52 735 570 413

    299 539 514 406 678 403 52 735 570 413

    299 539 514 406 678 403 52 735 570 413

    299 539 514 406 678 403 52 735 570 413

    299 539 514 406 678 403 52 735 570 413

    299 539 514 406 678 403 52 735 570 413

    299 539 514 406 678 403 52 735 570 413

    299 539 514 406 678 403 52 735 570 413

    I understand it is because the first "for" repeats 1-10 but how do i make it keep going to 11-20 and then 21-30 and so on.

    Thanks for the help!

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

    How do I start?

    Posted: 02 Dec 2020 09:33 PM PST

    Hey I have a question about a c++ program assignment. I just can't wrap my head around where to start and what the roadmap is for virtual inheritance diamonds. I'll put the program down there I'm just at a loss on how to do it.

    It's draft time again for major league baseball and the managers need to look at the history of the player, and they want to see a pattern of improvement or if they're training program for a player is working well. For this assignment we are going to create the preliminary data structure to store historical information on an athlete. Common to all the athletes being considered are the traits of a professional athlete in general. Common traits of a baseball athlete might be motivation, dedication, hard work. All the athletes carry (and will inherit) those traits. Then, each athlete has four categories which are batting average, bases run, strike outs, home runs. We store their results as events to the appropriate category as an event consisting of the description and the date.

    Implementation #1 (virtual inheritance)

    You will create a diamond style of implementation. The base class is called baseball athlete, has a simple vector of common traits as a vector of strings. Then there are four virtually derived classes called batting average, bases run, strike outs, homeruns, or Each of these maintains its own vector of events. A bottom diamond class called profile inherits all four of those, and lets you add events to the relevant event vector, and print out their history. Your main method creates profiles for two individuals, adding some various events to their profile, and prints out their history.

    Implementation #2 (virtual functions)

    You will implement this in a completely different way such that it uses a virtual function(s) instead of the diamond inheritance. The virtual function can be basic or pure, either one is fine. The virtual function should demonstrate that you can have a vector (or array) or pointers to the base object but when you print the traits it will call the appropriate print routine in the inherited object. Show off your virtual function implementation by having a generic array or vector of the baseball player profiles (or therapy patients), and then print out the lists.

    Tips

    Here is an example of the main function. You can hard-code the events in your source code or create an interface for entering them, either approach is acceptable.

    int main(){

    Profile Tanner("Tanner");

    Tanner.addBasesRun(event("Ran 3 bases", "10/11/2012"));

    Tanner.addBasesRun(event("Ran 2 bases", "10/11/2014"));

    Tanner.addBattingAverage(event("7/10", "1/9/2012"));

    Tanner.addBattingAverage(event("7/10", "1/9/2014"));

    Tanner.addHomeruns(event("2", "10/8/2012"));

    Tanner.addStrikeOuts(event("1", "1/7/2015"));

    Tanner.addStrikeOuts(event("2", "1/7/2017"));

    Profile Kayla("Kayla");

    Kayla.addBasesRun(event("Ran 2 bases", "10/5/199"));

    Kayla.addBattingAverage(event("5/10", "10/4/2000"));

    Kayla.addHomeruns(event("3", "10/1/1999"));

    Kayla.addHomeruns(event("2", "10/1/1998"));

    Kayla.addStrikeOuts(event("1", "1/2/2001"));

    Tanner.history();

    Kayla.history();

    return 0;

    }

    This is what the program output should look like

    ProfileTanner

    Bases Run

    Ran 3 bases, 10/11/2012

    Ran 2 bases, 10/11/2014

    Batting Average

    7/10, 1/9/2012

    7/10, 1/9/2014

    Home Runs

    2, 10/8/2012

    Strike Outs

    1, 1/7/2015

    2, 1/7/2017

    Profile Kayla

    Bases Run

    Ran 2 bases, 10/5/199

    Batting Average

    5/10, 10/4/2000

    Home Runs

    3, 10/1/1999

    2, 10/1/1998

    Strike Outs

    1, 1/2/2001

    Your event class should be defined as:

    class event {

    public:

    string desc;

    string date;

    event(string s, string d){

    desc=s;

    date=d;

    }

    };

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

    C++ char array unintentionally copying another array

    Posted: 02 Dec 2020 05:42 PM PST

    I have an odd issue where when I change the values in a char array, the values are also assigned to a different char array. I could not find any information on such and issue online. The output in the first for loop works as normal but the output for the second for loop outputs what I set in display[].

    I only have and old chromebook at the moment so I am using an online compilier. Could this be it?

    for(int i=0; i < userinput.length(); i++){

    answer[i] = userinput[i];

    std::cout << answer[i];

    }

    for(int i=0; i < userinput.length(); i++){

    display[i] = '_';

    std::cout << answer[i];

    }

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

    Is It Possible To Restore Corrupted PDFs To Be Readable Again?

    Posted: 02 Dec 2020 11:02 AM PST

    If there are several pdfs or other miscellaneous file formats that were corrupted and can't be opened, is it possible to fix the pdfs at least?

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

    Assessing a New Project

    Posted: 02 Dec 2020 07:59 PM PST

    Hi y'all,

    I'm trying to better understand it is that I am trying to accomplish.

    I want to make an effort to learn myself, understand the concepts that I am looking to implement, and possibly know how to engage a software/program/engineer/design-er... as I said I'm looking to better understand this as a whole. No formal education, I've done half-assed courses on java and python and learning games just to see if it clicks. I have formal education in symbolic logic and was hoping it'd be as simple as swapping the terms. I have not tried everything but I just feel like I bumble toward nothing. I am hoping to articulate an idea and see it through.

    The machine works something like this... I have it specifically broken down into steps with more detail as well but ill save that for elsewhere. Like reference points and such, I feel like I've seen it as a reference bank or something. subject points? I'm not sure.

    (Email comes in, pdf attached)
    Drag pdf in email into icon on desktop.
    -upload to drive location (add "RESPONSE" to the file name).
    -email
    -hard copy print
    -upload to internet site
    -Log action in Excel doc

    edit: if you can expound on any of it, in terms of the necessary tools to perform those tasks, that'd be super cool too. Thanks

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

    C++ Inheritance question

    Posted: 02 Dec 2020 03:29 PM PST

    Okay, so I was introduced to inheritance today.

    Problem: https://i.imgur.com/hErcBs2.png

    I'm not sure what exactly it's asking.

    So is it saying that 2D is the parent class and I have to make 3D the derived class? I'm just confused.

    If possible show an example, or something.

    Thanks for any help!

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

    Best text editors for non-coding use?

    Posted: 02 Dec 2020 06:32 PM PST

    I have searched hard for a notepad replacement that basically... I guess looks better.

    I've tried a LOT.

    I'm using mark text right now, the .md extension, however it just opens way too slowly.

    And also, a lot of these coding things where when you type brackets it gives you both, or whatever, I'm not a coder and I can't and don't make use of that.... Are there any text editors that will give me what I want?

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

    How to fix my delete command?

    Posted: 02 Dec 2020 06:32 PM PST

    https://ibb.co/5L3z0dX

    command description

    insert left x (insert char x at the beginning of the string)

    insert right x (insert char x at the end of the string)

    insert k x (insert char x at kth char of the string)

    delete left

    delete right

    delete k

    #include<stdio.h> #include<string.h> #include<stdlib.h> void insertk(char str[],int k,char x[]){ //to insert x at kth char //to copy two parts into two temp arr then cat char temp1[50],temp2[50],tx[50]; tx[0]=x[0]; strncpy(temp2,&str[k-1],strlen(str)-k+1); strncpy(temp1,str,k-1); strcat(tx,temp2); strcat(temp1,tx); strcpy(str,temp1); } int main(){ char cmd1[50],cmd2[50],x[50]; char str[500]=""; while(1){ scanf("%s %s",cmd1,cmd2); //insert cmd if((strcmp(cmd1,"insert")==0)){ scanf(" %s",x); if((strcmp(cmd2,"left")==0)){ strcat(x,str); printf("%s\n",x); strcpy(str,x); }else if((strcmp(cmd2,"right")==0)){ strcat(str,x); printf("%s\n",str); }else{ insertk(str,atoi(cmd2),x); printf("%s\n",str); } }else{ //delete cmd if(strcmp(cmd2,"left")==0){ strcpy(str,&str[1]); printf("%s\n",str); }else if(strcmp(cmd2,"right")==0){ char temp1[50]; strncpy(temp1,str,strlen(str)-1); strcpy(str,temp1); printf("%s\n",str); }else{ char temp1[50],temp2[50]; strncpy(temp1,str,atoi(cmd2)-1); strcpy(temp2,&str[atoi(cmd2)]); strcat(temp1,temp2); strcpy(str,temp1); printf("%s\n",str); } } } } 
    submitted by /u/JacksonSteel
    [link] [comments]

    Will dynamic DNS allow me to run a server from home without a static IP?

    Posted: 02 Dec 2020 02:25 AM PST

    I want to write a program in C that runs a TCP server from home, say an HTTP server. I don't have a static IP.

    My understanding of a dynamic DNS service is that I give them my domain name and they regularly update the IP address associated with that domain name so it always points to the device I registered on.

    I can then call getaddrinfo(), and the DDNS will return an IP address I can connect to?

    Is this correct or even possible?

    How else could I run a server behind NAT?

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

    I think I finally understand how ports work, would this analogy suffice?

    Posted: 02 Dec 2020 12:13 PM PST

    Instead of saying a port listens, would it be correct to say that the computer receives requests and puts the request through a program something like,

    if port #1 then ...

    else try port #2

    if port #2 then ...

    else ...

    Like that?

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

    Looking For Developer Team

    Posted: 02 Dec 2020 05:58 PM PST

    This will be a Tracking System / Website / Dashboard / Discord Bots. Compensation will be %% or good pay. Language is up to Developer (Node, Discord.js, JS..ETC] Need the developer to be free of any projects. Need you full time and committed. This is a big project and willing to give a % of the company. Have full description of what I need done. If you had a group / team of developers that would be amazing. DM!

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

    Having trouble finding talent.

    Posted: 02 Dec 2020 05:24 PM PST

    This is a very honest question, and for some background.

    I'm a concept artist and 3d modeler, and run the company for a VR game me and a few developers have been working on for some time.

    We are in the process of looking for new and exceptional talent, and reddit does not seem to be to optimal place for that.

    Even with job posts hitting over 720 upvotes we have gotten tons of applications but few with any real game development backgrounds.

    The game we are making is a fairly standard FPS shooter in terms of tech, but it is a VR mech games so you also have a lot of interactions you can do in the cockpit. Most of the game is finished and we just need support to take it to completion. We think it would be best to split the jobs up for two programmers. Payment and money is NOT a limiting factor in any way, yet we still seem to be coming up short for hitting our basic needs. most people applying are still in school or have never shipped a game before.

    My question is, Are we looking in the wrong places? we post on about 12 subreddits every week.

    If you are a very serious client or studio in need solid muscle where would you suggest looking?
    thanks guys and sorry for spamming your sub reddit with my job postings from before.

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

    I want to create a "middle-man" website. I don't know where to start.

    Posted: 02 Dec 2020 03:59 PM PST

    I want to create a real time "middle-man" website for another website that I don't own.

    This other website is a UX nightmare: links lead to pages I don't have access, 10s (tens of clicks!!!) of clicks to get to closely related data.

    I just want to to go www.mybetterUXwebsite.com login using my credentials at www.UXnightmare.com and have it display only the data I want - no links to anywhere.

    Question: What kind of tech or language do I need to do this? Are there frameworks for this? I will code everything myself. Its just that right now, the search terms I know doesn't yield helpful results.

    I don't know how else to ask this. I searched "middleman website" and middlemanapp.com always comes up. Other search words I tried are "create a skin for a website", "create a proxy website to access another" --- all these searches yield results that are completely different from what I want.

    The closest I got what this Quora Question where answers said something about PhantomJS.

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

    Help for topic-specific news collector app

    Posted: 02 Dec 2020 03:54 PM PST

    Hey guys!

    I'm currently trying to build an app that collects the latest news from various websites that all share the same topic. In order to achieve this I built a webscraper in python using Beautiful soup that retrieves the data I need for the further setup of the database and saves it as a csv file locally. This part worked out just fine.

    Then I'd like to present the retrieved data in an app (layout consisting of date, title, teaser and thumbnail, most likely in a list format, probably with an ability to filter news by location/source). As I've never built an app before I did some research and came to the conclusion that flutter might be the best way to approach this, because I'm able to use it for both OS.

    I think I'll figure out the coding somehow, but I still have a couple of questions before building the front end:

    - What is the best way to store my data to then be able to retrieve it? Local storage is pretty much not an option, since building the infrastructure might be overkill (We're talking about 100 entries that get updated based on the retrieved data). Client-side webscraping is not an option either, as this would result in exhaustingly long loading times. I guess I'll have to use a cloud based solution. Are there any open source databases that I can use for this? It's probably only a few hundred Mbs we're talking about so I don't want to spend a fortune just to be able to store my csv file on a cloud. I think I'm able to spend a small amount though (depends on my supervisor). I'd still need an open-source one for prototyping

    - Is my approach even advisable? Before investing a lot of time I'm interested if there might be better or more efficient ways to reach my goal.

    - If it is advisable can you recommend some packages to me that I might need for python or for building the frontend?

    Sorry for the wall of text,

    potatoes=[] for i in range(len(linesoftext)): potatoes.append("potato") print("You received" + str(len(potatoes)) + "potatoes") 

    Cheers, P

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

    New student

    Posted: 02 Dec 2020 10:38 AM PST

    Can someone please explain to me what is meant by the term interface in a way that is not using computer terms the definitions are really bad to comprehend also can someone explain the difference between operating system shell terminal cmd like what are they and what is the difference.

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

    Adding teams and players to those teams with Java GUI

    Posted: 02 Dec 2020 01:38 PM PST

    Hey guys.

    I'm looking for some advice on a university assignment that I have, in which I have to create a GUI to allow input of a team name, and then a combo box with another input field to add players from a list of teams (teams that have been inputted). My question is, what is the best way of storing this data? I was thinking a hashmap with an arraylist as the value to store multiple members in a team. However, the issue with this is how would I create lists dynamically for each instance of a team that is added? I've not been able to find a way to create a list or variable with the name of a string, and if there was a way like that I'd imagine I'm just overcomplicating it.

    If anyone has any advice, I'd appreciate it greatly, thanks!

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

    Help with using R to get data for research project

    Posted: 02 Dec 2020 01:18 PM PST

    I am a polysi major having to take this stupid R class and my research paper is due in two weeks. My paper is on the topic of gentrification through segregation in America and I CANNOT figure out how to use R to compile data 😩😩. I need to find a dataset to use, describe it, describe the variables I will be using, figure out how it's measured, the distribution for the dataset,include a descriptive table and then I need to use linear regression. My professor won't get back to me and the tutoring at my school doesn't help with final projects!?!?! HELPP MEEEEE SOMEONE!!!!

    I also have to describe the results telling how the DV changes and when IV changes. The prof also mentions that I need to mention model fit using the adjusted R squared, a results table and one figure representing results.

    I literally don't know how to do any of this. I can't figure out what dataset to use firstly. We weren't really taught any of this, just given an R companion text to figure it out. IM STRESSING!!! I graduate next semester but I have a C in this class and I need a C or higher to go on. Someone help me 😭😭😭😭😭😭

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

    Best way to add 40 videos to my app.

    Posted: 02 Dec 2020 12:58 PM PST

    I am developing a flutter app, that will contain about 40 videos, all around 20 seconds in length.

    Currently I am using Vimeo to store the videos, and their restful api to access them.

    Are there any alternative approaches I could consider for this? Maybe there is a solution from one of the big cloud providers that would be a good fit.

    Has anyone tackled this same problem before...if so, what was your solution?

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

    How do you assign version numbers to your product? What is your rule for it?

    Posted: 02 Dec 2020 03:58 AM PST

    Hi,

    Basically the question. I am planning to add a functionality to my software which will help me in the future to identify the builds and locate the bugs, but I was wondering, is there a best practice for this? Thanks in advance

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

    How do ethics apply in the programming field?

    Posted: 02 Dec 2020 08:48 AM PST

    I have to do an assignment for school where I interview someone in the field I expect to go into and ask them about ethics, etc. They say it has to be a live conversation, so I could do anything from Zoom, google meet, to phone call. I would need basic contact info about you because the school wants to make sure I didn't BS this with fake conversation.

    Some of the questions I would like to know the answer to is simple things like how does your character and ethics apply to work, how important are ethical decisions, and what advice you would like to give me as someone who has not yet entered the field.

    This interview would probably be no longer than 15 minutes and even then I could shorten it if need be. I know this is a weird question to ask for this sub but please DM me if you can do a quick interview.

    Thanks!

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

    I'm watching a thing on using Burp Suite and is this correct?

    Posted: 02 Dec 2020 12:11 PM PST

    They were trying to intercept data between two machines (I'm guessing between the host computer and the web server like google or whatever). He first goes into Firefox and sets a manual proxy of 127.0.0.1 (or something) with port 8080, but doesn't say why. Then in Burp Suite he goes to the proxy tab and puts the same 127.0.0.1 with port 8080 in the options. But how does this show a practical situation? Nobody is going to just set a manual proxy ip# and just tell people, and even then, why doesn't he just use the ip# that he was on originally instead of making a manual one?

    If anyone is interested it's here, I time stamped it too... https://youtu.be/2_lswM1S264?t=122

    **Also as an aside, I believe the reason he is on a Virtual Machine is because it wouldn't be intercepting if it's not from a different "machine", is that right?

    Thank you!

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

    What are some good questions to prepare for Java 1Z0-819 certification exam?

    Posted: 02 Dec 2020 11:32 AM PST

    Hello everyone, in about a week I will be taking the 1Z0-819 Java certification exam. I've been studying for weeks and I feel like I've definitely got the basics down but I'm having issues testing my knowledge. What are some good questions to help prepare. (also any practice tests would be awesome)

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

    No comments:

    Post a Comment