<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.4.2">Jekyll</generator><link href="/feed.xml" rel="self" type="application/atom+xml" /><link href="/" rel="alternate" type="text/html" /><updated>2023-08-17T11:40:04+00:00</updated><id>/feed.xml</id><title type="html">blog.cebe.cc</title><subtitle>A blog about PHP, Yii, Network and Sysadmin topics. I write if I find something interesting to write about.
</subtitle><entry><title type="html">Testing Composer Plugins</title><link href="/posts/2020-04-17/testing-composer-plugins" rel="alternate" type="text/html" title="Testing Composer Plugins" /><published>2020-04-17T07:26:50+00:00</published><updated>2020-04-17T07:26:50+00:00</updated><id>/posts/2020-04-17/testing-composer-plugins</id><content type="html" xml:base="/posts/2020-04-17/testing-composer-plugins">&lt;p&gt;Composer 2.0 &lt;a href=&quot;https://twitter.com/seldaek/status/1247439245196898305&quot;&gt;is going to be released soon&lt;/a&gt;.
There are some &lt;a href=&quot;https://github.com/composer/composer/blob/1136459d7831b1b16d04d43e4c3fe30d1e3f5b15/UPGRADE-2.0.md&quot;&gt;breaking changes&lt;/a&gt;,
so tooling like composer plugins need to be updated to work with Composer 2.0.&lt;/p&gt;

&lt;p&gt;At &lt;a href=&quot;https://www.yiiframework.com/&quot;&gt;Yii Framework&lt;/a&gt; we tightly integrate with Composer so we have two
plugins that need to work with Composer 2.0:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/yiisoft/yii2-composer/&quot;&gt;yii2-composer&lt;/a&gt; is a litte tool that helps Yii 
to determine which &lt;a href=&quot;https://www.yiiframework.com/doc/guide/2.0/en/structure-extensions&quot;&gt;extensions&lt;/a&gt; are installed.
It also prints &lt;a href=&quot;https://github.com/yiisoft/yii2/blob/master/framework/UPGRADE.md&quot;&gt;upgrade notes&lt;/a&gt; when you update Yii.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/fxpio/composer-asset-plugin&quot;&gt;composer-asset-plugin&lt;/a&gt; brings NPM and bower packages into the PHP world and allows you to manage your Javascript and CSS dependencies together with the PHP dependencies. This is heavily used by Yii widgets, which ship PHP backend code as well as frontend code.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;While making yii2-composer work with Composer 2.0 I found that it was really hard to test if it is working well.
So I set to write a test suite first to see if all functions are working as expected and then go update for 2.0 and run the suite against
different versions.&lt;/p&gt;

&lt;h2 id=&quot;the-problem&quot;&gt;The problem&lt;/h2&gt;

&lt;p&gt;When running an integration test in a prepared directory (empty directory with a &lt;code class=&quot;highlighter-rouge&quot;&gt;composer.json&lt;/code&gt; in it), composer will download the plugin from packagist. To make it run the version I am currently working on, I would need to release a new version
every time I want to test my plugin changes.&lt;/p&gt;

&lt;p&gt;Here is a minimal version of a &lt;code class=&quot;highlighter-rouge&quot;&gt;composer.json&lt;/code&gt; that would install &lt;code class=&quot;highlighter-rouge&quot;&gt;yiisoft/yii2-composer&lt;/code&gt; plugin (because it is required by &lt;code class=&quot;highlighter-rouge&quot;&gt;yiisoft/yii2&lt;/code&gt;).&lt;/p&gt;

&lt;div class=&quot;language-json highlighter-rouge&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;require&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;yiisoft/yii2&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;~2.0.16&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;repositories&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;type&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;composer&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;url&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;https://asset-packagist.org&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;This composer.json does two things:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Require &lt;code class=&quot;highlighter-rouge&quot;&gt;yiisoft/yii2&lt;/code&gt;, which in turn would also install the yii2-composer plugin.&lt;/li&gt;
  &lt;li&gt;Add &lt;a href=&quot;https://asset-packagist.org/&quot;&gt;asset-packagist&lt;/a&gt; to provide asset packages required by Yii. This is a drop-in replacement for the composer-asset-plugin. I could have used composer-asset-plugin but I want only one plugin involved in this test.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;As already mentioned, this will fetch the latest version of yii2-composer from packagist.&lt;/p&gt;

