Silverlight для масс, это время

Eric Z Борода:

я действительно храню все даты в GMT. Вот вариант использования: что-то произошло в 23:00 EST на 1-м, которое является 2-м GMT. Я хочу видеть действие для 1-го, и я нахожусь в EST, таким образом, я захочу видеть действие 23:00. Если бы я просто сравнил необработанный GMT datetimes, я пропустил бы вещи. Каждая строка в отчете может представить действие от различного часового пояса.

Право, но когда Вы говорите, что интересуетесь действием для Jan 1-е 20:08 EST:

SELECT @activityDateMidnight = '1/1/2008', @activityDateTZ = 'EST'

просто необходимо преобразовать , что к GMT (я игнорирую сложность запросов для того, за день до того, как EST переходит к EDT, или наоборот):

Table: TimeZone
Fields: TimeZone, Offset
Values: EST, -4

--Multiply by -1, since we're converting EST to GMT.
--Offsets are to go from GMT to EST.
SELECT @activityGmtBegin = DATEADD(hh, Offset * -1, @activityDateMidnight)
FROM TimeZone
WHERE TimeZone = @activityDateTZ

, который должен дать Вам '01.01.2008 4:00'. Затем можно просто искать в GMT:

SELECT * FROM EventTable
WHERE 
   EventTime >= @activityGmtBegin --1/1/2008 4:00 AM
   AND EventTime < (@activityGmtBegin + 1) --1/2/2008 4:00 AM

рассматриваемое событие снабжено GMT EventTime 02.01.2008 3:00. Вам даже не нужен TimeZone в EventTable (с этой целью, по крайней мере).

, Так как EventTime не находится в функции, это - прямое индексное сканирование - который должен быть довольно эффективным. Сделайте EventTime Вашим кластерным индексом, и это полетит.;)

Лично, у меня было бы приложение, преобразовывают время поиска в GMT прежде, чем выполнить запрос.

5
задан Brandon Grossutti 6 July 2009 в 21:53
поделиться

6 ответов

I think that if you have a user base that refuses to upgrade from Internet Explorer 6, good luck with getting anything else adopted, including Silverlight.

The thing can be installed more or less automatically just like Flash, for crying out loud. How difficult could it be?

The argument up to now has been, "Flash is already installed on most computers, so it already has high adoption." But that's a chicken and egg problem. How did Flash get adopted in the first place?

The NYT reader just has a prejudice. Clearly he believes that Microsoft is the evil empire. There's really nothing you can do about that. The real question is, how prevalent is this attitude? Certainly it will be common among the Linux/open source crowd, but it's hard for me to believe that this attitude would be prevalent among the average user. If anything, the Microsoft name is a warm and fuzzy for them.

8
ответ дан 18 December 2019 в 10:48
поделиться

Лично я думаю, что Silverlight будет набирать обороты в бизнес-приложениях только потому, что он очень удобен для программистов и тот факт, что вы можете программировать его на языках .NET, означает, что его намного проще повторно использовать и поддерживать свой бизнес логика.

Однако с точки зрения потребительского применения я не думаю, что он может превзойти Flash, который имеет гораздо большую базу установки и уже используется большинством крупных компаний. Также не забывайте HTML5, который теперь имеет интегрированный элемент видео, поддерживаемый основными браузерами, включая Firefox, Chrome и Safari.

Несмотря на аргументы кодеков, это еще один сильный соперник, который еще больше сократит долю рынка Silverlight.

5
ответ дан 18 December 2019 в 10:48
поделиться

As a user and as a web developer I like sticking to the bare minimum. Like it or not Flash has pretty much become the standard platform for rich media on the internet. Everyone I know has flash to use videos from common sources like You Tube.

Since money seems to be an issue I might suggest Flowplayer, an open source Flash video player. Currently it only supports mpg, mov, and avi, but it's fairly easy to convert wmv to other formats using open source tools.

Here is Flowplayer: http://flowplayer.org/v2/player/index.html

Here are some simple instructions for converting video: http://flowplayer.org/v2/tutorials/my-movies.html

2
ответ дан 18 December 2019 в 10:48
поделиться

The only major sites using silverlight are ones that microsoft either owns, or has paid to use it, and most of the ones that they paid for switched back to flash. The version number may be approaching 3.0, but it is still a very new and immature platform that is not as widely installed as flash (which is pushing 97% of all browsers).

If you are talking wmv vs silverlight, I would go silverlight. If you are talking flash vs silverlight, I would say flash hands down. If you want to be forward thinking, serve stuff up with the HTML tag, with flash as a fallback.

1
ответ дан 18 December 2019 в 10:48
поделиться

I remember that MLB went from showing those games from silverlight back to flash due to a few issues that didn't get resolve. It work pretty well on the Olympics, but beyond that I can't say how good or bad it is. Do you have any idea what percentage of users have Silverlight installed for their browsers? That might be something to look at.

0
ответ дан 18 December 2019 в 10:48
поделиться

I've heard that desktop Silverlight penetration is around 30%. Flash is somewhere north of 95%.

Going with Flash seems the easy decision now. I can certainly imagine a lot of Mac users seeing the "install Silverlight" message and saying, "Ick! No!"

In the long run, probably most Windows PCs will have Silverlight. Diehard Mac fans may never install it.

Meanwhile, I've seen more and more people who don't install Java, and who just pass on any site that says to install Java.

Adobe's only weakness now is mobile. They seem to have desktop locked up tight.

0
ответ дан 18 December 2019 в 10:48
поделиться
Другие вопросы по тегам:

Похожие вопросы: