Trunk Notes 2.4.2

Trunk Notes 2.4.2 has just been submitted to Apple for approval. Assuming they find no issues I would expect it to be available for purchase/upgrade in the next 7-14 days.

The changes in this release include:

  • Use TextExpander snippets in the page bar
  • On upgrade view list of new features and bug fixes
  • Create a header and footer to be included on all pages using Special:Header and Special:Footer pages
  • Display snippets as plain text, not as Markdown
  • Add !! at the start of a snippet and all functions will be evaluated before the text is substituted
  • Hide Special: and Docs: wiki entries from list of all pages
  • Markdown syntax helper actions when selecting text
  • Don’t include Special:DropboxSync in backlinks
  • Minor improvements to wi-fi sharing interface
  • Markdown improvements, including easy ~~strikethrough~~ support
  • You can now select text and apply bold, italic, strikethrough and link from the select text menu
  • Search results are now shown sorted by most recently edited page
  • Fixed: Issues when Dropbox syncing to a subfolder
  • Fixed: Inserting images on iPad
  • Fixed: Changing tags now causes last updated time to update
  • Fixed: Issues with some links containing /WikiWords
  • Fixed: Tag Cloud issues when tag names contain international characters

 

Sunday password fun with Trunk Notes…

I’m not an advocate of using just one uber-app. I use many different apps in addition to Trunk Notes to manage information. This is just an experiment to see whether Trunk Notes could function as my password manager – and to get you to think about new and exciting things you could use Trunk for.

WARNING! WARNING! WARNING! This is a fairly technical blog entry. If you are familiar with Mac OS X command line and understand things such as CSV, UTF8, line endings then carry on reading…

I have had problems finding a password manager for iOS that meets my exacting requirements. Ideally it should have a Mac OS X client. It should allow me to enter a numeric password that is longer than 4 digits. It should also remember that I want to enter such a password and show me an appropriate numeric keypad by default. When I exit the app, and after a suitable length of time, it should forget the password and prompt me again when I launch the app – it should NOT show me the page I was looking at for a second or two and then display the password entry screen. Finally I want to get in and out of the password manager as quickly as possible. Pointless animations will only serve to annoy me.

I will be migrating my passwords for my current password manager which does have an iOS app and a Mac OS X client. Luckily it exports everything to a CSV file with just a few clicks. Make sure that the CSV file is encoded as UTF8 and has normal UNIX type line endings (my password manager didn’t quite comply and I had to use an editor to force the CSV file into a ‘modern’ format.)

A line in the CSV file exported by my password manager looks something like this:

Web Logins,amazon.co.uk,myusername,mypassword,,”Jan 27, 2009",,Personal

For this experiment I am going to keep things simple and only bother with the first four fields:

  • Category (in the above case this is Web Logins)
  • Site (amazon.co.uk)
  • Username
  • Password

All other fields are going to be ignored.

What I want is a series of text files suitable for importing into Trunk Notes.

The wiki entries will have names like Password:WebLogins, Password:Computers, Password:NonComputers

Each page will have a table of contents (to allow me to quickly access the password I want) and then the password details in a form that I can quickly use copy/paste.

Once I have the wiki entries in Trunk Notes I can then encrypt them.

Step 1

Export the CSV file from your existing password manager.

Step 2

Write a script to create the wiki entries. I nearly always choose Python for this kind of task. I’m not writing good reusable code here – just something quick and dirty to get the job done.

Always when downloading and running scripts – read them carefully first! This particular script isn’t well written and does nothing to cope with error conditions.

(Download the script)

Save the script as something like generate_pages.py, make it executable (chmod +x) and then run it – the only argument required is the path to the CSV file. You can see here that the script generates a bunch of files, which I can then zip up ready for uploading to Trunk Notes:

mattsmac:TrunkPasswords matt$ ./generate_pages.py passwords.csv
mattsmac:TrunkPasswords matt$ zip passwords.zip BankAccts
CreditCards Identification Memberships Password_Index
SerialNumbers Unfiled WebLogins
mattsmac:TrunkPasswords matt$ ls
BankAccts       Password_Index      generate_pages.py
CreditCards     SerialNumbers       passwords.csv
Identification  Unfiled             passwords.zip
Memberships     WebLogins

