개발 & 계발
-
-
CentOS 5.x yum install, update 시 에러 대응 방법개발 & 계발/Linux 2018. 11. 13. 10:14
현재 CentOS 5.8을 설치 중에YumRepo Error: All mirror URLs are not using ftp, http[s] or file와 같은 에러를 만났다. 관련하여 검색해 보니 /etc/yum.repos.d/CentOS-Base.repo를 수정하면 된다고 나온다. 참고 : https://blog.naver.com/noorol/220996159589 하여다음과 같이 수정하였다! [root@localhost yum.repos.d]# cat CentOS-Base.repo# CentOS-Base.repo## The mirror system uses the connecting IP address of the client and the# update status of each mirror to..
-
IP 주소 변환 소스개발 & 계발/PHP 2018. 4. 25. 01:30
$ip_str = "192.168.2.100/27";$arr = get_ipaddr_info($ip_str);print_r($arr);function get_ipaddr_info($ip_str){ $result_arr = array(); $result_arr["result"] = "fail"; if(!strstr($ip_str,"/")) return $result_arr; $result_arr["result"] = "success"; $result_arr["ip_str"] = $ip_str; $temp = explode("/", $ip_str); $ip = trim($temp[0]); $cidr = trim($temp[1]); $result_arr["ip"] = $ip; $result_arr["ci..
-
[PHP] AJAX 크로스 도메인 통신 ACCESS-CONTROL-ALLOW-ORIGIN 문제해결개발 & 계발/PHP 2017. 10. 12. 11:36
localhost 에서 다른 서버에 있는 PHP 파일을 호출할 때에 No 'Access-Control-Allow-Origin' header is present on the requested resource와 같은 오류 메시지가 나온다 (크롬에서 확인) 서버 쪽 소스에 아래와 같이 추가해 줘야 한다. header('Access-Control-Allow-Origin: *');header('Access-Control-Allow-Methods: GET, POST, PUT');header("Access-Control-Allow-Headers: X-Requested-With, Content-Type"); 참고 : http://www.planactor.com/?p=419
-
[Linux] yum으로 설치가 잘 안될 때개발 & 계발/Linux 2017. 8. 11. 09:11
가끔 yum error로 인해 설치가 잘 안될 때가 있다. 이유야 다양하겠지만, 짧은 내 지식으로 이렇게 설치하는 것도 가능하다. 1. rpm 파일을 확보하자 https://www.rpmfind.net/linux/rpm2html/search.php 내가 자주 가는 사이트 이다. 2. rpm을 특정 폴더(Linux)에 넣어 둔다. 예를 들어 dhcp와 dhcp-devel을 설치해 보겠다. 해당 파일을 /root/dhcp 라는 폴더에 넣어 둔다. 3. yum install(또는 update) 모듈명 실행 해당 폴더에서 yum으로 설치(또는 업데이트)하면 다른 repository 확인하고 그래도 없으면 내 폴더에 파일을 repository 삼아서 설치한다. 이상~ 오늘도 즐겁게 일하자!
-
jQuery ListView - 리스트뷰개발 & 계발/jQuery 2015. 11. 29. 23:00
http://demos.jquerymobile.com/1.3.0-rc.1/docs/demos/widgets/listviews/ jQuery MobileNavigation Home Listviews API A listview is coded as a simple unordered list (ul) or ordered list (ol) with a data-role="listview"attribute and has a wide range of features.Jump to section Read-only, unorderedA listview is a simple unordered list containing linked list items with a data-role="listview" attribute...
-
[jQuery입문] EVENT 처리하기개발 & 계발/jQuery 2015. 6. 22. 18:26
이벤트 종류 - click : 클릭되었을 때 - mouseenter : 마우스 포인터가 위에 있을 때 - mouseleave : 마우스 포인터가 벗어났을 때 - hover : mouseenter와 mouseleave를 한꺼번에 - focus : 포커스를 얻었을 때 - blur : 포커스를 벗어났을 때 이벤트 핸들러 작성 - 이벤트가 발생 했을 때 처리하는 부분 작성 jQueryObject.click(function(){ 처리 내용 }); mouseenter, mouseleave 예제 div! hover 예제 - hover 이벤트는 mouseenter/mouseleave의 두 이벤트를 동시에 설정할 수 있는 숏 컷과 같다. - jQueryObject.hover(mouseenter이벤트핸들러, mousele..
-
[jQuery입문] .append()와 .appendTo()로 DOM 구조 움직이기개발 & 계발/jQuery 2015. 6. 13. 12:41
ㅇ .append()는 셀렉터 하단에 Element를 추가할 수 있다. - jQueryObjectA.append(jQueryObjectB); // jQueryObjectA 하단에 jQueryObjectB를 붙입니다. - 여러의 Elmenet를 붙이려면 jQueryObjectA.appen(jQueryObjectB, jQueryObjectC, jQueryObjectD); 와 같이 입력하면 된다. basket apple banana orange 샘플 보기 ㅇ .appendTo()는 셀렉터를 특정 Element 하단에 추가시킬 수 있다. - jQueryObjectB.appendTo(jQueryObjectA); // jQueryObjectA 하단에 jQueryObjectB를 붙입니다. basket apple ba..
-
[jQuery입문] .addClass(), .removeClass()로 class 속성값 조작개발 & 계발/jQuery 2015. 6. 13. 00:42
ㅇ 한 Element에 여러개의 class를 적용하는 방법 - 예를 들어 style에 이미 css1, css2, css3라는 class의 style이 정의되어 있다고 가정하자. - 그리고 를 활용해서 css1, css2, css3를 모두 적용하고 싶다면 구분자를 공백으로 하고 여러개의 class명을 적어주면 된다. 내용 ㅇ .attr('class','값') vs .addClass()/removeClass()의 차이점 - .attr()은 class 값을 기존에 적용된 것은 모두 무시하고 새로 적용 대상을 선정하는 것이다. - .addClass(), .removeClass()의 경우는 기존에 적용된 것을 기반으로 추가/삭제를 하는 것이다. DIV1 DIV2 DIV3 DIV4