RSS구독하기:SUBSCRIBE TO RSS FEED
즐겨찾기추가:ADD FAVORITE
글쓰기:POST
관리자:ADMINISTRATOR
서버[centos][난 우분투가 더 좋은데 ㅠ] :


yum install svn;
난 1.8x 버젼으로 했다 ^^;;

adduser svn;
passwd svn;


svnadmin create --fs-type fsfs /home/svn/test_android;
chown svn.svn test_android/ -R;


자 이제 설정 파일 수정하자.
vi /home/svn/test_android/conf/authz;


[groups]
admin = comefeel
# harry_and_sally = harry,sally
# harry_sally_and_joe = harry,sally,&joe

[/]
lavi = rw
# &joe = r
# * =

[test_android:/]
@admin = rw
# * = r

자 이제 됐고....vi /home/svn/test_android/conf/passwd;

[users]
comefeel = 1234
lavi = 1234
vi /home/svn/test_android/conf/svnserve.conf

[general]
### These options control access to the repository for unauthenticated
### and authenticated users.  Valid values are "write", "read",
### and "none".  The sample settings below are the defaults.
anon-access = none
auth-access = write
### The password-db option controls the location of the password
### database file.  Unless you specify a path starting with a /,
### the file's location is relative to the directory containing
### this configuration file.
### If SASL is enabled (see below), this file will NOT be used.
### Uncomment the line below to use the default password file.
password-db = passwd
### The authz-db option controls the location of the authorization
### rules for path-based access control.  Unless you specify a path
### starting with a /, the file's location is relative to the the
### directory containing this file.  If you don't specify an
### authz-db, no path-based access control is done.
### Uncomment the line below to use the default authorization file.
authz-db = authz
### This option specifies the authentication realm of the repository.
### If two repositories have the same authentication realm, they should
### have the same password database, and vice versa.  The default realm
### is repository's uuid.
realm = test_android Repository


다수정 했으면 재시작 하자 .

killall svnserve;
svnserve -d -r /home/svn;
svn checkout svn://localhost/test_android;


SVN_EDITOR=/usr/bin/vim;
export SVN_EDITOR;
디렉토리 추가하고
svn mkdir svn://localhost/test_android/trunk
svn mkdir svn://localhost/test_android/branches
svn mkdir svn://localhost/test_android/tags
만들때마다 wq! 누르고
c 로 커밋해줘라 ^^

서버는 끝 ^^;

클라이언트 : 안드로이드ADT 에서 HELP -> new install ...... -> add ->
http://subclipse.tigris.org/update_1.8.x/ 추가 하자.
그럼 체크 박스 두개 나온다 다 check 및 finish;

open perspective  ~~~ button ~ 클릭하고 ~~



svn Repository Exploring 추가한다.

그럼 왼쪽 레파지토리에 마우스를 우측 눌러서
new 하고 레파지토리 클릭후 주소 svn://도메인/test_android
아까 썼던 아이디 comefeel 과 1234를 누르면
드디어 레파지토리에 뜬다!
체크 아웃하고 디렉토리 하나씩 몽땅 잡아서 올리자!
그리고 bin 파일 같은 -_- 것들은 제외 시켜야 올바르지 않겠는가?

올라간 레파지토리에서 직접 bin 디렉토리를 delete click 후에
해당 디렉토리 checkout 클릭한다.
그리고 이제 자바분류로 가서 해당 디렉토리 우측 버튼 누르면
add to svn:ignore.. 이 뜬다.
이버튼 누르면 이제 영영 bin은 업로드 안한다 ^^.


아 이거 쓰는데도 30분 걸리네 ㅡㅡ;; 간단하게 이미지 없이 한건데도...
여튼 정보 글쓰는 모든 블로거들은 존중받아야 된다.
난 제외한다.. 난 쓰레기니깐 .

svn  으로 팀워크를 잘해보자.


2014/02/10 23:06 2014/02/10 23:06
이 글에는 트랙백을 보낼 수 없습니다
추억이 새록새록 난다 ... 하아 ....

#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define PI 3.141592;

// pointerFuntion 준말
typedef void (*pF)(char *str);

void act_1( char *str )
{
        int intValue = 0;
        printf("거리 입력 ? (킬로미터) ");
        scanf("%d", &intValue);
        printf("%d킬로미터는 %f마일입니다.\n" , intValue , (float)(intValue / 1.609344));

    return;
}

void act_2( char *str )
{
        int intValue = 0;
        float area, dulre;
        printf("반지름 ? ");
        scanf("%d", &intValue);
        area= intValue * intValue * PI;
        dulre= 2 * intValue * PI;
        printf("반지름이 %d인 원의 둘레 : %f\n" , intValue , dulre);
        printf("반지름이 %d인 원의 넓이 : %f\n" , intValue , area);

    return;
}

