'분류 전체보기'에 해당되는 글 519건

  1. 2012.12.27 [eclipse] Todo 관리 plugin
  2. 2012.12.06 [Doxygen] Doxygen에서 한글 표시 하기
  3. 2012.11.09 크로스플랫폼 시리얼 라이브러리 - qtextserialport
  4. 2012.11.08 NextStep, OS/2 가상 이미지 제공 사이트
  5. 2012.11.08 VMware용 리눅스 가상 이미지 받을 수 있는 사이트
  6. 2012.11.08 VMplayer 이미지 무료로 만들기
  7. 2012.11.06 [vim plugin] neocomplcache - ultimate auto completion system for vim
  8. 2012.11.02 tcp fastopen - linux kernel 3.6 이상
  9. 2012.10.12 mkfs.jffs2 버그
  10. 2012.10.11 expr - 예제

[eclipse] Todo 관리 plugin

Eclipse Todo Editor


http://sebastianbenz.github.com/eclipse-task-editor/updates


간단 사용법

- 항목을 추가하기 위해서는 문장의 시작을 "-"으로 한다.

- 탭 또는 space 2개의 공간을 문장의 앞쪽에 삽입하면 서브 프로젝트 항목으로 사용할 수 있다.

- 끝낸 할 일은 @done 태그를 사용하면 된다.

[Doxygen] Doxygen에서 한글 표시 하기

아래 이미지들과 같이 설정을 변경해 줘야 한다.


"Expert" 패널에 "Project" Topic에 있다.

"Expert" 패널에 "Input" Topic에 있다.


이렇게 설정하면 정상적으로 표시 된다.


'develop' 카테고리의 다른 글

[eclipse] Jindent - 소스 정렬 plugin  (0) 2012.12.28
[eclipse] Todo 관리 plugin  (0) 2012.12.27
debug 매크로  (0) 2012.09.21
eclipse에 확장자에 맞게 encoding옵션 설정하기  (0) 2012.09.10
tmake을 사용해서 makefile 만들기  (0) 2012.03.08

크로스플랫폼 시리얼 라이브러리 - qtextserialport

http://code.google.com/p/qextserialport/


qt용 크로스플랫폼 시리얼 프로그래밍 라이브러리


NextStep, OS/2 가상 이미지 제공 사이트

http://osvirtual.net/en/


옛날 OS2나 NextStep같이 오래전에 사용하던 OS을 가상이미지(vmware)로 제공하는 사이트


VMware용 리눅스 가상 이미지 받을 수 있는 사이트

http://www.thoughtpolice.co.uk/vmware/


vmware용 이미지로 만들어진 다양한 배포판을 받을 수 있는 사이트


현재, CentOS, debian, fedora, freeBSD, openSUSE, ubuntu 등의 이미지를 구할 수 있다.

VMplayer 이미지 무료로 만들기

http://www.easyvmx.com/


VMware Player용 이미지를 만들 수 있는 서비스를 제공한다.


이 사이트에서 만들어 주는 것은 vmware 용 설정파일만 만들어준다.

그렇기 때문에 실재 가상 OS 설치는 따로 설치해 줘야 한다.

[vim plugin] neocomplcache - ultimate auto completion system for vim

neocomplcache : Ultimate auto completion system for Vim

created by
Shougo Matsushita
 
script type
utility
 
description
The latest version is in github.
http://github.com/Shougo/neocomplcache/tree/master
 
Caution:
Because all variable names are changed in neocomplcache Ver.5, there is not
backward compatibility. In the case of the upgrade, you should use the next
script which Mr.thinca made.
http://gist.github.com/422503
 
