Run Android Studio Apps on a Hardware Device

Ubuntu Linux: Use apt-get install to install the android-tools-adb package. This gives you a community-maintained default set of udev rules for all Android devices.

Make sure that you are in the plugdev group. If you see the following error message, adb did not find you in the plugdev group:

error: insufficient permissions for device: udev requires plugdev group membership

Use id to see what groups you are in. Use sudo usermod -aG plugdev $LOGNAME to add yourself to the plugdev group.

source:

https://developer.android.com/studio/run/device

 ….. (atau cara di bawah)

Continue reading Run Android Studio Apps on a Hardware Device

Advertisements

Instalasi Eclipse Kepler Tidak Terkoneksi ke Internet via Proxy

Ketika sedang melalui tahapan instalasi eclipse di linux mint menurut video berikut :

ternyata ada warning:

Continue reading Instalasi Eclipse Kepler Tidak Terkoneksi ke Internet via Proxy

Launcher Wine Application in Linux Mint

Berikut cara agar aplikasi Wine di launcher (start menu) langsung running dengan sekali klik, tanpa perlu membuka explore folder aplikasi lalu klik 2x icon aplikasinya:

1. Buka launcher – pilih aplikasinya – klik kanan – edit properties

WhatsApp Image 2018-09-13 at 10.32.17

Continue reading Launcher Wine Application in Linux Mint

Download File Attach Gmail dengan Thunderbird

Alhamdulillah, dulu pernah berhasil install dengan addons chrome:

Download Gmail Attachments & Emails to Google Drive

https://penakomputer.wordpress.com/2016/08/29/sync-google-drive-di-linux-mint/

tapi entah kenapa sekarang ada beberapa email attach yang tidak bisa didownload,

Continue reading Download File Attach Gmail dengan Thunderbird

Belajar Selenium Python-Java Eclipse di Ubuntu

Selenium itu bisa untuk AutoFill Form Web

Caranya:

1. Copy dan rename: selenium.sh

#!/bin/bash# Following the guide found at this page # http://programmingarehard.com/2014/03/17/behat-and-selenium-in-vagrant.html

echo "\r\nUpdating system ...\r\n" 
sudo apt-get update

# Create folder to place selenium in 
# echo "\r\nCreating folder to place selenium in ...\r\n" 
sudo mkdir ~/selenium cd ~/selenium

# Get Selenium and install headless Java runtime # 
echo "\r\nInstalling Selenium and headless Java runtime ...\r\n" 
sudo wget http://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.1.jar 
sudo apt-get install openjdk-7-jre-headless -y 

# Install Firefox # 
echo "\r\nInstalling Firefox ...\r\n" sudo apt-get install firefox -y 

# Install headless GUI for firefox. 'Xvfb is a display server that performs graphical operations in memory' # 
echo "\r\nInstalling XVFB (headless GUI for Firefox) ...\r\n" 
sudo apt-get install xvfb -y 

# Finally, starting up Selenium server #
echo "\r\nStarting up Selenium server ...\r\n"DISPLAY=:1 xvfb-run java -jar ~/selenium/selenium-server-standalone-2.53.1.jar

source: https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c

2. di terminal ketikkan:

chmod +x selenium.sh

./selenium.sh

3. lihat prosessnya sampai keluar Selenium server running

4. untuk start stop server selenium

java -jar ~/selenium/selenium-server-standalone-3.0.1.jar
http://localhost:4444/selenium-server/driver?cmd=getLogMessages
http://localhost:4444/wd/hub/status
http://localhost:4444/selenium-server/driver?cmd=shutDownSeleniumServer

5. untuk testing di chrome, utk firefox belum tahu caranya

sudo apt-get install chromium-chromedriver

ketik di editor dan beri nama misal python_test.py

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome("/usr/lib/chromium-browser/chromedriver")

#driver = webdriver.Firefox()
driver.get("http://www.python.org")
assert "Python" in driver.title
elem = driver.find_element_by_name("q")
elem.clear()
elem.send_keys("pycon")
elem.send_keys(Keys.RETURN)
assert "No results found." not in driver.page_source
driver.close()

silahkan tes di terminal

python python_test.py

6. Hasil pengujian:

selenium-server-standalone-2.53.1.jar SUPPORT => downgrade ke mozilla 45.0.2

link download mozilla deb: https://sourceforge.net/projects/ubuntuzilla/files/mozilla/apt/pool/main/f/firefox-mozilla-build/

selenium-server-standalone-3.0.1.jar TIDAK SUPPORT MINT 17

 

source:

http://selenium-python.readthedocs.io
Configure Eclipse with Selenium WebDriver

Autokey – Keyboard Shortcuts

Layout keyboard laptop Anda dirasa kurang nyaman?

Seperti tombol Home-End yg bertumpuk dengan panah kiri/kanan, page up/page down, sehingga harus tekan ‘fn’ tiap kali butuh? Padahal gimana klo butuhnya sering, seperti untuk ngetik / coding dll ?

Solusinya: install Autokey

Lalu setting semisal seperti contoh:

screenshot

Screenshot-1.png

Jika ingin autorun: buka menu Startup Applications, lalu setting semisal :

screenshot-2

Selamat berkreasi.. ^^