Id int64 4 8.51M | PostTypeId int64 1 7 | AcceptedAnswerId int64 7 75.5M ⌀ | ParentId int64 4 41.8M ⌀ | Score int64 -208 27.7k | ViewCount int64 11 12.4M ⌀ | Body stringlengths 0 45k | Title stringlengths 2 150 ⌀ | ContentLicense stringclasses 3
values | FavoriteCount int64 0 225 ⌀ | CreationDate stringdate 2008-07-31 21:42:52 2011-12-14 18:48:47 | LastActivityDate stringdate 2008-08-01 12:19:17 2023-03-05 04:40:26 | LastEditDate stringdate 2008-08-01 13:54:25 2023-03-05 03:12:45 ⌀ | LastEditorUserId int64 -1 21.3M ⌀ | OwnerUserId int64 -1 21.1M ⌀ | Tags listlengths 1 6 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
75,618,691 | 1 | 75,620,171 | null | 0 | 23 | Hi i am working with `maf` files (mutation annotation files)
```
dim(df_maf)
[1] 3906 136
```
The statistics of two columns i am interested in
```
length(unique(df_maf$Variant_Classification))
[1] 9
length(unique(df_maf$Tumor_Sample_Barcode))
[1] 925
```
So i am trying to see how many samples (`Tumor_Sample_Barcode... | How to check the frequency of one column with condition of other column in big data file in R | CC BY-SA 4.0 | null | 2023-03-02T17:08:57.423 | 2023-03-02T19:48:04.287 | 2023-03-02T17:12:01.947 | 13,071,518 | 13,071,518 | [
"r",
"dataframe",
"datatable",
"bioinformatics"
] |
75,618,692 | 1 | 75,619,232 | null | 0 | 28 | I have a horizontal ScrollView, which iterates an array of numbers and for each number a red card is created. When you press a card, that red card expands and only that one is shown. The thing is that when I want to stop expanding the view and go back to the previous state, the whole view is rendered again, returning t... | How can I keep the state of a ScrollView when I "close" a view so as not to return to the beginning of the ScrollView? | CC BY-SA 4.0 | null | 2023-03-02T17:09:00.297 | 2023-03-02T18:00:04.167 | 2023-03-02T17:18:03.763 | 20,287,183 | 17,443,496 | [
"swift",
"swiftui",
"swiftui-animation"
] |
75,618,695 | 1 | null | null | 0 | 18 | I have two media queries:
```
`@media (max-width: 815px){
.page .item {
margin-right: 5px;
}
}`
`@media (max-width: 655px){
.page .item {
margin: 0 auto;
}
}`
```
Though the media query (max-width: 655px) is declared later the margin-right is still 5px.... | media query with larger size has more specifity than the media query with smaller size | CC BY-SA 4.0 | null | 2023-03-02T17:09:13.677 | 2023-03-03T16:31:30.260 | 2023-03-03T11:45:46.900 | 21,245,285 | 21,245,285 | [
"css",
"dom",
"media-queries",
"css-specificity"
] |
75,618,694 | 2 | null | 75,618,462 | 3 | null | Some of your solutions compile. None of them do anything sensible.
The first one doesn't compile because you try to copy a `std::fstream` object when you put it into a `vector`.
The remaining ones engage in a mixture of dangling references and nonsensible behavior.
If you have a class with a reference and you store it... | null | CC BY-SA 4.0 | null | 2023-03-02T17:09:13.233 | 2023-03-02T17:09:13.233 | null | null | 1,774,667 | null |
75,618,679 | 1 | 75,618,782 | null | 2 | 23 | I need to merge the results of my regressions in a unique table. To give you an idea:
This is a sample of my dataset
```
> head(final, 20)
nquest nord sex anasc ireg eta staciv studio tpens
1 173 1 1 1948 18 64 3 5 2500
2 375 1 2 1925 16 87 4 2 1340
3 629... | R: how to merge the results in a unique output? | CC BY-SA 4.0 | null | 2023-03-02T17:07:42.003 | 2023-03-02T17:37:42.463 | 2023-03-02T17:37:42.463 | 19,167,156 | 19,167,156 | [
"r",
"merge",
"output",
"regression",
"lapply"
] |
75,618,699 | 2 | null | 52,354,195 | 0 | null | I had this problem when I used `.first`propery with an empty array.
To fixed this, just check if the array is empty or not before using `.first`:
#### Example:
```
OrderAddress(
address: addressRepository.items.isEmpty
? null
: addressRepository.items.first,
),
```
[](https://i... | null | CC BY-SA 4.0 | null | 2023-03-02T17:09:38.880 | 2023-03-02T17:09:38.880 | null | null | 10,832,700 | null |
75,618,647 | 1 | null | null | 0 | 26 | I'm creating a table with angular material 15, and I'm facing the following difficulty, the method to search for all customers is receiving the search parameters by url example
```
/filter/general?quantidadePorPage=10&pagina=${o.pagina}&nmCliente= ${o.filtro.nmCliente}&nmFantasia=&dtCadastro=&tpSituacao=
```
Another p... | Pagination with backend query params | CC BY-SA 4.0 | null | 2023-03-02T17:04:00.847 | 2023-03-02T20:03:27.737 | 2023-03-02T20:03:27.737 | 6,584,878 | 20,540,385 | [
"angular",
"typescript",
"angular-material"
] |
75,618,693 | 2 | null | 75,618,171 | 1 | null | It's unclear what logging is used but it can't be `LogTo`. The way this method is written, nothing should be logged, no matter what. The `categories` argument is used to filter all events. Those that match are passed to the `action` delegate which logs nothing in this case `_ =>{}`
I suspect the application uses `Micro... | null | CC BY-SA 4.0 | null | 2023-03-02T17:09:10.407 | 2023-03-02T17:09:10.407 | null | null | 134,204 | null |
75,618,703 | 2 | null | 75,618,670 | 0 | null | You could do something like:
```
s = [i%10 for i in range(10 + 1)]
```
or adding it manually might be more safe
| null | CC BY-SA 4.0 | null | 2023-03-02T17:09:57.377 | 2023-03-02T17:09:57.377 | null | null | 21,307,214 | null |
75,618,702 | 2 | null | 50,938,021 | 0 | null | I found an answer to this question that worked for me [here](https://stackoverflow.com/questions/47259336/webpack-dev-server-open-to-a-specific-path).
Just use Webpack's `open` option like this:
```
module.exports = {
// ...
devServer: {
open: ['/myapp'],
// ...
},
}
```
| null | CC BY-SA 4.0 | null | 2023-03-02T17:09:48.713 | 2023-03-02T17:09:48.713 | null | null | 19,801,376 | null |
75,618,698 | 1 | 75,618,768 | null | 1 | 16 | I have an altair chart that looks like below. I would like to make the axis lines thicker as I (read: the reviewer of my paper) feel the current lines are too thin and are not easily visible on the screen. I tried looking at the [Top-Level Chart Configuration](https://altair-viz.github.io/altair-viz-v4/user_guide/confi... | Altair make axis lines thicker | CC BY-SA 4.0 | null | 2023-03-02T17:09:30.990 | 2023-03-02T17:15:50.863 | null | null | 14,112,825 | [
"python",
"charts",
"visualization",
"altair",
"vega-lite"
] |
75,618,705 | 1 | null | null | 0 | 21 | Is it possible?
I need to create one zip for each sub-folder, but the code I have is always overwriting
| How do I create a Zip task in gradle that produces more than one Zip file? | CC BY-SA 4.0 | null | 2023-03-02T17:10:00.627 | 2023-03-03T13:46:38.307 | null | null | 1,011,649 | [
"gradle",
"groovy",
"zip"
] |
75,618,708 | 2 | null | 75,618,415 | 0 | null | The separator should be controlled by the Windows Region setting. There isn't a setting to change it in SSRS. The only other way I can think of is to create the format in the SQL and pass the value as text, but then you couldn't use any mathematical expressions on the text value.
[](https://i.stack.imgur.com/KWndX.png)... | null | CC BY-SA 4.0 | null | 2023-03-02T17:10:10.250 | 2023-03-02T17:10:10.250 | null | null | 4,459,617 | null |
75,618,709 | 1 | null | null | 1 | 12 | So, In the binary files of C program compiled using old gcc versions like 3.3.6 there is a section like `.dtors` but there is nothing like that in the binary files of C program compiled using new gcc versions like 11.3.0
I want to know what will be the last section to be executed in any gcc compiled code or the section... | Which section of the modern compiled code controls the exit of a c program? | CC BY-SA 4.0 | null | 2023-03-02T17:10:12.860 | 2023-03-02T17:10:12.860 | null | null | 16,542,419 | [
"gcc",
"integer-overflow",
"exploit",
"gcc3",
"gcc11"
] |
75,618,711 | 2 | null | 276,030 | 0 | null | If setlocale is called before _configthreadlocale, then localconv will return the correct information for that setlocale call.
If setlocale is called after _configthreadlocale, then localconv will not return the correct information for that setlocale call.
Some output from a simple C test program compiled with VS Profe... | null | CC BY-SA 4.0 | null | 2023-03-02T17:10:15.077 | 2023-03-02T17:10:15.077 | null | null | 6,784,485 | null |
75,618,713 | 2 | null | 75,618,670 | 1 | null | Use the `+` operator to add a list to another list:
```
>>> [i for i in range(10)] + [0]
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0]
```
| null | CC BY-SA 4.0 | null | 2023-03-02T17:10:17.043 | 2023-03-02T17:10:17.043 | null | null | 3,799,759 | null |
75,618,701 | 2 | null | 75,618,374 | 0 | null | Based on what you shared, you'd like to do that on startup. At least on the code shared, at least until now, you are not trying to modify an already running `Q2` instance, but, launch a new one with the properties changed.
If that's the case, the best chances would be to make use of the jPOS environment feature, for th... | null | CC BY-SA 4.0 | null | 2023-03-02T17:09:44.063 | 2023-03-02T17:19:52.747 | 2023-03-02T17:19:52.747 | 3,444,205 | 3,444,205 | null |
75,618,714 | 2 | null | 12,078,147 | 0 | null | You could probably do something like that by implementing the [WebUSB API](https://developer.mozilla.org/en-US/docs/Web/API/WebUSB_API). It's used to understand usb devices without the required driver. Fully implementable in [Chrome](https://developer.chrome.com/articles/usb/)
| null | CC BY-SA 4.0 | null | 2023-03-02T17:10:29.623 | 2023-03-02T17:10:29.623 | null | null | 21,320,838 | null |
75,618,700 | 1 | null | null | 0 | 11 | I have a python script that sends data via mqtt protocol (Hivemq) and I want to send data via telegraph to influx db. I have json file of 7 (not null) variables, I want them all in one bucket, so that each one has its own graph, later I want to visualize them in grafana. The problem is that the script will run every ho... | Telegraf Error running agent: starting input inputs.mqtt_consumer: network Error: dial tcp 127.0.0.1:1883: connect: connection refused | CC BY-SA 4.0 | null | 2023-03-02T17:09:44.037 | 2023-03-02T17:13:05.993 | 2023-03-02T17:13:05.993 | 10,811,400 | 10,811,400 | [
"python",
"mqtt",
"iot",
"influxdb",
"telegraf"
] |
75,618,712 | 1 | 75,619,242 | null | 2 | 25 | I'm trying to add more detailed error logging to my application, that logs the current page url whenever a circuit crashes. One way of doing this is to override the `OnCircuitClosedAsync` method in a custom `CircuitHandler`, however I don't know how to correlate a circuit id string with an active user session.
I know I... | How can I get the current circuit id in a Blazor Server component? | CC BY-SA 4.0 | null | 2023-03-02T17:10:16.633 | 2023-03-02T18:01:30.227 | null | null | 3,314,466 | [
"c#",
"blazor",
"blazor-server-side"
] |
75,618,717 | 2 | null | 51,328,951 | 0 | null | As an amateur. I could not get a better answer on this same question.
And after doing some research , [Here](https://github.com/ThabsheerAbdulla/WPF_Nested_ScrollViewer) is my way of doing it.
It simply uses a Bubbled Routing Event: TouchMove.
Both the scrollviewer will scroll as given by panningmode.
But as user scrol... | null | CC BY-SA 4.0 | null | 2023-03-02T17:10:36.300 | 2023-03-02T17:10:36.300 | null | null | 21,320,720 | null |
75,618,710 | 1 | 75,618,798 | null | 0 | 18 | I have a dataset in long-format called df containing four key variables: respondent_id, time (the time period), change (a variable indicating the last period a change of income) and lost_income, a variable indicating when a person lost their income.
The lost_income column is currently empty, only in rows that follow a... | Filling in Missing Values in R Based on Previous Rows within Group | CC BY-SA 4.0 | null | 2023-03-02T17:10:12.987 | 2023-03-02T17:21:45.030 | null | null | 21,320,717 | [
"r",
"dplyr"
] |
75,618,697 | 2 | null | 75,388,765 | 0 | null | [Got help](https://github.com/ansible/ansible/issues/79967) from Ansible devs at GitHub. The reason for this behavior is how command module and redis-cli utility work with arguments.
`argv` adds delimiters when passing the command to the command line. So this:
```
- name: Create Redis cluster
ansible.builtin.comm... | null | CC BY-SA 4.0 | null | 2023-03-02T17:09:30.550 | 2023-03-03T07:25:25.620 | 2023-03-03T07:25:25.620 | 10,842,470 | 10,842,470 | null |
75,618,716 | 1 | null | null | 0 | 9 | I am following this guide [https://docs.smooch.io/guide/native-ios-sdk/#installation](https://docs.smooch.io/guide/native-ios-sdk/#installation) to install Zendesk's Sunshine (Smooch) on my iOS app.
I created an integration from the "Conversations integrations" section of Zendesk Admin center. From the integration cre... | Integration between Smooch (Sunshine conversations) iOS SDK and Zendesk | CC BY-SA 4.0 | null | 2023-03-02T17:10:33.673 | 2023-03-02T17:10:33.673 | null | null | 2,224,126 | [
"ios",
"zendesk",
"smooch"
] |
75,618,719 | 2 | null | 75,025,966 | 0 | null | I had the same issue. I resolved it by using the following code:
```
<img src="https://www.google-analytics.com/collect?v=2&tid=G-xxxxxxxxxx&cid=555&t=event&en=eventName">
```
Note it is v=2 and not v=1 or v=4.
| null | CC BY-SA 4.0 | null | 2023-03-02T17:10:46.573 | 2023-03-02T17:10:46.573 | null | null | 10,283,300 | null |
75,618,718 | 1 | null | null | 0 | 20 | I'm looking to have my two macros run a background query refresh. I have a "main macro" that calls and executes them both, but I'd like it to be automated after the refresh. As of now, I've only been able to do this manually. Any thoughts?
My Macros:
```
Sub RefreshPivot()
Worksheets("MadeUpWorksheet").PivotTables("M... | Execute Macro after background refresh | CC BY-SA 4.0 | null | 2023-03-02T17:10:41.130 | 2023-03-02T17:10:41.130 | null | null | 15,109,775 | [
"excel",
"vba"
] |
75,618,722 | 1 | null | null | 0 | 14 | I have a Jenkins pipeline that runs inside a docker. One of the steps in the pipeline is writing to a file. I want to run this pipeline multiple times and every time it runs, it creates container on the host. The problem is, that Jenkins automatically creates volume to the docker container which makes the pipeline fail... | Disabling volume in docker pipeline | CC BY-SA 4.0 | null | 2023-03-02T17:11:21.360 | 2023-03-02T17:11:21.360 | null | null | 13,866,311 | [
"docker",
"jenkins"
] |
75,618,721 | 1 | null | null | 0 | 7 | I'm trying to debug react app created by "create-react-app" command. Error occurred in library, which used by react. In debugger I see only my sources, but not the library sources. How to find an error in this case? I tried pressing a button "Find local file" and got an error(please see screenshot) Also, it's weird tha... | Create-react-app source maps for libraries | CC BY-SA 4.0 | null | 2023-03-02T17:11:19.927 | 2023-03-02T17:11:19.927 | null | null | 6,860,091 | [
"reactjs",
"debugging",
"create-react-app",
"source-maps"
] |
75,618,720 | 1 | null | null | 3 | 27 | I'd like to be able to solve the following problem in Python:
Given observed data x(1)....x(n) and a known fixed target 'B' and tolerance 'E', solve for parameters a0, a1, & a2, which minimise:
sum(w(i)^2)
where w(i)=exp[a0+a1x(i)^2]
with the following two restrictions:
1. sum(w(i)) = n , i.e. the mean of the w(i) equ... | Python: Nonlinear optimisation with restrictions (Gekko?) | CC BY-SA 4.0 | null | 2023-03-02T17:10:52.117 | 2023-03-03T13:45:39.470 | null | null | 14,967,032 | [
"python",
"optimization",
"gekko",
"restriction",
"nonlinear-functions"
] |
75,618,724 | 1 | null | null | 0 | 3 | I have recently installed SonarLint plugin in Eclipse IDE on one of my workstation.
However, while initialising the plugin, I am getting an error:
"Cannot find registrations for mime type "text/x-java". Consider usage for @MultiViewElementRegistration!"
When i want to open my code, this message appears.
WHY??? HELP PLE... | SonarLint Plugin Initialisation Error in Netbeans IDE | CC BY-SA 4.0 | null | 2023-03-02T17:11:23.103 | 2023-03-02T17:11:23.103 | null | null | 21,320,780 | [
"plugins"
] |
75,618,715 | 1 | 75,618,776 | null | 0 | 30 | I have setup multiple database connections
```
"wc" => [
"driver" => "mysql",
"url" => env("DATABASE_URL"),
"host" => env("DB_HOST", "127.0.0.1"),
"port" => env("DB_PORT", "3306"),
"database" => env("DB_DATABASE", "forge"),
"username" => env("DB_US... | Using multiple database connections inside controllers | CC BY-SA 4.0 | null | 2023-03-02T17:10:29.900 | 2023-03-02T17:21:18.027 | 2023-03-02T17:14:15.903 | 492,293 | 492,293 | [
"php",
"laravel"
] |
75,618,729 | 1 | null | null | 0 | 11 | How do I embed the LinkedIn share button on my website? I already found a javascript code on Linkedin's developer site, but it doesn't work.
I want to embed linkedin share button on my website
| Linkedin share button embed | CC BY-SA 4.0 | null | 2023-03-02T17:11:59.617 | 2023-03-02T17:11:59.617 | null | null | 19,554,493 | [
"plugins",
"linkedin",
"share-button"
] |
75,618,723 | 1 | null | null | 0 | 12 | I developed an adaptive cards app for Ms Teams using the .Net Bot framework. My users install it into a Team via clicking "Upload a customised app" (it's not in the Teams app store, and doesn't need to be). After they install it they, and their team members, receive a welcome card sent to their Chat which lets them beg... | Ms Teams app/bot set to Teams scope only, but users being prompted by Ms Teams to "add it for your -personal- use" | CC BY-SA 4.0 | null | 2023-03-02T17:11:23.130 | 2023-03-02T17:11:23.130 | null | null | 17,497,819 | [
"botframework",
"microsoft-teams"
] |
75,618,707 | 2 | null | 75,582,062 | 1 | null | OK, it's not as efficient as it might be and definitely could use some cleanup, but it works. I might come back and post a second solution using set based logic instead of a cursor, but the cursor based solution works and is (relative to a set based solution) easy to understand.
The basic principle is to find a set of ... | null | CC BY-SA 4.0 | null | 2023-03-02T17:10:07.960 | 2023-03-02T17:10:07.960 | null | null | 3,776,014 | null |
75,618,725 | 1 | null | null | 1 | 33 | ```
sentence = "The quick brown fox jumps over the lazy dog."
for word in sentence:
if word.startswith("f" or "F"):
uppercase_text = sentence.replace(word, str(word.upper()))
print(uppercase_text)
if word.endswith("e" or "E"):
e_text = sentence.replace(word, str("my"))
print(e_... | How can I replace text that starts or ends with a certain letter in Python? | CC BY-SA 4.0 | null | 2023-03-02T17:11:27.647 | 2023-03-02T17:46:43.390 | null | null | 21,320,523 | [
"python",
"string",
"replace",
"startswith",
"ends-with"
] |
75,618,730 | 2 | null | 75,618,462 | 0 | null | When you write this:
```
class O
{
std::fstream f;
};
```
You get 6 special member functions "for free", sometimes talked about as the "Rule of Zero".
This includes the copy constructor. However, you can't copy an `fstream`. How would a copy of a stream work? The `fstream` therefore deletes its own copy constructo... | null | CC BY-SA 4.0 | null | 2023-03-02T17:12:06.907 | 2023-03-02T17:26:49.663 | 2023-03-02T17:26:49.663 | 65,863 | 1,055,118 | null |
75,618,731 | 2 | null | 75,608,779 | 0 | null | I could understand that you have 2 components (1 is your application pod and 2nd is your postgres DB running in your openshift custer) & you are trying to connect to postgres db from your application.
Here secret & Configmap looks fine
By default, When you create your Postgres DB in cluster (deployment config) ... Serv... | null | CC BY-SA 4.0 | null | 2023-03-02T17:12:07.240 | 2023-03-02T17:12:07.240 | null | null | 6,661,742 | null |
75,618,733 | 2 | null | 75,618,670 | 1 | null | itertools.cycle will repeat an iterable indefinitely. itertools.islice will yield the requested number of elements from an iterable.
Putting them together:
```
from itertools import cycle, islice
s = list(islice(cycle(range(10)), 11))
```
| null | CC BY-SA 4.0 | null | 2023-03-02T17:12:17.947 | 2023-03-02T18:45:04.647 | 2023-03-02T18:45:04.647 | 18,648,900 | 18,648,900 | null |
75,618,727 | 1 | null | null | 1 | 28 | ```
func Red() {
keyname := "t"
var client = rt.NewClient("127.0.0.1:6379", "nohelp", nil)
client.CreateKeyWithOptions(keyname, rt.DefaultCreateOptions)
client.CreateKeyWithOptions("td", rt.DefaultCreateOptions)
client.CreateRule(keyname, rt.MaxAggregation, 5000, "td")
for i := 0; i < 10; i++ {
... | Redis timeseries golang sampling | CC BY-SA 4.0 | null | 2023-03-02T17:11:46.430 | 2023-03-03T06:52:57.170 | 2023-03-02T17:20:55.467 | 17,656,542 | 17,656,542 | [
"database",
"go",
"redis",
"time-series",
"stock"
] |
75,618,726 | 1 | null | null | 0 | 21 | I do the following:
```
db.users.deleteMany({});
db.users.insert({"name":"paul","gender":"m", "age": 20});
db.users.insert({"name":"jack","gender":"m", "age": 20});
db.users.insert({"name":"mark","gender":"m", "age": 20});
db.users.insert({"name":"will","gender":"m, "age": 20"});
db.users.insert({"name":"peter","gende... | Mongo random sort and match | CC BY-SA 4.0 | null | 2023-03-02T17:11:43.813 | 2023-03-03T03:54:11.303 | null | null | 5,668,102 | [
"mongodb"
] |
75,618,735 | 1 | null | null | 0 | 14 | `"/**/{[path:[^\\.]*}" public String redirect() { return "forward:/"; }`
Springboot version is 2.7.4 java - 1.8
is the path value changed for the upgraded version?`Invalid mapping`
| Error creating bean 'requestMappingHandlerMapping' defined class path resource method failed; nested exception is java.lang.IllegalStateException | CC BY-SA 4.0 | null | 2023-03-02T17:12:24.413 | 2023-03-02T17:12:49.953 | 2023-03-02T17:12:49.953 | 21,320,747 | 21,320,747 | [
"java",
"angular",
"spring",
"spring-boot",
"maven-plugin"
] |
75,618,728 | 2 | null | 75,614,253 | 0 | null | In Maven remote repositories can be defined in your `settings.xml` file, but also can be defined in project `pom.xml`.
So in your case additional repositories probably are defined in some of transitive dependencies.
Each remote repository has `id` and `url`.
There is not way to block remote repository by `url`, but you... | null | CC BY-SA 4.0 | null | 2023-03-02T17:11:54.370 | 2023-03-02T17:11:54.370 | null | null | 3,149,528 | null |
75,618,737 | 1 | null | null | 0 | 8 | In my side-project, I found a way to hash the password using 'bcrypt' package with syntax like:
`const salt = await bcrypt.genSalt(10); const hashedPassword = await bcrypt.hash(password,salt);`
And for comparison, the syntax is like:
`const isMatch = await bcrypt.compare(password,hashedpassword);`
And this seems to com... | bcrypt.compare function providing correct results for different genSalt values while hashing | CC BY-SA 4.0 | null | 2023-03-02T17:12:34.643 | 2023-03-02T17:12:34.643 | null | null | 20,497,431 | [
"hash",
"compare",
"bcrypt"
] |
75,618,734 | 1 | null | null | 0 | 13 | I'm making a small functionality of a demo test. Initially, all radio inputs are to be unchecked. When I click one of the radio inputs, a certain save button is supposed to be 'enabled' via a state 'saveEnabled' as shown in the code below. The problem is that when I click the radio input(for first time), the save butto... | Radio Button not being checked for first click | CC BY-SA 4.0 | null | 2023-03-02T17:12:21.793 | 2023-03-02T17:24:01.533 | null | null | 14,294,826 | [
"reactjs",
"radio-button",
"onchange"
] |
75,618,739 | 2 | null | 66,006,552 | 0 | null | The question is similar to [How to add headers to aws-cli lambda invoke command?](https://stackoverflow.com/q/69762968/6344916). There the call is via CLI (AWS SDK inside). Here - via code that uses AWS SDK.
Please, check [this answer](https://stackoverflow.com/a/75618682/6344916).
Hope, it will help.
| null | CC BY-SA 4.0 | null | 2023-03-02T17:12:51.627 | 2023-03-02T17:12:51.627 | null | null | 6,344,916 | null |
75,618,740 | 1 | null | null | 0 | 28 | I am writing a list the trying to append it but it keeps returning the None value and not changing the list
My code is:
```
basket = ['Apples', 'oranges', 'bananas']
print(basket.append('Hello'))
```
and it keeps returning None
| I am trying to append a list but it keeps giving me the None value | CC BY-SA 4.0 | null | 2023-03-02T17:12:52.023 | 2023-03-02T17:13:51.323 | 2023-03-02T17:13:51.323 | 5,625,547 | 20,912,632 | [
"python"
] |
75,618,736 | 1 | null | null | 1 | 15 | I have a pandas dataframe that consists of multiple columns. For this question we only need to focus on the "Cholesterol" and "Age" column.
In this dataframe each row represents a person and they all have an age. The Cholesterol column has a lot of NaN values and I'm trying to fill them in by taking the mean Cholestero... | Replace NaN values in a Dataframe with average of same column with the same value from another column | CC BY-SA 4.0 | null | 2023-03-02T17:12:34.007 | 2023-03-02T17:36:19.890 | null | null | 16,442,812 | [
"python",
"pandas",
"dataframe",
"fillna"
] |
75,618,738 | 1 | null | null | 0 | 11 | I have a marketo form which looks something like this :
[](https://i.stack.imgur.com/4fyRM.png)
I need to convert this form to a survey form(inlcuding steps) which will look like this:
[](https://i.stack.imgur.com/sip0w.png)
Since, I am new to JS and CSS. Request you all to please help me with this.
| Customize Marketo form using Javascript and CSS | CC BY-SA 4.0 | null | 2023-03-02T17:12:45.737 | 2023-03-02T17:12:45.737 | null | null | 11,240,931 | [
"javascript",
"html",
"css",
"marketo"
] |
75,618,743 | 1 | null | null | 0 | 26 | This code generates a plot but the title and the x label do not appear.
```
normalDistribution = np.random.normal(loc = 0.0, scale = 1.0, size = totalPoints)
rows = 4
columns = 5
fig = plt.figure(figsize =(24, 24))
plt.subplots_adjust(wspace=0.3, hspace=0.4) # to adjust the spacing between subplots
plt.subplot(rows, co... | Why do the title and x label not print in the graph? | CC BY-SA 4.0 | null | 2023-03-02T17:13:11.033 | 2023-03-02T17:34:14.293 | null | null | 1,169,091 | [
"python",
"matplotlib"
] |
75,618,747 | 2 | null | 75,618,486 | 1 | null | The `Surv` object does not look right.
Try explicitly naming the `time` dimension and re-running the regression:
```
attr(Y,'dimnames')[[2]][[1]] <- 'time'
```
| null | CC BY-SA 4.0 | null | 2023-03-02T17:13:45.213 | 2023-03-02T17:13:45.213 | null | null | 9,216,512 | null |
75,618,744 | 2 | null | 75,615,989 | 0 | null | [enter image description here](https://i.stack.imgur.com/VFblE.png)
hi thank you! I have tried that
```
async Test() {
let num1 = await this.iGetAtrribute(MyproSelectors.GrossExposure, 'value');
console.log("gross exposure value is " + num1);
const num2 = Number(num1);
const roundoff = parseFloat(num1);... | null | CC BY-SA 4.0 | null | 2023-03-02T17:13:17.877 | 2023-03-02T17:13:17.877 | null | null | 21,305,095 | null |
75,618,749 | 1 | null | null | -1 | 17 | I created a repository some time ago that contained photo files. In a recent commit, I removed them and left just a text file as they were taking up so much space in my Gitlab.
But after doing the commit removing the file with photos, in my gitlab the repository is still big, about 12mb. Because I left only a text file... | How to remove a file in git commit history? | CC BY-SA 4.0 | null | 2023-03-02T17:14:01.673 | 2023-03-02T17:14:01.673 | null | null | 18,311,969 | [
"linux",
"git",
"github",
"gitlab"
] |
75,618,742 | 1 | null | null | 0 | 15 | I have a bash script to do AI video upscaling but I am having problems getting the framerate in the source file and then using it in the ffmpeg command for the encode of the upscaled frames. I'm a bash newb so not sure what syntax i'm using is wrong.
```
#!/bin/sh
PS4='$LINENO: '
set -x
for arg
do
mkdir "${arg%.*}"... | bash: correct syntax to get framerate and add to ffmpeg command | CC BY-SA 4.0 | null | 2023-03-02T17:13:09.320 | 2023-03-02T17:13:09.320 | null | null | 2,628,051 | [
"bash",
"ffmpeg"
] |
75,618,704 | 1 | null | null | 0 | 3 | I want to estimate a Tobit model with random effects and afterwards use the model for prediction.
Estimation is possible with the censReg package, however it does not provide a predict function.
I have found a user-written code for cross-sectional data [here](https://r-forge.r-project.org/tracker/?func=detail&aid=2126&... | Predict function for Tobit model using censReg in R | CC BY-SA 4.0 | null | 2023-03-02T17:09:57.837 | 2023-03-02T17:09:57.837 | null | null | 15,651,030 | [
"r",
"regression",
"panel-data",
"truncation",
"random-effects"
] |
75,618,741 | 1 | 75,618,853 | null | 0 | 17 | I have the following code within my Blazor Server Project:
```
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Mvc;
using RouteAttribute = Microsoft.AspNetCore.Mvc.RouteAttribute;
namespace ProjectName.Controllers
{
[Route("/getfile")]
[ApiController]... | How to use querystring within Blazor controller | CC BY-SA 4.0 | null | 2023-03-02T17:13:07.717 | 2023-03-02T17:23:53.513 | null | null | 15,794,488 | [
"c#",
"blazor",
"query-string",
"blazor-server-side"
] |
75,618,748 | 2 | null | 75,613,386 | 0 | null | Looks like there isn't a direct QLDB integration in their catalog.
But you should be able to setup custom CloudWatch metrics in Datadog, specific to QLDB. Cross reference the QLDB monitoring guide with Datadog's custom monitoring and alerting for cloudwatch, and you should be able to pull together some QLDB monitoring ... | null | CC BY-SA 4.0 | null | 2023-03-02T17:13:46.347 | 2023-03-02T17:13:46.347 | null | null | 2,095,698 | null |
75,618,745 | 2 | null | 75,618,686 | 4 | null | `p1` and `p2` are different pointers, so it is natural that `p1` isn't found when searching for `p2`.
Different values can have same hash, so equality of hash doesn't mean equality of values.
If you want to override how to check if keys are equal, you should specify the `equal` argument in the [constructor of std::unor... | null | CC BY-SA 4.0 | null | 2023-03-02T17:13:27.620 | 2023-03-02T17:13:27.620 | null | null | 4,062,354 | null |
75,618,755 | 2 | null | 75,618,665 | 1 | null | The error message clearly indicated the . So you could fix it and make it working like this:
```
def count_divisible(L, n):
count = 0
for x in L:
if x % n == 0:
count += 1
return count # just return the counts
# version 2 - Generator Expression
def count_divisible2(L, ... | null | CC BY-SA 4.0 | null | 2023-03-02T17:14:32.703 | 2023-03-02T17:20:02.990 | 2023-03-02T17:20:02.990 | 10,760,768 | 10,760,768 | null |
75,618,753 | 2 | null | 75,618,665 | 1 | null | You're returning the length of an integer, count, when you probably want to return the count itself:
```
def count_divisible(lst, n):
count = 0
for i in lst:
if i % n == 0:
count += 1
return count
```
You can shorten your function and make it safer by checking each item is actually an i... | null | CC BY-SA 4.0 | null | 2023-03-02T17:14:30.033 | 2023-03-02T17:20:21.317 | 2023-03-02T17:20:21.317 | 3,434,388 | 3,434,388 | null |
75,618,752 | 2 | null | 75,618,636 | 1 | null | You have to use a list inside `apply` to transform each character of the string:
```
ft_x['ord'] = (ft_x['keyCode'].str.encode('utf-8')
.str.decode('unicode-escape')
.map(ord))
# Output
keyCode ord
0 a 97
1 \b 8
2 \u0030 48
```
| null | CC BY-SA 4.0 | null | 2023-03-02T17:14:27.367 | 2023-03-02T17:50:31.297 | 2023-03-02T17:50:31.297 | 15,239,951 | 15,239,951 | null |
75,618,750 | 2 | null | 75,605,355 | 0 | null | Your code is iterating over the AutoCAD Blocks Collection, which contains containers such as Layouts and Block .
Instead, you will need to iterate over the content of the Layout container (and Block Definition container if you're interested in nested attributed blocks) until you encounter attributed block against whic... | null | CC BY-SA 4.0 | null | 2023-03-02T17:14:04.623 | 2023-03-02T17:14:04.623 | null | null | 7,531,598 | null |
75,618,763 | 2 | null | 75,618,483 | 0 | null | See @Daweo's answer for the clean way to do this.
If you actually want to 'slice' an integer (not recommended with dates), you can use a floor division (`//`) in combination with the modulus (`%`).
```
df = df[(df['Date'] // 100) % 100 == 12]
```
Explanation:
`// 100` 'removes' the last two digits while `% 100` only k... | null | CC BY-SA 4.0 | null | 2023-03-02T17:15:26.567 | 2023-03-02T17:15:26.567 | null | null | 19,542,956 | null |
75,618,760 | 2 | null | 75,618,725 | 1 | null | If you want to do something that's based on individual words, you probably want to start by `split`ting the sentence:
```
>>> sentence = "The quick brown fox jumps over the lazy dog."
>>> sentence.split()
['The', 'quick', 'brown', 'fox', 'jumps', 'over', 'the', 'lazy', 'dog.']
```
Now that you have a list of individua... | null | CC BY-SA 4.0 | null | 2023-03-02T17:15:21.607 | 2023-03-02T17:15:21.607 | null | null | 3,799,759 | null |
75,618,756 | 1 | null | null | 0 | 45 | (This article was written with Google Translate.)
```
import {useState} from 'react'
function App() {
const [text,setText] = useState('Hi ')
const updateText=()=>{
setText('Hello ')
console.log(text+"22222")
}
console.log(text+"11111")
return (
<div className="App">
<span id="text">{text}<... | I don't know why "console.log(text+"11111")" is output only three times | CC BY-SA 4.0 | null | 2023-03-02T17:14:43.510 | 2023-03-02T17:27:06.877 | null | null | 19,121,859 | [
"javascript",
"reactjs"
] |
75,618,759 | 1 | null | null | 0 | 11 | I've added the publicPath to the output as mentioned in the docs, but when I make changes to the ts code while I am running webpack dev server (using the command `yarn webpack-dev-server`), I can see it recompile and the logs update in the terminal, but no new changes are saved to my bundle.js file.
If I run `yarn webp... | Why is webpack not updating bundle file with dev server? | CC BY-SA 4.0 | null | 2023-03-02T17:15:17.173 | 2023-03-02T18:05:36.337 | null | null | 4,059,072 | [
"typescript",
"webpack"
] |
75,618,767 | 2 | null | 75,563,907 | 0 | null | To answer your 2 questions.
1. Yes, open source Redis does provide cluster capability
2. In your cluster create command, you have to connect to one of the node and then pass the --cluter create argument like:
> redis-cli -h 127.0.0.1 -p 7000 --cluster create 127.0.0.1:7000
127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:700... | null | CC BY-SA 4.0 | null | 2023-03-02T17:15:42.303 | 2023-03-02T17:15:42.303 | null | null | 8,055,025 | null |
75,618,766 | 2 | null | 75,618,181 | 0 | null | In the Python code base, if you are able to execute the code you could create a [decorator](https://realpython.com/primer-on-python-decorators/) for such a function and use the module [tracebak](https://docs.python.org/3/library/traceback.html) to get the exact places the function is being called.
```
import traceback
... | null | CC BY-SA 4.0 | null | 2023-03-02T17:15:41.307 | 2023-03-02T17:15:41.307 | null | null | 2,890,724 | null |
75,618,764 | 1 | null | null | 0 | 18 | We are handling CodePipeline notifications and monitoring the progress of pipelines, recording them in DynamoDb. The normal pipeline flow works great, BUT, we have a scenario where if the pipeline is manually stopped, or stopped/abandoned, there is NO notification sent out. Therefore, the pipeline get stuck in IN_PRO... | CodePipeline does not have a notification for pipeline stopped? | CC BY-SA 4.0 | null | 2023-03-02T17:15:30.347 | 2023-03-03T09:50:53.473 | null | null | 1,212,568 | [
"aws-cdk",
"aws-codepipeline"
] |
75,618,769 | 1 | null | null | 0 | 13 | Can I add a LinkedIn profile to my website that will show my recent posts? A bit like Facebook or Twitter?
Linkedin profile embed with recent post
| Linkedin Profile embed with recent posts | CC BY-SA 4.0 | null | 2023-03-02T17:15:57.523 | 2023-03-02T17:23:02.923 | null | null | 19,554,493 | [
"plugins",
"embed",
"linkedin"
] |
75,618,768 | 2 | null | 75,618,698 | 2 | null | It is controlled by domainWidth. e.g.
```
import altair as alt
from vega_datasets import data
source = data.movies.url
alt.Chart(source).mark_bar().encode(
alt.X("IMDB_Rating:Q", bin=True, axis=alt.Axis(domainWidth=10)),
y='count()',
)
```
| null | CC BY-SA 4.0 | null | 2023-03-02T17:15:50.863 | 2023-03-02T17:15:50.863 | null | null | 18,345,037 | null |
75,618,762 | 1 | null | null | 0 | 31 | I have this chunk of code that I want to build into a function where I pass the data frame name, ResponseId variable name, and a range of variables to. It is choking on the ResponseId variable name and the range of variables. I assume it is because I am passing them into the function incorrectly.
```
set.seed(1024)
p... | Issues passing arguments to R function | CC BY-SA 4.0 | null | 2023-03-02T17:15:25.087 | 2023-03-02T17:15:25.087 | null | null | 19,972,940 | [
"r",
"dataframe",
"function",
"tidyverse",
"series"
] |
75,618,758 | 2 | null | 44,349,196 | 0 | null | Small addition, the Microsoft docs has a page dedicated to visualization tools:
[https://learn.microsoft.com/en-gb/azure/cosmos-db/gremlin/visualization-partners](https://learn.microsoft.com/en-gb/azure/cosmos-db/gremlin/visualization-partners)
It currently lists:
- [Linkurious Enterprise](https://linkurio.us/product/)... | null | CC BY-SA 4.0 | null | 2023-03-02T17:15:05.917 | 2023-03-03T14:53:07.580 | 2023-03-03T14:53:07.580 | 2,149,093 | 2,149,093 | null |
75,618,765 | 1 | null | null | -2 | 27 |
1. When is it necessary to write a new block of code in a procedure? begin
begin -- two block
XXXXX
end;
end;
I think it is possible to write all code in a block, When is a new block required?
2. How do I find the exact SQL when I'm optimizing a procedure?i only know use F5 to see Implementation plan,I wa... | I have a few questions about Oracle PLSQL,I would appreciate it if you could help me out | CC BY-SA 4.0 | null | 2023-03-02T17:15:32.890 | 2023-03-02T17:15:32.890 | null | null | 21,204,065 | [
"oracle",
"plsql",
"plsqldeveloper"
] |
75,618,770 | 2 | null | 67,918,503 | 0 | null | The answer marked as correct put me in the right direction to make it a little bit more production oriented. Also, I need this for Kotlin, so considering it is retro-compatible, here it goes.
For me, what worked was using `withOffsetSameInstant`. This method requires the offset, and I think the key is to obtain it from... | null | CC BY-SA 4.0 | null | 2023-03-02T17:16:19.597 | 2023-03-02T17:16:19.597 | null | null | 4,017,501 | null |
75,618,771 | 1 | null | null | 0 | 17 | At the moment I see a lot of `NullpointerExceptions` in FirebaseCrashlytics. The NPE occurs in this line of [AndroidComposeView.kt](https://github.com/androidx/androidx/blob/280fb06846f3fabaa95d1a77d921362c2c15468f/compose/ui/ui/src/androidMain/kotlin/androidx/compose/ui/platform/AndroidComposeView.android.kt#L701). Th... | Enabled accessibility in combination with Jetpack Compose and AndroidView leads to an NullPointerException in onInitializeAccessibilityNodeInfo | CC BY-SA 4.0 | null | 2023-03-02T17:16:30.360 | 2023-03-02T17:16:30.360 | null | null | 1,185,087 | [
"android",
"nullpointerexception",
"android-jetpack-compose"
] |
75,618,778 | 2 | null | 75,614,314 | 1 | null | True CSV (vs. just having commas in a text file) has a specification. See: [https://www.rfc-editor.org/rfc/rfc4180](https://www.rfc-editor.org/rfc/rfc4180)
Redshift follows this specification when the CSV option is added to the COPY command. Rule 7 covers this case:
> If double-quotes are used to enclose fields, then... | null | CC BY-SA 4.0 | null | 2023-03-02T17:16:50.287 | 2023-03-02T17:16:50.287 | null | null | 13,350,652 | null |
75,618,779 | 2 | null | 71,068,365 | 0 | null | You have to import like `import { createI18n } from 'vue-i18n'`
Do not import as `import VueI18n from "vue-i18n";` Because, it has not export default.
| null | CC BY-SA 4.0 | null | 2023-03-02T17:16:56.337 | 2023-03-02T17:16:56.337 | null | null | 11,681,118 | null |
75,618,777 | 1 | null | null | 0 | 7 | I have a Spring application that uses Gradle and is implementing Mongo DB currently. I want to use Oracle 21c XE db instead.
I have installed 12c XE and am able to connect to he DB using SQL Plus but that's about it.
My questions:
- - -
| Using Oracle 21c XE with Spring boot project with Gradle | CC BY-SA 4.0 | null | 2023-03-02T17:16:48.683 | 2023-03-02T17:16:48.683 | null | null | 12,055,573 | [
"java",
"spring-boot",
"gradle",
"oracle21c"
] |
75,618,775 | 2 | null | 75,618,774 | 0 | null | Answer:
The generated material 3 does not bundle inside of the Theme of the app as far as I know but the good news is that you can generate it yourself from each of your colors.
Add the following package: [material_color_utilities](https://pub.dev/packages/material_color_utilities)
Insert your primary color in `_primar... | null | CC BY-SA 4.0 | null | 2023-03-02T17:16:37.937 | 2023-03-02T17:31:11.020 | 2023-03-02T17:31:11.020 | 10,242,854 | 10,242,854 | null |
75,618,781 | 2 | null | 75,609,679 | 1 | null | Don't use set. It's misleading, I know. Here, take a look at this question: [Google Analytics custom dimension not working](https://stackoverflow.com/questions/73870122/google-analytics-custom-dimension-not-working) I'll change its name to make it easier to find in search.
| null | CC BY-SA 4.0 | null | 2023-03-02T17:17:16.377 | 2023-03-02T17:17:16.377 | null | null | 3,700,993 | null |
75,618,774 | 1 | null | null | 0 | 21 | Using the [material 3 theme builder custom](https://m3.material.io/theme-builder#/custom) colors we have 4 colors that we need to choose from: Primary, Secondary, Tertiary, Neutral.
The site then generates a full both light and dark scheme that is based on the colors.
[](https://i.stack.imgur.com/e2BE8.png)
After addin... | Flutter how to get material 3 tonal palettes | CC BY-SA 4.0 | null | 2023-03-02T17:16:37.937 | 2023-03-02T17:31:11.020 | null | null | 10,242,854 | [
"flutter",
"material3"
] |
75,618,773 | 2 | null | 75,605,680 | 0 | null | Checkout the [matplotlib xticks doc](https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.xticks.html) and the [Axes.set_xticklabels doc](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.set_xticklabels.html)
- `xticks`
In your current figure, the `xticks` are automatically set to
```
[38000., 4000... | null | CC BY-SA 4.0 | null | 2023-03-02T17:16:32.870 | 2023-03-02T20:00:03.773 | 2023-03-02T20:00:03.773 | 11,080,037 | 11,080,037 | null |
75,618,783 | 1 | null | null | 0 | 9 | I have the issue of hackers trying to find files on the site. some recent examples are
looking for directories /new /old /wp /bc /backup /wordpress /public /_ignition
When they are looking for them my error handling routine sends me an email informing me of the error.
```
The controller for path '/bc' was not found ... | ASP.NET MVC route errors from invalid routes | CC BY-SA 4.0 | null | 2023-03-02T17:17:36.990 | 2023-03-02T17:17:36.990 | null | null | 2,836,070 | [
"asp.net-mvc"
] |
75,618,772 | 2 | null | 75,618,771 | 0 | null | Right now, we found a workaround. It wraps the existing `AccessibilityDelegate` in another one and surround the call of the inner `AccessibilityDelegate` with a try catch. We still track the exception with FirebaseCrashlytics as non-fatal exception and we see that it works. Here is the workaround `CrashFixedAndroidView... | null | CC BY-SA 4.0 | null | 2023-03-02T17:16:30.360 | 2023-03-02T17:16:30.360 | null | null | 1,185,087 | null |
75,618,782 | 2 | null | 75,618,679 | 2 | null | We could loop over the formulas, create the linear model, extract the info needed (`tidy`) and return a single data
```
library(dplyr)
library(purrr)
library(broom)
out <- lst(log(tpens) ~ sex, log(tpens) ~ sex + eta,
log(tpens) ~ sex + eta + ireg,
log(tpens) ~ sex + eta + ireg + studio) %>%
map(lm, data = final... | null | CC BY-SA 4.0 | null | 2023-03-02T17:17:33.257 | 2023-03-02T17:33:16.787 | 2023-03-02T17:33:16.787 | 3,732,271 | 3,732,271 | null |
75,618,786 | 1 | null | null | -1 | 6 | This error is coming since long time
.
ERROR: Permission to Hetashrik/SuperHeroes.git denied to chhavi1007.
fatal: Could not read from remote repository.
I have try to push code in SuperHeroes repo.
| Please make sure you have the correct access rights and the repository exists, due to I have uploaded one repo using other account | CC BY-SA 4.0 | null | 2023-03-02T17:17:49.037 | 2023-03-02T17:17:49.037 | null | null | 21,320,855 | [
"github-for-windows"
] |
75,618,784 | 2 | null | 25,360,179 | 0 | null | You can also change the icon in the 2 states (true and false)
```
<ToggleButton>
<ToggleButton.Content>
<iconPacks:BootstrapIcons Kind="Sun"/>
</ToggleButton.Content>
<md:ToggleButtonAssist.OnContent>
<iconPacks:BootstrapIcons Kind="Moon"/>
</md:ToggleButtonAssist.OnContent>
... | null | CC BY-SA 4.0 | null | 2023-03-02T17:17:44.570 | 2023-03-02T17:17:44.570 | null | null | 15,569,273 | null |
75,618,780 | 1 | null | null | -1 | 24 | I'm trying to create a simple multi timeframe and multi currency table, but I'm having some issues coding the logic and the structure both. Sorry, I'm completely new coding pine-script. I'd be really thankful if someone could help me here!
STRUCTURE
So I would like to create a table in which I'm showing 27 symbols (inc... | How do I create a multi currency and multi timeframe table? | CC BY-SA 4.0 | null | 2023-03-02T17:17:07.240 | 2023-03-02T17:17:07.240 | null | null | 6,496,562 | [
"pine-script",
"pine-script-v5",
"trading",
"pine-script-v4"
] |
75,618,787 | 2 | null | 31,149,182 | 0 | null | The following query will generate the SQL statements that you need to run (you'd copy-paste the result, double-check then run the statements):
```
select 'drop view "'||view_name||'";' as statements from user_views;
```
This is a modified version of the other answers based on select. The difference here are the double... | null | CC BY-SA 4.0 | null | 2023-03-02T17:17:50.943 | 2023-03-02T17:17:50.943 | null | null | 9,071,968 | null |
75,618,785 | 2 | null | 75,618,348 | 0 | null | ```
treatment<T>(input: T): T;
treatment<T>(input: T[]): T[];
public treatment(input: unknown): unknown {
if (input instanceof Array) {
return input.map(d => treatment(input));
}
return treatment;
}
```
This is the answer. I ended up overloading the function, so that TS can bind the input type wit... | null | CC BY-SA 4.0 | null | 2023-03-02T17:17:45.597 | 2023-03-02T17:17:45.597 | null | null | 15,313,684 | null |
75,618,793 | 1 | null | null | 0 | 19 | I published an app on play store. There is an option to login with google in this app. When I create a build in apk file with release signing key and install is in my real android device then I can logged in with google but when I publish same build with same SHA-1 certificate fingerprint on play store then it's not wo... | Unable to login with google after publish on Play store | CC BY-SA 4.0 | null | 2023-03-02T17:18:10.623 | 2023-03-02T17:18:10.623 | null | null | 21,320,767 | [
"react-native",
"google-play",
"google-signin",
"google-api-client"
] |
75,618,790 | 2 | null | 75,618,482 | 1 | null | You can do something like this with `ColorUtils.calculateLuminance(color) < 0.5`:
```
fun isDark(color: Int): Boolean {
return ColorUtils.calculateLuminance(color) < 0.5
}
fun getCardContentColor(accentColor: Int): Color {
val color =
if (isDark(accentColor)) {
Colo... | null | CC BY-SA 4.0 | null | 2023-03-02T17:18:00.960 | 2023-03-02T17:25:37.180 | 2023-03-02T17:25:37.180 | 5,513,788 | 5,513,788 | null |
75,618,776 | 2 | null | 75,618,715 | 2 | null | Your configuration is incorrect. You are using same env variables for both connections, which means that you're overwriting it in .env file. So you need unique keys in env files which are used in 2 connections.
Change to this your config and env:
```
"wc" => [
"driver" => "mysql",
"url" => env("DATABASE... | null | CC BY-SA 4.0 | null | 2023-03-02T17:16:46.027 | 2023-03-02T17:21:18.027 | 2023-03-02T17:21:18.027 | 10,484,888 | 10,484,888 | null |
75,618,795 | 1 | null | null | 0 | 28 | I am making application based on Windows Media Player in Visual Studio C#, I need media time in milliseconds, the media player I am trying to copy is:

But in Visual Studio C#, the default Media Player Version 1.0 is available, which has the old look, ... | Customize Windows Media Player in C# | CC BY-SA 4.0 | null | 2023-03-02T17:18:15.267 | 2023-03-03T10:11:41.797 | 2023-03-02T17:21:11.377 | 3,043 | 21,320,820 | [
"c#",
"visual-studio",
"windows-media-player"
] |
75,618,791 | 2 | null | 75,618,120 | 0 | null | To achieve what you want, you can pass the `uber` parameter in the request's `config` object and set it to `true` or `false` depending on whether you need to use the token or not.
Here's how you can update your `customAxios` instance to get the `uber`parameter from the request's `config` object:
```
const customAxios =... | null | CC BY-SA 4.0 | null | 2023-03-02T17:18:05.497 | 2023-03-02T17:18:05.497 | null | null | 10,798,274 | null |
75,618,792 | 1 | null | null | 0 | 26 | I started developing a small plugin for eclipse that should provide inline completions.
When I render a single-line completion, it looks good:
[](https://i.stack.imgur.com/MuRUX.png)
I struggle with some issues when I try to render a multiline completion since I want to draw the next lines and push the preceding text t... | Inline completion for SWT based application | CC BY-SA 4.0 | null | 2023-03-02T17:18:10.097 | 2023-03-02T18:16:01.947 | 2023-03-02T18:16:01.947 | 4,424,888 | 4,424,888 | [
"java",
"eclipse",
"eclipse-plugin",
"swt"
] |
75,618,799 | 2 | null | 75,618,743 | 0 | null | Add `plt.tight_layout()` at the end of your code
[http://omz-software.com/pythonista/matplotlib/users/tight_layout_guide.html](http://omz-software.com/pythonista/matplotlib/users/tight_layout_guide.html)
```
normalDistribution = np.random.normal(loc = 0.0, scale = 1.0, size = totalPoints)
rows = 4
columns = 5
fig = plt... | null | CC BY-SA 4.0 | null | 2023-03-02T17:18:27.553 | 2023-03-02T17:18:27.553 | null | null | 20,396,240 | null |
75,618,803 | 2 | null | 71,605,774 | 0 | null | We went through the same issue here: [Google Analytics custom dimension not working: gtag set() method issues](https://stackoverflow.com/questions/73870122/google-analytics-custom-dimension-not-working)
tl;dr: don't use set, it's for GTM. gtag documentation is misleading.
| null | CC BY-SA 4.0 | null | 2023-03-02T17:18:52.317 | 2023-03-02T17:18:52.317 | null | null | 3,700,993 | null |
75,618,794 | 1 | null | null | 0 | 21 | I need to create a system that has a profile, but in the profile photo I would like to give the user the possibility to choose whether he wants the photo framed within a heart, cloud, and star in flutter. It's possible?
```
import 'package:flutter/material.dart';
import 'dart:math' as math;
class StarImage extends Sta... | Profile photo in the shape of a star, heart and a cloud Flutter | CC BY-SA 4.0 | null | 2023-03-02T17:18:12.963 | 2023-03-02T17:24:51.693 | 2023-03-02T17:24:51.693 | 1,030,169 | 21,192,345 | [
"android",
"flutter",
"mobile"
] |
75,618,800 | 1 | null | null | 0 | 25 | my problem is in the implementation of "array type" like typescript.
according to my grammar. In "array type" you can use "[]" after any type (eg string or int or even array again like int[][]).
this is simplified version of my grammar:
```
start = type
type = array / bool / string / int
string = "string"
int = "int"... | How to implement "array type" grammar like typescript with pegjs? | CC BY-SA 4.0 | null | 2023-03-02T17:18:27.747 | 2023-03-03T16:02:36.497 | 2023-03-03T16:02:36.497 | 16,671,196 | 16,671,196 | [
"javascript",
"grammar",
"pegjs"
] |