Etc 검색 결과

9개 발견
  1. 미리보기
    2020.03.17 - mr.november11

    git에서 파일, 폴더명에 대소문자 구분이 안 될 때

  2. 미리보기
    2020.03.12 - mr.november11

    git 에서 신규 브랜치 생성 후 checkout 이 안 될 때

  3. 미리보기
    2018.06.05 - mr.november11

    [Tistory] 티스토리 소스코드 플러그인 사용 (업로드 없이 간편)

  4. 미리보기
    2016.12.28 - mr.november11

    lua 에서 문자열 나누기 split 함수

  5. 미리보기
    2015.06.16 - mr.november11

    Windows 7 설치 부팅 USB 제작 프로그램

  6. 미리보기
    2015.05.03 - mr.november11

    Sencha Touch App Generate 센차터치 앱 생성

  7. 미리보기
    2015.05.03 - mr.november11

    Sencha Touch 센차터치 app 내부 파일 구조

  8. 미리보기
    2015.05.03 - mr.november11

    센차 터치 Sencha Touch 가이드 번역본 문서

git 에서 git에서 파일, 폴더명에 대소문자 구분이 안 되어 문제가 발생하는 경우가 있다. 
아래 명령어를 사용하면 간단하게 문제를 해결할 수 있다. 

git config core.ignorecase false

 

git 파일 리스트는 아래 명령어로 확인할 수 있다. 

$ git ls-files                                                                                                           ✔
App.css
App.js

다른 카테고리의 글 목록

Etc 카테고리의 포스트를 톺아봅니다

git checkout newBranch 명령어로 브랜치 전환이 안 되는경우

$ git checkout newBranch                                                                                     
error: pathspec 'newBranch' did not match any file(s) known to git

git repo의 정보 갱신이 필요하다.

git remote update  
$ git checkout newBranch                                                                                     
Branch 'newBranch' set up to track remote branch 'newBranch' from 'origin'.

다른 카테고리의 글 목록

Etc 카테고리의 포스트를 톺아봅니다

티스토리 소스코드 플러그인 사용 (업로드 없이 간편) 


syntaxhighlighter 관련 파일(js, css) 업로드 없이 

스킨 내 html에 script 코드를 삽입함으로써 간편하게 소스코드 플러그인 사용이 가능하다.


  

[적용방법]

1. HTML/CSS 편집으로 script 삽입

1) 티스토리 블로그관리 페이지 이동

2) 꾸미기 버튼 선택

3) 스킨편집 버튼 선택

4) 오른쪽 html편집 버튼 선택

5) <head> 코드 바로 아래에 script 코드를 삽입


	



6) 본문 작성 시 html 버튼 클릭 후 소스코드 항목을 아래 양식으로 작성

echo "MTU=9000" >> ifcfg-ethX
echo "MTU=9000" >> ifcfg-bond


다른 카테고리의 글 목록

Etc 카테고리의 포스트를 톺아봅니다

lua 에서 문자열 나누기 split 함수

2016. 12. 28. 13:39 - mr.november11


Lua에는 기본적으로 split 함수가 없는지..

실행 시 아래와 같은 오류 메시지가 발생한다.

attempt to call global 'split' (a nil value)


해결법은 아래 함수를 추가후 string.split 함수를 사용하면 된다.


function string:split(delimiter)
  local result = { }
  local from = 1
  local delim_from, delim_to = string.find( self, delimiter, from )
  while delim_from do
    table.insert( result, string.sub( self, from , delim_from-1 ) )
    from = delim_to + 1
    delim_from, delim_to = string.find( self, delimiter, from )
  end
  table.insert( result, string.sub( self, from ) )
  return result
end

다른 카테고리의 글 목록

Etc 카테고리의 포스트를 톺아봅니다

Windows 7 설치 부팅 USB 제작 프로그램

2015. 6. 16. 22:18 - mr.november11

Windows 7 설치 부팅 USB 제작 프로그램


아래 파일을 다운 받은 후 설치하여 진행하면 된다.


제작 시 필요한 윈도우7 설치 이미지는 별도로 필요


Windows7-USB.exe


다른 카테고리의 글 목록

Etc 카테고리의 포스트를 톺아봅니다

Sencha Touch App Generate 센차터치 앱 생성

2015. 5. 3. 00:16 - mr.november11

Sencha Touch를 사용하여 app을 생성하기 위해

기본적으로 리눅스 서버 상에 Sencha Touch와 Sencha Touch CMD가 설치되어 있어야 한다.

Sencha Touch 개발 환경 세팅에 대한 자세한 내용은 나중에 ..

