Sunday, October 12, 2014

Windows GIMP 2.8.14 + Wacom bug

The current version of GIMP for Windows has a Wacom bug, if you're using the tablet to paint, you may find that the brush lags heavily.

The bug is identified in libcairo2.

To work around, you can install an older version of GIMP, copy out libcairo-2.dll, libpixman-1.0.dll and libpng15-15.dll and overwrite those in 2.8.14


Bug is here:

https://bugzilla.gnome.org/show_bug.cgi?id=736220

Saturday, August 9, 2014

Android Studio - Failed to load JVM DLL message

If you have a fresh installation of Android Studio, you may find it  not able to start with the error "Failed to load JVM DLL" dialog; despite having a proper JDK and JAVA_HOME installed.



You will need to install Visual C++ 2010 x64 runtime found at:

http://www.microsoft.com/en-us/download/confirmation.aspx?id=14632

That should resolve the launcher problem.


Saturday, July 19, 2014

Workaround for Linux+Wine to fix games screen that is too big for display

If you've set your game(World of Warcraft for me) to run at a lower resolution than your current  desktop resolution in Linux, you may find that there will be a viewport showing part of the game and you have to pan around with your mouse.

It's a little ... annoying.

It happens to both my ATI card and Nvidia card running proprietary drivers.

This hasn't always happened. Version 1.0 of Wine for example doesn't exhibit this behaviour.


The workaround is a little clunky; before running the game, use xrandr  to check the available modes and then use xrandr to set the game resolution

e.g. launching a terminal and running xrandr:

chocobo:~$ xrandr
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
VGA-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm
   1920x1080      60.0*+
   1680x1050      60.0  
   1280x1024      75.0     60.0  
   1152x864       75.0  
   1024x768       75.0     60.0  
   800x600        75.0     60.3  
   640x480        75.0     59.9  
HDMI-0 disconnected (normal left inverted right x axis y axis)

It shows DVI-I-1 connected on my setup, so if my game runs at 1024X768, I'll run the command

xrandr  --output DVI-I-1  --mode 1024x768 


The desktop will resize to this resolution.

Start your Wine game. It should fit the viewport on your monitor.

Once you exit, set the resolution back to the default desktop setting:

 xrandr  --output DVI-I-1  --mode 1920x1080




Tuesday, July 15, 2014

2D Maze generation: Java code using Growing Tree algorithmn

Ported the maze generation Python code found in
http://pcg.wikidot.com/pcg-algorithm:maze to Java as a coding exercise.

""You are in a maze of twisty little passages, all alike."
-Adventure"

You can find the code on Github :

https://github.com/rebooting/Growing



Sunday, July 6, 2014

Updating Rift to use Glyph Launcher on Wine

From July onwards, Rift game will be launched from the Glyph Launcher.

If you are using Wine to run Rift,  the Rift Launcher will attempt to install Glyph and may crash out. The fix is quite simple:

Set Wine to emulate XP. The installer will run successfully. I did not have any luck using Vista as suggested by some.



Add a new shortcut to the GlyphClient.exe found in C:\Program Files\Glyph\GlyphClient.exe to your PlayOnLinux drive and launch it.

It should find Rift and you can go ahead and patch or play it!




Thursday, June 19, 2014

The shy Ion-Delete-Button in Ionic Framework

Took me a while to figure this out. I was trying out Ionic framework for one of my mobile side projects. The learning curve was fairly low if you know a bit of AngularJS-- I got stumped on a simple UI issue however.

I wanted to put a delete button beside the items of my list so my code was like:

<div ng-app="jsApp">
    <div ng-controller="Ctrl1">
        <ion-content>
            <ion-list >
                <ion-item>
                    <ion-delete-button class="ion-minus-circled"></ion-delete-button>Hello, list item!</ion-item>
            </ion-list>
            
        </ion-content>
    </div>
</div>




Hmm.. where's the delete button? Turns out you had to use show-delete="1" directive in the tag.


<div ng-app="jsApp">
    <div ng-controller="Ctrl1">
        <ion-content>
            <ion-list show-delete="1" >
                <ion-item>
                    <ion-delete-button class="ion-minus-circled"></ion-delete-button>Hello, list item!</ion-item>
            </ion-list>
            
        </ion-content>
    </div>
</div>






the source code http://jsfiddle.net/rebooting/5BSNE/

That being said I enjoyed using Ionic Framework a lot, it's a very clean framework.

Wednesday, June 18, 2014

Stop command from being commited to BASH History

I haven't seen this in the older bash environments before so I guess it must be fairly recent. To prevent commands from being committed to history, simply add a space in front of the command. 

Couldn't be more simpler!