Headless Selenium on Ubuntu 14.04 with PhantomJS 2.0

Headless Selenium on Ubuntu 14.04 with PhantomJS 2.0

N.B. This is STILL incomplete.

More work later 🙂

We’re following the excellent Headless Selenium Testing With Python and PhantomJS

Install Selenium

Let’s use pip to install Selenium

$ pip install selenium

Install PhantomJS

To make PhantomJS installation easy we will use the GitHub Repository, PhantomJS 2.0 built on Ubuntu 14.04 x64.

  1. Let’s login as root, cd to the root home.
    $ # However you login as root - I use WinSCP & Putty.
    $ cd ~
    
  2. According to the notes on the GitHub, to avoid the noticed dependency error, first let’s install “libicu52”.
    $ sudo apt-get install libicu52
    
  3. Now let’s just follow the original instructions on the GitHub Repository.
    $ # Since the file the GitHub Repository is 
    $ #    **actually** the phantomjs **executable**, 
    $ # And we want system wide access,
    $ cd /usr/bin
    
    # Now do our GitHub Repository wget into /usr/bin
    $ $ wget https://github.com/Pyppe/phantomjs2.0-ubuntu14.04x64/raw/master/bin/phantomjs
    
    # Now change the permissions
    $ chmod 0755 phantomjs
    
    $ # -rwxr-xr-x 1 root root 56596085 Aug 26 09:22 phantomjs
    

    That does it.

Love and peace,
Joe

Advertisements

Download an App from Google Play to a PC & Install it on a Tablet (Sideload)

Download an App from Google Play to a PC & Install it on a Tablet

Download App to PC

ref How to Download Android Apps from Play Store to PC?

  1. Find the App URL on google play store for your account
  2. Here’s the App URL for Cogi – Notes & Voice Recorder
    https://play.google.com/store/apps/details?id=com.cogi.mobile
  3. Copy the id == com.cogi.mobile
    From the App URL
    To https://apps.evozi.com/apk-downloader/
  4. Click on newly appeared button
    “Generate Download Link”
Result:
  Package Name: com.cogi.mobile [Play Store]
  File Size: 12.1 MB
  QR Code: View
  MD5 File Hash: ee75eba0fef749dba8796c2eb5cab309
  Last Fetched: 2015-08-03 21:31:36
  Version: 1.17.2 (94)
  1. Click on the newly appeared button
    “Click here to download =com.cogi.mobile now”
  2. Put the download into yourPC PATH_TO_Apps/Cogi/
  3. Verify the md5 hash
>cd yourPC PATH_TO_Apps/Cogi/
>rem use whatever md 5 checker you have
>md5chk.py com.cogi.mobile.apk ee75eba0fef749dba8796c2eb5cab309
      file length: 12736720
    file checksum: ee75eba0fef749dba8796c2eb5cab309
expected checksum: ee75eba0fef749dba8796c2eb5cab309
True

Install the Downloaded APK on the Tablet

refs:

  1. Connect USB cable from tablet to pc
  2. Copy [drag & drop] com.cogi.mobile.apk
    From: yourPC PATH_TO_Apps/Cogi/
    Into: yourPC PATH_TO_Tablet/Tablet/Download
    N.B.: Navigate to yourPC PATH_TO_Tablet/Tablet/Download in your PC File Browser
    when your Tablet is USB connected.
  3. Disconnect USB cable from tablet to pc
  4. On Tablet Go to Menu > Settings > [General] > Security > and check “Unknown Sources”
    4.1 the cnet link ALSO says
    Menu > Settings > [General] > Security > and check “Verify Apps”
    “Depending on your device, you can also choose to be warned before installing harmful apps. This can be enabled by selecting the Verify apps option in the Security settings.” N.B. For me this was ALREADY CHECKED
  5. On Tablet go to My Files > Download
    N.B. “Downloaded Apps” is a Category NOT A FOLDER
  6. Tap com.cogi.mobile.apk
    [I notice that this app gets A TON of permissions – should have checked earlier]
  7. Tap Install
    RESULTS:
    – Cogi appears in “Downloaded Apps” Category
    – Cogi appears in the Apps Tab of the Top Screen
  8. IMPORTANT Go back to Menu > Settings > [General] > Security > and UNCHECK “Unknown Sources”

THE END

Uninstalling the Bing Bar, Surreptitiously Installed with Skype 5.8

Uninstalling the Bing Bar, Installed with Skype 5.8

Background

I got a Windows error message generated by BSvcProcessor.exe. I didn’t install this and so i did some research.

Research Links

This link contained “BSvcProcessor.exe”; it hooked up “BSvcProcessor.exe” with Bing Service, [Tom’s Hardware microsoft-bing-service…] (http://www.tomshardware.com/answers/id-2735458/microsoft-bing-service-bingsvc-exe.html)

Persuit of “Bing Service” searches produced “What is the Microsoft Bing Bar” from support.skype.com. This link said:

The Bing Bar is installed automatically when you install Skype 5.8 for Windows desktop.

Uninstall

So I uninstalled it.

To uninstall the Bing Bar:

Click Start - Control Panel.
Windows XP: Add or Remove Programs.
Windows Vista and 7: Uninstall a program.
Select Bing and click Uninstall.