• Anonymous (unregistered)

    Newfags can't tri-state...

    Δ ΔΔ

    Crap...

  • Pedants R Us (unregistered) in reply to Mike

    y = 2x - 1

    y = 2 x = 1

    2 = 2(2) - 1 2 = 4 - 1 2 = 3 !

  • ath (unregistered) in reply to Ouch!
    Ouch!:
    TS_WTF_IS_AN_INTRADAY?

    Intraday is often used when talking about financial data such as stock prices.

    You typically want to keep track of the official end of day quote (TS_EVENING), the start of day quote (TS_MORNING) and whatever the value is right now (TS_INTRADAY).

    TS_UNKNOWN is probably an initializer used to detect errors and TS_NO... It could be number/nominal indicating the traded volume.

    TRI_STATE = Total Return Index State?

  • Anonymous (unregistered) in reply to Pedants R Us

    Well that was easy. I've highlighted your mistake for you:

    Pedants R Us:
    y = 2x - 1

    y = 2 x = 1

    2 = 2(2) - 1 [The red number should equal 'x' which is 1, not 2] 2 = 4 - 1 2 = 3 !

  • dieter (unregistered) in reply to Jumble

    In my company we use only 9 enum values for the days of the week: Monday Tuesday Wednesday Thursday Friday Saturday Sunday holiday day after a holiday

  • Anon (unregistered) in reply to Mike
    Mike:
    Evo:
    TarMil:
    2 -> 3; 3 -> 5. With no doubt possible, it's Fibonacci. So a 5-state (or penta-state) would have 13 states. Also, the US has 32951280099 states.

    Nope, wrong. It's the n'th prime number. 1 -> 2 2 -> 3 3 -> 5 4 -> 7 5 -> 11 etc.

    y = 2x -1 seems simpler

    Simpler? Yes. But also completely wrong.

  • (cs) in reply to akatherder
    akatherder:
    whatever:
    So a 2-state has 3 states, and a 3-state has 5. I suppose the real question here is whether the true number of states in an n-state grows linearly or exponentially.

    Because if it's exponential, I pity anyone who encounters a 9-state object.

    That's the enum holding all the state names of the USA.

    Well, you made me do the calculation... Ok, it will hold all the states of the US, but what do you plan to do with the other half of the enum? The 11-state object could be used by FIFA for holding all its participants.

  • a. nony mouse (unregistered)

    Maybe TRI is a misspelling of TRY?

  • Sou Eu (unregistered) in reply to paratus

    [quote=paratus] Actually, the Thirteen_State enum holds the names of all 50 incorporated states of the USA, plus the District of Columbia, the Philippines, Puerto Rico, Guam, American Samoa, the United States Virgin Islands, Wake Island, and the Palmyra Atoll. [/quote]

    You are behind the times. On 4 July 1946, the US granted the Philippines independence.

  • Buddy (unregistered) in reply to Sou Eu

    [quote user="Sou Eu"][quote=paratus] Actually, the Thirteen_State enum holds the names of all 50 incorporated states of the USA, plus the District of Columbia, the Philippines, Puerto Rico, Guam, American Samoa, the United States Virgin Islands, Wake Island, and the Palmyra Atoll. [/quote]

    You are behind the times. On 4 July 1946, the US granted the Philippines independence.[/quote]

    If the design requires the handling of legacy data, then pre-1946 data may require the inclusion of Philippines as a US colony.

  • Worf (unregistered) in reply to Herby
    Herby:
    If you want to be extra clear, as many government and legal documents desire to be, use 12:01 and be done with it. If you want more on time, http://www.nist.gov has lots of information on time, as they are the keepers of the standard.

    Well, it's actually pretty easy for noon. But midnight is a far bigger question, since midnight marks the beginning and end of a day and not a day itself. Whereas noon is pretty self-explanatory and unambiguous. 12pm, after all, is the time just after the switchover to noon.

    Contests that close at say, midnight January 31 are a bit ambiguous. Do they close during that period between January 30 and 31, or between January 31 and Feb 1?

    That's why legal documents always say stuff like "contest closes January 31, 11:59:59" or somesuch, which is unambiguous. 12:00:00AM, even though it's the "day after" can be misinterpreted very easily.

  • Ben (unregistered) in reply to lesle
    lesle:
    For those of us old enough to remember, and before the widespread advent of computers, noon was 12 m. and midnight was 12 p.m. There was no 12 a.m. But computers are binary/two-state. So now noon is 12 p.m. and midnight is 12 a.m. Arrgh!

    This change also ignores the question of how can there be an a.m. and a p.m. without an m. to give them meaning? For you young whippersnappers who don't get this, tempus fugit.

    Wikipedia sort of backs you up, but they show it as 12 m. for noon and 12 m.n. for midnight. (Not sure which I trust less; wikipedia or some old coot on the web...) One thing about the march of progress is that all the idiosyncrasies that small firms have tend to be wiped out by standards bureaus.

    In this case, it looks like "midnight" happens at the beginning of a day and at its end. 12 a.m. clearly indicates the midnight at the beginning, which is why 12 m.n. would have gone away.

  • Randy Snicker (unregistered) in reply to Peter
    Peter:
    a care-bear:
    NOBODY CARES

    ...like a bear

    ...in the woods.
    ...where the pope shits.

  • James OBoston (unregistered)

    TRWTF is that the real tri-state is Indiana, Michigan, and Ohio, and Kentucky, and West Virginia

  • loch (unregistered) in reply to Boris

    hahahah I'm using that tomorrow

  • billaj (unregistered) in reply to Emoticon Man
    Emoticon Man:
    enum TRI_STATE { TS_UNKNOWN, TS_MORNING, TS_EVENING, TS_INTRADAY, TS_NO };

    }; indeed

    This needs to be "blued"!

  • (cs) in reply to Anonymous Coward
    Anonymous Coward:
    Theres also the boolean mysql enum, if you create one that can be ('true','false') you'll find it is actually: ('true','false',NULL) even if you set the default to be 'false'...

    NULL == FILENOTFOUND?

    You need to explicitly specify NOT NULL if you don't want a column to be able to contain NULL.

  • David (unregistered)

    Everyone knows that there are four simultaneous days in a day, not just three

  • (cs)

    Well, In SQL, you're typical boolean or bit value is tri-state too, unless you explicitly define the field as non-null. Null can be considered a state in itself, as it is the absence of data, and not a blank-fill or default.

  • venio (unregistered)
    venio:
    teh e-rat:
    Anonymous:
    Newfags can't tri-state...

    Δ ΔΔ

    Crap...

    Want instructions?
    Try again
    And again..

  • WilliamF (unregistered)

    to me tri state is the state of an output/input pin in electronics. sink, source and high Z ("off" "on" and "open circuit"/"input")

    hence it could be used in an embedded system which controls a bi-directional I/O pin

  • TriStateBoolean (unregistered)

    I have on occasion used non primitive (reference) Boolean values to represent states like success / failure / undetermined by assigning true, false or null to the value respectively. I know that I should have used an enumeration... sigh.

  • neminem (unregistered)

    I give for your perusal, albeit somewhat belatedly, this Microsoft enum: http://msdn.microsoft.com/en-us/library/microsoft.office.core.msotristate%28v=office.11%29.aspx

    Granted, the other 3 states are marked "not supported", but it's still an official Microsoft boolean with 5 states stated.

Leave a comment on “A Real Tri-State”

Log In or post as a guest

Replying to comment #:

« Return to Article