Feb
24
2009
I hacked into the page.php file, tested for the page I wanted to convert, and added the LOOP code from category.php file to run instead when it hit that page. I also had to reset the query when that occurred.
The pages are kept in the wp_post table and their post_type='page', That’s how I found the page number I wanted to check for.
<?php if (is_page('738')) : /** Tech Page = post 738 **/ ?>
<?php /** Change the query before the loop starts for the tech page **/
/** category tech=4, techb=54 **/
$page = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts(array('category__in'=>array(4,54),'showposts'=>10, 'paged'=>$page));
/** query_posts('category_name=techb&showposts=10'); **/ ?>
<?php if (have_posts()) : /** THE LOOP - CATEGORY **/ ?>
...
The one thing that’s not working is the “older/newer” links at the bottom. They come from the following code, and I’m not sure if I need to change it, or (more likely) change the modified query above to somehow take into consideration what page it’s on. Pagination? Anyone? Found solution, and included above.
<ul class="prevnext">
<li class="newer"><?php previous_posts_link('Newer Posts'); ?></li>
<li class="older"><?php next_posts_link('Older Posts');?></li>
</ul>
no comments | posted in techb
Feb
19
2009
My first exposure to the Sun City development north of Austin was via billboards in Austin in the mid 80s. They were really selling it up: lots of billboards.
Of course, at the time, there was a Steven Van Zant protest song of the same name. I recall it protesting some gambling city being run for whites only in an Apartheid environment.
(Ahh, the 80s, the decade of tepid protest songs: “We are the world, we are the children,…” what are we protesting? But, I digress.)
Anyway, I thought it was a quite unfortunate choice of names for this new development, and they still had time to change it. Well, they didn’t. And now it’s active senior haven: Sun City, Georgetown, Texas.
But more specifically, it will soon be my dad and step-mom’s new residence. They’re selling the Big Ol’ House in Canyon Lake, and moving to a reasonable sized, two-person residence in Georgetown.
So, good luck to them in the move and the hecticness of selling and buying a place. And I hope to get over there soon to check it out.
1 comment | posted in corporations, family
Feb
18
2009
Of course the error was a human one.
Copy-paste.
This post should now NOT show up in the feed.
no comments | posted in techb
Feb
18
2009
I am using symfony and in need of having some module-level configuration set that can be used in both actions and partials. There doesn’t seem to be a mechanism to do this. The module.yml file is not included by partials. Likely for optimization reasons.
There is a bug report (#2878) that relates to this, but it appears to have been rejected and without explanation.
I could full-on add an additional configuration handler, but that seems overblown. Seems like there could minimally be a configuration setting to allow partials to access configuration from module.yml files.
no comments | tags: module.yml, partials, symfony | posted in techb
Feb
18
2009
I was out for a bicycle ride in the neighborhood on Saturday. Actually, I was running up to the Credit Union on 19th. It’s always nice to check out what’s going on in the neighborhood.
I went close to Evan and Emily’s place. Just got their birth announcement in the mail, but I decided to not stop by lest they be trying to get some needed sleep.
I rode along some of the under-costruction rail-to-trails bike path along Nicholson. It’s mostly paved from 7th to 19th, the last few blocks haven’t been started. There’s some paint that looks like they may be doing some utility work first. Much of it has been sodded, and there were palettes of more sod along the path.
There was one yard worker parked in the mud that hadn’t been sodded. Big truck, bug trailer. And when I came back, he had left giant ruts in the mud. Moron. I almost said something to him on my way past; I should have.
The cute cottage on 9th and Beverly, that was crushed by a tree during Ike (likely because the McMansion next to it compromised the root structure of the large tree) was demolished and carted off. Likely new construction to begin soon. Expect gaudy.
no comments | tags: Bike Trail, Ike | posted in family, houston
Feb
17
2009
I was on another iPhone project that had several thousand simple data objects that I would need to keep and search through. SQLite again. I’ve seen Jeff Lamarche mention his open source project, SQLitePersistenObjects a few times, so I decided to give it a whirl.
You can get the code at it’s google source site. There’s not too much documentation available, but it seems simple enough (as any SQLite wrapper should aim to be). There is a ReadMe.txt with a brief introduction, and some sample code (which I haven’t yet looked at).
I went about including it a different way than the “drop the zip file in” method it suggests. My project is in SVN and I’m using Versions, so I just added an svn:extern statement and now have a subdirectory with the source in it.
In Xcode I created a new group, then edited it’s information to point to the subdirectory naturally, then added all the files in there to the group. Then right-click on frameworks, add existing framework, and dig through the /Developer/Platforms et al. until you get to the sqlite dynamic library to link against.
It built and compiled fine for me. Now off to put it through its paces.
no comments | tags: iPhone, SQLite, SQLitePersistentObjects, Versions, Xcode | posted in techb