Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
You can tell kestrel which port to listen on by using theUseUrls()extension method, like this:(this generally goes in theProgram.Main()entry point method for me)var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseUrls("http://0.0.0.0:5004")
.Build();
host.... | Ok, I created empty RC2 project and running locally using VS 2015 it works.Now I want to deploy it to linux server using docker - so how should my dockerfile look? I have been followingthese instructions, and this is what I ended up with:FROM microsoft/dotnet:1.0.0-preview1
COPY . /app
WORKDIR /app
RUN dotnet restore... | Running RC2 project on defined port |
Every Replication Controller has aselectorwhich defines the set of pods managed by it:selector:
label_name_1: some_value
label_name_2: another_valueYou can use the selector to get all the pods with a corresponding set of labels:https://k8s.example.com/api/v1/pods?labelSelector=label_name_1%3Dsome_value,label_na... | I'm wondering whether there is a way using the kubernetes API to get the the details of the pods that belong to a given replication controller. I've looked at the reference and the only way as I see it, is getting the pods list and go through each one checking whether it is belongs to a certain RC by analysing the 'ann... | get pods belonging to a kubernetes replication controller |
TheDocker Remote APIhas aPING endpoint. You can use the endpoint to check whether you can successfully connect to the Docker daemon.docker-machine envsets the environment variableDOCKER_HOST, so you can useDOCKER_HOSTas host to ping. Usingnc, you can ping the host as follows:$ eval "$(docker-machine env default)"
$ ech... | I am writing a script that will boot docker-compose automatically.However, sometimes, doingeval "$(docker-machine env default)"doesn't cause the docker daemon to be connected immediatly and when the next line comes (docker-compose up) I getCannot connect to the Docker daemon. Is the docker daemon running on this host?I... | Testing connection to docker daemon |
I resolved this by checking thatvariables['Build.Reason']was equal toSchedule- task: AddTag@0
displayName: Tag Build with 'DevelopmentReady'
condition: eq(variables['Build.Reason'], 'Schedule')
inputs:
tags: 'DevelopmentReady' | I've got a pipeline that is scheduled to run with a cron job.If a user wants to manually run this pipeline, they have the option toTagDevelopmentReady, which by default is unchecked (param set to false in yaml).When the scheduled run kicks off, however, I need theTagDevelopmentReadyto always betrue.Is there a condition... | ADO How can pipeline parameters be set for cron triggered runs? |
What should define your choice is your insert/update/read patterns for both the "live" data and the audits.Most commonly these pattern are very different for both kinds.- Conserning "live" it depends a lot on your application but I can imagine you have significants inserts; significatant updates; lot of reads. Live dat... | I am in the process of designing a new java application which has very strict requirements for auditing. A brief context is here:I have a complex entity with multiple one to many nested relationships. If any of the field changes, I need to consider it as a new version of the object and all this need to be audited as we... | Auditing using Data tables vs Separate Audit tables |
Making file system copies of the /sitecore/data/indexes directory will work just fine, but you need to be careful about how you're backing it up. If you try to take a backup while the site is running, you'll get a bad backup due to the way Lucene manages locking on the index's files. Make sure all aspects of your site... |
Sitecore.NET 6.6.0 (rev. 130404)
Our production setup contains a separate web server and database server. Web server hosts the sitecore website as well as the sitecore data folder (including indexes). Database server (obviously) hosts the sitecore databases.
In managing DB backups, taking SQL DB backups is not enough,... | Sitecore - Managing Lucene indexes and database backups |
With the current method you're using to install gzip-cli or gzipper, they'll be saved to the current project's node_modules folder. Their executables will also be installed in node_modules/.bin (which can be found by running npm bin). However, your project dependency executables will typically not be available in the ... |
I have been trying to work out a way to gzip my build files after a build within a github action. My build doesn't automatically do this, and I'm not sure where or when it should be zipping.
My action has a working run command that builds the project, but then the zipping either fails or just doesn't work depending o... | Github Actions with gzip after build |
2
It's hard to say without knowing what's running on the server side. Git
doesn't have the concept of a code owner, but many servers do, and there is generally the concept of an authorized user.
GitHub (as well as most other hosting platforms) typically don't. The reason ... |
By mistake I attempted to push some changes to master that should have been done to branch. The attempt was failed as I am not the code owner. But I am curious if the code owner is anyhow notified of that? I would hope it is not D:
| Does Git or GitHub notify the code owner of a failed attempt to push on master? |
You can use theGithubartifactYou can use the Script or Run CommandStageto obtain the scripts and execute them. | Does anyone know how can we download GitHub repository as a part of spinnaker pipeline.We have few scripts which are present in Github and I want to get those scripts during spinnaker pipeline execution. | How to use github files in spinnaker pipeline |
0
Actually you want to change the commit message this is not a proper title for your question. this is already answer here :
Editing the git commit message in GitHub
GitHub's instructions for doing this:
On the command line, navigate to the repository that contains the com... |
I am trying to edit this description on Github and cant find any edit button for this,I typed the description when I uploaded this project with GitHub Desktop.
Any suggestions on how to edit it?
I want that the commit message will be "A project based on the DAX index"
as shown below.
I got to this screen what should... | How to change commit message in GitHub,please check the marked section |
You could inquire with the sys.configurations catalog view - how about this setting here?
SELECT value_in_use
FROM sys.configurations
WHERE name = 'max server memory (MB)'
Is that the value you're looking for?
Or maybe you're looking for the value for 'min server memory (MB)' ? (as the code in your post seems to impl... |
I developed an installer and now I want to add feature (basically a check) that will check the memory allocated to SQL Server.
I can login to SQL Server and get memory details, but on client side they don't provide access to SQL Server and so I need to develop a tool to get this detail. They will provide credentials ... | Get memory allocated to SQL Server 2008 using C# |
An Azure Active Directory tenant exists above the subscriptions and that is where app registrations and service principals live.
Your rights in subscriptions/resource groups only mean something to the Azure Resource Management API; they mean nothing to Azure AD.In order to create app registrations in the Azure AD tenan... | I'm pretty new to the whole devops world, the Azure account heirachy is something that always boggles me. I have two questions in here.How different are the various levels in Azure accounts (Owner/Tenant)I have a tenant account and even though I have owner level permissions on my subscription, I'm unable to perform an ... | Unable to do the app registrations on Azure Cloud |
The output fromtype ipsetindicated thatipsetwas not in the cron scriptPATHwhich isn't surprising.The defaultPATHfor cron jobs is fairly limited.Withipsetlocated in/usr/sbinthat is the path that must be added to the cron script'sPATHvariable.You talked about this in your questionI have seen others using a line such as P... | The problem...I use trick77's IP blacklist script to configure the firewall of my apache server and am able to run his script in terminal.However, when assigning thebash script in ipset-blacklistto crontab, it will not run no matter what I do.Code written in crontab file for root:@daily /var/bash/update-blacklist.shWha... | Deal with different directories in bash cron |
2
There are few important consideration when using manage services in AWS such as Elasticache.
By default AWS Elasticache is not publicly accessible. Accesible only through Internal IP. (But there are work arounds for public access options like VPN connection, Direct Con... |
Recently I just started using AWS ElastiCache for a Laravel application. The application is running on 2 instances behind a ELB and handles about 6-10 request/second. Everything was going fine when I launched the application but then I started to receiving connection errors to the application with high latency and t... | PHP AWS ElastiCache Connection Failure |
Try dropping a RUN ln -s fnizz.webapi.dll entrypoint.dll and changing your ENTRYPOINT to ENTRYPOINT [ "dotnet", "entrypoint.dll" ]. I believe dotnet might be finnicky on DLL extensions. This pattern also lets you genericize the assembly name -- sometimes useful.
|
I'm trying to dockerize a aspnetcore webapi. I followed the tutorial here:
https://docs.docker.com/engine/examples/dotnetcore/
But when I run my container I have this message:
Did you mean to run dotnet SDK commands? Please install dotnet SDK from:
http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
I downloa... | Dockerize an asnet core webapi |
Checkout configuration of your server (.htconf file, if it is Apache and if you have access to it) for the section about cgi-bin / scripts configuration. Or the .htaccess file for your root folder (the folder that contains cgi-bin folder inside).AFAIK, cgi-bin folder is mostly configured to hold executable scripts. Thi... | i have lots of links which i cant get changed going to old directories on my site. These directories are all ihn the cgi-bin directory. One such link which no longer exists is:http://www.domain.org.uk/cgi-bin/admin/uploads/documents/health_key.pdfI have the following rule in my .htaccessErrorDocument 404http://www.doma... | Redirecting from domain.co.uk/cgi-bin/ to homepage |
Yes this is possible if you use thebasic authenticationof the Github API. Of course you have to remember that all those users will share the samerate limit(5000 requests per hour).Remembering this, everything else the API gives you for this hidden account should be possible.ShareFollowansweredMay 17, 2013 at 15:24Gabri... | I have a private git repo for a test project, and I want some people to test it out. But getting them to submit comments/errors they have is hard since they are not really computer users who want to signup for a git account.Thus, I want to login to git with a fixed user/pass that I would create through a web interface,... | Github autologin through web |
The.exefile is only for Windows. In the container (running on Linux) you start your app withdotnet ConsoleApp1.dllIn this case yourDockerfilewould look like this:FROM mcr.microsoft.com/dotnet/runtime:6.0
WORKDIR /app
COPY bin/Release/net6.0/publish/* .
CMD ["dotnet", "ConsoleApp1.dll"]ShareFollowansweredFeb 3, 2022 a... | I'm running into trouble with the following steps:Create a simple C# .net 6 console app with the Hello World boilerplate, and publish the portable binaries locally.Create a docker container based onmcr.microsoft.com/dotnet/sdk:6.0Copy the publish results to the container in aconsoleappdirectory.Open an interactive sess... | C# .Net 6.0 App's Console.WriteLine not output to /bin/bash on Linux |
Use ofprintf()to avoid a recursive call intooperator new()is a safety measure - just to be sure it works. How do you know use ofiostreamnever ever causes a call tooperator new()function?You're confusingnew expression(a language construct) withoperator new()function.new expressionindeed returns a typed pointer, but the ... | While reading Bruce Eckel i came across the following example:#include <cstdio>
#include <cstdlib>
using namespace std;
void* operator new(size_t sz)
{
printf("operator new: %d Bytes\n", sz);
void* m = malloc(sz);
if(!m) puts("out of memory");
return m;
}
void operator delete(void* m)
{
puts("operator dele... | Overloading global new and delete safely |
I've figured this out. Dependencies (eg, utils.py) do need to be in the/opt/python/folder, but when I was trying to test this out, I was manually building my docker image with the docker cli instead of usingsam buildand I had the wrong image tag. Therefore the debugger used a previous version of my docker image that wa... | I have a SAM app with multiple Lambdas and some utility code I'd like to share between them. When packaging Lambdas using zip files, code sharing can be done with Lambda Layers. However, according to the AWS documentation, Lambda Layers are not supported when using containers.Functions defined as container images do no... | Sharing code between multiple AWS Lambdas in a SAM app using Docker Containers |
From the docshereyou need to add this annotationnginx.ingress.kubernetes.io/backend-protocol: "HTTPS"Using backend-protocol annotations is possible to indicate how NGINX should communicate with the backend service. (Replaces secure-backends in older versions) Valid Values: HTTP, HTTPS, GRPC, GRPCS and AJPBy default NGI... | I have three pods with HTTPS servers inside. I used to acces them via NodePort services. Now I deployed a Nginx Ingress to have them all in one IP. I have noticed that the Nginx Ingress can't connect with an HTTPS server in a pod, but it connects perfectly if I change it to HTTP.How can I make the Ingress connect with ... | Kubernetes Nginx Ingress can connect to https pods? |
Unfortunately, that's not possible yet. Many organisations have used GitHub bots to assign labels automatically, without giving users write access.
Edit: If you are okay with having you're users have write access (i.e. can pull/push/clone), then you can go to https://github.com/orgs/{org}/teams/{team}/repositories and... |
I set up an organization on GitHub and invited some members. Most members have the status member. They can create issues, but are not able to set a label or to assign the issue to another member. I figured out, where to set repository permissions: https://github.com/organizations/{MyOrganization}/settings/member_privi... | How to configure access rights for issues in an organization on GitHub? |
The data is lost when the container is removed, not when it's stopped or restarted.
Basically, if you do docker ps, if the containers keeps the same id (the big ugly hexadecimal id), the data is not lost.
It gets complicated when somehow your docker containers are not managed by you, but by some kind of automated-mana... |
In some places when I read about Docker containers, I found some people talking that they lose their data (saved inside the container and not a part of volume data) when they restart the container.
I tried to create a simple Ubuntu container like this: docker run -it ubuntu /bin/bash, and created some files inside the... | Why does my non-volume data in Docker container persist even after restarting the container? |
You can still find your status check at search by name of the GitHub action job.
name: .NET
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
etc...
Here is name of the job is build.
|
I would like to set my GitHub Actions as required status checks so that I would be able to have protected branches and prevent commits from being pushed to specific branches if they don’t pass the github actions checks.
But when I go to the branch protection rules, the github actions don’t appear in the list of checks... | How to set Github Actions as Required Status Checks |
So it was actually a load balancer issue, we have configured the old ssl certificate by mistake assuming it's the new ssl certificate.
After configuration of new ssl certificate in load balancer it worked as expected.ShareFollowansweredSep 19, 2022 at 15:52Jay SinghJay Singh6911 silver badge77 bronze badges0Add a comme... | I'm running Gitlab:13.12.15-ce.0 in docker container with my private ssl certs and key. But it's expired few days back and i have updated the .crt and .key files in /etc/gitlab/ssl directory but Gitlab still throws error that my certs are expired with loading old certs.I have tried updating the cert and key file by fol... | Gitlab doesn't loads new ssl cert and key |
1
You are running a query inside the for loop. If the 'value' column is not a key/indexed column, Spark will load the table into memory and then filter on the value. This will certainly cause an OOM.
Share
Improve this answer
Follow
... |
I have a single test node with 8 GB ram on which I am loading barely 10 MB of data(from csv files) into Cassandra(on the same node itself). Im trying to process this data using spark(running on the same node).
Please note that for SPARK_MEM, Im allocating 1 GB of RAM and SPARK_WORKER_MEMORY I'm allocating the same. Th... | Spark throwing Out of Memory error |
Hello everyone thank you so much for your immediate response, i think
i have fixed my issue.Cronjob failed due to --interactive modedocker exec -it -u ${POSTGRES_USERNAME} ${CONTAINER_NAME} pg_dump -d ${DB_NAME} | gzip -c > ${BACKUP}Removed i --interactive from shell script, then it's works perfect.docker exec -t -u ${... | I'm trying to automate a postgres database backup which is running in docker,#!/bin/bash
POSTGRES_USERNAME="XXX"
CONTAINER_NAME="YYY"
DB_NAME="ZZZ"
BACKUP="/tmp/backup/${DB_NAME}.sql.gz"
docker exec -it -u ${POSTGRES_USERNAME} ${CONTAINER_NAME} pg_dump -d ${DB_NAME} |
gzip -c > ${BACKUP}
exitif i run this manually, i... | shell script is not working in cron job | docker |
welcome to StackOverflow.You can - instead of using a Kubernetes Token - you can use Client Certificates like so:tls <PATH_TO_CERT> <PATH_TO_KEY> <PATH_TO_CACERT>If you don't want to use TLS Certificates you can specify a File as thekubeconfig, with version1.2.2CoreDNS introduced the possibility that you can use a File... | My coredns in k8s cluster is v1.3.1.And I want to config it visiting kube-apiserver with static token.
For example,my token is "token4K8sSecure".Ant I tried config coredns kubenernetes plugin with the configuration below.But it does not work.apiVersion: v1
data:
Corefile: |
.:53 {
errors
health
... | Is there a way to config coredns kubernetes plugin with kubeconfig in token? |
The command should be docker run, not run
And the image is stored in your /var/lib/docker/images folder, in the boot2docker VM.
|
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by prog... | How to run docker image in windows [closed] |
Based on comments there is no official API. But there is an unofficial List of AWS Service Principals been kind of maintained by the people.
|
I'm working with aws and implementing CI/CD using their developer tools. Each of the tools requires a service role, so I decided to just update my existing service role with the correct permissions. The problem is I don't know where to find the list of values to use for each service.
Below I just guessed the right n... | How to find the list of aws service identifiers |
Is there a way to force non-www. on my website store directory /store/You can use this code in yourDOCUMENT_ROOT/.htaccessfile:RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^store(/.*)?$ http://%1%{REQUEST_URI} [R=301,L,NC,NE] | I have a script on my website that is a module addon for opencart. I tried working with the developer but this is what he told me.The browser will block the ajax request as a cross domain request.
This is just how scripts and browsers work it has nothing to do with
my mod. You need to put a redirect in your .htacce... | how to force non-www when person visits website store |
1
You can set appropriate HTTP headers to prevent caching (I do not know how to do this in ASP.NET, but I imagine it would be something like HTTP.Response.setHeader("foo", "bar"):
"Pragma-directive: no-cache"
"Cache-directive: no-cache"
"Cache-control: no-cache"
"Pragma: no... |
I'm returning an image (png) from a call to an action method and I'd like to stop the image being cached by the browser.
return File(reply, "image/png", "{0}_Graph".FormatWith(ciName));
I've tried all the usual things, appending an array of different headers to the file output response and none of them seem to be wor... | FileContentResult - prevent browser caching image |
Where do the exrpessions come from, are they created new? If they are reused, you could just use the expression itself as the key.:internal static class ExpressionCache<T>
{
private static readonly Dictionary<Expression<Func<T>, Func<T>> Cache = new Dictionary<Expression<Func<T>, Func<T>>();
public static Func... | I have a class that I use for the checking method arguments, which you call in the form:public void SomeMethod(string anArg)
{
Ensure.ArgumentNotNull(() => anArg);
}If the argument is null then anArgumentNullExceptionwith the name of the property is thrown. This is done like so:public static void ArgumentNotNull<T>... | Cache compile from Expression<Func<T>> |
Are you using Azure Relay by any chance? If so, then this post describes how to find the 8, 16, 32, 48, or 64 IP addresses that could get used:https://blogs.msdn.microsoft.com/servicebus/2017/01/13/azure-wcf-relay-dns-support/ShareFolloweditedMar 9, 2018 at 19:43answeredMar 8, 2018 at 7:01Dave StuckiDave Stucki12133 br... | https://blogs.msdn.microsoft.com/servicebus/2017/11/07/open-port-requirements-and-ip-address-whitelisting/Above link suggests you can white-list a single IP for Azure Service Bus.We are seeing when we connect to$XXX.servicebus.windows.net, that in turn kicks off many connections to various104.214.$YYY.$ZZZdestinations.... | Single or (very, very) Many IPs Required to Whitelist Azure Service Bus connectivity? |
Your problem is that you're not using the correct key. Your push remote usesgist.github.com, but your SSH configuration refers only togithub.com. SSH has no way of knowing that these should use the same credentials.You can either add an additional stanza forgist.github.com, or you can adjust theHostline to readHost g... | The only thing I can think of could be related was adding the following to~/.ssh/confighost github.com
HostName github.com
IdentityFile /Users/miranda/.ssh/miranda_git
User gitDebugmirandazhang@Mac$ ssh -T[email protected]Hi miranda You've successfully authenticated, but GitHub does not provide shell access.
miranda... | git suddenly requires sudo to be able to push |
The VB.NET compiler does not compile onto the GPU, it compiles down to an intermediate language (IL) that is then just-in-time compiled (JITed) for the target architecture at runtime. Currently only x86, x64 and ARM targets are supported. CUDAfy (see below) takes the IL and translates it into CUDA C code. In turn this... |
I've got a program that takes about 24 hours to run. It's all written in VB.net and it's about 2000 lines long. It's already multi-threaded and this works perfectly (after some sweat and tears). I typically run the processes with 10 threads but I'd like to increase that to reduce processing time, which is where using ... | GPU Processing in vb.net |
I realised that the home directory is set to "/home/jovyan" itself, which in docker compose I overwrote with a volume in order to have dynamical code. Once I moved the volume I found the rust compiler in the scope of the jovyan user | I am trying to install the rust compiler within a jupyter docker image. Here in the following the dockerfile:FROM jupyter/scipy-notebook:python-3.10.5 as base
RUN pip install nb_black
USER root
RUN apt update && apt upgrade
RUN apt install build-essential -y
RUN apt install curl -y
USER jovyan
RUN curl --proto '=ht... | Rust compiler in jupyter lab docker instance |
As far as I'm aware, Chrome and IE will forget about this exception when you close them.Firefox uses its own certificate verification mechanism. You can check the list of certificates in Options -> Advanced -> Certificates -> View Certificates. You can then manage the exception in the Servers tab.
If you've added them ... | Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchange site, ... | Where are the exceptions for websites that use expired SSL certificates stored in my pc? [closed] |
So that means you have permissions to read/list pods data but dont have an access for creatingdeploymentobject.Below is 2 examples, check and compare them.1st is just reading rules(what you currently have)rules:
- apiGroups: [""]
#
# at the HTTP level, the name of the resource for accessing Pod
# objects is "pods... | I'm trying to deploy my application into EKS cluster. When I am running jenkins job I could able to getkubectl get poddetails with running state at the same time when I'm trying to deploy yaml file via jenkins I'm getting below error:+ kubectl create -f deployment.yaml
Error from server (Forbidden): error when creating... | Jenkins pipeline k8s deployment failed |
Missing includes innginx.confinclude /usr/local/etc/nginx/sites-enabled/*;http://wiki.nginx.org/CoreModule#include | I'm trying to set up a simple virtual host, serving only static files. Trouble is, directing the browser to (in this case)jorum.devdisplays the default nginx welcome page, as opposed tojorum.dev/index.html.Nginx was installed using Homebrew on Mac OS X Mountain Lion.hosts127.0.0.1 jorum.devjorum.devserver {
l... | Nginx only shows welcome page |
Apache denies all URLs with%2Fin the path part, for security reasons: scripts can't normally (ie. without rewriting) tell the difference between%2Fand/due to thePATH_INFOenvironment variable being automatically URL-decoded (which is stupid, but a long-standing part of the CGI specification so there's nothing can be don... | About the systemI have URLs of this format in my project:-http://project_name/browse_by_exam/type/tutor_search/keyword/class/new_search/1/search_exam/0/search_subject/0Where keyword/class pair means search with "class" keyword.I have a common index.php file which executes for every module in the project. There is only ... | urlencoded Forward slash is breaking URL |
Check thisdoc:Analysis of C/C++/Objective-C projects requires theBuild Wrapper. It runs the build and gathers all the configuration required for correct analysis of C/C++/Objective-C projects (such as macro definitions, include directories, …). The Build Wrapper does not impact your build; it merely eavesdrops on it an... | So I've followed this guide -SQ Integration in DevOpsBut even after following the entire process, the SQ is not scanning C# files, when I do it manually using cmd on my windows 10 machine it is able to scan everything, am I missing anything here ??, I'm not getting any errors as suchI'm able to get warnings in console,... | Running SQ on Azure Devops is not scanning all the files/subfolders/projects especially c# files |
If you just want to cancel the rolling update, remove the failed pods and try again later, I have found that it is best to stop the update loop withCTRL+cand then delete the replication controller corresponding to the new app that is failing.^C
kubectl delete replicationcontrollers your-app-v1.2.3 | We are using Heat + Kubernetes (V0.19) to manage our apps. When do rolling update, sometimes container staring will always fail on a node but kubelet on the node will always retry but always fail. So the updating will hang there which is not the behavior we expected.I found that using "kubectl delete node" to remove th... | Use kubectl to delete a node that has running pods on it |
0
Install another instance of the database version you have the backup from.
Then you can restore you backup into this instance.
After that you can use the migrations tool to move the content of the database back to you old server.
That is how I did it when I had the same p... |
This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
Is it possible to restore Sql Server 2008 backup in sql server 2005
I have a backup that was made on MS SQL Server 100.50 version, and I attempt to restore it o... | can't restore a database from a 100.50 backup on a 100.0 server [duplicate] |
All the{le="10"}requests are also included in{le="60"}(and in all the bigger buckets), so in order to know the amount of requests between them you just have to subtract the rates, so something like:(
sum(rate(nginx_request_time_bucket{le="60"}[$__range]))
-
sum(rate(nginx_request_time_bucket{le="10"}[$__range])... | I need to calculate and plot latency SLO graph on prometheus by the histogram time-series, but I've been unsuccessful to display a histogram in grafana.
A sample metric would be the request time of an nginx.suppose if i have a histogram bucket like this,nginx_request_time_bucket(le=1) 1,
nginx_request_time_bucket(le=10... | Latency SLO calculation of requests |
Your git commands are just fine. That will update all existing sources.If you are receiving an issue, something around the lines of "error ref spec remote does not exist" or something - it's because you spelled your name wrong in the remote!$ git remote add originNew https://github.com/BrianJVarley/College_Kinect_Proj... | I recently created a repository on GitHub to host my college projects but I'm not sure how to replace my original source code with my new finished solution.Does anyone have any idea how to achieve this in the command line? Below is how I uploaded the initial solution which I want to update.cd C:\Users\Nrian Varley\Docu... | How to update an existing code repository with an updated solution? Git Hub |
I have found solution to the problem. That's why I am adding for other to be helped. We have usedpytestandcoverageto compute the coverage report. SonarQube just read that coverage report.
To exclude some line we have add the following inline comment after that line:# pragma: no coverFor example the lineprint("Hello Wor... | I have some requirement that at least 80% of the line coverage need to be achieved. I have some file where a large portion of the code is underif __name__ == '__main__':which need not to be tested.How can I instruct SonarQube to exclude that portion of code from test coverage. I have seen there are options to exclude f... | How to exclude codes under `if __name__ == '__main__':` from SonarQube test coverage |
Please be careful with hard resets and push force. You should back up stuff before resetting. But,Aftergit reset --hard <sha-of-my-5th-commit>you can rungit push -fto overwrite the remote branch. | I've created a new GitHub PR for branchnew-feature, it has 10 commits.I want to revert it to be at the 5th commit.What is the proper workflow?Notes:If I'm onnew-featureand usegit reset --hard <sha-of-my-5th-commit>, this will just move my local state back. I'm not sure how to affect github's history with this | Revert a GitHub PR to a particular commit |
I'm a maintainer of Guard and many Guard plugins.It's best to simply open an issue on GitHub for the project you want to fix. You'll get a response faster, and if you have fix for this yourself, your fix will be released as quickly as possible.Sometimes the trick it so work out where to even fix the problem.The importa... | I've identified a fix/change I'd like to submit to the Guard gem, but I'm having trouble identifying where in the code to make the change.When using the Guard gem, successful test completion returns "red" text displaying "0 failures, 0 errors." I want to change this returned text to green if the value is "0." This shou... | Making a Change to the Guard gem on Github |
I am not aware of translation tool from PromoQL to Kusto Query Language. As for the Prometheus data, check out this article aboutsending Prometheus to Kusto(Azure Data Explorer) | I was wondering if anyone knows tool or workaround for converting Prometheus query to Kusto query?
Also any Microsoft tool which graph Prometheus data can be helpful as well. Thanks | How to Convert PromQL to KQL |
One way to place a dashboard at the top when the user clicks on the dashboard expandable list is to make the concerned dashboard as the only starred dashboard. Starring a dashboard is like pinning it to the top of the list.When the user clicks on the dashboard expandable list, the Starred dashboards, if any, are shown ... | I want to place the home dashboard at the top when the user clicks on the dashboard expandable list. I have a dashboard that is set as my home and called as "Home" but while navigating, it is a bad UX to see it at the bottom of the list. To explain with pictures:The following two pictures depict what I currently have:T... | How can I place home dashboard as the top in list of dashboards in Grafana? |
In the htaccess file inwww.laji.com's document root, add:RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([A-Z0-9-]+)/?$ /index.php?main_page=$1 [L,NC] | how to rewrite index.php?main_page=xxx in htaccess?RewriteEngine On
RewriteRule ...
/* ------- for example ------- */
www.laji.com/xxx => www.laji.com/index.php?main_page=xxx
www.laji.com/xxx/ => www.laji.com/index.php?main_page=xxxxxx can be [a-zA-Z\d] and "-" , can not be "xx.php"I am not good at htaccess... | How to rewrite index.php?main_page=xxx in htaccess? |
There are two type of Redis deployment in AWS ElastiCache service:
Standalone
Multi-AZ cluster
With standalone installation it is possible to turn on persistence for a Redis instance, so service can recover data after reboot. But in some cases, like underlying hardware degradation, AWS can migrate Redis to another i... |
We're using AWS, and considering to use DynamoDB or Redis on our new service.
Below is our service's character
Insert/Delete occur over between hundreds and thousands per minute, and will be larger later.
We don't need quick search, only need to find a value with key
Data should not be lost.
There are another data ... | Dynamodb vs Redis |
This is not possible at the moment.
As you mentioned, the only exposed parameter is DistributionDomainName and this works only for edge-optimized endpoints.
As a workaround (until it will be implemented in CloudFormation) you could use a CustomResource backed up by your own Lambda function to return the regionalDomain... |
I'm trying to create a multi-region serverless application on AWS. I've followed the instructions given here. I'm using Serverless framework, which uses Cloudformation scripts for creating all the resources on AWS.
I want to create a custom domain for API gateway as a Regional Endpoint. When it creates a Regional endp... | How to get the target domain name of a custom domain for Regional AWS API Gateway in Cloudformation? |
It doesn't look like web ui itself is deprecated.It's only been removed from kubelet, that's all. It means that the web ui won't be a part of a kubelet anymore.You can still use it if you want by deploying cAdvisor as separate application. | There seems be be mixed information and I couldn't find any official
source to confirm this.From the kuberneteschangelog,
it seems that cAdvisor web UI which has been available via kubelet has been deprecated:The formerly publicly-available cAdvisor web UI that the kubelet started using --cadvisor-port has been entirel... | Has cAdvisor Web UI been deprecated |
As of Kibana 7.0elasticsearch.urlis no longer valid and it is nowelasticsearch.hosts:https://www.elastic.co/guide/en/kibana/7.x/breaking-changes-7.0.html#_literal_elasticsearch_url_literal_is_no_longer_valid.The environment variables translate to these settings names. In this case, the new environment variable would be... | I'm testing the latest version of the Elastic Stack (7.2.0) and i can't seem to connect Kibana to Elasticsearch, but when i rollback to 6.8.1 it works. Any ideas ?Kibana Deploy & ServiceapiVersion: apps/v1
kind: Deployment
metadata:
name: kibana
namespace: *************
labels:
component: kibana
spec:
repli... | kibana 7.2 can't reach elasticsearch on kubernetes |
Heroku Dynos have a local file system that does not survive an application restart or redeployment, therefore it cannot be used to persist data.Typically you have 2 options:use a database. On Heroku you can use (there is also a Free tier)Postgressave the file on external storage (S3, Dropbox, even GitHub). SeeFiles on ... | I have a simple python script that is hosted on Heroku and I'm using the Heroku Scheduler to run the script every hour/day. The script will possibly update a simple.txtfile (could also be a config var if possible) when it runs. When it does run and conditions are met, I need that value stored and used when the next sch... | How to update files whenever script is scheduled to run in Heroku app |
0
nginx was serving the CSS files with header content-type: text/plain.
I needed to add include mime.types in my nginx config to return content-type: text/css for css files (and the correct mime types for other files based on their file extensions).
/etc/nginx/nginx.conf:
... |
Expected behavior
When loading a page on my website, stylesheets referenced in the page's HTML are loaded by the web browser.
Those stylesheets' styles are applied to the DOM, styling the web page.
Actual behavior
When loading a page on my website, stylesheets referenced in the page's HTML are loaded by the web browse... | CSS files load but do not apply to the DOM (k8s) |
-1Update:You can now change a RDS security group, see user115813's answer a few pixels under my original answer.Please feel free to validate his answer instead of mine.ShareFolloweditedSep 1, 2014 at 19:27answeredAug 30, 2013 at 16:13Thibault D.Thibault D.10.1k33 gold badges2626 silver badges5656 bronze badges6Thanks. ... | I'm new to AWS and RDS. I've combed through help files and other stackflow questions, but can't seem to find out if i'm doing something wrong.
When I go to my RDS Instance, I seeSecurity Groups:default( active )I click default, and it takes me to the SG page, where I create new groups.
However, any rules I put in thos... | RDS Security groups - default only working |
AWS Scheduler supports "L" to be used as the last day of the month. You can find it documented here -https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.htmlThe L wildcard in the Day-of-month or Day-of-week fields specifies the
last day of the month or week. | Hi If I open CloudWatch I have the option of Creating Schedule Snapshot. My challenge is scheduling a Snapshot once every last day of the month. | AWS auto snapshot Schedule for last day of the month |
8
I don't think you can. Only the primary key is required, since DynamoDB is 'schema-less', it doesn't really make sense to have a required attribute on a field in a schema-less database.
Share
Follow
... |
I'm using Dynamo.DB and following "https://www.npmjs.org/package/dynamodb" for Node.JS; I was wondering how I can have an attribute as "required"?
Here there is an example I found in the documentation, but I'm not sure if we can have "required" attribute in Dynamo.DB or not?
// flat [string, number, string array or nu... | Required attribute in Dynamo.DB |
cron elements can be lists, so instead of just15, you could use a comma delimited list of the four minute-marks you need. Note, however, that the minute field is thefirstfield of the format:0,15,30,45 * * * * /usr/bin/php /var/www/html/Proyectos/forex/prueba.php | This question already has answers here:Crontab Formatting - every 15 minutes(3 answers)Closed8 years ago.I want to execute 4 crons. 1.- When it is at 15 minutes, for example, 14:15PM. The other one when it is at 30 minutes, the 3rd at 45 and the last one at 00 o clock. Every day every hours. I need this way because I n... | Execute PHP Linux Cron when is at 15' [duplicate] |
For Redhat/CentOS/Fedora, installXvfbandpyvirtualdisplaysudo yum install Xvfb
pip install pyvirtualdisplayTestXvfbandpyvirtualdisplaythat gives no exceptionsfrom pyvirtualdisplay import Display
display = Display(visible=0, size=(1024,768))
display.start()
display.stop()Enclose to your Selenium codefrom pyvirtualdisplay... | I have a Raspberry Pi that I would like to start a couple of python scripts at the time of reboot withcrontab. I have successfully run each of the scripts manually by callingpython name_of_script.pyfrom the terminal, yet when I run via crontab, I am presented with the following traceback.Traceback (most recent call la... | Selenium Error when using Crontab @reboot for python script |
They don't allow you to manually deallocate memory.They don't enable you to read/write from/to arbitrary memory addresses (C++ also doesn't allow this, but the language syntax makes it possible).(as a special form of the above) They check every array access whether it is within the bounds of the arrayTo the best of my ... | As far as I know (correct me if I am wrong please), managed languages (or at least C#) is not going to make anysegfault(at least when noUnsafeor directly dealing withunmanaged memory). This opposite to unmanaged language (or at least C++) where you can getsegfaultby just taking a look to cat near you for a second while... | How does managed language ensure no segfault |
The comments already gave a hint, you will need to build your own Docker image. Depending on the infrastructure you have available, you can either build the image, store it in some registry and then use it in your compose file, or build it on the machine that you use docker on.
The Dockerfile
Common to both approaches... |
I'm trying to send logs from fluentd (installed using docker) to opensearch.
In configuration file, there's @type opensearch that uses the plugin fluent-plugin-opensearch which I installed locally as a Ruby gem.
I get the following error:
2022-04-22 15:47:10 +0000 [error]: config error file="/fluentd/etc/fluentd.conf"... | how to add the plugin fluent-plugin-opensearch to docker |
If you imported said repository by:cloning the old one locallypushing it to a new empty repo in a new accountThen there would be no special relation between the two repositories, even though they have the same history.You can delete your old repo and/or account safely: the new repo will not be affected.Even throughhttp... | I imported a repository from my old account in GitHub, now I wonder, what will happen to my new imported repository if I decide to delete the original one on the old account, or delete the account itself? Is there any reflect on the imported repository on the new account, or they become independent after the importing? | What happens to the imported repository when deleting the original one in github |
Thanks to answer by Yom S. the documentationheredoes provide way to keep older dist.However, the you can't use--no-cleanlikenpm build --no-clean. To use no clean mode from terminal you need to write following command instead./node_modules/.bin/vue-cli-service --no-cleanUpdateInstead you can also add --no-clean in packa... | I am developing vue project and syncing dist folder with git. This worked well while using webpack. However, I have moved to @vue/cli ---using vue create myProjectinstead ofvue init webpack myProj.The issue is that every time i runnpm run build, it deletes dist folder and recreates it -- all .git and other files gone.H... | Prevent vue cli from deleting all files in dist |
unfortunately the row size cannot be changed. Rows are always 12 units wide.
Check these docs:https://docs.huihoo.com/grafana/2.6/guides/basic_concepts/index.htmlShareFollowansweredMay 27, 2020 at 16:25SalientSalient3311 silver badge44 bronze badgesAdd a comment| | I wanna change width arowin Grafana v5.4.0.
like thisscreen...I'm trying to change JSON Model..."collapsed": false,
"gridPos": {
"h": 1,
"w": 18,
"x": 0,
"y": 14
},
"id": 12,
"panels": [],
"title": "row2",
"type": "row"I modified 'w'value from 24 to 18.'Save changes' is is Succeed.
But, Act... | Is it possible to change width a row in Grafana? |
In the PodTemplate definition there is an option idle timeTime in minutes to retain slave when idle(time_T) that you can set to a large value.Then set the label of the pod template to a unique value and same label in your job. That way that pod will only take builds of that job | We are using kubernetes plugin for Jenkins to construct a special CI system. We want to achieve that:For a given build job(namedjob_A), it will be built more than one time;We hope this jobjob_Ato be bound to a specific jenkins-slave(namedpod_A), and thepod_Ashould only provide service forjob_A.After thejob_Afinished th... | Can each of Jenkins-slave(kubernetes pod) to be bound to one build job while keep it alive even finished the job |
You don't need to write to a file or a StringIO at all. You can callkey.get_contents_as_string()to return the key's contents as a string. The docs for key arehere. | I want to manipulate a pickled python object stored in S3 in Google App Engine's sandbox. I use the suggestion in boto'sdocumentation:from boto.s3.connection import S3Connection
from boto.s3.key import Key
conn = S3Connection(config.key, config.secret_key)
bucket = conn.get_bucket('bucketname')
key = bucket.get_key("... | Is is possible to read a file from S3 in Google App Engine using boto? |
It is not possible using thereconcile.Resultreturn value.If you expect a specific error, just stop reconcile when this specific error happens (for example a rate limiting error).Otherwise you'll have to implement the logic yourself, somehow storing the amount of times you've reconcile your object either inside the cont... | I need to recover from a reconciler that runs indefinitely after exceeding x requeues using the controller runtime framework due to failures. I do know that I can stop requeuing by usingreconcile.Result{Requeue:false}, nilor set a back off using RequeueAfter. However, I need to stop and gracefully end the reconciliatio... | How to stop requeuing a request in reconciler in k8s controller runtime after x attempts? |
Dual copy engines are available on Tesla cards and modules:
http://www.nvidia.com/object/why-choose-tesla.html
http://www.nvidia.com/docs/IO/43395/NV-DS-Tesla-C2075.pdf
Also, some Quadro models provide dual copy engines, e.g.:
http://www.nvidia.com/docs/IO/40049/Dual_copy_engines.pdf
http://www.nvidia.com/object/quadr... |
I expected that GTX 680 (which is one of the latest version of GPUs) is capable of concurrent data transfer (concurrent data transfer in both direction). But when I run cuda SDK "Device Query", the test result of the term "Concurrent copy and execution" is "Yes with 1 copy engine", and it means that the GPU can not do... | Is GTX 680 Capable of Concurrent Data Transfer |
Docker Hub is quite limited at the moment and does not offer the feature you asked for.
When an image is configured to build from source at Docker Hub (an Automated Build) you can see what went into it, but when it is uploaded pre-built you have no information.
|
I know that I can use this command $ docker images --tree docker history to view the layers of a Docker image, but how do I do that for images on Docker Hub without pulling it? This is so that I know what is on an image before I download it.
E.g., for the Tomcat repo, https://registry.hub.docker.com/_/tomcat/, the we... | How to view Docker image layers on Docker Hub? |
If you usetargetAverageValue( or eventargetAverageUtilization), the metric value used by the scaling algorithm is based on the average across all matching pods.From the Horizontal Pod Autoscalingdocs:When a targetAverageValue or targetAverageUtilization is specified,
the currentMetricValue is computed by taking the ave... | I am trying to set an horizontal pod autoscaling metrics on my GKE deployment based on absolute value but still didn't get the difference between the absolute value and the percentage :let's say i'm requesting500mCPUper Pod for a starting number of 3 pods.If i want to replace the autoscaling metrics of"50% of CPU Usage... | GKE Autoscaling metrics in absolute value |
For question 1, you can set the Reclaim Policy toRetain. This means that the PV and PVC can be deleted but the underlying storage volume will stick around forever (or until you delete it in whatever the underlying system is).For 2, yes if you have audit logging turned on.https://kubernetes.io/docs/tasks/debug-applicati... | I recently encountered an issue where something (which I was not able to identify) deleted a PVC and the corresponding PV in my k8s cluster. The data can be recovered but I have two questions:Is there some hack to prevent the PVC from being deleted accidentally if someone issues a wrong command which deletes it?Is it p... | How to prevent PVC from being deleted in K8s |
Figured this out, there was an image using an external URL. | I have got my .htaccess file working for my main domain (www.domain.com):<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ ht... | .htaccess SSL certificate for manually added subdomain |
Ok. I think I got the information I need.
Obviously the reservation isn't maintained beyond all methods. Especially clear() and operator=() seem to cancel the reservation. In case of operator=() it actually will be impossible to preserve the reservation due to implicit sharing of data that is used by operator=(QByteA... |
I just tried to optimize some communication stack. I am using Qt 5.3.2 / VS2013.
The stack uses a QByteArray as a data buffer. I intended to use the capacity() and reserve() methods to reduce unnecessary internal buffer reallocations while the data size grows. However the behaviour of QByteArray turned out to be incon... | Internal reallocation behaviour of QByteArray vs reserve() |
17
We need to install Git to use the Git History (git log) extension in VS Code.
Otherwise we will see this when running git log.
If you have already installed Git, then make sure that it is available from the shell, for example by typing git --version.
Once you have Git... |
I get the error Error: spawn git ENOENT when I try to view git history using https://github.com/DonJayamanne/gitHistoryVSCode on VS Code.. I'm very new to VS Code and github. I tried googling for solutions but I only found links about node.js which I don't understand at all..
| VS Code Error: spawn git ENOENT |
I don't think there'd be a noticeable performance difference in storing your parameters in the HttpCache versus a Singleton object. Either way, you need to load the parameters when the app starts up.
The advantage of using the HttpCache is that it is already built to handle an expiration and refresh, which I assume yo... |
I have a app that pass through a web service to access data in database.
For performance purpose, I store all apps parameters in cache, otherwise I would call the web service on each page requests.
Some examples of these parameters are the number of search result to display, or wich info should be displayed or not.
Th... | Performance : asp.net Cache versus singleton |
You can use a different jsonpath to get all images:kubectl get pods -A -o jsonpath="{..image}"If you just want unique images:kubectl get pods -A -o jsonpath="{..image}" | tr -s '[[:space:]]' '\n' | sort -u.Substituting-Afor the namespace of your chart or manifests.If you have the manifests on your machine and not deplo... | To simplify, I want to list all the docker images defined in a helm chart.For eg, let's say I have the following set of templates:$ helm template jenkins/jenkinshttps://charts.jenkins.io/Then, I want to somehow usekubectlto parse this result so I can apply a filter such as:kubectl get pods -l k8s-app=kube-dns -o jsonpa... | How to get a list of docker images given some kubernetes template? |
Pretty concise and well-prepared first question here. Please keep this spirit!When working with counters, functions asrate(),irate()and alsoincrease()are adjusting on resets due to restarts. Other than the name suggests, theincrease()function does not calculate the absolute increase in the given time frame but is a dif... | I am trying to figure out the behavior of Prometheus'increase()querying function with process restarts.When there is a process restart within a 2m interval and I query:sum(increase(my_metric_total[2m]))I get a value less than expected.For example, in a simple experiment I mock:3lcm_restarts1 process restart2lcm_restart... | Prometheus increase not handling process restarts |
First you need to set your password using command$ sudo passwd ec2-userThen you can use the new password where ever its required | I am trying to run$ sudo suin the terminal of AWS Cloud9. I get prompted for the password for the ec2-user. Any ideas what this might be?Might be worth noting that prior to coming up against this issue, when trying toyum installa package, I got 'packages excluded due to repository priority protections' so I ranyum eras... | Password for ec2-user on AWS Cloud9 |
Ok, so my "solution" is only a partial solution, I still have to add new files manually when I encounter an issue that breaks the plugin.But it also turns out that sonar.exclusions doesn't appear to have a length limit (or, if it does, it's very generous). | I've got a copy of sonar-scanner using a plugin that's still early in its development life. At the moment it seems to have some trouble with some particular files that prevent the scan from completing.I'd like to build a list of files that should be skipped over as part of the scan process so that I can at least scan t... | Sonar-Scanner - Maintaining a list of 'broken' files to skip |
Answer recommended byCI/CDCollectiveAs of July 7, 2020,you can now delete the results of individual workflow runs. To do this, navigate to your workflow, find the workflow run that you want to delete, and select the "..." menu. In this menu, select "Delete workflow run".The workflow run and its logs will be removed.C... | I create a couple workflows in the.github/workflowsfolder of my repository to experiment with GitHub Actions. I have since learned quite a bit and deleted said "experimental" workflows from my repo. After deleting the "experimental" workflow yaml files and committing the deletions, when I go to the Actions tab of my re... | Delete a workflow from GitHub Actions |
Usually, you would write a php script that can be run from the command line (or a cron job) like this:#!/usr/bin/php
<?php
...
?>You'll just need to be sure /usr/bin/php is the path to the php executable. Find that by typing "whereis php" or "which php"My guess is that's why your script isn't running. | I'm using the following standard Sendgrid WebAPI code in a PHP file which sends email successfully when accessed through the web browser and with Cron wget. However, when I try to execute it with Cron php, it doesn't work. Here is the sample SendGrid code:$url = 'http://sendgrid.com/';
$user = 'USERNAME';
$pass = 'PASS... | Send email with Sendgrid WebAPI and Cron PHP |
1
Ok, it looks like a known issue, not sure why I wasn't able to find it before.
So, (kind of) workaround will be using container without -t flag
Share
Follow
edited Jun 27, 2017 at 8:16
... |
I obviously do something wrong. Or threre is a bug. Anyway, on recent docker 17.03.1-ce, run various windows containers, e.g.:
docker run -it microsoft/windowsservercore
and see no output for mingw and cygwin tools:
C:\test>dir
Volume in drive C has no label.
Volume Serial Number is 0E7C-C210
Directory of C:\test... | mingw in docker container no output |
These days Prometheus reads the token from abearer_token_fileon every HTTP request, so this should just work once the file is updated. | I have Prometheus setup on a Kubernetes Pod, which also has a sidecar that will connect to OAuth server and get a bearer token for the targets from where Prometheus is trying to fetch data.
What is happening is that the token expires after 2 weeks and then I have to restart the Pod for getting the new token work with P... | How does Prometheus get refresh tokens from sidecar program |
.htaccess directivesapply to that directory, and all subdirectories thereof, so you should disallow access in your DocumentRoot,http://sub.mydomain.com/.htaccess:Order deny,allow
Deny from allAnd override that in any specific subdirectories you would like to allow access to,http://sub.mydomain.com/test/.htaccess:Order ... | How can I deny access tohttp://sub.mydomain.com/, but allow for (completely)http://sub.mydomain.com/test(orhttp://sub.mydomain.com/test/)There is a magento back-end behindhttp://sub.mydomain.com/test/ | .htaccess. deny root, allow specific subfolder. Possible? |
I assume this is a firewall issue. Is this a correct assumption?Not necessarily. It might be that there is simply no service running at the IP and port you are trying to reach.Who's firewall is to blame, mine or the one at the remote location?If a firewall is too blame at all it might be at anywhere between the client... | I no longer have the ability to receive messages from a port at a remote ip address. I can currently ping the remote ip address with no problem. I have a python program that tries to create a socket that connects to that remote port/ip address, but it indicates that the port is closed.I assume this is a firewall issue.... | If I see a blocked remote port number, who's firewall is to blame? |
If you are adding new data you can save the new data file into the same folder (prefix/key) that the table is in reading from. Athena will read from all files in this folder, the format of the new file just needs to be the same as the existing one. | I have a table in Athena that is created from a csv file stored in S3 and I am using Lambda to query it. But I have incoming data being processed by the lambda function and want to append a new row to the existing table in Athena. How can I do this? Because I saw in documentation that Athena prohibits some SQL statemen... | How to efficiently append new data to table in AWS Athena? |
Just mmap a block that is (first rounded to the next power of) twice as big as what you need and then munmap what is not needed. | I need to allocate some memory chunk in my C++ program with two requirements. First the address of the allocation needs to be aligned on the chunk size, second it needs to be allocated below 4GB virtual address space.memalign()helps me with the first requirement, andmmap()helps me with the second, since I can passMAP_3... | Combination of mmap() and memalign() in Linux/GCC? |
I think your nginx declaration causes the issue.
Could you please try this:
location /static/ {
# static files
autoindex on;
autoindex_exact_size off;
# /data/atsi_webapp/ATSi_WebApp <-- may be in your case
root /exact/path/to/project/folder;
}
Instead of this:
location /static/ {
alias /data/... |
I know this question was already asked frequently. But the supposed solutions seem not to help me.
Here is my Nginx definition for the static files
location /static/ {
alias /data/atsi_webapp/ATSi_WebApp/static;
}
Here my Django settings
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__fil... | Static files are not found (gunicorn) |
Is your VPC setup to use IPv6 and does the subnet your instance resides in have an IPv6 range attached to it?You will also need to ensure your VPC has a route in the route table of your instance to allow::/0outbound for the internet (over an internet gateway as your instance is public).Assuming all of these exist useDI... | My public IP is in IPv6 format.
I want to whitelist it in the security group inbound rule.I added it as usual like this :But it doesn't work for some reason. I tried converting it to IPv4 and added that but still cannot access. What am I doing wrong please help. | How to whitelist IPv6 in AWS Security Group? |
Oridinary merge is just what you ask - squashed changes with the link to source branch. If you don't want to see the merged commits you only need to request for it. You can provide--first-parentargument togit logcommand and it will not output them:git log --first-parent origin/masterPS: the feature is supported by bund... | I'm trying to use theGitflow Workflowwhich I first met reading thecomparison of workflows at Atlassian. The main idea is that the development is done on thedevelopbranch which contains all the modifications merged from feature branches, and after that we mergedevelopintomaster. This way feature branches never interact ... | Git: squash merge with DAG |
S3 doesn't natively support this. If you upload the same file over and over again, a new version is added.Depending on your use case, if using the AWS CLI, you could add the--size-onlyflag when using theaws s3 synccommand.According to the docs adding this option:Makes the size of each key the only criteria used to deci... | I am trying to upload a large number of files to an AWS s3 bucket. I will also need to enable file versioning to have a backup incase some files get accidentally overwritten.However, with AWS s3 versioning currently enabled when I upload the exact same file that is already there aws stores both versions of the exact sa... | Not storing duplicate files with AWS Versioning |
you can usedelete_namespaced_pod(fromCoreV1Api) to delete specific pods within a namespace.Here is an example:from kubernetes import client, config
from kubernetes.client.rest import ApiException
config.load_incluster_config() # or config.load_kube_config()
configuration = client.Configuration()
with client.ApiClient... | I have end-to-end tests written in pytest, running on a Kubernetes cluster in Namespacefoo. Now I want to add simple chaos engineering to the tests to check the resilience of my services. For this, I only need to delete specific pods withinfoo-- since K8s restarts the corresponding service, this simulates the service b... | Simple way to delete existing pods from Python |
As is usually the case, there are no official definitions of these terms. But you could consider, for example, C++'s RAII idiom a form of automatic memory management. And it's quite distinct from reference-counting or garbage-collection.
|
A friend is writing a book in a non-English language and has trouble translating garbage collection (GC). On the other hand, automatic memory management (AMM) translates very well.
The Wikipedia article on GC states that GC is a form of AMM. The same article also states that reference counting (RC) is a form of garbag... | Automatic memory management == garbage collection? |
3
If you are using a TFVC repository in TFS then you'll probably want to build some scripts and a process around Git-TF to help automate some of this work.
If you are using a Git repository in TFS then you can create set up two remotes in a local Git repository, i.e
git rem... |
We are using one of the project from Github. We need to check-in code of this project in our TFS.
We need to automate this process. Else everyday we need to download the code and then check-in.
Is there some plugin or some tool to automate this?
| Integrating Github code to TFS - auto check-in |
Have it this way:RewriteEngine On
RewriteBase /worksheet/
# \?\S matches at least one character after ?
RewriteCond %{THE_REQUEST} \s/(worksheet/rebus)/\?\S [NC]
RewriteRule ^ /%1/? [R=301,L]
RewriteRule ^rebus/?$ /worksheet/rebus? [L,R=301,NC]
# skip all rules for real files and directories
RewriteCond %{REQUEST_FI... | I want to redirect all below pattern url to before "?" url
i.eXyz.com/worksheet/rebus/?random=testing11
Xyz.com/worksheet/rebus/?abc
Xyz.com/worksheet/rebus/?l=1should be redirected toXyz.com/worksheet/rebus/I tried many things but not able to succeed. How can i do using .htaccessRules triedRewriteBase /worksheet/
Rewr... | htaccess rule issue in redirecting the url |
0
The package you want to install needs to be compiled by Babel before you can use it. GitHub repo contains only source code, not compiled JS. As @noah suggested, what is published to the NPM registry is compiled code (the result of running prepublish script defined in pack... |
There is an npm package that I want to use in my Meteor app. It was
missing some features so I forked the repo and applied the patch myself.
I installed the forked package using:
meteor npm install --save https://github.com/suheb/react-slick.git
Now when I try to use the package using import Slider from 'react-slick',... | Import npm module installed directly from github |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.