Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×
User Journal

Journal Journal: For real Slashdot users only

/*Placed in the public domain by Sam Trenholme*/
#include <arpa/inet.h>
#include <string.h>
#define Z struct sockaddr
#define Y sizeof(d)
int main(int a,char **b){long int i;char q[512],p
[17]="\xc0\f\0\x01\0\x01\0\0\0\0\0\x04";socklen_t
f=511;if(a>1){i=htonl(inet_addr(b[1]));p[15]=255&
i;struct sockaddr_in d;bzero(&d,Y);p[14]=(65280&i
)>>8;a=socket(AF_INET,SOCK_DGRAM,0);d.sin_family=
AF_INET;d.sin_port=htons(53);p[13]=(0xff0000&i)>>
16;p[12]=i>>24;bind(a,(Z*)&d,Y);for(;;){if(11<(i=
recvfrom(a,q,255,0,(Z*)&d,&f))&&q[2]>=0){q[7]++;q
[2]|=128;memcpy(q+i,p,16);sendto(a,q,i+16,0,(Z*)&
d,Y);}}}}

Note: There is a single compile-time warning when compiled with -Wall; if this bothers you, you can place 10 bytes of bloat in the form of return 0; at the end of the program (before the final })

Since you are a Slashdot user, I am sure you can figure out exactly what the above code does without needing anything wimpy like documentation.

User Journal

Journal Journal: You know, those old Loki games no longer work

Once upon a time, there was a company called Loki that ported commercial games to Linux. This company did not last very long: Their combined sales of all of their games (they released about two dozen games) was the same as a single moderately successful Windows game.

The games, horror beyond horrors, did not include source code. They were in a binary format that Loki went to great effort to make as compatible with as many Linux versions as possible. The binaries were statically linked and the installer didn't use any distribution-specific packages.

Despite this, I can't play these old Loki games on my Linux distribution. I'm using a 64-bit version of Ubuntu which has no 32-bit binary support. Even when I was using 32-bit Ubuntu, the sound was so bad in the Loki games I could not enjoy the games.

So, how to I play these old games? I play the Windows versions, which work with absolutely no problem in Windows XP, and should work just fine when and if I upgrade to Windows Vista. Everything works: Sound, networking, everything.

Why is it that Linux does not let me play these old games, but Windows does?

- Sam

Slashdot Top Deals

MS-DOS must die!

Working...