Code Monkey home page Code Monkey logo

kottans-backend's Introduction

kottans-backend

Git Basics

I've already done it: Git and GitHub

Unix Shell

I've got a lot of new information, it's been complicated and interesting. I think I don't afraid command line anymore :)

Git Collaboration

I've already done it: Git and GitHub

NodeJS Basics 1

learnyounode:

stream adventure:

functional-javascript-workshop:

Memory Management

What's going to happen if program reaches maximum limit of stack ?

If the maximum stack size has been reached, we have a stack overflow and the program receives a Segmentation Fault. While the mapped stack area expands to meet demand, it does not shrink back when the stack gets smaller.

What's going to happen if program requests a big (more then 128KB) memory allocation on heap ?

The heap is enlarged via the brk() system call (implementation) to make room for the requested block.

What's the difference between Text and Data memory segments ?

The difference between data and text memory segment is: -Data segment is contain static variables which can be modified. -Text segment is read-only and stores all code.

08048000-08053000 r-xp 00000000 fc:00 1444599    /bin/cat
08053000-08054000 r--p 0000a000 fc:00 1444599    /bin/cat
08054000-08055000 rw-p 0000b000 fc:00 1444599    /bin/cat
08292000-082b3000 rw-p 00000000 00:00 0          [heap]
b73a6000-b75a6000 r--p 00000000 fc:00 921568     /usr/lib/locale/locale-archive
b75a6000-b75a7000 rw-p 00000000 00:00 0
b75a7000-b774d000 r-xp 00000000 fc:00 2227752    /lib/i386-linux-gnu/libc-2.15.so
b774d000-b774f000 r--p 001a6000 fc:00 2227752    /lib/i386-linux-gnu/libc-2.15.so
b774f000-b7750000 rw-p 001a8000 fc:00 2227752    /lib/i386-linux-gnu/libc-2.15.so
b7750000-b7753000 rw-p 00000000 00:00 0
b7758000-b775a000 rw-p 00000000 00:00 0
b775a000-b775b000 r-xp 00000000 00:00 0          [vdso]
b775b000-b777b000 r-xp 00000000 fc:00 2227760    /lib/i386-linux-gnu/ld-2.15.so
b777b000-b777c000 r--p 0001f000 fc:00 2227760    /lib/i386-linux-gnu/ld-2.15.so
b777c000-b777d000 rw-p 00020000 fc:00 2227760    /lib/i386-linux-gnu/ld-2.15.so
bf9ad000-bf9ce000 rw-p 00000000 00:00 0          [stack]

The articals were complicated to understanding. But I figured it out :)

The last task was really difficult for me. The command in description didn’t work for my MAC, so I had to install my virtual machine with linux. And then it worked! I’ve spent a few days to understand where is a mistake. I’m afraid, I still don’t understand why is that command don’t work on my MAC :(

TCP. UDP. Network

Internet 101:

Networking for Web Developers:

Http & Https

Practice:

curl https://api.github.com/users/jsmuse
curl -i https://api.github.com/users/jsmuse
curl  https://api.github.com/gists/starred
curl --user "jsmuse:BLABLABLA" https://api.github.com/gists/starred
curl --user "jsmuse:*" https://api.github.com/gists/starred
curl --user "jsmuse" https://api.github.com/gists/starred

Additional task:

curl -i https://api.github.com/orgs/kottans/repos

curl --user 'jsmuse' -X POST -d \
   -d '{ \
        "title": "New issue", \
        "body": "We should have one", \
      }' \
   https://api.github.com/repos/jsmuse/kottans-backend/issues

Questions:

Name at least three possible negative consequences of not using https:

Someone can eavesdrop your messages, someone can intercept and manipulate the message, you can’t identify who visits your website

Explain the main idea behind public key cryptography in few sentences:

Any person can encrypt a message using the receiver's public key, but that encrypted message can only be decrypted with the receiver's private key.

You are creating an application for pet clinic. You need to implement the following functionality:

POST request to add new pet. Data is sending in request body. Status code: 200 OK

GET request to search pet. Data is sending in request query params. Status code: 200 OK

PUT request to change name of an existing pet. Data is sending in request body. Status code: 200 OK

PUT request to add new info about pet's health. Data is sending in request body. Status code: 201 Created

POST request to assign a pet to a particular doctor in the clinic. Data is sending in request body. Status code: 200 OK

POST request to register an appointment for a pet. Data is sending in request body. Status code: 201 Created

Patterns

kottans-backend's People

Contributors

jsmuse avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.