<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Javascript on Janik von Rotz</title>
    <link>https://janikvonrotz.ch/tags/javascript/</link>
    <description>Recent content in Javascript on Janik von Rotz</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 18 Jan 2022 11:38:00 +0100</lastBuildDate>
    <atom:link href="https://janikvonrotz.ch/tags/javascript/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>JavaScript: Get array with unique objects</title>
      <link>https://janikvonrotz.ch/2022/01/18/javascript-get-array-with-unique-objects/</link>
      <pubDate>Tue, 18 Jan 2022 11:38:00 +0100</pubDate>
      <guid>https://janikvonrotz.ch/2022/01/18/javascript-get-array-with-unique-objects/</guid>
      <description>&lt;p&gt;In JavaScript you can use &lt;code&gt;Set&lt;/code&gt; to get an array with unique items. However, this does not work with objects. Converting the object to a string before creating the set is the solution.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Convert markdown wiki Links to html links</title>
      <link>https://janikvonrotz.ch/2020/09/03/convert-markdown-wiki-links-to-html-links/</link>
      <pubDate>Thu, 03 Sep 2020 11:35:27 +0200</pubDate>
      <guid>https://janikvonrotz.ch/2020/09/03/convert-markdown-wiki-links-to-html-links/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://de.wikipedia.org/wiki/Hilfe:Links&#34;&gt;Wiki-Links&lt;/a&gt; &lt;code&gt;[[ ]]&lt;/code&gt; are not part of the markdown specification, but are often used by markdown editors such as &lt;a href=&#34;https://obsidian.md/&#34;&gt;Obsidian&lt;/a&gt;. As they are not supported by most markdown converters we need to convert the wiki links on our own.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Apollo GraphQl server and client sorting</title>
      <link>https://janikvonrotz.ch/2020/01/29/apollo-graphql-server-and-client-sorting/</link>
      <pubDate>Wed, 29 Jan 2020 14:05:23 +0100</pubDate>
      <guid>https://janikvonrotz.ch/2020/01/29/apollo-graphql-server-and-client-sorting/</guid>
      <description>&lt;p&gt;GraphQl is not opinionated about sorting and pagination. It is up to you to implement the sorting for your query. I&amp;rsquo;ve seen various approaches doing that, but none seemed elegant. After compiling a few blog posts and tutorials I came up with the following solution.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Simple Hugo page search with Lunr.js</title>
      <link>https://janikvonrotz.ch/2019/06/10/2019-06-10-simple-hugo-page-search-with-lunrjs/</link>
      <pubDate>Mon, 10 Jun 2019 12:11:31 +0200</pubDate>
      <guid>https://janikvonrotz.ch/2019/06/10/2019-06-10-simple-hugo-page-search-with-lunrjs/</guid>
      <description>&lt;p&gt;Hugo is static website engine and acutally used to generated this blog post. Due to its static nature, there is now way to provide serverside capablities for dynamic lookups such as used by a search feature. Everything dynamically has to be done client side. In this post I am going to setup a search page for a Hugo site the most simple way.&lt;/p&gt;</description>
    </item>
    <item>
      <title>State of JavaScript 2018</title>
      <link>https://janikvonrotz.ch/2018/11/19/state-of-javascript-2018/</link>
      <pubDate>Mon, 19 Nov 2018 11:16:09 +0100</pubDate>
      <guid>https://janikvonrotz.ch/2018/11/19/state-of-javascript-2018/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://stateofjs.com/&#34;&gt;State of JavaScript 2018&lt;/a&gt; has just been released. It is one of the biggest survey about JavaScript development. If you wanna know what is going on in the confusing world of JS, make sure to pay a visit. They did a great job at visualizing and showcasing the results.&lt;/p&gt;</description>
    </item>
    <item>
      <title>JS snippet: Set tallest height on siblings</title>
      <link>https://janikvonrotz.ch/2017/08/06/js-snippet-set-tallest-height-on-siblings/</link>
      <pubDate>Sun, 06 Aug 2017 20:40:15 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2017/08/06/js-snippet-set-tallest-height-on-siblings/</guid>
      <description>&lt;p&gt;This post is another contribution to &amp;ldquo;I hope that I never have to use jQuery again&amp;rdquo;. The problem solved this time is quite simple. We want to set the same height for a group of divs. So not like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://janikvonrotz.ch/wp-content/uploads/2017/07/Not-equal-heights-on-divs.png&#34; alt=&#34;Untitled&#34;&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Graphql with Apollo, Meteor and React</title>
      <link>https://janikvonrotz.ch/2016/10/09/graphql-with-apollo-meteor-and-react/</link>
      <pubDate>Sun, 09 Oct 2016 19:39:30 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2016/10/09/graphql-with-apollo-meteor-and-react/</guid>
      <description>&lt;p&gt;For my last project I had to build a web application to administrate a MongoDB database. Due to using Meteor quite a lot I heard about Graphql and the Apollostack. Graphql, which is a specification done by Facebook engineers, promises to be the better REST API (which I hope it is). I became curious and decided the build the server API with Apollo. First I tried to evade using the Meteor as build system as I don&amp;rsquo;t want to get too accustomed to this full-stack ecosystem. However, building a live-reload server and client build system in ES6 with Node.js, Babel and Webpack was simply too much work compared to building this simple web app. So in result this was my stack:&lt;/p&gt;</description>
    </item>
    <item>
      <title>OLMOTO - An app built by beginners</title>
      <link>https://janikvonrotz.ch/2016/08/02/olmoto-an-app-built-by-beginners/</link>
      <pubDate>Tue, 02 Aug 2016 12:30:05 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2016/08/02/olmoto-an-app-built-by-beginners/</guid>
      <description>&lt;p&gt;One month ago I started teaching a friend the basics of JavaScript with Meteor, Mantra and React.&#xA;Together we&amp;rsquo;ve built an app to create and share events with friends. It was an awesome experience. Yesterday we launched a private version on heroku. For us this was a great accomplishment. I learned a lot from this project and thought about sharing it with world.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://codeberg.org/janikvonrotz/olmoto&#34;&gt;https://codeberg.org/janikvonrotz/olmoto&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Some technical features and challenges we solved:&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to publish a react component to the npm directory</title>
      <link>https://janikvonrotz.ch/2016/06/09/how-to-publish-a-react-component-to-the-npm-directory/</link>
      <pubDate>Thu, 09 Jun 2016 12:33:36 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2016/06/09/how-to-publish-a-react-component-to-the-npm-directory/</guid>
      <description>&lt;p&gt;This time I&amp;rsquo;ll show you how to publish react components to the npm directory. This guide does not cover testing it only shows the easiest way to use your components for different projects as npm dependency.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Meteor White Paper</title>
      <link>https://janikvonrotz.ch/2015/12/16/meteor-white-paper/</link>
      <pubDate>Wed, 16 Dec 2015 21:05:20 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2015/12/16/meteor-white-paper/</guid>
      <description>&lt;h1 id=&#34;introduction&#34;&gt;Introduction&lt;/h1&gt;&#xA;&lt;p&gt;Today&amp;rsquo;s internet would not work without web applications. Web applications made the web dynamic and extended its targeted audience. The applications made it possible for companies to create new business models and sell their goods and services online. They became popular due to the ubiquity of web browsers, and the convenience of using a web browser as a client (Wikipedia, 2015). Undoubtedly, the technology to build web applications is the cornerstone to enabling the enterprises to keep up with the pace of business. Life cycles of products have become shorter while the demand raised at the same time. Enterprises have to accelerate their application development process to stay competitive in the future.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Let’s write a Laravel application – Project template</title>
      <link>https://janikvonrotz.ch/2015/01/30/lets-write-a-laravel-application-project-template/</link>
      <pubDate>Fri, 30 Jan 2015 10:28:03 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2015/01/30/lets-write-a-laravel-application-project-template/</guid>
      <description>&lt;p&gt;In web development there are tons of programs and tools and due to that also complex and very different development strategies.&#xA;Luckily dependency handling got a lot easier. For my Laravel project setup we will use 3 different package managers.&#xA;Every package manager of course manages a different resource, we will use composer for php packages, npm for everything related to Node.js and Bower for web packages.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Node.js Nginx proxy website</title>
      <link>https://janikvonrotz.ch/2014/04/02/node-js-nginx-proxy-website/</link>
      <pubDate>Wed, 02 Apr 2014 06:52:03 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2014/04/02/node-js-nginx-proxy-website/</guid>
      <description>&lt;p&gt;&lt;em&gt;This post is part of my &lt;a href=&#34;https://janikvonrotz.ch/your-own-virtual-private-server-hosting-solution/&#34;&gt;Your own Virtual Private Server hosting solution&lt;/a&gt; project.&lt;/em&gt;&lt;br&gt;&#xA;&lt;em&gt;Get the latest version of this article here: &lt;a href=&#34;https://gist.github.com/9407504&#34;&gt;https://gist.github.com/9407504&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;h1 id=&#34;introduction&#34;&gt;Introduction&lt;/h1&gt;&#xA;&lt;p&gt;It&amp;rsquo;s recommanded to publish a Node.js application with a Nginx proxy website.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Step by Step: Install Ghost Blog</title>
      <link>https://janikvonrotz.ch/2014/03/03/step-by-step-install-ghost-blog/</link>
      <pubDate>Mon, 03 Mar 2014 16:34:55 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2014/03/03/step-by-step-install-ghost-blog/</guid>
      <description>&lt;p&gt;&lt;strong&gt;Latest Version of this guide: &lt;a href=&#34;https://gist.github.com/8542013&#34;&gt;https://gist.github.com/8542013&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Finishing this guide you&amp;quot;ll get:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A running Ghost installation&lt;/li&gt;&#xA;&lt;li&gt;Amazon SES mail configuration&lt;/li&gt;&#xA;&lt;li&gt;Simple ssh hardenings&lt;/li&gt;&#xA;&lt;li&gt;Nginx proxy&lt;/li&gt;&#xA;&lt;li&gt;Node.js configured with forever&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Specification of latest running installation:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Date: 21.01.2014&lt;/li&gt;&#xA;&lt;li&gt;OS: Ubuntu 64 bit - 12.04.4 LTS&lt;/li&gt;&#xA;&lt;li&gt;Provider: Amazon EC2&lt;/li&gt;&#xA;&lt;li&gt;Mail service: Amazon SES&lt;/li&gt;&#xA;&lt;li&gt;Browser: Google Chrome - 31.0.1650.63&lt;/li&gt;&#xA;&lt;li&gt;Ghost: 0.4&lt;/li&gt;&#xA;&lt;li&gt;Node: 0.10.24&lt;/li&gt;&#xA;&lt;li&gt;npm: 1.3.21&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>How to debug your Node.js application</title>
      <link>https://janikvonrotz.ch/2014/02/21/how-to-debug-your-node-js-application/</link>
      <pubDate>Fri, 21 Feb 2014 14:20:13 +0000</pubDate>
      <guid>https://janikvonrotz.ch/2014/02/21/how-to-debug-your-node-js-application/</guid>
      <description>&lt;p&gt;Recently I&amp;rsquo;ve started developing with Node.js. As a beginner I had to set up an &lt;a href=&#34;https://en.wikipedia.org/wiki/Integrated_Development_Environment&#34;&gt;IDE&lt;/a&gt; which meets my requirements such as debugging code. I&amp;rsquo;ve tried several IDE&amp;rsquo;s such as Microsofts&amp;rsquo;s WebMatrix or Eclipse Node.js extension. But all of them literally sucked, they were are a pain to install or didn&amp;rsquo;t work properly.&lt;/p&gt;&#xA;&lt;p&gt;Luckily I came along this project: &lt;a href=&#34;https://github.com/node-inspector/node-inspector&#34;&gt;&lt;a href=&#34;https://github.com/node-inspector/node-inspector&#34;&gt;https://github.com/node-inspector/node-inspector&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
