Thursday, December 29, 2005

Take a peek into the Microsoft Source Code

Today, I did something illegal. I took and recieved the source code to the 'Solitare' game in Microsoft Windows. Now, it won't compile (missing headers), but I can tell you that there is more than meets the eye.

For example, there is 2 different '3 of spades' images in the bmp/ directory. The second design was obviously never used (does the fact the Microsoft named it 'foo.dib' have anything to do with it?)

I have come forward to comment on this blunder.

Let's take a look in cards.c, ok...

While there isn't anything really intresting in the code (although this seems to be the basis of CARDS.DLL), there is this one function which seems a bit odd:

void SaveCorners(HDC hdc, LONG FAR *rgRGB, INT x, INT y, INT dx, INT dy)
{
if(dx != dxCard || dy != dyCard)
return;

/* Upper Left */
rgRGB[0] = GetPixel(hdc, x, y);
rgRGB[1] = GetPixel(hdc, x+1, y);
rgRGB[2] = GetPixel(hdc, x, y+1);

/* Upper Right */
x += dx -1;
rgRGB[3] = GetPixel(hdc, x, y);
rgRGB[4] = GetPixel(hdc, x-1, y);
rgRGB[5] = GetPixel(hdc, x, y+1);

/* Lower Right */
y += dy-1;
rgRGB[6] = GetPixel(hdc, x, y);
rgRGB[7] = GetPixel(hdc, x, y-1);
rgRGB[8] = GetPixel(hdc, x-1, y);

/* Lower Left */
x -= dx-1;
rgRGB[9] = GetPixel(hdc, x, y);
rgRGB[10] = GetPixel(hdc, x+1, y);
rgRGB[11] = GetPixel(hdc, x, y-1);

}

Now, if you are a programmer, you can obvioulsy tell that Microsoft does shit the same as everybody else. They ain't God, they ain't special. Their shit stinks too.

Here's a better one:

BOOL APIENTRY cdtDraw(HDC hdc, INT x, INT y, INT cd, INT mode, DWORD rgbBgnd)
/*
* Parameters:
* hdc HDC to window to draw cards on
* x, y Where you'd like them
* cd Card to be drawn
* mode Way you want it drawn
*
* Returns:
* True if card successfully drawn, False otherwise
*/
{
return cdtDrawExt(hdc, x, y, dxCard, dyCard, cd, mode, rgbBgnd);
}

The irony of this is that Microsoft has to write one completely pointless function to save programmers a few keystrokes down the line... jeesh no wonder they're bloated! pointless functions for pointless code!

Here's another bloated fnction we could have lived without:

VOID MyDeleteHbm(HBITMAP hbm)
{
if(hbm != NULL)
DeleteObject(hbm);
}

If the Microsoft programmers actually took tiem to go through their code, this would not be nessessrary. Damn Microsoft idiots!

That is my view.

Wednesday, December 28, 2005

Roland Bouman's blog: Linux for Human Beings - AND Roland too!

Roland Bouman's blog: Linux for Human Beings - AND Roland too!

Microsoft Sucks!

Microsoft is possibly THE shittiest company around.

I have recently tried installing their operating system, Microsoft Windows 2000. The first two times, it failed to put the bootloader anyplace useful. After the third time, it was up and running. Now, I have to make a comment on it here: People bitch and while like little girls cause Linux doesn't automatically come with a magical driver for their video card and hey get VGA mode. Guess what? Neither does Microsoft Windows! It booted right into a 640x480 mode with just 16 colors! hell, it even did this when I upgraded my mom's machine to 2000! People say that "Windows is great cause it comes with al the drivers." Wrong people. Windows DOES NOT come with all of the drivers. Your OEM and computer retailer installed them for you. I didn't even have sound or a Ethernet card after the install. Luckly I had prepared for this by downloading the drivers and saving them to my FreeDOS partition (Windows is D:, FreeDOS is C:). Once I had a argument on a private IRC network with a person named Joe Everett. He made the argument that Linux drivers SUCK. Well, let's contrast and compare: If you install a new graphics driver in Windows, you have to reboot THE ENTIRE OPERATING SYSTEM. In Linux, it's as simple as restating X11. Usually restating X11 takes about 15 seconds, maybe more if you use KDE or GNOME. I use Fluxbox so it takes me a whole 10 seconds. I would rather wait 10 seconds to restart X than 10 minutes to restart Microsoft bloatware.

