We use Oracle for our databases so have a lot of .pak and .bod files in our Azure Repo. Currently, when you create a pull request the diff view will show it with no syntax highlighting. I'm trying to get ADO to treat them as .sql files as they are essentially the same and that is how we used to be able to see the syntax on gitlab. Is there any way to do this on ADO?
Screenshot demonstrating the issue I have two errors in this file, and both are showing up in the Problems panel. All good. There is a warning too, however, on line 8. It's a warning about the member dummy implicitly having an "any" type, and I notice it's not showing up in the Problems panel. Why is that, and how can I make sure things like this show up in the panel? I checked the filters for the Problems panel, thinking that maybe the warning was being filtered. The Errors, Warnings, and Infos checkboxes are all enabled though, so that's not the issue. Here's a smaller repro: class Foo { bar
Seems like since the Google Trends webiste update, I haven't been able to use Pytrends at all. Is there anyone who can help me with that? Thanks! It's giving me error code 429 straight away.
I am trying to convert a webm video to mov format without losing quality and transparency using the following command: ffmpeg -c:v libvpx-vp9 -i input.webm ouput.mov The video gets converted, but it loses transparency and the background of video is black. I also tried the following command: ffmpeg -c:v png -i input.webm output.mov But it gives me the following error output: libavutil 58. 3.100 / 58. 3.100 libavcodec 60. 4.100 / 60. 4.100 libavformat 60. 4.100 / 60. 4.100 libavdevice 60. 2.100 / 60. 2.100 libavfilter 9. 4.100 / 9. 4.100 libswscale 7. 2.100 / 7. 2.100 libswresample 4. 11.100 / 4
I'll be in South Korea for a couple of weeks and would love to rent a car there to drive around the country. What is the best navigation app I can use there (with English interface of course)? It seems like GMaps is completely useless, it can't make any driving routes.
Problem I am trying to use image optimization for local files inside the public directory in a SSG Next.js project. There have been quite a few discussions on Github about introducing the possibility to use the next/image for image optimization at build time. However, at this moment, the next/image component does not work with the static site export. See: https://github.com/vercel/next.js/discussions/19065 Solutions Attempts / Ideas From what I could find, there are a few different actions that can be taken: 1. Set the unoptimized flag in the next.config.js file to completely disable image opt
I have a situation where I need to create a computed property from a pinia store getter - import { computed} from 'vue' import { storeToRefs } from 'pinia' import {useMyStore} from './../stores/mystore' export default { setup() { const { sessionUser } = storeToRefs(useMyStore()) const fullName = computed( () => `${ sessionUser.value.value.firstName } ${ sessionUser.value.value.lastName }` ) return { fullName } } } Obviously the value.value is clunky, and I'd rather not move the computed property down into the store itself. I know why the vale.value is necessary, but is there any better way to
As you can see from my code, I've written a simple program with the turtle module to randomly draw lines with a random color. The turtle will randomly move forward or backward with a random distance which is chosen from a list. What I would like to do is to prevent the turtle to go outside the window border. I've tried different things, searched on this website, also asked to chatGpt but none solution found solved the problem. Can someone fix my code explaining to me what I'm doing wrong? import random import turtle from turtle import Turtle, Screen my_screen = Screen() my_screen.setup(800, 60
I'm experimenting to determine if the pathlib module is an improvement over the os for directory traversal. To my surprise, I am getting better readings from the os module when compared to pathlib. Which is something I was not expecting. Is it because the os module is dumb enough to not care if the path string represents a file or a directory or a link etc.? So speed vs. better control? Perhaps I am not using pathlib the way it should be used for this. Here's the code: import os import sys import pathlib import time import pdb def TraverseDir(path=None, oswalk=None): if path is None: path = pa
In Vs-Code the plugin "KUBERNETES" shows the error (Kubectl command failed) when it tries to load the kubernetes that are loaded/running in my host (Linux - Ubuntu). Correction in VS-Code using Kubernetes extension (CMD/CTRL + SHIFT + P) Search for: Open User Settings (JSON) click on Preferences: Open User Settings (JSON) add "vs-kubernetes.enable-snap-flag": true and save the file "settings.json" Capture of the solution when Kubernetes does not recognize the cluster in the host (Linux) I found the solution here: https://github.com/vscode-kubernetes-tools/vscode-kubernetes-tools/issues/522#iss
I have this code that does it using SVD. But I want to know how to do the same using PCA. Online, all I can find is that they are related, etc., but I am not sure how they are related and how they are different in code, doing the exact same thing. I just want to see how PCA does this differently than SVD. import numpy as np points = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) # Centering the points mean_point = np.mean(points, axis=0) centered_points = points - mean_point # Calculating the covariance matrix covariance_matrix = np.cov(centered_points, rowvar=False) # Performing the SVD U, s, V
Details about my system; Ubunttu 22.04.2 LTS x86_64 pyqtgraph v0.13.1 pyhton v3.10 The code I'm trying to run on line 56; from pyqtgraph.Qt import QtGui, QtCore import pyqtgraph as pg app = QtGui.QApplication([]) The Error I get; AttributeError: module 'pyqtgraph.Qt.QtGui' has no attribute 'QApplication'. is QApplication no longer supported in pyqtgraph? Not sure on what to do, I got this source code from github and I don't completely understand what the author was doing. Edit: I get a similar error on line 58. win = pg.GraphicsWindow(title="plotting") AttributeError: module 'pyqtgraph' has no
Has anyone written Python code to traverse a Snowflake Role hierarchy? A role can be granted a role which can be granted a role. Nested roles are possible. In Python, I want to start with a specific role Query all grants to the role that are roles store each of those in a unique list for each of those roles execute a SQL statement that will query all roles granted to that role and traverse down the hierarchy, not missing a single role and also not traversing a role that has already been queried or that is in the list to be queried Something recursive to crawl this tree using Python would be he
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
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.
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
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
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
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
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
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
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
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
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
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.
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
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>
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
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