일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- i18n
- HTTP
- 지뢰찾기
- cache-control
- Kotlin
- 리얼월드HTTP
- 스프링
- etag
- 랜선아미안해
- 이렇게살아야되나자괴감이
- 개미수열
- Spring
- LastModified
- 워드프레스
- brotli
- 코드스피츠
- 알고리즘
- 지수반등
- 클래스레벨밸리데이션
- 브로틀리
- 알게뭐냐
- jsr303
- kotliln
- jsr380
- cross parameter
- Today
- Total
취미개발 블로그와 마음수양
nircmd라는 녀석이 있습니다. 윈도우 콘솔 명령어로 모니터를 끈다던가 하는 식으로 콘솔 명령어를 잔뜩 지원해주는 녀석입니다. 콘솔창에서 "nircmd.exe monitor off" 하면 모니터가 꺼지고 그러죠... 그리고 뭐 다들 아시는 node.js 이 두녀석을 조합해서 달랑 15줄을 코딩했습니다! --------------------------------------------------------------------var http = require('http'), exec = require('child_process').exec; http.createServer(function (req, res) {res.writeHead(200, {'Content-Type': 'text/plain'}); sw..
int rowcount = 0;if (rs.last()) {rowcount = rs.getRow();rs.beforeFirst(); // not rs.first() because the rs.next() below// will move on, missing the first element}
getRemoteAddr() 리턴타입 String : 웹 서버에 연결한 클라이언트의 ip주소를 표시함 getContentLength() long : 클라이언트가 전송한 요천정보의 길이를 구함 (알수없을경우 -1) getRequestURI() String : URI에서 경로를 구함 ex) 결과: /J/ex.jsp getContextPath() String : URI에서 컨텍스트경로 ex) 결과: /J getServerName() String : 연결할때 사용한 서버이름(아이피주소)을 구함 (클라이언트ip-자신의 컴퓨터ip주소,서버이름-서버로사용하고있는 컴퓨터의 ip) getServerPort() int : 서버포트구함
거의 대부분 윤인성님 책에서 받은 소스입니다.
app.get('/messages', function (request, response) { response.header("Access-Control-Allow-Origin", "*"); response.header("Access-Control-Allow-Headers", "X-Requested-With"); response.send(messages);}); 이런식으로 요청 설정을 주면 된다. * 에서 일부 도메인만 지정할 수 있다
여기서 LOGINLEFT가 원하는 함수다.해당 태그에 인라인 액션을주면 된다~ onKeyPress="if (event.keyCode==13){ loginLeft();event.returnValue=false}"
픽셀과 퍼센트 조종 방법 하지만 이렇게 할 경우.. 퍼센트 div에서 퍼센트로 주면 사이즈를 잘 못 읽는다 이럴때는 height: calc(100% - 18px);It's worth it to note that not all browsers currently support the standard CSS3 calc() function, so implementing the browser specific versions of the function may be required like the following:/* Firefox */ height: -moz-calc(100% - 18px); /* WebKit */ height: -webkit-calc(100% - 18px); /* Opera */ height:..
Click! 참고하세요. 중요한건 obj.scrollTop = obj.scrollHeight; 이 부분입니다. phpschoo 퍼옴.