본문 바로가기

IT칼럼

jQuery table row add/delete #1 Example ROW ADDROW DELETE TOPIC TIME $('#btn-add-row').click(function() { var time = new Date().toLocaleTimeString(); $('#mytable > tbody:first').append('Hello Friends' + time + ''); }); $('#btn-delete-row').click(function() { $('#mytable > tbody:last > tr:last').remove(); }); #2 Example 옵션추가 옵션명 항목명 필수항목 가격 재고 옵션추가 삭제 더보기
Vi Editor Command (VI 에디터 명령어 모음) h, j, k, l - 좌,하,상,우 커서이동 i - 현재 커서 위치에 Insert 하기 I - 현재 줄 맨앞에 Insert 하기 a - 현재 커서 다음칸에 Insert 하기 A - 현재 줄 맨뒤에 Insert 하기 O - 윗줄에 Insert 하기 o - 아랫줄에 Insert 하기 w - 단어 첫글자로 이동하기 W - 화이트스페이스 단위로 다음 글자로 이동하기 b - 백워드 방향으로 단어의 첫글자로 이동하기 B- 백워드 방향으로 화이트스페이스 단위로 다음 글자로 이동하기 e - 단어의 마지막 글자로 이동하기 ge - 백워드 방향으로 단어의 마지막 글자로 이동하기 gg - 문서 맨 앞으로 이동 G - 문서 맨끝으로 이동 ^ - 문장 맨 앞으로 이동 0 - 라인 맨 앞으로 이동 $ - 문장 맨 뒤로 이동 f.. 더보기
Install htop-osx on Mac OSX htop 사용하기 참고 자료 : http://macappstore.org/htop-osx/ 요약 1. 터미널 열기2. ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" /dev/null3. brew install htop-osx or brew install htop About the AppApp name: htop-osxApp description: Improved top (interactive process viewer) for OS XApp website: https://github.com/max-horvath/htop-osxInstall the AppPress C.. 더보기
Install tree on Mac OSX Mac 터미널에서 tree command 사용하기 참고 : http://macappstore.org/tree/ 요약 1. 터미널 열기 2. ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" /dev/null 3. brew install tree DONE About the AppApp name: treeApp description: Display directories as trees (with optional color/HTML output)App website: http://mama.indstate.edu/users/ice/tree/Install the AppPress.. 더보기
Regular Expression What Is a Regular Expression?A regular expression is a sequence of characters that forms a search pattern.When you search for data in a text, you can use this search pattern to describe what you are searching for.A regular expression can be a single character, or a more complicated pattern.Regular expressions can be used to perform all types of text search and text replace operations.Syntax/patt.. 더보기
VirtualBox Won’t Run - raw-mode unavailable courtesy of Hyper-V? Hypervisor 문제로 virtual box가 정상적으로 동작하지 않으면 다음과 같은 순서로 수행하시면 됩니다. STEP 1: 관리자모드로 command pormpt 시작 STEP 2:argument 없이 다음 명령어 수행: bcdedit아래 화면과 같이 hypervisorlaunchtype 가 Auto 로 되어 있는 것을 확인 default 세팅이니.. 이를 off 시켜줘야 함 Untitled1.png1357x763 74.4 KBSTEP 3: Hyper-V 를 Disable 시키기 위해서 하기와 같은 command 수행: bcdedit /set hypervisorlaunchtype offSTEP 4: VirtualBox 사용하기 위해서 윈도우 PC재부팅 필요Hyper-V를 다시 복원하고자 하면 다음.. 더보기
Practical psql Commands That You Don’t Want To Miss Practical psql Commands That You Don’t Want To Miss Summary: in this tutorial, we give you a list of common psql commands that helps you query data from PostgreSQL database server faster and more effective. Connect to PostgreSQL database The following command connects to a database under a specific user. After pressing Enter PostgreSQL will ask for the password of the user. 1 2 3 C:\Program File.. 더보기
How to install and use PostgreSQL 요약 - 선수조건 - ubuntu 18.04 기본 셋업 - sudo 권한을 가진 root가 아닌 사용자와 기본 방화벽- 설치 - sudo apt-get update - sudo apt-get install postgresql postgresql-contrib- Postgresql Role, DB 관리 - sudo -i -u postgres (사용자 명을 postgres 로 설정) - psql ( postgresql database 접속) - \q (exit 명령어)- 새로운 Role 생성 - createuser --interactive (postgres id로 로그인 시) - sudo -u postgres createuser --interactive (일반 sudo 권한을 갖는 아이디로 로그인 시) - .. 더보기