&lt;p&gt;Now how to make composer use the code of the plugin from my developement environment?&lt;/p&gt;

&lt;h2 id=&quot;the-solution&quot;&gt;The solution&lt;/h2&gt;

&lt;p&gt;Composer allows to define your own &lt;a href=&quot;https://getcomposer.org/doc/05-repositories.md&quot;&gt;repositories&lt;/a&gt;, which allows you
to provide packages from private repos or to use &lt;a href=&quot;https://getcomposer.org/doc/05-repositories.md#loading-a-package-from-a-vcs-repository&quot;&gt;your own fork&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&quot;using-my-own-fork&quot;&gt;Using my own fork&lt;/h3&gt;

&lt;p&gt;Using my own fork would work like this:&lt;/p&gt;

&lt;div class=&quot;language-json highlighter-rouge&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;require&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;yiisoft/yii2&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;~2.0.16&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;yiisoft/yii2-composer&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;dev-mybranch as 2.0.x-dev&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;repositories&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;type&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;composer&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;url&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;https://asset-packagist.org&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;type&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;vcs&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;url&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;https://github.com/cebe/yii2-composer&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;I added &lt;code class=&quot;highlighter-rouge&quot;&gt;&quot;yiisoft/yii2-composer&quot;: &quot;dev-mybranch&quot;&lt;/code&gt; in the &lt;code class=&quot;highlighter-rouge&quot;&gt;require&lt;/code&gt; section and also provided a &lt;a href=&quot;https://getcomposer.org/doc/articles/aliases.md&quot;&gt;version alias&lt;/a&gt; &lt;code class=&quot;highlighter-rouge&quot;&gt;as 2.0.x-dev&lt;/code&gt; to make it compatible with the requirement of &lt;code class=&quot;highlighter-rouge&quot;&gt;yiisoft/yii2&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;This is quite simple and works, but I still need to commit and push every time I want to test it. This also does not work
when I want to run tests on Travis CI or Github Actions. When switching the branch I’d need to adjust the composer.json file to point to that branch.&lt;/p&gt;

&lt;p&gt;There has to be a better way. Ideally I’d want to provide the exact code from the current directory without committing, so even pointing composer to the local git directory would not work as it would only fetch the latest commit, but not the uncommitted changes.&lt;/p&gt;

&lt;h3 id=&quot;providing-a-package-zip-file&quot;&gt;Providing a package ZIP file&lt;/h3&gt;

&lt;p&gt;There is a part in the Composer documentation that sounds promising:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;a href=&quot;https://getcomposer.org/doc/05-repositories.md#package-2&quot;&gt;https://getcomposer.org/doc/05-repositories.md#package-2&lt;/a&gt;&lt;br /&gt;
If you want to use a project that does not support Composer through any of the means above, you still can define the package yourself by using a package repository.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Using the &lt;code class=&quot;highlighter-rouge&quot;&gt;package&lt;/code&gt; type repository I can provide a ZIP file which composer will download when installing the package.
In this case it will not download it, but just copy it over from the location I provide.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Make a ZIP file, that contains the package code&lt;/strong&gt;&lt;/p&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;find . -type f | grep -vP '^./.git|^./tests|^./vendor' | zip &quot;/tmp/yii2-composer.zip&quot; -@
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;The line above does the following:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Find all files in the current directory (recursively) using &lt;code class=&quot;highlighter-rouge&quot;&gt;find&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;Exclude all files I do not want in the package. I’m using &lt;code class=&quot;highlighter-rouge&quot;&gt;grep&lt;/code&gt; here because I know how that works, there is probably a more elegant way in &lt;code class=&quot;highlighter-rouge&quot;&gt;find&lt;/code&gt; directly :)&lt;/li&gt;
  &lt;li&gt;passing the list of files to the &lt;code class=&quot;highlighter-rouge&quot;&gt;zip&lt;/code&gt; command, which will create &lt;code class=&quot;highlighter-rouge&quot;&gt;/tmp/yii2-composer.zip&lt;/code&gt; from these. &lt;code class=&quot;highlighter-rouge&quot;&gt;-@&lt;/code&gt; instructs &lt;code class=&quot;highlighter-rouge&quot;&gt;zip&lt;/code&gt; to read the file list from &lt;code class=&quot;highlighter-rouge&quot;&gt;STDIN&lt;/code&gt;. How do I know? I read the &lt;a href=&quot;https://linux.die.net/man/1/zip&quot;&gt;manpage&lt;/a&gt; ;)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Add the &lt;code class=&quot;highlighter-rouge&quot;&gt;package&lt;/code&gt; repository&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A first try on defining a package:&lt;/p&gt;

