• Breaking News

    Monday, July 6, 2020

    What does set these two people apart? Ask Programming

    What does set these two people apart? Ask Programming


    What does set these two people apart?

    Posted: 06 Jul 2020 07:12 AM PDT

    Note : stackoverflow is just a point of reference to allow myself to be a bit more understandable, the real point here is programming skill level.

    I have been thinking and from my experience there is something that separates top Stackoverflow contributers from the rest, me included.

    They have a thorough understanding of the language/library/package/docs or the reasoning behind whatever of the above mentioned, I'm sure I'm not the only one who noticed this. One might argue that it is the product of years and years of experience on which I disagree. You see, there are people with long years of experience and are stagnating at a certain level (a good level but not great nontheless) AND there are those who at a young age and are really good at it. They have to be doing something or approaching programming in a different manner that I fail to see.

    Please, do not spare us your thoughts on this.

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

    Is it possible to have a [camera] scan a (QR?) [barcode] and communicate to a software/server to execute specific instructions based on that unique [barcode]?

    Posted: 06 Jul 2020 07:11 PM PDT

    I'm beginning to learn about barcode scanning, and chose QR Codes, just as a seemingly well-understood example of "scanning", and I realize that the QR code can relate to text, a message, a website, etc.

    But could it be possible for the QR code to represent some bit of information, for example, "1j289fj29fj3alf3a83f81j93jf8913jf93lka83jkfjklzzeigjz", 256-bit whatever nonsense, which is somehow then translated into a unique identifier for a pre-designed program or code?

    To expand and ask in a more specific way: If I created a software that processed a QR code's bit information in a specific and direct manner per the program's coding, is it feasible to use QR codes as a method of transmitting that unique data to the server/software?

    If so, I'd love to hear more about the theory. If in fact it already exists, I'd like to learn about some live examples.

    All information is welcomed. Thank you.

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

    Is there a formal name for a server that does scheduled "work"?

    Posted: 06 Jul 2020 09:11 PM PDT

    I have an internal server that does regularly scheduled, work for each user (i.e. each unit of "work" is segmented by user) and then overrides data from previous work with new data. The work is the same each time, just with updated data inputs. There are also database triggers hooked to the server that trigger this work for a user outside of the regular schedule.

    E.g. a game has a user stats page that's loaded from data from a cache. The mentioned internal server regularly updates this cache by: looking up user data, aggregating it and then writing to the cache.

    Is there a formal name for this type of server that periodically does the same "work"?

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

    Is is possible to pull the operating software out of an Ancient PCB control board?

    Posted: 06 Jul 2020 05:08 PM PDT

    I have some ancient equipment I use in my business. The PCB boards look like they came off of Apollo 13, They are probably older than I am.

    My dream is to replace this ancient board with a Raspberry Pi 3 and connecting it to the internet for me to monitor remotely and start solving problems I want to fix.

    Is it possible to get the old operating software so I can try to understand what it was doing and where I can improve it with a modern device?

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

    Where do I write and run programs?

    Posted: 06 Jul 2020 06:40 PM PDT

    This sounds silly becuase it is, I can't remember what websites I can write and run programs

    Just want some suggestions I can bookmark to use later, thanks in advance

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

    code not working in php file but works if I change to html file

    Posted: 06 Jul 2020 02:48 PM PDT

    I have the code below that works perfectly already. It does everything I need it do. However, it is in a php file and when I run it I get an error.

    http://jsfiddle.net/8b21aoq4/

    GET http://localhost/favicon.ico 404 (Not Found) cool.js:236 Uncaught TypeError: Cannot read property 'style' of null at showForm at HTMLSelectElement.onchange (cool.php:57) 

    Naturally, I spent days on this error. I then switched the file type to html by renaming it. No additional changes were made to the code at all and it worked perfectly. However, I need it to be php because there are a few sql things I need it to be able to do.

    Can someone help me run it? Try running the code in a php file and let me know the outcome.

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

    How do you make a programming language?

    Posted: 06 Jul 2020 03:48 AM PDT

    Do you just write a programming language in a different one? Was JavaScript written in Java? How do you go about writing your own?

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

    Can you make a GUI using Swift in the atom ide

    Posted: 06 Jul 2020 03:36 PM PDT

    Question is in the description I have a windows pc and I wanna make an apple app not just an Android app

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

    How do I check if an array of arrays contains an empty array ?

    Posted: 06 Jul 2020 02:59 PM PDT

    I have two arrays arrofarr and temparr . I run a function which places temparr into the arrofarr and then makes a new temparr the last arry in arrofarr is always empty this is ok but I want the array of its empty to change from an empty array to an array which is [1] so how do I do this ?

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

    How do you people keep your productivity up?

    Posted: 06 Jul 2020 02:15 PM PDT

    Hi!

    I have started my career as a Java developer in a big multinational company. At the beginning and during my University studies I loved coding and could get really immersed in it. I used to stay up until 4am doing SPOJ and UVA challenges. In the first 2 years at work I could focus 8 hours straight without derailing too much.

    This has dramatically changed over time. I simply cannot bring myself to concentrate on coding, or any sort of work for more than a few minutes. I constantly keep noticing I am once again scrolling reddit, facebook, news, market or whatever that is just not work.

    I simply get bored of working on the same product/project after a few weeks. Whenever I start something new, I am excited for about 2 months, then I start slacking.

    This is not normal, and I really despise myself for this. What do you guys suggest?

    • Any technical tips on getting more focused at work? (Tried creating separate workspaces for reddit-facebook-slacking vs work vs side projects, but eventually the slacking creeps in at my browser tabs of the latter workspaces..)
    • Maybe there is a line of work that is more suiting for my 2 months attention span? All I see really on LinkedIn are jobs that are CRUD at the end of the day... I guess I can't do programming challenges for a living like I wanted to at Uni, but I just get sick of pushing fields and buttons and webservices.

    Any tips are welcome!

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

    Data Storage Rules/Laws

    Posted: 06 Jul 2020 01:43 PM PDT

    I'm working on a messaging app, and allowing editing/deleting of chatrooms/messages. Now, are there any legal constraints on how "deleted" data must be preserved? For example, the user sees the message as deleted, but I could hold on to it in my DB...
    If this is a much more complicated issue, are there any other subreddits that would be a more appropriate place to ask?

    Thank you in advance!

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

    I want to learn Swarm Robotics. Can I use any simulator for this? What is the best source to learn it fast?

    Posted: 06 Jul 2020 07:38 AM PDT

    I am doing MS in pattern Recognition, but I don't know what the heck is this robotic thing. My professor strictly said to me to complete my thesis in swarm robotics. I have decided to make autonomous drones to complete the requirements. Can anybody guide me from where I can start this, any simulator for Swarm robotics, what kind of electronics knowledge I need for that? How to use raspberry or Arduino in it. Your guidance is valuable to me so thanking you in advance.

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

    Best resource or steps to follow for mastering DSA for absolute beginners/Freshers.

    Posted: 06 Jul 2020 12:22 AM PDT

    I am a beginner in programming and want to learn DSA staring from absolute beginner level to the intermediate level.I have basic knowledge in Java language.Can anyone help me out with what resources and steps should to follow to achieve this?

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

    Is AlgoExpert worth it?

    Posted: 06 Jul 2020 07:03 AM PDT

    I am trying to learn data structures and algorithims for coding interviews. Would it be a good idea to start with progressing through the questions on AlgoExpert?

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

    If languages are static in their use does that mean there is an absolute best way to write something? How often is that absolute best way discovered?

    Posted: 06 Jul 2020 10:25 AM PDT

    For example, the Windows OS, do you think they've written their code the absolute best way? That way they only need to worry about for the code of new features, building tall not wide. Since they're one of the biggest companies in the world you'd think they have the professionalism to be a standardised authority. Or are they just selling a passable product?

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

    Retrieve and match highlighted text with a database via cursor highlighting, in any window, then show matched output

    Posted: 06 Jul 2020 09:49 AM PDT

    I'm looking to code something where I wanna be able to hightlight some text in any window (or basically anywhere on my PC), retrieve it into a database, where I match it with another value and ultimately give an output of the matched value in the database.

    For example I highlight the number 1 in a text, it goes into the database, finds the value 1, matches it with the value I decided, and creates an output of that value in a similar style to that. I've looked a bit into C# but I'm kind of a real noobie, so any advice on where to start and which language to use is greatly appreciated. Thanks!

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

    Question about pulling data from multiple websites

    Posted: 06 Jul 2020 09:38 AM PDT

    So I'm looking to make a history application on android and IOS that will pull information from multiple sites and display it there for the user to learn I'm wondering if there is a way of doing that and if so how cause the only thing I could think of is pulling it and keeping them each in like an array

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

    I want to develop my own OS for a handheld device. I want that OS to also be able to run APK files. What should I study and from what resources ? I'm currently studying CS50 .

    Posted: 06 Jul 2020 09:33 AM PDT

    Inexpensive or free online resources would be appreciated because I am barely able to pay for college. I know OS development is something that battle-hardened programmers do , but I'm not in a rush and I am ready to put in my 100% for it.

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

    A potential course tailored to new programmers

    Posted: 06 Jul 2020 08:45 AM PDT

    Hi everyone! I'm currently doing some research on the struggles the starting programmers faces. I hope to create a useful course tailored to new programmers.

    If anyone is interested in such a thing, here's a short survey:

    https://docs.google.com/forms/d/e/1FAIpQLSdGJzTurZm1\_lIobSs2HjGqkxiHW0vCcmy5jXqeuKHAf1ay0g/viewform?usp=sf\_link

    If anyone has any ideas or questions about learning to program. Feel free to reach out :)

    submitted by /u/kiwi-dev
    [link] [comments]

    New programmer, need some help and advice :)

    Posted: 06 Jul 2020 08:38 AM PDT

    Hey everyone! I am still in high school but I want to learn how to code.... I have a project in mind which is to make some what of a web application/app (I know it is complicated, which is why I wanna start working on it early ;) however I am not sure which programming language to use.

    I have recently started learning python. Would you say that it is a good beginner´s language to learn? Or would you recommend another one?

    Thank you very much for the help in advance! :)

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

    Cleanest/best user experience for running bash scripts on Windows 10?

    Posted: 06 Jul 2020 08:19 AM PDT

    I have an app which allows users to execute various bash scripts to analyze logs. The users have Windows 10 laptops and I've thought of three ways of doing this but not sure which way is best for the user.

    Have the user install Windows Subsystem for Linux. My app (just an exe) would then download the scripts from a remote location, save them onto the local machine, and run them via wsl.

    Pros

    • App is quick to run

    Cons

    • Requires installation of WSL
    • If user installs various flavors of Linux, the scripts might have to account for that
    • Might have to ask user to install a specific flavor of Linux to normalize the scripts, but the user could already have a different flavor installed

    Have the user install Docker Desktop for Windows and have users run my Docker image. My app would then download the scripts from a remote location, save them inside the container, and run them natively in a Linux container (Debian orCentOS, etc). The host logs would be mounted as a volume inside the container

    Pros

    • App is quick to run
    • Normalized scripts since OS inside the container will always be the same

    Cons

    • Requires installation of Docker Desktop for Windows
    • I've read that running Linux containers with Docker Desktop for Windows isn't as good as running them on a Linux OS. Not sure if the scripts would run smoothly
    • More complexity with running the app. User have to use various flags, mount a volume, expose a port, etc. But I could supply a PowerShell script to do that for them

    The app uploads a tarball of the log files to a remote Linux server. The remote server would have the scripts. The app would execute a script via SSh and stream the output back to the user.

    Pros

    • No setup required. Users can just run the app

    Cons

    • Takes much longer to run. The app has to upload a tarball (can be greater than 1GB) to the server and extract it

    I am leaning towards the Docker method. Installing Docker Desktop for Windows and setting up an insecure registry wasn't painful so I think it will be pretty easy for users. And I will have complete control over the runtime environment within the container. The Linux images (Debian, CentOS, etc) are pretty big but that's ok.

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

    Flatten a 3D Jagged array and index them.

    Posted: 06 Jul 2020 06:24 AM PDT

    Greetings fine folks.

    I've scoured the internet in search of solutions, but unfortunately all of the solutions I've found so far refer through indexing flat multidimensional arrays, thus the index math fails when one of the measurements is uneven.

    Firstly I managed to flatten the jagged array with the following:

    public static T[] ToFlat3D<T>(this T[][][] jagged) { return jagged.SelectMany(inner => inner.SelectMany(innerInner => innerInner)).ToArray(); } 

    Unfortunately this doesn't help me in actually indexing it as if it were 3D. And all of my calculations compared to the 3D version point to the wrong values. I've tried to adapt the multidimensional indexing code to jagged arrays but I presume it failed because of variable "heights".

    And so I must ask for help. I'd very much appreciate some assistance with figuring this out.

    As for why I need this, I'm working with a neural network and I'm converting the code to multithreaded, but unfortunately Unity's job system as far as I know only supports 1D arrays. Thus the problem.

    Thanks for reading and have a fine day.

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

    The first freelance job for an inexperienced junior

    Posted: 06 Jul 2020 02:42 AM PDT

    Hey, so I have been self-studying for almost a year now. I have been working most of this period with JavaScript and Nodejs. I even used vanilla JavaScript for all my personal projects to gain deeper knowledge in JavaScript itself, instead of focusing on a front-end framework. Someone asked me to create a simple local desktop POS system for their supermarket. I know most of what I will have to work with in order to build the system, but there are some concepts that I still have no idea about.

    I know that I can learn these things while working on the application, but that makes me feel like I am sort of "scamming" him or something. The problem is I feel like when starting out with a project I should know every aspect of it. Otherwise, I shouldn't take the job at all. When I built my first personal full-stack app I had nothing but an idea and I worked my way up, breaking down the problem into smaller ones and working on them, until I got to a fully functional web app. But I'm afraid this shouldn't be the case with a job and someone's business depending on you, I guess?

    This person knows I'm inexperienced, but he's willing to go with me anyway because he almost spent everything on the business and can't afford an experienced developer at all. I told him it would take me a longer period to finish the project, but in return it'd cost him less. I haven't given him a time estimate or a final answer regarding whether I'll take the job or not.

    I'm ready in terms of being able to build an application from scratch and this opportunity is really what I was looking for because it's a small local business and the requirements aren't fancy at all. Also, I can't apply for a full-time job at the moment and the best thing is to get such a time-framed job. I'm also ready in terms of writing professional code (Implementing tests, documenting my work, version controlling, etc.). The only thing that's still not clear to me at all is how would I would deal with the barcode scanner, so I'd appreciate someone's insight on it.

    I am 100% sure that if he agreed on the estimated period I give him, I can build the application. However, my biggest concern is whether it's actually professional to take the job or not? Knowing that I still have to learn some concepts to get the job done. I don't want to waste the opportunity because of my worries, but at the same time I don't want to waste someone's time and resources. Also, my area of strength is in JavaScript and Node.js, therefore I am considering working with Electron or Node Webkit as he just wants a desktop app. I am still researching whether these technologies are suitable for such an app. I'd like an honest advice on the whole thing. Thanks for reaching this point!

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

    Need help with my automation project...

    Posted: 06 Jul 2020 01:59 AM PDT

    Hello everyone,

    I am continuing my struggles with a personal my project which aims to to automate a simple function now being done by hands.

    Goal is to check "rest BPM" amount by scrapping 'Kenteken" line from here and checking the figure here and scrapping the figure again from the results page.

    So now I am stuck at automatically typing "kenteken" in the search box here.

    I'm using Python-selenium. It's working, but not typing scraped "kenteken" in the search box. And the code is giving me an error - TypeError: 'str' object cannot be interpreted as an integer. I am adding a summary of my code below. Maybe someone will be able to help.

    Please also note Im 12 years old and trying to patiently learn coding with small projects like this for my brother.

    Thanks,Ignas
    Code:
    https://github.com/IgnasBaraka/BPM-Bot

    submitted by /u/Access-Particular
    [link] [comments]

    No comments:

    Post a Comment