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,631,260 | 2 | null | 28,147,460 | 0 | null | I just had this happen and it was a misleading error. I have this in my view:
```
@{
ViewBag.Title = "Generator Tests";
}
<h2>@ViewBag.Title</h2>
```
Then lower in the view I had put in a new `@ViewBag.EndDate` but I had not set it and had not checked it for null. The view threw the error on the `@ViewBag.Title... | null | CC BY-SA 4.0 | null | 2023-03-03T19:40:12.050 | 2023-03-03T19:42:10.777 | 2023-03-03T19:42:10.777 | 10,221 | 10,221 | null |
75,631,262 | 1 | null | null | 0 | 14 | I created Form using ant design components. I've added scrollToFirstError flag, so form is scrolled to the first failed validation. It works when first error is on the InputField, but not when it's on the Select field. It show's the error message and form does not get submitted, as it shouldn't, but the scroll isn't ha... | scrollToFirstError not working on Select field of the antd Form | CC BY-SA 4.0 | null | 2023-03-03T19:40:28.267 | 2023-03-03T19:48:20.400 | 2023-03-03T19:48:20.400 | 21,328,253 | 21,328,253 | [
"reactjs",
"forms",
"validation",
"scroll",
"antd"
] |
75,631,266 | 2 | null | 75,631,124 | -1 | null | You need to pass valid token id in order to connect to API.
| null | CC BY-SA 4.0 | null | 2023-03-03T19:40:57.983 | 2023-03-03T19:40:57.983 | null | null | 13,597,511 | null |
75,631,240 | 1 | null | null | 1 | 22 | i have in package `com.mycompany.myapp` this file `MyApplication.java` that has a start function like this
```
public void start() {
if(current != null){
current.show();
return;
}
new AjoutBlogForm(theme).show();
}
```
but the `theme` passed in parameter doesnt want ... | Codename one "theme" passed on parameter doesnt work | CC BY-SA 4.0 | null | 2023-03-03T19:38:20.880 | 2023-03-04T05:55:05.507 | null | null | 17,001,598 | [
"java",
"themes",
"codenameone",
"blogs",
"android-theme"
] |
75,631,263 | 2 | null | 72,822,246 | 0 | null | the Intersection Observer can only observe HTML elements that actually exist in the DOM. By looking at your code, the way you are using the querySelector is incorrect. If you are trying to select an HTML element by class using the querySelector, you should use the same syntax you would use in CSS. E.g.
HTML: `<header c... | null | CC BY-SA 4.0 | null | 2023-03-03T19:40:39.970 | 2023-03-03T19:41:22.740 | 2023-03-03T19:41:22.740 | 21,328,248 | 21,328,248 | null |
75,631,245 | 2 | null | 75,596,968 | 0 | null | Thanks @76484, Here Goes My final solution.
```
<select class="SearchPlaces place1" id="place1" name="place1"></select>
<select class="SearchPlaces place2" id="place2" name="place2"></select>
<button id="btnGetSelectedPlaces" type="button">Log current value</button>
function GetPlaces() {
//console.log(... | null | CC BY-SA 4.0 | null | 2023-03-03T19:38:33.363 | 2023-03-03T19:45:35.283 | 2023-03-03T19:45:35.283 | 18,293,347 | 18,293,347 | null |
75,631,265 | 2 | null | 75,629,552 | 0 | null | First you are confusing [price impact](https://tradingstrategy.ai/glossary/price-impact) with [slippage](https://tradingstrategy.ai/glossary/slippage).
- You can calculate price impact beforehand if you know the liquidity of the pool- You set a maximum slippage tolerance as a parameter for your swap
[You can find examp... | null | CC BY-SA 4.0 | null | 2023-03-03T19:40:56.020 | 2023-03-03T19:40:56.020 | null | null | 315,168 | null |
75,631,259 | 1 | null | null | 0 | 20 | I have several github action workflow I need to run, to manage them I want to use prefect cloud. Even tough I created a deployment and github block in Prefect I can't run my workflow as they stay in "late" state.
My repository structure:
```
my_git_repo
└─github/workflows
└─prefect_deployment.yml
└─flo... | Manage github Action Workflow with Prefect Cloud 2 | CC BY-SA 4.0 | null | 2023-03-03T19:40:01.273 | 2023-03-04T15:40:29.990 | 2023-03-03T20:22:19.140 | 15,915,737 | 15,915,737 | [
"python",
"deployment",
"github-actions",
"prefect"
] |
75,631,267 | 1 | null | null | 0 | 14 | There's a question [here](https://stackoverflow.com/q/65033430/595305) from 2020. I simply can't understand what those guys are talking about.
This is on a W10 box. ES (7.10.2) is currently running on localhost:9200. I need to upgrade. When I attempted to upgrade to 7.16.3 some time ago a regression occurred, reported ... | Install two versions of Elasticsearch on my machine | CC BY-SA 4.0 | null | 2023-03-03T19:41:29.187 | 2023-03-03T22:43:59.217 | null | null | 595,305 | [
"elasticsearch",
"service",
"windows-10",
"upgrade"
] |
75,631,269 | 2 | null | 75,631,177 | 0 | null | Assuming your `data` is as long as you want your `dataset` is, you can do something like this;
```
const ctx = document.getElementById('myChart');
const data = JSONinput;
const datasets = data.map(row => ({
label: row.Name,
data: row.DataPoints.map(k => k.Score)
}));
new Chart(
ctx,
{
type: '... | null | CC BY-SA 4.0 | null | 2023-03-03T19:41:33.560 | 2023-03-03T19:45:03.810 | 2023-03-03T19:45:03.810 | 4,088,472 | 4,088,472 | null |
75,631,273 | 2 | null | 75,621,629 | 0 | null | I can verify this bug on macOS Monterey 12.6.3, Chrome version 110.0.5481.177. It's also been reported to Chrome at [https://bugs.chromium.org/p/chromium/issues/detail?id=1419746](https://bugs.chromium.org/p/chromium/issues/detail?id=1419746).
If the braces stretch ok on macOS Ventura 13.?, or Chrome 109, that would be... | null | CC BY-SA 4.0 | null | 2023-03-03T19:42:01.130 | 2023-03-03T19:42:01.130 | null | null | 667,682 | null |
75,631,278 | 2 | null | 65,150,661 | 0 | null | I ran in the same question, and my solution was to use the "implicit" way in which the library allows to assign values:
```
json x;
x["whatever"] = 3;
```
This doesn't answer your question in principle, but can maybe solve the use case.
| null | CC BY-SA 4.0 | null | 2023-03-03T19:42:50.560 | 2023-03-03T19:42:50.560 | null | null | 5,599,687 | null |
75,631,270 | 2 | null | 72,908,982 | 0 | null | You can actually call a python script from composer's standard GCS bucket using the PythonOperator or any of its [variances](https://airflow.apache.org/docs/apache-airflow/stable/howto/operator/python.html), all you have to do is to create a structure in your GCS DAGs folder pertaining to your requirements and from the... | null | CC BY-SA 4.0 | null | 2023-03-03T19:41:42.077 | 2023-03-03T19:43:16.033 | 2023-03-03T19:43:16.033 | 1,993,087 | 1,993,087 | null |
75,631,276 | 1 | null | null | 0 | 20 | Having some trouble getting the index column to have a name after resampling:
The df looks like this before resampling
```
Timestamp Spd 98m N [m/s] ... Tmp 3m [°C] Pres 2m [hPa]
0 2021-12-02 00:00:00 11.372 ... 7.87 9999.0
1 2021-12-02 00:10:00 11.372 ... 7.87 ... | How can I rename the index column title in pandas after resampling? | CC BY-SA 4.0 | null | 2023-03-03T19:42:41.417 | 2023-03-03T20:24:09.910 | 2023-03-03T20:24:09.910 | 4,518,341 | 12,873,504 | [
"python",
"pandas"
] |
75,631,281 | 1 | null | null | 0 | 8 | Task: Migrate nexus repositories to a new server and version.
- -
rsync'd the data directory (sonatype-work) to new server and pointed to it in $NEXUS_HOME/conf/nexus.properties, setting nexus-work to the new data dir.
Server starts fine in console mode, can log in, see and browse all the repositories. However, . The ... | Nexus 2 artifacts not present after migration to new server and version | CC BY-SA 4.0 | null | 2023-03-03T19:43:27.023 | 2023-03-03T19:46:29.640 | 2023-03-03T19:46:29.640 | 5,824,838 | 5,824,838 | [
"nexus"
] |
75,631,283 | 2 | null | 75,606,682 | 0 | null | ```
vi.mock("vue-i18n", () => ({
useI18n: () => ({ t: (key: string) => key }),
}));
```
| null | CC BY-SA 4.0 | null | 2023-03-03T19:43:49.710 | 2023-03-03T19:43:49.710 | null | null | 16,348,994 | null |
75,631,274 | 1 | 75,631,365 | null | 1 | 24 | I was trying to create a regression plot that shows the regression line for two subgroups and also the entire dataframe.
While doing that i stumbled across the question if it was possible to add a group to the that doesn't exist in the dataframe to the legend (my variable only has two distinct groups, but I want to wri... | Add additional group in legend in ggplot2 | CC BY-SA 4.0 | null | 2023-03-03T19:42:31.780 | 2023-03-03T19:55:44.653 | null | null | 17,579,093 | [
"r",
"ggplot2",
"tidyverse"
] |
75,631,286 | 2 | null | 52,490,497 | 0 | null | Check again your api_url.
It should include 'http' or 'https'
| null | CC BY-SA 4.0 | null | 2023-03-03T19:44:10.783 | 2023-03-03T19:44:10.783 | null | null | 19,891,404 | null |
75,631,279 | 1 | null | null | 0 | 17 | psql command line:
```
postgres=# CREATE EXTENSION pg_tgrm;
ERROR: extension "pg_tgrm" is not available
DETAIL: Could not open extension control file "C:/Program Files/PostgreSQL/15/share/extension/pg_tgrm.control": No such file or directory.
HINT: The extension must first be installed on the system where PostgreSQL... | psql Cannot open extension control file, but the file exists | CC BY-SA 4.0 | null | 2023-03-03T19:43:15.670 | 2023-03-03T19:43:15.670 | null | null | 21,237,665 | [
"django",
"postgresql",
"windows",
"psql"
] |
75,631,277 | 2 | null | 75,620,526 | 0 | null | `TABLE_STORAGE` works on my Replication with my own sample datasets:
`SELECT * FROM myProject.`region-us`.INFORMATION_SCHEMA.TABLE_STORAGE;`
Output:
[](https://i.stack.imgur.com/mUFvs.png)
Here is my result for `VIEWS`
`SELECT * FROM myDataset.INFORMATION_SCHEMA.VIEWS;`
Output:
[](https://i.stack.imgur.com/AvXyV.png)
... | null | CC BY-SA 4.0 | null | 2023-03-03T19:42:50.437 | 2023-03-03T19:42:50.437 | null | null | 19,378,826 | null |
75,631,288 | 2 | null | 75,629,153 | 0 | null | Here's the answer. It's two lines of code. The ID is used and not the show attribute.
```
<.modal
id="user-modal"
>
</.modal>
<button phx-click={show_modal("user-modal")}> Click me </button>
```
| null | CC BY-SA 4.0 | null | 2023-03-03T19:44:15.850 | 2023-03-03T19:44:15.850 | null | null | 1,152,980 | null |
75,631,264 | 2 | null | 75,630,320 | 0 | null | Before accessing the code snippet there are a couple of things you need to pay attention to as it will make your code stop working. To begin with:
```
<div class="a">
<div class="b">
</div class="a">
</div class="a">
```
Don't do this! Classes are added on the opening part of the tag. Nothing goes into the closing par... | null | CC BY-SA 4.0 | null | 2023-03-03T19:40:52.330 | 2023-03-03T19:40:52.330 | null | null | 14,898,845 | null |
75,631,287 | 2 | null | 60,925,742 | 0 | null | The other answers are correct but fail to explain why it is happening. Kube uses tempfs/memory-based/which-is-resource.limits.memory-based mounts for /tmp and /run.
tmpfs are constrained by available memory resources
Leaving the suffix off the memory limit means you would be trying to start a pod with (number you thou... | null | CC BY-SA 4.0 | null | 2023-03-03T19:44:12.587 | 2023-03-04T06:58:52.253 | 2023-03-04T06:58:52.253 | 2,227,743 | 3,723,515 | null |
75,631,289 | 2 | null | 75,631,126 | 1 | null | `pandas.apply` should work fine
```
import pandas as pd
# assuming dlist is a list of strings
dlist = ["aa", "bb"]
df = pd.DataFrame(columns=["X","Y","Z"], data=[["a","c","b"],["c","bb","aa"]])
print(df)
X Y Z
0 a c b
1 c bb aa
df["key"] = ""
df["key"] = df.apply(lambda x: "Yes" if any([y in dlist... | null | CC BY-SA 4.0 | null | 2023-03-03T19:44:22.063 | 2023-03-03T19:44:22.063 | null | null | 2,600,357 | null |
75,631,271 | 1 | 75,631,537 | null | 0 | 21 | I have a text that is changing dynamically and needs to be updated in user interface, but it is not binding.
Here is the view model:
```
internal class PowerViewModel : INotifyPropertyChanged
{
public string Power { get; set; }
public PowerViewModel()
{
MessagingCenter.Instance.Subscribe<App,... | Value not binding in XAML Page in Xamarin.Forms | CC BY-SA 4.0 | null | 2023-03-03T19:41:44.243 | 2023-03-03T20:25:04.180 | 2023-03-03T20:25:04.180 | 4,308,455 | 16,164,459 | [
"c#",
"xaml",
"xamarin",
"xamarin.forms"
] |
75,631,285 | 1 | null | null | 0 | 33 | So I'm using docker to start vite dev server, I start server with `vite --host` and it works perfectly fine when I try to access it via `http://localhost:513`
[](https://i.stack.imgur.com/CACeV.png)
However, if I open my webapp, seems like vite is injecting wrong url and this error appears in my console:
```
[::]:5173/... | Vite using wrong host ip | CC BY-SA 4.0 | null | 2023-03-03T19:44:04.457 | 2023-03-03T21:12:31.710 | 2023-03-03T20:44:14.410 | 11,413,191 | 11,413,191 | [
"laravel",
"docker",
"vite"
] |
75,631,295 | 2 | null | 75,629,697 | 1 | null | See Microsoft docs [Create project templates](https://learn.microsoft.com/en-us/visualstudio/ide/how-to-create-project-templates?view=vs-2022)
On the last page, provided a meaningful name for the template and if possible an image.
| null | CC BY-SA 4.0 | null | 2023-03-03T19:45:40.607 | 2023-03-03T19:45:40.607 | null | null | 5,509,738 | null |
75,631,294 | 1 | null | null | 0 | 28 | Imagine there is a large database (>50GB) and because of its size it cannot be loaded entirely in the main memory. So how does Neo4j work with such databases? Is there some kind of paging? If so how does it work, if not - how does it load parts of the database in memory? I want to understand how it works at a low level... | How does Neo4j work with large databases? | CC BY-SA 4.0 | null | 2023-03-03T19:45:35.133 | 2023-03-04T14:10:24.287 | null | null | 21,328,179 | [
"neo4j",
"graph-databases"
] |
75,631,296 | 2 | null | 73,102,294 | 0 | null | Solution:
Set 'tenantId' to consumers.
Code:
tenantId = consumers
| null | CC BY-SA 4.0 | null | 2023-03-03T19:45:57.443 | 2023-03-03T19:45:57.443 | null | null | 21,328,307 | null |
75,631,282 | 1 | null | null | 0 | 15 | I wish to change the CSS colors in `spring-boot-admin-server-ui` and thought it would be as simple as changing the various colors in the:
`spring-boot-admin-server-ui/src/main/frontend/public/variables.css`
I then do a `mvn clean install -DskipTests` and also do the same to my app that I am using the sba starter in.
Bu... | spring-boot-admin can't seem to change colors despite editing variables.css | CC BY-SA 4.0 | null | 2023-03-03T19:43:42.333 | 2023-03-04T00:11:17.810 | 2023-03-04T00:11:17.810 | 2,974,770 | 2,974,770 | [
"spring-boot-admin"
] |
75,631,290 | 1 | 75,631,306 | null | 0 | 21 | I would expect to be able to change the fill colors in this plot with `scale_fill_manual()` but it doesn't work:
```
library(ggparty)
#> Loading required package: ggplot2
#> Loading required package: partykit
#> Loading required package: grid
#> Loading required package: libcoin
#> Loading required package: mvtnorm
sp_... | Is it possible to change the color scale with ggparty::geom_node_plot()? | CC BY-SA 4.0 | null | 2023-03-03T19:44:26.413 | 2023-03-03T19:47:24.190 | null | null | 5,314,416 | [
"r",
"ggplot2",
"tree"
] |
75,631,301 | 2 | null | 23,997,741 | 0 | null | Based on the @Alexandr's answer,
1. Add below line under form do loop as: form do |f| text_node javascript_include_tag "path_to/my_javascript_file" end
2. Add path_to/my_javascript_file in confg/initializers/assets.rb to precompile it.
3. Add //= link path_to/my_javascript_file.js to assets/config/manifest.js
| null | CC BY-SA 4.0 | null | 2023-03-03T19:46:39.977 | 2023-03-03T22:44:09.867 | 2023-03-03T22:44:09.867 | 5,051,678 | 5,051,678 | null |
75,631,302 | 1 | null | null | 0 | 27 | ```
function price_zones(a::Array{Float64,2})
v_temp = vec(convert(Array, mapcols!(count_unique, DataFrame(transpose(a[:,1:3])))))
df = DataFrame(OnePriceZone = sum(v_temp .== 1),
TwoPriceZones = sum(v_temp .== 2),
ThreePriceZones = sum(v_temp .== 3))
return df
end
```
... | ERROR: LoadError: ArgumentError: a 'LinearAlgebra.Transpose{Float64, Matrix{Float64}}' is not a table; see `?Tables.table` | CC BY-SA 4.0 | null | 2023-03-03T19:46:47.087 | 2023-03-03T20:31:58.037 | 2023-03-03T20:31:58.037 | 11,747,148 | 21,328,270 | [
"dataframe",
"julia"
] |
75,631,300 | 2 | null | 75,631,132 | 1 | null | This occurs because the method inside `.then()` is called whenever the Future from the `get()` method finishes. This occurs asynchronously and there's nothing in your code that's stopping the code from reaching the `return recipes` statement.
Try converting your code to an asynchronous method. Try the following and let... | null | CC BY-SA 4.0 | null | 2023-03-03T19:46:18.497 | 2023-03-04T08:22:38.740 | 2023-03-04T08:22:38.740 | 19,201,328 | 19,201,328 | null |
75,631,298 | 2 | null | 75,630,989 | 0 | null | You could groupe the data by columns `user_id, Year, and emotion` and then selecting the row with the highest `count` for each `user_id, Year, and emotion` combination using the `ROW_NUMBER()` window function. The resulting output shows the `user_id, Year, and emotion` for each row with the highest count:
Query:
```
SE... | null | CC BY-SA 4.0 | null | 2023-03-03T19:46:10.390 | 2023-03-03T19:47:45.570 | 2023-03-03T19:47:45.570 | 14,529,779 | 14,529,779 | null |
75,631,299 | 1 | null | null | 0 | 10 | What is the unit of output `points4D` param in OpenCV's `triangulatePoints` function?
I have been working on Visual Odometry and I'm not getting the expected output. So, to fix some issues, I'm trying to understand the nitty-gritty of the different functions being used. One of the underlying functions is [triangulatePo... | What is the unit of points4D param in OpenCV's triangulatePoints function? | CC BY-SA 4.0 | null | 2023-03-03T19:46:14.000 | 2023-03-04T14:21:26.223 | 2023-03-03T19:58:13.933 | 10,358,768 | 10,358,768 | [
"opencv",
"computer-vision",
"pose-estimation",
"visual-odometry"
] |
75,631,293 | 2 | null | 75,629,462 | 1 | null | The algorithm you're showing extracts the digits in forward direction, e.g. starting from higher order decimal digits and going to the lower order.
The DIVU instruction divides a 32-bit dividend value by a 16-bit divisor value, producing a 16-bit quotient and 16-bit remainder.
So, the key is to use that feature. In pa... | null | CC BY-SA 4.0 | null | 2023-03-03T19:45:14.717 | 2023-03-03T20:03:23.973 | 2023-03-03T20:03:23.973 | 471,129 | 471,129 | null |
75,631,309 | 2 | null | 40,725,158 | 0 | null | `<link rel="canonical" href="{{ url()->current() }}" />`
As answered by Farid works perfectly, simply add to your main layout file i.e guest.blade.php
Tested and implemented on Laravel 9 & 10 (live public sites)
| null | CC BY-SA 4.0 | null | 2023-03-03T19:47:55.740 | 2023-03-03T19:48:33.097 | 2023-03-03T19:48:33.097 | 14,479,750 | 14,479,750 | null |
75,631,311 | 2 | null | 35,394,230 | 0 | null | Not so much a fix to the solution as another way round it, but it's also possible (and much faster) to use SQLite as a database instead of MySQL, simply uncommenting the following lines in `phpunit.xml`:
```
<server name="DB_CONNECTION" value="sqlite"/>
<server name="DB_DATABASE" value=":memory:"/>
```
| null | CC BY-SA 4.0 | null | 2023-03-03T19:47:56.477 | 2023-03-03T19:47:56.477 | null | null | 1,191,147 | null |
75,631,305 | 2 | null | 75,631,084 | 0 | null | It's a one-liner with [histplot](https://seaborn.pydata.org/generated/seaborn.histplot.html):
```
sns.histplot(df, y='date', weights='quantity', hue='product_group', multiple='stack')
```
Output:
[](https://i.stack.imgur.com/rLjj0.png)
Edit: if you want all bars to have the same length, set `multiple` to `fill`:
```
s... | null | CC BY-SA 4.0 | null | 2023-03-03T19:46:54.603 | 2023-03-03T22:39:29.800 | 2023-03-03T22:39:29.800 | 13,525,512 | 13,525,512 | null |
75,631,306 | 2 | null | 75,631,290 | 1 | null | You should remove the "+" and replace by "," in your ggplot formula list :
```
library(ggparty)
#> Loading required package: ggplot2
#> Loading required package: partykit
#> Loading required package: grid
#> Loading required package: libcoin
#> Loading required package: mvtnorm
sp_o <- partysplit(1L, index = 1:3)
n1 <-... | null | CC BY-SA 4.0 | null | 2023-03-03T19:47:24.190 | 2023-03-03T19:47:24.190 | null | null | 8,214,946 | null |
75,631,314 | 1 | null | null | 0 | 15 | I have a Grails app that is on Grails 5.3.2 and a couple weeks ago I was blocked from using the recommended spring-web version 5.3 because the 5.3 version is blocked in our Artifactory instance because of CVE-2016-1000027.
I tried to require spring-web 6.0.6 but it's failing almost everywhere. The CVE states there are... | Grails 5.3.2 with Spring-Web 6.x? Any other solutions to spring-web CVE? | CC BY-SA 4.0 | null | 2023-03-03T19:48:18.597 | 2023-03-03T19:48:18.597 | null | null | 1,402,066 | [
"spring",
"spring-mvc",
"grails"
] |
75,631,303 | 1 | null | null | 0 | 27 | I have this app here:
Here is the code for the module:
```
library(shiny)
library(shinyWidgets)
library(tidyverse)
years <- 2015:2022
list_actions <- list(
letters[1:3],
letters[4:6],
letters[7:9],
letters[10:12],
letters[13:15],
letters[16:18],
letters[19:21],
letters[22:24]
)
list_actions <- list_a... | In Shiny/R when I click on image link (actionLink) the app crashes | CC BY-SA 4.0 | null | 2023-03-03T19:46:51.710 | 2023-03-03T23:05:30.387 | 2023-03-03T19:51:40.510 | 7,806,228 | 7,806,228 | [
"r",
"shiny"
] |
75,631,308 | 2 | null | 75,631,065 | 1 | null | You can use the following transformation spec
```
[
{
"operation": "shift",
"spec": {
"*": {
"some_key": "&",
"all_foo": {
"@1,foo_name": "&1[0].foo_name",
"@1,foo_id": "&1[0].foo_id",
"*": "&1[]"
}
}
}
}
]
```
or alternatively use the ... | null | CC BY-SA 4.0 | null | 2023-03-03T19:47:48.717 | 2023-03-03T20:03:18.543 | 2023-03-03T20:03:18.543 | 5,841,306 | 5,841,306 | null |
75,631,317 | 2 | null | 46,693,211 | 0 | null | I have the same issue and after inspecting the `lunch.json` file I noticed that the program folder was pointing to:
```
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/bin/Debug/net6.0/ShoppingCartApi.dll",
```
then I realized that updated the target frame... | null | CC BY-SA 4.0 | null | 2023-03-03T19:48:28.947 | 2023-03-03T19:48:28.947 | null | null | 21,328,318 | null |
75,631,312 | 2 | null | 75,630,790 | 1 | null | If you're using SQL Server 2017 you could get the dynamic values by doing some nested OPENJSON magic:
```
select x.[key] AS id
, MAX(CASE WHEN v.[key] = 'created_at' THEN v.value END) /*OVER(PARTITION BY x.[key])*/ AS created_at
, MAX(CASE WHEN v.[key] = 'from' then JSON_VALUE(v.value, '$.name') END) /*OVER(PARTITION B... | null | CC BY-SA 4.0 | null | 2023-03-03T19:48:09.700 | 2023-03-03T19:48:09.700 | null | null | 13,061,224 | null |
75,631,313 | 2 | null | 75,630,922 | 1 | null | ```
import pandas as pd
df = pd.DataFrame({'ID':[118645, 118985, 119023, 119225, 119225, 119276, 119863,
119924, 119924, 119924, 119924, 119987],
'Start_Date':['2021-01-04', '2021-01-11', '2021-01-07', '2021-01-08',
'2021-01-08', '2021-01-0... | null | CC BY-SA 4.0 | null | 2023-03-03T19:48:15.633 | 2023-03-03T20:08:49.850 | 2023-03-03T20:08:49.850 | 13,460,543 | 13,460,543 | null |
75,631,318 | 1 | 75,631,379 | null | 1 | 22 | ```
<NavLink
to={item.link}
key={index}
className={({ isActive }) => (isActive ? "text-oirOrange" : ' ')}
>
<li className='cursor-pointer font-semibold text-oirBrown hover:text-oirOrange'>
{item.text}
</li>
</NavLink>
```
The active nav link color should change, but it is not changing. `"text-oirOrange"`... | NavLink color is not changing using tailwind css | CC BY-SA 4.0 | null | 2023-03-03T19:48:41.790 | 2023-03-03T19:59:30.150 | 2023-03-03T19:58:47.267 | 8,690,857 | 13,153,007 | [
"css",
"reactjs",
"react-router",
"react-router-dom",
"tailwind-css"
] |
75,631,315 | 1 | 75,632,562 | null | 1 | 40 | I am testing the library below, based on your code sample, Roman.
```
import matplotlib.pyplot as plt
from sklearn.feature_extraction.text import ENGLISH_STOP_WORDS
from collections import Counter
df_new = pd.DataFrame(['okay', 'yeah', 'thank', 'im'])
stop_words = text.ENGLISH_STOP_WORDS.union(df_new)
#stop_words
w_c... | Using Natural Language Processing, how can we add our own Stop Words to a list? | CC BY-SA 4.0 | null | 2023-03-03T19:48:20.673 | 2023-03-04T11:20:07.267 | 2023-03-04T01:00:12.573 | 5,212,614 | 5,212,614 | [
"python",
"python-3.x",
"nlp"
] |
75,631,316 | 2 | null | 68,258,015 | 0 | null | This is currently poorly documented but here's what worked for me.
You can pass the values over using a [MTLBuffer](https://developer.apple.com/documentation/metal/mtlbuffer). To do this, first in your shader modifier, defined your buffer argument. This should be a pointer to the buffer type (in this case I have a buff... | null | CC BY-SA 4.0 | null | 2023-03-03T19:48:22.400 | 2023-03-03T19:53:06.467 | 2023-03-03T19:53:06.467 | 306,149 | 306,149 | null |
75,631,321 | 1 | null | null | 0 | 22 | I am writing to program to find firefox path.
I am using code from github (don't mind that variables are named chrome)
This program returns numbers
```
def _find_chrome_win() -> Optional[str]:
import winreg as reg
reg_path = r'SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\firefox.exe'
chrome_path: Opt... | Why winreg is returning numbers? | CC BY-SA 4.0 | null | 2023-03-03T19:49:07.847 | 2023-03-03T19:52:04.013 | 2023-03-03T19:52:04.013 | 6,273,251 | 19,309,369 | [
"python",
"firefox",
"winreg"
] |
75,631,328 | 2 | null | 75,631,174 | 0 | null | Visual Studio uses different key binding then Visual Studio Code. To comment a selection use `ctrl+k+c` and to uncomment the selection use `ctrl+k+u`. You can find other key bindings under `Edit`->`Advance` as shown in the below screenshot.
[](https://i.stack.imgur.com/Eb5Jd.png)
| null | CC BY-SA 4.0 | null | 2023-03-03T19:50:28.480 | 2023-03-03T19:50:28.480 | null | null | 5,381,023 | null |
75,631,322 | 1 | 75,631,392 | null | 0 | 35 | I have data in R that has a numeric variable that counts the number of months since Jan. 1960.
Let’s say:
```
months_since_1960 <- c(0, 1, 12, 13, 24, 25)
```
How can I create a new date variable that will show me these dates in a valuable way?
I'm hoping for something like:
```
date <- (1960-01,1960-02,1961-01,1961-0... | How to convert a numeric variable that counts the number of months since a certain point into a variable with an interpretable date (R)? | CC BY-SA 4.0 | null | 2023-03-03T19:49:08.513 | 2023-03-03T20:56:50.767 | 2023-03-03T20:56:50.767 | 1,820,446 | 21,027,866 | [
"r",
"recode"
] |
75,631,319 | 1 | null | null | 0 | 8 | I have a project that is using DDEV to run an instance with PHP 8.1.
I needed to introduce the pdo_sqlsrv extension to the package, so I added a Dockerfile in the .ddev/web-build/ directory that installs the required packages, and copies a bash-script that is then run with sudo to install the remaining dependencies.
Th... | pecl install pdo_sqlsrv MAKE fails on DDEV using Debian 11 - missing libltdl.la | CC BY-SA 4.0 | null | 2023-03-03T19:48:47.110 | 2023-03-03T19:48:47.110 | null | null | 9,147,574 | [
"debian",
"ddev",
"php-8.1",
"bullseye"
] |
75,631,329 | 2 | null | 75,631,141 | 0 | null | Finally able to fix this, earlier I have to install authy app on my Iphone, so again installed Authy Desktop app with the same number then it prompted me to set a Backup password, and after syncing in Iphone also password removed, and I set new backup password which I have set in Desktop authy app.
| null | CC BY-SA 4.0 | null | 2023-03-03T19:50:30.707 | 2023-03-03T19:53:25.373 | 2023-03-03T19:53:25.373 | 20,679,221 | 20,679,221 | null |
75,631,326 | 1 | null | null | 0 | 15 | Good afternoon community,
I am struggling with the latest PBI interface and the visual for a bar chart. The current settings and all that I have manipulated leave a great deal of white space and an unpleasing visual.
Power BI screen shot
[](https://i.stack.imgur.com/A4ssl.png)
I dont like all of the unneeded white spa... | Bar Chart spacing power BI visuals | CC BY-SA 4.0 | null | 2023-03-03T19:49:42.437 | 2023-03-04T21:06:45.440 | null | null | 1,840,519 | [
"powerbi"
] |
75,631,327 | 2 | null | 75,631,193 | 1 | null | You want [File.ReadAllLines()](https://learn.microsoft.com/en-us/dotnet/api/system.io.file.readalllines) or [File.ReadLines()](https://learn.microsoft.com/en-us/dotnet/api/system.io.file.readlines).
Neither of these returns a `List<string>`, but both create objects that work with `foreach` loops and Linq extensions, in... | null | CC BY-SA 4.0 | null | 2023-03-03T19:50:22.440 | 2023-03-03T21:06:23.677 | 2023-03-03T21:06:23.677 | 3,043 | 3,043 | null |
75,631,331 | 1 | null | null | 0 | 6 | I used to work in my windows user profile, some days ago I lost the access and can not recover it because I need a password that I never used.
However, I am using an admin profile and copied some projects from the lost user, but when I try to use some dependencies, the command bash says that it's not found. This projec... | How to use/update dependencies from another Windows user? | CC BY-SA 4.0 | null | 2023-03-03T19:50:44.020 | 2023-03-03T20:00:03.023 | 2023-03-03T20:00:03.023 | 17,380,282 | 17,380,282 | [
"npm",
"command",
"node-modules"
] |
75,631,320 | 1 | null | null | 0 | 18 | im trying to make something like google drive, but my own, started with very simple file/image uploading, down here is my Node.js Back-end, and more down there is my Front-end JavaScript/Axios/React/html server, after i upload any file in front end(on website) i get error in Node.js(see down there), in Node.js im using... | Im getting MulterError: Unexpected field error from backend express, how to fix my code | CC BY-SA 4.0 | null | 2023-03-03T19:49:03.577 | 2023-03-03T19:49:03.577 | null | null | 21,275,607 | [
"javascript",
"node.js",
"express",
"axios",
"multer"
] |
75,631,334 | 1 | null | null | 0 | 13 | I am trying to format the CalcType = 1 and CalcType = 2 by using "FORMAT" function and it does work on the values but it creates a new issue and starts showing all the subheaders under each header with blank values. Please see my Dax measure.
```
Actual = VAR CalcType = SELECTEDVALUE(HeaderPL[CalcType])
... | Dax measure formatting issue | CC BY-SA 4.0 | null | 2023-03-03T19:50:51.810 | 2023-03-03T19:50:51.810 | null | null | 21,328,283 | [
"dax",
"powerbi-desktop"
] |
75,631,332 | 2 | null | 75,627,636 | 0 | null | The reason you always get 0 days is because you selecting `MAX(date)` which turns out to be `2023-01-10 10:34:36` (the first value that satisfies your exit condition) which is 0 days from `2023-01-10 15:12:24`. Perhaps you should select MIN(date). I am not even sure that is valid for all timestamps not if the start and... | null | CC BY-SA 4.0 | null | 2023-03-03T19:50:44.643 | 2023-03-03T19:50:44.643 | null | null | 7,623,856 | null |
75,631,335 | 1 | null | null | 0 | 10 | In order to persist the login on refresh in my application, I am saving the `id` returned from google 1-step signin in local storage. I have read some conflicting articles about it, as either being good/bad.
Just wanted to get some input of what is the the best way to persist login through 1-step signin.
If I don't sav... | saving userid/token returned from google(gsi/client) OAuth signin to local storage? is it acceptable? | CC BY-SA 4.0 | null | 2023-03-03T19:50:58.457 | 2023-03-03T19:50:58.457 | null | null | 10,655,538 | [
"javascript",
"reactjs",
"redux",
"redux-toolkit"
] |
75,631,338 | 2 | null | 75,629,787 | 2 | null | The basic integer and floating point automatic conversions are a source of a large number of bugs in C/C++ programs.
So Eigen decided to require explicit conversion.
And yes, the odds are that matrix multiplication is going to be optimized for identical types on both sides. Optimizing for non-identical types results i... | null | CC BY-SA 4.0 | null | 2023-03-03T19:51:28.013 | 2023-03-03T19:52:54.543 | 2023-03-03T19:52:54.543 | 1,774,667 | 1,774,667 | null |
75,631,341 | 2 | null | 75,631,322 | 2 | null | Is it something like that ?
```
library(lubridate)
months_since_1960 <- c(0, 1, 12, 13, 24, 25)
date_ref = as.Date("1960-01-01")
date_ref %m+% months(months_since_1960)
```
| null | CC BY-SA 4.0 | null | 2023-03-03T19:51:51.790 | 2023-03-03T19:51:51.790 | null | null | 8,214,946 | null |
75,631,339 | 1 | null | null | 0 | 17 | I used to have a batch file in a previous computer, scheduled via task scheduler, that activated the conda environment called "eng" and ran a python script with the packages installed in that environment. The bat file looked like this:
```
@ECHO OFF
ECHO Conda Activate for MTD ENT Daily pull
@CALL "C:\Users\tom\Anacond... | unable to find activate.bat to activate conda environment via batch file | CC BY-SA 4.0 | null | 2023-03-03T19:51:40.433 | 2023-03-03T23:10:36.960 | 2023-03-03T23:10:36.960 | 16,223,913 | 16,223,913 | [
"python",
"batch-file",
"anaconda",
"environment"
] |
75,631,344 | 2 | null | 75,631,055 | 1 | null | `package.name` is an ; the value of the expression is the value of the `name` attribute of whatever object `package` refers to. `package` is the name of a parameter of the `add_package` method. When you this method, the value you provide as an argument is bound to the name `package`.
For example,
```
class Package:
... | null | CC BY-SA 4.0 | null | 2023-03-03T19:52:25.777 | 2023-03-03T19:52:25.777 | null | null | 1,126,841 | null |
75,631,337 | 2 | null | 75,630,423 | 0 | null |
I tried to create an experimental example which also responsively switch to 2 column grid, which hopefully matches the desired layout.
Demo of the example: [codesandbox](https://codesandbox.io/s/glitz-list-res-3v2zrt?file=/src/App.tsx)
Although I initially preferred a cleaner solution rather than a chunk of `nth-of-ty... | null | CC BY-SA 4.0 | null | 2023-03-03T19:51:25.843 | 2023-03-04T21:00:41.163 | 2023-03-04T21:00:41.163 | 20,436,957 | 20,436,957 | null |
75,631,330 | 1 | null | null | 0 | 24 | I watch a very strange behavior of `rugarch` package when I try to estimate models via `arfimafit` method. I have some (usually 1-2) workers never stop after the method calling in parallel.
Code for reproduce:
```
library(aTSA);
library(parallel);
library(rugarch);
library(pracma);
maxThreads <- max(1, detectCores()-... | Strange behavior of rugarch package on cluster | CC BY-SA 4.0 | null | 2023-03-03T19:50:42.367 | 2023-03-03T20:02:05.113 | 2023-03-03T20:02:05.113 | 5,455,223 | 5,455,223 | [
"r",
"amd"
] |
75,631,345 | 2 | null | 75,616,331 | 0 | null | I've managed to make it write and not getting stucked in session or stream input on Ftp server by using org.apache.commons.net.ftp.FTPClient.
My advice is not to use Spring integration with ftp, try the basic org.apache.commons.net.ftp package when integrating Java client app with a Ftp sever.
| null | CC BY-SA 4.0 | null | 2023-03-03T19:52:35.323 | 2023-03-03T19:56:23.047 | 2023-03-03T19:56:23.047 | 3,601,527 | 3,601,527 | null |
75,631,340 | 1 | null | null | 0 | 19 | I have an input_number configured in HomeAssistant like this in the configuration.yalm:
```
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
input_number:
box1:
name: some_number
min: 0
m... | HomeAssistant API request from micropython not working | CC BY-SA 4.0 | null | 2023-03-03T19:51:43.057 | 2023-03-03T19:57:09.863 | 2023-03-03T19:57:09.863 | 13,346,153 | 13,346,153 | [
"python",
"api",
"micropython",
"home-assistant"
] |
75,631,310 | 2 | null | 75,630,125 | 1 | null | This is an issue I call , as described in [microsoft/TypeScript#30581](https://github.com/microsoft/TypeScript/issues/30581). Inside the body of `changeValue()`, the type of `module.change` and the type of `value` are both [union types](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types), b... | null | CC BY-SA 4.0 | null | 2023-03-03T19:47:56.477 | 2023-03-03T19:47:56.477 | null | null | 2,887,218 | null |
75,631,343 | 2 | null | 58,746,168 | 0 | null | Leaflet.Control.Search create an indexe of elements using by default the `title` field of the marker, more precisely in an instance of L.Marker the title is found in `marker.options.title`.
L.Search searches for properties inside `options` in each markers
So you can append a new property in options which is linked to ... | null | CC BY-SA 4.0 | null | 2023-03-03T19:52:17.863 | 2023-03-03T19:52:17.863 | null | null | 526,444 | null |
75,631,336 | 1 | null | null | 1 | 30 | I'm currently implementing an extension method `downgrade_map` (+ `try_downgrade_map`) on `tokio::sync::RwLockWriteGuard`, which goes from `RwLockWriteGuard<'a, T>` to `RwLockReadGuard<'a, U>` with an `f: impl FnOnce(&T) -> &U`.
```
pub fn downgrade_map<'a, T: ?Sized, U: ?Sized>(
guard: tokio::sync::RwLockWriteGuar... | Implementing `downgrade_map` for `tokio::sync::RwLockWriteGuard` | CC BY-SA 4.0 | null | 2023-03-03T19:51:08.627 | 2023-03-03T20:39:52.483 | 2023-03-03T20:39:52.483 | 6,655,004 | 6,655,004 | [
"rust",
"unsafe"
] |
75,631,347 | 1 | null | null | -2 | 16 | i was thinking of making a game that you are playing agenst an ai with a base brain and it adapts to your playstyle is that posable without using the console?
i found a git page explaining how to train with the console ([https://github.com/Unity-Technologies/ml-agents/blob/release_19_docs/docs/Learning-Environment-Exec... | is there a way to train an ai in unity using ml agents and in a built game | CC BY-SA 4.0 | null | 2023-03-03T19:52:42.700 | 2023-03-03T19:52:42.700 | null | null | 21,300,846 | [
"unity3d",
"artificial-intelligence",
"game-development"
] |
75,631,348 | 1 | null | null | -1 | 15 | I'm building a personal website for my friends and I as a guide to help us lose weight.
I have the above input field. Lets say you enter 200 and press enter. I want add code to the HTML file that displays the following
Your weight minus 1 = 199
Your weight divided by 4 = 50
Obviously I will do more advanced calculat... | Simple input field and math calculations Question | CC BY-SA 4.0 | null | 2023-03-03T19:52:51.727 | 2023-03-03T19:54:54.407 | 2023-03-03T19:54:54.407 | 34,806 | 13,909,075 | [
"javascript",
"html",
"math",
"input",
"output"
] |
75,631,352 | 2 | null | 74,631,459 | 0 | null | Since this is controlled by the supportedMediaCommands being set, there is no way to control it using a default web receiver as the supported commands are set to ALL_BASIC_MEDIA which includes SEEK.
If you are currently implementing a custom web receiver you should be able to remove the seek command from it using Playe... | null | CC BY-SA 4.0 | null | 2023-03-03T19:53:25.463 | 2023-03-03T19:53:25.463 | null | null | 20,985,270 | null |
75,631,349 | 1 | null | null | -1 | 27 | I am new to .NET and is trying to call third-party API but the API requires to send Auth Header without the word "Basic". It is a base-64 encoded string. But when I call the API, http client throws an exception as invalid value.
I am using .NET v6.
Below is the code
```
var endpoint = new Uri("api-url");
var ne... | Make POST request with no "Basic" in Auth Header | CC BY-SA 4.0 | null | 2023-03-03T19:52:56.530 | 2023-03-03T19:52:56.530 | null | null | 12,966,851 | [
"c#",
".net",
"api",
"http-post",
"dotnet-httpclient"
] |
75,631,351 | 2 | null | 75,619,030 | 0 | null | Looks like a transaction error.
I found the offending process with this:
```
SELECT
session_id,
blocking_session_id,
text,wait_time,
total_elapsed_time
FROM
sys.dm_exec_requests
CROSS APPLY
sys.dm_exec_sql_text(sql_handle)
WHERE
session_id IN
(
SELECT
blocking_sess... | null | CC BY-SA 4.0 | null | 2023-03-03T19:53:23.580 | 2023-03-03T19:55:13.577 | 2023-03-03T19:55:13.577 | 18,745,848 | 18,745,848 | null |
75,631,359 | 2 | null | 75,602,636 | 0 | null | I was having the same issue and I fixed it by using a cluster that has permission and access to the database I was trying to access.
Ensure you are using a cluster machine connected to the database and have the right permissions.
| null | CC BY-SA 4.0 | null | 2023-03-03T19:53:56.253 | 2023-03-03T19:53:56.253 | null | null | 8,162,546 | null |
75,631,357 | 2 | null | 75,616,698 | 1 | null | You need `com.google.cloud:google-cloud-firestore` library to access `Firestore` from your server project. `google-cloud-firestore` is a dependency of `firebase-admin` ([ref](https://github.com/firebase/firebase-admin-java/blob/95e542790e1b22a26258a10f7edff3a5a29c86d4/pom.xml#L428)) and should install it as a dependenc... | null | CC BY-SA 4.0 | null | 2023-03-03T19:53:35.097 | 2023-03-03T20:06:46.127 | 2023-03-03T20:06:46.127 | 1,526,201 | 1,526,201 | null |
75,631,354 | 2 | null | 75,631,256 | 0 | null |
1. You have the default print_r() output. There is no option for formatting this, but you can transform the output as needed.
2. Convert the array to JSON and do some replacements. You can go further and replace the quotes and spaces after comma.
```
$array = [10 => 11.22, 20 => 22.33, 30 => 33.44];
echo str_replace... | null | CC BY-SA 4.0 | null | 2023-03-03T19:53:32.063 | 2023-03-04T09:35:33.227 | 2023-03-04T09:35:33.227 | 2,645,713 | 2,645,713 | null |
75,631,355 | 2 | null | 75,626,411 | 0 | null | That's what interactively means when you start the scrolling above the keyboard and go down the keyboard will go down with you and then dismiss it. if you don't want the keyboard to dismiss like that you can dismiss the keyboard when scroll or drag down or up the textField itself like this
```
struct TextBox: View {
... | null | CC BY-SA 4.0 | null | 2023-03-03T19:53:34.757 | 2023-03-04T15:23:01.197 | 2023-03-04T15:23:01.197 | 10,701,774 | 10,701,774 | null |
75,631,360 | 2 | null | 75,630,999 | 2 | null | The `sns.displot` function returns a `FacetGrid` object. This object let you customize the row and col titles with the methods `set_titles()` `set_axis_labels()`. However, with the very custom figure you want to achieve, I'm afraid you'll have to overwrite labels and titles directly through `FacetGrid.axes` which gives... | null | CC BY-SA 4.0 | null | 2023-03-03T19:53:59.267 | 2023-03-03T19:55:31.607 | 2023-03-03T19:55:31.607 | 11,080,037 | 11,080,037 | null |
75,631,365 | 2 | null | 75,631,274 | 2 | null | Try this:
```
dta$group <- factor(dta$group,levels = c('1','2','3'))
ggplot(dta, aes(x = V1, y = V2)) +
geom_point(aes(color = group)) +
geom_smooth(method = "lm", se = FALSE) +
geom_smooth(method = "lm", se = FALSE, aes(color = group)) +
scale_color_manual(name = "Legend",
values = c("gr... | null | CC BY-SA 4.0 | null | 2023-03-03T19:54:44.993 | 2023-03-03T19:55:44.653 | 2023-03-03T19:55:44.653 | 324,364 | 324,364 | null |
75,631,362 | 2 | null | 75,630,643 | 1 | null | What is happening, is you are indeed adding a stub for the mentioned `isLoggedIn` field/getter:
```
when(mock.isLoggedIn).thenReturn(false);
```
but in the next line, you are calling `provider.update` with a brand new instance of your mock. Not the one that you stubbed. An empty one.
The solution is really easy. Simpl... | null | CC BY-SA 4.0 | null | 2023-03-03T19:54:10.260 | 2023-03-03T20:02:01.963 | 2023-03-03T20:02:01.963 | 3,158,312 | 3,158,312 | null |
75,631,366 | 2 | null | 75,630,977 | 1 | null | I pasted a solution below.
Hopefully my comments explain the solution well enough.
```
#Packages used
library(dplyr)
#Some reproducible data
dta <- data.frame(
date = c(1, 1, 1, 2, 2, 2, 3, 3, 3),
a = c(NA, NA, NA, NA, NA, NA, NA, NA, NA),
x = c(123, NA, NA, 3456, NA, NA, 2345, NA, NA),
y = c(NA, 123, NA, NA, ... | null | CC BY-SA 4.0 | null | 2023-03-03T19:54:49.600 | 2023-03-03T21:32:13.027 | 2023-03-03T21:32:13.027 | 17,579,093 | 17,579,093 | null |
75,631,363 | 1 | null | null | 0 | 15 | Let's say I have an api endpoint that returns a complex response.
```
data = requests.get("https://my.api/garbage").json()
# {
# "a": 1,
# "b": "asd",
# "c": [1,2],
# "d": {
# "e": "dsa",
# "f": 1,
# },
# "g": True
# }
```
I pass this response around various places in order to p... | Type-hint a nested json api response | CC BY-SA 4.0 | null | 2023-03-03T19:54:10.870 | 2023-03-03T21:00:55.173 | 2023-03-03T21:00:55.173 | 7,376,511 | 7,376,511 | [
"python",
"serialization",
"python-dataclasses",
"typeddict"
] |
75,631,361 | 1 | null | null | 0 | 38 | I have a table of three columns that I want to flex column wrap to display as many rows as possible without scrolling. I started out with `<table><tr><td>` elements, but when I made the table `display: flex`, it lost it's table functionality and now the columns are not aligned. I managed to at least right-align the rig... | How to get a <table> like row/column alignment in a flexbox? | CC BY-SA 4.0 | null | 2023-03-03T19:54:03.237 | 2023-03-03T21:20:15.273 | 2023-03-03T19:56:35.010 | 20,542,862 | 20,542,862 | [
"html",
"css",
"html-table",
"flexbox"
] |
75,631,370 | 1 | null | null | 0 | 4 | This I guess applies to any 3rd party provider, when using Segment, how do I send a special ID which is prefixed to one service (but send the regular ID to all the other services, without the prefix)?
```
analytics.identify(userId, { visitor: { id: prefixedUserId } })
```
Specifically I am using [Pendo](https://suppor... | How to prefix a visitor ID when sending analytics to Pendo from Segment? | CC BY-SA 4.0 | null | 2023-03-03T19:55:19.633 | 2023-03-03T19:55:55.680 | 2023-03-03T19:55:55.680 | 16,410,169 | 16,410,169 | [
"segment-analytics",
"pendo"
] |
75,631,368 | 1 | 75,631,403 | null | 0 | 21 | I have data in R thats currently 645 rows by 94 columns. But for a reproducible data lets just take the "iris" dataset.
I want to save that out as an excel with conditioning formatting where every cell that contains "A" gets highlighted. I know I can do something like this:
```
wb <- createWorkbook()
addWorksheet(wb, ... | Conditional format entire sheet using Openxlsx in R | CC BY-SA 4.0 | null | 2023-03-03T19:55:07.810 | 2023-03-03T20:01:14.550 | null | null | 4,309,821 | [
"r",
"openxlsx"
] |
75,631,346 | 1 | null | null | 0 | 34 |
## Hey everyone!
So, I've been following along a project, in which I'm developing a simple app that I register products in, and they go to my mongodb database. Handlebars as the templating engine.
Problem is, I keep getting the same `Cannot POST /products/create` every time I try to make a post request with the new ... | Unable to POST to a specific route in my app | CC BY-SA 4.0 | null | 2023-03-03T19:52:38.757 | 2023-03-03T19:52:38.757 | null | null | 21,328,279 | [
"javascript",
"node.js",
"mongodb",
"express",
"handlebars.js"
] |
75,631,323 | 1 | null | null | 0 | 22 | I am using [this tool](https://github.com/strubell/jflex-scala) that generates a scala file (instead of the Java file that jFlex generates).
But the problem is its generates string literals with octals like this:
```
val ZZ_CMAP_PACKED:String =
"\11\0\1\2\1\1\2\0\1\2\22\0\1\2\7\0\4\3\1\0"+
"\1\3\1\0\1\3\12\4\4... | By passing octal literal deprecation in Scala 2.13 | CC BY-SA 4.0 | null | 2023-03-03T19:49:10.210 | 2023-03-03T19:49:10.210 | null | null | 1,834,787 | [
"scala"
] |
75,631,367 | 1 | null | null | 0 | 9 | I would like to use automator to create a blank folder structure to help store files related to TV shows. My ideal workflow would be this....
1. User clicks on the automator 'application' on the desktop and are asked what their files are called via a text box, eg BROOKLYN_99. The name that is input at this stage would... | Using automator to create a blank folder structure on Mac using variables | CC BY-SA 4.0 | null | 2023-03-03T19:55:04.940 | 2023-03-03T19:55:04.940 | null | null | 20,661,445 | [
"shell",
"directory",
"structure",
"automator"
] |
75,631,374 | 2 | null | 75,631,178 | 1 | null | Simple way without using `Regex`:
which [String.split()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split) the string into `chars` and do [Array.map()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map) with condition on letter 'o' th... | null | CC BY-SA 4.0 | null | 2023-03-03T19:55:56.743 | 2023-03-03T19:55:56.743 | null | null | 14,529,779 | null |
75,631,375 | 2 | null | 75,631,090 | 0 | null | ```
SELECT id, status, EffDate
FROM your_table
WHERE
status IN ('A', 'W')
OR (
status = 'T'
AND NOT EXISTS (
SELECT 1
FROM your_table
WHERE status IN ('A', 'W')
AND id = your_table.id
)
)
LIMIT 1;
```
Explanation:
- - - - -
| null | CC BY-SA 4.0 | null | 2023-03-03T19:56:01.633 | 2023-03-03T19:56:01.633 | null | null | 4,907,047 | null |
75,631,371 | 1 | null | null | 0 | 16 | I have a table with 4 columns, let's say: `col_1, col_2, col_3, col_4`, where `col_1` is of type `TEXT` and the others are `INTEGER`.
I want to add a constraint on `col_1` that goes as follow:
```
if (col_1 = 'a') then col_2 cannot be NULL
if (col_1 = 'b') then col_2 AND col_3 cannot be NULL
if (col_1 = 'c') then col_4... | Create a constraint based on column value to ensure not null | CC BY-SA 4.0 | null | 2023-03-03T19:55:20.200 | 2023-03-03T21:55:09.747 | 2023-03-03T21:55:09.747 | 13,302 | 6,609,502 | [
"sql",
"constants",
"psql"
] |
75,631,376 | 2 | null | 75,629,095 | 0 | null | There are many ways to solve this problem. I am choosing to leave the level as one big string and the attribute as another string. Lets create the table and insert data.
```
-- 1 - create table
create table sample_levels
(
sample_data varchar(128)
);
-- 2 - add data
insert into sample_levels values ('A.B.C:D.E.F:G.H... | null | CC BY-SA 4.0 | null | 2023-03-03T19:56:08.833 | 2023-03-03T19:56:08.833 | null | null | 2,577,687 | null |
75,631,377 | 2 | null | 75,621,128 | 1 | null | as well as __pragma and _Pragma variants are not statement, but file level annotations.
It should appear in the source file, somewhere between functions and (assuming optimized build) everything above would be optimized and everything below would be not, till the end of file or annotation.
Realistically, this is the ... | null | CC BY-SA 4.0 | null | 2023-03-03T19:56:21.487 | 2023-03-03T19:56:21.487 | null | null | 4,044,696 | null |
75,631,373 | 1 | null | null | 0 | 21 | so in a basket I have:
[](https://i.stack.imgur.com/cfQhc.png)
As you can see there are 5 items. Two of the items have an id of 2.
So when I go to my basket view I want to group by the id and in the case of id 2 eventually want to too cost of 24.4.
So I thought I'd try to just get the group by id going first with the f... | RXJS GroupBy in Angular 14 doesnt group | CC BY-SA 4.0 | null | 2023-03-03T19:55:47.763 | 2023-03-03T20:13:04.670 | null | null | 5,135,610 | [
"angular",
"rxjs"
] |
75,631,380 | 1 | null | null | -2 | 13 | Я пытаюсь задеплоить сайт на джанго на хостинг. Но у меня нет доступа к SSH. Есть какие нибудь другие способы это сделать? How to deploy django project on host without usinng SSH?
Я пытался через wsgi/ htaccess. Но что то не получилось ничего
| I'm trying to deploy a django site on a hosting. But I don't have SSH access. Are there any other options to do this? | CC BY-SA 4.0 | null | 2023-03-03T19:56:29.833 | 2023-03-03T19:56:29.833 | null | null | 21,199,023 | [
"python",
"django",
"deployment",
"hosting"
] |