Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
J

jhwurmbach

@jhwurmbach
About
Posts
1.9k
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • doubles a == b or not ?
    J jhwurmbach

    akidan wrote:

    If you make a special exception for the a.Equals(a) rule for doubles and floats, you have now broken the contract of equality for objects

    Sure. And this way, you have broken the contract of IEEE math. And guess what's older... But I admit - you are to die one death, and .NET choose to violate the math rules.

    Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
    Douglas Adams, "Dirk Gently's Holistic Detective Agency"

    Clever Code csharp help question

  • doubles a == b or not ?
    J jhwurmbach

    akidan wrote:

    the .NET definition of equality requires that a.Equals(a). (Otherwise, you'd never be able to get anything back out of a Dictionary if the key had a NaN in it

    And that would be a problem? Whoever sticks a NaN into a dictionary deserves to not get the values back! NaN is defined as "This is a marker for overflow somewhere. It is not comparable with anything."

    Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
    Douglas Adams, "Dirk Gently's Holistic Detective Agency"

    Clever Code csharp help question

  • Gas [modified]
    J jhwurmbach

    Sahir Shah wrote:

    Where I live currently (UAE) it's around US $ 2.79 a gallon

    Don't you fill your car just by digging a hole in the ground and wait for it to fill up?

    Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
    Douglas Adams, "Dirk Gently's Holistic Detective Agency"

    The Back Room database com question

  • Gas [modified]
    J jhwurmbach

    Dalek Dave wrote:

    A Gallon is eight Pints A Pint is 20 Fluid Ounces.

    Is that somehow related to the volume of a stone of water at an arbitrary temperature? :rolleyes:

    Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
    Douglas Adams, "Dirk Gently's Holistic Detective Agency"

    The Back Room database com question

  • Taxpayers are now buying AIG
    J jhwurmbach

    Oakman wrote:

    When Fannie and Freddie were nationalised,

    How was that sold, in domestic politics, when the administration had such a strong record of objecting against even the slightest governmental influence on the free flow of the market? Pure double talk and lies. Or, as Chomsky did put it: Noam Chomsky, April 13, 1996: "And the principle of really existing free market theory is: free markets are fine for you, but not for me. That's, again, near a universal. So you -- whoever you may be -- you have to learn responsibility, and be subjected to market discipline, it's good for your character, it's tough love, and so on, and so forth. But me, I need the nanny State, to protect me from market discipline, so that I'll be able to rant and rave about the marvels of the free market, while I'm getting properly subsidized and defended by everyone else, through the nanny State. And also, this has to be risk-free. So I'm perfectly willing to make profits, but I don't want to take risks. If anything goes wrong, you bail me out. So, if Third World debt gets out of control, you socialize it. It's not the problem of the banks that made the money. When the S&Ls collapse, you know, same thing. The public bails them out. When American investment firms get into trouble because the Mexican bubble bursts, you bail out Goldman Sachs." > http://www.chomsky.info/talks/19960413.htm

    Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
    Douglas Adams, "Dirk Gently's Holistic Detective Agency"

    The Back Room com question

  • Taxpayers are now buying AIG
    J jhwurmbach

    Can the USA be called a state-socialistic economy yet? Or would there be the need for yet another part of the finance sector to be socialized? Not that I would object to doing so, its just the staggering contrast to the vocalisations of the (current and future, whatever you elect) neoliberal government...

    Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
    Douglas Adams, "Dirk Gently's Holistic Detective Agency"

    The Back Room com question

  • How to sort a CArray with minimum effort
    J jhwurmbach

    Iain Clarke wrote:

    it works a treat

    Great! Actually, operator overloading is a good thing! :)

    Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
    Douglas Adams, "Dirk Gently's Holistic Detective Agency"

    C / C++ / MFC graphics data-structures tutorial

  • How to sort a CArray with minimum effort
    J jhwurmbach

    If its just about the predicates, I also like boost.orgs lambda-lib[^] With it, you can write the predicate exactly where you need it, not somewhere else. Comes in handy when your classes do not have the one, inherent order, but instead need to be sorted by varying criteria.

    Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
    Douglas Adams, "Dirk Gently's Holistic Detective Agency"

    C / C++ / MFC graphics data-structures tutorial

  • fatal error C1083: Cannot open source file: abc.cpp: No such file or directory
    J jhwurmbach

    Maybe the abc.cpp is still in the solution explorer? In the solution explorer, open your project, open "Source", mark abc.cpp and hit the "del"-key. Do the same under "Headers".

    Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
    Douglas Adams, "Dirk Gently's Holistic Detective Agency"

    C / C++ / MFC c++ help

  • How to sort a CArray with minimum effort
    J jhwurmbach

    Iain Clarke wrote:

    I could write a sort function for my particular array / class combo, but I'm sure there's a more elegant way of doing this... Feel free to give me pointers to some vector::sort library or such... I'm a novice in that area!

    I dont normaly use CArray, but with std::vector, having your vectored classes have an operator<</code> and `operator!=` would be enough. Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. **Douglas Adams, "Dirk Gently's Holistic Detective Agency"**

    C / C++ / MFC graphics data-structures tutorial

  • Two basic questions about generated assembly
    J jhwurmbach

    Hmm. Here, at least the input is limited to the multiplicants mentioned. But the remaining number of results would still be very high.

    Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
    Douglas Adams, "Dirk Gently's Holistic Detective Agency"

    C / C++ / MFC com data-structures question

  • Dear Dad
    J jhwurmbach

    Paul Conrad wrote:

    replacement muffler

    So, your old mouflon[^] is broken?

    Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
    Douglas Adams, "Dirk Gently's Holistic Detective Agency"

    The Lounge php visual-studio com

  • Every Silver Lining Has A Dark Cloud
    J jhwurmbach

    Roger Wright wrote:

    I'm going to have to locate them, find the installers, transfer everything to the new PC, and get them working again. I'm dreading it.

    But you said you have a week without your big programs running? Use it to install new versions of all the things you Thad. hat was how I did that when I got me new double Xeon a few years ago. Or is your new computer not at your disposal for the whole week? Also, think hard what utilities and tools you have used in the last half a year, and absolutely only install that on the new computer! The other stuff is obviously useless, you will not miss it. Anyway, a windows installation is like a pair of new shoes: you need a few weeks to feel comfortable in it.

    Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
    Douglas Adams, "Dirk Gently's Holistic Detective Agency"

    The Lounge hardware tools windows-admin hosting cloud

  • Two basic questions about generated assembly
    J jhwurmbach

    Yes, LEA means "Load effective address". But lead can not only load an address, it can compute it on the fly. LEA EAX,[ESP+14] puts the result of (value of ESP) plus 14 into EAX. And it can compute more complicated calculations: LEA EAX,[EAX*4+EAX] works, and as I got from the text you have given, it does not actually use a calculation (involving things like cache access and multiply units). Instead, it uses a table lookup. But that does only work for for some multipliers. So, in effect, for certain multipliers, LEA is faster than MUL is.

    Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
    Douglas Adams, "Dirk Gently's Holistic Detective Agency"

    C / C++ / MFC com data-structures question

  • Free Press: Draper's diaperless daughter finds new use for Stanley Cup
    J jhwurmbach

    Thaks for the 1, I couldn't care less. But in fact it was unjust: I just gave an explanation, I did neither vote him a 1 not did I invite others to do so.

    Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
    Douglas Adams, "Dirk Gently's Holistic Detective Agency"

    The Back Room com question

  • Well, what do you know? "International law" "solves" a serious problem!
    J jhwurmbach

    I am, and expect to, be reminded of the nazi-evil my grandparents did not dare to stop on every voyage I do. Be it the remains of bunkers in western France or at the north sea coast, any number of war museums, memorial statues in every smallish village in Germany, Denmark, Holland, Belgium, France, Austria, Czechia, Poland or wherever. Also I was grown up with an amount of hatred towards our nationality, I doubt you as an american can even imagine. No, I am certainly not an amnesiac. You did a lot to help us out. And due to you help virtually all Germans today are firmly rooted in western ("Califonication!") culture. But does this deny me criticism on the US-Politics of today? I don't think so.

    Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
    Douglas Adams, "Dirk Gently's Holistic Detective Agency"

    The Back Room com help question announcement

  • Well, what do you know? "International law" "solves" a serious problem!
    J jhwurmbach

    Oakman wrote:

    the U.S. to tell China and North Korea that we will no longer protect Japan

    This patronizing attitude is why you are not as welcome abroad as you seem to expect (and to deserve, as individuals). That is the same attitude which drives young, enthusiastic and extremly religious people to try out the one dozen virgins.

    Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
    Douglas Adams, "Dirk Gently's Holistic Detective Agency"

    The Back Room com help question announcement

  • Well, what do you know? "International law" "solves" a serious problem!
    J jhwurmbach

    Oakman wrote:

    One of the things that really should happen, though I doubt it will, is that Europeans ought to stop fancying themselves to be experts on the United States of America, a country that is larger than all of western Europe and yet speaks one language, has one currency, and one flag.

    Yet this federation of (semi-)independent states is the model politicians use for the formation of the EU.

    Oakman wrote:

    Figure out what you are going to do with your Union which seems to be in terrible disarray, before advising us on our which has existed with only one, admittedly terrible, war between its members in the last two hundred years.

    I would like to do that, but you have a habit of mixing in other states inner affairs. Be it openly like in Iraq, Sudan, Somalia. Be it secretly as with Project Echelon and others. You are cherrypicking with your isolationism here...

    Oakman wrote:

    The only absolute human right is to die rather than submit. All the rest are negotiable.

    So you are arguing that "Kill before you get killed!" is a viable way of upholding a technological society? :~

    Oakman wrote:

    constitution

    I was referring to he difference between (US) citizens right and (revolutionary french) human rights.

    Oakman wrote:

    Perhaps the French & Germans should have helped put an end to Hussein.

    Why? We did not for the same reason we did not helped put end end to GWB. You do not have to like the opression of the Iraqi (and Kuwaiti!) people by his dictatorship to argue that that is not the business of another state.

    Oakman wrote:

    But, as long as he was providing oil under the table,

    It seemed to be the other way 'round: When he stoped to reliably deliver oil to the US, you did try to replace him. And I am glad my country had the guts to stay aside.

    Oakman wrote:

    Frankly, I doubt you give a sh*t about the mothers or the dead troops.

    Actually, I am of a generation that is grown up with grandparents wanting to tell about war, and about loosing husbands and sons in war, but we had no actual war ourself. The Yugoslavian crisis was well after my army time. And it was illegal for the

    The Back Room com help question announcement

  • Well, what do you know? "International law" "solves" a serious problem!
    J jhwurmbach

    Oakman wrote:

    Also a British, French, German lie

    But JWB President to this day, no impeachment, though he did a much more serious lie than Bill Clinton did! even did admit he lied against better knowledge brought before him by the secret service. And at least for the British and Germans, they just want to be the good poodle of the US. About the Iraqi - their drugged up spokesmen was probably just boasting.

    Oakman wrote:

    No, there never has been habeas corpus for enemy aliens.

    I am really glad about the universal human rights being undividable. And your statement makes clear how the US Constitution's rights are falling grossly short of the French ones only a few years later. Thats an oligarchy trying to save their benefits versus a people trying and eventually failing to erect a just government.

    Oakman wrote:

    Have you taken a look at what the "subjugated populace" likes to do to each other?

    How does this affect what *you* should do to them? *YOU* did claim bringing peace and democracy.

    Oakman wrote:

    You are, talking, I presume, about the thousands and thousands of Iraqis killed by other Iraqis.

    Actually I was talking about the mothers of the American, British, Canadian, Polish and whatever soldiers dying in a probably senseless, but at least dishonest War. The real, global power politics behind the US engaging in the Iraq are simply not "sellable" to the population. Like vietnam was not.

    Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
    Douglas Adams, "Dirk Gently's Holistic Detective Agency"

    The Back Room com help question announcement

  • US Economy
    J jhwurmbach

    Sorry - I did remember you being British. Sorry for that! To me, the single-minded localism of most petty-politicians is a prime reason for the current stat of affairs in europe. But I agree with you that a EC with another bureaucracy on top of the existing ones is a bad thing. Something must be done to throw away several levels of bureaucracy. In this, I support the Irish vote. Our local politicians are afraid of letting us vote, as the stupid citizen could ruin all those pretty plans! Also, it is quite funny to hear those federalist statements from an Englishmen, when the first hesistant attempts with Scottish, Welsh and Irish parliaments are only a few years ago. Before that, England was an empire. An empire more rigid and backward than the French Empire (1800-1813!) ever was. Additionally, the French did do us Germans a real favor: They cleaned up the Habsburgian mess left over from the centuries before.

    Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
    Douglas Adams, "Dirk Gently's Holistic Detective Agency"

    The Back Room question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups