<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: UKJP</title>
    <description>The latest articles on DEV Community by UKJP (@samaldis).</description>
    <link>https://dev.to/samaldis</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F121437%2F71278565-c9e6-4562-adab-92b65b394e43.png</url>
      <title>DEV Community: UKJP</title>
      <link>https://dev.to/samaldis</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/samaldis"/>
    <language>en</language>
    <item>
      <title>1 - [quick start] kwik</title>
      <dc:creator>UKJP</dc:creator>
      <pubDate>Mon, 11 Nov 2019 18:45:22 +0000</pubDate>
      <link>https://dev.to/samaldis/1-quick-start-kwik-4p2d</link>
      <guid>https://dev.to/samaldis/1-quick-start-kwik-4p2d</guid>
      <description>&lt;p&gt;In this series we will look at a few tools to get from zero to published in as painless a way possible.&lt;/p&gt;

&lt;p&gt;Here we start with my recently launched tool (plug alert!) &lt;a href="https://github.com/sam-aldis/kwik"&gt;kwik&lt;/a&gt;&lt;br&gt;
also available on dockerhub &lt;a href="https://hub.docker.com/u/ukjp/"&gt;ukjp/kwik&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you are using docker to create your environment which I recommend, you will see why later - we need to start with the command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;docker run &lt;span class="nt"&gt;-it&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; 9091:9091 &lt;span class="nt"&gt;--name&lt;/span&gt; MyProject ukjp/kwik
&lt;span class="c"&gt;# Replace MyProject with the name of your project&lt;/span&gt;
&lt;span class="c"&gt;# add [-P if you want to access any ports specific to your project]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will download and run the kwik docker image and create the container with the name MyProject. You will then be dropped into a shell where you can run&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;kwik &lt;span class="nt"&gt;-o&lt;/span&gt; linux &lt;span class="nt"&gt;-p&lt;/span&gt; https://gitlab.com/my/repo &lt;span class="nt"&gt;-d&lt;/span&gt; my-repo-dev
&lt;span class="c"&gt;# Note - You can prefix a repo with _/ if its from github, for example&lt;/span&gt;
&lt;span class="c"&gt;# _/sam-aldis/kwik will become https://github.com/sam-aldis/kwik&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This command will clone your repo into the directory my-repo-dev&lt;br&gt;
and then grab a copy of code-server (vscode in your browser), extract it and start it running on port 9091 with the password displayed to you.&lt;/p&gt;

&lt;p&gt;Now you can open a browser at &lt;a href="http://localhost:9091"&gt;http://localhost:9091&lt;/a&gt; and start downloading the extensions you require.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Q8-rw2_v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/4zy2igqr05askdyvr4rx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Q8-rw2_v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/4zy2igqr05askdyvr4rx.png" alt="VSCode" width="880" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;start setting up your environment with all the tools you need using apt etc.&lt;/p&gt;

&lt;p&gt;then on the host computer run&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;docker commit MyProject dockerhub/repo
&lt;span class="c"&gt;# Replacing MyProject with the name you gave to your docker image&lt;/span&gt;
&lt;span class="c"&gt;# and dockerhub/repo with your dockerhub username/imagename you want to &lt;/span&gt;
&lt;span class="c"&gt;# upload as.&lt;/span&gt;
&lt;span class="nv"&gt;$ &lt;/span&gt;docker push dockerhub/repo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now you can run your project anytime from any machine and have all your ide and environment ready to use with your preferred tooling!&lt;br&gt;
just run the code-server from within your project directory (under code-server2-[release]-[os]/code-server with option --port 9091)&lt;/p&gt;

</description>
      <category>devops</category>
      <category>docker</category>
      <category>vscode</category>
      <category>git</category>
    </item>
    <item>
      <title>I Learned Rust and Developed (badly) kwik in a day, Ask Me Anything!</title>
      <dc:creator>UKJP</dc:creator>
      <pubDate>Mon, 11 Nov 2019 16:35:01 +0000</pubDate>
      <link>https://dev.to/samaldis/i-learned-rust-and-developed-badly-kwik-in-a-day-ask-me-anything-6eg</link>
      <guid>https://dev.to/samaldis/i-learned-rust-and-developed-badly-kwik-in-a-day-ask-me-anything-6eg</guid>
      <description>&lt;p&gt;I developed a tool called &lt;a href="https://github.com/sam-aldis/kwik"&gt;kwik&lt;/a&gt;&lt;br&gt;
after learning rust in a day.&lt;/p&gt;

&lt;p&gt;I don't think its complex or even written well and my understanding of rust still has a way to go but if you want to learn to write rust code in a day ask me a question.&lt;/p&gt;

</description>
      <category>ama</category>
    </item>
    <item>
      <title>kwik - [now with docker image]</title>
      <dc:creator>UKJP</dc:creator>
      <pubDate>Mon, 11 Nov 2019 16:31:48 +0000</pubDate>
      <link>https://dev.to/samaldis/kwik-now-with-docker-image-3md3</link>
      <guid>https://dev.to/samaldis/kwik-now-with-docker-image-3md3</guid>
      <description>&lt;p&gt;[Update] - Any repo can be cloned and the prefix _/ acts as a quick way to type &lt;a href="https://github.com/"&gt;https://github.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So yesterday I wrote and released the kwik tool to help quickly bootstrap a new development environment. Today it got more useful.&lt;/p&gt;

