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
73,969,535
2
null
64,717,248
0
null
If you are using React Navigation, try to put "flex: 1" in cardStyle attribute of your stack screenOptions. ``` <Stack.Navigator ... screenOptions={{ cardStyle: { width: "100%", flex: 1, }, }} > ... </Stack.Navigator>; ``` Then make sure that every screen size wrappers from Your navigation screen to the flatList are in "flex: 1"
null
CC BY-SA 4.0
null
2022-10-06T06:39:18.733
2022-10-06T06:40:26.980
2022-10-06T06:40:26.980
8,145,866
8,145,866
null
73,969,629
2
null
30,212,337
0
null
I had the same problem, I just set the body height to 100vh and the color wasn't again repeated. ``` body { background: linear-gradient(35deg, rgba(253, 211, 0, 0.837), #fda900); height: 100vh; } ``` ``` <html> <head></head> <body> <h1>Hello dear!</h1> </body> </html> ``` }
null
CC BY-SA 4.0
null
2022-10-06T06:49:18.257
2022-10-06T06:49:18.257
null
null
14,215,881
null
73,969,780
2
null
73,969,660
1
null
Just go up one line `@foreach($data as $row)` over `<tr class="border-b hover:bg-orange-100 bg-gray-100">`
null
CC BY-SA 4.0
null
2022-10-06T07:04:17.733
2022-10-06T07:04:17.733
null
null
14,895,183
null
73,969,809
2
null
73,969,660
0
null
Try putting your `@foreach` before the `<td>`
null
CC BY-SA 4.0
null
2022-10-06T07:07:12.070
2022-10-06T07:07:12.070
null
null
12,155,446
null
73,969,810
2
null
73,969,350
0
null
Here is a much simpler version No need for ID since you have name[] You can actually use CSS to hide the plus and show the minus in the first and subsequent rows ``` $(function() { const $wrapper = $('.receive-item'); const tes = () => { const $row = $wrapper.find("tr").eq(0).clone(true) $wrapper.append($row); $row.find(":input").val("").focus(); }; $wrapper.on('click', '.remove', function(e) { e.preventDefault(); if (!confirm("Delete this row?")) return; $(this).closest("tr").remove(); }); $('.item_code').on('change', tes); }); ``` ``` <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css" /> <table> <tbody class="receive-item"> <tr> <td> <input type="text" class="form-control form-control-sm item_code" name="item_code[]" placeholder="Item Code"></td> <td><a href="javascript:void(0)" class="btn btn-sm btn-danger remove" title="Delete"><i class="fas fa-minus"></i></a></td> </tr> </tbody> </table> ``` Here we hide or show the plus or minus BUT we would get TWO fields if you change and click add ``` $(function() { const $wrapper = $('.receive-item'); $(".remove").eq(0).hide(); // hide the first const tes = (e) => { const $row = $wrapper.find("tr").eq(0).clone(true) $wrapper.append($row); $row.find(":input").val("").focus(); $(".remove:gt(0)").show() $(".addButton:gt(0)").hide() }; $wrapper.on('click', '.remove', function(e) { e.preventDefault(); if (!confirm("Delete this row?")) return; $(this).closest("tr").remove(); }); $wrapper.on('click', '.addButton', tes); // $('.item_code').on('change', tes); // either on change OR on click }); ``` ``` <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css" /> <table> <tbody class="receive-item"> <tr> <td> <input type="text" class="form-control form-control-sm item_code" name="item_code[]" placeholder="Item Code"></td> <td><a href="javascript:void(0)" class="btn btn-sm btn-danger remove" title="Delete"><i class="fas fa-minus"></i></a> <a href="javascript:void(0)" class="btn btn-sm btn-primary addButton" title="Add Receive Items"><i class="fas fa-plus"></i></a> </td> </tr> </tbody> </table> ```
null
CC BY-SA 4.0
null
2022-10-06T07:07:15.997
2022-10-06T07:30:16.333
2022-10-06T07:30:16.333
295,783
295,783
null
73,970,423
2
null
51,060,771
0
null
Install rehype-raw to your project ``` npm install rehype-raw ``` Import rehypeRaw ``` import rehypeRaw from 'rehype-raw' ``` Add rehypePlugins props on your component ``` <ReactMarkdown remarkPlugins={[[remarkGfm,]]} children={readmeContent} rehypePlugins={[rehypeRaw]} /> ```
null
CC BY-SA 4.0
null
2022-10-06T08:02:41.027
2022-10-06T08:02:41.027
null
null
7,895,801
null
73,970,608
2
null
73,960,749
0
null
Navigate to >> Settings >> Teams [](https://i.stack.imgur.com/moI8V.png) Then, Verify your teammates permissions one by one, or create a group which grant permissions to your builds and add all relevant team members
null
CC BY-SA 4.0
null
2022-10-06T08:16:52.947
2022-10-06T08:16:52.947
null
null
15,307,414
null
73,970,954
2
null
24,019,131
1
null
Usually the below error, ``` Class not found org.springframework.beans.BeanUtilsTests java.lang.ClassNotFoundException: org.springframework.beans.BeanUtilsTests ``` occurs when the corresponding jar is missing in the classpath. Since you have already added the `spring-beans` jar manually, I suspect you are using an incompatible version of the `spring-beans` jar with your spring-boot. You can check the [Maven repo Spring Beans](https://mvnrepository.com/artifact/org.springframework/spring-bean) to check the compatible version. But I would suggest using a dependency management tool like Gradle or Maven to include the required dependency jars. [Spring-Boot Gradle file](https://github.com/spring-projects/spring-boot/blob/main/settings.gradle)
null
CC BY-SA 4.0
null
2022-10-06T08:46:52.000
2022-10-18T07:43:25.713
2022-10-18T07:43:25.713
20,173,434
20,173,434
null
73,970,965
2
null
73,960,749
1
null
From the description, You and others should have permission to view the git repo of wiki(Read permission should already been assigned on your side). So I have a solution that should work. --- Before giving the solution, I'll start by explaining the makeup of a wiki. Every DevOps project has a hidden repository, which named `<Project Name>.wiki`, this repository can't be access via the repository UI list, also can't be listed via the [List Repositories REST API](https://learn.microsoft.com/en-us/rest/api/azure/devops/git/repositories/list?view=azure-devops-rest-6.0&tabs=HTTP). This repository also unable to be managed as other common repositories. Only ''. The repository will store all of the information in the pages of wiki permanently unless you delete the file in the repo. But the comments section of the wiki is implemented [quite differently](https://learn.microsoft.com/en-us/azure/devops/project/wiki/add-comments-wiki?view=azure-devops#add-a-comment), it is not based on a git repo and does not provide an explicit manage method. If you accidentally delete an image in a comment from the wiki, you won't have any way to get it back. Depending on what you're in now, you can make others able to view the contents of image like this: [](https://i.stack.imgur.com/Kqw99.png) This step will upload the images to the wiki repo and everyone who have access to the wiki repo will be able to see them. `![image.png](https://dev.azure.com/<Organization Name>/<Project Name>/_apis/git/repositories/<Project Name>.wiki/items?scopePath=<The path you get from the above step>&download=true&api-version=6.1-preview.1)` For example, on my side, it is: `![image.png](https://dev.azure.com/BowmanCP/BowmanWikiProject/_apis/git/repositories/BowmanWikiProject.wiki/items?scopePath=.attachments/image-95e808f3-d67d-4060-91fa-836493a761b9.png&download=true&api-version=6.1-preview.1)` Images using this method will have their own authentication.
null
CC BY-SA 4.0
null
2022-10-06T08:47:58.893
2022-10-06T09:12:10.127
2022-10-06T09:12:10.127
6,261,890
6,261,890
null
73,971,700
2
null
73,971,580
2
null
If you have Excel 365 you can use the `FILTER`-function - together with the `MOD` - logic to retrieve the time part of a date. (you will find a lot of explanations about this topic on SO - 0.25 equals to 6:00 and 0.75 to 18:00): `=FILTER(tblData,(MOD(tblData[Date],1)>=0.25)*(MOD(tblData[Date],1)<=0.75))` I named my table `tblData` and the field that I am filtering on is `Date`. You might have to adjust this. [](https://i.stack.imgur.com/5Y0bB.png)
null
CC BY-SA 4.0
null
2022-10-06T09:42:44.077
2022-10-06T09:42:44.077
null
null
16,578,424
null
73,972,165
2
null
73,972,013
0
null
Try `php artisan config:clear` and then upload the project via Filezilla
null
CC BY-SA 4.0
null
2022-10-06T10:15:59.453
2022-10-06T10:15:59.453
null
null
16,660,852
null
73,972,318
2
null
52,581,898
0
null
I had this message pop up while running and Oracle report, I eventually found it was caused by trying to populate a number placeholder with characters
null
CC BY-SA 4.0
null
2022-10-06T10:28:16.410
2022-10-06T10:28:16.410
null
null
20,174,648
null
73,972,547
2
null
46,148,523
0
null
Removing this fixed the issue on my side. ``` OTHER_CODE_SIGN_FLAGS = "--deep"; ``` My main target had this build setting and that way it overwrote the code signing entitlement of the embedded application with the parent code signing entitlement.
null
CC BY-SA 4.0
null
2022-10-06T10:47:13.530
2022-10-06T10:47:13.530
null
null
1,752,496
null
73,972,720
2
null
73,972,582
0
null
Your error is not related to DSharpPlus, it's simply an async call not being awaited, this should fix your issue: ``` await discord.SendMessageAsync(await discord.GetChannelAsync(ChannelIDHERE), "Hello"); ```
null
CC BY-SA 4.0
null
2022-10-06T11:01:26.447
2022-10-06T11:01:26.447
null
null
16,598,508
null
73,973,273
2
null
73,973,074
0
null
The result of your call `await contract.methods.newItem(prodname, thisdate).send` seems to return indeed an object formatted like below: ``` {"events": { /* ... whatever content ... */ }} ``` But you are assuming that it always return a dimension: ``` {"Added": {"returnValues": [ ... somes values here ... ]}} ``` You need to control your data received if you are receiving correctly the `Added.returnValues` section by doing something like: ``` .then(receipt => { var events = receipt.events; var results = (events && events.Added && events.Added.returnValues || []); if (!results.length) { qr.value = `No results received`; return; } qr.value = results[0]; // ... rest of your code ... ```
null
CC BY-SA 4.0
null
2022-10-06T11:48:12.967
2022-10-06T11:48:12.967
null
null
8,597,732
null
73,973,731
2
null
73,971,674
3
null
You have to match their `extent`: [](https://i.stack.imgur.com/ZlKew.png) ``` import numpy as np import matplotlib.pyplot as plt from scipy.misc import face x = face(gray=False) # shape (768, 1024, 3) y = np.random.random((100, 133)) # shape (100, 133) fig, ax = plt.subplots() img0 = ax.imshow(x) img1 = ax.imshow(y, cmap="jet", alpha=0.3, extent=img0.get_extent()) plt.show() ```
null
CC BY-SA 4.0
null
2022-10-06T12:23:17.713
2022-10-06T12:23:17.713
null
null
2,912,349
null
73,973,824
2
null
4,584,963
0
null
seems to work for all cells ``` $sheets = $spreadsheet->getAllSheets(); $priceCasegetCellByColumnAndRow = $sheet->getCellByColumnAndRow(14, ($key))->getCalculatedValue() $priceCasegetCell = $sheet->getCell('O' . $key)->getCalculatedValue(); ```
null
CC BY-SA 4.0
null
2022-10-06T12:28:56.190
2022-10-06T12:28:56.190
null
null
8,616,848
null
73,973,899
2
null
71,480,290
5
null
In my case, the inspector was in the collapsed mode because the react-dev tools were opened. When I closed the react-dev-tools the inspector on the iPhone simulator is seen as I expected. I found the solution for my case from the React Native documentation. > However, when react-devtools is running, Inspector will enter a collapsed mode, and instead use the DevTools as primary UI. For more information: [https://reactnative.dev/docs/debugging#integration-with-react-native-inspector](https://reactnative.dev/docs/debugging#integration-with-react-native-inspector) [](https://i.stack.imgur.com/iypyf.png)
null
CC BY-SA 4.0
null
2022-10-06T12:34:48.787
2022-10-06T12:34:48.787
null
null
10,102,533
null
73,973,932
2
null
73,291,549
0
null
Could this be the solution: ``` WSD <- function(P, PET, n){ lag_sum = 0 wat_bal = P - PET for(i in 1:n){ lag_sum = lag_sum + lag(wat_bal, i) } return(lag_sum) } ``` ?
null
CC BY-SA 4.0
null
2022-10-06T12:37:27.023
2022-10-06T12:37:27.023
null
null
19,726,427
null
73,974,624
2
null
73,962,106
0
null
You installed the wrong nuget. You don't need the package, that's unrelated to your needs. You need to add the [RestSharp nuget](https://www.nuget.org/packages/RestSharp) to your project To do so, please do the following: 1. Right click on your ExternalWebServiceConsumpTest project 2. Then click "Manage NuGet Packages" 3. Make sure the Package Source is set to "nuget.org" 4. In the search bar, type RestSharp and hit enter 5. Select the RestSharp package and install it to your ExternalWebServiceConsumpTest project ![](https://i.stack.imgur.com/qvBDu.png) Now, your code should be able to find the `RestSharp` namespace
null
CC BY-SA 4.0
null
2022-10-06T13:25:11.173
2022-10-09T15:28:22.913
2022-10-09T15:28:22.913
4,308,455
4,308,455
null
73,974,636
2
null
26,725,306
0
null
I know this is an older question but we just had this happen the other day and it was very annoying not knowing why. I emptied our applicationContext.xml of all bean entries and pasted them back in one by one. Eventually, I found the culprit was a simple ending comment after a been definition! It took a half hour of complaining about it giving the error and < 5 minutes to just paste the beans back in and find the errant comment.
null
CC BY-SA 4.0
null
2022-10-06T13:25:59.790
2022-10-06T13:25:59.790
null
null
1,955,401
null
73,975,235
2
null
66,293,167
1
null
The accepted solution here didn't work for me, but I could solve with the solution posted [here](https://stackoverflow.com/a/73006632/19613968) by Addem. It basically says, in the settings.json file (Ctrl + , > Extensions > Emmet > Preferences > Edit in "settings.json"), add this line: ``` "emmet.preferences": { "output.inlineBreak": 1, }, ```
null
CC BY-SA 4.0
null
2022-10-06T14:06:57.543
2022-10-06T14:06:57.543
null
null
19,613,968
null
73,975,653
2
null
73,972,013
0
null
I found the solution. Inside the folder `/storage/framework/sessions/FileSessionHandler`, I had to modify the value of the `$path` variable.
null
CC BY-SA 4.0
null
2022-10-06T14:37:37.130
2022-10-06T14:37:37.130
null
null
20,174,318
null
73,976,171
2
null
73,737,847
1
null
We recently added support for "Inlay Hints" in the Dart language server. This allows you to see inferred types and parameter names in the source. It was intended to be opt-in, but the global VS Code setting for inlay hints was on by default so this showed up for users on the Flutter master branch. As long as you're on the latest version of the Dart extension this should now be fixed, and the inlay hints will only be shown while you're holding down the shortcut key (`Ctrl`+`Option/Alt`). This behaviour can be changed in your Dart-specific setting of your VS Code settings.
null
CC BY-SA 4.0
null
2022-10-06T15:13:12.003
2022-10-08T17:15:41.677
2022-10-08T17:15:41.677
25,124
25,124
null
73,976,185
2
null
73,970,607
0
null
You have to uncheck a filter in the Python interpreter's dialogue for the venv to become visible. (See the dialogue in point 3 of the PyCharm documentation - [Modify a Python interpreter](https://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html#modify_interpreter)). Go to `File` `>` `Settings` `>` `Project` `>` `Python Interpreter` `>` click the Cog icon `>` Select `Show All...` `>` Unselect the filter icon that reads: `Hide virtual environments associated with other projects`, as shown in the screenshot: [](https://i.stack.imgur.com/E4Mrn.png)
null
CC BY-SA 4.0
null
2022-10-06T15:14:23.753
2022-10-06T15:14:23.753
null
null
10,794,031
null
73,976,329
2
null
73,975,994
0
null
Instead of populating two separate lists, simply create the resulting objects in the first loop: ``` function getSite { $Results = Get-ChildItem C:\Scripts\ServiceInstalls\*\Output\'Config.exe.config' | ForEach-Object { $Site = $_.fullname.substring(27, 3) [xml]$xmlRead = Get-Content $_ $NetLogLevel = $xmlRead.SelectSingleNode("//add[@key='Net Log Level']") $NetLogLevel = $NetLogLevel.value [pscustomobject]@{ "Site ID" = $Site "Net Log Level" = $NetLogLevel } } $Results | ConvertTo-HTML -Property 'Site', 'Net Log Level' | Set-Content Output.html Invoke-Item "Output.html" } getSite ```
null
CC BY-SA 4.0
null
2022-10-06T15:23:34.190
2022-10-06T15:23:34.190
null
null
712,649
null
73,976,345
2
null
73,975,994
0
null
Restructure your code as follows: ``` Get-ChildItem 'C:\Scripts\ServiceInstalls\*\Output\Config.exe.config' | ForEach-Object { $site = $_.fullname.substring(27, 3) [xml]$xmlRead = Get-Content -Raw $_.FullName $netLogLevel = $xmlRead.SelectSingleNode("//add[@key='Net Log Level']").InnerText # Construct *and output* a custom object for the file at hand. [pscustomobject] @{ 'Site ID' = $site 'Net Log Level' = $netLogLevel } } | # Pipe the stream of custom objects directly to ConvertTo-Html ConvertTo-Html | # No need to specify -Property if you want to use all properties. Set-Content Output.html ``` --- As for : - `New-Object -TypeName System.Collections.ArrayList` in effect does nothing: it creates an array-list instance but doesn't save it in a variable, causing it to be to the pipeline, and since there is nothing to enumerate, nothing happens.- There is no point in wrapping a `[System.Collections.ArrayList]` instance in `@(...)`: its elements are and then collected in a regular `[object[]]` - just use `@(...)` by itself.- Using `+=` to "grow" an array is quite inefficient, because a array must be allocated behind the scenes every time; often there is no need to explicitly create an array - e.g. if you can simply stream objects to another command via the pipeline, as shown above, or you can let PowerShell itself create an array for you by assigning the result of a pipeline or `foreach` loop to a variable - see [this answer](https://stackoverflow.com/a/60708579/45375).- Also note that when you use `+=`, the result is invariably a regular `[object[]` array, even if the RHS is a different collection type such as `ArrayList`.- There are still cases where iteratively creating an array-like collection is necessary, but you then need to use the `.Add()` method of such a collection type in order to grow the collection efficiently - see [this answer](https://stackoverflow.com/a/60029146/45375).
null
CC BY-SA 4.0
null
2022-10-06T15:24:43.827
2022-10-06T16:01:51.710
2022-10-06T16:01:51.710
45,375
45,375
null
73,977,009
2
null
73,973,483
2
null
You can do it like this: ``` renderItem={(item) => ( <PaginationItem {...item} page={alphabet[item.page - 1]} /> )} ``` ``` const { Pagination, PaginationItem } = MaterialUI; const alphabet = Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZ"); function BasicPagination() { return ( <Pagination count={alphabet.length} variant="outlined" renderItem={(item) => ( <PaginationItem {...item} page={alphabet[item.page - 1]} /> )} /> ); } ReactDOM.createRoot(document.querySelector("#root")).render(<BasicPagination />); ``` ``` <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" /> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" /> <script crossorigin src="https://unpkg.com/react@18/umd/react.development.js"></script> <script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script> <script crossorigin src="https://unpkg.com/@mui/material@5/umd/material-ui.development.js"></script> <div id="root"></div> ```
null
CC BY-SA 4.0
null
2022-10-06T16:12:40.173
2022-10-06T17:30:50.173
2022-10-06T17:30:50.173
3,982,562
7,399,478
null
73,977,249
2
null
73,966,604
0
null
I've found the culprit even though I'm not sure why it behaves like that. My solution structure was ``` -- sln -- Folder -- .Net Library -- NUnit Test ``` Eliminating the folder will eliminate this strange behavior and adding the NUnit test will not create a duplicate inside the .Net Library.
null
CC BY-SA 4.0
null
2022-10-06T16:34:01.027
2022-10-06T16:34:01.027
null
null
20,170,564
null
73,977,323
2
null
73,977,200
1
null
It seems you need to use `xml.body` instead of `xml`. [Docs for Apify.utils.requestAsBrowser function](https://sdk.apify.com/docs/2.3/api/utils#utilsrequestasbrowseroptions). ``` const $ = cheerio.load(xml.body); ```
null
CC BY-SA 4.0
null
2022-10-06T16:41:59.630
2022-10-06T17:10:11.257
2022-10-06T17:10:11.257
8,312,809
8,312,809
null
73,977,673
2
null
73,977,570
0
null
``` by(df,df$sn_id, function(df) CATT(df$is_severe,df$encoding)) ```
null
CC BY-SA 4.0
null
2022-10-06T17:13:23.583
2022-10-06T17:13:23.583
null
null
6,912,817
null
73,978,214
2
null
73,966,133
0
null
use nested scrollview and set pinned true so appbar wont scroll but body will be scroll and also there are 3 parameter in nested scrollview which help to set scrolling differently. or check this video on YouTube it helps you [https://youtu.be/xzPXqQ-Pe2g](https://youtu.be/xzPXqQ-Pe2g)
null
CC BY-SA 4.0
null
2022-10-06T18:01:10.620
2022-10-06T18:01:10.620
null
null
18,261,014
null
73,978,262
2
null
73,965,299
0
null
> Firebase Storage isn't necessarily the issue, but rather the bandwidth. Every time a fan accesses the website, the website downloads the mp3 from Firebase Storage in order to access the frequency data to visualize it. So most likely, that's why you're having that problem related to the bandwidth because you're downloading all audio files, each time a user opens the website. That's not how you should handle this kind of situation. Instead of downloading all audio files, you should only display the name of the files, and download them on demand. For example, you should store the name of the files and corresponding URLs from Cloud Storage, either in [Cloud Firestore](https://firebase.google.com/docs/firestore) or in the [Realtime Database](https://firebase.google.com/docs/database), and as soon as the user clicks the download/play button, only then does start playing/downloading them. > Given each mp3 is ~8MB, you could see how even having 200 fans accessing the website would go over the 1GB free quota, so having thousands of people viewing the website would become expensive and not scalable. The problem isn't about scalability, it's about costs. [Cloud Storage for Firebase](https://firebase.google.com/docs/storage) can easily scale to millions of files. Besides that, please also bear in mind that the free quota, it's used for testing puposes and not for real-world applications. For that scenario, you should consider upgrading to the [Blaze Plan](https://firebase.google.com/pricing).
null
CC BY-SA 4.0
null
2022-10-06T18:06:26.953
2022-10-06T18:06:26.953
null
null
5,246,885
null
73,978,268
2
null
73,974,859
0
null
Artifactory OSS supports Maven, Gradle, Ivy, SBT, Generic package types as per this [confluence page](https://www.jfrog.com/confluence/display/JFROG/Artifactory+Comparison+Matrix) and hence you are not able to view Nuget options in OSS. You might have tried JFrog cloud Pro version where it comes with license and you will be able to view all package types. You will need a minimum Pro license to use the Nuget package type.
null
CC BY-SA 4.0
null
2022-10-06T18:06:54.637
2022-10-06T18:06:54.637
null
null
17,812,607
null
73,978,523
2
null
28,691,280
0
null
``` .dropzone .dz-preview.dz-error .dz-error-message { display: block; position: absolute; /* add this */ top: 150px; /* add this */ } ```
null
CC BY-SA 4.0
null
2022-10-06T18:29:00.247
2022-10-06T19:41:03.207
2022-10-06T19:41:03.207
14,267,427
11,665,733
null
73,978,686
2
null
73,768,917
0
null
In my case, I have upgraded Android Gradle Plugin when update is popUp and then restart the android studio. My Problem Solved.
null
CC BY-SA 4.0
null
2022-10-06T18:44:08.167
2022-10-06T18:44:08.167
null
null
17,111,317
null
73,978,857
2
null
71,115,933
0
null
The main reason for this problem is twitter API upgrade to V2.0. I have developed a Node-red twitter node that searches public tweets using twitter API V2.0. You can download the code from my github: [https://github.com/shahramdj/nodered_twitter_api](https://github.com/shahramdj/nodered_twitter_api) I also created a youtube video that explains how you can update the twitter node in node-red to search public tweets: The main reason for this problem is twitter API upgrade to V2.0. I have developed a Node-red twitter node that searches public tweets using twitter API V2.0. You can download the code from my github: [https://github.com/shahramdj/nodered_twitter_api](https://github.com/shahramdj/nodered_twitter_api) I also created a youtube video that explains how you can update the twitter node in node-red to search public tweets: [https://www.youtube.com/watch?v=HYn3sIDcIv4&t=78s](https://www.youtube.com/watch?v=HYn3sIDcIv4&t=78s)
null
CC BY-SA 4.0
null
2022-10-06T18:59:58.033
2022-10-06T19:00:29.550
2022-10-06T19:00:29.550
20,178,634
20,178,634
null
73,980,011
2
null
73,979,917
0
null
Use flexbox and wrap the text in a div So try ``` .leftside_element{ ... your stuff; display: flex; align-items: center } ```
null
CC BY-SA 4.0
null
2022-10-06T21:04:30.117
2022-10-06T21:04:30.117
null
null
19,793,626
null
73,980,010
2
null
73,979,917
0
null
Just add `display:flex;` and `align-items:center;` to class `.leftside_element`. Like that ``` .leftside_element { font-family: Roboto, Arial; font-size: 20px; color: white; padding: 12px 12px; display:flex; align-items:center; } ```
null
CC BY-SA 4.0
null
2022-10-06T21:04:29.953
2022-10-06T21:04:29.953
null
null
17,322,895
null
73,980,032
2
null
9,175,482
0
null
I tried many of the above solutions. This is what worked for me. In InitializeComponent, ensure that the AcceptButton is not set. Delete, or comment out, this code: // this.AcceptButton = this.btnClose;\ And on the button, add: this.btnClose.TabStop = false; (somebody mentioned this one above) If that doesn't work, you can also try moving the focus off of the button, and to the window frame. this.Focus()
null
CC BY-SA 4.0
null
2022-10-06T21:07:26.027
2022-10-06T21:58:02.930
2022-10-06T21:58:02.930
20,179,310
20,179,310
null
73,980,243
2
null
73,967,770
0
null
Loading the textures is an asynchronous call. As a consequence, every action that you perform on the results has to be made within the load callback (or handled in some other way, eg. promises). This is not specific to PIXI, but rather the asynchronous nature of JavaScript. Furthermore, the `textures` variable is accessible within the arrow function only and it won't be available outside of that block. I recommend reading more about variables scope in JavaScript to better understand the problem. This is the fixed code: ``` app.loader.add('spritesheet', 'pieces.json') .load(_ => { const textures = key.map(k => PIXI.Texture.from(k)); const sprite = PIXI.Sprite(textures[1]); app.stage.addChild(sprite) }); ```
null
CC BY-SA 4.0
null
2022-10-06T21:36:58.827
2022-10-07T12:22:29.073
2022-10-07T12:22:29.073
2,886,688
2,886,688
null
73,980,337
2
null
73,980,230
0
null
It looks like your `deviceModels` is an array or a `List`, and this is how the Firebase Realtime Database persists arrays/lists. There is no way to configure it to do it differently, but you can of course use a different data type in your code. More idiomatic in Firebase is to use the `push()` method when adding items to a list on the database. To learn more about why that is, have a look at [Best Practices: Arrays in Firebase](https://firebase.googleblog.com/2014/04/best-practices-arrays-in-firebase.html). In your case you'd write the data for each individual `DeviceModel`: ``` databaseReference.push().setValue(new DeviceModel(newDeviceName, newDeviceWat, newDeviceUse, currentDateAndTime)); ``` This will then end up in the database as: ``` DeviceInfo: { "IN0r....T2": { "-N.....": { deviceId: ..., deviceName: ... } } } ``` And that entire list would then map back to a `Map<String, DeviceModel>` in your Java code.
null
CC BY-SA 4.0
null
2022-10-06T21:48:55.667
2022-10-06T21:48:55.667
null
null
209,103
null
73,980,631
2
null
73,975,250
0
null
You need to save your code first as a file on your computer (filename.asm). Notice the asterisk in the name of the tab. It means your code has unsaved changes.
null
CC BY-SA 4.0
null
2022-10-06T22:31:34.940
2022-10-06T22:31:34.940
null
null
17,203,712
null
73,980,636
2
null
73,979,301
0
null
Guessing what you want here... Using [assign](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.assign.html) and [np.where](https://numpy.org/doc/stable/reference/generated/numpy.where.html) ``` df = df.assign( C=np.where((df["B"].ne("Good") & ~df["A"].isin(["c", "d"])), df["C"] + 1, df["C"]) ) print(df) A B C 0 a Good 1 1 b Good 1 2 c Good 1 3 c Good 1 4 a Good 1 5 b Bad 2 6 c Good 1 7 c Good 1 8 a Good 2 9 b Good 2 10 c Bad 2 11 c Good 2 12 a Good 3 13 b Good 3 14 c Good 3 ```
null
CC BY-SA 4.0
null
2022-10-06T22:32:12.553
2022-10-07T02:07:11.903
2022-10-07T02:07:11.903
3,249,641
3,249,641
null
73,980,749
2
null
11,892,816
0
null
Place cursor on the upper left corner of the block you want to select. Press OPTION Button and keep pressed, press touch pad, keep pressed while moving the cursor to desired lower right corner. Voila. You have slected a block that you can copy, delete, replace. You can also insert charcters as a column if moving cursor only down and to to the right. Using XCode Version 13.4 (13F17a) on MacOS 12.1 on Mac M1.
null
CC BY-SA 4.0
null
2022-10-06T22:52:13.707
2022-10-06T22:52:39.407
2022-10-06T22:52:39.407
20,179,679
20,179,679
null
73,980,961
2
null
73,980,894
0
null
I don't think that you can apply filters to a background image itself, but there is a workaround for this. Use `:before` element and give it `height` and `width` of 100% and the background-image, now you can apply a filter to this.
null
CC BY-SA 4.0
null
2022-10-06T23:35:06.387
2022-10-12T21:17:34.727
2022-10-12T21:17:34.727
17,016,350
18,045,679
null
73,981,081
2
null
12,041,869
0
null
The trick is that it's the event, not the keydown event that triggers the context menu. Calling .preventDefault() on a keyup event whose .key is `ContextMenu` will stop it from happening, at least in Chrome and Electron. That is, you can globally disable the context menu key just with: ``` window.addEventListener("keyup", function(event){ if (event.key === "ContextMenu") event.preventDefault(); }, {capture: true}) ``` And then monitor the keydown event to trigger your replacement.
null
CC BY-SA 4.0
null
2022-10-07T00:04:12.633
2022-10-07T00:04:12.633
null
null
238,398
null
73,981,344
2
null
73,980,982
2
null
You can use this formula with a helper cell : ``` =SUM(D4:INDIRECT("D"&B1+4)) ``` Where-- - - Kindly see the result below: [](https://i.stack.imgur.com/Vvokh.gif) You may refer to this link for more detailed explanation: - [How To Sum A Dynamic Range: Google Sheets](https://scripteverything.com/how-to-sum-a-dynamic-range-google-sheets/)
null
CC BY-SA 4.0
null
2022-10-07T01:02:09.450
2022-10-08T00:30:35.100
2022-10-08T00:30:35.100
20,038,057
20,038,057
null
73,981,352
2
null
73,980,894
0
null
I don't know if this helps or not, but if you look at W3School `background-image: url("chevron-right-v2.svg")`, you have to put quotes in the url [https://www.w3schools.com/cssref/pr_background-image.asp](https://www.w3schools.com/cssref/pr_background-image.asp)
null
CC BY-SA 4.0
null
2022-10-07T01:03:57.200
2022-10-07T01:03:57.200
null
null
19,520,749
null
73,981,732
2
null
73,479,031
0
null
I faced a similar issue which I believe has to do with combining `textAlign = TextAlign.End` with `overflow = TextOverflow.Ellipsis`. I have just had a play with you sample and came up with this (which is similar to how I solved my problem): ``` val textStyleWithoutLetterSpacing = TextStyle() val textStyleWithLetterSpacing = TextStyle(letterSpacing = 1.sp) @Composable fun Sample() { Column { Text( text = "1234567890 1234567890 1234567890", textAlign = TextAlign.End, overflow = TextOverflow.Ellipsis, maxLines = 1, style = textStyleWithoutLetterSpacing ) Box(contentAlignment = Alignment.CenterEnd) { Text( text = "1234567890 1234567890 1234567890", overflow = TextOverflow.Ellipsis, maxLines = 1, style = textStyleWithLetterSpacing ) } } } ``` In essence, I delegated the alignment of the text to the `Box` component and that seems to bypass the bug in the compose library (v1.2.1 at the time of writing this answer).
null
CC BY-SA 4.0
null
2022-10-07T02:20:29.853
2022-10-07T02:20:29.853
null
null
495,673
null
73,981,972
2
null
73,981,678
1
null
So text-align determines whether your text is oriented at the left, right, or center of its container, much like the alignment feature on Microsoft Word. Font-family is what kind of font you're using (Arial, Times New Roman, etc.). Font-size is just that, how large your font is, while font-weight determines whether your font is bold or not. If you want the 2 images to be side by side, rather than one on top of the other, I recommend setting the parent container's display property to flex and its flex-direction to row like this: ``` .parent-container{ display: flex; flex-direction: row; } ``` You can learn more about Flexbox at [https://css-tricks.com/snippets/css/a-guide-to-flexbox/](https://css-tricks.com/snippets/css/a-guide-to-flexbox/) I found this website invaluable when I was a CSS beginner.
null
CC BY-SA 4.0
null
2022-10-07T03:07:20.117
2022-10-07T03:07:20.117
null
null
19,771,135
null
73,982,636
2
null
73,864,418
0
null
Here are few samples for fetching the profile photo of a signed-in in user with the helper's code [](https://i.stack.imgur.com/ojSub.png) Reference document: [https://github.com/microsoftgraph/aspnetcore-connect-sample#helpers](https://github.com/microsoftgraph/aspnetcore-connect-sample#helpers) Hope this helps.
null
CC BY-SA 4.0
null
2022-10-07T05:10:16.097
2022-10-07T05:10:16.097
null
null
17,982,436
null
73,982,719
2
null
68,435,021
1
null
i face same problem in stepper where i need to remove continue and cancel button from stepper widget in flutter i do this way ``` Stepper( controlsBuilder: (context, controller) { return const SizedBox.shrink(); }, ), ``` by this you remove space occupied by continue and cancel button may be you will like whole code Note : here i used horizonal stepper so i was wraped into SizeBox and give fixed height for remove unbounded error. ``` class MyCustomSteep extends StatefulWidget { const MyCustomSteep({Key? key}) : super(key: key); @override State<MyCustomSteep> createState() => _MyCustomSteepState(); } class _MyCustomSteepState extends State<MyCustomSteep> { int currentStep = 0; @override Widget build(BuildContext context) { return SizedBox( height: 110, child: Stepper( controlsBuilder: (context, controller) { return const SizedBox.shrink(); }, type: StepperType.horizontal, currentStep: currentStep, onStepTapped: (stepIndex) { setState(() => currentStep = stepIndex); log('currentStep : $currentStep'); }, elevation: 1.0, steps: <Step>[ Step( isActive: currentStep >= 0, title: const Text( 'Created', ), content: const SizedBox.shrink(), label: SizedBox( height: 80, child: Text( DateFormat('dd MMM hh:mm:ss').format(DateTime.now()), ), ), ), Step( isActive: currentStep >= 1, title: const Text( 'In Progress', ), content: const SizedBox.shrink(), label: Column( children: [ Text( DateFormat('dd MMM hh:mm:ss').format(DateTime.now()), ), ], ), ), Step( isActive: currentStep >= 2, title: const Text( 'Vehicle Ready', ), content: const SizedBox.shrink(), label: Text( DateFormat('dd MMM hh:mm:ss').format(DateTime.now()), ), ), Step( isActive: currentStep >= 3, title: const Text( 'Payment Due', ), content: const SizedBox.shrink(), label: Text( DateFormat('dd MMM hh:mm:ss').format(DateTime.now()), ), ), Step( isActive: currentStep >= 4, title: const Text( 'Payment Done', ), content: const SizedBox.shrink(), label: Text( DateFormat('dd MMM hh:mm:ss').format(DateTime.now()), ), ), ], ), ); } } ``` [](https://i.stack.imgur.com/ULDVY.png)
null
CC BY-SA 4.0
null
2022-10-07T05:23:18.633
2022-10-07T06:24:57.300
2022-10-07T06:24:57.300
19,873,077
19,873,077
null
73,983,117
2
null
73,982,078
0
null
Read the [docs](https://code.visualstudio.com/docs/python/python-tutorial#_select-a-python-interpreter) first. Please ensure that and [python extensions](https://marketplace.visualstudio.com/items?itemName=ms-python.python) are installed, and then select python interpreter(Ctrl+Shift+P then ).
null
CC BY-SA 4.0
null
2022-10-07T06:18:11.530
2022-10-07T06:18:11.530
null
null
18,359,438
null
73,983,195
2
null
73,982,840
1
null
What about just adding a variable which combines the two columns? ``` df['Partner, Dependents'] = df['Partner'] + ', ' + df['Dependents'] sns.barplot(data=df, x='Churn', y='customerID', hue='Partner, Dependents', estimator=sum) ```
null
CC BY-SA 4.0
null
2022-10-07T06:28:43.210
2022-10-07T06:28:43.210
null
null
6,220,759
null
73,983,739
2
null
73,983,122
0
null
You could create a empty project then right click on the project and select scaffold Identity: [](https://i.stack.imgur.com/mUwHb.png) Then you could try with the full path in picture,If you have other problems ,you could also check this project and compare to your project [](https://i.stack.imgur.com/JKIEf.png)
null
CC BY-SA 4.0
null
2022-10-07T07:24:37.207
2022-10-07T07:44:53.313
2022-10-07T07:44:53.313
18,177,989
18,177,989
null
73,984,187
2
null
20,264,268
0
null
From Android R (SDK 30+), you can use this code to get size of status bar and navigation bar ``` WindowInsets insets = activity.getWindowManager().getCurrentWindowMetrics().getWindowInsets(); int statusBarHeight = insets.getInsets(WindowInsetsCompat.Type.statusBars()).top; //in pixels int navigationBarHeight = insets.getInsets(WindowInsetsCompat.Type.navigationBars()).bottom; //in pixels ```
null
CC BY-SA 4.0
null
2022-10-07T08:08:16.477
2022-10-07T08:08:16.477
null
null
5,426,065
null
73,984,392
2
null
73,983,204
1
null
Probably because the HTML written inside of the `template` tag is considered as HTML by emmet to, while it's `vue-html`. It's probably a bug from the library, minor one. You have already created [an issue there](https://github.com/johnsoncodehk/volar/issues/1939), so there is not much to do now. Maybe give a try to some configurations in this thread: [https://github.com/johnsoncodehk/volar/issues/716#issuecomment-975378571](https://github.com/johnsoncodehk/volar/issues/716#issuecomment-975378571) Or that one: [https://github.com/johnsoncodehk/volar/issues/1852](https://github.com/johnsoncodehk/volar/issues/1852) Looking with the keyword `duplicate` or `Emmet` will give you quite some leads overall.
null
CC BY-SA 4.0
null
2022-10-07T08:24:57.103
2022-10-07T08:24:57.103
null
null
8,816,585
null
73,984,455
2
null
73,984,294
-1
null
You can use ListView.builder physics attribute with NeverScrollableScrollPhysics(), if you want you can also bind it to a variable that can be determined with a one-line if, for example; isDraggable==true? NeverScrollableScrollPhysics(): AlwaysScrollableScrollPhysics
null
CC BY-SA 4.0
null
2022-10-07T08:31:32.130
2022-10-07T08:31:32.130
null
null
14,630,767
null
73,984,463
2
null
73,974,244
0
null
Set up contentMode as .scaleAspectFit, and set up imageEdgeInserts: ``` override func awakeFromNib() { self.addTarget(self, action: #selector(CheckBox.buttonClicked), for: UIControl.Event.touchUpInside) self.imageView?.contentMode = .scaleAspectFit self.imageEdgeInsets = UIEdgeInsets(top: 5.0, left: 0.0, bottom: 5.0, right: 50.0) self.updateImage() } ``` Then your button should be Custom type and Default style like this: [](https://i.stack.imgur.com/I4Nmt.png) As a result you can see: [](https://i.stack.imgur.com/aVRqc.png)
null
CC BY-SA 4.0
null
2022-10-07T08:32:17.137
2022-10-09T13:41:00.463
2022-10-09T13:41:00.463
1,709,337
1,709,337
null
73,984,759
2
null
73,984,703
1
null
Another option is to check if a record of those two columns isn't null: ``` select * from the_table where not (num1, num2) is null; ``` `(num1, num2) is null` is true if all fields of the (anonymous) record are null. Note that it's important to negate the condition, it's not possible to use `is not null` - `(num1, num2) is not null` would work. I think it's a matter of personal taste which one to use. Another more dynamic way is to convert the row to a JSON value, remove the irrelevant columns, then remove all null values and compare that to an empty object: ``` select * from the_table t where jsonb_strip_nulls(to_jsonb(t) - 'id' - 'num3') <> '{}' ```
null
CC BY-SA 4.0
null
2022-10-07T08:58:51.313
2022-10-07T09:06:02.377
2022-10-07T09:06:02.377
330,315
330,315
null
73,984,884
2
null
73,972,053
0
null
If you want to only retrieve one (or a couple) of columns of a list of values you could use a Select instead of a apply to each loop. Below is an example for one column. 1. Switch the Map field to text mode and select your column name. [](https://i.stack.imgur.com/fRGvL.png) 1. After that you could even join the values with for example a comma character in a Compose action by using the expression below. join(body('Select'), ',')
null
CC BY-SA 4.0
null
2022-10-07T09:10:03.983
2022-10-07T09:10:03.983
null
null
19,580,297
null
73,985,320
2
null
73,978,900
1
null
Pseudocode. Used center as `cx, cy`, `w` and `h` as -width and -height, `r` as corner radius. Calculate angle in side for-loop, add `phase` to start from needed direction (0 from OX axis, Pi/2 from OY axis) ``` for (i = 0..n-1): angle = i * 2 * math.pi / n + phase ``` Get unit vector components for this direction and absolute values ``` dx = cos(angle) dy = sin(angle) ax = abs(dx) ay = abs(dy) ``` Find vertical or horizontal for this direction and calculate point relative to center (we work in the first quadrant at this moment): ``` if ax * h > ay * w: x = w y = w * ay / ax else: y = h x = ax * h / ay ``` Now we have to correct result point is in rounded corner: ``` if (x > w - r) and (y > h - r): recalculate x and y as below ``` Here we have to find intersection of the ray with circle arc. Circle equation ``` (x - (w-r))^2 + (y - (h-r))^2 = r^2 (x - wr)^2 + (y - hr)^2 = r^2 //wr = w - r, hr = h - r ``` Ray equation (`t` is parameter) ``` x = ax * t y = ay * t ``` Substitute in circle eq: ``` (ax*t - wr)^2 + (ay*t - hr)^2 = r^2 ax^2*t^2 - 2*ax*t*wr + wr^2 + ay^2*t^2 -2*ay*t*hr + hr^2 -r^2 = 0 t^2*(ax^2+ay^2) + t*(-2*ax*wr - 2*ay*hr) + (wr^2 +hr^2 - r^2) = 0 t^2* a + t* b + c = 0 ``` Solve this quadratic equation for unknown `t`, get larger root, and find intersection point substituting `t` into ray equation. Now we want to put result into correct quadrant: ``` if dx < 0: x = -x if dy < 0: y = -y ``` and shift them by center coordinates ``` dx += cx dy += cy ``` That's all.
null
CC BY-SA 4.0
null
2022-10-07T09:47:21.313
2022-10-08T15:24:56.680
2022-10-08T15:24:56.680
844,416
844,416
null
73,985,590
2
null
73,985,472
0
null
remove the padding from iconbutton and set constraints. ``` Widget build(BuildContext context) { return Scaffold( body: SafeArea( left: false, child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Container( width: 50, color: Colors.blue, margin: EdgeInsets.only(left: 35), padding: EdgeInsets.zero, alignment: Alignment.centerLeft, child: IconButton( iconSize: 25, padding: EdgeInsets.zero, constraints: BoxConstraints(), onPressed: () {}, icon: const Icon(Icons.person,), ), ), Container( margin: EdgeInsets.only(left: 35), color: Colors.red, width: 20, height: 20, ) ], ), ), ); } ``` [](https://i.stack.imgur.com/j2M2S.png)
null
CC BY-SA 4.0
null
2022-10-07T10:09:51.980
2022-10-07T10:19:41.093
2022-10-07T10:19:41.093
20,067,845
20,067,845
null
73,985,668
2
null
73,984,877
1
null
This may not be in oval shaped like the way you wanted ..but it does its work.. you can tweak it however you want. ``` const FULL_DASH_ARRAY = 283; const WARNING_THRESHOLD = 10; const ALERT_THRESHOLD = 5; const COLOR_CODES = { info: { color: "green" }, warning: { color: "orange", threshold: WARNING_THRESHOLD }, alert: { color: "red", threshold: ALERT_THRESHOLD } }; const TIME_LIMIT = 20; let timePassed = 0; let timeLeft = TIME_LIMIT; let timerInterval = null; let remainingPathColor = COLOR_CODES.info.color; document.getElementById("app").innerHTML = ` <div class="base-timer"> <svg class="base-timer__svg" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <g class="base-timer__circle"> <circle class="base-timer__path-elapsed" cx="50" cy="50" r="45"></circle> <path id="base-timer-path-remaining" stroke-dasharray="283" class="base-timer__path-remaining ${remainingPathColor}" d=" M 50, 50 m -45, 0 a 45,45 0 1,0 90,0 a 45,45 0 1,0 -90,0 " ></path> </g> </svg> <span id="base-timer-label" class="base-timer__label">${formatTime( timeLeft )}</span> </div> `; startTimer(); function onTimesUp() { clearInterval(timerInterval); } function startTimer() { timerInterval = setInterval(() => { timePassed = timePassed += 1; timeLeft = TIME_LIMIT - timePassed; document.getElementById("base-timer-label").innerHTML = formatTime( timeLeft ); setCircleDasharray(); setRemainingPathColor(timeLeft); if (timeLeft === 0) { onTimesUp(); } }, 1000); } function formatTime(time) { const minutes = Math.floor(time / 60); let seconds = time % 60; if (seconds < 10) { seconds = `0${seconds}`; } return `${minutes}:${seconds}`; } function setRemainingPathColor(timeLeft) { const { alert, warning, info } = COLOR_CODES; if (timeLeft <= alert.threshold) { document .getElementById("base-timer-path-remaining") .classList.remove(warning.color); document .getElementById("base-timer-path-remaining") .classList.add(alert.color); } else if (timeLeft <= warning.threshold) { document .getElementById("base-timer-path-remaining") .classList.remove(info.color); document .getElementById("base-timer-path-remaining") .classList.add(warning.color); } } function calculateTimeFraction() { const rawTimeFraction = timeLeft / TIME_LIMIT; return rawTimeFraction - (1 / TIME_LIMIT) * (1 - rawTimeFraction); } function setCircleDasharray() { const circleDasharray = `${( calculateTimeFraction() * FULL_DASH_ARRAY ).toFixed(0)} 283`; document .getElementById("base-timer-path-remaining") .setAttribute("stroke-dasharray", circleDasharray); } ``` ``` body { font-family: sans-serif; display: grid; height: 100vh; place-items: center; } .base-timer { position: relative; width: 300px; height: 300px; } .base-timer__svg { transform: scaleX(-1); } .base-timer__circle { fill: none; stroke: none; } .base-timer__path-elapsed { stroke-width: 7px; stroke: grey; } .base-timer__path-remaining { stroke-width: 7px; stroke-linecap: round; transform: rotate(90deg); transform-origin: center; transition: 1s linear all; fill-rule: nonzero; stroke: currentColor; } .base-timer__path-remaining.green { color: rgb(65, 184, 131); } .base-timer__path-remaining.orange { color: orange; } .base-timer__path-remaining.red { color: red; } .base-timer__label { position: absolute; width: 300px; height: 300px; top: 0; display: flex; align-items: center; justify-content: center; font-size: 48px; } ``` ``` <div id="app"></div> ```
null
CC BY-SA 4.0
null
2022-10-07T10:17:23.987
2022-10-07T10:17:23.987
null
null
20,182,014
null
73,985,720
2
null
73,985,472
0
null
I think it's fine ``` Container( width: 50.w, color: Colors.blue, padding: EdgeInsets.zero, margin: EdgeInsets.only(left: 35.w), child: IconButton( iconSize: 25.w, alignment: Alignment.centerLeft, padding: EdgeInsets.zero, onPressed: () {}, icon: Icon(Icons.menu), ), ), ```
null
CC BY-SA 4.0
null
2022-10-07T10:23:01.713
2022-10-07T10:28:09.460
2022-10-07T10:28:09.460
17,568,395
17,568,395
null
73,985,881
2
null
73,985,279
0
null
You need to change `Model` to `public` in your shared file. The same goes for any properties and functions you want to access in your main code.
null
CC BY-SA 4.0
null
2022-10-07T10:36:49.923
2022-10-07T10:36:49.923
null
null
9,223,839
null
73,986,420
2
null
56,439,999
0
null
You should monitor the time needed for each part of the program (model declaration and solving) If the solving is too long, you can use a different solver as suggested above (here is some clue how to do it : [https://coin-or.github.io/pulp/guides/how_to_configure_solvers.html](https://coin-or.github.io/pulp/guides/how_to_configure_solvers.html)). If the model declaration is too long, you may have to optimise your code (try to use the pulp enabled fuctions as `pulp.lpSum` rather than python `sum` for example). You can also fidn some tricks here [https://groups.google.com/g/pulp-or-discuss/c/p1N2fkVtYyM](https://groups.google.com/g/pulp-or-discuss/c/p1N2fkVtYyM) and here [https://github.com/IBMDecisionOptimization/docplex-examples/blob/master/examples/mp/jupyter/efficient.ipynb](https://github.com/IBMDecisionOptimization/docplex-examples/blob/master/examples/mp/jupyter/efficient.ipynb)
null
CC BY-SA 4.0
null
2022-10-07T11:22:35.403
2022-10-07T11:22:35.403
null
null
14,705,072
null
73,986,438
2
null
44,139,441
0
null
I'd like to distill some wisdom from the answers and the comments I've received. The [answer](https://stackoverflow.com/a/44323948/2749397) from [Shammel Lee](https://stackoverflow.com/users/3682217/shammel-lee) is the closest to an accettable answer, the behind that answer is the correct idea, but too many details make me think that I cannot accept it. 1. The recourse to external sites, it's true that I'm going to publish the notebooks but my files and other details of my digital identity are not the business of anyone (as far as possible :), especially when Python standard library is perfectly up to the task. 2. The usually unnecessary step of uuencoding the SVG string. 3. The missing distinction between the header for a not-uuencoded string and the uuencoded one, as noted in this comment by Aristide. I have written a Python script that copies the quoted SVG content, plus the headers etc, to the clipboard ``` $ python3 svg2clip figure03.svg ``` so that you can paste (Ctrl-V) the required stuff into a markdown cell. ``` from sys import argv from urllib import parse from subprocess import PIPE, Popen, TimeoutExpired svg = open(argv[1]).read() inlined = ('![svg image](data:image/svg+xml,' + parse.quote(svg) + ')' ).encode('utf8')+ p = Popen(["xclip", "-selection", "clipboard"], stdin=PIPE, stdout=PIPE) try: p.communicate(inlined, timeout=0.020) except TimeoutExpired: pass ``` --- PS1 — if someone knows how to terminate command execution in a simpler way, please comment... PS2 — the script works on Linux, where `xclip` is usually present or can be easily installed, but afaict similar utilities are available also for different environments, just modify the `Popen` first argument.
null
CC BY-SA 4.0
null
2022-10-07T11:23:44.667
2022-10-07T11:30:51.203
2022-10-07T11:30:51.203
2,749,397
2,749,397
null
73,986,643
2
null
64,381,297
2
null
One way of getting rid of those warnings in your picture is to disable the Pylance by setting `"python.languageServer": "None"`(already mentioned by the accepted answer). But you are basically disabling the language server which means you will lose [all the help](https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance#features) from Pylance. I don't think this is what you want. Instead you can exclude some paths and those won't get type-checking at all. I usually do it for Python's standard library. In previous versions of Pylance, you could create a `pyrightconfig.json`(Pylance is built on top of Pyright, that's why) in the root of your workspace and put this inside(for more information - [click](https://github.com/microsoft/pylance-release/issues/642#issuecomment-732175189)): ``` { "ignore": [ "path to your third-party package or stdlib or ..." ], } ``` But since now ([October 2022](https://devblogs.microsoft.com/python/python-in-visual-studio-code-october-2022-release/#include-exclude-and-ignore-paths-can-now-be-provided-for-pylance)), you can directly set it in `settings.json`: ``` "python.analysis.ignore": ["path to your third-party package or stdlib or ...", ] ``` Remember you can use [wild-cards in paths](https://stackoverflow.com/a/32604736/13944524). This way your custom modules are only getting checked. If you want to completely disable type-checking: ``` "python.analysis.typeCheckingMode": "off" ```
null
CC BY-SA 4.0
null
2022-10-07T11:40:56.897
2022-10-07T12:13:13.257
2022-10-07T12:13:13.257
13,944,524
13,944,524
null
73,987,065
2
null
40,841,980
0
null
I am having that problem with Bootstrap. Looks like the culprit is the ROW class. I solved it by setting the with of the row to 100%: ``` <div class="row" style="width:100%"> ```
null
CC BY-SA 4.0
null
2022-10-07T12:18:27.543
2022-10-07T12:18:27.543
null
null
15,772,854
null
73,987,089
2
null
73,982,551
0
null
try: ``` =LAMBDA(G, H, I, INDEX(IF(A2:A="",,""<>IFNA(VLOOKUP(A2:A, QUERY(SPLIT(FLATTEN(IF(DAYS(H, G)+1<=SEQUENCE(1, MAX(DAYS(H, G)), 0),, G+SEQUENCE(1, MAX(DAYS(H, G)), 0)&"​"&I)), "​"), "select Col1,max(Col1) where Col2 is not null group by Col1 pivot Col2"), {2, 3}, )))))(G2:G5, H2:H5, I2:I5) ``` [](https://i.stack.imgur.com/Ro5mi.png)
null
CC BY-SA 4.0
null
2022-10-07T12:20:51.283
2022-10-07T12:20:51.283
null
null
5,632,629
null
73,987,260
2
null
73,985,522
0
null
It will make life easier if you start by pivoting your data into long format. That is, instead of having one column for IT and one for PT, you have a single column with all the values, and another column labeling the value in that row as coming from either PT or IT. You can do this easily with `pivot_longer`. It sounds like you want to stack the bars according to group, but have them dodged according to IT / PT. You can't both stack and dodge directly, but you can fake it with facets: Your code might then look something like this: ``` library(tidyverse) score %>% pivot_longer(IT:PT, names_to = 'IT_PT') %>% mutate(stain = factor(stain, unique(stain)), group = factor(group, unique(group))) %>% ggplot(aes(IT_PT, value, fill = group)) + geom_col(position = 'fill') + theme_minimal(base_size = 16) + facet_grid(.~stain, switch = 'x') + scale_fill_manual(name = NULL, values = c("#edae49", "#d1495b", "#00798c", "#30638e")) + scale_x_discrete(labels = c('', ''), name = 'Stain', expand = c(0.1, 0.7)) + scale_y_continuous(labels = scales::percent_format()) + theme(panel.spacing.x = unit(0, 'mm')) ``` [](https://i.stack.imgur.com/bkjaY.png) --- Obviously, I don't have your data, so I had to transcribe it manually from the picture in your question. ``` score <- structure(list(group = c("All_BrM", "All_BrM", "All_BrM", "All_BrM", "Sync", "Sync", "Sync", "Sync", "Meta", "Meta", "Meta", "Meta", "Poly", "Poly", "Poly", "Poly"), stain = c("0%", "<10%", "11-40%", ">40%", "0%", "<10%", "11-40%", ">40%", "0%", "<10%", "11-40%", ">40%", "0%", "<10%", "11-40%", ">40%"), IT = c(20, 35, 1, 0, 2, 13, 1, 0, 9, 9, 0, 0, 9, 13, 0, 0), PT = c(9, 30, 6, 0, 1, 9, 1, 0, 4, 10, 2, 0, 4, 11, 3, 0)), class = "data.frame", row.names = c(NA, -16L)) ```
null
CC BY-SA 4.0
null
2022-10-07T12:35:53.327
2022-10-07T13:31:27.280
2022-10-07T13:31:27.280
12,500,315
12,500,315
null
73,987,481
2
null
73,987,105
0
null
Use DISTINCT: `array_agg( DISTINCT academy_technology.name)`
null
CC BY-SA 4.0
null
2022-10-07T12:54:25.097
2022-10-07T12:54:25.097
null
null
271,959
null
73,987,490
2
null
71,662,736
0
null
i was facing the same problem, there are several reasons that can occur and there are two scenarios you can face this problem. first one : if you are trying to build unity export directly, do not update the project with android studio. because when gradle is upgraded sometn occurs and it doest compile as it must be seckond one: if you are importing unity project to an android native project as a module or dependency, you should arrange your ``` *gradle.properties *androidManifest.xml (ex. add your player activity) *settings.gradle (ex. include ':unityLibrary') ``` and use the gradle version that you exported. here is working examples: settings.gradle: ``` include ':launcher', ':unityLibrary' ``` local.properties: ``` sdk.dir=C\:\\Users\\amete\\AppData\\Local\\Android\\Sdk ndk.dir=C\:/Program Files/Unity/Hub/Editor/2021.3.8f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK ``` gradle.properties: ``` org.gradle.jvmargs=-Xmx4096M org.gradle.parallel=true android.enableR8=false unityStreamingAssets=.json, .dat, .xml unityTemplateVersion=3 ``` (project level)build.gradle: ``` allprojects { buildscript { repositories { google() jcenter() } dependencies { // If you are changing the Android Gradle Plugin version, make sure it is compatible with the Gradle version preinstalled with Unity // See which Gradle version is preinstalled with Unity here https://docs.unity3d.com/Manual/android-gradle-overview.html // See official Gradle and Android Gradle Plugin compatibility table here https://developer.android.com/studio/releases/gradle-plugin#updating-gradle // To specify a custom Gradle version in Unity, go do "Preferences > External Tools", uncheck "Gradle Installed with Unity (recommended)" and specify a path to a custom Gradle version classpath 'com.android.tools.build:gradle:7.2.2' } } repositories { google() jcenter() flatDir { dirs "${project(':unityLibrary').projectDir}/libs" } } } task clean(type: Delete) { delete rootProject.buildDir } ```
null
CC BY-SA 4.0
null
2022-10-07T12:55:14.447
2022-10-07T12:55:14.447
null
null
11,667,407
null
73,987,718
2
null
69,381,312
-1
null
Recommend using a previous version of python (e.g 3.8 pr 3.9) in a virtualenv rather than reverting your python on your root system. ``` virtualenv --python="/YOUR PATH/python3.9" "name of your env" ```
null
CC BY-SA 4.0
null
2022-10-07T13:14:19.697
2022-10-07T13:14:19.697
null
null
9,244,294
null
73,987,924
2
null
71,123,313
0
null
To answer your question: you need to adjust the `index.html` file within the dbt package. Each time you run `dbt docs generate` it copies the `index.html` folder from the dbt package. If you're in a virtual environment, the file path would be similar to `~\dbt_project_dir\venv\Lib\site-packages\dbt\include\index.html` Before doing that, however, you'll want to let dbt know that there is a directory with files in it that you'd like to include. Following the pattern described [here](https://docs.getdbt.com/reference/resource-properties/description): you want to configure your dbt_project.yml with `asset-paths: ["assets"]`. Once you do that, then you can edit the aforementioned `index.html` file with a line similar to the below: ``` <link rel='stylesheet' href='./assets/yourcssstyles.css' /> ```
null
CC BY-SA 4.0
null
2022-10-07T13:30:02.940
2022-10-07T13:30:02.940
null
null
6,820,436
null
73,987,952
2
null
72,263,362
0
null
For evryone who is also struggeling with that phenomen. The steps are: 1. Add Series to Chart 2. Add Axis to Chart 3. Attach Axis to Series (e.g.for loop) Maybe I misinterpreted your solution. For a longer while i thougt this were an option to apend attach the axis ;-) My changes in the given Example ``` ... chart.addAxis(x_axis, QtCore.Qt.AlignmentFlag.AlignBottom) chart.addAxis(y_axis, QtCore.Qt.AlignmentFlag.AlignLeft) chart.addSeries(self.series_media) chart.addSeries(self.series_maxima) chart.addSeries(self.series_minima) for series in chart.series(): series.attachAxis(x_axis) series.attachAxis(y_axis) ... ```
null
CC BY-SA 4.0
null
2022-10-07T13:32:08.103
2022-10-07T13:35:49.190
2022-10-07T13:35:49.190
14,219,610
14,219,610
null
73,988,248
2
null
28,997,381
0
null
My problem was that I, in the script task, tried to fetch data like this: ``` public void Main() { using (var connection = Dts.Connections["localhost.Test"].AcquireConnection(Dts.Transaction) as SqlConnection) { connection.Open(); var command = new SqlCommand("select * from Table;", connection); var reader = command.ExecuteReader(); while (reader.Read()) { MessageBox.Show($"{reader[0]} {reader[1]} {reader[2]}"); } } Dts.TaskResult = (int)ScriptResults.Success; } ``` However, my connection is of the type OLE DB, and therefore I needed to connect to it like this instead: ``` public void Main() { var connectionString = Dts.Connections["localhost.Test"].ConnectionString; using (var connection = new OleDbConnection(connectionString)) { connection.Open(); var command = new OleDbCommand("select * Table;", connection); var reader = command.ExecuteReader(); while (reader.Read()) { MessageBox.Show($"{reader[0]} {reader[1]} {reader[2]}"); } } Dts.TaskResult = (int)ScriptResults.Success; } ``` Notice that I'm using `OleDbConnection` here.
null
CC BY-SA 4.0
null
2022-10-07T13:53:27.523
2022-10-07T13:53:27.523
null
null
595,990
null
73,988,302
2
null
73,398,689
0
null
You loop throught the selecting rows and the you get the value of the row's value. Also, you will need to enable the option "MultiSelect". In this code there are 2 ways to select the cell, with fieldname or with column_id. ``` For Each rowHandle As Integer In GridView1.GetSelectedRows 'Dim valueOption1 As String = gridView1.GetRowCellValue(selectedRowHandles(rowHandle), "FieldName") 'Dim valueOption2 As String = gridView1.GetRowCellValue(selectedRowHandles(rowHandle), GridView1.Columns(column_id)) Next ```
null
CC BY-SA 4.0
null
2022-10-07T13:58:19.827
2022-10-08T06:29:03.250
2022-10-08T06:29:03.250
8,568,873
8,568,873
null
73,988,306
2
null
39,108,722
0
null
Depending on the extension, opening the popup HTML separately might not be feasible. I suggest setting the non-standard [CSS zoom](https://developer.mozilla.org/en-US/docs/Web/CSS/zoom) directly for the extension's popup: 1. Open the extension's popup and right-click. 2. Select Inspect to open the Chrome Developer Tools. 3. Select the html tag in the Elements tab, and add to the styles the zoom property with the desired value. To zoom out, use a value < 1 (e.g., 0.75).
null
CC BY-SA 4.0
null
2022-10-07T13:58:32.053
2022-10-07T13:58:32.053
null
null
19,358,214
null
73,988,790
2
null
73,964,321
0
null
One way to fix the code 1. Remove .toString() from var announce = named_values["Choose announcement outlet"].toString();. Rationale: There is no need to convert an Array into a string for this case. 2. Instead of switch use if's, more specifically, add one if for each case clause, using an expression to test if the case label is included in announce. Example: Replace case "School Intercom Announcement": by if(announce.includes("School Intercom Announcement")){ // put here the case clause, don't include break; // Add the following line before the closing `}` of the if statement MailApp.sendEmail(email, subject, message); } Rationale: It's easier to implement the required control logic using if and Array.prototype.includes rather than doing it using switch.
null
CC BY-SA 4.0
null
2022-10-07T14:35:13.033
2022-10-07T17:05:02.607
2022-10-07T17:05:02.607
1,595,451
1,595,451
null
73,988,810
2
null
54,616,049
1
null
May be you can use scipy ``` from scipy.spatial.transform import Rotation ### first transform the matrix to euler angles r = Rotation.from_matrix(rotation_matrix) angles = r.as_euler("zyx",degrees=True) #### Modify the angles print(angles) angles[0] += 5 #### Then transform the new angles to rotation matrix again r = Rotation.from_euler("zyx",angles,degrees=True) new_rotation_matrix = new_r.as_matrix() ```
null
CC BY-SA 4.0
null
2022-10-07T14:36:21.657
2022-10-07T14:36:21.657
null
null
3,040,893
null
73,988,946
2
null
29,824,763
0
null
In your DC Config screen, it looks like you are editing the WAP server properties to delegate to the WAP SPNs. For constrained kerberos delegation you should be delegating to the webapp2 spn on your webapp2 server. See [https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn280943(v=ws.11)](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn280943(v=ws.11)) for a good example to follow.
null
CC BY-SA 4.0
null
2022-10-07T14:47:02.593
2022-10-07T14:47:02.593
null
null
2,216,742
null
73,989,321
2
null
73,989,048
0
null
ContentControl works properly with data it has, but you give it wrong data. you should bind ContentControl.Content to ListBox.SelectedItem: ``` <Window.Resources> <DataTemplate x:Key="DetailTemplate"> ... </DataTemplate> </Window.Resources> <StackPanel> <TextBlock FontFamily="Verdana" FontSize="11" Margin="5,15,0,10" FontWeight="Bold">My Friends:</TextBlock> <ListBox Width="200" IsSynchronizedWithCurrentItem="True" Name="listBoxMyFriends" /> <TextBlock FontFamily="Verdana" FontSize="11" Name="textBlockMyFriends" Margin="5,15,0,5" FontWeight="Bold">Information:</TextBlock> <ContentControl Content="{Binding Path=SelectedItem, ElementName=listBoxMyFriends}" ContentTemplate="{StaticResource DetailTemplate}"/> </StackPanel> ``` resource `<local:Person x:Key="MyFriends" />` is redundant. it is just empty instance of Person class, not present in collection. so no reason to display it. data for display is set in code-behind (`listBoxMyFriends.ItemsSource = person;`)
null
CC BY-SA 4.0
null
2022-10-07T15:15:50.270
2022-10-07T17:02:12.967
2022-10-07T17:02:12.967
1,506,454
1,506,454
null
73,989,377
2
null
72,633,554
2
null
There are a couple of things going on here. First, the Compose compiler does not automatically memoize lambdas that capture [unstable types](https://github.com/androidx/androidx/blob/androidx-main/compose/compiler/design/compiler-metrics.md#classes-that-are-unstable). Your ViewModel is an unstable class and as such capturing it by using it inside the onClick lambda means your `onClick` will be recreated on every recomposition. Because the lambda is being recreated, the inputs to `CCompose` are not equal across recompositions, therefore `CCompose` is recomposed. This is the current behaviour of the Compose compiler but it is very possible this will change in the future as we know this is a common situation we could do better in. If you want to workaround this behaviour, you can memoize the lambda yourself. This could be done by remembering it in composition e.g. ``` val cComposeOnClick = remember(viewModel) { { viewModel.increaseCount() } } CCompose(onClick = cComposeOnClick) ``` or change your ViewModel to have a lambda rather than a function for increaseCount. ``` class MyViewModel { val increaseCount = { ... } } ``` or you could technically annotate your ViewModel class with @Stable but I probably wouldn't recommend this because maintaining that stable contract correctly would be quite difficult. Doing either of these would allow `CCompose` to be skipped. But I would also like to mention that if `CCompose` is just a small composable then 1 extra recomposition probably doesn't actually have much effect on the performance of your app, you would only apply these fixes if it was actually causing you an issue. Stability is quite a large topic, I would recommend reading [this post](https://medium.com/androiddevelopers/jetpack-compose-stability-explained-79c10db270c8) for more info.
null
CC BY-SA 4.0
null
2022-10-07T15:20:35.360
2022-10-07T15:43:39.193
2022-10-07T15:43:39.193
616,971
616,971
null
73,989,654
2
null
73,869,101
0
null
Are you asking about how to customize the Monaco editor autocomplete feature? Maybe these links will help: [https://microsoft.github.io/monaco-editor/api/modules/monaco.languages.html](https://microsoft.github.io/monaco-editor/api/modules/monaco.languages.html) [Where is the monaco-editor autocompletion located?](https://stackoverflow.com/questions/57921084/where-is-the-monaco-editor-autocompletion-located) [monaco editor based namespace auto complete](https://stackoverflow.com/questions/51536492/monaco-editor-based-namespace-auto-complete)
null
CC BY-SA 4.0
null
2022-10-07T15:45:44.330
2022-10-07T15:45:44.330
null
null
10,792,097
null
73,989,937
2
null
30,446,497
0
null
You are placing the text into the column instead of new row. firstly create 2 rows for each row and then place the text into other row. And you must update their visibility by selecting by the id of the row instead of id of the text ``` <div class="row"> <div class="row"> <!-- Visible row --> <div class="cell">Testentry</div> <div class="cell">Testentry</div> <div class="cell">Testentry</div> <div class="cell">Testentry</div> <div class="cell">Testentry</div> <div class="cell">Testentry</div> <div class="cell"> <a href="#" class="show_hide" id="1">Show More</a> <a href="#" class="hide_show" id="1">Hide</a> </div> </div> <div class="row" id="1"> <div class="productDescription">This Content will show up</div> </div> </div> ```
null
CC BY-SA 4.0
null
2022-10-07T16:13:07.563
2022-10-07T16:13:07.563
null
null
13,352,437
null
73,989,954
2
null
73,988,815
2
null
You need to add the `lineItems` association in the request body of your API request. Same for the `deliveries` association and so on. ``` { "associations": { "lineItems": [], "deliveries": [] } } ```
null
CC BY-SA 4.0
null
2022-10-07T16:14:54.230
2022-10-07T16:20:05.420
2022-10-07T16:20:05.420
8,556,259
8,556,259
null
73,990,064
2
null
73,989,353
0
null
> I did not see an immediate drawback of actually implementing this method (only a rather small extra computation cost for separately adding that extra term). I think you too easily discount the importance of the "small extra computation cost". The first technique you describe requires two additions and two multiplications per position update. The second requires two additions and four multiplications, for 50% more arithmetic operations. In practice, the cost increase actually observed would probably be less than 50%, both because position computations, though prominent, are not the only ones performed by the engine, and also because the processor might not need to perform all the multiplications and additions as discrete operations. Nevertheless, I see no reason to expect the observed cost increase to be so low as to be negligible. The typical physics engine cares very much about how many frames it can crank out per unit time, so as long as the resulting simulation is sufficiently realistic, I would expect the cheaper alternative to be chosen every time. --- Supposing that the time step is not constant, but as a practical matter, that's a necessary assumption for most engines.
null
CC BY-SA 4.0
null
2022-10-07T16:27:50.060
2022-10-07T16:27:50.060
null
null
2,402,272
null
73,990,108
2
null
73,925,157
0
null
This error could occur if the `ts-node` version is < 10.3.0. As a workaround, you can set the seed command in your `package.json` as ``` seed: tsc prisma/seed.ts && cat prisma/seed.js | node --input-type=\"commonjs\" && rm prisma/seed.js ``` This should fix the issue.
null
CC BY-SA 4.0
null
2022-10-07T16:31:05.407
2022-10-07T16:31:05.407
null
null
4,154,062
null
73,990,319
2
null
73,990,243
0
null
@Abjiji Das Please pin `importlib-metadata<5.0.0`, this is an issue from `fsspec` side and the older kedro does not have an upper bound for it. See details here: [https://github.com/kedro-org/kedro/issues/1895](https://github.com/kedro-org/kedro/issues/1895)
null
CC BY-SA 4.0
null
2022-10-07T16:52:18.333
2022-10-07T16:52:18.333
null
null
9,957,897
null
73,990,732
2
null
72,522,765
0
null
Check the version on the top, this happened to me when I uninstalled the editor and installed a previous version. There's a drop down menu where you can select the correct editor version.
null
CC BY-SA 4.0
null
2022-10-07T17:34:52.583
2022-10-07T17:34:52.583
null
null
20,186,356
null
73,990,726
2
null
73,990,503
0
null
Data is loaded from Firestore (and most modern cloud APIs) asynchronously, because it may needs to come from the network and we can't block your code (and your users) while waiting for it. If we change the print statements a bit, and format the code, it'll be much easier to see what's going on: ``` String? getLikecount(tresc) { String? likeCount; FirebaseFirestore.instance .collection('Posty') .where('Tresc', isEqualTo: tresc) .get() .then((value) => value.docs.forEach((element) async { var id = element.id; final value = await FirebaseFirestore.instance .collection('Posty') .doc(id) .get(); likeCount = value.data()!['likeCount'].toString(); print('In then: $likeCount'); })); print('After then: $likeCount'); return likeCount; } ``` If you run this, you'll see it outputs: > After then: nullIn then: 0 This is probably not what you expected, but it explains perfectly why you don't get a result. By the time your `return likeCount` runs, the `likeCount = value.data()!['likeCount'].toString()` hasn't executed yet. The solution is always the same: any code that needs the data from the database has to be inside the `then` handler, be called from there, or be otherwise synchronized. In Flutter it is most common to use `async` and `await` for this. The key thing to realize is that you can't return something that hasn't been loaded yet. With `async`/`await` you function becomes: ``` Future<String?> getLikecount(tresc) { String? likeCount; var value = await FirebaseFirestore.instance .collection('Posty') .where('Tresc', isEqualTo: tresc) .get(); for (var doc in value.docs) { var id = element.id; final value = await FirebaseFirestore.instance .collection('Posty') .doc(id) .get(); likeCount = value.data()!['likeCount'].toString(); print('In then: $likeCount'); })); print('After then: $likeCount'); return likeCount; } ``` Now your code returns a `Future<String?>` so a value that at some point will hold the string. When calling `getLikecount` you will now need to use `then` or `await` to handle the `Future`, and if you want to show the count in the UI you will have to store it in the `State` of a `StatefulWidget`.
null
CC BY-SA 4.0
null
2022-10-07T17:34:22.557
2022-10-07T17:34:22.557
null
null
209,103
null
73,990,905
2
null
73,976,281
0
null
Ok I found my own answers and I will post my solution for anybody who is also stuck: ``` import cv2 import numpy as np import math from scipy.spatial.transform import Rotation def focalMM_to_focalPixel( focalMM, pixelPitch ): f = focalMM / pixelPitch return f # Read Image im = cv2.imread("assets/cameraView.jpg"); size = im.shape imageWidth = size[1] imageHeight = size[0] imageSize = [imageWidth, imageHeight] points_2D = np.array([ (750.393882, 583.560379), (1409.44155, 593.845944), (788.196876, 1289.485585), (1136.729733, 1317.203244) ], dtype="double") points_3D = np.array([ (-4.220791, 25.050909, 9.404016), (4.163141, 25.163363, 9.5773660), (-2.268313, 18.471558, 10.948839), (2.109119, 18.56548, 10.945459) ]) focalLengthMM = 100 pixelPitch = 0.01171874865566988 fLength = focalMM_to_focalPixel( focalLengthMM, pixelPitch ) print("focalLengthPixel", fLength) K = np.array([(fLength, 0, imageWidth/2), (0, fLength, imageHeight/2), (0, 0, 1)]) distCoeffs = np.zeros((5,1)) success, rvecs, tvecs = cv2.solvePnP(points_3D, points_2D, K, distCoeffs, flags=cv2.SOLVEPNP_ITERATIVE) np_rodrigues = np.asarray(rvecs[:,:],np.float64) rmat = cv2.Rodrigues(np_rodrigues)[0] camera_position = -np.matrix(rmat).T @ np.matrix(tvecs) #Test the solvePnP by projecting the 3D Points to camera projPoints = cv2.projectPoints(points_3D, rvecs, tvecs, K, distCoeffs)[0] for p in points_2D: cv2.circle(im, (int(p[0]), int(p[1])), 3, (0,255,0), -1) for p in projPoints: cv2.circle(im, (int(p[0][0]), int(p[0][1])), 3, (255,0,0), -1) cv2.imshow("image", im) cv2.waitKey(0) r = Rotation.from_rotvec([rvecs[0][0],rvecs[1][0],rvecs[2][0]]) rot = r.as_euler('xyz', degrees=True) tx = camera_position[0][0] ty = camera_position[1][0] tz = camera_position[2][0] rx = round(180-rot[0],5) ry = round(rot[1],5) rz = round(rot[2],5) ```
null
CC BY-SA 4.0
null
2022-10-07T17:50:28.043
2022-10-07T17:50:28.043
null
null
20,174,580
null
73,990,910
2
null
73,990,882
1
null
You should enclose file names that contain space in quotes or escape the space with `\`
null
CC BY-SA 4.0
null
2022-10-07T17:50:56.893
2022-10-07T17:50:56.893
null
null
812,912
null
73,990,956
2
null
73,989,832
4
null
The FlutterFire libraries work by wrapping the native SDKs for Firebase's primary supported platforms: iOS (now also macOS), Android and Web. While Flutter allows you to build Windows and Linux desktop apps, Firebase does not have SDKs for those platforms. Even on its products where Firebase offers some limited support (through its C++/Unity SDKs), the FlutterFire libraries don't wrap those SDKs at the moment. If you want to use Firebase in your Flutter app for Windows and/or Linux, you'll have to either wrap the [REST APIs](https://firebase.google.com/docs/reference/rest) of the Firebase products you want to use yourself, or use a library that wraps the REST API already. An example of this is the [firedart library](https://pub.dev/packages/firedart) that provides basic support for Authentication and Firestore, but there are probably others.
null
CC BY-SA 4.0
null
2022-10-07T17:55:35.390
2022-10-07T17:55:35.390
null
null
209,103
null
73,991,092
2
null
73,991,046
0
null
I guess you need to replace by in your load function. Btw, CS50 is a great course. I completed it about a month ago.
null
CC BY-SA 4.0
null
2022-10-07T18:07:25.293
2022-10-07T18:08:46.250
2022-10-07T18:08:46.250
20,186,344
20,186,344
null
73,991,170
2
null
73,990,877
0
null
Try regular expressions at each line you parse, and fill your dictionary depending on what type of line this is, like so: ``` d = {} with open("f.txt") as f: channel = None for l in f.readlines(): # If channel line format is found match_line = re.findall(r"Channel \d*", l) if match_line: channel = match_line[0] d[channel] = {} # If program format is found match_program = re.findall(r"(\d{1,2}:\d{1,2}-\d{1,2}:\d{1,2}) (.*$)", l) if match_program: d[channel][match_program[0][1]] = match_program[0][0] ``` `d` equals to: ``` { "Channel 1": { "Children’s program": "12:30-14:00", "Afternoon News": "17:00-19:00", "Morning News": "8:00-9:00" }, "Channel 2": { "National Geographic": "19:30-21:00", "Comedy movies": "14:00-15:30" } } ```
null
CC BY-SA 4.0
null
2022-10-07T18:13:54.490
2022-10-07T18:13:54.490
null
null
19,992,892
null
73,991,215
2
null
73,990,773
0
null
Maybe you want something like this: ``` brk <- c(-15, -10, -5, 0, 1, 2, Inf) library(ggplot2) library(plotly) library(scales) p <- df %>% filter(continent == 'Europe' & date < '2020-05-30') %>% # filtered by date range because too much ggplot(aes(x = date, y = location, fill = PC1)) + geom_tile() + scale_fill_gradientn(colours = hue_pal()(7), breaks = brk) + theme(axis.text.x = element_text(angle = 60, hjust = 1)) ggplotly(p) ``` Output: [](https://i.stack.imgur.com/UD4QV.png)
null
CC BY-SA 4.0
null
2022-10-07T18:18:30.823
2022-10-07T18:18:30.823
null
null
14,282,714
null