October 2005


General Issues07 Oct 2005 10:29 am

Following up on the poker post - there are some things in this life that I cannot resist doing. One of them is listening to a new track by Armin van Buuren when it comes out.

Sure, the guy looks like he couldn’t produce anything awesome aside from a collection of used hair gel bottles.

And I’ll be honest - the guy has really put out some brutal tracks in the last few years. But MAN how can you pass up anything he does after listening to Communication? It’s honestly one of my favorite tracks in any form of music. I really enjoy a diverse spread of tunes but this track remains one of my favorites. Total pure vocalish trance cheese.

In case you have zero idea about what I’m talking about, here are some more tracks to download. Take a listen. Don’t even bother to get trance ‘compilations’ nowadays because they all suck as far as I can tell.

  • Armin van Buuren - Communication (As mentioned)
  • System F - Out of the Blue
  • Gouryella - Gouryella
  • Force of Habit - Denzil and Dwayne

To me a good track in this genre conjures up images of a giant field on a fall day with huge speakers and a crowd of thousands jumping in sync with the beat.

… And what could be better then that?

General Issues06 Oct 2005 10:01 am

Sure, I knew how to do it with arrays.

I wasn’t sure how to do it with multi-dimensional arrays. See, like a chump I had always been declaring the array size as a const. never took the time to think about it.

Turns out it’s just doing a pointer to a pointer.

What a chump I am - sloppy coding throughout all my old code. It’s clean-up time.


// Example to create an array a[5][2] dynamically

int main(int argc, char* argv[])
{

int** a = new int*[5]; // Initialize the 1D Array

for (int i=0; i<5; i++) {
a[i] = 0; // Initialize all elements to zero.
a[i] = new int[2]; // Put 2 elements on each 1D element
for (int j=0; j<5; j++) {
a[i][j]=0; // Do it Again
}
}

delete[] a;
return 0;

}

There are four important things here

  • Don’t forget to delete to free up the memory to use later on in the code. Otherwise it sits used until the program ends.
  • If there isn’t enough memory to allocate it will throw an exception.
  • You can’t delete until you initialize the array. Unhandled exception will greet you if you do.
  • The compiler (.NET, v C++ 6 ,etc) will not be able to see the dimensions or contents of the array in a watch. You need to watch a specific element a[3][0] - Don’t get freaked out.
Poker / Gambling03 Oct 2005 02:20 pm

You know it’s really no secret. Everyone knows it.

You need to be able to make the most profitable plays at the most profitable times.

But the problem that I suffer from is letting emotion or chance into the equation. Someone takes a big stack of your cash on hail mary bad beat, that next hand you are betting hard at them with 3rd pair, or pushing in on nothing.

This is where you, loyal readers can begin to become a better poker player than me. I rarely am able to muster the restraint not to react emotionally in a game dominated by statistics. And I realize it.

I suppose that makes a very large fool.

« Previous Page