Search posterous

Search all posts and users. Type a name, type a favorite song title, whatever! See what comes up.
  

More posterous blogs











More recommended blogs »

Here are posterous posts filed under chronic...

Dale says...

Chronic is an amazing gem. It allows you to do things like take "tomorrow at 10" and get an actual date and time from it. It's easy to use

>> require 'chronic'
=> []
>> Chronic.parse("tomorrow at 10")
=> Thu Nov 12 10:00:00 -0800 2009

This essentially allows you to process free-form text into Time objects. However, there is one big gotcha if you're using time-zones that I recently had some trouble with.
Chronic calculates the time in the local time-zone - thats the machines time-zone, not the time-zone set as the default in the environment.rb file using

config.time_zone = 'UTC'

nor the time-zone that you explicitly set using

Time.zone = 'Tokyo'

Let's say your machine (your development laptop let's say) is on Pacific US time. If we do this

>> Time.zone = 'Tokyo'
>> Chronic.parse("tomorrow at 10am")

we get Thu Nov 12 10:00:00 -0800 2009 (assuming tomorrow is November 12th 2009). This is the time formatted for the local time-zone, Pacific US time, not the one for Tokyo as you might expect - whoops. This can be especially confusing/fustrating if your development machines and production machines doens't share the same local time. Everything could look correct during development because the local time and your default time-zone are the same, let's say Pacific US - great everything looks good, your times are coming out correct. But when you move to production your local time in production is UTC and now your times are off by 8 hours and you don't know why.

OK, now that we know it's a problem, how do we fix it?

>> Time.zone = 'Tokyo'
>> my_time = Chronic.parse("tomorrow at 10am")
>> real_time = Time.zone.parse(my_time.strftime("%Y-%m-%d %H:%M:%S"))

which will give us Thu, 12 Nov 2009 10:00:00 JST +09:00 which is the time correctly formatted for Tokyo, 9 hours ahead of UTC time. So unfortunately we need to do an extra conversion step, but it's a small price to pay to get the power of Chronic.

EDIT: Thanks to Cuth for pointing this out. This is not in the Chronic RDoc here, but is mentioned in the Git readme here.

You can also set the time zone explicitly like this

>> Chronic.time_class = Time.zone

So now, if we use the example above, where the time zone is Tokyo, Chronic.parse("tomorrow at 10am") should now correctly return Thu, 12 Nov 2009 10:00:00 JST +09:00

 

Filed under: chronic

Terr says...

McKesson Corporation, the nation’s oldest and largest healthcare services and IT company, today announced the release of its 2008-2009 Corporate Citizenship Report and launched the McKesson Foundation’s new strategic focus on chronic disease management. Designed to minimize paper and energy usage, the Company’s new online-only interactive report tells McKesson’s corporate citizenship story through the voices of McKesson employees and stakeholders. McKesson’s Corporate Citizenship Report is available at www.mckesson.com/citizenshipreport.

McKesson’s 2008-2009 Corporate Citizenship Report
McKesson’s 2008-2009 Corporate Citizenship Report highlights the Company’s high levels of employee engagement, commitment to environmental sustainability, culture of diversity and inclusion, and industry leading efforts to improve the safety, quality, and cost of healthcare. Corporate social responsibility principles are embedded within McKesson’s mission and focused goal of helping its customers improve patients' lives. For example, in the last year nearly half of McKesson’s 32,000 employees participated in the Company’s annual Community Days volunteer event. At hundreds of sites worldwide McKesson Community Days volunteers created more than 16,000 care packages for hospitalized veterans at VA medical centers. 

McKesson’s environmental sustainability journey, while still in its initial stages, has already yielded rewards for the planet and the Company, including a better understanding of McKesson’s greenhouse gas emissions, cost savings and employee participation. In 2008 McKesson established an executive-level Environmental Council and then launched a network of 12 employee-led Environmental Councils at McKesson sites around the world. After only eight months, McKesson Environmental Councils were responsible for projects that not only reduced the Company’s environmental impact but also resulted in nearly $100,000 in cost savings. In August McKesson also unveiled it’s first LEED-certified pharmaceutical distribution center located in the Chicago, Ill. area.

“At McKesson our belief is that a commitment to good corporate citizenship is a fundamental part of creating sustained value for both society and the company,” said Carrie Varoquiers, vice president of corporate citizenship and president of the McKesson Foundation. “McKesson’s corporate citizenship work complements the Company’s goal of helping our customers improve patients’ lives.”

Information within McKesson’s 2008-2009 Corporate Citizenship Report is framed by the Global Reporting Initiative (GRI) G3 Guidelines, internationally recognized sustainability and social responsibility reporting standards. McKesson self-declares this Report to GRI application level C. A full list of GRI indicators and McKesson's reporting on these indicators is available in the Corporate Citizenship Report’s GRI Index. McKesson publishes its Corporate Citizenship Report biennially and released its last report in fall 2007.
 
McKesson Foundation Strategic Focus on Chronic Disease Management
In conjunction with the Company’s Corporate Citizenship Report release, the McKesson Foundation announced a new strategy to focus on chronic disease management. By combining the Foundation’s cash donations with McKesson Corporation’s deep institutional health care services and IT expertise, the program seeks to further the social impact that can be achieved. The Foundation’s near-term commitment is to fund innovative diabetes management projects.
 
During this challenging economic environment the Foundation has also expanded its matching gift program for employees and opened it up to all eligible 501(c)(3) organizations. For more information about the McKesson Foundation visit www.mckesson.com/foundation.

 

Filed under: Chronic

#Healthy chocolate can reduce chronic inflammatory conditions plus pain, fatigue & fibromyalgia. Info @ http://ping.fm/eQCfb

Filed under: chronic

#Healthy chocolate can reduce chronic inflammatory conditions plus pain, fatigue & fibromyalgia. Info @ http://ping.fm/744FC

Filed under: chronic

@JBNIherbs says...

Your body energy hangs in a delicate balance between hormones and neural activity. If your nerves are stimulated, you feel energy. If your nerve traffic slows down, you feel tired and sleepy. And yes, both eaten foods and the thoughts you entertain effect your nerves, externally and internally, respectively.

The New York Times article, "‘Energy Shots’ Stimulate Power Drink Sales," shows a growing trend of you and your workmates relying on an external lift. While there is minimal to no health risk in sparing caffeine use, researchers at Duke University Medical Center show that caffeine increases stress. Further, the researchers found that the caffeine in 32oz of coffee elevates blood pressure for hours. James D. Lane, PhD says the impact is enough to raise heart attack and stroke risk.

So, how do you keep yourself energized and refreshed after a big breakfast or lunch? You don't. 

If your breakfast or lunch contains alcohol, sweets, or carbs, these trigger a rush of insulin from your pancreas. Insulin then fights other amino acids that keep you alert. Ultimately, your diet is what allows triptophan, serotonin, and melatonin to flood your system and put you in sleep mode.

Now that you know the chemistry behind fatigue, the following will be a no brainer:

#3 Eat a high protein, low carb/sweets/alcohol meal when you need to be alert.

#2 Stimulate your nervous system by actually stimulating it. Jog, run, or do something that requires you get up from your chair.

#1 Eat celery or carrots. The crunching sound also stimulates your nervous system and even your adrenaline.

DISCLOSURE: JBNI makes Epstin, a 100% natural, all herbal immune and energy booster.

Filed under: chronic