Written by Patrick Tulskie
Just a small thing. I was trying to find a good syntax highlighter for code on this blog and another one I’m about to start. After trying a few, I settled on highlight.js from http://softwaremaniacs.org/soft/highlight/en
You basically need to simply wrap your code in <pre><code></code></pre> and it handles the rest. Here’s an example:
class ThisIsRuby
def fun
puts "This is fun!"
end
end
test = ThisIsRuby.new
puts test.fun
On a semi-related note, I’m still chasing down some nginx config related gremlins. If you see anything weird, let me know in the comments.
Posted in
Uncategorized at December 9th, 2009.
2 Comments.
Written by Patrick Tulskie
I’ve been having some issues with the slice that the blog and some other applications were on the box. Over the past few weeks, MySQL has been crashing or perhaps SliceHost was rebooting my server and MySQL was not coming back up. It was all very mysterious to me, but I was unhappy with the overall setup anyway.
WebbyNode is a newer player in the VPS game and they offer basically the same setup as SliceHost at a lower price. I also like their ReadyStacks and github friendliness. I registered and built out a box with Nginx and Percona MySQL. Everything feels fairly snappy when I’m on the box despite being a low memory VPS.
Going forward I’m going to be moving Twexaminer.com over to this same VPS and run it through Nginx with Unicorn.
If anyone has any questions about the setup, let me know. If I get a chance later, I’ll try to come up with a short guide on how I got everything working.
Posted in
Uncategorized at December 7th, 2009.
2 Comments.