Full Tilt Poker introduced “Rush Poker” overnight. It’s a funky concept. As soon as you fold, you get rushed to a new table with a different set of opponents. So you don’t get to develop a feel for your opponents.
I played Rush Poker a little today to make sure Poker Copilot works with it. It does, for post-game analysis. However the HUD is useless, seeing as the players change after every single hand.
At first I played ultra-tight on Rush Poker, waiting for a great hand. Then I noticed that everybody was playing ultra-tight. As the wisdom says, when the table is tight, play loose. I did that, raising whenever I had a pocket pair or a picture card, as long as nobody had already bet or raised. It seemed to be a winning strategy.
I’m curious to see what the optimal strategy for Rush Poker will be in a few weeks time when many people have had a chance to develop a strategy.
I haven’t got much work done these last couple of three days. I found somebody to write the Poker Copilot documentation. Conveniently, he lives only a 2.5 hour train ride away from where I live. Better still, he lives in Amsterdam. I’ll visit an interesting city on the flimsiest excuse. As far as excuses go, visiting a person working with me is far from flimsy. So to Amsterdam I went.
The trip to Amsterdam meant I spent little time in front of the computer. You don’t go to Amsterdam to sit in a hotel room using a computer all day! So please be patient if you’ve sent me an e-mail recently and I haven’t responded yet.
Mac OS X 10.6 (Snow Leopard) comes with Java 6. And only Java 6. Want Java 5? Not possible as far as Apple’s Java team is concerned, although there are backdoor methods.
This is mostly a good thing. Java 6 is better than Java 5. It runs faster. It starts up faster. Garbage collection is better. It has new APIs and new methods in existing APIs.
But it’s not all good. Java 6 does not exist for PPC Macs. Some of my Poker Copilot customers are still using Tiger and Leopard on PPC-based Macs. So Poker Copilot must run on Java 5 as well as Java 6.
This makes things somewhat complex. I use Snow Leopard as my main development operating system. I can ensure that I compile in a format usable by Java 5 by using the “-target 1.5” parameter when compiling. But I also have to make sure I don’t use Java 6 APIs or methods.
The solution I have found to this problem is this: to have an automatic build process running on a second-hand PPC Mac Mini running Mac OS X 10.4 (Tiger). When I make changes to Poker Copilot’s source code, I commit them into my Subversion source control repository. TeamCity, an automatic build system, detects the commit, gets the latest source, and tries to build Poker Copilot on Mac OS X 10.4 (Tiger) on a PPC machine. If it works there it will work for all my customers. If it doesn’t work TeamCity notifies of the problem and I can fix it immediately.
This problem must be faced by Objective-C programmers too, because Apple introduces new Cocoa APIs with each OS X upgrade.
Some Poker Copilot users have been having sporadic hangs or really slow refreshes. I suspect this is happening for users with loads of hands in their database. Like 1 million+. So I’ve been doing some profiling of Poker Copilot’s database queries.
I’ve stumbled upon a couple of full table scans taking place. To translate into English “full table scan” is database-speak for “dog slow”. A simple tweak or two fixed this, and reduced the time it takes to import a million hands by about 10%.
More aggressive caching has given a further 10% improvement. I knocked another 2-3% off the import time by removing some columns that were being populated but never used.
I’ve also created a new denormalised table for Position Summary and Stake Level Summary. To translate again, “denormalised table” is database-speak for “table that has unnecessary redundant information but goes at light-speed”. For big databases, this reduces the time taken for Position Summary and Stake Level Summary updates by two orders of magnitude. Two orders of magnitude? That’s right, what was taking 25 seconds now takes 0.25 seconds. I suspect this is mostly happening because the denormalised table is small enough to be entirely held in memory.
The downside of the new denormalised table is that it adds about 10% to the time taken to import a million hands. But I think it is a good trade-off. On my iMac, importing a million hands takes a little under two hours.
These changes have not been straight forward. I find a problem. I implement a trial solution. I run a full import of all my test data, which takes about two hours. I then measure the results, not just for the import but also for the various summaries and filters. Sometimes I find the trial solution has made things worse. So I have to undo the trial solution and go to plan B. Then I repeat the whole escapade.
This takes time. Mostly spent waiting. Which is why I’ve been spending time on the Mac Poker Software mini-site experiment. I hope that the database profiling pays off to give all users a smoother, faster experience.
Last night, while letting a million hands load, I played two tables simultaneously. The HUD continued to update within a couple of seconds after each hand for the full duration.
I hope to release a test version of this update for you to try out within a few days.
It’s so long since I’ve since used an Internet directory, I forgot that Yahoo! started as a directory, back in the infancy of the world wide web.
To my surprise, you have to pay to be listed in these directories. JoeAnt costs $39.99. Yahoo! charges $299 per year, an amount that made my eyes pop out of their sockets in surprise, shock, and disbelief.
But it’s part of the strategy so I gulped loudly and frequently, whipped out my credit card, and went ahead. Let’s see, if I can get six extra sales from this strategy then the directory listing fees are covered. Seven extra sales and I’m ahead.
A couple of weeks ago, I unexpectedly found myself in possession of a new domain name, http://macpokersoftware.com/. I think I put in a backorder for it about a year ago, then forgot all about it.
But what to do with this asset? In a friendly email conversation, Patrick McKenzie gave me a strategy for using the domain to attract focused web traffic: Optimise the heck out of the site with some content and links and let Google go do what Google does well.
The strategy goes something like this:
Put a WordPress blog on the site.
Put a discrete advertisement for Poker Copilot on the site.
Write some pages of relevant content.
Get the ball rolling with a couple of well-placed links.
Wait a couple of weeks for the Google juice to start flowing.
Gradually make the page promote Poker Copilot more aggressively.
Steps 1 through 3 are done. Step 4 will be done as soon as I click on the “Post New Blog Entry” button. 🙂
I hope to post an update here with the results of this experiment in a month or two.
C. is using the free 30-day trial of Poker Copilot and hit a problem with importing PokerStars tournament results. Instead of just describing the problem, he sent me a 1 minute 16 second QuickTime movie showing me exactly what he was doing.
With the movie, the solution was immediately clear. It’s a common problem. The Poker Copilot filters were set to exclude data he expected to see.
In a recent update I added the filter description bar:
I introduced this small addition with little fanfare. No-one commented on it. But I believe it has significantly reduced the number of support emails.
Sometimes while playing online poker, I find myself wanting to look closely at a hand that went unexpectedly. I can’t do it while playing so I need a way to remind myself to go back later and look at it.
The next update of Poker Copilot will solve this problem by introducing starred hands:
The star is a toggle. Click it once to star a hand, click it again to unstar a hand.
You can filter by starred hands:
Poker Copilot’s Head-up Display (HUD) has a new icon to let you star the previous hand played at the table:
This is a seemingly simple addition that turns out to be hard to implement well. There were several design issues and threading issues that I had to solve.
The rest are dependencies of the third party libraries.
This is, for most of us, modern programming. Few programmers create low-level driver code, compilers, or operating systems. Seldom do we have to write a charting component or implement a hashing algorithm. Our task is often wiring together many different high-level components and third party libraries. The challenge is to make the libraries co-operate, to make the interaction between components reliable and fast, and to make the user interface that controls the components responsive and intuitive.
I buy a lot of books on Amazon. Amazon has some odd books in the “Our Recommendations for You” section. The titles I buy are diverse, and as a result the recommendations can be surprising. Today’s surprise:
A travel guide for Sudan.
I can’t say travelling to Sudan is high on my list of things to do.