Ginger Pig Cabbage Rolls, Sulka style

I have a bunch of dishes I like cooking and which people seem to really enjoy. They all have a few things in common – I like food that combines a few simple tastes, is relatively simple to cook, and which uses cheap ingredients. As an added bonus this dish should be paleo diet compatible. So here’s something I did today..

Ingredients

  • Pork Belly. Get about 200 grams per person. Go for slices with a lot of succulent fat. I’m currently getting mine from Ginger Pig.
  • Fresh ginger. Lots of it.
  • Garlic. To your taste; 1 large clove per person works for me.
  • Japanese style soy sauce. Japanese soy is super fragrant and lighter compared to Chinese soy sauces. In my experience (from UK and Finland), Japanese soy sauces are now significantly easier to get than even 5 years ago, so getting the right thing shouldn’t be very hard anymore.
  • A whole cabbage. I recommend pointed cabbage because it’s easy to get leaves separated intact. Fresh spring cabbage is another option.
  • Spring Onion.
  • Fresh pomegranate for garnish. Optional.
  • Cooking oil. I use rapeseed oils for frying, they’re fairly neutral tasting and research claims they produce less carcinogens when fried than most other oils.

How to cook

  • Slice the ginger to 1x1mm sticks. A mandolin does wonders here.

  • Slice the pork belly into small bite sizes. Slices that are around 3mm thick and 15mm wide are perfect. But no worries if everything is not perfectly sized. I recommend removing the skin – if you leave it on, remember to add considerably more time for the skin to cook until it’s tender.

  • Put a generous dash of oil onto a pan and put the ginger slices on medium-low heat. Let the ginger cook softly until it’s all cooked through and very soft. This guarantees you’ll get the best of the tastes from the ginger, as well as nice mouth-feel. Do not allow the ginger to brown, if you see any browning you have too much heat on; take off the pan and let it cool before putting back on reduced heat.
  • When the ginger is all done, put crushed and sliced garlic on. Let it cook for a very short while. Again if the garlic browns, you’ve just blown the taste.
  • When the garlic is slightly cooked, put the pork on. Cook on medium heat until it’s fully cooked and then double that time. The goal is to have the pork be soft and absolutely chock full of the ginger aroma.
  • While the pork is cooking, slice the spring onions into thin rings. Separate the pomegranate seeds. Separate the cabbage leaves; try to keep them intact.
  • When the pork is super thoroughly cooked, add a dash of soy sauce (to taste – lots if you like salty, less if not) and spring onions on the pan and let it cook for 30 seconds or so, then move the dish to a serving bowl. Decorate with pomegranate seeds.
  • Serve the cabbage leaves on a large plate. The idea is, you get a leaf that serves as a plate, put ginger pig into your leaf, roll the leaf into a package and chew through.

Apologies for lack of images on the last parts of the process and the finished product. Got too hungry to shoot photos! :D

Diabetes and Vitamin D

See below for two studies on vitamin D and diabetes. The short of this is, giving children and pregnant women 50 to 100 ug of Vitamin D supplements / day is probably a very good idea.

The current recommended dose of vitamin D supplements in most of the west (10 µg/day) is based on the smallest dose found in studies to prevent rickets. Two of the studies below look at dosages that are sufficient to increase the vitamin D levels to that of people living near the equator, where the incidence of diabetes approaches zero!

So, while 50 to 100 µg/day is 5 to 10 times higher than the official recommended dose in most the western countries, this a safe amount as the vitamin starts to be poisonous at around a thousand times larger does than this (the recorded poisonings are from people who confused micrograms and milligrams and consumed thousand times larger doses than recommended for extended periods) and given the vitamin D level required to give protection against diabetes seems to be that occurring naturally near the equator, it doesn’t make any sense to consume less.

As for whether the current 10 µg / day is working, see the below chart of what happened when Finland reduced the recommended dose from 25 µg / day to the current 10 µg / day.

Screen Shot 2013-07-29 at 10.07.25

