Re: Modern COM Programming in D

2012-04-08 Thread Sam Hu
On Tuesday, 3 April 2012 at 14:10:32 UTC, Jesse Phillips wrote: On Tuesday, 3 April 2012 at 07:49:28 UTC, Sam Hu wrote: Sorry the link http://dpxml-lio/d is unreachable from my side (maybe someone blocked it :P).Could you please provide an alternative place for download? Appreciated. Regards,

code to get LCN from filename

2012-04-08 Thread Jay Norwood
I hacked up one of the file.d functions to create a function that returns the first Logical Cluster Number for a regular file. I've tested it on the 2GB layout that has been defragged with the myDefrag sortByName() operation, and it works as expected. Values of 0 mean the file was small enoug

Re: I'll be in Seattle at Lang.NEXT

2012-04-08 Thread Andrei Alexandrescu
On 4/8/12 11:31 AM, bearophile wrote: Andrei Alexandrescu: Slides are online: http://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2012/Three-Unlikely-Successful-Features-of-D Putting the slides online before the talk is a very good idea, thank you. Page 31: the title of this slide is "D a

Re: I'll be in Seattle at Lang.NEXT

2012-04-08 Thread bearophile
Andrei Alexandrescu: > Slides are online: > http://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2012/Three-Unlikely-Successful-Features-of-D Putting the slides online before the talk is a very good idea, thank you. Page 31: the title of this slide is "D array = pointer + length", but the image

Re: DMagick image processing with D.

2012-04-08 Thread nrgyzer
Thanks for DMagick... works great, except toBlob(). When I try the following: Image example = new Image(Geometry(100, 100), new ColorRGB(0, 255, 0)); example.toBlob(); I get an access violation. Do I anything wrong or is it a bug? (I'm using Imagick 6.7.6, DMD64 and CentOS)

Re: unzip parallel, 3x faster than 7zip

2012-04-08 Thread Jay Norwood
On Sunday, 8 April 2012 at 13:55:21 UTC, Marco Leise wrote: Maybe the kernel caches writes, but synchronizes deletes? (So the seek times become apparent there, and not in the writes) Also check the file creation flags, maybe you can hint Windows to the final file size and they wont be fragmented

Re: unzip parallel, 3x faster than 7zip

2012-04-08 Thread Marco Leise
Am Sat, 07 Apr 2012 21:45:04 +0200 schrieb "Jay Norwood" : > So ... it looks like the defrag helps, as the 109 sec values are > at the low end of the range I've seen previously. Still it is > totally surprising to me that deleting files should take longer > than creating the same files. Maybe

VBScript helper

2012-04-08 Thread Denis Shelomovskij
MS Windows is shipped with Windows Script Host (WSH), for every single malware developer to be able to do everything once he finally forced you to double-click on a small text file. Now WSH works for D developer too by providing easy (but not very fast) access to system information (yes, and C