상대경로를 사용중일 경우 초기경로를 지정하기 위한 방법으로
makefile에서는 -I(i의 대문자)를 지정하는데

eclipse 내에서 이러한 변수를 설정하기 위한 방법으로
Project - Properties - C/C++ General / Paths and Symbols
의 include 탭의 GNU C 에 해당 include root path를 추가해주면 된다.



[링크 : http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.cdt.doc.user/tasks/cdt_t_proj_paths.htm]

'프로그램 사용 > eclipse CDT & minGW' 카테고리의 다른 글

eclipse CDT plugin 설치하기  (2) 2012.01.29
eclipse에서 archive (*.a) 링크하기  (0) 2012.01.18
MinGW  (0) 2010.09.07
eclipse CDT  (0) 2009.07.13
Eclipse IDE for C/C++ Developers  (0) 2009.07.06
Posted by 구차니
sed -i 는 in-place의 약자로, 파일 자체의 내용을 바로 수정해 주는 옵션이다.
-e는 실행할 표현식을 기술하고
/^#include/ 는 #include 로 시작하는 줄을 찾고
s/original/replace/g 는 original 이라고 나오는 문자열을 한줄에 몇번이 나오던 replace로 교체를 해준다.

그리고
find -name 뒤에 오는 검색어는 pattern이므로 *.[ch] 로 *.c *.h 두가지 파일을 모두 검색하게 해준다.

 find ./ -name "*.[ch]" -type f -exec sed -i -e '/^#include/s:\\:/:g' {} \;  

