Featured

How to Upgrade Your Life: A Primer On Diet And Fitness

Contents

  1. Introduction
    1. Lifestyle
    2. Diet
    3. Exercise
  2. Exercise
    1. Activity level
    2. Stretching and warm-up
    3. Resistance training
    4. Rainy day alternatives
    5. Mobility routines
  3. Diet
    1. Calories and macro-nutrients
    2. Troubleshooting your diet
    3. Groceries guide
  4. General advice

Introduction

This is a guide to help you make sustainable changes to your lifestyle and cultivate good habits. A healthy lifestyle consist of 3 components: lifestyle, diet and exercise.

Continue reading “How to Upgrade Your Life: A Primer On Diet And Fitness”

Protein – Good? Bad? Healthy?

Nowadays everything seems to have that “High in protein” label. From granola to spaghetti, that label is everywhere in the supermarket. But most of them are usually really low in protein! For example, a serving of that granola only contains 12g of protein, but a 17g of carbohydrates. The pasta fares slightly better with 24g of protein with 21g of carbohydrates per serving.

Continue reading “Protein – Good? Bad? Healthy?”

The body you want is not a destination, but a lifelong journey.

Great article how on your mindset affects you and what to do about it.

Why You’re Thinking Yourself Out of the Perfect Body

The body you want is not a destination, but a lifelong journey.

Key takeaways:

  1.  Plan ahead
    READ:
    Food rules and pre-deciding
    Do you have a backup plan?
  2. There are no shortcuts, no magic pills.
  3. Focus on the process. Build sustainable habits.
    READ:
    The only habits that matter
    Process monitoring beats progress monitoring
  4. Stop procrastinating. Start small and build into it to make the task seem less daunting.
    READ:
    Take the one push-up challenge
  5. You are not in this alone. Seek help if needed.

water

Dihydrogen Monoxide (DHMO) is a colorless and odorless chemical compound, also referred to by some as Dihydrogen Oxide, Hydrogen Hydroxide, Hydronium Hydroxide, or simply Hydric acid. Its basis is the highly reactive hydroxyl radical, a species shown to mutate DNA, denature proteins, disrupt cell membranes, and chemically alter critical neurotransmitters. The atomic components of DHMO are found in a number of caustic, explosive and poisonous compounds such as Sulfuric Acid, Nitroglycerine and Ethyl Alcohol.

Have you heard of this toxic substance?

Sound scary doesn’t it?

Have you had your daily dose of DHMO?

All things are poison and nothing is without poison, only the dosage makes a thing not poison.
Paracelsus

 

 

glass half full

The other day I was listening to a podcast interview featuring the Jolly Lama – Lama Surya Das.

The question “Is your glass half full or half empty” was brought up. And he replied that that you can look at the glass as 3/4 full instead of 1/2 half empty.

Yes, that doesn’t make mathematical sense.

But what I felt he was trying to convey was that, you can’t change the problem but you can choose how you react, how you perceive the problem.

It got me thinking that maybe he is right.

Our perceptions in a way skew our reality. More often than not, I personally perceive my problems to be bigger than they really are. Perhaps reality itself is.. not as real as it seem, but fluid and subject to change. Maybe it is a “construct”, a amalgamate of people’s perceptions.

Perhaps what is more important is how you experience the world, rather than what the world really is.

I don’t really know what’s the point of my post, but this was just something that was rattling in my head today.

404261_10150501164111297_521507870_n
Lumpini Park – Bangkok 2012

What’s wrong with saying “All Lives Matter” ?

With all the madness going on in the US, I’ve been wondering this myself. And I found this thread to be really helpful in understanding why it is not helpful to say “All Lives Matter”.  So I have compiled the top 5 most upvoted comments here, hope you find it useful too.
Continue reading “What’s wrong with saying “All Lives Matter” ?”

Ball Check

🧐Check your balls

😫A 2017 Study revealed that among among Male University Students from Bangladesh, Madagascar, Singapore, South Africa and Turkey:
86.4% had never practiced Testicular Self Examination (TSE) in the past 12 months

