Archive for April, 2011

So Much Workspace!

Wednesday, April 27th, 2011

On occasion (like when I’m traveling), I’m forced to do some actual work on a 10″ screen netbook. This is how I feel when I then return to my regular workstation with two 26″ monitors:

Who let the dog out?

View as Source Greasemonkey Script

Saturday, April 23rd, 2011

Today I released the Greasemonkey script that I wrote while being sick on the snowboarding trip last week. It’s called “View as Source”, and it allows you to open any link in the page using the view-source URI scheme.

I developed it to resolve an annoying problem that I had every now and then with source code files linked on the Web. Although pretty much every source code file is plain text, and Firefox could display it as such, for certain MIME types it insists on opening the file in an external editor (or saving it). You know, like this:

Even if I just wanted to take a quick peek at a source file, and despite having a perfectly capable text file viewer in front of me, I had to launch another application.

I experimented a bit and found out that the view-source URI scheme can be an effective workaround for this. It’s utilized by Firefoxes “View → Page Source” option to produce a syntax-highlighted view of the HTML code of the currently open page. However, if used with a non-HTML file, it displays its contents as plain text — just what we need.

So, what the script does is it prepends the "view-source:" scheme prefix to links right before they are activated. It only does this on demand, as you certainly wouldn’t want to do this to every link on every page that you visit. You enable it with a keyboard shortcut (Shift + Alt + U), and then the script waits five seconds for you to click a link — anything you click within that time period is opened with view-source.

If you want to try it, the script is available at Userscripts.org. As usual, I’m looking forward to your feedback.

Back from Austria

Monday, April 18th, 2011

I spent the past week snowboarding on the Stubai glacier, in the beautiful Tirol region of the fine country of Austria. I have been there several times over the last couple of years, always having a lot of fun riding the slopes and enjoying the spectacular views. If you’re looking for quality skiing/snowboarding time in the Alps, try the Stubai glacier, you won’t be disappointed.

A photo from one of the previous trips

I have one private problem with these trips, however — I seem to have a bad tendency towards getting sick during the stay. I often have to take one or two (or three) days off riding and stay inside until I feel good enough to get on the board again. This time was one of those unfortunate ones, and out of the planned five days of snowboarding, I had to spend two getting back to health.

Surprisingly, staying inside the whole day works as a productivity booster for me. I think it’s my inner urge to still get something out of the seemingly ruined day. Alright, I’m here in the Alps and should be snowboarding like there’s no tomorrow, but if I can’t do that, so be it — at least I’ll do something useful.

So, over the two days of sickness last week, I accomplished quite a few things that sat in my backlog for some time — for example, I finally set up a JavaScript development environment on my netbook, and then used it to build a Greasemonkey script, based on an idea that I had a while back (I’ll probably release it in the next few days). I also had a chance to at last start reading the book that I got as a Christmas present — “Born to Run” by Christopher McDougall.

Sadly, these sickness-induced productivity bursts only happen on those snowboarding trips. When I’m sick at home I’m as unproductive as one would normally expect.

Plain text view
Plain text view
Plain text view
Plain text view
Plain text view

ImgAreaSelect 0.9.5

Saturday, April 9th, 2011

A new release of imgAreaSelect is out. It fixes a major issue with plugin initialization in Internet Explorer 9, which was reported to me by a few people. Thanks to all of you, especially to McArrow, who provided the fix.

  • Archives

  • Categories

  • Meta

  • Latest Tweets


    Warning: Illegal string offset 'last_access' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 334

    Warning: Illegal string offset 'time_limit' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 334

    Warning: Illegal string offset 'last_access' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 336

    Warning: Illegal string offset 'twitter_api' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 234

    Warning: Illegal string offset 'user_token' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 262

    Warning: Illegal string offset 'user_secret' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 263

    Warning: Illegal string offset 'consumer_key' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 264

    Warning: Illegal string offset 'consumer_secret' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 265

    Warning: Illegal string offset 'twitter_username' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 270

    Warning: Illegal string offset 'show_retweets' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 272

    Warning: Illegal string offset 'exclude_replies' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 275

    Warning: Illegal string offset 'twitter_data' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 282

    Warning: Illegal string offset 'twitter_data' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 350

    Warning: Illegal string offset 'twitter_data' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 351
    Twitter outputted an error:
    .
    Warning: Illegal string offset 'time_format' in /usr/local/www/odyniec.net/public/blog/wp-content/plugins/twitget/twitget.php on line 484
  • Follow odyniec on Twitter

</