instruction
stringlengths
0
30k
I have a problem with Excel customized ribbon. The file I'm using has a customized ribbon and I need to edit/remove it but I can't find it in the ''Main Tabs'' available, but still I do not have the option to remove/edit it. Any clues on this? [Excel customized ribbon](https://i.stack.imgur.com/aH2cZ.png) I...
Removing a Button from Customized Excel Ribbon
|excel|ribbon|
null
I ran into a problem when I decided to make an edge server for microservices, but I ran into the problem that my microservice cannot register in Eureka, what could be wrong? ``` apiVersion: v1 kind: ConfigMap metadata: name: configmap data: foodcataloguedb_url: jdbc:postgresql://35.228.167.123:5432/foodcat...
Programmatic connection to open WiFi network fails intermittently on Android 9
|java|android|wifi|wifimanager|android-9.0-pie|
Thank you for your feedback. I have already found and checked this information. I am already fulfilling your suggestion. However, your feedback is already helping to narrow down the error further. [My extract from AndroidManifest.xml][1] [1]: https://i.stack.imgur.com/hB8xk.png
|c++|qt|widget|physics|qwidget|
I encountered a warning during the compilation of my Angular application and discovered that it was caused by the 'outputHashing' configuration in the 'angular.json' file. In the development build configuration, removing the 'outputHashing=all' setting resolved the warning for me. After making this change, the warning ...
I've set up my \_app.js and store.js in what seems to be the expected format. This is my first attempt as using both so if I'm missing something obvious, please let me know. store.js: ``` import { configureStore } from '@reduxjs/toolkit'; import { createWrapper } from 'next-redux-wrapper'; import authReducer f...
Using Redux and Next.js and getting "store.getState is not a function"
|reactjs|react-redux|next-redux-wrapper|
null
I assume your Kafka properties are like this ```properties exampe.kafka.deserializer.mapper =com.example.consumer.model.Example ``` ```java public class DeserializerU<T> implements Deserializer<T> { private Class<T> type; @Override public void configure(Map map, boolean bln) { this.type = (Class) ma...
The rules of Conway's Game of Life aren't working in my Javascript version. What am I doing wrong?
|javascript|arrays|cellular-automata|
null
try adding one more line under mongoose.connect curly braces:- mongoose.connect("monogodb://localhost....",{ useNewUrlParser: true, useUnifiedTopology: true, useCreateIndex: true }) .then(() => { console.log('successfully connected'); }) .catch((e) => { ...
null
It's been 2 years but hope this helps, at least, it worked for me. If you have the country boundaries GeoJSON (Multipolygon Feature). You may use @turf import { featureEach, difference, buffer } from '@turf/turf'; const getInverseFeature = (featureCollection, distance) => { // Create a boun...
I am trying to integrate VSCode `settings.json` into WebStorm. When I save files, VSCode automatically formats the code for me. How can I integrate this formatting into WebStorm? For example, here is a `settings.json` in VSCode: ```json { "eslint.validate": [ "javascript" ], "eslint.format.enable":...
How to integrate VSCode settings.json into WebStorm?
I'm new into flutter and I want to code a Flashcard App. But at the moment, I don't know how to continue coding. I'm stuck at adding a new flashcard and saving the learning set with the title and description and I literally don't find something similar on yt. What's the best way to solve this problem? And is it somet...
WASM cannot access regions outside of its allocated memory (of the host). That would defeat the entire point of sandboxing using WASM. You need to copy the data into WASM memory, then pass the address from there. ```rust use wasmer::{imports, Instance, Module, Store, Value}; fn main() { // Read the Wasm fi...
You passed a pointer to host memory to `process_bytes`. The WASM module instance gets its entirely separate block of memory, so when it tries to access that pointer, it's a pointer to nowhere. You'll have to copy the byte array to the instance's memory. Sorry, this is only a sketch of how to do that: 1. You'll som...
May be a litte bit late but I would like what works for me: ``` import { FC, useState } from "react"; import { useRoles } from "../../hooks"; import Select, { SingleValue } from "react-select"; import { Option } from "../../types/types"; import { UseFormRegister } from "react-hook-form"; import { CreateUserDto...
For anyone finding this, I was trying to create a Devise user type that isn't authenticated by email and password. If you're in the same boat, remove the following from your model: `:validatable :database_authenticatable`. These two expect there to be an email and password to validate and authenticate against. R...
> Samples method Calling double number = 1.99; Console.WriteLine(string.Format("Amount: {0}", number)); Console.WriteLine(NumberTowords.NumberToWords(number.ToString(), "rupees", "paisa")); Console.WriteLine(NumberTowords.NumberToWords(number.ToString(), "dollers", "cent")); Console....
When I clicked the button, the console printed `render` **once**. expect: Because of `StrictMode`, it should print `render` **twice** <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-html --> <!DOCTYPE html> <html lang="en"> <head> <meta c...
I had the same problem. this happened because of a NVM misconfiguration. follow these steps to fix. check `node -v` on WSL terminal. command wouldn't work. check installed node versions by `nvm ls`. see `default -> N/A`? this is the issue. bind a node version to default by `nvm alias default <node_version>` check...
{"Voters":[{"Id":12957340,"DisplayName":"jared_mamrot"},{"Id":22180364,"DisplayName":"Jan"},{"Id":354577,"DisplayName":"Chris"}],"SiteSpecificCloseReasonIds":[18]}
I have this simple program: ```c++ #include <windows.h> #include <iostream> #include <stdint.h> int main() { WCHAR Filestring[MAX_PATH] = L"\0"; OPENFILENAMEW ofn = { 0 }; ofn.lStructSize = sizeof(ofn); ofn.lpstrFile = Filestring; ofn.nMaxFile = MAX_PATH; if (GetOpenFileNameW(&ofn...
SSIS package writes empty CSV file
|sql-server|ssis|
null
Follow these steps: 1. **Check Firebase Storage Rules**: Ensure that your Firebase Storage rules allow public access to the images. If the rules are set to deny public access, you won't be able to fetch the image URL without proper authentication. For testing purposes, you can set the rules to allow public read acce...
This looks like a bug to me. The animations involving rotation and offset are not respecting the animation duration and have a delay at the end. The delay is almost as long as the animation itself (and more noticeable if you give the animation a longer duration). As a workaround, you could use a `PhaseAnimator ` to ...
I am having the below snippet in inventory.wxi file. I have BuildVersion = 10.7.5896.4556 (an example reference). I want to have the formatted string in FinalVersion as 10.58.9645.56 (don't want to have 7 after the first . character). Below snippet is not giving the desired output. Need your suggestions how ...
The following: ``` interface IThing { virtual string A => "A"; } ``` Is the so called [default interface method][1] and virtual as far as I can see actually does nothing because: > The `virtual` modifier may be used on a function member that would otherwise be implicitly `virtual` I.e. it just an explicit...
I'm working on a Unity project where I need to draw on each face of a cube independently. However, when I draw on one face, the changes are reflected on all six faces of the cube simultaneously. I've implemented a drawing functionality using a Drawer script. This script manages drawing points between the mouse click...
I have this `Dropdown` Widget in a `Modal` and I cannot Change the Value in the Widget while I'm using `setState` and everytime I change the value, I should close the Modal and then the Value is Changed. this is my Code: var chosenRecentDay = 1; List<int> daysList = [for (var i = 1; i < 31; i++) i]...
Dropdown Values not change in Flutter Modal
|android|flutter|widget|dropdown|setstate|
{"Voters":[{"Id":2320961,"DisplayName":"Nic3500"},{"Id":14732669,"DisplayName":"ray"},{"Id":354577,"DisplayName":"Chris"}],"SiteSpecificCloseReasonIds":[18]}
Im trying to use: df_pca_filt = df_pca[df_pca['cdf'].astype(float) > 0.975] But it doesn't work. I ran the program once and everything was fine. But then I ran it again, everything was exactly the same and it stopped filtering I tried: df_pca_filt = df_pca[df_pca['cdf'] > 0.975] df_pca_f...
When you construct a Font via `Font font = Font.loadFont(myFontInputStream, myFontSize);` And set it programmatically e.g. like this ```java public class MyFXController { @FXML TextField myTextField; private static Font loadFont(String resourcePath, double fontSize) { final URL fontURL = ...
Drawing on 3D object at Unity
|c#|unity-game-engine|unityscript|
null
Creating subclasses would probably work better in your case, as you have seen. Instead of creating a class factory function, define the common behaviour of all derived classes in the base class and make specifics depend on class variables defined by subclasses. In an example which is similar to yours, this could ...
|python|json|indexing|fastapi|
[enter image description here][1][2]According to the network diagram above, the connection from company A's pc0 to the server system including gmail and facebook is successful, but company B's pc6 and pc7 cannot ping the server system. I tried to give ip from dns but it didn't work. The system works normally, all de...
Let's guess I have class on server like ``` class MyData { String statusA; String statusB; String statusC; ... Something field20; boolean canDoX() { return statusA.equals('z') && statusB.equals('y') } } ``` It is mapping from DB entity. Now for optimization was created new class ``` ...
The following: ``` interface IThing { virtual string A => "A"; } ``` Is the so called [default interface method][1] and virtual as far as I can see actually does nothing because: > The `virtual` modifier may be used on a function member that would otherwise be implicitly `virtual` I.e. it just an explicit...
Player freezes in position when swapped in for another player
null
_supabaseClient__WEBPACK_IMPORTED_MODULE_1__.supabase.auth.signIn is not a function
1. Add this line in rails_helper.rb file: ``` config.include Devise::Test::IntegrationHelpers, type: :request ``` The above line includes Devise's integration test helpers for RSpec request specs, allowing you to simulate user authentication in your tests. 2. Use Devise helper method sign ``` and add thi...
{"Voters":[{"Id":4722345,"DisplayName":"JBallin"},{"Id":476,"DisplayName":"deceze"}],"SiteSpecificCloseReasonIds":[11]}
**Question Body:** I'm encountering a peculiar issue in my Laravel API setup. I have a resource controller for managing student data, including deletion. When I make a DELETE request to `http://127.0.0.1:8000/api/student/1` (for example, with `id=1`), the first request successfully deletes the student and returns a ...
In ths some time,this program is useful.But it make exception as fllowing picture [enter image description here](https://i.stack.imgur.com/FYncJ.png) Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank you Thank y...
undetected_chromedriver urllib.error.URLError
|google-chrome|
null
As noted in the comments, an `awk` solution is simple. For example: ``` awk '!index($0,q) || ++c>n' n=3 q=please "$filename" ``` --- It is not very convenient to try to count with `sed`, although it is possible. Parameterising arguments is also complicated. Ignoring both those issues, here is a sed scrip...
My code keeps working for a couple inputs and then ends citing a segmentation fault. I do not do any dynamic memory allocation. It's supposed to be a game of reversi (aka othello). The include lab8part1 contains the stdbool and declares some of the functions. ``` #include <stdio.h> #include <stdlib.h> #include...
Your container's ID contains a space and they're illegal. <div id="Sign-In TempUI" Get rid of it. Also... document.addEventListener('DOMContentLoaded', Why are you in such a hurry? Use LOAD... document.addEventListener('load',
I had something in my mind to spice up the code that draw the pixels on the screen about what if I can make a condition that change the ***variable*** (dl register/data stack) value by 1, 2 and 5, then make the code to increase/decrease value by ***variable***. add dx, dl ; something like that, the assembler gav...
{"Voters":[{"Id":642706,"DisplayName":"Basil Bourque"},{"Id":4216641,"DisplayName":"Turing85"},{"Id":5389127,"DisplayName":"Gaël J"}],"SiteSpecificCloseReasonIds":[19]}
I have imported 1000 sample rows from various tables in a SQL server (lets call it SQLSever1). I have imported the rows into the second SQL Server(SQLServer2). When I execute the following query on SQLServer2 I get no results, however when I execute the same query on SQLServer1 I get the expected results. This...
To me it looks like you are not waiting for every single character to be sent out. You are just updating the uartData on every clock cycle without checking the uartRdy signal. So I assume the TX_SEND_WAIT state you commented out would be actually what you need. In that state (or create a second one) you just have to c...
{"OriginalQuestionIds":[30794235],"Voters":[{"Id":442760,"DisplayName":"cafce25","BindingReason":{"GoldTagBadge":"rust"}}]}
If you're writing something that does "the same thing, with just one thing changing at each step", that's a loop. You don't use separate `if` statements. Not even "when you're lazy": being lazy is an _excellent_ property to have when you're a programmer, because it means you want to do as little work as possible. Of c...
null
A simple fix could be using `x_compat=True` when plotting from pandas: ``` df.plot(y=["A"], lw = 0.2, ax = plt.gca(), legend=None, x_compat=True) ``` Output: [![enter image description here][1]][1] [1]: https://i.stack.imgur.com/ZsOOC.png
I'm writing a bash script to execute a python program with different values of parameters 'H' and 'K'. What I would like to happen is that only one instance of 'program.py' runs at a time and subsequent jobs are not started until the previous one finishes. Here's what I tried - ``` #!/bin/bash H="1 10 100" ...
Run Jobs Sequentially, in the Background, in Bash
|linux|bash|
null
I am trying to pull data using urllib and tableau_api_lib to create PDFs based off of filtered data of a view within Tableau. I have THAT part working, but I need help with looping through the list of IDs to then create a dictionary (that is needed to create the PDF), then off of those parameters, create output that ch...
I'm encountering some issues while installing Laravel 11. For more details, please refer to this photo (https://i.stack.imgur.com/KCAHW.png).I've attempted various solutions to resolve the problem, including modifying the php.ini file, but I am still looking for a successful solution. I'm trying to set up my first proj...
Download failure of Laravel framework due to curl error 28
Laravel API DELETE Requests of Resource Controller and Getting 404 Not Found Error (for Second time Delete)
|laravel|http-status-code-404|laravel-routing|laravel-10|laravel-resource|
null
In kotlin i use this: private fun isConnected(): Boolean { val connectivityManager = applicationContext.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager val network = connectivityManager.activeNetwork val capabilities = connectivityManager.getNetworkCapabil...
I used the Glance API in Jetpack Compose to make a homescreen widget. However, when used, the button fills up the whole widget. Did as mentioned in this documentation - https://developer.android.com/develop/ui/compose/glance/create-app-widget implementation ("androidx.glance:glance:1.0.0") implementat...
Made a widget with glance API in Jetpack Compose. Button filling the whole widget
|android|kotlin|android-jetpack-compose|android-appwidget|glance-appwidget|
null
Here I just need to look up three tables first need to get all subjects from the subject table according to classid and boardid then from the content table we need to get all topic and content details and group them by topicid(please look into expecting output). then each topic details should contain child details whic...
|node.js|mongodb|mongoose|mongodb-query|aggregation-framework|
`` from keras.models import Sequential from keras.layers.core import Dense, Flatten from keras.layers.convolutional import Conv2D, MaxPooling2D ` ` ModuleNotFoundError Traceback (most recent call last) <ipython-input-35-e0ce7722f83a> in <cell line: 2>() 1 fro...
I created custom theme by [theming system guide][1], but don't know how to use new theme in my project. I am not using mvc, mvvm. In my project i connect extjs files in this way: <link rel="stylesheet" type="text/css" href="http://localhost/ext-6.0.0/build/classic/theme-neptune/resources/theme-neptune-all.css"> ...
null
I created custom theme by [theming system guide][1], but don't know how to use new theme in my project. I am not using mvc, mvvm. In my project i connect extjs files in this way: <link rel="stylesheet" type="text/css" href="http://localhost/ext-6.0.0/build/classic/theme-neptune/resources/theme-neptune-all.css"> ...
I'm developing a mobile application in React Native. The application has the `<TextInput/>` for entering SMS codes: ```js const [pinCode, setPinCode] = useState(''); const pinCodeRef = useRef(); // crutch so that the user's keyboard opens automatically useEffect(() => { const timeout = setTimeout(() => { ...
I'm developing a project on Raspberry Pi Pico W and I'm trying to setup a custom Wi-Fi Manager using [AsyncWebServer_RP2040W library](https://github.com/khoih-prog/AsyncWebServer_RP2040W) and [AsyncTCP_RP2040W](https://github.com/khoih-prog/AsyncTCP_RP2040W) on [Arduino Pico](https://arduino-pico.readthedocs.io/en/late...
It's because in `GetAllProducts`, type `T` is not decided yet. So it is impossible to assign `[]models.Products` to `T`. You can assign `models.Products` to `T` if `T` is decided, like this. ```golang db := DbConnection[Products]{} var re []Products re, _ = db.GetAll() fmt.Println(re) ``` I reproduce ...