Id
int64
1.68k
75.6M
PostTypeId
int64
1
2
AcceptedAnswerId
int64
1.7k
75.6M
ParentId
int64
1.68k
75.6M
Score
int64
-60
3.16k
ViewCount
int64
8
2.68M
Body
stringlengths
1
41.1k
Title
stringlengths
14
150
ContentLicense
stringclasses
3 values
FavoriteCount
int64
0
1
CreationDate
stringlengths
23
23
LastActivityDate
stringlengths
23
23
LastEditDate
stringlengths
23
23
LastEditorUserId
int64
-1
21.3M
OwnerUserId
int64
1
21.3M
Tags
sequence
75,006,528
2
null
74,816,607
0
null
With gratitude, I want to post the code for the solution. Of course, there is probably a better way to do it, but the solution works, and best of all I know why it works. ``` Public Function concatData() As String Dim retVal As String Dim rsHeader As Long, rsCounter As Long Dim rs As DAO.Recordset Dim Val As String Dim strSQL As String 'This code puts the query into a recordset, which is then formatted into a table later Val = [Forms]![FrmAllTracker]![CaseID] strSQL = "Select * From QryTrackerInitRecRecv WHERE [CaseID] = " & Val Set rs = CurrentDb.OpenRecordset(strSQL) 'Get headers 'For rsHeader = 0 To rs.Fields.Count - 1 ' retVal = retVal & rs.Fields(rsHeader).Name & vbTab 'Next 'Replace last TAb with a carriage return 'retVal = Left(retVal, Len(retVal) - 1) & vbCr Do While Not rs.EOF 'Get all records For rsCounter = 0 To rs.Fields.Count - 1 retVal = retVal & rs.Fields(rsCounter).Value & vbTab Next retVal = Left(retVal, Len(retVal) - 1) & vbCr rs.MoveNext Loop concatData = retVal End Function Private Sub BtnGenTracker_Click() If IsNull(Me.CaseClosed) Then MsgBox "Please Enter a Close Date", _ vbOKOnly + vbInformation Exit Sub End If ' Create pointers to Word Document Dim wd As Word.Application Dim doc As Word.Document 'doc As Word.Document Dim bolOpenedWord As Boolean Dim rng As Range Dim Tbl As Word.Table Dim MDate As String MDate = Format([CaseOpen], "mm-dd-yyyy") ' Get pointer to Word Document On Error Resume Next Set wd = GetObject(, "Word.Application") If Err.Number = 429 Then ' If Word is not opened, open it Set wd = CreateObject("Word.Application") bolOpenedWord = True End If wd.Visible = True ' Set this to true if you want to see the document open On Error GoTo 0 Set doc = wd.Documents.Add("\\gsmstore2\COE\Testing Database\TFT1.docx") DoCmd.OpenForm FormName:="FrmRelRecSenAll" With doc On Error Resume Next 'sends particular fields to corresponding FormFields in Word .FormFields("PtName").Result = [Forms]![FrmAllTracker]![FrmSubTherapyRef].[Form].[Text62] .FormFields("COENum").Result = Me.COEMR .FormFields("RefRec").Result = Me.CaseOpen .FormFields("FirstCont").Result = Me.CaseOpen .FormFields("InitRecsRecv").Result = DLookup("FirstOfRecordsRec", "QryTrackerInitRecRecvCFFirst") .FormFields("SuffRecs").Result = Me.SuffRecDate .FormFields("Init2").Result = Me.InitCaseDate .FormFields("TeamRev").Result = DLookup("ContactDate", "QryTrackerTeamRev", "[ContactType] = 14") .FormFields("MCRMeet").Result = DLookup("ContactDate", "QryTrackerTeamRev", "[ContactType] = 6") .FormFields("MCRMeetAct").Result = DLookup("ContactDate", "QryTrackerTeamRev", "[ContactType] = 6") .FormFields("FTDate").Result = InputBox("Please enter Date of FT Release", "FT Release", Default) .FormFields("FirstAppt").Result = InputBox("Please enter Date of 1st offered appt", "1st Offered Date", Default) .FormFields("AssessDebrief").Result = DLookup("ContactDate", "QryTrackerTeamRev", "[ContactType] = 15") .FormFields("RptSent").Result = DLookup("ContactDate", "QryTrackerTeamRev", "[ContactType] = 11") .FormFields("FFollow").Result = DLookup("ContactDate", "QryTrackerTeamRev", "[ContactType] = 12") .FormFields("LFollow").Result = DLookup("ContactDate", "QryTrackerLFollow") .FormFields("CaseClosed").Result = Me.CaseClosed If Not IsNull(DLookup("ContactDate", "QryTrackerTeamRev", "[ContactType] = 4")) Then .FormFields("Bill").Result = "Yes" Else .FormFields("Bill").Result = "No" End If .Application.Activate Set rng = ActiveDocument.Bookmarks("Releases").Range rng.Text = concatData() Set Tbl = rng.ConvertToTable End With 'This foramats the table With Tbl .Columns(1).Borders(wdBorderBottom).LineStyle = wdLineStyleSingle .Columns(1).Borders(wdBorderBottom).LineWidth = wdLineWidth050pt .Columns(1).Borders.InsideLineStyle = wdLineStyleSingle .Columns(1).Borders.InsideLineWidth = wdLineWidth050pt .Columns(1).Width = 125 .Columns(2).Width = 450 .Columns(3).Delete End With wd.ActiveDocument.SaveAs2 ("\\Filelocation\COE\Case Files\" & COEMR & "\Tracking Sheet" & " " & MDate & ".docx") Set doc = Nothing Set wd = Nothing Set rg = Nothing Set Tbl = Nothing End Sub ```
null
CC BY-SA 4.0
null
2023-01-04T13:57:03.080
2023-01-04T18:25:42.860
2023-01-04T18:25:42.860
2,125,010
17,904,161
null
75,006,606
2
null
74,994,456
1
null
If you want a scrollbar, you could try to apply a `overflow:scroll` on #signup-backgroud.
null
CC BY-SA 4.0
null
2023-01-04T14:04:55.303
2023-01-04T14:04:55.303
null
null
17,037,249
null
75,006,647
2
null
74,994,456
0
null
You are using an `absolute` position for the div with id `signup-form`, an `absolute` `div` is a related `div` to its `relative` parent, so better use percentage for the dimensions, not fixed values. This is my example based on your `CSS` classes and `divs` in your image: ``` html, body { width: 100%; height: 100%; } #signup-backgroud { background-color: blueviolet; width: 90%; height: 90%; position: relative; padding: 5%; } #signup-form { background-color: white; width: 90%; max-height: 80%; overflow: auto; z-index: 2; position: absolute; border-radius: 10px; padding: 1em 0; } .example-input { display: block; border-radius: 5px; margin: auto; } .example-button { display: block; margin: auto; border-radius: 5px; } ``` ``` <div id="signup-backgroud"> <div id="signup-form"> <input class="example-input" type="text" /> <input class="example-input" type="text" /> <input class="example-input" type="text" /> <input class="example-input" type="text" /> <input class="example-input" type="text" /> <button class="example-button">Register</button> </div> </div> ```
null
CC BY-SA 4.0
null
2023-01-04T14:08:13.723
2023-01-04T14:08:13.723
null
null
17,925,361
null
75,006,896
2
null
75,000,760
0
null
The following is an array approach. In cell `D2` use the following formula: ``` =LET(A, A2:A9, B, B2:B9, C, C2:C9, MAP(A, B,C, LAMBDA(aa,bb,cc, LET( f, FILTER(C, (B=bb) * (A < aa),""), IF(OR(@f="", TAKE(f,-1)>=cc),"", "Flag"))))) ``` Here is the output: [](https://i.stack.imgur.com/WNQzO.png) On each `MAP` iteration we filter column (`C`) by (`B`) equals to `bb` and only previous dates. To select filtered the output (`f`) that corresponds to previous date we use: `TAKE(f,-1)`, i.e. select the last filtered row (data is sorted by date in ascending order). Then we check for empty condition: the filter result is empty (`@f=""`), i.e. no result returned under filter condition or the output is not ascending.
null
CC BY-SA 4.0
null
2023-01-04T14:29:04.070
2023-01-04T14:29:04.070
null
null
6,237,093
null
75,007,176
2
null
75,003,993
0
null
Cypress commands use the current value of variables and resolve function values when enqueuing commands. So, in your example, the commands are enqueued as `.wait()` and then the outer `.log()`. The value of the date string is calculated when the command is enqueued. The inner `.log()` is enqueued within the `.then()`, and thus has a later date string. Either snippet is fine to use, but be aware of how the subsequent commands in your test will react. Are you manipulating some variable during your `.wait()`, and you would not want the original value to be used for your Cypress command? Probably a good idea to place that command within a `.then()` or some other Cypress command. Are you just interacting with the website and need to wait 10 seconds? You probably don't need to worry about placing commands inside `.then()`.
null
CC BY-SA 4.0
null
2023-01-04T14:50:58.720
2023-01-04T14:50:58.720
null
null
11,625,850
null
75,007,218
2
null
75,007,045
-1
null
Since `width` of 50px seems to matter, use `grid-template-columns` instead of , and for the image use `aspect-ratio: 1;` and if you want `object-fit: cover;` to prevent image distortions ``` .grid { display: grid; grid-template-columns: 50px; } .grid>img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid red; } ``` ``` <div class="grid"> <img alt="width of img &gt; height of row" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkBAMAAACCzIhnAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAADUExURf///6fEG8gAAAAJcEhZcwAADsEAAA7BAbiRa+0AAAAcSURBVFjD7cEBDQAAAMKg909tDwcEAAAAAByoARPsAAFwJuooAAAAAElFTkSuQmCC" /> </div> ```
null
CC BY-SA 4.0
null
2023-01-04T14:54:50.167
2023-01-04T15:02:44.667
2023-01-04T15:02:44.667
383,904
383,904
null
75,007,402
2
null
75,005,774
1
null
I forget to add the base url in my header file . After adding base url in header file (inside head tag), everything is working fine. ``` <base href="https://www.yourbaseurl.com"> ``` Thank you for your answer @Teemu
null
CC BY-SA 4.0
null
2023-01-04T15:07:19.473
2023-01-09T12:31:39.820
2023-01-09T12:31:39.820
20,918,928
20,918,928
null
75,007,408
2
null
75,006,904
0
null
You can set the `render.continuous` argument which is a function to choose and format the statistics calculated by `table1` (for continuous variables). Example, showing total count and missing: ``` table1(~ unfedprcnt + stuntPerc5 | Country, data = sdg2, ## select (and format) desired stats: render.continuous = function(x){ with(stats.default(x), sprintf("missing: %.0f (%.2f %%)", NMISS, 100 * NMISS/N ) )} ## --------------------------------- ) ``` list default stats available: ``` stats.default(1) |> names() ``` see `?sprintf` to see how to include and format variables in a string
null
CC BY-SA 4.0
null
2023-01-04T15:07:45.090
2023-01-04T15:13:51.097
2023-01-04T15:13:51.097
20,513,099
20,513,099
null
75,007,731
2
null
69,323,846
0
null
Also you can use a custom Shape for your Composables to give them a specific outline. Just extend the [Shape](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape) interface and override the createOutline() method. For the corners, the Path API offers a function arcTo(). Then, to draw the edges of the shape, use the lineTo() method. ``` class RoundedRectOutlinedCorner( private val cornerRadius: Dp = 16.dp, private val cutOutHeight: Dp = 60.dp, private val cutOutWidth: Dp = 145.dp ) : Shape { override fun createOutline( size: Size, layoutDirection: LayoutDirection, density: Density ): Outline { return Outline.Generic(Path().apply { val cornerRadius = with(density) { cornerRadius.toPx() } val cutOutHeight = with(density) { cutOutHeight.toPx() } val cutOutWidth = with(density) { cutOutWidth.toPx() } arcTo( rect = Rect(offset = Offset(0f, 0f), Size(cornerRadius, cornerRadius)), startAngleDegrees = 180f, sweepAngleDegrees = 90f, forceMoveTo = false ) lineTo(size.width - cutOutWidth - cornerRadius, 0f) arcTo( rect = Rect( offset = Offset(size.width - cutOutWidth - cornerRadius, 0f), Size(cornerRadius, cornerRadius) ), startAngleDegrees = 270.0f, sweepAngleDegrees = 90f, forceMoveTo = false ) lineTo(size.width - cutOutWidth, cutOutHeight - cornerRadius) arcTo( rect = Rect( offset = Offset(size.width - cutOutWidth, cutOutHeight - cornerRadius), Size(cornerRadius, cornerRadius) ), startAngleDegrees = 180.0f, sweepAngleDegrees = -90f, forceMoveTo = false ) lineTo(size.width - cornerRadius, cutOutHeight) arcTo( rect = Rect( offset = Offset(size.width - cornerRadius, cutOutHeight), Size(cornerRadius, cornerRadius) ), startAngleDegrees = 270f, sweepAngleDegrees = 90f, forceMoveTo = false ) lineTo(size.width, size.height - cornerRadius) arcTo( rect = Rect( offset = Offset(size.width - cornerRadius, size.height - cornerRadius), Size(cornerRadius, cornerRadius) ), startAngleDegrees = 0f, sweepAngleDegrees = 90f, forceMoveTo = false ) lineTo(cornerRadius, size.height) arcTo( rect = Rect( offset = Offset(0f, size.height - cornerRadius), Size(cornerRadius, cornerRadius) ), startAngleDegrees = 90f, sweepAngleDegrees = 90f, forceMoveTo = false ) close() }) } } ``` Then, you can clip a shape with: ``` Modifier .height(250.dp) .clip(RoundedRectOutlinedCorner()), ``` Or with .graphicsLayer/.background etc. [](https://i.stack.imgur.com/2Apre.png)
null
CC BY-SA 4.0
null
2023-01-04T15:30:57.597
2023-01-04T15:30:57.597
null
null
6,177,806
null
75,007,880
2
null
74,841,966
0
null
If you mean to use PostgreSQL as core data DB for Confluence then you just need to follow those guides you specified links to as Confluence supports most SQL databases. But if you mean to get data from some other PostgreSQL DB just as container of some data or system - it seems to be better option to configure separate DB for Confluence (as it is rather big) and use Java API/ REST API to integrate the systems.
null
CC BY-SA 4.0
null
2023-01-04T15:43:37.580
2023-01-04T15:43:37.580
null
null
10,422,943
null
75,007,935
2
null
75,007,781
0
null
This should not happen and it may be related to the Mac version. Make sure you run the latest AnyLogic version, obviously. In addition, delete your Workspace folder, sometimes this solves these kinds of issues (back it up, of course). On Windows, you can find it in `C:\Users\MyUserProfile\.AnyLogicProfessional\Workspace8.8`, but you should be able to find the equivalent location on your Mac :)
null
CC BY-SA 4.0
null
2023-01-04T15:48:32.593
2023-01-04T15:48:32.593
null
null
2,164,728
null
75,008,212
2
null
30,660,340
0
null
You could set the `'XJitter'` argument on a normal `scatter` plot, as [documented here](https://nl.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.scatter-properties.html). The `'XJitterWidth'` argument can be modified to get wider or narrower point clouds. For example, the image below was created as follows: ``` % create dummy data n = 100; x = [ones(n,1), 2*ones(n,1), 3*ones(n,1)]; y = rand([n, 3]); % uniform distribution % create plot scatter(x, y, 'XJitter', 'rand', 'XJitterWidth', 0.2); ``` Not sure when this option was first introduced, but it is also used in the [swarmchart](https://nl.mathworks.com/help/matlab/ref/swarmchart.html) function, which was introduced in Matlab R2020b: ``` swarmchart(x, y, 'XJitterWidth', 0.2); ``` Here's how the jitter is implemented, according to the [docs](https://nl.mathworks.com/help/matlab/ref/swarmchart.html): > The points in a swarm chart are jittered using uniform random values that are weighted by the Gaussian kernel density estimate of y and the relative number of points at each x location. This behavior corresponds to the default 'density' setting of the XJitter property on the Scatter object when you call the swarmchart function.The maximum spread of points at each x location is 90% of the smallest distance between adjacent x values by default:`spread = 0.9 * min(diff(unique(x)));` To see how to plot lines for the mean or median values, have a look at e.g. [this answer](https://stackoverflow.com/a/30661272). If you're interested in two-sample comparisons, have a look at the [gardnerAltmanPlot](https://nl.mathworks.com/help/stats/gardneraltmanplot.html) function (introduced in R2022a). This includes a confidence interval for the difference. [](https://i.stack.imgur.com/Wtn8D.png)
null
CC BY-SA 4.0
null
2023-01-04T16:12:40.907
2023-01-04T17:07:26.783
2023-01-04T17:07:26.783
4,720,018
4,720,018
null
75,008,251
2
null
75,007,893
0
null
I don't know the syntax of tailwind css, but it looks like your path '.assets/images.png' is not valid because of the '.assets' part. Try to find out where your image are located in relation to your resulting css file. If they are organized like ``` assets/ images/ css/ styles.css ``` you can write ``` bg-"[url('../images/images.png')]" ``` If it's like ``` assets/ images/ public/ css/ styles.css ``` you can write ``` bg-"[url('../../assets/images.png')]" ``` But as I said I don't know tailwind. After seeing your Screenshot and the organization of your files I think that `class= "bg-url[('Assets/images.png')]"` will lead to success, because your assets folder is located in the same folder as your index.html and it seems a good idea to write the path inside the quotation marks, not the brackets.
null
CC BY-SA 4.0
null
2023-01-04T16:16:16.700
2023-01-04T17:12:34.957
2023-01-04T17:12:34.957
11,346,378
11,346,378
null
75,008,344
2
null
75,007,346
0
null
First, thanks to every reply... I'm not an English speaker, and I wrote this without any help from translation software, so if you can't understand what I'm talking about, just read the last paragraph to find out the main reason and how did it caused the problem... Maybe I forgot to write this in my question. In fact, I have already fixed the README.MD not found problem in v1.0.1 (and newer), but v1.0.0 still has this bug. pip downloaded both v1.0.1 and 1.0.0 so this error appears again. The output in my question is just a part of all of them... I went to pypi.org and yank every older versions (v1.0.0 and v0.1.0), then retried, and seems pip couldn't find `tkinter`. And here's what I've got: [screenshot again](https://i.stack.imgur.com/6nsWh.png) The main reason of this problem is I wrote tkinter in `requirements.txt` (remember this is my first time to develop a PyPI package). pip couldn't found `tkinter` on its server ,so it tried to install the older version automatically. But the README file not found problem is still exists in the older version, so that's why it failed...
null
CC BY-SA 4.0
null
2023-01-04T16:23:35.653
2023-01-04T16:36:05.100
2023-01-04T16:36:05.100
19,698,302
19,698,302
null
75,008,367
2
null
74,996,500
2
null
Here are some things to try: If the file is already lat,lon order then the transpose would be lon,lat: ``` ncpdq --rdr=lon,lat incorrect_file.nc correct.nc ``` Eliminate the spaces and quote the arguments: ``` ncpdq -a '-lat,-lon,time,depth,-lev' incorrect_file.nc correct.nc ``` Reverse and transpose: ``` ncpdq -O -a '-lon,-lat' incorrect_file.nc correct.nc ```
null
CC BY-SA 4.0
null
2023-01-04T16:25:39.587
2023-01-04T16:25:39.587
null
null
2,573,697
null
75,008,550
2
null
74,999,577
0
null
All of the plugins listed in your screenshot are commercial plugins that require a paid subscription to use via tiny.cloud. If you do not have a paid plan you will need to remove these specific plugins from the `plugins` option in your TinyMCE configuration. The configuration should look something like this: ``` tinymce.init({ selector: "textarea", plugins: [ "advlist", "anchor", "autolink", "charmap", "code", "help", "image", "insertdatetime", "link", "lists", "media", "preview", "searchreplace", "table", "visualblocks", ], ... }); ``` ...just make sure the `plugins` option does not include any of these commercial plugins and the errors will no longer show.
null
CC BY-SA 4.0
null
2023-01-04T16:41:01.317
2023-01-04T16:41:01.317
null
null
1,603,746
null
75,008,839
2
null
29,591,196
0
null
as Waseem Wisa said you add @use 'mix' as *; or you can edit your file like this: ''' ``` @use 'mix'; button{ background-color: $theme-color; border: 0px solid; padding: 0.7rem 3rem; @include mix.border-radius(2rem); } ``` ''' or add index.scss file to your scss folder then forward all module files in it like : _index.scss (this is file name) ``` `forward 'mix';` ``` after that add this file to your main.scss ``` `@use 'index' as *;` ```
null
CC BY-SA 4.0
null
2023-01-04T17:04:40.493
2023-01-04T17:08:56.780
2023-01-04T17:08:56.780
15,599,852
15,599,852
null
75,008,941
2
null
64,931,250
0
null
This error also appears if you move your navigation and screens across files. You can solve this by just running the command below if you are using expo or its equivalent it bare React Native app. ``` expo start --clear ```
null
CC BY-SA 4.0
null
2023-01-04T17:13:35.643
2023-01-04T18:19:27.407
2023-01-04T18:19:27.407
2,125,010
11,961,448
null
75,009,149
2
null
75,007,893
0
null
In your code there is typo, `url` is outside the `[]` Change ``` bg-url['(<imagepath)'] ``` to ``` bg-[url('<imagepath>')] ``` --- #### Extra: Procedure: When using asset image make sure you add your own background images by editing the `theme.backgroundImage` section of your `tailwind.config.js` file: ##### tailwind.config.cs ``` module.exports = { theme: { extend: { backgroundImage: { 'images': "url('.assets/images.png')", add your image here } } } } ``` ##### Then use it as ``` <div class="bg-[url('/img/hero-pattern.svg')]"> <!-- ... --> </div> ``` Refer: [https://tailwindcss.com/docs/background-image](https://tailwindcss.com/docs/background-image)
null
CC BY-SA 4.0
null
2023-01-04T17:33:20.653
2023-01-04T17:33:20.653
null
null
13,431,819
null
75,009,171
2
null
6,028,128
0
null
I think you need to use transform: rotate(0.5turn);
null
CC BY-SA 4.0
null
2023-01-04T17:34:36.857
2023-01-04T17:34:36.857
null
null
8,993,216
null
75,009,233
2
null
75,008,510
3
null
> Does reference `s` point to `s1` itself (address of struct `s1`) or the member `ptr` of `s1`? It is pointing on the whole struct. > Is `s` (the reference) itself a Struct that contains a public member `ptr` or a pointer (`string* s`) like in C++? A pointer; references are a primitive.
null
CC BY-SA 4.0
null
2023-01-04T17:39:16.973
2023-01-04T18:05:55.387
2023-01-04T18:05:55.387
7,884,305
7,884,305
null
75,009,433
2
null
31,113,819
0
null
This will keep the original color of the icon. ``` app:tint="@null" ``` or ``` android:tint="@null" ```
null
CC BY-SA 4.0
null
2023-01-04T17:57:35.513
2023-01-04T17:57:35.513
null
null
11,933,015
null
75,009,899
2
null
5,984,317
0
null
``` SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH, DATA_PRECISION, DATA_SCALE FROM ALL_TAB_COLS Where TABLE_NAME = 'table_name'; ``` If that doesn't work your table may be in capital letters so try this. ``` SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH, DATA_PRECISION, DATA_SCALE FROM ALL_TAB_COLS Where TABLE_NAME = upper('table_name'); ``` I wanted to add some information because of title. This is the first thing that comes up when you search for `toad check what kind of data type something is`. Simply put the cursor on a function, table, or other object in the editor window and press the F4 key, and detail about the object appears. [https://www.oreilly.com/library/view/toad-for-oracle/9780134131900/ch03lev1sec3.html](https://www.oreilly.com/library/view/toad-for-oracle/9780134131900/ch03lev1sec3.html)
null
CC BY-SA 4.0
null
2023-01-04T18:45:43.817
2023-01-04T18:45:43.817
null
null
6,279,326
null
75,010,050
2
null
22,396,322
0
null
To make the plot bigger, write it to a file. I found that a PDF file works well for this. If you use "?pdf", you will see that it comes with height and width options. For something this big, I suggest 6000 (pixels) for both the height and width. For example: ``` pdf("pairs.pdf", height=6000, width=6000) pairs(my_data, cex=0.05) dev.off() ``` The "cex=0.05" is to handle a second issue here: The points in the array of scatter plots are way too big. This will make them small enough to show the arrangements in the embedded scatter plots. The labels not fitting into the diagonal boxes is resolved by the increased plot size. It could also be handled by changing the font size.
null
CC BY-SA 4.0
null
2023-01-04T19:00:27.613
2023-01-04T19:00:27.613
null
null
5,357,406
null
75,010,179
2
null
30,522,230
0
null
# "backAction" (new in iOS16) > If a back button already appears in the navigation bar, setting this property replaces its action without modifying its appearance. Otherwise, setting this property generates a back button with the image or title from the action you specify, unless you use the UINavigationItemStyleEditor navigation style. [https://developer.apple.com/documentation/uikit/uinavigationitem/3987966-backaction?language=objc](https://developer.apple.com/documentation/uikit/uinavigationitem/3987966-backaction?language=objc)
null
CC BY-SA 4.0
null
2023-01-04T19:11:46.967
2023-01-04T19:11:46.967
null
null
2,910
null
75,010,279
2
null
75,005,395
0
null
Foremost, you need to determine the mouse position. It can be done with the following method: ``` public Vector3 GetMouseWorldPosition() { Vector3 mouseScreenPosition = UnityEngine.Input.mousePosition; Vector3 mouseWorldPosition = Camera.main.ScreenToWorldPoint(mouseScreenPosition); return mouseWorldPosition; } ``` I use `Camera.main` here for demonstration purposes. In sake of performance it will be better to cache it as a field in your class. Now, when you have the target coordinates, you can rotate the hand. Here is an example method: ``` public void RotateLimb() { Vector3 rotationTargetPosition = GetMouseWorldPosition(); Vector3 directionVector = (rotationTargetPosition - _limb.transform.position).normalized; float angleInRad = Mathf.Atan2(directionVector.y, directionVector.x); Vector3 targetAngle = _limb.transform.eulerAngles; targetAngle.z = angleInRad * Mathf.Rad2Deg; _limb.rotation = Quaternion.Euler(targetAngle); } ``` Method `RotateLimb()` can be called in `Update` or a coroutine. All the variables of this method can also be stored as private fields in your class. `_limb` must contain `Transform` of your hand GameObject and you can assign it as SerializeField ``` [SerializeField] private Transform _limb; ``` `_limb` will rotate around its pivot. Therefore, pivot must be in the center of the shoulder. In order to achieve it, you can place all the graphics of your hand as a child of `_limb` and adjust it accordingly. This seems like the most straightforward way to do it.
null
CC BY-SA 4.0
null
2023-01-04T19:20:19.727
2023-01-04T19:20:19.727
null
null
18,191,019
null
75,010,463
2
null
75,010,336
1
null
`$user->plan` evaluates to null. You don't guard against this. --- - ``` if ($user->plan?->id) ``` - `optional()` ``` if (optional($user->plan)->id) ``` - `User``Plan` ``` if ($user->plan_id) ```
null
CC BY-SA 4.0
null
2023-01-04T19:36:28.703
2023-01-04T19:36:28.703
null
null
4,339,402
null
75,010,538
2
null
4,553,073
0
null
You should just add the following property to your Datagrid definition: ``` RowHeaderWidth="0" ```
null
CC BY-SA 4.0
null
2023-01-04T19:45:12.723
2023-01-04T19:45:12.723
null
null
16,426,045
null
75,010,676
2
null
75,010,128
0
null
You can add a mesh collider to whatever objects have a mesh renderer component attached, and it should automatically generate it. [https://docs.unity3d.com/Manual/class-MeshCollider.html](https://docs.unity3d.com/Manual/class-MeshCollider.html)
null
CC BY-SA 4.0
null
2023-01-04T20:00:41.323
2023-01-04T20:23:42.720
2023-01-04T20:23:42.720
20,901,192
20,901,192
null
75,010,677
2
null
75,010,653
0
null
To find the gaps between appointments in a schedule, you can try using the following formula: ``` =SUM(B2:B19)-SUMPRODUCT((A2<B$2:B$19)*(B2>A$2:A$19)) ``` You can then convert the duration to minutes by multiplying the result by 1440 (the number of minutes in a day). ``` =1440*(SUM(B2:B19)-SUMPRODUCT((A2<B$2:B$19)*(B2>A$2:A$19))) ```
null
CC BY-SA 4.0
null
2023-01-04T20:00:43.240
2023-01-04T20:08:56.980
2023-01-04T20:08:56.980
16,139,823
16,139,823
null
75,010,703
2
null
75,010,366
2
null
Here's an example. Lots more formatting tweaks could be done, but I'd think of this fundamentally as a `geom_point` and a `geom_text` layer, the rest is tidying up. ``` library(ggplot2) fake_data <- data.frame(x = rep(LETTERS[1:3], each = 4), y = letters[1:4], val = (1:12) / 12) ggplot(fake_data, aes(x=1, y = 1, label = scales::percent(val))) + geom_point(aes(size = val, color = x), alpha = 0.3) + geom_text() + scale_size_area(max_size = 20) + guides(size = "none", color = "none") + facet_grid(y ~ x, switch = "y") + theme_void() + theme(strip.text = element_text()) ``` [](https://i.stack.imgur.com/qzX3S.png)
null
CC BY-SA 4.0
null
2023-01-04T20:03:25.880
2023-01-04T20:09:29.680
2023-01-04T20:09:29.680
6,851,825
6,851,825
null
75,010,785
2
null
75,010,366
2
null
Something like this? ``` df <- data.frame(Question = rep(c("Getting\nhigh-paying jobs", "Being leaders in\ntheir community", "Expressing their\npolitical views", "Getting a good\neducation"), 3), Answer = rep(c("Men have more\nopportunities", "Women have more\nopportunities", "Both about\nthe same"), each = 4), Value = c(54, 44, 31, 11, 3, 4, 3, 6, 38, 49, 63, 81)) library(ggplot2) ggplot(df, aes(y = factor(Question, rev(unique(Question))), x = factor(Answer, unique(Answer)), fill = factor(Answer, unique(Answer)))) + geom_point(shape = 21, aes(size = Value, color = after_scale(fill))) + geom_text(aes(label = Value, color = Answer)) + annotate("segment", x = rep(-Inf, 3), xend = rep(Inf, 3), y = 1:3 + 0.5, yend = 1:3 + 0.5, linetype = 2, alpha = 0.5) + scale_y_discrete() + scale_x_discrete(position = "top") + scale_size_continuous(range = c(5, 30)) + scale_fill_manual(values = c("#959e4a", "#0f6599", "#dddac8")) + scale_color_manual(values = c("black", "white", "white")) + ggtitle(paste("Many think men have more opportunities than women", "when it comes to getting high-paid jobs", sep = "\n")) + theme_void() + theme(legend.position = "none", axis.text.x = element_text(face = 2), axis.text.y = element_text(hjust = 1, face = 2), plot.margin = margin(30, 30, 30, 30), plot.title = element_text(size = 16, face = 2, family = "serif", margin = margin(20, 0, 50, 0))) ``` [](https://i.stack.imgur.com/XNzHE.png)
null
CC BY-SA 4.0
null
2023-01-04T20:12:30.233
2023-01-04T20:12:30.233
null
null
12,500,315
null
75,010,799
2
null
5,605,567
0
null
[Visio 2016] Not a complete solution, just an aid to manual re-routing, ... Add "Connection Point" to the two shapes. Each connection line will then have its own route, ... though some overlapping might still occur. Being graphically challenged, here is how I accomplish it, ... Select the one of shapes (I have to also zoom in to get better placement control). Select the X in the [Home] menu bar. [](https://i.stack.imgur.com/auSKu.png) The selected shape will have small bumps for any shape connection points. Press and hold the `Ctrl` key and hover on the boarder of the shape, the mouse cursor will change to show where a point would be added. Ctrl-Click to add a connection point. Here I added 10 or so points. [](https://i.stack.imgur.com/BhjiX.png) Add additional connection points to the other shape and move the connectors to use unique points on the two shapes. Your connectors will be (more or less) separated. [](https://i.stack.imgur.com/sSRr7.png)
null
CC BY-SA 4.0
null
2023-01-04T20:13:55.790
2023-01-04T20:13:55.790
null
null
4,151,626
null
75,010,845
2
null
75,010,311
0
null
The code is not referencing calculated SKU field of SELECT portion of constructed SQL statement. This concatenation takes place within the VBA procedure, not the SQL statement. Therefore, VBA looks for [SKU] and can't find anything. In fact, that entire DMax() expression is executed in this VBA procedure and if it did succeed it would return a single value for concatenation and every record pulled by the SELECT would have it. If you want to reference calculated SKU field as input to DMax(), then DMax() expression must be embedded in constructed SQL statement. Embedding domain aggregate functions with dynamic arguments within SQL constructed in VBA is tricky when text fields are the criteria. Try: `"# & DMax('[TRANSDATE]', '[TEMP_HISTORY]', '[TRANSTYPE] = 3 AND [SKU]=' & Chr(39) & [SKU] & Chr(39)) & # AS LAST_RCPT, " & _` Or build a SELECT query object which includes DMax() function then call that object by the VBA procedure. `SQLstr = "Insert Into TEMP_ONHAND Select * FROM queryName"` Or don't save aggregate data, calculate it when needed.
null
CC BY-SA 4.0
null
2023-01-04T20:19:00.093
2023-01-05T05:11:16.147
2023-01-05T05:11:16.147
7,607,190
7,607,190
null
75,010,926
2
null
19,440,069
5
null
If you want to have different fills to the strip backgrounds, you can use facets in ggh4x to set a more complicated strip with `strip_themed()`. No hassle with gtables and your plot remains a ggplot, so you can add the usual layers/scales/theme options etc afterwards. ``` library(ggh4x) #> Loading required package: ggplot2 # Only colour strips in x-direction strip <- strip_themed(background_x = elem_list_rect(fill = rainbow(7))) # Wrap variant ggplot(mpg, aes(displ, hwy)) + geom_point() + facet_wrap2(~ class, strip = strip) ``` ![](https://i.imgur.com/syEgC5g.png) It works for the grid layout too, but if you want to colour the vertical strips, you'd need to set the `background_y` argument in `strip_themed()` too. ``` ggplot(mpg, aes(displ, hwy)) + geom_point() + facet_grid2(year ~ cyl, strip = strip) ``` ![](https://i.imgur.com/MQ97lp4.png) [reprex package](https://reprex.tidyverse.org) Disclaimer: I'm the author of ggh4x
null
CC BY-SA 4.0
null
2023-01-04T20:27:10.913
2023-01-04T20:27:10.913
null
null
11,374,827
null
75,011,007
2
null
50,070,532
0
null
So since you specifically wanted to achieve this using CSS grid, this isn't exactly what you wanted, but perhaps it will do: you can drop the DIVS entirely, use the images directly and set the row height by setting `height: 350px;` within `.cell` class (that is moved to apply on the images). In addition, the `.galary` will be a flex, with flex-wrap enabled so that every item that overflows will start a new line. And last, add `flex-grow:1;` to `.cell` (the img tags) so they will take up any empty space in their line. * In the snippet, I've also added `object-fit: cover;` to the images, but this will hide any overflowing part of the image, so you play with it and see what fits for you ``` #gallery { background: #cfc; padding: 32px; display: grid; display: flex; flex-wrap: wrap; gap: 10px; } .cell { background: #fcc; flex-grow: 1; object-fit: cover; } ``` ``` <div id="gallery"> <img class="cell" src="http://via.placeholder.com/350x500" /> <img class="cell" src="http://via.placeholder.com/250x150" /> <img class="cell" src="http://via.placeholder.com/150x150" /> <img class="cell" src="http://via.placeholder.com/370x150" /> </div> ```
null
CC BY-SA 4.0
null
2023-01-04T20:35:59.117
2023-01-04T20:35:59.117
null
null
20,569,143
null
75,011,162
2
null
75,010,311
0
null
Try this: ``` SQLstr = "Insert Into TEMP_ONHAND Select " & _ "COMPANY, WHSE, WHSEDESC, ITEM, ITEMDESC, ESTCOSTPRICE, INVONHAND, CONSIGNINVONHAND, " & _ "QUANTITYINTRANSIT, QTY, COST, LASTINVTRANS, SUPPLIERID, SUPPLIER, " & _ "BUYER, BUYERNAME, PLANNER, PLANNERNAME, BUYFROMBP, BUYFROMBPNAME, " & _ "[COMPANY] & '-' & [WHSE] & '-' & [ITEM] AS SKU, " & _ "Left([WHSEDESC],3) AS TYPE, " & _ "DMax(""[TRANSDATE]"", ""[TEMP_HISTORY]"", ""[SKU] = '"" & [SKU] & ""' AND [TRANSTYPE] = 3"") AS LAST_RCPT, " & _ "#1/1/1950# AS LAST_ISSUE, " & _ "#1/1/2000# AS LAST_ADJUST, " & _ "'TEST' AS TRAN_RANGE, " & _ "'TEST' AS ADJ_RANGE " & _ "From PARTS_ONHAND;" ```
null
CC BY-SA 4.0
null
2023-01-04T20:52:32.537
2023-01-04T20:52:32.537
null
null
3,527,297
null
75,011,401
2
null
75,000,089
0
null
> It seems like you may want something like {FIXED order_id: max(pickup_time - order_time)} because it sounds like you need a single time delta for each order. Then hopefully Tableau will let you take the average of that calculation when you have runner_id and the new field in the view [Mako212](https://stackoverflow.com/users/4421870/mako212) I changed my calculated field from ``` DATEDIFF('minute',[Order Time],[Pickup Time]) ``` to: ``` { FIXED [Order Id]: max(DATEDIFF('minute',[Order Time],[Pickup Time]))} ``` Now the average calculation is correct, no more duplicates [enter image description here](https://i.stack.imgur.com/ZgD9f.png)
null
CC BY-SA 4.0
null
2023-01-04T21:13:49.000
2023-01-06T13:52:39.330
2023-01-06T13:52:39.330
20,923,587
20,923,587
null
75,011,469
2
null
75,010,882
1
null
First you'll need to determine your minimum acceptable font size (subjective) then you'll need to iterate to determine how many lines your text will wrap to. The [textwrap](https://docs.python.org/3.8/library/textwrap.html) module comes in handy here. ``` from typing import Optional, Literal import matplotlib.patches as mpatches import matplotlib.pyplot as plt from matplotlib.text import Annotation from matplotlib.transforms import Transform, Bbox from matplotlib.figure import Figure import textwrap def text_with_autofit( ax: plt.Axes, txt: str, xy: tuple[float, float], width: float, height: float, *, min_font_size = None, transform: Optional[Transform] = None, ha: Literal["left", "center", "right"] = "center", va: Literal["bottom", "center", "top"] = "center", show_rect: bool = False, **kwargs, ): if transform is None: transform = ax.transData # Different alignments give different bottom left and top right anchors. x, y = xy xa0, xa1 = { "center": (x - width / 2, x + width / 2), "left": (x, x + width), "right": (x - width, x), }[ha] ya0, ya1 = { "center": (y - height / 2, y + height / 2), "bottom": (y, y + height), "top": (y - height, y), }[va] a0 = xa0, ya0 a1 = xa1, ya1 x0, y0 = transform.transform(a0) x1, y1 = transform.transform(a1) # rectangle region size to constrain the text in pixel rect_width = x1 - x0 rect_height = y1 - y0 fig: Figure = ax.get_figure() dpi = fig.dpi rect_height_inch = rect_height / dpi # Initial fontsize according to the height of boxes fontsize = rect_height_inch * 72 wrap_lines = 1 while True: wrapped_txt = '\n'.join(textwrap.wrap(txt, width=len(txt)//wrap_lines)) text: Annotation = ax.annotate(wrapped_txt, xy, ha=ha, va=va, xycoords=transform, **kwargs) text.set_fontsize(fontsize) # Adjust the fontsize according to the box size. bbox: Bbox = text.get_window_extent(fig.canvas.get_renderer()) adjusted_size = fontsize * rect_width / bbox.width if min_font_size is None or adjusted_size >= min_font_size: break text.remove() wrap_lines += 1 text.set_fontsize(adjusted_size) if show_rect: rect = mpatches.Rectangle(a0, width, height, fill=False, ls="--") ax.add_patch(rect) return text def main() -> None: fig, ax = plt.subplots(2, 1) # In the box with the width of 0.4 and the height of 0.4 at (0.5, 0.5), add the text. text_with_autofit( ax[0], "Hello, World! How are you?", (0.5, 0.5), 0.4, 0.4, show_rect=True ) # In the box with the width of 0.6 and the height of 0.4 at (0.5, 0.5), add the text. text_with_autofit( ax[1], "Hello, World! How are you? I'm actually a much longer text block, i.e. my width is longer than the other text block.", (0.5, 0.5), 0.4, 0.4, min_font_size=6, show_rect=True, wrap=True, ) plt.show() ``` ![enter image description here](https://i.stack.imgur.com/sYcWg.png)
null
CC BY-SA 4.0
null
2023-01-04T21:21:16.030
2023-01-04T21:21:16.030
null
null
8,451,814
null
75,012,048
2
null
26,030,688
1
null
you need to make your of type `concavePolyhedron` here is an example: ``` let body = SCNPhysicsBody(type: .static, shape: SCNPhysicsShape(geometry: shape, options: [SCNPhysicsShape.Option.type: SCNPhysicsShape.ShapeType.concavePolyhedron, SCNPhysicsShape.Option.scale: scale])) ``` optionally you can define a scale factor for the `physicsBody`
null
CC BY-SA 4.0
null
2023-01-04T22:30:18.597
2023-01-04T22:30:18.597
null
null
7,839,658
null
75,012,251
2
null
75,010,945
3
null
One option would be to use `geom_text` with `stat="waffle"`. Doing so allows to shift the icons aka labels via `position_nudge`: ``` library(ggplot2) library(waffle) ggplot(data, aes( label = x, values = ht, color = icon )) + geom_text( stat = "waffle", n_rows = 5, make_proportional = FALSE, size = 5, flip = TRUE, family = "Font Awesome 5 Free", position = position_nudge(y = -.9), vjust = 0 ) + facet_wrap(~x, nrow = 1, strip.position = "bottom") + scale_x_discrete() + scale_y_continuous( labels = function(x) x * 5, expand = c(0, 0), limits = c(0, 20) ) + scale_label_pictogram( name = NULL, values = c( "rocket" = "rocket" ) ) + theme(legend.position = "none") ``` [](https://i.stack.imgur.com/QvLxb.png)
null
CC BY-SA 4.0
null
2023-01-04T23:00:51.707
2023-01-04T23:00:51.707
null
null
12,993,861
null
75,012,420
2
null
75,010,103
0
null
Change your options in each of the 5 frames from checkboxes to listboxes. Keep your current `UserForm_initialize` but add what is in the example below to it. Keep your current selection for showing the 5 frames. Change your CommandButton to process the listbox as in the example below. Example: Create a user form and paste this code into it. Add a command button and a list box to the frame and run it to see how it works. ``` Const sOptions As String = "Self-Financing,Equity financing by Coppermine,Debt financing by Coppermine," & _ "Equity Financing by External Party,Debt Financing by external party,Customer financing" Private Sub CommandButton1_Click() 'process each list box looking for values Dim selectedOptions As String With ListBox1 For idx = 0 To .ListCount - 1 If .Selected(idx) Then selectedOptions = selectedOptions & .List(idx) & "," End If Next idx End With MsgBox selectedOptions 'save the value to your worksheet selectedOptions = "" ' repeat for all of the list boxes. End Sub Private Sub UserForm_Initialize() ' repeat this setup for each of the frame's content, with a unique List Box in each ListBox1.ListStyle = fmListStyleOption ListBox1.MultiSelect = fmMultiSelectMulti ListBox1.List = Split(sOptions, ",") ' set the values for the list box End Sub ```
null
CC BY-SA 4.0
null
2023-01-04T23:27:33.610
2023-01-04T23:27:33.610
null
null
16,708,107
null
75,012,534
2
null
75,007,379
0
null
Here is a quick example. Hopefully this gives you enough info. XAML ``` <TextBox AcceptsReturn="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" PreviewTextInput="TextBox_PreviewTextInput"/> ``` Code Behind ``` private void TextBox_PreviewTextInput(object sender, TextCompositionEventArgs e) { if (sender is not TextBox box) //semi-redundant safety check return; //make sure there is text, also make sure there is a newline in the box if (string.IsNullOrEmpty(box.Text) || (!box.Text.Contains('\n') && !box.Text.Contains('\r'))) return; //through some testing I found the \r would be there without a \n so I include both for completeness var lastReturn = Math.Max(box.Text.LastIndexOf('\r'), box.Text.LastIndexOf('\n')); if (box.CaretIndex <= lastReturn) e.Handled = true; } ``` This solution can be expanded on, but it mainly prevents the Text from changing whenever Text is entered on any line but the last. I like it as you can also move the Text Caret around to get standard functionality still (highlighting, selection, etc.)
null
CC BY-SA 4.0
null
2023-01-04T23:50:26.177
2023-01-04T23:50:26.177
null
null
6,552,757
null
75,012,746
2
null
25,559,036
0
null
this worked for me and my project. by stacking the images on top of each other I was essentially able to mirror them even when the position of the box may change ``` background-image: url("background.jpeg"); background-repeat: no-repeat; background-attachment: fixed; background-position: center; background-size: cover; -webkit-text-fill-color: transparent; -webkit-background-clip: text; background-clip: text; ```
null
CC BY-SA 4.0
null
2023-01-05T00:34:14.753
2023-01-05T00:34:14.753
null
null
17,544,977
null
75,013,033
2
null
74,828,643
0
null
Just put the RadioGroup in RelativeLayout: ``` <RelativeLayout android:id="@+id/spinner_parent" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/border" android:layout_marginTop="10dp" android:layout_marginHorizontal="10dp"> <RadioGroup android:id="@+id/radioGroupComplete" android:checkedButton="@id/radioButtonCompleteNo" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginHorizontal="16dp" android:layout_marginVertical="8dp" android:padding="8dp" android:orientation="horizontal"> <RadioButton android:id="@+id/radioButtonCompleteYes" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:text="@string/todo_form_yes"/> <RadioButton android:id="@+id/radioButtonCompleteNo" android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1" android:text="@string/todo_form_no"/> </RadioGroup> </RelativeLayout> ``` And add border.xml in "drawable" folder: ``` <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="@color/white"/> <stroke android:width="1dp" android:color="@color/black" /> <padding android:left="0dp" android:top="0dp" android:right="0dp" android:bottom="0dp" /> </shape> ```
null
CC BY-SA 4.0
null
2023-01-05T01:33:41.910
2023-01-05T01:33:41.910
null
null
19,128,712
null
75,013,118
2
null
74,936,584
0
null
According to your code snippet, the output `om` is a tensor of category indices (0 - background, 1 - aeroplane, 2 - bicycle,....). In order to get the area of a specific category, you just need to compare the output map with the corresponding index, then sum up the results. For example, with the category `boat` with the index 4: ``` BOAT_INDEX = 4 area = torch.sum(om == BOAT_INDEX).item() ```
null
CC BY-SA 4.0
null
2023-01-05T01:52:24.970
2023-01-05T01:52:24.970
null
null
8,689,914
null
75,013,223
2
null
74,996,557
0
null
From your description, you want to use Pipeline variable to set the Task Group name. I am afraid that there is no such pipeline variable can achieve this requirement. The Pipeline variable will only be expanded when the pipeline is running. Then the pipeline variable will update the task name. When you set a variable in the task definition, it cannot be expanded directly. The workaround is that you can hardcode the task name in task definition. In this case, it will show the expected task name. For more detailed info, you can refer to this doc: [Define variables](https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch)
null
CC BY-SA 4.0
null
2023-01-05T02:12:06.947
2023-01-05T02:12:06.947
null
null
13,464,420
null
75,013,633
2
null
70,866,217
1
null
[https://github.com/x3rocode/xblur-compose/tree/main](https://github.com/x3rocode/xblur-compose/tree/main) I made simple realtime compose blur! try this. ![xblur](https://i.stack.imgur.com/0bzZp.gif)
null
CC BY-SA 4.0
null
2023-01-05T03:43:38.243
2023-01-06T00:59:36.357
2023-01-06T00:59:36.357
20,927,995
20,927,995
null
75,013,961
2
null
75,013,861
0
null
in your class change the display property value to and add property in the same class with a value of ``` .dropdown-content { display: flex; flex-direction: column; } ``` and it will look like this [](https://i.stack.imgur.com/lZOHD.png) will only work if the display value is flex/inline-flex
null
CC BY-SA 4.0
null
2023-01-05T04:50:21.913
2023-01-05T04:50:21.913
null
null
20,197,024
null
75,013,986
2
null
75,013,861
0
null
Welcome To StackOverFlow Sekani, You should try like this ``` a { text-decoration: none; } nav { font-family: monospace; } ul { background: green; list-style: none; margin: 0; padding-left: 0; } li { color: #fff; background: green; display: block; float: left; padding: 1rem; position: relative; text-decoration: none; transition-duration: 0.5s; } li a { color: #fff; } li:hover, li:focus-within { background: red; cursor: pointer; } li:focus-within a { outline: none; } ul li ul { background: green; visibility: hidden; opacity: 0; min-width: 5rem; position: absolute; transition: all 0.5s ease; margin-top: 1rem; left: 0; display: none; } ul li:hover > ul, ul li:focus-within > ul, ul li ul:hover, ul li ul:focus { visibility: visible; opacity: 1; display: block } ul li ul li { clear: both; width: 100%; } ``` ``` <nav role="navigation"> <ul> <li><a href="#">Home</a></li> <li><a href="#">News</a></li> <li><a href="#">Multimedia</a> <ul class="dropdown"> <li><a href="#">Sub-1</a></li> <li><a href="#">Sub-2</a></li> <li><a href="#">Sub-3</a></li> </ul> </li> </ul> </nav> ```
null
CC BY-SA 4.0
null
2023-01-05T04:56:16.790
2023-01-05T04:56:16.790
null
null
17,543,773
null
75,014,114
2
null
75,014,073
0
null
You Could try something like a BottomAppBar class and set the shape property to a CircularNotchedRectangle with the desired radius. Here's an example: ``` BottomAppBar( shape: CircularNotchedRectangle(), notchMargin: 4.0, child: Container( height: 50.0, ), ) ``` The notchMargin property determines the distance between the edge of the app bar and the start of the notch. You can adjust this value to control the size of the curve. You can also customize the appearance of the app bar by setting its background color and adding buttons or other widgets to it. For example: ``` BottomAppBar( shape: CircularNotchedRectangle(), notchMargin: 4.0, child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ IconButton( icon: Icon(Icons.menu), onPressed: () {}, ), IconButton( icon: Icon(Icons.search), onPressed: () {}, ), ], ), ) ```
null
CC BY-SA 4.0
null
2023-01-05T05:16:52.690
2023-01-05T05:16:52.690
null
null
3,148,260
null
75,014,188
2
null
75,002,108
1
null
You need to bind the `inputName` property in the child to the `parentValue` property of the parent like below: ``` <app-child *ngIf="submitted" [inputName]="parentValue"> </app-child> ``` Also, you need to remove `<router-outlet></router-outlet>` from parent as well because you already called `child` component in `parent` component. Also, your `navToChild` function should be like below: ``` navToChild(){ this.parentValue=this.parentData.nativeElement.value this.submitted=true; this.router.navigate(['child']); } ``` You can see working [example here](https://stackblitz.com/edit/angular-ivy-okrdmt).
null
CC BY-SA 4.0
null
2023-01-05T05:28:59.253
2023-01-05T05:40:25.073
2023-01-05T05:40:25.073
1,355,344
1,355,344
null
75,014,193
2
null
75,014,073
0
null
``` class Home extends StatelessWidget { const Home({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return Scaffold( backgroundColor: Colors.deepOrangeAccent, body: Column( children: [ SafeArea( bottom: false, child: Row( children: [ IconButton(onPressed: () {}, icon: Icon(Icons.arrow_back_ios, color: Colors.white,)), Text('Document Details', style: TextStyle( fontWeight: FontWeight.w500, fontSize: 16, color: Colors.white ),) ], ), ), Flexible( child: Container( height: MediaQuery.of(context).size.height, width: MediaQuery.of(context).size.width, decoration: BoxDecoration( color: Colors.grey[200], borderRadius: const BorderRadius.only( topRight: Radius.circular(30.0), topLeft: Radius.circular(30.0), ), boxShadow: [ BoxShadow( color: Colors.black.withOpacity(0.5), spreadRadius: 4, blurRadius: 6, offset: const Offset(0, 3), // changes position of shadow ), ], ), child: Column( children: [ Text('Items'), Text('Items'), Text('Items') ], ), ) ) ], ), ); } } ``` You do not need to use the appbar if it does not meet your needs. Just customise your widget however you like and use safearea to avoid mobile network bars and battery bars. Play around with the home widget by adding padding and change icon to meet your need. [](https://i.stack.imgur.com/mC2Qh.jpg)
null
CC BY-SA 4.0
null
2023-01-05T05:29:59.103
2023-01-05T05:29:59.103
null
null
6,067,774
null
75,014,238
2
null
75,013,861
0
null
I just took your code and did a little tweaking: ``` /* Dropdown Button */ .dropbtn { background-color: #04AA6D; color: white; padding: 16px; font-size: 16px; border: none; } /* The container <div> - needed to position the dropdown content */ .dropdown { position: relative; display: inline-block; } /* Dropdown Content (Hidden by Default) */ .dropdown-content { display: none; position: absolute; background-color: #f1f1f1; min-width: 100px; box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); z-index: 1; margin: auto; } /* Links inside the dropdown */ .dropdown-content a { color: black; text-decoration: none; min-width: 100px; margin: auto; } /* Change color of dropdown links on hover */ .dropdown-content a:hover {background-color: #ddd;} /* Show the dropdown menu on hover */ .dropdown:hover .dropdown-content {display: block;} /* Change the background color of the dropdown button when the dropdown content is shown */ .dropdown:hover .dropbtn {background-color: #3e8e41;} topnav { overflow: hidden; background-color: #9e2118; } .topnav a { float: left; color: #black; text-align: center; padding: 14px 16px; text-decoration: none; font-size: 17px; } .topnav a:hover { background-color: rgb(187, 98, 98); color: black; } .topnav a.active { background-color: rgb(107, 0, 0); color: white; } .topnav .icon { display: none; } ```
null
CC BY-SA 4.0
null
2023-01-05T05:36:03.930
2023-01-05T05:36:53.287
2023-01-05T05:36:53.287
5,344,630
5,344,630
null
75,014,637
2
null
75,014,281
0
null
Follow this code; I hope I have shown you a new way. ``` selected(event, index) { console.log(event); this.selectedLangs.add(event.value.name); this.skillsForSelectedPath[index] = event.value.name; this.cities = this.cities.filter((city) => city.name !== event.value); } deleteCreds() { const creds = this.form.controls.credentials as FormArray; creds.removeAt(0); const selectedCity = this.cities.find( (city) => city.name === this.selectedLangs.values().next().value ); this.cities.splice(this.cities.indexOf(selectedCity), 1); } ``` [https://stackblitz.com/edit/primeng-dropdown-demo-eqyzqq?file=src/app/app.component.ts](https://stackblitz.com/edit/primeng-dropdown-demo-eqyzqq?file=src/app/app.component.ts)
null
CC BY-SA 4.0
null
2023-01-05T06:38:05.130
2023-01-05T06:38:05.130
null
null
14,884,060
null
75,014,642
2
null
66,027,530
1
null
``` import React from 'react'; import { withTranslation } from 'react-i18next'; class YourClassComponent extends React.Component { render() { const { t } = this.props; return ( <div>{t("infomationbase.EmPmlnspection")}</div> } } ``` What done above is correct just replace the export from ``` export default withTranslation(YourClassComponent); ``` to ``` export default withTranslation()(YourClassComponent); ```
null
CC BY-SA 4.0
null
2023-01-05T06:38:27.937
2023-01-05T06:38:27.937
null
null
20,430,307
null
75,014,746
2
null
75,001,145
0
null
For Ventura, the reference to the Voice Control switch is: ``` click checkbox "Voice Control" of group 1 of scroll area 1 of group 1 of group 2 of splitter group 1 of group 1 of window "Voice Control" ```
null
CC BY-SA 4.0
null
2023-01-05T06:48:47.333
2023-01-05T06:48:47.333
null
null
2,007,956
null
75,014,995
2
null
75,014,963
4
null
not everything can one line; however, this can perhaps be easier; you use `Lazy<T>`, but for a simple `static` here where you're mostly after deferred instantiation, I would probably lean on static field behaviour and a nested class: ``` public static LockSDP GetInstance => LockProxy.Instance; private static class LockProxy { public static readonly LockSDP Instance = new(); } ```
null
CC BY-SA 4.0
null
2023-01-05T07:19:52.587
2023-01-05T07:19:52.587
null
null
23,354
null
75,015,049
2
null
75,014,963
2
null
I'd probably prefer [Marc's answer](https://stackoverflow.com/a/75014995/982149) but just so it's there: ``` private static readonly Lazy<LockSDP> _lazyInstance = new Lazy<LockSDP>(() => new LockSDP()); // Default is Threadsafe access. public static LockSDP Instance => _lazyInstance.Value; ``` And yes: I do realize it is still 2 lines :/ For reference: [Lazy<T>](https://learn.microsoft.com/en-us/dotnet/api/system.lazy-1?view=net-7.0)
null
CC BY-SA 4.0
null
2023-01-05T07:24:37.787
2023-01-05T07:35:47.627
2023-01-05T07:35:47.627
982,149
982,149
null
75,015,388
2
null
75,015,152
0
null
Based on the code and output that you shared I am guessing that the error is because you have `mn = 0` inside the loop. And on every iteration of loop you are incrementing mn by 1 and then reassigning it to 0 again. So you are only getting 1 as a prefix for every file name. If my assumption is correct then moving mn=0 outside the loop should solve your issue.
null
CC BY-SA 4.0
null
2023-01-05T08:02:43.940
2023-01-07T12:01:12.240
2023-01-07T12:01:12.240
100,297
9,243,755
null
75,015,387
2
null
7,725,809
0
null
To preserve colours in stdout/stderr stream don't spawn the application directly, rather using `unbuffer` tool (on linux you might need to run `apt install expect`) ``` let app = "command to run"; let args = ["--array", "--of", "--arguments"]; var child = cp.spawn("unbuffer", [app, ...args], {cwd:tempPath()}); child.stdout.on('data', function (data) { process.stdout.write('stdout: ' + data); }); child.stderr.on('data', function (data) { process.stdout.write('stderr: ' + data); }); child.on('close', (code) => { console.log(`child process exited with code ${code}`); }); ```
null
CC BY-SA 4.0
null
2023-01-05T08:02:43.897
2023-01-05T08:02:43.897
null
null
6,608,306
null
75,015,757
2
null
75,015,626
0
null
If you need to filter by such a SubjectId, this can be accomplished in raw SQL by using the [STRING_SPLIT method](https://learn.microsoft.com/en-us/sql/t-sql/functions/string-split-transact-sql): ``` select * from ( SELECT value FROM STRING_SPLIT('1,2,3,4', ',') ) source where value = 3 ```
null
CC BY-SA 4.0
null
2023-01-05T08:41:38.923
2023-01-05T08:41:38.923
null
null
1,838,048
null
75,016,042
2
null
74,975,445
0
null
Found a solution after a few days of debugging ``` $hostname = "Host" #extreact domain information $dom = [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain() $root = $dom.GetDirectoryEntry() #search through ldap the indomain as set before $search = [System.DirectoryServices.DirectorySearcher]$root $search.Filter = "(Name=$hostname)" $search.SizeLimit = 3000 $result = $search.FindOne() #set security object $object = $result.GetDirectoryEntry() $sec = $object.ObjectSecurity ## set the rights and control type to a generic write $act = [System.Security.AccessControl.AccessControlType]::Allow $adrights = [System.DirectoryServices.ActiveDirectoryRights]::GenericWrite # set the sid of the 'Everyone' security group $everyone = New-Object Security.Principal.SecurityIdentifier ([Security.Principal.WellKnownSidType]::WorldSid, $null) $sec.SetGroup($everyone) $sid = $everyone # apply rule $newrule = New-Object -TypeName System.DirectoryServices.ActiveDirectoryAccessRule -ArgumentList ($sid), $adrights, $act $sec.AddAccessRule($newrule) $object.CommitChanges() ```
null
CC BY-SA 4.0
null
2023-01-05T09:08:15.320
2023-01-05T09:08:15.320
null
null
20,905,586
null
75,016,240
2
null
75,015,880
0
null
If your lambda function is running within VPC, a better way would be to use EFS feature with Lambda where EFS can help you deploying large code packages [https://aws.amazon.com/blogs/compute/using-amazon-efs-for-aws-lambda-in-your-serverless-applications/](https://aws.amazon.com/blogs/compute/using-amazon-efs-for-aws-lambda-in-your-serverless-applications/) If outside of VPC, go for lambda container image, this will support 10 GB
null
CC BY-SA 4.0
null
2023-01-05T09:24:28.353
2023-01-05T09:24:28.353
null
null
4,840,338
null
75,016,251
2
null
28,313,372
0
null
You must delete your `C:\Program Files\nodejs` directory. Check the version of the node available with `nvm list`. If you have your version, run command `nvm use x.x.x`. otherwise run `nvm install x.x.x` and run command `nvm use x.x.x`.
null
CC BY-SA 4.0
null
2023-01-05T09:25:24.750
2023-01-06T00:06:03.410
2023-01-06T00:06:03.410
10,210,358
15,374,205
null
75,016,317
2
null
75,016,040
0
null
My bad, i didn't check 2023 year on the filter page.
null
CC BY-SA 4.0
null
2023-01-05T09:31:23.227
2023-01-05T09:31:23.227
null
null
8,942,295
null
75,016,318
2
null
75,016,249
-2
null
There are a few potential issues that could cause errors in this code: Make sure that the IPFS library is correctly imported and available in your code. You can do this by adding the following line at the top of your code: import Ipfs from 'ipfs'; Make sure, also, that the element with the ID 'demo' exists in the HTML document. If it does not exist, the following line of code will throw an error: document.getElementById('demo').innerHTML = JSON.stringify(results) . If you are running this code in a web browser, you may need to handle any potential CORS (Cross-Origin Resource Sharing) errors. You can do this by serving your HTML file from a local web server, or by using a CORS proxy.
null
CC BY-SA 4.0
null
2023-01-05T09:31:28.390
2023-01-05T09:35:28.597
2023-01-05T09:35:28.597
11,714,331
11,714,331
null
75,016,359
2
null
27,316,578
0
null
In newest version (my 2021.2) found this option here: Window -> Editor Tabs -> Split Right/Split Down [](https://i.stack.imgur.com/uFkvk.png)
null
CC BY-SA 4.0
null
2023-01-05T09:34:34.133
2023-01-05T09:34:34.133
null
null
2,531,747
null
75,016,720
2
null
75,016,577
0
null
The loop iterates over `--T`, and then you use `T` as the array index for the result, meaning you're getting the results in order. One way to solve this is to use a straight-up ascending for loop and use its index as the array index: ``` for (int i = 0; i < T; ++i) { // The logic remains unchanged String arr[] = sc.nextLine().split(" "); System.out.println("arr[0]: " + Integer.parseInt(arr[0])); System.out.println("arr[1]: " + Integer.parseInt(arr[1])); System.out.println("arr[2]: " + Integer.parseInt(arr[2])); // i is used for the array index, not T if ((Integer.parseInt(arr[0]) + Integer.parseInt(arr[1]) + Integer.parseInt(arr[2])) == 180) { output[i] = "YES"; } else { output[i] = "NO"; } } ```
null
CC BY-SA 4.0
null
2023-01-05T10:03:28.783
2023-01-05T10:03:28.783
null
null
2,422,776
null
75,016,762
2
null
75,016,577
2
null
The variable `T` runs "backwards"; it starts at - in the example - `2` and ends at `0`. Variable `T` is also used to index the `output` array. This means that: - `output[2]``40 40 100`- `output[1]``45 45 90`- `output[0]``180 1 1` Now we see that - in fact - the value of `output[0]` (being `"NO"`) is correct since `180 + 1 + 1 = 182 != 180`. I rewrote the program such that the `output` is stored in the order the values are calculates: ``` class Ideone { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = Integer.parseInt(sc.nextLine().split(" ")[0]); String[] output = new String[num]; for (int index = 0; index < num; ++index) { String arr[] = sc.nextLine().split(" "); System.out.println("arr[0]: " + Integer.parseInt(arr[0])); System.out.println("arr[1]: " + Integer.parseInt(arr[1])); System.out.println("arr[2]: " + Integer.parseInt(arr[2])); if ((Integer.parseInt(arr[0]) + Integer.parseInt(arr[1]) + Integer.parseInt(arr[2])) == 180) { output[index] = "YES"; } else { output[index] = "NO"; } } System.out.println(Arrays.toString(output)); } } ``` This then gives the output: ``` ... [YES, YES, NO] ``` [Ideone.com demo](https://ideone.com/rsO8t4) --- Some remarks: - We should use descriptive names for variables (e.g. `String[] arr` could be `String[] userInputs`)- variable names should be writte in `lowerCamelCase` (`int T = ...` -> `int t = ...`)- Instead of parsing the `String`s over and over again, I would suggest to parse them once, and then - for example - store them in a `List<Integer>` and work with them, e.g.:``` List<Integer> values = Arrays.stream(arr) .mapToInt(Integer::parseInt) .boxed() .toList(); ``` - While possible, it is uncommon to write the array-brackets (`[]`) after the variable name. We normally write them after the type since they influence the type (`String arr[]` -> `String[] arr`).
null
CC BY-SA 4.0
null
2023-01-05T10:06:43.033
2023-01-05T14:22:50.720
2023-01-05T14:22:50.720
4,216,641
4,216,641
null
75,016,773
2
null
75,016,577
0
null
you've assigned YES/NO into the array `output` with a reserved sort.when you are using `--T` the index of `output` in loop was 2,1,0 so the values in output are ["NO","YES","YES]. that's why you get a wrong result. You can change the while loop to a simple for loop. `for(int i=0;i<output.size;i++`)` and assign YES/NO to output[i]
null
CC BY-SA 4.0
null
2023-01-05T10:07:14.003
2023-01-05T10:07:14.003
null
null
13,302,222
null
75,016,963
2
null
75,007,727
0
null
Suppose the dbId of the parent node `16.12-f...ihw, recht:500x 600` is 1234. To get its child count, just call [InstanceTree#getChildCount](https://aps.autodesk.com/en/docs/viewer/v7/reference/Private/InstanceTree/#getchildcount-dbid) on it. ``` let model = viewer.getAllModels()[0]; let it = model.getInstanceTree(); let nChild = it.getChildCount( 1234 ); //!<<< here you go ```
null
CC BY-SA 4.0
null
2023-01-05T10:24:26.883
2023-01-05T10:24:26.883
null
null
7,745,569
null
75,017,165
2
null
75,016,658
-1
null
Your input does look like this: ``` QID 1 Where, oh where, did the Joel Data go? QID 2 What time is it? QID 3 In what time zone? ``` It's more something like this: ``` <p><B>QID 1</B><BR>Where, oh where, did the Joel Data go?</p> <p><B>QID 2</B><BR>What time is it?</p> <p><B>QID 3</B><BR> In what time zone?</p> ``` This means that you will have to take the html tags into consideration and `\s` (whitespace) will not be enough. --- Html and regex don't mix well and you may want to consider using a html library or some other way (maybe `string.Split`). Please see, [RegEx match open tags except XHTML self-contained tags](https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454) and its legendary answer.
null
CC BY-SA 4.0
null
2023-01-05T10:40:15.953
2023-01-05T10:49:37.963
2023-01-05T10:49:37.963
581,076
581,076
null
75,017,196
2
null
74,995,231
3
null
The reason you are getting the simple markdown syntax for image insertion after including the `landscape` environment is because [pandoc](https://pandoc.org/MANUAL.html) (the underlying document converter of `r-markdown`) [does not parse the content of latex environments](https://groups.google.com/g/pandoc-discuss/c/oZETB5Ii1Cw). To add more details, when you click the `knit` button of Rstudio, the `{knitr}` package generates a markdown file containing the markdown syntax for image which as below, ``` \begin{landscape} ![](landscape-example_files/figure-latex/call-1.pdf)<!-- --> NULL ![](landscape-example_files/figure-latex/call-2.pdf)<!-- --> NULL ![](landscape-example_files/figure-latex/call-3.pdf)<!-- --> NULL \end{landscape} ``` And then `pandoc` is supposed to convert the markdown syntax into latex commands (i.e. `\includegraphics`), But since `pandoc` sees the latex environment `\begin{landscape}`, it doesn't do the conversion and keeps them as is. So to solve it, we can use the `\landscape ... \endlandscape` command instead of latex environment (thanks to the informative comment by @samcarter_is_at_topanswers.xyz) ``` --- title: "Landscape Problem" author: "Dom42" date: "`r Sys.Date()`" output: pdf_document: keep_tex: yes header-includes: - \usepackage{pdflscape} --- ```{r function} print.plots.landscape <- function() { cat("\\landscape\n") for (i in 1:3) { temp.plot <- plot(hist(mtcars[,i])) print(temp.plot) } cat("\n\\endlandscape\n") } ``` ```{r call, results='asis'} print.plots.landscape() ``` ```
null
CC BY-SA 4.0
null
2023-01-05T10:42:31.930
2023-01-05T11:26:33.953
2023-01-05T11:26:33.953
10,858,321
10,858,321
null
75,017,350
2
null
75,016,334
0
null
[[Scopes]] is not an internal JavaScript property, it's a feature created by Chromium debugger. As mentioned in the comments, this feature [was removed](https://bugs.chromium.org/p/chromium/issues/detail?id=1365858) from the `dir` tree. [The same information is available](https://developer.chrome.com/docs/devtools/javascript/#scope) in Scope tab of the debugger during a breakpoint pause.
null
CC BY-SA 4.0
null
2023-01-05T10:55:42.237
2023-01-05T10:55:42.237
null
null
1,169,519
null
75,017,530
2
null
75,010,012
0
null
I solved this problem typing like this: ``` fill: (props: DefaultTheme['colors']) => props.blue500, ```
null
CC BY-SA 4.0
null
2023-01-05T11:10:51.207
2023-01-05T11:10:51.207
null
null
15,640,992
null
75,017,695
2
null
74,961,360
1
null
No, it is not unsatisfiable. There exists indeed exactly one Hamiltonian cycle from `a`, which is clearly `a->b->c->d(->a)`. You are just declaring the nodes using numbers, but the starting node is `a` (not a number). The part in which you encoded the logics of the problem looks ok to me. Replacing `s(a)` with `s(1)` we obtain `SATISFIABLE` as result: ``` clingo version 5.3.0 Reading from test.lp Solving... Answer: 1 n(1) n(2) n(3) n(4) e(4,1) e(1,2) e(1,3) e(2,3) e(2,4) e(3,1) e(3,4) s(1) r(1) p(1,2) o(1,3) p(2,3) r(2) r(3) op(2) p(4,1) o(2,4) o(3,1) p(3,4) r(4) op(4) op(1) op(3) SATISFIABLE Models : 1 Calls : 1 Time : 0.000s (Solving: 0.00s 1st Model: 0.00s Unsat: 0.00s) CPU Time : 0.000s ``` --- P.S. Note that the two following lines: ``` p(X,Y):- not o(X,Y), e(X,Y). o(X,Y):- not p(X,Y), e(X,Y). ``` can be compacted with: ``` p(X,Y) | o(X,Y) :- e(X,Y). ```
null
CC BY-SA 4.0
null
2023-01-05T11:24:39.583
2023-01-05T11:31:54.953
2023-01-05T11:31:54.953
4,607,733
4,607,733
null
75,017,820
2
null
54,415,332
0
null
Sometimes this error is caused by the debug keystore at least in my case that was the issue. I ran this command to generate a new debug keystore Windows Users: ``` keytool -genkey -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000 ``` MAC / Linux Users: ``` $ keytool -genkey -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000 ``` Answer the prompt questions. When the keystore is generated successfully go to `android/app` and place the keystore file there while updating your `android/app/build.gradle` file with: ``` signingConfigs { debug { storeFile file('the-keystore-name.keystore') storePassword 'the-keystore-prompt-password' keyAlias 'the-keystore-alise-name' keyPassword 'the-keystore-promtp-password' } } ``` Thanks it! Just run yarn android again it should build now.
null
CC BY-SA 4.0
null
2023-01-05T11:37:02.760
2023-01-05T11:37:02.760
null
null
18,541,557
null
75,017,863
2
null
75,010,653
1
null
Here is a new version of the Gap and Island solution to this problem, using Excel 365 functionality: ``` =LET(start,A2:A19, end,B2:B19, row,SEQUENCE(ROWS(start)), maxSoFar,SCAN(0,row,LAMBDA(a,c,IF(c=1,INDEX(start,1),IF(INDEX(end,c-1)>a,INDEX(end,c-1),a)))), SUM(IF(start>maxSoFar,start-maxSoFar,0))) ``` The algorithm is very simple: ``` - Sort data by start time if necessary, then for each pair of times: - Record the latest finish time so far (maxSoFar) (not including the present appointment) - If the start time (start) is greater than maxSoFar, add start-maxSoFar to the total. ``` The first time interval is a special case - initialise maxSoFar to the first start time. [](https://i.stack.imgur.com/bniR8.png) It can be seen that there are only two gaps in the appointments, from 4:15 to 7:31 (3 hours 16 minutes) and from 11:48 to 14:17 (3 hours 29 minutes) totalling 5 hours 45 minutes. Why didn't I just use Max to make the code shorter? I don't know: ``` =LET(start,A2:A19, end,B2:B19, row,SEQUENCE(ROWS(start)), maxSoFar,SCAN(0,row,LAMBDA(a,c,IF(c=1,INDEX(start,1),MAX(INDEX(end,c-1),a)))), SUM(IF(start>maxSoFar,start-maxSoFar,0))) ```
null
CC BY-SA 4.0
null
2023-01-05T11:40:23.090
2023-01-06T07:54:21.483
2023-01-06T07:54:21.483
3,894,917
3,894,917
null
75,018,237
2
null
71,591,971
0
null
Just run the below command in your terminal: ``` echo "alias python=/usr/bin/python3" >> ~/.zshrc ``` Basically, here we are saying the terminal to treat python as python3. Works like magic!
null
CC BY-SA 4.0
null
2023-01-05T12:15:20.553
2023-01-05T12:15:20.553
null
null
20,936,340
null
75,018,303
2
null
72,939,825
0
null
To understand the difference between naked `@ViewBuilder` and a `VStack`, I think it helps to know `@ViewBuilder` creates and returns a `TupleView` which is a type that just combines views but doesn't apply any layout logic to it. You can see in the snippet below how `padding` and `border` modifiers work differently on `TupleView` and `VStack`: `TupleView` just passes the modifiers to each of the enclosed views, but `VStack` applies them to the resulting stack. ``` struct ContentView: View { var body: some View { Text("VStack") .font(.headline) VStack() { Image(systemName: "globe") Text("Hello, world!") } .padding() .border(Color.blue) Divider() Text("TupleView") .font(.headline) TupleView( ( Image(systemName: "globe"), Text("Hello, world!") ) ) .padding() .border(Color.blue) } } ```
null
CC BY-SA 4.0
null
2023-01-05T12:20:45.037
2023-01-05T12:20:45.037
null
null
1,865,790
null
75,018,373
2
null
43,564,132
0
null
I noticed that making `.column` as `flex` broke the layout. I solved with the following CSS rule, this way I can use the class `.is-equal-height` if I want aligned columns. ``` .columns.is-equal-height > .column > * { height: 100% !important; } ```
null
CC BY-SA 4.0
null
2023-01-05T12:26:00.827
2023-01-05T12:26:00.827
null
null
2,864,348
null
75,018,445
2
null
2,147,303
0
null
You may not want absolute positioning because it breaks the reflow: in some circumstances, a better solution is to make the grandparent element display:table; and the parent element display:table-cell;vertical-align:bottom;. After doing this, you should be able to give the the child elements display:inline-block; and they will automagically flow towards the bottom of the parent. ``` <div style="position: relative; width: 200px; height: 150px; border: 1px solid black;"> <div style="position: absolute; bottom: 0; width: 100%; height: 50px; border: 1px solid red;"> </div> </div> ```
null
CC BY-SA 4.0
null
2023-01-05T12:33:01.090
2023-01-05T12:33:01.090
null
null
20,933,244
null
75,018,718
2
null
75,017,618
0
null
I have created an example. I have two sheets 01/02 and 02/03. In cell A2 of 01/02 the text "Hello". In cell A2 of 02/03 the text "Good bye". Now in Sheet1 I have in column A as Plain Text 01/02 and 02/03, the sheet names. Then in column B a formula using `INDIRECT`. [](https://i.stack.imgur.com/PtrTM.png)
null
CC BY-SA 4.0
null
2023-01-05T12:54:10.310
2023-01-05T12:54:10.310
null
null
3,656,739
null
75,018,726
2
null
75,018,644
0
null
You have to use the factory method [FileUpload.fromData](https://ci.dv8tion.net/job/JDA5/javadoc/net/dv8tion/jda/api/utils/FileUpload.html#fromData(java.io.InputStream,java.lang.String)): ``` FileUpload upload = FileUpload.fromData(buffer, "image.png"); ``` Make sure you properly encode the image to something like `JPG` or `PNG`, otherwise this will not work.
null
CC BY-SA 4.0
null
2023-01-05T12:54:32.180
2023-01-05T12:54:32.180
null
null
10,630,900
null
75,018,950
2
null
75,015,880
0
null
I Dockerized the whole lambda , i had a problem in the Dockerfile + serverless.yml in the previous version that's why i faced that problem in the screenshot, thanks everyone
null
CC BY-SA 4.0
null
2023-01-05T13:12:09.563
2023-01-05T13:12:09.563
null
null
19,092,062
null
75,019,025
2
null
31,064,543
1
null
`Worksheet.PageSetup.PrintComments = xlPrintNoComments`-> prints comments on the separate page `Worksheet.PageSetup.PrintComments = false` -> does not print any comments, solves the problem
null
CC BY-SA 4.0
null
2023-01-05T13:17:21.293
2023-01-05T13:17:21.293
null
null
8,867,339
null
75,019,397
2
null
75,018,484
0
null
When designing UI with Xcode Storyboard / Interface builder, you need to provide information as complete as possible. When there are ambiguities, Xcode does its best to at what you will eventually do with those views... but it can't what you will do, so it tries to provide helpful notes on what information is missing. During development (particularly when you're just starting out) it can be very helpful to give your UI elements contrasting background colors to make it easy to see what's what. Here's your view, with colors: [](https://i.stack.imgur.com/hfruZ.png) That is probably what you are expecting. Interface Builder shows an Error, because it doesn't know exactly how you want the labels to be laid out. Depending on how you implement this view at run-time, it may be sizing just how you want... or, it may be sizing the way you want it to -- but then suddenly look wrong when other elements are added around it. Couple ways to get rid of the Interface Error (warning)... 1. Set an explicit height for the vertical stack view - almost certainly not what you want to do though... you probably want the labels to determine the height. 2. Adjust the labels Content Hugging Priority... for example, if you give the bottom "July" label a Hugging priority of 252 (the default on all of them is 251), interface builder will be satisfied. 3. A better option might be to set the Distribution of the vertical stack view to Fill Equally - it will look like this in IB: [](https://i.stack.imgur.com/CtBbx.png) Now we've satisfied IB so it no longer shows an error, and the layout is more representative of how it will look . Of course, like IB, I am also at your layout goal...
null
CC BY-SA 4.0
null
2023-01-05T13:45:54.960
2023-01-05T13:45:54.960
null
null
6,257,435
null
75,019,410
2
null
75,018,068
0
null
Converting it to a factor is not ideal to plot unless you have multiple values for each factor - it tries to plot a box plot-style plot. For example, with 10 observations in the same factor, the `col = "red"` color shows up as the fill: ``` set.seed(123) fact_example <- data.frame(factvar = as.factor(rep(LETTERS[1:3], 10)), numvar = runif(30)) plot(fact_example$factvar, fact_example$numvar, col = "red") ``` [](https://i.stack.imgur.com/iomlJ.png) With only one observation for each factor, this is not ideal because it is just showing you the line that the box plot would make. You could use `border = "red`: ``` plot(quarterly_analysis$Quarter, quarterly_analysis$AvgDefault, border="red") ``` [](https://i.stack.imgur.com/fzSW8.png) Or if you want more flexibility, you can plot it numerically and do a little tweaking for more control (i.e., can change the `pch`, or make it a line graph): ``` # make numeric x values to plot x_vals <- as.numeric(substr(quarterly_analysis$Quarter,1,4)) + rep(seq(0, 1, length.out = 4)) par(mfrow=c(1,3)) plot(x_vals, quarterly_analysis$AvgDefault, col="red", pch = 7, main = "Square Symbol", axes = FALSE) axis(1, at = x_vals, labels = quarterly_analysis$Quarter) axis(2) plot(x_vals, quarterly_analysis$AvgDefault, col="red", type = "l", main = "Line graph", axes = FALSE) axis(1, at = x_vals, labels = quarterly_analysis$Quarter) axis(2) plot(x_vals, quarterly_analysis$AvgDefault, col="red", type = "b", pch = 7, main = "Both", axes = FALSE) axis(1, at = x_vals, labels = quarterly_analysis$Quarter) axis(2) ``` [](https://i.stack.imgur.com/CG3uh.png) Data ``` set.seed(123) quarterly_analysis <- data.frame(Quarter = as.factor(paste0(2019:2022, rep(c(".1", ".2", ".3", ".4"), each = 4))), AvgDefault = runif(16)) quarterly_analysis <- quarterly_analysis[order(quarterly_analysis$Quarter),] ```
null
CC BY-SA 4.0
null
2023-01-05T13:47:12.467
2023-01-05T15:28:43.253
2023-01-05T15:28:43.253
12,109,788
12,109,788
null
75,020,292
2
null
75,020,180
0
null
Once hits have been sent to Google analytics this data is there for good. There is now way to update it.
null
CC BY-SA 4.0
null
2023-01-05T14:52:21.950
2023-01-05T14:52:21.950
null
null
1,841,839
null
75,020,388
2
null
75,020,220
0
null
``` Range(Range("C8").Offset(0, -1), Range("C8").End(xlDown).Offset(0, 4)).Select ```
null
CC BY-SA 4.0
null
2023-01-05T14:58:01.573
2023-01-05T14:58:01.573
null
null
11,340,363
null
75,020,405
2
null
14,142,378
3
null
You should use the CSS property [object-fit](https://www.w3schools.com/css/tryit.asp?filename=trycss3_object-fit) on the img tag: ``` <div class="container"> <img src="some-image.jpg" style="width: 100%; height: 100%; object-fit: cover" /> </div> ```
null
CC BY-SA 4.0
null
2023-01-05T14:59:07.230
2023-01-05T14:59:07.230
null
null
20,888,188
null
75,020,446
2
null
70,097,932
1
null
The solution was to add the ``` table=False ``` parameter to the xw.view(df) method. According to the docs: ``` table (bool, default True) – If your object is a pandas DataFrame, by default it is formatted as an Excel Table ``` Now to write a dataframe df, I call: ``` import xlwings as xw import pandas as pd df = pd.DataFrame(...) xw.view(df, table=False) ```
null
CC BY-SA 4.0
null
2023-01-05T15:02:17.120
2023-01-05T15:02:17.120
null
null
12,822,130
null
75,020,742
2
null
75,020,308
0
null
If you are using an old (<2.8 cmake, this can be the issue): [https://cmake.org/Bug/view.php?id=13808](https://cmake.org/Bug/view.php?id=13808) In any case, you might try to set the byte-order manually in your cmake file: ``` set( CMAKE_CXX_BYTE_ORDER BIG_ENDIAN) ``` You could also check that `CMAKE_OSX_ARCHITECTURES` only specify one architecture or all architectures shares the same byte-order.
null
CC BY-SA 4.0
null
2023-01-05T15:25:52.117
2023-01-05T15:25:52.117
null
null
903,651
null
75,020,983
2
null
75,010,945
-1
null
If you want to use geom_pictogram (which always seems to start at 1), you could set the scale limits and add a custom label function to remove 1 from the values. ``` library(ggplot2) library(waffle) ggplot(data, aes(label= x, values = ht, color=icon)) + geom_pictogram(n_rows=5, size=5, flip=TRUE) + facet_wrap(~x, nrow = 1, strip.position = "bottom") + scale_x_discrete() + scale_label_pictogram( name = NULL, values = c( 'rocket' = 'rocket' )) + scale_y_continuous( expand = c(0,0), ## here limits = c(1, NA), labels = ~ .x-1, breaks = seq(1,20,5)) + theme(legend.position = "none") ``` ![](https://i.imgur.com/3kq3IUi.png)
null
CC BY-SA 4.0
null
2023-01-05T15:43:11.280
2023-01-05T15:48:23.260
2023-01-05T15:48:23.260
7,941,188
7,941,188
null
75,020,995
2
null
75,020,905
1
null
You work with a [UniqueConstraint [Django-doc]](https://docs.djangoproject.com/en/dev/ref/models/constraints/#django.db.models.UniqueConstraint): ``` class Child(models.Model): parent = models.ForeignKey(Parent, on_delete=models.CASCADE) name = models.CharField(max_length=50) def __str__(self): return f'{self.name}' class Meta: constraints = [ models.UniqueConstraint( fields=('name', 'parent_id'), name='unique_child_name_per_parent' ) ] ```
null
CC BY-SA 4.0
null
2023-01-05T15:44:20.043
2023-01-05T16:49:50.433
2023-01-05T16:49:50.433
67,579
67,579
null
75,021,098
2
null
75,020,906
3
null
Suppose your administration times are at 1, 6, 12 and 18 hours. Then you could do: ``` admin_times <- c(1, 6, 12, 18) ``` and ``` ggplot(data = df, aes(x = Time, y = Concentration, col = Species)) + ylab("Concentration (mg/mL)") + scale_x_continuous("Time (h)", breaks = 0:4 * 6, limits = c(1, 24)) + geom_point() + scale_color_viridis_d(option = "F", begin = 0, end = 0.8) + theme_bw() + scale_y_log10() + annotate('point', x = admin_times, y = max(df$Concentration)*2, shape = 25, size = 6, color = 'gray80', fill = 'gray80') ``` [](https://i.stack.imgur.com/3l1Ra.png) Note that you don't put quotation marks around column names inside `aes` when creating a ggplot. --- Data used: ``` df <- data.frame(Time = rep(1:24, 2), Concentration = dexp(c(1:24, 1:24), rep(c(0.1, 0.15), each = 24)), Species = rep(c('A', 'B'), each = 24)) ```
null
CC BY-SA 4.0
null
2023-01-05T15:51:31.757
2023-01-05T15:51:31.757
null
null
12,500,315
null
75,021,184
2
null
75,020,738
1
null
Consider below approach ``` select id_invoice, amount / count(*) over(partition by id_invoice) amount, min(day) start, max(day) `end` from your_table t, unnest(generate_date_array(start, `end`)) day group by id_invoice, t.amount, date_trunc(day, month) ``` if applied to sample data in your question - output is [](https://i.stack.imgur.com/ve23y.png)
null
CC BY-SA 4.0
null
2023-01-05T15:57:52.073
2023-01-05T16:04:31.513
2023-01-05T16:04:31.513
5,221,944
5,221,944
null
75,021,484
2
null
75,020,652
1
null
When the code says, for example: `(w * y + -1 + x - 1) * 4`, you're not getting the pixel to the upper left, you're getting the current row at x-2. The expression should be: ``` // expression for pixel that's at (x-1, y-1) over-parenthesized for clarity ((w * (y-1)) + (x-1)) * 4 ``` For clarity, put the index computation in one place, like: ``` const pixelDataAt = (x,y) => pixel.data[4 * (w*y + x)]; ``` Then call this in the loop with the simple convolution neighborhood: ``` let Gx = filter1[0] * pixelDataAt(x-1, y-1) + filter1[0] * pixelDataAt(x , y-1) + //... /* where the convolution neighborhood for each filter is (x-1, y-1), (x, y-1), (x+1, y-1) (x-1, y ), (x+1, y ) (x-1, y+1), (x, y+1), (x+1, y+1) */ ``` This will make the code simpler to read and debug, and, if needed, simpler to optimize by caching redundant calculations.
null
CC BY-SA 4.0
null
2023-01-05T16:22:15.700
2023-01-05T16:33:48.907
2023-01-05T16:33:48.907
294,949
294,949
null
75,021,502
2
null
75,021,240
0
null
you should remove the outliers with the `showfliers` option: ``` #... sns.boxplot(x='UniqueCarrier', y='Month', data=data, order=result.index, showfliers = False) ```
null
CC BY-SA 4.0
null
2023-01-05T16:24:05.927
2023-01-05T16:24:05.927
null
null
14,649,447
null