'프로그램 사용'에 해당되는 글 2359건

  1. 2018.08.22 git add / reset / checkout
  2. 2018.08.20 git 커밋이 안될 때? (no changes added to commit)
  3. 2018.08.14 git st (alias 사용하기)
  4. 2018.08.14 git status -s
  5. 2018.08.14 git mv 와 log
  6. 2018.08.13 git mv
  7. 2018.08.13 gitlab 2
  8. 2018.08.08 네이버 지도 API
  9. 2018.05.18 ubunutu mame
  10. 2018.05.18 retropie pstree 그리고 fbcp

파일 생성/수정 -> untracked

untracked -> git add -> stage

stage -> git reset -> untracked/unstage

$ touch ss

$ git st -s

?? ss

$ git st

On branch master

Untracked files:

  (use "git add <file>..." to include in what will be committed)


        ss


nothing added to commit but untracked files present (use "git add" to track)

$ git add ss

$ git st

On branch master

Changes to be committed:

  (use "git reset HEAD <file>..." to unstage)


        new file:   ss


$ git st -s

A  ss

$ git reset ss

$ git st -s

?? ss


---

$ git checkout 명령은 어떻게 보면..

$ git status -s 와 비슷한 결과가 나오네..?

별다르게 파일을 수정하거나 받아오지 않고 단순하게 현재 상황만 보여준다.


대신 파일이름을 적어주면

$ git checkout filename

수정된 파일을 저장소에 관리되는 버전으로 끌어오게 된다.(수정사항이 사라짐)

svn으로 치면.. 파일 삭제하고 checkout 하는 느낌?


$ rm myfile.txt

$ ll

total 0

$ git st -s

 D myfile.txt

$ git checkout

D       myfile.txt

$ ll

total 0

$ git checkout myfile.txt

$ ll

total 1

-rw-r--r-- 1 classact 197121 49 8월  22 10:15 myfile.txt 

