Aug 3, 2016

SOLVED: Java 32bit error on 64bit CentOS :: ld-linux.so.2 libmawt.so libXtst.so.6

Attempts to run 32bit Java on a 64bit system, the following errors would display:

/XXXXXXX/runtime/LNX86/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

Exception in thread "main" java.lang.UnsatisfiedLinkError: /XXXXXXXX/runtime/LNX86/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory

To fix, install the following (tested on CentOS7):

sudo yum install glibc.i686
sudo yum install libXext.i686
sudo yum install  libXrender.i686
sudo yum install  libXtst.i686

Now you should be able to run the Java application.

Jun 8, 2016

Flame Arrestor Battery Charging Station - Ammo Box

The goal was to create a portable charging station that could contain a lipo fire and also prevent the fire from spreading while minimizing pressure buildup. Let me know what you think, and any thoughts on improving the design.

Materials:
$20 Used 50 Cal Ammo Can - http://www.amazon.com/gp/offer-listing/B00NJ3JTCU 
$7.49 3M 499 Fiberglass Cloth - https://www.amazon.com/gp/product/B000BQSKQY
$5.47 Bronze Fine Wool Pad - http://www.amazon.com/HOMAX-PRODUCTS.../dp/B0000AXS0Q
$2.08 Gampak Connector - http://www.lowes.com/pd/Gampak-3-4-i...nector/3389324
Hood range filter (the filters that go over your stove)
$6 Lipo safety bag - http://www.banggood.com/RC-lipo-Saft...-p-938751.html
Double stick tape

Optional:
$4.99 Bcase Cable organizer - http://www.banggood.com/Bcase-TUP-Ma...p-1023797.html
$5 2S, 3S, 4S, 6S extension cables - http://www.banggood.com/Lipo-Battery...-p-951866.html

Tools:
Drill
Hole step drill bit
Rivet gun and rivets
1 3/8" Hole saw

The layering of the flame arrester from top down:
Hood range filter screen mesh
Fiber glass
Bronze wool pad
Hood range filter screen mesh
Stainless grating from hood range filter - this piece is riveted to the ammo can compressing the layers


Aug 19, 2015

BSOD Wake from Sleep Windows 8.1 SYSTEM_SERVICE_EXCEPTION :: FIXED

My laptop BSOD'd a few weeks ago, and I've been limping by in Safe Mode until today. I put my laptop to sleep, and upon wake, the laptop BSOD, and continued to do so every time I booted up. The only message displayed with SYSTEM_SERVICE_EXCEPTION, and viewing the crash dump with BlueScreenView netted no results.

Another symptom: BSOD displayed CRITICAL_SERVICE_FAILED when trying to run a Chkdsk.

Laptop:
i7
8GB RAM
2 128GB RAID 0

Problem & Solution
Turns out the problem was a corrupted pagefile.sys file. When the laptop went to sleep, the pagefile.sys became corrupted, and every bootup after that, Windows would try to access the corrupted pagefile.sys and BSOD with SYSTEM_SERVICE_EXCEPTION.

I disabled the pagefile, and the computer now boots up normally. I used the following tutorial on technet:

http://blogs.technet.com/b/danstolts/archive/2013/01/07/how_2d00_to_2d00_change_2d00_the_2d00_size_2d00_of_2d00_virtual_2d00_memory_2d00_pagefile_2d00_sys_2d00_on_2d00_windows_2d00_8_2d00_or_2d00_windows_2d00_server_2d00_2012.aspx


Apr 13, 2015

DIY Reclaimed Wood Mini Pallet Bike Rack


DIY Recycled Mini Pallet Bike Rack
Complete
All wood reclaimed from a wood pallet
Measure the distance from the bike top tube and the bike seat. Confirm that you will have enough clearance to the ceiling after hanging the bike to the rack. Then calculate the minimum amount of distance from the wall to the hanging point. Cut wood to size.
Nail the frame. Then attach top and bottom pieces of wood using nails.
Attach to wall using L bracket and 70 pound drywall anchors. Note: my measurements were off and the seat post is just barely hitting the ceiling. 
Use section of pallet with HT stamp to complete the original "pallet look"


Originally built July 24, 2014. Still hanging on strong.






Apr 11, 2015

Syma X11 / Hubsan FC & MMW Fast motors Quadcopter Mod

The Syma X11 is one of my favorite quad's to fly. I enjoy flying the geared motor setup for its stability and efficiency. The stock setup gets about 12 minutes of flight on a 380mAh battery. However, the low yaw rates leaves a bit more to be desired. 

After watching Jordy RC on Youtube, his setup provided the best of both worlds. A Hubsan flight controller and upgraded motors from MMW. The Hubsan FC provides better yaw rates, and the option to turn on/off the LEDs during flight. 

Sidenote, if you're using a Deviation w/module transmitter, you'll get Telemetry data for the battery status--mine is set at 3.2V.

Materials:
Hubsan Transmitter

Steps:
  1. Disassemble Syma X11
  2. Remove motors and Syma FC
  3. Screw in Hubsan X4 FC. The Hubsan FC will not be a perfect fit, and you'll only be able to get one screw into the board. You can try some foam to reinforce the back of the board if you like.
  4. Transfer the gear pinion from the Syma motors to the MMW motors (or reuse the original Syma X11 motors if you don't want to upgrade to MMW)
  5. Insert motors into the frame
  6. Cut off the MMW connectors. Be sure to leave enough wire length to reach the Hubsan X4 board.
  7. Solder wires to the board (see photo below for wiring. Red and White are Positive +. Black and Blue are Negative -) Motor position are swapped. The wiring does not need to have reverse polarity, only positions swapped.
  8. Transfer LEDs over from the Syma FC to the Hubsan FC
  9. Reassemble the unit
  10. Swap the prop position from left to right
  11. Insert battery and test flight



Sep 10, 2014

How to add battleforthenet widget on Blogger

This code will add the battleforthenet widget to your blogger site.

1. Go to Layout
2. Add HTML/JavaScript widget
3. Copy/Paste:
<script src="//widget.battleforthenet.com/widget.min.js" async></script>
4. Save

Jul 23, 2014

64-bit Linux libXi.so.6 and libXtst.so.6 error fix

If you're running 64 bit Linux and you're receiving an error saying the file is not found, you may need the 32 bit files below.

Copied from the two sites below for reference:

http://stackoverflow.com/questions/17355863/cant-find-install-libxtst-so-6

Quoted:
Type:
$ sudo apt-get update
$ sudo apt-get install libxtst6
if this isn't OK.
Type:
$ sudo updatedb
$ locate libXtst
it should return something like:
/usr/lib/x86_64-linux-gnu/libXtst.so.6       # Mine is OK
/usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0
If you do not have libXtst.so.6 but do have libXtst.so.6.X.X create a symbolic link:
$ cd /usr/lib/x86_64-linux-gnu/
$ ln -s libXtst.so.6 libXtst.so.6.X.X
Hope this helps.


http://stackoverflow.com/questions/22924339/chromedriver-on-ubuntu-12-04-error-while-loading-shared-libraries-libxi-so-6

Quoted:

libXi.so.6 is provided by libxi6. Chromedriver will then also ask for libgconf-2-4 with a similar message.
sudo apt-get install libxi6 libgconf-2-4
Whenever facing an issue of missing a specific file apt-file comes to rescue:
$ apt-file search libXi.so.6
libxi6: /usr/lib/x86_64-linux-gnu/libXi.so.6
libxi6: /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
libxi6-dbg: /usr/lib/debug/usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
This can be installed via apt-get:
sudo apt-get install apt-file && apt-file update  # install and fill the index