react-native unable to download js bundle
Got this error message:
Unable to download JS bundle. Did you forget to start the development server or connect your device?
To fix, I had to run:
and then click reload on the AVD.
fixing java.awt.HeadlessException when starting AVD under ubuntu linux
I kept receiving java.awt.HeadlessException when starting the AVD. I found the fix here
Basically:
Then open the android script from ANDROID_HOME, or wherever your android sdk is, and modify java_cmd=”java” to java_cmd=”/usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java”
custom monitoring script in ubuntu
I wanted to have a way to run something repeteadly and have visual output. Luckily, indicator-sysmonitor allows you to configure a custom script. You can get a full description on how to do it, by following this link. I find it very useful to add the path to a shell script, and to call whatever you want from it. So, I’ve configured the path to be ~/code/sysmenu.sh, with the following contents:
Of course, you could run node, python, c, or whatever your heart desires. Just make sure your script produces output, since that output is what’s displayed by your indicator. For example, I use it to keep track of the jobs that are being processed by sidekiq, how many jobs are running, how many are queued, and how many scheduled.
virtualbox dns issues
Found that running this, solves my “virtualbox temporary failure in name resolution” errors.