Wednesday, April 4, 2012

Double correlation question

On the last week I think about GPS algorithms. And one idea came into my mind.

[UPD] fix in math part

Tuesday, April 3, 2012

Sunday, April 1, 2012

di.fm under mpg123

Everyone now about di.fm. Under linux we can play playlists from there with audacios, but audacious ugly like my university course about compilers (it's REALLY ugly). But I still want to listen di.fm and more across station list.

Thursday, March 22, 2012

Patch linux kernel for add ability to send an event about do_fork()/do_exit()

Recently I have interesting question - how to create event about do_fork()/do_exit of group of processes, not any process but some of them. It's very useful, for example, when one want to create group of persistent processes (IDS/IPS), but sometimes software "fall" =) and system must restart it. So we can make cron script for checking PIDs, we can create N pthreads and then in each thread exec() new process, when wait4() it (when it falls re-exec it). The first solution lead in persistent scanning (each t-seconds we must to check even nothing happened), second solution no so scalable, bcoz we need 2N + 1 working processes for N persistent processes. Of course, it's not load system, each wait4() thread sleep and doesn't eat much cpu time. And I had create small kernel patch based on cgroups subsystem. Shortly, we push persistent processes to a special group and set userspace event handler. When process move out from this cgroup (when process do_exit() it's move out too) we catch event and restart this process.

Sunday, March 11, 2012

vacation

So, I have 5 mins for telling about our vacation. We was in Bulgaria ski place. It names Bansko

Saturday, March 10, 2012

questions from a M$ interview

Thx for my friend))) I think this questions from his interview for the Bing command.

Wednesday, February 1, 2012

id Software Consolidates Open-Source Code

It doesn't look like id Software has dropped (or otherwise revised) any new major code, but rather they have consolidated all of their open-source efforts on GitHub. Hosted from this GitHub area is now the source-code for Wolfenstein 3D for Apple iOS, DOOM Classic for iOS, the original Quake GPL, the original DOOM, Quake-Tools, idsetup, Quake-2-Tools, GtkRadient, the Doom 3 GPL release, Enemy Territory, Return to Castle Wolfenstein Multiplayer GPL, Return to Castle Wolfenstein Single-player GPL, Quake 3, and Quake III Area. Each of these titles have their own Git repository on GitHub.

code
original