&lt;div class=&quot;language-json highlighter-rouge&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;require&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;yiisoft/yii2-composer&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;dev-test as 2.0.x-dev&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;repositories&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;type&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;package&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;package&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;name&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;yiisoft/yii2-composer&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;version&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;dev-test&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;dist&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                    &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;url&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;file:///tmp/yii2-composer.zip&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                    &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;type&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;zip&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;For a package definition, we need to provide at least &lt;code class=&quot;highlighter-rouge&quot;&gt;name&lt;/code&gt;, &lt;code class=&quot;highlighter-rouge&quot;&gt;version&lt;/code&gt; (because we provide only one version in the zip file), and either of dist or source. This would be enough to get the package installed, however there is still something missing.&lt;/p&gt;

&lt;p&gt;When installing a package, Composer does not look at the &lt;code class=&quot;highlighter-rouge&quot;&gt;composer.json&lt;/code&gt; from the ZIP file to determine things like autoloading or in our case the &lt;a href=&quot;https://getcomposer.org/doc/articles/plugins.md#plugin-package&quot;&gt;plugin configuration&lt;/a&gt; (&lt;code class=&quot;highlighter-rouge&quot;&gt;&quot;type&quot;: &quot;composer-plugin&quot;&lt;/code&gt; and the &lt;code class=&quot;highlighter-rouge&quot;&gt;&quot;class&quot;&lt;/code&gt; field in the &lt;code class=&quot;highlighter-rouge&quot;&gt;&quot;extra&quot;&lt;/code&gt; section). It needs this metadata from the repository. So in order to make it work correctly you need to copy the content of &lt;code class=&quot;highlighter-rouge&quot;&gt;composer.json&lt;/code&gt; of yii2-composer into the &lt;code class=&quot;highlighter-rouge&quot;&gt;&quot;package&quot;&lt;/code&gt; part of the repository definition, then add &lt;code class=&quot;highlighter-rouge&quot;&gt;&quot;version&quot;&lt;/code&gt; and &lt;code class=&quot;highlighter-rouge&quot;&gt;&quot;dist&quot;&lt;/code&gt; to it.&lt;/p&gt;

&lt;p&gt;The final composer.json file looks like this:&lt;/p&gt;

&lt;div class=&quot;language-json highlighter-rouge&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;require&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;yiisoft/yii2&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;~2.0.16&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;yiisoft/yii2-composer&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;dev-test as 2.0.x-dev&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;repositories&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;type&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;composer&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;url&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;https://asset-packagist.org&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;type&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;package&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;package&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;name&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;yiisoft/yii2-composer&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;description&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;The composer plugin for Yii extension installer&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;keywords&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                    &lt;/span&gt;&lt;span class=&quot;err&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;type&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;composer-plugin&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;license&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;BSD-3-Clause&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;support&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
					&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;authors&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
					&lt;/span&gt;&lt;span class=&quot;err&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;require&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                    &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;composer-plugin-api&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;^1.0 | ^2.0&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;require-dev&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                    &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;composer/composer&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;^1.0 | ^2.0@dev&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                    &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;phpunit/phpunit&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&amp;lt;7&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;autoload&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                    &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;psr-4&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                        &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;yii\\composer\\&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                    &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;autoload-dev&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                    &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;psr-4&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                        &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;tests\\&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;tests&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                    &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;extra&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                    &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;class&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;yii\\composer\\Plugin&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                    &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;branch-alias&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                        &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;dev-master&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;2.0.x-dev&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                    &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;version&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;dev-test&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;dist&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                    &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;url&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;file:///tmp/yii2-composer.zip&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                    &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&quot;type&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;zip&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
                &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
            &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;Thats it. :)&lt;/p&gt;

