So, we moved over a month ago and we were settled in the house the second
day. The pictures were even up on the walls. Unfortunately, I didn't
have time to post. Too much other stuff going on. And good books to
read. I've read a few more of the Honor Harrington series. I think
I'm up to what was written as of 5 or 6 years ago. The series just goes
on and on, with loose ends hanging at the end of each book.
Tomorrow some friends are moving. They bought a house just after we did
and so they're moving in. Some people are blaming my wife and me for
starting off this round of people we know buying houses. I can't see
how it's our fault. I think it has more to do with the fact that
house prices have levelled off and interest rates are dropping to
help with the so called financial crisis. We just took advantage of it first.
And I've been working on Ante the last two weeks. I started to
try setting up this weblog to use Ante, (nothing like eating your own
dogfood) when I discovered that I couldn't actually do some very reasonable things
from Ante, such as set the name attribute on an anchor. So I've added a new
Ante class set 'aa_' which has a attribute name and a value name
seperated by underscore and sets the attribute to the value. It
actually simplified a number of things that seemed odd, such as for
anchors (again) should the value be used to set the href attribute, or
the contents? Well, now it always just sets the contents (if appropriate) and
to set the href attribute use aa_href_url where url is the name
for the value you want in the href attribute. It makes programming
Ante easier. Unfortunately, it'll make templates longer, but I'll
revisit this in the future to see if I can shorten it again (as a
special case).
While thinking about all this, I discovered that there was a bug
that if the value returned was 0 or the string '0', that it would treat it
as an empty value. Which of course was wrong, and was caused by
the way PHP treats those as false in boolean cases. Just a little
warning for anyone reading who does PHP programming. Remember to
think about what the possible values you're testing can be...
This marks a new era for Ante, actual use on the internet! I've converted my weblog to use Ante and a database for backing store instead of a whole lot of html files like I had. Now for a litle celebration for me.
Settled.
by alan on Fri 9th May 2008 2:54PM
So, we moved over a month ago and we were settled in the house the second day. The pictures were even up on the walls. Unfortunately, I didn't have time to post. Too much other stuff going on. And good books to read. I've read a few more of the Honor Harrington series. I think I'm up to what was written as of 5 or 6 years ago. The series just goes on and on, with loose ends hanging at the end of each book.
Tomorrow some friends are moving. They bought a house just after we did and so they're moving in. Some people are blaming my wife and me for starting off this round of people we know buying houses. I can't see how it's our fault. I think it has more to do with the fact that house prices have levelled off and interest rates are dropping to help with the so called financial crisis. We just took advantage of it first.
And I've been working on Ante the last two weeks. I started to try setting up this weblog to use Ante, (nothing like eating your own dogfood) when I discovered that I couldn't actually do some very reasonable things from Ante, such as set the name attribute on an anchor. So I've added a new Ante class set 'aa_' which has a attribute name and a value name seperated by underscore and sets the attribute to the value. It actually simplified a number of things that seemed odd, such as for anchors (again) should the value be used to set the href attribute, or the contents? Well, now it always just sets the contents (if appropriate) and to set the href attribute use aa_href_url where url is the name for the value you want in the href attribute. It makes programming Ante easier. Unfortunately, it'll make templates longer, but I'll revisit this in the future to see if I can shorten it again (as a special case).
While thinking about all this, I discovered that there was a bug that if the value returned was 0 or the string '0', that it would treat it as an empty value. Which of course was wrong, and was caused by the way PHP treats those as false in boolean cases. Just a little warning for anyone reading who does PHP programming. Remember to think about what the possible values you're testing can be...
Using Ante
by alan on Sun 18th May 2008 12:00AM
This marks a new era for Ante, actual use on the internet! I've converted my weblog to use Ante and a database for backing store instead of a whole lot of html files like I had. Now for a litle celebration for me.