• Breaking News

    Wednesday, June 10, 2020

    How not to get dishearted during a project because it already exists somewhere else Ask Programming

    How not to get dishearted during a project because it already exists somewhere else Ask Programming


    How not to get dishearted during a project because it already exists somewhere else

    Posted: 10 Jun 2020 12:37 PM PDT

    I'm new to app development and I've been working on a specific app for a while.

    obviously I'm aware that there is app for everything already, but I just find it so frustrating that whatever I think of is already taken.

    so recently I saw an app that was doing exactly what I've been working on, and although I think my front end looks better, the other app is more functional than mine and got me really dishearted.

    how do you guys deal with this?

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

    How much should I charge for freelance dev work? (fresh IT grad)

    Posted: 10 Jun 2020 06:38 PM PDT

    I've recently graduated from uni so I don't really know what to charge or how to estimate how long this is all going to take.

    I'll be coding a website and VR app for Android, iOS, and Oculus where certain videos in the app are only accessible to paid users. I'll also be setting up the server to store videos as well as database for user credentials. They will be providing the design and wireframe for the website and app.

    There will probably be more work to be done after that but for now I'll just need to give them a quote so I'd appreciate any suggestions on pricing. I've never done a project like this all by myself so I'd need time to do some research on how to implement certain things. I don't want to overcharge them for amateur work but I also don't want to undercharge for the amount of work that has to be done. Thanks!

     

    Edit: Not sure if pricing is also based on location. Client is in the UK and I'm in Australia.

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

    How did Microsoft put Excel in the browser?

    Posted: 10 Jun 2020 09:28 PM PDT

    I'm a long time Excel user and have started using Excel in Office 365. It's quite responsive and has much of the same desktop features. I'm wondering what stack they use and how it's managed.

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

    The state of cross platform GUI frameworks in mid 2020

    Posted: 10 Jun 2020 02:23 AM PDT

    I don't really know what I want to achieve with this post, I guess a healthy discussion and (less likely) enlightenment about a GUI framework that I've missed.

    I want to build a cross platform native application, I really do, but the current state of cross platform GUI libraries lives me disappointed.

    Lets do a quick recap of what we have:

    1. QT - C++ based with many binding (the popular one is Python) with a very ambiguous license model (IMNAL, partly LGPL that requires you to link dynamically to Qt and forbids you to change it, partly GPL [like the charts sub module] that requires you to open source you app) - with an absurdly high license fee of almost $4k which is way bigger than a wallet of a solo developer that is doing something for a hobby. On top of that it uses C++ (which I dislike).
    2. JavaFX - Half baked (missing lots of modules that are available as third party), java based with very confusing versioning (was part of JDK, now its not. Third party modules are not supported by newer Java versions).
      1. There is TornadoFX that makes Java go away and replaces it with a way nicer language like Kotlin, but it has the same issues as JavaFX - half baked, officially supports Java 8 (which is coming close to End of Free public updates by Oracle)
    3. Swing / AWT - Probably already dead except for companies that are heavily invested into it and have manpower to maintain the code
    4. wxWidgets - Half baked, C++
    5. GTK - Looks good only in Linux, also C++
    6. Electron - Web based, a lot of available web components (graphs, auto complete, DnD and etc), no single framework that has extensive components so you are left with building your own Frankenstein of gazzilion npm packages, big binary size, memory eater
    7. And a lot more that are not ready for production.

    So. What options are left to a solo dev who want to build cross platform applications?

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

    Need help with math in java

    Posted: 10 Jun 2020 07:14 PM PDT

    I need to read a file called operations.txt and do the math it has in it based off the first token for example "+ 3 2" it would add them and become 5. But if one says "SQRT 16" it doesnt square root it. and same with sin, cos, and tan. It would also be cool if you help me understand why nothing is printing out in the answers.txt.

    import java.util.*;
    import java.io.*;
    public class OperationsProcessor {
    public static void main(String[] args)throws IOException{
    Scanner input = new Scanner(new File("operations.txt"));
    while( input.hasNext()){
    String line = input.nextLine();
    System.out.println(line);

    File answers = new File("answers.txt");
    PrintWriter pr = new PrintWriter(answers);
    String x = line.substring(0, 1).toLowerCase();

    if(x.equals("+")||x.equals("-")||x.equals("*")||x.equals("/")||x.equals("^")||x.equals("%")){
    double y = Integer.parseInt(line.substring(2, 3));
    double z = Integer.parseInt(line.substring(4));

    if(x.equals("+")) {
    System.out.println(y + z);
    pr.println(y+z);
    pr.close();
    }
    else if(x.equals("-")) {
    System.out.println(y - z);
    pr.println(y-z);
    pr.close();
    }
    else if(x.equals("*")) {
    System.out.println(y * z);
    pr.println(y*z);
    pr.close();
    }
    else if(x.equals("/")) {
    System.out.println(y / z);
    pr.println(y/z);
    pr.close();
    }
    else if(x.equals("%")) {
    System.out.println(y % z);
    pr.println(y%z);
    pr.close();
    }
    else if(x.equals("^")) {
    System.out.println(Math.pow(y,z));
    pr.println(Math.pow(y,z));
    pr.close();
    }
    else if(x.equals("sin")||x.equals("cos")||x.equals("tan")||x.equals("sqrt")||x.equals("cbrt")){
    if(x.equals("sqrt")) {
    System.out.println(Math.sqrt(y));
    pr.println(Math.sqrt(y));
    pr.close();
    }
    else if(x.equals("cbrt")) {
    System.out.println(Math.cbrt(y));
    pr.println(Math.cbrt(y));
    pr.close();
    }
    else if(x.equals("sin")) {
    System.out.println(Math.sin(y));
    pr.println(Math.sin(y));
    pr.close();
    }
    else if(x.equals("cos")) {
    System.out.println(Math.cos(y));
    pr.println(Math.cos(y));
    pr.close();
    }
    else if(x.equals("tan")) {
    System.out.println(Math.tan(y));
    pr.println(Math.tan(y));
    pr.close();
    }
    }
    }}}}

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

    Is it true that webgl is largely a port of the original Adobe flash graphics?

    Posted: 10 Jun 2020 06:11 PM PDT

    I know I heard that somewhere but I can't remember.

    submitted by /u/Plastic-Camp
    [link] [comments]

    Question about or operator in c++

    Posted: 10 Jun 2020 02:23 PM PDT

    So I'm wondering if you have an or statement, for instance. if (expr1 or expr2) and expr1 is true would expr2 still be evaluated? I'm using c++ but id like to know if this is true for most compiled languages?

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

    Please suggest me a site where I can work for free to gain skill and experience.

    Posted: 10 Jun 2020 09:17 AM PDT

    Hi, I am a 14-year-old starting in the world of programming. I want to widen my skills and gain experience, but I don't have any good ideas. Is there any place where I can get programming requests and I'll build apps for them? I don't want to spend or receive any money, just gain some experience (no, this isn't going in my resume). Is there any site for that (I'm looking for a site kinda like Fiverr but where I can do stuff for free). I can also do graphic design and basic video editing.

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

    Quantifying battery drain of a device

    Posted: 10 Jun 2020 01:50 PM PDT

    I have an ionic app running on an angular framework. In order to measure the values I need, I need to emulate on a physical device. This physical device must be plugged in at all times to emulate, so it charges the phone. What I want to do is measure how much the battery drains while I am using the device.

    Is there a way to predict how much battery will drain in the phone over a span of time? For reference, I am using geolocation plugin for ionic, particularly the watchposition() function and it fires every second.

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

    What's the best thing to have on your CV when applying to game studios?

    Posted: 10 Jun 2020 07:41 AM PDT

    Using RAKE to check for similar topics between strings?

    Posted: 10 Jun 2020 04:24 PM PDT

    I'm trying to make an application that needs to determine if a particular question that the user inputs is asking about the same thing that someone else has already asked about. My thought process is to use a keyword extraction algorithm (my plan rn is to use the RAKE algorithm) and compare the highest scored (most important) keywords of multiple questions to see if they have items in common.

    Does this make sense, or would there be a better approach? For example, is there some sort of string similarity algorithm out there that already tackles this problem?

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

    Need Help with Pyhton/OpenCV Image Processing

    Posted: 10 Jun 2020 12:22 PM PDT

    I hope I am asking this in the right place, and any advice would be greatly appreciated! I am pretty familiar with Python in general, as well as using the NumPy library, but am definitely a beginner with OpenCV.

    I am currently writing a program that should take in an image containing a grid of colors, like this one, and then process it in order to identify each square of the grid, and save the color of it in a 2d array, in order for me to further process this data.

    I have no problems with the uploading of images, nor with processing the array once compiled, but am really struggling with the actual processing of the image and am looking for advice on how to best approach this task. I have not gotten any of my attempts to work past a black & white image, despite trying to use a mask for each color, bilateral blurring, Gaussian blurring, and and even manual recoloring before running it through methods to detect corners, or detect contours, or even detect Hough Lines for the grid itself.

    All the online tutorials and documentation uses a "predetermined" color for their sample code, and my issue is that this program should work with any number of colors and any number of squares, so the thresholding of hsv (or rgb, or whatever) values can't possibly be done beforehand or hard coded.

    Thank you in advance for any feedback you can give me! If I you would like me to post/comment any snippets, please let me know!

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

    What’s your favourite node package?

    Posted: 10 Jun 2020 03:04 PM PDT

    As you know there's a node package for nearly everything! What's one of the lesser known ones that you find useful?

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

    How do I name my entity that represents a class (with teacher and students)

    Posted: 10 Jun 2020 11:16 AM PDT

    I'm coding this app to schedule classes. I have my teachers, students, etc. and now I need to name my class entity. The problem is that I'm using Java and Class is the name of the entity representing other entities. This app is coded by other developers as well and we couldn't decide a better name than Class or ProductNameClass.

    Options like Lesson, Lecture, Aula (class in portuguese), etc., but none of those names felt right. Because we're not native speakers of the english language we empty our bucket of ideas.

    Does anyone went through this similar issue or have a suggestion?

    (I'm not shure if my problemas was clear enough, so here a snippet of what I mean with a code to exemplify) ```java public class Teacher { ... }

    /* That is not a very good name, causing confusion with Java's Class */ public class Class { private Teacher mTeacher; ... }

    public class Student { private List<Class> mClasses; ... } ```

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

    I have two years of professional Java experience. Is it a bad idea to apply for C# / .NET jobs?

    Posted: 10 Jun 2020 01:49 PM PDT

    I was a junior software engineer working in Java / SQL until COVID shut us down. I had been working on our flagship desktop application and doing mostly backend / core Java + SQL work, and just around the time I was laid off, I was getting into Java EE / web apps.

    I understand that C# is quite similar to Java. Is it a bad idea for me to apply for C# jobs?

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

    Read encrypted text files?

    Posted: 10 Jun 2020 01:41 PM PDT

    I am trying to read files from a game to research formulas to calculate damage, defense, etc

    These files are .bt, .bc, .bi, .bm extensions and already tried using text editors to open them but they seem to be encrypted. Seems obvious that .bt files are text, bi are images, and so on.

    I know that I need to use the same tool that it was used to encrypt it, to decrypt it. However can someone point out some keywords I could search for to start figuring this out?

    Example file I want to read here

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

    Run .app file on windows

    Posted: 10 Jun 2020 01:22 PM PDT

    Hey, i downloaded the .app files for imessage and FaceTime and also extracted the files inside by duplicating and converting to zip.

    I am trying to run these apps on my windows laptop. I know this is probably going to be a tough project, but i dont even know where to start, can someone give me some guidance pls

    I found a few repositories on github called executor, which allows you to run mac apps on windows, if that is any help

    Any help is appreciated, thanks

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

    How much should I ask for my software?

    Posted: 10 Jun 2020 05:49 AM PDT

    Hi,

    I was recently approached by a rather big local company to develop a software system for them. I created a prototype and they are quite satisfied with it and want to know how much will I sell it to them for. I've never worked like this before, always been an employee on a salary. Can you help me figure out at least the ballpark price?

    The software system involves:

    • - A back-end service
    1. Small database (~10 tables)
    2. WEB Api
    3. Integration with another product to import data from it
    • Simple CRUD front-end of data
    • A mobile application that works with a bluetooth device (scanner)
    • Obviously, I will have to support the system as well

    I am really lost here. For me this seems like a very simple project (might be due to my experience in the field).

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

    How Web Scrape search results and then, when click "Show More Results" Button, scrape the other results on the same page?

    Posted: 10 Jun 2020 01:00 PM PDT

    I don't want to scrape the entire page again whenever more is added to it

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

    Does code that follows the SOLID principles live up to its hype?

    Posted: 10 Jun 2020 06:56 AM PDT

    We hear how great the SOLID principles and using design frameworks are. You're taking the time up front and decoupling everything and creating all this abstraction so that in the future if you want to add or remove things it should be faster to do and it doesn't break anything. It also makes it easier to test things. My question is does it live up to its promise? Is it really worth the time to plan for the future than just write the code for today? Can you tell some personal experiences where the payoff was exactly as expected and when it wasn't? Have you found a sweet spot on the size of the application where it makes sense to go through the startup cost to implement SOILD and where it doesn't make any sense?

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

    What is a good 2D molecular dynamics simulation software?

    Posted: 10 Jun 2020 12:12 PM PDT

    I am going to teach some high schoolers how to program in python, but I am not sure what software to use to model molecular dynamics. I have used Pygame, but I know that once computations are too intense it will slow down. Any insight into certain software or packages that I am not aware of would be greatly appreciated.

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

    Version control for customized solutions on an Open Source CRM

    Posted: 10 Jun 2020 12:11 PM PDT

    Hi everyone,
    I'm hoping you can help. I'm a little green so I apologize if I am not clear.

    Gist:

    We build customized models based on the core SuiteCRM(Open Source CRM) . Eg Insurance specific CRM for insurance companies etc.

    I am trying to implement version control so we have a better tracking system of the changes implemented but we run into a major issue.

    For a CRM, unlike a website, changes are made both on the front end and the back end.

    Eg: Admin user of the CRM can add/change fields/modules/dashlets in production that affect the php files.

    My Understanding:

    My understanding, devs work on a working copy on their local repo.

    And then push changes to production.

    Whereas when an admin user(client) makes a change, it is directly altering the files in production.

    Due to our work essentially being customizations on a packaged solution, how would we go about implementing version control?

    P.S.

    I'd love to use that as a base to then delve into pipeline and more automated upgrades.

    Would like to understand how you do it?

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

    How Can I Talk to my Boss About Implementing Automation in my Internship/Job?

    Posted: 10 Jun 2020 11:55 AM PDT

    Hey guys, I hope this is the right place for this question. So, I'm going to be starting college next year and I've been working as an intern for a small insurance company since December, and I've recently been working remotely since March/April. This shift to remote work has allowed me to convince my boss that I can work remotely while I'm away at university. So far as jobs go, I certainly can't complain. It's incredibly flexible, looks good on a resume, and I'll be able to do it part-time come the fall. However, some aspects of the work can be a bit mundane, and some of it is essentially just data entry.

    My current plans are to study MIS, and I've been learning Python and Java for a little while now. I've had ideas recently about how I could automate certain processes for greater efficiency, and I really think it could provide extra value to the company. However, I've been concerned and unsure of exactly how to broach the topic with my boss, and I'm worried about some potential issues with the automation process. I was hoping I'd be able to tap into the collective expertise of Reddit to gain some insight and advice.

    My 2 primary concerns are:

    1: I accidentally automate myself out of a job. (Since I'll be able to work remotely for the foreseeable future with this internship, rather than only working this summer, I don't want to end up with nothing productive to do)

    2: If my boss isn't a fan of my automation ideas, I wouldn't want him to be suspicious of me implementing automation under his nose. (I would never automate my job without permission, but I'd be worried about him being suspicious if I were to be "too efficient")

    There are some other things I'm worried about too. For one, the automation I'd be looking to implement would use browser automation, and I wouldn't want to violate the terms of service on our vendor websites in the event they aren't fans of bots (and generally, it seems most websites aren't).

    What would you guys suggest? Do you think this is a worthwhile topic to bring up with my boss, or would it just be rocking the boat a bit too much? Also, if I should suggest it to him, what would be the best way to broach the subject? Thank you all for your time & help!

    TL;DR: I'm an intern, and I'm interested in automating some of my work, but I don't want to eliminate my job. How should I go about bringing it up with my boss?

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

    why is the gui tool, qt, so large in size (1gb+) and and it costs money? why not some small tool like 5-20mb and free like how pygame is on python?

    Posted: 10 Jun 2020 11:03 AM PDT

    i know that pygame is for games but still it does graphics. so why for guis which are supposed to be to be like generated from small data( if u get what i mean) still paid and large in size for c++?

    who uses qt and hows is the company surving? i see gui in java, that look cool and are small. like libgdx setup.

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

    No comments:

    Post a Comment