영국에서 오늘 브렉시트 하기로 결정..
환율은 하루만에 30원 오르고 난리..
'개소리 왈왈 > 정치관련 신세한탄' 카테고리의 다른 글
내 새끼 건드리면 빼애애애액 (0) | 2016.07.01 |
---|---|
6.25 (0) | 2016.06.25 |
결국은 테러방지법 통과?! (0) | 2016.03.03 |
오랫만에 사진을 올려보네 -_- (2) | 2016.02.25 |
참 얘네 꿈이 소소하네.. (0) | 2016.01.08 |
영국에서 오늘 브렉시트 하기로 결정..
환율은 하루만에 30원 오르고 난리..
내 새끼 건드리면 빼애애애액 (0) | 2016.07.01 |
---|---|
6.25 (0) | 2016.06.25 |
결국은 테러방지법 통과?! (0) | 2016.03.03 |
오랫만에 사진을 올려보네 -_- (2) | 2016.02.25 |
참 얘네 꿈이 소소하네.. (0) | 2016.01.08 |
필요하면 받아서 설치해서 빌드하세요~ 이긴한데...
아무튼 좀 편하게 미리 빌드된 bootstrap을 찾아야... ㅠㅠ
[링크 : https://sourceforge.net/projects/dsgpl/]
[링크 : https://www.synology.com/en-global/support/developer#tool]
[링크 : https://thingshardtofind.blogspot.com/2015/06/optware-ipkg-and-bootstrap-for-synology.html]
[링크 : https://forum.synology.com/enu/viewtopic.php?t=119118]
[링크 : http://freshest.me/bootstrap-ds215j/]
[링크 : https://www.cphub.net/]
NAND flash 관련 내용 (0) | 2016.10.21 |
---|---|
synology home / homes 차이점 (0) | 2016.07.14 |
synology ds215+ cpuinfo (4) | 2016.06.23 |
synology svn http access.. (0) | 2016.06.20 |
synology MFP 복합기(삼성 SCX-4623) 스캔 (0) | 2016.06.14 |
이번에 호스트 네임을 변경했더니 별별 이상한 일이 발생..
아무튼.. /etc/hostname 만 바꿀게 아니라 /etc/hosts에서도 바꿔줘야 하는구나...
$ svn list svn://192.168.10.12/repos -v
svn: generic failure
$ sudo vi /etc/hosts
127.0.0.1 hostname
[링크 : http://stackoverflow.com/questions/8634466/svn-generic-failure]
tortoiseSVN에서 svn+ssh 사용하기 (0) | 2016.07.31 |
---|---|
svn+ssh 실패 -_- (0) | 2016.07.29 |
svn 콘솔 에디터(주석) (0) | 2016.06.21 |
svn relocate / ubuntu (0) | 2016.06.21 |
svn merge... 두근두근 (6) | 2016.02.17 |
DS215+ CPU 정보가 잘 없길래 조회
$ cat /proc/cpuinfo processor : 0 model name : ARMv7 Processor rev 4 (v7l) Speed : 1.4GHz Features : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x2 CPU part : 0xc0f CPU revision : 4 processor : 1 model name : ARMv7 Processor rev 4 (v7l) Speed : 1.4GHz Features : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x2 CPU part : 0xc0f CPU revision : 4 Hardware : AnnapurnaLabs Alpine (Device Tree) Revision : 0000 Serial : 0000000000000000 |
idiva: SDIV and UDIV hardware division in ARM mode
idivt: SDIV and UDIV hardware division in Thumb mode
[링크 : http://unix.stackexchange.com/questions/43539/what-do-the-flags-in-proc-cpuinfo-mean]
synology home / homes 차이점 (0) | 2016.07.14 |
---|---|
synology opensource (0) | 2016.06.23 |
synology svn http access.. (0) | 2016.06.20 |
synology MFP 복합기(삼성 SCX-4623) 스캔 (0) | 2016.06.14 |
synology ds215+ 설치 (0) | 2016.06.10 |
2016.06.23으로 업데이트 하고 나서 한 결과.. 이거 하나면 끝.. ㄷㄷㄷ
단, 기본은 sqlite 인듯?
mysql 이나 mariadb 쓰려면 별도로 설치를 해주어야 한다.
$ sudo apt-get install redmine Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: bundler dbconfig-common fonts-droid ghostscript imagemagick-common libev4 libfcgi-ruby1.9.1 libfcgi0ldbl libgmp-dev libgmpxx4ldbl libgs9 libgs9-common libijs-0.35 libjbig2dec0 libjs-coffeescript libjs-jquery-ui libjs-prototype libjs-scriptaculous libjsoncpp0 liblqr-1-0 libmagickcore-6.q16-2 rake redmine-sqlite ruby-actionmailer ruby-actionpack ruby-actionpack-action-caching ruby-actionview ruby-activemodel ruby-activerecord ruby-activesupport ruby-arel ruby-atomic ruby-awesome-nested-set ruby-blankslate ruby-builder ruby-celluloid ruby-coderay ruby-coffee-rails ruby-coffee-script ruby-coffee-script-source ruby-dev ruby-erubis ruby-execjs ruby-fcgi ruby-ffi ruby-hike ruby-hmac ruby-i18n ruby-jbuilder ruby-jquery-rails ruby-json ruby-listen ruby-mail ruby-mime-types ruby-minitest ruby-multi-json ruby-net-http-persistent ruby-net-ldap ruby-oj ruby-openid ruby-passenger ruby-polyglot ruby-protected-attributes ruby-rack ruby-rack-openid ruby-rack-test ruby-rails ruby-rails-observers ruby-railties ruby-rb-inotify ruby-redcarpet ruby-request-store ruby-rmagick ruby-sass ruby-sass-rails ruby-sdoc ruby-spring ruby-sprockets ruby-sprockets-rails ruby-sqlite3 ruby-thor ruby-thread-safe ruby-tilt ruby-timers ruby-treetop ruby-turbolinks ruby-tzinfo ruby-uglifier ruby-yajl ruby2.1-dev sqlite3 zip Suggested packages: virtual-mysql-client mysql-client postgresql-client ghostscript-x libgmp10-doc libmpfr-dev coffeescript libjs-jquery-ui-docs libmagickcore-6.q16-2-extra bzr cvs darcs mercurial subversion ruby-builder-doc rails ruby-passenger-doc ruby-compass treetop doc-base sqlite3-doc The following NEW packages will be installed: bundler dbconfig-common fonts-droid ghostscript imagemagick-common libev4 libfcgi-ruby1.9.1 libfcgi0ldbl libgmp-dev libgmpxx4ldbl libgs9 libgs9-common libijs-0.35 libjbig2dec0 libjs-coffeescript libjs-jquery-ui libjs-prototype libjs-scriptaculous libjsoncpp0 liblqr-1-0 libmagickcore-6.q16-2 rake redmine redmine-sqlite ruby-actionmailer ruby-actionpack ruby-actionpack-action-caching ruby-actionview ruby-activemodel ruby-activerecord ruby-activesupport ruby-arel ruby-atomic ruby-awesome-nested-set ruby-blankslate ruby-builder ruby-celluloid ruby-coderay ruby-coffee-rails ruby-coffee-script ruby-coffee-script-source ruby-dev ruby-erubis ruby-execjs ruby-fcgi ruby-ffi ruby-hike ruby-hmac ruby-i18n ruby-jbuilder ruby-jquery-rails ruby-json ruby-listen ruby-mail ruby-mime-types ruby-minitest ruby-multi-json ruby-net-http-persistent ruby-net-ldap ruby-oj ruby-openid ruby-passenger ruby-polyglot ruby-protected-attributes ruby-rack ruby-rack-openid ruby-rack-test ruby-rails ruby-rails-observers ruby-railties ruby-rb-inotify ruby-redcarpet ruby-request-store ruby-rmagick ruby-sass ruby-sass-rails ruby-sdoc ruby-spring ruby-sprockets ruby-sprockets-rails ruby-sqlite3 ruby-thor ruby-thread-safe ruby-tilt ruby-timers ruby-treetop ruby-turbolinks ruby-tzinfo ruby-uglifier ruby-yajl ruby2.1-dev sqlite3 zip 0 upgraded, 93 newly installed, 0 to remove and 0 not upgraded. Need to get 850 kB/21.7 MB of archives. After this operation, 83.3 MB of additional disk space will be used. Do you want to continue? [Y/n] |
db 종류 교체 등을 위해서는 설치중에 나오는 메시지를 따라 입력하면 된다.
$ sudo dpkg-reconfigure -plow redmine
┌────────────────────────────────────────────┤ ├────────────────────────────────────────────┐ │ │ │ redmine-mysql package required │ │ │ │ Redmine instance default is configured to use database type mysql, but the corresponding │ │ redmine-mysql package is not installed. │ │ │ │ Configuration of instance default is aborted. │ │ │ │ To finish that configuration, please install the redmine-mysql package, and reconfigure │ │ redmine using: │ │ │ │ dpkg-reconfigure -plow redmine │ │ │ ││ │ │ └────────────────────────────────────────────────────────────────────────────────────────────┘
요약본?
$ sudo apt-get install apache2 mysql-server redmine redmine-mysql libapache2-mod-passenger $ sudo ln -s /usr/share/redmine/public /var/www/redmine $ sudo chown -R www-data:www-data /var/www/redmine $ sudo vi /etc/apache2/sites-available/redmine.conf DocumentRoot /var/www/ PassengerDefaultUser www-data <Location /redmine> RailsEnv production RackBaseURI /redmine Options -MultiViews </Location> $ sudo a2dissite 000-default $ sudo a2ensite redmine $ sudo /etc/init.d/apache2 reload $ sudo /etc/init.d/apache2 restart |
[링크 : http://www.tylerforsythe.com/.../install-redmine-onto-raspberry-pi-2-this-is-the-tutorial-you-want/]
redmine은
admin/admin이 기본 아이디/패스워드임
+
2016.07.07
subURI와 virtualHost를 둘다 동시에 쓸수는 없는건가? ㅠㅠ
[링크 : http://stackoverflow.com/.../...rails-app-on-subdomain-root-with-apache-and-passenger]
rpi gstreamer mux (0) | 2016.06.28 |
---|---|
beowulf / openMPI (0) | 2016.06.28 |
gsteamer rtspsink (0) | 2016.06.21 |
라즈베리 파이 카메라(rpi cam) 렌즈 교체.. (2) | 2016.06.18 |
raspivid - H264 SPS PPS? (0) | 2016.06.10 |
원인은 모르겠으나..
자격 증명 저장이 로그온 세션이라 리부팅 하면 날아감..
수동으로 저장해주면 '엔터프라이즈'로 저장되서 문제가 없음
근데.. 저장시에 로그온시에 적용이라고 체크해줘도 왜 안되지?
[링크 : http://www.mvapple.com/98]
[링크 : http://ingorae.tistory.com/1451]
\\servername\sharename
이런식으로 저장되면 가치가 있는걸로 인식해서 엔터프라이즈로 저장한다 인가?
그럼 그렇게 안되는 특정 pc들은 머지.... 머가 다른거지?
[링크 : http://blog.joachim-selke.de/.../windows-7-persistent-storage-of-login-credentials-for-samba-shares/]
win10 에서 PL2303X 사용하기 (0) | 2016.10.21 |
---|---|
메모장 F5 단축키.. (0) | 2016.08.10 |
win10 on bash / linux! (0) | 2016.03.31 |
그래픽 카드 성능 향상...?? system.ini irq (0) | 2016.02.16 |
win7 starter / home premium 메모리 사용량 (0) | 2015.11.08 |
변수들에 붙는건 뻔하지만
const가 cpp에서 확장된 내용
멤버 함수일때 멤버 변수를 수정하지 못하도록 하는 기능 추가
return_type fuction_name(val ...) const
cpp 클래스 구성 (0) | 2016.07.11 |
---|---|
cpp enum in class (0) | 2016.07.01 |
const 멤버 변수 초기화(member variable initializer) (0) | 2016.06.22 |
std::endl (0) | 2015.06.24 |
c++ 현변환 연산자(cast operator in c++) (0) | 2015.01.26 |
-f 니까 플래그고
PIC(Position Independent Code)
[링크 : http://devanix.tistory.com/198]
-shared 하면 자동으로 -fpic나 -fPIC가 설정되는건 아닌듯?
아무튼. .x86에는 연관이 없지만, 다른 아키텍쳐에서는 GOT 크기 문제로 -fpic와 -fPIC가 다르게 적용된다고 한다.
-shared Produce a shared object which can then be linked with other objects to form an executable. Not all systems support this option. For predictable results, you must also specify the same set of options that were used to generate code (-fpic, -fPIC, or model suboptions) when you specify this option.[1] -fpic Generate position-independent code ( PIC ) suitable for use in a shared library, if supported for the target machine. Such code accesses all constant addresses through a global offset table ( GOT ). The dynamic loader resolves the GOT entries when the program starts (the dynamic loader is not part of GCC ; it is part of the operating system). If the GOT size for the linked executable exceeds a machine-specific maximum size, you get an error message from the linker indicating that -fpic does not work; in that case, recompile with -fPIC instead. (These maximums are 8k on the SPARC and 32k on the m68k and RS/6000 . The 386 has no such limit.) Position-independent code requires special support, and therefore works only on certain machines. For the 386, GCC supports PIC for System V but not for the Sun 386i. Code generated for the IBM RS/6000 is always position-independent. When this flag is set, the macros "__pic__" and "__PIC__" are defined to 1. -fPIC If supported for the target machine, emit position-independent code, suitable for dynamic linking and avoiding any limit on the size of the global offset table. This option makes a difference on the m68k, PowerPC and SPARC . Position-independent code requires special support, and therefore works only on certain machines. When this flag is set, the macros "__pic__" and "__PIC__" are defined to 2. -fpie -fPIE These options are similar to -fpic and -fPIC, but generated position independent code can be only linked into executables. Usually these options are used when -pie GCC option will be used during linking. -fpie and -fPIE both define the macros "__pie__" and "__PIE__". The macros have the value 1 for -fpie and 2 for -fPIE. |
[링크 : http://linux.die.net/man/1/gcc]
Pseudo-assembly: PIC: This would work whether the code was at address 100 or 1000 100: COMPARE REG1, REG2 101: JUMP_IF_EQUAL CURRENT+10 ... 111: NOP Non-PIC: This will only work if the code is at address 100 100: COMPARE REG1, REG2 101: JUMP_IF_EQUAL 111 ... 111: NOP If your code is compiled with -fPIC, it's suitable for inclusion in a library - the library must be able to be relocated from its preferred location in memory to another address, there could be another already loaded library at the address your library prefers. |
[링크 : http://stackoverflow.com/questions/5311515/gcc-fpic-option?rq=1]
gcc 매크로 확장 define stringfication (0) | 2017.01.02 |
---|---|
gcc make CFLAGS=-D 관련 (0) | 2016.11.17 |
gcc dependency .d 파일? (0) | 2016.03.28 |
gcc -M -MM (0) | 2015.12.17 |
gcc 초기화 관련 (0) | 2015.10.21 |
const 변수들의 경우 생성자(constructor)에서 초기화 불가능 하므로
(생성시에 이미 const로 만들어져 수정이 불가하니까)
문법적 허용을 위한 우회책으로 initializer 가 존재해야만 한다.
class Something { private: int m_value1; double m_value2; char m_value3;
public: Something() : m_value1(1), m_value2(2.2), m_value3('c') // directly initialize our member variables { // No need for assignment here }
void print() { std::cout << "Something(" << m_value1 << ", " << m_value2 << ", " << m_value3 << ")\n"; } };
int main() { Something something; something.print(); return 0; } |
[링크 : http://www.learncpp.com/cpp-tutorial/8-5a-constructor-member-initializer-lists/]
[링크 : http://pacs.tistory.com/entry/C-클래스에서의-멤버-변수-멘버-함수의-상수화-const의-사용법]
[링크 : http://pacs.tistory.com/4] const란
+
처음에는 다중상속인줄... 망할 -_-
cpp enum in class (0) | 2016.07.01 |
---|---|
cpp const (0) | 2016.06.22 |
std::endl (0) | 2015.06.24 |
c++ 현변환 연산자(cast operator in c++) (0) | 2015.01.26 |
functor / 펑터 (0) | 2014.04.16 |
[링크 : https://developer.ridgerun.com/wiki/index.php/RTSP_Sink]
[링크 : http://wiki.oz9aec.net/index.php/Gstreamer_cheat_sheet]
beowulf / openMPI (0) | 2016.06.28 |
---|---|
redmine on raspberrypi (9) | 2016.06.23 |
라즈베리 파이 카메라(rpi cam) 렌즈 교체.. (2) | 2016.06.18 |
raspivid - H264 SPS PPS? (0) | 2016.06.10 |
raspistill 빠르게 사진 찍기 (0) | 2016.06.09 |