WinSCP Files Custom Command for WinMerge diff

Veröffentlicht am 30.4.2015, 10:53 Uhr

Local command:

“C:\Program Files (x86)\WinMerge\WinMergeU.exe” /n /t=2 /q ! !^!

Thema: Kram Keine Kommentare - :(

Notepad++ backup folder

Veröffentlicht am 26.3.2015, 15:03 Uhr


Thema: Kram Keine Kommentare - :(

Postman: Use result data in test scripts (and save to environment)

Veröffentlicht am 10.3.2015, 21:41 Uhr

Just use ‘request’ in the test script:

Makes so many things easier :)

Postman (REST Client) Tests

Veröffentlicht am 31.10.2014, 16:04 Uhr


// save response in env
var data = responseBody;
postman.setEnvironmentVariable("data", data);

// parse value from json and save in env
var data = JSON.parse(responseBody);

// parse array from json and safe as string and save in env
var data = JSON.parse(responseBody);
var product = JSON.stringify(data[0]);
postman.setEnvironmentVariable("contentful", product);

// parse array from json, change value, and safe as string and save in env
var data = JSON.parse(responseBody);
data.locale = "en_US";
var device_update = JSON.stringify(data);
postman.setEnvironmentVariable("device_update", device_update);

### TESTS ###

// test resposonse code
tests["Status code is 200"] = responseCode.code === 200;

// test if response is empty
var data = JSON.parse(responseBody);
tests["Transaction list is empty"] = data.length === 0;

// test if body contains value
tests["Body contains string" + environment.device_id] = responseBody.has(environment.device_id);

// test exact values of json
var data = JSON.parse(responseBody);
tests[" is " + environment.transaction_id] = === environment.transaction_id;
tests["transaction.state is IN_PROGRESS"] = data.state === "IN_PROGRESS";

Managing Twitter Lists

Veröffentlicht am 9.11.2013, 22:37 Uhr

I started to group my “twitter users I follow” (Why is there no better word?) in (public and private) thematic lists to be able to follow them seperately. List management in Twitter’s web and mobile apps lacks a lot of features, so I went to trusted Google to find what is out there. Here are my 3 recommentations:

With these tools I was able to move some people around and dramatically clean up my lists.

Now to find (or create) a Twitter client that is made for lists and this style of reading. (On Windows, I recommend Tweetdeck.)

How to use private and business Dropbox accounts on Windows (7) at the same time?

Veröffentlicht am 4.11.2013, 22:17 Uhr

There seem to be two working options:

    This one got a nice installer and you can choose a colored icon so you can actually recognize your private/business Dropbox systray icon.
    But it uses an older Dropbox installer.
    Here you need to create a second user account so Dropbox can save its configuration somewhere. Nice hack, but very hacky.

I’m testing (1) right now and for now it seems to work great. Hope it keeps working.

Thema: Kram Keine Kommentare - :(

Dropbox for Business

Veröffentlicht am 4.11.2013, 10:26 Uhr

I had to research Dropbox for Business today. Here are the most interesting links and help files:

Nice product, well executed. And if you want some advice: Create a business account as soon as possible to avoid the moving of stuff and shared folders. That can really be a pain.

WordPress Multisite

Veröffentlicht am 3.11.2013, 23:00 Uhr

Today I spent some time reading up on WordPress Multisite. It was born out of WordPress MU and included in the Core of WordPress since version 3.0, but I never got around to really understand and use it. Here we go:



Special Cases



Multisite seems to work fine but sometimes behaves a bit strange, especially if you want to do special things that it’s not (really) supposed to do. The documentation lacks a lot (note to myself: maybe help) and the not-in-the-focus development from MU to Multisite causes lots of problems with old blogs posts, strange wording and information, confusing everybody. So I’m going to try using it.

Laravel 4, Eloquent: Check if there is a Model with certain key-value pair in a Collection

Veröffentlicht am 17.10.2013, 16:47 Uhr

I wanted to find out if there already is a Model with a certain value for a certain column in a Collection that I retrieved realier in my code, e.g. is there already a User with name = Müller in my $users Collection?

$users->contains() can only check if there is a model with a certain primary key, and there also is no method to trivially search through all Models. Of course this all could be hacked together somehow*, but after a bit of searching I found this nice way to solve my question:

$value = 'Müller';
$key = 'name';
if(in_array($value, $users->lists($key))) { ... }

Collection->lists() gets an array with all the values of the Model for the requested key. Checking if our new value is in there, is super simple.

*Of course I first tried it this way:

  1. use $collection->filter() and then count the result
  2. hack $collection->contains() +$collection->find() to accept a field name as a parameter
  3. see 2, but copy the methods as private methods to my controller instead of tinkering with the framework code directly

All 3 solutions worked, but needed lots of ugly code.

How to connect to Campfire using your favorite IRC client

Veröffentlicht am 12.10.2013, 17:08 Uhr

The team of a new project uses Campfire for group chat. Campfire is 37signal’s web based chat solution from back when they launched a new product every few months.

I don’t like chatting in a browser. And I’m a Windows guy and all the native Campfire clients for Windows work, but are not very pretty. You could probably even say they are a bit ugly. That’s why I went on a hunt to get Campfire into a Jabber or IRC client.

I’m in IRC all the time on freenode for several development channels, so I was really happy to find a small script that builds a brigdge between the Campfire API and IRC:

Here is a small ‘how to’ on how to get it to work on Windows:

  1. Download Ruby Installer: (I would suggest using the 1.9.3 version.)
  2. Use these options for the installation:
  3. Download the matching Development Kit from the same site.
    The installer is a bit crappy, make sure to extract to a new folder on your HD (e.g. “C:/Ruby Devkit”).
    Run the following commands in a command prompt in this directory:
    ruby dk.rb init
    ruby dk.rb install
  4. Now you can install the camper_van Ruby gem:gem install camper_van(Will take a while)
  5. Run camper_van to start the Campfire-IRC-bridge

Now you can connect to on port 6667 using “##campfire_subdomain##:##your_api_key##” (You can find both on your member site of the Campfire chat room) in your favorite IRC client. After connecting, /join #channelname to join your channel and you’re done.

camper_van translates all nicknames from “Foo Bar” to “foo_bar” so you can use it to reply to people in chat and your client can inform you if you were mentioned. Same for images or tweets, should all work.

Thema: Kram Keine Kommentare - :(

Googlebot visited this page Dienstag, 13. Oktober 2015, 22:27:37
18 queries. 0,248 seconds.