Slashdot Mirror


User: Hal_Porter

Hal_Porter's activity in the archive.

Stories
0
Comments
8,852
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 8,852

  1. Re:Licensing and open source on Should IBM's SOM/DSOM Be Open Sourced? · · Score: 1
    Actually you can Global Subclass

    http://msdn2.microsoft.com/en-us/library/ms997565.aspx

    However, there are ways you can add subclassing functionality to every process. Once you get a function inside the address space of a process, you can subclass anything in that process. There are a few ways to do this. The easiest (and most brutal) approach is to add a dynamic-link library (DLL) name to the following key in the registry:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Windows\APPINIT_DLLS

    This key causes Windows to add your DLL to every process in the system. Your DLL would need some way to wake up after every event that the DLL would want to subclass after. A WH_CBT hook usually does the trick. The DLL can watch for the HCBT_CREATEWND event, then subclass the desired windows. The CTL3D sample application uses the WH_CBT hook to do its subclassing, although it does not contain the registry entry that makes subclassing a part of every process. Applications that want CTL3D can link it into their process. Applications loaded CTL3d to get new style 3D look controls on Windows 3.1. By Windows 95 all controls were 3d by default and it wasn't needed. Oddly enough one of the features of Office 2000 was new "flat effect" controls.

    But making it opt in was a (very wise) design decision. You could write something like CTL3D and add it to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Windows\APPINIT_DLLS and it would affect (infect?) all applications. Spyware, adware and toolbars use this technique to inject code into all processes. I've actually seen these sorts of DLLs crash third party applications. In fact it's almost inevitable since there is no way the company making the injected code can test it on every possible Windows process. In the case of Spyware they probably don't even try to.
  2. Re:hell ya on Joel Spolsky On How To Bootstrap a Business · · Score: 1

    But you could borrow $5 million for your Web 2.0 site vap.0ur.war3.com change your name to Vicioso Gonzalez and then flee to Mexico.

  3. Re:Cite someone with some actual skills, & ins on Is Microsoft Office Adware? · · Score: 1

    Jeremy Reimer is just bad news, literally and figureatively speaking, and is nothing more than a troublemaker online. He caused himself and his website (arstechnica) all kinds of trouble, as well as his fellow arstechnica person in Mr. Jay Little.

    Umm, you're Alexander Peter Kowalski aka APK aren't you?

    I can see why you hate Reimer though -

    http://www.jeremyreimer.com/phpbb2/viewtopic.php?t=4128

    Too start with it was quite funny, but I actually ended up feeling sorry for you.

    You're (in)famous at arstechica too -

    http://episteme.arstechnica.com/eve/forums/a/tpc/f/34709834/m/8510980933?r=3650926043#3650926043

    And Jay Little wrote this creepy little article about how much he hates you -

    http://www.jaylittle.com/jaylittle/default.aspx?cmd=article&sub=display&id=30

    Seriously dude, you're mad and they're evil to torement you. Seek pschiatric help. And stop linking to that windowsitpro thread, it makes you look like a nutter.

  4. Re:Whatever... on Linux Kernel 2.6 Local Root Exploit · · Score: 1

    Yeah, heaven forbid that you rely on employees not being mindless drones. Far better to hire a highly paid consultant to deindispensableize them.

  5. Re:nag screens and annoyances on WGA Under Vista SP1 Is Kinder and Nags More · · Score: 1

    Most people running pirate copies of Windows don't know they are from what I can tell. They buy a machine with preinstalled Windows and the sticker is a fake and so is the recovery disk if they got one. So it's not genuine in the sense a forged dollar bill is not genuine.

  6. Re:I can't believe... on Energy From Raindrops · · Score: 1

    British prisons used to do it. Though the amount of work you can get from humans is so low that they mostly wasted the energy by attaching vanes to the mill that made it harder for the prisoners to work.

    http://space.newscientist.com/article/mg16322007.600-the-last-word.html

  7. Re:Real summary. on Has Ron Paul Quit? · · Score: 1

    That's just not true. In the UK in the 19th Century all the infrastructure and industry was originally built by private enterprise. In 1945 the Labour government nationalised it and it basically rotted away after that. Look at British Rail for example - the railways fell apart under public ownership. Admittedly privatising them didn't help, but that's because competition was never really put back into the system. It's the same with the British car industry. Built by private enterprise, destroyed by the government when it was nationalised and by the time they decided that they couldn't afford to keep subsidizing it it was too late for it to survive privatisation.

    And in most of the world broadband is cheaper if you buy it from a private company than if you buy it from the nationalised or formerly nationalised main telco. The solution is to free things up and make sure in the case of bridges that private companies get sued into bankruptcy if there is a fatal accident caused by their negligence. Actually just that last part should make things better since you can't sue the government for bad road design because of the doctrine of sovereign immunity.

  8. Re:Windows? on Is Microsoft Office Adware? · · Score: 1
    Actually I think both the home Windows and Office will turn into Adware at some point. At the moment OEMs pay something less than $50 to Microsoft to install Windows. But they can offset that by installing crapware.

    http://arstechnica.com/news.ars/post/20070525-windows-tax-is-50-according-to-dell-linux-pc-pricing.html

    So it turns out that not including Windows saves the consumer $50 from the regular list price. This amount is not too far off from what a large OEM like Dell would pay for a volume discount for Windows Vista Home Basic (the regular OEM price is about $95). Many value PC sellers try to make up for the cost of a Windows license by bundling demo and trial versions of software such as AOL (affectionately known as "crapware"), for which they receive money from software companies looking to increase their distribution levels. Dell is no exception to this practice, although on their web site it allows customers to select the option of not including various applications. But that $50 leaves a gap at the bottom of the market that might be colonised by Linux. Sub $200 PCs will end up paying too high a percentage for this. Microsoft could avoid this and rake in more of the cash if they could make a cheaper, ad supported version.
  9. Re:Hm... on Biofuels Make Greenhouse Gases Worse · · Score: 1

    I think the environment is like a box of chocolates. It's nice when it's there, but sooner or later it will be gone.

  10. Re:Wah? Esther Schindler long since dead ? on Should IBM's SOM/DSOM Be Open Sourced? · · Score: 1

    Probably she asked Cutler and Ballmer to open source old versions of Windows NT. Then she woke up six months later in hospital and decided that maybe suggesting open sourcing OS/2 was a better idea.

  11. Re:Licensing and open source on Should IBM's SOM/DSOM Be Open Sourced? · · Score: 1

    Don't like the file dialog, subclass it with a better one

    You can do that in Win32.

    http://www.codeproject.com/KB/dialog/DavidKotchanFileDialog.aspx

    Actually, you can subclass any Windows window even in plain C

    http://furix.net/subclassing-child-controls

  12. Re:Considering the the potential energy stores in. on Knee Brace Generates Electricity From Walking · · Score: 1

    I've heard smokers make the same argument. By dieing young they save the NHS money in expensive geriatric care. It's probably true, since it's far cheaper to let someone die untreated of something essentially untreatable like lung cancer or a sudden heart attack than it is to keep them alive for years in a old people's home.

    Not that the NHS sees it that way of course, they're discussing refusing operations for people who are obese or smokers.. Not all people with self control issues are punished though. Heroin is free on the NHS if you get yourself hooked.

    Mind you most people end up paying for private nursing homes since the NHS ones are so grotty. And if the NHS refuses to pay for parts of your lung cancer treatment, you can't just pay for that part, you need to pay for the whole lot. So you don't have a choice about paying National Insurance, but they can decide not to pay for drugs that would keep you alive. If you don't like it, you need to pay for the whole cost of the treatment. It's sort of like an HMO that you're legally obliged to contribute to. In fact avoiding National Insurance can lead to prison since it legally considered a tax.

    You'd think things like this and the obviously dismal state of NHS dentistry would put Americans off the concept of socialized health care, but quite often they'll joke about British teeth and then enthusiastically advocate it without seeing the link between the two.

  13. Re:coflicting answers on Ron Paul Campaign Answers Slashdot Reader Questions · · Score: 1

    I may as well just kill every man and old woman inside my territory, rape the young attractive ones into pregnancy, create my own little tribe and exterminate the rest of you.

    tl;dr. I think you should become An Hero.

  14. Re:They already do. on W3C Gets Excessive DTD Traffic · · Score: 1

    For example, the XML libraries that come with Sun's Java rely on java.net.URL for downloading resources. I just checked my 1.6 Java install, and by default, it has no cache. In looking up how the java.net cache works, I discovered it wasn't even added until Java 1.5. So prior to Java 1.5, most Java libraries wouldn't cache responses at all because the included library didn't support caching. 'Course, even in Java 1.6, there's no default implementation, so each Java application would have to implement their own cache[1].

    Wow I always thought that Java and XML were designed an implemented by people who don't have a clue about performance but it never occured to me that they would be as dumb as this.

  15. Re:I'd write the crap code. on W3C Gets Excessive DTD Traffic · · Score: 1

    BLOCK FUCKING CAPS replaces the previously deprecated tag in X(H)TML 5.0 Transitional.

  16. Re:Free software's "killer app" is this: on Hostile ta Vista, Baby · · Score: 1

    Linux does not have a single line of code -- not even one -- that is intended to make the computer harder to use.

    Well there have certainly been patches that make Linux hard to use.

    Greg Kroah Hartman deleted the hook that the Philips web cam driver used to use. That means users can't use it, except in a really crippled way.

    http://www.smcc.demon.nl/webcam/

  17. Re:This just in... on Hostile ta Vista, Baby · · Score: 1

    If you wanted to do this on Windows just download UnixUtils

    http://unxutils.sourceforge.net/

    for and findstr on Windows can do most of what xargs and grep can do, but you sometimes need sed.

  18. Re:Killer app not really needed. on Hostile ta Vista, Baby · · Score: 1

    Check out the threads on MacRumors.com by people waiting for Mac Pro's with GeForce 8800 GT's, compared to people waiting for anything practical, if you doubt this existence of this phenomenon.

    Yeah, now that Boot Camp is available there's a need for Macs with fast video cards.

  19. Re:This just in... on Hostile ta Vista, Baby · · Score: 1

    That's absolutely correct. But it's not like Windows just works. In point of fact I've spent Waaayyyyy too many hours of my life pursuing weird problems in Windows, clearing malware off windows PCs, waiting for the stupid thing to boot, or shut down, or trying to persuade it to please -- god damn it -- correctly install some piece of software that purports to be Windows friendly/compatible/tolerant and installs just fine on the supposedly identical machine in the next room.

    ...

    I will be a happy man if I never have to run Regedit again.


    If you stopped using Regedit, Windows would just work.

  20. Re:This just in... on Hostile ta Vista, Baby · · Score: 1

    Who are these "most people" who only use a browser and nothing else?

    Slashdotters?

  21. Re:Why is XML so popular on The Future of XML · · Score: 1

    So you mean only the original implementor can do that

    Well I could do it if I had the source code. From your comments I can't see you probably couldn't. But then I did say a 'decent' programmer ;-) And non decent programmers will probably screw up ascii file formats too.

  22. Re:But it isn't and doesn't... on The Future of XML · · Score: 1

    Sounds like XML would work

    Yeah it will. And if you have loads of spare CPU and memory capacity like on a desktop you won't notice the inefficiency. But sooner or later you're going to want to run your code on a mobile phone or a server where the overhead of parsing XML starts to become a limiting factor.

    Anal sex works on both genders too. Maybe you should use that all the time instead of having to worry about special cases.

    But you want to re-invent a data storage format?

    No I think people should use one of the binary alternatives to XML. Or just roll their own binary format.

  23. Re:Why is XML so popular on The Future of XML · · Score: 1

    Are the offsets going to be 32bit or 64bit? LSB or MSB? Do we pad data-structures? Will strings be zero terminated or have a prefixed length? And how do you tell the value 16 from the tag 16?

    Read this document.

    http://www.itu.int/ITU-T/studygroups/com17/languages/X.691-0207.pdf

    It's not the only solution to the problems you thought of in a few minutes. But actually if you'd spent a few more minutes you would know there are many possible solutions to them. The people who invented ASN.1 have actually spent rather more than a few minutes thinking about this stuff of course, and it might be a good idea to read what they have written before you claim those problems are insoluble.

    I would like a demonstration of that with the example of Microsoft Word 2003 format, the binary variant, please.

    Hmm, so if I can't read Finnish it proves that written languages are impossible? Email the Journal of Linguistics and them your important discovery!

  24. Re:But it isn't and doesn't... on The Future of XML · · Score: 1

    What if you dump the memory space of some object on an x86 and try to restore it on a ppc, which differs in endianness?

    Then you define the format to use one endianness and write a bunch of functions to read and write the data in a CPU independent way. On the most common platform they will actually use the native format.

    What's annoying about this sort of thing is that filesystem, file format and protocol designers have solved all the problems with binary interchange formats across very different systems in very efficient ways 20 years ago. And still people who have never written any low level code seem to think it's some sort of voodoo.

  25. Re:I don't understand... on The Future of XML · · Score: 1

    If you want error correction, add error correction with a code designed by people who know what they're doing. Like one of the ones here -

    http://en.wikipedia.org/wiki/Error_correction

    And if you want redundancy look at databases or log structured filesystems.

    Encoding as data as ASCII can be thought of adding redundancy I suppose, but it's very primitive compared to these technologies.