Internet, Work

Apple Watch

Thanks to my companies Christmas present I’m running around with a computer on my wrist.
A computer with more processing  power (and a better display) than my first desktop computer that occupied half a desk and was plugged into 220V (yes it was in Europe).

Short term effect : I think I move more. The activity app and its reminders help not to “forget” about moving and your workout. Neat feature.  It also inspires competition with your co workers 🙂

The notifications are nice and dealing with emails and messages is super easy. As usual with Apple, all well thought trough as long as you stay within the Apple universe. It unlocks my Macbook, I can control my music on my iPhone and use my Apple TV.

Overall nice piece of technology, when you have other Apple devices.



My Webprojects, Software, Work

Gravity Forms List Field Type: Make sure to have a minum number of rows

I recently ran in the problem that a client wanted an application form which is easy peasy built with Gravity forms.

They also wanted to ensure that at least 3 previous jobs are filled out. The previoius employers field was a list field (Name, Address, Time worke there etc.)

If you ever need to enforce a minumum amount of list items use the Gravity Form field validation :

add_filter( 'gform_field_validation_1_27', 'force_three_rows_in_lists', 10, 4 );

function force_three_rows_in_lists($result, $value, $form, $field){

if ( $result['is_valid'] && count($value) < 3) {
$result['is_valid'] = false;
$result['message'] = 'Please enter at least 3 previous employers (Use the + Button at the end to add more lines)';

return $result;

The count($value)< 3 is the important part, the $value is an array of rows that are submitted.


More Info about that filter in the Gravity Froms Documentation.


The suspected Hacker

I have a co-worker who lvoes to print out articels for everyone in the offfice. He is a very smart guy (no cell phone & NY Times subscription kind of smart).

I found an article about the Blackhat conference on my desk this morning. This fuels my suspiscion that my co worker suspect me to be some kind of oddball hacker computer whiz. (Which I am NOT (or maybe)).

So lets fire up the command line, start gulp (to convert sass -> css and reload my browser) and deploy with git via commandline. Those status messages seem to work like dark hacker magic to some people.