Thursday, January 14, 2010

Dominion Kingdom Deck is available!

Dominion Kingdom Deck is now available on the app store.


For those who might be curious, that is a turn around of 3 days from Apple. Not bad!

There will shortly be out a minor update that will lower the minimum OS version required from 3.1.2 to 3.0. It will also add shake to shuffle to the Random Card List.

Fair Share v1.1 Update and Roadmap

As many users have noticed, Fair Share version 1.1 was released recently. Based on the number of updates so far, I'm pleased that so many people are still using Fair Share.


Version 1.1 added the following features:
  • Picker wheel for selecting the tip amount along with 3 configurable preset tip amounts.
  • Option to tip "after the tax."
  • Option to round the subtotal for groups instead of rounding each individual in the group.
I intend to have one more update to version 1.2 with a few more minor additions.

But after version 1.2, I'm planning on switching to iPhone OS 3.0 SDK. This means that anyone still using iPhone OS 2.2.1 will not get any updates after version 1.2 until they upgrade their firmware.

While I would like to maintain compatibility for OS 2.2.1, it's becoming increasingly difficult to develop and test on 2.2.1. There is also the uncertainty of how many users are still on 2.2.1 and thus if there's even any need to continue support.

If you have any concerns or comments, please leave a comment on this blog or send email to yarbars@gmail.com.

Thanks again to everyone who has purchased Fair Share!

Dominion Kingdom Deck Preview

My second iPhone app, Dominion Kingdom Deck, is a setup utility for the board/card game Dominion by Donald X. Vaccarino.


A preview is up on its product page. It is currently in review and hopefully will be available within a week.

DKD is meant primarily for fans of Dominion who own one or more of the expansions to Dominion.

There are two main problems players start to face as the as the number of setup cards starts to grow:
  1. Properly shuffling a stack of 75+ cards becomes more and more tedious.
  2. Having a "poor" distribution of card costs becomes more frequent.
For the first, a quick tap and DKD pulls up a list of 10 cards. Optionally sort this list by cost and/or expansion. Don't like a card? Swipe its row to replace it.

For the second, DKD offers an toggle-able option to guarantee that there is at least 1 card of cost 2, 3, 4 and 5 in the draw with the remaining 6 cards random as usual.

Other features of Dominion Kingdom Deck include:
  • All currently published cards included.
  • Fully configurable to select which expansions to use.
  • Custom card and card set editor.
  • Save interesting or favorite lists for quick reference.

Dominion Kingdom Deck will be donation-ware. It will be free to download and use with no restrictions. In a future update, an in-app store will be enabled to allow users who find the app useful to donate an amount of their choice to show their appreciation.

Wednesday, July 8, 2009

Future Fair Share features

A big thank you to everyone that's bought Fair Share and taken the time to leave reviews and ratings.

Here are a few things that I've decided to add to the next release of Fair Share:

  • Optional rounding for group totals instead of individuals in groups.
  • Optional Post-tax tip calculation.
  • Optional tip presets for level of service (think 1-3 star system).
  • Negative exceptions - When everyone except one person orders something, then mark this one person with a negative exception so as to say "he pays this much less than everyone else."
  • Optional key clicks.
On the future roadmap:
  • Contact list integration.
These enhancements will of course be free to anyone that's already purchased the app. I'm looking to get these new features done in about a month or so.

Thursday, June 25, 2009

Fair Share is available!

Fair Share is now available in the iTunes App Store. It isn't showing up in searches yet but you can get to the page directly via this link.

Fair Share allows you to quickly figure out your tip and split your bill when dining out.

While providing a simple interface to allow for fast calculation of simple tips, Fair Share also can help you easily divide the bill and account for the different items your party has ordered.

Fair Share provides two entry modes to suit your personal preference.

In Subtractive mode, exception items (such as drinks or desserts) can be assigned to members of your party and the remainder of the bill is automatically split evenly.

In Summation mode, you input and assign all of the items in your bill and the subtotal is calculated for you.

The summary screen reports each person's appropriate share including tax and tip. Group your diners, and a total for each group is also provided.

Standard rounding functions are also available to round each person's share for ease of payment at the table.

Please check out the demo on YouTube to see its features!

Monday, June 15, 2009

Fair Share

Fair Share is my first iPhone app. It is currently undergoing review by Apple.
Fair Share is yet another tip calculator. In fact, the working name was yaTipCalc. But Fair Share also does bill splitting which not very many of the tip calculators out there bother to do.

Hopefully it will be approved in the next few days. In the meantime, here's a demonstration of how Fair Share works.




I already have a number of improvements in mind including Address Book integration. If you have any comments, feel free to contact me at yarbars@gmail.com.

Friday, September 5, 2008

More applescripts for Delicious Library 2

Some more applescripts for Delicious Library 2. Applescripts go into ~/Library/Scripts/Applications/Delicious Library 2/.

You can download an archive of these scripts here

1) A short hotkey script to allow you to toggle the played/read checkbox. The settings are to put it into the Edit menu. You can reassign the hotkey/menu choice to your liking.


