Heavenly Father, in you we live and move and have our being.
Guide and govern us by your Holy Spirit, that in all the cares
and occupations of our life we may not forget you, but may
remember that we are ever walking in your sight; through
Jesus Christ our Lord. Amen.
(BAS, A Prayer for Guidance, 130)
Thursday, October 13, 2011
Tuesday, September 20, 2011
iframes CAN have 100% height
I made a handy find the other day: a simple script that allows your iframe to expand to 100% of the page. This is currently impossible with CSS, but with a few lines of javascript, when you shout, "Expand!", your iframe will ask, "How high?!"
I found this script at: http://www.activewidgets.com/javascript.forum.10948.6/is-there-any-way-to.html
Here is the iframe code you need:
Demo: http://lukejohnson.ca/code/iframe-100-height.php
I found this script at: http://www.activewidgets.com/javascript.forum.10948.6/is-there-any-way-to.html
<script language="JavaScript">
<!--
function resize_iframe()
{
document.getElementById("info").innerHTML='iframe offsetTop: <b> '+document.getElementById("glu").offsetTop+"</b><br>body.offsetHeight:<b>"+document.body.offsetHeight+"</b>";//display some information on the screen
var height=window.innerWidth;//Firefox
if (document.body.clientHeight)
{
height=document.body.clientHeight;//IE
}
document.getElementById("glu").style.height=parseInt(height-document.getElementById("glu").offsetTop-8)+"px";//resize the iframe according to the size of the window
//document.getElementById("glu").height=document.body.offsetHeight-document.getElementById("glu").offsetTop-26;
}
/*
//Here is another way to define the function (this function reloads the page whenever the user resizes the page)
window.onresize=
function (e)
{
location.reload();
};
*/
window.onresize=resize_iframe; //instead of using this you can use: <body onresize="resize_iframe()">
//-->
</script>
I wanted my iframed page to appear to take up the entire page without displaying scrollbars of its own. The script on its own was displaying secondary scrollbars, but with a little CSS, I was able to get rid of them, leaving only one scrollbar:<style type="text/css">
*, html, body {width: 100%; height: 100%; margin: 0; padding: 0;}
body {width: 100%; overflow: hidden;}
#glu {border: 0;}
</style>
Here is the iframe code you need:
<iframe src="YOUR_WEBPAGE_URL" frameborder="0" id="glu" onload="resize_iframe()" scrolling="auto" width="100%"></iframe>And presto! You will have an iframe that takes up the entire window, which will resize to your browser window's size.
Demo: http://lukejohnson.ca/code/iframe-100-height.php
Friday, July 29, 2011
Anglican Liturgical Calendar PHP Script
For any Anglican webmasters out there, this is a great find! A PHP script that determines which day it is on the liturgical calendar (of the Church of England). It can be placed within any tag. The author has it set in h3 tags, which can be formatted easily with CSS however you wish.
Kudos to Don C. Warrington, https://www.vulcanhammer.org/anglican-calendar-script/
View code here: http://phpscripts4u.com/calendars/php-anglican-calendar-script/
Kudos to Don C. Warrington, https://www.vulcanhammer.org/anglican-calendar-script/
View code here: http://phpscripts4u.com/calendars/php-anglican-calendar-script/
Tuesday, July 26, 2011
"Berrying" Jesus
Here is a grammatical quandary for you:
Why is "buried" or "bury" so often pronounced as "berried" or "berry"? This is a very irregular pronunciation of the English "u". It would be odd to say, "I like Sehbway sandwiches," or, "The good, the bad, and the 'ehgly'".
Similarly spelled English words follow the normal pronunciation of "u", such as "hurry" (which, at least in colloquial speech, actually sounds a little more like "er" as in "her"). I'd even accept "uh" as in "up" or "oo" as in "rude". But this "eh" pronunciation is just a little unnatural.
This comes to mind every Sunday as we recite the Apostles' Creed, and I hear 80-some voices say, "He was crucified, died, and was 'berried'", as if somehow Jesus was made berry-like after death, or trounced by a horde of berries (just like a mob "mobs" somebody).
If there is a grammatical guru out there with an explanation, I'm all ears!
UPDATE:
Dr. Rhoda Cairns, English professor at Briercrest, kindly set me straight:
Why is "buried" or "bury" so often pronounced as "berried" or "berry"? This is a very irregular pronunciation of the English "u". It would be odd to say, "I like Sehbway sandwiches," or, "The good, the bad, and the 'ehgly'".
Similarly spelled English words follow the normal pronunciation of "u", such as "hurry" (which, at least in colloquial speech, actually sounds a little more like "er" as in "her"). I'd even accept "uh" as in "up" or "oo" as in "rude". But this "eh" pronunciation is just a little unnatural.
This comes to mind every Sunday as we recite the Apostles' Creed, and I hear 80-some voices say, "He was crucified, died, and was 'berried'", as if somehow Jesus was made berry-like after death, or trounced by a horde of berries (just like a mob "mobs" somebody).
If there is a grammatical guru out there with an explanation, I'm all ears!
UPDATE:
Dr. Rhoda Cairns, English professor at Briercrest, kindly set me straight:
I'm not a phonetics expert by any means, but the OED gives the pronunciation of "bury" thus: /ˈbɛrɪ/. According to one elaborate phonetic chart I found, the symbol for the "u" is pronounced as a short "e," as in "eh" and "head." If the symbol were flipped horizontally, then the pronunciation *would* be the "er" sound, as in "urge" and "heard." So it is perfectly correct to "berry" Jesus, as far as I can ascertain. There is an obsolete English noun,"bury," that comes from the Old English word "burh"; the OED definition is "manor house or large farm." So you could "bury" ("berry") Jesus on a "bury."
Thursday, June 30, 2011
It's Time to Dance!
I have the most wonderful news! Briercrest is now offering a new degree in the Seminary, and it makes my spine tingle. What is it, you ask?
MA Biblical Languages and Exegesis
Download the program sheet. Do it.
Let the heavens rejoice!
Let the students be glad (and enroll)!
MA Biblical Languages and Exegesis
Download the program sheet. Do it.
Let the heavens rejoice!
Let the students be glad (and enroll)!
Wednesday, June 22, 2011
Cars, Cares, and χάρις (charis)
Our car died on Friday. More accurately, our car experienced catastrophic engine failure which ultimately rendered the car useless. Upsetting news? Well, for the first five minutes or so it was, until I felt an odd sensation of relief. Sure, it's a pain to be without a car in Caronport. But the car is 21 years old, fraught with parts soon to be in need of attention. So, when I told my wife, "The car's dead," I was able say it with a laugh. "That's the last dollar I'll ever spend on that old thing!"
Being car-less has made me think about the attention I give to the stuff I own. Being a North American is expensive. I often find myself hating money. First it's expensive to buy something like a TV or computer or car, but then more money has to be spent to protect the stuff, which is ongoing in case anything ever happens to it. First-world civilization tells us that we need a lot of things to live properly: like couches, kitchen appliances, computers, phones, decorations, bookshelves, sporting equipment, entertainment electronics . . . It turns out that the more stuff you have, the more you're weighed down. Have you ever moved? Nothing indicates how much stuff you have as moving it all from the house to a truck (several times) into another house. It takes a lot of stuff to live in Canada.
I can appreciate a story told by one of my Seminary professors. Dr. Marty Culy had traveled to Thailand (for ministry or work I can't remember), and was shown hospitality by a happy older couple who lived out in the jungle. When he arrived at their 'house', which was a platform with no walls and no possessions to speak of, they greeted him warmly, and immediately began a half-hour search for a cup so that they could serve him water. The ancient Spartans' living arrangements must have looked like Buckingham Palace in comparison. Put a North American in that jungle house, and it would instantly be regarded as intolerable poverty. But this jungle couple were incredibly honored to have a guest, and remained permanently, inexplicably happy. Their poverty had nothing to do with their happiness. They trusted the Lord for everything. They lived to serve Jesus, and had no care for bolstering their financial portfolio, or for establishing some kind of financial stability. I think about that couple from time to time whenever I look around at our apartment and realize how very rich we are.
Now, I'm not intending to follow suite... I'm quite certain that one winter in Caronport on a platform without walls would not be 'intolerable poverty', but certain death. It might be easier to get by with little in a place where it's always warm, but the tractor beam of the lust of wealth draws warm-climated folk as much as the colder kind. I know I'm guilty of it. I'm a web developer. I like shiny devices that do fun things. But losing a car is a healthy reminder of the place wealth needs to hold in my life. Things are just things. They don't hold any promise. Neither Jesus nor Paul said anything like, "You are justified by wealth, but stuff alone." So why do I act like that? Why do I think of things I could buy, and look for jobs that pay well, and plan for the future with my fancy spreadsheets?
Well, that's the irony I suppose. Just like my doomed car, I too am fraught with parts that need attention, and am destined for the wrecking yard. But unlike my doomed car, I'm not doomed. Luckily I have a Redeemer who is willing to fit me for a new engine, and fix the rusty exterior, and realign my tires . . .
And the only proper response is one I've repeated often as a new Anglican:
"Thanks be to God."
Being car-less has made me think about the attention I give to the stuff I own. Being a North American is expensive. I often find myself hating money. First it's expensive to buy something like a TV or computer or car, but then more money has to be spent to protect the stuff, which is ongoing in case anything ever happens to it. First-world civilization tells us that we need a lot of things to live properly: like couches, kitchen appliances, computers, phones, decorations, bookshelves, sporting equipment, entertainment electronics . . . It turns out that the more stuff you have, the more you're weighed down. Have you ever moved? Nothing indicates how much stuff you have as moving it all from the house to a truck (several times) into another house. It takes a lot of stuff to live in Canada.
I can appreciate a story told by one of my Seminary professors. Dr. Marty Culy had traveled to Thailand (for ministry or work I can't remember), and was shown hospitality by a happy older couple who lived out in the jungle. When he arrived at their 'house', which was a platform with no walls and no possessions to speak of, they greeted him warmly, and immediately began a half-hour search for a cup so that they could serve him water. The ancient Spartans' living arrangements must have looked like Buckingham Palace in comparison. Put a North American in that jungle house, and it would instantly be regarded as intolerable poverty. But this jungle couple were incredibly honored to have a guest, and remained permanently, inexplicably happy. Their poverty had nothing to do with their happiness. They trusted the Lord for everything. They lived to serve Jesus, and had no care for bolstering their financial portfolio, or for establishing some kind of financial stability. I think about that couple from time to time whenever I look around at our apartment and realize how very rich we are.
Now, I'm not intending to follow suite... I'm quite certain that one winter in Caronport on a platform without walls would not be 'intolerable poverty', but certain death. It might be easier to get by with little in a place where it's always warm, but the tractor beam of the lust of wealth draws warm-climated folk as much as the colder kind. I know I'm guilty of it. I'm a web developer. I like shiny devices that do fun things. But losing a car is a healthy reminder of the place wealth needs to hold in my life. Things are just things. They don't hold any promise. Neither Jesus nor Paul said anything like, "You are justified by wealth, but stuff alone." So why do I act like that? Why do I think of things I could buy, and look for jobs that pay well, and plan for the future with my fancy spreadsheets?
Well, that's the irony I suppose. Just like my doomed car, I too am fraught with parts that need attention, and am destined for the wrecking yard. But unlike my doomed car, I'm not doomed. Luckily I have a Redeemer who is willing to fit me for a new engine, and fix the rusty exterior, and realign my tires . . .
And the only proper response is one I've repeated often as a new Anglican:
"Thanks be to God."
Subscribe to:
Posts (Atom)