&lt;p&gt;For running repeatable tests I have also put together a script that does these things automatically.i &lt;br /&gt;
You can find the code at &lt;a href=&quot;https://github.com/yiisoft/yii2-composer/tree/master/tests/scripts&quot;&gt;https://github.com/yiisoft/yii2-composer/tree/master/tests/scripts&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;This example shows a situation where something seems very hard to test, which usually results in things being not tested detailed enough so that errors only show up after release.&lt;/p&gt;

&lt;p&gt;With a bit of effort it is possible to dig into the problem and come to a solution that allows automated testing and make sure the plugin runs stable with different composer versions without the need for manually trying these out.&lt;/p&gt;</content><author><name></name></author><summary type="html">Composer 2.0 is going to be released soon. There are some breaking changes, so tooling like composer plugins need to be updated to work with Composer 2.0.</summary></entry><entry><title type="html">DSL Störung - das Problem liegt unter der Fußleiste</title><link href="/posts/2012-03-14/dsl-stoerung-das-problem-liegt-unter-der-fussleiste" rel="alternate" type="text/html" title="DSL Störung - das Problem liegt unter der Fußleiste" /><published>2012-03-14T00:27:19+00:00</published><updated>2012-03-14T00:27:19+00:00</updated><id>/posts/2012-03-14/dsl-stoerung</id><content type="html" xml:base="/posts/2012-03-14/dsl-stoerung-das-problem-liegt-unter-der-fussleiste">&lt;p&gt;Falls ihr das nächste mal ne fiese DSL Verbindung habt, Verbindungsabbrüche, langsame Datenübertragung, Bandbreite von 4000kBit/s in einer Gegend wo 16000kBit/s eigentlich Standard sein sollte, die Fritz!Box zeigt Störquellen an und ähnliches, dann hab ich da was für euch ;-)&lt;/p&gt;

&lt;p&gt;Den eben beschriebenen Spaß hatte ich nämlich die letzten 2 Tage nachdem mein Internet endlich freigeschaltet worden war. Habe DSL-Speedtest gemacht, ping Paketverluste angeschaut, Foren gelesen, von wilden Geschichten von Handy-Funkmasten und Nachbars WLAN, die die DSL-Leitung stören und ähnliche Scherze. Habe fast schon dran geglaubt, denn auf meinem Dach steht so ein Teil.&lt;/p&gt;

&lt;p&gt;Das brachte mich dann auf die Idee, dass mein Telefonkabel, was neben der Wohnungstür in die Wohnung kommt und von dort einen sehr weiten Weg zur Telefondose im Wohnzimmer hat, sich prima als Antenne für Störeinflüsse hergibt. Also dachte ich mir, ich klemm die Dose einfach mal direkt bei der Wohungstür an, und schau mal, wie viel das ausmacht.&lt;/p&gt;

&lt;p&gt;Die Fritz!Box zeigt ja zum Glück allerlei Daten über die DSL-Verbindung, wenn man die Expertenansicht eingeschaltet hat, wo man schnell sehen kann, ob sich was verändert hat.&lt;/p&gt;

&lt;p&gt;Also eben schnell das Kabel an der Tür abisoliert, die Relevanten Adern an die eh schon abgeschraubte Dose geklemmt und die Fritz!Box angeschlossen.
Plötzlich keine Störquellen mehr, DSL Leitungskapazität von 18000kBit/s down und 1200kBit/s up (vorher hatte ich down irgendwas mit 4000kBit/s und up sogar nur 240kBit/s).&lt;/p&gt;

