Friday, March 20, 2020

Linux + Visual Studio Code

I have installed Visual Studio Code on Linux

To install, go to https://code.visualstudio.com/ and download the installer

(My system for reference)

~$ cat /etc/os-release
NAME="Linux Mint"
VERSION="19 (Tara)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 19"
VERSION_ID="19"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.ubuntu.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=tara
UBUNTU_CODENAME=bionic


I downloaded the deb file and installed it using the command:
~$ sudo dpkg -i code_1.43.0-1583783132_amd64.deb


After creating a test code and saving it, I got a warning that there is no linter installed.
Suggested linter is pylint, but after clicking install I got some errors.

Here's what I did to fix the problem...

(The version of Code I have for reference)
~$ code --version
1.43.0
78a4c91400152c0f27ba4d363eb56d2835f9903a
x64


ERROR1: python setup.py egg_info failed with error code 1

Solution: upgrade pip

~$ sudo python3 -m pip install --upgrade pip


ERROR2: No module named setuptools

Solution: install python-setuptools

~$ sudo apt-get install python3-setuptools



./rom

Saturday, April 20, 2019

Anki and Ubuntu 18.04

If you've installed Anki on Ubuntu 18.04, chances are, Anki will not launch.

Run "sudo apt-get install python3-distutils" on a terminal to make it work.


./rom


Wednesday, March 22, 2017

Creating a bootable USB drive for Windows10 installer

Here are the steps to create a bootable USB drive on a Windows machine. You need this so you can transfer your OS installer from a CD or ISO file to the USB drive.


1. Plug in USB drive

2. Open a Command Prompt as an administrator
- open Start menu
- type "command" on the search box
- Right click the "Command Prompt" on the searched programs
- choose "Run as administrator"

3. Open the disk management utility
C:> diskpart

4. List the connected disks that are available
DISKPART> list disk

5. Select your USB drive
DISKPART> select disk #
Replace the # with your disk number

6. Clean the USB drive
DISKPART> clean

7. Create a bootable partition
DISKPART> create partition primary

8. Select the partition that you just created
DISKPART> select partition 1

9. Make the partition active
DISKPART> active

10. Format the USB drive
DISKPART> format fs=fat32

11. Assign a drive letter
DISKPART> assign



12. You may now copy your OS installer from your CD or from an ISO file to your bootable USB drive.

Note:
I use Virtual Clone Drive to mount an ISO file as a virtual drive.


./f

Thursday, May 12, 2016

Linux Mint Update error for Chrome

If you're gettting “no public key available” error message, open a command prompt and run the command:
# wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -


If youi're getting "Failed to fetch" error:

edit /etc/apt/sources.list.d/google-chrome.list.
e.g. # sudo vi /etc/apt/sources.list.d/google-chrome.list

old entry:
deb http://dl.google.com/linux/chrome/deb/ stable main
change to:
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main


./rom

Saturday, March 12, 2016

The android zoom/magnification


Android 5.1.1

To turn on zoom on Android 5.1.1
Settings -> System -> Accessibility -> Magnification Gestures

Unfortunately, the screen magnification gesture is triple tap and it is not customizable. It is unfortunate because, "continuous tapping" is a common action or gesture in games like deploying troops in Clash of Clans. So instead of enjoying the game, the screen will zoom in/out.

Why android...? Why are you using a common gesture for a system function?
Why not 2 finger double tap? or 2 finger swipe? or 3 finger swipe? or 3 finger double tap? or ... (sigh)


On IOS the zoom gesture is 3 finger double tap.
Settings -> General -> Accessibility -> Zoom


./rf

Monday, February 23, 2015

CodeIgniter File not found


If you're getting File not found in Codeigniter, change the first letter of your controller file to upper case.

From the userguide http://www.codeigniter.com/user_guide/general/controllers.html

Important
The file must be called ‘Blog.php’, with a capital ‘B’.


Friday, November 28, 2014

Outlook 2013 and Voting results not updating

To automatically keep track of the voting results in Outlook 2013, DO NOT move the voting message from the "Sent Items" folder. If you do, it will stop tracking the results.

See KB below. "Automatic Logging of Vote Messages" section.

Outlook Voting and Vote Processing:
http://support.microsoft.com/kb/197420