Joe also made the argument that Linux is completely unsupported by ISVs and any companies. He also made the argument that there is NO (as in 0, zero) commercially produced programs for Linux. This is laughable as I am using Opera right now *ON LINUX*. Opera is made by a company. It is NOT open source. And for ISVs? I guess he doesn't consider Intel, or IBM, or even Red Hat, Inc. to be ISVs. Even Google, which has almost the highest stock price (at over $420 (NOT A TYPO!) a share, Microsoft is just $35/share) has produced Linux software. Google themselves run on nothing but Linux. If Linux is such SHIT like everyone claims it is, why does Google have a stock price which is one of the highest on the ENTIRE FACE OF THE PLANET??? If Microsoft even hopes to exist in the future, Bill Gates better learn to suck a lot of dick at the Google Campus.

But I digress, and really need to get back on topic. After installing Windows, rebooting, upgrading, rebooting again, etc. I decided I wanted to play a game. Well, that game didn't work too well with DirectX, so I had to use software rendering, which isn't bad cause the game doesn't do much 3D anyways. I wanted to play StarCraft, another game, and I had to edit the hell out of the registry for it to work. I cannot find a decent graphical debugger, there isn't even a decent development system! Windows is full of incompatabilities. I say, just delete it and use Linux.

That is my view.

Monday, November 28, 2005

Fuck the goverment! They fucking suck!

No, I ain;t no fucking islamic ass, I ain't no camel jockey, and I am sure the fuck not from the middle east. however, I hold the goverment in as high regard as much of us hold the middle east, and that isn't much. What is my beef with the goverment? They are incompetent, ignorant, slow, stupid, innefficent, and also, full of brueacrats.

First of all, I am no rich person. I ain't even middle class. I live BELOW the poverty line. As many of you are aware, I am still in high school. In fact, I am going to go ahead and account for all the times the goverment has fucked my ass over.

During the 9th grade, i was going to Riverview High. I was there only 2 or so months. Why? to quote, I "was not in the proper demographic district to attent Riverview High School". This is true, but I was there on special assignment. That means I had paperwork downtown to be there.
But the fucking goverment in all of it's incompetentness, lost that paperwork. So they dis-enrolled me from that school, and left me out of school for 9 months. They didn't try to relocate me to another school. This is NOT my fault. This is the goverment's fault. They run the school system, therefore the school system's fuck-ups are also the goverment's fuck-up because the school system and the goverment are one and the same. And to note, this has really fucked up my education, and I may not get a diploma due to this bullshit, unless I repeat the 10/11/12th grade. Fucking lame as fuck.

Here's another account:
During some bullshit several years ago, a judge decreed that I was to have what is called "Medicaid" (goverment-funded health insurance) until my 18'th birthday. Well, I ain't 18 yet, but they sure the fuck cut me off. The goverment is not only incompentent here, but they broke their own damn laws. Whose at fault? dunno, but it's probably indirectly George W. "Cocksucker" Bush's fault. I say, Fuck them.

And you want to know where the payroll of these very stupid people comes from? YOUR TAX DOLLARS. Every time they cut the 10 dollars or so in taxes out of your paycheck, it goes to a goverment workers paycheck. You do *NOT* work for the goverment. They work *FOR YOU*. *YOU* pay *THEIR SALARIES*. It is your hard earned money upon which these ignorant fucks get paid from. Remember, next time a cop pulls you over an gives you a hard time, you might want to remind him that it is your tax dollars that pay his paycheck.

That is my HONEST view.

Sunday, November 27, 2005

Links links and more links

This isn't my usual bitch session. No, it's a chance to show you some of the material i read almost daily.

I read the online comic User Friendly. It's great. Darl McBride is made out as a crazed CEO that is hellbent on stopping Linux to the fact he says that everything that goes wrong in his life is the fault of those "damn Linux hackers".