void act_3( char *str )
{
        int maxValue , intValueArray[3];
        for(int i = 0;i < 3;i++)
        {
            printf("%d번째 값을 입력해주세요. " , (i+1));
            scanf("%d", &intValueArray[i]);
        }

        // 삼항연산자 이용.
        maxValue = intValueArray[0] > intValueArray[1] ? intValueArray[0] : intValueArray[1];
        maxValue = maxValue > intValueArray[2] ? maxValue : intValueArray[2];
        
        printf("세가지( %d , %d , %d )중에서 제일큰 값은 %d입니다.\n" , intValueArray[0] , intValueArray[1] , intValueArray[2] , maxValue);

    return;
}

void act_4( char *str )
{    
        char ch;
        float floatValue = 0;
        printf ("위에문자를 입력하세요.(P 이면 pound -> kg, K 이면 kg -> pound) ? ");
        ch = getchar();

        // 소문자로 무조건 교환
        if( 'A' <= ch && ch <= 'Z' )
            ch += 32;

        switch( ch )
        {
            case 'p' :
                printf("파운드 입력 값은 ? ");
                scanf("%f", &floatValue);
                printf("%.2f파운드는 %f킬로그램입니다.\n" , floatValue , (floatValue * 0.453592));
                break;
            case 'k' :
                printf("킬로그램 입력 값은 ? ");
                scanf("%f", &floatValue);
                printf("%.2f킬로그램은 %f파운드입니다.\n" , floatValue , (floatValue * 2.204623));
                break;
            default :
                printf ("'%c'문자열은 p 와 k 의 문자가 아닙니다.\n" , ch);
                break;
        }
        
    return;
}

// functionArray 준말
void (*fA[4])( char *str) = {act_1 , act_2 , act_3 , act_4};

// functionExcute 준말
pF fE(int i)
{
    return fA[i];
}

void main(void)
{
        int form = 0;
        char ch;
    
        printf ("====== 다음중 계산식을 고르시오 =====\n\n");
        printf ("1. 킬로미터 => 마일 계산\n");
        printf ("2. 반지름 => 원의 둘레,넓이 계산\n");
        printf ("3. 세가지의 숫자중 큰값 계산\n");
        printf ("4. 킬로그람 => 파운드 또는 파운드 => 킬로그람 계산\n\n");
        printf ("위에 숫자중 계산하고 싶은 항목을 고르시오 (숫자하나) ");

        ch = getchar();
        fflush(stdin); // 개행문자 비우기. 또는 getchar() 한번더 실행해도 된다.
        form = (int)ch - 48; // 48을 빼주는 이유는 숫자의 기본 캐릭터 코드 넘버가 숫자 + 48이기 때문.
        if(!( form > 0 && form <= 4 ))
        {
            printf("숫자 5이상 입력하지마시오.\n실행이 종료됩니다.\n");
            system("pause");
            return;
        }
 
        fE(--form)("test");
        system("pause");

    return;    

}
2013/05/15 17:48 2013/05/15 17:48
이 글에는 트랙백을 보낼 수 없습니다
iptables -A INPUT -p tcp --dport 22 --syn -m limit --limit 30/s --limit-burst 5 -j ACCEPT;
iptables -A INPUT -p tcp --dport 22 ! --syn -j ACCEPT;
iptables -A INPUT -p tcp --dport 22 --syn -j DROP;

난 이렇게 한다.
2013/03/05 00:53 2013/03/05 00:53
이 글에는 트랙백을 보낼 수 없습니다


virtualbox에 win7을 설치하고 사용 중 2007년도로 시간설정을 변경해야 하는 상황이 발생하였습니다.

윈도우즈에 접속해서 아무리 시간을 변경해도 다시 시간이 현재로 변경되었습니다.

구글링해보니 바이오스의 시간을 변경해야지 OS의 시간이 변경된다는 글을 읽고, 어? 난 virtualbox인데..  host의 Bios를 변경해야 하나 하고 virtualbox 옵션을 찾아보니 방법이 있더군요.

VBoxManage modifyvm {vm이름} --biossystemtimeoffset -0000000

위와 같은 명령어를 사용하면 됩니다. {vm이름}에는 가상머신 이름을 넣으시면 되고 -0000000은 되돌리려고 하는 시간을 밀리세컨드초로 환산해서 적어 주시면 됩니다 -_-;

1000*60*60*24 = 1일

1000*60*60*24*365 = 1년 -_-;

혹은 해당 가상머신의 환경설정 xml파일을 수정하시면 됩니다.

xxx.vbox란 파일로 되어 있습니다.(제가 사용하는 버전은 그렇습니다.) 이 파일을 노트패드 등으로 열고

<BIOS> 항목에 다음을 추가하면 됩니다.

<TimeOffset value=”-00000000000″ />

<BIOS>
        <ACPI enabled=”true”/>
        <IOAPIC enabled=”true”/>
        <Logo fadeIn=”true” fadeOut=”true” displayTime=”0″/>
        <BootMenu mode=”MessageAndMenu”/>
<TimeOffset value=”-220752000000″/>
  <PXEDebug enabled=”false”/>
      </BIOS>

이렇게 됩니다.

시간을 예전으로 설정하기 위해서 value에 “-”기호가 붙습니다.




출처 : http://moriskim.wordpress.com/2012/06/13/virtualbox_biostimeoffset/
2013/02/02 09:11 2013/02/02 09:11
이 글에는 트랙백을 보낼 수 없습니다
기본적으로 64비트 우분투에서 32비트 컴파일 하면...

gcc -m32 -o 32bittest test.c
실행하면 아래와 같은 오류 메세지 ㅠㅠ

In file included from /usr/include/stdio.h:28:0,
>             from test.c:1:
> /usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
> compilation terminated.
그러므로 우리는

$ sudo apt-get install libc6-dev-i386
설치해주면 잘 컴파일 된다 ^^;
2013/02/02 00:46 2013/02/02 00:46
이 글에는 트랙백을 보낼 수 없습니다
아이폰5는 아이폰4s 와 약간 높은 배터리 용량은 1,440mAh 이다.


사용자 삽입 이미지


아이폰의 경우 배터리를 탈착할수가 없어서

충전 사이클이 과 배터리 용량은 등가교환이다 ㅠ.

이런 배터리를 가지고 LTE 좀 사용하면 5시간도 채 못되서

배터리 소멸ㅋ

아 ... 인덱싱도 끝났는데 ...

우리집은 맥생태계에 최적화 되어있어서

그 편안함을 버릴수가 없당 ...

젠쟝 ㅠ_ㅠ )a...

밖에 잠깐 나갈때 차라도 안가져가면 불안불안하다 ㅠ

젭알 배터리점 구원해주소서....






2013/01/11 03:16 2013/01/11 03:16
이 글에는 트랙백을 보낼 수 없습니다

전후 사정을 모른다 .

하지만 휀다부분이 저렇게 그냥 찟어지는건

아반떼와 같은 강성인거 같다는 생각이 든다 .

논쟁을 만들려는 것도 아니라 .

각자 사람들이 생각해 보면 좋을꺼 같다 .

사용자 삽입 이미지



ps.  기아자동차야 논쟁을 만들려는건 아니다 . 국민들 알권리다.

2012/04/27 13:54 2012/04/27 13:54
이 글에는 트랙백을 보낼 수 없습니다
헐 대박

노출잉 이렇게 심할줄이야 -_-

여친이랑 보는데 이건 정말 아니자나어....

대박 너무하군.

가슴이랑 인기가요 최고^^
사용자 삽입 이미지
2012/01/29 22:18 2012/01/29 22:18
이 글에는 트랙백을 보낼 수 없습니다

VS 2010 에서 ATL 프로젝트로 만들어서
Cstring 쓰는데 char 변환할려고 하니짜증나는 코드들이많아

걍 만듬..

char* CstringToChar(CString Cstr)
{  
 char *charBuffer = (char *)malloc(Cstr.GetLength() * sizeof(char));
 sprintf_s(charBuffer, (Cstr.GetLength()+1) * sizeof(char), "%S", (char*)(LPCTSTR)Cstr);

 return charBuffer;
}

2011/04/22 14:06 2011/04/22 14:06
이 글에는 트랙백을 보낼 수 없습니다
아무리 my.cnf 의 dir 를 바꿔준다고 해도

바뀐 mysqld 에서는 속수무책이었다

-_-;

vi /etc/apparmor.d/usr.sbin.mysqld

의 권한 속성 중에

예전 mysql db경로가 붙어있다.
 
즉시 수정해주고

:~# /etc/init.d/apparmor restart

후에 mysql 를 부팅시켜주자..

끗.
2011/04/12 15:20 2011/04/12 15:20
이 글에는 트랙백을 보낼 수 없습니다
웅쓰:웅자의 상상플러스
웅자의 상상플러스
전체 (379)
게임 (5)
영화 (2)
기타 (23)
맛집 (5)
영어 (2)
대수학 (3)
형태소 (5)
Hacking (9)
Linux (112)
HTML (48)
Application_developing (48)
Web_developing (102)
Window (11)
«   2024/04   »
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        
  1. 2016/01 (1)
  2. 2015/12 (3)
  3. 2015/10 (3)
  4. 2015/03 (2)
  5. 2015/01 (4)