Yesterday I’ve seen Verdena live in Majano Udine, I was togheter with some good friends.

I can’t put this gig into words, hence I’ve uploaded some media on youtube!

Thank you guys!






It is unbelievable how OSX 10.6 comes without .bashrc by default.
To enable it, just add the string
[ -r $HOME/.bashrc ] && source $HOME/.bashrc
to your /etc/profile.

Simple signal catcher example: signal.c

KmemGuard is a tool I wrote for Linux Kernel 2.6.7., when the S.P.I.N.E. project was still alive. It protects and eventually repairs the syscalltable using /dev/kmem. One can use it as a first countermeasure against malicious syscalltable injections, often performed by rootkits. As a proof of concept, it is usable although by no means complete.

I’ll test it on recent kernel releases soon… in the meantime, here it is for Linux 2.6.7. kmemguard.c

Change List:

* Multipolicy visualization – added

* Input integrity check – added

GridWorld .java .jar

I’ve developed a Java+Swing+Awt code for GridWorld (cfr. Barto-Sutton 1998). It implements the Value Iteration Reinforcement Learning algorithm. Enjoy!

.java .jar

Studying machine learning and statistical pattern recognition these days, I’ve learned a nice fact about estimation. The proof is straightforward but I’d like to remeber this fact, so here it is.

Note. Maximum likelihood estimation is equivalent to least squares estimation in the presence of Gaussian noise.

Let y_i=f(x_i,\boldsymbol{\theta}) + r_i and let r_i follow a normal gaussian distribution r_i \asymp G(0,\sigma).

In a least squares estimate one minimize the following

\min_{\boldsymbol{\theta}\in \Omega}\sum_{i=1}^n r_i^2(\boldsymbol{\theta})=

\min_{\boldsymbol{\theta}\in \Omega}\sum_{i=1}^n (y_i-f(x_i, \boldsymbol{\theta}))^2 (*)

In a maximum likelihood one defines a likelihood

\ell(\boldsymbol{\theta}; r_1, \ldots, r_n):= \prod_{i=1}^n \frac{1}{\sqrt{2\pi}\sigma}\text{exp}(-\frac{1}{2}\frac{(y_i-f(x_i,\boldsymbol{\theta}))^2}{\sigma^2})

and then minimize

\text{min}_{\boldsymbol{\theta}\in \Omega} -\ln{\ell(\boldsymbol{\theta}, r_1, \ldots, r_n)}=

\text{min}_{\boldsymbol{\theta}\in \Omega}\left(n\ln{\sqrt{2\pi}} + n\ln\sigma + \frac{1}{2\sigma^2}\sum_{i=1}^n (y_i-f(x_i, \boldsymbol\theta))^2\right)=

n\ln{\sqrt{2\pi}} + n\ln\sigma + \frac{1}{2\sigma^2}\text{min}_{\boldsymbol{\theta\in\Omega}} \sum_{i=1}^n (y_i-f(x_i, \boldsymbol\theta))^2

which is equivalent to (*). QED

Hello World ;-) . So… uhm… this is my first post on this blog ;-) I plan to post regularly sharing links of interest and posting my works (such as source codes, math and cs proofs, papers, etc…). Up until now, this Blog is intended as a personal repository and online diary. But… hey, no one knows… if you find something interesting here, feel free to leave a comment. ;-)

Ok then… stay tuned ;-) .

Follow

Get every new post delivered to your Inbox.