전체 글319 jQuery Form Plugin - API 출처: http://jquery.malsup.com/form/#api 관련싸이트가 폐쇠 될지도 몰라서 내 블로그에 저장함!! Form Plugin APIThe Form Plugin API provides several methods that allow you to easily manage form data and form submission.ajaxFormPrepares a form to be submitted via AJAX by adding all of the necessary event listeners. It does not submit the form. Use ajaxForm in your document's ready function to prepare your form(s) for AJAX .. 2013. 6. 5. Django File upload Django에서 CSV 파일을 서버에 업로드를 할 때 이용한 방법이다. view에서 input type='file'의 name을 이용해서 파일 정보를 받는다. Url에서 /uploadcsvfile의 주소는 view의 uploadCSVfile 함수이다. 참고사이트: http://hanjiq.egloos.com/2373084 JQuery Form Plugin: http://jquery.malsup.com/form/ Plugin download site: http://jquery.malsup.com/form/#download 1. Html {% csrf_token %} 올리기 2. JavaScript 3. View.py def uploadCSVfile(request): response = {} if reque.. 2013. 5. 28. 원격 접속 컴퓨터 끄는 방법 윈도우 XP는 작업관리자에서 컴퓨터 종료를 할 수 있다.그러나 7은 안된다.이때 shutdown 명령어를 이용하면 된다.명령 프롬프트에서 shutdown을 입력하면 사용법이 나온다.- 원격 컴퓨터에 shutdown /s 또는 shutdown -s를 입력하면 컴퓨터가 종료된다.다른 명령어는 위의 이미지를 참고하면 된다. 2013. 5. 7. STL Container 사용법(vector, map, list) 참고사이트: http://bcbjournal.org/articles/vol3/9910/Using_STL_containers.htm 예제 소스 #include #include #include #include #include #include #pragma hdrstop #include "Unit1.h" #include "WrkObjs.h" using namespace std; #pragma package(smart_init) #pragma resource "*.dfm" TForm1 *Form1; __fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner) { } void __fastcall TForm1::QuitButtonClick(TObject *Sender).. 2013. 1. 30. PHP's explode() 함수를 Python으로 처리할 경우 string을 분할 하는 함수를 사용하면 된다. import string string.split(the_string, the_separator) 예를 들어 보면 아래와 같다. >>>print "this is a test string!".split(' ') ['this', 'is', 'a', 'test', 'string!'] >>>print "this is a test string!".split(' ', 2) ['this', 'is', 'a test string!'] 2013. 1. 7. 아이튠즈 재생목록 만들기, MP3 넣기 1. PC에서 폴더를 만들고 원하는 곡을 넣습니다. (보통 앨범 별 혹은 월별 등수.. 등으로 곡을 넣죠) 2. 해당폴더를 아이튠즈의 재생목록위치에 드래그앤 드랍으로 넣습니다.(이때 앨범아트가져온다고 시간이 좀 걸립니다. 기다려 줍니다) 그러면 아이튠즈에 재생목록이 생성되어있습니다. 3. 아이튠즈 재생목록을 마우스로 콕 찍어서 아이폰쪽으로 드래그 앤 드랍으로 끌고 가면 해당 재생목록이 아이폰에 들어갑니다. 끝... 2번에서 PC의 폴더를 그냥 아이폰으로 끌고 가면 재생목록은 안만들어지고 아이폰에 그냥 음악이 들어갑니다. 난감... 나중에 삭제할때 재생목록 별로 삭제하는게 좀 귀찮은데요. 앨범별로 소트해서 삭제하는 방법도 있구요. 추가된 날짜로 소트해서 삭제하는 방법도 있어요. 추가된 날짜소트는 처음에는 .. 2013. 1. 7. k2pdfopt 사용법 및 HD에 맞는 PDF 변환 세팅 1. Download 사이트 http://www.willus.com/k2pdfopt/ - size 계산 - 아래 내용을 보면 킨들 같은 경우 실제 해상도와 보여주는 부분은 가로(40px), 세로(65px)의 차이가 난다. These set the device screen size in pixels. The defaults for the kindle are 560 x 735. Even though the kindle screen is technically 600 x 800, the useable space for PDF files is 560 x 735. For the larger Kindle DX, for example, the full screen resolution is 824 x 1200, so -.. 2012. 12. 16. Quantum Database Utility 이클립스에서 DB툴을 관리하기 위한 플러그인이다. http://sourceforge.net/projects/quantum/ 이클립스에 설치해서 사용하는 유틸리티로 위 사이트에서 다운 받은 파일(com.quantum.feature_3.3.0.2.bin.dist.zip)을 압축을 풀고 안의 폴더(features와 plugins)를 이클립스가 설치된 폴더에 덮어쓰기를 하면 된다. 덮어쓰기를 한 후에는 반드시 이클립스를 재시작해야만 한다. Perspective를 열어보면 "Quantum DB"가 설치 된 것을 볼 수 있다. 2012. 12. 15. 클래스 간에 연관관계 1. C++에서 클래스 간의 연관관계는 프로그램에서 상대 클래스를 가리키는 데이터 멤버로 구현된다. 예를 들어 아래와 같은 연관관계가 있다고 하면 class Client { private: String name; int age; public: String getName() { return this->name; } int getAge() { return this->age; } void writeContact() { } }; class Salesman { private: Client* client; public: void setClient(Client* client) { this->client = clinet; } void explainContact() { String name = this->client->.. 2012. 12. 6. 이전 1 ··· 19 20 21 22 23 24 25 ··· 36 다음