suki2.jpg

15/05/2010

Multiple File Upload Identifying Values tip

QuickImage Category Old School Notes Dev
I know this is very old school, but i just needed it for an existing app so this is more an Aid Memuor, also I could not remember where i got it from (someone yell if I've pinched your tip)
Sometimes you have multiple files uploads on a web form, and you want to allocate each file to a specific place or function, i know you can just work out which file is which based on its order in the @AttachmentNames list as per below

image := @AttachmentNames;
@If( @Elements(@AttachmentNames) > 0 ; image[1] ; "" )


but this only works well when the document is not edited all the time (new files added and deleted), personally i prefer an alternative method
First put your file upload and a editable field on your form

FileUpload3.jpg

Set the field as hidden via html properties and give the form an id value the same as its name

FileUpload2.jpg

Now put the following JavaScript in the other html field on the file upload properties

onChange="document.getElementById('SponsorLogo').value = this.value"
(obviously swapping out the elementid to the one you are using)


FileUpload1.jpg

Now you will find that the field contains the value of the field both with JavaScript and notes wise on save

14/05/2010

Fitness Week 9,10,11

QuickImage Category Fitness
3 weeks worth of results, but strangly little progress

First person to win 250 squash games
Kieran: 27 Games
Mark: 52 Games
(1 point head start on a game for every 10 games the other person is ahead)
(we also play by "you have to WIN a game, genuine mistakes on game points are 'let' ")

It should be noted that we are on to up to 6 games per match now and the games are far far harder and faster, we are going through balls at a rate of knots (single yellow spots rather than our traditional double yellow spots), i feel that its only the fact that mr Green wear the wrong trainers and so can't corner properly that is letting me win
First person to loose 2 stone
Kieran ( Initially 15 Stone, 8 pounds) : 14' 10"
Mark ( Initially 16 Stone, 8 pounds) : 16' 4"

you know, it may be time to eat properly

01/05/2010

Ubuntu 10.04 first impressions

QuickImage Category Linux
The latest Ubuntu release is out, and as its the Long Term Support version both my home media machine and work laptop received the full treatment, both are complete rebuilds (new harddrives) so an ideal upgrade path. For me its a worth while upgrade removing many of the irritations that i had with 8.04 on my work laptop, such as the integrated support for 3G mobilebroadband sticks, which just work with the simplest of wizards, faster bootup times and possibly the greatest relief, the fact that vmware workstation 7 worked flawlessly straight off.

I'm still using the 32bit version, but swapped out the kernel for the server one for the 3gb+ memory support with the simple commands

$ sudo apt-get update
$ sudo sudo apt-get install linux-headers-server linux-image-server linux-server

A lot of my settings came over just fine when I copied the contents of my 'Home' directory from the old hard drive to the new, and I'm well on my way removing all the eye candy that they have added, I'm not going to review anymore as there are no doubt a thousand reviews of it out there already. but well done Canonical, real progress and feels like more and more like a real contender

Avalable for on site contract in

 

Hire Me

Directly:

Curriculum Vitae

As a member of:
ldc_badge.gif

Contact My Grubby Hide

Skype Linkin Main Me Twitter

Fab to Goto

fotb_marmite_200x200.png