C64 emulator for the Nokia 7650 is out!

Yes, it’s out! You can finally run your C64 games and demos on your Nokia 7650 or Series 6/7 phone! Here’s the announcement from a few days ago! Unfortunately you have to send the games over in a text/email message, so I’ll have to boot into Windows to copy over my C64 demos. Finger’s crossed that it’ll work!
Hmm.. Must find Stunt Car Racer before I reboot…

Update! Here’s what I tried and my impressions.
I tried two of my demos (and the only ones I can still find on my PC, the rest are on 5.25 disks..), Bits ‘n’ Bobs, and Awareness of Reality.

  1. BnB was my first major demo and was a single-load/multi-part demo made way back in 1992. It ran fairly well! Each part decrunched and executed before going onto the next part. Multiplexed sprites worked flawlessly, although some raster bars flickered in the border. (It’s very hard to get an exact timing on this!)
  2. AOR didn’t work at all unfortunately. This could be because I was ambitious and used strange characters in my disk filenames. It uses a fastloader so it’s doubtful it would load subsequent parts. Even Vice had trouble with that at one stage a few years ago.
  3. Stunt Car Racer worked fairly well. I was even able to redefine the keys and made it around the first track. An ugly problem reared it’s head here though. It’s not possible to press 2 keys at the same time. When I pressed the joystick button down to boost, that worked, but when I pressed 4 or 6 to turn the boost shut itself off. I think that’s a failing of the 7650 though, as the same happens in Java games.
  4. Sound works fine for a while, but then slows down and becomes annoying. I had to turn the sound off when this happened.

As a final note, if you had told me 10 years ago that the demos I was working on would someday work on a handheld phone I’d have laughed at you!
This reminds me that I thought the same thing the first time I saw my demos running in an emulator on a PC – in a window while other applications ran in the background!
Thank you Hannu for doing a great job!

The Oily Americans

A story worth reading for the conspiricy theorists among you!

For more than a half-century, American foreign policy dealing with oil has typically been manipulative and misguided, often both at the same time. The pattern of intrigue has ranged from U.S. officials’ secretly writing tax laws in the 1950s (so the Saudi royal family could collect more money from the sale of its oil and American companies could write off the added payments on their tax returns) to overthrowing a government that showed too much independence in handling its oil sales.

b2++ updates

Several updates should be mentioned:

  1. When I introduce new templates (say for the blogroll, or the new archives format) I’ll make sure that template exists in the user’s template directory. If it doesn’t I copy it in from the default template
  2. Redirection is now more like a normal site. Instead of redirecting to blog/index.php you can load “blog/” or if you access “blog” then it’ll redirect you to “blog/” like a normal webserver would. Try /xeer to see for yourself.
  3. Mike Little has a new version of b2links coming out so I’ll try an integrate that when I can.
  4. Tim and I are wracking our brains trying to come up with a new name for b2++, one that isn’t quite so awkward. He thought of “Diolog” (Dio is Greek for 2, as in b2..), I thought of “BioDio” (Biography 2..), or Biolog. Suggestions welcome please! Leave a comment here if you have any ideas!

I want to put this code on sourceforge and make the development of it more accessible. I’d like to have a new name before I put it online though.
I need help with this project, there’s plenty to do. Writing docs, designing new templates/importing existing ones, writing plugins, rewriting b2 basically. Please leave a comment if you can help..

b2++ blurb

I added some “What is b2++?” blurb to the front page. Is there anything missing? What should I change to make it better? I’m targetting users and developers here (eh? yeah, that’s hard!), but I fear I’ve probably gone and confused any potential user!

Quicktime to Divx Conversion.

mencoder -ovc divx4 -oac mp3lame -noskip detect_640_dl.mov -o detect_640_dl.avi

Great! My machine doesn’t play Quicktime movies very well – it’s under powered. It does play Divx files fine though.
The above command will convert a Quicktime file into a Divx file. Not sure yet how the filesize of the new avi will compare to the .mov file. There are options to set the bit rate and other Divx parameters so it’ll take some experimentation to get right if past experience with Windows encoders is anything to go by.
Update! Audio sync is way off. This pagepage has some more info that might come in handy for further experimentation.

Referers in b2++

I’ve integrated part of the Nathan’s referer code into b2++. It’s in the form of a prefunction as it creates a global referers tag you can put into your site templates.
Currently it creates a different tag if you’re viewing a single post or a whole blog/category. This allows the template designer to use the postreferers tag when listing referers to a single post, or use refererlinks to list the site referers list. Add this code to your index.tpl to enable it:

{if $refererlinks != “”}
<blockquote>
Referers:
<ol>
{foreach from=$refererlinks item=link}
<li> <a href=”{$link.referingURL}”>{$link.baseDomain}</a> ({$link.visitTimes})
{/foreach}
</ol>
</blockquote>
{/if}

Flavour it to suit your own blog design. Substitute $postreferers for $refererlinks and put the same code into post.tpl to see single post refererers. The final b2++ 0.6 will have this in place, and all you’ll need to do is update your templates from the Template Chooser.

Update!
Because of the caching on this site many referers were lost, I changed the referer plugin into a Smarty insert plugin.
Insert functions are executed every time a page is loaded and because of the way they operate, I’ve had to hard-code the html it outputs for the time being.
Anyway, ignore the instructions above. If you want to record and display referers on your blog on this site, then add the following code to index.tpl (anywhere will do, but make sure there’s enough space for it!)

{insert name=”getreferer” mode=”index”}

Add the following to post.tpl if you want to show referers to individual posts too:

{insert name=”getreferer” mode=”post”}

There’s some problem with it as is though, sometimes the insert function doesn’t execute. I’ll have a look at why tomorrow.

Update 2
I still don’t know why insert functions didn’t work, that’s something I’ll have to bring up on the Smarty mailing list tomorrow. I reverted to recording every referer on each request, but the list of referers for any page is only updated when the page cache is updated.