Skip to main content

Posts

Installing BlackBerry Tablet Simulator 2.1 fails with "Windows error 2 occured while loading the Java VM"

Installing BlackBerry Tablet Simulator 2.1 on Windows 10 fails with the error message as shown below. --------------------------- LaunchAnywhere Error --------------------------- Windows error 2 occured while loading the Java VM --------------------------- OK --------------------------- To fix this install x86 version of JRE (tested with jre-8u102-windows-i586.exe). Running the installer again will still fail. Workaround is to pass command line argument to the installer, like: BlackBerryPlayBookSimulator-Installer-2.1.0-1032-Win-201209272349 LAX_VM "C:\Program Files (x86)\Java\jre1.8.0_102\bin\java.exe" -i GUI Run the above command on elevated prompt. Tested on Windows 10 1511 (OS Build 10586.545) Reference: https://supportforums.blackberry.com/t5/Adobe-AIR-Development/Window-error-2-occurred-when-loading-java-vm/td-p/1300033

Add a regular user in Kali Linux

Create a new user, say timus . # adduser timus Add user to sudoers group. This enables the user to become root when needed, for example to install new software. # usermod -a -G sudo timus References: http://8thstring.blogspot.com/2013/07/howto-create-new-user-in-lubuntu.html http://8thstring.blogspot.com/2012/12/adding-existing-user-to-group-in-ubuntu.html

Install Linux headers in Kali

In Kali Linux 2016.2, Linux headers were not installed when build-essential package was installed. Linux-headers is need when installing VirtualBox guest additions. To install the headers, do: # apt install linux-headers-$(uname -r) This should apply to the following distribution as well: - Debian - Ubuntu and derivatives Reference(s): http://askubuntu.com/questions/75709/how-do-i-install-kernel-header-files

OS X Keyboard Shortcuts

Key Action Notes ⌘+⇧+4 Screen capture of user defined screen Saves the screenshot on the Desktop Document Shortcuts Fn+Left Arrow Home: Scroll to the beginning of a document. Fn+Right Arrow End: Scroll to the end of a document. Fn+Up Arrow Page Up: Scroll up one page. Fn+Down Arrow Page Down: Scroll down one page. mc - Midnight Commander Esc+c Quick cd (M-c) Change directory Esc+s Search/Go to directory Legends ⌘ Command ⌥ Option ⇧ Shift ⌃ Control https://support.apple.com/en-us/HT201236 http://www.osxkeyboardshortcuts.com/keyboard-symbols.html Under construction. References: https://gist.github.com/sgergely/3793166

How to view Console.WriteLine output in Xamarin Studio UI Test

To view Console.Write/Console.WriteLine output from within Xamarin Studio UI Test, do: If Unit Test pad/window is not visible, using App menu, do View | Pads | Unit Tests .  On a test that passed (e.g., ), select test and right click, then select Show results pad  ( )

Resize OS X El Capitan HD to full size

Got OS X El Capitan running inside VMware Fusion 8. The default drive size is around 40GB and I wanted to change it to 120GB. Disk Utility seems like the tool to do the job but is not working properly. To resize, do: $ sudo disktuil resizeVolume / R Reference(s):  https://themacwrangler.wordpress.com/2015/10/21/resizing-el-capitan-mac-volumes-under-vmware-fusion/

The Maximum Log Size specified is not valid when changing Windows Event Viewer log size

When changing Application Windows Event Log maximum size and you are seeing the message below then it is possible that it is set by group policy (local or Active Directory). --------------------------- Event Viewer --------------------------- The Maximum Log Size specified is not valid. It is too large or too small. The Maximum Log Size will be set to the following:  1028 KB --------------------------- OK   --------------------------- This behavior can be modified allow changes via Windows Event View application. To do so open Group Policy Editor (gpedit.msc). Then navigate to  Computer Configuration | Administrative Templates | Windows Components | Event Log Service | Application  (for example) then change Maximum Log Size (KB) to Not configured . Note that you need to be an administrator to make the changes.