on-internet

Python Selenium Chrome Driver version 123.0.6312.86

Previously I installed Chrome driver version 103.0.5060.53 on the conda virtual environment but now Chrome is updated with the newer Version 123.0.6312.86 so the script is not working I want to update new stable Chrome driver version 123.0.6312.86. Can anyone please guide me, How I can install the new Chrome driver version on my virtual environment? I am getting the following errors: selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 103 Current browser version is 123.0.6312.86 with binary path C:\Progr

Join the discussion →

Why can a Range be collected into a HashMap or Vec in Rust?

I recently encountered a problem while learning about iterators. I attempted to convert a list of numbers into a Vec, but when I changed the type to HashMap, no error occurred. For example: type Test = Vec<(usize, Vec<usize>)>; // type TestHashMap = HashMap<usize, Vec<usize>>; ... fn make_heavy_things() -> Test { let x = (1..=10).map(|v| (v, vec![v])).collect(); x } // x can be a HashMap or Vec depending on the return type Both types seem to work without any issues, and common methods like len() work as expected. I'm curious about the reason behind this behavior.

Join the discussion →

How to Ignore Mouse Input with Unity's New Input System while Clicking on an UI Element?

I receive input from the mouse with the New Input System, but I do not want to receive input while the mouse is on any UI object, regardless of it being over or under any non-UI object. I tried EventSystem.current.IsPointerOverGameObject(). It seems to work, but it also gives a warning every time input is received. Calling IsPointerOverGameObject() from within event processing (such as from InputAction callbacks) will not work as expected; it will query UI state from the last frame UnityEngine.EventSystems.EventSystem:IsPointerOverGameObject () ... Here is my code: private void OnEnable() { mo

Join the discussion →

How to correctly rebuild a C++ project as a Debug using CMake for further profiling with Valgrind?

I have a C++ project that I previously built using CMake. Now I need to rebuild it as Debug so that I can profile it with Valgrind to find code bottlenecks. However, I have a problem with the rebuild. I go to the root directory with the project: cd MyProj Later I start the process of building and installing the project: mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/home/user/Desktop .. make -j4 install After that I rebuild the project as a Вebug in the following way: cd .. mkdir Debug cd Debug cmake -DCMAKE_BUILD_TYPE=Debug .. make After rebuilding, I run the project for profiling with Va

Join the discussion →

Integrate the Play Integrity API in Google play console

I am new to making apps live in Play console, I have an app that uses firebase phone auth. to remove recaptcha i need to enable app integrity API in cloud console that i did already then in play console i linked my app with my google cloud project and added implementation 'androidx.browser:browser:1.3.0' implementation 'com.google.android.play:integrity:1.3.0' in my build.gradle as well now the main issue I am having is this 3rd step on setting up play integrity api in Play console. "Integrate the play Integrity API" and "Integrate Integrity API" both take me to documentation which I am not ab

Join the discussion →

How could this Y' be the same as this Y combinator itself?

I see this in wiki: Y' = SSK(S(K(SS(S(SSK))))K) And I understand why it corresponds to this lambda expression Y' = (λab.aba) (λab.a(bab)) But I don't know how can this be the same as X = λa.(λx.xx)(λx.a(xx)) or X = λa.(λx.a(xx))(λx.a(xx)). Can Y' be transformed to X by β-reductions or some other way, and how ? Thanks ...

Join the discussion →

How to solve location permissions policy

Hi team, I have concerns regarding the location permissions policy issue it's been a long month solving this problem, but I still experience rejection for these errors. Google Response: (Bundle Version: 7) is not compliant with the Location Permissions policy, or we were unable to review and verify your in-app experience for compliance with this policy. Feature not eligible for background location access Based on your declaration, we determined that you can use foreground location access instead of access to location in the background to function. Please remove access to location in the backgr

Join the discussion →

How do you make Mac menu items enable/disable based on the front window in SwiftUI?

I'm writing an app that has 3 different types of windows, plus a settings window. Some of the menu commands affect only one of the window types. In AppKit, you give your menu items a selector as an action, and a target of nil. The system then walks the responder chain looking for a responder that responds to that selector. If it finds one, it enables the menu item. If not, it disables the menu items. That's all you have to do.

Join the discussion →

How to Automatically Load Personal and System Profiles in PowerShell 7 with Oh My Posh?

After installing Oh My Posh on my Windows 11 default PowerShell terminal, it worked perfectly. However, upon upgrading to PowerShell 7 (via the official .msi installer), my terminal reverted to the plain, pre-Oh My Posh appearance. It seems that my system profile, which includes the Oh My Posh configuration, isn't being loaded automatically in PowerShell 7. I'm including screenshots of both the working setup in the default PowerShell and the current state in PowerShell 7 for clarity. How can I ensure that both my personal and system profiles are automatically loaded when I open PowerShell 7, t

Join the discussion →

LayoutBuilder does not support returning intrinsic dimensions. Layout Builder is not Working insisde CustomScrollView

I am using CustomScrollView() with SliverFillRemaining and Inside it I used a row with two expanded widgets side by side. I want to use LayoutBuilder inside those Expanded Widgets but it is throwing an error. What is the possible solution to it? I want to get the dynamic size of those Expanded Widgets whenever the user changes the width or height of the screen. Here is the code Scaffold( backgroundColor: blackColor, body: CustomScrollView( slivers: [ SliverFillRemaining( hasScrollBody: false, child: Row( children: [ Expanded( flex: Responsive.isMediumDevice(context) ? 4 : 1, child: Container(

Join the discussion →

IA32 Assembly converting strings using String Primitives

I'm a current student taking classes, and I'm having real troubles with this program. Now, I'm not just looking for the answer, as I would legitimately like to understand what is happening, but I have exhausted all of my resources and now here I am. To start off, my program is supposed to take a user generated string of numbers (32-bit max). From there, I need to use LODS* to pull each digit from the string, and convert it to a decimal value, where I then use LODS* to restore back to a second array for future use. After that, I need to re-access that array and re-convert all of the decimal val

Join the discussion →

How does sorting a vector of references to references of str work on the strings rather than the outermost references?

While learning rust, I ran across this snippet embedded within an answer to an online problem. I didn't expect this to be the correct answer as I naively thought elem_refs.sort() would sort by the references in the vector rather than the strings. Why does elem_refs.sort() sort on the strings rather the the references to the strings (or rather &str's) ? Obviously, it is convenient and the desired result but where is this behavior documented? Much obliged for your insights. fn main() { let list = ["b", "d" , "q", "a", "t" ]; let mut elem_refs: Vec<&&str> = list.iter().collect(); println!("{:?}",

Join the discussion →

In Rcpp, how to include cpp package that installed in cluster?

I am trying to include the boost package in Rcpp file by: #include <boost/math/distributions/binomial.hpp> Since it is installed under the route of a high performance computing cluster, so I change the route to: #include "/storage/icds/RISE/sw8/boost_1_81_0/boost/math/distributions/binomial.hpp" However, within the binomial.hpp, there are other hpp files that I don't have the permission to alter their routes, so I failed to include the binomial.hpp. Is there a way for me to include the package?

Join the discussion →

Error: "A tag read consent state before a default was set" for Google consent mode v2

I'm configuring Google consent mode v2 for PHP based project. And after I open the web page in browser, in Google tag assistant I receive the data I sent (such as 'ad_user_data') but receive and error "A tag read consent state before a default was set" Google Tag Assistant result This is the beginning of the html code of my project which contains the code for Google consent mode v2. <head> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments)}; gtag('consent', 'default', { 'ad_user_data': 'denied', 'ad_personalization': 'denied', 'ad_storage': 'denied',

Join the discussion →

How to get Youtube video transcript with YT API

I relate to this solution, which doesn't work for me as expected: https://stackoverflow.com/a/35555773/1992004 Example URL: https://www.youtube.com/watch?v=WECQWfbrDRA Accessing YT API with request, recommended in the cited solution, https://www.googleapis.com/youtube/v3/captions?videoId=WECQWfbrDRA&part=snippet&key=MYKEY I get an answer without transcript: { "kind": "youtube#captionListResponse", "etag": "_Q7mhkZOxmnB-OUYZtFh3NfoQTA", "items": [ { "kind": "youtube#caption", "etag": "inJmvEc9uoy20P6cTHGDrBw7Ucw", "id": "AUieDaY04UW8eDU0F_kn4QlGzc7lJriXOz42Nqc20cmkmQN759U", "snippet": { "videoI

Join the discussion →

finishing closed test on google play console

How do I conclude alpha closed testing for my app on Google Play Console? I'm looking for step-by-step guidance to properly finish the alpha testing phase and transition to the next stage. Any insights or resources would be greatly appreciate

Join the discussion →

Will Chrome extension be disabled for current users if I add a new host permission to match the current content script matches?

My understanding of adding new permissions, matches, or host permissions to your chrome extension's manifest is that it will automatically disable the extension for any current users, until they have had a chance to view and accept the new permissions (and it doesn't seem to do much to notify them, it just disables the extension). However, I found this answer which says that if you are simply adding a host permission to include something already covered in your content script matches, that it may not trigger a new warning. Testing with getPermissionWarningsByManifest seems to confirm that it d

Join the discussion →

Barcode scanning issues on iPhones

We are having issues on some iPhones with scanning barcodes using the ZBarSDK package (https://cocoapods.org/pods/ZBarSDK). It appears the issue is coming from newer phone types (iPhone 13, iPhone 13 Pro etc). Based on this, and on one screenshot from a client, where the app is unable to focus on the barcode, we think this is caused by the phone having multiple cameras on the back and choosing an inappropriate camera. Unfortunately, this happens only to some of our clients and we cannot replicate this in any device we have in our hands. The code that shows the barcode scanner is as follows (sl

Join the discussion →

This is my continual error: Error in interest_over_time(widget, comparison_item, tz) : Status code was not 200. Returned status code:429

I am currently trying to use gtrendsR but nothing will plot. So far, this is what my code looks like: trend <- gtrends("women in stem", gprop = 'web', geo = 'US', time = "today+5-y", onlyInterest = TRUE) Sys.sleep(1) plot(trend) I also tried with an API key trend <- gtrends("women in stem", gprop = 'web', geo = 'US', time = "today+5-y", onlyInterest = TRUE, gkey = "YOUR_API_KEY") I have tried the code without the sys.sleep. I have even tried basic gtrends code like gtrends(c("NHL", "NFL"), time = "now 1-H") and it gives me the same error. I tried them hours apart and shutting down R Studio but

Join the discussion →

Drive a rental car from Tashkent to Almaty

Is it possible to drive a rental car from Tashkent (Uzbekistan) to Almaty (Kazhakstan)? I understand that the route also crosses Kyrgyzstan. Would rental agencies allow crossing these borders? Would they allow pickup in Tashkent and drop off in Almaty? What are the documents that we would require for border formalities?

Join the discussion →

Custom analyzer in Elasticsearch index template

Can I create an Elasticsearch index template and specify a custom analyzer? I see I can do this when creating an index itself but I need to do it in a mapping. My goal is to create an analyzer for each fillable PDF form, so I expect to have thousands of them.

Join the discussion →

Spring Boot Cassandra Repository With Composite Primary Key & Not Using Seperate Key Class

I am using Spring boot cassandra entity classes and repositories, many of my entities/tables have composite primary keys or multiple columns that create the primary key and when extending Spring Data Repository interface the Primary Key has to be a single object which requires me to create a separate key class annotated with @PrimaryKey and doing that distracts or prevents me from having a single entity class which I want, to keep it simple and have all the columns from the table in the same class. Is it possible to have the three fields below that make a composite primary key in the same enti

Join the discussion →

Is Vientiane's new Khamsavath train station actually open yet?

In October 2023, Lao state media announced the "opening" of Khamsavath train station in Vientiane, which is meant to be the new terminus of trains from Thailand, 8 km closer to the city than the previous railhead at Thanaleng. However, as of February 2024, all train schedules I can find for the Nong Khai-Vientiane shuttles (the only passenger trains across the border) continue to indicate that they still terminate in Thanaleng. Is Khamsavath actually open yet? And if not, when will it open? June 2024 update: Trial runs have started, with an opening in "the next few months". Not holding my brea

Join the discussion →

Very long layover at London Heathrow T3

I have a very long (17 hours) layover at London Heathrow. I'll be arriving at terminal 3 and my connecting flight to LAX is also from terminal 3. I arrive 20:00 hrs and depart 12:00 hrs (12 PM) the next day. I have the following questions: Sleeping options at T3. I'm on the down low money wise so looking for something not too heavy on the pocket. Is moving from one terminal to another allowed? If so, I will be fine moving around the place (heck I've got 17 hours here!) if I can find better sleeping pods/lounges elsewhere. I am NOT looking at landside options so there's that.

Join the discussion →

Is it possible to live without killing?

Hooray! Aliens are discovered, the alien community is out there, and we want to join them. However to join their illustrious organisation, the Galactic Federation, it is a deeply moral group, and the condition is that no member can harm any life at all. They have a 'zero tolerance' policy on harming any life. This includes: a member is not allowed to kill animals (even to eat) a member is not allowed to kill plants (even to eat) a member is not allowed for any life to be extinguished by their existence, or industries that enable their existence at the time are prohibited from killing any life.

Join the discussion →

Setting up Selenium and Geckodriver on Ubuntu to use with Python

I'm having troubles setting up Geckodriver to run with Selenium on a Ubuntu VPS, referring to this previously asked question. My current setup: Selenium Version: 4.17.2 Firefox Version: 122.0 Geckodriver Version: 0.34.0 Python Version: 3.8.10 Ubuntu Version: 20.04.5 LTS Steps: Installing all the necessary packages sudo apt-get update sudo apt-get install firefox pip install selenium tar -xvzf geckodriver-v0.34.0-linux64.tar.gz chmod +x geckodriver sudo mv geckodriver /usr/local/bin/ The last command puts geckodriver on PATH, this is needed according to this post Verifying installation firefox

Join the discussion →

NavigationSplitViewVisibility.detailOnly not working in macOS

I've been having lots of problems with NavigationSplitView in SwiftUI under macOS (14.3 if it matters). The latest one is this: NavigationSplitViewVisibility.detailOnly doesn't seem to do anything, it just reverts to showing the 3 original columns. If anyone knows how to actually trigger NavigationSplitView to only display the detail area I will be eternally grateful. This is the code that is not working: import SwiftUI struct ContentView: View { @State private var columnVisibility: NavigationSplitViewVisibility = .all private var cvString: String { "\(columnVisibility)"} var body: some View {

Join the discussion →

String Interpolated base url and end point not working on Flutter Web app

I have implemented a flutter web app and created develop and release environments. I am accessing the API Url like "${ConfigEnv.baseUrl}${MyEndPointFile.jokesEndPoint}", . The Config File looks like below: class ConfigEnv{ static String get fileName { if(kReleaseMode){ return '.env.production'; } return '.env.develop'; } static String get baseUrl{ return dotenv.env['API_URL'] ?? ''; } } When I run my web app locally in develop mode or release mode then the correct base urls are picked as written in .env file but when I host the web app to custom domain then the base url is getting replaced by

Join the discussion →

How to simplify my double loop using MATLAB vectorization?

My code is: N = 500; % D_1=ones(N,N);% D_2=ones(N,N);% For simplicity. B=zeros(N,N); for i = 1:N for j = i+1:N basis_vector = zeros(N, 1); basis_vector(i) = 1; basis_vector(j) = -1; if D_2(i,j)>0 w = D_1(i,j) / D_2(i,j); else w = 0; end B = B + w .* basis_vector * basis_vector'; end end How can I simplify my code? Because N is very large, my code takes a long time to finish.

Join the discussion →
Older stories