내 맘대로 위클리 뉴스 - 2017년 18주(05월 05일)
Django with Python News
-
Centralised logging for Django, Gunicorn and Celery using ELK Stack
- ELK 스택을 기반으로 Django, Gunicorn, Celery를 사용하여 로그를 수집하고 분석하는 방법을 소개하는 기사
- Step by Step으로 진행되기 때문에 쉽게 접근할 수 있지만, macOS를 기반으로 설명하고 있기 때문에 *NIX 사용자는 apt-get을 적극 활용해 보자!(윈도우는...)
-
Django Middlewares and the Request/Response Cycle
- 장고가 HTTP Request를 어떻게 해당 뷰로 라우팅하고, 미들웨어는 어떤 역할을 하는지 소개하는 기사
You can use Django’s RequestFactory to mock up a request. It might look something like this:
from django.test import RequestFactory
from .views import some_view_to_test
from somewhere import MiddlewareToTest
factory = RequestFactory()
request = self.factory.get('/some/url')
middleware_modified_request = MiddlewareToTest.process_request(request)
response = some_view_to_test(middleware_modified_request)
middleware_modified_resposne = MiddlewareToTest.process_response(response)
-
Multiple forms on one page in Django
- 하나의 View(Page)에 여러 Form을 출력하는 방법을 소개하는 기사
How it works? Basically, it's a modified code of FormMixin from Django core. We have a couple of additional methods, like get_forms_classes, get_active_form_number etc. View takes a list of forms, instantiates them and adds to template context. Thanks to that, we know which form was submitted (look at get_active_form_number method). Then, we just take proper form, checks if it's valid and run form_valid or form_invalid method (it's actually inside ProcessFormView).
-
Deep Learning in 7 lines of code
tensorflow
와tflearn
를 소개하는 튜토리얼 기사- 코드가 정말 마법처럼 짧은데, 내가 하려는 일은 그렇지 않다는걸 알고 있음
The essence of machine learning is recognizing patterns within data. This boils down to 3 things: data, software and math.
-
Building and Exploring a Map of Reddit with Python
- Reddit에서 가장 인기있는 10,000개의 인덱스를 작성하고, 분석하는 방법을 소개하는 튜토리얼 기사
-
Matplotlib
의 팁을 소개하는 기사
iOS, Android and Windows Mobile News
- Interviewing Android Developers
- 안드로이드 개발에 필요한 필수 기술을 인터뷰라는 이름으로 소개하는 기사라고 판단됨
- 여기있는 기술과 플러그인만 배워도 일년이 모자랄 듯!
JavaScript
-
Create lean Node.js image with Docker multi-stage build
- 여러가지 필요한 도커 이미지를 각각 작성하고, 해당 이미지를 사용해서 최종 도커 이미지를 생성 하는 방법을 소개하는 튜토리얼 기사
-
Basic Functional Programming With Async/Await
- 자바스크립트에 내장 된 배열을 사용하여 비동기 함수(Async/Await)에 대한 일반적인 문제점과 이것을 해결하는 방법을 설명하는 기사
-
A step-by-step guide to building a simple chess AI
minimax
알고리즘을 사용해서 Chess AI를 만들어보는 튜토리얼 기사
-
- Redux를 스스로 구현해보는 튜토리얼 기사
Etc
- Visual Debugging
- PyCharm을 사용해서 디버깅 하는 방법을 설명하는 스크린캐스트
- 기존에 PyCharm을 사용하시던 분들은 20분 이후부터 보셔도 좋을 듯!