[{"content":"I am a big Nextcloud user. I use it for my files, notes, images, videos, calendar, mail, newsfeed, collaboration, and much more. So when I couldn\u0026rsquo;t find an application that seemed a natural match for Nextcloud, I decided, I could try to build it myself. The last time I worked on a Nextcloud app, I used a complicated Vagrant setup, that worked but didn\u0026rsquo;t feel right. That\u0026rsquo;s why I tried see if I could create an easier version with docker and docker-compose.\nThese where my requirements:\nIDE support for code completion. I use PHPStorm and I want to see no squiggly lines because some base class could not be found. Same with Xdebug support. I need my breakpoints! PHPUnit, yes thank you very much No git clone or setting up anything for Nextcloud. Just my app code and nothing else should have to be touched by me. After some trial and error, I think I managed to find a way to meet all these requirements with little hacks needed.\nThe Recipe Create a new empty directory for your app, with another empty src directory inside that. Change the permissions for the src folder to 777: chmod 777 src\nThe Dockerfile Create a new Dockfile and paste this content:\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 FROM nextcloud:23-apache RUN pecl install xdebug \\ \u0026amp;\u0026amp; docker-php-ext-enable xdebug \\ \u0026amp;\u0026amp; echo \u0026#34;xdebug.client_host=host.docker.internal\u0026#34; \u0026gt;\u0026gt; /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \\ \u0026amp;\u0026amp; echo \u0026#34;xdebug.idekey=PHPSTORM\u0026#34; \u0026gt;\u0026gt; /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \\ \u0026amp;\u0026amp; echo \u0026#34;xdebug.start_with_request=trigger\u0026#34; \u0026gt;\u0026gt; /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \\ \u0026amp;\u0026amp; echo \u0026#34;xdebug.mode=debug\u0026#34; \u0026gt;\u0026gt; /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini RUN php -r \u0026#34;copy(\u0026#39;https://getcomposer.org/installer\u0026#39;, \u0026#39;composer-setup.php\u0026#39;);\u0026#34; \\ \u0026amp;\u0026amp; php -r \u0026#34;if (hash_file(\u0026#39;sha384\u0026#39;, \u0026#39;composer-setup.php\u0026#39;) === \u0026#39;906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8\u0026#39;) { echo \u0026#39;Installer verified\u0026#39;; } else { echo \u0026#39;Installer corrupt\u0026#39;; unlink(\u0026#39;composer-setup.php\u0026#39;); } echo PHP_EOL;\u0026#34; \\ \u0026amp;\u0026amp; php composer-setup.php \\ \u0026amp;\u0026amp; php -r \u0026#34;unlink(\u0026#39;composer-setup.php\u0026#39;);\u0026#34; \\ \u0026amp;\u0026amp; mv composer.phar /usr/local/bin/composer Line 1 pulls the latest Nextcloud Docker image (at the time of writing) with a built-in Apache server. This contains everything we need to run Nextcloud locally.\nLine 3-8 installs and enables Xdebug and also writes the Xdebug config so that we can do some step debugging. You can find the documentation for the config here. These are the four entries that you need to have:\nclient_host=host.docker.internal will resolve to the IP address of your docker host, so that your IDE can receive the Xdebug events. For this to work, you need to make an entry in the docker-compose file (at least on Linux). I will get into that later. idekey=PHPSTORM I\u0026rsquo;m using PHPStorm, so this is what I had to put there. start_with_request=trigger this will cause Xdebug to send events only if a certain request parameter is set. This is done by an extension that I use for Firefox but I\u0026rsquo;m sure there are plenty of options for Chrome based browsers out there. Basically, this setting allows me to enable Xdebug when I need it and disable it for more speed when I don\u0026rsquo;t. If you want Xdebug enabled for every request, just enter yes instead of trigger. xdebug.mode=debug this setting enables step debugging. Line 11-15 installs composer, if we may need to setup PHPUnit or add more dependencies to our App.\nThe docker-compose file Copy this contents to a new docker-compose.yml\n1 2 3 4 5 6 7 8 9 10 11 12 13 services: app: build: . ports: - 8080:80 environment: SQLITE_DATABASE: nextcloud.db NEXTCLOUD_ADMIN_USER: nextcloud NEXTCLOUD_ADMIN_PASSWORD: nextcloud volumes: - ./src:/var/www/html extra_hosts: - \u0026#34;host.docker.internal:host-gateway\u0026#34; Line 3 builds the Dockerfile that\u0026rsquo;s within the same directory.\nLines 4-5 map the port 8080 of the docker host to port 80 of the container. We can now access our Nextcloud through http://localhost:8080 Line 7 names the SQLite database and lines 8-9 create a user with password, so we don\u0026rsquo;t have to go through the setup wizard.\nLine 11 mounts our src folder as the root folder of Nextcloud. That means, that a lot of files will be popping up in the src folder when the container is started. We need them for code completion and for our IDE not being completely lost.\nLine 13 is necessary on Linux AFAIK to make this nice xdebug.client_host=host.docker.internal hack possible.\nNow, we can run our Nextcloud with docker-compose up You should be able to visit http://localhost:8080 and login.\nCreating the app Create an app skeleton in the app store.\nDownload the package and unpack it somewhere.\nSince the files in the src folder where created by the user running inside the docker container, they are technically not ours. But we need to be able to write to the custom_apps directory to create our app. Therefore, we need to change the ownership of that folder ( and that folder only!): sudo chown username:username src/custom_apps/appname -R Now, copy the unpacked app files into the custom_apps directory: cp -r skeleton_app src/custom_apps/\nEnabling the app Last thing to do is to enable the app in our Nextcloud. Go to Apps and search for the name of your app and enable it. You will need to enable custom apps during that step also.\nThat\u0026rsquo;s it. You should now have a dockerized Nextcloud with Xdebug and your app running. Last thing I would do is git init in your app folder and push it somewhere because if for some reason your deleting your docker container and run it again from scratch, it will delete everything in the source folder. I learned the hard way.\n","date":"2022-01-01T21:58:38Z","image":"https://www.a-broad-view.com/p/setting-up-a-development-environment-to-work-on-a-new-nextcloud-app-with-docker/diary-app_hu_3d16eb6460f4d7de.png","permalink":"https://www.a-broad-view.com/p/setting-up-a-development-environment-to-work-on-a-new-nextcloud-app-with-docker/","title":"Setting up a development environment to work on a new Nextcloud app with docker"},{"content":"Once. Just once I would like to find the answer to a problem that has been plaguing me for half a year and cost me hours of trial and error before I plead for help on github. I have an electron app that uses vue and is run with the vue-cli. The rest is more or less magic to me. Unfortunately, WebStorm feels the same way. At least when it comes to debugging.\nI tried a lot of different ways to debug the renderer thread from within WebStorm to no avail. Somewhere along the way with Webpack all information seemed lost. So I did a lot of console.log and breakpoints within the Chrome Dev Tools. But it\u0026rsquo;s actually not only doable, it\u0026rsquo;s easy.\nChange your run config to vue-cli-service electron:serve --remote-debugging-port=9223 Run the config. It will just start your app and do nothing else special. Create a second config. This time a \u0026ldquo;Attach to Node.js/Chrome\u0026rdquo; config with port set to 9223 Debug render process render config That\u0026rsquo;s it. Now, whenever you want to wait for a breakpoint anywhere in the renderer process, just click the debug button.\n","date":"2021-02-05T19:46:33Z","permalink":"https://www.a-broad-view.com/p/debugging-a-vue-powered-electron-app-with-webpack-in-webstorm/","title":"Debugging a vue powered electron app with webpack in Webstorm"},{"content":"Following the QMK tutorial for building your own hand-wired keyboard is pretty straight forward until you reach the part where you actually want to flash your keyboard. It just tells you to download the QMK toolbox and click flash. The thing is: The toolbox is only available for Windows. But if you\u0026rsquo;re using Linux don\u0026rsquo;t fret. Here is how you flash your own hand-wired keyboard without booting Windows even once.\nHow I got here When I twisted my right hand this summer in a freak cargo bike related accident (these things are heavy!) I realized, that without a right hand, I am pretty useless at my job. So, I invested into a ergonomic mouse and went to look for an ergonomic keyboard as well. Not satisfied with the available options, I looked into making my own. And down the rabbit hole I went!\nI ended up using the katana60 but also designing my own numpad from scratch, because it\u0026rsquo;s quarantine time and I needed to distract me from the impending doom. I followed along the official tutorial but hit a road block when it came to flash the firmware to my board. The instructions where Windows only and I - a certified Linux nerd - did not feel like booting ( and possibly rebooting until all updates are installed) my Windows for that.\nBut it\u0026rsquo;s actually really easy. Here is what you do.\nLess talk more action Start by cloning qmk.\n1 git clone git@github.com:qmk/qmk_firmware.git my_own_qmk Install the QMK CLI on your computer. If you are on manjaro/arch it\u0026rsquo;s in the official repos. For other repositories, read here.\nNow, I needed to add this line to the rules.mk because I had a sparkfun pro micro and the bootloader wasn\u0026rsquo;t recognized:\n1 2 MCU = atmega32u4 BOOTLOADER = caterina You\u0026rsquo;re almost done. In the root folder of your QMK firmware run\n1 make git-submodule This will download some needed libraries and code and stuff I guess. Then grab a pair of tweezers and type\n1 make handwired/my_own_qmk:default:flash Now, before you hit enter, touch the RST and GND pin with the tweezers and only let go when prompted for an USB device. Otherwise, you might get this nasty error:\n1 avrdude: butterfly_recv(): programmer is not responding It should say, that it reprogrammed the chip. After that, you should be able to immediately use the keyboard.\n","date":"2021-01-27T20:37:22Z","image":"https://www.a-broad-view.com/p/qmk-powered-hand-wired-numpad/macro-keyboard-on-linux/KeyboardSetup_hu_b554722e3cf3c68.jpg","permalink":"https://www.a-broad-view.com/p/qmk-powered-hand-wired-numpad/macro-keyboard-on-linux/","title":"QMK powered hand-wired numpad/macro keyboard on Linux"},{"content":"In my line of work, you basically have two options to keep your sanity. You either become jaded or you go into full-on paranoia mode. And I recently started to catch myself looking longingly at tin foil hats. That\u0026rsquo;s why I have my very own cloud! But since I\u0026rsquo;m currently the sole breadwinner in our expanding family, I\u0026rsquo;m on a tight budget. So, I present to you, The Frankencloud 3000! Cobbled together from discarded parts I scrapped from our SysAd\u0026rsquo;s desk: A Raspberry Pi 3 Model B+ and an old 1 TB internal hard disk in a USB case. As this is far from ideal (or stable), I need a good backup strategy. Preferably remote, so that a fire won\u0026rsquo;t destroy two years of baby and puppy pictures. I have a storage box somewhere that I can rsync to, but then my pictures are on somebody else\u0026rsquo;s computer which brings me back to my tin foil hats. I don\u0026rsquo;t want that. Not without some layer of encryption. And that\u0026rsquo;s where gocryptfs comes into play. What I want is to have my data to be encrypted on the fly before being rsynced to my storage box. And here is my solution.\ngocryptfs is like EncFS written in golang and on a debian, armbian or ubuntu it should be available in the repositories.\n1 sudo apt-get -y install gocryptfs fuse After installation, gocryptfs needs to be initialized in the folder that holds the data we want to backup. And since we only want the files to be encrypted when we sync them to our remote storage, we pass the -reverse option.\n1 gocryptfs -reverse -init /media/nextcloud-data/files We chose a very secure password and put it somewhere safe. Now, we can make a folder and mount our encrypted files.\n1 2 mkdir -p /tmp/nextcloudencrypted gocryptfs -passfile /path/to/passwordfile -reverse /media/nextcloud-data/files /tmp/nextcloudencrypted See the -passfile? That\u0026rsquo;s because we don\u0026rsquo;t want a reboot of our little Raspberry to disrupt the nightly backup job. So, we put these lines into a shell script and take the secure long password and put it into a very restricted file that only root has access to. Then we add these lines to our crontab:\n1 @reboot root /path/to/on-reboot.sh Now, let\u0026rsquo;s enter a quick df -h to see how much disk space we are using.\n1 2 3 Filesystem Size Used Avail Use% Mounted on /dev/sda1 932G 83G 848G 9% /media/nextcloud-data /media/nextcloud-data/files 932G 83G 848G 9% /tmp/nextcloudencrypted See how we mounted the files folder into /tmp/nextcloudencrypted, and it has no impact on the available space on our hard disk? Sweet!\nBut we still haven\u0026rsquo;t backed up anything yet. Here\u0026rsquo;s my very basic backup script:\n1 2 3 4 5 6 7 8 #!/bin/bash occ=\u0026#34;sudo -u www-data php /var/www/nextcloud/occ\u0026#34; $occ maintenance:mode --on mysqldump -u root --single-transaction nextcloud \u0026gt; /tmp/dbbackup.sql gzip -f /tmp/dbbackup.sql rsync -avz /tmp/dbbackup.sql.gz you@yourowngoddamnstorage.com:backup/nextcloud $occ maintenance:mode --off rsync -avz --delete /tmp/nextcloudencrypted you@yourowngoddamnstorage.com:backup/nextcloud First we switch into the maintenance mode of our nextcloud to create an database dump. Because it might take quite some time to rsync all files, we switch the maintenance mode back off again. Then we sync our encrypted files to our remote storage.\nBut how do we get our data back? Easy.\n1 2 3 mkdir nextclouddecrypted rsync -avz you@yourowngoddamnstorage.com:backup/nextcloud/nextcloudencrypted nextcloudencrypted gocryptfs nextcloudencrypted/ nextclouddecrypted Basically, download your encrypted data, create a new folder and command gocryptfs to decrypt your data into this new folder.\nConclusion There\u0026rsquo;s still room for improvement. Like, a lot. First of all, the database is not encrypted. This should be fairly straight forward. Then we only have ONE backup of last night. I would like to have the option to go back at least a couple of days, maybe save a snapshot of last month. As the names of the files do not change with every encryption process, this could be done with some hard links. But it\u0026rsquo;s better than nothing.\n","date":"2019-03-17T20:19:51Z","permalink":"https://www.a-broad-view.com/p/making-a-somewhat-secure-remote-backup-for-my-frankencloud-using-gocryptfs/","title":"Making a somewhat secure remote backup for my Frankencloud using gocryptfs"},{"content":"I have a love/hate relationship with codeception. When it works, it\u0026rsquo;s my prince charming on a white horse coming to rescue me from the plight of testing. But every so often it\u0026rsquo;s a convoluted and badly documented mess that wrecks havoc to my productivity as I frantically search the net for the one blog post that could help me out. Maybe this can be one those blog posts for somebody else. It\u0026rsquo;s about how to replace a service (i.e. with a mock) inside the symfony container in a functional test.\nSay you have an external service that you call to obtain some data and in one particular case you don\u0026rsquo;t want to invoke the real service but redirect all calls to a mock that gives a predefined answer, then you need to replace this service inside the symfony container. This is such a common task for me, that I am baffled that there is no $I-\u0026gt;replaceServiceWithMock($serviceName, $mockService) method to call. But we can make our own!\nGo to your tests\u0026rsquo; folder. There you\u0026rsquo;ll find _support/Helper/Functional.php. Now open up that file and behold:\n// here you can define custom actions\n// all public methods declared in helper class will be available in $I\nNeat. So I did this: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 \u0026lt;?php /** use .... yada **/ class Functional extends \\Codeception\\Module { /** * Replace a symfony service with a mock. * * @param string $serviceClassName * @param MockInterface $mockedService * * @throws ModuleException */ public function replaceServiceWithMock(string $serviceClassName, MockInterface $mockedService) { /** @var Symfony $symfony */ $symfony = $this-\u0026gt;getModule(\u0026#39;Symfony2\u0026#39;); $symfony-\u0026gt;kernel-\u0026gt;getContainer()-\u0026gt;set($serviceClassName, $mockedService); } } Cool. Now let\u0026rsquo;s see that in action. Maybe you\u0026rsquo;re testing a service, that has to interact with an external API and you can\u0026rsquo;t have your test make a real call to that API because that would have real life consequences, like ordering 10,000 roles of toilet paper. You could do this:\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 \u0026lt;?php /** use .... yada **/ class PlaceOrderCest { /** @var PurchasingService */ private $purchasingService; /** @var MockInterface */ private $mockedSoapClient; public function _before(FunctionalTester $I) { $this-\u0026gt;mockedSoapClient = \\Mockery::mock(SoapClient::class); $I-\u0026gt;replaceServiceWithMock(SoapClient::class, $this-\u0026gt;mockedSoapClient); $this-\u0026gt;purchasingService = $I-\u0026gt;grabService(PurchasingService::class); } public function placeOrder(FunctionalTester $I) { $I-\u0026gt;wantTo(\u0026#39;place a new order for 10,000 roles of toilet paper\u0026#39;); $this-\u0026gt;mockedSoapClient-\u0026gt;shouldReceive(\u0026#34;placeOrder\u0026#34;)-\u0026gt;withArgs([[\u0026#39;item\u0026#39;=\u0026gt;\u0026#39;Toilet Paper\u0026#39;, \u0026#39;amount\u0026#39;=\u0026gt;10000]])-\u0026gt;andReturn(true); $this-\u0026gt;purchasingService-\u0026gt;placeOrder(\u0026#39;Toilet Paper\u0026#39;, 10000); } } That\u0026rsquo;s it. If you step through your test with xdebug, you can see that the service has been replaced with your mock. Now you can formulate your expectations and be safe that you don\u0026rsquo;t accidentally flood your real API with test data.\nUpdate: Unfortunately, it\u0026rsquo;s not that easy. This approach only works, if you want to test a single service and grab that service from the container the same time that you submit your mock to the container. My example works fine, but as soon as I try to mock a service, that was used in another service, that is used in a controller, that I want to test via the codeception FunctionalTester-methods, the unmocked service pops up again, like a zombie and bites down. Hard. So, what you have to do, is to persist the service in the container:\n1 2 3 4 5 6 7 8 \u0026lt;?php ... public function replaceServiceWithMock(string $serviceClassName, MockInterface $mockedService){ /** @var Symfony $symfony */ $symfony = $this-\u0026gt;getModule(\u0026#39;Symfony2\u0026#39;); $symfony-\u0026gt;kernel-\u0026gt;getContainer()-\u0026gt;set($serviceClassName, $mockedService); $symfony-\u0026gt;persistService($serviceClassName, false); } To be honest, I am not sure if the second parameter for persistService should be true or false, and the documentation does not helpbecause it doesn\u0026rsquo;t matter if I set this parameter to true or false, the service is permanently mocked. Which sucks if you happen to run another test directly afterward and for some reason you don\u0026rsquo;t want to use this mock this time. Like me. In order to do that, you have to restore the original service in the container after you\u0026rsquo;re done with your tests. I assumed that would happen anyway or that\u0026rsquo;s what the second parameter is for, but nope. I had to write the antidote for the replaceServiceWithMock method:\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 \u0026lt;?php ...use and stuff... class Functional extends \\Codeception\\Module { private $originalServices = []; /** * Replace a symfony service with a mock. * * @param string $serviceClassName * @param MockInterface $mockedService * * @throws ModuleException */ public function replaceServiceWithMock(string $serviceClassName, MockInterface $mockedService){ /** @var Symfony $symfony */ $symfony = $this-\u0026gt;getModule(\u0026#39;Symfony2\u0026#39;); $this-\u0026gt;originalServices[$serviceClassName] = $symfony-\u0026gt;grabService($serviceClassName); $symfony-\u0026gt;kernel-\u0026gt;getContainer()-\u0026gt;set($serviceClassName, $mockedService); $symfony-\u0026gt;persistService($serviceClassName, false); } /** * Replace a mocked service with the originally saved one. * * @param string $serviceClassName * * @throws ModuleException */ public function restoreMockedService(string $serviceClassName){ /** @var Symfony $symfony */ $symfony = $this-\u0026gt;getModule(\u0026#39;Symfony2\u0026#39;); $symfony-\u0026gt;kernel-\u0026gt;getContainer()-\u0026gt;set($serviceClassName, $this-\u0026gt;originalServices[$serviceClassName]); $symfony-\u0026gt;persistService($serviceClassName, false); } } Now, all that\u0026rsquo;s left is to add an _after-method to the cest and we are done:\n1 2 3 4 5 \u0026lt;?php public function _after(FunctionalTester $I) { $I-\u0026gt;restoreMockedService(LoggingSoapClient::class); } ","date":"2018-08-28T19:41:30Z","permalink":"https://www.a-broad-view.com/p/replace-symfony-service-in-a-codeception-functional-test/","title":"Replace symfony service in a codeception functional test"},{"content":"PHP\u0026rsquo;s \u0026ldquo;empty\u0026rdquo; function is a weird little fellow. Basically, it tests if a given variable exists and is not evaluated to false !isset($var) || $var == false And since PHP and has a unique interpretation of what counts as false, I try to replace it with a more explicit counterparts whenever possible. It still creeps up on me sometimes, in places long forgotten, written by a much less careful version of myself. Like a few days ago, when a colleague of mine walked into my office complaining about why our internal system didn\u0026rsquo;t except his CSV file anymore.\nIn this CSV, there was a column for a price. And since we are a German-speaking company where everybody uses his favorite CSV editor, the CSV files fed to the system vary a lot. A price may be written as \u0026lsquo;12.34\u0026rsquo; but also as ' 12,34\u0026rsquo;, \u0026lsquo;12,34 €\u0026rsquo;, \u0026lsquo;12,34 Euro\u0026rsquo;, \u0026lsquo;€12,34\u0026rsquo; and so on. As there is really no way to distinguish between \u0026lsquo;1.234\u0026rsquo; and ' 1,234\u0026rsquo; without knowing the language, I wrote a helper script that tries to guess the correct format (in doubt, use the German notation) and was quite happy as the steady stream of calls complaining about broken CSV imports stopped. That was, until somebody tried to import an item with the price \u0026quot;0\u0026quot;: A string containing a single zero. Crash! Why?\nTurns out, my code was deliberately throwing an exception whenever someone tried to insert an empty value. Why would you have an empty price after all? In my unit tests this worked great as I was testing it with the string \u0026quot;0.0\u0026quot;, which is NOT empty. But the user entered \u0026quot;0\u0026quot; which IS empty. I looked it up, screamed a bit into the pillow I keep on my desk just for these occasions, changed the condition to '' !== $price and added the unit test for \u0026quot;0\u0026quot;.\n","date":"2018-07-28T19:57:04Z","permalink":"https://www.a-broad-view.com/p/an-empty-string-does-not-need-to-be-empty.-just-empty-enough./","title":"An empty string does not need to be empty. Just empty enough."},{"content":"I am not really a web guy, coming from an operating systems and Java background. But for some reasons, I\u0026rsquo;ve been working on a Symfony3 project for the past year. I learned a lot and developed a deep love-hate relationship with both PHP and JavaScript. They have their strengths and weaknesses and I can respect that. But man, the way Apache and PHP are configured is just evil!\nToday, I wanted to kill all user sessions, that have not been accessed for at least two hours. Now, there\u0026rsquo;s two ways to go about this.\nSet session variables in php.ini and let PHP do the job PHP brings it\u0026rsquo;s own session cleaning mechanism that involves these three settings in the php.ini:\nsession.gc_maxlifetime = 1440 session.gc_probability = 1 session.gc_divisor = 100\nThat translates to:\nA session is dead after 1440 seconds (24 minutes) of inactivity The chance that the garbage collection will be started is 1 in \u0026hellip; \u0026hellip;100 session starts (user logins) That\u0026rsquo;s neat, if that you have lots of user logins. I was working on an internal tool with only 50 registered users. The chance to kill the session of one inactive user if all other 49 users logged in right after the two hours mark where still less than 39%. (1-0.99^49) Not ideal. So, what\u0026rsquo;s the other option?\nRelease the Kraken Cronjob Most Debian/Ubuntu systems come with a cronjob that kills stale sessions for you. It doesn\u0026rsquo;t care for your fancy session settings. Well, it only cares for one fancy session setting session.gc_maxlifetime is still the deadline for stale sessions.\nNow, you could combine the two approaches, but since my symfony was already tripping over itself with complex permission problems, I decided to rely on just the cronjob. I set the session.gc_maxlifetime to 10 and the session.gc_probability to 0, logged into my system, waited for 10 seconds, manually started the cronjob-script and voila\u0026hellip; I was still logged in.\nNo Mr Session, I expect you to die! Why? Why did the session not expire? Why was it still there? Taunting me from within the session folder. What did I forget? I ran the crobjob-script again. Nothing. So I started to augment the script with some \u0026lsquo;printfs\u0026rsquo; and read the output. It said: \u0026ldquo;24 minutes max session lifetime\u0026rdquo;. Wait. What? I looked at my active PHP version: 7.1. I looked into the \u0026lsquo;/etc/php/7.1/apache/php.ini\u0026rsquo; AND the \u0026lsquo;/etc/php/7.1/cli/php.ini\u0026rsquo;. Both said: Max lifetime is 10 seconds. What went wrong?\nWhat went wrong? I still had my old PHP 7.0 ini-files. Although PHP 7.1 was active, the cronjob-script looked at ALL possible ini-files and searched for the HIGHEST max session lifetime. Once I also changed the inactive ini-files to 10 seconds, all stale sessions where gone.\n","date":"2017-05-26T19:08:19Z","permalink":"https://www.a-broad-view.com/tech-talk/php-apache-and-the-session-that-could-not-die/","title":"PHP, Apache, and the session that could not die"},{"content":"Two years ago, I got my wife pregnant. That\u0026rsquo;s one of those sentences, I never imagined saying. \u0026ldquo;I got somebody else\u0026rsquo;s wife pregnant\u0026rdquo;, sure, totally possible. But \u0026quot; my wife\u0026quot;? Still sounds weird. And it wasn\u0026rsquo;t by accident, either! This kid could not have been more planned, if it had been pre-ordered online.\nWe decided not to wait three months before telling anyone. We knew stuff may happen, but it would not be less sad just because we kept our mouths shut. Also, it\u0026rsquo;s hard to keep a secret when you are constantly throwing up. And crying. And collapsing. And generally being a complete mess of a human being. Not me of course, I was fine! But my wife \u0026hellip; not so lucky.\nIn the 11th week, we went to visit Nepi (that\u0026rsquo;s what we called our unborn child) in his crib (that\u0026rsquo;s what we called the uterus of my wife). A routine checkup. The midwife gave us some pamphlets and then we watched the ultrasonic monitor for the beating of our child\u0026rsquo;s heart.\nThere was none.\nNo heartbeat, just a lump of cell mass attached to some tissue. The blow was devastating. Somehow, we managed to sit through the listing of our options by the gynecologist. Outside, we collapsed into a crying puddle of misery. We\u0026rsquo;ve lost our child. Nothing prepares you for that.\nBut we knew we were not alone. A friend of mine lost her child at the same stage and since she was the one who inspired me to not keep it a secret \u0026ndash; neither the pregnancy, nor the miscarriage \u0026ndash; I knew what to do. We immediately told everyone.\nBut why didn\u0026rsquo;t we wait? Why did we not do the sensible thing and wait for a three months before announcing the pregnancy? Here is why:\nIt\u0026rsquo;s natural Sometimes, during the complex process of rearranging genes and duplicating cells and stuff, things go terribly wrong. There is not much room for errors. Ever tried to read a broken copy of a file on your computer? Our child was something like that. A broken file with a read/write-error. It couldn\u0026rsquo;t survive.\nIt\u0026rsquo;s common Depending on who you ask, the chance of having a miscarriage is somewhere around 20%. That\u0026rsquo;s one in every fifth pregnancy. And that\u0026rsquo;s only accounting for the pregnancies that were detected! When we told our story, we were amazed how many people had first- or second hand experiences with a miscarriage.\nIt\u0026rsquo;s nothing to be ashamed of My wife met a former classmate at a reunion, who suddenly broke down in tears, because she had a miscarriage and didn\u0026rsquo;t tell anyone. Not even her family. Listen, it\u0026rsquo;s not your fault! Don\u0026rsquo;t let them tell you otherwise! We had to go through some \u0026ldquo;Maybe if you would have eaten meat\u0026hellip;\u0026quot;-crap ourselves. But overall our friends were very supportive.\nIt doesn\u0026rsquo;t mean anything My friend is pregnant with her second child. We have a huge and healthy son that we call \u0026ldquo;Grunt, the destroyer of worlds\u0026rdquo;. So, a miscarriage doesn\u0026rsquo;t mean that you can\u0026rsquo;t have a child. You just need to try again. And the pain subsides, though it never goes away.\nI\u0026rsquo;ve hated ultrasonic monitors ever since.\n","date":"2017-05-11T18:32:39Z","permalink":"https://www.a-broad-view.com/vegancy/loss-of-nepi/","title":"Loss of Nepi"},{"content":"I outed myself as a big JetBrains a couple of times over and I am still madly in love with almost everything they do, despite them not paying me one cent for this endorsement! Heck, I even have to pay for their products, these ungrateful bastards! Still, they are the best and usually I am very happy with their products. But even they screw up sometimes.\nToday, I have spent several hours trying desperately to get my copy of PhpStorm to talk to my local Trac server. It should have been a simple task. Open Settings and go to Tools-\u0026gt;Tasks-\u0026gt;Servers. There you can chose between different bug and issue trackers, including Trac. But here\u0026rsquo;s the catch: It doesn\u0026rsquo;t work.\n\\[caption id=\"attachment\\_310\" align=\"alignnone\" width=\"300\"\\] Without further explanation PhpStorm just refuses to talk to Trac.\n\\[/caption\\]Cannot connect to http://localhost:8008 it says. \u0026ldquo;That is odd.\u0026rdquo;, I think to myself, \u0026ldquo;I am pretty sure that this should work as I have this URL open in my browser and it looks just fine!\u0026rdquo;. So I opened the log file logs/trac.log and found that: WARNING: [127.0.0.1] HTTPBadRequest: 400 Bad Request (Invalid request arguments.) \u0026ldquo;Well, that\u0026rsquo;s a start. I am pretty optimistic, with this I can find an explanation on the internet in no time!\u0026rdquo;. Boy, I was wrong. Neither Edgewall Software nor JetBrains nor any of the usual forums had a clue what I was talking about. I was ready to give up and try any of the other supported trackers, when I found a note about the Trac XML-RPC Plugin, which might help. Of course, installing it was not as straight forward as I would have liked it to be, as Trac only supports Python-2.7 and my system defaults to Python-3 but this is how I got it working: cd \u0026amp;\u0026amp; sudo python2.7 -m easy_install -Z -U https://trac-hacks.org/svn/xmlrpcplugin/trunk Then I had to enable the plugin inside Trac under Admin-\u0026gt;Plugins and press apply. Finally, I changed the Server URL in PhpStorm from http://localhost:8008 to http://localhost:8008/login/rpc and voilà! PhpStorm and Trac finally got along!\nConclusion: While it is possible to connect Trac with the task system in PhpStorm, it is not really self-explanatory. It also seems like there are some features missing - e.g. I can\u0026rsquo;t get read task descriptions from Trac only the titles. I remains to be seen if my workflow profits from this the new liaison between Trac and PhpStorm.\n","date":"2016-03-25T18:37:21Z","permalink":"https://www.a-broad-view.com/tech-talk/how-use-trac-the-issue-tracking-system-inside-phpstorms-tasks/","title":"How use Trac - the issue tracking system - inside Phpstorm's tasks"},{"content":"Well, this is a wordy headline. But if you are running into this problem - like I did - you might search exactly for this and this is called effective seo or something. Here is the premise: You are using Vagrant, like any self-respecting developer would do and you also have soft spot for JetBrains products, i.e. PhpStorm, then you might want to start and stop vagrant directly from your beloved IDE. As you should! You paid good money to be spared from entering commands into a terminal.\nBut there is a catch: In case some commands are triggered during that process that require sudo privileges - like the awesome hostupdater-script - you will be greeted by the following message:\nsudo: no tty present and no askpass program specified\nNow what? I have read some suggestions, that you should change your sudoers configuration, but that doesn\u0026rsquo;t seem right. I found a simple solution inside PhpStorm. Go to Settings-\u0026gt;Tools-\u0026gt;Vagrant and add SUDO_ASKPASS=/usr/bin/ssh-askpass to the \u0026ldquo;Environment variables\u0026rdquo;.\nAnd next time your sudo password is needed, you will be asked to enter it. On my system, that looks like this: \\[caption id=\"attachment\\_301\" align=\"alignnone\" width=\"300\"\\] Thanks OpenSSH! I can now enter my sudo password with ease!\n\\[/caption\\]Ain\u0026rsquo;t that neat? Of course, if you use Windows or iOS, you might have to adapt the variable accordingly (read: I have no idea what you should do, you\u0026rsquo;re on your own, buddy).\nHope that helps!\n","date":"2015-12-14T18:53:48Z","permalink":"https://www.a-broad-view.com/tech-talk/vagrant-phpstorm-and-the-sudo-no-tty-present-and-no-askpass-program-specified-error/","title":"Vagrant, PhpStorm and the \"sudo: no tty present and no askpass program specified\" error"},{"content":"In 2008, my girlfriend of that time (coincidentally my wife at the moment) and I decided to go on a little adventure of our own. We bought two Interrail tickets and vowed to see as much of Europe as humanly possible within the next four weeks. It was a disaster. The good kind. A disaster I will tell my children about, like \u0026ldquo;In 2008 I almost killed your mother by accident, by trying to catch a train. And then again by catching a wave with my body board! Oh, fun times\u0026hellip;\u0026rdquo;\nSadly, I didn\u0026rsquo;t find the time to translate it from German into English. Yet. But those of you, who speak German, Here is a free eBook for you, that you might enjoy.\n","date":"2015-11-15T09:50:22Z","permalink":"https://www.a-broad-view.com/travellogs/german-ebook-auf-dem-zahnfleisch-durch-europa/","title":"German eBook - Auf dem Zahnfleisch durch Europa"},{"content":"I am an elementary OS fanboy. There. I admit it. Sure, it is always a bit behind most of the other Ubuntu derivatives, as it is built upon the last lts-release, but what it lacks in shiny new features, it makes up for in pure beauty and elegant design. That is, except for the application icons.\nThe application icons are not really bad, but they are not great either. I find them to be unbalanced and nonuniform. This is because the elementary icon theme only contains icons for applications, that are part of elementary OS. Everything else is left to find a suitable icon somewhere else. With varying degrees of ugliness (I am looking at you Tex-Studio!).\nBut here comes Moka to the rescue. Although I am not a fan of the Moka themes \u0026ldquo;Paper\u0026rdquo; and \u0026ldquo;Orchis\u0026rdquo;, the Moka icon set is stunningly beautiful. At least the application icons are. The other icons (folders, actions, etc) of the elementary set are a much better fit for the overall elementary OS look and feel.\nSo I did what every obsessive engineer with little to no knowledge about themes and icon set would have done: I mashed them together. It\u0026rsquo;s not pretty - well the result is, but not the process of getting there - as it involves a lot of symbolic linking. But if you don\u0026rsquo;t mind that, feel free to give this icon theme a spin.\nPrerequisites The original elementary OS theme The original Moka theme or my fork (you know, for them extra jetbrains icons)(Sam might pull them into the main repository as we speak, so maybe just wait a bit) Installation chmod +x Install ./install\nUse whatever you use to set the icon theme. I am lazy and use elementary tweaks which is deprecated, so I won\u0026rsquo;t link to that. But this also works:\ngsettings set org.gnome.desktop.interface icon-theme 'Mokamentary'\n","date":"2015-11-14T13:51:36Z","permalink":"https://www.a-broad-view.com/tech-talk/mokamentary-icon-theme/","title":"Mokamentary Icon Theme"},{"content":"You might have noticed the lack of new content here (all three of you). It is not the usual loss of interest that comes so often after the initial rush of writing your own blog has faded. It\u0026rsquo;s because I had to leave the US of A on a pretty short notice. Like a four-day-notice. Contradictory to popular belief I wasn\u0026rsquo;t kicked out by the authorities after they have found about my \u0026ldquo;secret hobby\u0026rdquo;*. I got sick, my condition worsened and I wanted to get home to receive the treatment I needed, in the environment that I felt comfortable in. Besides that, as I mentioned here, I didn\u0026rsquo;t want to single-handedly bring down my insurance company with outrageous bills. It\u0026rsquo;s been a couple of very rough months, not only for me but also for the people around me. Some folks claim it\u0026rsquo;s because of Saturn being in the house of Ariel the Mermaid or something but I don\u0026rsquo;t believe in that sort of stuff. Also, Nasa has declined my wish to nuke that f*cker. So there is that.\nDuring the last 180 days I learned a lot about me and \u0026ndash; I guess \u0026ndash; life. I learned that sometimes you have to ask for help and I am still deeply grateful to the nice girl working for Global Medical Management that listened to me and calmed me down when I was freaking out. I learned a lot about being homesick, too. I found new friends, realized the importance of old ones and will emerge a different, more mature person than I was before.\nI also learned that our educational system has some blind spots of its own. For example let\u0026rsquo;s say you are a good student and almost done with your thesis but you somehow managed to fall ever so slightly behind the \u0026ldquo;Regulstudienzeit\u0026rdquo; \u0026ndash; the number of semester you should need to complete your studies if you were Sheldon Cooper \u0026ndash; you are no longer eligible for \u0026ldquo;Bafög\u0026rdquo; \u0026ndash; the nicer form of student loans without interest. But you need to stay enrolled in order to write your thesis. Now imagine you get sick and are unable to work to support your extravagant lifestyle. Or maybe you cannot work because writing your thesis consumes ALL your time and energy and also you are on a deadline. You could go and ask for welfare \u0026ndash; or \u0026ldquo;Harz IV\u0026rdquo; as we poetically call it. But that would mean you have to drop out of university. Without a degree you would then be able to pick up one the paid retraining programs that are offered by the government to learn a job where you end up less qualified and therefor less likely to earn as much as you could have if you had just finished your studies which in return means you can pay less taxes to support other poor bastards in the same situation. Also it takes much longer and costs more money. If you trust the credibility of the \u0026ldquo;Statistische Bundesamt\u0026rdquo; (federal bureau for statistics I guess) not even 40% of students complete their studies within the given time window. Why it is still called \u0026ldquo;regular time\u0026rdquo; and not \u0026ldquo;exceptional time\u0026rdquo; is beyond me. This shows that I am not the exception to the rule but the rule and that I have to get by just like the other 60%: By relying on friends and family. And that feels so good at the age of 34.\nAnyway, I am back. I will have to rethink what I am going to do with this blog, but I\u0026rsquo;ll figure something out.\n*Please, that is just a joke. Don\u0026rsquo;t look into it! I am making it look worse by the minute, don\u0026rsquo;t I? It\u0026rsquo;s Guantánamo isn\u0026rsquo;t it? I knew it\u0026hellip;\n","date":"2015-02-04T09:24:06Z","image":"https://www.a-broad-view.com/p/a-hasty-retreat/sanfran-sunset_hu_74863c0fb68cd40.jpg","permalink":"https://www.a-broad-view.com/p/a-hasty-retreat/","title":"A Hasty Retreat"},{"content":"It\u0026rsquo;s time to dwell into what I consider to be two of the most (de)pressing issues of the American system: Health care and food. Let\u0026rsquo;s start with the latter. Food plays a big role in the American way of life, that turns rapidly into the American waddle of life when staple foods shift from wheat and water to burger and soda. With the introduction of high-fructose corn syrup, artificial sweeteners and fat-free products the portion of the population in the US that is overweight or obese has spiked ( here is a good talk about that). Since I\u0026rsquo;m not a nutrition expert, I don\u0026rsquo;t want to go too deep into that, but I may have some ideas that I would like to propose.\nFirst of all: Stop drinking soda all the time! I know your tap water tastes awful because of all the chlorine you put into it and I know that bottled water is expensive and evil (just do a quick google for \u0026ldquo;nestle\u0026rdquo; and \u0026ldquo;water\u0026rdquo;), but there are alternatives. You can filter the tab water or buy spring water by the gallon at Whole Food\u0026rsquo;s. And no, diet sodas don\u0026rsquo;t cut it. There are good reasons to believe that they are even more harmful than sugary drinks. Yes, there are unlimited refills for your super sized cups of Mountain Dew but that doesn\u0026rsquo;t mean you have to drink the dispenser empty to get your dollar\u0026rsquo;s worth. Right now there is a proposition for taxing soft drinks that have a high content of sugar in them and man there is some backlash against it. And by that I mean TV spots that claim the new tax would hit the poorest families the hardest, because they are the main consumer of soda drinks. Also businesses selling these drinks would lose millions. First of all, the business argument is weak by nature. If you are selling something that is harmful to the health, you should not be protected on the grounds that this is your business model. Chose something else. Second, the idea behind that whole proposition is that poor people with poor access to health care should not be drinking so much soda because they are the ones who cannot afford to be treated for diabetes! Which would be a great segue to the health care system, but I\u0026rsquo;m not done here. Besides rethinking your beverages of choice you might want to take a look at your comfort food. I went to Santa Cruz two weeks ago and walked along the Boardwalk, California\u0026rsquo;s oldest amusement park and for the first time since my arrival in California I have seen some really fat people. At the UC Berkeley the food is actually quite good, as is the sports program. Also there seems to be an incentive for girls to show off their shortest pair of hot pants together with the skimpiest top they can find while boys have to wear muscle shirts and shorts. So although there is always a bunch of \u0026lsquo;big guys\u0026rsquo; around the hamburger and pizza station in the cafeteria, it\u0026rsquo;s not the norm. Here, at the Boardwalk, Average Joe and his girlfriend are wheezing and sweating their way from one food booth to the next one, shoving funnel cakes (google it) with ice- and whipped-cream into their gaping mouths or enjoying a dozen of deep-fried Oreos (just imagine it). This is NOT healthy by any means! And don\u0026rsquo;t say that\u0026rsquo;s the exception! There is a food chain that sells a french toast that comes in at 2780 calories. While we are at it: Why do you applaud your nine year old daughter for putting on a ton of makeup and perform to a Nicki Minaj song in a cheerleader uniform? Aren\u0026rsquo;t you the guys who want their girls to be virgins until they marry and go crazy whenever there is a hint of a female nipple on television? But I digress.\nNow we can turn our attention towards the health system. Unfortunately, I have some first hand experience with it now and my conclusion can be summarized into one short abbreviation: WTF!? Let\u0026rsquo;s start with the fact that I have health insurance. A pretty good one as I was told. Still I had to pay $300 up front for a basic health check including some blood tests. This was the discount rate at the UC Berkeley Health Center and I didn\u0026rsquo;t even see a doctor. I saw an advanced nurse. Now, I don\u0026rsquo;t want to say that she was not qualified for the job, but for 300 bucks I would have liked to see the highest ranked doctor around. My plea for a bill that I could send to my health insurance company was answered with a harsh \u0026ldquo;We haven\u0026rsquo;t done this in 13 years.\u0026rdquo; and the ringing of my VISA card. I wanted to come back to discuss the results, but that would have been another $140 and even though I may get the money back at some point in the future (when the original copies will have arrived in Germany and been processed) I can not afford to do that regularly. I scheduled a phone appointment, which was free of charge. Later on I learned, that my trip to the hospital in an ambulance on my first day in Berkeley (yeah, I know, what a lucky fellow I am) was something around $3000-$5000 and I am still not sure if I have to pay for that, because my health insurance is never mentioned on any of the \u0026ldquo;accepted insurances\u0026rdquo; pages on any of the health center websites I have visited. Yeah, that\u0026rsquo;s right. Not all hospitals accept all health insurances. That is something that has not once crossed my mind, that you can have a health insurance and still not be treated because there is no contract between the health center and your insurance company. That is something that I have seen on \u0026ldquo;House MD\u0026rdquo; but never assumed to be real. Again: WTF?! Health is a big topic in the media, but it\u0026rsquo;s mostly fear mongering about how Ebola could kill us all within weeks interrupted by commercials that either go \u0026ldquo;How to get slim and ripped by being lazy? Take one pill of \u0026lsquo;Lazyripped 4000\u0026rsquo; to every fried-cheese-donut-orgy and we guarantee \\[certain restrictions apply\\] that you\u0026rsquo;ll look like Gerard Butler in 300 in no time!\u0026rdquo; or \u0026ldquo;Are you taking \u0026lsquo;Lazyripped 4000\u0026rsquo; and are you bleeding from one or more orifices? Call 1-800-GREEDY-LAWYER and make some mad money!!\u0026rdquo;. I don\u0026rsquo;t think that\u0026rsquo;s helpful.\nOne last thing I learned last week is that nuclear power passes for green clean energy here because it\u0026rsquo;s not a fossil fuel. I could overlook the imminent threat of a nuclear meltdown or a leak in the system or the theft of radioactive material by bad guys who want to build a dirty bomb, but the fact that we still haven\u0026rsquo;t figured out how to safely store nuclear waste for the next couple of thousand years makes me think than the term \u0026ldquo;clean\u0026rdquo; is inappropriate. It may be glowing green though.\n","date":"2014-10-13T17:19:05Z","permalink":"https://www.a-broad-view.com/travellogs/fried-oreos-green-nuclear-energy-and-visa-card-health-system/","title":"Fried Oreos, Green Nuclear Energy and the Visa Card Health System"},{"content":"I don\u0026rsquo;t know how he did it, but my advisor Daniel somehow tricked me into going to a real night club in the San Francisco Mission District. I haven\u0026rsquo;t been clubbing in ages which primarily has something to do with my age, but also with my somewhat twisted taste in music (see my playlists). Still, he got me to pay $20 for admission, which I found vastly overpriced until I realized that we had stumbled into the \u0026ldquo;Monster Drag Show\u0026rdquo; and a two meter tall queen was just about to sodomize a leather slave while singing \u0026ldquo;Wrecking Ball\u0026rdquo; by Miley Cyrus. I cried tears of joy. Daniel cried too, but that was because he spent another $20 on two (!) cups of beer. But after the first sips of tear flavored beer we were both dancing to what I assume was a mash-up of Michael Jackson and Katy Perry, thoroughly enjoying ourselves. As the evening progressed I remembered why I didn\u0026rsquo;t go clubbing as often as I did when I was younger.\nIt\u0026rsquo;s the other guys. And by guys I mean boys and girls, because they both eagerly play their parts in what I call \u0026ldquo;The Spiral Of Sexual Despair\u0026rdquo;. Soon I was trapped between boys drenched in too much cologne frantically trying to catch the attention of one of the dance floor goddesses who pretended to be way too drunk on beer that cost more than the minimum hourly wage. I just wanted to dance. When that became impossible due to the pushing and shoving and making out I was forced to leave the dance floor asking myself if I was a party pooper (which I am) or if other people just suck (which they do).\nI don\u0026rsquo;t have cable. A few weeks ago this sentence meant nothing to me, because even without cable there are some pretty decent TV channels to watch in Germany. Say about the GEZ what you want (please not here in the comments) but I have never missed Öffentlich Rechtliches Fernsehen (public broadcasting) as badly as I do now. It\u0026rsquo;s not like I only have a few couple of channels to chose from. Oh hell no, I have about 70! But half of them are in a language I don\u0026rsquo;t speak (Chinese, Vietnamese, Japanese, Spanish and even Hindi). Then I have a bunch of local news channels that show live web cam feeds of the traffic on the Golden Gate Bridge or have a slick guy in a suit explain the weather to me. There are some channels that feature reruns of TV shows from the 50s and 60s. Others have moms present their favorite meat loaf recipe. About ten are trying to sell me something. At all times there is at least one crazy priest, one aggressive lawyer commercial and for some reasons one really long AAA spot on air. The \u0026ldquo;Cool Channel\u0026rdquo; doesn\u0026rsquo;t play cool music. \u0026ldquo;Zulu - The Country Channel\u0026rdquo; does play country music though. One channel is for lease. The rest is divided into cartoons and crime. I\u0026rsquo;m glad I have Netflix and YouTube.\nEven after almost a month on the streets of America, I\u0026rsquo;m still struggling to grasp the concept of \u0026ldquo;right of way\u0026rdquo; in the US traffic system. Today I was being honked at furiously because I declined to smash my bike into the oncoming traffic. I sometimes stop at a red light, even though I want to take a right turn. For which I am being rightfully honked at. But my favorite thing around here are the \u0026ldquo;four way stops\u0026rdquo; that just choke all flowing traffic to death. Every car has to stop and the first one to arrive can then continue to drive. This is silly, but the best part is when, after a series of four way stops on one crossroad, two of the lanes don\u0026rsquo;t have to stop. More than once I have narrowly escaped death because I assumed the other car would have to stop since I had to stop as well. Of course more honking ensued.\n","date":"2014-10-05T19:00:53Z","permalink":"https://www.a-broad-view.com/travellogs/monster-drag/","title":"Monster Drag"},{"content":"I think the US exhibits capitalism in a very troubling form. For instance, competitive marketing has become the only kind of advertisement there is. It\u0026rsquo;s like watching children arguing about whose father is the strongest, while you already know both fathers haven\u0026rsquo;t seen the inside of a gym for a very long time. Maybe the comparison between children and advertisements is not ideal. Advertisements are more like politicians. They will go to great lengths to not tell you the true cost of what they are trying to sell you. The car is only $399 a month (if you pay $5999 in advance, by purchasing the in-house insurance and excluding tax). For example, T-Mobile made their pay-as-you-go model ridiculously hard to understand.\nIt\u0026rsquo;s $10 for the card, then you have to pay at least $10 that are being converted to 100 credits, that are then divided between the next three months and 30 credits per month are reserved for the monthly fee and everything else is being taken from the deposit on the card BUT after three months you have to pay ANOTHER $10 to not lose the money that is still on that card. At least that\u0026rsquo;s how I think their system works after I asked in three different T-Mobile shops. But they are only playing the game everyone else is playing, so I won\u0026rsquo;t blame them. Okay, I will, because I lost $10!\nI often feel like a sheep among wolves, a resource that needs to be exploited. Yesterday I read a bulletin inside a store that specifically described how their staff has to approach and engage with the customers. It read like \u0026ldquo;Don\u0026rsquo;t stop selling until the customer stops buying. Tell the customer that whatever they bought was what they wanted. Point them to more items they would like. Always engage with them in conversation.\u0026rdquo; Underneath that were the monthly sale statistics sorted by names so that I could see that Kevin was rocking while Maggie needed to get their act together. That explained why a team of head-set wearing highly motivated salesmen circled around us, asked us every two minutes how we were doing, if everything was fine, if we knew about the special, if we wanted that special and why we didn\u0026rsquo;t want the special, since it was basically for free (if we bought two other items at full price). We fled the scene/the mall and walked beneath stunningly beautiful buildings, so expensive that we would never ever even see the inside of them. Right in front of one of the especially luxurious buildings inside a lush garden, a beggar was sleeping on a cardboard. The inside of his legs was brownish red from the many time he peed his pants, making it look like blood. Or maybe it was blood. A very compelling statement about the status of the American Dream.\nNow to lighten the mood, a short quiz! What causes California to burn? That\u0026rsquo;s right: A drought! But what else makes California catch fire? Exactly! Light rain! Although being completely counterintuitive, a slight drizzle after a long drought moistens the dust that has been collected along the overland electricity lines leading to short cuts, sparks, burning poles and ultimately new fires and huge blackouts. I have to face the fact that I am now in a country of hurricanes, earthquakes, weapons and criminally lax safety regulations.\nAlso I was being told, that I have adopted a Californian accent. And I have learned that on a Friday night it\u0026rsquo;s perfectly fine to start drinking at 5pm.\n","date":"2014-09-23T16:35:22Z","permalink":"https://www.a-broad-view.com/travellogs/buy-now-think-later/","title":"Buy now, think later"},{"content":"There may be something wrong in a society where an SUV \u0026ndash; a vehicle to conquer almost any kind of terrain for the cost of many gallons of gas \u0026ndash; is the predominant car in the suburbs. Sure, there are some hills here. But none of them justify a four-wheel drive and man-sized tires. The names speak volumes themselves: If it\u0026rsquo;s not \u0026ldquo;suburban\u0026rdquo; it\u0026rsquo;s \u0026ldquo;patriot\u0026rdquo;. And if you are a patriot in the suburban, you\u0026rsquo;d better own both of them.\nSpeaking of names, I just went to \u0026ldquo;Target\u0026rdquo; to buy stuff to make this home more homely for the next 5 1/2 months, where I heard a mother call for her daughter \u0026ldquo;Miracle\u0026rdquo;. \u0026ldquo;Miracle\u0026rdquo; as in \u0026ldquo;It\u0026rsquo;s a miracle you are still alive, you spawn of Satan! Get your ass over here so I can beat it!\u0026rdquo; Maybe it\u0026rsquo;s a culture thing but I remember when people bought special \u0026ldquo;children naming books\u0026rdquo; to find the right name for their offspring. Here it seems like they just flip through a dictionary and pick a name at random.\nI get talked to a lot. By strangers, hobos, police men (for riding my bike in a walking zone on campus), but strangely not by my coworkers. At first I thought that I just imagined the total lack of acknowledgment of my existence. Then Daniel told me he felt the same way. Even the guys from the same cubicle try to avoid eye contact by all means. The only ones giving us a glimpse of human interaction are also visiting scholars from Europe. I don\u0026rsquo;t think it\u0026rsquo;s meant to be rude, it\u0026rsquo;s just that everybody fights for himself and that there is just no time for courtesy.\nI have learned that the words \u0026ldquo;Excuse me.\u0026rdquo; don\u0026rsquo;t express the desire to apologize for anything. They mean \u0026ldquo;I will cut you!\u0026rdquo;. I\u0026rsquo;m not sure about \u0026ldquo;I\u0026rsquo;m sorry.\u0026rdquo; but I suspect something similar.\nAnyway, the crossroads cafeteria at the campus is awesome although everybody says something else. I pay $7 for all you can eat and I can eat almost everything. They have a variety of vegan options including vegan cheese on real pizza and unlimited refills on silk soy milk in chocolate AND vanilla. I can even grab a cup and take an organic hazelnut latte to go without paying extra. If I\u0026rsquo;m not getting fat because of that, I never will.\nUntil next week.\n","date":"2014-09-14T16:49:34Z","permalink":"https://www.a-broad-view.com/travellogs/an-suv-called-suburban-a-girl-called-miracle/","title":"An SUV called Suburban, a girl called Miracle"},{"content":"That headline should have got me some attention. And some hatred. Not only do San Franciscians cringe when they hear the name \u0026ldquo;Frisco\u0026rdquo; but they also loathe the tech industry which they blame for rising rents and the loss of the original vibe of their beloved city. There is some controversy about how much can really be attributed to the rise of the tech industry in SF and how much is just inevitable in an attractive city that refuses to grow vertically and cannot grow horizontally. But I am neither a worker for the tech industry nor am I moving to SF. I am a visiting student researcher living in Berkeley and I apologize for the misleading headline.\nAfter one week I feel myself slowly adjusting to the way things are over here. I still don\u0026rsquo;t know what to say when somebody asks me \u0026ldquo;how I do\u0026rdquo;. How do I do? Why would they want to know? Should I answer honestly and describe the complex feeling of excitement and loneliness that comes with being a long way from home? Should I ask them how they do? But I don\u0026rsquo;t really care and if I would ask them all back, I would spend most of my days discussing feelings with strangers. Also, I really would like to just be somewhere without being spoken to at all.\nIn the pamphlet they were handing out at the \u0026ldquo;Visiting Scholar Meeting\u0026rdquo; they stated that Americans are more competitive and less cooperative compared to Europeans and I start to think that may be true. There is an overall feeling of competition everywhere which I have to get used to. Also people are either very nice to each other or they are screaming at each other. I have yet to witness something in between.\nThe Bay Area is known for having a huge number of homeless people roaming the streets. They are so common that people stopped noticing them. You can have your small little family having a small little picnic next to a screaming naked old man who discusses matters of life and death with his god without them even looking up from their plates. It is amazing! What is also amazing is the size of the television you can buy for under $300 (which is roughly the amount you would have to pay for a week of parking next to the university).\nLet\u0026rsquo;s see what next week brings.\n","date":"2014-09-07T16:35:27Z","permalink":"https://www.a-broad-view.com/travellogs/a-new-techie-in-the-frisco/","title":"A new Techie in the Frisco!"},{"content":"Almost my entire life it seems like I have been committing a crime against good taste without even knowing it. I was \u0026ndash; and I still am \u0026ndash; wearing a wallet chain. It first dawned on me when I was visiting the \u0026ldquo;Porn Film Festival\u0026rdquo; (because that passes as art in Berlin) and saw a short film about the importance of wallet chains in the lesbian culture. I never considered myself a lesbian, but then again, I didn\u0026rsquo;t consider myself a picture of masculinity either. Besides me and apparently lesbians, who else was still pulling off the good old wallet chain? Well, stoner. And skater but there is a considerable overlap between these groups anyway. And thirtysomethings that hang around in clubs being all cool and edgy because they listen to \u0026ldquo;Nu Metal\u0026rdquo;. Yeah, that nineties Nu Metal.\nAdmittedly, these are not the best fashion colleagues to have and there was a time in my life where I abandoned my chain wallet and decided to finally grow up. That was until I lost my wallet a few weeks later. It fell out of the back pocket of my pants while I was riding my bike to my band rehearsal (Post Hardcore not Nu Metal). It was the first and last time I have ever lost my wallet. I have never had it stolen. I have never accidentally left it somewhere and had to pick it up. It is always with me, dangling on the chain and reminding me with every step and every clanging of metal that it is still with me.\nI say it is time to acknowledge the usefulness of wallet chains and to bring it back, if not as a fashion statement, then as a really good way not to lose your most valuable belongings.\n","date":"2014-09-06T18:54:51Z","permalink":"https://www.a-broad-view.com/ramblings/in-defense-of-the-wallet-chain/","title":"In Defense of the Wallet Chain"},{"content":"Down on the West Coast, they got their icons The silver starlets, their queens of Saigon\u0026rsquo;s\nEver since it was confirmed that I could write my master thesis at the UC Berkeley I have been living in a state of excitement and sheer terror. I dread Sunday because it means parting ways from my loved ones for six long months. Still I\u0026rsquo;m sitting on packed bags, waiting for Sunday to finally come. This playlist reflects this mood: I\u0026rsquo;m ready, but I\u0026rsquo;m scared.\n","date":"2014-08-18T15:09:16Z","permalink":"https://www.a-broad-view.com/travellogs/im-going-to-murica/","title":"I'm going to 'Murica!"}]