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,629,358 | 1 | null | null | 0 | 6 | ```
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content.startswith('!drop'):
drop_results = get_drop_results()
if drop_results:
await message.channel.send(drop_results)
else:
await message.channel.send(... | No response of my commands from Bungie API | CC BY-SA 4.0 | null | 2023-03-03T16:03:55.220 | 2023-03-03T16:03:55.220 | null | null | 18,702,971 | [
"python",
"api"
] |
75,629,366 | 1 | null | null | 0 | 21 | I use Symfony. I have custom type for doctrine, which extends from Jsor\Doctrine\PostGIS\Types\GeometryType (jsor/doctrine-postgis library):
```
use Jsor\Doctrine\PostGIS\Types\GeometryType;
class PointType extends GeometryType
{
public const POINT = 'point_type';
public function convertToPHPValue($value, Abs... | The type of a spatial column cannot be changed (Requested changing type from "geometry" to "geometry" for column "center_location" in table "parking") | CC BY-SA 4.0 | null | 2023-03-03T16:04:40.470 | 2023-03-03T16:04:40.470 | null | null | 18,263,440 | [
"php",
"postgresql",
"symfony",
"doctrine",
"postgis"
] |
75,629,363 | 1 | null | null | 0 | 12 | I have a AdnoisJS app running in docker container on AWS EC2 instance. We use worker_thread to composite images. I found it seems not releasing memory after worker_thread finished. I tried same request on my local computer and it can run without issue. I also run at local within docker and it shows similar to the one r... | AdonisJS in docker container seems not releasing memory used from worker_thread | CC BY-SA 4.0 | null | 2023-03-03T16:04:19.080 | 2023-03-04T00:19:38.810 | 2023-03-04T00:19:38.810 | 10,057,340 | 10,057,340 | [
"node.js",
"docker",
"memory",
"adonis.js",
"worker-thread"
] |
75,629,368 | 1 | null | null | 0 | 18 | I have a function that returns a sample of Brownian motion as a result which is in form of data.frame odd columns are the times of each sample and even columns are the data corresponding to the previous time column.
I also have a function that graphs the result of a single motion(two consecutive columns) I want to add ... | adding graphs to en existing graph using ggplot | CC BY-SA 4.0 | null | 2023-03-03T16:04:53.560 | 2023-03-03T16:10:17.887 | 2023-03-03T16:10:17.887 | 12,993,861 | 11,853,798 | [
"r",
"ggplot2"
] |
75,629,372 | 2 | null | 75,628,304 | 1 | null | It would be helpful to see more of your code, but maybe you could record it as a histogram - like this:
```
methodDuration = Histogram.build()
.name("data_processing_duration")
.register(meterRegistry);
Histogram.Timer timer = methodDuration.startTimer();
timer.observeDuration();
```
| null | CC BY-SA 4.0 | null | 2023-03-03T16:05:15.037 | 2023-03-03T16:05:53.157 | 2023-03-03T16:05:53.157 | 21,229,593 | 21,229,593 | null |
75,629,369 | 2 | null | 75,628,795 | 0 | null | I don't know if it will be useful, but this is a pretty straight-forward algorithm I've just coded. It is not math-based, you will definitely find counter-examples that won't work I'm afraid.
```
private static void GetPeeks(List<int> points)
{
var acc = ForwardIncrease(points);
var dec = BackwardIncrease(point... | null | CC BY-SA 4.0 | null | 2023-03-03T16:05:00.920 | 2023-03-03T16:27:14.500 | 2023-03-03T16:27:14.500 | 10,753,712 | 10,753,712 | null |
75,629,373 | 2 | null | 75,392,887 | 0 | null | You say that your project is referencing itself. Why do you have an explicit reference in the project to itself?
Remove this, and try again.
If that doesn't resolve it: where is the reference to `Marel.Lairage.Blazor` in your project reference?
I would expect:
```
<ItemGroup>
<ProjectReference Include="..\Marel.Mod... | null | CC BY-SA 4.0 | null | 2023-03-03T16:05:19.887 | 2023-03-03T16:05:19.887 | null | null | 18,243,078 | null |
75,629,349 | 1 | null | null | 0 | 7 | I used to generate sources from WSDL/bindings, using jaxws-maven-plugin with spring-boot 2.3.7 and java 11. Now, after upgrading to spring-boot 3.0 and java 17, code generation fails, because my bindings files are ignored with error message
`bindings.xml: not a XML-WS- or XML-B-binding file`
I've seen this error being ... | jaxws 4 / java 17: it is not a jaxws or a jaxb binding file | CC BY-SA 4.0 | null | 2023-03-03T16:02:58.160 | 2023-03-03T16:02:58.160 | null | null | 6,621,774 | [
"java",
"wsdl",
"maven-plugin",
"wsimport"
] |
75,629,370 | 1 | null | null | 0 | 21 | I want to connect to a DB in my localhost. The idea is to select a DB and then insert a new column.
When I attempt to connect to the database I receive the [error](https://i.stack.imgur.com/73h9l.png) below:
```
PS C:\Users\Tino> & C:/Python310/python.exe c:/Users/Tino/Desktop/rub.py
Traceback (most recent call last):... | Sqlalchemy connecting to local DB returns "ArgumentError: mapping or list expected for parameters" | CC BY-SA 4.0 | null | 2023-03-03T16:05:05.193 | 2023-03-04T08:52:01.207 | 2023-03-04T08:52:01.207 | 13,664,137 | 15,357,293 | [
"python",
"pandas",
"sqlalchemy"
] |
75,629,377 | 2 | null | 16,167,809 | 0 | null | ```
@media only screen and (max-width: 1200px) and (min-width: 768px) {
min-height: -webkit-fill-available;
}
```
Is the best way, I think.
| null | CC BY-SA 4.0 | null | 2023-03-03T16:05:50.673 | 2023-03-03T16:11:07.123 | 2023-03-03T16:11:07.123 | 4,818,326 | 4,818,326 | null |
75,629,371 | 1 | null | null | -1 | 27 | ```
let drawWalls = () => {
for (let i = 0; i < map.length; i++) {
for (let j = 0; j < map[0].length; j++) {
if (map[i][j] == 1) {
createRect(
j * oneBlockSize,
i * oneBlockSize,
oneBlockSize,
oneBlockSize,
"#342DCA"... | PACMAN LOOP, need to explain those for loops | CC BY-SA 4.0 | null | 2023-03-03T16:05:14.677 | 2023-03-03T16:05:14.677 | null | null | 16,457,542 | [
"javascript",
"pacman"
] |
75,629,375 | 1 | null | null | 0 | 11 | I see in a path exploration on a site I'm working on that click_links, scroll and other page-level events are triggered in the same step as page_view, immediately after session_start. If the page_view event is triggered as soon as a page begins loading ([https://support.google.com/tagmanager/answer/7679319?hl=en#:~:tex... | How can Google Analytics page-level events fire in the same path exploration step as the page_view event? | CC BY-SA 4.0 | null | 2023-03-03T16:05:38.227 | 2023-03-03T16:05:38.227 | null | null | 10,534,674 | [
"google-analytics",
"google-analytics-4"
] |
75,629,374 | 1 | null | null | 0 | 13 | I am running tekton-pipeline v.0.45.0 in a Kubernetes cluster v1.26.2.
When I run this task :
```
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: hello
spec:
steps:
- name: echo
image: ubuntu
script: |
echo "hello"
```
-> it's working like a charm.
But when I remove the instruction :
`... | Failed to create task run pod ... : translating TaskSpec to Pod: Get "https://index.docker.io/v2/": dial tcp 34.205.13.154:443: i/o timeout | CC BY-SA 4.0 | null | 2023-03-03T16:05:27.320 | 2023-03-03T19:38:14.160 | 2023-03-03T16:11:49.993 | 6,089,298 | 6,089,298 | [
"kubernetes",
"registry",
"tekton",
"kaniko",
"tekton-pipelines"
] |
75,629,378 | 1 | null | null | 2 | 36 | This may sound like a duplicate question but I have spent the last hour looking for the answer and can't apply the other similar sounding questions' solutions to this problem.
I have a string of text and want to extract the text from between the second `_` and the `.`
The furthest I have got is extracting the text from... | Get text between two symbols in R | CC BY-SA 4.0 | null | 2023-03-03T16:05:56.207 | 2023-03-03T17:56:23.473 | null | null | 10,107,805 | [
"r"
] |
75,629,380 | 1 | null | null | 0 | 5 | I keep Having a Warning Error When Loading an IdaPython *.idc Script file and i Don't know what is what
After Loading the Script Warning pops up With the Following :
```
F:\REDACTED\DynamoRIO-Windows-9.90.19403\bin32\REDACTED_-_dll.idc: F:\REDACTED\DynamoRIO-Windows-9.90.19403\bin32\REDACTED_-_dll.idc,99: Variable 'tol... | how to Resolve IDAPython Variable Warning Error | CC BY-SA 4.0 | null | 2023-03-03T16:06:19.597 | 2023-03-03T16:06:19.597 | null | null | 15,217,548 | [
"windows",
"dll",
"reverse-engineering",
"ida"
] |
75,629,379 | 2 | null | 70,152,045 | 0 | null | I faced this exception too. I modified the sagix's answer to more convenient way for me. Check it out below. Don't forget use a childFragmentManager
```
@Composable
fun ReusableFragmentComponent(
screen: SupportAppScreen,
fragmentManager: FragmentManager,
modifier: Modifier = Modifier
) {
val containerI... | null | CC BY-SA 4.0 | null | 2023-03-03T16:06:14.203 | 2023-03-03T16:06:14.203 | null | null | 9,668,515 | null |
75,629,383 | 1 | 75,629,472 | null | 0 | 13 | I have:
```
df = data.frame(col1 = c("A","b","B","C","c"))
```
I want:
[](https://i.stack.imgur.com/Y8ThD.png)
But when I try using arrange and tidyverse, I get:
```
> df %>% arrange(col1)
col1
1 A
2 B
3 C
4 b
5 c
```
| arrange column alphabetically tidyverse R | CC BY-SA 4.0 | null | 2023-03-03T16:06:39.960 | 2023-03-03T16:26:55.793 | null | null | 2,123,706 | [
"tidyverse"
] |
75,629,385 | 1 | null | null | 0 | 26 | I am trying to make a dummy character for a project, & I don't know how give it multiple values (i.e. hp, atk, def, etc.) [Sorry if this is an obvious answer, I'm still new at this.]
I've tried using case like this, but actually thinking about it for a bit, I realized this could give me lots of problems when I try to a... | How to make a 'object' with multiple variables/values in it in a bash script | CC BY-SA 4.0 | null | 2023-03-03T16:06:52.940 | 2023-03-03T16:31:19.363 | 2023-03-03T16:09:15.903 | 21,327,170 | 21,327,170 | [
"bash"
] |
75,629,367 | 1 | 75,629,421 | null | 1 | 26 | I'm trying to `project` a column, but the column headings don't have a consistent casing. How can I merge these into a single column? I tried using `tolower` in several places,
(example)
`tolower(parse_json(tostring(parse_json(Properties).requestbody))).Properties.PrincipalType`
But receiving an error like
`Path expres... | How do I make operator not case-sensitive on column names? | CC BY-SA 4.0 | null | 2023-03-03T16:04:52.483 | 2023-03-03T16:10:47.517 | null | null | 18,550,433 | [
"azure",
"kql"
] |
75,629,386 | 2 | null | 32,414,308 | 0 | null | You can add a `key` prop to your component with `start_time` as value. React will think of the component as a new, separate one each time you pass a different key.
In your example:
```
render: ->
React.DOM.div
className: "modal-body"
React.DOM.form null,
React.createElement FormLabelInputField,
... | null | CC BY-SA 4.0 | null | 2023-03-03T16:06:53.763 | 2023-03-03T16:06:53.763 | null | null | 2,139,452 | null |
75,629,388 | 1 | null | null | 0 | 37 | I have a few long running processes (FastAPI, Dagster, etc...) and it's not clear to me how I should handle updates.
I can just run `pip install {package} --upgrade`, and run it until it eventually works.
But is this the best way to handle it?
| How to update a Python library that is currently in use? | CC BY-SA 4.0 | null | 2023-03-03T16:07:25.200 | 2023-03-03T16:33:30.977 | null | null | 17,194,313 | [
"python"
] |
75,629,390 | 2 | null | 57,549,727 | 0 | null | For anyone stumble upon this. I have found that have to add `app` directory in path like this:
`~/app/images/yourimage.png`
| null | CC BY-SA 4.0 | null | 2023-03-03T16:07:33.670 | 2023-03-03T16:07:33.670 | null | null | 4,578,765 | null |
75,629,384 | 1 | null | null | 0 | 15 | I have a react native app, I am trying to use the package `noble-secp256k1`. I need this in order to generate a key pair (private and public key) `secp.getPublicKey(secp.utils.randomPrivateKey())`, however, just by having this package installed, when I run `react-native run-ios` I am getting this error and the app cras... | TypeError: Cannot convert BigInt to number, js engine: hermes - noble-secp256k1 package | CC BY-SA 4.0 | null | 2023-03-03T16:06:40.713 | 2023-03-04T15:33:29.943 | 2023-03-04T15:33:29.943 | 238,704 | 12,818,666 | [
"javascript",
"reactjs",
"react-native",
"bigint"
] |
75,629,393 | 2 | null | 75,629,164 | 0 | null | try
```
each Date.DayOfWeek(Record.Field(_,Table.ColumnNames(#"Expanded Data"){1}), Day.Monday)
```
| null | CC BY-SA 4.0 | null | 2023-03-03T16:07:50.817 | 2023-03-03T16:07:50.817 | null | null | 9,264,230 | null |
75,629,396 | 2 | null | 75,408,889 | 0 | null | Just in case someone has the same question: As expected changing the learning rate had no empirical effects with lightgbm in random forest mode.
| null | CC BY-SA 4.0 | null | 2023-03-03T16:08:10.693 | 2023-03-03T16:08:10.693 | null | null | 4,875,428 | null |
75,629,382 | 1 | null | null | 0 | 33 | I have multiple dropdowns and its will drop all element when I click one. I try to use for loop , but It doesn't work. The second loop not working// when I change [i] -> [j] it's work, but it drop all
Below is just 1 of many "route-option" div
```
var chooseBtn = document.getElementsByClassName("route-choose");
for (va... | Error:Drop down all elements when click on one element with same class | CC BY-SA 4.0 | null | 2023-03-03T16:06:33.060 | 2023-03-03T17:05:18.107 | 2023-03-03T17:05:18.107 | 2,181,514 | 18,892,657 | [
"javascript",
"html"
] |
75,629,397 | 2 | null | 75,435,666 | 0 | null | You have a couple problem here, one being the long load time of your code. The other problem is that you are waiting for everything to load before you display your splash screen. Instead of using Flutter to display the splash screen, you should take advantage of the native splash screens that display the Flutter eng... | null | CC BY-SA 4.0 | null | 2023-03-03T16:08:13.957 | 2023-03-03T16:08:13.957 | null | null | 8,371,825 | null |
75,629,389 | 2 | null | 75,615,685 | 0 | null | cross join should work. It seemed to work when I tried it.
```
declare @tmpData as TABLE (
BENE VARCHAR(10),
ALERT VARCHAR(10),
CUSTOMER VARCHAR(10),
TXN VARCHAR(10)
)
INSERT @tmpData
VALUES
('B1', 'A1', 'C1', 'T1'),
('B1', 'A2', 'C2', 'T2'),
('B1', 'A3', 'C3', 'T3'),
('B1', 'A4', 'C4',... | null | CC BY-SA 4.0 | null | 2023-03-03T16:07:32.460 | 2023-03-03T16:07:32.460 | null | null | 4,001,177 | null |
75,629,387 | 1 | null | null | 0 | 28 | I have `UILabel` which I am showing and hiding on `tapGesture`.
I have created label programatically and set constraint programatically only.
by default UILabel is visible with `heightConstraint = 230`
on tapGesture method I am making `heightConstraint = 0` and its hiding label correctly.
Again on tapGesture I need to ... | Show Hide for UILabel over constraint not working as expected for height constraint | CC BY-SA 4.0 | null | 2023-03-03T16:07:17.497 | 2023-03-03T19:59:19.923 | null | null | 1,917,822 | [
"ios",
"swift",
"xcode",
"constraints",
"uilabel"
] |
75,629,398 | 2 | null | 75,628,701 | 0 | null | This would have been a comment but I am not able to comment. That code works for me and scrolls to the element I want on a different page. I would say to check the element before it to be sure it doesn't have the exact `location.hash` value with the element you are targetting.
Finally, you can try adding scroll-padding... | null | CC BY-SA 4.0 | null | 2023-03-03T16:08:23.550 | 2023-03-03T16:08:23.550 | null | null | 12,864,642 | null |
75,629,391 | 1 | null | null | 0 | 7 | I have 2 artifacts I want to push.
first one is a tar ball called myTarBall-1.1.tar.gz
second one is a jar file myJarFile-1.1.jar
I want to push myTarBall-1.1.tar.gz into nexus to the following location com.sample.location.abc.
I then want to push myJarFile-1.1.jar into nexus to the following location com.sample.locati... | How to publish multiple artifacts with different group using gradle? | CC BY-SA 4.0 | null | 2023-03-03T16:07:37.343 | 2023-03-03T16:07:37.343 | null | null | 12,143,700 | [
"gradle"
] |
75,629,394 | 1 | null | null | 0 | 25 | I've built an ensemble model with a majority voting approach. I used pretrained models to build the model.
code snippet:
```
from sklearn.metrics import classification_report, confusion_matrix
# Make predictions using the ensemble method with max voting
ensemble_predictions = [model1.predict(X_test), model2.predict(X_... | Why can't I show confusion matrix of ensemble model majority voting approach? | CC BY-SA 4.0 | null | 2023-03-03T16:07:57.550 | 2023-03-03T16:07:57.550 | null | null | 13,359,498 | [
"python",
"tensorflow",
"keras",
"deep-learning"
] |
75,629,381 | 1 | null | null | 0 | 29 | I have a little problem. Im trying to make economy system in discord bot. I programmed a code to add money comannd.
Im using mysql. When i try to SELECT from database it works. But when I try to use db.query for UPDATE it just dont work. It looks like the command is successfully done, it even dont give any feedback for... | db.query not working and dont give any response | CC BY-SA 4.0 | null | 2023-03-03T16:06:25.090 | 2023-03-03T16:21:45.680 | 2023-03-03T16:21:45.680 | 1,491,895 | 20,548,261 | [
"javascript",
"mysql",
"sql",
"database"
] |
75,629,407 | 2 | null | 75,629,304 | 1 | null | You can rename the file using the mv command to remove the .txt extension
```
cd ~
cp .zshrc backup_zshrc
mv .zshrc.txt .zshrc
```
overwrite it if it already exists
| null | CC BY-SA 4.0 | null | 2023-03-03T16:09:06.870 | 2023-03-03T16:33:15.437 | 2023-03-03T16:33:15.437 | 7,838,942 | 7,838,942 | null |
75,629,402 | 1 | null | null | 0 | 7 | The news application I have developed is facing some problems and I am unsure if there is something I can do on my end or if it a server-side error
[](https://i.stack.imgur.com/nO6wH.png)
The application is not displaying any images and all of the news is somehow outdated, I have look through the network logs and all o... | Network Log interceptor showing null for many components of the Response | CC BY-SA 4.0 | null | 2023-03-03T16:08:40.990 | 2023-03-03T16:08:40.990 | null | null | 18,427,114 | [
"kotlin",
"retrofit"
] |
75,629,401 | 1 | null | null | 1 | 8 | In the project I use Wicket 9.12.0.
If I use a ErrorPage without parameters:
`"getApplicationSettings().setInternalErrorPage(ErrorPage.class);"`
Then with the exception everything works fine.
If I use the ErrorPage with parameters via IRequestCycleListener:
`"getRequestCycleListeners().add(new IRequestCycleListener() {... | Redirecting to an ErrorPage via IRequestCycleListener Wicket | CC BY-SA 4.0 | null | 2023-03-03T16:08:40.063 | 2023-03-03T16:08:40.063 | null | null | 19,442,868 | [
"wicket",
"custom-error-pages"
] |
75,629,399 | 1 | null | null | -1 | 19 | [enter image description here](https://i.stack.imgur.com/pUlK7.png)
Help me pls with debug.
I am try to debug but the result was error like in picture.
But my i can connect the device from android studio to vs code and it works and start the little phone.
After that i clicked on debug(F5). but the vs code returning me ... | Flutter start debuging with android studio | CC BY-SA 4.0 | null | 2023-03-03T16:08:32.547 | 2023-03-03T16:08:32.547 | null | null | 19,586,852 | [
"flutter",
"dart",
"debugging",
"sdk"
] |
75,629,404 | 2 | null | 75,629,290 | 1 | null | If I were you, I would transform my backup lookup dict to an inverted_index structure.
This means that I would map the country names to regions, instead of the other way around, and then I would simply apply the map to the nans only. This would be much faster than the need to check all regions and then check if the cou... | null | CC BY-SA 4.0 | null | 2023-03-03T16:08:54.237 | 2023-03-03T16:08:54.237 | null | null | 11,196,494 | null |
75,629,410 | 2 | null | 75,618,885 | 0 | null | For anyone that comes across this, this phone has padding on the Y channel.
For the example of the question the data between 640 (width requested) and 1024(actual y row stride) is all zeros.
(Kind of) Related question [here](https://stackoverflow.com/questions/36212904/yuv-420-888-interpretation-on-samsung-galaxy-s7-ca... | null | CC BY-SA 4.0 | null | 2023-03-03T16:09:23.047 | 2023-03-03T16:09:23.047 | null | null | 4,128,793 | null |
75,629,403 | 1 | null | null | -1 | 7 | [ Apologies in advance - I am not an expert (or even a user really) in Excel, so my terminology may be incorrect ]
Our VB.NET app currently opens up Excel Spreadsheets, changes their connection string on the fly so that they point to the correct database for the correct user etc and then displays the sheets, which Exce... | In code, I'm trying to change the credentials of an Excel data source that is using an oData feed and Power Query; but am baffled? | CC BY-SA 4.0 | null | 2023-03-03T16:08:50.877 | 2023-03-03T16:08:50.877 | null | null | 737,719 | [
"excel",
"vba",
"odata",
"datasource",
"credentials"
] |
75,629,412 | 2 | null | 61,147,270 | 0 | null | I got same error while trying to create new docker instance
I fixed by deleting old mongo data files
rm -rf /var/lib/mongodb
after this, try running the docker.
| null | CC BY-SA 4.0 | null | 2023-03-03T16:09:27.183 | 2023-03-03T16:09:27.183 | null | null | 4,278,305 | null |
75,629,414 | 1 | null | null | -2 | 28 | When I open my [page](https://i.stack.imgur.com/tEbgK.png), there are suddenly such shifts on the images. Does anyone know why and can help me out? I checked the css files and looked at the links but couldn't find anything.
| I couldn't understand why the page content changed | CC BY-SA 4.0 | null | 2023-03-03T16:09:50.913 | 2023-03-04T05:12:47.217 | 2023-03-04T05:12:47.217 | 8,008,487 | 20,807,374 | [
"html",
"css"
] |
75,629,408 | 2 | null | 75,595,346 | 1 | null | The (default) exposes the `Service` on a [cluster-internal IP](https://blog.ovhcloud.com/getting-external-traffic-into-kubernetes-clusterip-nodeport-loadbalancer-and-ingress/#:%7E:text=in%20production%20environments.-,Using%20Kubernetes%20proxy%20and%C2%A0ClusterIP,-The%20default%20Kubernetes). This spec type makes th... | null | CC BY-SA 4.0 | null | 2023-03-03T16:09:13.133 | 2023-03-03T16:09:13.133 | null | null | 19,430,638 | null |
75,629,411 | 1 | null | null | 0 | 7 | I want to make a lot of little squares in space, but I get an error. I use fractional coordinates
How can I do what I need to do?
```
im = Image.open("circle-black.png")
pixels = im.load()
width, height = im.size
IMG_SIZE = width
cube_a = round(50 / width, 2)
colors = im.getcolors()
colors_size = len(colors)
x0 = 0
... | make cubes with stl, use factional coordinates | CC BY-SA 4.0 | null | 2023-03-03T16:09:25.577 | 2023-03-03T16:09:25.577 | null | null | 14,291,954 | [
"numpy",
"plot",
"3d"
] |
75,629,419 | 2 | null | 75,628,424 | 0 | null | This is way over the top when it comes to scenekit. I recommend, do not use models bigger than 10MB in size. Make your textures 1024x1024 (in rare case 2048 would be okay too). Also keep in mind, how many objects you want to display at the same time. Try to hold your memory usage below 500 MB, if possible. This should ... | null | CC BY-SA 4.0 | null | 2023-03-03T16:10:44.370 | 2023-03-03T16:10:44.370 | null | null | 7,839,658 | null |
75,629,413 | 1 | 75,631,527 | null | 1 | 53 | I have 3 tables on one sheet and right now I have vba for resizing tables 2 and 3 whenevever table 1 is resized, but would it be possible to clear all the contents below tables 2 and 3 when they are resized, because the formulas are left over
Here's the resize code :
```
Dim Tbl_2 As ListObject
Dim Tbl_1 As ListObject
... | Is there a way to clear content in a dynamic range below a table? | CC BY-SA 4.0 | null | 2023-03-03T16:09:38.213 | 2023-03-03T21:40:49.137 | 2023-03-03T18:29:22.740 | 8,422,953 | 21,327,160 | [
"excel",
"vba"
] |
75,629,417 | 2 | null | 75,629,102 | 0 | null | I just tested this in a venv in python3 and version "2022.1" was installed. I have not used `.toml` files, only `requirements.txt` but I imagine it is the same concept?
Based on the "Compatible release" section under "Version specifiers" as outlined here
[https://peps.python.org/pep-0440/#version-specifiers](https://pe... | null | CC BY-SA 4.0 | null | 2023-03-03T16:10:17.180 | 2023-03-03T16:23:37.933 | 2023-03-03T16:23:37.933 | 8,678,978 | 8,678,978 | null |
75,629,418 | 1 | null | null | 0 | 51 | I would like to separate symbols, numeric value and unit from a list of string by using regular expression.
```
x = ">=40.55%"
```
Currently I try to use the following regex in Python to separate symbol, numeric value, and unit
```
match = re.findall(r'^(\A[>|<])*(\d+[.]+\d+)*([%|mg/dl|cm2]\Z)',i)
```
But, it doesn't... | How can I separate symbols [">", "<", ">=", "<="], numeric value and unit from a string by using regular expression in Python? | CC BY-SA 4.0 | null | 2023-03-03T16:10:18.233 | 2023-03-03T21:09:21.557 | null | null | 19,756,534 | [
"python",
"python-3.x",
"regex"
] |
75,629,420 | 1 | null | null | 0 | 13 | Is there some HTTP response header intended for authentication/credentials-data except for `Set-Cookie`?
I am working on an HTTP API which transfer authentication tokens in cookies. I need to add support for a legacy system which supports all HTTP headers except `Set-Cookie` / `Cookie`.
When the user logs on, currently... | HTTP response header for credentials | CC BY-SA 4.0 | null | 2023-03-03T16:10:44.290 | 2023-03-03T16:10:44.290 | null | null | 8,824,811 | [
"rest",
"http",
"cookies",
"server-response"
] |
75,629,424 | 1 | null | null | 0 | 29 | I'm making a website, but for some reason when I try to make some divs disappear, it doesnt work. Here's the code:
```
function now() {
q2.style.display = 'none';
q3.style.visibility = "hidden";
}
```
(`now()` is an `onlao09d` function for body)
Any help please?
I tried(as you can see) to use both style.displa... | Div not disappearing | CC BY-SA 4.0 | null | 2023-03-03T16:10:55.043 | 2023-03-03T16:17:39.123 | 2023-03-03T16:17:39.123 | 3,603,681 | 20,852,911 | [
"javascript",
"html"
] |
75,629,425 | 2 | null | 75,595,820 | 0 | null | This works, but it's a bit awkward :
```
import streamlit as st
from streamlit.elements.data_editor import _apply_dataframe_edits
from streamlit import type_util
def f():
t = st.session_state['t']
t = type_util.convert_anything_to_df(t)
_apply_dataframe_edits(t, st.session_state['st_t'])
make_use_of_ed... | null | CC BY-SA 4.0 | null | 2023-03-03T16:10:56.510 | 2023-03-03T16:10:56.510 | null | null | 152,244 | null |
75,629,426 | 1 | null | null | -1 | 10 | I installed VS Code on my Mac (Big Sur, 11.6.2) last night. It won't run because "permission denied ... please make sure the following directories are writeable: ~Libary/Application Support/Code/..."
I've looked around on the VS Code FAQ and in SO but find nothing on this.
I'm new to Mac programming and to Terminal.
| Visual Studio Code on Mac installation problem | CC BY-SA 4.0 | null | 2023-03-03T16:10:58.950 | 2023-03-03T16:10:58.950 | null | null | 21,327,185 | [
"visual-studio-code"
] |
75,629,406 | 1 | null | null | 0 | 12 | I started a container on my CentOS 8 system with podman (v4.5.0-dev), I exposed the port 8080.
The port was reachable on localhost:8080 until I changed some network configuration following [these steps](https://stackoverflow.com/questions/75619651/podman-how-to-resolve-the-hostname-of-a-pod-deployed-using-kubernetes-ya... | Podman - Cannot reach container with exposed port | CC BY-SA 4.0 | null | 2023-03-03T16:08:58.243 | 2023-03-03T16:08:58.243 | null | null | 5,087,493 | [
"linux",
"centos",
"containers",
"podman",
"podspec"
] |
75,629,423 | 1 | 75,629,522 | null | 0 | 29 | I have a data frame like below
| col-a | col-b |
| ----- | ----- |
| abc | 123 |
| def | 456 |
| ghi | 789 |
I have a string str = f"https://{val1}.{val2}" and using it I want to create col-c like below
| col-a | col-b | col-c |
| ----- | ----- | ----- |
| abc | 123 | https://abc.123 |
| def | 456 | https:/... | How to create a third column based on first two column in pandas dataframe? | CC BY-SA 4.0 | null | 2023-03-03T16:10:49.027 | 2023-03-03T16:49:15.627 | null | null | 9,207,531 | [
"python",
"pandas"
] |
75,629,427 | 1 | null | null | 2 | 49 | `&mut T` implements `Borrow<T>`,so `(&mut T).borrow()` will create `&T`. Does this break the rule that “if we have one mutable reference, we can not have any other references (mutable or not)”?
```
use std::borrow::Borrow;
let mut n = 1;
let r1: &mut i32 = &mut n;
let r2: &i32 = r1.borrow();
println!("log: {r1} {r2}")... | Does &mut T implements Borrow<T> break a mutable reference rule? | CC BY-SA 4.0 | null | 2023-03-03T16:10:59.823 | 2023-03-04T01:00:28.480 | 2023-03-04T01:00:28.480 | 4,134,530 | 4,134,530 | [
"rust"
] |
75,629,430 | 2 | null | 75,626,534 | 0 | null | ```
= COUNTIF(D8:D25,">=100000")
```
| null | CC BY-SA 4.0 | null | 2023-03-03T16:11:10.337 | 2023-03-03T16:11:10.337 | null | null | 17,113,887 | null |
75,629,409 | 1 | null | null | 1 | 31 | I am writing one java client application to connect to IBM-MQ queue manager configured in TLS.
Below is java code:
```
import com.ibm.mq.MQC;
import com.ibm.mq.MQEnvironment;
import com.ibm.mq.MQQueueManager;
//import com.ibm.mq.constants.CMQC;
public class IBMMQClient {
public static void main(String[] args) throw... | how to connect to queue manager with TLS enabled in ibm-mq | CC BY-SA 4.0 | null | 2023-03-03T16:09:19.187 | 2023-03-04T03:55:16.303 | 2023-03-03T17:10:20.363 | 10,916,967 | 10,916,967 | [
"java",
"ssl",
"ibm-mq"
] |
75,629,422 | 2 | null | 75,629,314 | 2 | null | If we use [key remapping](https://www.typescriptlang.org/docs/handbook/2/mapped-types.html#key-remapping-via-as), we can use `Exclude`:
```
type ConversionsOptions<T extends TemperatureUnit> = {
formulas:{
[U in T as `${U}_to_${Exclude<T, U>}`]: (n: number) => number;
};
};
```
[Playground](https://www.typescr... | null | CC BY-SA 4.0 | null | 2023-03-03T16:10:47.660 | 2023-03-03T16:10:47.660 | null | null | 18,244,921 | null |
75,629,428 | 2 | null | 75,629,361 | 2 | null | You may use this rule:
```
RewriteRule ^OLDNAME/(.+?)(?:-2)?/?$ /NEWNAME/$1 [L,NC,R=302,NE]
```
I assume you want to redirect to new URL hence added `R` flag.
Note pattern in `RewriteRule` that ends with `-2` is outside the capture group. When we use `$1` in target it will be without last `-2`.
```
curl -I 'localhost... | null | CC BY-SA 4.0 | null | 2023-03-03T16:11:01.677 | 2023-03-03T20:50:18.060 | 2023-03-03T20:50:18.060 | 548,225 | 548,225 | null |
75,629,421 | 2 | null | 75,629,367 | 1 | null | if there are only 2 casing options that are known in advance (e.g. lowercase `p` and uppercase `P`) - you can use the [coalesce() function](https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/coalescefunction).
for example:
```
datatable(OperationName: string, Properties: dynamic)
[
"Create role assig... | null | CC BY-SA 4.0 | null | 2023-03-03T16:10:47.517 | 2023-03-03T16:10:47.517 | null | null | 7,861,807 | null |
75,629,432 | 2 | null | 75,629,338 | 1 | null | You can make async calls within `useEffect`, and update the response with `useState`. Something like this:
```
const url = 'some url'
function App() {
const [headers, setHeaders] = useState(null);
const [content, setContent] = useState(null);
useEffect(() => {
service_query(url).then(response => {
set... | null | CC BY-SA 4.0 | null | 2023-03-03T16:11:20.977 | 2023-03-03T16:17:50.233 | 2023-03-03T16:17:50.233 | 5,508,710 | 5,508,710 | null |
75,629,439 | 2 | null | 75,629,244 | 0 | null | Your date column currently has data type string instead of datetime64.
```
df['days_diff_from_today'] = np.datetime64('today') - df['date'].astype('datetime64')
```
Alternatively, if you want your date column to be in datetime.
```
df['date'] = df['date'].astype('datetime64')
df['days_diff_from_today'] = np.datetime64... | null | CC BY-SA 4.0 | null | 2023-03-03T16:11:43.333 | 2023-03-03T16:11:43.333 | null | null | 21,021,990 | null |
75,629,429 | 2 | null | 39,007,025 | 0 | null | ```
import org.apache.http.HttpHeaders
import org.apache.http.client.methods.HttpPost
import org.apache.http.entity.ContentType
import org.apache.http.entity.mime.HttpMultipartMode
import org.apache.http.entity.mime.MultipartEntityBuilder
import org.apache.http.impl.client.HttpClients
import org.apache.http.message.Bas... | null | CC BY-SA 4.0 | null | 2023-03-03T16:11:03.773 | 2023-03-03T16:11:03.773 | null | null | 21,327,213 | null |
75,629,436 | 1 | null | null | 0 | 15 | ```
<form [formGroup]="form">
<div formArrayName="data" *ngFor="let formGroup of getPartControls(); let i = index">
<mat-table [dataSource]="data.orderPositions">
<ng-container matColumnDef="relevance">
<mat-header-cell *matHeaderCellDef>price</mat-header-cell>
<mat-cell *matCellDef="let elem... | mat-table with input change value | CC BY-SA 4.0 | null | 2023-03-03T16:11:26.067 | 2023-03-03T16:25:30.257 | 2023-03-03T16:25:30.257 | 14,279,662 | 14,279,662 | [
"angular",
"angular-material-table"
] |
75,629,440 | 2 | null | 70,768,296 | 0 | null | ```
const fs = require("fs");
const {parse} = require("csv-parse");
const results = [];
fs.createReadStream("./kepler_data.csv").pipe(parse({
comment: '#',
columns: true,
})).on('data', (data) => {
results.push(data)
}).on('end', () => {
console.log(results);
console.log('done ');
})
```
This works fo... | null | CC BY-SA 4.0 | null | 2023-03-03T16:11:49.047 | 2023-03-03T16:11:49.047 | null | null | 21,327,246 | null |
75,629,435 | 1 | null | null | 0 | 9 | I have two tabs with 1 form in each one, i'm import pay component for save data, when submit of first component do submit of second form, i need submit of one form in the first tab, the second form validate fields but should not
```
<Tabs>
<TabPane><FormOne/> <TabPane>
<TabPane><FormTwo/> <TabPane>
</Tabs>
const Fo... | Submit Button in two form in two tabs Antd and React | CC BY-SA 4.0 | null | 2023-03-03T16:11:24.510 | 2023-03-03T16:11:24.510 | null | null | 9,447,548 | [
"reactjs",
"antd"
] |
75,629,443 | 2 | null | 59,428,249 | 0 | null | I have the same error message.
But despite that, the post actually saves or updates. So personally I'm thinking of just ignoring it, however annoying it may be.
I've tried the suggestions I could find: deactivating all plugins, making .htaccess rightable, but the error message remains.
| null | CC BY-SA 4.0 | null | 2023-03-03T16:12:06.920 | 2023-03-03T16:12:06.920 | null | null | 1,571,010 | null |
75,629,441 | 1 | null | null | 0 | 19 | The current index page is designed using pdfMake. I have shared the image of my current index. Here the index titles are getting generated dynamically. I need to add dotted lines between the index title and number

The image i have shared here is the result i am expecting. I need... | How do I add dotted lines in index page using pdfMake? | CC BY-SA 4.0 | null | 2023-03-03T16:12:03.787 | 2023-03-03T17:45:45.613 | 2023-03-03T17:45:45.613 | 540,955 | 21,327,212 | [
"javascript",
"typescript",
"pdfmake"
] |
75,629,433 | 2 | null | 75,628,648 | 0 | null | For one thing, you are always starting out by setting `device` to `"Speakers"` and then checking that it is in the `If` statement and thus setting it to `"Headphones"` wherein the `MsgBox` says so.
You never get to the `else if` because the `device` never starts out as `Headphones`.
And even after you moved that line t... | null | CC BY-SA 4.0 | null | 2023-03-03T16:11:23.140 | 2023-03-03T17:58:03.800 | 2023-03-03T17:58:03.800 | 5,521,857 | 5,521,857 | null |
75,629,446 | 2 | null | 75,617,594 | 0 | null | https://www.sqlservergeeks.com/find-working-days-between-two-dates-in-sql-server/#:~:text=The%20statement%20DATEDIFF(dd%2C%40,it's%20a%20Saturday%20or%20Sunday.
```
Finding the work days time interval
SELECT
(DATEDIFF(dd, @fromdate, @todate) + 1)
-(DATEDIFF(wk, @fromdate, @todate) * 2)
-(CASE WHEN DATENAME(dw, ... | null | CC BY-SA 4.0 | null | 2023-03-03T16:12:30.353 | 2023-03-03T16:12:30.353 | null | null | 4,001,177 | null |
75,629,444 | 1 | null | null | 0 | 22 | I know that I should check for [pre-commit](https://pre-commit.com/) hook updates from time to time, but I rarely think about running `pre-commit autoupdate`. I end up using out-of-date pre-commit hooks for months.
[pre-commit.ci will automatically run pre-commit autoupdate and submit pull requests if updates are found... | How do I make sure that “pre-commit autoupdate” gets run periodically? | CC BY-SA 4.0 | null | 2023-03-03T16:12:12.787 | 2023-03-03T16:12:12.787 | null | null | 7,593,853 | [
"pre-commit.com"
] |
75,629,415 | 2 | null | 75,598,144 | 3 | null | Although there has been discussion around this before, I thought I would post an answer here that shows how to ensure that a particular of points are included within each contour line.
To do this, we can get the 2d density with `MASS::kde2d`, then convert to a raster using `terra`. We can then order the points accordi... | null | CC BY-SA 4.0 | null | 2023-03-03T16:10:05.257 | 2023-03-04T16:58:12.890 | 2023-03-04T16:58:12.890 | 12,500,315 | 12,500,315 | null |
75,629,445 | 1 | null | null | 0 | 12 | I am working with MRI images saved as nifti (.nii) files that have 5 dimensions (x, y, z, diffusion direction, repetition) so I cannot simply use SimpleITK.ReadImage() to get an Image object (5D is unsupported by SimpleITK). I need the Image object to use SimpleElastix which is a registration package built on top of Si... | How to populate SimpleITK.Image metadata using nibabel.Nifti1Image object? | CC BY-SA 4.0 | null | 2023-03-03T16:12:15.047 | 2023-03-03T16:12:15.047 | null | null | 12,234,088 | [
"python",
"medical-imaging",
"simpleitk",
"mri",
"nibabel"
] |
75,629,449 | 1 | null | null | 0 | 12 |
# Tokenize input data
`text = "Sample text for fine-tuning flan t5 base model." inputs = tokenizer.encode(text, return_tensors='pt')`
# Prepare labels
`labels = inputs.clone() labels[0, :-1] = labels[0, 1:]`
It should work but I got this error:
RuntimeError Traceback (most recent call... | Issue in fine tuning flan T5 model | CC BY-SA 4.0 | null | 2023-03-03T16:12:47.673 | 2023-03-03T16:12:47.673 | null | null | 20,775,984 | [
"pytorch",
"nlp",
"fine-tune"
] |
75,629,442 | 1 | null | null | 0 | 8 | I had used following tutorial to integrate Redis using Lettuce connection in my springboot application.
[https://blog.tericcabrel.com/data-caching-spring-boot-redis/](https://blog.tericcabrel.com/data-caching-spring-boot-redis/)
The good thing about the above approach is I was able to define my own repository methods. ... | Redis Lettuce - get object data | CC BY-SA 4.0 | null | 2023-03-03T16:12:04.213 | 2023-03-03T16:12:04.213 | null | null | 1,054,592 | [
"java",
"spring-boot",
"redis",
"cucumber",
"lettuce"
] |
75,629,451 | 2 | null | 75,625,337 | 0 | null | I managed to solve this issue myself after some more hours, with the help of `@XmlPath` from [EclipseLink MOXy](https://www.eclipse.org/eclipselink/#moxy). I mapped the `<supplement>`-tags to two individual variables.
```
@XmlRootElement(name = "foobar")
@XmlAccessorType(XmlAccessType.FIELD)
public class Foobar {
... | null | CC BY-SA 4.0 | null | 2023-03-03T16:13:13.117 | 2023-03-03T16:13:13.117 | null | null | 3,930,769 | null |
75,629,450 | 1 | null | null | -4 | 30 | I'm trying to run the syntanx in Microsoft SQL Server Management Studio
```
;with rfm as
(
select
CUSTOMERNAME,
sum(sales) MonetaryValue,
avg(sales) AvgMonetaryValue,
count(ORDERNUMBER) Frequency,
max(ORDERDATE) last_order_date,
(select max(ORDERDATE) from [dbo].[sal... | SQL Server Errors Near ' | CC BY-SA 4.0 | null | 2023-03-03T16:13:06.647 | 2023-03-03T16:20:43.313 | 2023-03-03T16:20:43.313 | 205,233 | 21,107,842 | [
"sql",
"sql-server",
"string",
"syntax-error"
] |
75,629,452 | 1 | 75,629,668 | null | 0 | 20 | I'm writing tests for a piece of code using Jest. I'm testing a module called Inquirer, a CLI tool to interact with the user and mainly in this case to store values from the user (project is a text based adventure game).
Could anyone explain to me if I need to or why I should mock the library itself with `jest.mock()`?... | Should I mock module? | CC BY-SA 4.0 | null | 2023-03-03T16:13:19.250 | 2023-03-03T16:49:13.193 | 2023-03-03T16:49:13.193 | 3,001,761 | 15,231,135 | [
"javascript",
"jestjs"
] |
75,629,453 | 1 | null | null | 0 | 27 | I use move() function to move the window via this code:
```
window.overrideredirect(True)
def move(event):
window.geometry(f'+{event.x_root}+{event.y_root}')
title_frame= Frame(window,bg='gray', height=20)
title_frame.bind('<B1-Motion>', move)
title_frame.pack(side=TOP, fill='x')
```
But, when i move the window, ... | Tkinter frameless window moving causes mouse cursor glitch (teleport to the left up corner of the window) | CC BY-SA 4.0 | null | 2023-03-03T16:13:25.527 | 2023-03-03T16:19:59.003 | 2023-03-03T16:19:59.003 | 21,293,012 | 21,293,012 | [
"python",
"python-3.x",
"tkinter",
"window",
"move"
] |
75,629,455 | 1 | null | null | 0 | 49 | I have some code like below:
```
async someFunction(){
...
await apiRequest()
...
}
apiRequest(){
return new Promise(resolve=>{
this.httpClient.getAuth('/api')}.subscribe({
next: res => {
...
resolve(true)
},
error: error => { resolve(false) }
... | typescript/javascript promise into rxjs | CC BY-SA 4.0 | null | 2023-03-03T16:13:31.797 | 2023-03-03T22:08:55.547 | null | null | 4,979,998 | [
"javascript",
"angular",
"typescript",
"promise",
"rxjs"
] |
75,629,457 | 2 | null | 75,606,711 | 0 | null | Figured out that your local culture is different, hence the system csv field separator may be different than ','.
You will have to explicitly specify the field delimiter to reader by using `WithDelimiter(",")` method.
Sample fiddle: [https://dotnetfiddle.net/GdmMkQ](https://dotnetfiddle.net/GdmMkQ)
Here is the referenc... | null | CC BY-SA 4.0 | null | 2023-03-03T16:13:58.860 | 2023-03-03T16:13:58.860 | null | null | 1,288,545 | null |
75,629,454 | 1 | null | null | 0 | 13 | Below is a code which allows you to detect a text from a picture. The code uses Google API and when run will show an output in the following way:
[](https://i.stack.imgur.com/oPNEB.png)
Initially i want it to be displayed in one line such as this : PACHINKO MIN JIN LEE Bye
Below you can view my code:
```
import argpars... | how to combine the a list of outputs into a single data stotage variable? | CC BY-SA 4.0 | null | 2023-03-03T16:13:31.320 | 2023-03-03T16:13:31.320 | null | null | 21,095,659 | [
"python",
"api"
] |
75,629,456 | 2 | null | 75,628,900 | 1 | null | If you want to use the Levenshtein distance, proceed as follows:
```
from Levenshtein import distance as lev
data = ["car | cat", "cat | caat", "car | caar", "dog", "ant | ants"]
# set the desired threshold
threshold = 1
# create a unique set of trimmed strings
dataset = set([e.strip() for ls in [ s.split('|') for s... | null | CC BY-SA 4.0 | null | 2023-03-03T16:13:50.807 | 2023-03-03T16:53:23.937 | 2023-03-03T16:53:23.937 | 20,986,750 | 20,986,750 | null |
75,629,434 | 2 | null | 75,623,281 | 0 | null | There are two threads involved: the UI-thread (the "main" thread), and your BackGroundWorker. Only the UI-thread is allowed to access any of the visual items. So only the UI-thread may fetch text from text boxes, only the UI-thread may show or hide labels, or redraw forms. Whenever any other thread tries to access a Co... | null | CC BY-SA 4.0 | null | 2023-03-03T16:11:24.323 | 2023-03-03T16:11:24.323 | null | null | 2,281,790 | null |
75,629,460 | 2 | null | 57,086,398 | 0 | null | I set up a shortcut
that clears all output.
Just set it under .
| null | CC BY-SA 4.0 | null | 2023-03-03T16:14:25.287 | 2023-03-03T16:14:25.287 | null | null | 19,024,399 | null |
75,629,458 | 2 | null | 75,604,918 | 0 | null | See [the reference of the Ttk scrollbar](https://www.tcl.tk/man/tcl/TkCmd/ttk_scrollbar.html). It does not support the `-highlightcolor` option.
Also to see the effect of the `-highlightcolor` option of the basic scrollbar(not Ttk scrollbar), you should set the `-highlightthickness` option to a nonzero value and give t... | null | CC BY-SA 4.0 | null | 2023-03-03T16:14:06.477 | 2023-03-03T16:14:06.477 | null | null | 1,186,624 | null |
75,629,459 | 2 | null | 75,570,488 | 0 | null | I suspect that your backend server run on different port since React runs on port `:3000` by default so change your backend server's port. In index.js of backend code change `app.listen(3000)` to `app.listen(5000)`
Now you can request your api in react as below
> Axios is asynchronous use `try-catch` or `async await`
`... | null | CC BY-SA 4.0 | null | 2023-03-03T16:14:24.287 | 2023-03-03T16:14:24.287 | null | null | 16,038,633 | null |
75,629,464 | 2 | null | 75,622,617 | 0 | null | You can go into the search box, introduce the name of your rule and click in the dropdown arrow to see if it is available in other versions, withdrawn... You can also change the search from "My Current Application" to "All Applications", just in case. Of course you ought to have rights in the ruleset to actually open o... | null | CC BY-SA 4.0 | null | 2023-03-03T16:14:37.033 | 2023-03-03T16:14:37.033 | null | null | 2,286,198 | null |
75,629,461 | 2 | null | 54,644,231 | 0 | null | I experienced the same problem when starting Hadoop. Installing the missing dll file—in my instance, msvcr120.dll—fixed my problem. Try executing the winutils file in the bin folder and if you get an error claiming that your winutils file cannot be launched because a dll file is missing then download the missing dll fi... | null | CC BY-SA 4.0 | null | 2023-03-03T16:14:26.887 | 2023-03-03T16:14:26.887 | null | null | 14,215,714 | null |
75,629,448 | 1 | null | null | 0 | 17 | Ok so I don't have really problem, but I don't want my code to look messy but it does make it messy because of this code.
`containers = driver.find_elements(by="xpath",value='//*[@id="table"]/tbody/tr')`
So basically I have a crud-app in my website and I'm trying to automate it with python...but the thing is that when ... | Why my webdriver automation in finding path have to recall each time I change of it? | CC BY-SA 4.0 | null | 2023-03-03T16:12:41.503 | 2023-03-03T16:12:41.503 | null | null | 21,115,998 | [
"javascript",
"python",
"selenium-webdriver",
"automation"
] |
75,629,462 | 1 | null | null | 1 | 60 | I want to convert unsigned numbers to an ascii string in 68k asm.
I can do this for something in the range of words:
```
move.w #12345,d0 ;example number to convert (unsigned word)
lea text,a0 ;adress of output string
;first digit
and.l #$ffff,d0 ;mask lower word
divu #10000,d0 ;calc 10k di... | Motorola 68k: Convert number to ascii | CC BY-SA 4.0 | null | 2023-03-03T16:14:30.657 | 2023-03-03T22:42:56.337 | null | null | 6,258,493 | [
"assembly",
"motorola",
"68000",
"easy68k"
] |
75,629,463 | 2 | null | 75,629,264 | 1 | null | Seems like you could use `qcut`
```
df['quantile'] = df.groupby('Player')['wins'].transform(lambda s: pd.qcut(s,
q=10,
duplicates='drop',
... | null | CC BY-SA 4.0 | null | 2023-03-03T16:14:35.583 | 2023-03-03T16:14:35.583 | null | null | 2,535,611 | null |
75,629,465 | 2 | null | 75,628,817 | 1 | null | Taipy does not directly change your GUI with this set of specific assignments (`.append()`, `.drop()`). You must use a regular ‘equals’ assignment to see changes in real time (`state.xxx = yyy`). Your code will look like this:
```
from taipy.gui import Gui
import pandas as pd
a_list = [1,2,3]
data = pd.DataFrame({"x":... | null | CC BY-SA 4.0 | null | 2023-03-03T16:14:37.660 | 2023-03-03T16:14:37.660 | null | null | 19,480,077 | null |
75,629,472 | 2 | null | 75,629,383 | 1 | null | You can use:
```
library(dplyr)
data.frame(col1 = c("A","b","B","C","c")) %>%
arrange(tolower(col1), col1)
#> col1
#> 1 A
#> 2 B
#> 3 b
#> 4 C
#> 5 c
```
| null | CC BY-SA 4.0 | null | 2023-03-03T16:15:50.443 | 2023-03-03T16:26:55.793 | 2023-03-03T16:26:55.793 | 12,967,938 | 12,967,938 | null |
75,629,466 | 1 | null | null | 1 | 20 | I have a service where am testing (Unit Test) a function which returns an observable.
```
describe( 'MyTest', () => {
let service: MyService;
let httpTestingController: HttpTestingController;
beforeEach( () => {
....
service = jasmine.createSpyObj('MyService', [
'getData'
]);
TestBed.configur... | How to fix - Response is undefined when Testing an Angular Service | CC BY-SA 4.0 | null | 2023-03-03T16:14:52.123 | 2023-03-03T16:14:52.123 | null | null | 5,310,217 | [
"angular",
"unit-testing",
"jasmine"
] |
75,629,470 | 2 | null | 29,239,081 | 0 | null | What worked for me is `--keep-directory-symlink`. (I believe that `-h` only applies to tar files.)
This option has been in Gnu `tar` [for almost 10 years](https://git.savannah.gnu.org/cgit/tar.git/commit/?id=2c06a80918019471876956eef4ef22f05c9e0571), but I think Ubuntu only started exposing it in 20.04/focal (the 18.... | null | CC BY-SA 4.0 | null | 2023-03-03T16:15:23.843 | 2023-03-03T16:15:23.843 | null | null | 21,327,282 | null |
75,629,473 | 2 | null | 75,629,160 | 1 | null | Well, it is easier than I thought. The doc states
> The sulu-link tag allows to link to pages and other entities in the application by their id. This id of the tag will be validated and replaced by a proper anchor tag when a response is generated.
The id corresponds to the UUID of the page and you can find it in the UR... | null | CC BY-SA 4.0 | null | 2023-03-03T16:15:51.987 | 2023-03-03T16:15:51.987 | null | null | 1,119,601 | null |
75,629,476 | 1 | null | null | 0 | 12 | Currently, I'm using the `spring-boot-starter-amqp` module and can use the annotation `@RabbitListener` to read messages on background, How can I consume a fixed number of messages from a queue only when a method is called?
What I'm trying to build is an "on-demand" consumer for a queue, I'll receive an HTTP request on... | How to consume fixed messages per time on RabbitMQ? | CC BY-SA 4.0 | null | 2023-03-03T16:16:19.647 | 2023-03-03T16:24:19.067 | null | null | 2,336,081 | [
"java",
"rabbitmq",
"spring-rabbit"
] |
75,629,475 | 1 | null | null | 0 | 16 | i'm trying to use a dropdownlist that has 2 values. Thé dropdownlist selected item should be set to yes or no , depending on a bool field that is in my object. I send my object through ViewData as well as the dropdownlist items (yes,no). I saw DropDownListFor in other answers but it is not accepted in the aspx code pag... | DropDownListFor in aspx | CC BY-SA 4.0 | null | 2023-03-03T16:16:17.133 | 2023-03-04T01:48:13.007 | null | null | 1,983,624 | [
"asp.net",
"drop-down-menu"
] |
75,629,431 | 2 | null | 64,676,392 | 0 | null | Here’s a Powershell script solution that meets the OP requests and matches what he tried to do. It embeds C# code from the [decoder-it/psgetsystem](https://github.com/decoder-it/psgetsystem/blob/master/psgetsys.ps1) with minor change for the PPID spoofing and I added the redirection of STDOut and STDErr from the spawn... | null | CC BY-SA 4.0 | null | 2023-03-03T16:11:13.790 | 2023-03-03T16:11:13.790 | null | null | 3,528,651 | null |