IT이야기2019. 3. 16. 07:25

리눅스 커널 commit을 분석해서 발표하는 report. 2018년것도 곧 나올듯. PDF로 download가능.

기계적인 분석이라 quality까지 알수는 없지만 유명한 사람들, 회사들 다 나오는 리눅스 커널 개발 리포트.

https://www.linuxfoundation.org/2017-linux-kernel-report-landing-page/



Posted by 쁘레드
IT이야기2019. 3. 7. 03:33

Debugging Linux Kernel with Visual Studio?? 예전에 이런 질문/글 올리면 동서를 막논하고 미친놈 소리를 들었지요. 참 기본이 없다, 운전으로 말하면 김여사구만 취급당했는데... 세월이 흘러 MS(마이크로소프트, Microsoft)가 미친건지 제정신으로 돌아온건지 세월이 많이 바뀌었네요.

Visual Sutio로 Linux kernel 개발을 돕는 plugin/extension도 파는 회사가 있고요

  • http://sysprogs.com/VisualKernel/
  • https://sysprogs.com/tutorials/creating-a-basic-linux-kernel-module-with-visual-studio/

Tutorials > VisualKernel > Kernel Modification Tutorials > Building and modifying Linux Kernel with Visual Studio

Visual Studio Code는 기존의 Visual Studio와 이름만 공유하고 전혀 다른 open source tool입니다. 기존 VS는 C/C++로 개발되었다고 알려져 있고 주로 C/C++개발자용이었는데, VS Code는 완전 자유도 100%인 멀티 platform 개발툴이며 에디터 editor 입니다. 오픈 소스라 코드도 공개되어 있는데 열어보면 기절. 세상이 많이 변했구나 이제 은퇴할때가 되었나 생각하게 하는...

VS Code를 이용해서 UML diagram을 Linux에서 그리고 version control하는 방법을 팀 사람들에게 보여줬더니 다들 기절.

UML diagram 공유하기 in Linux (or Windows or Mac)

  1. Visual Studio Code (open source tools for multi platforms)
    1. https://code.visualstudio.com/download
    2. https://github.com/Microsoft/vscode
  2. PlantUML plugin
    1. http://plantuml.com/
    2. http://plantuml.com/sequence-diagram
  3. GraphViz
    1. https://graphviz.gitlab.io/download/

PlantUML은 plugin 으로 설치하니 확장자을 *.plantuml로 하는거 이외에는 할게 없고, GraphViz는 Ubuntu에서 설치하면 /usr/bin/dot 으로 copy되서 할일없음. 

sudo apt install graphviz

Windows에서는 GraphViz설치하고 환경변수를 하나 만들어줘야함.

GRAPHVIZ_DOT=c:\graphviz\bin\


  1. TODO: WebSequenceDiagram문법과 같은건가?
  2. TODO: Visual Studio Code에서 리눅스 커널/모듈 개발 어떻게 하는지 다음에 정리


Posted by 쁘레드
Programming2019. 3. 7. 03:06

Short note

---------

# 1. Clone the kernel to your local machine

$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git

$ cd linux-stable


# 1.1 optional Github mirror link, i prefer github over kernel.org

$ git clone https://github.com/torvalds/linux.git

$ cd linux


# 2. check kernel version

$ make kernelversion

$ uname -ra


# 3. Find the tag for the version you want

$ git tag -l | grep 4.20

v4.20

v4.20.rc...


# 4. Create a new branch with that tag

$ git checkout -b my4.20 v4.20


# 5. use Ubuntu proper config

# 5.1 use default defconfig for the system

$ make defconfig


# 5.2 use current ubuntu config, /boot/config-*

$ cp /boot/config-`uname -r` .config


# if same version or very close to current version

$ make oldconfig


# otherwise, choose default one, very safe

$ yes '' | make oldconfig


# 5.2.1 optional, change kernel options

$ make menuconfig


#make debian packages, *.deb will be copied in ../ (outside of linux build root)

$ make deb-pkg -j 16


# copied *.deb to target machine. Generally 3 files

# then install debian package. No particular order is required

$ sudo dpkg -i *.deb

Posted by 쁘레드
IT이야기2018. 9. 7. 06:51

델 노트북에서 가만이 있는데도 CPU가 20-30%를 왔다갔다해서 열어보니, Waves MaxxAudio Service Application 이 뭘 계속 먹고있음. 사운드 드라이버 같은데 sound play도 안하고 MUTE시켜보고 헤드폰을 뺏다꼈다도 안되고. Zombie Process 같은 현상. 그런데 소리는 잘 남.

