Archive for the 'Hardware' Category

July 15, 2007

W950i Remote for Presentations

As some of you may or may not be aware, part of my fourth year project was to give a presentation of my work over the first two terms. Naturally I’d already written a lot of LaTeX code for the project and produced lots of lovely PostScript figures, so it seemed pretty natural to go ahead and use Beamer, with evince in presentation mode.

However, because I like to look a bit swish, I decided to do something to make my shiny Sony Ericsson W950i switch through the slides for me without having to touch the keyboard. Since nothing was apparent from much Google searching, I sat down and figured it all out. After a long time of sitting on this code I’ve finally found the time to sit down and package it all up in a neat bundle.

So, if you have a decent phone with Bluetooth enabled, visit the project page if you’re interested!

The project report and presentation slides will be going up tomorrow, I just need to get around to writing some CSS.

12:28 am | Posted in Computing, Hardware, Project | 2 Comments » | Show comments »

April 16, 2007

Windows Vista and the Intel i915GM

After having my shiny new hard-drive hooked up today, I decided that I’d go crazy and try out Windows Vista, what with all the hype. I know this is somewhat hypocritical of me, after writing on Sayonara’s blog that I would never do such a thing, but I wanted to know what performance would be like under my one-year-old laptop.

Boy, was I in for a shock.

Read More »
Continue reading “Windows Vista and the Intel i915GM”…

1:16 pm | Posted in Hardware, Ranting | 6 Comments » | Show comments »

April 13, 2007

Project’s Done!

Well after much blood, sweat and tears, I finally finished my project. In total, it was 33 pages long (including references), so not an unsubstantial amount of work! After it’s all gone through the system, been marked and I’ve got my marks back, I plan on posting a copy on here. But I want to ensure it goes without a hitch first.

Anyway, that was finished about 2 weeks ago. I took a week off which was quite nice, in which I’ve bought many things, most of which are yet to be delivered.

They include a 160gb laptop hard-drive (for the bargin price of £75 with free shipping, thanks to eBuyer); 512MB of SODIMM RAM for my laptop; an excellent 2gb SanDisk Extreme III CompactFlash card; the Canon RC-1 Remote (from eBay, only £11); a 10/100 ethernet switch and a CompactFlash reader.

Unfortunately this spending spree was started by me looking at the Canon 100-400mm f/4-5.6L which, at ~£1000 is a little out of my budget at the moment. However, something had to fill the void, so…

Anyway, revision’s started now. First up is Asymptotic Methods, and it’s going reasonably well at the moment. My plan is to start early and finish early, leaving time for TV and other assorted good things.  Hurrah.

7:13 pm | Posted in Academia, Exams, Hardware, Maths, Personal, Photography, Project | No Comments »

December 15, 2006

Moving away from DreamHost

Well, over the last few weeks I’ve come to realise that using DreamHost wasn’t a particularly good plan. If I’m honest with you (which hopefully I am most of the time), the cheap price of their hosting and ridiculous amounts of both bandwidth and disk space were too much in terms of temptation. However, there’s been a lot of quite severe downtime and the majority of my patience has been used up.

The major problem is speed. My server is relatively good – the load averages are only around 2.00 to 2.75 on a good day at peak times. But DreamHost do pack an awful lot of people into their hardware, which makes everything insanely slow. Even simple static content load times are pretty shocking. I also find their control panel software to be quite a bit of a pain at the best of times.

Read More »
Continue reading “Moving away from DreamHost”…

3:41 am | Posted in Hardware, Site Development, Web Development | 2 Comments » | Show comments »

May 3, 2006

Definately getting there

Over the past few days I’ve been trying to procrastinate as much as is humanly possible – for example, playing GTA: San Andreas for very large periods of time. However, last night I turned my attention to the website backend that I’ve been developing, and so far the results have been promising.

Basically, the entire concept revolves around a single “site” object, which is set up by a global include script. The constructor sets up the smarty templating, a PDO object and starts PHP sessions. It also checks for login requests and the like. Then, when the page is loaded it simply registers itself with the site object (so it can do some pretty GUI things and also track the user through the pages) and then gets on with the business of doing useful things.

Since PHP5 (finally) supports destructors, it then grabs the page content from the output buffer, slaps it all into a smarty template automagically and then outputs without the script page ever having to do a single thing. Also, error handling can be done really easily – an exception handler catches any PDO errors and, if the site–>error() function is called, it sets an error flag and exits. On exit, the destructor is called and it can do the appropriate stuff.

One final thing I want to do is create a PDO proxy object which will catch and log the queries sent to the database for statistics information. The pseudo–function __call is very useful in this respect.

On the Ubuntu side of things, I’ve finally got it all set up the way I want it. Took me ages to sort out the supposedly simple keyboard layout problem, but in the end I just edited the xorg.conf file manually instead of messing around. And, to be honest, I’m very pleased with the outcome. I don’t have to bother messing around with lots of stuff, and now I even have mplayerplugin working correctly. Amazing. Still have to sort out hibernation, but I think that’s a problem with my grub.conf and 915resolution.

I’m also taking the liberty of upgrading software on my server, and getting it all working properly. It’s currently on the 2.6.12 kernel and has an uptime of 158 days (which I’m very proud of), but I’m afraid that it really needs an update. God only knows how many security holes have been found now, so I’ll probably update that tonight and reboot it when I get home. Also decided that enough is enough, and completely removed X support – it’s really not needed at all on a server.

Looking to the future, I’m planning on replacing the role of my home server by my current desktop machine. Ideally I want my home server to be a small box which only deals with router requests and has no other processes running, purely for security reasons. I’m planning on replacing my desktop at the end of next year, although depending on my financial situation, I may decide to replace it in October.

