<?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 Thilo on Medium]]></title>
        <description><![CDATA[Stories by Thilo on Medium]]></description>
        <link>https://medium.com/@pingu?source=rss-25d65ee2da8f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ewSPUfFtfmABgRzy.jpeg</url>
            <title>Stories by Thilo on Medium</title>
            <link>https://medium.com/@pingu?source=rss-25d65ee2da8f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 06:24:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pingu/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[Cuckoo’s egg in every car]]></title>
            <link>https://medium.com/@pingu/cuckoo-s-egg-in-every-car-c706bf3b4124?source=rss-25d65ee2da8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c706bf3b4124</guid>
            <category><![CDATA[cars]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[automotive]]></category>
            <dc:creator><![CDATA[Thilo]]></dc:creator>
            <pubDate>Wed, 26 Aug 2015 21:07:20 GMT</pubDate>
            <atom:updated>2015-08-27T05:25:41.699Z</atom:updated>
            <content:encoded><![CDATA[<p>What if, if you had a back door into every car on the planet?</p><p>What if, a manufacturer of the car implemented the latest and greatest security possible, but this back door goes under the radar?</p><p>Actually, that is proposed by some semiconductor manufacturer from Japan.</p><p>Backup a little and start from the beginning. For the development, testing and quality assurance of electronic devices there is a serial interface established called JTAG (or Boundary Scan in former times). I don’t want to go into much detail, in general it is designed to have access to all logic devices on an electronic board to verify that production of the board was good. The same interface is also used during development and testing of the board. To access that interface, you need a physical access to the electronic board. With that serial interface you can control almost any logic device including any processor on that electronic board independent of the software running on that processor. You have complete control over the processor, independent what security measures are implemented by the software, because YOU CONTROL the software.</p><p>Now, some semiconductor manufacturer thought about this and automotive. In automotive we have somewhere between 40 to 100 electronic control units (ECU) within a car. Wouldn’t it be nice to test and diagnose all the processors from a single diagnosis interface? But within the car all the ECUs are connected via a dedicated network called Controller Area Network (CAN) and not via JTAG. What if, if we have a special crafted CAN message, that triggers our test and diagnostic mode of the processor? Yes, this is proposed by someone to be <a href="http://www.iec.ch/dyn/www/f?p=103:38:0::::FSP_ORG_ID,FSP_APEX_PAGE,FSP_LANG_ID,FSP_PROJECT:1251,23,25,PNW%2047-2243%20Ed.%201.0">standardized within IEC</a>. They even propose: “Moreover, through Car2X technology, a remote test/diagnosis can be achieved.”</p><p>That means, some semiconductor manufacturer proposes that, any processor reacts to a special crafted CAN message to switch into a debugging mode. In that debugging/testing mode you have full control over the processor. That means, you implement any security measure into the device, it will be circumvented by that debugging/testing mode. With Car2X or any other gateway technology, this “feature” will be available to the world at large. <strong>What can possibly go wrong?</strong></p><p>Actually, that is proposed not only for automotive, but also for medical and other industries.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c706bf3b4124" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ruby on Rails]]></title>
            <link>https://medium.com/@pingu/ruby-on-rails-1dc8acaa888a?source=rss-25d65ee2da8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1dc8acaa888a</guid>
            <dc:creator><![CDATA[Thilo]]></dc:creator>
            <pubDate>Sat, 15 Jun 2013 13:53:38 GMT</pubDate>
            <atom:updated>2013-06-15T13:53:38.395Z</atom:updated>
            <content:encoded><![CDATA[<h4>Get things done, the holy grail or the bag of hurt</h4><p>Ruby and in particular Ruby on Rails is the hot topic by startups for some time now. Ruby on Rails is cool and easy to use. If you need something to get done, then make it in Ruby on Rails. There are also services like <a href="https://www.heroku.com/">Heroku</a>, which makes deploying your applications easy, and services like <a href="https://github.com/">Github</a>,which makes managing your applications easy.</p><p>Programming in Ruby itself is much more easier than in other modern language. Many things are strait forward and almost more and more like human language. Most of the stuff is handled automatically and almost magically for you by Ruby itself. You don’t have to think about variables. You just use them. Ruby will manage the type handling for you. Ruby will manage the memory management for you, these days called garbage collection. It is these things that Ruby learned from Smalltalk and other languages to make it easy to use.</p><p>That is, why Ruby attracts more and more people and gets them into programming. Which is a good thing, as Kirk McDonald would say according to his opinion in the Wall Street Journal “<a href="http://online.wsj.com/article/SB10001424127887323744604578470900844821388.html#">Sorry, College Grads, I Probably Won’t Hire You</a>”.</p><p>But there is the flip side of the coin or as Greg Joergensen said in his opinion “<a href="http://typicalprogrammer.com/?p=175">Sorry, Digital Ad Exec, I Probably Don’t Want To Work For You</a>”:</p><blockquote><strong>A dilettante is not a programmer</strong></blockquote><blockquote>Learning a little bit of programming is probably worse than not learning it at all if you are going to be working with professional programmers.</blockquote><p>I would go even further and would say, it is not only about to be a programmer but a software developer. A software developer, who not only knows how to code, but also how to translate a problem into a solution, that is maintainable. The main issue here is <strong>Maintainability</strong>.</p><p>To illustrate the problem of maintainability, I will dig into some details.</p><h3>First problem: running Ruby itself</h3><p>Some times ago I came across <a href="http://www.redmine.org/">Redmine</a> when I was looking for an easy to use, maintainable and easy to customize issue tracker. It was my first contact with Ruby and Ruby on Rails. With lots of problems I managed somehow to run. Now, to play a little bit, I wanted to upgrade Redmine to the latest version. This brought some caveats. I had to update Ruby to a newer version and also the Rails framework, on CentOS 5. I know, CentOS 5 is not known to have packages for the latest and greatest. I had to find other ways to get to the required Ruby version. Everybody says: You should use <a href="https://rvm.io/">RVM</a>. Installing RVM itself is without a hassle, but then things start getting worse.</p><p>First I had to lookup which versions are available:</p><blockquote>rvm list known</blockquote><p>I’ve got listed versions 1.9.3 and 2.0.4, which seems to be good. So, I’d like to install 1.9.3 with, as any documentation suggests:</p><blockquote>rvm install 1.9.3</blockquote><p>Bang. Error message that there is no binary for my system. WTF? The list command clearly listed that the version is available. After some more closed looked, I detected, that the version available was 1.9.3-p392 and the install command tried to install 1.9.3-p429. The list command has different list of known versions that the install command. For me, that clearly is a fucked up version management.</p><p>How can such an easy task be screwed up so easily? The only thing, I as a software developer can think of, is that there are no clear definitions how things are handled internally. Some programmer just had some idea and has implemented it without thinking about consequences or side effects. That happens, if you just get things done.</p><h3>Second problem: Gems version management</h3><p>In the same Redmine installation I wanted to test out some plugins. There are two plugins who needed the Gem <em>acts-as-taggable-on</em>. Ruby defines version management for Gems that sounds great, at first. You can easily define the required version in you Gemfile and the rest his handled by the Gem version management:</p><blockquote>gem ‘acts-as-taggable-on’, ‘~&gt;2.3.1&#39;</blockquote><p>That should mean, that any version between 2.3.1 and less than 2.4.0 is good. But what happens if a number of plugins define, that they need a certain version of a Gem? It should be handled by the Gem version management. Nope, it does not work. Even as 2.3.3 falls within the definition of ~&gt;2.3.1 it is recognized as the requirement of a different version. By the way, version 2.3.3 is installed on that system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/0*AOUxtxRO3VAaI60l.png" /></figure><p>The Ruby Gems version management is screwed up as well. Again presumably by the same “getting things done” people and not by software developers.</p><h3>Third problem: Programming style</h3><p>The same principle goes on, when you look at the code in Redmine or some of its plugins. Here to code for the <a href="https://github.com/tigrish/redmine_s3">S3 plugin</a> that includes itself into the <a href="https://github.com/tigrish/redmine_s3/blob/master/lib/redmine_s3/attachment_patch.rb">attachment storage object</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/0*iCW1Z1fliWDLVu1J.png" /></figure><p>It adds itself to the methods of the base object. It adds itself, by taking the data, pushing it to S3 and then clearing the data as there is no data. WTF? Just kicking in into someones code, doing something, and then returning Zero as there is nothing. Clearly, a programmer, a coder, who may knows to code, but no sense in thinking about the consequences, the side effects, the whole picture. Thats the “getting things done” thinking.</p><h3>“Get things done” is the problem</h3><p>The problem is more inherently. I think, the problem is in the “get things done” thinking. The problem is, that Ruby animates the people to the “getting things done” thinking, than enforcing it into thinking of patterns, of consequences, of side effects. That than even by programmers that Greg called “dilettantes”.</p><p>I presume, the next big thing in Ruby is: <strong>Security</strong>. I assume, that many of those Ruby code gets deployed in many web applications, because it is so easy. People, who are not aware even of simple software development principles, presumably are also not aware of security. You can recognize this already, by the number of Startups who provide correct SSL for their services.</p><p>Just, for example (I know, no Ruby): <a href="http://instagram.com/">Instagram</a> is still not using SSL and a such allow session riding and all those other nice things.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1dc8acaa888a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>