Wiimotely usable?
April 18, 2007 on 12:28 am | In Nintendo | No CommentsFinally got around to updating the Wii with the release version of the Internet channel and decided to see just how awkward it would be to write a blog entry with the Wiimote…answer is reasonably awkward, but actually a little better than expected.
I imagined that typing with the on-screen keyboard would be a real chore, but the feedback (audible and visual from the screen and haptic from the Wiimote) makes poking away at the on-screen keyboard easier than most on-screen keyboard interfaces. So it’s pretty impressive but i’ll stick to the laptop for any updates in the future!
Otherwise whilst it’s understandably constrained, the ability to scale the display and to remove the navigation bar makes for a reasonably usable browser even on a regular PAL TV. In terms of technologies, it seems to support the same standards as desktop Opera, with Flash 7/AJAX/RSS all working well.
Being the kind of person who carries his laptop around the house at all times, it’s not as if i’ll be using the browser often, but there will be those odd cases where i’m infront of the TV and not flinging my arms about in Wii gaming world. If only for these moments, it’s nice to know I can watch YouTube, check my Google Mail and Calendar and browse porn RSS feeds with nothing more than a wave of the Wiimote…if only because I am a stupid lazy geek.
Mantis, PHP and PCRE
April 17, 2007 on 4:11 pm | In Coding | No CommentsHad an odd issue to look at where Mantis 1.0.6 was sending blank notification emails once they got to a certain size. After looking at the issue long and hard I determined that it was only happening on PHP 5.2.0 and above and seemed to be related to the size of the notification email, but wasn’t a constant size and seemed to depend on the contents of the bugnotes.
Long story short, the PHP function preg_match_all was failing once the email reached a certain size. preg_match_all is basically a thin wrapper around the Perl Compatible Regular Expression function built into PHP and since 5.2.0 the recursion and backtracking limits have been set and you need to edit your PHP.INI in order to increase them…
[Pcre]
pcre.recursion_limit = 100000
pcre.backtrack_limit = 100000
These are the default values that need to be increased, I found 500000 in each happily worked but I think you need to be careful when changing this as you can allow a complex recursive expression to consume all the stack space and crash PHP. Hope that helps somebody.
Powered by WordPress with custom theme based on "Pool" by Borja Fernandez.
Entries and comments feeds.
Valid XHTML and CSS. ^Top^