Thursday, June 24, 2010

QS#14: There are more questions than answers

Quantifying self: there are more questions than answers

Notes from QS Show&Tell #14 held in the San Francisco Bay Area Tech Museum of San Jose on June 22nd.

Quantifying Productivity

Bill Jarrold used a simple script to record his Unix activity with timestamps on the commands he typed. By quantifying the number of operations per hour he determined that he is usually on the roll at about 3pm, but is slowing down around 10am and midnight. The talk spurred discussions about other ways to analyze productivity - number of builds per time unit? keystrokes? content analysis of the commands? There also were suggestions on using GUI-based tools. For example, CoScripter Reusable History that records everything one does on the web. Or DeliciousDiscovery that analyzes Delicious bookmarks and tags. There are even commercial software tools such as SpyAgent that capture everything a computer user does: keystrokes typed, websites visited, chat conversations, applications ran, emails sent and received, files opened, and more.

One needs not only sophisticated screening and recording of performance related measures but also more sophisticated data analysis methods. There is a good discussion on HN about More-Hours-Worked not equal to More-Work-Getting-Done (it started from this post: Something Deeply Wrong With Chemistry). Dependence of productivity on hours worked is bell shaped and very individual. Some may be most productive when working 35 hours a week, others could increase workload to 60 hours. Number of keystrokes may not necessarily correlate with meaningful output either. Remember Jack Nicholson in The Shining? Besides, sometimes we need to think before turning ideas into action. And how could we measure what is going on in the brain?

Quantifying Thoughts

Mark Carranza is probably the most notable collector of thoughts among the Bay area quantifiers. His database has more than one and a quarter of a million thoughts and keeps growing, with more entries than the diary of Samuel Pepis and the collection of Lion Kimbro, the man who wrote down every though he had.
Jim, the second presenter of QS#14 is collecting thoughts too - he has 65,000 of them connected by associations and represented by colorful visualizations. He uses spreadsheets and Personal Brain software to create and display the results. TheBrain's display is organized around a central Thought, surrounded by all its Children, Siblings and Jumps - like an ontology - helping to follow a train of hought, flowing from one to the next or just wandering around. Navigation through the data is interesting although rather chaotic. Questions from QS participants addressed the usefulness of the tool. Does it really help to to leverage the power of visual thinking and understand the context of information before taking action?

Quantifying Stress

Bharat Vasan of PulseTrace Technologies gave a great impromptu talk on how he is using his watch reading real time heart rate from his wrist. Data may be uploaded via USB or wireless connection. One good application is managing stress. Bharat wants to be a good public speaker - and he certainly is, but his pulse rate always skyrockets during a presentation. Of course, some of us don't need to have a watch like this to know if pulse rate is elevated - the tendency to blush lets everybody around to take the readings. Shortness of breath, nausea and sweating may add to the picture. As Jerry Seinfeld said about delivering the eulogy, most people would rather be in the casket than speaking in public. One the other hand, some increase in pulse when talking is rather good and he trick is to use it as energy to fuel the presentation.
Pulse rate is a good measure of stress levels. Other measures would complement it and contribute to meaningful analytics. For example, recovery heart rate, a measure of how quickly ones heart could return to resting state. Standing vs sitting - normally there is 5 to 10 beats difference. Temperature in the room. Coffee or spices in food...
I have not tried the PT100 sensor-based watch, but my complaints about similar monitoring watches include their inability to measure heart rate during running at full speed, sensitivity to humidity, rain, food vapors, limited time intervals between repeated measurements. I also question reliability of measurements in 1-5% of cases.

Quantifying Motion

Indeed, quantifiers are improving their lives not only with spreadsheets and software - gadget usage continues to rise. ("Zeo's broken" was among two-word introductions of meetup participants). There were many Fitbit fans proudly showing their devices and less proudly measurements for the day - Wow, we are becoming ashamed for not stepping enough! Popular motion gadgets do not work for everyone and are generation 1.0 or rather 0.5 - some like swimming instead of running and elliptical trainers instead of treadmills, others are surprised to find that rocking baby in their arms was counted as calorie-burning steps. BodyMedia Fit (GoWear Fit), for example, measures not only acceleration, but also skin temperature and galvanic skin response reflective of physical stress, but is not water proof and can't measure emotional stress. Fitbit is less pricey but also not quite ready to do what most people want. The next talk was devoted to fitbit's corporate competitor - DirectLife.

