on-internet

How to show minio monitoring logs

I want to know how to open the monitoring logs on the page provided by Minio. so i want to be able to view the monitoring log information in MiniO, record and view the log information such as file upload and file deletion. I click the Start Log button in the monitoring log menu, but there is no log record of my uploading, downloading and deleting files. What other steps do I need to take to view the logs of file upload and file deletion in the menu of the monitoring log, and what logs are recorded in the monitoring log, because it is always without any records. If you provide the answer, I wil

Join the discussion →

How to Parse the Fancy Text From Text Area

I am facing some issues when copy paste the fancy texts and emojis in a textarea, Like 😋 and 🅵🅰🅽🅲🆈 🆃🅴🆇🆃 🅶🅴🅽🅴🆁🅰🆃🅾🆁 I have removed the emojis with following code: e.content.replace(/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g, '') Also wanted to remove the special fonts and fancy texts as well, but not finding a way. is there any way around for this, like i did for the emojis.

Join the discussion →

mux-player-react don't recognize object-fit cover

I'm using mux-player-react on a next.js site to implement a large background looped movie. https://website-agobay-coming-soon-5iemrgd6o-hhag.vercel.app/ The video should be object-fit: cover to cover all the browser window. unfortunately it doesn't work. eather with: .videoMob { --controls: none; --media-object-fit: cover; --media-object-position: center; or: .videoMob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(1); min-width: 100vw; min-height: 100vh; overflow: hidden; object-fit: cover; It's strange, if I use the mux-video-react class, it works fine but

Join the discussion →

How to Disable FRP using ADB Sideload?

my issue is pretty much in the title. I have been trying to remove the FRP of a samsung Flip 3. I set up ADB, downloaded the CLI tools with the right version. (I am not using Android Studio) Can anyone help Thank you in advance :)) When I try to execute any command in the ADB CLI it returns error: closed . This happened when I tried to execute these commands: adb shell am start -n com.google.android.gsf.login/ adb shell am start -n com.google.android.gsf.login.LoginActivity adb shell content insert --uri content://settings/secure --bind It happens with pretty much every command that I tried. I

Join the discussion →

How do I check if I have a C compiler on my windows PC?