Screen shots:
Quick match.
http://3.bp.blogspot.com/_ci2yBnqzJgM/TD1PeahCmOI/AAAAAAAAADc/Rz_Pbpr92z4/s1600/quick_match.png
Snippet completion like snipMate.
http://3.bp.blogspot.com/_ci2yBnqzJgM/SfkgaHXLS0I/AAAAAAAAAA4/TmaylpFl_Uw/s1600-h/Screenshot2.PNG
Original filename completion.
http://1.bp.blogspot.com/_ci2yBnqzJgM/TD1O5_bOQ2I/AAAAAAAAADE/vHf9Xg_mrTI/s1600/filename_complete.png
Register completion.
http://1.bp.blogspot.com/_ci2yBnqzJgM/TD1Pel4fomI/AAAAAAAAADk/YsAxF8i6r3w/s1600/register_complete.png
Omni completion.
http://2.bp.blogspot.com/_ci2yBnqzJgM/TD1PTolkTBI/AAAAAAAAADU/knJ3eniuHWI/s1600/omni_complete.png
Completion with vimshell(http://github.com/Shougo/vimshell).
http://1.bp.blogspot.com/_ci2yBnqzJgM/TD1PLfdQrwI/AAAAAAAAADM/2pSFRTHwYOY/s1600/neocomplcache_with_vimshell.png
Vim completion.
http://1.bp.blogspot.com/_ci2yBnqzJgM/TD1PfKTlwnI/AAAAAAAAADs/nOGWTRLuae8/s1600/vim_complete.png
 
Setting examples:
" Disable AutoComplPop.
let g:acp_enableAtStartup = 0
" Use neocomplcache.
let g:neocomplcache_enable_at_startup = 1
" Use smartcase.
let g:neocomplcache_enable_smart_case = 1
" Use camel case completion.
let g:neocomplcache_enable_camel_case_completion = 1
" Use underbar completion.
let g:neocomplcache_enable_underbar_completion = 1
" Set minimum syntax keyword length.
let g:neocomplcache_min_syntax_length = 3
let g:neocomplcache_lock_buffer_name_pattern = '\*ku\*'
 
" Define dictionary.
let g:neocomplcache_dictionary_filetype_lists = {
    \ 'default' : '',
    \ 'vimshell' : $HOME.'/.vimshell_hist',
    \ 'scheme' : $HOME.'/.gosh_completions'
    \ }
 
" Define keyword.
if !exists('g:neocomplcache_keyword_patterns')
    let g:neocomplcache_keyword_patterns = {}
endif
let g:neocomplcache_keyword_patterns['default'] = '\h\w*'
 
" Plugin key-mappings.
imap <C-k>     <Plug>(neocomplcache_snippets_expand)
smap <C-k>     <Plug>(neocomplcache_snippets_expand)
inoremap <expr><C-g>     neocomplcache#undo_completion()
inoremap <expr><C-l>     neocomplcache#complete_common_string()
 
" SuperTab like snippets behavior.
"imap <expr><TAB> neocomplcache#sources#snippets_complete#expandable() ? "\<Plug>(neocomplcache_snippets_expand)" : pumvisible() ? "\<C-n>" : "\<TAB>"
 
" Recommended key-mappings.
" <CR>: close popup and save indent.
inoremap <expr><CR>  neocomplcache#smart_close_popup() . "\<CR>"
" <TAB>: completion.
inoremap <expr><TAB>  pumvisible() ? "\<C-n>" : "\<TAB>"
" <C-h>, <BS>: close popup and delete backword char.
inoremap <expr><C-h> neocomplcache#smart_close_popup()."\<C-h>"
inoremap <expr><BS> neocomplcache#smart_close_popup()."\<C-h>"
inoremap <expr><C-y>  neocomplcache#close_popup()
inoremap <expr><C-e>  neocomplcache#cancel_popup()
 
" AutoComplPop like behavior.
"let g:neocomplcache_enable_auto_select = 1
 
" Shell like behavior(not recommended).
"set completeopt+=longest
"let g:neocomplcache_enable_auto_select = 1
"let g:neocomplcache_disable_auto_complete = 1
"inoremap <expr><TAB>  pumvisible() ? "\<Down>" : "\<TAB>"
"inoremap <expr><CR>  neocomplcache#smart_close_popup() . "\<CR>"
 
" Enable omni completion.
autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags
 
" Enable heavy omni completion.
if !exists('g:neocomplcache_omni_patterns')
let g:neocomplcache_omni_patterns = {}
endif
let g:neocomplcache_omni_patterns.ruby = '[^. *\t]\.\w*\|\h\w*::'
"autocmd FileType ruby setlocal omnifunc=rubycomplete#Complete
let g:neocomplcache_omni_patterns.php = '[^. \t]->\h\w*\|\h\w*::'
 
install details
1: Extract .zip file and install to your $VIMRUNTIME.
2: Execute :NeoComplCacheEnable command or
let g:neocomplcache_enable_at_startup = 1
in your .vimrc.
 

'프로그램' 카테고리의 다른 글

NextStep, OS/2 가상 이미지 제공 사이트  (0) 2012.11.08
VMplayer 이미지 무료로 만들기  (0) 2012.11.08
totalcmd 설정 편집기  (0) 2012.04.18
Windows용 cursor 테마  (0) 2009.08.08
[CD & DVD Record] 이응 - Windows7 지원  (0) 2009.04.02

tcp fastopen - linux kernel 3.6 이상

tcp 3-hand negotiation에서 몇 단계을 생략해서 접속을 빠르게 하는 기능


활성화 하는 방법

1. sysctl.conf 파일 변경

net.ipv4.tcp_fastopen = 1


을 추가 후 시스템 재부팅하면 적용


2. 루트권한으로 바로 실행

sysctl -w net.ipv4.tcp_fastopen=1


시스템에 바로 적용된다.



mkfs.jffs2 버그

mkfs.jffs2 버그 중에 Verbose 모드로 작업 중 내용을 보여달라는 옵션 "-v"을 사용할 경우 segmentation fault을 일으키는 문제가 있다.

-v을 사용하지 않고 작업하면 잘된다.

'임베디드' 카테고리의 다른 글

CoOS - Arm Cortex M3 용 RTOS  (0) 2012.07.10
libpng 1.5.8 cross compile  (0) 2012.02.07
zlib 1.2.6 cross compile  (0) 2012.02.07
u-boot loader(the Universal Boot Loader) 사이트 및 버전  (0) 2012.02.02
busybox용 tftp 사용법  (0) 2011.12.13

expr - 예제

What is expr?

expr evaluates the given expression.


4 expr Examples

1. Perform string matching operations

expr command helps us to perform different levels of string matching operations with the operator ‘:’ as shown below,

# partial match and returns the number of characters matched.
$ expr linux : lin
3

# the condition is string 2 entirely should match in string 1.
$ expr linux : linx
0

# regular expression to match any number of characters
$ expr linux : '.*'
5

# to print the matched characters instead of number of matching positions
$ expr linux : '..\(...\)'
nux

Note : expr command should have the space between the operator and operands.

2. Compare the two expressions

Using expr command, you can compare two expressions (numbers or strings). It returns either 0 for failure or 1 for success as shown below

$ var1='10'
$ var2='20'

# matching numbers with '='.
$ expr $var1 = $var2
0

# displays 1 when arg1 is less than arg2
$ expr $var1 \< $var2
1

# display 1 when arg1 is not equal to arg2
$ expr $var1 \!= $var2
1

3. Perform the integer arithmetic operations

You can do the integer arithmetic operations like addition, subtraction, multiplication, division and modulus. In the below example, two numbers are multiplied and the result is produced as follows.

$ expr 5 \* 2
10

4. Increment the value inside the script

The example below increments the $count variable value to 1 inside the shell script.

echo $count
count=`expr $count + 1`

Syntax and Options

expr EXPRESSION
expr OPTION

Short OptionLong OptionOption Description
–helpto display help page and exit
–versionto display version information and exit
ARG1 * ARG2Interger arithmetic operator for multiplication
ARG1 / ARG2Interger arithmetic operator for division
ARG1 + ARG2Interger arithmetic operator for addition
ARG1 – ARG2Interger arithmetic operator for substraction
ARG1 % ARG2Interger arithmetic operator for modulus operation
ARG1 = ARG2Comparision operator to check both expressions are equals
ARG1 < ARG2Comparision operator to check arg1 is less than arg2
ARG1 <= ARG2Comparision operator to check arg1 is lesser than or equal to arg2
ARG1 > ARG2Comparision operator to check arg1 is greater than arg2
ARG1 >= ARG2Comparision operator to check arg1 is greater than or equal to arg2
ARG1 != ARG2Comparision operator to check arg1 is not equal to arg2
ARG1 : ARG2String matching operator
ARG1 & ARG2Conditional operator which returns arg1 when arg1 and arg2 are not 0 or NUL. otherwise 0.
ARG1 | ARG2Conditional operator which returns arg1 if it not 0 or NUL otherwise arg2 is returned.


prev 1 2 3 4 5 ··· 52 next