2016년 8월 22일 월요일

Boost C++ library with Visual Studio.

1. download boost.

2. unzip the boost, go to the folder

3. run bootstrap
./bootstrap.bat

4. b2 toolset=msvc-14.0 --build-type=complete link=static threading=multi runtime-link=shared --abbreviate-paths architecture=x86 address-model=32 install -j4

5. add include and lib folder into visual studio.

C/C++:
Additional Include directories: C:\Boost\include\boost-1_61

Linker:
Additional Library Directories: C:\Boost|lib

2016년 8월 21일 일요일

Ubuntu Boost C++ library with Eclipse.

PATH="$HOME/bin:$HOME/.local/bin:$PATH"
export PATH=$PATH:/usr/local/include/:/usr/local/lib/



Linux Boost C++ library with Eclipse


download boost
http://www.boost.org/


Unzipped boost and go to the unzipped boost directory

$sudo ./bootstrap.sh --prefix=path/to/installation/prefix (I used /usr/local)
$sudo ./b2 install

update LD_LIBRARY_PATH by using ldconfig command.
$sudo ldconfig


Setting Eclipse for Boost library,


ex)
GCC C++ Compiler -> properties -> C/C++ Build -> Settings -> includes -> path/to/installation/prefix/include
GCC C++ Linker -> Libraries serch path -> path/to/installation/prefix/include
GCC C++ Linker -> Libraries-> add 'boost_system'




 add boost_system even you installed from package installer.

2016년 8월 14일 일요일




How to change gedit's active tab color to make easy to verify current tab.

For Ambiance theme, find gtk-widgets.css for Ambiance theme.

mine is in below directory,
/usr/share/themes/Ambiance/gtk-3.0/gtk-widgets.css

edit the file with root permission.

~$ sudo gedit /usr/share/themes/Ambiance/gtk-3.0/gtk-widgets.css


find below line from the file.

/* give active tab a background, as it might be dragged across of others when reordering */
.notebook tab:active {
    background-color: @bg_color;
}


change color to something else, for me I put some shade so active tab will be darker than others.

/* give active tab a background, as it might be dragged across of others when reordering */
.notebook tab:active {
    background-color: shade (@bg_color, 0.82);
}


sublime close without confirmation

  Close without confirm   Yes, you can just write a plugin to set the view as scratch and close it. Then create a keybinding for that c...