Friday, June 20, 2014

Books

C++ how to program by Deitel
Head first Java by Kathy Sierra & Bert Bates
Operating systems by Deitel
Operating systems: Internals and design principles by Stallings
Unix System Programming Using C++ by Terrence Chan
Assembly -- Programming Lessons by Rudakov & Finogenov

Saturday, April 19, 2014

how to find on linux

Find is a realy fast and convenient way to search through your filesystem. To find any file by name just type:

[sudo] find -name 'name_of_file'

sudo is required if you're seeking in the directories you don't own. Flag means searching by name. Words in single quotation marks are the name of the files you search. Like almost everytime in linux, you can use regular expression as a keyword for find.
Like, if you wanted to find a file but didn't remember it's name except 2 first letters:

[sudo] find -name 'na*'

Just a short reference for regexps:
* replaces any kind of character of any quantity.
? replaces any single char
for more detailed reference 

The second most often used flag using find for me is -type d, which means you want to find a directory:

[sudo] find -type d -name 'fooDir*'

and this command finds any dir in within the pwd(present working directory) which name is fooDir(any amount of any chars here).

For more detailed reference do  

man find

Friday, April 18, 2014

Straustrup

Отсюда мораль: используйте const всюду, где возможно.
Если вы обозначаете глобальные переменные или локальные переменные в большой функции такими
именами, как i или x, то сами напрашиваетесь на неприятности.
Если члены массива обязательно надо инициализировать разными значениями, то начинаются трюки с
глобальными или статическими членами.

S. N.

Надо самому накодить хрень и понять что она хренть. Посмотреть как сделали другие и проникнуться красотой их решения. Почитать книжку и ощутить гибкость подхода. Но без первого пункта - не выходит)

Wednesday, April 9, 2014

Qt and Boost

I achieved installing the highly respective Boost libs to my Ubuntu 13.10 and also including libs to Qt.
Follow these steps:

  1. http://www.boost.org/doc/libs/1_55_0/doc/html/bbv2/installation.html
  2. and then just add to your .pro file:

               INCLUDEPATH += /usr/local/boost
        LIBS += -L/usr/local/boost/ -lboost_archive


Thursday, March 20, 2014

std::exponential_distribution distribution(lambda);

Читати справжні надруковані книги, виявляеться, так захоплююче!

Monday, March 17, 2014

OpenClass

Few days ago we participated OpenClass competition. Failed. Me, Paul and Dmytro. It's ok, the tests were not so easy.
I also learned to control non-human-operated programs: main with params!!
I am so proud of myself! Ch. D. V. would be proud of me too :D