&lt;p&gt;The new Docker Image was uploaded to the dockerhub meaning you can now run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;docker run &lt;span class="nt"&gt;-it&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; 9091:9091 ukjp/kwik
&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; kwik &lt;span class="nt"&gt;-o&lt;/span&gt; linux &lt;span class="nt"&gt;-p&lt;/span&gt; _/sam-aldis/kwik &lt;span class="nt"&gt;-d&lt;/span&gt; kwik-dev
&lt;span class="c"&gt;# Where _/sam-aldis/kwik is your github repo (_/ gets replaced with github.com&lt;/span&gt;
&lt;span class="c"&gt;# OR:&lt;/span&gt;
&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; kwik &lt;span class="nt"&gt;-o&lt;/span&gt; linux &lt;span class="nt"&gt;-p&lt;/span&gt; https://mygitprovider.com/my/repo &lt;span class="nt"&gt;-d&lt;/span&gt; my-repo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and instantly have a docker container with an ide bootstrapped that you can now work on running in your browser on port 9091!&lt;/p&gt;

&lt;p&gt;Now commit this container to a new image and push it to your docker repo and you can share your project with your team, with your plugins for vscode and environment exactly the same as on your machine!&lt;/p&gt;

&lt;p&gt;please help me by up-voting on producthunt:&lt;br&gt;
&lt;a href="https://www.producthunt.com/posts/kwik"&gt;here&lt;/a&gt;&lt;br&gt;
and staring on github:&lt;br&gt;
&lt;a href="https://github.com/sam-aldis/kwik"&gt;https://github.com/sam-aldis/kwik&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;any help on the project itself will be hugely appreciated as unless it takes off I don't have enough time day-to-day to keep working on it. &lt;/p&gt;

</description>
      <category>docker</category>
      <category>devops</category>
      <category>rust</category>
      <category>python</category>
    </item>
    <item>
      <title>Python FizzBuzz</title>
      <dc:creator>UKJP</dc:creator>
      <pubDate>Mon, 11 Nov 2019 13:44:11 +0000</pubDate>
      <link>https://dev.to/samaldis/python-fizzbuzz-3p97</link>
      <guid>https://dev.to/samaldis/python-fizzbuzz-3p97</guid>
      <description>&lt;p&gt;Note, my new tool kwik is available &lt;a href="https://sam-aldis.github.io/kwik/"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So doing a few fizzbuzz in different languages today and got to python,&lt;br&gt;
Could someone tell me if the following is acceptable in interviews and what their most concise version is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;fizzbuzz&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;%&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(((&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="ow"&gt;and&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="ow"&gt;and&lt;/span&gt;&lt;span class="s"&gt;"fizzbuzz "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;&lt;span class="ow"&gt;or&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="ow"&gt;and&lt;/span&gt;&lt;span class="s"&gt;"fizz "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;&lt;span class="ow"&gt;or&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;==&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="ow"&gt;and&lt;/span&gt;&lt;span class="s"&gt;"buzz "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;&lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;102&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;fizzbuzz&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Sam.&lt;/p&gt;

</description>
      <category>python</category>
      <category>interview</category>
      <category>fizzbuzz</category>
      <category>dev</category>
    </item>
    <item>
      <title>kwik - quickly bootstrap a project</title>
      <dc:creator>UKJP</dc:creator>
      <pubDate>Mon, 11 Nov 2019 11:47:57 +0000</pubDate>
      <link>https://dev.to/samaldis/kwik-quickly-bootstrap-a-project-d9d</link>
      <guid>https://dev.to/samaldis/kwik-quickly-bootstrap-a-project-d9d</guid>
      <description>&lt;p&gt;After writing something similar as a tool to quickly grab a repository in dart I decided to create the same thing in rust just to teach myself this language, I knew the basics as I had been dabbling in rust for a while but hadn't actually created anything useful.&lt;br&gt;
The project can be found over at:&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;a href="https://sam-aldis.github.io/kwik/"&gt;https://sam-aldis.github.io/kwik/&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;As I'm sure you know, these days we work from many different locations and being able to either quickly scaffold a new project from a template repository or get straight to work complete with a copy of (vs)code-server running be it from a docker image, locally or on a server within a minute is something many people will find useful.&lt;/p&gt;

&lt;p&gt;I need help to move this project forward and need someone to compile it to osx (and eventually windows) for me as my day job will inevitably take priority but for now this maybe something useful to you.&lt;/p&gt;

&lt;p&gt;== EDIT ==&lt;br&gt;
launched on producthunt, help a fellow dev.to'er and upvote :)&lt;br&gt;
&lt;a href="https://www.producthunt.com/posts/kwik?utm_source=badge-featured&amp;amp;utm_medium=badge&amp;amp;utm_souce=badge-kwik"&gt;here&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ZGJnHYJV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://api.producthunt.com/widgets/embed-image/v1/featured.svg%3Fpost_id%3D174086%26theme%3Dlight" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ZGJnHYJV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://api.producthunt.com/widgets/embed-image/v1/featured.svg%3Fpost_id%3D174086%26theme%3Dlight" alt="kwik" width="250" height="54"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>rust</category>
      <category>devops</category>
      <category>vscode</category>
      <category>project</category>
    </item>
  </channel>
</rss>
