Showing posts with label Tutorials. Show all posts
Showing posts with label Tutorials. Show all posts

Friday, September 25, 2015

How to fix full disk 100% Windows 8.1, Windows 10


1. Open notepad program and copy the code below then save with anything.bat.
regsvr32 comcat.dll /s
regsvr32 shdoc401.dll /s
regsvr32 shdoc401.dll /i /s
regsvr32 asctrls.ocx /s
regsvr32 oleaut32.dll /s
regsvr32 shdocvw.dll /I /s
regsvr32 shdocvw.dll /s
regsvr32 browseui.dll /s
regsvr32 browseui.dll /I /s
regsvr32 msrating.dll /s
regsvr32 mlang.dll /s
regsvr32 hlink.dll /s
regsvr32 mshtmled.dll /s
regsvr32 urlmon.dll /s
regsvr32 plugin.ocx /s
regsvr32 sendmail.dll /s
regsvr32 scrobj.dll /s
regsvr32 mmefxe.ocx /s
regsvr32 corpol.dll /s
regsvr32 jscript.dll /s
regsvr32 msxml.dll /s
regsvr32 imgutil.dll /s
regsvr32 thumbvw.dll /s
regsvr32 cryptext.dll /s
regsvr32 rsabase.dll /s
regsvr32 inseng.dll /s
regsvr32 iesetup.dll /i /s
regsvr32 cryptdlg.dll /s
regsvr32 actxprxy.dll /s
regsvr32 dispex.dll /s
regsvr32 occache.dll /s
regsvr32 occache.dll /i /s
regsvr32 iepeers.dll /s
regsvr32 urlmon.dll /i /s
regsvr32 cdfview.dll /s
regsvr32 webcheck.dll /s
regsvr32 mobsync.dll /s
regsvr32 pngfilt.dll /s
regsvr32 licmgr10.dll /s
regsvr32 icmfilter.dll /s
regsvr32 hhctrl.ocx /s
regsvr32 inetcfg.dll /s
regsvr32 tdc.ocx /s
regsvr32 MSR2C.DLL /s
regsvr32 msident.dll /s
regsvr32 msieftp.dll /s
regsvr32 xmsconf.ocx /s
regsvr32 ils.dll /s
regsvr32 msoeacct.dll /s
regsvr32 inetcomm.dll /s
regsvr32 msdxm.ocx /s
regsvr32 dxmasf.dll /s
regsvr32 l3codecx.ax /s
regsvr32 acelpdec.ax /s
regsvr32 mpg4ds32.ax /s
regsvr32 voxmsdec.ax /s
regsvr32 danim.dll /s
regsvr32 Daxctle.ocx /s
regsvr32 lmrt.dll /s
regsvr32 datime.dll /s
regsvr32 dxtrans.dll /s
regsvr32 dxtmsft.dll /s
regsvr32 WEBPOST.DLL /s
regsvr32 WPWIZDLL.DLL /s
regsvr32 POSTWPP.DLL /s
regsvr32 CRSWPP.DLL /s
regsvr32 FTPWPP.DLL /s
regsvr32 FPWPP.DLL /s
regsvr32 WUAPI.DLL /s
regsvr32 WUAUENG.DLL /s
regsvr32 ATL.DLL /s
regsvr32 WUCLTUI.DLL /s
regsvr32 WUPS.DLL /s
regsvr32 WUWEB.DLL /s
regsvr32 wshom.ocx /s
regsvr32 wshext.dll /s
regsvr32 vbscript.dll /s
regsvr32 scrrun.dll mstinit.exe /setup /s
regsvr32 msnsspc.dll /SspcCreateSspiReg /s
regsvr32 msapsspc.dll /SspcCreateSspiReg /s
regsvr32 /s urlmon.dll
regsvr32 /s mshtml.dll
regsvr32 /s shdocvw.dll
regsvr32 /s browseui.dll
regsvr32 /s jscript.dll
regsvr32 /s vbscript.dll
regsvr32 /s scrrun.dll
regsvr32 /s msxml.dll
regsvr32 /s actxprxy.dll
regsvr32 /s softpub.dll
regsvr32 /s wintrust.dll
regsvr32 /s dssenh.dll
regsvr32 /s rsaenh.dll
regsvr32 /s gpkcsp.dll
regsvr32 /s sccbase.dll
regsvr32 /s slbcsp.dll
regsvr32 /s cryptdlg.dll
regsvr32 /s schannel.dll
regsvr32 /s oleaut32.dll
regsvr32 /s ole32.dll
regsvr32 /s shell32.dll
regsvr32 /s initpki.dll
regsvr32 /s msscript.ocx
regsvr32 /s dispex.dll
regsvr32 jscript.dll /s
del %temp% /Q /F
net stop wuauserv
ren %windir%\system32\catroot2 catroot2.old
cd /d %windir%\SoftwareDistribution
rd /s DataStore /Q
regsvr32 wuapi.dll /s
regsvr32 wups.dll /s
regsvr32 wuaueng.dll /s
regsvr32 wucltui.dll /s
regsvr32 wuweb.dll /s
regsvr32 msxml.dll /s
regsvr32 msxml2.dll /s
regsvr32 msxml3.dll /s
regsvr32 urlmon.dll /s
net start wuauserv
exit

