Posted
Filed under 프로그래밍

getValue로 찍어보면 [Object Object]만 나온다.
노파심에...

Exr4.getCmp('라디오그룹아이디').getValue().radiofield의 name명

라디오그룹아이디가 radiog 이고 라디오버튼의 name이 bt면

Exr4.getCmp('radiog').getValue().bt



2013/02/20 16:58 2013/02/20 16:58
Posted
Filed under 쇼핑왕
와 정말...이 작은 사이즈에 USB전원으로만 이정도로 중저음을 때려주다니...
완전 만족 대 만족...

괜히 2.2채널이 아님...

내가 봐온 USB스피커 중에 최고라 말하고 싶다.


사용자 삽입 이미지
사용자 삽입 이미지
2013/02/19 19:59 2013/02/19 19:59
Posted
Filed under 프로그래밍/PHP
네이버 일본어 번역기를 몰래 사용하다가 차단당했는지 언젠가부터 안된다.ㅋㅋㅋ
구글은 유료로 바꼈고....
뭐 없나 찾아봤더니 마소 빙(Bing)에서 번역기를 무료로 사용할수 있다.
Microsoft Translator인데 이게 그냥 사용하기에는 사용방법이 어렵네?

간단하게 사용하는 방법은..

<?
  $trans_mode="&To=%27ko%27&From=%27ja%27";
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, 'https://api.datamarket.azure.com/Data.ashx/Bing/MicrosoftTranslator/v1/Translate?Text=%27'.urlencode($msg).'%27'.$trans_mode.'&$top=100&$format=Raw');
  curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Basic API코드'));
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  $msg_trans=strip_tags(curl_exec($ch));
?>


2013/02/19 11:42 2013/02/19 11:42
Posted
Filed under 프로그래밍

PHP 소스를 압축한다? ㅋㅋㅋㅋ
PHP소스의 주석과 공백을 제거해주는 펑션도 있다.
역시 PHP는 내장 펑션만으로도 너무 훌륭해.

http://www.php.net/manual/en/function.php-strip-whitespace.php


<?php
// PHP comment here
/*
 * Another PHP comment
 */
echo        php_strip_whitespace(__FILE__);
// Newlines are considered whitespace, and are removed too:
do_nothing();
?> 



<?php
echo php_strip_whitespace(__FILE__); do_nothing(); ?>

2013/02/19 11:34 2013/02/19 11:34
Posted
Filed under 프로그래밍
프로젝트 초반부터 WBS작성을 해야할때가 있다.
근데 WBS가 무슨 약자인지 궁금할때도 있다?

WBS : Work Breakdown Structure, 작업분해

2013/02/19 11:28 2013/02/19 11:28
Posted
Filed under 프로그래밍
뭐 협업하다보면 이런 단어들 많이 사용한다.
기본적인건 알고있어야 한다

Availability : 가용성
Scalability : 확장성
Consistency : 일관성
dependency : 종속성
2013/02/19 11:26 2013/02/19 11:26
Posted
Filed under 프로그래밍/PHP
function __construct(){
생성자
}

function __destruct(){
소멸자
}

class명과 같은 function은 __construct 다음에 실행



<?
class BaseClass {    //부모클래스[BaseClass]
     function __construct()
     {
         print "BaseClass 클래스의 constructor(생성자)\n";
     }
     function __destruct()
     {
         print "BaseClass 클래스의 destructor(소멸자)\n";
     }
}
class SubClass extends BaseClass {  //상속받은 클래스[SubClass]
     function __construct()
     {
         parent::__construct();
         print "SubClass 클래스의 constructor(생성자)\n";
     }
     function __destruct()
     {
         parent::__destruct();
         print "Subclass 클래스의 destructor(소멸자)\n";
     }
}

$obj=new SubClass;  //상속받은 클래스 호출
?>
2013/02/19 11:22 2013/02/19 11:22
Posted
Filed under 프로그래밍

jsonp를 사용하면 된다.
console 메세지는 크롬 디버그 화면 console에서 확인할수 있다.

  var addrStore1 = new Ext.data.JsonStore(
  {
    fields: ["sido","code"],
    proxy: {
     type: 'jsonp',
     url: 'http://x.x.x.x/list',
      reader: {
      type: 'json',
      }
    },
   autoLoad: true,
   listeners: {
    load: function() { 
         console.log(this.first().data.code);
    }
   }
  });

2013/02/19 11:09 2013/02/19 11:09
Posted
Filed under 프로그래밍
다른 Cls들은 style class명을 맘대로 사용할수 있었다.
근데 focusCls이넘만 반영이 안되는것이다. 쩝....
찾아보니 focusCls는 패키지명을 붙여야 하는 버그가 있단다. (버그맞나?)

.x4-field-li-focusClass {
background: #CFF0F5 !important;
border: 1px solid #6AB2BB;
}


이런형태로 클래스를 만들어야 하고
focusCls에는 li-focusClass라고 넣어줘야 한다.

.x4-field- 는 고정이라는 얘기다. (x4는 패키지명)

2013/02/15 09:13 2013/02/15 09:13