instruction
stringlengths
0
30k
null
I'm running a Django-powered site, and I'm seeing errors like these in my logs: django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: 'badhost.com'. You may need to add 'badhost.com' to ALLOWED_HOSTS. I was under the impression that my nginx configuration, shown below (and trimmed for brevity), wou...
Invalid Host header not being rejected by nginx
|nginx|
{"Voters":[{"Id":1491895,"DisplayName":"Barmar"},{"Id":1394729,"DisplayName":"tink"},{"Id":9473764,"DisplayName":"Nick"}],"SiteSpecificCloseReasonIds":[18]}
In my flutter project, I am utilizing `HTML/JS/CSS` for a CDN I want to use. Inside the HTML file I am attempting to add a simple "Exit" button that will bring the user back to the home screen. On clicking the button, I am consistently hitting the `console.error` in the `javascript` code. Any help would be appr...
Unable to successfully navigate using Dart code in a Javascript file
|javascript|flutter|dart|
For example, given the inventory ```ini shell> cat hosts test_01 test_02 test_03 ``` and the files */tmp/fstab* (all the same) for testing ```bash shell> ssh admin@test_01 cat /tmp/fstab UUID=423d168c-5a90-44f9-94b2-d2da9f0e1e4f / ext4 errors=remount-ro 0 1 UUID=0F15-7883 ...
|excel|vba|azure|batch-file|
null
I have made a simple code to something like this: - It accepts a string (name) from user - then it do some customization to the string (turn lowercase and replacing space with "_"{under score}) - then after customization, it will search for a file with same name as string - then display the content of file. h...
i’m having some trouble trying to make a criteria filter for mi API, let me explain. I have the class A, with some common properties, like: Id, Created_at, Deleted_at, etc… And i also have the subclasses Subclass_B, Subclass_C, Subclass_D, and so on… The thing is, each of those subclasses have their own proper...
{"Voters":[{"Id":13302,"DisplayName":"marc_s"},{"Id":609290,"DisplayName":"DazWilkin"},{"Id":10008173,"DisplayName":"David Maze"}],"SiteSpecificCloseReasonIds":[18]}
There is nothing wrong with your _ColdFusion_ code. It gets the QR code just fine. ``` <cfset qrCodeURL = "https://www.ohrc.org/binkley/badgeCard/PDFs/"> <cfset apiURL = "https://api.qrserver.com/v1/create-qr-code/?size=150x150&data="> <cfhttp method="get" url="#apiURL##qrCodeURL#" getasbinary="yes"> <cfoutpu...
If you're persisting on using the same entity for every response , @JsonIgnore is not the best approach you should take if the responses are varying ,instead you could use @JsonView and assign every field to a specific view (a field can be assigned to multiple views) and then you can specify on top of your endpoint wha...
I have an icon I append into a v-autocomplete to hide some columns in a datatable. The v-autocomplete is a filter so I would like the user to be able to type in it and select options just not when the user clicks the icon since that has its own purpose. I would put the icon outside the select but it look better appende...
How to forgo v-autocomplete dropdown list event when appended icon is clicked
|javascript|vue.js|vuetify.js|
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...
I am plotting a graph but it's showing a single value in the plot. I am currently working on a data set that has Amazone Reviews and rating. I've checked there are revies ranging from 1-5. But the plot says it's zero. [rating plot](https://i.stack.imgur.com/R63ER.png) below is my code ``` sns.countplot(dat...
Why is countplot showing single value
|matplotlib|seaborn|visualization|
null
Due to ./auth/me endpoint not containing a token when using an identity provider in Static Web Apps (more on this here: https://github.com/Azure/static-web-apps/issues/794), I'm trying to migrate over to Azure App Service. I was able to set up and deploy everything in CI/CD and register the identity provider. Howev...
community, I need your advice! **Short explanation:** <br> I'm trying to configure Datadog integration with AWS Lambda Container Image for NodeJS app. I got an error from Lambda: Error: Cannot find module '/function/node_modules/datadog-lambda-js/dist/handler.handler' Any ideas on how to debug this? ...
AWS Lambda Container Image with Datadog error. datadog-lambda-js
|amazon-web-services|lambda|dockerfile|datadog|
I'm an experienced developer, but I'm learning React and putting together a simple example project using Semantic UI React. I'm trying to change the width of a Search component instance. Seems easy enough but I've tried several different methods without success. Objective: Target the .ui.input selector of the Search...
How to target .ui.input class of a Semantic UI React Search component instance using CSS modules?
|semantic-ui-react|
null
In fine grained multithreading, the instructions are inserted into pipeline in a round robin fashion from each thread assigned to that particular core and if a thread is experiencing a memory stall, then it's instruction is not inserted into the pipeline during that moment. whereas in coarse grained multithreading, th...
>I mean the obvious error is not putting back the nodes you took. You'll have to store them and put them back when you navigate back. yes, that is correct. I also lacked understanding of how [Zippers][1] should work. But I have got more insight now. I ended up with a `parent()` method as below, that also puts bac...
I have a hosted zone for my apex domain `yzpaul.com`. I requested a certificate through AWS Certificate Manager for `yzpaul.com` and `www.yzpaul.com`. The `yzpaul.com` was approved almost instantly. I confirmed both CNAME records showed in the hosted zone. 24 hours later `www.yzpaul.com` still says pending. What am I m...
I am working on a project with firebase and I am really struggling to get data when the collection structure get a little bit complicated. Firestore.firestore().collection("Projects").document("SharedProjects").collection(currentUser).addDocument(data: Project) Firestore.firestore().collection("Projects").docume...
How to get data as different subcollections and documents from firebase?
|swift|xcode|firebase|get|fetch|
null
I have a code here, as soon as I get an error, the msgbox opens. I have intentionally built errors but then no msgbox comes but microsoft visual basic for applications, I do not want that. I want no matter error message comes as msgbox is displayed. How can I do that? How can I also use the query for complete UserForm?...
I've been looking for some guidelines regarding the optimal value of `opcache.jit_buffer_size`. The proposed values are up to 256M (e.g. https://php.watch/versions/8.0/JIT#jit-opcache.jit_buffer_size) or even 500M (https://medium.com/@edouard.courty/make-your-php-8-apps-twice-as-fast-opcache-jit-8d3542276595). But it s...
What factors should be used to choose `opcache.jit_buffer_size` value?
null
From [cppreference.com][1]: > The functions that accept rvalue reference parameters [...] are selected, by overload resolution, when called with rvalue arguments. If the argument identifies a resource-owning object, these overloads have the option, but aren't required, to move any resources held by the argument. ...
{"Voters":[{"Id":5277820,"DisplayName":"dur"},{"Id":522444,"DisplayName":"Hovercraft Full Of Eels"},{"Id":16217248,"DisplayName":"CPlus"}],"SiteSpecificCloseReasonIds":[13]}
Few days ago, I created a GPG key in my GitLab account. Now I was trying to commit a new project into my GitHub account, I get a pop-up window asking to enter a passphrase to unlock the OpenPGP secret key. Unfortunately, I don't remember the passphrase. I tried to revoke the passphrase or change the passphrase, but it ...
Sorry in advance for a dumb answer. Please correct if I get you wrong and/or update your question to make it more precise. > I use gem to install everything explictly ... RUN gem install syntax_tree By default `Rails` knows nothing about gems you have installed via `gem install ...`. > First I make sure the s...
My sign in Method for facebook or github works perfectly fine and they link the account with the user and email account. The problem is that when I execute the recovery password method 'sendPasswordResetEmail' and the user sets a new password, the old facebook/github accounts get deleted and for some reason, It doesnt ...
sendPasswordResetEmail Firebase Auth method deleting other sign in providers accounts (facebook, github, etc)
|firebase|firebase-authentication|
null
The [accepted answer](https://stackoverflow.com/a/46297546/6243352) shows how to serially visit each page one at a time. However, you may want to visit multiple pages simultaneously when the task is [embarrassingly parallel](https://en.wikipedia.org/wiki/Embarrassingly_parallel), that is, scraping a particular page isn...
I am evaluating OR tools cp model performance based on example https://github.com/google/or-tools/blob/stable/examples/contrib/scheduling_with_transitions_sat.py I've modified the code to generate random jobs and to learn about run times to retrieve first and "acceptable" solutions - "acceptable" meaning not too man...
OR Tools cp model performance for flexible job shop scheduling with transitions
|python|job-scheduling|or-tools|
I'm currently exploring the transition from Microsoft-hosted agents to Azure Scale Sets for our CI/CD pipelines in Azure DevOps. However, I'm trying to wrap my head around the actual benefits of this move, especially considering we have a fixed limit on the number of parallel jobs we can run at any given time (e.g., 10...
Azure Scale Sets and Paralell Jobs
|azure|azure-devops|
I am having trouble getting around the graphql in apollo client\server for a Next.js (app router) project. terminal says `No HTTP methods exported in '..\app\api\graphql\route.ts'. Export a named export for each HTTP method.` I am new to these tech stacks . Also would like to know if the directories are correct. I have...
How to migrate from Azure Static Web Apps to Azure App Service?
|azure|azure-functions|azure-web-app-service|openid|azure-static-web-app|
|ios|swift|swiftui|charts|swiftui-charts|
See example. Recursive assembling expression formula from expression_tree table. ``` with -- recursive -- for PostgreSql cte as( select expression_id,oid ,concat( case when lv in('*','+','-','/') then concat('{',lid,'}') else cast(lv as varchar) end ,ov ,case when rv in('*','+','...
I am trying to debug my Kotlin/Native (linuxX64) application in IntelliJ but I can't find a way to do it. What I tried: Press the play button [![play button][1]][1] Then, click "Debug 'runDebugExecutableNa...'" Gradle starts building, the application starts, but the breakpoints don't work (it never stops e...
How to debug a Kotlin/Native application in IntelliJ?
|intellij-idea|kotlin-native|
I would like to query for errors that occured recently (in the last 15 or 30 minutes) but were not encounter for several days (1 or 2 days) before that. The idea is to capture any errors that are related to a recent production release. I can't quite figure our how to construct the query, so I would appreciate any he...
Log Querying - identify errors cause by recent release
|datadog|
null
I have two html pages Index.html ``` <div ="source"> Contenido de Usuario </div> ``` Users.html ``` <div id="target"> </div> ``` How display the content of "source" DIV of Index.html in the "target" DIV of Users.html with JS ? Any idea?
How display content of a DIV in another DIV of another page
|javascript|html|
I'm new to Python, and I'm trying to fold my code in a way that's similar to regular Visual Studio with C#. In VS, you can press `Ctrl+M, O` to fold all methods and `#regions`, and then press `Ctrl+M, P` to unfold. VS Code has a similar feature with `Ctrl+K, 0` and `Ctrl+K, J`. However, this feature folds a lot o...
general error handler: If any error in UserForm than msgBox: Err.Description
|excel|vba|
null
I have this regex that works perfectly with PHP: $que = preg_replace("/(?<=^| )([a-z])\\1*(?= |$)\K|([a-z])(?=\\2)/","$3",$que); This regex removes repeated chars inside strings (for example, `axxd` becomes `axd` however `xxx` will still become `xxx`). The problem that I am facing, is because it does not work...
I've been wondering whether there might be a correlation between the "distance" among neural network weights and their performance. To elaborate, consider the following scenario: We have three models, M1, M2, and M3, all with identical structures, each trained on its respective dataset, D1, D2, and D3. Post-training, ...
Relationship Between Neural Network Distances and Performance
|machine-learning|deep-learning|neural-network|
null
(Edits: 3 (Solved)) TLDR.: ======= After a configuration change, a new Service instance will be recreated (this may depend on the flag type of the Intent that helped spawn the Service... I am not sure about this... but for this specific leak to occur... the behavior must follow an instance recreation of the Serv...
You do not need python for simple cases just use the systems own tools. The Unix Philosophy (DOS was too, but Windows CMD.exe is better). Is to write reusable blocks of commands to adapt to a specific case. Thus all we need is HTML "get and edit" which can be Write Once Re-Use Many (WORM). Here I have paused a...
Git commit asks for passphrase which I don't remember
|git|github|gitlab|github-for-windows|git-repo|
I'm encountering a **TimeoutError: [WinError 10060]** while attempting to establish a connection in my Python program. This error arises when the connected party does not respond properly within a specific time frame, or when the established connection fails due to the connected host not responding. I think that recogn...
recognize_google fails with WinError 10060
|python|connection|artificial-intelligence|speech-recognition|speech-to-text|
{"Voters":[{"Id":1839439,"DisplayName":"Dharman"}]}
I have the same issue. Selling in Sweden so I am using SEK as currency and when the order surpasses 500 its free, as it should. When over 1000 it's back to standard shipping again. Running Betheme. Just wanted to chime in to show I'm in the same boat.
Maybe it would be useful for you to import the images and not use the path. <script setup lang="ts"> import { ref, defineProps, computed } from 'vue'; const props = defineProps<{ imageName: string }>() const isBlue = ref(false) const imageSrc = ref('') const...
{"Voters":[{"Id":18896654,"DisplayName":"Juan Pablo Spiatta"}]}
In the Win32 x86-64 [CONTEXT][1] structure, there are members named `VectorRegister` and `VectorControl`. What are those for? The XMM registers are stored in `Xmm0` through `Xmm15`. Extended vector registers such as the YMM and ZMM registers are stored in "XSTATE" extended context structures, not in the `VectorReg...
When I try and open the pickle file, this error appears: TypeError: 'str' object cannot be interpreted as an integer with open('rlog.pkl', 'rb') as handle: ^^^^^^^^^^^^^^^^^^^^^^ Here is the code: ``` def coinsv_thread(g): #try: if True: import pickle import webclient ...
TypeError: 'str' object cannot be interpreted as an integer when using pickle
|python|pickle|
null
I'm trying to have an element project a shadow / blurred edge onto an element behind it, causing the latter to "dissolve", without impacting the background. Hopefully the following images can better illustrate my problem. This is what I was able to get: [Shadow clearly stands out from the background](https://i.stac...
How to create a CSS shadow that applies transparency to an element behind it