Codepolice

Random posts from Ola in English. Mainly about programming and the web.

View JSON directly in Firefox

If you request a URL than returns a application/json result Firefox will give you a “Download this file” dialog by default. If you rather want the JSON data to show up just as a xml, rss or html page would you could download this little extension called JsonView that will do this for you. Another nice little tool to keep in your tool-belt.

A good dark theme for Visual Studio 2010

I have had problems finding a good Dark Theme for VS2010. But it seems that i found a pretty nice one now.

You can download it from the Prabir.

Metalscroll makes the scrollbar in Visual Studio awesome!

Today i decided to look through tweets a favorited the last couple of month and one of the tweets I favorited was about a small add-on to Visual Studio called Metalscroll. Metalscroll basically make your scrollbar alot mor intersting. It’s kind of hard to describe but a picture says more then 1000 word so have a look at this. Click on it to get it in full size.

What you see to the right is Metalscroll. It’s kind of a thumbnail view of all the sourcecode in the file you currently have open. And that is maybe not that usefull since you can’t see anything. But there’s more. if you have any breakpoints in the file you see that as small red block in Metalscroll. Bookmarks turns up as small blue blocks. If you hold down the alt-key and double click a word you see all occurences of that word as small orange blocks in Metalscrool, just press ESC to remove the highlight for this word. Simply awesome!

You can also click with the middle mouse button in Metalscrol  to get a zoomed in view of the code on that location. Well .. it’s a really neat little add-on that makes Visual Studio even more awesome then it is out of the box. Hopefully it will work with Visual Studio 2010 also!

Add a Facebook application in sandbox mode to an application or page

I’ve been building some Facebook applications lately. Facebook pages and applications is kind of a confusing  system and you can’t get enough of handy tips to put in your toolbox.

The latest problem I had was that I wanted to add the application canvas as a tab on the application page itself. But as the application was in sandbox mode (and/or not published to the directory) I could not find the application so that I could “install” it on the page/app.

Then I found this little handy link. Just paste this into your browser when you are logged in to Facebook.

http://www.facebook.com/add.php?api_key=97f0a6f5dd2f3d74269c17621a5b9b93&pages

This will give you this screen

Just change the API key to yours and you should be able to add your sandbox application to any page. I guess that you also could change the querystring “pages” to “profiles” or something to be able to add an app to your profile.