[링크 : http://linux.die.net/man/1/sed]
[링크 : http://linux.die.net/man/1/find]



Posted by 구차니
프로그램 사용/winscp2012. 1. 16. 13:42
아주 옛날 문서인데.. 이제야 겨우겨우 설정옵션을 찾은 구차니군 -_-


가장 처음 화면에서
Environment - Server environment
UTF-8 encoding for filenames를 Auto 에서 On 으로 변경해 주면 된다.

[링크 : http://kldp.org/node/59965]
Posted by 구차니
libapache2-mod-python
libapache2-mod-auth-pam
libapache2-mod-auth-sys-group

서버날아가서 다시 깔면서 보니 인증관련 오류가 나서 아파치가 구동이 안되는데
부랴부랴 검색하니 위에 두개의 패키지가 빠져있었다 -_-
그나저나.. mod-python은 언제 끌려간거지?

2010/11/11 - [프로그램 사용/CVS / SVN / GIT] - apache2 리눅스 계정으로 인증하기(PAM) 
Posted by 구차니
프로그램 사용/nmap2011. 12. 31. 20:21
ifconfig를 통해서 보면 Link encapsulation이 Ethernet이 아닌 UNSPEC이기 때문에
nmap 이 실행되지 않는다. 머.. 이런 저런 이유가 있군 -_-

$ nmap 192.168.10.1

Starting Nmap 5.00 ( http://nmap.org ) at 2011-12-31 20:04 KST
Note: Host seems down. If it is really up, but blocking our ping probes, try -PN
Nmap done: 1 IP address (0 hosts up) scanned in 3.25 seconds
minimonk@devbuntu:~$ sudo nmap 192.168.10.1
[sudo] password for minimonk: 

Starting Nmap 5.00 ( http://nmap.org ) at 2011-12-31 20:04 KST
Error compiling our pcap filter: ethernet addresses supported only on ethernet/FDDI/token ring/802.11/ATM LANE/Fibre Channel
QUITTING! 

$ ifconfig
eth1      Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          inet6 addr: 0::0:0:0:0/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:5 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:84 (84.0 B)
          Interrupt:18 Base address:0x6000 Memory:bc008000-bc008fff 

eth2      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:192.168.10.2  Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14348 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13061 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1047985 (1.0 MB)  TX bytes:1313497 (1.3 MB) 





'프로그램 사용 > nmap' 카테고리의 다른 글

nmap CVE report  (0) 2019.06.05
nmap 도움말  (2) 2010.10.11
nmap for windows(zenmap)  (0) 2010.10.01
Posted by 구차니
프로그램 사용/VNC2011. 12. 31. 19:49
tsclient는 윈도우즈의 mstsc와 거의 유사한 디자인의 원격제어 프로그램이다.
vnc 프토토콜은 기본적으로 추가되어 있지 않지만 목록상에는 존재한다.


xtightvncviewer  패키지를 추가하면 목록에 추가되고,
xtightvncviewer 라는 명령어를 사용하여 직접 연결할 수도 있지만
gnome 사용중에 프로그램 목록에 추가되지는 않는다.

$ sudo apt-get install xtightvncviewer

[링크 : https://help.ubuntu.com/community/VNC/Clients]
[링크 : http://queleimporta.com/using-vnc-with-terminal-server-client-on-ubuntu/]  


'프로그램 사용 > VNC' 카테고리의 다른 글

VNC web 버전?  (0) 2014.12.11
VNC 5.0.5  (0) 2013.09.04
UVNC - Ultra VNC  (2) 2010.11.26
우분투 9.10 원격설정하기(vino server on Ubuntu 9.10)  (0) 2009.12.30
Fedora Core 6에 VNC 설치하기  (0) 2009.07.22
Posted by 구차니
프로그램 사용/gcc2011. 12. 28. 11:05
기억력 감퇴인가.. 아무튼 c언어에서는 2진수 표기를 할 방법이 없어서
16진수로만 하는데 검색을 하다 보니 이상한 문장을 발견 -_-
  
보통 c에서는 00111111b 와 같이 사용하는데, 2진수로 바로 쓰려면 어떻게 해야하나요?
아시는 분 있으면 답변해주시면 감사하겠습니다. ^^; 

[링크 : http://www.terabank.co.kr/bbs/zboard.php?id=comunity01...no=1343]
[링크 : http://donghwada.tistory.com/entry/ATmega-Pin-Configurations-DDR-PORT-PIN]

gcc에서 제공하는 비표준 C문법으로
0x0000 이라고 16진수를 입력하듯
0b0000 이라고 2진수를 입력이 가능하다.

물론 vi에서도 인식되지 않는 문법이라 문법강조도 되지 않음 -_-
+ winavr역시 gcc 의 한 종류 이므로 이러한 문법을 허용한다.

$ vi temp.c 
  1 #include <stdio.h>
  2
  3 void main()
  4 {
  5     unsigned char binval = 0b1000000;
  6     unsigned char binval2= 10000;
  7 }
 
$ gcc temp.c
temp.c: In function ‘main’:
temp.c:6: warning: large integer implicitly truncated to unsigned type 

Most people use hexadecimal for binary numbers in C.
(GCC and some other compilers have an non-standard 0b####### extension

[링크 : http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=64658]  

흐음.. C99 표준에 넣으려다가 기각당했군 -ㅁ-
dl8dtl - Nov 26, 2006 - 08:38 PM
Post subject: RE: Binary constants in IAR C ?
> Binary notation was added in C99 if I remember correctly. 

No, it's been rejected by the committee. 

In the C99 rationale, you can find under 6.4.4.1 Integer constants: 

``A proposal to add binary constants was rejected due to 
lack of precedent and insufficient utility.'' 

So please tell your (national) standards body there *is* sufficient utility for 
it. As for the first part, I'm trying to get the 0b patch officially 
as an extension into GCC. Once that happened, there will be at least 
one very prominent C implementation that sets a precedent case. ;-) 
All those microcontroller implementations are probably nothing the ISO 
C standardization body might be aware of, but for sure, GCC is. 

> IAR is not fully up to C99 yet, 

It's about the most complete C99 implementation I've seen.  

[링크 : http://www.avrfreaks.net/index.php?name=PNphpBB2&file=printview&t=44082&start=0]

그나저나.. 0000b 는 누구 문법일까?
Posted by 구차니
우분투에서는 그냥 하라는대로 하면 되긴되는데..
누가 서비스를 하는지 도무지 알수가 없다 -_-

일단.. git용으로 쓸만한 windows client가 없으니 후우...

[링크 : http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way]
Posted by 구차니
git-svn이란걸 사용해서 git에 svn을 담아가서
네트워크가 안되는 곳에서 svn에 업로드 하다가 나중에 git로 svn을 올린다고 하는데
찾아보니 perl로 된 녀석이고 git svn 명령어로 git-svn이 연결되어 있다고 한다.

The git svn command is written in Perl and requires the Subversion Perl libraries. The existence of the svn command line command is insufficient for git-svn.

I haven't used git svn on Windows (only on Unix and Mac OS X), so I can't really provide more detail, but hopefully this should point you in the right direction.

[링크 : http://stackoverflow.com/questions/350907/git-svn-on-windows-where-to-get-binaries]
[링크 : https://github.com/gitster/git/blob/master/git-svn.perl]  


[링크: 
http://blog.javajigi.net/pages/viewpage.action?pageId=208109629]

[링크 : http://toby.epril.com/?p=703
     [링크 : http://git.or.cz/course/svn.html]  
2011/08/14 - [프로그램 사용/CVS / SVN / GIT] - git-svn 을 이용해서 svn 을 복제가능하다고? 



머.. 저번 글이랑 차이가 없어 보이는건 기분 탓인가 -_- 
Posted by 구차니
프로그램 사용/poEdit2011. 12. 23. 17:39
TM을 이용하면 동일 msgid에 대해서는 번역을 해준다.
솔찍히 메뉴얼을 번역해 보아도, msgid를 기반으로 하는지 msgstr을 기반으로 하는진 알 수 없지만
동일 메시지id에 내용이 다른 경우는 어떻게 될지 조금..
대충보기에는 msgid로 기반으로 해서 msgstr의 내용이 달라질 경우에는 무의미 한거 같은데...

Step 1. 일단 카탈로그 관리자를 들어가고


Step 2. 카탈로그 관리자에서 첫 아이콘을 눌러 프로젝트를 생성한뒤, po/mo 파일들이 들어있는 곳을 선택한다.
           (리눅스에서는 이상하게 뻗어버림 -_-)
           (폴더 구조로 하위 폴더를 자동검색하지는 않는다. 수작업으로 넣어주어야 함)


Step 3. 자세한 내용은 아래의 링크에서 확인
           파일 - 선택사항 - 번역본 기억장치(TM) 탭 - 추가 - 데이터베이스 생성

Step 4. 아무튼 번역 데이터베이스가 생성되고 우클릭하면
           다음과 같이 자동 번역 내용에 내용들이 나오는데, 전체 언어를 다 포함하는 바람에 다국어가 나온다.


[링크 : http://www.jopenbusiness.com/mediawiki/index.php/Poedit]
2011/12/21 - [프로그램 사용/poEdit] - poedit - Translate memory 도움말 번역

'프로그램 사용 > poEdit' 카테고리의 다른 글

poedit - Translate memory 도움말 번역  (0) 2011.12.21
L10N / I18N  (0) 2009.04.08
gettext - multi language support  (2) 2009.03.09
Poedit - crossplatform gettext catalogs editor  (0) 2009.02.26
Posted by 구차니