Import Soul Wouldn’t it be nice if things just worked

29Jan/100

Loading files with Internet Explorer

While constructing various websites i have slowly learned to hate Internet Explorer completely and in all its forms, from messing up the appearance of your site, to corrupting files up for download though PHP.

Since i had so much trouble with it i thought it would be worthwhile to post the solution to internet explorer corrupting some files that are loaded through PHP e.g.

header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.basename($path));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
header('Content-Length: ' . filesize($path));
ob_clean();
flush();
readfile($path);

The simplest way i found to correct the problem was to comment (or remove) out the line declaring the length of the file

//header('Content-Length: ' . filesize($path));

The downside to this method is that for downloading large files, users wont know the total size of the file being downloaded, luckily for me the files been downloaded were small enough for this not to cause problems.

I hope that by writing this i manage to save somebody some time and frustration, leave a comment if you have any other fixes for internet explorers many problems.

26Dec/090

New Address

Have finally managed to move the site onto its own web address (www.importsoul.net), the old one will redirect to here for a while but not for long. Hope i haven't broken anything in the move, if i have let me know.

Edit: I had broken all of the images but they have now been fixed

Filed under: Uncategorized No Comments
12Nov/090

Melting Aluminum

I had some spare time last weekend and decided to see if i could melt down the aluminum cases of some old hard drives. I intended to (if i managed to melt it) be able to mold some metal puzzles.

To start i broke up the hard drive casings into small chunks and as it turns out they are surprisingly brittle and could be broken apart using a hammer with little difficulty (jar in right of photo). I then set up a small barrier out of some old firebricks to try and keep the heat in and placed some chunks into a spare steel food can and used a torch to try and melt them.

The setup and tools

The setup and tools

The melting begins

The melting begins

not much to look at but thats it melted, supriseingly the black coating on the pieces is still partialy intact

Not much to look at but that's it melted, surprisingly the black coating on the pieces is still partially intact

The metal cooled too rapidly and very little made it down the length of the can and into the mould, even so the little bit that did make it in managed to heat the WET clay enough to crack it (i have tried similar things with clay that has dried for about a week and that cracked under the heat too)

The metal cooled too rapidly and very little made it down the length of the can and into the mold, even so the little bit that did make it in managed to heat the WET clay enough to crack it, i have tried similar things with clay that has dried for about a week and that cracked under the heat too

The outcome of this was no practical use, just a big blob of melted aluminum and some shapes

The outcome of this was no practical use, just a big blob of melted aluminum and some shapes

Some of wich looked pritey cool

Some of which looked prity cool

Well this kind of turned out as a failed project, but i plan to have another go at it another time with a better insulated crucible to keep the heat in better and keep the molten metal hot.

22Oct/090

Playing with fire

At ventures we decided to brighten up a construction activity that we were running for another scout group and got some awesome pictures. Balloons and LPG is fun.

A race between patrols to pop their balloon

A race between patrols to pop their balloon

Prepareing for the next event

Preparing for the next event

The uses of flagpolls

The uses of flag poles

And again

And again

And a video

Hope you enjoyed the pictures

14Sep/091

NCSS Programming Comp

I just finished the NCSS programming comp (http://challenge.ncss.edu.au/). The competition runs over 5 week with 5 problems a week and 6 problems on the final week

NCSS offers two courses Simple and advanced, last year i participated in the Simple division and managed to come first, this year i went in the advanced division and found it much more challenging but still managed to achieve a 6th. However the course did teach me about things like regular expressions.

This year NCSS was also offering an embedded course (i participated in the beta for this, where was given the arduino board in my other projects). for the embedded course you paid for a circuit board based of the arduino with many sensors and outputs already built in.Embedded board

The embedded division still has one more week to go, so il update this post with my results in that then.