Friday, September 6, 2013

Copy and paste this code into proxy.ashx.cs. using System; using System.IO; using System.Net; using System.Web; namespace WebApplication1 { public class proxy : IHttpHandler { public void ProcessRequest(HttpContext context) { HttpResponse response = context.Response; // Check for query string string uri = Uri.UnescapeDataString(context.Request.QueryString.ToString()); if (string.IsNullOrWhiteSpace(uri)) { response.StatusCode = 403; response.End(); return; } // Filter requests if (!uri.ToLowerInvariant().Contains("wikimedia.org")) { response.StatusCode = 403; response.End(); return; } // Create web request WebRequest webRequest = WebRequest.Create(new Uri(uri)); webRequest.Method = context.Request.HttpMethod; // Send the request to the server WebResponse serverResponse = null; try { serverResponse = webRequest.GetResponse(); } catch (WebException webExc) { response.StatusCode = 500; response.StatusDescription = webExc.Status.ToString(); response.Write(webExc.Response); response.End(); return; } // Exit if invalid response if (serverResponse == null) { response.End(); return; } // Configure reponse response.ContentType = serverResponse.ContentType; Stream stream = serverResponse.GetResponseStream(); byte[] buffer = new byte[32768]; int read = 0; int chunk; while ((chunk = stream.Read(buffer, read, buffer.Length - read)) > 0) { read += chunk; if (read != buffer.Length) { continue; } int nextByte = stream.ReadByte(); if (nextByte == -1) { break; } // Resize the buffer byte[] newBuffer = new byte[buffer.Length * 2]; Array.Copy(buffer, newBuffer, buffer.Length); newBuffer[read] = (byte)nextByte; buffer = newBuffer; read++; } // Buffer is now too big. Shrink it. byte[] ret = new byte[read]; Array.Copy(buffer, ret, read); response.OutputStream.Write(ret, 0, ret.Length); serverResponse.Close(); stream.Close(); response.End(); } public bool IsReusable { get { return false; } } } } Without closing the web browser, append the name of the proxy service and the web resource (highlighted below) that you need access to. For example: http://localhost:51220/proxy.ashx?http://upload.wikimedia.org/wikipedia/en/f/f0/New-esri-logo.jpg

Wednesday, September 4, 2013

Cách làm như sau: Cách 1: chuột phải vào biểu tượng Computer chọn properties hoặc gõ lện chuột trái Computer và gõ lệnh Control PanelAll Control Panel ItemsSystem một của sổ hiện ra ở dòng cuối cùng có chữ change product key màu xanh hiện ra bạn clik chuột vào đó cửa sổ mới mở ra sẽ có chỗ nhập key mới bạn nhập key và chọn next chờ một lúc để active key mơi thế là xong nhớ là máy tính phải nối mạng! Cách 2: Vì không biết win7 của bro active kiểu gì nên không đưa ra được phương án chính xác. Bạn thử thay đổi Key bằng command line xem. Vào Start gõ cmd rồi chuột phải lên cmd chọn Run as Administrator Gõ lệnh : slmgr.vbs -ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX rồi enter Trong đó XXXXX-XXXXX-XXXXX-XXXXX-XXXXX là key của bạn. Để Actived Windows sau khi thay đổi Key gõ tiếp: slmgr.vbs -ato Enter Nếu nó successfully thì OK Cách 3: 1.Slmgr.vbs –ipk (cài đặt, xác nhận và thay đổi K.@.y) VD: slmgr.vbs -ipk 22TKD-F8XX6-YG69F-9M66D-PMJBM 2.Slmgr.vbs -upk (gở bỏ K.@.y đã cài đặt) 3.Slmgr.vbs -ato (kiểm tra sự hoạt động của windows) 4.Slmgr.vbs -dli (hiện thông tin license – chứng nhận) 5.Slmgr.vbs -dlv (hiện full thông tin license) 6.Slmgr.vbs -xpr (hiện ngày hết hạn Expiration) 7.Slmgr.vbs -cpky (làm sạch các product K.@.y trong regedit) 8.Slmgr.vbs -ilc (xác nhận, cài đặt file license) VD: slmgr.vbs -ilc HPQOEMSLIC-MPC.XRM-MS 9.Slmgr.vbs -rilc (gỡ bỏ cài đặt file license) run và gỏ những lệnh cần chạy những lệnh này sẽ giúp bạn kích hoạt key mới . Nếu chắc cú key bạn có là key xịn HERE ARE THE CODES Windows® 7 Ultimate Product Key: FJGCP-4DFJD-GJY49-VJBQ7-HYRR2 342DG-6YJR8-X92GV-V7DCV-P4K27 Windows® 7 Professional Product Key: YKHFT-KW986-GK4PY-FDWYH-7TP9F VTDC3-WM7HP-XMPMX-K4YQ2-WYGJ8 32KD2-K9CTF-M3DJT-4J3WC-733WD 6RQ9V-6GCG4-8WV2H-966GF-DQ4DW Windows® 7 Home Premium Product Key: 7JQWQ-K6KWQ-BJD6C-K3YVH-DVQJG RHPQ2-RMFJH-74XYM-BH4JX-XM76F 2QDBX-9T8HR-2QWT6-HCQ XJ-9YQTR 6RBBT-F8VPQ-QCPVQ-KHR B8-RMV82 C6MHH-TRRPT-74TDC- FHRMV-XB88W 27GBM-Y4QQC-JKHXW-D 9W83-FJQKD 38GRR-KMG3D-BTP99-TC9G4 -BBDJJ CQBVJ-9J697-PWB9R- 4K7W4-2BT4J HWDFB-YVFG4-3TJ7F- Q3WMT-7B6PH Home Basic = MD83G-H98CG-DXPYQ-Q8GCR-HM8X2 Server Home Standard = MCQYD-2TJYQ-JP7KR-7GYYF-YGPXQ Professional = 3YHKG-DVQ27-RYRBX-JMPVM-WG38T Home Premium = RHPQ2-RMFJH-74XYM-BH4JX-XM76F Enterprise = H7X92-3VPBB-Q799D-Y6JJ3-86WC6 Ultimate = D4F6K-QK3RD-TMVMJ-BBMRX-3MBMV

see more here http://dotnetcluster.blogspot.com/2011/06/auto-refresh-div-using-ajax.html