On the hardware front I’ll definately be going for some kind of dual–core Athlon, but I’m not sure which yet. To be honest, I would absolutely love a dual 7800GTX SLi machine – just for kicks – but that might be a little pricey. It’s basically going to come down to what I can afford. Hopefully the price of hard–drives will have come down dramatically, and I’d like to re–use the drives in my current machine for the new one and have some kind of home–network hard–drive option on the server. We’ll just have to wait and see what happens, I suppose.

2:41 pm | Posted in Hardware, Linux, Randomness, Warwick Blogs | No Comments »

September 27, 2005

Whilst I’m whining

…I may as well talk about my motherboard. Or rather, the lack thereof.

I restarted my computer the other night, to find (to my dismay) that the bloody thing had frozen at POST. “No problem,” I thought, “I’ll just power it down, reset it and let it get its knickers out of a twist.” That was a mistake.

Something has completely buggered my motherboard over with a large – and possibly rusty – spatula. After 4–6 hours of attempted fixings – at one point with the motherboard running on my desk – and borrowing components from my housemate, I gave up and bought a new motherboard.

Now, as much as I wanted to upgrade my system completely I don’t quite have the money as of yet. I’ve bought a fairly decent motherboard, and hopefully it won’t screw itself up the day I get it. That would be rather annoying.

PS: I want an Nvidea 7800 GTX. And, preferably, an Athlon64 X2. Anyone think Santa will get me one for Christmas?

9:24 pm | Posted in Hardware, Warwick Blogs, Whining | 1 Comment » | Show comment »

June 8, 2005

Regular expressions suck.

Those of you that have visited in the past 12 hours might have noticed that the links that I had been using in my posts on the blogs didn’t work properly. The reason? The pure, unadulterated sheer joy of regular expressions.

Basically, instead of typing etc I have a safer alternative to including HTML in my posts. It involves the use of bbcode-style tags, and as a result, my link tags are written in a similar fashion. The simpler ones work great, but I decided that for the link tag, I’d make it a bit more complex.

Big mistake. One lesson that I’ve learnt from this is: never mess around with regular expressions if you actually value your life. It’s fixed now, thank god, but I need a sodding vacation after that. Now that I’ve said not to touch them, of course, I’m going to go off and try and implement a proper list code. Whoop-de-doo!

In other, vaguely related news, I decided that I’d go and play around with Tiger. I was up until 4am attempting (in vain) to get the damn thing working with PearPC. In fact, the best place I got to was:

JITC Warning: Invalid expression at 00800000 00000000
JITC Warning: Invalid expression at 00800000 00000000
JITC Warning: Invalid expression at 00800000 00000000
JITC Warning: Invalid expression at 00800000 00000000

Over, and over, and over again. Eventually, this morning, I eventually got the bastard to boot up, only to discover that the install process got about as far as a big, flashing “no” sign. After that, I decided to give up for a bit, so I have the joy of beating Apple software when I get back home.

Incidentally, I’m planning on visiting the Bull Ring Apple store, which promises to be good. However, I’m semi-dreading it, since I fear that much money may actually be spent buying an iBook. On the other hand, I don’t really want to buy one; Intel-powered stuff is coming out in less than a year, and I’d like to think that the price on this existing PPC stuff would be dropped to accommodate the changeover, and get the PowerPC stuff out of the door. Hell, the PowerMac G5 is still a stonking computer; if they were selling them off cheap, I’d probably buy one. Beats my PC any day of the week.

Right, I need to revise. I’m still in the Maths department, and I have yet to actually open my notes (which probably isn’t good). Have fun all, and I shall probably post something a bit later – presuming, of course, that I’m in a blogging kind of mood.

7:13 pm | Posted in Apple, Computing, Hardware, PHP/MySQL | No Comments »

Apple and Intel

Well, I have to say that when I woke up and watched the WWDC this morning, I didn’t expect Apple to announce they were going to be switching their core architecture over from the PowerPC to x86.

So, is this good, or bad? Personally, I think it’s a rather good choice for Apple. IBM has blatently not come up with the goods with respect to the 970 (aka G5); there’s been a lot of problems with it, and quite frankly, IBM seems to have its interests vested elsewhere. Apple did the right thing; IBM had become more of a hinderance than a help, so it makes good business sense to move.

On top of this, they have a good framework to build on. OS X is rather a revolutionary operating system. Not only is it built upon a very, very solid base (in the name of a FreeBSD offshoot), but it also enables for a lot of room for expansion. I wrote to someone not too long ago stating that something along the lines of what Apple are doing now was actually totally feasible. Realistically, the kernel that Apple have written needs to be re-modified so that it runs on x86, and the toolchain rebuilt to accommodate the new assembly, both of which they’ve obviously done quite nicely. Yes, there are other issues besides what I’m saying (it’s obviously not that simple), but that’s the general idea.

Also, because we have the Cocoa and Carbon frameworks to build upon, it makes life a heck of a lot simpler. Apps that are natively coded for X can be transported with only a few minor adjustments. I especially like the “universal binary” idea (both instructions for PowerPC and x86 are included in the binary, and the loader simply loads the correct set depending upon what type of system you’re on).

However, the technology that really stood out for me was the ease and simplicity of the Rosetta translator. That really was something. Basically, it converts the PowerPC instructions into x86 instructions, effectively allowing you to run any PowerPC binary on an x86 architecture. That really was something; it might not be fast enough for 3D/games/etc, but it’s certainly fast enough for Office, Photoshop and the like.

So I think the future looks good for Apple. They’re going to do well, methinks.

2:33 am | Posted in Apple, Computing, Hardware | No Comments »