레이블이 etc인 게시물을 표시합니다. 모든 게시물 표시
레이블이 etc인 게시물을 표시합니다. 모든 게시물 표시

2015년 2월 25일 수요일

linux 에 git 인스톨하기


linux 에 git 인스톨하기

  1. rpm 저장소 update
    sudo rpm -i 'http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm'
    sudo yum update git –enablerepo=rpmforge-extras
    
  2. 깃인스톨
    sudo yum install git
    
  3. 깃 연결
    • git ssh연결하려면 다른 서버에서 개인키 복사해오던가 아니면 아래 방식으로 생성
      cd ~
      mkdir ./ssh
      cd ssh
      ssh-keygen -t rsa -C "유저이메일주소"
      
    • 만든 후 아래에 추가해서 넣어야함
      https://help.github.com/articles/generating-ssh-keys/
    • 다른서버에서 복사
      scp id_rsa.pub id@ip:~/.ssh
      
  4. 깃복사
    git clone git@github.com:userid/projectname.git

2014년 12월 12일 금요일

lattax mac 설치

texmaker의 장점은 바로바로 이쁘게 볼수 있다 강추한다.

1.http://wiki.ktug.org/wiki/wiki.php/MacOSInstall
2.texmaker
  preference
  pdfLatTax "/usr/local/texlive/2014/bin/universal-darwin/pdflatex" -synctex=1 -interaction=nonstopmode %.tex
  check pdf built in viewer

3.한글을 쓰려면 1번을 한후에 아래처럼 패키지를 불러온다.
  \documentclass[11pt]{article}
  \usepackage{kotex}

2014년 10월 17일 금요일

iframe scrollTop

iframe 에서 스크롤 탑을 구할수 있는가? 구할 수 있다. :)

iframe javascript

 function listener(event){
          self.scrollTop = event.data;
          console.log('Message Received : '+event.data);
        }

parent script

<script  type="text/javascript"
    src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">
</script>
<script type="text/javascript">
      var win = document.getElementById("myIframe").contentWindow;
      $(window).scroll(function(){
          var wintop = $(window).scrollTop();
          win.postMessage($(window).scrollTop(), 'http://localhost:4000');            
      });
</script>


참고
http://stackoverflow.com/questions/24656292/jquery-accessing-parent-document-scrolltop-from-iframe-and-sop

2014년 9월 18일 목요일

ie8 date wrapping (iso date parse problem)

https://github.com/es-shims/es5-shim/blob/v4.0.3/es5-shim.js

<script type="text/javascript">
            Wrapper = (function (NativeDate) {
                // Date.length === 7
                function Wrapper(Y, M, D, h, m, s, ms) {
                    var length = arguments.length;
                    console.log(this);
                    console.log(NativeDate);
                    console.log(this instanceof NativeDate);
                    if (this instanceof NativeDate) {
                        var date = length === 1 && String(Y) === Y ? // isString(Y)
                            // We explicitly pass it through parse:
                                new NativeDate(Date.parse(Y)) :
                            // We have to manually make calls depending on argument
                            // length here
                                        length >= 7 ? new NativeDate(Y, M, D, h, m, s, ms) :
                                        length >= 6 ? new NativeDate(Y, M, D, h, m, s) :
                                        length >= 5 ? new NativeDate(Y, M, D, h, m) :
                                        length >= 4 ? new NativeDate(Y, M, D, h) :
                                        length >= 3 ? new NativeDate(Y, M, D) :
                                        length >= 2 ? new NativeDate(Y, M) :
                                        length >= 1 ? new NativeDate(Y) :
                                new NativeDate();
                        // Prevent mixups with unfixed Date object
                        date.constructor = Wrapper;
                        console.log('there');
                        return date;
                    }
                    console.log('here');
                    return NativeDate.apply(this, arguments);
                }

                Wrapper.prototype = NativeDate.prototype;
                Wrapper.prototype.constructor = Wrapper;

                // Upgrade Date.parse to handle simplified ISO 8601 strings
                Wrapper.parse = function parse(string) {
                    return NativeDate.parse.apply(this, arguments);
                };
                return Wrapper;
            })(Date);
    </script>