티스토리 툴바

블로그 이미지
"...우리 아이들에게 결코 불의와 타협하지 않아도 성공할 수 있다는 하나의 증거를 꼭 남기고 싶었습니다." manacle

카테고리

분류 전체보기 (86)
이것저것 (54)
오물딱조물딱 (32)
Total19,308
Today2
Yesterday6
(?<=[a-z])(?<x>[A-Z])|(?<=.)(?<x>[A-Z])(?=[a-z])
저작자 표시 비영리 동일 조건 변경 허락
Posted by manacle

TAG Regex
결론적으로 RFC에서 언급하는 fragment identifier (URI에서 # 뒤 문자)는 클라이언트에만 존제할 뿐 서버로 전송되지 않는다. 단지 user agent에서만 URI처럼 취급될 뿐이다. 

When a URI reference is used to perform a retrieval action on the identified resource, the optional fragment identifier, separated from the URI by a crosshatch ("#") character, consists of additional reference information to be interpreted by the user agent after the retrieval action has been successfully completed.  As such, it is not part of a URI, but is often used in conjunction with a URI.

때문에 javascript와 같이 user agent에서만 취급이 가능하다. 예를 들어

http://manacle.tistory.com?page=2#id=09&name=yong9


와 같은 문자열을 만들고 링크를 클릭할 시 서버로 fragment identifier 부분이 전송되지 않으므로 $_GET과 같은 방법으로 취급할 수가  없다는 말이다.
다만 구글이나 트위터같은 경우 따로 처리하는게 있으니 아래 참고의 해시뱅에대해서를 참고...


참고
해시뱅(#!)에 대해서...
http://php.net/manual/en/reserved.variables.server.php
http://datatracker.ietf.org/doc/rfc2396/?include_text=1(4.1. Fragment Identifier)




저작자 표시 비영리 동일 조건 변경 허락
Posted by manacle


libldap-2.2.so.7: cannot open shared object file: No such file or directory

2.3버전이 설치되어 있어도 
특정버전(libdap-2.2)으로 인해 오류가 발생하는 경우 아래로 설치해 줄 수 있다

yum install compat-openldap 
저작자 표시 비영리 동일 조건 변경 허락
Posted by manacle

Can't overwrite existing read-only value 또는 이미 존재하는 읽기 전용 값을 덮어 쓸 수 없습니다

특정 value를 변경할 수 없어 해당 설정 및 프로그램을 모두 삭제했으나 처리가 안될 경우 아래위치를 참조
/etc/gconf/gconf.xml.mandatory/
/etc/gconf/gconf.xml.mandatory/%gconf-tree.xml 
저작자 표시 비영리 동일 조건 변경 허락
Posted by manacle

binlog의 주기적 삭제를 위한 cronjob
mysql -u root -p -e "PURGE MASTER LOGS BEFORE DATE_SUB(CURRENT_DATE, INTERVAL 30 DAY)"
mysql -u root -p -e "PURGE BINARY LOGS BEFORE '2008-12-15 10:06:06';"
mysql -u root -p -e "PURGE BINARY LOGS TO 'mysql-bin.03';"


특정 웹로그의 주기적 삭제를 위한 cronjob
find /logs/ -type f -mtime +10 -exec rm -f {} \;
특정파일명을 포함하는 경우
find /logs/ -name 'logname*' -type f -mtime +10 -exec rm -f {} \;
저작자 표시 비영리 동일 조건 변경 허락
Posted by manacle

http://wiki.showmedo.com/index.php/LinuxJensMakingDeb


http://showmedo.com/videotutorials/video?name=linuxJensMakingDeb


http://utumdol.springnote.com/pages/1887418


http://blog.ghj.kr/31
저작자 표시 비영리 동일 조건 변경 허락

'오물딱조물딱 > Python' 카테고리의 다른 글

.deb 패키징  (0) 2011/08/11
Posted by manacle

Install 
eclipse
http://www.eclipse.org/pdt/downloads/  

svn
http://subclipse.tigris.org/update_1.6.x 

mylyn 
http://download.eclipse.org/mylyn/releases/latest

mylyn-mantis connector
http://mylyn-mantis.sourceforge.net/eclipse/update/

 java
http://www.oracle.com/technetwork/java/javase/downloads/index.html  


pdt for indogo
http://download.eclipse.org/tools/pdt/updates/3.0/milestones/


기타 
SVN 단축키가 활성화 되지 않을때
Window > Customize Perspective >  Command Groups Availability > SVN 체크
 
Ctrl + / 가 활성화 되지 않을때
http://www.eclipse.org/forums/index.php?t=msg&goto=660274&S=89c1a463415c57c8bf9e4146b335f9e1
http://www.eclipse.org/forums/index.php?t=msg&th=205375&start=0&S=ef58561fd3814f61bc3386addebba90c

Building workspace".GC overhead limit exceeded 발생시
http://www.techrecipes.net/application/eclipse/fix-gc-overhead-limit-exceeded

svn 설치후 JavaHL 관련 에러 발생시
http://subclipse.tigris.org/wiki/JavaHL#head-0ae839721445e3f59d10a128ec9439d4f4988d5f
http://mytory.co.kr/archives/978

getter / setter generation 이 활성화 되지 않을때
http://pdt.plugins.e-surf.pl/updates



※indigo 설치시 일부에러 혹은 활성화 문제가 해결된다.
 
저작자 표시 비영리 동일 조건 변경 허락

'오물딱조물딱 > IDE' 카테고리의 다른 글

eclipse default setting  (0) 2011/05/21
Posted by manacle

http://www.onlybalance.pe.kr/xe/tech/1797

WebKit NotificationsAPI 에 관련한 내용이다.

웹브라우저인 크롬에서 WebKit을 이용한 Notifications을 할 수 있는 예제인데..

일반 PC용 웹브라우저의 웹킷에 대한 지원이 다양해 진다면 ...? 나쁘지 않다...ㅎ


ex) http://m.voovic.com
저작자 표시 비영리 동일 조건 변경 허락
Posted by manacle

TAG Webkit, 웹킷
function is_available($url, $timeout = 30) {

        $ch = curl_init(); // get cURL handle


        // set cURL options

        $opts = array(CURLOPT_RETURNTRANSFER => true, // do not output to browser

                                  CURLOPT_URL => $url,            // set URL

                                  CURLOPT_NOBODY => true,                 // do a HEAD request only

                                  CURLOPT_TIMEOUT => $timeout);   // set timeout

        curl_setopt_array($ch, $opts); 


        curl_exec($ch); // do it!


        $retval = curl_getinfo($ch, CURLINFO_HTTP_CODE) == 200; // check if HTTP OK


        curl_close($ch); // close handle


        return $retval;

}

저작자 표시 비영리 동일 조건 변경 허락
Posted by manacle

구글링중에 예전에 쓰인 글들이지만 지금 포스팅과 같은 제목의 글과 함께 아래와 같은 형태의 코드가 쓰여진 곳이 많더라만...혹시나 하고 포스팅하자면..

인터넷의 예제..
 var  v = '';
   for (var i = 0; i < $("input:checkbox").length; i++) {
        if ($("input:checkbox")[i].checked == true) {
            v = v + "|" + $("input:checkbox")[i].value;
......

jquery라면.
$(":checkbox :checked").each(function(){
v = " "+$(this).val();
})

참고할 jquery 셀렉터 예제..


저작자 표시 비영리 동일 조건 변경 허락
Posted by manacle