摘要:
// Removes special characters from a stringpublic string RemoveSpecialChars(string input, string specialChars){ return Regex.Replace(input, special...
阅读全文
posted @ 2013-06-06 12:01
chuwachen
阅读(153)
推荐(0)
摘要:
private byte[] salt = ASCIIEncoding.ASCII.GetBytes("SaltString"); private const int DESKeySize = 8; // The key for DES must be 8 bytes. /// //...
阅读全文
posted @ 2013-06-06 11:50
chuwachen
阅读(252)
推荐(0)
摘要:
When browser shows "$is not defined", it probably means that jquery lib is not loaded, you need find out the reason.
阅读全文
posted @ 2013-06-04 13:14
chuwachen
阅读(84)
推荐(0)
摘要:
JMeteris open source software, a 100% pure Java application designed to load test functional behavior and measure performance. It was originally desig...
阅读全文
posted @ 2013-06-03 17:17
chuwachen
阅读(243)
推荐(0)
摘要:
Uncheck "Use Autolayout" in File inspector, then you can see "Autosizing" in Size inspector to define margin for UI controls.In Build Settings, "Produ...
阅读全文
posted @ 2013-06-01 21:35
chuwachen
阅读(99)
推荐(0)
摘要:
How to set an image as background for a view?Solution:Using UIImageView and resize the image to fit that view (prefer)Set image as background of a UIV...
阅读全文
posted @ 2013-06-01 21:27
chuwachen
阅读(111)
推荐(0)
摘要:
TCP based Socket (also can use AsynSocket lib) NSInputStream*inputStream; NSOutputStream*outputStream; - (void)connect{ CFReadStreamRef readStream;...
阅读全文
posted @ 2013-06-01 21:12
chuwachen
阅读(199)
推荐(0)
摘要:
How to fix the following error "bool _WebTryThreadLock(bool), 0xxxxxx: Tried to obtain the web lock from a thread other than the main thread or the we...
阅读全文
posted @ 2013-03-25 18:05
chuwachen
阅读(143)
推荐(0)
摘要:
TheCommandwindow is used to execute commands or aliases directly in the Visual Studio. You can execute both menu commands and commands that do not app...
阅读全文
posted @ 2013-03-25 17:27
chuwachen
阅读(117)
推荐(0)
摘要:
private static string GetOwnPublicIP() { try { var html = new WebClient().DownloadString( "http://checkip.dyndns...
阅读全文
posted @ 2013-03-25 16:58
chuwachen
阅读(236)
推荐(0)