Id int64 4 8.51M | PostTypeId int64 1 7 | AcceptedAnswerId int64 7 75.5M ⌀ | ParentId int64 4 41.8M ⌀ | Score int64 -208 27.7k | ViewCount int64 11 12.4M ⌀ | Body stringlengths 0 45k | Title stringlengths 2 150 ⌀ | ContentLicense stringclasses 3
values | FavoriteCount int64 0 225 ⌀ | CreationDate stringdate 2008-07-31 21:42:52 2011-12-14 18:48:47 | LastActivityDate stringdate 2008-08-01 12:19:17 2023-03-05 04:40:26 | LastEditDate stringdate 2008-08-01 13:54:25 2023-03-05 03:12:45 ⌀ | LastEditorUserId int64 -1 21.3M ⌀ | OwnerUserId int64 -1 21.1M ⌀ | Tags listlengths 1 6 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
75,633,410 | 1 | null | null | 0 | 15 | I am trying to add a line of code to get the path to external storage directory
`File extStore = Environment.getExternalStorageDirectory();`
However, I cannot figure out what I need to Import to get the `File` and `Environment` objects
Android studio is not automatically adding it as I expected
Searching online, I cann... | Android Studio not adding Imports, cannot find Import for File class | CC BY-SA 4.0 | null | 2023-03-04T03:07:37.723 | 2023-03-04T03:07:37.723 | null | null | 2,056,201 | [
"java",
"android",
"android-studio"
] |
75,633,408 | 1 | null | null | 0 | 21 | I have written code to create a multiple line CSV file. For this purpose one column will write default values and the other columns will have blank values to be edited later.
What results from the code is the headers being created correctly, but all list values being merged into the first row.
```
import csv
# Write H... | Appending multiple lines to CSV with for loop in python | CC BY-SA 4.0 | null | 2023-03-04T03:06:42.757 | 2023-03-04T14:34:38.740 | null | null | 21,241,812 | [
"python",
"csv",
"for-loop",
"append"
] |
75,633,404 | 2 | null | 75,397,083 | 0 | null | The Orleans serializer has a lot of performance and flexibility benefits, but as you have discovered it comes with a very hard edge around the use of 3rd party types. You have a few options, none of which are great
1. Continue to use the 3rd party types and define surrogates and codecs for every type in that you will ... | null | CC BY-SA 4.0 | null | 2023-03-04T03:03:45.007 | 2023-03-04T03:03:45.007 | null | null | 12,772,664 | null |
75,633,411 | 2 | null | 75,633,281 | 2 | null | We can directly subtract the two data frames where the `abs`olute value in the list must be greater than the `abs`olute value in the `df`, and at the same time, their `sign` must be equal. The result would be logical, we can use `Reduce` to sum up the logical matrices.
```
Reduce(`+`, lapply(l, \(x) {
(abs(x) > abs(d... | null | CC BY-SA 4.0 | null | 2023-03-04T03:07:42.483 | 2023-03-04T03:14:10.580 | 2023-03-04T03:14:10.580 | 16,647,496 | 16,647,496 | null |
75,633,412 | 1 | null | null | -1 | 12 | I am trying to detect outlier images and need some guidance.
Imagine I have a camera in the sea. The camera is recording 24/7. Only a single fish is ever visible in the frame at a time.
Now imagine I just turned the camera on. At first, the images contain no fish/objects -- just blue sea. Suddenly, a clown fish appears... | Unsupervised, realtime outlier image detection which updates over time | CC BY-SA 4.0 | null | 2023-03-04T03:07:52.447 | 2023-03-04T03:07:52.447 | null | null | 596,841 | [
"computer-vision",
"outliers",
"anomaly-detection"
] |
75,633,413 | 1 | null | null | 0 | 20 | Let's say I have 2 textboxes in a user registration form
- -
User is required to fill up 1 of them but not both.
How can this be done using ASP.NET Core model validation?
Adding [Required] attribute on both Email and Username properties did not achieve the objective
| Razor pages model validation if either textboxes is required | CC BY-SA 4.0 | null | 2023-03-04T03:08:06.383 | 2023-03-04T06:22:09.860 | 2023-03-04T06:22:09.860 | 18,826,399 | 18,826,399 | [
"asp.net-core",
"razor-pages"
] |
75,633,417 | 1 | null | null | 0 | 3 | when i run "npm install" it has below error.
(venv) faiz@faiz-Latitude-E7270:~/Documents/ploranzai/frontend$ npm install --force
npm WARN using --force Recommended protections disabled.
npm ERR! code ENOTEMPTY
npm ERR! syscall rename
npm ERR! path /home/faiz/Documents/ploranzai/frontend/node_modules/react-icons
npm ERR... | A complete log of this run can be found in: /home/faiz/.npm/_logs/2023-03-04T02_57_43_664Z-debug-0.log | CC BY-SA 4.0 | null | 2023-03-04T03:09:13.197 | 2023-03-04T03:09:13.197 | null | null | 15,355,517 | [
"npm",
"installation"
] |
75,633,415 | 2 | null | 75,633,385 | 1 | null | See the [csv.DictReader docs](https://docs.python.org/3/library/csv.html#csv.DictReader), in particular the second paragraph. If you don't use a `fieldnames` parameter (which you didn't), the resulting dict's keys (fieldnames) are the values in the first row of the CSV file. You can access the fieldnames in your code u... | null | CC BY-SA 4.0 | null | 2023-03-04T03:08:51.653 | 2023-03-04T18:19:02.623 | 2023-03-04T18:19:02.623 | 1,426,065 | 1,426,065 | null |
75,633,414 | 1 | null | null | -1 | 13 | I run a CTF for teenagers as part of a local LAN party. Our goal is to "nerdsnipe" teenagers in our local area into developing their technical skills, as well as expose the interest to more kids.
As a part of this, I want to give them something Technology-related as a prize. My hope was to be able to give them credits ... | Gifting teenagers access to "the real deal" in technology competitions | CC BY-SA 4.0 | null | 2023-03-04T03:08:23.980 | 2023-03-04T03:08:23.980 | null | null | 2,931,209 | [
"cloud",
"gift"
] |
75,633,422 | 2 | null | 75,633,385 | 0 | null | The only thing I can think of is that your program somehow assumes the first row as headers. Typically .csv files have headers as the first line. So what I would do is probably get rid of if(i == 0) and its content to just directly append the row.
| null | CC BY-SA 4.0 | null | 2023-03-04T03:10:22.147 | 2023-03-04T03:10:22.147 | null | null | 20,358,895 | null |
75,633,418 | 2 | null | 75,518,352 | 0 | null | This error happens when binlog fails to capture a DDL. I am using Aurora MySQL and face this error when AWS patches the Database binaries and restarts. Here what I do -
- - `schema_only_recovery`
Reference - [https://tech.bigbasket.com/a-year-and-a-half-with-debezium-f4f323b4909d](https://tech.bigbasket.com/a-year-and-... | null | CC BY-SA 4.0 | null | 2023-03-04T03:09:13.363 | 2023-03-04T04:29:13.207 | 2023-03-04T04:29:13.207 | 5,362,116 | 5,362,116 | null |
75,633,416 | 2 | null | 75,633,154 | 0 | null | In theory, providing it in a bean should work, but you should be sure to initialize its data in the bean.
```
@Bean
public List<Student> getStudents() {
RestTemplate restTemplate = new RestTemplate();
List<Student> people = restTemplate.exchange("https://some.url.com", ...other params);
return people;
}
```... | null | CC BY-SA 4.0 | null | 2023-03-04T03:09:11.597 | 2023-03-04T03:30:00.210 | 2023-03-04T03:30:00.210 | 3,582,362 | 3,582,362 | null |
75,633,424 | 2 | null | 75,631,968 | 0 | null | > I believe it might be evaluating the field.field_path as a string value and not a variable.
Since `field` is a variable, it can't be used as a column name. Instead, you can consider a dynamic SQL like below.
For example,
```
FOR field IN (
SELECT
field_path, data_type
FROM
`project.dataset.INFORMATION_SCH... | null | CC BY-SA 4.0 | null | 2023-03-04T03:11:37.353 | 2023-03-04T03:30:04.473 | 2023-03-04T03:30:04.473 | 19,039,920 | 19,039,920 | null |
75,633,409 | 1 | null | null | -1 | 29 | I am updating the authorization process on an old Symfony REST API / AngularJS App combo.
On authentication, the server provides cookies, containing a couple of token to be stored on the browser so that they are added as headers in subsequent requests - pretty standard - but the cookies headers are not being included i... | Why are Cookies not being set in request headers? | CC BY-SA 4.0 | null | 2023-03-04T03:07:00.927 | 2023-03-04T14:31:47.860 | 2023-03-04T14:31:47.860 | 608,541 | 608,541 | [
"javascript",
"php",
"angularjs",
"symfony4",
"setcookie"
] |
75,633,426 | 2 | null | 69,693,907 | 0 | null | i removed , then executed
`npm i`, then `npm audit fix --force`
it worked completely fine
| null | CC BY-SA 4.0 | null | 2023-03-04T03:12:51.787 | 2023-03-04T03:12:51.787 | null | null | 10,379,995 | null |
75,633,425 | 1 | null | null | 0 | 28 | do I have to create a destructor if I have a nullable type as member variable of a class in Kotlin?
```
class Mesh{
var tris:ArrayList<Int>?=null
init{
tris=arrayListOf<Int>()
}
fun initOneTri(tri:Int){
tris?.add(tri)
}
fun destructor(){
tris=null //Is ... | in kotlin do I have to set my class's nullable member variables to null after it goes out of scope? | CC BY-SA 4.0 | null | 2023-03-04T03:11:45.463 | 2023-03-04T03:11:45.463 | null | null | 14,763,592 | [
"kotlin",
"generics",
"destructor",
"nullable",
"member"
] |
75,633,405 | 2 | null | 75,632,710 | 0 | null | If you really want rounded line caps, or you want to be able to easily animate the progress using `UIView` or `CALayer` animation, you need to draw the path so that it starts and ends at 315°.
[](https://i.stack.imgur.com/EX5oL.gif)
Since 315° is in the middle of one of the rounded corners, you have to start the drawin... | null | CC BY-SA 4.0 | null | 2023-03-04T03:06:01.810 | 2023-03-04T03:06:01.810 | null | null | 77,567 | null |
75,633,421 | 2 | null | 75,633,300 | 0 | null | I believe you could use-
```
@Query("SELECT * FROM words WHERE childId = :childId ORDER BY " +
"CASE WHEN :parameter = 0 THEN dateTime END DESC, " +
"CASE WHEN :parameter = 1 THEN dateTime END ASC, " +
"CASE WHEN :parameter = 2 THEN wordName END DESC, " +
"CASE WHEN :parameter = 3 THEN wordName END ASC")
List<Word> fin... | null | CC BY-SA 4.0 | null | 2023-03-04T03:10:12.630 | 2023-03-04T05:05:28.240 | 2023-03-04T05:05:28.240 | 4,744,514 | 4,744,514 | null |
75,633,338 | 1 | null | null | 0 | 30 | I have created a gt table using the following code:
```
bovids.summary.carb <-
bovids %>%
mutate(across(Member, factor, levels = c("UpperBurgi", "KBS", "Okote"))) %>%
group_by(Dep_context, Member, Tribe) %>%
summarize(
mean_d13C = mean(d.13.C, na.rm = TRUE),
median_d13C = median(d.13.C, na.rm = TR... | Editing row labels in {gt} in R | CC BY-SA 4.0 | null | 2023-03-04T02:44:32.583 | 2023-03-04T18:06:55.590 | 2023-03-04T18:06:55.590 | 20,323,739 | 20,323,739 | [
"r",
"gt"
] |
75,633,430 | 2 | null | 75,632,944 | 1 | null | The error here seems to be due to a [bug](https://github.com/ballerina-platform/ballerina-lang/issues/39803) in inferring if the (infer) anonymous function is an `isolated` function when there's type narrowing of a parameter.
As a workaround, you would have to explicitly specify that the function is an `isolated` funct... | null | CC BY-SA 4.0 | null | 2023-03-04T03:15:01.687 | 2023-03-04T03:15:01.687 | null | null | 8,887,779 | null |
75,633,427 | 1 | null | null | 0 | 35 | This simple piece of code for some reason is causing the compiler to show an error:
```
#include <iostream>
using namespace std;
int main() {
size_t c_string_length{15};
auto* selection{new char[c_string_length]{"Biggie Smalls"}};
for(size_t i{};i<c_string_length;i++)
cout<<selection[i];
delete [] selection;
... | Compiler flagging error for using array size variable | CC BY-SA 4.0 | null | 2023-03-04T03:13:31.687 | 2023-03-04T03:35:09.097 | null | null | 17,042,752 | [
"c++",
"arrays",
"c++11",
"dynamic-memory-allocation"
] |
75,633,437 | 2 | null | 75,567,131 | 0 | null | Thanks for the great answer!
Ken Wolf helped me solve my problem!!! :)
| null | CC BY-SA 4.0 | null | 2023-03-04T03:16:01.187 | 2023-03-04T03:16:01.187 | null | null | 19,034,279 | null |
75,633,433 | 2 | null | 75,629,514 | 0 | null | Unintuitively, this turned out to be a problem using a static IP address in the guest. After switching and testing a few configurations, using DHCP consistently works.
I installed the OS from the same ISO into VirtualBox and experienced identical problems--https downloads break with a static IP but is fine with DHCP. A... | null | CC BY-SA 4.0 | null | 2023-03-04T03:15:45.547 | 2023-03-05T02:51:39.517 | 2023-03-05T02:51:39.517 | 5,578,845 | 5,578,845 | null |
75,633,423 | 1 | null | null | -2 | 37 | ```
class Node:
def __init__(self, node_data):
self._data = node_data
self._next = None
def get_data(self):
return self._data
def set_data(self, node_data):
self._data = node_data
data = property(get_data, set_data)
def get_next(self):
... | I'm so tired I swear I can't find the issue. It seems that whenever I run the code, it prints 5426 93 17 77 31 None | CC BY-SA 4.0 | null | 2023-03-04T03:11:37.307 | 2023-03-04T04:39:19.150 | 2023-03-04T04:32:35.317 | 21,329,449 | 21,329,449 | [
"python"
] |
75,633,442 | 2 | null | 67,482,277 | 0 | null | I used:
```
encMessage = input("Input encrypted message: ")
encMessage = bytes(encMessage,'utf-8')
```
This fixed it for me.
| null | CC BY-SA 4.0 | null | 2023-03-04T03:18:42.847 | 2023-03-04T03:21:31.837 | 2023-03-04T03:21:31.837 | 2,745,495 | 21,329,584 | null |
75,633,434 | 1 | null | null | 0 | 13 | might be best explain with an example:
- - - - - - - - - -
Any ideas on how to fix/force a refresh? Thanks
---
sample snippet of my pom.xml in projectB
```
<projectA.version>(0.0,)</projectA.version>
..
..
..
<dependency>
<groupId>com.myhost.projectA</groupId>
<artifactId>projectA.core</artifactId>
<ver... | Java/IntelliJ/maven: so I made a change in a package and my other package can't see the updates? | CC BY-SA 4.0 | null | 2023-03-04T03:15:46.910 | 2023-03-04T03:29:14.877 | 2023-03-04T03:29:14.877 | 1,790,598 | 1,790,598 | [
"java",
"maven",
"intellij-idea"
] |
75,633,443 | 2 | null | 75,633,408 | 0 | null | The problem is that you're using
```
result_object.writerow(result)
```
The writerow() function writes one row. To write multiple rows, I suggest that you try the following:
```
result_object.writerows(result.values())
```
The difference is the use of the writerows() -notice the S at the end- function which will writ... | null | CC BY-SA 4.0 | null | 2023-03-04T03:19:10.270 | 2023-03-04T03:19:10.270 | null | null | 21,075,983 | null |
75,633,438 | 1 | null | null | 0 | 12 | I am using google/cloud-storage (composer package) with Firebase Storage (instead of Google Cloud Buckets).
The service_account json file (credentials) was generated through Firebase console.
The authentication seems to work: $this->handler = new StorageClient(['keyFile' => json_decode($service_key, true)]);, but `Inva... | google/cloud-storage with Firebase Storage | CC BY-SA 4.0 | null | 2023-03-04T03:16:03.427 | 2023-03-04T03:16:03.427 | null | null | 1,761,683 | [
"firebase",
"composer-php",
"cloud-storage"
] |
75,633,439 | 1 | null | null | 0 | 14 | On my application, I have a page that loads data from the backend. If no data is present, a form shows up. Whenever the form is submitted, I should refetch data and present what the user have just filled. This happens in a couple pages. In one of them, i've used `depends` on the load method and `invalidate` on the acti... | Sveltekit inconsistent invalidate method | CC BY-SA 4.0 | null | 2023-03-04T03:16:04.520 | 2023-03-04T14:36:21.280 | null | null | 10,230,904 | [
"svelte",
"sveltekit"
] |
75,633,440 | 1 | null | null | 0 | 20 | I have a python script on a Raspberry Pi (server) that makes a connection to another python script running on a Windows 10 machine (client). I keep getting the 'utf-8' codec can't decode byte 0xd9 and not sure how to solve it.
This is how the connection between server and client is made:
```
# Make connections with the... | 'utf-8' codec can't decode byte 0xd9 in position 0 | CC BY-SA 4.0 | null | 2023-03-04T03:17:23.797 | 2023-03-04T03:17:23.797 | null | null | 5,919,866 | [
"python",
"python-3.x"
] |
75,633,446 | 1 | null | null | -3 | 29 | Class Staff is an abstract class with a display() method. The ICalculator interface has a calSalary() method. Emoployee class and Manage class extends Staff and implements ICalculator. The Staff class cannot implement ICalculator. How to sort List by salary
Staff that does not implement ICalculator will not call the sa... | how to sort in JAVA? | CC BY-SA 4.0 | null | 2023-03-04T03:20:24.740 | 2023-03-04T03:33:41.867 | null | null | 19,433,908 | [
"java",
"list",
"sorting",
"oop"
] |
75,633,447 | 2 | null | 75,633,368 | 0 | null | I think it's the file path problem or package install issue. If you confirm your project path don't have the same file named "sql.py", you can try to below command:
```
pip uninstall python-sql
```
then
```
pip install python-sql
```
| null | CC BY-SA 4.0 | null | 2023-03-04T03:20:28.103 | 2023-03-04T03:20:28.103 | null | null | 11,414,100 | null |
75,633,448 | 2 | null | 75,622,199 | 0 | null | You can follow this guide if you are working on Linux.
[Using C++ on Linux in VS Code](https://code.visualstudio.com/docs/cpp/config-linux)
Make sure you follow the instructions correctly. In my case, I did not have the gdb package installed, so the debugger did not work correctly.
```
sudo apt install gdb
```
| null | CC BY-SA 4.0 | null | 2023-03-04T03:20:34.447 | 2023-03-04T03:20:34.447 | null | null | 18,303,981 | null |
75,633,449 | 2 | null | 69,755,740 | 0 | null | Construct main batch 1 with early commands (one line each) for each secondary batch 2 WINDOWTITLE:
TASKLIST /FI "WINDOWTITLE EQ <batch #>" | Find "cmd.exe" > NUL & GOTO someplace
Have above lines in reverse order of operation = last batch to run listed first
1. start main batch 1
2. when wanted START batch 2 and EXIT... | null | CC BY-SA 4.0 | null | 2023-03-04T03:21:16.147 | 2023-03-04T03:26:49.443 | 2023-03-04T03:26:49.443 | 5,848,265 | 5,848,265 | null |
75,633,455 | 1 | null | null | -2 | 20 | I want to prevent "pie-ray" in Minecraft where players can find other players bases based on block entities showing up on a pie graph. I was thinking that I can circumvent this by giving dirt blocks the same block entity identity as like let's say a chest and rendering the pie-graph useless.
I am new and I have tried l... | Is it possible to give a dirt block aa block entity identity in Minecraft? | CC BY-SA 4.0 | null | 2023-03-04T03:23:03.830 | 2023-03-05T02:20:51.250 | 2023-03-05T02:20:51.250 | 3,750,257 | 21,329,566 | [
"java",
"minecraft",
"minecraft-forge",
"minecraft-fabric"
] |
75,633,454 | 2 | null | 4,276,077 | 0 | null | Using and then will indeed lose all styling elements unless you spend another big chunk of codes putting them back. Nick Hoang's and Goal Man's approaches is better without losing any styles.
Replacing text will work best if you use a well-accepted symbol as a placeholder such as '#' or '|' in a template docx, such t... | null | CC BY-SA 4.0 | null | 2023-03-04T03:23:00.803 | 2023-03-04T03:23:00.803 | null | null | 15,975,034 | null |
75,633,458 | 2 | null | 75,633,262 | 1 | null | That is because only PROPOSAL_NUMBER 4214 exists in PROP_ADMIN table. All the remaining 338 PROPOSAL_NUMBER's would be from EPS_PROPOSAL table.
Please note that you're performing a full outer join to pull those 339 records. So, it's quite obvious to see only a very few records being updated.
Hope it helps!
| null | CC BY-SA 4.0 | null | 2023-03-04T03:23:28.723 | 2023-03-04T03:23:28.723 | null | null | 14,837,070 | null |
75,633,452 | 1 | null | null | 0 | 21 | I have a function (named log_function) which I use to log other functions being called, both to the console and to a string var which I periodically send to the server using a beacon. I simply call it near the start of functions I want to log, with an optional comment and object:
```
function log_function(comment, opt... | Why does Object.hasOwn() seem not to work with function_name.caller.arguments in Safari? | CC BY-SA 4.0 | null | 2023-03-04T03:22:35.323 | 2023-03-04T03:59:57.357 | 2023-03-04T03:59:57.357 | 14,968,675 | 14,968,675 | [
"javascript",
"safari"
] |
75,633,431 | 2 | null | 39,789,330 | 0 | null | [Isuru's Answer](https://stackoverflow.com/a/39824947/3767959) provides us with a working solution, however...
1. update <interface name="public">, to the host's public IP in the XML if possible, this allows you to reference the IP Setting easily in the future.
```
<interfaces>
<interface name="management">
... | null | CC BY-SA 4.0 | null | 2023-03-04T03:15:16.990 | 2023-03-04T20:38:54.973 | 2023-03-04T20:38:54.973 | 3,767,959 | 3,767,959 | null |
75,633,462 | 2 | null | 72,832,261 | 0 | null | Without visually seeing for sure - once the customer presses 1, you should have a Set Working Queue Box to change the Q before or after you set the customer queue then a Transfer to Queue Box.
| null | CC BY-SA 4.0 | null | 2023-03-04T03:24:34.883 | 2023-03-04T03:24:34.883 | null | null | 21,329,598 | null |
75,633,466 | 2 | null | 74,905,681 | 0 | null | As Klaus wrote above, the second parameter needs to be an instance of the class/struct/etc. that contains the method.
However, I have not been able to find any way of using Reflection to find any such instances that have been constructed anywhere in the program. So for now, I'm only able to find static methods through ... | null | CC BY-SA 4.0 | null | 2023-03-04T03:26:31.410 | 2023-03-04T03:26:31.410 | null | null | 6,627,890 | null |
75,633,461 | 2 | null | 74,914,278 | 0 | null | For others who also searching for answer, I just used docker-compose
EB will by default use docker-compose.yml when you put it in the root folder
Dockerfile
```
# Pull base image
FROM python:3.9.16-slim-buster
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
RUN mkdir -p /var/log/gunic... | null | CC BY-SA 4.0 | null | 2023-03-04T03:24:21.083 | 2023-03-04T03:24:21.083 | null | null | 19,318,120 | null |
75,633,456 | 1 | null | null | -1 | 32 | I'm trying to align this logo in the center of the page, between the two sections of links in the header. I have the image in a separate div, and a unordered list on either side, with float left and float right. Not sure if the order or nesting is correct, still very new to CSS and HTML. For some reason, the logo is si... | How to make this logo image sit in the center of the header with the same horizontal alignment? | CC BY-SA 4.0 | null | 2023-03-04T03:23:05.813 | 2023-03-04T09:44:01.763 | 2023-03-04T03:38:38.313 | 21,329,422 | 21,329,422 | [
"css",
"user-interface",
"navigation",
"alignment"
] |
75,633,453 | 1 | 75,633,582 | null | 0 | 35 | So I am using HTML and PHP to build out a form that will take in two parameters and then call an API and build out a form.
So here is the HTML:
```
<div class="login-page">
<div class="form">
<span>Enter the Customer Load Number and Pickup Zip Code, then click "Submit" to track your shipment.</span>
<form a... | Submit Form GET request w/ Query Parameters but exclude submit while submitting form | CC BY-SA 4.0 | null | 2023-03-04T03:22:37.770 | 2023-03-04T04:36:28.217 | null | null | 21,308,086 | [
"php",
"html",
"forms"
] |
75,633,463 | 1 | null | null | 0 | 21 | How do I convert the image url string to firestore? I am trying to add my image url from firebase storage to firestore but I only receive the image name ("UserPic") but I need the image url string and not the name
The imageName is a string so im not understanding why its not giving a image url. Why am I receiving the i... | How to convert a image url string from firebase storage to firestore | CC BY-SA 4.0 | null | 2023-03-04T03:25:24.773 | 2023-03-04T05:01:12.877 | 2023-03-04T05:01:12.877 | 209,103 | 21,328,459 | [
"ios",
"google-cloud-firestore",
"firebase-storage"
] |
75,633,468 | 2 | null | 60,615,306 | 0 | null | For Web Apps you can also consider Application Insights Or you might also consider, if you haven't already, Azure Container Apps. Its essentially a "minified" instance of AKS and there are specific options described here: [https://learn.microsoft.com/en-us/azure/container-apps/metrics](https://learn.microsoft.com/en-u... | null | CC BY-SA 4.0 | null | 2023-03-04T03:27:57.863 | 2023-03-04T03:27:57.863 | null | null | 2,120,554 | null |
75,633,464 | 1 | null | null | 1 | 15 | Is it possible to create a type that's an intersection of both a known object and an index signature?
In the code below the type should be something like:
`{ a: string, [prop: string]: number }`, such that `a` must always be a `string`, but any other properties must be of type `number`
```
type Foo<T> = T & Exclude<{ [... | Intersection between a known object and an index signature | CC BY-SA 4.0 | null | 2023-03-04T03:25:56.970 | 2023-03-04T03:34:21.870 | 2023-03-04T03:34:21.870 | 2,887,218 | 3,091,013 | [
"typescript"
] |
75,633,467 | 2 | null | 75,633,104 | 0 | null | Yes, you can safely use `sync` for reads and `async` for writes and there will not be any deadlocks or races on `infoMap`.
You don't even particularly need to use `[weak self]`, since the blocks capturing `self` won't live long.
You also don't probably need to use `async` for the writes. You could just use `sync` for w... | null | CC BY-SA 4.0 | null | 2023-03-04T03:27:35.340 | 2023-03-04T03:27:35.340 | null | null | 77,567 | null |
75,633,472 | 2 | null | 73,994,871 | 0 | null | Try this.
1. check your AJAX code and output $REPORT_DATE=$_GET['report_date']; $REPORT_TYPE=$_GET['report_type'];
to ensure they are both displaying their value as expected. do this by printing its value via your PHP script.
1. Make sure you are not outputting any value in the spreadsheet code such as echo .... or... | null | CC BY-SA 4.0 | null | 2023-03-04T03:30:12.397 | 2023-03-04T03:30:12.397 | null | null | 20,953,726 | null |
75,633,471 | 1 | 75,633,629 | null | 1 | 15 | I want to minimize the number of clicks and typing a user has to go through to select a date. This code pops up a date picker with the option of either clicking on a date or the cancel button, or hitting the ESC key. My problem is that when I click on a date, the option_changed function is called as expected, but sel... | trying to get date from a customer date picker in pything and tkinter | CC BY-SA 4.0 | null | 2023-03-04T03:29:18.847 | 2023-03-04T04:23:22.137 | null | null | 1,039,860 | [
"python",
"tkinter",
"calendar"
] |
75,633,470 | 1 | null | null | -1 | 54 | I'm trying to get the code running on my Ubuntu from this github [repo](https://github.com/gaoliyao/Roto-scale-translation-Equivariant-CNN). I couldn't run or understand the bash script in that repo. For example, this is from `prepare_mnist_rot_scale.sh`.
```
#!/bin/bash
# MIT License. Copyright (c) 2020 Ivan Sosnovik,... | What does {0..0} mean in bash script? | CC BY-SA 4.0 | null | 2023-03-04T03:28:59.897 | 2023-03-04T03:28:59.897 | null | null | 11,889,874 | [
"bash"
] |
75,633,475 | 1 | null | null | 0 | 28 | [enter image description here](https://i.stack.imgur.com/wbI2o.png)
when I want to drop these two indexs,it occurred that schema "daih_students" does not exist.
The daih_students is a table,but why the error tips that a schema.How can I solve this problem.
I've tried another writing:DROP INDEX index_dh_sno ON daih_Stud... | DROP INDEX daih_students.index_dh_sno; DROP INDEX daih_courses.index_dh_sno; | CC BY-SA 4.0 | null | 2023-03-04T03:30:48.070 | 2023-03-04T03:30:48.070 | null | null | 21,329,561 | [
"sql"
] |
75,633,477 | 2 | null | 71,083,110 | 0 | null | A workaround that I found was have the vite.config.js file like this
```
import { fileURLToPath, URL } from "node:url";
import { defineConfig, loadEnv } from "vite";
import vue from "@vitejs/plugin-vue";
// https://vitejs.dev/config/
export default ({ mode }) => {
const env = loadEnv(mode, process.cwd(), "");
ret... | null | CC BY-SA 4.0 | null | 2023-03-04T03:31:12.940 | 2023-03-04T03:31:12.940 | null | null | 5,824,444 | null |
75,633,473 | 2 | null | 75,624,272 | 0 | null | This should help, it will create a list of `Entry` widgets with scrollbar.
I've inserted commentary at relevant places.
There are also a few refinements that might help.
```
import tkinter as tk
root = tk.Tk()
root.rowconfigure(0, weight = 1)
root.columnconfigure(0, weight = 1)
container = tk.Frame(root)
container.gr... | null | CC BY-SA 4.0 | null | 2023-03-04T03:30:31.693 | 2023-03-04T03:30:31.693 | null | null | 15,518,276 | null |
75,633,479 | 1 | null | null | 1 | 19 | Can anyone tell me why this won't work(it works on my other computer).
```
BLUE_BULLETS = pygame.image.load(os.path.join("c:\\pixel_laser_blue"))
```
[location](https://i.stack.imgur.com/82CeH.png)
I don't think I messed up the location, did I?
Thanks in advance!
Help me with python pygame.
| pygame.image.load(os.path.join) not working | CC BY-SA 4.0 | null | 2023-03-04T03:31:43.040 | 2023-03-04T06:29:18.843 | 2023-03-04T06:29:18.843 | 5,577,765 | 20,814,926 | [
"python"
] |
75,633,478 | 1 | null | null | 0 | 6 | On some devices, we get a NullPointer exception when loading the app from install.
The workaround is for the user to clear the app cache to make the app work. However, this is not possible for end-users.
java.lang.NullPointerException: Attempt to invoke interface method ‘java.lang.String android.content.SharedPreferen... | React-Native Android crash on install - NullPointer on zoom video-sdk initialize | CC BY-SA 4.0 | null | 2023-03-04T03:31:14.943 | 2023-03-04T03:31:39.940 | 2023-03-04T03:31:39.940 | 21,329,597 | 21,329,597 | [
"android",
"react-native",
"zoom-sdk"
] |
75,633,480 | 1 | null | null | 0 | 39 | Let's say I have a struct
```
struct Foo {
a: Box<usize>,
b: Box<usize>,
}
```
And I'd like to do something with a and b when dropping a Foo instance like this
```
impl Drop for Foo {
fn drop(&mut self) {
println!("{}", self.a + self.b);
}
}
```
Will Box a and b get dropped after this `drop`?
... | Does a user-defined drop for a struct also drop its fields implicitly in Rust? | CC BY-SA 4.0 | null | 2023-03-04T03:31:51.777 | 2023-03-04T19:01:28.710 | 2023-03-04T03:52:03.403 | 19,702,921 | 19,702,921 | [
"rust",
"raii"
] |
75,633,489 | 2 | null | 75,327,883 | 0 | null | use MarkerF instead Marker for more info [Marker Issue](https://github.com/JustFly1984/react-google-maps-api/issues/2978)
| null | CC BY-SA 4.0 | null | 2023-03-04T03:33:53.080 | 2023-03-04T03:33:53.080 | null | null | 4,123,379 | null |
75,633,445 | 1 | null | null | -4 | 15 | My php script code keeps on serving an error 500 message when a user tries to log into theirdashboard. It was working fine then all of a sudden, it started serving the error. Below are screenshots of the code and the page that shows the error. I added a few lines of text to find out if I'm on the same page that is show... | My php script code keeps on serving an error 500 message | CC BY-SA 4.0 | null | 2023-03-04T03:20:22.167 | 2023-03-04T03:47:30.760 | 2023-03-04T03:47:30.760 | 21,329,544 | 21,329,544 | [
"php",
"error-handling",
"http-status-code-500",
"sos"
] |
75,633,484 | 1 | null | null | -2 | 25 | I wanted to hack on golang std lib, so I checked out the project in IntelliJ with Go plugin (should be same as Goland) then right-clicked on `src/text/template/exec_test.go` and tried running it, but it fails due to:
```
GOROOT=C:\Users\mwisn\sdk\go1.19.6 #gosetup
GOPATH=C:\Users\mwisn\go #gosetup
C:\Users\mwisn\sdk\go... | Avoiding "use of internal package" when running individual tests | CC BY-SA 4.0 | null | 2023-03-04T03:32:25.983 | 2023-03-05T00:08:49.830 | 2023-03-05T00:08:49.830 | 443,422 | 443,422 | [
"go",
"goland"
] |
75,633,491 | 1 | null | null | 0 | 19 | I have Two Two Activities Login And Main In Main I have 6 to 7 Compose Screens in them DashBoard in the one of the screen in Main Activity I want to finish my Activity when I click onBack on from only DashBoard Screen not from remaining screens .I used Some methods it's again opining dashboard when i pressed On Back. I... | On Back Pressed Finish the Activity in JetPack Compose | CC BY-SA 4.0 | null | 2023-03-04T03:33:59.060 | 2023-03-04T05:56:01.857 | null | null | 21,317,577 | [
"android-jetpack-compose"
] |
75,633,488 | 2 | null | 75,628,023 | 0 | null | Test you data with the following code:
```
# SMOTE for imbalanced dataset
from collections import Counter
from sklearn.datasets import make_classification
from imblearn.over_sampling import SMOTE
from matplotlib import pyplot
from numpy import where
# define dataset
X, y = make_classification(n_samples=10000, n_feature... | null | CC BY-SA 4.0 | null | 2023-03-04T03:33:25.973 | 2023-03-04T03:33:25.973 | null | null | 13,317,119 | null |
75,633,490 | 2 | null | 75,632,674 | 0 | null | Your issue is that, inside the `PageSection` component, you only fetch section details when the component is initially mounted, when what you really want to do is fetch section details whenever the `data` prop updates.
You can easily fix this (also, took the opportunity to switch to a more modern async/await syntax):
`... | null | CC BY-SA 4.0 | null | 2023-03-04T03:33:53.207 | 2023-03-04T03:33:53.207 | null | null | 5,438,616 | null |
75,633,492 | 2 | null | 75,633,081 | 3 | null | Not necessarily a new library but yes, at least a new database: [https://www.iana.org/time-zones](https://www.iana.org/time-zones).
IANA isn't the only timezone database, but it is probably the most widely used. And it gets updated several times a year. There were 7 updates last year (2022).
| null | CC BY-SA 4.0 | null | 2023-03-04T03:34:00.463 | 2023-03-04T03:34:00.463 | null | null | 576,911 | null |
75,633,474 | 1 | null | null | 0 | 17 | I'm trying to clear my Select values from MUI after I submit a form, but the values aren't being cleared.
```
<form action = {(event) => calculateCaloricIntake(event)}>
<FormControl>
<InputLabel>Height in Inches</InputLabel>
<Select required onChange = {(event) => setHeightInches(event.t... | Clear MUI Select value after submitting form | CC BY-SA 4.0 | null | 2023-03-04T03:30:45.217 | 2023-03-04T03:30:45.217 | null | null | 17,597,844 | [
"javascript",
"reactjs",
"react-hooks",
"material-ui"
] |
75,633,493 | 1 | null | null | -8 | 24 | If I ask for a user input and want to append it to a list, why does it replace the list every time with just the single input?
```
test_list = []
test = int(input("Test enter a number: "))
test_list.append(test)
```
If the input is 1 the first time I run the code, it appends 1.
If I run again and pass 2 as the input, ... | How to append user inputs to a list? | CC BY-SA 4.0 | null | 2023-03-04T03:34:31.850 | 2023-03-04T03:35:48.503 | 2023-03-04T03:35:48.503 | 12,416,453 | 21,233,351 | [
"python"
] |
75,633,494 | 1 | null | null | 0 | 13 | I want to add a custom domain that is required to modify the email template of firebase authentication. However, if I want to verify the domain from Firebase with the domain address I purchased, I should add the following DNS records in my domain registrar. So I add DNS records whose types were TXT and CNAME as instruc... | How do I add custom domains that are required to implement email link authentication in Firebase? | CC BY-SA 4.0 | null | 2023-03-04T03:34:36.323 | 2023-03-04T14:11:57.643 | 2023-03-04T14:11:57.643 | 2,395,282 | 20,985,801 | [
"firebase",
"dns",
"firebase-hosting"
] |
75,633,497 | 2 | null | 75,498,233 | 0 | null | i'm following this thread! hopefully someone knows how to do this, i agree this would be cool (and useful) functionality.
| null | CC BY-SA 4.0 | null | 2023-03-04T03:36:38.463 | 2023-03-04T03:36:38.463 | null | null | 21,253,862 | null |
75,633,496 | 2 | null | 75,633,427 | 0 | null | I figured out the reason behind the error. It is because, to the compiler, it is a bit confusing - the size of the array, which is supposed to be constant size. When simply using the variable , we are implying that the size is not fixed and subject to change.
The fix is to tell the compiler that is a constant; by way ... | null | CC BY-SA 4.0 | null | 2023-03-04T03:35:09.097 | 2023-03-04T03:35:09.097 | null | null | 17,042,752 | null |
75,633,501 | 1 | null | null | 0 | 5 | i got stuck in this error
help me i am stuck from 2 days
| How to resolve Import failed: Circular dependency | CC BY-SA 4.0 | null | 2023-03-04T03:37:46.160 | 2023-03-04T03:37:46.160 | null | null | 19,850,310 | [
"magento",
"magento2",
"circular-dependency"
] |
75,633,502 | 1 | null | null | 0 | 12 | I've been trying to use the MassTransit Transactional Outbox in the last months. One problem that I'm having is that I keep getting this error that the CleanUpInboxState faulted:
> fail: MassTransit.EntityFrameworkCoreIntegration.BusOutboxDeliveryService[0]
CleanUpInboxState faulted
Microsoft.EntityFrameworkCore.DbUpda... | MassTransit Transactional Outbox CleanUpInboxState faulted | CC BY-SA 4.0 | null | 2023-03-04T03:37:53.353 | 2023-03-04T03:37:53.353 | null | null | 21,031,194 | [
"c#",
"asp.net",
"entity-framework",
"masstransit"
] |
75,633,505 | 2 | null | 11,470,468 | 0 | null | is the recommended way to search keys in .
```
127.0.0.1:6379> SCAN 0 TYPE hash COUNT 1000000
```
COUNT needs to be passed as last parameter, otherwise there will be a limit of 10 records returned by default.
| null | CC BY-SA 4.0 | null | 2023-03-04T03:38:28.747 | 2023-03-04T03:38:28.747 | null | null | 1,299,659 | null |
75,633,495 | 1 | null | null | 0 | 14 | I have been using the following code snippet to retrieve the MAC address on Android devices running 9 and 10 successfully: But this function is not working on android 11 and above
```
public String getMacAddressAndroid6Plus() {
try {
List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getN... | Unable to retrieve MAC address on Android 11 and above using getHardwareAddress() | CC BY-SA 4.0 | null | 2023-03-04T03:35:08.067 | 2023-03-04T07:09:13.093 | 2023-03-04T03:37:22.190 | 19,292,861 | 19,292,861 | [
"android-studio",
"mac-address",
"android-11",
"wifimanager",
"network-interface"
] |
75,633,506 | 2 | null | 75,137,526 | 0 | null | ```
$api_response = wp_remote_post( 'yourwebiste.com/wp-
json/wp/v2/posts/893',
array(
'headers' => array('Authorization' => 'Basic ' . base64_encode(
"$login:$password" )),
'body' => array(
'acffieldname' => '2150',
),
));
```
Above the "d_amount" is the acf field, now you jus... | null | CC BY-SA 4.0 | null | 2023-03-04T03:38:41.483 | 2023-03-04T22:47:04.263 | 2023-03-04T22:47:04.263 | 10,682,759 | 10,682,759 | null |
75,633,428 | 2 | null | 74,657,431 | 0 | null | maybe your config is follow:
```
spring:
datasource:
driver-class-name: org.h2.Driver
url: jdbc:h2:~/test
username: sa
password: 123456
h2:
console:
enabled: true
path: /h2
settings:
trace: false
web-allow-others: true # 允许远程访问
web-admin-password: 123456... | null | CC BY-SA 4.0 | null | 2023-03-04T03:13:34.077 | 2023-03-04T03:13:34.077 | null | null | 17,754,474 | null |
75,633,469 | 1 | null | null | 0 | 23 | I have been stuck in this error for days and I can't understand why, I'm pretty sure I'm passing my model correctly.
Here is my code:
Controller method:
```
public ActionResult EditaUsuario(int id)
{
List<usuario> user = new List<usuario>();
string sql = "query..."
using (SqlConnection cn = new SqlConnecti... | I'm passing my model but still get an error System.Web.Mvc.WebViewPage<TModel>.Model.get returned null | CC BY-SA 4.0 | null | 2023-03-04T03:28:34.760 | 2023-03-04T07:42:53.817 | 2023-03-04T07:42:53.817 | 13,302 | 21,329,539 | [
"c#",
"asp.net-mvc",
"null"
] |
75,633,498 | 1 | null | null | 0 | 15 | I am creating a PNG image on the browser using PHP GD library.
```
Current PHP version: 5.6.40
GD library version: 2.1.0
```
OK, so the code to create a PNG image is given by:
```
<?php
$width = 500;
$height = 300;
$ih = imagecreatetruecolor($width, $height);
$bg_color = imagecolorallocatealpha($ih, 255, 255, 255, 12... | The function imagealphablending() does NOT make any difference in creating a PNG image, why? | CC BY-SA 4.0 | null | 2023-03-04T03:37:03.260 | 2023-03-04T03:37:03.260 | null | null | 3,185,166 | [
"php",
"gd"
] |
75,633,504 | 1 | null | null | 0 | 32 | What I am trying to do is showing a `Dialog` that consists of a `Form` within it to the user, then user fills out the 2 `TextFormFields` and clicks on the Next `ElevatedButton`. Then another similar `Dialog/form` will be appear and user can do the same thing until he wants to finish and press the Submit `ElevatedButton... | How to display an unknown number of dialogs in a row in Flutter? | CC BY-SA 4.0 | null | 2023-03-04T03:38:08.103 | 2023-03-04T06:46:15.850 | null | null | 20,706,987 | [
"flutter",
"forms",
"dialog",
"provider",
"state-management"
] |
75,633,510 | 2 | null | 75,469,404 | 1 | null | You'll need three connectors.
As your DB clusters are different and fir each connector you can specify only one DB host
| null | CC BY-SA 4.0 | null | 2023-03-04T03:40:23.360 | 2023-03-04T03:40:23.360 | null | null | 5,362,116 | null |
75,633,509 | 1 | null | null | -4 | 12 | Is there any tool that allows you to jump from a Google file (online) link to the local file in Windows File Explorer?
This is assuming that Google File Stream is installed locally and the "mirror" of the Google Drive exists on the local hard drive.
Basically, what I want is to have an option to right click on a file ... | Google Drive (Web interface) to Windows File Explorer | CC BY-SA 4.0 | null | 2023-03-04T03:40:12.570 | 2023-03-04T03:40:12.570 | null | null | 21,145,588 | [
"google-drive-api",
"google-drive-shared-drive",
"microsoft-file-explorer"
] |
75,633,513 | 2 | null | 75,633,189 | 0 | null | This is a bug in Axios 1.1.3+, which is still broken: [https://github.com/axios/axios/issues/5154](https://github.com/axios/axios/issues/5154)
Downgrade to 1.1.2 and stuff works.
| null | CC BY-SA 4.0 | null | 2023-03-04T03:41:26.527 | 2023-03-04T03:41:26.527 | null | null | 259,543 | null |
75,633,507 | 1 | null | null | 1 | 28 | [enter image description here](https://i.stack.imgur.com/Rc9Hs.png)
[enter image description here](https://i.stack.imgur.com/pzvDS.png)
I just wanted to test routing but couldn't.
I used a new folder in components/about
and when I search with http://localhost:3000/components/about
failed teru
Likewise, I created it in ... | static generation in the latest version of Next JS is not working | CC BY-SA 4.0 | null | 2023-03-04T03:39:21.803 | 2023-03-04T05:29:07.987 | 2023-03-04T05:29:07.987 | 13,488,990 | 21,327,497 | [
"reactjs",
"next.js",
"azure-service-fabric"
] |
75,633,503 | 2 | null | 75,630,060 | 0 | null | You can do with the `USING` clause:
```
SELECT id -- this is simpler now
, n.new, o.old,
, COALESCE(n.operation, o.operation) AS operation -- but not this
FROM new n
FULL OUTER JOIN old o USING (id); -- !
```
Columns listed in the `USI... | null | CC BY-SA 4.0 | null | 2023-03-04T03:38:06.427 | 2023-03-04T03:52:25.503 | 2023-03-04T03:52:25.503 | 939,860 | 939,860 | null |
75,633,516 | 1 | null | null | 0 | 24 | I came across this scenario this week again.
I've been using `key: ValueKey(*aValue*)` but for no special reason, taking into consideration that probably using `key: Key(*aValue*)` could work similarly.
Any top reason or something for a deep understanding of using which in any case?
| What should I use on my Flutter Widget: `ValueKey` or `Key` | CC BY-SA 4.0 | null | 2023-03-04T03:42:24.603 | 2023-03-04T04:59:58.590 | null | null | 6,248,208 | [
"flutter",
"widget"
] |
75,633,515 | 1 | null | null | 0 | 12 | I'm using pysftp to upload and download directories. When using , an extra dot is append to the start of the file.
I google it, but i can't find how to resolve it.
Example:
tesfile.txt -> .tesfile.txt
tesfile2.txt -> .tesfile2.txt
python: 3.10.09
pysftp : 0.2.9
I try using another SFTP server, but with same result... | Pysftp appends dot to files uploaded using put_d | CC BY-SA 4.0 | null | 2023-03-04T03:42:20.103 | 2023-03-04T14:38:45.780 | 2023-03-04T14:38:45.780 | 876,497 | 12,642,757 | [
"put",
"pysftp"
] |
75,633,514 | 2 | null | 75,633,479 | 0 | null | The problem is the file extension. Windows displays files without their ending so that it is easier to read, but in reality, almost every file has a file extension. This is `.py` for python files, `.txt` for text files, and `.png` for PNG image files. In your case simply `pygame.image.load("C:\\pixel_laser_blue.png")` ... | null | CC BY-SA 4.0 | null | 2023-03-04T03:41:28.647 | 2023-03-04T03:41:28.647 | null | null | 13,751,755 | null |
75,633,508 | 1 | null | null | -1 | 10 | I have an enum declared as follows -
```
public enum Status {
REQ ("URL1"),
NOT ("URL2"),
GET ("URL3");
String getURL;
Status(String getURL) {
this.getURL = getURL;
}
}
```
```
private Status status;
```
I have a function in order to retrieve the URL ... | How to use the right conditional operator for enums | CC BY-SA 4.0 | null | 2023-03-04T03:39:58.763 | 2023-03-04T03:39:58.763 | null | null | 19,979,065 | [
"java",
"if-statement",
"switch-statement"
] |
75,633,520 | 2 | null | 72,926,809 | 0 | null | All you need to do is `await ctx.edit_last_response("New message content")`
[Documentation](https://hikari-lightbulb.readthedocs.io/en/latest/api_references/context.html#lightbulb.context.base.Context.edit_last_response)
| null | CC BY-SA 4.0 | null | 2023-03-04T03:43:55.623 | 2023-03-04T03:43:55.623 | null | null | 11,517,742 | null |
75,633,519 | 1 | null | null | -1 | 12 | [Extracted horizontal lines with slope](https://i.stack.imgur.com/1EQUb.jpg)
I have filtered the lines using Hough Transform and extended them.
As shown in the image I need to detect the first and last line which is going from bottom right to top left.(bottom most one and top most line). How to do?
I have tried getting... | how to detect the right most sloped horizontal line and left most sloped horizontal line from an image? | CC BY-SA 4.0 | null | 2023-03-04T03:43:26.153 | 2023-03-04T03:43:26.153 | null | null | 21,329,605 | [
"python",
"opencv",
"image-processing",
"houghlinesp"
] |
75,633,527 | 2 | null | 54,510,081 | 0 | null | Should use "long click" to invoke
| null | CC BY-SA 4.0 | null | 2023-03-04T03:47:10.273 | 2023-03-04T03:47:10.273 | null | null | 9,879,923 | null |
75,633,526 | 2 | null | 75,366,778 | 0 | null | `int exitCode = QProcess::execute("c:'\'Windows'\'System32'\'osk.exe");`
| null | CC BY-SA 4.0 | null | 2023-03-04T03:46:36.837 | 2023-03-04T03:47:51.697 | 2023-03-04T03:47:51.697 | 21,329,642 | 21,329,642 | null |
75,633,522 | 2 | null | 70,379,606 | 0 | null | we used .map() to reference all of the element in an array,
since our elements are also array but array of numbers and we want to add them all..
we use .reduce() method to add all of the array inside of our mapped array.
result will be will still be an array, but the array inside it that consists of numbers are all add... | null | CC BY-SA 4.0 | null | 2023-03-04T03:44:37.430 | 2023-03-04T03:44:37.430 | null | null | 20,189,067 | null |
75,633,530 | 1 | 75,633,930 | null | 1 | 19 | I can get the creation date of a PDF using iText7 (see below), but I don't know how to set it. iText5 used to have a PdfStamper that was replaced by PDFWriter. But I don't see any methods that allow me to update the document info.
```
var documentinfo = PDFDocument.GetDocumentInfo();
var date = documentinfo.GetMoreInfo... | iText7: How to set creation date of PDF | CC BY-SA 4.0 | null | 2023-03-04T03:50:30.170 | 2023-03-04T05:54:23.750 | null | null | 488,160 | [
"c#",
"pdf",
"itext",
"pdf-generation",
"itext7"
] |
75,633,511 | 2 | null | 75,633,009 | 1 | null | Here, tkinter code used for it, not tested for all elements.
It may need different code for different layout at this moment.
All Frames and Columns will be filled background image too here.
Need more tkinter programming experience for it.
```
from io import BytesIO
from PIL import Image
import PySimpleGUI as sg
def im... | null | CC BY-SA 4.0 | null | 2023-03-04T03:40:55.017 | 2023-03-04T03:40:55.017 | null | null | 11,936,135 | null |
75,633,535 | 2 | null | 75,633,456 | 0 | null | Because they are in two different dev, you need to move mainLogo dev between the uls. or make its position absolute.
| null | CC BY-SA 4.0 | null | 2023-03-04T03:51:58.987 | 2023-03-04T03:51:58.987 | null | null | 18,108,702 | null |
75,633,528 | 2 | null | 54,302,981 | 0 | null | This is for LiveStream
```
LiveBroadcast broadcast = youtube.liveBroadcasts().get("id,snippet,contentDetails,status", LIVE_STREAM_ID).execute();
LiveBroadcastSnippet snippet = broadcast.getSnippet();
LiveBroadcastContentDetails contentDetails = broadcast.getContentDetails();
LiveBroadcastStatus status = broadcast.getSt... | null | CC BY-SA 4.0 | null | 2023-03-04T03:49:03.520 | 2023-03-04T03:49:03.520 | null | null | 1,848,876 | null |
75,633,529 | 1 | null | null | 0 | 46 | The items just stay to the left instead of spreading out. Also, I'm using Google Icons, and the icons won't show up unless I'm using the base tag in the head section (the domain name isn't registered); is this normal? My browser is Microsoft Edge.
```
header {
display: flex;
justify-content: space-between;
width:... | Why won't justify-content:space-between; work? | CC BY-SA 4.0 | null | 2023-03-04T03:50:04.680 | 2023-03-04T16:00:39.327 | 2023-03-04T16:00:39.327 | 7,216,508 | 21,329,608 | [
"html",
"css",
"flexbox",
"microsoft-edge"
] |
75,633,517 | 1 | null | null | 0 | 12 | When using `<style scoped>`, vue will automatically pass a `data-v-<hash>` attr to the root node of the component. For example:
> (Suppose the hash of the parent component is and the hash of the child component is .)
##### Parent
```
<template>
<main>
<Child class="foo" />
</main>
</template>
```
... | How to pass data-v-<hash> to a child node of the component in Vue 3? | CC BY-SA 4.0 | null | 2023-03-04T03:42:57.093 | 2023-03-04T03:42:57.093 | null | null | 19,553,213 | [
"vue.js",
"vuejs3"
] |
75,633,512 | 1 | null | null | -1 | 27 | Im building a website and trying to do my best for responsive work with tablets/mobile devices. Working on the navbar it seems I cannot center the text with the text-align in CSS. What im doing ive seen similarly done, I just cannot find any contradictions. Here is the code:
HTML
```
<!-- Navbar -->
<nav class=... | Text-Align Center not centering text | CC BY-SA 4.0 | null | 2023-03-04T03:41:20.460 | 2023-03-04T03:41:20.460 | null | null | 19,771,700 | [
"html",
"css",
"text-alignment",
"text-align"
] |
75,633,521 | 1 | null | null | -2 | 33 | I want to create repository folder that contain all reusable code other component can use. I declare it like this:
[](https://i.stack.imgur.com/pVWz9.png)
And then I use it like this:
[](https://i.stack.imgur.com/5oT0f.png)
But I got this error:
[](https://i.stack.imgur.com/FxzcO.png)
How should I really declare class ... | How to create class in laravel | CC BY-SA 4.0 | null | 2023-03-04T03:44:12.267 | 2023-03-04T04:10:34.413 | 2023-03-04T04:10:34.413 | 1,998,801 | 11,217,499 | [
"php",
"laravel"
] |