Re: [Hampshire] Ignoring devices
On Thu, Jan 16 at 09:51, Leo wrote: An external USB drive I have presents both itself and a dvd drive (containing some windows software) when it is plugged in. I'd like to be able to ignore the dvd drive. Googling indicates I should use the ignore_device option in my udev rules, however this doesn't appear to make a difference. The line in udev is: SUBSYSTEM==block, ENV{ID_MODEL}==CDROM, ENV{ID_SERIAL}==Virtual_CDROM_D3118946-0:1, ENV{GENERATED}=1, OPTIONS+=ignore_device Does anyone know what I'm doing wrong, or have an alternative way to stop devices showing up? Just a random thought. You might want to take a look at usb-modeswitch. It's actually designed to handle a different but similar problem. USB modems often present the pseudo Windows DVD drive only until they are switched into the operating mode when the drive is hidden and pseudo serial ports or other endpoints for the modem are presented. That said it's a tricky bit of sofware, but it might have some clues. -- Bob Dunlop -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] 'Killed' response when running program from command-line
Hi, On Thu, Jan 16 at 09:02, Robin Wilson wrote: 2. I'm intrigued as to how much memory this program uses - I thought it wouldn't be much but obviously I was wrong. I would normally just use top, but the program executes very quickly and so I don't have chance to do anything like that - is there something I can run the program with that will tell me the total memory usage once the program has exited? I don't know but I bet it's humungous. Ever since university when I was introduced to the phenomena (they actually used the guys work as an example of how not to do things), whenever I see Fortran mentioned I think Dumb physicist who knows no other way to do matrix maths. Closely followed by Dumb physicist with huge N-dimensional arrays with only half a dozen set points and haven't they heard of sparse matrix calculations. The only thing 30 years has taught me about the Fortran rule is that Dumb physicist is an assumption, works just as well for Dumb chemist, Dumb geoscientist etc. The assumption that Fortan will be a memory hog holds. I wonder what valgrind tells you. valgrind command will run the command and give you a summary of dynamic memory allocated and freed. Also worth running size command as I've seen Fortan programs with huge static memory allocations, add up the bss and data values. -- Bob Dunlop -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] 'Killed' response when running program from command-line
On 17 January 2014 08:56, Bob Dunlop bob.dun...@xyzzy.org.uk wrote: I don't know but I bet it's humungous. Ever since university when I was introduced to the phenomena (they actually used the guys work as an example of how not to do things), whenever I see Fortran mentioned I think Dumb physicist who knows no other way to do matrix maths. Closely followed by Dumb physicist with huge N-dimensional arrays with only half a dozen set points and haven't they heard of sparse matrix calculations. The only thing 30 years has taught me about the Fortran rule is that Dumb physicist is an assumption, works just as well for Dumb chemist, Dumb geoscientist etc. The assumption that Fortan will be a memory hog holds. Fortran has some advantages when used for maths calculations. It handles exception cases in floating point calculations that few other languages do. Caveat being that you can use specially designed math libraries with other languages to achieve handling of exception cases in floating point calculations. fortran has methods for properly handling spare matrix, but a dumb physicist maybe was not aware of them. Don't get me wrong, the last time I used fortran was 20 years ago, but I do recognize the areas where fortran can be the best tool. As an example, the last complex mathematics algorithm I had to implement, I did it in C with a special maths lib to ensure the accuracy of the results. The algorithm was taking data in from 150 data streams, doing its calculations and producing results in real time. It was working on streams of global positioning data, and endevouring to detect positioning errors in the data streams. Kind Regards James -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] (OT) Nikon FM2 camera repair
Thanks Tony. I have had a quote from http://www.sendeancameras.co.uk/ of around £120 + VAT and approx. £ 100 + £33 per shutter blade again + VAT. from Camera Repair Workshop 9 Wharfside, Bletchley, Milton Keynes. Both seemed very helpful. This is less than I expected but the price may well rise when they have looked at the camera. I am posting this for reference. Clive On 14 January 2014 20:52, Tony Whitmore t...@tonywhitmore.co.uk wrote: On 14/01/14 18:44, Clive Woodfine wrote: I have Nikon FM2 camera but unfortunately some of the titanium shutter blades are bent. Can anybody recommend where I can get it repaired at a reasonable price? I recommend Fixation UK but to be honest, it's sadly probably cheaper to get a new second hand one from eBay or the like. Tony -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk -- -- Clive -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --
Re: [Hampshire] 'Killed' response when running program from command-line
On 17 Jan 2014, at 08:56, Bob Dunlop bob.dun...@xyzzy.org.uk wrote: I wonder what valgrind tells you. valgrind command will run the command and give you a summary of dynamic memory allocated and freed. Also worth running size command as I've seen Fortan programs with huge static memory allocations, add up the bss and data values. Wow - I get the following result from size: textdata bss dec hex filename 1733582 21888 1123936088 1125691558 4318b0a6./sixsV1.1 Which seems to suggest that the bss segment (apparently the size of variable storage) is over 1Gb in size…that might explain my problems! Thanks for all your help, Cheers, Robin -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --