Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
In my case, the token wasexpired.By default, tokens expire 24 hours after creation, unless you explicitly set the TTL value for the token when it is created.If you are joining a node to the cluster after the current token has expired, you can create a new token by running the following command on the master nodekubeadm...
I am new to kubernetes and have started building a cluster on RHEL 7.3. I have kubernetes cluster setup on the master. When i try to usekubeadm join --token ancdbs.askdcvasdckasd x.x.x.:6443the node is not able to join with following error message:[discovery] Trying to connect to API Server "10.26.24.37:6443" [discover...
no JWS signed token in the cluster-info ConfigMap - Kubernetes v1.7
Objects "VM instance" and "Firewall rule" have a "Network tag" attribute, that logically binds them:CloudShell:$ gcloud compute instances describe lamp-1-vm --zone=us-central1-f ... tags: items: - lamp-1-deployment CloudShell:$ gcloud compute firewall-rules describe my-http-enable ... targetTags: - lamp-1-depl...
I'm reviewing firewall rules. The rules appear to be attached by tag, is there a way to identify firewall rules to which there is no corresponding resource?
How can I find unattached firewall rules
If using Nginx thendefault backendannotation should do the trick, sample:apiVersion: extensions/v1beta1 kind: Ingress metadata: name: ingress-name namespace: your-namespace annotations: kubernetes.io/ingress.class: nginx nginx.ingress.kubernetes.io/default-backend: fallback-backend spec: <your spec her...
Is it possible to have a fallback service for Kubernetes ingresses in the event that none of the normal pods are live/ready? In other words, how would you go about presenting a friendly "website down" page to visitors if all pods crashed or went down somehow?Right now, a page appears that says "default backend - 404" i...
Defining a fallback service for Kubernetes ingress
1 Seems like I have managed to make it work by using official Hashicorp's action instead of the original. Gonna check if it deploys everything in the end :) - uses: hashicorp/setup-terraform@v2 - name: terraform-init run: terraform -chdir=terraform-k8s in...
I am trying to create a CI build in Github Actions for Kubernetes deployment with Terraform on Minikube. The Terraform apply fails on deploying provider with following message: Invalid attribute in provider configuration with provider["registry.terraform.io/hashicorp/kubernetes"], on providers.tf line 18, in prov...
Terraform Kubernetes provider fails on Github Action with following: 'config_path' refers to an invalid path: "/github/home/.kube/config"
You haven't explained why you want to see your container running after your script has exited, or whether or not you expect your script to exit. A docker container exits as soon as the container's CMD exits. If you want your container to continue running, you will need a process that will keep running. One option is...
I am trying to run a shell script in my docker container. The problem is that the shell script spawns another process and it should continue to run unless another shutdown script is used to terminate the processes that are spawned by the startup script. When I run the below command, docker run image:tag /bin/sh /root...
docker run a shell script in the background without exiting the container
An Elastic Beanstalk environment gets created with architecture set to either x86 or arm64, and it can never be changedafter creation. If your environment is set to x86 architecture, only thec6i,m6i,r6i, etc. series will appear. To use Graviton instances, you'll need to create a new Elastic Beanstalk environment and ...
In the AWS Elastic Beanstalk web console for an existing environment, under "Configuration" -> "Capacity" -> "Instance Types",I can't select a Graviton instance, e.g.c6g.large,m6g.large, orr6g.large. None of those appear on the list of options, butc6i.large,m6i.large, andr6i.largedoappear.
Elastic Beanstalk console can't select Graviton instance type
If this is related to your OS, you should:try and launch a Ubutun environment (through Docker or, on Windows, WSL2)clone the repository theremkdir "Data_File"git mv "Data_File\ /CMakeLists.txt" "Data_File/CMakeLists.txt"add, commit and push back
My friend and I are working on a project. He added some files and pushed them, but he seems to have included a space at the end of his file name. When I try to pull it now, I geterror: invalid path 'Data_File /CMakeLists.txt'Is there any way I can fix this by myself, because he isn't able to work today
Getting an invalid path error because friend pushed with a space at the end of his folder name
Publishing ports can be done only with newly created containers not existing containers. So you need to stop the container and create a new one with the port you need
So I just updated Docker on my Mac and getting adjusted to Docker seems to be quite challenging and confusing.A few weeks ago, I was able to mind port 8834 on the docker container to port 8834 on my local host by running the following commands (this is my command line history):8450 docker attach -p 8834:8834 compassio...
Docker doesn't recognize the -p command all of a sudden
After submitting a report about this to AWS I received this reply: Hello, This is actually the intended behavior. The SDK team chose to implement the "fields" property as a dictionary of string keys and string-array values to maintain consistency across the various languages in which the AWS SDK exists. They place the...
I am performing a search on my AWS CloudSearch domain from a Lambda function in node.js: I uploaded a document such as this: { “some_field”: “bla bla“, “some_date_field”: 1.466719E9, "number_field”: 4, “some_string”: "some long string blabla" ...
AWS CloudSearch - Getting results of a search in JSON format
Some features that appear to be "missing" in S3 are actually designed into CloudFront, which complements S3. Pointing multiple domain names to a single bucket is one of those features. It isn't possible to do this with only S3 since, as you noticed, S3 matches the hostname with the bucket name.Create a CloudFront dis...
I have a bucket calledsubdomain.domain.comthat hosts code that should be used whenever users go to various subdomains.e.g. going to: -a.domain.com-b.domain.com-c.domain.comShould go to the same bucket.I've set the CNAME for all the subdomain URL's to go to the URL of thesubdomain.domain.combucket. The problem is that,...
have multiple subdomains refer to the same S3 bucket without HTTP redirect
No. Amazon SNS and Amazon SQS have their own API.STOMP would need to support those services (rather than vice versa), but it appears that STOMP does not support SNS nor SQS.
Do AWSSNSandSQSsupportSTOMP protocol?I have tried googling it. I went through several forums but I am not sure yet.
Do AWS messaging services support STOMP?
For any service created inside that stack that didn't change, you can use:docker service update --force $servicewhich will force a rolling update of that service.To recreate everything from a stack, enter your stack name as$stackin:docker stack services -q $stack \ | while read service; do docker service update -...
Is it possible to do a force recreation of containers using compose file in docker swarm mode ? (I am aware of using HEALTHCHECK in Dockerfile)Currently i have to remove the stack first & then deploy it again -$ docker stack deploy -c stg-sm-deploy-compose.yml --with-registry-auth MY-APP$ docker stack rm MY-APP$ docker...
Docker stack "--force-recreate" in swarm mode using compose file
Use Session to store user-specific information, since the framework automatically associates each session store with a specific user.Use the Object Cache for information that can be cached once and reused across the entire application or across a set of users. If you store user-specific data in the Object Cache then yo...
In asp.net the major data stores are application, session and we also have the object cache. I have used common sense hints/tips (e.g. never put users specific data in application, never put unmanaged resources in session etc. etc.) but to be honest I have never come across any recommendations and examples for when to ...
ASP.net application session cache best practices and patterns
At the moment, Kubernetes does not support graceful connection closing.terminationGracePeriodSecondsonly define the timer before the Pod termination. It doesn't take care of Pod connections.The only way to deal with rolling updates is to adapt your application to be able to switch clients to other pods transparently.Yo...
I have a node.js container running on kubernetes that handles websocket connections that will normally be kept open until the user quits. Now when I do a rolling update or when the deployment scales down, is there a way to stop the pod from being killed until the last user has disconnected?
Keep kubernetes pod running until last user disconnects
I ran into the same error... I suspect that it's because I'm using a mix of private and public Azure DNS entries and the record needs to get added to the public entry so letsencrypt can see it, however, cert-manager performs a check that the TXT record is visible before asking letsencrypt to perform the validation... I...
I have created cert-manager on aks-engine using below command kubectl apply --validate=false -fhttps://github.com/jetstack/cert-manager/releases/download/v0.12.0/cert-manager.yamlmy certificate specissuer specIm using nginx as ingress, I could see txt record in the azure dns zone created my azuredns service principle,...
cert manager is failing with Waiting for dns-01 challenge propagation: Could not determine authoritative nameservers
Docker swarm has following terminology.Manager Node (Can be a leader or manager)Worker NodeNow for simple docker swarm mode , there is a single manager and other are worker node. In This manager is a leader.It is possible to have more then one manager node. Like 2 manager ( Mostly odd number prefer like 1,3,5). In such...
I wish to understand the difference between docker swarm node running as Leader and running as a Manager.I also, understand that there can be several docker managers but can there be multiple docker swarm Leader nodes and the reasons for it.Note: im aware of what a docker worker node is.
Difference between docker swarm node running as Leader and running as Manager
So my question is: There is a way to pull mcr.microsoft.com/windows:2004 docker image from the hosted agent?I am afraid there is no such way to pullmcr.microsoft.com/windows:2004docker image from the hosted agent.That becauseMatching container host version with container image versions:Windows Server containers and the...
When usingWindows-2019hosted agent(Agent installed with 1809 windows version -Microsoft Windows Server 2019 Datacenter) as Agent Specification, We can't pullmcr.microsoft.com/windows:2004docker image.Exception:I'm familiar withthis solution(Which works perfectly locally). But, since Docker Desktop doesn't install on th...
Azure DevOps hosted-agent failed to pull windows:2004
In the HTTP settings of Grafana you setAccesstoProxy, which means that Grafana wants to access Prometheus. Since Kubernetes uses an overlay network, it is a different IP.There are two ways of solving this:SetAccesstoDirect, so the browser directly connects to Prometheus.Use the Kubernetes-internal IP or domain name. I ...
UsehelminstalledPrometheusandGrafanaonminikubeat local.$ helm install stable/prometheus $ helm install stable/grafanaPrometheus server, alertmanager grafana can run after set port-forward:$ export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=server" -o jsonpath="{.items[0].metadata.name}...
Grafana HTTP Error Bad Gateway and Templating init failed errors
TLDR;I believe you created 3 filesystem repository, one on each node. You should only have a single one shared by all 3 nodes.To understandYou are using theshared file system repository. But as the name suggest, all master node should have access to the same filesystem. Not just the same path.You need to mount a single...
I have three nodes ELK-Cluster, I have created an SLM policy to take a Snapshot backup on the daily basis and delete the snapshot backup after three days on the cluster [Issue]: The snapshot backup is deleted from one node only but it is not deleting the snapshot backup from reaming two nodes.Please find the below step...
Snapshot Backup is not complete deleting form Elastic-Search cluster with SLM policy
There is no difference until you compile to same target architecture. I suppose you are compiling for 32 bit architecture in both cases. It's worth mentioning that OutOfMemoryException can also be raised if you get 2GB of memory allocated by a single collection in CLR (say List<T>) on both architectures 32 and 64 bi...
I am getting an Out Of Memory exception in my C# application when the memory usage for the application goes over about 1.3GB. I had this same problem on a 32-bit machine with 3GB of memory and it made sense back then. But now I upgraded the hardware to a 64-bit machine with 16GB memory using a high-end motherboard and...
.NET Out Of Memory Exception - Used 1.3GB but have 16GB installed
Not sure what the difference between your machine and your fellow colleagues machines are, but what I can say is that the dropdown in Git Extensions (the one that by default is located between the repository dropdown and the stash button in the menubar) will only show you the branches that you have available locally al...
I am using GitExtensions as a UI sidekick of Git command line and I am facing a problem with it. Everything is fine with it except one thing: the drop down where it is supposed to show all the existing branches, it shows only master branch. In reality, if I go to Git bash and do a git branch then it will show me multip...
GitExtensions show only master branch in "branches" drop down
There can be a multitude of reasons why it does not work for you. Among them are: The host networking driver only works on Linux hosts, so if you use Docker for Mac, Docker for Windows or Docker Enterprise Edition it won't work. The port 2345 might be already in use on your machine, and the delve process might not be...
Hi I am trying to run remote debugging using dlv inside a docker container with VSCode. Problem starts when I specify docker-compose flag network_mode: host instead of the specific port (This is required due to use of MQTT). This causes VSCode to throw to the following error: "Failed to continue: "Error: connect ENCON...
go delve remote debugging does not work with docker "network_mode: host"
This a Jekyll 3.x behavior. Posts with a date in the future are not published, except if you :set afuture: truevariable in_config.ymlordo ajekyll serve --futureThis is not a problem under Jekyll 2.x and Github pages.
I am testing mygithubsite with Jekyll, but when I add a new post it is not generating the post in the_postsfolder, so it can't getsite.postsinindex.html. I hadjekyll serverunning in local.My folder:The local page:The local:However, it works fine on thegithubsite. So what's the problem?
Why is Jekyll not working in local when I add a new post?
Switch back to the command line to know more:cd /path/to/my/local/repo git statusIf you see a master branch, check the remotegit remote -vIf you don't see one:git remote add origin /url/github/empty/repo git fetch git branch -u origin/master master git pull --rebase git push -u origin mastersincemasteris now associat...
I created a new Xcode project and also selected below option:Then after some coding I went to source control menu and selected commit. After I committed my files, then also my master branch isn't visibleI need to add a remote repository and push this xcode project to github repository.I have tried all these solutions:R...
Xcode 9.2 Unable to configure git source control for master branch
Because your google cloud instances can go down or up at any minute, (And also, you may have multiple instances of the same app running), which would make cron unreliable as it may trigger multiple times across multiple machines, google has created Task Scheduling, which is available on Google Compute Engine.A great tu...
Due to the architecture of our App Engine application we can't use the App Engine cron service that Google provides and are looking for alternative options.One possible solution we have come up with is to allow our App Engine PHP application to automatically create a cronjob on a compute engine instance. This instance ...
How to create a cron job on a Google Compute Engine instance via a PHP App Engine application?
Nature of the problemThis happens by default because your experiment tries toupload the source codeinto its default bucket (which is the jumpstart bucket).You can check the default bucket assigned to pipeline_session by printingpipeline_session.default_bucket().Evidently you do not have the correctwrite permissions on ...
I encountered this error when running pipeline.upsert()S3UploadFailedError: Failed to upload /tmp/tmpexrxqr32/new.tar.gz to jumpstart-cache-prod-ap-southeast-1/source-directory-tarballs/lightgbm/inference/classification/v1.1.2/sourcedir.tar.gz: An error occurred (AccessDenied) when calling the CreateMultipartUpload ope...
Sagemaker Pipeline Error: Failed to upload to jumpstart-cache-prod-ap-southeast-1/source-directory-tarballs/lightgbm/inference/classification
git diff 65b12d9d32 compares the tree as of commit 65b12d9d32 to your current working copy. Since your working copy is clean, it's equivalent to git diff HEAD 65b12d9d32 On the other hand, git cherry-pick 65b12d9d32 calculates the difference between commit 65b12d9d32 and its parent - the changes "introduced by" commit...
(note: this is not a duplicate question, see explanation below) I first checkout master as a detached branch: % git checkout --detach master HEAD is now at fff9e1e687 modserver/go: skip Spotlight automod aspect ratio check for cheerio vids Your branch is up to date with 'origin/master'. I then try to cherry pick my b...
git cherry-pick says nothing to commit
I imported DigiCert High Assurance CA in Trusted Root on both TFS Build and Application server.ShareFollowansweredMar 26, 2020 at 17:36C1TonyBC1TonyB14311 silver badge66 bronze badges1Thanks for your sharing, You couldmark your reply as an answer, which will also helps others in the community.–PatrickLu-MSFTMar 30, 202...
I receive the following message after binding our SSL wildcard certificate to our TFS site.One or more intermediate certificates in the certificate chain are missing. To resolve this issue, make sure that all of the intermediate certificates are installed.Does the certificate need to authenticate to the internet?I've ...
SSL Certificate Binding Issue - One or more intermediate certificates in the certificate chain are missing
The ideal solution consiste to keep local Mercurial repo, and work only with this local repo to the existing bitbucket Mercurial remote repo. With a plugin like Hg-Git, you can at least push to and pull from a Git server repository from Mercurial, allowing you to pull from the GitHub repo to your local Mercurial repo....
Imagine situation like this: You have a working repo in bitbucket - you were pulling revisions from another bitbucket repo in Windows 7 through TortioseHG. Now the second project has moved to Github system and you can not pull from it anymore. So my question is like this: How can i somehow create new repo in bitbuck...
From github to bitbucket
iPhone 3GS/4, iPod touch 3rd/4th generation, iPad/2 or later have PowerVR SGX GPU. PowerVR SGX uses shared memory model with the main memory, so you can use textures of any size. Imagination provides the brief documentations of PowerVR SGX. POWERVR SGX OpenGL ES 2.0 Application Development Recommendations POWERVR Ser...
What exactly is 'shared memory' related to texture memory in PowerVR SGX card.There is no proper documentation related to this. Usually for an Application on iphone (assume 3gs/ipad PowerVR SGX cards)it is limited to use 24MB. Even if I load around 64mb of textures it will load.Then why its called shared memory! Rea...
What is the maximum texture 'count' for ipad/3gs (SGX Graphics card)? how much memory we can use 'specifically' for texture data?
You can useatcommand, run your PHP file and in the end, register make another call toatfor the next time. Something like this<?php // your PHP code in here, and then find out when is the next call time $time = date('H:i', intval($time)); // or another good way to make sure time value is safe to use as a shell argument,...
So, I'm working on a time-sensitive website in PHP on my CentOS server. I have a random time selected in the future, within 24 hours of the present. At that point, I need a PHP file to execute, and a new date to be selected and the same file to be opened. How is this possible to accomplish? I looked briefly at cronjobs...
How to run a php file at a specific time?
It seems like an issue with your ssh keys between the gitlab-runner host and gitlab. This topic might answer your question:Git-error-host-key-verification-failed-when-connecting-to-remote-repositoryBasically, log in your gitlab-runner host and check${HOME}/.ssh/known_hosts. You should see the current public key from yo...
I created a .gitlab-ci.yml file. the project is already in the remote server. I created gitlab-runner in my remote server and I chose the shell option. my file .gitlab-ci.yml just makes the update for the project i.e. (we will do "git pull origin master" and here is my .gitlab-ci.yml scriptstages: - build before_scr...
How to solve the problem Host key verification failed
In each of your nested stacks, you should have an output section. Then you can get those values in your calling stack (the one you have listed above) with syntax like:{ "Fn::GetAtt" : [ "CubesNetworking", "Outputs.VolumeID" ] }You then pass the values into your other nested stacks via Parameters:"Parameters" : { ...
If I have two cloudformation stacks, how do I references a resource in one stack from the other stack?In the example below I have a stack that creates an EBS volume and want to reference that via the Ref: key in the second stack for my EC2 instance but I keep getting a rollback since it can't see that resource from the...
Referencing Resources between CloudFormation stacks
I believe it was probably trying to recurse through index.php since it appears to match the rule.Try:RewriteEngine On RewriteCond %{REQUEST_URI} !index RewriteRule ^([^/]+) index.php?id=$1 [L]The RewriteCond is to ensure it doesn't apply the rule to the results of itself. And [L] is to make sure it doesn't try apply...
If I do it by typing/?id=some_textin url then index.php script works as it shuld but if I do/some_textthen index.php always receives id to have value "index".At first I hadRewriteRule ^([^/]+) ?id=$1but that returned "Internal Server Error" instead web page, then I changed it to RewriteRule ^([a-z]+) index.php?id=$1 an...
"RewriteRule ^([^/]+) index.php?id=$1" posts "index" instead entered text
Use port 8999 for your server endpoint --server.endpoint=tcp://127.0.0.1:8999 This works for me on 3.6.2. In your case there is no need for a Dockerfile, nor expose in docker-compose.yml.
I'm trying to initialize my docker arangodb, but keep getting connection error: I've tried changing the server endpoint to http+tcp://..... but the error remains, what could be happening? docker-compose.yml: version: '3.3' services: db: container_name: arangodb build: . environment: - ARANGO_DB_NAM...
Arangodb connection fail on docker-entrypoint-initdb.d
Calling "history.back()" in JavaScript is the same as hitting the back button in the browser's user interface (however, there can be slight differences if the currently viewed location contains frames and those have been navigated, if you're pedantic).As for if the result comes from the server or "cache": it's up to th...
If I usehistory.back()for button press then what will happen?Will the HTML content be displayed from the local history of the browser or the cache and without the browser requesting to the server? Or will the browser request to the server based on the URL that resides in history of browser?
HTML cache history back
2 You still need to rebuild nginx. If you run passenger-install-nginx-module you will see this output: Nginx doesn't support loadable modules such as some other web servers do, so in order to install Nginx with Passenger support, it must be recompiled. See Installing Pass...
I have a server running with nginx serving two php websites, right now I want to make it serving a rails app, I've googled, but there no notes about add passenger support to a existed nginx, all of them are telling me run passenger-install-nginx-module to build a nginx. Can I add passenger support to my nginx instead ...
Can I add passenger support to a existed Nginx instead of rebuild one?
23 Supposedly the Lambda is exposed through an AWS API Gateway. One reason why you'd get 403 on a fresh "no authentication" API Gateway resource is because you haven't yet deployed your changes. In API Gateway Console click the Actions dropdown and select Deploy API. You...
I have an AWS Lambda function that is exposed as a REST API. When it is invoked it via the Test button on aws lambda console, it works. When it is invoked via a online REST client, i get 403 error. It was created as requiring - no authentication (Open). What configuration am i missing?
AWS Lambda function REST API end point - 403 error
You can do this easily withAWS Systems Manager - Run CommandAWS Systems Manager provides you safe, secure remote management of your instances at scale without logging into your servers, replacing the need for bastion hosts, SSH, or remote PowerShell.Specifically:Use the send-command API from Lambda function to get list...
I have an EC2 instance that is running a few processes. I also have a Lambda script that is triggered through various means. I would like this Lambda script to talk to my EC2 instance and get a list of running processes from it (Essentially runps auxon the EC2 box, and read the output).Now this is easy enough with just...
AWS Lambda run command on EC2 instance and get result
Amazon recently (Feb 2018) released the EC2 instance scheduler tool:The AWS Instance Scheduler is a simple AWS-provided solution that enables customers to easily configure custom start and stop schedules for their Amazon Elastic Compute Cloud (Amazon EC2) and Amazon Relational Database Service (Amazon RDS) instan...
I'm a beginner in using AWS.I just want to stop and start several EC2 instances automatically and periodically(Not reboot).Is there any recommended way to do this?
how to stop and start AWS EC2 instance automatically
Next means node:10.13.0 use debian9, aka stretch. $ docker run --rm node:10.13.0 cat /etc/issue Debian GNU/Linux 9 \n \l Next means node:10.13.0 default use git 2.11. $ docker run --rm node:10.13.0 git --version git version 2.11.0 In fact, git in debian 9 apt repo use the version 2.11, if you want to upgrade to ...
I'm using docker to install my dependencies. Using Node:10.13.0 as FROM: node:10.13.0 All dependencies installed well except Husky. And it shows the following: Husky requires Git >=2.13.0. Got v2.11.0. husky > Failed to install So, the problem is that the git version is below 2.13. Searched for init git version in...
Can we update git version in the Docker Image?
38 Here's how to understand Git: Forget everything you know about other VCSs (temporarily!) Read The Git Parable. Really read it though, if you skim, you'll miss stuff and just try to fill in the gaps with your existing SCM knowledge, which is what's throwing you off. In f...
I've been using Github for sometime now but I'm getting a bit confused about some key concepts behind Git. My background with VCS started with Source Safe and then transitioned into SVN and TFS. I think I'm stuck in the old way of thinking of CVS system, like SVN and TFS. What is considered server-side and client-side...
What are the core concepts of git, github, fork & branch. How does git compare to SVN?
You are correct about rewrite rules not supporting this with Cloudflare, but you can use Cloudflare Workers to act as a proxy. Here is a blog article going over details of one way you could achieve what you are looking for -https://blog.cloudflare.com/subdomains-vs-subdirectories-improved-seo-part-2/Here are also a num...
I have a main domain, eg.:mydomain.com.A Single Page Application:myApp, hosted on: myApp.somehost.com (IP: {ip.of.myapp}).A WordPress Site:myWP, hosted on: myWP.anotherhost.com (IP: {ip.of.mywp}).The goal:mydomain.comshould showmyWP(this is straight forward, I need an A record in my DNS NameServer, with {ip.of.mywp})my...
Can I use the same domain to proxy two different hosts?
If you want to access all the cells of a row at once, just inverse the two loops:for (d = 0; d < 50; d++) for (c = 0; c < 50; c++) ary[d][c] = ary[d][c] + 1;Or evenfor (d = 0; d < 50; d++) int[] array = ary[d]; for (c = 0; c < 50; c++) array[c] = array[c] + 1;But I doubt it has any significa...
I have been trying to think of a way to rewrite the code below to improve cache performance ( by reducing misses in cache) in the array.I am aware that the array is stored in memory row by row (sequentially), so ary[0][0], ary[0][1], ary[0][2],....ary[1][0], ary[1][1], ary[1][2]... ary[50][0], ary[50][1]...ary[50][50]....
Improving cache performance while iterating through a simple 2D array?
Ye, I think it's fine.Another one is to create repo usinggit initand thengit remote add origin https://github.com/user/repo.git
I read around to see how to load an existing project into GitHub but I later got really confused. So in the end I did the following:Created a project which uses the GitHub Repository I have (Library-Tracker) as the location.Dragged existing Java files into src folderCommitted and pushedThe files showed up on github fin...
Existing Java Project into Github
I believe thedocs are pretty clear👓 on how to debug this. This is a 'failed' deployment and possible causes:Insufficient quotaReadiness probe failuresImage pull errorsInsufficient permissionsLimit rangesApplication runtime misconfigurationYou can try to debug for example by patching theprogressDeadlineSecondsdeploymen...
I have deployment and a replica set in Kubernetes that are failing to create a pod. I've triedkubectl describe deployment deployment-nameandkubectl describe replicaset replicaset-nameAnd they both sayConditions: Type Status Reason ---- ------ ------ ReplicaFailure True FailedCreate...
Kubernetes ReplicaFailure FailedCreate but no events
It's aknown limitationof this PMD rule and of the related Squid (SonarQube internal) rule. Feel free to vote for the resolution of this issue in next version of the Java plugin.
I have a class lets say BImpl which implement B interface and C abstract class. Both super classes have some method like doSomething() which implemented in abstract class C.interface B { Some doSomething(); } abstract class C { protected Some doSomething() { //Do something here... } }And i implement BImpl as fo...
Avoid The overriding method merely calls the same method defined in a superclass Sonar violation in multiple inheritance
It works likeORand it is impossible to configure this to behave likeAND. For this, you require state management and this is not provided by Azure DevOps. You could try to build it on your own with some external service and then when you get A and B triggered what satisfies your condition trigger pipeline C via REST API...
I have two different pipelines A and B and need to trigger pipeline C on completion of both pipeline A AND pipeline B. A and B runs on different times and will need to trigger C upon completion of both A and B, and not run if either A or B fails.Would adding both pipelines, like in the example below code, create an "OR...
Trigger pipeline on completion of all dependent pipelines yaml
Use--publish 80:80if you want to access the service via port 80 on the host. Otherwise there's nothing on the host listening on port 80 and you get connection refused. Same goes for 443.The format is--publish <host port>:<container port>
I am trying to run a gitlab docker image, and everything is running fine except that when I navigate to the website, Port 80 results in "Connection refused", but port 8080 successfully reaches Gitlab.However, it shows that it's forwarding from 8080 to 80 on the container:CONTAINER ID IMAGE COMMAND ...
Docker not port forwarding correctly?
The best load test is with a real-world load; the closer to that your load test is, the better. If you have many concurrent requests, connection pooling is a must and pgBouncer is the standard answer. It is impossible to do performance tuning in the scope of an answer, and indeed this question will probably be closed ...
For the past few weeks I've been tuning and messing with PostgreSQL which I'm going to use with my next project. My Specs are: DigitalOcean 8 Cores 16GB SSD x2 (One for DB, another for Web) Centos 7 PHP5 , Nginx The things that I've tried: Pgtune PgBouncer & Pgpool (connection pooling & load balancing) Tuning php-f...
PostgreSQL performance tuning and max connections (practically)
3 Since nodes are allocated and deleted as needed, the only memory that could be reduced is what is used by the bucket list. This can be done by calling rehash(0) on the unordered_map (the parameter is the minimum number of buckets to use; the actual number can be larger b...
Suppose I have an std::unordered_map object to which I add some elements and then remove them. Other than constructing a new object to replace the old one, is there a way to force reducing the map object's memory footprint, similar to std::vector::shrink_to_fit()?
Reducing std::unordered_map memory footprint after emptying it
According to your comment above, you are representing the edges of the graph with a distance matrix long dist[GRAPHSIZE][GRAPHSIZE]. This will take O(n^2) memory, which is too much for large values of n. It is also not a good representation in terms of execution time when you only have a small number of edges: it will...
I have an implementation of Dijkstra's Algorithm, based on the code on this website. Basically, I have a number of nodes (say 10000), and each node can have 1 to 3 connections to other nodes. The nodes are generated randomly within a 3d space. The connections are also randomly generated, however it always tries to fi...
Dijkstra's algorithm: memory consumption
A short intro intoulimit:RESOURCE LIMITS ON UNIX SYSTEMS (ULIMIT). The command this init script is trying to issue is supposed to set the max locked memory limit to, well, unlimited. Should succeed for root. Doeswhoamiprintroot?UPD:further research led me tothisGoogle Groups discussion. Hopefully it will clarify things...
I am trying to start a cassandra (not dsc) server on Docker (ubuntu 14.04). When I runservice cassandra start(as root), I get/etc/init.d/cassandra: 82: ulimit: error setting limit (Operation not permitted)line 82 of that file isulimit -l unlimitedI'm not really sure what I need to change it to.
Docker + Cassandra ulimit error
To be able to runphpscripts in a command line (without telling explicitly it should be run with php) you'll need to ensure it have executable bit set and have#!/usr/bin/phpas the first line in file. In your case it's probably better to add/usr/bin/php(or wherever yourphpis located) in from of your script name incrontab...
I am trying to do cron job to call a php file to send mail.I tried lot of time but i am unsuccessful.I did not figured out the problem can some one please help me.I wrote cron job in the following way#11 01 * * * /var/www/mail.phpThis is my php fiel what i am calling<?php #!/usr/bin/php $to = "[email protected]"; $subj...
cron job not calling php file
0 If you are using msysgit 1.8.5.2, this could be the result of a bug. (Initially discussed in this question, and confirmed in issue 153) Try upgrading to msysgit 1.9.0.: PortableGit-1.9.0-preview20140217.7z. Share Improve this answer Fo...
I am trying to run the following command on GitBash on Windows 7: $ git clone https://github.com/myfolder/myrepo I ended up getting the following message: Cloning into 'myrepo'... fatal: could not read Username for 'https://github.com': No such file or directo ry Found some articles but none of them were related wi...
Getting Fatal Error while cloning on github
yes, you can include extra files into you configuration, see the docs and example below here: server { listen 80; include location_directives.conf } server { ssl on; listen 443 default spdy ssl; include location_directives.conf } P.S. By the...
I'm running nginx on two ports, one for HTTPS and the other for HTTP, but identical in all other ways (i.e. location directives, etc.). I'd like to avoid writing the same rules twice. Is there a way in nginx config files to write my rules in some sort of block and then include them inside my server directives?
Running nginx on multiple ports with same rules
Set up a server of your own ... say, with ssh, set up git there (installing the binary), create a bare repo on it and then add it as a remote of your local repo of the computer that you normaly work on... you can push then to your repo onyourserver when you feel like.
I'm working on a thesis project and I'll be extending a platform that was developed by researchers at another university. They're hosting the code of their platform on Github in apublicrepository.My code isn't ready for publication yet. I want to use aprivaterepository (for all the usual version control/remote backup i...
How do I make a private repository that can still access updates from a public repository?
Yes, you can cheat and mount this file in read only mode. The trick is to use Secret Manager. Store your file in secret manager Load the secret as volume in Cloud Run The file is in read only, but it works. However, keep in mind that you have limitations: the file can't be larger 64KiB -> Large files aren't support...
I have a docker image that I run in Google Cloud Run. The app inside the image needs a config file /etc/app.conf. In my image there is no such file. When I run it local I can mount the config file from my computer inside the container: docker run --detach --volume=`pwd`/app.conf:/etc/app.conf myimage Is there a way t...
Is it possible to mount file to the docker container running in Google Cloud Run
This answer is just a refined version of my comments. Essentially you can install packages using devtools by unzipping a local zipfile downloaded from github, and then running the install function install("path/to/unzipped_pkg_zip_file") The latest dev version of devtools contains an install_local utility function t...
I probably have some issues in my connectivity (some sort of blocks, I don't know) and I can't install directly form gitHub > install_github("assertthat") Installing github repo(s) assertthat/master from hadley Installing assertthat.zip from https://github.com/hadley/assertthat/archive/master.zip I tried with lots of...
Install R packages from github downloading master.zip
It doesn't matter what tooling you use, Visual Studio or Rider, they're just editing xml files (csproj or nuspec, but I'm 90% sure you'd know if you're using a nuspec file, so I bet you're using csproj for creating your package) that you can edit with a text editor. In fact, it's possible the tooling doesn't expose th...
I am currently deploying a package to Nuget using github actions (specifically using the brandedoutcast/[email protected] action). The package was pushed successfully but how do I add project tags and social media links like so to the project on Nuget: I'm using JetBrains Rider to develop the project in question, so ...
How to add tags to a nuget package?
In order to stream an S3 bucket. you need to provide the path to S3 bucket. And it will stream all data from all the files in this bucket. Then whenever w new file is created in this bucket, it will be streamed. If you are appending data to existing file which are read before, these new updates will not be read. here ...
So I have thousands of events being streamed through Amazon Kinesis into SQS then dumped into a S3 directory. About every 10 minutes, a new text file is created to dump the data from Kinesis into S3. I would like to set up Spark Streaming so that it streams the new files being dumped into S3. Right now I have import o...
Spark Streaming on a S3 Directory
Yourapp.yamlandcron.yamlconfig files look fine. You should verify the following:Try to redeploy thecron.yamland specify your project ID just to ensure you have it going to the right project:gcloud app deploy cron.yaml --project=YOUR_PROJECT_IDVerify the job deployed usingthis link, which will ask you to select your pro...
I'm new to GAE. I have a Node application that only handles one URL for now, which should be called as a cron.I have the following cron.yaml file:cron: - description: "Test" url: /translations schedule: every 15 minutesAnd here is the handlers section of my app.yaml:handlers: - url: /.* script: auto secure: alw...
How to configure Google App Engine cron tasks in Node?
As you are essentially "guessing" 3 seconds, this is not very scientific and there's a better way.Instead, you can replace.show()with.fadeIn()and use a callback:$(".termostat1_grafana").fadeIn( 10, function() { /* 10 is almost as fast as .show() */ // animation complete $(".termostat1_grafana_loading").hide(); ...
in jQuery I have a prepend line which loads an generated image from Grafana. I have another div which shows "Loading in progress" text because Grafana image take about 3 seconds to generate and load.Problem is that if i hide that div immediately after prepend line it hide itself immediately.Is there any solution?$("#t1...
Hide div when img in jQuery prepend load
In terms of memory management, the data will obviously be located in different places in memory. A global variable is placed in a static segment, while a local variable lives on the stack. Is it created every time? Yes. Does it affect performance? It depends. If datastr really looks like what you show here, then no. I...
Let's say i have a function that is called 10 times a second, something like: void RxData(System::Byte *Data){} in this function i want to fill a struct with *Data, where the struct is like: Struct datastr{ float first; float second; } in term of performances and memory use is better to declare a extern variable dat...
Performance: better to inizialize variable or just fill it?
You need to create input mapping inside Integration Request panel on the dashboard screen describing your API method. Following code translates name query input parameter into Lambda Event input object: { "name": "$input.params('name')" } Screenshot: You can find more info about this in the original API Gateway t...
I see in the API Gateway FAQ that it is possible to access the request headers sent to the API Gateway... If you already utilize OAuth tokens or any other authorization mechanism, you can easily setup API Gateway not to require signed API calls and simply forward the token headers to your backend for verificati...
How to access HTTP headers for request to AWS API Gateway using Lambda?
Unfortunately, there is no such method available in official aws-amplify SDK. After doing a lot of research I had to write my own middleware for that. This is not that difficult as it may seem but the only difficult part is to gather the right information from the huge AWS documentation. I 've written this middleware ...
I am using AWS amplify for user authentication on my front-end React app. My React app directly communicates with amplify without any backend(node server) interaction. I have a REST API written in node/express. I want to secure that API using amplify. Currently, I am planning to pass the access token from my react app...
How to verify accessToken in node/express using aws-amplify?
I compared the code from the documentation:if (cell == nil) { [[NSBundle mainBundle] loadNibNamed:@"TVCell" owner:self options:nil]; cell = tvCell; self.tvCell = nil; }With your code:if (cell == nil) { [[NSBundle mainBundle] loadNibNamed:@"MyCustomCell_iPhone" owner:self options:nil]; cell = [self c...
I just added some code that was taken from theApple docswhich shows how to use custom UITableViewCells that are created from a nib. I'm new to iOS development, so I'm still learning about proper memory management and the code isn't exactly clear to me as to how it works in the first place. When I run the Allocations ...
iOS Development: How am I mismanaging memory in this code?
$IMAGE_ID does not actually have to be an image ID. If you know the image name (which will probably be $REPOSITORY:$VERSION in your case), that will suffice for the docker tag command: $ docker tag $REPOSITORY:$VERSION $REPOSITORY:latest However, note that the 2nd argument to docker tag still needs the image name; on...
I have a Makefile that runs docker build -t $REPOSITORY:$VERSION . -- this works fine. Now I would like to automate adding latest tag to the built image. The command to do this is: docker tag $IMAGE_ID latest How to programatically obtain the image ID, i.e. the ID of the image I just built?
Obtain ID of just-built image
I know this question was asked quite a while ago, but still ;-)Two possible reasons: You haven't set a trust manager so the "installed security providers will be searched for the highest priority implementation of the appropriate factory" (taken from theJavadoc). Maybe you installed a trust manager by accident acceptin...
TLS server accepts connection from the client even client cetificate is not present in server's truststore. Why?Server Code:tlsContext = SSLContext.getInstance(SSL_PROTOCOL); tlsContext.init(getMyKeyManagers(),null,null); SSLServerSocketFactory fact = tlsContext.getServerSocketFactory(); tlsServerSock = (SSLServerSocke...
TLS server accepts connection from client even client cetificate is not present in servers truststore ? why?
You are missing a ; on your server_name directive, which would normally be a syntax error, but in your case it translates to: server_name localhost index index.php index.html index.htm; Which may be a weird list of server names, but more importantly, it means you do not have an index directive. This means that you wi...
I'm trying to set up a web application using Nginx, but when trying to access it I am getting a 403 error. I've followed various different approaches to solving this including making sure that my permissions are set but to no avail. here iss the config for the web application: server { listen 80; server_name...
Nginx config issue: getting 403 Forbidden
1 you can try to let au run --watch run detached using docker-compose. Having that detached a au build refreshs the application as well. Maybe better than restarting the total container everytime. Getting the application refreshed by code changes currently doesn't work (as ...
I have a docker container which has NodeJs, npm, jspm & aurelia implemented, my src folder containing the styles, assets, html and js files in mounted on the host file system. Everything looks fine but when I update html or js in the mounted volume and refresh the web app the changes are not reflected. My docker file ...
Docker mounted volume only updates on container restart
So can I just exclude using it and proceed with Nginx and gunicorn? Short answer: No, you can not. Slightly longer answer: FastAPI's async functionality is optional, however, FastAPI is based on ASGI specification and built top on an ASGI framework, it is not forcing you to use coroutines in your app however you wil...
Can we build a fastapi application just with nginx + gunicorn as web server and WSGI without using uvicorn. Reason why I am asking this is my application has no low level async activities. So I dont need an ASGI (uvicorn). So Can I just exclude using it and proceed with nginx and gunicorn?
Can we build a fastapi application just with nginx + gunicorn as web server and WSGI without using uvicorn?
Thelinkhelped me setup SSL on WAS. I just had to add a couple of steps to enable it for Browser based Mutual Authentication.Since, I had to do a POC hence I'm using Self Signed Certificates.In a ideal scenario Certificates will be signed by a Certificate Authority and the Certificate of Certificate Authority will be im...
I'm working on Jboss 5 and WAS 7. I was able to run my application via Mutual Authentication on Jboss following this doc,https://community.jboss.org/wiki/SSLSetup/Following the above doc I created server.keystore and server.truststore files that I injected into the Jboss server and everything works fine.Now, I want to ...
Mutual Auth in Jboss vs WebSphere
If you did not merge in that PR then it is gone for good, Adam deleted the source code on his repo on his branch, he actually deleted his whole repo. The PR link just compares the codes on the 2 repos/branches so you can not get code from the PR object itself.Only thing you could do is ask Adam if he still has the code...
My former colleague, Adam, raised a Pull Request from a branch in his forked repository to the main repository. Now he has left the organisation and this PR got auto closed sayingAdam closed this by deleting the head repositoryNow I need these code changes to finish this task. How can I pull these changes into my local...
How to get the code changes just from the PR link?
You appear to want to put1in the map if no value exists, otherwise add1to the current value. I agree that usingcomputeIfAbsentis not the best substitute for your current code. However, your use-case sounds like it would be perfectly solved byMap#merge(K,V,BiFunction):If the specified key is not already associated with ...
I have this method:private static void method(Integer key, final Map<Integer, Integer> aMap) { var value = aMap.get(key); if(value == null) { value = 0; } aMap.put(key, value + 1); }and Sonar analysis is telling me I should useMap#computIfAbsent, but I don't really know how to ensure the same result, since ...
Sonar use computeIfAbsent
2 Are there any such settings in github which sends a mail to PR creator? There's currently no setting in GitHub that makes the platform work in that way. Note: You can send an email to [email protected] to request for such a feature. Can I tag myself in the PR comment ?...
If I raise a Pull request and if I need to be notified by a mail saying -- You have created a Pull request for "bla bla" on "so and so" date. On merge - I get a notification On comment - I get a notification So my question is... Are there any such settings in github which sends a mail to PR creator? Can I tag mys...
Github notifications - Mail to PR creator
It looks like you can use the alternate form offlock,flock <fd>, where<fd>is a file descriptor. If you put this into a subshell, and redirect that file descriptor to your lock file, then flock will wait until it can write to that file (or error out if it can't open it immediately and you've passed-n). You can then do e...
Greetings all. I'm setting up a cron job to execute a bash script, and I'm worried that the next one may start before the previous one ends. A little googling reveals that a popular way to address this is theflockcommand, used in the following manner:flock -n lockfile myscript.sh if [ $? -eq 1 ]; then echo "Previ...
How do I check the exit code of a command executed by flock?
According to the 3rd picture I think that you would like to have your code in the directory /home/tomcat/. You will find your code at /var/lib/jenkins/jobs/<jobname>/workspace/. That is the directory where your code will be pulled. The command to switch the directory will be executed after pulling the repository. To m...
I have just started using jenkins. i have setup jenkins on my server and created item which intimate when someone commit changes on github . but the problem is its only showing me the changes commit. but not pulling changes to my code on server auto when code committed to git repository. Please help me to get one. Yes...
pull github committed code auto to server using jenkins
From the AWS Documentation:Downloading Objects into MemoryFor small objects, it can be useful to get an object and have it available in your Ruby processes. If you do not specify a:targetfor the download, the entire object is loaded into memory into a StringIO object.def import_from_s3 #initiate the client s3...
I have a bucket in Amazon AWS S3 which has a file in it calledusers.csv.How can I load the content of this file from the S3 bucket into memory with Ruby so I can parse it?Here is my code:require 'aws-sdk' s3 = Aws::S3::Resource.new(region: 'us-west-1') resp = s3.list_objects(bucket: 'bucket-name', max_keys: 1) resp.con...
How to download the content of a file from S3 bucket into memory with Ruby
Checking out only one directory is not possible, but has been requested in theactions/checkoutrepository before:https://github.com/actions/checkout/issues/483There's an action to check out specific files, but I haven't tried it and I'm not sure if it does what you want:https://github.com/marketplace/actions/checkout-fi...
I am trying to upload a repo to server via ftp on push to master branch. I have it set up and working. However in the repo there is a folder /public. I only want to upload the files in this folder to the server. Not other files or the folder itself. I have tried to set up a working directory for the job but this doesn'...
GitHub Action checkout from specific directory
It turns out that the Run As -> Run Configurations -> Arguments -> Vm Arguments for Jython also expect Java arguments and not Jython ones :/Setting the VM arguments to -Xmx2048 fixed the issue. The memory usage for java now peaks to 2G (earlier 1G) confirming the fix.
When I run the program from PyDev/Eclipse, it runs out of memory and gives the following error:java.lang.OutOfMemoryError: java.lang.OutOfMemoryError: GC overhead limit exceededIt goes away when I pass the -J-Xmx2048 limit from the command line. So clearly, this can be solved if PyDev can read these somehow.In Eclips...
How to set -J-Xmx parameter in PyDev Eclipise for Jython
You should includeandroid:largeHeap="true"in your Manifest file, under theapplicationtag.Whether your application's processes should be created with a large Dalvik heap. This applies to all processes created for the application. It only applies to the first application loaded into a process; if you're using a shared us...
I have list in the main activity. Every click on the list item, it opens the activity with the webview. My scenario is: click on the list item, open the activity with webview, it loaded, than I press the hardware back button of the phone and I am again on main activity. This scenario I repeat more times (30). After tha...
Failed to map memory in the client: Out of memory android
1 This is actually referenced in "Deploying a registry server - Load Balancing Considerations" One may want to use a load balancer to distribute load, terminate TLS or provide high availability. While a full load balancing setup is outside the scope of this document, there...
Please note: This is a very similar question as this one, but I assert this is not a dupe! That other question was clearly based on the (older) Python-based Docker registry, not the latest one that is written in GoLang and seems to be fairly different! I just spent a few hours reading the docs for setting up a privat...
Making the Docker Registry HA
2 The problem is in the max body size If you are using NGinx, add client_max_body_size 35m And if you are using Apache you have to increase this size too. Share Follow answered Nov 4, 2013 at 21:41...
WheneverI try to upload an mp3 file through a CMS I built with the Django Admin contrib pacakage, the server takes a couple minutes, then gives me a "Connection was reset" error. I'm running Django on a CentOS server using NGINX which is proxying Apache with mod_wsgi for python. Could this be a server settings issue?...
"Connection Reset" error on Django Admin file upload
As mentioned in this link :https://mattionline.de/grafana-api-export-graph-as-png/But you need to Create your API Key eg : click on the grafana icon at the top left corner and go to Admin (Main Org.) -> API Keys add a new key (example: name=export role=viewer) then you will receive your api key (eyJrIjoieDRzbjh6R1__API...
I have a visual in grafana. I can manually go to the menu click share -> snapshot -> rendering and export the snapshot. This works great. Is there a way I can script that in python?. Is there some api I can hit that will return the json of a visual?I was googling around and it looks like I can use the api to create das...
Programatically export images (png/jpg) of grafana dashboard
I found the "problem". It's just that it's query params .........ShareFollowansweredJul 13, 2018 at 12:31Matthis.hMatthis.h88933 gold badges1414 silver badges3030 bronze badgesAdd a comment|
Hi I want set new quality profile. But I have this error :{ "errors": [ { "msg": "Either 'projectUuid' or 'projectKey' must be provided" } ] }I don't know why I have this error. Parameters'projectKey'is defined in my body.URL :http://sonarURL/api/qualityprofiles/add_projectBody :{ "projectKey": "pr...
Sonarqube error Either 'projectUuid' or 'projectKey' must be provided
The serverless documentation says that you add the region in brackets after ssm in the variable name:https://www.serverless.com/framework/docs/providers/aws/guide/variables/e.g.ssm(eu-west-1)However, that didn't work for me. Adding it with a dot.between the ssm and the region e.g.ssm.eu-west-1did work and you can see ...
Serverless offers a function to accessSSM.${ssm:/parameter-path}However, It seems only to allow access toSSM(parameter) in the same region.Is there way to referenceSSMin a different region?Sometimes there are parameters globally used.For those, I want to create them in a single region then share them accross multi-regi...
Way to reference SSM in different region in serverless framwork
Finally I figured out how to solve this problem. At first we need to uncheck "Enable security" option at Manage Jenkins page. With security disabled we can trigger our jobs with requests likehttp://ci.your_domain.com/job/job_name/build.If you want to add token to trigger URL we need to Enable Security, choose "Project-...
I installed jenkins on my server and I want to protected it with nginx http auth so that requests to:http://my_domain.com:8080 http://ci.my_domain.comwill be protected except one location:http://ci.my_domain.com/job/my_job/buildneeded to trigger build. I am kinda new to nginx so I stuck with nginx config for that.upstr...
Protect Jenkins with nginx http auth except callback url
Try to add slashes in these lines: location /mongoadmin/ { proxy_pass http://localhost:8081/; } so that node server will treat everything after /mongoadmin as a root URL.
I have mongo-express(mongodb admin UI) running at http://localhost:8081 on my ubuntu VPS. I wan to proxy it using nginx sever. This works: /etc/nginx/sites-available/default server { listen 80; server_name xyz.com; location / { proxy_pass http://localhost:8081; } } xyz.com --> opens mongo-exp...
mongo-express get request issue with nginx proxy
The answer is yes, only with a wildcard cert.
I don't quite understand SSL certs. I have a website,www.contoso.com, from WIX, and then I have a subdomain, book.contoso.com , as an Azure web app.I want to make the subdomain secured, and I was going to purchase an SSL cert from Azure. I was thinking that I might change the subdomain later, as in the "book." part. I ...
Azure SSL Certs Can I change the subdomain later?
1 Make sure you are running you are running script from crontab as the user you are not as any other user (such as root). Also Your paths might be different as the environment in which you manually run script and environment in which crontab works is different. So it is goo...
I wanted to update my repo automatically after a span of time so I wrote a shell script to do that. I also uploaded an SSH key to GitHub so that it does not require a password and username when doing git push. The script seems to work fine manually but when ran through crontab it doesn't work. Later when I changed my ...
SSH key validation on github does not works in crontab
Are you using an ssh key or a username and password when you push to githubWhatever the protocol (SSH or HTTPS) you are using, what matter is your:git config user.name git config user.emailIf you have done past commits with the wrong user.name/user.email, follow:"Why are my commits linked to the wrong user?""Changing a...
I created 2 GitHub accounts. One personal and another corporate. After that, I began to lay out the code on my personal account, but the code began to be laid out on behalf of the corporate address on my personal git account. I use JetBrains' products.How to fix it?Screenshot of my repo:I tried to look at the account i...
How to support multiple users/multiple GitHub accounts with the IntelliJ IDE?
+25You need to point to the path of the log4j2.xml in the system that contains the spark-submit something like this starting with file:///:spark.driver.extraJavaOptions=-Dlog4j.configurationFile=file:///opt/spark/log/log4j2.xml
I have a Spark cluster running on Kubernetes usingthisBitnami Helm chart.Looking at Spark documentation, I have created a log4j2 config file at the below location:/opt/bitnami/spark/conf/log4j2.propertiesConfiguration within this log file works fine as expected.Now, I have a Spring boot based application which I am exe...
Configure application specific logging on Spark Kubernetes Cluster
As a 1st step you should setup cron job (ex:cron.php) which will be executed every 5 minutes.crontab*/5 * * * * /path_to_your_cron_php/cron.phpLets assume that you have your urls in file namedfile.txtin this simple txt format.file.txthttps://www.google.com/ https://www.alexa.com/ https://www.yourdomain.com/Lets create ...
Let's say I have a text file that has a list of urls, from which social media comments must be parsed regularly. I don't want to parse comments from all pages at once as that's a significant load. I need to run my script with a different$urlvariable corresponding to a line from that text file each 5 minutes.So it must ...
run the same script but with a different variable each given period of time
The problem was that Windows did't use the correct ssh programm and instead of openssh was using it's internal ssh program, which of course didn't know about my keys in openssh. git config --global core.sshCommand "'C:\Windows\System32\OpenSSH\ssh.exe'" So after configuring git to use OpenSSH, flutter pub get finds my...
My flutter App depends on a module privately hosted on github. When I run pub get from Powershell, i get: Git error. Command: `git clone --mirror ssh://[email protected]:dirkbo/repo-name.git C:\src\flutter\.pub-cache\git\cache\repo-name-123ba` stdout: stderr: Cloning into bare repository 'C:\src\flutter\.pub-cache\git...
Why is flutter pub get not finding my ssh-key for github?
Insert new rule before your other rule:RewriteEngine On RewriteBase / RewriteRule ^cnew(/.*)?$ new$1 [L,NC,R=302] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^((?!/project1/mvc/public/).*) project1/mvc/public/$1 [L,NC]ShareFollowansweredApr 5, 2015 at 6:23anubhavaanubhava771k6666 gold badges582582 silver badges64...
I want to change the URL fromlocalhost/cnewtolocalhost/new.I have the.htaccessfile below inside my root directoryhtdocs.RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^((?!/project1/mvc/public/).*) project1/mvc/public/$1 [L,NC]This is the directory structure of my application.htdocs .ht...
change url name via htaccess with possible conflict with another htaccess file
Smarty uses a compile directory and a separate cache directory.templates_cis probably the compile directory. The cache is specified in$smarty->cache_dir. That's the one you need to empty.In PHP with Smarty version 2, you can execute the functionclear_all_cache()$smarty->clear_all_cache();If you are using Smarty versi...
The original owner of our company had the website designed using Smartys. I have updated the product page, but even after deleting the temporary file from "templates_c" which I thought was the cache file, the updated products page will not show up at all, everything still looks exactly as it did previously.How can I cl...
How to clear Smarty's Cache
This is based on how often the website is changed. For example, Wikipedia may be updated several times a day, but 92spoons.com may be updated every few days. (source) This also can be changed by popularity. You can visit this website which should allow you to refresh the cache. (source)
If you type in cache:www.92spoons.com, for example, into the Google search engine, it shows you a snapshot of the page from a time when Google snapshotted the site. I was just wondering, how often does Google refresh its cached data? It looks like, as of now, it was refreshed about 3 days ago. Also, do all sites' cach...
How often does Google refresh its cached websites?
+25You have compiler errors in your other question, fix those firstUsing AWS Cognito and aws-ios-sdk v.2.4.16 with developer identitiesThe proper signature for the method, as suggested by the compiler is- (AWSTask<NSString *> *)token;ShareFolloweditedMay 23, 2017 at 11:53CommunityBot111 silver badgeansweredFeb 11, 2017...
I am following amazon documentation but it doesn't work as advertised. I have the latest sdk too. The self.identity = code below doesn't work because it is read only.@implementation DeveloperAuthenticatedIdentityProvider /* * Use the token method to communicate with your backend to get an * identityId and token. */...
Using Amazon Cognito Developer Identities
write this rewrite ^/api/(.+)$ /cgi-bin/$1 last; instead of location /api/ { alias /mnt/data/openstreetmap/osm-3s_v0.7.4/cgi-bin/; }
In: https://wiki.openstreetmap.org/wiki/Overpass_API/Installation I can read: Setting up the Web API only for apache. Is it possible for Nginx? I am trying it but I always find 405 Not Allowed if I ask remotely nginx.conf worker_processes 1; events { worker_connections 1024; } http { include ...
Overpass API with nginx