Stream Planet Rock radio in MusicBee on your PC

Pure Evoke-1XT Marshall edition
Pure Evoke-1XT Marshall edition

I wake up most mornings to Planet Rock radio on my beloved Pure Evoke-1XT Marshall DAB radio. But that’s in my bedroom, I don’t currently have a DAB radio in my study and Screamer Radio no longer works for Planet Rock.

Which got me thinking: could I somehow convince my digital music player of choice, MusicBee, to stream Planet Rock? It seems to handle pretty much everything else I throw at it.

The answer is yes; this is how in three easy steps.

1. Find the Stream URL

The first thing to find out was obviously the URL to stream Planet Rock. Thankfully that is displayed very prominently on their listening online page. This is what they currently are (although I guess, they may be subject to change):

  • http://www.planetrock.com/planetrock.m3u
  • http://tx.sharp-stream.com/icecast.php?i=planetrock.mp3

Both work, depending on the player you use, e.g. iTunes, Windows Media Player, MusicBee, etc; I use the first one.

2. Play the stream in MusicBee

Next, we need to tell MusicBee to use that stream.

Screenshot of MusicBee menu
File > Open Stream

That’s as simple as opening the menu and selecting:

  1. File > Open Stream.
  2. Then paste in the URL and click OK.
Screenshot of dialog to enter URL
Paste the URL then click OK

This may take a few seconds while MusicBee connects to the streaming audio feed and then BINGO! you’ll suddenly be listening to Planet Rock on your PC.

Don’t go setting your watch, though, to the streamed version. It can have a few seconds delay between broadcast and it emerging from your PC’s speakers. (My PC stream is currently 1 minute 25 seconds behind my DAB radio broadcast.) This is due to the software buffering enough data to ensure continuous playback, so that if some data goes missing and has to be re-requested from the server or if there is a local data bottleneck the audio doesn’t suddenly drop out.

What’s nice is if you use the first URL (the one ending /planetrock.m3u) then MusicBee will also display the name of the track currently playing:

Screenshot showing the name of the track currently playing: Iron Maiden—Wrathchild
Now playing…

3. Save the stream as a playlist

The final thing we need to do is tell MusicBee to remember this station. It would be a bit of a hassle to have to find, copy and paste that URL every time you want to listen to the radio.

Again, that’s simple.

  1. Right-click the name of the track
  2. From the context-menu select: Send To… > Playlist > <New Playlist>.
  3. A new playlist will be created in the Playlists panel, with the edit caret waiting for you to give it a name.
  4. Enter a meaningful name, mine says Planet Rock DAB.
  5. Then press Enter to save it.
Screenshot showing how to save the playlist
Send to > Playlist >

Conclusion

That’s all there is to it.

While I usually listen to MusicBee using the compact player view, when listening to streamed radio I prefer the mini player view which also pulls in the current track’s artwork.

Screenshot of mini player view
MusicBee mini player view

Managing overlay icons for Dropbox and TortoiseSVN and TortoiseGit

I imagine like many involved in web development, I rely heavily on a number of version control applications: I use Dropbox, Subversion (SVN) and Git.

For years I’ve used the TortoiseSVN client for Windows. It integrates with the Windows Explorer shell making it quick and easy to manage your version controlled code within Explorer.

I like that I don’t need a separate full-blown application that acts as an interface between the code on my PC and the SVN repository; I like that I don’t need to use a command prompt; but I love that TortoiseSVN adds overlay icons to tell me the state of each file (is it up to date, changed, added, etc.?).

These folders are all up to date, and in sync with the SVN repository.
These folders are all up to date, and in sync with the SVN repository.

Recently I’ve started using Git at work and so I’ve also installed TortoiseGit which does something similar.

This is the Bootstrap repo cloned to my PC.
This is the Bootstrap repo cloned to my PC.

And of course Dropbox does the same: it shows you which files have been synchronised with the cloud, and which are in the process of uploading.

My Dropbox folders are up-to-date, synchronized successfully with the Cloud
My Dropbox folders are up-to-date, synchronized successfully with the Cloud

The problem

The problem, though, is that each of these applications uses multiple overlay icons but Windows only uses the first 15.

TortoiseSVN and TortoiseGit both use the same nine icons:

Nine folder, each has an icon on top of it such as ticks, crosses or pluses.
TortoiseSVN and TortoiseGit both use nine icons.

Dropbox uses eight icon overlays. If you have OneDrive installed (which you will if you use Windows 8 or above) then it uses three. And Windows itself uses a few to indicate offline files or enhanced storage.

That’s 22 icon overlays, and like I said: Windows only uses the first 15.

So, inevitably you end up with some icons missing, and depending on which these are it can make life just that little bit harder when trying to figure out quickly whether a file is in sync or not, or whether it’s not even been added.

