Blog

  • How to Display Source Code Within WordPress

    Ron Fredericks writes: I have a problem in common with many software engineers and technical managers – “How can I display source code within my blog?”

    See, the problem starts when the source code to be displayed interacts with the blogging software itself and then corrupts the blog’s own loop-and-display engine. Thus, the blog page becomes corrupt or at the very least, becomes mis-formatted and hard to read. Of course it would also be nice to color code a software snippet similar to a source code editor to make the posted source code easier to read.

    I tried several techniques during my Internet search for “WordPress source code formatting”. I discovered a common theme – there are source code display and highlighting methods available – in fact too many are available. So the search became a “needle in the haystack” time sink. And the sad fact, most choices have some severe limitations.

    But at last, I found Dean Lee’s blog post: Source Code syntax highlighting plugin for WordPress (V1.1)

    Dan’s pluglin for WordPress has all the features I was looking for:

    • installs as a simple plugin for WordPress
    • usage within a blog post is easy through the use of the pre tag
    • source code displays in its own container with line numbers for reference
    • a reader should be able to easily select a range of displayed source code and copy it for their own use (without also selecting the displayed line numbers)
    • source code display should not break my WordPress blogging software

    (more…)

  • Community Software Development for Embedded Devices


    HP-41CX mobile computer/calculator with community developed PPC ROM software applications and synthetic code library
    Photo by Ron Fredericks using Canon EOS-10D 34mm fluorite lens, circular polarizer, 1.5s & f/22 @ ISO 100, on tripod, from Embedded Components’ HP lab collection.

    [tag]Ron Fredericks[/tag] writes: I envision the day when [tag]community[/tag] [tag]software[/tag] [tag]engineering[/tag] [tag]projects[/tag] are commonplace for [tag]embedded device[/tag]s. Like the PPC ROM demonstrated back in 1981.

    What follows is a review of the PPC ROM community development project – a first for smart mobile devices, then an offer to help others in moving this great body of open source professional tools to modern devices: comment on this post if you are interested in this project or in community development of software for embedded devices in general.

    Wouldn’t it be nice to have powerful new applications built on top of our [tag]router[/tag]s, [tag]digital recorder[/tag]s, [tag]HDTV[/tag]’s; or even [tag]industrial[/tag] process monitor and control systems, or lab [tag]instrument[/tag]s; hey how about our [tag]car[/tag]s and public transport [tag]vehicle[/tag]s? No I don’t mean that you buy a new device or car with new applications pre-loaded by the device manufacturer and shipped with the soon to be obsolete device – I mean groups of experts organizing into communities with other experts to design, develop, test, document, package, and deliver new software solutions onto devices for their own members’ sales channels. Does this sound far fetched?

    Community development around [tag]open-source[/tag] software such as [tag]Java[/tag], the [tag]Linux[/tag] operating system, or [tag]Mozilla[/tag]’s [tag]Firefox[/tag] web browser have emerged as reusable [tag]project management[/tag] solutions to complex software engineering issues – See Asa Dotzler’s Job Morph: Herding Cats to see how Mozilla motivates workers who aren’t actually on the payroll.. So I know the engineering community is ready for a new challenge – one that has already been solved back in 1981 – one that affects the speed of technology reuse around the globe today.

    Development for today's embedded/mobile devices has many similarities to the HP-41 personal programmable calculator
    Photo by Ron Fredericks using the same settings as the previous photo, of his favorite mobile smart device.

    So let me share with you a project I recently discovered. It’s embodied in a user’s manual published in 1981 by a community of engineers – no, not your typical product manual ticked out on a company payroll. The forward describes a first-of-its-kind effort behind this user manual, and the embedded software it documents. The author expresses his excitement in being part of the “first [tag]community developer[/tag]” project for a smart mobile computing device and it is so similar to the smart devices we use today! Did I mention that Linux, or even community networks like web and email didn’t exist back then? How did they do it? Can we learn from their effort and apply this community project, or its method, for today’s embedded devices? I think the answer is yes – with a little help from the embedded operating system suppliers’ communities and some innovative hardware device manufacturers. The embedded operating system, software community project management, and smart device platforms have come to a wonderful cross-road that truly supports community software development as a ripe low-hanging opportunity for us today.

    The forward to this 500 page user manual describes the struggle and accomplishment of 100 developers who formed their own community project to develop a “ROM” or read-only memory module they called a “[tag]PPC ROM[/tag]” that plugs into an HP personal computer that is now 25 years obsolete called an HP-41. The “PPC” reference is to the names – [tag]Personal Programmable Calculator[/tag], or [tag]Personal Programmer’s Club[/tag], or [tag]Prolific and Productive Computing[/tag] – as well as the [tag]PPC Calculator Journal[/tag] that was the herald for the HP calculator’s developer community back in the day. Similar to the commonplace e’zines we read, or get spammed with today. But different because the taxonomy created by today’s almost endless stream of eBlasts, tagged content, blogs, forums, and RSS feeds by themselves don’t create an engineers’ sense of community. The spontaneous motivation to organize into a sense of community requires a mood that has only been created by a real person – a person that shifts a group of developers’ paradigm . (more…)