(무슨버그일까 생각해보니... 이것들이 비트코인 체굴중인가? @.@)

아마 restart하면 정상으로 돌아올듯. Logout은 도움이 안됨.

한가지 똘똘한 방법은, Task Manager를 Admin 권한으로 실행. 그리고 Kill. 그러면 system에서 필요한 task가 다시 자동적으로 시작하는데 정상적으로 돌아옴.

--------------

https://www.dell.com/community/Laptops-General-Read-Only/XPS-13-9360-quot-Waves-MaxxAudio-Service-Application-quot/td-p/5103190

Posted by 쁘레드
IT이야기2018. 8. 30. 01:51

된장. 외장하드는 진짜 조심해서 관리해야지 한번 맛이가면...

맛가기전에 진짜 조심해서 사용해야함. 끝낼때 항상 Safely remove.... 꼭 사용.

  1. Windows Explorer에서 드라이버로 인식하는지 확인
  2. Device Manager에서 인식하는지 확인
  3. Disk Manager에서 인식하는지 확인

이 정도 된다면 아주 나쁜 상태는 아님.

그럼,

  1. Windows Explorer에서 Disk Scan 실행할수 있는지 해봄
  2. Data가 중요한게 없으면 그냥 다시 Format하면 됨. T.T
  3. Device Driver를 uninstall후 다시 설치하고 update해보기
  4. CMD line을 admin으로 실행시켜서 chkdsk /f D: 로 실행해 보기

----------

아래와 같이 복구가됐지만 파일과 디렉토리는 안보임. 그래도 파일 리커버리 프로그램을 돌리면 됨.

T.T

File Scavenger

Recuva

등 많이 있음. 파일 많이 복구하려면 돈 내라고 하기도하고...

----------

C:\WINDOWS\system32>d:

The disk structure is corrupted and unreadable.


C:\WINDOWS\system32>chkdsk /f D:

The type of the file system is NTFS.

Volume label is Aegis DT.


Stage 1: Examining basic file system structure ...

Deleted corrupt attribute list entry

with type code 128 in file 0.

Deleted corrupt attribute list entry

with type code 128 in file 0.

Deleting corrupt attribute record (0x80, "")

from file record segment 0x0.

Deleting corrupt attribute record (0x80, "")

from file record segment 0xF.

  16 file records processed.

File verification completed.

  0 large file records processed.

  0 bad file records processed.


Stage 2: Examining file name linkage ...

Deleting index entry $RECYCLE.BIN in index $I30 of file 5.

Deleting index entry cygwin.7z in index $I30 of file 5.

Deleting index entry cygwin_bin.7z in index $I30 of file 5.

Deleting index entry Downloads in index $I30 of file 5.

Deleting index entry E360SBC in index $I30 of file 5.

Deleting index entry Fred_Backup in index $I30 of file 5.

Deleting index entry HT70_backup in index $I30 of file 5.

Deleting index entry PadlockDT_FIPS_Manual.pdf in index $I30 of file 5.

Deleting index entry pb980 in index $I30 of file 5.

Deleting index entry SCM_2008 in index $I30 of file 5.

Deleting index entry SCM_2016 in index $I30 of file 5.

Deleting index entry SCM_2016_0117 in index $I30 of file 5.

Deleting index entry System Volume Information in index $I30 of file 5.

Deleting index entry Ubuntu17.4.vdi in index $I30 of file 5.

Deleting index entry WinCE6 Images in index $I30 of file 5.

Deleting index entry WinCE7_workspace_backup in index $I30 of file 5.

Deleting index entry [USB overcurrent] in index $I30 of file 5.

Deleting index entry $Deleted in index $I30 of file 11.

Deleting index entry $ObjId in index $I30 of file 11.

  22 index entries processed.

Deleting index entry $Quota in index $I30 of file 11.

Deleting index entry $Reparse in index $I30 of file 11.

Deleting index entry $RmMetadata in index $I30 of file 11.

Index verification completed.

CHKDSK is scanning unindexed files for reconnect to their original directory.

  1 unindexed files scanned.

  0 unindexed files recovered to original directory.

CHKDSK is recovering remaining unindexed files.

  1 unindexed files recovered to lost and found.

    Lost and found is located at \found.000


Creating object id file.

Inserting an index entry into index $I30 of file 11.

Creating index $O for file 18.

Inserting an index entry into index $O of file 18.

Creating reparse point file.

Inserting an index entry into index $I30 of file 11.

Creating index $R for file 19.

Creating quota file.

Inserting an index entry into index $I30 of file 11.

Creating index $O for file 20.

Creating index $Q for file 20.

Inserting default quota record into index $Q in file 20.


