Mac을 사용할때 Command(⌘) 를 조합해서 입력하는 경우가 많은데 이 키의 위치때문에 다른키랑 함께 누르기가 참 불편하다.

 

이때 키 맵핑 앱을 사용하면 키보드의 키 설정을 변경할 수 있다.

 

프로그램의 홈페이지로 이동해서 다운로드를 하자.

https://karabiner-elements.pqrs.org/

 

Karabiner-Elements

A powerful and stable keyboard customizer for macOS.

karabiner-elements.pqrs.org

Download 버튼의 아래 화살표를 클릭하면 MacOS 버전정보가 나타난다. 

본인의 OS에 맞는 버전을 선택하면 Karabiner-Elements dmg 파일을 다운로드 한다.

 

설치는 dmg 파일을 더블클릭하면 Karabiner-Elements.pkg 아이콘이 보인다. 더블클릭해서 설치를 진행한다.

 

설치가 완료되면 Karabiner-Elements 를 실행한다.

아래와 같은 화면이 나타나는데 화면 아래쪽에 있는 Add Item 버튼을 클릭하면 키 매핑정보를 추가할 수 있다.

From key는 변경하려는 실제 키, To key는 실제키 대신에 사용할 가상의 키라고 보면 된다.

 

개인적으로 command키가 caps lock 위치에 있는 것을 선호한다. (해피해킹 키보드처럼..) 키조합이 훨씬 편하다.

예) caps_lock 키에 left command 키를 매핑시키고자 한다면 From key 항목을 클릭해서 caps_lock을 선택하고, To key를 선택해서 left_command를 선택해주면 된다. caps lock 기능도 써야하니 left_command 키에는 caps_lock 키를 설정해 주었다.

 

key항목을 누르면 아래와 같이 다양한 키들을 매핑시킬 수 있다. 

F 키(Funcion key)도 설정을 변경할 수 있다.

'개발 > Dev Others' 카테고리의 다른 글

Shell 에서 excutable Jar 만들기  (0) 2020.03.26
Github commit  (0) 2020.01.03
MySQL Config  (0) 2017.07.04
파이어폭스 한글입력 오류  (0) 2016.09.13
PHP for IIS 설치  (2) 2009.11.22
Posted by Lumasca
,

 

1.메인 자바 파일을 컴파일한다.

$javac Main.java

 

2.매니패스트 파일을 생성한다. Main은 클래스명

$echo Main-Class: Main > MANIFEST.MF

 

3.매니패스트 및 빌드한 클래스 파일들을 jar에 추가한다.

$jar cvmf MANIFEST.MF main.jar *.class

 

4.Jar 파일을 실행한다.

$java -jar main.jar

 

 

'개발 > Dev Others' 카테고리의 다른 글

Mac 키보드 키 매핑 앱 - Karabiner  (0) 2021.07.02
Github commit  (0) 2020.01.03
MySQL Config  (0) 2017.07.04
파이어폭스 한글입력 오류  (0) 2016.09.13
PHP for IIS 설치  (2) 2009.11.22
Posted by Lumasca
,

Github commit

개발/Dev Others 2020. 1. 3. 14:04

1. GitHub에서 새 repository를 생성한다.

 

2.command shell에서 로컬 프로젝트 폴더로 이동한다.

 

3.Git repository로 로컬 폴더를 초기화한다.

$git init

 

4. .gitignore 파일을 생성해서 Android 관련 내용을 작성한다.

$vi .gitignore

 

5.로컬 repository에 있는 파일을 추가한다. 현재 수정한 파일을 커밋하기 전 단계인 stage 상태(중간단계)가 된다.

$git add .

 

6.로컬 repository에 stage 상태의 파일들을 커밋한다.

$git commit -m "커밋 메세지"

 

7.원격 repository용 URL을 추가한다.

$git remote add origin $REMOTE Git URL

 

8. 원격 repository에 push한다.

$git push -u origin master

 

push 안되면 강제로

$git push -f origin master

'개발 > Dev Others' 카테고리의 다른 글

Mac 키보드 키 매핑 앱 - Karabiner  (0) 2021.07.02
Shell 에서 excutable Jar 만들기  (0) 2020.03.26
MySQL Config  (0) 2017.07.04
파이어폭스 한글입력 오류  (0) 2016.09.13
PHP for IIS 설치  (2) 2009.11.22
Posted by Lumasca
,

MySQL Config

개발/Dev Others 2017. 7. 4. 17:10

#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
# Here is entries for some specific programs
# The following values assume you have at least 32M ram
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0
[mysqld]
#
# * Basic Settings
#
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
#datadir = /var/lib/mysql
datadir = /mnt/resource/mysql
#datadir = /mnt/datadrive/mysql
tmpdir = /tmp
lc-messages-dir = /usr/share/mysql
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 127.0.0.1
#
# * Fine Tuning
#
key_buffer = 16M
max_allowed_packet = 16M
thread_stack = 192K
thread_cache_size = 8
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover = BACKUP
#max_connections = 100
#table_cache = 64
#thread_concurrency = 10
#
# * Query Cache Configuration
#
query_cache_limit = 1M
query_cache_size = 16M
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
# As of 5.1 you can enable the log at runtime!
#general_log_file = /var/log/mysql/mysql.log
#general_log = 1
#
# Error logging goes to syslog due to /etc/mysql/conf.d/mysqld_safe_syslog.cnf.
#
# Here you can see queries with especially long duration
#log_slow_queries = /var/log/mysql/mysql-slow.log
#long_query_time = 2
#log-queries-not-using-indexes
#
# The following can be used as easy to replay backup logs or for replication.
# note: if you are setting up a replication slave, see README.Debian about
# other settings you may need to change.
#server-id = 1
#log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 10
max_binlog_size = 100M
#binlog_do_db = include_database_name
#binlog_ignore_db = include_database_name
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
[mysql]
#no-auto-rehash # faster start of mysql but no tab completition
[isamchk]
key_buffer = 16M
#
# * IMPORTANT: Additional settings that can override those from this file!
# The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/

