工作閑暇的時候警示下自己

1、不說“不可能”;2、凡事第一反應: 找方法,不找借口;3、遇到挫折對自己說聲:太好了,機會來了!4、不說消極的話,不落入消極的情緒,一旦發生立即正面處理;5、凡事先訂立目標;6、行動前,預先做計劃;7、工作時間,每一分、每一秒做有利於生產的事情;8、隨時用零碎的時間做零碎的事情;9、守時;10、寫點日記,不要太依靠記憶;11、隨時記錄想到的靈感;12、把重要的觀念、方法寫下來,隨時提示自己;13、走路比平時快30%,肢體語言健康有力,不懶散、萎靡;14、每天出門照鏡子,給自己一個自信的微笑;

WinCE 上截圖

核心代碼如下: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.

P/Invoke 返回bool 值

在平台叫用時,會遇到被調用的函數返回的是bool值,這時使用C#調用時便會得到錯誤的bool值,在網上查了一下,有2種解決方案1.定義被調用函數時不返回bool,直接回返回int.2.在聲明方法時加一個 [return: MarshalAs(UnmanagedType.I1)] 我的範例程式碼:C++ 編寫的樣本程式碼(Win32 DLL):編譯完成後,產生一個名為 DllTest.dll 的 DLL Code highlighting produced by Actipro

sql 暫存資料表 全域和局部的範圍

暫存資料表 SQL Server 支援暫存資料表。暫存資料表就是那些名稱以井號 (#) 開頭的表。如果當使用者中斷連線時沒有除去暫存資料表,SQL Server 將自動除去暫存資料表。暫存資料表不儲存在當前資料庫內,而是儲存在系統資料庫 tempdb 內。 暫存資料表有兩種類型: 本地暫存資料表 以一個井號 (#) 開頭的那些表名。只有在建立本地暫存資料表的串連上才能看到這些表。 全域暫存資料表 以兩個井號 (##)

3 ADO.NET追蹤記錄檔

3.1.1 使用Logman.exe工具 + 生產力 代碼Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Imports System.Data.SqlClientPublic Class MyApp    Shared Sub Main()        Dim cnSettings As SqlConnectionStringBuilder   

讓自訂控制項設計時全部可見(而不是只有一個預留位置代碼)

Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?xml version="1.0" encoding="utf-16"?><Classes xmlns="http://schemas.microsoft.com/VisualStudio/2004/03/SmartDevices/XMTA.xsd">  <Class 

解決串口死結

代碼bool closing = false;bool listening = false;//開啟or關閉串口btnOpen_Click(){    if(btnOpen.Text == "Open")    {        serial.Open();    }    else    {        closing = true;        while(listening)Application.DoEvents();        serial.Close();        cl

sql 中雙引號的問題

在sql 中 ' 單引號是用來表示字串的,如果字串中想包含 ' 單引號就需要轉義,所以會看到 '''' 來表示一個 ' 字串。這樣在Sql語句中,除數字外都用上單引號,如果涉及到串連就用'+"..."+'例如:declare @strCondition  nvarchar(3000)set @strCondition = @strCondition + ' and (userQuestion.topic like ''%'+ @key + '%'' or

JNI itoa 不能使用的問題

在JNI中使用 itoa函數,總是說沒有這個函數,jni/TestJni.cpp:22:18: error: 'itoa' was not declared in this

JS中confirm,alert,prompt函數

 window.alert:參數,只有一個,顯示警告框的資訊;      無傳回值.          <script>      window.alert("確定.")      </script>   window.confirm :   參數就只有一個.顯示提示框的資訊.      按確定,返回true;    按取消返回false.          <script>      var    bln    =   

html中錨點的應用

很少用到錨點的知識,但今天又看到了,就要記錄下來,它同樣也有著如asp傳值一樣的功效,雖然不是那麼強打;設定錨點<a name="top"></a>同頁跳轉<a href="#top">返回頂部</a>不同頁跳轉<a href="test.htm#top>跳轉到test.htm頁面頂部</a> 順便的提一下mailto,以前絲毫沒有瞭解過mailto還有郵件主題“subject”添加的屬性一個完整的mailto文法是這樣的&

Romoting 第一個例子

View Code public class RemotingWork : MarshalByRefObject { public void test() { int sum = 1; for (int i = 1; i <= 100; i++) { sum += i; }

簡單的原廠模式

 btnCalc_Clickprivate void btnCalc_Click(object sender, EventArgs e) { double total = 0.0d; string ctypeStr = icmbCtype.SelectedItem.ToString(); css = DXSLFactory.CashFactory.CreateCashSuper(ctypeStr);

自訂路由事件

WpfApplication1.DXSL.BLL。 ReportTimeEventArgs TimeButton namespace WpfApplication1.DXSL.BLL{ using System.Windows.Controls; using System.Windows.Input; using System.Windows; #region ReportTimeEventArgs public class

引用web service時,出現無法識別的配置節點 applicationSettings

昨天更新引用web service的項目時,出現 無法識別的配置節點 applicationSettings/* Properties.Settings 這樣的問題ApplicationSetting 節點的內容:  <applicationSettings>   <Test.Site.Properties.Settings>        <setting name="Test_Site_StudentWebService_StudentWebService"  

LinQ中合并、串連、相交、與非查詢

LinQ中Union合并查詢:串連不同的集合,自動過濾相同項;延遲。即是將兩個集合進行合併作業,過濾相同的項 var cities = (from p in mylinq.System_Places where p.PID == place select p).Union( from q in mylinq.System_Places where q.Parentid==place select q

.Net3.5擴充方法實現對象JSON序列化

.NET 3.5 還包含一個新的new System.Runtime.Serialization.DataContractJsonSerializer class 類 ,你也可以用它來做JSON (JavaScript Object Notation)序列化/還原序列化的工作。  /// <summary>    /// Json資料轉換封裝    /// </summary>    public static class JsonHelper    {        /

從 XmlDocument到XDocument的轉換

擴充XmlDocumentpublic static class XmlDocumentExtensions{  public static XDocument ToXDocument(this XmlDocument document)  {    return document.ToXDocument(LoadOptions.None);  }  public static XDocument ToXDocument(this XmlDocument document,

“運行”菜單中命令集錦

Computer management 電腦管理 : compmgmt.msc Device manager 裝置管理員 : devmgmt.mscDisk management 磁碟管理 : diskmgmt.mscDisk defrag 磁碟磁碟重組程式: dfrg.mscEvent viewer 事件檢視器 : eventvwr.mscShared folders 共用資料夾 : fsmgmt.mscGroup policies 組策略 : gpedit.mscLocal users

以流的形式完成日誌記錄

public static string statistical_data = "統計資料資訊.txt"; // List<string> list = new List<string>(); // list.Add("標題=" + Title_null_num.ToString() + "RowId=" + idr["RowId"].ToString());// list.Add("內容=" +

總頁數: 61357 1 .... 26588 26589 26590 26591 26592 .... 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.