Recently I read an article on how the DMCA is much like prohibition in the 1920's. It's asbestos. And you know, it's just like they say. Asbestos, it'll kill ya.

Here's an excerpt from Slashdot (which I also read):
mkraft writes "A gamer fed up with his new Xbox 360 crashing every 20 minutes has fixed the problem by raising the power supply off the ground with some string. Goldeneyemaster over at the GameSpot forums indicates that the main reason for his Xbox 360 freezing up is the power supply overheating. The solution is to lift the power supply off the floor and allow the air to circulate better around it."
.
And here's another excerpt from Slashdot, mainly about a 3D FPS game in javascrpit.
axonis writes "Benjamin Joffe has developed Canvascape - "3D Walker", a simple javascript browser based 3D first person game engine that shows off the capabilities of the Canvas tag found in Firefox, Safari and Opera. " Don't expect much except a proof of concept ;)

here's a article about Mapquest and it's technologies

A article on Reuters Oddly Enough about cars being hijacked in a forigen country and the citizens doing way more to stop it than the police could dream of.

And finally, don't talk on your cell phone when driving. It's just stupid, and if I cath ya doing it, i'll kick your ass.

Thursday, November 24, 2005

One hundred and one ways that Windows crashes...

So I am sitting in my business sys & tech class, in front of a computer... The computer runs Windows 2000. The only tasks running were those deemed needed or nessessrary by either the sysadmin, or the School Board of Hillsbourgh County. Basically anti-virus, ethernet card config,
and a small tray tool for the onboard Intel video card, much like the nVidia tray tool, and core system tasks, nothing else. Not Word (yuck), nothing else. Not even the World's Worst Web Browser. All I am doing is wiggling the mouse around the screen, and out of the blue: CRASH!
I get this in a box:
The system service LSXSS.exe has unexpectedly exited with return code 127. The system will now shut down in 0:01:00. This shutdown was initiated by NT AUTHORITY\SYSTEM.
If I called up Microsoft and reported this, they would say I did something wrong. How the fuck is just moving the mouse around wrong? How the fuck is it?!?!?! I didn't click anything. Just moved it in circles. WHAT DID I DO TO CAUSE IT TO CRASH?!?!? NOTHING!!!

Of course, this is why they are going to install Linux on 2 spare iMacs found collecting dust and roaches in a corner.

See, it is not my fault that Microsoft cannot create a product that actually works correctly. If moving themouse around is wrong and warrants a system crash, why doesn't Mac OS, Linux, Free/Net/OpenBSD, IRIX, AIX, Solaris, ReactOS, Acorn, BeOS, NeXTstep, OpenStep, etc. crash when you do the exact same thing?

That is my view.

Sunday, November 13, 2005

Jory A. Pratt -- Troll, or net.kook? You decide.

There is a developer for Gentoo Linux whose name is Jory A. Pratt -- you'll see lots of archived email by this guy if you just google his name.

This guy is full of himself. Not joking. He's full of shit up to his eyes, and the rest is toilet paper.

He is a racist, a bigot, and a self-cenered asshole. He takes pride in disgracing the Marine Corps., stealing other peoples' work, and even violating U.S. copyright law. (which is a federal offense). He claims to be a expert at qmail, which he isn't. He also claimed to make the magnesium chat client for Yahoo! (runs on most Unices, including Linux, the BSDs, Solaris, and Darwin.), which he didn't. He is at best a maintainer, and a shitty one at that.

This guy is an utter asshole, and a communist dog. He uses the ID 'Anarch_Penguin' on Yahoo!'s "Linux, FreeBSD, Solaris:1" chat room, and 'anarchy' on Freenode IRC. His other Yahoo! ID is jory_is_da_man, (which, by the way Jory, you're not. Get over yourself.)

There are others that have well documented his behaviour. I will not repeat what they have alerady said -- you can just read the facts for yourself. Here be the linky. That will be all, until next time.

Friday, September 16, 2005

Linux or Windows? Screw you, *I'll* be the judge.

Microsoft, as we all know, or should know, anyway, is a multibillion dollar (Thousand Million to all those in England) corporation that apparently is dedicated to creating a product that is harmful to any research and user's paychecks. Their Windows operating system, for example, requires more and more disk space/processing power with each new incarnation.