Alex Bangs, co-founder of Entelos now working on a spinoff - DigitalSelf, likes this little white plastic box and DirectLife program. The device has accelerometers to quantify how much you move. The program starts with a one week assessment to get a good idea of individual's current activity and create a baseline. The plan has daily activity goals that increase slowly week by week (hopefully not as in The Red Shoes by Andersen!). Alex showed how his device was flashing congratulating him with good activity levels for the day. It could be even better, he said, the little box can almost sing a tribute to you if you walked more than your goal. The device fits in the pocket, but can be forgotten at home - which makes every wearer sad as the accomplishments of the day will not be logged and recognized. We love to be tapped on the back and told well done, are not we all?



Enhanced by Zemanta

Tuesday, May 4, 2010

To Ruby or Not to Ruby?


Ruby on App Engine Meetup (May 4, 2010) proved that Google App Engine is not all about Python and Java, although at present only the last ones are benchmarked and discussed by google app engine developers (try yourself)

Python is usually fast enough for what you want it to do (and faster than Ruby), while requires a third of the code of an equivalent Java program and is much easier to read. Both Python and Ruby are easy to learn.

Pythonistas think that Ruby syntax is ugly and inheritance distasteful. The philosophy of Ruby is similar to Perl: there is more than one way to do the same thing. This is great for some people, it leads to the creativity and richness of Ruby libraries like Hpricot and Rake. Ruby tries to take the best of Perl, Smalltalk and Lisp but has elements of a C/Java-like syntax. Rubyists are convinced that they have found the most enjoyable interpreted language. Ruby is younger than Python but already has a strong and loyal community and best web tools. Many programmers, however, don't like having too much power to change the syntax and keywords. This can be dangerous if they are not careful.

Arguments on what language is better resemble disagreements between cultures and ethnicities. For a programmer, it's always fun to learn something new that may be useful in the future. For a startup founder, it's always good to know what is fun and a good investment. Right choices of programming languages, web frameworks and platforms will lead to rapid development, the ability to attract talent, and offer a great expansion potential.

The Java language is an old favorite in the enterprise. There will be a large pull of candidates to work on Java projects, but this language won't make your startup the most attractive shop in town. Python and Ruby will.

The Python community has the Django framework while the Ruby language is paired with the Rails framework. DSL Sinatra is also good. What's the difference between the Ruby and Python developer crowds? RoR favors convention over configuration which means that any Rails programmer can drop immediately into any Rails application and have a very good idea of where to get started. Expect rapid development and prototyping and support from community working on updates and plugins. Ruby/Rails developers tend to be expensive but worth it. Complementary Javascript experience is perfect - for dynamic web pages and nice visual effects. PHP developers tend to be a little cheaper than Django and RoR, but watch out for bad coders in this crowd. All hosting providers can deliver a low cost PHP server environment, but there are great platforms for Ruby and Python - such as Heroku (that recently raised $10 million in Series B funding) and Google App Engine that let you develop for free.

The May 4th meetup was not on Ruby vs other languages. It was about Google App Engine.
Most Rubyists in the audience were using Heroku for their applications, some will now try to pioneer Google App Engine - or will they?..

One interesting observation was the "City” versus “the Valley" comparison of preferred languages: Ruby seems to be the City's favorite! Could it be due to cultural differences? Some even think it's as bad as PC vs Mac world - see this short clip.
There were no Java people in the audience and very few programmed in Python or wanted to learn it. Almost no one tried Google App Engine.

