Archive for January, 2004

Empire Launches VIP Program

Sunday, January 25th, 2004

Empire Poker today launched their VIP program. Basically it’s like UB’s Ulitmate Points, except that you get to play with the :party: fishies while earning points. Remember, Empire and :party: are the same thing. Since the only way you can be an Empire affiliate is to be a VIP (at least as of now), you should go sign up under Iggy.

Empire is really trying to distinguish themselves from :party: as evidenced by what Up For Poker is saying about the +EV situation for tournaments. To encourage this even more, check out the earnings schedule for playing tournaments:

Participation in Tournaments* - the more tournaments you play in, the more EPoints you earn. AND in addition – if you participate in more than one tournament on any given day, the number of tournaments calculated will be squared (e.g. participate in 2 daily tournaments and we will calculate it as if you participated in 4!). Please note that EPoints can only be accumulated for participation in tournaments with a $9 buy-in or above.

You need 5000 EP Points to be able to do anything, and they don’t come out and say how they are figured:

EPoints are calculated according to an automated formula. EmpirePoker.com can change this formula at its sole discretion. Under no circumstances can a player apply for any changes in his EPoints balance or EPoints calculation.

Anyway, if you aren’t playing there, you may want to try, assuming you can get an account created.

Poker Hand Macro - Now with JavaScript!

Sunday, January 25th, 2004

I spent a few minutes (yes, I probably should have done this right away) and got the macro to work with JavaScript instead of PHP. This should make it easier for people who don’t have their MT installation setup to do PHP. I just updated the entry, so if you’d like to see it, please go read Movable Type Poker Hand Macro.

I’m glad people are seeing some use to this, even if it seems difficult. Trust me, it’s not that hard, especially if you don’t use PHP.

Movable Type Poker Hand Macro

Friday, January 23rd, 2004

I’ve got a couple requests to post the mechanism that I use to create the poker hands on my blog. The system below will work with Movable Type (deployed on 2.6x), but some of the concepts may be applicable for other blog systems. This comes with no warranty, but I’ll try to help. If you screw up your blog, you did it on your own. Please try to understand a little bit about what is going on, if you have any questions, please ask before you screw things up :)
The whole point of this is to be able to do something like: <pokerhand>AsKcQdTh</pokerhand> and get AsKcQdTh.

In order for this to work for Movable Type, you will first need to install a couple of plug-ins:

I first added the CSS needed to format the entries. I like the four color decks so I made my suits look like that (obviously you can change this to whatever you want). You should add this to your Stylesheet template:

.diamonds { color: blue }
.clubs { color: green; }
.hearts { color: red; }
.spades { color: black; }

Next, if you don’t already have one, you need to create a new template to hold your new macro. Go to your config, then to “Templates” and create a new “Template Module”. I called mine “Misc”. You do not need to link this to a file. In the “Module Body”, enter the following macro:

<MTMacroDefine name=”pokerhand” tag=”pokerhand”>

<MTPerlScript>

$ret = “”;

$diams = qq(<?php echo \$diamonds ?>);
$clubs = qq(<span class=”clubs”>&clubs;</span>);
$hearts = qq(<span class=”hearts”>&hearts;</span>);
$spades = qq(<span class=”spades”>&spades;</span>);
@a = split(//,”<MTMacroContent>”);
foreach (@a) {
if ($_ eq “d”) {
$ret .= $diams;
} elsif ($_ eq “c”) {
$ret .= $clubs;
} elsif ($_ eq “h”) {
$ret .= $hearts;
} elsif ($_ eq “s”) {
$ret .= $spades;
} else {
$ret .= $_;
}

}
print $ret;
</MTPerlScript>
</MTMacroDefine>

What this does is create a new HTML tag called “pokerhand” (rename the “ctag” if you want it something else). You’ll notice that the code for the diamonds is actually PHP. The reason for this is that Internet Explorer sucks in terms of CSS support and has a major issue showing the &diams; symbol if you have any other text formatting in place. Thanks to The Fat Guy for letting me know about this as I only use Mozilla and didn’t notice anything was wrong.

I have MT save out my pages as PHP so that I can add arbitrary PHP code. I am using this for the browser detection and part of this macro. For a comprehensive howto on converting to PHP, see: Converting MT to PHP.

I created another Template Module called “PHP Functions” and linked that to a file called “vars.php”. In order to work around the IE issue, I added some cheap browser detection in the “Module Body” of the template:

<?php
if (preg_match(”/MSIE/i”,$_SERVER[HTTP_USER_AGENT])) {
$isIE = 1;
} else {
$isIE = 0;
}

if ($isIE) {
$diamonds = ‘<font color=”blue” face=”Symbol”>&#168;</font>’;
} else {
$diamonds = ‘<span style=”color: blue;”>&diams;</span>’;
}
?>

If you would prefer to use JavaScript instead of PHP, add the following to the top of your page (or in a JavaScript include):

<script language=”javascript” type=”text/javascript”>
var isIE, diamonds;

if (navigator.appName.indexOf(”Microsoft”) >= 0) {
isIE = 1;
} else {
isIE = 0;
}

if (isIE) {
diamonds = ‘<font color=”blue” face=”Symbol”>&168;<font>’;
} else {
diamonds = ‘&diams;’;
}

You must then change the Perl program where the diams variable is set:

$diams = qq(<script language=”javascript” type=”text/javascript”>document.write(diamonds);<script>);

Now you must edit the templates that are used to display the articles, index, archives, etc.

At a minimum (in order to allow the processing of the macro, and to include it), you must add the following to your template:

<MTInclude module=”Misc”>

Replacing “Misc” with whatever you called your module.

You will also need to modify the part of the template that called MTEntryBody to look like:

<$MTEntryBody apply_macros=”1″ process_tags=”1″$>

The “apply_macros” and “process_tags” allow the macros to be parsed.

To include the PHP code, you must also add the following to your templates:

<?php include ‘/full/path/to/vars.php’; ?>

This allows the diamonds symbol to work correctly with both IE and Mozilla by dynamically replacing which one it uses. In order to ensure this works with multiple directories, you must put the full path to the file.

Now you need to rebuild your site. In theory everything should work, it is for me :)
It seems fairly involved, but it’s just a lot of small steps. The biggest hurdle may be that if you don’t already use PHP then this will not work as expected. Changing to another extention if you already have an extablished blog could be difficult.

