Category: Dev Notes
-
Dealing with SQLite files in mobile apps
Recently I found myself wanting to inspect what was in the application database outside of the mobile application I was working on, which as usual lead me to search for a solution on DuckDuckGo. I found a great link here, which basically says: Download and install SQLite command line tools if necessary (OSX comes with…
-
How to determine and set your default java version on OSX
Open terminal and do the following: [korey@localhost ~]$ cd /Library/Java/JavaVirtualMachines [korey@localhost /Library/Java/JavaVirtualMachines]$ ls -al This will give you a list of JDKs that you have installed. To set the default java version to 1.8.0_131 for example, use the following command: [korey@localhost ~]$ /usr/libexec/java_home -v 1.8.0_131 –exec javac -version Related link
-
Solving Appcelerator Compile Issue – Invalid Request
After updating the Appcelerator CLI, my build started failing. The log message was not very helpful, but Google was and it lead me to this link. The gist of it is here: result from /build-verify=> {“success”:false,”error”:”invalid request”,”code”:”com.appcelerator.security.invalid.session”}, err=null The answer, perform the following [korey@localhost ~]$ appc logout Appcelerator Command-Line Interface, version 6.2.0 Copyright (c) 2014-2017, Appcelerator,…
-
Manage Apache on OSX (Updated or Yosemite)
Here is a little tip for customizing apache on OSX. The first thing you have to do is turn on Web Sharing in your System Preferences. This will start the local Apache server and you can access it by going to http://localhost. From here, you can start modifying it to your will. Apache customization is…
-
Getting Fancy with Terminal
One of my recent adventures into NodeJS has led me down the path of MEAN and reading various articles on that, I came across various Terminal alternatives and enhancements. I know, I know, I am late to the party, but when I saw FishShell, I was sold. Then I saw Powerline and liked that too,…
-
Installing MongoDB on OSX (Yosemite)
Installing MongoDB on OS X is an easy task. However, if you want the service to start each time your computer is restarted, some additional effort is required. The easiest way to get MongoDB installers is to use Homebrew. [korey@localhost ~]$ brew install mongodb At this point MongoDB is installed. To start it manually, first…
-
Creating a service account on OS X (Yosemite)
Creating service users on OS X is not as straight forward as doing so on Linux system. For starters, the useradd command is not available. So in order to perform the same action on OS X, open a terminal window and run the following commands. For this example, I will create a group and user…
-
Automating Android Builds
In order to have a fully regression tested application, it is necessary to have an automated build process to ensure all checkins are validated nightly ( or whatever your schedule is). This is a simple task for most Java projects, however you may run into some issues with Android that I point out here. If…
-
How to find the key an Android app was signed with
I found this on stack overflow, so I am just recapturing here since i found it so useful. First, unzip the APK and extract the file /META-INF/ANDROID_.RSA (this file may also be CERT.RSA, but there should only be one .RSA file). Then issue this command: keytool -printcert -file ANDROID_.RSA You will get certificate fingerprints like…
-
Get Firefox Boot-2-Gecko up and running
There are two more players that are trying to enter the mobile OS space: Firefox, and Ubuntu. While the latter is making the move for more native applications to run faster on phones, the former is trying to take page out of WebOS’ playbook by going the pure HTML5 route. I had a chance to…