Tweets

söndag 23 oktober 2011

Using syntax highlighting for AutoHotKey in Blogger

  1. In Blogger, go to the Design tab and then Edit HTML.
  2. Click the link Download Full Template to backup your current Blogger template.
  3. Edit the template by adding the code before </head>. The following is the minimum you need to be able to have syntax highlighting for your AutoHotKey code:<link href='http://alexgorbatchev.com/pub/sh/current/styles/shCoreDefault.css' rel='stylesheet' type='text/css'/><script src='http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js' type='text/javascript'></script><script src='http://www.undermyhat.org/blog/wp-content/uploads/2009/09/shBrushAhk.js' type='text/javascript'></script><script language='javascript' type='text/javascript'>SyntaxHighlighter.all();</script>
  4. To be sure you didn't break your nice template, preview it before saving it.
  5. Create a new post and chose to edith the HTML. Start with <pre class="brush: ahk;">
  6. Write/paste your AHK code
  7. Close it all with </pre>

And the result:
; Oh my!
IfWinExist Untitled - Notepad
{
    WinActivate
}
else
{
    Run Notepad
    WinWait Untitled - Notepad
    WinActivate
}

torsdag 20 oktober 2011

Icescrum and Amazon EC2 - in cloud, not in heaven

I have been looking for a software project management service for my personal projects. At one customer I used Target Process which if found to be quit good. Unfortunately it is not cheap. However, today I found a free and open source alternative: Icescrum.

Going for the free alternative I wanted to run Icescrum in Tomcat on my Qnap, so I needed to install the Java JRE-plugin. Since my Qnap is an ARM that was not so easy. After some struggling I gave up. Maybe this was  the perfect time to try the >elastic compute cloud<? They say that the cloud is the future, the solution.

Signed up at Amazon. Gave away my credit card. Chose the cheapest instance. Uploaded Icescrum war-file using Beanstalk and... yeah I'm in cloud. However, not in heaven. I was just finished making my first scrum story when it first appeared. Permgen...

Maybe I just could stay doing software project management in my spreadsheet. Maybe this is one example how to shave a yak. Maybe its better to be down to earth than up in the cloud?