Step 3

Upload the zip file to Trunk Notes. Before doing this make sure you don’t have any page name conflicts – otherwise you might overwrite important information in your wiki!

Step 4

Once the passwords have been safely uploaded into Trunk Notes you should go and encrypt each page. The encryption will need to be carried out on your iPhone/iPad/iPod Touch.

Step 5

Delete all the files (well maybe except the Python script) you created on your computer. Otherwise you are leaving lots of plain text versions of your important passwords, ready for someone to steal!

Step 6

Finished!

If you go to the page Password:Index you should see each of the categories listed. Tap a category and you will see an index. Tap an item in the index to see the details. The password will be blacked out – to stop passers by looking over your shoulder. To copy the password into the pasteboard simply hold your finger down on the text and choose copy.

photo photo-1

Conclusion

This is really just a bit of fun, inspired by my futile search for password management perfection. To be honest some of the solutions are nearly there, just maybe lacking a good Mac OS X client, or has a pointless and time wasting startup animation. The Trunk Notes version doesn’t do password generation and adding new entries isn’t as nice as with a dedicated app.

If you have a favourite password manager or decide to try my experiment and use Trunk Notes – let me know in the comments!

 

Five reasons why you should use Trunk Notes

Here are just five reasons why you should use Trunk Notes…

Link notes together. Most iOS note apps give you a list of notes, and maybe some folders to help organise your information. Trunk Notes gives you the power of creating hyperlinks. Write a plan for a dinner party and link to the recipes you are going to prepare. Start planning a story and link to the main characters. Linking provides you with real flexibility to create a personal information system.

Markdown makes it easy to add formatting. Many note apps allow you to change the font of all the text in a note, and maybe the background. Trunk Notes gives you the power to create headings, make text bold/italic, create numbered and bulleted lists and more. Markdown is easy to learn. Trunk Notes makes it even easier. Turn text into a heading by tapping the heading button on the toolbar. In the next version of Trunk Notes you can make text bold by selecting it and then tapping bold. Simple!

Plain text gives you control over your data. Trunk Notes can export your wiki into a bunch of text files. It can also sync text files to Dropbox. Edit the files with your favourite text editor. Even the metadata (geotags, last updated time, …) is human readable.

Built in web server so you can edit your wiki in Windows/Mac OS X/Linux/… All you need is a web browser and for your iPhone/iPad to be reachable over a wi-fi network. Pop Trunk Notes into Wi-Fi Sharing mode and you can use your favourite web browser to create and edit notes.

Dynamic content. For the power user Trunk Notes contains a powerful wiki engine. Create pages which pull in data automatically from the rest of the wiki – list the most recently edited pages, list all your todo items, add checkboxes and identify GTD actions.

These are just five reasons why you should use Trunk Notes. Read about some of the other great features (encryption, Dropbox syncing, custom stylesheets, images, sound recording, easy search, tagging, email formatted notes, …) on the Trunk Notes website.

Buy Trunk Notes on the App Store for just $3.99.

Creating your own mini calculator apps using Go Calc

Go Calc makes it easy to create your own mini calculator apps right on your iPhone or iPod Touch. I am going to describe how to create a calculator to track your mortgage and quickly see what happens when interest rates rise or fall. Hopefully this tutorial will inspire you to create your own mini calculator apps using Go Calc.

Here is a newly installed Go Calc:

iOS SimulatorScreenSnapz006

I am going to start by creating a new calculator. Just tap the + button at the top of the screen.

iOS SimulatorScreenSnapz007

I have given the calculation a name and typed in some notes. Once this is done I can tap Save.

Go Calc works a little bit like a spreadsheet. All calculators need some variables which will be used to compute one or more results. For a simple mortgage calculator we need three variables:

  • Interest Rate
  • Years (that is how many years I have left to pay off the remainder of my mortgage)
  • Amount (how much money is left to pay back to the bank)

In my calculator I want to know what my monthly payment is going to be. So Payment will be my result.

Let’s start by adding the variables. Add the first variable by tapping the Add Variable button.

iOS SimulatorScreenSnapz008

