<?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[Stories by John Fisher on Medium]]></title>
        <description><![CDATA[Stories by John Fisher on Medium]]></description>
        <link>https://medium.com/@john-fisher?source=rss-38cbbc62a0b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ex_B1Cc8Ugv-iUAg9AY30w.jpeg</url>
            <title>Stories by John Fisher on Medium</title>
            <link>https://medium.com/@john-fisher?source=rss-38cbbc62a0b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:27:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@john-fisher/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[An Explanation for Creativity and How it Applies to AI]]></title>
            <link>https://john-fisher.medium.com/an-explanation-for-creativity-and-how-it-applies-to-ai-b7f77b483973?source=rss-38cbbc62a0b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7f77b483973</guid>
            <category><![CDATA[creativity]]></category>
            <category><![CDATA[hallucinations]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[John Fisher]]></dc:creator>
            <pubDate>Tue, 13 May 2025 21:31:45 GMT</pubDate>
            <atom:updated>2025-05-13T21:31:45.262Z</atom:updated>
            <content:encoded><![CDATA[<p>We can mostly all agree on a definition of creativity to be something like the one from the American Psychological Association</p><blockquote>Creativity is the ability to produce or develop original work, theories, techniques, or thoughts. A creative individual typically displays originality, imagination, and expressiveness.</blockquote><blockquote>Creative thinking refers to the mental processes leading to a new invention or solution to a problem. Products of creative thinking include new machines, social ideas, scientific theories, artistic works, and more. — <a href="https://www.apa.org/topics/creativity">apa.org</a></blockquote><p>What’s harder though is explaining <em>how</em> creativity manifests itself, and if AI agents can ever be truly capable of creative thought.</p><p>In <a href="https://www.nature.com/articles/s41598-023-40858-3">a 2023 paper</a> published in the journal Nature, AI agents were extremely close to performing as well as humans on a divergent thinking task called the Alternate Uses Task (AUT), and as far as the paper authors are concerned, the AI agents were certainly capable of demonstrating some measure of creativity.</p><p>Another 2023 Nature paper says “<em>State-of-the-art generative artificial intelligence (AI) can now match humans in creativity tests and is at the cusp of augmenting the creativity of every knowledge worker on Earth.</em>” — <a href="https://www.nature.com/articles/s41562-023-01751-1">nature.com</a></p><p>While some may argue the tests are just not set up to measure our full human ingenuity, AI systems have achieved near human capabilities in all the ways we can define and measure the concept.</p><p>But as the <a href="https://www.mpg.de/24536998/0414-kybe-almost-like-us-creativity-in-artificial-intelligence-152035-x"><em>Creativity in Artificial Intelligence</em></a> post from the Max Plank Institute says, “While researchers have examined the creative output of LLMs in recent years, the underlying process remains largely unexplored.”</p><p>So this is where I would like to propose an idea — what if what we see as creativity can be accomplished simply by making mistakes and feeding those mistakes into our thought process?</p><p>In the early days of generative AI we saw people with way too many fingers, and some with too few. We saw giant cans of Pepsi floating at a summer BBQs (<a href="https://youtu.be/CgDFzWvH1NE?si=MfLfpGkyb8282Uol">check it out</a> if you don’t know what I’m talking about,) and pictures from MidJourney that looked like they were prompted to include MC Escher themes. Generative AI hallucinations haven’t stopped, and maybe never will. But maybe we can feed those hallucinations back into our agents as a means of creativity.</p><p>It’s often said that we come up with novel solutions while we’re sleeping. But ask a friend or partner about their dreams and they’ll say things like “nothing seemed quite right”, that they could fly, that they were another person, in another place, or some other nonsense. This nonsense though is beautiful and it inspires humans and pushes our ingenuity to new places. Why shouldn’t the same apply for our hallucinogenic AI pals?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7f77b483973" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Replacing App Center with GitHub Actions]]></title>
            <link>https://blog.vandebron.tech/replacing-app-center-with-github-actions-4c4c8de4cd7a?source=rss-38cbbc62a0b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c4c8de4cd7a</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[appcenter]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[John Fisher]]></dc:creator>
            <pubDate>Sat, 22 Feb 2025 13:04:20 GMT</pubDate>
            <atom:updated>2025-02-22T13:51:45.441Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A wild-haired character building a phone with hammer and saw" src="https://cdn-images-1.medium.com/max/1000/0*8yGqCYDvjAFyJizn.png" /></figure><h3>Why GHA?</h3><p>This seems like a lot of work… Why not go with an off-the-shelf solution from something like Bitrise or Codemagic? Fair question but not the main point of this post. To look into our reasoning check out the <a href="https://dev.to/vandebron/replacing-app-center-with-github-actions-emd#benefits">Benefits</a> section!</p><h3>Some notes before we get started</h3><ul><li>We use this workflow to build two apps, one of which can be white-labeled, so we have additional app and white-label-release inputs which makes things a bit trickier. You might not need that so feel free to trim stuff down and make it your own! But for us, we why we have the env-variable-prep-android.sh which normalizes the variable names used for secrets so those secrets and build file names, etc. can be easily used. If you just have a single app you probably don&#39;t need this script.</li><li>The code below is only for the build process. Though the Architecture Decision Record (ADR) considered how this would affect future decisions about artifact upload automation and rolling out releases for internal testing, nothing about that is automated here.</li><li>There’s a lot of code here. We removed version numbers to make sure we’re not giving out too much information. If you see something like @vx.x.x, you&#39;ll have to fill those in with the versions that are needed for your app/pipeline.</li></ul><h3>Implementation</h3><h4>Part 1 — Basic Setup</h4><p>Add the files below. Nothing in this setup should effect App Center but it is good to check in your changes to a branch and test those against the regular App Center build flow. The main point of the steps in this section is to just get a basic action, with inputs, set up and running. Full implementation is further down. The env-variable-prep-android.sh and env-variable-prep-ios.sh files created variables based off the input parameters passed in so they can be used in a reusable and consistent manner later on. The env-file-prep.sh file is responsible for creating a .env file with values from whichever environment you&#39;re using. Though it&#39;s nice to add the Fastlane and Gymfile files, those won&#39;t be used until Step 4 when the rest of the pipeline is fleshed out.</p><p><strong>Android</strong></p><p>file: .github/workflows/mobile-apps-build-android.yaml</p><pre>---<br>  name: Mobile App Build for Android<br>  run-name: &quot;Build: Android, ${{ inputs.app }}, ${{ inputs.environment }}, white-label-release=${{ inputs.white-label-release }}&quot;<br>  on:<br>    workflow_dispatch:<br>      inputs:<br>        app:<br>          description: &#39;App&#39;<br>          required: true<br>          type: choice<br>          options:<br>            - my-first-app<br>            - my-second-app<br>        environment:<br>          description: &#39;Environment&#39;<br>          required: true<br>          type: choice<br>          options:<br>            - test<br>            - acceptance<br>            - production<br>        white-label-release:<br>          description: &#39;White-labeled Release?&#39;<br>          type: boolean<br>          default: false<br>  jobs:<br>    build:<br>      name: Build app for android<br>      runs-on: ubuntu-latest<br>      environment: ${{ inputs.environment }}<br>      steps:<br>        - name: Checkout ${{ github.repository }}<br>          uses: actions/checkout@vx.x.x<br>        - name: Echo Input<br>          env:<br>            APP: ${{ inputs.app }}<br>            WHITE_LABEL_RELEASE: ${{ inputs.white-label-release }}<br>            ENVIRONMENT: ${{ inputs.environment }}<br>          run: |<br>            echo &quot;APP=$APP&quot;<br>            echo &quot;WHITE_LABEL_RELEASE=$WHITE_LABEL_RELEASE&quot;<br>            echo &quot;ENVIRONMENT=$ENVIRONMENT&quot;</pre><p>file: env-variable-prep-android.sh</p><pre>#!/bin/bash<br>ARTIFACT_NAME=&quot;mobile-my-first-app-${ENVIRONMENT}-release&quot;<br>FASTLANE_ANDROID_FLAVOR=&quot;${ENVIRONMENT}&quot;<br>{<br>  echo &quot;artifact-name=${ARTIFACT_NAME}&quot;<br>  echo &quot;fastlane-android-flavor=${FASTLANE_ANDROID_FLAVOR}&quot;<br>} | tee -a &quot;$GITHUB_OUTPUT&quot;<br># Secrets should not get sent out over tee command (which also prints it to console)<br>{<br>  echo &quot;android-key-alias=my-first-app&quot;<br>  echo &quot;android-keystore-file=../keystores/my-first-app.jks&quot;<br>  echo &quot;android-keystore-pass=${ANDROID_KEY_PASSWORD}&quot;<br>  echo &quot;android-store-pass=${ANDROID_STORE_PASSWORD}&quot;<br>} &gt;&gt; &quot;$GITHUB_OUTPUT&quot;</pre><p>file: ./fastlane/Fastfile</p><pre>opt_out_usage<br>platform :android do<br>  desc &#39;Build app for Android&#39;<br>    lane :build do<br>      build_android_app(<br>        task: &#39;bundle&#39;,<br>        flavor: ENV[&#39;FASTLANE_ANDROID_FLAVOR&#39;],<br>        build_type: &#39;Release&#39;,<br>        project_dir: &#39;android/&#39;,<br>        print_command: true,<br>        print_command_output: true,<br>      )<br>    end<br>end</pre><p><strong>iOS</strong></p><p>file: .github/workflows/mobile-apps-build-ios.yaml</p><pre>---<br>name: Mobile App Build for iOS<br>run-name: &quot;Build: iOS, ${{ inputs.app }}, ${{ inputs.environment }}, white-label-release=${{ inputs.white-label-release }}&quot;<br>on:<br>  workflow_dispatch:<br>    inputs:<br>      app:<br>        description: &#39;App&#39;<br>        required: true<br>        type: choice<br>        options:<br>          - my-first-app<br>          - my-second-app<br>      environment:<br>        description: &#39;Environment&#39;<br>        required: true<br>        type: choice<br>        options:<br>          - test<br>          - acceptance<br>          - production<br>      white-label-release:<br>        description: &#39;White-labeled Release?&#39;<br>        type: boolean<br>        default: false<br>jobs:<br>  build:<br>    name: Build app for iOS<br>    runs-on: macos-latest<br>    environment: ${{ inputs.environment }}<br>    steps:<br>      - name: Checkout ${{ github.repository }}<br>        uses: actions/checkout@vx.x.x<br>      - name: Echo Input<br>        env:<br>          APP: ${{ inputs.app }}<br>          WHITE_LABEL_RELEASE: ${{ inputs.white-label-release }}<br>          ENVIRONMENT: ${{ inputs.environment }}<br>        run: |<br>          echo &quot;APP=$APP&quot;<br>          echo &quot;WHITE_LABEL_RELEASE=$WHITE_LABEL_RELEASE&quot;<br>          echo &quot;ENVIRONMENT=$ENVIRONMENT&quot;</pre><p>file: env-variable-prep-ios.sh</p><pre>#!/bin/bash<br># Secrets should not get sent out over tee command (which also prints it to console)<br>{<br>  echo &quot;ios-mobile-provisioning-profile=${IOS_MOBILE_PROVISIONING_PROFILE}&quot;<br>} &gt;&gt; &quot;$GITHUB_OUTPUT&quot;</pre><p>file: ./fastlane/Gymfile</p><pre>scheme(ENV[&#39;SCHEME&#39;])<br>workspace(&quot;ios/my-first-app.xcworkspace&quot;)<br>export_options(&quot;ios/exportOptions.plist&quot;)<br>output_directory(&quot;ios/build&quot;)<br>output_name(ENV[&#39;SCHEME&#39;])</pre><p><strong>Both Android &amp; iOS</strong></p><p>file: ./env-file-prep.sh</p><pre>#!/usr/bin/env bash<br>#####################################################<br># Creates an .env file for use in react-native-config<br># This script should be run from the /mobile folder<br>#####################################################<br>if [ &quot;${ENVIRONMENT}&quot; != &quot;test&quot; ] &amp;&amp; [ &quot;${ENVIRONMENT}&quot; != &quot;acceptance&quot; ] &amp;&amp; [ &quot;${ENVIRONMENT}&quot; != &quot;production&quot; ]; then<br>    echo &quot;ENVIRONMENT is not set, using &#39;production&#39; as default.&quot;<br>    ENVIRONMENT=production<br>fi<br>echo &quot;Copying &#39;my-first-app/.env.${ENVIRONMENT}&#39; to &#39;my-first-app/.env&#39;...&quot;<br>cp &quot;my-first-app/.env.${ENVIRONMENT}&quot; &quot;my-first-app/.env&quot;<br>echo &quot;Success!&quot;</pre><h4>Part 2 — Testing your Workflow Locally</h4><p>⚠️ WARNING: GitHub Actions doesn’t let you run a workflow_dispatch action until it has been merged into the main branch so you&#39;ll want to get the basic setup above in place before you start tinkering with application logic or things that could effect App Center. Also note that while act is helpful for getting the basics in place, it&#39;s unlikely you&#39;ll be able to test the complete process locally because, at least for us a) Android pipeline crashes halfway through the Build App step with an error of Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed), and b) iOS tries to install a fresh copy of Xcode</p><p>Follow the six steps below. Code segments to follow</p><ol><li>Follow installation instructions on act’s <a href="https://nektosact.com/installation/index.html">User Guide</a></li><li>Create a ~/.actrc file that looks like below</li><li>Get your $GITHUB_TOKEN in place by installing <a href="https://cli.github.com/">gh, the GitHub cli</a> and modify your shell to use the token (zsh shown)</li><li>Set up a temporary local file for secrets. ⚠️ WARNING: Once you’re done, remember to delete the file so it’s not hanging around on your system!! (or just don’t create it in the first place unless you really need it)</li><li>Set up a temporary local file for your workflow trigger inputs.</li><li>Run your workflow. As far as I know, you can only run the iOS workflow locally if you’re on a mac. To do that you’ll need to provide an additional parameter: -P macos-latest-=self-hosted</li></ol><p>file: ~/.actrc</p><pre>--container-architecture linux/amd64<br>--secret GITHUB_TOKEN=$GITHUB_TOKEN</pre><p>file: ~/.zshrc</p><pre>export GITHUB_TOKEN=&quot;$(gh auth token)&quot;</pre><p>file: .secrets</p><pre>ANDROID_STORE_PASSWORD=&quot;someSecr3ts&quot;<br>ANDROID_KEY_PASSWORD=&quot;YouWantQuotesBecause*s_etc.WillScrewYouUp&quot;<br>MAPBOX_READ_TOKEN=shhhhh.Its.asecret</pre><p>file: app-input.json</p><pre>{<br>  &quot;action&quot;: &quot;workflow_dispatch&quot;,<br>  &quot;inputs&quot;: {<br>    &quot;app&quot;: &quot;my-first-app&quot;,<br>    &quot;environment&quot;: &quot;test&quot;,<br>    &quot;white-label-release&quot;: false<br>  }<br>}</pre><p>command: for <strong>Android</strong></p><pre>act \<br>--workflows .github/workflows/mobile-apps-build-android.yaml \<br>--eventpath=&quot;${HOME}/Documents/IT/GitHub Actions/Mobile Apps/app-input.json&quot; \<br>--secret-file=&quot;${HOME}/Documents/IT/GitHub Actions/Mobile Apps/.secrets&quot;</pre><p>command: for <strong>iOS</strong></p><pre>act -P macos-latest=-self-hosted \<br>--workflows .github/workflows/mobile-apps-build-ios.yaml \<br>--eventpath=&quot;${HOME}/Documents/IT/GitHub Actions/Mobile Apps/app-input.json&quot; \<br>--secret-file=&quot;${HOME}/Documents/IT/GitHub Actions/Mobile Apps/.secrets&quot;</pre><h4>Part 3 — Testing Things out from GHA</h4><ol><li>Once you’re happy with your changes locally, send a PR &amp; merge them in! Remember this is only the basic setup to get the action avaible from the GitHub Actions interface so maybe leave a comment in the PR notifying your teammates about how they should expect a follow-up PR</li><li>Go to the “Actions” tab at the top of your GitHub repo. You should now see your actions for building iOS and Android on the left. Since it’s a workflow_dispatch action you&#39;ll trigger the actions manually.</li></ol><figure><img alt="Run workflow from GitHub Actions interface" src="https://cdn-images-1.medium.com/max/666/1*eF0Jclo7eCjiTWvJYnkkaw.png" /></figure><h4>Part 4 — Implement the Full Workflow for iOS and Android</h4><p>Adjust the files below. This is where you may end up needing to modify things that affect your App Center build. Try to keep them to a mimimum so you can still use App Center for builds should anything not work as expected. <a href="https://fastlane.tools/">Fastlane</a> is a tool that helps with automating build and release processes for mobile apps. You can think of it as a toolbox of easy-to-use wrapper functions around gradle for Android, and xcodebuild for iOS.</p><p><strong>Android</strong></p><p>file: .github/workflows/mobile-apps-build-android.yaml</p><pre>---<br>name: Mobile App Build for Android<br>run-name: &quot;Build: android, ${{ inputs.app }}, ${{ inputs.environment }}, white-label-release=${{ inputs.white-label-release }}&quot;<br>on:<br>  workflow_dispatch:<br>    inputs:<br>      app:<br>        description: &#39;App&#39;<br>        required: true<br>        type: choice<br>        options:<br>          - my-first-app<br>          - my-second-app<br>      environment:<br>        description: &#39;Environment&#39;<br>        required: true<br>        type: choice<br>        options:<br>          - test<br>          - acceptance<br>          - production<br>      white-label-release:<br>        description: &#39;White-labeled Release?&#39;<br>        type: boolean<br>        default: false<br>jobs:<br>  build:<br>    name: Build app for android<br>    runs-on: ubuntu-latest<br>    environment: ${{ inputs.environment }}<br>    steps:<br>      - name: Checkout ${{ github.repository }}<br>        uses: actions/checkout@vx.x.x<br>      - name: Prep Env Variables<br>        id: prep-env-variables<br>        working-directory: mobile<br>        env:<br>          APP: ${{ inputs.app }} # my-first-app | my-second-app<br>          ENVIRONMENT: ${{ inputs.environment }}  # production | test | acceptance<br>          BRAND: ${{ inputs.white-label-release &amp;&amp; &#39;other-company&#39; || &#39;my-company&#39; }}<br>          APP_1_ANDROID_KEY_PASSWORD_VANDEBRON: ${{ secrets.APP_1_ANDROID_KEY_PASSWORD_VANDEBRON }}<br>          APP_1_ANDROID_STORE_PASSWORD_VANDEBRON: ${{ secrets.APP_1_ANDROID_STORE_PASSWORD_VANDEBRON }}<br>          APP_1_ANDROID_KEY_PASSWORD_WHITE_LABEL: ${{ secrets.APP_1_ANDROID_KEY_PASSWORD_WHITE_LABEL }}<br>          APP_1_ANDROID_STORE_PASSWORD_WHITE_LABEL: ${{ secrets.APP_1_ANDROID_STORE_PASSWORD_WHITE_LABEL }}<br>          APP_2_ANDROID_KEY_PASSWORD_VANDEBRON: ${{ secrets.APP_2_ANDROID_KEY_PASSWORD_VANDEBRON }}<br>          APP_2_ANDROID_STORE_PASSWORD_VANDEBRON: ${{ secrets.APP_2_ANDROID_STORE_PASSWORD_VANDEBRON }}<br>        run: bash ./env-variable-prep-android.sh<br>      - name: Create .env file<br>        working-directory: mobile<br>        env:<br>          APP: ${{ inputs.app }}<br>          BRAND: ${{ steps.prep-env-variables.outputs.inferred-brand }}<br>          ENVIRONMENT: ${{inputs.environment}}<br>        run: bash ./env-file-prep.sh<br>      - name: Enable Corepack<br>        run: corepack enable<br>      - name: Setup NodeJS<br>        id: setup-node<br>        uses: actions/setup-node@vx.x.x<br>        with:<br>          node-version: 18.x<br>          registry-url: https://registry.npmjs.org<br>          cache: &#39;yarn&#39;<br>          cache-dependency-path: mobile/${{ inputs.app }}/yarn.lock<br>      - name: Setup Java<br>        uses: actions/setup-java@vx.x.x<br>        with:<br>          distribution: &#39;temurin&#39;<br>          java-version: &#39;20&#39;<br>          cache: &#39;gradle&#39;<br>      - name: Setup Android SDK  # sadly no caching capabilities here<br>        uses: android-actions/setup-android@vx.x.x<br>        with:<br>          log-accepted-android-sdk-licenses: false<br>          packages: &#39;tools&#39;   # Default is &#39;tools platform-tools but we don&#39;t need platform-tools for packaging&#39;<br>      - name: Set up ruby env # Fastlane is a &quot;Ruby gem&quot;<br>        uses: ruby/setup-ruby@vx<br>        with:<br>          ruby-version: &#39;3.3.0&#39; # Changing this to 3.3 will give you &quot;Your Ruby version is 3.3.5, but your Gemfile specified 3.3.0&quot;<br>          bundler-cache: true<br>      - name: Install Gem Bundler<br>        working-directory: mobile/${{ inputs.app }}<br>        run: |<br>          gem install bundler<br>          bundle install --quiet<br>      # Install Dependencies<br>      - name: Yarn Install<br>        working-directory: mobile/${{ inputs.app }}<br>        run: yarn install --immutable<br>      # Build<br>      - name: Build App<br>        run: bundle exec fastlane android build<br>        working-directory: mobile/${{ inputs.app }}<br>        env:<br>          ENVIRONMENT: ${{ inputs.environment }}<br>          FASTLANE_ENV_INFERRED_BRAND: ${{ steps.prep-env-variables.outputs.inferred-brand }}<br>          ANDROID_KEYSTORE_FILE: ${{ steps.prep-env-variables.outputs.android-keystore-file }}<br>          ANDROID_KEY_ALIAS: ${{ steps.prep-env-variables.outputs.android-key-alias }}<br>          ANDROID_STORE_PASSWORD: ${{ steps.prep-env-variables.outputs.android-store-pass }}<br>          ANDROID_KEY_PASSWORD: ${{ steps.prep-env-variables.outputs.android-keystore-pass }}<br>          FASTLANE_ANDROID_FLAVOR: ${{ steps.prep-env-variables.outputs.fastlane-android-flavor }}<br>      # Upload<br>      - name: Upload application<br>        uses: actions/upload-artifact@vx<br>        with:<br>          name: ${{steps.prep-env-variables.outputs.artifact-name}}<br>          path: &quot;mobile/${{ inputs.app }}/android/app/build/outputs/bundle/${{ steps.prep-env-variables.outputs.fastlane-android-flavor }}Release/app-${{ steps.prep-env-variables.outputs.fastlane-android-flavor }}-release.aab&quot;<br>          retention-days: 30</pre><p><strong>iOS</strong></p><p>file: .github/workflows/mobile-apps-build-ios.yaml</p><pre>---<br>name: Mobile App Build for iOS<br>run-name: &quot;Build: iOS, ${{ inputs.app }}, ${{ inputs.environment }}, white-label-release=${{ inputs.white-label-release }}&quot;<br>on:<br>  workflow_dispatch:<br>    inputs:<br>      app:<br>        description: &#39;App&#39;<br>        required: true<br>        type: choice<br>        options:<br>          - my-first-app<br>          - my-second-app<br>      environment:<br>        description: &#39;Environment&#39;<br>        required: true<br>        type: choice<br>        options:<br>          - test<br>          - acceptance<br>          - production<br>      white-label-release:<br>        description: &#39;White-labeled Release?&#39;<br>        type: boolean<br>        default: false<br>jobs:<br>  build:<br>    name: Build app for iOS<br>    runs-on: macos-latest<br>    environment: ${{ inputs.environment }}<br>    steps:<br>      - name: Checkout ${{ github.repository }}<br>        uses: actions/checkout@vx.x.x<br>      - name: Prep Env Variables<br>        id: prep-env-variables<br>        working-directory: mobile<br>        env:<br>          APP: ${{ inputs.app }} # my-first-app | my-second-app<br>          BRAND: ${{ inputs.white-label-release &amp;&amp; &#39;other-company&#39; || &#39;my-company&#39; }}<br>          ENVIRONMENT: ${{ inputs.environment }}  # production | test | acceptance<br>          APP_1_MY_COMPANY_IOS_MOBILE_PROVISIONING_PROFILE: ${{ secrets.APP_1_MY_COMPANY_IOS_MOBILE_PROVISIONING_PROFILE }}<br>          APP_1_OTHER_COMPANY_IOS_MOBILE_PROVISIONING_PROFILE: ${{ secrets.APP_1_OTHER_COMPANY_IOS_MOBILE_PROVISIONING_PROFILE }}<br>          IOS_BUILD_CERTIFICATE_P12_OTHER_COMPANY: ${{ secrets.IOS_BUILD_CERTIFICATE_P12_OTHER_COMPANY }}<br>          IOS_BUILD_CERTIFICATE_P12_PASSWORD_OTHER_COMPANY: ${{ secrets.IOS_BUILD_CERTIFICATE_P12_PASSWORD_OTHER_COMPANY }}<br>          APP_2_IOS_MOBILE_PROVISIONING_PROFILE: ${{ secrets.APP_2_IOS_MOBILE_PROVISIONING_PROFILE }}<br>        run: bash ./env-variable-prep-ios.sh<br>      - name: Create .env file<br>        working-directory: mobile<br>        env:<br>          APP: ${{ inputs.app }} # my-first-app | my-second-app<br>          BRAND: ${{ steps.prep-env-variables.outputs.inferred-brand }}<br>          ENVIRONMENT: ${{inputs.environment}}<br>        run: bash ./env-file-prep.sh<br>      - name: Import Build Certificate from Secrets<br>        uses: apple-actions/import-codesign-certs@vx<br>        with:<br>          p12-file-base64: ${{ steps.prep-env-variables.outputs.ios-build-certificate-p12 }}<br>          p12-password: ${{ steps.prep-env-variables.outputs.ios-build-certificate-p12-password }}<br>      - name: Import Mobile Provisioning Profile<br>        uses: nickwph/apple-provisioning-profile-action@vx.x.x<br>        with:<br>          profile-base64: ${{ steps.prep-env-variables.outputs.ios-mobile-provisioning-profile }}<br>      - name: Setup NodeJS<br>        id: setup-node<br>        uses: actions/setup-node@vx.x.x<br>        with:<br>          node-version: 20.x<br>      # Mapbox v10 ships with bitcode on XCode 16 which is not allowed by the App Store<br>      # https://github.com/mapbox/mapbox-maps-ios/issues/2233<br>      # Once this issue is fixed we can upgrade to 16<br>      - name: Install XCode<br>        uses: maxim-lobanov/setup-xcode@vx.x.x<br>        with:<br>          xcode-version: 15.4<br>      - name: Install Ruby<br>        uses: ruby/setup-ruby@vx.x.x<br>        with:<br>          ruby-version: 3.3.0<br>      - name: Install Bundler<br>        run: gem install bundler<br>      # TODO: Cache node_modules similarly to how Pods are cached (compare hash of yarn.lock)<br>      - name: Yarn Install<br>        working-directory: mobile/${{ inputs.app }}<br>        run: yarn install --immutable<br>      # TODO: Cache Gems similarly to how Pods are cached (compare hash of Gemfile.lock)<br>      - name: Install Gems<br>        run: bundle install<br>        working-directory: mobile/${{ inputs.app }}<br>      - name: Cache CocoaPods dependencies<br>        uses: actions/cache@vx<br>        env:<br>          FILES_GLOB: mobile/${{ inputs.app }}/ios/Podfile.lock<br>        with:<br>          path: |<br>            mobile/${{ inputs.app }}/ios/Pods<br>          key: ${{ runner.os }}-pods-${{ hashFiles(env.FILES_GLOB) }}<br>          restore-keys: |<br>            ${{ runner.os }}-pods-<br>      - name: Install Pods<br>        working-directory: mobile/${{ inputs.app }}/ios<br>        run: bundle exec pod install<br>      - name: Build iOS App<br>        env:<br>          APP: ${{ inputs.app }}<br>          SCHEME: ${{ steps.prep-env-variables.outputs.ios-scheme }}  # otherCompanyFirstAppProduction, myCompanySecondAppTest<br>          BRAND: ${{ steps.prep-env-variables.outputs.inferred-brand }}<br>          TARGET: ${{ steps.prep-env-variables.outputs.ios-target }}<br>        run: bundle exec fastlane gym<br>        working-directory: mobile/${{ inputs.app }}<br>      # Upload<br>      - name: Upload application<br>        uses: actions/upload-artifact@vx<br>        with:<br>          name: ${{steps.prep-env-variables.outputs.ios-scheme}}<br>          path: &quot;mobile/${{ inputs.app }}/ios/build/${{ steps.prep-env-variables.outputs.ios-scheme }}.ipa&quot;<br>          retention-days: 30<br>          overwrite: true<br>          if-no-files-found: error</pre><h4>Part 5 — Troubleshooting</h4><p>More than likely these won’t work the first time. Time to go back and adjust. Note that since the workflow is now in the main branch you can test your workflow changes on a feature branch. Just select your feature branch in the “Branch” dropdown shown above.</p><h3>Other Things to Note</h3><ul><li>App Center gives you the ability to write app-center-pre-build.sh and app-center-post-build.sh scripts. The env-file-prep.sh is basically that same thing, just without the context of appcenter.</li><li>One of our apps is using MapBox which needs a .netrc in the root directory. If you need something similar, you can add a step to your action by adding the code shown in the the “optional mapbox” part + the ./my-first-app/prep-mapbox.sh in the Appendix section below.</li><li>After our work on this was done (and only as I’m writing this article) we realized we can use the sparse-checkout option from actions/checkout to only check out the needed files. This should speed up our workflow runtime even more!</li><li>It may be helpful for you to add the build and/or version number onto the artifact. We haven’t done that but it’s something we’re interested in adding for the future.</li><li>Troubleshooting certificates for iOS was a HUGE pain in the butt. I don’t have any good advice here other than to realize (and communicate with your POs) that this part may take a while.</li></ul><h3>Benefits</h3><ul><li>It regularly took over 50 minutes for our mobile app to build in App Center. Part of that could have very likely be improved by adjusting App Center configurations &amp; how we store and bundle app assets but after migrating our builds to GitHub Actions our app build times are now down to 22 minutes — More than twice as fast!</li><li>All the rest of the software at Vandebron (backend services in Scala and Python and frontend applications in Typescript + React) is built using GitHub Actions. This move brings mobile apps in line with all other software. This move to GHA for mobile builds has led to several of our mobile devs getting our hands dirty in GHA, which is great because we can now play a role in the larger CICD discussions.</li><li>We have full control over our CICD pipeline for mobile builds. In the future we can integrate more Fastlane commands to further automate the release process.</li><li>We did a full ADR (shown below) which initiated the work here. Links referenced in image are in Appendix below.</li></ul><h3>Appendix</h3><h4>Mapbox Integration</h4><p>file: .github/workflows/mobile-apps-build-android.yaml and file: .github/workflows/mobile-apps-build-ios.yaml (optional mapbox)</p><pre>- name: Create Mapbox .netrc file (my-first-app only)<br>  if: ${{ inputs.app == &#39;my-first-app&#39; }}<br>  working-directory: mobile<br>  env:<br>    MAPBOX_READ_TOKEN: ${{ secrets.MAPBOX_READ_TOKEN }}<br>  run: bash ./my-first-app/prep-mapbox.sh</pre><p>file: ./my-first-app/prep-mapbox.sh</p><pre>#!/usr/bin/env bash<br><br># WARN: DO NOT use tee here (it prints to console)<br>{<br>  echo &quot;machine api.mapbox.com&quot;<br>  echo &quot;login mapbox&quot;<br>  echo &quot;password ${MAPBOX_READ_TOKEN}&quot;<br>} &gt;&gt; ~/.netrc<br>chmod 0600 ~/.netrc</pre><h4>ADR Links</h4><ul><li><a href="https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions">GHA (Billing)</a></li><li><a href="https://bitrise.io/">Bitrise</a></li><li><a href="https://codemagic.io/">CodeMagic</a></li><li><a href="https://www.youtube.com/watch?v=_uRbEyBa9q0">YouTube video showing GHA setup for Android</a></li><li><a href="https://medium.com/scaleuptech/how-to-make-react-native-builds-with-github-actions-8d0203801eff">Medium article showing GHA setup for Android</a></li><li><a href="https://www.obytes.com/blog/react-native-ci-cd-github-action">Article discussing how build uploads can be done</a></li></ul><p><em>Originally published at </em><a href="https://dev.to/vandebron/replacing-app-center-with-github-actions-emd"><em>https://dev.to</em></a><em> on February 22, 2025.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c4c8de4cd7a" width="1" height="1" alt=""><hr><p><a href="https://blog.vandebron.tech/replacing-app-center-with-github-actions-4c4c8de4cd7a">Replacing App Center with GitHub Actions</a> was originally published in <a href="https://blog.vandebron.tech/">Vandebron</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Choosing Remix as a Server-Side Rendering (SSR) Framework]]></title>
            <link>https://blog.vandebron.tech/choosing-remix-as-a-server-side-rendering-ssr-framework-5061ed9a777f?source=rss-38cbbc62a0b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5061ed9a777f</guid>
            <category><![CDATA[remix]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[server-side-rendering]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[nextjs]]></category>
            <dc:creator><![CDATA[John Fisher]]></dc:creator>
            <pubDate>Thu, 31 Oct 2024 11:37:21 GMT</pubDate>
            <atom:updated>2024-10-31T11:37:21.371Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*WPAXRPuBMJVGyuiDdrwWpw.png" /></figure><h3>The Background</h3><p>We at Vandebron have a mission to get the news out about <a href="https://vandebron.nl/missie">our good work</a>, and we understand that <a href="https://web.dev/articles/rendering-on-the-web#server-side">Server Side Rendering (SSR)</a> can really help with that. Among other things, it provides an easy way for search engines to discover our pages, so you, our (future?!) customer, can find them more easily. That means more people choosing green energy, and ultimately, a cleaner environment! 🎉</p><h3>We rolled our own</h3><p>The year was 2017, Covid was still a word that sounded more like a bird than anything else… The world was heating up and Vandebron was 4 years into its mission to bring 100% renewable energy throughout all of the Netherlands.</p><p>As far as web technologies are concerned, 4 years was ages ago. It was a time when NextJS was less than a year old, and Remix was still several years from coming out. But we needed a way to deliver that high-quality content to all of you. So, the innovators that we were, we decided to build our own SSR framework. In short, we wanted pizza, but there were no pizza shops in town… So we made our own!</p><p>It’s been great but not without issue…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*52yyUbuaj34_z9sY.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vJjnq9Ro31OuXOvy.png" /></figure><h3>A Short Note: Why Server Side Rendering</h3><p>You might not be satisfied with the short explanation of why we picked an SSR framework in the first place. This article isn’t really about that — if you’re interested in more analysis on when and where to choose an SSR framework, check out these excellent articles from Splunk:</p><ol><li><a href="https://www.splunk.com/en_us/blog/learn/server-side-rendering-ssr.html">The User Experience (UX) Benefits of SSR</a></li><li><a href="https://www.splunk.com/en_us/blog/learn/server-side-rendering-ssr.html">The SEO Benefits of SSR</a></li></ol><h3>Decisions Made the Right Way — A Comparison</h3><p>Nowadays, there are better, industry standard technologies available! I.e. pizza shops have opened nearby!! Let’s find a good one. Of course, you don’t want to just go to any spot. Especially if there’s more than one shop in town — you’d be silly not to check which one is closest, and look at the menu. Which one has better reviews, is that one very angry customer just upset that there wasn’t any anchovies in the vegan pizza shop? What were they expecting anyway?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5cPXkX1d_5p9gNr1.png" /></figure><p>At Vandebron we’re a React shop, so we limited ourselves to just SSR frameworks supporting React. The choice of one framework over another is of crucial importance, so, as part of our analysis, we built a small part of our <a href="https://vandebron.nl/blog">vandebron.nl/blog</a> page twice. Two of our engineers then presented these prototypes to our Front End Guild, and this discussion fed heavily into the Architecture Decision Record that we wrote comparing the results.</p><p>* At Vandebron, Guilds are groups of engineers from disparate teams that are interested in a single domain: i.e. Backend, Frontend, IAM and Auth, etc.</p><p>The Background for the decision record states this:</p><blockquote>“Our Frontend currently uses a custom-built, hard to maintain SSR solution, which we’d like to replace with a modern and standard library. Possible candidates are NextJS and Remix. The goal is to investigate which one suits our needs best.”</blockquote><p>Yes, there are other options we could have considered but we wanted to stay with a tried-and-tested framework and one that was compatible with our existing React setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_zf3jQzE7t1tLI8v.png" /></figure><p>As you can see, the comparison between the two frameworks was very similar. In the end we favoured the simple, opinionated direction of Remix over that of the more full-featured but potentially complex setup of NextJS. Even though Remix has a smaller community, we attributed this mostly to the age of the framework and not the quality of the framework itself. Though the Positivity has gone down a bit (as listed in <a href="https://2023.stateofjs.com/en-US/libraries/meta-frameworks/">the 2023 StateOfJS survey</a>,) the decrease has been relatively minor and in line with most-other frameworks (notable exceptions for Astro and SvelteKit which have both seen big upticks in both Usage and Positivity)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RYBfe3PFewriicpg.png" /></figure><p>Finally, we noted that NextJS is tightly coupled with Vercel. At Vandebron we value platform independence and not getting tied to specific hosting providers or platforms. Remix gives us the independence we’re looking for by providing a SSR framework without a potential to be tied into other solutions/platforms in the future.</p><p>Outcome</p><blockquote>“Most members favoured Remix’s focus on web standards and usage of standard libraries and were put off (a little) by NextJS’s uncertainty in development direction.”</blockquote><h3>So, How’s it Going?</h3><p>The migration effort is still underway but already we can report that it’s going quite well — developers are excited to work on the new tech stack because it’s seen as a developer-friendly platform and one of the two leading frameworks in the industry. In the words of one engineer: “Dev experience has improved massively, it’s fun, it’s easy to work with” Here are some of the things we still need to work on:</p><ol><li>Our Docker image is quite large as it includes all the node_modules. We think we can clean this up a bit by using Yarn&#39;s Plug&#39;n&#39;Play (PnP) feature which should lead to faster image-build times and faster container startup times.</li><li>With our custom SSR solution, we use Redux Toolkit (RTK) and RTKQuery on the server… This is of course an anti pattern on the server, since server-side logic should be stateless. The Remix framework does already tries to be smart with it’s loaders, so the benefits we might have gotten from RTK aren’t needed there.</li><li>We feel the application we’re migrating from is doing too much — it includes our marketing pages like the <em>Blog</em> and <em>Mission</em> pages we’ve been working on for the initial release, as well as the pages for our our signup and renewal process (become a Vandebron customer <a href="https://vandebron.nl/">here</a>!!!) This is a separate conversation, and ultimately one for the FE Guild, but the existing app’s size and purpose is making the migration take longer than it should, and forcing us to put some routing rules in place to make sure the right parts of our old site are getting swapped out for the new.</li><li>Previously, many of the images and PDFs we used on our website were checked directly into the repo. Part of our migration to Remix made us realize we should be using a CMS for this. We are already integrated with a CMS, we just need to be making better use of it in some cases.</li><li>We haven’t explored the Remix-specific linting rules yet. While we’re confident in the existing React and TS lint rules we already have, it seems like configs like <a href="https://www.npmjs.com/package/@remix-run/eslint-config">@remix-run/eslint-config</a> could be quite handy.</li></ol><p><em>Originally published at </em><a href="https://www.vandebron.tech/blog/choosing-remix-as-an-ssr-framework"><em>https://www.vandebron.tech</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5061ed9a777f" width="1" height="1" alt=""><hr><p><a href="https://blog.vandebron.tech/choosing-remix-as-a-server-side-rendering-ssr-framework-5061ed9a777f">Choosing Remix as a Server-Side Rendering (SSR) Framework</a> was originally published in <a href="https://blog.vandebron.tech/">Vandebron</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Argument Against Simulation Hypothesis (Option 3 in Simulation Argument)]]></title>
            <link>https://john-fisher.medium.com/argument-against-simulation-hypothesis-option-3-in-simulation-argument-d74e404370d6?source=rss-38cbbc62a0b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d74e404370d6</guid>
            <category><![CDATA[simulation]]></category>
            <category><![CDATA[simulation-hypothesis]]></category>
            <dc:creator><![CDATA[John Fisher]]></dc:creator>
            <pubDate>Tue, 02 Feb 2021 00:24:24 GMT</pubDate>
            <atom:updated>2021-02-02T00:41:26.601Z</atom:updated>
            <content:encoded><![CDATA[<p>Simulation Argument &amp; Simulation Hypothesis discussed by the man himself <a href="https://www.youtube.com/watch?v=nnl6nY8YKHs">here</a>.</p><h3><strong>Assumptions</strong></h3><ul><li>An ancestor simulation can be run past the point of where they themselves create simulations.</li><li>A civilization would have no reason to stop a simulation prior to, or immediately after, the simulated civilization themselves develop the capacity to run simulations.</li></ul><h3>Argument</h3><ol><li>Assume the argument is true (and that we are living in a simulation.)</li><li>Then due to the sheer number of simulated civilizations created, and the same logic of this argument, many child simulations will be created.</li><li>This argument can then be bootstrapped to show that a whole tree of simulations should exist, where each leaf of the simulation tree only produces another layer of leaf nodes once they’ve reached technological maturity to do so.</li><li>Because we have not yet developed the ability run an ancestor simulation, we know we are in one of the leaf nodes.</li><li>The percentage of nodes within a tree of depth <em>d</em>, and average degree (i.e. the number of leaf nodes for a parent) of <em>n</em> that are leaf nodes is effectively zero (see Appendix)</li><li>Given that… <br>a) the likelihood of living in one of the leaf nodes required is zero for sufficiently large <em>d</em>s or <em>n</em>s and that…<br>b) this is the place our current simulation must reside (since we haven’t yet developed the capacity to run ancestor simulations)<br>…<br>then we have a contradiction, and so must conclude the assumption in step 1 is wrong.</li></ol><h3>Appendix</h3><p><strong>Percentage of Nodes in a tree which are leaves</strong></p><ul><li>n: degree of tree</li><li>d: tree depth</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*rPovIcNKr5DHrGAm5yInzw.png" /><figcaption>sorry… my math sucks but I’m pretty sure this comes out to just about zero</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d74e404370d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>