Stage 3: Examining security descriptors ...

Security descriptor verification completed.

Inserting data attribute into file 0.

Inserting data attribute into file 15.

  5 data files processed.

Correcting errors in the Master File Table (MFT) mirror.

Correcting errors in the master file table's (MFT) DATA attribute.

Correcting errors in the master file table's (MFT) BITMAP attribute.

Correcting errors in the Volume Bitmap.


Windows has made corrections to the file system.

No further action is required.


   3815317 MB total disk space.

         8 KB in 9 indexes.

         0 KB in bad sectors.

    185288 KB in use by the system.

     65536 KB occupied by the log file.

   3815137 MB available on disk.


      4096 bytes in each allocation unit.

 976721407 total allocation units on disk.

 976675083 allocation units available on disk.

----------

Posted by 쁘레드

2018년 7월 거래 data를 redfin에서 찾아보니 미국에서 주택거래가 활발한 곳 10개 도시가 상당히 재미있습니다. 인구수랑 비례하는 것은 아니고 어느정도 가격이 저렴해야 사람들이 자주 사고 판다는 것을 말하는 듯.

물론 큰 도시는 주소지로는 다른 도시 이름으로 있더라도 실제로 그 도시 생활권인곳이라 정확한 통계는 큰 도시는 인근 도시까지 넣는것이 맞을수도 있을듯.

시카고와 아틀란타는 주택시장의 왕인듯~ 싸기도 하고 많이 거래도 되고.


----------------

  Redfin Metro Median Sale Price Month-Over-Month Year-Over-Year Homes Sold Month-Over-Month Year-Over-Year New Listings Month-Over-Month Year-Over-Year   All Homes for Sale Month-Over-Month Year-Over-Year
  National $307,400 -1.40% 5.30% 277,100 -8.20% 4.10% 319,000 -8.20% 2.80%   747,200 -1.10% -5.40%
1 Chicago, IL $253,600 -2.50% 1.40% 13,014 -2.90% 15.30% 13,414 -8.90% 5.50%   11,464 -0.10% -15.80%
2 Atlanta, GA $245,000 -1.20% 8.90% 11,316 -4.50% 7.80% 11,519 -11.50% 6.90%   3,487 16.50% 16.20%
3 Washington, DC $407,000 -0.70% 0.80% 9,653 -14.20% 12.70% 9,243 -13.50% -1.00%   22,020 -4.40% 9.10%
4 Phoenix, AZ $267,500 -0.90% 9.20% 8,345 -8.00% 7.10% 7,966 -14.10% -1.00%   17,305 -8.30% -13.90%
5 Houston, TX $242,500 -0.60% 5.40% 8,110 -9.50% 6.20% 10,828 -5.80% 1.30%   3,484 2.20% 8.70%
6 Minneapolis, MN $267,700 -0.80% 5.00% 6,844 1.90% 5.10% 6,680 -13.90% 2.30%   11,477 1.20% -11.40%
7 Los Angeles, CA $625,000 -0.80% 5.90% 6,401 -8.30% -0.50% 8,334 -5.20% -0.60%   17,405 -0.20% -4.40%
8 Dallas, TX $299,900 -0.90% 5.20% 5,891 -9.90% -2.00% 7,755 -12.80% 4.10%   6,969 1.80% -6.20%
9 Boston, MA $515,000 0.00% 8.40% 5,522 -11.10% 1.90% 5,114 -23.70% 1.90%   4,989 -1.10% -17.30%
10 Tampa, FL $228,000 -1.90% 6.00% 5,428 -8.40% -3.90% 5,918 -8.10% -0.40%   12,287 -5.70% -8.50%
11 Denver, CO $410,000 -1.40% 7.90% 5,088 -14.20% -4.30% 5,628 -14.20% -1.30%   17,118 -3.60% 9.70%
12 Riverside, CA $365,000 0.00% 4.90% 5,073 -5.30% 0.30% 6,084 -9.50% -3.10%   15,621 -3.20% -2.10%


Posted by 쁘레드
IT이야기2018. 8. 29. 04:23

회사에 들어가면 마이크로소프트 MS Office랑 친해져야 하는 운명을 갖고 태어나지요.

EXCEL쓰면서 열심히 CTRL+S로 저장을 했는데도 컴퓨터를 그냥 끄게되서 그 다음날 열어보니 auto save한 파일을 불러오겠냐고 묻기에 필요없다고 다 지우고 찬찬히 보니 어제 작업한게 저장이 안됐네. 다행히 지운 자동저장 파일이 recycle bin에 고스란이 있기는 있는데, 이걸 복구하니 어디로 가는건지 알수가 없을때...

