• Breaking News

    Tuesday, April 27, 2021

    What's the hardest thing, about being a self-employed developer? Ask Programming

    What's the hardest thing, about being a self-employed developer? Ask Programming


    What's the hardest thing, about being a self-employed developer?

    Posted: 27 Apr 2021 06:27 AM PDT

    Is it keeping skills up to date? Is it: not having a big team around you, to handle the variety of non-tech tasks? Finding good customers? Something else?

    I've been a self-employed developer for a while now with a bit of contracting and a bit of trying to make money off of my own projects, and I'm trying to figure out what challenges are universal and what's just a weak spot for me.

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

    jq - Merging two JSON Objects

    Posted: 27 Apr 2021 11:10 PM PDT

    Hi all,

    I have the following two json files and I am trying to merge the DEV object.

    jsonFile1:

    { "ENV": { "DEV": {}, "ST": { "middleware": [], "system": [], "application": [], "utility": [] }, "ESIT": { "middleware": [], "system": [], "application": [], "utility": [] } } } 

    jsonFile2:

    { "ENV": { "DEV": { "middleware": [], "system": [], "application": [ { "artefact": "abc", "domain": "df", "hostname": "sfa", }, { "artefact": "awe", "domain": "csd", "hostname": "wer", } ], "utility": [] } } } 

    Expected Resulting Json Fi:

    { "ENV": { "DEV": { "middleware": [], "system": [], "application": [ { "artefact": "abc", "domain": "df", "hostname": "sfa", }, { "artefact": "awe", "domain": "csd", "hostname": "wer", } ], "utility": [] }, "ST": { "middleware": [], "system": [], "application": [], "utility": [] }, "ESIT": { "middleware": [], "system": [], "application": [], "utility": [] } } } 

    I have already tried:

    jq -s '.ENV["DEV"][] * .ENV["DEV"][]' jsonFile1.json jsonFile2.json 

    However that raises the error 'Cannot index array with string "ENV"'. I can also delete the '"DEV": {}' object out of jsonFile1 if that makes the merging process any easier.

    Any help would be appreciated.

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

    What is the -C flag in ./program.py -C files/sampleData.txt ?

    Posted: 27 Apr 2021 09:55 PM PDT

    I am running a command: ./program.py -C files/sampleData.txt

    and googling -C flag in cmdline, -C ubuntu, -C python, -C flags has not turned up anything. What is that -C for?

    submitted by /u/kbrdsmsh-asdf
    [link] [comments]

    What are some universities in the US that aren't as well known but have great CS programs?

    Posted: 27 Apr 2021 05:48 PM PDT

    I know someone who wants to study CS but is intimidated by how competitive admissions are at the "name-brand" schools (Stanford, MIT, etc).

    What are some schools that are less well known but have great CS programs?

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

    Best language to make user-friendly programs?

    Posted: 27 Apr 2021 04:28 PM PDT

    What I mean is what's the best language to code programs that will be distributed to others?

    For example, right now I've been using Python to create a bunch of scripts for some people to use, but the people I give the programs to don't really know how to properly setup what libraries need to be installed and Python itself, etc.

    I've been circumventing this issue by using Pyinstaller and packing the script into a single .exe file, but it becomes more complicated when I start importing other self-made scripts.

    So what's a good language I can use to use that will be easily distributed to non-tech-savvy people?

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

    Want honest feedback about my newly created project?

    Posted: 27 Apr 2021 04:09 PM PDT

    Hello, after 4-5 months of working on an idea, I finally did it and I am sharing this project with you to give me your honest feedback. I am not here to promote myself. I just want you to look at it. See if it is worth it.

    This software takes a backup of your computer data and monitors the files so that if something happened to the files, it will automatically take the backup of all the data from a selected directory in your PC to External Drive or Google Drive.

    https://github.com/ibilalkayy/Automatic-Backup-and-Monitoring-Software

    Please take a look at it and give me a suggestion. Should I take it to next level? Thank you!

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

    When you search for something on Google do web search results links include all image results shown on Google Images's results or if I want to know the whole number of results do I need do count both?

    Posted: 27 Apr 2021 07:29 PM PDT

    Ways to shorten this serial passthrough program (Altair 8800)

    Posted: 27 Apr 2021 06:11 PM PDT

    I whipped up a program that would allow me to use my altair 8800 (adwater simulator) as a terminal for my SYM-1. The goal is to make it as painless as possible to enter it into the front panel without too much trouble. Right now, its 44 bytes to enter in. Are there optimizations/tricks I could use to make it smaller?

    Code:

    https://pastebin.com/ZSPXpeJw

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

    Books for learning obj-c for iOS development

    Posted: 27 Apr 2021 05:49 PM PDT

    I'm looking for recommendations for text-books that teach objective-c for iOS app development. Anyone that has prior knowledge of one that is good and well rounded please post here. I have one but it's a bit older and very very dense. Plus doesn't really focus on app dev mostly just variable and math variations. But if you read on or know of a popular book please let me know!! Thanks guys!

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

    Anyone know the name of this programmer font?

    Posted: 27 Apr 2021 11:44 AM PDT

    I tried comparing with Operator Pro, Operator Mono, Operator SSm, Fira but I can't find what font is.

    Font screenshot: https://i.imgur.com/OJlG0Ap.png

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

    Can anyone please explain me this javascript code step by step. it causes a security issue.

    Posted: 27 Apr 2021 11:31 AM PDT

    <a href= "javascript:fetch('/analytics',{method:'post',body:'/post?postId=5&'},x=x=>{throw/**/onerror=alert,1337},toString=x,window+'',{x:''}).finally(_ => window.location = '/')"

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

    [Question] Qt creator Error-Please specify additional resource directories or '--data-directories' command line option

    Posted: 27 Apr 2021 04:07 PM PDT

    I am trying to debug a code and I am getting this error, can anyone please help? I am totally a noob at programming.

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

    Do you care about values, culture and mission when joining a company?

    Posted: 27 Apr 2021 11:30 AM PDT

    Unless the company isnt involved in some huge government scandal or is harming animals, i never cared for a company's mission or values.

    Hell, i value much more the salary, work-life balance and if the company has a good development process than if is helping making the world a better place but at the same time, i see dozens of people at every place that i work that truly believes and wants to help the company mission and makes me wonder if im missing something

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

    How to prevent automatic restart in W10 to avoid losing processed data?

    Posted: 27 Apr 2021 10:17 AM PDT

    I sometimes work with large amounts of data that take hours to process. When Windows autorestarts, it can make me lose a lot of data (I can save things in disk from time to time but it makes my scripts more complex). I switched to Linux years ago because of this, but I want to use Windows again. However, I read that there is no way to fix this in W10. Is this really true? What do data scientists do in Windows?

    submitted by /u/flying-benedictus
    [link] [comments]

    I have a string (WW & XX & (YY | ZZ)), where WW, XX, YY, ZZ correspond to 3 possible states, how should I store this string and the outcome string?

    Posted: 27 Apr 2021 01:41 PM PDT

    I have a bunch of strings that look something like this (WW & XX & (YY | ZZ)) and it follows general logic. I'm unsure how to store this data for max usability, its currently a dumb string.

    This string before evaluated needs to be matched up to another table that will turn WW, XX, YY, ZZ into one of 3 possible states, Always, Sometimes, Never.

    Then (Sometimes & Always &( Never | Always) will finally be evaluated as Sometimes.

    I'm unsure what data formats are approperiate for dealing with these. I currently am using Python Pandas Dataframes and strings.

    Any suggestions for clean and easy to evaluate code?

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

    Higher end sites than HN?

    Posted: 27 Apr 2021 07:36 PM PDT

    After seeing "Hackers" buy Apple products because they would rather Trust closed source products from a company that is constantly having security issues, I realized HN is no longer it's original base of Hackers.

    Anyone have a higher quality fourm? It doesn't need to be a big community, just well experienced.

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

    How do you optimize big relational DB queries?

    Posted: 27 Apr 2021 01:09 PM PDT

    I'm in a weird position where I've built out this bespoke reporting feature for my company that just displays some data in a CSV-exportable grid view (Node + Vue + Postgres). My queries are sort of long but not that insane, they've just got some subqueries and joins and stuff. We have a few million rows of data.

    I've optimized the hell out of this as much as I can, even adding indices to the DB columns that are the most problematic. My question isn't necessarily how to optimize my own queries - but how do places like big banks do it? Insurance companies? Governments? Places with just insane amounts of data. How do their make their queries not take 15s+?

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

    University final year project ideas

    Posted: 27 Apr 2021 09:15 AM PDT

    Hey guys! I've come asking for some inspiration as quite frankly I'm a bit lost, even though I'm thinking about this way too early, I don't find myself to be an incredibly creative person, and that is what worries me the most. I start my final year's project in September but I want to be ready and prepared so I can make something that is really worthwhile and will help me learn, but I have no specific interest in anything at the moment, so I've come looking to see if there's anything interesting that would be worth spending a year and a half learning and working on.

    I've spent a lot of time looking around online and I've only come across ideas like making 2D platformers or making password managers but it all feels too bland and simple and not something that'll take a years worth of work and learning.

    I was thinking of some kind of blockchain related project but I have no idea what I would even do with something like that or where to get started. TYIA!

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

    GitHub small team workflow suggestions?

    Posted: 27 Apr 2021 12:46 PM PDT

    Owing to recent events I am currently looking into including GitHub into our company workflow to try and bring some kind of order to the mess that is our software library. I've used it personally for a while but never in collaboration with others (what it's meant for) and was wondering if anyone has any recommendations of some good no fuss git strategies.

    We are only a small team < 5, and have reservations about storing our companies source code on an external server when we have our own backed up server location. To that end I looked Into setting up a repo folder on our file server and using that as the project source, which worked pretty well. It didn't support all the features of git, ( pull request, rebase etc) but it seemed to work enough for what we would probably need out of it. Enterprise solution is probably too much for what we need and initially we wouldn't have a server to put our own git Install on, if that turned out to be the way to do it.

    I'm sure plenty of you guys have been through this already and have some bombproof strategies. Appreciate the feedback 👍

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

    Making a Lawn Care website

    Posted: 27 Apr 2021 12:17 PM PDT

    A couple of years ago I made a website for a local lawn care business using Laravel and Bulma. This website also had a login feature for the owner to upload photos onto the website to showcase. however, I want to recreate the website because I have learned a lot since then but I wanted to make sure the stack I picked wouldn't be overkill for this as it isn't a large project. So basically I wanted to use Node as the backend with ejs as the templating engine with Tailwind as a frontend framework and Mongo as the database. Is this overkill or is there something more lightweight I could use to complete this?

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

    Splitting a .tmx file

    Posted: 27 Apr 2021 06:09 AM PDT

    Hello everyone, I'm using Mac OS and I need to split a .tmx file that is around 5GB. I got a glimpse of it inside the Visual Studio Code but couldn't edit it because the app froze and stopped responding. Allocating more memory didn't work either, and this problem applies to other text editors too. I assume it's because of the file size.
    Does anyone know another way to split it?

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

    Can you identify this theme?

    Posted: 27 Apr 2021 06:09 AM PDT

    Can someone tell which theme this is? I know the font is FiraCode, but I'd like to know the color theme. Thanks! :)

    Imgur

    https://www.virustotal.com/gui/home/url

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

    [HELP | PYTHON] Algorithm optimization and continuous plotting with matplotlib

    Posted: 27 Apr 2021 08:12 AM PDT

    Hi,

    I want to calculate highly composite numbers and as soon as it finds another one, add it to the graph so I can run the algorithm without an upper limit just to show the graph.

    Also, how can I make my code run faster? Are there any optimizations to the algorithm I don't know?

    Code:

    import time import matplotlib.pyplot as plt maxDivisors = 0 startRunTime = time.time() dividendList = [] divisorList = [] calcTimeList = [] runTimeList = [] for dividend in range(1, 1000): tmpList = [] divisors = 0 startCalcTime = time.time() for divisor in range(1, dividend + 1): remainder = dividend % divisor if remainder == 0: tmpList.append(divisor) divisors += 1 calcTime = time.time() - startCalcTime runTime = (time.time() - startRunTime) if divisors > maxDivisors: maxDivisors = divisors dividendList.append(dividend) divisorList.append(tmpList) calcTimeList.append(calcTime) runTimeList.append(runTime) print(str(len(dividendList)) + ": " + str(dividend) + " has " + str(divisors) + " divisors. (" + str(round(calcTime, 6)) + "s) [" + str(round((runTime) / 60, 3)) + "min]") runTime = (time.time() - startRunTime) print("\nFinished in " + str(round(runTime / 60, 6)) + "min") plt.subplot(3, 1, 1) plt.plot(dividendList, "-x") plt.yscale('log') plt.title("Highly Composite Numbers") plt.subplot(3, 1, 2) plt.plot(calcTimeList, "-x") plt.ylabel("calctime [s]") plt.subplot(3, 1, 3) plt.plot(runTimeList, "-x") plt.ylabel("runtime [s]") plt.show() 
    submitted by /u/3Domse3
    [link] [comments]

    How many weeks(or months)on average does it take to do a java project which I can add in my resume for an entry-level Java developer job?

    Posted: 27 Apr 2021 11:45 AM PDT

    How to handle this exception flow that gets an item from a DB?

    Posted: 27 Apr 2021 11:26 AM PDT

    I have a method that gets an item from a DB, I can make throw an exception but I think it may be better to return null. If using the exception flow, how can I handle it better?

    private async Task<Item> GetItemAsync(string id) { var query = await getFromDb(); item = query.Single();//Throws invalidOperationException return item; } private async Task CreateItem(string id) { try{ await GetItemAsync(id); throw new ExistingItemException(); } catch{ await postToDb(id);//this is the purpose of the method } } 
    submitted by /u/af32m93892
    [link] [comments]

    No comments:

    Post a Comment