• Breaking News

    Friday, November 22, 2019

    I made an in-depth guide for going from self-taught to being hired as a developer learn programming

    I made an in-depth guide for going from self-taught to being hired as a developer learn programming


    I made an in-depth guide for going from self-taught to being hired as a developer

    Posted: 21 Nov 2019 02:31 PM PST

    At one point I was a self-taught programmer, and now I've gone through the ringer. I really wanted to put together a video where I explain as much as possible about how to get from step 0 all the way up to getting hired as a programmer. The following are some of the questions that I answer and points that are made:

    1. How to figure out what to apply for?

    2. When do I know I'm ready for a programming job?

    3. Contribute on GitHub

    4. Have a LinkedIn profile

    5. If you have absolutely no tech-related job experience, first find a job in a tech related field. This way you can get something more relevant on your resume, and while you work there you can use opportunities to put your programming skills to use. Include that in your resume.

    6. Build a solid resume that shows that you're passionate about your work.

    7. Be prepared to move if necessary (even if it's temporary).

    8. Continue to work hard after you do get hired.

    I go in-depth on these points in the video

    Here it is!

    I want to re-iterate that this isn't the only path. This is just the path I took, and the path that I know many others have taken to get there.

    I realize I might have missed something. If so, please feel free to start a discussion on it.

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

    Has anyone here automated their entire job?

    Posted: 21 Nov 2019 05:06 PM PST

    I've read horror stories of people writing a single script that caused a department of 20 people to be let go. In a more positive context, I'm on my way to automating my entire job, which seems to be the push my boss needed to allow me to transition from my current role to a junior developer (I've only been here for 2 months, and now that I've learned the business, he's letting me do this to prove my knowledge), since my job, that can take 3 days at a time, will be done in 30 minutes or so each day. I'm super excited, and I just want to keep the excitement going by asking if anyone here has automated their entire job? What tasks did you automate? How long did it take you?

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

    I want to create my own cloud storage server. How do I do that?

    Posted: 21 Nov 2019 02:44 PM PST

    Pretty much what the title says. I'd like to create my own home server where I can store my files. I want to be able to send and retrieve files from anywhere, probably via command line on my laptop, and maybe later a mobile app.

    I know a little bit about some of the technologies that I could use, but I was hoping someone here could elaborate on them, or at least point me toward some educational resources. I suspect (but don't know for sure) that this will require me to learn/use:

    • FTP
    • TCP
    • curl
    • SSH/SCP
    • Port-forwarding a server

    I have a rough understanding of what most of those technologies do, but I've never actually used them, or at least not extensively. I'm going to write this in either Rust or Go, as those are the languages I am most familiar with, so I'll be looking into some of the networking libraries offered by those languages. Right now, my biggest concern is understanding the details of how to implement something like this.

    EDIT: Just to be clear, I am not looking to use any pre-made cloud storage service/product. I'm sure they're all great, but I am doing this for educational purposes, so I want to learn how to make my own from scratch.

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

    The "break" and "continue" instructions

    Posted: 21 Nov 2019 01:24 PM PST

    My teacher says these instructions should be forbidden in loops, but a lot of times they can make the code more efficient, or at least more readable

    Don't misunderstand me, I know that break is often used improperly and abused, but my teacher firmly thinks that these shouldn't be used in ANY way, in his/her opinion it's better to write nested and redundant loops instead of using one of these instructions.

    What do you think about it? Am I wrong?

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

    8 Steps to acing your next system design interview

    Posted: 21 Nov 2019 08:43 PM PST

    How to ace a system design interview: A step by step guide

    Step 0: Get good

    Step 1: Define the key assumptions about the system

    Step 2: Define the key features

    Step 3: Define the scale

    Step 4: Define the data model

    Step 5: Design the high-level system

    Step 6: Look for bottlenecks

    Step 7: Go in-depth on the subsystem you know well

    Step 8: Acknowledge the trade-offs

    Source (In case you want to read in-depth): 8 Steps to acing your next system design interview

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

    Help! We are making a GPS app for Senior Project

    Posted: 21 Nov 2019 01:02 PM PST

    Hi guys, we're making a GPS application for Senior Project. The idea is to make it so we can allow students on our campus to navigate via walkways and other paths to their desired classroom. Once they reach the building we want to navigate them through the building via some sort of indoor device tracking and navigation. We've been stuck trying to figure out the best way to go about it. At first we tried to use the Mapbox SDK to build it, but the problem is our professor would like us to use our own algorithms and functions to do navigation. We also would like to use a custom map as opposed to using the Google Map since there are technically no routes within the school itself, only the roads around the school. We ended up starting again from scratch and are trying to use a grid, an image of a custom map of school, and then we want to somehow connect to a device and track its location and navigate the user to a room inside of a building. Any tips or advice? Thanks for any help! Please keep in mind our group consists of okay programmers who have mostly coded in C++ and have never really touched any other languages. If you can dumb it down that would be greatly appreciated.

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

    [SQL] Getting zero value results from query using PERCENT_RANK()

    Posted: 21 Nov 2019 10:14 PM PST

    I'm trying to learn the PERCENT_RANK() function in SQL. I created a small table called "transactions" and inserted a few records into it in order to apply a PERCENT_RANK() query on it and observe the results. However, I'm getting all zeros in the query result, and I don't understand why. This is my query:

    SELECT transaction_id, patron_id, book_id, transaction_date, price, PERCENT_RANK() OVER (PARTITION BY transaction_id ORDER BY price DESC) AS PERCENT_RANK_QUERY FROM transactions; 

    In the PERCENT_RANK_QUERY, all the values show up as 0. I would love some help in understanding what's missing from the query.

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

    The Reason Why People Cant Get A Programming Job.

    Posted: 21 Nov 2019 05:10 PM PST

    A lot of people will ask questions like, when am I good enough to be hired? Or when am I considered a good programmer? I've heard from a lot of comp-sci majors saying, ohh college is BS because I cant get a job right after college. The reason why I find all of these questions so odd, and why the statement "I cant get a job" so funny is simple really. Why would a company hire you for your education? If i'm hiring people I don't care if you graduated top of your class from an ivy league school. Sure i'll look at you and your resume, but if it doesn't include this extremely simple thing, then I wont hire you. That simple thing happens to be proof that you can do the work that I want done within a reasonable amount of time. College education as a whole is BS, however what people who say stuff like that don't tell you is it's the experience that matters. The experience of seeing a bunch of people doing productive things, and then comparing yourself to those people and working harder to place yourself higher. Companies don't care about your A, they care about how you got there and transcripts wont show that. The only thing transcripts are good for is showing commitment to something and with a 3.0 and a degree or even a high school diploma, you've basically shown that you can do that reasonably well. Do you want to know what will show how you got to that transcript or how you got that degree, or even why a company should hire you? Make a few projects that show that you can do something related to what a company is doing, or wants to do in the near future. This doesn't just apply to programming but every job possible. Pretty much every company out there is actively publishing news about what it is they are doing or want to do, you don't even need to do detective work. If you want to work at tesla, show that you can make a little toy car that can drive itself. If you want to work at a stock trading company, show that you can trade with a portfolio of current stats and how you got there. If you want to become a lifeguard get the certification that shows that you can save lives. Master this, and any job that involves the making or doing of something to make money, (Not so much jobs about regulating policy, these are mostly gotten through relationships to others) is yours within the week or however long the interview process is.

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

    Adding Days Code (Finding Future Date)

    Posted: 21 Nov 2019 03:25 PM PST

    I have this code where someone inputs a date and a number to get the future date. For example, as today is November 21, 2019, the 68 days from today will be January 28, 2020.

    I am having trouble getting my code to go past the December. After December 30, 2019, my code will not work anymore. I am getting an array out of bounds error. How can I fix this problem?

    Also, I have to take into account leap years. I'm not really sure how to go about this. Can anyone offer me some suggestions? Thank you for your help.

    This is my code:

    public class FutureDate { private static final int[] DATES = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; private int month; private int year; private int day; //I have a constructor here public Date future(int numDays) { day = day + numDays; year = year + numDays/365; int i = month; while (day - DATES[month - 1] >= 0) { day = (day - DATES[month - i]) + 1; month = month + 1; if(day <0) { //To make the day always positive day = day*-1; } if (i == 11) { //I'm trying to loop through the array again. i = 0; } } return new Date(month, day, year); } 
    submitted by /u/Everything_is_gone_
    [link] [comments]

    Analyzing text and word frequency in python

    Posted: 21 Nov 2019 03:17 PM PST

    I'm trying to write this 7-step code for a class and my classmates and I are really struggling. I've tried to chip away at it a tiny bit, but I feel lost. My TA's and teachers refuse to help any of us as well. If anyone could give some insight, I'd appreciate it. Please help, I just need to pass this class; everyone is failing and I've already had to switch to pass/fail. Thanks!

    #Problem 1: add - from string import punctuation from string import punctuation """Problem 2: A function named getData should take as a parameter, a filename. The function should open the file, read it, and return a list in which each list element is a line of the original file. """ def getData(filename): # takes a filename as input # reads the file and # returns a list where each element is a line from the file bible = open(filename).readlines() return(bible) """Problem 3: A function named normalize that takes as input, the list of sentences created by getData. It should lowercase all characters in those sentences, remove punctuation from those sentences and then return a list of normalized sentences. """ def normalize(textList): punctTable = (str.maketrans('', '', string.punctuation)) normalizedText = textList for line in normalizedText: line.strip() line.lower() line.translate(punctTable) return normalizedText """Problem 4: The function countWords should take as input the list created by normalize. It should count and save the frequencies of every word in the text. That means that you will need to process the text one sentence at a time, but you will be keeping a count (or the frequency) of occurrence for each unique word in the entire text (not a count per sentence). countWords should return a dictionary of term frequencies. """ def countWords(): wordlist = normalize(textList).split() wordfreq = [] for word in wordlist: wordfreq.append(wordlist.count(word)) print("String\n" + wordstring +"\n") print("List\n" + str(wordlist) + "\n") print("Frequencies\n" + str(wordfreq) + "\n") print("Pairs\n" + str(list(zip(wordlist, wordfreq)))) frequencies = dict() d = {1:'one', 2:'one', 3:'two'} c = Counter(d.values()) Counter(words).most_common(10) """Problem 5: Write a function called getTop, that takes as input, the dictionary created by countWords. getTop should find the 15 most frequent terms and return a list of tuples where each tuple contains a top15 word and its frequency.""" def getTop(): words = getData(filename) Counter(words).most_common(10) """Problem 6 Write a function displayData, that takes as input the list of tuples of the 10 most frequent terms and their frequencies and prints those terms and frequencies with the following format: """ #Term Frequency #Word1 255 #Word2 105 def displayData(): """Problem 7: Write a main function that invokes functions 1-5 to read the input text data, process it, and print the top 10 most frequent terms. """ def main(): filename = input("What file would you like to open?") filename = str(filename) 
    submitted by /u/New-Car
    [link] [comments]

    Python Text Analysis Word Count Broken

    Posted: 21 Nov 2019 06:03 PM PST

    Hello, this program is supposed to take a text file of the bible and return the top 10 words. As you can see, I haven't began the final function on the one before it , getTop, is not working.

    Here is the current output:

    What file do you want to open?bibleSentences.txt ["('a',", "5144),('aa',", "1),('aaadbacabcfefbcfef',", "1),('aaadbbcba',", "1),('aaaeddbadc',"] 

    Which clearly aren't the most frequent words. Any advice or help appreciated - I am at a lose as to how it is broken yet still somewhat doing the job. Novice here - thank you!

    import sys import string from string import punctuation from collections import Counter import unicodedata import collections def getData(filename): # takes a filename as input yes # reads the file and bibleList = open(filename).readlines() return(bibleList) def normalize(getData): # takes a list of lines (like that created by getData()) # normalizes each line by lowercasing all characters # removing punctuation before = getData stringBible = ''.join(before) # make into string to trans stringBibleNoPunc = "" #setting it up for i in stringBible: #eveyrthing if i not in string.punctuation: #making sure to get rid of it stringBibleNoPunc = stringBibleNoPunc + i stringBibleNoPunc = stringBibleNoPunc.lower() return(stringBibleNoPunc) def countWords(normalize): bible_words = normalize.split() # Initializing Dictionary d = {} # counting number of times each word comes up in list of words (in dictionary) for word in bible_words: d[word] = d.get(word, 0) + 1 word_freq = [] for key, value in d.items(): #trying to count frequency word_freq.append((key, value)) word_freq.sort(reverse=False) return(word_freq) def getTop(countWords): # take as input, a dictionary containing term frequencies # create a list of the form [(term, frequency1), ...] # which contains those 10 terms and their frequencies # return this list wordDict = countWords stringBibleForCount = ','.join(str(v) for v in wordDict) # stringBible = ''.join(wordDict) counts = collections.Counter(stringBibleForCount.split()) #return [elem for elem, _ in sorted(counts.most_common(),key=lambda x:(-x[1], x[0]))[:5]] print([elem for elem, _ in counts.most_common(5)]) #print(type(wordDict)) #def displayData(): # takes as input, a list of top 10 words and their # frequencies (like that returned by getTop()) # prints each term with it's freqency on # a separate line. Output should mirror the # example in the assignment description # Write your code below def main(): # create a variable to store the input filename filename = input("What file do you want to open?") filename = str(filename) #getData(filename) #normalize(getData(filename)) # countWords(normalize(getData)) getTop(countWords(normalize(getData(filename)))) #filename = 'bibleSentences.txt' # read the file and process it # print out a table of top 10 term/frequency main() 
    submitted by /u/codingmodelgirl
    [link] [comments]

    How to prepare for software engineer interviews?

    Posted: 21 Nov 2019 11:58 PM PST

    Hello,

    I'm quite new to programming, but I really want to make a living out of it.

    I've read that the interviews at big tech companies are quite tough. I've seen some examples on YouTube, etc. but how do you really prepare for those interviews?

    Is there any platform or academy that helps you preparing for the interviews?

    Thanks!

    submitted by /u/Free-_-Yourself
    [link] [comments]

    -Help- C++ replacing numbers.

    Posted: 21 Nov 2019 03:14 PM PST

    I am working on an assignment for my c++ class and one of the parts requires me to replace all values of numbers that end in the number chosen by the user with -1. I'm having trouble finding some way to read the ending number of double digit numbers.

    Replacement code

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

    Best Website To Learn Web Development Online

    Posted: 21 Nov 2019 11:37 PM PST

    There are lot's of websites who provide the online courses on web development but it is very hard to select best of them when actually you want to join the course in any one of them to save your money and time both.

    I did a lot of research after enrol in most of them or by my friends and then prepare a top 7 best website to learn the web development online.

    You can find the link here

    Best website to learn web development

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

    Configuring Eclipse Build Command

    Posted: 21 Nov 2019 07:50 PM PST

    I'm trying to use a customized build command in Eclipse to compile my code. In my building configuration I have the build command set to the path of my custom compiler.

    The issue I'm having is the compiler looks for a main.cpp file in the build directory if another file is not specified. I'd like to be able to specify the file it should look at whenever I click build.

    If I were to build from command line within the build directory, my command would look like this

    /Path/To/Build -configFile XXX

    I want Eclipse to prompt me for what I want XXX to be so I can say main.cpp, main1.cpp, main2.cpp, etc. These aren't the actual file names just simple examples.

    Is there a way to do this?

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

    Just graduated High school and just started college, what's next?

    Posted: 21 Nov 2019 02:43 PM PST

    so I've graduated high school and right now I'm in community college getting my basics out of the way. I took comp sci classes all throughout high school and I know the basics of python, JavaScript, and HTML and CSS. this mostly what I learned in high school. however I want to learn more and gain some experience for myself so I can start out with a decent job later down the road. my high school comp sci teacher said I could start an online portfolio but he didn't exactly expand on it, so I am not entirely sure what that is or what it entails. I haven't gotten accepted into any internships. and I'd just like to know what all I can do to learn more. and what online resources would be helpful for me.

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

    Trying to find a good course for C++

    Posted: 21 Nov 2019 11:19 PM PST

    Hello there. I'm an undergraduate student in computer science and math and now I'm taking a C++ course at my university but I think that I don't take much from it. So I'm wondering if there are some good courses for C++ which cover all the stuff in this language. I've learned not too much about C++. The last thing that I did at university was inheritance. I'm less interested in books because for me it's very slow and boring. Also, you can advise any commercial courses I don't mind at all. Thank you for your attention. I will be pleased if you help me

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

    Extremely simple, bare bones script that automates connecting to LinkedIn profiles to build your network up. 26 lines of code!

    Posted: 21 Nov 2019 11:16 PM PST

    Project can be found here: https://github.com/samuelyapwoonpin/linkedin-connect

    Watch the bot in action: https://youtu.be/pnNrkWbGHjE

    Hey there guys, I am a 19 year old student currently studying Computer Engineering, and due to emotional issues during my 1st year, I suffered bad grades that has crippled my GPA (currently 2.24), in my 3rd year and graduating in 4 months.

    It is not simple for me to apply to internships / part-time jobs online, as many postings require you to state your grades, and as I stated previously my grades are not close at all to impressive.

    Fortunately, I picked up programming as a hobby about a year ago, and I have been in love ever since. Therefore I have now something to show: projects.

    My plan of attack is to directly reach out to recruiters of companies I want to apply to instead of solely relying on online applications. For recruiters not to simply ignore me, I have to build up a "network" to make it more attractive to recruiters. For example, a recruiter might be inclined to at least give my LinkedIn account a browse through or reply to my message if they see a 500+ connections label, instead of possibly just leaving my message on read if I had 6 connections.

    I have a built a bot to help me in this venture, and would like to share it with you all. I have built it as bare bones I can (easy to customize, 26 lines of code), made it simple to use (extensive documentation), and built it to not depend on hack-y methods such as guessing the location of certain buttons( for example this version uses guessing of button locations https://medium.com/@rohanchavan/automating-linkedin-connections-with-python-c28ddf91cf42 ). This script will 100% work every time as you provide an existing email and password (and follow certain instructions that have been stated explicitly.)

    This has been my first time using Selenium, and damn is it really fun to use. Do gain inspiration from this project and built better versions of this bot, or even if you want to submit a pull-request I greatly encourage you to do so.

    Feedback is greatly appreciated as well.

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

    Almost increasing sequence

    Posted: 21 Nov 2019 03:31 PM PST

    I'm stuck on this code challenge. I'm getting 16 of the 19 tests right but it's failing on some. I'll provide my code and an example where it fails.

    Given a sequence of integers as an array, determine whether it is possible to obtain a strictly increasing sequence by removing no more than one element from the array.

    def almostIncreasingSequence(sequence): if len(sequence) ==1: return True increasing = 0 for i in range(len(sequence)-1): if sequence[i]>=sequence[i+1]: increasing +=1 if increasing >1: return False else: return True 

    It's failing on such a test [1, 2, 3, 4, 5, 3, 5, 6]. I'm thinking of having to delete that element and iterate over a new array with that element removed. Any tips would be appreciate.

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

    Comparing 2 "pops" from the same stack JAVA

    Posted: 21 Nov 2019 01:03 PM PST

    package bigstacks;

    public class ArrayStack <T>

    {

    private final static int DCAP = 10;

    private T\[\] stack; private int top; public ArrayStack() { this(DCAP); }// End constructor //Creating a method for an empty array public ArrayStack(int sCap) { top = 0; stack=(T\[\])(new Object\[sCap\]); }//End ArrayStack //---------------------------------------------------- //checking methods: public boolean isFull() { if(stack.length == DCAP) { return true; } return false; }//End isFull public boolean isEmpty() { if(stack.length == 0) { return true; } return false; }// End isEmpty public int size() { return top; } //End checking methods //----------------------------------------------------------- //Begin array mutating methods public void push(T element) { if(size() == stack.length) stack\[top\] = element; top++; } //Maybe add expand capacity method //May need to not be void and "public T pop" public T pop() { 

    if(!isEmpty())

    top--;

    T result = stack[top];

    stack[top] = null;

    return result;

    }

    public T peek()

    {

    return stack[top-1];

    }

    }

    -----------------------------------------------------------------------------------------------------------------------

    import java.util.*; public class BigStacks { /** * @param args the command line arguments */ public static void main(String[] args) { Scanner s = new Scanner(System.in); int lenArr[]; lenArr = new int[10]; ArrayStack<String> stacks; stacks = new ArrayStack<>(10); stacks.push("("); stacks.push(")"); stacks.push("("); stacks.push(")"); stacks.push("("); stacks.push(")"); for(int i = 0; i > stacks.size(); i++) { if(stacks.pop() == "(" && stacks.pop() == ")") { i++; } i+=stacks.peek(); //System.out.println(i); } System.out.println(i); //System.out.println(stacks.toString()); //stacks = s.nextLine(); }//End main }//End class 

    Thanks for taking the time to read my code":

    Im wondering if its possible to compare two "pops" from the same stack:

    problem:

    We are checking to see if the brackets from the "pops" match:

    valid= ()

    valid (((

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

    What should I study in Python?

    Posted: 21 Nov 2019 10:03 PM PST

    Hello everybody.

    I worked as a CCNA (Networking) instructor for the past 8 years and I decided that it's time to grow, so I started to learn Python 2 months ago.

    I can write already some basic scripts, automate easy things. I even wrote a simple app with Python kivy and deployed it as APK file for android (pictures attached).

    My question is - What exactly do I need to study next? What libraries in python, what books should I read next, what to focus on in order to increase my chances to find a job in the States?

    I'm just lost cause I see too much stuff on the internet and it's impossible to learn everything.

    I would like to find some job that will combine my skills and will help me to grow professionally - For example, QA automation or something that will combine networking + python.

    Any advice will be helpful! :) Thanks!

    https://ibb.co/x876jW6

    https://ibb.co/Sytw0Vm

    https://ibb.co/Lk7ndyF

    https://ibb.co/hXWvSNC

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

    Bootstrap Courses for Responsive Websites

    Posted: 21 Nov 2019 11:28 AM PST

    I'm looking to learn bootstrap for my job. I currently work with it but it's taking me way too long to google everything so I'm looking for a course that sort of shows all the ropes of bootstrap, basically to help me be aware of how bootstrap positions everything on a page. Looking for a relatively modern course with examples. Are there any recommendations? Bonus if it also teaches advanced CSS. It's okay if it's not free.

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

    Trying to learn how to code grabbing a random image from a set of images and adding a chance for 'rare' images.

    Posted: 21 Nov 2019 09:58 PM PST

    I've got this sub train code for streamelements that another coder has released to the public, however it doesn't have the option to randomise the look of the train for multiple pictures.

    I like the widget but I wanted to change it so it grabs a random image from a set of images, while also having a 1% chance to get a image from a 'rare' set of images. for example it picks a random pokemon from the set of pokemon images(I have every pokemon, normal and shiny.) while having a chance to get it in a shiny.

    I spoke to the guy who made it and he told me I could put the images on a hosting site and do this. But I have no knowledge of coding so im stuck.

    I've got the images ready and named by their number in the pokedex with a s on the shiny versions, I just have no idea how to add the code/code. I can kinda read/understand what the code is kinda doing. But yeah, ive got no real idea of whats possible or what code to actually add.

    If anyone can help me get this done I would honestly appreciate it, spent the past two days trying to figure/learn on my own but google search can only get you so far, and I cant understand the code enough to know what to use.

    All help is greatly appreciated. Thanks

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

    Why would video editing software need an SQL database?

    Posted: 21 Nov 2019 09:55 PM PST

    I downloaded DaVinci and that's supposed to be a good video editing software but I noticed something while I was installing it. It asks whether I would like to install Postgre SQL, which I know from my days in rails is a rather good SQL database but I have no idea why it would be used in video editing.

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

    No comments:

    Post a Comment