Sure, you can say the same with Linux distro's of now and those of the past, But look at this in a more refined manner.

Lets say you want to use Microsoft's latest products versus the latest Open Source programs for a dedicated router, on as old as possible hardware.

Let's see here... Linux, version 2.6.14.3 as of this writing, can be run on machines as old as 486's without any slowness, lagging, or system failure.

Microsoft Windows 2003 Server requires at least a 750MHz Pentium III.

Linux will run with as little as 2MB of RAM (but not very well, and won't do much. for our application, we will want 16MB of RAM, 8 if we are lucky.)

Microsoft windows 2003 Server? 128MB of RAM. MINIMUM.

Linux, plus the various userland tools (not that many, a lot of routing shit is kernel-side) will run nice and snug on my Compaq Presario CDS 520, which has a 486SX2 @ 66MHz, 52MB of RAM (640Base [doesn't count] + 4MB onboard + 16 on a SIMM that comes with the unit + 32MB from a new SIMM chip).

Good fucking luck trying to get it to even boot Windows Setup, much less Windows 2003 Server.

This is a completely modern, up-to-date Linux install I am talking about.

That just goes to show that Microsoft is squeezing money out of users one way or another. when a user buys a new PC with a Intel CPU, some money goes to Intel, which then is attributed to Microsoft (realize, Microsoft's software depended on a newer system), which gets Microsoft all the latest info on Intel's new chips, like spec sheets and live, working units.

How fucking lame is it to see that Microsoft cannot produce a product TODAY that will run on an old 486, while the Open Sourec movement can cough up at least 100 MAJOR applications (server software ranging from DNS, FTP, proxy, SOCKS4/5, routers, firewalls, and even Web servers), and even 4 operating systems, which will run on these machines WITHOUT ANY PROBLEMS OR PREFORMACE PROBLEMS ON A HOME LAN. (don't know about an office web server, but I am pretty sure a 486 DNS server can handle an entire office of 100 systems.)

Not to mention there are at least 3 thousand minor applications that are Open Sourec and run just fine on a 486 (most of them aren't really useful, like games, and some are, like filesystem checkers, compression agents, archivers, web broswers, etc.)

Even under such conditions, a Linux box will still easily achive an uptime of over a year. Windows 2003 server on the latest hardware has to be rebooted every weekend.

If Linux fails, you can repair it (this is the suggested option) or reinstall it (if need be). With Microsoft, your only option IS to reinstall, and that takes about an hour per machine. No repairs, only reinstall.

If you wonder how this translates to userland preformace, Think about it.
If Linux can run on a 486 in mission-critical applications and NOT FAIL, while Microsoft needs a 750MHz box (and fails left and right), and you STILL are wondering which is better, You need your head examined. Clearly Linux is the winner. And don't give me that "but Linux is for hackers and geeks" bullshit. Even the elderly can easily use Linux, even more so than Windows in some cases.

And Linux doesn't cost anything (Except in a few cases). And before you start asking for voice chat in Linux or webcams, realize no one will help you become a pedophile or some other kind of pervert, as webcams and voice chat are only used by pedophiles and other perverts.

Some piece of hardware not supported in Linux? Just wait. either you will replace the hardware or it will become supported. Good things come to those that wait.

And finally, READ THE FUCKING MANUAL (and no, it's NOT on paper, it's on your hard drive, usually in /usr/share/doc or by calling the 'man (command name of program to get help with)' command. (without the quotes), e.g. to get help with the GNU C Compiler, whose command name is 'gcc', you would then type 'man gcc'.

List of basic commands that you should 'man':
ls
cp
rm
mv
tar
gzip
bzip2

Remember that 'man' is a commandline program. Start a command line from the GUI with the comand 'xterm' (or 'rxvt') [Most GUI's have a 'run' option in their menus.]

Finally, don't forget that you have a program called 'info', which will let you read more interactive manuals. And info pages are usually more detailed than the manpage for a program.

If info can't find a infopage for a program, it'll just show the manpage. (Of course it's better to call a manpage with 'man' so that you see the formatting, which 'info' discards.)

That's my view.