• Breaking News

    Tuesday, April 27, 2021

    What do you do when your mother hates the fact that you program??? learn programming

    What do you do when your mother hates the fact that you program??? learn programming


    What do you do when your mother hates the fact that you program???

    Posted: 26 Apr 2021 06:51 PM PDT

    I program almost daily, and I love it, there is nothing I love more than this and my mother hates the fact that I enjoy and love it so much, recently, I make a video calling & screen sharing application(like google meet or zoom) and I thought this would be the one thing that she understands the use case of and she didn't even acknowledge it, I was like look, mum, I made this zoom like app! You can video call me using my software, and she replied by asking how many hours I had studied that day.

    I felt really bad, I had spent the last 4 hours debugging and fixing the problem and so have something like that happen really made me feel bad.

    How do you guys deal with things like this?? what do you do, how do you explain it to others? I still program everyday, I really do love it, but I can't explain it to my mother, if you guys have ever dealt with this kind of stuff before please let me know, any help would be highly appreciated!

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

    18 months later, I landed on my first job as Go dev, I hope my story provides some encouragement

    Posted: 26 Apr 2021 07:07 AM PDT

    EDIT: I feel incredibly bad by putting "18 months" in the title, I shouldn't have done that, it sends the wrong message and Reddit doesn't allow title edit. Please don't take it as a generally expected timeline, we are all on different paths in our life.

    My Background

    I am 29, I come from a business working background and an engineering educational background. I had been in sales for 6 years before I devoted myself to programming. I did some programming with C back in college, but it was nothing serious and it was long gone during my time in sales. It's fair to say I practically started with no foundation. It has been made clear to me that my engineering background has prepared me well for this journey, particularly regarding my math foundation and the ability to see things apart from a big picture, I apologize for downplaying this part of my experience before this edit.

    Turning Point 1 – The Start: Deep Learning, Python, Web

    I got interested in programming after I watched a video explaining what neural network is by Grant Sanderson (3Blue1Brown). It led me to Python and deep learning frameworks. I was able to follow tutorials to pick up some basic concepts.

    Soon I realized that I simply didn't have a foundation to keep going, it was just too much I couldn't understand, so I started learning basics with Python, did my first project — a web project built with Django framework. That project introduced me to things like what front-end, back-end, database are.

    Upon until this point, according to my daily log, I have spent about 100 days on deep learning, about 60 days on web development, interleaved with MIT 6.006 Introduction to Algorithms and solving LeetCode problems.

    During this period, the most important things I picked up were:

    • basic data structure

    • what an algorithm is

    • overview of a web project: frontend, backend, database, cache, search etc.

    • basic deep learning concepts

    Turning Point 2 — Distributed Systems

    During my study, one day my business intuition kicked in, I realized that what I have learned so far didn't make much business sense i.e. my project and my neural network were obviously not business-ready, and they would never be. It's not that my idea was bad, it was because there was an important piece missing. So I asked a question: how do tech companies serve millions of requests and train their neural networks?

    It turns out that question was the most important question in my relatively short time in programming, it led me to the concept of distributed systems and the amazing course MIT 6.824 Distributed Systems.

    It was a game changer. The idea of having things modularized and distributed across many machines is what makes today's tech world possible.

    I remember the thrill of learning all about distributed systems vividly, and I was incredibly grateful that MIT made 6.824 open to public, because the course has the most amazing labs along with the course materials — implementing Raft in Golang. I spent 3 months on the labs, everyday was a blessing. Surely it was not easy, but passing each test made me think: this is the real stuff.

    Turning Point 3 — The Second Project

    Soon after I completed the labs in MIT 6.824, I know I am getting really close to a chance to land on a real job, it gave me such a confidence boost.

    Now I need one more thing: a project to show potential employers what I am capable of.

    Another thing I learned is that my passion lies in backend, not the frontend, it's one of things you realize along the way: what you really like, what you don't. So I devoted myself to my second project: a distributed crawling system in Golang from scratch. I wanted to build it from scratch because that way I can experience ever detail possible. Frameworks are great, but they shield you from low-level stuff, as it turns out the low-level stuff is pretty important in my case.

    In the following 8 months, the project took all my attention. Needless to say it was hard, but also exciting and rewarding. The process felt natural, I didn't need a tutorial to guide me, the project itself was the guide, each problem leads to some Google searches, that in turn leads to some concepts and answers. There were 7 iterations of design, I literally rewrote the whole system 4 times, and rewrote some of the modules whole more than I can remember.

    The project was nearly finished last month and I started sending out resumes, as of today, I got my first offer.

    Side Points

    1. LeetCode and Interviews

    I struggled with how much time I should spend on LeetCode problems because many people talked about its importance. Currently my record is at 12 Easy, 39 Medium, 19 hard, total 70. I stopped doing it midway in my study for two reasons:

    1. I have grasped the basic concept, I feel confident I can solve most medium level problems pretty quickly, the hard ones will take longer, but I won't be clueless.

    2. In terms of difficulty, the backend programming I am interested is more about architecture, rarely is it about LeetCode-style problems, it doesn't make much sense for me to spend too much time on it. I concluded that if an interviewer really values how quickly I can solve a problem like that, that's not the job I want.

    I think many people do LeetCode problems because they come up in job interviews. I think it's crucial to think whether the job you want actually involves solving that kind of problem, if it doesn't and the interviewer insists on it, I think that's not a job yo want, you want to work for a company that the interviewer knows what's really expected of you instead of jumping on the bandwagon.

    More about job interviews. Almost all the interviewers I have met really liked the fact that I started my second project from scratch, they appreciated my attempt to design a project and the efforts to build it, although the project is in no way perfect, but it showed that I can do it and they are confident that I can work on new problems on my own.

    I think that's an important kind of mindset in programming: because the field is so big, almost all programmers are life-long learners, it's rarely about doing the same old thing over and over again, it's imperative for employers to see that you can work on a new problem independently.

    Another thing that's worth-mentioning is job descriptions. Often there are many ways to solve a problem, like there are 2+ popular frameworks, 2+ 3rd-party solutions, which one should you spend your time on? The answer is in job descriptions. Find the company you want to work for, or the biggest companies have the job you want, see what requirements they set, it will give you some clues.

    2. Dedication

    I quitted my sales job to learn programming, dedication is important. However breaks are expected, many difficult problems were solved during a shower, a walk or during workout.

    BTW, I am not attached to anyone, no partner, no kids. That made things a lot easier.

    Before I actually committed, I checked my savings and made a plan: I would give myself two years living on a budget based on my savings. If things don't work out at the end, I will go back to my old job to learn programming alongside my day job.

    Now thinking back, I was able to make such a plan because, if throw modesty out of window for a sec, I am a relatively smart man, I did well in sales to save some money, I was taught how to handle money by my parents. Also there is the fact that I did well in college, the idea of programming is never daunting to me, back then it was just dull.

    3. No Tutorial Hell

    I was lucky that I read a lot about tutorial hell beforehand, do a project, no matter how stupid the idea sounds.

    4. Programming Languages

    I was also lucky that I watched some great presentations, one idea that got instilled in me was that programming languages are just tools, for different purposes you just have to choose the right one, don't get yourself stuck with one language, you'd be missing a lot. Plus, after you have learned two, the third one becomes a lot easier.

    5. MIT Open Course and Online Classes

    I believe I owe MIT OpenCourseWare a lot for this incredible journey. I only took two courses full:

    1. MIT 6.006 Introduction to Algorithms

    2. MIT 6.824 Distributed Systems

    I didn't appreciate online courses a lot back then: they are generally longer than a lot of amateur YouTube tutorials and convey pretty much the same message. But after I have spent some time on the question set and labs, I knew I have found the gem. Yes, explanations are pretty much out there on the internet, many people have posted answers, hardly nothing you couldn't find with search engines. But the labs are a carefully designed testing environment for you to work on, it guides you to solve one problem after another, each more challenging than the last, it is not a simple tutorial to treat lightly, it is the work of many brilliant staff in one the of most prestigious schools in the world.

    Spend time on hard problems, they are worth it.

    6. Book

    I would recommend only one book: Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems

    This book covers pretty much everything you need to know about modern applications from a big picture. I have read some books along the way, but mostly only as references to a particular problem, this is the only one I read from cover to cover.

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

    Free University of Minnesota CS 101 textbook, especially good for non-CS-majors

    Posted: 26 Apr 2021 10:49 AM PDT

    I TA'd an intro to computer science for non-majors course at the University of Minnesota. The professor wrote the textbook and made it freely available. The writing style is very approachable.

    https://www-users.cs.umn.edu/~barry/

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

    How does NASA deal with runtime errors in space?

    Posted: 26 Apr 2021 01:00 AM PDT

    I often see the NASA Rules for Developing Safety-Critical Code posted in programming-related subs.

    Two rules in particular, #5 and #7, are not clear to me:

    • Use a minimum of two runtime assertions per function.
    • Check the return value of all non-void functions.

    As I understand, they mean that runtime checks must ensure that the arguments and return values of functions are always valid.

    So, let's say you are a satellite in space. You call a trigonometric sin(...) function and see it returns something nonsensical, like 123.45, while you expected the result in [-1, 1] range. What should you do? How does a runtime assertion help in this situation?

    Or am I misunderstanding these rules and the runtime checks are only used in development and testing, while an actual satellite doesn't do anything if these checks fail (apart from logging, maybe)?

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

    Finally escaped the 'tutorial hell' and did my first simple project. It was so exciting! Any tips or feedback highly appreciated.

    Posted: 26 Apr 2021 06:03 PM PDT

    Hey fellow coders,

    This is my first project from Frontend Mentor after escaping the "tutorial hell". Timed myself on this one and from start to finish it was roughly at the 2 hour mark.

    Spent the last 30 minutes playing around with the border-top-color trying to use :nth-child() and :nth-of-type() property on the &__content element, but couldn't figure it out so ended up using a @mixin.

    1. I used different Media Query width px's than specified because the design was breaking when on smaller screens - is that alright to do?

    2. How would you rate my code readability? Is it easy enough to understand?

    3. Anything else I could have done to minimize reusing the same code pieces, or simply making it shorter?

    4. This challenge had the difficulty of "Newbie", is 2 hours okay for a challenge like this?

    This will be my first code review, so looking forward to any tips and tricks.

    Live site: https://krisp-dev.github.io/Frontend-Mentor-Challenges/Newbie/four-card-feature-section-master/index.html

    Code: https://github.com/krisp-dev/Frontend-Mentor-Challenges/tree/main/Newbie/four-card-feature-section-master (you can see the design in the README file)

    Thanks!

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

    It took me an embarrassingly long time but I made a little Snake game clone with js and I am quite proud of it

    Posted: 26 Apr 2021 01:54 AM PDT

    Maybe one of the toughest things was not being able to google some of the questions or issues I had due to loosing internet while working on the project so I had to sometimes guess the names of functions and read what discreption I can get from vs code in order to know what to use lol.

    Anyway it is one of my first usufull projects and I am happy with the results.

    Link for anyone interested in trying it or learning from my mess of a code which I tried to comment a little.

    P.s: I am open for suggestions or improvements.

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

    Trying to find myself in programming...

    Posted: 26 Apr 2021 03:32 PM PDT

    For a little background info: I'm a 14 year old who started to think about his future because I reckoned that it would help me a bunch if I started earlier. I'm quite good at math and logical thinking and not so good at the creative parts of design (I'm not terrible but I'm much more suitable for math).

    I have next to no programming experience so it can get a bit discouraging looking at all the different options like machine learning, web development, data analysis etc. Maybe I should just learn the basics but I think having a goal beyond basics and tutorials might be really helpful for learning and later on maybe even landing a job. I would like to know which path, suitable for me, could I use to learn programming.

    I'm aware I might be asking for much since I don't even know what to do with myself and you guys know hardly anything about me. Even if it's not possible to find a path for me so early, any advice would be welcome.

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

    Good algorithm course? (Preferably for Python)

    Posted: 26 Apr 2021 02:03 PM PDT

    I've been doing exercises on Hackerrank for a little while, and I think that I could really use a structured course on algorithms.

    The hard part of solving the more difficult problems on Hackerrank for me hasn't been getting the correct output, but doing so efficiently before it times out when it tests huge datasets.

    I've realized that I'm having problems modeling things in my head when I'm not writing these in a straightforward, linear way, and I've been kind of amazed at how much faster certain problems can be solved with a more efficient algorithm that does things like avoiding unnecessary loops or processing data before searching it.

    There are so many things I wouldn't have thought of on my own (like the Aho-Corasick algorithm), and I think it would be good for me to expand my knowledge base as well as to build up chunks of common patterns so I can reduce the number individual components I have to keep track of in my head when working through these.

    I'm not opposed to spending a little money if someone knows of a good paid course or book, and though I'd prefer something Python-based, I'm also comfortable with JavaScript, Java, and I could probably deal with C++ after a refresher course.

    Anyway, thanks in advance for any suggestions!

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

    What to learn

    Posted: 26 Apr 2021 11:53 PM PDT

    Hi everyone!

    First time on this subreddit!

    I'm just done with my first year in uni, I have no prior knowledge in programming, so far I took a course where we learned Python, and another one where we covered the basics of networks, security and database servers.

    I don't have an internship for this summer, so I wanna learn something to develop my programming skills, what should I learn?

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

    Do serverless function just run code while provisioning the right resources?

    Posted: 26 Apr 2021 09:29 PM PDT

    Does see less functions like lambda take a piece of your code (like retrieving data from an API), provision the right amount of resources for it (so the right about of ec2 instances for example) and that's it?

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

    About projects

    Posted: 26 Apr 2021 06:26 PM PDT

    I'm a second year CS student and I think I've really learned a lot in college and also by working on projects at home by myself, however, I'm just not sure when would be the right time to start looking for a job as a developer and how complex should the projects in my portfolio be for landing me an entry-level / junior developer job, so my question for you, what field of software development do you work in and what's ab example of a project that could be interesting to an employer that's looking for a junior developer in your field?

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

    Trying to learn c++ and rust for a year, have gotten no where.

    Posted: 26 Apr 2021 04:21 PM PDT

    Honestly this is more of a rant than really discussion and if anyone has any tips I'd gladly take them. When the lock downs started I realized I wanted to program stuff, maybe make some small games and make discord bots, and eventually go to college and make a career out of it. Learned the basic syntax of c++ and eventually rust and...... I got nowhere.

    I've tried following tutorials but realize that they don't further my ability to think for myself and when I ask other programmers for help I'm usually hit with the "just make stuff" or "you probably aren't coding bro, just whining". Which brings me to my next point, I have, I've spent so much time failing at coding that I've lost a lot of interest in it- it's basically just me making mistakes but never learning. I just wish I had a step by step guide of smaller projects building up to more challenging ones that would properly teach me problem solving skills so I can actually make shit on my own. Any help?

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

    Cryptography project ideas?

    Posted: 26 Apr 2021 11:59 AM PDT

    Hi everyone,

    I'm interested in cryptography, and I want to explore more of it. I am currently taking the Dan Boneh course on Coursera. I want to do a project that is sufficiently complex and something that would look good on a resume. I don't seem to be getting any good ideas yet. Any help would be appreciated.

    Thanks!

    submitted by /u/kevin-s_chilli
    [link] [comments]

    Does anybody know of a refresher to js web development?

    Posted: 26 Apr 2021 04:53 PM PDT

    Hey there!

    I've been meaning to start building a website using the typical js-html-css combo but figured that a refresher in these languages would do me very good since I never actually properly learnt any of them but kinda figured them out from other languages that I actually learnt.

    By refresher I mean something that isn't an introduction to programming in general but assumes that you have background knowledge and doesn't stop to explain the difference between a variable and a function and instead focuses on the intricacies of each language.

    Thanks in advanced!

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

    Code Review for Art Shop Project (Codecademy)

    Posted: 26 Apr 2021 08:34 PM PDT

    I'm requesting a code review for a recent project from Codecademy. For those of you who have taken the front-end course, you may be familiar with the "Dasmoto's Art Shop" Project". I would like feedback on the semantics of my HTML, more specifically the main body of the HTML. I tried to keep it as semantic as possible with the use of section tags and following proper header order. I also tried not to create any "div soup" so I specifically avoided using any div tags. Constructive feedback is welcome and appreciated!

    P.S. I've seen mixed reviews of Codecademy on this sub so far. Some like it and others don't. I decided to go with their program out of familiarity on my part, I remember using their website to code back in high school. And yes I am aware of the Odin Project.

    <!--Logo and Title-->
    <h1 class="beginlogo">Dasmoto's Arts & Crafts</h1>
    <!--Green Header with Paint Brushes-->
    <section>
    <h2 id="greentitle">Brushes</h2>
    <img src="./Resources/images/artshop2.webp">
    <h3>Hacksaw Brushes</h3>
    <p>Made of the highest quality oak, Hackshaw bruhses are known
    for their weight and ability to hold paint in large amounts. Available
    in different sizes. <span>Starting at $3.00 /brush</span>
    </p>
    </section>
    <!--Red Frame Title-->
    <section>
    <h2 id="redtitle">Frames</h2>
    <img src="./Resources/images/artshop3.webp">
    <h3>Art Frames (assorted)</h3>
    <p>Assorted frames made of different material,
    including MDF, birchwood, and PDE. Select frames
    can be sanded and painted according to your needs.
    <span>Starting at $2.00 / frame.</span></p>
    </section>
    <!--Blue Background Paint Title-->
    <section>
    <h2 id="bluetitle">Paint</h2>
    <img src="Resources/images/artshop4.webp">
    <h3>Clean Finnish Paint</h3>
    <p>Imported paint from Finland. Over 256 colors available in-store, varying
    in quantity (1 oz. to 8 oz.). Clean Finnish paint microbinds to
    canvas, increasing the finish and longevity of any artwork.
    <span>Starting at $5.00 /tube.</span>
    </p>
    </section>

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

    WebRTC Demystified: How to add audio/video call capabilities to your JS app

    Posted: 26 Apr 2021 10:11 PM PDT

    Hi guys!

    I've recently written a series of tutorials about WebRTC, the open source technology - used by Google Meet, Discord etc - that allows developers to quickly enable audio/video chat feature to web apps using JavaScript.

    https://ullal-aaron.medium.com/what-powers-google-meet-and-microsoft-teams-webrtc-demystified-step-by-step-tutorial-e0cb422010f7

    Hope you enjoy it, if you have any feedback please share it in the comments :)

    Cheers

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

    [Debugging: Python] I have a problem with a specific case of inputs, where the x-coordinates or the y-coordinates of the points are not all distinct. Please help with my implementation of a 2D-range tree.

    Posted: 26 Apr 2021 09:19 PM PDT

    import random def partition(l,k): #THIS FUNCTION RAISES AN ERROR FOR THE GIVEN TEST CASE IN MAIN while True: n = random.randint(0,len(l)-1) # a random number c = l[n] # 1st element swap temp = l[0] l[0] = l[n] l[n] = temp #to partition around pivot j = 1 for i in range(1,len(l)): if l[i] <= c: temp = l[j] l[j] = l[i] l[i] = temp j+=1 j -= 1 temp = l[0] l[0] = l[j] l[j] = temp cr = j + 1 if k == cr: return l[k-1] if cr > len(l) / 3 or cr < 2*len(l)/3: break if k < cr: print("called 1") return partition(l[0:cr-1],k) else: return partition(l[cr:],k-cr) class Node(object): def __init__(self): self._key = None self._line = None self._l = None self._r = None self._p = None self._area = (-999999999999,999999999999,-999999999999,999999999999) class BST(object): def __init__(self): self._root = Node() uni = Node() self._root._p = uni self._range_query = [] self._leaf = 0 def create(self,l): self._root = self.recreate(l,0) def recreate(self,l,h): if len(l) == 1: node = Node() node._key = l[0] return node ltemp = [] for i in l: ltemp.append(i[h%2]) mid = partition(ltemp,len(l)//2+1) leftl = [] rightl = [] for i in l: if i[h%2] >= mid: rightl.append(i) if i[h%2] < mid: leftl.append(i) midnode = Node() midnode._line = mid if leftl != []: midnode._l = self.recreate(leftl,h+1) if rightl != []: midnode._r = self.recreate(rightl,h+1) if h % 2 == 0: x1,x2,y1,y2 = midnode._area if leftl != []: midnode._l._area = (x1,mid,y1,y2) if rightl != []: midnode._r._area = (mid,x2,y1,y2) else: x1,x2,y1,y2 = midnode._area if leftl != []: midnode._l._area = (x1,x2,y1,mid) if rightl != []: midnode._r._area = (x1,x2,mid,y2) return midnode def common(self,r1,r2): x1,x2,y1,y2 = r1 x3,x4,y3,y4 = r2 if (x2<x3 or x4<x1 or y2<y3 or y4<y1): return False return True def query(self,area): self._range_query = [] self.requery(self._root,area) return self._range_query def requery(self,node,area): if node == None: return if node._line == None: if node._key == None: return x,y = node._key x1,x2,y1,y2 = area if (x >= x1 and x <= x2 and y >= y1 and y <= y2): self._range_query.append(node._key) return if self.common(area,node._l._area): self.requery(node._l,area) if self.common(area,node._r._area): self.requery(node._r,area) def countleaf(self): self._leaf = 0 self.recountleaf(self._root) return self._leaf def recountleaf(self,node): if node == None: return if node._key != None: self._leaf += 1 self.count(node._l) self.count(node._r) class Solution(object): def __init__(self, points): """ points : list of integer coordinates, each of form [x,y], that is [[x1,y1], [x2,y2], ... , [xN,yN]] """ ree = BST() self.tree = ree self.tree.create(points) pass def query(self, rect) -> int: return len(self.tree.query((rect[0][0],rect[0][1],rect[1][0],rect[1][1]))) if __name__ == "__main__": points = [[0, 0], [0, 0], [0, 0]] sol = Solution(points) 

    The error i get for any of the points described in the title is as follows:

    Traceback (most recent call last):

    File "main.py", line 393, in <module>

    print(sol.query([[0,0], [0,0]])) # 4

    File "main.py", line 373, in query

    return len(self.tree.query((rect[0][0],rect[0][1],rect[1][0],rect[1][1])))

    File "main.py", line 287, in query

    self.requery(self._root,area)

    File "main.py", line 303, in requery

    if self.common(area,node._l._area):

    AttributeError: 'NoneType' object has no attribute '_area'

    submitted by /u/Ali-ahmed_36
    [link] [comments]

    What’s a good free online course for learning Java

    Posted: 26 Apr 2021 02:25 PM PDT

    Iv been trying to code for a while I tried to make games but it wasn't really me coding it was just me copying tutorials word for word and then I tried discord bot development but I don't understand it that well. I realized that I'm putting the cart before the horse I need to learn how to code before I code.

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

    I have lots of HTML/CSS (Sass) experience, and have been building/deploying static sites for years. How big of a web dev "head start" is this?

    Posted: 26 Apr 2021 08:36 PM PDT

    I've really enjoyed building atleast a dozen sites from scratch for myself, families, friends, etc over the years, and have gotten quite good at the design aspect - but was never super serious about web dev. Over the past year or so I've been drawn to more in-depth development, and have realized that I want to do this everyday. Started learning javascript two weeks ago and it's like the more I learn the more I'm drawn in, I'm having a blast.

    What I'm wondering is, is my prior knowledge and experience using HTML and CSS a fairly large "head start" when learning more in-depth frontend dev?

    submitted by /u/aloneintheuniverse-
    [link] [comments]

    What is the best source to learn DSA?

    Posted: 26 Apr 2021 08:35 PM PDT

    There are thousands of sources available to learn DSA and it can be quite overwhelming. Can someone suggest some organised source to learn DSA?

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

    Looking for pair programming coding challenges

    Posted: 26 Apr 2021 08:14 PM PDT

    I'm teaching a buddy of mine java and I want to be able to do some exercises with him, preferably where we can both type. Does anyone know of some sites like this?

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

    How do I think of a unique project?

    Posted: 26 Apr 2021 11:59 PM PDT

    Everything that I can think of has already been done, and way better than I could do. For example, a calculator, or a blog, or social media. I'm not trying to make money, I'm just trying to practice what I've learned. I want to make something from scratch, but nothing I can think of is unique enough to where I can show off to a potential employer. Like, why would I show that I made yet another Q&A site when there's already Quora and Yahoo Answers?

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

    Need help with the midterm exam

    Posted: 26 Apr 2021 11:51 PM PDT

    You are given N words in the input, each word in the separate line. Words are sequences of small and capital letters. You have to convert all words, line by line, as follows: extract the subsequence of small letters from the original word, reverse it and put the reversed word into the original word, preserving the positions of letters.

    Let us follow the example word: aLObagTARx. The subsequence with small letters is: abagx, and reversed is xgaba. Now put it in the original word: xLOgabTARa.

    Input

    In the first line, you are given number N, where 1<=N<=100. In the following N lines your are given N words, each word in the separate line.

    Output

    N lines with converted words.

    Example

    Input: 3 aLObagTARx GRgameEAT FATegg Output: xLOgabTARa GRemagEAT FATgge

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

    Help with some SAS automation by maybe transforming it in to an array or constructing a DO loop.

    Posted: 26 Apr 2021 11:28 PM PDT

    ```

    proc sql; create table MMx as select distinct a.*, b.max_days_late as max_LD_1, case when b.max_days_late ^=. then b.max_days_late when b.max_days_late =. then 0 end as Ld from output.sample_y_n_deln a left join work.sample_y_n_deln b on a.contract=b.contract and a.delnum+1=b.delnum ;quit; 

    ```

    So I want to repeat this but with max _ld_2, max_ld_3 etc

    and delnum+2 the original delnum or +1 the max_ld_1 delnum, so n+1 times where I want it to end at n=12. I'm new to SAS and I'm not sure how a do loop fits in to an sql step or if I need to make this a data step and then loop it.

    https://imgur.com/a/JRMxjFs

    What I want is a simple loop that can do n+1 iterations of this logic. ``` left join work.MMx b on a.contract=b.contract and a.delnum+1=b.delnum

     left join work.MMx b on a.contract=b.contract and a.delnum+2=b.delnum left join work.MMx b on a.contract=b.contract and a.delnum+3=b.delnum left join work.MMx b on a.contract=b.contract and a.delnum+4=b.delnum left join work.MMx b on a.contract=b.contract and a.delnum+5=b.delnum left join work.MMx b on a.contract=b.contract and a.delnum+5=b.delnum left join work.MMx b on a.contract=b.contract and a.delnum+6=b.delnum left join work.MMx b on a.contract=b.contract and a.delnum+7=b.delnum left join work.MMx b on a.contract=b.contract and a.delnum+8=b.delnum left join work.MMx b on a.contract=b.contract and a.delnum+9=b.delnum left join work.MMx b on a.contract=b.contract and a.delnum+10=b.delnum left join work.MMx b on a.contract=b.contract and a.delnum+11=b.delnum left join work.MMx b on a.contract=b.contract and a.delnum+12=b.delnum 

    ``` but with a column names as max_ld_1, max_ld_2 etc.

    To add I've already executed this manually by repeating my first code,over and over again. I just want to learn how not to do that.

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

    Using AWS Cognito for user management?

    Posted: 26 Apr 2021 07:02 PM PDT

    I am trying to figure out how to use AWS Cognito for user management for a mock SaaS project I am doing. I have figured out how to make a user signup and log in but I am a bit lost on how to proceed from here. How do I use the JWT sent back from the login? I know I need it sent from the UI on every API call but the part I am not getting is how do I make sure it's valid (assuming they can make changes and such to it which would make it invalid). Also, how do you integrate it into your application? I guess I just don't see how this is going to work compared to something like passport.js (which I have used before including using JWT) - note I am using Node.js for this project.

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

    No comments:

    Post a Comment