I can now tell Go Calc all about my first variable Interest Rate.

iOS SimulatorScreenSnapz009

You can see in the screenshot that I have given quite a few details about my variable:

  • Variable name – notice that you can include spaces, however Go Calc ignores spaces and case when working out results so “Interest Rate” and “interestrate” are treated as the same value
  • Min – the lowest the interest rate can be is 0% (unfortunately!)
  • Max – heres hoping interest rates don’t go above 20%
  • Prefix – I don’t want a prefix for interest rate. Prefix is text that will appear before the value
  • Suffix – this appears after the interest rate number
  • Decimal places to show – interest rates are usually shown to two decimal places
  • Slider – I want to be able to quickly play with the interest rate to see what will happen to my monthly payments so I have turned the slider on
  • Step – when I play with the slider I want the interest rate to go up or down in increments of 0.1

Now my first variable is set up I can save it – just tap Save at the top of the screen.

The other two variables are Years and Amount. Here is what they look like when defining them in Go Calc:

iOS SimulatorScreenSnapz010 iOS SimulatorScreenSnapz011

Once the variables have been defined I can go ahead and create the result.

Tap Add Result and you will be taken to the New Result page.

Just like a variable a result needs a name. This is because results can be used in other results formulas. However in this case the result name is just for our benefit.

iOS SimulatorScreenSnapz012

For this result I am defining both a prefix and a suffix. This will make the result really easy to understand on the page. For example it might show £200/month indicating that I need to pay £200 per month.

Since we are dealing with money I am going to show the result to two decimal places.

If you are building a complex calculator with lots of intermediate results you might choose to hide a result that the user doesn’t really need to see. In this case though I don’t want to hide my result.

Once these details have been entered I can start editing the formula.

One great thing about Go Calc is that if you have used Microsoft Excel before (or Numbers, OpenOffice Calc, …) then you will be able to write formulas. Tap Edit Formula to begin.

The formula builder in Go Calc gives you quick access to all of your variables and any other results you might have defined. To include a variable in your formula tap Variables, select the one you want to insert and then tap the + button. It will appear in the text field showing the formula. You might want to play with this a little to get the hang of it. Notice that you can easily move the cursor using the buttons on the toolbar. This really helps as positioning the cursor precisely can be a little tricky with your finger.

You could write some really long, complicated formula to work out the payment from first principles. Go Calc however has many built in functions to help with many common tasks. Most of the functions work in exactly the same way as they do in Excel.

The functions are split into four categories:

  • Finance
  • Logical
  • Math
  • Statistical

You can get help on any function by selecting it and tapping the ? button. If it still looks obscure then search the Internet for how Excel’s version works – it will probably work the same in Go Calc!

iOS SimulatorScreenSnapz014 iOS SimulatorScreenSnapz013

I am now going to enter the formula using the formula builder and the keyboard.

The formula I need is: abs(pmt(Interest Rate/100/12,Years*12,Amount))

Here is what it looks like in the Go Calc formula builder:

iOS SimulatorScreenSnapz015

I am now ready to use my calculator. Save the result by tapping Save and then come out of edit mode by tapping Done.

To set the values of the variables you can use the sliders or double tap the variable and use the built in calculator keypad.

iOS SimulatorScreenSnapz016 iOS SimulatorScreenSnapz017

I can now at a glance see how much my mortgage will be per month.

The real power comes with exploring what-if scenarios. In the UK interest rates are fairly low at the moment, but expected to rise. Using Go Calc I can very quickly see what will happen to my monthly mortgage repayments just by dragging the slider under Interest Rate. As I drag the slider under Interest Rate the Payment result will automatically update. This is the same for any of the other variables. If I suddenly come into some money and want to pay off some of my mortgage I can see what will happen just with a slide or double tap of my finger.

Of course there are lots of mortgage calculator apps available on the App Store. Go Calc however lets you create your own calculator apps for problems which might be specific to you or the area you work in.

If you create any good calculators you can export them and share them with your friends or work colleagues. Your calculators can be organised into folders for easy access.

Have fun creating your own mini calculator apps using Go Calc. Let me know how you get on!

(Just in case you haven’t yet bought Go Calc you should now pop on over to the App Store…)