• Breaking News

    Wednesday, July 3, 2019

    College senior having issues Ask Programming

    College senior having issues Ask Programming


    College senior having issues

    Posted: 03 Jul 2019 04:36 PM PDT

    So I've been tasked with my first REAL project with a group. Myself and 4 others are creating a POS system for our senior project.

    In the beginning I agreed to work on networking our individual parts of the project together. I chose this because I am not very strong at programming myself.

    I tried setting up a simulated topology using GNS3 and it ended up nearly crashing my hard drive due to the amount of virtual machines allocating too much space each time they started.

    Because of this, we scrapped the idea of using GNS3 for networking and decided to run our server for the project locally. Because of this I was no longer in charge of networking for our project. The "project manager" then tasked me with handling payment for our application. I did a good amount of research, implemented an open source API(Braintree) to our code that would send payments to a sandbox environment to simulate actual payments. It worked enough to send a payment to the sandbox. But I couldn't figure out how to accept a card number from our application.

    I presented this to the group and they thought it was insufficient, or a cop out. That I was taking an easy way by dropping in a pre-made API. They said I need to make a payment processor myself to demonstrate that I've learned something over the course of my degree. I started doing research into that and began working on how to validate credit cards using Luhn's algorithm. Then a day later they said that they want to continue using Braintree for payment. I tried continuing to implement this but I couldn't get the drop-in credit card entry to work properly.

    At this point I have very little as far as actual contributions to our project. They have completed their own various tasks and are putting on finishing touches. For fear of not meeting the requirement of 150 project hours, I agreed to work on a new portion of the project. An admin console that queries our database and displays statistics within our application. Yet for the past three days I have been stuck. I can craft queries just fine, but I don't know how to get them displayed within our application.

    When asking and saying that I was stuck, my project manager just replied, "the queries are the easy part, it's the interface we need." At this point our project is due in 10 days. I know that the rest of my group has done well in their respective parts, but each of mine have fallen flat. I'm afraid that I'm going to fail.

    I've tried asking questions on stackoverflow. Which only led to more questions about my classmates code. I am not a strong programmer but I have nothing that I can contribute.

    I am thinking of contacting a freelancer on fiverr for help but I don't want to get in trouble or pass off someone else's work as my own. So instead I think I have to pass this job on to another person in my group as well so it can get done by someone who knows what they are doing.

    I would be happy to put in time writing reports or documentation but our glorious project manager has all of that covered.

    Does anyone have any ideas to what I should do?

    EDIT:

    We are using Electron to build and develop our app. Javascript and Node.js for a local server. HTML files in conjunction with JavaScript files to build out the app.

    I use NPM START to run the server, and again in the client directory to run the client. We have a components folder with Main Menu, Kiosk, Terminal, Consolidation, and Admin. To have our app run the necessary component, we just have to alter a config file to reflect which component. I am now tasked with building out the Admin portion. And I would also like to finish a payment portion in the Kiosk area as well.

    Double EDIT:

    Also using a mySQL database which contains order information. I can successfully query the information, and display to the terminal the returned value. I just can't figure out how to display it within our application.

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

    So is web development as a job/career worth getting into, or is the job market for it mostly saturated/filled and should be something to pursue more as a hobby or skillset?

    Posted: 03 Jul 2019 07:15 PM PDT

    I ask this because I feel like web dev is one of those fields that is most often sought after in terms of employment given how obviously widely used the web is. So thus, a lot of positions would most likely be filled up, wouldn't they?

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

    College degree necessary for software development/programming jobs?

    Posted: 03 Jul 2019 10:17 AM PDT

    Hello,

    Technology has always made sense to me, however, due to some learning disabilities, school has always been pretty tough for me. I finished two years of college then dropped out and got a job in technology retail.

    My question is; what do companies that are hiring software developers look for in a candidate? Does a college degree really matter, or is it more important to be have experience in your field? Does being certified in different languages help?

    I'm sorry if these seem like obvious or dumb questions, I have very little knowledge of the industry I would someday like to have a job in.

    Thank you for your time, stranger!

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

    Professional SWE's of reddit. What do you do when you realize your coworker is a hack?

    Posted: 03 Jul 2019 09:26 AM PDT

    As in, you realize the 'senior engineer' on your team actually is all talk and can't actually write code? The code that they write is riddled with tech debt, and you realize that all the other people who left the team left because they realize they weren't getting their due credit because of debt of this individual, and yet still management is in love with him?

    You don't have the gravitas behind your position to really speak out against a person who outranks you so much, yet you can't seem to convince this person that he's wrong, and eventually now he doens't like you very much because you're echoing the thoughts of all the other ex-teammates who kept telling him he's wrong?

    Has anyone come across situations like these before? and how have you dealt with them without self-terminating your own career? Is this just a case of 'let them build their empire and move on'?

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

    SQL Data Integrations

    Posted: 03 Jul 2019 01:34 PM PDT

    Hey Guys,

    Some background: We have a .NET Desktop Application front end with a SQL Database back end. Our application has a module that allows users to produce Invoices but it is not an accounting system.

    To reduce redundant data entry and human error, we integrate our application into the clients ERP/Accounting system to transfer the Invoice transactions over.

    This has been done in the past using .NET file dumps of CSV/XML. In the last few years we have been using T-SQL to go from our database to the ERP database using their predefined stored procedures.

    What we were wanting to find out from the experts in the community is one way better than the other and why?

    TLDR: Best practices: .NET File Dump (CSV/XML) or T-SQL for integrations?

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

    How do programmers keep track of components in large projects?

    Posted: 03 Jul 2019 11:40 AM PDT

    With large projects that have thousands of lines of code, how do programmers keep track of what each function and object does and how they all interconnect? (For reference, I've been looking at a device driver since I've lately been interested in operating system work and I've been lost in 5000 lines of code. I am a beginner programmer and have never touched something this massive before.)

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

    IOS Google Maps Question

    Posted: 03 Jul 2019 06:13 PM PDT

    @IBAction func engageRoute(_ sender: UIBarButtonItem) { func route(_manager: CLLocationManager, didUpdateLocations locations: [CLLocation]){/* create the path */ let path = GMSMutablePath() let startingPoint: CLLocation = locations.first! let locationNow: CLLocation = locations.last! path.add(CLLocationCoordinate2D(latitude: startingPoint.coordinate.longitude, longitude: startingPoint.coordinate.longitude)) path.add(CLLocationCoordinate2D(latitude: locationNow.coordinate.latitude,longitude: locationNow.coordinate.longitude)) /* show what you have drawn */ let route = GMSPolyline(path: path) route.map = mapView } 

    I'm fairly new to ios and I would like to know what would be the best approach to draw polyline on google map while user is on the move. So it would only show the path the user has traveled. I'm thinking about using current location as the destination and redraw the polyline as user moves. this is my current code but it currently does not produce any poly line. Any help would be greatly appreciated.

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

    Not a trick question - what does HTTPS stand for?

    Posted: 03 Jul 2019 10:21 AM PDT

    EDIT #2:

    Teacher saw IETF docs, agreed he was wrong, and is giving the point. It shouldn't have been this much of a struggle imo, but we'll take what we can get!

    EDIT #1:

    Thank you, kind sleuths, for your digging and help with this. We've got two pretty solid sources to use now, I think! Here's to hoping he sees the light!

    Original:

    I had to come here and ask this. My niece is studying computer science in college and was asked the question "What does HTTPS stand for." She answered Hypertext Transfer Protocol Secure and was told she was wrong. The teacher said the correct answer is "Hypertext Transfer Protocol over SSL."

    Now, I know it can ALSO be referred to as the way the teacher states it, but to my knowledge my niece is also correct. Teacher refuses to budge and give a point for the correct answer, and does not take the Wikipedia article on it to be an "official" source.

    Do any of you have any reasoning I am missing to back up this teacher or is he just a donkey? Are there any more "official" sources to provide to maybe get him to see the light?

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

    What's the difference between "serialization" and "encoding"?

    Posted: 03 Jul 2019 08:58 AM PDT

    I just came across the term serialization.

    I was a bit surprised at the term's existence, as I was under the impression that this concept came under the notion of an "encoding". It seems to me serialization is just an encoding which encodes to a byte string.

    What's the difference?

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

    Are Glitches/Bugs logical?

    Posted: 03 Jul 2019 08:40 AM PDT

    This question bugs me for awhile. (sorry for pun) Does Glitches and Bugs make sense? Or they are just random stupid thing software does? Is it caused by human who typed something wrong in the code or just unexplainable errors? I'm not a programmer but I played with code in Unity few years ago so I know just a little bit what is programing. But I searched for this answer on the internet and found nothing. I don't have any specific problem but I was playing a bugged game and it made me think "Is this bad programming or bad luck". I had few bugs in Unity and solve was many times NOT LOGICAL for me. So... I don't understand it enough or this is how it is?

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

    I have a file that i need to study that i cant read the code.

    Posted: 03 Jul 2019 10:40 AM PDT

    Hi im noob in programming.

    The file is full of NUL, SOH, STX.

    How do i decypher this? From what i know it seems this is encryption?

    Here is a part of it copy pasted:

    ë{h|?VèÓ ƒÄ…Àu» ëbht?Vèº ƒÄ…Àu» ëIhl?Vè¡ ƒÄ…Àu» ë0hd?Vèˆ ƒÄ…Àu» ëh\?Vèo ƒÄ…Àu» ‹D$ƒø|ƒøƒû|ˆ˜Ð°^[ÃÌÌÌÌÌÌÌÌ‹D$‹L$‰¤°Â ÌÌÌÌÌÌÌÌÌÌÌÌÌÌ‹¨ `‹ˆœ RQèÌÿÿÿaÇ °ëQB ÿ% °ÌÌÌÌÌÌÌÌÌÌ̃ìVW‹|$(‹½¤°…Àt>‹t$,jL$°QPÿˆ0ƒøu$|$ u|$ u‹½¤°Ù²_^ƒÄÃÙü?_^ƒÄÃÌÌ‹D$‹L$PQè'ÿÿÿƒÄéI ÌÌÌÌÌÌÌÌ̃ìSUV‹t$$Wj Vèmÿÿÿè( jV‰D$(è\ÿÿÿè jV‰D$4èKÿÿÿè jV‰D$0è:ÿÿÿèõ jV‰D$<è)ÿÿÿèä jV‹øèÿÿÿèÕ ‹Øj%Vßè ÿÿÿèÄ jV‹èèúþÿÿƒÄ@è² ‹Ï+Í3Ò…Àuº|@ë"ƒøuºp@ëƒøuºd@ë ƒøuºT@¡T ƒøu=‹L$‹D$‹t$‹T$Á‹L$$Æ‹T$0P‹D$0RSWPh@@Qèé ƒÄ_^][ƒÄÃøu.‹T$‹D$‹L$R‹T$ P‹D$,QRh,@Pè¶ ƒÄ_^][ƒÄÃøuRQ‹L$,Uh@Qè" ƒÄ_^][ƒÄÃøu_^][ƒÄÇD$@ép 

    It doesnt come with the nul, soh, and stx.

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

    Command line tool to convert // comments to /* */

    Posted: 03 Jul 2019 05:19 AM PDT

    I have to convert a file with many // type comments into something that is compatible with gcc's -ansi option. I feel like this has to be a solved problem, but I am not able to find anything in google.

    Can anyone help me out so that I don't have to reinvent the wheel? A sed command or similar would be perfect. Thanks!

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

    Need Advice On How To Sell A Project/Product

    Posted: 03 Jul 2019 01:14 PM PDT

    I am currently in the early stages of negotiating a project with a friend who runs a vehicle repair shop and needs an inventory management system.

    The project will encompass techs entering services/maintenance on customers vehicles, including materials used, writing up a sales ticket, and finalizing the sale via tablet. The program on the tablet directly communicates with a database of customer and inventory information on a local computer. There will be a technician role and a management role, along with an administrator role for basic maintenance of the users. The technician will be able to add customers and vehicle information, make invoices, and finalize sales. The manager will be able to do all that a technician is allowed along with review various calculated metrics, perform inventory management, etc.

    My question is, how should I go about selling this product? Should it be a straight sale of software or should I license it? I understand that there will need to be legal work involved and that specifics about software maintenance and other issues, but right now I'm concerned about the package in which I sell the product?

    Any and all advice is welcome!

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

    How do I create effective documentation on an existing project?

    Posted: 03 Jul 2019 01:07 PM PDT

    I'm an intern at a relatively new startup (<6 months old). One of my tasks is to create documentation for our software which currently lacks any. The documentation is intended for developers - making it faster for new engineers to get up to speed and to make further development easier. What is the best way to approach this? Right now it seems like a daunting task. My inclination is that I should work from the top down, giving an overview of the project and its goals and a summary of each subsystem's purpose and flow in a separate design document. After that, begin to work on code-level comments that say what each file is supposed to do and what the purpose of the more obscure functions is.

    What do experienced programmers find most helpful when coming into a new project or company? What kinds of things make you either glad that the person before you wrote documentation, and what makes you wish they hadn't bothered?

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

    How to deploy an API for mongodb

    Posted: 03 Jul 2019 07:04 AM PDT

    I need to create and host a database that a single third party is going to access. I have struggled to find a tutorial on the best way to set up this environment as a whole.

    My thinking is to use something like mlab to host the database. mlab provides a restful API, however it would seem like good practice to create my on wrapper for the API so that I can control access to the database. I have the most experience using node.js but not much experience deploying it for live use.

    Are there any suggestions about the best way to host the API and whether this is a good solution at all.

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

    I have spare time at work I can use to study programming, but only in excel macros.

    Posted: 03 Jul 2019 12:42 PM PDT

    At work, I use excel,and when I don't have any more of my usual work to do, I manage the macros we use to keep our database updated, so in my spare time, I can either make an attempt to maintain and improve our horrendously outdated codebase that is a combination of VBA and SQL, or I could do some personal projects.

    I would rather avoid using vba any more than necessary, so what do yall suggest?

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

    How can I get these two elements at the top of my page to be responsive?

    Posted: 03 Jul 2019 08:51 AM PDT

    Here are some pictures of what my site looks like as I change the width of the window.

    I'd like to make it so that the logo and the button change their width as the window resizes so that even on a smaller screen, they'll both be on the same line with a little space in between them.

    Please let me know if there's a better way to share code. I tried using codepen but my page didn't come out styled the same.

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <link rel="icon" href="files/icon.png"> <title>Anytime Locksmith Brisbane</title> <link rel="stylesheet" href="files/stylesheet.css"> </head> <body> <div class="logo"> <img src="files/logo.png" alt="Anytime Locksmith Brisbane"> </div> <button class="btn-head"> Call (XXX) XXX-XXXX </button> <h1> Locked Your Car Keys and <br>Need Help Now? </h1> <ul> <li>Our service is available 24 hours anywhere in Brisbane for any vehicle.</li> <li>Call us any time any day and we will always answer.</li> <li>Your car won't get damaged in the process.</li> </ul> <button class="btn-cta"> Click Here and Get Help Now </button> </body> </html> 

    I'm using this Meyer's reset in my stylesheet

    body { background-image: url("background.png"); background-position: 0 auto; background-repeat: no-repeat; font-family: Helvetica; } .logo { display: inline-block; padding: 18px; } button { border: 0; background: #E06E0F; border-radius: 6px; padding: 18px; font-size: 24px; } .btn-head { display: block; float: right; margin: 18px; } h1 { display: block; text-align: center; font-size: 60px; } ul { text-align: center; font-size: 24px; padding: 24px; } li { padding: 12px; } .btn-cta { display: block; margin: 0 auto; } 
    submitted by /u/sea_place
    [link] [comments]

    When trying to delete the first node in a singly-linked list, the function responsible for it doesn't seem to do it.

    Posted: 03 Jul 2019 06:03 AM PDT

    Hi there! I'm currently trying to make a program that deletes specified values within nodes. However, it seems that there is a bug wherein the first node value is not deleted when it is specified. How is this happening and what can be done to fix it?

    Main class: ```java public class User { public static void main(String[] args) { Node n = new Node(); List<Node> list = new LinkedList<Node>(); Scanner in = new Scanner(System.in); System.out.print("Enter Size of List: "); int num = Integer.parseInt(in.nextLine());

     for (int i=0; i < num; i++) { System.out.print("Enter Node value: "); int value = Integer.parseInt(in.nextLine()); n.add(value); } n.traverse(n.head); System.out.println(""); System.out.print("Enter node value to delete: "); int nvalue = Integer.parseInt(in.nextLine()); n.remove(n.head, nvalue); n.traverse(n.head); } 

    } ```

    Node class: ```java public class Node { int data; Node address; Node head; Node tail; public void add(int value) { Node n = new Node(); if (head == null){ head = n; tail = n; } else {
    tail.address = n; tail = n;
    } n.data = value; }

    public void traverse(Node head) { Node n = new Node(); n = head; while(n != null) { System.out.print(n.data); n = n.address; if(n != null){ System.out.print("->"); } } } public boolean remove(Node head, int nvalue){ Node n = new Node(); if (head == null){ return false; } n = head; if(n.data == nvalue){ head = null; tail = null; } else{ head = n.address; } while(n.address != null && n.address.data != nvalue){ n = n.address; } if(n.address != null){ if(n.address == tail){ tail = n; } n.address = n.address.address; return true; } return false; } 

    } ```

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

    Trying to implement Python project

    Posted: 03 Jul 2019 08:10 AM PDT

    I'm new to Python and was trying to run this git project on my machine for research in which I need to read a bunch of old receipts into excel. Rather than doing this by hand, I found the following Python project https://github.com/muratlutfigoncu/receipt-reader. Whenever I try to run their code however, I get the following error on my machine: https://imgur.com/a/aRJKupZ .

    Any help on how to run this code with my given images or just how to run a downloaded git project in general would be much appreciated.

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

    Python bot only runs in foreground and not background on raspberry pi

    Posted: 03 Jul 2019 11:25 AM PDT

    While connected to raspberry pi via SSH, the bot runs fine in the terminal, but when I try to have it only run on the pi via
    'python3 instabot_py&' , it says '

    -bash: "username": command not found ". I don't know what to do

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

    How do I run a bot continuously on a headless raspberry Pi3?

    Posted: 03 Jul 2019 07:03 AM PDT

    So I'm connected to my Pi through SSH on my laptop. I want my pi to run a bot program 24/7. Through my laptop, I set up my pi on the command line, downloaded all the code to the pi, and successfully started the bot. BUT then I realized that the moment I close terminal on my laptop it will terminate the running program on the Pi too! How do I keep Terminal running the bot on the Pi without being dependent on my laptop??

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

    Language for a program that clicks on appllications

    Posted: 03 Jul 2019 06:52 AM PDT

    Hello !

    I'd like to automate a process I have to do quite a lot that requires only clicking a certain positions on my screen.

    I'd like to have a program that does it for me but I don't know what language to program it in. I already knows the basics of C and JavaScript, and a little a Python.

    So if you have any advice on which language I should use and how I should use it, please tell me ^^

    Thank you :)

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

    When using firebase's onDisconnect() it is triggered when my user is redirected to another page on my site

    Posted: 03 Jul 2019 05:22 AM PDT

    Im trying to make it so whenever a user signs into their account a session is created in my database which keeps track of the sing in time user.uid and the session ID, After the user has either signed out or disconnected id like to then update the sessions with a new field which adds a timestamp of the time of disconnection. However currently what happens is when i run it the user is logged in, the session is pushed to the database and the user is redirect the logged in page using location.href = 'logged_in.html'; however as soon as this redirect occurs the database.child("sessions/" + newKey).onDisconnect().update( things that the user has disconnected even though they havent

    login(){ firebaselogin(userEmail2, userPass); newKey = database.push().key; firebase.auth().onAuthStateChanged(function (user) { if(user){ database.child("sessions/" + newKey).set({ userID: user.uid, connectedAt: firebase.database.ServerValue.TIMESTAMP, sessionID: newKey }).then(success => { location.href = 'logged_in.html'; }); database.child("sessions/" + newKey).onDisconnect().update({ disconnectedAt: firebase.database.ServerValue.TIMESTAMP }) } }); } 
    submitted by /u/Michaln
    [link] [comments]

    No comments:

    Post a Comment