instruction
stringlengths
0
30k
I want to cry and cry, help friends, I believe in you I want to cry and cry, help friends, I believe in you I want to cry and cry, help friends, I believe in you I want to cry and cry, help friends, I believe in you import tensorflow as tf from keras.preprocessing.sequence import Tokenizer from...
How do I make sure that the labels of a echarts4r radar chart are completely visible on any screen? Works with bs4Dash::box but not with bslib::card
The purpose of the code is to have a backup to the websocket in case of problems, so when it is NOT active I run a long time polling on http protocol until the websocket becomes active again **This is the solution I found:** properties: ``` pollingDone = signal(false) private timerDone$ = new Subject<boolean>(...
I'm trying to understand the behavior of Bash when it comes to reading heredocs, as I am trying to implement a minishell based on bash in C. Specifically, I'm interested in knowing the circumstances under which Bash reads the content of a here document (<<). I've encountered some scenarios where it seems Bash behaves ...
When does Bash read heredocs?
|c|bash|shell|heredoc|
I had been working on a WPF project for several weeks, using VS 2022 17.9.2, targeting .Net 6.0, with no problems. Out of nowhere today, upon opening, I received a slate of errors relating to `Could not find InitializeComponent() ...` for a couple custom WPF controls. Ran through namespace checks, etc., searched the ...
When logging in i create a token for the user and then put it in a cookie. I return that cookie to my front-end and then i use that cookie for every other request to my api. The cookie is in the request header when making requests but it stil doesn't work. I still get 401 errors. Here is my login function: ``` ...
Why is sanctum not authenticating me with my cookie?
|laravel|laravel-sanctum|
null
Good morning, I needed your precious help, as it's been a few days of trying and I'm not able to reach the desired conclusion Now, basically we have an online store and I would like to modify the label below the shipping method (hook: woocommerce_cart_shipping_method_full_label) based on the stock status of the ...
Why is this code not working? I've tried everything and everything seems to be fine, but no
|python|xcode|tensorflow|
null
Is it possible to combine two plots and make it one plot? These are the plots I am trying to combine. I have tried the "combined_plot" command, but I get the same result - two separate plots. [enter image description here](https://i.stack.imgur.com/rNHuA.png) Here are my codes: Plot 1: plot1 ...
How to combine two plots
|rstudio|
null
You need to add `.Name` at the end beacause `FindFirstChild()` checks for strings function click(player) local y = workspace:FindFirstChild(player.Name).HumanoidRootPart.CFrame local location = script.Parent.Location.Position y = CFrame.new(location) print("Teleported") e...
I'm working on a tool for animating 3D objects, and I've run into an issue that I'm not sure how to solve: There is a rotation gizmo implemented, which works fine. However since it's an animation tool, I need to end up with euler angles after a rotation is performed. And the issue is, since I'm converting to quatern...
{"Voters":[{"Id":1136211,"DisplayName":"Clemens"},{"Id":529282,"DisplayName":"Martheen"},{"Id":10024425,"DisplayName":"user246821"}]}
The following simplified and revised code version, will also handle variable products (based on the variation max price), adding a product tag based on the product price by ranges: - with a price up to $200, the product will be tagged with `789` term ID, - with a price between $100 and $200, the product will be tagge...
I am trying to load my app for packaging but the native electron reload function used in the Menu "Window" - "Reload" is loading the file: "file:///" electron: Failed to load URL: file:/// with error: ERR_FILE_NOT_FOUND (Use `Electron --trace-warnings ...` to show where the warning was created) I am loading the ...
Update Sidebar Height to Cover the Document Height (with React Pro Sidebar)
The current .NET SDK does not support targeting .NET Core 6.0. Brand new WPF Project VS Community 2022 17.9.5
|.net|visual-studio|
null
I am making an app, where i want to use mongodb. I have never used mongo before, so i watched a tutorial on youtube. I registered on mongodb and got the connection string from there using their free plan. This is the code I'm using: ``` string connectionString = "CONNECTIONSTRING"; string dbn = "DBNAME"; string cn...
MongoDb not connecting C#
|c#|.net|mongodb|connection|timeout|
I am learning sveltekit and I would like to use svelte-canvas in my project. I have a component called Globe.svelte ``` <script> import { onMount } from "svelte"; import { Canvas, Layer } from "svelte-canvas"; import { feature } from "topojson-client"; import { geoOrthographic, geoPath, geoGrati...
Changed woocommerce_cart_shipping_method_full_label based products in cart stock status
|php|woocommerce|hook-woocommerce|orders|stock|
null
you should reshape your training data as below: X_train = X_train.reshape((X_train.shape[0], X_train.shape[1], 1)) X_test = X_test.reshape((X_test.shape[0], X_test.shape[1], 1)) by doing this you just add a dimension to the inputs. Then your input shape will be like (None, X_train.shape[1], 1).
I'm developing a web API and I hosted it on Azure, I have a call that takes about 2.5 seconds in my local machine but takes a lot longer when the app is hosted in Azure as you can see in this figure: ![][1] It's taking 12.8 seconds which is not expected, why is this happening, and what is the part highlighted in ...
Web API calls are slow in Azure
|c#|azure|azure-application-insights|webapi|
if you are talking about dotnet core then you can run the services of .Net 6.0 with .Net 8.0 you just have to install the .Net 8.0 necessary [SDK][1] and after that follow these steps: 1. find bin and obj folder in the project directory. 2. delete the both folder bin and obj. 3. run the command **dotnet clean**...
$this->eventDispatcher->dispatch(new OrderSentEvent($order, $context), 'name.goes.here'); …did the trick. No event subscriber could be found, because if you don't provide a name as 2nd argument, the full class name will be used, but the Flow Builder apparently uses the custom one.
You only get the benefit of the cache when a request comes in to a specific container that already has that data cached. Any time you deploy, your cache gets completely wiped out. Any time the ECS service scales up to add another container, the new container will not have any data cached until some requests come in and...
null
I want to learn WordPress but setting up a hosting domain and all the initial process is frustrating for me and I don’t want to get into this. Is there anything which can help me to create a quick WordPress site without purchasing a domain or hosting so that I can start learning and start creating websites with Word...
Issues with a rotation gizmo and sign flips when converting back to euler angles
|math|3d|rotation|quaternions|3d-engine|
null
Below is the error i got from my code editor[enter image description here](https://i.stack.imgur.com/bB6BP.png)[enter image description here](https://i.stack.imgur.com/gEOo2.png) and this is the error i get on the browser: [enter image description here](https://i.stack.imgur.com/ub9Li.png) i don't know what is w...
how to fix issue; if i install chatmessenger to my laravel SaaS project: "Call to undefined function getAdminPanelUrlPrefix()"
|laravel|laravel-10|php-8|
null
1) Make your url names unique. 2) Make url parameters as below. ```python path("products/",product_list_view,name="product_list"), path("product/<int:pid>/",product_detail_view,name="product_detail"), path("product/<slug:slug>/",get_product,name="get_product") ``` [ref][1] [1]: https://docs.django...
I have a web app deployed on Azure. During testing, I found one of my endpoints is not working... sometimes. More specifically, this `POST` endpoint always works in my dev environment, and it randomly works in Prod. When it fails, my controller endpoint is not hit (discovered by adding logs), and a "successful" 200...
So it turns out there was a tiny simple mistake in the model file. For those of you who encounter a similar error make DOUBLY SURE that when you define your item texture you put this: { "parent" : "item/generated", "**textures**" : { "layer0" : "starforgery:item/pure_emerald" } } And not this: {...
To start with, that is not SAS syntax. With out seeing the data set you might want ``` data want (label='Sum of X1-X<N> in 100th row'); set have ; if _n_ = 100 then Q1A = sum(of x:) ; run ; ``` or ``` data want (keep=Q1A label='Sum of X from 1st 100 rows') ; set have (obs=100) end=end...
When I try to commit in VS Code it fails after a bit saying "Commit failed: no commit message was given" (or something like that). In VS Code, I can't type anything in the box. The cursor goes up there, but does not allow me to type. Any ideas? [![enter image description here][1]][1] [1]: https://i.stac...
I would like to implement a pull-based subscription model in my P2P protocol. Instead of peers themselves sending the events they have produced to all other nodes, they ask (pull request) other nodes which events interest them. The problem is that this process involves a significant waste of bandwidth since each node w...
How to avoid duplicates with the pull-based subscribe model?
|networking|publish-subscribe|p2p|distributed-system|
I'm building a virtual drive Windows desktop app using IT Hit User File System library. Sometimes I get an IOException with message: 'The cloud file provider is not running.', when I'm trying to remove one of the folders that are marked as 'cloud' (synchronized with cloud) from local file system. Before removing ...
'IOException: The cloud file provider is not running', when trying to delete 'cloud' folder
|.net|windows|virtual-drive|
null
Input an output of signed single-digit decimal numbers
I have been struggling with this issue as well when trying to set up a VSCode remote development container (docker compose build but should not make a big difference) with x11 support. My requirements were as follows, since I intended not to expose my development machine too much to the open internet: - No `network...
The messed-up output is mainly due to not specifying the required function number AH=09h before invoking DOS to print a message, and to using DH for holding the second number while at the same time you use DX for another purpose. Remember that the 16-bit DX is composed of the two 8-bit parts DH and DL. Input of a si...
I'm like a 100% sure that this is a basic thing, and therefore I'm sorry if it has been answered. I've seen many code samples and code bases where people include header files like this: ```cpp #include "util.h" int main(void){ int result = function1(); // something that was defined in util.h but implemente...
How can I use svelte-canvas in sveltekit?
|svelte|sveltekit|
As the detailed analysis of the issues with your code is given in the answer by *trincot*, this supplementary response tries to simplify the explanation and provides along with an example of binary tree to traverse also more details about the approach using the logical operators `and` and `or` which in Python don't ret...
I want to learn WordPress without purchasing domain and hosting
|wordpress|web|
null
I did not realise that the full text index was actually still populating so it was returning what was populated so far.
To achieve what you are after you need the following: On your component, a function to get the file from the form: onFileSelected(event: any) { const file: File = event.target.files[0]; if (file) { this.http.put(url, file, { headers: { 'Content-Type': file.type ...
Don't split the `CLOB` into a table of values; instead you can find a sub-string match for the terms within the `CLOB` (matching preceding and following delimiters to ensure you are matching complete terms): ```lang-sql SELECT * FROM Abc a WHERE EXISTS( SELECT 1 FROM clob_tab c ...
- In Desktop (The emulator turns on automatically) [npm start video](https://youtu.be/uUhNKguiao4) [terminal(?) image](https://i.stack.imgur.com/k913N.png) [emulator image](https://i.stack.imgur.com/GY4MG.png) - On the laptop After turning on the emulator can activate the React-Native Which ...
It's my first time deploying a website via github pages and I've noticed a problem with embedding videos (mp4 in my case). Everything else is working and loading fine (including images) however whenever I try to view any of the embedded videos on my website, I get the following black screen with the controls greyed out...
(defvar my/kill-buffer-exceptions '("Messages" "emacs-file" "scratch")) (defun my/kill-buffer-testfn (key lcar) ;; (print (list lcar key (string-match-p (regexp-quote key) lcar))) (string-match-p (regexp-quote key) lcar)) (defun my/kill-other-buffers () "Kill all other buffers...
To expand on correct [Answer by rahulmohan][1], I will add some example code. Define our `Item` & `User` classes. ```java record Item( String description ) { } ``` ```java final class User { private final String name; private final List < Item > items; User ( String name , List < Item > i...
There is so much wrong with your dynamic SQL that I won't list it. And I won't comment on your design, it doesn't sound optimal, but as say the problem is a more complex than described its hard to comment. Anyway, with what you have provided you can do the following: - You can loop through all categories to avoid...
I am working on a Angular project. My aim is to make a book finder application using Google Books API and the problem is that sometimes when i refresh the page or I go to a different component and go back to my homepage it sometimes doesnt show any books even though the status code is 200. I checked the console and its...
It doesnt always show all the books on my homepage
|angular|typescript|google-books-api|
null
the problem is the display of LinearGradientBrush on the button, in Android it is correct, in iOS it is not ``` <Button Text="Войти" > <Button.Background> <LinearGradientBrush EndPoint="1,0"> <GradientStop Color="#DA8BFF" Offset="0.1" /> <GradientStop Color="#839BFF" Offset="...
Incorrect display of LinearGradientBrush in IOS
|c#|android|ios|maui|
null
I need to use "callable" Cloud functions both on the client and on the backend for AppCheck to work. I think this is not stressed enough in the documentation. **On the client** try await functions.httpsCallable("foo").call(params) // AppCheck works let url = URL(string: "https://us-central1-myproject....
I have registered an endpoint for the Webhook event ```subscription.created``` in Square. Every time I make a subscription, it triggers my webhook twice instead of once. Is there something that I missed?
The Square webhook is being triggered twice for a single event (subscription.created)
|payment|subscription|square|
I have a dbt-core project with the following projects.yml: test: target: dev outputs: dev: type: bigquery method: oauth project: my-project-id-123456 dataset: dbt_name location: EU threads: 8 I had 2 Google accounts (priv...
How to use a different account for OAuth with dbt-core and profiles.yml?
|google-bigquery|oauth|dbt|
I have this JSON expression `'{"uid":false,"token":null,"ma":null,"question":[{"questionId":47599,"answerId":190054,"answer":1}],"iframe":true,"ref":"<SOMEREFERRER","ts":1711214476}'` that a webclient (in this case, Google Chrome and Firefox on iOS) wants to send to a webserver. It is a reply on a survey form ano...
Unravel JSON expression
|json|webserver|
null