&lt;p&gt;Das Problem musste also eindeutig auf dem Weg dazwischen liegen und die Verbesserung war so krass, dass sich das nicht mit der Antennenwirkung erklären ließ.
Also direkt erstmal alle Fußleisten ab und das Kabel hervorgeholt und da war er schon der Übeltäter:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/img/IMAG0399.jpg&quot;&gt;&lt;img class=&quot;alignright size-medium wp-image-69&quot; title=&quot;ungelötet und ungeschirmt&quot; src=&quot;/img/IMAG0399-179x300.jpg&quot; alt=&quot;ungelötet und ungeschirmtes Telefonkabel&quot; width=&quot;179&quot; height=&quot;300&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;/img/IMAG0393.jpg&quot;&gt;&lt;img class=&quot;alignleft size-medium wp-image-70&quot; title=&quot;Telefonkabel unter der Fußleiste&quot; src=&quot;/img/IMAG0393-300x179.jpg&quot; alt=&quot;Telefonkabel unter der Fußleiste&quot; width=&quot;300&quot; height=&quot;179&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Selbstverdrahtet, weder gelötet, noch geschirmt mit ein wenig Klebeband zusammengehalten.
Mit sowas kann man natürlich keinen High-Speed Internet-Anschluss betreiben…&lt;/p&gt;

&lt;p&gt;Also nicht gleich beim DSL Anbieter anrufen, wenn’s Internet nicht taugt, lieber erstmal unter die Fußleisten gucken, was der Vormieter einem da hinterlassen hat.&lt;/p&gt;</content><author><name></name></author><summary type="html">Falls ihr das nächste mal ne fiese DSL Verbindung habt, Verbindungsabbrüche, langsame Datenübertragung, Bandbreite von 4000kBit/s in einer Gegend wo 16000kBit/s eigentlich Standard sein sollte, die Fritz!Box zeigt Störquellen an und ähnliches, dann hab ich da was für euch ;-)</summary></entry><entry><title type="html">My GIT Config</title><link href="/posts/2011-08-24/my-git-config" rel="alternate" type="text/html" title="My GIT Config" /><published>2011-08-23T22:41:33+00:00</published><updated>2011-08-23T22:41:33+00:00</updated><id>/posts/2011-08-24/my-git-config</id><content type="html" xml:base="/posts/2011-08-24/my-git-config">&lt;p&gt;To have the same GIT config on all devices I create a &lt;a href=&quot;https://gist.github.com/1166792&quot;&gt;gist&lt;/a&gt; for it.&lt;/p&gt;

&lt;p&gt;This defines aliases for commonly used git commands and also includes the global gitignore file
to exclude IDE project files.&lt;/p&gt;

&lt;script src=&quot;https://gist.github.com/1166792.js&quot;&gt;&lt;/script&gt;</content><author><name></name></author><summary type="html">To have the same GIT config on all devices I create a gist for it.</summary></entry><entry><title type="html">Server-Verfügbarkeits-Tabelle</title><link href="/posts/2011-03-21/server-verfuegbarkeits-tabelle" rel="alternate" type="text/html" title="Server-Verfügbarkeits-Tabelle" /><published>2011-03-21T01:29:16+00:00</published><updated>2011-03-21T01:29:16+00:00</updated><id>/posts/2011-03-21/server-verfuegbarkeit</id><content type="html" xml:base="/posts/2011-03-21/server-verfuegbarkeits-tabelle">&lt;p&gt;Hab vor einiger Zeit mal ne Tabelle gemacht, in der man direkt ablesen kann, was es heißt, wenn ein System z.B. 99% Verfügbarkeit über ein Jahr oder einen Monat hat.&lt;/p&gt;

&lt;p&gt;Das ganze gibts als PDF unter &lt;a title=&quot;Server-Verfügbarkeits-Übersicht&quot; href=&quot;http://pub.cebe.cc/docs/uptimecalc.pdf&quot;&gt;http://pub.cebe.cc/docs/uptimecalc.pdf&lt;/a&gt;&lt;/p&gt;</content><author><name></name></author><summary type="html">Hab vor einiger Zeit mal ne Tabelle gemacht, in der man direkt ablesen kann, was es heißt, wenn ein System z.B. 99% Verfügbarkeit über ein Jahr oder einen Monat hat.</summary></entry></feed>