Dominion Kingdom Deck is available!
Dominion Kingdom Deck is now available on the app store.
Yet Another Random Blog About Random Stuff
Dominion Kingdom Deck is now available on the app store.
Posted by
jhsu
at
5:53 PM
0
comments
Labels: dkd
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.
Posted by
jhsu
at
11:25 AM
0
comments
Labels: fairshare
My second iPhone app, Dominion Kingdom Deck, is a setup utility for the board/card game Dominion by Donald X. Vaccarino.
Posted by
jhsu
at
11:02 AM
0
comments
Labels: dkd
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:
Posted by
jhsu
at
2:48 PM
0
comments
Labels: fairshare
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!
Posted by
jhsu
at
3:57 PM
6
comments
Labels: fairshare
Posted by
jhsu
at
10:00 PM
2
comments
Labels: fairshare
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
-- 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
Posted by
jhsu
at
12:20 PM
1 comments
Labels: dl2