Using Git Stash to Cache Your Pending Changes

This is just a quick tip which i stumbled upon this weekend. Let’s say you are working on a git branch with a unfinished amount of changes. Now you want to switch branches i.e. to lookup some older/newer value, but you do not want to commit your unfinished piece of work. The solution? git stash.

Read on →

Symfony - Initialize Session From Request Parameter

Motivation

Working with HTML5 Audio Components, i realized Internet Explorer 9, Google Chrome and Mobile Safari, do not send Domain Cookies when requesting a playable File, which required the necessity to import the sessionid before initalize session management.

Solution

I created my own SessionStorage class and adjusted the corresponding routes to have an session_id parameter.

Whereas sessionid is the routing parameter.

Symfony: Deliver Mobile Version of a Template Without Loosing the File Specific Sf_format Parameter

I needed a Server-Based mobile switch for my symfony-project. The solutions I found all used a workaround with setting the sf_format parameter to a specific mobile version. But what if you are using sf_format already for different view-types?

My Solution will use the Extension, so you can have multiple view-templates like:

  • actionSuccess.mobile.php
  • actionSuccess.php
  • actionSuccess.mobile.xml.php
  • actionSuccess.xml.php

I hope this is useful for somebdody! You might want to specify more parameters or make this a filter.

Uvxrt - Vim Arrow- and End-key Problem

I’ve never heard of a “bash pipe”, (or many of those other terms, either). Isn’t that something we used to smoke back in the ’70s?

I’m using urxvt as my terminal.I discovered issues using vim. When i’m in insert mode and use the arrow keys or the Pos1 or END-Key the editor prints out A, B, C, Dand badly misbehaves using END.

Read on →