-- Menu Title: [3] "Toggle Experienced Flag"
-- Menu Keyboard Shortcut: command-`
-- Menu Path: [3]

-- Copy and paste everything into Script Editor (use spotlight to find it).
-- Then save to home/Library/Scripts/Applications/Delicious Library 2
-- You can edit the menu keyboard shortcut to be whatever you want.

tell first document of application "Delicious Library 2"
set selectedItems to selected media
set itemsRef to a reference to selectedItems
repeat with mediaItem in itemsRef
set playedStatus to experienced of mediaItem
set experienced of mediaItem to not playedStatus
end repeat
end tell



2) Translate retrieved Amazon title to a Series. More comments at the bottom.


-- Menu Title: [0], "Translate Amazon Name to Series"
-- Menu Keyboard Shortcut: command-option-1
-- Menu Path: [3], "Series Scripts"
-- Maintain a sqlite3 db to track Amazon returned titles and the series they are translated to. Then for future additions, guess the desired series based on previous entries.

-- Attempt to put the database in the scripts directory. do shell script seems to start in user's home.
set databasedir to "'Library/Scripts/Applications/Delicious Library 2/'"
set database to "seriestranslate.db"
set sqlcmd to "cd " & databasedir & "; sqlite3 " & database & " "

-- Create tables if they don't exist
do shell script sqlcmd & "'create table if not exists translate( dl2id text primary key, series text, amazonname text); create index if not exists amazonname_index on translate(amazonname desc);'"


tell first document of application "Delicious Library 2"
set selectedItems to selected media
set selectedItemsRef to a reference to selectedItems
repeat with mediaItem in selectedItemsRef
set itemId to id of mediaItem
set itemSeries to series of mediaItem
set itemAmazonName to name of mediaItem
if itemSeries is missing value or itemSeries is "" then
-- itemSeries doesn't exist so find a new one
set query to "select series from translate where amazonname < \"" & my sql_escape(itemAmazonName) & "\" order by amazonname desc limit 1;"
set seriesName to do shell script sqlcmd & quoted form of query
set query to "replace into translate (dl2id, series, amazonname) values (\"" & my sql_escape(itemId) & "\",\"" & my sql_escape(seriesName) & "\",\"" & my sql_escape(itemAmazonName) & "\");"
do shell script sqlcmd & quoted form of query
set series of mediaItem to seriesName
else
-- series name already exists so update existing record
-- we don't update name because it may have changed since we retrieved it from Amazon.
set query to "update translate set series = \"" & my sql_escape(itemSeries) & "\" where dl2id == \"" & my sql_escape(itemId) & "\";"
do shell script sqlcmd & quoted form of query
end if
end repeat
end tell

on sql_escape(sqltext)
set AppleScript's text item delimiters to "\""
set the item_list to every text item of sqltext
set AppleScript's text item delimiters to the "\"\""
set sqltext to the item_list as string
set AppleScript's text item delimiters to ""
return sqltext
end sql_escape




Amazon does not populate (usually) the Series field in the information it sends back and it's not really DL2's place to guess from the other information what is appropriate to put there. On the other hand, Amazon's titles for volumes in a series and its formatting does not always agree with my preferences. They've gotten somewhat more consistent recently, but there's no guarantee that whatever Amazon sends back is what I would want to use as my title.

Thus the scripts in my earlier post which let me reset the title based on the Series and NumberInSeries fields.

This script fills in the last part which is to automatically set the Series field based on the title that Amazon returns.

The algorithm is as follows:
1) Maintain a sorted list sorted on the title/name that Amazon returns. In the second column of the list, associate what series the user has decided goes with this title.

2) When you get a new item, search to see where in the list it goes and then get the series information from the entry before it and copy it for this entry.

Example: Your list starts off like:
Eyeshield 21, Volume 1 | Eyeshield 21
Naruto, Volume 1 | Naruto

You then introduce Naruto, Volume 2. This inserts after Naruto, Volume 1 and we copy its series value, "Naruto," which happens to be correct in this case.

The first assumption is that Amazon is reasonably consistent. Volumes in a series will at minimum all have the series name at the front. For example, everything Naruto is "Naruto, xxxxxx". This is true for the majority of the manga I collect.

The second assumption is that I collect manga from earlier volumes to later volumes. So I'm going to get volume 1 before I get volume 10. Given how this algorithm works, it's not that critical that this is strictly followed, but it would be a worst case scenario if for some reason, you collected a series backwards.

This algorithm has an advantage that you don't have to make any assumption as to the precise formatting of the Amazon title. As long as Amazon is reasonably consistent across the volumes, it will work.

The other advantage is that you can arbitrarily rename a series based on your preference. For example, Monster by Naoki Urasawa is officially "Naoki Urasawa's Monster" in the US for whatever licensing reasons. I say screw that, I want the series to be called "Monster" in my library. And this algorithm has no problem with that. Or if you would prefer "Neon Genesis Evangelion" to be filed as "Evangelion." Again, no problem.




So now that the why is done, here's how to use the script.

First off, the script will create a sqlite3 database file in your Delicious Library 2 scripts directory. If you want to put this elsewhere, you can modify the appropriate variables at the top.

When you have new items, select them and run the script. If the series have never been seen before, they will either leave the series values blank or fill in incorrect information due to how the algorithm just uses blind sorting.

Correct the entries that are incorrect, select them again and rerun the script.

At this point, any new items in the series should automatically set with your preferred series name (subject to the assumptions listed above).

If you're satisfied with the series values, you can then run the other two scripts to set the series number and then rename the title.