• Breaking News

    Thursday, November 29, 2018

    What are the most significant knowledge gaps that "self taught" developers tend to have? learn programming

    What are the most significant knowledge gaps that "self taught" developers tend to have? learn programming


    What are the most significant knowledge gaps that "self taught" developers tend to have?

    Posted: 29 Nov 2018 09:30 AM PST

    I'm teaching myself programming and I'm curious what someone like myself would tend to overlook.

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

    Need help building an interactive website using HTML, CSS, and Javascript

    Posted: 29 Nov 2018 09:13 PM PST

    Hello,

    I have a project due in 5 days that requires me to build an interactive website using HTML, JS, and CSS.

    I have been fairly busy with my internship and all my other classes as well, and have not had time to pick up on Javascript. I know the bare minimum fundamentals, but not enough to be able to incorporate it into my website. I have most of the HTML and CSS done, but just need to add JS.

    I will be willing to pay anyone that could take some time out of their day and show me how to add JS into my website... hell, i'll even pay for someone to just do it, but I would rather someone walk me through it as well.

    If anyone is willing to help out, please feel free to shoot me a message. I appreciate any help.

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

    Is programming the way to go to work for myself?

    Posted: 29 Nov 2018 11:16 PM PST

    I want to learn programming. I'm thinking of either doing a computer science bachelors degree or trying to teach myself. But the real question is, is this a skill that will allow me to work for myself? I grew up with my father owning his own business and my brother now owns his own business, and I have my own online shop were I do decently well. . I don't think it's in me to work for someone. That's my question and that's why I'm asking. I've always wondered but scared the question will be no. I think programming and coding is fascinating and would like to do it if possible.

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

    [Homework!] Not last minute - but heavily stuck. Java Android app, canvas + buttons.

    Posted: 29 Nov 2018 11:47 PM PST

    I have a screen - it shows a user taken image (or stock image? whatever, an image) and I want to click on it to mark an X. It shows a body and you touch the screen to indicate location of say, a bruise.

    I can scale the image, set it to a viewing rectangle, mark an X only in the rectangle (so over the image) and I'm doing this in a Canvas.

    However I only want the image to be a portion of the screen, I want BUTTONS underneat and 2 on the side of the image, maybe. How do I make buttons?

    If I hardcore the buttons, then I'm fucked on resolutions and all that relative pixel position stuff and we lose marks on that.

    I can't put layout buttons on a canvas.

    I'm completely lost :((( Do I somehow extract the phone resolution and code buttons based on that? Is there a way to put layout buttons even though there isn't straight on?

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

    [C#, Visual Studio] How do you run an instance of a server from a class library?

    Posted: 29 Nov 2018 11:28 PM PST

    So bit of detail...I've created a simple server-based tic tac toe game for some practice, and in order to run the unit tests, I have to connect to an instance of the server that I created. Problem is, the game itself is in a class library, which you can't run as it is. How can I get an instance of my server running so that I can run the unit tests?

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

    Any comprehensive C++ 14/17 resources?

    Posted: 29 Nov 2018 07:26 PM PST

    Are there any resources that explain what C++ 14 and forward have added (from the POV of someone only comfortable with 0x or 11). I have read about the additions but am unsure of what they replace from the older frameworks or what to use instead of what. I'm trying to market myself as a more up to date C++ programmer.

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

    New to programming! Need advice!

    Posted: 29 Nov 2018 08:08 AM PST

    Hello everyone! I am a 28m looking to step in the world of programming. I come from a construction background and recently quit my job to pursue something ive been interested in for about 4 years now. I dont have any background knowledge of html or css or any programming for that matter. The only tech stuff i know is how to build gaming computers!

    So, thinking about buying some books to read that can start this journey of mine. I recently purchased O'reilly "head first javascript programming" by eric freeman and elisabeth robson, but think this book is for people who already know about html and css... can any one recommend a good first book to buy ? I was recently told before i start "head first javascript", to get the "head first html and css" is this correct ? I am just really looking for advice on what first steps to take. I already have my computer ive built ready to go with google chrome as a web browser and i installed sublime text editor 3. I ak excited to dive into this! I have also been thinking about taking a course on coursehorse for beginner programming thats in my area!

    Upon youtube tutorials does anyone have any recommendations on what to start with ?

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

    I feel stupid.

    Posted: 29 Nov 2018 07:07 PM PST

    I took 3 different programming classes at my cc and the most I can do is create a webpage with my resume using html/css and also dumb little text based games in python.

    I can't seem to learn more advanced topics, or I just don't get it. I'm at the point where maybe im just not cut out to be a programmer. I don't want to quit, I practice every day. I guess its just not clicking for me very well.

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

    Is there any way to make the following code cleaner?

    Posted: 29 Nov 2018 10:52 PM PST

    I have a method that needs to add an email string to a list. If the email is not present or the object that holds the email itself is not present I want to just ignore it. This is my Friday 5pm attempt at it:

    private List<String> enrichEmailAddresses(Branch branch, ManagementStructureReadModel managers) { List<String> emails = new ArrayList<>(); if (branch != null && branch.branchTradeEmailAddress != null) { emails.add(branch.branchTradeEmailAddress); } if (managers.branchManager != null && managers.branchManager.email != null) { emails.add(managers.branchManager.email); } if (managers.branchAssistantManager != null && managers.branchAssistantManager.email != null) { emails.add(managers.branchAssistantManager.email); } return emails; 

    How would you refactor this to make it look nicer? This is for Java 8.

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

    JAVA - Using Focus subsystem

    Posted: 29 Nov 2018 10:38 PM PST

    I am making a Sudoku game for my last project of this school semester. One of the requirements is to use the arrow keys to move around the board. I used FocusTraversalKeys to set the left and right arrow keys to back and forward respectively. I am having trouble doing the same for the Up and Down keys. Can I not use UP_CYCLE_TRAVERSAL_KEYS and DOWN_CYCLE_TRAVERSAL_KEYS the same way I'm using BACKWARD/FORWARD_TRAVERSAL_KEYS ?

    Edit: Formatting

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

    [Python]Can't show plots on Jupyter Notebook

    Posted: 29 Nov 2018 10:26 PM PST

    Hello everyone, I have a problem. The thing is when I use this code in IDLE : import pylab as pl x = [1, 2, 3, 4, 5] y = [1, 4, 9, 16, 25] pl.plot(x, y) pl.ylabel ('y') pl.xlabel ('x') pl.show() I can see the graph but when I use it in Jupyter Notebook it says <Figure size 640x480 with 1 Axes>. How can I fix this?

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

    Phyton/Rasberry pi voice activation help

    Posted: 29 Nov 2018 10:24 PM PST

    Im making a prototype of a voice activation gatepass using rasberry pi and the premise of it is when i say the key word "open", the motor that is connected to our makeshift gate, would move, thus opening. What i want to happen is that it only works if it detected my voice saying the word "open". It would not move if any other person woud've said it. Is there any possible way i could do that? I've looked up some programs online but i could not find this type of voice recognition. I'm a beginner at Rasberry pi/ phyton so any help would be appreciated. Thanks in advance!

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

    Need help with C++ project

    Posted: 29 Nov 2018 10:16 PM PST

    I had a test today where we had to read data from a file and we were given one function to use.

    From what I remember the function give was:

    size_t fillArray(string name[], int hoursWorked[], double payRate[], ifstream & in);

    Now we can assume the file is open and just go straight to reading data.

    In my function I have:

    int i = 0;

    while (in.peek() != EOF && i < 5)

    {

    string firstname, lastname;

    in >> name[i];

    cout << name[i] << endl;

    }

    I am having trouble inputting data for hoursWorked and payRate.

    The file looks like this: Bob smith 39 13.5

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

    [C++] How to randomly generate numbers?

    Posted: 29 Nov 2018 10:04 PM PST

    Hello, so I'm very confused on how to do this first part of my assignment. I know how to add those numbers using the objects of the class but I have no clue how to generate random numbers, much less make it include certain numbers. We never learned how to do this and when trying to look through my textbook nothing on generating random numbers came up.

    Topic: Use a random number function to randomly generate 5 integers between 0 and 99 with 0 and 99 included. Add those numbers into an instance of class.

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

    Locating text on a webpage through webdriver

    Posted: 29 Nov 2018 09:58 PM PST

    I truly feel like I have tried it all but I cannot find a way to do this.

    I don't have a code to correct because I'm not sure where to begin.

    The goal is to locate text on a page running on a Selenium browser. In this browser I interact with different profiles. The problem begins with needing to have the ability to use what ever url is given for each profile. Everywhere I look to check for text says to copy the url in the code but that wouldn't work for the next profile's page. Then I have the issue of even if I could figure this out, I wouldn't know what commands to use to make it react the correct way if the text is or is not found. I've spent days on this because my pride wouldn't let me ask for help.

    Reddit, please help

    Edit: Using Python in Virtual Studio

    from selenium import webdriver import pyautogui import time #import libraies import urllib3 from bs4 import BeautifulSoup path = 'chromedriver' driver = webdriver.Chrome(path) browser = webdriver.Chrome() type(browser) browser.get('login url') usernameElem = browser.find_element_by_id('USERNAME') usernameElem.send_keys('myUsername') passwordElem = browser.find_element_by_id('PASSWORD') passwordElem.send_keys('myPassword') passwordElem.submit() osaElem = browser.find_element_by_id('loginbutton') osaElem.click() pyautogui.moveTo(1958, 40) pyautogui.click() time.sleep(2) pyautogui.moveTo(356, 765) time.sleep(8) pyautogui.click() pyautogui.moveTo(399, 508) time.sleep(2) pyautogui.click() pyautogui.moveTo(2636, 392) time.sleep(4) pyautogui.mouseDown() pyautogui.mouseUp() time.sleep(3) pyautogui.moveTo(2530,460) pyautogui.click() time.sleep(6) def NextProfile(): pyautogui.moveTo(1987, 651) pyautogui.click() pyautogui.moveTo(2636, 392) time.sleep(4) pyautogui.mouseDown() pyautogui.mouseUp() time.sleep(2) pyautogui.moveTo(2530, 460) pyautogui.click() time.sleep(5) pyautogui.moveTo(2019, 369) pyautogui.click() time.sleep(4) pyautogui.moveTo(2494, 379) pyautogui.click() browser.element.find_element_by_??????? if (condition):pyautogui.typewrite('keyword') else: NextProfile() 

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

    C++ Programming help - Making change

    Posted: 29 Nov 2018 09:51 PM PST

    I am unable to get this program to do the last half of my code. If anyone could help, that would be so amazing!!

    <3

    #include "pch.h"

    #include <iostream>

    using namespace std;

    int main()

    {

    float money = 0; int change = 0; int quarters = 0; int dimes = 0; int nickels = 0; int pennies = 0; 

    bool isFinished = false; while (!isFinished) { do { cout << "Enter the amount of money: "; cin >> money; 

     } while (money > 0.01); if (money <= 0) { cout << "Please enter a vaild amount."; } 

    } 

    change = static_cast<int>(money * 100);

    quarters = change / 25;

    change = change % 25;

    dimes = change / 10;

    change = change % 10;

    nickels = change / 5;

    pennies = change % 5;

    isFinished = true;

    cout << "\n Quarters : " << quarters << endl;

    cout << " Dimes : " << dimes << endl;

    cout << " Nickels : " << nickels << endl;

    cout << " Pennies : " << pennies << endl;

    }

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

    How to integrate a payment gateway in your mobile application?

    Posted: 29 Nov 2018 09:51 PM PST

    We are living in a time where web-based shopping and the web-based business solutions have become the order of the day. This has empowered the e-commerce application to execute and integrate the payment gateway that can complete online transactions with only a few clicks.

    Read More: https://sectorqube.com/blog/how-to-integrate-a-payment-gateway-in-a-mobile-application-guidelines-from-sectorqube/

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

    How does FontAwesome deliver icons in their style sheet ? All I see are coded strings

    Posted: 29 Nov 2018 09:43 PM PST

    I took a look at the style sheet FontAwesome delivers through a CDN to see the inner workings, I see that basically all of them have something like content:"\f170". How does this translate to their actual icons?

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

    Sudoku java problem

    Posted: 29 Nov 2018 03:44 PM PST

    Hello I was hoping if someone could help me with a little game of mine. I wanted to create a sudoku game using java and its swing component. But I was having difficulty in reading integers from a text file and outputting them in a 9x9 grid using swing

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

    Looking for good networking projects with python

    Posted: 29 Nov 2018 03:43 PM PST

    I currently have some free time and was curious what are some good computer networking projects that can be done in python? I currently just did a simple web server and was going to expand upon that...thanks in advance!

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

    Programming dyslexia?

    Posted: 29 Nov 2018 09:22 PM PST

    So I've started to dive into learning HTML/CSS/Javascript but feeling overwhelmed with learning syntax. I feel like as soon as I learn it I've already forgotten it the next day. Also I seem to be learning a lot of different methods to do the same things like functions in JavaScript but not the best practices.

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

    I NEED HELP IN PYTHON I can't figure out the issue, it says index isn't defined

    Posted: 29 Nov 2018 09:17 PM PST

    1. from os import system, get_terminal_size, path
    2. global words
    3. fn = []
    4. mo = []
    5. letters = []
    6. license = 0
    7. string = 0
    8. def first_middle(): #letters, lots of letters
    9. global fn
    10. fn = [
    11. "a","aa","ab","ac","ad","ae","af","ag","ah","ai","aj","ak","al","ala","alb","alc","ald","ale","alf","alg","alh","ali","alj","alk","all","alm","aln","alo","alp","alq","alr","als","alt","alu","alv","alw","alx","aly","alz","am","an","ao","ap","aq","ar","as","at","au","av","aw","ax","ay","az",
    12. "b","ba","bb","bc","bd","be","bf","bg","bh","bi","bj","bk","bl","bm","bn","bo","bp","bq","br","bs","bt","bu","bv","bw","bx","by","bz",
    13. "c","ca","cb","cc","cd","ce","cf","cg","ch","ci","cj","ck","cl","cm","cn","co","cp","cq","cr","cs","ct","cu","cv","cw","cx","cy","cz",
    14. "d","da","db","dc","dd","de","df","dg","dh","di","dj","dk","dl","dm","dn","do","dp","dq","dr","ds","dt","du","dv","dw","dx","dy","dz",
    15. "e","ea","eb","ec","ed","eda","edb","edc","edd","ede","edf","edg","edh","edi","edj","edk","edl","edm","edn","edo","edp","edq","edr","eds","edt","edu","edv","edw","edward","edx","edy","edz","ee","ef","eg","eh","ei","ej","ek","el","ela","elb","elc","eld","ele","elf","elg","elh","eli","elizabeth","elj","elk","ell","ellen","elm","eln","elo","elp","elq","elr","els","elt","elu","elv","elw","elx","ely","elz","em","en","eo","ep","eq","er","es","et","eu","ev","ew","ex","ey","ez",
    16. "f","fa","fb","fc","fd","fe","ff","fg","fh","fi","fj","fk","fl","fm","fn","fo","fp","fq","fr","fs","ft","fu","fv","fw","fx","fy","fz",
    17. "g","ga","gb","gc","gd","ge","gf","gg","gh","gi","gj","gk","gl","gm","gn","go","gp","gq","gr","gs","gt","gu","gv","gw","gx","gy","gz",
    18. "h","ha","hb","hc","hd","he","henry","hf","hg","hh","hi","hj","hk","hl","hm","hn","ho","hp","hq","hr","hs","ht","hu","hv","hw","hx","hy","hz",
    19. "i","ia","ib","ic","id","ie","if","ig","ih","ii","ij","ik","il","im","in","io","ip","iq","ir","is","it","iu","iv","iw","ix","iy","iz",
    20. "j","ja","jaa","jab","jac","jad","jae","jaf","jag","jah","jai","jaj","jak","jal","jam","james","jan","jao","jap","jaq","jar","jas","jat","jau","jav","jaw","jax","jay","jaz","jb","jc","jd","je","jea","jeb","jec","jed","jee","jef","jeg","jeh","jei","jej","jek","jel","jem","jen","jeo","jep","jeq","jer","jes","jet","jeu","jev","jew","jex","jey","jez","jf","jg","jh","ji","jj","jk","jl","jm","jn","jo","joa","job","joc","jod","joe","jof","jog","joh","john","joi","joj","jok","jol","jom","jon","joo","jop","joq","jor","jos","joseph","jot","jou","jov","jow","jox","joy","joz","jp","jq","jr","js","jt","ju","jv","jw","jx","jy","jz",
    21. "k","ka","kb","kc","kd","ke","kf","kg","kh","ki","kj","kk","kl","km","kn","ko","kp","kq","kr","ks","kt","ku","kv","kw","kx","ky","kz",
    22. "l","la","lb","lc","ld","le","lea","leb","lec","led","lee","lef","leg","leh","lei","lej","lek","lel","lem","len","leo","lep","leq","ler","les","let","leu","lev","lew","lex","ley","lez","lf","lg","lh","li","lj","lk","ll","lm","ln","lo","loa","lob","loc","lod","loe","lof","log","loh","loi","loj","lok","lol","lom","lon","loo","lop","loq","lor","los","lot","lou","lov","low","lox","loy","loz","lp","lq","lr","ls","lt","lu","lv","lw","lx","ly","lz",
    23. "m","ma","maa","mab","mac","mad","mae","maf","mag","mah","mai","maj","mak","mal","mam","man","mao","map","maq","mar","margaret","mary","mas","mat","mau","mav","maw","max","may","maz","mb","mc","md","me","mf","mg","mh","mi","mj","mk","ml","mm","mn","mo","mp","mq","mr","ms","mt","mu","mv","mw","mx","my","mz",
    24. "n","na","nb","nc","nd","ne","nf","ng","nh","ni","nj","nk","nl","nm","nn","no","np","nq","nr","ns","nt","nu","nv","nw","nx","ny","nz",
    25. "o","oa","ob","oc","od","oe","of","og","oh","oi","oj","ok","ol","om","on","oo","op","oq","or","os","ot","ou","ov","ow","ox","oy","oz",
    26. "p","pa","pb","pc","pd","pe","pf","pg","ph","pi","pj","pk","pl","pm","pn","po","pp","pq","pr","ps","pt","pu","pv","pw","px","py","pz",
    27. "q","qa","qb","qc","qd","qe","qf","qg","qh","qi","qj","qk","ql","qm","qn","qo","qp","qq","qr","qs","qt","qu","qv","qw","qx","qy","qz",
    28. "r","ra","rb","rc","rd","re","rf","rg","rh","ri","rj","rk","rl","rm","rn","ro","robert","rp","rq","rr","rs","rt","ru","rv","rw","rx","ry","rz",
    29. "s","sa","sb","sc","sd","se","sf","sg","sh","si","sj","sk","sl","sm","sn","so","sp","sq","sr","ss","st","su","sv","sw","sx","sy","sz",
    30. "t","ta","tb","tc","td","te","tf","tg","th","ti","tj","tk","tl","tm","tn","to","tp","tq","tr","ts","tt","tu","tv","tw","tx","ty","tz",
    31. "u","ua","ub","uc","ud","ue","uf","ug","uh","ui","uj","uk","ul","um","un","uo","up","uq","ur","us","ut","uu","uv","uw","ux","uy","uz",
    32. "v","va","vb","vc","vd","ve","vf","vg","vh","vi","vj","vk","vl","vm","vn","vo","vp","vq","vr","vs","vt","vu","vv","vw","vx","vy","vz",
    33. "w","wa","wb","wc","wd","we","wf","wg","wh","wi","wia","wib","wic","wid","wie","wif","wig","wih","wii","wij","wik","wil","william","wim","win","wio","wip","wiq","wir","wis","wit","wiu","wiv","wiw","wix","wiy","wiz","wj","wk","wl","wm","wn","wo","wp","wq","wr","ws","wt","wu","wv","ww","wx","wy","wz",
    34. "x","xa","xb","xc","xd","xe","xf","xg","xh","xi","xj","xk","xl","xm","xn","xo","xp","xq","xr","xs","xt","xu","xv","xw","xx","xy","xz",
    35. "y","ya","yb","yc","yd","ye","yf","yg","yh","yi","yj","yk","yl","ym","yn","yo","yp","yq","yr","ys","yt","yu","yv","yw","yx","yy","yz",
    36. "z","za","zb","zc","zd","ze","zf","zg","zh","zi","zj","zk","zl","zm","zn","zo","zp","zq","zr","zs","zt","zu","zv","zw","zx","zy","zz"]
    37. def date_of_birth(): #Months and it's numbers
    38. mo = [
    39. [],
    40. ['','002','007','010','012','017','020','022','025','027','030','032','035','037','040','042','045','047','050','052','055','057','060','062','065','067','070','072','075','077','080','082'],
    41. ['','086','088','091','093','096','098','101','103','106','108','111','113','116','118','121','123','126','128','131','133','136','138','141','143','146','148','151','153','156'],
    42. ['','159','162','164','167','169','172','174','177','182','184','187','189','192','194','197','199','202','204','207','227','229','232','234','237','239','242','244','247','249','252','254'],
    43. ['','258','260','263','265','268','270','273','275','278','280','283','285','288','290','293','295','298','300','303','305','308','310','313','315','318','320','323','325','328','330'],
    44. ['','334','336','339','341','344','346','349','351','354','356','359','361','364','366','369','371','374','376','379','381','384','386','389','391','394','396','399','401','404','406','409'],
    45. ['','412','415','417','420','422','425','427','430','432','435','437','440','442','445','447','450','452','467','470','472','475','477','480','482','497','500','502','505','507','517'],
    46. ['','521','523','526','528','534','537','539','542','544','547','549','552','554','557','559','562','564','567','569','572','574','577','579','582','584','587','589','592','594','597','599'],
    47. ['','603','605','608','610','613','615','618','620','623','625','628','630','633','635','638','640','643','645','648','650','653','655','658','660','663','665','668','670','673','675','678'],
    48. ['','681','684','686','689','691','694','696','699','701','704','706','709','711','714','716','719','721','724','726','729','731','734','736','739','741','744','746','749','751','754'],
    49. ['','757','760','762','765','767','770','772','775','777','780','782','785','787','790','792','797','800','802','807','810','812','815','817','820','822','825','827','830','832','835','837'],
    50. ['','841','843','846','848','851','853','856','858','861','863','866','868','871','873','876','878','881','883','886','888','891','893','896','898','901','903','906','908','911','913'],
    51. ['','917','919','922','924','927','929','932','934','937','939','942','944','947','949','952','954','957','959','962','964','967','969','972','974','977','983','985','990','993','995','998']]
    52. def soundex(): #
    53. x = [[B],[],[],[],[],[]]
    54. def skips(): #letters to skip in soundex
    55. sk = ['a','A','e','E','i','I','O','o','U','u','w','W','y','Y','h','H']
    56. def header():
    57. system ('cls||clear')
    58. print(' Isaiah Jackson CS180 Structure and Logic November 20, 2018')
    59. def l_input():
    60. print()
    61. print(' =======================================================')
    62. print()
    63. first = input('{0:>10}: {1:<10}'.format('Enter in your first name', '')).lower()
    64. middle = input('{0:>10}: {1:<10}'.format('Enter in your middle name','')).lower()
    65. last = input('{0:>10}: {1:<10}'.format('Enter in your last name','')).lower()
    66. month = int(input('{0:>10}: {1:<10}'.format('Enter in your month of birth' , '')))
    67. date = int(input('{0:>10}: {1:<10}'.format('Enter in your date of birth' , '')))
    68. print()
    69. print(' =======================================================')
    70. return(first,middle,last,month,date)
    71. def l_process(first,middle,last):
    72. global fn
    73. global mo
    74. myname = list(first)
    75. while True:
    76. if myname in fn:
    77. return myname
    78. break
    79. else:
    80. myname = list(myname)
    81. myname.pop()
    82. myname = ''.join(myname)
    83. continue
    84. mymiddle = list(middle)
    85. while True:
    86. if mymiddle in fn:
    87. return mymiddle
    88. break
    89. else:
    90. mymiddle = list(mymiddle)
    91. mymiddle.pop()
    92. mymiddle = ''.join(mymiddle)
    93. continue
    94. mylast = list(last)
    95. l = ''.join(mylast)
    96. for letter in 'aeiouhwy':
    97. l = l.replace(letter, '')
    98. c = list(l)
    99. c.pop(0) #gets rid of first letter
    100. e = ''.join(c)
    101. return (e, mylast)
    102. def l_process2(myname, mymiddle, e, mylast):
    103. global fn
    104. uselist = []
    105. for word in 'bfpv':
    106. e = e.replace(word, '1')
    107. for word1 in 'cgjkqsxz':
    108. e = e.replace(word1, '2')
    109. for word2 in 'dt':
    110. e = e.replace(word2, '3')
    111. for word3 in 'l':
    112. e = e.replace(word3, '4')
    113. for word4 in 'mn':
    114. e = e.replace(word4, '5')
    115. for word5 in 'r':
    116. e = e.replace(word5, '6')
    117. mylast = list(set(e))
    118. for num in mylast:
    119. if num not in uselist:
    120. uselist.append(elem)
    121. finish = ''.join(uselist)
    122. w = 0
    123. m = 0
    124. index = 0
    125. index1 = 0
    126. w = ''.join(myname)
    127. index = fn.index(w)
    128. m = ''.join(myname)
    129. index1 = fn.index(m)
    130. print(m)
    131. return (finish, index, index1)
    132. def l_output(index, index1, uselist, month, date, first, middle, last,mylast,finish):
    133. mo = [
    134. [],
    135. ['','002','007','010','012','017','020','022','025','027','030','032','035','037','040','042','045','047','050','052','055','057','060','062','065','067','070','072','075','077','080','082'],
    136. ['','086','088','091','093','096','098','101','103','106','108','111','113','116','118','121','123','126','128','131','133','136','138','141','143','146','148','151','153','156'],
    137. ['','159','162','164','167','169','172','174','177','182','184','187','189','192','194','197','199','202','204','207','227','229','232','234','237','239','242','244','247','249','252','254'],
    138. ['','258','260','263','265','268','270','273','275','278','280','283','285','288','290','293','295','298','300','303','305','308','310','313','315','318','320','323','325','328','330'],
    139. ['','334','336','339','341','344','346','349','351','354','356','359','361','364','366','369','371','374','376','379','381','384','386','389','391','394','396','399','401','404','406','409'],
    140. ['','412','415','417','420','422','425','427','430','432','435','437','440','442','445','447','450','452','467','470','472','475','477','480','482','497','500','502','505','507','517'],
    141. ['','521','523','526','528','534','537','539','542','544','547','549','552','554','557','559','562','564','567','569','572','574','577','579','582','584','587','589','592','594','597','599'],
    142. ['','603','605','608','610','613','615','618','620','623','625','628','630','633','635','638','640','643','645','648','650','653','655','658','660','663','665','668','670','673','675','678'],
    143. ['','681','684','686','689','691','694','696','699','701','704','706','709','711','714','716','719','721','724','726','729','731','734','736','739','741','744','746','749','751','754'],
    144. ['','757','760','762','765','767','770','772','775','777','780','782','785','787','790','792','797','800','802','807','810','812','815','817','820','822','825','827','830','832','835','837'],
    145. ['','841','843','846','848','851','853','856','858','861','863','866','868','871','873','876','878','881','883','886','888','891','893','896','898','901','903','906','908','911','913'],
    146. ['','917','919','922','924','927','929','932','934','937','939','942','944','947','949','952','954','957','959','962','964','967','969','972','974','977','983','985','990','993','995','998']]
    147. print()
    148. print()
    149. print()
    150. print('Name: ', firts, middle, last)
    151. print(('Born: ',month,date ))
    152. print('License Number: ',[mylast[0]], finish, index, index1, [mo[month][date]] )
    153. print(' =======================================================')
    154. print()
    155. def answer():
    156. answer = input('Would you like to play again?(N/Y): ')
    157. if answer == 'Y' or answer == 'yes' or answer == 'Yes' or answer == 'y':
    158. main()
    159. elif answer == 'N' or answer == 'No' or answer == 'no' or answer == 'n':
    160. input('Press <ENTER> To Continue. . .')
    161. def main():
    162. first_middle()
    163. date_of_birth()
    164. #soundex()
    165. #skips()
    166. header()
    167. (first,middle,last,month,date) = l_input()
    168. (e, mylast) = l_process(first,middle,last)
    169. l_output(index, index1, uselist, month, date, first, middle, last,mylast,finish)
    170. answer()
    171. main()
    submitted by /u/Thelegendaryzeke
    [link] [comments]

    Should I learn the Crystal programming language?

    Posted: 29 Nov 2018 09:01 PM PST

    It seems rather new yet it says it's easy as ruby and fast as C. Has anyone here used it and if so, is it worth learning? Does it live up to the hype? I plan to use it to make really fast web apps and social networks.

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

    Question for management/senior developers - would you consider a reddit profile on a resume? (Proof of research)

    Posted: 29 Nov 2018 09:00 PM PST

    Just a thought.. I know that GitHub is a huge link to have on resumes with proof of projects, as well as things such as being apart of open source projects and adding your LinkedIn profile.

    But what about reddit? I mean if you look as some of us guys who are actively posting to this forum, java, swift, etc and even sysadmins and all kinds of tech roles. It could show that they did there research and are actively learning. So goes for stackoverflow in this situation.

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

    No comments:

    Post a Comment