Apr 27 2009

What about the Boot Sector?

Christoph

Hiermit verabschiede ich mich in zwei Wochen (hoffentlich sehr sonnigen) Urlaub. Diese Zeit wird auch größtenteils internetfrei sein, weswegen hier keine neuen Code Candies von mir gebloggt werden.

; AFTER DISASSEMBLY I have this impression:
;
; This is what Bill Gates said… when Win95 was going to be
; released:
;
; “Gates: OK, then we’re ready to press the CD’s and start
; shipping out this new load of shit, but of course nobody
; will notice… harr harr.
; Employee: Hey, Mr. Gates what about the Boot Sector?? We
; haven’t written the FAT32 support routines there yet…
; Gates: Ah, that’s right… anybody?? We have just 45 minutes…
; Employee #2: Well, I think I can hack some shit together…
; Gates: Fine, go for it… remember you have only 44 minutes…
; Employee #2: I think I can do it.
; Gates: Fine, then I’ll just go home… We’ve made it!!”
;
; FUNNY?
;
; There is some really strange code in this boot record….
;
; I bet Bill Gates hired some crazy mother f*cker to write
; this shit. It seems like he had really tried to make the
; code fit within one sector. But when it didn’t hid just
; decided to use three instead…
;
; This is a typical microsoft solution, they mix stupid 8086
; code… with cheap solutions and then suddenly they use
; 386 code…
;
; And then there is the new FAT32 data structures where they
; have moved the volume label, FileSystem ID and serial
; number down to make room for some extended FAT32 variables…
; it sucks. Why not rearange the whole structure… An OS
; would not try to interpret the shit anyway, because
; the Partitioni Table SYSID has changed with FAT32.
;
; As I said… crazy mother f*cker…
;
; Well, well… here’s some of the stuff… with a mix of mine
; and sourcer’s comments…

Source: Direct link to the source code
Software: win95 boot sector
Programming language: Assembly

1 Star2 Stars3 Stars4 Stars5 Stars (3 Bewertungen, Durchschnitt: 5.00 von 5)
Loading ... Loading ...

Apr 25 2009

Do not translate

Christoph

/* HAAAAAAAAAAAAAAAAAAAAAAAACK!, do not translate the next
 * line!, Since this is the default string we might as well
 * use the gettext translation as we will likely have better
 * translations there. Yes ugly as f*ck, but oh well,
 * unfortunately two standard defaults are in circulation */

Source: Direct link to the source code
Software: GDM – GNOME DISPLAY MANAGER
Programming language: C

1 Star2 Stars3 Stars4 Stars5 Stars (3 Bewertungen, Durchschnitt: 3.33 von 5)
Loading ... Loading ...

Apr 24 2009

Work guarantee

Christoph

/* Yeah, yeah. Cheap hack, but it’s guarenteed to work! :)
 * The following just hacks the returned track name into
 * the variable
 */

Source: Direct link to the source code
Software: kover
Programming language: C++

1 Star2 Stars3 Stars4 Stars5 Stars (4 Bewertungen, Durchschnitt: 3.50 von 5)
Loading ... Loading ...

Apr 23 2009

Once upon a time

Christoph

// Let me explain a history about OrenetaDataInputStream.
// Once upon a time, there was a java programmer (aka Abel),
// who extended DataInputStream Class to support reading of
// complex data structures, as Inet4 and Inet6 address.
// He used the ‘read’ method of DataInput Stream, and told
// him to read ‘x’ bytes of data, as ‘x’ was the size of the
// data he wanted to read. But sometimes, extrange data
// appeared in the java application. He wondered from
// where it came, but he didn’t discovered until debugged
// the C server, captured the network packets and finally
// debugged the OrenetaDataInputStream Class. He spent
// many days and many hairs, but finally he knowed tha he
// must use the method ‘readFully’, that blocks until it read
// ‘x’ bytes. He congratulated himself and enjoyed it with
// cheers of red wine with his friends. (22-07-2003).

Source: Direct link to the source code
Software: Oreneta
Programming language: Java

1 Star2 Stars3 Stars4 Stars5 Stars (6 Bewertungen, Durchschnitt: 3.67 von 5)
Loading ... Loading ...

Apr 22 2009

I’m an old IBM programmer

Christoph

// i know one can make it with fewer code but i don’t have
// the time to do it; just imagine i’m an old IBM programmer
// getting paid per ten lines of code ;)

Source: Direct link to the source code
Software: Predoc
Programming language: Java

1 Star2 Stars3 Stars4 Stars5 Stars (5 Bewertungen, Durchschnitt: 5.00 von 5)
Loading ... Loading ...