中華電信、無線IP分享器和網路交換器如何連接因為我的設備越來越多,電腦, PS4, 4K電視,NAS 全都要有線上網,而無線IP分享器只有4個LAN,根本不夠用,於是我立馬去買了一個 8 Port 的網路交換器(也叫SWITCH)。至於買什麼牌都可以,網路上的大大都推薦鐵盒的,於是我也買了鐵盒的,比較可以散熱。
createps 發表在 痞客邦 留言(1) 人氣(28,302)

終於寫好了一個圖片壓縮的程式,當你有一個2m的圖片,覺得太大,可以壓縮到100k以下,圖片尺寸不變,質量縮50%,肉眼根本看不出來的啦,而且保留了照片資訊,呼~,也可以批次處理全部的檔案喔^^(花了2小時寫的吧^^)
我給它一個名字叫做【照片縮縮】,希望大家會喜歡^^。無料下載中!!
下載網址:
http://goo.gl/68jCBu
createps 發表在 痞客邦 留言(2) 人氣(593)

facebook 有介紹如何新增應用程式
網址在這
https://developers.facebook.com/docs/ios/getting-started
如果你的英文不差,照著作也可以完成,如果你看不下去英文的,就看一下我寫的吧^_^
createps 發表在 痞客邦 留言(1) 人氣(1,076)
public static void DisplayTypeAndAddress()
{
IPGlobalProperties computerProperties = IPGlobalProperties.GetIPGlobalProperties();
NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces();
Console.WriteLine("Interface information for {0}.{1} ",
computerProperties.HostName, computerProperties.DomainName);
foreach (NetworkInterface adapter in nics)
{
IPInterfaceProperties properties = adapter.GetIPProperties();
Console.WriteLine(adapter.Description);
Console.WriteLine(String.Empty.PadLeft(adapter.Description.Length, '='));
Console.WriteLine(" Interface type .......................... : {0}", adapter.NetworkInterfaceType);
Console.WriteLine(" Physical Address(網卡實體位置) ........................ : {0}",
adapter.GetPhysicalAddress().ToString());
Console.WriteLine(" Is receive only.......................... : {0}", adapter.IsReceiveOnly);
Console.WriteLine(" Multicast................................ : {0}", adapter.SupportsMulticast);
}
Console.WriteLine("===============================================================");
//Console.WriteLine("");
Console.WriteLine("在Physical Address(網卡實體位置)有一個12碼英文加數字的才是正確的!!");
Console.ReadKey();
}
createps 發表在 痞客邦 留言(0) 人氣(629)
C# 透過 WMI 取得硬碟序號 ( 物理 / 邏輯磁碟)
createps 發表在 痞客邦 留言(0) 人氣(2,250)
在 C#2010 中,我設定 ComboBox.MaxDropDownItems 屬性之後一直都沒反應,都會顯示大量的資料.
原來還得搭配 ComboBox.IntegralHeight = false; 就可以解決。
createps 發表在 痞客邦 留言(0) 人氣(384)

XNA 3D動畫,模型變型
我是用微軟的 Skinned Model 4.0 ,直接套我自己的模形(用Panda plugin輸出X檔案)。結果手臂在彎曲的時候,整個模型變形(圖四)。T T
這是3D Max 裡面的動畫,還沒作動作。(圖一)
createps 發表在 痞客邦 留言(0) 人氣(211)
讀取大的圖檔時發生記憶體不足的問題。(轉載)
最近常遇到配置Bitmap時發生記憶體不足的怪問題。但程式才使用不到900MB
配置的記憶體也不過才40MB,怎麼算都不會不夠呀。索性測試了一下,發現有一下幾種問題存在。
createps 發表在 痞客邦 留言(1) 人氣(6,472)
/// 程序中System.Text.Encoding.Default是指操作系統的當前 ANSI 代碼頁的編碼。
public System.Text.Encoding 取得檔案類型(string filename)
{
System.IO.FileStream fs = new System.IO.FileStream(filename, System.IO.FileMode.Open, System.IO.FileAccess.Read);
System.IO.BinaryReader br = new System.IO.BinaryReader(fs);
Byte[] buffer = br.ReadBytes(2);
if (buffer[0] >= 0xEF)
{
if (buffer[0] == 0xEF && buffer[1] == 0xBB)
{
return System.Text.Encoding.UTF8;
}
else if (buffer[0] == 0xFE && buffer[1] == 0xFF)
{
return System.Text.Encoding.BigEndianUnicode;
}
else if (buffer[0] == 0xFF && buffer[1] == 0xFE)
{
return System.Text.Encoding.Unicode;
}
else
{
return System.Text.Encoding.Default;
}
}
else
{
return System.Text.Encoding.Default;
}
}
createps 發表在 痞客邦 留言(0) 人氣(525)
private bool 是否為JPG檔案(string 檔案)
{
if (!File.Exists(檔案))
return false;
using (System.Drawing.Image img = System.Drawing.Image.FromFile(檔案))
{
if (img.RawFormat.Equals(System.Drawing.Imaging.ImageFormat.Jpeg))
return true;
}
return false;
}
createps 發表在 痞客邦 留言(0) 人氣(138)