- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我对使用Tweets / SMS / Identica或其他短文本状态更新系统来跟踪日常生活观察(或ODL)的想法感兴趣。基本概念是,您将状态更新发送到Twitter或Identi.ca,或者仅发送一条SMS消息,或者以后来可以挖掘以显示模式的格式发送任何消息。
您可以使用它来追踪运动,饮食,电影喜好以及任何您喜欢的事物。
为此,您需要一种语法,该语法允许人和计算机都可以轻松解析您的状态更新。语法应密集,支持较少的字符数,但仍易于阅读。
这个想法并不新鲜,并且有许多用于跟踪运动和饮食习惯的Twitter应用程序。 Twitter本质上已经是一种短文本ODL介质,通过查看搜索的#feeling http://search.twitter.com/search?q=%23feeling您可以轻松地看到它。
或搜索#hurts http://search.twitter.com/search?q=%23hurts或旨在挖掘已经发布到Twitter的大量ODL数据的应用程序:http://www.tweetfeel.com/
通过使用Twitter跟踪ODL,您不再需要强迫人们使用为此目的而创建的给定集成引擎(例如Google Health和HealthVault),而是着重于提高人们已经在使用的ODL跟踪系统的价值(例如Facebook)或Twitter。但是要做到这一点,您需要一种可通用的方法来输入ODL并对这些条目进行数据挖掘,以便可以在更高或至少不同的层次上获得含义。
也可以使用几种语法来概括使用Twitter跟踪所需内容的方法。这些是我最感兴趣的。到目前为止,我知道以下几个方面:
Daytum has a twitter syntax。它使用直接消息,如下所示:
d daytum item : amount
// simple data label and value
d daytum item [category, category] : amount
// same thing but with tagging...
// yfd works with "action" and "value" pairs
d yfd weigh 160
d yfd exercised arms
d yfd watched Back to the Future
// but can be made more complex with units
d yfd drank 2 water
d yfd drank 1 coke
// and timestamps
d yfd played xbox at 20:00
d yfd goodnight at 11:00pm
d yfd goodnight at 11pm
//hashtag with comma separated tags
#mood(happy,elated,drunk)
#mood(sad,sober)
// scales, like not busy
#busy(1)
// very busy
#busy(5)
//straight up numbers
#lbs(250)
#worked(10)
d tyeats #breakfast One bowl of cereal *c500
// the *c500 marks the tweet as 500 calories
@meattwitter Just completed a 4.50 km run with @runkeeper. Check it out! http://rnkpr.com/aaaaa #RunKeeper
#The basic OMHE syntax follows this basic format"
[COMMAND_NAME]<VALUE><#[TAG]>
# Reporting WEIGHT (This is correct):
wt123.4
# In the previous example, COMMAND_NAME=wt and VALUE=123.4
# Reporting WEIGHT (Also Correct):
wt=123.4
# In the previous example, COMMAND_NAME=wt and VALUE=123.4
# Reporting WEIGHT with _TAGS_ (Also Correct) :
wt=123.4#mytag#myothertag
# The previous example has two tags: 'mytag' and 'myothertag'
# Weight is a command that requires a value (Incorrect):
wt
#You can never have an equal sign without a value. (Also Incorrect):
wt=
# Here is an OMHE string with two commands separated by white space " ".
# Says the command 'wt' (weight) has a value of '195' and blood glucose is 150.
wt195 bg=150
# Report the start of a menstrual cycle (correct):
# (Correct) mcycle is a command where value is not required
mcycle
# Report the first day of a menstrual cycle:
# Notice we can still add tags even if no value is given
mc
# Report the start of a menstrual cycle (Incorrect):
# You can't provide an equals "=" sign without a value:
mc=
# Report the adherence to a health directive such as taking medication (correct):
# (Correct) did is a command where value is not required
did
# Report the adherence to a health directive to stretch arm (correct):
did=ARMSTRETCH
# Send Blood Glucose Level:
bg125
# Send Blood Pressure:
bp100d120p65
# Send Blood Pressure using the equals sign style:
bp=100d120p65
# Send Weight:
wt145
wt=145 #Express weight using the equals sign style
w78k #Express weight in kilograms
wt145l #Explicit express weight in pounds (lbs)
wt245.8 #Express fractional weight
wt245p8 #Another way to express fractional weight
# Send blood glucose, patient identifier, a note, and the date:
bg145 id213762732467234 nAllGood d20090117
# Sending blood glucose with a simple note tag (with spaces):
bg145#I'm*feeling*very*tired*today
# Report the start of a menstrual cycle:
mcycle
# Get a copy of your health benefits/insurance card:
gethc
# Send a copy of your health benefits card to someone via fax:
sendhc=6509840982#fax
# Send a copy of your health benefits card as a pdf to someone via email:
sendhc=nurse@mydoc.com#pdf
# Get a copy of your personal health record:
getphr
# Get a copy of your personal health record as a pdf:
getphr#pdf
# Get a copy of your personal health record in CCD format:
getphr#ccd
# Send a copy of your personal health record to someone in CCR format:
sendphrnurse@mydoc.com#ccr
# Send a copy of your personal health record to someone in XML microformat:
sendphr=nurse@mydoc.com#microformat
最佳答案
嘿,弗雷德...您见过OMHE:http://code.google.com/p/omhe/
或OpenMRS消息传递社区中正在进行的工作...(从OpenMRS网站中搜索消息)...
鉴于SMS的长度与tweet的长度相当相似,这些可能会给您一些有关消息传递语法的提示。 :)
希望这可以帮助。
关于twitter - ODL的推文元语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3482315/
我是一名优秀的程序员,十分优秀!