Category Archives: Article

Facebook Like Error

The like button seems to be having some issues at the moment. If you create a new post and like it, the button will sometimes revert back to being unliked when clicked. I took a peek into the inner workings of the button, and there is in fact an error being returned by Facebook, even though it is not displayed by the button.

The important lines from the returned JSON object returned by Facebook says that there is an internal error, which means that there is nothing to be done about the problem from the client side.

“There was an internal error when updating the Page.”

So hold tight and wait for the Facebook team to resolve the issue. I have replied to a thread in the Facebook developers forum and there are lots of other people also having this problem.

Follow the wpfblike(rss) tag or the main feed for updates regarding this issue.

Simplenote vs Evernote

I have been an Evernote user for the last couple of years, and for a long time it has been the only viable option for note syncing between the Mac, iPhone and the web (and recently the iPad). Supporting multiple notebooks and a hierarchical tagging structure, as well as RTF note editing capabilities and GPS location has made it into a very appealing catch-all application.

What brought Evernote over the top however, is the automatic OCR scanning of uploaded images. This basically means that you can find an image by searching for text contained within. I used this feature on a daily basis when snapping pictures of whiteboards during meetings with the iPhone application. Instant meeting notes people!

The problem with Evernote

There is just one problem — Speed. Evernote for iPhone is just a tiny bit too slow for using all the time. You know that one small thing you really should have written down, but you could just not be bothered to open the Evernote app since that would just take a few seconds too long. Instead of using Evernote for exactly what it is designed for, I sometimes pop open Apple’s note app and jot it down there instead (and later of course forgetting all about it).

Okay, I lied, there are some other minor problems besides the speed issues. When writing longer notes, or articles such as this very one, it feels tremendously important to have editing history. Maybe I am just spoiled by using Subversion and Mercurial all the time, but I feel having the possibility to revert back to previous versions of the text makes experimenting fun, and making it easy to try new things. Evernote has no editing history that I am aware of, except for the standard undo/redo available everywhere.

Just for the fun of it, another annoyance with Evernote is the lack of auto-save on the iPhone and iPad. If I am writing something and want to save, I will exit editing mode when saving the article and have to reopen it to continue writing. Why is there no auto-save in the edit window, or at least a save button that keeps the writing window open?

Simplenote enters the ring

I have lately become aware of a semi-new contender in the note-syncing market called Simplenote. In one corner we have Evernote with a million bells and whistles, while we on the other hand have Simplenote with its simplicity and focus on content. The only real feature of Simplenote, except for the obvious feature of writing plain text, is its support for tags.

Okay, I lied again. Simplenote has limited support for revisions, which means that you can go back 10 “increments” (30 in the paid version) of changes. I am not sure about the voodoo in the calculation of these save increments, but at least you have limited support for going back in time to restore an alternate version of your file.

On the happy side of things, Simplenote has very fast and simple (haha) iPhone and iPad applications, which automatically sync to the cloud as well. They have support for tags and the search function is quick and accurate as well. Another nice-to-have-but-not-entirely-necessary feature is the fullscreen edit mode, which cuts out all distractions and lets you focus soley on the words themselves. Think of it as WriteRoom for iOS, but with a white background.

What I say

I have just started trying out Simplenote, so I have no idea about the long-term affects and issues that may crop up. I am somewhat worried about the tag management, since it does not seem to be any way of renaming a tag without having to manually rename the tag in all individual notes. There is no support for tag hierarchies, which may or may not be an advantage — I am not sure yet. The tag drop-down in the website seems limited as well. I would like a list of all tags, almost like folders, where I can dive down to the notes themselves.

In addition, I would like the ability to search for notes within a certain date period in addition to the normal tag and keyword search, or perhaps even a date calendar where I can select the date range and visually see the number of notes written on certain dates.

Another issue I have with Simplenote is the lack on an official application for Mac OS. There are lots of third-party apps, but no one works the way I want. Until such application comes out, the next best thing is to use the website directly, which works remarkably well and is very fast to be honest!

I will keep on using Simplenote for a while, and if it continues to work as fast and easy like now (and if there is a Mac app coming), it is a winner in my book.

What other people say

Shawn Blanc says that All You Need is Simplenote, and John Gruber writes a post regarding Evernote and Simplenote. For an insight into what other people put into their Simplenote, have a look at Minimal Mac’s article What’s in your Simplenote?.

About the Firesheep hack on Facebook

There have been a lot of talk recently about website security since the Firesheep plugin for Firefox was released earlier this month. I think it is excellent that people and mainstream media are becoming aware of these problems, but let’s face it, they have been around forever in the web world.

So what is happening here? I believe that Firesheep receives lots of attention because of the way it makes accessing other people’s cookies extremely user-friendly. Instead of relying on tcpdump, Wireshark or any other type of network sniffing tool, you get this complete package with a sniffer, a filter to find the cookies, and a way to set the sniffed cookie in the browser directly without having to lift a finger. All you need to do is activate the plugin and wait for people to access Facebook over a network.

A cookie is basically a small file containing parameters and values which websites can set to track you when you are accessing their website. This is how Facebook for example knows that you have logged in when you are browsing around on the site. If you disable cookies, you will be requested to log in wherever you try to access a private part of the site. To get a user’s cookie, or any type of information, you can sniff their traffic on the network. You will be able to see everything that is sent and received by that computer. This is how you can easily steal someone’s cookie information.

There are however ways to protect yourself against these types of attacks. The first and most important way is to make sure that you are browsing using https instead of https. What that “s” is telling your browser is to set up an SSL/TLS connection to the server before sending any information. Since SSL is used to encrypt data, everything that is sent or received from that particular server will be secured and it will not be possible to sniff that data and get the cookies.

That is a slight modification of the truth however, since there are ways to get the data anyway. But if you make sure that you do not accept any certificates signed by an unknown authority (your browser will warn you), you will be fairly safe in this regard. Since many sites, such as Facebook, uses SSL only for the login phase, you cannot sniff the password, but only steal already set-up cookies. This basically means that you can do anything to that account except changing the password.

Since lots of websites do not provide a secure alternative, what can be done to make it reasonably secure? The easiest way is to set up a VPN connection to a server somewhere, which will at least prevent people from sniffing your data on wifi hotspots. How to do that is however out of scope for this article.

 

A new approach to calendars

I have been thinking about ways to make my current GTD setup more efficient. One thing that makes it hard to keep on track and focus are interruptions and the way one has no control over them.

At work, we use the standard calendar features which let us invite each other to meetings, automatically marking that up in the calendar as busy time slot. While that is a convenient feature, it basically lets other people be in charge of your own calendar and your own time.

So what can be done about this? Since I use the GTD methodology, it would be very convenient solving the problem with the tools already at hand. I decided on a set of rules to makes this problem (at least to some extent) go away.

During my weekly review, which is usually done on Monday mornings, I activate projects and actions which will require my attention for the coming week or so. Part of the process is to do a rough time estimate for most actions, and some actions requiring at least one hour of consecutive time are then inserted into the calendar when I want to work with those particular actions. Smaller actions which are similar (preferably the same project or tool) may be grouped together in the calendar to form a longer session. This makes it much easier to focus on the tasks at hand, and it makes your colleagues aware of your sessions.

As a pleasant side-effect of doing this, you will appear busy in the calendar where you have planned these working sessions, meaning that people will be more hesitant inviting you to attend meetings during that time. I usually make a note in the calendar on which project I will be working on, which makes the project manager for that particular project more keen on not interrupting your flow.

This post is inspired by The Chokehold of Calendars, where you can read more about this method, and then maybe implement it yourself.

WP Facebook Like 1.4.0 released!

I am pleased to announce the release of a new version of the WP Facebook Like plugin for WordPress! The plugin lets bloggers easily create a Facebook Like button for their posts. Changes from the previous version include:

  • Added options for choosing to insert the button in pages and/or posts.
  • Added a check to verify that the correct PHP version is used when activating. (PHP>=5 supported).
  • Added settings link from the plugin list. (thanks udi86!)
  • Added an automatic language detector, which is now the default. (thanks udi86!)
  • Added Open Graph admins property, which will create a Facebook page for your current article.

I will go into the details of the update below, but if you are in a hurry, just download the new version, or wait for WordPress to automatically detect the new version and offer to upgrade automatically.

Options for inserting the button on posts and/or pages

There are a couple of new settings for enabling the automatic insertion of the button in pages and posts. Earlier, it was only possible to choose whether the button should appear on the front page or not. Now you can, in addition, control whether to show the button on normal posts and pages.

The new options are the first step for adding support for having the button in individual posts and pages.

Added new Open Graph headers

The new version will also insert new Open Graph headers, which are og:type and fb:admin. This lets you enter your Facebook user ID in the options, which will make you the admin of the current page. When you write a new post, just click the like button (you can unclick it right away). This will give you a page on Facebook where you can see who has liked your page and it lets you send them messages.

To get to this admin page, just select the admin link next to the like button.

Note that if you use the button_count layout, you will not see the admin link. Just go to Pages You Admin on Facebook to see all pages.

What are you waiting for? Download it now!

How to remove files with special characters in Linux

I recently found myself having to remove a file with special characters. Using rm only gave me “rm: unrecognized option”, which forced me to take off the gloves.

To remove a file with dashes, slashes or other special characters, the easiest way is to access the file using its inode. To get the inode of a file, just do a ls -li. When you have that number, use find to delete the file using the following command:

find . -inum [inode] -exec rm -i {} \;

Good hunting!

Say hello to the iPad

I was considering buying an iPad, but I have to say that I was very sceptical about what it can do and whether I would have any use for it. After some deep pondering and a bit of gambling however, I decided to get one anyway.

The 32Gb 3G model seemed to be the best option, with plenty of space for anything from video podcasts to iPad applications. For protection, I also bought the Apple iPad sleeve which also doubles as a stand.

Since I am running iOS 4 on my iPhone, there was no way of restoring my apps and other information to the iPad. This means that I had to start from scratch, which is necessarily not a bad thing, and meant I was off to a fresh start.

After syncing with iTunes, I fired up Safari and was delighted to see my bookmark toolbar appear exactly as it does on the Mac! I will not bore you with writing about the pure awesomeness of browsing the web with the iPad, there are lots of other places for that. Instead, I let me share the first problem I found; there is no Swedish keyboard! Granted, it has not been released in Sweden, but it is still just a software keyboard. I was also wondering who at Apple thought it was a good idea releasing the iPad without iOS 4 and multitasking.

I was delighted to see lots of beautiful and truly usable apps already available for the iPad, such as Reeder, which is an excellent RSS reader which synchronizes to Google Reader. I get all my RSS fixes using this app since I bought it — it just provides an excellent reading experience.

Another remarkable and excellent application is Air Video, which simply lets you stream on-the-fly transcoded videos directly to your iPad (and iPhone). This might not sound like anything special, but the experience is perfect, and everything just works right out of the box. You can stream anything including high-definition Matroska files, and the video quality is flawless.

This was a first of a numer of posts regarding the iPad and my experiences with it. As I use it for just about anything right now, there are lots of apps and experiences to stumble upon and share. And just remember to get a good microfiber cloth for cleaning the screen from time to time.

Oh, this post was entirely written on the iPad using the WordPress app.