le blog

Jun 16

at Horner & Pratt

at Horner & Pratt

Jun 12

Migrated from iOS Notes to Simplenote

I have decided to migrate from iOS Notes to Simplenote. It is not a pleasant experience and very hacky but at least I get the job done.

  1. Use iOS Notes Export - this is a simple Java program that extract your notes (unencrypted backup from iTunes). Notes is essentially stored in a sqlite database. This program just helps to automate the process of exporting the database into csv format.
  2. Using Excel, I edited the csv file and removed title, z_pk,zcreationdate and zmodificationdate columns
  3. Before saving the edited csv format, ensure that the date is formatted following the syntax
  4. Delete the first line from the csv (title of the columns)
  5. Notes stored the content of the note in html format! This is just dumb considered it does not even have any formatting options.
    Content column must be surrounded with double brackets, so do a search and replace for ,<html> and replace it to ,"<html>. Also </html>[^"] (I used regular expression on SublimeText. Basically it checks if the last character is not a double bracket, then replace it to </html>"\n
  6. I made the mistake of forgotting to include comma on the last line which causes Simplenote to treat the content to be treated as tags. I ended up having over 200 tags..
    So to do this replace </html>"\n to </html>",\n (feel free to add tags)
  7. Next is to replace unnecessary tags or new lines. <br> to \n and \\n to \n
  8. Finally we can get rid of all the html tags by replacing </?[^>]+> to '' (empty string)
  9. Rename &nbsp; to (space if you wish), &gt; to > and &lt; to < (feel free to include other html escape characters)
  10. Rename double brackets "" to two single quotes ''
  11. Import using http://simplenote-import.appspot.com, choose CSV format and that’s it.
  12. Pro tip: do it in small batches (5-15 notes at a time) if the csv somehow messed up, you’ll save yourself from the pain of having to delete duplicates (I think I have deleted 500 notes in total while trying to import 90 notes)

I have signed up Simplenote three times in total (deleted my account twice before) and I think this time I am using Simplenote for good. The reason why I ended up switching back to Simplenote is the simplicity and the tag support. Dropbox-based text is good but I feel that having to specify file name is very restrictive.

May 30

iOS Gmail "Oops, something went wrong. Please sign in again." -

Temporary solution for iOS Gmail app recurring “Oops, something went wrong. Please sign in again.” issue. Delete or archive any email that contains calendar invitation. Google is fixing the issue at the moment

May 25

Execution in the Kingdom of Nouns

May 23

Typographic Design Patterns And Current Practices (2013 Edition)

May 21

Google to shutdown Checkout | Hacker News -

Another google service is shutting down. Google seems to enjoy shutting services down for some reason

Yes, Yahoo Is Going to Run More Ads on Tumblr, Says Marissa Mayer
Peter Kafka, allthingsd.com
Yahoo paid $1.1 bil­lion for Tum­blr. How’s it going to make its money back?A bunch of ways, Maris­sa Mayer explained on a con­fer­ence call today. But if you’re a Tum­blr user who was hop­ing that those ways didn’t involve putting more ads on…

I wonder what sort of ads will Yahoo! displays for all the porn blogs.. Viagra pills? Adult sex finder?

Yes, Yahoo Is Going to Run More Ads on Tumblr, Says Marissa Mayer
Peter Kafka, allthingsd.com

Yahoo paid $1.1 bil­lion for Tum­blr. How’s it going to make its money back?

A bunch of ways, Maris­sa Mayer explained on a con­fer­ence call today. But if you’re a Tum­blr user who was hop­ing that those ways didn’t involve putting more ads on…

I wonder what sort of ads will Yahoo! displays for all the porn blogs.. Viagra pills? Adult sex finder?

May 20

lol

lol

(Source: juicybugz)

May 17

The Hall Truth: A Primer for Fundraising on AngelList -

aaronhallsf:

“Don’t reinvent the wheel”, “work smart/not hard”, and “learn from others’ mistakes” are mantras we hear all the time. But, it’s rare that you find clear insight that truly helps your startup navigate the ins and outs of creating and growing a company. Most of the time, we hear founders sharing…

Apr 26

New iPhone Ad: Every Day -

esusatyo:

This is one of the best iPhone ads since Apple started the Siri ad series two years ago.