Linux2018. 1. 22. 09:45

vim 의 하단 상태창에 읽어 들인 파일(file)의 캐릭터 셋(character-set)을 보고 싶다면 다음과 같이 정의하면 됩니다.  


~/.vimrc 에 추가할 내용

if has("statusline")

 set statusline=%<%f\ %h%m%r%=%{\"[\".(&fenc==\"\"?&enc:&fenc).((exists(\"+bomb\")\ &&\ &bomb)?\",B\":\"\").\"]\ \"}%k\ %-14.(%l,%c%V%)\ %P

endif 


한글 fencs 를 함께 정의한 예제

set fencs=utf-8,ucs-bom,euc-kr,cp949

if has("statusline")

 set statusline=%<%f\ %h%m%r%=%{\"[\".(&fenc==\"\"?&enc:&fenc).((exists(\"+bomb\")\ &&\ &bomb)?\",B\":\"\").\"]\ \"}%k\ %-14.(%l,%c%V%)\ %P

endif


vim 에서 파일을 읽어 들인 모습



반응형
Posted by Jay Two
Linux2018. 1. 18. 18:13

from www.waveshare.com

Selection Guide

Part NumberResolutionLCD InterfaceTouch Panel InterfaceFor use withDimension (mm)Touch Panel TypeHow you feelFeature
2.8inch RPi LCD (A)320x240I/OI/OPiAs the Pi 3BResistive★★Low cost
3.2inch RPi LCD (B)320x240I/OI/OPiAs the Pi 3BResistive★★Low cost
3.5inch RPi LCD (A)320x480I/OI/OPiAs the Pi 3BResistive★★★Cost effective
3.5inch RPi LCD (B)320x480I/OI/OPiAs the Pi 3BResistive★★★IPS screen
4inch RPi LCD (A)320x480I/OI/OPi94 × 61Resistive★★★☆IPS screen
4inch HDMI LCD800×480HDMII/OPi99 × 58Resistive★★★★☆IPS screen
4.3inch HDMI LCD480×272HDMII/OPi106 × 68Resistive★★★★Cost effective
5inch HDMI LCD800x480HDMII/OPi121 x 78Resistive★★★★Low cost
5inch HDMI LCD (B)800x480HDMIUSBNot only Pi121 x 76Resistive★★★★Supports various systems
7inch HDMI LCD1024×600HDMII/OPi165 × 107Resistive★★★★☆IPS screen
7inch HDMI LCD (B)800x480HDMIUSBNot only Pi165 x 107Capacitive★★★★☆Supports various systems
7inch HDMI LCD (C)1024x600HDMIUSBNot only Pi165 x 107Capacitive★★★★★IPS screen, Supports various systems
10.1inch HDMI LCD1024×600HDMII/OPi235 × 144Resistive★★★★☆Cost effective
10.1inch HDMI LCD (H)1024x600HDMIUSBNot only Pi257 x 162Capacitive★★★★☆Supports various systems
10.1inch HDMI LCD (B)1280x800HDMIUSBNot only Pi274 × 187Capacitive★★★★★IPS screen, Supports various systems

Note : 
Pi 3B = Raspberry Pi 3 Model B 
If the LCD is intended to play videos, please choose the one with HDMI display interface for better experience.

Have a look :



반응형
Posted by Jay Two
Ruby2018. 1. 18. 17:18
반응형

'Ruby' 카테고리의 다른 글

ridk DevKit(Windows) 설치 실패(GPGME error)  (0) 2018.02.06
[Ruby] hash를 array로, array를 hash로 변환  (0) 2018.01.17
Posted by Jay Two
Ruby2018. 1. 17. 19:38

인터액티브 루비(irb) 예제  

hash

 => {"a"=>["b", "c", "d"], "e"=>["f", "g"]}


array = hash.to_a

 => [["a", ["b", "c", "d"]], ["e", ["f", "g"]]]

Hash 를 Array 로 변환

hash2 = array.to_h

 => {"a"=>["b", "c", "d"], "e"=>["f", "g"]}

Array 를 Hash 로 변환

hash <=> hash2

 => 0

hash 와 hash2 는 동일함(0)

<=>는 spaceship operator

 

 

hash.values 를 사용하면 값만 출력됨. 

 [["b", "c", "d"], ["f", "g"]]



반응형

'Ruby' 카테고리의 다른 글

ridk DevKit(Windows) 설치 실패(GPGME error)  (0) 2018.02.06
mixin sample  (0) 2018.01.18
Posted by Jay Two
Qt2018. 1. 16. 17:07
반응형
Posted by Jay Two
C, C++2018. 1. 15. 09:21
반응형

'C, C++' 카테고리의 다른 글

xlnt (5) msys2 에서 xlnt 빌드 하기  (0) 2018.03.28
C++ 람다(lambda) 예제  (0) 2018.02.12
GammaRay : Qt를 위한 Spy++  (0) 2018.01.10
Xlnt (4) 값 쓰기 예제  (0) 2017.10.15
Xlnt (3) Vector를 이용한 예제  (0) 2017.10.15
Posted by Jay Two
Computer Language2018. 1. 11. 18:32

*출처: https://www.tiobe.com/tiobe-index/


2018년 1월의 언어로 C언어가 선정되었습니다. 자동차 시장을 포함한 제조 및 기계 산업이 성장하는 것이 주요한 원인으로 보입니다. (주로 미국에서) 물론 오토모티브 분야는 국내에서도 거듭 새롭게 주목받고 있습니다. 자율주행 차량에 대한 관심이 계속되기 때문입니다.


Jan 2018Jan 2017ChangeProgramming LanguageRatingsChange
11Java14.215%-3.06%
22C11.037%+1.69%
33C++5.603%-0.70%
45changePython4.678%+1.21%
54changeC#3.754%-0.29%
67changeJavaScript3.465%+0.62%
76changeVisual Basic .NET3.261%+0.30%
816changeR2.549%+0.76%
910changePHP2.532%-0.03%
108changePerl2.419%-0.33%
1112changeRuby2.406%-0.14%
1214changeSwift2.377%+0.45%
1311changeDelphi/Object Pascal2.377%-0.18%
1415changeVisual Basic2.314%+0.40%
159changeAssembly language2.056%-0.65%
1618changeObjective-C1.860%+0.24%
1723changeScratch1.740%+0.58%
1819changeMATLAB1.653%+0.07%
1913changeGo1.569%-0.76%
2020PL/SQL1.429%-0.11%


반응형
Posted by Jay Two
Java2018. 1. 11. 17:05


* 자료 출처: https://javadoc.allimant.org/


[Java Docs] 

Oracle에서 제공해주는 html 형식의 java docs 파일이 아닌 chm 으로 된 파일 입니다. 문서는 14년 버전입니다. 좀 오래 된거죠.


j2se8.7z.001

j2se8.7z.002

j2se8.7z.003

j2se8.7z.004

j2se8.7z.005








반응형
Posted by Jay Two