본문 바로가기

전체보기161

logrotate 사용법 가. 사용 환경 설정 /etc/logrotate.conf /etc/logrotate.d /usr/sbin/logrotate /var/lib/logrotate.status 나. 기본 설정/etc/logrotate.d 에 사용하고자 하는 logfile 위치를 입력한다. # /etc/logrotate.d/project /home/gooddev/project/logs/output.log/home/gooddev/project/logs/project.log { daily rotate 30 missingok dateext postrotate touch /home/gooddev/project/logs/project.log touch /home/gooddev/project/logs/output.log endscript}.. 2018. 1. 15.
iframe document.write vs innerHTML iframe 내부의 javascript 가 로딩시에 구동되지 않는 현상이 있어서 처리 방법에 대해서 추가한다. iframe.contentDocument.write 시에 open , close 로 클로징해야 하며 이를 사용시에는 javacript 가 구동된다. innerHTML 을 사용할 경우 수행되지 않는다. firefox 의 경우 innerHTML 이 작동하지 않을 경우 var _GOODDEV_IFRAME = document.getElementById('iframe ID명');var _GOODDEV_IFRAME_DOC = _GOODDEV_IFRAME.contentWindow || ( _GOODDEV_IFRAME.contentDocument.document || _GOODDEV_IFRAME.content.. 2018. 1. 3.
get Nodejs MYSQL update Counter connection.query(sql, [var1,var2], function(err, results) { numRows = results.length; });If it's an update/delete query, the returned dictionary will have an affectedRows variable.connection.query(sql, [var1,var2], function(err, result) { numRows = result.affectedRows; }); 2017. 11. 20.
ultra edit 단축키 모음 사이트 https://www.ultraedit.com/support/tutorials-power-tips/ultraedit/keyboard-shortcuts.html 2017. 9. 8.
Ultra Edit 확장자 등록하기 메뉴 고급 > 설정 > 편집기 표시 > 구문강조에wordlist 파일 경로의 열기를 클릭하여 /L3"HTML" HTML_LANG Nocase Noquote Block Comment On = File Extensions = HTM HTML SHTML HTT HTA HTX CFM JSP PHP PHTML ASP APZ 부분에 해당 확장자를 등록하면 된다. 2017. 8. 29.
CentOS 6 Node JS 설치하기 $ curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -$ sudo yum install gcc-c++ make$ curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo$ yum install nodejs npm 2017. 6. 19.
Redis 사용하기 1. Redis 설치 #wget http://download.redis.io/releases/redis-6.0.9.tar.gz # tar xvfz redis-6.0.9.tar.gz # cd redis-6.0.9 # make -j4 && make install -j4 # cd utils # ./install_server.sh 하단의 오류 발생시에는 This systems seems to use systemd. Please take a look at the provided example service unit files in this directory, and adapt and install them. Sorry! > install_server.sh 의 스크립트를 수정한다. #bail if this syst.. 2017. 6. 19.
Listview 한 row 만 reload private void updateItemAtPosition(int position) { int visiblePosition = mListView.getFirstVisiblePosition(); View view = mListView.getChildAt(position - visiblePosition); mListView.getAdapter().getView(position, view, mListView); } 2015. 12. 4.
현재 Heap 사이즈 얻어오기 Debug.getNativeHeapSize() Debug.getNativeHeapFreeSize() Debug.getNativeHeapAllocatedSize() 2015. 11. 6.
RecycleView Adapter => RecycleView Adapter 예제 /** * Created by cscho on 2015-08-21. */ public class ThemeListAdapter extends RecyclerView.Adapter { private static final String TAG = "ThemeListAdapter"; private final LayoutInflater mLayoutInflater; private DisplayImageOptions options; private Context mContext; private String mSystemClock; private ArrayList mThemeList = null; private SimpleImageLoadingListener mImage.. 2015. 10. 15.