<?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 Niklas Korz on Medium]]></title>
        <description><![CDATA[Stories by Niklas Korz on Medium]]></description>
        <link>https://medium.com/@niklaskorz?source=rss-fd98eeda115a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ST76ptOFLoa5fE-YVHQMHg.jpeg</url>
            <title>Stories by Niklas Korz on Medium</title>
            <link>https://medium.com/@niklaskorz?source=rss-fd98eeda115a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 04:09:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@niklaskorz/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[Embedly + alugha = ♥]]></title>
            <link>https://medium.com/@niklaskorz/embedly-alugha-a03eec326820?source=rss-fd98eeda115a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a03eec326820</guid>
            <category><![CDATA[language-learning]]></category>
            <category><![CDATA[video-marketing]]></category>
            <category><![CDATA[twitter-marketing]]></category>
            <category><![CDATA[language]]></category>
            <category><![CDATA[videos]]></category>
            <dc:creator><![CDATA[Niklas Korz]]></dc:creator>
            <pubDate>Mon, 27 Mar 2017 11:33:20 GMT</pubDate>
            <atom:updated>2017-03-27T11:43:47.092Z</atom:updated>
            <content:encoded><![CDATA[<p>I am happy to announce that we’ve been <a href="http://embed.ly/provider/alugha">approved as a content provider</a> by the great guys at <a href="https://embed.ly/">embed.ly</a>!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Falugha.com%2Fembed%2Fweb-player%3Fv%3D11a9c046-8c72-11e6-ac70-97ccc98b1e51&amp;url=https%3A%2F%2Falugha.com%2Fvideos%2F11a9c046-8c72-11e6-ac70-97ccc98b1e51%3Flang%3Deng&amp;image=https%3A%2F%2Fapi.alugha.com%2Fassetdata%2F085694f0-8c72-11e6-b3ef-75079bfc0090%2F720x405.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=alugha" width="1280" height="720" frameborder="0" scrolling="no"><a href="https://medium.com/media/f775348364bb74e660c22b0caf1d6112/href">https://medium.com/media/f775348364bb74e660c22b0caf1d6112/href</a></iframe><h3>What does this mean for our users?</h3><p>You can now embed <a href="https://alugha.com/">alugha</a> videos on websites using embed.ly by copy &amp; pasting the link to the video, as I’ve done above. It’s that easy.</p><p>Where does this work? On Medium, LinkedIn (for articles and profiles), Reddit, Kickstarter and <a href="http://embed.ly/providers">many more cool websites</a>.</p><p>One more thing! Although not an embed.ly customer, alugha also works on twitter:</p><h3>alugha on Twitter</h3><p>Laws for #drones in Germany? #MCMO @berndtkorz #bilingual in german &amp;amp; english! ⬇⬇ https://t.co/fR6UT6BO0g</p><p>Just paste the video link into your tweet and twitter and alugha do the rest. How cool is that?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a03eec326820" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LG Vertretungsplan App for Android]]></title>
            <link>https://medium.com/@niklaskorz/lg-vertretungsplan-app-for-android-910ed173ecae?source=rss-fd98eeda115a------2</link>
            <guid isPermaLink="false">https://medium.com/p/910ed173ecae</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Niklas Korz]]></dc:creator>
            <pubDate>Fri, 23 Oct 2015 11:48:03 GMT</pubDate>
            <atom:updated>2017-03-12T11:47:36.395Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iXygpgRAehsFvXP7JaEW9g.png" /></figure><p><em>Disclaimer: All data and names appearing in these screenshots are fictitious. Any resemblance to real data or real persons, living or dead, is purely coincidental. They do not include any data shared by the online substitution plan and therefore comply with its terms of use.</em></p><p>The last few weeks, I’ve been developing an app for the substitution plan of my school (hence the name: “Vertretungsplan” is German for substitution plan).</p><h4>Previous Situation</h4><p>Before the development of the Android app, students of my school were able to view the substitution plan…</p><ul><li>in the school building</li><li>online (currently limited to students of the MSS)</li></ul><p>The online substitution plan was introduced this school year, allowing students to view it “comfortably” after school, or right before at about 7:30am.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*PWw-hYD0HPih1dNX." /></figure><p>Albeit a nice a feature, it also has its problems:</p><ul><li>Ugly user interface</li><li>Bad readability, thanks to the poorly chosen contrast of text and background</li><li>No mobile interface, and a bad user experience for mobile users (too much scrolling, hardly reachable control elements)</li></ul><h4>The Idea</h4><p>Basically, the idea was to develop an app that provides the user only the data that is relevant to him. Currently, this means that he is only displayed the courses for his class level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/0*qJNqjQ6MK_BLCp3L." /></figure><p>To keep things clear, the user would only see the most relevant data at a glance, further information being available at a single click.</p><h4>The Problem</h4><p>In theory, receiving the necessary data would be the easiest part. I would contact the responsible AG (“Arbeitsgemeinschaft”, working group) and ask them to either give me access to the source code and let me implement a machine-readable API, or let them implement the API themselves. I didn’t even get a response to my request by the responsible developers.</p><p>So as it turns out, it wasn’t that easy. Cooperation was pretty much non-existent and communication was sparse. And having some pride myself, I thought I could do this on my own, without having their support.</p><h4>The Solution</h4><p>Thankfully, I am more or less experienced in web scraping, as a result of past jobs involving data gathering from multiple websites. This was no different. The idea is that you would read and use the website as if you were a user. So in this case, I worked with the <a href="http://jsoup.org/">jsoup library</a> and CSS selectors. Jsoup describes itself as a “convenient API for extracting and manipulating data”. Of course, users don’t parse websites by using CSS selectors, but it’s a good idea to begin with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/0*EKCNShg1tz7CgegP." /></figure><p>The steps for gathering the plan data are:</p><ol><li>Get the HTML code for the plan we want to get (/heute for today and /morgen for tomorrow)</li><li>Parse the code using jsoup</li><li>Get all table rows using a CSS selector: #vertretungsplan tr</li><li>For each row, get all td elements, parse the data, and feed it to a list</li></ol><p>Having parsed all the data, we could display it as intended. One more problem I ran into was authentication. The online substitution plan uses PHP session ids and cookies for authentication. The authentication flow would be as follows: Enter your data into the login form, POST request to the index page to have your session id authenticated and from there on, get the data you want from /heute and /morgen. But this meant an extra request for authentication each time we needed to login. And not being authenticated still needed me to parse the page to check for errors, since this “beast of a product” simply makes use of no HTTP feature whatsoever. The HTML code is malformed as well: Ids, which ought to be unique, are reused multiple times and typos are included as well.</p><p>As I later discovered, it does not matter which page you send the post request to. So to save traffic, authentication information is sent with each request to either /heute or /morgen. At first glance, this might be considered a security issue, but the requests are performed using TLS and no sensitive data is connected to the accounts.</p><h4>Future Ideas</h4><p>The biggest feature planned for the future are notifications based on a list of your courses. At a fixed interval, the app would refresh the plan data, generate a changeset and based on this set, show notifications concerning your courses. I am not sure yet, however, whether I will include a cloud sync feature for this, since the app is currently running without further server software, save the online substitution plan.</p><h4>Open Source</h4><p>The <a href="https://github.com/niklaskorz/LGVertretungsplan">complete app’s source code</a> is available at Github under the BSD-2-clause-license.</p><p><em>Originally published at </em><a href="http://niklaskorz.de/post/118808760504/lg-vertretungsplan-app-for-android"><em>niklaskorz.de</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=910ed173ecae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Progress on KaraPy]]></title>
            <link>https://medium.com/@niklaskorz/progress-on-karapy-6d2c8b6e693?source=rss-fd98eeda115a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d2c8b6e693</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Niklas Korz]]></dc:creator>
            <pubDate>Fri, 23 Oct 2015 11:42:28 GMT</pubDate>
            <atom:updated>2015-10-23T11:45:56.669Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is a follow-up on my previous article </em><a href="http://niklaskorz.de/post/77482981811/updating-karas-python"><em>Updating Kara’s Python</em></a></p><p>KaraPy — the Kara replacement I have been working on using Python — is nearing its open source release. Everything but the “tools” object is implemented, although that does not mean there is not more development to do on it.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fzippy.gfycat.com%2FBitesizedPoshAfricanelephant.mp4&amp;src_secure=1&amp;url=http%3A%2F%2Fgfycat.com%2FBitesizedPoshAfricanelephant&amp;image=https%3A%2F%2Fthumbs.gfycat.com%2FBitesizedPoshAfricanelephant-size_restricted.gif&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=video%2Fmp4&amp;schema=gfycat" width="278" height="308" frameborder="0" scrolling="no"><a href="https://medium.com/media/c23fba0e8e0a5e48712c57d4c6384369/href">https://medium.com/media/c23fba0e8e0a5e48712c57d4c6384369/href</a></iframe><p>As you can see in the small demo above, I also have found replacement for Kara’s images and the respective authors will be named along the images’ licenses in the repository as soon as it is on GitHub. I would also like to add that it is working in both Python 2 and 3 (tested in PyPy 2.1, Python 2.7 and Python 3.3).</p><h4>What Still Has To Be Done</h4><p>First of all and as already mentioned, there are still methods of the “tools” object left to be implemented:</p><ul><li>void showMessage(String string) “Write string to dialog window”</li><li>void checkState() “Checks the execution controller”</li><li>String stringInput(String title) “Lets the user input a string in a dialog window with a title. Returns null if the dialog is aborted using Cancel.”</li><li>int intInput(String title) “Lets the user input a[n] integer number in a dialog window with a title. Returns Integer.MIN_VALUE if the dialog is aborted using Cancel.”</li><li>double doubleInput(String title) “Lets the user input a real number in a dialog window with a title. Returns Double.MIN_VALUE if the dialog is aborted using Cancel.”`</li></ul><p>Secondly, it barely has any tests yet, partly because I am still not used to them, but that definitely is something I have to fix.</p><h4>Ideas For The Future</h4><p>There are some, but I consider these this one the most important: Adding a world editor to KaraPy itself so we do not have to rely on Kara’s editor at all. But I do not think that we already have to stop there. I have good faith that this program could become more than just a Kara clone, meaning that eventually its API will get bigger and that it might get a custom map format supporting more than just the bug, trees, mushrooms and leaves.</p><p><em>Originally published at </em><a href="http://niklaskorz.de/post/77589843928/progress-on-karapy"><em>niklaskorz.de</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d2c8b6e693" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Updating Kara’s Python]]></title>
            <link>https://medium.com/@niklaskorz/updating-kara-s-python-94e9f9188b3a?source=rss-fd98eeda115a------2</link>
            <guid isPermaLink="false">https://medium.com/p/94e9f9188b3a</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Niklas Korz]]></dc:creator>
            <pubDate>Fri, 23 Oct 2015 11:36:32 GMT</pubDate>
            <atom:updated>2015-10-23T11:36:32.522Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently we started learning programming in my computer science course in school using Python. For this, we are using Kara, which looks like a game for children at first sight, but actually is pretty cool. In case you do not know Kara…</p><h4>What Is Kara</h4><p>In <a href="http://www.swisseduc.ch/informatik/karatojava/pythonkara/">Kara</a>, you have a grid which as a preset consists of 9 times 9 fields. On these fields, you can place either a tree, a mushroom, a leaf, Kara or Kara on a leaf. Kara is both the name of the program itself and of its controllable ladybug. Using Python, Java, JavaScript and perhaps a few other languages, you can move, turn and do a bunch of other things with Kara. But Kara’s Python version is not perfect.</p><h4>The Problem</h4><p>Kara’s Python version only supports Python 2.2, which already is 13 years old. The latest stable version is 3.3.4. Already being a programmer for nearly four years, I decided to fix this. At first I tried replacing the Jython library bundled with Kara, which did not really work. So instead, I decided to rewrite the whole thing using the latest version of Python. Aside of that, I think that is makes sense to write a program for learning Python in Python itself.</p><h4>Rewriting Kara</h4><p>As already mentioned, I decided on using Python 3 for rewriting Kara. To make it as portable as possible, I also decided on using Tkinter for the GUI. And since Kara’s worlds are saved in an XML format, I could just use them as-is, which in turn meant I wouldn’t have to rewrite its world editor. So far drawing the world works, and a few other internal things do to. Of course I will have to replace the images since I am not the copyright holder, but while it is in development I will keep on using them. I will post an update as soon as its programmable and release the source code on Github.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/0*T053c7LpYMOai8sp.png" /></figure><p><em>Originally published at </em><a href="http://niklaskorz.de/post/77482981811/updating-karas-python"><em>niklaskorz.de</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94e9f9188b3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>