본문 바로가기

분류 전체보기

irq 용어 출처 : http://jiming.tistory.com/189 [지밍이 블로그] - 인터럽트 처리 방법 - 중첩을 허용하지 않는 인터럽트 처리 방법(Nonnested Interrupt Handler) - 중첩을 허용한 인터럽트 처리 방법(Nested Interrupt Handler) - 재진입 인터럽트 처리 방법(Reentrant Interrupt Handler) - 우선순위를 적용한 간단한 인터럽트 처리 방법(Prioritized Simple Interrupt Handler) - 우선순위를 적용한 표준 인터럽트 처리 방법(Prioritized Standard Interrupt Handler) - 우선순위를 적용한 다이렉트 인터럽트 처리 방법(Prioritized Direct Interrupt Handl.. 더보기
STL sort example (c++) with class, struct #include #include #include #include using namespace std; class t_A{public:int a;int b;}; #defineMAX30 t_Ag_AA[3][MAX]; bool comp_A(const t_A& a, const t_A& b) {return a.b < b.b;} void test_A_sort(){t_A* g_A = g_AA[0]; //initfor (int i = 0; i < MAX; i++) {g_A[i].a = i;g_A[i].b = i%7;} sort(g_A, g_A + MAX, comp_A); for (int i = 0; i < MAX; i++) {printf("%d %d\n", g_A[i].a, g_A[i].b);}} ///////////.. 더보기
cpp 의 sort 사용하기 예제 #include #include #include #include using namespace std; bool cmp(int a, int b) { return a 더보기
청약 주택의 종류 다 같은 말임 공공주택 = 국민주택 = 공공분양 주택의 종류국민주택 등 (민간건설 중형국민주택 제외)국민주택외에 국가·지자체·LH·지방공사가 건설하는 85m2* 이하의 주택 및 공공건설 임대주택 중 85m2* 이하의 주택을 포함하여 ‘국민주택등’ 이라 합니다.민간건설 중형국민주택민간건설 중형국민주택은 국민주택의 일종이지만 청약가능통장 및 당첨자(입주자) 선정방식 등에 별도의 기준을 적용합니다.민영주택국민주택등을 제외한 주택을 민영주택이라 합니다.* 국민주택등 면적기준 : 수도권을 제외한 도시지역이 아닌 읍·면 지역은 주거전용면적이 100m2 이하의 주택 주택의 종류신청가능 청약통장주택청약 종합저축청약저축청약예금 청약부금국민주택 등 (민간건설.. 더보기
LG U+ 인터넷 유무선공유기 내부 ip 고정할당 하는 방법 (DHCP 고정할당) 홈 네트워크를 구성하다 보면,NAS 종류의 서버나 연결 장치들의 IP가 자주 바뀌어서, 곤란한 경우가 있습니다. 특히 ftp 나 smb(windows 공유) 종류의 연결을 사용하면 직접 IP address 를 입력해 주어야 하기 때문에,자동할당된 IP가 변경될 때마다, 설정에 들어가서 매번 바꾸어 주어야 합니다. 왠만한 수준의 공유기들은 내부 연결된 장치에 배정하는 ip address 를 고정시키는 기능을 가지고 있습니다. (mac address 기반) 이 포스팅에서는 LG U+ 공유기 설정 변경방법을 공유 합니다. 1. 웹 브라우저를 통해 LG U+ 공유기 설정 페이지(http://192.168.219.1)에 접속합니다.아래 유무선 공유기를 클릭해 줍니다. 2. 암호를 입력하여 access 한후 "DH.. 더보기
[five notes] Misty 2010. 11 - 나의 최애곡 더보기
[five notes] 파티 - but not for me, misty, l.o.v.e. , love letter, 사랑해(스윗소로우), 2013. 9 - 카페 빌려서 노래 파티 더보기
[five notes] 님과함께 with 더 한소리 예전 활동들 backup 해두는 중 2013.02 - 살다보니 이대에서 공연을 다 해보는 구나.동아리 '더한소리' 와 협주 더보기
[five notes] The christmas song 2012.12 - 크리스마스 공연 기념 더보기
[five notes] 승강기송 - 아카펠라 버전 2011. 10 - 한국 승강기안전기술원 주최 승강기송 더보기
[five notes] 작은별 2011. 3 - 대학로 A-bar 마지막 공연 원곡 : acacia 더보기
[five notes] ブラブなカップル_フリフリでチュ 2010. 10 - Gigahitz 정기공연중 더보기
[five notes]there will never be another you 2011. 11 - Gigahits 정기공연중 더보기
[five notes] spring, 애수 2011. 11 - gigahits 정기공연중 더보기
[Five Notes] Fly me to the moon 2011 년 3월 play us 공연중 - youTube link : https://www.youtube.com/watch?v=-G6j6Uj8ygA&t=0s&index=7&list=PL2496911713197F1F 더보기
SmartThings 연결하기 1. HUE장치(전구등)를 DH를 이용하여 ST에 바로 연결 2. ST - HUE hub - HUE 장치 로 연결 -> ST app 에서 HUE 를 인식시키면 쉽게 된다. 하지만 세부적인 컨트롤이 안되는 단점이 있다. 3. SmartApp 을 이용하는 방법 (팝콘이펙트를 줄인다)http://livebywant.tistory.com/8http://livebywant.tistory.com/9 1. google home 이 ST 를 통해서 HUE를 제어하는 방식 google home - SmartThings - HUEhttps://support.smartthings.com/hc/en-us/articles/214837343위 링크에 간단.. 더보기
home network 구성 아래 A, B, C, D 는 모두 한 network 안에 있는 것이 된다. 즉, 라우터(공유기) 아래에는 다 같은 network 이라고 보면된다. 즉, 서로 프린터나 파일공유가 된다는 이야기 임. 만약 중간에 wifi 공유기를 넣고 싶으면, 공유기 설정을 끄고 허브용도로만 사용하면 된다.(하지만 돈이 아깝다) 더보기
JAVA 입출력 출처 : JAVA programming참고하면 좋은 곳 : https://m.blog.naver.com/PostView.nhn?blogId=slrkanjsepdi&logNo=90140711064&proxyReferer=https%3A%2F%2Fwww.google.co.kr%2F@ . 1byte 입/출력 자바에서 처리하는 입력과 출력은 스트림(Stream)에 의존다시말해 모든 형태의 입력과 출력은 1byte의 흐름으로 이루어져 있다는것 *. 많이쓰이는 형식 @ . 1byte 출력 1. 콘솔 출력용 FileOutputStream fos = new FileOutputStream(FileDescriptor.out); BufferedOutputStream bos = new BufferedOutputStream(f.. 더보기
makefile(.mk) flag and blank issue If your flag has [blank] end of word, "ifeq" make miss understanding. ex)CONFIG_AAA := true [blank]ifeq ($(CONFIG_AAA), true)end So we need to use "strip" sentence when we use "ifeq" ifeq ($(strip $(CONFIG_AAA)),true) 더보기
SetUID / SetGID Special File Permissions 출처 : http://kin.naver.com/qna/detail.nhn?d1id=1&dirId=10302&docId=128463841&page=1#answer1안녕하세요.. 답변이 될지 모르겠으나 Set UID / Set GID에 대해 설명드리겠습니다. Set UID는 chmod 4000 권한으로 실행되며, Set GID는 chmod 2000 권한으로 실행합니다.둘다 설정하시려면 6000 권한으로 설정 하시면 됩니다.( 여기서 000은 일반 퍼미션 이며, 파일 실행권한은 꼭 가지고 있어야 합니다. ) 파일 퍼미션 설정이 기본적으로 rwx/rwx/rwx 로 이런 식으로 설정이 되나,Set UID설정 시 rws/rwx/rwx로 변경.Set GID설정 시 rwx/rws/rwx로 변경.둘다 설정 시 rws/r.. 더보기
Sticky broadcast intent 원문 : http://newbiehc.blogspot.kr/2011/03/sticky-intent-sticky-broadcast-intent.htmlSticky intent (또는 Sticky broadcast intent)Sticky intent 는 말 그대로 끈적끈적한 intent 를 말합니다. ^^; 끈적끈적해서 자신의 역할을 수행한 뒤에도 메모리에 딱 달라붙어서 사라지지 않고 남아있는 것이죠. 보통의 broadcast 된 intent는 자신과 관련된 모든 Broadcast receiver 를 거치고 나면 임무 완료되어 ‘즐거운 퇴근길에 올라’ 메모리 상에서 제거됩니다. 하지만 Sticky intent는 임무 완료 후에도 메모리에 남아 있는다는 사실! (정확하진 않지만 해당 event에 대한 다음 .. 더보기
The result of getmntent() function The example codeFILE* fp = setmntent("/proc/mounts", "r"); if (fp == NULL) { ALOGE("Error opening /proc/mounts: %s", strerror(errno)); return -errno; } // Some volumes can be stacked on each other, so force unmount in // reverse order to give us the best chance of success. std::list toUnmount; mntent* mentry; while ((mentry = getmntent(fp)) != NULL) { if (strncmp(mentry->mnt_dir, path, path_len).. 더보기
Android uid 위치 (linux에서의 /etc/passwd 대신) /android/system/core/include/private/android_filesystem_config.h 45#define AID_ROOT 0 /* traditional unix root user */ 46 47#define AID_SYSTEM 1000 /* system server */ 48 49#define AID_RADIO 1001 /* telephony subsystem, RIL */ 50#define AID_BLUETOOTH 1002 /* bluetooth subsystem */ 51#define AID_GRAPHICS 1003 /* graphics devices */ 52#define AID_INPUT 1004 /* input devices */ 53#define AID_AUDIO .. 더보기
윈도우10(ms windows 10) 크리에이터 업데이트 이후 폰트 깨짐, 사라짐, 버그 문제 발생한 이후에도,언어 영어로 돌리면 되겠지? 했는데 의외로 심각하더군요. 결국 아래 블로그의 3번째 방법으로 롤백하니 3분도 안걸려서 이전버전으로 돌아왔습니다. http://blog.naver.com/PostView.nhn?blogId=serotonian&logNo=221016365749 큰 업데이트는 다음부터 백업해놓고 실행해야겠네요.여튼, MS 실망입니다. 더보기
Intent 보내기 제한 (restriction) of Android /android/frameworks/base/core/res/AndroidManifest.xml 72 73 protected-broadcast 로 속성을 주면 system process 만 이 intent 를 보낼 수 있음 더보기
filesystem 잡다한 내용 filesystem 의 파일 삭제 순서1. unlink 호출2. ext4 -> mata data 삭제 (~10초)3. ext4 -> raw data 삭제(TRIM) (~20초) : 삼성외에는 이것을 하지 않는다.4. batched discard : 구글이 만든 기능으로 하루에 한번정도 mata data 만 삭제되고 raw data 가 남아있는 데이터를 찾아서 삭제해줌. 즉, 3번이 수행되지 않은 부분에 수행해줌. securediscard 는 실제로는 잘 쓰지 않고 FTL 에서도 잘 보장되지 않는다. ext4 metadata 종류- bitmap- inode- directory entry : 파일 raw 데이터의 일종이나 내부적으로 해당 디렉토리에 어떤 파일(inode)들이 있는지 기재되어 있다. files.. 더보기
부동산 거래관련 잡다 지식 부동산 중계 수수료일반사업자일 경우 : 중계료 + 부가세(10%)간이사업자일 경우 : 중계로 + 부가세(3%) 일반사업자란 = 연매출 4800만원을 넘는 공인중계사국세청 홈택스에서 사업자등록번호를 입력하여 확인혹은 중개사무실에 걸린 사업자 등록증 확인 영수증 요청해서 연말정산때 입력해야 함 더보기
Calculation real size from results of 'df' and 'stat' "df" show result based on KB unit."stat" using block unit that it can be get from "stat"'s result. # df -h /efsFilesystem Size Used Avail Use% Mounted on/dev/block/mmcblk0p16 12M 712K 11M 6% /efs # df /efsFilesystem 1K-blocks Used Available Use% Mounted on/dev/block/mmcblk0p16 12016 712 11304 6% /efs 1K-blocks : total block count12016(KB)/1024 = 11.734712(KB) # stat -f /efs File: "/efs" ID: d360.. 더보기
Can't access samba directory by windows after installing wine After installing wine, my samba shared directory of Ubuntu PC couldn't access by windows. Checking samba log $ cat /var/log/samba/log.no-onegun-lee06 #31 smbd(main+0x15b4) [0x7f9b7de9b6c4] #32 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f9b79fd6ec5] #33 smbd(+0x7a96) [0x7f9b7de9ba96][2017/03/04 14:01:46.815788, 0] ../source3/lib/util.c:801(smb_panic_s3) smb_panic(): calling panic.. 더보기
strcmp 함수의 모호한 return value strcmp 함수는 스트링간 포함여부를 찾는데는 사용하기 어렵다. strstr 이나 strchar 를 사용해야 한다.두 string 이 완전히 동일한지만 판단이 용이하다. #include //#include #include #include #include #include #include #include // O_WRONLY#include // strlen() #define BUFF_SIZE 1024 int main(){ const char* standard = "12345"; const char* standard2 = "0123456"; const char* wrong = "a12"; const char* part = "234"; int rst=0; rst = strcmp(standard, standar.. 더보기