From 1bdf5b9a193d8c3e0008296e03d973856da7d392 Mon Sep 17 00:00:00 2001 From: Steffen Schaumburg Date: Thu, 7 Apr 2011 03:26:30 +0200 Subject: [PATCH 1/4] add template for announcement --- packaging/announce-template.txt | 78 +++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 packaging/announce-template.txt diff --git a/packaging/announce-template.txt b/packaging/announce-template.txt new file mode 100644 index 00000000..ba8ff696 --- /dev/null +++ b/packaging/announce-template.txt @@ -0,0 +1,78 @@ +Replace all occurrences of XXX with the real values. +Remove or leave YYY(foobar)YYY sections as appropriate. + +Hello everyone, +The new fpdb release XXX is now available for download as source or as packages/installers for Debian, Gentoo, Ubuntu and Windows. +This version brings many improvements and bugfixes. A quick word on our version naming: We have decided to stop using the usual alpha/beta/rc release system as it doesn't suit fpdb's development style and resources. From now on all releases are created equal (ie. considered "testing"). If they proof themselves we declare them "stable" and make them the default download on sourceforge. If you wish to be notified of new releases or stabilisation please subscribe to the fpdb-announe mailing list (see Links further down). + +So... what is FPDB? +=================== +FPDB (Free Poker Database) is a free/open source suite of steadily growing tools to track and analyse your online poker game. FPDB is able to import the hand histories that poker sites write to your computer and to store additional data from each hand in a database for use in later analysis. + +FPDB is ambitious, intending to support all games. Currently we support flop based games (Hold’em, Omaha, Omaha Hi/Lo), stud games (7 Card Stud, 7 Card Stud Hi/Lo, and Razz) and draw games (Triple Draw Lowball, 5 Card Draw) on most major poker sites. + +FPDB provides a Heads Up Display (HUD), Profit Grapher and Stats viewers with a list of features that is growing. + +What's changed +============== +XXX changesets (incl. merges) have gone in since XXX. Some of the improvements are: + +XXX + +Where to get it +=============== +Please note that you will have to either recreate your database or use a new one if you're updating from XXX or older. Fpdb will warn you if your database is incompatible and will not work unless you recreate or use a different one. +Config files from 0.20 and later should work. Please report if you have problems with config files from that version or later. +You can find checksums (MD5 and SHA512) in the download folder. +To download: http://sourceforge.net/projects/fpdb/files/fpdb/XXX/ + +Links +===== +To be notified by email of new versions you can subscribe to our announce mailing list here: https://lists.sourceforge.net/lists/listinfo/fpdb-announce +Link to fpdb website (wiki) http://fpdb.wiki.sourceforge.net/ +Features page: http://sourceforge.net/apps/mediawiki/fpdb/index.php?title=Features +How to install&setup fpdb in 5 Minutes with the Windows installer: http://sf.net/projects/fpdb/files/fpdb/help/ Choose exe021install.avi (18mb, no sound) +Installation instructions are available from: http://sourceforge.net/apps/mediawiki/fpdb/index.php?title=Installation +Getting Started Instructions: http://sourceforge.net/apps/mediawiki/fpdb/index.php?title=Getting_Started +FAQ: http://sourceforge.net/apps/mediawiki/fpdb/index.php?title=FAQ +Screenshots: http://sourceforge.net/apps/mediawiki/fpdb/index.php?title=Screenshots + +How to help +=========== +Join us in IRC (see below) and say you want to do something :) + +How to get help +=============== +Please also see the "Bug reports" section below to enable us to help you. +These are listed in order of usefulness - the 2+2 thread in particular is rather chaotic so if we miss your post feel free to bring it up again +1) Chat/IRC +One of the developers is usually around, but it is IRC. Dont get discouraged because we didn't answer within 10 minutes, once we do you've probably got our full attention. +This link takes you to a website where you can talk to us directly: http://webchat.freenode.net/?channels=fpdb +Alternatively use can use any IRC client to connect to #fpdb on freenode.net +2) Mailing List +Visit http://lists.sourceforge.net/lists/listinfo/fpdb-main to subscribe to the development&support mailing list and send us an email +3) The monster 2+2 forum thread (registration required). +http://forumserver.twoplustwo.com/16...2009-a-273001/ Please dont let the size of the thread phase you. It is monitored and sends email notifications to some of the developers. (Note: If you play poker and don't frequent the 2+2 forums, you may want to become better acquainted. Its a bit daunting at first, but well worth the effort) + +Bug reports +=========== +When you do report issues, try to make it easier for us help you. We usually need at least the following information: +- Operating system and version (e.g. Ubuntu 10.10 or Windows XP) +- Database type (MySQL, SQLite, PostgreSQL) +- Install method (exe, tarball, deb, git, ebuild) +- Fpdb version +- Site name and gametype (e.g. $10 Pokerstars Razz SnG) +You can find most of these details for easy copy&paste in the Help menu under About. + +Important known problems +======================== +YYY(PKR is not working correctly)YYY + +Special information for Windows installations +============================================= +YYY(First-time installs may need to download and install the C++ runtime executable from Microsoft.)YYY +YYY(Windows 7 and windows Vista users will need to set fpdb.exe and hud_main.exe to run as administrator (see http://sourceforge.net/apps/mediawiki/fpdb/index.php?title=Install_in_Windows))YYY + +Contributors +============ +For the latest list of contributors please see YYY(replace with link to git-web of contributors.txt)YYY From 9db1460797b6283da0badd9981ed72b33ddcc3f2 Mon Sep 17 00:00:00 2001 From: Steffen Schaumburg Date: Thu, 7 Apr 2011 04:17:43 +0200 Subject: [PATCH 2/4] expand hand start print in PS to ensure it prints identifiable hand --- pyfpdb/PokerStarsToFpdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/PokerStarsToFpdb.py b/pyfpdb/PokerStarsToFpdb.py index 21d7f48e..cd03474b 100644 --- a/pyfpdb/PokerStarsToFpdb.py +++ b/pyfpdb/PokerStarsToFpdb.py @@ -182,7 +182,7 @@ class PokerStars(HandHistoryConverter): info = {} m = self.re_GameInfo.search(handText) if not m: - tmp = handText[0:100] + tmp = handText[0:150] log.error(_("Unable to recognise gametype from: '%s'") % tmp) log.error("determineGameType: " + _("Raising FpdbParseError")) raise FpdbParseError(_("Unable to recognise gametype from: '%s'") % tmp) From 91b597e2ea4d4b4db5c5e5c15c26e723524d948d Mon Sep 17 00:00:00 2001 From: Steffen Schaumburg Date: Thu, 7 Apr 2011 06:03:01 +0200 Subject: [PATCH 3/4] fix for IDs of sites and actions - thanks to Jon Cooper! --- pyfpdb/Database.py | 60 +++++++++++++++++++++++----------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index 41b970a4..f56e5c1f 100644 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -1533,37 +1533,37 @@ class Database: c = self.get_cursor() c.execute("INSERT INTO Settings (version) VALUES (%s);" % (DB_VERSION)) #Fill Sites - c.execute("INSERT INTO Sites (name,code) VALUES ('Full Tilt Poker', 'FT')") - c.execute("INSERT INTO Sites (name,code) VALUES ('PokerStars', 'PS')") - c.execute("INSERT INTO Sites (name,code) VALUES ('Everleaf', 'EV')") - c.execute("INSERT INTO Sites (name,code) VALUES ('Win2day', 'W2')") - c.execute("INSERT INTO Sites (name,code) VALUES ('OnGame', 'OG')") - c.execute("INSERT INTO Sites (name,code) VALUES ('UltimateBet', 'UB')") - c.execute("INSERT INTO Sites (name,code) VALUES ('Betfair', 'BF')") - c.execute("INSERT INTO Sites (name,code) VALUES ('Absolute', 'AB')") - c.execute("INSERT INTO Sites (name,code) VALUES ('PartyPoker', 'PP')") - c.execute("INSERT INTO Sites (name,code) VALUES ('PacificPoker', 'P8')") - c.execute("INSERT INTO Sites (name,code) VALUES ('Partouche', 'PA')") - c.execute("INSERT INTO Sites (name,code) VALUES ('Carbon', 'CA')") - c.execute("INSERT INTO Sites (name,code) VALUES ('PKR', 'PK')") - c.execute("INSERT INTO Sites (name,code) VALUES ('iPoker', 'IP')") - c.execute("INSERT INTO Sites (name,code) VALUES ('Winamax', 'WM')") - c.execute("INSERT INTO Sites (name,code) VALUES ('Everest', 'EP')") + c.execute("INSERT INTO Sites (id,name,code) VALUES ('1', 'Full Tilt Poker', 'FT')") + c.execute("INSERT INTO Sites (id,name,code) VALUES ('2', 'PokerStars', 'PS')") + c.execute("INSERT INTO Sites (id,name,code) VALUES ('3', 'Everleaf', 'EV')") + c.execute("INSERT INTO Sites (id,name,code) VALUES ('4', 'Win2day', 'W2')") + c.execute("INSERT INTO Sites (id,name,code) VALUES ('5', 'OnGame', 'OG')") + c.execute("INSERT INTO Sites (id,name,code) VALUES ('6', 'UltimateBet', 'UB')") + c.execute("INSERT INTO Sites (id,name,code) VALUES ('7', 'Betfair', 'BF')") + c.execute("INSERT INTO Sites (id,name,code) VALUES ('8', 'Absolute', 'AB')") + c.execute("INSERT INTO Sites (id,name,code) VALUES ('9', 'PartyPoker', 'PP')") + c.execute("INSERT INTO Sites (id,name,code) VALUES ('10', 'PacificPoker', 'P8')") + c.execute("INSERT INTO Sites (id,name,code) VALUES ('11', 'Partouche', 'PA')") + c.execute("INSERT INTO Sites (id,name,code) VALUES ('12', 'Carbon', 'CA')") + c.execute("INSERT INTO Sites (id,name,code) VALUES ('13', 'PKR', 'PK')") + c.execute("INSERT INTO Sites (id,name,code) VALUES ('14', 'iPoker', 'IP')") + c.execute("INSERT INTO Sites (id,name,code) VALUES ('15', 'Winamax', 'WM')") + c.execute("INSERT INTO Sites (id,name,code) VALUES ('16', 'Everest', 'EP')") #Fill Actions - c.execute("INSERT INTO Actions (name,code) VALUES ('ante', 'A')") - c.execute("INSERT INTO Actions (name,code) VALUES ('small blind', 'SB')") - c.execute("INSERT INTO Actions (name,code) VALUES ('secondsb', 'SSB')") - c.execute("INSERT INTO Actions (name,code) VALUES ('big blind', 'BB')") - c.execute("INSERT INTO Actions (name,code) VALUES ('both', 'SBBB')") - c.execute("INSERT INTO Actions (name,code) VALUES ('calls', 'C')") - c.execute("INSERT INTO Actions (name,code) VALUES ('raises', 'R')") - c.execute("INSERT INTO Actions (name,code) VALUES ('bets', 'B')") - c.execute("INSERT INTO Actions (name,code) VALUES ('stands pat', 'S')") - c.execute("INSERT INTO Actions (name,code) VALUES ('folds', 'F')") - c.execute("INSERT INTO Actions (name,code) VALUES ('checks', 'K')") - c.execute("INSERT INTO Actions (name,code) VALUES ('discards', 'D')") - c.execute("INSERT INTO Actions (name,code) VALUES ('bringin', 'I')") - c.execute("INSERT INTO Actions (name,code) VALUES ('completes', 'P')") + c.execute("INSERT INTO Actions (id,name,code) VALUES ('1', 'ante', 'A')") + c.execute("INSERT INTO Actions (id,name,code) VALUES ('2', 'small blind', 'SB')") + c.execute("INSERT INTO Actions (id,name,code) VALUES ('3', 'secondsb', 'SSB')") + c.execute("INSERT INTO Actions (id,name,code) VALUES ('4', 'big blind', 'BB')") + c.execute("INSERT INTO Actions (id,name,code) VALUES ('5', 'both', 'SBBB')") + c.execute("INSERT INTO Actions (id,name,code) VALUES ('6', 'calls', 'C')") + c.execute("INSERT INTO Actions (id,name,code) VALUES ('7', 'raises', 'R')") + c.execute("INSERT INTO Actions (id,name,code) VALUES ('8', 'bets', 'B')") + c.execute("INSERT INTO Actions (id,name,code) VALUES ('9', 'stands pat', 'S')") + c.execute("INSERT INTO Actions (id,name,code) VALUES ('10', 'folds', 'F')") + c.execute("INSERT INTO Actions (id,name,code) VALUES ('11', 'checks', 'K')") + c.execute("INSERT INTO Actions (id,name,code) VALUES ('12', 'discards', 'D')") + c.execute("INSERT INTO Actions (id,name,code) VALUES ('13', 'bringin', 'I')") + c.execute("INSERT INTO Actions (id,name,code) VALUES ('14', 'completes', 'P')") #end def fillDefaultData From 5e1c8364cfc99a3ce87217e2f9a1a3fc08c77988 Mon Sep 17 00:00:00 2001 From: Steffen Schaumburg Date: Thu, 7 Apr 2011 07:57:40 +0200 Subject: [PATCH 4/4] move total in THP to the end --- pyfpdb/TestHandsPlayers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyfpdb/TestHandsPlayers.py b/pyfpdb/TestHandsPlayers.py index 835cb70a..b2699108 100755 --- a/pyfpdb/TestHandsPlayers.py +++ b/pyfpdb/TestHandsPlayers.py @@ -380,9 +380,6 @@ def main(argv=None): for i, site in enumerate(ErrorsList): totalerrors += ErrorsList[i].errorcount - print "---------------------" - print "Total Errors: %d" % totalerrors - print "---------------------" for i, site in enumerate(ErrorsList): ErrorsList[i].print_histogram() @@ -407,6 +404,9 @@ def main(argv=None): for num, stat in sortedstats: print "(%3d) : %s" %(num, stat) + print "---------------------" + print "Total Errors: %d" % totalerrors + print "---------------------" if __name__ == '__main__': sys.exit(main())