Slashdot Mirror


User: Old+Wolf

Old+Wolf's activity in the archive.

Stories
0
Comments
1,798
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1,798

  1. WTF on Rules for Teenage Internet Access? · · Score: 1

    Enough of this namby pamby "let them do what they want" stuff. The first time you catch them lying, ban them from the PC for 2 months. The second time, make it 6 months. Children have to have respect for their parents.

  2. n00b question on Function Template Specialization in C++ · · Score: 1

    (Note: this is NOT offtopic -- because this is a comment about something obvious that everyone knows except for the poster)

    I did consider myself a C guru until today when I was surprised to find that if
    char z[] = "\x0012345678";
    then sizeof(z) is 2 (rather than 10, as I expected). It also seems that "\x00f" has size 2, but "\x00g" has size 3.

    I had always believed that '\x' in a string introduced a 2-hex-digit byte constant (similar to how \0 introduces a 3-octal-digit constant).

    I looked in my copy of K&R but it doesn't even mention '\x'.

    Can someone fill me in on what the exact rule is, why is it like that, and when (and by whom) it was added to the C standard?

  3. Re:thats odd on SCO Fires back, Subpoenas Stallman, Torvalds et al · · Score: 1

    The tooth fairy was unavailable

  4. Re:Horrible example on Function Template Specialization in C++ · · Score: 1

    He uses that "char const *" syntax too. Does anyone else use it?

  5. Re:Parametric polymophism. on Function Template Specialization in C++ · · Score: 1

    Why do
    (Score:2, Flamebait)

    when you can do
    (Score:5, Informative)

  6. Re:It just gets even more convoluted on Function Template Specialization in C++ · · Score: 1

    I think it's easier to grep for "operator+" (or "operator[ \t]*\+" or whatever) than "add".

    Or you could whip open your IDE and click go-to-definition, or run the debugger and go step-into.

  7. Re:Has always worked for me ... on Experiences w/ Drive Imaging Software? · · Score: 1

    Is there any difference between that and:
    cat /dev/hdb1

  8. Re:Sorta on Experiences w/ Drive Imaging Software? · · Score: 2, Funny

    I used NTBackup.exe to make daily backups on a former employer's NT4 system (direct to backup tapes). It all seemed to be working fine, until one time the harddrive crashed. I went to restore the backups, and found that he had ejected the tape during the previous backup becuase the noise was annoying him (!) Byebye database.

  9. Re:That would work... on Perens: Unite behind Debian, UserLinux · · Score: 1

    (This isn't supposed to be flamebait, btw)

    Why does it matter if the masses adopt linux? Sure, it would be cool, but so is gumdrop icecream. I use linux because I like it best etc. etc., but I couldn't give a flying fuck what joe down the road uses on his PC.

    Widespread business adoption could even be a bad thing. Remember how everyone said "oh I can't wait until all my friends, john doe, etc. use IRC too", look how shit it is now. The same happened to Napster. Let's not let Linux go down the same road!

    (This is not to be xenophobic or anything -- but let's stop wasting effort attracting people who don't want to be attracted).

  10. Re:That would work... on Perens: Unite behind Debian, UserLinux · · Score: 1

    It used to be "I have to get my 8 year old to program the VCR", now it is "I have to get my 8 year old to install Linux"

    (or, for extra points, "I have to get my 8 year old to install Linux on my VCR")

  11. Re:whatis C++BuilderX on Borland Uses (And Supports) wxWindows · · Score: 2, Informative

    Yeah same here. I have a several-page document of C++Builder quirks, in case anyone else ever takes over my projects (or if I come back to it after an absence). We should join efforts and make a webpage on the topic, or something.

    The most awful part of it all is the AnsiStrings and TStringList -- since I figured out how the SCL works, I have stopped using those two. They can't even fix the bugs in those because it will break lots of existing code that (accidentally) relies on the bugs.

    Re. your problems:
    1) I think you could fix it with a bit of effort / source file reorganization.

    2) use the command-line linker to try and isolate it. Of course, you could attach the IDE as a debugger to see what is going on :)

    4) turn it off and press ctrl-space when you do need it.. I agree it is awful, they could take a leaf out of VC++ for this one

    5) dont bother with the builtin TODO features :)

    6) yeah

    7) took me a while to figure out how to enter stuff in the type library editor in such a way that it doesn't generate invalid code. I never have to edit the makefiles, just take care. You can't really blame them for that; COM is such a dog and only MS really knows what all goes on under the hood, so they have a headstart in getting it right in their compiler. I'm sure they just don't have the resource to fine-tune it any more. My solution is to develop without COM (either a VCL component, or some such), and maintain a simple COM wrapper as a separate project (that way, any COM-related errors, crashes, BSTR allocation probs, etc. are all easy to track down; or you can even throw away the whole wrapper and make a new one). This strategy has saved me dozens (if not hundreds) of hours.

  12. Obscure bugs on Prince Of Persia - Completion, Kudos, Bonuses · · Score: 1

    I wonder if someone can enlighten me on this obscure bug (and if it carries over to the new version).

    one time when I completed level 1, it took me straight to level 12. I then did that and had 57 minutes remaining when I completed the game (a record, as far as I know).

    I don't know if this was a bug, or if I accidentally activated a cheat?

  13. whatis C++BuilderX on Borland Uses (And Supports) wxWindows · · Score: 1

    Has anyone got any more details on the mysterious C++BuilderX ? It has all the hallmarks of vapourware, except that it actually seems to have been released. Borland's website doesn't give any useful information.

    I currently use C++Builder 5 (most of the time, without VCL). Is C++BuilderX a "step up" , or should I be sticking where I am? Is it even similar to the older versions of C++Builder at all? Does it use wxWindows similarly to how the older versions used VCL? (ie. can I design RAD forms and stick controls on them, etc.). Does it still have all the debugger features?

    It would be nice if there was a review somewhere from somebody who had actually used the product.. or even just some screenshots?

  14. Re:Yeah and the BAD news is... on Borland Uses (And Supports) wxWindows · · Score: 2

    Seeing as the VCL has been around for 5+ years (before .NET was a gleam in the monopolists' eye), I would not call one a wrapper for the other.

    VCL is, however, a snazzy wrapper for the Windows API.

    It sounds like you are the one caught in the .NET.

  15. Psion on Nokia Taking Over Psion to Control Symbian? · · Score: 4, Funny

    Is this the same Psion as in Psion Flight Simulator, Psion Chequered Flag, etc. ?

    If so, then maybe Nokia is onto something for its builtin games. I think I have my original cassettes somewhere..

  16. What they played on A Riff from the Mesoscale? · · Score: 1
    Did they play Stairway to Heaven?

    No, they couldn't find the right Page

    </MONDAY_MORNING_HUMOUR>

  17. Re:more reason to sign patches? on Linux Kernel Back-Door Hack Attempt Discovered · · Score: 1

    Actually, there is. Laws are coming in that will require a user to divulge passwords, keys etc. to police with a search warrant (or else face arrest etc.). If you don't know your own key then you can't give it to the feds.

  18. Re:I wonder why not a remote root hack on Linux Kernel Back-Door Hack Attempt Discovered · · Score: 2, Insightful

    whoever owns sourceforge just has to grep all the applications for wait4 , and that may lead straight to the guy..

  19. Re:Honest users the victims on Symantec Hit by Product Activation Glitch · · Score: 1

    You got a bit of hardware that does ASL ?

    don't tell Undernet

  20. Speccy on C-64 Diehards Relive History · · Score: 1

    I did a fair bit of programming in BASIC on a ZX Spectrum 48K (and a bit later on on the 128K version).

    I did some assembly reading (sufficient to hack games for infy-lives etc.) but it was beyond my patience to do any coding (writing FOR loops in basic to print out the machine code from address, then translate it to opcodes from the back of the Z80 manual, then use POKE to put some new opcodes in, etc. etc. etc.)

  21. Why ???! on Sites Shut Down to Protest Software Patents · · Score: 1

    Why? WHY?

    How is shutting your site down supposed to be a protest? All it means is that I can't access the sites I want (and, what's more, now I think this one OSS project is stupid because its site was shot down for protest on the day I found out about it).

    Do the lawmaker people use any of these shut down sites? I doubt it. Whose mind is changed here? Not mine, I was already against software patents. Who would have converted from in-favour to against, based on this?

    This is not even comparable to a hunger strike. The site owners sure aren't suffering (in fact they might enjoy the lower traffic bill).

  22. Re:Woops, too late on Xbox Linux Made Possible Without a Modchip · · Score: 1

    You may well own the hardware and a copy of the software it comes with, but you still don't own any intellectual property rights for either.

    By creating a hardware or software modification you may be infringing on MS patents, copyrights, and/or software licences.

    If it were a standard PC and you hacked some games that it came with on the harddrive, and re-released them, nobody would try to raise the defence 'I paid for these games so I can do what I like'.

    I don't agree with what I've just said, of course, but there does seem to be a lot of leeway for the MS lawyer team to get stuck into.

  23. Re:I actually am a physicist and Thomas Gold is wr on Solar Sailing and Physics · · Score: 1

    How do you explain Doppler redshift in terms of the photon model?

    Is the photon red-shifted at the source, or when you see it? Presumably when you see it, because when it is emitted it doesn't yet 'know' how far it's going to travel before it hits something, or how fast that something is going to be moving. (A galaxy that appears redshifted to us would not appear redshifted to eg. a stationary (wrt it.) observer close to it, even though it might be the same photons that get seen).

    But when you see the photon, it's a photon, and it has no memory of how fast the object it was going was actually moving, so how does it know how much to get redshifted?

  24. Re:Actally no - different mechanisim there on Solar Sailing and Physics · · Score: 1

    Someone else on this thread claimed that this explanation is wrong - the rotation comes because the heat radiating off the black side causes convection currents in the air, which make it rotate; and therefore, if it's done in a complete vacuum then no rotation occurs.

    Have you got reliable references for experiments to confirm your view rather than this other view?

  25. Re:I actually am a physicist and Thomas Gold is wr on Solar Sailing and Physics · · Score: 1

    Here's my question. In the article, Gold says that yes, if the reflected photon has lower energy then the sail will move, but if it has the same energy then it won't move.

    You seem to be saying that reflected photons will always have a lower energy? Does this mean that when I look at myself in the mirror, I am actually seeing the colours with a slightly longer wavelength than they are? And if I set up 2 opposing mirrors, can I shine a blue light and see green , red etc. too as the light reflects back and forth and gradually loses energy?

    Finally, how does temperature relate to momentum, exactly? I was under the impression that temperature meant internal kinetic energy, which photons can't have (but obviously they do, otherwise the COBE wouldn't have anything to measure). So how do you incorporate temperature when you write the equation for a photon's total energy?