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,453,487 | 2 | null | 74,447,371 | 0 | null | It looks like you are getting json strings back, you could read json objects into dictionaries and then create a dataframe from that. Perhaps try something like this (no longer needs a file)
```
data = pd.read_csv('orderparameters.csv')
df = pd.DataFrame(data)
response_data = []
for i in range(len(df)):
order_json = Client.new_order(...
...)
response_data.append(eval(order_json))
response_dataframe = pd.DataFrame(response_data)
```
| null | CC BY-SA 4.0 | null | 2022-11-15T23:43:56.993 | 2022-11-15T23:43:56.993 | null | null | 4,054,720 | null |
74,453,568 | 2 | null | 74,453,499 | 1 | null | So something like this?
```
body {background: black;}
#btn{
filter: drop-shadow(3px 3px 0px white);
border-radius: 0px;
background: black;
border: 1px solid white;
color: white;
padding: 5px;
font-weight: bold;
}
#btn:active {
background: #eceff1;
color: black;
}
```
```
<button id="btn">
BESTILL MAT
</button>
```
| null | CC BY-SA 4.0 | null | 2022-11-15T23:55:57.147 | 2022-11-16T00:33:16.453 | 2022-11-16T00:33:16.453 | 11,111,119 | 11,111,119 | null |
74,453,632 | 2 | null | 74,001,985 | 0 | null | Check if you are using the import directives below:
```
import React from 'react';
import ReactDOM from 'react-dom';
```
| null | CC BY-SA 4.0 | null | 2022-11-16T00:07:05.650 | 2022-11-16T00:07:05.650 | null | null | 1,693,232 | null |
74,454,001 | 2 | null | 74,450,357 | 0 | null | I recommend to use the QPushButton with the checkable property set to True, rather than tweaking with the QCheckBox and QLabel.
You can do like this.
```
b = QPushButton('A-1', checkable = True)
b.setStyleSheet('''
QPushButton {
width:50px; height:50px;
border: none;
background-color: green;
}
QPushButton:checked {
background-color: red;
}
''')
```
If you insist using the QCheckbox, do like this at least for the box.
```
c = QCheckBox('')
c.setStyleSheet('''
QCheckBox:indicator {
width:50px; height:50px;
background-color: green;
}
QCheckBox:indicator:checked {
background-color: red;
}
''')
```
| null | CC BY-SA 4.0 | null | 2022-11-16T01:09:52.837 | 2022-11-16T01:09:52.837 | null | null | 1,186,624 | null |
74,454,220 | 2 | null | 22,506,331 | 0 | null | You should use either [BoxLayout](https://docs.oracle.com/javase/tutorial/uiswing/layout/box.html), [GridBagLayout](https://docs.oracle.com/javase/tutorial/uiswing/layout/gridbag.html) or [GroupLayout](https://docs.oracle.com/javase/tutorial/uiswing/layout/group.html) to display your components under each other.
with GridBagLayout you can put components in a grid of cells.
while in GroupLayout you can work on a vertical layout.
from my experience making using `Panel.setLayout(null)` won't help a lot as if you are using `frame.pack()` which makes the window shrink to it's content size the frame won't consider that there is content and it would shrink to the minimum.
but still setting the layout to `null` would make you capable of putting the components manually at desired x and y values.
| null | CC BY-SA 4.0 | null | 2022-11-16T01:46:50.580 | 2022-11-16T02:34:49.083 | 2022-11-16T02:34:49.083 | 14,317,525 | 14,317,525 | null |
74,454,600 | 2 | null | 72,522,986 | 5 | null | [Emulator Screenshot](https://i.stack.imgur.com/0yS9r.png)
I solved it by going into:
Emulator Settings > Network & Internet > Internet >
T-Mobile Settings[Gear Icon] > Changed the Preferred Network Type from 3G(default) to LTE (recommended)
| null | CC BY-SA 4.0 | null | 2022-11-16T02:53:35.033 | 2022-11-16T02:53:35.033 | null | null | 16,437,198 | null |
74,454,627 | 2 | null | 74,453,572 | 0 | null | Just create another google sheet and use importrange to pull the cells you want. You may need to stack multiple importrange formulas such as limiting each formula to a certain number of rows but it can all be done in a single cell per sheet.
| null | CC BY-SA 4.0 | null | 2022-11-16T02:58:25.030 | 2022-11-16T02:58:25.030 | null | null | 2,446,698 | null |
74,454,763 | 2 | null | 20,337,664 | 0 | null | For some (mostly beginners) who aren't familiar or comfortable with the object oriented approach for matplotlib, here is a way to hide every 2nd label without needing to use ax:
```
plt.plot(Allx,y)
labels = []
for i in range(len(Allx)):
if i % 2 == 0:
labels.append(Allx[i])
else:
labels.append("")
plt.xticks(ticks=Allx,labels=labels)
```
| null | CC BY-SA 4.0 | null | 2022-11-16T03:23:39.147 | 2022-11-16T03:25:04.540 | 2022-11-16T03:25:04.540 | 20,515,999 | 20,515,999 | null |
74,454,962 | 2 | null | 74,398,033 | 0 | null | the problem is in my double quote:
```
value="{{ $datas->product ? $datas->product->code . " - " . $datas->product->name : null }}"
```
that must be a single quote:
```
value="{{ $datas->product ? $datas->product->code . ' - ' . $datas->product->name : null }}"
```
```
here
```
| null | CC BY-SA 4.0 | null | 2022-11-16T03:58:05.860 | 2022-11-16T03:58:05.860 | null | null | 16,118,520 | null |
74,454,982 | 2 | null | 74,450,189 | 0 | null | Remove fsnotifier.exe and idea64.exe in windows defender or follow the directions in this post:
[https://youtrack.jetbrains.com/issue/IDEA-293604/IntelliJ-is-hanging-during-build-process-and-indexing-process-when-working-on-the-WSL-projects.#focus=Comments-27-6180537.0-0](https://youtrack.jetbrains.com/issue/IDEA-293604/IntelliJ-is-hanging-during-build-process-and-indexing-process-when-working-on-the-WSL-projects.#focus=Comments-27-6180537.0-0)
| null | CC BY-SA 4.0 | null | 2022-11-16T04:00:32.663 | 2022-11-16T04:00:32.663 | null | null | 20,513,811 | null |
74,455,017 | 2 | null | 74,454,622 | 0 | null | In order to merge the two result sets, you need a join key. For example, assume `user_id` is the join key of both.
```
-- Step 1
create table user_today (
user_id int,
today_count int);
create table user_yesterday (
user_id int,
yesterday_count int);
insert into user_today values (101, 10), (102, 20), (103, 30);
insert into user_yesterday values (102, 25), (103, 35), (104, 45);
-- Step 2
select COALESCE(t.user_id, y.user_id) as user_id,
t.today_count,
y.yesterday_count
from user_today t
left
join user_yesterday y
using (user_id)
union
select COALESCE(y.user_id, t.user_id) as user_id,
t.today_count,
y.yesterday_count
from user_yesterday y
left
join user_today t
using (user_id);
```
Result:
```
user_id|today_count|yesterday_count|
-------+-----------+---------------+
101| 10| |
102| 20| 25|
103| 30| 35|
104| | 45|
```
| null | CC BY-SA 4.0 | null | 2022-11-16T04:04:48.293 | 2022-11-16T04:04:48.293 | null | null | 20,127,235 | null |
74,455,108 | 2 | null | 74,453,729 | 0 | null | Api gives list of date strings. You can try this:
```
import requests, time
import dateutil.parser as dp
response = requests.get("https://fortnite-api.com/v2/cosmetics/br/search/all?language=es&name=palito%20de%20pescado%20de%20gominola&searchLanguage=es")
lss = response.json()['data'][0]['shopHistory']
lss.sort()
lastTs = dp.isoparse(lss[-1]).timestamp()
currTs = time.time()
deltaDays = (currTs - lastTs) / (60*60*24)
print( str(round(deltaDays)) + " days" )
```
| null | CC BY-SA 4.0 | null | 2022-11-16T04:16:52.557 | 2022-11-16T04:29:14.543 | 2022-11-16T04:29:14.543 | 8,845,767 | 8,845,767 | null |
74,455,341 | 2 | null | 74,455,068 | 0 | null | For the query in your code you need to define an index in the security rules of your database like this:
```
{
"rules": {
...
"User's Location": {
".indexOn": "g"
}
}
}
```
Also see the Firebase documentation on [indexing data](https://firebase.google.com/docs/database/security/indexing-data) and previous [questions with the same error message](https://www.google.com/search?q=Using+an+unspecified+index.+Your+data+will+be+downloaded+and+filtered+on+the+client.+Consider+adding+%27%22.indexOn%22%3A+%22g%22%27+at+User%27s+Location+to+your+security+and+Firebase+Database+rules+for+better+performance).
| null | CC BY-SA 4.0 | null | 2022-11-16T04:51:20.823 | 2022-11-16T04:51:20.823 | null | null | 209,103 | null |
74,455,549 | 2 | null | 71,766,321 | 2 | null | I was try with and no way to clear flag .
You can try to use Popup to replace Dialog, everything work good for me.
```
Popup(
onDismissRequest = {},
properties = PopupProperties(
focusable = true,
dismissOnBackPress = false,
dismissOnClickOutside = false,
excludeFromSystemGesture = true,
)
) {
Box(
contentAlignment = Alignment.Center,
modifier = Modifier
.fillMaxSize()
.background(Color.Transparent)
) {
// Your content code is here
}
}
```
| null | CC BY-SA 4.0 | null | 2022-11-16T05:22:50.183 | 2022-11-16T07:24:51.663 | 2022-11-16T07:24:51.663 | 18,148,088 | 18,148,088 | null |
74,455,886 | 2 | null | 74,452,923 | 1 | null | The proper security configuration should be:
- `Lambda-SG`- `DB-SG``Lambda-SG`
That is, `DB-SG` should specifically reference `Lambda-SG`. This will then permit the incoming connection from the Lambda function.
Merely putting the Lambda function and the RDS database "in the same Security Group" is insufficient because security groups . Unless the security group allows a connection from 'itself', this will not permit the desired access. Much better to use two security groups as described above.
| null | CC BY-SA 4.0 | null | 2022-11-16T06:10:32.747 | 2022-11-16T06:10:32.747 | null | null | 174,777 | null |
74,456,404 | 2 | null | 74,432,453 | 0 | null | Can you try chmod for your addons first
```
sudo chmod -R /path_addons
```
or in windows change security for folder
for pypdf2
can you try to reinstall pypdf2
```
sudo apt-get install python3-pypdf2
```
or
```
pip3 install Pypdf2
```
| null | CC BY-SA 4.0 | null | 2022-11-16T07:04:11.360 | 2022-11-16T07:04:11.360 | null | null | 6,381,416 | null |
74,456,409 | 2 | null | 74,456,277 | 0 | null | `df.drop` does not modify the DataFrame inplace, unless you ask it to. It returns a new DataFrame. So, either
```
df = df.drop([9,20])
```
or
```
df.drop([9,20],inplace=True)
```
| null | CC BY-SA 4.0 | null | 2022-11-16T07:04:59.560 | 2022-11-16T07:04:59.560 | null | null | 1,883,316 | null |
74,456,480 | 2 | null | 74,456,277 | 0 | null | df.drop(labels=[9, 21], axis=0, inplace=True)
| null | CC BY-SA 4.0 | null | 2022-11-16T07:12:27.377 | 2022-11-16T07:12:27.377 | null | null | 20,352,112 | null |
74,456,508 | 2 | null | 67,141,556 | 0 | null | You have to check that the target table has the columns according to the values to be inserted.
| null | CC BY-SA 4.0 | null | 2022-11-16T07:15:09.967 | 2022-11-16T07:15:09.967 | null | null | 10,986,258 | null |
74,457,076 | 2 | null | 74,452,071 | 0 | null | You can use following series of transformations.
I have added some more data to test boundary cases.
To see the output up to a particular step, just comment all steps that follow:
```
import pyspark.sql.functions as F
df = spark.createDataFrame(
[
[0,0,0,0,0,0,0,0,0,0,0],
[1,1,1,1,1,1,1,1,1,1,1],
[1,0,1,0,1,0,1,0,1,0,1],
[0,1,0,1,0,1,0,1,0,1,0],
[0,1,0,0,0,1,0,0,1,0,0]
],
[str(i) for i in range(0,11)]
)
df.select(F.array(df.columns).alias("c")) \
.select(F.array_join("c", delimiter="").alias("c")) \
.select(F.regexp_replace("c", r"^0*", "").alias("c")) \
.select(F.regexp_replace("c", r"0*$", "").alias("c")) \
.select(F.split("c", "1").alias("c")) \
.select(F.transform("c", lambda s: F.length(s)).alias("c")) \
.select(F.filter("c", lambda i: i > 0).alias("c")) \
.show(truncate=False)
[Out]:
+---------------+
|c |
+---------------+
|[] |
|[] |
|[1, 1, 1, 1, 1]|
|[1, 1, 1, 1] |
|[3, 2] |
+---------------+
```
| null | CC BY-SA 4.0 | null | 2022-11-16T08:09:34.117 | 2022-11-16T08:09:34.117 | null | null | 2,847,330 | null |
74,457,195 | 2 | null | 74,403,887 | 0 | null | You can use [geom_rect](https://ggplot2-book.org/annotations.html?q=geom_rect#:%7E:text=one%20useful%20way%20to%20annotate%20this%20plot%20is%20to%20use%20shading%20to%20indicate%20which%20president%20was%20in%20power%20at%20the%20time.%20to%20do%20this%2C%20we%20use%20geom_rect()) function to highlight the specific regions of the plot.
```
Recreated_figure_DHRP %>%
ggplot(aes(x = Insurers, y =`INR.BN`,fill = FY,group=FY)) +
geom_bar(stat = "identity", position = position_dodge(), alpha = 0.75)+
geom_rect(data = Recreated_figure_DHRP %>% filter(Insurers == "GoDigit"),
aes(xmin = Insurers,
xmax = Insurers,
ymin = 0,
ymax = max(`INR.BN`)),
color = "red",
fill = NA,
linetype = 2,#dashed line
alpha = 0.5,
show. Legend = FALSE)
geom_text(aes(label = `INR.BN`),
fontface = "bold",
vjust = 1.5,
position = position_dodge(.9),
size = 2.25) +
geom_line(aes(y=`YOY.Growth`), col="red")+
ylim(0,400)+
theme(axis.text.x = element_text(angle = 60, hjust = 1),
legend. Position="top")
```
| null | CC BY-SA 4.0 | null | 2022-11-16T08:19:34.753 | 2022-11-16T08:19:34.753 | null | null | 20,018,002 | null |
74,457,275 | 2 | null | 74,457,108 | 1 | null | Color property is not affect hr tag.
- -
| null | CC BY-SA 4.0 | null | 2022-11-16T08:27:32.580 | 2022-11-16T08:27:32.580 | null | null | 16,571,858 | null |
74,457,391 | 2 | null | 20,406,346 | 0 | null | I came across this question and thought the data input can be made more user-friendly. In case you need to change x,y coordinates of a certain point you probably don't want to search through all connectors and change the coordinates everywhere accordingly. So, instead the example below is working with node IDs and connecting lines between two IDs.
The x,y coordinates and colors are stored in a string and the function `strstrt()` is used to create a lookup. The script below is a starting point and can be expanded, e.g. dashed lines, different point shapes, string labels, etc.
The datafile looks like this:
- -
`SO20406346.dat`
```
# ID x y PointColor
1 2.0 8.0 0xffaaaa
2 6.0 9.0 0xaaffaa
3 9.0 6.0 0xaaaaff
4 5.0 5.0 0xffaaff
5 6.0 2.0 0xffffaa
6 1.0 1.0 0xaaffff
73 9.2 1.3 0xcccccc
A 8.0 8.0 0xcccccc
XY 2.0 4.0 0xcccccc
# ID1 ID2 LineColor
1 4 0x0000ff
2 4 0x000000
3 4 0x00ff00
4 4 0x000000
5 4 0x000000
6 5 0xff0000
73 3 0xcccccc
73 4 0xcccccc
73 5 0xcccccc
A 2 0xcccccc
A 3 0xcccccc
XY 1 0xcccccc
XY 4 0xcccccc
XY 6 0xcccccc
```
(works for gnuplot>=4.6.0, March 2012)
```
### plot a node graph
reset
FILE = "SO20406346.dat"
IdIdxs = XYs = ' '
stats FILE u (IdIdxs=IdIdxs.sprintf("%s:%d ",strcol(1),$0), \
XYs=XYs.sprintf("%g %g ",$2,$3)) index 0 nooutput
Px(i) = real(word(XYs,2*i+1))
Py(i) = real(word(XYs,2*i+2))
getIdx(col) = (c0=strstrt(IdIdxs,sprintf(" %s:",strcol(col))), \
c1=strstrt(IdIdxs[c0+1:],' ')+c0, \
s0=IdIdxs[c0:c1], c2=strstrt(s0,':'), int(s0[c2+1:]))
set size ratio 1
set key noautotitle
set offsets 0.25,0.25,0.25,0.25
plot FILE index 1 u (idx0=getIdx(1),x0=Px(idx0)):(y0=Py(idx0)): \
(idx1=getIdx(2),Px(idx1)-x0):(Py(idx1)-y0):3 w vec lw 2 lc rgb var nohead, \
'' index 0 u 2:3:4 w p pt 7 ps 6 lc rgb var, \
'' index 0 u 2:3 w p pt 6 ps 6 lc rgb "black", \
'' index 0 u 2:3:1 w labels
### end of script
```
[](https://i.stack.imgur.com/RaD5x.png)
| null | CC BY-SA 4.0 | null | 2022-11-16T08:37:39.467 | 2022-11-22T11:11:05.297 | 2022-11-22T11:11:05.297 | 7,295,599 | 7,295,599 | null |
74,457,552 | 2 | null | 74,455,801 | 0 | null | Not only is it advised to avoid Select while copying and pasting, but you also seem to be reinventing the "Select Current Region" feature :-)
Just for giving you an idea about this, I've made this very simple macro, using "Select current region" as a simpler way to handle entire tables:
(I've created two sheets, called "TblSource" and "TblDest")
```
Sheets("TblSource").Range("A1").CurrentRegion.Copy
Sheets("TblDest").Select
Range("A1").Select
ActiveSheet.Paste
```
| null | CC BY-SA 4.0 | null | 2022-11-16T08:48:51.690 | 2022-11-16T08:48:51.690 | null | null | 4,279,155 | null |
74,457,952 | 2 | null | 74,437,655 | 1 | null | Just remove height field from table row and add android:layout_width="match_parent"
Do let me know if you face any other issue. Thanks
| null | CC BY-SA 4.0 | null | 2022-11-16T09:21:43.060 | 2022-11-16T09:21:43.060 | null | null | 9,148,371 | null |
74,458,025 | 2 | null | 65,553,830 | 1 | null |
use Direct launchCamera or launchImageLibrary
import {launchCamera, launchImageLibrary} from 'react-native-image-picker';
| null | CC BY-SA 4.0 | null | 2022-11-16T09:27:06.700 | 2022-11-16T09:27:06.700 | null | null | 5,316,872 | null |
74,458,211 | 2 | null | 74,451,137 | 0 | null | As well as the named parameters problem noted by Geert Bellekens, you have a number of other problems:
- `xlOpenXMLTemplateMacroEnabled`- `On Error Resume Next`- `Option Explicit``fname`- `Workbooks.Open`
Proposed code (assuming that you do want to actually re-save the Template itself, not a Workbook created from the Template):
```
Option Explicit
ExcelMacroExample
Sub ExcelMacroExample()
Dim xlApp
Dim xlBook
Set xlApp = CreateObject("Excel.Application")
' force the Template to open as itself instead of creating a new Workbook
Set xlBook = xlApp.Workbooks.Open("C:\Users\14432\Documents\Custom Office Templates\Template 1.xltm", , , , , , , , , True)
' in case there is a problem while running the macro or saving the file, we still want to ensure we quit Excel
On Error Resume Next
xlApp.Run "Macro"
xlBook.Save
xlBook.Close False
xlApp.Quit
Set xlBook = Nothing
Set xlApp = Nothing
End Sub
```
Hope this helps!
| null | CC BY-SA 4.0 | null | 2022-11-16T09:40:45.660 | 2022-11-16T09:40:45.660 | null | null | 11,318,818 | null |
74,458,376 | 2 | null | 69,440,668 | -2 | null | Use canvas.toBlob instead of canvas.toDataURL
| null | CC BY-SA 4.0 | null | 2022-11-16T09:52:27.820 | 2022-11-16T09:52:27.820 | null | null | 11,982,921 | null |
74,458,729 | 2 | null | 74,458,143 | 0 | null | Definitely not a pro here but this might solve your problem.
```
Sub SumAllColumns()
Dim a As Integer
Range("B7").Select
ActiveCell.FormulaR1C1 = "=+SUM(R[-5]C:R[-2]C)"
Range("B7").Select
a = Sheet1.UsedRange.Columns.Count
Selection.AutoFill Destination:=Selection.Resize(1, a - 1)
End Sub
```
This assumes you have 4 rows and your first sum has to be in the cell B7, as per your example. If the number of rows is also variable then let me know and I will try to change it.
| null | CC BY-SA 4.0 | null | 2022-11-16T10:16:55.077 | 2022-11-16T10:16:55.077 | null | null | 20,518,389 | null |
74,458,792 | 2 | null | 74,458,143 | 0 | null | So what you are trying is to create a value that automatically detects the final row and column of a table, right? If this is the case, use this:
```
lr = Cells(Rows.Count, 1).End(xlUp).Row 'goes to the last row and then goes up to the last row with any value
lc = Cells(1, Columns.Count).End(xltoLeft).Column 'goes to the last column and then goes left to the last column with any value
```
Wish someone taught me this before.
Concerning the sum part, I don't quite get what you are trying to do. I think what you are trying to do is to expand this sum you do of this second row to the rest of the roads, right? Why not using a loop?
```
for i = 2 to lr
cells(i, lc + 2).Value = WorksheetFunction.Sum(Range(Cells(i, 1), Cells(i, lc)))
next i
```
Hope it helps!!
| null | CC BY-SA 4.0 | null | 2022-11-16T10:21:57.160 | 2022-11-16T10:21:57.160 | null | null | 19,894,419 | null |
74,458,841 | 2 | null | 74,458,143 | 1 | null |
## Add Totals
```
Option Explicit
Sub AddTotals()
' Reference the worksheet.
Dim ws As Worksheet: Set ws = ActiveSheet ' improve!
' Calculate the last row and column.
Dim lr As Long
lr = ws.Cells.Find("*", ws.Cells(1), xlFormulas, xlPart, xlByRows, xlPrevious, False).Row
Dim lc As Long
lc = ws.Cells.Find("*", ws.Cells(1), xlFormulas, xlPart, xlByColumns, xlPrevious, False).Column
' Reference the first column range.
Dim fcrg As Range: Set fcrg = ws.Range("B2", ws.Cells(lr, "B"))
' Write the address of the first column range to a string variable.
' Lock the rows with '(, 0)' so the formula will work for all columns.
Dim fcrgAddress As String: fcrgAddress = fcrg.Address(, 0)
' Reference the first sum cell.
Dim cell As Range: Set cell = ws.Cells(lr + 2, "B")
' Calculate the number of columns.
Dim cCount As Long: cCount = lc - cell.Column + 1
' Reference the sum row range.
Dim srrg As Range: Set srrg = cell.Resize(, cCount)
' Write the formula to the sum row range.
srrg.Formula = "=SUM(" & fcrgAddress & ")"
End Sub
```
```
Sub AddTotalsShort()
' Reference the worksheet.
Dim ws As Worksheet: Set ws = ActiveSheet ' improve!
' Calculate the last row and column.
Dim lr As Long
lr = ws.Cells.Find("*", , xlFormulas, , xlByRows, xlPrevious).Row
Dim lc As Long
lc = ws.Cells.Find("*", , xlFormulas, , xlByColumns, xlPrevious).Column
' Write the address of the first column range to a string variable.
Dim fcrgAddress As String
fcrgAddress = ws.Range("B2", ws.Cells(lr, "B")).Address(, 0)
' Reference the sum row range.
Dim srrg As Range
With ws.Cells(lr + 2, "B")
Set srrg = .Resize(, lc - .Column + 1)
End With
' Write the formula to the sum row range.
srrg.Formula = "=SUM(" & fcrgAddress & ")"
End Sub
```
| null | CC BY-SA 4.0 | null | 2022-11-16T10:25:42.047 | 2022-11-16T12:15:10.580 | 2022-11-16T12:15:10.580 | 9,814,069 | 9,814,069 | null |
74,458,928 | 2 | null | 74,458,730 | 0 | null | ```
function addNewStudent() {
const button = document.querySelector('button.icon');
const studentDiv = document.createElement('div');
studentDiv.className = 'student';
studentDiv.innerHTML = '<b>New Student</b>';
button.insertAdjacentElement('beforebegin', studentDiv);
}
```
```
.container {
display: flex;
flex-wrap: wrap;
align-items: center;
}
.student {
margin: 10px;
padding: 10px;
background-color: #ccc;
border-radius: 8px;
}
.icon {
margin: 10px;
border-radius: 50%;
font-size: 20px;
cursor: pointer
}
```
```
<div class="container">
<div class="student">Student Card</div>
<div class="student">Student Card</div>
<button class="icon" onclick="addNewStudent()">+</button>
</div>
```
| null | CC BY-SA 4.0 | null | 2022-11-16T10:33:40.180 | 2022-11-16T10:33:40.180 | null | null | 18,270,700 | null |
74,459,442 | 2 | null | 74,445,697 | 0 | null | Try reading the file line by line and using a `generator`. Here is an example:
```
import csv
import pandas as pd
# generate and save demo csv
pd.DataFrame({
'Band-Index': (0.01, 0.02, 0.03, 0.04, 0.05, 0.06),
'value': (1, 2, 3, 4, 5, 6),
}).to_csv('example.csv', index=False)
def search_values_in_file(search_values: list):
with open('example.csv') as csvfile:
reader = csv.reader(csvfile)
reader.__next__() # skip header
for row in reader:
band_index, value = row
if value in search_values:
yield row
# get lines from csv where value in ['4', '6']
df = pd.DataFrame(list(search_values_in_file(['4', '6'])), columns=['Band-Index', 'value'])
print(df)
# Band-Index value
# 0 0.04 4
# 1 0.06 6
```
| null | CC BY-SA 4.0 | null | 2022-11-16T11:08:39.520 | 2022-11-16T11:08:39.520 | null | null | 4,929,646 | null |
74,459,848 | 2 | null | 74,459,581 | 0 | null | Since after `groupby` you need an `aggregation` operation, the easiest way to apply a function to only some columns would be to use `merge` after `groupby`:
```
new_df = ( df.groupby(pd.Grouper(freq='1H', key='time_')).agg({'starts':'sum',
'scooters_on_parking':'sum'}).reset_index() )
new_df = new_df.merge(df, on='time_')
```
| null | CC BY-SA 4.0 | null | 2022-11-16T11:41:02.803 | 2022-11-16T11:41:02.803 | null | null | 19,255,749 | null |
74,459,857 | 2 | null | 9,595,091 | 0 | null | The links in the question are broken, but fortunately
it contains enough information in its body.
Quad-edge data structure was introduced in the paper [Primitives for the Manipulation of General Subdivisions and the Computation of Voronoi Diagrams](http://www.sccg.sk/%7Esamuelcik/dgs/quad_edge.pdf) by LEONIDAS GUIBAS and JORGE STOLFI. And I think it contains the answer on your question.
Four edge records `QuadEdge` (two oppositely directed edges of primal graph and two oppositely directed edges of dual graph) constitute a group corresponding to an edge in the subdivision:
[](https://i.stack.imgur.com/FoYyH.png)
An arrow on the picture points on the next edge sharing the same origin (same vertex for primal edges and same face for dual edges) - `Onext`.
`MakeEdge` function constructs a sphere subdivision, containing one undirected edge, one face and two vertices:
[](https://i.stack.imgur.com/hXu3d.png)
`q0` and `q2` are oppositely oriented edges of primal graph, with an origin in a vertex. And since there is only one directed edge from each vertex, we have: `q0.Onext = q0` and `q2.Onext = q2`.
`q1` and `q3` are oppositely oriented edges of dual graph, and they are loop-edges since their origin and destination are in the same (and the only) face of the subdivision. This face is the origin of both `q1` and `q3`, so their `oNext`s form a cycle:
```
q1.Onext = q3;
q3.Onext = q1;
```
Please note that both operations `makeEdge` and `splice` make sense for half-edge data structure as well. One can find their implementation in e.g. [MeshLib](https://github.com/MeshInspector/MeshLib#readme), see
`MeshTopology::makeEdge()` and `MeshTopology::splice( EdgeId a, EdgeId b )`.
| null | CC BY-SA 4.0 | null | 2022-11-16T11:41:28.840 | 2022-11-16T11:41:28.840 | null | null | 7,325,599 | null |
74,460,112 | 2 | null | 74,458,789 | 0 | null | do you have firebase_core dependencie in your pubspec.yaml??
if not : install firebase_core and import it in your main file.
| null | CC BY-SA 4.0 | null | 2022-11-16T12:01:34.263 | 2022-11-16T12:01:34.263 | null | null | 16,085,663 | null |
74,460,158 | 2 | null | 74,459,809 | 0 | null | ```
.inner {
padding: 0.25rem 0 0.25rem 0.25rem;
border: 1px solid grey;
word-break: break-all;
}
.outer {
width: 12.5rem;
padding: 0.25rem 1.5rem 0.25rem 0.25rem;
border: 1px solid lightblue;
}
```
```
<div class="outer">
<div class="inner">
Lorem ipsum dolor sit, consectetur adipiscing elit, sed do eiusmod tempor
</div>
</div>
```
| null | CC BY-SA 4.0 | null | 2022-11-16T12:05:06.910 | 2022-11-16T12:05:06.910 | null | null | 12,806,767 | null |
74,460,161 | 2 | null | 74,458,789 | 1 | null | For Flutter android if you are initializing Firebase with just
```
Firebase.initializeApp();
```
without passing any arguments to the `initializeApp` function (i.e. firebase configuration/api keys of your project), then you need to add the `google-services.json` inside the `android/app/` folder and add some code in `build.gradle` files so the app knows where to take project configuration from.
The recommended way though is to use the [flutterfire_cli](https://pub.dev/packages/flutterfire_cli) package to handle downloading all the necessary configuration files and adding required code to initialize Firebase for your flutter app.
Follow these steps:
1. Go to https://console.firebase.google.com/
2. Select your project
3. On the project overview page you would see a Add app button
[](https://i.stack.imgur.com/TFJw7.png)
1. Click on it and choose the Flutter option
[](https://i.stack.imgur.com/WKJye.png)
1. Then follow the step shown on screen and you'll be good
| null | CC BY-SA 4.0 | null | 2022-11-16T12:05:15.580 | 2022-11-16T12:05:15.580 | null | null | 15,428,718 | null |
74,460,284 | 2 | null | 60,922,761 | 1 | null | Do 2 steps:
-
> /Users/me.myself/Library/Developer/Xcode/UserData/Previews
run
```
killall -9 com.apple.CoreSimulator.CoreSimulatorService
```
Restart Xcode
| null | CC BY-SA 4.0 | null | 2022-11-16T12:14:13.223 | 2022-11-16T12:14:13.223 | null | null | 624,459 | null |
74,461,096 | 2 | null | 74,458,736 | 0 | null | This situation may be if you are using Team Foundation Version Control for your builds:
[](https://i.stack.imgur.com/zFM7s.png)
TFVC does not support pull requests. Please, verify you are trying to use GIT in your build pipeline:
[](https://i.stack.imgur.com/L3Aey.png)
| null | CC BY-SA 4.0 | null | 2022-11-16T13:13:07.513 | 2022-11-16T13:13:07.513 | null | null | 8,235,971 | null |
74,461,223 | 2 | null | 17,956,331 | 0 | null | The user can stop those alerts from showing up.
You can, however, detect if those alerts are showing:
```
const start = Date.now();
const question = "Are you sure?";
const confirmed = window.confirm(question);
const duration = Date.now() - start;
if (duration < 10) {
// Confirm dialog is disabled
} else {
// Handle confirmed
}
```
| null | CC BY-SA 4.0 | null | 2022-11-16T13:22:13.087 | 2022-11-16T13:22:13.087 | null | null | 747,044 | null |
74,461,541 | 2 | null | 30,940,999 | 0 | null | I faced the same problem and killed multiple days trying to solve it.
Here is my solution:
So, first of all - the function that sets the score. It uses `attributedText` instead of just `text`. That made possible use of `UIFont.monospacedSystemFont()`
```
let labelFontSize = 17
func setScore(_ newScore: Int) {
labelNode.attributedText = .init(
string: String(newScore),
attributes: [
.font: UIFont.monospacedSystemFont(
ofSize: labelFontSize,
weight: .bold
),
.foregroundColor: UIColor.white,
]
)
}
```
Next - fix the position of `SKLabelNode` inside `SKShapeNode` (or any other rectangle):
```
func adjustLabelToFitRect(labelNode: SKLabelNode, rect: CGRect) {
labelNode.verticalAlignmentMode = .baseline
labelNode.horizontalAlignmentMode = .center
// Originally this function worked with labelNode.frame.height
// But it depends on fontSize, so I decided to use it as a base
var labelHeightShift = (labelFontSize - 1) / 2.0
labelHeightShift -= 0.8 // empirical pixel perfect observation
// Move the SKLabelNode to the center of the rectangle.
labelNode.position = CGPoint(x: rect.midX, y: rect.midY - labelHeightShift)
}
```
Note that we are setting `verticalAlignmentMode` to `.baseline`. Because of that, we need to calculate `labelHeightShift` by ourselves.
Yeah, the code is a little dirty with `0.8` and other constants. But I haven't found a better solution.
I hope that helps someone.
| null | CC BY-SA 4.0 | null | 2022-11-16T13:43:53.573 | 2022-11-16T13:43:53.573 | null | null | 2,716,157 | null |
74,461,566 | 2 | null | 74,461,438 | 3 | null | You can use [creatElement](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement) instead of writing text. `InnerHtml` can be problematic security wise. Look into XSS if you are curious.
```
const letters = ["a", "b", "c", "d", "e"]
const numbers = ["1", "2", "3", "4", "5"]
const table = document.getElementById("the-table");
function populateTable() {
for (let i = 0; i < numbers.length; i++) {
const row = document.createElement("tr");
for (let j = 0; j < letters.length; j++) {
const column = document.createElement("td");
column.textContent = letters[j] + numbers[i];
row.appendChild(column);
}
table.appendChild(row);
}
}
```
```
table {
border-collapse: collapse;
margin: 1em 0;
}
td {
border: 1px solid black;
padding: 0.3em;
}
```
```
<h2>Table</h2>
<table id="the-table"></table>
<button type="button" onclick="populateTable();">Populate table</button>
```
Your original logic was good but `innerHTML` is troublesome. If you inspect the html you will see that with innerHtml:
```
<table id="the-table"><tbody><tr></tr></tbody><tbody><tr><td>a1</td></tr></tbody><tbody><tr><td>b1</td></tr></tbody><tbody><tr><td>c1</td></tr></tbody><tbody><tr><td>d1</td></tr></tbody><tbody><tr><td>e1</td></tr></tbody><tbody><tr></tr></tbody><tbody><tr><td>a2</td></tr></tbody><tbody><tr><td>b2</td></tr></tbody><tbody><tr><td>c2</td></tr></tbody><tbody><tr><td>d2</td></tr></tbody><tbody><tr><td>e2</td></tr></tbody><tbody><tr></tr></tbody><tbody><tr><td>a3</td></tr></tbody><tbody><tr><td>b3</td></tr></tbody><tbody><tr><td>c3</td></tr></tbody><tbody><tr><td>d3</td></tr></tbody><tbody><tr><td>e3</td></tr></tbody><tbody><tr></tr></tbody><tbody><tr><td>a4</td></tr></tbody><tbody><tr><td>b4</td></tr></tbody><tbody><tr><td>c4</td></tr></tbody><tbody><tr><td>d4</td></tr></tbody><tbody><tr><td>e4</td></tr></tbody><tbody><tr></tr></tbody><tbody><tr><td>a5</td></tr></tbody><tbody><tr><td>b5</td></tr></tbody><tbody><tr><td>c5</td></tr></tbody><tbody><tr><td>d5</td></tr></tbody><tbody><tr><td>e5</td></tr></tbody></table>
```
If you really want to use `innerHTML`, there is [an answer](https://stackoverflow.com/a/74461657/1248177) showcasing how. Don't do it if you can. A topic on the subject: [innerHTML is adding tbody, why?](https://stackoverflow.com/questions/9022066/innerhtml-is-adding-tbody-why). Their recommendation is the same as mine "You shouldn't really be building up a table with innerHTML operations anyways."
| null | CC BY-SA 4.0 | null | 2022-11-16T13:46:12.080 | 2022-11-16T14:25:01.220 | 2022-11-16T14:25:01.220 | 1,248,177 | 1,248,177 | null |
74,461,657 | 2 | null | 74,461,438 | 2 | null | The issue here is that everytime you call += on the table element it creates a new tbody. So all the TDs will show up on a new line. You need to create a variable and create the entire inner table structure and then add it to your table like so. If you inspect the elements after running your code you can see all the tbodies. I hope this helps.
It should be noted, this is not the "proper" way to do this. I'm just providing the fix for the method you chose, as that's how people learn and grow :)
```
function populateTable(){
letters = ["a", "b", "c", "d", "e"]
numbers = ["1", "2", "3", "4", "5"]
innerTable = '';
for(let i = 0; i < numbers.length; i++){
innerTable += "<tr>"
for(let j = 0; j < letters.length; j++){
innerTable += "<td>" + letters[j] + numbers[i] + "</td>"
}
innerTable += "</tr>"
}
document.getElementById("the-table").innerHTML += innerTable;
}
```
| null | CC BY-SA 4.0 | null | 2022-11-16T13:53:41.790 | 2022-11-16T13:58:05.067 | 2022-11-16T13:58:05.067 | 20,520,502 | 20,520,502 | null |
74,461,686 | 2 | null | 15,239,859 | 0 | null | I had a similar issue with ruby bundled with MacOS.
Installing a new version of Ruby helped.
```
brew install ruby
echo 'export PATH="/opt/homebrew/opt/ruby/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
gem install <my gem>
```
Hope it helps someone.
Please note step with ~/.zshrc might need to be adjusted if you are using bash. Brew outputs help commnads, so probably, it wi
| null | CC BY-SA 4.0 | null | 2022-11-16T13:55:43.610 | 2022-11-16T13:55:43.610 | null | null | 8,052,051 | null |
74,461,772 | 2 | null | 74,461,438 | 0 | null | ```
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title>Document</title>
<style>
table { border-collapse: collapse; margin: 1em 0; }
td { border: 1px solid black; padding: 0.3em; }
</style>
</head>
<body>
<h2>Table</h2>
<table id="the-table"></table>
<button type="button" onclick="populateTable();">Populate table</button>
<script >
function populateTable(){
letters = ["a", "b", "c", "d", "e"]
numbers = ["1", "2", "3", "4", "5"]
let str=""
numbers.map(n=>{
str+="<tr>"
letters.map(l=>{
str+=`<td> ${l} ${n} </td>`
})
str+="</tr>"
})
//console.log('str ',str);
document.getElementById("the-table").innerHTML=str;
}
</script>
</body>
</html>
```
By using ES6 you can use the nested map to iterate the array.
Then add to the string after every iteration. Here is the newly created function for you.
```
function populateTable(){
letters = ["a", "b", "c", "d", "e"]
numbers = ["1", "2", "3", "4", "5"]
let str=""
numbers.map(n=>{
str+="<tr>"
letters.map(l=>{
str+=`<td> ${l} ${n} </td>`
})
str+="</tr>"
})
console.log('str ',str);
document.getElementById("the-table").innerHTML=str;
}
```
| null | CC BY-SA 4.0 | null | 2022-11-16T14:00:56.417 | 2022-11-16T14:00:56.417 | null | null | 11,052,029 | null |
74,461,828 | 2 | null | 74,460,590 | 0 | null | You have not provided a minimal example of your tables or any sample data that can be copy/pasted and you have defined functions and triggers that you have never shared the source code for so it is impossible to test your code.
However, you want to use `ORDER SIBLINGS BY ...` in the cursor so that it is evaluated in a depth-first search order and you can store the generated ids in an associative array.
Something like (untested because your question is missing so many dependencies):
```
declare
l_ID acv_folder_info.id%TYPE;
TYPE ids_assoc_array IS TABLE OF NUMBER INDEX BY PLS_INTEGER;
l_ids ids_assoc_array;
begin
for i in (
select f.*
from acv_folders_info f
INNER JOIN acv_folder_acl a
ON F.ID = A.FIO_ID
WHERE privilege = 'B'
and ERD_ID = 483
and acv_get_validation.have_upd(
p_erd_id => 483,
p_fio_id => a.FIO_ID
) = 'Y'
and A.ERD_ID = 483
and year = 2020
start with F."FIO_ID" is null
connect by prior f."ID" = F."FIO_ID"
order siblings by name
)
loop
insert into acv_folder_info (
ID,
OWNER,
NAME,
ALT_NAME,
CATEGORY,
DESCRIPTION,
ICON,
DELETED,
FDR_PUBLIC,
INHERIT_PARENT_ACL,
REMARKS,
FIO_ID,
OTHER_ID,
YEAR
) values (
null,
483,
i.name || ' - 2020 / 2021',
i.alt_name || ' - 2020 / 2021',
i.category,
i.description,
i.icon,
i.deleted,
i.fdr_public,
i.inherit_parent_acl,
i.remarks,
l_ids(i.FIO_ID),
i.other_id,
2020
) RETURNING id INTO l_ID;
l_ids(i.id) := l_id;
end loop;
end;
/
```
| null | CC BY-SA 4.0 | null | 2022-11-16T14:05:03.777 | 2022-11-16T14:05:03.777 | null | null | 1,509,264 | null |
74,461,829 | 2 | null | 74,442,193 | 0 | null | It can be disabled via [theme.json](https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-json/)
```
{
"$schema": "http://schemas.wp.org/trunk/theme.json",
"version": 2,
"styles": {
"elements": {
"link": {
"typography": {
"textDecoration": "false"
}
}
}
}
}
```
Note: I didn't come up with this solution, it was suggested by user [straightvisions-matthias-bathke](https://pullanswer.com/users/straightvisions-matthias-bathke) in [another forum](https://pullanswer.com/questions/a-where-not-wp-element-button-is-overwriting-all-anchor-tags-on-site-in-14-0-3).
| null | CC BY-SA 4.0 | null | 2022-11-16T14:05:03.867 | 2022-11-16T14:05:03.867 | null | null | 8,444,393 | null |
74,462,003 | 2 | null | 74,461,918 | 0 | null | You can use floating action button as bottom bar
| null | CC BY-SA 4.0 | null | 2022-11-16T14:16:47.693 | 2022-11-16T14:16:47.693 | null | null | 20,143,836 | null |
74,462,041 | 2 | null | 74,461,918 | 1 | null | You can use ClipRRect like this :
```
bottomNavigationBar: ClipRRect(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(30.0),
topRight: Radius.circular(30.0),
),
child: BottomAppBar(
color: Colors.green[200]?.withOpacity(0.8),
child: Container(
height: MediaQuery.of(context).size.height / 9,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
ElevatedButton(
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(Colors.white),
shape: MaterialStateProperty.all(RoundedRectangleBorder(borderRadius: BorderRadius.circular(50))),
),
onPressed: () {},
child: Icon(
Icons.store,
color: Colors.black87,
size: 50,
),
),
ElevatedButton(
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(Colors.white),
shape: MaterialStateProperty.all(RoundedRectangleBorder(borderRadius: BorderRadius.circular(50))),
),
onPressed: () {},
child: Icon(
Icons.home,
color: Colors.black87,
size: 50,
),
),
ElevatedButton(
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(Colors.white),
shape: MaterialStateProperty.all(RoundedRectangleBorder(borderRadius: BorderRadius.circular(50))),
),
onPressed: () {},
child: Icon(
Icons.settings,
color: Colors.black87,
size: 50,
),
)
],
)),
),
),
```
| null | CC BY-SA 4.0 | null | 2022-11-16T14:18:18.187 | 2022-11-16T14:18:18.187 | null | null | 8,921,450 | null |
74,462,102 | 2 | null | 74,462,062 | 0 | null | I've found that rules are very easy to break, but here's something you can try that don't seem to break any rules.
You can change text inside cells. If you need to add a row, add your data at the end of your table and re-sort it. If you need to delete a row, only remove the text/numbers, then re-sort the table.
This works for me when I have conditional formatting that's applied to columns, and I usually set the formatting for the whole column, eg. $F:$F. It should still work if you're formatting for a partial range, just make sure that when you're done adding/removing and resorting that all the data you want formatted is still within your original range parameters.
It's a huge frustration for me as well.
I hope this helps.
| null | CC BY-SA 4.0 | null | 2022-11-16T14:22:24.480 | 2022-11-16T14:22:24.480 | null | null | 20,399,922 | null |
74,462,151 | 2 | null | 74,461,918 | 0 | null | wrap with `ClipRRect` and specify radius value for each corner:
```
ClipRRect(
borderRadius: const BorderRadius.only(
bottomLeft: Radius.circular(0),
bottomRight: Radius.circular(0),
topLeft: Radius.circular(20),
topRight: Radius.circular(20),
),
child: BottomAppBar(
color: Colors.green[200]?.withOpacity(0.8),
child: Container(
height: 60,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
ElevatedButton(
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(Colors.white),
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(50))),
),
onPressed: () {},
child: Icon(
Icons.store,
color: Colors.black87,
size: 50,
),
),
ElevatedButton(
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(Colors.white),
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(50))),
),
onPressed: () {},
child: Icon(
Icons.home,
color: Colors.black87,
size: 50,
),
),
ElevatedButton(
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(Colors.white),
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(50))),
),
onPressed: () {},
child: Icon(
Icons.settings,
color: Colors.black87,
size: 50,
),
)
],
)),
),
)),
```
| null | CC BY-SA 4.0 | null | 2022-11-16T14:25:26.937 | 2022-11-16T14:25:26.937 | null | null | 18,670,641 | null |
74,462,143 | 2 | null | 74,461,380 | 0 | null | There is a small change. I move badge textview outside the parent linear layout and set weight to linear layout.
```
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="?attr/listPreferredItemHeight"
android:background="@drawable/contact_background"
android:gravity="center_vertical"
android:paddingStart="@dimen/activity_padding"
android:paddingEnd="@dimen/activity_padding">
<RelativeLayout
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginEnd="8dp">
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/avatar"
android:layout_width="48dp"
android:layout_height="48dp"
app:srcCompat="@drawable/ic_person_circle"
app:strokeColor="@android:color/transparent" />
<ImageView
android:id="@+id/online"
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true"
android:contentDescription="@string/avatar"
app:srcCompat="@drawable/ic_circle" />
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/deleted"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true"
android:background="@color/design_default_color_background"
android:contentDescription="@string/content_deleted"
android:visibility="gone"
app:srcCompat="@drawable/ic_cancel_grey"
app:strokeColor="@android:color/transparent" />
</RelativeLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/contactName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="start"
android:ellipsize="end"
android:maxLines="1"
android:overScrollMode="never"
android:paddingEnd="4dp"
android:textColor="#333333"
android:textSize="16sp"
tools:ignore="RtlSymmetry"
tools:text="Contact title" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/icon_channel"
android:layout_width="20dp"
android:layout_height="20dp"
android:alpha="0.75"
android:baseline="-2dp"
android:contentDescription="@string/channel"
android:visibility="gone"
app:srcCompat="@drawable/ic_channel"
app:tint="?android:attr/textColorSecondary" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/icon_verified"
android:layout_width="24dp"
android:layout_height="24dp"
android:alpha="0.75"
android:baseline="-2dp"
android:contentDescription="@string/channel"
android:visibility="gone"
app:srcCompat="@drawable/ic_verified" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/icon_staff"
android:layout_width="24dp"
android:layout_height="24dp"
android:alpha="0.75"
android:baseline="-2dp"
android:contentDescription="@string/channel"
android:visibility="gone"
app:srcCompat="@drawable/ic_verified_user" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/icon_danger"
android:layout_width="24dp"
android:layout_height="24dp"
android:alpha="0.75"
android:baseline="-2dp"
android:contentDescription="@string/channel"
android:visibility="gone"
app:srcCompat="@drawable/ic_danger" />
<ImageView
android:id="@+id/icon_muted"
android:layout_width="20dp"
android:layout_height="20dp"
android:alpha="0.75"
android:baseline="-2dp"
android:contentDescription="@string/topic_muted"
android:visibility="gone"
app:srcCompat="@drawable/ic_notifications_off"
app:tint="@color/colorGray" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/icon_blocked"
android:layout_width="20dp"
android:layout_height="20dp"
android:alpha="0.75"
android:baseline="-2dp"
android:contentDescription="@string/topic_blocked"
android:visibility="gone"
app:srcCompat="@drawable/ic_block"
app:tint="@color/colorGray" />
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/icon_archived"
android:layout_width="20dp"
android:layout_height="20dp"
android:alpha="0.75"
android:baseline="-2dp"
android:contentDescription="@string/topic_archived"
android:visibility="gone"
app:srcCompat="@drawable/ic_filecab"
app:tint="@color/colorGray" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@+id/messageStatus"
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_gravity="center_vertical"
android:alpha="0.8"
android:paddingTop="2dp"
android:paddingEnd="2dp"
android:visibility="gone"
tools:ignore="ContentDescription,RtlSymmetry,SmallSp"
tools:src="@drawable/ic_done_all" />
<TextView
android:id="@+id/contactPriv"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_weight="1"
android:ellipsize="end"
android:maxWidth="240sp"
android:maxLines="1"
android:overScrollMode="never"
android:text=""
android:textColor="#909090"
android:textSize="13sp"
tools:text="Contact private: Lorem ipsum dolor sit amet, consectetur adipiscing elit" />
</LinearLayout>
</LinearLayout>
<TextView
android:id="@+id/unreadCount"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="end|center_vertical"
android:layout_marginStart="6dp"
android:layout_marginTop="1dp"
android:background="@drawable/pill_counter"
android:gravity="center"
android:textColor="@color/white"
android:textSize="10sp"
android:textStyle="bold"
tools:ignore="SmallSp,TextContrastCheck"
tools:text="9+" />
</LinearLayout>
```
| null | CC BY-SA 4.0 | null | 2022-11-16T14:25:15.457 | 2022-11-16T14:25:15.457 | null | null | 2,289,835 | null |
74,462,740 | 2 | null | 63,764,004 | 0 | null | Use `index.js` in each folders like this and forget `DirectoryNamedWebpackPlugin` at all
```
import Link from './Link';
export default Link;
```
| null | CC BY-SA 4.0 | null | 2022-11-16T15:00:22.503 | 2022-11-16T15:00:22.503 | null | null | 3,607,915 | null |
74,462,746 | 2 | null | 15,771,924 | 0 | null | Simply read ISA as "is a". Hourly employees ---> is a ---> employee (bottom up approach as hourly employees and contract employees are generalized by employees).
For more details refer to "[Generalization, Specialization and Aggregation in ER Model](https://www.google.com/amp/s/www.geeksforgeeks.org/generalization-specialization-and-aggregation-in-er-model/amp/)".
| null | CC BY-SA 4.0 | null | 2022-11-16T15:00:38.360 | 2022-11-17T10:39:40.863 | 2022-11-17T10:39:40.863 | 4,157,124 | 19,831,802 | null |
74,462,862 | 2 | null | 74,422,975 | 0 | null | In my short experience with Docker and containers communicating with eachother, I've found that `localhost` configuration URL's aren't working. Because one container can't communicatie with another container using just `localhost:[PORT]`.
A lazy way for me to fix this is to work out a static IP address of the machine the containers are running on. Then use this (local) IP address instead of localhost to define the endpoint of the database.
with Redis I'm doing it like this:
```
return new LettuceConnectionFactory(new RedisStandaloneConfiguration("192.168.1.201", 6379));
```
, you might want to use a Datasource URL like this:
```
- SPRING_DATASOURCE_URL=jdbc:mysql://[STATIC_IP_OF_MACHINE]:3306/baskartest
```
*i.e. `...192.168.1.100:3306/baskartest...*`
| null | CC BY-SA 4.0 | null | 2022-11-16T15:09:18.580 | 2022-11-16T15:09:18.580 | null | null | 9,877,340 | null |
74,463,132 | 2 | null | 66,796,866 | 0 | null | to solve the problem in windows follow following step
1.first install oracle software and sqldeveloper saperately and have same versions.
type about your pc in search bar
find device name
then go into homes folder which created in user name folder .local disk c>app>james>product>21c>homes>oradb21home1>network>admin>listner file
change host name to device name and save it.
come into sqldeveloper app and while creating the new connection ,change localhost name to device name.
app will work
| null | CC BY-SA 4.0 | null | 2022-11-16T15:28:58.837 | 2022-11-16T15:28:58.837 | null | null | 18,584,486 | null |
74,463,267 | 2 | null | 74,463,211 | 2 | null | ```
=IF(A2="Incomplete","Incomplete",IF(B2="In Date","COMPLETE","OUT OF DATE"))
```
should be sufficient.
| null | CC BY-SA 4.0 | null | 2022-11-16T15:37:26.703 | 2022-11-16T15:37:26.703 | null | null | 3,611,989 | null |
74,463,351 | 2 | null | 73,662,939 | 0 | null | Worked for me on MAC:
```
brew services restart mongodb/brew/mongodb-community@"yourmongoversion"
```
| null | CC BY-SA 4.0 | null | 2022-11-16T15:43:21.973 | 2022-11-18T17:16:37.103 | 2022-11-18T17:16:37.103 | 14,267,427 | 20,402,035 | null |
74,463,622 | 2 | null | 74,460,500 | 0 | null | I think what you need to understand first is what is a [derivative](https://en.wikipedia.org/wiki/Derivative), many math textbooks could help you with that. The notation dx means an infinitesimal variation, so you not actually compute any difference, but do a symbolic operation on your function f that transforms it to a function f' also noted df/dx, which you then apply at any point where it is defined.
Regarding the algorithm used for automatic differentiation, you understood it right, the part that you seem to be missing is how the derivatives of elementary operations are computed and what do they mean, but it would be hard to do a crash course about that in a SO answer.
| null | CC BY-SA 4.0 | null | 2022-11-16T16:01:21.370 | 2022-11-16T16:01:21.370 | null | null | 8,923,995 | null |
74,463,900 | 2 | null | 74,463,370 | 1 | null | Try to use `subfigures` from the subcaption package...
I used different tikz pictures from an other answer of mine..
```
\documentclass[12pt]{article}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\usepackage{subcaption}
\usepackage{tikz}
\begin{document}
\begin{figure}[!htb]
\centering
\begin{subfigure}[b]{0.3\textwidth}
\centering
\caption{country A}
\begin{tikzpicture}
%% vertices
\draw[fill=black] (0,0) circle (1.5pt);
\draw[fill=black] (3/2,0) circle (1.5pt);
\draw[fill=black] (0.75,1.2) circle (1.5pt);
%% vertex labels
\node at (-0.2,-0.3) {$v_{3}$};
\node at (1.7,-0.3) {$v_{2}$};
\node at (0.75,1.5) {$v_{1}$};
%%% edges
\draw[thick] (0,0) -- (3/2,0) -- (0.75,1.2);
\end{tikzpicture}
\label{subfig:countryA}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.3\textwidth}
\centering
\caption{country B}
\begin{tikzpicture}
%% vertices
\draw[fill=black] (0,0) circle (1.5pt);
\draw[fill=black] (3/2,0) circle (1.5pt);
\draw[fill=black] (0.75,1.2) circle (1.5pt);
%% vertex labels
\node at (-0.2,-0.3) {$v_{3}$};
\node at (1.7,-0.3) {$v_{2}$};
\node at (0.75,1.5) {$v_{1}$};
%%% edges
\draw[thick] (0,0) -- (3/2,0) -- (0.75,1.2);
\end{tikzpicture}
\label{subfig:countryB}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.3\textwidth}
\centering
\caption{country C}
\begin{tikzpicture}
%% vertices
\draw[fill=black] (0,0) circle (1.5pt);
\draw[fill=black] (3/2,0) circle (1.5pt);
\draw[fill=black] (0.75,1.2) circle (1.5pt);
%% vertex labels
\node at (-0.2,-0.3) {$v_{3}$};
\node at (1.7,-0.3) {$v_{2}$};
\node at (0.75,1.5) {$v_{1}$};
%%% edges
\draw[thick] (0,0) -- (3/2,0) -- (0.75,1.2);
\end{tikzpicture}
\label{subfig:countryC}
\end{subfigure}
\begin{subfigure}[b]{0.3\textwidth}
\centering
\caption{country D}
\begin{tikzpicture}
%% vertices
\draw[fill=black] (0,0) circle (1.5pt);
\draw[fill=black] (3/2,0) circle (1.5pt);
\draw[fill=black] (0.75,1.2) circle (1.5pt);
%% vertex labels
\node at (-0.2,-0.3) {$v_{3}$};
\node at (1.7,-0.3) {$v_{2}$};
\node at (0.75,1.5) {$v_{1}$};
%%% edges
\draw[thick] (0,0) -- (3/2,0) -- (0.75,1.2);
\end{tikzpicture}
\label{fsubfig:countryD}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.3\textwidth}
\centering
\caption{country E}
\begin{tikzpicture}
%% vertices
\draw[fill=black] (0,0) circle (1.5pt);
\draw[fill=black] (3/2,0) circle (1.5pt);
\draw[fill=black] (0.75,1.2) circle (1.5pt);
%% vertex labels
\node at (-0.2,-0.3) {$v_{3}$};
\node at (1.7,-0.3) {$v_{2}$};
\node at (0.75,1.5) {$v_{1}$};
%%% edges
\draw[thick] (0,0) -- (3/2,0) -- (0.75,1.2);
\end{tikzpicture}
\label{subfig:countryE}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.3\textwidth}
\centering
\caption{country F}
\begin{tikzpicture}
%% vertices
\draw[fill=black] (0,0) circle (1.5pt);
\draw[fill=black] (3/2,0) circle (1.5pt);
\draw[fill=black] (0.75,1.2) circle (1.5pt);
%% vertex labels
\node at (-0.2,-0.3) {$v_{3}$};
\node at (1.7,-0.3) {$v_{2}$};
\node at (0.75,1.5) {$v_{1}$};
%%% edges
\draw[thick] (0,0) -- (3/2,0) -- (0.75,1.2);
\end{tikzpicture}
\label{subfig:countryF}
\end{subfigure}
\caption{Trait Attacks in the Swedish Multi-Party System 1970-2022.}
\label{fig:six_graphs}
\end{figure}
\end{document}
```
[](https://i.stack.imgur.com/gOI7y.png)
`{0.3\textwidth}` for every subfigure achieves a figure width that triggers a line break after three subfigures in one row. By this you can easily add a third row in `\begin{figure}...\end{figure}`for a 3x3 graphic.
| null | CC BY-SA 4.0 | null | 2022-11-16T16:20:47.460 | 2022-11-16T17:14:50.010 | 2022-11-16T17:14:50.010 | 18,275,876 | 18,275,876 | null |
74,464,074 | 2 | null | 29,653,752 | -2 | null | In 2022 ui appears be obsolete.
Here are an example that currently works fine.
First, create a new variable with parameters (with template):
```
var noAutoFilter = {
operator: "contains",
suggestionOperator: "contains",
template: function (e) {
e.element.kendoAutoComplete({
serverFiltering: false,
valuePrimitive: true,
noDataTemplate: ''
});
}
```
}
Then in your columns use it:
```
{ field: "ProductName", title: "Product", width: 180, filterable: { cell: noServerFilterAuto } }
```
That's it.
Source: [https://www.telerik.com/forums/turning-off-autocomplete-on-column-filtering](https://www.telerik.com/forums/turning-off-autocomplete-on-column-filtering)
| null | CC BY-SA 4.0 | null | 2022-11-16T16:33:26.780 | 2022-11-16T21:30:25.473 | 2022-11-16T21:30:25.473 | 7,911,222 | 7,911,222 | null |
74,464,148 | 2 | null | 19,306,211 | 0 | null | An other issue that i found : Colors are not right... This is because open cv images are in BGR (Blue Green Red) not in RGB ! so the right command is :
```
pygame.image.frombuffer(image.tostring(), image.shape[1::-1], "BGR")
```
| null | CC BY-SA 4.0 | null | 2022-11-16T16:38:51.423 | 2022-11-16T16:38:51.423 | null | null | 14,147,280 | null |
74,464,326 | 2 | null | 72,987,553 | -1 | null | Could you try to run the R code below:
> lintr::use_lintr(type = "tidyverse")
see [https://github.com/r-lib/lintr/blob/main/README.md#lintr-file-example](https://github.com/r-lib/lintr/blob/main/README.md#lintr-file-example) for reference.
I think it creates a .lintr file that defines a default behaviour for lintr within your project directory.So you might need to run the code above each time you have a new project
| null | CC BY-SA 4.0 | null | 2022-11-16T16:54:07.070 | 2022-11-16T16:54:07.070 | null | null | 15,371,240 | null |
74,464,414 | 2 | null | 74,464,012 | 0 | null | Make two blue boxes:
- `d-md-block d-none`- `d-md-none d-block`
Those classes are [Bootstrap classes](https://getbootstrap.com/docs/5.2/utilities/display/) to manipulate [display](https://developer.mozilla.org/en-US/docs/Web/CSS/display) CSS property.
See the snippet below.
```
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" crossorigin="anonymous"></script>
<div class="container-fluid">
<div class="row">
<div class="col-md-8">
<div style="height:100px;width:100%;background-color:red"></div>
<div class="d-md-none d-block" style="height:300px;width:100%;background-color:blue"></div> <!-- Show on mobile -->
<div style="height:100px;width:100%;background-color:green"></div>
</div>
<div class="col-md-4 d-md-block d-none">
<div style="height:300px;width:100%;background-color:blue"></div> <!-- Show on desktop -->
</div>
</div>
</div>
```
| null | CC BY-SA 4.0 | null | 2022-11-16T17:01:32.217 | 2022-11-16T17:01:32.217 | null | null | 10,347,145 | null |
74,464,735 | 2 | null | 19,162,186 | 0 | null | Thank you guys, and I found an additional trick which makes life a little better, but it requires a code change in jstree.js. Looks like an oversight:
Look at the function, and scan for the keyword . That should be a .
If you make that one change, then all you need to do is provide the state (for the main object and its children), and jstree will automatically take care of cascading upwards for undetermined state. It was bailing out early from the scripting and failing to catch all the undetermined nodes properly, requiring the above ugly workarounds for styling and such.
Here's my config (no special attrs or complete() function required) using AJAX:
```
var tree = $('#jstree').jstree({
"core": {
"themes": {
"variant": "large"
},
'data': {
'url': function (node) {
return "{{API}}/" + node.id + "?product_id={{Product.ID}}"
},
'dataType': 'json',
'type': 'GET',
'success': function (data) {
if (data.length == 0) {
data = rootStub
}
return {
'id': data.id,
'text': data.text,
'children': data.children,
'state': data.state,
}
}
}
},
"checkbox": {
// "keep_selected_style": false,
"three_state": false,
"cascade": "undetermined"
},
"plugins": ["wholerow", "checkbox"],
});
```
| null | CC BY-SA 4.0 | null | 2022-11-16T17:27:12.660 | 2022-11-16T17:27:12.660 | null | null | 20,522,398 | null |
74,465,331 | 2 | null | 74,444,504 | 0 | null | The function `scipy.integrate.solve_bvp` is indeed appropriate, with `p0` and `p1`: (x(t), y(t), y(t)) at t=T0, T1. For posterity, here are the two functions required by `solve_bvp`:
```
def bc(X0, X1, args=None):
x0, y0, z0, vx0, vy0, vz0 = X0
x1, y1, z1, vx1, vy1, vz1 = X1
return np.array([
x0 - p0.x,
y0 - p0.y,
z0 - p0.z,
x1 - p1.x,
y1 - p1.y,
z1 - p1.z,
])
def pde(t, X, args=None):
x, y, z, vx, vy, vz = X
dXdt = np.vstack([
vx,
vy,
vz,
np.ones_like(t)*0,
np.ones_like(t)*0,
np.ones_like(t)*g,
])
return dXdt
```
| null | CC BY-SA 4.0 | null | 2022-11-16T18:14:26.743 | 2022-11-16T18:14:26.743 | null | null | 1,782,553 | null |
74,465,702 | 2 | null | 74,451,373 | 0 | null | ```
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
<div class='container'>
<hr />
<!-- begin template -->
<div class='row'>
<div class='col-8'>
<div class='container-fluid p-0'>
<div class='row'>
<div class='col'>
<h3>Project Name</h3>
</div>
<div class='col text-end'>
<p>Project Status</p>
</div>
</div>
<div class='row'>
<div class='col'>
<p><i class='fa fa-arrow-right'></i> Tech 1, Tech 2, Tech 3</p>
</div>
<div class='row'>
<div class='col'>
<p>This is a description of the project, its goals, its challenges, the technologies it uses.</p>
</div>
</div>
</div>
</div>
</div>
<div class='col-4'>
<img src='https://via.placeholder.com/100' class='img-fluid' alt='placeholder image'>
</div>
</div>
</div>
```
| null | CC BY-SA 4.0 | null | 2022-11-16T18:49:21.003 | 2022-11-16T18:49:21.003 | null | null | 13,497,943 | null |
74,466,734 | 2 | null | 74,466,216 | 0 | null | `imread` returns an `np.array`, so if i understand what you want to do, you have the solution in the question. For completeness sake, see the code below.
```
import cv2
img = cv2.imread("image.png", cv2.IMREAD_GRAYSCALE)
print(type(img))
print(img[:10, :10])
kernel = np.ones((5, 5), np.float32)/25
kernel_vals = cv2.filter2D(img, -1, kernel)
print(kernel_vals[:10, :10])
```
And the output is (with added newlines for readability)
```
<class 'numpy.ndarray'>
[[255 255 255 255 255 255 255 255 255 255]
[255 255 255 255 255 255 255 255 255 255]
[255 255 255 255 255 255 255 255 255 255]
[255 255 255 0 255 255 255 0 255 255]
[255 255 255 0 255 255 255 0 255 255]
[255 255 255 0 255 255 255 0 255 255]
[255 255 255 0 255 255 255 0 255 255]
[255 255 255 0 255 255 255 0 255 255]
[255 255 255 0 255 255 255 0 255 255]
[255 255 255 0 255 255 255 0 255 255]]
[[255 255 255 255 255 255 255 255 255 255]
[255 245 245 245 245 235 245 245 245 235]
[255 235 235 235 235 214 235 235 235 214]
[255 224 224 224 224 194 224 224 224 194]
[255 214 214 214 214 173 214 214 214 173]
[255 204 204 204 204 153 204 204 204 153]
[255 204 204 204 204 153 204 204 204 153]
[255 204 204 204 204 153 204 204 204 153]
[255 204 204 204 204 153 204 204 204 153]
[255 204 204 204 204 153 204 204 204 153]]
```
Now, since `kernel_vals` is an `np.array`, you can flatten it, turn it into a list, or manipulate it in any other way you want
| null | CC BY-SA 4.0 | null | 2022-11-16T20:20:46.020 | 2022-11-16T20:20:46.020 | null | null | 11,554,968 | null |
74,466,935 | 2 | null | 46,347,494 | 0 | null | Still, you facing the issue
Add this Jar in Build path ->modulerpath
Add this jar
[https://mvnrepository.com/artifact/org.hamcrest/hamcrest-all/1.3](https://mvnrepository.com/artifact/org.hamcrest/hamcrest-all/1.3)
And the issue will be resolved.
| null | CC BY-SA 4.0 | null | 2022-11-16T20:39:34.930 | 2022-11-16T20:39:34.930 | null | null | 20,523,880 | null |
74,467,643 | 2 | null | 74,467,012 | 0 | null | ```
=LET(
range,S1:V8,
header, TAKE(range,1),
data, DROP(range,1),
IFS(INDEX(data,,1)<>"",INDEX(header,,1),
INDEX(data,,2)<>"",INDEX(header,,2),
INDEX(data,,3)<>"",INDEX(header,,3),
INDEX(data,,4)<>"",INDEX(header,,4)))
```
| null | CC BY-SA 4.0 | null | 2022-11-16T21:48:27.807 | 2022-11-16T21:48:27.807 | null | null | 12,634,230 | null |
74,467,859 | 2 | null | 13,493,327 | 0 | null | A minor update.
' Used for text file output
Set fso = CreateObject("scripting.FileSystemObject")
Set fa = fso.createtextfile("C:(a location)\output.txt", True)
And I commented out the following DIM and SET and then changed the object name from FSO.writeline to FA.writeline at the end.
| null | CC BY-SA 4.0 | null | 2022-11-16T22:10:20.147 | 2022-11-16T22:10:20.147 | null | null | 20,524,420 | null |
74,468,528 | 2 | null | 74,459,204 | 2 | null |
## API security best practices
>
It is considered as best practice when you [Use seperate API keys for each app](https://developers.google.com/maps/api-security-best-practices#separate-apikey)
The reason would be because:
> "
Simplified key management could cost you security. So having 4 keys instead of 1, is still better most especially if your key was compromised.
Hope this helps.
| null | CC BY-SA 4.0 | null | 2022-11-16T23:36:59.440 | 2022-11-16T23:42:49.553 | 2022-11-16T23:42:49.553 | 18,422,887 | 18,422,887 | null |
74,468,682 | 2 | null | 25,882,999 | 3 | null | I try all suggestions from google and stackoverflow and spend 4 hours for that.
Only what work is downgrade jQuery from 3.6 to 3.5
```
"jquery": "^3.6.0" -> "jquery": "3.5.1"
```
```
https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js
```
| null | CC BY-SA 4.0 | null | 2022-11-17T00:05:16.647 | 2022-11-17T00:05:16.647 | null | null | 2,040,496 | null |
74,468,915 | 2 | null | 74,454,357 | 0 | null | It was Vim extension problem. I uninstalled it.
| null | CC BY-SA 4.0 | null | 2022-11-17T00:50:03.817 | 2022-11-17T00:50:03.817 | null | null | 20,058,186 | null |
74,469,323 | 2 | null | 23,818,199 | 0 | null | You can try:
```
public class trial {
public static void main(String[] args)
{
System.out.println(specificword(0, "yours faithfully kyobe"));
System.out.println(reverseString("derrick"));}
public static String specificword(int number, String word){
//split by space
String [] parts = word.split("\\ ");
if(number <= parts.length){
return parts[number];
}
else{
return "null String";
}
}
public static String reverseString(String n){
String c ="";
for(int i = n.length()-1; i>=0; i--){
char m = n.charAt(i);
c = c + m;
}
String m = c.toUpperCase();
return m;
}
}
```
| null | CC BY-SA 4.0 | null | 2022-11-17T02:04:05.593 | 2022-11-19T16:40:01.260 | 2022-11-19T16:40:01.260 | 5,195,494 | 18,884,241 | null |
74,469,531 | 2 | null | 56,837,090 | 0 | null | An already tested solution:
Convert the pdf into a base64 encoded string (mandatory in some cases where the character encoding could be an issue as soon as you send it into a json), then send it to the client. In client, read the file like this:
```
if (data) {
var base64DataUri = 'data:application/pdf;base64,' + data;
window.open(base64DataUri, '_blank');
}
```
| null | CC BY-SA 4.0 | null | 2022-11-17T02:39:51.780 | 2022-11-17T02:39:51.780 | null | null | 11,001,894 | null |
74,469,586 | 2 | null | 26,338,437 | 0 | null | First do not give width to modal and if you are working with @media query just remove the class `modal-lg` from `<div class="modal-dialog modal-lg">`
then it will work `<div class="modal-dialog">`.
| null | CC BY-SA 4.0 | null | 2022-11-17T02:50:39.013 | 2022-12-10T22:06:31.857 | 2022-12-10T22:06:31.857 | 12,352,865 | 12,322,932 | null |
74,470,547 | 2 | null | 71,266,290 | 0 | null | Unfortunately, the standard implementation of the API will not allow this to be done.
But no one is stopping us from extending the standard API.
Extended APIs can be obtained [HERE](https://github.com/Reginer/aosp-android-jar)
Next, we get the class and pick up new methods:
We collect and apply
Example:
object : ServiceListener
```
a2dp = proxy as BluetoothA2dp
val device: BluetoothDevice = a2dp.activeDevice
val status: BluetoothCodecStatus = a2dp.getCodecStatus(device)
val config = status.codecConfig
val codec = config.codecType
val newConfig = BluetoothCodecConfig(0, 1000 * 1000, SAMPLE_RATE_44100, BITS_PER_SAMPLE_16, CHANNEL_MODE_STEREO, 32771, 49152, 0, 0)
a2dp.setCodecConfigPreference(device, newConfig)
val updatedStatus: BluetoothCodecStatus = a2dp.getCodecStatus(device)
val updatedConfig = updatedStatus.codecConfig
```
| null | CC BY-SA 4.0 | null | 2022-11-17T05:24:20.290 | 2022-11-17T05:24:20.290 | null | null | 11,339,207 | null |
74,471,428 | 2 | null | 74,471,373 | 1 | null | Please share your fragment file and check if you are providing correct resource as it is giving resource not found please check that also
| null | CC BY-SA 4.0 | null | 2022-11-17T07:09:39.800 | 2022-11-17T07:09:39.800 | null | null | 13,794,470 | null |
74,471,484 | 2 | null | 31,324,557 | 0 | null | Use `GridLayout` with `cols: 1` instead of `BoxLayout`
| null | CC BY-SA 4.0 | null | 2022-11-17T07:15:04.910 | 2022-11-17T07:24:25.507 | 2022-11-17T07:24:25.507 | 5,211,833 | 20,527,461 | null |
74,471,589 | 2 | null | 71,483,723 | 1 | null | I had the same problem and In my case that was because I used chrono lib. I removed the library and it worked. The error could be some where else not just in the init function
| null | CC BY-SA 4.0 | null | 2022-11-17T07:24:13.253 | 2022-11-17T07:24:13.253 | null | null | 10,064,247 | null |
74,471,766 | 2 | null | 23,109,379 | 0 | null | I use `WindowsFormsHost` in my WPF projects. It doesn't have a visible border. What you need to do is to set the hosted control's `BorderStyle` to `None`.
| null | CC BY-SA 4.0 | null | 2022-11-17T07:39:52.563 | 2022-11-17T07:39:52.563 | null | null | 11,696,249 | null |
74,471,788 | 2 | null | 74,471,700 | 0 | null | All you need is to detect if there is a URL in the text and preview the URL. You can use the [any_link_preview](https://pub.dev/packages/any_link_preview) package for URL preview.
| null | CC BY-SA 4.0 | null | 2022-11-17T07:42:46.750 | 2022-11-17T07:42:46.750 | null | null | 7,335,273 | null |
74,472,161 | 2 | null | 74,431,990 | 0 | null | @Mark Rotteveel, thanks for the Solution.
The Solution was the pathing, i added "localhost:[...]" as prefix and it works.
| null | CC BY-SA 4.0 | null | 2022-11-17T08:18:29.023 | 2022-11-17T08:18:29.023 | null | null | 20,448,686 | null |
74,472,500 | 2 | null | 74,471,453 | 1 | 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.
Here's the GUI I created. Your code wasn't runnable. When I made it runnable, your HTML didn't specify any line breaks, so there weren't any line breaks.
[](https://i.stack.imgur.com/buExm.png)
Generally, you use a `JTextArea` for really long text. You specify the number of rows and columns that you want. By adjusting the rows and columns, you indirectly adjust the size of the component.
I put the `JTextArea` in a `JScrollPane` so my sizing of the component is independent of the length of the text. I sometimes use a `JTextArea` in a `JScrollPane` for my instructions dialogs.
Here's the complete runnable code.
```
import java.awt.BorderLayout;
import javax.swing.BorderFactory;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.SwingUtilities;
public class LongJLabel implements Runnable {
public static void main(String[] args) {
SwingUtilities.invokeLater(new LongJLabel());
}
@Override
public void run() {
JFrame frame = new JFrame("Long JLabel");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.add(createMainPanel(), BorderLayout.CENTER);
frame.pack();
frame.setLocationByPlatform(true);
frame.setVisible(true);
}
private JPanel createMainPanel() {
JPanel panel = new JPanel(new BorderLayout());
panel.setBorder(BorderFactory.createEmptyBorder(0, 5, 5, 5));
JTextArea textArea = new JTextArea(10, 40);
textArea.setEditable(false);
textArea.setLineWrap(true);
textArea.setWrapStyleWord(true);
textArea.setText("It is a long established fact that a reader will be "
+ "distracted by the readable content of a page when "
+ "looking at its layout. The point of using Lorem "
+ "Ipsum is that it has a more-or-less normal "
+ "distribution of letters, as opposed to using "
+ "'Content here, content here', making it look like "
+ "readable English. Many desktop publishing packages "
+ "and web page editors now use Lorem Ipsum as their "
+ "default model text, and a search for 'lorem ipsum' "
+ "will uncover many web sites still in their infancy. "
+ "Various versions have evolved over the years, "
+ "sometimes by accident, sometimes on purpose "
+ "(injected humour and the like).");
JScrollPane scrollPane = new JScrollPane(textArea);
textArea.setCaretPosition(0);
panel.add(scrollPane);
return panel;
}
}
```
| null | CC BY-SA 4.0 | null | 2022-11-17T08:49:32.360 | 2022-11-17T08:49:32.360 | null | null | 300,257 | null |
74,472,511 | 2 | null | 74,471,453 | 0 | null | Getting the exact required height seems to be non-trivial. Though you could use an "educated guessing" method to calculate the required height.
```
String text = "Your text here";
JLabel label = new JLabel("<html> "
+ text
+ "</html>");
//You can get very useful Information via the Font Metrics class
FontMetrics fm = label.getFontMetrics(label.getFont());
//Here you need a reference to your window so you can get the width of it.
//Via the stringWidth function you get the width of the text when written as one line
//Subtracting 40 is to counter the effect, that the text is broken after each line
//The (int) (...) + 1 is just to round up
int lines = (int) (fm.stringWidth(text) / (window.getWidth() - 40f)) + 1;
//last you can set the window height however you like but watch out
//since the window top margin has to be minded
window.setSize(200, lines * fm.getHeight() + 30);
```
| null | CC BY-SA 4.0 | null | 2022-11-17T08:50:23.660 | 2022-11-20T07:58:37.683 | 2022-11-20T07:58:37.683 | 5,136,131 | 20,527,747 | null |
74,473,076 | 2 | null | 29,562,471 | 0 | null | If this topic still relevant in 2022.
I have had a similar problem and i solved it like this:
This link in /templates/file.html
```
<link rel="stylesheet" type="text/css" media="all" ref="../static/css/styles.css">
```
and i have added application.properties
```
spring.mvc.static-path-pattern=/static/**
```
my css path is
```
src/main/resources/static/css/
```
[helpful link](https://www.baeldung.com/spring-mvc-static-resources)
| null | CC BY-SA 4.0 | null | 2022-11-17T09:33:22.917 | 2022-11-18T06:53:16.900 | 2022-11-18T06:53:16.900 | 14,301,370 | 14,301,370 | null |
74,473,335 | 2 | null | 74,473,133 | 1 | null | You can try something like this, assuming A2 and B2 the cells of first name and first day to look:
```
=INDEX(Sheet1!$1:$1000,MATCH(A2,Sheet1!$A:$A,0),MATCH(B2,Sheet1!$1:$1,0))
```
Or, if you want this same formula for the full column:
```
=byrow(A2:A,lambda(each,if(each="","",INDEX(Sheet1!$1:$1000,MATCH(each,Sheet1!$A:$A,0),MATCH(offset(each,0,1),Sheet1!$1:$1,0)))))
```
[](https://i.stack.imgur.com/MatkT.png)
| null | CC BY-SA 4.0 | null | 2022-11-17T09:51:05.513 | 2022-11-17T09:51:05.513 | null | null | 20,363,318 | null |
74,473,376 | 2 | null | 74,473,140 | 0 | null | This is caused by the VSCode's Javascript and Typescript Nightly extension. You can either disable it or downgrade it to fix this issue.
[Reference to the original discussion](https://stackoverflow.com/questions/74470708/vscode-syntax-highlighting-not-working-for-javascript-typescript/74470833#74470833)
| null | CC BY-SA 4.0 | null | 2022-11-17T09:54:06.963 | 2022-11-17T09:54:06.963 | null | null | 17,708,926 | null |
74,473,737 | 2 | null | 74,473,133 | 1 | null | Also doable (are perhaps more simply) using a MAP/FILTER; with your 'Caption 1' table in Sheet1!A1:D4 and your 'Caption 2' table at the top-left of Sheet2, the following in Sheet2!C2 gives you the delivery number for a many names/days as you enter in the columns alongside:
```
=map(A2:A,B2:B,lambda(name,day,ifna(filter(filter(Sheet1!B2:D4,Sheet1!A2:A4=name),Sheet1!B1:D1=day))))
```
N.B. The IFNA blanks out errors for those rows where a Name/Day pair hasn't been entered yet. Extend the ranges in the filter to suit your real data.
| null | CC BY-SA 4.0 | null | 2022-11-17T10:21:11.473 | 2022-11-17T10:21:11.473 | null | null | 18,645,332 | null |
74,473,858 | 2 | null | 74,458,736 | 0 | null | To ensure the uniqueness of every artifact download, each artifact source linked to a release pipeline is automatically provided with a specific download location known as the source alias. Please see the official doc for more details: [Artifact source alias](https://learn.microsoft.com/en-us/azure/devops/pipelines/release/artifacts?view=azure-devops#artifact-source-alias)
I notice:
1.The original build name own ''.
if I change the source alias by cutting the '_', chances are not seeing the pull request trigger part. It's not related to repo location, repo type when you choose build type artifact.
[](https://i.stack.imgur.com/D5zI8.png)
The workaround is:
If your artifact source alias name doesn't have ''.
If you do want cut the system added '' in artifact source alias name.
For your reference, if you want to change artifact source alias name, you can change the name of the build pipeline.
I hope this could do some help.
| null | CC BY-SA 4.0 | null | 2022-11-17T10:29:44.027 | 2022-11-17T10:29:44.027 | null | null | 19,229,290 | null |
74,474,446 | 2 | null | 71,700,380 | 0 | null | Use [UIAutomation](https://www.autohotkey.com/boards/viewtopic.php?f=6&t=104999) instead. It is the successor to the Acc/MSAA framework.
Here is the example1 code
```
#NoEnv
#SingleInstance force
SetTitleMatchMode, 2
;#include <UIA_Interface> ; Uncomment if you have moved UIA_Interface.ahk to your main Lib folder
#include ..\Lib\UIA_Interface.ahk
Run, notepad.exe
UIA := UIA_Interface() ; Initialize UIA interface
WinWaitActive, ahk_exe notepad.exe
npEl := UIA.ElementFromHandle("ahk_exe notepad.exe") ; Get the element for the Notepad window
documentEl := npEl.FindFirstByType("Document") ; Find the first Document control (in Notepad there is only one). This assumes the user is running a relatively recent Windows and UIA interface version 2+ is available. In UIA interface v1 this control was Edit, so an alternative option instead of "Document" would be "UIA.__Version > 1 ? "Document" : "Edit""
documentEl.Highlight() ; Highlight the found element
documentEl.Value := "Lorem ipsum" ; Set the value for the document control.
; Equivalent ways of setting the value:
; documentEl.CurrentValue := "Lorem ipsum"
; documentEl.SetValue("Lorem ipsum")
ExitApp
```
Use some find methods (FindFirstByName, FindFirstByType, ...) to get the element you want to click, and then call element.Click().
[UIAutomation Github wiki](https://github.com/Descolada/UIAutomation/wiki)
| null | CC BY-SA 4.0 | null | 2022-11-17T11:09:56.713 | 2022-11-17T11:22:17.753 | 2022-11-17T11:22:17.753 | 17,941,470 | 17,941,470 | null |
74,474,523 | 2 | null | 74,474,279 | 1 | null | You could use something like `display: flex` with a [gap](https://developer.mozilla.org/en-US/docs/Web/CSS/gap) value.
I added `wrap` because it can help with when the screen size/parent element is too small. You can also see how the gap is maintained between rows and columns...
```
.dispalyFlex {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
```
```
<div class="dispalyFlex">
<div>
<label for="Std">Start Trade Date</label>
<input type="text" id="Std" name="Std" placeholder="Enter start date">
</div>
<div>
<label for="End">End trade Date</label>
<input type="text" id="End" name="End" placeholder="Enter end date">
</div>
<div>
<label for="Fqy">Frequency</label>
<input type="text" id="Fqy" name="Fqy" placeholder="Frequency">
</div>
</div>
```
| null | CC BY-SA 4.0 | null | 2022-11-17T11:15:06.780 | 2022-11-17T11:15:06.780 | null | null | 15,291,770 | null |
74,474,533 | 2 | null | 56,001,390 | 0 | null | Found a solution that works for me:
Reason:
Either the App store or something else tool is downloading the same app with the same identifier at the time Xcode is trying to launch the same app on the Simulator or on MAC.
Solution:
Need to stop/delete all the running installs of the app with the same identifier. (How to stop -> that can be figured out to see either App Store or any other tool ) Then try again to launch the app with Xcode, this time it succeeds.
No need to Reboot the simulator/ Mac or reinstall Xcode.
Thanks, Hope this will help someone.
| null | CC BY-SA 4.0 | null | 2022-11-17T11:16:01.793 | 2022-11-17T11:16:01.793 | null | null | 851,722 | null |
74,474,868 | 2 | null | 43,464,593 | 0 | null | For a more accurate validation, I recommend setting the values in bytes, because 50 MB is 52428800B, which actually 52 MB, not 5000000B.
`.htaccess` example:
```
php_value upload_max_filesize 50000000B // 50M
php_value post_max_size 50000000B // 50M
```
| null | CC BY-SA 4.0 | null | 2022-11-17T11:41:20.877 | 2022-11-17T11:41:20.877 | null | null | 14,191,835 | null |
74,475,281 | 2 | null | 28,950,134 | 1 | null | use in Hibernate properties
| null | CC BY-SA 4.0 | null | 2022-11-17T12:13:23.007 | 2022-11-17T12:13:23.007 | null | null | 6,670,693 | null |
74,475,291 | 2 | null | 74,474,841 | 0 | null | This is a font specific problem with your chosen font size.
For example if you change text style to this:
```
TextStyle(
fontSize: fontSize,
fontWeight: fontWeight ?? FontWeight.normal,
height: 1.0,
color: color ?? Theme.of(context).primaryColor,
),
```
You will no longer see the spaces, check the description on height for more details.
| null | CC BY-SA 4.0 | null | 2022-11-17T12:14:11.380 | 2022-11-17T12:14:11.380 | null | null | 20,003,715 | null |
74,475,905 | 2 | null | 68,842,667 | 0 | null | Try this out:
```
networks: {
development: {
host: "127.0.0.1",
port: 7545,
network_id: "*",
}
},
```
Open the terminal and run the following command in the same folder where the file truffle-config.js is hosted:
```
truffle console ––network development
```
| null | CC BY-SA 4.0 | null | 2022-11-17T13:00:44.590 | 2022-11-17T13:00:44.590 | null | null | 20,530,232 | null |
74,475,961 | 2 | null | 74,473,133 | 0 | null | all you need is simple vlookup:
```
=INDEX(IFNA(VLOOKUP(A9:A11&B9:B11,
SPLIT(FLATTEN(A2:A4&B1:D1&""&B2:D4), ""), 2, )))
```
[](https://i.stack.imgur.com/0Uf8j.png)
| null | CC BY-SA 4.0 | null | 2022-11-17T13:04:32.940 | 2022-11-17T13:04:32.940 | null | null | 5,632,629 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.