instruction
stringlengths
0
30k
|javascript|node.js|typescript|next.js|cors|
`your text`from tkinter import * `your text`from tkinter import messagebox as smxg ``your text``root = Tk() `your text`root.geometry("675x456") `your text`root.title("To Do List") # Create a Frame to contain your widgets # Function to link the scrollbar to the frame's yview `your text`var_ = {} `y...
i am begginer in progamming and i dont know why in this code scroll bar is not connecting
|scrollbar|
null
This is an extension to this [post][1]. My DataFrame is: import pandas as pd df = pd.DataFrame({ {'main': ['x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'y', 'y', 'y', 'y', 'y', 'y', 'y'], 'sub': ['c', 'c', 'c', 'd', 'd', 'e', 'e', 'e', 'e', 'f', 'f', 'f', 'f', 'g', 'g', 'g'], 'n...
SQL: Assigning occasion numbers to GPS points when visiting places based on conditions
How do I get a caller's HTML "Label" surrounding my Custom Element to bubble its "click" events to my shadow root? Is there not something in the shadowRoot that I can listen for Click events for my LightDOM label? I believe this [clicking labels][1] answer comes close but I am inheriting from HTMLElement. In the ...
{"Voters":[{"Id":16217248,"DisplayName":"CPlus"},{"Id":17562044,"DisplayName":"Sunderam Dubey"},{"Id":10802527,"DisplayName":"K J"}]}
Unfortunately, D3 canonical examples are generally found on Observable, which while interactive and useful, doesn't translate to regular 'ol javascript without a change or two. First, the `return svg.node()` is used by Observable to return a detached DOM element in order to display it. The detached node is created ...
As explained in [this bug report][2] : > This is a known limitation of ext/mysqli when using libmysql (always in 5.2 and previous) and when libmysql is enabled with 5.3 . The reason is that the server sends not too specific metadata about the column. This longtext has a max length of 4G and ext/mysqli tries to bind ...
this is error message: First: `Traceback (most recent call last):` `File "/usr/local/lib/python3.12/site-packages/flask/app.py", line 1463, in wsgi_app` `response = self.full_dispatch_request()` Second: `GET500921B1.1 sChrome 123 ``https://flask-selenium-app-qs6rhz6vcq-du.a.run.app/` I created a dynami...
It works fine locally, but why does a Flask error appear when I upload it to Google Run?
|python|selenium-webdriver|flask|
null
I have column A with a dropdown menu and a single option of "Yes". I want to limit the number of entries to 20, and ideally when that number is hit there is a pop up (similar to how data validation error works) telling the user why they can't select any more. [![screenshot][1]][1] [1]: https://i.stack.imgur.c...
How can I limit the number of dropdown entries in a column in Google Sheets
|google-sheets|
I am new to CSS, and I need help. My problem here is that no matter what I do, the Home button doesn't come to the middle of the screen. Can you please help me with that? Here is my code. By the way, I am working with Bootstrap 5 classes but as much as I tried to fix it with those classes I think I need to fix it with ...
I am making my clg assignment and which is a calculator for converting bits,bytes,mb,kb,gb,tb,eb,pb into each other. Right now I am converting my BIT value (1,000,000) into TB using a long double data type because float is giving 0.0000 as definitely the result is out the range. But while I am using long double, its gi...
Add interactive vertical scale within <td> elements?
|html|css|reactjs|html-table|visualization|
Can anyone guide me with this error: ``` // ADX and ATR Calculation adx = ta.adx(adxLength) // Average Directional Index atr = ta.atr(atrLength) // Average True Range ``` > Error at 19:7 Could not find function or function reference 'ta.adx'
|pine-script|pine-script-v5|
WordPress - Add submit button to admin toolbar
null
{"Voters":[{"Id":1427878,"DisplayName":"CBroe"},{"Id":2756409,"DisplayName":"TylerH"},{"Id":466862,"DisplayName":"Mark Rotteveel"}]}
How can I convert this Android BLE code to Objective-C? ``` public void setCharacteristicNotification(BluetoothGattCharacteristic characteristic, boolean enabled) { boolean bleRes = tstBluetoothGatt.setCharacteristicNotification(characteristic, enabled); BluetoothGattDescriptor descriptor = characterist...
How to set value the descriptor of iOS BLE in Objective-C?
I wouldn't consider the solution you proposed a hack. We have multiple services following a similar pattern and it's very effective. Take a look at [ssm-env][1]. You should use this tool in your ebextensions instead of trying to rebuild the functionality. [1]: https://github.com/remind101/ssm-env
null
It seems that you would want to configure the `aerospike.transaction.rate` property (per the doc on the [performance configuration][1] section). From the description of that parameter, the total write qps should be limited to `aerospike.transaction.rate` x `number of spark partitions`. By mentioning that you are runnin...
window.confirm(); truly works. Dont know why confirm(); alone doesn't work on react
{"Voters":[{"Id":23720082,"DisplayName":"DN Oomsoo"}],"DeleteType":1}
```html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="./style.css"> <script src="https://d3js.org/d3.v5.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/t...
issue with Loading TopoJSON File in D3.js: Map Not Displaying Properly
|javascript|d3.js|topojson|
null
Upon looking and researching online it does seem that there a numerous way of doing this but not sure if it fits the way that I want it for. Personally I would still like my dates as this format "3/30/24". I am extracting data from some which has numerous amount of data and everything works as expected but when I tried...
I have created a music app using flutter I want to store user favorites and recently played songs in Firebase fire store so provide the code to store the data in fire store an I am getting error: > ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(java.lang.Exception: Failed to...
You must simply start at the highest-order bit to count the number of common bits. That would be your prefix, zero the uncommon bits, and the number of common bits is the prefix length. 192.168.0.0/24 = 110000001010100000000 00000000000 192.168.1.0/24 = 110000001010100000000 00100000000 192.168.2.0/24 ...
you can use "SfBarcodeGenerator" in flutter example Widget build(BuildContext context) { return MaterialApp(`enter code here` home: Scaffold( body: Center( child: Container( height: 200, child: SfBarcodeGenerator( value: 'www.syncfusion.com', ...
Thanks to @Ahmed for the help, he put me on the right track. The full call I needed to make was the following: async function fetchDataServerSide(url: string): Promise<Response> { 'use server' let fetch_path = process.env.NEXT_PUBLIC_BACKEND_URL + '/api/' + url const options: Req...
null
I quite struggle while trying to solve problems. I'm in beginner phase and it takes lot of time for me to solve a single question, and many times those solutions are not on their best form. So, I'm always fighting with intrinsic thought to ask gpt for the solution or, best go through tutorial, hour long. Can anyone hel...
How do I build up logic to solve problems and further optimize the solution to its best form?
How can I get a pixel from a tile?
|c#|maptiler|
null
I figured it out. The issue was the script was running before the loading js was. I couldn't change the order of the code in the theme, so I added a delay when the code is run on click. // Update reveal with all .post-list-card items function updateReveal() { setTimeout(function() { const...
I enter text in search text fields and then press submit. The text is appended to a baseURL2 and sent. The JSON is parsed and displays select objects in a recyclerview.This all works great. Now I want to click a value that is in the recyclerview and append to another URL and send. Then parse that response and displ...
In Android Studio, how make an item in the recyclerview open another activity when clicked?
|android-recyclerview|android-activity|onclicklistener|new-operator|
null
I would like to have a set of 2 or more TabBars, and depending on the loggedin user role I would like to show the first set of tabbars or the second I'm not sure if this is the right approach or if there is something better so for example if the logged in user is User.UserTypeId = 2 then show `<tabbar><Shell...
Values getting Overflowed while converting Bit into TB
|c|windows|codeigniter|overflow|long-double|
null
null
null
null
null
I've been following a tutorial for creating a bootloader but whenever I run Bochs for testing the OS I get different characters from what I expected. I expected to get a `Hello, world` but I get `´°» 1Ò½|ß` those caracters instead. I'm quite new to programming in assembly so I apologize in advance because I may need mo...
x86 Wrote a boot loader that prints a message to the screen but the characters are completely different to what I expected
|assembly|x86|nasm|x86-16|bootloader|
null
I have been using the text Fruhwirth-Shnatter (2006) for analytic formulas on normal mixture distributions. I implemented the formula for the fourth moment but, after converting it to excess Kurtosis, I am unable to get close empirical results with Monte Carlo sampling. What is the error in my code / the formula? [!...
else if structure does not return true when it should
|pine-script|pine-script-v5|
To solve this issue, I had to specify a domain name in the IP address details > Configuration > DNS name label (optional) Once specified I could create the API Management Instance.
It's a bit hard to understand what you're asking. You're actually casting `setData` as a variable `state` (casting a verb as a noun), and calling it twice. The second parameter for `useEffect(() => {}, [])` is a list of dependencies that React uses to determine if it should re-create the callback function. I don't t...
Where could be a mistake? ``` // Plot der dynamisch angepassten Fibonacci-Niveaus for i = 0 to NumAdditionalLevels - 1 plot(additional_levels[i], color=color.new(#ffffff, 0), linewidth=1, trackprice=true, show_last=1, title=f"F_level_{i+1}") ```
|pine-script|pine-script-v5|tradingview-api|
I encountered same error when calling apply_mapping function. What I observed there must be no space between precision and scale. This will throw error decimal(6, 2) whereas following not decimal(6,2) I know that in question there is no whitespace in a code but there is whitespace in error messag...
Another way to do this, if you have pgAdmin and are comfortable using the GUI is to go the table in the schema and right click on the table you wish to import the file to and select "Import" browse your computer for the file, select the type your file is, the columns you want the data to be imputed into, and then selec...
null
Another way to do this, if you have pgAdmin and are comfortable using the GUI is to go the table in the schema and right click on the table you wish to import the file to and select "Import" browse your computer for the file, select the type your file is, the columns you want the data to be imputed into, and then selec...
I am just wondering how to use data from an existing python variable (defined in a .py script) in matlab. Specifically, I would like to use the variable 'commandv' that stores an array defined in abfdata.sweepC, given the following script in python (stored as 'get_command-Voltage.py': ``` import pyabf import ma...
Export pandas to csv data but before doing so sort date by least to greatest
|python|pandas|
null
Forking will create copy of that repo under your own GitHub profile. Than you will be making changes in your own repository copy, testing everything and finally opening [Pull Request to original repository](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pu...
I'm trying to move my arrow keys in a square in Roblox, but I need help with coding an AutoHotkey script to do that. My goal is: 1. Start moving in a square 2. Stop it when I press the hotkey again Any suggestions? I tried using Tinytask, but that didn't work, because you have to get it perfectly aligned. I a...
How do I move my arrow keys in a square until I stop it in AutoHotkey?
|autohotkey|roblox|
null
I had exactly the same issue and came here looking for an answer. I think the problem is that you are actually basing your `TestRetailer` test case on Python `unittest.TestCase`, not `django.test.TestCase`. Your code begins... from django.test import TestCase import unittest from deals.models i...
Upon looking and researching online it does seem that there a numerous way of doing this but not sure if it fits the way that I want it for. Personally I would still like my dates as this format "3/30/24". I am extracting data from some which has numerous amount of data and everything works as expected but when I tried...
|c++|dsa|
null
|zeromq|
I am using docker with docker compose, this worked for me: RUN docker-php-ext-install calendar then: docker compose build app docker compose up
The reason why "Mary" is not getting sorted, is because is already in the sorted order. `.sort()` looks at the characters value. Any capitalize char will always have smaller value compared to any lowercase char and this is due their [ASCII][1] value. according to the ASCII table the values for A-Z: 65-90 whi...
I tried all answers none of them are working. Here is https://codesandbox.io/p/github/AvinashDalvi89/react-cerbos-demo/draft/cocky-sara?workspaceId=a523bfa6-50f7-4668-9014-89bee8aa31d8 codeplayground is available.
|c++|
I know a bit. I'll give you this example and I'll fill in an explanation about what I am doing later. #!/usr/local/bin/ksh # This will do a show and tell using the typeset -T feature # of ksh # Sat Mar 30 01:01:35 AM EDT 2024 # typeset -T TheTime_T=( typeset -S skew=0 f...
In MAUI how can I Show different appshell tabbars depending on the user role?
|c#|ios|mobile|maui|
null
I am new to mobile development. Few months ago I developed a mobile app for Android using React Native Expo and submitted it to the Google Play Store. Now I need to redevelop this app in Flutter. How can I update this app on Google Play? How does app signing work, and what do I need for it? Before Expo did app Signing ...