Tuesday, November 20, 2018

All Mighty Scripts



Resize Jpegs into 75% in PDF:

path C:\Program Files\gs\gs9.20\bin
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=small.pdf big.pdf
pause



------------------------

Resize Jpegs into 150% in PDF:

path C:\Program Files\gs\gs9.20\bin
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=small.pdf big.pdf
pause


------------------------
//Csharp is much better than python for web searching, data mining and big data

//-----------------------------------

//Only for Windows XP, 7, 8, 10

using System;
using System.Windows.Forms;
using System.Net;
using System.Diagnostics;
using System.Net.Mail;
using System.Text;
using System.Runtime.InteropServices;
using System.IO;




public class MyForm : Form
{
  private Button btnDugme = new Button();

  public MyForm()
  {
    this.Text = "Big data blender";
    btnDugme.Text = "Start";
    btnDugme.Width = 100;
    btnDugme.Height = 40;
    btnDugme.Top = 10;
    btnDugme.Left = 10;
    btnDugme.Click += new EventHandler(btnDugme_Click);
    this.Controls.Add(btnDugme);
}

  private void btnDugme_Click(object o, EventArgs e)
  {
 
MessageBox.Show("Ide Mile lajkovachkom prugom... gyere Ide Meeley like-o-wach-kom prugom...");

           try

            {

 using (WebClient client = new WebClient())
{


    string htmlCode = client.DownloadString("https://www.google.rs");
    //MessageBox.Show(htmlCode);

        for (int i = 0; i < 1; i++)
        {
     //btnDugme.Text = i.ToString()+" %";
             htmlCode = client.DownloadString("https://www.google.rs");
             //htmlCode = client.DownloadString("http://www.bing.com");
if (htmlCode.Length > 2000)
{
htmlCode = htmlCode.Substring(0,2000);
}
     Console.WriteLine(htmlCode);
     Console.WriteLine(i);


Console.Write(" % ");
        }
Console.WriteLine("Ide Mile...");


}

            }

            catch (Exception ex)

            {
string a = ex.ToString();
                MessageBox.Show(ex.ToString());
                MessageBox.Show("No internet - Nema interneta !");

Console.WriteLine("Niste na internetu, konektujte se pa kliknite na dugme ponovo.");
Console.WriteLine("You are not connected to internet, please connect to internet and continue digging.");


            }

  }

  private static void Main()
  {
    Application.Run(new MyForm());
  }
}



----------------------------

MORE TIPS:

https://dictation.io/speech



https://www.google.com/intl/es/chrome/demos/speech.html


-----------------------------

CHECK THIS OUT:

https://software.intel.com/en-us/html5/hub/highlights



**







No comments:

Post a Comment

Коментар: