'잡동사니'에 해당되는 글 13262건

  1. 2016.06.26 c&c general - gla 3
  2. 2016.06.25 6.25
  3. 2016.06.24 영국 브렉시트
  4. 2016.06.23 synology opensource
  5. 2016.06.23 svn list 에러 generic failure
  6. 2016.06.23 synology ds215+ cpuinfo 4
  7. 2016.06.23 redmine on raspberrypi 9
  8. 2016.06.23 win7 자격 증명 저장관련
  9. 2016.06.22 cpp const
  10. 2016.06.22 gcc -fPIC
게임/c&c generals2016. 6. 26. 22:15

앞서 미션에 이은 약탈미션

의외로 저항도 없이 쉽게 끝



'게임 > c&c generals' 카테고리의 다른 글

c&c general - gla 5  (0) 2016.06.26
c&c general - gla 4  (0) 2016.06.26
c&c generals - gla 2  (0) 2016.06.15
c&c generals - gla 1  (0) 2016.06.15
c&c generals - china 7  (0) 2016.06.05
Posted by 구차니

벼룩시장에서 6.25 몇주년 기념이라고 하는데..

기념이라니 먼가 미묘한 느낌...

Posted by 구차니

영국에서 오늘 브렉시트 하기로 결정..

환율은 하루만에 30원 오르고 난리..

'개소리 왈왈 > 정치관련 신세한탄' 카테고리의 다른 글

내 새끼 건드리면 빼애애애액  (0) 2016.07.01
6.25  (0) 2016.06.25
결국은 테러방지법 통과?!  (0) 2016.03.03
오랫만에 사진을 올려보네 -_-  (2) 2016.02.25
참 얘네 꿈이 소소하네..  (0) 2016.01.08
Posted by 구차니
하드웨어/Storage2016. 6. 23. 15:21

필요하면 받아서 설치해서 빌드하세요~ 이긴한데...

아무튼 좀 편하게 미리 빌드된 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/]

'하드웨어 > Storage' 카테고리의 다른 글

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
Posted by 구차니

이번에 호스트 네임을 변경했더니 별별 이상한 일이 발생..

아무튼.. /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]

'프로그램 사용 > Version Control' 카테고리의 다른 글

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
Posted by 구차니
하드웨어/Storage2016. 6. 23. 11:51

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]

'하드웨어 > Storage' 카테고리의 다른 글

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
Posted by 구차니
embeded/raspberry pi2016. 6. 23. 10:40

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]

'embeded > raspberry pi' 카테고리의 다른 글

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
Posted by 구차니
Microsoft/Windows2016. 6. 23. 09:56

원인은 모르겠으나..

자격 증명 저장이 로그온 세션이라 리부팅 하면 날아감..

수동으로 저장해주면 '엔터프라이즈'로 저장되서 문제가 없음


근데.. 저장시에 로그온시에 적용이라고 체크해줘도 왜 안되지?


[링크 : 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/]

'Microsoft > Windows' 카테고리의 다른 글

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
Posted by 구차니
Programming/C++ STL2016. 6. 22. 13:24

변수들에 붙는건 뻔하지만

const가 cpp에서 확장된 내용

멤버 함수일때 멤버 변수를 수정하지 못하도록 하는 기능 추가


return_type fuction_name(val ...) const


[링크 : http://blog.daum.net/coolprogramming/60]

'Programming > C++ STL' 카테고리의 다른 글

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
Posted by 구차니
프로그램 사용/gcc2016. 6. 22. 12:25

-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' 카테고리의 다른 글

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
Posted by 구차니