Saturday, 13 May 2017

Calibre - convert books to support kindle


1) Install calibre

https://calibre-ebook.com/download_osx

2) download drm removal tools from github

https://github.com/apprenticeharper/DeDRM_tools/releases

extract drm zip


3)After installing calibre


preferences > change calibre behavior > advanced > plugins >load plugin from file


4) after installing plugin restart calibre


5) click on file type plugins from the installed plugins


6) double click on DeDRM plugin


7) it opens DeDRM customise window


8) select  elink kindle ebooks


9) paste your kindle serial number


G090 G105 5346 0URR

























Thursday, 11 May 2017

Installing Python in windows


https://www.python.org/downloads/


=> install python

=> set the path in enviroment variables as
   C:\Users\mobigesture\AppData\Local\Programs\Python\Python36\Scripts\
  C:\Users\mobigesture\AppData\Local\Programs\Python\Python36\



=> to exit from interpretor

    exit()
     ctrl+z   Enter





=========================================================

Saturday, 6 May 2017

Top 5 JavaScript Frameworks 2017

This is MY top 5 front end JavaScript Frameworks of 2017. This list took many things into factor such as ease of use, popularity, features, syntax, performance and more

#5 - Polymer
#4 - Ember
#3 - Angular 2+
#2 - React
#1 - Vue.js


https://www.youtube.com/watch?v=_vL8s5ayuFk#t=808.761694

Wednesday, 3 May 2017

Java -point to remember


Interface method header overriding caution

When you implement an interface method (by overriding the interface's method header), remember that all of the methods whose headers are declared in the interface are implicitly declared public. If you forget to include public in the implemented method's declaration, the compiler will report an error informing you that you're attempting to assign weaker access to the implemented method.
========================================================




Friday, 21 April 2017

Selenium with Java Automation



package com.hello;

import java.util.Iterator;
import java.util.Set;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class GmailLogin {

        public static void main(String[] args) throws InterruptedException {
                // TODO Auto-generated method stub
System.setProperty("webdriver.gecko.driver", "C://Users/rahul/Downloads/geckodriver-v0.15.0-win64/geckodriver.exe");
                WebDriver driver =new FirefoxDriver();
                driver.get("https://accounts.google.com/ServiceLogin#identifier");
                driver.findElement(By.id("Email")).sendKeys("mittapalli.rahul@gmail.com");
                driver.findElement(By.id("next")).click();
                Thread.sleep(3000);
                driver.findElement(By.id("Passwd")).sendKeys("password");
                driver.findElement(By.xpath(".//*[@id='signIn']")).click();
                Thread.sleep(5000);
                driver.findElement(By.xpath("//*[@class='WaidBe']")).click();
                Thread.sleep(10000);
                driver.findElement(By.xpath("//*[@class='T-I J-J5-Ji T-I-KE L3']")).click();
                Thread.sleep(10000);
                driver.findElement(By.xpath(".//*[@name='to']")).click();
                driver.findElement(By.xpath(".//*[@name='to']")).sendKeys("srienievas@gmail.com");
                driver.findElement(By.xpath("//*[@name='subjectbox']")).sendKeys("testing script");
                driver.findElement(By.xpath("//*[@class='Am Al editable LW-avf']")).sendKeys("Hello World");
                Thread.sleep(10000);
                driver.findElement(By.xpath("//*[@class='T-I J-J5-Ji aoO T-I-atl L3']")).click();


        }

}

==============================================================================

Python - running http server


Open cmd -> ctrl+R
=====================================================

$ python -m http.server
Serving HTTP on 0.0.0.0 port 8000 ...


========================================================

 $ python -m http.server 9999


-> accessing on browser   ==>  localhost:9999

=============================================================

Wednesday, 19 April 2017

Stream writer in ASP.net



directory= HttpContext.Current.Server.MapPath(".")+"\\";

   String fileName = "sri.txt";

   StreamWriter sw =new StreamWriter(directory+"/"+ fileName,true);

   sw.WriteLine("hello World");


  sw.Flush();

  sw.Close();