Mount JFFS2 Image
Saturday, October 25, 2008
Example of how to mount a JFFS2 image using mtdblock.
Clay Shirky: Institutions vs. collaboration
Monday, July 14, 2008
This is a rather interesting talk that takes some very foundational ideas from open source software development, P2P networks, and social networking and implies that these paradigms can apply to a lot more.
Long hair minimizes the need for barbers; socks can be done without; one leather jacket solves the coat problem for many years; suspenders are superfluous.
- Albert Einstein
Coroutines in C
Tuesday, June 21, 2005 by digitalpeer
Coroutines in C are an interesting design concept that allows you to basically leave a function and go back to the same place you left off at the next time you call the function. The end result, for example, is a mesh of functions that "get" and "put" data. It's basically the same as using a static function variable and a switch statement, but with all that abstracted for the most part with macros.
Anyhow, the examples expose some not often used switch statements including a loop that spans case statements. Show me a coding standard that points out not to use this valid syntax mess:
switch (count % 8) {
case 0: do { *to = *from++;
case 7: *to = *from++;
case 6: *to = *from++;
case 5: *to = *from++;
case 4: *to = *from++;
case 3: *to = *from++;
case 2: *to = *from++;
case 1: *to = *from++;
} while ((count -= 8) > 0);
}