Now, I’m not saying vitamin D is the holy grail and that deficiency (as compared to the levels found on the equator) is the only contributing factor on diabetes, but it does look like the current recommendations are actively contributing to Finland having the highest occurrence of type 1 diabetes in the world.

The papers:

Preclinical serum 25-hydroxyvitamin D levels and risk of type 1 diabetes in a cohort of US military personnel

To determine whether serum levels of 25-hydroxyvitamin D (25(OH)D) in young adults are associated with risk of type 1 diabetes mellitus (T1D), we conducted a prospective, nested case-control study among US active-duty military personnel with serum in the US Department of Defense Serum Repository, identifying 310 T1D cases diagnosed between 1997 and 2009 with at least 2 serum samples collected before disease onset and 613 controls matched to cases on age, sex, race/ethnicity, branch of military service, and dates of serum collection. Conditional logistic regression was used to estimate rate ratios and 95% confidence intervals. Among non-Hispanic whites, those with average 25(OH)D levels of ≥ 100 nmol/L had a 44% lower risk of developing T1D than those with average 25(OH)D levels < 75 nmol/L (rate ratio = 0.56, 95% confidence interval: 0.35, 0.90, P for trend = 0.03) over an average follow-up of 5.4 years. In quintile analyses, T1D risk was highest among individuals whose 25(OH)D levels were in the lowest 20% of those measured. There was no association between 25(OH)D levels and risk of T1D among non-Hispanic blacks or Hispanics. Low 25(OH)D levels may predispose healthy, young, non-Hispanic white adults to the development of T1D.

In other words, the study looked at both health individuals, as well as military personnel who’d developed diabetes, went back to get blood samples that had been collected in previous years and retroactively checked the vitamin D levels to determine if vitamin deficiency correlated with the likelihood of getting type 1 diabetes. The study concluded there is a correlation for non-hispanic whites. Based on this research, the vitamin D level should be at least 100nmol/L.

Intake of vitamin D and risk of type 1 diabetes: a birth-cohort study

Findings: Dietary vitamin D supplementation is associated with reduced risk of type 1 diabetes. Ensuring adequate vitamin D supplementation for infants could help to reverse the increasing trend in the incidence of type 1 diabetes.

Very long term (1966 to 1997) Finnish study that found adequate level of vitamin D protects against type 1 diabetes. Note that in this study, the children were supplemented with 2000 IU of vitamin D daily, while the recommended dose for children in Finland has since been reduced to 400 IU, which seems to have resulted in sharp increase in the occurrence of diabetes.

Vitamin D and pancreatic islet function. I. Time course for changes in insulin secretion and content during vitamin D deprivation and repletion.

These findings confirm that vitamin D deficiency causes alterations of pancreatic B-cell function.

The association between ultraviolet B irradiance, vitamin D status and incidence rates of type 1 diabetes in 51 regions worldwide

Conclusions: An association was found between low UVB irradiance and high incidence rates of type 1 childhood diabetes after controlling for per capita health expenditure. Incidence rates of type 1 diabetes approached zero in regions worldwide with high UVB irradiance, adding new support to the concept of a role of vitamin D in reducing the risk of the disease.

Nicely colour data in Google Spreadsheets

I love a feature in Excel (never thought I’d say that!) where I can choose a range of data and have Excel colour the backgrounds of the cells from red to green or green to red based on the cell’s value in the selected range. Excel calls this “Conditional formatting” and while Google Spreadsheets has a feature that has the same name, it’s really a completely different thing and it’s driving me nuts. But it has scripting, so I had to fix this lack of functionality.

Screen Shot 2013-07-04 at 16.54.59

To install this script, open your spreadsheet, open Script editor… in the Tools menu. Paste the source in and save. Then reload the actual spreadsheet. You should now have a new menu in your toolbar called ColourTool, with two options to colour cells. Choose the range you want to colour, choose an option and tada, your cells change background colour.

Note: This has not been tested extensively. There’s no code here to change the actual data, but, use at your own risk.

(Apologies for WordPress doing things to code formatting!)


