Wednesday, January 20, 2010

Modifying a BIOS dump image:

Long time since last update. By now you've probably noticed that the ads on this page dynamically update themselves to match whatever content I post here. Help me if you can just by clicking on something interesting.


I've been playing around recently with downloading BIOS updates for my ASUS laptop, and modifying the 'Energy Star' logo to my own custom design. Why do this? no reason really, except it's fun.


The following code (in C) is used to modify the section of the BIOS update file, which I know resides in the first 4096 bytes of the file header:




#include
#include


typedef unsigned char uint8_t;

// be *very* careful not to screw things up!!
#define FILE_SIZE 8998
#define IMG_START 0x100

int main(int argc, char **argv)
{
uint8_t *buf;
FILE *in;
FILE *out;
int check;

buf = (uint8_t *) malloc(sizeof(uint8_t)*FILE_SIZE);

out = fopen(argv[1], "r+");
in = fopen(argv[2], "r");
fseek(out, IMG_START, SEEK_SET);
check = fread(buf, sizeof(uint8_t), FILE_SIZE, in);
if (check != FILE_SIZE) {
printf("Error reading image\n");
exit(1);
fclose(in); fclose(out);
}
fwrite(buf, sizeof(uint8_t), FILE_SIZE, out);

fclose(in);
fclose(out);
}



Screenshots to be posted later, but what we end up with is an identical image to the first, but with a modified 8bit bitmap image inside.

Saturday, October 24, 2009

Windows 7

I've been following the progress of Windows 7 since the PDC build 6801. Indeed, I have had it installed on all of my home computers since the public beta. October 22nd marks the release to manufacturing (RTM) stage. Now we can all stop using crappy Vista.

Sunday, October 18, 2009

Website

You may have noticed the mothdesigns.co.uk site is currently undergoing maintenance. Basically I'm trying to do as much as possible using just static HTML and CSS. This doesn't mean I'm too lazy to learn Dreamweaver, I believe that there are too many designers now that *assume* end users have broadband, and their sites have background processes, fancy flash animations, and other things which will quickly saturate connections.
I'm going to show you thata website made with plain HTML and CSS can be just as impressively flash as some others (I won't mention which at this moment in time)

In the meantime, sorry for the delay in sorting the site out. If you have a login for the site it shoudl still work. None of the back-end stuff has been altered. Maintenance is scheduled to last at least a week, but it'll be back, bigger and better than before.

Stay Tuned!

Saturday, October 17, 2009

Puppeteer v2.7a






Puppeteer is a freeware audio mixing, scratching and beatboxing tool similar to eJay. Over two thousand music samples are included for you to mess around with, in addition to voice samples of famous people like George W Bush and Tony Blair.
New features in version 2.7a include: improved performance, real-time recording and NT 6.1 (vista) compatibility

Head on over to the Puppeteer project page for further information or to download.

Windows Mobile build 23071

A new build of the Windows Mobile 6.5.1 development branch has appeared, numbered 23071. 



WinMo users will note from the screenshot that the start menu and taskbar buttons have been moved to the bottom, more closely resembling a PC desktop. 
It's important to note that builds from the 23xx chain are not the same as what will be released as Windows Mobile 6.5 in October, but serve to form the basis of Windows Mobile 6.5.1 which will be released sometime around the beginning of 2010.




The xda-developers website has ROMs available for most htc devices, as well as the Samsung Omnia.