Sencha Touch 문서에서는 아래 명령어를 통해 App 디렉토리를 생성하도록 가이드하고있다.

/path/to/touch 는 Sencha touch 관련 파일을 zip파일로 받은 후 압축을 풀어놓은 경로를 말한다.

sencha -sdk /path/to/touch generate app MyApp .

경로를 지정하지 않고 app을 생성하는 방법이 있다.

sencha help generate app 명령어를 실행하여 generate app 관련 문서를 보면 아래와 같다.


This command generates an empty application given a name and target folder.

The application can be extended using other sencha generate commands (e.g.,
sencha generate model).

Other application actions are provided in the sencha app category (e.g.,
sencha app build).

Sencha Cmd can also automatically download and extract a framwork by
specifying the name of the framework as an argument:

    sencha generate app -ext MyAppName ./MyAppPath

This will generate an application using the newest version available


for the specified framework.


   sencha generate app -ext MyAppName ./MyAppPath

-ext 명령어를 사용하면 외부 링크에서 Sencha Touch framework를 받아 서버에 세팅한다. 외부에서 새로 파일을 받아야 하는 리소스와 시간의 소모가 있지만 Sencha버전을 항상 최신으로 유지 가능하다는 장점이 있다. 


다른 카테고리의 글 목록

Etc 카테고리의 포스트를 톺아봅니다

Sencha Touch 센차터치 app 내부 파일 구조

2015. 5. 3. 00:16 - mr.november11
Sencha generate 를 이용하여 app을 생성하면 아래와 같은 구조의 directory, file framework로 생성된다. 
  • app - The directory containing the Models, Views, Controllers, and Stores for your app.
  • app.js - The main JavaScript entry point for your app.
  • app.json - The configuration file for your app.
  • index.html - The HTML file for your app.
  • packager.json - The configuration file used by Sencha Cmd for creating native packages for your application.
  • resources - The directory containing the CSS and the images for your app

app.js 파일에는 Sencha Touch의 엔트리 포인트 코드가 들어있다.
app실행 시 main 객체를 생성하고, main view를 생성하는 코드 이다. 
객체 지향에서 흔히 사용하는 entry code로 크게 수정할 내용은 없어 보인다 .
아래는 app.js의 샘플 코드이다. 
Ext.application({
    name: 'Test',

    extend: 'Test.Application',
    
    autoCreateViewport: 'Test.view.main.Main'
    //-------------------------------------------------------------------------
    // Most customizations should be made to Test.Application. If you need to
    // customize this file, doing so below this section reduces the likelihood
    // of merge conflicts when upgrading to new versions of Sencha Cmd.
    //-------------------------------------------------------------------------
});

/app/view/main/Main.js에는 main view 의 UI 코드가 들어있다. 

Ext.define('Test.view.main.Main', {
    extend: 'Ext.container.Container',

    xtype: 'app-main',
    
    controller: 'main',
    viewModel: {
        type: 'main'
    },

    layout: {
        type: 'border'
    },

    items: [{
        xtype: 'panel',
        bind: {
            title: '{name}'
        },
        region: 'west',
        html: '<ul><li>This area is commonly used for navigation, for example, using a "tree" component.</li></ul>',
        width: 250,
        split: true,
        tbar: [{
            text: 'Button',
            handler: 'onClickButton'
        }]
    },{
        region: 'center',
        xtype: 'tabpanel',
        items:[{
            title: 'Tab 1',
            html: '<h2>Content appropriate for the current navigation.</h2>'
        }]
    }]
});



Test.view.main.Main에 대한 클래스는 Ext.define 함수를 사용해서 선언한다. 
Ext.define('Test.view.main.Main', {         // Ext.define 함수를 사용하여 class선언 
    extend : 'Ext.container.Container',     // Ext.container.Container 를 상속 받는다. 
   controller: 'main',
    viewModel: {
        type: 'main'
    }

   .... 
});


다른 카테고리의 글 목록

Etc 카테고리의 포스트를 톺아봅니다

센차 터치 Sencha Touch 가이드 번역본 문서

2015. 5. 3. 00:15 - mr.november11

센차 터치 Sencha Touch 가이드 번역본 문서

초기에는 이 문서만 정독해도 어느정도 개념을 잡을 수 있을듯하다.

https://play.google.com/books/reader?id=2HKhQzcCklQC&printsec=frontcover&output=reader&authuser=0&hl=ko&pg=GBS.PT19

다른 카테고리의 글 목록

Etc 카테고리의 포스트를 톺아봅니다