随笔的存档

中国为什么那么软弱?

2009-02-19 23:03

菲律宾侵占南沙群岛

既然菲律宾都都已经宣布南沙群岛归他所有,还要说什么吗?直接派兵过去灭了菲律宾,把菲律宾划归中国所有得了。难怪会没有反应,都被人家占领了那么长时间了,资源被掠夺的差不多了吧。还好台湾问题解决的差不多了,不然的话,如果台湾突然宣布独立,不知道中国会不会有所行动。真的很悲哀,严正抗议,有用吗?屎都拉到你头上了,还抗议,想想都好笑。中国对南沙群岛的主权得到国际上的承认 ,既然得到世界的广泛承认,那么出兵就是名正言顺,想破脑袋都想不出,中国有什么好忌惮的。难道真是中国威胁论

。。。 。。。

推荐(6)
收藏

Why do some SQL strings have an 'N' prefix?

2009-02-17 09:02

You may have seen Transact-SQL code that passes strings around using an N prefix. This denotes that the subsequent string is in Unicode (the N actually stands for National language character set). Which means that you are passing an NCHAR, NVARCHAR or NTEXT value, as opposed to CHAR, VARCHAR or TEXT. See Article #2354 for a comparison of these data types. 阅读全文>>

推荐(0)
收藏

Google不作恶吗

2009-02-16 11:57

对google印象一直不错,是我最早使用的搜索引擎,一开始就被简洁的主页吸引。大概是04年,大一的时候,记得那时候上网还要往网吧里跑。还有经常去月光博客,不知道大家是否也去过。天天说google多好,百度多黑,甚至还称百毒;而且我还向同学传播百度的罪行,所谓的7宗罪。。。 阅读全文>>

推荐(2)
收藏

属性导致死循环

2008-12-12 14:12

public class WrongProperty
    {
        private string _RequestType;

        public enum ActionType
        {
            CreateSO,
            ApproveSO,
            PostToShipSO,
            VoidSO
        }

       阅读全文>>

推荐(0)
收藏

SQL Server 的 Datatime 类型为什么不能早于 1753 年?

2008-11-29 12:33

Good question. There are historical reasons for this limitation. In what we sometimes refer to as the "Western world," there have been two calendars in modern times: the Julian and Gregorian calendars. These calendars were a number of days apart (depending on which century you looked at), so when a culture that used the Julian calendar moved to the Gregorian calendar, it removed from 10 to 13 days. Great Britain made this shift in 1752. (So, in that year, September 2, 1752 was followed by September 14, 1752.)

An educated guess as to why Sybase SQL Server—the predecessor of Microsoft SQL Server—selected 1753 as the earliest date is that if you were to store a date earlier than 1753, you would also have to know which country was using which calendar and also handle this 10- to 13-day jump. So Sybase decided to not allow dates earlier than 1753. Note, too, that other countries made the shift later than 1752. Turkey, for instance, did it in 1927.

Being Swedish, I find it amusing that Sweden had the weirdest implementation. Sweden originally planned to skip every February 29, leap day, over a period of 40 years (from 1700 to 1740) so that Sweden would be in sync with the Gregorian calendar after 1740 (but meanwhile not in sync with anyone else). However, in 1704 and 1708 the leap day wasn't skipped for some reason, so in 1712 (which was a leap year), Sweden inserted yet one more extra day (imagine being born in Feb 30!) and then made the shift over a day, in 1753, in a similar manner to everyone else.

推荐(0)
收藏