I want to start creating programs in C, so I installed the VSCode C/C++ extension, but then the guide (https://code.visualstudio.com/docs/languages/cpp) says that I also need a compiler. It says to check for one first: Checking for the GCC compiler g++: g++ --version Checking for the Clang compiler clang: clang --version But when I execute those in the VSCode terminal (or even in the windows terminal) like this I get an error: C:\Users\15Z-DB000>clang --version 'clang' is not recognized as an internal or external command, operable program or batch file. Is something missing from my terminal or

Join the discussion →

How to test a power bi report?

Is there any other way I can test a power bi report or any etl things ? I am a QA who does automation and quality testing for applications and bi reports. So i mostly use sql queries or sometimes python that almost match the dax to test the power bi reports. I am looking for some good resources to learn from too

Join the discussion →

Mechanism to validate the cardinality of SQL joins

When using SQL (Snowflake) I often join tables. I can never be 100% sure that the join is a one-to-one, one-to-many, many-to-many, etc... In Python pandas this is a setting in merge statements that will assert that the join is of the expected kind. Is there an equivalent in SQL? This is the pandas API: table1 = pd.DataFrame({ 'userId': [1,2,3], 'age':[20,30,40] }) #| userId | age | #|---------:|------:| #| 1 | 20 | #| 2 | 30 | #| 3 | 40 | table2 = pd.DataFrame({ 'userId': [1,2,2,3], 'gender':['M','M','F', 'F'], 'gender_valid_to_date': [None, '2020-01-01', None, None] }) #| userId | gender | ge

Join the discussion →

How to calculate monthly price for AWS Serverless Opensearch?

I want to know min monthly price for serverless option of Opensearch. Docs say, "you will be billed for a minimum of 4 OCUs (2x indexing includes primary and standby, and 2x search includes one replica for HA) for the first collection in an account." Min 4 OCU per hour 4 * $0.24 * 24 * 30 = 691$ per month and + s3 cost. Is it correct or I misunderstand something? I am asking because it looks quite pricy and we can use servers to reduce the price

Join the discussion →

How to Write Poisson CDF as Python Polars Expression

I have a collection of polars expressions being used to generate features for an ML model. I'd like to add a poission cdf feature to this collection whilst maintaining lazy execution (with benefits of speed, caching etc...). I so far have not found an easy way of achieving this. I've been able to get the result I'd like outside of the desired lazy expression framework with: import polars as pl from scipy.stats import poisson df = pl.DataFrame({"count": [9,2,3,4,5], "expected_count": [7.7, 0.2, 0.7, 1.1, 7.5]}) result = poisson.cdf(df["count"].to_numpy(), df["expected_count"].to_numpy()) df = d

Join the discussion →

Python Pattern Matching with optional variables

I'm using mypy and I have two classes: class Student: first_name: str ... class City: id: int name: str ... I have some db function that fetch the data and I end up with these two variables: student: Optional[Student] = ... city: Optional[City] = ... I want to do pattern match for each case of None or non-None data of both variables. I want to do different things for each case, this way: match student, city: case None, None: output = "they all none" case Student(), City(): output = f"student: {student.first_name} lives in {city.name}" case _, _: output = "one of them is none..." But mypy doesn

Join the discussion →

Why is MSYS2 MINGW UCRT x64 gdb command not found

I tried to check Mingw-w64 tools are correctly installed and gcc, g++ were correctly installed but gdb wasn't. I'm planning to usE Visual studio code in windows 10. In here it said to match PATH entry but when I went to C:\msys64\mingw64\bin directory, the file was empty. Did I miss something or how do I know the correct path to put in the environment variable? I tried C:\msys64\mingw64\bin as both user variable & system variable path but it won't work. and it said command not found. This is what it said: $ gdb --version bash: gdb: command not found

Join the discussion →

C++ Why is MSYS2 MINGW UCRT x64 gdb command not found

So I tried to check Mingw-w64 tools are correctly installed and gcc, g++ were correctly installed but gdb wasn't. I'm planning to usE Visual studio code in windows 10. In the https://code.visualstudio.com/docs/cpp/config-mingw#_run-helloworldcpp, it said to match PATH entry but when I went to C:\msys64\mingw64\bin directory, the file was empty. Did I miss something or how do I know the correct path to put in the environment variable? I tried C:\msys64\mingw64\bin as both user variable & system variable path but it won't work. and it said command not found. This is what it said. $ gdb --version

Join the discussion →

How can I use my principal component 1 (from PCA) as an axis in a hierchical regression analysis?

I am looking to use my PC1 from a PCA in a hierarchical regression analysis to account for additional variation in R. Is this possible? I ran my PCA with the code below in R: pca<- prcomp(my.data[,c(57:62)], center = TRUE,scale. = TRUE) summary(pca) str(pca) fviz_eig(pca) fviz_pca_ind(pca, col.ind = "cos2", # Color by the quality of representation gradient.cols = c("#00AFBB", "#E7B800", "#FC4E07"), repel = TRUE # Avoid text overlapping ) ggbiplot(pca) print(pca) #some results! Rotation (n x k) = (4 x 4): PC1 PC2 PC3 EC 0.5389823 -0.4785188 0.0003197419 temp 0.4787782 0.3590390 0.7913858440 pH

Join the discussion →

How do I construct a "signed size_t" for use with scanf("%zn")?

I tried to obtain the number of characters read as a size_t, using this program:¹ #include <stdio.h> int main(void) { size_t i; sscanf("abc", "%*s%zn", &i); printf("%zu", i); } GCC 12 warns about this: scanf.c: In function ‘main’: scanf.c:7:25: warning: format ‘%zn’ expects argument of type ‘signed size_t *’, but argument 3 has type ‘size_t *’ {aka ‘long unsigned int *’} [-Wformat=] 7 | sscanf("abc", "%*s%zn", &i); | ~~^ ~~ | | | | | size_t * {aka long unsigned int *} | long int * | %ln And it's correct² do do so; in the C17 draft standard, page 234, we read (my emphasis) No input is consumed.

Join the discussion →

Handling cookie not found error with oidc and keycloak

We have a Keycloak 18.0.2 with realms integrated to external IdP (Okta / Ping / Azure). In one realm we started seeing lots of IDENTITY_PROVIDER_LOGIN_ERROR / cookie_not_found in login events. And had users reporting that they were only able to login if they cleared their browser’s cache and cookies. We found some ways to reproduce this behaviour in dev environment: Multiple browser tabs: At the browser, tab 1, user opens application menu-navigator and is redirected to the External SSO login page (after Keycloak auth flow redirection). We see this login page being initialized with cookie KC_RE

Join the discussion →

How to change the background color of Selected item in CollectionView? .Net Maui

In Android, the default color is orange but I don't know how to change it. I tried the demo code of the official Microsoft's Docs, but it doesn´t work. //Xaml// <CollectionView ItemsSource="{Binding Products}" ItemTemplate="{StaticResource OfferProductStyle}" ItemsLayout="VerticalGrid,1" SelectionMode="Single" x:Name="MyCollectionView"> </CollectionView>

Join the discussion →

openrouteservice API - "error": "Authorization field missing"

I have a project for my university and I need to use openrouteservice API. I registered there and I generate an api-key. At API playground I choose Directions and then I get a basic route between two points with the profile provided. Returned response is in GeoJSON format. This method does not accept any request body or parameters other than profile, start coordinate, and end coordinate. I need to do this in C#, so this is my class where I want to call this API. class OpenRouteServiceCall{ private string \_apiKey = "my_key_number"; private HttpClient _client; private Uri _baseAddress; public O

Join the discussion →

How to encrypt decrypted text by django-fernet-fields?

I am using django-fernet-fields, and documentation says By default, django-fernet-fields uses your SECRET_KEY setting as the encryption key. my SECRET_KEY in django is the one created by django let say it is "XXXX". my dectypted text is "gAAAAABfIrFwizr11ppteAXE3MOMItPDNfNkr5a4HcS3oiT7ih4Ln7y6TeCC5uXWPS3Yup_0s7whK3T44ndNlJRgc0Ii4_s3_A==" when I try to encrypt it by using the code below token = SECRET_KEY f = Fernet(token) d =f.decrypt(b"gAAAAABfIrFwizr11ppteAXE3MOMItPDNfNkr5a4HcS3oiT7ih4Ln7y6TeCC5uXWPS3Yup_0s7whK3T44ndNlJRgc0Ii4_s3_A==") print(d) it throws an error, error is ValueError: Fernet

Join the discussion →

WhatsApp not passing text from link to Windows Desktop Application

My application needs to be able to send a WhatsApp message with a predefined template using the following link (in my code it obviously contains a real phone number instead of the placeholder): https://wa.me/phone_number?text=Thanks%20for%20reaching%20out! This previously worked up until a few months ago. Starting from a few months ago I found that it would only paste the message into the WhatsApp Windows application if WhatsApp was previously opened to that contact or if the app was closed, otherwise it would open WhatsApp to that contact but would not paste the predefined message. Does anyon

Join the discussion →

Pythonanywhere - ping: socket: Operation not permitted

Please help. I have a Telegram Bot that ping static IP every 60 seconds, when i start him from Bash Console - it works fine but once a day stops working. I tried to use Always on task but in log file receive 'ping: socket: Operation not permitted'. I have 5USD account, what can i do? What i see when run from Bash Console: --- 176.102.48.100 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms PING 176.102.48.100 (176.102.48.100) 56(84) bytes of data. --- 176.102.48.100 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms PING 176.102.48

Join the discussion →

code formatter settings (prettier) - how to stop autoclosing tags

my problem is that prettier in VS Code is automatically closing tags on save like that: <meta charset="UTF-8"> to: <meta charset="UTF-8" /> To resolve problem i have to set: ctrl + , -> type formatter -> editor:default formatter set on none. But I still want to use prettier so how to stop auto closing tags in prettier ?

Join the discussion →

Webclient SslHandshakeTimeoutException: handshake timed out after 10000ms

I've recently made a component using webflux and webclient. There are a few requests that uses an external resource to retrieve some data. In local works everything fine, retrieving data from the external resource and correctly displays to the user. When i do a deploy on remote server it doesn't work anymore and it shows me these error: i.n.r.DefaultHostsFileEntriesResolver : -Dio.netty.hostsFileRefreshInterval: 0 Jan 08 23:59:31 dlv-izac-user app/web.1 2023-01-09 07:59:30.715 DEBUG 4 --- [or-http-epoll-7] i.n.util.ResourceLeakDetectorFactory : Loaded default ResourceLeakDetector: io.netty.uti

Join the discussion →

python problem don't know how to make menu repeat

I am trying to make the main menu text keep repeating until the user chooses 5 and then the program closes but I don't know how to make it keep repeating. I tried to use a while loop which didn't work and started spamming the main menu. So here is the code all I need is for you to explain how to make the main menu repeat and the choice repeat until the user picks option five (exit). print('''------------ Main Menu ------------''') one='1 - show all contacts' two='2 - add a new contact' three='3 - find contact' four='4 - Delete contact' five='5 - Quit' print(one) print(two) print(three) print(f

Join the discussion →

glueContext create_dynamic_frame_from_options exclude one file type from loading?

raw_data_input_path = "s3a://{}/logs/application_id={}/component_id={}/".format(s3BucketName, application_id, component_id) df = glueContext.create_dynamic_frame_from_options(connection_type="s3", connection_options={"paths": [raw_data_input_path], "recurse": True}, format="json", transformation_ctx=dbInstance) my Bucket key contains 10 json files 1 txt file, i want to only include json files in the dynamic frame. Is that what the 'format' param is for in create_dynamic_frame_from_options https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-crawler-pyspark-extensions-glue-context.html#aws-g

Join the discussion →

vue-gtag: getting ERR_BLOCKED_BY_CLIENT after implementation

I'm trying to implement vue-gtag to my Vue3 project, but right after following the Get Started and Auto Tracking documentation, I'm getting the following log in my browser: GET https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX&l=dataLayer net::ERR_BLOCKED_BY_CLIENT I don't know what I've done wrong, but in order to better explain my implementation, that is it: createApp(App).use(router).use(VueGtag, { config: { id: G-XXXXXXXXXX } }, router).mount('#app') I also tried to add the plugin only in some pages as a test, but the same error occurs. I am using Google Analytics 4, or GA4, and I d

Join the discussion →

How can you carry out ordinal regression/classification using tidymodels or caret in R?

I know that the R packages ``tidymodelsandcaret``` both support multinomial classification. However, does either package support ordinal regression/classification? Here is what I mean by "ordinal regression/classification": Regular regression: estimate numbers, e.g., numeric values ranging from 1 to 250 Binary classification: estimate binary values, e.g., 0 or 1; positive or negative; yes or no Multinomial classification: estimate one of more than two categories, e.g., rock|paper|scissors; red|white|green. Crucially, there is no natural order among these categories. Ordinal regression/classifi

Join the discussion →

MAUI SearchBar Style

Is there a way to customize the style of the built-in SearchBar in MAUI? I need a white background like the bottom image and remove the Cancel button. My XAML: <SearchBar Placeholder="Search" ios:SearchBar.SearchBarStyle="Minimal" BackgroundColor="White" /> Result: Desired:

Join the discussion →

How to ensure satellite image correctly aligns with elevation model (DEM) in rayshader plot_3d plot

The below code gets the elevation data for an area in London and the equivalent Bing map. I plot the elevation code using rayshader and overlay the Bing map. However, they don't match up. This is because the Bing map dimensions don't match the rayshader map. I could change the dimensions via the width and height variables on the PNG function and get them to match using trial and error. However, I would like to do this programmatically. library(elevatr) library(rayshader) library(OpenStreetMap) #london bbox mapextent<-c(51.477482,-0.120438,51.527517,0.051910) #get elevation data elev_data <- ge

Join the discussion →

What is causing "Could not resolve CoreCLR path" when referencing a Console App from another Console App?

I'm trying to build a console application, A, into another console application, B (an NUnit testing project). B references A by a ProjectReference. When running A, it works fine. All is also fine when I run B without referencing A. However, I'm met with the aforementioned error when B references A. Why? And how can I fix it? Some similar questions I've found do not fix the issue. https://github.com/dotnet/sdk/issues/5779 - My runtimeconfig is as follows: { "runtimeOptions": { "tfm" : "net6.0", "framework" : { "name" : "Microsoft.NETCore.App", "version" : "6.0.12" } } } https://github.com/dotne

Join the discussion →
Older stories