- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Newfags can't tri-state...
Δ ΔΔ
Crap...
Admin
y = 2x - 1
y = 2 x = 1
2 = 2(2) - 1 2 = 4 - 1 2 = 3 !
Admin
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?
Admin
Well that was easy. I've highlighted your mistake for you:
Admin
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
Admin
Simpler? Yes. But also completely wrong.
Admin
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.
Admin
Maybe TRI is a misspelling of TRY?
Admin
[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.
Admin
[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.
Admin
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.
Admin
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.
Admin
Admin
TRWTF is that the real tri-state is Indiana, Michigan, and Ohio, and Kentucky, and West Virginia
Admin
hahahah I'm using that tomorrow
Admin
This needs to be "blued"!
Admin
You need to explicitly specify NOT NULL if you don't want a column to be able to contain NULL.
Admin
Everyone knows that there are four simultaneous days in a day, not just three
Admin
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.
Admin
Admin
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
Admin
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.
Admin
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.