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,910,539
2
null
74,892,719
0
null
I am assuming that the issue is related to how you manage your window event handling system! the way you handle your event is by using sf::Keyboard! instead of using the properly way with sf::Event! if your not using the sf::Event to handle the window event then the window will freeze on windows Operating system. And maybe on mac the window will not be created! The properly way to create a window is ``` // Include important libraries here #include <SFML/Graphics.hpp> // Make code easier to type with "using namespace" = false // // stop using namespace because this will bug your code in // bigger project //using namespace sf; // This is where our game starts from = false // This is the main entry point of our application int main() { // Create a video mode object // you dont really need to create VideMode object you // can directly include it in the constructor of sf::RenderWindow // VideoMode vm(1920, 1080); // Create and open a window for the game RenderWindow window(sf::VideoMode(1920, 1080), "Timber!!!", Style::Fullscreen); //Create An Event Variable to poll the events from the window //and then to manage them sf::Event event{}; //This is the Game Loop while (window.isOpen()) { // Handle the players input //poll event from the window while (window.pollEvent(event)) { if (event.type == sf::Event::KeyReleased && event.key.code == sf::Keyboard::Escape) window.close(); } // Update the scene // Draw the scene // Clear everything from the last scene window.clear(sf::Color::Blue); // Draw our game scene here // Show everything we just drew window.display(); } return 0; } ```
null
CC BY-SA 4.0
null
2022-12-24T22:01:22.357
2022-12-24T22:01:22.357
null
null
15,915,761
null
74,910,552
2
null
74,855,246
1
null
## UPDATE Adding a separate answer because of the difference in approach. (This answer assumes that the UV coordinates are per-face in the range `0..<SIZE`, with `SIZE` being constant for all faces.) I can't think of a good way of efficiently computing the the neighbouring `(face, u, v)` across the boundaries for arbitrary cuboid mappings, but it should be relatively easy to just store a mapping of it for each face. For each face, store four mappings, one for each primary direction in UV space (i.e, +U, -U, +V, -V). Each of these mappings should contain a reference to the next face in that direction along with mapping coefficients for transform `(u0, v0) -> (u1, v1)`. For the example mapping above, face 2 (the top one) would have the following mappings: ``` up: faceID: 5 u: SIZE-u v: SIZE-1 down: faceID: 4 u: u v: SIZE-1 left: faceID: 1 u: SIZE-v v: SIZE-1 right: faceID: 0 u: v v: SIZE-1 ``` When doing a neighbour lookup, check if the lookup falls outside the dimensions (0..<SIZE) and if it does, use the lookup structure defined above. So if you're looking up the next position along the U dimension on the boundary of face 2, just check the mapping for 'right': face 0, with a u value equal to the original v value, and a v value equal to SIZE-1. You will need some method for precomputing this data when creating the geometry. --- ## OLD ANSWER Assuming the following: 1. This is for doing texture lookups. 2. You have control over the way textures are generated. Then I propose an alternate solution. Instead of finding an efficient way of mapping the neighbour relationship across the discontinuity, simply make the texel value outside the UV map region the same as the value in its corresponding neighbour polygon. [](https://i.stack.imgur.com/xKyNU.png)
null
CC BY-SA 4.0
null
2022-12-24T22:02:35.283
2022-12-28T13:07:21.777
2022-12-28T13:07:21.777
1,031,253
1,031,253
null
74,911,068
2
null
26,329,117
0
null
I use LaTeX environments directly to typeset chess, with no `src` blocks: ``` Then, the white brings the king - to the closest rank to the opposing king and - to the file one next to that of the opposing king toward the center. \begin{center} \fenboard{7k/R7/8/8/8/8/8/7K w - - 0 2} \mainline{2. Kg2 Kf8 3. Kf3 Ke8 4. Ke4 Kd8 5. Kd5 Kc8 6. Kd6} \par \showboard \end{center} ```
null
CC BY-SA 4.0
null
2022-12-25T00:51:32.090
2022-12-25T00:51:32.090
null
null
1,306,956
null
74,911,109
2
null
57,102,209
0
null
Do not use NavigationView to wrap your list in the "AppointmentView" e.g. ``` NavigationView{ List{ } } ``` But only use List in the "AppointmentView" ``` List{ } ``` you can still use NavigationLink inside that List
null
CC BY-SA 4.0
null
2022-12-25T01:10:30.677
2022-12-25T01:10:30.677
null
null
20,058,690
null
74,911,139
2
null
57,753,240
0
null
I have applied `loading="lazy"` to all of my images, included `width="111px" height="111px"` attributes for my `<img>` tags and even converted them into WebP format to reduce size, but my Firefox browser still keeps loading all images from the entire page. I don't touch or scroll after refresh. The indicator Dev tools says that it is - . I use . What could be wrong?
null
CC BY-SA 4.0
null
2022-12-25T01:25:23.473
2022-12-25T02:01:45.863
2022-12-25T02:01:45.863
19,381,343
19,381,343
null
74,911,169
2
null
74,904,765
0
null
I think instead of trying to mix and match. Split the table making into separate data frames. Keeping: 1. create a new column call Condition --> keep quiet, soft, loud 2. break the df up to the following subsets Personnel ID, Education, Origin, Typing speed, Typing Condition, Condition Personnel ID, Education, Origin, Reading speed, Reading Condition, Condition Personnel ID, Education, Origin, Sit up speed, Sit up Condition, Condition 3. merged_df = df.merge(df1,df2,how="left",on=["Personnel ID","Education","Origin","Condition"]) 4. repeat until all columns are merged in and remove duplicates We can consider this close.
null
CC BY-SA 4.0
null
2022-12-25T01:37:56.370
2022-12-25T01:46:22.280
2022-12-25T01:46:22.280
20,850,595
20,850,595
null
74,911,239
2
null
74,911,126
1
null
`x["Films"]` is a list with just one value, so: ``` x["Films"][0]["Title"] ```
null
CC BY-SA 4.0
null
2022-12-25T02:13:11.060
2022-12-25T02:50:02.893
2022-12-25T02:50:02.893
6,273,711
6,273,711
null
74,911,311
2
null
74,910,027
0
null
I looks like it works. There are commits to the `main` branch in your repo at around the time you asked the question. (The first commit isn't 'First commit', but I'm not sure you posted real commands). [](https://i.stack.imgur.com/4G2lC.png)
null
CC BY-SA 4.0
null
2022-12-25T02:49:41.523
2022-12-25T02:49:41.523
null
null
581,076
null
74,911,552
2
null
74,899,875
1
null
To have one row from each table, a `UNION ALL` of both sub-queries will do: ``` with a as (select id, nser, rssi from cliente1_120891 where nser = '12089/1' order by id desc limit 1), b as (select id, nser, rssi from cliente2_260R17047 order by id desc limit 1) select id, nser, rssi from a union all select id, nser, rssi from b; ``` Result: ``` id |nser |rssi| ----+----------+----+ 3426|12089/1 | -42| 3416|260 R17047| -4| ```
null
CC BY-SA 4.0
null
2022-12-25T04:49:06.627
2022-12-25T04:49:06.627
null
null
20,127,235
null
74,911,559
2
null
74,588,394
0
null
[solution screenshot that prove - it works!](https://i.stack.imgur.com/OsWey.png) FULL INSTRUCTION & ATTACHMENTS: [https://github.com/vadym4che/synthwave-black-neon/blob/main/synthwave-vadym4che.zip](https://github.com/vadym4che/synthwave-black-neon/blob/main/synthwave-vadym4che.zip) [FULL INSTRUCTION & ATTACHMENTS](https://github.com/vadym4che/synthwave-black-neon/blob/main/synthwave-vadym4che.zip) FIX SUBTLE BACKGROUND PLOBLEM: --- |1| find file called "neondreams.js" that is placing at this path (or something aroun this): ~\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\code\electron-sandbox\workbench\neondreams.js |2| replace it by file that is attached in folder ".vscode--extensions--robbowen.synthwave--vscode-0.1.15" OR fix by your own hands -> near 98th line of code that affecting your GUTTER color ``` /* Add the subtle gradient to the editor background */ .monaco-editor { background-color: transparent !important; background-image: linear-gradient(to bottom, #000000 75%, #000000); background-size: auto 100vh; background-position: top; background-repeat: no-repeat; } ``` --- ALSO YOU CAN USE MY TOTAL BLACK NEON GLOWED THEME .json for porpose of that replace file(s) at path: ~.vscode\extensions\robbowen.synthwave-vscode-0.1.15\ with files attached in folder "AppData--Local--Programs--Microsoft VS Code--resources--app--out--vscode--electron-sandbox--workbench" --- i want to stay thankful for post that get by far closer to real working solution of this problem: [https://github.com/robb0wen/synthwave-vscode/issues/199](https://github.com/robb0wen/synthwave-vscode/issues/199)
null
CC BY-SA 4.0
null
2022-12-25T04:52:55.617
2022-12-25T04:52:55.617
null
null
20,804,456
null
74,911,696
2
null
51,832,304
0
null
You are giving the full path along with file name. The `os.listdir(path)` method in python is used to get the list of all files and directories in the specified directory. If we don’t specify any directory, then list of files and directories in the current working directory will be returned. You can just write `"C:/Users/saviosebastian"` in path. Same goes for `os.chdir("C:/Users/saviosebastian")`.
null
CC BY-SA 4.0
null
2022-12-25T05:47:48.943
2022-12-26T08:59:30.430
2022-12-26T08:59:30.430
13,909,633
15,635,802
null
74,911,716
2
null
74,911,684
0
null
You have to encode emoji / or any non textual content for that matter in "UNICODE". Send them to server as UNICODE string and when displaying them decode them back. [Here's the reference link that can help you get started.](https://stackoverflow.com/questions/26893796/how-to-set-emoji-by-unicode-in-a-textview)
null
CC BY-SA 4.0
null
2022-12-25T05:54:59.523
2022-12-25T05:54:59.523
null
null
11,211,736
null
74,911,848
2
null
73,225,850
1
null
The error message indicates that your settings are preventing other platforms from interacting with your account. To solve it you have enable "" from settings. If they are enabled and its still not working there will be a further sub-option of .
null
CC BY-SA 4.0
null
2022-12-25T06:35:15.157
2022-12-25T06:35:15.157
null
null
11,211,736
null
74,911,864
2
null
74,911,594
0
null
This tidyverse example may be useful: #### 1. Create a sample dataset ``` library(tidyverse) sample_data <- data.frame( a = sample(1:10, 10, TRUE), b = sample(1:10, 10, TRUE), c = sample(1:10, 10, TRUE), d = sample(1:10, 10, TRUE) ) ``` #### 2. Detect which value(s) are outliers Based on your description, it seems outliers are the maximum and minimum values, so we can use the `range()` function to get the range of each column. ``` outcome <- sample_data |> mutate(across(everything(), ~ case_when( # note 1 .x == range(.x) ~ "Flag", # note 2 TRUE ~ "" ))) ``` note 1: You may need to replace `everything()` to `c(var1, var2 ...)` based on your dataset. note 2: This part marks outliers as "Flag", and marks the rest as "". #### 3. Rename the outcome columns: ``` names(outcome) <- paste0(c("a", "b", "c", "d"), "_flag") ``` #### 4. Combine data and outcome as one dataset ``` outcome <- bind_cols(sample_data, outcome) ``` #### 5. Reorder the columns alphabetically ``` outcome <- outcome |> select(order(colnames(outcome))) ``` The final outcome should look like below after you run `outcome`: ``` a a_flag b b_flag c c_flag d d_flag 1 10 1 Flag 10 7 2 5 9 Flag 5 8 Flag 3 1 Flag 8 6 5 4 7 3 7 8 Flag 5 3 7 8 4 6 4 2 7 4 7 6 5 7 5 8 2 4 5 5 9 1 Flag 2 2 Flag 5 10 10 Flag 5 10 Flag 1 ``` Hope this example is helpful for your case. ### Update ------------------------------------------------------------------ 2022.12.27 #### 1. Repeat step 1 Create sample data to work with. #### 2. Customised values to flag ``` outcome <- sample_data |> mutate(across(everything(), ~ case_when( (.x >=1 & .x <= 2) ~ "Flag", # Define the lower range (.x >=9 & .x <= 10) ~ "Flag", # Define the upper range TRUE ~ "" ))) ``` #### 3. Repeat step 3, 4, 5 ``` names(outcome) <- paste0(c("a", "b", "c", "d"), "_flag") outcome <- bind_cols(sample_data, outcome) outcome <- outcome |> select(order(colnames(outcome))) ``` The Customised final outcome should look like below after you run `outcome`: ``` a a_flag b b_flag c c_flag d d_flag 5 4 4 7 6 9 Flag 5 7 1 Flag 10 Flag 3 4 3 5 4 6 10 Flag 4 9 Flag 2 Flag 4 9 Flag 5 1 Flag 1 Flag 1 Flag 5 7 1 Flag 8 10 Flag 5 2 Flag 2 Flag 10 Flag 3 2 Flag 9 Flag 3 1 Flag ```
null
CC BY-SA 4.0
null
2022-12-25T06:39:25.650
2022-12-27T10:17:50.293
2022-12-27T10:17:50.293
20,524,021
20,524,021
null
74,911,906
2
null
74,911,594
1
null
``` library(dplyr) df %>% mutate(Flag_temp = ifelse(Temperature.C. >= 30 & Temperature.C. <= 32, "", "FLAG"), Flag_RelHumidity = ifelse(Relative_Humidity >= 49 & Relative_Humidity <= 50, "", "FLAG")) ``` Define your outlier limits [See here](https://stackoverflow.com/questions/53985016/flagging-the-outliers-in-a-dataset-in-r-with-additional-column): You probably want to define an outlier as 1. data point above Q3 + IQR * 1.5 2. data point under 5 percentile + IQR * 1.5 These conditions fit best to your provided example: ``` library(dplyr) df %>% mutate(across(-Time, ~case_when(. > quantile(., probs = 0.75) + IQR(.) * 1.5 ~ "FLAG", . < quantile(., probs = 0.05) + IQR(.) * 1.5 ~ "FLAG", TRUE ~ ""), .names = "{col}_outlier")) %>% relocate(Time, starts_with("Temperature")) ``` ``` Time Temperature.C. Temperature.C._outlier Relative_Humidity Relative_Humidity_outlier 1 10/24/2022 16:45 32.2 50.0 2 10/24/2022 16:46 30.0 49.0 3 10/24/2022 16:47 31.0 50.0 4 10/24/2022 16:48 30.0 50.5 5 10/24/2022 16:49 30.0 50.0 6 10/24/2022 16:50 31.0 49.0 7 10/24/2022 16:51 32.2 51.0 8 10/24/2022 16:52 86.0 FLAG 50.5 9 10/24/2022 16:53 30.0 50.0 10 10/24/2022 16:54 30.0 120.0 FLAG 11 10/24/2022 16:55 30.0 50.0 12 10/24/2022 16:56 86.0 FLAG 50.0 13 10/24/2022 16:57 30.0 51.0 14 10/24/2022 16:58 31.0 51.0 15 10/24/2022 16:59 31.0 50.0 16 10/24/2022 17:00 31.0 49.0 17 10/24/2022 17:01 3.0 FLAG 52.0 18 10/24/2022 17:02 32.2 49.0 19 10/24/2022 17:03 30.0 2.0 FLAG ```
null
CC BY-SA 4.0
null
2022-12-25T06:50:52.887
2022-12-27T07:42:20.047
2022-12-27T07:42:20.047
13,321,647
13,321,647
null
74,911,934
2
null
74,740,352
0
null
The "WindowsError: [Error 126] The specified module could not be found" error typically indicates that Python is unable to locate a specific module or library that is needed to run your code. This can be caused by a number of factors, such as: Incorrect module or library name: Make sure that you have spelled the name of the module or library correctly and that it is imported correctly in your code. Missing module or library: If you are using a module or library that is not part of the Python standard library, make sure that it is installed on your system and is available to Python. Incorrect module or library path: If you are using a module or library from a specific location on your system, make sure that the path to the module or library is correct. Permissions issue: Make sure that you have the necessary permissions to access the module or library. To troubleshoot this error, you may want to try the following: Double-check the name and spelling of the module or library to make sure that it is imported correctly. Check to see if the module or library is installed on your system and is available to Python. Check the path to the module or library to make sure it is correct. Check the permissions on the module or library to make sure that you have the necessary access. If you are still having trouble after trying these steps, you may want to try searching online for more specific troubleshooting advice or consider seeking help from other Python users or developers.
null
CC BY-SA 4.0
null
2022-12-25T06:58:46.880
2022-12-25T06:58:46.880
null
null
12,002,028
null
74,912,033
2
null
74,911,776
0
null
Here is a basic solution for you ``` TextButton( child: Text('Save Shopping List'), onPressed: () { list.name = txtName.text; list.priority = int.parse(txtPriority.text); // Clear TE Controller txtName.clear(); txtPriority.clear(); // Insert helper.insertList(list); Navigator.pop(context); }, ), ```
null
CC BY-SA 4.0
null
2022-12-25T07:28:43.943
2022-12-25T07:28:43.943
null
null
20,838,541
null
74,912,400
2
null
74,912,186
0
null
The problem with your current setup is that you're telling your node server to listen for incoming connections on port 3306, and you're using that same port to try and connect to the database. Change your `app.js` code like this, and it should work. ``` ... // rest of the code const port = process.env.PORT || 1234; // or any port not already in use .... // rest of your code const connection = mysql.createConnection({ host : 'localhost', user : 'root', password : '', database : 'nodejs', port : 3306 // <== add the port for database connection }) ``` For this to work, you should have Xampp in the background, running the MySQL module on port 3306. Of course, if you change your port in Xampp (for whatever reason), you'd need to change it in your `app.js` file as well.
null
CC BY-SA 4.0
null
2022-12-25T09:05:12.363
2022-12-25T09:05:12.363
null
null
6,133,426
null
74,912,456
2
null
74,911,251
0
null
Because your GPU not fully loaded, probably you preprocessing take match time. Evaluate real yolov5 performance on you hardware with code like this: ``` import time dummy_frame = torch.randn(32,3,416,416).cuda() #dummy data model.eval() model.cuda() start = time.time() for i in range(10): out = model(dummy_frame) time_spent = time.time() - start fps = 10*32 / time_spent # batches * batch_size print(f"{fps:.2f} fps") # 344 FPS on T4 in colab ``` if fps on test significantly high then your current, try to improve your preprocessing pipeline
null
CC BY-SA 4.0
null
2022-12-25T09:20:47.073
2022-12-26T09:58:32.610
2022-12-26T09:58:32.610
6,656,081
6,656,081
null
74,912,785
2
null
74,879,886
0
null
After weeks of effort and research, I found out that this problem is created in Flutter from version `>3.0.0` and up I downgraded my Flutter version from `3.3.10` version to `3.0.0` and this problem is gone Now. [](https://i.stack.imgur.com/FSysC.gif)
null
CC BY-SA 4.0
null
2022-12-25T10:36:26.463
2022-12-25T10:36:26.463
null
null
5,425,860
null
74,913,049
2
null
74,912,535
1
null
Looking at the source code of the function [here](https://github.com/rOpenGov/pxweb/blob/master/R/pxweb_get.R#L123) I can see that the authors decided to use `cat` to enlighten you with the message. This can be circumvented in a few ways, like flushing it into the void using `capture.output`. However, for your use case, try setting `pxweb_get(..., verbose = FALSE)` and see if it helps.
null
CC BY-SA 4.0
null
2022-12-25T11:34:48.320
2022-12-25T11:34:48.320
null
null
322,912
null
74,913,118
2
null
28,008,938
0
null
To send SMS with trial Twilio account, test ACCOUNT SID and test AUTHTOKEN which can be found at Phone Number > Tools > Test Credentials rather than ACCOUNT SID and AUTHTOKEN given by Console Dashboard > Account Summary.
null
CC BY-SA 4.0
null
2022-12-25T11:51:27.267
2022-12-25T11:51:27.267
null
null
15,940,847
null
74,913,301
2
null
44,909,653
0
null
Make sure you run this code `flutter pub add firebase_core`
null
CC BY-SA 4.0
null
2022-12-25T12:32:32.687
2022-12-25T12:32:32.687
null
null
19,370,215
null
74,913,367
2
null
74,913,330
0
null
I believe the issue is that I was "Hiding export settings from inkscape". Deactivating this option resulted in a correctly sized SVG: [](https://i.stack.imgur.com/QUaKa.png)
null
CC BY-SA 4.0
null
2022-12-25T12:45:13.173
2022-12-25T12:45:13.173
null
null
3,783,002
null
74,913,572
2
null
69,025,148
0
null
You can use [point_in_polygon](https://pub.dev/packages/point_in_polygon) package and simply pass your point and point of polygon. `Poly.isPointInPolygon(pointToCheckIfInPolygon, pointsOfPolygon)`
null
CC BY-SA 4.0
null
2022-12-25T13:33:14.773
2022-12-25T13:33:14.773
null
null
14,968,022
null
74,913,654
2
null
74,913,459
0
null
It is not enough to exclude that the match is preceded with "vw(", as that might just mean a match can start one position later, after skipping a digit, and then of course the match is preceded by a digit, not a parenthesis. To fix this, also require that the character that precedes the number is not a digit, nor a point, nor a minus sign, since that should then really be of the matched number. You can do this with a second look-behind pattern: `(?<![-.\d])` Not related to your question, but it leads to bad performance if you have an optional part (point) between two patterns that both match the same thing (a digit). To match a decimal number make the whole decimal part optional, not just the decimal point: ``` (?<!vw\()(?<![-.\d])(-?\d*(?:\.\d+)?px) ``` See it on [regex101](https://regex101.com/r/pwnA60/1)
null
CC BY-SA 4.0
null
2022-12-25T13:49:56.190
2022-12-25T13:49:56.190
null
null
5,459,839
null
74,913,789
2
null
74,912,386
0
null
In order to extract single contours differentiated by color, the logical way to approach this problem would be to use the different colors and not convert the image to `grayscale`. You can than work on single channels. For instance, for the the `blue` channel: ``` thresh = 100 ret,thresh_img = cv2.threshold(b, thresh, 255, cv2.THRESH_BINARY) ``` [](https://i.stack.imgur.com/I8Fhx.png) Then with a combination of `bit_wise` operations, you can extract a specific contour. Another approach would be to replace the `threshold` operator with the `Canny` operator. ``` thresh1 = 40 thresh2 = 120 #get canny image thresh_img = cv2.Canny(img[:,:,0], thresh1,thresh2) #find contours contours, hierarchy = cv2.findContours(thresh_img, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE) ``` Which yields the following contours: [](https://i.stack.imgur.com/i11uS.png) The use of `Canny` as preprocessing for contour is suggested by the [OpenCV documentation](https://docs.opencv.org/3.4/d4/d73/tutorial_py_contours_begin.html).
null
CC BY-SA 4.0
null
2022-12-25T14:13:04.017
2022-12-25T14:22:42.367
2022-12-25T14:22:42.367
3,957,794
3,957,794
null
74,913,895
2
null
58,457,958
0
null
In my case non of the above worked. I simply deleted vscode from my applications folder ('move to trash') and [reinstall](https://code.visualstudio.com/download). worked like magic! When I opened vscode all my work was still there :)
null
CC BY-SA 4.0
null
2022-12-25T14:32:20.903
2022-12-25T14:32:20.903
null
null
9,158,986
null
74,914,106
2
null
28,165,916
0
null
I've been trying every possible answers from this post, still no luck. then I tried to convert the images from png to jpeg and then re-add it to xcode. it finally works. weird issue
null
CC BY-SA 4.0
null
2022-12-25T15:09:59.930
2022-12-25T15:09:59.930
null
null
1,467,988
null
74,914,273
2
null
74,909,752
0
null
So first of all... Your Laravel is really really old. Next: you need to change the `app/Http/Kernel.php` (the file you pasted) There are some classes which are in your `$middlewareGroups` and you need to move them over to `$middleware`: ``` protected $middleware = [ CheckForMaintenanceMode::class, StartSession::class, ShareErrorsFromSession::class, ]; ``` See: [https://github.com/laravel/framework/issues/11494#issuecomment-167003230](https://github.com/laravel/framework/issues/11494#issuecomment-167003230) But just prepare, that you need to upgrade. Your example files are here: [https://github.com/laravel/laravel/tree/5.2](https://github.com/laravel/laravel/tree/5.2), [https://github.com/laravel/laravel/tree/5.3](https://github.com/laravel/laravel/tree/5.3), etc. The upgrade instructions are here: [https://laravel.com/docs/5.3/upgrade#main-content](https://laravel.com/docs/5.3/upgrade#main-content) Keep your PHP version in mind. It might still be PHP 7, so you cannot go further than Laravel version 8. Happy upgrading!
null
CC BY-SA 4.0
null
2022-12-25T15:39:20.367
2022-12-25T15:39:20.367
null
null
1,294,911
null
74,914,715
2
null
74,913,659
1
null
Based off of the little information provided; I suggest using a ListView Builder instead of the row and for loop in the widget tree, it will achieve your goal more effectively. for example: ``` //All the available dates for the person List<DateTime> _dates = <DateTime>[]; //Where to store the selected date late DateTime _selectedDate; @override void initState() { //set the date _selectedDate = DateTime.now(); super.initState(); } ListView.builder( scrollDirection = Axis.horizontal primary: false, shrinkWrap: true, controller: scrollController, itemBuilder: (_, index) => dateWidget(_dates[index]), itemCount: _dates.length), ) //Date Widget Widget dateWidget(DateTime date) { return GestureDetector( onTap: () { setState(() { _selectedDate = date; }); }, child: Container( decoration: BoxDecoration( color: _selectedDate == date ? Colors.yellow : Colors.lightBlueAccent, ), child: , ), ); } ``` I hope that gives you an idea of how to go about it.
null
CC BY-SA 4.0
null
2022-12-25T17:04:48.693
2022-12-25T19:52:02.597
2022-12-25T19:52:02.597
11,256,725
11,256,725
null
74,915,009
2
null
74,914,989
3
null
You render `e.toString()` in this code: ``` child: SearchField( suggestions: users .map((e) => SearchFieldListItem(e.toString(), child: Text(e.toString()))) .toList(), ``` Since you don't override `toString` in your `AppUser` class, you get the default implementation, which indeed returns the class name. If you want to show the user's name, either render `e.name` or override `toString` in `AppUser` to return the string you want.
null
CC BY-SA 4.0
null
2022-12-25T17:58:55.187
2022-12-25T17:58:55.187
null
null
209,103
null
74,915,252
2
null
74,912,764
0
null
First, you have to define and initialize your recyclerView. To do this, add the following to the global scope: ``` private lateinit var rvMaps : RecyclerView ``` then add this in the onCreate function: ``` rvMaps = findViewById(R.id.rvMaps) rvMaps.layoutManager ```
null
CC BY-SA 4.0
null
2022-12-25T18:42:35.853
2023-01-02T19:41:04.800
2023-01-02T19:41:04.800
3,486,184
10,973,298
null
74,915,599
2
null
74,915,338
0
null
It seems your api path is incorrect. First of all, check your REACT_APP_API_URL is correct. to do that, you can simply log to console ``` console.log(process.env.REACT_APP_API_URL) ``` I think its the problem here Otherwise, you have to type the axios url directly. ``` const fetchData = async () => { try { const data = await axios.get( "http://localhost:1337/api/products", { headers: { Authorization: "bearer" + process.env.REACT_APP_API_TOKKEN, }, } ); console.log(data); } catch (err) { console.log(err); } }; ``` For Best practice
null
CC BY-SA 4.0
null
2022-12-25T19:58:11.560
2022-12-25T19:58:11.560
null
null
18,490,848
null
74,915,632
2
null
67,973,596
2
null
1. Go to File > Preference > Paths > Binary Paths. 2. Scroll down (PostgreSQL path). 3. Update Path: go to (C:\Program Files\PostgreSQL\15\bin) Note: Update the path according to the installed version. 4. checked the radio button. 5. Finish.
null
CC BY-SA 4.0
null
2022-12-25T20:05:26.200
2022-12-25T20:05:26.200
null
null
10,738,771
null
74,915,829
2
null
30,204,383
0
null
I'm might be a lot late. But I got an answer to why the compiler do the unboxed version when throwing in an unneeded `Seq.filter (<> 0)`. Basically, the compiler/interpreter looks at the code, where because Seq.filter uses `<>` which is marked 'inline' as all build in operators in F#. the type of `(<>: 'a -> 'a -> bool when 'a: equality)`, whereby the constant 0 given are enforcing `'a` to be of type `int` i.e a value type. without the redundant `Seq.filter` it would just return the none generic enumerator, where as because it are passed to the `Seq.filter` it envokes the type checker at compile time instead of at runtime. it even might, the compiler will see that it is safe to replace the indirect calls from the interface with direct calls or inline the function body instead. This video explains some of the treatment of interfaces by the compiler (in C#) [https://www.youtube.com/watch?v=UybGH0xL5ns](https://www.youtube.com/watch?v=UybGH0xL5ns)
null
CC BY-SA 4.0
null
2022-12-25T20:52:10.223
2022-12-25T20:52:10.223
null
null
7,039,094
null
74,916,008
2
null
64,906,283
0
null
You can use "w-screen" class instead container and it solved :) `<div className='w-screen'>Header</div>`
null
CC BY-SA 4.0
null
2022-12-25T21:39:50.067
2022-12-25T21:43:58.027
2022-12-25T21:43:58.027
7,188,082
7,188,082
null
74,916,201
2
null
74,912,386
1
null
We may start with [cv2.kmeans](https://docs.opencv.org/3.4/d5/d38/group__core__cluster.html#ga9a34dc06c6ec9460e90860f15bcd2f88) for performing color clustering - kind of what described in the [following tutorial](https://pyimagesearch.com/2014/07/07/color-quantization-opencv-using-k-means-clustering/). The result is a list of labels. Each label (label 0, label 1,...) represents all the pixels that belongs to a specific color cluster. Example of applying K-Means for colors clustering: ``` # Reshape the image into a 2D array with one row per pixel and three columns for the color channels. data = image.reshape((cols * rows, 3)) # Perform K-Means clustering on the image. criteria = (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_MAX_ITER, 10, 1.0) _, labels, centroids = cv2.kmeans(data, K, None, criteria, 10, cv2.KMEANS_RANDOM_CENTERS) ``` --- Iterate the labels, and create a mask with `255` where `labels == k`: ``` mask = np.zeros((rows*cols, 1), np.uint8) # Create a zerod mask in the size of image. mask[labels == k] = 255 # Place 255 where labels == k (all labels equals 0 are going to be 255 then all labels equals 1...) mask = mask.reshape((rows, cols)) # Reshape the mask back to the size of the image. ``` --- For each mask apply the following stages: - - - `x, y = tuple(c[0][0])`- `color = original_image[y, x]`- `cv2.drawContours(colored_mask, [c], 0, color.tolist(), -1)` --- Complete code sample: ``` import cv2 import numpy as np K = 16 # Number of color clusters (16 is a bit larger than the accrual number of colors). # Load the image and convert it float32 (kmeans requires float32 type). original_image = cv2.imread('original.png') image = original_image.astype(np.float32) cols, rows = image.shape[1], image.shape[0] # Reshape the image into a 2D array with one row per pixel and three columns for the color channels. data = image.reshape((cols * rows, 3)) # Perform K-Means clustering on the image. criteria = (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_MAX_ITER, 10, 1.0) _, labels, centroids = cv2.kmeans(data, K, None, criteria, 10, cv2.KMEANS_RANDOM_CENTERS) # Convert the labels back into an image (for testing). quantized_image = centroids[labels].reshape(image.shape).astype(np.uint8) # Save the quantized_image image (for testing). cv2.imwrite('quantized_image.png', quantized_image) for k in range(K): mask = np.zeros((rows*cols, 1), np.uint8) # Create a zeroed mask in the size of image. mask[labels == k] = 255 # Place 255 where labels == k (all labels equals 0 are going to be 255 then all labels equals 1...) mask = mask.reshape((rows, cols)) # Reshape the mask back to the size of the image. #cv2.imshow(f'mask {k}', mask) # Show mask for testing cnts = cv2.findContours(mask, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE)[0] # Find contours for c in cnts: area_tresh = 500 area = cv2.contourArea(c) if area > area_tresh: # Ignore relatively small contours colored_mask = np.zeros_like(original_image) # Initialize colored_mask with zeros x, y = tuple(c[0][0]) # First coordinate in the contour color = original_image[y, x] # Get the color of the pixel in that coordinate cv2.drawContours(colored_mask, [c], 0, color.tolist(), -1) # Draw contour with the specific color cv2.imshow(f'colored_mask {k}', colored_mask) # Show colored_mask for testing cv2.imwrite(f'colored_mask_{k}.png', colored_mask) # Save as PNG for testing continue # Assume only the first large contour is relevant - continue to next iteration cv2.waitKey() cv2.destroyAllWindows() ``` --- Few output samples: [](https://i.stack.imgur.com/84C8l.png) [](https://i.stack.imgur.com/FrmKe.png) [](https://i.stack.imgur.com/cLmZr.png) [](https://i.stack.imgur.com/yQo0M.png) [](https://i.stack.imgur.com/lRf9c.png)
null
CC BY-SA 4.0
null
2022-12-25T22:31:34.110
2022-12-25T22:31:34.110
null
null
4,926,757
null
74,916,370
2
null
74,916,248
3
null
You would need to change `private Moveable target;` to `private List<Moveable> targets = new List<Moveable>();` This will make it possible to have several targets. Add a public method into MoverController: `public void RegisterTarget(Moveable targetToAdd) { targets.Add(targetToAdd)`. Now, whenever a Moveable object is created, make it call the RegisterTarget method. So it should look something like `GameObject.FindGameObjectWithTag("MoverController").GetComponent<MoverController>().RegisterTarget(`put the new target here`)`. You would finally need to change the MoveToNextWaypoint() method, just put foreach(Moveable target in targets) around all of the logic, and it will repeat the code for each target. I hope this was clear enough, let me know if you need clarification (or if I misunderstood your question).
null
CC BY-SA 4.0
null
2022-12-25T23:20:44.587
2022-12-25T23:20:44.587
null
null
19,504,921
null
74,916,430
2
null
74,916,417
0
null
``` div { outline: 2px dashed blue; display: inline-block; height: 48px; width: 56px; } ``` ``` <div></div> <div></div> <div></div> <div></div> ```
null
CC BY-SA 4.0
null
2022-12-25T23:39:00.660
2022-12-25T23:39:00.660
null
null
4,797,603
null
74,916,442
2
null
74,916,417
0
null
If your divs or topics are shown in one row instead of multiple rows, you could use `display:flex` on the parent div, then you set `flex-direction: column` and this will show each one of them in a column like the screenshot you attached
null
CC BY-SA 4.0
null
2022-12-25T23:42:45.447
2022-12-25T23:42:45.447
null
null
19,746,715
null
74,916,690
2
null
74,916,417
0
null
Just change your css to this: ``` .Topics { background-color: red; display: flex; justify-content: space-around; } .Topic { text-align: center; width: 20%; background-color: #f2eecb; margin: 2%; } ``` I think it can help you! [](https://i.stack.imgur.com/uCfxN.png)
null
CC BY-SA 4.0
null
2022-12-26T01:13:53.277
2022-12-26T01:13:53.277
null
null
13,646,752
null
74,916,771
2
null
74,916,417
0
null
Use ``` display: inline-block; ``` For Topics
null
CC BY-SA 4.0
null
2022-12-26T01:40:37.020
2022-12-26T01:40:37.020
null
null
16,752,434
null
74,916,908
2
null
74,916,750
0
null
In order to use the `justify-content` property the element also has to be `display: flex` (or `display: inline-flex`). What's the CSS for the `row` class? It doesn't seem to be keeping those two elements on a single line. That's where I'd be applying flex. Trying making that row `display: flex`. You might also need a `text-align: right` on the second column. `justify-content: center` seems like the wrong value for the first column, given that the design is left-aligned. Try something like ``` <div style="display:flex; justify-content: space-between;"> <div class="col-md-6"> <h2 style="color: beige; font-weight: bold; margin: auto;">I also code lots of side-projects that are either websites or applications using a wide variety of languages.</h3> </div> <div class="col-md-6" style="text-align: right;"> <h1 style="font-size: 7rem;">03</h1> </div> </div> ```
null
CC BY-SA 4.0
null
2022-12-26T02:23:15.740
2022-12-26T02:33:29.877
2022-12-26T02:33:29.877
633,330
633,330
null
74,916,930
2
null
74,916,750
1
null
You need to check the `flex` and properties of it such as `justify-content` [here](https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content) You may simply create same as in this snippet I did: ``` .items { display: flex; justify-content: space-between; align-items: flex-start; border-radius: 50px; background-color: #8A8583; padding: 20px 40px; } .items .left { width: 70%; } .items .left h3 { /* text-align: justify; */ } .items .right h1 { font-size: 70px; } ``` ``` <div class="items"> <div class="left"> <h3>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sequi modi, iste odit delectus vitae, dignissimos iusto non mollitia quae ipsum repellendus nobis doloremque esse blanditiis! Maiores vitae officia iusto inventore.</h3> </div> <div class="right"> <h1>03</h1> </div> </div> ```
null
CC BY-SA 4.0
null
2022-12-26T02:29:46.350
2022-12-26T02:29:46.350
null
null
10,489,887
null
74,916,928
2
null
74,916,750
0
null
You can use `display: flex` on the container to achieve this, also add margin to the left column and remove margins from the h1 like this: ``` ul { color: beige; margin-left: 25%; margin-right: 25%; } ``` ``` <li class="list-group-item px-3 border-0 rounded-3 mb-2" style="background-color: #8A8583;"> <div class="row" style="display: flex"> <div class="col-md-6"> <h2 style="color: beige; font-weight: bold; margin: auto; margin-right: 50px;">I also code lots of side-projects that are either websites or applications using a wide variety of languages.</h3> </div> <div class="col-md-6"><h1 style="font-size: 7rem; margin: 0">03</h1></div> </div> </li> ```
null
CC BY-SA 4.0
null
2022-12-26T02:29:36.347
2022-12-26T02:29:36.347
null
null
7,552,340
null
74,917,593
2
null
74,916,859
0
null
The error message is specifically complaining about the file '/System/Volumes/Data/data/db/journal/WiredTigerLog.0000000013'. The permission denied is coming from the underlying operating system. Things to check: - - - - -
null
CC BY-SA 4.0
null
2022-12-26T05:50:51.683
2022-12-26T05:50:51.683
null
null
2,282,634
null
74,917,672
2
null
74,887,836
0
null
The Regular expression Data Annotation is wrong. Use this instead `[RegularExpression(@"^[0-9]{4,5}$", ErrorMessage = "Please enter only numbers ")]`
null
CC BY-SA 4.0
null
2022-12-26T06:06:20.760
2022-12-26T06:06:20.760
null
null
20,384,773
null
74,917,929
2
null
74,912,764
1
null
First you Have to defined the recycler view and after that you have to initialize that view with the help of findviewbyId. so your MainActivity code will be look like this. ``` class MainActivity : ComponentActivity() { private lateinit var rvMaps : RecyclerView override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) rvMaps = findViewById(R.id.rvMaps) rvMaps.layoutManager //Add layout manager } } ```
null
CC BY-SA 4.0
null
2022-12-26T06:59:45.900
2022-12-26T06:59:45.900
null
null
20,756,071
null
74,918,001
2
null
35,670,755
0
null
I had to restart my pc :| After restarting pc, start MySQL service manually. (I don't know the real issue) [](https://i.stack.imgur.com/tu3xz.png)
null
CC BY-SA 4.0
null
2022-12-26T07:11:37.593
2022-12-26T07:11:37.593
null
null
12,433,791
null
74,918,168
2
null
74,886,710
0
null
A friend of mine provided me with a solution: The plugin order in `gatsby-config.js` actually matters in this case. `gatsby-plugin-sass` must come before `gatsby-plugin-netlify-cms` The plugin segment in `gatsby-config.js` should look like this: ``` { resolve: 'gatsby-plugin-sass', options: { additionalData: '@use "/src/styles/global" as *;', sassOptions: { includePaths: ['src/styles'], }, }, }, { resolve: 'gatsby-plugin-netlify-cms', options: { modulePath: `${__dirname}/src/cms/cms.js`, }, }, ```
null
CC BY-SA 4.0
null
2022-12-26T07:36:22.860
2022-12-26T07:36:22.860
null
null
10,701,430
null
74,918,190
2
null
8,101,665
0
null
This can also be caused when forcing VS2010 to write browsing information to a location which doesn't exist. For example when settings are exported on another machine and then imported on a new machine which doesn't have this path. In the following sample, I was forcing browsing information to be written to my local temp folder. When I imported my settings from an old computer, the path was pointing to a non-existent path. [](https://i.stack.imgur.com/1mX1Y.png)
null
CC BY-SA 4.0
null
2022-12-26T07:39:59.453
2022-12-26T07:39:59.453
null
null
1,547,583
null
74,918,455
2
null
74,911,233
0
null
Your import is for the namespace `namespace="http://www.tce.se.gov.br/sagres2022/xml/tabelasInternas"` (note the 2022) yet the tabelasInternas has the target namespace `http://www.tce.se.gov.br/sagres2023/xml/tabelasInernas` (note the 2023) so the namespaces simply don't match. I don't know whether that is just a typo in one of the documents or whether there are different versions of those schemas, but the error message is correct, you don't have a matching import, due to the namespace differences.
null
CC BY-SA 4.0
null
2022-12-26T08:20:36.880
2022-12-26T08:20:36.880
null
null
252,228
null
74,918,528
2
null
74,658,161
0
null
Colleagues told me that the controller that I use has problems with the ASCII standard. When I changed the mode to "RTU", everything worked.
null
CC BY-SA 4.0
null
2022-12-26T08:32:04.963
2022-12-26T08:32:04.963
null
null
20,667,407
null
74,918,601
2
null
74,918,373
0
null
Try `SEARCH()` and `FILTER()`. ``` =TEXTJOIN(", ",1,FILTER(Sheet2!$A$1:$A$3,ISNUMBER(SEARCH(Sheet2!$A$1:$A$3,A2)))) ``` `TEXTJOIN()` for joining multiple keyword if any. [](https://i.stack.imgur.com/qlalF.png)
null
CC BY-SA 4.0
null
2022-12-26T08:41:26.460
2022-12-26T08:41:26.460
null
null
5,514,747
null
74,918,676
2
null
74,918,389
0
null
[](https://i.stack.imgur.com/FUiDE.png) Click on the area circled with red on the image to get all of the resources like styling(CSS), images etc. You can also click on the individual CSS or the Image button to only see styling or images.
null
CC BY-SA 4.0
null
2022-12-26T08:51:12.500
2022-12-26T08:51:12.500
null
null
432,074
null
74,919,231
2
null
72,952,664
1
null
`pypdf` (and also `PyPDF2`) improved a lot. Especially for text extraction. Try it again with a recent version; it should work now. See [https://pypdf.readthedocs.io/en/latest/user/extract-text.html](https://pypdf.readthedocs.io/en/latest/user/extract-text.html) ``` from pypdf import PdfReader reader = PdfReader("example.pdf") for page in reader.pages: print(page.extract_text()) ``` However, there are two cases where it will not work: 1. Images: pypdf is not OCR software. Try tesseract in this case 2. Scrambled PDFs: Some people want to prevent software from reading their PDFs. This seems to be the case for your PDF. Your best shot is to convert the PDF to an image and use OCR software in such cases (again: tesseract)
null
CC BY-SA 4.0
null
2022-12-26T10:04:06.627
2022-12-26T10:04:06.627
null
null
562,769
null
74,919,218
2
null
74,912,688
0
null
I tried and solved this With [https://stackoverflow.com/a/72029126/19373198](https://stackoverflow.com/a/72029126/19373198) Answered code by Hernán Orsi. Here is the solution if it helps anyone! Add this to the end exit condition. ``` if (longIsActive) strategy.exit(id = 'Long Take Profit / Stop Loss', from_entry = 'Long Entry', qty_percent = takeProfitQuantityPerc, limit = takeProfitTrailingEnabled ? na : longTakeProfitPrice, stop = longStopLossPrice, trail_price = takeProfitTrailingEnabled ? longTakeProfitPrice : na, trail_offset = takeProfitTrailingEnabled ? longTrailingTakeProfitStepTicks : na, alert_message = 'Long(' + syminfo.ticker + '): Take Profit or Stop Loss executed') strategy.exit(id = 'Long Stop Loss', from_entry = 'Long Entry', stop = longStopLossPrice, alert_message = 'Long(' + syminfo.ticker + '): Stop Loss executed') // getting into SHORT position if (validOpenShortPosition) strategy.entry(id = 'Short Entry', direction = strategy.short, alert_message = 'Short(' + syminfo.ticker + '): Started') // submit exit order for trailing take profit price also set the stop loss for the take profit percentage in case that stop loss is reached first // submit exit order for trailing stop loss price for the remaining percent of the quantity not reserved by the take profit order if (shortIsActive) strategy.exit(id = 'Short Take Profit / Stop Loss', from_entry = 'Short Entry', qty_percent = takeProfitQuantityPerc, limit = takeProfitTrailingEnabled ? na : shortTakeProfitPrice, stop = shortStopLossPrice, trail_price = takeProfitTrailingEnabled ? shortTakeProfitPrice : na, trail_offset = takeProfitTrailingEnabled ? shortTrailingTakeProfitStepTicks : na, alert_message = 'Short(' + syminfo.ticker + '): Take Profit or Stop Loss executed') strategy.exit(id = 'Short Stop Loss', from_entry = 'Short Entry', stop = shortStopLossPrice, alert_message = 'Short(' + syminfo.ticker + '): Stop Loss executed') ``` ``` if (longIsActive) strategy.exit(id = 'Long Take Profit / Stop Loss', from_entry = 'Long Entry', qty_percent = takeProfitQuantityPerc, limit = takeProfitTrailingEnabled ? na : longTakeProfitPrice, stop = longStopLossPrice, trail_price = takeProfitTrailingEnabled ? longTakeProfitPrice : na, trail_offset = takeProfitTrailingEnabled ? longTrailingTakeProfitStepTicks : na, alert_message = 'Long(' + syminfo.ticker + '): Take Profit or Stop Loss executed') strategy.exit(id = 'Long Stop Loss', from_entry = 'Long Entry', stop = longStopLossPrice, alert_message = 'Long(' + syminfo.ticker + '): Stop Loss executed') strategy.close_all(stcDownBreakouts) if(ta.change(strategy.closedtrades) and strategy.openprofit > 0) strategy.cancel('Long Stop Loss') breakEven = (strategy.opentrades.entry_price(0)) strategy.exit(id = 'Long Stop - Breakeven', from_entry = 'Long Entry', loss=0) // getting into SHORT position if (validOpenShortPosition) strategy.entry(id = 'Short Entry', direction = strategy.short, alert_message = 'Short(' + syminfo.ticker + '): Started') // submit exit order for trailing take profit price also set the stop loss for the take profit percentage in case that stop loss is reached first // submit exit order for trailing stop loss price for the remaining percent of the quantity not reserved by the take profit order if (shortIsActive) strategy.exit(id = 'Short Take Profit / Stop Loss', from_entry = 'Short Entry', qty_percent = takeProfitQuantityPerc, limit = takeProfitTrailingEnabled ? na : shortTakeProfitPrice, stop = shortStopLossPrice, trail_price = takeProfitTrailingEnabled ? shortTakeProfitPrice : na, trail_offset = takeProfitTrailingEnabled ? shortTrailingTakeProfitStepTicks : na, alert_message = 'Short(' + syminfo.ticker + '): Take Profit or Stop Loss executed') strategy.exit(id = 'Short Stop Loss', from_entry = 'Short Entry', stop = shortStopLossPrice, alert_message = 'Short(' + syminfo.ticker + '): Stop Loss executed') strategy.close_all(stcUpBreakouts) if(ta.change(strategy.closedtrades) and strategy.openprofit > 0) strategy.cancel('Short Stop Loss') breakEven = (strategy.opentrades.entry_price(0)) strategy.exit(id = 'Short Stop - Breakeven', from_entry = 'Short Entry', loss=0) ```
null
CC BY-SA 4.0
null
2022-12-26T10:02:00.200
2022-12-26T10:06:30.727
2022-12-26T10:06:30.727
19,373,198
19,373,198
null
74,919,259
2
null
74,899,101
0
null
Flattening the nested JSON where key names are different is difficult to achieve in mapping dataflow as in dataflow, any transformation works on the defined source schema . Either you can go for writing custom code in C#,JAVA and use custom activity in ADF or you can change the JSON to defined format like below and apply flatten transformation directly on top of it: ``` { "first_name":"Jane", "last_name":"Doe", "userid":12345, "profile":{ "annoying_field_name":[ { "field_id":15, "field_name":"Gender", "value":"Female", "applicable":1 }, { "field_id":16, "field_name":"Interests", "value":"Baking", "applicable":1 } ] } } ```
null
CC BY-SA 4.0
null
2022-12-26T10:08:27.647
2022-12-26T10:08:27.647
null
null
17,721,124
null
74,919,385
2
null
74,581,897
0
null
Had the same issue, upgrading to v1.8.9 solved it ! ``` go install github.com/swaggo/swag/cmd/[email protected] ```
null
CC BY-SA 4.0
null
2022-12-26T10:24:59.187
2022-12-26T10:24:59.187
null
null
3,398,044
null
74,919,399
2
null
74,918,373
1
null
Perhaps you could try using the `LOOKUP()` Function [](https://i.stack.imgur.com/7fyLf.png) --- • Formula used in cell `B2` ``` =LOOKUP(9^9,SEARCH($D$1,A2),$D$1) ``` ---
null
CC BY-SA 4.0
null
2022-12-26T10:26:34.670
2022-12-26T10:26:34.670
null
null
8,162,520
null
74,919,609
2
null
74,905,458
1
null
you just get the data once, then give the array to jsx based on your search this is a function that returns an array based on the given array and the proprety that you want to filter with ``` export const findWithProp = (array, prop) => { var arrayToReturn =[]; if (prop=== "ALL") {return array;} else { array.forEach((element) => { if (element[prop]){arrayToReturn.push(element);} }); } return arrayToReturn;}; ``` so in your useEffect each time the value of the filter change let's call it "newValue" ``` const[newValue,setNewValue] = useState(""); ``` you can update the arrayToShow and give it to jsx ``` const[arrayToShow,setArrayToShow] = useState([]); useEffect(()=>{ setArrayToShow(findWithProp (users,newValue)) },[newValue]) ``` in your jsx : ``` { arrayToShow.map(element=>{ return( // your logic ) } ```
null
CC BY-SA 4.0
null
2022-12-26T10:57:30.797
2022-12-26T11:08:52.853
2022-12-26T11:08:52.853
13,488,990
13,488,990
null
74,919,677
2
null
74,877,495
0
null
I think the `+--` indicates that the package is a top-level dependency. When there is `+`, just `--`, it is a sub-dependency of another package.
null
CC BY-SA 4.0
null
2022-12-26T11:05:31.633
2022-12-26T11:05:31.633
null
null
20,035,486
null
74,919,901
2
null
74,919,423
0
null
The image should be imported with the full path. eg: "../../image/umma.png"
null
CC BY-SA 4.0
null
2022-12-26T11:32:36.527
2022-12-26T11:32:36.527
null
null
20,734,236
null
74,919,934
2
null
74,899,101
0
null
I agree with as in ADF we can only flatten the array of objects JSON. I have tried to reproduce this, but Your JSON includes different keys so convert into array of objects like above. Then, apart from flatten transformation in dataflow, you can also try copy activity to flatten. Give the source and sink JSONs and Go to . ![enter image description here](https://i.imgur.com/30glUFQ.png) Give the respective names to the columns. you can delete the unwanted column like above. ![enter image description here](https://i.imgur.com/upP9eZG.png)
null
CC BY-SA 4.0
null
2022-12-26T11:37:07.093
2022-12-26T11:37:07.093
null
null
18,836,744
null
74,920,075
2
null
74,916,882
1
null
Small data set, but this is one way to go about it. Modelling each student separately (with student as a key), and using the tidyverts approach: ``` library(dplyr) library(tidyr) library(tsibble) library(feasts) library(fable) ``` Data set ``` df <- structure(list(Year = structure(c(1995, 1996, 1997), class = "numeric"), Student1 = c(3, 1, 3), Student2 = c(2, 2, 2), Student3 = c(2, 3, 3), Student4 = c(2, 3, 2), Student5 = c(3, 3, 4)), row.names = c(NA, 3L), class = "data. Frame") ``` Tidy data ``` df <- df |> pivot_longer(names_to = "Student", cols = starts_with("Student")) |> as_tsibble(index = Year, key = Student) ``` Visualise ``` df |> autoplot() df |> filter(Student == "Student1") |> gg_tsdisplay(value, plot_type = 'partial') ``` Fit ARIMA ``` Stu_fit <- df |> model(search = ARIMA(value, stepwise = FALSE)) ``` Check fit ``` glance(Stu_fit) Stu_fit$search Stu_fit |> filter(Student == "Student1") |> gg_tsresiduals() ``` Forecast ``` Stu_fit |> forecast(h = 5) |> filter(.model == 'search') |> autoplot() ``` Hope this is helps! :-)
null
CC BY-SA 4.0
null
2022-12-26T11:59:43.823
2022-12-26T20:12:39.837
2022-12-26T20:12:39.837
1,738,003
1,738,003
null
74,920,204
2
null
74,919,423
1
null
You cannot assign the files directly(as a static link). You need to import it like an file or library. ``` import MyImage from './where/is/image/path/umma.png' ``` And you can use it like below: ``` <img src={MyImage} alt="its an image" /> ```
null
CC BY-SA 4.0
null
2022-12-26T12:17:56.587
2022-12-26T12:17:56.587
null
null
9,019,970
null
74,920,563
2
null
74,918,373
0
null
If you have a list of keywords, and you want to return the one that matches, then try: ``` =IFERROR(INDEX(KeyWords,AGGREGATE(15,6,1/ISNUMBER(FIND(KeyWords,A2))*ROW(KeyWords),1)),"") ```
null
CC BY-SA 4.0
null
2022-12-26T13:01:27.827
2022-12-26T13:01:27.827
null
null
2,872,922
null
74,920,573
2
null
69,582,190
0
null
It may be late, but after struggling with this issue for a while, I was able to find the right solution from the Animation Codelab sourcecode. The difference between this and the previous answer is that in this way, as soon as the page is scrolled up, the Fab is displayed and there is no need to reach the first item of the page to display the Fab. step one: getting an instance of the lazyListState class inside LazyColumn ``` val lazyListState = rememberLazyListState() ``` Step two: Creating a top level variable to hold the scroll state so that recompositions do not change the state value unintentionally. ``` var isScrollingUp by mutableStateOf(false) ``` Step three: just copy this composable Extension Function inside the file ``` @Composable private fun LazyListState.isScrollingUp(): Boolean { var previousIndex by remember(this) { mutableStateOf(firstVisibleItemIndex) } var previousScrollOffset by remember(this) { mutableStateOf(firstVisibleItemScrollOffset) } return remember(this) { derivedStateOf { if (previousIndex != firstVisibleItemIndex) { previousIndex > firstVisibleItemIndex } else { previousScrollOffset >= firstVisibleItemScrollOffset }.also { previousIndex = firstVisibleItemIndex previousScrollOffset = firstVisibleItemScrollOffset } } }.value } ``` Step four: Open an AnimatedVisibility block and pass the isScrollingUp variable as its first parameter. And finally, making the Fab and placing it inside the AnimatedVisibility ``` AnimatedVisibility(visible = isScrollingUp) { FloatingActionButton(onClick = { /*TODO*/ }) { // your code } } ``` have fun!
null
CC BY-SA 4.0
null
2022-12-26T13:02:21.967
2022-12-26T13:09:48.773
2022-12-26T13:09:48.773
17,997,171
17,997,171
null
74,920,616
2
null
74,905,238
0
null
No cause i have to go to .net core 2.1 to work on .net framework 4.8 and all my code broke lol so i guess i have no other chpice to rewrote it in .net 4.8 framework in a webapp project
null
CC BY-SA 4.0
null
2022-12-26T13:06:53.610
2022-12-26T13:08:52.023
2022-12-26T13:08:52.023
12,864,818
12,864,818
null
74,920,625
2
null
74,920,419
0
null
Maybe this example will help you solve the problem. [CodePen](https://codepen.io/rexjbull/pen/RwRRezq) Used AnimeJS + ScrollMagic. Briefly: ``` // Add scrollmagic controller let controller = new ScrollMagic.Controller(); // Add timeline let tl1 = anime.timeline({autoplay: false}); //Then add some animation ... and //Add first scrollmagic scene let scene1 = new ScrollMagic.Scene({ triggerElement: "#one", triggerHook: 0.5, reverse: false }) //Play // Trigger animation timeline .on("enter", function (event) { tl1.play(); }) .addTo(controller); ```
null
CC BY-SA 4.0
null
2022-12-26T13:07:56.990
2022-12-26T13:07:56.990
null
null
14,515,922
null
74,920,669
2
null
74,898,308
0
null
The issue is how you're determining the `point` for your color. The code you show: ``` let color = sliderRating.minimumTrackImage(for: .normal)?.getPixelColor(point: CGPoint(x: Int(sender.value), y: 1)) ``` is difficult to debug. Let's split that up: ``` // safely unwrap the optional to make sure we get a valid image if let minImg = sender.minimumTrackImage(for: .normal) { let x = Int(sender.value) let y = 1 let point = CGPoint(x: x, y: y) // to debug this: print("point:", point) // safely unwrap the optional returned color if let color = minImg.getPixelColor(pos: point) { // do something with color } } ``` By default, a slider has values between `0.0` and `1.0`. So as you drag the thumb, you'll see this output in the debug console: ``` // lots of these point: (0.0, 1.0) point: (0.0, 1.0) point: (0.0, 1.0) point: (0.0, 1.0) point: (0.0, 1.0) // then when you final get all the way to the right point: (1.0, 1.0) ``` As you see, you're not getting the point that you want on your image. You don't mention it, but if did something like this: ``` sliderRating.minimumValue = 100 sliderRating.maximumValue = 120 ``` Your `x` will range from `100` to `120`. Again, not the point you want. Instead of using the `.value`, you want to get the horizontal center of the thumb for `x`, and the vertical center of the for `y`. Try it like this: ``` @objc func sliderRatingValueChanged(_ sender: UISlider) { // get the slider's trackRect let trackR = sender.trackRect(forBounds: sender.bounds) // get the slider's thumbRect let thumbR = sender.thumbRect(forBounds: sender.bounds, trackRect: trackR, value: sender.value) // get the slider's minimumTrackImage if let minImg = sender.minimumTrackImage(for: .normal) { // we want point.x to be thumb rect's midX // we want point.y to be 1/2 the height of the min track image let point = CGPoint(x: thumbR.midX, y: minImg.size.height * 0.5) // for debugging: print("point:", point) // get the color at point if let color = minImg.getPixelColor(point: point) { // set tint color of thumb sender.thumbTintColor = color } } // now do something with the slider's value? let value = sender.value } ```
null
CC BY-SA 4.0
null
2022-12-26T13:12:04.747
2022-12-26T13:12:04.747
null
null
6,257,435
null
74,920,681
2
null
74,920,545
0
null
Tested, it works like this - check if this works for you: ``` $img = file_get_contents($_FILES['myimage']['tmp_name']); $fname = $_POST['fname']; // Error Check if Any mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT); // Connection building $conn = mysqli_connect( $host, $dbUserName, $password, $dbname ); var_dump($conn); // inserting incoming form data into Localhost MySql Database $sql = $conn->prepare("INSERT INTO mytable ( image_soldier , fname_soldier ) VALUES ( ? , ? )"); // Using 'b' for BLOB type parameters and 's' for string type parameters and Binding $sql -> bind_param("ss", $img, $fname); // Running the Sql statemnt $sql -> execute(); ``` --- If you want to get from temp file Instead of `$img = file_get_contents($_FILES['myimage']['name']);` try using `$img = file_get_contents($_FILES['myimage']['tmp_name']);` if you want to get of the file, then just use ``` $img = $_FILES['myimage']['name']; ``` bin 2 hex `$img = bin2hex(file_get_contents($_FILES['myimage']['tmp_name']));`
null
CC BY-SA 4.0
null
2022-12-26T13:14:45.263
2022-12-26T14:03:34.263
2022-12-26T14:03:34.263
2,279,883
2,279,883
null
74,920,917
2
null
74,852,310
1
null
Marcel Wilson gave me the key to my problem, but I did not realize unitl now. The problem was an iframe. ``` <iframe src="http://192.168.0.98/ReportServer_REPORTES/Pages/ReportViewer.aspx?%2fGaciReps%2fStock+Producto+en+Locales" name="EMBPAGE1" title="" style="width:100%;height:700px;overflow-x:auto;overflow-y:auto;display:block;margin:0 auto;border:none;"></iframe> ``` My code now must be like this: ``` driver.switch_to.frame("EMBPAGE1") wait = WebDriverWait(driver, timeout=5) producto = wait.until(EC.presence_of_element_located((By.ID, "ReportViewerControl_ctl04_ctl05_txtValue"))) producto.send_keys(110017901) ver_informe = driver.find_element(by=By.ID, value='ReportViewerControl_ctl04_ctl00') ver_informe.click() descarga = driver.find_element(by=By.ID,value='ReportViewerControl_ctl06_ctl04_ctl00_ButtonImgDown') descarga.click() ``` Thanks
null
CC BY-SA 4.0
null
2022-12-26T13:46:20.327
2022-12-26T13:47:42.037
2022-12-26T13:47:42.037
19,711,261
19,711,261
null
74,921,332
2
null
74,921,190
0
null
The function `SEARCH` returns a result for every cell in the given range (A1:A4). To get only one result, you can wrap it with `OR` to check whether any cell contains the text you are searching for. ``` =IF(OR(ISNUMBER(SEARCH("b",A1:A4))),"bb",IF(OR(ISNUMBER(SEARCH("d",A1:A4))),"cc","ee")) ``` Or just search for one cell at a time: ``` =IF(ISNUMBER(SEARCH("b",A1)),"bb",IF(ISNUMBER(SEARCH("d",A1)),"cc","ee")) ```
null
CC BY-SA 4.0
null
2022-12-26T14:39:22.380
2022-12-26T14:39:22.380
null
null
18,032,656
null
74,921,597
2
null
74,921,483
1
null
So you want your HTTP request object to be different than your EF Entity. This is a common pattern. Typical solution is to have a separate set of types that define the contract for your API and map back and forth to your EF Entity types. See eg [Create Data Transfer Objects (DTOs)](https://learn.microsoft.com/en-us/aspnet/web-api/overview/data/using-web-api-with-entity-framework/part-5)
null
CC BY-SA 4.0
null
2022-12-26T15:13:00.683
2022-12-26T15:13:00.683
null
null
7,297,700
null
74,921,697
2
null
72,952,664
1
null
The OP link above does not function today for me so here is a similar built file from the same source, (Note they use MSWord and normal Western Fonts such as Arial Calibri Cambria and Times Roman.ttf, thus not exotic or UTF-8) ``` File: vietnamese.pdf Title: Microsoft Word - Heading_Nice10 Author: Administrator Created: 2020-11-26 10:37:00 Modified: 2020-11-26 14:51:07 Application: Acrobat PDFMaker 11 for Word PDF Producer: Adobe PDF Library 11.0 PDF Version: 1.6 PDF Optimizations: Tagged PDF File Size: 431.4 KB (441,754 Bytes) Number of Pages: 51 Page Size: 21.0 x 29.7 cm (A4) Fonts: ArialMT (TrueType; Ansi) Calibri (TrueType; Ansi; embedded) Cambria (TrueType; Ansi; embedded) TimesNewRomanPS-BoldItalicMT (TrueType (CID); Identity-H; embedded) TimesNewRomanPS-BoldItalicMT (TrueType; Ansi) TimesNewRomanPS-BoldMT (TrueType (CID); Identity-H; embedded) TimesNewRomanPS-BoldMT (TrueType; Ansi) TimesNewRomanPS-ItalicMT (TrueType (CID); Identity-H; embedded) TimesNewRomanPS-ItalicMT (TrueType; Ansi) TimesNewRomanPSMT (TrueType (CID); Identity-H; embedded) TimesNewRomanPSMT (TrueType; Ansi) ``` So there is no problem with the de-en-coding of governmental Vietnamese PDFs One of the simplest ways to extract text from a PDF is use the simple line command `pdftotext vietnamese.pdf -layout vietnamese.txt` Result ``` CÔNG BÁO SỞ HỮU CÔNG NGHIỆP SỐ 392B (11/2021) PHỤ LỤC 2 BẢNG PHÂN LOẠI QUỐC TẾ HÀNG HÓA/DỊCH VỤ NI-XƠ Phiên bản 11-2021 BỘ KHOA HỌC VÀ CÔNG NGHỆ CỤC SỞ HỮU TRÍ TUỆ ----------------- ``` One minor problem may be some occasional word spacing may be odd and need minor adjustment or a slight change in command line options. [](https://i.stack.imgur.com/HcNaF.png) # Later Edit the OP file is accessible again and it is clearly in parts where the CID mapping is incorrect as seen in OP question, its not deliberate simply poorly constructed. To correct the mapping in such cases is hard work needing many partial remappings ``` C«ng b¸o së h÷u c«ng nghiÖp sè 411 tËp a - QUYÓN 1 (06.2022) M· Sè HAI CH÷ C¸I THÓ HIÖN T£N N¦íC Vμ C¸C THùC THÓ KH¸C TRONG C¸C T¦ LIÖU Së H÷U C¤NG NGHIÖP THEO TI£U CHUÈN ST3 CñA WIPO AE United Arab Emirates CN China HK Hong Kong ```
null
CC BY-SA 4.0
null
2022-12-26T15:25:55.807
2022-12-27T03:13:38.043
2022-12-27T03:13:38.043
10,802,527
10,802,527
null
74,921,696
2
null
74,919,930
0
null
If you want to know how it works I leave you my implementation of this feature (not perfect) with some comments ``` //add event on scroll on the window element and trigger scrollLeftAnimation function window.addEventListener("scroll", scrollLeftAnimation); function scrollLeftAnimation() { //get each element who have scrollLeftAnimation class let scrollLeftAnimationElements = document.querySelectorAll(".scrollLeftAnimation"); //for each scrollLeftAnimation element, call updateAnimation scrollLeftAnimationElements.forEach(SectionElement => updateAnimation(SectionElement)); function updateAnimation(SectionElement) { let ContentElement = SectionElement.querySelector(".animationContent"); //get the top value of element //for reference see https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect let y = ContentElement.getBoundingClientRect().y; //get a pourcent of scrolling let pourcent = Math.abs(SectionElement.getBoundingClientRect().y / (SectionElement.clientHeight - ContentElement.clientHeight)); let ContentOverflowElement = SectionElement.querySelector(".animationContentOverflow"); //get the scroll left available distance let ContentOverflowElementLeftScrollDistance = ContentOverflowElement.scrollWidth - ContentOverflowElement.clientWidth; if (y == 0) { //if element is sticky then scroll left = (max scroll left available distance) * (pourcent of scrolling) ContentOverflowElement.scrollLeft = ContentOverflowElementLeftScrollDistance * pourcent; } else if (y > 0) { //if element is bellow, then scroll left = 0 ContentOverflowElement.scrollLeft = 0; } else { //if element is above, then scroll left = max scroll left available distance ContentOverflowElement.scrollLeft = ContentOverflowElementLeftScrollDistance; } } } ``` ``` section { height: 100vh; } /*Main CSS*/ section.scrollLeftAnimation { /*The more the ratio between the height of .scrollLeftAnimation compared to .animationContent the more it will be necessary to scroll*/ height: 300vh; } section.scrollLeftAnimation .animationContent { /* using sticky to keep the element inside the window*/ position: sticky; top: 0; height: 100vh; } .animationContent .animationContentOverflow { height: 25vh; overflow: hidden; } /*CSS for card element*/ .animationContent ul { margin: 0; padding: 0; height: 100%; white-space: nowrap; } .card { border: 1px solid black; height: 100%; width: 35vw; background-color: gray; display: inline-block; } .card + .card { margin-left: 50px; } .card:first-child { margin-left: 25px; } .card:last-child { margin-right: 25px; } ``` ``` <section style="background-color: darkorchid;">Regular section 1</section> <section class="scrollLeftAnimation" style="background-color: deeppink;"> <div class="animationContent"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet consectetur adipiscing elit pellentesque habitant. In fermentum posuere urna nec.</p> <div class="animationContentOverflow"> <ul> <li class="card"><a href="#">card 1</a></li> <li class="card"><a href="#">card 2</a></li> <li class="card"><a href="#">card 3</a></li> <li class="card"><a href="#">card 4</a></li> </ul> </div> </div> </section> <section style="background-color: violet;">Regular section 4</section> <section style="background-color: silver;">Regular section 5</section> <section class="scrollLeftAnimation" style="background-color: peru;"> <div class="animationContent"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet consectetur adipiscing elit pellentesque habitant. In fermentum posuere urna nec. Posuere ac ut consequat semper viverra nam libero justo laoreet. Tristique risus nec feugiat in fermentum posuere urna nec tincidunt. Rhoncus dolor purus non enim praesent elementum facilisis leo. Turpis tincidunt id aliquet risus feugiat in ante metus.</p> <div class="animationContentOverflow"> <ul> <li class="card"><a href="#">card 1</a></li> <li class="card"><a href="#">card 2</a></li> <li class="card"><a href="#">card 3</a></li> <li class="card"><a href="#">card 4</a></li> </ul> </div> </div> </section> <section style="background-color: orange;">Regular section 7</section> ```
null
CC BY-SA 4.0
null
2022-12-26T15:25:52.640
2022-12-26T16:09:26.733
2022-12-26T16:09:26.733
9,947,331
9,947,331
null
74,921,955
2
null
72,342,670
4
null
Add this line to your project: ``` <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" /> ``` It helped me.
null
CC BY-SA 4.0
null
2022-12-26T15:58:22.593
2022-12-26T16:03:22.803
2022-12-26T16:03:22.803
20,865,879
20,865,879
null
74,922,313
2
null
74,922,085
1
null
Your function should be named `lambda_handler` ``` def lambda_handler(event,context): ``` The documentation provides more information on this here: [https://docs.aws.amazon.com/lambda/latest/dg/python-handler.html](https://docs.aws.amazon.com/lambda/latest/dg/python-handler.html)
null
CC BY-SA 4.0
null
2022-12-26T16:48:04.367
2022-12-26T16:48:04.367
null
null
7,909,676
null
74,922,515
2
null
74,922,247
0
null
use decimal instead of int: ``` private static decimal Calculate(string st) { string[] stNum = st.Split(','); decimal sum = 0; foreach (var num in stNum) { sum += decimal.Parse(num); } return sum; } ``` with link it would look shorter and simpler: ``` private static decimal Calculate(string st) { string[] stNum = st.Split(','); return stNum.Sum(x => decimal.Parse(x)); } ```
null
CC BY-SA 4.0
null
2022-12-26T17:17:05.287
2022-12-26T17:17:05.287
null
null
3,179,389
null
74,922,581
2
null
74,921,862
0
null
Here's how I would setup the storyboard. Start by ignoring the need to login for a moment. 1. Make the tab bar controller the initial view controller of your storyboard. 2. Each tab of the tab bar controller should have its own navigation controller, if needed. In other words, a tab can either be a single view controller or it can be a stack of view controllers managed by a tab-specific navigation controller. 3. Now add the login controller as a controller that is presented modally over the tab bar controller. On app startup you can immediately present the login controller over the tab bar controller if the user needs to login. Once the user successfully logs in you dismiss the login controller revealing the tab bar controller. Later on when the user chooses to logout you present the login controller modally over the tab bar controller again.
null
CC BY-SA 4.0
null
2022-12-26T17:27:12.957
2022-12-26T17:27:12.957
null
null
20,287,183
null
74,922,664
2
null
74,922,085
0
null
Seems like in line 6 you have used > def handler(event,context): instead of > def lambda_handler(event,context): If you want to keep using def handler(event,context): you also need to enter this in 'Handler' option in 'Runtime Settings' [](https://i.stack.imgur.com/CUnYU.png)
null
CC BY-SA 4.0
null
2022-12-26T17:37:11.870
2022-12-26T17:37:11.870
null
null
8,854,904
null
74,922,679
2
null
74,900,234
1
null
It seems like there may be two different issues here: This is happening because `.rbt-aux` has `pointer-events: none;` set to avoid blocking clicks on the input. The default close button then has `pointer-events: auto;` to enable clicks on the button. You'll need to add something similar, or define your own element to position the clear button that doesn't remove pointer-events. ``` .rbt-aux .btn-close { pointer-events: auto; } ``` I'm not sure why this is happening. Based on your code sample, there should only be one button rendering. If you plan on rendering a custom clear button, be sure not to set the `clearButton` prop on the typeahead (or set it to `false`, which is the default).
null
CC BY-SA 4.0
null
2022-12-26T17:39:34.853
2022-12-26T17:39:34.853
null
null
882,638
null
74,922,858
2
null
51,113,134
0
null
When I think of and , it is in the first loop an , i.e. a map             Set<T>  x  Set<T>  →  Set<T>Not clear, why it would appear in Java design that shirtsleeved. ``` static <T> Set<T> union(Set<T> a, Set<T> b) { Set<T> res = new HashSet<T>(a); res.addAll(b); return res; } static <T> Set<T> intersection(Set<T> a, Set<T> b) { Set<T> res = new HashSet<T>(a); res.retainAll(b); return res; } ```
null
CC BY-SA 4.0
null
2022-12-26T18:05:29.860
2022-12-26T18:05:29.860
null
null
9,437,799
null
74,922,925
2
null
74,922,800
0
null
This depends on your Syntax Highlighting theme. Either find the one that already has this text stylized or edit your current one to do it. The parameter you need to set in there is called `"fontStyle"` and you need to set it as `"italic"` for all entities you want. You can find more about it in the Visual Studio Code [documentation](https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide) This sounds difficult but it's not really, just bit time consuming. Fastest way would be of course finding a theme that already has it set though :) Good luck!
null
CC BY-SA 4.0
null
2022-12-26T18:14:53.980
2022-12-26T18:14:53.980
null
null
20,862,292
null
74,922,982
2
null
74,905,728
1
null
I used `split = 'train'` instead of `split = ['train']`. This allowed me to access the batch() method.
null
CC BY-SA 4.0
null
2022-12-26T18:23:36.613
2022-12-26T18:23:36.613
null
null
18,956,922
null
74,923,231
2
null
74,923,088
1
null
I think, you should use .keys to click on the post button, and using the id is a good idea. ``` from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By driver.impicitly_wait(4) post_button = driver.find_element(By.ID, 'u_0_25_2e') post_button.send_keys(Keys.'RETURN') or post_button = driver.find_element(By.ID, 'u_0_27_ty') post_button.send_keys(Keys.'RETURN') ``` you can open try, except block or use driver.wait until expected conditions. Hope it helps.
null
CC BY-SA 4.0
null
2022-12-26T18:57:46.133
2022-12-26T18:57:46.133
null
null
19,331,099
null
74,923,510
2
null
74,909,322
0
null
With Spring Security, the sigle "all" is exprimed with "**". ``` @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http.authorizeHttpRequests(authorization -> authorization .requestMatchers("/**").permitAll() ); return http.build(); } ``` You may encounter another problem with ``` @SpringBootApplication @ComponentScan(basePackageClasses = CartasController.class) public class ServicesTcgApplication { public static void main(String[] args) { SpringApplication.run(ServicesTcgApplication.class, args); } } ``` Unless you know what you're doing, you should let spring handle the package scanning for you. ``` @SpringBootApplication public class ServicesTcgApplication { public static void main(String[] args) { SpringApplication.run(ServicesTcgApplication.class, args); } } ``` More information on Spring Security on [https://docs.spring.io/spring-security/reference/index.html](https://docs.spring.io/spring-security/reference/index.html)
null
CC BY-SA 4.0
null
2022-12-26T19:42:23.493
2022-12-26T19:42:23.493
null
null
11,405,229
null
74,923,522
2
null
30,605,949
0
null
I fixed same issue on weston version 9 by modifying /etc/xdg/weston/weston.ini panel-position=none
null
CC BY-SA 4.0
null
2022-12-26T19:44:26.747
2022-12-26T19:44:26.747
null
null
9,255,621
null
74,923,790
2
null
74,923,093
1
null
Here is a solution for the "easy" case where we know the grid configuration. I provide this solution even though I doubt this is what you were asked to do. In your example image of the cat, if we are given the grid configuration, 2x2, we can do: ``` from PIL import Image def subdivide(file, nx, ny): im = Image.open(file) wid, hgt = im.size # Size of input image w = int(wid/nx) # Width of each subimage h = int(hgt/ny) # Height of each subimage for i in range(nx): x1 = i*w # Horicontal extent... x2 = x1+w # of subimate for j in range(ny): y1 = j*h # Certical extent... y2 = y1+h # of subimate subim = im.crop((x1, y1, x2, y2)) subim.save(f'{i}x{j}.png') subdivide("cat.png", 2, 2) ``` The above will create these images: [](https://i.stack.imgur.com/7lyN0.png) [](https://i.stack.imgur.com/tE9bP.png) [](https://i.stack.imgur.com/MJzFO.png) [](https://i.stack.imgur.com/QiZBS.png)
null
CC BY-SA 4.0
null
2022-12-26T20:32:31.030
2022-12-26T20:32:31.030
null
null
8,072,841
null
74,923,925
2
null
74,923,891
0
null
The file path included in `pubspec.yaml` don't match the actual file name in your fonts folder, you added an extra in the path, change : ``` Sevillanna ``` with: ``` Sevillana // removed the extra n in name ```
null
CC BY-SA 4.0
null
2022-12-26T20:56:51.560
2022-12-26T20:56:51.560
null
null
18,670,641
null
74,923,976
2
null
74,886,335
0
null
To find out how many degrees or radians you need to rotate an object along all axes (pitch, yaw, and roll), you can use a Delta Find function. This function takes two rotations as input: the current rotation of the object and the target rotation. It returns the rotation that will make the object face the target rotation. ``` // Assume that Object1 has a known starting rotation and you want to rotate it to a specific target rotation FRotator StartingRotation = Object1->GetActorRotation(); FRotator TargetRotation = ...; // Set the target rotation to the desired value // Calculate the rotation needed to make Object1 face the target rotation FRotator DeltaRotation = FindDeltaRotation(StartingRotation, TargetRotation); // Add the calculated delta rotation to the starting rotation to get the final rotation FRotator FinalRotation = StartingRotation + DeltaRotation; // Set the rotation of Object1 to the final rotation Object1->SetActorRotation(FinalRotation); ``` This will rotate Object1 so that it is facing the target rotation. Note that the Find Delta Rotation function will rotate the object around all axes (pitch, yaw, and roll) as needed to achieve the desired orientation. All FindDeltaRotation is: ``` FRotator FindDeltaRotation(const FRotator& A, const FRotator& B) { return B - A; } ```
null
CC BY-SA 4.0
null
2022-12-26T21:06:38.483
2022-12-26T21:06:38.483
null
null
94,167
null
74,924,135
2
null
74,923,930
0
null
I guess you used a Column widget in the body of your page. so you can use the Spacer() widget. You can find an example here : [https://dartpad.dev/?id=e75b493dae1287757c5e1d77a0dc73f1](https://dartpad.dev/?id=e75b493dae1287757c5e1d77a0dc73f1)
null
CC BY-SA 4.0
null
2022-12-26T21:36:52.640
2022-12-26T21:36:52.640
null
null
3,293,320
null
74,924,224
2
null
74,923,917
0
null
Inside the container, add another container as child and add a margin. And set `Colors.transparent` as the color of outer container. Then adjust the properties of inner container to achieve desired output.
null
CC BY-SA 4.0
null
2022-12-26T21:51:51.263
2022-12-26T21:54:44.440
2022-12-26T21:54:44.440
9,172,242
9,172,242
null
74,924,386
2
null
18,111,582
0
null
for bootstrap 5 with versions of tinymce 5 o above, you must use this, ``` // Prevent Bootstrap dialog from blocking focusin document.addEventListener('focusin', (e) => { if (e.target.closest(".tox-tinymce-aux, .moxman-window, .tam-assetmanager- root") !== null) { e.stopImmediatePropagation(); } }); ``` by [1]: [https://www.tiny.cloud/docs/integrations/bootstrap/#usingtinymceinabootstrapdialog](https://www.tiny.cloud/docs/integrations/bootstrap/#usingtinymceinabootstrapdialog)
null
CC BY-SA 4.0
null
2022-12-26T22:23:10.193
2022-12-26T22:23:10.193
null
null
20,624,854
null
74,924,527
2
null
74,922,156
0
null
Here is a solution using `strptime`. I simplified the example to keep it reproducible, because the question was regarding the time column. ``` library(shiny) library(shinyTime) ui <- fluidPage( timeInput(inputId = "time", label = "Insira a hora", value = Sys.time(), seconds = FALSE), dataTableOutput("glucosedf"), actionButton(inputId = "update", label = "Submeter") ) server <- function(input, output, session) { values <- reactiveValues( df=data.frame( "Glicose" = NULL, "Time" = NULL, "Measurement" = NULL) ) observeEvent(input$update, { values$df = rbind( values$df, data.frame("Glicose"=0, "Time"=strptime(input$time,format="%Y-%m-%d %H:%M:%S"), "Measurement"=0) ) }) output$glucosedf <- renderDataTable({ values$df }) } shinyApp(ui, server) ```
null
CC BY-SA 4.0
null
2022-12-26T22:51:05.227
2022-12-27T07:42:02.883
2022-12-27T07:42:02.883
13,302
12,256,545
null
74,924,992
2
null
74,924,964
0
null
You'll need to put the filters into state. Either have a different state for each possible filter, or use a single state with an object. Then use that state as the basis for the filtered products. You probably don't want to do `setProduct(result);`, because that'll overwrite the existing state; you won't be able to get back to the original products. Instead of having a state for the filtered products, filter them when rendering. ``` const [filters, setFilters] = useState({ category: '', brand: '', type: '', }); const makeFilter = (property, newFilterValue) => () => { setFilters({ ...filters, [property]: newFilterValue, }); }; ``` The utility function `makeFilter` above makes it easy to concisely create a click handler that adds a filter. ``` <h3 onClick={makeFilter('category', 'test')}>Filter by Category "test"</h3> <h3 onClick={makeFilter('category', 'abc')}>Filter by Category "test"</h3> ``` And to render: ``` products // original state .filter(prod => prod.category.includes(filters.category) && prod.brand.includes(filters.brand) && prod.type.includes(filters.type) ) .map(product => // JSX to render product, as desired ```
null
CC BY-SA 4.0
null
2022-12-27T00:57:29.240
2022-12-27T00:57:29.240
null
null
9,515,207
null
74,925,105
2
null
74,925,079
0
null
Resetting the values all back to black in the beginning of the function should leave you with only one red number at the end of it. ``` function findLowest() { // Get the input elements var value1 = document.getElementById("value1"); var value2 = document.getElementById("value2"); var value3 = document.getElementById("value3"); // Remove class "lowest" to turn all numbers black value1.classList.remove('lowest'); value2.classList.remove('lowest'); value3.classList.remove('lowest'); // Find the lowest number value var lowestValue = Math.min(parseInt(value1.value), parseInt(value2.value), parseInt(value3.value)); // Check which element has the lowest number value and add the "lowest" class to it if (parseInt(value1.value) === lowestValue) { value1.classList.add('lowest'); } else if (parseInt(value2.value) === lowestValue) { value2.classList.add('lowest'); } else if (parseInt(value3.value) === lowestValue) { value3.classList.add('lowest'); } } ```
null
CC BY-SA 4.0
null
2022-12-27T01:35:13.830
2022-12-27T01:35:13.830
null
null
9,038,475
null
74,925,092
2
null
74,804,105
1
null
I'm sorry that the description of the question was unclear. [Javier TG](https://stackoverflow.com/users/14559854/javier-tg) solved my problem > The issue is with using reshape to permute the axes -> opencv's imread gives an array of size (H, W, 3), so to get the pytorch's (1, 3, H, W) representation, transpose (in numpy) and permute (in pytorch) should be used instead. Try substituting the first reshape with img = img[None].transpose(0, 3, 1, 2), and the last reshaping with img = img[0].permute(1, 2, 0).detach().numpy() – Javier TG I thought the problem is in the `nn.Conv2d()` function but i just wrong transposed data. Corrected code: ``` import torch from torch import nn import cv2 img = cv2.imread("image_game/eldenring 2022-12-14 19-29-50.png") cv2.imshow('input', img) # (720, 1280, 3) img = img[None].transpose(0, 3, 1, 2) img = torch.as_tensor(img).float() # torch.Size([1, 3, 720, 1280]) c1 = nn.Conv2d(3, 3, kernel_size=(3, 3), padding=1, stride=1) img = c1(img) img = img[0].permute(1, 2, 0).detach().numpy() # (720, 1280, 3) cv2.imshow('output', img) cv2.waitKey(0) ```
null
CC BY-SA 4.0
null
2022-12-27T01:29:37.997
2022-12-27T01:29:37.997
null
null
20,729,587
null