Matthew Blain presented BulkLoader, a minimal library providing a unified interface for loading, accessing and events notification for different types of content (Try the Bulk Loader sample at: http://bulkloadersample.appspot.com/)

John Woodell, Sr Web Developer at Google (twitter: @johnwoodell, e-mail woodie at google), gave the main talk -about running Ruby on the App Engine. Sarah Allen wrote a nice blog about this talk: http://www.ultrasaurus.com/sarahblog/2010/05/jruby-on-google-app-engine/. Another blog post summarizes the sources discussed:
http://jruby-appengine.blogspot.com/2010/05/google-app-engine-0012-gems-released.html

Check out his SlideShare Presentation:
App Engine Meetup
A few pointers and links from this talk:
  • Zero Configuration needs. Scalable services via standard APIs. Built-in application management console
  • Schemaless App Engine datastore: No writing to the filesystem. No relational database. No more than 30 seconds per request. Datastore API + DataMapper
  • Most common tasks: backups and cross-app migration.
  • A big Rails advantage is that it values convention over configuration and lets to avoid lengthy configuration of files. Load everything at once then initialize it. This helps to free more time to focus on business logic. Google App Engine does not work like that yet, but this is on roadmap.

Key Ruby App Engine Developers (check also this map):

John Wang - iPhone, Android, and Web Developer at Fresh Blocks in Honolulu, (Twitter: @johntwang Github: jwang) Provided RESTful JSON with Google’s Datastore to iPhone and Android apps.

Joshua Moore, Assurance Manger at Armorize Technologies (Twitter: @codingforrent, GAE blog). Coauthored the rails_dm_datastore gem, gave presentations on using jRuby on GAE. Rails 2.3.5, Datamapper, HAML, helped to find datamapper bugs

Leonardo Gallucci, IT Consultant and Software Integrator (Twitter: @leonardog). Wrote tutorial on getting started with Ruby on Rails on Google App Engine (it runs on GAE).

Vladimir Sizikov (github: vvs) . Developed jruby launcher: http://github.com/vvs/jruby-launcher

Sasaki Takeru, a hacker from Japan (Twitter: @urekat). Showed how to run Rails without Ruby Gems. Rails 2.3.5 01/21

Anagiotis Siatras, a Microsoft .Net/Gae+Rails consultant from Greece (Twitter: @azazeal)
Developed taxster.gr. See his useful Ruby tips at http://azazeal.xelixis.net/


More Links:

Reblog this post [with Zemanta]

Wednesday, April 28, 2010

Open source health gadgets

Sports Watch
How would you like to have a 3-axis accelerometer, pressure sensor, temperature sensor, RF wireless, and an LCD screen in a development package? You can actually have it - as a wristwatch offered by Texas Instruments. for just $49.
The package includes a USB programming and emulation dongle so that you can develop your own firmware. It uses Texas Instrument’s SimpliciTI and BM Innovations’ Blue Robin RF protocols that enable developers to establish wireless links right out of the box. The firmware transforms it into a sports watch with heart rate monitor, it is written for Windows but could be adopted for other platforms too.
First hackers that got hold of the package used it to wirelessly unlock doors with the buttons and accelerometer. You could utilize other functionalities as well, and jog around while configuring your Linux.

Peripheral nerve stimulator


The jfish peripheral nerve stimulator is a device used in anesthesia or intensive care to assess the degree of neuromuscular blockade (normal communication between motor nerves and skeletal muscle can be blocked by a drug). The device can detect both the magnitude and type of neuromuscular blockade. Itis developed by Daniel Jolley, a doctor and anaesthetic registrar, at The Austin Hospital in Melbourne, Australia. His device uses Texas Instruments' MSP430 line of microcontrollers - ultra-low power 16-bit RISC mixed-signal computers-on-a-chip. Check the document ‘The science and use of the peripheral nerve stimulator‘ for how to use the stimulator.

OpenECG
Open source hardware and software solution for electrocardiography was presented at the
34th Annual Conference of the International Society for Computerized Electrocardiology
The device is battery powered, it can also use an isolation transformer plus defib protection in front of the op-amps on the front-end.

OpenEEGMany EEG-based gadgets - like Zeo personal sleep coach - are in the market. OpenEEGproject can assist your brain-computer interface, bi-directional serial communication or neurofeedback experiments. The modularEEG is currently the most popular of all the designs Check online documentation for more. Then, go to the SourceForge page and download the ModularEEG project zip-file. You will find schematics, board layouts and parts lists that can be ordered from various distributors.

What a paradise for Hackers - they can design gadgets and let other people manufacture them. The open source hardware companies are predicted to be making over one billion in revenues by 2015. Most of them are offering educational electronics, but some of the packages could be utilized for health gadget development. See this talk presented at O'Reilly's foo camp east 2010.


Open source hardware $1m and beyond - foo camp east 2010 from adafruit industries on VimReblog this post [with Zemanta]eo.

Aurametrix is working on low-cost personal diagnostic devices to improve individual health
blockquote { margin:1em 20px; background: #dfdfdf; padding: 8px 8px 8px 8px; font-style: italic; }