• Breaking News

    Wednesday, September 9, 2020

    Can I use Udemy projects as a portfolio to land a job? learn programming

    Can I use Udemy projects as a portfolio to land a job? learn programming


    Can I use Udemy projects as a portfolio to land a job?

    Posted: 08 Sep 2020 07:02 PM PDT

    Can I use the projects I made on a programming Udemy course as part of a portfolio to get a job, or are those frowned upon?

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

    Motivating myself to learn the maths...

    Posted: 08 Sep 2020 05:45 AM PDT

    Hi all, have been learning programming in python on and off for about a year or two now. Know the fundamentals was looking for an area to properly delve into. Machine learning looks like one of the most interesting topics but when I see how much math your need to know before getting into it I feel like it would take years to even get properly started.

    I was recommended the MIT multi variable calculus lectures to start with and realised I remember nothing from high school, went back to the single variable calculus videos and that in itself looks like it will take months and months to get through.

    Has anyone been in a similar situation and tried to learn the math from scratch? Am I being too optimistic for someone who programs as a hobby and should focus on another area instead?

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

    Are there any live streamers who post videos of them making open source contributions?

    Posted: 08 Sep 2020 07:27 AM PDT

    I want to see the process first hand - how people go through a new codebase, figure out where to get started and all that. I know a decent amount of Python but I have never gotten started with open source and really want to

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

    Programming language for Raspberry Pi program

    Posted: 08 Sep 2020 09:51 PM PDT

    Hi. I'm trying to create a program to use as a display application for the Raspberry PI, giving me useful information such as weather, time, and possibly notes I can send from my main computer or my phone.

    Currently, I know Python, C++, and the basics of Dart. Right now, I'm struggling which programming language to code that application.

    • C++ is already off the table, as I've heard creating graphical applications, while can be useful for optimization, is also very difficult.
    • Python could be an option, as it is a general purpose language. However, I'm not too familiar with coding in Python GUI libraries such as TKinter or Qt.
    • Dart is something I was willing to learn awhile ago, as Google is currently developing the Flutter library for mobile devices and their Fuchsia OS. However, because Flutter isn't supported yet, this may not be a good option.

    What would be the best language to code a graphical application as described above? Are there other programming languages I should consider that could make creating Raspberry Pi applications more easy?

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

    Help in coding

    Posted: 08 Sep 2020 07:59 PM PDT

    Hi, Can someone help me with my programming? I was just told that we werent allowed to use matches and regex yet, and I do not know what coding that I should use to get the same result. Can someone suggest stuffs that I can use?(Should be just basic and if else stataments).

    Here is the condition: When a user enters a 3 digit number, the first digit must be 1 0r 9, the second digit must be 5-9, and the third must be 1-9. If the condition is met, "Valid" must be the output, if not "Invalid.

    https://pastebin.pl/view/1a5f12bb

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

    (SQL) better to insert and fail dupes or check and insert?

    Posted: 08 Sep 2020 11:00 PM PDT

    So i'm doing a personal project with Spring Boot and JPA/Hibernate. I don't have a user login system instead I'm using Discord OAuth. The problem is I want to log user data (username, email) so I can attach data to their account. So here's the question....

    Is it better to save a user object when a user logins and have the insert fail automatically through the database (it doesn't crash) because of duplicate primary keys- assuming they logged in before and not for the first time

    OR is it better to check if their record exists and then add it if they don't exist?

    The difference is that the latter logic is 2 queries (check if exist then insert) whereas insert is 1 query. Performance and code wise which is a better approach?

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

    Suggestions for OOP Javascript beginner projects

    Posted: 08 Sep 2020 07:56 PM PDT

    I just completed a Tic Tac Toe game as my first OOP project. Can someone suggest others of similar difficulty or at least what should a good OOP project consist of?

    Thanks,

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

    Learning data structures in C++ with a mostly-forgotten Java background

    Posted: 08 Sep 2020 08:44 PM PDT

    This may be a slightly specialized dilemma, but I have not been able to find any advice on the Internet. I took an introductory Java a year ago at community college, and have now started my first year at a university, where I am taking Data Structures in C++. So far, though, it's been difficult for me, mostly because I remember few of the programming concepts that were introduced in my Java class, and partially because of different syntax. Every CS friend I know went this route and did fine in the class, and I've been advised to continue on and make it through, but I don't know if that's the wisest idea with how much trouble I've been having.

    So TL;DR, my question is - would it be best to go back and take the prelim C++ programming concepts class? Or try to make my way through Data Structures? Thanks for any advice and points of view, it's truly appreciated :)

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

    Funny behavior processing cli arguments as strings in golang

    Posted: 08 Sep 2020 10:06 PM PDT

    Hello,

    I am trying to process a command line argument as a string in golang, but it behaves very weirdly if I don't explicitly cast the output as a string. Does anyone know whats going on here?

    Here is a sample snippet of code:

    package main import ( "fmt" "os" ) func main() { cliArg := os.Args[1] for i := len(cliArg)-1; i>=0; i-- { fmt.Println(cliArg[i]) } } 

    When I run that, I get this:

    $ go run place-numerical-values.go 4321 49 50 51 52 

    This however is not what I am looking for, I am looking to get this as an output:

    1 2 3 4 

    I can fix the code by doing this:

    package main import ( "fmt" "os" ) func main() { cliArg := os.Args[1] for i := len(cliArg)-1; i>=0; i-- { fmt.Println(string(cliArg[i])) } } 

    Now when I run the code I do indeed get my desired output:

    $ go run place-numerical-values.go 4321 1 2 3 4 

    So what gives here? If I understand it correctly, integers are un-iterable. I also understand that I need to explicitly declare the type of my variable so that I can process it correctly, but, why am I seemingly iterating over random values when I don't explicitly cast my cliArg variable's index as a string?

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

    What is a job of a backend dev and what tech does one need to be effective

    Posted: 08 Sep 2020 07:15 AM PDT

    I'm fluent in python but i wanted to go more into web dev career. I cannot think what is a job of the backend dev. Anyone pls help? If u could give some career advice as well. I'm quite lost to be honest.

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

    Looking for one or two people, who are in the process of learning Ruby/Rails, that are interested in working on a project!

    Posted: 08 Sep 2020 11:00 AM PDT

    Hello Everyone! I'm looking for some Ruby beginners(like myself) that are interested in working on this project with me. Project Description:

    • "Monster Shop" is a fictitious e-commerce platform where users can register to place items into a shopping cart and 'check out'. Users who work for a merchant can mark their items as 'fulfilled'; the last merchant to mark items in an order as 'fulfilled' will be able to get "shipped" by an admin. Each user role will have access to some or all CRUD functionality for application models.

      Some of the learning objectives from this project include:

    • Create routes for namespace routes

    • Implement partials to break a page into reusable components

    • Use Sessions to store information about a user and implement login/logout functionality

    • Use filters (e.g. before_action) in a Rails controller

    • Limit functionality to authorized users

    • Use BCrypt to hash user passwords before storing in the database

    • Use built-in ActiveRecord methods to join multiple tables of data, calculate statistics and build collections of data grouped by one or more attributes

    • Design and diagram a Database Schema

    • Write raw SQL queries (as a debugging tool for AR)

    If you're interested just DM! I'm planning to start the project this week :)

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

    Experience interviewing

    Posted: 08 Sep 2020 08:03 PM PDT

    For those of you that interviewed with FAANG and passed your interviews did you make any mistakes or get tips from the interviewer?

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

    Are my goals realistic or am I bullshitting myself?

    Posted: 08 Sep 2020 07:04 AM PDT

    Context:
    I have a history of bullshitting and fantasizing my life, so I want to know what you guys think about my goals since there is no option for me to fail again. From what I've been seeing these past weeks on this sub I think you guys are way smarter and have a better perspective, so feel free to spit some truth if needed.

    Currently I'm still learning HTML and CSS, I have no past experience related to coding. I do however have more than average knowledge of computers.

    I'm learning since 8 weeks ago, for 4 days a week, with a minimum of 4 hours a day. (Another reason that I'm doubting my goals is that JavaScript seems like the Mount Everest compared to HTML & CSS.)

    Questions:
    The first goal is to know the basics of HTML, CSS, Bootstrap 4, JavaScript and react by the end of May 2021. So I can start a internship at June 2021, and maybe? start working and earning money a few months after.

    Also, I'm 28, I know from myself that I'm not the smartest guy. that's why I start with the "basics". Will it still be possible for me to work myself towards maybe the gaming industry or mobile apps over the next 5 / 10 years? Even though I have 0 past experience and I will only get older? Learning other more compilicated languages might be a deal breaker in my situation?

    Thanks in advance guys, have a nice day

    edit: Thank you guys for your responses this sub is great! You guys say it's doable so it is up to me to put in (more) time and energy into it. I made notes of all your suggestions and will make sure to act on them. ex; starting now with building my portfolio site structure and layout, also start spending time into reading app/gaming/software structures just to get a better grasp of it. Next year I will post a update linking to this post for sure! Thanks again to all of you, I really do appreciate your time and effort and I will def check back to re-read advice.

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

    [C language] Printing Using Field Width and Precision Help!

    Posted: 08 Sep 2020 10:04 PM PDT

    I'm a beginner programmer learning C in Visual Studio. I only need help in formatting a table so that whatever values you put in the variables, the table doesn't fluctuate. The table should ALWAYS look like this (precise digit locations): https://imgur.com/ZPCtfaP But my table fluctuates like this: https://imgur.com/x08jeiC

    The code itself is fine, it's currently set up like it is in the correct post (if you put in those same values, the table will be formatted the same exact way, otherwise it won't), I just need help in using the correct precision integers and specifiers (if needed) in printing this table out correctly.

    code: https://gist.github.com/vfernandov/b56bd0d90f8419d1bb54c1c6bf4d7615

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

    Some really simple tips that I wish had occurred to me a lot sooner (mainly for those with only one monitor)

    Posted: 08 Sep 2020 09:05 AM PDT

    Hi everyone,

    There are a couple things I've been doing over the past few weeks that have really made a huge difference, and it probably would have increased my productivity and allowed me to learn quite a bit more quickly had I done these before.

    (I'm not sure how many people any of this will be news to, but given how simple it is and how much of a benefit it's given me, I figured it was worth a quick post.)

    The first is just splitting the screen when going through tutorials, documentation, or working with a separate file.

    On windows, hit the windows key + right or left arrow to dock something to either side of the screen. It will automatically take up half the screen. This is fantastic if you only have one monitor, and it's made an enormous difference for me compared to either trying to switch between windows or trying to manually resize them. (I'm sure you can do this on other operating systems as well, but I don't know the shortcuts.)

    Second, for anyone who's using a laptop connected to an external monitor, you can use your laptop screen as a second display. Just go to display settings and set it to "Extend these displays" under "Multiple displays".

    I'm sure a lot of people already know you can do this, but I knew how to do it, and it still didn't occur to me until a couple weeks ago to actually do it. I've been screwing around with autohotkey keyboard shortcuts to switch between my editor and browser for ages.

    I've really found the laptop as a second monitor useful for websites. Especially with something like CSS (which I have historically hated and dreaded having to use), having immediate feedback is invaluable. You can use something like Live Server in VS Code to automatically reload your site with every change, allowing you to see the output of what you're writing instantly.

    Anyway, I hope this helps somebody. Have fun!

    EDIT: u/I_Am_The_Cattle posted another idea below about creating multiple desktops. I just tried it, and this is fantastic too.

    To quickly create a new desktop: Ctrl + Win + D.

    To see all desktops: Win + Tab (you can delete or add them here)

    To move between them: Ctrl + Win + Left or Right Arrow

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

    Bootcamps

    Posted: 08 Sep 2020 09:35 PM PDT

    Hello Everybody!

    I am rather new to programming and considering to enroll in a bootcamp (web development) to speed up my re-branching process. Are there any that you recommend or advise to stay away from? I am based in EU and interested in an online bootcamp. (I suppose that with all the covid situation it shouldn't be an issue.)

    Thanks for your opinions!

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

    Syntax error when adding an entry to a database using sqlite3 and Python

    Posted: 08 Sep 2020 08:18 PM PDT

    I'm trying to learn the basics of using PRAW and sqlite3. I have set up a basic script that will monitor new comments made to a given subreddit and log the body of the comment in a database. The relevant code for my questions is:

    sql = 'UPDATE POSTS SET comment = "%s" WHERE id = "%s"' cur.execute(sql % (comment.body, comment.id)) 

    I'm running into an issue where the comments sometimes contain single or double quotes. When this happens, I get an error that says "Error: near "summary": syntax error". I suspect this is because I need to add something to my code to escape any problematic characters when adding them to the database. My question is: How do I do this?

    I've tried variations of:

    sql = ... comment = %s WHERE id = %s 

    and

    sql = ... comment = """%s""" WHERE id = "%s" 

    Neither seemed to work and Googling didn't turn up anything helpful.

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

    Retrieve magnetometer XYZ from 9-axis rotation vector expressed in quaternions

    Posted: 08 Sep 2020 11:56 PM PDT

    I have a sensor which fuses magnetometer, gyroscope, and accelerometer and gives me a rotation vector expressed as quaternions.

    Yaw (i.e. heading) is calculated by:

    -atan2((q0 * q1 + q2 * q3), ((q0 * q0 + q3 * q3) - 0.5f)) 

    The same calculation can be done with mag_x and mag_y:

    atan2(mag_y, mag_x). 

    This means that

    mag_y = q0 * q1 + q2 * q3 mag_x = (q0 * q0 + q3 * q3) - 0.5f 

    But how would I get mag_z? Is it possible?

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

    Parsing millions of rows of (messy) data with Python --- fastest way?

    Posted: 08 Sep 2020 08:07 PM PDT

    I've got a hefty data dump (~40gb) in a .txt file I'm trying to parse and put in a MySQL database. Normally it'd be easy to just do a LOAD DATA command but the way this data seemed to be formatted is that it's got almost all the information I need in a single field as a JSON object.

    I'm trying to figure out a way to parse the data in Python so that I can take what I need from the JSON and place it into a table in the quickest way possible, because I've got millions of rows to chug through. The JSON formatting is also not the most consistent, so I've got some keys missing or there are errant values that don't match the general pattern, which I'll need to account for when I'm pulling the data in.

    So far I've got a (probably very inefficient) method of pulling the JSON field from a table I imported it into, combing through and picking apart the data I need, and putting it into another table with INSERT commands. I know extended inserts exist, but since we're talking about millions of rows here I wasn't sure that would help a lot.

    Right now I've been thinking of writing all the entries to a .csv then loading that file directly into the DB. Would that be any faster? Is there an even faster solution? For pulling the data, is it quicker to pull it as rows from a table or should I be reading it from the original .txt file itself?

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

    Where can I find news and articles regarding cyber security?

    Posted: 08 Sep 2020 11:45 PM PDT

    Hi, this question isn't exactly about programming so please bare with me. I like to read tech related articles on websites like arstechnica, however, I'm looking for something that is specifically directed towards cyber security. I expect it to contain the latest happenings and some articles.

    If you have one in mind, please feel free to recommend it in the comment section. Much appreciated!

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

    Autoit Help

    Posted: 08 Sep 2020 07:57 PM PDT

    Hi guys, I am a total script noob. I gotten this script for a game that I am playing, and modified it to my needs. Basically to send some commands to the background window. This script works on my laptop, however, it only work partially on my friend's. Pressing 5 and 6 works, but 7, 8, 9 and 0 is not working. My friend has to press 7 or 8 multiple times, then the F5 to F10 command works, while I just have to press 7 once, and F5 to F10 is executed. Not sure what would be the problem here, would really appreciate any advice here. Thanks in advance!

    https://drive.google.com/file/d/1Hy6nNYWK9PZBr0bDYgaSpX3CyKRKI5b-/view?usp=sharing

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

    Degree or Self Learning?

    Posted: 08 Sep 2020 11:43 PM PDT

    Hi I am really looking forward to make my career in development and become developer. I come from basic knowledge of coding. I am confused at this stage where I can't make my mind if I want to get into university and do computing science program for 5-6 years (including co-op) or do self learning using online platforms? What does company look for when you apply for jobs? Degree or knowledge? Please advise. If you prefer self learning using online platform, please advise what platforms you recommend?

    Thanks

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

    Need carrier advice

    Posted: 08 Sep 2020 11:41 PM PDT

    Hey guys really need your career advice. I'm a mechanical engineer. I like it however there are 3 things that really suck

    1. I want to be able to work remotely which is extremely rare in my field.

    2. It's very very hard to get a job. I spent like 6 month actively looking until I got hired. Actively means 3-4+ hours a day spent on applying and talking to idiotic recruiters

    3. salary is kinda not as good unless you are a manager etc

    I'm thinking about changing my carrier towards IT. So I thought maybe there is a field that is related to mechanical engineering, something like robotics programming and at the same time it's in high demand and not very difficult to learn and could be a smooth transition. Any suggestions ? And if not what would be a good IT filed to get right now and what programming language to learn ?

    Sorry that I'm a little all over the place I'm a bit lost at this point

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

    Finding the smallest number when given 3; in C

    Posted: 08 Sep 2020 07:52 PM PDT

    Our assignment:

    Write a program that asks the user to enter three numbers. The program should print the smallest value, largest value, sum, average, and product of the numbers in that order.

    To find the smallest number using the examples of single-selection if statements in Chapter 2 (please use only single-selection if statements without logical and or or operators, and do not use nested if statements), you can use this logic:

    • declare a variable named smallest
    • set the smallest variable equal to the first integer
    • if the second integer is less than the smallest variable, set the smallest variable equal to the second integer
    • if the third integer is less than the smallest variable, set the smallest variable equal to the third integer
    • in the output statement for the smallest value, display the smallest variable

    I wrote a program that looked a little like this:

    if (firstNumber <= secondNumber && firstNumber <= thirdNumber) { printf("The smallest number is: \t %d \n", firstNumber); } 

    before reading the directions. . . I was about to turn it in when I glanced and saw that he does not want us using && statements at all.

    Am I crazy?

    I have no idea how to compare three numbers without using && statements. He wants me to set the smallest number to firstNumber and then compare the other two to that, but how can I do that and not get multiple print statements?

    Any advice is appreciated greatly. I should have read the directions first, but it seemed so simple when I could compare them in the same statement.

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

    No comments:

    Post a Comment