instruction
stringlengths
0
30k
βŒ€
Is there a way or any documentation describing how to turn a Kotlin Multiplatform app for Windows Desktop into a "Single Instance App"? I want to have it so if a user clicks on the app's launcher/executable when it's already running, it just pulls up the existing running instance to the user's view, instead of start...
Kotlin Multiplatform Desktop Single Instance App
|kotlin-multiplatform|single-instance|
Just to cover my scenario of encountering this error, in case it helps anyone else... I was renaming my *public* schema to *public_backup* then restoring a dump to a recreated *public* schema. However on rename, the postgis extensions were staying associated with *public_backup*. You should be able to follow...
**C++ stoi throws out_of_range while converting int** It reports that you tried to access elements out of bound means out_of_range. It may happen any member functions which are accessed by bound-checked member functions like std::bitset, std::basic_string, std::vector, etc. I think you should change the type o...
I am messing around with canvases in TK, and have this small example of a black rectangle that follows the cursor: package require Tk package require Thread ttk::frame .c canvas .c.card .c.card create rectangle 0 0 1000 1000 -fill green .c.card create rectangle 0 0 100 200 -fill black -t...
C# Event Handler Issue Updating Control
|c#|eventhandler|
This was all due to custom error handling in a parent site. Adding something like: <httpErrors errorMode="DetailedLocalOnly"> <clear /> </httpErrors> Fixed my issue.
|excel|vba|outlook|
You are probably using an `sh` terminal. The `sh` shell typically presents a minimalist prompt, containing only the $ symbol, while `bash` often displays additional information such as the current username and working directory in its default prompt, making it appear more complex. To get it to not show the line "...
|excel|vba|import|ms-word|
I think one of the simplest responses is to just create a random graph and then sequentially connect node n to node n+1. This produces a random connected graph. G = nx.dense_gnm_random_graph(15, 5) prev_node = None for node in nx.nodes(G): if prev_node != None: # we need to compare with ...
|vba|ms-word|vbscript|createoleobject|
|excel|vba|ms-word|
|vba|outlook|outlook-2016|
I want to revert an entity: ```php // use Gedmo\Loggable\Entity\LogEntry; //... $repo = $this->entityManager->getRepository(LogEntry::class); $repo->revert($pizza, 1); // ... ``` But I get an error: > The class 'Gedmo\Loggable\Entity\LogEntry' was not found in the chain configured namespaces App\Entity ...
I have a SQL query ``` SELECT M.EMPLOYEEID, LISTAGG(L.NAME, ',') WITHIN GROUP (ORDER BY L.NAME) AS Locations FROM EMPLOYEEOFFICES M LEFT JOIN OFFICELIST L ON M.OFFICELISTID = l.officelistid GROUP BY M.EMPLOYEEID ``` The Linq equivalent I am trying to run: ``` var empOfficeLocat...
Looks like Microsoft developer one more technology which is not completed solution. And if you want to have some solid solution - you have to use third party providers like Azure Entra B2C. All that mess with they made in authentication is on purpose. To make simple things - hard. If you want to have something solid - ...
We can do that with a [lifecycle precondition][1] in a null_resource see sample code below ``` lang-hcl variable "sc1_default" { default = "false" } variable "sc2_default" { default = "false" } variable "sc3_default" { default = "true" } variable "sc4_default" { default = "true" } re...
I am trying to deploy a next.js app to my own web server managed by coolify, and none of my NEXT_PUBLIC_ variables are exposed even though I check the build variable checkbox in coolify's environment variables. Has anyone gotten this to work?
Is there a way to have NEXT_PUBLIC_ environment variables exposed when running inside a docker image managed by coolify?
|next.js|
How about you try this method: **1st**, Create a backend tab (Dropdown List Backend), and a column (Dropdown List) that will contain the values for your dropdown. Note that each of the cells in this column should only correspond to its equivalent dropdown cell in Dropdown Input Tab (Please see the sheet). **2nd*...
Just set the major unit to 1 so the axis counts 1 - 8 by 1s. Add to the x-axis setting ``` chart.set_x_axis({'name': 'X Axis'}) ``` ``` chart.set_x_axis({ 'name': 'X Axis', 'major_unit': 1, # set major unit to 1 }) ``` [![Chart with major unit set to 1][1]][1] [1]: https://i.stack.img...
I don't have much Json serialization/deserialization, but this has become a real issue and I can't help feeling that I'm missing something... When I serialize an object, which has an object as a property, the object type isn't retained and therefore when deserialized isn't the correct object type. How do I ensure th...
If you hit multiple purchase events with the same transaction id, this will happen. Assume we hit the event 5 times 1. It will appear 5 times in your Bigquery Database Table. 2. GA4 UI will display 5 conversion events. 3. When you see transaction-level report in Explore, you will find only when transaction but ...
[sql.js](https://github.com/sql-js/sql.js/) is a sqlite client for javascript, based on the original sqlite compiled to WASM limitation: the full database is stored in memory, so the database should be smaller than 100 MB. ideally, sql.js should support IndexedDB as an on-disk storage backend, to reduce memory u...
This solution is **CORRECT**. But it does more than one `log(N)` time operations on the `unordered_map` (which uses Red-Balck-Tree implementation in the standard library) and this is a sub-optimal solution: ``` void assign(K const& keyBegin, K const& keyEnd, V const& val) { if (!(keyBegin < keyEnd)) r...
The problem is before adding a new container, after I added the max number of stock-details-container and I remove one of it then I changed the selected value of the other containers. When I add a new container, the new added container disabled the previously selected item in the other containers even if it is not thei...
Removing the selected options to other option
|laravel|
null
{"Voters":[{"Id":14732669,"DisplayName":"ray"},{"Id":1431750,"DisplayName":"aneroid"},{"Id":839601,"DisplayName":"gnat"}],"SiteSpecificCloseReasonIds":[13]}
From what I understand, the primary method to accomplish this is by using the z-index. Could you share the reasons why z-index isn't working in your case? Also, don't forget to organize your table data by using table rows (< tr >). Are you looking to have a background image behind your table? If so, I suggest enclos...
for some reallly odd reason css doesen't apply
|css|python-3.x|flask|
null
Is it possible to change the sugestions focus of the search (ctrl+p) or any command palette commands in vscode using tab, I tried lots of things but didn't get any exact command which solves my issue? [Image of vscode search window](https://i.stack.imgur.com/k0Aj9.png) Want an keyboard shortcut json which helps t...
Is it possible to change the sugestions focus of the search (ctrl+p) or any command palette commands in vscode using tab, I tried lots of things but didn't get any exact command which solves my issue? [See image](https://i.stack.imgur.com/k0Aj9.png) Want an keyboard shortcut json which helps to solve this
The issue here is that the functions `draw_objects` and `run_game_loop` are not correctly indented, leading the python interpreter to believe that they are not a part of the `Game` class. For example, in the below code, (taken from [here][1]) ``` class Bag: def __init__(self): self.data = [] d...
|php|html|forms|file|
Hello StackOverflow community, I'm encountering issues while attempting to generate PDFs using Playwright within a Docker container for my AdonisJS application. Despite successful local development, I faced challenges with Dockerizing the project and encountered issues with TailwindCSS styles not rendering correctly...
Trouble generating PDFs with Playwright in Docker container
|docker|tailwind-css|vite|playwright|adonis.js|
I am experiencing a problem with displaying button icons in the QDialog window. This problem occurs when trying to run the window from the main file, knowing that the QDialog window file is not in the same path as the main file. This is the code to import the design from the __init__ file inside WindowAdd ``` from...
Tcl/TK: how to prevent screen tearing?
|tcl|tk-toolkit|
I suspect your columns need to be dynamic. If so, DYNAMIC SQL would be required, as you may know by now, SQL Server is declarative by design. **Example** Declare @SQL varchar(max) = ( Select string_agg(col,',') From (Select distinct id,Col = quotename(concat(PartNum,'_',ID)) Fr...
I'm developing a custom React table component with TypeScript, and I need to ensure the data passed as props is correctly formatted. The component accepts two props: - `tableHeadings`: An array of objects, where each object has an `id (string)` and a `title (string)`. - `tableData`: An array of objects representi...
Can't revert a Loggable entity because of a Doctrine repository error
|php|symfony|doctrine|gedmo-loggable|
I'm getting historical data from the ETH/USD feed 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419 There are currently 6 phases, but I can only fetch data if I start at phase 3. Is this because phase 1 and 2 has no data, or I'm doing something wrong ? I'm using the https://docs.chain.link/data-feeds/historical-data docume...
Can't get phase 1 and 2 phaseId data from feed
|chainlink|
null
|vba|outlook|inbox|
I am using NextJs 14 ( App Router version ). I want to create a login and register page layout and a separate layout for the main application. My root layout looks like this export default function RootLayout({ children }) { return ( <html lang="en"> <body className={rubik.className} ...
two layouts for NextJs ( app router ) application
|next.js|
Yes! The Angular `EventEmitter` must be used in a child component that contains the template. So you would define the `EventEmitter` like: `@Output() validate = new EventEmitter<boolean>();` Try not to use `onClic` as your function name. Make it more meaningful/readable like `validateOnClick()`; validateOn...
The force simulation doesn't track the circles in the SVG, it isn't aware of them. Changing the cx/cy of a circle therefore will have no effect on the force simulation. The force simulation tracks nodes (and therefore link endpoints) via the d.x and d.y properties of the items in the data array. Since these properti...
Your error is to use a **uninitialized variable**. This is the relevant excerpt of your code (without the distracting comments; please translate or remove them the next time): ```c int socket_fd = socket(AF_INET, SOCK_STREAM, 0); /*...*/ fd_set base_rdset; fd_set rdset; /*...*/ ...
I wanted today to compile my c++ code on windows, I get an undefined reference to all box2D part of my code. Here's my Makefile : ``` linux: main.o g++ main.o -o main -O2 -Wall -lbox2d -lraylib -lGL -lm -lpthread -ldl -lrt -lX11 ./main windows: g++ -I../include -L../lib ../main.cpp -o main.exe -O2 -Wa...
Json Serialize/Deserialize to retain the type of property object within a class
|c#|json|
{"Voters":[{"Id":3440745,"DisplayName":"Tsyvarev"},{"Id":13447,"DisplayName":"Olaf Kock"},{"Id":2511795,"DisplayName":"0andriy"}],"SiteSpecificCloseReasonIds":[18]}
I'm trying to make a POST request to a certain API using Python's requests library. When I send the same request using curl from the command line, it works as expected. However, when I try to replicate the request in Python, it doesn't seem to work correctly. Here's the curl command that works: `curl -X POST -H "Co...
Issue with sending POST request using Python requests library
|python|api|rest|curl|python-requests|
null
I am using Extjs 7.4 Modern with Sencha Architect. I have created three themes inherited from Neptune. I would like the user to be able to select the theme. I don't mind reloading the app after they have selected the theme to use. This has been asked before, but: 1. I could not see how to apply that answer to an ...
I'm having trouble accessing a custom header named X-Subject-Token in the response of an AJAX request using jQuery. Here's my code: async function submitHandler(e) { e.preventDefault(); let BASE_URL = "http://{my-ip}:3005" if (usernameInput.value && passwordInput.value) { ...
Trouble accessing custom header in AJAX response using jQuery in Fiware Keyrock
|jquery|fiware|fiware-wilma|fiware-keyrock|
null
[This is the data table I am working with] (https://i.stack.imgur.com/5pQCA.png) [This is the formula I need to apply in excel](https://i.stack.imgur.com/3Vih3.png) I want to clarify some notations. k_p_x means the probability that the individual aged x will survive for the next k years. p_x would simply as...
How would I apply a rather complex summation formula like this in excel?
|iteration|multiplication|
null
The *Telegram Bot API* has a special method to retrieve data about a chat member: *[GetChatMember][1]* (=> `bot.get_chat_member(chat_id, user_id)` in *Aiogram*). This method returns the object inherited from the [*ChatMember*][2] object. According to the [documentation][3], there are 6 types of chat members, but we...
I am integrating ThriveCart Checkout For payment in my laravel project. I implemented Creating and Cancelling subscription and I want to do some test. I think creating subscription seems to succeed. When I click on 'Select this plan' on my web page [enter image description here][1] [1]: https://i.stack.img...
When I go on shellcheck.net it says to add [ before and after the argument. (e.g if [ "$VHS" == "exit" ]; then but when I execute and type rules it says : fbd.sh: 14: [: exit: unexpected operator fbd.sh: 19: [: exit: unexpected operator fbd.sh: 22: [: exit: unexpected operator fbd.sh: 30: [: exi...
## [Node.js 17 is here with new promise-based APIs for `readline` module][1]: ```js import { createInterface } from 'node:readline/promises' import { stdin, stdout } from 'node:process' const rl = createInterface({ input: stdin, output: stdout }) const answer = await rl.question('What do you think of Node.js...
The description of what the database for is: Stock Management System This system aims to regulate and track inventory-based materials, allowing the organization to keep track of material levels and thus avoid shortages and improve purchases and storage Import Procedures The organization evaluates the inventory and ...
I need help in creating a ER model for my database
|database|entity-relationship|
null
To make sure things move smoothly when you scroll or change the size of your screen, like when those bars pop up or disappear on your phone, you can use a mix of CSS transitions and JavaScript. This Code should solve the problem. HTML: <div id="container"> <div id="content">Main Content</div> <b...
please fix this code i have tried everything, gum lib error
|linux|bash|shell|
I am trying to figure out how to retrieve the rest of the data associated with the found SSN (name, phone, email, salary). Once I am able to pull that data based on the matched SSN, then i want to offer the chance to edit it. But i cant figure out how to match the SSN and retrieve the info associated with it. ``` ...
tryin to write a function that searches for SSN in a dict, and if that SSN is found, to retrieve all the data associated with that SSN
|dictionary|search|
null
The .pyx file is a source file used to build the actual extension code file (which will have the extension .so or .dll); it is not used at runtime by Python. To make your package importable in Python you need to either (1) run `pip install .` and actually install the build artifacts or (2) locate the built .so file and...
|c|segmentation-fault|raylib|
I am trying to render cards based on some condition using switch case, but the components to which I am not subscribed to using the store variable from redux-toolkit is also getting rendered and this switch is causing to unmount and mount the component, whereas when I use jsx instead of switch it's not getting mounted ...
This is my code ```jsx import React, { useState } from 'react'; import { Link } from 'react-router-dom'; import { SidebarData } from './SidebarData'; import { LuMenu } from "react-icons/lu"; import { RxCross2 } from "react-icons/rx"; function Navbar() { const [sidebar, setSidebar] = useState(false) ...
|javascript|reactjs|react-router|react-router-dom|