<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Adam T Armstrong - Medium]]></title>
        <description><![CDATA[Mobile Developer and IT Manager - Medium]]></description>
        <link>https://medium.com/adamtarmstrong?source=rss----23c0d668a191---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Adam T Armstrong - Medium</title>
            <link>https://medium.com/adamtarmstrong?source=rss----23c0d668a191---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 04:32:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/adamtarmstrong" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Access your CHANGELOG within Axway Appcelerator to implement a “What’s New” Feature]]></title>
            <link>https://medium.com/adamtarmstrong/access-your-changelog-within-axway-appcelerator-to-implement-a-whats-new-feature-8f30547e42d1?source=rss----23c0d668a191---4</link>
            <guid isPermaLink="false">https://medium.com/p/8f30547e42d1</guid>
            <category><![CDATA[appcelerator]]></category>
            <category><![CDATA[changelog]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Adam Armstrong]]></dc:creator>
            <pubDate>Wed, 13 Feb 2019 15:32:31 GMT</pubDate>
            <atom:updated>2019-02-13T15:32:31.381Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Prerequisites</strong></h3><ul><li>Alloy App</li><li>CHANGELOG.md file</li><li>changelog-parser npm package</li><li>alloy.jmk file</li></ul><h3><strong>What is a CHANGELOG?</strong></h3><p>A changelog is a file which contains a curated, chronologically ordered list of notable changes for each version of a project.</p><blockquote><strong>**Note:**</strong> A CHANGELOG is not the same as a git commit log. A CHANGELOG should only contain info the end user needs to know regarding changes to the software.</blockquote><h3><strong>Convert CHANGELOG to Markdown</strong></h3><p>Appcelerator ships with a CHANGELOG.<strong>txt</strong> file. Change the file extension to <strong>.md</strong> so we can leverage all of the features of Markdown.</p><h3><strong>Convert your CHANGELOG contents from plain text to Markdown</strong></h3><p>To programatically access the contents, we need to adopt a standard. One of the most widely adopted standards is <a href="https://keepachangelog.com/en/1.0.0/">keep a changelog</a>. Visit that link for more detail but here is a rough outline of how a release entry might look.</p><pre>## 4.2.9–2019–02–13<br>### Added<br>- Added that great feature you’ve been waiting for<br>### Fixed<br>- Fixed that annoying bug everyone hated</pre><h3><strong>Add the ‘changelog-parser’ npm package (we will use this to export our CHANGELOG to a JSON Object at compile time)</strong></h3><ul><li>Simply run this to install the command-line version</li></ul><pre>npm install -g changelog-parser</pre><ul><li>Open the file: <strong>**/app/alloy.jmk**</strong> (If it doesnt exists, simply create one) and copy/paste this into that file</li></ul><pre>task(“pre:load”, function(event, logger) {<br>   const execSync = require(‘child_process’).execSync;<br>   const fs = require(‘fs’);<br>   const path = require(‘path’);</pre><pre>   //ensure directory exists<br>   const dir = path.join(process.cwd(), ‘app’, ‘lib’);<br>      if (!fs.existsSync(dir)) {<br>         logger.info(`Creating ${dir}`);<br>         fs.mkdirSync(dir);<br>      }</pre><pre>   //get ChangeLog and write to file<br>      const changelogObject = execSync(“changelog-parser ./CHANGELOG.md”).toString();<br>      const myFile = dir + ‘/changelog.json’;<br>      fs.writeFileSync(myFile,changelogObject, ‘utf8’);<br>});</pre><p>Now, when we compile our Alloy app, before anything else is compiled, the “pre:load” task runs, ensures the /app/lib directory exists, and then parses the `CHANGELOG.md` file into a JSON Object saved into a new file, `changelog.json`.</p><p>For reference, here’s how the above CHANGELOG release looks after being converted to a JSON Object:</p><pre>{</pre><pre>   &quot;versions&quot;: [{</pre><pre>      &quot;version&quot;: &quot;4.2.9&quot;,</pre><pre>      &quot;title&quot;: &quot;4.2.9 - 2019-02-13&quot;,</pre><pre>      &quot;date&quot;: &quot;2019-02-13&quot;,</pre><pre>      &quot;body&quot;: &quot;### Added\n- Added that great feature you&#39;ve been waiting for \n### Fixed\n- Fixed that annoying bug everyone hated&quot;,</pre><pre>      &quot;parsed&quot;: {</pre><pre>         &quot;_&quot;: [</pre><pre>            &quot;Added that great feature you&#39;ve been waiting for&quot;,</pre><pre>            &quot;Fixed that annoying bug everyone hated&quot;</pre><pre>         ],</pre><pre>         &quot;Added&quot;: [</pre><pre>            &quot;Added that great feature you&#39;ve been waiting for&quot;</pre><pre>         ],</pre><pre>         &quot;Fixed&quot;: [</pre><pre>            &quot;Fixed that annoying bug everyone hated&quot;</pre><pre>         ]</pre><pre>      }</pre><pre>   }]</pre><pre>}</pre><p>This gives you a Top Level Array `”versions”` with the first record [0] being the most recent version and each item in the Array includes:</p><ul><li>`body` is a flattened list of features in markdwoon format</li><li>`parsed` is an array of features in plain text</li><li>`Added` is an array of “Added” features</li><li>`Fixed` is an array of “Fixed” features</li></ul><h3><strong>Access your changelog.json file within your Mobile App</strong></h3><p>This is really straight forward. We simply get the file in the resourcesDirectory, read it, and then parse it as JSON.</p><pre>var changelog = JSON.parse(Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory,&#39;changelog.json&#39;).read());</pre><h3><strong>Utilizing in your App</strong></h3><p>Where you go from here will greatly vary based on your app.</p><ul><li><strong>Determine a new version has been installed</strong></li><li>On launch you may want to get the current version installed using</li></ul><pre>Ti.App.version</pre><ul><li>Then compare against an already saved value of the last version that was installed using</li></ul><pre>Ti.App.Properties.getString(&#39;lastAppVersionUsed&#39;);</pre><ul><li><strong>If new version, then present a modal with the respective version array item in your changelog variable</strong></li></ul><pre>Ti.API.info(&quot;New Version:\nVersion: &quot; + changelog.versions[0].version + &quot;\nReleased: &quot; + changelog.versions[0].date);</pre><p>Output:</p><blockquote>New Version:</blockquote><blockquote>Version: 4.2.9</blockquote><blockquote>Released: 2019–02–13</blockquote><ul><li><strong>Whatever you do, dont forget to update your saved value so that the user doesnt get prompted again on the next launch</strong></li></ul><pre>Ti.App.Properties.setString(&#39;lastAppVersionUsed&#39;, Ti.App.version);</pre><h3><strong>You know have a structured CHANGELOG in Markdown that is not only in a “friendly” format for git repos but also availabale as a JSON Object within your app.</strong></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f30547e42d1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adamtarmstrong/access-your-changelog-within-axway-appcelerator-to-implement-a-whats-new-feature-8f30547e42d1">Access your CHANGELOG within Axway Appcelerator to implement a “What’s New” Feature</a> was originally published in <a href="https://medium.com/adamtarmstrong">Adam T Armstrong</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build, Test & Deploy a Titanium Cross-Platform App with Fastlane]]></title>
            <link>https://medium.com/adamtarmstrong/build-test-deploy-a-titanium-cross-platform-app-with-fastlane-3099ae01a07f?source=rss----23c0d668a191---4</link>
            <guid isPermaLink="false">https://medium.com/p/3099ae01a07f</guid>
            <category><![CDATA[mocha]]></category>
            <category><![CDATA[appcelerator]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[fastlane]]></category>
            <dc:creator><![CDATA[Adam Armstrong]]></dc:creator>
            <pubDate>Fri, 18 May 2018 15:04:19 GMT</pubDate>
            <atom:updated>2018-05-18T15:02:09.226Z</atom:updated>
            <content:encoded><![CDATA[<p>I originally wrote this article for Appcelerator and had it posted here: <a href="https://www.appcelerator.com/blog/2018/05/build-test-deploy-titanium-cross-platform-app-fastlane/?utm_source=twitter&amp;utm_medium=social&amp;utm_content=Oktopost-twitter-profile&amp;utm_campaign=Oktopost-2018-05+General+Campaign">https://www.appcelerator.com/blog/2018/05/build-test-deploy-titanium-cross-platform-app-fastlane/?utm_source=twitter&amp;utm_medium=social&amp;utm_content=Oktopost-twitter-profile&amp;utm_campaign=Oktopost-2018-05+General+Campaign</a></p><p>Developing a mobile app is just the beginning. What follows — signing, packaging, managing app meta data, testing, and deploying to the App Stores, can arguably be just as tedious and challenging.</p><p>This article will demonstrate one way to configure your environment to manage these tasks when developing apps with Titanium.</p><ul><li>For Testing -&gt; we will use Appium (Local Server) + mocha (npm package)</li><li>For Automation -&gt; we will use Fastlane</li></ul><h3>TESTING</h3><h4>Set Up Appium Server</h4><p><a href="https://appium.io/"><strong>Appium</strong></a> is an open source test automation framework for use with native, hybrid and mobile web apps. There are several options here that range from cloud-based, to local node package, and even a simple ‘Appium Desktop’ GUI app for Mac. For this article, I am going to use the simple GUI-based app, as it does everything I need it to do.</p><ul><li>Download the free Appium Desktop App <a href="https://github.com/appium/appium-desktop/releases/tag/v1.5.0">here</a>.</li><li>Validate all required Appium dependencies.</li><li>Install and run ‘Appium Doctor’. This wizard will validate and advise of any additional steps or dependencies that may be needed for your environment. More info can be found <a href="https://appium.io/docs/en/about-appium/getting-started/?lang=en">here</a>.</li></ul><pre><strong>npm</strong> install -g appium-doctor<br>appium-doctor</pre><p><em>Follow any steps to install any packages that your environment may be missing.</em></p><ul><li>Launch the Appium (Server) app and start the “Simple” Server using the defaults</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*DbFdmS1QYX4I5LzWrln0Xg.png" /><figcaption>Appium Server</figcaption></figure><h4>Install Mocha</h4><p>I manage multiple mobile applications, so I chose to manage my tests for each app in a single .js file and all app .js files within a single folder outside of the Appcelerator Project directory. There are numerous ways you can manage this and there is no right or wrong just more of a preference. My structure looks like this:</p><ul><li>Documents</li><li>Appium_Tests</li><li>firstapp_test.js</li><li>anotherapp_test.js</li><li>……</li></ul><p>Depending on your preference, install mocha either globally or locally in your tests directory (‘Appium_Tests’ in my example). More info can be found <a href="https://mochajs.org/"><strong>here</strong></a>.</p><pre>npm install --global mocha</pre><h4>Create Mocha Test File for Your App</h4><p>This file will use an “appium client” to connect to your Appium Server to run the automated tests. There are several clients to use and each have their own pros/cons. The general consensus is that ‘webdriver io’ is the preferred client. If you’d like to see the other options and/or see more complex examples, check out <a href="https://github.com/appium/sample-code/tree/master/sample-code/examples/node"><strong>this repo of examples</strong></a>.</p><p>First, create a test file. Let’s call it firstapp_test.js for future reference in this article.</p><p>Next, copy the following block of code into your file:</p><ul><li>port# must match your Appium Server Port.</li><li>Simulator can be customized to match your needs, but the same choice will need to be used when we build from fastlane (set up later in this article).</li><li>Update the path to your built app. *Note: In this tutorial, we are pointing to the app built for the simulator. You can also test against physical devices, but we aren’t covering that in this article.</li></ul><pre>&quot;use strict&quot;;  </pre><pre><strong>const</strong> opts = {   <br>  port: 4723,   <br>  desiredCapabilities: {      <br>      &quot;platformName&quot;: &quot;iOS&quot;,     <br>      &quot;platformVersion&quot;: &quot;11.2&quot;,     <br>      &quot;deviceName&quot;: &quot;iPad Pro (12.9-inch) (2nd generation)&quot;,       <br>      &quot;app&quot;: &quot;/Users/{USERDIR}/Documents/Appcelerator_Studio_Workspace/DASH/build/iphone/build/Products/Debug-iphonesimulator/MyAppName.app&quot;,      <br>      &quot;automationName&quot;: &quot;XCUITest&quot;,         <br>      &quot;noReset&quot;: true   <br>  } <br>};  </pre><pre><strong>var</strong> wd = require(&quot;webdriverio&quot;);      </pre><pre>describe(&quot;FIRST APP TEST&quot;, <strong>function</strong> () {   <br>  <strong>this</strong>.timeout(300000);   <br>  <strong>var</strong> driver;   <br>  <strong>var</strong> allPassed = true;    </pre><pre>  before(<strong>function</strong> () {     <br>      driver = wd.remote(opts);     <br>      <strong>return</strong> driver.init();   <br>  });    </pre><pre>  after(<strong>function</strong> () {     <br>      <strong>return</strong> driver       <br>      .end()   <br>  });    </pre><pre>  afterEach(<strong>function</strong> () {     <br>      allPassed = allPassed &amp;&amp; <strong>this</strong>.currentTest.state === &#39;passed&#39;;   <br>  });     </pre><pre>  it(&quot;Should Login&quot;, <strong>function</strong> () {      <br>      <strong>return</strong> driver      <br>      .element(&quot;~Enter Username&quot;).setValue(&quot;testusername&quot;)      <br>      .element(&quot;~Enter Password&quot;).setValue(&quot;testpassword&quot;)      <br>      .click(&quot;~Attempting to Log In&quot;)   <br>  });     </pre><pre>  it(&quot;Should Do Something else&quot;, <strong>function</strong> () {      <br>      <strong>return</strong> driver      <br>      //Do another test here   <br>  });  </pre><pre>});</pre><p>While it is possible to write these tests using node without mocha, I personally like the structure of using mocha (describe/it) as well as the output of such. Using mocha, and my sample script above, results in the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*MXl-HEgT1EP_ySur6hT22g.png" /><figcaption>Basic mocha test sample response</figcaption></figure><p>Write test commands for your app. This is where ‘webdriver io’ stands apart form the rest. Their syntax is shorter and more streamlined than other clients. The ‘webdriver io’ API doc can be found <a href="http://webdriver.io/api/action/setValue.html"><strong>here</strong></a>.</p><blockquote><em>Note: The ~ is a unique Appium character that gets attributed to the AccessibilityId used within your Appcelerator app. This one line will find the UI component with AccessibilityId = “Enter Username” and sets its value:<br></em><em>.element(&quot;~Enter Username&quot;).setValue(&quot;testusername&quot;)</em></blockquote><blockquote><em>You can refer to the Appium commands </em><a href="http://appium.io/docs/en/commands/element/find-element/"><strong><em>here</em></strong></a><em> if you want more info.</em></blockquote><p>Update your Appcelerator UI components with Accessibility Features (in my example, this would be the TextField used for the username). More info on Appcelerator and Accessibility can be found <a href="https://docs.appcelerator.com/platform/latest/#!/guide/Accessibility"><strong>here</strong></a>.</p><pre>&lt;<strong>TextField</strong> accessibilityLabel=&quot;Enter Username&quot; /&gt;</pre><p>Now, you should have mocha configured and a sample test script using webdriverio as the client to interface with your Titanium App keying off of the AccessibilityId. Before continuing to the final piece (automation) you should ensure your test runs successfully on its own.</p><pre><strong>mocha</strong> firstapp_test.js</pre><h3>AUTOMATION</h3><h4>Install Fastlane</h4><p>Look to Fastlane’s <a href="https://docs.fastlane.tools/"><strong>Getting Started Guide</strong></a> to install and init.</p><p>For each mobile app, you will have a ‘fastlane’ folder in the root with a few config files.</p><pre>— fastlane (folder)     <br>      — Pluginfile (this gets created automatically for you)     <br>      — Fastfile (this file you <strong>create</strong> <strong>and</strong> <strong>define</strong> the <strong>required</strong> steps). <strong>As</strong> a ‘<strong>Quick</strong> <strong>Start</strong>’, I provided the following. Copy this <strong>into</strong> your ‘Fastfile’ <strong>for</strong> your app.</pre><p><em>Note: there are no file extensions on either file</em></p><pre>default_platform :ios  </pre><pre>platform :ios <strong>do</strong>      </pre><pre>  before_all <strong>do</strong>    <br>  <strong>end</strong>        </pre><pre>  desc &quot;Build App for Simulator Tests&quot;     <br>  lane :buildapp <strong>do</strong>       <br>      ti_build_app(     <br>            appc_cli: &quot;appc run build --platform ios --target dist-adhoc --distribution-name &#39;implicitli, LLC. (G52GS5PAND)&#39; --pp-uuid c6ea530d-70ea-5661-b013-beb4d25b2a7b --output-dir /dist&quot;   <br>      )     <br>  <strong>end</strong>          </pre><pre>  desc &quot;Runs the tests of the iOS App&quot;    <br>  lane :test <strong>do</strong>     <br>      ti_build_app(         <br>            appc_cli: &quot;appc run -f -T simulator -p ipad -i 11.2 --device-id 6945AC80-7F29-4A5A-8256-49467E9D1A7D --build-only&quot;        <br>      )      <br>      mocha_run_tests(       <br>            mocha_js_file_name: &#39;/Users/{USERDIR}/Appium_Tests/dash_test.js&#39;      <br>      )    <br>  <strong>end</strong>             </pre><pre><strong>end</strong></pre><h4>Configure Fastlane</h4><p>Fastlane runs on what they call ‘lanes’. These lanes allow you to break out building, testing, deploying, etc. And, each ‘lane’ can be run by itself or all together in succession. Too much to cover here, read up on their docs for more info, but know that to integrate Titanium into Fastlane, you will need to download 2 plugins I recently wrote — one to build an Titanium App and one to initiate your mocha test file.</p><p>In your Titanium project, run this from terminal:</p><pre><strong>fastlane</strong> add_plugin ti_build_app</pre><p>This plugin leverages the full AppC CLI which you can read up on <a href="https://docs.axway.com/bundle/Appcelerator_CLI_allOS_en/page/appcelerator_command-line_interface_reference.html#AppceleratorCommand-LineInterfaceReference-iOSbuildoptionsandflags"><strong>here</strong></a>.</p><pre><strong>fastlane</strong> add_plugin mocha_run_tests</pre><p>This plugin just simply runs your mocha test .js file.</p><h4>Customize Your Fastfile</h4><p>My first lane, ‘buildapp’ does just that It only builds. I defined the distribution type (adhoc) and what cert and provisioning profile to use. For this lane/example, I now have a packaged app that I can upload to my MDM Server.</p><p>I could even go a step further and install the plugin ‘ftp’ to automate the upload process.</p><p>See <a href="https://docs.fastlane.tools/plugins/available-plugins/"><strong>here</strong></a> for all the plugins available.</p><p>My second lane, ‘test’ has 2 actions. 1) build the app to simulator &amp; 2) test the app. In this example, I use different AppC CLI commands so that my app is built to a specific simulator and —-build-only prevents it from launching (mocha will launch the simulator and attach to the correct session on its own). Then, the next step executes the mocha test file.</p><p>It is important here to note that the simulator I defined in Fastlane MUST match the simulator defined in my mocha test file.</p><h4>Execute Fastlane</h4><p>To run only my Fastlane ‘test’ lane, I would simply execute:</p><pre>bundle exec fastlane test</pre><p>You will see AppC CLI commands flash across the screen as it builds the app to simulator, then mocha executes, simulator opens, and webdriverio performs all your UI interactions. How Exciting!</p><p>Example fastlane output (I hid all the AppC Build Cmds — you’re probably used to those by now and know how long that output is).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*fPCsa_axs3SYR3ROZgmKmA.png" /><figcaption>FastLane sample output</figcaption></figure><h4>NEXT STEPS</h4><ul><li>Dig into more ‘actions’ in Fastlane (or plugins) to increment build numbers, capture automated screenshot captures, integrate into Slack, git, send notifications, and so much more. The Fastlane community is vast and options are near limitless.</li><li>I have plans to automate the start/stop of the Appium Server (as mentioned above, as it stands, you need to make sure you manually start Appium Desktop app prior to running your Fastlane). And, I welcome any other suggestions for plugins.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3099ae01a07f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adamtarmstrong/build-test-deploy-a-titanium-cross-platform-app-with-fastlane-3099ae01a07f">Build, Test &amp; Deploy a Titanium Cross-Platform App with Fastlane</a> was originally published in <a href="https://medium.com/adamtarmstrong">Adam T Armstrong</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To: DIY Hockey Goal Mount for GoPro]]></title>
            <link>https://medium.com/adamtarmstrong/how-to-hockey-goal-mount-for-gopro-5b50747b20a1?source=rss----23c0d668a191---4</link>
            <guid isPermaLink="false">https://medium.com/p/5b50747b20a1</guid>
            <category><![CDATA[gopro]]></category>
            <category><![CDATA[how-to]]></category>
            <category><![CDATA[hockey]]></category>
            <category><![CDATA[diy]]></category>
            <category><![CDATA[goalkeepers]]></category>
            <dc:creator><![CDATA[Adam Armstrong]]></dc:creator>
            <pubDate>Thu, 21 Dec 2017 02:46:01 GMT</pubDate>
            <atom:updated>2017-12-21T13:44:43.607Z</atom:updated>
            <content:encoded><![CDATA[<p>It was just a matter of time before the two passions in my life, hockey and technology, would finally meet. I’ve seen numerous goalies record video of them playing from various places on the ice and decided I wanted to do the same.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p-WcxQnDMgHZwGb331hGgA.jpeg" /></figure><h3><strong>Objective</strong></h3><p>To get video of myself playing in goal to capture some great plays as well as improve my game.</p><h3>Approach</h3><ol><li>The ‘safest’ place was from above, attached to the glass, and ‘outside’ of the ice surface. But this is more of a “birds-eye” view and doesnt really help me assess my angles and lateral movements.</li><li>‘In Goal’. This, by far, provides the best video to learn from but it is obviously the most dangerous location.</li></ol><p>So…#2 it is…and now to find a way to protect my camera.</p><h3>Solutions</h3><p>After some extensive googling, I found a few solutions but they were very expensive ($130+) for what was nothing more than a reinforced metal box. Being a Carpenter’s son, and an avid DIY-er, this immediately became my next DIY project.</p><h3>Material &amp; Product Selection</h3><h4>Camera:</h4><p>Given that this camera is going to take some abuse, I was really reluctant to drop $300+ on a camera that could potentially get demoilshed by a puck (a compressed/vulcanized rubber object that is twice the weight of a baseball) traveling at speeds upward of 100 mph. After some more research, I found hundreds of great reviews on a great GoPro knock-off: Akaso EK7000</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IGZvGXhAZY6UeMVonN52vw.jpeg" /><figcaption>Akaso EK7000</figcaption></figure><ul><li>Various video qualities: 1080p/60 fps, 1080p/30 fps, 4k/30 fps, and more.</li><li>90 min battery life</li><li>Waterproof and fog-proof case, extra battery, charger, and 30+ mounts</li><li>All included for $70. Winner!</li></ul><h4>Metal Box:</h4><p>I had to calculate how much Force was exerted by the puck from a slapshot.</p><p><strong><em>Assuming:</em></strong></p><p>The puck was at rest before it was hit, the puck was about 40 ft away from the goalie, and the puck accelerated at a constant rate.</p><p><strong><em>What we know:</em></strong></p><ul><li>m (puck) = 6 ounces = 0.17 kg</li><li>vo = 0 m/s</li><li>vf = 108.8 mph (fastest slap shot ever recorded in NHL) = 48.6 m/s</li><li>t = 0.5 s</li><li>d = 40ft = 12.192 m</li></ul><p><strong><em>Calculations:</em></strong></p><ul><li>a = (vf — vo) / t = (48.6–0) / 0.5 = 97.25 m/s²</li><li>F = ma = .17(97.25) = <strong>16.53 N</strong></li></ul><p>There were several directions I could go here but this one proved to be versatile in regards to ‘covers’, strong welded steel box, and affordable at $2.10 (Home Depot)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*kKh9lwxeig6BNv0z_8FG7g.jpeg" /><figcaption>4 in. Square Welded Box, 2–1/8 Deep with 1/2 and 3/4 in. TKO’s</figcaption></figure><h4>Cover:</h4><p>Then I needed a cover to allow visibility for recording but enough converage to protect the lens. Got this for $1.91 (Home Depot)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*OREv7JlAiP3dcXugqcD07g.jpeg" /><figcaption>4 in. Square Exposed Work Cover for Single 20A Round Device</figcaption></figure><h4>Packaging/Vibration/Shock-Absoorption:</h4><p>This was the hardest part. Using the Force above (16.53 N) and the box dimensions for surface area (~16 sq inches) I went to various sites and read up on types of materials to use. Wow — I had no idea what I was getting into. Sorbothane, High-Density Foam, and Expanded Polypropylene (EPP) were the top results. I needed something that wasnt too hard (or the camera would take some abuse) and not too soft (or it wouldnt protect the camera enough and hit the side of the metal box. In the end, EPP seemed to be the best solution as it is commonly used in Child Car Seats and Hockey Elbow Pads.</p><p>I found this at Hobby Lobby for $3.99</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*FyxHBWSmBERVyOX05peYDw.jpeg" /><figcaption>2&quot; x 12&quot; x 12&quot; Premium Poly Foam Pad</figcaption></figure><h3><strong>Put it together</strong></h3><h4>Bottom:</h4><ul><li>I cut the bottom piece of foam to be 1/2&quot; wider on each side (5&quot; x 5&quot;) so that the foam has to be squeezed and condensed to force into the box. Then I cut-out the shape of the case into the foam about 1/2&quot; smaller on all sides and the depth of the camera for a tight-fit to keep the camera in place.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XdYARo_iWMOMcPqdSyPkaw.jpeg" /></figure><ul><li>It was at this point I realized that having the camera forced in so tight was causing the power, record, and stop buttons to accidently get pressed. So, as you can see in the pic above, I removed the retainer clip and power button. This of course means I would have to power on and start recording before I put in the case and then metal box. But I dont see this as an issue as I will set-it and forget-it. I’m going to get hit by pucks and wont have time to mess with the camera until afterwards.</li></ul><h4>Top:</h4><ul><li>I cut the top piece to be the exact height/width (4&quot; x 4&quot;) and cut a whole in the center for the lens.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6NsYnqTdci04F6VZQSNLcg.jpeg" /></figure><ul><li>Then I knocked out 2 holes on the top and added a double-sided velcro strap — to use to attach to goal post and netting inside the goal.</li></ul><h3>Wrapping it all up</h3><ul><li>The final component was to paint the box white. This isnt just a cosmetic step — but also an additional protection. Why, you ask!? Well, because when hockey players shoot a puck they aim for the net and if there is a big obvious box in the net — the players eyes are going to be attracted to it and as such the box has a higher chance of getting hit. But there is a little problem here — the box is galvenized and cant be painted as-is.</li></ul><h4>Prepare Metal &amp; Paint:</h4><ul><li>I filled a bowl with Vinegar, soaked the parts over night, and when I woke up the galvenized coating was floating in the water.</li><li>Used (White) Rust-Oleum Clean Metal Primer Spray Paint and applied several layers.</li></ul><h4>Final Product:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p-WcxQnDMgHZwGb331hGgA.jpeg" /></figure><h3>Conclusion</h3><p>I have used this a few times now and it typically takes me just under 1 minute to power on, start recording, insert into plastic case, put into metal box and tighten both screws on metal cover. And obviously the paint is going to chip a little from time-to-time but really not that bad. All in all, I am very pleased with it — especially for the total price coming in right at $26.</p><h4>Full Parts List:</h4><ul><li>$2.10 — Metal Box. 4 in. Square Welded Box, 2–1/8 Deep with 1/2 and 3/4 in. TKO’s. Home Depot. <a href="https://www.homedepot.com/p/4-in-Square-Welded-Box-2-1-8-Deep-with-1-2-and-3-4-in-TKO-s-8232/100578083?MERCH=REC-_-PIPHorizontal1_rr-_-202596193-_-100578083-_-N">https://www.homedepot.com/p/4-in-Square-Welded-Box-2-1-8-Deep-with-1-2-and-3-4-in-TKO-s-8232/100578083?MERCH=REC-_-PIPHorizontal1_rr-_-202596193-_-100578083-_-N</a></li><li>$1.91 — Cover. 4 in. Square Exposed Work Cover for Single 20A Round Device. Home Depot. <a href="https://www.homedepot.com/p/RACO-4-in-Square-Exposed-Work-Cover-for-Single-20A-Round-Device-812C/100152461">https://www.homedepot.com/p/RACO-4-in-Square-Exposed-Work-Cover-for-Single-20A-Round-Device-812C/100152461</a></li><li>$3.97 — Velcro Straps. 23 in. x 7/8 in. 1-Wrap Straps (3-Pack). Home Depot. <a href="https://www.homedepot.com/p/VELCRO-Brand-23-in-x-7-8-in-1-Wrap-Straps-3-Pack-90700/202261933?keyword=velcro+one-wrap+7%2F8">https://www.homedepot.com/p/VELCRO-Brand-23-in-x-7-8-in-1-Wrap-Straps-3-Pack-90700/202261933?keyword=velcro+one-wrap+7%2F8</a></li><li>$3.98 — White Paint. 12 oz. Clean Metal Primer Spray Paint — Rustoleum. (White). Home Depot. <a href="https://www.homedepot.com/p/Rust-Oleum-Stops-Rust-12-oz-Clean-Metal-Primer-Spray-Paint-7780830/100143442">https://www.homedepot.com/p/Rust-Oleum-Stops-Rust-12-oz-Clean-Metal-Primer-Spray-Paint-7780830/100143442</a></li><li>$3.99 — Foam Padding. 2&quot; x 12&quot; x 12&quot; Premium Poly Foam Pad. Hobby Lobby. <a href="https://www.hobbylobby.com/Fabric-Sewing/Batting-Fillings-Forms/Cushions-Pillow-Forms/2%22-x-12%22-x-12%22-Premium-Poly-Foam-Pad/p/36736">https://www.hobbylobby.com/Fabric-Sewing/Batting-Fillings-Forms/Cushions-Pillow-Forms/2%22-x-12%22-x-12%22-Premium-Poly-Foam-Pad/p/36736</a></li><li>$9.99 — Extra Camera Case. This would be unique for your camera. I found a cheap waterproof/fog-proof one on Amazon.</li></ul><h3>Total Price: $25.94</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b50747b20a1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adamtarmstrong/how-to-hockey-goal-mount-for-gopro-5b50747b20a1">How To: DIY Hockey Goal Mount for GoPro</a> was originally published in <a href="https://medium.com/adamtarmstrong">Adam T Armstrong</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Axway Mobile Backend Services: Posts, associated Photos, and Alloy Collections.]]></title>
            <link>https://medium.com/adamtarmstrong/axway-mobile-backend-services-posts-associated-photos-and-alloy-collections-a1ea07bc4bcd?source=rss----23c0d668a191---4</link>
            <guid isPermaLink="false">https://medium.com/p/a1ea07bc4bcd</guid>
            <category><![CDATA[appcelerator]]></category>
            <category><![CDATA[backbonejs]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[mobile-backend]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Adam Armstrong]]></dc:creator>
            <pubDate>Fri, 08 Sep 2017 21:13:18 GMT</pubDate>
            <atom:updated>2017-09-08T21:13:17.982Z</atom:updated>
            <content:encoded><![CDATA[<h3>Axway Mobile Backend Services: Posts, associated Photos, and utilizing Alloy Collections to pull it all together</h3><p>Axway’s Mobile Backend Services (I’ll refer to this as MBS) is a great cloud storage solution that you can use with, literally, just a few lines of code. And the best part is — it’s FREE. The name has changed a few times but in one form or another I have used MBS for close to 5 years now and during that time I have come across some tips/tricks that I hope others could benefit from.</p><p><strong>Assumptions</strong></p><ol><li>General understanding of <a href="http://docs.appcelerator.com/platform/latest/">Axway Appcelerator</a> (Cross-Platform Mobile Development) and <a href="http://docs.appcelerator.com/arrowdb/latest/#">Axway Mobile Backend Services</a>.</li><li>Understand how to create a “shell” app within Appcelerator.</li><li>General understanding of Alloy data-binding and Collections. There are a few paths one could go here, and Jason recently wrote a blog post describing many other alternatives <a href="https://www.appcelerator.com/blog/2017/08/optimising-backbone-binding-in-alloy/">here</a> — but for this article I am going to use my favorite, <a href="https://github.com/jasonkneen/RESTe">RESTe</a>.</li></ol><p><a href="https://github.com/jasonkneen/RESTe">jasonkneen/RESTe</a></p><h3>Let’s Get Started!</h3><h3><strong>1. Configure RESTe Methods and Collections to retrieve data from MBS</strong></h3><p>This is not a complete config file, these are just the relevant elements to connect to MBS. I’m not going to explain RESTe here (visit the github for that) but I do want to point out a ‘hack’ I had to implement in order for Collections to work correctly (with MBS).</p><blockquote>* Note: The MBS JSON response returns the “posts” array in a child property of “response”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/1*pQc_fgCUSEcdOix7-0oAKQ.png" /><figcaption>MBS /posts/query JSON Response</figcaption></figure><ul><li>RESTe was designed to look for the element in the root/parent and not in the child. No worries — the beautiful thing about RESTe is how flexible it is. By simply transforming the JSON response on-the-fly, with just a few lines of code, I was able to work around it and move the “response” object up to the parent. Viola!</li></ul><h4>Simply add this to either each desired method or globally across all methods:</h4><pre>onLoad: function(e, callback) {<br>     var transform = e.response;<br>     callback(transform);<br>}]</pre><p>Then your config should look something like this:</p><pre>//RESTe Config file<br>Alloy.Globals.arrowDB.config({<br>     .....<br>     url: &quot;https://api.cloud.appcelerator.com/v1/&quot;,<br>     models: [{<br>          name: &quot;name&quot;,<br>          id: &quot;id&quot;,<br>          collections: [{<br>               name: &quot;queryMyPosts&quot;,<br>               content: &quot;posts&quot;,<br>               read: &quot;getQueryPosts&quot;<br>          }],<br>     }],<br>     methods: [{<br>          name: &quot;getQueryPosts&quot;,<br>          get: &#39;posts/query.json?where={&quot;content&quot;: &quot;&lt;content&gt;&quot;}&amp;order=-updated_at&amp;key=ENV_KEY_HERE&amp;pretty_json=true&#39;,<br>          onLoad: function(e, callback) {<br>               var transform = e.response;<br>               callback(transform);<br>          },<br>     }, {<br>          name: &quot;getPhoto&quot;,<br>          get: &#39;photos/show.json?photo_id=&lt;photo_id&gt;&amp;key=ENV_KEY_HERE&amp;pretty_json=true&#39;,<br>     }],<br>});</pre><p>Alright. We now having a REST connection to MBS and Models &amp; Collections are dynamically created and just waiting for us to use them.</p><h3>2. Configure our &lt;VIEW&gt; to use our Alloy/RESTe Collection</h3><p>I could have used ListViews here but, for this application, I chose to use TableViews. Again — I assume you know the basics of TableViews so I am only going to cover the key pieces.</p><blockquote>* Note: I assigned my dataCollection to my Collection created in RESTe</blockquote><p>dataCollection=”queryMyPosts”</p><blockquote>an added a custom transform (we’ll discuss why in a sec)</blockquote><p>dataTransform=”transformPicIDToBlob”</p><pre>&lt;TableView id=&quot;myTV&quot; dataCollection=&quot;queryMyPosts&quot; dataTransform=&quot;transformPicIDToBlob&quot;&gt;<br>     &lt;TableViewRow rowId=&quot;{id}&quot; rowTitle=&quot;{title}&quot;&gt;<br>          &lt;ImageView id=&quot;photo_url&quot; image=&quot;{loading_image}&quot; /&gt;<br>          &lt;Label text=&quot;{content}&quot; /&gt;<br>          &lt;!--More Elements Here--&gt;<br>     &lt;/TableViewRow&gt;<br>&lt;/TableView&gt;</pre><h3>3. Configure our &lt;CONTROLLER&gt; to retreieve and load the Collection</h3><h4>a) Fetch our Data</h4><p>On your postLayout (or by whatever means you desire) you need to ‘fetch’ the REST JSON.</p><pre>//some func<br>  Alloy.Globals.myTVRowIndex = 0;<br>  Alloy.Collections.queryMyPosts.fetch({<br>        content: &quot;desired_text_here&quot;<br>  });</pre><blockquote>* Take note of my Global Var, ‘Alloy.Globals.myTVRowIndex’, that I intialize to zero each time I retrieve the data. This will be used later.</blockquote><p>We now have all of our ‘Posts’ being retrieved and the {title} and {content} being populated in the TableView! Woohoo!</p><p>Oh wait, but what about the image? Yes — that is a problem because MBS saves the photo_id in the “Post” and not the photo_url path. That’s where the dataTransform (we added to the &lt;VIEW&gt;) comes into play.</p><h4>b) Transform our Data</h4><p>So, we need to create a function and as the Collection is populating the TableView we need to intercept it, check to see if that ‘Post” has a photo, and if so make another call to retrieve the photo url.</p><ul><li>If the ‘Post’ has a photo I add a ‘loading’ image (before we retrieve our remote image) otherwise I add an ‘empty’ image. (Tailor to fit your own needs). Then I increment my ‘rowIndex’ and return the transform.</li></ul><pre>function transformPicIDToBlob(model){<br>     var transform = model.toJSON();<br>     if (transform.hasOwnProperty(&quot;photo_id&quot;)) {<br>          transform.loading_image = &quot;/loadingImage_thumbnail.png&quot;;<br>          getPhotoURL(Alloy.Globals.myTVRowIndex, transform.photo_id);<br>     } else {<br>          transform.loading_image = &quot;/transparent.png&quot;;<br>     }<br>     Alloy.Globals.myTVRowIndex++;<br>     return transform;<br>}</pre><p>* Note: My use of the ‘rowIndex’ was so that I could retroactively update the image on the appropriate row (once the image is retrieved). I went back-and-forth on a few ways to implement this, like getting the tableview data, getting the rows, looking up my rowId, to get the rowIndex, etc… — but in the end I decided to keep it simple. KISS.</p><h4>c) Get the “Post” Photo URL</h4><p>Initially I tried to make the REST call for the photo inside the transform and quickly ran into issues with an error like:</p><pre>message = &quot;undefined is not an object (evaluating &#39;__alloyId114.--transform.id&#39;)&quot;;</pre><p>The reason? In a word — ‘async’. The transform was so quick that it was already moving onto the next row and once the photo was retrieved from the remote server it couldn’t update the row because, well, it wasnt on that row anymore. doh.</p><p>So, I moved that out into its own function — which follows a more “pure function” methodology anyways.</p><h4>So, upon receiving the rowIndex and photoID, I make a call to get the photo url and update the corresponding row.</h4><pre>function getPhotoURL(rowIndex, photoID){<br>     Alloy.Globals.arrowDB.getPhoto({<br>          photo_id: photoID<br>     }, function(img) {<br>          $.myTV.data[0].rows[rowIndex].children[0].image = img.response.photos[0].urls.original;<br>     });<br>}</pre><ul><li>Note: The use of ‘children’ is to drill down into the actual element of the row that I want to change. Depending on the # of Views, nested Views, Labels, etc… you may have several ‘children’. I may come back and modify this to be more ‘dynamic’ and interchangeable with all my apps — but it works and is solid — as long as you dont change your &lt;VIEW&gt; layout.</li></ul><p>Viola! You now have MBS as your cloud storage (FREE from Axway), being pulled in via RESTe, populating an Alloy Collection, and making an additional call (as needed) to get the Photo URL and update the respective TableViewRow.</p><p>I am sure there are some ‘better’ ways to accomplish some of the above but these are working (GREAT) for me and are very simple in nature. I welcome any feedback or suggestions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1ea07bc4bcd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adamtarmstrong/axway-mobile-backend-services-posts-associated-photos-and-alloy-collections-a1ea07bc4bcd">Axway Mobile Backend Services: Posts, associated Photos, and Alloy Collections.</a> was originally published in <a href="https://medium.com/adamtarmstrong">Adam T Armstrong</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Fingerprint Authentication using Axway Titanium]]></title>
            <link>https://medium.com/adamtarmstrong/https-medium-com-adamtarmstrong-android-fingerprint-authentication-using-axway-titanium-2c73a6c35df1?source=rss----23c0d668a191---4</link>
            <guid isPermaLink="false">https://medium.com/p/2c73a6c35df1</guid>
            <category><![CDATA[appcelerator]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[fingerprint]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Adam Armstrong]]></dc:creator>
            <pubDate>Thu, 10 Aug 2017 15:48:12 GMT</pubDate>
            <atom:updated>2017-08-10T17:17:00.891Z</atom:updated>
            <content:encoded><![CDATA[<p>A common pain-point for Titanium developers is implementing fingerprint authentication for Android. Hyperloop (especially now that it’s free) solved the technical challenge but the UI/Presentation layer still remained left to the developer.</p><p>I recently took Google’s Material Guideline for Fingerprint Behavior and created my own Titanium Widget to solve that issue and make it portable for use in several of my other apps.</p><p><a href="https://material.io/guidelines/patterns/fingerprint.html#fingerprint-behavior">Fingerprint - Patterns</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hoATo6zjLgWTy2CY8FwomQ.png" /><figcaption>ti.androidfingerprintalertdialog Widget</figcaption></figure><h4>REQUIREMENTS</h4><ol><li>Appcelerator/Titanium</li><li>Hyperloop</li><li>Some method of fingerprint authentication.</li></ol><blockquote>a. TouchID — <a href="https://github.com/appcelerator-modules/ti.touchid">https://github.com/appcelerator-modules/ti.touchid</a></blockquote><blockquote>OR</blockquote><blockquote>b. Ti.Reprint Hyperloop .aar and common.js — <a href="https://github.com/loop-modules/Ti.Reprint">https://github.com/loop-modules/Ti.Reprint</a></blockquote><p>4. ti.androidfingerprintalertdialog widget — <a href="https://github.com/adamtarmstrong/ti.androidfingerprintalertdialog">https://github.com/adamtarmstrong/ti.androidfingerprintalertdialog</a></p><h4>SETUP</h4><p><strong>1–2. I wont go into these; there are numerous articles, docs, and wiki’s to cover those.</strong></p><p><strong>3. Setup Ti.Reprint Hyperloop Module in your app (again, you could use the ti.touchid module here as well — I just chose to test the Hyperloop implementation)</strong></p><p>a. Copy the github file /Ti.Reprint/app/platform/android/core-2.8.3.aar to your ‘project’/app/platform/android/ folder</p><blockquote>Reprint is a unified fingerprint authentication library for Android that supports multiple fingerprint APIs — including Imprint &amp; Samsung Pass. <a href="https://github.com/ajalt/reprint">https://github.com/ajalt/reprint</a></blockquote><p>b. Copy the github file /Ti.Reprint/app/lib/Reprint.js to your ‘project’/app/lib/ folder</p><blockquote>This library provides various methods to initialize, authenticate, check if device supports fingerprint, verifies fingerprints are registered, and more.</blockquote><p>c. Update your tiapp.xml file to allow your app to use android.permission.USE_FINGERPRINT</p><pre>&lt;uses-permission android:name=&quot;android.permission.USE_FINGERPRINT&quot;/&gt;</pre><p><strong>4. Setup ti.androidfingerprintalertdialog widget</strong></p><p>a. Download/extract widget and copy the ‘ti.androidfingerprintalertdialog’ folder to your ‘project/app/widgets/ folder</p><p>b. Update your ‘project’/app/config.json file to add the widget</p><pre>&quot;dependencies&quot;: {</pre><pre>     &quot;ti.androidfingerprintalertdialog&quot;: &quot;1.0&quot;</pre><pre>}</pre><h4>USAGE</h4><h4>Add Widget to your view (typically your login page)</h4><p><strong><em>index.xml</em></strong></p><pre>&lt;Widget id=&quot;androidFingerprint&quot; src=&quot;ti.androidfingerprintalertdialog&quot; /&gt;</pre><p><strong><em>index.js</em></strong></p><ul><li>Require and initialize the Reprint common.js module.</li></ul><pre>var Reprint = require(&#39;reprint&#39;);</pre><pre>Reprint.initialize();</pre><ul><li>Setup 4 functions to handle success, failure, click:UsePassword &amp; click:Cancel</li></ul><pre>function successCallback(moduleTag) {</pre><pre>     $.androidFingerprint.success();</pre><pre>     //Continue login process</pre><pre>}</pre><pre>function failureCallback(failureReason, fatal, errorMessage, moduleTag, errorCode) {</pre><pre>     $.androidFingerprint.failure();</pre><pre>}</pre><pre>function fingerprintUsePassword(){</pre><pre>     Reprint.cancelAuthentication();</pre><pre>}</pre><pre>function fingerprintCancel(){</pre><pre>     Reprint.cancelAuthentication();</pre><pre>}</pre><ul><li>Prompt for fingerprint</li></ul><p>Verify that device BOTH has the hardware and a fingerprint is registered</p><pre>if (Reprint.isHardwarePresent() &amp;&amp; Reprint.hasFingerprintRegistered())</pre><ul><li>Request Authentication and show AlertDialog Widget and pass in the 4 methods we just created</li></ul><pre>Reprint.authenticate(successCallback, failureCallback);<br>$.androidFingerprint.show(fingerprintUsePassword, fingerprintCancel);</pre><h3>That’s it!</h3><p>The Widget Repo and full implementation example can be found <a href="https://github.com/adamtarmstrong/ti.androidfingerprintalertdialog">here</a>. Contributions welcomed!</p><p><a href="https://github.com/adamtarmstrong/ti.androidfingerprintalertdialog">adamtarmstrong/ti.androidfingerprintalertdialog</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c73a6c35df1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adamtarmstrong/https-medium-com-adamtarmstrong-android-fingerprint-authentication-using-axway-titanium-2c73a6c35df1">Android Fingerprint Authentication using Axway Titanium</a> was originally published in <a href="https://medium.com/adamtarmstrong">Adam T Armstrong</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Most Versatile Goalie Pants Ever!]]></title>
            <link>https://medium.com/adamtarmstrong/https-medium-com-adamtarmstrong-versatile-goalie-pants-fda024f2f424?source=rss----23c0d668a191---4</link>
            <guid isPermaLink="false">https://medium.com/p/fda024f2f424</guid>
            <category><![CDATA[goalkeepers]]></category>
            <category><![CDATA[hockey]]></category>
            <category><![CDATA[ice-hockey]]></category>
            <category><![CDATA[sports]]></category>
            <dc:creator><![CDATA[Adam Armstrong]]></dc:creator>
            <pubDate>Wed, 26 Jul 2017 17:53:26 GMT</pubDate>
            <atom:updated>2017-07-26T17:59:36.605Z</atom:updated>
            <content:encoded><![CDATA[<h3>Background</h3><p>I started playing Goalie when I was 7 years old. I was born and raised in Texas, so until the Dallas Stars came to town my only option was Roller Hockey. Upon the Stars arrival, and the influx of Ice Rinks, I transitioned to Ice Hockey and have played both ever since. I played 2 years for the University of Texas at Arlington until destroying my knee when it was wrapped behind my head and around a goal-post. After a few years of recovery I got back to the ice and today I still play (at 39 yrs young) in a few leagues and coach Squirts/Pee Wee’s at the Dallas Stars Frisco location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*cm_Dt8S50LTSHAcZIMPTYQ.jpeg" /></figure><h3>Style</h3><p>Over the years I have tried many styles. Frist ‘Standup’, then ‘Butterfly’, and finally settling on ‘Hybrid’ (think Dominik Hasek). I am only 5&#39; 8&quot; (on skates) so trying to cover the most realestate in goal is a challenge and I have to rely on my skating agility, stick-handling, and quick-glove hand.</p><h3>The Problem</h3><p>As I have gotten older — having the best protection has become even more important than before. The last year or two I found myself getting more hip bruises — mostly due to my “Hasek-Roll” antics.</p><blockquote>Explanation of a ‘Hasek Roll’: <a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;cad=rja&amp;uact=8&amp;ved=0ahUKEwigiNuXvqfVAhWHqVQKHVH0DMsQtwIIJjAA&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DRmph39a6JSE&amp;usg=AFQjCNHNLxwIslIu10eedka-BS0g2EURTw">Hasek Roll — Textbook Execution (multi-angle) — YouTube</a></blockquote><p>I’ve tried many different style’s of pants of the years. Goalie pants tend to be too big and bulky and slowed me down. Forward pants were lighter but didnt cover as well. I never really found the ‘Happy-Medium’. Until…..</p><h3>The Solution</h3><p>After reading a LOT of reviews — I finally made the purchase and decided to give ‘Warrior’ a chance. I bought their ‘Warrior Sr. Ritual X Hockey Goalie Pants’ and it has proven to be the single-handed best piece of gear I have ever purchased.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xHAwsWizknHpUlf59uXflg.jpeg" /><figcaption>Warrior Sr. Ritual X Goalie Pants</figcaption></figure><h3>The Difference</h3><ul><li>Light-weight &amp; still protective.</li><li>Flexibilty. Their hip-flexor panels give me the ultimate agility to perform my ‘Hasek-Rolls’</li><li>Internal belt. I cant stress this one enough — it provides me the ability to play with my chest-guard ‘tucked’ or ‘un-tucked’.</li><li>Integrated knee pad supports. I constantly struggled with my knee pads falling (again — mostly due to my ‘Hasek-Roll” style of play) and these pants provide the supports to keep them up.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mtY5Pud43OPDzN42neuohg.jpeg" /><figcaption>Chest-Guard ‘tucked’</figcaption></figure><h3>Summary</h3><p>These pants have made this old-man play more like his younger years and most importantly provides more protection. I wish I had these back in college; I might have made it further (ok — probably not).</p><h3>Sources</h3><p>Pants — <a href="https://www.hockeygiant.com/product.aspx?itm_id=17984&amp;div_id=41&amp;gclid=Cj0KCQjw--DLBRCNARIsAFIwR25nZv09aS9WatJHvdgCld5AQh0CStt2h3PZ4xDj9Y6cq29ygp860qoaAqUCEALw_wcB">https://www.hockeygiant.com/product.aspx?itm_id=17984&amp;div_id=41&amp;gclid=Cj0KCQjw--DLBRCNARIsAFIwR25nZv09aS9WatJHvdgCld5AQh0CStt2h3PZ4xDj9Y6cq29ygp860qoaAqUCEALw_wcB</a></p><p>Knee Pads — <a href="https://www.hockeygiant.com/product.aspx?itm_id=17986&amp;div_id=31&amp;gclid=Cj0KCQjw--DLBRCNARIsAFIwR27YAev7D1SeTZgJSFlcxUOVRFp6SaQFZr1okHZpU1UgXGgPvd7l0lYaAqVhEALw_wcB">https://www.hockeygiant.com/product.aspx?itm_id=17986&amp;div_id=31&amp;gclid=Cj0KCQjw--DLBRCNARIsAFIwR27YAev7D1SeTZgJSFlcxUOVRFp6SaQFZr1okHZpU1UgXGgPvd7l0lYaAqVhEALw_wcB</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fda024f2f424" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adamtarmstrong/https-medium-com-adamtarmstrong-versatile-goalie-pants-fda024f2f424">Most Versatile Goalie Pants Ever!</a> was originally published in <a href="https://medium.com/adamtarmstrong">Adam T Armstrong</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Twilio SMS Messaging — Axway Titanium Cross-Platform Library]]></title>
            <link>https://medium.com/adamtarmstrong/twilio-sms-messaging-axway-titanium-cross-platform-library-e3f8c4b8f5e5?source=rss----23c0d668a191---4</link>
            <guid isPermaLink="false">https://medium.com/p/e3f8c4b8f5e5</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[appcelerator]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[sms]]></category>
            <category><![CDATA[twilio]]></category>
            <dc:creator><![CDATA[Adam Armstrong]]></dc:creator>
            <pubDate>Wed, 26 Jul 2017 16:04:35 GMT</pubDate>
            <atom:updated>2017-07-26T16:18:20.813Z</atom:updated>
            <content:encoded><![CDATA[<h3>Twilio SMS Messaging — Axway Titanium Cross-Platform Library</h3><p>I have integrated Twilio SMS Messaging for various clients over the past few years and decided it was time to wrap this up into my own library to ease portability.</p><blockquote>For this library — I took a very simplistic approach. Just added SMS Messaging and no SDK’s or additional libraries; just a basic common.js module.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XkY05wvmneueneeJliL9NQ.png" /></figure><h3>Setup Twilio Account and API Key</h3><ol><li>Create a <em>free</em> Twilio Account at <a href="https://www.twilio.com/">https://www.twilio.com/</a></li><li>Create an API Key at <a href="https://www.twilio.com/console/video/dev-tools/api-keys">https://www.twilio.com/console/video/dev-tools/api-keys</a></li></ol><blockquote>Make note of your API Secret. After you complete the setup the API Key can no longer be retrieved.</blockquote><h3>Download Library</h3><p>Copy the /lib/ti.twilio.js file into your Axway Titanium Project under /app/lib/</p><p><a href="https://github.com/adamtarmstrong/ti.twillio">https://github.com/adamtarmstrong/ti.twilio</a></p><h3>Add Module and Initialize</h3><ul><li>AccountSID, APISID, &amp; APISecret = All {strings} from your Twilio Account</li><li>timeout = {integer} to define API timeout in milliseconds</li><li>FROM_PhoneNumber = {string} in E.164 format of phone # to send message FROM (ie. +15005550006&#39;)</li></ul><blockquote><em>NOTE: FROM_PhoneNumber passed in must match the API Key Environment (more details in github repo)</em></blockquote><pre>var twilioClient = require(&#39;ti.twilio&#39;);<br>twilioClient.init(&#39;AccountSID&#39;, &#39;APISID&#39;, &#39;APISecret&#39;, &#39;FROM_PhoneNumber&#39;, timeout);</pre><h3>Send SMS Message</h3><ul><li>Message = {string} message to send to user</li><li>TO_PhoneNumber = {string} in E.164 format of client phone # to send message TO (ie. +146921439389&#39;)</li><li>successCallback = {function} to execute upon success</li><li>failureCallback = {function} to execute upon failure</li></ul><pre>twilioClient.sendSMS(Message, TO_PhoneNumber, successCallback, failureCallback);</pre><p><em>That’s it!</em></p><p>This is just a basic SMS Message and I plan to expand the methods over time. Code contributions are greatly appreciated!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3f8c4b8f5e5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/adamtarmstrong/twilio-sms-messaging-axway-titanium-cross-platform-library-e3f8c4b8f5e5">Twilio SMS Messaging — Axway Titanium Cross-Platform Library</a> was originally published in <a href="https://medium.com/adamtarmstrong">Adam T Armstrong</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>