'개발 > Dev Others' 카테고리의 다른 글

Shell 에서 excutable Jar 만들기  (0) 2020.03.26
Github commit  (0) 2020.01.03
파이어폭스 한글입력 오류  (0) 2016.09.13
PHP for IIS 설치  (2) 2009.11.22
ListCtrl CustomDraw 할때 텍스트가 사라지면,  (0) 2009.06.10
Posted by Lumasca
,

브라우저 주소창에 about:config


[고급기능 사용동의] 클릭


intl.tsf.enable 항목을 false로 변경

'개발 > Dev Others' 카테고리의 다른 글

Github commit  (0) 2020.01.03
MySQL Config  (0) 2017.07.04
PHP for IIS 설치  (2) 2009.11.22
ListCtrl CustomDraw 할때 텍스트가 사라지면,  (0) 2009.06.10
Visual Studio 2003에서 manifest 추가하기  (0) 2009.05.28
Posted by Lumasca
,
APM으로 제공되는 파일로 설치를 했는데 정상동작이 되지 않았다.

검색해보니 MS에서 설치를 제공하고 있다.

다음 사이트에 접속해서

http://www.microsoft.com/web/default.aspx

웹플랫폼을 설치한 후에 하단에 PHP on Windows 링크를 통해 설치를 하도록한다.


'개발 > Dev Others' 카테고리의 다른 글

Github commit  (0) 2020.01.03
MySQL Config  (0) 2017.07.04
파이어폭스 한글입력 오류  (0) 2016.09.13
ListCtrl CustomDraw 할때 텍스트가 사라지면,  (0) 2009.06.10
Visual Studio 2003에서 manifest 추가하기  (0) 2009.05.28
Posted by Lumasca
,

리스트에서 CustomDraw로 아이템을 그릴때

마우스를 오버하면, 첫번째 컬럼 이외의 텍스트들이 사라지는 경우가 있었다.

아이템을 삽입할때 아래 코드처럼 추가하고 했다. 

마우스 오버를 하면,  CustomDraw 를 수행하지 않았고, 클릭을 해야만 수행하는 것이었다.

해결방법은 코드의 빨간색 부분이다.

LV_ITEM lvItem;
 lvItem.mask = LVIF_TEXT | LVIF_IMAGE | LVIF_PARAM;
 if(nPos >= 0){
  lvItem.iItem = nPos;
 }else{
  nCnt = GetItemCount();
  lvItem.iItem = nCnt;
 }
 lvItem.iSubItem = 0;
 lvItem.pszText = L"";//아이템 텍스트를 설정하지 말아야 한다.
 lvItem.lParam = (LPARAM)pData;
 int nIndex = InsertItem(&lvItem);

'개발 > Dev Others' 카테고리의 다른 글

Github commit  (0) 2020.01.03
MySQL Config  (0) 2017.07.04
파이어폭스 한글입력 오류  (0) 2016.09.13
PHP for IIS 설치  (2) 2009.11.22
Visual Studio 2003에서 manifest 추가하기  (0) 2009.05.28
Posted by Lumasca
,
vs2003은 manifest 가 포함되어 있지 않다.
manifest 파일을 생성한다.
샘플내용은 아래와 같다. 빨간색 글자는 exe 파일명을 적어주면 되겠다.

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

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> 
<assemblyIdentity 
    version="1.0.0.0" 
    processorArchitecture="X86" 
    name="Microsoft.Windows.App"
    type="win32" 
/>

  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">

    <security>

      <requestedPrivileges>

        <requestedExecutionLevel level="requireAdministrator" uiAccess="false">

        </requestedExecutionLevel>

      </requestedPrivileges>

    </security>

  </trustInfo>

  <description>여기에 응용 프로그램 설명을 추가합니다.</description> 
<dependency> 
    <dependentAssembly> 
        <assemblyIdentity 
            type="win32" 
            name="Microsoft.Windows.Common-Controls" 
            version="6.0.0.0" 
            processorArchitecture="X86" 
            publicKeyToken="6595b64144ccf1df" 
            language="*" 
        /> 
    </dependentAssembly> 
</dependency> 
</assembly>
-------------------------------------------------------------------------------------

프로젝트 속성 -> 빌드 이벤트 -> 빌드 후 이벤트(Post Build Event) 에 아래 문장을 참고하여 빌드 문자열을 작성한다.
mt.exe 라는 툴을 사용하는데. 옵션이 무진장 많다. Output 디렉터리에 툴과 manifest 파일을 위치시킨 경우이다.

$(SolutionDir)\bin\mt.exe -manifest $(SolutionDir)\bin\App.exe.intermediate.manifest -outputresource:$(SolutionDir)\bin\App.exe;#1

제대로 동작하지 않은 경우, 에러가 발생한다.
비스타에서 아이콘에 방패모양이 표시되면 성공한 것이다.

'개발 > Dev Others' 카테고리의 다른 글

Github commit  (0) 2020.01.03
MySQL Config  (0) 2017.07.04
파이어폭스 한글입력 오류  (0) 2016.09.13
PHP for IIS 설치  (2) 2009.11.22
ListCtrl CustomDraw 할때 텍스트가 사라지면,  (0) 2009.06.10
Posted by Lumasca
,