spock

Members
  • Content count

    415
  • Joined

  • Last visited

Community Reputation

217 Neutral

About spock

  • Rank
    Member
  1. Speedtest.net : pretty cool

    London is not exactly next door so I guess that's acceptable. [smile]
  2. PCX is not a particularly useful image file format, but go ahead and support it if you want. Use of file formats is generally not restricted, but the algorithms used to encode the data may be - e.g. compression algorithms are often subject to patents. PCX image data is compressed by a simple run-length encoding which isn't patent-encumbered.
  3. If there's a great browser out there I haven't seen it yet. Firefox is flexible and renders pages well but has a number of annoying bugs and significant performance problems, even without any of the slow and leaky extensions installed. Firefox is my main browser of choice right now because I can work around or live with most of its flaws. Internet Explorer feels much faster in most cases, but that's pretty much its only advantage. I don't trust it for casual browsing with default settings, and I've found it to be virtually unusable if you lock it down. I had to manually alter the executable to keep it from constantly complaining about ActiveX being disabled, for example. It blatantly breaks even the most basic web standards, making it a pain to develop for. I haven't used Opera much, partly because I didn't think it was worth the price but mostly because I ran into serious bugs every time I tried it. For some reason all recent versions of Opera hate my site, hanging on it. Now that it's free I'm willing to experiment with Opera a bit more, but my impression of it so far isn't very favourable.
  4. Firefox certainly has a big memory footprint but I don't think I've ever seen it use 100 megabytes or more on my computer. Usually its working set is around 80-90 megs after browsing for a while (that's 1.5 beta, the stable versions about half of that). Seems like everyone else are complaining about Firefox memory leaks. I must be doing something wrong. [smile] [Edited by - spock on September 23, 2005 9:11:27 PM]
  5. WIN32 Custom Hotkeys?

    I think the hotkeys you are thinking of are those associated with shell links (aka shortcuts). Use the shell API if you need to create shortcuts or modify their properties; avoid modifying the registry data directly if at all possible.
  6. In general you just copy the element to its new position. If you are moving a range of elements you're probably looking for std::copy, for a single element regular assignment is fine.
  7. LRESULT XFrameAppWindowProc( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam ) should be LRESULT CALLBACK XFrameAppWindowProc( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam )
  8. typedef structure?

    Quote:Original post by nilkn A long time ago, in a galaxy far, far away... C compilers didn't automatically generate an identifier when structs were declared. Please note that C compilers still doesn't generate type tags for structs. It's a difference between C and C++, not a problem that has been fixed in "modern compilers".
  9. sql union behaviour

    Couldn't you do something like this instead? select deptno,deptname, (select avg(salary) from emp where sex='M' and workdept=deptno) as male_avg_salary, (select avg(salary) from emp where sex='F' and workdept=deptno) as female_average_salary from dept
  10. template class members

    The declaration for A doesn't make much sense: you have a fixed-size array as a member, attempt to initialize it with a pointer to a dynamically allocated array, and store the size (which can't change) as yet another member. But if I understand the situation correctly you have a set of types (class template A) and want to use instances of those types polymorphically (in B). That usually means inheritance in C++ (specifically a common base class for A). Wouldn't you be better off using arrays of dynamic size in A (making it a regular class)? Is it critically important to keep the array size known at compile time?
  11. SOB

    It's an interesting idea to contemplate, but I think you'd run into undecidable behaviour fairly quickly if you actually tried to make such a compiler. That is, you wouldn't be able to determine whether a sequence of operations could invoke undefined behaviour or not. There's a reason for not requiring compilers to emit a diagnostic for undefined behaviour: as far as we know it's not possible in the general case.
  12. SysID

    Rev 22 complains about "no 'ReleaseVersion' key" and fails at the same assertion as rev 21 for me. No change as far as I can see. I'll be happy to help you with some testing and feedback; my mail address is shown on my web site. I'm not going to send you a dump of the entire HKLM (a cursory glance of the 50 MB .reg file reveals that there's sensitive information in there) but I could dump lower branches for you. Looking at the source code it looks like you are doing this by reading the registry directly - any particular reason you are not using the device management functions?
  13. SysID

    I ran the new debug version: SysID rev. 21 Operating System: ======================================== Windows 2000 Service Pack 4 Build(2195) Memory: ======================================== Total Physical: 512 MB Free Physical: 179 MB Total Pagefile: 992 MB Free Pagefile: 650 MB Checking for presence of cpuid.....OK Calling GetAllData Reading data 0 from cpuid .....OK Reading data 1 from cpuid .....OK Reading data 2 from cpuid .....OK Reading data 0x80000000 from cpuid .....OK Calling SetVendorID Calling SetProcType Calling SetCapabilities Calling SetCacheInformation Got all info Processor: ======================================== Vendor: GenuineIntel VendorCPUName: Family: Intel Pentium Pro Type: Original OEM Brand ID: - Model: - L1 Cache size: 0 KB L2 Cache size: 0 KB Type: 0 Family: 6 Model: 14 Revision: 2 Intel specific: Hyper-Threading present: No adapter 0 Monitor 0 Width: 1600 Height: 1200 Bits: 85 adapter 1 Display: ======================================== Monitor 0 Name: NOKIA 446Xpro Width: 1600 Height: 1200 Bits: 32 Refresh rate: 85 Hz Opening Devicemap registry key. Going to read 2 \Device\Video's Getting value for \Device\Video0 Opening registry key System\ControlSet001\Services\nv\Device0 ReadSingleDeviceFromDeviceMap called Videocard found Getting value for \Device\Video1 Opening registry key System\ControlSet001\Services\VgaSave\Device0 ReadSingleDeviceFromDeviceMap called Getting value for \Device\Video2 Opening registry key System\ControlSet001\Services\mnmdd\Device0 ReadSingleDeviceFromDeviceMap called Videocard: ======================================== Method 1 Videocard 0 Description: NVIDIA GeForce3 Ti 500 Manufacturer: NVIDIA Driver version: Error, no 'ReleaseVersion' key, possibly ATI only? Debug Assertion Failed File: c:\program files\microsoft visual studio 8\vc\include\xstring Line: 1462 Expression: string subscript out of range It's a dual Pentium III 450 MHz box. Both processors are family 6 model 7 stepping 2 with 32 KB L1 cache and 512 KB L2 cache.
  14. SysID

    Operating System: ======================================== Windows 2000 Service Pack 4 Build(2195) Memory: ======================================== Total Physical: 512 MB Free Physical: 261 MB Total Pagefile: 992 MB Free Pagefile: 678 MB Processor: ======================================== Vendor: GenuineIntel VendorCPUName: Family: Intel Pentium Pro Type: Original OEM Brand ID: - Model: - L1 Cache size: 0 KB L2 Cache size: 0 KB Type: 0 Family: 6 Model: 14 Revision: 2 Intel specific: Hyper-Threading present: No Display: ======================================== Monitor 0 Name: NOKIA 446Xpro Width: 1600 Height: 1200 Bits: 32 Refresh rate: 85 Hz Videocard: ======================================== Method 1 Videocard 0 Description: NVIDIA GeForce3 Ti 500 Manufacturer: NVIDIA Driver version: Error, no 'ReleaseVersion' key, possibly ATI only? followed by "The exception unknown software exception (0xc000000d) occurred in the application at location 0x0040f1ad." and then Method 2 Videocard 0 Hardware Description: Error, no 'DeviceDesc' key Manufacturer: Error, no 'Mfg' key Chip Type: - Memory Size: -1 MB Memory Type: - Transfer Rate: - Driver Version: Error, no 'Driver' key Date: Provider: Videocard 1 Hardware Description: Error, no 'DeviceDesc' key Manufacturer: Error, no 'Mfg' key Chip Type: - Memory Size: -1 MB Memory Type: - Transfer Rate: - Driver Version: Error, no 'Driver' key Date: Provider: Videocard 2 Hardware Description: Error, no 'DeviceDesc' key Manufacturer: Error, no 'Mfg' key Chip Type: - Memory Size: -1 MB Memory Type: - Transfer Rate: - Driver Version: Error, no 'Driver' key Date: Provider: Videocard 3 Hardware Description: Error, no 'DeviceDesc' key Manufacturer: Error, no 'Mfg' key Chip Type: - Memory Size: -1 MB Memory Type: - Transfer Rate: - Driver Version: Error, no 'Driver' key Date: Provider: Videocard 4 Hardware Description: Error, no 'DeviceDesc' key Manufacturer: Error, no 'Mfg' key Chip Type: - Memory Size: -1 MB Memory Type: - Transfer Rate: - Driver Version: Error, no 'Driver' key Date: Provider: Videocard 5 Hardware Description: Error, no 'DeviceDesc' key Manufacturer: Error, no 'Mfg' key Chip Type: - Memory Size: -1 MB Memory Type: - Transfer Rate: - Driver Version: Error, no 'Driver' key Date: Provider: Videocard 6 Hardware Description: Error, no 'DeviceDesc' key Manufacturer: Error, no 'Mfg' key Chip Type: - Memory Size: -1 MB Memory Type: - Transfer Rate: - Driver Version: Error, no 'Driver' key Date: Provider: Videocard 7 Hardware Description: Error, no 'DeviceDesc' key Manufacturer: Error, no 'Mfg' key Chip Type: - Memory Size: -1 MB Memory Type: - Transfer Rate: - Driver Version: Error, no 'Driver' key Date: Provider: Videocard 8 Hardware Description: Error, no 'DeviceDesc' key Manufacturer: Error, no 'Mfg' key Chip Type: - Memory Size: -1 MB Memory Type: - Transfer Rate: - Driver Version: Error, no 'Driver' key Date: Provider: Videocard 9 Hardware Description: Error, no 'DeviceDesc' key Manufacturer: Error, no 'Mfg' key Chip Type: - Memory Size: -1 MB Memory Type: - Transfer Rate: - Driver Version: Error, no 'Driver' key Date: Provider: Videocard 10 Hardware Description: Error, no 'DeviceDesc' key Manufacturer: Error, no 'Mfg' key Chip Type: - Memory Size: -1 MB Memory Type: - Transfer Rate: - Driver Version: Error, no 'Driver' key Date: Provider: Videocard 11 Hardware Description: Error, no 'DeviceDesc' key Manufacturer: Error, no 'Mfg' key Chip Type: - Memory Size: -1 MB Memory Type: - Transfer Rate: - Driver Version: Error, no 'Driver' key Date: Provider: Videocard 12 Hardware Description: Error, no 'DeviceDesc' key Manufacturer: Error, no 'Mfg' key Chip Type: - Memory Size: -1 MB Memory Type: - Transfer Rate: - Driver Version: Error, no 'Driver' key Date: Provider: Videocard 13 Hardware Description: Error, no 'DeviceDesc' key Manufacturer: Error, no 'Mfg' key Chip Type: - Memory Size: -1 MB Memory Type: - Transfer Rate: - Driver Version: Error, no 'Driver' key Date: Provider:
  15. CSS property names should be case-insensitive according to the spec (although almost everyone uses lower-case).