Thứ Tư, 24 tháng 4, 2019

Cách Đăng Ký Adsense /Cách xác minh tài khoản GA

Copy from Facebook 
Vinh Hoang Duc

Chia Sẻ Kiến Thức về Google Adsense:
- Xin chào các bác. Nói trc mình ko phải Chuyên Gia hướng dẫn. Mà đơn giản là mình tự Seo, tự chơi Adsense. Hầu hết đều là Tự Làm nên không thể tránh khỏi những Sai Lầm đáng tiếc.
- Vì vậy những Sai Lầm của mình sẽ là Bài Học cho Newbie, tránh mất tiền Ngu  Đây là những kinh nghiệm 100% Thực Tế chứ không phải Lý Thuyết trong sách vở nhé. Hy vọng có ích với các bác 
*** 1, Cách Đăng Ký Adsense ***
- Như các bác đã biết, Con Gà của mình mới lăn ra chết trong thời gian vừa qua. Vì vậy mình có lấy vài con PBN để đem đi đăng ký (PBN khoảng 400-500 index, nội dung như *** vì ngày trc mình có mở bán VIP PBN nên bị ae Spam) ==> Lý do Google đưa ra là:
1) Nội dung cóp nhặt
2) Nội dung ko mang lại giá trị
- Sau đó mình lấy 1 con PBN khác (Chỉ có vài chục bài viết, do mình tự viết, ko Copy, 1 ngày chỉ khoảng 20-30 view thôi) ==> Kết Quả: Được Duyệt ngay lập tức.
===> Bài học cho các bác: Để đăng ký thành công Adsense: Chúng ta ko cần nhiều index, nhiều traffic. Chỉ cần nội dung Gốc, Ko Copy, Ko Spin các kiểu. Mang lại giá trị cho người dùng là đủ.
- Ngoài ra: web cần có những trang quan trọng như: Giới Thiệu, Điều Khoản, Liên Hệ. Giao diện dễ nhìn, điều hướng Menu hợp lý...
*** 2, Cách xác minh tài khoản GA ***
- UPDATE mới nhất 2019: Ở thời điểm hiện tại, sau khi đăng ký thành công GA và đạt ngưỡng 10$ chúng ta phải xác minh Danh Tính bằng CMND/Thẻ Căn Cước -> Rồi mới đến bước xác minh địa chỉ (PIN) - Lằng nhằng vkl.
- Nếu xác minh mà Tạch 3 lần thì coi như chết GÀ. và Đen như Chó. Mình gửi ảnh xác minh bị Từ Chối luôn. Lý do là:
1) Ảnh quá mờ
2) Ảnh quá nhỏ.
==> Bài học cho các bác khi chụp ảnh CMND/ Thẻ Căn Cước để xác minh danh tính như sau:
- Chụp ảnh gần gần chút sao cho to, rõ ràng, nhưng đặc biệt lưu ý: PHẢI CHỤP ẢNH NHÌN RÕ CẢ VIỀN nhé.
- Ko bật Flash, ảnh ko bị nhòe, bị mờ,... Tốt nhất là chụp vào ban ngày, nắng to, ko dùng app hỗ trợ. Nhớ là phải bật HD hoặc Full HD.
- Giữ nguyên dung lượng gốc, đừng nén, đừng chỉnh sửa, thay đổi, thêm bớt cái j.
- Vấn đề Địa Chỉ trong CMND có cần TRÙNG với Địa Chỉ nhận PIN đang là thắc mắc chưa đc giải đáp. (Khi nào mình xác minh thành công thì mới biết đc)
- Các bác lưu ý để có thể tự xác minh. Nếu đi thuê thì mất vài trăm K đấy. Sau khi xác minh danh tính xong qua bước nhận PIN thì đi thuê cũng đc. Vì nó rẻ. Khoảng 100k thôi.
*** 3, Cách kiếm tiền với Adsense ***
- Traffic thực, nội dung tốt. Nhiều view thì sẽ nhiều tiền. Nên tuân thủ theo chính sách của Google và tham khảo các đề xuất, hướng dẫn tăng doanh thu của nó.
- Mọi hành vi vi phạm, gian lận có thể giúp bạn kiếm đc Nhiều Tiền hơn bt. Nhưng bạn có thể Chết bất cứ lúc nào. Kể cả bạn chơi đúng Luật bạn cũng có thể Chết. Vì vậy lựa chọn chơi theo cách nào là ở bạn 

Chủ Nhật, 7 tháng 4, 2019

