2014-06-19

C#完美化.Ch1.基本語言要素

這篇算是讀書心得, 稍微紀錄一下以免忘了


2014-05-23

The Unattended Service Account Application ID is not specified or has an invalid value.

Steps Taken:
  1. Open Health Analyzer and view details
  2. Manage the Visio Graphics Service (SA) and confirm Application ID is empty.
  3. Manage the Secure Store Service (SA) and Generate New Key
  4. Create a New Target Application
  5. Provide a unique ID, name, and contact email. Select Group Type.
  6. Accept default and just click Next
  7. Provide a user name for both fields.  I used “DEMOAdmin” as that is the only user on this machine. Click OK.
  8. Enter the Target Application ID back on the Visio Graphics Service (SA) page and click OK.
  9. Go to the Health Analyzer rule, open it and click Reanalyze Now, then you should be ready to go.  

Reference 1
Reference 2

The Security Token Service is unavailable

Run the following commands one by one on SharePoint PowerShell:

$h = Get-SPServiceHostconfig

$h.Provision()

$services = Get-SPServiceApplication

foreach ($service in $services) { $service.provision();
write-host $service.name}



Reference

2014-05-07

Sharepoint建立站台時找不到預設Feature.

出現下列錯誤

The site template requires that the Feature {e995e28b-9ba8-4668-9933-cf5c146d7a9f} be activated in the site collection. 

2013-11-26

要用jQueryUI的注意事項

切記順序很重要! jquery.js一定要擺在jquery-ui.js之前, 不然怎麼用都沒效 Orz
    <link href="../jquery-ui.css" rel="stylesheet" type="text/css" />
    <script src="../jquery-1.10.2.js">
    <script src="../jquery-ui.min.js">

2013-09-26

20130925劉櫂豪立委質詢黃世銘檢察總長

不慍不火的論述把質詢講得清清楚楚, 每段論述都切到重點, 
這段只要是台灣的公民都應該認真的花十三分鐘聽完它

2013-04-15

Linux crontab 不重覆執行, 前一次若尚在執行則跳過

國內的教學網站大部分都只提到怎麼用crontab,
只有翻到英文與簡中的教學

10 * * * *  flock -xn /tmp/test.lock -c '/home/test/test.sh'

2013-03-11

動態(Server Side)產生的連動式下拉選單後在Postback(Server Side)取值

紀錄一下, 不需要再為了同一個功能搞到四點  =.=a


1. 產生元件的code須寫在PreInit()


protected override void OnInit(EventArgs e)
{
    bindDropdownlist();
    base.OnInit(e);
}


protected void btnSubmit_Click(object sender, EventArgs e)
{
    DropDownList ddlTest = new DropDownList();
    string _ddltest = "";
    if (ctl.ID.IndexOf("ddlTest") >= 0)
    {
        ddlTest = (DropDownList)ctl;
        _ddltest = this.Request[ddlTest.UniqueID];
    }

}


大致上的code類似這樣,
有在Client端使用javascript變更過的元件要取值, 這應該是最簡單的寫法了, 
唯一要注意的是用ddlTest.UniqueID, 不是ddlTest.ID也不是ddlTest.Client
為了這種鳥問題搞到四點真的不值得....... Orz

2012-01-28

Kurobox Pro 安裝 Debian 後換新硬碟無法開機

Kurobox裝完UBoot/Debain後, 設定成只使用硬碟及tftp開機,
問題是換了新硬碟之後裝的Debian就沒了
就算刷回原廠Rom, 還是沒法開機  =.=
這篇給自己的memo, 下次希望不要用到  ~"~

2011-09-27

WSS workflow 縮短啟動時間

Central Administration 中 Timer Job Definitions 顯示 Workflow的啟動時間是 Minutes
不過預設是5分鐘才跑一次  =.=a



2011-09-15

清Event Cache Table的方法

先前這個 方法 效果不甚完美,
原先table大概八百萬筆刪還剩七百萬筆......  Orz


找到另外兩個

2011-09-14

使用SharePointDesigner設定欄位為Null

有點蠢可是有用的方法.......

簡單來說, 用空的Dynamic String存進欄位就好了

引用來源

WSS3.0 EventCache超過百萬筆

應該是WSS的bug,
hotfix都上了還是踩到這個洞, 而且已經塞進去的資料也不會砍掉
所以手動來砍