• Breaking News

    Wednesday, March 3, 2021

    Should I give away my software to my company for free? Ask Programming

    Should I give away my software to my company for free? Ask Programming


    Should I give away my software to my company for free?

    Posted: 03 Mar 2021 05:11 AM PST

    I've been working at my current manufacturing company now for 4 years (non-tech). For size, the company employs around 400 people and makes about $50m/y ($5m/y net). They're an old company who haven't invested that much in technology. I noticed over the past few years how much the company was needing both a project management tool and an asset management tool. Information is spread by word of mouth and a lot of work is still paper-based which is then manually entered to a computer. I tried to get them to buy some of these softwares a while back, but they were reluctant to pay ~$15 per license per month, even though they admitted it would greatly improve their operation.

    Over the last 18 months, I brushed up on some of my coding knowledge and made a software that combined a project management software with an asset management software, tailored to the company. I pitched this last week and the executives were blown away by it.

    They asked at the end of the meeting quite cheerfully how quickly could I get this implemented. I told them not long, however we'd need to negotiate a price, either as an ongoing fee with support, or a fixed price with no support, or an agreed price per hour for any future updates and maintenance. They were horrified. One of the executives said it was rude of me to ask for money for a software that was tailored towards them. None of the work was done while I was on shift. All of the work has been done at home during my own time. He said he didn't care and it was my job to come up with new ideas that benefited the company. I said that if it's as useful to the company that he said 10 minutes ago that it was, then he shouldn't mind paying for it. I left it there and I've had little communication with them since. Am I being unreasonable here?

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

    Software patents? Cost? How to search?

    Posted: 03 Mar 2021 09:19 PM PST

    So I have an idea which I think no one has done. Maybe they have? It is based on existing proven technologies, but used in a different way for a different purpose, so there's a fair chance someone has thought of it.

    How would I go about making sure it is unique?

    If it's unique, I think it has a fair chance of being a compelling upgrade to basically any online system/database which uses passwords. No, it's not a salt, or a pepper, or 2fa.

    Then... what are the ballpark costs of such a thing - and would I have to demonstrate it with functional code, or would a detailed enough description/block diagram of the process work?

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

    Any beginner friendly examples for Bluetooth LE communication on Windows (C++)?

    Posted: 03 Mar 2021 08:04 PM PST

    I have a bluetooth LE device that I have paired with my Windows 10 machine, and I want to make a simple console application to read [midi] data from it. I've been trying to figure out the Windows Bluetooth API all week and I haven't made any progress so far. I've found several "example" code online but none of them seem to work, or more likely I am not exactly sure I am using them correctly.

    The API is so massive without any real from-scratch examples, so I'm not even sure what the starting point would be. I'm not entirely familiar with the terminology as well (advertise vs scanning vs watcher, etc), so that doesn't help.

    Anyway, are there any [Windows-API] beginner friendly examples any of you may know of? I've been coding on C++ for 5+ years (for work) but it's entirely been linux back-end server stuff, so this is all new to me.

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

    what does this python means in line 1 and line 3

    Posted: 03 Mar 2021 09:19 PM PST

    alphabet = set(string.ascii_uppercase)

    used_letters = set()

    if user_letter in alphabet - used_letters:

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

    what does this while loop and and return statement does in this pyhton code pls tell

    Posted: 03 Mar 2021 09:10 PM PST

    what does this while loop and and return statement does in this pyhton code pls tell

    word = random.choice(words) # randomly chooses something from the list
    while '-' in word or ' ' in word:
    word = random.choice(words)
    return word.upper()

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

    i want to redirect my code to while lope in python

    Posted: 03 Mar 2021 09:03 PM PST

    if in my code below (line 9) gets executed i want it to go back to line 6 while loop code instead of continuing to below code..pls tell me how to do this

    def computer_guess(x):
    low = 1
    high = x
    feedback = ""
    #guess = random.randint(low, high)
    while feedback != "C": #line 6
    feedback = (input(f"Is {guess} too high(H), too low(L), OR CORRECT(C)?"))
    if feedback == "H":
    guess - 1 #line 9
    elif feedback == "L":
    guess + 1
    else:
    print(f"Yay! The computer guessed your number, {guess}, correctly!")
    computer_guess(10)
    input()

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

    What job title does this role fit?

    Posted: 03 Mar 2021 07:54 PM PST

    Title gore, sorry

    Right now my company lists me as a technical editor. Currently I use basic programming knowledge/concepts (if statements, switches, repeaters, etc) to setup content on websites using an in house editor.

    Only issue is that I'm not programming? At least not programming in a traditional sense.

    I apply and organize nodes which allow me to apply content to a web page. My current title is "technical editor" but I'm not sure that's the best title at the moment as everything online seems to point more to the writing aspect and not the logic/setup side of things

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

    scraping website that requires SSL cert

    Posted: 03 Mar 2021 07:39 PM PST

    Hi everyone!

    Im working on a project and I've run into a problem that I cant seem to find the solution for. I'm trying to scrape a website, this website requires an SSL certificate to access. I'm able to connect to the server using the tls module built into node.js, but after I make this connection I having trouble doing the logging in part. I've tried making an https request to the login endpoint in the tls connect callback but nothing seems to be working. I've tried googling around but I cant seem to figure it out :/

    Thanks in advance :D

    Heres the code I have so far:

    const tls = require('tls');
    const fs = require('fs');
    const options = {
    // Necessary only if the server requires client certificate authentication.
    pfx: fs.readFileSync('./Comodo 2018-2021 dispatch2.pfx'),
    passphrase: 'AppleC*2',

    };
    const socket = tls.connect(443, 'adams-2010.aeso.ca', options, () => {

    console.log('client connected',
    socket.authorized ? 'authorized' : 'unauthorized');
    process.stdin.pipe(socket);
    process.stdin.resume();
    });
    socket.setEncoding('utf8');

    ////////////////////////////////////

    // THIS IS WHERE I TRIED TO MAKE THE HTTPS REQUEST

    ////////////////////////////////////
    socket.on('data', (data) => {
    console.log(data);
    });
    socket.on('end', () => {
    console.log('server ends connection');
    });
    socket.on('error', (error) => {
    console.log(error)
    })

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

    I have an idea (I also dont know what flair to use)

    Posted: 03 Mar 2021 07:36 PM PST

    I want to make an application.

    what I want this application to do is to allow you to make Folders directly from a files right mouse click menu in file explorer and then I want the application to move that file into the new folder(right click file > select create new folder > application creates a new folder with the same name as the selected file > application moves selected file into that folder).

    my problem is that I dont know how to code and have absolutely no clue where to start, so I am hoping I could be pointed in the right direction.

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

    What are the options to create a UI for users to check files they want and the submission would call the files and pass them to the user for download or via email?

    Posted: 03 Mar 2021 07:31 PM PST

    We have thousands of reports and our business users will request them on an ad-hoc basis of varying size and shape daily. One user may one reports 1, 3, 4, 5, 9, and 12 while the other wants 1-30 but for a different date range or client. I don't know the best way to have an intermediary UI that can help facilitate this transaction. Currently the workaround is for the user to manually navigate the folder hierarchy and self-service but I'm hopeful there's a simple solution to bypass. Maybe an Access form, a batch file, I don't know much about web pages but I'm sure that's an option. Essentially the user will pass inputs for the files they want and I want a tool that automatically provides them to the user. Thanks!

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

    Website and database tutorials? General project help?

    Posted: 03 Mar 2021 06:14 PM PST

    I want to create a website to display data for a project that I'm working on, but I've never done anything specifically like this.

    I have some html experience (basic web design), some server experience (aws EC2, running vpn, familiar with debian) and I'm self taught with python and java at a mediocre levels. I assume I'm going to need to learn some php and SQL to accomplish what I'm planning.

    Does anyone have recommendations for tutorials on this kind of thing?

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

    Using Java's ProcessBuilder to spawn multiple of the same process

    Posted: 03 Mar 2021 05:51 PM PST

    The code below is what I am using to spawn multiple processes.

    import java.io.IOException; public class Multiprocessing { public void runNotepad() { try { for(int i = 0; i < 3; i++) { ProcessBuilder pb = new ProcessBuilder("notepadScript.bat"); Process p = pb.start(); } }catch(Exception e) { e.printStackTrace(); } } public static void main(String[] args) { Multiprocessing mp = new Multiprocessing(); mp.runNotepad(); } } 

    notepadScript.bat simply contains the line "notepad.exe"

    My confusion is why my code only launches one process when using a shell script. If I replace "notepadScript.exe" with "notepad.exe" then three instances of notepad are launched, as expected from the loop, but only one instance is launched when using the shell script. Does anyone know why this happens?

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

    Google Oauth2 - Necessary to store access token in its entirety?

    Posted: 03 Mar 2021 05:02 PM PST

    I have an SPA I'm working on which doesn't need access to any additional google APIs, I'm just using them as an identity provider.

    My intention is to pass the identity token back to the end user on login, retain the refresh token in its entirety on redis, and only store the access token's hash/exp after validating it. This way I can still check the at_hash claim on the identity token for CSRF prevention purposes, as well as whether the access token has expired. This would look something like:

    1 - User requests protected route with id token in header

    2 - Server pulls access token hash and exp from redis

    3 - Server performs normal validation (checks iss, aud, exp claims of ID token)

    4a - Server checks that idToken.at_hash === access token hash

    4b - If exp claim in 3 failed, pull refresh token from redis and generate new tokens (storing them as above)

    I'm fairly new to auth and still reading through the various specs. On the surface I can't find anything wrong with this approach, but should I be storing the access token for any other reason? I feel this needs a gut check...

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

    I can't send data from my Vue application to my database, and I don't know why.

    Posted: 03 Mar 2021 04:12 PM PST

    I recently bought a beginner course on Vue3, and how to handle data. I sadly cannot ask the creator of this course for help, because what I am doing is deviating from his tutorial. So I am going to try here.

    In the tutorial he shows how to upload both text and images from a Vue application to Firestore.

    This can be done like so:

    <template> <AdminNavbar/> <form @submit.prevent="handleSubmit"> <h4>Create new content</h4> <input type="text" required placeholder="Insert title" v- model="title"> <label>Upload image</label> <input type="file" @change="handleChange"> <div class="error">{{ fileError }}</div> <button v-if="!isPending">Create</button> <button v-else disabled>Saving...</button> </form> </template> <script> import slugify from 'slugify' import { ref } from 'vue' import useStorage from '@/composables/useStorage' import useCollection from '@/composables/useCollection' import { timestamp } from '@/firebase/config' import AdminNavbar from '@/components/AdminNavbar.vue' import { useRouter } from 'vue-router' export default { components: { AdminNavbar }, setup() { const slug = ref(null) const { filePath, url, uploadImage } = useStorage() const { error, addDoc } = useCollection('gershoej') const title = ref('') const file = ref(null) const fileError = ref(null) const isPending = ref(false) const router = useRouter(); const handleSubmit = async () => { if (title.value) { slug.value = slugify(title.value, { replacement: '-', remove: /[*+~.()'"!:@]/g, lower: true }) } if (file.value) { isPending.value = true await uploadImage(file.value) await addDoc({ slug: slug.value, title: title.value, imageUrl: url.value, filePath: filePath.value, songs: [], createdAt: timestamp() }) isPending.value = false if(!error.value) { router.push({ name: "Home" }) } } } // allowed file types const types = ['image/png', 'image/jpeg'] const handleChange = (e) => { const selected = e.target.files[0] console.log(selected) if (selected && types.includes(selected.type)) { file.value = selected fileError.value = null } else { file.value = null fileError.value = 'Please select an image of the type JPG or PNG' } } return { slug, title, handleSubmit, handleChange, fileError, file, isPending } } } </script> 

    What I want to do is the exact same thing, BUT I don't want to include the image upload. The strange thing is that when I delete the part of the code that handles image upload, I cannot add ANY data to the database. I don't know why. I am not getting any errors in the console. I just press the "create" button and nothing happens. No data is sent to the database.

    This is what my version of the code looks like. Any idea why it is not working?

    <template> <AdminNavbar/> <form @submit.prevent="handleSubmit"> <h4>Create new content</h4> <input type="text" required placeholder="Insert title" v- model="title"> <button v-if="!isPending">Create</button> <button v-else disabled>Saving...</button> </form> </template> <script> import { ref } from 'vue' import useCollection from '@/composables/useCollection' import { timestamp } from '@/firebase/config' import AdminNavbar from '@/components/AdminNavbar.vue' import { useRouter } from 'vue-router' export default { components: { AdminNavbar }, setup() { const { error, addDoc } = useCollection('gershoej') const title = ref('') const file = ref(null) const isPending = ref(false) const router = useRouter(); const handleSubmit = async () => { if (file.value) { isPending.value = true await addDoc({ title: title.value, createdAt: timestamp() }) isPending.value = false if(!error.value) { router.push({ name: "Home" }) } } } return { title, handleSubmit, file, isPending } } } </script> 
    submitted by /u/HjerterKnaegt
    [link] [comments]

    Not a developer; or imposter syndrome?

    Posted: 03 Mar 2021 03:12 PM PST

    Hi Everyone,

    I hope this is on-topic for the subreddit - I'm looking for some honest opinion from programmers.

    I've been a solo developer for a number of years, that is to say that I have been the sole coder. Others have helped with other SDLC components.

    I've done OK. I've worked with UK banks for the past 10 years building everything from operational applications to help with mundane processing (MS Access over SQL back end) to full workflow and QC applications using VB.Net & SQL Server. A few thousand users per application, maybe 20 applications over the years.

    I'm a desktop guy. No experience with web.

    I've used VB.Net and C# (with Visual Studio as the IDE) as the "proper" languages and I've used VBA (MS Access/SQL backend) for the 'quick win' operational apps.

    I want to be a developer, working in a development team, doing this stuff properly. I'm completing the final module of my BSc(Hons) Computing & IT and I'm projected for a 2:1.

    I'm getting silence from recruiters, they simply stop talking to me after they see a CV, even for junior positions.

    I'm looking for an opinon on these three points:

    1) Have I crippled myself by focusing on desktop applications, when everyone seems to want web?

    2) Am I unattractive to potential employers because of the lack of experience working in a development team?

    3) Is it the degree ... do I need to actually get the thing rather than mention the projection?

    Or, is it the fourth option, that I have imposter syndrome and I've just not found the right role?

    Serious replies please, and thank you for your thoughts.

    submitted by /u/6morningrolls
    [link] [comments]

    Tech Stack Advice for Building a Web App with Content Filtered from another JavaScript Website.

    Posted: 03 Mar 2021 03:09 PM PST

    I am looking to build a website/web app that scrapes job postings from another site that fit a certain criteria. I then want to display these selected job postings on my own website, and ideally allow a user to mark a posting as read/applied to/rejected etc.

    Can anyone give me advice as to their recommend tech stack for this project? I am thinking I will need a data-base backed solution. So would I need to use something like AWS to create a website, and use a lambda function to update the website content every 24 hrs with new postings? And also use a database to store job postings to see which ones are new and store user notes? Any idea on what the ongoing cost of this would be?

    Or - am I overcomplicating things and could instead use a free option such as GitHub pages or Heroku?

    Using python would be my preference. Thanks for your help and patience in advance.

    submitted by /u/confused-stowaway
    [link] [comments]

    Habit Tracker App/Web-App

    Posted: 03 Mar 2021 02:54 PM PST

    My friends and I are planning to spend our Easter holidays building a basic habit tracker app that can track multiple habits and give you motivational quotes. We want learn more about how cloud systems work and app development but we have no idea where to start. Are there any resources out there ?

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

    What can I do with my programming knowledge?

    Posted: 03 Mar 2021 02:45 PM PST

    I just finished an online c++ course that was around 10 hours . I've learning this stuff for around 4 to 5 months now, and have worked on quite a bit of projects to give me a firm understanding of what I am doing. My problem is, I'm not sure what else there is to do, I like creating those projects but in hindsight they're pretty useless, and I'm 14 so I am obviously not gonna get any jobs soon, what should I do with code other than just writing it and having some output come up on a black screen? Maybe since I am so young that I could work on some things that might give me practice to get me a good job one day, I guess I just really don't know what else I could make with it that will make me feel proud or give me something to work for , or to even get a job. Just don't know where to turn next . Any advice?

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

    Trying to create a web-scraping framework/tool. I was looking for general feedback, tips, and advice.

    Posted: 03 Mar 2021 01:42 PM PST

    The goal of the project is to simplify scraping apps into JSON-like objects, where keys would be your data field names (generally), and values would be xpaths for the appropriate elements. There's a little more to it than that, but i'm going to post a repo with 4 small samples. I was wondering if I could get some feedback on it.

    A little more about the structure:

    The URL field is self explanatory, it's the website you want to scrape. The 'flightpath' field is the structure I mentioned previosly that maps fields to elements. The 'options' field mostly involves using Selenium. You can pass in a browser as an option if data is loaded in via JS.

    The following examples don't have anythng to do with security, i'm just grabbing some fields and printing the result.

    https://github.com/ghettobird-scrapers

    For those who have experience with scraping, I was wondering if this looks cleaner and/or easier than the ways you have scraped or if the syntax seemed confusing.

    Thanks.

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

    Need some basic help!

    Posted: 03 Mar 2021 01:03 PM PST

    Hello everyone. First of all i understand a little bit programming but i am not a professional programmer. I designed an social media network and i wanted to know is it possible to open other websites within my website something like a mini browser on my website. I payed some programmers who told me they can fix it with an iframe but most of the websites won't open and they say it's for security reasons. I want to be able to add a link to my website and when you click it the page will open not with a pop up windows but inside my platform. I appreciate any help.

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

    Question about C

    Posted: 03 Mar 2021 11:14 AM PST

    { int height = 0; while (height <= 0 || height > 8) { height = get_int("Please enter the height:\n"); } for (int i = 1; i <= height; i++) { int spaces = height - i; for(spaces = height - i; spaces > 0; spaces -= 1) { printf(" "); } for(int hash = height - spaces; hash > 0; hash -= 1) { printf("#"); } printf("\n"); } } 

    When i run this code i get this output:

     ##### ##### ##### ##### ##### 

    But when i change the (hash = height - spaces) in line 18 to (hash = i) the output is like this(and this is what i wanted to do):

     # ## ### #### ##### 

    My question is, isn't height - spaces = i ?

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

    How is Hyrum's Law squared with the idea of Design by Interface/Contract?

    Posted: 03 Mar 2021 10:46 AM PST

    Mainly asking from an enterprise perspective. APIs arising from the underlying technology implementation details vs. implementing based on a pre-defined set of APIs.

    Every instance I've seen where the APIs were sketched out first has led to a stifled and painful implementation. Of course, for basic apps/CRUD this is pretty straight forward but for more complicated enterprise-grade solutions, I've not seen this work very well.

    https://www.hyrumslaw.com/

    https://en.wikipedia.org/wiki/Design_by_contract

    https://en.wikipedia.org/wiki/Interface-based_programming

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

    What tools, libraries and or language can I go about creating custom output XML code based on simple user input?

    Posted: 03 Mar 2021 10:42 AM PST

    I asked this question over at Stackoverflow and apparently no one liked it.

    I need some advice. I want to do this locally. For example, I know how to make a basic input html code and do HTTP requests. What I want to do is have something like a basic input code like this https://i.stack.imgur.com/6fyL1.png

    and then on Submit output XML code in an output.xml file and in that file it will look like this

    <book> <title> <book-title>Harry Potter</book-title> </title> <contrib-group> <contrib contrib-type="author"> <name> <first-name>J. K.</first-name> <last-name>Rowling</last-name> </name> </contrib> </contrib-group> </book> 

    How can I do this?

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

    Question about the best way to send info back to server from browser on various "unload" type events.

    Posted: 03 Mar 2021 09:58 AM PST

    Hello all,

    Microsoft dev here. I work primarily in C# and SQL, not an expert front end dev at all, but decent enough. Due to some Covid-related extended absences, I'm thrust into working on many projects that I'm not overly familiar with.

    Anyway, I'm working on application that has a library of videos, hosted on Azure Media Services. We have some back end logic that takes all of the basic video player events from that controller (Playback Started/paused/seeked, etc...), and calculates how much of the video an employee watched, and tracks it. Where we are having issues, seemingly, is when someone stops their video watch before it ends by using any number of browser "unload" events (Back button, close tab, close browser, click hyperlink, navigate away via new URL, lost internet connection, etc...).

    Initially to capture these, what the primary dev on the project was trying to do was to capture the unload event with a listener on the actual 'unload' event, and then call the same JS method that the player called, with a manual "page unload" type...this method builds a URL with params and sends to the controller via an AJAX call. The problem is, depending on browser and server being used, sometimes the AJAX call is just skipped, because the page has already moved on, and no response would be available. I tried moving the initial listener call to the 'beforeunload' event, but still that issue remains.

    Some research led me to trying the Navigator.sendBeacon() call, which doesn't require a response. This actually seemed to be working very well for a while, but eventually after rigorous testing, I did start seeing some failures. Especially on Edge (it doesn't work at all on IE, so in that case, I just kept trying to force the AJAX call). More research led me to this page, which now says SendBeacon isn 't consistent either. https://volument.com/blog/sendbeacon-is-broken

    I can't be the only person in the world that needs to send a URL with some parameter data back to a controller when someone leaves a page right? Are there any front-end devs out there that know of a way to implement this to where it will work on all main browsers? (IE, Edge, Chrome, and then Safari/Chrome on iPhone).

    No one so far is accepting the idea that this may not be something we can count on 100%.

    Thanks in advance.

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

    No comments:

    Post a Comment