llemarie’s weblog

Programming, tinkering – Lionel LemariĆ©

Archive for March, 2008

Programming: Beanie Fighter

Posted by llemarie on March 23, 2008

Dancing NinjasLive greetings from Breakpoint!

After a year of on and off development, with serious on development in the last few months, I finally got to submit my new 96KB game entry for Breakpoint. It ended up in a huge anti-climax, when nobody else submitted an entry and the 96KB game competition had to be canceled. The game was shown in glorious 12m wide 1080p though, in front of a great crowd!

I also gave a seminar, called Multicore Mayhem, presenting a technique for distributing code to the available CPUs. The video will be available on the Breakpoint website after the event.

Update: Due to a technical problem during the recording, the video is not available unfortunately…

Pouet.net

Download the game here.

Advertisements

Posted in Beanie Fighter, Programming | Tagged: , | 12 Comments »

Tip: Updated: Use a higher resolution desktop than your monitor can support

Posted by llemarie on March 8, 2008

With the Asus Eee PC being so popular, there’s a lot of people looking to improve the real estate of their small computers. Here’s an update to my previous post to get fullscreen higher resolution on your monitor, be it small or big.

To make it clear: even though this technique uses Remote Desktop, it connects to the local machine only, there are no remote computers involved, no internet connections required.

There were a number of drawbacks with the technique described previously. The most annoying problems were:

  • the Remote Desktop window was not fullscreen, you could see the titlebar constantly,
  • the need for a port forwarder.

Enterprising users found solutions to both problems, so I think it’s time for an update!

1. How to allow multiple users to connect at once on Windows XP.

Get the Terminal Patch and install it. It’s really easy, just run the installer, there’s nothing to it. You need to reboot.

You can now login into your machine using multiple accounts at once, locally and using Remote Desktop.

2. Create a new user account and enable Fast User Switching

Add a new user whose sole purpose will be to Remote Desktop to localhost. Log-in as the new user for the remaining steps. No need to set the theme or anything.

To add a new user, open the Control Panel, open User Accounts, click “Create a new account”. Then enable Fast User Switching by clicking “Change the way users log on or off”.

3. Create a saved RDP session with scaled settings

Follow the instructions from here to create a .rdp file and add “smart sizing” to it.

Set the server to “127.0.0.2”. Note that normally the local computer is 127.0.0.1 but Remote Desktop will not let you connect to that address. Connecting to 127.0.0.2 works however, which is strange but convenient!

Set the username as your normal username, not the new one.

4. Make it fullscreen

Update: Paul in the comments mentioned that the CTRL-ALT-PAUSE/BREAK key combination makes the remote desktop window fullscreen. It works great! No need for additional software.

Download one of those applications (Desktop Enhancers) that make any window fullscreen. I use the shareware FullScreen 2.5, but if you find a good one as freeware please do post it in the comments. I might write one at some point if there’s a demand for it.


That’s it! When you want high-res, simply log-in with your new account, start the connection by double-clicking on the .rdp : you’re connected as your usual user, ctrl-right click on the title bar to go fullscreen and voila.

Posted in Blogroll, Remote Desktop, Tips | Tagged: , , | 5 Comments »

Project: Change Housing on Z610i

Posted by slemarie on March 2, 2008

phone(Posted by Sarah)

So, after inadvertently stealing Lionel’s thunder when he bluetoothed his headphones and the world gave me all the credit, I thought I better get a project on here to prove that I can totally do stuff too. And also because Lionel wrote on my (retired) blog one time, and I need to get revenge return the favour.

So here’s the first thing I did. Inspired by my husband’s penchant for doing so, I took something apart. But then in a ground breaking revelation, I put it back together again! And now with my super helpful flickr set to follow, you can too.

My unwitting victim was a Sony Ericsson Z610i. They are cellphones of the supershiny clamshell variety, google for ‘z610i’ and you will most likely hit 1001 forums with dudes talking about how they just bought one for their wife. Please understand that usually, I lust after a phone with some pointless great new feature that I will never use, but it will destroy my battery life (cf. wifi on my N80, which I have successfully used outside my own home approximately 0 times. But I still changed my cell phone number, just to get this phone). Anyhow this time around, I just wanted a straight up clamshell, that would not cost the earth, and maybe even look nice.

So I bought the most badly abused phone you have ever seen on eBay. If Bride of Chucky had a cellphone, this is what it would look like. It was cheap, OK?

I blame eBay for most of my failings in life, and this time was no different. If there weren’t a vast array of very accessible alternative phone housings on eBay, I’d never have found myself musing one day how fascinating it would be to take my cell phone to pieces, check out the guts, and then while I’m at it rebuild it back into a shiny new case. What fun! Two weeks and one package from Hong Kong later, my vision was realised and with no thought for the possible consequences whatsoever I set about taking my phone apart.

I learned several things while doing this project.

1. Don’t just look for screws. Look for screw covers. Under screw covers, ye will find more screws.
2. It’s really hard to take phones apart until all the screws are out.
3. Screws 1, plastic wedge tool 0.

If you’re patient enough to try this at home, check out the flickr set photo descriptions for some running commentary and obvious statements such as “take this out of the old housing and put it in the new housing, in the same place”.

Most steps are fairly straightforward. I began by removing the casing on the base half first to minimise the amount of time that I was waving around the naked LCD displays. This seemed to work as an approach. When you begin, prize apart the new casing your ordered first (WHY do they piece it together!?) and take your time. Prizing casings apart works best if you run slowly and gently around the entire casing seam in slow gentle movements. Thin cheap plastic bends if you so much as sigh in frustration near it, so take your time and never tug something too far in any one direction unless you’re totally confident about the consequences.

It’s hard to tell from the final finished photos, but I actually broke my new casing in two places while opening/fitting it. The upper half of the keypad housing is particularly vulnerable at each side, as you only have two thin struts of plastic there while you’re levering off the ends of the casing. One snapped almost instantly in the first 30 seconds of my phone destruction newbie-ism, one gave up during my base-half reopening session as I attempted to reunite the keypad with its underlay. Fortunately both breaks were clean and reseated into each other well once held in place by the rest of the housing.

On the second snap, that half of the casing was suddenly freed by both breaks and allowed me to sit the Franken-phone down with case components sticking out in all directions rather casually.

“I’m nearly done. Honest. Just a few bits to finish.”

All in all I spent about four hours messing with it, involving far too long believing I had removed all the screws, and far too long rebuilding the base without first putting in the keypad underlay. You really want the keypad underlay, it’s what makes your keys work, as it turns out.

Would I do it again? Actually, yes. Paying a small amount for a new housing of decent quality and then cleaning your phone out definitely beats carrying your phone around in some second skin housing that will never look as great as your phone does on its own. For the last 18 months I’ve carried an N80 in a crystal case covering, and while it has preserved the phone excellently, it’s been even bigger and fatter than all its phone peers for the duration. Naff.

Did it go totally smoothly? No. I snapped the casing – recoverable in my case, fortunately – and now the camera isn’t working. All other features work as advertised, but the camera does nothing. There’s a fairly large connector near the hinge that you can disconnect, and I did – I highly suspect this is the source of my problem. Sometime when I decide a camera on a cell phone beats a Nikon D40, I’ll get around to looking at that.

The Z610i is a strange beast. Its features are utterly average and yet for some reason I have an irrational love of it as a phone. And now that it’s a shiny as it was always meant to be, I am complete!

Tune in next week for ‘Changing the housing on your husband’s macbook’. Am I kidding? Am I?

Posted in Blogroll, Projects, Z610i | Tagged: | 8 Comments »