Hope this helps. You should be able to glean some help for other systems or modify it to you own. If you have any questions, send me an email or leave a comment so others can get something out of it too.

The Empire Strikes Back

Wednesday, January 21st, 2004

Since my downturn started when I when I switched to :party:, I decided to do my reload at Empire (I also figured if I’m going to be playing, I may as well give Iggy part of the rake). I know, I know, they’re the same tables. I was lamenting that they hadn’t offered me a reload bonus, but guess what? I’m now bonus whoring! I logged into my Empire account and, viola, I was offered a 25% bonus. Nice…I decided to deposit enough to max it out. I was playing one table at a time. First table was down $6 when my friend started asking me to try some Internet telphony stuff to see how well different ones worked. I dropped that table and was out for a bit. After we got rolling on that I jumped on another and within an orbit I got what I was looking for: a good hand! Of course, as the deal is going my dog starts doing the “I have to go out right now” dance. Add to that I’m still trying to figure out why I’m getting one way audio on the telephony stuff and that will explain part of this hand. I was dealt TcTd. Pre-flop was raised and everybody called. Flop was JdThKc. EP bets and I raise, am called and am then raised. Four see the turn that comes down Kh. EP bets and all call. Yes, I have totally missed my full house. I am just seeing two pair. DAMNIT! River is a lowly 6c and EP bets and I just call. I ended up winning (EP had trip kings), a net of +16.50 (or 16.5BB), so it was a good hand, but had I not had 10 other things going on I may have been able to eek a couple more bets out of it. I’ll definitely take it though.

I was starting to get tired and my martinis were starting to kick in, so I hung in until my turn for the blinds when I ducked out. For the first time in a week I had a positive night. A total of 6BB over 70 mins, so over all not a bad night, in fact, pretty damn good. It was basically on one hand, but I’m guessing that sometimes that’s just the way it goes. I know one session doesn’t mean jack, but I really, really needed a winning session just to prove to myself that I wasn’t losing it entirely.

I was dealt the Hammer on my last hand an paused to decide if I should play it, but decided I was going to ensure that I ended up for the night. I know it wouldn’t count toward the challenge, but every time I see it I think about playing it :)

Playing Scared

Tuesday, January 20th, 2004

Due to my recent downturn, my bankroll is pretty low. Because of this, I’ve found that I’ve been playing scared. Despite being on a losing streak, I “felt” better when I had more of a bankroll. I just felt more confident all around. I felt I would win if I went into a pot. Now? Every time I move to click a button that will place money in the pot I glance at the dollar amount by my name and pause for a second. Even if I know I should do it, I hesitate, and in some cases, fold.

Playing scared probably cost me a decent sized pot tonight. I get dealt AdJd in late position. Two of us see the flop which comes down JcAs8h. Other guy bets and I just call. Yep, I have the top two pair and I just call. Turn doesn’t help, but he bets anyway and I again just call. River? Qh. He, of course, bets and I call again. What’s he have? Can you see this coming? QcAh. I get rivered. According to the Cardplayer.com Odds Calculator I was a 93% favorite at the turn. Ug. Now, looking back, I should have raised post-flop and tried to drive him out and get what I could. But no, I was more worried about losing than I was sure that I would win. Earlier in the session I lost out on a big pot when a straight draw possibility fell on the river. I had flopped a set (there was one overcard) and there was enough money in it to have to call. Bad beats? Yes. Could I have stopped them? Maybe. The point was that I didn’t give anybody any reason to get out.

I’m going to deposit some more money so that I can get the bankroll up to a point where I’m not scared anymore. If things go right (I’m confident they will), I’ll cash that part back out like I did last time. None of this is mortgage, grocery, etc. money, so it’s not the end of the world. The difference between now and when I started (and had a small bankroll) was that at the time I didn’t expect much. I almost expected to lose, although I hoped I would win. Now I expect to win, so when I lose it sucks.

The good thing? I still love playing. I get excited when I talk about it. I spend a bunch of time reading all the great poker blogs. I jump over to 2+2. I even wade through the cesspool that is RGP. I can’t wait to make a run down to the B&M to try playing live. The poker gods are testing me though. They’re not giving me much reason to want to stick around. They will lose though and soon they will, to quote The Fat Guy, BOW BEFORE ME.