• Breaking News

    Saturday, July 25, 2020

    Hardware noob. Arduino or rasbery pi? Ask Programming

    Hardware noob. Arduino or rasbery pi? Ask Programming


    Hardware noob. Arduino or rasbery pi?

    Posted: 25 Jul 2020 01:47 PM PDT

    Hey guys. I was wondering if you could help me. I want to get into some hardware projects. And i was wondering which one to get (arduino or pi). Coune you maybe list some pros and cons. And If its not to much to ask , if you could guide me towards some guides to start doing hardware projects and how to develope my own. Thanks a lot

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

    Can I use flask for to develop a game?

    Posted: 25 Jul 2020 06:25 PM PDT

    I was thinking of making a simple online game that consists of a grid of boxes that change colours that the user would click on and the colours would change. I like python so I was thinking of using flask but I was unsure if it would be enough.

    I've seen some React that would do this as well but I just wanted to explore some of my options.

    I am also open to other suggestions. Thank you in advance.

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

    Best language/frameworks/resources for portfolio site?

    Posted: 25 Jul 2020 08:48 PM PDT

    Hi all -

    This summer I have a SWE internship (mostly full stack) where I've been learning node, react, and typescript. I'm nowhere near proficient in them, but I'm loving it. I've also been interested in fluent ui (microsoft's creation). With these newfound skills growing, and my graduation from college upcoming next spring, I would like to create a website (functional for both mobile and desktop) to show off some skills, largely learning along the way. I want to go through the entire process from no code to hosting it somewhere (possibly aws, github, whatever is best). Essentially, my idea is to make a productivity site for myself that I would use and also benefit others and my resume.

    1. What are the best frameworks/languages/stacks to use for this? What's most desired and marketable?
    2. Where can I find useful resources for going about this process? I can pretty easily develop simple features in my current job's codebase, but merely because it's well designed and starting from scratch is much more complicated and I would have no idea where to start
    3. Do you have any suggestions for me at all? Any advice is appreciated, many thanks!
    submitted by /u/PertinentPenguin
    [link] [comments]

    how long should I practice with python until a jump to other programming languages such as C++ or Java?

    Posted: 25 Jul 2020 08:00 PM PDT

    I've been taking a python coarse for at least two weeks (not every day in those weeks mind you, about eight days i learned something) and I was just wondering, like the title said, how long should I practice with this until I should jump to other video game program languages?

    submitted by /u/Extravagant-40
    [link] [comments]

    What is the differences between the Mega 2560/Arduino/Raspberry Pi boards?

    Posted: 25 Jul 2020 06:48 PM PDT

    [JAVA] Looking for a paid Mentor/trainer for a 6-months wannabe developer project.

    Posted: 25 Jul 2020 02:55 PM PDT

    Hello,

    I'm looking for a person, that would help me getting into Java language, for a small amount of money per month.

    Project info:

    - The goal is quite obvious, but also tricky to explain - I want to learn Java, then (still uncertain) move to Spring, or Android. You would be helping me, by answering questions, that are rather hard to easily get answered. Because of size of that project, I want to have a person, that can simply answer most of them.

    - There is no deadline, but I want to start now, and at the end of year sum up my knowledge, then we'll decide what's the next goal.

    - I did quite excessive research, and more or less know how to approach start of learning programming - it's only about guidenance in coding itself.

    Info about my behavior:

    - Most of the time, I won't ask you anything before looking for an answer myself - we've Google and StackOverflow for a reason. When we start, there will be wave of simple questions, but after that, it would be mostly just from time to time.

    - I will be working on it at least 1h every single day, and more on weekends - consistency is key to make this project successful.

    - If you would like to get paid, your salary will always be given in advance. Amount is obviously nowhere close to commercial service, but has to be taken more, like a recompense for a time, than actual remuneration. I'm still working as a Junior, so I wouldn't like to pay more, than 50$ per month

    Info about me:

    - I'm Software Tester with less, than a year of experience, that have no code experience.

    Current stack:

    - JIRA, Redmine

    - Devtools, Firebug

    - Charles - proxying

    - Sharex/Screenpresso

    - Postman, basic rest API, simple HTTP methods

    - DBeaver, simple DB requests in IBM DB2

    Stuff I haven't used personally, but I had them in company and know what they're used for:

    GIT (Gitflow workflow), and ofcourse GitHub, CI - Jenkins, JMeter, Selenium, Android Studio/XCode

    - I can speak polish, but would prefer to contact in english - I'm speaking fluently (C2 SET ET)

    - My LinkedIn profile obviously will be shown before we decide to start our journey.

    - I've been working in two companies already, to get experience and familiarity with different software and approaches.

    - I've access to commertial Selenium Java code, which I'm getting familiar with.

    Info about you:

    It's great if you'd:

    - have Java experience, obviously

    - care about good habits (clean code, convention, shortcuts etc.),

    - want to help more, than get that money

    - like to have a long term friendship, and person to talk with

    How I think our collaboration would work:

    - I'm open for any form of contact, but I think best option would be just Messenger, and occassionally screenshare, I don't mind which exactly, we've many options including Zoom, Skype, Meet, even TeamViewer if you would like to check something yourself.

    - It's not like I'm paying you, so you are forced to answer me, explain something after research or anything like that - I just want to have a helpful person, more like a beer colleague, that can sometimes check if I'm on the correct way, that's it.

    - If I need something, it's obviously understandable, that you're busy, and can't talk - this is long-term project, so if you plan to go for vacation, or just can answer only at the mornings, when you check phone, I'm completly fine with that.

    - Stuff that you would be doing is mostly just answering questions with your current knowledge - if you just don't know, it's completly fine, I'll look myself. Sometimes, code review and checking if I'm doing stuff as it should be, would be nice - I want to be sure, that I didn't learn bad habits (clean code, convention, shortcuts etc.)

    - I don't plan to share that project on a blog, or anything like that - everything we're doing is just for the sake of growing skills. If you would like to however, I'm fine with that in any way, including sharing my name and projects publically.

    So yea, that's it. You can contact me by private message here on Reddit, or just under that post.

    Thank you!

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

    Having a hard time picking a language to learn for building a game

    Posted: 25 Jul 2020 12:44 AM PDT

    TL;DR I want to learn to code. I'm also wanting to create a small, retro-RPG (like Final Fantasy) inspired game as motivation to utilize learning code and having something to show of my progress on a resume/portfolio. I have started looking into C#, is this a good path to go down?

    Hello!

    I'm sure this gets posted a lot, and I've tried searching for an answer for the last few days but I figured maybe just posting my own question would be the best way to solve it!

    So, I'm currently in a low-tier IT position (working from home). I have 90% of a degree in Media Production, but going back to school to finish a degree, financially, is not an option right now. I've decided that I want to take the rest of the year and really buckle down and learn to code, something I've been teasing for the last couple years.

    I've also decided, I want to really build a small game alongside learning to code, another thing I've been planning to do for the better part of a decade. I want to build it, not only because I've always wanted to make a game, but I also want to have something to motivate me to learn, and also to have on a portfolio for potential jobs after the fact.

    What are my options? I hear you can code games in a lot of different languages. For reference, my plan is to build a text-based game of my idea first, in the same code, as a "rough draft" and training, and THEN get to coding the actual game in the future. The game itself is going to be inspired heavily by early RPG games, such as Final Fantasy, Lufia, where a character navigates through a world and dungeons with random, turned-based combat encounters popping up.

    My GUESS is C# or Java.

    I have my expectations very low, I'm not looking to build a full-fledged game, but I'm hoping to at least get maybe one dungeon done, while also learning to code. If there's anywhere better that this post should be, let me know! I feel stumped and completely unsure of what to do.

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

    Looking for realistic way to distribute X options across X users given a ranked list of options from 1-X (per user) to maximize average satisfaction

    Posted: 25 Jul 2020 05:40 PM PDT

    I'm not sure if it's even possible to understand the wording of my post, so I'll break it down here. For reference, I'm using Python, but I don't think language or libraries should be a constraining factor here.

    The Problem:
    I have a group of 32 users who have to each be assigned one of 32 options (NFL teams in this case) with only one user per option and one option per user (basically every user gets assigned exactly one option with no replacement in the pool). Each user will submit a ranked list of their preferred teams from 1-32, and I would like to assign each team to a user so that the average rank of the team assigned to each user is as high as possible (lowest possible number). In other words, I want to maximize average satisfaction across the group of users with their assigned teams. I'll describe the theoretically perfect approach and the obvious issue below.

    The Theoretical Approach:
    So the exhaustive, comprehensive solution to this problem would be to save each user's ranked list in a data structure (something like a dictionary mapping each team to it's rank), so this would be 32 users with 32 ranked entries each, so a total of 1024 pairings, which is no problem.

    Then, the program would cycle through each possible arrangement of the 32 teams across the 32 users (32! = 2.63x10^25 arrangements), and for each arrangement it would sum the rank of the team that each user was assigned from their respective lists to determine the average rank across the league. This is the limiting factor because we are talking about 2.63x10^25 arrangements, which is a huge number, plus 32 lookup operations per arrangement, so on the order of 10^26 lookups total.

    My Question:

    Since the theoretically perfect approach is unrealistic from a computational perspective (I don't want to run this program for 10+ hours nonstop on a laptop), I'm asking if there's any algorithms or approaches that can get me the optimal or near optimal distribution of teams across users with a realistic amount of computation. This might be more of a math question, but I'm sure there's some way to ignore a large set of possible arrangements based on them being way worse than the optimal solution. Also, a complicating factor is that the same teams are likely to be near the top and bottom of most ranked lists, so the value of many arrangements is likely to be similar.

    Current Ideas
    I don't really have any full solutions right now, I'll update here if I do come up with something. I'm considering some sort of pre-filtering of lists, so that if one user has a team ranked 10 spots higher than anybody else, they get locked into that team. This pretty much sacrifices any attempt at an optimal solution though, so I'd prefer not to do it.

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

    Where can I find a list of softwares developed, showing things like programming language used, how long it took to be developed, team size, etc?

    Posted: 25 Jul 2020 01:22 PM PDT

    Can anybody help me host an external, 24/7, Minecraft server with my raspberry pi 3?

    Posted: 25 Jul 2020 05:00 PM PDT

    Is an ArrayList in Java more or less the same data structure as a vector in C++?

    Posted: 25 Jul 2020 04:44 PM PDT

    What are some facts about python that differentiate it from other languages?

    Posted: 25 Jul 2020 09:33 AM PDT

    Is dockerization the best approach to run algorithms/application based on different programming languages? (C++/Python example)

    Posted: 25 Jul 2020 08:44 AM PDT

    I recently worked as a master's student in Operations Research. My codes were based on frameworks that utilized commercial solvers (like CPLEX and Gurobi) and manual implementation of benchmark algorithms (like delivery scheduling, shortest path, etc).

    One thing that I've been always curious about was mixing data science tools with Operations Research: for example, using algorithms that generate multiple viable solutions (let's say a genetic algorithm) and use data science tools (binary trees, clustering, etc) to identify patterns and refine solutions, iteratively.

    Since there's a great focus on speed and efficiency in academic research, I was restrained to C++ for coding. Now that I'm trying to find a job, I've been studying new concepts, like Data Science and Docker, which seem to be highly demanded today. Python is pretty much the go-to language for Data Science, at least in a general and introductory level, from what I've seen.

    If I didn't misunderstand the point of Docker (I never used it and I'm currently trying to learn more), it allows encapsulating apps in the minimal structure required for them to run, which provides better performance, and also provides lower coupling between different apps, since they'll be running in distinct environments.

    I know that running programming languages together is possible (including C++ and Python). However, the process of implementing this always seems 'dangerous' due to the risks of loss of performance with all the workarounds that need to be made, and other things, like memory leaks.

    If I were to run the algorithm I mentioned earlier, it would require a flow from C++ to Python to C++, and so on. Assuming that I want to use a python library for the data science part (there are probably C++ solutions for this, which would facilitate everything, but let's assume that there isn't) and C++ for the general code: would dockerization be the 'safest' way to run this? Or are there simpler ways to guarantee efficiency and avoid unnecessary problems?

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

    Trying to define my need

    Posted: 25 Jul 2020 04:59 AM PDT

    Trying to hire someone to build a chrome extension that will generate 180 forms each day and compile the answers. Each form needs to be link to a specifique qr code that will not change. Who am i trying to hire ? (Sorry if this is not really clear, english isn't my first langage.)

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

    Automate google image search

    Posted: 25 Jul 2020 01:21 PM PDT

    Hi, maybe this is not the right place to ask this. If you could help me I would be grateful!

    I need to search images in google for 15.000 products, it's a lot... I have the barcode for these products in a .ods file and when search that number the first image is most likely good for use, better if the filter for big images is on because I need the images to be bigger than 500 px at least in one of the sides.

    Can I somehow automate the search to get the URL of the images in the same file?

    I hope this doesn't disturb you, thank you!!!

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

    Comparing two identical website REACT VS ANGULAR

    Posted: 25 Jul 2020 01:15 PM PDT

    Does anyone know how to test two websites with the same content but different frameworks and see which one has better performance and stuff?

    I have to make a report and compare react and angular

    I made simple identical websites fetching JSON data and displaying it.

    Any help would be greatly appreciated!!

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

    What is the name for this type of diagram?

    Posted: 25 Jul 2020 12:26 PM PDT

    This is probably a strange question, but it has been driving me crazy thinking about it. I saw a diagram for planning algorithms in the background of a Youtube video that I remember having to draw for a SWE class in college, and I can't for the life of me remember what it is called.

    Can anyone tell me what the name of the type of diagram in this image is? https://imgur.com/a/2P53viA

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

    Assembly register and pointers.

    Posted: 25 Jul 2020 11:41 AM PDT

    first off I want to apologize for not having code but rather a picture - https://ibb.co/WHjp0jL , the reason is because I am following a tutorial, but the code is all in the picture, with that out of the way

    so the first line of code makes sense he is just moving 48 into RAX, second line of code kind of has me stumped, so I know al is the first 8 bits or LSB of the RAX register, so RAX final byte will represent the digit 0 in ASCII as only the last 8 bits are needed to represent a character,

    but I'm not exactly too sure what's going on, so [digit] is a pointer right? and digit points to where the digit starts, but by setting [digit] to be equal to al, how does this change the value of digit? in the tutorial I am told that digit will now equal 48 or '0' in ASCII, but I thought [digit] al, is just changing the first byte (0)'s address but not the value?

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

    Licencing choices

    Posted: 25 Jul 2020 11:39 AM PDT

    Hi All,

    I own a software development company and our main project is a SaaS application. We currently use GitHub private repositories for our work, but I'd like to look into going open source. I've been looking at using the Business Source License 1.1 with a licence bolted on the end (probably GNU or Apache).

    The main thing I like about the BSL is the protection to myself to keep people using my product, with code going truly open source after a predefined time period. I've tried to find a definitive guide for open source SaaS monetization but haven't found much that explains it well.

    Many thanks in advanced,

    Thomas

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

    Performing Calculations before Vs. after saving to Databse

    Posted: 25 Jul 2020 11:02 AM PDT

    I have a statistical analysis web app that performs various computations on user input and saves certain parameters to the database. From a statistics view in the app, the user can see the analyzed data based on a query from the database.

    Currently, I store the data only partially formatted and then perform additional calculations after the data has been requested. Would it be better practice to perform all calculations before saving to the database? Doing so would significantly increase the amount of fields in my database but would this scale better or provide any performance benefits? is one way or the other "better practice"? Thanks for any input.

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

    Hello, I'm doing a seminar on user trust in blockchains. We want to determine the trust users have in blockchains and find out how their trust correlates with their technical knowledge and personal stake in blockchains. To do this we created a 2 minute questionnaire. We appreciate every entry!

    Posted: 25 Jul 2020 10:46 AM PDT

    Using pandas, can create a dataframe using column name strings, but trying using the constants that have been assigned to them results in a key error

    Posted: 25 Jul 2020 09:12 AM PDT

    So I have a dataframe, gdpVsLife, which consists of a country column, a GDP column, and a life expectancy column. I want to find out what, if any, relationship the top ten values within the GDP and life expectancy columns have with each other, so to do that I want to create a new dataframe consisting of only rows of countries that appear within the top ten of both the GDP and life expectancy columns. To do this I did:

    #make a dataframe of only countries belonging to both: #the ten highest GDP values #the ten highest Life expectancy values #defining a new table GDPTOP = gdpVsLife[GDP].sort_values().tail(10) LIFETOP = gdpVsLife[LIFE].sort_values().tail(10) gdpVsLife['Top Ten GDP (£m)'] = GDPTOP gdpVsLife['Top Ten Life expectancy (years)'] = LIFETOP gdpVsLife #produces a table with two new columns, GDPTOP and LIFETOP with only the top ten values of GDP and LIFE #Now if I try: headings = [GDPTOP, LIFETOP] gdpVsLifeTOP = gdpVsLife[headings] gdpVsLifeTOP = gdpVsLifeTOP.dropna() gdpVsLifeTOP KeyError #But if I write it as: headings = ['Top Ten GDP (£m)', 'Top Ten Life expectancy (years)'] gdpVsLifeTOP = gdpVsLife[headings] gdpVsLifeTOP = gdpVsLifeTOP.dropna() gdpVsLifeTOP #it produces the desired dataframe 

    The whole point of constants is that they're supposed to save you time and having to write the whole string out, and after I've assigned a string to those constants, the strings work in producing a dataframe but the constants don't, I can't understand it. I get I can make it work one way, but it bugs me that I'm having to solve the problem a slow way when there's a cleaner and more efficient method.

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

    What language has the best concurrency/parallelism?

    Posted: 24 Jul 2020 11:56 PM PDT

    What is the process of adding multiplayer/PVP to a singleplayer

    Posted: 25 Jul 2020 03:02 AM PDT

    Is it as simple as adding a few lines of code and hosting/paying for a server

    or would I have to revamp the entire file and make major changes in order to turn a singleplayer into a multiplayer?

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

    How to separate audio channels from a video chat

    Posted: 25 Jul 2020 03:02 AM PDT

    Hi,

    Per the title, I'm trying to separate audio channels that come from a video chat feed so that it can be edited separately or ideally, be injected into Garage Band or similar software so the user can manipulate it in real-time.

    I'm pretty sure that this is doable, I'm not sure how to start although I've found a library that perhaps could be a starting point https://github.com/ExistentialAudio/BlackHole

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

    No comments:

    Post a Comment