Aug. 5th, 2001

chunker.

Aug. 5th, 2001 02:43 am
scottobear: (Default)
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);
}

behold.

Aug. 5th, 2001 03:54 am
scottobear: (Default)
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??
scottobear: (Default)
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."

Slept in..

Aug. 5th, 2001 06:31 pm
scottobear: (Squarebear)
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.
scottobear: (sketch)
Click to see larger image, in a new window. my latest entry into [livejournal.com profile] i's coloring game - here - http://www.livejournal.com/talkread.bml?itemid=8226422

shooting for a 'at the gallery' look. :) more 3-d ish than just puffy before. maybe a little sparse... I could probably add to it.
scottobear: (Default)
thanks to [livejournal.com profile] agent_orange Newtbot is now on AIM, as well as ICQ... AIM Chat | Web Chat, if you don't have AIM installed.
scottobear: (Default)

JACK-IN-THE-BOX

Read more... )

Profile

scottobear: (Default)
scott von berg

April 2017

S M T W T F S
       1
2 345678
9 10 11 12 13 14 15
16 1718 19 20 21 22
23 2425 26 2728 29
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 8th, 2026 01:53 am
Powered by Dreamwidth Studios