LEP: 11
LEP-Scope: lunant
Title: 서비스 애플리케이션 배포 표준
Author: Hong MinHee [email protected]
Status: Active
Content-Type: text/x-markdown; charset=utf-8
Content-Language: ko-kr
Created: 04-Aug-2010
서비스 애플리케이션 배포 표준
| #!/bin/bash | |
| date=`date "+%Y-%m-%dT%H_%M_%S"` | |
| HOME=/YOUR/LOCALHOME | |
| SERVER=ID@HOST | |
| DIR=backup | |
| rsync -azP \ | |
| --bwlimit=500 \ | |
| --delete \ | |
| --delete-excluded \ |
| #!/bin/bash | |
| VENV=$1 | |
| if [ -z $VENV ]; then | |
| echo "usage: runinenv [virtualenv_path] CMDS" | |
| exit 1 | |
| fi | |
| . ${VENV}/bin/activate | |
| shift 1 | |
| echo "Executing $@ in ${VENV}" | |
| exec "$@" |
LEP: 11
LEP-Scope: lunant
Title: 서비스 애플리케이션 배포 표준
Author: Hong MinHee [email protected]
Status: Active
Content-Type: text/x-markdown; charset=utf-8
Content-Language: ko-kr
Created: 04-Aug-2010
서비스 애플리케이션 배포 표준
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdint.h> | |
| #include <stdbool.h> | |
| #include <string.h> | |
| #include <math.h> | |
| typedef uint32_t digit; // should be able to represent 0..3*BASE-1 | |
| typedef uint64_t digit2; // should be as large as maxdigit + maxdigit * maxdigit | |
| #define BASE 1000000000u |
| <?php | |
| class DBStorageStream | |
| { | |
| const DDL = <<<EOF | |
| CREATE TABLE IF NOT EXISTS `table_dbfs` ( | |
| `path` VARCHAR(255) NOT NULL PRIMARY KEY, | |
| `data` LONGTEXT, | |
| `is_dir` CHAR(1) NOT NULL DEFAULT 'N', | |
| `created_at` DATETIME, |
| // This hack works with com.android.tools.build:gradle:0.2, won't work in later version without modification | |
| apply plugin: 'android' | |
| targetCompatibility = 1.6 | |
| sourceCompatibility = 1.6 | |
| android { | |
| target = 'android-14' |
변경이력
AsyncTask는 API Level 13이상 버전이 설치된 기기에서 android:targetSdkVersion가 13이상 일 때 여러 개의 AsyncTask가 동시에 실행되어도 순차적으로 호출됩니다.
기기의 버전뿐만 아니라 targetSDK 설정에도 영향을 받으므로 target SDK 설정을 변경할 때 유의해야 합니다. 그리고 가능하다면 목적별로 스레드풀을 분리하고, 스레드의 갯수가 늘어나는 것에 대비해 무작정 큰 최대값을 주는것보다는 Timeout과 RejectionPolicy로 관리를 하는 편이 바람직합니다.
| /* | |
| * Copyright (C) 2013 LevelUp Studio | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |