Yay for internet fucktards.

No Comments

Ok, so I posted a reply (now reported by the thread owner and deleted by the mods) to a thread on the Overclockers Australia Forums because, quite frankly, the thread the person wrote sucked. The writer is well known for his complete lack of coherency when posting, or chatting on the #overclockers IRC channel.

Basically the reply I put was about the lack of coherency in his post and the fact that he stole copyrighted image from GameSpy. Then I get spammed incessantly by the thread owner because he’s a tard and just won’t listen.

**** BEGIN LOGGING AT Fri Aug 19 14:25:29 2005

14:25:29 "Nice stolen images and lack of coherency." Like to write your own article then?
14:26:20 I do, regularily… but you’ll never have a use for reading them.
14:26:59 I did write it myself. Could you be constructive and not say… I suck
14:27:29 I was being
constructive – your wording was barely coherent, and you blatantly
stole images.

14:28:04 WOuld you like me to illegal download the game instead?
14:28:14 if you want someone
to edit your articles for you, pay them, until then – deal with the
fact that the internet is a harsh critic, and if you can’t construct a
coherent sentance or obtain your own images, then you’ll get bagged out
on.

14:28:59 No i’m asking for help to improve myself. Practise makes perfect
14:30:23 I can’t pull a couple of cords and be suddernly coherent
14:32:57 that’s what the past 20? years have been for.
14:34:45 It’s not about 21 years ago. It’s about now and not the past
14:34:56 again, as usual, you’re missing the point.
14:35:27 I can’t explain why i suck an english, Cause i can’t answer that question
14:35:36 cause i don’t know
14:36:13 I never asked you to explain, quite frankly I’d rather you stop going on about this.
14:36:39 I’m not interested
in your self development, I’m interested in talking to people in
#overclockers and playing games.

14:37:36 I understand. But it
doesn’t help if you post comment about lack of coherent if you don’t
offer help

14:38:00 Cause your comment is pointless and meaningless without suggestions
14:38:10 yes, it is, that’s why it’s called the internet.
14:38:42 I wasn’t posting it
as help, I was posting it as a snide remark because I felt by clicking
that link and reading that post, I’d wasted my time.

14:39:04 Now I’m wasting EVEN MORE time going on about this shit with you.
14:39:43 You don’t have to click it then. Because i’m trying to improve myself and practise
14:40:12 are you done?
14:40:25 you really don’t get it, do you?
14:41:14 I do. I get annoyed when people get all angry about trying to i get some help
14:41:45 Then they hate me for it. Think i’m a moran
14:42:08 you’re a moron
because you don’t listen when people say "I’m not interested in helping
you" which is what I said a few minutes ago.

14:42:35 if I wanted to help
you, I would have, but now you’ve got me pissed off because you won’t
shut the hell up.

14:42:48 It’s still a conversation
14:43:37 a conversation I had no interest in taking part in
14:43:38 I’m explaining to you why i’m doing this after you said no
14:43:52 that’s like saying rape is still sex.
14:44:04 sure, it is – but it’s something I’m not interested in.
14:44:10 Well you brang it on yourself. Posting in the thread
14:44:14 and quite fucking fed up with taking part in.
14:44:20 feel free to delete you post
14:44:22 no, I didn’t bring anything upon myself.
14:44:51 I’m not going to
delete the post, actually, I’m going to post this whole conversation on
my site, and then link to it from the post, and my sig, because you’re
such an annoying prat.

14:45:06 and mainly because I’m bored.
14:46:03 I was bored too when i writen the article up. Aleast i’m trying

Birthday present weirdness.

No Comments

Ok, I’m not a big fan of birthdays, always a bit over all the attention and crap that goes with them. I really had to post something that was written on the two cans of deoderant I got though.

One’s called “38.2 degrees celsius
“Immediately prior to knocking on heaven’s door, the average female will experience a dramatic increase of body heat and would notice a temperature reading of 38.2oC if the services of a thermometer could be utilised at this point. A male wearing Lentheric 38.2 however, would maintain coolness throughout.”
Odd.

And the other “648 muscles“:
“There are approximately 648 muscles in the female body. How many of these are used every time the earth moves depends on a) the physical prowess of the male in attendance or b) outside influences such as Lentheric 648. (May we advise that option b removes undue pressure from aforementioned male.”

Let me just say. Whiskey Tango Foxtrot?

Boredom strikes again!

No Comments

Ok, Ok, I have to stop doing people’s homework for them… but this one was a challenge!

/*
** file: Pegs.java
**
** created: 02/04/05
**
** author: Craig Lester
*/

import java.awt.*;
import javax.swing.*;
import java.io.*;
import java.util.*;
import java.lang.Math.*;

public class Pegs {

int matches = 15;
int player = 2;
int remnum;

int board[][] = new int[9][9];

public void setupboard() {
int r = 0;
int c = 0;

for (int n = 0; n < 7; n++) {
for (int m = 0; m < 7; m++) {
board[n][m] = 1;

if (n < 2 && m < 2){
board[n][m] = 0;
}

if (n < 2 && m > 4){
board[n][m] = 0;
}

if (n > 4 && m < 2){
board[n][m] = 0;
}

if (n > 4 && m > 4){
board[n][m] = 0;
}
}
}

}

public void drawboard() {
int r = 0;
int c = 0;

System.out.println(" 0 1 2 3 4 5 6");
for (r = 0; r <7; r++){
System.out.print(r +" ");
for (c = 0; c <7; c++){
switch (board[r][c]){
case 1:
System.out.print(". ");
break;
case 2:
System.out.print("* ");
break;
default:

System.out.print(" ");

}

}
System.out.println();
}

}

public int countspots(){
int count = 0;
for (int r = 0; r <7; r++){
for (int c = 0; c <7; c++){
if (board[r][c] == 1) {
count++;
}
}
}
count–;
return count;

}

public void placepegs() throws IOException {
int maxpegs = countspots();

BufferedReader in = new BufferedReader(
new InputStreamReader(System.in));
Random generator = new Random();
int x = 0;
System.out.println();
System.out.print("Enter number of pegs
to randomly place on Peg Solitare board >> ");
System.out.flush();
x = Integer.parseInt(in.readLine());
if (x > maxpegs){

System.out.println("Pegs amount greater than maximum allowed for this
board, using maximum instead");
x = maxpegs;
}

System.out.println();

//if (x == 0 )

int r = 0;
int c = 0;
while (x > 0){
r = generator.nextInt(7);
c = generator.nextInt(7);
if (board[r][c] == 1){
board[r][c] = 2;
x–;
}

}

}

public void play() throws IOException {
String y[] = new String[7];
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
Random generator = new Random();

y[0] = " ";
// asks for the user to input four moves
for (int r = 1; r < 4; r++){
if (y[r-1] != ""){

System.out.println("Please enter move, seperated by spaces");
y[r] = in.readLine();
}
}

for( int test_loop = 1; test_loop < 4; test_loop++ )
{
System.out.println(y[test_loop]);
}

// iterates thorugh the … something?+
System.out.println("Testing now…");
for (int s = 1; s < 4; s++)
{
// System.out.println("Testing entry "+s+" now…");
int z[] = new int[5];
if (y[s] != null)
{
//System.out.println("DEBUG " +y[s]);

StringTokenizer ts = new
StringTokenizer(y[s]);
// goes through each token in the string

for( int test_loop = 1; test_loop <= 4;
test_loop++ )
{

z[test_loop] =
Integer.parseInt(ts.nextToken());
}
//System.out.print(z[s]);
}

int Valid = 0;
int x1 = z[1];
int y1 = z[2];
int x2 = z[3];
int y2 = z[4];
int xvec = 1;
int yvec = 1;
if( x1 > x2 )
{
xvec *= -1;
}
if( y1 > y2 )
{
yvec *= -1;
}
System.out.println( "\nTesting movement from "+x1+","+y1+" to "+x2+","+y2 );
// has the start position got a peg in it, and is the move a valid spot?
if( board[x1][y1] == 2 && (
( ( ( x1 >
1 || x1 < 5 ) && ( y1 < 2 || y1 > 4 ) ) || ( y1 > 1
&& y1 < 5 ) ) &&
( ( ( x2 >
1 || x2 < 5 ) && ( y2 < 2 || y2 > 4 ) ) || ( y2 > 1
&& y2 < 5 ) ) ) )
{
// calculate the movement vector
int movex = Math.abs( x1 – x2 );
int movey = Math.abs( y1 – y2 );
// is it moving two spaces?
if( ( movex ==
2 && movey == 0 ) || ( movex == 0 && movey == 2 ) )
{
//System.out.println("movement checked out");
// if the destination is clear
if( board[x2][y2] == 1 )
{

//System.out.println( "destination is clear" );
// if there is a peg to jump over

// this is where it’s jumping over

int checkjumpx = x1 + ( Math.abs( movex / 2 )
* xvec );

int checkjumpy = y1 + ( Math.abs( movey / 2 )
* yvec );

//System.out.println( "check spot :
"+checkjumpx+","+checkjumpy);

// check if the spot it’s jumping is a peg

if( board[checkjumpx][checkjumpy] == 2 )
{

System.out.println( "Valid"
);
Valid = 1;
}
}
// if the destination has a peg in it
else if( board[x2][y2] == 2 )
{

//System.out.println( "Destination has a peg
in it already" );
}
// if the destination is off board
else
{

//System.out.println( "Destination off board"
);
}
}
// if it’s moving too far
else
{
//System.out.println("x movement was: "+movex );
//System.out.println("y movement was: "+movey );
}
}
// if there was no peg to grab in the first place
else
{
//
System.out.println( "no peg at "+x1+" "+y1+" value was "+board[x1][y1]
);

//System.out.println( "invalid move, either peg not there, or out
of bounds" );
}

if (Valid == 0)
{

System.out.println("Invalid");
}

}

}

public void game() {
System.out.println ("Java Pegs Game");
System.out.println ("=============");
System.out.println ();
setupboard();
try {
placepegs();
}
catch (IOException i) {
System.out.println("Erronous Input");
}

drawboard();
try {
play();
}
catch (IOException i) {
System.out.println("Erronous Input");
}
drawboard();

}

public static void main(String[] args) throws IOException {
Pegs tpo = new Pegs();
tpo.game();
}

}

Boredom creates programs!

No Comments

This is what happens when I’m bored – a mate of mine messaged me for a tip on how to write a program for his homework at uni – I ended up writing the whole program as a test for myself in Python.

#!/usr/bin/python
#Craig: Write and test a method that returns the sum of all factors of a given positive integer n, where the factors include 1 but exclude n itself. For example, the sum of the factors of 12 is 16 (1+2+3+4+6 =
16).  

#yaleman:
#first you have to get the factors
#iterative modulo would be the easiest
number_to_factor = 12
sum_of_numbers = 0
debug = 0
for i in range(1,(number_to_factor – 1 )):

    test = number_to_factor % i
    if debug == 1:
        print "i "+`i`
        print "test "+`test`
    if test == 0:
        sum_of_numbers += i
        
print "Sum of factors of "+`number_to_factor`+" is "+`sum_of_numbers`

I think I might have to start looking at some of the bounties for stuff in the open source community – I know how to do some of it, and if I don’t, I can learn!

Gah!

No Comments

This is amazing, rather than giving us good service and being good to the people, the Queensland Transport department has started allowing Citibank to put credit card offers in registration renewal letters. Geez, where will it stop? “Driver’s License – brought to you by McDonalds in the interests of safe driving!” or “Here is your speeding fine, red bull would have given you wings!” “Why drink and drive when you can stay at home and have a blockbuster night?

Sigh.

Older Entries Newer Entries