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,636,784
1
null
null
1
42
I have a simple API. ``` [HttpGet] [Route("problem")] public ActionResult Prob() { _logger.Debug($"HealthController.Accept"); return Problem("WTF?", statusCode: (int)HttpStatusCode.BadRequest); } ``` When I call it with Postman, I get the following: ``` { "type": "https://tools.ietf.org/html/rfc7231#secti...
WebAPI returning invalid response for BadRequest
CC BY-SA 4.0
null
2023-03-04T15:48:36.940
2023-03-04T23:19:17.327
2023-03-04T23:19:17.327
17,701,687
17,701,687
[ "c#", "asp.net-mvc", "asp.net-web-api" ]
75,636,785
2
null
75,617,091
0
null
The `DOWORK_TRACE_ENABLED` macro will evaluate to zero normally. It will only evaluate to 1 when the DTrace probe is enabled. In your example, the body of the if will only be executed when the corresponding probe is enabled (e.g. by running the `dtrace` command).
null
CC BY-SA 4.0
null
2023-03-04T15:48:44.923
2023-03-04T15:48:44.923
null
null
1,371,209
null
75,636,783
2
null
75,635,969
0
null
Yes, you cn do it as in the example below: ``` import numpy as np import pandas as pd from tensorflow.keras.models import Sequential from tensorflow.keras.layers import LSTM, Dense, Bidirectional, Dropout from tensorflow.keras.optimizers import Adam from sklearn.preprocessing import StandardScaler data = np.random.ra...
null
CC BY-SA 4.0
null
2023-03-04T15:48:16.870
2023-03-04T15:48:16.870
null
null
5,363,686
null
75,636,778
1
null
null
0
14
the main idea of my setup is to manage the many to many relationship via repositories. That is why, in the following setup, all the relations are annotated as `@Transient`, since those sets should only be populated "manually", instead of letting Hibernate do that. ``` @Entity @Table(name = "house") public class House {...
Join entity in many to many not being persisted after applying "@Transient" to the corresponding entities and the join entity
CC BY-SA 4.0
null
2023-03-04T15:48:02.203
2023-03-04T22:43:11.117
null
null
6,319,771
[ "java", "hibernate", "join", "many-to-many", "entity" ]
75,636,781
1
null
null
0
17
I hope that title makes sense. I'm trying to filter through a list generated from an API call to get the selected matching record and place that in a dynamic label. Currently, I am able to use the `requests` module to make an API call to a Airtable sheet I have with customers' name and other required fields. I make the...
Lookup key pair value based of previously found key in Python
CC BY-SA 4.0
null
2023-03-04T15:48:11.563
2023-03-04T15:48:11.563
null
null
19,598,126
[ "python", "for-loop", "tkinter", "python-requests" ]
75,636,780
1
null
null
1
12
I am using datatables from my project and it works great. However I am running into a problem with column filtering. Position column has too long values. Using select.append( ''+d.substring(0,15)+'' ); doesn't work as I want the text to be different for each value. Is there a way to use a hidden column with simple text...
How to add a hidden column to display filter values in the dropdown?
CC BY-SA 4.0
null
2023-03-04T15:48:06.947
2023-03-04T15:48:06.947
null
null
21,267,931
[ "javascript", "html", "datatables" ]
75,636,788
2
null
75,636,413
0
null
Try something like this: ``` struct FixedSizeButton: View { var label = "" var width = 100.0 var action: () -> Void var body: some View { Button(action: action) { Text(label) .frame(width: width) } } ``` } ``` struct ContentView: View { var body: some View { HStack { FixedSizeBu...
null
CC BY-SA 4.0
null
2023-03-04T15:49:18.167
2023-03-04T15:59:12.910
2023-03-04T15:59:12.910
11,042,467
11,042,467
null
75,636,787
1
null
null
0
7
'''I am trying to insert a photo in the options menu together the text in the first message sent for user, but I am not getting. I have tryied many ways but without success. ''' #MY CODE: ``` from telegram.ext import ApplicationBuilder, ContextTypes, CommandHandler, filters, MessageHandler, CallbackQueryHandler from te...
Send a photo together first menu in python-telegram-bot, like a banner to present the options
CC BY-SA 4.0
null
2023-03-04T15:49:10.240
2023-03-04T15:49:10.240
null
null
21,332,052
[ "python", "image", "bots", "telegram", "chatbot" ]
75,636,794
2
null
60,101,168
0
null
I was working with mmaction trainer when this error showed up. What worked for me was: ``` cfg.data['workers_per_gpu']=0 ``` Where cfg is the configuration, for training.
null
CC BY-SA 4.0
null
2023-03-04T15:51:11.170
2023-03-04T15:51:11.170
null
null
10,816,027
null
75,636,786
1
null
null
1
25
I am pretty new to typescript. I want to create a map, that stores a class reference under the name `component`. It should allow any classes that extend the abstract class `Component`. I dont want to store a reference to a class instance but rather to the class itself, so I could create a class instance by calling `new...
(typescript) extending class type is not assignable to base class type
CC BY-SA 4.0
null
2023-03-04T15:49:08.217
2023-03-04T20:22:00.897
null
null
13,658,308
[ "typescript", "inheritance", "extends" ]
75,636,789
2
null
75,632,475
0
null
I suspect you want this code to be run on the backend side only. For this, you just need to rename your `+page.ts` into `+page.server.ts`. Take a look at the [Universal vs server](https://kit.svelte.dev/docs/load#universal-vs-server) section in their documentation. Just renaming the typescript file should be enough to ...
null
CC BY-SA 4.0
null
2023-03-04T15:49:19.600
2023-03-04T16:48:26.713
2023-03-04T16:48:26.713
4,461,605
4,461,605
null
75,636,793
1
null
null
-1
12
g++ compiler on my mac normally worked until i installed anaconda now after executing: g++ a.cpp -o a this error shows up: ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/lib/libSystem.tbd' for architecture arm64 collect2: error: ld returned 1 exit stat...
Getting ld error after compiling c++ code
CC BY-SA 4.0
null
2023-03-04T15:51:03.073
2023-03-04T15:51:03.073
null
null
20,135,219
[ "macos", "compiler-errors", "anaconda", "g++", "ld" ]
75,636,795
2
null
27,219,159
0
null
My naive solution to compare dates with nanoseconds in a ISO String timestamp (Date.toISOString()) is extracting the nanos from the string `.000000Z` and adding it to the milliseconds obtained from `getTime()`. ``` function getNanoseconds(d) { var x1 = new Date(d), x1n = d.split('.')[1].split('Z')[0], x1n = N...
null
CC BY-SA 4.0
null
2023-03-04T15:51:23.843
2023-03-04T15:51:23.843
null
null
758,836
null
75,636,797
1
null
null
0
14
I want to query the top 5 products of a table but they must be unique on the product column, when they have the same value for the column sodium. So its basically sort values by column sodium, show result descending then drop dublicates based on product and only show the first 3 results. I managed to do this on a panda...
Django ORM sort by column, descending, drop dublicates and give the top 5
CC BY-SA 4.0
null
2023-03-04T15:51:50.103
2023-03-05T01:07:06.853
null
null
13,924,023
[ "python", "django", "postgresql", "django-models", "orm" ]
75,636,791
1
null
null
0
30
I am trying to insert a row into sqlite database, using sqlite3.h. the query statement run without any error but no row is added to table anyway. this is the code: ``` int add_to_db(char* text, int type){ sqlite3* db; char* err_msg = 0; int rc = sqlite3_open("mydb", &db); if (rc != SQLITE_OK) { ...
error "no more rows available" while Inserting in an empty table
CC BY-SA 4.0
null
2023-03-04T15:50:44.470
2023-03-04T16:55:53.060
2023-03-04T16:55:53.060
5,040,824
5,040,824
[ "sql", "c", "sqlite" ]
75,636,799
2
null
75,636,554
0
null
With the help of @m0skit0 I was able to see I need to create a composable for the HomeNavGraph to call that would render content for each view of the bottomNavigation. I created ``` @Composable fun ScreenContent(name: String, onClick: () -> Unit) { Box( modifier = Modifier.fillMaxSize(), contentAlig...
null
CC BY-SA 4.0
null
2023-03-04T15:52:17.560
2023-03-04T15:52:17.560
null
null
4,219,444
null
75,636,800
2
null
75,635,651
0
null
Your code does not match your expectations. You have a `prop.txt` in two different directories: `dir955DBF4D2285F2E21C32C59406B537CE` or `dirD719650CC1B2842144EDDEE82C74F4F8`. Those two directories are: ``` <Directory Id="dir955DBF4D2285F2E21C32C59406B537CE" Name="hml" /> <Directory Id="dirD719650CC1B2842144EDDEE82C74F...
null
CC BY-SA 4.0
null
2023-03-04T15:52:30.963
2023-03-04T15:52:30.963
null
null
23,852
null
75,636,792
1
null
null
-1
14
This is not a question but a working example. I asked questions previously (some with replies, thanks) and I finally managed to get what I want. Following the paradigm of the Draw example in the book, I have written an example where the screen is a vector of widgets (a super trait) that require sharing with interior mu...
rust example of shared widgets with super traits
CC BY-SA 4.0
null
2023-03-04T15:50:57.743
2023-03-04T15:50:57.743
null
null
4,728,133
[ "rust", "traits", "borrow-checker", "ownership", "interior-mutability" ]
75,636,804
1
null
null
0
6
There is a same method in audioplayers package ( final player = AudioPlayer(playerId: 'my_unique_playerId'); Is there some similar in just_audio? I need to get it in different parts of the application and it would be convenient to get it by id as in other players packages
Is it possible to create and then get instance of Audioplayer by Id in just_audio flutter package?
CC BY-SA 4.0
null
2023-03-04T15:53:23.627
2023-03-04T15:53:23.627
null
null
18,471,678
[ "flutter", "just-audio" ]
75,636,806
2
null
75,628,795
0
null
I managed to fix this relatively easy after lots of experimentation. Firstly, I made sure to reduce any noise in the data where possible, giving cleaner looking curves without sacrificing (too much) the sharpness of the peaks of interest. In my case, I increased the blur on the original image that the polar plot was ma...
null
CC BY-SA 4.0
null
2023-03-04T15:53:35.390
2023-03-04T15:53:35.390
null
null
5,232,304
null
75,636,807
1
null
null
-2
21
Python code to to string conacatenate of unstrucctured data in text file Tried using sed command it didnt work
I am trying to use regex for unstructured data however tab delimiter isnt working as expeced
CC BY-SA 4.0
null
2023-03-04T15:53:41.950
2023-03-04T15:56:32.793
null
null
21,332,269
[ "python", "mysql", "regex" ]
75,636,803
1
null
null
-1
11
I am compiling an app from delphi 11.2 using PA server with Target being . The issue I encountered is below: [DCC Fatal Error] Common.Database.FireDAC.SIPOSConnection.pas(17): F2048 Bad unit format: 'C:\Program Files (x86)\Devart\UniDAC for RAD Studio 11\Lib\OSXARM64\Uni.dcu' - Expected version: 35.0, Unk(ARM64) Found ...
bad data format for unit Uni with delphi 11.2 and ios arm simulation
CC BY-SA 4.0
null
2023-03-04T15:53:22.150
2023-03-04T15:53:22.150
null
null
10,154,919
[ "ios", "arm", "firemonkey", "delphi-11-alexandria", "unidac" ]
75,636,805
2
null
75,636,299
0
null
I was able to solve this with blenders and help [from this post](https://www.emailonacid.com/blog/article/email-development/12_things_you_must_know_when_developing_for_gmail_and_gmail_mobile_apps-2/#gmail_tip5). Basically, my code looks like this now: ``` <html lang="en"> <head> <meta name="color-scheme" content=...
null
CC BY-SA 4.0
null
2023-03-04T15:53:28.100
2023-03-04T15:53:28.100
null
null
12,375,343
null
75,636,808
1
null
null
0
38
When I write integration tests in Visual studio code, rust-analyser does not perceive the tests folder, although the cargo test works as it should I tried to search Google, but I just found that rust analyzer doesn't work well with integration tests
Visual Studio Code Rust-Analyzer does not see the test folder
CC BY-SA 4.0
null
2023-03-04T15:54:01.313
2023-03-04T17:40:17.537
null
null
19,199,417
[ "visual-studio-code", "rust", "integration-testing", "rust-analyzer" ]
75,636,796
1
null
null
-1
15
I want to upload photo from file, it is working good if i try to save to image/photo.jpg my file is in this folder named "index.php" but when i want to save this file to 2 folder back like ../../img/testimonial/photo.jpg it is giving this error Fatal error: Uncaught ValueError: Path cannot be empty in here is my html c...
Fatal error: Uncaught ValueError: Path cannot be empty in
CC BY-SA 4.0
null
2023-03-04T15:51:36.367
2023-03-04T16:04:56.913
2023-03-04T16:01:31.410
21,109,819
21,109,819
[ "php" ]
75,636,811
2
null
8,660,203
0
null
check this way where Ph != '' and Ph = '123456780'
null
CC BY-SA 4.0
null
2023-03-04T15:54:08.730
2023-03-04T15:54:08.730
null
null
7,305,623
null
75,636,812
1
null
null
0
7
I come from a `Java` background where typically documentation of an API includes arguments. For instance the method `java.io.File.createNewFile()` is documented like so: ``` public boolean createNewFile() throws IOException ....method description goes here... Returns: true if the named file does ...
How to read api documentation in `python`
CC BY-SA 4.0
null
2023-03-04T15:54:08.937
2023-03-04T15:54:08.937
null
null
7,210,834
[ "python-3.x", "documentation" ]
75,636,801
1
null
null
-2
18
Web URL: [](https://i.stack.imgur.com/srKDf.png) ERROR 500: [](https://i.stack.imgur.com/hJTjp.png) CONSOLE: [](https://i.stack.imgur.com/MdPGL.png) APACHE LOG: [](https://i.stack.imgur.com/C6drB.png) What I did was: I created a php webpage at /var/www/html by `sudo nano /var/www/html/index.php`.This webpage is basical...
WIN10 Edge Browser access to GCP VM web server resulted in HTTP ERROR 500
CC BY-SA 4.0
null
2023-03-04T15:52:46.603
2023-03-05T04:28:46.933
2023-03-05T03:49:15.037
21,233,086
21,233,086
[ "php", "apache" ]
75,636,809
1
null
null
0
8
when I use DeepFace.analyze the type of the output variable is ''list'' instead of ''dict''. I don't know where the problem is exactly, you can see my code below ``` import cv2 ## pip install opencv-python from deepface import DeepFace ## pip install deepface img=cv2.imread('happyboy.jpg') import matplotlib.pyplot as...
Type of the result using DeepFace.analyze()
CC BY-SA 4.0
null
2023-03-04T15:54:01.707
2023-03-04T15:54:01.707
null
null
4,744,362
[ "python", "deep-learning", "jupyter", "deepface" ]
75,636,814
1
null
null
0
6
I have a rails site that's working fine locally. I've tried to deploy it on [fy.io](https://fly.io/docs/rails/getting-started/) and these are the steps that I've taken. 1. Run fly auth login 2. Run fly launch 3. Left the following prompt blank, Choose an app name (leave blank to generate one) 4. ? Choose a region for ...
failed to fetch an image or build from source error whn deploying Rails site on fly.io
CC BY-SA 4.0
null
2023-03-04T15:54:16.023
2023-03-04T15:54:16.023
null
null
11,028,760
[ "ruby-on-rails", "deployment", "fly" ]
75,636,810
1
75,638,608
null
0
55
I want to validate some numbers with Regular expressions in flutter. The Regular expression looks like this: `RegExp(r"(09)(1[0-9]|3[0-9]|2[0-2])([0-9]{7})")` and it works fine for numbers like `0123456789` but if user enter this kind of number `١`, it is not working. There are also other numbers like: `٠١٢٣٤٥٦٧٨٩` th...
Regular expressions for unicode numbers
CC BY-SA 4.0
null
2023-03-04T15:54:07.397
2023-03-04T21:39:21.727
2023-03-04T18:13:50.430
8,144,311
8,144,311
[ "regex", "flutter" ]
75,636,696
1
null
null
0
3
I’m building a YouTube downloading app and having problem implementing cached_video_player I want to replace from displaying the assets content to display the downloaded content this is the logic for the downloading process: ``` class VideoDownloader with ChangeNotifier { final List<VideoStreamInfo> _downloadedVideos...
problem implementing cached_video_player Package
CC BY-SA 4.0
null
2023-03-04T15:33:47.270
2023-03-04T15:33:47.270
null
null
17,755,642
[ "flutter", "dart" ]
75,636,813
1
null
null
-2
74
I am trying to solve an issue where I need to find the previous,current and next record where the query matches certain condition. In the example image below I am interested in only records where pattern_id=23587462 (can be multiple), and it the previous machine_id = next machine_id, then fetch the 3 records. ``` selec...
fetch previous, current and next record where it meets certain condition
CC BY-SA 4.0
null
2023-03-04T15:54:13.857
2023-03-04T23:29:03.740
2023-03-04T23:05:42.037
8,149,462
8,149,462
[ "sql", "postgresql" ]
75,636,817
1
null
null
0
6
I tried everything, even the below commands, but nothing is working! ``` !pip install tensorflow==1.14 !pip install tensorflow-federated==0.4.0 # The latest version of tensorflow-federated is not working with the colab python version. !pip install --quiet --upgrade nest-asyncio ``` Can somebody explain it or give the ...
How to use tensorflow_federated in Google Colab?
CC BY-SA 4.0
null
2023-03-04T15:54:42.853
2023-03-04T15:55:00.743
2023-03-04T15:55:00.743
16,620,222
16,620,222
[ "python", "tensorflow", "tensorflow-federated" ]
75,636,815
1
null
null
0
18
I am trying to download files using the command prompt. This user @user4317867 helped me to write commands for loops. The command worked with just a flow of one season the command is: ``` for /L %i in (1,1,24) do curl -O "the URL of the file to download" ``` Now I want to download a movie series using that command but...
Nested Loops with IF Statment in CMD
CC BY-SA 4.0
null
2023-03-04T15:54:28.610
2023-03-04T19:22:44.003
2023-03-04T19:22:44.003
6,738,015
19,362,585
[ "for-loop", "if-statement", "cmd", "nested" ]
75,636,819
2
null
75,565,435
0
null
I've implemented Token-Based Authentication in a Astro project using [ServiceWorkers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API). With a ServiceWorker you will be able to create a fetch event handler that will be called for every request your frontend sends. In this handler you can redirect, a...
null
CC BY-SA 4.0
null
2023-03-04T15:54:59.937
2023-03-04T16:03:42.393
2023-03-04T16:03:42.393
12,224,431
12,224,431
null
75,636,818
2
null
75,616,215
0
null
Start by adding a name to your post detail url. ``` path('', views.ContentHome.as_view(), name='homepage'), path('\<slug:category_slug\>', views.content_category), path('\<slug:category_slug\>/\<slug:post_slug\>', views.content_post, name='post-detail')` ``` Expect previous and next post to be passed in context when p...
null
CC BY-SA 4.0
null
2023-03-04T15:54:51.830
2023-03-04T15:54:51.830
null
null
20,263,044
null
75,636,822
1
null
null
-3
32
I'm trying to translate from relational algebra to SQL, but I don't know how to do double INNER JOIN. ``` π did ((π cid ((σ (name='Linda')(Driver)) ⨝ (Res))) ⨝ (Res)) - π did (σ (name='Linda')(Driver)) ``` It should be like: ``` SELECT Res.did FROM (SELECT Res.cid FROM Driver INNER JOIN Res ON Driver.did = Res.did WHE...
Relation Algebra to SQL
CC BY-SA 4.0
null
2023-03-04T15:55:23.097
2023-03-05T03:17:50.277
2023-03-05T03:17:50.277
3,404,097
21,332,243
[ "sql", "rdbms", "relational-algebra" ]
75,636,826
1
null
null
0
15
How to pass data from react native to node.js (express)? I'm working on a react native and nodejs (express) but can't figure out how to exchange data between them.
How to pass data from react native to node.js (express)
CC BY-SA 4.0
null
2023-03-04T15:56:06.473
2023-03-04T16:25:18.440
null
null
20,757,018
[ "node.js", "react-native", "express" ]
75,636,824
1
null
null
0
7
So I have an animation using `React Native Reanimated` that repeats every 3 seconds and updates the `SharedValue`. I have implemented it as shown below using `setInterval`. ``` const SomeThreshold = 5; useEffect(() => { progress.value = 0; const interval = setInterval(() => { if (progress.value === SomeThresh...
Repeat Animation without using Web APIs (setInterval)
CC BY-SA 4.0
null
2023-03-04T15:55:33.033
2023-03-04T15:55:33.033
null
null
13,170,636
[ "react-native", "expo", "ui-thread", "react-native-reanimated" ]
75,636,825
1
null
null
0
17
I created this indexedDB database but the item store was not created and I couldn't find solutions ``` const IDBRequest = indexedDB.open("MyDatabase", 1); IDBRequest.addEventListener("upgradeneeded",()=>{ const db = IDBRequest.result; db.createObjectStore("nombres",{ autoIncrement: true }); }) ID...
indexedDB item store was not created
CC BY-SA 4.0
null
2023-03-04T15:56:01.673
2023-03-04T16:40:13.720
2023-03-04T16:31:49.757
1,839,439
21,332,214
[ "javascript" ]
75,636,827
1
null
null
0
21
I need to generate txt without the last line in white. The next code usually use, but the result is with the last white line: ``` 'path to the text file (MAKE SURE TO CHANGE IT) 'myFile = "C:\Users\amorante\Downloads\ValidacionesSunatEdufarma\" & j & ".txt" myFile = varRuta & j & ".txt" 'define FreeFile to the variab...
Generate TXT without last white line
CC BY-SA 4.0
null
2023-03-04T15:56:23.763
2023-03-04T15:56:30.933
2023-03-04T15:56:30.933
8,422,953
17,275,543
[ "excel", "vba" ]
75,636,831
1
null
null
-1
12
Let's say I have an MVEL expression that is causing an infinite loop. Is there any API in the MVEL library that allows me to set a timeout for executing the expression? Sample expression:- ``` Serializable compiled = MVEL.compileExpression("while(true)\n" + "System.out.println(\"Hello\");"); Map<String, Object> vars = ...
How to stop infinite loop in MVEL?
CC BY-SA 4.0
null
2023-03-04T15:57:09.760
2023-03-04T15:57:09.760
null
null
12,127,212
[ "java", "mvel" ]
75,636,821
2
null
13,202,705
0
null
The [Git project repository mirror on GitHub](https://github.com/git/git) has a `todo` branch where the maintainer has some notes and apparently scripts which helps him make announcements like the status updates for the project (“What’s Cooking”).[1] ``` > ls add-by CB cook dod...
null
CC BY-SA 4.0
null
2023-03-04T15:55:20.377
2023-03-04T16:03:22.247
2023-03-04T16:03:22.247
1,725,151
1,725,151
null
75,636,830
1
null
null
0
19
I'm totally stuck with this one. I displayed 4 countries with real time data using forEach() method, but I want to render time every second. If I put setInterval() on renderCityTimeData() function, it render all row of data. If I put setInterval() in html template literal like this: ``` <p class="current-time"> ${setI...
Count seconds with setInterval() each second
CC BY-SA 4.0
null
2023-03-04T15:56:51.580
2023-03-04T16:03:12.617
null
null
19,663,337
[ "javascript", "arrays", "foreach", "setinterval" ]
75,636,820
1
null
null
0
8
I use Solnet to communicate with solana, I got this error in response of transaction : > Transaction simulation failed: Blockhash not found I did it without any problem in solana-cli. I thought problem is in GetRecentBlockHash or GetLatestBlockHash both they returned blockhash successfully. I got this error in this lin...
solnet problem in response for making Token : Blockhash not found
CC BY-SA 4.0
null
2023-03-04T15:55:19.507
2023-03-04T15:55:19.507
null
null
1,579,102
[ "c#", "solana" ]
75,636,829
2
null
74,265,265
0
null
I had a similar problem connecting Linux BLUEZ with an nrf5340 SoC. After some research, I've found a way to set the PHY using hcitool. Using BLUEZ as a central, it is possible, after having established a connection, to change the PHY dynamically. You can use the "hcitool" to modify the connection parameters and PHY by...
null
CC BY-SA 4.0
null
2023-03-04T15:56:45.013
2023-03-04T15:56:45.013
null
null
7,972,514
null
75,636,832
1
75,636,881
null
0
14
I have a google spreadsheet and I want to count the total number of cells where the value in Row 4 is "unpaid" and the value in row 3 is "walk*". Please see the image below. [](https://i.stack.imgur.com/YxbGN.png) I have tried a few things. Looking at other questions has not been too helpful. I thought that by using...
How to count cells in a row based on its value AND another cell in a different row's value?
CC BY-SA 4.0
null
2023-03-04T15:57:11.260
2023-03-04T16:05:11.073
null
null
1,434,217
[ "google-sheets", "google-sheets-formula" ]
75,636,833
2
null
75,636,532
0
null
You would have to use PREPARE and EXECUTE to make a query with variable number of terms in the WHERE clause, but... [https://dev.mysql.com/doc/mysql-reslimits-excerpt/en/stored-program-restrictions.html](https://dev.mysql.com/doc/mysql-reslimits-excerpt/en/stored-program-restrictions.html) > SQL prepared statements (PR...
null
CC BY-SA 4.0
null
2023-03-04T15:57:22.467
2023-03-04T15:57:22.467
null
null
20,860
null
75,636,835
2
null
75,635,527
0
null
Not sure if this would be faster than using `Get-Content -Tail 1`, but you could create a helper function that uses a [StreamReader](https://learn.microsoft.com/en-us/dotnet/api/system.io.streamreader) to return the last line in the file. Something like ``` function Read-LastLine ([string]$Path) { # construct a Str...
null
CC BY-SA 4.0
null
2023-03-04T15:57:57.057
2023-03-04T22:33:21.707
2023-03-04T22:33:21.707
9,898,643
9,898,643
null
75,636,816
1
null
null
0
5
As the [nautilus-wipe](https://stackoverflow.com/questions/75636085/e-package-nautilus-wipe-has-no-installation-candidate-ubuntu-mate-22-10) tool cannot be installed on MATE 22.10, I tried to configure/build from [source](http://download.tuxfamily.org/wipetools/releases/nautilus-wipe/) script on MATE 22.10 results in t...
No package libnautilus-extension to build ubuntu-wipe from source Ubuntu MATE 22.10
CC BY-SA 4.0
null
2023-03-04T15:54:33.907
2023-03-04T15:54:33.907
null
null
20,914,576
[ "nautilus", "mate" ]
75,636,840
2
null
75,633,207
0
null
Probably this is due to redirect_uri. In your working code, you pass a string but it turns Uri class when you use the SDK. In the source code of the SDK it converts it to string in this line: ``` new KeyValuePair<string?, string?>("redirect_uri", request.RedirectUri.ToString()) ``` And when you do this with a base url...
null
CC BY-SA 4.0
null
2023-03-04T15:58:22.733
2023-03-04T15:58:22.733
null
null
6,440,234
null
75,636,841
2
null
75,636,772
1
null
We could use ``` library(dplyr) # version >= 1.1.0 df1 %>% mutate(response1 = cummax(match(dyad, unique(dyad))-1), response2 = row_number(), .by = c("post")) ``` -output ``` post dyad response1 response2 1 1 111_222 0 1 2 1 111_222 0 2 3 1 111_222 0 ...
null
CC BY-SA 4.0
null
2023-03-04T15:58:23.550
2023-03-04T16:25:20.050
2023-03-04T16:25:20.050
3,732,271
3,732,271
null
75,636,838
2
null
75,634,154
0
null
Add this component to your app.js file : ``` function Auth({ children }) { const router = useRouter(); const { status } = useSession({ required: true, onUnauthenticated() { router.push("/sign-in"); }, }); if (status === "loading") { return <div> Loading... </div> } ...
null
CC BY-SA 4.0
null
2023-03-04T15:58:08.433
2023-03-04T15:58:08.433
null
null
13,488,990
null
75,636,837
1
75,637,384
null
1
37
I'm attempting to perform a migration to split a "questions" table into two tables: "campaigns" and "campaign_actions" where the campaign contains the question title and the campaign action references the question id via a question_id column and then newly created campaign via a campaign_id column. I've tried returning...
Insert into multiple tables from single select
CC BY-SA 4.0
null
2023-03-04T15:58:01.463
2023-03-04T17:33:40.100
2023-03-04T16:11:57.397
3,810,673
3,810,673
[ "postgresql", "sql-returning" ]
75,636,834
1
null
null
0
13
I'm trying to develop an object in html similar to the one in the attached photo, the object should insert it in a div inside an html page, aligned in the center. The hexagon should be a fixed size and shape identical to the one in the image with a gradient border, text inside, and two lines at the ends of the hexagon ...
Create an Hexagon with line left and right in html
CC BY-SA 4.0
null
2023-03-04T15:57:45.177
2023-03-04T16:40:39.103
2023-03-04T16:40:39.103
2,442,099
6,490,024
[ "html", "css", "line", "google-web-designer" ]
75,636,844
1
null
null
0
12
I want to write a Flask API that executes batch workloads from my process to a database. [I can do it in Java](https://www.ibm.com/docs/en/db2-for-zos/12?topic=sql-making-batch-updates-in-jdbc-applications). I am looking for the equivalent of `PreparedStatement.addBatch()`, `PreparedStatement.executeBatch()`, & `Prep...
Does the IBM Db2 Python driver support JDBC batch functions?
CC BY-SA 4.0
null
2023-03-04T15:58:55.560
2023-03-04T15:58:55.560
null
null
11,192,222
[ "python", "jdbc", "db2", "driver" ]
75,636,845
1
null
null
0
13
I have this graphic: [](https://i.stack.imgur.com/9cHez.png) Some segments go outside the outer hexagon or inside the inner hexagon. I would like to clip those segments to the area bounded by these two hexagons. How could I do with R? If all segments belonged to a polygon, I could use a package to compute the intersect...
Clip segments to the area of a polygon
CC BY-SA 4.0
null
2023-03-04T15:58:55.920
2023-03-04T15:58:55.920
null
null
1,100,107
[ "r", "geometry", "polygon", "computational-geometry" ]
75,636,790
1
null
null
-1
10
I have an HTML code and I am able to open it with the web browser. When I copy the HTML email from the browser to Gmail, everything is fine. When I do the same in privateemail, the rendering is not the same and colors are lost (only black and white) Also the size of the content is not preserved. Below is a sample of co...
How to send HTML email with Namecheap Privateemail
CC BY-SA 4.0
null
2023-03-04T15:49:29.697
2023-03-04T16:14:15.930
2023-03-04T16:14:15.930
11,231,350
11,231,350
[ "html", "email", "namecheap" ]
75,636,848
1
null
null
0
8
I am newbie to programming as well as in Django framework, recently I am creating a website that user can chat I found lot of tutorials, like creating Django chat with django-channels every on of them are creating with chatroom, I like to implement 1 to 1 chat. is there any tutorial in Django-postman or does anyone cr...
Does anyone used Django-postman for implementing private chat?
CC BY-SA 4.0
null
2023-03-04T15:59:10.173
2023-03-04T16:05:06.693
2023-03-04T16:05:06.693
17,562,044
9,892,045
[ "python-3.x", "django", "django-models", "django-views", "django-templates" ]
75,636,851
2
null
75,636,003
0
null
I would suggest in command prompt (windows): py -m pip install --upgrade pip py -m pip uninstall matplotlib py -m install matplotlib
null
CC BY-SA 4.0
null
2023-03-04T15:59:46.557
2023-03-04T16:00:47.713
2023-03-04T16:00:47.713
17,116,566
17,116,566
null
75,636,836
2
null
75,636,636
0
null
You could do this in a single event listener like this. Set the display of ALL `.username-card` elements and then selectively change the display of any matching elements. That same mechanism is used to modify the boolean variable within the event listener to indicate success/failure ``` document.querySelector('button.b...
null
CC BY-SA 4.0
null
2023-03-04T15:57:57.160
2023-03-04T15:57:57.160
null
null
3,603,681
null
75,636,853
2
null
75,636,143
0
null
CHANGE IN THE WRAPPER GRADLE FILE WITH THE BELOW CONTENT ``` distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists //CHANGE THIS LINE OF CODE. distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip ```
null
CC BY-SA 4.0
null
2023-03-04T16:00:33.457
2023-03-04T16:00:33.457
null
null
2,285,117
null
75,636,846
1
null
null
-1
11
I am a pretty amateur developer and would like to play around with some Free APIs. I found Nutritionix.com which offers a free API Key. At the directed site [1], it mentions: Up to 2 Active Users for the free API Key - [1] [https://www.nutritionix.com/business/api](https://www.nutritionix.com/business/api) I tried t...
Finding API usage limits - Specs / ToS / etc.? (Specifically Nutritionix.com)
CC BY-SA 4.0
null
2023-03-04T15:59:01.083
2023-03-04T15:59:49.453
2023-03-04T15:59:49.453
21,320,283
21,320,283
[ "api", "rest", "specifications" ]
75,636,842
1
null
null
0
15
I'm getting a weird issue where selenium-webdriver is not respecting the selected version number for the gem and its causing my specs to fail, overall. I can't seem to stop it, even after uninstalling the gems and reinstalling them with the selected versions. I'm running all of this on docker and its hard to track wher...
Gem::LoadError: can't activate selenium-webdriver (>= 4.0.0) RSpec Rails 7
CC BY-SA 4.0
null
2023-03-04T15:58:43.917
2023-03-04T17:07:11.887
null
null
7,234,259
[ "ruby-on-rails", "ruby", "selenium-webdriver" ]
75,636,847
1
null
null
0
24
I'm working on an integration project. I get an error while inserting the entity to the mongodb. The error message return this string below : > ' A few steps before, I'm getting data from any api resources and converting the data to my generic object `<T>` like below line. ``` var data = (JArray)returnDataFromNetwork.D...
Getting an "not configured as an allowed type for this instance of ObjectSerializer" serialization error
CC BY-SA 4.0
null
2023-03-04T15:59:02.900
2023-03-04T17:36:36.420
2023-03-04T17:36:36.420
9,492,730
19,433,603
[ "c#", ".net", "mongodb", "mongodb-.net-driver" ]
75,636,852
1
null
null
0
12
I am now using the manual method to send each request from column A All I need is to send the same request to all cells of the same column, and the url must contain a variable for this cell ``` function aramex() { sheet=SpreadsheetApp.getActiveSpreadsheet().getSheetByName("aramex"); var A2= sheet.getRange('A2').getValu...
I need to send an api request to each cell of column A google apss script
CC BY-SA 4.0
null
2023-03-04T15:59:54.813
2023-03-04T17:45:25.500
null
null
21,332,242
[ "google-apps-script", "google-speech-api" ]
75,636,849
1
75,637,131
null
-1
30
Seeking general thoughts/advise, and links to books/resources are greatly appreciated! I am building a forum where for each topic there are posts, replies to posts, replies to the replies and so on for many levels... much like a commenting section. At the moment, all posts are in the same table, but I wonder if, as the...
Mysql table for forum posts: can size be a problem?
CC BY-SA 4.0
null
2023-03-04T15:59:14.853
2023-03-04T20:27:54.910
2023-03-04T20:27:54.910
5,389,997
19,660,820
[ "mysql", "posts", "forum" ]
75,636,855
1
null
null
-1
4
Deleting a PR button using scripts or java. I have tried to delete it using the Application Layer.
How can we delete a PR [Purchase Requisition] Button in IBM Maximo ? Can we use any kinds of scripts or java to delete it?
CC BY-SA 4.0
null
2023-03-04T16:00:41.607
2023-03-04T16:00:41.607
null
null
21,332,294
[ "maximo", "ibm-maximo-worker-insights" ]
75,636,843
1
null
null
0
9
I'm trying to do a simple fetch API call, but every time I do the call the browser is deleting the headers that I am passing through. The website gives me a 415 for i I am just trying to pass the content type and the secret. I removed some bits of the code for security but essentially here is the code below: Edit: This...
Pass Custom Headers in a Chrome Extension Fetch API Call
CC BY-SA 4.0
null
2023-03-04T15:58:45.620
2023-03-04T17:13:26.450
2023-03-04T17:13:26.450
12,326,007
12,326,007
[ "javascript", "api", "google-chrome-extension" ]
75,636,859
1
null
null
0
23
I found that MDN says dispatchEvent() runs synchronously when [introducing dispatchEvent()](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/dispatchEvent#notes), but haven't found any formal document like MDN or HTML Standard mentions that html click() method runs synchronously or synthetic event runs sync...
Are there any references to why html click() method runs synchronously?
CC BY-SA 4.0
null
2023-03-04T16:00:59.117
2023-03-05T03:46:37.353
2023-03-05T03:46:37.353
21,332,154
21,332,154
[ "javascript", "html", "event-loop", "javascript-events" ]
75,636,861
2
null
59,609,612
0
null
Latest version [3.10.x](https://jssip.net/documentation/3.10.x/api/ua/#method_call) of JsSIP supports setting from and display name in the ua call options itself. `ua.call('sip:bob@example.com', {fromUserName:"<caller id>"});`
null
CC BY-SA 4.0
null
2023-03-04T16:01:38.623
2023-03-04T16:01:38.623
null
null
4,146,454
null
75,636,856
1
null
null
1
16
[screenshot](https://i.stack.imgur.com/95iV7.png) I am creating hybrid framework from scratch, i am trying to run my both test cases, i have install all necessary package, but when i am running my test_login.py file using command pytest -v -s TestCases/test_Login.py it is not showing any error but it is showing "Collec...
It is showing "Collected 0 items" while i am using correct naming convention
CC BY-SA 4.0
null
2023-03-04T16:00:51.447
2023-03-04T19:08:23.957
2023-03-04T19:08:23.957
5,320,906
21,332,271
[ "python", "pycharm", "pytest" ]
75,636,862
2
null
73,866,587
0
null
I had a similar error and in my case i was running a VPN (Proton VPN) in background on my local computer. - - I Manage to resolve the problem by stopping the vpn.
null
CC BY-SA 4.0
null
2023-03-04T16:01:57.520
2023-03-04T16:01:57.520
null
null
13,414,535
null
75,636,863
1
null
null
-4
9
I want to deploy my site on gh-pages. For this I need to switch from BrowerRouter to HashRouter. Nothing seems to work, and I always get homepage displayed. App.js and index.js code in the images. Any help? [enter image description here](https://i.stack.imgur.com/Gv1t9.png) [enter image description here](https://i.stac...
Hash Router only loads Home Page, not other Routed Pages
CC BY-SA 4.0
null
2023-03-04T16:01:59.763
2023-03-04T16:01:59.763
null
null
13,572,874
[ "routes", "hash" ]
75,636,858
2
null
75,636,368
-1
null
maybe [this](https://stackoverflow.com/questions/59121072/is-there-a-way-of-making-the-active-tab-border-highlighted-on-top-instead-of-at)? as you can see, the actual active pane is red, while the "active-but-unfocused" panes are blue. ``` "workbench.colorCustomizations": { "tab.activeBackground": "#ff000...
null
CC BY-SA 4.0
null
2023-03-04T16:00:56.937
2023-03-04T16:00:56.937
null
null
4,935,162
null
75,636,857
1
null
null
-3
35
I can't use JavaScript Bootstrap 5 in my NodeJS Project. I already try to import the JavaScript files, but they don't run to my NodeJS project. I also get errors to "The script from “http://localhost:8000/example.js” was loaded even though its MIME type (“text/plain”) is not a valid JavaScript MIME type." to ReactJS's ...
How can NodeJS use JavaScript Bootstrap 5
CC BY-SA 4.0
null
2023-03-04T16:00:53.437
2023-03-04T19:13:58.097
2023-03-04T19:13:58.097
20,909,862
20,909,862
[ "javascript", "node.js", "create-react-app", "bootstrap-5", "monodevelop" ]
75,636,867
2
null
75,635,538
0
null
below code do the same functionality as `viewLifeCycleOwner.launchWhenResumed` ``` lifecycleScope.launch { lifecycle.repeatOnLifecycle(Lifecycle.State.RESUMED) { // do your work here } } ```
null
CC BY-SA 4.0
null
2023-03-04T16:02:28.147
2023-03-04T16:02:28.147
null
null
3,553,815
null
75,636,864
1
null
null
0
11
I am trying to run this linear optimization problem but I am getting the Intlinprog stopped because the root LP problem is unbounded error and I cannot figure out why. ` ``` f = [-22; -14; -16; -19; -15; -10; -15; -12; -10; -13; -10; -7; -10; -11; -13; -13; -21; -13; -18; -15; -11; -11; -19; -9; -17; -13; -10]; intco...
How can I fix this Matlab IntLinProg Unbounded Error?
CC BY-SA 4.0
null
2023-03-04T16:02:03.000
2023-03-04T16:07:46.533
2023-03-04T16:07:46.533
16,654,445
16,654,445
[ "matlab", "linear-programming", "mixed-integer-programming" ]
75,636,860
1
null
null
0
36
I am currently trying to create a simple useForm Hook in React and am currently working on setting the Data dynamically for a State which is stored inside a useState Hook. Setting the Data is working fine now but I also want to be able to save it as an Object based on the provided Key. These two Options should work but...
React useState set Value based on provided Key dynamically
CC BY-SA 4.0
null
2023-03-04T16:01:04.573
2023-03-04T17:02:40.350
null
null
11,719,726
[ "reactjs", "typescript" ]
75,636,866
1
null
null
-2
16
I encounter a difficulty on my discord robot which allows me to start a python script informing me of the news. Here is the error message I am encountering: ``` Shard ID None heartbeat blocked for more than 10 seconds ``` The purpose of my command of my discord.py script is to launch a python file remotely when I am n...
why discord.py error shard ID None heartbeat?
CC BY-SA 4.0
null
2023-03-04T16:02:14.487
2023-03-04T16:02:14.487
null
null
20,613,500
[ "python", "discord.py" ]
75,636,868
1
null
null
0
5
It would be great to have the ability to decouple the security layer from Jhipster. This could be done from the wizzard command "jhispter" or from the web [https://start.jhipster.tech/](https://start.jhipster.tech/) There are scenarios where security (authentication and authorization) is delegated to other systems (ser...
How to decouple the security layer of Jhipster?
CC BY-SA 4.0
null
2023-03-04T16:02:44.793
2023-03-04T16:03:25.347
2023-03-04T16:03:25.347
8,946,259
8,946,259
[ "authentication", "security", "jhipster" ]
75,636,870
1
null
null
0
15
I have this code in this code there are many repeating of Coalesce function I want to it in DO loop ``` proc sql; create table Policy_details as select t1.* , COALESCE(t2.NOOF_MEMBERS_INSURED, t3.NOOF_MEMBERS_INSURED) as NOOF_MEMBERS_INSURED , COALESCE(t2.Txt_Product_T...
Do Loop for Coalesce SAS SQL for TWO left join
CC BY-SA 4.0
null
2023-03-04T16:02:50.087
2023-03-04T17:16:44.223
2023-03-04T17:16:44.223
4,965,549
21,332,217
[ "sas" ]
75,636,872
2
null
52,858,525
0
null
I needed the same thing so I built a tool called [Refitter](https://github.com/christianhelle/refitter) that generates the interface and contracts from an OpenAPI specifications file. The OpenAPI specifications file can be generated by enabling Swagger and SwaggerUI on the ASP.NET Core project Because I'm too lazy to l...
null
CC BY-SA 4.0
null
2023-03-04T16:03:07.750
2023-03-04T16:03:07.750
null
null
575,374
null
75,636,873
1
null
null
-2
36
I can't sort 1 column in ascending order, can you help? [](https://i.stack.imgur.com/S6znd.png) ``` def sort(): for i in range(n-1): for j in range(n-i-1): if j==0: if A[i][j]>A[i+1][j]: w=A[i][j] A[i][j]=A[i+1][j] A[i+1][j]=w for i in range(n): fo...
How to sort 1 column in the python matrix in ascending order by bubble?
CC BY-SA 4.0
null
2023-03-04T16:03:10.253
2023-03-04T18:29:08.740
2023-03-04T16:05:53.267
10,760,768
21,273,527
[ "python", "sorting", "matrix" ]
75,636,865
1
null
null
0
26
How display circleMarker data using several colors according to magnitude value. For example this map ([https://cartonumerique.blogspot.com/2023/02/seismes-en-Turquie-et-Syrie.html](https://cartonumerique.blogspot.com/2023/02/seismes-en-Turquie-et-Syrie.html))? Here is my map function and my map script. ``` #views.py d...
How display circleMarker data using several colors?
CC BY-SA 4.0
null
2023-03-04T16:02:09.240
2023-03-04T20:57:46.020
2023-03-04T17:01:26.310
16,342,613
16,342,613
[ "javascript", "django", "dictionary", "colors", "leaflet" ]
75,636,877
2
null
75,615,426
0
null
You can override the `.save()` method ``` from django.db import IntegrityError class PostModel(models.Model): post = models.ForeignKey('self', on_delete=models.CASCADE, related_name='posts') def save(self): if post and post.post_id: raise IntegrityError return super().save() ```
null
CC BY-SA 4.0
null
2023-03-04T16:03:31.733
2023-03-04T16:03:31.733
null
null
20,263,044
null
75,636,875
2
null
75,632,858
1
null
Here is one way to do it with Pandas [indexing](https://pandas.pydata.org/docs/user_guide/advanced.html) and [concat](https://pandas.pydata.org/docs/reference/api/pandas.concat.html): ``` dfs = [] for col in ("Yes", "Maybe", "No"): tmp = ( pivoted_df.loc[:"Vans", [("count", col), ("count", "N")]] .r...
null
CC BY-SA 4.0
null
2023-03-04T16:03:25.663
2023-03-04T16:03:25.663
null
null
11,246,056
null
75,636,869
1
75,636,900
null
1
27
I have the following example data where there are daily observations for columns X, Y, Z, and C: ``` structure(list(ID = c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3), day = c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,...
Collapsing longitudinal data into time periods by identifier with dplyr
CC BY-SA 4.0
null
2023-03-04T16:02:45.077
2023-03-04T16:32:54.697
null
null
6,709,985
[ "r", "dplyr", "longitudinal" ]
75,636,881
2
null
75,636,832
2
null
Can you try: ``` =countifs(A4:G4,"Unpaid",A3:G3,"Walk*") ```
null
CC BY-SA 4.0
null
2023-03-04T16:05:11.073
2023-03-04T16:05:11.073
null
null
5,479,575
null
75,636,878
1
null
null
-2
11
Over the past 2 days I have tried to get a NEMA 17 motor to spin using the Arduino Uno and drv8825 stepper motor driver with no success with these two wiring examples: [[enter image description here](https://i.stack.imgur.com/OeYCx.jpg)]([https://i.stack.imgur.com/tLYnO.png](https://i.stack.imgur.com/tLYnO.png))[enter...
How to get a nema 17 stepper motor spinning with an arduino uno and drv8825 stepper driver
CC BY-SA 4.0
null
2023-03-04T16:04:07.540
2023-03-04T16:04:07.540
null
null
21,331,594
[ "arduino-uno", "stepper" ]
75,636,874
2
null
75,636,830
0
null
Try the following: ``` "use strict"; const cityName = document.querySelector(".city-name"); const date = document.querySelector(".date"); const citiesContainer = document.querySelector(".container"); let cityTime = document.querySelector(".current-time"); const mainCities = [ "Europe/Paris", "America/New_York", ...
null
CC BY-SA 4.0
null
2023-03-04T16:03:12.617
2023-03-04T16:03:12.617
null
null
14,177,060
null
75,636,871
1
null
null
0
11
I get this error only when adding error matrix to the formula: Call: C5.0.default(x = heart_train, y = heart_train_results, trials = 1, costs = error_cost) ## C5.0 [Release 2.07 GPL Edition] Sat Mar 4 17:43:23 2023 Class specified by attribute `outcome' Read 820 cases (14 attributes) from undefined.data *** line 1 o...
decision tree fail when adding error cost in c5.0
CC BY-SA 4.0
null
2023-03-04T16:02:50.840
2023-03-04T19:42:17.687
2023-03-04T19:42:17.687
286,934
7,862,953
[ "r", "decision-tree", "c5.0" ]
75,636,882
1
null
null
0
26
Basically I always try my best to avoid comments whenever possible. I watched many videos from Uncle Bob and regarding the things he wants to express, there are many things I agree to. He once mentioned that ideally speaking, whenever we tend to use comments to give more information on why we do things the way we are d...
Are there good naming conventions to get around long variable names, without having to rely on comments for better readability?
CC BY-SA 4.0
null
2023-03-04T16:05:51.307
2023-03-04T16:27:57.460
null
null
21,332,058
[ "python", "coding-style", "naming-conventions", "readability" ]
75,636,886
2
null
75,635,857
2
null
When you make a CORS request (even a simple request like `$.get`) from a site on the public internet to a site in a "more private" address space like 127.0.0.1, a preflight request with `Access-Control-Request-Private-Network: true` is sent first, see [this blog](https://developer.chrome.com/blog/private-network-access...
null
CC BY-SA 4.0
null
2023-03-04T16:06:22.867
2023-03-04T16:06:22.867
null
null
16,462,950
null
75,636,883
1
75,637,727
null
1
35
I webscraped a site which has an url such as this: [https://takipcimerkezi.net/services](https://takipcimerkezi.net/services) I tried to get every information of the table except "aciklama" This is my code : ``` from bs4 import BeautifulSoup import requests import pandas as pd import numpy as np url='https://takipcime...
How to scrape the categories belonging to the datasets with BeautifulSoup?
CC BY-SA 4.0
null
2023-03-04T16:05:52.957
2023-03-04T20:24:30.380
2023-03-04T18:34:40.787
14,460,824
16,260,136
[ "python", "html", "dataframe", "web-scraping", "beautifulsoup" ]
75,636,839
1
null
null
1
17
I am relatively new to Python, and I am following a tutorial([https://towardsdatascience.com/named-entity-recognition-with-bert-in-pytorch-a454405e0b6a](https://towardsdatascience.com/named-entity-recognition-with-bert-in-pytorch-a454405e0b6a)) regarding bert training for a task that I need. The tutorial is relatively ...
PyTorch, Bert model: optimizer zero_grad() error
CC BY-SA 4.0
null
2023-03-04T15:58:14.693
2023-03-04T17:34:53.817
2023-03-04T17:34:53.817
1,869,232
1,869,232
[ "python", "tensorflow", "pytorch", "bert-language-model", "named-entity-recognition" ]
75,636,880
1
null
null
0
15
I want to find first and last time for each shift of the day: | Shift | Start Hour | End Hour | | ----- | ---------- | -------- | | Day Shift | 7:00 | 15:00 | | Day Shift | 15:00 | 22:00 | | Night Shift | 23:00 | 02:00 | | Night Shift | 02:00 | 06:00 | | Shift | First Hour | Last Hour | | ----- | ---------- |...
How to find minimum first and last hour for each shift in Excel
CC BY-SA 4.0
null
2023-03-04T16:05:01.990
2023-03-04T18:14:15.973
null
null
21,266,102
[ "excel", "hour" ]
75,636,889
1
null
null
-1
22
I am building iOS and MacOS app. Both share Swift code base. Seems like Mapbox does not support MacOS. So currently I am using Mapbox GL JS as a web view. What I found is if I use my styles in Mapbox Ios Preview App, navigations are super smooth and tiles load very fast. But in Safari or Chrome it is not. I assume ther...
Is there a way to use IOS API to get Mac os version of my App working?
CC BY-SA 4.0
null
2023-03-04T16:06:48.660
2023-03-05T05:52:20.713
2023-03-04T16:10:31.707
162,698
3,147,156
[ "swift", "mapbox", "mapbox-gl", "mac-catalyst", "mapbox-ios" ]
75,636,885
1
null
null
-1
9
Firstly, this is quite an abstract question so apologies if that’s unhelpful. I run a small data analytics site providing insights and data on a sport and want to progress to creating some kind of odds for winning an event. I have a fairly large trove of data on past performance and information on the “now” but I’m str...
How to create a probabilistic model for sports odds
CC BY-SA 4.0
null
2023-03-04T16:06:20.217
2023-03-04T16:06:20.217
null
null
20,278,392
[ "statistics", "probability" ]