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,430,323
2
null
75,428,847
0
null
I'm not sure if this is exactly what you want but try it. ``` let events = calendar.getEvents(start,end); let desc = []; events.forEach( event => { let text = event.getDescription(); text = text.replace(/<.+?>/gm,""); console.log(text); } ); ``` Reference - [RegExr](https://regexr.com/)
null
CC BY-SA 4.0
null
2023-02-12T21:33:07.243
2023-02-12T21:33:07.243
null
null
3,656,739
null
75,430,638
2
null
75,428,186
0
null
You can do it using `subquery` : ``` select navn from lystfisker.plads where plads_id in ( select plads_id from lystfisker.fisketur where month(dato) = 10 ); ``` Or using an `inner join` ``` select navn from lystfisker.plads p inner join lystfisker.fisketur f on f.plads_id = p.plads_id where month(f.dato) = 10 ```
null
CC BY-SA 4.0
null
2023-02-12T22:42:10.333
2023-02-12T22:42:10.333
null
null
4,286,884
null
75,430,875
2
null
61,135,083
0
null
Click config then click PHP (php.ini) and add then following three lines ``` extension=php_mssql.dll extension=php_mysql.dll extension=php_mysqli.dll ``` [https://forum.testlink.org/viewtopic.php?t=2935](https://forum.testlink.org/viewtopic.php?t=2935) htis help me to fix it
null
CC BY-SA 4.0
null
2023-02-12T23:42:35.247
2023-02-12T23:42:35.247
null
null
21,200,169
null
75,431,070
2
null
75,331,984
0
null
There are quite a few ways to do this, but the general idea is usually pretty much the same: 1. Get a DC to the screen or the window's client area (aka DC1). 2. Create a DC compatible with DC1 (aka DC2). 3. create a CBitmap compatible with DC1, of the size you want to copy/save. 4. select the bitmap into DC2. 5. bitblt the area you care about from DC1 to DC2. 6. Create a CImage object. 7. Detach the bitmap from the CBitmap, and attach it to the CImage. 8. Use CImage::Save to save the bitmap to a file. There are variations (e.g., writing the data to a file without using a CImage), but they tend to be tedious, and unless you're willing to put quite a bit of effort into things, fairly limited as well. e.g., writing a .BMP file on your own isn't terribly difficult, but is a bit tedious.If you want to support writing JPEG, TIFF, PNG, etc., you either need to integrate a number of libraries, or else write quite a bit of code for the file formats. CImage is somewhat limited as well, but at least supports a half dozen or so of the most common formats (and most people find just JPEG, PNG and possibly GIF sufficient). Here's a bit of tested sample code for saving a 200x200 chunk of whatever's displayed in the current view window into a file named `capture.jpg`: ``` void CPicCapView::OnLButtonDown(UINT nFlags, CPoint point) { // width and height of area to capture static const uint32_t width = 200; static const uint32_t height = 200; CClientDC dc(this); CDC temp; temp.CreateCompatibleDC(&dc); CBitmap bmp; bmp.CreateCompatibleBitmap(&dc, width, height); temp.SelectObject(&bmp); // x-width/2, y-width/2 to get area centered at click point temp.BitBlt(0, 0, width, height, &dc, point.x- width/2, point.y-height/2, SRCCOPY); CImage dest; dest.Attach((HBITMAP)bmp.Detach()); // for the moment, just saving to a fixed file name dest.Save(L".\\capture.jpg"); CView::OnLButtonDown(nFlags, point); } ``` It might initially seem like you should be able to create the CImage object, use its `Create` to create a bitmap, and then blit directly from the screen bitmap to the CImage bitmap. Unfortunately, CImage's BitBlt uses the CImage as a source, not a destination, so although there may be some way to get this to work, the obvious method doesn't.
null
CC BY-SA 4.0
null
2023-02-13T00:36:16.280
2023-02-13T00:55:53.250
2023-02-13T00:55:53.250
179,910
179,910
null
75,431,386
2
null
75,425,241
0
null
As marc_s said, in the second screenshot, you entered "Solution Explorer - Folder View" by mistake. There is a difference between the file page and the solution interface. Click this button (Switch between solutions and available views), you can switch between different views. [](https://i.stack.imgur.com/soPKL.png) [](https://i.stack.imgur.com/Yz3Xf.gif)
null
CC BY-SA 4.0
null
2023-02-13T02:08:50.553
2023-02-13T02:08:50.553
null
null
16,764,901
null
75,431,429
2
null
75,431,360
-1
null
try this ``` function fetchData() { const dbRef = query( ref(database, "vote/"), orderByChild("department"), equalTo(getUrlParameter("department")) ); onValue(dbRef, (snapshot) => { const data = snapshot.val(); let tbody = '' snapshot.forEach((childSnapshot) => { var childKey = childSnapshot.key; var childData = childSnapshot.val(); tbody += `<tr> <td>${childData.judgeName}</td> <td>${childData.score1}</td> <td>${childData.score2}</td> <td>${childData.score3}</td> <td>${childData.score4}</td> <td>${childData.score5}</td> </tr>`; }); $(".list").html(tbody); }); } ```
null
CC BY-SA 4.0
null
2023-02-13T02:18:27.370
2023-02-13T02:18:27.370
null
null
12,342,919
null
75,431,476
2
null
75,431,411
0
null
If I understand you correctly you want to force the text to break so that it doesn't extend outside the container. Try adding the following style to your css ``` overflow-wrap: break-word; ``` The overflow-wrap style can also take values of "normal" and "anywhere" depending on how you want the lines broken.
null
CC BY-SA 4.0
null
2023-02-13T02:31:04.727
2023-02-13T02:31:04.727
null
null
5,186,699
null
75,431,556
2
null
75,431,493
0
null
Try this `<link rel="stylesheet" href="./wireframe_stylesheet.css">` But I believe you've done something wrong in HTML code, share the full code so I can figure out what's wrong in it.
null
CC BY-SA 4.0
null
2023-02-13T02:53:39.157
2023-02-13T02:53:39.157
null
null
11,038,146
null
75,431,601
2
null
75,419,440
0
null
Write `::after` for table row hover, Ex: SCSS: ``` tr { position: relative; &:not(:first-child):hover{ cursor: pointer; &::after { content: ''; position: absolute; width: auto; height: auto; top: -1px; bottom: -1px; left: -5%; right: -5%; background: var(--med-admin-hover); border-top: 1px solid var(--med-admin-light-grey); border-bottom: 1px solid var(--med-admin-light-grey); z-index: -1; } } } ``` It will gives you wider table hover, if you wanna fit it to table set 0 for left and right.
null
CC BY-SA 4.0
null
2023-02-13T03:05:59.720
2023-02-13T03:34:44.537
2023-02-13T03:34:44.537
10,974,661
10,974,661
null
75,431,646
2
null
75,423,156
0
null
Step 1: Create a Parameter: "Nth Rank" with type as Integer and values as 1,2,3,4 etc Step 2: Create a Calculated field: "Rank number" and put this formula ``` RANK(SUM([Votes Secured],'desc') = [Nth Rank] ``` Step 3: Show the Parameter as a dropdown Step 4 : Drag the field "Rank number" in the filters pane and set to TRUE Now, whatever Rank number you select from the parameter will display in the dashboard
null
CC BY-SA 4.0
null
2023-02-13T03:17:43.360
2023-02-13T03:17:43.360
null
null
14,146,580
null
75,431,631
2
null
75,413,757
1
null
> I'm trying to create random values and send them to controller which is in mvc api controller.But my datas in api always come 0 or null like their default. In console app i'm creating them but my datas come null or 0. What is my real problem? Well, couple of things might cause you getting null data on your controller, first of all as [@Serge](https://stackoverflow.com/users/11392290/serge) point out that in your code you have used [FromBody] but your screenshot missing it. My take on this, request should reach to your controller if you build it with valid [class property](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/properties) and with no additional configuration on your [AddJsonOptions](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.dependencyinjection.mvcjsonmvcbuilderextensions.addjsonoptions?view=aspnetcore-2.2&viewFallbackFrom=aspnetcore-7.0) at your program.cs file according to your shared code snippet. Console App Snippet: ``` using Newtonsoft.Json; using System.Text; var random = new Random(DateTime.Now.Millisecond); var data = new WorkStationRandomValueDTO { WorkStationId = random.Next(1, 100), Temperature = (decimal)Math.Round(random.NextDouble() * 100, 2), Pressure = (decimal)Math.Round(random.NextDouble() * 2000, 2), Status = random.Next(0, 1) == 1 }; using (var client = new HttpClient()) { var content = new StringContent(JsonConvert.SerializeObject(data), Encoding.UTF8, "application/json"); var response = await client.PostAsync("http://localhost:5094/WorkStationRandom/post", content); if (response.IsSuccessStatusCode) { Console.WriteLine($"WorkStationId: {data.WorkStationId}\nTemperature: {data.Temperature}\nPressure: {data.Pressure}\nStatus: {data.Status}\n "); Console.WriteLine("Data posted successfully"); } else { Console.WriteLine("Error occured while posting data"); Console.WriteLine(await response.Content.ReadAsStringAsync()); } } public class WorkStationRandomValueDTO { public int WorkStationId { get; set; } public decimal Temperature { get; set; } public decimal Pressure { get; set; } public bool Status { get; set; } } ``` API Code Snippet: ``` public class WorkStationRandomController : ControllerBase { [HttpPost] public IActionResult Post([FromBody] WorkStationRandomValueDTO data) { if (data != null && data.WorkStationId != 0 && data.Temperature != 0 && data.Pressure != 0) { //data.Status = true; //var workStation = _mapper.Map<WorkStation>(data); //_dbContext.WorkStations.Add(workStation); //_dbContext.SaveChanges(); return Ok(); } else { return BadRequest("Data is not valid."); } } } public class WorkStationRandomValueDTO { public int WorkStationId { get; set; } public decimal Temperature { get; set; } public decimal Pressure { get; set; } public bool Status { get; set; } } ``` [](https://i.stack.imgur.com/nJ9m1.gif) Any additional, configurations which has not been shared will not be considered here. If you have any configuration in program.cs which has not shared with us: If you follow my above sample, your request should reach to your controller with valid data as you can see in given debug capture. In this scenario you do not need [builder.Services.AddControllersWithViews().AddJsonOptions(options =>](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/options?view=aspnetcore-7.0#options-interfaces) on your program.cs file. For instance: If you have any additional property on your AddJsonOptions which you haven't shared that also might cuase the issue. If you define WorkStationRandomValueDTO as Property as Field Inside your WorkStationRandomValueDTO class if you define WorkStationId, Temperature and others member as [Fields](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/fields) just as following: ``` public class WorkStationRandomValueDTO { public int WorkStationId; public decimal Temperature; public decimal Pressure; public bool Status; } ``` Fields instead of [Property](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/properties) might cause null data in your controller as per your shared code. It doesn't mean that you cannot send field value but the way you are sending request at this moment that cause null parameter. Therefore, above two issue can cause your empty reuqest at your controller. Here I have the reproduce your scenario accordingly. [](https://i.stack.imgur.com/BW8OK.gif)
null
CC BY-SA 4.0
null
2023-02-13T03:12:36.553
2023-02-13T05:25:36.033
2023-02-13T05:25:36.033
9,663,070
9,663,070
null
75,431,689
2
null
75,431,577
1
null
use `doc.id` to get ID of document: ``` List<String> iDs = []; FirebaseFirestore.instance .collection('buying2') .get() .then((QuerySnapshot querySnapshot) { querySnapshot.docs.forEach((doc) { print(doc.id); //this is document ID iDs.add(doc.id); }); }); ```
null
CC BY-SA 4.0
null
2023-02-13T03:28:46.120
2023-02-13T03:28:46.120
null
null
15,110,149
null
75,431,710
2
null
75,141,679
0
null
Haha, I found the solution, just declare the properties of androidconfig in the activity in manifest file, the activity will not be destroyed anymore.
null
CC BY-SA 4.0
null
2023-02-13T03:35:05.700
2023-02-13T03:35:05.700
null
null
19,833,472
null
75,431,824
2
null
13,676,587
1
null
Add style ``` pre{ white-space: break-spaces; word-break: break-word; } ```
null
CC BY-SA 4.0
null
2023-02-13T04:05:24.280
2023-02-13T04:05:24.280
null
null
3,335,179
null
75,431,873
2
null
75,428,510
0
null
It looks like the problem might be that the `<nav>` and `<main>` elements are set to `position: fixed`, which removes them from the flow of the document and makes them positioned relative to the viewport. To achieve the desired layout using `flex`, you should set the body to `display: flex` and use the `flex` property to specify how the `<nav>` and `<main>` elements should be arranged. Here's what you can do: ``` html { box-sizing: border-box; margin: 0; border: solid 1px; padding: 0; width: 100%; } body { border: solid 1px; font-family: sans-serif; color: #0a0a23; display: flex; margin: 0; height: 100%; padding: 0; width: 100%; } nav { width: 300px; height: 100vh; border: solid 3px grey; border-top: transparent; border-left: transparent; border-bottom: transparent; margin: 0; max-width: 800px; flex: 0 0 300px; } main { border: solid 1px; width: calc(100% - 400px); padding: 0; white-space: normal; margin: 10px 50px; flex: 1; } ```
null
CC BY-SA 4.0
null
2023-02-13T04:17:44.347
2023-02-16T04:57:49.750
2023-02-16T04:57:49.750
13,376,511
21,198,157
null
75,431,879
2
null
75,429,294
0
null
If I understand you correctly, you want to set the TintColor of the svg Image. You could just set the TintColor for the Image in csproj file: ``` <MauiImage Include="Resources\Images\housesolid.svg" TintColor="#66B3FF" /> ``` Hope it works for you.
null
CC BY-SA 4.0
null
2023-02-13T04:18:45.470
2023-02-13T04:18:45.470
null
null
20,118,901
null
75,432,130
2
null
75,318,113
1
null
I just went into the exact same problem today. The fix is adding below lines in your `.vimrc` file: ``` set keyprotocol= let &term=&term ``` For more information, you can refer to the [issue reported in GitHub](https://github.com/vim/vim/issues/11728).
null
CC BY-SA 4.0
null
2023-02-13T05:21:31.813
2023-02-13T05:21:31.813
null
null
20,061,574
null
75,432,192
2
null
75,431,493
0
null
Use this snippet in between the head tag ``` <link rel="stylesheet" href=".Your CDs file name.css"> ```
null
CC BY-SA 4.0
null
2023-02-13T05:34:20.903
2023-02-13T14:18:33.880
2023-02-13T14:18:33.880
4,294,399
21,174,570
null
75,432,415
2
null
75,431,263
0
null
In `name_input()` you don't terminate your strings correctly as the last iteration is `i=9`: ``` for(i=0;i<10;i++) { scanf("%c",&huangzihan[i]); if(huangzihan[i]==10) { huangzihan[i]='\0'; break; } } ``` Instead you could do: ``` int i = 0; for(; i < sizeof huangzihan - 1; i++) { scanf("%c", &huangzihan[i]); } huangzihan[i] = '\0'; ``` I don't know if your letters entered fit into the `char` if not you will get some weird corruption. You can also just read a string with: ``` #define huangzihan_len 9 #define str(s) str2(s) #define str2(s) #s char huangzihan[huangzihan_len+1]; //... scanf("%" str(huangzihan_len) "s", huangzihan); ``` After reading a string you do `getchar()` presumably to get rid of the newline. You can change the format string with an initial space to do that automatically " %c", or make a flush function that discards all data till you hit a new line: ``` void flush() { for(;;) { int ch = getchar(); if(ch == EOF || ch == '\n') return; } } ``` Your code is repetitive so consider using an array to hold your strings, as they are different length perhaps an array of string pointers `char *str[4]`?
null
CC BY-SA 4.0
null
2023-02-13T06:16:11.843
2023-02-13T06:27:20.400
2023-02-13T06:27:20.400
9,706
9,706
null
75,432,687
2
null
75,432,081
0
null
if you have visual studio 2022 and you don't see version 6 1-open visual studio installer and update it. 2-download .NET 6 SDK
null
CC BY-SA 4.0
null
2023-02-13T06:53:37.480
2023-02-13T06:53:37.480
null
null
11,387,667
null
75,432,698
2
null
75,407,420
0
null
I see the blog, they used `Plugin.Firebase` Nuget Package. Do you use this third-party tool as well? Tips: Push notification works on a .net MAUI app with the existing [Xamarin.GooglePlayServices.Base](https://www.nuget.org/packages/Xamarin.GooglePlayServices.Base)`net6.0-android31.0`and [Xamarin.Firebase.Messaging](https://www.nuget.org/packages/Xamarin.Firebase.Messaging)`net6.0-android31.0` libraries. Since they use only platform-specific events and code and do not have a reference to `Xamarin.Forms` or `.NET MAUI`, you can even leverage those.
null
CC BY-SA 4.0
null
2023-02-13T06:54:57.470
2023-02-13T06:54:57.470
null
null
8,448,193
null
75,432,983
2
null
8,379,785
0
null
I had the same lack of understanding. It took me a while to wrap my head around how BFS finds the shortest path between any two nodes. Unfortunately, most answers are unhelpful and convolute the matter by bringing in Djikstra's algorithm unnecessarily. I shall expand upon the answer by Himanshu who raised the crucial point that... Just by the way BFS traverses a graph, any node it reaches is the shortest path to that node from the source node. Suppose we need to find the path D-C in the following simple graph. Follow along using pen and paper. [Smallgraph4nodes](https://i.stack.imgur.com/aix7X.png) We start from D and explore the graph using BFS. You see that it's certain that we shall reach C through B and not A because B would come first in our traversal. This is why we think of nodes as parents and children and why this information is stored in the form of a dictionary as we move along the graph for later retrieval to construct a path. Suppose this dict is called 'rel_dict', rel for relationship. Let's make this graph bigger (picture and code added for the graph). Now, we'll see that to find the path between any two nodes, it's important that we start from one of the two nodes. Because if we choose a third node the rel_dict so formed at the end of the BFS traversal would possibly not give the shortest path but instead either no path at all or a longer one. [7nodesgraph](https://i.stack.imgur.com/HLXc3.png) ``` import networkx as nx import matplotlib.pyplot as plt d = { "A": ["B", "C"], "B": ["A", "D", "E", "C"], "C": ["A", 'B', "F"], "D": ["B"], "E": ["B", "G"], "F": ["C"], "G": ["E"] } g = nx.Graph(d) nx.draw_networkx(g) plt.draw() plt.show() ``` To dequeue a node we enqueue its children, if any. Simultaneously for each node visited we map it to its parent in the rel_dict dictionary. We keep doing this till the queue empties out. Then to construct the path between the starting node and any other node we, take the ending node find its parent then find the parent of this parent and so on, till we find the starting node and we will. Do this exercise by pen and paper: you'll have to maintain the queue and the rel_dict. Then construct the path in reverse. Now, try to find the path between any two nodes neither of which were the starting nodes and you'll see that it doesn't give the correct answer.
null
CC BY-SA 4.0
null
2023-02-13T07:32:28.117
2023-02-13T07:32:28.117
null
null
21,164,592
null
75,433,270
2
null
75,431,263
2
null
If the input string has exactly the maximum number of characters, the target array is not null terminated, causing `printf("...%s", ...)` to have undefined behavior. If your case it seems the arrays `huangchunqin` and `chenlanying` are adjacent in memory, so `printf("%s",p2);` outputs the contents of `huangchunqin` until it finds a null terminator, which does not occur before the end of `chenlanying`. You should make the arrays one byte longer and use a function to read these strings: ``` /* Author: 查理戈登 */ /* Description: 程序的修改版本 */ #include <stdio.h> char huangzihan[11]; char huangchunqin[13]; char chenlanying[13]; char shejiazi[9]; // read a string into a char array of a given length, // return EOF if no input at end of file, 1 if truncated, 0 otherwise int input_string(const char *prompt, char *dest, size_t size) { size_t i = 0; int c; int result = 0; printf("%s: ", prompt); while ((c = getchar()) != EOF && c != '\n') { if (i + 1 < size) { dest[i++] = c; } else { result = 1; } } dest[i] = '\0'; if (i == 0 && c == EOF) result = EOF; return result; } void name_input(void) { printf("*********************************\n"); printf(" 给字符数组输入对应的名字 \n"); printf("*********************************\n"); // Qǐng shūrù shéjiāzǐ de xiǎoxiě pīnyīn input_string("请输入黄子涵的小写拼音", huangzihan, sizeof huangzihan); input_string("请输入黄春钦的小写拼音", huangchunqin, sizeof huangchunqin); input_string("请输入陈兰英的小写拼音", chenlanying, sizeof chenlanying); input_string("请输入佘佳梓的小写拼音", shejiazi, sizeof shejiazi); printf("\n"); } ```
null
CC BY-SA 4.0
null
2023-02-13T08:08:13.820
2023-02-13T13:12:09.743
2023-02-13T13:12:09.743
4,593,267
4,593,267
null
75,433,479
2
null
75,415,722
0
null
Try this: ``` !pip install cudf-cu11==22.12 rmm-cu11==22.12 --extra-index-url=https://pypi.ngc.nvidia.com/. ``` Source: [https://github.com/rapidsai/cudf/issues/12762#issuecomment-1427064693](https://github.com/rapidsai/cudf/issues/12762#issuecomment-1427064693)
null
CC BY-SA 4.0
null
2023-02-13T08:30:33.143
2023-02-21T02:16:17.563
2023-02-21T02:16:17.563
3,025,856
11,968,510
null
75,433,565
2
null
59,403,343
0
null
Setting `JAVA_OPTS` causes issues on using JDK versions lower than 11 as mentioned on this [issue thread](https://github.com/flutter/flutter/issues/39549). Removing this should resolve the issue. Another workaround to prevent similar issues is to use the [JDK bundled](https://developer.android.com/studio/intro/studio-config#jdk) with Android Studio.
null
CC BY-SA 4.0
null
2023-02-13T08:38:59.930
2023-02-13T08:38:59.930
null
null
2,497,859
null
75,433,583
2
null
75,427,249
0
null
so let's make it clear you have a collection `movies`, witch has repeatable components `casts` witch has relation to an `actor`. So id that you have in your screenshot is likely an id of component, to get full data you would need to populate at list two levels deep: ``` const query = qs.stringify( { populate: { casts: { populate: ['actor'], }, }, }, { encodeValuesOnly: true, } ); ``` witch would give request like this: ``` http://localhost:1337/api/movies?populate[casts][populate][0]=actor ```
null
CC BY-SA 4.0
null
2023-02-13T08:41:04.850
2023-02-13T08:41:04.850
null
null
2,461,748
null
75,434,297
2
null
73,699,480
0
null
Solution found on [github](https://github.com/rnmapbox/maps/issues/1331). You should set 'MapboxGL.setWellKnownTileServer("mapbox")' after setting the MapBox token.
null
CC BY-SA 4.0
null
2023-02-13T09:52:16.747
2023-02-13T09:52:16.747
null
null
21,202,693
null
75,434,398
2
null
75,434,352
0
null
The error suggest that `result.taskList[id]` is not an array. Change it to : ``` const taskcancel = (user, pswd, id) => { return db.Todotasks.findOne({ username: user, password: pswd }).then((result) => { if (result) { console.log(result.taskList[id]) result.taskList[id].taskStatus = 'canceled'; result.taskCount.pendingTask -= 1; result.taskCount.canceledTask += 1; return result.save().then(() => { return { status: true, message: ('Successfully canceled your tasks'), statusCode: 200, }; }).catch((error) => { console.error(error); return { status: false, message: ('Something went wrong while saving the changes'), statusCode: 500, }; }); } else { return { status: false, message: ('Something went wrong try again'), statusCode: 404 }; } }); }; ```
null
CC BY-SA 4.0
null
2023-02-13T10:02:35.923
2023-02-13T10:25:11.607
2023-02-13T10:25:11.607
17,978,333
17,978,333
null
75,434,464
2
null
55,416,164
0
null
I got the same error message and googled myself sore. I am rather a rookie in the field of R. The solution was quite simple for me: I made the stupid mistake that I gave my dependent variable labels (= Likert scale labels), which no longer contained any computable values. To recognize this, a look into the data set was enough, but I did that very late. After I had read in the data without the labels, the model could be calculated. So if you get such an error message, you should perhaps first look at the data that was read in and to which the model refers and make sure that computable data is available.
null
CC BY-SA 4.0
null
2023-02-13T10:09:06.483
2023-02-13T10:09:06.483
null
null
21,202,849
null
75,434,526
2
null
6,236,054
0
null
I Found a way around this issue. My goal was to have a small image unstreched in the center of a control and the background to be filled with a streched blurry version of itself to fill the void. With the following XAML I had the same issue with the corners of the image turning white like this: ``` <Image ClipToBounds="True" Source="{Binding VideoDecoder.LiveImage}" Stretch="Fill"> <Image.Effect > <BlurEffect Radius="100" RenderingBias="Performance" /> </Image.Effect> </Image> ``` [](https://i.stack.imgur.com/0i4HL.png) I replaced the image with a grid and used a visual brush for the background which gives a little more flexibility than the image. Please note that setting the viebox of the visual brush like this removes the white fading but also cuts of part of the image, in my application however this was accetable: ``` <Grid> <Grid.Background> <VisualBrush Viewbox="0.06,0.1,0.85,0.81"> <VisualBrush.Visual> <Image Source="{Binding VideoDecoder.LiveImage}"> <Image.BitmapEffect> <BlurBitmapEffect KernelType="Gaussian" RenderOptions.BitmapScalingMode="LowQuality" RenderOptions.EdgeMode="Unspecified" Radius="100"/> </Image.BitmapEffect> </Image> </VisualBrush.Visual> </VisualBrush> </Grid.Background> </Grid> ``` [](https://i.stack.imgur.com/9PyRR.png)
null
CC BY-SA 4.0
null
2023-02-13T10:15:05.537
2023-02-13T10:15:05.537
null
null
8,463,053
null
75,434,614
2
null
75,412,735
1
null
OK, same discussion -- answered here: - [https://github.com/quarkusio/quarkus/discussions/31110#discussioncomment-4956320](https://github.com/quarkusio/quarkus/discussions/31110#discussioncomment-4956320)
null
CC BY-SA 4.0
null
2023-02-13T10:23:26.817
2023-02-13T10:23:26.817
null
null
494,709
null
75,434,634
2
null
75,431,157
0
null
Your problem is that you are storing copies of strings from your text boxes and then updating the copies. What you need to do is store the text boxes in the dictionary and assign the "X" and "O" strings to their text properties. ``` private void newGame_button_Click(object sender, EventArgs e) { Random rand = new Random(); double randNum = rand.Next(0, 2); const int ROWS = 3; const int COLS = 3; TextBox[,] ticTacToe_2dArray = new TextBox[ROWS, COLS] { {displayTTT_label1, displayTTT_label2, displayTTT_label3}, {displayTTT_label4, displayTTT_label5, displayTTT_label6}, {displayTTT_label7, displayTTT_label8, displayTTT_label9} }; for (int row = 0; row < ROWS; row++) { for (int col = 0; col < COLS; col++) { randNum = rand.Next(0, 2); if (randNum == 0) { ticTacToe_2dArray[row, col].Text = "O"; } else if (randNum == 1) { ticTacToe_2dArray[row, col].Text = "X"; } } } } ```
null
CC BY-SA 4.0
null
2023-02-13T10:26:02.833
2023-02-13T10:26:02.833
null
null
19,214,431
null
75,434,856
2
null
75,434,626
0
null
`TestCategoryComponent` uses the module it is declared in, `CategoryModule`, to look up other components. It can either use declared components from the declarations array OR Any exported components from modules your `CategoryModule` imports. I recommend the SCAM (single component angular module) approach, ``` @NgModule({ declarations: [DataTableComponent], exports: [DataTableComponent] }) export class DataTableModule {} ``` You then import `DataTableModule` into `CategoryModule`. Since the imported module exports `DataTableComponent` it is available in this context. From angular 15, you can make components standalone and import them like a module (they keep their own context and import NgModules or other standalone components as they need via the imports array within the Component decorator). ``` @Component({ standalone: true, // <---------------------- // imports: [NgIf, JsonPipe], // example if `DataTableComponent` uses ngIf and a json pipe selector: 'app-data-table', templateUrl: './data-table.component.html', styleUrls: ['./data-table.component.scss'], }) export class DataTableComponent { @Input() dataTableConfig: any; @Input() dataContent: any; } ```
null
CC BY-SA 4.0
null
2023-02-13T10:46:46.890
2023-02-13T10:46:46.890
null
null
4,711,754
null
75,435,006
2
null
75,433,379
0
null
Check Apples site [https://www.apple.com/certificateauthority/](https://www.apple.com/certificateauthority/) and download `Worldwide Developer Relations - G2 (Expiring 05/06/2029 23:43:24 UTC)` (direkt link [https://www.apple.com/certificateauthority/AppleWWDRCAG2.cer](https://www.apple.com/certificateauthority/AppleWWDRCAG2.cer)) The other link just expired some days ago Edit: [a fix was pushed](https://github.com/tidev/titanium_mobile/pull/13747) to the SDK itself so the link will be fixed in the next release
null
CC BY-SA 4.0
null
2023-02-13T11:04:42.970
2023-02-13T16:47:16.483
2023-02-13T16:47:16.483
5,193,915
5,193,915
null
75,435,026
2
null
75,434,555
0
null
Make sure you've extracted the zip, and it will look like [](https://i.stack.imgur.com/4yk2w.png)
null
CC BY-SA 4.0
null
2023-02-13T11:06:39.693
2023-02-13T11:06:39.693
null
null
10,157,127
null
75,435,135
2
null
67,651,806
0
null
first of all delete these file one by one ``` .idea folder build folder pubspec-lock file. ``` and then run the following commands: ``` flutter clean;flutter pub get; ```
null
CC BY-SA 4.0
null
2023-02-13T11:16:40.670
2023-02-13T11:16:40.670
null
null
14,614,664
null
75,435,705
2
null
25,699,752
0
null
``` $('#languages').select2({ tags: false }); ``` This worked for me on multiple select, I'm using select 4.0.9.
null
CC BY-SA 4.0
null
2023-02-13T12:11:34.340
2023-02-13T14:35:06.797
2023-02-13T14:35:06.797
8,372,853
7,195,836
null
75,436,359
2
null
75,390,444
0
null
See [https://bugs.chromium.org/p/chromium/issues/detail?id=1405229](https://bugs.chromium.org/p/chromium/issues/detail?id=1405229) It is a known bug but should not cause any issues during the integration of Google Pay.
null
CC BY-SA 4.0
null
2023-02-13T13:14:24.157
2023-02-13T13:14:24.157
null
null
789,738
null
75,437,070
2
null
75,357,665
0
null
`cpdf -list-spot-colors in.pdf` will list them, one per line, to standard output.
null
CC BY-SA 4.0
null
2023-02-13T14:18:04.140
2023-02-13T14:18:04.140
null
null
1,387,666
null
75,437,138
2
null
75,436,658
0
null
your MainDrawer widget is you will need to update it to so state can be changed with method. and also share the error if it's still gives error.
null
CC BY-SA 4.0
null
2023-02-13T14:24:05.053
2023-02-13T14:24:05.053
null
null
19,107,084
null
75,437,179
2
null
28,170,520
0
null
You can get away with just adding a single image of size 1024*1024px. Just add the image in like so [](https://i.stack.imgur.com/gy20h.png) and select `single size` in the menu to the right.
null
CC BY-SA 4.0
null
2023-02-13T14:28:06.167
2023-02-13T14:28:06.167
null
null
11,239,492
null
75,437,347
2
null
9,174,338
0
null
Here's how you can resize by batch (per folder) and skip other file types and Mac system files like .DS_Store ``` from PIL import Image import os Image.MAX_IMAGE_PIXELS = None path = "./*your-source-folder*" resize_ratio = 2 # where 0.5 is half size, 2 is double size def resize_aspect_fit(): dirs = os.listdir(path) for item in dirs: print(item) if item == '.DS_Store': continue if item == 'Icon\r': continue if item.endswith(".mp4"): continue if item.endswith(".txt"): continue if item.endswith(".db"): continue if os.path.isfile(path+item): image = Image.open(path+item) file_path, extension = os.path.splitext(path+item) new_image_height = int(image.size[0] / (1/resize_ratio)) new_image_length = int(image.size[1] / (1/resize_ratio)) image = image.resize((new_image_height, new_image_length), Image.ANTIALIAS) image.save("./*your-output-folder*/" + item) resize_aspect_fit() ```
null
CC BY-SA 4.0
null
2023-02-13T14:41:14.430
2023-02-13T14:41:14.430
null
null
17,304,397
null
75,437,353
2
null
75,433,956
1
null
You can use the function: [xdmp:database-backup-validate()](https://docs.marklogic.com/xdmp:database-backup-validate): ``` xdmp:database-backup-validate(xdmp:database-forests(xdmp:database("WNDSR-1")), "s3://path/to/your/bucket/WNDSR-1", fn:false(), fn:false()) ``` If you want to verify and report file sizes or anything else at the individual file level, then you can use the [xdmp:filesystem-directory()](https://docs.marklogic.com/xdmp:filesystem-directory) and [xdmp:filesystem-file()](https://docs.marklogic.com/xdmp:filesystem-file) methods and provide the S3 path.
null
CC BY-SA 4.0
null
2023-02-13T14:41:39.420
2023-02-13T14:41:39.420
null
null
14,419
null
75,437,494
2
null
75,308,090
0
null
The issue here is that you're attempting to register a testnet contract on goerli in our production system. You should be getting a more meaningful error and I'll look into that now, but if you set this up in our [https://staging.crossmint.io/console](https://staging.crossmint.io/console) system you should be good to go! This is your contract address on goerli testnet `0x537210CEe33CE059Ab225662e775b54cFEF5C4Ab` Everything else looks great in your function signature. The main thing our dev console expects to be able to self register a contract is that it accepts an address argument and mints to that instead of `msg.sender`. Actually, it looks like you started with my [evm-starter](https://github.com/dmulvi/evm-721-starter) contract! Awesome :-)
null
CC BY-SA 4.0
null
2023-02-13T14:52:47.227
2023-02-13T14:52:47.227
null
null
437,394
null
75,437,514
2
null
75,433,535
1
null
The [patch updates](https://developer.nvidia.com/cuda-10.2-download-archive?target_os=Linux&target_arch=x86_64&target_distro=CentOS&target_version=7&target_type=runfilelocal) for CUDA 10.2 do not contain complete toolkits. The idea behind a "patch" is that it contains only the files necessary to address the items that the patch is focused on. To get a full CUDA 10.2 CUDA tookit install, you must first install using a full CUDA 10.2 toolkit installer, and a typical filename for that would be `cuda_10.2.89_440.33.01_linux.run` (runfile installer to match your indicated runfile installer usage). After that, if you decide you need/want the items addressed by the patch, you must install the desired patch. Note the statement on the [download page](https://developer.nvidia.com/cuda-10.2-download-archive?target_os=Linux&target_arch=x86_64&target_distro=CentOS&target_version=7&target_type=runfilelocal): > These patches require the base installer to be installed first.
null
CC BY-SA 4.0
null
2023-02-13T14:54:28.940
2023-02-13T15:08:31.360
2023-02-13T15:08:31.360
1,695,960
1,695,960
null
75,437,601
2
null
28,464,435
0
null
steamx's answer, but for Swift worked for me: ``` func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) { let cropRect = (info[UIImagePickerController.InfoKey.cropRect] as? CGRect)! if cropRect.origin.y < 0 { self.selectedImage = info[.originalImage] as? UIImage } else { self.selectedImage = info[.editedImage] as? UIImage } self.dismiss(animated: true, completion: nil) } ``` We check if the photo the User took was edited/cropped or not. If not, then we use the `info[.originalImage]`
null
CC BY-SA 4.0
null
2023-02-13T15:01:36.433
2023-02-13T15:01:36.433
null
null
17,533,504
null
75,437,613
2
null
60,032,051
-1
null
I just apply the precedent solution: the final code can be: ``` import 'package:flutter/material.dart'; class CustomIndicator extends Decoration { final BoxPainter _painter; CustomIndicator({required Color color, required double radius}) : _painter = _CustomIndicator(color, radius); @override BoxPainter createBoxPainter([VoidCallback? onChanged]) => _painter; // throw UnimplementedError(); // } } class _CustomIndicator extends BoxPainter { final Paint _paint; final double radius; _CustomIndicator(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.drawCircle(customOffset, radius, _paint); canvas.drawRRect( RRect.fromRectAndRadius( Rect.fromCenter( center: customOffset, vwidth: configuration.size!.width, height: 3), Radius.circular(radius)), _paint); } } ```
null
CC BY-SA 4.0
null
2023-02-13T15:02:24.207
2023-02-13T15:02:24.207
null
null
11,546,350
null
75,437,825
2
null
24,168,759
0
null
I came here again after I created an endpoint which also would not find the given POST-parameters. But the problem now was the missing forward slash.. So that's another one to look out for.
null
CC BY-SA 4.0
null
2023-02-13T15:19:59.597
2023-02-13T15:19:59.597
null
null
8,837,661
null
75,438,140
2
null
24,259,639
0
null
I've had this problem and it was a user error. Turns out I had multiple copies of the code on my machine and was running a version under project2 while having project1 open in VS. So the debugger worked but loaded version under project2 and confused the heck out of me. TLDR; Make sure the version running is from the same folders/files you have open in VS.
null
CC BY-SA 4.0
null
2023-02-13T15:45:32.087
2023-02-13T15:45:32.087
null
null
1,815,377
null
75,438,191
2
null
75,436,896
0
null
You can use MUI's `CircularProgress` component and add a label for the progress percent inside it. ``` import * as React from "react"; import CircularProgress, { CircularProgressProps, } from "@mui/material/CircularProgress"; import Typography from "@mui/material/Typography"; import Box from "@mui/material/Box"; function CircularProgressWithLabel( props: CircularProgressProps & { value: number } ) { return ( <Box sx={{ position: "relative", display: "inline-flex" }}> <CircularProgress variant="determinate" size={150} thickness={5} {...props} /> <Box sx={{ top: 0, left: 0, bottom: 0, right: 0, position: "absolute", display: "flex", alignItems: "center", justifyContent: "center", }} > <Typography variant="caption" component="div" color="text.secondary" >{`${Math.round(props.value)}%`}</Typography> </Box> </Box> ); } export default function CircularStatic() { const [progress, setProgress] = React.useState(10); React.useEffect(() => { const timer = setInterval(() => { setProgress((prevProgress) => prevProgress >= 100 ? 0 : prevProgress + 10 ); }, 800); return () => { clearInterval(timer); }; }, []); return <CircularProgressWithLabel value={progress} />; } ``` Change `size` and `thickness` props to achieve the style you want. Learn more ways to control your circular progress in it's [API page](https://mui.com/material-ui/api/circular-progress/).
null
CC BY-SA 4.0
null
2023-02-13T15:50:17.297
2023-02-13T15:50:17.297
null
null
5,613,027
null
75,438,298
2
null
75,438,171
0
null
You can create an element right before "Client area" and use `margin:auto` or use `flex-grow: 1`. ``` /* Main website */ * { background-color: #232323; color: white; box-sizing: border-box; margin: 0; padding: 0; font-family: 'Kumbh Sans', sans-serif; } /* Navigation bar */ /* Navigation items */ .navbar ul { list-style-type: none; margin: 0; padding: 0; overflow: hidden; background: #000f14; display: flex; align-items: center; } .navbar ul .spacer { flex-grow: 1; } .navbar li a { display: block; text-align: center; padding: 12px 16px; text-decoration: none; background: #000f14; } ``` ``` <nav class="navbar"> <div class="navbar__container"> <div class="navbar__toggle" id="mobile-menu"> <span class="bar"></span> <span class="bar"></span> <span class="bar"></span> </div> <ul> <li> <a href="/index.html"><img src="/images/AquaTech navbar logo.png" alt="navbar__logo"></a> </li> <li><a href="index.html">Home</a></li> <li><a href="services.html">Services</a></li> <li><a href="clients.html">Clients</a></li> <li><a href="contact.html">Contact</a></li> <li><a href="about.html">About us</a></li> <div class="spacer"></div> <a href="login.html"><button class="btn">Client Area</button></a> </ul> </div> </nav> ```
null
CC BY-SA 4.0
null
2023-02-13T15:58:43.717
2023-02-13T15:58:43.717
null
null
6,512,857
null
75,438,327
2
null
75,437,849
1
null
The backslash \ is a escaping character used to deal with special characters. For this reason, if you need to consume it as a regular character, you need to escape it: ``` public static SqlConnection connection = new SqlConnection("Data Source=DESKTOP-0R58GC3\\SQLEXPRESS;Initial Catalog=SchoolDB;Integrated Security=True"); ``` Notice how it's duplicated. This is because I am using it to indicate that I am escaping the next character, which is itself. You can read more about it [here](https://learn.microsoft.com/en-us/cpp/c-language/escape-sequences?view=msvc-170).
null
CC BY-SA 4.0
null
2023-02-13T16:01:24.277
2023-02-13T16:06:38.390
2023-02-13T16:06:38.390
4,190,402
4,190,402
null
75,438,364
2
null
75,438,171
1
null
You can use `margin-inline: auto 0` to your anchor element. Some info on how to use margins from Kevin Powell [here](https://youtu.be/Azfj1efPAH0) and [here](https://youtu.be/pSJcpOSNjMI). ``` /* Main website */ * { background-color: #232323; color: white; box-sizing: border-box; margin: 0; padding: 0; font-family: 'Kumbh Sans', sans-serif; } /* Navigation bar */ /* Navigation items */ .navbar ul { list-style-type: none; margin: 0; padding: 0; overflow: hidden; background: #000f14; display: flex; align-items: center; } .navbar li a { display: block; text-align: center; padding: 12px 16px; text-decoration: none; background: #000f14; } .navbar img { width: 50%; height: 50%; } .navbar a { background: #000f14; } /* Navigation Client area Button */ .btn { border: 2.5px solid #053F74; background-color: #000f14; color: white; padding: 12px 16px; font-size: 16px; cursor: pointer; border-radius: 15px; text-decoration: none; } .btn:hover { background: #053F74; } /* added this class */ .align-right { margin-inline: auto 0; } ``` ``` <nav class="navbar"> <div class="navbar__container"> <div class="navbar__toggle" id="mobile-menu"> <span class="bar"></span> <span class="bar"></span> <span class="bar"></span> </div> <ul> <li> <a href="/index.html"><img src="/images/AquaTech navbar logo.png" alt="navbar__logo"></a> </li> <li><a href="index.html">Home</a></li> <li><a href="services.html">Services</a></li> <li><a href="clients.html">Clients</a></li> <li><a href="contact.html">Contact</a></li> <li><a href="about.html">About us</a></li> <a class='align-right' href="login.html"><button class="btn">Client Area</button></a><!-- added the class 'align-right' to the <a> element --> </ul> </div> </nav> ``` The other way I do this sometimes is to add a dummy element as a spacer and use flex-grow to push the elements beside it to the left and right. ``` /* Main website */ * { background-color: #232323; color: white; box-sizing: border-box; margin: 0; padding: 0; font-family: 'Kumbh Sans', sans-serif; } /* Navigation bar */ /* Navigation items */ .navbar ul { list-style-type: none; margin: 0; padding: 0; overflow: hidden; background: #000f14; display: flex; align-items: center; } .navbar li a { display: block; text-align: center; padding: 12px 16px; text-decoration: none; background: #000f14; } .navbar img { width: 50%; height: 50%; } .navbar a { background: #000f14; } /* Navigation Client area Button */ .btn { border: 2.5px solid #053F74; background-color: #000f14; color: white; padding: 12px 16px; font-size: 16px; cursor: pointer; border-radius: 15px; text-decoration: none; } .btn:hover { background: #053F74; } /* added this class */ .spacer { flex-grow:2; } ``` ``` <nav class="navbar"> <div class="navbar__container"> <div class="navbar__toggle" id="mobile-menu"> <span class="bar"></span> <span class="bar"></span> <span class="bar"></span> </div> <ul> <li> <a href="/index.html"><img src="/images/AquaTech navbar logo.png" alt="navbar__logo"></a> </li> <li><a href="index.html">Home</a></li> <li><a href="services.html">Services</a></li> <li><a href="clients.html">Clients</a></li> <li><a href="contact.html">Contact</a></li> <li><a href="about.html">About us</a></li> <li class='spacer'></li><!-- added this spacer element --> <a href="login.html"><button class="btn">Client Area</button></a> </ul> </div> </nav> ```
null
CC BY-SA 4.0
null
2023-02-13T16:04:27.240
2023-02-13T16:04:27.240
null
null
12,571,484
null
75,438,933
2
null
39,683,170
0
null
The "Missing Metadata" appears if there's any missing fields like localization, add at least one localization with its details or review information, you have to upload a photo to the purchased product and this for review only as indicated from app store, for more info about uploaded photo specs check this [https://developer.apple.com/help/app-store-connect/reference/screenshot-specifications](https://developer.apple.com/help/app-store-connect/reference/screenshot-specifications)
null
CC BY-SA 4.0
null
2023-02-13T16:54:33.480
2023-02-13T16:54:33.480
null
null
15,450,917
null
75,438,931
2
null
61,828,977
0
null
I'm not sure if it's due to SSMS versions, but on my job, the location has changed tabs. FYI, I'm using SSMS version 18.12.1 [](https://i.stack.imgur.com/FVH01.png)
null
CC BY-SA 4.0
null
2023-02-13T16:54:19.770
2023-02-13T16:54:19.770
null
null
3,331
null
75,439,395
2
null
75,431,986
0
null
Your FFT looks corect, you have a very noisy data. You can maybe plot a power spectrum of that signal. You can distinguish different parts in the signal, here is function: ``` close all;clc;clear all; f=fopen ('sum_021223.txt'); Adata=cell2mat(textscan(f, '%f %f %f %f %f')); time=Adata(:,5); data = Adata; data(:,5:end) = 0; final=size(data,1); data(1,1)=data(2,1); testsum=sum(data,2); Fs = .5; % Sampling frequency T = 1/Fs; % Sampling period L = numel(testsum); % Length of signal t = (0:L-1)*T; t=t'; [f,y]=MyPower(testsum,Fs); plot(f,y) title("Single-Sided Amplitude Spectrum of X(t)") xlabel("f (Hz)") ylabel("|P1(f)|") ylim([0,6e-3]); function [f,y]=MyPower(y,freq) tuReal = "seconds"; samples=numel(y); period=1/freq; time=linspace(0,samples*period,samples)'; signal=y; Fs=freq; % Compute effective sampling rate. tNumeric = time2num(time,tuReal); [Fs,irregular] = effectivefs(tNumeric); Ts = 1/Fs; % Resample non-uniform signals. x = signal; if irregular x = resample(x,tNumeric,Fs,'linear'); end % Set Welch spectrum parameters. L = fix(length(x)/4.5); noverlap = fix(L*50/100); win = window(@hamming,L); % Compute the power spectrum. [ps,f] = pwelch(x,win,noverlap,[],Fs); w = 2*pi*f; % Convert frequency unit. factor = funitconv('rad/TimeUnit', 'Hz', 'seconds'); w = factor*w; Fs = 2*pi*factor*Fs; % Remove frequencies above Nyquist frequency. I = w<=(Fs/2+1e4*eps); w = w(I); ps = ps(I); % Configure the computed spectrum. ps = table(w, ps, 'VariableNames', ["Frequency", "SpectrumData"]); ps.Properties.VariableUnits = ["Hz", ""]; ps = addprop(ps, {'SampleFrequency'}, {'table'}); ps.Properties.CustomProperties.SampleFrequency = Fs; f=ps.Frequency; y=ps.SpectrumData; end ```
null
CC BY-SA 4.0
null
2023-02-13T17:39:01.630
2023-02-13T17:39:01.630
null
null
14,731,196
null
75,439,540
2
null
75,433,532
0
null
Try like this: ``` Sub SelectFileName() Dim fnam As Variant, ws As Worksheet Dim FSO As Object 'Get file name Dim FileName As String, voucher Dim b As Long, c As Long Set FSO = CreateObject("Scripting.FileSystemObject") fnam = Application.GetOpenFilename("all files (*.*), *.*", 1, _ "Select Files to Fill Range", "Get Data", True) 'if user hits cancel, then end If TypeName(fnam) = "Boolean" And Not (IsArray(fnam)) Then Exit Sub Set ws = ActiveSheet 'or some specific sheet name For b = 1 To UBound(fnam) 'loop selected files FileName = FSO.GetFileName(fnam(b)) 'get file name from path For c = 2 To ws.Cells(Rows.Count, 1).End(xlUp).Row 'loop over voucher numbers voucher = UCase(ws.Cells(c, "D").Value) 'read the voucher # If UCase(Left(FileName, Len(voucher))) = voucher Then 'check for match (case-insensitive) ws.Cells(c, Columns.Count).End(xlToLeft).Offset(0, 1).Value = FileName End If Next c Next b End Sub ```
null
CC BY-SA 4.0
null
2023-02-13T17:51:54.590
2023-02-13T17:51:54.590
null
null
478,884
null
75,439,823
2
null
27,028,983
0
null
In my case I was using `func show(_ vc: UIViewController, sender: Any?)` for my `UIAlertController`. It used to work perfectly for my alerts but for some reason stopped working. I replaced: `func show(_ vc: UIViewController, sender: Any?)` with: `func present(_ viewControllerToPresent: UIViewController, animated flag: Bool, completion: (() -> Void)? = nil)` Now working like a charm.
null
CC BY-SA 4.0
null
2023-02-13T18:22:40.767
2023-02-13T18:22:40.767
null
null
5,136,577
null
75,440,216
2
null
75,437,721
0
null
You need to first find out tab layout's reference. ``` binding.btn.setOnClickListener{ tabs = activity.findViewById(R.id.myTabLayout) tabs.getTabAt(0).select() } ``` Write this in fragment B inside onClickListener()
null
CC BY-SA 4.0
null
2023-02-13T19:05:39.210
2023-02-13T19:05:39.210
null
null
4,956,240
null
75,440,321
2
null
75,440,149
1
null
To identify the element with text as you can use you can use either of the following [locator strategies](https://stackoverflow.com/a/48056120/7429447): - Using `Wait Until Element Is Visible`:``` Wait Until Element Is Visible xpath=//a[starts-with(@href, 'sql_form.jsp') and @target='frame2']/font[text()='SQL'] 10 seconds ``` - Using `Wait Until Element Is Enabled`:``` Wait Until Element Is Enabled xpath=//a[starts-with(@href, 'sql_form.jsp') and @target='frame2']/font[text()='SQL'] 10 seconds ``` --- ## References You can find a couple of relevant detailed discussions in: - [How to click a row that has javascript on click event in RIDE](https://stackoverflow.com/a/52815484/7429447)- [Robot Framework: Wait Until Element Is Visible vs. Element Should Be Visible, which one is better to use?](https://stackoverflow.com/a/53152697/7429447)
null
CC BY-SA 4.0
null
2023-02-13T19:17:10.403
2023-02-13T19:17:10.403
null
null
7,429,447
null
75,440,463
2
null
75,440,121
0
null
You should duplicate jbr and rename the copies folder ‘jre’. You need to have the two folders 'jbr' and 'jre' with the same content not renaming the original one.
null
CC BY-SA 4.0
null
2023-02-13T19:36:03.980
2023-02-13T19:36:03.980
null
null
6,694,858
null
75,440,506
2
null
75,381,916
0
null
Here is a method of finding multiple matches in template matching in Python/OpenCV using your reference and smallest template. I have remove all the white padding you had around your template. My method simply draws a black rectangle over the correlation image where it matches and then repeats looking for the next best match in the modified correlation image. I have used cv2.TM_CCORR_NORMED and a match threshold of 0.90. You have 4 of these templates showing in your reference image, so I set my search number to 4 and spacing of 10 for the non-maximum suppression by masking. You have other small items of the same shape and size, but the text on them is different. So you will need different templates for each. Reference: [](https://i.stack.imgur.com/g5oLR.jpg) Template: [](https://i.stack.imgur.com/UA2SR.png) ``` import cv2 import numpy as np # read image img = cv2.imread('circuit_board.jpg') # read template tmplt = cv2.imread('circuit_item.png') hh, ww, cc = tmplt.shape # set arguments match_thresh = 0.90 # stopping threshold for match value num_matches = 4 # stopping threshold for number of matches match_radius = 10 # approx radius of match peaks match_radius2 = match_radius//2 # get correlation surface from template matching corrimg = cv2.matchTemplate(img,tmplt,cv2.TM_CCORR_NORMED) hc, wc = corrimg.shape # get locations of all peaks higher than match_thresh for up to num_matches imgcopy = img.copy() corrcopy = corrimg.copy() for i in range(0, num_matches): # get max value and location of max min_val, max_val, min_loc, max_loc = cv2.minMaxLoc(corrcopy) x1 = max_loc[0] y1 = max_loc[1] x2 = x1 + ww y2 = y1 + hh loc = str(x1) + "," + str(y1) if max_val > match_thresh: print("match number:", i+1, "match value:", max_val, "match x,y:", loc) # draw draw white bounding box to define match location cv2.rectangle(imgcopy, (x1,y1), (x2,y2), (255,255,255), 1) # insert black rectangle over copy of corr image so not find that match again corrcopy[y1-match_radius2:y1+match_radius2, x1-match_radius2:x1+match_radius2] = 0 i = i + 1 else: break # save results # power of 4 exaggeration of correlation image to emphasize peaks cv2.imwrite('circuit_board_multi_template_corr.png', (255*cv2.pow(corrimg,4)).clip(0,255).astype(np.uint8)) cv2.imwrite('circuit_board_multi_template_corr_masked.png', (255*cv2.pow(corrcopy,4)).clip(0,255).astype(np.uint8)) cv2.imwrite('circuit_board_multi_template_match.png', imgcopy) # show results # power of 4 exaggeration of correlation image to emphasize peaks cv2.imshow('image', img) cv2.imshow('template', tmplt) cv2.imshow('corr', cv2.pow(corrimg,4)) cv2.imshow('corr masked', cv2.pow(corrcopy,4)) cv2.imshow('result', imgcopy) cv2.waitKey(0) cv2.destroyAllWindows() ``` Original Correlation Image: [](https://i.stack.imgur.com/P6HoL.png) Modified Correlation Image after 4 matches: [](https://i.stack.imgur.com/WczhV.png) Matches Marked on Input as White Rectangles: [](https://i.stack.imgur.com/ATwW9.jpg) Match Locations: ``` match number: 1 match value: 0.9982172250747681 match x,y: 128,68 match number: 2 match value: 0.9762057065963745 match x,y: 128,90 match number: 3 match value: 0.9755787253379822 match x,y: 128,48 match number: 4 match value: 0.963689923286438 match x,y: 127,107 ```
null
CC BY-SA 4.0
null
2023-02-13T19:41:17.853
2023-02-15T04:47:52.840
2023-02-15T04:47:52.840
7,355,741
7,355,741
null
75,440,943
2
null
75,440,844
2
null
A couple of things: 1. The factors need to be in the data that ggplot sees at every geom, but while you're setting factor(Location,levels=order) in the first mapping, none of the data= arguments is using the same data. For this, I generally prefer factorizing the data up-front, and using ~-style "functions" for data=. 2. Not sure exactly why this is the case, but it still doesn't work ... but if the first call to geom_point uses mutate and replaces IRELAND's percentage values with NA, the levels are retained. Weird. ``` ### I still don't have these :-) colorblind_colors <- 1:4 sav %>% mutate(Location = factor(Location, levels = order)) %>% ggplot(aes(x = Location, y = Percentage, color = Subject)) + geom_point(data = ~ mutate(., Percentage = if_else(Location == "Ireland", Percentage[NA], Percentage)), size = 4, position = position_dodge(0.5), na.rm = TRUE) + geom_point(data = ~ filter(., Location == "IRELAND"), size = 6, position = position_dodge(1)) + geom_linerange(data = ~ filter(., Location == "IRELAND"), aes(ymin = 0, ymax = Percentage), position = position_dodge(1), linetype = "dotdash") + geom_linerange(data = ~ filter(., Location != "IRELAND"), aes(ymin = 0, ymax = Percentage), position = position_dodge(0.5), linetype = "dotdash") + coord_flip()+ ggtitle(label = "Increase in inflation (by CPI) in Ireland compared to OECD and other countries in OECD")+ xlab("Countries --> ") + ylab("Increase in CPI by % -->")+ scale_y_continuous(breaks = round(seq(0, 20, by = 1),1))+ scale_color_manual(name = "Type of Items", labels = c("Food", "Total", "Excluding food and energy"), values=c(unname(colorblind_colors[2]), unname(colorblind_colors[3]), unname(colorblind_colors[4])))+ theme(panel.grid.major.x = element_line(linewidth =.01, color="black"), panel.grid.major.y = element_blank(), legend.position = "top" ) ``` [](https://i.stack.imgur.com/lk9kb.png)
null
CC BY-SA 4.0
null
2023-02-13T20:39:20.213
2023-02-13T20:39:20.213
null
null
3,358,272
null
75,440,957
2
null
75,440,887
0
null
Try to add URL to `@GetMapping` annotation above `getLessonList` method, I believe it should be `@GetMapping("lesson/list")` or `@GetMapping("lessons")`
null
CC BY-SA 4.0
null
2023-02-13T20:40:34.633
2023-02-13T20:44:24.787
2023-02-13T20:44:24.787
19,074,674
19,074,674
null
75,441,029
2
null
75,440,149
2
null
I was unaware that iframe needed to be handled differently or that it even existed [https://robocorp.com/docs/development-guide/browser/how-to-work-with-iframes](https://robocorp.com/docs/development-guide/browser/how-to-work-with-iframes) I first needed to switch frames.
null
CC BY-SA 4.0
null
2023-02-13T20:47:28.787
2023-02-13T20:47:28.787
null
null
19,879,173
null
75,441,145
2
null
75,441,009
0
null
You should always the async and await keywords when using methods and use them all the way up, otherwise you should not use them. You are calling an asynchronous operation and blocking on it synchronously with which not only makes it very complicated but also not asynchronous and may lead to deadlocks. What you might solve your issue is to change the seeding method to and await the Add and Create methods.
null
CC BY-SA 4.0
null
2023-02-13T21:01:40.417
2023-02-13T21:01:40.417
null
null
5,015,766
null
75,441,259
2
null
75,441,188
-2
null
From my understanding of your question, you cannot permanently modify the site through the inspect option. by the way you can use JS DOM for Edit HTML document like : document.getElementsByTagName("div");
null
CC BY-SA 4.0
null
2023-02-13T21:16:03.677
2023-02-13T21:28:36.180
2023-02-13T21:28:36.180
13,975,846
13,975,846
null
75,441,404
2
null
75,411,221
0
null
The error message indicates that it is trying to match the PLC4X connection string to the endpoint string returned from the Prosys Simulation Server. The Prosys endpoint string can be found on the status tab of the Simulation Server. Converting this to the PLC4X connection string format, the connection string should be. ``` opc.tcp://192.168.29.246:53530/OPCUA/SimulationServer ``` Just looking at the config file, there also seems to be an issue with the address ``` jobs.simulated-dashboard.fields.Counter=3:1001:Integer ``` This should probably be ``` jobs.simulated-dashboard.fields.Counter=ns=3;i=1001 ```
null
CC BY-SA 4.0
null
2023-02-13T21:35:33.657
2023-02-13T21:35:33.657
null
null
18,728,030
null
75,441,473
2
null
75,441,372
2
null
Removing dtStart and dtEnd from your GROUP BY clause should solve the issue. TOP is usually used with an ORDER BY. ``` SELECT id, MIN(dtStart) AS dtStart, MAX(dtEnd) AS dtEnd FROM T_registable WHERE sup_id = 3356 GROUP BY id ```
null
CC BY-SA 4.0
null
2023-02-13T21:43:44.107
2023-02-13T21:43:44.107
null
null
1,108,495
null
75,442,116
2
null
75,441,788
0
null
You are using the wrong object name Change ``` Set wdDoc = OutMail.GetInspector.WordEditor ``` with ``` Set wdDoc = pMail.GetInspector.WordEditor ```
null
CC BY-SA 4.0
null
2023-02-13T23:28:29.553
2023-02-13T23:28:29.553
null
null
16,662,333
null
75,442,518
2
null
75,438,472
0
null
The error "TypeError:Channel credentials must be a ChannelCredentials object" happens most commonly because the gRPC library that was used to create the `ChannelCredentials` object does not match the gRPC library that it was passed to to create a `Channel`. In this case, the error is coming from the library `@grpc/grpc-js`, but you have a dependency on `grpc`. If you used `grpc` to create the credentials object, that would cause this error. You should depend on `@grpc/grpc-js` instead.
null
CC BY-SA 4.0
null
2023-02-14T00:50:38.993
2023-02-14T00:50:38.993
null
null
159,388
null
75,442,597
2
null
75,433,695
0
null
So currently, you are replacing the characters of the "correct" word with '-' and subsequently replacing that with '#'. As there is no memory of the original character in this method, there isn't really a way to inverse it. What you can do is define a second nested list with all hashes/pounds and replace it in there. Keep in mind to use list.copy to avoid re-referencing the same list when you want to change something. ``` # not using the term hash in code since hashes are a part of several datatype like # hash tables so as to avoid confusion pound_list_inner = ["#"] * 9 pound_list = [] for i in range(9): pound_list.append(pound_list_inner.copy()) ``` After this, instead of replacing the letters in your original grid, replace the "#" in the created list. Unless the words in the grid must not overlap, then also replace the letters with - or any arbitrary symbol. Remember to change the return statement as well. ``` if all(0 <= r + i*dr < rows and 0 <= c + i*dc < cols and grid[r + i*dr][c + i*dc].upper() == word[i].upper() for i in range(len(word))): for i in range(len(word)): pound_list[r + i*dr][c + i*dc] = word[i] break ``` You might have noticed that I also added .upper() to the check on the grid's character and word[i]'s character. This is usually a good idea if you aren't particular about the capitalization of the characters you are trying to match because it will remove the possibility that the non-match is caused by a character being capitalized/not capitalized when you intended. I can't confirm if this is the cause of your problem detecting "yellow" with the available information though.
null
CC BY-SA 4.0
null
2023-02-14T01:10:09.220
2023-02-14T01:10:09.220
null
null
21,169,587
null
75,442,786
2
null
74,997,071
0
null
## Save time with npm link command > I created a separate project for an independent test. First, you can use the handy `npm link` command to save yourself the trouble of uploading your package just so you can test. As per [the docs](https://docs.npmjs.com/cli/v8/commands/npm-link) the `npm link` command: > ...is handy for installing your own stuff, so that you can work on it and test iteratively without having to continually rebuild. ## Install your package as a dependency With that out of the way, I think the hint is in the error message. Note it says: > `Cannot find module /workspaces/epic-engine-testing/node_modules/...` Here it seems Node is looking for the file in the `epic-engine-testing` project, so you must have the `package.json` file for the project reference your package (i.e. the one you want to test). So go into your `epic-engine-testing` project folder and at the terminal type `npm install [email protected]`. That should install your package so it can be found. If that doesn't resolve it, you'll need to share the `package.json` file for the `epic-engine-testing` to help us see what's going on. ## Using the export { ... } from '...' syntax Your main file can use the [re-exports synax](https://www.typescriptlang.org/docs/handbook/modules.html#re-exports) and be simplified to this when exporting: ``` export { EventBus } from "./modules/eventbus/eventbus"; export { EventHandler } from "./modules/eventbus/eventhandler"; export { EventType } from "./modules/eventbus/eventtype"; export { Event } from "./modules/eventbus/event"; export { SemVer } from "./modules/semver"; // the line below is not necessary when using above syntax. // export { SemVer, Event, EventBus, EventHandler, EventType }; ```
null
CC BY-SA 4.0
null
2023-02-14T01:52:36.547
2023-02-14T01:52:36.547
null
null
3,370,431
null
75,442,880
2
null
75,104,662
0
null
Try using this MSGraph Explorer [https://developer.microsoft.com/en-us/graph/graph-explorer](https://developer.microsoft.com/en-us/graph/graph-explorer) build your query test. Also see the code snippets
null
CC BY-SA 4.0
null
2023-02-14T02:15:52.173
2023-02-14T02:15:52.173
null
null
1,306,152
null
75,443,265
2
null
75,441,432
1
null
To render a Möbius strip correctly, you need a rendering engine that supports the hidden surface removal(such as z buffering) and face culling. But Manim does not supports them. So in short, you can't solve that problem. Your best bet will be to hack Manim like this.(Of course, it's not recommended for a long term project, because it maybe will not work on versions other than 0.17.2.) ``` import numpy as np import manim def new_get_shaded_rgb( rgb: np.ndarray, point: np.ndarray, unit_normal_vect: np.ndarray, light_source: np.ndarray, ) -> np.ndarray: to_sun = manim.utils.space_ops.normalize(light_source - point) factor = 0.5 * np.dot(unit_normal_vect, to_sun) ** 3 factor = abs(factor) # This patch will give the same color for a back or front face. result = rgb + factor return result manim.camera.three_d_camera.get_shaded_rgb = new_get_shaded_rgb ```
null
CC BY-SA 4.0
null
2023-02-14T03:47:30.273
2023-02-14T03:47:30.273
null
null
1,186,624
null
75,443,310
2
null
21,557,476
1
null
With the recent addition of [Size Container Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Container_Queries) it is now possible to do this by setting the `container-type` property to `inline-size` in the parent and then translating the child element by 100cqw - 100% where 100cqw is the full width of the parent and 100% is the width of the child. ``` #parent { position: relative; width: 300px; height: 100px; background-color: black; container-type: inline-size; } #child { position: absolute; width: 20px; height: 100px; background-color:red; transform: translateX(calc(100cqw - 100%)); } ``` ``` <div id="parent"> <div id="child"> </div> ```
null
CC BY-SA 4.0
null
2023-02-14T03:57:04.170
2023-02-14T03:58:38.393
2023-02-14T03:58:38.393
21,208,209
21,208,209
null
75,443,417
2
null
29,841,833
0
null
I want to add my answer, which can be rare but happened to me, which is conflict of multiple jBehave plugin in existence. the only correct plugin to use is 'jbehave support'. if you have multiple jbehave plugin installed, uninstall/disable the others, then it will just work
null
CC BY-SA 4.0
null
2023-02-14T04:20:07.800
2023-02-14T04:20:07.800
null
null
1,559,625
null
75,443,616
2
null
75,443,176
1
null
And I found the answer finally. The steps are the following: 1. Go to settings > extensions > Typescript and disable: 2. Javascript inlay hints on all options. or...unisnatll the extension Typescript. That's it. The ghost writing is gone!
null
CC BY-SA 4.0
null
2023-02-14T04:55:35.763
2023-02-14T04:55:35.763
null
null
21,208,135
null
75,443,957
2
null
75,411,669
0
null
The autocomplete and intellisense provided by `Pyalnce` rely on . I submit this problem to [Typeshed github](https://github.com/python/typeshed/issues/9724). However, they said incomplete definitions are "normal". So we have to wait for their solution at present. You can follow up on the issue to get real-time information.
null
CC BY-SA 4.0
null
2023-02-14T05:54:34.617
2023-02-14T05:54:34.617
null
null
18,359,438
null
75,444,008
2
null
66,382,652
0
null
``` new Vue({ el: '#app', data() { return { attrs: [ { highlight: { style: { background: '#ff8080' }, contentStyle: { color: 'black' } }, dates: new Date(2018, 0, 1) }, { highlight: { class: 'date-circle', contentClass: 'date-text', }, dates: new Date(2018, 0, 8) }, ], }; }, }) ``` ``` .date-circle { background: #ff8080; } .date-text { color: black; } ``` ``` <div id="app"> <v-calendar :attributes="attrs" :from-page="{ month: 1, year: 2018 }"> </v-calendar> </div> <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.7.10/vue.min.js"></script> <script src="https://unpkg.com/v-calendar"></script> ```
null
CC BY-SA 4.0
null
2023-02-14T06:03:02.197
2023-02-14T06:03:02.197
null
null
21,117,239
null
75,444,072
2
null
75,441,887
0
null
From the command line: 1. Enter cd [project] 2. Run flutter build apk --split-per-abi (The flutter build command defaults to --release.) This command results in three APK files: - - - Removing the --split-per-abi flag results in a fat APK that contains your code compiled for all the target ABIs. Such APKs are larger in size than their split counterparts, causing the user to download native binaries that are not applicable to their device’s architecture.
null
CC BY-SA 4.0
null
2023-02-14T06:12:04.237
2023-02-14T06:12:04.237
null
null
17,048,128
null
75,444,129
2
null
75,443,747
0
null
I do not understand what you mean by controlling tabs but check the below code for tab bar implementation, along with drawers and appbar action icons. ``` class HomeScreen extends StatelessWidget { const HomeScreen({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return DefaultTabController( length: 3, //this is the number of tabs you need -- for your case it is 3 child: Scaffold( appBar: AppBar( backgroundColor: Colors.brown[500], actions: [ IconButton(onPressed: () { //This is to show a snackbar message when search button is pressed. Remove it and put your own onpressed action code ScaffoldMessenger.of(context).showSnackBar( SnackBar( content: const Text("Search Button Pressed"), behavior: SnackBarBehavior.floating, margin: const EdgeInsets.all(20), shape: const StadiumBorder(), action: SnackBarAction( label: 'Dismiss', disabledTextColor: Colors.white, textColor: Colors.blue, onPressed: () { //Do whatever you want }, ), ), ); }, icon: const Icon(Icons.search)), ], bottom: const TabBar( //customise your tabs here indicatorColor: Colors.white, indicatorSize: TabBarIndicatorSize.label, indicatorWeight: 5, labelStyle: TextStyle(fontSize: 16.0, fontWeight: FontWeight.bold), tabs: [ //add your tabs here. if you add more tabs make sure you increase the length above Tab(text: 'Doctor', iconMargin: EdgeInsets.zero,), Tab(text: 'Community',), Tab(text: 'Calls',), ], ), ), //This is your app drawer drawer: Drawer( child: ListView( padding: EdgeInsets.zero, children: [ const DrawerHeader( decoration: BoxDecoration( color: Colors.blue, ), child: Text('Drawer Header'), ), ListTile( title: const Text('Item 1'), onTap: () {}, ), ListTile( title: const Text('Item 2'), onTap: () {}, ), ], ), ), body: const TabBarView( //This is the view of all the tabs. The first children in the list is the first item in tabs. children: [ Center(child: Text('Doctor Page', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 30),)), Center(child: Text('Community Page', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 30),)), Center(child: Text('Calls Page', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 30),)), ], ), ), ); } } ``` [](https://i.stack.imgur.com/eS951.png)
null
CC BY-SA 4.0
null
2023-02-14T06:21:33.170
2023-02-14T06:21:33.170
null
null
6,067,774
null
75,444,165
2
null
75,440,782
0
null
To avoid this error, you should add a check for before calling .: ``` if (json['galleries'] != null) { galleries = json['galleries'] .map<GalleryModel>((gallery) => GalleryModel.fromJson(gallery)) .toList(); } else { galleries = []; } ```
null
CC BY-SA 4.0
null
2023-02-14T06:26:30.643
2023-02-14T06:26:30.643
null
null
2,915,595
null
75,444,661
2
null
62,482,025
0
null
IOS requires the value property ``` <div> <label></label> <input id="plist" class="form-control" type="text" list="p" name="p" value="A"> <datalist id="p"> <option value="S">S</option> ... </datalist> </div> ```
null
CC BY-SA 4.0
null
2023-02-14T07:35:11.097
2023-02-14T07:35:11.097
null
null
3,045,510
null
75,444,774
2
null
75,357,607
0
null
Had the same issue! The problem was in the string script src='https://ajax.gooogleapi.com/ajax/libs/jquery/1.7.35/jquery.min.js Remove this string or change a link to jquery library and check wether redirect disappears. Interestingly, the link looks legit and thus doesnt warn one at all, nevertheless... Good luck!
null
CC BY-SA 4.0
null
2023-02-14T07:48:17.660
2023-02-14T07:48:50.533
2023-02-14T07:48:50.533
19,769,820
19,769,820
null
75,444,830
2
null
75,442,500
0
null
You're on the wrong track with `VLookup()` and `HLookup()`. Try using this: (on multiple lines for readability purposes) ``` =TEXTJOIN(",", TRUE, IF(NOT(ISBLANK(I3)),"POWER", ""), IF(NOT(ISBLANK(K3)),"MB", ""), IF(NOT(ISBLANK(M3)),"ANT", "") ) ``` Let me explain: - `TextJoin()`- `","`- `TRUE`- - `IF(NOT(ISBLANK(I3)),"POWER", "")``I3` Are you looking for something like this?
null
CC BY-SA 4.0
null
2023-02-14T07:55:17.787
2023-02-14T07:55:17.787
null
null
4,279,155
null
75,444,941
2
null
75,444,593
0
null
as your requirement, I've made this widget for you. This is an interesting concept and I've thought about experimenting with it but never had the will to, but thanks to your question I went my way and built this for you. Helped me gain new knowledge as well :) Find the attached code ``` import "package:flutter/material.dart"; class StackedList extends StatefulWidget { const StackedList({super.key}); @override State<StackedList> createState() => _StackedListState(); } class _StackedListState extends State<StackedList> { @override Widget build(BuildContext context) { final width = MediaQuery.of(context).size.width * 0.85; //list that holds the widgets to be showed in the stack. //you can use a function to generate this list with respect to your data //I've used a static list of Containers to simplify my process, //feel free to tinker with it final list = <Container>[ Container( height: 75, width: width, decoration: BoxDecoration( borderRadius: BorderRadius.circular(16), color: Colors.green, ), ), Container( height: 75, width: width, decoration: BoxDecoration( borderRadius: BorderRadius.circular(16), color: Colors.red, ), ), Container( height: 75, width: width, decoration: BoxDecoration( borderRadius: BorderRadius.circular(16), color: Colors.grey, ), ), Container( height: 75, width: width, decoration: BoxDecoration( borderRadius: BorderRadius.circular(16), color: Colors.brown, ), ) ]; return Scaffold( body: Stack( alignment: Alignment.center, children: [ ...list.map((element) { final index = list.indexOf(element); return Positioned( top: 200 + (index * 10), child: Transform.scale( scale: 1 - (index / 20), child: element, ), ); }) ] //using sublist as we only want to show the first 3 elements .sublist(0, 3) //using reversed list as Stack works on Last-Come-First-Out .reversed .toList(), )); } } ``` Happy Coding Navjot!
null
CC BY-SA 4.0
null
2023-02-14T08:10:37.470
2023-02-14T08:10:37.470
null
null
16,714,498
null
75,445,215
2
null
17,546,953
0
null
This is what worked for me (using Vue JS): ``` const auth = undefined; console.log(auth); // undefined // ✅ No error console.log(auth?.user?.name); // undefined ```
null
CC BY-SA 4.0
null
2023-02-14T08:40:11.363
2023-02-14T08:40:11.363
null
null
10,407,102
null
75,445,217
2
null
75,442,500
0
null
Right... so, this will technically do what you have asked for. But I suspect that it may not be exactly what you actually want. I am afraid your original question was quite unclear and I have had to make some guesses/assumptions. [](https://i.stack.imgur.com/PT4zs.png) ``` =CONCAT( IF(INDEX($H$3:$H$5,MATCH($A11,$A$3:$A$5,0))<>"",$G$1 & ", ",""), IF(INDEX($J$3:$J$5,MATCH($A11,$A$3:$A$5,0))<>"",$I$1 & ", ",""), IF(INDEX($L$3:$L$5,MATCH($A11,$A$3:$A$5,0))<>"",$K$1 & ", ","") ) ``` The `CONCAT` function just adds strings together, one after the other. Within it, we have one formula for each of your merged column headers. So, the inner formula: ``` IF(INDEX($H$3:$H$5,MATCH($A11,$A$3:$A$5,0))<>"",$G$1 & ", ",""), ``` Similar to how `VLOOKUP` would, the `INDEX`/`MATCH` is returning the POWER reference number for the specific ID Num. If there is no Ref No., it returns an empty string. If there is a Ref No., this is returned along with a trailing comma and space. This is repeated for each of your Ref columns, and then `CONCAT` sticks all the results together. This does leave a trailing comma, however, that is relatively simple to remove if required, and I will leave that for you to work out. As for returning the Ref No.'s themselves this can be done in the same way, but instead of returning the header, you repeat the `INDEX`/`MATCH` formula: [](https://i.stack.imgur.com/iKyBT.png) ``` =CONCAT( IF(INDEX($H$3:$H$5,MATCH($A11,$A$3:$A$5,0))<>"",INDEX($H$3:$H$5,MATCH($A11,$A$3:$A$5,0)) & ", ",""), IF(INDEX($J$3:$J$5,MATCH($A11,$A$3:$A$5,0))<>"",INDEX($J$3:$J$5,MATCH($A11,$A$3:$A$5,0)) & ", ",""), IF(INDEX($L$3:$L$5,MATCH($A11,$A$3:$A$5,0))<>"",INDEX($L$3:$L$5,MATCH($A11,$A$3:$A$5,0)) & ", ","") ) ``` `VLOOKUP` You may wonder why I used an `INDEX`/`MATCH` formula, rather than a `VLOOKUP` formula. `VLOOKUP` would work, however, `INDEX`/`MATCH` is better in literally every way. To my knowledge, there is NEVER a situation where `VLOOKUP` would be a better option. - `INDEX``MATCH``VLOOKUP`- `INDEX``MATCH``INDEX``MATCH``MATCH`- `INDEX``MATCH`- `INDEX``MATCH``VLOOKUP`
null
CC BY-SA 4.0
null
2023-02-14T08:40:12.170
2023-02-14T08:40:12.170
null
null
1,473,412
null
75,445,267
2
null
75,444,880
0
null
Imagine I want to `AutoFill` the following sheet up to last row which is filled in: [](https://i.stack.imgur.com/t2cYB.png) I select all cells up to the last filled row, press , "Special", "Blanks". Then I press (or I click in the formula bar) and I type `=A1`. I enter that formula using . This is what I get: [](https://i.stack.imgur.com/Ja8F1.png) You can easily record this into a macro: ``` Sub Macro3() Range("A1:A14").Select Selection.SpecialCells(xlCellTypeBlanks).Select Selection.FormulaR1C1 = "=R[-1]C" End Sub ``` Or, shorter: ``` Sub Macro3() Range("A1:A14").SpecialCells(xlCellTypeBlanks).FormulaR1C1 = "=R[-1]C" End Sub ``` Why did you say it must take tons of hours? :-)
null
CC BY-SA 4.0
null
2023-02-14T08:44:23.833
2023-02-14T08:44:23.833
null
null
4,279,155
null
75,445,316
2
null
75,444,593
0
null
You can use the ListView widget with a Card widget as the child: ``` ListView.builder( itemCount: 10, itemBuilder: (BuildContext context, int index) { return Card( child: ListTile( leading: CircleAvatar( child: Text('${index + 1}'), ), title: Text('Title ${index + 1}'), subtitle: Text('Subtitle ${index + 1}'), trailing: Icon(Icons.arrow_forward), onTap: () { // Handle tap on list item }, ), ); }, ) ``` You can view the docs for this wiget [here](https://api.flutter.dev/flutter/widgets/ListView-class.html)
null
CC BY-SA 4.0
null
2023-02-14T08:49:02.020
2023-02-14T17:45:40.860
2023-02-14T17:45:40.860
100,297
16,204,336
null
75,445,341
2
null
75,445,273
0
null
wrap with container/sizebox and add in row mainAxisAlignment: MainAxisAlignment.spaceAround
null
CC BY-SA 4.0
null
2023-02-14T08:51:37.317
2023-02-14T08:51:37.317
null
null
10,726,498
null
75,445,396
2
null
75,445,273
0
null
Using `TextSpan()` widget is better than instead of `Row()`. Like that. ``` RichText( text: TextSpan( children: [ TextSpan(text: 'Discount',style: AppTheme.of(context).subtitle2,), WidgetSpan( child: SizedBox( width: 20, // your of space ),), TextSpan(text: "${Provider.of<Cart(context,listen:false).discountPrice}", style: AppTheme.of(context).subtitle1,), ], ),), ``` but I think in your question your code and your screen shoot is different. Please ask clearly. ** My answer is to space between horizontal text widget. **
null
CC BY-SA 4.0
null
2023-02-14T08:56:34.210
2023-02-14T08:56:34.210
null
null
9,019,910
null
75,445,469
2
null
75,445,161
0
null
The issue you are having is that the call has not bee authorized. To access private user data you need permission which means you need to send a properly authorized access token along with your request This is sent as an Authorization header, something like this. curl -X POST -H "Authorization: bearer xxxxxxxxxxxxxx" "https://analyticsreporting.googleapis.com/v4/reports:batchGet"
null
CC BY-SA 4.0
null
2023-02-14T09:01:08.610
2023-02-14T09:01:08.610
null
null
1,841,839
null
75,445,580
2
null
75,445,285
1
null
You issue stems from `import` being an async function, which will always return a Promise with the data. Your `fetchPrice` already handles this by being an async function too, which can then await the promise as you do in `setData(await priceRangeData)`. So a solution would be to do the same for `fetchData`, like so: ``` const fetchData = async (lang: string) => { if (lang) { const data = await import(`../locales/${lang}.json`); setData(data); } }; ```
null
CC BY-SA 4.0
null
2023-02-14T09:10:35.220
2023-02-14T09:10:35.220
null
null
3,521,108
null
75,445,687
2
null
75,445,285
1
null
You just need make fetchData to be async function and make await before import(), because it return Promise. Don't forget make type assertion. ``` const fetchData = async (lang: string) => { if (lang) { const data = await import(`../locales/${lang}.json`); setData(data.default as IData[]); } }; ```
null
CC BY-SA 4.0
null
2023-02-14T09:19:47.913
2023-02-14T09:43:35.693
2023-02-14T09:43:35.693
21,206,675
21,206,675
null
75,445,755
2
null
75,445,332
1
null
I think it is because on the save action you have some kind of automatic code formatter tool enabled, like [prettier](https://prettier.io/). If you want to skip this formatting action then this might help: [How do I turn off text formatting on save in visual studio code?](https://stackoverflow.com/questions/63480680/how-do-i-turn-off-text-formatting-on-save-in-visual-studio-code)
null
CC BY-SA 4.0
null
2023-02-14T09:24:35.210
2023-02-14T09:24:35.210
null
null
17,087,770
null
75,446,014
2
null
75,445,913
0
null
You can use `Stack` for display `image` and display `button` at center of the screen. Stack : [https://api.flutter.dev/flutter/widgets/Stack-class.html](https://api.flutter.dev/flutter/widgets/Stack-class.html) `Stack` useful if you want to overlap several children in a simple way, for example having some text and an image, overlaid with a gradient and a button attached to the center. Example : ``` class WelcomePage extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( centerTitle: true, title: Text( "Kings of Iran", textAlign: TextAlign.center, style: TextStyle( fontSize: 40.0, fontWeight: FontWeight.bold, color: Colors.white, ), ), ), body: Stack( children: [ Container( decoration: BoxDecoration( image: DecorationImage( image: AssetImage("assets/images/back.jpg"), fit: BoxFit.cover, alignment: Alignment.center))), Column( mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[ SizedBox( height: 50.0, ), Center(child: ElevatedButton( onPressed: () { Navigator.push( context, MaterialPageRoute(builder: (context) => HomePage()), ); }, child: Text( "Explore", style: TextStyle(fontSize: 20.0, color: Color.fromARGB(255, 191, 211, 9)), ), )) ], ), ], ) } } ```
null
CC BY-SA 4.0
null
2023-02-14T09:46:02.483
2023-02-14T10:46:51.723
2023-02-14T10:46:51.723
16,918,979
16,918,979
null
75,446,041
2
null
75,445,273
0
null
That's a quite good approach to use SizedBox in this case, but you need to set width instead of height.
null
CC BY-SA 4.0
null
2023-02-14T09:48:19.377
2023-02-14T09:48:19.377
null
null
10,896,763
null
75,446,139
2
null
75,445,358
0
null
In the past, I made other strange observations using the `*` in such "self (de-/non-)terminating loops". I guess gnuplot determines the number of columns from the last block, but is probably not prepared to have variable number of columns. Here is a somewhat awkward but straightforward procedure to plot all blocks and all columns. This example works as long as your column separator is whitespace. - `stats``help stats`- `"\n"``strcol(1)`- `words``help words``$ColMax``help table`- - Maybe there are shorter and smarter solutions. ``` ### plot all blocks and all columns (variable number of columns in blocks) reset session $Data <<EOD a b 2 3 4 9 16 27 c 4 16 64 d e f 5 6 7 33 44 55 77 88 99 EOD stats $Data u 0 nooutput set datafile separator "\n" set table $ColMax plot for [b=0:STATS_blocks-1] $Data u (words(strcol(1))) index b every ::::0 w table unset table set datafile separator whitespace set key top center plot for [b=0:STATS_blocks-1] for [c=1:$ColMax[b+1]] $Data u 0:c index b w lp pt 7 ti columnhead ### end of script ``` [](https://i.stack.imgur.com/QxdvS.png) Here is a bit shorter solution which does not use reading from or plotting to a table/datablock (which works only for gnuplot>5.0). The following should also work for later versions of 4.x if you read the data from a file. ``` ### plot all blocks and all columns (variable number of columns in blocks) reset FILE = 'myFile.dat' set datafile separator "\n" # or any character which is not in the data B = 0 Cols = '' stats FILE u (column(-2)==B ? (B=B+1, Cols=Cols.' '.words(strcol(1))):0) every ::1::1 nooutput set datafile separator whitespace set key top center plot for [b=0:B-1] for [c=1:word(Cols,b+1)] FILE u 0:c index b w lp pt 7 ti columnhead ### end of script ```
null
CC BY-SA 4.0
null
2023-02-14T09:57:06.913
2023-02-15T10:24:33.093
2023-02-15T10:24:33.093
7,295,599
7,295,599
null