August 5th, 2001

scotto piercing gaze superhero

chunker.

Well, if I can't sleep, I can at least get my code spit out.

#include [stdio.h]


#define WORKSPACE "./Workspace/"
#define LINE_LENGTH 160

int chunk_size = 43;

main()
{
int i = 0, wrote = 0;
FILE *fp;
char filename[LINE_LENGTH], insuck[LINE_LENGTH];

sprintf(filename, "%s%d", WORKSPACE, i++);
if ((fp = fopen(filename, "w")) == NULL) exit(1);

while (fgets(insuck, LINE_LENGTH, stdin) != NULL) {
fprintf(fp, "%s", insuck); wrote++;
if (wrote >= chunk_size) {
fclose(fp);
sprintf(filename, "%s%d", WORKSPACE, i++);
if ((fp = fopen(filename, "w")) == NULL) exit(1);
wrote = 0;
}
}

fclose(fp);

exit(0);
}
  • Current Music
    Radio Tiki -- www.radiotiki.com -- Eclectic humor and conve
  • Tags
scotto piercing gaze superhero

behold.

hungryscottohungryscottoevilclassic

This is what happens when scotto is drunk, overtired, and brainfried from polishing off a database parse program.

hungrybaby, thank you for saving me. I gladly join your ranks.

in other news... where's my 2am post??
  • Current Music
    Radio Tiki -- www.radiotiki.com -- Eclectic humor and conversation
scotto piercing gaze superhero

(no subject)

F/X Porn by David Foster Wallace is a quick but good read on how special effects blockbusters like T2 and Independence Day are like porno films:


"Just like hard-core cheapies, movies like 'Terminator 2' and 'Jurassic Park' aren't really 'movies' in the standard sense at all. What they really are is half a dozen or so isolated, spectacular scenes -- scenes comprising maybe twenty or thirty minutes of riveting, sensuous payoff -- strung together via another sixty to ninety minutes of flat, dead, and often hilariously insipid narrative."
  • Current Music
    Radio Tiki -- www.radiotiki.com -- Eclectic humor and conversation
  • Tags
scotto piercing gaze superhero

Slept in..

Derek had a job interview come up, so we didn't get together today... instead, after seeing my sweetie off for the day (the dear has the mixed blessing of going to a 4 year old 's birthday party after a night of drunken debauchery with me...she loves the tot to pieces, but the time schedule could be better.) I dove back into bead, and reabsorbed the missing few hours of sleep I bypassed last night/this morning. Spent a good part of the time there not sleeping, but just resting... stroking newt, and trying to figure out what I want to do for my latest writing project. My brain's been teetering back to days of when I was playing champions lately... so I think it'll lean to something like 'unbreakable'.. extraordinary person in an unusual situation.

I *still* have to mail out goodies to folks. I don't know what's wrong with me, in that respect. It's been weeks, now... I will send the stuff out.. my window of opportunity is a small one each week to get to the post office while they're open... I have Saturday and that's it. I think what I'll have to do is find some day to get up early and go to the PO before work, as I can't seem to get things shipped out on the weekend effectively. Worst comes to worst, it'll get sent out Saturday, with my horrible tardiness.

I think I'll keep putting up my LJ cut posts of old characters, just for personal storage... I never really had them all in one place before.
  • Current Music
    (WarpedRadio - www.warpedradio.com)
  • Tags
    ,