본문 바로가기

카테고리 없음

2020-06-06 18시 개발자 글 모음 | "슬기로운 파이썬 트릭 5, 6 - 반" 외 10개 이야기

[Container 시리즈] 05. Kuberbetes란? by 오픈소스컨설팅


    포스트코로나 시대, 미국 IT업계 변화에 어떻게 대처할까? by 홍정모 about HTTPS


      02 엑셀 - 데이터 전처리 - 첫행 첫열 - 아래한글 표는 잊어야! by 이재석


        [오픈카톡 링크] DTM 개발자들의 수다방 by 황대영

        • DTM (Dev Tutorial More) Wiki 메인 페이지 개편 안내


        django shell CRUD #1 by 황은지 about Django,SQL

        • filter() : 조건에(특정 컬럼의 값을 지정하여) 해당되는 레코드를 Queryset에 담는다
        • filter ( pk = 1 ) Model
        • exclude ( pk = 1 ) Model


        django shell CRUD #2 by 황은지 about Django

        • filter ( id = 1 ) Model
        • filter ( pub_date__year = current_year ) Model
        • all ( ) [ 3 : 6 ] Model


        django shell CRUD #3 by 황은지 about Django

        • CharField ( max_length = 200 ) votes = models
        • filter ( choice_text = 'one' ) que [ 0 ]
        • exclude ( choice_text = 'one' ) que [ 0 ]


        35. 오픈소스 이미지 편집 프로그램 김프와 GTK+ 시작 by 허준회


          django views 함수형 vs 클래스형 & 제네릭 by 황은지 about Django

          • method == 'GET' : return HttpResponse ( 'result' ) if request
          • request ) : return HttpResponse ( 'result' ) def post ( self
          • request ) : return HttpResponse ( 'result' ) def head ( self


          [Java] Multi Thread환경에서 동시성 제어를 하는 방법 by 정준

          • public class CountingTest { public static void main(String[] args) { Count count = new Count(); for (int i = 0; i < 100; i++) { new Thread(){ public void run(){ for (int j = 0; j < 100; j++) { System
          • 여러 스레드에서 동시에 count변수에 접근한다면 동시에 1번 동작을 진행하여 같은 count값을 조회할 것이고 두 개의 스레드가 1을 더하는 조회 로직을 실행한다고 해도 2가 더해지는 것이 아닌 1만 더해지는 동작이 발생할 수 있습니다
          • start(); } } } class Count { private int count = 0; private Lock lock = new ReentrantLock(); public int view() { return count++; } public Lock getLock(){ return lock; }; }


          슬기로운 파이썬 트릭 5, 6 - 반복과 이터레이션 & 딕셔너리 트릭 by 전시흠 about Python

          • 9): yield i def squared(seq): for i in seq: yield i * i >>> chain = squared(integers()) >>> list(chain) [1
          • def negated(seq): for i in seq: yield -i >>> chain = negated(squared(integers())) >>> list(chain) [-1
          • name_for_userid = { 382: "Alice" } # 지양해야 되는 코드 def greeting(userid): if userid in name_for_userid: return f"Hi {name_for_userid[userid]}" else: reutrn f"Hi There" # 더 나은 코드 def greeting(userid): return f"Hi