convert ppt,pptx, doc, docx to pdf with microsoft office programmatically (c#)

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using Microsoft.Office.Interop.PowerPoint;
using Microsoft.Office.Interop.Word;
using Microsoft.Office.Core;
namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            //convertDoc();
            convertPpt();


        }
        static void convertDoc()
        {
            // Create a new Microsoft Word application object
            Microsoft.Office.Interop.Word.Application word = new Microsoft.Office.Interop.Word.Application();

            // C# doesn't have optional arguments so we'll need a dummy value
            object oMissing = System.Reflection.Missing.Value;

            // Get list of Word files in specified directory
            DirectoryInfo dirInfo = new DirectoryInfo(@"E:\copy");
            string fileType = "doc";
            FileInfo[] wordFiles = dirInfo.GetFiles("*." + fileType, SearchOption.AllDirectories);

            word.Visible = false;
            word.ScreenUpdating = false;
            System.Console.WriteLine("total " + wordFiles.Length);
            int count = 0;
            StringBuilder strBuilder = new StringBuilder();
            foreach (FileInfo wordFile in wordFiles)
            {
                try
                {
                    // Cast as Object for word Open method
                    Object filename = (Object)wordFile.FullName;
                    strBuilder.Append("start " + count + "/" + wordFiles.Length + " " + wordFile.FullName + Environment.NewLine);
                    System.Console.WriteLine("start " + count + "/" + wordFiles.Length + " " + wordFile.FullName);
                    // Use the dummy value as a placeholder for optional arguments
                    Document doc = word.Documents.Open(ref filename, ref oMissing,
                        ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
                        ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
                        ref oMissing, ref oMissing, ref oMissing, ref oMissing);
                    //doc.Activate();

                    object outputFileName = wordFile.FullName.Replace("." + fileType, ".pdf");
                    object fileFormat = WdSaveFormat.wdFormatPDF;

                    // Save document into PDF Format
                    doc.SaveAs(ref outputFileName,
                        ref fileFormat, ref oMissing, ref oMissing,
                        ref oMissing, ref oMissing, ref oMissing, ref oMissing,
                        ref oMissing, ref oMissing, ref oMissing, ref oMissing,
                        ref oMissing, ref oMissing, ref oMissing, ref oMissing);
                    strBuilder.Append("end " + count + "/" + wordFiles.Length + " " + wordFile.FullName + Environment.NewLine);
                    System.Console.WriteLine("end " + count + "/" + wordFiles.Length + " " + wordFile.FullName);
                    count++;
                    // Close the Word document, but leave the Word application open.
                    // doc has to be cast to type _Document so that it will find the
                    // correct Close method.             
                    object saveChanges = WdSaveOptions.wdDoNotSaveChanges;
                    ((_Document)doc).Close(ref saveChanges, ref oMissing, ref oMissing);
                    doc = null;
                }
                catch (Exception ex)
                {
                    strBuilder.Append(wordFile.FullName + " " + ex.Message);
                    System.Console.WriteLine(wordFile.FullName + " " + ex.Message);
                }
                // word has to be cast to type _Application so that it will find
                // the correct Quit method.
             
            }
            ((Microsoft.Office.Interop.Word.Application)word).Quit(ref oMissing, ref oMissing, ref oMissing);
            word = null;
            File.WriteAllText(@"E:\convert-" + fileType + ".txt", strBuilder.ToString());
            System.Console.WriteLine("finish");
            System.Console.ReadLine();
        }
        static void convertPpt()
        {
            // Create a new Microsoft Word application object
            Microsoft.Office.Interop.PowerPoint.Application word = new Microsoft.Office.Interop.PowerPoint.Application();

            // C# doesn't have optional arguments so we'll need a dummy value
            object oMissing = System.Reflection.Missing.Value;

            // Get list of Word files in specified directory
            DirectoryInfo dirInfo = new DirectoryInfo(@"E:\copy");
            dirInfo = new DirectoryInfo(@"E:\copy\hệ điều hành_đỗ văn uy_dhbkhn\lecture");
            string fileType = "pptx";
            FileInfo[] wordFiles = dirInfo.GetFiles("*." + fileType, SearchOption.AllDirectories);
            System.Console.WriteLine("total " + wordFiles.Length);
            int count = 0;
            //word.Visible = false;
            //word.ScreenUpdating = false;
            StringBuilder strBuilder = new StringBuilder();
            foreach (FileInfo wordFile in wordFiles)
            {
                Presentation doc = null;
                try
                {
                    // Cast as Object for word Open method
                    Object filename = (Object)wordFile.FullName;

                    strBuilder.Append("start " + count + "/" + wordFiles.Length + " " + wordFile.FullName + Environment.NewLine);
                    System.Console.WriteLine("start " + count + "/" + wordFiles.Length + " " + wordFile.FullName);
                    doc = word.Presentations.Open(wordFile.FullName, MsoTriState.msoFalse, MsoTriState.msoFalse, MsoTriState.msoFalse);
                    //word.Activate();

                    string outputFileName = wordFile.FullName.Replace("." + fileType, ".pdf");
                    object fileFormat = WdSaveFormat.wdFormatPDF;
                    Microsoft.Office.Interop.PowerPoint.PpSaveAsFileType targetFileType = Microsoft.Office.Interop.PowerPoint.PpSaveAsFileType.ppSaveAsPDF;

                    // Save document into PDF Format
                    doc.SaveCopyAs(outputFileName, targetFileType, MsoTriState.msoCTrue);

                    strBuilder.Append("end " + count + "/" + wordFiles.Length + " " + wordFile.FullName + Environment.NewLine);
                    System.Console.WriteLine("end " + count + "/" + wordFiles.Length + " " + wordFile.FullName);
                    count++;
                    object saveChanges = WdSaveOptions.wdDoNotSaveChanges;
                    //doc.Close();
                    //((_Document)word).Close(ref saveChanges, ref oMissing, ref oMissing);
                }
                catch (Exception ex)
                {

                    strBuilder.Append(wordFile.FullName + " " + ex.Message);
                    System.Console.WriteLine(wordFile.FullName + " " + ex.Message);
                }
                finally
                {
                    if (doc != null)
                    {
                        doc.Close();
                        doc = null;
                    }
                }
            }
            File.WriteAllText(@"E:\convert-" + fileType + ".txt", strBuilder.ToString());
            // word has to be cast to type _Application so that it will find
            // the correct Quit method.
            ((Microsoft.Office.Interop.PowerPoint.Application)word).Quit();
            word = null;
            System.Console.WriteLine("finish");
            System.Console.ReadLine();

        }
    }

}

//add reference