pamiętnik programisty

Arichwum autora

28 gru, 2011

GMail as relayhost in Postfix – without certs

Zamieścił: pejotr w: Inne|Linux|VoIP

There are many articles describing how to setup GMail as a relayhost in Postfix mail server. Most of them involve creating local CA certificate and generation of client certificate. There is absolutely no need to! Just think, how GMail would be able to validate your own certificate created by your own CA available only on [...]

06 lis, 2011

git cherry-pick is awesome

Zamieścił: pejotr w: Inne|Linux|Programowanie

Today I used git cherry-pick command for the first time, and I am really impressed. In my current project I’ve few branches, just for fixing/delopment. There are also a few common files like documentation, TODO – simple text files. Sometimes I came up with a genius idea and I want to put it in TODO [...]

05 lis, 2011

Tag icons in AwesomeWM

Zamieścił: pejotr w: Inne|Linux

AwesomeWM is so called „tiling window manager”. It aranges windows using certain policy. Usually windows are organized in a such way that none of them overlapped another one. Most of the commands can be invoked directly from keybord, there is no need to use a mouse at all. Screen is organized into tags, on each [...]

19 paź, 2011

Małoznany modyfikator [ dla scanf

Zamieścił: pejotr w: C++|Linux|Programowanie

Funkcja scanf z biblioteki standardowej C umożliwia odczyt i parsowanie danych z stdin zgodnie z określonym formatem. Większość modyfikatorów jest opisana na stronie cppreference, która nomen omen pojawia się jako pierwsza po wpisaniu „scanf” w wyszukiwarce. Jak się jednak okazuje nie są to wszystkie dostępne modyfikatory. Brakuje jednego istotnego, który umożliwia np. czytanie standardowego wejścia [...]

Tagi:

Recently I got more interested in Android platform. I was wondering what are methods to obtain „root” rights. After few minutes of googling I found two possible solutions. First method make use of udev bug. Basically this service does not check source of message, so it is possible to run code on behalf of root [...]

My task was to migrate database from Mambo 4.5.1 to newest Joomla version which is now 1.6. I didn’t have to migrate any additional components data, just core functionality. At first I thought I will be an easy task, but then a few difficulties showed. Below I provide step which took me to happy end.

My BSc Thesis is to implement steganography algorithm that use VoIP packets as a transport. The main aim is to modify delay of RTP packets without noticeable impact on transmission quality. I create hidden channel by sending two packets that average delay is 20ms. For example if we send 1 packet 10ms after previous and [...]

16 lis, 2010

Ustawienie sieci wewnętrznej VirtualBox

Zamieścił: pejotr w: Inne

Korzystając z okazji że pozbywam się Oracle VirtualBox na rzecz VM Player’a wrzucam stworzony przeze mnie dawno dawno filmik pokazujący w jaki sposób stworzyć sieć wewnętrzną w VirtualBox wraz z automatycznym przydzielaniem adresów. Przedstawiona przykładzie systemu Windows XP i QNX. Enjoy.

05 sie, 2010

Z C++ zagadka nr 5

Zamieścił: pejotr w: C++|Programowanie

Wrednie podchwytliwe zadanie czasami w tej czy innej postaci spotykane na różnych testach ze znajomości języka. Jaki będzie efekt wykonania poniższego programu: #include <iostream> int foo(int x, int y) { return x + y; } int main() { int z, k; z = 10; k = foo(z = 20, z += 1); std::cout << k [...]

Tagi:

25 lip, 2010

Z C++ zagadka nr 4

Zamieścił: pejotr w: C++|Programowanie

Mając przedstawioną poniżej strukturę danych i kontener zawierający wskaźniki, wykonać operację/metodę methodA na rzecz obiektu obj_ posługując się iteratorem: class Foo { public: methodA() { printf("Wykonano…\n"); } } struct data_t { int i_; Foo* obj_; } std::list<data_t*> data_; for(std::list<data_t*>::iterator i = data_.begin(); i != data_.end(); i++ ) { // operacje } W jaki sposób wykonać [...]


O mnie:

pejotrWitam, nazywam się Piotr Doniec, w internecie występuję pod nickami 'pejotr' oraz 'doniczek'. Obecnie jestem studentem 3 roku informatyki na Politechnice Warszawskiej na wydziale Elektroniki i Technik Informacyjnych.

Kategorie