Posted by
frag – June 27, 2008
/*
ex. usage of a constant pointer to a (variable integer)
ex. how to fuck a pointer to a constant variable
*/
#include
int main(void)
{
const int c=0;
// constant pointer to a (variable) integer: can change the value of the var but not the pointer
int* const ptr1 = malloc(sizeof(int));
*ptr1 = 10;
*ptr1 = 100;
int t;
/* pointer to a constant integer: can change the pointer but not the variable (whatever is pointed to by ptr2 must be treated as a const, that’s why cannot change var value here). But of course if there are other pointers that point to the same area and are *not* const, var value can be changed. So, basically, with a const int* ptr2; we cannot change the area pointed to by ptr2 through ptr2 itself. But if *ptr2 (the value) is pointed to by another pointer… we can change it (*ptr2, the value)
*/
const int* ptr2 = malloc (sizeof(int));
int modvar = 10;
ptr2 = &modvar;
modvar = 100;
printf(”%d\n”, *ptr2);
return 0;
}
Posted by
frag – April 28, 2008
Ok, it was not a day. Just a few hours. But it was amazing!!
They call it “The Bates Method” as a way to imagine that you do not need glasses even if blind, like me. I was in the center of Milan this morning when I decided to get my (nerd) glasses off to start the “better eyesight”. I could even see the tram arriving and even select the right one to reach home 
After some moments of looseness I began to think that… yes…sometimes I don’t need my glasses. Watching people as out-of-focus moving shapes and cars in a similar way let me think about people dynamics in a street in which I was used to focus on everything, whatching nothing in particular.
Oh… and girls are all hot, without distinctions… and you are not supposed to know anyone just because you cannot realize who is greeting you, if any.
I tried also to reach my stop promising to myself not to wear my glasses, and I did it. “This should improve your memory” they say.
But what about my headache?
Posted by
frag – April 9, 2008
What is happening in the last years is something unique, not even thought. The most relevant Internet Search Engine company is not producing or improving its core product, the search engine, but throwing in our laptops, houses and mobile phones something we cannot reject: a suite of searching tools, maps, email client, instant messenger, news reader and whatever.
I am used to be sceptic against tools distributed for free. My grandpa told me once: do not accept free stuff, there’s always a crap inside!
The crap this time is pretty big: that’s a BigC(rap).
The distribution style is exactly the same of a virus. Viral marketing is the basic trick of many of these companies: they create a product, bomb you with that, distribute it for free, create a dependence in order to keep you from the balls.
Nothing can be for free, of course. A company declaring to make business from automated advertisements is just a liar.
The goal of such a company should be keeping informations about millions of people on its own servers: search statistics, taste in music, habits, favourite books… with limits on your imagination…
There are just infinite possible actions someone can do with that kind of information.
There are no proclamations nor decrees to rule about privacy when dependence has been created: if the service were switched off and I were an addicted internet user (which is not that far from reality), there will be no privacy I would claim for.
The viral infection has began, and cannot see any vaccine till now. Com’on Microsoft!
Posted by
frag – July 23, 2007
Un formulario di statistica che potrebbe servire a un ingegnere informatico (dopo aver studiato la teoria ovviamente).
Versione Pdf
Versione TeX
Posted by
frag – July 6, 2007
Quasi ogni giorno, ormai da mesi si leggono notizie di presunte svolte delle major per controllare e reprimere gli utenti di Internet che usano o abusano del P2P (Peer-to-Peer).
Multe, sospensioni di servizio, controllo del traffico e tutto quello che un provider è in potere di fare nei confronti dei propri clienti.
Ci sono stati casi in cui il provider ha cercato di tutelare le proprie utenze per il solo scopo di mantenerli attivi come clienti (e quindi solo ed esclusivamente per ragioni di profitto).
Altri casi in cui l’utente finale sia stato pesantemente punito con multe mediamente salate e sospensione del servizio fornito dal provider.
E’ noto che spesso i potenti preferiscono prendere le difese dei loro colleghi. Ma nessuno se lo sarebbe aspettato anche in un luogo virtuale dove si pensava che la libertà fosse più facile da preservare.
Sembra che Internet non sia più il luogo che si sperava fosse. E tutto questo a causa della cultura di controllo che si sta diffondendo velocemente.
Internet è diventato l’ultimo baluardo delle potenti società che controllano l’informazione. La televisione, la radio, i giornali e tutti i media diversi da Internet sono stati creati dagli stessi signori che oggi controllano non solo l’informazione ma anche l’indotto che ne deriva.
Internet è controllabile solo a colpi di emendamenti perchè tecnologicamente parlando non si presta ad alcun tipo di controllo.
Al di là del discorso etico che ne deriva mi chiedo come mai nessuno si sia chiesto di metodi alternativi per navigare la rete. Questi metodi esistono e sono molteplici: dal proxy, all’anonymizer di turno…
Ma ne esiste uno progettato nel 1999 di cui non si sente parlare minimamente: Freenet
Freenet implementa un sistema che si sovrappone al TCP/IP per anonimizzare il traffico uscente ed entrante. E’ una rete a se stante che permette sharing, memorizzazione di file, chat, navigazione standard.
L’unico modo per ostacolare un sistema potente come Freenet è semplicemente non parlarne in modo che nessuno lo utilizzi.
Freenet con pochi utenti infatti risulta inutilizzabile in pratica, molto lento e soprattutto povero di contenuti.
La chiave fondamentale di freenet è la crittografia, non vista di buon occhio ma a mio parere l’unico modo per preservare la libertà di informazione su Internet.