- Windows作業系統線上啟用失敗?
系統時間不正確,改為正確時間。 - Office線上啟用失敗?
系統時間不正確,改為正確時間。 - 瀏覽網頁出現網站憑證過期?
系統時間不正確,改為正確時間。 - 停止Microsoft OneNote開機自動啟動?
執行msconfig,切換至啟動分頁,取消OneNote。 - 安裝Windows出現0x80300001錯誤?
將Windows安裝光碟放回去即可。 - 刪除Windows networking profile?
netsh wlan delete profile name="ProfileName"
2020年7月16日 星期四
電腦常見問題
2013年11月20日 星期三
累人的檔案格式
最近工作需要使用Linux,但又離不開windows(因為Exchange與Office關係),
想讓檔案能在Windows與Linux都能編輯與觀看。
當然最先想到的是HTML,不過HTML最為閱讀來說,不太適合,接下來當然是
PDF,PDF蠻適合閱讀,不過要找到一個好用又免費的PDF Editor真難。
使用Open Office格式odt,Libreoffice可以編輯,但Microsoft Office打不開,暈 @@
使用docx,在Libreoffice又怪怪的,最後用doc,算是比較正常的。
只是檔案想要跨平台,有這麼難嗎 ><
Windows安裝Microsoft Office
Linux安裝Libreoffice
ios與Android安裝Quickoffice
Google Driver與Box等雲端都可瀏覽Word檔
格式使用舊版office格式,Microsoft Word 97/2000/xp/2003 doc格式。
P.S. 為了不造成使用困擾,以後決定都用舊版格式了 @@
許我一個跨平台的檔案格式吧!!!
當然最先想到的是HTML,不過HTML最為閱讀來說,不太適合,接下來當然是
PDF,PDF蠻適合閱讀,不過要找到一個好用又免費的PDF Editor真難。
使用Open Office格式odt,Libreoffice可以編輯,但Microsoft Office打不開,暈 @@
使用docx,在Libreoffice又怪怪的,最後用doc,算是比較正常的。
只是檔案想要跨平台,有這麼難嗎 ><
Windows安裝Microsoft Office
Linux安裝Libreoffice
ios與Android安裝Quickoffice
Google Driver與Box等雲端都可瀏覽Word檔
格式使用舊版office格式,Microsoft Word 97/2000/xp/2003 doc格式。
P.S. 為了不造成使用困擾,以後決定都用舊版格式了 @@
許我一個跨平台的檔案格式吧!!!
2013年10月25日 星期五
2013年7月24日 星期三
找不到5G WiFi AP Router
找不到5GHz的WiFi AP Router!!!
網路上找了一下,Device是支援5280MHz~5320MHz、5745~5825MHz
網路上找了一下,Device是支援5280MHz~5320MHz、5745~5825MHz
而WiFi AP Router自動掃描設定在5240MHz,Device沒支援~~~
設成5745MHz,就認到了~~~
2013年7月1日 星期一
Lenovo ThinkPad X220
都有莫名奇妙無法開機的問題~
不過放了一段時間後沒用, 又可以開機了~
送修回來後, 結論是~~~
要把電池拔掉, 按住power鍵, 放完電再開機~
這這這這這~~~瞎~太瞎了~整個瞎~~~
結果還是壞了, 連硬碟都壞了 ><
又送修回來後, 目前還算正常~
好家在~ 好家在~~
設為首頁(JavaScript)
url=parent.frames.location;
document.write(< a href="#" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(url);" >
< font size=\"2\" color=\"#FFFF99\" >設為首頁< /font >< /a > ');
< /script >
加入我的最愛(JavaScript)
document.write("< A href=\"javascript:bookmark()\">加入我的最愛< /font >< /A > ");
< /script >
留言板(ASP)
< script language="javascript" >
< !--
function check()
{
project=document.myform.project.value;
word=document.myform.word.value;
if(project=="")
{
alert("沒有輸入主題!");
return;
}
else
{
if(word=="")
{
alert("沒有任何留言!");
return;
}
}
document.myform.submit();
}
-- >
< /script >
< html >
< head >< title >留言板< /title >< /head >
< body background="../pic/bg.gif" vlink="#0000FF" >
< form action="../asp/tform.asp" Method=post name="myform" >
< div align="left" >
< div align="center" >
< center >
< table border="1" width="634" height="1" bordercolor="#008000" >
< tr >
< td width="607" align="right" height="4" valign="top" colspan="2" >
< p align="center" >
< font color="#0000FF" >& nbsp;& nbsp;& nbsp;& nbsp;< font size="5" > < /font > < /font >
< font color="#000000" >< font size="5" >< b >留& nbsp;& nbsp;& nbsp; 言& nbsp;& nbsp;& nbsp; 板< /b >< /font >& nbsp;< /font >
< font color="#0000FF" >& nbsp;& nbsp;< /font >< font color="#0000FF" > & nbsp;< /font >
< /p >
< /td >
< /tr >
< tr >
< td width="119" align="right" height="1" valign="top" >姓名:< /td >
< td width="231" height="1" >< input type="text" name="name" size="27" tabindex="1" >
< font size="2" >& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;
< font color="#FF0000" >& nbsp;< /font >
< /font >
< /td >
< /tr >
< tr >
< td width="119" align="right" height="1" valign="top" >旅遊地點:< /td >
< td width="500" height="1" >< input type="text" name="address" size="27" tabindex="2" >< /td >
< /tr >
< tr >
< td width="119" align="right" height="1" valign="top" >主題:< /td >
< td width="500" height="1" >< input type="text" name="project" size="33" tabindex="3" >< /td >
< /tr >
< tr >
< td width="119" align="right" height="16" valign="top" > < p align="right" >留言:< /p > < /td >
< td width="500" height="16" >
< font size="2" >
< textarea rows="6" name="word" cols="68" tabindex="4" >< /textarea >
< /font >
< /td >
< /tr >
< tr >
< td width="119" align="right" height="87" valign="top" >心情圖示:< /td >
< td width="500" height="87" valign="top" align="right" nowrap >
< p align="left" >
< font size="2" >
< input type="radio" value="../pic/person1.gif" name="person" tabindex="5" >
< img border="0" src="../pic/person1.gif" width="50" height="61" >& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;
< input type="radio" value="../pic/person2.gif" name="person" tabindex="5" >
< img border="0" src="../pic/person2.gif" width="48" height="62" >& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;
< input type="radio" value="../pic/person3.gif" name="person" tabindex="5" >
< img border="0" src="../pic/person3.gif" width="49" height="62" >& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;
< input type="radio" value="../pic/person4.gif" name="person" tabindex="5" >& nbsp;& nbsp;
< img border="0" src="../pic/person4.gif" width="44" height="61" >
< br >
< input type="radio" value="../pic/person5.gif" name="person" tabindex="5" >& nbsp;& nbsp;
< img border="0" src="../pic/person5.gif" width="53" height="59" >& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;
< input type="radio" value="../pic/person6.gif" name="person" tabindex="5" >& nbsp;& nbsp;
< img border="0" src="../pic/person6.gif" width="51" height="59" >& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;
< input type="radio" value="../pic/person7.gif" name="person" tabindex="5" >& nbsp;& nbsp;
< img border="0" src="../pic/person7.gif" width="42" height="56" > & nbsp;& nbsp;& nbsp;& nbsp;& nbsp;
< input type="radio" value="no" name="person" tabindex="5" checked >
< /font >
< font color="#FF0000" >不選擇< /font >
< font size="2" >& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;< /font >
< /p >
< /td >
< /tr >
< /table >
< /center >
< /div >
< /div >
< p align="center" >
< input type="button" value="留言" tabindex="6" onclick="check()" >
< font size="2" >& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp; & nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp; < /font >
< a href="../asp/tbook.asp" target="_self" >觀看留言板< font size="2" >& nbsp;< /font >< /a >
< font size="2" >& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp; < /font >
< input type="reset" value="清除" name="reset" tabindex="7" >
< /p >
< /form >
< /body >
< /html >
< html >
< head >< title >留言板< /title >< /head >
< body background="../pic/bg.GIF" vlink="#0000FF" >
< /html >
tbook.asp
< HTML >
< HEAD >< TITLE >留言板< /TITLE >< /HEAD >
< BODY background="../pic/bg.gif" vlink="#0000FF" >
< H2 ALIGN=CENTER >
< b >留& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;言& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;& nbsp;板< /b >
< img border="0" src="../pic/acdrule.gif" width="100%" height="10" >
< /H3 >
< %
SQL = "Select * From tbook Order By time DESC"
Set conn = Server.CreateObject("ADODB.Connection")
DBPath =Server.MapPath("../db/free.mdb")
conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" &DBPath
SET rs =Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,3,2
If rs.BOF=True Then
Response.Write "< h2 >< p align=center >抱歉目前無資料!< /p >< /h2 >"
Response.Write "< p align=center >< a href=""javascript:history.back()"" >返回上一頁< /a >< /p >"
Response.End
End If
Page = CLng(Request("Page")) rs.PageSize=5
If Page < 1 Then Page = 1
If Page > rs.PageCount Then Page = rs.PageCount
ShowOnePage rs, Page
% >
< DIV ALIGN=right >
< A HREF="../html/talk.htm" >開始留言< /A >
< A HREF="../index.htm" >回首頁< /A >
< %
If Page < > 1 Then Response.Write "< A HREF=tbook.asp?Page=1 >第一頁< /A > "
Response.Write "< A HREF=tbook.asp?Page=" & (Page-1) & " >上一頁< /A > "
End If
If Page < > rs.PageCount Then Response.Write "< A HREF=tbook.asp?Page=" & (Page+1) & " >下一頁< /A > "
Response.Write "< A HREF=tbook.asp?Page=" & rs.PageCount & " >最後一頁< /A > "
End If
% >
頁次:< FONT COLOR="Red" >< %=Page% >/< %=rs.PageCount% >< /FONT >
< /BODY >
< /HTML >
< %
Sub ShowOnePage( rs, Page )
rs.AbsolutePage = Page
For iPage = 1 To rs.PageSize
RsToTbook rs rs.MoveNext
If rs.EOF Then Exit For
Next
End Sub
Sub RsToTbook( rs )
word=Replace(rs("word"), vbCrLf, "< BR >" )
If Len(rs("pic")) < > 0 Then PicHTML = "< IMG SRC=" & rs("pic") & " >"
Else PicHTML = ""
End If
% >
< p align=left >
< TABLE BOBDER=0 WIDTH=640 >
< TR >< TD WIDTH=60 >< %=PicHTML% >< /TD >
< TD width=200 >
< table bobder=0 align=left >
< TR > < td >主 題:& nbsp;< %=rs("project")% >< /TD > < /TR >
< TR > < TD >姓名:& nbsp;< %=rs("name")% >< /TD > < /TR >
< TR > < td >時 間:< %=rs("time")% >< /TD > < /TR >
< /table >
< /TD >
< TD width=380 BGCOLOR=#00FFFF valign="top" align=left >< %=word% >< /TD >
< /TR >
< /TABLE >
< img border="0" src="../pic/acdrule.gif" width="100%" height="10" >
< %
End Sub
% >
計數器(ASP)
If Session("counter")=Empty Then
Set conn = Server.CreateObject("ADODB.Connection")
DBPath =Server.MapPath("../db/free.mdb")
conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" &DBPath
SET rs =Server.CreateObject("ADODB.Recordset")
rs.open "counter",conn,3,2
If rs.BOF=True Then
rs.AddNew
rs("counter")=0
rs.Update
End If
rs("counter")=rs("counter")+1
rs.Update
Else
Set conn=Server.CreateObject("ADODB.Connection")
DBPath=Server.MapPath("../db/free.mdb")
conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" &DBPath
SET rs=Server.CreateObject("ADODB.Recordset")
rs.open "counter",conn,3,2
If rs.BOF=True Then
rs.AddNew
rs("counter")=0
rs.Update
End If
End If
Session("counter")=rs("counter")
% >
< html >
< head >
< title >計數器< /title >
< /head >
< body bgcolor="#0000FF" vlink="#0000FF" >
< font color="#FFFF99" >< %=rs("counter")% >< /font >
< /body >
< /htm l>
猜數字(C語言)
/* 使用C為開發工具 */
#include /* 包含DOS I/O函數 */
#include /* 包含亂數函式 */
#include /* 包含直接I/O函式 */
/* 程式開始 */
void main(void)
{
clrscr();
int i,j,k=0,l=0; /* k,l判斷A,B */
char answer[5],input[4]; /* answer為答案;input為玩家輸入*/
answer[0]=58; /* char為'0' */
randomize(); /* 設定亂數由時間取得 */
while(1) /* 進入遊戲 */
{
/* 電腦產生數值 */
for(i=1;i
{
answer[i]=rand()%11+48; /* 亂數值介於1-10,除以質數 */
/* 判斷是否有重複值 */
for(j=0;j
{
if(answer[i]==answer[j])
{
i--;
break;
}
}
}
/* 玩家開始玩遊戲 */
while(1)
{
printf("\nPlease input four number or input Esc to exit:\n");
/* 得到玩家輸入的值 */
for(i=0;i
{
input[i]=getche();
/* 假如輸入為esc則for迴圈 */
if(input[i]==27)
break;
/* 判斷玩家輸入是否為0-9的數目 */
if(input[i]57)
{
printf("\nWrong! You are not input number:\n");
i=-1;
}
/* 判斷玩家是否輸入相同的值 */
for(j=0;j
{
if(input[i]==input[j])
{
printf("\nWrong! You are input repeat number9:\n");
i=-1;
break;
}
}
}
/* 假如輸入為esc則跳出while迴圈並設key為1跳出遊戲 */
if(input[i]==27)
break;
/* 判斷為多少A多少B */
for(i=0;i
{
for(j=1;j
{
if(input[i]==answer[j])
{
if(i==j-1)
k++;
else
l++;
}
}
}
/* 4A為正確 */
if(k==4)
{
printf("\nYou are right!\n");
k=0;
l=0;
break;
}
/* 輸出AB */
else
{
printf("\n%dA%dB\n",k,l);
k=0;
l=0;
}
}
/* 要繼續玩輸入'y' */
printf("\nIf you want to play, please input y:\n");
if(getche()!='y')
break;
}
}
訂閱:
文章 (Atom)