function onOpen() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.addMenu("ColourTool", [ {name: "High is Green, Low is Red", functionName: "hiToLow"},{name: "High is Red, Low is Green", functionName: "lowToHi"}]);
}

function hiToLow() { colourCells(1); }
function lowToHi() { colourCells(2); }

function colourCells(mode) {
var s = SpreadsheetApp.getActiveSheet();
var r = s.getActiveRange();
var rows = r.getNumRows();
var cols = r.getNumColumns();

var minV = 9007199254740992;
var maxV = -9007199254740992;

for(var i = 1; i < = cols; i++) {
for (var j = 1; j <= rows; j++)
{
var value = r.getCell(j,i).getValue();

if(value !== "")
{
minV = Math.min(value, minV);
maxV = Math.max(value, maxV);
}
}
}

for(var i = 1; i <= cols; i++) {
for (var j = 1; j <= rows; j++)
{

var val = r.getCell(j,i).getValue();

var percent = (val - minV)/(maxV-minV);

if (mode == 2) { percent = 1-percent; }

var colour = getColor(percent);
r.getCell(j,i).setBackgroundRGB(colour[0],colour[1],colour[2]);

}
}
}

function getColor(power)
{
var H = power * 0.4;
var S = 0.9;
var L = 0.6;

return hslToRgb(H,S,L);
}

function hslToRgb(h, s, l){
var r, g, b;

if(s == 0){
r = g = b = l; // achromatic
}else{
function hue2rgb(p, q, t){
if(t < 0) t += 1;
if(t > 1) t -= 1;
if(t < 1/6) return p + (q - p) * 6 * t;
if(t < 1/2) return q;
if(t < 2/3) return p + (q - p) * (2/3 - t) * 6;
return p;
}

var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
var p = 2 * l - q;
r = hue2rgb(p, q, h + 1/3);
g = hue2rgb(p, q, h);
b = hue2rgb(p, q, h - 1/3);
}

return [r * 255, g * 255, b * 255];
}

Apple getting serious about gaming

When I wrote about Apple and their future games plans before (here and here), I was being optimistic on their timetable for expanding their games offering beyond playing on iOS device screens.

This seems to have changed; there’s strong signs on iOS 7 that Apple is about to put more energy on Big Screen playing. As detailed by Techcrunch and AppleInsider, Apple is not only adding a new games specific SDK into iOS 7, as well as launching support for new game controllers that connect wirelessly to an iOS device.

The SDK makes sense in pure play on iOS device screen context, but the controllers strongly suggest Apple is making a bet that increasing amount of people will play multiplayer games on iOS, in play contexts where more than one person shares the same screen. And sharing a screen is hard on small screens, so this is clearly an Apple TV bet. The current Apple TV allows gaming where you stream your game onto a big screen and indeed games like Real Racing provide very smooth split screen play experience using this tech.

Having said that, almost no game takes advantage of this. There’s two reasons this is happening. Firstly, the API to stream a second screen to the TV is confusing at best and there’s no API to setup the screen in app, vs user having to setup the streaming using semi-hidden iOS menus. Second, Apple is not promoting this type of play scenario anywhere, so there’s no bandwagon to jump on for developers, so most devs just won’t bother.

Now, my prediction here is, Apple will update the Apple TV set top box and/or release a TV set in fall of 2013 that runs a version of iOS 7, and are betting game developers will want to develop games for the platform. They’re releasing the SDK now to make developers familiar with it and to get some developers make reference games for the upcoming platform. If I was a betting man, I’d get my hands on one of these controllers and create a game that works beautifully with the streaming scenario on current Apple TV, assuming I’m porting it to a new box very soon.

Teaching your kid to ride a bike, the right way

The summer has arrived and I’m seeing a lot of parents teach their children to ride a bike in my visits to Victoria Park. And it’s painful, as most of them are doing it utterly wrong. Learning to ride a bike is safe, fun and easy when done the right way, as opposed to the episodes of frustrated crying I’m having to witness.

Here’s how to do it the Right Way:

* You need a bike where you can adjust the saddle to go so low, your child can have both his feet on the ground simultaneously, knees bent.
* Do not purchase stabilizers, and if the bike already has one or more, take it off. Stabilizers make it harder for your child from learning actual balance.
* Remove the pedals from the bike, which turns it into a kick bike.
* STEP 1 for your child: learn to kick yourself forward using his/her feet without falling over. When he/she is good enough to glide forward for 5+ meters without touching ground, the balance is 90% there for biking. It’s probably a good idea to spend a couple days at this level, before progressing on.
* STEP 2: Put the pedals back on. Do not raise the saddle – you kid still needs to be able to put both feet on ground comfortably. Help the kid get started with the pedaling by pre-positioning the pedal of the stronger foot to be in the optimal position (just push down!), possibly gently pushing from the back to get up to speed (remember, he can balance on the kick bike). Your kid now needs to learn to get to speed and STOP on her own. Doing this bit on the lawn might be a good idea.

How long does this take? My daughter, age 3, learned the kickbiking to perfection within two days of practice (and didn’t need much encouragement as it was so much fun), and the pedalling step took about 10 minutes, after I told her she can’t ride on asphalt before she can start and stop by herself.

So what I’m advocating as a Bad Idea is:

* Using balancing wheels – they teach your child something other than balancing on the bike!
* Aiming to save money by getting a large bike, so you don’t have to get another one the next year.

So I’d have one more list here, here’s three additional tips:

* Remember to give a boatload of praise for your kid for trying to learn. Being praised for trying works much better than being praised for success.
* Get a good helmet. Of all biking helmets for kids, the best ones I’ve seen by far, are manufactured by Bell.
* If you can afford it, I recommend getting a learner bike and the real bike from Puky. The bikes are very high quality, and the saddle is adjustable to lowest height for each wheel size, that I’ve seen on bikes from any manufacturer.

Brief history of privacy, and a projection to the future

Privacy, as people currently think of it, is a modern invention.

If you go back 20 000 years, we lived in caves, where nobody had a second of peace. If you go back 200 years, practically everyone lived in small villages, where you had privacy in your home, but in practice everyone knew what everyone was up to.

The Village Privacy Model had a strong influence on people’s behaviour. If you behave in a manner that’s unacceptable to the community, you knew everyone around you go to know it, and you still had to face them. Mess up badly enough, and your life became very hard, regardless of whether there were “official” sanctions against you or not.

Enter urbanisation. People are moving into cities, where you’re effectively anonymous. It’s very easy to go and misbehave in a manner that wasn’t possible in smaller communities, and have no repercussions on it whatsoever. You won’t see those people again. You’re in the City Model of Privacy.

What this also means is the reverse – you can assume you’re in semi private mode at all times. Not only are you safe in your home, you’re also anonymous outside. I think this is having significant influence on how people perceive the expected level of privacy you have now – while at the village level there was almost no expectation of privacy, you can now expect privacy at all times.

Even further, enter Online use. You’re even more anonymous. Go to some random site to troll and there’ll be no repercussions. Nobody will know who you are. Nobody has the resources to track people.

Except you can’t assume this anymore. Technology caught up.

We’re entering a phase where it’s sensible to assume someone sees you at all times, and is probably making a recording of it. Both online and offline.

What inspired this post is this video. Some idiot tripped and severely hurt a young hockey player. It got recorded and went viral, and effectively ruined his life.

So for whatever it’s worth, we’re now getting back to the Village Model, from the brief experiment of the City Model. It’s Marshall McLuhan’s Global Village, with all of it’s privacy implications. He didn’t personally witness the computing technology explosion and so didn’t predict the implications to the extreme, but I’m sure he’d be excited if he was living today.

A lot of people are finding this new lack of privace extremely creepy and I don’t blame them. It’ll be interesting to see how the society adjusts. Going back to City Model is not going to happen.

Apple, and a cheaper iPhone

