Showing posts with label coding. Show all posts
Showing posts with label coding. Show all posts

Wednesday, February 29, 2012

Real-Time measurement in C

For those of you, who could not find it somewhere else.
Here is the code snippet to get time measurements exact to  the microsecond on a Linux system with pure C.
Fun fact, the struct is already there, should be defined in time.h
rt_printk is real-time printf to read your output use command dmesg
 
#include 
#include 
#include 
#include 
 
int main(void)
{
 char buffer[30];
 struct timeval tv;
 time_t curtime;
 gettimeofday(&tv, NULL);
 curtime=tv.tv_sec;
 strftime(buffer,30,"%m-%d-%Y  %T.",localtime(&curtime));
 rt_printk("%s%ld\n",buffer,tv.tv_usec);
 return 0;
}

Wednesday, February 8, 2012

Start of an idea - Eclipse Badges

Do you ever coded day and night without having enough benefit from it. Here it comes the Eclipse Badges Extennsion. Okay, it is not yet developed, but the idea is cool and to cool to die.

So here some bullets for what you could earn badges while coding:

  • X hours coding at once
  • Master of Shortcuts
  • Challenger of Refactorings
  • Best Refactorings in a Row
  • longest class name
  • Deepest Hierarchy
  • lines of code per minute
  • longest method
  • deepest call hierarchy
  • Quick-fix Master
  • Web of Eclipse (a lot of complex dependencies)
  • longest build time ever
  • Antitrust, Eclipse as notepad
  • Archaeologist open the oldest projects
  • Plugin Master - you can catch them all
  • most active views
  • nightly coding is appreciated
  • Your Rank as developer in the Eclipse Badge Community
All this stuff is coming soon...

Please comment for more ideas!

Wednesday, June 1, 2011

Creating a Data centric website

Hey Folks,
I am just starting to create a data-centric webapp. The main goal is to allow the user to discover an huge dataset.
Therefore I am currently searching for diverse libraries. Here some early results:
Post on Highcharts JS
Post on JS Charts
Article on Accessible Data Visualization
Post on Google Chart API

To sum up, Google Charts seems to be the fastest solution, but only enough for a prototype. For an highly interactive and discoverable chart I will dive into Highcharts and js chart.

Stay tuned!