Archive

Archive for September, 2011

LaTeX: Fixing Wrong Figure Numbers

September 22, 2011 1 comment

LaTeX: Fixing Wrong Figure Numbers | Terminally Incoherent.

I can’t tell how much time I’ve lost dealing with this freaking (in lack of better term) problem in LaTeX. Stupid solution for a stupid problem, but hey… it has a solution ūüėČ

Whenever you use figures, always (and I mean ALWAYS EVER FOREVER ALWAYS) put\caption first, and \label second like this:

\begin{figure}[htp]
 	\centering
 		\includegraphics{image.eps}
 	\caption{Some Image}
 	\label{fig:some-image}
\end{figure}

Just blogging about it for my future reference.

Advertisements
Categories: Research Tags: ,

Connexions: an educational online and open source resource

September 12, 2011 Leave a comment

Connexions is:

a place to view and share educational material made of small knowledge chunks called modules that can be organized as courses, books, reports, etc. Anyone may view or contribute:

  • authors¬†create and collaborate
  • instructors¬†rapidly build and share custom collections
  • learners¬†find and explore content
More info here: Connexions РAbout Us.
I’ve learned first about Connexions in this TED talk.

Sound Reasoning: A New Way to Listen

September 12, 2011 Leave a comment

Sound Reasoning: A New Way to Listen.

Really nice “tutorial” on how to listen and appreciate music (mainly focused on western classical music). Requires no formal knowledge of music (or music notation, theory, etc). Lots of audio examples and music excerpts are used to demonstrate the concepts and musical analysis throughout the text (which is really comprehensive).

Highly recommended for anyone interested in learning how to fully appreciate music and all its complexities expressed through sound.

By the way, this “tutorial” is hosted at the excellent Connexions website, where it’s possible to find several other “open source”/wiki-style modules of educational materials. You can even contribute to it!

Correlation does not imply Causation (please learn that once for good!)

September 10, 2011 Leave a comment

Correlation does not imply Causation.

(Source: xkcd)

And a wikipedia entry that tries to explain the title of this post can be found here.

A layman description of this usual confusion can be found here.

Categories: Research

C++ Renaissance: the return of the King!

September 7, 2011 2 comments

C++ and Beyond 2011: Herb Sutter – Why C++? | Channel 9.

The above link points to an excellent talk by Herb Sutter (Microsoft Research) on the real advantages of C and C++ (and Objective C! – all known as “native” languages) in what concerns performance per $, per Watt, per transistor and per cycle.

And it’s not just on mobile platforms – he shows that “The world is built on… C/C++”: servers, desktops, mobile platforms and large scale data centers (talk about C++ being an eco-friendly language! :-)).

So, I’m glad to see the start of an age of the “return of the King”, which will not only last for the next decade, but will perdure even more when Moore’s law finally gets to an end.

Managed languages (i.e. Java, C#, etc) still have their place where “productivity” is key (which does not seem so much the priority nowadays – not even in the foreseeable future, so they say – and in case you still believe in the myth that those managed languages are as speedy as C/C++, have a look at this paper), but I’m glad that we finally got enough of it (it took almost 10 years of waste and stalling!!), where they were used as a hammer to solve any problem, which had first to be turned into something resembling a nail (just look at what happened to the Windows Vista fiasco and its C#/.Net managed code base… but not all was bad in Vista – a good lesson was learned… the hard way, but those are the lessons that usually become persistent for generations to come… hopefully ;-)).

In addition, we are on the verge of finally getting we already have the brand new C++ standard, C++11, which includes quite some exciting new features for C++, making it an even more exciting language to program with. Add to that the new impressive developments in the LLVM/Clang toolchain, and you start seeing the killer combos we are getting nowadays for native development.

So, these are exciting times for C/C++/ObjC folks, and computing in general. Glad to see Apple, Google and Microsoft (among others) really betting all their game on these native languages and investing a lot on taking the best out of them.

I’ve always believed in the power of C/C++/ObjC, even when a lot of people became fully fascinated with all those fancy new managed languages and looked at the folks still coding in native world as a bunch of old weirdos stuck into some ¬†“obsolete” and “uncool” language universe.

Well, I started my programming career back in 1996 coding in assembly for DSP chips (TI C3x, C6x series and AD Shark – already floating point chips, which later on started having some basic C support). So my starting point may be a bit different from most of these younger folks. And maybe that’s why I anticipated that the days where efficiency would eventually become king once again would not be far – it was just a matter of “when”, instead of “if”. ¬†Glad to see that the “when” is finally “here”. ūüôā

Categories: Development, Programming Tags: , , ,