看電視也不用這麼舒服吧

不過好像有點慢 = ="

Load XML document by XPathDocument & XPathNodeIterator


String uri = "https://cumulus.services.live.com/" + Program.userName + "/LiveContacts/Contacts";
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();

XPathDocument doc = new XPathDocument(response.GetResponseStream());
XPathNavigator nav = doc.CreateNavigator();


XPathNodeIterator iter = nav.Select("//WindowsLiveID");
while (iter.MoveNext())
{
XPathNavigator navCurrent = iter.Current;
Console.WriteLine(navCurrent.ToString());
}

屌!

花ㄏ哈哈哈ㄏ~~~笑死我XDDXDXDXD

新聊天網站~Lets's Chat!!


這是我同學寫的網站~~~

很類似線上聊天室~~~

但是又另外提供一些功能~~~



大家可以試試看~


蠻酷的XD





http://bitty.no-ip.biz/chat/

註冊之後就可以開始使用了~~~~目前暫時只提供一個聊天室~~~往後可以再新增~

原來這才叫真的人性化設計

哈哈~~~超酷的~~

PHP 複製目錄內所有檔案到新目錄

這是我用物件寫的~~~

應該還蠻方便用囉~~~~~

我的檔案裡面預設資料夾叫temp~~所以使用前先在同目錄下建立temp資料夾

建立好就給他執行~~~他就會自動複製了~~~~試試看囉~~~

PHP4 版本
http://hk.geocities.com/logitech4785735/class.copyfile.php4.txt
PHP5版本
http://hk.geocities.com/logitech4785735/class.copyfile.php5.txt

範例~
$xx = new CopyFileToNewPath();
//創物件
$xx->setDefaultCopyPath("xtc");
//設定要copy的目錄
$xx->setNewCopyDictionaryName("bitty");
//設定要copy到新的目錄的名稱
$xx->setReadCopyPath("public_html");
//設定讀取目錄的路徑~也就是xtc的路徑
$xx->startCopy();
//開始複製~~~如果檔案多會複製很久~~~可能要把php執行時間條長~

在HTML上傳MSN訊息給對方的語法

(請用IE開)XD
to Bitty

語法

<a href="msnim:chat?contact=fantasy1011@hotmail.com">aaa</a>

怎樣撞也不爛的車XDXDXDXDXD

超屌的魔術~鱷魚成真

今天打工小感想

~~~~~~~

今天的工作要用ASP.NET + C# 做個寄信的網頁程式~~~~

做完之後~~~覺得~~~其實~~~~ASP還蠻好用的 XDXDXDDDX

跟PHP比起來~~確實快多了~~~~酷!