🤬The proportion of past 12 month TSE was the highest (17.6%) among male university students in South Africa and the lowest (7.3%) among students in Singapore.

👻Not sure how to do it? Check out the link below 👇
https://www.testicularcancerawarenessfoundation.org/self-exam/

Source: Peltzer K, Pengpid S. Knowledge, attitude and practice of testicular self-examination among male university students from Bangladesh, Madagascar, Singapore, South Africa and Turkey. Asian Pac J Cancer Pre. 2015;16(14):4741–4743. doi: 10.7314/APJCP.2015.16.11.4741.

Where to get the cheapest nuts and dried fruits in Singapore?

Sharing what I found so far:

Teck Sang

11 Hongkong St, Singapore 059654

Mon – Fri: 9am – 5pm

Sat: 9am – 3pm

Sun: Closed

Prices [I have requested for a price list and am awaiting their response]:

From spring tomorrow:


Phoon Huat

http://www.phoonhuat.com/cos/o.x?c=/…view&rid=15084

Operating hours differs from outlet to outlet.

Prices [Only requested for a few]:

code description price as of (02/07)

921 NUT ALMOND WHOLE BLANCHED/REDMAN – 250g – $5.25

968 NUT ALMOND WHOLE BLANCHED/REDMAN – 1kg – $17.00

925 NUT ALMOND WHOLE WITH SKIN/REDMAN – 250g – $4.60

976 NUT ALMOND WHOLE WITH SKIN/REDMAN – 1kg – $14.60

12455 NUT WALNUT PIECES CALIFORNIA/REDMAN – 250g – $5.80

12456 NUT WALNUT PIECES CALIFORNIA/REDMAN – 1kg – $20.80

51783 NUT WALNUT HALVES CALIFORNIA/REDMAN – 250g – $6.60

51782 NUT WALNUT HALVES CALIFORNIA/REDMAN (PKTX1KG) $22.00

993 NUT PECAN/REDMAN -250g – $8.55

991 NUT PECAN/REDMAN – 1kg – $31.50

67734 NUT BRAZILIAN/REDMAN – 250g – $10.20

50792 DRIED FRUIT FIGS/REDMAN – 250g – $5.10

50791 DRIED FRUIT FIGS/REDMAN – 1kg – $16.50

7125 DRIED FRUIT APRICOT WHOLE/REDMAN – 250g – $2.75

769 DRIED FRUIT APRICOT WHOLE/REDMAN – 1kg – $8.4

Will update when I find new deals or information.

 

ConfigureAwait

Csharp Logo

I’ve been trying to wrap my head around async and at the moment trying to figure out how to incorporate .NET standard class libraries using async methods with a WPF application.

I’ve done a bit of reading and here are my conclusions, please feel free to correct me:

Other references I found:

This is my use case:

The user will push a button on the WPF application to complete a transaction.
The WPF application will process the application (e.g. validation and database transactions) then call the method in the .NET standard class library to make a post to an endpoint.

Since I will not be updating any UI elements, or require to do any work on the main thread, I can call ConfigureAwait(false).

private async Btn_click(){   
    doValidationAndSaveToDb();   
    await myClassLibrary.SendPostAysnc().ConfigureAwait(false);  
};

However, if I do need to, I should either be doing this:

private async Btn_click(){   
    doValidationAndSaveToDb();   
    await myClassLibrary.SendPostAysnc().ConfigureAwait(true); 
textBox1.text = "test"; 
};

or this:

private async void Button_Click(object sender, RoutedEventArgs e)
{
    // var id = Thread.CurrentThread.ManagedThreadId;
    var result = await ProcessAsync();
    // back on the ui thread
    // id = Thread.CurrentThread.ManagedThreadId;
    TextBox1.Text += result;
}

private async Task<string> ProcessAsync()
{
    // var id = Thread.CurrentThread.ManagedThreadId;
    var result = await httpClient.GetStringAsync("https://example.com").ConfigureAwait(false);
    // id = Thread.CurrentThread.ManagedThreadId;
    // could be on any thread here
    return result;
}  

Big thanks to u/isocal and the rest of the r/dotnet users for their help and input!

 

%d bloggers like this: