Install kvm on Linux Mint for Android Studio x86 or x86_64 version of Android emulator

After installing Android Studio, the Android emulator takes a long time to start up. It appears to have hanged and other activities on the Ubuntu computer are not possible. This could be due to incorrect installation of kvm. To resolve this problem, open a terminal window and install kvm using the following command: $ sudo … Continue reading Install kvm on Linux Mint for Android Studio x86 or x86_64 version of Android emulator

How to install Oracle Java 12 on Ubuntu

See https://www.linuxuprising.com/2019/03/how-to-install-oracle-java-12-jdk-12-in.html Simply put, open a terminal window and enter following commands: $ sudo add-apt-repository ppa:linuxuprising/java <enter> $ sudo apt update <enter> $ sudo apt install oracle-java12-installer <enter> After the installation is complete, you can verify that the Java plugin has been installed by starting your Firefox web browser and typing about:plugins in the URL … Continue reading How to install Oracle Java 12 on Ubuntu

How to fix compile error in Android application where strings.xml contain invalid characters

I created an application with a string-array in the strings.xml file. Unfortunately, I left some apostrophe in one of the string values that was: D'Souza Obviously, at compile time, the Android Studio 2.2 IDE threw an error about invalid characters not preceded by a . I should have actually put the string as: D'Souza Now, … Continue reading How to fix compile error in Android application where strings.xml contain invalid characters

How to install and run Turbo C 2.01 for DOS in DOSBOX in linux

After sooo many years, discovered that students in India were asked to do projects in Turbo C 2.01 in DOS. Amazing, but true! That being the case, you can download Turbo C 2.01 for MS DOS from http://edn.embarcadero.com/article/20841 for free. It is antique software and embarcadero acquired it way back. They offer it as a … Continue reading How to install and run Turbo C 2.01 for DOS in DOSBOX in linux

How to update or commit code changes from local github repository to repository on github

A user can make changes to code in their local folder (in this case, MumbaiStock) and then update or commit  that code into the github repository. Below is the user information: github User ID is userid github User Name is "UserFirstName UserLastName" github User Email is "user@emailsystem.com" To update github or commit code from the … Continue reading How to update or commit code changes from local github repository to repository on github

Speed up menu bar and sub options opening in Android Studio 1.4

As a user of Android Studio 1.4, I found that the menu bar and it's sub-menus / sub options had a considerable delay before they showed up. I identified this to be with the icons and the animation effects on the menu and it's appearance. To increase speed of the menu appearing, do the following: … Continue reading Speed up menu bar and sub options opening in Android Studio 1.4

GridLayout struggle when it has excess rows and how to overcome

In my Java code, I am using GridLayout (line shown in red) in code below: frame = new JFrame("Contacts Details"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); mainPanel = new JPanel(); buttonPanel = new JPanel(); mainPanel.setLayout(new GridLayout(9, 3)); buttonPanel.setLayout(new GridLayout(1, 3)); The result was this: Name [                        ] (Text Box for name) City [                        ] (Text Box for City) Cell [                        … Continue reading GridLayout struggle when it has excess rows and how to overcome

How to filter selection of files by extension in Java Swing’s JFileChooser

Display of files of a particular extension like .txt or .csv in JFileChooser can be done using the FileNameExtensionFilter in Java as follows: fileChooser = new JFileChooser(); fileChooser.setSelectedFile(null); FileNameExtensionFilter fileFilter = new FileNameExtensionFilter("CSV Files", "csv"); fileChooser.setFileFilter(fileFilter); fileChooser.showOpenDialog(frame);