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,638,779
1
null
null
0
5
What is this function doing and how does it quantify uncertainty? I find negative log-likelihood quite difficult to understand in general. ``` def nll_gaussian( y_pred: np.ndarray, y_std: np.ndarray, y_true: np.ndarray, scaled: bool = True, ) -> float: """Negative log likelihood for a gaussian....
How does this implementation of negative log-likelihood quantify uncertainty?
CC BY-SA 4.0
null
2023-03-04T21:29:23.553
2023-03-04T21:29:23.553
null
null
15,962,925
[ "machine-learning", "statistics", "uncertainty" ]
75,638,791
2
null
75,636,256
0
null
It could be differences between the runtime environment of the local machine and the AWS Lambda Runtime environment. Assuming that the runtime is different. Have you tried using AWS SAM with --use-container option? The dependencies will be build to suit the target AWS Lambda Runtime.
null
CC BY-SA 4.0
null
2023-03-04T21:30:58.323
2023-03-04T21:30:58.323
null
null
9,608,279
null
75,638,784
1
75,638,950
null
0
20
I have the following code which captures traffic packets, write them into a traffic.pcap file, then convert the pcap to text file using the tshark. If I enter the full path and name of the files in the last line, the code works perfectly, however it is always overwriting the files, so I added the lines to add time to e...
Windows command prompt in Python
CC BY-SA 4.0
null
2023-03-04T21:29:54.690
2023-03-04T22:21:33.643
null
null
20,410,984
[ "python", "command" ]
75,638,788
2
null
75,638,395
0
null
You suspect correctly that you should run out of memory if you try to load all data into one array list. Therefore you need to use streaming as much as possible. Only read one row at a time. Use code like this: ``` List<String[]> csvRows = new ArrayList<>(); // open CSV file ResultSet Rows = runDBQuery("select * from t...
null
CC BY-SA 4.0
null
2023-03-04T21:30:08.340
2023-03-04T21:35:35.590
2023-03-04T21:35:35.590
4,222,206
4,222,206
null
75,638,792
2
null
75,637,643
0
null
Cross executes in the same user context as it was invoked. When you copy `protoc` from the temp dir to `/usr/bin` [here](https://github.com/IvanGao01/cnosdb/blob/2d870495aa65e3432755ad0bbc6a02bd957cd922/scripts/cross/pre-install.sh#L40) you're not setting the permission so that all users can read and execute it, which ...
null
CC BY-SA 4.0
null
2023-03-04T21:31:08.380
2023-03-04T21:31:08.380
null
null
4,284,367
null
75,638,760
1
null
null
-1
10
I am trying to make a food page and I replaced the values and form actions(they get replaced with "foodidcomeshere0,1,2,3") but when I clicked the buttons(form's submit button) I get redirected to "#blocked".Why do I get redirected to "#blocked" and how can I solve it? (I checked the form's actions with Inspect in goog...
Why do i get redirected to "#blocked" in expressjs?
CC BY-SA 4.0
null
2023-03-04T21:26:58.210
2023-03-04T21:27:34.403
2023-03-04T21:27:34.403
13,376,511
21,181,218
[ "javascript", "express" ]
75,638,794
2
null
75,607,765
0
null
You were using the ggsci::scale_fill_npg() color scale so this is where your fill colors were coming from. Set to use scale_fill_manual() with the two colors you are looking to use. ``` geneplot <- ggraph(hub_plot1, layout = 'fr') + geom_edge_link(color="darkgrey", aes(alpha = weight), show.legend = F) + scale_...
null
CC BY-SA 4.0
null
2023-03-04T21:31:41.860
2023-03-04T21:31:41.860
null
null
9,227,264
null
75,638,774
1
null
null
0
5
How do I split vuejs library from my main vue component when I bundle the file with webpack? I want something like this in the end: ``` Build - Pages ---- PageContact ------ bundle.js (this file would have only my main component and other components, so no vue library here) ---- PageAccount ------ bundle.js (this file ...
How can I split vuejs library from the main app bundle?
CC BY-SA 4.0
null
2023-03-04T21:28:57.883
2023-03-04T21:32:40.067
2023-03-04T21:32:40.067
5,647,726
5,647,726
[ "vue.js", "webpack", "code-splitting" ]
75,638,787
1
null
null
-7
33
I'm building the classic snake game using c graphics. There is no errors in my code, however, the game isn't working as it should. here are the problems I found: - - - here is the source code: ``` #include <graphics.h> #include <time.h> // This function draw the borders of the game feild. void borders(int value) { ...
Snake Game in C Graphics isn't working as it should
CC BY-SA 4.0
null
2023-03-04T21:30:03.420
2023-03-04T21:32:18.697
2023-03-04T21:32:18.697
10,686,048
20,342,881
[ "c", "graphics", "time.h" ]
75,638,793
1
null
null
0
16
I got a web hosting service which got a text file name Redirect.txt, what Im trying to do is do a check every 5 seconds using intrevals, so basically every 5 seconds im sending a fetch request to a text file and if the content is not equal to # ill redirect the user to the content of the file. Im also doing another che...
Stuck in a redirection loop
CC BY-SA 4.0
null
2023-03-04T21:31:22.417
2023-03-04T21:31:22.417
null
null
20,748,673
[ "javascript", "google-chrome-extension" ]
75,638,796
2
null
39,644,638
0
null
Arithmetical approach to access the digits of a integer number. Fixed a limitation of 's solution: if a digit outside the number domain is accessed then the result is always `0`: ``` get_digit(12345, 10) # Chris Mueller # 0 ``` All that is needed to fix it is to track the position of the leading digit. The original qu...
null
CC BY-SA 4.0
null
2023-03-04T21:32:06.027
2023-03-04T21:51:16.847
2023-03-04T21:51:16.847
16,462,878
16,462,878
null
75,638,801
2
null
18,345,825
-1
null
Specify the vars= argument that might work: ``` cursor.execute(" SELECT "Indicator"."indicator" FROM "Indicator" WHERE "Indicator"."some_id" = %s', vars=[id] ) ```
null
CC BY-SA 4.0
null
2023-03-04T21:32:53.703
2023-03-04T21:33:18.597
2023-03-04T21:33:18.597
21,333,553
21,333,553
null
75,638,797
1
null
null
-1
10
Am using OpenAI's API to do a transcription of a very long video (2 hrs long), as suggested by the documentation, am trying to split it in shorter sections using the Pydub library. I do not know why I keep getting the "FileNotFoundError", I've tried from hardcoding the path to the audio file on my desktop, to currently...
Pydub can't find file
CC BY-SA 4.0
null
2023-03-04T21:32:23.203
2023-03-04T21:32:23.203
null
null
13,976,373
[ "python", "tkinter", "audio", "openai-api", "pydub" ]
75,638,770
1
null
null
0
11
I created a map using leaflet and i'm trying to send point / multipolygon drawns to my postgres database using spring data JPA. The server initially receives a string geoJSON ( converted to org.locationtech.jts.geom.MultiPolygon and org.locationtech.jts.geom.Point by the follow deserialize methods ). Obs: I took care t...
How do i insert a Point / MultiPolygon in postgres ( using postgis ) with Spring data JPA?
CC BY-SA 4.0
null
2023-03-04T21:28:02.017
2023-03-04T21:28:02.017
null
null
21,333,381
[ "java", "spring", "spring-data-jpa", "geometry", "postgis" ]
75,638,798
1
null
null
0
11
We have an AKS POD (.NET 6 application) which can successfully connect to an Azure SQL database with SQL Server auth - user and password. However, when used with an Active Directory ID, it throws a remotecertificatename mismatch error. This AKS cluster has istio configured. If used with a cluster which doesn't have Ist...
Kubernetes - connect to Azure SQL using Active Directory ID
CC BY-SA 4.0
null
2023-03-04T21:32:30.200
2023-03-04T21:54:54.063
2023-03-04T21:54:54.063
13,302
20,142,949
[ "kubernetes", ".net-core", "azure-sql-database", "azure-aks", "istio" ]
75,638,799
1
null
null
0
10
my simple bot checks of it got a .json file from an API, if it did, then the bot outputs some info and then deletes that .json file. But if it did not, then it checks again until there is a .json file in that directory. Bot actually works fine, but I get a warning `Discord.gateway warning "Shard ID None heartbeat block...
I run into a discord.gateway warning "Shard ID None heartbeat blocked for more than x seconds."
CC BY-SA 4.0
null
2023-03-04T21:32:32.627
2023-03-04T21:32:32.627
null
null
19,694,624
[ "python", "discord.py" ]
75,638,805
1
null
null
0
27
How can I remove enclosing square brackets in an awk string? For instance, I would have a variable `dgt` with value `[[:digit:]]` and want to remove the outer enclosing square brackets. Currently my solution is very naive. ``` retval = substr(dgt, 2, length(dgt)-2) ```
Remove enclosing square brackets in an awk string
CC BY-SA 4.0
null
2023-03-04T21:33:33.690
2023-03-04T21:44:56.980
2023-03-04T21:41:48.820
21,298,024
21,298,024
[ "awk" ]
75,638,806
1
null
null
0
7
I recently upgraded from debian 11 bullseye to debian 12 bookworm and noticed that gtk was upgraded from 3.24.24-4 to 3.24.36-4 and glib was upgraded from 2.66.8-1 to 2.74.5-1. I have a Gtk3 application which was working fine on debian 11, but now throws several Glib-GObject warnings. The application uses client side d...
Gtk3 Invalid cast from 'GtkHeaderBar' to 'GtkMenuShell'
CC BY-SA 4.0
null
2023-03-04T21:33:45.520
2023-03-04T21:33:45.520
null
null
17,606,354
[ "gtk3" ]
75,638,804
1
null
null
0
14
I am simulating paths of the Hull-White One Factor process using the following code and I am wondering how I can fix the seed of the UniformRandomGenerator(). I have tried writing UniformRandomGenerator(seed=0), but it keeps returning variable paths. ``` import QuantLib as ql import matplotlib.pyplot as plt import nump...
Fixing the seed in QuantLib UniformRandomGenerator()
CC BY-SA 4.0
null
2023-03-04T21:33:10.340
2023-03-04T21:33:10.340
null
null
19,620,671
[ "python", "random", "quantlib" ]
75,638,808
1
null
null
0
9
I try to use sharp with formidable in order to resize my image and change the format but it does not work as expected. The ceeated file is not with the correct format and the correct extension. ``` form.on('fileBegin', function(name, file) { if (file.name !== '') { var ext = file.name.match(/\.(jpg|jpeg|JPG|png|...
Using sharp with formidable
CC BY-SA 4.0
null
2023-03-04T21:34:56.113
2023-03-04T23:07:27.127
2023-03-04T23:07:27.127
2,056,779
2,056,779
[ "sharp", "formidable" ]
75,638,807
2
null
71,650,066
-2
null
This is the error page I'm getting as well ``` Run gradle/wrapper-validation-action@v1.0.6 Error: Gradle Wrapper Validation Failed! See https://github.com/gradle/wrapper-validation-action#reporting-failures ✗ Other validation errors: Expected to find at least 1 Gradle Wrapper JARs but got only 0 ``` and this is what m...
null
CC BY-SA 4.0
null
2023-03-04T21:34:37.673
2023-03-04T21:34:37.673
null
null
8,864,205
null
75,638,811
1
null
null
0
12
Using Docker Desktop(dd) with Redis it gives the port 32768:6379 making it impossible to access from local command prompt. How can I configure Docker Desktop to effectively run docker run -d -p 6379 :6379 redis --port 6379 thereby expecting to access the container from localhost? Do I need to run dockerd and load run...
Docker desktop container config
CC BY-SA 4.0
null
2023-03-04T21:35:07.280
2023-03-04T21:35:07.280
null
null
301,800
[ "docker" ]
75,638,810
2
null
75,638,737
1
null
If you want to use slug instead of id then first you need to update your URLs from int:pk to str:slug: ``` path("localities/<str:slug>/", views.LocalitiesDetail.as_view()) ``` Now update your views.py file class to: ``` class LocalitiesDetail(generics.RetrieveUpdateDestroyAPIView): queryset = Localities.objects.al...
null
CC BY-SA 4.0
null
2023-03-04T21:35:00.757
2023-03-04T21:35:00.757
null
null
3,443,037
null
75,638,800
1
null
null
0
10
in android programming you need to get usb permission before working with connected device to client device. i am trying to connect a `hack-rf` to android device and use it... but first of all i need to get usb permission and detect that `hackrf`. 1- `qt6.3.0` 2- `ndk 21.3.6528147` 3- ui with QML this is my c++ code t...
QtAndroid: Grant Usb Permission in Android with Qt6
CC BY-SA 4.0
null
2023-03-04T21:32:37.933
2023-03-04T21:32:37.933
null
null
8,478,206
[ "android", "qt", "gnuradio", "qtandroidextras", "rtl-sdr" ]
75,638,814
1
null
null
0
6
I am able to create a new project with the same user account, but I cannot seem to do this from cloud shell. I get the following error: ``` failed: 7: Permission 'resourcemanager.projects.create' denied on parent resource 'organizations/{someId}'. ``` The problem is I have no idea what this someId is. It definitely do...
cloud shell refers to an incorrect organization ID
CC BY-SA 4.0
null
2023-03-04T21:35:47.137
2023-03-04T21:35:47.137
null
null
3,755,036
[ "google-cloud-platform", "permissions", "cloud", "google-cloud-shell" ]
75,638,813
2
null
75,638,577
0
null
Usage of: - - 1. Applies to false condition 2. Applies to true condition 3. Not applies to our previous conditions ``` select r.ticket_no, r.request_date, r.store, case when w.total_workers = 0 then 'false' when w.total_workers > 0 then 'true' else 'N/A' end as workers_available from ...
null
CC BY-SA 4.0
null
2023-03-04T21:35:31.990
2023-03-05T02:02:53.117
2023-03-05T02:02:53.117
18,217,734
18,217,734
null
75,638,809
1
null
null
0
6
I understand the standard workflow is to create your directories and files first, but sometimes I want to add additional styling/scripting files without switching to the sidebar or terminal. So trying to see a way to auto create the JS/CSS files and directories when adding the HTML `<link>` & `<script>` tags, if the fi...
In VS Code, is there a way to auto create JS/CSS files and/or directories when adding HTML link/script tags if the files don't exist yet?
CC BY-SA 4.0
null
2023-03-04T21:34:56.123
2023-03-04T21:34:56.123
null
null
7,782,258
[ "html", "visual-studio-code" ]
75,638,815
1
null
null
0
8
I am trying to render the answer I receive from an Onsnapshot in Firebase. The problem is that I do not know how to assign the value I receive to a variable, since it is what I need to be able to render it in React. ``` const unsub = onSnapshot(doc(db, "incrementCounter", "counter"), (doc) => { console.log(doc.data()...
How to render a response from Onsnapshot in React
CC BY-SA 4.0
null
2023-03-04T21:35:47.480
2023-03-04T21:45:20.297
2023-03-04T21:39:42.160
209,103
20,557,223
[ "reactjs", "firebase", "react-native", "google-cloud-firestore", "expo" ]
75,638,817
2
null
75,637,910
0
null
if [date_input,float_input] in df.values: print('yes') else: print('no')
null
CC BY-SA 4.0
null
2023-03-04T21:36:08.217
2023-03-04T21:36:08.217
null
null
17,116,566
null
75,638,812
2
null
75,638,530
0
null
Practice, and # Read simple code: - - - - - - - # Learn to write code Use test driven development: - - - - - - - # Make your code simple - - Understanding complexity is an exercise in removing unnecessary complexity. # Do coding katas - - # Avoid hard to use languages -
null
CC BY-SA 4.0
null
2023-03-04T21:35:26.713
2023-03-04T21:35:26.713
null
null
537,980
null
75,638,823
1
null
null
-1
12
I've been searching the net for a solution in WPF, but can't find anything. I am almost sure that there is a ready-made library that meets my requirements. I want to add a very simple image editor to my application, that allows me to overlay emoticons and other image icons on an image at runtime. Similar to how this wo...
Adding a simple image editor to add and manipulate emoticons in WPF
CC BY-SA 4.0
null
2023-03-04T21:37:43.220
2023-03-04T21:37:43.220
null
null
17,897,220
[ "wpf", "image", "rotation", "move", "emoticons" ]
75,638,818
2
null
75,638,184
0
null
You need to find the row that you want to keep. One approach is to sort by priority and date: ``` with data as ( select *, row_number() over (partition by masterdata order by case usage when 'Used' then 1 else 2 end, createddate desc) as rn ...
null
CC BY-SA 4.0
null
2023-03-04T21:36:42.690
2023-03-05T02:17:38.313
2023-03-05T02:17:38.313
1,322,268
1,322,268
null
75,638,822
2
null
75,638,709
2
null
`result` is a value of type `bytes`, which represents a series of integer values between 0 and 255, inclusive. When you display the each byte is show in one of two forms: 1. If the byte corresponds to a printable ASCII character, it is shown as that character. 2. Otherwise, it is shown as a hexadecimal integer prefixe...
null
CC BY-SA 4.0
null
2023-03-04T21:37:33.090
2023-03-04T21:37:33.090
null
null
1,126,841
null
75,638,821
1
75,638,878
null
0
13
I am trying to make a dynamic and good looking picture gallery but i am having a problem. Since i want the images to be clickable (so i can expand them) i need to wrap a button around the images. For some reason this is crashing react. I tried around 5 different ways of implementing the button. Sadly none worked My Cod...
React Site wont render as soon as button is added around <img/>
CC BY-SA 4.0
null
2023-03-04T21:37:27.553
2023-03-04T22:07:30.233
null
null
15,873,530
[ "reactjs", "image-gallery" ]
75,638,816
2
null
75,637,641
0
null
The minimum storage size for General Purpose SSD (gp2 and gp3) is . It's possible that you allocated 30 GiB of storage when you created the database. So now you will be charged for the 30 GiB of allocated space whether you use it or not. [](https://i.stack.imgur.com/lZObf.png) DB instances for Amazon RDS use EBS volume...
null
CC BY-SA 4.0
null
2023-03-04T21:36:07.920
2023-03-04T21:59:58.350
2023-03-04T21:59:58.350
8,007,403
8,007,403
null
75,638,824
1
null
null
1
23
Trying to Sanitize a text HTML and render it inside another html , this is what I tried, ``` $(document).ready(function(){ $("button").click(function(){ $("p").html(sanitizeHTML("Hello <b>world!</b>")); }); }); function sanitizeHTML(str){ var temp = document.createElement('div'); temp.textContent = str...
Render innerHTML inside .html()
CC BY-SA 4.0
null
2023-03-04T21:37:45.773
2023-03-04T22:18:23.030
2023-03-04T22:18:23.030
19,526,625
19,526,625
[ "javascript", "jquery", "security", "xss" ]
75,638,826
2
null
58,601,318
0
null
It is actually straightforward but not well documented in the extension. 1. In the kubernetes cluster explorer expand the resource you want to edit. Double clicking on it should open it's yaml in the editor on right, also you could right click on it and select "Load". 2. Make the necessary changes to the file. Don't b...
null
CC BY-SA 4.0
null
2023-03-04T21:38:18.120
2023-03-04T21:38:18.120
null
null
70,826
null
75,638,830
2
null
75,638,744
1
null
You can do the follwing: - - -
null
CC BY-SA 4.0
null
2023-03-04T21:39:37.393
2023-03-04T21:39:37.393
null
null
6,853,791
null
75,638,802
1
null
null
0
12
I have two almost identical post-hooks script that behaves differently. This is the one that doesn't work, Rails 7 API-only, Debian 11: ``` #!/bin/bash GIT_DIR=/home/deploy/api.mydomain.com WORK_TREE=/home/deploy/apps/api.mydomain.com . ~/.profile while read oldrev newrev ref do if [[ $ref =~ .*/main$ ]]; th...
Rails Git post-receive hooks doesn't start Puma
CC BY-SA 4.0
null
2023-03-04T21:32:54.377
2023-03-04T21:32:54.377
null
null
1,137,814
[ "ruby-on-rails", "git", "git-post-receive" ]
75,638,829
1
null
null
0
5
i using react-query for fetching some data in my admin panel website. after mutation i am in onSuccess function invalidate query. this invalidate working currect bot cuery does not clear in ReactQueryDevtools and not refatching updated data. this is my code ``` [enter image description here](https://i.stack.imgur.com/m...
data not refatching after invalidate query in react0query
CC BY-SA 4.0
null
2023-03-04T21:39:25.540
2023-03-04T21:39:25.540
null
null
21,333,544
[ "reactjs", "axios", "react-query", "nextjs13" ]
75,638,833
1
null
null
0
5
How can I add a detected object in cost map that generated from move_base package. Car is detecting traffic light and road line in simulation but how can add this property in coast map because the car has to go from one point to another by following the traffic rules and it uses sensors such as lidar imu camera gps. I ...
How can I add a detected object in cost map that generated from move_base package
CC BY-SA 4.0
null
2023-03-04T21:40:06.333
2023-03-04T21:40:06.333
null
null
16,310,122
[ "navigation", "simulation", "ros", "rviz" ]
75,638,831
2
null
75,638,778
1
null
> How is it possible to prevent the callback passed to `useCallback` from being created? It's not possible, you're right on that. But that's not what `useCallback` is aiming at. The optimisation that `useCallback` enables is when using `handleSubmit` (i.e. the return value of `useCallback`) as a dependency of other hoo...
null
CC BY-SA 4.0
null
2023-03-04T21:39:41.833
2023-03-04T21:39:41.833
null
null
1,048,572
null
75,638,825
1
75,639,012
null
-1
49
I am trying to split Serial No of a order item table , which has string separated values. I am able to separate the value but serial no allocation is not happening correctly, Its just showing additional rows. Table has data like ``` OrderID OrderItemID Item Price SerialNo 100 101 P1 200.50 OW5228...
STRING_SPLIT -Query is adding more lines rather then allocating serial number in sequence
CC BY-SA 4.0
null
2023-03-04T21:38:08.377
2023-03-05T00:46:54.803
2023-03-05T00:46:54.803
61,305
8,901,592
[ "sql", "sql-server", "sql-server-2019" ]
75,638,835
2
null
58,776,561
0
null
From iOS 16, The correct way to do this seems to be ``` LabeledContent { TextField("Name", text: $name) } label: { Text("Name") } ``` [https://developer.apple.com/documentation/swiftui/labeledcontent](https://developer.apple.com/documentation/swiftui/labeledcontent)
null
CC BY-SA 4.0
null
2023-03-04T21:40:34.360
2023-03-04T21:40:49.013
2023-03-04T21:40:49.013
2,396,449
2,396,449
null
75,638,838
1
null
null
-3
11
[](https://i.stack.imgur.com/Su3lr.png) I followed the steps to add macOS to published UIKit app. The app loads. It flashes the screen as normal for a split second, and then everything becomes greyed out and you can't interact with the app.
Mac Catalyst App loads then immediately greyed out and buttons don't work
CC BY-SA 4.0
null
2023-03-04T21:41:15.963
2023-03-04T21:41:15.963
null
null
12,323,072
[ "swift", "catalyst", "mac-catalyst" ]
75,638,827
1
null
null
-1
23
I am trying to load information from a HTTP request and store it as a JSON file: here is how I am loading the data: ``` try: response = requests.get(url) except requests.exceptions.ConnectionError as e: print("ConnectionError:", e) try: data = json.loads(response.text) except JSONDecodeError: if "Bad Ga...
Converting JSON to Pandas Dataframe Text Issue
CC BY-SA 4.0
null
2023-03-04T21:38:28.760
2023-03-04T21:38:28.760
null
null
21,258,298
[ "python", "json", "pandas", "dataframe", "unicode" ]
75,638,836
1
null
null
0
7
I'm trying to get webmail.example.com to redirect to [www.example.com/mail](http://www.example.com/mail) This is the conf file setting I have: ``` http { include /etc/nginx/conf-enabled/*.conf; include /etc/nginx/sites-enabled/*.conf; server { listen 80; listen 443 ssl; ...
How do I get NGINX to redirect rather than append a redirected address?
CC BY-SA 4.0
null
2023-03-04T21:40:54.457
2023-03-04T21:40:54.457
null
null
6,656,381
[ "nginx" ]
75,638,834
2
null
19,024,116
0
null
for the m1 and m2 users, in addition to the @Tai 's answer ``` $ brew install smlnj ``` after above command. for me, the path was; > /usr/local//smlnj/bin instead of ~/.bash_profile file edit the ~/.zshrc if you do not have create one with; ``` touch ~/.zshrc open -t ~/.zshrc ``` put the below at the end of file ; ...
null
CC BY-SA 4.0
null
2023-03-04T21:40:24.897
2023-03-04T21:40:24.897
null
null
14,889,021
null
75,638,837
1
null
null
0
24
I am learning SSE in x64 assembly and was trying to change the sign of a float number stored in `xmm0`. To do that, I used `xorps` with a mask that I stored in the rodata section of my executable. ``` mov eax, ds:dword_403000 mov [rbp-4], eax movss xmm0, [rbp-4] xorps xmm0, ds:xmmword_403004 movss [rbp-4]...
Crash when using an address with xorps/xorpd in x64 assembly
CC BY-SA 4.0
null
2023-03-04T21:41:01.517
2023-03-04T21:41:01.517
null
null
21,332,420
[ "windows", "assembly", "x86-64", "reverse-engineering", "sse" ]
75,638,839
1
null
null
-3
18
When trying to configure default built task on terminal for C in Visual Studio Code I get these pop ups every time and it won't create a .json to compile the program correctly. I already added the gcc in the environment variable thing to change in windows but it still pops up the same thing, any help would be appreciat...
Studio code asking to download a JDK compile for c programming?
CC BY-SA 4.0
null
2023-03-04T21:41:21.200
2023-03-04T21:48:20.320
2023-03-04T21:48:20.320
11,683
21,333,560
[ "c", "visual-studio-code" ]
75,638,840
1
null
null
0
11
I tryed run Prestashop in my Docker. I used this commands: `$ docker network create prestashop-net $ docker run -ti --name some-mysql --network prestashop-net -e MYSQL_ROOT_PASSWORD=admin -p 3307:3306 -d mysql:5.7 $ docker run -ti --name some-prestashop --network prestashop-net -e DB_SERVER=some-mysql -v /home/michal/p...
My Prestashop can't connection with Mysql
CC BY-SA 4.0
null
2023-03-04T21:41:26.350
2023-03-04T21:41:26.350
null
null
21,333,550
[ "php", "docker", "prestashop" ]
75,638,844
1
null
null
-2
30
would anyone know if it is possible to display a request to the user, such as "Enter a position in X and Y," using an SDL window? The idea is to be able to retrieve these values later for later use. I tried to use a function SDL_GetTextInputResult(); but I think That doesn't exist anymore...I also tried to use some oth...
A request to the user with SDL
CC BY-SA 4.0
null
2023-03-04T21:42:00.880
2023-03-04T21:42:00.880
null
null
16,963,428
[ "c", "sdl" ]
75,638,846
2
null
75,638,824
0
null
change your function to: ``` function sanitizeHTML(str) { let tmp = document.createElement("div"); tmp.innerHTML = str; return tmp.textContent || tmp.innerText || ""; } ```
null
CC BY-SA 4.0
null
2023-03-04T21:42:07.307
2023-03-04T21:49:17.320
2023-03-04T21:49:17.320
21,017,967
21,017,967
null
75,638,803
1
null
null
0
6
I have a large csv files of prices that I want to upsert to a postgres table. I am reading it with pandas by chunks then uploading it into a temp table, then copy the temp table into the prices table and finally dropping the temp table. Locally this is really fast. each chunk takes 18s, and the file of 18M rows takes 1...
google cloud. upsert large csv file by chunks start to take a lot longer than expected
CC BY-SA 4.0
null
2023-03-04T21:33:00.700
2023-03-04T21:33:00.700
null
null
1,421,322
[ "python", "pandas", "google-cloud-platform", "google-cloud-sql", "google-cloud-run" ]
75,638,843
2
null
75,638,397
3
null
According to [[PDF] LISP: Program is Data - A Historical Perspective on MACLISP](https://www.softwarepreservation.org/projects/LISP/MIT/White-Program_Is_Data-1977-From_MACSYMA77.pdf) published in [Proceedings of the 1977 MACSYMA Users' Conference](https://books.google.fr/books?id=AztDAAAAIAAJ&pg=PA188&lpg=PA188&dq=SXHA...
null
CC BY-SA 4.0
null
2023-03-04T21:41:58.250
2023-03-04T21:41:58.250
null
null
124,319
null
75,638,849
1
null
null
0
18
I'm trying to create an app that asks for user permission to access the phone storage to change the user's profile picture. However I get the "unresolved reference" error while hovering over READ_EXTERNAL_STORAGE. Here's the line with the error message: ``` foto.setOnClickListener{ if(ContextCompat.checkSel...
Manifest.permission.READ_EXTERNAL_STORAGE unresolved reference
CC BY-SA 4.0
null
2023-03-04T21:43:35.453
2023-03-04T21:43:35.453
null
null
16,961,925
[ "android" ]
75,638,850
1
null
null
0
12
I am using Chart.js with Vue. Any time the chart data is changed/recomputed, the zoom is reset. How do I disable the zoom being reset when data changes, while still allowing the user to zoom using wheel/pinch?
Chartjs disable zoom reset when data changes
CC BY-SA 4.0
null
2023-03-04T21:43:37.107
2023-03-04T22:25:35.810
null
null
3,851,085
[ "vue.js", "chart.js", "vue-chartjs" ]
75,638,841
1
null
null
0
17
This is an odd situation for a Microsoft Access to SQL Server 2016 user's machine. There are quite a few Access to SQL Server users in this office using the same software but only one of the users is seeing this error and it only started on 3/3/2022. All the code was working before that point. The code continues to...
Windows 11 - Microsoft Acccess - ODBC SQL Server Driver 17 - SQL Server 2016 - Trigger error only on one user machne
CC BY-SA 4.0
null
2023-03-04T21:41:32.803
2023-03-04T21:41:32.803
null
null
4,697,766
[ "ms-access", "triggers", "odbc", "sql-server-2016", "odbc-sql-server-driver" ]
75,638,853
1
null
null
0
9
I have a question regarding simulated annealing. When we optimize with simulated annealing for example on De-noising algorithm. What do we actually perform optimization on and according to what do we determine whether the image is of sufficient quality if we do not have the original image and in fact we only have the n...
Optimization: simulated annealing image processing
CC BY-SA 4.0
null
2023-03-04T21:43:56.893
2023-03-04T21:43:56.893
null
null
2,733,981
[ "image-processing", "optimization" ]
75,638,852
1
null
null
0
4
this is the problem ? i PS C:\WINDOWS\system32> hdfs namenode -format Le chemin d’accès spécifié est introuvable. Error: JAVA_HOME is incorrectly set. Please update C:\hadoop-3.3.1\etc\hadoop\hadoop-env.cmd '-Dhadoop.security.logger' n’est pas reconnu en tant que commande interne ou externe, un programme exécutable ou ...
i have ishues when I try to run my hadoop aplication
CC BY-SA 4.0
null
2023-03-04T21:43:42.760
2023-03-04T21:43:42.760
null
null
21,317,895
[ "hadoop" ]
75,638,855
1
null
null
0
32
I'm trying to implement this test in order to search text into sentence: ``` @Test void justAnExample() { List<String> list = findPhrasesInDocument("some test located into long program", List.of("test", "into", "long program")); System.out.print(String.join("\n", list)); } List<String> fin...
search keyword using expression
CC BY-SA 4.0
null
2023-03-04T21:44:08.607
2023-03-04T22:11:47.670
null
null
1,103,606
[ "java" ]
75,638,847
1
null
null
0
23
In a Django/React app I am building, I use an API call to get some ids, which returns an object like this: ``` { "0": { "0": "7y8X0Z04gJCKtfrnSAMywJ", "1": "781V2Y5LPtcpgONEOadadE" }, "1": { "0": "7nCONy10IHp7XD3oYZ0lcx" } ... } ``` I want to then use `JSON.stringify()` to...
JSON.stringify() returns empty nested objects {} but works in console
CC BY-SA 4.0
null
2023-03-04T21:43:03.230
2023-03-04T21:43:03.230
null
null
21,333,511
[ "javascript", "json", "object", "async-await", "stringify" ]
75,638,819
2
null
75,428,882
0
null
I have been investigating more and found specific answers to my questions, specially to those related to `bluetoothctl` in particular: > When they are 2 or 4, the remaining bits until 128 are filled with a standard BLE base UUID: 0000-1000-8000-00805f9b34fb. Is this correct? As explained by other people, the answer is ...
null
CC BY-SA 4.0
null
2023-03-04T21:36:48.460
2023-03-04T22:03:16.283
2023-03-04T22:03:16.283
4,030,665
4,030,665
null
75,638,856
2
null
75,623,055
0
null
Finally figured this out. When deploying a WAR file to a JBoss server, you need to do the following: 1. Change your [filename].war to [filename].zip and extract the contents 2. Change the newly extracted folder name to [filename].war 3. Move your main "com" folder (with all your classes) to WEB-INF/classes (you may ne...
null
CC BY-SA 4.0
null
2023-03-04T21:44:10.717
2023-03-04T21:44:10.717
null
null
1,318,162
null
75,638,842
1
null
null
-1
14
``` RNFetchBlob.fs .readFile(uri, 'base64') .then(data => { RNFetchBlob.fs .writeFile(uri, data, 'base64') .then(() => { console.log('FILE CREATED!!'); }) .catch(error => { console.log(error.message); throw error; }); }) .catch(error => { conso...
React Native Error: Failed to create parent directory of file:///data/...'
CC BY-SA 4.0
null
2023-03-04T21:41:53.320
2023-03-04T22:13:53.667
2023-03-04T22:13:53.667
11,692,562
14,861,008
[ "javascript", "android", "reactjs", "typescript", "react-native" ]
75,638,854
2
null
75,637,696
0
null
Often the JVM - after hitting an OutOfMemoryError is in an invalid state. The reason is that some object could no longer be allocated, and while throwing the Error (and processing it in various catch closes, logging it to disk etc) it again needs to allocate memory which can easily fail as well. For operations it may b...
null
CC BY-SA 4.0
null
2023-03-04T21:44:04.410
2023-03-04T21:44:04.410
null
null
4,222,206
null
75,638,859
2
null
75,638,805
0
null
Using `gsub` where `^` is the beginning of the string and `$` the end. ``` % awk 'BEGIN{str = "[[:digit:]]"; gsub(/^\[|\]$/, "", str); print str}' [:digit:] ```
null
CC BY-SA 4.0
null
2023-03-04T21:44:56.980
2023-03-04T21:44:56.980
null
null
9,462,095
null
75,638,857
2
null
75,636,912
0
null
Don't think you can pull it off with 1 query, not if you want to be sure you grabbed all accounts with same top revenue. If the field would be unique - this could be a good way ``` SELECT Id, Name, (SELECT LastName, Email FROM Contacts) FROM Account ORDER BY AnnualRevenue DESC LIMIT 1 ``` It'll grab 1 account - bu...
null
CC BY-SA 4.0
null
2023-03-04T21:44:19.697
2023-03-04T21:44:19.697
null
null
313,628
null
75,638,860
1
null
null
0
17
I'm coding right now on a moderation bot and I tried to code a unban command but i got all the time the same error. Maybe someone can help me. Error: ``` discord.app_commands.errors.TransformerError: Failed to convert hello123#4650 to Member ``` My code: ``` @app_commands.command(name="unban", description="unbans spec...
discord.py 2.0.1 unban command
CC BY-SA 4.0
null
2023-03-04T21:45:20.067
2023-03-05T03:15:12.340
null
null
21,314,567
[ "discord.py" ]
75,638,858
2
null
75,636,293
1
null
Think about the way that your `router.get()` function operates. Currently, you have it written synchronously. Therefore, it will execute `db.find()` and then immediately run `res.render()` without waiting for the callback function being passed into `db.find()`. Therefore, `data` will be undefined, and you won't have...
null
CC BY-SA 4.0
null
2023-03-04T21:44:47.747
2023-03-04T21:44:47.747
null
null
19,899,394
null
75,638,866
1
null
null
0
7
Getting error with RTK query: > Type 'FetchBaseQueryError | SerializedError' is not assignable to type 'ReactNode'. ``` const { data, error, isLoading } = useGetDataQuery(); return ( <div>{error}</div> ); ``` How to solve it? What should I display instead?
Type 'FetchBaseQueryError | SerializedError' is not assignable to type 'ReactNode'
CC BY-SA 4.0
null
2023-03-04T21:46:19.893
2023-03-04T21:46:19.893
null
null
15,751,486
[ "javascript", "reactjs", "redux-toolkit", "rtk-query" ]
75,638,867
1
null
null
0
15
I understand the RANK function, just not sure how to add the text based on said RANK. - - -
How to write text based on RANK function
CC BY-SA 4.0
null
2023-03-04T21:46:40.577
2023-03-04T21:46:40.577
null
null
1,695,523
[ "excel" ]
75,638,869
2
null
57,240,199
0
null
This could arise due to header statement try removing header while writing code like if your code looks like ``` http.createServer( (req, res) => { res.writeHead(200, {'Content-Type': 'text/plain'});// header res.end('Hello World\n'); // body }).listen(8081); ``` Then you can change this to - ``` http.createSe...
null
CC BY-SA 4.0
null
2023-03-04T21:47:05.093
2023-03-04T21:47:05.093
null
null
15,361,521
null
75,638,851
1
null
null
0
8
I have an Antd table whose first column in each row is a dropdown menu. The table has multiple pages. On the first page, when I make a new choice from one of the dropdowns, it works as expected and the new choice is reflected. However, when I go to the next page and try to pick a new choice from one of the dropdowns, i...
AntD table not rendering the changes correctly
CC BY-SA 4.0
null
2023-03-04T21:43:39.243
2023-03-04T21:43:39.243
null
null
11,706,019
[ "reactjs", "antd" ]
75,638,862
1
null
null
2
73
How do I say an instance of `B` could be made for those `m` s that are instances of `A` but say nothing about other `m` s: ``` -- A.hs module A where class A m -- m :: * -> * -- B.hs, totally unrelated to A module B where class B m -- Utilities.hs module Utilities where given A m then instance B m -- like given in...
How do I conditionally declare an instance?
CC BY-SA 4.0
null
2023-03-04T21:45:30.267
2023-03-05T02:40:14.127
2023-03-05T02:40:14.127
791,604
369,489
[ "scala", "haskell", "typeclass" ]
75,638,870
1
null
null
0
12
This is a follow up question to my [previous question](https://stackoverflow.com/questions/75589703/apps-script-will-not-run-in-google-sheet-published-to-web). So basically I was told that I can not run buttons on the web, only directly in a sheet. Ok fine, so I'll just use a directly shared sheet and that solves my b...
Is there a way to disable/hide the sheet tab selector in google sheets for other users WITHOUT using an iframe embed?
CC BY-SA 4.0
null
2023-03-04T21:47:11.503
2023-03-04T21:47:11.503
null
null
10,891,927
[ "google-apps-script", "google-sheets" ]
75,638,861
1
null
null
-1
13
So I have been working on a Discord bot that connects to a WebSocket API and sends messages received from the WebSocket to a Discord webhook. The bot is written in Python using the Discord.py and Websockets libraries. However, I'm running into an issue where the bot seems to be freezing or hanging after running for a c...
discord.gateway Shard ID None heartbeat blocked
CC BY-SA 4.0
null
2023-03-04T21:45:25.110
2023-03-04T21:45:25.110
null
null
21,333,516
[ "python", "websocket", "discord" ]
75,638,871
1
null
null
0
8
I am using Svelte, I want to trigger an action upon transition completion, I see this code with Jquery : ``` $("body").on( "transitionend MSTransitionEnd webkitTransitionEnd oTransitionEnd", function() { $(this).removeClass("start"); }); ``` I use this inside Svelte : ``` on:transitionend="{stopAnim}" ``` Will th...
Is Svelte on:transitionend also triggerd on MSTransitionEnd, webkitTransitionEnd & oTransitionEnd?
CC BY-SA 4.0
null
2023-03-04T21:47:22.930
2023-03-04T22:57:48.633
null
null
7,333,766
[ "svelte" ]
75,638,868
1
null
null
1
20
I know my question is poorly worded, but I'm struggling to understand Futures, as well as `async` and `await` operations, and feel like I don't even understand enough to pose the question! When I run this code: ``` import 'dart:io'; void main() async { clickLink(); sendGet(); String r = await response(); useRe...
How do Futures and asynchronous code work in Dart?
CC BY-SA 4.0
null
2023-03-04T21:46:50.637
2023-03-04T21:46:50.637
null
null
65,886
[ "dart", "asynchronous", "async-await" ]
75,638,863
2
null
75,636,073
5
null
From the [docs](https://www.boost.org/doc/libs/1_81_0/libs/multiprecision/doc/html/boost_multiprecision/tut/ints/cpp_int.html): > - So it's an "optimization", and I don't see a way to turn it off. I would look for alternative libraries to do what you want (allowing bit_cast from some other format). What "trivial" does...
null
CC BY-SA 4.0
null
2023-03-04T21:45:36.360
2023-03-04T21:45:36.360
null
null
5,754,656
null
75,638,865
1
null
null
0
25
Whenever I try to use it always returns `undefined`, even though I wrapped all elements into `provider`. : ``` import { useState, useContext, createContext } from "react"; export const MessageContext = createContext("KITA KO SALAMA") export const MessageUpdateContext = createContext() export function useMessage(){ ...
useContext() is returning undefined
CC BY-SA 4.0
null
2023-03-04T21:45:51.937
2023-03-04T22:00:59.070
2023-03-04T22:00:59.070
16,632,344
19,562,470
[ "javascript", "reactjs", "react-context" ]
75,638,875
2
null
75,524,656
0
null
Looks like a marshmallow-sqlalchemy vs. sqlalchemy 2.0 issue. I released a new marshmallow-sqlalchemy last week with sqlalchemy 2.0 support. Please try with marshmallow-sqlalchemy. If it doesn't work, edit your question to add a pip freeze.
null
CC BY-SA 4.0
null
2023-03-04T21:47:56.307
2023-03-04T21:47:56.307
null
null
4,653,485
null
75,638,873
2
null
75,096,233
0
null
From version 20 of [python-telegram-bot](https://docs.python-telegram-bot.org/en/stable/), the filters library is lowercase and the single filters are written all uppercase. So until v13.7 we had `Filters.text`, but from v20 it became `filters.TEXT`. Maybe in your `requirements.txt` file you have `python-telegram-bot>=...
null
CC BY-SA 4.0
null
2023-03-04T21:47:53.370
2023-03-04T21:47:53.370
null
null
3,997,782
null
75,638,874
1
null
null
-2
15
I am trying to get a single data from backend using react-native and but it doesn't parse, here is the code ``` const [myData,setData] = useState([]); const getAccountDetails = () => { fetch("http://192.168.18.2:5000/accountDetails/"+email,{ method:"GET", headers:{ 'Acc...
Unable to Parse, getting JSON Parse error: Unexpected token: u error
CC BY-SA 4.0
null
2023-03-04T21:47:53.627
2023-03-04T21:47:53.627
null
null
16,076,263
[ "javascript", "react-native" ]
75,638,864
1
null
null
1
32
I wrote code that removes the empty rows in the tables from the `str` variable. I need help in removing the empty columns from the tables in the `str`. Note that tables can have different amounts of cells in each row. all the columns should be removed from the str ``` let str = `<head></head><body><h1>table 1</h1><ta...
Remove empty columns from HTML string
CC BY-SA 4.0
null
2023-03-04T21:45:40.350
2023-03-05T00:44:26.643
2023-03-04T21:47:58.127
519,413
21,197,664
[ "javascript", "html", "arrays", "regex" ]
75,638,878
2
null
75,638,821
1
null
You can use `onClick` in your `<img/>` you don't really need `<button>` to do that : ``` <img className="element" src={picture.src} alt={picture.alt} key={picture.alt} onClick={() => { togglepopup(!popup) }} /> ```
null
CC BY-SA 4.0
null
2023-03-04T21:48:21.210
2023-03-04T22:07:30.233
2023-03-04T22:07:30.233
13,488,990
13,488,990
null
75,638,881
1
null
null
-1
8
I'm trying to call a class that is inside a function, but it's giving an error and I don't know how to solve it. The AppPrincipal(ctk.CTK): class, is empty just to show the error. invalid command name "2085070837888check_dpi_scaling" while executing "2085070837888check_dpi_scaling" ("after" script) invalid command name...
A way to resolve an error when calling another class?
CC BY-SA 4.0
null
2023-03-04T21:49:00.727
2023-03-04T21:49:00.727
null
null
20,745,732
[ "tkinter", "customtkinter" ]
75,638,872
2
null
75,638,723
0
null
you imported the wrong component Change `import Table from 'react';` to `import {Table} from 'react-bootstrap';` make sure you have installed the react-bootstrap to install a react-bootstrap with bootstrap or you can follow this [https://react-bootstrap.github.io/getting-started/introduction](https://react-bootstrap.gi...
null
CC BY-SA 4.0
null
2023-03-04T21:47:37.770
2023-03-04T21:47:37.770
null
null
9,726,922
null
75,638,885
1
null
null
-1
10
If I place right amount bet within the first try, function returns `('Bet placed', 100)`. If bet is too big, code successfully adds funds and actually places the bet `(completes cash = cash - bet_amount)`, but doesn't return `('Bet placed', 100)` anymore. Why? ``` def place_bet(cash): bet_amount = int(i...
Python function doesn't finish loop
CC BY-SA 4.0
null
2023-03-04T21:50:31.147
2023-03-04T21:53:44.467
2023-03-04T21:53:44.467
770,830
21,333,574
[ "python", "function", "loops" ]
75,638,886
2
null
75,638,862
0
null
``` instance A m => B m ``` No, this is what you want. This says "Whenever something is an instance of `A`, make it an instance of `B` using these rules. You may also need `FlexibleContexts` to get around the constraint problem. `FlexibleContexts` is one of many Haskell extensions that's ultimately harmless and used i...
null
CC BY-SA 4.0
null
2023-03-04T21:50:56.613
2023-03-04T21:50:56.613
null
null
2,288,659
null
75,638,887
1
null
null
-1
11
I'm using selenium-wire for parce (without unsecure practice or ddos methods) one web-site with captcha. In browsers with graphical interfaces captcha does't set (exept IE), becouse request headers contain param "wasm" with 32-char code in cookies (life time around 5 mins). As i understand, this param sets on my side a...
Selenium headless mode and WASM. How to run WebAssumbly code from web-site and get result?
CC BY-SA 4.0
null
2023-03-04T21:51:04.290
2023-03-05T05:14:45.350
2023-03-05T05:14:45.350
21,280,166
21,280,166
[ "python", "selenium-webdriver", "selenium-chromedriver", "webassembly" ]
75,638,883
1
null
null
0
4
``` [W 19:10:36.246 NotebookApp] 403 GET /api/kernels?1677957034769 (211.209.3.124) 0.900000ms referer=None [W 19:10:43.866 NotebookApp] Forbidden [W 19:10:43.866 NotebookApp] 403 GET /api/kernels?1677957042389 (211.209.3.124) 1.130000ms referer=None [W 19:10:45.758 NotebookApp] Forbidden [W 19:10:45.758 NotebookApp] 4...
VScode jupyternotbook continues to try a lot of commands when it connects to the remote jupyter server Whenever Kernels interrupted
CC BY-SA 4.0
null
2023-03-04T21:49:43.940
2023-03-04T21:49:43.940
null
null
19,113,191
[ "jupyter-notebook", "vscode-extensions", "vscode-remote" ]
75,638,888
2
null
75,636,170
0
null
You can use multiple aggregations in one query. For example: ``` GET bug_reports/_search { "size": 0, "aggs": { "priority_key": { "terms": { "field": "labels.priority", "size": 10 } }, "product_key": { "terms": { "field": "labels.product", "size": 10 ...
null
CC BY-SA 4.0
null
2023-03-04T21:51:15.750
2023-03-04T21:51:15.750
null
null
10,685,211
null
75,638,880
1
null
null
0
16
The ESV Bible has a javascript plugin that will scan a page for Bible references and insert an "in-place" `div` that popups when hovering over the reference. This is accomplished by simply adding: ``` <script src="https://static.esvmedia.org/crossref/crossref.min.js" type="text/javascript"></script> ``` I've added thi...
Gatsby/React issues with ESV_CROSSREF library
CC BY-SA 4.0
null
2023-03-04T21:48:39.633
2023-03-05T02:18:12.183
2023-03-05T02:18:12.183
916,995
916,995
[ "reactjs", "gatsby" ]
75,638,882
1
null
null
0
19
I have made a square with CSS that is equal to 90% of the smaller between `width` and `height` of it's parent body. I have achieved this using `vmin` and also tried it with `aspect-ratio: 1`. This works but the issue is that on PC the user cannot zoom in on the square using +/ and for some reason it works on mobile - p...
How to make element fill percentage of screen and also be zoomable
CC BY-SA 4.0
null
2023-03-04T21:49:09.977
2023-03-04T21:51:41.003
2023-03-04T21:51:41.003
519,413
17,042,958
[ "javascript", "html", "css" ]
75,638,884
1
null
null
0
11
I am using realm in my project and register here category name I want to list the same categories as one group and write the group numbers next to this list. This is my Realm database: ``` import RealmSwift class CatList: Object { @objc dynamic var catname: String = "" } ``` I can list data with this code: ``` le...
Swift Realm "Group By" like android room database
CC BY-SA 4.0
null
2023-03-04T21:50:01.600
2023-03-05T02:57:16.847
2023-03-05T02:57:16.847
20,780,299
20,780,299
[ "ios", "swift", "realm" ]
75,638,890
1
null
null
0
8
I was told to download node.js and I downloaded and installed it. But there is no output in the vscode console I write the code console.log("Hello world") and expecting the output Hello world but it shows nothing except this [Running] node "c:\Users\user\Desktop\node.js" [Done] exited with code=1 in 0.272 seconds
Why am I not seeing the ouput
CC BY-SA 4.0
null
2023-03-04T21:51:43.513
2023-03-04T21:51:43.513
null
null
21,276,341
[ "vscode-extensions" ]
75,638,889
2
null
75,638,646
1
null
An alternative way to calculate this (w/out the extra code) is to use the the fact that an `int` is always a whole number. So, by adding one and dividing by two will get you the length of the string to move. `(7+1)/2 = 4` stays `4` when stored as an `int`. `(6+1)/2 = 3.5` becomes `3` when stored as an `int`. ``` while ...
null
CC BY-SA 4.0
null
2023-03-04T21:51:19.717
2023-03-04T22:00:15.967
2023-03-04T22:00:15.967
19,138,128
19,138,128
null
75,638,893
2
null
75,638,744
0
null
Pass the `tool` instance as argument to `do_smth` function in Server.py and call tools_func like this. ``` def server(self, tool): tool.tools_func() ``` And in app.py you can do the following ``` Server.do_smth(tool) ```
null
CC BY-SA 4.0
null
2023-03-04T21:52:14.363
2023-03-04T21:52:14.363
null
null
13,612,986
null
75,638,897
1
75,639,390
null
0
24
In a Polars dataframe, I know that I can aggregate over a group of rows that have the same value in a column using for example [.groupby("first_name").agg([...])](https://pola-rs.github.io/polars-book/user-guide/dsl/groupby.html#basic-aggregations). How can I aggregate over all rows in a dataframe? For example, I'd lik...
How to aggregate over all rows in a Polars dataframe?
CC BY-SA 4.0
null
2023-03-04T21:53:18.827
2023-03-04T23:47:06.030
null
null
15,286,339
[ "dataframe", "python-polars", "rust-polars" ]