Despite hibernating my Windows 7 laptop at night, I kept finding it up and running in the morning. Turns out there's a simple fix for this...
Today I discovered a nifty use for code contracts: logging return values (even when a method has multiple return points). Read on to find out more...
I recently went to the ACCU 2011 conference, for programmers who believe in ‘professionalism in programming’. There was an eclectic programme of talks, but I was struck by how often the presenters had something interesting to say about one topic in particular: simplicity. Rather than write up the individual presentations, I thought it would be more interesting to write about what was said about simplicity.
Suppose you have a note class in HTML. A note can have one or more paragraphs.
<p>This is not a note.</p> <p class="note">This is the first line of a note.</p> <p class="note">This is the second line of a note.</p> <p>Back out of the note again.</p>
Here is a CSS snippet you can use if you want to add margins to separate the note from the surrounding text without affecting the line spacing of the note itself (and adds some sensible page breaking behaviour).
I found various threads on the Web from people complaining about Command Not Found errors when using macros that change Word's headers and footers.
I didn't find any solutions, but think I have an answer. Read on to find out more.
I have created an extension for Microsoft Visual Studio 2010, called VisualCobra, that does syntax highlighting for the Cobra programming language. Read on to find out more.
I've written a game of British Euchre as a way to learn the excellent Cobra programming language.
Read on to see it in action and to find out more about Euchre and Cobra.
If you have a Word 2003 or earlier document with a table of contents, you might expect the ToC to behave as a series of hyperlinks when you save the document as PDF, so you can click an entry to jump to it.
If this doesn't happen (i.e. the ToC appears as plain text in the PDF), try editing the ToC so that Use hyperlinks instead of page numbers is on for the web view. Then when you publish to PDF you should find that the links work as expected.