Math Formula => Computation

I just read this fantastic post by Raymond Chen: Mathematical formulas are designed to be pretty, not to be suitable for computation

Really great read, I really like his showing some ways to avoid bignum libraries, and also the float point gem at the end.

This posts is mainly so in the distant future I may find this gem again.

Posted in Blogs, Programming | Comments Off

Looking for D3200 Alpha Testers

I just released v1.13 of the online patch tool today, and it has the time limit removed for D3200 movie recording, but…. it’s not been tested, as none of the core developers have a D3200.

So we need a brave soul to test it for us. If keen come on over to the forum and let us know so we don’t have 100 people all trying it at once. ;-)

Posted in Uncategorized | Tagged , | 9 Comments

Bitcoin Pain

With the Bitcoin network chain problem requiring a full re-download of the chain, this meant that my 150GB network limit was used up in 24 days, because of 85GB of upstream Bitcoin traffic. So for now I’ve stopped my client.

As I opted for reduced network speed verse overage fees, the family is making do with 64bps, which is dial-up internet really. Strangely enough mobile devices are less effected due to light weight apps, but computer based web surfing is almost out of the question.

Posted in Uncategorized | 2 Comments

WordPress Page Spam

I’ve been getting spam to my page’s and pictures for years, but this last weekend I got 400+

Grrr, time to fight back.

The annoying thing is that both Media and Pages don’t have the ability for the Admin (out of the box) to say “no comments”, which is what I do to all my posts once I they get enough spam, and I don’t want to leave to open for active discussion.

So I found this support post with this code to stop Media comments:

add_filter( 'comments_open', 'no_media_comments', 10, 2 );

function no_media_comments( $open, $post_id ) {

	$post = get_post( $post_id );
// wordpress refers to images as attachments
	if ( 'attachment' == $post->post_type )
		$open = false;

	return $open;
}

I then found this page in the Codex with the ‘post->post_type’ defined and added another clause to block posts to Pages also and ended up with this:

function no_media_comments( $open, $post_id ) {

	$post = get_post( $post_id );
// wordpress refers to images as attachments
	if ( 'attachment' == $post->post_type )
		$open = false;
	if ( 'page' == $post->post_type )
		$open = false;

	return $open;
}

add_filter( 'comments_open', 'no_media_comments', 10, 2 );

Which I placed at the very bottom of my functions.php (Appearance -> Editor -> functions.php)

Posted in Uncategorized | Comments Off

Getting SageTV to work with HDHR3-DT with NZ DVB-T Freeview

So the default install process of SageTV (7.1.9) and HDHR3-DT (release 20120405 or 20130117beta1), is incompatible for me with DVB-T/New Zealand Freeview.

When I did a channel scan, SageTV stops when it get’s to the first channel with content. Yet the HDHomeRun tools scan/dispaly all channels correctly.

The work around is to add the Video source’s as normal but don’t do the channel scan, add the second video source like the first (but use same guide data), exit SageTV and stop the service. Then edit the Sage.properties file and alter the ‘mmc/dvbt_region=Christchurch@Sugarloaf‘ entry to ‘mmc/dvbt_region=

thus from this:
Text to remove

to this:
with text removed

Now restart SageTV, do the channel scan, and it will complete as expected.

But don’t select ‘DVB-T Region’ menu item, otherwise you’ll have to edit the configuration above again.

Posted in Uncategorized | Tagged | Comments Off