<?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 Jonas Schwartz on Medium]]></title>
        <description><![CDATA[Stories by Jonas Schwartz on Medium]]></description>
        <link>https://medium.com/@joscdk?source=rss-8556f07c4b44------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*heHGXLJAtQ9CENoo1rp50g.jpeg</url>
            <title>Stories by Jonas Schwartz on Medium</title>
            <link>https://medium.com/@joscdk?source=rss-8556f07c4b44------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 21:45:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@joscdk/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[Develop Server side Swift on Linux]]></title>
            <link>https://medium.com/@joscdk/develop-server-side-swift-on-linux-a9ea56e805cc?source=rss-8556f07c4b44------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9ea56e805cc</guid>
            <category><![CDATA[server-side-swift]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[vapor]]></category>
            <dc:creator><![CDATA[Jonas Schwartz]]></dc:creator>
            <pubDate>Wed, 26 Jul 2017 22:48:25 GMT</pubDate>
            <atom:updated>2017-07-27T07:26:06.916Z</atom:updated>
            <content:encoded><![CDATA[<p>I have for a while now been involved with the server side swift framework Vapor. I am really starting to like Swift as a programming language, there is only one problem… I don’t own a Mac; And because of that I can’t run Xcode.</p><p>But luckily there are alternatives. JetBrains, the company behind a lot of popular IDEs (RubyMine, PhpStorm etc.), CLion is a cross-platform IDE originally designed for programming C/C++. JetBrains have built a plugin for CLion providing a lot of Swift love (Auto-complete, Syntax highlighting etc.).</p><p>Here i will go through how you would:</p><ul><li>Install Swift on Linux</li><li>Setting up CLion with Swift plugin</li><li>Build Swift and Run your Vapor app with the press of a button</li></ul><p>This should get you going with developing Server side swift on Linux. During this post i will refer to Vapor, but should work for other frameworks as well.</p><p>This is just a quick walk-through, there is a lot more features, so try to play a bit around with it :)</p><h3>Install Swift on Linux using APT</h3><p>If you already know how to do this, you can just skip this step. Installing Swift on Linux is quite simple, thanks to our APT repository. It’s maintained by the Vapor team, and makes installing Swift (and Vapor toolbox really easy)</p><pre>$ wget -q https://repo.vapor.codes/apt/keyring.gpg -O- | sudo apt-key add -</pre><pre>$ echo &quot;deb https://repo.vapor.codes/apt $(lsb_release -sc) main&quot; | sudo tee /etc/apt/sources.list.d/vapor.list</pre><pre>$ sudo apt-get update</pre><pre>$ sudo apt-get install swift</pre><p>This will import the GPG key for the repository, add the repository to your system, depending on your distro, and finally installing Swift. If you want to develop Vapor, you can install the Vapor Toolbox, simply by running</p><pre>$ sudo apt-get install vapor</pre><p>That’s it. You can validate your installation with</p><pre>$ swift --version</pre><p>It should print something like this:</p><pre>$ swift --version<br>Swift version 3.1.1 (swift-3.1.1-RELEASE)<br>Target: x86_64-unknown-linux-gnu</pre><h3>Setting up Swift plugin in CLion</h3><p>You need to install CLion, you can download a 30 day trial here: <a href="https://www.jetbrains.com/clion/">https://www.jetbrains.com/clion/</a></p><p>After you have installed CLion, open it up. Open up settings <strong>File-&gt;Settings</strong></p><p>Find <strong>Plugins </strong>and install the plugin called <strong>Swift:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H3q3YGSW0SH3rKYuDCZYOQ.png" /></figure><p>That’s it, easy right? :)</p><p>Because CLion isn’t build for Swift, there is one small thing, you will need a <strong>CMakeLists.txt </strong>file in your project. This can be used to locate your Swift files. I have a Snippet here, you can add, that will add all *.swift files in your project and dependencies. This is required to use auto-complete.</p><pre>cmake_minimum_required(VERSION 3.7)<br>project(#PROJECT-NAME#)<br><br>file(GLOB_RECURSE swiftFiles *.swift)<br><br>add_custom_target(#PROJECT-NAME#<br>        WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}<br>        SOURCES ${swiftFiles})</pre><p>Just replace the two occurrences of <strong>#PROJECT-NAME# </strong>with the name of your project.</p><p>When adding new files, you need to reload your CMakeLists file, double tab <strong>SPACE</strong> and search for <strong>reload </strong>and select <strong>Reload CMake Project </strong>this might seem annoying, but you get used to it :)</p><p>After this you have full support for Swift including auto-complete example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S8OTmpdVTo4RILm3Zk09Pw.gif" /></figure><h3>Setting up Build and Run Vapor app</h3><p>Once you need to test your code, you would of cause like to build and run your Vapor app. And luckily this as well is also quite simple in CLion. Click <strong>Run-&gt;Edit configurations</strong></p><p>You should already have a configuration called something like <strong>build </strong>create another one and call it <strong>run</strong></p><p>Set it up like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-evoJYsfusuVvC0tHmyeiw.png" /></figure><p>Executable is your Vapor Executable from your project dir, default in Vapor 2 is Run (e.g.: .build/release/Run)</p><p>And set Working directory to your project dir.</p><p>In Before launch click Add and Run another configuration and select your build configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6gKT5E7-QvGPMcjJccREEA.png" /></figure><p>Here you can see build configuration. Find your Swift executable default is: /usr/bin/swift</p><p>Program arguments should be <strong>build -c release</strong></p><p>Now in the top right corner, select <strong>run </strong>and either press the run button or <strong>SHIFT+F10 </strong>this will build your Vapor app, and if it succeeds start it up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bAmbNmqMDHEPQfxtHS7nQg.png" /></figure><p>Output will automatically be printed out in the window that popup. You can easily hide it. Before rebuilding remember to click the Stop button, to stop the running app.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9ea56e805cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nodes @ AWS re:Invent — Part 1]]></title>
            <link>https://medium.com/@joscdk/nodes-aws-re-invent-part-1-e774d49db9c4?source=rss-8556f07c4b44------2</link>
            <guid isPermaLink="false">https://medium.com/p/e774d49db9c4</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[nodesagency]]></category>
            <category><![CDATA[amazon-echo]]></category>
            <dc:creator><![CDATA[Jonas Schwartz]]></dc:creator>
            <pubDate>Tue, 06 Dec 2016 08:37:54 GMT</pubDate>
            <atom:updated>2016-12-06T08:41:25.758Z</atom:updated>
            <content:encoded><![CDATA[<p>Last week I was at the AWS re:Invent conference, and I want to give some highlights of some of the things Amazon presented, both things we can use to better our setup, and some new exciting technologies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gUHuB0EXbMEOJUIGyf5Vuw.jpeg" /></figure><h3><strong>First some numbers, of how big the conference actually is:</strong></h3><p>Number of attendees: 32.000+<br>Number of sessions: 400+</p><h3><strong>Amazon Alexa</strong></h3><p>The Alexa system isn’t new (Launched november 2014), nevertheless a lot on the conference was surrounded around Alexa. Alexa is Amazon’s Speech-recognition system. And a lot of big companies have systems in this area (e.g. Apple Siri, Google Home). What makes Amazon Alexa unique is that Amazon has made it as an open platform, and thereby made it possible to integrate into your own IoT devices. Of course Amazon has their own device called Amazon Echo. So why is this interesting? It opens up for us to build the Alexa into IoT devices, that for example isn’t made using your smartphone.</p><p>At the conference I wanted to make a small proof-of-concept of a small Skill (app) to the Amazon Echo. Basically you can ask it for the latest article on nodesagency.com. It is very simple and build in 15 minutes. Even though I haven’t worked with speech-recognition before, it was very easy to integrate. You can see how it works <a href="https://www.facebook.com/nodesagency/videos/vb.111222778066/10154150264603067/?type=3&amp;theater">here</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AiRqmsmY61XZFlpLMNHvcQ.jpeg" /></figure><h3><strong>Global Partner Summit</strong></h3><p>For the first time Nodes was attending the re:Invent as AWS Partner, giving us access to the Global Partner Summit, a small mini-conference surrounding information to partners. Additionally it gave us great insight into large enterprise companies and more switching from on-premise data centers to cloud hosting. AWS provides a lot of tools that really can help clients save money and still provide a high level of security.</p><p>We really see cloud as the way to go, even for enterprise clients, and Nodes want to be part of this process, because it gives tools to help clients grow without huge investments, and AWS grows with the clients.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*saQrUohccxEe-bApoY_uAA.jpeg" /></figure><h3><strong>AWS Certified</strong></h3><p>At the conference I also wanted to put my AWS skills to a test, so I am now a AWS certified Solutions Architect, proving our skills in building and maintaining a fully redundant, secure setup with proper backup and recovery skills inside the AWS infrastructure, and building hybrid setup (Cloud and on-premise setup).</p><p>The next part will be a bit more technical, and go into coding for Amazon Alexa</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e774d49db9c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>