------------------------
Runing file with admin control.
2. Disable Disk Diagnostics Configure execution level: 
Open Run Dialog - then type gpedit.msc and follow the path below: 
Computer Configuration / Adminnistrative Templates / System / Troubleshooting and Diagnostics / Disk Diagnostics

3.Some times, the RAM may be, at 100% usage, but for that Virtual Memory is not the issue, but can be at some times. However for such issues too, identify the key issue .

Go to system properties of your computer.
Click on the Advanced System Settings - Left Hand-side. And go to Advanced Tab in the Properties Dialog Box. Then click Settings Button on Performance Options.



Now, Click on Advanced Tab and Proceed to Virtual Memory Options menu
Click on change button. And set the RAM amount there, Minimum and Maximum = ? as you wish.


3. Disable 2 service Superfetch and Window Search :



So, that’s it! Set it up! and Reboot the System to see the changes.

Friday, August 21, 2015

Hướng dẫn bỏ chức năng theo dõi và gởi báo cáo từ window 10

Microsoft công bố trên trang web của mình như sau: “Khi bạn sử dụng phần mềm hoặc dịch vụ nào, chúng tôi sẽ lưu lại thông tin về thiết bị và ứng dụng đó để cải thiện tính tương thích của các sản phẩm khác nhau, ví dụ thiết bị nào nên chạy phần mềm nào. Khi bạn mở bất kỳ file nào, chúng tôi sẽ lưu lại thông tin về file được mở cũng như thời gian bạn sử dụng nó. Khi bạn gõ, bình luận, chúng tôi cũng thu thập nội dung để phục vụ cho dịch vụ tự hoàn tất câu chữ và dịch vụ sửa lỗi chính tả”.

Mình sẽ hướng dẫn các bạn các tắt tính năng theo dõi và dành lại quyền kiểm soát máy tính.
Các bạn vào Setting - >Chọn Private - >


- Bạn chọn các mục Gerneral , Location, typing ... Bạn cần disable tất cả các tính năng này.
- Quan trọng là phần Feedback and Diagnostics - > Chọn Nerver




Chúc các bạn thành công.

Thursday, April 23, 2015

[ASP.NET] Export to Word, PDF, Excel File

Bạn muốn lập trình cho phép Export dữ liệu từ Datatable, Gridview ra Excel, Word hay PDF? Trong bài viết này mình giới thiệu và sử dụng thư viện itextsharp.dll.
Library và Example : 
https://drive.google.com/folderview?id=0BxebKjwCwomqaDhTTlZacmtwbGc&usp=sharing 

Code example: 
/// 
/// Export GridView to Word
/// 
private void ExporttoWord(GridView Gridviewname)
{
    Response.Clear();
    Response.Buffer = true;
    Response.AddHeader("content-disposition", "attachment;filename=WordExport.doc");
    Response.Charset = "";
    Response.ContentType = "application/vnd.ms-word ";
    StringWriter sw = new StringWriter();
    HtmlTextWriter hw = new HtmlTextWriter(sw);
    // Paging Allow
    Gridviewname.AllowPaging = false;
    Gridviewname.DataBind();
    Gridviewname.RenderControl(hw);
    Response.Output.Write(sw.ToString());
    Response.Flush();
    Response.End();
}



/// 
/// Export GridView to PDF
/// 
private void ExporttoPDF(GridView Gridviewname)
{
    Response.ContentType = "application/pdf";
    Response.AddHeader("content-disposition", "attachment;filename=PDFExport.pdf");
    Response.Cache.SetCacheability(HttpCacheability.NoCache);
    StringWriter sw = new StringWriter();
    HtmlTextWriter hw = new HtmlTextWriter(sw);
    Gridviewname.AllowPaging = false;
    Gridviewname.DataBind();
    Gridviewname.RenderControl(hw);
    StringReader sr = new StringReader(sw.ToString());
    Document pdfDoc = new Document(PageSize.A4, 10f, 10f, 10f, 0f);
    HTMLWorker htmlparser = new HTMLWorker(pdfDoc);
    PdfWriter.GetInstance(pdfDoc, Response.OutputStream);
    pdfDoc.Open();
    htmlparser.Parse(sr);
    pdfDoc.Close();
    Response.Write(pdfDoc);
    Response.End();  
}


/// 
/// Export GridView to Excel
/// 
private void ExporttoExcel(GridView Gridviewname)
{
    Response.Clear();
    Response.Buffer = true;
    Response.AddHeader("content-disposition",
     "attachment;filename=ExcelExport.xls");
    Response.Charset = "";
    Response.ContentType = "application/vnd.ms-excel";
    StringWriter sw = new StringWriter();
    HtmlTextWriter hw = new HtmlTextWriter(sw);
    // Paging Allow
    Gridviewname.AllowPaging = false;
    Gridviewname.DataBind();
    Gridviewname.RenderControl(hw);
    // Format
    string style = @"";
    Response.Write(style);
    Response.Output.Write(sw.ToString());
    Response.Flush();
    Response.End();
}

Monday, July 7, 2014

Tạo matrix - ma trận bằng command

Ma trận command

Mở Notepad - > copy code bên dưới:

@echo off
cls
:a
color 1
echo %random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%%random%
goto a
Save với  tên bất kì <filename>.bat - Sau đó Run và hưởng thành quả nhé ...
Bạn có thể tùy ý chỉnh sửa theo ý mình ah ,...

Bài đăng phổ biến