• Breaking News

    Saturday, February 13, 2021

    Are my boyfriend's long hours/ working on holidays without compensation normal for a systems dev Ask Programming

    Are my boyfriend's long hours/ working on holidays without compensation normal for a systems dev Ask Programming


    Are my boyfriend's long hours/ working on holidays without compensation normal for a systems dev

    Posted: 13 Feb 2021 05:31 PM PST

    My boyfriend and I are both developers, I work full stack for a medium sized company that is pretty much out of the startup stage. He works as a systems dev for a very small fintech startup.

    I have a lot of problems with the place he works. From their lackluster pandemic response, basically "sure we have some of the worst covid numbers in the country and you can all do your jobs from home but come in anyways because we want you to", to their pretty below market salaries 50-55k. To their ridiculous moonlighting policy ie start ANY side project for profit and we will fire you.

    But the thing that's bugging me right now is that every month something major seems to break, and as he is on the systems team its partially his job to fix it. Last month everyone on the team was woken up at 2am to fix some issue.

    Today, something major with the servers happened so there are talks of a meeting this Sunday/ Monday to deal with it. Monday is a provincial wide holiday for us, and Sunday is Valentine's day. And of course there will be no extra compensation for the extra time put in to fix these issues.

    I'm all about the hussle, and I work weekends on occasion too, but it's out of my own fruition. Not a mandatory thing. But my boyfriend says this stuff is normal "and happens at every company on the systems team". Personally feel like he is being taken advantage of by a shitty company and this is actually not normal.

    Thoughts?

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

    Need advice. Non-tech Construction guy wants to develop project management software

    Posted: 13 Feb 2021 07:22 AM PST

    Hi, I'm a construction project manager that would like to develop software that automates the collection and summary of labor hours for monthly billing. Ideally, information would be entered via tablet or iphone with some rule checking to ensure data integrity and value (i.e. maximizing regular hours vs. premium).

    Although I have a degree in IT, it's been 20+ years and I have no illusions about programming it myself. I'm looking for any advice with regards to recommendations for consultants, languages, etc....basically anything to get me started.

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

    Are C compilers deterministic?

    Posted: 13 Feb 2021 09:56 PM PST

    Wanted to know whether if I compile the same C program twice on the same operating system, same version of C, with the same flags, will the resulting assembly code be any different between the two compile operations? If it is different, what causes the difference in assembly code?

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

    Is there a way to setup a password protected github repo without requiring account approval?

    Posted: 13 Feb 2021 12:04 PM PST

    I have a project I've been working on and enough people have requested access to the code that I've decided to setup a patreon to access it. However, I realize most devs use git to make life easier and would like to continue just pushing to the repo.
    I feel like if people are paying (even if it's just $1) they shouldn't need to message me and wait a few hours to get access to the repo after I approve the account.
    What I'd prefer to do is post a private file in the patreon account with a password that grants access to the repo. However I can't figure out if there's a way to do this on github.
    If there's not, are there any other suggestions anyone has for something like this?
    My other idea was to just create a dummy account, add that to my repo and post the login credentials for that account. I'm not sure on githubs security policies surrounding a use case like that though.

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

    How much JavaScript do you need to know to use React, Babylon and other “extras”?

    Posted: 13 Feb 2021 02:06 PM PST

    Forgive me if this is a bit of a newbie question!

    I'm still quite a beginner in JavaScript but enjoying the journey so far. I'd like to try out some HTML5 game dev and improve my web dev skills.

    How much "vanilla JavaScript" do I have to know to make these extra frameworks worthwhile? Should I wait until I've got a better grasp on the basics before adding new things to the mix?

    All opinions very much appreciated.

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

    Converting Arduino C++ to C

    Posted: 13 Feb 2021 04:45 AM PST

    I am currently working on a larger assignment where one part is to convert Arduino C++ to pure C to assembly to machine code. The part I'm (currently) stuck on is the Arduino C++ to pure C part. The way I understand it the Arduino IDE is built in C/C++ and does a lot of work in the background when I use syntax like "pinMode" or "delay". How would one go about converting Arduino C++ to "pure" C? Pure is the word my professor used and I find it very ambiguous.

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

    Intro to BigData

    Posted: 13 Feb 2021 09:22 AM PST

    TL;DR Looking for resources to start on BigData

    Hi

    I work at a software factory (we build systems for other companies with no dev teams). We're most experienced with more traditional systems (management, business processes and that kind of stuff) and we do it well (I think).

    This week my boss gave me a special task. I have a few months to learn BigData tools and techniques in order to, eventually, introduce those to the whole company.

    I know this is not piece of cake and getting a degree might be ideal, but it's still a pretty good opportunity.

    The problem is that I have no idea where to start. Any book, or even a syllabus would be appreciated. Also, if anyone knows of a specialized tool (database, library...).

    Thanks in advance

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

    Need help to choose the rigt language for me...

    Posted: 13 Feb 2021 01:08 PM PST

    Which language do you recommend to learn for the first time?
    I mostly want to learn programming because I am interested in it, just for fun and want to challenge myself.
    I don't plan to make money in the near future, but I'd also like to know that if I went to uni in Computer Science major, then which language would be the best?

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

    Virtual desktops - front end

    Posted: 13 Feb 2021 01:52 PM PST

    Hey I am wondering how virtual desktops in browsers work? Are they created in JS/CSS to mimic the real systems, or they are sort of iFrames containing real OS just put in the browser? Like for example Windows Desktop on Demand or similar?

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

    I need help to find some articles about how software developers are burdened with activities of other areas of expertise

    Posted: 13 Feb 2021 05:24 PM PST

    I'm not asking for help with my assignment per se. The assignment title is "As a software engineer you've been hired to help the local government improve a job portal". One of my tasks in the said project would be to design and make a Google Form with questions for possible companies with open job positions. Such form would be an important way of storing information for the system. Then I should investigate ways to improve the design of the system... I think you see where I'm going with this. This is complete bullshit. For this kind of project, we would need an HR professional, a marketing professional, a web designer, and, finally, a software engineer with a team of specialists like DevOps, front-end specialist, and so on.

    The job of a Software engineer in this kind of project is to design the system, to determine which kinds of tech to use, and so on. I mean, I know that it's much more, but you get the point. As a software engineer, no one is out there doing some Google Forms.

    I'm reporting about the assignment itself (it's a part of it), and in it, I'm talking about how shallow and poorly designed the whole thing is. But, I have to cite my fonts. So, I'm looking for some articles that talk about misconceptions about the work that a software engineer does and how many times we are assigned to activities that would be better delivered by another kind of professional. I mean, too often I see job opportunities asking for considerable knowledge of online marketing, graphic design, and a lot of stuff that should not be a basic requirement for working in medium-size companies, what they want is "one-man teams" and that's a recipe for burnout for sure.

    I know a bit about online marketing and graphic design myself, but, it's outrageous to think that my level of knowledge is comparable or exchangeable for what those professionals can bring to the table.

    Edit: I'm really sorry that I didn't make it clear: It's a university assignment. It's just a theoretical exercise. I have to write a report and design a mock-up project about it. It's for an Introduction to Engineering class. I'm just pissed of about how poorly the assignment was designed. And, part of the assignment is to talk about my thought on the assignment itself.

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

    Visual Tutor for Scheme?

    Posted: 13 Feb 2021 04:07 PM PST

    Hi, I'm taking a coding class in scheme.

    Last year the course was in python and I used - http://pythontutor.com/

    To help me see how the program was running my code to figure out why it's not working. Is there anything like this available for scheme? Or even lisp? Any help would be greatly appreciated Thank you!

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

    Is there a free program to convert a video to an MP3

    Posted: 13 Feb 2021 04:05 PM PST

    software subscription service

    Posted: 13 Feb 2021 03:07 PM PST

    Hello. I am a newbie and am trying to start a software subscription service for a python script that I have written. I would like to do the following:

    1. Make a very simple website, where each user can have an individual dashboard.
    2. The user would be able insert their individual keys into their profile
    3. The user would then be able start a new instance of the script using the entered keys.
    4. The user would be able to turn the script on or off.

    The script is very light, so I could start by housing this on my Raspberry Pi, but I have also considered AWS. I would love some general advice on how I would go about getting started. I can build a basic website, but the integration with my python script is well beyond my current knowledge (I'm happy to learn if I'm pointed in the right direction). Thank you very much.

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

    Comparing SQL time in Python

    Posted: 13 Feb 2021 02:58 PM PST

    Ok so I've been trying to figure this out for hours and I have a pounding headache. It sounds simple, but I just can't figure it out. I am trying to compare SQL data (date and time) using the following query in Python with current time:

    select top(1) [DataHere] From [FIRST_Table].[dbo].[FSTable] order by [DataHere] desc 

    This prints sql date and time in Python:

    sql_data = pandas.read_sql_data('SELECT TOP 1 DATAHERE FROM first_table.dbo.fstable ORDER BY DATAHERE desc', engine) 

    To print current time,:

    now = pandas.read_sql_data('SELECT CURRENT_TIMESTAMP AS Current_Date_Time;' , engine) 

    I did a lot of research on Google on stackoverflow for hours and found about strptime, but that didn't work.

    So to simply explain what I want to do is:

    now - sql_data = time difference.

    Could anyone PLEASE lead me to the right direction? THANK YOU.

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

    Copyright issues to tackle regarding building a specialized search tool for YouTube?

    Posted: 13 Feb 2021 02:57 PM PST

    I want to build a specialized search tool for a group of people that use YouTube to search for specific stuff. This service has to process the videos and generate summaries of things of interest within the video and the audio. Then the service will let the users search through the videos and eventually point to the link of the video or embed as an iframe.

    Now I know that downloading YouTube is illegal as is. But the as far as I understand from the Terms of Service, I can get YouTube's written permission to do this. Am I right?

    Also, if I make ad money from a web application that points people to the right YouTube links, does that violate any terms that I'm not aware of?

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

    Finding platform developers

    Posted: 13 Feb 2021 10:25 AM PST

    Hello AskProgramming,

    I am a moderately successful entrepreneur reigning from Sweden and I had a few questions regarding recruiting potential programmers for a developing platform that is in the works. I know of a few freelancing websites within the nordic region but I am unsure of the best on an international scale. If anyone has any information that they feel could be useful feel free to send it my way!

    Thank you in advance for all the help!

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

    [JavaScript] Need help reducing list of Maps

    Posted: 13 Feb 2021 01:54 PM PST

    Hi, I'm a beginner in JavaScript and I'm currently working on an assignment where I have a list that looks something like this:

    [ {key: 'sallad' , value: {price: 10, extra: true}}, {key: 'bacon' , value: {price: 15, extra: false}}, ... ]

    But I need it to look like this:

    { sallad : {price: 10, extra: true}, bacon : {price: 15, extra: false}, ... }

    I have read about the function reduce and I have tried to use it but I so far I have not been successful. I would really appreciate if someone could help me. Thanks in advance :)

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

    How to record data into a file from a live stream of data?

    Posted: 13 Feb 2021 05:05 AM PST

    I want to record a stream of data from a windows app. Its basically a column of numbers which updates every second.

    I want to record each number into a text file or an an array. How do I do that?

    I guess I can't 'web scrape' since it's not a webpage, but a windows app (made in java I think)

    Any help whatsoever will be very appreciated. Thank you.

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

    Ability to work sporadically on contract/projects and WLB

    Posted: 13 Feb 2021 10:55 AM PST

    Throughout the year I either have zero time or all of the time.

    I'd like to fill more of the empty time with work(well, money); and that's not super hard when weather is good: it often isn't.

    Does programming allow for working sporadically on projects? I.E. December is boring, I don't have family/friends for Christmas, and maybe take on a coding project for a month or two: maybe several?

    I'd also like to retain a relatively solid work/life balance. Working 100+ hour weeks is hopefully behind me. Is working project/part time basis for coding realistic: or a niche thing that would be hard to fill?

    Thanks in advance. :-)

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

    Very new to programming and JavaScript, but can anyone tell me why my array is returning commas?

    Posted: 13 Feb 2021 10:51 AM PST

    Making a random password generator. When I return my random password, the array uses the commas in my variables (specialCharacters, numbers, upperCase, and lowerCase). How can I make sure it doesn't?

    JS CODE:

    var generateBtn = document.querySelector("#generate");
    function writePassword() {
    var password = generatePassword();
    var passwordText = document.querySelector("#password");
    passwordText.value = password;
    }

    let specialCharacters = ["!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "{", "}", "~", "?", "<", ">", "/"];
    let lowerCase = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
    let upperCase = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
    let numbers = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"];
    let masterArray = [];
    let randomPassword = "";
    generateBtn.addEventListener("click", writePassword);
    function generatePassword() {
    let passwordLength = prompt("Please enter the number of characters you want for you new password. It may be between 8 and 128 characters.");
    if (!passwordLength || passwordLength <= 7 || passwordLength >= 129) {
    return alert("Invalid Response. Please try again.");
    }

    let useLowerCase = confirm("Do you want your new password to include lowercase letters?");
    if (useLowerCase === true) {
    masterArray += lowerCase;
    }
    let useUpperCase = confirm("Do you want your new password to include uppercase letters?");
    if (useUpperCase === true) {
    masterArray += upperCase;
    }
    let useNumbers = confirm("Do you want your new password to include numbers?");
    if (useNumbers === true) {
    masterArray += numbers;
    }
    let useSpecialCharacters = confirm("Do you want your new password to include special characters?");
    if (useSpecialCharacters === true) {
    masterArray += specialCharacters;
    }
    let randomPassword = " ";
    for (let i = 0; i < passwordLength; i++) {
    randomPassword += masterArray[Math.floor(Math.random() * (masterArray.length))];
    console.log(Math.floor(Math.random() * (masterArray.length)));
    console.log(randomPassword);
    }
    return randomPassword;

    }

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

    How to create a program that'll write given letters or numbers out, but they should've look like billboard inscriptions (movin from left to right exactly).

    Posted: 13 Feb 2021 10:38 AM PST

    I know it might sound dumb but i wonder which libraries to use.

    Tbh i dont know even how to start cause my programming skills are low. Thanks for help!

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

    Help Me Understand OAuth2 and CORS in a Micro Service Context.

    Posted: 13 Feb 2021 10:35 AM PST

    I am trying to develop a micro-service style application that allows users to create an account and log in using their existing discord account.

    I am using ReactJs for the front-end and Java (Spring Boot) for the back-end. React will query a spring cloud gateway, which will route requests to various spring micro-services.

    One of those micro-services will be the auth service. It will be responsible for routing requests to discords authentication server and setting the authentication cookie upon successful login. I am aware that this could probably be put into the gateway instead of being a separate micro-service, but I chose to package it on its own because if I were to make another web app that leveraged discords oauth2 I just want to be able to plug this service in rather than have to bake it into the API gateway again. If you think there is a better way to do it I would love to hear it, but it's not the point I'm making this post and I don't think that putting the auth logic in the gateway would solve the issue I'm having.

    My problem is when I try to hit discords authentication service from the react front-end I am met with blocked requests, citing CORS Missing Allow Origin. I understand what this means. The front-end is running on a port that is different from the hosted resource (authentication micro-service), and it doesn't have permission to request the resources.

    Just for the sake of testing, I created a button in a react app that, when clicked, does the following

     fetch("/oauth2/authorization/discord", { method: "GET", redirect: "follow" }) 

    In package.json, I have "proxy": "localhost:9191", which should route the fetch to my API gateway.

    When I click the button, three requests are made and subsequently blocked.

    The first request:

     GET http://localhost:3000/oauth2/authorization/discord 

    This request returns a 302 Found status, and the location is the discord url where the user is supposed to authenticate. This seems right to me.

    The second request:

     GET https://discord.com/api/oauth2/authorize?response_type=code &SENSITIVE_INFO&redirect_uri=http://localhost:6091/login/oauth2/code/discord 

    This is a GET request issued for the url contained in the location response header from the previous request, and it also returns a 302 found status, with the location url being the same as the url that is getting requested. I don't understand why another redirect is happening, especially since it's directing to the url it supposedly redirected to in the last request. The response to this request has the headers necessary to allow CORS.

     access-control-allow-origin: http://localhost:3000 access-control-allow-credentials: true access-control-allow-methods: POST, GET, PUT, PATCH, DELETE access-control-allow-headers: Content-Type, Authorization, X-Track, X-Super-Properties, X-Context-Properties, X-Failed- Requests, X-Fingerprint, X-RPC-Proxy, X-Debug-Options, x-client-trace-id, If-None-Match, X-RateLimit-Precision 

    The third request is very similar to the second request:

     GET https://discord.com/oauth2/authorize?response_type=code &SENSITIVE_INFOredirect_uri=http://localhost:6091/login/oauth2/code/discord 

    The difference between this request and the previous request is that this one returns a 200 OK status, and that it doesn't contain any access control headers.

    It seems to me like the flow should be

    1. Request the endpoint in my microservice that handles login (Click "Log in with Discord" -> fetch(localhost:9191/oauth2/authorization/discord))
    2. Endpoint performs a redirect to the url that handles the authentication through the authorization server (GET localhost:9191/oauth2/authorization/discord -> 302 redirects to discord.com)
    3. GET request to discord.com navigates your browser to the url that discord serves up and you can log in

    There seems to be a step inbetween 2 and 3 where discord.com redirects to itself, and in the process the access-control response headers are getting stripped out.

    Why does that step exist? Why do the access-control request headers exist in the 302 found response but not in the 200 OK response?

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

    Frontend development for people that don't like frontend?

    Posted: 13 Feb 2021 06:48 AM PST

    For people that don't like frontend like me, is there a less painful way to do it? Can you recommend things like bootstrap? I'm a beginner and don't know a lot of stuff but for sure I know that using plain HTML and CSS is not my thing...

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

    If statement failed? 3rd attempt ot post

    Posted: 13 Feb 2021 10:34 AM PST

    "IF" statement problems: please enter 4
    for this example:

    g = input("enter g") if int(g) ==3: print("enter value again") g =input("enter again for g") elif int(g==4): print("g = ", g) else: print("a gosh"); print("end of eof"); 

    Observe how entering 4
    actually causes the "ELSE" statement to funciton! who knows who made python so flimsily? That's basically NOT what I expected/wrote for the code

    Thank you!

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

    No comments:

    Post a Comment