HOME BLOG

How to fix error java.lang.OutOfMemoryError: Java heap space in Android Studio

Posted on: October 23rd, 2018 by Olu No Comments

Hi folks,

Here’s a quick tip on how to fix error java.lang.OutOfMemoryError: Java heap space when working with Android Studio.

Open gradle.properties,
find org.gradle.jvmargs
set -Xmx property to something bigger, e.g.
if you had -Xmx1500m, you can change it to -Xmx3000m

This way JVM uses max heap size of 3000MB
That’s all for now.
Happy coding.

New Release for Incredible Brick Breaker – Android 2.2.0, iOS 1.1.0

Posted on: August 7th, 2018 by Olu No Comments

Hi folks,

We’re pleased to announce a new update for Incredible Brick Breaker. This is Incredible Brick Breaker 2.2.0 for Android and 1.1.0 for iOS.

In this release, you can control the paddle by moving your finger anywhere on the screen. This is a feature that has been requested by some users to make the game easier to play.

As always, we like to know what you think about the game. Feel free to contact us. And if you haven’t yet installed the game, get it from App Store or Google Play.

Incredible Brick Breaker 1.0 is Launched for iOS!

Posted on: July 9th, 2018 by Olu No Comments

Hi folks,

We’re very excited to announce that Incredible Brick Breaker 1.0 has been released for iOS. For the first time, you can now play the game on your iPhone, iPad, and iPod touch. The game play provides is essentially the same as the Android version. There are 30 levels of brick breaking fun to enjoy and a leaderboard to record your high scores and help you compare your high scores with your friends.

As always, we like to know what you think about the game. Feel free to contact us. And if you haven’t yet installed the game, get it from App Store or Google Play.

Incredible Brick Breaker 2.1.0 is Launched for Android!

Posted on: July 9th, 2018 by Olu No Comments

We’ll like to announce that Incredible Brick Breaker 2.1.0 has been released for Android. This is a major update. It features improved ball control to allow you finish levels faster and in a more fun way. It also features a leaderboard to record your high scores and help you compare your high scores with your friends.

As always, we like to know what you think about the game. Feel free to contact us. And if you haven’t yet installed the game, get it from Google Play.

How to fix NullPointerException RoboVmRunProfileState.startProcess error of RoboVM iOS not starting

Posted on: June 10th, 2018 by Olu No Comments

Hi folks,

Here I describe quickly how to fix a problem of RoboVM iOS not running on Android Studio. The error in question is one of the form:

Couldn't start application
java.lang.NullPointerException
 at org.robovm.idea.running.RoboVmRunProfileState.executeRun(RoboVmRunProfileState.java:57)
 at org.robovm.idea.running.RoboVmRunProfileState.startProcess(RoboVmRunProfileState.java:126)
...

 

According to a RoboVM issue page, the problem seems to be due to some FacetManager component markup present in ios.iml. The markup looks like:

 

<component name="FacetManager">
    <facet type="android-gradle" name="Android-Gradle">
      <configuration>
        <option name="GRADLE_PROJECT_PATH" value=":ios" />
      </configuration>
    </facet>
    <facet type="java-gradle" name="Java-Gradle">
      <configuration>
        <option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" />
        <option name="BUILDABLE" value="true" />
      </configuration>
    </facet>
  </component>

 

Removing the markup solves the problem.

Till next time.

How to Access USB Stick from Terminal on Ubuntu

Posted on: April 14th, 2018 by Olu No Comments

In this article I go over how to access a USB stick from the terminal on Ubuntu.

 

1. Find what the drive is called
You’ll need to know what the drive is called to mount it. To do that run one of the following commands:

lsblk
sudo blkid
sudo fdisk -l

 

You’re looking for a partition that should look something like: /dev/sdb1. Find it and remember what it’s called.

 

2. Create a mount point (optional)
This needs to be mounted into the filesystem somewhere. You can usually use /mnt/ if you’re being lazy and it isn’t already used, otherwise create a new directory using a command like:

sudo  mkdir /media/usb

 

3. Mount device

sudo mount /dev/sdb1 /media/usb

 

4. Unmount device
When you’re done using the device, run the following command:

sudo umount /media/usb

 

References

1. command line – How to access a usb flash drive from the terminal? – Ask Ubuntu. https://askubuntu.com/questions/37767/how-to-access-a-usb-flash-drive-from-the-terminal

How to run a script on start up on Ubuntu

Posted on: April 1st, 2018 by Olu No Comments

Hi folks,

In this short article,  I will briefly describe how to set a script to run on reboot.

An easy way to do this is to edit /etc/rc.local, add a line to execute your script, the save and close the file.

Now you can test it works by restarting your computer and verifying it works.

That’s all for now. Till next time.

DiffPDF – A tool for comparing PDF files

Posted on: February 21st, 2018 by Olu No Comments

Hi folks,

I just want to talk a bit about a handy tool I tried recently. It’s called DiffPDF and, as the name implies, it helps you compare PDF files for textual differences. It is provided by Qtrac Ltd.

I tried it because I had two large PDF files generated by a similar process and wanted to see if they were identical. DiffPDF did a decent job at comparing the two files. It gives a page-by-page analysis of the comparison so you can easily view at a glance what pages differ. The user interface is quite intuitive and the application is easy to use.

You can try out the application free using a trial license by going to Qtrac’s website http://www.qtrac.eu/diffpdf.html and downloading an appropriate version. After 20 days, a license is needed.

One downside I can see for this app is that it only supports Windows.

So, if you ever need to compare PDF files quickly, try DiffPDF. That’s it for now.

How to Completely Uninstall PyCharm on macOS

Posted on: February 21st, 2018 by Olu No Comments

Hi folks,

Quick tip today. I will share how to completely uninstall PyCharm on a Mac. Why may you want to do this? The other day there was an issue with my PyCharm installation. It was always getting stuck on ‘Indexing…’ on opening a particular project. So, I thought, perhaps installing a fresh updated copy will help. Here are the steps I followed to completely uninstall the existing copy:

1. Go to Applications > right click PyCharm > move to trash

2. open a terminal and run the following: find ~/Library/ -iname “*pycharm*”

verify that all of the results are in fact related to PyCharm and not something else important you need to keep. Then, remove them all using the command: find ~/Library -iname “*pycharm*” -exec rm -r “{}” \;

I was able to install a new version and it worked like a charm. That’s all folks.

Sources

Complete uninstall on Mac – IDEs Support (IntelliJ Platform) | JetBrains. https://intellij-support.jetbrains.com/hc/en-us/community/posts/206593875-Complete-uninstall-on-Mac

How to make MacOS Remember your SSH Passphrase

Posted on: February 18th, 2018 by Olu No Comments

Hi folks,

Here’s a quick tip on how to make your macOS remember SSH passphrases. If you use public/private key authentication to access servers, you probably wouldn’t want to have to enter the passphrase every time you access the server. To make your client store the passphrase, all you have to do is enter the following into  ~/.ssh/config



Host *
    UseKeychain yes


Once you do this, you would need to enter the passphrase once and afterwards it will be remembered. This was tested on macOS High Sierra.

That’s all for now. Happy coding.

 

Sources

macOS keeps asking my ssh passphrase since I updated to Sierra. https://superuser.com/questions/1127067/macos-keeps-asking-my-ssh-passphrase-since-i-updated-to-sierra