Friday, July 21, 2017

Assassination Attempts on the President of the United States

This blog post looks at the history of U.S. presidential assassination attempts while using d3.js, dc.js and crossfilter as it's core technologies. This quick example of crossfilter ties together a pie chart, a row chart (horizontal bar chart) and a datatable. The source code follows the components.

The example here represents assassination attempts, rumored assassinations and assassinations on American presidents.  The dataset was compiled from information presented by wikipedia.

The components shown here in this blog (e.g., pie and bar charts) are clickable.

Parties Targeted

Assassination Type

Presidents

President Party Type


<!DOCtype html>
<html lang="en">
<body>
<div class="container">
    <div id="parties-id"><h4>Parties Targeted</h4></div>
    <div id="type-id"><h4>Assassination Type</h4></div>
    <div id='table-id'><h4>Presidents</h4>
        <table  class='table table-hover' >
            <thead>
            <tr class='header'>
                <th>President</th>
                <th>Party</th>
                <th>Type</th>
            </tr>
            </thead>
        </table>
    </div>
    <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.5/css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="https://dc-js.github.io/dc.js/css/dc.css" />
    <script src="https://dc-js.github.io/dc.js/js/d3.js"></script>
    <script src="https://dc-js.github.io/dc.js/js/crossfilter.js"></script>
    <script src="https://dc-js.github.io/dc.js/js/dc.js"></script>
    <script atype="text/javascript">
        var assassinationData = [
            {president: 'Abraham Lincoln', party: 'Republican', atype: 'assassinated'},
            {president: 'James A. Garfield', party: 'Republican', atype: 'assassinated'},
            {president: 'William McKinley', party: 'Republican', atype: 'assassinated'},
            {president: 'John F. Kennedy', party: 'Democratic', atype: 'assassinated'},
            {president: 'Abraham Lincoln', party: 'Republican',atype: 'attempted-assassination'},
            {president: 'Abraham Lincoln', party: 'Republican', atype: 'attempted-assassination'},
            {president: 'John F. Kennedy', party: 'Democratic',atype: 'attempted-assassination'},
            {president: 'Andrew Jackson', party: 'Democratic', atype: 'attempted-assassination'},
            {president: 'William Howard Taft', party: 'Republican', atype: 'attempted-assassination'},
            {president: 'Theodore Roosevelt', party: 'Republican', atype: 'attempted-assassination'},
            {president: 'Herbert Hoover', party: 'Republican', atype: 'attempted-assassination'},
            {president: 'Franklin D. Roosevelt', party: 'Republican', atype: 'attempted-assassination'},
            {president: 'Franklin D. Roosevelt', party: 'Republican', atype: 'attempted-assassination'},
            {president: 'Harry S. Truman', party: 'Democratic', atype: 'attempted-assassination'},
            {president: 'Harry S. Truman', party: 'Democratic', atype: 'attempted-assassination'},
            {president: 'Richard Nixon', party: 'Republican',  atype: 'attempted-assassination'},
            {president: 'Richard Nixon', party: 'Republican',  atype: 'attempted-assassination'},
            {president: 'Gerald Ford', party: 'Republican',atype: 'attempted-assassination'},
            {president: 'Gerald Ford', party: 'Republican', atype: 'attempted-assassination'},
            {president: 'Jimmy Carter', party: 'Democratic', atype: 'attempted-assassination'},
            {president: 'Ronald Reagan', party: 'Republican',atype: 'attempted-assassination'},
            {president: 'George H.W. Bush', party: 'Republican',atype: 'attempted-assassination'},
            {president: 'Bill Clinton', party: 'Democratic',atype: 'attempted-assassination'},
            {president: 'Bill Clinton', party: 'Democratic',atype: 'attempted-assassination'},
            {president: 'Bill Clinton', party: 'Democratic',atype: 'attempted-assassination'},
            {president: 'Bill Clinton', party: 'Democratic',atype: 'attempted-assassination'},
            {president: 'George W. Bush', party: 'Republican', atype: 'attempted-assassination'},
            {president: 'George W. Bush', party: 'Republican', atype: 'attempted-assassination'},
            {president: 'Barack Obama', party: 'Democratic', atype: 'attempted-assassination'},
            {president: 'Barack Obama', party: 'Democratic', atype: 'attempted-assassination'},
            {president: 'Barack Obama', party: 'Democratic', atype: 'attempted-assassination'},
            {president: 'Zachary Taylor', party: 'Whig', atype: 'rumored-assassination'},
            {president: 'Warren G. Harding', party: 'Republican', atype: 'rumored-assassination'},
        ];

        // DATA, DIMENSIONS AND GROUPS        var ndx = crossfilter(assassinationData);
        partyDimension = ndx.dimension(function (d) {
            return d.party;
        })
        partySumGroup = partyDimension.group()
        atypeDimension = ndx.dimension(function (d) {
            return d.atype;
        })
        var atypeGroupCount = atypeDimension.group()
            .reduceCount(function (d) {
                return d.atype;
            })
        modelDimension = ndx.dimension(function (d) {
            return d.model;
        })
        var modelGroupCount = modelDimension.group()
            .reduceCount(function (d) {
                return d.model;
            })

        //        //        // PRESIDENTIAL PARTIES INVOLVED IN ASSASSINATIONS (AND ATTEMPTS)        //        //
        var chart1 = dc.pieChart("#parties-id");
        chart1            .width(384)
            .height(240)
            .slicesCap(4)
            .innerRadius(25)
            .dimension(partyDimension)
            .group(partySumGroup)
            .renderLabel(true)
            .legend(dc.legend())
            .title(function (d) {
                return d.value;
            });

        //        //        // ASSASSINATION TYPES        //        //


        var chart2 = dc.rowChart("#type-id");
        chart2
            .width(480)
            .x(d3.scale.linear().range([6,20]))
            .margins({top: 5, left: 10, right: 10, bottom: 20})
            .colors(d3.scale.category10())
            .dimension(atypeDimension)
            .group(atypeGroupCount)
            .elasticX(true)
            .xAxis().ticks(5);

        //        //        // TABLE OF PRESIDENT, THEIR PARTIES AND ASSASSINATION TYPES        //        //
        var table1 = dc.dataTable("#table-id");
        table1            .width(250).height(800)
            .dimension(partyDimension)
            .group(function (d) {
                return ' '            })
            .size(100)
            .columns([

                function (d) {
                    return d.president;
                },
                function (d) {
                    return d.party;
                },
                function (d) {
                    return d.atype;
                },

            ])

        dc.renderAll();


    </script>

