instruction stringlengths 0 30k โ |
|---|
null |
Este mesmo procedimento funciona para o SSMS 20:
I got it working this way.
Install SSMS 17.9.1
Install SSMS 20.x
Install PoorMansTSqlFormatter
copy PoorMansTSqlFormatterSSMSPackage.pkgdef to C:\Program Files (x86)\Microsoft SQL Server Management Studio 20\Extensions (located at C:\Program Files (x86)\Mi... |
I am looking for code to accomplish following in Python (Snowflake solution would also work.)
```
column A (before transformation)
8->8->8->8->5->7
8->5->5->5->7
25->15->15->13->18
```
Need to dedupe numbers keeping the sequence intact
```
column A (after transformation)
8->5->7
8->5->7
25->15->13->18... |
How to dedupe numbers that are in sequence using Python |
|python|unique|python-dedupe| |
null |
My app is run inside kubernates/docker container. Here is the top output:
[![TOP output][1]][1]
It shows that my dotnet app is using 33700 MBs but when I sum RES and SHR columns it doesn't add up to that number. I thought I need to add the VIRT column too but then I would see more than 55GB used which is more t... |
(Edits: 3 (Solved))
TLDR.:
=======
After a configuration change, a new Service instance will be recreated (this may depend on the flag type of the Intent that helped spawn the Service.)
A leak will occur when a Service of a previous Activity's instance is recaptured ("held") by the new Activity instance.
*... |
If you're looking at changing the icon on the actual forms in the application:
------------------------------------------------------------------------
- Open your specific form in the designer view
- Right-click on the form and select 'Properties'
- Inside of the 'Properties' window, you can find 'Icon' and c... |
Currently, the pagination for the data table is displaying on two rows. As you can see here:
[![enter image description here][1]][1]
[1]: https://i.stack.imgur.com/kGfCx.png
I would like it to be on one line instead as it looks a bit messy. I've not been able to figure out how to do this.
Here is my... |
How to have the pagination display correctly? |
|css|r|shiny|dt| |
I ran into a similar issue recently. The alert needs to be granted access to query the Resource Graph. This is supported by using an assigned identity. Unfortunately this is not yet supported by `azurerm_monitor_scheduled_query_rules_alert_v2` as mentioned [here][1]. I was still able to provision the alert with Terrafo... |
{"Voters":[{"Id":18836744,"DisplayName":"Rakesh Govindula"},{"Id":18229928,"DisplayName":"Rukmini"},{"Id":17623802,"DisplayName":"RithwikBojja"}],"SiteSpecificCloseReasonIds":[18]} |
I have a docker container that runs a ROS2 (humble) node that publishes (among other things) imu data on a topic. The host is an NVIDIA jetson AGX orin. This part runs fine.
I run the Docker container with host network with the aim of being able to access this published topic outside the container. This is where troub... |
The problem is, The which I click the button it shows me a dropdown menu but the option elements are not visible in DOM. In this case, how can I solve it ?
The website is: https://www.pump.fun/board
Here you can see there is a button named sort: bump order. I have attached a picture of it as well. how can I select ... |
Encountering a problem to interact with a weird button which is a combobox (select) |
|python|selenium-webdriver|automation|selenium-chromedriver| |
{"Voters":[{"Id":18836744,"DisplayName":"Rakesh Govindula"},{"Id":18229928,"DisplayName":"Rukmini"},{"Id":17623802,"DisplayName":"RithwikBojja"}]} |
{"Voters":[{"Id":18836744,"DisplayName":"Rakesh Govindula"},{"Id":18229928,"DisplayName":"Rukmini"},{"Id":17623802,"DisplayName":"RithwikBojja"}]} |
{"Voters":[{"Id":18836744,"DisplayName":"Rakesh Govindula"},{"Id":18229928,"DisplayName":"Rukmini"},{"Id":17623802,"DisplayName":"RithwikBojja"}]} |
**Updated on Mar 29th, 2024**
You can create a user using `createUserWithEmailAndPassword`. The `email` must be in a valid format. Don't forget that the `password` must be strong enough. Firebase returns `auth/weak-password` error code when using a weak password (less than 6 chars).
See also:
- https://firebase... |
I deployed the a 3 node kafka cluster using the following config in docker-compose
Kafka cluster:
```
services:
kafka1:
image: confluentinc/cp-kafka:latest
hostname: kafka1
container_name: kafka1
ports:
- "9092:9092"
environment:
CLUSTER_ID: "7bes6xCzSMeUR-RRas3gMQ"
... |
This homework assignment ask me to write the preorder traversal of the tree but I'm confuse on how this would work because it visit node, left subtree, right subtree but it doesn't go to the middle. Would it just skip it or give an error?
[![enter image description here][1]][1]
[1]: https://i.stack.imgur.c... |
This project only has one single module-level [`build.gradle`](https://github.com/brunodev85/winlator/blob/main/app/build.gradle), while the root-project `build.gradle`, which loads the plugins onto the class-path, is absent. Just take such one from another project and drop it into the directory above - or configure th... |
In Woocommerce, does anyone know a way to Remove the Add To Cart button when On Backorder is selected in Inventory, and still keep the On Backorder text on the front end? This would be site wide?
Thank you!
Tried to work this out with:
```
add_action('woocommerce_single_product_summary', 'check_if_backordered',... |
I am new to writing functions and loops in R, and am wanting to iterate a chunk of code across columns in a dataframe, to create a new matrix of results. I am getting stuck with how to iteratively create new objects and matrices using/named after values in a certain column (Site) in my dataframe, to then pass through t... |
This is likely caused by this function setting the interpreter used by the label. Each text object has an [`Interpreter` property](https://www.mathworks.com/help/matlab/ref/matlab.graphics.primitive.text-properties.html#d126e1697981) that can be set to `'tex'` (default), `'latex'` or `'none'`. Putting it back to the de... |
|python|qiskit| |
I am developing a Blazor server app. I am setting 2 cookies, they work great running from VS, but I deployed it to our dev server and it started throwing errors about not allowing third-party cookies. It isn't doing any cross-site calls.
Any suggestions on how to solve this problem? |
3rd Party cookies error on deployment server |
|cookies|blazor|blazor-server-side| |
I have two BERT models to implement multilabel classification for vulnerability detection in code. One has been trained on source code, and the other has been trained on compiled code. The task they implement is multilabel classification, so the single output of both models is an array of 6 elements where each element ... |
{"Voters":[{"Id":11613622,"DisplayName":"brc-dd"},{"Id":3074564,"DisplayName":"Mofi"},{"Id":13376511,"DisplayName":"Michael M."}]} |
I developed an app in React Native that performs a financial transaction with Stripe. The function below is responsible for accessing the endpoint of the Node.js server I developed. There is no complexity, it's something simple. In the emulator, I can access the elements (payment screen) and get success in the transact... |
React Native App Crashes Unexpectedly in Build Mode when Accessing Stripe Payment Screen |
|android|node.js|react-native|express|stripe-payments| |
> what about i4, i5, i6
_Thread_local int i4;
- has storage-class specifier
- not static
- not tentative
----
_Thread_local extern int i5;
- has storage-class specifier
- not static
- not tentative
---
_Thread_local static int i6;
- has storage-class specifier
- has static
... |
{"OriginalQuestionIds":[59692797],"Voters":[{"Id":476,"DisplayName":"deceze","BindingReason":{"GoldTagBadge":"python"}}]} |
In your config file, you have `tags=[Critical, Normal]`. That means you have Locust set to look for tasks that are tagged with either of those tags in order to run. It will skip any tasks that are tagged with either of those. You'll need to either remove that line from your config file or tag your tasks.
https://doc... |
I believe you may not be thoroughly reviewing the documentation. It's necessary to install `react-native-screens`.
**#Run:**
npm install react-native-screens react-native-safe-area-context
[React Navigation][1] This is the official guide for **React Navigation**.
[1]: https://reactnavigation.org/doc... |
I got it to work with the uri method:
string serverPath = @"\\\\" + serverName;
string logNameFull = logName + ".txt";
string partialPath = @"\build\logs\";
string combinedPath2 = partialPath + logNameFull;
Uri serverUri = new Uri(serverPath + combinedPath2);
string finalPath = serverUri... |
Generate a .exe with pyinstaller the following command:
`pyinstaller --onefile --add-data "index.robot;." --noconsole index.py`
but doing so with the flag of --noconsole returns this error `Command '['robot','C:Users\\pathl\\index.robot']' returned non-zero exit status 120.`
But if I omit the --noconsole flag i... |
I have a django app running in VS Code 1.86.2 on a Debian 12 machine using Python 3.11.2. I'm working on a test deployment to Apache 2.4.57 and mod_wsgi 4.9.4. I've been working through docs from Apache and Django.
At this point I am able to load html documents from the deployed site, but the Django template tags ... |
In a Logic App, you need to use 2 `HTTP` actions: the first one to get a list of subscriptions, and the second to get the tags from each subscription.
[![enter image description here][1]][1]
Your first `GET` request goes to https://management.azure.com/subscriptions?api-version=2020-01-01
Response:
[![ente... |
in my case an example with react hooks
I have a global state which handles all the fields and I made a local state for each form section, or each form entry, so "onChange" I update the local state and onBlur I update the global state.
also there is a useEffect that onload if the global state has defult values o... |
3 line of code is enough for this. Please have a look.
<!-- begin snippet: js hide: false console: true babel: false -->
<!-- language: lang-js -->
const arr = ["monk", "konm", "nkom", "bbc", "cbb", "dell", "ledl", "llde"];
let a = {};
arr.forEach((word,index) => {
const sortedText = ... |
I am using selenium to automatically login website https://fiverraffiliates.com/loginaffiliate/. But Selenium did not load the page.
It just displayed a white website and nothing happened (below image).
This is my code:
```
from selenium import webdriver
from selenium.webdriver.common.by import By
from sele... |
How to setup different version of a dependency for main and componentTest folder |
|java|gradle| |
null |
I want to insert the no matched output to two tables. When I try to insert the output of the stored procedure it takes all the updated values as well to the new table not only the no matched values to the 'table'
I tried several methods it didn't work
```
ALTER PROCEDURE [dbo].[identify]
AS
BEGIN
SET NOCO... |
You need to add replace emoticons in sentence you sent to the function `convert()`:
```
def main():
sentence = input("Input a Sentence: ")
print(sentence)
sentence = convert(sentence)
print(sentence)
def convert(sentence):
sentence = sentence.replace(":)", "")
sentence = sentence.repl... |
As far as I understand, a simple java.util.Function should be thread-safe since it takes one parameter, processes it, and returns something. However, what about a currying function?
Let's consider a scenario where I define a private function (which is currying and complex) in a service singleton. Any request handled... |
There are a couple of nonsense things in your first snippet:
1. that's a function, which returns the useful data. Then, why pass as argument a callback to set the same data?
2. you correctly prefixed the api call with `await`. However, you later use the then. You should choose to use `async`/`await` or the callba... |
{"Voters":[{"Id":18836744,"DisplayName":"Rakesh Govindula"},{"Id":18229928,"DisplayName":"Rukmini"},{"Id":17623802,"DisplayName":"RithwikBojja"}]} |
Scroll down
```
Set pfr_obj=Browser("p").Page("page")
pfr_obj.RunScript("window.scrollBy(0,900)")
```
Scroll up
```
Set pfr_obj=Browser("p").Page("page")
pfr_obj.RunScript("window.scrollBy(0,-900)")
```
|
I am using google cloud tasks to sync some files from my storage. They have proven to be very unreliable they sometimes queue and don't start executing for few minutes or more. When they do they are not shown in cloud tasks console.
I am using this code to queue tasks
```js
const taskRequest: ICreateTaskReques... |
{"Voters":[{"Id":18836744,"DisplayName":"Rakesh Govindula"},{"Id":18229928,"DisplayName":"Rukmini"},{"Id":17623802,"DisplayName":"RithwikBojja"}]} |
**Cause**
Migration of uk.co.spudsoft.birt.emitters.excel from version 4.4.2 to 4.7.0 is caused this issue. In the updated version, pagination is enabled by default. Hence, all the table containing more than 40 rows are divided into multiple sheets, each sheet containing 40 rows.
**Resolving The Problem**
To fix... |
null |
I have a django app running in VS Code 1.86.2 on a Debian 12 machine using Python 3.11.2. I'm working on a test deployment to Apache 2.4.57 and mod_wsgi 4.9.4. I've been working through docs from Apache and Django.
At this point I am able to load html documents from the deployed site, but the Django template tags ... |
|python|django|apache|wsgi| |
I want to create a vite app for a custom frontend framework named OWL.
https://www.npmjs.com/package/@odoo/owl
But this framework is not available in options which we get while creating Vite app.
It has only popular libaray/framewrok like Vue, React etc.
How to create Vite app with this custom framework? |
How to use a custom js framework to build Vite App? |
|javascript|frameworks|vite| |
null |
I am experiencing an issue with NGINX configuration.
I have developed a project using Next.js and Strapi. This project runs on a single Ubuntu server on different ports. Below is the NGINX code that I did not write, but it is not functioning correctly.
`server {
listen 80;
server_name example.com;
... |
NGINX Configuration Issue with Next.js and Strapi Project |
|nginx|strapi|nginx-config| |
null |
[Microsoft documentation][1] says "To allow a user to sign in to the VM over RDP, you must assign the Virtual Machine Administrator Login or Virtual Machine User Login role to the Virtual Machine resource."
However, this is not the behavior I'm seeing, i.e. created a VM and can log in to it without having any of the... |
{"OriginalQuestionIds":[8164567],"Voters":[{"Id":12002570,"DisplayName":"user12002570","BindingReason":{"GoldTagBadge":"c++"}}]} |
This should be a [question](https://stackoverflow.com/questions/ask), not a discussion post.
|
null |
I'm working in a project with Vue 2. I need to know in which case the performance is better: when using `v-if` or `v-show`?
I have a long list and each item's list has a form hidden that I need show and hide to click a button that has each item list.
What is better: a toggle class of `v-show` or add and remove th... |
What is better in Vue, v-if or v-show? |
This should be a [question](https://stackoverflow.com/questions/ask), not a discussion post.
|
null |
I'm currently collaborating on a codebase developed by someone else, which includes multiple sub-projects, each with its own set of JAR files. My objective is to leverage these pre-built JAR files within my Spring application for testing purposes. The codebase I'm working with is hosted on GitHub at <https://github.com... |
Gradle build not using jar files from local projects |
|java|spring|gradle|java-17|spring-cloud-netflix| |
null |
You can simply replace a `1` which is followed by another `1` with a `0`:
```
import re
data = "0100010000101111101101001011010000101110111101111110111110111111111000000000001"
data = re.sub(r'1(?=1)', '0', data)
print(data)
```
Output:
```
'0100010000100000100101001001010000100010000100000010000010000000001... |
Android 14: D/UsbAlsaDevice( 1571): Unable to set device connection state as INPUT device type is none
its from logcat, when i connect DAC or digital earphone. it appears in Matrixx and MikuUI. i found nothing useful about this log before. im sure DAC is not borke, system can connect it but no sound output. Music so... |
This bash script effortlessly converts .ttf, .woff, and .woff2 font files to its css-base64 @font-face version, ensuring they stay as gorgeous in your CSS as they do in the wild.
**Why It's Awesome:**
- Supports Multiple Formats: .ttf, .woff and .woff2 (can be extended)
- True to Original: Keeps your fonts looki... |
Anaconda is not simple. If you are looking for a simple way to switch between Python versions or environments, maybe look at `pyenv`.
On Windows, there is also [the `py` wrapper](https://docs.python.org/3/using/windows.html#launcher) which lets you select which of one or more installed Python versions to use.
Any... |
{"Voters":[{"Id":18836744,"DisplayName":"Rakesh Govindula"},{"Id":18229928,"DisplayName":"Rukmini"},{"Id":17623802,"DisplayName":"RithwikBojja"}],"SiteSpecificCloseReasonIds":[11]} |
|node.js|character-encoding|node-fetch| |
Try this @user12277274 and let me know if it is working as you expected .upvote if it is working
%dw 2.0
output application/json
var currentDate = now()
var currentYear = currentDate.year
var currentMonth = currentDate.month
var inputDate = "03/01/2024" as String {format: "MM/dd/yyyy"}... |
MySQL supports the following functions:
- AES_ENCRYPT(str, key_str);
- AES_DECRYPT(crypt_str,key_str);
However, I **can't** update all MySQL entries using the following (because aes_encrypt returns binary):
UPDATE Patient SET firstName=AES_ENCRYPT(firstName, "mySecretKey"), lastName=AES_ENCRYPT(lastName... |
`dict` is equivalent to `dict[Any, Any]`. Type hints always override inference, so you replaced the ability to *infer* that `y['result']` has type `str` with a stated fact that `y['result']` has type `Any`.
The solution to this is inherently tool-specific, but as an example, `mypy` has an option, `--disallow-any-gen... |
I want to know about best practices with C, in creating a API connection wrapper, I have credentials and a variety of non-security related global variables. This will be in a public git repository so I don't want to expose sensitive data. However, I need the security data at compile time, not just at runtime. I see ... |
I have two spark dataframes
dataframe_1:
```
+----------------------------+------+---------+-----+
|timestamp |target|counter_1|max_1|
+----------------------------+------+---------+-----+
|2023-08-18T00:00:00.000+0000|0 |0 |0 |
|2023-08-18T00:10:00.000+0000|1 |1 |1 ... |
Your question is quite too complex to be easily answered. There are so many variables impacting load performance of an application. But i'll try to give you a quick overview.
## 1. Can Angular remove unused JS and CSS. (tl;dr: Yes)
Technically not Angular, but the used bundler can remove unsued code. If you build it ... |
{"Voters":[{"Id":476,"DisplayName":"deceze"}]} |
{"Voters":[{"Id":3750257,"DisplayName":"pppery"},{"Id":522444,"DisplayName":"Hovercraft Full Of Eels"},{"Id":17562044,"DisplayName":"Sunderam Dubey"}],"SiteSpecificCloseReasonIds":[13]} |
{"Voters":[{"Id":-1,"DisplayName":"Community"}]} |