instruction
stringlengths
0
30k
βŒ€
*Note the issue I'm having is with the firebase emulator* It appears that I am unable to rewrite a request where the requested URI is `/baz` to a JSON file called **baz.json**. I would expect that I should be able to rewrite such that the JSON content in the path to **baz.json** would be provided in the response. ...
Half Sum Element
|python|
null
I would like to understand if the Function as per the example below results in greater usage of memory/computing in Pine Script v5. BASE CASE: ``` s_15 = ta.sma(close,15) s_20 = ta.sma(close,20) X1a = s_15>s_20 s_100 = ta.sma(close,100) s_120 = ta.sma(close,120) X2a = s_100>s_120 ``` USING FUNCTION: ...
is this User Defined Function using more memory/computing in PineScript v5?
|pine-script|pine-script-v5|
null
It is impossible. > The only way to access a private property is via dot notation, and you can only do so within the class that defines the private property. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_properties So I can suggest you to redesign your solution according to ...
I use firebase authentication in my flutter app. When I test it in the android emulator, the user is logged out once I re-deploy the app over the IDE. On a real device the user gets logged out after a few hours. How can I prevent that? I saw that some people store the user credentials (e-mail & password) in the shared ...
I am trying to share state created with zustand from a mono-repo shell application to an external app outside the mono-repo which is also created using monorepo. ```import { create } from 'zustand'; type Store = { count: number; increment: () => void; }; const sharedStore = create<Store>((set) => ({ ...
@Component public class InitialDataLoad implements CommandLineRunner { @Autowired private ProductRepository productRepository; @Autowired private Faker faker; @Autowire...
Why Bind9 responds with latency for RPZ rule?
|dns|bind|bind9|
So I have this WPF ReactiveUI Application that displays an image and on hover you should see the pixel value under mouse position. https://github.com/SebiCiuca/Image-Pixels I posted here a fully working example because the code necessary for this is a bit much to post here in the question, so I will try and stic...
252 values for a 251 pixel image
|c#|wpf|image-processing|
I am trying to release my first app that I created using Unity 2021. I had a few private releases of the app sent to google and was passing all tests with my first releases. In a recent release I added the Advertisement Legacy unity package to my app to include advertisements in my game. Since that release and anoth...
Will a stability crash on one device in the google play pre launch report prevent me from being able to move my app to production?
|android|unity-game-engine|google-play-console|
I have a table that looks like this: ```sql id int IDENTITY(1,1) {auto increment} foreignKeyId int autoId int {not unique} ``` I want to make the `autoId` column auto-increment based on the `foreignKeyId`, so when a row is inserted with let's say `foreignKeyId = 1`, the `autoI...
Nest.js service structure for API integration
|unit-testing|nestjs|
I'm encountering an issue with the PUT method in my Laravel application when trying to update a student record. Whenever I attempt to make a PUT request to update a student's information, I'm receiving the following error message:The PUT method is not supported for route students/10/edit. Supported methods: GET, HEAD. ...
Laravel PUT method error: The PUT method is not supported for route
|php|laravel|
**Issues**: 1. issue 1: `echo "##vso[task.setvariable variable=shouldrun;isOutput=true]true"` double quotes missing 2. issue 2: `parameters` should be provided explicitly, and its value needed already exist at the beginning, can't be the value during the run-time. (as your code it be produced at the mid-process) ...
I got error Invalid `Podfile` file: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' pod 'MBProgressHUD' becasue I was declaring Pod files like pod 'SlideMenuControllerSwift', pod 'MBProgressHUD' pod 'SDWebImage' there is one "," (comma mark) in above podfile n...
You cannot achieve that with just flex box, you have to give max-width to container, [here][1] you can learn more. By the way I recommends you to use grid layout in this case [1]: https://stackoverflow.com/a/60870221/23468226
You can use `shape()` to efficiently get the height and width of the DataFrame, and then grab only the height: ```rust use polars::prelude::*; let df = df!["a" => [1, 2, 3, 4], "b" => [10, 11, 12, 13]].unwrap(); assert_eq!(df.shape().0, 4); ```
There will be no support for App router in the future either https://github.com/module-federation/universe/issues/1183#issuecomment-2003744775 https://github.com/module-federation/universe/pull/2002#issuecomment-2003747435
The jQuery code is designed to prevent users from going back (and is compatible with Chrome, Firefox, Internet Explorer, and Edge). <!DOCTYPE html> <html> <head> <title>Brake/Disable browser back button</title> <script src= "https://code.jquery.com/jquery-3.6.0.min.js"> </script> </head> ...
Firebase hosting using emulator not rewriting to destination
|firebase|firebase-hosting|firebase-tools|
I want to create a div that has width 100vw and its height starts low and progressively it gets higher. Something like this. [![enter image description here][1]][1] [1]: https://i.stack.imgur.com/fYrzo.jpg
CSS div height that gets progressively higher
|javascript|python|css|reactjs|
|regex|perl|
null
I need to convert some Oracle query strings to be Postgres compatible. Some of the queries use the Oracle TO_NUMBER function which isn't valid in Postgres. So I need to remove all occurrences of the TO_NUMBER function in the sql queries, and replace with an explicit cast to integer... Here is an example SQL to be co...
MySQL regex implementation does not support lookahead patterns. Here's a solution that works: SELECT REGEXP_REPLACE(REGEXP_REPLACE(myStr, '\\([^)]*\\)', ''), '.*/([[:digit:]]+).*', '$1') AS `result` FROM myTable; Output given your example strings, tested on MySQL 8.3.0: +--------+ | result...
The best you can get is something like the following in [settings.json](https://code.visualstudio.com/docs/getstarted/settings#_settingsjson) (some lines commented out and left to taste): ```json // "scm.showChangesSummary": false, // "scm.showIncomingChanges": "never", // "scm.showOutgoingChanges": "never", "gi...
I have a dial plan and an AGI script to initiate two calls from my sip client by calling *1337 and then give the two numbers I want to call like this NUMBER1#NUMBER2#. The point is that I want to call two numbers at the same time and bridge them into a conference room where I am already waiting, to have a three-way cal...
Flutter: Keep firebase user logged in forever until manual log out
|flutter|firebase-authentication|
I wrote a PHP function which can be used without Phar. It also works with long filenames and was tested with big TAR archives. Compatible with PHP 5 to 8. Usage: ``` <?php $ret = tar_extract ("filename.tar", "./path-to-extract/"); if (empty ($ret["errText"])) { print ($ret["fileCnt"]." files extracted.");...
{"Voters":[{"Id":635608,"DisplayName":"Mat"},{"Id":874188,"DisplayName":"tripleee"},{"Id":1940850,"DisplayName":"karel"}],"SiteSpecificCloseReasonIds":[18]}
I am trying to learn Django and have encountered a problem I can't figure out for the life of me. In this project I have an app called `projects`. In this app I have one model called `Projectinfo` and one called `Buildingtypes`. Every project can have one or more building types. What I am trying to do is to write a ...
Calculate the diameter of minimum enclosed circle
|javascript|d3.js|circle-pack|
|java|java-17|caffeine-cache|
i want when a user clicks on the button a pdf is generated "not downloaded" and sent to the email of the current logged in user unless the the user is not using an email then download this is my sample code, am able to grab the email and send if there is no attachment, i don't what wrong if its the way am generatin...
Send PDF file as attachment using php mailer
|ajax|phpmailer|jspdf|email-attachments|
null
I try to add PO item sublist fields to inbound items sublist and my code doesn't work. Error:Cannot read properties of undefined (reading 'load') function pageInit(scriptContext) { var purchaseOrder = scriptContext.record.load({ type: record.Type.PURCHASE_ORDER, id: 'purchas...
|python|pyspark|random|
Thanks @jerion5562 : I use below code and worked: First: Install library `pip install httpx[http2]` import httpx client = httpx.Client(http2=True) response = client.get(My_Url,headers=MyHeader) print(response.http_version) # HTTP/2 print(response.status_code) # 200
Can I create an auto-increment column based on a foreign key value?
I would like to modify some HTML stuffs in a function called **pagination()** in this Wordpress core file: **wp-admin/includes/class-wp-list-table.php** I have been searching for relevant hook which can be used to update HTML in the above function, but I have not found one. Here are HTML I would like to change...
The difference is that `winner` has a value that does not depend on `i`: if it is true, it will be true no matter where you click. But the value of `squares[i]` depends on `i`: it might be truthy (i.e. occupied) for one value of `i`, and falsy (i.e. free) for another. Either way the early return only concerns the si...
The only option that worked for me was creating the symlink manually using a [postdeploy hook][1]: ``` <project root>/ β”œβ”€β”€ .platform/ β”‚ └── hooks/ β”‚ └── postdeploy/ β”‚ └── 01_symlink.sh ``` ------ `01_symlink.sh` having the `DocumentRoot` at `/public`: ```bash #!/bin/bash ln -sf ../stor...
|excel|vba|autofilter|excel-tables|listobject|
|excel|vba|autofilter|excel-tables|listobject|
i need create a button to open a new window in microsoft visual studio 2022 with qt c++ i'm trying to create a new class in qt with class cpp,H, and UI, but i'dont know connected this class for my button[enter image description here](https://i.stack.imgur.com/rItvP.png) [enter image description here](https://i.stack...
new window with c++ qt
|c++|qt|visual-studio-2022|
null
|excel|vba|excel-tables|listobject|
|excel|vba|autofilter|excel-tables|listobject|
|excel|vba|excel-tables|listobject|
If I understand correctly, you want to be able to drag the blue button along the arc of the progress bar and the progress should be filled with color to correspond to the button position. I don't quite understand why it would make sense to be able to adjust the progress manually like this, but anyway, if this is the...
|excel|vba|excel-tables|listobject|
This CTE works, but I'm not sure how it would scale with a larger dataset. WITH cte AS ( SELECT at.WorkId ,at.OwnerId ,at.ValidFrom ,0 AS Lev FROM dbo.AssignedTo AS at UNION ALL SELECT cte.WorkId ,at1.OwnerId ,at1.ValidFrom ,cte.Lev + 1...
|excel|vba|excel-tables|listobject|
|excel|vba|excel-tables|listobject|
Check if the email client is blocking images by default and if you need to enable them manually.
|arrays|excel|vba|excel-tables|listobject|
I am using POI 5.2.3 and I am having problems with finding the getRPr methods isSetRFonts, isSetSz, isSetSzCs and the corresponding "gets" in setParagraphRunProperties in the answer to the question here: [https://stackoverflow.com/questions/64074191/apache-poi-java-how-can-i-change-the-font-name-and-size-of-a-list-numb...
Problem with sample code to set font properties for a whole XWPF Paragraph that includes Word fields
|fonts|apache-poi|field|xwpf|
null
|excel|vba|excel-tables|listobject|
How can I get a comma separated list with related posts from a many-to-many field?
|django|django-models|django-views|
null
I'm using `ipywidgets` along with `matplotlib` in Jupyter Lab and stumbled across some strange behavior. Here's an example of the code: ```python import matplotlib.pyplot as plt import ipywidgets as widgets %matplotlib widget plt.ioff() d = { "a": [1,2,3], "b": [2,3,4] } fig, ax = plt.subplots()...
Matplotlib Fails to Update Axis Limits with ipywidgets in Jupyter Lab
|python|matplotlib|jupyter-notebook|ipywidgets|
{"Voters":[{"Id":11002,"DisplayName":"tgdavies"},{"Id":17562044,"DisplayName":"Sunderam Dubey"},{"Id":16217248,"DisplayName":"CPlus"}],"SiteSpecificCloseReasonIds":[11]}
return password.length() >= 6 && password.matches(".*\\d.*") && password.matches(".*[a-z].*") && password.matches(".*[A-Z].*");
{"Voters":[{"Id":466862,"DisplayName":"Mark Rotteveel"},{"Id":354577,"DisplayName":"Chris"},{"Id":16217248,"DisplayName":"CPlus"}],"SiteSpecificCloseReasonIds":[13]}
You are using Spring Boot 3.2 which pulls in JUnit 5. While also using `cucumber-junit` which depends on JUnit 4. Support for JUnit 5 was introduced into Surefire somewhere around v2.22. But Surefire can not run JUnit 4 and JUnit 5 together at the same time and so defaults to the latest version of JUnit when both ar...
I figured out my error in the end. It was two things: 1. I located my PowerPoint template on my desktop, and solely used the file name for the argument reference-doc. No path required. 2. I also thought I had the correct layouts specified in the PowerPoint file, but didn't. Go to the template's Slide Master throu...
Two domains are directed to my single ip address. In the LAN, I have two Pi Apache servers. The router redirects port 80 traffic to 192.168.1.16. There, sites-available redirects domain2.com traffic to 192.168.1.11. ``` <VirtualHost *:80> ServerName www.domain1.com ErrorLog ${APACHE_LOG_DIR}/error...
Apache2 redirection results in wrong URL
|url|redirect|apache2|
null
I'm facing an issue with maintaining a circular shape for images on smaller screens using CSS. Here's the problem I'm encountering: I have a layout where I display images in a circular shape using the border-radius: 50%; CSS property. However, when I resize the screen to smaller breakpoints, the circular shape of th...
You could match optional digits before `day` and then match as least as possible characters before `--` \d*day-(.*?)--.* [Regex demo](https://regex101.com/r/jl4bw0/1) Or make the pattern more specific: \d*day-(\d{4}-\d{1,2}-\d{1,2})--.* [Regex demo](https://regex101.com/r/N0YVle/1) For example...