Id
int64
1.68k
75.6M
PostTypeId
int64
1
2
AcceptedAnswerId
int64
1.7k
75.6M
ParentId
int64
1.68k
75.6M
Score
int64
-60
3.16k
ViewCount
int64
8
2.68M
Body
stringlengths
1
41.1k
Title
stringlengths
14
150
ContentLicense
stringclasses
3 values
FavoriteCount
int64
0
1
CreationDate
stringlengths
23
23
LastActivityDate
stringlengths
23
23
LastEditDate
stringlengths
23
23
LastEditorUserId
int64
-1
21.3M
OwnerUserId
int64
1
21.3M
Tags
sequence
75,379,390
2
null
75,293,345
0
null
I can think of two possible solutions to this problem: 1. Use --execution-segment 2. Implement a stochastic approach. Not perfect, but probably good enough™ #### Execution segments k6 allows to partition your test run into segments. This requires to run multiple k6 instances in parallel. ``` import papaparse from 'https://jslib.k6.io/papaparse/5.1.1/index.js'; import { SharedArray } from 'k6/data'; const csvData = new SharedArray('csv', function () { return papaparse.parse(open(__ENV.datafile), { header: true }).data; }); export default function () { // use csvData[...] } ``` You have to start 3 tests in parallel (on different hosts or as background jobs) and specify the path to the data file for each: ``` $ k6 run -e datafile=data_set_01.csv --execution-segment '50%' loadtest.js & $ k6 run -e datafile=data_set_02.csv --execution-segment '30%' loadtest.js & $ k6 run -e datafile=data_set_03.csv --execution-segment '20%' loadtest.js & ``` References: - [https://k6.io/docs/examples/data-parameterization/#from-a-csv-file](https://k6.io/docs/examples/data-parameterization/#from-a-csv-file)- [https://k6.io/docs/using-k6/k6-options/reference/#execution-segment](https://k6.io/docs/using-k6/k6-options/reference/#execution-segment)- [https://k6.io/docs/using-k6/environment-variables/](https://k6.io/docs/using-k6/environment-variables/) #### Random sampling Load all 3 files into memory, then use a random variable to select which file to read from. You will not get perfect distribution, but only need to start a single k6 process. ``` import papaparse from 'https://jslib.k6.io/papaparse/5.1.1/index.js'; import { SharedArray } from 'k6/data'; const csvData = new SharedArray('csv', function () { return [ 'data_set_01.csv', 'data_set_02.csv', 'data_set_03.csv', ].map(file => papaparse.parse(open(file), { header: true }).data); }); function rnd() { const x = Math.random(); if (x < 0.5) return 0; if (x < 0.8) return 1; return 2; } function selectRandomCsv() { return csvData[rnd()]; } export default function () { // use selectRandomCsv()[...] } ``` Executing requires no extra care: ``` $ k6 run loadtest.js ``` References: - [https://k6.io/docs/examples/data-parameterization/#from-a-csv-file](https://k6.io/docs/examples/data-parameterization/#from-a-csv-file)
null
CC BY-SA 4.0
null
2023-02-07T21:55:43.207
2023-02-07T21:55:43.207
null
null
112,968
null
75,379,402
2
null
73,347,294
0
null
Convert all the appending data into string format like: ``` lines.append(str(contact.name) ```
null
CC BY-SA 4.0
null
2023-02-07T21:57:04.123
2023-02-12T13:26:25.363
2023-02-12T13:26:25.363
14,267,427
17,292,763
null
75,380,077
2
null
75,379,812
0
null
First of all the `(nolock)` hints are probably accomplishing the benefit you hope for. It's not an automatic "go faster" option, and if such an option existed you can be sure it would be already enabled. It can help in some situations, but the way it works allows the possibility of reading stale data, and the situations where it's likely to make any improvement are the same situations where risk for stale data is the highest. That out of the way, with that much code in the question we're better served with a general explanation and solution for you to adapt. The issue here is `GROUP BY`. When you use a `GROUP BY` in SQL, you're telling the database you want to see separate results for any aggregate functions like SUM() (and COUNT(), AVG(), MAX(), etc). So if you have this: ``` SELECT Sum(ColumnB) As SumB FROM [Table] GROUP BY ColumnA ``` You get a separate row per `ColumnA` group, even though it's not in the `SELECT` list. If you don't really care about that, you can do one of two things: 1. Remove the GROUP BY If there are no grouped columns in the SELECT list, the GROUP BY clause is probably not accomplishing anything important. 2. Nest the query If option 1 is somehow not possible (say, the original is actually a view) you could do this: ``` SELECT SUM(SumB) FROM ( SELECT Sum(ColumnB) As SumB FROM [Table] GROUP BY ColumnA ) t ``` Note in both cases any `JOIN` is irrelevant to the issue.
null
CC BY-SA 4.0
null
2023-02-07T23:39:43.920
2023-02-07T23:39:43.920
null
null
3,043
null
75,380,087
2
null
75,379,625
0
null
In your case, is `/assets/images/image-1.svg` in your `public/` directory? Looking at `rehype-inline-svg`’s code it looks like it tries to resolve SVG paths relative to the root of the project, so you might need to include `public/` in your Markdown somewhat unusually: ``` ![image-1](public/assets/images/image-1.svg) ```
null
CC BY-SA 4.0
null
2023-02-07T23:40:58.130
2023-02-07T23:40:58.130
null
null
3,829,557
null
75,380,220
2
null
71,073,082
0
null
I had the same issue, but when trying it on Windows, it was working correctly, so I guess that Live Server will try to load it as localhost (which is 127...) but WSL doesn't use that. This can be confirmed by running ifconfig on the WSL Terminal. I found a setting on the extension called "Use local IP". Once checked, it will open the Window with the WSL address instead of localhost and changes are shown properly.
null
CC BY-SA 4.0
null
2023-02-08T00:06:37.967
2023-02-08T00:06:37.967
null
null
8,251,006
null
75,380,415
2
null
70,689,147
0
null
First: Install CLI by writing->>>: npm install -g @angular/cli Second:if you want check your version writing -->>>: `*ng v OR ng version*`
null
CC BY-SA 4.0
null
2023-02-08T00:49:25.157
2023-02-08T00:49:25.157
null
null
15,128,717
null
75,380,432
2
null
41,755,276
0
null
Setting your RuntimeIdentifier might be the solution. In my case, working with an Azure Function, it cut about 500 megs and reduced my archive down to 174 megs. This is important because on Consumption plans you get very limited storage. ``` <PropertyGroup> <TargetFramework>net6.0</TargetFramework> <LangVersion>preview</LangVersion> <AzureFunctionsVersion>v4</AzureFunctionsVersion> <OutputType>Exe</OutputType> <!-- Prevents the runtimes folder from being created in publish, which contained 500 megs of runtime files we don't need. --> <RuntimeIdentifier>win-x86</RuntimeIdentifier> <PublishReadyToRun>true</PublishReadyToRun> </PropertyGroup> ```
null
CC BY-SA 4.0
null
2023-02-08T00:55:20.707
2023-02-08T00:55:20.707
null
null
16,082
null
75,380,464
2
null
75,380,351
0
null
The UI element IDs you are looking for are mainly the following: ``` "workbench.colorCustomizations": { "[Name Of Your Theme Here]": { "tab.activeBackground": "#ff0000", "tab.inactiveBackground": "#ff0000", "breadcrumb.background": "#ff0000", "editorGroupHeader.tabsBackground": "#ff0000" } } ``` You'll need to figure out what the colour values you want to use are from your extension's source files. See the extension's package.json file and the `"contributes"` > `"themes"` field to find out what file the theme's JSON file is, then read that file and look for the above UI element IDs and what colour values they have. See also [https://code.visualstudio.com/docs/getstarted/themes#_customizing-a-color-theme](https://code.visualstudio.com/docs/getstarted/themes#_customizing-a-color-theme).
null
CC BY-SA 4.0
null
2023-02-08T01:03:50.330
2023-02-08T03:46:36.447
2023-02-08T03:46:36.447
11,107,541
11,107,541
null
75,380,588
2
null
75,380,378
0
null
Click the fixed key to dock the toolbox pane so it doesn't overlap the form designer. [](https://i.stack.imgur.com/hC9LL.png) Or as @Jimi said, drag and drop the toolbox pane somewhere else. If you accidentally close it, you can find it in view->toolbox
null
CC BY-SA 4.0
null
2023-02-08T01:32:29.910
2023-02-08T01:39:15.903
2023-02-08T01:39:15.903
495,455
16,764,901
null
75,380,672
2
null
75,376,470
3
null
Note that this sort of thing is substantially easier in the new [objects interface](https://seaborn.pydata.org/tutorial/objects_interface.html): ``` titanic = sns.load_dataset("titanic") ( so.Plot(titanic, "age") .facet(col="sex") .add(so.Line(color="r"), so.KDE(), col=None) .add(so.Area(), so.KDE()) ) ``` [](https://i.stack.imgur.com/4RF8P.png)
null
CC BY-SA 4.0
null
2023-02-08T01:52:11.813
2023-02-08T01:52:11.813
null
null
1,533,576
null
75,380,700
2
null
75,376,470
3
null
The approach I'd take here with seaborn's plotting functions is to draw the faceted plot akin to your example and then iterate over the axes to add the background line on each one: ``` titanic = sns.load_dataset("titanic") g = sns.displot(titanic, x="age", col="class", kind="kde", fill=True) for ax in g.axes.flat: sns.kdeplot(data=titanic, x="age", fill=False, ax=ax, color="r") ``` [](https://i.stack.imgur.com/VIaCe.png) If you add `common_norm=False` to the `displot` call, every distribution will integrate to 1 and it may be easier to compare the shapes (this looks a little bit more like your cartoon): [](https://i.stack.imgur.com/hGxRj.png)
null
CC BY-SA 4.0
null
2023-02-08T01:57:29.857
2023-02-08T01:57:29.857
null
null
1,533,576
null
75,381,161
2
null
75,378,034
0
null
Yes, that is because the CollectionView automatically full fill the page. So you couldn't see the Border. Some workaround here: .You could set the for the CollectionView: ``` <CollectionView x:Name="CollectionViewTransactions" ... HeightRequest="300"> ``` .if there is more item in CollectionView, you could put it in a : ``` <ScrollView Orientation="Vertical"> <CollectionView x:Name="CollectionViewTransactions" ... HeightRequest="300"> </ScrollView> ``` .You may also customize the for CollectionView depending on the count of item. The following code is just for example. In xaml file,set binding for <CollectionView x:Name="CollectionViewTransactions" HeightRequest="{Binding Height}" ...> In ViewModel, define a property for height and update it when adding a new item: ``` public int Height { get { return height; } set { height = value; PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Height))); } } public void SetNewHeight() { Height = 70 * ItemCollection.Count; // } ``` All of the above three ways can show border below the CollectionView. You could have a try based on your design For more info, you could refer to [CollectionView](https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/collectionview/?view=net-maui-7.0). Hope it works for you.
null
CC BY-SA 4.0
null
2023-02-08T03:38:35.180
2023-02-08T12:37:17.697
2023-02-08T12:37:17.697
20,118,901
20,118,901
null
75,381,268
2
null
75,381,210
2
null
`2:61` will slice the rows (by ) that are between the row index 2 and the row index 61, which are none. It will not consider the between the integer 2 and 61. I believe you want [between](https://pandas.pydata.org/docs/reference/api/pandas.Series.between.html): ``` basic_data.loc[basic_data.index.to_series().between(2, 61), 'v_00'] # or basic_data.loc[(basic_data.index >= 2) & (basic_data.index <= 61), 'v_00'] ``` Or first sort your index: ``` basic_data = basic_data.sort_index() basic_data.loc[2:61, 'v_00'] ```
null
CC BY-SA 4.0
null
2023-02-08T04:03:05.340
2023-02-08T04:03:05.340
null
null
16,343,464
null
75,381,307
2
null
75,378,999
0
null
I advice you to code it in two steps to figure it out better. ``` import pandas as pd df = pd.DataFrame({'val':[5, 11, 89, 63], 'RET':[-0.1, 0.5, -0.04, 0.09], }) # Step 1 : define the mask m = abs(df['RET']) > 0.1 # Step 2 : apply the mask df[m] print(df) ``` ``` df[m] val RET 1 11 0.5 ```
null
CC BY-SA 4.0
null
2023-02-08T04:09:10.227
2023-02-08T04:09:10.227
null
null
13,460,543
null
75,382,176
2
null
75,330,018
0
null
Had a similar problem and it turned out to be a mismatch between plugin version and flutter version. (I went back and forth to a new Flutter version). Wrote a more detailed answer here: [Flutter completely broken after update (again)](https://stackoverflow.com/questions/58404092/flutter-completely-broken-after-update-again/75382160#75382160) Also - the syncfusion support proved very useful for this
null
CC BY-SA 4.0
null
2023-02-08T06:41:11.847
2023-02-08T06:41:11.847
null
null
380,316
null
75,383,092
2
null
75,155,554
0
null
It seems it's an issue with the docs, according to this: [https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/dsl/BuildType#matchingFallbacks()](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/dsl/BuildType#matchingFallbacks()) this property is not deprecated. Even the pop up on your screenshot from Android Studio states that it was replaced with `matchingFallbacks`.
null
CC BY-SA 4.0
null
2023-02-08T08:33:23.650
2023-02-08T08:33:23.650
null
null
2,195,000
null
75,383,096
2
null
75,382,997
1
null
Probably, in the 2nd line you should write `hb.DocId equals hbi.HallBanquetId` or `hb.DocId equals hbi.DocId` instead of `hb.DocId equals hbi.HallBanquet` (It depends on how your foreign key pointing from item to banquet is named).
null
CC BY-SA 4.0
null
2023-02-08T08:34:01.600
2023-02-08T08:34:01.600
null
null
1,032,003
null
75,383,269
2
null
47,553,936
0
null
After spending some time researching, here is my solution. ``` class AboutDialog : BottomSheetDialogFragment() { private var _binding: DialogAboutBinding? = null private val binding get() = _binding override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View { _binding = DialogAboutBinding.inflate(inflater, container, false) return binding!!.root } override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) val color = Color.WHITE val isLite = true dialog?.window?.run { navigationBarColor = color WindowCompat.getInsetsController(this, this.decorView).isAppearanceLightNavigationBars = isLite } } override fun onDestroyView() { super.onDestroyView() _binding = null } ``` } [](https://i.stack.imgur.com/ScJiS.png) [](https://i.stack.imgur.com/BSCiI.png)
null
CC BY-SA 4.0
null
2023-02-08T08:50:27.653
2023-02-08T08:50:27.653
null
null
6,063,797
null
75,383,806
2
null
75,345,070
0
null
I get the same error. Also to mention, because I don't know if that does matter, when I updated to electric eel, i hat to make a link by `mklink /j jre jbr` because it seems like they changed the folder name from jbr to jre. Many other solutions on stack overflow recommended to just create a jre folder and copy all the jbr stuff in it. I was thinking that it is a temporary mistake and they will rename it with future updates back to jbr. That's why I kept the jbr folder and just linked to it with the jre link. [](https://i.stack.imgur.com/1DCuP.png) Just like the text said, I downloaded the new version from web and reinstalled Android Studio. Now it created by it self a `jre` folder that contained a `bin` folder that contained a `.marker` file. The new installation by it self didn't work. Flutter doctor showed my some issues like that the android licences are not accepted and that it can't find java. I manually copied the contend from the jbr to the jre folder, but also made sure that the `.marker` file stayed in the `jre/bin` folder. Now everything seems to work again.
null
CC BY-SA 4.0
null
2023-02-08T09:39:00.067
2023-02-08T10:05:03.650
2023-02-08T10:05:03.650
16,561,483
16,561,483
null
75,383,884
2
null
75,380,023
1
null
The "/" means the attribute is derived. This in turn means it comes from "higher spheres" which means e.g. from a general class or from some calculation using other attributes. P. 17 of UML 2.5 says > Attributes: each specified by its name, type, and multiplicity, and any additional properties such as {readOnly}. If no multiplicity is listed, it defaults to 1..1. This is followed by a textual description of the purpose and meaning of the attribute. If an attribute is derived, the name will be preceded by a forward slash. Where an attribute is derived, the logic of the derivation is in most cases shown using OCL. Since the shown diagram does not tell the derivation logic you can't tell anything about it. For the time being implement a simple attribute or leave it from its parent. You will have to get the rules to make it a correct implementation before ending the coding.
null
CC BY-SA 4.0
null
2023-02-08T09:45:08.077
2023-02-09T09:57:39.060
2023-02-09T09:57:39.060
3,379,653
3,379,653
null
75,384,166
2
null
75,372,377
0
null
It can be add [scatter](https://api.highcharts.com/highcharts/series.scatter) series and enabled markers, to imitate showing tooltip when axiss are crossing. Additionally, I added wrapp and [extend](https://www.highcharts.com/docs/extending-highcharts/extending-highcharts#wrapping-up-a-plugin) to get a possibility to chart coordinate inside [tooltip.formatter](https://api.highcharts.com/highcharts/tooltip.formatter) callback function. ``` (function(H) { H.Tooltip.prototype.getAnchor = function(points, mouseEvent) { var ret, chart = this.chart, inverted = chart.inverted, plotTop = chart.plotTop, plotLeft = chart.plotLeft, plotX = 0, plotY = 0, yAxis, xAxis; points = H.splat(points); // Pie uses a special tooltipPos ret = points[0].tooltipPos; // When tooltip follows mouse, relate the position to the mouse if (this.followPointer && mouseEvent) { if (mouseEvent.chartX === undefined) { mouseEvent = chart.pointer.normalize(mouseEvent); } ret = [ mouseEvent.chartX - chart.plotLeft, mouseEvent.chartY - plotTop ]; } // When shared, use the average position if (!ret) { H.each(points, function(point) { yAxis = point.series.yAxis; xAxis = point.series.xAxis; plotX += point.plotX + (!inverted && xAxis ? xAxis.left - plotLeft : 0); plotY += (point.plotLow ? (point.plotLow + point.plotHigh) / 2 : point.plotY) + (!inverted && yAxis ? yAxis.top - plotTop : 0); // #1151 }); plotX /= points.length; plotY /= points.length; ret = [ inverted ? chart.plotWidth - plotY : plotX, this.shared && !inverted && points.length > 1 && mouseEvent ? mouseEvent.chartY - plotTop : // place shared tooltip next to the mouse (#424) inverted ? chart.plotHeight - plotX : plotY ]; } // Add your event to Tooltip instances this.event = mouseEvent; return H.map(ret, Math.round); } })(Highcharts) Highcharts.chart('container', { title: { text: 'Logarithmic axis demo' }, xAxis: { tickInterval: 0.1, gridLineWidth: 1, type: 'logarithmic', accessibility: { rangeDescription: 'Range: 1 to 10' } }, yAxis: [{ type: 'logarithmic', minorTickInterval: 0.1, accessibility: { rangeDescription: 'Range: 0.1 to 1000' } }], tooltip: { followTouchMove: true, followPointer: true, formatter: function(mouseEvent) { let event = mouseEvent.event return `chartX:${event.chartX} <br> chartY:${event.chartY}`; } }, series: [{ data: [1, 2, 4, 8, 16, 32, 64, 128, 256, 512], pointStart: 1 }, { type: 'scatter', data: [{ x: 1, y: 10 }, { x: 2, y: 10 }, { x: 5, y: 10 }, { x: 4, y: 10 }, { x: 8, y: 10 }], } ], plotOptions: { scatter: { states: { inactive: { enabled: false } }, marker: { enabled: false }, enableMouseTracking: true, showInLegend: false }, } }); ``` ``` <script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/modules/accessibility.js"></script> <div id="container"></div> ``` Demo: [https://jsfiddle.net/BlackLabel/t05uqfvm/](https://jsfiddle.net/BlackLabel/t05uqfvm/)
null
CC BY-SA 4.0
null
2023-02-08T10:06:31.307
2023-02-08T10:06:31.307
null
null
12,171,673
null
75,384,432
2
null
75,383,889
2
null
as mentioned by Loc, fetching each recipe in its own query is probably the cause of the slow performance. I'd get all the recipes by just fetching the entire collection once and then handle the data transfer from there on. So something like this: ``` QuerySnapshot<Map<String, dynamic>> recipesSnapshot = firestore.collection('recipes').get(); for(QueryDocumentSnapshot doc in recipesSnapshot.docs){ // now do stuff with the data like recipes.add(Recipe.fromMap(doc.data! as Map); } ``` This should reduce the runtime. To answer your commented question you can do something like this: ``` for(QueryDocumentSnapshot doc in recipesSnapshot.docs){ recipes.add(Recipes( recipeID: doc.id, recipeName: doc.get('recipe_name'), recipeDescription: doc.get('recipe_description'), ... ); } ``` So just `doc.get(FIREBASE_FIELD)` Alternatively you could use `doc.data() as Map` to get the whole doc as a Map and then access its content like any other map. If you want to be fancy and have to load recipes in different parts of your app you could also add a function like this to your recipe class (I did not check if this works, but it should): ``` Recipe.fromQueryDocumentSnapshot(QueryDocumentSnapshot snap) : recipeID = snap.id, recipeName = snap.get('recipe_name'), ... ; ``` Then you could do it like this: ``` for(QueryDocumentSnapshot doc in recipesSnapshot.docs){ recipes.add(Recipe.fromQueryDocumentSnapshot(doc)); } ```
null
CC BY-SA 4.0
null
2023-02-08T10:29:01.893
2023-02-08T12:36:31.870
2023-02-08T12:36:31.870
17,815,372
17,815,372
null
75,384,605
2
null
21,320,975
0
null
``` string[] C = new string[50];// For column Name DataTable dt1;//Put your Table data in dt1 for (int r = 0; r < dt1.Columns.Count; r++) { C[r] = dt1.Columns[r].ToString(); } for (int r = 0; r < dt1.Columns.Count; r++) { dataGridView2.Rows.Add(C[r], dt1.Rows[0][C[r]].ToString()); } ```
null
CC BY-SA 4.0
null
2023-02-08T10:42:20.247
2023-02-08T10:42:20.247
null
null
5,752,604
null
75,384,774
2
null
75,372,538
0
null
I solved it on my own!!! Actually the problem was in the backend Springboot, ``` @GetMapping(path="/admin/inventory/search/{food_name}") public Inventory getFoodByName(@PathVariable String food_name) { Inventory foodname = inventoryService.findByFoodName(food_name); if(foodname == null) { throw new TodoNotFoundException("foodname - " + food_name); } return foodname; } ``` to, ``` @GetMapping(path="/admin/inventory/search/{food_name}") public List<Inventory> getFoodByName(@PathVariable String food_name) { Inventory foodname = inventoryService.findByFoodName(food_name); if(foodname == null) { throw new TodoNotFoundException("foodname - " + food_name); } List items = new ArrayList<>(); items.add(foodname); return items; } ``` so now my backend return a ArrayList, with which I can iterate using *ngFor and it is executing perfectly!!! sometimes I need to look a deep into everything to figure out the solution. I was thinking the problem was with the *ngFor!
null
CC BY-SA 4.0
null
2023-02-08T10:57:40.007
2023-02-08T10:57:40.007
null
null
7,490,334
null
75,384,849
2
null
75,092,228
0
null
There is a big chance that there is nothing related to formik, I was getting same error, because I had wrong import path for my globalConfig file.
null
CC BY-SA 4.0
null
2023-02-08T11:04:11.377
2023-02-08T11:04:11.377
null
null
16,942,798
null
75,384,914
2
null
75,384,557
0
null
You could use [System.Net.Http.HttpClient.](https://learn.microsoft.com/en-us/previous-versions/visualstudio/hh193681(v=vs.118)?redirectedfrom=MSDN). You will obviously need to edit the fake base address and request URI in the example below but this also shows a basic way to check the response status as well. ``` HttpClient client = new HttpClient(); client.BaseAddress = new Uri("http://localhost:8888/"); //Usage HttpResponseMessage response = client.GetAsync("api/importresults/1").Result; if (response.IsSuccessStatusCode){var dto = response.Content.ReadAsAsync<ImportResultDTO>().Result;} else{Console.WriteLine("{0} ({1})", (int)response.StatusCode, response.ReasonPhrase);} ```
null
CC BY-SA 4.0
null
2023-02-08T11:09:45.027
2023-02-08T11:09:45.027
null
null
10,921,222
null
75,385,345
2
null
75,385,096
0
null
First, your chart is a stacked area chart, i.e. `geom_density` with `stat="identity"` is equal to `geom_area`. Second, when adding labels via `geom_text` you have to take account of the `position` argument. As you use `position="fill"` for your density/area chart you also have to do the same for `geom_text`. As you provided no example data I created my own to make your issue reproducible: ``` library(ggplot2) library(forcats) set.seed(123) tydy_rawdata <- data.frame( names = rep(LETTERS[1:10], each = 6), timepoint = factor(seq(6)), tpm = runif(6 * 10, 0, 80) ) ggplot(data = tydy_rawdata, aes( x = timepoint, y = tpm, group = fct_inorder(names), fill = fct_inorder(names) )) + geom_area( position = "fill", color = "black" ) + geom_text(aes(label = names), position = "fill") ``` ![](https://i.imgur.com/fxTtvXc.png)
null
CC BY-SA 4.0
null
2023-02-08T11:45:56.373
2023-02-08T11:45:56.373
null
null
12,993,861
null
75,385,753
2
null
70,947,176
0
null
If the specified plugin version has not been downloaded you will get a such error. Gradle downloads it the next time you build your project or click: from the Android Studio menu bar. After this, your project will successfully build :) For more information refer to this [link](https://developer.android.com/studio/releases/gradle-plugin#jdk-11).
null
CC BY-SA 4.0
null
2023-02-08T12:24:04.673
2023-02-12T17:15:27.727
2023-02-12T17:15:27.727
7,699,617
14,190,081
null
75,385,906
2
null
74,191,324
1
null
I solved this by : 1. Adding in build.gradle: implementation 'androidx.appcompat:appcompat:1.4.1' ``` implementation 'com.google.android.material:material:1.5.0' ``` 1. adding android:exported="true" in Manifest
null
CC BY-SA 4.0
null
2023-02-08T12:38:50.687
2023-02-08T13:40:07.783
2023-02-08T13:40:07.783
14,280,462
14,280,462
null
75,386,283
2
null
70,791,568
1
null
I found an excellent answer to this issue. We can use Jetpack Compose bottom sheet over Android view using Kotlin extension. More details about how it works are [here](https://proandroiddev.com/jetpack-compose-bottom-sheet-over-android-view-using-kotlin-extension-7fecfa8fe369). Here is all code we need: ``` // Extension for Activity fun Activity.showAsBottomSheet(content: @Composable (() -> Unit) -> Unit) { val viewGroup = this.findViewById(android.R.id.content) as ViewGroup addContentToView(viewGroup, content) } // Extension for Fragment fun Fragment.showAsBottomSheet(content: @Composable (() -> Unit) -> Unit) { val viewGroup = requireActivity().findViewById(android.R.id.content) as ViewGroup addContentToView(viewGroup, content) } // Helper method private fun addContentToView( viewGroup: ViewGroup, content: @Composable (() -> Unit) -> Unit ) { viewGroup.addView( ComposeView(viewGroup.context).apply { setContent { BottomSheetWrapper(viewGroup, this, content) } } ) } @OptIn(ExperimentalMaterialApi::class) @Composable private fun BottomSheetWrapper( parent: ViewGroup, composeView: ComposeView, content: @Composable (() -> Unit) -> Unit ) { val TAG = parent::class.java.simpleName val coroutineScope = rememberCoroutineScope() val modalBottomSheetState = rememberModalBottomSheetState(ModalBottomSheetValue.Hidden) var isSheetOpened by remember { mutableStateOf(false) } ModalBottomSheetLayout( sheetBackgroundColor = Color.Transparent, sheetState = modalBottomSheetState, sheetContent = { content { // Action passed for clicking close button in the content coroutineScope.launch { modalBottomSheetState.hide() // will trigger the LaunchedEffect } } } ) {} BackHandler { coroutineScope.launch { modalBottomSheetState.hide() // will trigger the LaunchedEffect } } // Take action based on hidden state LaunchedEffect(modalBottomSheetState.currentValue) { when (modalBottomSheetState.currentValue) { ModalBottomSheetValue.Hidden -> { when { isSheetOpened -> parent.removeView(composeView) else -> { isSheetOpened = true modalBottomSheetState.show() } } } else -> { Log.i(TAG, "Bottom sheet ${modalBottomSheetState.currentValue} state") } } } } ```
null
CC BY-SA 4.0
null
2023-02-08T13:09:25.790
2023-02-08T13:09:25.790
null
null
14,455,214
null
75,387,083
2
null
75,381,333
0
null
Under `instance`, you must specify the server (`localhost`). The port is the default and you can omit it. ... and then read this [post](https://gis.stackexchange.com/questions/271308/database-connection-error-invalid-database-name/271310#271310) as it won't work with DB names not being lower-case
null
CC BY-SA 4.0
null
2023-02-08T14:17:26.247
2023-02-08T14:17:26.247
null
null
7,635,569
null
75,387,732
2
null
75,386,727
1
null
You need to install OpenCV in Anaconda. You can use the following steps: 1. Open Anaconda Prompt: Go to the Start menu and search for Anaconda Prompt. Right-click on it and select "Run as administrator". 2. Install OpenCV: To install OpenCV, run the following command: conda install -c conda-forge opencv. This will install the latest version of OpenCV from the conda-forge
null
CC BY-SA 4.0
null
2023-02-08T15:07:26.520
2023-02-08T15:07:26.520
null
null
16,482,455
null
75,387,818
2
null
75,384,119
0
null
The long numeric values (e.g. `"167582..."`) in your database screenshot do not look like a UID that any of the Firebase Authentication providers would generate. Add this code right before you query the database: ``` print(FirebaseAuth.instance.currentUser!.uid) ``` This will show you the value that you're querying for, which (given my opening statement) probably looks quite different from the value in your database. If that is indeed the case, the problem starts when you the document. At that point you'll want to make sure that you write the value of `FirebaseAuth.instance.currentUser!.uid` to the `id` field.
null
CC BY-SA 4.0
null
2023-02-08T15:13:19.410
2023-02-08T15:13:19.410
null
null
209,103
null
75,387,994
2
null
75,387,864
0
null
You can't invoke click on an element within using [Selenium](https://stackoverflow.com/a/54482491/7429447) as `@hayatoito` (creator of Shadow DOM) in his [comment](https://github.com/w3c/webcomponents/issues/378#issuecomment-179596975) clearly mentioned: > The original motivation of introducing a closed shadow tree is `"Never allow an access to a node in a closed shadow tree, via any APIs, from outside"`, AFAIK. Like that we can not access a node in the internal hidden shadow tree which is used in `<video>` element, in Blink. > In fact, I designed a closed shadow tree in such a way. If there is a way to access a node in a closed shadow tree, it should be considered as a bug of the spec. > I think it's totally okay to have an API to allow an access in the layer of Chrome apps or extensions. However, for a normal web app, I think the current agreement is `"Never allow it"`. > If we allowed it, that means we do not need a closed shadow tree. Just having an open shadow tree is enough, I think.
null
CC BY-SA 4.0
null
2023-02-08T15:25:26.100
2023-02-08T15:25:26.100
null
null
7,429,447
null
75,388,102
2
null
67,584,967
0
null
This solved it for me: ``` npm link @angular/cli ``` In my case, I looked in the `node_modules` folder, and angular seemeded to be there, but the `ng` command was still not available. the command above fixed that for me. I also tried to delete the entire `node_modules` folder and redo the `npm install` but this did not solve it.
null
CC BY-SA 4.0
null
2023-02-08T15:33:02.207
2023-02-08T15:33:02.207
null
null
505,558
null
75,388,279
2
null
75,369,211
0
null
Instead of having branching inside the `Returns` try to create two `Setup`s ``` actionsProvider .Setup(x => x.GetDelegateByCommandNameWithoutParams(testCommand)) .Returns(Delegate.CreateDelegate(typeof(Func<int>), typeof(ExecuteCodeLinesCommandTests).GetMethod(testMethod))); ``` ``` actionsProvider .Setup(x => x.GetDelegateByCommandNameWithoutParams(testCommand2)) .Returns(Delegate.CreateDelegate(typeof(Func<int, int, int, int>), typeof(ExecuteCodeLinesCommandTests).GetMethod(testMethod2))); ``` If your default mock behaviour is [loose](https://docs.educationsmediagroup.com/unit-testing-csharp/moq/mock-customization) then you will receive `null` for non-matching method calls. ()
null
CC BY-SA 4.0
null
2023-02-08T15:46:51.703
2023-02-08T15:46:51.703
null
null
13,268,855
null
75,388,359
2
null
75,388,218
-1
null
``` <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> <table class="table table-striped table-hover responsive" style="width:100%"> <thead> <th>Col1</th> <th>Col2</th> <th>Col3</th> <th>Col4</th> <th>Col5</th> <th>Col6</th> </thead> <tbody> <tr> <td>hi 1</td> <td>hi 2</td> <td>hi 3</td> <td>hi 4</td> <td>hi 5</td> <td>hi 6</td> </tr> <tr> <td>hi 1</td> <td>hi 2</td> <td>hi 3</td> <td>hi 4</td> <td>hi 5</td> <td>hi 6</td> </tr> </tbody> </table> ```
null
CC BY-SA 4.0
null
2023-02-08T15:53:00.293
2023-02-08T15:53:00.293
null
null
8,026,592
null
75,388,535
2
null
75,387,256
0
null
You can provide tab item look on Container decoration like ``` class FA extends StatefulWidget { const FA({super.key}); @override State<FA> createState() => _FAState(); } class _FAState extends State<FA> with SingleTickerProviderStateMixin { late final controller = TabController(length: 3, vsync: this) ..addListener(() { setState(() {}); }); @override Widget build(BuildContext context) { return Scaffold( body: TabBar( controller: controller, isScrollable: true, unselectedLabelStyle: TextStyle(color: Colors.black), unselectedLabelColor: Colors.transparent, indicator: BoxDecoration(), indicatorPadding: EdgeInsets.zero, // splashBorderRadius: , tabs: [ Tab( iconMargin: EdgeInsets.zero, child: Container( decoration: BoxDecoration( color: controller.index == 0 ? Colors.black : Color.fromARGB(255, 164, 164, 164), borderRadius: BorderRadius.circular(16)), padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12), child: Text( "All", textAlign: TextAlign.center, style: TextStyle( color: controller.index == 0 ? Colors.white : Colors.black, ), ), ), ), Tab( iconMargin: EdgeInsets.zero, child: Container( decoration: BoxDecoration( color: controller.index == 1 ? Colors.black : Color.fromARGB(255, 164, 164, 164), borderRadius: BorderRadius.circular(16)), padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12), child: Text( "Next btn", textAlign: TextAlign.center, style: TextStyle( color: controller.index == 1 ? Colors.white : Colors.black, ), ), ), ), ], ), ); } } ```
null
CC BY-SA 4.0
null
2023-02-08T16:04:59.050
2023-02-08T16:04:59.050
null
null
10,157,127
null
75,388,572
2
null
75,388,245
0
null
Just like `isherwood` mentioned, this is an HTML/CSS issue. - `styleName``className`- `black-area` I created this [CodeSandbox](https://codesandbox.io/s/green-line-with-marker-f7e3he?file=/src/App.js) with the answer. You can change the inline `style` to control the positioning of the `black-area`
null
CC BY-SA 4.0
null
2023-02-08T16:07:43.540
2023-02-08T16:07:43.540
null
null
1,481,519
null
75,388,625
2
null
75,388,218
-2
null
1- THs needs to be inside a TR (table row) 2- TH and TD needs to match (use colspan to match if you don't have the relative TD). ``` <tbody> <thead> <tr> <th>Col1</th> <th>Col2</th> <th>Col3</th> <th>Col4</th> <th>Col5</th> <th>Col6</th> </tr> </thead> <tbody> <tr id="others"> <td colspan="6"></td> </tr> </tbody> </tbody> ```
null
CC BY-SA 4.0
null
2023-02-08T16:12:38.940
2023-02-08T16:12:38.940
null
null
1,000,137
null
75,388,691
2
null
68,558,081
0
null
The error points out that it has issues connecting to the Android emulator. Checking the `flutter doctor` logs, the emulator doesn't seem to appear. Try restarting the emulator using cold boot. Open the Android Device Manager and click on `Cold Boot Now` on the emulated device. Then run `flutter doctor --verbose` to check if the emulator can now be seen in the list of connected devices. [](https://i.stack.imgur.com/gfVP9l.png)
null
CC BY-SA 4.0
null
2023-02-08T16:17:56.057
2023-02-08T16:17:56.057
null
null
2,497,859
null
75,389,023
2
null
75,389,022
1
null
For single relationships set, then you can do the following (assuming a top-bottom relationship as: `organization -> teams` and `teams -> projects` ``` const supabase = createClient(SUPABASE_URL, SUPABASE_KEY); const { data: ret, error } = await supabase .from('organization') .select(`*, teams(*, projects(products) ) `); console.log(JSON.stringify(ret)); ``` In this case, it would not be possible and you would get the following error: > Could not embed because more than one relationship was found for 'organization' and 'teams' In this case, you can pick the relationship when calling supabase with either: `teams!projects` or `teams!teams_org_name_fkey`. The former is preferred for most cases. ``` const supabase = createClient(SUPABASE_URL, SUPABASE_KEY); const { data: ret, error } = await supabase .from('organization') .select(`*, teams!projects(*, projects(products) ) `); ``` ## Output: > [{"org_name":"Contoso","teams":[{"org_name":"Contoso","team_name":"Contoso Café","projects":[{"products":{"Dairy":"latte","coffee":["french press","expresso","cold brew"]}}]}]}]
null
CC BY-SA 4.0
null
2023-02-08T16:45:39.903
2023-02-08T16:45:39.903
null
null
2,188,186
null
75,389,373
2
null
68,665,420
0
null
Try go to the line where latest traceback shows and check if the import statement is ok. In my case I did ``` from pyqt5_plugins.examplebuttonplugin import QtGui ``` and when I correct it to ``` from PyQt5 import QtGui ``` It works.
null
CC BY-SA 4.0
null
2023-02-08T17:13:51.910
2023-02-08T17:13:51.910
null
null
21,174,460
null
75,389,381
2
null
75,389,184
1
null
You could split the data into step 1 and step 2, then perform a left join: ``` library(tidyverse) df %>% filter(step == "step2") %>% rename(step2 = site) %>% select(-step) %>% left_join(df %>% filter(step == "step1") %>% rename(step1 = site) %>% select(-step, -end_point), by = "product_code") %>% select(product_code, step1, step2, end_point) #> product_code step1 step2 end_point #> 1 000001 Plant1 DC_Frankfurt F6_DC_Bordeaux #> 2 000001 Plant1 DC_Frankfurt B3_Paris #> 3 000002 Plant2 DC_Frankfurt BEAG_Toronto ``` [reprex v2.0.2](https://reprex.tidyverse.org)
null
CC BY-SA 4.0
null
2023-02-08T17:14:42.323
2023-02-08T17:14:42.323
null
null
12,500,315
null
75,389,584
2
null
75,379,301
1
null
It turns out that `{ggraph}` will accept an igraph layout in its initial call, giving me the desired layout transpose. Graph & layout objects are copied from OP. ``` # dependencies library(dplyr) #> #> Attaching package: 'dplyr' #> The following objects are masked from 'package:stats': #> #> filter, lag #> The following objects are masked from 'package:base': #> #> intersect, setdiff, setequal, union library(stringr) library(ggplot2) library(igraph) #> #> Attaching package: 'igraph' #> The following objects are masked from 'package:dplyr': #> #> as_data_frame, groups, union #> The following objects are masked from 'package:stats': #> #> decompose, spectrum #> The following object is masked from 'package:base': #> #> union library(tidygraph) #> #> Attaching package: 'tidygraph' #> The following object is masked from 'package:igraph': #> #> groups #> The following object is masked from 'package:stats': #> #> filter library(ggraph) # edgelist df_graph <- tibble::tibble(from = rep("parent", 8), to = stringr::str_c("child ", letters[1:8])) # igraph g_igraph <- igraph::graph_from_data_frame(df_graph, directed = FALSE) l_igraph <- igraph::layout_as_tree( g_igraph, root = igraph::get.vertex.attribute(g_igraph, "name") %>% stringr::str_detect(., "parent") %>% which(.) ) %>% .[, 2:1] # tidygraph / ggraph g_tidy <- tidygraph::as_tbl_graph(g_igraph) # ggraph top-down tree l_tidy <- ggraph::create_layout( g_tidy, layout = 'tree', root = igraph::get.vertex.attribute(g_tidy, "name") %>% stringr::str_detect(., "parent") %>% which(.) ) # undesired top-down layout ggraph::ggraph(l_tidy) + ggraph::geom_edge_link() + ggraph::geom_node_point() ``` ![](https://i.imgur.com/jBll78C.png) ``` # desired transpose layout ggraph::ggraph(graph = g_tidy, layout = l_igraph) + ggraph::geom_edge_link() + ggraph::geom_node_point() ``` ![](https://i.imgur.com/MdhAze5.png) [reprex v2.0.2](https://reprex.tidyverse.org)
null
CC BY-SA 4.0
null
2023-02-08T17:29:01.983
2023-02-08T17:29:01.983
null
null
9,806,500
null
75,389,592
2
null
18,782,637
0
null
If it not working you have a second option by using terminal. 1. Click on 'actions' 2. choose 'open command prompt ' 3. and execute the command ' git push'
null
CC BY-SA 4.0
null
2023-02-08T17:29:34.267
2023-02-08T17:29:34.267
null
null
18,020,401
null
75,389,828
2
null
75,373,862
0
null
Your question isn't very clear, but I think there is no better solution than: First, containing the array (here: `'polizias'`), or even the whole file. And then, do whatever you want in your code with this array, which became a . --- Example: ``` import firebase_admin from firebase_admin import credentials, firestore cred = credentials.Certificate(_auth_data) firebase_admin.initialize_app(cred) db = firestore.client() # doc is a DocumentReference doc = db.collection('MyCollection').document('MyDoc') # first get() returns a DocumentSnapshot, second returns any field polizas = doc.get().get('polizas') # polizas now is a list of dicts # read any field or iterate as you want print(polizas[0]['numeroPoliza']) for pol in polizas: print(pol['numeroPoliza']) ```
null
CC BY-SA 4.0
null
2023-02-08T17:50:42.157
2023-02-08T17:50:42.157
null
null
8,721,169
null
75,389,953
2
null
23,674,131
0
null
I solved this problem by changing the phat of the debug.keystore, the correct phat must be the phat of your Android project file. Like this: ``` keytool -exportcert -alias androiddebugkey -keystore "C:\Users\yourUser\Documents\other\yourProjectName\android\app\debug.keystore" | "C:\openssl\openssl-3\x64\bin\openssl" sha1 -binary | "C:\openssl\openssl-3\x64\bin\openssl" base64 ``` if you don't know how to get the phat of openSSL I recommend you this video on youtube: [https://youtu.be/aZlkW3Evlx4](https://youtu.be/aZlkW3Evlx4)
null
CC BY-SA 4.0
null
2023-02-08T18:03:31.710
2023-02-08T18:03:31.710
null
null
14,187,887
null
75,390,137
2
null
75,368,786
1
null
Sorry, but our IDE only has editor features such as insight/completion implemented for Oracle Database. While you can use SQL Developer to connect to MySQL, that is only so you can migrate said MySQL instance over to a Oracle Database.
null
CC BY-SA 4.0
null
2023-02-08T18:20:37.517
2023-02-08T18:20:37.517
null
null
1,156,452
null
75,390,176
2
null
75,388,741
0
null
I'm going to answer you questions by describing a good architecture to perform what you are describing. This is designed to be used in a secure production environment. Requirement: Allow a remote user to start a process on the server to perform some task. (You may have other requirements, but at this point all you have given is this one requirement.) Implementation hardware: - Secure and locked down web server.- Secure and locked down application server- Secure and locked down database server (only be connected to via web and application server Note, you can run more than one of these on the same physical or virtual server but the processes should be run as different service accounts (users) which have rights to only the resources they need to perform their function. Data Model - one or more tables which describe the action which needs to take place (for example run example.exe)- one or more tables which describe pending actions to perform (for example, perform an action described in the action table now or in the future) Use case / Process flow 1. User connects to website and requests an action be taken (run example.exe) -- this will typically be selected from a list of allowed actions stored in the DB 2. Website updates the pendingactions table to include information about this request (who asked and when it needs to be run) 3. User interaction is done. 4. On the application server (NOT THE WEB SERVER) an agent is checking for actions to perform. That agent sees it needs to run the program -- it does so. -> Program has been run. OK -- you are probably looking at this and saying "why"? The importance here is creating a secure environment. The user is never running or using code that runs other code on the server. The user can only pick from a list of "approved" actions -- they don't enter the name of the program. When the program is run it is run in a different context, by a different service account, that has different rights. --- You probably noticed this is VERY different than the implementation design you described. This is why I made my comment. No programmer who has a good understanding of secure architecture would ever implement the design you describe. It is very likely such a design would be hacked easily.
null
CC BY-SA 4.0
null
2023-02-08T18:24:55.560
2023-02-08T18:30:22.307
2023-02-08T18:30:22.307
215,752
215,752
null
75,390,221
2
null
75,389,184
1
null
We could do this with `pivot_wider` and `fill` ``` library(dplyr) library(tidyr) df %>% pivot_wider(names_from = 'step', values_from = 'site') %>% fill(starts_with('step'), .direction = 'downup') %>% filter(step2 != end_point) %>% relocate(end_point, .after = last_col()) ``` -output ``` # A tibble: 3 × 4 product_code step1 step2 end_point <chr> <chr> <chr> <chr> 1 000001 Plant1 DC_Frankfurt F6_DC_Bordeaux 2 000001 Plant1 DC_Frankfurt B3_Paris 3 000002 Plant1 DC_Frankfurt BEAG_Toronto ```
null
CC BY-SA 4.0
null
2023-02-08T18:28:12.953
2023-02-08T18:28:12.953
null
null
3,732,271
null
75,390,294
2
null
73,054,380
0
null
this error mostly because you have 2 compiler path. that's mean you have installed mingW separately and with Qt installation. as you can see in your error codes Qt run the moc from this mingW path(C:\Qt\6.3.1...) and then it try to compile the app from other mingW compiler path(C:/MingW/...) the solution is to remove the other mingW (that you install separately) from your variable path completely or just simply change the name of the other mingW folder to some thing else like mingWX that the Qt can not found it.
null
CC BY-SA 4.0
null
2023-02-08T18:34:48.417
2023-02-08T18:34:48.417
null
null
12,113,636
null
75,390,438
2
null
75,390,359
0
null
Add `style="text-align: center;"` to the container div. ``` <div class="d-grid gap-2 col-6 mx-auto" style="text-align: center;"> <a class="btn btn-primary d-flex align-items-center" type="button" style="height: 200px;margin-bottom: 150px;font-size: 3rem; text-align: center; font-weight: bold;" href="all-listings.html"> Browse All Listings</a> </div> ```
null
CC BY-SA 4.0
null
2023-02-08T18:50:52.397
2023-02-08T18:50:52.397
null
null
2,817,442
null
75,390,453
2
null
75,390,359
0
null
You can use a button that acts as a link instead. ``` <button class="btn btn-primary" style="height: 200px; margin-bottom: 150px; font-size: 3rem; font-weight: bold;" onclick="window.location.href = 'all-listings.html';"> Browse All Listings </button> ```
null
CC BY-SA 4.0
null
2023-02-08T18:52:04.110
2023-02-08T18:52:04.110
null
null
13,419,834
null
75,390,468
2
null
75,390,359
0
null
Bootstrap buttons already have their text centered by default so you should be able to just apply the class `btn btn-primary` and it should do. No need to add anything else, just check that you're not overwriting the bootstrap styles with your own styles. For more info check the documentation on the bootstrap [website](https://getbootstrap.com/docs/4.3/components/buttons/).
null
CC BY-SA 4.0
null
2023-02-08T18:53:53.267
2023-02-08T18:53:53.267
null
null
21,172,353
null
75,390,491
2
null
75,390,359
0
null
``` <a class="btn btn-primary text-center" type="button" style="height: 200px;margin-bottom: 150px;font-size: 3rem; font-weight: bold;" href="all-listings.html"> Browse All Listings</a> ``` [You can use text utility within bootstrap](https://getbootstrap.com/docs/5.3/utilities/text/)
null
CC BY-SA 4.0
null
2023-02-08T18:56:04.600
2023-02-08T18:58:08.877
2023-02-08T18:58:08.877
13,739,605
13,739,605
null
75,390,513
2
null
74,917,220
1
null
Per others, yes include data and code so the error is reproducible. I just had this issue when I updated R and packages - not sure if it was a new version of summarytools or something else. Make sure the columns you will use in ctable are factor. Not sure if yours are character. I was having this problem because my columns were numeric. Something like (using dplyr): ``` elsa <- elsa %>% mutate( sex = factor(sex), heart_attack = factor(heart_attack) ) ctable(elsa$sex,elsa$heart_attack) ``` Good luck!
null
CC BY-SA 4.0
null
2023-02-08T18:58:45.773
2023-02-10T14:09:38.283
2023-02-10T14:09:38.283
11,932,936
12,286,848
null
75,390,539
2
null
75,384,278
0
null
I'm not sure why the native title bar mode is showing up for you with light mode colouring. Supposedly, you can switch to dark mode on the GNOME desktop environment with the following: ``` gsettings set org.gnome.desktop.interface gtk-theme Adwaita-dark ``` (or whatever other dark mode theme is available on your machine) But if that doesn't work, you can get colouring consistent with your selected colour theme in VS Code by putting this in your settings.json: ``` "window.titleBarStyle": "custom", ``` The description for that setting: > Adjust the appearance of the window title bar. On Linux and Windows, this setting also affects the application and context menu appearances. Changes require a full restart to apply.
null
CC BY-SA 4.0
null
2023-02-08T19:01:20.037
2023-02-08T19:01:20.037
null
null
11,107,541
null
75,390,684
2
null
19,720,376
0
null
I just implemented OSXMETADATA in Python to copy OSX finder tags [https://pypi.org/project/osxmetadata/](https://pypi.org/project/osxmetadata/)
null
CC BY-SA 4.0
null
2023-02-08T19:14:51.233
2023-02-08T19:14:51.233
null
null
238,898
null
75,390,989
2
null
75,388,685
0
null
If it is difficult to understand the `PIVOT` and `UNPIVOT` operators, simply use `UNION` and `GROUP BY` to implement the same. Create your original pivoted table ``` CREATE TABLE pivot ( legendary nvarchar(10), dragon int, psychic int, fire int ); ``` Insert the records ``` INSERT INTO pivot values ('false',20,43,47), ('true',12,14,15); ``` Original table output ``` SELECT * FROM pivot; ``` [](https://i.stack.imgur.com/gGfbG.png) Create Unpivot table using the `UNION` operator. ``` CREATE TABLE unpivot AS SELECT legendary, 'dragon' AS type1, dragon AS value FROM pivot UNION SELECT legendary, 'psychic' AS type1, psychic AS value FROM pivot UNION SELECT legendary, 'fire' AS type1, fire AS value FROM pivot ORDER BY type1; ``` Query unpivot output ``` SELECT * FROM unpivot; ``` [](https://i.stack.imgur.com/1se9G.png) Pivoting back using the `UNION` and `GROUP BY` operators. ``` CREATE TABLE pivot AS SELECT legendary, MAX(dragon) AS dragon, MAX(psychic) AS psychic, MAX(fire) AS value FROM ( SELECT legendary, value AS dragon, NULL AS psychic, NULL AS fire FROM unpivot WHERE type1='dragon' UNION SELECT legendary, NULL AS dragon, value AS psychic, NULL AS fire FROM unpivot WHERE type1='psychic' UNION SELECT legendary, NULL AS dragon, NULL AS psychic, value AS fire FROM unpivot WHERE type1='fire' )set_union GROUP BY legendary; ``` Query pivot output ``` SELECT * FROM pivot; ``` Output [](https://i.stack.imgur.com/vgnAM.png) Hope this helps :)
null
CC BY-SA 4.0
null
2023-02-08T19:44:04.067
2023-02-12T00:34:11.013
2023-02-12T00:34:11.013
14,015,737
9,989,794
null
75,391,077
2
null
75,389,607
1
null
I tried to understand your problem. So you want to the dropdown show when user type $ and follow your cursor when you type or click on the input. You can use the `selectionStart` to know the cursor position on the input. With your example : ``` import { useState, useRef } from 'react'; export default function App() { const [value, setValue] = useState(''); const [show, setShow] = useState(false); const [cursor, setCursor] = useState(0); const ref = useRef(null); const calculatePosition = position => Math.min(position, 22) * 8; const handleChange = e => { setValue(e.target.value); if (e.target.value === '' || !e.target.value.includes('$')) setShow(false); // If is empty or havent $ when change disable the dropdown else if (e.nativeEvent.data === '$') setShow(true); }; const handlePosition = e => setCursor(calculatePosition(e.target.selectionStart)); // Get cursor position in the input const handleFocus = e => (e.target.value !== '' && e.target.value.includes('$') ? setShow(true) : null); // Show the dropdown if isn't empty and have $ return ( <div className='App'> <input ref={ref} value={value} onChange={handleChange} onClick={handlePosition} onKeyDown={handlePosition} onFocus={handleFocus} onBlur={() => setShow(false)} // If focus is lose hide the dropdown /> {show && ( <div style={{ width: '210px', height: '210px', background: 'pink', marginLeft: cursor + 'px', position: 'absolute', left: '2px', }} > -DropDown- </div> )} </div> ); } ```
null
CC BY-SA 4.0
null
2023-02-08T19:53:42.450
2023-02-08T19:53:42.450
null
null
19,694,359
null
75,391,178
2
null
75,391,068
0
null
You're not calling the `write` function you think you are. When you wrote `from pyautogui import *`, the global name `write` was bound to `pyautogui.write`. But the `os` module exports a `write` function, and `from os import *` redefined the name `write`. ``` >>> from pyautogui import * >>> write <function typewrite at 0x104c585e0> >>> from os import * >>> write <built-in function write> ``` Don't use `from ... import *`; just import the module and use qualified names like ``` import pyautogui ... pyautogui.write(...) ``` or import the names you expect to use expicitly. ``` from pyautogui import write ... write(...) ``` That way, if you do write `from os import write`, it should be more obvious that you have introduced a name collision.
null
CC BY-SA 4.0
null
2023-02-08T20:04:38.030
2023-02-08T20:15:52.920
2023-02-08T20:15:52.920
1,126,841
1,126,841
null
75,391,195
2
null
75,293,149
0
null
I just ran into the same issue. Was able to get around it running the cell with a regular pip install twice in succession: pip install pycaret
null
CC BY-SA 4.0
null
2023-02-08T20:06:38.540
2023-02-08T20:06:38.540
null
null
20,986,911
null
75,391,228
2
null
44,182,094
0
null
The answer from @Dejan Atanasov but for Swift 5 ``` extension MainLobbyVC: UICollectionViewDelegateFlowLayout { func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { let width : CGFloat let height : CGFloat if indexPath.item == 0 { width = 100 height = 100 } else { width = 50 height = 50 } return CGSizeMake(width, height) } } ```
null
CC BY-SA 4.0
null
2023-02-08T20:10:09.553
2023-02-08T20:10:09.553
null
null
2,398,612
null
75,391,246
2
null
75,389,600
0
null
Those values are derived within the framework. In case you want to calculate values yourself, `final color = ElevationOverlay.applySurfaceTint(color, surfaceTint, elevation);` Here color would be background color, surfaceTint is defined in colorScheme and elevation would be 1-5. You will get the resultant color. But... The way it should be used is by using Material widget as parent with providing MaterialType to that Material Widget. More info could be found here in source code [https://github.com/flutter/flutter/blob/198a51ace9d4a7d79ec01e64d48f8fc6e37fb9d7/packages/flutter/lib/src/material/material.dart#L504](https://github.com/flutter/flutter/blob/198a51ace9d4a7d79ec01e64d48f8fc6e37fb9d7/packages/flutter/lib/src/material/material.dart#L504)
null
CC BY-SA 4.0
null
2023-02-08T20:12:05.407
2023-02-08T20:12:05.407
null
null
16,569,443
null
75,391,270
2
null
4,032,380
0
null
These are the equations that work for 0-255 colors. Here they are [in C](https://gist.github.com/MurageKibicho/ee001d6fa67d9f43372291e5511fd60a) RGB to YCBCR ``` y = 0.299* (r) + 0.587 * (g) + 0.114* (b); cb= 128 - 0.168736* (r) - 0.331364 * (g) + 0.5* (b); cr= 128 + 0.5* (r) - 0.418688 * (g) - 0.081312* (b); ``` YCBCR to RGB ``` r = (y) + 1.402 * (cr -128); g = (y) - 0.34414 * (cb - 128) - 0.71414 * (cr - 128); b = (y) + 1.772 * (cb - 128); ```
null
CC BY-SA 4.0
null
2023-02-08T20:14:20.797
2023-02-08T20:14:20.797
null
null
13,035,630
null
75,391,616
2
null
75,390,482
0
null
## HStack Groups of Data (VBA) [](https://i.stack.imgur.com/MsTGA.jpg) ``` Option Explicit Sub HStackGroups() Const SRC_NAME As String = "Sheet1" Const SRC_FIRST_CELL As String = "B2" Const DST_NAME As String = "Sheet2" Const DST_FIRST_CELL As String = "B2" Const UNIQUE_COLUMN As Long = 1 Const COLUMN_GAP As Long = 1 Dim wb As Workbook: Set wb = ThisWorkbook ' workbook containing this code Dim sws As Worksheet: Set sws = wb.Sheets(SRC_NAME) Dim srg As Range: Set srg = sws.Range(SRC_FIRST_CELL).CurrentRegion Dim hData(): hData = srg.Rows(1).Value Dim cCount As Long: cCount = srg.Columns.Count Dim srCount As Long: srCount = srg.Rows.Count - 1 ' no headers Dim sData(): sData = srg.Resize(srCount).Offset(1).Value Dim dict As Object: Set dict = CreateObject("Scripting.Dictionary") Dim sr As Long, drCount As Long, srString As String For sr = 1 To srCount srString = CStr(sData(sr, UNIQUE_COLUMN)) If Not dict.Exists(srString) Then Set dict(srString) = New Collection End If dict(srString).Add sr If dict(srString).Count > drCount Then drCount = dict(srString).Count Next sr drCount = drCount + 1 ' 1 for headers Dim dCount As Long: dCount = cCount + COLUMN_GAP Dim dcCount As Long dcCount = dict.Count * dCount - COLUMN_GAP Dim dData(): ReDim dData(1 To drCount, 1 To dcCount) Dim Coll, Item, sc As Long, d As Long, dr As Long, dc As Long For Each Coll In dict.Items dc = d * dCount For sc = 1 To cCount dData(1, dc + sc) = hData(1, sc) Next sc dr = 1 For Each Item In Coll dr = dr + 1 For sc = 1 To cCount dData(dr, dc + sc) = sData(Item, sc) Next sc Next Item d = d + 1 Next Coll Dim dws As Worksheet: Set dws = wb.Sheets(DST_NAME) Dim dfCell As Range: Set dfCell = dws.Range(DST_FIRST_CELL) Dim drg As Range: Set drg = dfCell.Resize(drCount, dcCount) With dfCell .Resize(dws.Rows.Count - .Row + 1, dws.Columns.Count - .Column + 1) _ .Clear End With drg.Value = dData drg.EntireColumn.AutoFit MsgBox "Groups hstacked.", vbInformation End Sub ```
null
CC BY-SA 4.0
null
2023-02-08T20:52:05.447
2023-02-08T21:13:26.173
2023-02-08T21:13:26.173
9,814,069
9,814,069
null
75,391,640
2
null
75,228,810
0
null
You can change the agenda background color by modifying the value of `reservationsBackgroundColor` inside your `theme` object. Here is an example : ``` theme = { { reservationsBackgroundColor: "#000000", } } ```
null
CC BY-SA 4.0
null
2023-02-08T20:54:29.540
2023-02-08T20:54:29.540
null
null
18,224,492
null
75,391,798
2
null
28,385,172
0
null
Selecting a different build variant (in the Build Variants view), then reselecting the initial build variant, fixed this issue for me.
null
CC BY-SA 4.0
null
2023-02-08T21:13:42.810
2023-02-08T21:13:42.810
null
null
369,722
null
75,391,824
2
null
75,391,764
0
null
I managed to find a solution: ``` <style> img[alt~="top-right"] { position: absolute; top: 30px; right: 30px; } </style> <style> img[alt~="bottom-right"] { position: absolute; top: 400px; right: 0px; } </style> ![top-right](image.png) ![bottom-right](image.png) ```
null
CC BY-SA 4.0
null
2023-02-08T21:16:20.147
2023-02-08T21:16:20.147
null
null
15,076,203
null
75,392,000
2
null
75,385,858
0
null
Step one is to save your table from Excel to a . I strongly recommend ( "") because you never know when your input will deliberately have spaces in any of the fields. . You would need to to automatically save the *.CSV file with a constantly reused file name (i.e. ). Then, again using the macro, tell the OS to run the script with the required parameters. - [This](https://support.microsoft.com/en-us/office/quick-start-create-a-macro-741130ca-080d-49f5-9471-1e5fb3d581a8)- [This](https://excelchamps.com/vba/run-macro/)- [This](https://stackoverflow.com/questions/17956651/execute-a-command-in-command-prompt-using-excel-vba) will generate the two files indicated: ``` #!/bin/bash DBG=0 input="" while [ $# -gt 0 ] do case $1 in --debug ) DBG=1 ; shift ;; --input ) input="${2}" ; shift ; shift ;; --strAlt ) strAlt="${2}" ; shift ; shift ;; * ) echo "\n Invalid option use on command line. Only valid options: [ --debug | --input {inputfile} ]\n Bye!\n" ; exit 1 ;; esac done if [ -z "${input}" ] then echo -e "\n DEMO RUN ..." input=iddnx.csv cat >"${input}" <<"EnDoFiNpUt" uiddn|nIds uid=uid12345,cn=abc,cn=def,dc=xyx|7_54321 uid=uid6789,cn=abc,cn=def,dc=xyx|5_9876 EnDoFiNpUt strAlt="cn=ghk,cn=klm,cn=opu" fi if [ -z "${strAlt}" ] then echo -e "\n ERROR - missing option '--strAlt' requires string value to be specified!\n Bye!\n" ; exit 1 fi output1="removenid.ldif" output2="groupremoval.ldif" awk -v dbg=${DBG} -v altStr="${strAlt}" -v f1="${output1}" -v f2="${output2}" 'BEGIN{ ## Initial loading of the report reference index file into an array for tabulation split( "", dataload ); indexR=0 ; if( dbg == 1 ){ printf("\n\t --- %s\n", "PHASE 1" ) | "cat >&2" ; } ; } { if( $0 != "" ){ indexR++ ; split( $0, datline, "|" ); if( dbg == 1 ){ printf("\n\t --- %s\n", $0 ) | "cat >&2" ; } ; dataload[indexR,1]=datline[1] ; if( dbg == 1 ){ printf("\t --- datline[1] = %s\n", datline[1] ) | "cat >&2" ; } ; dataload[indexR,2]=datline[2] ; if( dbg == 1 ){ printf("\t --- datline[2] = %s\n", datline[2] ) | "cat >&2" ; } ; if( indexR == 1 ){ typeHdr=datline[2] ; } ; } ; } END{ if( dbg == 1 ){ printf("\n\t --- %s\n", "PHASE 2" ) | "cat >&2" ; } ; for( i=2 ; i<=indexR ; i++ ){ #dn: uid=uid12345,cn=abc,cn=def,dc=xyx #changetype: modify #delete: nIds #nIds: 7_54321 #- printf("dn: %s\nchangetype: modify\ndelete: %s\n%s: %s\n-\n\n", dataload[i,1], typeHdr, typeHdr, dataload[i,2] ) >f1 ; } ; for( i=2 ; i<=indexR ; i++ ){ split( dataload[i,1], tmp, "," ) ; #dn: cn=ghk,cn=klm,cn=opu,dc=xyx #changetype: modify #delete: member #member: uid=uid12345,cn=abc,cn=def,dc=xyx # printf("dn: %s,%s\nchangetype: modify\ndelete: member\nmember: %s\n\n", altStr, tmp[4], dataload[i,1] ) >f2 ; } ; }' "${input}" echo -e "\nLDIF files generated:" ls -l "${output1}" "${output2}" echo -e "\nContents of '${output1}':\n" cat "${output1}" echo -e "\nContents of '${output2}':\n" cat "${output2}" ``` Using the command line: ``` script.sh --input iddnx.csv --strAlt "cn=ggg,cn=kkk,cn=ppp" ``` You will get the following output: ``` LDIF files generated: -rw-rw-r-- 1 ericthered ericthered 217 Feb 8 16:35 groupremoval.ldif -rw-rw-r-- 1 ericthered ericthered 172 Feb 8 16:35 removenid.ldif Contents of 'removenid.ldif': dn: uid=uid12345,cn=abc,cn=def,dc=xyx changetype: modify delete: nIds nIds: 7_54321 - dn: uid=uid6789,cn=abc,cn=def,dc=xyx changetype: modify delete: nIds nIds: 5_9876 - Contents of 'groupremoval.ldif': dn: cn=ggg,cn=kkk,cn=ppp,dc=xyx changetype: modify delete: member member: uid=uid12345,cn=abc,cn=def,dc=xyx dn: cn=ggg,cn=kkk,cn=ppp,dc=xyx changetype: modify delete: member member: uid=uid6789,cn=abc,cn=def,dc=xyx ```
null
CC BY-SA 4.0
null
2023-02-08T21:37:19.983
2023-02-08T21:50:52.653
2023-02-08T21:50:52.653
9,716,110
9,716,110
null
75,392,170
2
null
75,392,076
0
null
could you share the link to the source where you downloaded MySQL? Usually you should be able to unzip the contents of any .zip file by right clicking the archive in a explorer and choosing extract (not sure what the exact buttons in Windows are called since I don't use it). Maybe your file got corrupted while you downloaded it (connection issues), have you tried re-downloading it? I've just searched for the download and started it from the official website ([https://cdn.mysql.com//Downloads/MySQLInstaller/mysql-installer-community-8.0.32.0.msi](https://cdn.mysql.com//Downloads/MySQLInstaller/mysql-installer-community-8.0.32.0.msi)). This starts the download of an .msi file in my case. Can you confirm that this still starts the download of a .zip file?
null
CC BY-SA 4.0
null
2023-02-08T21:59:27.637
2023-02-08T21:59:27.637
null
null
20,967,855
null
75,393,072
2
null
75,380,023
1
null
There is no universal mapping from UML to C++, because there are many ways to implement a design intent. In the case of the derived attribute, there are three frequently used strategies: - use a getter that derives (computes) the value when it is needed:``` class Professor { public: … int getSalary() const { // some computation, e.g: return salaryScale(yearsOfService)+numberOfClasses*CLASS_BONUS; } … }; ``` - use an attribute, and update it with the computation, every-time a parameter changes. This is however only reliable if the computation depends only on private members and is difficult to maintain:``` class Professor { private: int salary; … public: … int getSalary() const { return salary; } void setYearsOfService(int n) yearsOfService=n; // update: salary = salaryScale(yearsOfService); // better put the calculation in a private function, to not repeat formula multiple times } … }; ``` - use a smart getter, that caches the value in a private salary attribute, but computes it only when needed. The idea is to have a „dirty“ flag that is set whenenver the state of the object changes, and if the getter is called and dirty flag is set, recompute the value. Be aware however that this majes it more difficult to maintain. Moreover, if the derivation depends on associated objects, you‘d need to consider the observer pattern. So I‘d advise to use this approach as last resort, in case of heavy computations. By the way, `/` doesn’t say anything about visibility (I just assumed public in my example), whereas `+`, `-`, `#` refer to `public`, `private`, `protected` in C++, and UML‘s `~` package visibility has no equivalent in c++.
null
CC BY-SA 4.0
null
2023-02-09T00:35:02.940
2023-02-09T15:48:19.910
2023-02-09T15:48:19.910
3,723,423
3,723,423
null
75,393,207
2
null
75,392,076
1
null
I assume you're downloading MySQL community server from it's official page here: [https://dev.mysql.com/downloads/mysql/](https://dev.mysql.com/downloads/mysql/) If you are, then you can see in the page there are 3 blue buttons [](https://i.stack.imgur.com/CH7tG.png) I assume that you are downloading from the "Other Downloads" section (no.2 in image).
null
CC BY-SA 4.0
null
2023-02-09T01:02:04.850
2023-02-09T01:02:04.850
null
null
10,910,692
null
75,393,235
2
null
75,391,183
0
null
In the spirit of [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself), based on I could figure out to solve the problem using `get_legend_handles_labels()` to "" [ref1](https://stackoverflow.com/a/10129461/10452700) & [ref2](https://stackoverflow.com/a/14344146/10452700). ``` # Create pandas stacked line plot import numpy as np import matplotlib.pyplot as plt Userx = 'foo' #fig, ax = plt.subplots(nrows=2, ncols=1 , figsize=(20,10)) fig, (ax1, ax2) = plt.subplots(2, 1, figsize=(20,10)) #plt.subplot(111) ax1 = plt.subplot(2, 1, 1) ax1.plot(df['Date'], df['Male'], color='orange', marker=".", markersize=5, label=f"Leg1 for {Userx}" ) #, marker="o" ax1.scatter(df['Date'], df['Female'], color='#9b5777', marker='d', s=70 , label=f"Leg2 for {Userx}" ) #ax1.ylabel('Scale1', fontsize=15) ax1.set_ylabel("Scale1", fontsize=15) ax1.ticklabel_format(style='plain') ax11 = ax1.twinx() ax11.plot(df['Date'], df['Others'], color='black', marker=".", markersize=5, label=f"Leg3 for {Userx}" ) #, marker="o" #ax1.ylabel('Scale2', fontsize=15) ax11.set_ylabel("Scale2", fontsize=15) ax11.ticklabel_format(style='plain') ax1.legend( loc='best', fontsize=15) ax1.set_xlabel('Timestamp [24hrs]', fontsize=15) #plt.subplot(212) ax2 = plt.subplot(2, 1, 2) ax2.bar(df['Date'], df['Male'], color='green', label=f"Leg1 for {Userx}", width=1 , hatch='o' ) #, marker="o" ax2.bar(df['Date'], df['Female'], color='blue', label=f"Leg2 for {Userx}", width=0.9 , hatch='O' ) #, marker="o" ax2.ticklabel_format(style='plain') #ax2.ylabel('Scale2', fontsize=15) ax2.set_ylabel("Scale2", fontsize=15) ax22 = ax2.twinx() ax22.bar(df['Date'], df['Others'], color='orange', label=f"Leg3 for {Userx}", width=0.9 , hatch='/', alpha=0.1 ) #, marker="o" #ax2.ylabel('Scale1', fontsize=15) ax22.set_ylabel("Scale1", fontsize=15) ax22.ticklabel_format(style='plain') #ax2.xlabel('Timestamp [24hrs]', fontsize=15, color='darkred') ax2.set_xlabel('Timestamp [24hrs]', fontsize=15, color='darkred') ax2.legend( loc='best', fontsize=15) # ask matplotlib for the plotted objects and their labels lines1, labels1 = ax1.get_legend_handles_labels() lines11, labels11 = ax11.get_legend_handles_labels() ax1.legend(lines1 + lines11, labels1 + labels11, loc='best', fontsize=15) lines2, labels2 = ax2.get_legend_handles_labels() lines22, labels22 = ax22.get_legend_handles_labels() ax2.legend(lines2 + lines22, labels2 + labels22, loc='best', fontsize=15) #plt.show(block=True) plt.show() ``` It seems there is no easy way to solve the problem when you use `plt.subplot(111)` with `plt.twinx()` together, but it works for ! So it needs to use `ax1 = plt.subplot(2, 1, 1)` and `ax2 = plt.subplot(2, 1, 2)` structure to solve the problem. ![img](https://i.imgur.com/7VYCTjJ.jpg)
null
CC BY-SA 4.0
null
2023-02-09T01:07:46.073
2023-02-09T01:07:46.073
null
null
10,452,700
null
75,393,291
2
null
74,562,358
-2
null
You're using a [variable-width font](https://en.wikipedia.org/wiki/Typeface#Proportion). Spaces in variable-width fonts are often much thinner than other glyphs/characters. The image of what you want is using a [monospace font](https://en.wikipedia.org/wiki/Monospaced_font) (where every glyph/character has the same width). Use the `editor.fontFamily` setting in the settings.json file. You'll need to consult your OS / Desktop environment to see what fonts you have installed for selection. If there's one you want and don't have, you'll need to install it.
null
CC BY-SA 4.0
null
2023-02-09T01:22:02.833
2023-02-09T02:47:46.733
2023-02-09T02:47:46.733
11,107,541
11,107,541
null
75,393,327
2
null
56,054,597
0
null
You can use Typo3 Authentication services to implement your own user login functionality [https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/Authentication/Index.html](https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/Authentication/Index.html)
null
CC BY-SA 4.0
null
2023-02-09T01:26:40.110
2023-02-09T01:26:40.110
null
null
8,546,548
null
75,393,604
2
null
68,658,249
0
null
You can do this inline without the use of refs or hooks with the following code: ``` <div style={{ scrollbarColor="transparent", overflowX="auto" }} onWheel={(e) => { // here im handling the horizontal scroll inline, without the use of hooks const strength = Math.abs(e.deltaY); if (e.deltaY === 0) return; const el = e.currentTarget; if ( !(el.scrollLeft === 0 && e.deltaY < 0) && !( el.scrollWidth - el.clientWidth - Math.round(el.scrollLeft) === 0 && e.deltaY > 0 ) ) { e.preventDefault(); } el.scrollTo({ left: el.scrollLeft + e.deltaY, // large scrolls with smooth animation behavior will lag, so switch to auto behavior: strength > 70 ? "auto" : "smooth", }); }} > // ... </div> ```
null
CC BY-SA 4.0
null
2023-02-09T02:25:36.787
2023-02-09T02:25:36.787
null
null
6,106,899
null
75,393,610
2
null
74,558,796
1
null
These are "diff decorations". They indicate what has changed about a file. Red means an existing line has been deleted/removed, green means a new line has been added, and blue means an existing line has been modified. These are all comparing against a previous point in time, which is usually a "commit" in your Source Control Management / Version Control Software of choice (Ex. git, subversion, [VS Code's Local History feature](https://code.visualstudio.com/updates/v1_66#_local-history), etc.) --- Their display is controlled by the `scm.diffDecorations` setting (SCM stands for "Source Control Management"). If you don't specify a `scm.diffDecorations` setting value, then the default value is "all", which means to display it in the gutter (the sidebar between the line numbers and the text being edited), the minimap, and the "overview" (decorations inside the scrollbar). You can also use the values `"gutter"`, `"minimap"`, and `"overview"` to only display decorations in one of them, or `"none"` to not display them at all. As you already show in your screenshots, clicking on the decorations in the gutter opens an inline popup showing what has changed and offering action buttons to revert the change. You may also be interested in the following related settings: `scm.diffDecorationsGutterAction`, `scm.diffDecorationsGutterPattern`, `scm.diffDecorationsGutterVisibility`, `scm.diffDecorationsGutterWidth`, `scm.diffDecorationsIgnoreTrimWhitespace`, and `git.decorations.enabled`.
null
CC BY-SA 4.0
null
2023-02-09T02:27:22.183
2023-02-09T02:36:42.863
2023-02-09T02:36:42.863
11,107,541
11,107,541
null
75,393,749
2
null
4,061,576
0
null
Unity C# (Converted from Winter's Java code) ``` public Vector2 DetermineRectangleEdge(float aDegrees, float aWidth, float aHeight) { if (aDegrees < -90) aDegrees += 360f; float ANGLE = Mathf.Deg2Rad * aDegrees; float diag = Mathf.Atan2(aHeight, aWidth); float tangent = Mathf.Tan(ANGLE); Vector2 OUT = Vector2.zero; if (ANGLE > -diag && ANGLE <= diag) { OUT.x = aWidth / 2f; OUT.y = aWidth / 2f * tangent; _ObjectRectTransform.sizeDelta = _VerticalSize; } else if(ANGLE > diag && ANGLE <= Mathf.PI - diag) { OUT.x = aHeight / 2f / tangent; OUT.y = aHeight / 2f; _ObjectRectTransform.sizeDelta = _HorizontalSize; } else if(ANGLE > Mathf.PI - diag && ANGLE <= Mathf.PI + diag) { OUT.x = -aWidth / 2f; OUT.y = -aWidth / 2f * tangent; _ObjectRectTransform.sizeDelta = _VerticalSize; } else { OUT.x = -aHeight / 2f / tangent; OUT.y = -aHeight / 2f; _ObjectRectTransform.sizeDelta = _HorizontalSize; } return OUT; } ```
null
CC BY-SA 4.0
null
2023-02-09T02:58:35.110
2023-02-09T02:58:35.110
null
null
1,985,735
null
75,393,889
2
null
75,392,919
0
null
`start-all` is a deprecated script. You should use `start-dfs` and `start-yarn` separately. Or use `hdfs namenode start`, for example, and same for datanode, `yarn resourcemanager`, nodemanager, etc. all separately. Then debug which daemon is actually causing the problem
null
CC BY-SA 4.0
null
2023-02-09T03:25:34.457
2023-02-09T03:25:34.457
null
null
2,308,683
null
75,394,020
2
null
55,155,808
0
null
You can try this: ``` SELECT COUNTRY.Continent, FLOOR(AVG(CITY.Population)) from COUNTRY inner join CITY on city.countrycode = country.code GROUP BY COUNTRY.CONTINENT ```
null
CC BY-SA 4.0
null
2023-02-09T03:53:19.390
2023-02-09T09:12:14.313
2023-02-09T09:12:14.313
8,372,853
21,177,158
null
75,394,093
2
null
75,394,009
0
null
We can provide the width on child by removing default padding. ``` body: const SizedBox( height: 40, width: 100, child: SubmenuButton( style: ButtonStyle( alignment: Alignment.center, backgroundColor: MaterialStatePropertyAll(Colors.blue), ), menuStyle: MenuStyle(alignment: Alignment.centerRight), menuChildren: [ MenuItemButton(child: Text("submenu one")), MenuItemButton(child: Text("submenu two")), MenuItemButton(child: Text("submenu three")), ], child: SizedBox( // hoped Center would solve but it is not getting enough constraints, // while size goes Up on flutter , I am providing width here width: 100 - 24, //-12*2 is padding of both side child: Icon(Icons.star), ), ), ``` more about [layout/constraints](https://docs.flutter.dev/development/ui/layout/constraints).
null
CC BY-SA 4.0
null
2023-02-09T04:05:49.103
2023-02-09T04:05:49.103
null
null
10,157,127
null
75,395,073
2
null
75,370,826
0
null
First of all thank you again, after use `nm`, I realized that maybe I need to add separate compilation options, [then I found answer here](https://github.com/ROCm-Developer-Tools/HIP/issues/2203), all right, thank you very much! And the final compiled command is ``` gfortran -c main.f90 hipcc -fgpu-rdc --hip-link main.o libfcode.a libhipcode.a -lgfortran ```
null
CC BY-SA 4.0
null
2023-02-09T06:41:54.957
2023-02-09T06:41:54.957
null
null
20,162,948
null
75,395,141
2
null
13,411,288
0
null
Its better to use layer list in this case , since above accepted solution will only work for device > Build.VERSION_CODES.M. Its better to use solution which is applicable for all scenarios ``` <CheckBox android:id="@+id/mute_btn" android:layout_width="@dimen/_26sdp" android:layout_height="@dimen/_26sdp" android:layout_marginStart="@dimen/_10sdp" android:background="@drawable/mute_btn_layer_list" android:checked="false" android:button="@null" app:layout_constraintBottom_toBottomOf="@id/replay_btn" app:layout_constraintStart_toEndOf="@id/replay_btn" app:layout_constraintTop_toTopOf="@id/replay_btn" /> ``` mute_btn_layer_list : ``` <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/corner_rounded_black_bg"/> <item android:drawable="@drawable/btn_mute"/> </layer-list> ``` where drawble btn_mute is your drawable selector
null
CC BY-SA 4.0
null
2023-02-09T06:50:10.450
2023-02-09T06:50:10.450
null
null
19,747,944
null
75,395,404
2
null
75,387,270
0
null
> In my ASP.NET Core 6 MVC project, the .css file is not working in the view file. As you may know, Static files are stored within the project's web root directory.And the default directory is `{content root}/wwwroot`, You can refer to the official [document here](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/static-files?view=aspnetcore-6.0) about static files. Thus, You need to put your css files either in folder into wwwroot like following: [](https://i.stack.imgur.com/fzcJ4.png) Then try to use: ``` <link rel="stylesheet" href="~/css/site.css" asp-append-version="true" /> ``` In Program.cs file include the reference: ``` app.UseStaticFiles(); ``` Furthermore, if you want to serve files outside of the web root in that scenario, Consider below directory hierarchy : Include reference as following in your program.cs file: ``` app.UseStaticFiles(new StaticFileOptions { FileProvider = new PhysicalFileProvider( Path.Combine(builder.Environment.ContentRootPath, "StaticFilesFolderName")), RequestPath = "/StaticFilesFolderName" }); ``` Use Reference: ``` <link rel="stylesheet" href="~/StaticFilesFolderName/site.css" asp-append-version="true" /> ``` As per your scenario, it would be AdminLTE... so on and follow the accurate path. For more details and example please [have a look our official document here.](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/static-files?view=aspnetcore-6.0#serve-files-outside-of-web-root)
null
CC BY-SA 4.0
null
2023-02-09T07:23:23.967
2023-02-09T07:23:23.967
null
null
9,663,070
null
75,395,853
2
null
13,936,167
0
null
P.S. 1 adding my 2 cents even though the question is too old ``` public void PressEnterKey() { var simulator = new InputSimulator(); simulator.Keyboard.KeyPress(VirtualKeyCode.RETURN); } ``` you can create a method like the above and call it where it is required. P.S. 2 - you can change the keyboard inputs as well (like up arrow, down arrow, page down etc)
null
CC BY-SA 4.0
null
2023-02-09T08:15:17.227
2023-02-09T08:15:17.227
null
null
9,168,223
null
75,396,349
2
null
75,396,230
0
null
You can "flatten" your object with a recursive function like this: ``` function flatten(obj, key='', out={}) { for (let [k, v] of Object.entries(obj)) { let kr = key ? key + '.' + k : k if (typeof v === 'object' && v) flatten(v, kr, out) else out[kr] = v } return out } // res = { "data": [{ "type": "articles", "id": "1", "attributes": { "title": "JSON:API paints my bikeshed!", "body": "The shortest article. Ever.", "created": "2015-05-22T14:56:29.000Z", "updated": "2015-05-22T14:56:28.000Z" }, "relationships": { "author": { "data": { "id": "42", "type": "people" } } } }], "included": [{ "type": "people", "id": "42", "attributes": { "name": "John", "age": 80, "gender": "male" } }] } console.log(flatten(res)) ```
null
CC BY-SA 4.0
null
2023-02-09T09:06:16.277
2023-02-09T09:06:16.277
null
null
3,494,774
null
75,396,862
2
null
75,394,783
0
null
Assuming your `no.` column is the first column in your Treeview, you can update the numbering of your rows with the following code ``` my_treeview = ttk.Treeview() # Replace this with your own treeview... for i, item in enumerate(my_treeview.get_children(''), 1): my_treeview.set(item, 0, i) ```
null
CC BY-SA 4.0
null
2023-02-09T09:52:04.100
2023-02-09T09:52:04.100
null
null
9,490,769
null
75,396,929
2
null
27,064,490
0
null
GitHub for Windows doesn't allow users to adding several files to the gitignore file at once. One has to instead edit the `.gitignore` fie manually.
null
CC BY-SA 4.0
null
2023-02-09T09:57:45.000
2023-02-09T09:57:45.000
null
null
395,857
null
75,396,941
2
null
75,396,156
1
null
As far as I know, "solution explorer" and "team explorer" are Visual Studio features / concepts and not Visual Studio Code features / concepts. Visual Studio and Visual Studio Code are not the same. That said, - The Explorer panel for VS Code (![dark files icon](https://raw.githubusercontent.com/microsoft/vscode-icons/main/icons/dark/files.svg)![light files icon](https://raw.githubusercontent.com/microsoft/vscode-icons/main/icons/light/files.svg) / `View: Show Explorer`) is analogous to Visual Studio's Solution Explorer, except that it only supports viewing the files in their layout in the filesystem.- [fernandoescolar.vscode-solution-explorer](https://marketplace.visualstudio.com/items?itemName=fernandoescolar.vscode-solution-explorer)- The Source Control panel in VS Code (![dark source-control icon](https://raw.githubusercontent.com/microsoft/vscode-icons/main/icons/dark/source-control.svg)![light source-control icon](https://raw.githubusercontent.com/microsoft/vscode-icons/main/icons/light/source-control.svg) / `View: Show Source Control`) is analogous to Visual Studio's Teams Explorer, and you can get more git-related features by instaling related extensions such as [gitlens](https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens).
null
CC BY-SA 4.0
null
2023-02-09T09:58:46.557
2023-02-23T19:37:39.553
2023-02-23T19:37:39.553
11,107,541
11,107,541
null
75,397,117
2
null
75,365,694
5
null
Here is a workaround using basic R {plotly} to modify the legend according to @Tung's requirements: [](https://i.stack.imgur.com/A37Vi.png) ``` library(scales) library(ggplot2) library(plotly) library(data.table) DT <- data.frame( stringsAsFactors = FALSE, Level = c("Fast","Fast","Fast","Fast", "Fast","Fast","Slow","Slow","Slow", "Slow","Slow","Slow"), Period = c("1Year","3Month","1Year","3Month", "1Year","3Month","1Year","3Month", "1Year","3Month","1Year","3Month"), X = c(0.002,0.002,0.1,0.1,0.9,0.9, 0.002,0.002,0.1,0.1,0.9,0.9), Y = c(1.38,1.29,1.61,1.61,1.74,0.98, 1.14,0.97,1.09,1.1,0.94,0.58) ) setDT(DT) LevelDT <- unique(DT, by = "Level") PeriodDT <- unique(DT, by = "Period") LevelDT[, Y := min(DT$Y)-1] PeriodDT[, Y := min(DT$Y)-1] plt2 <- ggplot(data = DT, aes(x = X, y = Y, shape = Period, color = Level)) + geom_point(alpha = 0.6, size = 3) + labs(x = " ", y = "Value") + scale_y_continuous(labels = number_format(accuracy = 0.1)) + theme(axis.text.x = element_text(angle = 90)) plt2 markercolors <- hue_pal()(2) ggplotly(plt2, height = 500) |> layout( xaxis = list(autorange = "reversed"), legend = list( title = list(text = ''), itemclick = FALSE, itemdoubleclick = FALSE, groupclick = FALSE ) ) |> add_trace( data = LevelDT, x = ~ X, y = ~ Y, inherit = FALSE, type = "scatter", mode = "markers", marker = list( color = markercolors, size = 14, opacity = 0.6, symbol = "circle" ), name = ~ Level, legendgroup = "Level", legendgrouptitle = list(text = "Level") ) |> add_trace( data = PeriodDT, x = ~ X, y = ~ Y, inherit = FALSE, type = "scatter", mode = "markers", marker = list( color = "darkgrey", size = 14, opacity = 0.6, symbol = c("circle", "triangle-up") ), name = ~Period, legendgroup = "Period", legendgrouptitle = list(text = "Period") ) |> style(showlegend = FALSE, traces = 1:4) ``` --- I'm not sure why they are set to `FALSE` in the first place, but setting `showlegend = TRUE` in `layout()` `style()` (for the traces) brings back the legend: ``` library(scales) library(ggplot2) library(plotly) data <- data.frame( stringsAsFactors = FALSE, Level = c("Fast","Fast","Fast","Fast", "Fast","Fast","Slow","Slow","Slow", "Slow","Slow","Slow"), Period = c("1Year","3Month","1Year","3Month", "1Year","3Month","1Year","3Month", "1Year","3Month","1Year","3Month"), X = c(0.002,0.002,0.1,0.1,0.9,0.9, 0.002,0.002,0.1,0.1,0.9,0.9), Y = c(1.38,1.29,1.61,1.61,1.74,0.98, 1.14,0.97,1.09,1.1,0.94,0.58) ) # ggplot2 plt <- ggplot(data = data, aes(x = X, y = Y, shape = Period, color = Level)) + geom_point(alpha = 0.6, size = 3) + labs(x = " ", y = "Value") + scale_y_continuous(labels = number_format(accuracy = 0.1)) + guides(color = guide_legend(title = "Period", order = 1), shape = guide_legend(title = "", order = 2)) + theme(axis.text.x = element_text(angle = 90)) plt # Convert to plotly, legend disappeared fig <- ggplotly(plt, height = 500) %>% layout(showlegend = TRUE, xaxis = list(autorange = "reversed")) %>% style(showlegend = TRUE) fig ``` [](https://i.stack.imgur.com/cjN1N.png)
null
CC BY-SA 4.0
null
2023-02-09T10:14:50.653
2023-02-10T13:00:50.213
2023-02-10T13:00:50.213
9,841,389
9,841,389
null
75,397,218
2
null
75,294,127
0
null
Maybe you could try to add scopes in manifest file In project file, open Setup, and check `display manifest file "appsscript.json"`, and then open it. Add: ``` "oauthScopes": [ "https://www.googleapis.com/auth/script.external_request", "https://www.googleapis.com/auth/script.send_mail", "https://www.googleapis.com/auth/spreadsheets", "https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/gmail.modify", ] ``` Reference : - [Scopes](https://developers.google.com/apps-script/concepts/scopes?hl=fr#viewing_scopes)- [List of scopes](https://support.google.com/cloud/answer/9110914?hl=fr#restricted-scopes&zippy=%2Cgmail-api%2Cdrive-api)
null
CC BY-SA 4.0
null
2023-02-09T10:24:06.700
2023-02-09T10:24:06.700
null
null
5,623,780
null
75,397,250
2
null
75,395,189
0
null
Try using this CSS selector instead: `continue_div = driver.find_element(By.CSS_SELECTOR,'#bktContinue > div')` My assumption is that the reason the continue button is not being pressed, is because the real element that should be clicked is the div inside of the element with the ID `bktContinue`. Also another tip: It's possible that you're not clicking the correct link at this line: ``` continue_link = driver.find_element(By.PARTIAL_LINK_TEXT, 'HERE') continue_link.click() ``` Because you're looking for a link element that contains the text 'HERE', there are 4 elements that match this criteria, so your scriptelement might be clicking another link where the `#bktContinue` is not on the next page and this might also be leading to a `NoSuchElementException`.
null
CC BY-SA 4.0
null
2023-02-09T10:26:35.910
2023-02-09T10:40:48.953
2023-02-09T10:40:48.953
16,992,491
16,992,491
null
75,397,456
2
null
75,365,694
2
null
## Plotly generates a different legend from ggplot2 - this can be fixed with R and and a little javascript The first thing to do is ensure that you have a reasonably current version of the packages: ``` packageVersion("ggplot2") # 3.4.0 packageVersion("plotly") # 4.10.0 ``` With these versions, like @Quentin, I do get a legend, although it is different to the one generated by `ggplot2`. ``` ggplotly(plt, height = 500) %>% layout(xaxis = list(autorange = "reversed")) ``` [](https://i.stack.imgur.com/1pL5s.png) ## Steps to replicate the ggplot2 legend: 1. Change the legend text. This can be done by editing the R object before it is passed to plotly.js. 2. Remove the color from the shape guide. This can only be done with javascript after the plot has rendered. 3. Change the third circle into a triangle. This also needs to be done in javascript. ## Changing the legend text To do this manually, we could do `p$x$data[[1]]$name <- "Fast"`, and replicate for each layer. Fortunately, you have manually specified the legend order, making it easy to know where to access the correct legend names before passing to `plotly`. If we just do this step, it will create a legend which looks like this, i.e. still wrong (the first triangle should be a circle and neither should be have a color): [](https://i.stack.imgur.com/Uurhi.png) ## Changing the symbol shape and colors We cannot do this in R. I have written an R helper function to generate some javascript to do this for us: ``` get_symbol_change_js <- function(symbol_nums, new_color_string = "rgb(105, 105, 105)") { js_get_legend <- htmltools::HTML( 'let legend = document.querySelector(".scrollbox"); let symbols = legend.getElementsByClassName("legendsymbols"); const re = new RegExp("fill: rgb.+;", "i"); ' ) change_symbol_color_code <- lapply( symbol_nums, \(i) paste0( "symbols[", i, "].innerHTML = ", "symbols[", i, "].innerHTML.replace(re,", ' "fill: ', new_color_string, ';");' ) ) |> paste(collapse = "\n") # shape to change shape_change_num <- symbol_nums[1] # shape to replace with shape_change_from <- shape_change_num - 1 change_symbols_shape_code <- paste0( 'const shape_re = new RegExp(\'d=".*?"\');\n', "const correct_shape = symbols[", shape_change_from, "].innerHTML.match(shape_re)[0];\n", "symbols[2].innerHTML = symbols[", shape_change_num, "].innerHTML.replace(shape_re, correct_shape);" ) all_js <- htmltools::HTML( unlist(c( js_get_legend, change_symbol_color_code, change_symbols_shape_code )) ) return(all_js) } ``` We can put this all together to generate the plot as desired: ``` draw_plotly_with_legend(plt) ``` [](https://i.stack.imgur.com/QZKKa.png) ## Final draw_plotly_with_legend() function Note this function calls `get_symbol_change_js()`, as defined above. It also uses [htmlwidgets::prependContent()](https://www.rdocumentation.org/packages/htmlwidgets/versions/1.6.0/topics/prependContent) to attach our custom html to the widget before rendering. ``` draw_plotly_with_legend <- function(gg = plt, guide_types = c("colour", "shape")) { # Period, Level legend_categories <- lapply( guide_types, \(x) rlang::quo_get_expr(plt$mapping[[x]]) ) new_legend_names <- lapply(legend_categories, \(category) { unique(data[[category]]) }) |> setNames(guide_types) # Work out which symbols need to have color removed symbols_to_remove_color <- new_legend_names[ names(new_legend_names) != "colour" ] |> unlist() new_legend_names <- unlist(new_legend_names) symbol_num_remove_color <- which( new_legend_names %in% symbols_to_remove_color ) # Create plot p <- ggplotly(gg, height = 500) %>% layout(xaxis = list(autorange = "reversed")) # Show legend p$x$layout$showlegend <- TRUE # Update legend names and put in one group for (i in seq_along(p$x$data)) { p$x$data[[i]]$name <- new_legend_names[i] p$x$data[[1]]$legendgroup <- "Grouped legend" } # Get the js code to change legend color # js is 0 indexed js_symbol_nums <- symbol_num_remove_color - 1 js_code <- get_symbol_change_js(js_symbol_nums) # Add it to the plot p <- htmlwidgets::prependContent( p, htmlwidgets::onStaticRenderComplete(js_code) ) return(p) } ```
null
CC BY-SA 4.0
null
2023-02-09T10:43:52.947
2023-02-09T12:24:56.727
2023-02-09T12:24:56.727
12,545,041
12,545,041
null
75,397,500
2
null
75,396,879
0
null
You are using the [formControlName Directive](https://angular.io/api/forms/FormControlName) It has a @Output('ngModelChange') update: EventEmitter but its marked as deprecated since v6 so there is a chance it wont work with the next updateds.
null
CC BY-SA 4.0
null
2023-02-09T10:46:42.617
2023-02-09T10:46:42.617
null
null
6,236,935
null
75,397,651
2
null
48,215,900
0
null
I think the main reason can be a network issue, like VPN, not using a public connection,firewall,... as people suggest: [as they suggest here](https://stackoverflow.com/questions/26727531/android-studio-not-including-sdk) In my case I was using a corporate network, using my personal WIFI or mobile connection show me the SDK choices: 1. after you change the directory to something else like(in the ): in my case I use that path C:\Users\ $yourusername \ .android 2. and then finally I can see the SDK options after unchecking hidden choice, but cant install if I am on a filtered network as I said above. failed terminal output SDK installation screenshot After the terminal within Android studio install the SDK related components, you can now see/find that directory C:\Users$username\ AppData\ Local \ Android \ Sdk So basically be sure to use the that doesnt have firewall exc.(for me doesnt work even if I accept the certificates...and whitelist android studio...) and finish the complete set up(SDK tools,AVD...) on that network who SDK installation dialog appers(you , when you lunch )
null
CC BY-SA 4.0
null
2023-02-09T11:01:00.290
2023-02-15T13:03:57.510
2023-02-15T13:03:57.510
10,129,033
10,129,033
null
75,397,741
2
null
75,390,391
0
null
To refer to the values of the variables in defined in the configuration, you script should use `$VARIABLE_NAME`, not `VARIABLE_NAME` as that is literally that string. ``` - pipe: atlassian/ssh-run:latest variables: SSH_KEY: $SSH_KEY SSH_USER: $SSH_USER SERVER: $SSH_HOST COMMAND: "/app/deploy_dev01.sh" ``` Also, note some pitfalls exists when using an explicit `$SSH_KEY`, it is generally easier and safer to use the default key provided by Bitbucket, see [Load key "/root/.ssh/pipelines_id": invalid format](https://stackoverflow.com/q/75156014/11715259)
null
CC BY-SA 4.0
null
2023-02-09T11:08:42.200
2023-02-09T11:08:42.200
null
null
11,715,259
null
75,397,865
2
null
75,397,028
0
null
No, that is not possible, because whenever a prop changes for a component it will re-render when the props do not comply with what you are trying to do in the component the component is destroyed.
null
CC BY-SA 4.0
null
2023-02-09T11:20:35.180
2023-02-09T11:20:35.180
null
null
20,290,198
null
75,397,887
2
null
75,378,337
1
null
Updating fullcalendar from v5 to v6 solved this issue for me, now all days will have events up to dayMaxEvents.
null
CC BY-SA 4.0
null
2023-02-09T11:22:42.900
2023-02-09T11:22:42.900
null
null
11,823,180
null