• Breaking News

    Thursday, June 25, 2020

    What is the best way to create a GUI? Ask Programming

    What is the best way to create a GUI? Ask Programming


    What is the best way to create a GUI?

    Posted: 25 Jun 2020 06:56 AM PDT

    I want to take my programs to the next level using GUIs, my problem is I never created one and all the tutorials are really long. I don't want to lose five hours to learn a library I'll never use again. Can someone tell what should I use to create them? My preference is a python library, but I also code in C and GO, so these are fine too. Thanks in advance

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

    How to load custom content on a dashboard on a user basis? (React)

    Posted: 25 Jun 2020 01:39 PM PDT

    Hi all, I am attempting to work with companies to create custom dashboards that they can view upon login to my website. Essentially, I would work with these companies on an individual basis to create one or more dashboard 'panels' (an interactive graph, a metric displayed in a unique way, etc) that only they will have access to in their dashboard portal.

    My question is relatively simple - is there a best way to do this? I am very experienced in React, however I have yet to dip my toe into Server Side Rendering, which sounds like it may be of use here. I was thinking of creating these components on the server, checking a user's id upon login, and fetching their components for them to interact with. Any issues with this, or am I not understanding SSR?

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

    Is there any way to query an HTML string from an open page on a web browser into a TXT?

    Posted: 25 Jun 2020 10:04 PM PDT

    For example i want to retrieve the video name / channel name from youtube, so i can use it on a live feed chat (the party to add the data to the chat is done, I just need the data)

    I can elaborate further examples, but I want to know more or less what I'm looking for?

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

    Backend portfolio projects

    Posted: 25 Jun 2020 01:35 PM PDT

    What are some backend javascript projects you can showoff to recruiters on github

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

    Long Running Task in Web Application

    Posted: 25 Jun 2020 11:51 AM PDT

    I'm looking for the best way to implement a long running task in my asp.net mvc 5 application. In this task, multiple actions are taken which can increase the time and memory consumption of the action. I would like to put these tasks in some sort of queue where I can set some kind of limit so that it never gets too bogged down.

    The task starts with making a call to the database to get some information. It then uses this info to create a file in bytes with the number of pages being dynamic. Once the file is created, it is then sent to an API. Upon success, the database is updated and the task is complete. The size of the file is usually the main reason for the time and performance issues.

    As far as user notification, it can be handled different ways. For success, it's not important to show them that it worked but it may also be helpful to show something. Errors are the same way and can be found again in their list of pending work. I would rather not automatically retry because sometimes the errors are with the files.

    Given this information, I'm wondering what might be the easiest way to handle this. I am using Hangfire in the app for another feature so would this be good enough? I've looked into MQs, dotnet core hosted services, and even custom job queues but wonder is it the best path forward? I'm also working on upgrading this to a .net core web API so framework isn't necessarily important.

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

    Help to convert C++ project program to C program

    Posted: 25 Jun 2020 10:20 AM PDT

    I created a program on Dev c++, C++ project. I wanted to convert the C++ project to C program. However, i am having difficulties changing the code to work on C program. Please any help would mean a lot :) Thank you!!

    I want to convert the c++ project to C project :

    Code (C++) : https://pastebin.com/raw/dMKZVcRs

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

    OpenAPI: The Good, The Bad and the Ugly

    Posted: 25 Jun 2020 08:15 AM PDT

    Curious to know: what ya'll think about OpenAPI (aka Swager)?

    - What do you like about it?

    - What do you hate about it?

    - What does it lack?

    And what are the use cases it is not fit for? So for example, if I want to develop an event-driven architecture which is not REST driven, would OpenAPI/Swagger fail in this?

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

    Trying to initialize and store variable, and return distances with arduino.

    Posted: 25 Jun 2020 06:08 PM PDT

    Goal: create new variable based on objects distance in front of sensor.

    Sensors can get max distance of 10 ft.

    Sensor will not know the furthest distance <= 10 ft

    When arduino loads, measure the furthest non-moving object within 10 feet over a span of 5 minutes.

    The farthest non moving object is established by time of farthest distance object being steady for the most time during the 5 minute period. So, it would likely have the most and farthest "pings" recorded

    far_object; while far_object < -1: //upon starting program it will be this Get_distance() //function to run sensor, and measure distances // I feel like there should be something to "return" here. far_Object = return Get_Distance(farthest distance < 10 feet with most "pings') // How to put this in a formula 5 milli break; // stop the while loop after 5 mins. blue_light(): // Turn on blue light if far_Object > 1: // using new variable in code in program red_light(0); Green_light(1); 
    submitted by /u/A_solo_tripper
    [link] [comments]

    Which Programming Language Do I Learn To Move Into A New Job?

    Posted: 25 Jun 2020 02:15 PM PDT

    Hello,

    I currently work as an inventory controller at my warehouse, but they are expanding with a new department, meaning new positions with similar pay to mine. We are soon going to be implementing the new JDA Workflow Management System from Blue Yonder running on Microsoft Azure, but they also outsource to Mule software for API technologies.

    No one told me any of this, but I figure that this is a new opportunity to learn/do something new so I started researching online.

    I went to the parent company's GitHub and most of their projects and files are based in python, then C++, with some R and some Rust, shown here:

    I don't have any experience working with code - I know front-end( HTML/CSS/Javascript) , I've done several tutorials with Python, but I've never really programmed something before. This job will most likely involve on-the-job training but with a lot of problem-solving.

    How can I prepare myself to apply for this new position and what can I expect working in Microsoft Azure or WMS technology?

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

    [Python] Can I get help with generating a list of some randomly generated prime numbers? I just started learning programming.

    Posted: 25 Jun 2020 10:17 AM PDT

    Hi everyone, I'm a student in finance who has just started taking a programming introduction course. The language I'm studying is python. An optional challenging problem from the class was to create a list of a specific amount of different prime numbers.

    Here is my attempted work:

    https://github.com/phachiennhan779/My-stuffs/blob/master/My%20HW

    I don't know what is wrong with my code and why it generates 11 copies of the same number. I would be grateful if someone can guide me through this problem and point out my mistakes.

    Forgive me if I somehow annoy anyone, since I'm new to the world of programming. Thank you very much.

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

    Create a server on PC that listens a command given by a smartphone app

    Posted: 25 Jun 2020 12:41 PM PDT

    I want to build an app that when clicked, there's something on my PC that listens to that event and run a command on my computer.

    What is a simple and clean way to achieve that?

    For what I've heard about node, it sounded like an opportunity to learn more about it and its frameworks, can node do this? If not, what are some other ways to get this result?

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

    What is your story, tid-bit or just thought on anything programming?

    Posted: 25 Jun 2020 04:23 PM PDT

    Help Using OkHttp

    Posted: 25 Jun 2020 04:22 PM PDT

    This is probably a super basic question but I'm trying to retrieve data from an API and to do so I've been told to use OkHttp for my requests.

    My issue is literally just that I do not know how to import the OkHttp library/package into IntelliJ for any of the sample code I have to actually compile and start working. I have very limited knowledge and would appreciate any help. Anything from downloading the package from GitHub to implementing it in my program is a complete mystery to me

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

    Cross-platform GUI applications

    Posted: 25 Jun 2020 04:13 PM PDT

    Hi subreddit!

    I was wondering how one could go about making a cross-platform application. I don't want it to be a web app (that would be too easy) and I definitely do NOT want a heavy dependency. No Visual C++ Redistributable, or JDK required. I also do not care about mobile devices or Chromebooks. I simply want something that can be executed on the Big 3 (Windows, macOS, and [GNU/]Linux) Operating Systems out of the box.

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

    Creating a math formula in JavaScript

    Posted: 25 Jun 2020 03:08 PM PDT

    So I know nothing about coding, but I'm creating a PDF form to auto calculate commissions for my sales team. Apparently this needs to be written in Java. I was just wondering if anyone knew how to lay this out. Essentially I have a text box that has a number, and I want the next box to auto calculate the taxes. So, TextBox1 x 0.05. How would I write this in Java? Any help would be greatly appreciated.

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

    How to write a python script that updates information of all products in the store based on data from excel?

    Posted: 25 Jun 2020 01:03 PM PDT

    "Help me please"

    A Python script that I can easily run in the same folder as the datafeed to update all stock levels on the website. The script should be written in such a way that

    Expected Input: Datafeed.csv

    Expected Output: woocommerce Endpoint

    Algorithm

    1. Use the list all products and list all product variation endpoints to retrieve all product data from website. The expected JSON will be sorted by Product ID instead of SKU Code.
    2. Retrieve and filter all data from datafeed.csv so that only relevant products and considered.
    submitted by /u/iBunty7
    [link] [comments]

    hi! this is a link to a discord server called The Developer's Cavern. It is a great community, where we help people with all kinds of programming questions. feel free to join!

    Posted: 25 Jun 2020 01:24 AM PDT

    Is it a bad idea to encrypt a file with a key and store the salt and hash of the key with the encrypted file?

    Posted: 25 Jun 2020 08:51 AM PDT

    I was trying to write a short script to encrypt all the text files in the directory and store it in a file alongside the salt and hash of the key. The hash would be generated using the PBKDF function. But if someone tries to read the file they could figure out that there's a salt and hash there and the salt would become useless because then they can use the salt and existing rainbow tables to crack it?

    Am I thinking correct or there's something I'm not understanding about salts?

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

    Mac ARM or Mac x86

    Posted: 25 Jun 2020 11:57 AM PDT

    What are some of the key nuances between the two systems in terms of me developing on these two machines? Will arm mac have support in terms of dual booting into windows or using docker. Currently I havent head of such support.

    Im shopping for a new macbook but I can wait. My current machine is still efficient enough. I currently do some blockchain programming using solidity, JS, and swift.

    Why choose an ARM mac over the x86? I want to hear from a programmers perspective...

    Thanks Programming Fam.

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

    Flutter app errors not arriving in firebase console

    Posted: 25 Jun 2020 11:17 AM PDT

    am using the firebase_crashlytics library on Flutter.

    I have configured it as described in the docs.

    I was able to send one error report from my client (running on an Android emulator). All subsequent error reports from the client are not showing up (after 1 hour).

    I initialise Crashlytics as follows ...

    Crashlytics.instance.enableInDevMode = true; FlutterError.onError = Crashlytics.instance.recordFlutterError; 

    Then I have written my own sort of assert function that I use, which ultimately throws an error to be passed to crashlytics...

     static void asrt(bool condition) { if (condition) return; StringBuffer sb = StringBuffer(); for (var logLine in _getInstance()._logTailBuffer) sb.writeln(logLine); Crashlytics.instance.log(sb.toString()); throw "asrt check failed"; } 

    This code succeeded in arriving in the Firebase Crashlytics console once, but no other reports have arrived.

    I have tried throwing errors in other spots of code and even calling Crashlytics.instance.crash();

    Nothing is arriving...

    Everytime an error is thrown by my client, the following line is logged...

    I/flutter ( 6045): firebase_crashlytics: Error reported to Crashlytics.

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

    ASP.NET Create Operation, attached current UserName

    Posted: 25 Jun 2020 11:15 AM PDT

    I'm working on a personal project which is a very basic dentistry website where the current user(customer) can create a new appointment, edit, delete (CRUD operations). I currently have it working where when the user wishes to create a new appointment is grabs their username and pastes it into the Input text field which then sends it to the controller and binds the data to then create the appointment.

    What I'm trying to figure out is if there is a way I can automatically grab the current username and bind it to the appointment without having the text box on the create page.

    Here is where the data is binded in the controller and creates the appointment.

     public async Task<IActionResult> Create([Bind("ID, CustomerName, AppointmentTime,CustomerDoctor")] Appointment appointment) { if (ModelState.IsValid) { _context.Add(appointment); await _context.SaveChangesAsync(); return RedirectToAction(nameof(Index)); } return View(appointment); } 
    submitted by /u/WormShoe
    [link] [comments]

    Low-level programming, where to start?

    Posted: 25 Jun 2020 07:28 AM PDT

    Hello! I'm going to start learning low-level programming to expand my overall understanding of "how computers work" but I don't know where to start. I have a couple of years of FP and OOP experience in various high-level languages including CL, but I have never studied any low-level stuff, because my university course did not include it (and I was to foolish to understand, that if I want to learn something I shouldn't rely on my university).

    I know C at the very basic level, but I know almost nothing about hardware. Should I begin with assembly or C/C++? Could you please recommend me an entry-level book about low-level programming?

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

    Need Advice: should i ditch front end ?

    Posted: 25 Jun 2020 05:07 AM PDT

    i spent 2 years learning front end but every time i would learn html i had to leave coding for studies then i learned c s s then i had to leave coding again then java script... so every time i came back i had to learn basics and make basic projects cause i was rusty and now this is the 4th time... and honestly going over the basics and making basic projects again is too boring and repetitive for me.

    i always wanted to learn back end anyways but wanted to learn basic front end before that... but now i feel guilty leaving my 2 year work what should i do ?

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

    Need help: Are there any possibilities for a browser application to validate a zip file if the download was successful (file 100% complete without interruption) and if not delete, invalidate or "break" the file so that the user cannot unpack the file?

    Posted: 25 Jun 2020 02:19 AM PDT

    No comments:

    Post a Comment