</div>
</body>

Friday, July 14, 2017

How to perform Blade 200 S Upgrades; Video Collection

Here are a few videos showing Blade 200 S upgrades.  Some of the videos are older showing Mircoheli upgrades... however, I currently use Lynx upgrade parts now exclusively.  Enjoy the videos. :)


Blade 200 S Tail Motor Replacement




Blade 200 S Tail Boom Replacement



Blade 200 S Main Blade Grips Replacement



Blade 200 S Landing Gear Replacement




Blade 200 S Main Blades Replacement



Blade 200 S Canopy Replacements


Friday, June 30, 2017

Upgrading the Blade 200 S with quality parts

Lynx Upgrades for the Blades 200 S


Cost to upgrade Blade 200 S with quality parts:

~ $ 143.64 + tax

# Description Upgrade Part # Price Quantity
1 Tail Rotor MountLX1814 (red)       $ 21.35 1
4 Main Blade Grip SetLX1280 (red) $ 27.25 1
5 Spindle Set LX1274 $ 2.95 2
6 Main Rotor Hub w/ hardwareLX1277 (red) $ 19.75 1
8 SwashplateLX1246 (red) $ 25.50 1
9 Pushrod Set LX1243 $ 4.99 4
10 Main steel shaft with collarLX1249 $ 7.00  1
11 Antirotation BracketLX1199 (red) $ 7.20 1
12 Main Gear with hardware LX1254 $ 20.15 1
16 Tail Rotor Blade SetLX3P200SRX-824 (yellow) $ 7.50              3


Blade 200 S Parts Explosion from Blade 200 S User Manual (page 18)


Sunday, June 25, 2017

The source code for gliesians.com is for sale on Ebay.

I've decided to shut down gliesians.com and sell the source code.

If anyone is looking to purchase the related source, you can find it on Ebay being auctioned off as we speak. :)

Thanks,
Robert

Saturday, June 24, 2017

RC Rotorcraft Safety Lessons

Here are the first two of my RC Rotorcraft Safety Lessons

 

Flying RC Helicopters in Moderate and Fresh Breezes





Beaufort Scale, Winds and RC Helicopters




There are many more to come... let me know if you'd like coverage on anything?

Thanks,
Robert

Saturday, June 17, 2017

Blade 200 S Safety Labels

If you have and are flying one or more Blade 200 S RC helicopters, then you must be familiar with the following list of safety labels to ensure your safety as well as other's people safety, pets safety, and property safety around you.

Blade 200 S RC Helicopters

The following safety labels are derived from the Blade 200 S Instruction Manual, pretty much verbatim.

