Introducing Coded for Windows Phone 8

Sometimes you want to edit a code snippet on your phone.

On Windows Phone, there wasn’t an app capable of letting you get a file made on another device, edit it in a code-friendly environment, and then put the file back where you got it from.

That’s why I made Coded!

Give it a try :)

Coded Editor Screen

Main Screen

This is my first app for Windows Phone, but I took a long time polishing it to make it as usable and smart as possible. There are some text editors for WP, but they lack two things:

Sync screen

Sync screen and menu

A “fixed-width” (or “monospace”) font. Examples are Courier New, Consolas, and DejaVu Mono. Every character in these fonts is the same width, which means that columns line up, making code more readable. It also means that tabs are always the same size, and a predictable number of spaces will equal a tab.

Secondly, the ability to import and export files to a web location is key. It’s no good being able to write a file if you then can’t do anything with it. Coded has SkyDrive integration to let you upload/download files from a ‘Coded’ folder in the root of your SkyDrive. In the future, this path might be configurable.

If many people download Coded, I would like to add more features and configuration. If you have Windows Phone 8, and you feel like it might be useful to you, I hope you try it!



OK, so I’m working quite hard with the newly named ‘slimetanks’, getting it polished and making it fun in some way. In the interim, like I promised, here is the full version of WorldGen, now called:



A game where colourful ascii blocks lie between you and some zombies.

  • Tutorial
  • Never-ending game mode
  • Sandbox mode

For pictures, see the linked trackback.

For download: craftscii version 0.11

Slimes soon!


Scenario: My friend Ben and I need to exchange links to web resources on a regular basis.

Problem: I do not have Facebook. Ben does not have Twitter. Ben does not use email. Lastly, Ben does not have a rich-web capable phone with which to receive links via SMS. As you can see, this is mostly his fault.

Solution: Ben And Ste’s Social, or BASS.

While it now has 3 users — and should more accurately be called BLASS — my latest PHP experiment remains a minimalist text-and-links sharing site. It has hardcoded user data, meaning you only need to enter a password in order to post. That is obviously ‘fail’ in several ways, but it is also super secure. It has its problems, but at the moment it does the job perfectly under the load expected.

I learnt to use flock() instead of the time consuming process of restoring from backups, and a major revision is underway which will queue and batch-manage messages rather than allowing each client to modify the master log.

The tagline, and even the name of the service (“Bass”) can be changed by any of the priveleged users in their Config options at any time, which adds fun. Messages stack in a way which I am beginning to realise is what is generally acknowledged as “backwards”. I will fix that.

Bass will also have support for an embedded HTML document for each user which gives them tabbed access to their favourite websites search facilities. It automagically recognises links, even those which lack protocol prefix.

BASS is private and has no signup system.

OK. Good. I’m glad we had this chat.

More PHP Fun

2 PHP-solvable problems presented themselves to me this week, both, as it happens, on Minecraft Forums. I imagine that just happens to correlate to the amount of time I spend there.

In the first case, I wanted to be pretentious about making a tally chart. This was because in just ONE topic (albeit a very controversial one) it had been necessary for the mods to ban a total of 6 people. That needed tallying. There was a sense of urgency to getting my post out, and as such I ended up just making an ASCII rendition. The problem remained, and eventually, tally chart generator happened.

I want to make very, very simple web apps which take minimal input (not a whole form) and give minimum output (not a glossy translucent .png) because I think that kind of thing is cool. The novelty of this sort of programming hasn’t worn off.

As such, the next thing to emerge was an image resizer. Despite the wealth of code snippets out there to do this, I decided to write from scratch using the PHP docs. The problem came around when, in a Pixel Art thread, a contributor excused his tiny image because the ImageShack variety had failed him. It works with all .pngs but I plan adding non-animated .gif support.

The image resizer doesn’t have a nice introduction text like the tally, but is documented in the thread to which I linked above.


That is all of my PHP productivity for this week.

C++ Compilation Follow-up

Seems that these last few weeks have been my first major failure to blog consistently. Never mind… I’ll keep trying.

In my last post, I described the compile handler I designed. I’ve made it much more functional, and easier to use, and it now useful on more computers than just my own! Despite adding all of these features, I managed to reduce the program file size by 9%. It is now 492kb.

Note: this isn’t a compiler. You need to Download MinGW to compile. This program just means that you don’t have to manually type…

>C:\Progra~1\MinGW\bin\mingw32-g++.exe -o C:\Users\Me\Documents\HelloWorld.exe C:\Users\Me\Documents\HelloWorld.cpp

…Every time you want to compile.

OK; so I’m releasing it. It’s open source (source is included in the zip folder). I’d appreciate credit if you rewrite or repackage it, or if you distribute it as-is (which you are entitled to do).


Ste’s Compile Handler

I’m not providing support for this, but email me if you want. I hope somebody finds it useful (but if you have an IDE you like, you probably won’t)! :)