• Breaking News

    Sunday, June 23, 2019

    What have you been working on recently? [June 22, 2019] learn programming

    What have you been working on recently? [June 22, 2019] learn programming


    What have you been working on recently? [June 22, 2019]

    Posted: 22 Jun 2019 09:10 AM PDT

    What have you been working on recently? Feel free to share updates on projects you're working on, brag about any major milestones you've hit, grouse about a challenge you've ran into recently... Any sort of "progress report" is fair game!

    A few requests:

    1. If possible, include a link to your source code when sharing a project update. That way, others can learn from your work!

    2. If you've shared something, try commenting on at least one other update -- ask a question, give feedback, compliment something cool... We encourage discussion!

    3. If you don't consider yourself to be a beginner, include about how many years of experience you have.

    This thread will remained stickied over the weekend. Link to past threads here.

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

    Why is javaScript one of the only popular languages that doesn't make sense to me but all other popular languages I can comprehend pretty well ?

    Posted: 22 Jun 2019 03:09 PM PDT

    This is kind of an odd question. I am sort of a beginner, not really. I've been programming for two years now, mostly in C/Java/Python. I can read/write C , Java, C#, C++, Python pretty well but although I have taken free javaScript classes online and such, I still have trouble understanding jS code and the syntax is so bizarre to me. There are so many libraries like jQuery and such and I just feel that jS is the only language I can't fully understand. I can never see myself working a job that is all in jS. When I click inspect on Google Chrome and I look a the <script>...</script> , it looks like crazy alien language even though I have taken several free jS classes like on freecodecamp and such.

    Why am I so intimidated of jS and why does it look so complicated while I feel comfortable with other languages ?

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

    Struggling with learning how to learn and time management - Help Appreciated!

    Posted: 22 Jun 2019 12:52 PM PDT

    Hey there r/learnprogramming! I'm having a bit of an issue regarding time efficiency and understanding how to learn. I'd really appreciate some insight on this as a novice programmer.

    I've been learning C# for the past month weeks or so, on average 3-5 hours a given day. Granted not all of that time would be spent typing actual code: I try to take breaks when I can, attempt to pseudocode before I type, etc. All of this has been serving me well as a beginner. But now that I'm approaching intermediate topics such as threading, relational databases, async / await, etc. - My current approach hasn't been serving me well at all. I'm finding it difficult to really comprehend the topics that I'm reading, as well as applying those programming principles firsthand.

    Thinking about my approach makes me feel like:

    • I'm most likely biting more than I can chew and I should narrow down my focus to one of these advanced programming concepts / principles at a time
    • I'm trying to process too much on the concept in one given sitting and should try to take better notes / use rigid time management techniques such as Pomodoro to improve my memory retention and make things feel less in one ear / out the other.

    My questions are this: Do my own suggestions on how to improve my approach sound well? Is there anything else I should be mindful of?

    I've been trying to put a lot of time into programming as it's something that I really enjoy but I do want to make sure that I'm steadily learning and improving instead of cycling through the same concepts over and over. I'd really appreciate some help with understanding how to learn. I appreciate any tips given - thanks for taking the time to read this.

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

    What are some hacking forums where a lot of programming (C/C++/Python/Assembly) related tutorials can be found?

    Posted: 22 Jun 2019 12:18 PM PDT

    I visited quite a few sites where exceptional and interesting programming tutorials were posted. I just forgot the forum names. Apart from normal websites ,I found some tutorials posted on those forums more fascinating and not easy to find via google search. Certainly those were not beginners tutorials

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

    Best language to create a raspberry pi program?

    Posted: 22 Jun 2019 05:06 PM PDT

    Basically this summer it's my goal to create a program that I can run on my raspberry pi. For those not familiar a raspberry pi runs on a Linux operating system.

    If it helps, I would like to create my own Magic Mirror type program. It would display the time, date, weather, and maybe a calendar system I can edit.

    My question is what program is the easiest to do this in? I'm not worried about the amount of time it takes to learn. I wouldn't even be worried if it took longer than the end of summer. Just want to crate my own project from the ground up.

    Thanks!

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

    Can you explain cache to a newbie.

    Posted: 22 Jun 2019 09:25 AM PDT

    Any sources would be appreciated, thank you.

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

    Undercode a new free resources platform to learn how to code.

    Posted: 22 Jun 2019 11:52 PM PDT

    Hi guys, I do have the pleasure to present a new free resource platform to learn how to code! www.undercode.org

    Our vision to make everyone able to learn it's getting some form, we do partner some organizations in Africa, but our main goal is to reach the whole WORLD and make it a better place with more knowledge!

    Let us know what you think about the project and feel free to participate in it! It is an open source one! https://github.com/undercodeorg/v.1.0

    Thank you,

    Rui Neves Founder - Developer www.undercode.org

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

    How to start fresh — various Python versions confusingly scattered throughout MacOS — Want to uninstall them all and relearn the right way

    Posted: 22 Jun 2019 11:49 AM PDT

    I guess you could say I got ahead of myself when I decided I wanted to learn python. I haphazardly installed versions of python it seems in the wrong places and would become frustrated when looking online for tutorials and not being able to follow along because of my obscure installation I believe. It has become rather convoluted and I would like to start fresh. What is the recommended way to do so?

    TDLR: I got too excited about learning python before I knew how to do anything and I made a mess. Need help starting fresh

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

    What's your '30 second elevator pitch' if you had to convince someone to learn programming?

    Posted: 22 Jun 2019 09:05 PM PDT

    Usually when I read about why programming is useful it's always high level stuff, like...

    • more job opportunities
    • good to know even if you don't code professionally
    • etc

    What are some more unique and specific things you would say to someone if you had to convince them in 30 seconds or less?

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

    Python/Django - Best way to detect which person clicked a button on my web app?

    Posted: 22 Jun 2019 01:50 PM PDT

    I have a web app where a user will query a database and get back a list of results, then each results has its own button that they can click on. This button only makes a GET request, it doesn't modify anything in the database. What happens is, when they click on the button it submits a form via GET request to the server (I utilized a form so I could get the server to know about which button was clicked). Then the server sees, for example, that button A was pressed, and it routes to a function I wrote that performs an HTTP GET request to a third-party website. Nothing is returned back to the user. The user just wants to make some action happen on a third-party website, and when they click the button it essentially tells the server to make that task happen.

    I would like to keep track of WHO presses the button and at what time. This web app will only be hosted on my LAN and there might be 40 different users on it. What is the best way to do this? Should I just log whenever the button is pressed, but then how do I identify who did it? Should I create a log-in system where people create a username and password, then it should be easy to identify which user clicked the button at what time, but I would prefer something easier. Is there any way to get the IP of the person who clicked on the button, and/or any more info about that computer? Is this a job for something like django-tracker?

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

    I Built a Javascript Interview Simulator

    Posted: 22 Jun 2019 06:47 PM PDT

    Inspired by thepminterview.com, I built a Javascript Interview Simulator that covers most of the common questions you'll get in Frontend/JS interviews. I really wanted a prep tool for myself that I could run through in an hour or two, and feel really good going into Javascript interviews.

    Let me know what you think by trying it out here!

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

    [Python3 + General Network Knowledge] Need help and provide thoughts for my custom "LITH" Proxy Handler!

    Posted: 22 Jun 2019 04:58 PM PDT

    Hello there reader!
    Long story short, I created a 100% Python3 script which involves using API retrieved HTTP/HTTPS/Socks4/Socks5 IP's & Ports, to which my program can select the country, protocol and anonimity level (transparent,anonymous,elite) and bind it in to a local ip (e.g. localhost or 127.0.0.1) so I can forward any program to use that proxy. I "create" the connections using my own custom written engine, which makes this all happen (in total there are 2 .py files: Interface (CLI) and Engine). The engine is (you could say) wrapped "PProxy" library, to which I just enter my choices e.g. "GB" (United Kingdom/Great Britain) or "PL" and use those servers; The engine then connects to the API and fetches the proxies using my given settings and scans them, to see which IP of them are alive and ready, then i parse all the working IP's to PProxy and start the service. Everything works fine, and I can go as as far as changing browser's IP up to as fast as 3 seconds.

    Sidenotes:

    *The Server uses "Round Robin" technique incase one of the proxy's connection suddenly drops, so it grabs the second one in the list, then another one, etc. and once it reaches the end, starts from the begging of list or I can choose to rescan from API (I have a long proxy list, updated very oftenly).

    *PProxy is capable of using "tunneling", i.e. i can create a multiple proxy network, which would connect to proxy1 then forward traffic to proxy2 and so on (bandwith is the limit killer.. :D)
    *Recently I have done some reading on SSHTunneling, and from what i can find is that it is secure?
    *I have also read comparisons to using Proxy vs VPN, and the fact that VPN is system wide, i could do with proxy, however, the VPN uses encrypted networks and you know that they are not "sniffing/logging" (I know, there have been recent news of FBI gaining data from popular VPN providers) and the proxy you don't even know what they can do, I mean they can modify the content for websites, extract cookies, login details from forms etc EVEN in HTTPS:// websites.
    *I saw that you can buy proxies, which would be safer i guess, however, this is a free, "whenever possible" project that I'd use for my own purposes, or "Educational".

    • My question is, is it possible to make it more secure for the user to use it?
    • From what I read for SSHTunneling, if I would create a client and a server tunnel (both locally) and then forward it to proxies would it work, or use some special SSH proxies?
    • And Also, does proxy->proxy->proxy (like TOR does) makes it more secure? I get it, you bounce countries and stuff, but can they not be sniffed on, and...? I know it uses multiple layers "per se" proxy, is it possible to do the same in my "powers and knowledge", or would it require some framework built (some special-programmed nodes)?

    ++ If anyone wants to employ me, hit me up, im broke and have good python3 skills :x (Spent on this project 24hours, everything is already working with huge scalability :) )

    Legit thank you for making through this post, you deserve a karma point!

    - Any help towards making this more "better" are highly appreciated!!
    -I could supply parts of the code in case it would help (not whole of it *insert lenny face*, cuz you know, mine?)

    THANKS!

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

    Find the peak

    Posted: 22 Jun 2019 03:20 PM PDT

    The required time complexity should be log. So, It is certain that we need to use BS. But, Its not sorted at all. What modification do I do.

    link: https://www.codepark.in/question/view/Find-the-Peak-E8qOXbElLm/QBnkZXbqW3

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

    Python - Is it possible to create an ever expanding dictionary with lists as values with keys and values based on user input?

    Posted: 23 Jun 2019 12:01 AM PDT

    The reason so is because I am creating an item/ stock program interface where the user input an id number and the information of it comes out. I would like to use the get function to retrieve the values inside as a list from the user input to however I can't seem to find tutorials on Google that show how to create a dictionary with lists as values and on how to update the lists in the dictionary I plan to use an id number as well to show the different items in stock. Is there a better way to implement this?

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

    Violent Python - good for a beginner?

    Posted: 22 Jun 2019 04:29 PM PDT

    I want to get into cyber security, but I have pretty bad ADHD and all my previous attempts to learn Python have failed. LPTHW was okay but I still feel like I know nothing. Is it okay for a beginner? I'm trying to be far more intensive in my learning.

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

    Can someone point me in the right direction? Want to play a prank on a friend.

    Posted: 22 Jun 2019 04:28 PM PDT

    Okay, so I've got this idea for a fun, harmless prank. In the process, I'll also learn more about programming!

    I want to write a program which does the following:

    Operating System: Windows 10 only

    Effects:

    1. When the program is loaded, everything appears as normal.
    2. If the program notices that SHIFT+F10 key is pressed, the mouse pointer will become inverted (moving the mouse up moves the pointer on the screen down, moving the mouse left moves the pointer on the screen right, and so forth)
    3. If the SHIFT+F10 key is pressed again, the mouse pointer will no longer be inverted
    4. The program should remember whether the mouse pointer is inverted on system restart

    I'm just wondering what the best way to write this would be? Should I write a windows service? Maybe a device driver?

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

    What is the difference between these two pieces of code[Python]

    Posted: 22 Jun 2019 11:58 PM PDT

    1.

    while True:

    print('Please type your name')

    name=input()

    if name== 'client name':

    break

    print('Thank you!')

    2.

    name=''

    while name!= 'client name':

    print('Please enter your name')

    name=input()

    print('Thank you!')

    I tried to figure out the difference but I think they do the same thing; However, will one be more beneficial than the other in certain situations?

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

    Maybe a weird questions, but are there podcast about programming?

    Posted: 22 Jun 2019 11:52 PM PDT

    It will be better if it is on the concepts and theory of programming or algorithm.

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

    Good books that don’t involve code

    Posted: 22 Jun 2019 11:17 PM PDT

    Are there any good books that don't actually involve code? Looking for something to read while in bed at night that involves programming or computers.

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

    Uploading windows form app on github

    Posted: 22 Jun 2019 11:10 PM PDT

    Hello! I just started learning about github today so I made a new repository for a simple typing game I made on windows form app. I was hoping someone could see and make sure I did it correctly.

    Thanks.

    https://github.com/Yummy275/Simple-typing-game

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

    Python IF-THEN Loop with Functions

    Posted: 22 Jun 2019 11:02 PM PDT

    I created this program for a course I am taking. We were asked to create a program with two functions like below, but include an if-then loop for each function.

    I put my loop in my functions because that's the only way I could get it to work. I got a zero for the if-then loop part.

    What's wrong with my if-then loops? They look just like our instructor showed us and the program ran flawlessly.

    #Define payroll function

    def payroll():

    \#Payroll calculations hours = float(input("Enter number of hours: ")) rate = float(input("Enter hourly rate: ")) amount = hours \* rate 

    \#Print values print ("Hours worked:", hours) print ("Rate:", rate) print ("Pay amount:", amount) 

    \#Decision loop print("Would you like another calculation?") answer = input() if answer == "yes": payroll() #Call payroll function else: mileage() #Call mileage function 

    #Define mileage function

    def mileage():

    \#MPG calculations miles = float(input("Enter number of miles: ")) gas = float(input("Enter gallons of gas: ")) mpg = miles / gas 

    \#Print values print ("Miles:", miles) print ("Gas:", gas) print ("MPG:", mpg) 

    \#Decision loop print("Would you like another calculation?") answer = input() if answer == "yes": mileage() #Call mileage function else: input("Press ENTER to exit") #End 

    #Call payroll function to begin program

    payroll()

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

    I want to learn programming but I feel so intimidated on the amount of things that I need to learn.

    Posted: 22 Jun 2019 10:56 PM PDT

    I want to pursue a career in programming but I have a little very knowledge about it. Where should I start?

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

    How can I create a navigation menu with the background as an image?

    Posted: 22 Jun 2019 04:53 PM PDT

    Hey everyone! So I've recently started learning CSS and HTML and I am currently working on a website. So I want to have a navigation bar with the background as an image. The problem is that when I open it in my browser, it doesn't display the image I've selected for some reason. I have checked that the image is in the same folder as the code docs and that the path is correct. Here is what I wrote for the CSS code:

    .background_image_ourstory { /* The image used */ background-image: url("img.jpg"); height: 100%; /* Center and scale the image nicely */ background-position: center; background-repeat: no-repeat; background-size: cover; /* Needed to position the navbar */ position: relative; } .container { position: absolute; margin: 20px; width: auto; } .topnavigation { overflow: hidden; } 

    Here is the HTML code:

    <div class="background_image_ourstory"> <div class="container"> <div class="topnavigation"> <a href="index.html">Home</a> <a href="Something.html">Something</a> <a href="Something.html">Something</a> <a href="Something.html">Something</a> <a href="Something.html">Something</a> </div> </div> </div> 
    submitted by /u/akoap19
    [link] [comments]

    Free introductory NumPy course

    Posted: 22 Jun 2019 08:23 AM PDT

    Hey everyone! I have just finished recording my first ever video course on python! It's pretty short and to the point, it explains the basics of numpy. You can watch it for free on youtube:

    https://www.youtube.com/playlist?list=PLgD4pxCw18sGrtp9RHGdKRpWf9yCvEnVj

    If people will like these videos, I will record more parts for this course - explaining stuff like pandas, matplotlib, scikit-learn. If you'll enjoy this course - subscribe to the channel to receive the updates.

    I hope you will find it useful! If you have any constructive feedback - please share it with me. I'm new to making videos, and I want to get better at this.

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

    Summary API

    Posted: 22 Jun 2019 10:32 PM PDT

    Does anyone know any free summary API's that can be used with Android App development? I'm using SMMRY but the 10sec delay is really annoying.

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

    No comments:

    Post a Comment