• Breaking News

    Tuesday, December 31, 2019

    We're organizing a free workshop on how to host a website on Amazon Web Services (AWS) learn programming

    We're organizing a free workshop on how to host a website on Amazon Web Services (AWS) learn programming


    We're organizing a free workshop on how to host a website on Amazon Web Services (AWS)

    Posted: 30 Dec 2019 03:01 PM PST

    Hi everyone! Happy New Year!

    This Sunday, I along with my friend who is a Senior Cloud Architect from Equifax am arranging a free online workshop on how to host a website on Amazon Web Services (AWS).

    By the end of the workshop, you'll have an idea of cloud computing using AWS. This workshop is designed for the absolute beginner. You'll also receive a Certificate of Completion at the end of the course.

    Registration Link: https://docs.google.com/forms/d/e/1FAIpQLSe_qECF6lgtiIfr0ccXbSd7sUWyq14t0npsgpFIKe_7e33eTA/viewform

    Workshop Date & Time: Jan 5th, 9:00 PM EST (GMT-5)

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

    Feeling difference between imagining a program idea VS actual programming and learning

    Posted: 30 Dec 2019 06:50 AM PST

    I'm currently learning how to make basic apps and android games.

    I love imagining and designing a new app and game, but when it comes to implementing the actual thing

    or learning the things that are required, I get to a very bored, unenthusiastic state and become lagging off.

    Does anybody have this kind of experience, and also is there a way to overcome or be more encouraged when

    doing the actual implementing(programming)...

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

    Questions about integrating Python with Website

    Posted: 30 Dec 2019 11:17 PM PST

    Hi everyone, as the question says, I currently am writing a program that outputs a csv table file that can be viewed in Excel. That doesn't look "nice," however. As the next step, I'm looking to build a website that can run this same program but instead of outputting an Excel table it just generates a table with nice font, color, everything. Is that possible? How can I incorporate Python (or any other programming language) in a website? Thank you so much.

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

    what to begin practicing?

    Posted: 30 Dec 2019 09:43 PM PST

    I am interested in learning Python and R.

    For those who work in the programming (etc) industry, what are some examples of programs you have helped to develop on the job?

    The purpose of this post is to begin learning how to code for businesses while working on my bachelor's degree.

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

    Java Classpaths and JAR files

    Posted: 30 Dec 2019 06:48 PM PST

    Can someone give me an overview or link to a video on java Classpaths and jar files? I don't really understand what either are, and am trying to use a set of open source classes (apache commons for csv reading and writting) in a program i'm writing and am not sure what to do. I also don't know how to run my class from the terminal (mac) and link it to the commons classes im using.

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

    Need a little help please.

    Posted: 31 Dec 2019 12:19 AM PST

    Q. Explain in your own words. A practical example of the use of floating point numbers and Integers.

    Now this is with regards to programming a logic controller that controls a process.

    so I was thinking timer data would be a use for integers. but I'm not so sure what applications require the extra accuracy of floating point.

    any input would be appreciated.

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

    Lesson learned: something extremely improbable for a human can be very probable for a program!

    Posted: 30 Dec 2019 11:45 PM PST

    (Here I share my experience)

    Yesterday I created a program that was was aggresively gambling with itself using imaginary dollars. The game was simple, 50/50 chance to win or lose. If you betted $X, then you either would win $X or lose $X. My bot would start by betting $1 and in case of a victory it would start its next bet with $1 too. In case of a loss the bot would double its next bet. If said bet failed the bot would double its next bet, again and again, until it either won or ran out of money to back up its bet. After a victory the bot would start its next bet with $1. If it ran out of money to back up its bet, then it would stop gambling.

    Here is the code in Python 3: https://paste.ee/p/Lr9rJ

    I know that this method of gambling (like any other method of gambling, to be honest) would NOT make the bot rich in long run. Math predicts that sooner or later there would be one disastrous loss that would "compensate" for money that the bot slowly built up by regularly doubling its bets to compensate losses. But the key word is "sooner or later". Theoretically we can endow our bot with so much money that it would take forever (in sense "very long time") for it to reach point where it wouldn't have enough money to back up its escalated bet.

    So I gave my bot 1 million dollars and then found that it stopped gambling. Turned out that it lost TWENTY BETS IN ROW. Probability of losing 20 bets in row equals to 0.520, or 0.000000953%, or 1 out of 1048576. I ran it again and it was luckier this time, meaning that it built up more money before it reached its doom. Due to larger sum of money it took 22 bets being lost in row to make the bot being unable to escalate its bets.

    Then I understood that there is nothing surprising about this result. My surprise came as result of biased thinking. For a human 0.000000953% chance is perceived as extremely small because we are much slower than bots, our actions are much less frequent. But anything with low probability can become reality if there are enough repetitions, you can get 20 tails in row if you toss a fair coin enough times. If I gambled 8 hours each day and it took 30 seconds to make one bet, then I would be able to make 960 bets per day, meaning that it would take about 3 years for me to make my millionth bet. No surprise that one in the million chance of my bet to lead to a disaster would look very improbable for me. But a bot can make much more bets per 30 seconds than me (partly because it doesn't need to wait for roulette's wheel to spin). On my computer the bot is able to make 48 000 bets per second, meaning that it needs about 21 second to make its millionth bet. Not a surprise that it would take the bot a minute to encounter something (like 20 losses in row) that would take a human literally years of full-time job of constant gambling.

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

    Do I need RestFul web service for connecting DB?

    Posted: 30 Dec 2019 11:44 PM PST

    I am a novice developer and I am trying to use AWS RDS and connect it with Website and Android mobile app. When I was searching through the internet, I heard RestFul web service is needed in the middle when connecting RDS and Mobile apps. Do I need to do the same with the website too? Thank you for your explanation in advance!

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

    Dynamic Programming Solution to Knapsack Problem, Unsure of What's Wrong w/ Implementation?

    Posted: 30 Dec 2019 11:14 PM PST

    Hi,

    I'm learning about dynamic programming and was following this lecture note PDF's solution to the knapsack problem. I've implemented it in Python here -- it runs over a sample problem and compares the times between the recursive and DP solutions to the problem (as represented by knapsackRecursive and knapsackDP functions). However, the DP solution appears to be incorrect (the function outputs 35 rather than 29) and I can't figure out why at all. Something is going wrong down the recursion tree and I'm unsure what. Any tips / help in approaching this problem? Thanks!

    Edit: For all n less than 5, both functions return the correct output. Weird!

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

    Heard about Odin project today. Got excited then figured out It’s recommended to us Mac or Linux.

    Posted: 30 Dec 2019 10:55 PM PST

    Is using Linux inside of my windows a good way to go about it ?

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

    What is the best hybrid framework?

    Posted: 30 Dec 2019 10:39 PM PST

    I know that there are always pros and cons about every framework. But, seems like some of them are only built for mobiles but writing code in JS HTML and CSS. Is there any good framework I could when I only want to write one code and use it on web and mobile at the same time? seems like React Native only supports mobile :(

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

    Need help with python question!!

    Posted: 30 Dec 2019 10:39 PM PST

    from turtle import * shape('turtle') speed(0) def square(): for i in range(60): forward(50) right(90) right(5) square() 

    Make a function to draw 60 squares, turning 5 degrees after each square and making each successive square bigger. Start at a length of 5 and increment 5 units every square.

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

    IndexError: range object index out of range in python 3.7 when decrementing without step argument ex. range(6,1)

    Posted: 30 Dec 2019 10:33 PM PST

    Hi, when i am decreasing numbers say from 6 to 1 in range function without a -ve step argument. I am not immediately given an error. But error is given when i try to slice that index.

    Here is a screenshot of what i was doing.

    https://imgur.com/qpYlRjq

    Thanks in advance.

    Python 3.7.4

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

    Best route to make decent first project?

    Posted: 30 Dec 2019 10:26 PM PST

    I'm almost finished with my associates in CS from a community college, and my skills so far are just basic Python and intermediate Java. I've got a Data Structures course next semester and that'll be my last related course before transferring.

    I want to get started working on a project, but it's tough to think of what could be made with the skills I've got. What steps should I take from here to get the ball rolling? Really looking forward to adding more to the resume over the next few months.

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

    Are brand new developers expected to code up any/every design put in front of them?

    Posted: 30 Dec 2019 10:14 PM PST

    Posted this in the Webdev sub but also interested in seeing what you guys have to say as well...

    Just saw a video on YouTube that lists the things one should know to become a developer. The first on the list is PSD to HTML, which was then clarified to mean to code up a design that's given to you.

    The YouTuber showed examples from Dribbble and said that you should be able to code up any design that is given to you. And if not, then that means you need to work on your HTML & CSS.

    Now, to be fair, most of the designs I see on there are fairly advanced stuff. So, how accurate is this person to claim this? Does anyone here who has actual experience in the field agree with what was said?

    submitted by /u/Jay-86
    [link] [comments]

    Is it better to contribute to open source projects rather than creating your own projects in terms of what employers are looking for?

    Posted: 30 Dec 2019 10:42 AM PST

    I am learning android apps and I have made some apps and didn't know much about git or version control at all before. I never had interest in contributing to open source because I thought employers wouldn't see that but I heard github shows when you do that. I am learning about git and it seems like the most important thing to show experience to employers.

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

    What is the optimal way to make multiple API calls at once in Javascript?

    Posted: 30 Dec 2019 09:41 PM PST

    I've been using promise.all(), however another developer at my company this isn't optimal, as promise.all() will return unresolved if even one of the promises within it does not resolve.

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

    Entity linkage with item names from different sources

    Posted: 30 Dec 2019 09:13 PM PST

    I am currently working on 2 sets of food names, one of which contains quite generic strings (e.g. oil, sauce, meat, sauces and etc), whereas the other one is made up of very specific parts (e.g. sweet & sour stir fry sauce, alfredo sauce mix, Italian-style meat balls etc).

    The problem is I need to map those exceptional names in the second set to their generic counterparts in the first set, integrating similar items to form one element and use it in the further analysis. For example, I know that pasta is a hypernym for pasta sheets or whole wheat pasta; however, pasta sauce is not the hyponym.

    I looked over several string similarity algorithms such as Levenshtein distance and Jaro-Winkler algorithm. Unfortunately, they seemed to be a bit sensitive to length of the string so as to produce a lower score. So I wonder if there is any solution for this or should I write a set of custom rules that takes position, substring etc. into account?

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

    [discussion] Modern REST API Architecture Resources and Best Practices

    Posted: 30 Dec 2019 03:11 PM PST

    Hello all! I am a recent college grad looking to learn more about Modern REST API Architecture outside of work and I would love to hear the thoughts of this community! I am going to design and build a very simple application in order to learn. I am thinking that it would be cool to have a basic web interface (probably a simple React app), a database, and then a simple API endpoint (probably utilizing the Django Rest Framework). The app will obviously have the ability to persist data to the database and also run some sort of simple task utilizing the data. My current understanding is that there are two approaches.

    Option 1: You lump it into one REST API Framework that handles all of this through various endpoints. Some endpoints can manipulate the database, others to run calculations, etc. My thought is that this is the "quick and dirty" way of doing it. One pro I see though is that the API is connected to the database and can easily get data for the user.

    Option 2: You have two REST APIs. One to manage the DB, and the other to run calculations. I imagine this is the best for scaling and it will be better in the long run in a more realistic situation. It seems to rely more on the web interface for passing data around which also has its pros and cons. Do you allow the two APIs to communicate or does this get tricky with user handling?

    I am very interested in everyone's opinions! Please feel free to share any resources you have personally found useful!

    Thank you!

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

    Is there any SQL based cloud service like Firebase DB?

    Posted: 30 Dec 2019 08:55 PM PST

    I am thinking of making an app with react native. And since I want it to be hybrid, I am looking for a database service that I can access anytime at my will like FirebaseDB. No-SQL is also fine but since I am willing to study more about SQL, is there any service like this?? Paid one is fine but is there any service like that for free as well? I want to know the broadly used SQL service when it comes to situations like this.

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

    Startup vs. Small/Medium Comapny

    Posted: 30 Dec 2019 08:24 PM PST

    Hello r/learnprogramming

    Just to give a short background about myself, I am a biology major stuck in a dead beat job at an allergy lab who decided to learn coding about 10 months ago. I was fortunate enough to land a junior implementation role at a small/medium accessibility company where I now work as a developer, making remediation to client websites.

    At this company, my job is basically to write small jQuery scripts that fix client websites (mostly on the html side & sometimes keyboard functionality etc according to ARIA standards). I'm beyond grateful that I was able to land this job so quickly and I've learned a lot about jQuery and the quirky bits of javascript and accessible technologies. Although I love working for the company, I really don't see myself writing snippets of jQuery for the rest of my life and I would really love to create things, things that I can call my own.

    I also was able to land a freelancing gig at a local start up around 7 months ago where I helped out with greenfield development, mostly implementing new ui plugins like validation plugins, calendar plugins, etc. It's super exciting work and it's definitely something that I want to do down the line. I've learned so much more at this place than my current company. They have been growing pretty steadily according to what I see from the outside and they have a lot of good clients. Also, through some connections in the industry, they were able to score a POTENTIAL silver(?) partnership with Microsoft. They are currently being evaluated and they told me they project that they will fully become partners in February or March

    Today, the startup that I've been freelancing for offered me a job. They said they want to hire me to become a full on developer at their company and I would be their first "employee". But there are some caveats:

    1. I'll be getting paid around 5 grand less with no health insurance

    2. They want to hire my LLC? (I'm not really sure what this means. What does this mean for my taxes?)

    My question is, is it worth it to abandon my salaried job and work for the startup? I see the potential in them and I know I would learn a ton and have a lot of fun, but it's scary to jump into a startup without any prior experience with one. What are your opinions on startups? And what does it mean if they want to hire me as a "company"?

    Thanks for reading!!

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

    Non-coder, want to get a basic grasp of functional programming, basically for fun. Language recommendations?

    Posted: 30 Dec 2019 04:36 PM PST

    For most of my life I understood programming though I never really used it, but got stumped as a young adult (20 years ago) when faced with two things: Pointers in C, and object oriented programming in general when I tried C++.

    I figured out pointers after a while. And OOP I figured out when I taught myself Python, for fun, about ten years ago.

    Well I'm getting that ten year itch I guess. I used to get royally confused when confronted with functional programming stuff back then, and now I'm wanting to grasp the idea. Again, this is basically "for fun." Just to know and understand. I don't have any particular project I'm trying to accomplish.

    So my request is for recommendations for a language that is amenable to this kind of dilattante outsider approach, that might help me grasp the concepts necessary for being able to follow and create functional programming code.

    Thanks in advance...

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

    Struggling with some questions on my course work..

    Posted: 30 Dec 2019 07:55 PM PST

    Show by calculation, the smallest value that can be represented, by a 10 bit digital to analog converter on a 0-10Vdc PLC analog input module.

    I'm not trying to get the answer I just need pointing in the direction of the correct calculation.

    Many Thanks

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

    [CSS] Make grid area transparent without making contents transparent?

    Posted: 30 Dec 2019 07:52 PM PST

    Hello. I have my site currently split into grid areas. I basically want one area to have no background (so essentially have buttons floating on the background image), but changing the opacity also changes the opacity of the buttons. How would I make it ignore the buttons?

    current html (relevant)

     <nav> <ul> <button>Sample1</button> <button>Sample2</button> <button>Sample3</button> <button>Sample4</button> <button>Sample5</button> </ul> </nav> 

    current css (relevant)

    nav{ opacity: 0.5; grid-area: nav; background-color: lightgreen; } ul{ display: flex; flex-direction: row; align-content: center; justify-content: space-around; } button{ font-size: 30px; background-color:white; border: none; color: black; text-align: center; border-radius: 12px; padding: 5px; } 
    submitted by /u/NotABurner2000
    [link] [comments]

    No comments:

    Post a Comment