That means you need to make a choice about which icons you want to use and which you don’t.

How to fix it

The most straight-forward way to do this is by editing the Windows Registry.

The icon overlays can be found in the following key:

Computer \ HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \ ShellIconOverlayIdentifiers

It turns out you can safely rename the folders which will reorder the icons. The folders are just containers for the real information contained within them.

1. Backup

Export (backup) the ShellIconOverlayIdentifiers folder in its entirety, in case you need to restore it later.

2. Prioritise which icons you need

My current preference is for the following:

  1. 1TortoiseNormal
  2. 2TortoiseModified
  3. 3TortoiseConflict
  4. 6TortoiseDeleted
  5. 7TortoiseAdded
  6. 8TortoiseIgnored
  7. 9TortoiseUnversioned
  8. DropboxExt1 (green Synced)
  9. DropboxExt2 (blue In progress)
  10. DropboxExt5 (red Sync problem)
  11. DropboxExt7 (grey Folder not synchronizing)
  12. EnhancedStorageShell
  13. SkyDrivePro1 (ErrorConflict)
  14. SkyDrivePro2 (SyncInProgress)
  15. SkyDrivePro3 (InSync)

You can use whatever naming convention you prefer. I rename the original folder names with a number prefix and an underscore, e.g. 01_1TortoiseNormal. Folders that I want to drop to the bottom I prefix with a simple x, e.g. x5TortoiseReadOnly.

UPDATE: Some users are reporting that they prefix with a space as this appears to be the trick that OneDrive/SkyDrive has used.

In regedit it looks like this, with the unprioritized icons dropping to the bottom of the list.

List of registry keys
List of registry keys

3. Restart Explorer

  1. Close any Windows Explorer windows.
  2. Press Ctrl+Shift+Esc to open Task Manager.
  3. Look for Windows Explorer listed under “Background processes”.
  4. Right-click it and select “Restart”.

Your taskbar will disappear a couple of times as the Explorer process is restarted, but you should now see all the overlay icons you want within your folders.

(Currently I’m having issues with OneDrive — formerly SkyDrive — but as I don’t rely on it for too much I’m not that bothered, to be honest.)

Write! (beta) — a distraction-free text editor for Windows

Write! A distraction-free text editor for Windows. Here it is showing the navigation bar.
Write! A distraction-free text editor for Windows. Here it is showing the navigation bar.

A few months ago, while I was editing some documents in Markdown, I came across Write! — a new text editor (still in beta) that is being marketed as “writing instrument for digital age [sic]” and a “distraction-free text editor that does not suck”. So I downloaded it and took it out for a spin.

I like it, but…

For the most part I like Write! It’s clean, it’s fast, and it has a minimal set of usable features that don’t get in the way.

It’s like a prettier Notepad but with a spell checker, a navigation bar on the right-hand side (like Sublime Text), and a basic understanding of Markdown (so you can make text bold, for example, by typing **example**).

I have a couple of issues, though, which prevents me from using this as my text editor of choice for writing.

Proprietary format

My main niggle is that by default Write! saves to its own proprietary format. This is a zipped, XML-based file format (.wtt), and as far as I can tell this isn’t compatible with the OpenDocument text (.odt) format. The simple document above (showing the first chapter of JRR Tolkien’s The Lord of the Rings) contains the following files:

  • document.xml — the actual document, plus some meta data such as word count.
  • history.xml — an undo history.
  • package.xml — this seems to define the package format and encoding (UTF-8).

You can export to PDF, OpenDocument, plain text, and three flavours of Markdown (Textile, Markdown, and Wiki) but that has more of a disruptive workflow than simply tapping Ctrl+S every few minutes.

Similarly, it would be great to be able to associate Write! to open certain file types, such as text (.txt) or Markdown (.md, .mdown) files.

Not full Markdown support

By default I tend to use basic, vanilla Markdown rather than Textile or Wiki). By default Write! is configured to support a mixture of the other two. That’s not a problem as a quick visit to the settings will put that right.

Write! settings dialog
Write! settings dialog

But Write! only supports a small subset of Markdown:

Supports

  • Headers prefixed with hash (# for H1, ## for H2, etc.).
  • Unordered lists using minus (-) and plus (+).
  • Numbered lists.
  • Links (but you cannot easily edit the link, text or title).
  • Emphasis (italics and bold) using asterisks (*) or underscores (_).
  • Automatic links in the format <http://example.com/>.
  • Backslash escapes, e.g. \*literal asterisks\*.

Does not support

  • Setext style headers (underlined using equal signs or dashes).
  • Blockquotes.
  • Unordered lists using asterisk (*).
  • Code blocks — 1 tab, 4 spaces or three backticks (“`).
  • Inline code using single backticks (`.example {}`).
  • Horizontal rule.
  • Images.
  • Automatic links for email addresses, e.g. <[email protected]>.

Cannot type with help window open

This seems to be a basic requirement that has been overlooked: if I tap F1 to bring up the help text (shortcuts and markup) I cannot keep the help window open while typing into Write! If I start to type I get an irritated ‘bong!’ sound from my PC.

Surely I should be able to refer to the help text while typing.

Conclusion

If Write! supported at least:

  1. The ability to select which format to save to by default (even on a document-by-document basis); (MUST)
  2. The ability to open certain file types in Write! (MUST)
  3. Full support for Markdown. (MUST)
  4. Ability to type while referring to the help text. (SHOULD)

then I would without a doubt use this text editor for all sorts of small writing tasks, such as writing documentation, journalling, text editing, etc. Until then, I’ll just keep updating the beta and see what gets added in the future.

For me this is definitely one application to keep an eye on but it isn’t for production use quite yet.

Bonus

What is nice is that you can vote for future features from the website’s Feedback link. One of those suggestions is to save in plain text format; I’ve just submitted an idea to fully support Markdown.

f.lux: stop your computer monitor keeping you awake at night!

f.lux makes the colour of your computer's display adapt to the time of day, warm at night and like sunlight during the day.
f.lux makes the colour of your computer’s display adapt to the time of day, warm at night and like sunlight during the day.

f.lux is a genius piece of software (available for Windows, Mac OS X, iOS, and Linux) that I’ve been using for a few months now, that has genuinely helped me get to sleep quicker at night.

What it does

It does one job, and it does it brilliantly: f.lux adjusts your computer display according to the time of day.

Generally monitors are set very bright with a blue-y colour temperature, that makes them look great during the day. As the f.lux website puts it:

During the day, computer screens look good—they’re designed to look like the sun. But, at 9PM, 10PM, or 3AM, you probably shouldn’t be looking at the sun.

f.lux fixes that. Once you’ve told the program where in the world you live (so that it can work out when the sun will rise and set) and what kind of lighting you have it gets to work.

For me, the application runs when Windows starts, and I quite enjoy watching my monitor at sunset slowly change as f.lux kicks in; I’ve set mine to fast transition (over 20 seconds).

Flux settings: adjust your lighting, set your location, and transition speed.
Settings in f.lux are very straight-forward.

When the sun sets f.lux adjusts your monitor to look like your indoor lights (for me that means that that whites take on a warmer hue similar to the colour of paper the Financial Times use). And then when the sun rises again, the blues return and it looks like sunlight once again.

Effect on sleep

I noticed a while ago that if I had been using my computer a lot in the evening it was taking me longer to get to sleep.

It turns out that blue light affects sleep patterns and as monitors are back-lit—effectively firing a lot of blue light straight at you—you end up with a lot of exposure to excessive light at night.

A couple of hours looking at a tablet or PC screen in the evening can knock off your sleep by about an hour, researchers have found.

The f.lux developers have taken this into account and so “f.lux adjusts colours in a way that greatly reduces the stimulating effects of blue light at night.”

I have to admit that I was very sceptical at first, and the first time I tried it I hated it. Everything went slightly peachy. But I stuck with it and within a couple of days I was a convert.

And while I used to lie awake in bed for half an hour or more, since using f.lux on my Windows 8.1 PC I now drop off to sleep within minutes.

Conclusion

If you do a lot of work on your computer or iOS device after sunset then I thoroughly recommend f.lux.

Download f.lux today. (Windows, Mac, Linux, or iOS)

My Windows 8.1 start screen

Windows 8.1 start screen
Windows 8.1 start screen (click to view full size)

I was reading about the anticipated announcement of the next version of Microsoft Windows, which some are speculating may not even be called ‘Windows’.

In the Guardian article Microsoft event will reveal new revitalised Windows 9, Windows 8 got quite a bit of stick for the way it muddled its interface for desktop users.

I have to say that I really like Windows 8 and 8.1. I especially like the new start screen, particularly the way you can customize it to show only those applications you use most, grouped and named how you want them, in four sizes.

Above is a screenshot of my Windows 8.1 start screen. Setting it up like this has meant that I now have very few items pinned to the taskbar (Windows Explorer, eM Client, Todoist, Safe In Cloud, TED notepad, and Google Chrome)…

Windows 8.1 taskbar showing only seven icons.
My minimalist Windows 8.1 taskbar

…and absolutely nothing on the desktop.

My Windows 8.1 desktop showing no icons at all. (Click for full size)
My Windows 8.1 desktop showing no icons at all. (Click for full size)

To the right of that lot I’ve got games: first LEGO games for the children and then a few other things for me (Call of Duty, Baldur’s Gate Enhanced Edition, Four Winds Mah Jong).

How do you organise yours?