it

it/information

페이스북 링크 공유 원하는 정보 넣기. Facebook link share control

15.07.22Facebook link share 기능 첨부 정보 컨트롤하기 head상단 meta태그에 og property를 지정하여 컨트롤할 수 있으며바뀐 정보는 https://developers.facebook.com/tools/debug/og/object/ 에서 확인할 수 있다. 예시(개인블로그)

it/programming

[MS-SQL] 달력그려주는 쿼리

master.dbo.spt_values 테이블 활용한 쿼리입니다. DECLARE @FIRST VARCHAR(10), @LAST VARCHAR(10) select @FIRST=dateadd(day,-(day('2000-02-04')-1),'2000-02-04') select @LAST=dateadd(month,1,'2000-02-04')-(day('2000-02-04')) SELECT MIN(CASE WHEN DATEPART(DW,DT.AttendDateSet) = 1 THEN AttendDateSet END) SUN, MIN(CASE WHEN DATEPART(DW,DT.AttendDateSet) = 2 THEN AttendDateSet END) MON, MIN(CASE WHEN DATEPART(DW,DT..

it/programming

[ASP] 페이징 개발

6월 30일 화요일페이징에 대해 찾아보던 도중 페이징을 소스에서 할 때, DB에서 할 때 각각의 장 단점을 알아보라고 하셨습니다. 장단점을 생각하던 중 소스에서의 '페이징'은 DB에서 일정 범위 별로 나누어 SELECT 한 데이터를 유저에게 보여지는 페이징 넘버를 출력.DB에서의 '페이징' 은 데이터를 일정범위 별로 나누어 SELECT 하는 것을 의미한다는 것을 깨닫고이에 따라 소스와 DB를 장단점으로 구분하기보단 DB 페이징 쿼리를 직접 만들어 보았습니다. 우선 DB에서 페이징 쿼리를 작성할 때 사용하는 쿼리를 MS SQL 기준으로 찾아보았습니다:Primary Key 의 auto increment identity 옵션을 이용하여 ID 를 선언 후SELECT TOP n // 상위 n개의 쿼리를 조회간단히..

it/programming

[ASP classic] include 활용하기

HTML 상 주석처럼 써넣는다. 상대경로 절대경로 상대경로에서는 url 맨 앞에 ' / ' 을 넣을 수 없다.넣을경우 오류를 뱉어낸다.

it/programming

[HTML] placeholder 에서 줄바꿈하기 placeholder line break character

줄바꿈 위치에 [ ] 을 넣어주세요.참고 : Character entity references in HTML

it/programming

(jQuery)javascript 셀렉터 가져오기

$.fn.getSelector = function() { var selector = $(this).parents().map(function() { return this.tagName; }).get().reverse().join(" "); if (selector) selector += " "+ $(this)[0].nodeName; var id = $(this).attr("id"); if (id) selector += "#"+ id; var classTag= $(this).attr("class"); if (classTag) selector += "." + $.trim(classTag).replace(/\s/gi, "."); return selector; }; jQuery 기반으로 만들었다.$(object)...

it/programming

장고 테스트(Django PyUnit Test) - django.test

[docs.djangoproject.com] translationhttps://docs.djangoproject.com/en/1.7/topics/testing/https://docs.djangoproject.com/en/1.7/topics/testing/overview/https://docs.djangoproject.com/en/1.7/intro/tutorial05/https://docs.djangoproject.com/en/1.7/topics/testing/tools/ Testing in Django Automated testing is an extremely useful bug-killing tool for the modern Web developer. You can use a collection o..

it/programming

NGINX + PostgreSQL 을 위한 리서치 (*번역)

목차준비설치Step One: 패키지 업데이트(Update Packages)Step Two: 가상 환경세팅(Install and Create Virtualenv)Step Three: 장고 설치(Install Django)Step Four: PostgreSQL 설치(Install PostgreSQL)Step Five: NGINX 설치(Install NGINX)Step Six: Gunicorn 설치(Install Gunicorn) 설정Step Seven: PostgreSQL 설정(Configure PostgreSQL)Step Eight: 장고 프로젝트 생성(Create a Django Project)Step Nine: Gunicorn 설정(Configure Gunicorn)Step Ten: NGINX 설정(C..

반응형
훈솔
'it' 카테고리의 글 목록 (6 Page)