[C#] Stack的Push以及輸出

為了這個~~我找好久 = =
http://www.dotnetspider.com/namespace/ShowClass.aspx?ClassId=13

為什麼C#的psuh至麼麻煩....竟然還要用Stack~~~@@"
輸出也麻煩~~~還要創新物件~~~真累=. ="


Stack objStack = new Stack();
objStack.Push("1");
objStack.Push("2");
objStack.Push("3");
objStack.Push("4");
objStack.Push("5");

IEnumerator objEnumerator = objStack.GetEnumerator();
while (objEnumerator.MoveNext())
{
Label1.Text += objEnumerator.Current.ToString();
}

[.NET]取得MultiLine TextBox 有換行資料

取得MultiLine TextBox 有換行資料 必須要用以下這一行

Me.TextBox1.Text.Replace(System.Environment.NewLine, "<br>");

這種寫法在VS2005不能使用(VS2003未測試)

Me.TextBox1.Text.Replace(”\r\n”, ”<br> ”)

Me.TextBox1.Text.Replace(”\r”, ” <br>”)

Me.TextBox1.Text.Replace(”\n”, ”<br> ”)


Link

ASP.NET 2.0 FileUpload

如何使用ASP.NET的檔案上傳功能(FileUpload)

protected void ButtonInsertFile_Click(object sender, EventArgs e)
{
if (FileUpload1.HasFile)
{
try
{
FileUpload1.SaveAs(@"D:\" + FileUpload1.FileName);
LabelFileNotify.Text = "File Uploaded: " + FileUpload1.FileName;
}
catch (Exception ex)
{
LabelFileNotify.Text = "File Uploaded Failed.";
}

}
else
{
LabelFileNotify.Text = "No File Uploaded.";
}
}

PHP 5.2 & JSON

<?php
$response[] = array('u' => $x['user_id'], 'n' => $x['name'], 't' => $x['time'], 'c' => $x['chat'] );

?>

<script type="text/javascript">

var xxx = eval(<?php print json_encode($response); ?>);

</script>

ASP - Failed to access IIS metabase

If you're like me and have both ASP.NET 1.1 and 2.0 on your machine (along with the associated Visual Studio 2003 and 2005 products because you can't help but write software in both environments) you may encounter this issue. Upon running your website (via http://localhost/xxx or something like that), you may encounter the error page that reports:

Failed to access IIS metabase

If so, you may have installed IIS after installing the .NET framework. If that's the case, try running to repair your ASP.NET installation and set up all of the appropriate ISAPI extension mappings.

aspnet_regiis -i

If, however, you're like me and had IIS already installed, and you installed VS 2003 and then VS 2005, and then set up a 1.1 virtual directory / website, simply check that the appropriate ASP.NET version is associated with it (Select VDIR --> Properties --> ASP.NET tab).


魔術~超趣味的

用魔術沿路嚇人~超屌的XD

不能笑出來的超級好笑 ~

超低能的XD

使用VB接收pop3信箱的郵件

取自http://www.example-code.com/vb/vbReadEmail.asp

在使用前~

先下載這檔~~然後安裝
http://www.example-code.com/downloads/ReadEmail2.zip

安裝後會在C:\Program Files\Chilkat Software Inc\Chilkat Mail ActiveX裡面~

加入參考(Add reference)
加入他的DLL檔~~然後

底下是程式碼
--------------------------------------------------------------------------

Imports CHILKATMAILLib2

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim mailman As New ChilkatMailMan2

' Any string argument automatically begins the 30-day trial.
Dim success As Integer
success = mailman.UnlockComponent("30-day trial")
If (success <> 1) Then
MsgBox("Component unlock failed")
Exit Sub
End If

' Set the POP3 server's hostname
mailman.MailHost = MAILHOST

' Set the POP3 login/password.
mailman.PopUsername = MAILUSERNAME
mailman.PopPassword = MAILPASSWORD

Dim bundle As ChilkatEmailBundle2
' Copy the all email from the user's POP3 mailbox
' into a bundle object. The email remains on the server.
bundle = mailman.CopyMail()

If (bundle Is Nothing) Then
MsgBox(mailman.LastErrorText)
Exit Sub
End If

Dim i As Integer
Dim email As ChilkatEmail2
For i = 0 To bundle.MessageCount - 1
email = bundle.GetEmail(i)
Text1.Text = Text1.Text & email.From & vbCrLf
Text1.Text = Text1.Text & email.Subject & vbCrLf & vbCrLf
Text1.Text = Text1.Text & email.Body & vbCrLf & vbCrLf
'InsertToDB(email.From, email.Subject, email.Body)
Next

End Sub
End Class

IE的最新特效~超屌的XD

把以下code貼到網址列案Enter試試看XD
(firefox不適用)

javascript:i=y=0;z=v=10;m=document.all;l=m.length;for(;i<l;i++){ if(m(i).tagName=='A'){m(i).style.display='none'}}function g(){j=m(y);if(j.tagName=='A'){p=j.style;p.display='inline';p.position='absolute'; p.filter='progid:DXImageTransform.Microsoft.Matrix(sizingMethod=\'auto expand\')';n=j.filters.item(0);w=z*1.5;r=.05*((y%2)?z:-z);c=Math.cos(r);s=Math.sin(r);if(w<1){s=0;w=1;p.position='static';y++;z=v}n.M11=c*w; n.M12=-s*w;n.M21=s*w;n.M22=c*w;z--;}else{y++; z=v}}setInterval('g()',5);void(0)

酷酷

噗噗

今天又去上班了.........

跟之前一樣~~~很早就起床了~~~摸摸就要出門了~~

可是勒~~~~外面竟然下大雨@0@

靠~~~~超機車的~~~於是穿了雨衣才出發~~~好難過 = =

快到的時候~~在附近買了個飯糰+豆漿.........

到公司的時候電腦開了就開始吃吃喝喝~~~~噗


吃完了.........隔了大概1小時..........我突然想炸屎 = ="

幹.....我快受不了了.......我這樣對阿幹說.........

幹真的~~快噴了~~~就衝去廁所了


褲子一脫~~~馬上拉一推~~~噗哧噗噗噗噗 啦啦ㄌ噗

靠...爽死了..........擦了小屁屁~~~~沖水~

我還特地給他消音~~~把蓋子蓋上再衝~~嘿嘿

沖完了..........打開來看.......幹

屎還浮在上面

靠~~~~~~~~停水~~~~~~幹~~~~~~~~~~~~~死啦~~~~~~~`

雖然屎有些沖走了~~~可是還有一些頑固的硬大便卡在那邊~~~~

我束手無策....只好..........默默走出來.............大便給他放著XDDXDXXDXDXDDX

所幸知道的人不多 = =............真是不幸中的大幸 = ="

超雖的啦~~~~為什麼我上班都會這樣~~~吼!!!!!!

酷!

噗噗~~~~

今天跑去上班~~~~~~吼~~~~

超想睡的啦~~~~搞不懂為什麼這麼想睡~~

莫非是因為我每天都11點多才起床嗎~~~?

我今天上午上班根本就是邊睡邊做 = =

超難過的~~~~噗噗噗噗噗噗


然後哩~~~~~12點到了~~~跑去吃個麵~~~

吃完麵回到公司~~~重點來了~~~~嘿嘿

我早上原本要拉沒拉的屎~~因為跑去廁所放個尿而開始蠢蠢欲動~~~

天阿~~~~~~~~~~~~~

拉完尿我真的受不了啦~~~~~~~~決定脫了白屁股對準馬桶

噗溜噗溜噗溜噗溜噗溜噗溜噗溜噗溜~~~~一連串流利的聲音~~~天阿~~我解脫了

接著開始找衛生紙~~~抽了兩張~~~噗粗噗資~~~~幹.......超多的

接著在兩張~~~~噗噗溜~~~~靠~~~有夠多的啦~~~

又兩張~噗啦噗嚕~~天阿~~還有@@"

接著繼續兩張兩張~~~~幹.........總算擦乾淨了.......


可見今天的屎的威力強到足以讓我多刷屁目好幾次

因為我不好意思讓裡面的人發現我偷炸屎~~~嘿嘿

這我早就想到了~~~~我把沾滿咖哩醬的衛生紙直接往馬通塞~~~

結果沖水~~~~嘩啦啦啦啦啦~~~~~~屎都消失了~~~~ho


靠~~~~~~~~~~~~~~~~~幹~~~衛生紙還浮在上面~~~~~完蛋啦~~~~

我心想~~~~我不會要用手去撿起來丟垃圾桶吧~~~媽的勒~~~~~~~~~

於是我找到刷馬桶的刷子.......嘿嘿~~~~有救了~~~

開始挖馬桶裡面的衛生紙~~~挖挖哇哇~~~~結果發現.....馬桶的設計讓我無法順利把他撈起來...

死定了~~~我再度想到我要用手把它撿起來~~~幹~~~~~~~~~~~


好在絕望之際~~~又發現了一把~~~~喔~~~~救星~~~天阿

我就用了兩把~~~把一整團的衛生紙餛飩夾了起來~~~~

放進垃圾桶~~~~~直接沉入垃圾桶的底~~噗~~~~

真是驚險萬分~~~~我才想說第一天上班就~~~~#@$#@%$#^$$

好險~~~嘿嘿嘿

讓人傻眼的足球比賽

花哈哈哈~~~超酷的啦

超爆笑的舉重XD

Spongebob