Working with DHL API in my Django project

I am trying to integrate DHL API in my Django project but it is not working. Can someone help refer any comprehensive article on how to do it. I created an App on the DHL developer portal. I have my API Key and Secret Key

MYSQL INSTALL PROBLEM (SERVER SHUTDOWNED) [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a … Read more

How to clear cookie in NextJs 13 using app router?

My NextJs application is using app router. I am currently building an admin application and i want to clear the cookie when tab close is detected. How can i achieve that? I am new to nextjs and it is using cookie to authenticate. I am using axios to fetch my external backend server. The accessToken … Read more

The correct way to use CTCLoss in pytorch?

I have been training a conv-lstm network, the conv net takes in an input of (batch, 1, 75, 46, 146) and outputs a tensor of shape(batch , 10) which is then fed into the lstm network. The model, however, doesn’t seem to learn anything, I think I’ve given the wrong inputs to the ctc loss … Read more

“bun x create-next-app” is stuck at the second question

If I try to run the command “bun x create-next-app” in WSL Ubuntu, I get stuck at the second question “Would you like to use TypeScript? › No / Yes” and I cannot press anything. Why could that be? There is an open issue on the bun project already. Find it here: https://github.com/oven-sh/bun/issues/4664 This is … Read more

Openai-api : Tripple “number char” in content

Many times in code samples I found the ### (tripple number char) used as specific separator. But I can’t find any information in openai api documentation. Is it unformal? Some kind of legacy from older openai versions? E.g. “content”: “###Areas of learning###\n{areas_of_learning}\n\n###Instructions###\nCategorise the following text to one or more areas of learning.\n{text}\n” Maybe just a … Read more

ODEintWarning: Excess work done on this call (perhaps wrong Dfun type)

I was working on simulating suspension systems in quarter car vehicle using second order differential equations, and I was using Bees Algorithm to as PID controller. def optimal_stiff(kt): acc_t=-(kt\*(0-1)-ks\*(0-xt\[0\])-b\*(xs\[1\]-xt\[1\]))/Mt return -abs(acc_t) def cartire_optim(current_state,t): xs[0],xt[0],xs[1],xt[1]=current_state # initialize the variables if t<1: # initialize the road profile xr=0 else: xr=1 search_bound=([ks],[2*ks]) optimal= BeesAlgorithm(optimal_stiff,search_bound[0],search_bound[1]) optimal.performFullOptimisation(max_iteration=20) stiff= optimal.best_solution acc_s=-(ks*(xs[0]-xt[0])+b*(xs[1]-xt[1]))/Ms … Read more

Why does every RNN give the same loss and accuracy?

I have a dataset composed of positions in X, Y and Z and actuator variables (6 of them). That represents around 310 000 rows. I tried MLP but it doesn’t work well. I would like to try RNN but I don’t know why, every kind of RNN I try (simpleRNN, LSTM, NARX), not matter the … Read more

How do I make animation play after each ‘game over/restart’ status and not only once(as showin in my code below)?

My code only animates once after first ‘game over’ and ‘reset’ status. But after each next status change, animation(s) does/do not play again. I want to know if there is something wrong in my code, or there is a thing(s) to add/I omitted something? I provide you with my CSS/VanillaJS code below. VanillaJS => const … Read more