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,625,125
1
null
null
1
22
I've been following some tutorial about wrapping retrofit with generics. Everything is working, I can log value from ViewModel, but I can't `collect` it, or `observe`. How I may retrieve the data then? `var someVar: HashMap<String, Float> by mutableStateMapOf()` `...` ``` fun fetchData(q: String) { viewModelSc...
How I may retrieve value from mutableStateMapOf() in fragment?
CC BY-SA 4.0
null
2023-03-03T09:10:27.867
2023-03-03T09:10:27.867
null
null
20,071,984
[ "kotlin", "generics", "mvvm", "retrofit" ]
75,625,126
2
null
75,263,047
0
null
I first tried David Fraser's solution (constraints {...}) and it worked fine, but I found it strange and discarded it. Instead I changed the plugins as follows: ``` id 'org.jetbrains.kotlin.multiplatform' version '1.8.0' apply false // before 1.7.10 ``` This also fixed the error.
null
CC BY-SA 4.0
null
2023-03-03T09:10:38.387
2023-03-03T09:10:38.387
null
null
6,007,077
null
75,625,123
1
null
null
-1
48
``` #!/usr/bin/perl use strict; use File::Find; use Cwd; my $path = $ARGV[0]; my $all_args = join(' ', @ARGV); print "path is $path\n"; #Check if path entered is valid die "$path does not exist, exiting\n" unless (-d $path); ``` In the above script `-d` does not work if the directory name has space, but print shows co...
Perl -d directory exists , does not work on directories with spaces in the name?
CC BY-SA 4.0
null
2023-03-03T09:10:19.713
2023-03-03T09:13:51.210
2023-03-03T09:13:51.210
874,188
21,324,708
[ "perl" ]
75,625,129
2
null
75,625,040
1
null
``` import pandas as pd df = pd.DataFrame({ 'geometry': ['point a', 'point a', 'point b'], 'a': [2, 3, 1], 'b': [4, 1, 2], 'c': [6, 7, 3]}) res = df.groupby('geometry', as_index=False).sum() print(res) ``` ``` geometry a b c 0 point a 5 5 13 1 point b 1 2 3 ```
null
CC BY-SA 4.0
null
2023-03-03T09:11:32.410
2023-03-03T09:11:32.410
null
null
20,172,954
null
75,625,127
2
null
75,622,456
0
null
## Transform Data ``` Sub TransformData() Const SRC_FIRST_CELL As String = "A1" Const DST_FIRST_CELL As String = "I1" Const DATE_COL As Long = 1 Const HOUR_COL As Long = 2 Const WIND_COL As Long = 3 Const DH_DELIMITER As String = "|!|" Const WIND_DELIMITER As String = "/" Const C...
null
CC BY-SA 4.0
null
2023-03-03T09:11:17.960
2023-03-03T09:11:17.960
null
null
9,814,069
null
75,625,130
2
null
75,621,017
1
null
SimpleXML is limited. PHP supports DOM and Xpath. Xpath is actually a little easier to use - compared to the browser. `DOMXpath::evaluate()` returns a list of nodes or a scalar value depending on the expression. ``` $xml = '<root><element>text</element></root>'; $document = new DOMDocument(); $document->loadXML($xml);...
null
CC BY-SA 4.0
null
2023-03-03T09:11:43.640
2023-03-03T09:11:43.640
null
null
497,139
null
75,625,132
2
null
75,624,732
0
null
You must set the string cache when the categoricals in your tables are created. This can be done for the whole script/program by setting `pl.toggle_string_cache(True)` on the start of your program. Or this can be done only while creating the tables and then cleaning up the string cache afterwards. ``` with pl.StringCac...
null
CC BY-SA 4.0
null
2023-03-03T09:11:59.503
2023-03-03T09:11:59.503
null
null
6,717,054
null
75,625,135
2
null
75,624,921
0
null
I think you are looking for `concat` in AWS ``` SELECT year || '-' || month || '-' || day as Date FROM mytable; ``` ``` SELECT CONCAT(year, '-', month, '-', day) as date FROM mytable; ``` Reference:[Concatenating Strings in AWS Athena](https://docs.aws.amazon.com/athena/latest/ug/concatenating-strings-and-arrays.ht...
null
CC BY-SA 4.0
null
2023-03-03T09:12:05.460
2023-03-03T09:12:05.460
null
null
1,082,101
null
75,625,118
1
null
null
1
17
How can I align datagrid elements to the right side. Actually I need to align prices to the right side. Can anyone suggest a solution by referring below code. ``` <MudDataGrid Items="@Elements" Hover="true" Striped="true" Dense="true"> <Columns> <Column T="Menuitemlist" StickyLeft="true"> ...
How to align datagrid elements to the right in MudBlazor
CC BY-SA 4.0
null
2023-03-03T09:10:07.550
2023-03-03T09:56:44.333
null
null
16,241,720
[ "c#", ".net", "blazor", "maui", "mudblazor" ]
75,625,133
2
null
75,624,239
1
null
Use [UserStore<TUser,TRole,TContext,TKey>](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.identity.entityframeworkcore.userstore-4?view=aspnetcore-7.0) as base class, since you have `int` as `TKey` type. The generic definition [UserStore<TUser>](https://learn.microsoft.com/en-us/dotnet/api/microsoft...
null
CC BY-SA 4.0
null
2023-03-03T09:12:01.750
2023-03-03T09:49:09.390
2023-03-03T09:49:09.390
4,631,607
4,631,607
null
75,625,131
2
null
75,534,084
0
null
Since you have already created a page for `/docs/tags` by swizzling `DocTagDocListPage`, you can use the `plugin-content-pages` plugin to create a custom page for `/docs/tags/contribute`. First, install the `plugin-content-pages` package: ``` npm install @docusaurus/plugin-content-pages ``` Then, you need to configure...
null
CC BY-SA 4.0
null
2023-03-03T09:11:47.240
2023-03-03T09:11:47.240
null
null
7,929,036
null
75,625,138
2
null
75,625,078
3
null
This is the danger of using names for subs/variables that already exist in the VBA code/naming syntax. Your error is caused by it thinking you're trying to call your own sub recursively. Notice how it's a small `s` unlike `Split()` but your sub doesn't take any arguments hence that error. Change the name of your sub an...
null
CC BY-SA 4.0
null
2023-03-03T09:12:15.490
2023-03-03T09:12:15.490
null
null
19,353,309
null
75,625,136
2
null
75,302,340
0
null
With Next 13.2, according to the [docs](https://beta.nextjs.org/docs/api-reference/file-conventions/not-found): > "Note: not-found.js currently only renders when triggered by the notFound function, we're working on support for catching unmatched routes." So it's not yet automatic and the file should be named `not-found...
null
CC BY-SA 4.0
null
2023-03-03T09:12:06.257
2023-03-03T11:01:51.000
2023-03-03T11:01:51.000
6,419,389
6,419,389
null
75,625,137
2
null
62,622,610
0
null
Solution for someone who has similar problem. Other than `google-services.json` you need new `firebase_options.dart` file. Otherwise your app will try to use the previos Firebase project no matter what you do. That file is a generated file and manual editing is not recommended. This part inside your app takes all the d...
null
CC BY-SA 4.0
null
2023-03-03T09:12:06.930
2023-03-03T09:12:06.930
null
null
2,976,879
null
75,625,139
1
null
null
0
14
Guys at my laravel project i am using d3mitchtree as a tree view.Everything is working fine except my search button. ``` document.getElementById('focusButton').addEventListener('click', function(){ var value = document.getElementById('focusText').name; var nodeMatchingText = treePlugin.getNo...
How can i add a search button that works to find node at d3mitchtree
CC BY-SA 4.0
null
2023-03-03T09:12:19.120
2023-03-03T09:12:19.120
null
null
20,284,427
[ "javascript", "html", "laravel", "breadcrumbs" ]
75,625,140
2
null
23,463,684
0
null
I improve the solution proposed by jxstandford to handle list in dict. ``` class NestedDict(dict): def __getitem__(self, key): if key in self: return self.to_nested(self.get(key)) return self.setdefault(key, NestedDict()) @staticmethod def to_nested(obj: Any) -> Any: i...
null
CC BY-SA 4.0
null
2023-03-03T09:12:26.393
2023-03-03T09:12:26.393
null
null
12,409,079
null
75,625,142
2
null
31,004,844
0
null
you can use standard function to convert long to varchar2: ``` sys.DBMS_METADATA_UTIL.long2varchar ``` or to clob: ``` sys.DBMS_METADATA_UTIL.long2clob ```
null
CC BY-SA 4.0
null
2023-03-03T09:12:30.220
2023-03-03T09:12:30.220
null
null
5,979,398
null
75,625,144
2
null
75,614,013
0
null
Try setting the `nclients` parameter to 100: ``` monetdb set nclients=100 <db> ```
null
CC BY-SA 4.0
null
2023-03-03T09:12:32.567
2023-03-03T09:12:32.567
null
null
3,412,158
null
75,625,112
2
null
75,624,846
3
null
From the [JSON_OBJECT documentation](https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/JSON_OBJECT.html#GUID-1EF347AE-7FDA-4B41-AFE0-DD5A49E8B370): > ### format_clause Specify `FORMAT JSON` after an input expression to declare that the value that results from it represents JSON data, and will theref...
null
CC BY-SA 4.0
null
2023-03-03T09:08:44.603
2023-03-03T09:23:24.577
2023-03-03T09:23:24.577
1,509,264
1,509,264
null
75,625,141
1
null
null
0
26
``` function Student() { } Student.prototype.sayName = function() { console.log(this.name) } function EighthGrader(name) { this.name = name this.grade = 8 } EighthGrader.prototype = Student.prototype function NinthGrader(name) { this.name = name this.grade = 9 } NinthGrader.prototype = Student.prototyp...
Difference between setting the prototype of an object using Object.create() vs assigning the prototype of one object to the prototype of another
CC BY-SA 4.0
null
2023-03-03T09:12:29.240
2023-03-03T12:14:11.437
null
null
19,884,336
[ "javascript", "prototype", "prototypal-inheritance" ]
75,625,147
2
null
73,254,430
0
null
You can try this indicator in tradingview: [](https://i.stack.imgur.com/uUK4T.png)
null
CC BY-SA 4.0
null
2023-03-03T09:12:55.327
2023-03-03T09:12:55.327
null
null
2,802,526
null
75,625,146
2
null
3,109,042
0
null
In jackson 2.14.x you can do something like this: ``` JsonParser p = // ... ObjectNode currentJsonObject = p.readValueAsTree(); JsonParser peekingParser = currentObject.traverse(codec); // set peekingParser to the first token, see JsonParser#travers(ObjectCode) for info peekingParser.nextToken(); peekIntoCurrentConten...
null
CC BY-SA 4.0
null
2023-03-03T09:12:41.910
2023-03-03T09:12:41.910
null
null
1,466,267
null
75,625,145
2
null
75,625,022
2
null
You need to concatenate the values together into a string and then insert that string into the listbox. ``` from tkinter import * root = Tk() root.geometry("400x250") listbox = Listbox(root) listbox.pack(side=LEFT, fill=BOTH) scrollbar = Scrollbar(root) scrollbar.pack(side=RIGHT, fill=BOTH) values_str = "" for valu...
null
CC BY-SA 4.0
null
2023-03-03T09:12:37.533
2023-03-03T09:12:37.533
null
null
16,127,735
null
75,625,152
2
null
70,161,901
0
null
Make sure that u have configured the schema property in meta of that rule. Refer this documentation to know about schema options [https://eslint.org/docs/latest/extend/custom-rules#options-schemas](https://eslint.org/docs/latest/extend/custom-rules#options-schemas) This fixed my problem which the same u had!!
null
CC BY-SA 4.0
null
2023-03-03T09:13:06.920
2023-03-03T09:13:37.367
2023-03-03T09:13:37.367
20,866,542
20,866,542
null
75,625,151
2
null
75,624,432
0
null
The C standard is clear about this; the only unclear things are in the question, particularly whether it uses “byte” in the sense of the C standard (a unit of at least eight bits, used as the building block of the C object model) or in the sense of eight bits. The C standard says all objects other than bit-fields are c...
null
CC BY-SA 4.0
null
2023-03-03T09:13:06.187
2023-03-03T09:13:06.187
null
null
298,225
null
75,625,148
2
null
75,624,071
0
null
Apparently, this is by design. As noted [here](https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-dotnet-isolated-overview#public-interface-changes) there is no equivalent in the isolated worker for `DurableActivityContext`. The `TaskActivityContext` I mentioned in my question, and which ...
null
CC BY-SA 4.0
null
2023-03-03T09:12:59.423
2023-03-03T09:12:59.423
null
null
2,879,771
null
75,625,155
2
null
65,339,404
0
null
Add below code in composer.json "config": { ``` "platform-check": false, "platform": { "php": "7.1.0" } }, ``` and run command composer dump-autoload
null
CC BY-SA 4.0
null
2023-03-03T09:13:48.200
2023-03-03T09:13:48.200
null
null
16,407,493
null
75,625,154
2
null
59,534,552
0
null
Without checking iOS version, you can add navigation functionalities. To make it more easier, you need to add some methods as extension. First you need to add those two method as extension for common use --> ``` extension UIStoryboard { // MARK: - Convenience Initializers convenience init(storyboard: String, bu...
null
CC BY-SA 4.0
null
2023-03-03T09:13:25.853
2023-03-03T09:13:25.853
null
null
16,403,924
null
75,625,143
1
null
null
0
20
I am currently trying to use some images in my Flutter app. However I can't get behind the behaviour of Flutter. I am using an Ink.image with an AssetImage inside. Now when I use AssetImage('assets/images/history.jpg) it works. This goes for "food" and "animals" aswell. "Nature" and "Music" doesn't work. I just don't u...
Flutter some image assets are shown and some are "unable to load"
CC BY-SA 4.0
null
2023-03-03T09:12:30.940
2023-03-03T09:18:18.790
null
null
21,324,757
[ "android", "iphone", "flutter", "dart", "mobile" ]
75,625,158
1
null
null
0
5
Basically tfod2 is used for transfer learning in object detection use case, but in this repository there is no any mentioning about early stopping or how to implement it I gone through model_main_tf2.py and lib.py files but there is no any mentioning about early stopping
How can we implement early stopping in tensorflow 2 object detection API?
CC BY-SA 4.0
null
2023-03-03T09:14:20.650
2023-03-03T09:14:20.650
null
null
21,324,782
[ "callback", "tensorflow2.0", "object-detection", "object-detection-api", "early-stopping" ]
75,625,157
2
null
75,619,930
2
null
When you extend `DefaultBatchConfiguration`, you take complete control on how Spring Batch is configured (including its meta-data schema initialization), see [Spring Batch Changes](https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#spring-batch-changes) in the migration guide of Spring ...
null
CC BY-SA 4.0
null
2023-03-03T09:14:05.903
2023-03-03T09:27:35.340
2023-03-03T09:27:35.340
5,019,386
5,019,386
null
75,625,122
1
null
null
0
3
i have an elastic beanstalk application when I created the sample application and deployed the code through Jenkins it was working fine but after the latest deployment its giving a 500 internal server issue after when i changed its application version and deployed the older version its working fine but its showing the ...
500 internal server error for an elastic beanstalk application
CC BY-SA 4.0
null
2023-03-03T09:10:19.320
2023-03-03T09:10:19.320
null
null
20,537,017
[ "jenkins", "deployment", "amazon-elastic-beanstalk", "internal-server-error", "http-status-code-500" ]
75,625,159
2
null
15,005,899
0
null
For anyone wanting to delete all `.png` files starting from current directory, I've created a small script. It iterates over all available folders (one level only), searches for all `.png` file and deletes them: ``` $dirs = array_filter(glob('*'), 'is_dir'); foreach ($dirs as $directory) { $images = glob($director...
null
CC BY-SA 4.0
null
2023-03-03T09:14:27.213
2023-03-03T09:14:27.213
null
null
11,582,724
null
75,625,163
1
null
null
1
24
I'm using Apache's `FileAlterationMonitor` to monitor a specific directory in my project, and I was wondering if there is a way to monitor file overwriting too, since otherwise I'd have to delete a file, wait the monitor to perform a check to detect the file was deleted, and then write the file again to behave correctl...
Is it possible to detect file overwriting using Apache Commons IO?
CC BY-SA 4.0
null
2023-03-03T09:14:52.843
2023-03-03T22:44:31.343
null
null
9,601,720
[ "java", "apache-commons" ]
75,625,164
2
null
29,824,599
0
null
You can change the permission of a folder alone using ``` chmod 777 folder-name ``` If you want its subdirectories permissions also changed, use ``` chmod -R folder-name ``` ** Note: chmod 777 gives all access to the folder and its files
null
CC BY-SA 4.0
null
2023-03-03T09:15:03.183
2023-03-03T09:15:03.183
null
null
20,099,426
null
75,625,162
2
null
75,625,027
0
null
You are trying to insert `Map` data into SQLite Database in your method `saveRecipe`. As [Save Hashmap Data Into SQLite](https://stackoverflow.com/questions/25430870/save-hashmap-data-into-sqlite) and [How to Convert Hashmap to String to Save in SQLite Database](https://stackoverflow.com/questions/27632076/how-to-conve...
null
CC BY-SA 4.0
null
2023-03-03T09:14:51.240
2023-03-03T09:47:42.510
2023-03-03T09:47:42.510
3,887,392
4,473,648
null
75,625,161
2
null
75,519,108
1
null
The following will return the most recent post for each category with a post: ``` SELECT DISTINCT ON (forum_category_id) forum_category_id, forum_post_id, forum_post_created_timestamp FROM forum_posts ORDER BY forum_category_id, forum_pos...
null
CC BY-SA 4.0
null
2023-03-03T09:14:48.247
2023-03-03T09:19:48.343
2023-03-03T09:19:48.343
20,151,367
20,151,367
null
75,625,150
2
null
75,624,848
0
null
> Although the test hits to the controller above, it does not hit the service method below Your test is currently written for testing of the controller and not the service. Because categoryService is mocked. Consider rewriting it. Like: ``` @Autowired private CategoryService categoryService; @MockBean private Category...
null
CC BY-SA 4.0
null
2023-03-03T09:13:00.897
2023-03-03T12:18:03.527
2023-03-03T12:18:03.527
14,294,053
14,294,053
null
75,625,168
2
null
57,389,529
0
null
I think best solution is do this in your /mysql/bin/my.conf ``` innodb_data_home_dir="C:/xampp/mysql/data" innodb_log_group_home_dir="C:/xampp/mysql/data" #innodb_log_arch_dir = "C:/xampp/mysql/data" ## You can set .._buffer_pool_size up to 50 - 80 % ## of RAM but beware of setting memory usage too high innodb_buffer...
null
CC BY-SA 4.0
null
2023-03-03T09:15:27.447
2023-03-03T09:17:32.937
2023-03-03T09:17:32.937
15,588,146
15,588,146
null
75,625,166
1
null
null
0
24
I have this code ``` boolean dataValidation = false; System.out.println("Please input the id of the car"); do { if (input.hasNextInt()){ id = input.nextInt(); dataValidation = true; } else { System.out.println("Please give a valid id number"); dataValid...
Why does a space or enter input not trigger the hasnextint validation check?
CC BY-SA 4.0
null
2023-03-03T09:15:18.680
2023-03-03T09:25:35.400
2023-03-03T09:25:35.400
1,968
21,200,708
[ "java", "validation", "command-line-interface" ]
75,625,171
2
null
73,809,375
0
null
[https://stackoverflow.com/a/73813647/10590820](https://stackoverflow.com/a/73813647/10590820) This will work. You only have to use middleware to check and verify the token in another service. Or you can make an API in your first service to identify the token accordingly.
null
CC BY-SA 4.0
null
2023-03-03T09:15:55.823
2023-03-03T09:15:55.823
null
null
10,590,820
null
75,625,174
2
null
75,624,037
1
null
You can use glob recursively. In the following sample code, $init_dir is the initial directory to search, and $::target is the file name you are looking for. ``` proc recur_glob { init_dir } { set list1 [glob -nocomplain ${init_dir}/*] foreach s1 $list1 { if { [file isdirectory $s1] } { recur_glob $s1 ...
null
CC BY-SA 4.0
null
2023-03-03T09:16:05.970
2023-03-03T23:38:28.950
2023-03-03T23:38:28.950
20,714,090
20,714,090
null
75,625,153
1
null
null
0
28
I found documentation that requires me to install the following via yum: php, php-common, php-xml and php-gd. The PHP version required is PHP 5.4 which has reached end-of-life and not included in the AlmaLinux 8 repository or the REMI repository. I have checked many sites and they are using PHP 5.4 and 5.5 meaning I wi...
Compile PHP with php-xml, php-gd and php-common
CC BY-SA 4.0
null
2023-03-03T09:13:19.237
2023-03-04T05:34:47.270
2023-03-04T05:34:47.270
2,688,068
2,688,068
[ "php", "compilation", "almalinux" ]
75,625,176
2
null
75,624,951
0
null
One thing that I was missing is to get the log output of $FAILED_TESTS as text by piping as `jq -sR '. | @text'` and I needed to remove the double quotes in the following line `"body": $FAILED_TESTS` and it worked
null
CC BY-SA 4.0
null
2023-03-03T09:16:14.067
2023-03-03T09:16:14.067
null
null
6,121,608
null
75,625,172
1
null
null
-1
15
I have an openstack infrastructure that consists of one controller,4 computes, 1 block storage, 1 object storage. Everything was going fine until yesterday when we created a instance and installed ansible on it for the purpose of running a playbook that creates 3 instances 1 master and 2 workers and provision a k8s clu...
Openstack neutron-linuxbridge-agent keeps going down and creating vxlans everytime I restart it
CC BY-SA 4.0
null
2023-03-03T09:15:58.817
2023-03-03T09:15:58.817
null
null
18,197,030
[ "kubernetes", "ansible", "openstack" ]
75,625,119
1
null
null
-1
49
I'm doing the following program: Programming teachers want to create a program that calculates students' end-of-semester grade. Currently, all students' partial grades are in a text file with the following format: ``` <first_name> <last_name1> <last_name2> | <AC1> <AC2> <AC3> <AC4> <AC5> <AC6> <AC7> <AC8> <AC9> <AC10>...
Reading and editing structs with fscanf() and fseek()
CC BY-SA 4.0
null
2023-03-03T09:10:12.023
2023-03-03T12:06:56.457
2023-03-03T12:06:22.537
4,593,267
17,761,777
[ "c", "struct", "scanf", "binaryfiles", "fseek" ]
75,625,167
1
75,625,413
null
0
30
i have the following problem with typescript enum / union types when i have the following data structure ``` type Options = SingleOptions | DualDiffOptions enum Modes { Single = "Single", DualDiff = "DualDiff", } type SingleOptions = { on_temp: String; off_temp: Strin...
enums / union types in typescript / svelte
CC BY-SA 4.0
null
2023-03-03T09:15:24.217
2023-03-03T09:40:40.230
2023-03-03T09:38:24.897
16,109,385
16,109,385
[ "typescript", "enums", "svelte", "union-types" ]
75,625,165
1
null
null
0
19
This is getting me crazy. I have two components and a service. In the parent component I call a service that return a users list. Then, I pass to a children component that list, and it render the list in a table. So far so good. The table has a delete button. The delete, apart from doing an http call and delete from th...
Pass Promise<void> to children component in React and typescript
CC BY-SA 4.0
null
2023-03-03T09:15:16.600
2023-03-03T09:15:16.600
null
null
7,114,164
[ "reactjs", "typescript", "eslint" ]
75,625,170
1
null
null
0
8
I followed the instruction on the Detox site to add it to my existing project, in the java testing file which I created however, Android studio states that Detox cannot be found: ``` package com.app.workspace; import com.wix.detox; import com.wix.detox.config.DetoxConfig; ``` The file is located at `/home/erfan/Work/a...
Detox not found in Java testing file in React Native
CC BY-SA 4.0
null
2023-03-03T09:15:46.617
2023-03-03T09:15:46.617
null
null
13,082,789
[ "react-native", "detox" ]
75,625,182
1
null
null
0
13
Hi I have created an Angular Library for sharing some code between several projects. The library is well created and properly installed however when I try to inject a library service into a project service|component I get this error NG0203. This error just appear when library service contain http client dependency (con...
How I can share an Angular Service that contain HttpClient dependency between projects?
CC BY-SA 4.0
null
2023-03-03T09:16:41.123
2023-03-03T09:16:41.123
null
null
15,015,024
[ "angular", "dependency-injection", "angular-library" ]
75,625,175
1
null
null
1
9
So i was creating a script to see what items have been uploaded to google photos and what items have not. Yesterday this worked fine, fetching more than 8K items using the same script, only now its just returning 2 pictures, both taken yesterday. When investigating further using postman I'm also getting just 2 results ...
mediaItems endpoint just returns 2 items, have more than 10K in my libraray
CC BY-SA 4.0
null
2023-03-03T09:16:11.720
2023-03-03T09:38:42.027
2023-03-03T09:38:42.027
1,485,992
1,485,992
[ "google-photos" ]
75,625,173
1
null
null
0
28
I always get an error when trying to run an app in Visual Studio Code using this code, but this code worked on my brother's PC. It worked well until the JSON part came. The error is: > value for message cannot be cast from ReadableNativeMap to string ``` import React, { useState } from "react"; import {Alert, Button, ...
value for message cannot be cast from ReadableNativeMap to string Error
CC BY-SA 4.0
null
2023-03-03T09:16:02.877
2023-03-03T15:11:25.613
2023-03-03T15:11:25.613
21,116,031
21,116,031
[ "javascript", "php", "react-native" ]
75,625,183
2
null
73,955,743
0
null
You can search in th style editor : dpg.show_style_editor() and an object dpg.mvFileDialog exists, maybe for the theme_component
null
CC BY-SA 4.0
null
2023-03-03T09:16:48.743
2023-03-03T09:16:48.743
null
null
19,166,736
null
75,625,181
2
null
75,624,980
0
null
SQLite is a file-based database, being stored only in the contents of the file. In your case if using SQLite you should think of that as not a one database, but as each phone user having his own, independant database. Deleting the file from one user's phone will not affect other users, as that data was not one database...
null
CC BY-SA 4.0
null
2023-03-03T09:16:39.897
2023-03-03T09:16:39.897
null
null
12,990,253
null
75,625,180
2
null
75,620,387
0
null
The `TabView` control allows the user to display a set of tabs and their content. The TabView is fully customizable, other than the native tab bars. However, this hasn't been implemented in . For more details, you can refer to [https://github.com/CommunityToolkit/Maui/issues/121](https://github.com/CommunityToolkit/Mau...
null
CC BY-SA 4.0
null
2023-03-03T09:16:36.277
2023-03-03T09:16:36.277
null
null
9,644,964
null
75,625,186
2
null
75,606,402
0
null
I've found a brute-force method... In the pbf file I've got the coordinates of the shape and I just use the very first longitude and latitude to query the address on [https://nominatim.org/,](https://nominatim.org/,). e.g.: [https://nominatim.openstreetmap.org/reverse?format=json&lat=33.2038405&lon=-96.7436876](https:/...
null
CC BY-SA 4.0
null
2023-03-03T09:17:13.003
2023-03-03T09:17:13.003
null
null
6,281,103
null
75,625,188
2
null
75,623,423
0
null
you should decide what protocol use to send the email to: - - - you need to use smtp protocol [Sending email with gmail smtp with codeigniter email library](https://stackoverflow.com/questions/1555145/sending-email-with-gmail-smtp-with-codeigniter-email-library)
null
CC BY-SA 4.0
null
2023-03-03T09:17:17.803
2023-03-03T09:17:17.803
null
null
7,461,847
null
75,625,189
2
null
75,582,143
0
null
So after a lot of trial and error, the thing I did that fixed my issue was to start the app using: ``` npm run start ```
null
CC BY-SA 4.0
null
2023-03-03T09:17:19.353
2023-03-03T09:17:19.353
null
null
13,082,789
null
75,625,190
2
null
75,624,779
-2
null
You can use . this method tries to add your key and value to dictionary, if it can, but if it can't, . ``` tagIdDictionary.TryAdd(tagId, objTagIdValue); ```
null
CC BY-SA 4.0
null
2023-03-03T09:17:25.607
2023-03-03T09:17:25.607
null
null
11,436,055
null
75,625,184
2
null
75,624,947
2
null
As stated in comment you can better achieve this using `flex` instead of `grid` Output: [](https://i.stack.imgur.com/AzOM1.png) Code: ``` <div class="flex h-screen flex-col bg-gray-300"> <div>Dashboard</div> <div class="flex flex-1 gap-4"> <div class="flex w-2/4 items-center justify-center rounded-lg bg-orange-...
null
CC BY-SA 4.0
null
2023-03-03T09:16:58.413
2023-03-03T09:16:58.413
null
null
13,431,819
null
75,625,178
1
75,632,829
null
0
27
The program module is a fastapi app running on uvicorn with access to an lmdb database. For development (on Windows 11), reload=True is set on uvicorn. It appears uvicorn calls the database handle creation statement twice which leads to an lmdb error (as it can only be called once). Note, this takes place before any ch...
Uvicorn with reload=True not running against database in FastApi app
CC BY-SA 4.0
null
2023-03-03T09:16:26.197
2023-03-04T00:06:16.420
null
null
1,736,294
[ "fastapi", "uvicorn", "lmdb" ]
75,625,185
2
null
75,623,594
0
null
yes, it's possible but quite different as RestSharp did a lot [breaking changes](https://restsharp.dev/v107/#restsharp-v107) If you want to stay on the new version you have to pass a preconfigured HttpClient to Restsharp's constructor. I do not want to copy the code from custom `public static HttpClient GetHttpClient(...
null
CC BY-SA 4.0
null
2023-03-03T09:17:01.753
2023-03-03T09:17:01.753
null
null
5,273,580
null
75,625,191
2
null
75,324,342
1
null
And the end I found out I could use `EventContent` like this: ``` eventContent: function(info) { const title = info.event.title; const nomeUtente = info.event.extendedProps.nomeUtente; if (nomeUtente){ return { html: title + " - " + nomeUtente } } } ``` And I had the result I...
null
CC BY-SA 4.0
null
2023-03-03T09:17:27.873
2023-03-03T09:17:27.873
null
null
21,133,686
null
75,625,187
2
null
74,098,842
0
null
A single `decode()` will usually not result in a frame being call-backed. The reason is (I assume) that the decoder doesn't know if the next `decode()` will be for a frame that is earlier in display order (the order of frames in the byte stream may be different from the order in which they are displayed, and the `Video...
null
CC BY-SA 4.0
null
2023-03-03T09:17:17.767
2023-03-03T09:17:17.767
null
null
1,207,489
null
75,625,192
1
null
null
0
7
I understand how to configure Dialogflow ES with Parameters and Entities, however, this requires the user to specify those Entities in the question. Is it possible to extract the user's email address automatically (based on the Google Account or Slack Account or whatever the integration that is using the Chatbot) and p...
Is it possible to extract a user's email address without using Entities in Dialogflow ES?
CC BY-SA 4.0
null
2023-03-03T09:17:39.643
2023-03-03T09:17:39.643
null
null
4,007,615
[ "dialogflow-es", "dialogflow-es-fulfillment" ]
75,625,195
1
75,625,218
null
1
27
I want bookings for tomorrow to receive an auto-email as a reminder, but I'm unsure how to only send to tomorrows clients. ``` Set rs = Server.CreateObject("ADODB.Recordset") strSQL = "SELECT * FROM enquiries where emailaddress > '' and bookingdate = CURDATE() and statusbar <> 'calledtoconfirm' and lang_code = 'EN' " '...
In MySQL If 'CURDATE' is today, what is tomorrow?
CC BY-SA 4.0
null
2023-03-03T09:17:53.367
2023-03-03T09:20:43.477
null
null
19,255,529
[ "mysql", "email", "easyphp", ".aspxauth" ]
75,625,197
2
null
75,625,143
0
null
Change ``` image: AssetImage('assets/images/music.jpg'), ``` to ``` image: AssetImage('assets/images/music/music.jpg'), ```
null
CC BY-SA 4.0
null
2023-03-03T09:18:18.790
2023-03-03T09:18:18.790
null
null
13,431,819
null
75,625,198
2
null
68,361,414
0
null
That option is no longer provided in the views for Drupal8+ versions. You can enable Twig debugging and see template suggestions etc. by following this [https://www.drupal.org/docs/theming-drupal/twig-in-drupal/debugging-twig-templates](https://www.drupal.org/docs/theming-drupal/twig-in-drupal/debugging-twig-templates)...
null
CC BY-SA 4.0
null
2023-03-03T09:18:19.917
2023-03-03T09:18:19.917
null
null
1,317,487
null
75,625,193
1
null
null
0
20
I'm trying to display a dynamic map in Power BI through Python script editor. This is my code in Python (): ``` import pandas as pd import geopandas as gpd import matplotlib.pyplot as plt # Read geojson mapa = gpd.read_file('spain_map.json') # Read xlsx pedidos_venta = pd.read_excel("sale_orders.xlsx") # Merge by the ...
How to display a dynamic map in Power BI using Python script
CC BY-SA 4.0
null
2023-03-03T09:17:41.523
2023-03-03T09:29:02.643
2023-03-03T09:29:02.643
19,554,237
19,554,237
[ "python", "powerbi" ]
75,625,194
1
null
null
0
27
``` import alpaca_trade_api as tradeapi # API credentials API_KEY = 'key entered' API_SECRET = 'secret key entered ' APCA_API_BASE_URL = 'https://paper-api.alpaca.markets' # Alpaca API client api = tradeapi.REST(API_KEY, API_SECRET, APCA_API_BASE_URL, api_version='v2') # Alpaca streaming client conn = tradeapi.strea...
code not working after installation of all files
CC BY-SA 4.0
null
2023-03-03T09:17:50.750
2023-03-03T12:32:03.477
null
null
21,324,793
[ "python", "jupyter-notebook", "alpaca" ]
75,625,179
1
null
null
1
54
I have a react front end that can post data into a postgres back end using express. I uploaded a pdf file that is 779 bytes in size as a byte array (U8intArray) from the front end using javascript's FileReader(). The bytes get inserted into my database's table column of type bytea. When FileReader() runs, my app logs t...
Postgres bytea data retrieved is different from what I inserted
CC BY-SA 4.0
null
2023-03-03T09:16:31.170
2023-03-05T05:09:25.310
2023-03-05T04:30:34.213
19,089,480
19,089,480
[ "javascript", "node.js", "reactjs", "postgresql", "express" ]
75,625,199
2
null
75,621,250
0
null
I think you might be interested into the caching option: Here is a blog post about it: [https://aws.amazon.com/blogs/devops/improve-build-performance-and-save-time-using-local-caching-in-aws-codebuild/](https://aws.amazon.com/blogs/devops/improve-build-performance-and-save-time-using-local-caching-in-aws-codebuild/) an...
null
CC BY-SA 4.0
null
2023-03-03T09:18:20.867
2023-03-03T09:18:20.867
null
null
19,408,037
null
75,625,202
1
null
null
0
9
StateFlow is a hot flow, but when we use it in an Android view, the LifecycleScope converts it to a cold stream. I want to know how this happens, tks.
How does LifecycleScope convert stateFlow to cold stream?
CC BY-SA 4.0
null
2023-03-03T09:18:51.743
2023-03-03T09:28:35.983
null
null
15,420,682
[ "android", "coroutine" ]
75,625,203
2
null
75,625,105
1
null
The drawing is a little unclear I think. If you read the actual answer, you'll notice that there are two options for the final grouping: ``` A'BD or BCD ``` BCD is the grouping in red in your answer, while A'BD is the grouping: [](https://i.stack.imgur.com/N6P0z.png) So there are two options for grouping that lone 1,...
null
CC BY-SA 4.0
null
2023-03-03T09:19:03.017
2023-03-03T09:19:03.017
null
null
1,086,121
null
75,625,209
2
null
75,625,163
2
null
make use of `onFileChange` hook provided by `FileAlterationListener` ``` @Override public void onFileChange(File file) { System.out.println("File got changed "+ file); } ```
null
CC BY-SA 4.0
null
2023-03-03T09:20:06.047
2023-03-03T22:44:31.343
2023-03-03T22:44:31.343
1,842,599
2,511,915
null
75,625,206
1
null
null
-1
30
I want to create a circle in CSS with a p, then h1, and then 2 p. The content should be vertically and horizontally aligned and the catch is I . Based on columns width, height should adjust! I am allowed to use Bootstrap! I am NOT allowed to use `clip-path`. I've tried searching for the solution online and so far tried...
How can I create a circle with text(p/h1/...) inside without using width and height property?
CC BY-SA 4.0
null
2023-03-03T09:19:28.840
2023-03-03T17:12:43.027
2023-03-03T17:12:43.027
1,264,804
21,324,786
[ "html", "css", "twitter-bootstrap", "bootstrap-5" ]
75,625,208
2
null
75,624,980
0
null
In the end a SQLite Database is just a file on the users device. It is useful for storing structured data that is only used by the specific device. For your app you need a DB server like MySQL or PostgreSQL. Usecases for SQLite are: - - On the server side you can use SQLite aswell instead of the db server but that doe...
null
CC BY-SA 4.0
null
2023-03-03T09:19:35.897
2023-03-03T09:19:35.897
null
null
8,712,555
null
75,625,211
1
null
null
-1
7
I remember reading an article for the best conventions but can't find it any more. Basically I am trying to build a simple database tracking sales stages: 1. Pressent the product to the customer 2. Follow up with customer. 3. Sold, now wait for customer's payment 4. Paid, now deliver 5. Delivered, received. Process Co...
Best way to name the "stages" or "status" of the sales cycle?
CC BY-SA 4.0
null
2023-03-03T09:20:16.390
2023-03-03T09:20:16.390
null
null
527,522
[ "database" ]
75,625,196
1
null
null
0
30
I'm using React Router v6. Is there a way to get or navigate to a route using the id of a RouteObject? I know I can navigate by using a path like `router.navigate('frontend/collection/1234xyz')`. But I'm looking for something like `router.navigateById('editColletion', {collectionId: '1234xyz')`. Here is a snippet from ...
Navigate by RouteObject id in React Router v6
CC BY-SA 4.0
null
2023-03-03T09:18:05.393
2023-03-03T10:48:39.487
null
null
1,572,330
[ "reactjs", "react-router", "react-router-dom" ]
75,625,210
2
null
75,623,878
0
null
The problem if you don't want to compile every program that calls the API program is that the callee has to know if the caller knows about the new field or not, otherwise the callee maybe fail if the age parameter has to be numeric, at least would not use the age as the caller passed it and maybe would corrupt the call...
null
CC BY-SA 4.0
null
2023-03-03T09:20:10.300
2023-03-03T13:23:15.737
2023-03-03T13:23:15.737
12,111,821
12,111,821
null
75,625,204
1
null
null
0
51
``` az acr login --name <containerRegistryName> Login Succeeded docker login <containerRegistryName>.azurecr.io Login Succeeded ``` I am the Owner of the ACR. I can list images : ``` az acr repository list -n <containerRegistryName> [] ``` When I check IAM access for my current user: [](https://i.stack.imgur.com/RVR...
Impossible to push Docker image on Azure ACR
CC BY-SA 4.0
null
2023-03-03T09:19:16.597
2023-03-03T13:41:22.457
2023-03-03T13:41:22.457
8,771,126
8,771,126
[ "azure", "docker", "azure-devops", "containers", "azure-container-registry" ]
75,625,201
1
null
null
0
21
I have the Pyspark Program with several UDF Functions. To improve its performance I decided to write UDF functions in Scala and use its Jar file in Pyspark. So, for one of the UDF Function in Scala which converts Persian Date to Gregorian I did these steps. , I wrote the Scala function in Intellij which is in the follo...
Error of Using Scala UDF in Pyspark : Method apply([class scala.collection.convert.Wrappers$JListWrapper]) does not exist
CC BY-SA 4.0
null
2023-03-03T09:18:30.017
2023-03-03T14:51:38.573
null
null
6,640,504
[ "scala", "apache-spark", "intellij-idea", "pyspark", "sbt" ]
75,625,214
2
null
75,624,937
2
null
You can achieve this with: ``` table tbody tr:has(span.approve) { background-color: #fff8d9; } ``` or ``` table tbody tr:has(span.approve) td { background-color: #fff8d9; } ``` if you want to add background color to `td` elements instead of `tr`. Worth noticing is that `:has()` pseudo-element is quite new and it ...
null
CC BY-SA 4.0
null
2023-03-03T09:20:24.887
2023-03-03T09:20:24.887
null
null
7,251,995
null
75,625,215
1
null
null
0
4
I am using a RestSharp to call a image url. It is showing Status code 0, but while am trying to give same request from Postman it works fine.I tried adding the user-agent but still no luck. What I am missing? Image url which I am trying to download : [https://www.sephora.com/productimages/sku/s2479442-main-zoom.jpg?imw...
Restsharp getting response code 0 while calling url
CC BY-SA 4.0
null
2023-03-03T09:20:27.313
2023-03-03T09:20:27.313
null
null
10,155,594
[ "httprequest", "httpclient", "restsharp" ]
75,625,216
1
75,625,256
null
0
47
I have a file like this: ``` a = 1 some rubbish b = 2 some other rubbish c = a + b ``` And I would like to know the value of `c`. My idea is to evaluate the file line by line since the syntax contains only simple arithmetic operation. The problem is, however, that the file also contains lines that are not valid python...
Parsing and evaluating arbitrary source code in Python
CC BY-SA 4.0
null
2023-03-03T09:20:37.543
2023-03-03T09:24:18.557
null
null
2,329,468
[ "python" ]
75,625,207
2
null
75,620,710
1
null
Heavily based on this [awesome answer](https://stackoverflow.com/a/68465503/6583972), I've adapted my code accordingly: - `shiny`- `shinycssloaders` ``` library("shiny") # library("shinycssloaders") # optional histogramInput <- function(id) { numericInput(NS(id, "bins"), "Select bins", 10, min = 1, step = 1) } hist...
null
CC BY-SA 4.0
null
2023-03-03T09:19:33.193
2023-03-03T09:19:33.193
null
null
6,583,972
null
75,625,218
2
null
75,625,195
0
null
> To get the bookings for tomorrow Just change the following clause in your current query using [DATE_ADD](https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html#function_date-add) function ``` AND bookingdate = DATE_ADD(CURDATE(), INTERVAL 1 DAY) ```
null
CC BY-SA 4.0
null
2023-03-03T09:20:43.477
2023-03-03T09:20:43.477
null
null
4,473,648
null
75,625,212
1
null
null
0
25
I have streamlit app and i need add lottie amination on this background. Animation - it is json file on my page. Some code for open json file as lottie images: ``` import streamlit as st from streamlit_lottie import st_lottie @st.cache def load_image_json(path): """ Load animation and images from json """ wi...
How add lottie animation on background streamlit app?
CC BY-SA 4.0
null
2023-03-03T09:20:20.827
2023-03-03T21:17:03.850
2023-03-03T21:17:03.850
14,744,714
14,744,714
[ "python", "css", "streamlit", "lottie" ]
75,625,220
2
null
53,719,693
0
null
it look like typescript - - - go trough the code below will have better understanding. [](https://i.stack.imgur.com/mA5Al.png)
null
CC BY-SA 4.0
null
2023-03-03T09:20:49.580
2023-03-03T09:20:49.580
null
null
8,808,889
null
75,625,217
2
null
492,994
0
null
``` var months = ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"]; var selectedDate= $('#hstdtContractTodate').val() ; //23-Feb-2023 var date1=new Date((selectedDate.split("-")[2]) +"/"+(months.indexOf(selectedDate.split("-")[...
null
CC BY-SA 4.0
null
2023-03-03T09:20:38.220
2023-03-03T09:20:38.220
null
null
14,718,281
null
75,625,213
2
null
63,377,011
0
null
Do you have the `<router-outlet></router-outlet>` component somewhere in your views? [RouterOutlet](https://angular.io/api/router/RouterOutlet) "acts as a placeholder that Angular dynamically fills based on the current router state." So, you need it for angular to understand what should be rendered depending on your ro...
null
CC BY-SA 4.0
null
2023-03-03T09:20:22.943
2023-03-04T11:00:10.193
2023-03-04T11:00:10.193
13,477,938
13,477,938
null
75,625,226
1
null
null
0
20
I have a list of timestamps in milliseconds that I want to apply as the PTS values of a video stream. The video is a h264 stream without a container and I want to stream copy into an MKV with the PTS values from a text file. The video has a variable frame rate that I want to maintain precisely. Is this possible?
ffmpeg - set pts for vfr video from list of values
CC BY-SA 4.0
null
2023-03-03T09:21:28.620
2023-03-03T09:21:28.620
null
null
1,910,439
[ "ffmpeg", "timestamp", "h.264", "pts" ]
75,625,224
1
null
null
0
10
Next js and keycloak library : [https://www.npmjs.com/package/@react-keycloak/ssr](https://www.npmjs.com/package/@react-keycloak/ssr) I have a problem keycloak with login in gmail, where if I close the browser all tabs really close the browser there is no opening the tab / browser for authentication from keycloak ssr a...
NextJs - Kecyloak still login after close browser or close all tab and window
CC BY-SA 4.0
null
2023-03-03T09:21:15.293
2023-03-03T09:32:54.397
2023-03-03T09:32:54.397
17,926,699
17,926,699
[ "next.js", "keycloak" ]
75,625,225
2
null
75,625,114
2
null
If you want to find all orders with multiple invoices, you could use this: ``` var duplicateOrdersWithDifferentInvoiceNumbers = lst .GroupBy(o => o.ordernumber) .Where(g => g.Select(o => o.invoiceNumber).Distinct().Count() > 1); ```
null
CC BY-SA 4.0
null
2023-03-03T09:21:26.927
2023-03-03T09:21:26.927
null
null
284,240
null
75,625,231
2
null
30,655,939
0
null
Make sure your parent is a coordinator layout, otherwise setExpanded will not work.
null
CC BY-SA 4.0
null
2023-03-03T09:21:53.787
2023-03-03T09:21:53.787
null
null
10,319,730
null
75,625,223
2
null
75,618,204
0
null
Consider an event where if a condition is met, set visibility of buttons. A conceptual example, pass true or false based on if weekday. ``` internal class SomeClass { public delegate void OnCondition(bool condition); public static event OnCondition Condition; public static void CostSql() { Cond...
null
CC BY-SA 4.0
null
2023-03-03T09:21:04.357
2023-03-03T09:21:04.357
null
null
5,509,738
null
75,625,222
2
null
75,613,859
-1
null
They are pretty equivalent, the main difference between Bloc and Cubit lies in the event system. There is an interaction -> you call a function of the Cubit -> it updates the state. Basically you are telling your Cubit "hey, this just happened, please do that". : - - There is an interaction -> you send an event to t...
null
CC BY-SA 4.0
null
2023-03-03T09:21:01.550
2023-03-03T09:31:35.527
2023-03-03T09:31:35.527
1,581,838
1,581,838
null
75,625,232
2
null
75,624,398
1
null
You can use a query rather than aggregation, to get the max priority setting for a type. Try this: ``` Query query = new Query().addCriteria(Criteria.where("type").is(setting.getType())) .with(new Sort(Sort.Direction.DESC, "priority")) .limit(1); Setting setting = mongo...
null
CC BY-SA 4.0
null
2023-03-03T09:22:02.180
2023-03-03T12:22:55.247
2023-03-03T12:22:55.247
12,368,154
12,368,154
null
75,625,234
2
null
41,902,036
0
null
Did not worked for any of higher versions, must be some compatibility issue to debug more
null
CC BY-SA 4.0
null
2023-03-03T09:22:33.050
2023-03-03T09:22:33.050
null
null
19,904,246
null
75,625,200
2
null
73,387,906
0
null
My colleague accidentally found that could click button for change open with in the file properties dialog to call up the open with dialog, so I thought of the method of simulating clicking. ![](https://i.stack.imgur.com/LIvfU.png) My friend find that Bandizip is also implemented in this way by intercepting its message...
null
CC BY-SA 4.0
null
2023-03-03T09:18:26.570
2023-03-03T09:18:26.570
null
null
13,558,953
null