Mass Effect body paint == Fucking Sexy!
- May 26th, 2011
- By jrod
- Write comment
Author Archive
wasted truth.
why call it all, blue?
hot lines.
eventual decline.
with the right attitude you will succed, blue.
resent that discontent.
sidestep.
define the state of things so far.
crazy things, soft spoken..overide.
with your eyes open, you know soft spoken changes nothing.
a view so cruel.
nothing.
I found this program while looking through some old backups labeled red_floppy. I thought it was pretty funny how shitty of a coder I was at 13. I am also kind of amazed at how much of a dork I was for writing a program to help AD&D Character Generation.
#define D 6
int roll();
int * sort_roll(int u[]);
int score(int s[]);
void seed();
int roll()
{
int z, x, rs[4], *rr, r;
int j = 6;
while(--j){
for(x = 0; x < 4; x++)
{
rs[x] = ((int) D * rand() / (RAND_MAX + 1.0)) + 1;
for (z = 0; z < 100; z++) rand();
}
rr = sort_roll(rs);
r = score(rr);
}
return r;
}
int * sort_roll(int u[])
{
int x,y,temp;
for(x = 0;x < 4; x++)
{
for(y = 0;y < 4; y++)
{
if(u[x] < u[y])
{
temp = u[x];
u[x] = u[y];
u[y] = temp;
}
}
}
return u;
}
int score(int s[])
{
return s[1] + s[2] + s[3];
}
void seed()
{
srand((unsigned int)time((time_t *)NULL));
}
int main()
{
int x, j;
seed();
do{
for(x = 0; x < 6; x++) printf("%d\n", roll());
printf("\n\n");
} while((j = toupper(getch()) == 'X'));
system("pause");
return 0;
}
Read about the new pre-release here. Download the tar ball, extract, copy the library to your plugin directory and get rid of gnash.
~$ tar xzfv flashplayer10_2_p3_64bit_linux_111710.tar.gz
~$ cp -av libflashplayer.so /usr/lib/mozilla/plugins/
~$ sudo apt-get remove browser-plugin-gnash gnash-common gnash
Restart your browsers and check your about:plugins page, you should see this:

Calculating how many lines my project is at currently (not including tester code or templates):
(kserve)@haven:~/kserve/fresh/kserver$ find lib/ controllers/ model/ -type f -name “*.py” | grep -v template.py | grep -v auth.py | grep -v error.py | grep -v __init__ |grep -v app_globals.py| grep -v base.py |xargs cat | wc -l
1337
l33t.. no bs.
Unfortunately, it is not done. I am going to to have to code 30,000 more lines now.. damnit!
Jrod.
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « May | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | ||||