Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
This may be the poor-man's solution, but you could useSystem.Diagnostics.Processto launchipconfig /flushdns.
Is there a way to flush the DNS cache from a C# WPF app? The application would be running on either XP, Vista, or Windows 7.
Is there a way to flush the DNS cache from a C# WPF app? (on XP, Vista, Win7)
Just copy both files (https://github.com/pintsized/lua-resty-http/tree/master/lib/resty) into /usr/local/openresty/lualib folder. Update: Resulted file structure should be: /usr/local/openresty/lualib/resty/http.lua /usr/local/openresty/lualib/resty/http_headers.lua
I installed openresty-1.13.6.1 but it lacks 'resty.http' module. My openresty is installed in /usr/local/openresty and i need to integrate resty.http module with it. How to do it?
Install resty.http with already installed openresty
It looks like you are confusing the NS data types with the CF data types. The address book methods typically return core foundation (CF) objects. These objects are toll-free bridged, which means they can be used interchangeably with NS types. When using core foundation objects, any method with 'copy' in its name wil...
In my app, static analyser points a leak in the following code: ABMultiValueRef phone = (NSString *)ABRecordCopyValue(person, kABPersonPhoneProperty); NSString *mobilephone= (NSString*)ABMultiValueCopyValueAtIndex (phone,0); similarly whenever i use this function ABRecordCopyValue it points a leak I tried to relea...
release ABMultiValueRef object
This happens when two git accounts are being used on same machine. On Windows 7 you need to remove git Credentials from Windows vault. go to Control Panel -> User Accounts -> Manage your credentials. Under Generic Credentials delete entries for github credentials. Try to push code and this time it will prompt you for...
This question already has answers here: Pushing to Git returning Error Code 403 fatal (8 answers) Closed 4 years ago. Everything was working fine, until I create a new GitHub accou...
Git returning Error 403 while pushing the code [duplicate]
Try the below<cron_expr>* 0 * * *</cron_expr>oR<cron_expr>0 0 * * *</cron_expr>Checkhttp://stackoverflow.com/questions/21374844/run-an-magento-function-cron-at-every-hour
I am trying to run a cronjob in Magento once a day but it is not working.This is the syntax I am using:<cron_expr>0 21 * * * *</cron_expr>If I have the cronojob run every five minutes to 120 minutes it works fine:<cron_expr>*/5 * * * *</cron_expr>Here's some other ways I have tried to get the cronjob to run once a day:...
How to get Magento cronjob to run once a day
Makes sense. Expo DevTools tells you it is running on localhost in your container. This means that in your container the Expo DevTools are only available to localhost. Which in turn is only available from within the container itself. No port exposure will help you there. You need to set your port binding in a way that...
I'm trying to dockerize an Expo React Native app so anyone of my team partners could download the repo and then make a docker-compose up and without effort have the same expo server running in their computers. As far I make it possible to build the container and it is showing the same info it show up when I run it lo...
Metro bundler with Expo dockerized app is not working
Looks like some busted documentation.If you run the following, this works:aws ec2 describe-reserved-instances-offerings --max-results 20 --next-token someTokenTranslating the error message, it said it expectedNextTokenwhich can be represented asnext-tokenon the CLI.
I'm trying to paginate over EC2 Reserved Instance offerings, but can't seem to paginate via the CLI (see below).% aws ec2 describe-reserved-instances-offerings --max-results 20 { "NextToken": "someToken", "ReservedInstancesOfferin...
How to paginate over an AWS CLI response?
If you call :git difftool -dto invoke your graphical diff viewer, it will open in a "directory diff" mode.meldfor example presents you with an overview of all different files, and you can view the differences for each individual file by double clicking.ShareFolloweditedJul 9, 2020 at 10:34answeredJul 9, 2020 at 10:26Le...
Right now I'm usingmeld, but it shows differences only for one file, and if you have few changed files you have to close meld window, then it suggests to open a new window with differences for next file, and so on. Is there any GUI tool that can show differences for all files in one window, somewhat familiar to how it'...
Does any GUI diff tool for Linux provides familiar to GitHub layout of differences?
Try running this inside the container you create, before any installation is made:yum swap -y fakesystemd systemd && yum clean all yum update -y && yum clean allOr inside a Dockerfile at the begining before the first RUN you have tipped:RUN yum swap -y fakesystemd systemd && yum clean all \ && yum update -y && yu...
I'm building docker image with a Dockerfile:FROM centos:centos7.1.1503 MAINTAINER foo <[email protected]> ENV TZ "Asia/Shanghai" ENV TERM xterm RUN \ yum update -y && \ yum install -y epel-release &&\ yum update -y && \ yum install -y curl wget tar bzip2 unzip vim-enhanced passwd sudo yum-utils ...
Docker 's Error: libselinux conflicts with fakesystemd
I wasn't able to find much content on this which didn't involve using an external source such as StackDriver.I spent several days working through all the issues, and wrote up a demo app with code on how to do it. I hope it will help someone:https://ryanbaker.io/2019-10-07-scaling-rabbitmq-on-k8s/ShareFollowansweredOct...
My application is running as a container on top ofkubernetes.The application consume messages fromrabbitmq.I can't predict the exact amount ofcpuso I don't want to use it as autoscale limit, though I did set theprefetchto something that looks normal.Is there a way to follow the number of messages in the queue,and once ...
How to scale k8s pods according to rabbitmq queue message rate?
8 I ran into a similar problem but with another service (not MongoDB). I'm not sure of what I'm doing wrong but this is how I could solve it : import os import mongoengine MONGODB_HOST = os.environ.get('DB2_PORT_27017_TCP_ADDR', '127.0.0.1') mongoengine.connect(host=MONGO...
I am facing problem using docker-compose to link a django container with postgres and mongo containers? I am trying to use "docker-compose up" which starts up the mongo and postgres containers (as I need to link both) but still the django app is not able to connect to mongodb on default settings. My django-compose.yml...
docker-compose to run django with mongodb
The task manager is showing you different info that GC.GetTotalMEmory. It's quite possible to make an app that has a GC.GetTotalMemory that flat lines, but slowly runs the device out of memory and crashes. GC.GetTotalMemory is only looking at the GC heap, not at allocated virtual or physical memory. P/Invokes and ...
I have an application that consist of multiple components, each compiled into single DLL, each runs multiple thread within itself. I have a shell program that start up these components. I am running this application on a window CE 6 environment and this is the only program (aside from those of system) on it. Howev...
My attempt to track memory leak, does it do what I want?
There are two things you can do:1. Contact GitHub supportWhile trying out my solution for you I deleted a fork where I myself had a PR still pending and had the same situation than you.There is currently no way to reattach to that PR, besides contacting GitHub support. They can restore the deleted fork which will also ...
I forked a project, created a new branch from master, made changes and created a pull request to the original project. But suddenly I forgot I created this pull request and deleted my fork completely from remote (GitHub) and from my PC as well. How can I recreate a branch (or a fork) from a pull request in order to add...
How to recreate a branch from pull request?
Every month, the first 1GB of"Data Transfer OUT From Amazon EC2 To Internet"is free. This is actually for all accounts, not just in theAWS Free Tier.This counts all traffic thatgoes out of the AWS Cloud to the Internet. For example, anyone accessing your website from the Internet and downloading web pages, images, etc ...
I'm experimenting with Amazon AWS free tier.Only been four days, and I just got an email: "I've exceeded 85% of my 1Gig bandwidth"How can I tell what used this bandwidth?What I've done ... I created and terminated some t2.micro linux instances. Installed nginx and tomcat on them with "apt-get". Downloaded a 16MB zip ...
"free tier" instances ... exceeded 85% of 1 GB bandwidth in 4 days ... How can I see bandwidth usage?
Not sure where you got the port9500from but that's the reason it doesn't work. NGINX serves on port8080. This should work (it does for me, at least):$ kubectl expose deployment hello-minikube \ --type=NodePort \ --port=8080 --target-port=8080 $ curl $(minikube service hello-minikube --url) Hostna...
What happened: I have been following this guidelines:https://kubernetes.io/docs/setup/minikube/and I have the "connection refused" issue when trying to curl the application. Here are the steps I did~~> minikube status minikube: Stopped cluster: kubectl: ~~> minikube start Starting local Kubernetes v1.10.0 cluster... ...
Kubernetes: Can not curl minikube pod
I would recommend downloading a copy of the standard WordPress files from the WordPress archive that is the same version of WordPress that your backup is using:http://wordpress.org/download/release-archive/Copy the files from the zip onto into a new folder.Next copy everything inside of the /wp-content/ directory from ...
I had a wordpress website installed on a remote hosting server in a dedicated folder. The folder was mistakenly deleted from the server.I have a backup file done incorrectly - meaning, only by a whole download of the files in the dedicated wordpress folder, without the data from the database.Now, the database is still ...
Restoring wordpress website
I got it working with the following:For a Route53 hosted zone that was created for a domain (say, mydomain.com), I created a record set. I used the following parameters:Name = mysubdomain Type = A - IPV4 address Alias = Yes Target = internal-abcdeskhdfksdfkjhsdkjfhksjhdfkjsf-1878388.eu-west-1.elb.amazonaws.comWhere the...
I have some internal load balancers in AWS, and they have very long addresses, likeinternal-abcdeskhdfksdfkjhsdkjfhksjhdfkjsf-1878388.eu-west-1.elb.amazonaws.comWe have vpn setup so that we have access to the load balancer from our browsers. Is there a way to have a "friendlier" name for such a load balancer? I'd be ha...
Friendly names for AWS internal ELBs
Just a small change and it should work.. Try below code and let me know whether it worked for you or not..RewriteEngine On RewriteRule ^([a-zA-Z0-9-/]+).html$ index.php?id=$1 RewriteRule ^([a-zA-Z0-9-/]+).html/$ index.php?id=$1Hope it helps...
I am trying to redirectwww.mysite.com/movie/nametowww.mysite.com/movie/?url=namefor this I have added htaccess in movie/ folder, the code I have added is below:RewriteEngine On RewriteBase /movie/ RewriteEngine On RewriteRule ^([a-zA-Z0-9_-]+).html$ index.php?id=$1 RewriteRule ^([a-zA-Z0-9_-]+)/$ index.php?id=$1I am un...
Htaccess issue with redirection?
When the bootmem allocator is initialized, the available/free ram ranges are passed to it by the kernel. The kernel doesn't consider its own kernel, dtb, and initramfs as part of the available/free ram ranges. Which means that these ranges are marked as used ( already allocated ). [ During boot-up, the active allocato...
When booting the Linux kernel, it is possible to load an initramfs archive and a DTB file in RAM and specify those physical addresses to the kernel. For example, using U-Boot, you could do: bootz 0x80008000 0x82000000 0x81000000 which means: boot kernel image located at memory address 0x80008000, and specify to kerne...
Linux kernel boot: how is memory allocation done when DTB and initramfs are initially in memory?
Please usenonNegativeDerivative()function - then you will get arateof EnqueueCount change in (your metric interval, usually it is) minute. If you want to get count again - useintegral().So,integral(nonNegativeDerivative(EnqueueCount))- but usually people looking for rate, then derivative is enough.
I have Grafana with Graphite metrics. I have a graph showing theEnqueueCountof some specific queue in ActiveMQ. The problem is that theEnqueueCountshows all values since the queue was created, so when I narrow down the time range in Grafana to "today so far", the graph looks like this:I would like it to show only value...
Offset graphite metrics by the lowest value in current time range
Monitoring/alarming on a single data point is always going to be hard/tricky and is definitely a limitation of the service.I would say you should rethink your alarm. Why do need to alarm on if your lambda executes? This is really monitoring if CloudWatch rules is working which you should trust.I suggest you alarm on ...
I have a Lambda function which is scheduled to run once every 24 hours. I also have a CloudWatch alarm if the number of invocations drop below 1 every 24 hours.The issue here is that the invocation metric doesn't always show up in time for when the alarm condition is being evaluated. As a result, I have 0 invocations f...
CloudWatch doesn't reliably monitor single datapoint within 24 hours
you push code from Android Studio to Github - and then, Jenkins can check out from there and build.there isn't much to tell about it; except that Android Studio & Jenkins both need to act as Git clients.Android Studio -- pushes commits --> GitHub.Jenkins <-- pulls commits -- GitHub.
I am new with jenkins and continuous integration so please tell me if I have any wrong concept or silly questions. As far as i have understood, its possible to integrate jenkins,github and android studio together and when something is committed from android studio to github then jenkin compiles and builds it automatica...
How to work with Jenkins, github and android studio
Well, I think what is meant is that the kernel always uses 4 levels of page tables, which can accommodate both normal 32 bit, PAE, and long mode. I think what they mean in the quote is that the PM4L and the PDT are just set to a length of one entry which just points to the next one down. So that means that in normal 3...
I'm reading through the book "Understanding Linux Kernel" by Bovet and Cesati. In the second chapter, under "Paging in Linux" the author mentions how Page Middle and Upper Directories are eliminated with 32 architectures not having PAE enabled. I'm having trouble following what the author means. They have been loose ...
Linux Kernel Memory Management Paging Levels
Your gui client does not provide a tty or any other way of getting input from the user during hooks. So this is not possible. I see two solutions to this problem:Let the commit pass and output a warning. Getting back to the previous state is as simple asgit reset HEAD^.Use a git config option to either toggle the check...
I have this pre-commit hook in .git/hooks/pre-commit#!/bin/bash for file in `git diff --name-only` do if [[ $file =~ /pom\.xml$ ]]; then exec < /dev/tty read -p "Committing $file is often a mistake; are you sure you want to do that? (Y/[N]): " ans exec <&- if [[ $ans =~ ^[Yy]$ ]]; then echo proc...
github GUI client /dev/tty: Device not configured
116 You need to escape % character with \ mysqldump -u 'username' -p'password' DBNAME > /home/eric/db_backup/liveDB_`date +\%Y\%m\%d_\%H\%M`.sql Share Improve this answer Follow answered Jun 16,...
I'm trying to add a cronjob in the crontab (ubuntu server) that backups the mysql db. Executing the script in the terminal as root works well, but inserted in the crontab nothing happens. I've tried to run it each minutes but no files appears in the folder /var/db_backups. (Other cronjobs work well) Here is the cronjo...
mysqldump doesn't work in crontab
This turned out to be an intermittent error as pointed out. Worked fine on a retry.
I am trying to deploy a python app (a REST API) on GCP using the guide herehttps://cloud.google.com/endpoints/docs/quickstart-container-engine. As a part of that, I spun up a k8s cluster and got it's credentials. Now I can't access it:$ kubectl get no the server doesn't have a resource type "nodes" $ kubectl version Cl...
Cannot connect to Kubernetes cluster on container engine
Try theAddRulemethod$existingrulecollection.AddRule($rule)ShareFollowansweredAug 11, 2022 at 20:51TomTom89077 silver badges1717 bronze badgesAdd a comment|
I am trying to add a rule in azure firewall. I have azure firewall policy where I have create network rule collection then inside the collection i have rules added. I would like add one more rule in the same network rule collection. I am using the below script to do$rule = New-AzFirewallNetworkRule -Name "AllowAzureDev...
Need help to add rule in Azure Firewall Powershell
As per pennstatephil's comment below, there's aSUBSCRIBEon the right pane at the bottom:
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 questionIs it possible to follow only specific issues on Github (instead of watching an entire project)? I'd like to get notification...
How to follow only specific issues on Github, instead of watching an entire project? [closed]
Look at both the.gitconfigfile in your home directory for global settings and also.git/configin a specific project for override values.In Windows there may be someextra stepsto view these files.
I use Git GNU bash, version 4.3.42(5)-release (x86_64-pc-msys) windows 8.1 pro. I gave it a username at the very beginning by typing the command: git config --global user.name"xyz" but then when i've got to Github, this username was already taken, so i tried to change my Git username to be the same as the one Gith...
Changing the Git username
Looking at this line in the code, it is making its call directly to Google's OAuth endpoint, and then later making a call to Google's userinfo v2 endpoint. In neither place does it use a plus scope nor a plus API (although its claim that it's asking for "ALL" scopes looks wrong). The Google+ API and Scope shutdown doe...
I am using https://github.com/agoragames/nginx-google-oauth for auth on my website. I received an email from Google saying that the plus.me scope of the Google Plus API is being deprecated. I don't see that referenced in the code. I am not sure about Libraries it may be using. Can someone confirm this is going to con...
Google plus API depreciation
There isMicrosoft's own documentation on cache-control.Short answer: you have to usePragma: no-cache,Cache-Control: no-cacheandExpiresall together.Update 2019-01-24The above instructions are fordisablingcaching, while the answer to being able toforcecaching can be found in this fine SO answer:Make IE to cache resources...
I am setting Expires filter in web.xml of Tomcat. The header comes correctly in response but still IE is not caching. It is always making the fresh request to Tomcat.<filter> <filter-name>ExpiresFilter</filter-name> <filter-class>org.apache.catalina.filters.ExpiresFilter</filter-class> <init-param> <param-name>ExpiresB...
IE 11 ignoring Cache Control header in response
You can mark the issue as a false positive through the SonarQube UI, as shown in this related question:Sonarqube 5 - how do I mark false-positive?I've created the following ticket to the SonarQube Python Plugin's backlog to consider adding theNOSONARcomment marker support in an upcoming version:http://jira.sonarsource....
I want to suppress the "Method names should comply with a naming convention" rule in my python code, but only in the case when I'm overriding a method from a Qt class.For example: inheriting fromQWidgetand overriding theresizeEvent()method (which is not compliant with the rule).According to theFAQthere are//NOSONARand@...
How to suppress sonarqube rule in a particular case?
Microsoft recommends using System.Runtime.Caching for all caching purposes. See this: http://msdn.microsoft.com/en-us/library/dd997357.aspx Although, I have come across a couple threads where people are having issues with the MemoryCache.Default instance. After a while, it stops working properly. Any item you add usin...
I am adding caching to an ASP.NET web application. This is .NET 4, so I can use the classes in the System.Runtime.Caching namespace (which, as I understand it, was added to provide similar functionality to that found in System.Web.Caching, but for non-Web-apps.) But since this is a web app, am I better off using Syst...
Is System.Web.Caching or System.Runtime.Caching preferable for a .NET 4 web application
The way I solved this problem was to make some additional changes on the files in my first commit.This happened to me also. I had 1 commit when I opened the pull request, tons of issues were noted. I made a second small commit to update an unrelated configuration file, this caused sonar to remove all of the comments. I...
I'm using Sonarqube with the Github plugin for analysing code in Pull Requests.I get a problem when pushing code if the PR is already open. The comments made by the Github plugin in the PR are erased even if the new push doesn't fix them! Apparently because only the modified code gets analysed, and the other comments b...
Losing review comments on pushing code again
This will allow either someone from IP 127.0.0.1orlogged as a valid user. Stick it either in your config or .htaccess file.<Files learn.php> Satisfy any Order deny,allow Deny from all Allow from 127.0.0.1 AuthType Basic AuthName "private" AuthUserFile /var/www/p...
I've look all over, but keeps running into same info that talks about directory level IP restriction, which usually looks something like this:Order Deny,Allow Deny from all Allow from 123.123.123.123Is it possible to have same type of access restriction tied to a page/document?
.htaccess: how to restrict access to a single file by IP?
kubectl proxycommand provides this functionality.Read more here:https://kubernetes.io/docs/tasks/administer-cluster/access-cluster-services/#manually-constructing-apiserver-proxy-urls
From my local machine I would like to be able toport forwardto many services in a cluster. For example I have services of nameserviceA-type1,serviceA-type2,serviceA-type3... etc. None of these services are accessible externally but can be accessed using thekubectl port-forwardcommand. However there are so many services...
Connecting to many kubernetes services from local machine
Make sure your customized error page/404.htmlhas the content size greater than 512 bytes. Many browsers like IE, Chrome etc don't show your customized page if content length of your custom 404 page is less than 512.UPDATEBased on your comments here is what I think is happening.If you look at the access.log or http head...
Why is this not working, as in the pre-set 404 page is not loaded:header("HTTP/1.0 404 Not Found"); exit;.htaccesshas theErrorDocument 404 /404.htmldirective set.Thank you.
PHP header 404 not working
Look at running a cronjob inside the pod instead of kubernetes CronJob. That way you don't have to bother about launching a new pod every minute.
I'm starting in Kubernetes and I have a question about the CronJob, in my project I need a cron job to be launched every minute. On many tutorials people use the CronJob resource, I set it up and I see that every minute a pod is created to perform the command and is then destroyed, and that indefinitely. I wonder if i...
Deployment pod or CronJob for a job to be done every minute?
This only secures the connection/communication between your mail client and the mail server.So people on your internal network can't sniff (at least not in clear text) your mail.How the transport between the mail server from your server to the server of the recipient happens depends on their configuration.Basically you...
I've got a question about securing emails with SSL.If I get an SSL certificate to secure my email, that would mean that the connection between my mail client and my mail server will be encrypted. So anyone listening in couldn't view my emails or username and password. But what happens between the mail server and the de...
Understanding Secure Email
It's hard to give a good answer without knowing more about what service (1) has to do when it is 'active'. It sounds you want cron to launch a task every minute.You can use cron in conjunction with push queues:https://cloud.google.com/appengine/docs/standard/go/taskqueue/push/When creating a push queue task, you can se...
I am trying to figure out how to run a service(1) when it does not receive any calls.I want to use Microservices Architecture.Basically i want to run this service (1) when the other service(2) is receiving calls and all data.As the service(1) i mentioned is not receiving it would not have to spawn new instances and i ...
Continuously running service in Google Cloud Engine
Yes. Seehttps://help.github.com/articles/renaming-a-repository:In addition to redirecting web traffic, allgit clone,git fetch, orgit pushoperations targeting the previous location will continue to function as if made on the new location.However, GitHub still recommends that contributors do the following:[...] to reduce...
I renamed my repository on GitHub via the Web interface but my local repository can still fetch from origin. Why is that so? Does GitHub remember the old url after renaming the repository?
Does GitHub remember the old origin url after renaming a repository?
No, there is not a way to make your Git repository on GitHub act as a REST API endpoint. This would be using GitHub pages and that does not allow server-side code. Per their documentation: GitHub Pages is a static site hosting service and doesn't support server-side code such as, PHP, Ruby, or Python. You can setup ...
Is there a way to make a Git repository behave like a REST endpoint such that I can change the code hosted on GitHub to change based on a PUT request? Example: In the repository below I want some external REST end point URL to change the value from http://localhost:8080/app/ to some new value like http://example.com u...
How to make a Git repository behave like a REST endpoint
The question has been asked on the docker-user mailing list, and after some investigation, we found out that performance of veth in VMs with kernel 3.8 was "not great", and was significantly improved with kernel 3.10. In other words: if you run containers on bare metal, you will be fine (and see very fast transfer sp...
I created a couple of containers using Dockers and measured the network performance by means of Netperf. However the throughput results to be quite low, around 563.81 Mb/s. Isn't the communication between 2 containers/processes done through main memory? Does anyone have an idea why I am having such a low throughput. D...
Why containers network throughput is low
Know Your Problem Space See memcached's own wiki: Can using memcached make my application slower? Yes, absolutely. If your DB queries are all fast, your website is fast, adding memcached might not make it faster. Get It Working First Any optimization before you have a stable, working product is premature. You'll sp...
I'm working on a web app that's not even online yet. Is implementing memcache or memcached as of right now a bit premature? Should I use it only if: the web app is up, and the database is having a poor performance due to a high traffic/load? Or is better to implement during development? Also, in which cases is using...
Is using memcache(d) premature optimization?
{ "Version": "2012-10-17", "Statement": [ { "Sid": "VisualEditor0", "Effect": "Allow", "Action": [ "s3:PutObject", "s3:PutObjectAcl", "s3:GetObjectAcl", "s3:ListBucket", "s3:GetBucketLocat...
I used HTML and Javascript to upload a file on S3. I am facing a problem --> I created a role for unauthenticated entities and assigned the following policy to it.{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:putObject" ...
What minimum permissions should I set to give S3 file upload access?
1 Firstly, why does C allocate contiguous blocks to different global arrays everytime? Because one contiguous block is more effective and easier to implement. If application allocates global variables at different memory blocks it has at least one of next drawbacks: Wa...
I've encountered a weird phenomenon in C which I need someone to explain. I have the code below with 2 single element arrays as global variables. I am printing the memory address of the first and second element of each array (note that the array was defined to have only 1 element): #include <stdio.h> int a1[1]; int a...
Array memory allocation in C depends on naming convention?
Use full path when calling urlwatch:$ which urlwatch /usr/bin/urlwatchThen your cron have to be::* * * * * /usr/bin/urlwatch | mail -s "job changes"[email protected]ShareFollowansweredMar 8, 2015 at 10:51guestguest3122 bronze badgesAdd a comment|
I have one cron job like this:* * * * * urlwatch | mail -s "job changes"[email protected]It mails every minute as expected. However when I alter the test html page on my local server it doesn't email the differences, just continues to mail a blank mail with the title 'job changes'.When I paste the job to a prompt:pc@d...
cron job not mailing output of urlwatch
There are 2 places in netpol where label selectors are used...spec.podselector.MatchLabelsin the example above that label selector is. role=dbThat selector determines which pod the netpol is going to get applied to. Also, remember that netpol is a namespaced object ( you can check that out from doing kubectl api-resou...
if we have a pod in one namespace created for eg app-space, pod name: busybox and if the pod is not having any labels on it, can we apply network policy ?how does the namespace selector field highlighted in yellow work?does this mean that any pod with labels project=myproject will only be allowed in that namespace?
BA network policy-CKA
If you using pytorch, you can save yourself some headache by saving the state_dict of the model instead of the model itself. The state_dict is an ordered dictionary that stores the weights of your neural network. The saving routine: import torch model = MyFabulousPytorchModel() torch.save(model.state_dict(), "best_mod...
I save the last hidden layer of Bert for my following process using pickle on GPU. # output is the last hidden layer of bert, transformed on GPU with open(filename, 'wb') as f: pk.dump(output, f) Is it possible to load it on my person laptop without GPU? I tried following code, but all failed. # 1st try with open...
Load pickle saved GPU tensor with CPU?
The query string is not part of the URI path that is tested in theRewriteRuledirective. This can only be tested with aRewriteConddirective:RewriteCond %{QUERY_STRING} ^a=([0-9]+)$ RewriteRule ^a\.php$ /b/%1? [L,R] RewriteCond %{QUERY_STRING} ^$ RewriteRule ^a\.php$ /c/ [L,R]But if you want it the other way (requests of...
I am trying to get Apache to redirect/a.php?a=123to/b/123(where 123 could be any number between 1 and 9999) but can't seem to get it to work.This is what I have in htaccess:RewriteEngine on RewriteRule ^a.php?a=([0-9]+) /b/$1 [L] RewriteRule ^a.php$ /c/ [L]With this going to a.php?a=123 results in 404, but going to ju...
RewriteRule - a.php?a=123 to /b/123
You need to make sure that you declare the service that you want to use from the global module in theCron-Service's providers. Consider this simple example:// Sample Cron-Service // ------------- @Injectable() export class CronService { private readonly logger = new Logger(CronService.name); constructor(private g...
I set up a cronjob that is supposed to fire and call a service from another module. console logged items are displaying in the console and When I run the method manually from the endpoint. The service returns a successful result. But once I put back the cronjob decorator. The service is undefinedthrowing exceptionTypeE...
Nestjs cronjob cannot read inject service
0 You can implement the validation_epoch_end on your LightningModule which is called "at the end of the validation epoch with the outputs of all validation steps". For this to work you also need to define validation_step on that same module. Once this is done, you can run v...
I trained a model using pytorch lightning and especially appreciated the ease of using multiple GPU's. Now after training, how can I still make use of lightnings GPU features to run inference on a test set and store/export the predictions? The documentation on inference does not target that. Thanks in advance.
Pytorch Lightning Inference
I found out that I had a permission error and then used sudo python -m pip install apache-airflow-providers-cncf-kubernetes which solved this issue.
I am trying to install and configure Airflow on MAC via pip and venv. using this tutorial:https://my330space.wordpress.com/2019/12/20/how-to-install-apache-airflow-on-mac/. I am at the point were I am initializing the DB with commandairflow initdb. When I do so, I get this output and error:[2021-06-19 14:49:20,513] {db...
Could not import DAGs in example_kubernetes_executor_config.py: No module named 'kubernetes' on MAC OS
Version compatibility betweenkerasandtensorflowis a problem that probably anyone has faced.As in my answerhere, one combination you could use istensorflow-gpu 1.4andkeras 2.0.8. You can also checkherefor more combinations too.If you need to usekeras 2.2.4you will have to installtensorflow-gpu 1.11and later, which needs...
What is the minimum TensorFlow version requirement for Keras version 2.2.4?I'm having trouble when using a Conv2D architecture, the GPU instance seems to crash, i.e. i can see the GPU memory fill up for a small bit and then the running processes just 'crash'.There is no error, the notebook just 'freezes'. Training dens...
Keras 2.2.4 with TensorFlow 1.4.1 crashing GPU instances
Seems a duplicate ofGit: How to solve Permission denied (publickey) error when using Git?Ensure the ssh-agent is running by runningeval $(ssh-agent -s)Add the key by runningssh-add ~/.ssh/{key_name}where key_name is your key file name you generated (example: id_ed25519)You may want to consider creating or appending bel...
I try setup my Github Ssh key by follow step fromhttps://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account. At first everything works OK.But after restart my computer, using git repository gives error : Error: Permission denied (publickey).I create a new Github ...
Unable to connect Github ssh after restart
deleted the pvc and re-authenticated, and worked.rs0:PRIMARY> use mydatabase switched to db mydatabase rs0:PRIMARY> db.auth('user1','password1') 1
So trying to create database in a replicaset using helm, using the following values in values.yamlmongodb: architecture: replicaset auth: rootPassword: "admin" usernames: - "user1" passwords: - "password1" databases: - "mydatabase" replicaSetKey: myreplicaKeyInstalling the c...
Helm Chart Bitnami - Replicaset - Database not being created
You cannot add custom query vars directly. Custom query vars have to be added using the query_vars filter to be parsed within rules. You can add custom query vars as seen below.function wpd_add_query_vars( $qvars ) { $qvars[] = 'text'; //I used the one in your example return $qvars; } add_filter( 'query_vars', 'wpd...
I'm want to redirect a custom URL same like example in docshereEX:http://domain.com/find/324tohttp://domain.com/?text=324This is the code , for some reason it keeps redirect me to homepage without the parameter "text" in the URL..function custom_rewrite_basic() { add_rewrite_rule('find/(.+)/?', 'index.php?text=$match...
Wordpress add_rewrite_rule Redirects without parameter
I know this isn't strictly answer to the question but there's a more Docker-ish way of solving your problem. I would forget about publishing the port for inter-container communication altogether. Instead create an overlay network using docker swarm. You can find the full guideherebut in essence you do the following://c...
I really don't understand what's going on here. I just simply want to perform a http request from inside one docker container, to another docker container, via the host, using thehost's public ip, on apublished port.Here is my setup. I have my dev machine. And I have a docker host machine with two containers. CONT_A li...
Why can't I curl one docker container from another via the host
This probably means you don't have a readiness probe set up? Because the default is already to only roll 25% of the pods at once. If you have a readiness probe, this will include waiting until the new pods are actually available and Ready but otherwise it only waits until they start.
during deployment of new version of application sequentially 4 pods are terminated and replaced by newer ones; but for those ~10minutes the app is hitting other microservice is hitting older endpoints causing 502/404 errors - anyone know of a way to deploy 4 new pods, then drain traffic from old ones to new ones and af...
Helm upgrade custom microservice causes temporary downtime
Found easy answer. String uniqueID = UUID.randomUUID().toString(); Screw using DynamoDBAutoGeneratedKey, sounds like a headache.
I need to use DynamoDBAutoGeneratedKey from the AWS SDK to give me a random key(of type String) that I can then use to do something. I can't find any examples online of doing this, and while it seems like it should be relatively straightforward I am really struggling to get this working. Can anyone link me to an examp...
How do I use DynamoDBAutoGeneratedKey to give me an auto generated key?
The Gitlab plugin only supports SonarQube before 7.7due to the removal ofpreviewModefrom SonarQube core.You'll either need to downgrade to an older SonarQube version, switch to SonarQube developer edition once theyintroduce their Gitlab support, or look at using sonarqube-community-branch-plugin once theyrelease suppor...
I'm using the latest version ofSonarQube(7.9.1) Community Edition. I'm trying to implement sonar integration withgitlaband configuring .gitlab-ci.yml file for that. I need to use alsopublishModevariable which is in the list (https://github.com/gabrie-allaigre/sonar-gitlab-plugin) to be able to see the scanner results b...
How to implement publishMode variable in configuration of SonarQube (v7.9.1 Community Edition) with GitLab
From digging into this further, I discovered that Travis uses its own proxy for Maven Central, and has configured Maven to force ALL dependency requests through their proxy. In other words, it does not seem possible at this time to use additional Maven repos specified in the POM file of a project built on Travis. In ...
I have a Java-based GitHub project, fitnessjiffy-spring (I'm currently focused on the "bootstrap" branch). It depends on a library built from another GitHib project, fitnessjiff-etl. I am trying to configure both of these to be built by Travis CI. Unfortunately, Travis is not as sophisticated as Jenkins or Hudson in...
Travis CI not using extra Maven repository provided in pom.xml
The solution was to recompile auditd with the good argument, espicially --with-arm64 during the configure phase.
I have to add rules in auditd. It seems to work for recording command (option -w) but not for option -a where arch must be specified.For example :$> auditctl -a exit,always -F arch=b64 -S adjtimex -S settimeofday -S clock_settime -k timechange arch elf mapping not found $> uname -m aarch64The kernel is compiled w...
Auditd Error : arch elf mapping not found
I'm assuming you're onGit Repository Exploringperspective and star means it's a new / modified file (source control wise). In a way this is a helpful extra information to show you which file has changed since last commitChanging to other perspective might no longer show the stars. Have a look at the perspective switche...
I'm using eclipse4.2.2.I cloned a repository from github and then created a pydev project in the same directory.Here's what the navigator looks like:As you see,the star icons and red background color are really annoying. Could somebody explain what those things are, and how to get rid of them?Thank you!
What's the star icon in eclipse? How to erase them?
0 Third parameter is bad, should be: objDL.BackupTables(220, i, 1) Share Improve this answer Follow answered Apr 28, 2010 at 14:12 wassertimwassertim 3,12622 gold badges2424 silver badges...
I am trying to run a for loop for a backup system and inside that i want to run a SP that will loop. Below is the code that does not work for me.. Any ideas please? Dim TotalTables As Integer Dim i As Integer TotalTables = 10 For i = 1 To TotalTables objDL.BackupTables(220, i, 001) ' (This is a method from the DL ...
Loop Stored Procedure in VB.Net (win form)
Combinesumwithrate. Rate will be per second, so if you sum up all rate per seconds data points over a given interval you will get the increase over a given time range:sum by(label) (rate(my_metrics{label="label1"}[time range]))Edit:(delta and some concrete time slot)It seems as ifthe delta functionis an easier way to a...
I'm using prometheus as grafana's datasoure. I want to get growth of amy_metrics(typeCount) for a given time range. For example I can calculate the increase over the last few hours:my_metrics{label="label1"} - my_metrics{label="label1"} offset $__rangeBut how can I calculate the increase for given time range? For examp...
How to get increase value for a given time range?
Let's do some math. You're allocating a 10,000,000,000 element two dimensional array, plus another two arrays of 100,000 elements. That's 10,002,000,000 elements. If each of them is an int, that's 40,008,000,000 bytes. That's 37.26 Giga bytes. Your -Xmx512m isn't nearly enough, you need something closer to -Xmx60G if ...
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space Using a 2D array of [100000][100000] and other two arrays of [100000] each. I need these three arrays in the whole program so can't free their memory. Already tried VM Options -Xmx512m in Netbeans Please be specific and Step by Step, I am newbie in...
Out Of Memory Error: Java heap space - Using big array size
TheChromium websitehas a good collection of links for getting your certificate included into various operating systems. TheMozilla guideis probably be the best place to start.Heads-up: This is going to take several years, and involve setting up a corporation with regular audits. And then waiting for everyone to upgrade...
I have setup my own car root certificate. Now I want to know that how can I get my root certificate into different OS's trusted ca root store and how to sell certificates from my website from that can root certificate.Any help is appreciated.Thanks in advance.
I have setup my own ca root certificate
AFAIK, this is not a reasonable appearance, even if the OS type of the web app is Linux, there will be the GitHub option.I think you could try to create a new web app, refer to my steps.Navigate toApp servicein the portal ->Add->Web App->CreateAfter creating the web app, check theDeployment optionsand configure it.Besi...
I'm using JetBrains Rider to develop an ASP.NET Core 2.1 web application. The app works in a local development environment.However, deploying the app to Azure has been quite a challenge. The project is in a private repository on my GitHub account. The tutorials I find online have screenshots that show part of the Azure...
Why is GitHub not an option for Azure Web App deployment?
I think the key things you are looking for are in theAWS documentation. Basically, the Role should have theAmazonEC2SpotFleetTaggingRoleservice role and allow thespotfleet.amazonaws.comservice assume the role.
I'm trying to create spot EC2 instance with IAM user account.I got this error message and I can't go furtherParameter: SpotFleetRequestConfig.IamFleetRole is invalid.It seems like administrator account needs to give some "policy" or "role" as permission to my IAM.What "policy" or "role" does admin account give to my IA...
Running into error when launching spot instance request with IAM account
When you visit the website locally, you are running your Express backend on localhost too. But, when you visit it on GitHub, your backend isn't executing on GitHub's machines. So, when I write "Mumbai" in the search field, in the line const res = await fetch(`${hostname}/locations/${query}`, { you are actually fetchin...
I made a simple website that recommends restaurants based on your city using Zomato API. It works perfectly locally, but when I deployed on a GitHub page it gives me the following POST https://devangmukherjee.github.io/locations/delhincr 405 (anonymous) @ index.js:15 index.js:15 - const res = await fetch(${hostname...
Uncaught syntax error in github deployment
Run git clone https://github.com/your/repo to clone your project on your computer. It will create a new folder containing your Android project Copy your changed files in this new folder You can now commit your changes from this folder In android studio, open the new folder instead of the one from the .ZIP
I am working on my Android project from a different computer. After downloading Android Studio, I downloaded my project as a ZIP file and then made some changes on it through the IDE on the new computer. I want to commit these changes to the existing repo through git but idk how to do that. So far I couldn't find m...
How to update an existing github repo from a different computer?
Yes, you often need to add extra resource files like certificates especially when using a minimal distribution like alpine but the fact that you can run go applications on such small distributions is often also seen as an advantage.To add the certificates this is a really good explanation outlining how to do it on a sc...
I want to build a Go 1.9.2 binary and run it on the Docker Alpine image. The Go code I wrote doesn't call any C code. It also uses thenetpackage. Unfortunately it hasn't been as simple as it sounds as Go doesn't seem to quite build static binaries all the time. When I try to execute the binary I often get cryptic messa...
How do I build a static Go binary for the Docker Alpine image?
This is the default behavior, it is working as intended. If you would like to change that, there are a few approaches below on how to customize it:1 - I found these two fluent plugins (GCP-detect-exceptionsandFT-detect-exceptions) from thefluent repothat will answer your question.2 - You could also usestructured loggi...
We have a bunch of java container running on a Kubernetes cluster. The logs from these containers follow the common format ofdate message, stacktraceThese logs are separated and sent to Stackdriver as individual parts, even though they're the same log.How can you configure GKE to include these stacktraces in the log me...
Kubernetes Fluentd multiline log
1 The problem may be that $const is not yet set when limit_req_zone processes it. Are you seeing the correct $cost value in the log? The limit_req_module will ignore empty values, from the docs: The key is any non-empty value of the specified variable (empty values are n...
I am trying to setup a global limit to a certain uri using nginx via openresty with the following config, if I curl this box I get a 204 no matter how many times I request it per minute. worker_processes 1; error_log logs/error.log; events { } http { log_format spec_format '$request_uri $const $status'; ...
nginx limit_req_zone doesn't seem to work
$http_x_uuid is header sent by client. Response header send by upstream is $upstream_http_x_uuidhttp://wiki.nginx.org/HttpUpstreamModule#.24upstream_http_.24HEADER
We are using nginx as a reverse proxy to control and log access to a Clojure (Java) web service application.We are able to generate anaccess_logand capture incoming headers using nginx just fine. Our Clojure app logs activity via log4j. Trouble is, is that we can't match an entry in theaccess_logto an entry generated b...
nginx: Is it possible to capture response headers in access log when using nginx as a reverse proxy?
You have to come up with an owner for the FileSystem object. This can be either the entity that creates the TFileLister instances, or you could pass ownership to the file lister, documenting that it will free the file system that was passed to the constructor. The right approach depends on course on your particular ap...
Dependency Injection is certainly one of the most important concepts when trying to write testable code. But while Java and C# have garbage collection, Delphi has not and normally, object disposal is managed using the ownership-principle (the one who creates the object destroys it). This is nicely supported by the try...
Delphi, Dependency Injection and Memory Management
Remote certificate expired, webservice's appserver needs to update its cert.
I am receiving the following exception while trying to make an SSL connection to a web service. Does this error mean my local keystore/certificate is expired, or is it that I cannot trust the remote server because it has the expired certificate?javax.net.ssl.SSLHandshakeException: certificate expired at com.ibm.js...
javax.net.ssl.SSLHandshakeException: certificate expired - Local or Remote?
If you are writing golang code, I would recommend you usingkubernetes client-go packageto automate the workflow. The only thing you need to be careful is that the client version keeps changing and if it's not consistent with your kubernetes cluster api-server version, you will need to change your client package version...
I have some workflows where I would like to automate kubectl with some custom golang code.Like Istio and others are using kubectl underneath istiocli.Do I need all the Kubernetes code and import some stuff or is it calling existig kubectl in a shell with os/exec?
Creating custom kubernetes cli
For anyone looking for a way to filter logs, if there are multiple services running, you can create new azure build pipeline task (Docker) that runs docker command:docker logs -f NAME_OF_THE_SERVICEThis way you will only see logs from desired service.
I am using Azure DevOps build pipeline, to run my selenium web automation tests (run by maven, inside docker container)Now, even If one of my test scenarios fail, pipeline job is still considered as successful, how can I specify to look for certain log to fail it?The 'pipeline job/task/phase' I am using to run my test ...
Azure DevOps pipeline - how to catch error
The error you are getting, Blocked loading mixed active content "http://w3schools.com/lib/w3data.js", indicates that you have "mixed content" — that is, some content is loaded over https and other content is loaded insecurely over http. Loading a script like this over http makes it vulnerable to tampering in between t...
I am currently making a repo on Github for Github Pages that utilizes a W3Schools script. My index.html code looks like this: <!DOCTYPE html> <html> <head> <title>[my name] Witness Project</title> <script src="http://w3schools.com/lib/w3data.js"></script> </head> <body> <div w3-incl...
Why will Github Pages not allow my valid HTML?
I think the same API isnccl_ops.all_sum. I have demoed this API by the following code.import tensorflow as tf from tensorflow.python.ops import nccl_ops a = [] with tf.device("/GPU:0"): g = tf.constant([1,1]) print(g) a.append(g) with tf.device("/GPU:1"): g = tf.constant([2,2]) a.append(g) b = n...
It seems that from tensorflow 1.13, there is no api such as tf.contrib.nccl.allsum. However, in the Nvidia official GitHubhttps://github.com/tkarras/progressive_growing_of_gans, which uses this old API to reduce sum from different gpu devices as the following.# Sum gradients across devices. if len(devices) ...
Tensorflow what is the tf.contrib.nccl.allsum in new version?
Assuming you have nginx proxying to port 8001, you want to do this:gunicorn -b 127.0.0.1:8001 your_project_name.wsgi:applicationYou need to run that from your project folder (where the manage.py file is)
I'm trying to deploy a django project with NGINX and gunicorn. I keep getting 502 Bad Gateway. I've been working nonstop on this for the past few days and I can't seem to get this deployed. I've gone through 3 tutorials on Digital Ocean, but they aren't correct, obviously.I keep getting 502 bad gateway, or if I try to ...
Configuring Gunicorn: No application module specified
This is not directly supported by Kubernetes. When you have a Pod that depends on the existence of another one (e.g. needs a Database or similar), you could use aInit Container. This will delay the container start until the init container finishes. This is a good way to apply e.g. waiting conditions.
Is it possible to set a running pod as owner of another pod which is to be created. I tired but in that case pod creation fails.
Set a Pod as owner reference for another pod in client go program
Grafana backend is written on Golang, which tries to use system CA certificates -https://golang.org/src/crypto/x509/root_linux.go:// Possible certificate files; stop after finding one. var certFiles = []string{ "/etc/ssl/certs/ca-certificates.crt", // Debian/Ubuntu/Gentoo etc. "/etc/pki/tls/certs...
BriefI am running Grafana on DockerI am connecting Keycloak with Grafana for signinI have followed all steps athttps://grafana.com/docs/grafana/latest/auth/generic-oauth/and it works fineProblemFor HTTPS I have a self signed certificate at KeycloakAt djnago I have this asREQUESTS_CA_BUNDLE=path_to_caWithin Grafana I am...
Grafana OAuth: Self Signed Certificate
CloudFront has two types of edge compute: CloudFront Functions and Lambda@Edge. CloudFront functions only supports viewer-facing (request/response) events, while Lambda@Edge supports both viewer-facing (request/response) and origin-facing (request/response).Because you want to dynamically change the origin (host) that ...
I am trying to implement a solution based on routing the request to a specific origin based on HTTP header on the request.We are using CloudFront for caching, and we have attached 2 ALBs as origin. Now when the HTTP header has an old value, it should hit ALB1, and when the request header has a new value set, then it sh...
CloudFront Function for routing request to origin based on HTTP Header
There is JSR-107, standardising a Java Cache API. This was scheduled to be included in Java EE 7, but will not make it in time according to the latest announcements. Anyway, I tried the reference implementation in Dec. 2012, and it worked fine for me after applying two minor pull requests and building it locally. I di...
Spring framework has a very nice @Cacheable annotation. Is there a way to reproduce this functionality in a Java EE application by using @Interceptors and ehCache?
@Cacheable in Java EE
Here is the correct configuration that you should use.provider "google" { credentials = file("path/to/your/credentials.json") project = "your-project-id" region = "us-central1" } resource "google_monitoring_alert_policy" "pod_monitoring" { display_name = "Pod Monitoring Policy" conditions { dis...
This implementation works fine onGKE, but I don't understand how to implement the same thing usingterraform?apiVersion: monitoring.googleapis.com/v1 kind: PodMonitoring metadata: name: api namespace: default spec: selector: matchLabels: app: api endpoints: - port: metrics interval: 30sI foun...
How to implement monitoring.googleapis.com/v1 on terraform?
1 I don't think trying to reach this dynamic port makes a lot of sense... Currently your have only one nginx server running, so you have an application load balancer, that directs incoming traffic on port 80 to an EC2 instance, at the random port corresponding to your web...
I have a typical ECS infrastructure with a single app behind an ALB. I leverage dynamic host mapping for CD process (ECS can deploy a new container on the same host without port collision). Now I want to add an nginx container in front of it (for SSL from ALB to EC2). The problem is, in nginx config, I have to specify...
AWS ECS dynamic port mapping + nginx + app
Working from the assumption that it is actually RAM you've measured: sure this is entirely normal. Your program is actively addressing virtual memory pages when loading a document, they'll get mapped to RAM. They'll stay there until another process needs to have pages mapped to RAM. Some operating systems trim the ...
I've got the situation where the cycle of loading and then closing a document eats up a few Mb of RAM. This memory isn't being leaked as something owns it and cleans it up when the app exits (Visual Leak Detector and the Mac Leaks tool show agreement on this). However, I'd like to find out where it's going. I'm ass...
How to find out where my memory is going
Are you sureC:\Program Files (x86)\Notepad++\notepad.exeexists. Try aTest-Path "C:\Program Files (x86)\Notepad++\notepad.exe"and see the outcome. Also, instead ofNew-Item, just useNew-Alias
Some backgroudn: I'm learning GitHub through the Udacity "How to Use Git and GitHub" class. They tell me I need to use Command Line, not Windows' native command prompt. I've installed GitHub, which appears to install Git Shell which runs Powershell. I want to create a shortcut to run Notepad++, and I used the following...
Trying to make an alias for an .exe - Powershell saying it cannot resolve the alias
If your repo is a public one, everybody has read access only: see "Making a private repository public"That means anyone canfork your repo, and start contributing byPR (Pull Requests).You cannot directly grantwrite accessto a repo foreverybody.When you receive a PR, can can accept it, or (more radical solution), you can...
How do I let everyone edit a repository on GitHub? I have a repository on GitHub, but I would like anyone to edit it. Is there a way to do this?Other things: What I mean by"everyone"means anyone with an account.
How do I let everyone edit a repository on GitHub?
SSL certificates regenerated from provider and issue resolved.
I have installed SSL certificates 1 year ago and it was working fine for a few days ago but now it shows following error:The URL couldn't be validated. Callback verification failed with the following errors: curl_errno = 60; curl_error = SSL certificate problem: unable to get local issuer certificate; HTTP Status Code ...
SSL shows valid for domain.com but invalid for domain with https
0 Most likely this is a firewall issue: on GKE you had to open the port 80 on the node in order to access it. Now since a few weeks, port 80 is opened automatically when you create a Service setup with type LoadBalancer. On another provider, you may still need to open the p...
I am new to Docker and Google Kubernetes technologies. I was following the following tutorial video which is focused on setting up Kubernetes and using a single node Kubernetes cluster. https://www.youtube.com/watch?v=DC7NECq3Ghs In this tutorial, there is a point where I create three replicas of nginx pods and when ...
curl: (7) Failed to connect to 172.17.0.8 port 80: Connection refused
5 You can set NanoCPUs. 1000000000 units would equal 1 core. Share Follow answered Sep 19, 2018 at 0:55 King Chung HuangKing Chung Huang 5,28211 gold badge2929 silver badges2424 bronze badge...
I have a backend server program that launches docker containers using the Docker Engine API (Json API) and I would like to limit the number of CPU cores per docker container to e.g. 1. The Docker Engine API documentation has several options to configure the CPU settings of a container, see https://docs.docker.com/engi...
Set the number of CPU cores of a container using Docker Engine API
It seems a known bug in Prometheus v2.20.0, and an upgrade to v2.21.0 fixed it.https://github.com/prometheus/prometheus/issues/7955ShareFollowansweredSep 21, 2020 at 14:30WazeryWazery15.6k1919 gold badges6464 silver badges9898 bronze badgesAdd a comment|
Currently, I have a Prometheus v2.20.0 running, and it has an issue that the WAL keeps on growing indefinitely and consuming disk space.Actually the disk space is not the issue now, but that the WAL folder is not getting cleaned, so if any time Prometheus is restarted, it tries to load the entire WAL into memory.So for...
Prometheus WAL Keeps on Growing Indefinitely
If you want to take action on deployments, you need to specify the api group. For deployments it isapps. You can get a list of all resources in kubernetes and the according api groups with the following command:$ kubectl api-resources NAME SHORTNAMES APIGROUP ...
I have a ValidatingWebhookConfiguration monitoring Pods which is working fine. I also have a MutatingWebhookConfiguration monitoring ( and eventually mutating ) Deployment Objects.I have both the Controllers written in Go. Pretty much the code for Mutating one is a clone of the Validating one.On the ValidatingWebhookC...
Mutating Admission Controller doesnt get called on Deployments Create/Updates
The situation you describe is not possible in a full featured OS which gives each process its own address space. It doesn't matter how many other applications are running, they won't affect contiguity of the free address space in your process. And virtual memory can map discontiguous physical memory addresses to a co...
In an application i have to allocate two buffers of 480 MB each. Memory allocation is done using HeapAlloc method. The application works fine in the systems where not many applications are running. But in system where other applications are also running memory is not allocated because of non availability of contiguous...
Contiguous Memory Allocation
6 similar to my answer here: get ec2 pricing programmatically? you can do something similar to the following: aws pricing get-products --service-code AmazonEC2 --filters "Type=TERM_MATCH,Field=instanceType,Value=m5.xlarge" "Type=TERM_MATCH,Field=location,Value=US East (N....
How to get ec2 instance details(like name,id,type,region,volume,platform,ondemand/reserved) with instance price details . Using aws api in cli and write it as a csv file . Thanks in advance .
How to get ec2 instance details with price details using aws cli
1 Your workflow won't be triggered unless the workflow file is also present on that branch. See also https://stackoverflow.com/a/66110799/6310633 . Share Follow answered Mar 10, 2021 at 15:48 ...
I am trying to run a specific workflow when the PR is merged to dev branch or changes are committed to dev branch directly. Of course, dev branch is not a default one. To realize that, I set filters like this. on: push: branches: - dev But this workflow is not triggered. Seems Github Actions only triggers...
Github Actions only triggers on default branch