Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
I think you are correct in assessing that current Cloud Run for Anthos set up (unintentionally) does not let you see the origin IP address of the user.As you said, the created gateway for Istio/Knative in this case is a Cloud Network Load Balancer (TCP) and this LB doesn’t preserve the client’s IP address on a connecti...
We use Google Cloud Run on our K8s cluster on GCP which is powered by Knative and Anthos, however it seems the load balancer doesn't amend the x-forwarded-for (and this is not expected as it is TCP load balancer), and Istio doesn't do the same.Do you have the same issue or it is limited to our deployment? I understand ...
Getting client ip using Knative and Anthos
In my circumstance, it was because kube-proxy (v1.1.4) was missing the--proxy-mode=iptablesflag. Evidently in 1.1.4, the default is something other than iptables, and specifying that flag made the logs immediately stop spewing those messages.
I got errors in my kube-proxy:E0107 21:48:57.738867 1 proxysocket.go:160] I/O error: read tcp 10.2.11.253:37568: connection reset by peerHow can I trace quickly which pod has IP10.2.11.253? And how can I know which request that was, from which pod to which pod?Or can we change the kube-proxy log level to verbose ...
How to debug error in kube-proxy: Connection reset by peer
find /opt/files/Backup -name \*.zip -a -mtime +14 -ls If you are satisfied the files being matched are the ones to delete, replace -ls with "-exec rm {} \;"
I am having the following directory with multiple Backup from $(date +"%d.%m.%Y at %H:%M:%S").zip files. /opt/ /opt/files/ /opt/files/private/* /opt/files/backup.sh /opt/files/backup.txt /opt/files/Backup from $(date +"%d.%m.%Y at %H:%M:%S").zip With a daily cronjob 0 0 * * * cd /opt/files/...
Command line to remove oldest backup
No official article mentions it, I submit a user voice here:Docker image cache on Hosted linux agentthat you can vote and follow.
We are building docker image on VSTS by using VSTS Hosted Linux Preview agent. microsoft/aspnetcore-build image is used to build asp.net core application. Each time build is triggered, an agent is pulling microsoft/aspnetcore-build image from registry and it takes some time. We would like to avoid this, by specifying s...
Cached Docker images on Hosted Linux Preview agent
Its a tricky problem sincevar2=anythingcan really appear anywhere in query string.This code should work for you:Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / RewriteCond %{QUERY_STRING} ^(.+?&|)var2=[^&]*(?:&(.*)|)$ [NC] RewriteRule ^ %{REQUEST_URI}?%1%2 [R=301,L]
I would like to use mod_rewrite to remove a specifik query parameter from an URL.Example: 1) User enters URL:http://localhost/intra/page.htm?var1=123&var2=456&var3=7892) mod_rewrite removes "var2=456"3) New URL:http://localhost/intra/page.htm?var1=123&var3=789My problem is, that I only know the parameter name (var2), ...
Use mod_rewrite to remove parameter
Experiments at a previous employer showed that the standard Linux and Solaris malloc/free implementations were not particularly efficient in high-concurrency multicore environments. We realized significant performance improvements by creating a custom allocator. I think it is definitely worthwhile to do experiments wi...
I am doing some experiments to find out the ceiling of my requests per second rate of haproxy and nginx on RHEL or Centos. Part of my setup in nginx uses embedded LUA in the form of LuaJIT. My question is this: Does anybody have any experience or advice about the usefulness of doing some testing of these apps after b...
Is it worth experimenting with different heap allocators on Linux for multi core servers for nginx or haproxy
36 According to SNS architecture and design: If subscription is APPROVED so no matter whether there is topic associated to it or not. User will be able to delete the subscription.) If subscription is PENDING so no matter whether there is topic associated to it or not. Am...
I am trying to delete a subscription to an SNS topic (specifically an email address) that is unconfirmed, but the AWS console won't let me. It will let me delete subscriptions that are confirmed however. Any ideas?
How to delete a unconfirmed AWS SNS subscription
Somebody posted that this would have been fixed in Zend Studio update in June 2013, but I didn't get it to work by installing the update...However, I got it to work by choosing 1) Import Git -> Projects from Git 2) Import as General Project 3) right clicking from the PHP Explorer -> Configure -> Add PHP Support .
When I use zend studio to create a project from github, I get the following error message:Cannot retrieve branches, check if the provided repository location is validCan anyone explain how to solve this?
cannot retrieve branches,check if the provided repository location is vaid
+100From AWS Support (August 10, 2015):Thank you for reaching out AWS Support with your question about Lambda and UTF-8.We are presently researching this issue as other customers have brought this to our attention. There is no eta on when this will be resolved or if this is something we can resolve.ShareFollowedi...
Update Oct 12:The issue is fixed now. Seethis postin aws forum for details.I wrote a nodejs function simply respond with some Chinese characters. But it respond with wrong characters.exports.handler = function(event, context) { context.succeed('Hello 世界!'); };The function result becomes:"Hello ������������!"I came ...
How to response non-latin characters in AWS lambda?
You can try doing it this way:$ docker run --rm -p 4444:4444 -p 5900:5900 \ -v /tmp/chrome_profiles:/tmp/chrome_profiles \ -e JAVA_OPTS selenium/standalone-chrome:latestor# To execute this docker-compose yml file use `docker-compose -f up` # Add the `-d` flag at the end for detached execution version: '2' services...
I need to launchseleniuminsidedockercontainer. It's important to pass browser profile towebdriver.Here'sdocker-compose:version: '2' services: worker_main: build: ./app volumes: - /Users/username/Library/Application Support/Google/Chrome/Profile 1:/profile restart: always env_file: - confi...
What's the right way to pass browser profile to selenium inside docker container?
If you have a look for debian series cron.service, you could see next: [Unit] Description=Regular background program processing daemon Documentation=man:cron(8) After=remote-fs.target nss-user-lookup.target [Service] EnvironmentFile=-/etc/default/cron ExecStart=/usr/sbin/cron -f $EXTRA_OPTS IgnoreSIGPIPE=false KillMo...
I have a dockerfile FROM python:3.9.12-bullseye COPY . . RUN apt-get update -y RUN apt-get install cron -y RUN crontab crontab CMD python task.py && crond -f And a crontab * * * * * python /task.py I keep running into the error /bin/sh: 1: crond: not found when I run the docker file. Docker build is fine. Any...
/bin/sh: 1: crond: not found when cron already installed
Disclaimer: both solution are for educational purpose and I would not recommend to use it in any real program. If you need to solve homework with strict requirements, then that maybe ok:First:istream& operator>>(istream& is, Employee & e) { Employee tmp; tmp.name = new char[1024]; is >> tmp.num >> tmp.rate ...
Hello so I am confused with my istream& operator>>. I have to overload this operator to take input for a class that is using dynamic memory allocation for a C string.My Employee.h file is#include <iostream> using namespace std; const double MIN_WAGE = 10.25; class Employee { int num; char * name; double rate; publi...
Overloading istream operator with dynamic memory allocation
4 Pass in parameter values in a mapping template: { "startStop":"$input.params('startStop')", "vertical":"$input.params('vertical')" } Read parameter values via event Object: startStop = event['startStop'] vertical = event['vertical'] Share ...
I have written an AWS Lambda function in Python that filters through instances and turns them on or off depending on how they are tagged. This will show you a working function, and the set-up needed to get it working. If you have questions on anything post it in the comments. Here is my Lambda Function as of now: impo...
How to pass parameters to an AWS Lambda Function using Python
You can use following to load image:Glide.with(context) .signature(new StringSignature(yourVersionMetadata)) .into(imageView)Just changeyourVersionMetadatawhen you load image and it will not load from cache ifyourVersionMetadatais different.
I'm writing an app which needs to load a lot of images from the internet (a manga reader). I need to cache some thumbnail images for offline use, any others should be cleared when app closed.I read some about cache invalidation on Glide page, they said the best way is to change the content url, but how Glide know if it...
How to invalidate Glide cache for some specific images
As described in theGitHub help page for fork, the best policy here is to:define a remote called upstream and pointing to the original repo (the one where the author accepted your pull request)pull from that upstream repoPull in upstream changesIf the original repo you forked your project from gets updated, you can add ...
Not sure if this is the place to ask questions about Github.I have forked a public repo and added two commits to it, then sent to the original author asking for a pull request. The author have complied with the request and now I'd wish to fast track my own repo to the HEAD of the author's repo. All of my new commits ar...
How to fast track branch after pull request in Github
The file travis-ci?per_page=100.json is not a valid filename on Windows. You can see that there are actual files named like this in the repo, eg repos?per_page=9999.json You can maybe clone this repo on cygwin (such a filename would be valid in a cygwin shell), remove the offending files, manually or by filtering the ...
I am really confused with this. I am a avid github user and never have had a problem before. However, when checking out a fork I just made of the repo travis-ci/travis-core, whether using https or ssh, I run into this bug after tortisegit finished downloading the git repo but before checking it out for the first time....
Git can't checkout a repo from github
Use a named location and an internal rewrite. For example:location / { try_files $uri $uri/ @rewrite; } location @rewrite { rewrite ^/(.*)$ /index.php?url=$1 last; }Seethis documentfor more.
My Nginx conf file :location / { try_files $uri $uri/ /index.php?url=$uri; } ## PHP conf in case it's relevant location ~ \.php$ { fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; fastcgi_split_path_info ^(.+\.php)(/.*)$; include /etc/nginx/fastcgi.conf; fastcgi_param SCRIPT_FILENAME $document_ro...
Nginx conf how to remove leading slash from $uri
Crontab needs the full path on your server. 0 0 * * * php /var/www/vhosts/domain.com/httpdocs/scripts/example.php This will execute every day at midnight.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. ...
Executing a PHP script with a CRON Job [closed]
So, after a few days working on it, I was finally able to solve it :) Here is the code that worked for me:exports.handler = async (event, context, callback) => { // Get Secret var AWS = require('aws-sdk'); var MyPromise = new AWS.SecretsManager(); var Vsecret = await MyPromise.getSecretValue({ ...
Can anyone provide a simple, complete node.js lambda function where I can get a secret from secrets manager and use it? I am struggling with the async/await process. I have already tried several suggestions from other posts, but all of them, at the end, can't really use the secret in the main function. For example, I h...
Get secrets in AWS lambda node.js
IIS Cache settings have no affect on service worker caching. Remember the server code and the client code are completely decoupled. What you are setting in IIS is the Cache-Control header value. This value is used by the browser cache, not service worker cache. You are 100% in control of what gets cached and how long...
Specifically the cache-control property: <?xml version="1.0"?> <configuration> <system.webServer> <httpProtocol> <customHeaders> <add name="Cache-Control" value="no-cache" /> </customHeaders> </httpProtocol> <staticContent> <remove fileExt...
Do the web.config settings for IIS interfere with a ServiceWorker caching?
I found a way to achieve this by building my own docker image which uses --model_config_file option instead of --model_name and --model_base_path. So I'm running tensorflow serving with below command. docker run -p 8501:8501 -v {local_path_of_models.conf}:/models -t {docker_iamge_name} Of course, I wrote 'models.conf'...
I'm new to Tensorflow serving, I just tried Tensorflow serving via docker with this tutorial and succeeded. However, when I tried it with multiple versions, it serves only the latest version. Is it possible to do that? Or do I need to try something different?
How to serve multiple versions of model via standard tensorflow serving docker image?
I am quoting the original question here:kubectl create deployment hello-server --image=gcr.io/google-samples/hello-app:1.0 kubectl expose deployment hello-server --type LoadBalancer --port 80 --target-port 8080But is it fine to use this in production? I would like to use Infrastructure-as-a-Code approach.Your first app...
I am trying to find the simpliest method to use kubernetes in production. YAML templates look like an overhead to me. E.g. all I want is expose simple backend service. I can do it with kubectl with 2 lean commands:kubectl create deployment hello-server --image=gcr.io/google-samples/hello-app:1.0 kubectl expose deployme...
kubectl instead of yaml files in production?
43 I'm not sure if this helps. I ran into this same problem recently and it seems like AWS made some changes with how we define our CORS configurations. For example, if you want to allow certain Methods on your S3 bucket in the past you have to do something like this on t...
I needed to change my AWS S3 bucket CORS policy to enable the upload of files for my ReactJS to AWS S3, but I keep getting this API response: Expected params.CORSConfiguration.CORSRules to be an Array. I am at a loss right now. Can anyone help?
Unable to update AWS S3 CORS POLICY
Templates uses the same interpolation syntax as all other strings in Terraform.Documentation is availableSo in your case it will look like this:path = ${is_enabled ? "/one/path/" : "/another/path"}
I have a template in my terraform config to which I write the values of a variable like this:data "template_file" "config" { template = "${file("${path.module}/templates/${var.json_config}")}" vars { is_enabled = "${var.is_enabled}" } }Nowis_enabledis a boolean string which is either set totrueorfalse. Now b...
Terraform Conditional Variables
Although this question is 2 years old, however there are two ways to do static analysis of the Dockerfile.usingFromLatestusingHadolintOption#2 is mostly preferable since this can be used as an automated process inside CICD pipelines.Hadolint also provide ways to exclude messages/errors using ".hadolint.yml"ShareFollowa...
I was wondering if there is any tool support for analyzing the content of Dockerfiles. Syntax checks of course, but also highlighting references to older packages that need to be updated.I'm usingSonarQubefor static code analysis for other code but if it does not support it (I could not find any information that it doe...
Static code analysis of Dockerfiles?
You cannot clone another repository using the secrets.GITHUB_TOKEN. That token is only scoped to the repository running the workflow. If you wish to clone another repository, you will need set a repository secret with a PAT that has the permissions to perform the clone. https://docs.github.com/en/actions/security-guid...
Following is the step in the Github workflow of repository A - name: Checkout repo-b uses: actions/checkout@v2 with: repository: myorg/repo-b fetch-depth: 1 ref: master token: ${{ secrets.GITHUB_TOKEN }} The github action throws the following error: ... ... Fetching the repository /usr/bin/git -...
How I do I add a step in my repository A's github workflow to checkout repository B which is in the same org as repository A, using GITHUB_TOKEN?
Python code cannot be run without the required libraries but you can tell people to install the libraries. For example, you can run pip freeze > requirements.txt to add all the dependencies to a file. When people wamnt to install the dependencies, they can run pip install -r requirements.txt. Inside a repositories REA...
If I have a python library I use in my GitHub project, will someone without that python package still be able to run my code after cloning my project? If not, can a python library be attached to a repo? Also, if I have a bash file, will it still be able to run with people without bash? Lastly, how do you attach whole ...
How do you attach necessary files to GitHub repo?
8 I had the same issue and the comment from Ed Harper resolved my issue: SSMS uses a comma rather than a colon to delimit between server name and port number. Try localhost,1433. – Ed Harper Jan 23 at 12:52 The server name field in SMSS required a format of locahost,[do...
I'm quite new to Linux OS's so hope this isn't a stupid question!! Software: Windows 10 Pro Docker for Windows (1.13.0-beta38 (9805)) SQL Server Management Studio v17.0 RC1 Issue: I'm trying to connect to my SQL Server Linux container using SSMS. It's not worked, so looking over the documentation it seems you need SQ...
Unable to connect to SQL Server Linux Docker container via SQL Server Management Studio
A gist operates like any other repository. So let's say you've cloned something like git://gist.github.com/2322786.git: $ git clone [email protected]:2322786.git (If you just wanted to try this without pushing, you can use git://gist.github.com/2322786.git, which will demonstrate the merge principle and works anonym...
I have a gist on GitHub that someone forked and made changes to. I like their changes. Is there a way to merge the changes back into my original gist?
How to merge a gist on GitHub?
1 I would recommend looking through this post on caching in Rails, it's a tremendously thorough post that goes through various strategies that may provide the outcome that you're looking for in this situation. Though he doesn't mention it in the post, adding some sort of ca...
I have a page where on the where the index action shows a list of Posts, with custom sort columns, pagination, etc. Although I can cache every individual page / sort option with cache(:direction => params[:direction], :sort => params[:sort], :page => params[:page]) do I can't expire all of these at once using a singl...
Rails 3.1 wildcard expire cache for action with query string
You can run a shell in the image, with:docker run -t -i --entrypoint bash paintedfox/nginx-php5Then change the configuration files as you like. Note the container ID (it appears in the prompt, e.g.root@9ffa2bafe2bb:/#), then commit it to a new image:docker commit 9ffa2bafe2bb my-new-nginxYou can then run the new image ...
I installed a docker image from the registry by doing.docker pull paintedfox/nginx-php5Now I wish to make some changes to this nginx's config files to add some domains. I believe the config files are somehow help inside the dockers image, but where is the image? How can I change these config files?
After pulling a Docker from the repository, how to change the images files?
You can open Developer Tools by pressingCtrl+Shift+Jand then you'll find a cog icon in bottom right. When you click on it you should see an option to disable caching.ShareFolloweditedFeb 23, 2013 at 15:12answeredNov 30, 2011 at 19:10user196106user1961063that is not working. and i just checked, i have mod_pagespeed modu...
When I make a page,linkit to a CSS file, and open it in a browser, it works fine. But if a make a change and refresh the page again between very short time periods, the change is not reflected. But after sometime, when i refresh the page again, the changes appear.So, somehow the browser keeps the CSS file cached and ex...
How to Prevent Browsers from Caching CSS Files?
For the posterity : Backing up Rocket.chat on SERVER 1 and Restore it on SERVER 2, based on the official docker image : SERVER 1 cd /backups docker run -it --rm --link db -v /backups:/backups mongo:3.0 mongodump -h db -o /backups/mongoBACKUP tar czf mongoBACKUP.tar.gz mongoBACKUP/ Then send mongoBACKUP.tar.gz on SERV...
I use this docker image : https://hub.docker.com/_/rocket.chat/ So here is the code i used : docker run --name db -d mongo:3.0 --smallfiles docker run --name rocketchat --link db -d rocket.chat I tried several things, but I can't find a way to have a clean backup/restore system. Any advice ?
Backup and restore Rocket.chat on docker with mongodb
QWizard::addPage internally calls setPage, which calls page->setParent(...) as one of the first things done. So yes, the wizard does take ownership of the pages, and they will be subject to normal QObject lifetimes. Deleting the wizard will delete all of the pages.
If I have QWizard, and I instantiate this without specifying parent, will it delete its pages when it goes out of scope or will they leak? { WelcomeWizard wiz; wiz.addPage(new QWizardPage); } I think QWizard will delete them however I would really appreciate any more detailed explanation.
Will QWizard delete QWizardPage or will it leak?
When you pushedrefs/for/masterreference to remote you have created newnamespacefor references, ang gave it namefor.Long story short, it allows to create default subset of references for each user to operate on and avoid name conflicts for refs used by different groups of repository users.Users can set their own config...
If I understand correctly,refs/for/is a special namespace that'sused in Gerrit for uploading changes.However, out of habit, instead ofgit push origin master, I've just donegit push origin HEAD:refs/for/masterona non-Gerrit repo, which apparently worked:$ git push origin HEAD:refs/for/master Enumerating objects: [...] [...
What is refs/for/master when not using Gerrit?
My understanding is that for every distinct labelset metric is stored as a separate time series.Prometheus will not create labelsets of{endpoint="/", user_id="1"}if they aren't exposed, same as it would not create labelset{endpoint="/foo/"}. So you second estimation of (99*1 + 1*10,000) is correct one.On the other hand...
I have a Prometheus metric request_duration with a label "endpoint". A service is running, and being scraped, and is reporting metrics to prometheus for 100 different endpoints that are all being hit, e.g.{endpoint="/users/"}and 99 other endpoints. A new label is added, "user_id" (and there are 10,000 users),but"user_i...
Does cardinality explode in Prometheus if two high cardinality metrics never vary together?
This is the expected behaviour , because the new statefulSet will create a new set of PVs and start over. ( if there is no other choice it can randomly land on old PVs as well , for example local volumes )StatefulSet doesn't mean that kubernetes will remember what you were doing in some other old statefulset that u hav...
I made a Kafka and zookeeper as a statefulset and exposed Kafka to the outside of the cluster. However, whenever I try to delete the Kafka statefulset and re-create one, the data seemed to be gone? (when I tried to consume all the message usingkafkacat, the old messages seemed to be gone) even if it is using the same P...
What happens to persistent volume if the StatefulSet got deleted and re-created?
You need to provide more information about your environment (OS, Docker installation, etc), but basically, if you start your Redis container like this:docker run --name=redis-devel --publish=6379:6379 --hostname=redis --restart=on-failure --detach redis:latestIt should expose the port no matter what. The only reason yo...
I just built the redis docker instance$ docker pull redisAfter which I ran it like this.$ docker run --name=redis --detach=true --publish=6379:6379 redisI get the following$ docker ps key redis "/sbin/entrypoint.sh" 22 minutes ago Up 22 minutes 0.0.0.0:6379->6379/tcp redisTo me the above means...
Redis Docker connection refused
Your browser uses a certificate store, and checks if the public certificate of the site you're visiting is available. If it is, you'll have no problems visiting the site.Java also checks its certificate store, but it's different from the one used by your browser. This is explained inthe white paper on digital signature...
There is a option of generating pdf from html page in my web application.Following exception is coming while doing that. In this html page we are accessing css files over https.However, I am able to access web application over https successfuly.javax.net.ssl.SSLHandshakeException: sun.security.validator.Val...
getting SSL handshake exception while generating Pdf from Html in java
TrySSL checkerto check whether the SSL is a problem or not.It will verify your server certificate and tell you where is the problem.
Here is my Nginx conf file:upstream app { server unix:/home/deploy/example_app/shared/tmp/sockets/puma.sock fail_timeout=0; } server { listen 80; listen 443 ssl; # ssl on; server_name localhost example.com www.example.com; root /home/deploy/example_app/current/public; ssl_certificate /etc/letsencrypt/...
Enable SSL on Ruby on Rails app with Nginx and Puma
You are right, official importer from assembla to github does not exists. So you need to do it manually(implement utility) consuming assembla api to pull information and upload it to github. You can try to find existing hand made toolshere
I wanna migrate a project from Assembla to Github with all its tickets and sources.SourcesThe sources are not the problem because I can push it easily to the new environment.TicketsMy problem is the linking between commits that includes an issue number (e.g.#123 Increased build number) to the related issue / ticket.Git...
How do I migrate an Assembla project (Issues and Source) to Github?
Add one of thedelegatedorcachedoptions to the volume mounting your app directory. I've experienced significant performance increases using cached in particular:volumes: - ~/.composer-docker/cache:/root/.composer/cache:delegated - ./:/usr/src/app:cached
I have a signifiant delay and high cpu usage when running my vue.js app on docker instance.This is my docker setupdocker-compose.ymlversion: '2' services: app: build: context: ./ dockerfile: docker/app.docker working_dir: /usr/src/app volumes: - ~/.composer-docker/cache:/root/.composer/ca...
Vue.js app on a docker container with hot reload
I have used below cron php /full-path-to-cron-file/cron.php /test/index source: http://www.asim.pk/2009/05/14/creating-and-installing-crontabs-using-codeigniter/ This works for me. Thanks to all
I am using CodeIgniter for my website. I have to use cron job to run one of controller function. I am using route in website. And also I am not using index.php in URL. e.g. http://example.com/welcome/show, here welcome is my controller and show is function name of that controller. I have used like this, 0 * * * * php ...
How to set cron job URL for CodeIgniter?
Heap consumption , internally & externally ( programatically ) : You can use GetProcessMemory function : https://msdn.microsoft.com/en-us/library/ms683219.aspx Heap consumption , externally & non programatically : You can use MS Technet`s VMMap : https://technet.microsoft.com/en-us/sysinternals/vmmap.aspx Stack consu...
I'm using Visual Studio 2013 on Windows 7 - 64 bit machine. I'm writing a program on C. How can I check how much heap and stack storage my program is using?
How to check how much from heap and from stack my program is using?
As mentioned by @aerokite, this question seems to have already been answered in thiscommunity post.Posted as a community wiki.
I have deployed airflow via docker on kubernetes cluster and now I need to increase the persistent volume's storage capacity. While editing the yaml file via UI, I get this error:PersistentVolumeClaim "data-pallet-airflow-worker-0" is invalid: spec: Forbidden: field is immutable after creation
How to increase storage capacity of already deployed cluster in Kubernetes?
Most likely it is because mod_rewrite is enabled but .htaccess files are disabled viaAllowOverride Nonewhich disables checking .htaccess files (which gives You some performance gains but You have to put Your mod_rewrite code directly in apache configuration files)Change for Your virtual host to:AllowOverride All
I have a local environment working fine. Pasted a test route in .htaccess and it works as expected (re-routes me to google).RewriteEngine on RewriteRule testpage\.html http://www.google.com [R]I pasted the same thing on my development server (Unbutu 12.04) and it simply gives me a Not Found page. When I verify it on ...
Mod_rewrite not working on Ubuntu Server (works locally, though)
You don't have to generate the CSR on your linux server. You can use thepemorp12file you created (using your mac book) on any server. If your code works when you test it on your mac book, it will work on any server. You just have to copy thepemorp12file to that server.
I am going to use a linux server for push notifications.Is the following correct?Generate a CSR of thelinuxserverUpload the file to Apple to generate a certChange this cer to pem and then conbine with my private key pem of linuxUse the combined pem in my codeIs this correct? Since I get confused by the Apple document, ...
Linux APNS server which cert should I create?
For the backed VSTS account and Github Enterprise in Azure Active Directory, they are not share a file system.
We're using VSTS, backed by Git, on our Azure tenant. We're considering buying a GitHub Enterprise subscription, to be installed on the same Azure tenant. In this configuration, can both front-ends point to the same file system, so that they can be used simultaneously for the same repos?
Can VSTS and GitHub Enterprise on the same Azure tenant share a file system?
TLS itself has no concept of the certificate being self signed or not. When you initiate a TLS connection (either by connecting to a specific port or via STARTTLS) the server and client negotiate the TLS connection.As part of the TLS negotiation it is up to the client and server to decide whether the certificate that t...
I'm usingSMTPtransport. I would like to useTLSbut my hosting has self-signed certificate.It is possible to useTLSin such situation?
How to use Zend_Mail_Transport_Smtp with tls and self-signed certificate?
I have solved it with another way, using 2 batch files So I give you my code:This one creates a folder in c: , than it creates a text file, it copies the name of the current user in it, than the other batch file in the same folder, and finaly runs it as local admin. If you write the password correctly(password will not...
I would like to write a script that will add a domain user to the local administrator group. I already triedNET LOCALGROUP Administrators "domain\domainuser" /ADDbut I get the Access Denied error.The problem is that if I want to run it as domain user, it does not have local admin rights, and if as local admin, it does ...
A bit more challenging - Batch script to add domain user to local administrator group Windows 7
I don't know exactly what you want, but I will list the possibilities here anyway:Use MarkdownCreate/Import a Card from an issueUse a GitHub Application/the API in order to add automation functions(e.g. move an issue if a label has been added)Create custom categories (and add automation)ShareFollowansweredNov 5, 2019 a...
Can we customise the card in Kannan board? is there any plugin available?
How to customize card in Kanban board in GitHub Projects
I think yourcron_tab.pydidn't read django configuration fromsetting.py. What happens then you run this script from the shell?Anyway you should consider to usecustom management commandfor this task.ShareFollowansweredJan 11, 2015 at 13:10catavarancatavaran45.1k88 gold badges100100 silver badges8585 bronze badges5@@cata...
I would like to send an automated mail using python, django and crontab. So I did the following things.Created a cron_tab.py(which is inside the folder home/myhome/django/myapp/registration/cron_tab.py) which looks like below:from django.core.mail import send_mail, EmailMessage,EmailMultiAlternatives subject, from_ema...
How to schedule a job using python and crontab?
Yes, you can use the spark to overwrite the content. You can still read your data with Glue methods, but then change it to a spark dataframe and overwrite the files:datasink = DynamicFrame.toDF(inputTable) datasink.write.\ format("orc").\ mode("overwrite").\ save("s3://my_out_path")
Cosider a code:val inputTable = glueContext .getCatalogSource(database = "my_db", tableName = "my_table) .getDynamicFrame() glueContext.getSinkWithFormat( connectionType = "s3", options = JsonOptions(Map("path" -> "s3://my_out_path")), format = "orc", transformationContext = "" ).writeDynamicFrame(inputTable...
How override data in aws glue?
Finally I achieved what needed with the following steps (still tricky and manual work):Stop running pod (otherwhise you could not use the volume in the next steps)Create the a new PVC with the desired capacity (ensure that the spec and label matches the exisitng PVC)Run this Jobhttps://github.com/edseymour/pvc-transfer...
I do have multiple persistent volumes which need to be shrinked to reduce the hosting costs. I already figured out that Kubernetes does not provide such an option. I also tried to clone or the restore the volumes from an snapshot to a new smaller volume - with the same result (requested volume size XXX is less than the...
Shrink Kubernetes persistent volumes
Azure said that the cert needs to be imported for each resource group.
I'm trying to set up SSL for our new Azure app service. We have several other app services but they're in a different resource group and under a different app service plan.On all my previous app services, there is a section on the SSL blade that shows Private Certificates. And there's an informational block in that s...
Private certificates from my Azure subscription not shown in new appservice
You put your files in the project package, but you didn't put them under version control. All you need is to add them to VCS by "git add" command. Here is gooddocumentation.You should use this command in git bash or in terminal (if you have added git to path)Also I recommend you to use build manager as Maven, Gradle or...
I have a project on eclipse where recently i created a new folder called lib and added some .jar files inside. I cannot seem to commit the changes to git. It just doesnt appear in the tracked list of files.. I have removed .jar from .gitignore in my branch and commited the changes, and still the same.
Add .jar files into a git repository
docker's --user parameter changes just id not a group id within a docker. So, within a docker I have:id uid=1002 gid=0(root) groups=0(root)and it is not like in original system where I have groups=1000(users)So, one workaround might be mapping passwd and group files into a docker.-v /etc/docker/passwd:/etc/passwd:ro -v...
I've played a lot with any rights combinations to make docker to work, but... at first my environment:Ubuntu linux 15.04 and Docker version 1.5.0, build a8a31ef.I have a directory '/test/dockervolume' and two users user1 and user2 in a group userschown user1.users /test/dockervolume chmod 775 /test/dockervolume ls -la ...
Docker with '--user' can not write to volume with different ownership
If you are running this:docker run -p 8080:8080 jenkinsThen to connect to jenkins you will have to connect to (in essence you are doing port forwarding):http://127.0.0.1:8080 or http://localhost:8080If you are just running this:docker run jenkinsYou can connect to jenkins using the container's IPhttp://<containers-ip>:...
So, I'm trying to get Jenkins working inside of docker as an exercise to get experience using docker. I have a small linux server, running Ubuntu 14.04 in my house (computer I wasn't using for anything else), and have no issues getting the container to start up, and connect to Jenkins over my local network.My issue com...
Can't get docker to accept request over the internet
You can re-mount your volume from inside the container, in the rw mode, like that: mount -o remount,rw /mnt/data The catch is that mount syscall is not allowed inside the Docker containers by default so that you would have to run it in a privileged mode: docker run --privileged ... or enable the SYS_ADMIN capability...
I have a dockerized application that uses the filesystem to store lots of state. The application code is contained in the docker image I am considering a update strategy which involves sharing the volume between two containers, but making sure that at most one container at a time can write to that filesystem. The work...
Is it possible to change the read-only/read-write status of a docker mount at runtime?
OpenResty allows for loading more complex lua code through files. https://github.com/openresty/lua-nginx-module#init_by_lua_file That is just one directive. There are multiple ways you can load lua code. This way worked for me.
I'm using OpenResty with nginx to auto-obtain SSL certs from Let's Encrypt. There's a lua function where you can allow certain domains. In this function, I have a regex to whitelist my domains. After I add a certain amount (not sure the exact amount), I start getting this error: nginx: [emerg] too long lua code block,...
OpenResty auto_ssl too long lua code block error
3 You need to use SSH to access the repository, not HTTPS. Change the URL for the remote from https://xxx to git://xxx. You can use the green button towards the right side of the GitHub repository code page to help you get the correct URL. Change from: to The other thing ...
I am using GitHub Desktop v2.5.7 and Git v2.29.1 on Windows 10 64 bit. My GitHub account has 2FA enabled. I can clone repositories from GitHub using the GitHub Desktop or command line I have generated an SSL key and followed all instructions to add it locally and to GitHub I have generated a personal access token and...
Authentication failed when pushing to a repository on GitHub (from GitHub Desktop and command line)
It sounds like you're missingthe stepwhere you have SonarQube upgrade it's own database schema. Specifically, navigate to[your SonarQube URL]/setupand click the button on that screen. That triggers SonarQube to make the database changes required to support your new version.
We are trying to upgrade our current SonarQube from 5.6.3. to 6.7.1 We have upgrade our SQL Server to 2014 and 5.6.3 has been tested and it has been working fine when I try to start the 6.7.1 server. It shows the Warning database needs an upgrade but the process seems to be running.Is the issue because of the plugins ...
Upgrade 5.6.3 to 6.7.1
Since all your gauges are referencing the samecurrentStatus, when the new value comes in, all the gauge's source is changed. Instead use a map to track all the current status by id:public class PrometheusStatusLogger { private Map<String, Integer> currentStatuses = new HashMap<>(); public void statusArrived(...
I use MicroMeter gauges in a Spring Boot 2 application to track statuses of objects. On status change, thestatusArrived()method is called. This function should update the gauge related to that object.Here is my current implementation:public class PrometheusStatusLogger { private int currentStatus; public void...
How to update MicroMeter gauge according to labels
1 location /location/ { rewrite ^/location/(.*) /$1 break; proxy_pass http://localhost:5008; } I hope this script helps, the default path "/" works fine as you have written, but for specific paths like "/api" or "/location" you need to use the rewrite keywo...
I'm trying to split FE (angularjs) from BE (nodejs) so the UI will be served from a different container as the backend. The setup is pretty simple but I'm absolutely new to NGINX and even though I went through a lot of posts and tried several configurations, I'm not achieving it to be working as expected. When I spin ...
Docker container running nginx serving static files and reverse proxy
You can't reliably force the creation of separate objects. Some classes may use tagged pointers. The set of classes doing that can change over time with releases of the OS. A tagged pointer really just encodes the value of the object into a pointer-sized value. It doesn't allocate any memory. By definition, any two obj...
I'm creating tests where I have to make sure 2 different NSDate instances are really two different instances of allocated memory. So I have this example code:NSDate *date1 = [NSDate date]; NSDate *date2 = [[NSDate alloc] initWithTimeInterval:0 sinceDate:date1]; XCTAssertEqualObjects(date1, date2); XCTAssertNotEqual(dat...
Different instances of NSDate pointing to the same allocated memory?
web thinks db runs on the host pointed to by the env variable DOCKER_DB or something like that. Your services should point to that variable (host), not localhost. The db container exposes ports (via EXPOSE) to its linked containers, again in variables. You can run the db on whatever port you want, as long as it's ...
From my understanding of docker compose / fig, creating a link between two services/images is one main reason if you do not want to exposes ports to others. like here db does not expose any ports and is only linked: web: build: . links: - db ports: - "8000:8000" db: image: postgres Does web thinks db...
Understanding ports and links in docker compose
0 Probably this doc is not 100% and some default variables still require certificates. Try to generate certificates manually. Share Improve this answer Follow answered Feb 22, 2016 at 22:21 ...
I've been attempting to follow the instructions listed in: https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/docker-multinode/master.md#starting-the-kubernetes-master but the apiServer won't stay up, it exits with code 255 almost immediately, the last thing in the logs for the container...
Kubernetes Docker Multi Node Setup issues
In grafana there is "variables", go to "dashboard settings" --> variables, from there create new variable with type "query", name it like "area" and put sql query(select area from test), save it, and then in your select query: select ... where area in ($area).referencehttps://docs.timescale.com/timescaledb/latest/tutor...
So I am new to Grafana, I have a table and a bar chart:The bar chart query is as follows:select coalesce(group_name) as group_name, sum(sales) filter (where device_type = 'HEAD_PHONES') as HEAD_PHONES, sum(sales) filter (where device_type = 'GUITAR') as guitar, sum(sales) filter (where device_type = 'XBOX') as xb...
Grafana create query variable from table
2 I believe the preferred method of downloading files with AFNetworking is by setting the "outputStream" property. According to AFNetworking documentation: The output stream that is used to write data received until the request is finished. By default, data is accumulate...
I am downloading movie files from UIGridViewCells. My code is: NSMutableURLRequest* rq = [[APIClient sharedClient] requestWithMethod:@"GET" path:[[self item] downloadUrl] parameters:nil]; [rq setTimeoutInterval:5000]; _downloadOperation = [[AFHTTPRequestOperation alloc] initWithRequest:rq] ; _downloadOpera...
Receiving memory warning when downloading multiple files with AFNetworking
Escape it with\+in yourregexShareFollowansweredJun 19, 2011 at 4:59Connor SmithConnor Smith1,30477 silver badges1111 bronze badges2Actually I'm not sure you can do what you want to, when does the+turn into a%20, I thought that spaces did that?–Connor SmithJun 19, 2011 at 5:00basicly i was saying that i wanted so i coul...
I want my url rewrite to allow Plus signs in the string so that i dont have the yucky %20 all over.RewriteEngine on RewriteRule ^/?([A-Za-z-\s_]+)/([A-Za-z-\s_]+)/([A-Za-z-\s_]+)$ display.php?a=$1&b=$2&c=$3 [L]How would i do this?
Allow +'s in URL Rewrite
Seems like the "-characters might cause the problem. Try to replace them by typing them in again or copy and paste my example below.This should definitely work:{"find":"terms","field":"sourceEnvironment"}
I am fighting with build proper query for templated variable in Grafana.I would like to build query type variable which will take all values from field sourceEnvironment.Document example:{ "host" : "10.6.0.132", "memoryFree" : 927296, "type" : "system", "path" : "/appl/Axway-7.5.3/apigateway/events/group-6_inst...
Unable to build query in Grafana to elastic source in variables templating
You can run the follow command on the projectAPrivate root directorygit remote add public https://github.com/exampleuser/old-repository.git git pull public masterThen you will get all the updates from projectA repository, then please merge the changes, resolve conflicts etc, and after that, you can run the follow comma...
I have bare cloned a public github repository(say projectA) and created a private github repository (say projectAPrivate), then mirror pushed the cloned projectA to projectAPrivate(as outlined herehttps://help.github.com/articles/duplicating-a-repositorygit clone --bare https://github.com/exampleuser/old-repository.git...
Pull changes from a github public repository to github private repository
This worked on my end(just replace the container ID):docker exec 1d3595c0ce87 sh -c 'mysqldump -uroot -pSomePassword DBName > /dumps/MyNewDump.sql' mysqldump: [Warning] Using a password on the command line interface can be insecure.
I want to create mysql dumps for a database which is running in docker container. However I do not want to get into the container and execute the command but do it from the host machine. Is there a way to do it. I tried few things but probably I am wrong with the commands.docker exec -d mysql sh mysqldump -uroot -pSome...
How to execute mysqldump command from the host machine to a mysql docker container
I suggest you make the lock not the file itself, but an actualfile lock.$fp = fopen($trigger_file2, "r+"); if (!flock($fp, LOCK_EX | LOCK_NB)) { die("another script running"); }LOCK_NBisn't respected on Windows, but you don't seem to be using it.ShareFollowansweredJun 20, 2010 at 21:27ArtefactoArtefacto97k1717 gol...
I can't seem to figure this one out.I have a validator-type script that validates certain files on my server (checks if exists, its contents, etc). I want it to run continuously with only one instance of it, not more. The current solution I have doesn't seem to work, I'm guessing due to timeouts (possibly other reasons...
Having Trouble Allowing Only One Instance of a PHP Script at a Time, Using Cron
0 You can use the backup directive on the server line and option allbackups in the specific section. You maybe can also add the weight for the server to define which backup server should be used in priority order. Share Improve this answer ...
Let's say I have 3 main servers and 3 backup servers. I want HAproxy to replace a main server with a backup server as soon as it goes down. To elaborate, let's say Main Server 1 goes down, HAproxy will then still continue to use 3 servers in total, where 2 will be main and 1 will be backup. Similarly, if 2 main server...
How to set a custom number of backup backend servers in HAproxy?
The alternative in many cases is to suggest that users disable the firewall entirely orokthe prompt Windows raises when your server ports begin to listen. Both of these are bad options: one risks leaving the machine open to anything and the other trains them to approve security prompts uncritically.You could easily ha...
I've heard that you can, during installation, add an exception for your app to give permission for it to access the internet through the firewall.Anyone know how to do this?
How do you add firewall permission to an app during installation?
1 Git is a VCS (Version Control System). How git's generally used A feature branch is made where you need to make changes, while work goes on master branch (eg bug fixes) and when feature branch is ready to be added into the master (ie you're ready to add the feature to ...
when I was working on projects that uses the control system git, each time I want to commit then push my modifs I have ofcourse to git pull before. But the problems that I meet is that in many times git prohibits me to pull because I should before commit my local changes. What I used to do is that I have an other clea...
git: better way in commit/push
You ask: How/why can Swift guarantee that object memory allocation will be successful, as implied by a non optional initializer return? It can't. What happens if I try to instantiate a Swift object in the minuscule but nonzero chance that the system that is out of memory? Generally, it will just crash. Fortunately...
Many Swift initializers return non-optional objects. This means they cannot be nil and are always successful. However, behind the scenes, Swift has to allocate the memory somehow, and in general memory allocation failure is a possibility. For example, memory returned by C function malloc() should be checked for NULL. ...
What happens if Swift cannot allocate memory?
Thanks for the answers.I need to perform this action in a lambda and this is the result:import boto3 import json s3 = boto3.client('s3') def lambda_handler(event, context): file='test/data.csv' bucket = "my-bucket" response = s3.get_object(Bucket=bucket,Key=file ) ...
I am working with python and I need to check and edit the content of some files stored in S3.I need to check if they have a char o string. In that case, I have to replace this char/string.For example: I want to replace;with.in following file File1.txtThis is an example;After replaceFile1.txtThis in an example.Is there ...
How to edit S3 files with python
1 To your question the code you posted is correct and will work. In my opinion it would be preferable(cleaner\safer) to use C++\CLI as a wrapper to your C++ native classes so all the public methods should receive only managed objects as parameters otherwise just use COM ...
I was doing some C++/CLI programming recently in order to integrate some of our company's native C++ classes into .NET. My question may sound trivial, but this is one thing I'm always not sure about: If there is a ref class with a native pointer, say public ref class ManagedClass { private: NativeCla...
Native pointers in managed class
As far as i know connecting to db just helps to store data, not to display data.You can check stored data on sonarqube's guiClick on projectClick on ActivityShareFollowansweredApr 17, 2018 at 11:43George312George312271010 bronze badgesAdd a comment|
I connected my sonarqube server to my postgres db however when I view the the "metrics" table, it lacks the actual value of the metric.Those are all the columns I get, which are not particularly helpful. How can I get the actual values of the metrics?My end goal is to obtain metrics such as duplicate code, function siz...
SonarQube DB lacking values
Easy answer after much head scratching.Don't use Cygwin for github access. An alternative is to do all your normal terminal functions in Cygwin and then use Windows Command Line forgit push originBe sure to have ssh keys added to your account. Here aresteps to add ssh to github. Also be sure your ssh keys have a pass...
Attempting to push my development branch to my github repo.git push origin develop -vThe connection hangs and hangs and hangs and hangs and never times out. I never receive error messages nor "writing objects" nor any sort of communication.Connecting via ssh. Have verified that I can connect via ssh to github meaning...
Git push hangs when pushing via ssh
2 I guess the problem is the Line Feed Character character at the end. ngx.say always adds linefeed ngx.print is just output problem solved Linefeed Character Share Improve this answer Follow edited Dec 30,...
I am having an interesting bug and method issue Lua mentions that the js_content variable has a length of 80 bytes. But when I don't use the "Content-Length" header, firefox mentions that 81 bytes of data are transferred. I don't know where the +1 byte excess comes from I will be glad if you can help, an application I...
NGINX LUA Content-Length +1 Byte Lost
0 Can you just use robocopy? This line will copy all files in c:\source and its subfolders that have been modified in the last day, to d:\test. robocopy c:\source d:\test *.* /s /maxage:1 Of course if you forget to run it one day, you'll miss any files touched that day. ...
Here is what I want to do: I want to write a "bat" file that will check all the files in a single partition to determine whether any file is revised/created today and if any, I would copy these file to a folder. So, if I run this bat everyday before I leave my office, I can backup all the files I used in a single fold...
bat file debug "back up used files"
Instead of mounting volume, you could open a new bash in your running container withdocker exec:docker exec -it <id of running container> bashThat way, you can directly go to the folder managed by the webapp from within the container.
I have a tomcat running in a docker container and would like to watch was is going on in the webapps directory from the docker host. Is it possible to do this by mounting a volume without setting up a sshd in the container and without starting a shell inside?
How to make a docker container directory accesible from host?
1 Take a look at https://github.com/marketplace/actions/branch-merge. The example does almost exactly what you want: It merges every pushed branch called "release/*" into "master". Just change release/* to bugfix/* master to development and you should be set. Shar...
Scenario multiple people are working on multiple branches (one to one relationship) for bug fixes. These branches are designated bugfix/[name-here] There is a system that automatically syncs with a branch called development. I'm looking for a way using GitHub, to have all bugfix/* branches automatically merged with th...
Automatic Merging of branches under bugfix/[name-here] to dev in GitHub
Put below line in your htaccess file and put that file at www.example.com/base_ini/ (path)Options -Indexes
I am working on a CI Application.Now I Have a folder in my project calledbase_ini, in which I have some config files. I want to secure this file, so no can can view its content directly from browser.So I tried this two ways:Put anindex.htmlsaying thatDirectory access is forbidden.I put a.htaccessfile in that folder wit...
How to prevent direct access to files from browser?
The commenter probably means for you to download and install the release of yt-dlp they linked, rather than whatever's in git for youtube-dl. Generally an unhelpful comment, since the project yt-dlp diverged from youtube-dl somewhere around 2020-09-22; they're not the same software anymore, and patches from one are go...
My problem with youtube-dl seems to be a well documented allbeit recent bug: https://github.com/ytdl-org/youtube-dl/issues/31542 In the thread a contributor writes "use this patch if u [sic] cannot wait for release fix": https://github.com/ytdl-patched/yt-dlp/releases/tag/2023.02.17.334 I have tried a couple different...
How to (step by step) add a git patch
/var/spool/cron/usernameUsesuto access the file.
Closed.This question isoff-topic. It is not currently accepting answers.Want to improve this question?Update the questionso it'son-topicfor Stack Overflow.Closed11 years ago.Improve this questionWhere cron file for user and for root is saved after executingcrontab -eand saving data?
Where crontab -e saves data? [closed]
The usual possible causes are:those files are ignored: see if that is the case with:git check-ignore -v -- /path/to/filethose files are part ofa nested Git repository (look for a .git in the parent folders)a submodule (look for a .gitmodules in the root folder of your main repository)ShareFollowansweredJun 3, 2018 at 4...
These days, in my mac (EI Captain 10.11.6) IntelliJ (2017.2.6) I just encountered this weird thing.Just created a new class: DumpVersionEnumBut I cannot add it and commit to my Github repositoryI checked lots of posts and articles mentioned the solutions:Settings -> Version Control -> Git -> Test button : it's working ...
IntelliJ new-ed class files cannot be detected by git
1 You may want CURAND.jl, which provides curand_poisson. using CURAND n = 10 lambda = .5 curand_poisson(n, lambda) Share Improve this answer Follow answered Jul 24, 2022 at 2:57 BillBill ...
For a stochastic solver that will run on a GPU, I'm currently trying to draw Poisson-distributed random numbers. I will need one number for each entry of a large array. The array lives in device memory and will also be deterministically updated afterwards. The problem I'm facing is that the mean of the distribution de...
Correct way to generate Poisson-distributed random numbers in Julia GPU code?
In order to bind your Google Service Account (GSA) to you Kubernetes Service Account (KSA) you need to enable Workload Identity on the cluster. This is explained in more details in Google's documentation (https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity).To enable Workload Identity on an existin...
I am trying to bind my Google Service Account (GSA) to my Kubernetes Service Account (KSA) so I can connect to my Cloud SQL database from the Google Kubernetes Engine (GKE). I am currently using the follow guide provided in Google's documentation (https://cloud.google.com/sql/docs/sqlserver/connect-kubernetes-engine).C...
Unable to Bind Google Service Account to Kubernetes Service Account
You need to commit to your local repository, then you can push. But that's not going to work probably since you aren't logged in.
I've just cloned a repository, made some changes and now I'd like to send the author my patch. What should I do? I cloned from github anonymously. git push origin ?
I've git clone, now what?
If the metric can have either0or1values, then thesum_over_time(metric[d])calculates the number of1values on the specified lookbehind windowd. For example,sum_over_time(up[1h])returns the number ofupsamples with1value during the last hour. The number of0values then can be calculates ascount_over_time(up[1h]) - sum_over_...
I don't speak English very well, but I need some advice. I have Prometheus. How can I calculate the number of downtime for a service over a period of time? It's my functionirate(ALERTS{job="blackbox", alertstate="firing"}[2h])
Prometheus: Count metric value over a period of time
From your comments on your question, it seems that you haven't tried configuring the path to the report, so it's natural that no coverage data is imported. The analysis cannot intuit where reports are or that it should read them.Having said that, you also indicate that you're generating acobertura.xmlfile, but that's n...
I am using Fastlane for building and testing my ObjC project. I usescanaction to run Unit Test cases andslatheraction to generate Code coverage report. I am able to generate cobertura.xml report using slather action, but unable to publish the report to SonarQube.I am using SonarQube 6.4 and fastlane 2.64.0.FastFilesca...
Publishing Slather Report to SonarQube
You've disabled CGO for your build, but you're not disabling CGO for your tests, which you must do:CGO_ENABLED=0 GOOS=linux go test -v ./...
I use Docker to add my project to it, now I want to run some test on it and I got errors that the test failedAny idea what I miss here?# build stage FROM golang:1.11.1-alpine3.8 AS builder RUN apk add --update --no-cache make \ git ADD https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 /usr/bi...
How to disable CGO for running tests
kubectl logs -f <pod-id>You can use the-fflag:-f, --follow=false: Specify if the logs should be streamed.https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#logsShareFolloweditedAug 13, 2020 at 16:15Thiru3377 bronze badgesansweredSep 12, 2016 at 17:47Yu-Ju HongYu-Ju Hong6,74711 gold badge1919 silver...
kubectl logs <pod-id>gets latest logs from my deployment - I am working on a bug and interested to know the logs at runtime - How can I get continuous stream of logs ?edit: corrected question at the end.
kubectl logs - continuously
From:https://github.com/kubernetes/kubernetes/pull/12717/filesThis function func ReadDockerConfigFile() (cfg DockerConfig, err error) is used to parse config which is stored in:GetPreferredDockercfgPath() + "/config.json" workingDirPath + "/config.json" $HOME/.docker/config.json /.docker/config.json GetPreferredDockerc...
I am attempting to pull private docker images from Docker Hub.Error: image orgname/imagename:latest not foundThe info I am seeing on the internet...http://kubernetes.io/v1.0/docs/user-guide/images.html#using-a-private-registryhttps://github.com/kubernetes/kubernetes/issues/7954Leads me to believe I should be able to pu...
How to use .dockercfg to pull private images with Kubernetes
Finally I found the solution by myself The clue is to apply NSURLIsExcludedFromBackupKey to root folder not to every file you want to exclude from backupso at very beginning you should call this with (for example) "Library/Application Support" folder
I'm using iOS 5.1 I use this peace of code[pathURL setResourceValue:[NSNumber numberWithBool:YES] forKey:NSURLIsExcludedFromBackupKey error:nil];The folder where I put my content is (inside app sandbox) .../Library/Application Support/, not a /Documents folderI do not receive any ...
Excluding files from iCloud backup
i created a plugin for this behavior (and by extend to link sonar to my maven projects):https://github.com/VandeperreMaarten/sonar-maven-plugin.The only thing you need to do isadd following plugin to your pom.xml<plugin> <groupId>com.viae-it.maven</groupId> <artifactId>sonar-maven-plugin</artifactId> <vers...
I want to be able to completely stop a Maven build process in case SonarQube detects new rule violations during incremental analyses in the developer's machines. I want to do this in order to force the developers to verify their code quality prior to checking their changes in to the SCM (Apache Subversion, in our case)...
It is possible to break Maven builds when SonarQube detects new violations, without using the Build Breaker plugin?