Hacker News | Ask HN: Anyone know how to publish code samples to Posterous?

All you have to do is surround your code block with the following tags:

your code here


Additionally, if you want to get fancy, you can specify a language with the following syntax:



public static boolean isAwesome = true;


This should work for both through the web interface and through the email interface.

The available list of languages is: 'cpp', 'c', 'c++', 'c#', 'c-sharp', 'csharp', 'css', 'delphi', 'pascal', 'java', 'js', 'jscript', 'javascript', 'php', 'py', 'python', 'ruby', 'rails', 'ror', 'sql', 'vb', 'vb.net', 'xml', 'xhtml', 'xslt', 'html', 'xhtml'

Current known issues: HTML formatting might be a little spotty at the moment. Will be fixing asap. I also see some intermittent errors where the code isn't getting properly recognized.

There you go! A quick and easy way to post code snippets to you Posterous - and you do not even have to edit the HTML. :-) I use this with all my coding posts.

Happy Programming!

I moved the weblog to Posterous.

Posterous_logo1

Today I was told about this very cool tool called Posterous. :-) I have looked for a way to outsource my old home-hosted weblog and Posterous seems to be "the man" for the job.

The thing about this cool tool is that it just works. It is simple to use, I like that, and I can customize it the way I like. I have not done so yet, but I will be creating my own Posterous theme anytime soon. One minor issue is the lack of being able to support flawless XHTML. I guess I will have to live with that. You cannot have it all. Although I still think the XHTML validation errors are of the type that could easily be fixed. I would fix them if I could, but I cannot... ;-)

Now the weblog is the same, the content is the same (Posterous can actually import the dotnetblogengine using metaweblogapi).

Enjoy!

...and Happy Programming! ;-)

PRINCE2 - Exam

This fall is going to be the fall where I will take my PRINCE2 exam. :-)

I am currently reading for the PRINCE2 Foundation exam and I will continue with the PRINCE2 Practitioner.

What is PRINCE2?

The official PRINCE2 website says:

PRINCE2 (PRojects IN Controlled Environments) is a process-based method for effective project management. PRINCE2 is a de facto standard used extensively by the UK Government and is widely recognised and used in the private sector, both in the UK and internationally. The method PRINCE2 is in the public domain, offering non-proprietorial best practice guidance on project management.

I am reading the official PRINCE2 book from OGC and it is very informative and good reading. If you think of going into project management I can really recommend reading this book.

Happy programming!