Category Archives: blogging

Share source code using Gist

Gist is a modern pastebin service operated by GitHub. Unlike a simple pastebin site, a gist behind the scenes is using the Distributed Version Control System (DVCS) Git. “All gists are Git repositories, so they are automatically versioned, forkable and usable from Git.”

When including source code on a site there are scripts that allow one to include the code from the gist site. Anyone interested in the source has a cleaner interface to view, copy, download, or fork.

An example is on one of my blog posts. To show the source on the page took only one line:

[gist id=”6680049″ file=”Gather.groovy”]

This depends on the gist support you have on your blog system. WordPress, for example, supports gist embedding by use of ‘shortcodes‘.

Yes, this is old news, but I had this post in draft mode, so I may as well post it.
 

References

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.

Is Google creating an alternative to RSS?

Google dropped Reader, and someone reported that “Google Alerts” RSS feed is not working. Maybe Google is working on replacing the RSS or Atom web feed technology so that it would work more in line with Google+, and like Facebook, create a “walled garden.”

We know Google does some great work correcting or improving existing approaches, for example, ‘Protocol Buffers‘. Syndicated feeds are ubiquitous if lately on the downswing, perhaps time for fresh thinking on the approach. Certainly modern web technology has much more powerful stuff like XMLLHttpRequest, Server-Sent Events, WebSocket, and WebRTC.

Further reading

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.

Syntax Highlighter on Blogger

I moved to WordPress when I couldn’t get a decent syntax highlighter on blogger to work. D. Shah posted a how to to do just that here. It works!

Links

  1. How to use Syntax Highlighter 3 in Blogger
  2. SyntaxHighlighter
Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.