[링크 : https://www.zerocho.com/category/Git/post/581b7122809622001722fc0b]

[링크 : https://backlog.com/git-tutorial/kr/stepup/stepup2_1.html]


+

git 도움말 추출

svn의 checkout과는 용도가 다르군..

git-checkout - Switch branches or restore working tree files 


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

git rm 복구하기  (0) 2018.08.22
git branch  (0) 2018.08.22
git 커밋이 안될 때? (no changes added to commit)  (0) 2018.08.20
git st (alias 사용하기)  (0) 2018.08.14
git status -s  (0) 2018.08.14
Posted by 구차니

tortoiseGIT으로 하면 알아서 add + commit 하는건진 모르겠지만

파일을 수정하고 git bash에서 commit 하려고 하니 아래와 같은 에러가 발생한다.

$ git commit

On branch master

Your branch is up to date with 'origin/master'.


Changes not staged for commit:

        modified:   web/pagelet/login.html


no changes added to commit 


아무튼.. add 하고 하면 M의 위치가 서로 달라지는데 stage의 의미를 아직 이해 못해서 그런걸지도...

$ git st

 M login.html 

$ git add login.html

$ git st

M  login.html


[링크 : https://blog.outsider.ne.kr/1247]


staging을 좀 더 봐야겠다.. ㅠㅠ

[링크 : https://blog.npcode.com/2012/10/23/git의-staging-area는-어떤-점이-유용한가/]

[링크 : http://resoneit.blogspot.com/2013/10/git-stage-area.html]



지금 다시 보니 조금 이해가 되네.. 일단 modified 하고 나서도 staged 상태로 가지 않으면 commit이 되지 않는다.

svn에서는 수정하면 modified = staged 개념이었는데

git 에서는 modifed 되었다고 하더라도 개인 수정을 인정하고 무조건 업데이트 안하는 구조라 그런건가?

[링크 : https://git-scm.com/book/ko/v1/Git의-기초-수정하고-저장소에-저장하기]

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

git branch  (0) 2018.08.22
git add / reset / checkout  (0) 2018.08.22
git st (alias 사용하기)  (0) 2018.08.14
git status -s  (0) 2018.08.14
git mv 와 log  (0) 2018.08.14
Posted by 구차니

svn에서는 콘솔에서 사용할때 약어를 많이 사용했는데

git에서는 지원하지 않고 대신 alias를 통해서 간결하게 사용이 가능하다.


$ git config --global alias.co checkout

$ git config --global alias.br branch

$ git config --global alias.ci commit

$ git config --global alias.st status 

[링크 : https://git-scm.com/book/ko/v2/Git의-기초-Git-Alias]

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

git add / reset / checkout  (0) 2018.08.22
git 커밋이 안될 때? (no changes added to commit)  (0) 2018.08.20
git status -s  (0) 2018.08.14
git mv 와 log  (0) 2018.08.14
git mv  (0) 2018.08.13
Posted by 구차니

짧게 보는 방법


옵션없이 사용하면 먼가 복잡하게 나오는데

svn 스타일로 간결하게(?) 보려면 -s나 --short 옵션을 주면된다.


git 설정을 통해서 기본값을 변경하면 옵션 없이도 사용 가능하다.


git config status.short true 

[링크 : https://stackoverflow.com/questions/2927672/how-can-i-get-git-status-to-always-use-short-format]



+

2018.08.22

저장소 별로 저장되는 건지 새로운 저장소 만들어서 하니 -s 옵션이 누락되어 있다.

전역 설정으로 가능하진 않으려나?

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

git 커밋이 안될 때? (no changes added to commit)  (0) 2018.08.20
git st (alias 사용하기)  (0) 2018.08.14
git mv 와 log  (0) 2018.08.14
git mv  (0) 2018.08.13
우분투에서 GIT 사용방법  (2) 2018.04.24
Posted by 구차니

git mv

를 이용하여 파일을 옮기면 원칙적으로는 지우고 새로 추가하는 것과 동일하다는데


사실 git mv 명령은 아래 명령어를 수행한 것과 완전 똑같다.


$ mv README.md README

$ git rm README.md

$ git add README 

[링크 : https://git-scm.com/book/ko/v2/Git의-기초-수정하고-저장소에-저장하기]


그렇다고 완전히 삭제하고 더하는것과는 조금 다르게 이어지긴 이어 지는 듯

단, 옵션을 통해서 콘솔에서 봐야 한다는 단점아닌 단점?

거북이 에서는 하단의 Show Whole Project를 하면 이전의 이동전 내역이 보이게 되고


콘솔에서는 --follow 옵션을 통해 이어서 볼 수 있다

(단, 특정 파일을 지정해야 한다)

$ git log --follow

fatal: --follow requires exactly one pathspec 


[링크 : https://stackoverflow.com/.../is-it-possible-to-move-rename-files-in-git-and-maintain-their-history]

  [링크 : https://stackoverflow.com/...git-log-not-show-history-for-a-moved-file-and-what-can-i-do-about-it]


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

git st (alias 사용하기)  (0) 2018.08.14
git status -s  (0) 2018.08.14
git mv  (0) 2018.08.13
우분투에서 GIT 사용방법  (2) 2018.04.24
svn 로그 수정 pre-revprop-change  (0) 2017.12.20
Posted by 구차니

아직 익숙하지 않아서 그런데

git는 svn 에서 처럼 repo browser 등에서 편하게 옮기는 법이 없는 듯..

콘솔에서 다 명령어 칠거면 tortoiseGIT 이런게 필요 없자나.. ㅠㅠ


아무튼 파일을 옮기는건 git mv를 통해서 가능

빈 디렉토리는 옮길수 없고,

git 콘솔에서(git bash 등) git mv를 하고 나서

git commit을 하면 끝


그리고 정리가 끝난 이후에 끝난 녀석만 origin에 push 하면 된다.

[링크 : https://git-scm.com/docs/git-mv]

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

git status -s  (0) 2018.08.14
git mv 와 log  (0) 2018.08.14
우분투에서 GIT 사용방법  (2) 2018.04.24
svn 로그 수정 pre-revprop-change  (0) 2017.12.20
svn externals commit 제외하기  (0) 2017.12.10
Posted by 구차니

회사에서 쓰니 좋긴한데.. 사양이 좀 높네?

[링크 : http://dejavuqa.tistory.com/7]


그래도 라즈베리에서도 되는거 같긴한데.. 나중에 깔아볼까?

[링크 : https://about.gitlab.com/]

[링크 : https://about.gitlab.com/installation/#raspberry-pi-2]

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

github 의 README.md 에 이미지 넣기  (0) 2024.12.31
gitlab 백업하기  (0) 2019.03.23
gitlab wiki  (2) 2019.01.28
git push rejected by remote protected branch  (2) 2018.09.04
Posted by 구차니
Posted by 구차니
프로그램 사용/MAME2018. 5. 18. 14:24

아래처럼 하면 설정파일이 생성된다는데

거기에 rompath를 찾아가면 되다고..


cd ~/.mame && mame -cc

gedit ~/.mame/mame.ini 

[링크 : http://www.upubuntu.com/2012/10/how-to-install-mame-multiple-arcade.html]


+

pi@raspberrypi:~/.mame $ ls -al

total 16

drwxr-xr-x  3 pi pi 4096 May 18 06:38 .

drwxr-xr-x 32 pi pi 4096 May 18 06:38 ..

drwxr-xr-x  2 pi pi 4096 May 18 06:38 cfg

-rw-r--r--  1 pi pi 1694 May 18 06:38 ui.ini

pi@raspberrypi:~/.mame $ mame -cc


pi@raspberrypi:~/.mame $ ls -al

total 32

drwxr-xr-x  3 pi pi 4096 May 18 06:39 .

drwxr-xr-x 32 pi pi 4096 May 18 06:38 ..

drwxr-xr-x  2 pi pi 4096 May 18 06:38 cfg

-rw-r--r--  1 pi pi 9277 May 18 06:39 mame.ini

-rw-r--r--  1 pi pi  249 May 18 06:39 plugin.ini

-rw-r--r--  1 pi pi 1691 May 18 06:39 ui.ini 


경로 설정은 그래도 상단에 있네?

$ cat mame.ini

#

# CORE CONFIGURATION OPTIONS

#

readconfig                1

writeconfig               0


#

# CORE SEARCH PATH OPTIONS

#

homepath                  .

rompath                   $HOME/mame/roms;/usr/local/share/games/mame/roms;/usr/share/games/mame/roms

hashpath                  /usr/share/games/mame/hash

samplepath                $HOME/mame/samples;/usr/local/share/games/mame/samples;/usr/share/games/mame/samples

artpath                   $HOME/mame/artwork;/usr/local/share/games/mame/artwork;/usr/share/games/mame/artwork

ctrlrpath                 /usr/share/games/mame/ctrlr

inipath                   $HOME/.mame;/etc/mame

fontpath                  /usr/share/games/mame/fonts

cheatpath                 $HOME/mame/cheat;/usr/local/share/games/mame/cheat;/usr/share/games/mame/cheat

crosshairpath             $HOME/mame/crosshair;/usr/local/share/games/mame/crosshair;/usr/share/games/mame/crosshair

pluginspath               /usr/share/games/mame/plugins

languagepath              /usr/share/games/mame/language

swpath                    software


#

# CORE OUTPUT DIRECTORY OPTIONS

#

cfg_directory             $HOME/.mame/cfg

nvram_directory           $HOME/.mame/nvram

input_directory           $HOME/.mame/inp

state_directory           $HOME/.mame/sta

snapshot_directory        $HOME/.mame/snap

diff_directory            $HOME/.mame/diff

comment_directory         $HOME/.mame/comments


#

# CORE STATE/PLAYBACK OPTIONS

#

state

autosave                  0

playback

record

record_timecode           0

exit_after_playback       0

mngwrite

aviwrite

wavwrite

snapname                  %g/%i

snapsize                  auto

snapview                  internal

snapbilinear              1

statename                 %g

burnin                    0


#

# CORE PERFORMANCE OPTIONS

#

autoframeskip             0

frameskip                 0

seconds_to_run            0

throttle                  1

sleep                     1

speed                     1.0

refreshspeed              0


#

# CORE RENDER OPTIONS

#

keepaspect                1

unevenstretch             1

unevenstretchx            0

unevenstretchy            0

autostretchxy             0

intoverscan               0

intscalex                 0

intscaley                 0


#

# CORE ROTATION OPTIONS

#

rotate                    1

ror                       0

rol                       0

autoror                   0

autorol                   0

flipx                     0

flipy                     0


#

# CORE ARTWORK OPTIONS

#

artwork_crop              0

use_backdrops             1

use_overlays              1

use_bezels                1

use_cpanels               1

use_marquees              1


#

# CORE SCREEN OPTIONS

#

brightness                1.0

contrast                  1.0

gamma                     1.0

pause_brightness          0.65

effect                    none


#

# CORE VECTOR OPTIONS

#

beam_width_min            1.0

beam_width_max            1.0

beam_intensity_weight     0

flicker                   0


#

# CORE SOUND OPTIONS

#

samplerate                48000

samples                   1

volume                    0


#

# CORE INPUT OPTIONS

#

coin_lockout              1

ctrlr

mouse                     1

joystick                  1

lightgun                  0

multikeyboard             0

multimouse                0

steadykey                 0

ui_active                 0

offscreen_reload          0

joystick_map              auto

joystick_deadzone         0.3

joystick_saturation       0.85

natural                   0

joystick_contradictory    0

coin_impulse              0


#

# CORE INPUT AUTOMATIC ENABLE OPTIONS

#

paddle_device             keyboard

adstick_device            keyboard

pedal_device              keyboard

dial_device               keyboard

trackball_device          keyboard

lightgun_device           keyboard

positional_device         keyboard

mouse_device              mouse


#

# CORE DEBUGGING OPTIONS

#

verbose                   0

log                       0

oslog                     0

debug                     0

update_in_pause           0

debugscript


#

# CORE COMM OPTIONS

#

comm_localhost            0.0.0.0

comm_localport            15112

comm_remotehost           127.0.0.1

comm_remoteport           15112


#

# CORE MISC OPTIONS

#

drc                       1

drc_use_c                 0

drc_log_uml               0

drc_log_native            0

bios

cheat                     0

skip_gameinfo             0

uifont                    default

ui                        cabinet

ramsize

confirm_quit              0

ui_mouse                  1

autoboot_command

autoboot_delay            0

autoboot_script

console                   0

plugins                   1

plugin

noplugin

language                  English


#

# HTTP SERVER OPTIONS

#

http                      0

http_port                 8080

http_root                 web


#

# OSD KEYBOARD MAPPING OPTIONS

#

uimodekey                 INSERT


#

# OSD FONT OPTIONS

#

uifontprovider            auto


#

# OSD OUTPUT OPTIONS

#

output                    auto


#

# OSD INPUT OPTIONS

#

keyboardprovider          auto

mouseprovider             auto

lightgunprovider          auto

joystickprovider          auto


#

# OSD DEBUGGING OPTIONS

#

debugger                  auto

debugger_font             auto

debugger_font_size        0

watchdog                  0


#

# OSD PERFORMANCE OPTIONS

#

numprocessors             auto

bench                     0


#

# OSD VIDEO OPTIONS

#

video                     opengl

numscreens                1

window                    0

maximize                  1

waitvsync                 0

syncrefresh               0

monitorprovider           auto


#

# OSD PER-WINDOW VIDEO OPTIONS

#

screen                    auto

aspect                    auto

resolution                auto

view                      auto

screen0                   auto

aspect0                   auto

resolution0               auto

view0                     auto

screen1                   auto

aspect1                   auto

resolution1               auto

view1                     auto

screen2                   auto

aspect2                   auto

resolution2               auto

view2                     auto

screen3                   auto

aspect3                   auto

resolution3               auto

view3                     auto


#

# OSD FULL SCREEN OPTIONS

#

switchres                 0


#

# OSD ACCELERATED VIDEO OPTIONS

#

filter                    1

prescale                  1


#

# OpenGL-SPECIFIC OPTIONS

#

gl_forcepow2texture       0

gl_notexturerect          0

gl_vbo                    1

gl_pbo                    1

gl_glsl                   0

gl_glsl_filter            1

glsl_shader_mame0         none

glsl_shader_mame1         none

glsl_shader_mame2         none

glsl_shader_mame3         none

glsl_shader_mame4         none

glsl_shader_mame5         none

glsl_shader_mame6         none

glsl_shader_mame7         none

glsl_shader_mame8         none

glsl_shader_mame9         none

glsl_shader_screen0       none

glsl_shader_screen1       none

glsl_shader_screen2       none

glsl_shader_screen3       none

glsl_shader_screen4       none

glsl_shader_screen5       none

glsl_shader_screen6       none

glsl_shader_screen7       none

glsl_shader_screen8       none

glsl_shader_screen9       none


#

# OSD SOUND OPTIONS

#

sound                     auto

audio_latency             2


#

# PORTAUDIO OPTIONS

#

pa_api                    none

pa_device                 none

pa_latency                0


#

# BGFX POST-PROCESSING OPTIONS

#

bgfx_path                 /usr/share/games/mame/bgfx

bgfx_backend              auto

bgfx_debug                0

bgfx_screen_chains        default

bgfx_shadow_mask          slot-mask.png

bgfx_avi_name             auto


#

# SDL PERFORMANCE OPTIONS

#

sdlvideofps               0


#

# SDL VIDEO OPTIONS

#

centerh                   1

centerv                   1

scalemode                 none


#

# SDL FULL SCREEN OPTIONS

#

useallheads               0


#

# SDL KEYBOARD MAPPING

#

keymap                    0

keymap_file               keymap.dat


#

# SDL JOYSTICK MAPPING

#

joy_idx1                  auto

joy_idx2                  auto

joy_idx3                  auto

joy_idx4                  auto

joy_idx5                  auto

joy_idx6                  auto

joy_idx7                  auto

joy_idx8                  auto

sixaxis                   0


#

# SDL MOUSE MAPPING

#

mouse_index1              auto

mouse_index2              auto

mouse_index3              auto

mouse_index4              auto

mouse_index5              auto

mouse_index6              auto

mouse_index7              auto

mouse_index8              auto


#

# SDL KEYBOARD MAPPING

#

keyb_idx1                 auto

keyb_idx2                 auto

keyb_idx3                 auto

keyb_idx4                 auto

keyb_idx5                 auto

keyb_idx6                 auto

keyb_idx7                 auto

keyb_idx8                 auto


#

# SDL LOWLEVEL DRIVER OPTIONS

#

videodriver               auto

renderdriver              auto

audiodriver               auto

gl_lib                    auto


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

retropie pstree 그리고 fbcp  (0) 2018.05.18
레트로 파이 coin select GPIO로 연결하기  (0) 2018.05.16
retropie spi lcd  (0) 2018.05.16
relcabox / retropie 블루투스 연결  (0) 2018.03.07
MAME 조이스틱 설정  (0) 2018.03.03
Posted by 구차니
프로그램 사용/MAME2018. 5. 18. 14:01

xorg 없이 emulationstation이 직접 실행되서 /dev/fb0 으로 쓰는거 같은데..


$ pstree

systemd─┬─agetty

        ├─avahi-daemon───avahi-daemon

        ├─cron

        ├─dbus-daemon

        ├─dhcpcd

        ├─fbcp─┬─{HCEC Notify}

        │      ├─{HDispmanx Notif}

        │      ├─{HTV Notify}

        │      └─{VCHIQ completio}

        ├─login───bash───bash───emulationstatio───emulationstatio───emulationstatio─┬─sh───bash───retroarch─┬─{HCEC Notify}

        │                                                                           │                       ├─{HDispmanx Notif}

        │                                                                           │                       ├─{HTV Notify}

        │                                                                           │                       ├─{VCHIQ completio}

        │                                                                           │                       └─3*[{retroarch}]

        │                                                                           ├─{HCEC Notify}

        │                                                                           ├─{HDispmanx Notif}

        │                                                                           ├─{HTV Notify}

        │                                                                           ├─{VCHIQ completio}

        │                                                                           └─{emulationstatio}

        ├─rsyslogd─┬─{in:imklog}

        │          ├─{in:imuxsock}

        │          └─{rs:main Q:Reg}

        ├─smbd─┬─cleanupd

        │      ├─lpqd

        │      └─smbd-notifyd

        ├─sshd───sshd───sshd───bash───pstree

        ├─systemd───(sd-pam)

        ├─systemd-journal

        ├─systemd-logind

        ├─systemd-timesyn───{sd-resolve}

        ├─systemd-udevd

        └─thd

 


어디서 언듯 보기에 emulationstation 자체가 openGL로 그린다고 된걸 본거 같은데

고민을 해보니.. SPI LCD에는 openGL 가속이 안될게 뻔하니 fbcp 외에는 답이 없는걸려나?

[링크 : https://www.reddit.com/r/raspberry_pi/comments/2syad9/emulation_station_on_35_inch_gpio_display/]

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

ubunutu mame  (0) 2018.05.18
레트로 파이 coin select GPIO로 연결하기  (0) 2018.05.16
retropie spi lcd  (0) 2018.05.16
relcabox / retropie 블루투스 연결  (0) 2018.03.07
MAME 조이스틱 설정  (0) 2018.03.03
Posted by 구차니