Geek
Megaupload has been taken down by the FBI
0Megaupload website and all its related website has just been taken down by the FBI. Megaupload is sued for copyright infringement, they are also considered by the US government as an « international organized criminal enterprise ».
The FBI website states that megaupload.com is generating an amount of 175million dollars, and that they cause more than half a billion dollar harm to multiple companies and copyright owners. Some of the servers of megaupload were located in the state of Virginia, it was thus easy for the FBI to take down all the servers.
Seven individuals have been charged, the boss (kim dotcom) and his associates.
- Finn Batato, 38, a citizen and resident of Germany, who is the chief marketing officer;
- Julius Bencko, 35, a citizen and resident of Slovakia, who is the graphic designer;
- Sven Echternach, 39, a citizen and resident of Germany, who is the head of business development;
- Mathias Ortmann, 40, a citizen of Germany and resident of both Germany and Hong Kong, who is the chief technical officer, co-founder and director;
- Andrus Nomm, 32, a citizen of Estonia and resident of both Turkey and Estonia, who is a software programmer and head of the development software division;
- Bram van der Kolk, aka Bramos, 29, a Dutch citizen and resident of both the Netherlands and New Zealand, who oversees programming and the underlying network structure for the Mega conspiracy websites.
Kim, Finn, Mathias and Bram have been arrested today by New Zealand authorities, while the others are still on the run.
At the moment I just imagine all the people that uploaded something which is not infringing copyrights and how they feel. As a student i used to use megaupload to store some data or file when I didn’t had my USB key … or some other crap, and it was easy … I imagine also all the people who had paid accounts … etc.
Anyway, I believe that megaupload will not come back soon and that multiple other companies which are offering the same services will have many new customers in the next couple of hours !
Creating one Pixel in a BMP in C
2This thing is totally USELESS ! but i spend almost 3 day’s on it 
reading how BMP are made and to understand every parts of the BMP
header !
IF you’r looking good the pixel is there ====> above
I wanted something more easy than what i found on wikipedia for sample
in C so i wrote my own code … this is just useless and make only one red
pixel in a bmp file ( this will probably evolute to something better later )
but right now there is a pixel.
so this is the code
#include
int main(void){
FILE *f;
int filesize = 54 + 3*1*1;
unsigned char bmpfileheader[14] = {'B','M', 0,0,0,0, 0,0,0,0, 54,0,0,0};
unsigned char bmpinfoheader[40] = {40,0,0,0, 0,0,0,0, 0,0,0,0, 1,0, 24,0};
unsigned char bmpcontent[6] = {0,0,255};
unsigned char bmppad[3] = {0,0,0};
/* Construct header with filesize part */
bmpfileheader[ 2] = (unsigned char)(filesize );
bmpfileheader[ 3] = (unsigned char)(filesize>> 8);
bmpfileheader[ 4] = (unsigned char)(filesize>>16);
bmpfileheader[ 5] = (unsigned char)(filesize>>24);
/* Construct header with width and height part */
bmpinfoheader[ 4] = (unsigned char)( 1 );
bmpinfoheader[ 8] = (unsigned char)( 1 );
f = fopen("test.bmp","wb");
fwrite(bmpfileheader,1,14,f);
fwrite(bmpinfoheader,1,40,f);
fwrite(bmpcontent,3,6,f);
fclose(f);
return 1;
}
yes this code is totally not commented and will not be !
why ? because i’m actually lazy and if you want more some information on this … you can just contact me.
have a nice programming night.
monitor your screens with xrandr
0What’s xrandr ?
Xrand is the command ( also used on mac … but… mmmmyes) to configure your screen
resolution of the display , turn the display right , left , etc
when you enter in a shell
server # xrandr
you should see the actual configuration of your screen(s)
to rotate them you can use this command
xrandr --output SCREEN1 --rotate left
(*note: SCREEN1 is the name of the screen given by xrandr)
the commands are eft, right, inverted , normal.
and to use it as a dual screen you can use this
xrandr --output SCREEN1 --right-of SCREEN2
you can find more information about it using the man like this
man xrandr
Have fun with your screens
How to know my public ip address with bash
0this is a little bash script to know your public ip address
this was tested on snow leopard and it works well
it can be use also on linux … i tested it on my ubuntu and it’s also good working
#!/bin/bash
wget http://www.monip.org/ 2> /dev/null
echo "The public ip is :"
perl -ne 'print "$1\n" if m/((\d{1,3}\.){3}\d{1,3})/' < index.html
rm index.html
You can use it when you’r behind a nat … it’s actually good working ( based on http request’s)