The Apple blogosphere and analysts have discussed recently on Apple working on creating a cheaper iPhone. The reason the proponents have put forth on why Apple’s doing this, is so they can sell the device to a broader set of consumers. Some are saying Apple might be doing it, but for different reasons. I recall reading a couple posts saying Apple will never do it.

I believe Apple is working on a cheaper to manufacture iPhone. To understand what they’re aiming at with the new model, and why they’re developing it, we need to look at what they’re doing now, and the cons of that approach.

Apple’s current strategy for providing cheaper devices to the market is by continuing supplying up to two generations of old models, and selling those to operators at discounted prices. The operators in turn offer the devices to consumers with locked contracts against no or almost no upfront cash payment.

While this seems to have worked for Apple brilliantly, it has a few deep issues:

  • As an app developer, the fact that iPhone 3GS was sold up until September 2012 makes me want to poke fingers into my ears and go “Lalalalalaa I can’t hear you” until I forget what I heard. The device, with it’s 2009 capabilities, is frustrating to develop against. And I bet the iOS devs felt the pain, too.
  • Apple seems to get massive scale benefits for having so few iPhone models out at any given time. But having three generations of iPhone on sale simultaneously, where they share no (or almost no) parts, works against them in this regard.
  • Related to above, in manufacturing old models, Apple is married to component supply chain deals made years ago, which they might want to get rid of. With the Samsung / Apple competition heating up, Apple would probably love stopping supplying phones to the market that used a wide array of Samsung components. With the current strategy, iPhone 5 will continue to be supplied until some time late 2015. That’s quite a ways off.
  • While the older models of iPhone are cheaper, there’s nothing cool about purchasing a phone launched almost three years ago, so the current strategy cannot possibly be helping Apple in positioning them in the market. The latest generation iPhone does well as a device when you compare it against the Android competitors, but when comparing the older iPhones to similarly priced Androids, the devices suddenly look pretty tired.
  • Slow technology rollout schedule – Apple is now selling a phone with the 30 pin connector, and with the past scheduling will be until 2014, unless they update iPhone 4S with Lightning or significantly shorten the product update cycle.

Additionally, I have no data on how the bill of materials changes over time for the phones, but I doubt the total manufacture costs of an iPhone 4 can drop dramatically over the period of two years. The bill of materials for iPhone 4, 4S and 5 have all been estimated at around $200 at launch. The consumer price difference of each step is $99, where iPhone 4 on contract goes for $0, 4S goes for $99, and 5 is $199 on contract. For Apple to get the same amount of money from 4S sales now, the cost of manufacture for the model needs to have dropped around 50%, which it probably hasn’t. If that’s true, Apple is making less profit on the old models than with the brand new one.

So what’s the alternative to Apple that’d get rid of the above issues? Create a new iPhone design where they can manufacture two versions of the same generation device, where one phone is the high end and one is lower spec. The high end is sold as the main new generation mode is now, and the lower spec version replaces the operator subsidized models. This is:

  • Great for devs: a down-specked version of the latest generation iPhone would probably be much better than 2-3 year old model.
  • Great for consumers: you’d be able to purchase a hip new phone, regardless of your budget, and probably get better tech, too.
  • Great for supplier management: faster turnaround time on supply chain management, which should be great for Apple’s ability to pick strategic partnerships and move away from undesired partners.
  • Great for component scaling: potential scale benefits for some components such as CPUs, where the parts rated at slower spec would be used in the cheaper model.
  • Great for staying current: being able to update the entire phone line speeds up rollouts of new tech – with only current generation devices on the market, there’d be no delay in rolling out new technologies such as the Lightning connector.

With a cheaper bill of materials for the new cheaper to manufacture model, it’s entirely possible Apple would be able to get similar profit from the phone that’s similar to the current significantly subsidized old models, but have a much more desirable product.

With the above benefits, I’d not be surprised if Tim Cook introduces two models of phone the next time he goes on stage, and discontinues iPhone 4 and 4S. Apple doesn’t need a phone that’s cheaper to consumers – it needs a brand new phone that’s cheaper to manufacture.