'분류 전체보기'에 해당되는 글 182건

<mx:TextArea x="10" y="10" height="224" width="288" id="moMsg" color="#000000"  valueCommit="on_moMsgValueCommit()"/>

private function on_moMsgValueCommit():void {
  moMsg.verticalScrollPosition = moMsg.maxVerticalScrollPosition;
}

'프로그래밍 언어 > FLASH, FLEX' 카테고리의 다른 글

AIR - tray  (0) 2008.04.10
flex script source 추가  (0) 2008.04.07
Complete Flex 3 documentation  (0) 2008.04.03
.air web 설치/배포  (0) 2008.04.03
플래쉬 임시  (0) 2007.12.31
블로그 이미지

용병

,

'프로그래밍 언어 > FLASH, FLEX' 카테고리의 다른 글

flex script source 추가  (0) 2008.04.07
FLEX 에서 스크롤  (0) 2008.04.04
.air web 설치/배포  (0) 2008.04.03
플래쉬 임시  (0) 2007.12.31
foreach 문  (0) 2007.12.27
블로그 이미지

용병

,

AdobeAIRSDK\samples\badge 에 있는 파일 사용

AC_RunActiveContent.js
default_badge.html
badge.swf

default_badge.html 에서 적당히 수정


    AC_FL_RunContent(
        'codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab',
        'width','217',
        'height','180',
        'id','badge',
        'align','middle',
        'src','badge',
        'quality','high',
        'bgcolor','#FFFFFF',
        'name','badge',
        'allowscriptaccess','all',
        'pluginspage','http://www.macromedia.com/go/getflashplayer',
       'flashvars','appname=FileText&appurl=http://도메인/test/FILENAME.air&airversion=1.0&buttoncolor=FF0000&messagecolor=000000&imageurl=test.jpg',
        'movie','badge' ); //end AC code

flashvars 에서 appurl 이 중요

'프로그래밍 언어 > FLASH, FLEX' 카테고리의 다른 글

flex script source 추가  (0) 2008.04.07
FLEX 에서 스크롤  (0) 2008.04.04
Complete Flex 3 documentation  (0) 2008.04.03
플래쉬 임시  (0) 2007.12.31
foreach 문  (0) 2007.12.27
블로그 이미지

용병

