• Breaking News

    Tuesday, April 3, 2018

    How to save time of in game data in Fortnite? Ask Programming

    How to save time of in game data in Fortnite? Ask Programming


    How to save time of in game data in Fortnite?

    Posted: 03 Apr 2018 07:31 PM PDT

    How can I extract information such as the time a game is started, what time my kill counter has incremented, and what time I returned to lobby.

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

    How to hide commit history from clients from other devs on team

    Posted: 03 Apr 2018 04:43 PM PDT

    Hi everyone. I'm currently working on some projects as a paid freelancer but would like to onboard another developer that works with me to help on some of these projects. The problem is I don't want his commit history showing up in the clients repositories. How can I have this other developer do work without my clients finding out?

    I was thinking along the lines of creating a separate repo which is a clone of the clients repo. My dev will work on that repo and then I can cherry pick commits and push them to the clients repo as myself. This seems like a tedious task though - keeping both repos in sync etc.

    Is there a better way to do this? I will still be doing code reviews etc. before committing code to the clients repo, so I'll be involved quite a bit. The reason I don't want to tell my clients about this relationship is because they want my code quality and thoroughness - this wont be lost by using the other dev.

    Any advice would be appreciated, thanks!

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

    Thought I had no errors? (beginner, c)

    Posted: 03 Apr 2018 09:40 PM PDT

    EDIT: Had error, fixed error. Crisis averted

    Disclaimer, I am a student in my second semester of programming classes. Basically, I was writing a simple program for homework that generated an array of random numbers with a min and max range, I tested it many times and had no errors. So I thought awesome, and submitted the assignment which is automatically tested through git-keeper, which said there was a -3 in the array when the max was -4.

    I went back and tried a few different things, and tested my original function hundreds of thousands of times, and never got a -3 or anything higher.

    I won't ask for answers, instead, what steps should I take to debug this when I can't find the issue myself? I'm considering sleeping on it and coming back with fresh eyes, but I am quite stressed about getting a good grade.

    Hope this was the right place to ask.

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

    Finished learning Core Java. What now?

    Posted: 03 Apr 2018 08:29 PM PDT

    A little overview of myself: I'm currently a 2nd year College student (Canada), with 1 year left before starting Software Engineering in University. I've mostly been self-taught because teachers are pretty much garbage (except for a few). I aspire to become a Software Engineer one day, then pursue a Ph. D to start working on A.I. Research and Machine Learning.

    I know vanilla HTML, CSS, Javascript (basic NodeJS and React Native), C++ and finally, Core Java.

    I am aware that there are many frameworks for Java but I really have no clue where to start. I know for a fact that Java is one of the most in-demand languages out there and that it has a promising future. But I also know it is too verbose and might not appeal to many.

    I started with asking one question, but I guess I'll have to ask another. As stated earlier, I want to work on Machine Learning later on in my career. Would it be wiser to switch back to C++ or Python as of now? Or should I remain with Java for the foreseeable future because I will certainly have uses for it as a Software Engineer.

    Thank you for taking your time, JK

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

    Workflow Automation Question

    Posted: 03 Apr 2018 07:30 PM PDT

    Hi All,

    Question for you: what language or platform would you suggest for automating some very basic tasks that need to be completed inside a specific IDE (Crimson 3.0 for developing apps to run on touch screen operator interfaces)

    Some of the more tedious and time consuming tasks are listed below:

    1) Copying and Pasting graphic objects 2) Editing properties (via pop up editing windows with editable text fields) 3) Creating new instances of graphic objects based upon templates

    For now I am just looking for some direction on getting started with the workflow automation. It looks like I am about to pick up something to the tune of a years worth of work that will need to be completed in ~3 months so I am going to definitely need to find some efficiencies....

    Thanks in advance.

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

    GPS location of various people on PHP

    Posted: 03 Apr 2018 07:00 PM PDT

    So a friend of mine ask me to make for him a SQL/PHP web page that he can manage his little taxi company. He only has 3 drivers and he want to track them all the time on laptop. They all have smartphones (Android and Ios). Any idea how I can put them altogether in google maps in PHP. Thank you

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

    Is Model-View-Controller only three classes?

    Posted: 03 Apr 2018 06:50 PM PDT

    We are doing this project, and basically I'm in charge of the "Model" part (ie. Handling the data?). However, I've created two extra classes to create two different objects to help organize my data.

    I do realize that they're design patterns, not rules I absolutely have to adhere to, but I am curious. For MVC-based designs, is it common to have multiple classes for either the Model/View/Controller?

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

    Is anyone willing to help a novice program in python? (Genetic algorithms)

    Posted: 03 Apr 2018 06:38 PM PDT

    Hi all, so I recently started coding towards this task that's turning out to be too big for me to handle.

    Essentially, I want to build a mathematical function evaluator that can form daughter generations of values (from an initial seed generation) and loop through until specific values can be obtained or approximated.

    Basically going something like:

    Functions are defined

    Gen 1 values are input

    According to certain criteria best-fit values are extracted from that initial set.

    These values are "cross bred" to return Gen 2 values.

    Gen 2 values loop back into the function and the process continues, ending when exact matches to the criteria are met or when the values begin to return with negligible differences (meaning the values hardly change from generation to generation and the process has essentially found the best values within a certain allowable error).

    Current progress:

    Function evaluator with parameters, an integer-value binary converter (and the reverse binary to decimal code), a binary string "splicer" that cuts length of strings.

    Where I need help:

    Combining code blocks I've written to work together, a big frustration is trying to feed my blocks some arrays (or lists) and having it return a corresponding array.

    Working on a converter that can handle both integers and decimal values (ex. It should be able to convert "5, 5.5, 0.122..." -essentially any value

    If I was half way decent this would take a few hours, but I tasked myself with what I deem to be insanity and could use a willing soul to help me!

    Let me know what the easiest way to communicate would be so I can share my code blocks with you and we can review my work. I'm pretty novice, I'm a chemist by trade and coding has always been a mystery to me, with tons of the inner workings of python being unknown to me I could use any help.

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

    What is the difference between foldleft and foldright?

    Posted: 03 Apr 2018 11:15 AM PDT

    We're studying these functions in a functional programming class (based on OCaml) and I just can't seem to wrap my head around how input is treated in these two functions.

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

    Swingnode doesn't display on JavaFX windows until resize

    Posted: 03 Apr 2018 04:40 PM PDT

    Hi everyone,

    I have this JGraphT that I want to display in a JavaFX window, I used Swingnode to convert it however when the window pops up the graph doesn't display unless I manually resize the window.

    I'd like to know how I can fix that pls.

    I posted a stackoverflow topic about this here : https://stackoverflow.com/questions/49628159/javafx-windows-needs-resize-to-display-content?noredirect=1#comment86273396_49628159 but haven't gotten any solution yet.

    Thanks for reading.

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

    Help With Programming a RPN Calculator

    Posted: 03 Apr 2018 02:57 PM PDT

    Hey AskProgramming, I'm new here. I don't have much programming experience but would like to do a long-term project that includes some. I'm starting undergrad next year and plan on making a nice, lots-o-functions reverse polish notation calculator (think HP-15C) throughout however long it takes in college. I'm going into MechE next year and would also like to complement that with a CS minor. I plan on making the body, which I have a pretty good grasp on how to do, but I really don't know where to start with the programming, or the rest of the electronics if I'm honest. So, I have a few questions: 1) What programming language would I want to use/learn for the best-optimized calculator? 2) What should I use as the physical foundation of the calculator's electronics? 3) Any idea how large of a project this could end up being? i.e. how difficult 4) Any other advice or tips would be great.

    Thanks, AskProgramming. Be gentle with my naivety, please.

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

    Is it possible to 'read' all posted jobs on LinkedIn for a specific job title and search for most often used words?

    Posted: 03 Apr 2018 02:56 PM PDT

    Hi all,

    I find myself often in the discussion what a certain job role is supposed to do (in terms of work) and what her required capabilities should be.

    I have my own ideas for that of course and there are plenty of websites which explain 'top 5 skills every XXX must have'. However, I was wondering whether it's not possible to receive a more objective view. Therefore my questions, would it be possible to read all LinkedIn job adds with a certain job title, let's say 'R&D Manager' and kind of check each posting for words or similar sentences? I would for example expect that almost each R&D manager job posting has 'leadership' as required somehow mentioned.

    Curious on your reactions .. thanks!

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

    Why do most programs still ask you to confirm your choice?

    Posted: 03 Apr 2018 02:41 PM PDT

    Think of the keystrokes saved if you had an undo feature instead of having to confirm everything. The answer is probably to save memory. The goal should be to save time.

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

    Linked list toString code running out of heap space

    Posted: 03 Apr 2018 10:08 AM PDT

    hello, I am almost done my linked list! I have an add, delete, and find command, and i even figured out how to sort it alphabetically using the compareTo method. However, i run out of heap space whenever I try adding more than one node to my list, which I think is a problem with my toString function.

    import javax.swing.JOptionPane; public class LinkedList { Node head; int listcount = 0; public LinkedList() { this.head = null; this.listcount = 0; } public void Add(Node n) { Node newNode = new Node(); int compare = 0; Node current = this.head; Node focus = new Node(); if (current == null) { head = n; } else { Node prev = null; while (current != null) { if (current.getData().compareTo(current.data) == -1); prev = current; current = current.next; prev.next = n; } listcount++; } } public void delete(String data) { if (head == null) { return; //if the head is null, do not display } if (head.data == data) { head = head.next; return; //if the node wanting to delete is the head node, keep going and make head the next node } Node current = head; while (current.next != null) { if (current.next.data == data) { current.next = current.next.next; //returns the next next return; } current = current.next; } } public void find(String data) { Node current = head; while (current != null) { if (current.getData().equalsIgnoreCase(data)) { JOptionPane.showMessageDialog(null, "You have found " + data); break; } current = current.getNext(); } //finds a node in the list } public int findIndex(String data) { //allows the user to find the node index, returns the index number int index = -1; Node current = head; for (int i = 1; current != null; i++) { if (current.getData().equalsIgnoreCase(data)) { index = i; break; } current = current.getNext(); } if (index == -1) { JOptionPane.showMessageDialog(null, "the element was not found"); } return index; } public String toString() { StringBuilder builder = new StringBuilder(); Node current = this.head; while (current != null) { builder.append(current.data).append(", "); current = current.next; } return builder.toString(); } } 
    submitted by /u/blankbleak
    [link] [comments]

    need help with my JS function

    Posted: 03 Apr 2018 01:28 PM PDT

    Hi good people, i need help with some js function. This function should receve word/letters to be animated. Everything is cool when i call function once, but when i call function more then one time strangeR things happen. https://codepen.io/johntuck772/pen/NYBvRq

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

    Server-Client connection - what options do I have and which are the best?

    Posted: 03 Apr 2018 01:21 PM PDT

    I'm developing a mobile app and I need to send, receive and save data with the server. The connection does not have to be constant but the server needs to be able to always receive data. My problem: I've been developing programs for a long time now, first in Java, then switched to C# and I feel very comfortable in it, but I have no idea how server stuff works. So what would be my possibilites? I'm developing in Visual Studio in C# using Xamarin.

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

    Asked to make an app/website

    Posted: 03 Apr 2018 08:02 AM PDT

    Hi, I'm not sure if this is the right place to ask this and if not please redirect me. Let me preface this by saying I have a small knowledge of basic java programming, and that's about it. I'm a cyber sec major and haven't had a strong focus in code. A family friend asked me if I would be willing to help develop an app and website for a business they are trying to start up.

    This business would involve using personal information/credit cards and I am not really familiar with hash programming or the like, if that is even what I would be using. Basically, I'm wondering what the best way to go about doing any of this would be...Which language would be best, what all would it entail, is it even something I alone could do after some self education? Thanks for any feedback, I have told them I cannot confidentially accept this offer so if I have to turn it down they understand. It is something I would like to do if I can, maybe make it a summer project. Thanks.

    Edit: figured I would add some additional information. The app would be mobile on both platforms (android and iOS), and I do have a person that could handle the HTML aspect of the website/know websites are easier to make nowadays. Had started teaching myself C++ awhile ago but kind of abandoned it, didn't get very in depth either.

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

    Sending data from Python to Javascript

    Posted: 03 Apr 2018 11:41 AM PDT

    I´m making a web app with Flask and I need to send data from the server side (Python Flask) to the client and utse this data with javascript. Hon van I do this?

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

    Qt build porting (cross compile) can't find spec_pre.prf

    Posted: 03 Apr 2018 11:22 AM PDT

    So I am porting a Qt application from an old cross compile environment to TI's latest SDK. I have changed all the paths in various config files, but when I run qmake on (really quite simple .pro file) I see that it reads a local .qmake.conf file and processes it and then says that it can't find spec_pre.prf. Even with -d -d for qmake it does not tell me where it is looking for the file.

    I have noticed the following:

    • On the legacy build when i add -query the path of the prf file is in my build directory but not constructed in a relative way (location is relative .. the build directory) as all the other PATHS are. Here I see a direct path.
      • I do have the prf file in my cross compile environment and it is in a similar place as in the legacy build.

    How the heck does Qt find this file?

    thanks in advance.

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

    Best way to create an application that logs into other applications for you?

    Posted: 03 Apr 2018 11:16 AM PDT

    Hi guys,

    At home I have a lot of local programs (5-10) that I need to login into which can be a laborious process. Whats the best/easiest way to create a program that logs in for you?

    For the moment I have built a javascript application that's run in a HTA which uses nircmd to start the relevant programs, bring the screens forward and make them the active window and then send the relevant key presses.

    The problem with the above is that if you move the mouse and click while the program is running then you'll mess it up. Furthermore, it's quite slow at inputting data (about 0.5 characters a second).

    Any ideas?

    Thanks

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

    do you know of a realtime animation (vector graphics) streaming library for the web?

    Posted: 03 Apr 2018 11:16 AM PDT

    How do I perform complex queries with Cloud Firestore/Firebase databases with node.js?

    Posted: 03 Apr 2018 09:33 AM PDT

    For the past few days, I've been stuck on a moderately complex operation on my Firebase realtime database. What I want to do is access the first non-null value after a particular key. I had also posted my question here for which I got no satisfactory answers. Please take a look.

    Querying seems to be really hard on firebase RTD and requires creating a Snapshot and whatnot. How do I perform such operations? Is there any alternative? Thanks for any replies.

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

    How to get values of different columns, but from the same line? SQL and PHP

    Posted: 03 Apr 2018 09:12 AM PDT

    Hello everyone, I am trying to get values from different columns, but from the same line. For example: get username, password, email address and by only knowing the username. So for example: user logins and wants to see some data related to them that is stored in the database, so I would get all the data from the line and then only display the data that I need, like his email address.

    Example:

    id | Username | Password | Email | ----+----------+----------+------------+ 1 | Ane | 1234567 | ok@ok.com | 2 | Angi | 1234567 | ok@ok.com | 3 | Bobby | 1234567 | ok@ok.com | 4 | Denis | 1234567 | ok@ok.com | 5 | Jerry | 1234567 | ok@ok.com | 6 | Mikha | 1234567 | ok@ok.com | 

    So I want to get for example all the values from Username Mikha, so:

    ID, Username, Password, Email

    6, Ane, 1234567, ok@ok.com

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

    In a Django/angularjs webapp, how would you avoid sending browser push notifications when the user has a browser tab open to the site?

    Posted: 03 Apr 2018 07:41 AM PDT

    Hi, just as the title says.. want to start sending chrome desktop notifications, don't want to send them when the browser session is active. Only other detail is that we do have websockets running.

    The one thing that may be wrong with the title is that maybe we still send the desktop notification when the tab is open but not active?

    What's the normal solution for this?

    Like when does youtube send, and how do other good web apps handle this?

    I guess this may be a combo of technical and UX question.

    Edit: missing word

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

    How would you make a Directions app/website

    Posted: 03 Apr 2018 07:34 AM PDT

    Hey,

    So I've been really curious about how one would go about creating their own directions giving/gps application.

    I've looked into this quite a bit and it seems that alot of it is going over my head since this is not in an area of programming I'm familiar with. Is there some API or data to use that would allow me to do this. What I'm really interested in is calculating my own route between addresses instead of using some service.

    If anyone could point me in the right direction or help me out, I'd really appreciate it!!

    Thanks all!

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

    No comments:

    Post a Comment