PowerTip of the Day-Make Function Parameters Mandatory

原文地址:http://app.en25.com/e/es.aspx?s=1403&e=5441&elq=3d32771b868b437aa97567a6a50b5563原文:Mandatory parameters are special because if you do not submit it, PowerShell will automatically ask for it. You can use mandatory parameters in your own

關於產生一個隨機數組

產生隨機數的最基本代碼是:Random rand=new Random();int i=rand.Next(0,100);Next函數的參數可以為空白,也可以是一個值的範圍。像這種方法通常產生一個隨機數不會有問題,但是如果要產生一個隨機數組的話就不見得好用了,比如:List<int> lstRnd=new List<int>();Random rand=new Random();for (int i=0;i<10;i++)

PowerTip of the Day-Changing File/Folder Creation Date

原文地址:http://app.en25.com/e/es.aspx?s=1403&e=4273&elq=1cbc05ed0b11413db47a3b65bc2ee7a4原文: Changing File/Folder Creation DateYou should use this approach if you need to change the creation time of a folder or file after you have created it:Get-

Silverlight 3試用手記

試用環境:WMWare 6.5.2,Windows XP SP3,512MB記憶體配置,15GB硬碟分配.需要下載Silverlight 3 Tools,Blend 3 preview和Visual Studio 2008 with SP1(本人用Visual Web Developer 2008 SP1)以上虛機環境安裝完畢後,鏡像檔案大小是3.44GB.關於記憶體,本人還是建議分配得更大一些,儘管512跑起來也不是很慢.下載VWD的時候推薦下載Visual Studio 2008

統一維度模型

(UDM) 的作用是在使用者和資料來源之間搭建一座橋樑。UDM 構造於一個或多個物理資料來源之上。使用者使用多種用戶端工具(例如,Microsoft Excel)向 UDM 發出查詢。The role of a Unified Dimensional Model (UDM) is to provide a bridge between the user and the data sources. A UDM is constructed over one or more physical

Cube資料彙總效能筆記

30萬資料,彙總15分鐘,實際真實的業務系統資料,SQLServer 2005 Analysis

微軟的GDI禮包

昨天下午收到,一個很大的紙箱。裡面有一個包,一個杯子,還有三張DVD以及一些貼紙。包包不錯,平時裝一些東西不錯,可惜的是放不下我的筆記本,

PowerTip of the Day-Creating Time Spans

原文地址:http://app.en25.com/e/es.aspx?s=1403&e=5491&elq=8184bb918aa3406299da2caa939745da原文:A time span represents a time interval, and you can use time spans to subtract or add time to a date. For example, to get the date seven days ago:PS> (

PowerTip of the Day-Creating Relative Dates

原文地址:http://powershell.com/cs/blogs/tips/archive/2010/06/11/creating-relative-dates.aspx原文:To create relative dates like "10 days ago," there are two paths. Administrators often add or remove time spans created by New-Timespan:(Get-Date) -

PowerTip of the Day-Accessing Object Properties

原文地址:http://powershell.com/cs/blogs/tips/archive/2010/06/08/accessing-object-properties.aspx原文:Accessing Object PropertiesObjects store information in various properties. There are two approaches if you would like to get to the content of a given

Silverlight筆記:模態表單的實現

Silverlight2下本身沒有模態表單的實現,雖然本身有Messagebox.Show但是對於複雜的應用來說是很難滿足需求的。這個時候我們就需要自己來實現模態表單這樣的效果。實際上實現的原理是很簡單的,我們的主介面在一個Grid容器裡,而模態表單在一個Grid容器裡,這個時候邏輯實際上就變成了Grid裡一個按鈕被單擊後,以及模態表單的關閉按鈕被單擊後,它們哪一個層在上面哪一個在下面的問題了,這裡我們需要用到一個屬性:Canvas.ZIndex數字越大就越排在上面。各層的排列如:gdParen

編程常見問題記錄:明明有響應按鈕的事件,但程式就是無法捕獲到

比如我寫了一個private void Button1_Click(object sender, System.EventArgs e)裡面有我處理資料的相應過程,在調試的時候經常做的就是在裡面設定斷點然後監視其變數。偶爾能碰到這樣的問題,就是在調試的過程中明明到了這個Button1_Click過程但是就是捕捉不到我設定的斷點。隨後發現問題是出在#region Web Form Designer generated code裡面,需要檢查一下private void

[不得不提]國外的一個silverlight for cube的商業組件

用silverlight展現Cube一直是我的一個想法,因為純走RIA要比javascript要穩定的多,而且展現效果也要好很多.剛剛看到radarsoft發布了相關的產品,應該說是第一家吧.大概的看了下,做的效果還是很不錯的.上面是圖表介面,雖然圖看上去還不是很美觀.篩選.還有很多種格式的圖表.透視表同樣是被支援的.

PowerTip of the Day-Adding and Subtracting Time

原文地址:http://app.en25.com/e/es.aspx?s=1403&e=5560&elq=e4af9624a0344403b24bcf81d6722d83原文:There are actually two different ways of manipulating dates and times. Here is the high-level approach to subtract 30 days from today:PS> (Get-Date) -

Visifire正式版(v1.1)發布

今天看到visifire網站上的訊息,Visifire is out of beta.不過訊息是8月6日的,居然在奧運會開幕這天才看到.一直以來都在關注這套控制項,版本從beta到final的過程中,修正了很多bug,現在已經變得很健壯,而且在很多環境中的應用都很成功.筆者一直在用這套控制項做相關的BI前端方案,效果很不錯.總之,這是一套很不錯的BS

silverlight for arcgis開發筆記

第一天接觸地理資訊開發,用silverlight做,平台是arcgis

PowerTip of the Day-Removing Empty Things

原文地址:http://app.en25.com/e/es.aspx?s=1403&e=4204&elq=c21eede5a82e4a9e99d852b591c961e5原文: Removing Empty ThingsHow do you exclude objects based on empty properties? For example, WMI returns all kinds of "network adapters:"Get-WMIObject

在Vista配置SSAS通過HTTP遠端連線的方法.

Analysis Services不同於資料引擎有自己的sa方式的驗證,而我們在實際生產環境部署的時候不可能應用程式伺服器和分析伺服器都在同一台物理機器上,這個時候就需要配置分析服務的遠程方式訪問.目前網上資料最多的就是通過http的方式,本文主要描述sqlserver 2005 analysis

PowerTip of the Day from powershell.com上周匯總(十一)

刪除錯誤記錄Deleting Error Recordshttp://powershell.com/cs/blogs/tips/archive/2010/10/11/deleting-eating-error-records.aspxTrap { "Whew, an error: $_"; continue } 1/$null如果不加continue,紅色的錯誤資訊會顯示出來。  改變ErrorActionChange ErrorAction for Your Private Error

惡搞程式發布

本程式由惡搞國足的想法產生.運行介面如下:首先:輸入兩個參數  然後,查看效果,大家想怎麼發給朋友就怎麼截吧.  程式沒什麼技術含量,不原意動手實現的朋友可以直接在下面下載現成的代碼:http://files.cnblogs.com/aspnetx/WebSite1.rar這個已經不是本文所提到的版本,而且已經被更新的版本所替代。   注:惡搞終究惡搞,希望各位朋好友在惡搞的同時不要傷了和氣哦.

總頁數: 61357 1 .... 5658 5659 5660 5661 5662 .... 61357 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.