Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
I don't think CUDA is really much use for computional algebraic/general topology. Sure, you can use it to mess around with homology groups etc., but that's rather algebra than topology, which itself tends to be too abstract/"dynamic" to really benefit from SIMD. If you don't have a clear idea, I'd first try some CPU im...
I have never had an experience with creating simulations or 3D objects, but I want to start learning them, and create a small application, which will simulate topological objects in 3D. What I mean by "topological object", is mathematical topology (algebraic/general topology), meaning torus, knot, Möbius strip, etc. So...
How to create 3D mathematical topology simulations?
I think, the described answers work only for exclusive caches for every build-job. If I have different jenkins-jobs running on docker-slaves, I will get some trouble with this scenario. If the jobs run on the same time and write to the same mounted cache in the host-filesystem, it can become corrupted. Or you must moun...
We have Jenkins Docker Slave template that successfully builds a piece of software for example a Gradle project. This is based on thehttps://hub.docker.com/r/evarga/jenkins-slave/).When we fire up the docker slave the dependencies are downloaded everytime we do a build. We would like to speed up the build so dependenci...
How to cache downloaded dependencies for a Jenkins Docker SSH Slave (Gradle)
No, you don't. You can login using aws-sdk like this:const cognito = new aws.CognitoIdentityServiceProvider({ region }); cognito.adminInitiateAuth({ AuthFlow: 'ADMIN_NO_SRP_AUTH', ClientId: clientId, UserPoolId: poolId, AuthParameters: { USERNAME: email, PASSWORD: password, }, });
I have a javascript project where I use the aws-sdk. No I want to useamazon-cognito-identity-js. On the page it says:Note that the Amazon Cognito AWS SDK for JavaScript is just a slimmed down version of the AWS Javascript SDK namespaced as AWSCognito instead of AWS. It references only the Amazon Cognito Identity s...
Do I need amazon-cognito-identity-js if I already have the aws-sdk (javascript)?
It's more a definitional thing, IIUC. A valid certification path is defined in RFC 5280 and one condition is that its first certificate is signed by a trust anchor (and that the issuerName of the certificate matches that trust anchor's name). (Trust anchors need not be certificates.)
In thePKIX documentationit mentions:The certificate representing the TrustAnchor should not be included in the certification pathMy question is, where does this restriction come from? In theRFC 5280I only found:A certificate MUST NOT appear more than once in a prospective certification path.Does the statement (2) in RF...
Why should the trust anchor not be included in the PKIX certification path?
No real need to issue aws configure instead as long as you populate env vars export AWS_ACCESS_KEY_ID=aaaa export AWS_SECRET_ACCESS_KEY=bbbb ... also export zone and region then issue aws ecr get-login --region ${AWS_REGION} you will achieve the same desired aws login status ... as far as troubleshooting I suggest ...
So I have a docker container running jenkins and an EC2 registry on AWS. I would like to have jenkins push containers back to the EC2 registry. To do this, I would like to be able to automate the aws configure and get login steps on container startup. I figured that I would be able to export AWS_ACCESS_KEY_ID=* expor...
'aws configure' in docker container will not use environment variables or config files
The answer is .gitignore file. See: https://git-scm.com/docs/gitignore for more information.
Specifically for Java Eclipse projects. Is there a reason to have anything other than src and lib directories on github?? How much value does providing /bin, /settings .classpath, .project, etc.?? I'd like to have them on my local, but not displayed on github. Is there a way to do this? Thanks! EDIT: contents of my .g...
How to not push certain directories/files to Github?
I have 99,561 small files totalling 466MB and experimented with uploading these to S3 as quickly as possible from my m4.16xlarge (64 CPU) EC2 instance. aws s3 sync took 10 minutes CyberDuck promised to take 17 minutes, but hung. I terminated it after 45 minutes. CloudBerry seems to be windows only at first glance, so...
I have to upload 100k small files (Total size: 200MB). I've tried to do that via web browser (AWS Console), but for the first 15 min, i've uploaded only 2MB. What is the fastest way to upload 100k small files to S3?
S3: how to upload large number of files
First make sure your identity pool and user pool are setup for google authentication.Then federatedSignIn has a capital last I.And finally just change your second param in the call to federatedSignIn as follows:Amplify.Auth.federatedSignIn('google', { token: googleResponse.id_token, expires_at: googleResponse.expir...
I'm trying to use AWS Amplify to support email / password and Google authentication. Now, I want to store the details from Google into my user pool in AWS. I don't understand the flow here - there are many blog posts I read but most of them are just confusing.Here's what I tried to do:// gapi and Amplify included googl...
Using AWS Amplify to authenticate Google Sign In - federatedSignin returns null?
There's probably an easier way to do it (eg using--cli-input-jsonand providing JSON in a file), but I got this working:aws sns subscribe \ --topic-arn arn:aws:sns:region:accountId:my_topic \ --protocol sqs \ --notification-endpoint arn:aws:sqs:region:differentAccountId:my_sqs_queue \ --attributes '{\"RawMessage...
I'm trying to write a cross account aws cli command to subscribe to a topic and create a filter for that subscription at the same time. Below is how my command looks like.aws sns subscribe --topic-arn arn:aws:sns:region:accountId:my_topic --protocol sqs --notification-endpoint arn:aws:sqs:region:differentAccountId:my_s...
aws cli command to subscribe to a topic with filters
20 An aurora cluster instance might be either a writer or a reader. Aurora clusters allow one writer and up to 15 readers. The instance role might change failover happens. The writer DNS endpoint always resolves to the writer instance, Cluster writer endpoint The reader e...
I created an Amazon Aurora instance in my VPC. When the instance was created, it came with 2 endpoints, a writer and a reader endpoint. The instance is using a security policy with an ingress rule (Type: All Traffic, Protocol: All, Port: All, Source: 0.0.0.0/0). I tried both MySQL Workbench and MySQL monitor command i...
AWS RDS Writer Endpoint vs Reader Endpoint
There is nothing wrong with those patches, they look all exactly how they should look. Unified diff includes 3 lines for context (per default, this can usually be changed by the diff provider, in case of git diff this is -U<n> or --unified=<n>). Lets look at the hunk in your first example: @@ -362,7 +362,7 @@ It says...
When you look at a diff of a file, it will show you the diff info at the top, and then it highlights the changes below. However, in every example I have looked at...the line number that Github highlights with the change, is always different than the line number that Git specified in the Diff/Patch info. For example th...
Why is the Git Diff/Patch info different than the Github representation of that patch?
It's detailed fairly well here in the Kubernetes Service here:https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-typesTo summarise:NodePort exposes the service on a port, which can then be accessed externally.LoadBalancer uses a Cloud Providers option for exposing a port. E.G. ...
Inhttps://kubernetes.github.io/ingress-nginx/deploy/baremetal/In metalLB mode, one node attracts all the traffic for the ingress-nginx By node port we can gather all traffic and loadbalance it podes by servicewhat is diffrence between node port and metalLB?
metalLB vs nodeport in kubernetes
You have to set up a webhook in a git repository and enable a flag in the job config.There is a simplewrite up with imagesShareFollowansweredFeb 25, 2020 at 13:44RamRam1,18466 silver badges2323 bronze badges1In the Which events would you like to trigger this webhook? section there is no option for notifying when a comm...
I have a jenkins pipeline job. I want my job to be triggered whenever there is a commit in my github repository.Note: I am able to do this as a freestyle project. Now I want it as a pipeline project.
Trigger a Jenkins Job when a git commit happens in my repo
I am not an expert about this, so please take this with a grain of salt. I guess that [NSString stringWithString:@"a"] will probably just return the literal string @"a", i.e. it just returns its argument. As @"a" is a literal, it probably resides in constant memory and can't be deallocated (so it should be initialized...
@property (retain) NSString *testString; self.testString = [[NSString alloc] initWithString:@"aaa"]; [self.testString retain]; self.testString = [NSString stringWithString:@"a"]; [self.testString release]; [self.testString release]; Let's go line by line: Line 2: retain count of testString = 2 Line 3: retain cou...
Over-release an object and the app does not crash
What happens if I send message with MessageDeduplicationId test , the consumer processes the message and the deletes it, then, in about 1 minute, I send the exact same message again. Will this message be ignored? Answer seems to be: Yes Amazon SQS continues to keep track of the message deduplication ID even after the...
I'm trying to use the AWS SQS FIFO service together with an Elastic Beanstalk worker environment. Let's say I send a message with MessageDeduplicationId test, if I continue sending this exact message in the next 5 minutes, the message will be ignored, correct? What happens if I send a message with MessageDeduplication...
How does AWS FIFO SQS deduplication ID work?
2 Another tricky way might be creating a new organization and configuring organization-wide templates. Share Improve this answer Follow answered Jun 10, 2020 at 0:13 cema-spcema-sp 37222 s...
Github recently announced the addition of pull request templates. This is an awesome feature that has been heavily requested in the community for some time. These templates are added by including a special file named PULL_REQUEST_TEMPLATE.md to the root of the project or within the .github directory. I have multiple p...
Best way to share Github pull request templates between projects?
Here is what I did:volumeMounts: {{- range $key, $value := pluck .Values.service_name .Values.global.mountPath | first }} - name: {{ $key }} mountPath: {{ $value }} subPath: {{ $key }} {{- end }}helm template --set service_name=hello [...]seems to render exactly what you want.No...
I havevalues.ymlfile that takes in a list of mountPaths with this format:global: mountPath: hello: config: /etc/hello/hello.conf node: /opt/hello/node.jks key: /opt/hello/key.jks cert: /opt/hello/cert.jksI want the resulting rendered template to bevolumeMounts: - name: config ...
Helm Chart configmap templating with toYaml
Kubernetes Pods have an imagePullPolicy field. If you set that to Never, it will never try to pull an image, and it's up to you to ensure that the docker daemon which the kubelet is using contains that image. The default policy is IfNotPresent, which should work the same as Never if an image is already present in the ...
How to refer to the local image that exists? kubectl run u --rm -i --tty --image my_local_image -- bash Results in ImagePullBackOff and kubectl is obviously trying to pull from a remote repository instead of local register. This answer is unhelpful, and the follow up refers to minikube and kubernetes. Some event lo...
kubectl run from local docker image?
Run the commandaws eks --region us-west-2 update-kubeconfig --name my-app-prdto update the kubectl config and then runkubectl get svc
My company has given me a replacement laptop because the previous one has died. Usingaws configure, I have configured AWS and also downloaded and added kubectl to the path. I have updated the kubectl config usingaws eks update-kubeconfig \ --region us-west-2 \ --name my-app-prd \ --role-arn arn:aws:iam::xxx...
User: arn:aws:iam::xxxxxxxxxxxx:user/<AWS_USERNAME> is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::xxxxxxxxxxxx:role/role_name
As you mentioned that onlykubelet.crthas expired andapiserver-kubelet-client.crtis valid, you can try to renew it by commandkubeadm alpha certs renewbased ondocumentation.Second way to renew kubeadm certificates is upgrade version like inthis article.You can also try by usingkubeadm init phase certs all. It was explain...
We currently having 2 Master 2 Worker node cluster onKubernetes v1.13.4.The cluster is down as the kubelet certificate located in/var/lib/kubelet/pki/kubelet.crthas expired and the kubelet service is not running. On checking the kubelet logs I get the following errorE0808 09:49:35.126533 55154 bootstrap.go:209] Part ...
Renewing Kubernetes cluster certificates
you are correct.kubectl top podalso presents the current usage in millicores, so it can also be used to calculate a possible limit reduction.kubectl top pod | grep prometheus-k8s | awk '{print $2} 405mSo I set my limit with. (405 * 100) / 75 = 540mShareFollowansweredOct 23, 2020 at 10:49Kelson MartinsKelson Martins116...
let's say I have the following resource requests:cpu 25mmem 256MiAnd I have the following limits:cpu 1mem 1GiAnd I have the following utilizationcpu 15.01%mem 17.24%Question... Is utilization % of limits or % of requests?My presumption is it would be % of limits. So then if I want my cpu at 75% utilization I would just...
Understanding Kubernetes pod resource utilization in GCP monitoring
The values you have there are OK, but meta http-equiv is highly unreliable. You should be using real HTTP headers (the specifics of how you do this will depend on your server, e.g. for Apache).
This question already has answers here: How do we control web page caching, across all browsers? (30 answers) Closed 7 years ago. The community reviewed whether to reopen this questio...
Prevent caching of HTML page [duplicate]
Updated answer (august 2022)Problem is fixed in the official v9.6 image.Updated answer (june 2022)I was able to build a working image by using this Dockerfile:FROM sonarqube:community USER root RUN apk add --no-cache --upgrade 'zlib>=1.2.12-r1'; USER sonarqube(credits tothis Github comment)Original answer (april 2022)A...
I'm trying to create docker container with SonarQube inside it, but I get this error while composing for the first time:Caused by: java.util.concurrent.ExecutionException: org.apache.lucene.index.CorruptIndexException: checksum failed (hardware problem?) : expected=f736ed01 actual=298dcde2 (resource=BufferedChecksumInd...
SonarQube Docker Installation CorruptIndexException: checksum failed
Did you try proxy_cache_valid 200 1d;: location ~ ^/1 { proxy_pass http://10.10.52.126:8090; proxy_cache api_cache; proxy_cache_valid 200 1d; } Link
My nginx server if configured like this: ...... server { # Status page location /nginx_originserver { stub_status on; } listen 80; location ~ ^/1 { proxy_pass http://10.10.52.126:1239; proxy_cache api_cache; } ...... } In this case, when I browse http://localhost/1/thumbnail.j...
nginx doesn't cache json, but caches .jpg file
There's no standard way to do this, but various malloc debugging tools may have a way of doing it. For example, if you usevalgrind, you can useVALGRIND_CHECK_MEM_IS_ADDRESSABLEto check this and related things
I want to know if a pointer points to a piece of memory allocated with malloc/new. I realize that the answer for an arbitrary address is "No you can't" but I do think it is possible to override malloc/free and keep track of allocated memory ranges.Do you know a memory management library providing this specific tool?Do...
Check if a pointer points to allocated memory on the heap
I don't know why this error has appeared, but after I made [root@vm5808 ~]# /etc/init.d/nginx stop Stopping nginx: [ OK ] [root@vm5808 ~]# /etc/init.d/nginx start Starting nginx: [ OK ] error has gone: [root@vm5808 ~]# nginx -...
I have two servers on CentOS: Nginx(proxy) + Apache. I need restart Nginx but if i try to test configuration before restart, i have next error: [root@vm5808 ~]# nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in us...
Nginx(proxy) + Apache: two process listening same port
docker pull (and push) run over HTTPS, and I believe if you use the default HTTP/TLS port 443 for your server then you won't need to specify it in your image tags.
This to enable one to use docker tag image:version docker.mydomain.com/image:version instead of explicitly specifying the port
Is there a default port for a docker private registry
1 In general, you can check if the imageId of your container matches the one of your image: docker inspect -f '{{ .Image }}' bashapp As you won't be able to remove an image that is still used, you should be able to find the image of your container with the following comman...
Suppose I have one running container: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 59f00e5c96d6 me/myapp:latest "bash" 9 hours ago Up 7 hours 127.0.0.1:80->80/tcp bashapp Suppose I found a mysterious docker image archive file me-myapp-latest.tar.gz out ...
How to know which version of an image a container is running?
Yes, you can set the namespaceas per the docslike so:$ kubectl config set-context --current --namespace=NAMESPACEAlternatively, you can usekubectxfor this.
Can I set the default namespace? That is:$ kubectl get pods -n NAMESPACEIt saves me having to type it in each time especially when I'm on the one namespace for most of the day.
Can I set a default namespace in Kubernetes?
Not all resources are the same. Always check the documentation for the particular resource. It has the "Return Values" section and you can easily verify that SNS topic has ARN as a Ref value, so you don't have to use GetAtt function https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sns-topi...
I am trying to create an AWS cloudformation stack using a yaml template. The goal is to create a sns topic for some notifications. I want to output the topic arn, to be able to subscribe multiple functions to that topic by just specifying the topic arn. However I am getting an error when I try to create the stack from...
AWS cloudformation error: Template validation error: Template error: resource NotificationsTopic does not support attribute type Arn in Fn::GetAtt
You need to untrack the file, and then git will happily ignore it using the pattern in .gitignore. If a file is already being tracked, changes to it are not ignored even if it is in the ignorelist. From the current status, it is apparent that you have removed the file from your filesystem, but have not untracked it ye...
So, I'm pretty sure that I'm doing something wrong, but I can realize what. My .gitignore: { content/data.db } When I change this document and I do git status I get: Changes not staged for commit: (use "git add/rm <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in w...
Gitignore is not untracking
Looks like Beanstalk and the S3 bucket are in different regions. You stated that Beanstalk is in ap-southeast-2, while it seems that the S3 bucket is in ap-southeast-1. Create that bucket in ap-southeast-2.
i am trying to deploy the war file from jenkins to elastic bean stalk, the build is successful , but when it tries to upload to s3 , it is showing this error Uploading file awseb-2152283815930847266.zip as s3://elasticbeanstalk-ap-southeast-1-779583297123/jenkins/My App-jenkins-Continuous-Delivery- MyApp-Stage-promoti...
The bucket you are attempting to access must be addressed using the specified endpoint , while uploading from jenkins to s3
I have solved this on Tectonic 1.7.9-tectonic.4. In the Tectonic web UI, go to Workloads -> Config Maps and filter by namespace tectonic-system. In the config maps shown, you should see one named "tectonic-custom-error". Open it and go to the YAML editor. In the data field you should have an entry like this: custom-h...
I have a couple of NodeJS backends running as pods in a Kubernetes setup, with Ingress-managed nginx over it. These backends are API servers, and can return 400, 404, or 500 responses during normal operations. These responses would provide meaningful data to the client; besides the status code, the response has a JSON...
How to disable interception of errors by Ingress in a Tectonic kubernetes setup
Yes, you should create a new keystore for new environment as the (Common Name) CN field in keystore should match to your dev/test/prod environment. I assume your CN is localhost or loopback address when you created one for your local environment.Alternatively, if you want to match based on wildcards such as *.test.abc....
I have a Spring Boot web service, and I want to make it use https instead of http.To this end, I have already created a keystore containing a self-signed certificate, and configured the server using spring boot properties. The certificate has name localhost, to match the local environment.Now I want to test it on a pro...
Managing test ssl certificates on dev environments
As I'd mentioned on MSDN, immediate consistency is expensive. You have to accept some tradeoffs in consistency, or lay out a lot of cash to be immediately consistent. Using the isolated read/write model we discussed on MSDN, along with queues, probably provides you the best performance/consistency bang for the buck. Mu...
Our web application is deployed in a web farm (more than 20 servers). The site has a huge traffic (millions of page views per day). In the first release, this application is using EntLib's CacheManager (Entreprise application block caching). We call this "Local Server Cache". There are many benefits but we still have...
AppFabric Caching for large scale web sites
It could be multiple reasons.I'm assuming your virtualenv is called venv, if not change it accordingly.You have not activated your virtualenv.Fix:source venv/bin/activateYou activated your virtualenv, but the path does not match.Fix:echo $PATH /Users/[yourpath]/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/binIf/Users/[...
I'm attempting to deploy a chalice application following the tutorial. I'm using a virtualenv with python3.6. My application is dependent on a github repo in the requirements.txt and that repo's requirements.txt depends on several libraries.I can run the application just fine withpython -i app.pyand I can execute my en...
Why is AWS's Chalice for Python not respecting my virtualenv?
Addpdf.FreeReader(reader);right beforereader.Close();to make sure that as little memory as possible is required for managing copied content from thatreader.That method (of the parent class ofPdfCopy) is documented asWrites the reader to the document andfrees the memory used by it. The main use is when concatenating mul...
I am merging large number of pdf files using iTextSharp in asp.net mvc c#, it works fine for small number of files but when it reaches about (1000) files it breaks on line pdf.AddDocument(reader); and throws 'System.OutOfMemoryException'. I am already using PdfCopy and FileStream to better utilize memory which is sugg...
how to avoid 'System.OutOfMemoryException' Merging large number of PDF files using iTextSharp in asp.net mvc c#
Community edition of Nginx does not provide such functionality.A commercial version of Nginx provides. There ismax_connsparameter inupstream's servers:upstream my_backend { server 127.0.0.1:11211 max_conns=32; server 10.0.0.2:11211 max_conns=32; }The documentation ishere
trying to use NGINX as reverse proxy, and would like to have constant number of open connections to backend (upstream) open at all times.Is this possible with nginx (maybe haproxy..?) ??running on ubuntu if it makes any difference
is it possible for NGINX to have a pool of N open connections to backend?
The problem is thatliquidtelecom.dl.sourceforge.netdoes not have a valid https certificate and wget is refusing to connectIf you are sure you want to connect to it anyway then provide the--no-check-certificateflag to wget to make it skip certificate validation.!wget --no-check-certificate https://liquidtelecom.dl.sourc...
I'm trying to get access to the dataset using:!wget https://liquidtelecom.dl.sourceforge.net/project/easc-corpus/EASC/EASC.zipBut I got the following error messageERROR: cannot verify liquidtelecom.dl.sourceforge.net's certificate, issued by ‘CN=R3,O=Let's Encrypt,C=US’: Issued certificate has expired. To connect to ...
How do I can fix the error Use no-check-certificate
3 Thanks to @icza's pointers, the code I've mentioned above is not quite complete. The error I was receiving had nothing to do with the last bit. Apparently, it's part of the completeMultiPartUpload function. That's where the error is being thrown. Details: The uploadPart...
I'm trying to upload a file to my S3 bucket using multipart upload. I'm following the exact same code as found here. The problem is, whenever it reaches the last part of my file, I get a EntityTooSmall: Your proposed upload is smaller than the minimum allowed size error. Issue: S3's multipart upload restricts file par...
EntityTooSmall when uploading to S3
Had a similar issue myself and while researching stumbled across your question. I found this was quite easy to to programatically however isn't really explained in the Jetty docs. The structure of the Jetty xml configuration files are matched by the structure of the java API so you can just replicate it in code. So fo...
I am running a Spring Boot application in AWS. The application is running behind an Elastic Load Balancer (ELB). The ELB is configured to use https (port 443) to the outside world, but passes through http (port 8080) to the application. The ELB is configured to pass through the x-forwarded-proto header. I am using Jet...
Configuring embedded Jetty 9 for X-FORWARDED-PROTO with Spring Boot
No, you can't. Amazon Linux does not have a Repo for X-server packages. Also, It was meant to be used for Server side roles and hence all he X related stuff is not available.Consider usingUbuntuORRHELami where you can configure X environment manually by followingthisandthis.
I know GUI is for the weak but unfortunately strictly using the terminal isn't an option for me. I have an instance of the Amazon Linux AMI and I have it all set up but I can't find a guide on how to get a GUI on Amazon and how to remote desktop/ VNC into it. I have seen stuff on how to do this for the Ubuntu instance ...
Amazon Linux AMI ec2 GUI / Remote Desktop
For specifics:http://www.csc.villanova.edu/~mdamian/Sockets/TcpSockets.htmdescribes the C library for TCP sockets.I think the key is that after a process forks while holding a socket file descriptor, the parent and child are both able to call accept() on it.So here's the flow. Nginx, started normally:Calls socket() an...
According tothe Nginx documentation:If you need to replace nginx binary with a new one (when upgrading to a new version or adding/removing server modules), you can do it without any service downtime - no incoming requests will be lost.My coworker and I were trying to figure out:how does that work?. We know (w...
How can Nginx be upgraded without dropping any requests?
Do not call `retainCount`; it is useless.Without seeing the contents of your block, it is impossible to say. If your block is effectively a static block, then copying it does nothing.Are you seeing a crash?ShareFollowansweredJul 25, 2011 at 19:56bbumbbum163k2323 gold badges273273 silver badges359359 bronze badges2I w...
I'm trying to send a Block as an argument to a method called by an NSInvocation (which, for context, is fired by an NSInvocationOperation). The invocation should be retaining the arguments, and it seems to be working for the "regular" object parameters, but the Block's retainCount is staying at 1.I could release it aft...
Construct NSInvocation w/ Block argument
So, the kubectl commands needs to be configured! Currently kubectl is trying to connect to the kube-api on your local machine (127.0.0.1), clearly there is no kubernetes there so it throws the error "No connection could be made..."To change the kubectl settings you need to find the kubectl config file at the path:Windo...
kubectl get pods kubectl get namespace kubectl describe ns.ymlWhen I try to execute any commands from above I am getting the following error:E0824 14:41:42.499373 27188 memcache.go:238] couldn't get current server API group list: Get "https://127.0.0.1:53721/api?timeout=32s": dial tcp 127.0.0.1:53721: connectex: No c...
I Installed kubectl locally ,but when i try to used that utility getting error,
Add it on a separate line.When you use && with cron, it's expecting multiple cron jobs to add for the same cron frequency.eg.0 * * * * a && bHence why it says "*/5 not found" because that's thebabove - it thinks it's a cron script to run.Add your */5 * * * * script on a separate line in its own command.
I want to perform cron jobs every minute for feeds.sh and every 5 minutes for reminder.sh inside docker container. It was able to run every minutes for feeds.sh. However for reminder.sh, it cannot run every 5 minutes as it keep throwing the error/bin/ash: */5: not foundinside the docker container.The following code is...
how to perform cron jobs every 5 minutes inside docker
There are two active pull requests on the GitHub Issue Tracker which pertain to this problem: https://github.com/EllisLab/CodeIgniter/pull/661 https://github.com/EllisLab/CodeIgniter/pull/1403 They are both a little different and while one of them looks pretty old (I didn't notice it) the second more recent issue migh...
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question mo...
CodeIgniter cache driver ignoring backup adapter [closed]
Have you looked at TeamCity'spre-tested commitfeature? It doesn't work exactly as you described you would like your workflow to operate, but it might be useful. I've used it with Subversion in the past and it works pretty well, I haven't used it with Git butJetBrains stateit also works with Git.However, the most common...
What I want to do:I want to set up Continuous Integration with Team City for a project that's hosted on GitHub.What's Currently WorkingI'm properly connected to GitHub. Commits, pushing, etc etc all seem to be fine. TeamCity is set up and I can kick off a build which will run and run my unit tests, but...What's Not Wo...
Having some problems integrating TeamCity, GitHub and Visual Studio
I think you get back to the login page because you are redirected and since your code doesn't send back your cookies, you can't have a session.You are looking for session persistance,requestsprovides it :Session Objects The Session object allows you to persist certain parameters across requests. It also persists cook...
I have tried logging into GitHub using the following code:url = 'https://github.com/login' headers = {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36', 'login':'username', 'password':'password', 'authenticity_to...
How can I use POST from requests module to login to Github?
Figured out an alternative:Instead of usingForceTypeI used:<Files "apple-app-site-association"> Header set Content-type 'application/json' </Files>I don't know why the other alternative didn't work
I want to upload an AASA (apple-app-site-association).The problem I'm having is that I can't set the MIME-Type. I placed the file in the root/andthe.well-knownfolder without an extension. After that I tried (like I did with success on an other hosting provider) to change the MIME-Type toapplication/json.This is my.htac...
rewrite file's MIME-Type in .htaccess isn't working
Using mod_rewrite you could use a condition to verify the id and grab what comes after if anything:RewriteEngine On RewriteCond %{REQUEST_URI} ^/forumdisplay.php RewriteCond %{QUERY_STRING} ^fid=6(&.*|.*) RewriteRule ^.*$ /blog.php?%1 [R=301,L]
Trying to make the url:www.google.com/forum.php?fid=5Redirect to:www.google.com/new.php?fid=5But also need it to keep everything else intact because for example the link can be:www.google.com/forum.php?fid=5&sortby=ascAnd needsortbyportion to be there upon redirect.What the redirect needs to do is look forforumdisplay....
Redirect when two strings are matched
I figured it out - it happened because I reinstalled TortoiseGIT since starting to work on the project. Pulls went smoothly, but as soon as I tried to push back my changes TortoiseGIT needed my authentication key, which was not configured.EditTo resolve, I simply cleared all authentication data from my TortoiseGit, und...
I started a github project a few weeks ago. I was able to push changes without any problems (I'm using TortoiseGIT).Suddenly today when I tried to push my changes, I got "PuTTY Fatal Error" "Disconnected: No supported authentication methods availble" error window.Anything you can recommend to remedy the problem?
Suddenly getting "No supported authentication methods available" when pushing to github
I am not an expert in this area but I have deployed Django using uWSGI on Nginx with this method. A socket file represents a Unix socket. In this case, uWSGI creates it and it will be through this socket that uWSGI and Nginx will talk to each other.The "Concept" section of the link you provided talks about it:uWSGI is ...
I followedthis doc, and almost everything went well untill "mysite.sock" occurred. It occurred like this:server unix:///path/to/your/mysite/mysite.sock; # for a file socket # server 127.0.0.1:8001; # for a web port socket (we'll use this first)This doc did not mention anything about the "mysite.sock" and after one day'...
In django + nginx + wsgi, what is a "mysite.sock"
I would suggest you slice and dice your cluster by usingNamespaces.You can easily create a namespace by using the following command.kubectl create namespace my-projectNow you can feed your all manifest files (deployment, services, secrets, PersistentVolumeClaims) to API Server to that my-project namespace. for instance...
I have a two-cluster multi-region HA enabled in production working in MS Azure.I was asked to reuse the same cluster to manage several new projects using Microservices.What is the best practice here ? Should I create a cluster per app ? Is it better to isolate every project in different clusters and cloud account subcr...
Kubernetes Cluster per app?
You need to use a tool that is capable of supporting database migrations. The two I'd recommend in the Java space would be:liquibaseflywayThese are by no means the only tools in this category. What they do is keep a record of the schema changes that have already been applied to your database instance, ensuring that the...
I want to deploy my microservices in docker containers. I want these microservices to be as stateless as possible, only persisting state to a database.This means that there are these requirements:These services are deployed as docker containers and orchestrated using kubernetes.Each service can be deployed and scaled t...
Handling database schema creation and migrations when launching multiple instances of a containerized microservice
You can try thesparse checkoutalong with submodules.Set Git submodule to shallow clone & sparse checkout?
A lots of repos for python on github use project structure for setuptools (for examplehttps://github.com/omab/django-social-auth). But I want to make folder with module core to my project as a submodule. Can I use subdirectories from remote repo as a submodule in my repo?
Subdirectory from github as a git submodule
This is pretty simple, but I like to use a javascript wrapper rather then making the ajax calls myself. You will need to generate a oAuth token. Here is a working example. If you are not familiar with oAuth it is basically a special password you create for your account which allows your extension to access your applic...
How can i use my github account in a chrome extension. I mean how can a get repo lists or something else in my own extension with my account? i find a lot of extension to github but i cant find the source how made it..
Github in chrome extension
Turns out there was another reverse proxy in front of my server that I had no control of. Changed my server set up to be directly internet facing and it works as expected.
I am using nginx and proxying to my app that uses socket.io on node.js for the websocket connection.I get the error above when accessing the app through the domain.I have configured nginx according tohttps://github.com/socketio/socket.io/issues/1942to ensure that websockets are properly proxied to the node.js backend.M...
WebSocket connection to 'ws://.../socket.io/' failed: Error during WebSocket handshake: net::ERR_CONNECTION_RESET
Your free can mirror your allocation: int i; for(i = 0; i < y; i++) free(array[i]); free(array); But if you assign to temp the new matrix created by matrixTranspose, then you'll lose your pointer to that memory. So keep track of that with another pointer, or assign the result of matrixTranspose to another pointer...
I have a function which creates a 2D array: float** createMatrix(int x, int y){ float** array= malloc(sizeof(float*) * y); for(int i=0; i<y; i++) array[i] = malloc(sizeof(float) * x); return array; } Now I can create a 2D array: float** temp=createMatrix(2,2); I also have a function, for e.g....
Memory leaking when allocating memory
You can have following .htaccess in site root:RewriteEngine On RewriteRule ^$ app/ [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .+ app/$0 [L]Then you need to have this code inapp/.htaccessRewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.p...
My root folder to many file and folder, because of I using some tools (php composer, node, gulp, bower...) for a lager project.Q1. change the root folder?I don't want my project to be too messy. So I save all files running on FTP into a directory named/app/EG: /www/app/home.php =https://xxxx.com/home.phpI tried this, ...
htaccess RewriteRule set the root to sub folder and auto hide .php/.html
If you don't want to use the "raw" button, you can (since June 2021) add ?plain=1 to your GitHub markdown file URL: Appending ?plain=1 to the url for any Markdown file will now display the file without rendering. As with other code files, it will also show line numbers, and can be used to link other users to a specif...
Github helpfully renders Markdown (.md) files to HTML when viewing on github.com (for example, this README.md). When viewing any other source file, it is shown as unrendered source code (for example, this .gitignore). A handy feature this gives is linking directly to a line in the source by clicking the line number (f...
How do I view the source of Markdown files on Github?
My guess is that when you borrowed your colleague's credentials that one time, your Git tool cached them, and since then has been reusing them. Look into git config to see how to manually set your username from the bash: git config --global user.name "Shorya Sharma" Then confirm that the settings are sticking: git c...
I have been seeing this weird problem on git wherein I push a certain piece of code from my github account and it shows up as being pushed by my colleague. Git specifically asks for my credentials so I know it is my account, yet all commits are made from this other account. I once did login from his account temporaril...
Why is the code being pushed by myself on git show up as from somebody else?
Can you try setting Client-IP based session affinity by setting service.spec.sessionAffinity to "ClientIP" (the default is "None"). (http://kubernetes.io/docs/user-guide/services/)You can also try running an ingress controller which can better manage the routing internal, see:https://github.com/kubernetes/kubernetes/is...
Trying to understand how sticky session should be configured when working with service type=loadbalancer in AWS My backend are 2 pods running tomcat app I see that the service create the AWS LB as well and I set the right cookie value in the AWS LB configuration ,but when accessing the system I see that I keep switchin...
Kubernetes: How to setup sticky session with AWS loadbalancing
While followinghttps://www.cyberciti.biz/faq/configure-nginx-ssltls-passthru-with-tcp-load-balancing/I found thatproxy_ssl on;was missing. Below stream configuration worked perfectly and we need to access Nginx server onhttpnothttpsprotocol but port used was 8443. I need to figure out why its not working onhttpsprotoc...
I am trying to do load balancing on 3 SSL enabaled REST webservice instances using Nginx.I need to use SSL pass-thru in my case.I have followedhttps://www.cyberciti.biz/faq/configure-nginx-ssltls-passthru-with-tcp-load-balancing/andhttps://serversforhackers.com/c/tcp-load-balancing-with-nginx-ssl-pass-thrubut i am not ...
Nginx SSL pass-thru not working with a REST web service
Here's what I ended up doing - it took a while to get right. While ideally I would have used the Prometheus python client designed specifically for this purpose, it appears that it doesn't support multiple labels in some cases and the documentation is virtually non-existent - so I went with a home-brewed solution.The c...
I wish to push a multi-labeled metric into Prometheus using the Pushgateway. The documentation offer a curl example but I need it sent via Python. In addition, I'd like to embed multiple labels into the metric.
How to push metrics with Python and Prometheus Pushgateway
You can use it this way withmod_setenvif:SetEnvIfNoCase Request_URI ^/testing SECURED AuthName "Restricted Area" AuthType Basic AuthUserFile /path/to/your/.htpasswd AuthGroupFile / Require valid-user Satisfy any Order Allow,Deny Allow from all Deny from env=SECURED
I want to add a login restriction on certain page like.www.example.com/testingwhenever someone hit this url it should ask password, otherwise whole website should work password free.Htaccess Code:SetEnvIfNoCase Request_URI ^/testing-softwares SECURED AuthName "Restricted Area" AuthType Basic AuthUserFile /path/to/your...
How to protect a specific url through htaccess
Obviously, you didn't follow the right uninstallation method; please note that if you are installing different toolkit versions there won't be any conflict between them and you can keep both of them. You will be asked during the installation process to link your /usr/local/cuda-x.y to /usr/local/cuda. Check Section 2....
On Ubuntu, I previously had an installation of CUDA 6.5, and wanted to upgrade to CUDA 7.0. So, I deleted the directory at /usr/local/cuda-6.5, and installed CUDA 7.0 into /usr/local/cuda-7.0. I then changed the symbolic link at /usr/local/cuda to point to /usr/local/cuda-7.0. In my bash.rc file, I also updated the env...
Compiling CUDA looks for wrong CUDA version
Tim, you're indeed hitting on the two key approaches: NOT GOOD ENOUGH: store the secret key "secretly" in the app. There is indeed a grave risk of someone just picking it out of the app code. Some mitigations might be to (a) use the DPAPI to store the key outside the app binary, or (b) obtain the key over the wire fr...
I'm Looking at using Amazon S3 and simpleDB in a desktop application. The main issue I have is that I either need to store my aws credentials in the application or use some other scheme. I'm guessing that storing them in the application is out of the question as they would be easily picked out. Another option is to ...
Storing My Amazon Credentials in C# Desktop App
Resque github repository has this secret gem, a god task that will do exactly this: watch your tasks and kill stale ones. https://github.com/resque/resque/blob/master/examples/god/stale.god # This will ride alongside god and kill any rogue stale worker # processes. Their sacrifice is for the greater good. WORKER_TIME...
I have an application that uses resque to run some long-running jobs. Sometimes the take 8 hours or more to complete. In situations where the job fails, is there a way to monitor resque itself to see if the job is running? I know I can update the job's status in a database table (or in redis itself), but I want to kno...
Find out if a resque job is still running and kill it if it's stuck
The /media/ path is not found, so it was returning 404 error. You need to check from where it is calling.ShareFollowansweredNov 27, 2015 at 7:38Shailesh DaundShailesh Daund18022 silver badges1212 bronze badges5Can you post console screenshot?–Shailesh DaundNov 27, 2015 at 7:43You have posted net tab screenshot, It will...
I am getting lots of 404 errors in Fire Bug's Net tab. I have attached the screen shot to know more. The error gets continuously incremented in Fire Bug. I have checked for this and getting solutions for this but not related to this type of problem.Console Output: 16(Keeps on incrementing, thereby slowing down the webs...
404 media urls in Fire Bug
Have you tried this:gitk path/to/fileShareFollowansweredMar 21, 2012 at 15:37Pierre MagePierre Mage2,27611 gold badge1515 silver badges2020 bronze badges5Seems to display the last commit that touched path/to/file–ChrisMar 21, 2012 at 15:422It should show you the gitk interface for path/to/file including commits and dif...
This question already has answers here:Closed11 years ago.Possible Duplicate:View the change history of a file using Git versioningSometimes I want to step through the history of a particular file. In the past I used P4V and this was very quick and intuitive.Right click on a file and select history.Scrolling through th...
Show history of a file? [duplicate]
You are matching your referer against^https://(.+\.)*mydomain\.com. Which means if some completely other site, sayhttp://stealing_your_images.com/links to something onprotect.mydomain.com, the first condition will fail, thus the request is never redirected tohttps://unprotected.mydomain.com/. You want to approach it fr...
I'm trying to set up a htaccess file that would accomplish the following:Only allow my website to be viewed if the viewing user is coming from a specific domain (link)So, for instance. I have a domain called. protect.mydomain.com . I only want people coming from a link on unprotected.mydomain.com to be able to acces...
htaccess only accept traffic from specific http_referer
If you have only one matrix pointing to your data, you can do this trick: Mat img = imread("myImage.jpg"); // do some operations img = Mat(); // release it If more than one Mat is pointing to your data, what you should do is to release all of them Mat img = imread("myImage.jpg"); Mat img2 = img; Mat roi = img(Rect(0...
I'm working on a program where we do some image processing of full quality camera photos using the Android NDK. So, obviously memory usage is a big concern. There are times where I don't need the contents of a Mat anymore - I know that it'll be released automatically when it goes out of scope, but is there a good way ...
Explicitly releasing Mat with opencv 2.0
7 You can use the Project from Version Control, it has git. What I did was I logged in through a token, it also tells you what needs to be added to the token and that worked for me. You can create the token here: https://github.com/settings/tokens Share Improve th...
I've started working with Android Studio and I found a problem when trying to connect to Github. I've tried restarting Android Studio and even creating a new project, but I am not able to login. I installed Git and it´s working in the local repository. The problems are: Incorrect credentials Request response: 401 unau...
Android Studio, Github login problem incorrect credentials
I found the better solution! http://www.littlebigextra.com/use-spring-profiles-docker-containers/ I can compile without usisng a profile but then i can use java -jar selecting the spring profile! thanks for your comments, responses!
I am running multiple spring-boot microservice within docker containers. I am writing docker-compose.yml file to automate de deploy, but I have a problem. All the spring-boot microservices have different profiles depending on if you want to run them locally without docker and another ig you want to run them with docke...
Execute mvn clean install before docker-compose commands
You can check the name servers by openingresolv.confin your container's directory:/etc/resolv.confYou can test by adding Google's public name server like:nameserver 8.8.8.8Should resolve internet issue by adding above line to/etc/resolv.conf.A better way is to use Kubernetes's own core DNS as describedhere.
Pod hosted on K8s cluster is not able to connect to the internet:[root@master micro-services]# kubectl exec -it webapp-77896f4bf8-8ptbb -- ping google.com ping: bad address 'google.com' command terminated with exit code 1
Pod is not able to connect to internet
Create a function in the component controller file in the controller frontend let say myCornTasklet say your component name is com_myformso modify frontend controller file like this<?php class MyFormController extends JController{ public function myCornTask(){ $app=JFactory::getApplication(); $to...
I am not very familiar with Cron Job in Joomla. I have created custom component fromcomponent creator. I have created two field 1. Title and 2.Cron. Now I want to disable that title when Cron(Date field) and current date is match.I will thankful If anyone can help me.Thanks, Manan
Joomla update mysql query with Cron Job
+100As of kubectl v1.24, it is possible to patch subresources with an additional flag e.g.--subresource=status. This flag is considered "Alpha" but does not require enabling the feature.As an example, with a yaml merge:kubectl patch MyCrd myresource --type=merge --subresource status --patch 'status: {healthState: InSyn...
I am trying to update status subresource for a Custom Resource and I see a discrepency with curl andkubectl patchcommands. when I use curl call it works perfectly fine but when I usekubectl patchcommand it says patched but withno change. Here are the command that I usedUsing Curl:When I connect tokubectl proxyand run t...
kubectl patch doesn't update status subresource
in this case solution was to delete the old config from$HOME/.kube/and re-initialize it afteraz loginwith the user in question
My private AKS Cluster is accessible only to the root user usingkubectlon a jumphost. But for a non-root user it throws below error message:someuser@jump-vm$ kubectl get pods -A Error from server (Forbidden): pods is forbidden: User "XX-XX-XX-XX-XX" cannot list resource "XX" in API group " " at the cluster scopeHow to ...
Error from server (Forbidden): pods is forbidden: User cannot list resource "pods" in API group at the cluster scope
Either/Or:You upgrade the size of your main node disks with something likethis.Check what pods are taking up space. Is it logs? Is it cached data? is it swap? Every application is different so you will have to go case by case.Setlocal ephemeralstorage at the pod level for your workloads so that they don't go over. Pods...
I followed this tutorial to create a Kubernetes cluster on Azure to run build agents:http://www.chrisjohnson.io/2018/07/07/using-azure-kubernetes-service-aks-for-your-vsts-build-agents/To recap what is there: a helm chart to do a deployment with a secret and a config map. For this deployment, I created a kubernetes clu...
How to clean up disk space for Azure Kubernetes Node?
Looks like, you can't run more than one AWS service using motostandaloneserver. If you want say bothec2andacmservices to be run with moto, run both these commands,moto_server ec2 -p 5000 -H 0.0.0.0 moto_server acm -p 5001 -H 0.0.0.0However, if you want multiple services of AWS for testing, you could considerlocalstackh...
I am trying to run integration tests against AWS services, to do this I choose moto. Because I am doing this under Java, I wanted to run moto_server, and execute these tests against this mock. The problem I have is that moto_server allows only one service to be mocked. And I need a couple of them. I can lunch moto_serv...
How to run multiple AWS services with moto_server
2 To use a concrete example let's say you have 3 nodes and 9 tasks. You now want to go to 2 nodes and 6 tasks, without any unnecessary rescheduling (e.g. 2 modes and 9 tasks, or 3 modes and 6 tasks). To scale down a service and 'drain' a node at the same time, you can do t...
I have set of tasks for given service t1, t2, ..., tk across nodes N1, N2, ...Nw. Due to lower usage, I do not need as many tasks as k. I need only l tasks (l < k). In fact, I do not need w nodes so I want to start removing machines and pay less. Removing one machine at a time is fine. Each service has its own state. ...
Docker swarm mode: scale down a node and remove services
In a EC2 instance the best way to authorise running code to access AWS resource is to use IAM Role.You assign a role to any instance when starting it. Any policy can be set to the role.Inside the instance any process can connect to a known URL to retrieve temps keys in order to authenticate to any AWS service.Boto, th...
I'm trying to use Ansible to download some files to my various EC2 instances. The problem I'm having is when it comes to my AWS credentials. The AWS Ansible modules all work great, including the S3 module. The following (when I substitute in my AWS credentials) works like a charm.- name: upload data import file ...
Ansible and s3 module
0 S3 hosted sites are static html. No POST handling, no PHP renders, no nothing... So, Why do you care about Google indexing AJAX sites? For a static website, simply upload well formed robots.txt and sitemap.xml files to your root path. Share Improve this answe...
Google webmaster guide explains that web server should handle requests for url that contains _escaped_fragment_ (The crawler modifies www.example.com/ajax.html#!mystate to www.example.com/ajax.html?_escaped_fragment_=mystate) http://support.google.com/webmasters/bin/answer.py?hl=en&answer=174992 My site is located on ...
How to make sure web crawler works for site hosted on AWS S3 and uses AJAX
The expression0 45/30 07-17 * * ?fires every 30 minutes, starts at 7:45 and ends at 17:45every day. In my opinion, it's not possible to schedule a job to start at 7:45 and end at 17:15usingonly onecron expression.Thanks
I am having problems scheduling my job with quartz... I cannot find an expression which lets me run my job from 7:45 to 17:15 every half hour... I have tried this0 15/30 7-17 ? * * *but it fires at 17:45, and I don't want it. Does anybody know any way to do this without splitting the expression? I know that these expre...
Scheduling with quartz every 30 minutes from 7:45 to 17:15
<div class="s-prose js-post-body" itemprop="text"> <p>In your case it was some other process that was using the port and as indicated in the comments, <code>sudo netstat -pna | grep 3000</code> helped you in solving the problem.</p> <p>While in other cases (I myself encountered it many times) it mostly is the same cont...
<div class="s-prose js-post-body" itemprop="text"> <p>When I run <code>docker-compose up</code> in my Docker project it fails with the following message:</p> <blockquote> <p>Error starting userland proxy: listen tcp 0.0.0.0:3000: bind: address already in use</p> </blockquote> <pre><code>netstat -pna | grep 3000 </code>...
Docker Error bind: address already in use
Whether or not private contributions are cuonted and shown is a setting in your GitHub profile. The default is to only show activity from public repositories (https://docs.github.com/en/github/setting-up-and-managing-your-github-profile/publicizing-or-hiding-your-private-contributions-on-your-profile)Your GitHub profil...
I have been contributing to a private repo of an organization on GitHub. There is no member added in the organization and at the organization page, it shows this messageThis organization has no public members. You must be a member to see who’s a part of this organization.So, I am the part of this organization and I hav...
Does GitHub count the commits you made that are in a private repo of an organization
Destroy your container and start a new one up with the new environment variable usingdocker run -e .... It's identical to changing an environment variable on a running process, you stop it and restart with a new value passed in. Replace the concept of restarting a process with destroying and recreating a new container....
I've setup a server with multiple docker containers, accessible withjwilders nginx reversre proxy. When you run the containers you can set the VIRTUAL_HOST environment variable. I've been trying to figure out a way of updating these after a container was launched.A solution postedhere:You just stop docker daemon and ch...
Updating Environment Variables of a Container using Docker
0 You could also declare a webhook on GitHub, in order to generate an event payload that can be listened to by a process on your server. That process (a listener) would be in charge of triggering the git pull. You will find various examples of such listeners, like: a basi...
I develop on my Mac and push it to Github. I login to my server by SSH and I git pull the changes to the server. I want the changes to automatically be pulled to the server when I push them to Github so I a file .git/hooks/post-update with this info #!/bin/sh echo echo "**** Pulling changes into Live [Hub's post-upda...
How do I setup a git hook to pull from Github?
7 I had exactly the same problem - couldn't successfully make request on HTTP to app from Selenium-controlled browsers (Chrome or Firefox) in other Docker container on same network. cURL from that container though worked fine! Connect on HTTP, but something seemed to be try...
I have a functional app running in a docker on port 3000. I have selenium tests that works when I set my host to http://localhost:3000. I created a container to launch the selenium tests and it fails with the following error: WebDriverError:Reachederrorpage:about:neterror?e=nssFailure2&u=https://app:3000/&c=UTF-8&f=re...
Selenium firefox driver forces https
Usually when you clone a Laravel Repository, you have to make this Step:- Composer install- Copy .env.example to .env and set the good values inside .env
One of my friends have created a laravel app and he has made a repository in GitHub. But once I cloned it and runphp artisan servecommand it displays the following error.**Warning: require(C:\Users\j\Desktop\newsLankaPhp2-2\newsLankaPhp2-2\bootstrap/.. /vendor/autoload.php): failed to open stream: No such file or dire...
Cannot serve Cloned Git repository in my local machine
I'm not sure but I guess he didn't received a notification. However such GitHub behaviors often change over time with UI updates and new features... Anyway, it will be clearer for the repo owner, as for anybody else later reviewing what happened, if you'd explicitly notify him about the PR update. He might/should have ...
I've created a pull request on GitHub, been asked for changes by the repo owner, committed the changes and pushed them to the same branch.Now I can see the updates in the pull request but I'm not sure if the repo owner have received any kind of automatic notification (e.g. email) about the update in the pull request. S...
Repo owner automatic notification after updating a pull request
In the fog of eclipse plug-ins I was not able to find the exact answer, but this was the solution. The problem was in the IBM Websphere and Bluemix plugins. There are several options for installing those plugins which results in different content. From the Eclipse Marketplace: The bad set came from Eclipse Marketpla...
I'm using Eclipse with Egit/Github and Maven on Windows. Often but not always, when checking out a branch an error message is thrown indicating the pom.xml file could not be renamed which causes the checkout to fail. The file is locked by Windows, preventing the rename. Using Handle as suggested below shows Eclipse ha...
Locked pom.xml causes git branch checkout failure in eclipse
NSMutableArray uses slightly more memory for two (er, four, see comments) reasons: 1) Because it can change size, it can't store the contents inside the object and must store a pointer to out of line storage as well as the extra malloc node for the storage 2) Because it would be very slow to resize one element at a ti...
I have a question regarding NSArray and NSMutableArray. I understand the difference between two primarily that NSArray is immutable and NSMutableArray is mutable. And as far as my research goes, there performance is kind of same too. There is one thing that I could not find a good answer for and that is if NSMutableAr...
Is NSMutableArray better than NSArray for memory reasons?
You canmountthe host directory to the container.So your host directory will be accessible inside theJenkinscontainer and you can access the files also.This way just mount your.kubefolder to Jenkins container, which is storing thekubeconfigfile. And you can use that path in jenkin config.Create a home directory for Jenk...
I am running a Jenkins docker container, which I want to configure the Kubernetes plugin which requires passing kubeconfig file. How can I point the kubeconfig file in my local machine to the Jenkins running in the container? I am running the k3d Kubernetes cluster on my host machine.
How can I connect to k3d kubernetes running on my host to Jenkins docker container
We opened an issue to discuss this: https://github.com/kubernetes/kubernetes/issues/13858 The recommended way to go here is to use IAM instance profiles. kube-up does configure this for you, and if you're not using kube-up I recommend looking at it to emulate what it does! Although we did recently merge in support f...
We are trying to Configure kubernetes RC in AWS instance with AWS Elastic Block Store(EBS). here is the key part of our controller yaml file - volumeMounts: - mountPath: "/opt/phabricator/repo" name: ebsvol volumes: - name: ebsvol awsElasticBlockStore: volumeID: aws://...
Kubernetes with AWS Elastic Block Storage
You can indicate that you don't want GitHub Pages to build your page with Jekyll by adding an empty file called .nojekyll in the root of your publishing source (see docs). You can also use a custom GitHub Actions workflow to publish your page; such a workflow usually has four steps: Check out the repo with actions/ch...
I want to create my own website and have been working on the page using Bootstrap and my own CSS style sheet. Is there a way of just pushing my HTML and CSS files straight to GitHub-pages without using Jekyll? Here is a simple project structure of my files: The index.html is the home page and the other pages are acce...
Is there a way to add my own HTML and CSS files into GitHub-Pages without having to use Jekyll layouts?
Try installing the app onto the device using iTunes instead of Xcode. First drag the app's ipa file and drop it onto iTunes. You should see the app appear in the apps list. Then just sync the device with iTunes. You can install the provisioning profile using iTunes in the same way. This is the way that I've sent beta v...
I have several people with my app on iPhones, iPod Touches, and iPads, that helped me with development. However, I just discovered that apps put onto the devices through XCode are not backed up by an iTunes sync, and so are not restored. How can I ensure that apps I put on devices this way get backed up, or restored?...
How to back up and restore apps on ios development devices?
As Benjamin mentioned, as of March 7th, 2023, there is currently no way to perform this action. Here is the community discussion tab about this, although unresolved.
I've recently moved a repository from my account to an organization that I've created. I can't create any entries from my issues on the repository since. Is there a way to pass ownership of my Project to the Organization so I get back to creating entries on it for the stuff I want to do in the repository? I would rath...
Is it possible to transfer a Project from an user to an organization?
As describedhereto pass value in subchart you need to define value under dependent chart name section like followingprometheus-operator: # Change default node-exporter port prometheus-node-exporter: service: port: 30206 targetPort: 30206 prometheus: prometheusSpec: storageSpec: vo...
Chart.yaml:-dependencies: - name: prometheus-operator version: 8.16.1 repository: https://kubernetes-charts.storage.googleapis.com/ - name: fluentd-elasticsearch version: 9.4.2 repository: https://kiwigrid.github.ioCustom-values.yaml# Change default node-exporter port prometheus-no...
how to apply custom-values.yaml on two subchart which is part for main chart