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,599,787
2
null
75,599,466
0
null
Try something like ``` BMI_results <- weight_log %>% group_by(Id) %>% arrange(Date) %>% summarize(diff=first(BMI)-last(BMI)) ```
null
CC BY-SA 4.0
null
2023-03-01T05:08:49.437
2023-03-01T05:08:49.437
null
null
2,372,064
null
75,600,292
2
null
75,596,784
0
null
If you check the error it says `expected: [Function: SlashCommandChannelOption]` but `given: undefined`. It means it expected an instance of `SlashCommandChannelOption` but received `undefined`. If you check your callback functions, you can see that you don't return anything. If there is no explicit `return` statement, the function automatically returns `undefined`. So, all you need to do is to return options: ``` .addSubcommand((subcommand) => { return subcommand .setName('channel') .setDescription('Sets the channel to send earthquake logs.') .addChannelOption((option) => { return option .setName('channel') .setDescription('Channel to send earthquake logs.') .setRequired(true); }); }); ``` As you're using arrow functions, you could also just get rid of the curly brackets and the `return` keyword: ``` .addSubcommand((subcommand) => subcommand .setName('channel') .setDescription('Sets the channel to send earthquake logs.') .addChannelOption((option) => option .setName('channel') .setDescription('Channel to send earthquake logs.') .setRequired(true), ), ); ```
null
CC BY-SA 4.0
null
2023-03-01T06:39:45.093
2023-03-01T06:39:45.093
null
null
6,126,373
null
75,600,424
2
null
75,599,907
0
null
You have one function with two triggers (one "simple", one "installable") - that's going to create problems: you only want ONE trigger. The "simple" trigger is created for any function named `onEdit`. Then, you created an installable `onEdit` trigger. Total triggers = two. A simple trigger can modify the file they are bound to, but cannot access other files because that would require authorization. Since you have an instance of `openById()`, a simple trigger won't cut it. Solution: - `onEdit(e)``setFont(e)`- - `onEdit(e)`- `setFont(e)` --- On a tangent, Google says "a macro is a series of recorded actions within Google Sheets. Once recorded, you can activate a macro to repeat those actions later with a menu item or shortcut key. You can both create and update your own macros in both Google Sheets and the Apps Script code editor." [ref](https://developers.google.com/codelabs/apps-script-fundamentals-1#1) But your script is much more than a macro; you are evaluating the sheet name, column and row - this is something that is naturally seen in an app script.
null
CC BY-SA 4.0
null
2023-03-01T06:57:11.357
2023-03-01T07:07:13.507
2023-03-01T07:07:13.507
1,330,560
1,330,560
null
75,600,488
2
null
73,235,135
0
null
I got the same error and resolve with the following configuration in the Execute shell. #!/bin/bash sudo docker build -t todo-img4 -f /root/project/django-todo/Dockerfile /root/project/django-todo sudo docker run -d -it -p 8001:8001 todo-img4 I hope this is work for you.
null
CC BY-SA 4.0
null
2023-03-01T07:05:18.623
2023-03-01T07:05:18.623
null
null
21,309,541
null
75,600,505
2
null
75,599,709
0
null
### UPDATE I found the reason, we can't render string with html tags inside the textarea. And I found the good solution for you, we can use ``` <div contenteditable="true"></div> ``` [](https://i.stack.imgur.com/0shXa.gif) For more details. please check this link: ## Rendering HTML inside textarea [](https://i.stack.imgur.com/EeQWx.gif) ``` @using System.Net; @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @using System.Text.RegularExpressions; @{ ViewData["Title"] = "75599709 Page"; string description = @"<i><strong>Virtual</strong></i>World ABC friend<strong>hii hello</strong>abc jitesh education<strong>hello all</strong>"; } <script src="https://cdn.ckeditor.com/ckeditor5/29.2.0/classic/ckeditor.js"></script> <textarea id="editor1" class="areacls" data-href="item1" onclick="createEditor('editor1')" name="hoverC" style="background-color: rgb(221, 226, 237); width: 100%; overflow: hidden; border: none; box-shadow: none; text-overflow: ellipsis; " rows="3">@Regex.Replace(description, "<.*?>", String.Empty)</textarea> @section Scripts { @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); <script> const editors = new Map(); function createEditor(elementToReplace) { //debugger; return ClassicEditor .create(document.querySelector('#' + elementToReplace)) .then(editor => { editors.set(elementToReplace, editor); }) .catch(err => console.error(err.stack)); } </script> } } ``` --- Change your function `createEditor` like below: ``` function createEditor(elementToReplace) { //debugger; return ClassicEditor .create(document.querySelector('#' + elementToReplace)) .then(editor => { editors.set(elementToReplace, editor); }) .catch(err => console.error(err.stack)); } ``` Then the issue will be fixed. --- I don't think this issue related to Html.Raw, you can find my code works well. If you still think related to Html.Raw. You can try below code in your .cshtml ``` @Html.Raw(@WebUtility.HtmlDecode(ViewBag.result)) ``` --- ### Test Code And Result ``` @using System.Net; @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @{ ViewData["Title"] = "75599709 Page"; string description = @"<i><strong>Virtual</strong></i>World ABC friend<strong>hii hello</strong>abc jitesh education<strong>hello all</strong>"; } <script src="https://cdn.ckeditor.com/ckeditor5/29.2.0/classic/ckeditor.js"></script> <textarea id="editor1" class="areacls" data-href="item1" onclick="createEditor('editor1')" name="hoverC" style="background-color: rgb(221, 226, 237); width: 100%; overflow: hidden; border: none; box-shadow: none; text-overflow: ellipsis; " rows="3">@description</textarea> @section Scripts { @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); <script> const editors = new Map(); function createEditor(elementToReplace) { //debugger; return ClassicEditor .create(document.querySelector('#' + elementToReplace)) .then(editor => { editors.set(elementToReplace, editor); }) .catch(err => console.error(err.stack)); } </script> } } ``` [](https://i.stack.imgur.com/k5HNe.gif)
null
CC BY-SA 4.0
null
2023-03-01T07:07:02.887
2023-03-01T10:09:19.023
2023-03-01T10:09:19.023
7,687,666
7,687,666
null
75,600,628
2
null
75,418,520
0
null
The session_hash is not something that you need to obtain manually. It is automatically generated by the telethon library when you log in to your Telegram account using the Telethon client. The session_hash is a unique identifier for your session with the Telegram API. It allows you to resume your session later, without having to log in again, as long as you use the same session_hash and api_id and api_hash. If you are using the telebot library to create a Telegram bot, you do not need to provide a session_hash. Instead, you can use the bot API token to authenticate your bot and receive updates from the Telegram API. To obtain the API ID and hash for your Telegram account, you can follow these steps: Open [https://my.telegram.org/auth](https://my.telegram.org/auth) in your web browser and log in to your Telegram account. Once you are logged in, you should see a page with a list of your apps. Click on the "API development tools" link. On the next page, you should see a form where you can register a new application. Fill out the form with the requested information, and submit it to create a new app. After you create the app, you should see a page with your app's API ID and hash. These are the values that you need to use to authenticate your Telethon client or telebot bot.
null
CC BY-SA 4.0
null
2023-03-01T07:25:11.180
2023-03-01T07:25:11.180
null
null
9,581,257
null
75,600,831
2
null
75,596,611
0
null
You used the [property binding](https://docs.unrealengine.com/5.1/en-US/property-binding-for-umg-in-unreal-engine/) feature in UMG which allows you to assign functions or properties to parts of your user interface. Your details panel is not wide enough to show all the information, that's why you can only see the bound function. If you drag it a little, you see three elements next to each other: 1. The property input field (the Text input for "Text" or the LinearColor previewer for "Color and Opacity") 2. The currently bound function 3. The bind dropdown that gives you more options on what to bind or to remove the current binding If you want to change the value for the preview, you can change it using the property input field (as soon, as it becomes visible). If you want to change the value at runtime (with property binding), you have to go into the function that is bound and change the return value. If you want to be able to set the value at runtime using a `Set`-node, you have to remove the binding first. But one word of advise here: Property binding is not good practise. It is usually better to set the value when the value to show actually changes using [delegates](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/ActorCommunication/EventDispatcherQuickStart/). References (and good resources for UMG in general): - [Unreal UI Best Practices](https://benui.ca/unreal/ui-best-practices/#dont-use-bind-variable)- [UMG-Slate-Compendium](https://github.com/YawLighthouse/UMG-Slate-Compendium#cpu-considerations)
null
CC BY-SA 4.0
null
2023-03-01T07:48:40.450
2023-03-01T07:48:40.450
null
null
5,593,150
null
75,600,929
2
null
75,600,659
0
null
Because that is not the error, you have to look into the server log as it is said in the error message. As far as I know net beans comes with GlasFish Server in general the logs are in /YOUR_GLASSFISH_INSTALL/glassfish/domains/domain1/logs/ If you need further help we need the serverlog.
null
CC BY-SA 4.0
null
2023-03-01T08:02:13.650
2023-03-01T08:02:13.650
null
null
9,756,820
null
75,601,049
2
null
75,600,920
2
null
Because you are running a MVC Web Application and the toolbox shown is for ASP.NET WebForms Application(older technology). That's why its disabled Example of an ASP.NET WebForms Control ``` <asp:AdRotator runat="server" AdvertisementFile="adfile.xml" Target="_blank" /> ``` Side note, Always use HTML and CSS to position controls on a web page
null
CC BY-SA 4.0
null
2023-03-01T08:15:10.667
2023-03-01T08:15:10.667
null
null
17,447
null
75,601,376
2
null
75,524,394
2
null
You need to import from package manager or add it manually to your manifest file. We explain this steps in our documentation [https://altom.com/alttester/docs/sdk/pages/get-started.html#resolve-dependencies](https://altom.com/alttester/docs/sdk/pages/get-started.html#resolve-dependencies).
null
CC BY-SA 4.0
null
2023-03-01T08:47:32.733
2023-03-01T08:47:32.733
null
null
12,789,597
null
75,601,433
2
null
75,600,890
0
null
That happens when you don't wrap you Vuetify components into a `v-app`. It works when you do: ``` const { createApp, ref } = Vue; const { createVuetify} = Vuetify const vuetify = createVuetify() const App = { setup() { return { sliderVal1: ref(25), sliderVal2: ref(1), item: {meta: { answers: ['a1', 'a2'] }}, isVapp: ref(true) } } } const app = createApp(App) app.use(vuetify).mount('#app') ``` ``` <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/vuetify@3.1.6/dist/vuetify.min.css" /> <div id="app"> <label><input type="checkbox" v-model="isVapp"/> with v-app</label> <component :is="isVapp ? 'VApp' : 'div'"> <div> <v-slider v-model="sliderVal1" /> </div> {{sliderVal1}} <div> <v-slider v-model="sliderVal2" :ticks="Object.fromEntries(Object.entries(item.meta.answers))" :max="item.meta.answers.length - 1" show-ticks="always" step="1" tick-size="3" color="blue" /> </div> {{sliderVal2}} </component> </div> <script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script> <script src="https://cdn.jsdelivr.net/npm/vuetify@3.1.6/dist/vuetify.min.js"></script> ```
null
CC BY-SA 4.0
null
2023-03-01T08:54:25.007
2023-03-01T09:09:25.760
2023-03-01T09:09:25.760
4,883,195
4,883,195
null
75,601,737
2
null
75,601,209
1
null
You need to install primeflex ``` npm install primeflex ``` and import this to your app ``` import 'primeflex/primeflex.css'; ``` This above will apply flex css for header. To add fixed width you can override the header css using ``` .p-datatable .p-datatable-header { min-width: 60rem; width: 400px; margin: 0 auto; } ```
null
CC BY-SA 4.0
null
2023-03-01T09:26:51.557
2023-03-01T09:47:36.323
2023-03-01T09:47:36.323
4,342,075
4,342,075
null
75,601,884
2
null
75,601,765
0
null
``` import tkinter as tk window = tk.Tk() window.title("Hello world") window.geometry("300x300") bg_color = (0x31, 0x8C, 0xE7) bg_hex = '#{:02x}{:02x}{:02x}'.format(*bg_color) start_btn = tk.Button(window, text="Start", bg=bg_hex, fg="white", font=("Arial", 16), bd=0, relief=tk.RIDGE) start_btn.pack() window.mainloop() ``` I tested it in repl.it and it worked.
null
CC BY-SA 4.0
null
2023-03-01T09:39:36.740
2023-03-01T09:39:36.740
null
null
21,299,907
null
75,602,062
2
null
75,601,765
0
null
This is a common issue for tkinter and mac sadly. I have run into similar things when i was using tkinter for a small app. The solution to this is to install the dedicated mac library. A sample code is: ``` import tkinter as tk from tkmacosx import Button bg_color = (0x31, 0x8C, 0xE7) bg_hex = '#{:02x}{:02x}{:02x}'.format(*bg_color) start_btn = Button(root, text="Start", bg=bg_hex, fg="white", font=("Arial", 16), bd=0, relief=tk.RIDGE, command=start_app) ``` As you can see we are using the Button from the `tkmacosx` package, that will solve your issue and make the button blue. Just install the `tkmacosx` before you run this with `pip`.
null
CC BY-SA 4.0
null
2023-03-01T09:53:48.007
2023-03-01T09:53:48.007
null
null
7,545,555
null
75,602,052
2
null
75,590,385
0
null
> I want to get all yyyy/mm/dd/xxx.parquet data from a specific date to a specific date. I could able to achieve your requirement by . This is my folder structure and sample csv files. ``` data 2023 02 26 csv26.csv 27 csv27.csv 28 csv28.csv 03 01 csv01.csv 02 csv02.csv ``` Here my date range is from `26-02-2023` to `02-03-2023`. For `counter variable` I have given it as `startdate-1` `(2023/02/25)`. ![enter image description here](https://i.imgur.com/uJGKItR.png) `@equals(string(pipeline().parameters.end_date),variables('counter'))` Inside until, we have to increment the day by 1. As self-referencing the variables is not supported in ADF, I have taken a `temp` string variable and stored the incremented date in it with below expression. `@formatdatetime(adddays(formatdatetime(variables('counter'),'yyyy/MM/dd'),1),'yyyy/MM/dd')` After this, I have reassigned the `temp` variable to `counter` variable. Now, take a copy activity and for source use the wild card path and give the `counter` variable like below. I have used `csv` files, for you give it as `*.parquet`. ![enter image description here](https://i.imgur.com/0PbnEY2.png) ``` { "name": "pipeline2", "properties": { "activities": [ { "name": "Until1", "type": "Until", "dependsOn": [ { "activity": "Set variable3", "dependencyConditions": [ "Succeeded" ] } ], "userProperties": [], "typeProperties": { "expression": { "value": "@equals(string(pipeline().parameters.end_date),variables('counter'))", "type": "Expression" }, "activities": [ { "name": "Temp", "type": "SetVariable", "dependsOn": [], "userProperties": [], "typeProperties": { "variableName": "temp", "value": { "value": "@formatdatetime(adddays(formatdatetime(variables('counter'),'yyyy/MM/dd'),1),'yyyy/MM/dd')", "type": "Expression" } } }, { "name": "Incrementing Counter", "type": "SetVariable", "dependsOn": [ { "activity": "Temp", "dependencyConditions": [ "Succeeded" ] } ], "userProperties": [], "typeProperties": { "variableName": "counter", "value": { "value": "@variables('temp')", "type": "Expression" } } }, { "name": "Copy data1", "type": "Copy", "dependsOn": [ { "activity": "Incrementing Counter", "dependencyConditions": [ "Succeeded" ] } ], "policy": { "timeout": "0.12:00:00", "retry": 0, "retryIntervalInSeconds": 30, "secureOutput": false, "secureInput": false }, "userProperties": [], "typeProperties": { "source": { "type": "DelimitedTextSource", "storeSettings": { "type": "AzureBlobFSReadSettings", "recursive": true, "wildcardFolderPath": { "value": "@variables('counter')", "type": "Expression" }, "wildcardFileName": "*.csv", "enablePartitionDiscovery": false }, "formatSettings": { "type": "DelimitedTextReadSettings" } }, "sink": { "type": "DelimitedTextSink", "storeSettings": { "type": "AzureBlobFSWriteSettings" }, "formatSettings": { "type": "DelimitedTextWriteSettings", "quoteAllText": true, "fileExtension": ".txt" } }, "enableStaging": false, "translator": { "type": "TabularTranslator", "typeConversion": true, "typeConversionSettings": { "allowDataTruncation": true, "treatBooleanAsNumber": false } } }, "inputs": [ { "referenceName": "Sourcefiles", "type": "DatasetReference" } ], "outputs": [ { "referenceName": "target", "type": "DatasetReference" } ] } ], "timeout": "0.12:00:00" } }, { "name": "Set variable3", "type": "SetVariable", "dependsOn": [], "userProperties": [], "typeProperties": { "variableName": "counter", "value": { "value": "@pipeline().parameters.st_date", "type": "Expression" } } } ], "parameters": { "st_date": { "type": "string", "defaultValue": "2023/02/25" }, "end_date": { "type": "string", "defaultValue": "2023/03/02" } }, "variables": { "counter": { "type": "String" }, "temp": { "type": "String" } }, "annotations": [] } } ``` Execute this and you can see the files are copied to the target. ![enter image description here](https://i.imgur.com/i8xLbo6.png)
null
CC BY-SA 4.0
null
2023-03-01T09:53:02.127
2023-03-01T09:53:02.127
null
null
18,836,744
null
75,602,158
2
null
75,374,077
0
null
Solved this problem by setting a new `GlobalKey<AnimatedGridState> _gridKey` on `_insert` handler of the OP example, which is now: ``` void _insert() { setState(() { _gridKey = GlobalKey<AnimatedGridState>(); _list = ListModel<int>( listKey: _gridKey, initialItems: <int>[7, 6, 5], removedItemBuilder: _buildRemovedItem, ); }); } ```
null
CC BY-SA 4.0
null
2023-03-01T10:02:16.307
2023-03-01T10:02:16.307
null
null
1,140,754
null
75,602,176
2
null
75,601,704
2
null
I'm not aware if there is some function that automatically performs that substitution, however you are already on the right track to create your own function: ``` def symbols2real(expr, *s): d = {sym: Symbol(sym.name, real=True) for sym in s} return expr.subs(d) expr = x - x.conjugate() symbols2real(expr, x) # out: 0 ``` Edit to clarify: you cannot modify in-place existing symbols because SymPy uses immutability, so you have to create new symbols and replace the existing ones.
null
CC BY-SA 4.0
null
2023-03-01T10:04:21.500
2023-03-01T10:04:21.500
null
null
2,329,968
null
75,602,646
2
null
75,602,560
-1
null
> The user has exceeded the number of videos they may upload. This is a user based error and has nothing to do with your quota. There is a limit to the number of videos each user can upload per day. Last time I checked it was around 10. The user who is currently logged in will need to wait until tomorrow. Note: There is no official documentation from YouTube or Google about a daily upload limit.
null
CC BY-SA 4.0
null
2023-03-01T10:47:32.443
2023-03-01T15:21:31.370
2023-03-01T15:21:31.370
7,123,660
1,841,839
null
75,602,906
2
null
75,602,443
1
null
Assuming you have an angle alpha, that your circle is R radius, centered in (0,0) and that you put the center of your rectangle at r distance of the center of the circle (the unknown variable). Assuming again your rectangle's half width is w and half height h, you have the coordinates of the 4 points constituting your rectangle: ``` x = r * cos(alpha) + w, y = r * sin(alpha) + h x = r * cos(alpha) - w, y = r * sin(alpha) + h x = r * cos(alpha) + w, y = r * sin(alpha) - h x = r * cos(alpha) - w, y = r * sin(alpha) - h ``` You just need to check the equation `x² + y² = R²` for each point, leading to a quadratic equation in `r` variable.
null
CC BY-SA 4.0
null
2023-03-01T11:12:17.503
2023-03-01T11:37:05.217
2023-03-01T11:37:05.217
1,136,211
10,753,712
null
75,603,099
2
null
75,534,994
0
null
Curiously, AWS does not provide an API for the billing page, so the remaining credit information cannot be viewed through the cli.
null
CC BY-SA 4.0
null
2023-03-01T11:29:33.533
2023-03-01T11:29:33.533
null
null
11,841,571
null
75,603,237
2
null
75,602,577
0
null
Your problem is, that `income` was not used in the model (or you posted the wrong code?). Apart from that your code actually looks fine for me, and the plot nice. See example using a variable that's actually in the model: ``` ## load data data('debt', package='faraway') ## calc model mod1 <- nnet::multinom(ccarduse ~ prodebt, debt) ## predict prodebtlv <- 1:6 pred <- predict(mod1, data.frame(prodebt=prodebtlv), type="probs") ## plot plot(prodebtlv, pred[, 1], type="l", ylim=range(pred), xlab="prodebt", ylab="Probabilities of credit card use", cex.lab=1.3, cex.axis=1.3) lines(prodebtlv, pred[, 2], lty=2) lines(prodebtlv, pred[, 3], lty=3) legend(x = "topright", c("1", "2", "3"), lty=c(3, 2, 1)) ``` [](https://i.stack.imgur.com/SrsVG.png)
null
CC BY-SA 4.0
null
2023-03-01T11:41:44.683
2023-03-01T11:54:02.633
2023-03-01T11:54:02.633
6,574,038
6,574,038
null
75,603,251
2
null
75,530,990
0
null
I was told by @keith from Expo team what a silly thing I was wrong. So I used the link from a EAS development build--instead of a link generated from a live server `npx expo start --dev-client`. So that development build is supposed to be installed as standalone similarly to production build. Example of a development build which is a pointer to download the build (do try to load it in Expo dev-client) `https://expo.dev/register-device/46a...` Example of a link generated from a `npx expo start --dev-client`: `exp+onruncurrent://expo-development-client/?url=http%3A%2F%2F10.203.60.138%3A8081`
null
CC BY-SA 4.0
null
2023-03-01T11:42:49.290
2023-03-01T11:42:49.290
null
null
5,795,943
null
75,603,300
2
null
75,602,710
0
null
What do you expect to happen? The data you use doesn't contain any values within the valid range of the histogram you request. You can include those by setting: ``` hist = band.GetHistogram(include_out_of_range=True) ``` That will put all values in the very last bin, as expected. You should probably either scale the data, or set the range/bins you want for the histogram, if the current result isn't what you want. See the documentation for all available options: [https://gdal.org/doxygen/classGDALRasterBand.html#aa21dcb3609bff012e8f217ebb7c81953](https://gdal.org/doxygen/classGDALRasterBand.html#aa21dcb3609bff012e8f217ebb7c81953) Alternatively, you can read the data and use something like Numpy (`np.histogram`) to calculate the histogram. You can test this for example with something like: ``` from osgeo import gdal import matplotlib.pyplot as plt fig, ax = plt.subplots(figsize=(8,3), facecolor="w") vmin = 200 vmax = 1400 n_bins = 50 step = int((vmax-vmin)/n_bins) ds = gdal.Open("/content/drive/MyDrive/work/6539633101/ClippedDup.tif") num_bands = ds.RasterCount for i in range(1, num_bands+1): band = ds.GetRasterBand(i) hist = band.GetHistogram(min=vmin, max=vmax, buckets=n_bins, include_out_of_range=True) ax.step(range(vmin, vmax, step), hist, label=f"Band {i}") ax.legend() ``` [](https://i.stack.imgur.com/SQCXg.png)
null
CC BY-SA 4.0
null
2023-03-01T11:47:56.913
2023-03-01T11:54:54.020
2023-03-01T11:54:54.020
1,755,432
1,755,432
null
75,603,302
2
null
59,237,562
0
null
You can use tensorflow within Python and create a custom model with your loss. This is in my experience/opinion the most accessible way to achieve custom behavior: Your model could look like this: ``` import tensorflow as tf from tensorflow.keras import Model from tensorflow.keras import losses class CustomLossModel(Model): def __init__(self, inner_model): super().__init__() self.model = inner_model # any tf.keras.Model that fit your needs self.cce = tf.keras.losses.CategoricalCrossentropy( from_logits=False, # you have to apply softmax at your last layer reduction=losses.Reduction.NONE ) self.loss_tracker = tf.keras.metrics.Mean(name='loss') def call(self, x, training=False): return self.model(x, training) # your loss implementation, I hope I got it right def custom_loss(self, y_true, y_pred, sim_matrix): cce_loss = self.cce(y_true, y_pred) sim_loss = cce_loss * sim_matrix total_loss = tf.reduce_mean( cce_loss * tf.reduce_sum(sim_loss, axis=-1)) return total_loss @tf.function def train_step(self, x, y, sim_matrix): with tf.GradientTape() as tape: pred = self(x, training=True) loss = self.custom_loss(y, pred, sim_matrix) gradients = tape.gradient(loss, self.trainable_variables) self.optimizer.apply_gradients( zip(gradients, self.trainable_variables)) self.loss_tracker.update_state(loss) return {self.loss_tracker.name: self.loss_tracker.result()} ``` IMPORTANT NOTE: with alternating the input parameters of `train_step` you will not be able to use `.fit` function built in for tensorflow classes `Model` and `Sequential`. You will have to write your own routine. There are other ways to rewrite the `train_step`, but I wanted to keep it simple. Example usage: ``` from tensorflow.keras import Sequential, Input from tensorflow.keras import layers imodel = Sequential() imodel.add(Input(10)) # 10 input features imodel.add(layers.Dense(100, activation="relu")) imodel.add(layers.Dense(4, activation="softmax")) # 4 classes clm = CustomLossModel(imodel) clm.compile(optimizer="adam") x = tf.random.normal((5, 10)) # 5 samples, 10 features y = tf.convert_to_tensor([[1.0, 0.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0], [0.0, 0.0, 1.0, 0.0], [0.0, 1.0, 0.0, 0.0]]) # 5 samples, 4 classes sim_matrix = tf.random.uniform((5, 5), 0, 1) # 5 x 5 matrix for the sample similarities indices = [[i, i] for i in range(5)] # similarity of sample to itself is 1.0, therefore this update is necessary for the example case sim_matrix = tf.tensor_scatter_nd_update(sim_matrix, indices, [1 for _ in range(5)]) # you can incorporate the call of the `train_step` within any loop # you just have to provide the needed tensors x, y, sim_matrix output = clm.train_step(x, y, sim_matrix) print(output) ``` This will generate the following output: `{'loss': <tf.Tensor: shape=(), dtype=float32, numpy=6.3116484>}` I hope, this will answer your question and that I implemented the loss, the way you intended. Otherwise, I can for sure make the required changes.
null
CC BY-SA 4.0
null
2023-03-01T11:48:06.650
2023-03-01T11:48:06.650
null
null
11,466,416
null
75,603,362
2
null
75,602,347
0
null
you have to overwrite the datagrid's template (it sounds a lot more complex than it actually is): ``` <Style TargetType="{x:Type DataGrid}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type DataGrid}"> <!-- extra attributes as example, but you can tweak whatever you want in the template, what is important is the "CornerRadius" here --> <Border Name="Border" Padding="{TemplateBinding Padding}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="3"> <ScrollViewer Name="DG_ScrollViewer" Focusable="false" CanContentScroll="True" IsDeferredScrollingEnabled="true"> <!-- here you can also overwrite the Scrollviewer's Template if you wish --> <ItemsPresenter SnapsToDevicePixels="True" /> </ScrollViewer> </Border> </ControlTemplate> </Setter.Value> </Setter> </Style> ``` this style should go in /theme/Generic.xaml or in your app.xaml (or in any xaml dictionary you want, as long as it is referenced correctly)
null
CC BY-SA 4.0
null
2023-03-01T11:54:17.383
2023-03-01T11:54:17.383
null
null
479,384
null
75,603,404
2
null
37,583,875
0
null
Invalidate Caches works for me
null
CC BY-SA 4.0
null
2023-03-01T11:58:33.567
2023-03-01T11:58:33.567
null
null
17,666,307
null
75,603,899
2
null
75,603,510
0
null
You must use the correct datatypes. The datatypes are a bit tricky and are most likly not fully support on python-opcua, which is deprecated. You must switch to asyncua and use the syncwrapper or go async. ``` from asyncua.sync import Client, ThreadLoop from asyncua import ua with ThreadLoop() as tloop: try: # Connect to the server client = Client("opc.tcp://192.168.0.17:4840", timeout=5000, tloop=tloop) client.set_user('user') client.set_password('password') client.connect() # load datatypes client.load_data_type_definitions() # prepare args arg1 = ua.ScanData() arg1.String = 'testdata' arg2 = 'URI' # Is string arg3 = ua.UInt16(0) arg4 = ua.UInt32(0) arg5 = ua.ByteString(b'') arg6 = ua.ByteString(b'') # Call a method method = client.get_node("ns=4;i=7014") parent_obj = "ns=4;i=5002" # Nodeid of the object obj = client.get_node(parent_obj) out = obj.call_method(method, arg1, arg2, arg3, arg4, arg5, arg6) print("Result: ", out) except Exception as e: print("Error: ", e) except KeyboardInterrupt: print("Programm stopped by user") finally: # Disconnect from the server print("Closing...") client.disconnect() exit(0) ```
null
CC BY-SA 4.0
null
2023-03-01T12:42:54.333
2023-03-01T13:58:41.440
2023-03-01T13:58:41.440
9,417,352
9,417,352
null
75,604,180
2
null
36,473,479
0
null
What I did to fix my problems with Jenkins not being able to find 'cmd', 'python' or 'poetry' was modify the Environment variables section of Global properties: [](https://i.stack.imgur.com/gSXhO.png) Name = Path Value = C:\Users\yourusername\AppData\Local\Programs\Python\Python39;C:\Windows\System32;C:\Users\yourusername\AppData\Roaming\Python\Scripts I was getting error messages like these: 'cmd' is not recognized as an internal or external command, and 'python' is not recognized as an internal or external command,
null
CC BY-SA 4.0
null
2023-03-01T13:09:52.640
2023-03-01T13:09:52.640
null
null
305,315
null
75,604,323
2
null
75,604,179
0
null
For more help you should plain the part of your code which the error is occured ther; but, when you see the error of: `Object reference not set to an instance of an object` It means that for example anywhere in your codes, you typed sth like this: ``` var result = myVariable.myProperty; ``` But the problem is that the variable which named `myVariable` while compiling and so the program won't access to the property of `myProperty` of the and object! Probably you should refactor your code.
null
CC BY-SA 4.0
null
2023-03-01T13:24:37.777
2023-03-01T13:24:37.777
null
null
8,744,153
null
75,604,419
2
null
75,604,254
2
null
According to the [docs](https://quarto.org/docs/presentations/revealjs/advanced.html#stack-layout) `.r-stack` > is intended to be used together with to incrementally reveal elements. Hence, to make `.r-stack` work you have wrap your plots in `fragements`. Note: I used different widths and heights to make the stacking of the plots visible. ``` --- title: "r-stack with graphs in Quarto" format: revealjs --- ## Example slide ```{r} library(ggplot2) library(plotly) ``` ::: {.r-stack} ::: {.fragment} ```{r fig.width=4, fig.height=5} p1 <- ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width)) + geom_point() ggplotly(p1) ``` ::: ::: {.fragment} ```{r fig.width=5, fig.height=4} p2 <- ggplot(iris, aes(x = Petal.Length, y = Petal.Width)) + geom_point() ggplotly(p2) ``` ::: ::: ``` [](https://i.stack.imgur.com/s6bPb.png)
null
CC BY-SA 4.0
null
2023-03-01T13:32:50.617
2023-03-01T13:32:50.617
null
null
12,993,861
null
75,604,456
2
null
60,484,080
0
null
If you are using `KIND`, then you need to install [MetalLB](https://kind.sigs.k8s.io/docs/user/loadbalancer/) on top of it first. Then, your `istio-ingressgateway` will get an external IP assigned if it is of type `LoadBalancer`. Hopefully, this helps.
null
CC BY-SA 4.0
null
2023-03-01T13:36:43.360
2023-03-01T13:36:43.360
null
null
10,658,507
null
75,604,565
2
null
9,484,056
0
null
bumping a very old post but still relevant as we ran into this as well. Our query was way too long (6.5 hrs) and used a derived table on some bigger tables. The estimates were that the derived table produced 1 row and so did everything on top of that. As this was clearly not true we also updated all statistics with full scan. No result. When we had the actual plan it was massivly underestimating the number of rows and doing a nested loop on 20 million by 20 million rows that took up most of the time. Also huge spills to disk as well. The expected parallel query was not there, all was executed single threaded. When i took an estimated plan of the derived table (isolated query) it directly showed a parallel plan. Putting the derived table in a temp table and using that for the main query did everything parallel and wasfinished in 30 minutes with adding anindex on the temp table in the batch. I am thinking that derived tables are threated like a black box and therefore get the guessed 1 row return. This will affect your query more and more as the actual numbers of rows deviate more. EDIT: a simple setup with a few of the large tables in a derived table was going parallel. So it is not a black box where the CBO cant get grip on. A comparison with an identical query with just plain joins was faster, the derived query had 58% cost compared to the regular joins way (with 42% cost relative to the batch, so looking to be faster than derived). Still puzzled about the original query going bad tho...
null
CC BY-SA 4.0
null
2023-03-01T13:47:04.393
2023-03-01T15:03:26.893
2023-03-01T15:03:26.893
17,725,503
17,725,503
null
75,604,628
2
null
59,717,707
0
null
Besides enabling Anonymous Sign-In method like several people already answered before me, make sure to check `Enable create (sign-up)` in the `User actions` section of the Authentication Settings of the Firebase console. [](https://i.stack.imgur.com/72Txg.png)
null
CC BY-SA 4.0
null
2023-03-01T13:52:32.830
2023-03-01T13:52:32.830
null
null
408,251
null
75,605,113
2
null
73,995,846
0
null
go to your terminal --> `npm uninstall stream chat stream-chat-react` it will delete the current version Then write --> `npm install stream-chat stream-chat-react@9` hit enter that will definitely solve your problem
null
CC BY-SA 4.0
null
2023-03-01T14:34:47.813
2023-03-01T14:34:47.813
null
null
21,312,392
null
75,605,318
2
null
74,979,500
0
null
As seen from this bug report [click me](https://issuetracker.google.com/issues/228201899) you need to update the emulator version, this is the upgrade [guide](https://developer.android.com/studio/emulator_archive)
null
CC BY-SA 4.0
null
2023-03-01T14:52:02.210
2023-03-01T14:52:02.210
null
null
12,313,034
null
75,606,077
2
null
46,582,604
0
null
What you need to do is to set the height and/or width of the view you're trying to hide to zero.Kotlin code: ``` override fun onBindViewHolder(holder: ChildMainHolder, position: Int) { if(your_condition){ val params = LinearLayout.LayoutParams(0, 0) holder.itemView.layoutParams = params } else{ //todo: Do your regular stuff } } ``` This is just the kotlin way of what Taslim Oseni did in the first answer all the credits for him.
null
CC BY-SA 4.0
null
2023-03-01T15:56:24.113
2023-03-01T15:59:01.457
2023-03-01T15:59:01.457
4,826,457
14,935,078
null
75,606,365
2
null
75,606,261
2
null
the white bar exist here in the div "skewed-box", and that div is betwenn the two divs that you've mentionned above :home-page and home-intro ``` border-color: transparent #fcf4d4 transparent transparent; border-style: solid; ```
null
CC BY-SA 4.0
null
2023-03-01T16:20:20.163
2023-03-01T16:20:20.163
null
null
11,772,682
null
75,606,523
2
null
75,606,426
0
null
Conditional formatting doesn't use 'If' statements because it's understood, so you were closer with your =AND statements. Try: ``` =AND($A2<=TODAY(),ISBLANK($B2)) ``` Place this formula in the conditional formatting and adjust the cell references for A2 and B2 as needed. Then set the formatting and apply it to the rest of the column.
null
CC BY-SA 4.0
null
2023-03-01T16:34:09.520
2023-03-01T16:34:09.520
null
null
19,744,411
null
75,606,631
2
null
75,564,465
0
null
Ok, so with regards your refresh search your throwing out the html and then just re-adding back in. I don't think you can just call DataTable at the end of the partial view. Basically the easiest thing todo here is to replace ``` success: function(data) { $('#SearchButton').prop("disabled", false); $("#PartialViewId").html(data); } ``` with ``` success: function(data) { $('#SearchButton').prop("disabled", false); $("#PartialViewId").html(data); $('#example').DataTable({}); } ``` Then in the partial view, remove that part of code all together. In the longer term I would look into the datatables ajax functions such as Here [https://datatables.net/manual/ajax](https://datatables.net/manual/ajax) and [https://datatables.net/reference/api/ajax.reload()](https://datatables.net/reference/api/ajax.reload()) there are options within datatables to handle search and refresh as well - so that could be useful to your development as a developer.
null
CC BY-SA 4.0
null
2023-03-01T16:44:37.183
2023-03-01T16:44:37.183
null
null
4,054,808
null
75,607,022
2
null
75,606,785
1
null
You need to have the same number of data and labels to paint all data in the chart. If less, the chart will only paint the first data in the dataset to fill the provided labels. If you do not add all the labels, it is impossible to know which data is linked to each date. Maybe you want to paint all data and only show some labels in the chart. That is possible. But you need all the labels and then filter with an axis callback with Chart.JS to show only that you want. For your situation, you need to add all the labels. You can try one of these options: - - Also, I think Chart.JS only show some labels that fit in chart´s space, so if you use the first option (and hide the hour using a date formatter, if you do not want to show it), maybe you do not need the callback
null
CC BY-SA 4.0
null
2023-03-01T17:22:53.280
2023-03-01T17:22:53.280
null
null
15,277,024
null
75,607,319
2
null
75,415,650
0
null
Try updating the `@progress/kendo-angular-dateinputs` version (the latest at the moment of writing the answer is ) as well as the installed Kendo Theme (). > Note that these versions don't support Angular 12 More details on how to update the installed Kendo packages to their latest versions can be found here: [https://www.telerik.com/kendo-angular-ui/components/installation/up-to-date/#toc-updating-to-latest-versions](https://www.telerik.com/kendo-angular-ui/components/installation/up-to-date/#toc-updating-to-latest-versions)
null
CC BY-SA 4.0
null
2023-03-01T17:53:07.980
2023-03-01T17:53:07.980
null
null
10,469,244
null
75,607,346
2
null
72,617,535
0
null
I'm using cookiecuter + django and it's awesome as well as a kick on your butt. jaja but since I was interesting on going on with my project I just commented this lines at base.py (in your case it would be at settings.py) ``` REST_FRAMEWORK = { "DEFAULT_AUTHENTICATION_CLASSES": ( # "rest_framework.authentication.SessionAuthentication", # "rest_framework.authentication.TokenAuthentication", ), # "DEFAULT_PERMISSION_CLASSES": ("rest_framework.permissions.IsAuthenticated",), "DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema", } ``` and this worked for me just to test my endpoints out, I know it is not the best way but works, I'll update my answer later with a better aproach.
null
CC BY-SA 4.0
null
2023-03-01T17:55:44.980
2023-03-02T10:30:43.280
2023-03-02T10:30:43.280
17,562,044
14,243,237
null
75,607,345
2
null
75,605,486
1
null
Here is a starting point. I have chosen `coord_fixed` to get the same ratio for the axis - that looks better and comes closer to the plot in your link above. A separate DF was created for the annotations of the `geom_line`s. Additional variables were created and added to the original . Those variables (`two_times`, ..) were used for making the lines. The was made longer and subset of this were used to make the `geom_point`, `geom_line` and `geom_text_`. The axis were scaled with `scale_..._log10`. [](https://i.stack.imgur.com/fijVS.png) ``` library(tidyverse) # library(ggplot2) library(ggrepel) mpd2020 <- data.frame( "Pais" = c("Algeria", "Argentina", "Australia", "Austria", "Belgium", "Brazil", "Canada", "Chile", "China", "China, Hong Kong SAR", "Colombia", "Czechoslovakia", "D.P.R. of Korea", "Denmark", "Egypt", "Finland", "France", "Germany", "Indonesia", "Iran (Islamic Republic of)", "Iraq", "Ireland", "Italy", "Jamaica", "Japan", "Jordan", "Lebanon", "Malaysia", "Mexico", "Morocco", "Myanmar", "Nepal", "Netherlands", "New Zealand", "Norway", "Peru", "Philippines", "Poland", "Portugal", "Republic of Korea", "Saudi Arabia", "South Africa", "Spain", "Sri Lanka", "Sweden", "Syrian Arab Republic", "Taiwan, Province of China", "Thailand", "Tunisia", "Turkey", "United Kingdom", "United States", "Uruguay", "Venezuela (Bolivarian Republic of)", "Viet Nam"), `PIBpc 1820` = c(685, 1591, 826, 1941, 2358, 867, 1441, 824, 882, 1132, 850, 1353, 752.7256, 2031, 956, 1313, 1809, 1572, 827, 877, 877, 1398, 2665.0738, 1117, 1317, 877, 1084, 961, 1007, 685, 803, 641, 3006, 826, 1384, 835, 931, 818, 1665.4262, 815.7743, 797, 1188, 1600, 877, 1415, 1084, 966, 909, 685, 974, 3306, 2674.048, 1983, 968, 840), `PIBpc 2018` = c(14228.025, 18556.3831, 49830.7993, 42988.0709, 39756.2031, 14033.5656, 44868.7435, 22104.7654, 13101.7064, 50839.3714, 13545.0495, 29600.5982, 1596.3517, 46312.3442999999, 11957.2122, 38896.7005, 38515.9193, 46177.6187, 11851.7372, 17011.3042, 12835.8126, 64684.302, 34364.1682, 7272.9805, 38673.8081, 11506.3383, 12558.9669, 24842.3559, 16494.079, 8451.1355, 5838.2173, 2727.4238, 47474.1095, 35336.1363, 84580.1362, 12310.0847, 8139.1395, 27455.237, 27035.6002, 37927.6095, 50304.7502, 12165.7948, 31496.52, 11662.9064, 45541.8921, 3349.4597, 44663.8642, 16648.6237, 11353.8865, 19270.2202, 38058.0856, 55334.7394, 20185.836, 10709.9506, 6814.1423) ) row.names(mpd2020) <- mpd2020$País df <- mpd2020 |> mutate( two_times = PIBpc.1820 * 2, ten_times = PIBpc.1820 * 10, fifty_times = PIBpc.1820 * 50 ) #| create a Df for annotations at lines df_anno <- tibble( x = 1800, y = c(18000, 3600, 90000), label = c( "10 times more", "2 times", "50 times" ) ) #| make DF long ddf <- df |> pivot_longer(cols = -c(Pais, PIBpc.1820)) ggplot(ddf[ddf$name == "PIBpc.2018", ], aes(x = `PIBpc.1820`, y = value)) + geom_point( aes(color = Pais, fill = Pais), size = 2.5, alpha = 0.5 ) + geom_line( data = ddf[ddf$name != "PIBpc.2018", ], aes(y = value, group = name), color = "grey", linetype = "dashed" ) + scale_y_log10() + scale_x_log10() + theme_bw() + theme(legend.position = "none") + labs( title = "Variación PIB per cápita.", subtitle = "1820 - 2018. Precios PIB pc 2011", x = "PIBpc 1820", y = "PIBpc 2018", caption = "Fuente: Maddison Project Database 2020" ) + geom_text_repel( data = ddf[ddf$name == "PIBpc.2018", ], aes(x = PIBpc.1820, y = value, label = Pais), max.overlaps = getOption("ggrepel.max.overlaps", default = 15), size = 2 ) + geom_text( data = df_anno, aes(x = x, y = y, label = label, angle = 45), vjust = -1, color = c("green", "gray", "gray") ) + coord_fixed(ylim = c(1500, 92000)) #> Warning: ggrepel: 12 unlabeled data points (too many overlaps). Consider #> increasing max.overlaps ```
null
CC BY-SA 4.0
null
2023-03-01T17:55:27.623
2023-03-01T18:14:35.213
2023-03-01T18:14:35.213
4,282,026
4,282,026
null
75,607,596
2
null
75,567,744
0
null
You're after the Light Estimation feature This feature uses the camera's image feed to estimate the environmental lighting conditions in real-time. To light your 3D AR models based on the real-world lighting using the Light Estimation feature, you can follow these steps: - - - [https://youtu.be/nw6-U_mSvQQ](https://youtu.be/nw6-U_mSvQQ) With these steps, your 3D models will be lit based on the real-world lighting conditions detected by the AR camera! Their shadows should be update dynamically as the real-world lighting changes. Hope this helps! Let me know if it doesn't work
null
CC BY-SA 4.0
null
2023-03-01T18:24:01.327
2023-03-01T18:24:01.327
null
null
21,121,257
null
75,607,633
2
null
25,797,951
1
null
I've just came around the same annoying issue. After looking at the Reference Source of .NET Framework I've found some hints that in previous versions the `SelectedValue` property sometimes was not updated before the `SelectionChanged` event raises. Microsoft has fixed this "bug" with the release of .NET 4.7.1. Source: [https://learn.microsoft.com/en-us/dotnet/framework/migration-guide/retargeting/4.7-4.7.1#selector-selectionchanged-event-and-selectedvalue-property](https://learn.microsoft.com/en-us/dotnet/framework/migration-guide/retargeting/4.7-4.7.1#selector-selectionchanged-event-and-selectedvalue-property)
null
CC BY-SA 4.0
null
2023-03-01T18:29:49.287
2023-03-01T18:29:49.287
null
null
6,694,684
null
75,607,881
2
null
75,607,499
0
null
Using FRegex : ``` $filename = "c:\temp\test.txt" $pattern = '^.*\((?<days>\d+).*' $certificates = Select-String -Path $filename -Pattern $pattern $table = [System.Collections.ArrayList]::new() foreach($certificate in $certificates.Matches) { $newRow = New-Object -TypeName psobject $newRow | Add-Member -NotePropertyName Days -NotePropertyValue ([int]$certificate.Groups["days"].Value) $newRow | Add-Member -NotePropertyName Certificate -NotePropertyValue $certificate.Value $table.Add($newRow) | Out-Null } $table = $table | Sort-Object -Property Days -Descending $table ``` Used following input file ``` ABC already expirer (304 days ago) CDE already expirer (200 days ago) FGH already expirer (180 days ago) IJK already expirer (40 days ago) LMN already expirer (80 days ago) ``` Results : ``` Days Certificate ---- ----------- 304 ABC already expirer (304 days ago) 200 CDE already expirer (200 days ago) 180 FGH already expirer (180 days ago) 80 LMN already expirer (80 days ago) 40 IJK already expirer (40 days ago) ```
null
CC BY-SA 4.0
null
2023-03-01T19:00:28.713
2023-03-01T19:00:28.713
null
null
5,015,238
null
75,607,891
2
null
75,607,763
0
null
One dot = "current directory" Two dots = "Up one level" So when you're giving the path "../public/*" you're telling your script to: - - What it looks like from your screenshot is that you should give the following path: ../pictures/X.jpg
null
CC BY-SA 4.0
null
2023-03-01T19:01:06.800
2023-03-01T19:02:14.507
2023-03-01T19:02:14.507
3,053,927
3,053,927
null
75,607,894
2
null
75,607,763
0
null
If you are using `public` folder to upload the images, then you can simply use: ``` <img src="/pictures/logo.svg" className="App-logo" alt="logo" /> ``` Notice that you can omit the `public` and `.` from the url
null
CC BY-SA 4.0
null
2023-03-01T19:01:17.250
2023-03-01T19:01:17.250
null
null
3,183,454
null
75,607,984
2
null
51,149,151
0
null
You can add the following to your makeUIView function, both of them are needed: ``` searchBar.semanticContentAttribute = .forceRightToLeft searchBar.searchTextField.textAlignment = .right ```
null
CC BY-SA 4.0
null
2023-03-01T19:11:00.207
2023-03-01T19:11:00.207
null
null
11,433,604
null
75,607,988
2
null
61,200,747
1
null
As noted in a comment by the OP: > I found the reason, Because it's 32 bits build.The registry should have `Wow6432Node`: `[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\SideBySide] "PreferExternalManifest"=dword:00000001`liang gong Apr 16, 2020 at 2:16
null
CC BY-SA 4.0
null
2023-03-01T19:11:35.253
2023-03-01T19:11:35.253
null
null
3,195,477
null
75,608,147
2
null
75,596,239
0
null
What you have provided is a symlink, that is a link to another file, probably not even in the repository. If you click on it, it should just show you the path that it links to. That can be something within your repo, or something arbitrary that does not exist. If you want it to actually contain the files that it contains, figure out what it points to, then delete the symlink and copy the linked folder to that position. See [this](https://www.howtogeek.com/287014/how-to-create-and-use-symbolic-links-aka-symlinks-on-linux/) for an introduction to what symlinks are. --- , like @jessehouwing suggested. Those are called subrepositories or submodules and look like this, showing a pointed-to commit: [](https://i.stack.imgur.com/cvz9q.png) --- [source repo of the screenshot](https://github.com/clawpack/tidal-examples) (arbitrary choice)
null
CC BY-SA 4.0
null
2023-03-01T19:31:20.587
2023-03-01T19:36:22.440
2023-03-01T19:36:22.440
10,875,738
10,875,738
null
75,608,558
2
null
10,028,182
1
null
The easiest way to do it using only HTML and CSS is by using the following code: ``` .graph { display: flex; position: relative; justify-content: center; align-items: center; margin: 50px 0; width: 150px; text-align: center; } .pie { width: 150px; aspect-ratio:1; position:absolute; } .pie:before, .pie:after { content:""; position:absolute; border-radius:50%; } .pie:before { inset:0; background: radial-gradient(farthest-side,var(--c) 98%,#0000) top/var(--b) var(--b) no-repeat, conic-gradient(var(--c) calc(var(--p)*1%),#0000 0); } .no-round:before { background-size:0 0,auto; } .no-round:after { content:none; } ``` ``` <div style="display: flex; justify-content: center"> <div style="display: flex; flex-flow: wrap; justify-content: space-around; max-width: 400px; width: 100%"> <div class="graph" title="some title to display on hover"> <div class="pie no-round" style="--p:83;--c:#FC4819;--b:15px"></div> <div class="pie no-round" style="--p:11;--c:#0089B0;--b:15px; rotate: 0.83turn"></div> <div class="pie no-round" style="--p:6;--c:#23B032;--b:15px;rotate: 0.94turn"></div> </div> </div> </div> ``` You can add as many slices as you want to, just by adding a new `div class='pie no-round'` inside the `div class='graph'`. The --p attribute in the div pie block is going to set it's size, and the rotate is going to set it's starting point. So for example, if you want a chart with 2 slices, one with 60% and another with 40%, the first will have `--p:60`, and the second will have: `--p:40;rotate:0.60turn`. If you want 3 slices (50%, 40%, 10%), you have to sum the first 2 values to set the correct rotate attribute for the third one, the result would like like this: First pie: `--p:50` Second pie: `--p:40;rotate:0.50turn` Third pie: `--p:10;rotate:0.90turn # 0.90 being 50 + 40` You can customize from there, you can probably add the labels inside each slice like this: ``` .graph { display: flex; position: relative; justify-content: center; align-items: center; margin: 50px 0; width: 150px; text-align: center; } .label { position: absolute; color: white; padding-top: 5%; padding-left: 5%; font-size: 0.8rem; } .pie { width: 150px; aspect-ratio:1; position:absolute; } .pie:before, .pie:after { content:""; position:absolute; border-radius:50%; } .pie:before { inset:0; background: radial-gradient(farthest-side,var(--c) 98%,#0000) top/var(--b) var(--b) no-repeat, conic-gradient(var(--c) calc(var(--p)*1%),#0000 0); } .no-round:before { background-size:0 0,auto; } .no-round:after { content:none; } ``` ``` <div style="display: flex; justify-content: center"> <div style="display: flex; flex-flow: wrap; justify-content: space-around; max-width: 400px; width: 100%"> <div class="graph" title="some title to display on hover"> <div class="pie no-round" style="--p:83;--c:#FC4819;--b:15px"><strong class="label">83%</strong></div> <div class="pie no-round" style="--p:11;--c:#0089B0;--b:15px; rotate: 0.83turn"><strong class="label" style="rotate: -0.83turn">11%</strong></div> <div class="pie no-round" style="--p:6;--c:#23B032;--b:15px;rotate: 0.94turn"><strong class="label" style="rotate: -0.94turn">6%</strong></div> </div> <div class="graph" title="some title to display on hover"> <div class="pie no-round" style="--p:100;--c:#FC4819;--b:15px"></div> <div class="pie no-round" style="--p:0;--c:#23B032;--b:15px; rotate: 0.100turn"></div> <h4 style="max-width: 100px">0% Releases Distributed</h4> </div> </div> </div> ``` You can add a center label if you want, b doing something like this: ``` .graph { display: flex; position: relative; justify-content: center; align-items: center; margin: 50px 0; width: 150px; text-align: center; } .pie { width: 150px; aspect-ratio:1; position:absolute; } .pie:before, .pie:after { content:""; position:absolute; border-radius:50%; } .pie:before { inset:0; background: radial-gradient(farthest-side,var(--c) 98%,#0000) top/var(--b) var(--b) no-repeat, conic-gradient(var(--c) calc(var(--p)*1%),#0000 0); -webkit-mask:radial-gradient(farthest-side,#0000 calc(99% - var(--b)),#000 calc(100% - var(--b))); mask:radial-gradient(farthest-side,#0000 calc(99% - var(--b)),#000 calc(100% - var(--b))); } .no-round:before { background-size:0 0,auto; } .no-round:after { content:none; } ``` ``` <div style="display: flex; flex-flow: wrap; justify-content: space-around; max-width: 400px; width: 100%"> <div class="graph" title="some title to display on hover"> <div class="pie no-round" style="--p:83;--c:#FC4819;--b:15px"></div> <div class="pie no-round" style="--p:11;--c:#0089B0;--b:15px; rotate: 0.83turn"></div> <div class="pie no-round" style="--p:6;--c:#23B032;--b:15px;rotate: 0.94turn"></div> <h4 style="max-width: 100px">6% something</h4> </div> <div class="graph" title="some title to display on hover"> <div class="pie no-round" style="--p:100;--c:#FC4819;--b:15px"></div> <div class="pie no-round" style="--p:0;--c:#23B032;--b:15px; rotate: 0.100turn"></div> <h4 style="max-width: 100px">0% something else</h4> </div> </div> ```
null
CC BY-SA 4.0
null
2023-03-01T20:17:03.457
2023-03-01T21:06:33.227
2023-03-01T21:06:33.227
6,279,209
6,279,209
null
75,608,713
2
null
75,284,358
0
null
Changing ``` implementation 'com.google.android.material:material:1.8.0' ``` to ``` implementation 'com.google.android.material:material:1.7.0' ``` in the file worked for me.
null
CC BY-SA 4.0
null
2023-03-01T20:33:47.093
2023-03-01T20:33:47.093
null
null
21,314,501
null
75,609,073
2
null
75,197,519
0
null
I finally got a solution. Basically, if anyone has a similar problem, you must REPAIR your SQL SERVER installation. As I was using Visual Studio Data Tools 2017, I thought that we didn't have it installed, so I didn't care, but YES, STILL, for using DTEXEC you need SQL SERVER.
null
CC BY-SA 4.0
null
2023-03-01T21:16:08.353
2023-03-01T21:16:08.353
null
null
17,736,082
null
75,609,348
2
null
75,313,786
0
null
It appears to be a compiler bug. Intel, Nvidia, and NAG responded and filed bug reports for this issue. Their IDs are CMPLRLLVM-44748 (Intel) and TPR #33180 (Nvidia). This issue can be avoided by removing the `elemental` keyword before `FG_Assign` or by iterating over the elements of arrays (so that the elemental property of `FG_Assign` won't be used). For the second solution `arr_=arr-1.` should be replaced with ``` do k=1,SIZE(arr) arr_(k)=arr(k)-1. end do ```
null
CC BY-SA 4.0
null
2023-03-01T21:48:52.330
2023-03-01T22:59:52.407
2023-03-01T22:59:52.407
21,099,067
21,099,067
null
75,609,653
2
null
75,603,133
0
null
Probably the easiest thing to do is run a self-hosted build agent on premise which has connectivity to the network share. You can have the on-prem step run by the on-prem agent and have it publish the artifact which can then be used by the existing AKS agents for example. Otherwise you need some network connectivity between the AKS cluster and the on-prem network share, either by VPN or Expressroute.
null
CC BY-SA 4.0
null
2023-03-01T22:33:47.917
2023-03-01T22:33:47.917
null
null
6,187,855
null
75,609,659
2
null
75,609,069
0
null
You will have to adjust the modifiers on the GridItem. For example this would do the trick, and then would need to get readjusted to your liking and might need some spacing. Here you can read more about flexible, adaptive and fixed: [https://developer.apple.com/documentation/swiftui/griditem](https://developer.apple.com/documentation/swiftui/griditem) ``` columns: [ GridItem(.flexible(minimum: 0, maximum: 300), alignment: .leading), GridItem(.flexible(minimum: 0, maximum: 100), alignment: .center), GridItem(.flexible(minimum: 0, maximum: 300), alignment: .leading), ], ```
null
CC BY-SA 4.0
null
2023-03-01T22:34:31.373
2023-03-01T22:34:31.373
null
null
13,276,628
null
75,609,670
2
null
75,597,494
0
null
It's in the response stream ``` Catch ex As WebException Dim rep As HttpWebResponse = ex.Response Using rdr As New StreamReader(rep.GetResponseStream()) Return rdr.ReadToEnd() End Using End Try ```
null
CC BY-SA 4.0
null
2023-03-01T22:36:40.030
2023-03-01T22:36:40.030
null
null
3,043
null
75,609,826
2
null
71,598,623
0
null
Make sure to install (see [https://pypi.org/project/pyusb/](https://pypi.org/project/pyusb/)) with `pip install pyusb` and not . Then you should be able to `import usb` and use it as expected.
null
CC BY-SA 4.0
null
2023-03-01T22:57:35.313
2023-03-01T22:57:35.313
null
null
10,998,290
null
75,609,957
2
null
75,609,282
1
null
I'm just going to go out on a limb here and make a wild guess that your calculated column `Month_Name` is based on the date in this `Complete Date` column. In which case what you see in the visual is perfectly correct, since it would count 8 rows for `Month_Name = "Feb"` and 2 rows for `Month_Name = "Jan"`. The actual value of `Request Date` does not matter at all, just the row count for the chosen dimension value.
null
CC BY-SA 4.0
null
2023-03-01T23:18:10.297
2023-03-01T23:24:28.583
2023-03-01T23:24:28.583
16,528,000
16,528,000
null
75,610,142
2
null
75,605,986
0
null
To scrape the and information of the products from the [website](https://www.compracerta.com.br/celulares-e-smartphones?page=1) you can use [list comprehension](https://stackoverflow.com/a/72565083/7429447) and you can use the following [locator strategies](https://stackoverflow.com/questions/48369043/official-locator-strategies-for-the-webdriver): - Using :``` driver.get('https://www.compracerta.com.br/celulares-e-smartphones?page=1') WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR, "button#onetrust-accept-btn-handler"))).click() images = [my_elem.get_attribute("href") for my_elem in driver.find_elements(By.CSS_SELECTOR, "article.box-produto a.prod-info")] prices = [my_elem.text for my_elem in driver.find_elements(By.CSS_SELECTOR, "article.box-produto a.prod-info p span.por > span")] for i,j in zip(images, prices): print(f"Image: {i} Price: {j}") driver.quit() ``` - : You have to add the following imports :``` from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC ``` - Console Output:``` Image: https://www.compracerta.com.br/iphone-12-64gb-azul-2081266/p Price: R$ 3.849,00 Image: https://www.compracerta.com.br/smartphone-samsung-galaxy-a03s-64gb-4gb-ram-4g-wi-fi-dual-chip-camera-tripla---selfie-5mp-6-5--preto-2074884/p Price: R$ 779,00 Image: https://www.compracerta.com.br/iphone-11-128gb---preto-2049241/p Price: R$ 3.299,00 Image: https://www.compracerta.com.br/iphone-11-128gb---branco-2049240/p Price: R$ 3.299,00 Image: https://www.compracerta.com.br/smartphone-motorola-moto-g32-128gb-4gb-ram-65---preto-2110182/p Price: R$ 999,00 Image: https://www.compracerta.com.br/smartphone-motorola-moto-g32-128gb-4gb-ram-65---rose-2110183/p Price: R$ 999,00 Image: https://www.compracerta.com.br/smartphone-motorola-moto-edge-30-ultra-256gb-12gb-ram-camera-tripla-200-mp-ois-50-mp-12-mp-tela-6-7--white-2103032/p Price: R$ 4.999,00 Image: https://www.compracerta.com.br/smartphone-motorola-moto-g52-128gb-4gb-ram-6-6%E2%80%9D-cam-tripla-50mp-8mp-2mp-selfie-16mp---branco-2096318/p Price: R$ 1.349,00 Image: https://www.compracerta.com.br/moto-g82-5g-2096006/p Price: R$ 1.999,00 ```
null
CC BY-SA 4.0
null
2023-03-01T23:47:33.450
2023-03-01T23:47:33.450
null
null
7,429,447
null
75,610,149
2
null
41,610,273
0
null
My solution to a similar problem was to set on [bootstrap-select](https://github.com/snapappointments/bootstrap-select/). This is a highly flexible multiselect option for bootstrap. ![screenshot](https://i.stack.imgur.com/vhHTC.png) The second trick is to use `flex` with `flex-direction: columns` to define the columns and use the `.divide` class (which is generated when using `optgroup`) to set a new line. ``` $('.form-select-vidconvert').selectpicker(); ``` ``` .row { padding: 8px 20px; min-height: 200px } .form-select-vidconvert { border-radius: 18px; } .bootstrap-select > .dropdown-menu { height: 160px !important; margin-left: 0px; } .bootstrap-select > .dropdown-menu.open > .dropdown-menu { display: flex; flex-wrap: wrap; flex-direction: column; height: 100%; /* has to be set for the divider to work */ } .bootstrap-select > .dropdown-menu.open > .dropdown-menu li { flex-grow: 0; width: 50%; } .bootstrap-select > .dropdown-menu.open > .dropdown-menu li.divider { //outline: 1px dotted red; /* debug */ flex-basis: 100%; width: 0; height: unset; } ``` ``` <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/css/bootstrap.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/css/bootstrap-theme.min.css"> <link href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.12.4/dist/css/bootstrap-select.min.css" rel="stylesheet"/> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/js/bootstrap.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.12.4/dist/js/bootstrap-select.min.js"></script> <div class="row"> <div class="col-md-6 col-md-offset-3"> <select class="form-control form-select-vidconvert" title="Multiselect example with two columns"> <optgroup label="Category 1"> <option>1</option> <option>2</option> <option>3</option> </optgroup> <optgroup label="Category 2"> <option>1</option> <option>2</option> <option>3</option> </optgroup> </select> </div> </div> ```
null
CC BY-SA 4.0
null
2023-03-01T23:48:40.117
2023-03-01T23:54:19.813
2023-03-01T23:54:19.813
3,001,970
3,001,970
null
75,610,346
2
null
75,479,432
0
null
So it turns out I was setting a borderColor attribute to one of my datasets, which when set seems to disable chart.js from auto-coloring the rest of the datasets. See here: [https://www.chartjs.org/docs/latest/general/colors.html#dynamic-datasets-at-runtime](https://www.chartjs.org/docs/latest/general/colors.html#dynamic-datasets-at-runtime) ``` const ctx = document.getElementById("myChart"); const myChart = new Chart(ctx, { type: 'line', data: { labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"], datasets: [{ label: '# of Votes 1', data: [12, 19, 3, 5, 2, 3] }, { label: '# of Votes 2 ', data: [10, 15, 13, 8, 4, 6], borderColor: "green" } ] }, options: {} }); console.log(myChart.data.datasets[0].borderColor) ``` ``` <script src="https://npmcdn.com/chart.js@4.2.1/dist/chart.umd.js"></script> <div class="myChartDiv"> <canvas id="myChart" width="400" height="400"></canvas> </div> ``` Chart.js do have an option to forceOverride the color and force each dataset to get a color, but as it says, this forceOverride option, overrides the custom color I was giving to one dataset. ``` const ctx = document.getElementById("myChart"); const myChart = new Chart(ctx, { type: 'line', data: { labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"], datasets: [{ label: '# of Votes 1', data: [12, 19, 3, 5, 2, 3] }, { label: '# of Votes 2 ', data: [10, 15, 13, 8, 4, 6], borderColor: "green" } ] }, options: { plugins: { colors: { forceOverride: true } } } }); console.log(myChart.data.datasets[0].borderColor) ``` ``` <script src="https://npmcdn.com/chart.js@4.2.1/dist/chart.umd.js"></script> <div class="myChartDiv"> <canvas id="myChart" width="400" height="400"></canvas> </div> ``` There are plugins that can handle this situation, such as "autocolors", but I found that when viewing the borderColor property for the dataset it was returning an array of colors for every point of the dataset (i.e. if some points overlapped, the corresponding element in the array would be a different color). In then end I decided to supply my own color palette and make sure that every dataset was assigned their own borderColor as I was generating the datasets.
null
CC BY-SA 4.0
null
2023-03-02T00:35:59.170
2023-03-02T00:35:59.170
null
null
3,303,816
null
75,610,691
2
null
75,610,651
0
null
You could try this approach, assuming these two lists are all in the last positions: Using the lsts[:] syntax is to assign the result back to original lists. ``` # List Comprehension to loop and get rid of last item. lsts[:] = [sub[:-1] for sub in lsts] #lsts is your original lists. ```
null
CC BY-SA 4.0
null
2023-03-02T01:59:07.627
2023-03-02T02:06:55.257
2023-03-02T02:06:55.257
10,760,768
10,760,768
null
75,610,808
2
null
19,136,625
0
null
In Intellij click on the gear icon on the left side of the window, select Tree Appearence and then Flatten Packages and Compact Middle Packages.
null
CC BY-SA 4.0
null
2023-03-02T02:28:11.750
2023-03-02T02:28:11.750
null
null
5,983,151
null
75,611,040
2
null
75,610,651
0
null
You can loop thhrough the sublists and use `remove` (or `pop(-1)` if the values to remove are always present and always last in the sublist): ``` inf = float('inf') M = [ [ [0.0254667978733778, 0.007302640238776803], [0.0287586972117424, 0.011580605059862137], [0.03155571571551263, 0.009782221401110291], [0.025357562582939863, 0.01641937019303441], [0.021751650143414736, 0.02018721727654338], [0.03572308551520109, 0.009355328045785427], [0.013055980205535889, 0.03486280515789986], [0.023708383552730083, 0.02596351783722639], [0.012890402227640152, 0.03700174391269684], [0.0, inf]], [ [0.022236602380871773, 0.010978079866617918], [0.02360635856166482, 0.012177807278931141], [0.025357562582939863, 0.01641937019303441], [0.03572308551520109, 0.009355328045785427], [0.013055980205535889, 0.03486280515789986], [0.02809232717845589, 0.020170105039142072], [0.022387880366295576, 0.0260826856829226], [0.0254667978733778, 0.02442534826695919], [0.01855770405381918, 0.031348743475973606], [0.0, inf] ] ] ``` if the item to remove is not always there or not always last you can use remove in a loop: ``` toRemove = [0.0,inf] for sublist in M: if toRemove in sublist: sublist.remove(toRemove) ``` If the item to remove is always last and always present, you can use pop(-1): ``` for sublist in M: sublist.pop(-1) ``` output (content of M): ``` [[[0.0254667978733778, 0.007302640238776803], [0.0287586972117424, 0.011580605059862137], [0.03155571571551263, 0.009782221401110291], [0.025357562582939863, 0.01641937019303441], [0.021751650143414736, 0.02018721727654338], [0.03572308551520109, 0.009355328045785427], [0.013055980205535889, 0.03486280515789986], [0.023708383552730083, 0.02596351783722639], [0.012890402227640152, 0.03700174391269684]], [[0.022236602380871773, 0.010978079866617918], [0.02360635856166482, 0.012177807278931141], [0.025357562582939863, 0.01641937019303441], [0.03572308551520109, 0.009355328045785427], [0.013055980205535889, 0.03486280515789986], [0.02809232717845589, 0.020170105039142072], [0.022387880366295576, 0.0260826856829226], [0.0254667978733778, 0.02442534826695919], [0.01855770405381918, 0.031348743475973606]]] ```
null
CC BY-SA 4.0
null
2023-03-02T03:21:16.347
2023-03-02T03:36:01.640
2023-03-02T03:36:01.640
5,237,560
5,237,560
null
75,611,103
2
null
75,606,612
0
null
Make sure that you not enabled the newer forms designer. tools->options->Web forms designer: [](https://i.stack.imgur.com/ydqhM.png) also, check Web live preview, and turn that off. Also, you don't mention if you building as "any" cpu, x64, or x32. Try this: flip project to x32. Do a re-build all. If that builds, then try see if the UC can work. If not, then flip project back to x64, and again do a re-build all. This "flip" back, re-build, and then flip back to x64 often works. And I suppose for good measure, you could try "any" CPU. You find that this "flip" often lets you work. But, once you do a re-build all, and run? You often then faced with having to do the above flip again.
null
CC BY-SA 4.0
null
2023-03-02T03:33:01.227
2023-03-02T03:33:01.227
null
null
10,527
null
75,611,121
2
null
19,361,337
0
null
``` Base as ( select dept, count, ROW_NUMBER() OVER(order by count desc) as RowNum from SR ) select dept, count, sum(count) over(order by RowNum) as Cumulative from Base ```
null
CC BY-SA 4.0
null
2023-03-02T03:38:16.440
2023-03-02T03:38:16.440
null
null
9,087,250
null
75,611,245
2
null
75,525,710
0
null
The `GoogleService-Info.plist` file is normally required in an IOS app when you are using the Firebase SDK in your app. In your case are you using 1 or more Firebase packages in your Flutter app? If so you need to follow the instructions on the Firebase website which should generate this required file for you: [https://firebase.google.com/docs/flutter/setup?platform=ios#install-cli-tools](https://firebase.google.com/docs/flutter/setup?platform=ios#install-cli-tools)
null
CC BY-SA 4.0
null
2023-03-02T04:09:46.210
2023-03-02T04:09:46.210
null
null
85,472
null
75,611,252
2
null
62,559,273
0
null
You have to on the three dots icon next to where the run button should be, and select the `Reset Menu` option.
null
CC BY-SA 4.0
null
2023-03-02T04:11:09.640
2023-03-02T04:11:09.640
null
null
21,316,152
null
75,612,039
2
null
24,822,076
0
null
Please follow the procedure: After database login- Security --> Logins --> NT AUTHORITY\SYSTEM (right click to Properties) --> Server Roles --> sysadmin (Checked)
null
CC BY-SA 4.0
null
2023-03-02T06:41:06.483
2023-03-02T06:41:06.483
null
null
8,476,355
null
75,612,224
2
null
14,746,696
0
null
1. In Project Explorer -> Right click on project folder -> go to "Properties" 2. In "Text File Encoding" manually type SJIS or Shift-JIS 3. apply 4. Done
null
CC BY-SA 4.0
null
2023-03-02T07:03:52.873
2023-03-02T07:06:00.717
2023-03-02T07:06:00.717
16,652,191
16,652,191
null
75,612,275
2
null
75,548,247
0
null
There is no built-in way to add buttons after the "Cancel" button. But you can: (A) , with your own custom JS, that adds that button to the right container. You can use [the script widget](https://backpackforlaravel.com/docs/5.x/base-widgets#script-1) for that, and you should push the widget to the `after_content` widget section, which is the default, so it will be: ``` Widget::add()->type('script')->content('path/to/your/public/script.js'); ``` (B) `form_save_buttons`, and add that button there. That will make the change for ALL forms, for ALL entities. But this will also mean you no longer get updates for that file, from Backpack. You've overridden it. You can do that using: ``` php artisan backpack:publish crud/inc/form_save_buttons ``` I heavily recommend you do Option A, because that one doesn't have any downsides.
null
CC BY-SA 4.0
null
2023-03-02T07:10:57.810
2023-03-02T07:10:57.810
null
null
603,036
null
75,612,719
2
null
75,611,653
1
null
The ExpansionPanelList displays over the container boundary, which causes this problem. Although it has a rectangular form, you may force the ExpansionPanelList to have the same border radius as the container by enclosing it in the ClipRRect widget. You may get the desired output by just substituting your code with the code below: ``` Container( width: 500, decoration: BoxDecoration( border: Border.all(color: Colors.red), borderRadius: const BorderRadius.all(Radius.circular(20)) ), child: ClipRRect( borderRadius: const BorderRadius.all(Radius.circular(20)), child: ExpansionPanelList( expansionCallback: (int index, bool isExpanded) { setState(() { _data[index].isExpanded = !isExpanded; }); }, ```
null
CC BY-SA 4.0
null
2023-03-02T08:05:15.557
2023-03-02T15:53:16.090
2023-03-02T15:53:16.090
15,564,482
21,244,055
null
75,612,759
2
null
66,490,834
0
null
The best way to add a line(Divider) above the bottom navigation bar is to wrap it with a container and add only the top border to the container. Here's the sample code how to do this, ``` Scaffold( backgroundColor: Styles.whiteColor, body: _widgetOptions.elementAt(_selectedIndex), bottomNavigationBar: Container( decoration: const BoxDecoration( border: Border( top: BorderSide( color: Color(0xffAEADB2), width: 0.3, ), ), ), child: BottomNavigationBar( backgroundColor: Colors.white, selectedItemColor: Colors.black, unselectedItemColor: const Color(0xffAEADB2), showSelectedLabels: false, showUnselectedLabels: false, enableFeedback: false, items: const <BottomNavigationBarItem>[], currentIndex: _selectedIndex, iconSize: 40, elevation: 0, onTap: _onItemTapped, ), ), ); ```
null
CC BY-SA 4.0
null
2023-03-02T08:10:01.980
2023-03-02T08:10:01.980
null
null
13,111,347
null
75,612,992
2
null
75,612,946
1
null
The release notes being referred to are here: [https://code.visualstudio.com/updates/v1_76#_git-commit-syntax-highlighting](https://code.visualstudio.com/updates/v1_76#_git-commit-syntax-highlighting). The relevant issue ticket is here: [https://github.com/microsoft/vscode/issues/3876](https://github.com/microsoft/vscode/issues/3876). The commit that implemented it is here: [https://github.com/microsoft/vscode/commit/cc226c05816dbc1b58260486eed72b83642ec63d](https://github.com/microsoft/vscode/commit/cc226c05816dbc1b58260486eed72b83642ec63d). The git grammar provides syntax highlighting for the commit and rebase message templates that git provides (and that you can configure (see [How to specify a git commit message template for a repository in a file at a relative path to the repository?](https://stackoverflow.com/q/21998728/11107541))) for editing commit messages, and which VS Code presents to you when you want to commit and your `git.useEditorAsCommitInput` is `true` (which it is by default if you don't set it to anything). (Example template that you might have seen something like before): > ``` # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # On branch main # # Initial commit # # Changes to be committed: # new file: bar/bar.js # new file: foo.js # # Changes not staged for commit: # modified: foo.js # # Untracked files: # .vscode/ # index.html # ```
null
CC BY-SA 4.0
null
2023-03-02T08:34:33.150
2023-03-02T22:39:35.473
2023-03-02T22:39:35.473
11,107,541
11,107,541
null
75,612,999
2
null
75,610,910
1
null
For this use case I wouldn't use a CustomEditor, which is for implementing a custom Inspector for an entire `ScriptableObject` or `MonoBehaviour`. This would be a lot of overhead just to customize the way a certain field is drawn. Additionally you would have to do it for each and every other class where you use this field type. You rather want a custom [PropertyDrawer](https://docs.unity3d.com/ScriptReference/PropertyDrawer.html), which is used to implement a custom way for drawing only the field of a specific type - in your case for the `TextureSet`. Could look somewhat like e.g. ``` ... #if UNITY_EDITOR using UnityEditor; #endif [Serializable] public class TextureSet { public Texture2D texture; public Vector2 offset; [UnityEngine.Range(0f, 1.2f)] public float scale = 1; #if UNITY_EDITOR [CustomPropertyDrawer(typeof(TextureSet))] private class TextureSetDrawer : PropertyDrawer { // height and width of the preview field in lines const float PREVIEW_SIZE_LINES = 4; // height and width of the preview field in pixels readonly float PREVIEW_SIZE = EditorGUIUtility.singleLineHeight * PREVIEW_SIZE_LINES; public override float GetPropertyHeight(SerializedProperty property, GUIContent label) { if (!property.isExpanded) { // if folded simply single line return EditorGUIUtility.singleLineHeight; } // compose the total height of the poperty // 1 line - offset // 1 line - scale // PREVIEW_SIZE_LINES - preview // 1 line - a bit of buffer to separate from next list element return EditorGUIUtility.singleLineHeight * (2 + PREVIEW_SIZE_LINES + 1); } public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { using (new EditorGUI.PropertyScope(position, label, property)) { if (!property.isExpanded) { // draw the foldout label of the entire TextureSet property property.isExpanded = EditorGUI.Foldout(position, property.isExpanded, label); } else { // move down half buffer to separate a bit from previous fields position.y += EditorGUIUtility.singleLineHeight * 0.5f; // draw the foldout label of the entire TextureSet property property.isExpanded = EditorGUI.Foldout(new Rect(position.x, position.y, position.width, EditorGUIUtility.singleLineHeight), property.isExpanded, label); // indent the child properties a bit for better visual grouping using (new EditorGUI.IndentLevelScope()) { position = EditorGUI.IndentedRect(position); // Find/Bind the three properties var textureProperty = property.FindPropertyRelative(nameof(texture)); var offsetProperty = property.FindPropertyRelative(nameof(offset)); var scaleProperty = property.FindPropertyRelative(nameof(scale)); // Calculate the positions and sizes of the fields to draw var textureRect = new Rect(position.x, position.y + PREVIEW_SIZE * 0.5f - EditorGUIUtility.singleLineHeight * 0.5f, position.width - PREVIEW_SIZE, EditorGUIUtility.singleLineHeight); var previewRect = new Rect(position.x + position.width - PREVIEW_SIZE, position.y, PREVIEW_SIZE, PREVIEW_SIZE); var offsetRect = new Rect(position.x, position.y + previewRect.height, position.width, EditorGUIUtility.singleLineHeight); var scaleRect = new Rect(position.x, offsetRect.y + EditorGUIUtility.singleLineHeight, position.width, EditorGUIUtility.singleLineHeight); // The default texture field EditorGUI.PropertyField(textureRect, textureProperty); // using a grey texture as fallback if there is none referenced yet var tex = textureProperty.objectReferenceValue ? (Texture)textureProperty.objectReferenceValue : Texture2D.grayTexture; var texCoords = new Rect(offsetProperty.vector2Value.x, offsetProperty.vector2Value.y, 1 / scaleProperty.floatValue, 1 / scaleProperty.floatValue); GUI.DrawTextureWithTexCoords(previewRect, tex, texCoords); // The default vector2 field EditorGUI.PropertyField(offsetRect, offsetProperty); // The default float field with RangeAttribute applied EditorGUI.PropertyField(scaleRect, scaleProperty); } } } } } #endif } ``` I hope this is a good starting point, you will probably have to play around a bit and figure out how exactly you want to apply the `scale` and `offset` to the preview according to your needs. --- Little demo ``` public class Example : MonoBehaviour { public TextureSet test; public TextureSet[] tests; } ``` [](https://i.stack.imgur.com/HtFdS.gif)
null
CC BY-SA 4.0
null
2023-03-02T08:35:12.733
2023-03-02T08:40:21.317
2023-03-02T08:40:21.317
7,111,561
7,111,561
null
75,613,242
2
null
75,609,632
4
null
It is a typo-like error, but I think it deserves a closer explanation in an answer. Curiously, Intel Fortran compiles the code without complaning, which made the debugging even harder. It is easy to get lost in the parentheses due to the double implied do loop, but the same error would also happen with ``` read (11) (p3),(p2) ``` The items of the input list, `(p3)` and `(p2)` are expressions, not variables. This is because of the parentheses around the variables. Therefore, gfortran refuses to compile the code because variables are required in the input list. In a similar way you cannot read `p2+p3` you cannot also read `(p3)` or `(p2)`. Similarly, you need ``` read (11) ((zc(k),k=1,nz), . j=1,ny), . ((yc(j),k=1,nz), . j=1,ny) ```
null
CC BY-SA 4.0
null
2023-03-02T09:01:31.560
2023-03-02T09:01:31.560
null
null
721,644
null
75,613,269
2
null
75,613,036
0
null
Please try this formula, ``` Total_Count = calculate('datasetname'[OrderID]),ALL(datasetname)) ``` Or may be you can try creating a measure using Quick Measure option. Select 'Total for Category(Filters not applied)' and add necessary fields and change aggregation as needed.
null
CC BY-SA 4.0
null
2023-03-02T09:04:12.550
2023-03-02T10:56:15.220
2023-03-02T10:56:15.220
11,913,765
11,913,765
null
75,613,296
2
null
75,610,567
0
null
I noticed that you set the width and height of your button inside the button's style. And, if your StackPanel's width and height are smaller than your button's, then it would look kinda weird in your design window. In your case, you might have assigned your StackPanel's size to the same size of your button, however, remember that your button has a margin of 5, which makes it look like shifted a little. I tried something like you did in your example, it looks like this: [](https://i.stack.imgur.com/EMO9f.png) To fix this problem, you could try not specifying a detailed width/height inside the button style, or simply set them to auto and align them as stretched. And that would make your button set its width/height accordingly to the size of your StackPanel. ``` <Setter Property="Height" Value="auto" /> <Setter Property="Width" Value="auto" /> <Setter Property="HorizontalAlignment" Value="Stretch" /> <Setter Property="VerticalAlignment" Value="Stretch" /> ``` [](https://i.stack.imgur.com/X4joB.png)
null
CC BY-SA 4.0
null
2023-03-02T09:07:12.613
2023-03-02T09:07:12.613
null
null
14,432,910
null
75,613,434
2
null
23,901,514
0
null
In my case, the issue was caused because the project required the older version of the .NET SDK. So, what I did was to open the "Visual Studio Installer" and, in the "Individual Components" section, chose the previous version of .NET SDK (although they were out of support in my case).
null
CC BY-SA 4.0
null
2023-03-02T09:22:03.793
2023-03-02T09:22:03.793
null
null
806,202
null
75,613,580
2
null
75,593,468
0
null
Can you try the following: ``` import { expect, Page } from '@playwright/test'; test('Trying stuff out', async ({ page }) => { await expect(page.locator(MyproSelectors.ID_Overridepage)).toHaveValue('your-expected-value-here') }); ```
null
CC BY-SA 4.0
null
2023-03-02T09:35:16.373
2023-03-02T09:35:16.373
null
null
12,347,635
null
75,613,749
2
null
73,314,678
0
null
I too am not sure about the reason behind (still trying to figure it out) but I solved my issue by adding `.should("be.visible")` to my element and now the icon disappeared from the Cypress tab and I can hover over individual test steps and view the selection. ``` it("the h1 contains the correct text", () => { cy.getByData("hero-heading") .should("be.visible") .contains("Testing Next.js Applications with Cypress") }) ```
null
CC BY-SA 4.0
null
2023-03-02T09:51:01.677
2023-03-02T09:51:01.677
null
null
2,141,415
null
75,613,815
2
null
75,604,435
0
null
# Solution #1 (kind of) When manually exporting using `fig.write_image("fig1.svg")`, the problem doesn't occur. But now I have to deal with the camera controls to get a better picture of my globule ;)
null
CC BY-SA 4.0
null
2023-03-02T09:56:49.357
2023-03-02T09:56:49.357
null
null
21,311,866
null
75,613,833
2
null
75,613,514
0
null
You can use the `zorder` attribute ([https://matplotlib.org/3.1.1/gallery/misc/zorder_demo.html](https://matplotlib.org/3.1.1/gallery/misc/zorder_demo.html)) on every patch (`plot`, `legend`) to manually control the vertical placement of objects on the figure. If you don't specify this `matplotlib` will try to figure it out automatically.
null
CC BY-SA 4.0
null
2023-03-02T09:58:09.027
2023-03-02T09:58:09.027
null
null
4,105,440
null
75,613,970
2
null
75,611,395
0
null
Yes, you can bind a function to changes to pagination with the [update:page](https://v2.vuetifyjs.com/en/api/v-data-table/#events-update:page) event: ``` <v-data-table ... @update:page="page => onUpdatePageHandler(page)" > ``` It sounds like you want to realize external pagination, in which case you might be better off listening to [update:options](https://v2.vuetifyjs.com/en/api/v-data-table/#events-update:options): ``` <v-data-table ... @update:options="loadUsersWithOptions" > ``` and ``` async loadUsersWithOptions({page, itemsPerPage, sortBy, sortDesc}) { const url = "/loggedInUser" const params = {page, itemsPerPage, sortBy, sortDesc} const response = await http.get(url, params) // don't know if you can pass params to your http directely, maybe you need to build the url manually const users = response.data.users ... }, ``` Alternatively, instead of using the events directly, you can `.sync` to data properties and watch changes to those. This is described in the documentation as [external pagination](https://v2.vuetifyjs.com/en/components/data-tables/#external-pagination). While it is just an extra step to do the same as above, it allows you to manage the individual states more cleanly.
null
CC BY-SA 4.0
null
2023-03-02T10:10:03.070
2023-03-02T10:16:14.973
2023-03-02T10:16:14.973
4,883,195
4,883,195
null
75,614,237
2
null
75,613,036
1
null
I solved it by myself. I've selected data to another table using summarize and linked it with date slicer. After that I've created a measure that counts all orders in the new table and after adding the new measure to the matrix it works fine. I'm newbie in PBI so it wasn't simple for me :)
null
CC BY-SA 4.0
null
2023-03-02T10:33:48.433
2023-03-02T10:33:48.433
null
null
21,317,356
null
75,614,277
2
null
30,546,197
0
null
Sometime, we add third party libraries in our project and they are asking for permissions which are not added by us. You can check which library is using which permission through this path. [ProjectRoot]/app/build/outputs/logs/manifest-merger-debug-report.txt [](https://i.stack.imgur.com/b1nGQ.png) you will find all your permission there The other way to check permissions through merge-manifest For that: 1. Run your app 2. Goto to manifest file 3. click on Merge Manifest [](https://i.stack.imgur.com/xpj2j.png)
null
CC BY-SA 4.0
null
2023-03-02T10:37:10.347
2023-03-02T10:37:10.347
null
null
12,643,106
null
75,614,422
2
null
75,604,975
0
null
Same observation here, apart from the fact it is "31 files to analyze" in my case. Interestingly, though, it occurs in two independent workspaces with the exact same number of files (31).
null
CC BY-SA 4.0
null
2023-03-02T10:49:31.573
2023-03-02T10:49:31.573
null
null
15,356,452
null
75,614,915
2
null
10,916,067
0
null
I know it is a old topic but still relevant for many. One other helpful thing is to create a xls file, open in Excel, add the formatting you want, etc, save and close and then load it in APIMate.exe (which comes with FlexCel) and you will get FlexCel code that generates the file from scratch. For example I coloured two cells and wrote in them "red" and "yellow" and this is what was produced (I pasted the relevant part only): ``` //Set the cell values TFlxFormat fmt; fmt = xls.GetCellVisibleFormatDef(1, 1); fmt.FillPattern.Pattern = TFlxPatternStyle.Solid; fmt.FillPattern.FgColor = TExcelColor.FromArgb(0xFF, 0x00, 0x00); fmt.FillPattern.BgColor = TExcelColor.Automatic; xls.SetCellFormat(1, 1, xls.AddFormat(fmt)); xls.SetCellValue(1, 1, "red"); fmt = xls.GetCellVisibleFormatDef(2, 1); fmt.FillPattern.Pattern = TFlxPatternStyle.Solid; fmt.FillPattern.FgColor = TExcelColor.FromArgb(0xFF, 0xFF, 0x00); fmt.FillPattern.BgColor = TExcelColor.Automatic; xls.SetCellFormat(2, 1, xls.AddFormat(fmt)); xls.SetCellValue(2, 1, "yellow"); ```
null
CC BY-SA 4.0
null
2023-03-02T11:39:01.680
2023-03-02T11:39:01.680
null
null
14,049,190
null
75,615,119
2
null
75,602,347
0
null
I've found the solution. I have taken default datagrid template and put ItemsPresenter into border with needed parameters. Then I applied this template to datagrid. ``` <ControlTemplate x:Key="dg_solid_without_header" TargetType="{x:Type DataGrid}"> <Border x:Name="border" SnapsToDevicePixels="True" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}"> <Border.Background> <SolidColorBrush Color="{DynamicResource ControlLightColor}" /> </Border.Background> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="CommonStates"> <VisualState x:Name="Disabled"> <Storyboard> <ColorAnimationUsingKeyFrames Storyboard.TargetName="border" Storyboard.TargetProperty="(Panel.Background). (SolidColorBrush.Color)"> <EasingColorKeyFrame KeyTime="0" Value="{DynamicResource ControlLightColor}" /> </ColorAnimationUsingKeyFrames> </Storyboard> </VisualState> <VisualState x:Name="Normal" /> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <ScrollViewer x:Name="DG_ScrollViewer" Focusable="false" Background="Black"> <ScrollViewer.Template> <ControlTemplate TargetType="{x:Type ScrollViewer}"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="*" /> <ColumnDefinition Width="Auto" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="*" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <DataGridColumnHeadersPresenter x:Name="PART_ColumnHeadersPresenter" Grid.Column="1" Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.Column}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" /> <ScrollContentPresenter x:Name="PART_ScrollContentPresenter" Grid.ColumnSpan="2" Grid.Row="1" CanContentScroll="{TemplateBinding CanContentScroll}" /> <ScrollBar x:Name="PART_VerticalScrollBar" Grid.Column="2" Grid.Row="1" Orientation="Vertical" ViewportSize="{TemplateBinding ViewportHeight}" Maximum="{TemplateBinding ScrollableHeight}" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"/> <Grid Grid.Column="1" Grid.Row="2"> <Grid.ColumnDefinitions> <ColumnDefinition Width="{Binding NonFrozenColumnsViewportHorizontalOffset, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <ScrollBar x:Name="PART_HorizontalScrollBar" Grid.Column="1" Orientation="Horizontal" ViewportSize="{TemplateBinding ViewportWidth}" Maximum="{TemplateBinding ScrollableWidth}" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"/> </Grid> </Grid> </ControlTemplate> </ScrollViewer.Template> <Border Background="#0F1F2F" BorderBrush="#114B6F" BorderThickness="2" CornerRadius="8"> <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" /> </Border> </ScrollViewer> </Border> </ControlTemplate> <DataGrid Name="dg_upper_bracket_results_table_cla" Margin="243 20 243 0" Style="{StaticResource new_CLA_table_style}" Template="{StaticResource dg_solid_without_header}" ItemsSource="{Binding UpperBracketTable}"> <DataGrid.Columns> <StaticResource ResourceKey="dgtcPosition_new_cla"/> <StaticResource ResourceKey="dgtcPlayerWithDivision_new_cla"/> <StaticResource ResourceKey="dgtcTeam_new_cla"/> <StaticResource ResourceKey="dgtcWins"/> <StaticResource ResourceKey="dgtcDraws"/> <StaticResource ResourceKey="dgtcLosses"/> <StaticResource ResourceKey="dgtcGoals"/> <StaticResource ResourceKey="dgtcPoints"/> </DataGrid.Columns> <DataGrid.RowStyle> <Style TargetType="DataGridRow"> <Setter Property="Template" Value="{StaticResource default_datagridrow_style}"/> </Style> </DataGrid.RowStyle> </DataGrid> ```
null
CC BY-SA 4.0
null
2023-03-02T11:58:25.257
2023-03-02T12:00:25.313
2023-03-02T12:00:25.313
21,310,599
21,310,599
null
75,615,191
2
null
75,492,123
0
null
> The error usually occurs if your application Supported account type is but you tried to sign in with education or workplace accounts.   I registered one Azure AD application with `Supported account type` as as below:  ![enter image description here](https://i.imgur.com/iF6PRtl.png)  You can check `Supported account type` of existing application from it's tab like this:  ![enter image description here](https://i.imgur.com/KtFgp4w.png)  You can also check `signInAudience` value in app's Manifest file like below:  ![enter image description here](https://i.imgur.com/Xrw0Kkq.png)  When I tried to sign in with workplace account instead of personal Microsoft account, I got as you like below:  ![enter image description here](https://i.imgur.com/lobk3Pa.png)  To the error, you need to change `Supported account type` of your application by modifying it's file like this:  ``` "signInAudience": "AzureADandPersonalMicrosoftAccount", ``` ![enter image description here](https://i.imgur.com/uKCsYb3.png)  When I checked tab now, `Supported account type` changed successfully like below:  ![enter image description here](https://i.imgur.com/sOKfcUL.png)  If the error still persists, try registering a new Azure AD application by selecting `Supported account type` as below and repeat the whole process again:  ![enter image description here](https://i.imgur.com/SlH5PVM.png)
null
CC BY-SA 4.0
null
2023-03-02T12:05:53.773
2023-03-02T12:05:53.773
null
null
20,096,460
null
75,615,239
2
null
75,614,914
0
null
You can set the breaks to most closely match the `hist` output. ``` library(tidyverse) df <- tibble(a = sample(x = 1:100, 200, replace = TRUE, prob = 1/1:100)) df |> mutate(bin = cut(a, breaks = seq(from=0,to=100,by=5), include.lowest = TRUE)) |> count(bin) #> # A tibble: 20 × 2 #> bin n #> <fct> <int> #> 1 [0,5] 80 #> 2 (5,10] 36 #> 3 (10,15] 13 #> 4 (15,20] 10 #> 5 (20,25] 14 #> 6 (25,30] 7 #> 7 (30,35] 8 #> 8 (35,40] 2 #> 9 (40,45] 2 #> 10 (45,50] 1 #> 11 (50,55] 5 #> 12 (55,60] 4 #> 13 (60,65] 1 #> 14 (65,70] 2 #> 15 (70,75] 1 #> 16 (75,80] 4 #> 17 (80,85] 1 #> 18 (85,90] 4 #> 19 (90,95] 2 #> 20 (95,100] 3 hist(df$a, breaks = seq(from=0, to=100,by=5)) ``` ![](https://i.imgur.com/ZBGJ59F.png) ``` df |> ggplot(aes(a)) + scale_y_continuous(breaks = seq(0, 90, 10)) + geom_histogram(breaks = seq(from=0, to=100,by=5), closed = "right") ``` ![](https://i.imgur.com/FhsDE8G.png)
null
CC BY-SA 4.0
null
2023-03-02T12:10:32.410
2023-03-02T12:25:02.400
2023-03-02T12:25:02.400
10,744,082
10,744,082
null
75,615,371
2
null
75,615,046
0
null
When we run the code in debug mode the code might run even with some issues or conflicts. That is not the case in release mode. I would suggest you to check your logs when you are running the code in debug mode. That might help you identify where the problem is. You can share the error log with us so we can try to figure out where the issue is.
null
CC BY-SA 4.0
null
2023-03-02T12:23:53.650
2023-03-02T12:23:53.650
null
null
21,317,676
null
75,615,423
2
null
75,614,717
0
null
This can happen in [just_audio](https://pub.dev/packages/just_audio) if you don't set the assets location in pubspec.yaml. ``` flutter: assets: - audio/ ``` This tells Flutter that you have an audio folder in the root of your project where you keep your audio assets. After doing that, you should be able to set the asset and play it like so: ``` await player.setAsset('audio/cow.mp3'); player.play(); ``` The error can also happen if you spelled something in the path wrong, but I assume you already checked for that.
null
CC BY-SA 4.0
null
2023-03-02T12:28:40.407
2023-03-02T12:28:40.407
null
null
21,234,100
null
75,615,485
2
null
30,581,034
0
null
7 years later, I had this exact issue. Turns out it can't resolve ::1 in the terminal for me. It was trying to resolve localhost to that instead of 127.0.0.1 (which was also specified, I guess IPv6 took precedence). Removing ::1 from /etc/hosts solved the issue for me so looks like there's some issue with IPv6 adressess.
null
CC BY-SA 4.0
null
2023-03-02T12:34:56.113
2023-03-02T12:35:41.533
2023-03-02T12:35:41.533
21,318,929
21,318,929
null
75,615,697
2
null
75,615,602
0
null
This is the jackson databind artifact i tried to add ``` <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.14.1</version> </dependency> ```
null
CC BY-SA 4.0
null
2023-03-02T12:54:54.430
2023-03-02T13:00:48.593
2023-03-02T13:00:48.593
21,318,810
21,318,810
null
75,615,725
2
null
75,615,631
0
null
Run a script task before this that sets a variable containing the path to the latest report. Then use the variable to attach the correct attachment. ``` - powershell: | $latestReport = (dir index_*PM.html | sort-object name -Descending | select-object -first 1).FullName write-console "##vso[task.setvariable variable=Attachment;]$latestReport" - task: SendEmail@1 inputs: AddAttachment: true Attachment: '$(Attachment)' ```
null
CC BY-SA 4.0
null
2023-03-02T12:57:30.500
2023-03-02T12:57:30.500
null
null
736,079
null
75,615,897
2
null
75,615,638
0
null
1. Combine the data, it reduces the number of geom_* calls you need (and therefore improves readability/maintainability). 2. We can use geom_ribbon for that. Try this: ``` library(dplyr) library(ggplot2) bind_rows( rename(PLIdata, upperbound = upperboundPLI, lowerbound = lowerboundPLI), rename(PLTdata, upperbound = upperboundPLT, lowerbound = lowerboundPLT), rename(AECdata, upperbound = upperboundAEC, lowerbound = lowerboundAEC) ) %>% ggplot(aes(x = el, y = Mean, color = measure, fill = measure, group = measure)) + geom_line() + geom_ribbon(aes(ymin = lowerbound, ymax = upperbound), alpha = 0.5) ``` [](https://i.stack.imgur.com/eBWiB.png) Notes: 1. We don't need dplyr for this, but its bind_rows is convenient for things like this. 2. If there are other columns in frames that are not shared among all of them, this should still work (since we're using only the names we know we have in common), but you'll find that a column in one and not another will have NA values in the other. Again, not a problem here but good to know. You may benefit from a more robust renameing step if you have other needs, too. --- Data ``` set.seed(42) PLIdata <- data.frame(measure = "PLI", el = 1:4, Mean = sample(10, size = 4)) |> transform(lowerboundPLI = Mean - runif(4), upperboundPLI = Mean + runif(4)) PLTdata <- data.frame(measure = "PLT", el = 1:4, Mean = sample(10, size = 4)) |> transform(lowerboundPLT = Mean - runif(4), upperboundPLT = Mean + runif(4)) AECdata <- data.frame(measure = "AEC", el = 1:4, Mean = sample(10, size = 4)) |> transform(lowerboundAEC = Mean - runif(4), upperboundAEC = Mean + runif(4)) PLIdata ```
null
CC BY-SA 4.0
null
2023-03-02T13:12:52.857
2023-03-02T13:12:52.857
null
null
3,358,272
null
75,615,940
2
null
60,032,051
0
null
> It's too late to answer but you can try this. ``` import 'package:flutter/material.dart'; class TabBarIndicator extends Decoration { final BoxPainter _painter; TabBarIndicator({required Color color, required double radius}) : _painter = _TabBarIndicator(color, radius); @override BoxPainter createBoxPainter([VoidCallback? onChanged]) => _painter; } class _TabBarIndicator extends BoxPainter { final Paint _paint; final double radius; _TabBarIndicator(Color color, this.radius) : _paint = Paint() ..color = color ..isAntiAlias = true; @override void paint(Canvas canvas, Offset offset, ImageConfiguration configuration){ final Offset customOffset = offset + Offset(configuration.size!.width / 2, configuration.size!.height - radius - 5); canvas.drawRRect( RRect.fromRectAndCorners( Rect.fromCenter( center: customOffset, width: configuration.size!.width, height: 4), topLeft: Radius.circular(radius), topRight: Radius.circular(radius), ), _paint); } } ``` > And use it like this. ``` TabBar( indicator: TabBarIndicator(color: Colors.green, radius: 4),), ```
null
CC BY-SA 4.0
null
2023-03-02T13:16:02.143
2023-03-02T13:16:02.143
null
null
15,381,370
null