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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
74,194,943 | 2 | null | 74,194,391 | 0 | null | From looking at the [code](https://github.com/algolia/firestore-algolia-search/blob/main/extension.yaml#L70-L80) for the field it seems that you can specify a path to any collection. Since your announcements are in a top-level collection, the value would be `announcements`.
If you want to target a subcollection, that'd be three path segments, e.g. `announcements/announcements/list`. The second `announcements` in there is the ID of the document whose `list` subcollection to synchronize to Algolia.
| null | CC BY-SA 4.0 | null | 2022-10-25T13:36:51.010 | 2022-10-25T14:25:28.900 | 2022-10-25T14:25:28.900 | 209,103 | 209,103 | null |
74,195,108 | 2 | null | 26,889,970 | 1 | null | Looks like you are trying to run your tests without actually activating your .
The solution is quite simple, just add `@SpringBootTest` annotation with a required config.
Here is an example:
```
@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) // Run the server for testing.
public class mockTest {
@Autowired
// Should work now
}
```
| null | CC BY-SA 4.0 | null | 2022-10-25T13:46:43.687 | 2022-10-25T13:46:43.687 | null | null | 13,871,107 | null |
74,195,119 | 2 | null | 74,193,551 | 0 | null | Schematically:
```
WITH
cte1 AS (
SELECT *, user_from as user_id FROM messages
UNION ALL
SELECT *, user_to FROM messages
),
cte2 AS (
SELECT *, ROW_NUMBER() OVER (PARTITION BY user_id ORDER BY created_at DESC) rn
FROM cte1
)
SELECT *
FROM users
JOIN cte2 USING (user_id)
WHERE rn = 1
```
| null | CC BY-SA 4.0 | null | 2022-10-25T13:47:20.113 | 2022-10-25T13:47:20.113 | null | null | 10,138,734 | null |
74,195,372 | 2 | null | 74,195,104 | 3 | null | You can't put java classes in `src/main/resources`. Java classes go in `src/main/java`.
| null | CC BY-SA 4.0 | null | 2022-10-25T14:05:18.090 | 2022-10-25T14:05:18.090 | null | null | 419,705 | null |
74,195,456 | 2 | null | 74,195,455 | 0 | null | My current solution is based on `flameshot` screen capture tool (image-only). It has `print-geometry` option:
> -g, --print-geometry Print geometry of the
selection in the format W H X Y.
So you can get size and offset from the output:
```
$ flameshot gui -g
838x394+590+361
```
---
## Solution itself
Install `flameshot`:
```
sudo apt install flameshot
```
Create script:
```
nano record_screen.sh
```
Content:
```
#!/bin/bash
homedir=$( getent passwd "$USER" | cut -d: -f6 )
dir="$homedir/Videos/screen records"
params=$(flameshot gui -g)
array=(`echo $params | sed 's/+/\n/g'`)
now=`date "+%F_%H-%M-%S"`
filename="${dir}/${now}.mp4"
ffmpeg -video_size "${array[0]}" -framerate 25 -f x11grab -i :1+"${array[1]}","${array[2]}" "${filename}"
```
Run:
```
bash record_screen.sh
```
It will ask you to select area:

And then will start recording

`q`
Result will be placed to:
`~/Videos/screen records/`
---
## Open file
Also you can add this command to script into the end if you want to open directory with video file:
```
xdg-open "${dir}"
```
Or open file itself:
```
xdg-open "${filename}"
```
| null | CC BY-SA 4.0 | null | 2022-10-25T14:11:17.923 | 2022-12-07T19:51:47.787 | 2022-12-07T19:51:47.787 | 7,744,106 | 7,744,106 | null |
74,195,531 | 2 | null | 74,195,092 | 0 | null | I got the issue:
```
if (isset($_POST['updateAtt']))
{
foreach ($_POST['attendance_status'] as $ids => $attendance_status) {
$ids = $_POST['attendance_id'][$id];
echo $ids . " " . $attendance_status . " ". "<br>";
}
```
Actually, I declared the id variable in foreach and then when I am getting the value of attendance_id I used it again. That is why it had only one value.
| null | CC BY-SA 4.0 | null | 2022-10-25T14:16:29.937 | 2022-10-28T12:30:28.280 | 2022-10-28T12:30:28.280 | 8,864,226 | 20,262,089 | null |
74,195,727 | 2 | null | 67,526,549 | 1 | null | The excepted answer is correct. I'd like to add that it is not necessary to use `REG_NONE`. To register a default application for a file extension by key `OpenWithProgIds` it is also fine to use type `binary` and to omit the `ValueData`. Also I'm adding the flag `uninsdeletkeyifempty` here.
```
Root: HKA; Subkey: "Software\Classes\{#MyAppAssocExtmidi}\OpenWithProgIds"; \
ValueType: binary; ValueName: "WMP11.AssocFile.MIDI" ; \
Flags: uninsdeletevalue uninsdeletekeyifempty
```
Tested with Win 10 1809.
| null | CC BY-SA 4.0 | null | 2022-10-25T14:29:43.553 | 2022-10-25T14:29:43.553 | null | null | 7,450,302 | null |
74,196,002 | 2 | null | 60,160,453 | 0 | null | In my case another extension seems to be the problem. Check if you have any additional Git extensions installed. If so uninstall them and reload your VS Code window.
In my Case "Git Graph" seemed to interfere for some reason.
| null | CC BY-SA 4.0 | null | 2022-10-25T14:50:21.210 | 2022-10-25T14:50:21.210 | null | null | 8,298,187 | null |
74,196,195 | 2 | null | 74,196,147 | 1 | null | This could be achieved by fixing the limits of the scale at the lower end using `scale_y_continuous(limits = c(0, NA))`:
```
dat <- data.frame(date = c(1:5, 1:5),
type = rep(c("A", "B"), each = 5),
value = c(4500, 4800, 4600, 4900, 4700,
1500, 1510, 1500, 1400, 1390)
)
library(ggplot2)
dat |>
ggplot(aes(date, value, group = type)) +
geom_line() +
scale_y_continuous(limits = c(0, NA)) +
facet_wrap(~type, scales = "free_y")
```

| null | CC BY-SA 4.0 | null | 2022-10-25T15:04:12.523 | 2022-10-25T15:04:12.523 | null | null | 12,993,861 | null |
74,196,393 | 2 | null | 74,190,552 | 0 | null | Oracle has a helpful tutorial, [Creating a GUI With Swing](https://docs.oracle.com/javase/tutorial/uiswing/index.html). Skip the Learning Swing with the NetBeans IDE section. Pay particular attention to the [Laying Out Components Within a Container](https://docs.oracle.com/javase/tutorial/uiswing/layout/index.html) section.
As I said in my comment, you create two `JPanels`. Here's an example.
[](https://i.stack.imgur.com/02eHA.png)
Here's the complete runable code to create this example.
```
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import javax.swing.BorderFactory;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
public class BorderLayoutExampleGUI implements Runnable {
public static void main(String[] args) {
SwingUtilities.invokeLater(new BorderLayoutExampleGUI());
}
@Override
public void run() {
JFrame frame = new JFrame("BorderLayout Example");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.add(createButtonPanel(), BorderLayout.NORTH);
frame.add(createMainPanel(), BorderLayout.CENTER);
frame.pack();
frame.setLocationByPlatform(true);
frame.setVisible(true);
}
private JPanel createButtonPanel() {
JPanel panel = new JPanel();
panel.setBorder(BorderFactory.createEmptyBorder(0, 5, 5, 5));
panel.setPreferredSize(new Dimension(600, 100));
panel.setBackground(Color.blue);
// Add the buttons and text fields
return panel;
}
private JPanel createMainPanel() {
JPanel panel = new JPanel();
panel.setBorder(BorderFactory.createEmptyBorder(0, 5, 5, 5));
panel.setPreferredSize(new Dimension(600, 380));
panel.setBackground(Color.red);
// Add the drawing code
return panel;
}
}
```
| null | CC BY-SA 4.0 | null | 2022-10-25T15:17:46.853 | 2022-10-25T15:17:46.853 | null | null | 300,257 | null |
74,196,400 | 2 | null | 28,249,036 | 1 | null | Here i made my apk name
> branchName_versionName_versionCode.apk
example
> development_1.5.3_10.apk
get branch name from here
```
def getBranchName = { ->
try {
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'rev-parse', '--abbrev-ref', 'HEAD'
standardOutput = stdout
}
println "Git Current Branch = " + stdout.toString()
return stdout.toString().trim()
}
catch (Exception e) {
println "Exception = " + e.getMessage()
return null;
}
}
```
then get your variants from here and set file name
```
applicationVariants.all { variant ->
variant.outputs.each { output ->
def appId = variant.applicationId
def versionName = variant.versionName
def versionCode = variant.versionCode
def flavorName = variant.flavorName // e. g. free
def buildType = variant.buildType // e. g. debug
def variantName = variant.name // e. g. freeDebug
def apkName = getBranchName() + '_' + versionName + '_' + versionCode + '.apk';
output.outputFileName = apkName
}
}
```
Put this script in `android` tag in `app/build.gradle` file
```
android {
def getBranchName ................
..................
..................
applicationVariants.all ..........
..................
..................
}
```
| null | CC BY-SA 4.0 | null | 2022-10-25T15:18:14.863 | 2022-10-25T15:18:14.863 | null | null | 5,829,679 | null |
74,196,703 | 2 | null | 56,207,651 | 0 | null | if you are training your model from scratch, do not forget about the weight initialization - [some example is here](https://discuss.pytorch.org/t/pytorch-weight-initialization-for-alexnet-and-vgg-model/108785)
| null | CC BY-SA 4.0 | null | 2022-10-25T15:39:51.330 | 2022-10-25T15:39:51.330 | null | null | 7,180,476 | null |
74,197,180 | 2 | null | 71,595,777 | 0 | null | Try using `dbFetch` rather than `fetch`.
res <- dbSendQuery(wrds, "SELECT date, dji FROM djones.djdaily")
data <- dbFetch(res, n = -1)
| null | CC BY-SA 4.0 | null | 2022-10-25T16:16:20.037 | 2022-11-03T23:39:25.693 | 2022-11-03T23:39:25.693 | 10,816,734 | 10,816,734 | null |
74,197,204 | 2 | null | 74,196,969 | 1 | null | You're confusing `uses` with checking out a repository. `uses` indicates an action to use, with the part after the `@` specifying the version of the action. To check out a specific branch of your repo, you can use the `checkout` action with the `ref` parameter:
```
steps:
- uses: actions/[email protected]
with:
ref: dev-firefox
```
| null | CC BY-SA 4.0 | null | 2022-10-25T16:17:49.730 | 2022-10-25T16:17:49.730 | null | null | 3,266,847 | null |
74,197,486 | 2 | null | 65,561,436 | 0 | null | In my case Pylance was ignoring imports and variables. Restarting the Jupyter kernel solved it.
| null | CC BY-SA 4.0 | null | 2022-10-25T16:39:17.443 | 2022-10-25T16:39:17.443 | null | null | 14,508,393 | null |
74,198,693 | 2 | null | 74,198,548 | 0 | null | It sounds like you want to (a) remove null rows (b) remove rows where the contents are not numeric (c) separate the remaining rows into two columns from alternating rows
To do this in easy steps:
```
let Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Filtered Rows" = Table.SelectRows(Source, each try [Column1] <> null and Number.From([Column1])>0 otherwise false),
#"Added Index" = Table.AddIndexColumn(#"Filtered Rows", "Index", 1, 1, Int64.Type),
#"Inserted Modulo" = Table.AddColumn(#"Added Index", "Modulo", each Number.Mod([Index], 2), type number),
#"Added Custom1" = Table.AddColumn(#"Inserted Modulo", "Custom", each if [Modulo]=1 then [Index] else null),
#"Filled Down" = Table.FillDown(#"Added Custom1",{"Custom"}),
#"Removed Columns" = Table.RemoveColumns(#"Filled Down",{"Index"}),
#"Pivoted Column" = Table.Pivot(Table.TransformColumnTypes(#"Removed Columns", {{"Modulo", type text}}, "en-US"), List.Distinct(Table.TransformColumnTypes(#"Removed Columns", {{"Modulo", type text}}, "en-US")[Modulo]), "Modulo", "Column1", List.Sum),
#"Removed Columns1" = Table.RemoveColumns(#"Pivoted Column",{"Custom"})
in #"Removed Columns1"
```
[](https://i.stack.imgur.com/U7nMQ.jpg)
| Column1 |
| ------- |
| A123 |
| B1234 |
| 1 |
| 5 |
| A1234 |
| |
| 6 |
| 13 |
| 25 |
| |
| |
| A1234 |
| 38 |
| null | CC BY-SA 4.0 | null | 2022-10-25T18:35:08.470 | 2022-10-25T19:23:14.520 | 2022-10-25T19:23:14.520 | 9,264,230 | 9,264,230 | null |
74,198,982 | 2 | null | 74,198,651 | 0 | null | A simple way would be to store the dataframes in a dictionary with the city names as keys:
```
import pandas as pd
data = zip(['Amsterdam', 'Amsterdam', 'Barcelona'],[1,22,333])
df = pd.DataFrame(data, columns=['Ciudad', 'data'])
new_dfs = dict(list(df.groupby('Ciudad')))
```
Calling `new_dfs['Amsterdam']` will then give you the dataframe:
| | Ciudad | data |
| | ------ | ---- |
| 0 | Amsterdam | 1 |
| 1 | Amsterdam | 22 |
| null | CC BY-SA 4.0 | null | 2022-10-25T19:01:21.513 | 2022-10-25T19:01:21.513 | null | null | 11,380,795 | null |
74,199,496 | 2 | null | 62,821,244 | 0 | null | A fully working app:
```
# ReverseSpinbox.py 2022-10-25 4:43:56 PM
#
# Based on 'How to reverse spinbox selection in PyQt5?'
# https://stackoverflow.com/questions/62821244/how-to-reverse-spinbox-selection-in-pyqt5
# 'A possible [ed: now verified] solution is to override the stepBy() and stepEnabled() methods:'
#
# Also based on 'PyQt5 - Creating String Spin Box'
# https://www.geeksforgeeks.org/pyqt5-creating-string-spin-box/
import sys
from PyQt5.QtWidgets import *
from PyQt5 import QtCore, QtGui
from PyQt5.QtGui import *
from PyQt5.QtCore import *
class MyAppWindow( QMainWindow ) :
def __init__( self ) :
super().__init__()
self.setWindowTitle( 'Creating Reverse String Spin Box ' )
self.setWindowIcon( QIcon( 'Python_and_Qt.PNG' ) )
self.resize( 600, 400 )
self.move( QApplication.desktop().screen().rect().center() - self.rect().center() )
self.UiComponents()
self.show()
def UiComponents( self ) :
#string_pin_box = StringBox( self )
string_revSpinBox = ReverseSpinBox( self )
string_revSpinBox.setGeometry( 100, 100, 200, 40 )
#end MyAppWindow class
class ReverseSpinBox( QSpinBox ) :
def __init__( self, parent = None ) :
super( QSpinBox, self ).__init__( parent )
strings = [ 'A', 'B', 'C', 'D', 'E', 'F', 'G' ]
# Make the spinbox items strings.
self.SetStrings( strings )
# Define method SetStrings similarly to the setValue method.
def SetStrings( self, strings ) :
#strings = list( strings ) # 'strings' is already a list.
self.strings_tuple = tuple( strings )
# A QSpinBox/ReverseSpinBox's items' indices.
self.setRange( 0, len( strings )-1 )
# Overide the QSpinBox 'textFromValue' method.
# Maps 'strings' integer indices to its string values.
def textFromValue( self, int_index ) :
# Returning a string associated to the dictionary's item key value.
return self.strings_tuple[ int_index ]
# Overide the QSpinBox 'stepEnabled' method.
def stepEnabled( self ) :
if self.wrapping() or self.isReadOnly() :
return super().StepEnabled()
spinbox_operation_flags = QAbstractSpinBox.StepNone
# Set according to whether the up or down button has been pushed (?)
if self.value() >= self.minimum() :
spinbox_operation_flags |= QAbstractSpinBox.StepUpEnabled
if self.value() <= self.maximum() :
spinbox_operation_flags |= QAbstractSpinBox.StepDownEnabled
return spinbox_operation_flags
# Overide the QSpinBox 'stepEnabled' method.
# Reverse the operation of the up and down buttons.
def stepBy( self, steps ) :
return super().stepBy( -steps )
#end ReverseSpinBox class
if __name__ == "__main__" :
App = QApplication( sys.argv )
window = MyAppWindow()
sys.exit( App.exec() )
```
| null | CC BY-SA 4.0 | null | 2022-10-25T19:51:28.480 | 2022-10-25T21:37:16.030 | 2022-10-25T21:37:16.030 | 2,740,898 | 2,740,898 | null |
74,199,703 | 2 | null | 70,718,480 | 0 | null | That`s how IL2Cpp works, you are not able to get readable C# code anymore even if you will use dumper for that, idk may be there is a something that could do that, I'm not a pro at this.
Probably also `Among Us` using their custom protector as additional, that invokes methods by `token/address`, seems to mechanic as call to calli.
| null | CC BY-SA 4.0 | null | 2022-10-25T20:15:01.783 | 2022-10-28T17:52:57.980 | 2022-10-28T17:52:57.980 | 15,495,138 | 15,495,138 | null |
74,199,912 | 2 | null | 72,592,090 | 0 | null | I have same issue, my DBA found a quick-fix converting to NVARCHAR the ID in the GORM Select method, you could use:
```
// ...
if err := database.DB.Model(&models.Invoice{}).Select("CONVERT(NVARCHAR(36), ID) as ID").Where("InvNumber like ? or CustomerName like ? or Tax_Number like ? or Registration like ? or Description like ?", searchString, searchString, searchString, searchString, searchString).Count(&invoicesCount).Error; err != nil {
logs.ErrorLogger.Println(err.Error())
return c.Status(400).JSON(fiber.Map{"msg": err.Error()})
}
// ...
```
I know this is not the best way, but it works ¯\/¯
| null | CC BY-SA 4.0 | null | 2022-10-25T20:36:43.317 | 2022-10-25T20:36:43.317 | null | null | 4,556,913 | null |
74,200,935 | 2 | null | 74,199,256 | 0 | null | `window.location.replace("http://www.google.com");` only works on client-side code, in other words, when using `doGet` instead of `doPost` and `HtmlService` instead of `ContentService` and calling the Google Apps Script web app from the address bar of a web browser.
Related
- [Google Apps Script to open a URL](https://stackoverflow.com/q/10744760/1595451)- [Automatically Redirecting to a Page](https://stackoverflow.com/q/11315521/1595451)
References
- [https://developers.google.com/apps-script/guides/web](https://developers.google.com/apps-script/guides/web)- [https://developers.google.com/apps-script/guides/html](https://developers.google.com/apps-script/guides/html)
| null | CC BY-SA 4.0 | null | 2022-10-25T22:53:41.447 | 2022-10-26T01:15:58.843 | 2022-10-26T01:15:58.843 | 1,595,451 | 1,595,451 | null |
74,201,072 | 2 | null | 74,200,517 | 2 | null | As the error points out, `null` is being passed as the value of the `product` prop of the `ProductDetails` component.
Perhaps this is a transitory state. In that case, you can use the [nullish coalescing operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator) (`??`) to prevent this error:
```
const ProductDetails = ({ product, products }) => {
const { image, name, details, price } = product ?? {}; // <-- changed here
```
With such operator, when `product` is `null`, the destructuring will no longer error, and the variables `image`, `name`, etc., will be `undefined`.
| null | CC BY-SA 4.0 | null | 2022-10-25T23:12:51.740 | 2022-10-25T23:12:51.740 | null | null | 1,850,609 | null |
74,201,099 | 2 | null | 71,121,082 | 3 | null | The library can't handle spaces in your file path. If you remove the space in "2nd year" and "4th sem", it will work. I hope someone else finds this answer and it saves them the 6 hours I spent before discovering this. In my case, I have a rails project with dartsass-rails gem running on an Intel Mac, but it sounds like this is an issue at a more core level than the Rails gem. [Github issue for reference](https://github.com/sass/dart-sass/issues/1642)
| null | CC BY-SA 4.0 | null | 2022-10-25T23:18:28.807 | 2022-10-25T23:18:28.807 | null | null | 456,791 | null |
74,201,766 | 2 | null | 74,200,554 | 1 | null | i think i can give a helpful solution for you.
First, let me try to show you about how to use css selector while coding a web page.
There was more than one selector that we can use.
For this case, i should recommend you to using class selector, or maybe child selector.
```
/*With class selector*/
.hero-text{
font-family: khFont;
height: 100%;
font-size: 55px;
text-transform: capitalize;
position: absolute;
overflow: hidden;
font-weight: normal;
line-height: 58px;
}
/*With child combinator selector*/
div > .hero-text{
font-family: khFont;
height: 100%;
font-size: 55px;
text-transform: capitalize;
position: absolute;
overflow: hidden;
font-weight: normal;
line-height: 58px;
}
@font-face {
font-family: khFont;
src: url(/fonts/khFont.ttf) format('truetype');
font-weight: normal;
font-style: normal;
}
```
```
<div class="container">
<img class="croppedbanner" src="/img/SiteBanner.png" alt="Hero Banner">
<div class="hero-text">
<h1> Welcome to the site </h1>
</div>
</div>
```
For the documentation of using selector, you can read more in [this link](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors?retiredLocale=id).
And the second is, let's start to edit the class to fixing the output in the interface.
```
/*With class selector*/
.hero-text{
font-family: khFont;
height: 100%;
font-size: 55px;
text-transform: capitalize;
position: absolute;
overflow: hidden;
font-weight: normal;
line-height: 58px;
display: block;
margin: 0 auto;
text-align: center;
}
@font-face {
font-family: khFont;
src: url(/fonts/khFont.ttf) format('truetype');
font-weight: normal;
font-style: normal;
}
```
```
<div class="container">
<img class="croppedbanner" src="/img/SiteBanner.png" alt="Hero Banner">
<div class="hero-text">
<h1> Welcome to the site </h1>
</div>
</div>
```
For more details, you can read in these documentations:
- [Display Docs](https://developer.mozilla.org/en-US/docs/Web/CSS/display)- [Text Align Docs](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align)- [Margin Docs](https://developer.mozilla.org/en-US/docs/Web/CSS/margin)
Thank you
| null | CC BY-SA 4.0 | null | 2022-10-26T01:31:17.280 | 2022-10-26T01:31:17.280 | null | null | 19,972,927 | null |
74,201,868 | 2 | null | 74,097,065 | 0 | null | On the grid element (the element styled with `display: grid;`) add the style `align-items: start;`. The default value is `stretch`, which is what you’re seeing in action.
(PS. If you had included a working snippet in your question (a snippet is Stack Overflow's equivalent of a Codepen or a jsFiddle), one which demonstrated the problem, then I would have been able to include an edited snippet in my answer, one which demonstrated the solution.)
| null | CC BY-SA 4.0 | null | 2022-10-26T01:50:03.890 | 2022-10-26T01:50:03.890 | null | null | 2,518,285 | null |
74,202,312 | 2 | null | 74,191,324 | 40 | null | In your build.gradle file where "dependencies" section is paste this:
```
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.6.0'
```
in this section. And remove old strings with same text and other number versions. (in my case:
```
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.android.material:material:1.7.0'
```
). Have worked for me.
source: [https://github.com/facebook/react-native/issues/33926](https://github.com/facebook/react-native/issues/33926)
| null | CC BY-SA 4.0 | null | 2022-10-26T03:13:25.567 | 2022-10-26T03:13:25.567 | null | null | 2,997,715 | null |
74,202,425 | 2 | null | 74,201,144 | 1 | null | As @James_D pointed out, you need to move `sizeOfStack = Integer.parseInt(sizeDialog);` inside of `build.setOnAction`. You also need to move `data = new TextField[sizeOfStack] ;`.
I also moved `HBox right = new HBox(sizeOfStack);` and `border.setRight(right);`, but that may not have been necesary.
Code:
```
build.setOnAction((ActionEvent event) - > {
sizeOfStack = Integer.parseInt(sizeDialog);
data = new TextField[sizeOfStack];
create.setDisable(true);
numberText.setPromptText("Enter a number to push");
center.getChildren().addAll(numberLabel, numberText);
HBox right = new HBox(sizeOfStack);
for (int i = 0; i < sizeOfStack; i++) {
TextField text = new TextField();
data[i] = text;
right.getChildren().add(data[i]);
}
border.setRight(right);
});
```
| null | CC BY-SA 4.0 | null | 2022-10-26T03:35:33.137 | 2022-10-26T03:35:33.137 | null | null | 2,423,906 | null |
74,202,856 | 2 | null | 58,765,779 | 0 | null | I'm using ASUS TUF Gaming A15 - 8gb memory / Windows 11 Home.
I found a solution for the problem of developers who install XAMPP but having problems out of the box with Aria Engine and PhpMyAdmin pma privilege access.
Found out today that if the memory is too low, like 1gb less is free the errors show up after installation. The pma user is not showing up on the phpmyadmin database > privileges.
To maximize my ram I close all the applications and remove the Chrome running in background then restart again the installation process. I feel so frustrated and almost jump into WAMP but when I look on the phpmyadmin via browser it works perfectly fine like before on v5 - v7.
[phpMyAdmin](https://i.stack.imgur.com/7ZIKN.png)
Before it wasn't showing any pma there, but now it shows up. Hope this will helps future developers on their installation of XAMPP.
| null | CC BY-SA 4.0 | null | 2022-10-26T04:53:20.407 | 2022-10-26T04:56:49.433 | 2022-10-26T04:56:49.433 | 7,587,021 | 7,587,021 | null |
74,203,028 | 2 | null | 74,200,554 | 1 | null | It's been resolved! Turns out, in Opera, you can enable "Force Dark Pages" which I thought it would change when I clicked the setting on the page. When working with local sites, you wont be able to change the setting on the page itself, you have to go into the browser settings.
Thanks everyone for your help! :)
| null | CC BY-SA 4.0 | null | 2022-10-26T05:22:18.563 | 2022-10-26T05:22:18.563 | null | null | 20,334,322 | null |
74,203,273 | 2 | null | 74,201,523 | 0 | null | Ok, you need variables that you can use to discriminate which texture you will use. To be more specific, four variables (one per texture) which will be `1` where the texture goes, and `0` elsewhere.
We will get there. I'm taking you step by step, so this approach can be adapted to other situations and you have understanding of what is going on.
---
Let us start by… All white!
```
void fragment()
{
ALBEDO = vec3(1.0);
}
```
OK, not super useful. Let us split in two, horizontally. An easy way to do that is with the step function:
```
void fragment()
{
ALBEDO = vec3(step(0.5, UV.x));
}
```
That will be black on the left (low `x`) and white on the right (hi `x`).
By the way, if you are not sure about the orientation, output the `UV`:
```
void fragment()
{
ALBEDO = vec3(UV, 0.0);
}
```
Alright, if we wanted to flip a variable `t`, we can do `1.0 - t`. So this is white on the left (low x) and black on the right (hi x):
```
void fragment()
{
ALBEDO = vec3(1.0 - step(UV.x, 0.5));
}
```
By the way, flipping the parameters of `step` archives the same result:
```
void fragment()
{
ALBEDO = vec3(step(0.5, UV.x));
}
```
And if we wanted to do it vertically, we can work with `y`:
```
void fragment()
{
ALBEDO = vec3(step(UV.y, 0.5));
}
```
Now, to get a quadrant, we can / these. I mean, multiply them. For example:
```
void fragment()
{
ALBEDO = vec3(step(UV.y, 0.5) * step(UV.x, 0.5));
}
```
So, your quadrants look like this:
```
float q0 = step(UV.y, 0.5) * step(0.5, UV.x);
float q1 = step(UV.y, 0.5) * step(UV.x, 0.5);
float q2 = step(0.5, UV.y) * step(UV.x, 0.5);
float q3 = step(0.5, UV.y) * step(0.5, UV.x);
```
---
`UV`
We can the textures with the values we computed, so they only come out where we want them. I mean, we can use these values to mask the textures with . I mean, we multiply. Where a variable is `0` (black) you will not get anything from the texture, and where it is `1` (white) you get the texture.
That is something like this:
```
vec3 t0 = q0 * texture(texture_0, UV * 2.0).rgb;
vec3 t1 = q1 * texture(texture_1, UV * 2.0).rgb;
vec3 t2 = q2 * texture(texture_2, UV * 2.0).rgb;
vec3 t3 = q3 * texture(texture_3, UV * 2.0).rgb;
```
And we add them:
```
ALBEDO = t0 + t1 + t2 + t3;
```
---
On the other hand, if the textures don't repeat, we need to adjust the `UV`s. Why? Well, because the valid range is from `0.0` to `1.0`, but `UV * 2.0` goes from `0.0` to `2.0`...
You can output that to get an idea:
```
void fragment()
{
ALBEDO = vec3(UV * 2.0, 0.0);
}
```
I'll write that like this, if you don't mind:
```
void fragment()
{
ALBEDO = vec3(vec2(UV.x, UV.y) * 2.0, 0.0);
}
```
Which is the same. But since I'll be working on the axis separately, it helps me.
With the `UV` adjusted, it looks like this:
```
vec3 t0 = q0 * texture(texture_0, vec2(UV.x - 0.5, UV.y) * 2.0).rgb;
vec3 t1 = q1 * texture(texture_1, vec2(UV.x, UV.y) * 2.0).rgb;
vec3 t2 = q2 * texture(texture_2, vec2(UV.x, UV.y - 0.5) * 2.0).rgb;
vec3 t3 = q3 * texture(texture_3, vec2(UV.x - 0.5, UV.y - 0.5) * 2.0).rgb;
```
And again, add them:
```
ALBEDO = t0 + t1 + t2 + t3;
```
`UV`
---
Please notice that what we are doing is technically a weighted sum of the textures. Except it is done in such way that only one of them appears at any location (only one has a factor of `1` and the others have a factor of `0`). The same approach can be used to make other patterns or textures blend by using other computations for the factors (and once you are beyond using only black and white, you can also apply easing functions). You might even pick the factors by reading yet another texture.
By the way, I told you / (`a * b`) and / (`1.0 - t`). For black and white masks, this is /: `a + b - a * b`. However, if you know there is no overlap you can ignore the last part so it is just addition. So when we add the textures, is an , you can think of it in term of Venn diagrams.
| null | CC BY-SA 4.0 | null | 2022-10-26T05:59:51.233 | 2022-10-26T05:59:51.233 | null | null | 402,022 | null |
74,203,417 | 2 | null | 14,529,009 | 0 | null | I use the Ctrl+Mouse wheel like said in the docs. Perfectly quick when I share my big screen 32 inches to a peple with 15 inch laptop.
[https://www.jetbrains.com/help/rider/Zooming_in_the_Editor.html](https://www.jetbrains.com/help/rider/Zooming_in_the_Editor.html)
[](https://i.stack.imgur.com/2MlHa.png)
It is possible to increase the font size of the active tab or on all tabs.
Good luck and happy coding!
| null | CC BY-SA 4.0 | null | 2022-10-26T06:18:59.190 | 2022-10-26T06:18:59.190 | null | null | 4,890,871 | null |
74,203,487 | 2 | null | 74,203,210 | 0 | null | Running raw SQL is quite the opposite of what's EntityFramework for.
In your code, you're calling `ExecureSqlRaw` against `DBSet`, but you should execute it against `Database`, like this
```
_empDbContext.Database.ExecuteSqlRaw("...")
```
| null | CC BY-SA 4.0 | null | 2022-10-26T06:26:47.637 | 2022-10-26T08:11:39.363 | 2022-10-26T08:11:39.363 | 6,170,890 | 6,170,890 | null |
74,203,506 | 2 | null | 74,191,437 | 0 | null | The problem seems to be that you are trying to get the url before uploading the image, Here is what you can do :
```
uploadImage() async {
final _firebaseStorage = FirebaseStorage.instance;
final _imagePicker = ImagePicker();
PickedFile image;
//Check Permissions
await Permission.photos.request();
var permissionStatus = await Permission.photos.status;
if (permissionStatus.isGranted){
//Select Image
image = await _imagePicker.getImage(source: ImageSource.gallery);
var file = File(image.path);
if (image != null){
//Upload to Firebase
var snapshot = await _firebaseStorage.ref()
.child('images/imageName')
.putFile(file).onComplete;
var downloadUrl = await snapshot.ref.getDownloadURL();
setState(() {
imageUrl = downloadUrl;
// in here you can add your code to store the url in firebase database for example:
FirebaseDatabase.instance
.ref('users/$userId/imageUrl')
.set(imageUrl)
.then((_) {
// Data saved successfully!
})
.catchError((error) {
// The write failed...
});
});
} else {
print('No Image Path Received');
}
} else {
print('Permission not granted. Try Again with permission access');
}
```
source [How to upload to Firebase Storage with Flutter](https://www.educative.io/answers/how-to-upload-to-firebase-storage-with-flutter)
I hope this will be helpfull
| null | CC BY-SA 4.0 | null | 2022-10-26T06:28:35.923 | 2022-10-26T06:28:35.923 | null | null | 7,278,987 | null |
74,203,628 | 2 | null | 73,753,672 | 13 | null | I had a same error and I did install .Net with microsoft packages. I think the problem is if you have had older .Net or mixing scenarios regarding Ubuntu package and .Net packages(f.x via Jammy or PMC). BTW, I solved my problem to stick with Ubuntu packages and did run this bash script :
```
# First, try to remove/uninstall older .Net, if any, then install .Net 6
echo "$(tput setaf 3)Installing .Net 6$(tput sgr0)"
sudo apt remove 'dotnet*'
sudo apt remove 'aspnetcore*'
sudo apt remove 'netstandard*'
sudo rm /etc/apt/sources.list.d/microsoft-prod.list
sudo rm /etc/apt/sources.list.d/microsoft-prod.list.save
sudo apt update
sudo apt install dotnet6
```
| null | CC BY-SA 4.0 | null | 2022-10-26T06:42:22.280 | 2022-10-26T06:42:22.280 | null | null | 11,094,373 | null |
74,203,650 | 2 | null | 73,796,510 | 0 | null | Unfortunately github doesnt allow either blob or data uri's as image source.
source : [https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#images](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#images)
| null | CC BY-SA 4.0 | null | 2022-10-26T06:45:03.863 | 2022-10-26T06:45:03.863 | null | null | 5,405,143 | null |
74,203,716 | 2 | null | 28,486,385 | 0 | null | Thanks for @Simas's solution!
I found if an item which user click is quite near drawerView, use `ev.rawX` is not appropriate. Furthermore, I add other gravity check to determinate interception.
```
class ContentTouchableDrawer @JvmOverloads constructor(
context: Context, attrs: AttributeSet? = null
) : DrawerLayout(context, attrs) {
override fun onInterceptTouchEvent(ev: MotionEvent): Boolean {
val drawer: View = getChildAt(1)
logt("drawer : $drawer")
logt("drawer : width = ${drawer.width}")
logt("drawer : x = ${drawer.x}")
logt("drawer : eventRawX = ${ev.rawX}")
logt("drawer : eventX = ${ev.x}")
val drawerGravity = (drawer.layoutParams as LayoutParams).gravity
val result = when(drawerGravity){
Gravity.RIGHT, GravityCompat.END -> ev.x < drawer.x
Gravity.LEFT, GravityCompat.START -> ev.x > drawer.width
//Gravity.NO_GRAVITY
else -> false
}
return if (getDrawerLockMode(drawer) == LOCK_MODE_LOCKED_OPEN && result) {
false
} else {
super.onInterceptTouchEvent(ev)
}
}
}
```
| null | CC BY-SA 4.0 | null | 2022-10-26T06:52:59.347 | 2022-10-26T06:52:59.347 | null | null | 10,262,757 | null |
74,203,860 | 2 | null | 74,135,239 | 1 | null | Maybe my explanation of and gave you some misunderstanding. I'm sorry about that. [Remote Machine + WIFI and Device + USB](https://learn.microsoft.com/en-ca/windows/mixed-reality/develop/advanced-concepts/using-visual-studio?tabs=hl2#build-configuration) are both officially recommended deployment methods. Since you have successfully deployed through Device, please continue to use it. If you are still a little confused about deployment you can publish a new thread.
It seems the main issue here is that when you run the deployed project, you cannot see any object. I recommend you try ([https://learn.microsoft.com/en-ca/windows/mixed-reality/develop/unity/preview-and-debug-your-app?tabs=openxr](https://learn.microsoft.com/en-ca/windows/mixed-reality/develop/unity/preview-and-debug-your-app?tabs=openxr)) in the Unity editor, which allows you to quickly preview and debug your project without deployment, and it can also be connected via . You can also use the official sample to or deploy directly. Also, it's important to note that before you build your project in Unity, you need to add the scene to .
| null | CC BY-SA 4.0 | null | 2022-10-26T07:06:54.733 | 2022-10-27T02:28:01.583 | 2022-10-27T02:28:01.583 | 19,772,221 | 19,772,221 | null |
74,203,978 | 2 | null | 72,813,883 | -1 | null | Unfortunately, the same problem is not in the editor, but is already noticeable in the assembled application.
| null | CC BY-SA 4.0 | null | 2022-10-26T07:16:41.970 | 2022-10-26T07:16:41.970 | null | null | 20,337,005 | null |
74,204,071 | 2 | null | 41,604,263 | 10 | null | Just add the relative image file route from the markdown file
```

```
| null | CC BY-SA 4.0 | null | 2022-10-26T07:24:21.540 | 2022-10-26T07:48:51.220 | 2022-10-26T07:48:51.220 | 19,808,166 | 19,808,166 | null |
74,204,519 | 2 | null | 74,204,240 | 0 | null | Try using TextField's `init(_:value:format:prompt:)` initialiser rather than the `init(_:text:)` that you are using. Maybe something like...
```
TextField("Jumlah Barang", value: $addItem.jumlah, format: .number)
```
| null | CC BY-SA 4.0 | null | 2022-10-26T08:07:03.683 | 2022-10-26T08:07:03.683 | null | null | 2,924,575 | null |
74,204,553 | 2 | null | 74,203,755 | 0 | null | As @Panagiotis Kanavos said you can do like so :
```
ALTER TABLE Loan ADD Title AS LEFT(CustomerFname,CHARINDEX('.',CustomerFname))
```
Then you would have to update your names with :
```
UPDATE Loan
SET CustomerFname = LTRIM(RIGHT(CustomerFname,LEN(CustomerFname)-CHARINDEX('.',CustomerFname))
```
If you want your field [Title] to be at a specific position in table you would have to delete and recreate the table.
For the second part
```
SELECT * FROM Loan WHERE LoanDate < DATEADD(YEAR, -1, GETDATE())
```
| null | CC BY-SA 4.0 | null | 2022-10-26T08:09:58.267 | 2022-10-26T08:09:58.267 | null | null | 12,939,087 | null |
74,204,577 | 2 | null | 69,583,347 | 0 | null | Step1: Go to the pubspec.yaml file

Step2: find `flutter_lints: ^1.0.0` and remove it

| null | CC BY-SA 4.0 | null | 2022-10-26T08:13:38.523 | 2022-10-26T10:03:30.800 | 2022-10-26T10:03:30.800 | 5,211,833 | 15,281,498 | null |
74,204,569 | 2 | null | 74,203,387 | 0 | null | Please, try using the next piece of code. As I said in my above comment, it uses arrays, two dictionaries and place the processed result in arrays, too, working mostly in memory. The processed array content will be dropped at once. So, the code should be very fast for a big range to be processed:
```
Sub ExtractRanges()
Dim sh As Worksheet, lastR As Long, dictA As Object, dictC As Object
Dim i As Long, arr, arrItem, arrD, arrE
Set sh = ActiveSheet 'Sheets("Sheet1")
lastR = sh.Range("A" & sh.rows.count).End(xlUp).row 'last row on A:A
arr = sh.Range("A1:C" & lastR).Value2 'place the range in an array for faster iteration/processing
Set dictA = CreateObject("Scripting.Dictionary") 'set the necessary dictionaries
Set dictC = CreateObject("Scripting.Dictionary")
For i = 2 To UBound(arr) 'iterate between the array rows
If Not dictA.Exists(arr(i, 1)) Then 'if the key does not exist:
dictA.Add arr(i, 1), i 'create it and use the array row as item
Else
arrItem = Split(dictA(arr(i, 1)), "|") 'split the item by "|"
If UBound(arrItem) = 0 Then 'if no "|" exists (yet):
dictA(arr(i, 1)) = dictA(arr(i, 1)) & "|" & i 'add the last (found) row after "|"
Else
arrItem(1) = i: dictA(arr(i, 1)) = Join(arrItem, "|") 'change the second parameter as the last row
End If
End If
If Not dictC.Exists(arr(i, 1) & arr(i, 3)) Then
dictC.Add arr(i, 1) & arr(i, 3), i
Else
arrItem = Split(dictC(arr(i, 1) & arr(i, 3)), "|")
If UBound(arrItem) = 0 Then
dictC(arr(i, 1) & arr(i, 3)) = dictC(arr(i, 1) & arr(i, 3)) & "|" & i
Else
arrItem(1) = i: dictC(arr(i, 1) & arr(i, 3)) = Join(arrItem, "|")
End If
End If
Next i
Dim key, iRow As Long
'process Order_Range: ______________________________________
ReDim arrD(1 To UBound(arr), 1 To 1)
For Each key In dictA.Keys 'iterate between the dictionary keys
arrItem = Split(dictA(key), "|") 'split the item by "|"
If UBound(arrItem) = 0 Then 'if no "|":
iRow = dictA(key) - 1
arrD(iRow, 1) = "A" & iRow & " to A" & iRow 'build the necessary string to be placed in array
Else
iRow = CLng(arrItem(1)) - 1
arrD(iRow, 1) = "A" & arrItem(0) & " to A" & iRow + 1 'build the string from the item elements
End If
Next
'Drop the array result at once:
sh.Range("D2").Resize(UBound(arrD) - 1, 1).Value2 = arrD
'_____________________________________________________________
'process Cust_Range: ______________________________________
ReDim arrrE(1 To UBound(arr), 1 To 1)
For Each key In dictC.Keys
arrItem = Split(dictC(key), "|")
If UBound(arrItem) = 0 Then
iRow = dictC(key) - 1
arrrE(iRow, 1) = "C" & iRow + 1 & " to C" & iRow + 1
Else
iRow = CLng(arrItem(1)) - 1
arrrE(iRow, 1) = "C" & arrItem(0) & " to C" & iRow + 1
End If
Next
'Drop the array result at once:
sh.Range("E2").Resize(UBound(arrrE) - 1, 1).Value2 = arrrE
'_____________________________________________________________
MsgBox "Ready..."
End Sub
```
Please, send some feedback after testing it.
If something not clear enough, do not hesitate to ask for clarifications...
| null | CC BY-SA 4.0 | null | 2022-10-26T08:13:07.037 | 2022-10-26T09:42:38.477 | 2022-10-26T09:42:38.477 | 2,233,308 | 2,233,308 | null |
74,204,596 | 2 | null | 74,204,128 | 1 | null | The closest i can get, change the gradient to
```
background:
radial-gradient(circle closest-corner at 50% 0%, rgba(6 3 25 / 1) 105%, rgba(114 38 170 / 1) 130%, transparent 200%),
radial-gradient(circle closest-corner at 50% 100%, rgba(6 3 25 / 1) 105%, rgba(114 38 170 / 1) 130%, transparent 200%);
```
You can use Hex, I changed it to RGBA for experiment.
But you really need to have a vertical container to the effect to show correctly, else it will combine and look weird.
| null | CC BY-SA 4.0 | null | 2022-10-26T08:14:51.083 | 2022-10-26T08:20:40.247 | 2022-10-26T08:20:40.247 | 2,544,734 | 2,544,734 | null |
74,204,692 | 2 | null | 68,435,021 | 0 | null | The Stepper widget the property also other already told you: `controlsBuilder`.
If you want to remove those controls you have just to override that propery passing another function which return a `SizedBox` as @Thepeanut already suggested.
I would just add that you should explicit the height and the width equal to 0.
As here I write:
```
controlsBuilder: (context, details) {
return const SizedBox(
height: 0,
width: 0,
);
},
```
And the implementation of the methods in `details` it's down here:
```
currentStep: _index,
onStepCancel: () {
if (_index > 0) {
setState(() {
_index -= 1;
});
}
},
onStepContinue: () {
if (_index <= (stepList.length - 2)) {
setState(() {
_index += 1;
});
}
},
onStepTapped: (int index) {
setState(() {
_index = index;
});
},
```
| null | CC BY-SA 4.0 | null | 2022-10-26T08:25:24.877 | 2022-10-26T08:25:24.877 | null | null | 18,039,225 | null |
74,205,191 | 2 | null | 74,144,798 | 0 | null | I guess there is mistype in code, instead of "channels" indeed you use "channel" `(for channels in group.channels():)`.
But overall, you could convert whole group to dataframe:
```
for group in tdms_file.groups():
df = tdms_file.object(group).as_dataframe()
```
Or you could even read complete file as dataframe:
```
df = tdms_file.as_dataframe()
```
| null | CC BY-SA 4.0 | null | 2022-10-26T09:07:04.973 | 2022-10-26T09:07:04.973 | null | null | 6,917,446 | null |
74,205,364 | 2 | null | 57,744,392 | 1 | null | To be on the safe side, if your text is not a string literal, you will probably want to use `.init`. In other words, if there's any string concatenation, interpolation, etc., you may want to use `Text(.init(...))`.
Just note that `.init` in this case actually refers to `LocalizedStringKey.init`, so localization will still be happening, just like when you're just passing a string literal.
Here are some examples and their rendered output in Xcode 14 previews.
```
let foo = "Foo"
let bar = "Bar"
let link = "link"
Group {
Text("Foo [Bar](link) Baz") // ✅
Text("Foo" + " [Bar](link) Baz") // ❌
Text(foo + " [Bar](link) Baz") // ❌
Text("\(foo) [Bar](link) Baz") // ✅
Text("\(foo) [Bar](\(link)) Baz") // ❌
Text("\(foo) [\(bar)](\(link)) Baz") // ❌
}
Rectangle().height(1)
Group {
Text(.init("Foo [Bar](link) Baz")) // ✅
Text(.init("Foo" + " [Bar](link) Baz")) // ✅
Text(.init(foo + " [Bar](link) Baz")) // ✅
Text(.init("\(foo) [Bar](link) Baz")) // ✅
Text(.init("\(foo) [Bar](\(link)) Baz")) // ✅
Text(.init("\(foo) [\(bar)](\(link)) Baz")) // ✅
}
```
[](https://i.stack.imgur.com/vR8ci.png)
| null | CC BY-SA 4.0 | null | 2022-10-26T09:19:59.460 | 2022-10-26T09:19:59.460 | null | null | 913,569 | null |
74,205,452 | 2 | null | 12,212,116 | -1 | null | ```
string url = "https://www..com";
System.Windows.Forms.WebBrowser webBrowser = new System.Windows.Forms.WebBrowser();
this.Controls.Add(webBrowser);
webBrowser.ScriptErrorsSuppressed = true;
webBrowser.Navigate(new Uri(url));
var webRequest = WebRequest.Create(url);
webRequest.Headers["Authorization"] = "Basic" + Convert.ToBase64String(Encoding.Default.GetBytes(Program.username + ";" + Program.password));
webRequest.Method = "POST";
```
| null | CC BY-SA 4.0 | null | 2022-10-26T09:25:49.970 | 2022-10-26T17:01:55.207 | 2022-10-26T17:01:55.207 | 116,923 | 14,022,010 | null |
74,205,573 | 2 | null | 74,195,104 | 1 | null | Other than the problem mentioned by Roddy, the problem you have is with Maven. In Maven, `<dependencyManagement>` is not used to define the dependencies of your project, but to define the versions and scope of them. This is normally useful in a multi-module project.
So, even if you have a `<dependencyManagement>` in your `pom.xml`, you still need to define the dependencies:
```
...
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-bom</artifactId>
<type>pom</type>
<version>${drools-version}</version>
<scope>import</scope>
</dependency>
<!-- Gson: Java to JSON conversion -->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.10</version>
<scope>compile</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</dependency>
</dependencies>
...
```
Or, if you are not in a multi-module project, you can probably get rid of the whole `<dependencyManagement>` section:
```
<dependencies>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.10</version>
<scope>compile</scope>
</dependency>
</dependencies>
```
| null | CC BY-SA 4.0 | null | 2022-10-26T09:35:30.797 | 2022-10-26T09:35:30.797 | null | null | 1,168,802 | null |
74,205,596 | 2 | null | 69,453,958 | 0 | null | have had the same problem and there were codecs missing.
| null | CC BY-SA 4.0 | null | 2022-10-26T09:37:21.067 | 2022-10-26T09:37:21.067 | null | null | 2,627,933 | null |
74,206,080 | 2 | null | 74,205,010 | 1 | null | As mentioned in the comments, `long` cannot be used in SQL functions, so you'd better redesign table's structure and convert it to `clob` to make life easier.
But if you still need to access this data having `long` as a source type, you may use two approaches.
- `long``clob`
> ```
with function f_get_long_as_clob(
p_id int
) return clob
as
l_long long;
begin
select do_not_use_long
into l_long
from test_tab
where id = p_id;
return to_clob(l_long);
end;
select
test_tab.id,
f_get_long_as_clob(id) as clob_val
from test_tab
where id < 3
```
- `long``clob`
> ```
select *
from xmltable(
'/ROWSET/ROW'
passing dbms_xmlgen.getxmltype('select * from test_tab where id < 3')
columns
id int,
clob_val clob path 'DO_NOT_USE_LONG'
)
```
For this sample data:
```
create table test_tab (
id int,
do_not_use_long long
);
insert into test_tab
select level, lpad(level, 10, '0')
from dual
connect by level < 3;
```
both solutions will return
| ID | CLOB_VAL |
| -- | -------- |
| 1 | 0000000001 |
| 2 | 0000000002 |
[db<>fiddle](https://dbfiddle.uk/bkfC-CEI)
| null | CC BY-SA 4.0 | null | 2022-10-26T10:17:50.287 | 2022-10-26T10:17:50.287 | null | null | 2,778,710 | null |
74,207,249 | 2 | null | 13,363,062 | 0 | null | PiotrK's answer included a link to an outdated version of the Unity LayerCollisionMatrix setting. However as mentioned in the Comments the provided link is not valid anymore.
I'm not able to post in the comments so I needed to post this as new answer:
The repository is still valid so I assume they restructured the repository. A new version of the Physics2D Layer Collision Matrix code can be found here:
[https://github.com/Unity-Technologies/UnityCsReference/blob/master/Modules/Physics2DEditor/Managed/Settings/LayerCollisionMatrix2D.cs](https://github.com/Unity-Technologies/UnityCsReference/blob/master/Modules/Physics2DEditor/Managed/Settings/LayerCollisionMatrix2D.cs)
| null | CC BY-SA 4.0 | null | 2022-10-26T11:47:59.490 | 2022-11-02T17:10:15.080 | 2022-11-02T17:10:15.080 | 11,630,277 | 11,630,277 | null |
74,207,510 | 2 | null | 55,659,513 | 0 | null |
package manger requires an activity to access it, if you are using fragment then just refer to the parent context, which the activity that the fragment is associated with.
Like this :
```
if (i.resolveActivity(context.packageManger) != null) {
startActivity(i)
}
```
| null | CC BY-SA 4.0 | null | 2022-10-26T12:08:45.293 | 2022-10-26T12:08:45.293 | null | null | 16,528,861 | null |
74,207,825 | 2 | null | 59,234,854 | 0 | null | The answer was in comments - I just want to put it here so next person (as me - flask noob) could understand what's wrong. So you have tO chcnge in your template this part
```
<option value={{x}}>{{x}}</option>
```
to
```
<option value="{{x}}">"{{x}}"</option>
```
The cause of this problem is shown in “View Page Source" of your browser. There you can see
```
<option value=TEXT WITHOUT QUIOOTES>{{x}}</option>
```
But it should look like that:
```
<option value="TEXT WITHOUT QUIOOTES">"{{x}}"</option>
```
| null | CC BY-SA 4.0 | null | 2022-10-26T12:30:59.610 | 2022-10-26T12:30:59.610 | null | null | 2,564,772 | null |
74,207,908 | 2 | null | 74,207,720 | 0 | null | if you create your `index.html` file on `templates/index.html`,then you can use this settings on your `settings.py` file:
```
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
# Add 'TEMPLATE_DIR' here
'DIRS': [os.path.join(BASE_DIR,"templates")],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
```
then in your view you need to render that file:
```
def home(request):
return render(request, 'index.html', context=context)
```
| null | CC BY-SA 4.0 | null | 2022-10-26T12:37:36.797 | 2022-10-26T12:37:36.797 | null | null | 15,344,632 | null |
74,207,928 | 2 | null | 74,207,720 | 0 | null | You have to use a TemplateView. It is just a simple view that serve a template html.
```
from django.views.generic import TemplateView
class IndexView(TemplateView):
template_name = "PATH_TO_INDEXHTML"
```
Just add an url in for serving this view and let's go
```
from django.urls import path
from .views import IndexView
urlpatterns = [
path('index', IndexView.as_view(),
]
```
More information about templateview: [https://docs.djangoproject.com/fr/4.1/ref/class-based-views/base/#django.views.generic.base.TemplateView](https://docs.djangoproject.com/fr/4.1/ref/class-based-views/base/#django.views.generic.base.TemplateView)
| null | CC BY-SA 4.0 | null | 2022-10-26T12:38:32.927 | 2022-10-26T12:38:32.927 | null | null | 16,984,466 | null |
74,208,641 | 2 | null | 21,437,224 | 0 | null | I want to make a small addition to the accepted answer. In my case, the goal was:
1. to display a square image by filling the ConstraintLayout
2. An image with W > H with padding above and below
3. An image with H > W with padding right and left To achieve this this line was missing:
```
app:layout_constraintBottom_toBottomOf="parent"
```
The complete section:
```
<androidx.cardview.widget.CardView
android:id="@+id/preview_img_cv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentEnd="true">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp">
<ImageView
android:id="@+id/attached_image_iv"
android:layout_width="match_parent"
android:layout_height="0dp"
android:scaleType="fitCenter"
android:src="@drawable/placeholder_horizontal"
app:layout_constraintDimensionRatio="H,1:1"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
```
| null | CC BY-SA 4.0 | null | 2022-10-26T13:27:58.667 | 2022-10-26T13:27:58.667 | null | null | 3,963,267 | null |
74,208,711 | 2 | null | 74,208,451 | 1 | null | As you want markdown text IMHO the `ggtext` package is the way to go, i.e. use `ggtext::geom_richtext` instead of `geom_text` or `geom_label`. To avoid duplicated entries use a filtered dataset for the labels. The rest is styling and e.g. making some room for the labels by increasing the `plot.margin`.
```
library(ggplot2)
library(ggtext)
dat_label <- subset(dat, date == max(date))
dat |>
ggplot(aes(date, value, colour = type)) +
geom_line() +
geom_richtext(data = dat_label, aes(label = type), color = "black",
label.size = NA,
label.margin = unit(4, "pt"),
label.padding = unit(3, "pt"),
hjust = 0, show.legend = FALSE) +
coord_cartesian(clip = "off") +
theme(plot.margin = margin(5.5, 66, 5.5, 5.5)) +
guides(color = "none")
```

| null | CC BY-SA 4.0 | null | 2022-10-26T13:33:22.717 | 2022-10-26T13:33:22.717 | null | null | 12,993,861 | null |
74,208,813 | 2 | null | 74,208,595 | 1 | null | First check if on click of the button, does body toggles class `sb-sidenav-toggled`, if it does, check your css as it works on css, the `#sidebar-wrapper` should get `margin-left` after the class toggles.
Otherwise it's js problem, not loaded/somethings stops it before it get's triggered, or some errors within ?
So it was just something preventing or not declared properly onclick, so declaring on click was solution:
```
$("#sidebarToggle").on('click', function() {$('body').toggleClass('sb-sidenav-toggled');});
```
| null | CC BY-SA 4.0 | null | 2022-10-26T13:39:57.837 | 2022-10-26T14:00:39.513 | 2022-10-26T14:00:39.513 | 7,037,331 | 7,037,331 | null |
74,209,129 | 2 | null | 74,208,722 | 1 | null | Probably a few ways to do this. I think your custom styling may be affecting it due to font sizes maybe. I replaced the "container" with "p-1" and added some inline font sizes...
```
<div class="row">
<div class="col-1 d-flex justify-content-center align-items-center">
<div class="p-1 border border-primary rounded-circle" style="font-size: 0;">
<svg xmlns="http://www.w3.org/2000/svg" style="font-size: 1.4rem;" width="32" height="32" fill="currentColor" class="bi bi-briefcase" viewBox="0 0 16 16">
<path d="M6.5 1A1.5 1.5 0 0 0 5 2.5V3H1.5A1.5 1.5 0 0 0 0 4.5v8A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-8A1.5 1.5 0 0 0 14.5 3H11v-.5A1.5 1.5 0 0 0 9.5 1h-3zm0 1h3a.5.5 0 0 1 .5.5V3H6v-.5a.5.5 0 0 1 .5-.5zm1.886 6.914L15 7.151V12.5a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5V7.15l6.614 1.764a1.5 1.5 0 0 0 .772 0zM1.5 4h13a.5.5 0 0 1 .5.5v1.616L8.129 7.948a.5.5 0 0 1-.258 0L1 6.116V4.5a.5.5 0 0 1 .5-.5z"></path>
</svg>
<i class="bi bi-briefcase"></i>
</div>
</div>
</div>
```
| null | CC BY-SA 4.0 | null | 2022-10-26T14:03:18.220 | 2022-10-26T14:03:18.220 | null | null | 9,219,402 | null |
74,209,510 | 2 | null | 74,206,232 | 1 | null | Try this:
mysheet.getRange('a1:a5').setFontColor('#ff0000')
| null | CC BY-SA 4.0 | null | 2022-10-26T14:31:05.437 | 2022-10-26T14:31:05.437 | null | null | 7,215,091 | null |
74,210,012 | 2 | null | 73,390,378 | 0 | null | After some time tinkering with a dev board and with some help from Tilen Majerle I found that this is indeed possible and does work well.
I added the following in my main() while(1) loop so that when the blue button is pressed, the user option bits are modified and a reset is performed.
I found that we don't have to do the soft reset ourselves as the HAL_FLASH_OB_Launch() function triggers the reset for us, after which we should boot into system memory according to the [reference manual](https://www.st.com/resource/en/reference_manual/rm0444-stm32g0x1-advanced-armbased-32bit-mcus-stmicroelectronics.pdf) page 67.
Also I found that the flash and option bytes must be unlocked before setting the option bytes, but not locked afterwards or the reset won't occur.
Here is the code to do it:
```
if(HAL_GPIO_ReadPin(BUTTON_GPIO_Port, BUTTON_Pin) == GPIO_PIN_RESET)
{
// Basic de-bounce for testing
HAL_Delay(100);
while(HAL_GPIO_ReadPin(BUTTON_GPIO_Port, BUTTON_Pin) == GPIO_PIN_RESET)
{
__NOP();
}
// Read, modify & write user option bits
// nBOOT1 = 1, nBOOT_SEL = 1, nBOOT0 = 0; will select system memory as boot area
uint32_t optBits = FLASH->OPTR;
optBits = (optBits | FLASH_OPTR_nBOOT1 | FLASH_OPTR_nBOOT_SEL);
optBits &= ~(FLASH_OPTR_nBOOT0);
// Unlock flash
HAL_FLASH_Unlock();
// Clear OPTLOCK
HAL_FLASH_OB_Unlock();
// Set up struct with desired bits
FLASH_OBProgramInitTypeDef optionBytesSetting = {0};
optionBytesSetting.OptionType = OPTIONBYTE_USER;
optionBytesSetting.USERConfig = optBits;
optionBytesSetting.USERType = OB_USER_nBOOT0;
// Write Option Bytes
HAL_FLASHEx_OBProgram(&optionBytesSetting);
HAL_Delay(10);
// Soft reset
HAL_FLASH_OB_Launch();
NVIC_SystemReset(); // is not reached
}
```
I verified that the flash OPTR register is modified correctly (it goes from 0xFFFFFEAA to 0xFBFFFEAA, essentially just the nBOOT0 bit is cleared as the other two bits were already set). The MCU does reset at HAL_FLASH_OB_Launch() as expected and pausing the program reveals that after reset it is running the system bootloader based on [the PC address](https://i.stack.imgur.com/aXtEW.png).
I also verified it using STM32CubeProgrammer which allows me to view the PC and option bytes, plus lets me set nBOOT0 back to 1 and boot the board to my app.
As for reverting the OB settings programmatically, you could either use the Write Memory command before jumping to the app, or you could use the Go command to jump to the app then modify the option bytes first thing in your app.
| null | CC BY-SA 4.0 | null | 2022-10-26T15:05:46.897 | 2022-10-26T15:13:05.970 | 2022-10-26T15:13:05.970 | 13,907,218 | 13,907,218 | null |
74,210,308 | 2 | null | 74,203,589 | 0 | null | You need to implement two helper functions to display the value as currency. Below I have `toCurrency()`, and then to add values I have another `fromCurrency()` to remove $ sign etc.
I have a simple HTML dialog.
[](https://i.stack.imgur.com/me6pr.png)
The HTML file looks like this - HTML_Test.html
```
<!DOCTYPE html>
<html>
<head>
<base target="_top">
<?!= include('CSS_Test'); ?>
</head>
<body>
<div class="table">
<div class="row">
<div class="cell">
Line 1
</div>
<div class="cell">
<input class="inputCost" id="cost1" type="text">
</div>
</div>
<div class="row">
<div class="cell">
Line 2
</div>
<div class="cell">
<input class="inputCost" id="cost2" type="text">
</div>
</div>
<div class="row">
<div class="cell">
Line 3
</div>
<div class="cell">
<input class="inputCost" id="cost3" type="text">
</div>
</div>
<div class="row">
<div class="cell">
Line 4
</div>
<div class="cell">
<input class="inputCost" id="cost4" type="text">
</div>
</div>
<div class="row">
<div class="cell">
<input type="button" onclick="buttonOnClick()" value="Total">
</div>
<div class="cell">
<input class="totalCost" id="totalCost" type="text">
</div>
</div>
</div>
<?!= include('JS_Test'); ?>
</body>
</html>
```
I use CSS display to display a table - CSS_Test.html
```
<style>
.table {
display: table;
}
.row {
display: table-row;
}
.cell {
display: table-cell;
padding-right: 10px;
}
</style>
```
And the javascript file to introduce the helper functions and the summation - JS_Test.html. When I press the Total button the summation is displayed.
```
<script>
function toCurrency(value) {
try {
if( isNaN(Number(value)) ) return value;
return Number(value).toLocaleString("en-US",{style:"currency", currency:"USD"});
}
catch(err) {
throw err;
}
}
function fromCurrency(value) {
try {
let num = Number(value.replace(/[\$,]/g,''));
return isNaN(num) ? 0 : num;
}
catch(err) {
throw err;
}
}
function buttonOnClick() {
try {
let costs = document.querySelectorAll(".inputCost");
let total = 0;
costs.forEach( cost => {
total = total+fromCurrency(cost.value);
}
);
document.getElementById("totalCost").value = toCurrency(total);
}
catch(err) {
throw err;
}
}
(function () {
try {
let values = ["2200","TBA","Note Only","-15"];
document.getElementById("cost1").value = toCurrency(values[0]);
document.getElementById("cost2").value = toCurrency(values[1]);
document.getElementById("cost3").value = toCurrency(values[2]);
document.getElementById("cost4").value = toCurrency(values[3]);
}
catch(err) {
alert(err);
}
}
)();
</script>
```
| null | CC BY-SA 4.0 | null | 2022-10-26T15:25:02.543 | 2022-10-26T15:25:02.543 | null | null | 3,656,739 | null |
74,210,432 | 2 | null | 71,549,260 | 1 | null | Google provides a proper Snackbar implementation for iOS: [https://m2.material.io/components/snackbars/ios#using-snackbars](https://m2.material.io/components/snackbars/ios#using-snackbars)
| null | CC BY-SA 4.0 | null | 2022-10-26T15:33:15.600 | 2022-10-26T15:33:15.600 | null | null | 2,350,644 | null |
74,210,448 | 2 | null | 18,897,730 | 0 | null | I was searching for the same thing but couldn't find a proper solution on the internet, so this is my solution:
Plot every colour point of every axis and find [curve fitting](https://stackoverflow.com/questions/19165259/python-numpy-scipy-curve-fitting) line between the input and output (referance) using np.polyfit.
Convert those curve lines into LUT (look up table) and that's it.
```
import numpy as np
import cv2
import matplotlib.pyplot as plt
##################################################################################
# polynomial function
##################################################################################
def polynomialFit(x, y):
# calculate polynomial
z = np.polyfit(x, y, 3) # 3 degree polynomial fit
f = np.poly1d(z) # create a function
# calculate new x's and y's
x_new = np.arange(256)
y_new = np.clip(f(x_new),0,255)
return y_new
##################################################################################
# main
##################################################################################
# output color (based on wiki)
outpt = [[115, 82, 68], [194, 150, 130], [98, 122, 157], [87, 108, 67], [133, 128, 177], [103, 189, 170],
[214, 126, 44], [80, 91, 166], [193, 90, 99], [94, 60, 108], [157, 188, 64], [224, 163, 46],
[56, 61, 150], [70, 148, 73], [175, 54, 60], [231, 199, 31], [187, 86, 149], [8, 133, 161],
[243, 243, 242], [200, 200, 200], [160, 160, 160], [122, 122, 122], [85, 85, 85], [52, 52, 52]]
# input color (based on your image)
inpt = [[68, 41, 32], [143, 100, 84], [52, 79, 109], [41, 60, 32], [75, 78, 119], [50, 121, 113],
[171, 81, 21], [34, 55,134], [152, 42, 55], [46, 26, 54], [100, 130, 34], [153, 107, 22],
[16, 35, 111], [38, 113, 48], [138, 20, 26], [160, 145, 18], [144, 43, 95], [ 24, 88, 124],
[180, 182, 181], [154, 156, 157], [119, 120, 122], [72, 76, 75], [39, 43, 44], [20, 21, 23]]
outpt = np.array(outpt)
inpt = np.array(inpt)
# calculate polynomial fitting
lineR = polynomialFit(inpt[:,0], outpt[:,0])
lineG = polynomialFit(inpt[:,1], outpt[:,1])
lineB = polynomialFit(inpt[:,2], outpt[:,2])
# plot input output RGB lines
line = np.arange(256)
plt.plot(line, lineR, label = "Red", color='red')
plt.plot(line, lineG, label = "Green", color='green')
plt.plot(line, lineB, label = "Blue", color='blue')
plt.legend()
plt.show()
# look up table from polyline
lutR = np.uint8(lineR)
lutG = np.uint8(lineG)
lutB = np.uint8(lineB)
# read image
img = cv2.imread('5XXkM.jpg')
img = cv2.resize(img, (600, 400), interpolation = cv2.INTER_AREA)
# generate output image using look up table
res = img.copy()
res[:,:,0] = lutB[img[:,:,0]]
res[:,:,1] = lutG[img[:,:,1]]
res[:,:,2] = lutR[img[:,:,2]]
# show result
cv2.imshow('img', img)
cv2.imshow('res', res)
cv2.waitKey(0)
```
RGB curve line:
[enter image description here](https://i.stack.imgur.com/PJH3M.png)
Result image after calibration:
[enter image description here](https://i.stack.imgur.com/1TTYQ.jpg)
Referance image (wiki):
[enter image description here](https://i.stack.imgur.com/AJ7gi.jpg)
I used RGB colour space for this, but you may use LAB or LUV for more accurate human perception.
| null | CC BY-SA 4.0 | null | 2022-10-26T15:34:32.393 | 2022-10-26T15:46:43.337 | 2022-10-26T15:46:43.337 | 18,552,703 | 18,552,703 | null |
74,210,554 | 2 | null | 74,210,442 | 0 | null | the first line being a header. So, with the following code, you're essentially picking up line 3 of excel sheet
if you need the line 2 change as follows
```
row2 = pd.DataFrame(data.iloc[0]).transpose()
```
```
aggregate.to_excel("/Users/gulfcarbon2/Downloads/Modis/absorption file/aggregate1.xlsx")
```
| null | CC BY-SA 4.0 | null | 2022-10-26T15:40:40.020 | 2022-10-27T13:28:17.227 | 2022-10-27T13:28:17.227 | 3,494,754 | 3,494,754 | null |
74,211,747 | 2 | null | 38,706,283 | 0 | null | For people who do not have dependency to `Slick` but have the same problem. If you have added dependencies to `jdbc` and your DB driver (for example Postgresql) and problem still exists, reindexing of all dependencies via `sbt` is required. In my case closing IntelliJ Idea and subsequent reopening project back causes dependencies reindexing and problem was gone.
| null | CC BY-SA 4.0 | null | 2022-10-26T17:16:27.280 | 2022-10-26T17:16:27.280 | null | null | 14,781,634 | null |
74,211,776 | 2 | null | 74,208,053 | 0 | null | `getAnalytics()` will instantiate an instance of Firebase Analytics that you can use to log events throughout your app.
The solution for me when using analytics was to create a provider as follows:
FirebaseTrackingProvider.tsx
```
export const FirebaseTrackingProvider = (props: {children: ReactNode}) => {
const router = useRouter();
const [analytics, setAnalytics] = useState(null);
useEffect(() => {
setAnalytics(getAnalytics(firebaseApp));
if (analytics) {
setAnalyticsCollectionEnabled(analytics, true);
}
const handleRouteChange = (url: string) => {
if (!analytics) {
return;
}
logEvent(analytics, 'page_view', {
page_location: url,
page_title: document?.title,
});
setCurrentScreen(analytics, document.title ?? 'Undefined');
};
router.events.on('routeChangeStart', handleRouteChange);
return () => {
router.events.off('routeChangeStart', handleRouteChange);
};
}, [analytics, router.events]);
return <FirebaseContext.Provider value={analytics}>{props.children}</FirebaseContext.Provider>;
};
```
I can then consume it different pages or components:
```
const analytics = useContext(FirebaseContext);
// in sign up flow
logEvent(analytics, 'sign_up', {
uid: data.uid,
email: data.email,
});
```
Regarding the recapture erorr: NextJS will first attempt to render serverside content if there is any, before bootstrapping the react application. This means that the window has not been defined yet when you are trying to instantiate a new RecaptchaVerifier instance. You can use an `if(window)` to make sure you are only doing so when the window is instantiated, or alternatively, you can run a `useEffect` as follows:
```
useEfect(() => {
// This wont change on re renders
let completed = false;
if (!completed && window){
// recaptca instantiation
completed = true;
}
}, [window])
```
| null | CC BY-SA 4.0 | null | 2022-10-26T17:18:25.923 | 2022-10-26T17:18:25.923 | null | null | 10,673,068 | null |
74,211,834 | 2 | null | 72,790,008 | 0 | null | i had the same problem, and i didn't find proper solution for it, the only solution was using String type with pattern.
like this
`@Schema(type = "String" , example = "2022-10-10 00:00:00", pattern = "yyyy-MM-dd HH:mm:ss")`.
| null | CC BY-SA 4.0 | null | 2022-10-26T17:24:27.857 | 2022-10-26T17:24:27.857 | null | null | 20,341,884 | null |
74,212,384 | 2 | null | 74,202,191 | 0 | null | Ask yourself: Do you need a "qualitative" answer, i.e. to draw a box whose intent is to highlight the "interesting" portion of the image, with no guarantees that it represents anything statistically meaningful?
If the answer is yes, given that the problem is clearly 1D, I'd average up all the columns to get a single curve, then pick a threshold that makes sense (say, 5% drop from the average value of the curve), find the outermost points where the threshold is crossed, and those define the horizontal location of the box. Rinse and repeat with different choices of the threshold until you get something that visually makes sense for your data. Again, the point here is "visually".
If the answer is no, and you need the box to represent some actual conclusions on the statistics of your data, then you need to dive deeper in your data. Start by asking how the data are generated, express that in a mathematical model of the probability that you observe a black dot at a certain horizontal coordinate "x". The model will depend on some parameters (e.g. if your model is a simple box, the parameters will be its extent and location). Define a likelihood function that expresses "how well" a particular instance of the model (a particular choice of its parameters), fits the data. Then find the parameter values that optimize that likelihood on a given dataset. If I were to take a stab at this problem, just looking at this one picture and without knowing anything about the process that generates this data, my first guess would be to use a Gaussian mixture, since I see both a large-ish "box" and some separate tight "lines", and the density of black dots inside the large box appears higher on the right than on the left side.
If you are unfamiliar with data analysis and modeling techniques, there is a plethora of literature to choose from. [Sivia's "Bayesian Data Analysis"](https://rads.stackoverflow.com/amzn/click/com/0198568320) is a delightfully short and well-readable introductory textbook.
| null | CC BY-SA 4.0 | null | 2022-10-26T18:10:36.670 | 2022-10-26T18:16:11.273 | 2022-10-26T18:16:11.273 | 1,435,240 | 1,435,240 | null |
74,212,437 | 2 | null | 74,212,299 | 0 | null | you should count columns that are not participating in the group by .in your case you can just use * :
```
select TEST, PANEL, UNITS, LOINC, count(*) as FREQ
from DEV_HEALTHTERM.SOURCE.LAB
GROUP BY TEST, PANEL, UNITS, LOINC
ORDER BY FREQ DESC;
```
also you don't need distinct , since you are groping by , It's redundant.
| null | CC BY-SA 4.0 | null | 2022-10-26T18:14:29.313 | 2022-10-26T19:52:53.220 | 2022-10-26T19:52:53.220 | 1,367,454 | 1,367,454 | null |
74,212,577 | 2 | null | 72,876,514 | 1 | null | Type two statements. The first reads user input into person_name. The second reads user input into person_age. Use the int() function to convert person_age into an integer. Below is a sample output for the given program if the user's input is: Amy 4
In 5 years Amy will be 9
Note: Do not write a prompt for the input values, use the format: variable_name = input()
person_name = input()
age = input()
person_age = int(age)
[enter image description here](https://i.stack.imgur.com/5j2Rq.png)
| null | CC BY-SA 4.0 | null | 2022-10-26T18:26:17.793 | 2022-10-26T18:27:40.750 | 2022-10-26T18:27:40.750 | 20,342,385 | 20,342,385 | null |
74,212,656 | 2 | null | 48,533,269 | 0 | null | I had this problem also, but only for one of my projects. I was able to resolve it by removing my venv and creating a new one.
Preferences > Project > Python Interpreter > Add Python Interpreter ("Show All" from dropdown, then "+" icon) > Virtualenv Environment > New Environment.
| null | CC BY-SA 4.0 | null | 2022-10-26T18:35:04.623 | 2022-10-26T18:45:34.500 | 2022-10-26T18:45:34.500 | 20,342,428 | 20,342,428 | null |
74,212,801 | 2 | null | 28,993,049 | 0 | null | The simplest approach for me to code double quotes into ASP and C# strings which themselves are "code" is shown below. Use Chr(34) to inject the quote-mark.
This shows how an <a href" string is properly coded in a Response.Write() function, given x.Name is the file name to be accessed with the <a href link:
Response.write("<a href=" & Chr(34) & "http://SheetMusic.links.com/MusicScores/pdf/" & x.Name & Chr(34) & " target=" & Chr(34) & "_blank" & Chr(34) & ">" & x.Name & "")
This produces filetolink.pdf
Hope this is clear for you.
| null | CC BY-SA 4.0 | null | 2022-10-26T18:46:03.993 | 2022-10-26T18:46:03.993 | null | null | 19,469,722 | null |
74,213,011 | 2 | null | 74,202,191 | 1 | null | Solution using smoothing + thresholding:
1. Convolve your image with a large 2D kernel (average filtering)
[](https://i.stack.imgur.com/AQopO.png)
1. Apply thresholding:
[](https://i.stack.imgur.com/5L13z.png)
1. Find bounding rectangle that includes all non-zero pixels (cv2.boundingRect):
[](https://i.stack.imgur.com/L6R1h.png)
Code:
```
import cv2
import numpy as np
image = cv2.imread('block.jpg')
mask = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
kernel = np.ones((100, 100), np.float32)
kernel /= kernel.size
mask = cv2.filter2D(mask, -1, kernel=kernel)
mask = cv2.threshold(mask, 100, 255, cv2.THRESH_BINARY_INV)[1]
x, y, w, h = cv2.boundingRect(mask)
cv2.rectangle(image, (x, y), (x + w, y + h), (0, 0, 255), 2)
```
| null | CC BY-SA 4.0 | null | 2022-10-26T19:04:28.380 | 2022-10-26T19:04:28.380 | null | null | 19,918,310 | null |
74,213,325 | 2 | null | 74,212,849 | 0 | null | If we do some trickery we can pass the child class to the parent class like this:
```
import z from "zod";
abstract class Data<T extends { schema: z.Schema<any> }> {
abstract schema: T["schema"];
parse(): z.infer<T["schema"]> {
return this.schema.parse({});
}
}
class LoginData extends Data<LoginData> {
schema = z.object({
email: z.string(),
password: z.string(),
});
}
```
Then in the parent class, we can get the schema with `T["schema"]` and use it however we'd like. Here, we're using it as the type of `schema`, and the return type of `parse`. This works since the type of `schema` in the parent class is now the same type of `schema` in the child class.
`z.infer` is a built-in type from Zod that gives us the parsed type from a schema.
[Playground](https://tsplay.dev/Nl2GXW)
| null | CC BY-SA 4.0 | null | 2022-10-26T19:32:48.297 | 2022-10-26T19:32:48.297 | null | null | 18,244,921 | null |
74,213,459 | 2 | null | 74,191,324 | 0 | null | I resolved it by replacing `implementation 'androidx.recyclerview:recyclerview:1.2.1'` instead of `implementation 'com.google.android.material:material:1.7.0'` in `build.gradle(:app)`
| null | CC BY-SA 4.0 | null | 2022-10-26T19:45:53.333 | 2022-10-26T19:45:53.333 | null | null | 4,393,669 | null |
74,214,026 | 2 | null | 21,271,672 | 2 | null | I was experiencing that kind of issue and the solution was going to `File > Open > Project/Solution...`, selecting my `.sln` file (Visual studio Solution), and that would open my SSIS solution from Microsoft SQL Server Data Tools for Visual Studio.
| null | CC BY-SA 4.0 | null | 2022-10-26T20:44:05.803 | 2022-10-26T20:44:05.803 | null | null | 4,242,086 | null |
74,214,501 | 2 | null | 74,214,229 | 0 | null | To handle `Recipe_Type` you can add `Recipe_TypeId` as an additional column to the `Recipes` table.
But for `Ingredients`, expecting each `Recipe` may need several `Ingredients` (of different quantities) .
Let's say you have a Recipes for Tomato Soup and Chicken Noodle Soup with records like this:
| ID | Name | Time | Difficulty | Description | Photo_url | amount_pax | Recipe_Type_ID |
| -- | ---- | ---- | ---------- | ----------- | --------- | ---------- | -------------- |
| 1 | Tomato Soup | 3:00 | 1 | Take tomatos... | http://... | 2 | 1 |
| 2 | Chicken Noodle Soup | 20:00 | 2 | Cook Chic... | http://... | 4 | 1 |
and a like this:
| ID | Name |
| -- | ---- |
| 1 | Soup |
And like this:
| ID | Name |
| -- | ---- |
| 1 | Tomatoes |
| 2 | Milk |
| 3 | Salt |
| 4 | Chicken |
| 5 | Water |
| 6 | Noodles |
Now you also need an (named, say ) that would look something like this:
| RecipeID | IngredientID | Qty | Measure |
| -------- | ------------ | --- | ------- |
| 1 | 1 | 8 | Each |
| 1 | 2 | 1.5 | Cups |
| 1 | 3 | 1 | Tsp |
| 1 | 5 | 1.5 | Cups |
| 2 | 3 | 1 | Tsp |
| 2 | 4 | 2 | Lbs |
| 2 | 5 | 4 | Cups |
| 2 | 6 | 1 | Lbs |
This new table will have a like this: `(RecipeID, IngredientID)`
| null | CC BY-SA 4.0 | null | 2022-10-26T21:37:37.440 | 2022-10-26T21:49:53.283 | 2022-10-26T21:49:53.283 | 3,043 | 3,043 | null |
74,214,727 | 2 | null | 25,181,992 | 0 | null | I would go with a much cleaner solution using owl.events.
First, wire up an event to your owl configuration.
[https://owlcarousel2.github.io/OwlCarousel2/docs/api-events.html](https://owlcarousel2.github.io/OwlCarousel2/docs/api-events.html)
```
var owl, numberOfSlides, slideIndexBeforeChange;
owl = $('.owl-carousel').owlCarousel({
onInitialized: counter, //When the plugin has initialized.
onTranslate : counter, //When the translation of the stage has started.
}
```
Then Create your function to capture the event and it's properties
```
function counter(event) {
numberOfSlides = event.item.count; // Number of items
slideIndexBeforeChange = event.item.index;
}
```
| null | CC BY-SA 4.0 | null | 2022-10-26T22:05:14.203 | 2022-10-26T22:05:14.203 | null | null | 890,062 | null |
74,214,879 | 2 | null | 71,564,464 | 0 | null | I faced this issue when I tried to build an apk, I'm not sure what caused it. But after a restart a managed to build the apk, also make sure you have enough space on your disk 3gb or more.
| null | CC BY-SA 4.0 | null | 2022-10-26T22:27:54.790 | 2022-10-26T22:27:54.790 | null | null | 11,228,377 | null |
74,215,559 | 2 | null | 71,667,439 | -2 | null | i had similar issue while working on a flutter project. i later found out the problem is with data type that my API was returning. How i solve this was to add [] to my variable to make a list before i parse it to json.
eg in PHP
$result[] = array('a'=>$boy, 'b'=>$girl, 'c'=>$man);
echo json_encode($result);
| null | CC BY-SA 4.0 | null | 2022-10-27T00:34:01.403 | 2022-10-27T00:34:01.403 | null | null | 19,869,251 | null |
74,216,011 | 2 | null | 30,814,336 | 2 | null | This is a bit old, but for your question on if you can write the renderer logs (the `console.log` statements in your browser javascript) to a file - yes you can. Just run electron with the command line arguments `--log-file=FILEPATH` and `--enable-logging`. (`FILEPATH`) If you start electron like this, the `console.log` statements from the browser will be written to `FILEPATH`. (Read more about those command line arguments [here](https://github.com/electron/electron/blob/main/docs/api/command-line-switches.md#--enable-loggingfile))
For example, this is what a normal `package.json` looks like for an electron app:
```
{
"name": "my-app",
"version": "1.0",
"description": "Just an app",
"main": "main.js",
"scripts": {
"start": "electron ."
},
"devDependencies": {
"electron": "latest"
}
}
```
Change it to:
```
{
"name": "my-app",
"version": "1.0",
"description": "Just an app",
"main": "main.js",
"scripts": {
"start": "electron . --log-file=C:/Users/you/Documents/myfile.txt --enable-logging"
},
"devDependencies": {
"electron": "latest"
}
}
```
(modify that path to suit your operating system.) Now run your electron app via `npm start` like normal, and the browser's console logs will be saved to the file `C:/Users/you/Documents/myfile.txt`
As a side note - this will work if electron is bundled into an exe via a utility like `electron-packager` or `electron-builder`; the `start` script in `package.json` will be ignored when the exe is run, so the command line params would not get passed when starting electron. As an alternative, you can add electron command line parameters programmatically to your app at the top of `main.js` (before the app loads):
```
app.commandLine.appendSwitch('log-file', logfile);
app.commandLine.appendSwitch('enable-logging');
```
([Documentation showing how to do this](https://www.electronjs.org/docs/latest/api/command-line-switches))
| null | CC BY-SA 4.0 | null | 2022-10-27T02:07:05.127 | 2022-10-27T02:07:05.127 | null | null | 17,005,119 | null |
74,217,094 | 2 | null | 73,817,501 | 1 | null | I faced the same issue in galaxy tab and fixed it by adding position fixed in .
Add this style to your in your component:
```
`.m-signature-pad {
position: fixed;
margin:auto;
top: 0;
width:100%;
height:50%
}
body,html {
position:relative;
}`
```
Hope this helps you.
| null | CC BY-SA 4.0 | null | 2022-10-27T05:16:12.470 | 2022-10-28T09:57:03.150 | 2022-10-28T09:57:03.150 | 13,970,434 | 12,607,683 | null |
74,217,219 | 2 | null | 74,189,567 | 0 | null | You can use this method for your question.
```
List<int> sequence = new List<int>() { 10, 7, 10, 1, 10, 5, 10, 8 , 11 , 50 };
for (int i = 0; i < sequence.Count-1; i++)
{
var lists= sequence.Skip(i).Take(3).ToList();
foreach (var x in lists)
{
Console.Write(x);
}
Console.WriteLine();
}
```
Or You can use this code Linq
```
List<int> sequence = new List<int>() { 10, 7, 10, 1, 10, 5, 10, 8 , 11 , 50 };
for (int i = 0; i < sequence.Count - 1; i++)
{
sequence.Skip(i).Take(3).ToList().ForEach(x => Console.Write(x));
Console.WriteLine();
}
```
| null | CC BY-SA 4.0 | null | 2022-10-27T05:33:23.023 | 2022-10-27T05:55:52.547 | 2022-10-27T05:55:52.547 | 18,504,456 | 18,504,456 | null |
74,217,484 | 2 | null | 74,217,460 | 0 | null | You can take the output of this query and inner join it with the original table...
```
select t1.*
from table_name t1
inner join
(select product, max(quality) as maxquality
from table_name
group by product) t2 on t1.product = t2.product
and t1.quality = t2.maxquality
```
| null | CC BY-SA 4.0 | null | 2022-10-27T06:08:53.767 | 2022-10-27T06:25:33.647 | 2022-10-27T06:25:33.647 | 13,302 | 19,992,135 | null |
74,217,533 | 2 | null | 74,189,567 | 0 | null | As the comments already stated there is nothing really wrong with your code. To make it look more LINQish you could write:
```
var sequence = new List<int> { 10, 7, 10, 1, 10, 5, 10, 8 , 11 , 50 };
var lists = Enumerable.Range(0, 10)
.Select(i => sequence.Skip(i).Take(3))
// If for further usage it makes sense to materialize each subset
//.Select(i => sequence.Skip(i).Take(3).ToList())
.ToList();
```
| null | CC BY-SA 4.0 | null | 2022-10-27T06:14:41.473 | 2022-11-02T07:07:12.093 | 2022-11-02T07:07:12.093 | 1,838,048 | 1,838,048 | null |
74,217,595 | 2 | null | 29,500,227 | 0 | null | The only thing that worked for me was to run Xcode using Rosetta. Without that, I was able to run the app only on real device, but not on the iOS simulator. Building the app can be a little slower but it resolves the issue definitely.
If you dont know how to turn the Rosetta on, here are the steps:
- - `Applications``Get Info`- `Open using Rosetta`-
Not sure if deleting derived data and cleaning the project is necessary, but you can also do it.
[](https://i.stack.imgur.com/iG41G.png)
| null | CC BY-SA 4.0 | null | 2022-10-27T06:20:53.630 | 2022-10-27T06:20:53.630 | null | null | 13,839,521 | null |
74,217,666 | 2 | null | 74,217,460 | 0 | null | In SQL Server, you can only `SELECT` columns that are part of the `GROUP BY` clause, or aggregate functions on any of the other columns.
You can either try adding it to the `GROUP BY` clause:
```
SELECT Product,
Completed,
max(Quality) AS Quality,
FROM [Table]
GROUP BY Product, Completed
```
Or use an aggregate function:
```
SELECT Product,
max(Completed),
max(Quality) AS Quality,
FROM [Table]
GROUP BY Product
```
| null | CC BY-SA 4.0 | null | 2022-10-27T06:30:45.110 | 2022-10-31T03:23:01.150 | 2022-10-31T03:23:01.150 | 8,864,226 | 9,680,817 | null |
74,218,534 | 2 | null | 74,218,442 | 0 | null | Set extendBody param of Scaffold to true. Doing this change will move your grid elements behind bottomNavigationBar
Code:
```
return Scaffold(
body: body[currentIndex],
extendBody: true, //TODO: Set to true
...
```
For more details:
[https://api.flutter.dev/flutter/material/Scaffold/extendBody.html](https://api.flutter.dev/flutter/material/Scaffold/extendBody.html)
| null | CC BY-SA 4.0 | null | 2022-10-27T07:51:06.127 | 2022-10-27T07:51:06.127 | null | null | 10,520,293 | null |
74,218,574 | 2 | null | 74,218,442 | 0 | null | This will solve your problem
```
bottomNavigationBar: Theme(
data: Theme.of(context).copyWith(
// sets the background color of the `BottomNavigationBar` to transparent
canvasColor: Colors.white.withOpacity(0),
// sets the active color of the `BottomNavigationBar` if `Brightness` is light
primaryColor: Colors.red,
textTheme: Theme
.of(context)
.textTheme
.copyWith(caption: new TextStyle(color: Colors.yellow))), // sets the inactive color of the `BottomNavigationBar`
child: ...,
),
```
| null | CC BY-SA 4.0 | null | 2022-10-27T07:54:37.933 | 2022-10-27T07:54:37.933 | null | null | 16,453,584 | null |
74,218,883 | 2 | null | 74,218,442 | 0 | null | You can use floatingActionButton so the button will float wherever you scrolled the screen
```
return Scaffold(
body: body[currentIndex],
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
floatingActionButton: Container(
margin: EdgeInsets.all(20),
height: screenWidth * .155,
decoration: BoxDecoration(
color: Colors.white,
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(.15),
blurRadius: 30,
offset: Offset(0, 10),
),
],
borderRadius: BorderRadius.circular(50),
),
child: ListView.builder(
...
```
| null | CC BY-SA 4.0 | null | 2022-10-27T08:19:02.583 | 2022-10-27T08:19:02.583 | null | null | 16,363,643 | null |
74,219,175 | 2 | null | 70,528,799 | 0 | null | ```
create table plsql_profiler_runs
(
runid number primary key, -- unique run identifier,
-- from plsql_profiler_runnumber
related_run number, -- runid of related run (for client/
-- server correlation)
run_owner varchar2(128), -- user who started run
run_date date, -- start time of run
run_comment varchar2(2047), -- user provided comment for this run
run_total_time number, -- elapsed time for this run
run_system_info varchar2(2047), -- currently unused
run_comment1 varchar2(2047), -- additional comment
spare1 varchar2(256) -- unused
);
comment on table plsql_profiler_runs is
'Run-specific information for the PL/SQL profiler';
create table plsql_profiler_units
(
runid number references plsql_profiler_runs,
unit_number number, -- internally generated library unit #
unit_type varchar2(128), -- library unit type
unit_owner varchar2(128), -- library unit owner name
unit_name varchar2(128), -- library unit name
-- timestamp on library unit, can be used to detect changes to
-- unit between runs
unit_timestamp date,
total_time number DEFAULT 0 NOT NULL,
spare1 number, -- unused
spare2 number, -- unused
--
primary key (runid, unit_number)
);
comment on table plsql_profiler_units is
'Information about each library unit in a run';
create table plsql_profiler_data
(
runid number, -- unique (generated) run identifier
unit_number number, -- internally generated library unit #
line# number not null, -- line number in unit
total_occur number, -- number of times line was executed
total_time number, -- total time spent executing line
min_time number, -- minimum execution time for this line
max_time number, -- maximum execution time for this line
spare1 number, -- unused
spare2 number, -- unused
spare3 number, -- unused
spare4 number, -- unused
--
primary key (runid, unit_number, line#),
foreign key (runid, unit_number) references plsql_profiler_units
);
comment on table plsql_profiler_data is
'Accumulated data from all profiler runs';
create sequence plsql_profiler_runnumber start with 1 nocache;
```
| null | CC BY-SA 4.0 | null | 2022-10-27T08:45:18.160 | 2022-10-31T06:47:13.080 | 2022-10-31T06:47:13.080 | 7,508,700 | 18,233,710 | null |
74,219,482 | 2 | null | 23,363,073 | 0 | null | I had the very same problem. A couple of questions first;
- - -
(This is at least what I have installed)
If so, then I might have found the solution. I came across this answer on GitHub: [https://github.com/nunit/nunit3-vs-adapter/issues/987](https://github.com/nunit/nunit3-vs-adapter/issues/987). I just updated my `NUnit3TestAdapter` NuGet package from version `4.2.1` to `4.3.0-alpha-net7.4`, and now I can run all my tests again.
NuGet link: [https://www.nuget.org/packages/NUnit3TestAdapter/4.3.0-alpha-net7.4](https://www.nuget.org/packages/NUnit3TestAdapter/4.3.0-alpha-net7.4)
I found this error message in the `Output` tab > "Tests" in the dropdown, which helped me identify the issue:
```
No test is available in C:\xx\Tests\xx\bin\Debug\xx.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.
NUnit Adapter 4.2.0.0: Test discovery starting
Exception System.TypeInitializationException, Exception thrown discovering tests in C:\xx\UnitTests\bin\Debug\UnitTests.dll
The type initializer for 'NUnit.Engine.Services.RuntimeFrameworkService' threw an exception.
at NUnit.Engine.Services.RuntimeFrameworkService.ApplyImageData(TestPackage package)
at NUnit.Engine.Services.RuntimeFrameworkService.SelectRuntimeFramework(TestPackage package)
at NUnit.Engine.Runners.MasterTestRunner.GetEngineRunner()
at NUnit.Engine.Runners.MasterTestRunner.Explore(TestFilter filter)
at NUnit.VisualStudio.TestAdapter.NUnitEngine.NUnitEngineAdapter.Explore(TestFilter filter) in D:\repos\NUnit\nunit3-vs-adapter\src\NUnitTestAdapter\NUnitEngine\NUnitEngineAdapter.cs:line 88
at NUnit.VisualStudio.TestAdapter.NUnit3TestDiscoverer.DiscoverTests(IEnumerable`1 sources, IDiscoveryContext discoveryContext, IMessageLogger messageLogger, ITestCaseDiscoverySink discoverySink) in D:\repos\NUnit\nunit3-vs-adapter\src\NUnitTestAdapter\NUnit3TestDiscoverer.cs:line 82
InnerException: System.ArgumentException: Unknown framework version 7.0
```
| null | CC BY-SA 4.0 | null | 2022-10-27T09:10:17.780 | 2022-10-27T09:10:17.780 | null | null | 6,684,511 | null |
74,219,623 | 2 | null | 30,681,701 | 0 | null | simply add this to your css class :
```
height: fit-content;
```
happy coding ^^
| null | CC BY-SA 4.0 | null | 2022-10-27T09:20:22.253 | 2022-10-27T09:20:22.253 | null | null | 11,423,910 | null |
74,220,402 | 2 | null | 3,235,190 | 0 | null | Has anyone thought of using the File ID for this? You can get it via the command
```
fsutil file queryfileid "C:/my/path/example.txt"
```
This could be used to store information about this file in a separate storage-file associated with the id.
| null | CC BY-SA 4.0 | null | 2022-10-27T10:14:51.990 | 2022-10-28T06:35:31.863 | 2022-10-28T06:35:31.863 | 1,016,343 | 14,495,408 | null |
74,220,435 | 2 | null | 69,025,969 | 0 | null | Following on from @Cadin answer I've found you can use both `staggerChildren` and `AnimatePresense` to provide a smoother animation when rendering lists.
```
const staggerChildrenVariant = {
animate: {
transition: {
staggerChildren: 0.5,
},
}
};
const childVariant = {
hidden: { height: 0 },
visible: { height: 'auto' }
};
<motion.div variants={staggerChildrenVariant} initial="animate" animate="animate">
<AnimatePresence>
{arr.map((arrItem) => (
<motion.div
key={arrItem.id}
variants={childVariant}
initial="hidden"
animate="visible"
exit="hidden"
>
...
</motion.div>
))}
</AnimatePresence>
</motion.div>
```
| null | CC BY-SA 4.0 | null | 2022-10-27T10:16:45.800 | 2022-10-27T10:16:45.800 | null | null | 3,684,315 | null |
74,221,058 | 2 | null | 74,220,861 | 1 | null | You can `groupby` with `month` and `day`:
```
df.index = pd.to_datetime(df.index)
( df.groupby([df.index.month, df.index.day]).mean().reset_index().
rename({'level_0':'month', 'level_1':'day'}, axis=1))
```
or if you want to group them by the day of year, i.e. `1, 2, .. 365`, set `as_index=False`:
```
df.groupby([df.index.month, df.index.day], as_index=False).mean()
```
| null | CC BY-SA 4.0 | null | 2022-10-27T11:03:24.313 | 2022-10-27T11:03:24.313 | null | null | 19,255,749 | null |
74,221,473 | 2 | null | 74,221,293 | 0 | null | As I mentioned in the comments this link may have what you need: [https://cloud.google.com/bigquery/docs/reference/standard-sql/json-data](https://cloud.google.com/bigquery/docs/reference/standard-sql/json-data)
It's hard to understand what you want with the limited information in the question but the desired output may not be suitable for data since Each ID that you have can be associated with more than one sku.
Also unless you are purely using google sql, you probably just want to get all the data then format the JSON that is returned after that. So if you are using JavaScript you would want to convert the json to an object like so:
```
var object = JSON.parse(data);
```
Then you can take the sku value from the data object you have recieved.
```
var sku = object[0].sku
```
| null | CC BY-SA 4.0 | null | 2022-10-27T11:40:40.860 | 2022-10-27T11:40:40.860 | null | null | 7,681,546 | null |
74,221,687 | 2 | null | 74,220,972 | 0 | null | create a property, which holds the assets url and instead of using css class, use style directive to set the background image.
for example:
```
[style.backgroundImage]=`url(${assetsUrl}/assets/img.png)`
```
| null | CC BY-SA 4.0 | null | 2022-10-27T11:58:34.903 | 2022-10-27T11:58:34.903 | null | null | 7,904,862 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.