• Breaking News

    Friday, April 9, 2021

    Why are 6502s still being made today? Ask Programming

    Why are 6502s still being made today? Ask Programming


    Why are 6502s still being made today?

    Posted: 09 Apr 2021 06:30 PM PDT

    Hi, a while back i built Ben Eater's 6502 kit and i was wondering, why are they still being made today, along with the other parts included in the project? Since you can just run everything on an arduino nowadays, they seem kind of pointless. But I'm not complaining.

    In addition, is there any reason to learn 6502 assembly besides just for experience? Is there any practical use for it in today's world? Again, I'm not complaining, just curious.

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

    Why does your ping go up if it's only using a few kilobytes playing, downloading a game in the background? Shouldn't it be the same?

    Posted: 09 Apr 2021 07:00 AM PDT

    Changing your language early in your career

    Posted: 09 Apr 2021 12:44 PM PDT

    Hi all,

    So my situation is that I'm currently a working as a full stack dev for 3 years (angular + java) and am most likely changing my job next week as I have a couple really good offers on the table. Most of the offers are for Java or Java + angular while one is for Go.

    The company that works in Go has a really nice product that they sell and a great environment around it. Everything else around sounds pretty good and I was just wondering, am I too early in my career to be changing programming languages?

    My career goal isn't really special, I just want to improve as a programmer as much as possible through my job and in 5-10 years be a solid senior so I can give back as much as possible. I don't have dreams of working in FANG companies or something like that.

    I know that there's no right answer here but all opinions are welcome.

    Thanks guys

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

    Why is python used in large programs when it is really slow?

    Posted: 09 Apr 2021 02:04 PM PDT

    Python was the second language I learned (if you consider scratch's building blocks a language) and it is very useful because it is not only easy to code with but it has a shit ton of amazing libraries. But it is sooooo slow. Why would anyone want to use python to code a large-scale program for e.g. data management? I originally encountered this question when I got into neural networks and it was taking quite a while just to get an output with more than 10 hidden layers (without using NumPy).

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

    I want to make code that senses a certain event in the game terraria

    Posted: 09 Apr 2021 08:57 PM PDT

    Hey! I don't know if this is possible but in the game terraria there are random events that occur I was wondering if I could make a signal from that?

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

    Can't install pip due to ImportError

    Posted: 09 Apr 2021 07:37 PM PDT

    I"m new to programming and trying to get started but being unable to install pip is getting in my way a lot. Here's the error I keep getting, can someone help me?

    C:\Users\slick>pip install selenium Traceback (most recent call last): File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1264.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1264.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1264.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\__main__.py", line 23, in <module> from pip._internal.cli.main import main as _main # isort:skip # noqa File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1264.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\cli\main.py", line 10, in <module> from pip._internal.cli.autocompletion import autocomplete File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1264.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\cli\autocompletion.py", line 9, in <module> from pip._internal.cli.main_parser import create_main_parser File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1264.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\cli\main_parser.py", line 7, in <module> from pip._internal.cli import cmdoptions File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1264.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\cli\cmdoptions.py", line 23, in <module> from pip._internal.cli.progress_bars import BAR_TYPES File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1264.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\cli\progress_bars.py", line 12, in <module> from pip._internal.utils.logging import get_indentation File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1264.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_internal\utils\logging.py", line 9, in <module> import logging.handlers File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1264.0_x64__qbz5n2kfra8p0\lib\logging\handlers.py", line 26, in <module> import logging, socket, os, pickle, struct, time, re File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1264.0_x64__qbz5n2kfra8p0\lib\socket.py", line 51, in <module> import _socket ImportError: Module use of python38.dll conflicts with this version of Python. 
    submitted by /u/downvoted_your_mom
    [link] [comments]

    How to quit a project with a low bus factor

    Posted: 09 Apr 2021 03:04 PM PDT

    For the last year or two I've been working on a moderately-sized OSS project, along with the associated SaaS platform. The core development team is large enough to make it more than a toy project, however frontend development sorely lacks developers. In fact, all of frontend and design has a bus factor of 1: me. This is an issue, given the project is a web app.

    Over the last few months, the direction the project has started to take has become increasingly something I'm not a fan of, and working on the project has entirely lost the "fun factor". The rest of the team have also developed a strong backend-superiority complex, making many impactful decisions without as much as warning, let alone asking how much impact it would have on the part of the project that users see.

    In short, it's reached the point where I'm seriously considering jumping ship entirely and putting my time to better use, but I also have a strong fear that if I completely quit development will at best slow to a crawl, and at worse cease (see: there are no other frontend developers on the team).

    I don't really want to put the rest of the team in a position like that; what options do I have?

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

    Does this only happen to me? Help me to improve

    Posted: 09 Apr 2021 12:50 PM PDT

    Hello,

    First of all I want to say that I am totally serious about what I say and ask here.

    I've been programming like freelance in PHP, Javascript, Node.js and also doing SEO. I also often touch a lot of HTML and CSS

    I'm realizing now that I'm jumping more and more from one language to another that I forget a lot of syntaxes of the languages. Lately I'm using/learning Bash, Docker, React.js, PHP, Node.js, etc...

    For example a year ago I programmed a CRM (the best I've done so far), in it I used a lot of date functions, and I remember that at the time of programming the CRM, I said to myself I'm making a machine with dates, lol, well now I have to do another job where I have to use dates and I do not remember anything, I have to search for it again and look at the project. Does it also happen to you? Is there any trick to remember all this when you change from one language to another?

    Another example, two months ago I searched for "How to make an intersection of two arrays", well the search and result didn't take me more than a minute. Today I searched for it again, :(

    I also feel more mediocre when I see people with CVs that know JAVA, C, Swift, Go, Javascript, Rust, etc... and the same with job offers that ask for all that, I think to myself this person is gifted. And also when I see an offer of this caliber I think of two things; Either they are looking for an gifted person, or they still don't know in which programming language they are going to do the project.

    I think that maybe I have to be content with the fact that I can't take on more, but I don't want to think about it and I want to ask here if there are any tricks/tips to improve as a programmer.

    Thanks

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

    How to do a massive scale global job lookup?

    Posted: 09 Apr 2021 01:45 PM PDT

    I am working on a distributed API that allows for the running of server side jobs. Most of the system is scalable, and runs well ontop of a mix of S3 containers / databases.

    BUT, there is one slow part. Given some job ids (usually 20-30 or so), requesting a download of all the jobs in that set of ids is really slow. I keep trying to come up with ideas to improve this random access speed. These jobs are not large -- like 2kb each or so.

    Are there any good approaches you guys know of to speed something like this up?

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

    How to calculate/join hexadecimal set of bits?

    Posted: 09 Apr 2021 05:22 PM PDT

    I am working with a CGI program for a blog engine and the "entitlements" that a user can have are expressed as a (hexadecimal) set of bits corresponding to the actions that can be requested.

    https://pastebin.com/vu4DEirb

    The last two lines of the paste show two examples of entitlements, and I am trying to "calculate" a third one which would allow all actions (the "sum" of all actions). I am struggling to come up with the correct 0x??? value, any help would be much appreciated :)

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

    Looking to building a program that will limit the download rate of my PC

    Posted: 08 Apr 2021 11:37 PM PDT

    I'm looking for a way to limit my download rate, in a similar way to how NetLimiter etc works. It seems like it's not really possible with Python, so I am looking for a little help in finding a language and the overall idea on how to do it

    Thanks a lot!

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

    How do I find out in which version release an API or method was introduced for any language?

    Posted: 09 Apr 2021 03:27 PM PDT

    In Ruby its easy to know when a particular method or built in function was introduced or changed because of the website APIDock. How do you find this for any language like Java, Python etc?

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

    How to get started with software testing

    Posted: 09 Apr 2021 03:08 PM PDT

    My sister needs a job, she has a computer science background but she does not like programming nor she is good at it.

    Here are some questions

    1. What's the best place to start for a beginner? any books / courses would help.

    2. What tools do you testers work with? that she should be familiar for an interview.

    3. Any advice that you might have regarding this subject.

    I tried to help her but I could not find any good material, there are some certifications and courses around those, I wasn't sure if they were helpful.

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

    Trouble Getting started

    Posted: 09 Apr 2021 12:54 PM PDT

    Hi, i just started learning programing (python), i wanted to develop mobile apps. but as i learned more i am no longer sure it is the right language to learn for app development, especially for a complete beginner like my self. i dont know if i should learn something else or i just don't understand the language enough to see its capacity. i just wanted an opinion from people with experience. and thank everyone for your answer.

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

    Advice on automating my data reports by getting into programming?

    Posted: 09 Apr 2021 12:40 PM PDT

    I am currently looking into automating my data reports where I work and want to know what are the best languages to start learning/applying to do so. I'm asking because I have the opportunity and support from work to take some courses and would like to know which programs/languages/courses will help me best for now, and even going forward in the future.

    I work with a lot of healthcare data and do regular data reports that require me to do queries from electronic medical records, clean the data, analyze it, and then report it. Currently, I do all of this through Excel and some through SPSS. It's not a bad process, but it can take days for some tasks, and it's pretty repetitive. The data cleaning, analysis, and reporting is exactly the same each time. I usually export all my queries to Excel, where I've created a little VBA script to help automate my cleaning, and then I end up throwing things into pivot tables, and then gather the descriptive statistics and create tables and graphs from there. After that, I transport it all to a word document and populate/replace the necessary figures, tables, and descriptive statistics with the updated ones I got for different time periods.

    What I would really like to accomplish is to automate all of these steps by creating some kind of wizard that guides you through what you would like to do, automatically does all the cleaning and analysis for you, and then spits out a report just by following all the simple steps. I would like the wizard to:

    1. Ask you what type of analysis you'd like to do (e.g. no show rate, appointments, cancellations, etc.)
    2. Ask you to point to where your raw data pull is on your computer
    3. Do the data cleaning and run the analysis with the click of a button, along with a little info box of the steps it took for the analysis
    4. Give you a quick high-level summary of what the analysis found
    5. Spit out the analysis in a clean report format (maybe in a word document?) that's ready to be sent off.

    That is what I envision as I essentially want to create something that anyone can use and don't necessarily need me to do all of the analysis and reporting for them, it'd be simple and intuitive enough to do themselves. Most of all it will hopefully take only a couple of minutes, rather than the days it takes me to do this all manually.

    So far I started with creating a VBA script that automates my data cleaning but I'm wondering if doing it with VBA in Excel is the best way and/or if there is a better way out there? I currently also do some analysis in SPSS, as it is just a bit easier with transforming some data, but for the most part, I get all the analysis done in Excel. I was also looking to see if all of this could be automated and done using R as it's mostly used for statistical analysis, but I don't think you can create a user interface with R to guide the user? But I've seen people do analysis and spit out reports with R. I just don't know if I would always want to use their data visualizations as Excel has more flexibility with how you want to visualize different data. Then I was also looking at learning python as I've read that many people use python scripts to automate their work and I've seen some Python integration with Excel or Microsoft products.

    Any guidance here would be helpful on how I can approach this and what would be the best language to automate my work. Once I know this I want to take some courses to learn the languages/programs and start building sustainable solutions for some of my work now and future work. Any guidance/tips/advice would be greatly appreciated!

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

    How is the Linux kernel's codebase only 600MB, while the Windows codebase is 270GB?

    Posted: 09 Apr 2021 06:19 AM PDT

    At https://youtu.be/RFAXltyTAPs?t=130 the difference in source code size is talked about by an employee of Microsoft.

    I can imagine Windows being larger than Linux, but basically 269GB bigger is mindblowing, what is this difference made up of? Is it all to do with Windows having GUI built in, different versions of Windows, legacy code etc? The modular UNIX philosophy vs one giant monolith?

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

    Programming a KI, which automatically answers my Whats App messages

    Posted: 09 Apr 2021 07:46 AM PDT

    Could someone give me some informations about where to find a good tutorial about programming ( I guess i will try Phyton)?
    Next then i would need some info about how to programm a KI after finishing to learn and apply basic knowledge and especially how to connect this with me because the answers should be dependent on if i have time and on with some of my typicall character traits.
    At least i would like to know how to connect this with my WA account to use it in the end so that it safes my time. (I got inspired by a pretty similiar project in the anime "The Pet Girl of Sakurasou")
    An overview of how many hours this will need until it works would also be good to plan it.

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

    What do you think of removing the concept of visibility from OO languages?

    Posted: 09 Apr 2021 05:24 AM PDT

    I recently came across this discussion about visibility modifier:

    https://discuss.kotlinlang.org/t/kotlins-default-visibility-should-be-internal/1400/15?u=jiayounokim

    Quoting the relevant text:

    If I was designing my own OO language, I'd probably chuck the entire concept of visibility down a black hole. I'd just burn it to the ground. Instead I'd have three things:

    • Annotations or modifiers reflecting API stability: stable, beta, unsupported, deprecated etc
    • Annotations or modifiers labelling methods or properties as "impl" (implementation detail) so they don't show up in JavaDocs or code completion. But they'd still be usable if you typed out the name manually.
    • Finally, a (rare) annotation called @Secure that makes "impl" methods/properties completely inaccessible from sandboxed code. This would correspond to private today, but impervious even to reflection (from within the sandbox).

    Then if you're a developer and you end up using code marked as "impl", you upgrade your code and it breaks … ok, sucks to be you. Can't say you weren't warned. Ditto for if you were using beta/unsupported API. You want seamless upgrades in perpetuity? Gotta stick to the stable stuff.

    End.

    What are your thoughts on this concept?

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

    How do I break into programming

    Posted: 09 Apr 2021 10:56 AM PDT

    I was laid off recently from a position as an Account Manager in market research, where I worked for 5 years. I hated my job by the end of it, and I want something very different.

    I think I might really enjoy being a programmer, possibly as a software/web engineer someday or something. For now though, I am wondering what steps could I take to have a job in some kind of programming in a few months?

    Note that I don't really have any programming skills yet, so I am hoping for insight around how to best train myself/get trained by others to build skills in such a way that I can get a job in a few months. Willing to put in the work to make it happen, but I don't know where to start.

    I understand I will need to identify an end goal imminently. A dream goal would be something freelance, in game design or anything really. But I just want skills to work toward that & that can help me get a job in a few months.

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

    How can Google search show the correct Japanese person even if I misread the Chinese letters?

    Posted: 09 Apr 2021 10:16 AM PDT

    Japanese use Chinese letters (what they call Kanji) but they often read them in their Japanese meanings, not by the pronunciation that presents the original Chinese pronunciation. Therefore one Chinese letter may have several pronunciations. This is especially difficult for proper nouns like names, because there really are not any fixed rules. I often misread their names, but the thing is, even if I misread their names, somehow Google search almost always shows the correct person at the top.

    For example, I thought "大和田仁美" was "やまとだひとみ", but it was "おおわだひとみ". But Google search showed 大和田仁美 at the top. https://i.imgur.com/xMhqoOK.png How do they do this?

    For comparison, I did the same thing on Bing and DuckDuckGo, and they all showed a wrong person. https://i.imgur.com/lCUcbzQ.png https://i.imgur.com/4e6F1XA.png

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

    Trying to build a large scale SaaS Blockchain Solution based on Cardano. What programming language should I use?

    Posted: 09 Apr 2021 06:24 AM PDT

    I'm trying to build a large scale SaaS Blockchain Solution that will have multiple DAPPs for multi-functional purposes. I definitely want to use Cardano as my base token. I'm trying to run this startup as a total garage operation because of lack of funding. I have some python scripting experience from years ago, but I particularly had trouble with object oriented programming.

    Should I learn Javascript, Haskell, Solidify, Prutus or etc..? Which one/or ones would be best for my solution? What order should I learn the programming and the best way to reduce the learning curve if possible? Are there any recommended resources (Videos, Tutorials, Academy's) for newbie blockchain programmers for Cardano with almost no real programming experience? How long would it take to learn before would be able to do something useful?

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

    Solutions for storing user created media content?

    Posted: 09 Apr 2021 04:09 AM PDT

    Wondering what media storage solutions people would suggest, I'm a bit of a noob with app development.

    For the development stage I assume a local database and then for production using a rented server or something?

    Anyone got experience with dealing with these things? Bonus points for advice on budget.

    Any advice is appreciated! :) Thanks!

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

    ssh -T and ssh-keygen not working on Git for Windows-bash

    Posted: 09 Apr 2021 09:19 AM PDT

    I wanted to a) test the ssh-connection to GitHub using ssh -T, and b) generate new keys using ssh-keygen. Neither ist working.

    I enter the commands, and then the CLI goes to the next prompt. No error, no output, nothing. For keygen, you should see "Generating public/private ...". That is just not happening.

    Any ideas what I am doing wrong?

    I'm on Windows 10, with Git for Windows 2.31.1 (latest version).

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

    Embedded dct function

    Posted: 09 Apr 2021 07:33 AM PDT

    So I've already made a idc-II function in c, but how can I translate it into embedded, so I can use it in contiki? - embedded devices

    I've implementet the .c code in this online compiler, so you can run it and see how it works:

    Run idc-II code online

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

    Database in PHP

    Posted: 09 Apr 2021 07:31 AM PDT

    Hello,

    For a school assignment I was tasked with creating a simple little PHP app, which can be ran on a web PHP editor. The problem with this is that I'm also required to connect this with a database. I already have the working code for the app and it works if I run it on XAMPP, but none of the online editors are able to connect to the database. The databases that I've tried with are on localhost, db4free.net and freesqldatabase.com. My question to you is if you know of any online PHP editor or online database service that I can use to connect the two.

    Thank you in advance for any help or support.

    Have a good day.

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

    No comments:

    Post a Comment