본문 바로가기

분류 전체보기

git commit message guideline Rules for a great git commit message styleSeparate subject from body with a blank lineDo not end the subject line with a periodCapitalize the subject line and each paragraphUse the imperative mood in the subject lineWrap lines at 72 charactersUse the body to explain what and why you have done something. In most cases, you can leave out details about how a change has been made. Information in com.. 더보기
shell script #1 #!/bin/bash FILE_NAME="testfile"FILE_SIZE=("100k" "200k" "300k") for f_size in "${FILE_SIZE[@]}"; dodd if=/dev/zero of="./sdb1/"$FILE_NAME"_"$f_size".ssf" bs=$f_size count=1dd if=/dev/zero of="./sdb2/"$FILE_NAME"_"$f_size".mdb" bs="1024" count=1dd if=/dev/zero of="./sdb2/"$FILE_NAME"_"$f_size".eve" bs="1024" count=1dd if=/dev/zero of="./sdb2/"$FILE_NAME"_"$f_size".db2" bs="1024" count=1done #!/b.. 더보기
cJSON Programming Project에서 json을 사용하기로 하였습니다.그리하여 어떤 json parser를 사용할까 하다가 아래의 cjson parser 를 사용하기로 하였습니다. http://sourceforge.net/projects/cjson/ 이유는 가장 간단하고 사용하기 편리한 듯 하였기 때문입니다.개인적으로 simple is the best 라는 믿음이 아주 강하기 때문입니다. 아시다시피 json은 간단히 key = value 라는 구조를 가지고 있습니다. cJSON.h 파일을 열어보시면 다음과 같이 매크로들을 확인할 수가 있습니다.아마 아래 미리 정의된 매크로들을 주로 사용할 것입니다. /* Macros for creating things quickly. */#define cJSON_AddNullToObject.. 더보기
Philips Hue Lightstrip Plus 인상 깊은 제품임에는 틀림이 없다.약간은 DIY 스럽지만,,, 많은 영감(?) 혹은 느낌을 줄 수 있는 조명임에는 틀림이 없으며,필립스의 향후 조명 시장에 긍정적인 역할을 할 수 있는 제품임에는 틀림이 없을 듯 하다. 먼저 아래의 영상을 보자 아래는 CNET에서 소개된 내용이다.http://www.cnet.com/products/philips-hue-lightstrip-plus/ 인터넷이 연결되는 조명 끈(?)...설치도 쉬울뿐더러, 다양한 조명색을 통하여 공간에 새로운 감성을 불어 넣는 듯 하다. 아래는 가젯에 소개된 내용http://www.engadget.com/2015/09/03/philips-hue-lightstrips-2015-ifa/ 이외에도 필립스에서는 다양한 IoT 기반의 조명 제품을 출시.. 더보기
Ubuntu newsletter (Issue #413 (2015/04/13 - 2015/04/19) ) #Issue 413https://wiki.ubuntu.com/UbuntuWeeklyNewsletter/Issue413 이번호에서 다루어진 목록은 아래와 같습니다. In This Issue Announcement: New Ubuntu Membership Board Members Ubuntu Stats Call for nominations for the LoCo Council South East Linux Fest UbuCon LoCo Events Lubuntu Blog: Client side decorations fixes Not just a review, but a video review, of Kubuntu Vivid David Planella: The Ubuntu Community Donations .. 더보기
lighttpd 403 forbidden for php files ubuntu에서 간단히 웹서버를 실행하여 일부 웹페이지를 테스트 할려고 하는데.... 403 Forbidden Error 가 나오는 것이다. 인터넷을 검색한 결과... 일단 원인은 1. php 미설치 $> sudo apt-get install php5 2. php5-cgi package 미설치 $> sudo apt-get install php5-cgi 3. config에 fastcgi 모듈 재설정 $> sudo lighttpd-enable-mod fastcgi fastcgi-php 4. 마지막으로 다시 웹서버 다시 로딩 $> sudo service lighttpd force-reload 이제 다시 웹페이지를 접속하면 아래와 같이... 굿... 더보기
Facebook의 IoT 플랫폼인 Parse에 대해서 출처: http://techcrunch.com/2015/03/25/facebooks-parse-launches-new-iot-service-debugging-tool-and-more/ 2013년도에 Facebook에서는 platform-as-a-service(?)의 Parse 라는 플랫폼 회사를 사들였습니다.이후 최근에 해당 Parse conference에서 IoT 지원에 대하여 공개를 하였네요. Parse started out as a mobile backend service, but as more and more devices come online, the service also wants to offer services for the Internet of Things. The first step h.. 더보기
Onion Omega Project (동전 만한 크기의 IoT 모듈) 참고 사이트: https://www.kickstarter.com/projects/onion/onion-omega-invention-platform-for-the-internet-of Tiny dev board with Linux & WiFi + REST API + App Store + High Quality Tutorials + Cool Projects + Vibrant Dev Community = Our Vision 먼저 H/W 스펙을 보면 다음과 같습니다. Dimensions: 28.2mm x 42mm (1.1" x 1.7")CPU: Atheros AR9331 400MHZ MIPS 24KRAM: 64MB DDR2 400MHzFlash: 16MBWiFi: 802.11b/g/n 150MbpsEtherne.. 더보기
scons 개념 및 사용법 AllSeen Alliance의 AllJoyn을 컴파일 하기 위해서 scons을 사용해야 된다는 것을 알게 되었고,그 필요에 의하여 scons에 관련해서 잠깐 조사 및 공부한 내용을 정리할 목적입니다. scons 공식 홈페이지: http://www.scons.org/scons 기본 사용법: http://egloos.zum.com/bruceKIM/v/3399880 SConstructor 사용법: http://pkgpl.org/2014/07/27/sconstruct_basic/scons wiki: http://en.wikipedia.org/wiki/SCons, http://ko.wikipedia.org/wiki/SCons 가장 기본적으로 생각할 것은 scons 는 Python 기반의 빌드툴입니다.등장한지는 .. 더보기
Ubuntu newsletter (Issue #411 (2015/03/30 - 2015/04/05) ) 본 글은 매주 발행되는 Ubuntu Newsletter 중 본인이 관심 있는 부분을 설명하는데 중점을 둡니다.그러므로 자세한 내용은 원문을 참조하시는 것이 가장 좋습니다. 원문: https://wiki.ubuntu.com/UbuntuWeeklyNewsletter/Issue411 이번 내용은 다음과 같습니다. In This Issue Ubuntu Stats LoCo Events Kubuntu: Kubuntu Sweaters Added to Hellotux Shop Ubuntu App Developer Blog: Return of the Ubuntu UI Toolkit Forums Council: Forum Council Addition Barry Warsaw: Creating Python Snaps Ron.. 더보기
AllJoyn Overview 동영상 및 PDF AllSeen의 AllJoyn Framework Overview 영상입니다.개념 잡기에 좋은 동영상입니다. PDF 자료: https://wiki.allseenalliance.org/_media/alljoyn_technical_overview_training.pdf AllJoyn의 프레임워크에 관련해서 현재 가장 잘 알 수 있는 영상이다. 다소 영어가 부담스럽지만 계속 듣다보면...참고로 개인적인 생각이지만, 현재 AllSeen Alliance에서도 AllJoyn의 문서화를 신경 쓰고는 있는 듯 하다. 무엇보다도 AllSeen의 AllJoyn의 프레임워크가 성공하기 위해서는 개발자들의 쉬운 접근 또한 중요하기 때문에 Documentation 또한 무척 중요하지 않을까 한다. Documentation: ht.. 더보기
AllJoyn의 High-Level System Architecture (1) 참고: https://allseenalliance.org/developers/learn/core/standard-core High-Level System Architecture 먼저 Clients, Services 그리고 Peers의 아키텍쳐에 대해서 알아보자.아래와 같이 아키텍쳐는 구성되어 있다. System and Language Bindings (optional) The AllJoyn system is written in C++, so for users of this language, no bindings are required. However, for users of other languages, such as Java or JavaScript, a relatively thin translatio.. 더보기
AllJoyn framework 리눅스상에서 컴파일 AllSeen Alliance에서의 open-source framework인 AllJoyn을 컴파일 하는 방법에 대해서 간단히 정리하도록 하겠습니다. 먼저 AllJoyn 이란?AllJoyn™ is a collaborative open-source software framework that makes it easy for devices and apps to discover and communicate with each other. It supports many language bindings and can be easily integrated into platforms small and large. The AllJoyn framework defines a common way for devices and a.. 더보기
AllSeen Alliance 란 AllSeen Alliance: https://allseenalliance.org/ Our MissionTo enable widespread adoption and help accelerate the development and evolution of an interoperable peer connectivity and communications framework based on AllJoyn for devices and applications in the Internet of Everything. AllJoyn이라는 프레임워크를 기반으로 IoT를 개발해가는 단체이다.메이저 업체로는 LG, Microsoft, Qualcomm, SHARP, SONY, Haier 등이 있으며 수많은 업체들이 멤버로 참여하고.. 더보기
Ubuntu newsletter (Issue #407 (2015/03/02 - 2015/03/08) ) 본 글은 전적으로 Ubuntu에서 매주 발행하고 있는 뉴스 소식지를 개인적으로 관심 있는 부분만 추려내어서정리하는 글입니다. 좀더 자세한 내용은 본문을 참조하는 것이 가장 좋습니다.https://wiki.ubuntu.com/UbuntuWeeklyNewsletter/Issue407 이번 이슈에서 다루어지는 내용은 다음과 같습니다. In This Issue Ubuntu at the Mobile World Congress DMB election results Ubuntu Stats Recent Ubuntu Myanmar LoCo Team Activities LoCo Events Michael Hall: My SCaLE 13x and UbuCon review Randall Ross: On Writing Soft.. 더보기
Guide to Eclipse with C++11 standard Guide to Eclipse with C++11 standardhttp://www.eclipse.org/forums/index.php/mv/msg/282618/787571/ Make a new C++ project (currently I have only tested "Empty Project -> Linux GCC". Others can verify on non-Linux platforms) Default options for everything Once created, right-click the project and go to "Properties" C/C++ Build -> Settings -> Tool Settings -> GCC C++ Compiler -> Miscellaneous -> Ot.. 더보기
Ubuntu newsletter (Issue #404, 2015/02/09 ~ 2015/02/15) Ubuntu newsletter (Issue #404, 2015/02/09 ~ 2015/02/15) 원문: https://wiki.ubuntu.com/UbuntuWeeklyNewsletter/Issue404 1. Ask Ubuntu Top 5 Questions this week 스크린의 특정 좌/우 넓이를 확인할 수 있는 방법? http://askubuntu.com/questions/583698/how-do-i-measure-dimensions-on-screen-without-using-a-ruler터미널에서 모니터의 해상도를 확인할 수 있는 방법? http://askubuntu.com/questions/584688/how-can-i-get-the-monitor-resolution-using-the-co.. 더보기
VLC 로 RTSP/RTP Streamming 하기 초간단 방법입니다.VLC 에 새롭게 추가된 VLM 기능을 이용하면 됩니다.VLM 은 VideoLan Manager로 VLC를 이용하여 VOD를 스트리밍 할 수 있도록 추가된 단일 인터페이스라고 보면 됩니다.자세한 것은 아래 위키를 참고하세요https://wiki.videolan.org/Documentation:Streaming_HowTo/VLM/ VLC > 도구 > VLM을 선택해서 미디어 관리자 형식을 VOD를 선택합니다. 그 다음 입력을 선택하여 스트리밍할 파일을 선택합니다. 이름을 입력합니다.이름은 rtsp://127.0.0.1/rtp_test1 과 같이 사용됩니다. 이제 추가를 클릭하면 아래와 같이 미디어 관리자에 스트리밍 될 목록이 생깁니다. 이제 새로운 VLC나 RTSP 클라이언트를 실행 후,.. 더보기
IoT (Internet of Things) IBM의 2014년 IoT 분석 보고서 요약본이다. http://www.slideshare.net/HorizonWatching/internet-of-things-a 2014년도의 IoT 트랜드를 대략 15가지로 분류하였다. Trends - From Hype to Reality: IoT will become real... - Wireless Sesnors and Devices: smaller, smarter, and cheaper - Machine to Machine (M2M): wireless communications - IoT Apps: new business apps required - Industry Partnerships - Big Data to get Bigger: - Clouds Requir.. 더보기
DHCP Probe 소스 코드 이전에 작성했던 현재 네트워크에서 DHCP 서버를 확인하는 글을 참고하여http://sound79.tistory.com/169 간단하게 DHCP Probe 코드를 작성해 보았습니다.소스코드를 보면 간단합니다. DHCP 패킷을 하나 만들어서 전송한 후 DHCP Offer 메시지를 일정 시간 기다립니다.DHCP Offer 메시지를 수신하면 현재 네트워크에 DHCP Server가 존재한다고 판단하도록 되어 있습니다. DHCPProbe.h /* * DhcpProbe.h * * Created on: 2014. 8. 17. * Author: sound79@gmail.com */ #ifndef DHCPPROBE_H_ #define DHCPPROBE_H_ #include #include #include #include.. 더보기
ubuntu 12.04 에서 gcc-4.7로 갈아타기 현재 사용하고 있는 우분투 리눅스가 12.04 입니다.아직 쓸만하고 공식적으로 지원도 하고 있는 버전이라, 큰 무리 없이 메인으로 사용하고 있습니다. 오늘 갑자기 gcc로 컴파일을 할려고 하는데 c++11이 지원이 되지 않는 것입니다. 흠... 확인해보니 현재 우분투 12.04에 설치된 gcc version이 4.6 이어서 지원이 되지 않는 것이었습니다. 그래서 일단 해당 버전에서 gcc만 4.7로 업그레이드 하기로 하였습니다. 다음 사이트를 참고하시면 됩니다. http://www.swiftsoftwaregroup.com/upgrade-gcc-4-7-ubuntu-12-04/ Install sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get .. 더보기
Apple 9월 행사 공식 영상 모음 Apple 공식 영상 모음입니다. 더보기
현재 네트워크에서 DHCP 서버가 동작되고 있는지 확인? 현재 연결된 네트워크에서 DHCP 서버가 동작 되고 있는지? 즉 이미 DHCP 서버가 동작 되고 있는 네트워크 인지를 판단해야 할 필요성이 생겼다. 먼저 DHCP 프로토콜에 대해서 간단히 살펴 보면 다음과 같습니다. DHCP: http://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol (figure1 refer wikipedia) 위의 그림과 같이 (1). Client -> Server 로 DISCOVERY를 Broadcast : DHCP 서버가 있는지 패킷을 브로드 캐스팅한다. (2). Server -> Client에서 OFFER로 Unicast : DHCP 서버는 DISCOVERY 메시지를 받으면 해당 Client에게 이 IP 사용할래? 라고 .. 더보기
Ubuntu에 Dropbox 설치하기 Ubuntu에 Dropbox 설치를 하여 Local 폴더처럼 사용해 보자...결론은 정말 간단하다. Dropbox에서 제공하는 클라이언트를 그냥 설치하면 끝... 팍. ^^English: https://www.dropbox.com/en/install?os=lnx한국어: https://www.dropbox.com/ko/install?os=lnx Install Dropbox via command lineThe Dropbox daemon works fine on all 32-bit and 64-bit Linux servers. To install, run the following command in your Linux terminal.32-bit:cd ~ && wget -O - "https://www.drop.. 더보기
스크린샷 프로그램 (Shutter) 리눅스에서 가끔씩 스크린샷을 해야 할때가 있습니다.뭐 물론... PrintScreen Key를 이용하여 전체 스크린을 저장한 다음 이미지 프로그램을 이용하여 특정 부분을 잘라낼 수는 있습니다.하지만 뭔가 부족하고 불편합니다. 그래서 좋은 프로그램이 없나 검색을 해보니... shutter를 알게 되었습니다. 아래 그림처럼 뭔지 모를 뜬구름 화면... 흠.. ^^ shutter 공식 홈페이지: http://shutter-project.org/간단히 사용해 본결과 좀 불편한 감이 있다. 그러나 다른 대안이 별로 없는 관계로... 좀더 자세한 내용을 알고 싶으신 분은 아래 블로그에서 정보를 얻을 수 있을 듯...http://edoli.tistory.com/101 더보기