Sunday, September 25, 2011

Include into assembler files .h files with definitions

This very general question how to incorporate C and Assembler. Bcoz sometimes you have many C sources and headers and you need rewrite something on assembler. Everybody knows about inline assembler in gcc. But not many knows that you can write into assembler and include some of required .h files. Linux kernel has some examples, but they not easy to look. I found some good explanation on ARM site [1] and adopt it for gcc


Friday, August 26, 2011

Laptop battery status in a prompt

I found sometime ago very usefull script for showing laptop battery status in a terminal. As I dont like huge xmanagers (KDE and Gnome and...) and using fluxbox this script was real for me. But time run fast and now all acpi things are moved from procfs to sysfs. I bought used laptop on ebay and found this old script in my old hdd backup directory. Fix it for a little add bashrc sample and it's run again.


Monday, August 15, 2011

custom malloc

link for me)
http://altdevblogaday.com/2011/02/12/alternatives-to-malloc-and-new/

Wednesday, August 10, 2011

one week vacation

I spent my vacation near the Finland border, 60 km from Vyborg - Triangular lake. It's very famous place for Russian climbers. Few days in a tent with camping cooking. It was fine and I made some good ascent, I made my first 6b+ flash and some other. Not so much, but I more bouldering climber than sport routes climber. Try to solve it in next season. Dont have any pic with my on a route, add pic with my friend on 6c, he made it onsight.







Thursday, July 28, 2011

Real Signal Complex Noise (RSCN) - SNR estimation algorithm

I found one very cool article about SNR estimation in the GPS (BPSK DS-SS signals).

I implemented the RSCN algo (code in octave it may changes bcoz it's link to the my work vcs and this realisation is test, I'll stabilize the code later). The description of this algo you can find in [1, 2, 3]. The [1] is the simplest article from all others ([2, 3]). And in the [3] authors tell that this algo is very sensitive to phase. And it's pretty simple to look. For example we have GPS fronend MAX2769, 16.368Mhz is sampling freq.


Wednesday, June 29, 2011

comments

I found sometime ago that comments like an art. It's really something new. It's like a backstage of programmer mind.

Some text in russian, but it's meaningless
http://www.dataved.ru/2010/09/top-funny-source-code-comments.html

lets look =)
nika@nika-u:~/work/distros_os/linux_kernels/linux-2.6.38.y$ egrep -R "[Ff]uck" * | wc -l
31

it's like a sign on a picture from somebody genius and dont tell me that programming is not a new art. yup it's not a classical art like music or painting, but it's definitely.

Monday, June 20, 2011

Multithreaded data structures for parallel computing

Not stupid explanation. In the start a little bit boring, but then good enough... I can recommend to threads newbie.

Part 1

Part 2