둘중한곳에 있다는 점... 휴 몇시간 시간 save했네.

C:\Users\fred.oh\AppData\Local\Microsoft\Office\UnsavedFiles

C:\Users\fred.oh\AppData\Roaming\Microsoft\Excel\

Posted by 쁘레드
IT이야기2018. 7. 31. 02:30

세상에는 믿어지니 않는 회사들이 많지요. 만드는 물건과 파는 가격, 시가총액 모두가 놀랍기만 한, 개발자들을 위한 툴을 만들고 시장에서 몇년째 계속 크게 성장하고 있는 atlassian.

대표적인 제품으로 지라 JIRA, 컨풀러언스 Confluence 정도가 있네요. IT계약하는 사람 이야기를 들으니, 회사가 SW번들고 잘 팔고 매년 라이센스를 갱신해야하서 돈을 긁어모으고 있다고 하네요. 회사가 한번 쓰면 벗어날수가 없지요.

한국이 대기업 갑질문화가 아니라, 창업가 정신만 강조했더라도 진정한 IT강국이 되었을텐데하는 아쉬움이 많이 듭니다.

------------------

경쟁자로는 MS정도가 비슷한 시장에 있는데, 마이크로소프트는 하드웨어의 명가이고 항상 삽질해주니 덩치만 큰 형님정도 이고 다른 기업은 이 시장에 딱히 경쟁자가 없네요. open source tool과 경쟁은 할수도 있는데, 자리잡힌 회사일수록 돈주고 서비스도 받고 하려고 하니 독점처럼 되어있네요.

Service Now 서비스나우 = IT Service, Workday 워크데이 = HR 등이 여러회사에서 하나이상 솔루션으로 같이 쓰는 업체인듯.


Posted by 쁘레드
자동차이야기2018. 7. 28. 23:53

미국 자동차 브랜드별 소비자 만족도 중 하나로 평가되는 Pied Piper Prospect Satisfaction Index.

딜러에 방문한 고객을 구매하게할수 있는 능력을 보여주는 지수라고 합니다. 테슬라(Tesla)는 전통적인 딜러샵이  없으니 해당이 안되겠지요.

>The ranking is mostly based on the capacity of the dealerships to turn potential customers into buyers,

아우디(Audi), 렉서스(Lexus), 도요타(Toyota0는 왔다하면 거의 다 맘에들어서 파는 수준인가보죠?

Hyundai 현대, Kia 기아는 안습이네요. 브랜드 인지도도 그렇지만 역시 딜러십 능력도 많이 떨어지는듯.


---------------

Tesla finishes dead last in auto dealership ranking, stores found to be horrible at selling cars but…

https://electrek.co/2018/07/27/tesla-store-auto-dealership-ranking/

Posted by 쁘레드
IT이야기2018. 7. 28. 05:57

팟캐스트 or 팟케스트(podcast) 앱이 상당히 많은데, 그중에 좋은것도 있고 별로인 것도 있고. 한국방송을 찾아듣는 사람에게는 한국앱 2-3개정도가 좋은것 같은데, 하나같이 무겁고 하나는 이게 부족하고 하나는 저게부족하고. 그러던 찰라애 구글에서 팟케스트 앱을 내놨네요. 재벌이 빵집내는것과 비슷한긴 한데, 너무 마켓이 혼탁할때는 구글이 정리해주는 것도 좋은데, 구글이 또 헛발질.

간단해서좋고 깔끔해서 좋은데 기능도 별로고 세팅도 할것도 없고. T.T 더욱이 한국 방송은 update가 거의 안되고 있음. 대체로 feed owner가 에피소드(episode)를 올리고 update를 눌러주면 그때 update하는데 아무도 그럴사람이 없나봄. 그러면 자동적으로 최소한 하루에 한번은 fetch 해와야 하는거 아닐까. 아니면 청취자라도 request할수 있게해주던가...

가끔보면 구글이 일부러 그러는것 같기도하고, 총명함을 잃은 모습을 많이보여요. 이럴거면 내면 안되지. 대학생 2명이 일주일 프로젝트하는 수준으로 만들면 구글 이름에 똥칠하는건데.

오늘날짜는 2018/7/27.


다른 사람 review도 크게 다르지 않네요. 심지어 tip이라고 말해주면서 마지막에 바꾸라는 tip을 알려주세요. 헐~

--------------------

Google Podcasts is pretty but basic

https://www.engadget.com/2018/06/20/google-podcasts-hands-on/


5 tips for Google Podcasts

https://www.cnet.com/how-to/tips-for-google-podcasts/



Posted by 쁘레드