Soccer, Uncategorized

Soccer in Maine

Is a bit confusing to me.

I grew up in Germany with a developed soccer club system. From kids to adult you play for a ( or many depending on your loyalty ) club where you have your practice and soccer games against other clubs more or less regional depending on skill level. Schools are rarely involved at all.

Now that I’m settled here in Maine. I picked up being a soccer referee. I took a course and started refereeing Middle and Highschool games. Those are fall season with roughly 2 months of games every day (at least for referees) .

Then I took another course to referee club soccer games, which are organized by local soccer clubs more similar to the german system with a spring and fall season. I accidentally also came to be the referee assignor for my local club instead of just a referee.

It is all still a it confusing to me why there are so many different organizations in competition of soccer talent. But that’s the way it is. And I’ll try to make my way up the referee ladder 😉

Advertisements
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.

T

 

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.