,
아파치 2.0은 용도에따라서 프로세스 모델을 정의해주어야 됩니다. (유닉스 계열은
컴파일시 --with-mpm={perchild|prefork|worker} 기본값은 아파치 1.3과 같은
prefork 모델입니다.

prefork 일때

아파치 1.3 은 포크 가능한 자식 프로세스는 기본값은 256개로서
apache_1.3.24/src/include/httpd.h 파일에서

#define HARD_SERVER_LIMIT 256

요것을 서버 스펙에 따라서 적당히 늘려줍니다.

아파치 2.0 은 역시 포크 가능한 자식 프로세스는 기본값은 256개로서
httpd-2.0.35/server/mpm/prefork/prefork.c 를 열으셔서

#define DEFAULT_SERVER_LIMIT 256

역시 적당히 늘려줍니다.

worker 방식

기본으로 16개의 차일드 프로세스와 그안에 64개의 쓰레드를 생성가능하므로
16*64 = 1024 개의 쓰레드를 생성 할수있습니다.

httpd-2.0.35/server/mpm/worker/worker.c

기본적으로 생성가능한 차일드 프로세스수 조절
#define DEFAULT_SERVER_LIMIT 16
각 프로세스내에 생성 가능한 쓰레드 수 조절
#define DEFAULT_THREAD_LIMIT 64


perchild 방식

기본으로 8개의 차일드 프로세스와 그안에 64개의 쓰레드를 생성가능하므로
8*64 = 512 개의 쓰레드를 생성 할수있습니다.

httpd-2.0.35/server/mpm/perchild/perchild.c

기본적으로 생성가능한 차일드 프로세스수 조절
#define DEFAULT_SERVER_LIMIT 8
각 프로세스내에 생성 가능한 쓰레드 수 조절
#define DEFAULT_THREAD_LIMIT 64

'시스템, 서버 > 웹서버' 카테고리의 다른 글

apache / nginx 에서 .php 생략하기  (0) 2017.01.09
블로그 이미지

용병

,

???

생각/네생각 2008. 3. 13. 13:05
줄 맞춰!,
들여쓰기 잘 해!,
대소문자 확실히 구분해!,
길게 쓰지마!,
똑같은 코드 두 번 쓰지마!,
똑같은 클래스 두 개 만들지마!,
except로 에러 숨기지마!,
모르는 콤포넌트 쓰지마!,
폼에서 폰트 많이 쓰지마!,
폼에서 컬러 많이 쓰지마!,
빡빡하게 디자인하지마!,
폼 디자인 싼 티나게 만들지마!,
제발 델파이에 있는 아이콘 이미지 쓰지마!,
한 폼에서 다 하지마!,
소스코드 Ctrl-C, V로 코딩하지 마!,
띄어쓰기는 디자인이 아냐 맞춤법대로 해!,
함수명 메소드명은 영어 문법대로 해!,
List Index Out of...메세지 튀어 나오면 죽어!,
엑세스바이올뤠션 튀어나오면 죽어!,
클릭하고 즉각 반응 안하면 죽어!,
try finally 안하면 죽어!,
에러 10분내로 못 잡으면 죽어!,
에러 고치고 똑같은 에러 다른데서 또 나면 죽어!,
변수 함수 메소드등 Ctrl+클릭해서 선언부 안 튀어나오면 죽~어!,
잘 모른다고 델마당에서만 뒤적거리면 죽어!(오해없길.. 델마당 회장했을 때도 그랬음^^)
공부 안 할거면 집에가!

From : 델마당

'생각 > 네생각' 카테고리의 다른 글

Ideal Candidate Profile(이상적인 인재의 특성)  (0) 2012.03.19
The Power of Words  (0) 2011.08.23
[책] 일 분 후의 삶  (0) 2007.07.12
모니 앤 스토리 - 선물  (0) 2007.07.12
세상에서 가장 중요한 것  (0) 2007.04.13
블로그 이미지

용병

,


key_str = "";
var str_in:String = "";
key_array = new Array();
data_array = [];
str = "";
function analysis (space:String, obj:XML)
{
        var n:Number = 0;
 
        space += "\t";
        while (obj.childNodes[n])
        {
   if (obj.childNodes[n].attributes.depth != "" && obj.childNodes[n].attributes.depth != null)
   {
    trace(space + "depth : " + obj.childNodes[n].attributes.depth);

    if (obj.childNodes[n].attributes.id != "" && obj.childNodes[n].attributes.id != null)
    {
     key_array[obj.childNodes[n].attributes.depth] = obj.childNodes[n].attributes.id;
     trace (space + "id : " + obj.childNodes[n].attributes.id);
     str_in = joinId(obj.childNodes[n].attributes.depth);
     data_array[str_in] = [];
     trace(space + "in : " + str_in);
    }
   }
   
   if (obj.childNodes[n].nodeName != "" && obj.childNodes[n].nodeName != null)
   {
    if (obj.childNodes[n].firstChild.nodeValue != "" && obj.childNodes[n].firstChild.nodeValue != null)
    {
     trace(obj.childNodes[n].attributes.depth + " k1");
     var nname:String = obj.childNodes[n].nodeName;
     data_array[str_in][nname] = obj.childNodes[n].firstChild.nodeValue;
     trace("data : " + str_in + " - " + nname + " - " + data_array[str_in][nname]);
    }
   }

            trace (space + obj.childNodes[n].nodeName + " - " + obj.childNodes[n].firstChild.nodeValue);
            str +=space + obj.childNodes[n].attributes.id +"\n"
            if (obj.childNodes[n])
            {
             analysis (space, obj.childNodes[n]);
     }
            n++;
        }
}

function joinId(n)
{
 var iid = "";
 for (i = 0; i <= n; i++)
 {
  if (key_array[i])
  {
   if (i != n)
   {
    iid += key_array[i] + "_";
   }
   else
   {
    iid += key_array[i];
   }
  }
 }
 return iid;
}

//
// recursive function to print out the contents of an array similar to the PHP print_r() funciton
//
function print_a( obj, indent ) {
 if (indent == null) indent = "";
 var out = "";
 for ( item in obj ) {
  if (typeof( obj[item] ) == "object" )
   out += indent+"[" + item + "] => Object\n";
  else
   out += indent+"[" + item + "] => " + obj[item]+"\n";
  out += print_a( obj[item], indent+"   " );
 }
 return out;
}

function display( obj, indent ) {
 if (indent == null) indent = "";
 var out = "";
 var iname = "";
 for ( item in obj ) {
  if (typeof( obj[item] ) == "object" )
  {
   iname = item;
   trace("this is first : " + iname.substring(0, 1));
   if (obj[iname]["enabled"] == "true")
   {   
    _root[iname].gotoAndPlay(2);
    //_root[iname]._alpha = 100;
    trace(item + " hi " + obj[iname]["enabled"]);
   }
   else
   {
    _root[iname].gotoAndStop(1);
    //_root[iname]._alpha = 10;
    //_root["S_0_0_0_0"]._alpha = 100;
    trace(iname + " bye " + obj[iname]["enabled"]);
   }
  }
  out += print_a( obj[item], indent+"   " );
 }
 trace("");
 trace(out);
}

var menu_xml:XML = new XML ();
menu_xml.ignoreWhite = true;
menu_xml.onLoad = function (success)
{
 if (success)
 {
        analysis ("", this.childNodes[0]);
  //trace(this.childNodes[0]);
  //trace(data_array.length);
  //trace( print_a( data_array) );
  //trace(data_array["S_0_0_0"]["title"]);

  display(data_array);
 }
};
menu_xml.load ("tree3.xml");

'프로그래밍 언어 > FLASH, FLEX' 카테고리의 다른 글

flex script source 추가  (0) 2008.04.07
FLEX 에서 스크롤  (0) 2008.04.04
Complete Flex 3 documentation  (0) 2008.04.03
.air web 설치/배포  (0) 2008.04.03
foreach 문  (0) 2007.12.27
블로그 이미지

용병

,
 // foreach
 for (var key in xmlNodeArray)
 {
  var value = xmlNodeArray[key];
  trace(key + " : " + value);
 }

'프로그래밍 언어 > FLASH, FLEX' 카테고리의 다른 글

flex script source 추가  (0) 2008.04.07
FLEX 에서 스크롤  (0) 2008.04.04
Complete Flex 3 documentation  (0) 2008.04.03
.air web 설치/배포  (0) 2008.04.03
플래쉬 임시  (0) 2007.12.31
블로그 이미지

용병

,

   // MSN 로그인시
   function ev_Login()
   {
      global $t;
   }

   // after -> receive and process a message from all the open servers
   function ev_Rock()
   {
      global $t;
   }

   // 사용자가 상태를 변경시 활성화
   function ev_StatusChange($p_who, $p_avatar)
   {
      /*
      $p_who     = $mail $nick $status
      $p_avatar  = The MSNC1 urlencoded block with the avatar

      -------------------------------------------------
      email@email.com NICK NLN
      -------------------------------------------------
      0
      -------------------------------------------------
      */
   }

   // 사용자가 문자를 보낼경우 활성화
   function ev_ChatMessage($p_session, $p_cmd, $p_message)
   {
      global $t;

      /*
      $p_session  = chat session
      $p_cmd      = the full command send by the server
      $p_message  = message received

      -------------------------------------------------
      session no
      -------------------------------------------------
      Chat Message....
      1
      -----------------------
      MSG $email $nick $byte(int)

      -----------------------
      MIME-Version: 1.0
      Content-Type: text/plain; charset=UTF-8
      X-MMS-IM-Format: FN=굴림; EF=; CO=0; CS=81; PF=32

      this is the message
      */

      /*
      echo "Chat Message....\n";
      print_r($p_session);
      echo "\n-----------------------\n";
      print_r($p_cmd);
      echo "\n-----------------------\n";
      print_r($p_message);
      echo "\n\n";
      */
   }

   // 사용자가 채팅창에 조인시
   function ev_ChatJoin($p_session, $p_session2, $p_who)
   {
      /*
      $p_session  = chat session
      $p_session2 = chat session (again)
      $p_who      = $name $mail
      */

      /*
      echo "Chat Join....\n";
      print_r($p_session);
      echo "\n-----------------------\n";
      print_r($p_who);
      echo "\n\n";
      */
   }

   // 사용자가 채팅창을 떠날경우 활성화
   function ev_ChatLeave($p_session, $p_who)
   {
      /*
      $p_session  = chat session
      $p_who      = the mail of the user leaving
      $p_cmd      = the full command sent by the server

      -------------------------------------------------
      session no
      -------------------------------------------------
      BYE email@email.com
      -------------------------------------------------
      */

      /*
      echo "Chat Leave....\n";
      print_r($p_session);
      echo "\n-----------------------\n";
      print_r($p_who);
      echo "\n\n";
      */
   }

'프로그래밍 언어 > php' 카테고리의 다른 글

파일 사이즈 형식 변경  (0) 2017.03.08
memcached 관련  (0) 2016.12.23
libcurl Emulator  (0) 2007.12.06
php header_sent  (0) 2007.11.27
array_combine php5 -> php4  (0) 2007.05.07
블로그 이미지

용병

,
php 에 curl 이 설치돼지 않았을 경우를 위한 class
http://code.blitzaffe.com/pages/phpclasses/category/52/fileid/7


Provides a pure-PHP implementation of the PHP CURL extension, for use on systems which do not already have the CURL extension installed. It emulates all of the curl_* functions normally provided by the CURL extension itself.

'프로그래밍 언어 > php' 카테고리의 다른 글

memcached 관련  (0) 2016.12.23
mzk - event  (0) 2007.12.15
php header_sent  (0) 2007.11.27
array_combine php5 -> php4  (0) 2007.05.07
배열 컬럼 정렬  (0) 2007.03.15
블로그 이미지

용병

,
ffmpeg -y  -i sample.avi -threads 2 -s 320x240 -r 30.00 -threads 1 -pix_fmt yuv420p  -g 300  -qmin 3  -b 512k -async 50  -ar 11025 -ac 1 -ab 16k outputfile.flv


ffmpeg -y  -i sample.avi -threads 2 -s 320x240 -r 29.97 -threads 1 -pix_fmt yuv420p  -g 300  -qmin 3  -b 512k -async 50  -ar 44100 -ac 2 -ab 128k outputfile.flv

  • -y: Overwrite output files
  • -i ‘inputfile.avi’: Input filename
  • -threads 2: Thread count
  • -s 320×240: Set frame size
  • -r 30.00: Set frame rate (fps)
  • -threads 1: Thread count (again)
  • -pix_fmt yuv420p: Set pixel format
  • -g 300: Set the group of pictures size
  • -qmin 3: minimum video quantizer scale (VBR)
  • -b 512k: Set the video bitrate in bits/s
  • -async 50: Audio sync method. “Stretches/squeezes” the audio stream to match the timestamps, the parameter is the maximum samples per second by which the audio is changed.
  • -acodec mp3: Force audio codec to codec
  • -ar 11025: Set the audio sampling frequency
  • -ac 1: Set the number of audio channels
  • -ab 16k: Set the audio bitrate in bits/s
  • outputfile.flv: Is the outputfile


from : http://www.victorcastelan.net/convert-avi-mpeg-files-to-flv-with-ffmpeg/

'시스템, 서버 > 리눅스' 카테고리의 다른 글

gitlab uninstall / remove  (0) 2017.01.13
NVIDIA nFORCE onboard lan card driver on Centos  (0) 2009.01.29
mencoder - avi to flv  (0) 2007.11.28
ffmpeg 이용 avi thumbnail 만들기  (0) 2007.11.28
php 5.2.5  (0) 2007.11.28
블로그 이미지

용병

,