4/15/2020

Best Android Apps


  1. AMdroid: a clock app to remind calendar events and add quite clock reminders
    1. The calendar sync keywords (Case sensitive): Alarm;;test;;sync;;Sync;;Liang;;Weekly;;interview;;DeepMap;;Review;;China;;Discussion;;Interview
  2. Gallery: an application to view images
  3. CX File Manager: a file manager
  4. Scrcpy: to wirelessly connect to the phone and view/control the phone screen
  5. JStock: an application to view/track stocks
  6. DroidCam Wireless Webcam: if your computer camera doesn't work, use your phone as a webcam
  7. ACurrency: Foreign exchange rate
  8. Quick Video Recorder

How to create a shortcut icon on Ubuntu desktop

Eclipse Shortcut for Ubuntu Unity: https://gist.github.com/kui/2922285 

4/14/2020

Ubuntu alternative for Logitech options of Windows and Mac mouse/keyboard

sudo add-apt-repository ppa:solaar-unifying/ppa
sudo apt-get update
sudo apt install solaar

在电脑上使用手机程序的方法 scrcpy huawei

1. 下载模拟器:如果是Windows或者Mac,可以使用夜神模拟器
2. (推荐的办法): 使用scrcpy这个工具,可以通过电脑来控制手机的屏幕: https://github.com/Genymobile/scrcpy

2.1 在电脑上安装scrcpy: Linux: use sudo snap install scrcpy, Windows: download on github
2.2 安装adb
2.3 打开开发者模式,确保手机可以连接到电脑,运行:adb tcpip 5555
For this error: adb tcpip 5555
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.

sudo chown liangzou -R ~/.android
adb kill-server
adb start-server

2.4 断开USB连接,非Root方式在大多数手机上是可以成功的,但在部分华为机型 荣耀6X、7S等等会出现目标计算机积极拒绝的的情况
华为手机 adb tcpip Connection refused
解决方案如下:
在开启tcpip端口成功后,断开usb连接,拨号键输入*#*#2846579#*#* 进入工程菜单,进入后台设置,点击USB端口修改为默认模式。然后在进行adb connect操作即可。

2.5 在电脑上运行:adb connect 手机IP:5555,显示connected to 手机IP:5555
2.6 在电脑上运行 scrcpy,就可以用电脑控制手机了

需要在手机上使用QQ输入法解决不能输入中文的问题!



Use Super + Shift + S to copy a screen section on Ubuntu

Use the following script to bind to the Super + Shift + S to call the command:
----------------

#!/bin/sh

sleep 0.125

gnome-screenshot --area -c

3/12/2020

A tool to adjust font ttf line gap size

https://github.com/source-foundry/font-line

Windows Eclipse/Console font to use: Hack High (font size: 9)

The Consolas font is too short. The solution is to use the Hack High font.
In One Drive | cygwin_home | Hack-font.zip

https://github.com/equwal/alt-hack0 (need to adjust the line height by using the tool in the Hack repository)
https://github.com/source-foundry/Hack

The line height (gap) or slashed zero can be customized by using the hack repository. Don't need to use fontforge.