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,038,415
2
null
75,007,495
1
null
Had to add in settings.json: ``` "editor.tokenColorCustomizations": { "textMateRules": [ { "scope": [ "entity.name.tag.reference.scss", "entity.other.attribute-name.parent-selector-suffix.css" ], "settings": { "foreground": "#D7BA7D" } } ] } ``` I've used Developer: Inspect Editor Tokens and Scopes command to find which scopes i need More information here: [VS Code change theme color only for CSS](https://stackoverflow.com/questions/61863436/vs-code-change-theme-color-only-for-css) [https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide](https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide) [https://code.visualstudio.com/api/extension-guides/color-theme#syntax-colors](https://code.visualstudio.com/api/extension-guides/color-theme#syntax-colors) [https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide#theming](https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide#theming)
null
CC BY-SA 4.0
null
2023-01-07T06:02:54.263
2023-01-07T06:07:55.767
2023-01-07T06:07:55.767
20,926,689
20,926,689
null
75,038,891
2
null
75,038,403
0
null
In my experience with Mapbox, the zoom level is usually to blame. Try zooming in to see if the images appear. If they do, you just need to set the zoom level you wish for the images to appear.
null
CC BY-SA 4.0
null
2023-01-07T08:00:49.973
2023-01-07T08:00:49.973
null
null
20,144,235
null
75,039,067
2
null
75,032,533
0
null
you add sphere which emits light so once your ray hits it the light will be added/multiplied to the ray color ... the glow is done either by [atmospheric scattering](https://stackoverflow.com/a/19659648/2521214) or just by some [semi transparent corona texture rendeed in another pass](https://stackoverflow.com/a/40171880/2521214) ... games usually use also bloom filtering which I hate as its too slow and often ugly if overused
null
CC BY-SA 4.0
null
2023-01-07T08:44:21.267
2023-01-07T08:44:21.267
null
null
2,521,214
null
75,039,540
2
null
75,032,367
0
null
Thanks for your answers, unfortunatelly the solution was hidden deeper than the html/css rendering. For anyone dropping by: The Sphinx framework is using `prettify()` from `beautifulsoup` to output the production website. The paradigm is to put each tag on a single line including all the inline ones, creating extra spaces everywhere. So the real rendered HTM was: ``` <li class="toc-h2 nav-item toc-entry"> <a class="reference internal nav-link" href="#the-gallery-grid-directive"> The <code class="docutils literal notranslate"> <span class="pre"> gallery-grid </span> </code> directive </a> </li> ``` preventing the prettify action I got the uglier but working line I set in the question. ``` <li class="toc-h2 nav-item toc-entry"> <a class="reference internal nav-link" href="#the-gallery-grid-directive">The <code class="docutils literal notranslate"><span class="pre">gallery-grid</span></code> directive</a> </li> ``` [](https://i.stack.imgur.com/6eJMM.png) Here is a small codepen to see the diff between the 2 configs: [https://codepen.io/12rambau/pen/NWBdKYr](https://codepen.io/12rambau/pen/NWBdKYr)
null
CC BY-SA 4.0
null
2023-01-07T10:18:13.327
2023-01-07T10:30:43.683
2023-01-07T10:30:43.683
6,734,243
6,734,243
null
75,039,693
2
null
61,549,163
0
null
I had the same problem, but when I tried the method Alex proposed, I couldn't see images in the designer. When Mohamed proposed to change some names, I noticed adding images (and icons) on my similar project worked because of similar names. So I changed the entry point name to Main (in the compiler properties), and then the FORM name to Main (While my project name is Project1 !), and it works for me, hope it works for you too!
null
CC BY-SA 4.0
null
2023-01-07T10:45:54.793
2023-01-07T10:45:54.793
null
null
20,755,569
null
75,039,739
2
null
23,541,146
0
null
Worth mentioning to try and create a new camera if it still does not work after modifying the RenderSettings. No matter what changes I made, it would not update until I replaced the camera with a new one.
null
CC BY-SA 4.0
null
2023-01-07T10:55:08.157
2023-01-07T10:55:08.157
null
null
10,490,077
null
75,039,840
2
null
75,039,667
1
null
I think you should change the itemCount with `wpControl.imgs.length` just in case if the response send no data or the image is null the listview.builder will not force to create 10 item and throws an error but it will count how many image data you got from the response
null
CC BY-SA 4.0
null
2023-01-07T11:09:26.393
2023-01-07T11:09:26.393
null
null
17,653,156
null
75,040,157
2
null
75,039,879
0
null
Try this CSS ``` .form { border: 1px solid hsl(0, 36%, 70%); border-radius: 4rem; overflow: hidden; display: flex; /*makes the children stretch over the whole parent height, which leads to removing the margin that you have*/ flex-direction:row; /*optional*/ } .email-box { padding: 1.6rem 2.8rem; flex: 1;width: 100%; border: 0; } .arrow-button { cursor: pointer; float: right; border: none; background-color: hsl(0, 80%, 86%); padding: 0 2rem; } ```
null
CC BY-SA 4.0
null
2023-01-07T12:01:58.387
2023-01-07T12:01:58.387
null
null
20,919,260
null
75,040,248
2
null
75,037,531
1
null
As one can read on the following groups.google.com keycloak threads: - [https://groups.google.com/g/keycloak-user/c/75iuKmiYvBU](https://groups.google.com/g/keycloak-user/c/75iuKmiYvBU)- [https://groups.google.com/g/keycloak-dev/c/dvgDVYn1P2E/m/VjkFF2DUAQAJ?pli=1](https://groups.google.com/g/keycloak-dev/c/dvgDVYn1P2E/m/VjkFF2DUAQAJ?pli=1) > Mar 3, 2021, 10:49:03 AM to Keycloak DevThe new admin console designs are dropping the "bearer-only" option for a client:[https://marvelapp.com/prototype/908c3c3/screen/72041413](https://marvelapp.com/prototype/908c3c3/screen/72041413)This makes perfectly sense to me, as a "bearer-only" client is really only a client that doesn't leverage any of the OAuth flows. The option of explicitly setting the `access-type` of clients to `bearer-only` is not longer available on the new Keycloak Admin Console UI. Nonetheless, with the new UI one can still see clients that were previously (in older versions) created with `access-type` `bearer-only`. However, one cannot change their `access-type`. Even though the new UI does not have the option to explicitly set the `access-type` to `bearer-only`, one can still create an equivalent `bearer-only` client by unchecking all the Authentications flows, as follows: [](https://i.stack.imgur.com/EveGM.png)
null
CC BY-SA 4.0
null
2023-01-07T12:18:00.020
2023-01-07T12:23:09.957
2023-01-07T12:23:09.957
1,366,871
1,366,871
null
75,040,260
2
null
75,038,406
1
null
You could use a scatter as following: ``` const myChart = new Chart(ctx, { type: 'scatter', data: { datasets: [{ data: [{x:0, y:0}, {x:0, y:10}, {x:2, y:10}, {x:2, y:0}], }] }, options: { showLine: true } }); ``` ``` const ctx = document.getElementById('myChart').getContext('2d'); const myChart = new Chart(ctx, { type: 'scatter', data: { datasets: [{ data: [{x:0, y:0}, {x:0, y:10}, {x:2, y:10}, {x:2, y:0}], }] }, options: { showLine: true, scales: { y: { max: 20 } } } }); ``` ``` .myChartDiv { max-width: 600px; max-height: 400px; } ``` ``` <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.umd.min.js"></script> <html> <body> <div class="myChartDiv"> <canvas id="myChart" width="600" height="400"/> </div> </body> </html> ```
null
CC BY-SA 4.0
null
2023-01-07T12:19:18.793
2023-01-07T12:19:18.793
null
null
2,057,925
null
75,040,466
2
null
75,040,142
1
null
Here is your solution. ``` const Example = () => { const errors = { "errors": [{ "value": "", "msg": "Invalid value", "param": "name", "location": "body" }, { "value": "", "msg": "Invalid value", "param": "description", "location": "body" }, { "value": "", "msg": "Invalid value", "param": "catid", "location": "body" }] } return ( < div > {errors["errors"].map((item, id) => ( <h1 key={id} > {item.msg} </h1> ))} < /div> ); }; // Render it ReactDOM.createRoot( document.getElementById("root") ).render( < Example title = "Example using Hooks:" / > ); ``` ``` <div id="root"></div> <script src="https://cdnjs.cloudflare.com/ajax/libs/react/18.2.0/umd/react.development.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/18.2.0/umd/react-dom.development.js"></script> ```
null
CC BY-SA 4.0
null
2023-01-07T12:48:42.230
2023-01-07T12:48:42.230
null
null
19,477,749
null
75,040,563
2
null
75,040,406
0
null
Like this? ``` df <- tibble( year = rep(2019:2020, each = 24) %>% factor, month = rep(rep(1:12,each = 2), 2) %>% factor, group = rep(c("Schweiz", "Alle lander"), 24), value = sample(10000:999999, replace = TRUE, 48) ) df %>% ggplot() + aes(x = month, y = value, fill = year) + geom_col(position = "dodge") + facet_wrap(~ group) + scale_fill_economist() + theme_pander() ``` [](https://i.stack.imgur.com/0S4Ji.png)
null
CC BY-SA 4.0
null
2023-01-07T13:03:53.460
2023-01-07T13:03:53.460
null
null
17,213,355
null
75,040,648
2
null
18,389,224
1
null
Here is another approach if you don't mind using JS. This @steveholgado Codepen overlays 3 divs for the track, progress, and thumb over the top of an `input[type=range]` with an opacity of zero (transparent). An oninput listener updates the styles for the divs to create pretty much any appearance you want. The nice thing is that it is fairly browser agnostic, and deals with the inflexibility of styling sliders on Chrome. It offers a lot more styling flexibility in general. If you want to use something other than 0 to 100 for the slider range, you'll have to scale appropriately in the listener. For example, `value = value * 100 / parseInt(range.getAttribute("max"));` (assuming min=0) [https://codepen.io/steveholgado/pen/OEpGXq](https://codepen.io/steveholgado/pen/OEpGXq) HTML: ``` <div class="wrap"> <input type="range" class="range" min="0" max="100" step="0.1" value="0"> <div class="track"> <div class="track-inner"></div> </div> <div class="thumb"></div> </div> ``` CSS: ``` .wrap { width: 300px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .range { width: 100%; cursor: pointer; opacity: 0; } .range::-ms-tooltip { display: none; } .track { width: 100%; height: 4px; background: #DDDDDD; position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; } .track-inner { width: 0; height: 100%; background: #E24F4F; } .thumb { width: 16px; height: 16px; background: #AAAAAA; border-radius: 50%; position: absolute; top: 50%; left: 0; transform: translate(0%, -50%); pointer-events: none; } ``` JS: ``` const range = document.querySelector('.range') const thumb = document.querySelector('.thumb') const track = document.querySelector('.track-inner') const updateSlider = (value) => { thumb.style.left = `${value}%` thumb.style.transform = `translate(-${value}%, -50%)` track.style.width = `${value}%` } range.oninput = (e) => updateSlider(e.target.value) updateSlider(50) // Init value ```
null
CC BY-SA 4.0
null
2023-01-07T13:18:24.230
2023-01-07T13:18:24.230
null
null
2,179,138
null
75,040,674
2
null
75,040,514
1
null
Welcome to stackoverflow, you are required to post whatever work you have done so far to tackle the problem. To answer your question, this can be done is excel with pivot tables. But if you are looking for a pandas method... I have created 2 dataframes like you have ``` import pandas as pd import numpy as np df1 = pd.DataFrame( { "Name": ['Govind', 'Chetan', 'Rahul'], "City": ['Mumbai', 'Banglore', 'Pune'], "Salary": [1, 1, 1] }) df2 = pd.DataFrame( { "Name": ['Govind', 'Chetan', 'Kalpesh'], "City": ['Mumbai', 'Banglore', 'Pune'], "Salary": [1, 1, 1] }) ``` You can then use concat to concatenate them ``` df = pd.concat([df1, df2], axis=0) df ``` [](https://i.stack.imgur.com/4bqJC.png) and you can use groupby() and reset_index() to get what you want ``` df.groupby(['Name','City'])['Salary'].sum().reset_index() ``` [](https://i.stack.imgur.com/ub2Kg.png)
null
CC BY-SA 4.0
null
2023-01-07T13:24:21.150
2023-01-07T13:24:21.150
null
null
9,787,406
null
75,040,682
2
null
75,040,406
1
null
The issue is that you used `scale_x_binned`. Drop that and convert your `Monat` column to a `factor` should fix your issue. Using some fake example data let's first reproduce your issue: ``` set.seed(123) rawdata4.1 <- data.frame( Jahreszahl = rep(2019:2020, each = 24), Monat = rep(1:12, each = 2), Herkunft = c("Schweiz", "Alle Länder"), Ankünfte = runif(48, 10000, 999999) ) rawdata4.1$Jahreszahl <- factor(rawdata4.1$Jahreszahl) library(ggplot2) library(ggthemes) ggplot(rawdata4.1, aes(x = Monat, y= Ankünfte, fill= Jahreszahl)) + facet_wrap(~ Herkunft, scale = "fixed") + geom_bar(position = "stack", colour = "black", lwd = 0.9, linetype = 1, stat = "identity",) + scale_y_continuous(name= NULL, labels = scales::label_number(suffix = " Mio", scale = 1e-6)) + scale_x_binned(name = NULL) + ggtitle("Monatliche Ankünfte vor und nach Corona") + theme_pander() + theme(axis.title.y = element_text(vjust = +1.75), legend.position = "right") + scale_fill_economist() #> Warning: Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0. #> ℹ Please use `linewidth` instead. ``` ![](https://i.imgur.com/Bw3l3nT.png) Now, dropping `scale_x_binned` and converting to a `factor` gives the desired result: ``` ggplot(rawdata4.1, aes(x = factor(Monat), y= Ankünfte, fill= Jahreszahl)) + facet_wrap(~ Herkunft, scale = "fixed") + geom_bar(position = "stack", colour = "black", lwd = 0.9, linetype = 1, stat = "identity",) + scale_y_continuous(name= NULL, labels = scales::label_number(suffix = " Mio", scale = 1e-6)) + ggtitle("Monatliche Ankünfte vor und nach Corona") + theme_pander() + theme(axis.title.y = element_text(vjust = +1.75), legend.position = "right") + scale_fill_economist() ``` ![](https://i.imgur.com/v1csIBE.png)
null
CC BY-SA 4.0
null
2023-01-07T13:25:59.610
2023-01-07T13:25:59.610
null
null
12,993,861
null
75,040,770
2
null
75,040,514
1
null
You can use [pandas.read_excel](https://pandas.pydata.org/docs/reference/api/pandas.read_excel.html) with `sheet_name=None` to read all the sheets at once and then pass the dictionnary of dataframes made to [pandas.concat](https://pandas.pydata.org/docs/reference/api/pandas.concat.html) and finally use [Groupby.sum](https://pandas.pydata.org/docs/reference/api/pandas.core.groupby.GroupBy.sum.html) for aggregation : ``` import pandas as pd out = ( pd.concat(pd.read_excel("/input_spreadsheet.xlsx", sheet_name=None), ignore_index=True) .groupby(["Name", "City"], as_index=False)["Salary"].sum() ) ``` After that, if needed, you can make an new spreadsheet with [pandas.DataFrame.to_excel](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_excel.html) and/or a (`.csv`) file with [pandas.DataFrame.to_csv](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_csv.html) : ``` out.to_excel("/output_spreadsheet.xlsx", sheet_name="Emp Salary (Total).xlsx", index=False) out.to_csv("/output_csvfile.csv", sheet_name="Emp Salary (Total).csv", sep=",", index=False) #sep="," by default ``` #### # Output : ``` print(out) Name City Salary 0 Chetan Bangalore 60000 1 Dipesh Pune 50000 2 Govind Mumbai 200000 3 Kalpesh Kolkata 40000 4 Rahul Kolkata 40000 5 Santosh Pune 50000 6 Siddharth Hyderabad 50000 ```
null
CC BY-SA 4.0
null
2023-01-07T13:41:11.187
2023-01-07T13:41:11.187
null
null
16,120,011
null
75,040,983
2
null
75,039,667
0
null
- ``` var json = '{"id":"1","createAt":"20220101","color":"blue","urls":["url1","url2","url3"]}'; var model = Imagess.fromJson(jsonDecode(json)); print(model.urls); // print result : [url1, url2, url3] class Imagess { String? id; String? createdAt; String? color; List<dynamic>? urls; Imagess({this.id, this.createdAt, this.color, this.urls}); Imagess.fromJson(Map<String, dynamic> json) { id = json['id']; createdAt = json['created_at']; color = json['color']; urls = json['urls']; } } ``` - ``` var json = '{"id":"1","createAt":"20220101","color":"blue","urls":{"data":["url1","url2","url3"]}}'; var model = Imagess.fromJson(jsonDecode(json)); print(model.urls); // print result : "data":[url1, url2, url3] class Imagess { String? id; String? createdAt; String? color; UrlModel? urls; Imagess({this.id, this.createdAt, this.color, this.urls}); Imagess.fromJson(Map<String, dynamic> json) { id = json['id']; createdAt = json['created_at']; color = json['color']; urls = UrlModel.fromJson(json['urls']); } } class UrlModel { List<dynamic>? data; UrlModel(this.data); UrlModel.fromJson(Map<String, dynamic> json) { data = json['data']; } } ```
null
CC BY-SA 4.0
null
2023-01-07T14:13:39.533
2023-01-07T14:13:39.533
null
null
9,251,541
null
75,041,156
2
null
75,040,829
0
null
Instead of finding and pasting the data in one line, break it into two so that you can copy the offset and paste to the offset. ``` With Worksheets("sheet19") Dim dst As Range Set dst = .Cells(.Rows.Count, "A").End(xlUp).Offset(1, 0) End With cpy.Copy Destination:=dst cpy.Offset(1) Destination:=dst.Offset(0, 1) ```
null
CC BY-SA 4.0
null
2023-01-07T14:38:51.147
2023-01-07T14:38:51.147
null
null
5,928,161
null
75,041,238
2
null
34,796,678
0
null
Faced this issue multiple times and in my case, it's generally a `div` or an `element` that is crossing the width of the screen thus stretching out, maybe try and analyze with chrome dev tools and inspect the layout, try and get rid of few divs and see if it changes anything, or maybe reduce the width of absolutely sized elements, etc.
null
CC BY-SA 4.0
null
2023-01-07T14:49:26.723
2023-01-11T07:09:51.463
2023-01-11T07:09:51.463
10,141,952
16,876,959
null
75,041,253
2
null
75,037,900
0
null
From iOS 16, you should hide the `scrollContentBackground`, so you can see underneath. ``` .scrollContentBackground(.hidden) ``` More for other versions [described here](https://stackoverflow.com/a/58592055/5623035)
null
CC BY-SA 4.0
null
2023-01-07T14:51:04.977
2023-01-07T14:51:04.977
null
null
5,623,035
null
75,041,391
2
null
75,040,406
1
null
You can use `scale_x_continuous` with breaks set at 1:12 ``` library(ggplot2) library(ggthemes) library(scales) ggplot(rawdata4.1, aes( x= Monat, y = Ankünfte, fill = Jahreszahl)) + facet_wrap(~ Herkunft, scale = "fixed") + geom_col(position = "stack", colour = "black", lwd = 0.9, linetype = 1) + scale_y_continuous(labels = label_number(suffix = " Mio", scale = 1e-6), name = NULL) + scale_x_continuous(NULL, breaks = 1:12) + scale_fill_economist() + ggtitle("Monatliche Ankünfte vor und nach Corona") + theme_pander() + theme(axis.title.y = element_text(vjust = +1.75), legend.position = "right") ``` [](https://i.stack.imgur.com/sDrZ7.png) --- ``` rawdata4.1 <- data.frame(Jahreszahl = factor(rep(c(2019, 2020), each = 24)), Monat = rep(rep(1:12, each = 2), 2), Herkunft = rep(c("Schweiz", "Alle Länder"), 24), Ankünfte = c(647315, 1226739, 698093, 1332892, 774956, 1526592, 623656, 1384180, 697684, 1624902, 858811, 2006805, 987515, 2284423, 1011069, 2270490, 926890, 1958831, 78940, 1612160, 589729, 1154630, 678702, 1381913, 707576, 1339067, 742885, 1356936, 296702, 498459, 43310, 53920, 289738, 318331, 606987, 725924, 1229947, 1574105, 1106300, 1545573, 1021787, 1304570, 811214, 957811, 353547, 424907, 484612, 603825)) ```
null
CC BY-SA 4.0
null
2023-01-07T15:09:51.207
2023-01-07T15:09:51.207
null
null
12,500,315
null
75,041,674
2
null
75,041,517
0
null
Managed to fix this issue by looping through it with a _.map() function. This way it goes through every object in the array with the ._pick() method. ``` results.data = _.map(results.data, obj => _.pick(obj, [ 'column1','column2'])); ```
null
CC BY-SA 4.0
null
2023-01-07T15:51:39.853
2023-01-07T15:51:39.853
null
null
4,236,332
null
75,041,896
2
null
75,041,538
1
null
Add to the setting.json: ``` "editor.tokenColorCustomizations": { "comments": { "fontStyle": "", "foreground": "#d400ff" } } ``` [](https://i.stack.imgur.com/DOW2v.png) You can change the font style and color.
null
CC BY-SA 4.0
null
2023-01-07T16:21:33.230
2023-01-09T03:16:24.687
2023-01-09T03:16:24.687
10,526,773
10,526,773
null
75,041,905
2
null
75,041,729
5
null
Distance from the center to top point is `r`. Distance from the center to the lowest triangle side is `r/2` (median intersection point is center, they are divided in 1:2 ratio). Horizontal distance from `cx` to `p4` (and p5) is (Pythagoras' theorem) ``` dx = sqrt(radius^2 - r^2/4) ``` So coordinates of `p4` and `p5` are (relative to center) ``` p4x = dx p4y = r/2 p5x = -dx p5y = r/2 ``` Other points might be calculated using rotation by 120 degrees ``` p2x = p4x*(-1/2) - p4y*(sqrt(3)/2) p2y = p4x*(sqrt(3)/2) + p4y*(-1/2) ``` and so on. And finally add `cx,cy` to get absolute coordinates
null
CC BY-SA 4.0
null
2023-01-07T16:22:23.480
2023-01-07T17:30:44.517
2023-01-07T17:30:44.517
844,416
844,416
null
75,042,152
2
null
54,967,540
0
null
Possible using request interception with Chrome-Developer-Protocoll. Have a look at [https://stackoverflow.com/a/75067388/20443541](https://stackoverflow.com/a/75067388/20443541)
null
CC BY-SA 4.0
null
2023-01-07T16:56:13.813
2023-01-10T09:04:55.863
2023-01-10T09:04:55.863
20,443,541
20,443,541
null
75,042,184
2
null
74,027,958
0
null
This could be achieved by adding following line in CAPViewBridgeController file ``` webView?.frame.origin = CGPoint(x: 0, y: UIApplication.shared.statusBarFrame.size.height) webView?.frame.size.height = UIScreen.main.bounds.size.height - UIApplication.shared.statusBarFrame.size.height; ``` Search for below function and update. The function should look like this ``` extension CAPBridgeViewController: CAPBridgeDelegate { internal var bridgedWebView: WKWebView? { webView?.frame.origin = CGPoint(x: 0, y: UIApplication.shared.statusBarFrame.size.height) webView?.frame.size.height = UIScreen.main.bounds.size.height - UIApplication.shared.statusBarFrame.size.height; return webView } internal var bridgedViewController: UIViewController? { return self } } ```
null
CC BY-SA 4.0
null
2023-01-07T17:00:17.760
2023-01-08T07:17:46.583
2023-01-08T07:17:46.583
5,638,630
20,950,401
null
75,042,210
2
null
75,040,188
1
null
Mixing Promise-based APIs and Callback-based APIs will lead to trouble. By exclusively sticking to one type, you can ensure that behaviour will be as you expect. The [UploadTask](https://firebase.google.com/docs/reference/js/storage.uploadtask) class is "Thenable" - it has a `then()` and `catch()` method which will be fed the upload complete and upload error events. This means you can use it with `await` or like any other Promise API. Because you are doing further Promise-based work in the upload complete event, using `UploadTask.on` should be avoided and only be used for updating progress of the upload. As your code doesn't use this progress update feature, I'll be omitting it, but it would be done using something like: ``` uploadTask.on('state_changed', (snapshot) => /* progress update */); ``` Additionally, close to the end of your code you attempt to add an empty document to Firestore for the user's messages. This will do nothing as empty documents are automatically deleted by Firestore on the backend. As such, it will be omitted from the code below. By applying these changes, your code becomes: ``` try { // ⬇ you can unwrap user from the userCredential object, better than using "res" const { user } = await createUserWithEmailAndPassword(auth, email, password); const storageRef = ref(storage, displayName); console.log(storageRef); const uploadTask = uploadBytesResumable(storageRef, file); console.log(uploadTask); // if using it, add progress updater here // uploadTask.on('state_changed', (snapshot) => /* progress update */); const uploadSnapshot = await uploadTask; // waits for upload completion const downloadURL = await getDownloadURL(uploadSnapshot.ref); await updateProfile(user, { displayName, photoURL: downloadURL, }); await setDoc(doc(db, "users", user.uid), { uid: user.uid, displayName, email, photoURL: downloadURL, }); navigate("/"); } catch { console.log(err); // don't forget to log the error so you can investigate setErr(true); } ``` Ideally, you would move most of this logic outside of your component into your UserContext using something similar to: ``` ​const userCtx = useContext(YourAuthUserContext); userCtx.createUserAndUserData({ email, password, displayName, file }) .then((user) => { navigate("/"); }) .catch((err) => { console.log("createUserAndUserData failed:", err); setErr(true); }); ```
null
CC BY-SA 4.0
null
2023-01-07T17:04:20.303
2023-01-07T17:04:20.303
null
null
3,068,190
null
75,042,294
2
null
75,036,210
0
null
You don't need add '**' end of bucket path. See: [https://learn.microsoft.com/en-us/sql/t-sql/statements/create-external-table-transact-sql?view=sql-server-ver16&tabs=dedicated#location--folder_or_filepath](https://learn.microsoft.com/en-us/sql/t-sql/statements/create-external-table-transact-sql?view=sql-server-ver16&tabs=dedicated#location--folder_or_filepath) ``` CREATE EXTERNAL TABLE tb_Test ( coluna_1 INT, coluna_2 VARCHAR(100) ) WITH ( LOCATION = '/testeParquet/', DATA_SOURCE = s3_ds, FILE_FORMAT = ParquetFileFormat ); GO ```
null
CC BY-SA 4.0
null
2023-01-07T17:16:24.947
2023-01-07T17:16:24.947
null
null
5,589,820
null
75,042,603
2
null
75,042,524
1
null
If we check the source code, `nbreaks` not having a NULL value is needed for evaluation ``` > ggcorr function (data, method = c("pairwise", "pearson"), cor_matrix = NULL, nbreaks = NULL, digits = 2, name = "", low = "#3B9AB2", mid = "#EEEEEE", high = "#F21A00", midpoint = 0, palette = NULL, geom = "tile", min_size = 2, max_size = 6, label = FALSE, label_alpha = FALSE, label_color = "black", label_round = 1, label_size = 4, limits = c(-1, 1), drop = is.null(limits) || identical(limits, FALSE), layout.exp = 0, legend.position = "right", legend.size = 9, ...) { .. .. if (!is.null(nbreaks)) { x = seq(-1, 1, length.out = nbreaks + 1) if (!nbreaks%%2) { x = sort(c(x, 0)) } m$breaks = cut(m$coefficient, breaks = unique(x), include.lowest = TRUE, dig.lab = digits) } .. .. if (geom == "tile") { if (is.null(nbreaks)) { p = p + geom_tile(aes(fill = coefficient), color = "white") } else { p = p + geom_tile(aes(fill = breaks), color = "white") } if (is.null(nbreaks) && !is.null(limits)) { p = p + scale_fill_gradient2(name, low = low, mid = mid, high = high, midpoint = midpoint, limits = limits) } else if (is.null(nbreaks)) { p = p + scale_fill_gradient2(name, low = low, mid = mid, high = high, midpoint = midpoint) } else if (is.null(palette)) { x = colorRampPalette(c(low, mid, high))(length(levels(m$breaks))) p = p + scale_fill_manual(name, values = x, drop = drop) } else { p = p + scale_fill_brewer(name, palette = palette, drop = drop) } .. } ``` Also it is specified in documentation > nbreaks - the number of breaks to apply to the correlation coefficients, which results in a categorical color scale. > if nbreaks is used, a ColorBrewer palette to use instead of the colors specified by low, mid and high. Defaults to NULL. Therefore, we may specify the `nbreaks` ``` ggcorr(df, palette = "RdYlGn", label = TRUE, nbreaks = 5) ``` -output [](https://i.stack.imgur.com/chCNV.png) ``` ggcorr(df, palette = "Set1", label = TRUE, nbreaks = 5) ``` -output [](https://i.stack.imgur.com/EWZNZ.jpg)
null
CC BY-SA 4.0
null
2023-01-07T17:58:43.823
2023-01-07T17:58:43.823
null
null
3,732,271
null
75,042,813
2
null
75,042,480
1
null
The problem is probably in your 3Dpie and not in the fact that you are knitting to pdf. Please consider checking [pie3D documentation](https://www.rdocumentation.org/packages/plotrix/versions/3.8-2/topics/pie3D). And try to run the code of that particular chunk in your console. Check [this example](https://jtr13.github.io/cc19/plotrix-for-complex-visualizations.html#pie3d-example) for instance: did you provide both values and labels for your pie-chart? Does it help to set the radius back to 1? Not sure if it can be higher in user units? Have you defined pi somewhere? Or do you need to call it from a math package? These are some ideas. I hope it helps. This [problem](https://stackoverflow.com/questions/15897087/error-ggplot-error-in-seq-int0-to0-from-by-to-must-be-finite) might also help.
null
CC BY-SA 4.0
null
2023-01-07T18:29:46.033
2023-01-07T18:29:46.033
null
null
20,460,458
null
75,043,188
2
null
71,598,698
0
null
If I understand your question, you want to create a dataframe containing only those records containing the two most frequent labels. Assuming you have a list of the desired labels a you can filter the dataframe as follows: ``` a = ["b'neptune,'", "b'normal,'"] dfout = df['labels].isin(a) ```
null
CC BY-SA 4.0
null
2023-01-07T19:28:20.013
2023-01-07T19:28:20.013
null
null
14,249,087
null
75,043,411
2
null
75,043,360
0
null
The creation of the table is useless. You can unpivot the columns from the aggregation directly in the query and return this as the function's result. Note that using the CHAR data type is discouraged. `text` is a better choice here. You also don't need PL/pgSQL just to return the result of a query. ``` CREATE OR REPLACE FUNCTION public.customer_activity(i_client_id integer, left_boundary date, right_boundary date) RETURNS TABLE (metric_name text, metric_value text) LANGUAGE sql AS $$ WITH cte_activity AS ( SELECT c.customer_id, INITCAP(c.first_name || ' ' || c.last_name) || ', ' || lower(c.email) AS "customer's info", COUNT(f.film_id) AS "num. of films rented", string_agg(DISTINCT INITCAP(f.title), ', ') AS "rented films' titles", COUNT(p.payment_date) AS "num. of payments", SUM(p.amount) AS "payments' amount" FROM public.customer c JOIN rental r ON r.customer_id = c.customer_id JOIN inventory i ON r.inventory_id = i.inventory_id JOIN film f ON f.film_id = i.film_id JOIN payment p ON p.rental_id = r.rental_id WHERE r.rental_date BETWEEN left_boundary AND right_boundary AND c.customer_id = i_client_id GROUP BY c.customer_id, "customer's info" ) SELECT u.* FROM cte_activity a cross join lateral ( VALUES ('customer''s info', a."customer's info"), ('num. of films rented', a."num. of films rented"::text), ('rented films'' titles', a."rented films' titles" ), ('num. of payments', a."num. of payments"::text), ('payments'' amount', a."payments' amount"::text) ) as u(metric_name, metric_value); $$; ``` --- Instead of hardcoding the columns in the final select, this can also be done by converting the row into JSON and then returning the key/values from that. This is a bit more dynamic: ``` CREATE OR REPLACE FUNCTION public.customer_activity(i_client_id integer, left_boundary date, right_boundary date) RETURNS TABLE (metric_name text, metric_value text) LANGUAGE sql AS $$ WITH cte_activity AS ( SELECT c.customer_id, INITCAP(c.first_name || ' ' || c.last_name) || ', ' || lower(c.email) AS "customer's info", COUNT(f.film_id) AS "num. of films rented", string_agg(DISTINCT INITCAP(f.title), ', ') AS "rented films' titles", COUNT(p.payment_date) AS "num. of payments", SUM(p.amount) AS "payments' amount" FROM public.customer c JOIN rental r ON r.customer_id = c.customer_id JOIN inventory i ON r.inventory_id = i.inventory_id JOIN film f ON f.film_id = i.film_id JOIN payment p ON p.rental_id = r.rental_id WHERE r.rental_date BETWEEN left_boundary AND right_boundary AND c.customer_id = i_client_id GROUP BY c.customer_id, "customer's info" ) SELECT u.* FROM cte_activity a cross join lateral jsonb_each(to_jsonb(a) - 'customer_id') as u; $$; ```
null
CC BY-SA 4.0
null
2023-01-07T20:02:49.973
2023-01-07T20:08:14.023
2023-01-07T20:08:14.023
330,315
330,315
null
75,043,545
2
null
75,003,993
3
null
If you want a better log, use a custom command to make a version that defers evaluating the value. By providing a callback, the `new Date().toLocaleTimeString()` expression evaluates when you expect it to. ``` Cypress.Commands.add('logLazy', (thingToLog) => { if (typeof thingToLog === 'function') { cy.log(thingToLog()) } else { cy.log(thingToLog) } }) cy.wait(3_000).then(() => cy.log("This is inside wait()" + new Date().toLocaleTimeString()) ); cy.log("This is after wait()" + new Date().toLocaleTimeString()); cy.wait(3_000).then(() => cy.logLazy("This is LAZY LOG inside wait()" + new Date().toLocaleTimeString()) ); cy.logLazy(() => "This is LAZY LOG after wait()" + new Date().toLocaleTimeString()); ``` [](https://i.stack.imgur.com/vNksd.png)
null
CC BY-SA 4.0
null
2023-01-07T20:24:56.373
2023-01-07T20:24:56.373
null
null
20,889,797
null
75,043,824
2
null
75,030,358
0
null
> ``` mov dx, offset prompt bucla: mov ah, 9h int 21h ``` Your trouble with "double printing" comes from keeping this `mov dx, offset prompt` instruction outside of the loop. Like @Peter Cordes already noticed in a comment, each time the code jumps back to , DX either points to or . > ``` jmp tipareste tipareste: mov ah, 9 int 21h ``` Your trouble with "double printing" the final message is a simple matter of not repeating yourself. --- I wrote next optimized version of your code. It is much shorter and jumps less around. And especially for > ``` jl maiMic jg maiMare je corect ``` it should be clear that the 3rd conditional jump is redundant. If the condition is neither nor , then is the only case that remains. Re-arrange your code so it can fall through in the remaining case. ``` bucla: mov dx, offset prompt mov ah, 09h int 21h mov ah, 01h int 21h mov ch, al cmp ch, cl mov dx, offset mesaj_1 jl mesaj mov dx, offset mesaj_2 jg mesaj mov dx, offset mesaj_3 mesaj: mov ah, 09h ; Prints any of the 3 messages int 21h cmp ch, cl jne bucla ; Repeat while not correct answer mov ax, 4C00h int 21h ```
null
CC BY-SA 4.0
null
2023-01-07T21:12:41.660
2023-01-07T21:12:41.660
null
null
3,144,770
null
75,044,217
2
null
75,044,095
0
null
You need to remove the element with the "No data available" before adding new elements to the table. Assuming that the "No data available" is an tr you can do like this ``` <script> const table = document.getElementById('dataTable'); var noDataElement = table.getElementsByTagName('tr')[0]; noDataElement.remove(); fetch('employees') .then(response => response.json()) .then(data => { data.forEach(employee => { const row = document.createElement('tr'); row.innerHTML = ` <td>${employee.id}</td> <td>${employee.name}</td> `; table.appendChild(row); }); }); </script> ```
null
CC BY-SA 4.0
null
2023-01-07T22:30:05.857
2023-01-07T22:30:05.857
null
null
155,035
null
75,044,241
2
null
11,023,619
0
null
Didn't realize I need to restart MariaDB after modifying `config.inc.php`: ``` service mariadb restart ``` Otherwise at least in my case changes didn't come affect. Also make sure your php session directory is writable by webserver (typically `session.save_path = "/var/lib/php/session"`)
null
CC BY-SA 4.0
null
2023-01-07T22:32:19.760
2023-01-08T13:03:59.180
2023-01-08T13:03:59.180
3,248,617
3,248,617
null
75,044,303
2
null
55,561,770
0
null
You should just wrap all widgets inside `CoordinatorLayout` with `FrameLayout` and change `AppBarLayout` position to the end: ``` <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:animateLayoutChanges="true" tools:context=".MainContentFragment"> <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent"> <androidx.core.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior"> ... <com.google.android.material.appbar.AppBarLayout android:layout_width="match_parent" android:layout_margin="32dp" android:background="@android:color/transparent" android:layout_height="wrap_content"> <androidx.appcompat.widget.Toolbar android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="@android:color/holo_red_dark" app:layout_scrollFlags="scroll|enterAlways"> </androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.AppBarLayout> </FrameLayout> <androidx.coordinatorlayout.widget.CoordinatorLayout ```
null
CC BY-SA 4.0
null
2023-01-07T22:45:21.700
2023-01-07T22:45:21.700
null
null
8,672,015
null
75,044,442
2
null
75,038,403
1
null
So turns out you need to re-render the marker once the image has loaded. ``` <MapboxGL.PointAnnotation ref={ref => (this.markerRef = ref)} key={"vehicle-" + vehicle._id} id={"vehicle-" + vehicle._id} coordinate={[vehicle.longitude, vehicle.latitude]} onSelected={() => centerOnMarker(vehicle)} > <View style={{ height: 75, width: 75 }}> {/* sized used for testing */} <Image source={require("../../assets/scooter-pins/green-full.png")} style={{ height: 54, width: 43.5 }} onLoad={() => this.markerRef.refresh()} /> </View> </MapboxGL.PointAnnotation> ``` Once the ref is added and the marker has refreshed, everything works well.
null
CC BY-SA 4.0
null
2023-01-07T23:17:30.393
2023-01-07T23:17:30.393
null
null
12,745,421
null
75,044,494
2
null
75,012,951
0
null
``` client.on('interactionCreate', async interaction => { if (!interaction.isStringSelectMenu()) return; const selected = await interaction.values.join(', '); const spielersucheerweitertEmbedfertig = new EmbedBuilder() .setTitle(`${ginputdata}`) .setColor('#00ff0c') .setDescription(stripIndents`Spiel: \`${sinputdata}\` Plattform: \`${selected}\``) .setFooter({ text: 'YANKEEUNIT91 COMMUNITY'}) .setTimestamp(); //executed when the button with the buttonanfrage custom ID is clicked await interaction.channel.send({ embeds: [spielersucheerweitertEmbedfertig] }); return await interaction.update({ content: '**Spielersuche wurde erfolgreich Angefragt!**', components: [] }); }); }); //This block is executed when the function is run await interaction.channel.send({ embeds: [spielersucheerweitertEmbed], components: [buttonsa] }); return await interaction.reply({ content: 'Spielersuche Embed wurde versendet!', ephemeral: true }); } ``` The issue you are experiencing is caused by the fact that both of these blocks of code are being executed, which is resulting in the same message and update being sent multiple times. So you have 2 options: 1. Remove the second block of code that sends the message and updates the interaction. This will prevent the message and update from being sent multiple times. 2. Add a flag to track whether or not the message and update have already been sent. You can then check the flag before sending the message and update to ensure that they are only sent once.
null
CC BY-SA 4.0
null
2023-01-07T23:31:37.567
2023-01-07T23:31:37.567
null
null
16,007,953
null
75,044,536
2
null
75,044,095
-2
null
This code works perfectly: ``` <script> $(document).ready(function () { $('#dataTable').DataTable() const table = document.getElementById('dataTable'); var noDataElement = table.getElementsByTagName('td')[0]; noDataElement.remove(); fetch('employees') .then(response => response.json()) .then(data => { data.forEach(employee => { const row = document.createElement('tr'); row.innerHTML = ` <td>${employee.id}</td> <td>${employee.name}</td> `; table.appendChild(row); }); }) }); </script> ```
null
CC BY-SA 4.0
null
2023-01-07T23:40:45.673
2023-01-07T23:40:45.673
null
null
20,954,527
null
75,044,676
2
null
75,017,773
0
null
According to the [reportlab docs](https://www.reportlab.com/docs/reportlab-userguide.pdf), page 14, "The draw string methods draw single lines of text on the canvas.". You might want to have a look at "The text object methods" on the same page.
null
CC BY-SA 4.0
null
2023-01-08T00:12:48.937
2023-01-08T00:12:48.937
null
null
11,912,476
null
75,044,792
2
null
75,041,898
0
null
Please try the following solution. The assumption is that you always have full set of values for each row in the target table: ([20], [25], [28C], [60F], [61], [86], [62F]) We are grouping all rows into buckets with 9 consecutive rows in each of them via `NTILE()` function. ``` -- DDL and sample data population, start DECLARE @tbl TABLE (Token VARCHAR(1024)); INSERT @tbl (Token) VALUES ('{1:F01SBZAZAJJXXXX9999999999}{2:I940SBICMWMXXXXXN}{4:'), (':20:D424A100110011E4'), (':25:020083203'), (':28C:49/1'), (':60F:C140106ZAR1029873,62'), (':61:1401060106DR5000,NTRF99999999//NONREF20140106-13175-016050001844421'), (':86:/PREF/ZA000520CATS THIRD PARTY PAYMENT'), (':62F:C140106ZAR0,00'), ('-}'), ('{1:F01SBZAZAJJXXXX9999999999}{2:I940SBICMWMXXXXXN}{4:'), (':20:D3DE7040110011E4'), (':25:020083204'), (':28C:51/1'), (':60F:C140106NAD1030073,'), (':61:1401060106DR5000,NTRF20140106-13175-0//NONREF20140106-13175-016050001844421'), (':86:/PREF/NA000520TRANSFER'), (':62F:C140106NAD0,00'), ('-}'); -- DDL and sample data population, end DECLARE @group INT = (SELECT COUNT(*) FROM @tbl) / 9 ;WITH rs AS ( SELECT * , _token = PARSENAME(REPLACE(token,':','.'),1) , seq = (ROW_NUMBER() OVER (ORDER BY (SELECT NULL))) % 9 , grp = NTILE(@group) OVER (ORDER BY (SELECT NULL)) FROM @tbl ) SELECT DISTINCT [20] = MAX(IIF(seq = 2, _token, '')) OVER (PARTITION BY grp) , [25] = MAX(IIF(seq = 3, _token, '')) OVER (PARTITION BY grp) , [28C] = MAX(IIF(seq = 4, _token, '')) OVER (PARTITION BY grp) , [60F] = MAX(IIF(seq = 5, _token, '')) OVER (PARTITION BY grp) , [61] = MAX(IIF(seq = 6, _token, '')) OVER (PARTITION BY grp) , [86] = MAX(IIF(seq = 7, _token, '')) OVER (PARTITION BY grp) , [62F] = MAX(IIF(seq = 8, _token, '')) OVER (PARTITION BY grp) FROM rs; ``` | 20 | 25 | 28C | 60F | 61 | 86 | 62F | | -- | -- | --- | --- | -- | -- | --- | | D3DE7040110011E4 | 020083204 | 51/1 | C140106NAD1030073, | 1401060106DR5000,NTRF20140106-13175-0//NONREF20140106-13175-016050001844421 | /PREF/NA000520TRANSFER | C140106NAD0,00 | | D424A100110011E4 | 020083203 | 49/1 | C140106ZAR1029873,62 | 1401060106DR5000,NTRF99999999//NONREF20140106-13175-016050001844421 | /PREF/ZA000520CATS THIRD PARTY PAYMENT | C140106ZAR0,00 |
null
CC BY-SA 4.0
null
2023-01-08T00:44:39.163
2023-01-08T14:07:15.010
2023-01-08T14:07:15.010
1,932,311
1,932,311
null
75,044,897
2
null
75,042,480
1
null
The most obvious problem is that you are probably asking for a palette of length 1: ``` hcl.colors(1, "Spectral") ``` > Error in seq.int(1, by = -2/(n - 1), length.out = n2) : 'by' must be a finite number This happens because `hcl.colors` tries to set up a step size `-2/(n-1)`, which is infinite if `n==1`. Guessing beyond this what's going on: unless you have explicitly defined an object called `data` in your workspace, R will find the built-in function `data()`: `length(data)` is 1 (as it seems all functions have length 1 - not quite sure what the logic is here ...) Also keep in mind that if you have a data frame `df`, `length(df)` will give you the number of — you would need `nrow(df)` to get the number of rows ...
null
CC BY-SA 4.0
null
2023-01-08T01:11:42.610
2023-01-08T01:11:42.610
null
null
190,277
null
75,045,015
2
null
75,044,984
-1
null
You need an `img` tag in your HTML file: ``` <img src="path of your img"> ``` (Or you can add an `img` in your CSS file .)
null
CC BY-SA 4.0
null
2023-01-08T01:46:10.860
2023-01-08T04:35:01.010
2023-01-08T04:35:01.010
10,871,073
20,955,269
null
75,045,010
2
null
75,043,310
0
null
The easiest solution is using an unbound `DataGridViewImageColumn`, then you can handle `CellFormatting` event and load the image. In the following example, I've handled the `CellFormatting` event, considering the following points: - `CellFormattings`- [](https://i.stack.imgur.com/FfN3h.png) To try the code, create a Form, drop a DataGridView on it and use the following code: ``` protected override void OnLoad(EventArgs e) { base.OnLoad(e); httpClient.DefaultRequestHeaders.TryAddWithoutValidation( "User-Agent", "Mozilla/5.0 (Windows NT 6.2; " + "WOW64; rv:19.0) Gecko/20100101 Firefox/19.0"); //Load data var data = GetData(); //Set up dataGridView dgv1.RowTemplate.Height = 100; dgv1.DataSource = data; dgv1.Columns.Add(new DataGridViewImageColumn() { Name = "ImageColumn", HeaderText = "Image", ImageLayout = DataGridViewImageCellLayout.Zoom, Width = 150 }); dgv1.CellFormatting += dgv1_CellFormatting; } private async void dgv1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) { if (e.RowIndex >= 0 && e.RowIndex < dgv1.NewRowIndex && dgv1.Columns[e.ColumnIndex].Name == "ImageColumn") { var item = (DataRowView)dgv1.Rows[e.RowIndex].DataBoundItem; var uri = item.Row.Field<string>("ImageUri"); if (e.Value == null || e.Value == DBNull.Value) { dgv1.Rows[e.RowIndex] .Cells["ImageColumn"].Value = await DownloadImage(uri); } } } DataTable GetData() { var data = new DataTable(); data.Columns.Add("Name", typeof(string)); data.Columns.Add("ImageUri", typeof(string)); data.Rows.Add("Lorem", $"https://picsum.photos/300/200?1"); data.Rows.Add("Ipsum", $"https://picsum.photos/300/200?2"); data.Rows.Add("Dolor", $"https://picsum.photos/300/200?3"); data.Rows.Add("Sit", $"https://picsum.photos/300/200?4"); data.Rows.Add("Amet", $"https://picsum.photos/300/200?5"); return data; } HttpClient httpClient = new HttpClient(); async Task<Image> DownloadImage(string uri) { return Image.FromStream(await httpClient.GetStreamAsync(uri)); } ``` Run the code and see the result. You should also take care of disposing the images: ``` protected override void OnFormClosing(FormClosingEventArgs e) { base.OnFormClosing(e); if (!e.Cancel) { DisposeImages(); } } void DisposeImages() { foreach (DataGridViewRow row in dgv1.Rows) { if (!row.IsNewRow) { var value = row.Cells["ImageColumn"].Value; row.Cells["ImageColumn"].Value = null; if (value is Image) ((Image)value).Dispose(); } } } ``` You may also want to modify the code and handle cases when the image could not be downloaded.
null
CC BY-SA 4.0
null
2023-01-08T01:43:22.027
2023-01-08T04:11:22.817
2023-01-08T04:11:22.817
3,110,834
3,110,834
null
75,045,038
2
null
75,044,984
0
null
This should do the trick, assuming you make sure to include an image in the same folder as the html file. ``` <img src="yourPicture.jpg" alt="A very shot description of your picture"> ``` Further explanation: To include images in HTML files, we use the `<imag>` tag. The image tag must have a valid `src` attribute, as it is telling the browser to where to look for the image. The `alt` attribute is not mandatory but very useful for making accessible HTMLs. [You can learn more here](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img)
null
CC BY-SA 4.0
null
2023-01-08T01:54:50.003
2023-01-08T02:05:32.000
2023-01-08T02:05:32.000
7,891,659
7,891,659
null
75,045,538
2
null
75,045,459
1
null
This part of your code seems to be the issue: ``` let amountVal = amount.value; amountVal = parseFloat(amountVal); if (amountVal == "" || amountVal == "0") { amount.value = "1"; amountVal = 1; } ``` where `parseFloat()` evaluates as `NaN` right away when the value is empty. Replace that with: ``` let amountVal = parseFloat(amount.value ?? "1"); amount.value = amount.value ?? "1" ``` The [?? operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing) is useful to set a default value on nullish or undefined.
null
CC BY-SA 4.0
null
2023-01-08T04:41:22.993
2023-01-08T04:41:22.993
null
null
2,159,528
null
75,045,552
2
null
75,045,459
0
null
The `result` in your `.then((result) =>` method is the response data, and there is no `rate` value but has `result.rate` ``` var result = { "base": "USD", "amount": 1, "result": { "AED": 3.67, "rate": 3.67189 }, "ms": 5 }; console.log( result.rate ); // undefined console.log( result.result.rate ); // 3.67189 // assuming that amountVal is 1 let amountVal = 1; let exchangeRate = result.result.rate; let totalExRate = (amountVal * exchangeRate).toFixed(2); console.log( totalExRate ); // 3.67 ```
null
CC BY-SA 4.0
null
2023-01-08T04:45:53.347
2023-01-08T04:45:53.347
null
null
6,624,509
null
75,045,589
2
null
71,498,112
1
null
You can set a default timeout for all navigation operations using: ``` const page = await browser.newPage(); page.setDefaultNavigationTimeout(10000); ``` Or you can also set the timeout for a specific `page.goto` operation using: ``` await page.goto('https://www.google.com', {waitUntil: 'load', timeout: 10000}); ```
null
CC BY-SA 4.0
null
2023-01-08T04:58:30.550
2023-01-08T04:58:30.550
null
null
13,690,747
null
75,045,751
2
null
75,045,614
0
null
The problem is because you are putting MyAds in `ListView.builder`. You need to remove the MyAds `TextView` from `ListView.builder`. The correct way should be ``` -Column -Your AdsView text -ListView.builder ```
null
CC BY-SA 4.0
null
2023-01-08T05:45:49.290
2023-01-08T05:45:49.290
null
null
5,156,075
null
75,045,771
2
null
75,045,614
0
null
You are using `listView` inside `listView` instead of `column` main issue. also you used some widgets incorrectly which will not correct for response mobile app. try this i updated your code. for Ads view only on top you need to place out side the ListView so it will display only once. ``` | Scaffold | | - Column[.. | | AdsView | | Expanded | | ListView ..] | ``` ``` Scaffold( body: Column( children: [ Container( margin: const EdgeInsets.only(left: 70, right: 60), height: 54.0, width: 224.0, child: Container( decoration: BoxDecoration( border: Border.all(color: const Color(0xffF4AC47), width: 5), color: const Color(0xff42A9D2), borderRadius: const BorderRadius.only( bottomLeft: Radius.circular(40), bottomRight: Radius.circular(40))), child: const Center( child: Text( "MyAds", style: TextStyle( fontSize: 25, color: Color(0xff072A52), fontFamily: 'Cairo'), textAlign: TextAlign.center, ), //end logo )), ), const SizedBox( height: 35, ), Expanded( child: ListView.builder( itemCount: list.length, itemBuilder: ((cts, i) { return Column( children: [ Container( margin: const EdgeInsets.symmetric(horizontal: 10), height: 180.0, child: Container( decoration: BoxDecoration( border: Border.all( color: const Color(0xff42A9D2), width: 5), borderRadius: BorderRadius.circular(8)), child: Row( children: [ const Expanded( flex: 3, child: Image( image: AssetImage("assets/book.jpg"), ), ), Expanded( flex: 6, child: Column( crossAxisAlignment: CrossAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.center, children: [ const Text( // "${list[i]["book_name"]}", "book_name", style: TextStyle( fontSize: 20, color: Colors.black87), ), const SizedBox(height: 12), Row( mainAxisAlignment: MainAxisAlignment.end, children: [ Text("${list[i]["collage"]}"), const Icon(Icons.perm_identity_rounded) ], ), const SizedBox(height: 12), Row( mainAxisAlignment: MainAxisAlignment.end, children: [ Text("${list[i]["loc"]}"), const Icon(Icons.store) ], ), ], ), ) ], ), ), ), const SizedBox(height: 16), ], ); }), ), ), ], ), ) ```
null
CC BY-SA 4.0
null
2023-01-08T05:50:48.190
2023-01-08T05:58:14.147
2023-01-08T05:58:14.147
17,343,976
17,343,976
null
75,045,950
2
null
73,535,371
0
null
Go to File and open sample projects, there you can find mavic 2 pro example.In that example observe how controller is written.
null
CC BY-SA 4.0
null
2023-01-08T06:48:13.480
2023-01-08T06:48:13.480
null
null
14,958,157
null
75,046,008
2
null
75,045,986
2
null
The problem is your function `sum(int a, int b)` has argument names that shadow the global variables you are trying to access. Also you need to call the `sum()` function, not just declare it. Try this instead: ``` #include <stdio.h> extern int a; extern int b; void sum() { printf("Sum is : %d", a + b); } int main() { sum(); } ```
null
CC BY-SA 4.0
null
2023-01-08T07:01:33.617
2023-01-08T07:01:33.617
null
null
3,528,321
null
75,046,124
2
null
27,805,894
0
null
which is Xcode 12. However, if you are using Xcode 6, you might be able to disable the "Lost connection to iPhone" message by doing the following: Open Xcode. Go to the Preferences menu (Xcode > Preferences or Command + Comma). Go to the Devices tab. Uncheck the "Show Disconnect Alerts" option. This will disable the "Lost connection to iPhone" message when you unplug an iOS device from your Mac. Note: If you are using Xcode 6 and are having issues with the iOS Simulator, you might want to try resetting the iOS Simulator or deleting the app that you are testing from the iOS Simulator.
null
CC BY-SA 4.0
null
2023-01-08T07:28:00.913
2023-01-08T07:28:00.913
null
null
20,956,282
null
75,046,203
2
null
75,046,079
0
null
However, if you want to disable the linter for some reason, you can do so by adding the following line at the top of your Flutter file: ``` // ignore: some_lint_rule ``` You can also disable the linter for a specific block of code by wrapping it in a `lint` comment. For example: ``` /*lint some_lint_rule: off */ // code that violates the some_lint_rule /*lint some_lint_rule: on */ ``` Note: Remember that turning off the linter might cause problems with your code, so you should normally avoid doing so unless you have a strong reason.
null
CC BY-SA 4.0
null
2023-01-08T07:44:02.337
2023-01-08T07:44:02.337
null
null
11,384,233
null
75,046,227
2
null
19,649,772
0
null
You should actually change your branch. Go to your repository settings> branch>toggle btw master/main and update. This should reflect all the files and folders in your repository.
null
CC BY-SA 4.0
null
2023-01-08T07:49:07.237
2023-01-08T07:49:07.237
null
null
20,956,434
null
75,046,472
2
null
74,913,055
0
null
Select `Bot` in the left sidepanel (under `OAuth2`), and at the top of the page under `Authorization Flow` make sure `REQUIRES OAUTH2 CODE GRANT` is disabled. Next, on the `OAuth2` page, make sure you don't have any extra scopes other than `bot` selected.
null
CC BY-SA 4.0
null
2023-01-08T08:43:02.260
2023-01-08T08:43:02.260
null
null
13,568,999
null
75,046,478
2
null
70,849,338
2
null
## A new sass module system Note: The Sass team discourages the continued use of the @import rule. Sass will gradually phase it out over the next few years, and eventually remove it from the language entirely. Prefer the @use rule instead. (Note that only Dart Sass currently supports @use. Users of other implementations must use the @import rule instead.) More details: [Here](https://sass-lang.com/blog/the-module-system-is-launched) Below is the best way to global scss at that time. ### vite.config.js ``` export default defineConfig({ css: { preprocessorOptions: { scss: { additionalData: `@use "~/styles/_main.scss" as *;`, }, }, }, plugins: [vue()], }); ``` ### styles/abstracts/_colors.scss ``` $default: #000000; $default-light: #333333; $default-dark: #000000; ``` ### styles/abstracts/index.scss ``` @forward './colors'; @forward ... ``` ### styles/_main.scss ``` @forward './abstracts'; @forward './components'; @forward './layouts'; ``` ### src/index.scss => don't forget to add this import "./index.scss" in App.vue ``` @forward './styles/abstracts'; @use './styles/abstracts' as *; * { margin: 0; padding: 0; box-sizing: border-box; } html { font-size: 62.5%; } body { font-family: $font-primary; font-size: 1.6rem; line-height: 1.5; text-rendering: optimizespeed; color: $text; overflow-y: overlay; } ```
null
CC BY-SA 4.0
null
2023-01-08T08:44:25.330
2023-01-16T07:39:45.220
2023-01-16T07:39:45.220
15,460,607
15,460,607
null
75,046,503
2
null
52,548,851
0
null
Use this code, Please pay attention to "products" table name ``` /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'title'=>'required', 'regularPrice'=>'required', 'slug' => [ 'required', 'alpha_dash', 'min:5', 'max:255', Rule::unique('products', 'slug')->ignore($this->product), ], ]; } ```
null
CC BY-SA 4.0
null
2023-01-08T08:50:01.213
2023-01-08T08:50:01.213
null
null
6,705,192
null
75,046,548
2
null
68,777,239
0
null
1. upload your picture or file to github. 2. open that file in github and copy its link. 3. open Readme.md file and type ![Model](Paste_link_here) 4. enjoy!
null
CC BY-SA 4.0
null
2023-01-08T08:59:46.657
2023-01-08T09:01:30.877
2023-01-08T09:01:30.877
4,826,457
15,504,949
null
75,046,600
2
null
74,141,248
0
null
Use Shell.TitleView ``` <Shell.TitleView> <Label Text="Test" TextColor="Black"/> </Shell.TitleView> ``` As I understand we should not use NavigationPage but I'm not sure. > NavigationPage is incompatible with .NET MAUI Shell apps, and an exception will be thrown if you attempt to use NavigationPage in a Shell app. For more information about Shell apps, see Shell. [https://learn.microsoft.com/en-us/dotnet/maui/user-interface/pages/navigationpage?view=net-maui-7.0](https://learn.microsoft.com/en-us/dotnet/maui/user-interface/pages/navigationpage?view=net-maui-7.0)
null
CC BY-SA 4.0
null
2023-01-08T09:08:09.933
2023-01-08T09:21:07.063
2023-01-08T09:21:07.063
19,846,773
19,846,773
null
75,046,671
2
null
55,912,964
0
null
In My case, actually I was using the other syntax which was working fine in other place but not in gmail so if you are using this syntax ``` @media only screen and (max-width: 480px) { table[class="w320"] { width: 320px !important; } ``` This works fine in all other places but not in gmail app, so for that use the better syntax: ``` @media only screen and (max-width: 480px) { table.w320{ width: 320px !important; } } ```
null
CC BY-SA 4.0
null
2023-01-08T09:24:40.950
2023-01-08T09:24:40.950
null
null
20,088,068
null
75,046,736
2
null
75,039,510
1
null
Problem was solved by upgrading to 1.4.0-alpha03 instead of 1.3.2
null
CC BY-SA 4.0
null
2023-01-08T09:35:42.030
2023-01-08T09:35:42.030
null
null
16,611,744
null
75,046,741
2
null
23,258,001
0
null
This is a great answer that I've used many times. I noticed a little room for improvement though. Sometimes the resulting sliced path has segments (those originated from the slicing path) in wrong order. That causes segment handles pointing to the opposite directions than intended and results in path deformation. I added a check and fix: ``` ... targets.forEach((target, i) => { const isFirst = i === 0 const innerPathCopy = isFirst ? innerPath : innerPath.clone() // THE FIX ------------------------------- // Check if the starting point of the slicing path and the ending point of the target path are at the same point (or very near). // If so, reverse the slicing path direction and fix the segment handle directions. if (innerPathCopy.getPointAt(0).isClose(target.getPointAt(target.length), 0.1)) innerPathCopy.reverse() // THE FIX ------------------------------- target.join(innerPathCopy, innerPathCopy.length) target.closed = true ... ```
null
CC BY-SA 4.0
null
2023-01-08T09:36:30.103
2023-01-08T19:01:17.200
2023-01-08T19:01:17.200
2,012,015
2,012,015
null
75,046,873
2
null
75,038,799
0
null
Your strategy.exit is updated on each bar once your Long is on. That's why your stop loss is updated on each bar. You should prevent the update this way : ``` if Long and strategy.position_size == 0 strategy.entry("long", strategy.long, 1, comment = "buy long") stoplosspricel := con1 ? low5 : low1 strategy.exit("stop loss long", "long", stop = stoplosspricel) ```
null
CC BY-SA 4.0
null
2023-01-08T09:56:24.690
2023-01-08T09:56:24.690
null
null
7,206,632
null
75,046,944
2
null
75,038,786
0
null
Try to call `getFirestore(app)` and not `getFirestore()` ``` import { initializeApp } from "firebase/app"; import { getAuth, GoogleAuthProvider } from "firebase/auth"; import { getFirestore } from "@firebase/firestore"; const firebaseConfig = { ... }; const app = initializeApp(firebaseConfig); export const auth = getAuth(app); export const googleProvider = new GoogleAuthProvider(); export const db = getFirestore(app); ```
null
CC BY-SA 4.0
null
2023-01-08T10:11:10.360
2023-01-08T10:11:10.360
null
null
3,592,771
null
75,047,056
2
null
75,038,872
0
null
I was able to solve this problem by adding the below. Thank you. ``` let map = L.map("map",{ renderer: L.svg({ padding:0 }) ```
null
CC BY-SA 4.0
null
2023-01-08T10:33:17.073
2023-01-08T10:33:17.073
null
null
20,950,569
null
75,047,118
2
null
75,046,950
1
null
There is no sense to pass the pointer to the dynamically allocated array by reference through a pointer to it ``` show_result(&array, count); ``` because the pointer is not changed within the function show_result. So declare the function like ``` void show_result( const int *, size_t ); ``` and call it like ``` show_result( array, count); ``` The if statements ``` if (*array[i] > max) ``` and ``` if (*array[i] < min) ``` use invalid expressions. You have to write at least like ``` if ( ( *array )[i] > max) ``` and ``` if ( ( *array )[i] < min) ``` You will not have such a problem if will declare the function as shown above. Also setting the variable `max` to `0` ``` int max = 0, min = INT_MAX; ``` does not make sense. As the element type of the array is `int` then it can contain all elements set by negative numbers. In this case you will get a wrong result. The function can be defined for example the following way ``` void show_result( const int *array, size_t count) { const int *max_address = array; const int *min_address = array; for ( size_t i = 1; i < count; ++i ) { if ( *max_address < array[i] ) { max_address = array + i; } else if ( array[i] < *min_address ) { min_address = array + i; } } if ( count != 0 ) { printf( "최대 원소의 주소: %p, 값: %d\n", ( const void * )max_address, *max_address ); printf( "최소 원소의 주소: %p, 값: %d\n", ( const void * )min_address, *min_address ); } else { // output a message that an empty array is passed } } ```
null
CC BY-SA 4.0
null
2023-01-08T10:42:27.987
2023-01-08T22:29:12.107
2023-01-08T22:29:12.107
472,495
2,877,241
null
75,047,514
2
null
74,989,137
-1
null
> All of you that have the same problem as i am rejoice, because you can add your own calculation in your pivot, 1. First of all you need to click your Pivot Table 2. Then Click Pivot Table Analyze Tab 3. Click Field, Items, & Sets 4. Then click Calculated Field 5. Now you can make your own calculation, after you make the calculation you click add/ ok 6. Then you can show the calculated field that you make in pivot table using Show Field List and check the new calculation that you make and drag it to your pivot table field
null
CC BY-SA 4.0
null
2023-01-08T11:51:34.653
2023-01-09T14:27:39.563
2023-01-09T14:27:39.563
4,294,399
20,915,935
null
75,047,635
2
null
13,335,228
0
null
Solution - Adjust Your Video Height And Width Using HTML So The Bar Fit To The Video Aspect Ratio Given By You. Then For Moving Your Video On Website Use Position Relative Property To Move Left Right Bottom Top With CSS
null
CC BY-SA 4.0
null
2023-01-08T12:10:26.037
2023-01-08T12:13:00.417
2023-01-08T12:13:00.417
20,957,667
20,957,667
null
75,048,026
2
null
75,044,911
0
null
## Background info There is nothing unusual in this PDF compared to any other. The text like any PDF is written in authors random order so for example the 1st PDF body Line (港区内認可保育園等一覧) is the 1262nd block of text added long after the table was started. To hear written order we can use Read Aloud, to verify character and language recognition but unless the PDF was correctly tagged it will also jump from text block to block [](https://i.stack.imgur.com/hwT7D.png) So internally the text is rarely tabular the first 8 lines are ``` 1 認可保育園 0歳 1歳 2歳3歳4歳5歳 計 短時間 標準時間 001010 区立 3か月 3455- 4669 芝5-18-1-101 ``` Thus you need text extractors that work in a grid like manner or convert the text layout into a row by row output. This is where all extractors will be confounded as to how to output such a jumbled dense layout and generally ALL will struggle with this page. Hence its best to use a good generic solution. It will still need data cleaning but at least you will have some thing to work on. If you only need a zone from the page it is best to set the boundary of interest to avoid extraneous parsing. Your "standalone Tabula tool" output is very good but could possibly be better by use pdftotext -layout and adjust some options to produce amore regular order. [](https://i.stack.imgur.com/Td4LZ.png) ## Your Question the difference in encoding output? ## The Answer The output from pdf is not the internal coding, so the desired text output is UTF-8, but PDF does not store the text as UTF-8 or unicode it simply uses numbers from a font character map. IF the map is poor everything would be gibberish, however in this case the map is good, so where does the gibberish arise? It is because that out part is not using UTF-8 and console output is rarely unicode. You correctly show that console needs to be set to Unicode mode then the output should match (except for the density problem) [](https://i.stack.imgur.com/WUkeE.png) The density issue would be easier to handle if preprocessed in a flowing format such as HTML [](https://i.stack.imgur.com/VVk6t.png) or using a different language [](https://i.stack.imgur.com/QtVlf.png)
null
CC BY-SA 4.0
null
2023-01-08T13:11:47.527
2023-01-08T14:54:58.213
2023-01-08T14:54:58.213
10,802,527
10,802,527
null
75,048,121
2
null
75,047,248
1
null
Thanks to the comments! I tried to separate creating and packing the frame and label and it works as it should! Working code: ``` headerFrame = CTkFrame(frame) headerFrame.pack(padx=10,pady=5,fill="x",side=TOP) label = CTkLabel(master=headerFrame,text="LABEL") label.pack(side=TOP) ``` Output: ![output of the working code](https://i.stack.imgur.com/lIku3.png)
null
CC BY-SA 4.0
null
2023-01-08T13:26:39.643
2023-01-09T07:21:35.967
2023-01-09T07:21:35.967
5,317,403
17,947,881
null
75,048,232
2
null
22,415,651
0
null
## Add a border to the semi-circle and remove the border-bottom ``` #semi-ring{ height: 100px; /* width = 2* height */ width: 200px; border: 30px solid black; /* border-radius = height + border */ border-radius: 130px 130px 0 0; border-bottom: transparent; } ``` ``` <div id="semi-ring"></div> ```
null
CC BY-SA 4.0
null
2023-01-08T13:45:12.400
2023-01-08T13:45:12.400
null
null
14,853,666
null
75,048,509
2
null
57,534,160
1
null
Do not need to wrap [LinearPercentIndicator](https://pub.dev/packages/percent_indicator) inside a Container widget. You could get the desired output only using LinearPercentIndicator. See the template code ``` LinearPercentIndicator( lineHeight: 40.0, barRadius: const Radius.circular(20.0), percent: 0.7, animation: true, animationDuration: 1000, backgroundColor: Color(0xFFD6D6D6), progressColor: Color(0xFF5BFB82), ), ```
null
CC BY-SA 4.0
null
2023-01-08T14:24:43.850
2023-01-11T19:17:42.353
2023-01-11T19:17:42.353
17,912,833
17,912,833
null
75,048,646
2
null
75,038,786
0
null
Try to exclude firebase in vite's optimizeDeps : ``` import { sveltekit } from "@sveltejs/kit/vite"; import pkg from "./package.json"; /** @type {import('vite').UserConfig} */ const config = { optimizeDeps: { exclude: [ "firebase", "firebase/app", "firebase/auth", "firebase/firestore", "firebase/analytics", ], }, define: { __VERSION: JSON.stringify(pkg.version), }, plugins: [sveltekit()], }; ``` found this solution in [github](https://github.com/firebase/firebase-js-sdk/issues/6926)
null
CC BY-SA 4.0
null
2023-01-08T14:42:02.467
2023-02-10T21:54:42.810
2023-02-10T21:54:42.810
13,488,990
13,488,990
null
75,048,871
2
null
75,039,641
0
null
``` root@database-deb:/home/marlon# mysql -V mysql Ver 15.1 Distrib 10.7.3-MariaDB, for debian-linux-gnu (x86_64) using readline EditLine wrapper ``` I looked in wrong places. On TYPO3 site you can see: > System requirements PHP 8.1 MariaDB 10.3+ / MySQL 8.0+ / PostgreSQL 10.0+ / SQLite 3.8.3+ but if you see details: [Requirements on TYPO3 site](https://i.stack.imgur.com/PTvZX.png) MariaDB >= 10.3.0 <= 10.6.99 MariaDB 10.3+ I guess, due to incompatible version of mariadb... A few hours later... I create new one VM with older MariaDB. ``` root@mariadb-10-6:/home/marlon# mysql -V mysql Ver 15.1 Distrib 10.6.11-MariaDB, for debian-linux-gnu (x86_64) using readline EditLine wrapper ``` Nothing changed. Still same error.
null
CC BY-SA 4.0
null
2023-01-08T15:11:06.907
2023-01-08T20:09:45.247
2023-01-08T20:09:45.247
20,951,334
20,951,334
null
75,049,036
2
null
34,446,780
0
null
Question is to old but maybe my answer will be useful for someone in 2023. To make work correctly the `animated icon` On `Visual Studio 2022` you need to disable the option shown on the screen (if you disable second one also the animated icon will disappear at all): [](https://i.stack.imgur.com/5FMcp.png)
null
CC BY-SA 4.0
null
2023-01-08T15:32:36.773
2023-01-08T15:32:36.773
null
null
16,644,879
null
75,049,043
2
null
26,794,236
0
null
The {rayshader} package is another package that allows 3D visualisation - according to the author, it will only allow 3d visualisation for data that has indeed three dimension. Here based on a . NB: the below required for me to install current GitHub versions of both the rayshader (v.0.33.3) and rgl (v.1.0.0) packages. ``` # devtools::install_github("tylermorganwall/rayshader") ## NB this will install a lot of dependencies library(rayshader) library(ggplot2) d <- read.table(text=' x y z t1 5 high t1 2 low t1 4 med t2 8 high t2 1 low t2 3 med t3 50 high t3 12 med t3 35 low', header=TRUE) p <- ggplot(d, aes(x, z, fill = y)) + geom_tile() + scale_fill_fermenter(type = "div", palette = "RdYlBu") plot_gg(p) render_movie(filename = "plot.gif") ``` [](https://i.stack.imgur.com/znwaK.gif)
null
CC BY-SA 4.0
null
2023-01-08T15:33:19.573
2023-01-08T15:33:19.573
null
null
7,941,188
null
75,049,272
2
null
73,083,764
0
null
`apt-get, yum, dnf` is not installed in the `mysql:latest` image. You should use the `microdnf` like below: ``` microdnf install -y vim ```
null
CC BY-SA 4.0
null
2023-01-08T16:04:08.780
2023-01-08T16:04:08.780
null
null
6,851,965
null
75,049,831
2
null
75,006,349
0
null
Try putting the code of `handleSubmit` in a try catch block and `console.log` the error. This is helpful in debugging the `NoErrorObjectAvailable` error. Is handle submit being used outside the Marionette class. It is defined as an api method Try replacing ``` const form = event.target; ``` with ``` const fields = event.detail.fields ``` and loop over fields instead of `form.elements` Since this is supported by `lightning-record-edit-form`'s submit event and you want to loop over the fields.
null
CC BY-SA 4.0
null
2023-01-08T17:14:46.053
2023-01-09T08:49:03.177
2023-01-09T08:49:03.177
14,829,703
3,002,100
null
75,050,027
2
null
75,048,549
-1
null
There are 2 options to fix the cors issue from backend cors Nodejs Package** package is use to provide a middleware that can be used to enable CORS with various options. Follow these steps: a.`npm i cors` b. `import cors` in your main file (index.js) const cors = require("cors") c. and `app.use(cors())` ``` app.use(function (req, res, next) { res.get("X-Frame-Options") res.header("Access-Control-Allow-Origin", "*") res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Authorization") res.header("Access-Control-Allow-Methods", "PUT, POST, GET, DELETE, OPTIONS") ) }) ```
null
CC BY-SA 4.0
null
2023-01-08T17:42:38.677
2023-01-08T17:42:38.677
null
null
14,604,327
null
75,050,180
2
null
23,836,000
0
null
We have to change the [DWMWindowAttributes](https://learn.microsoft.com/en-us/windows/win32/api/dwmapi/ne-dwmapi-dwmwindowattribute) for the tkinter window with ctypes which is under `windll.dwmapi.DwmSetWindowAttribute` For changing the title bar color, we can use `DWMWA_CAPTION_COLOR` which is set as (attribute number) for ``` import tkinter from ctypes import windll, byref, sizeof, c_int root = tkinter.Tk() root.title("Tkinter Window") root.update() HWND = windll.user32.GetParent(root.winfo_id()) # the window we want to change # These attributes are for windows 11 DWMWA_CAPTION_COLOR = 35 DWMWA_TITLE_COLOR = 36 COLOR_1 = 0x0000FFFF # color should be in hex order: 0x00bbggrr COLOR_2 = 0x00008000 windll.dwmapi.DwmSetWindowAttribute(HWND, DWMWA_CAPTION_COLOR, byref(c_int(COLOR_1)), sizeof(c_int)) windll.dwmapi.DwmSetWindowAttribute(HWND, DWMWA_TITLE_COLOR, byref(c_int(COLOR_2)), sizeof(c_int)) root.mainloop() ``` [](https://i.stack.imgur.com/RTsvk.png) more info about the color api used here: [https://learn.microsoft.com/en-us/windows/win32/gdi/colorref](https://learn.microsoft.com/en-us/windows/win32/gdi/colorref)
null
CC BY-SA 4.0
null
2023-01-08T18:04:16.513
2023-01-08T18:04:16.513
null
null
16,813,096
null
75,050,410
2
null
67,444,141
0
null
You can change the DWMWAttritbute for that window using ctypes. (Caption_Color in this case) Here is an example: ``` import tkinter from ctypes import windll, byref, sizeof, c_int root = tkinter.Tk() root.title("Tkinter Window") root.configure(bg="#292929") root.update() HWND = windll.user32.GetParent(root.winfo_id()) # This attribute is for windows 11 DWMWA_CAPTION_COLOR = 35 COLOR_1 = 0x00292929 # color should be in hex order: 0x00bbggrr windll.dwmapi.DwmSetWindowAttribute(HWND, DWMWA_CAPTION_COLOR, byref(c_int(COLOR_1)), sizeof(c_int)) root.mainloop() ``` [](https://i.stack.imgur.com/e2kry.jpg) This is tested on windows 11, idk about window 10, maybe have to change `DWMWA_CAPTION_COLOR = 34`
null
CC BY-SA 4.0
null
2023-01-08T18:44:48.873
2023-01-08T18:44:48.873
null
null
16,813,096
null
75,050,890
2
null
75,050,824
0
null
You are missing `> div` on `.show-grid-container` in the last piece of CSS
null
CC BY-SA 4.0
null
2023-01-08T20:03:37.543
2023-01-08T20:03:37.543
null
null
20,919,260
null
75,051,151
2
null
75,050,993
0
null
If I understand correctly, you have a data structure like this: ``` attendance: { user: { "$uid": { "$date": { Status: "..." } } } } ``` And from this you want to show the status per date for the current user. If that's indeed the use-case, you can do this with: ``` const userId = firebase.auth().currentUser.uid; const attendanceRef = firebase.database().ref("attendance"); const userRef = attendanceRef.child("users").child(userId); userRef.once("value", function(userSnapshot) { userSnapshot.forEach((dateSnapshot) => { const status = dateSnapshot.child("Status").val(); console.log(`User: ${userSnapshot.key}, Date: ${dateSnapshot.key}, Status: ${status}`); ... // TODO: add the data to the HTML as you're already doing }); }); ``` The main changes I made here: - - `forEach``DataSnapshot`- - `"Status"``status`
null
CC BY-SA 4.0
null
2023-01-08T20:45:45.723
2023-01-08T20:45:45.723
null
null
209,103
null
75,051,271
2
null
75,051,103
3
null
Use an interface ``` // modify interface to fit your program interface IPortfolio { public string Id { get; set; } public string portfolio { get; set; } public string portName { get; set; } } ``` and add `where T : IPortfolio` to the method declaration This allows you to use T as if it were an IPortfolio. ``` public bool LookPortName<T>(List<T> list, string id, ref string port, ref string name) where T : IPortfolio ``` Then, have any class which needs to be passed into the method implement the interface Note that you can't just use an interface because you wouldn't be able to pass a list. [More Info](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/generics/constraints-on-type-parameters)
null
CC BY-SA 4.0
null
2023-01-08T21:03:02.793
2023-01-10T18:41:04.503
2023-01-10T18:41:04.503
20,789,760
20,789,760
null
75,051,288
2
null
75,051,103
2
null
The common approach is to extract all common properties/methods into interface (or abstract class), implement this interface in the corresponding types (or inherit from the class) and then introduce the [generic constraint](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/generics/constraints-on-type-parameters) limiting the allowed types to the interface (or abstract class): ``` public bool LookPortName<T>(List<T> list, string id, ref string port, ref string name) where T : IHaveFields { T x = ...; x.SomePropOnInterface; } ```
null
CC BY-SA 4.0
null
2023-01-08T21:05:01.253
2023-01-08T21:05:01.253
null
null
2,501,279
null
75,051,585
2
null
4,381,033
0
null
``` <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <stroke android:width="2dp" android:color="#AEAEAE"></stroke> <corners android:radius="0dp" /> <padding android:bottom="2dp" android:left="5dp" android:right="1dp" android:top="2dp" /> <gradient android:endColor="#3F51B5" android:startColor="#2196F3" android:type="linear"></gradient> ```
null
CC BY-SA 4.0
null
2023-01-08T22:01:12.953
2023-01-08T22:01:12.953
null
null
20,936,807
null
75,051,641
2
null
75,051,609
0
null
try to edit your `settings.json` file like this : ``` "terminal.explorerKind": "external", "terminal.integrated.defaultProfile.windows": "Command Prompt" ``` [learn more](https://code.visualstudio.com/docs/python/environments) about using python in VS Code
null
CC BY-SA 4.0
null
2023-01-08T22:15:09.370
2023-02-10T21:24:59.527
2023-02-10T21:24:59.527
13,488,990
13,488,990
null
75,051,878
2
null
21,958,835
0
null
Change the class of the `ul` tag to `<ul class="nav navbar-nav">`.
null
CC BY-SA 4.0
null
2023-01-08T22:55:47.100
2023-01-09T01:33:13.953
2023-01-09T01:33:13.953
354,577
1,520,546
null
75,052,000
2
null
75,051,103
-1
null
Another option here is to assign to `dynamic` -- which > doesn’t require explicit cast operations at compile time, because it identifies the type at run time only ``` public class GenericListDemoProgram { internal static async Task Main(string[] args) { await Task.Yield(); var port = string.Empty; var name = string.Empty; if (LookPortName(new[] { new {id = "p1", portfolio = "profolio1", portName = "8123"}, new {id = "p2", portfolio = "profolio2", portName = "8122"}, new {id = "p3", portfolio = "profolio3", portName = "8121"}, new {id = "p4", portfolio = "profolio4", portName = "8120"}, }.ToList(), 3, ref port, ref name)) { Console.WriteLine($"port:{port}; name:{name}"); } } public static bool LookPortName<T>(List<T> list, int index, ref string port, ref string name) { try { //It checks if found id into generic list. if (index == -1) return false; dynamic? item = list[index]; if (item == null) return false; //Get portfolio abbreviation. port = item.portfolio.Trim(); //Get portfolio complete name. name = item.portName.Trim(); return true; } catch (Exception ex) { //Other code return false; } } } ``` ### result [](https://i.stack.imgur.com/9p32i.png) --- note the [Dynamic Language Runtime (DLR)](https://learn.microsoft.com/en-us/archive/msdn-magazine/2011/february/msdn-magazine-dynamic-net-understanding-the-dynamic-keyword-in-csharp-4#the-dynamic-language-runtime) is also a consideration here -- in respect to interoperation (though that may not be an aspect of your work)
null
CC BY-SA 4.0
null
2023-01-08T23:24:04.280
2023-01-09T03:22:15.857
2023-01-09T03:22:15.857
1,366,179
1,366,179
null
75,052,029
2
null
74,024,072
1
null
I found this a little bit confusing as well, most of the documentation is centered around backend services rather than backend buckets. If it helps anyone else, you can get the URI of your buckets with a gcloud command as follows: ``` gcloud compute backend-buckets list --uri ```
null
CC BY-SA 4.0
null
2023-01-08T23:31:26.020
2023-01-08T23:31:26.020
null
null
5,630,022
null
75,052,279
2
null
75,052,199
3
null
It is common in hardware to use [1-hot](https://en.wikipedia.org/wiki/One-hot) control signals here one line for read & one line for write, instead of one [encoded](https://en.wikipedia.org/w/index.php?title=Encode/Decode) line for both (i.e. one line where read=0, write=1). When signals are packed/encoded as you suggest, i.e. 2 bits represents 4 values, they generally have to be decoded into 1-hot before they can activate the intended hardware circuitry. So, here apparently, instead of encoding and decoding, they simply expose the 4 different 1-hot lines. Most importantly, however, two lines (one for read and one for write) allows for saying read, write, on a given bus cycle.  So, there's really three different values (or six for both I/O and memory), and these cannot even be encoded in 1 (or 2) bits (but could be in 2 (or 3 bits)). (Yes, it also allows for dual operation read=1 and write=1, but this is understood to be bad and no one will do it.)
null
CC BY-SA 4.0
null
2023-01-09T00:34:13.190
2023-01-09T15:19:50.663
2023-01-09T15:19:50.663
471,129
471,129
null
75,052,622
2
null
75,048,458
0
null
I am afraid that there is no such method can directly change the agent name without re-installing the self-hosted agent. The agent name is a primary key in the backend. We need to re-install the self-hosted agent, then you can change the self-hosted agent name. Refer to the doc about [the steps to re-install the self-hosted agent](https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/v2-linux?view=azure-devops#remove-and-re-configure-an-agent). I can fully understand your requirement. You can create a suggestion ticket in [Developer Community](https://developercommunity.visualstudio.com/AzureDevOps/suggest) to report your requirement.
null
CC BY-SA 4.0
null
2023-01-09T02:13:41.597
2023-01-09T02:13:41.597
null
null
13,464,420
null
75,052,672
2
null
75,043,805
0
null
`pipenv run main.py` means open the file in the ide you chose in the pipenv environment. In this way, it just opened the file instead of run python file. You need to use command `python main.py` to run it.
null
CC BY-SA 4.0
null
2023-01-09T02:25:47.727
2023-01-09T02:25:47.727
null
null
18,359,438
null
75,052,958
2
null
18,770,409
0
null
Just wanted to share what I think is the simplest solution. Doesn't use the selection object or clipboard and doesn't create an extra row that needs to be deleted. ``` Sub DuplicateRow(t As Table, r As Integer) t.Rows(r).Range.Next.InsertBefore vbCr t.Rows(r).Range.Next.FormattedText = t.Rows(r).Range.FormattedText End Sub ``` Just call the macro with the table and the row index to duplicate. Works with any row within the table (first, last or anything in-between) ``` DuplicateRow ActiveDocument.Tables(1), 2 ```
null
CC BY-SA 4.0
null
2023-01-09T03:37:21.427
2023-01-09T03:37:21.427
null
null
20,961,683
null
75,053,015
2
null
75,052,782
0
null
On a quick view, From this section of code: ``` SizedBox( width: 300, height: 19, child: Row(children: [ Container( child: Padding(padding: EdgeInsets.only(bottom: 20), child: Row( ``` Height of the `SizedBox` is `19` and the `padding` above second `Row` is `20`. Thus the bottom padding completely hide the `row`.
null
CC BY-SA 4.0
null
2023-01-09T03:49:00.820
2023-01-09T03:49:00.820
null
null
13,701,072
null
75,053,046
2
null
52,791,180
0
null
Follow @Cheticamp 's answer, it works when you set a SpannableString in a setText() method. Also you should override setText() method and set Spans to mSpans: ``` @Override public void setText(CharSequence text, BufferType type) { mSpans = Editable.Factory.getInstance().newEditable(text).getSpans(0, text.length(), BlanksSpan.class); Log.d(TAG, "setText: " + mSpans.length); super.setText(text, type); } ``` if you don't set a SpannableString, Editable interface will get a simple String without Spans. So if you call methods like: 1. Editable.getSpanStart(tag) returns -1; 2. Editable.getSpanEnd(tag) returns -1; 3. Editable.getSpans(start, end, Class) returns empty array
null
CC BY-SA 4.0
null
2023-01-09T03:56:07.163
2023-01-09T04:07:56.810
2023-01-09T04:07:56.810
20,961,769
20,961,769
null
75,053,073
2
null
75,052,186
0
null
Thank you for your tips in comments. The problem was , which is forbidden when using ORM frameworks, like . Simple migration fixed the issue completely. For that, I had to open package manager in . And enter next 2 commands for migrating: `Add-Migration <MigrationName>` And... `update-database <MigrationName>`
null
CC BY-SA 4.0
null
2023-01-09T04:02:15.867
2023-01-09T04:02:15.867
null
null
20,960,695
null
75,053,176
2
null
72,876,455
0
null
Turned out to be a bug on webpagetest.
null
CC BY-SA 4.0
null
2023-01-09T04:26:12.983
2023-01-09T04:26:12.983
null
null
1,828,637
null