SAFETY LABEL DESCRIPTION RISK
WARNING Read the ENTIRE [Blade 200 S] instruction manual to become familiar with the features of the product before operating. Failure to operate the product correctly can result in damage to the product, personal property andcause serious injury. Probability of Serious Injury
WARNING Stay at least 30 feet (10 meters) away from the helicopter when the motor is running. Probability of
Serious Injury
WARNING To ensure your safety, always disconnect the motor wires from the ESC before performing [gain adjustment or servo adjustment] steps. After you have completed the adjustments, reconnect the motor wires to the ESC before attempting to fly the model. Probability of Serious Injury
WARNING Before beginning the calibration procedure, disconnect the main motor and tail motor leads to prevent accidental motor startup during calibration. Probability of Serious Injury
WARNING If you ever need to replace your Spektrum receiver found in a Horizon Hobby product, always purchase from Horizon Hobby, LLC or a Horizon Hobby authorized dealer to  ensure authentic high-quality Spektrum product. Horizon Hobby, LLC disclaims all support and warranty with regards, but not limited to, compatibility and performance of counterfeit products or products claiming compatibility with DSM or Spektrum technology. Probability of Serious Injury
CAUTION Keep pets and other animals away from the helicopter. Animals may injure themselves if they attack or run toward the helicopter. Possibility of Serious Injury
CAUTION Always disconnect the Li-Po battery from the aircraft when not flying to avoid over-discharging the battery. Batteries discharged to a voltage lower than the lowest approved voltage may become damaged, resulting in loss of  performance and potential fire when batteries are charged. Possibility of Serious Injury
CAUTION All instructions and warnings must be followed exactly. Mishandling of Li-Po batteries can result in a fire, personal injury and/or property damage. Possibility of Serious Injury
CAUTION Changes or modifications not expressly approved by the party responsible for compliance could void the user’s authority to operate the equipment. Possibility of Serious Injury
CAUTION Do not connect to AC and DC power sources at the same time. Doing so may cause a short circuit, resulting in damage to the product, personal injury or property damage. Possibility of Serious Injury
CAUTION Connecting the battery to the ESC with reversed polarity will cause damage to the ESC, the battery or both. Damage caused by incorrectly connecting the battery is not covered under warranty. Possibility of Serious Injury
NOTICE If the main motor or tail motor do not startup properly when throttle is first applied, immediately return the throttle to idle and try again. If the problem persists,disconnect the flight battery, check for binding in the gear train and ensure no wires have become entangled within the gears. Small Possibility of Injury
NOTICE Charge only batteries that are cool to the touch and are not damaged. Look at the battery to make sure it is not damaged e.g., swollen, bent, broken or punctured. Small Possibility of Injury
NOTICE If the flight battery strap is pulled too tight, it may result in a vibration or the tail rotor may drift to the right during flight. If you experience either of these issues, loosen the strap slightly and fly again. Small Possibility of Injury
NOTICE If the main rotor blades are spinning counterclockwise, reduce the throttle to low immediately. Disconnect the battery from the helicopter and reverse any two motor wire connections to the ESC and repeat the motor control test. Small Possibility of Injury
NOTICE Always connect cable polarities correctly. Consult the battery instructions, safety sheet or products upport before using a 12V battery with sources other than a standard AC wall outlet. Small Possibility of Injury
NOTICE Repeated flying to LVC will damage the battery Small Possibility of Injury

Wednesday, June 14, 2017

Blade 200 S Part Maintenance w/ Lynx Heli Upgrades

This table provides parts maintenance of the Blade 200 S Helicopter with references to Lynx Helicopter upgrade parts where they apply.

# Description Part # Price Quantity
1 Tail Rotor Mount LX1813 (silver),
LX1814 (red),
LX1815 (black)
        
$ 21.35 1
2 Tail Motor BLH1515 $ 26.991
3 Dual Brushless ESC BLH1517 $ 59.99 1
4 Main Blade Grip Set LX1279 (silver),
LX1280 (red),
LX1281 (black)
$ 27.25 1
5 Spindle Set LX1274 $ 2.95 1
6 Main Rotor Hub LX1276 (silver),
LX1277 (red),
LX1278 (black)
$ 19.75 1
7 Rotor Head Linkage Set BLH2005 $ 3.99 4
8 Swashplate LX1245 (silver),
LX1246 (red),

LX1247 (black)
$ 25.50 1
9 Pushrod Set LX1243 $ 4.99 2
10 Main shaft with collar LX1249
(carbon steel),
LX1251
(carbon fiber)
$ 7.00 &
$ 6.50
1
11 Antirotation Bracket LX1198 (silver),
LX1199 (red),

LX1120 (black)
$ 7.20 1
12 Main Gear with hardware LX1254 $ 20.15 2
13 Main motor mount set BLH2013$ 7.99 1
14 Landing Gear BLH2014 $ 4.99 1
15 Tail Rotor Hub Set BLH2020 $ 7.391
16 Tail Rotor Blade Set LX3P200SRX-821(orange),
LX3P200SRX-822
(green),
LX3P200SRX-824
(yellow) 
$ 7.50              2
17 Main Frame Set BLH2601 $ 9.99 1
18 Main Rotor Blades BLH2602 $ 9.992
19 Canopy BLH2603 $ 14.99 1
20 Tail Boom BLH2604 $ 12.99 2
21 Pinion Gear LX1299 $ 8.20 1
22 Dampener Set LX1273 $ 6.25 4
23 Canopy Mount Set BLH2607 $ 4.99 2
24 Main Motor BLH2650 $ 39.99 1
XXVertical Stabilizer BLH1514 $ 4.99 1
YY Main Shaft Bearings BLH4515 $ 5.99 3


Blade 200 S Parts Explosion from Blade 200 S User Manual (page 18)


Assassination Attempts on the President of the United States

This blog post looks at the history of U.S. presidential assassination attempts while using d3.js, dc.js and crossfilter as it's ...