Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
You can use jenv tool to handle multiple jdk versions on your mac.See:https://www.jenv.be/Usingjenv versionsyou can list all jdk versions on your mac. Then you can define a global one and a local one (specific to your current dir).To install different versions of the jdk you could use the versions provided by AdoptOpen...
We are using java version "1.8.0_172" for our android builds. To run sonarqube we need java 11.How can we direct sonarqube or android to use specific java versions as overriding JAVA_HOME is causing issues in one or the other
How to handle multiple versions of JDK on the same mac
From the documentation: This method retains the receiver and the arg parameter until after the selector is performed. So you can release obj in workerDoStuff after making the call, as it will be retained for you until updateUI: returns.
Suppose I have a background thread that creates an object. This object will eventually be needed to update the UI so it has to make it to the main thread. It seems awkward to alloc an object on one thread and dealloc it on another thread. Is this common, or is there a better pattern? Consider: // Called on a backgro...
Transferring object ownership among threads?
I did a lot of things to finally managed to get the coverage working but I think that the problem was the "ProjectGUID" missing in each .csproj of my solution making the projects ignored by SonarQube scanner.I also upgraded from SonarQube 6.2 to 8.1 at the same time which may have solved the problem.My steps remained u...
Good morning,Sorry to bother you, I have a problem and I have no leads.I have a pipeline on Azure DevOps where I use coverlet to generate a code coverage report when I use the command "dotnet test".Indeed, the report is well generated.At first, in the "Prepare analysis on SonarQube" step, I set the variable "sonar.cs.o...
Azure Devops + Coverlet + SonarQube shows 0%
You could just capture your password and pass it as an argument usingcat& backticks:/opt/scripts/myscript.py -p `cat /home/pi/mypasswordfile` >> /tmp/backup.logDisclosure: backticks have been deprecated in favor of$()but sometimes just doesn't fit the scenario.
I am trying to execute a python script (with chmod +x) which accepts several options via cronjob. One option is a password which I don't want to store in the crontab file, so I saved it with chmod 600 in my user's home directory (OS: raspbian). My crobtab line is:* * * * 5 [ $(date +\%d) -le 07 ] && /opt/scripts/myscri...
Crontab: read argument from file
Although Jenkin's context is specific (and the question is old), the answer is more general (and still valid). You can find it on this topic:SonarQube analysis could not be completed because the analysis configuration file could not be found.TLDR;Look at the beginning of the SonarQube session, then you find the REAL pr...
We just installed a Jenkins and a SonarQube server.I already created the SonarQube project, and now I'm configuring the SonarQube part on jenkins.I've a weird behavior: Sometimes, jenkins(or the sonarqube runner, I don't know) is creating a whole bunch of configuration files for sonarqube in the.sonarqubefolder of my w...
Jenkins: SonarQube analysis could not be completed because the analysis configuration file could not be found
Yes, but this is still undocumented and nowhere to be found on their docs or anywhere else (up until now :) ). We got it working by searching in the source code of the SDK. You need to load S3 like this: var s3 = new AWS.S3({useAccelerateEndpoint: true}); Then the SDK will use the accelerated endpoint.
Simply, is it possible to use transfer acceleration (TA) with pre-signed URLs generated using the AWS-SDK for JavaScript? Turning on TA for a specific S3 bucket gives a URL with the format: {bucket}.s3-accelerate.amazonaws.com. However, when specifying the parameters for a request, the only valid options seem to be {...
AWS Transfer Acceleration with pre-signed URLs using JavaScript SDK
6 How about: <configuration> <location path="path/to/the/file.js"> <system.webServer> <staticContent> <clientCache cacheControlMode="DisableCache" /> </staticContent> </system.webServer> </location> </configuration> (Note that the path is re...
I currently cache everything possible on my site (images, JS, CSS). There is only one JS file that I need to be loaded fresh every single time. How do I omit just one file from caching, using web.config, whilst leaving everything else cached? Note that I tried another link here, and it didn't seem to stop the caching ...
Disable Caching For A Single JS File Using Web.config
The helm chart template for the secret of alertmanagerchecks if the secret already exists, and if so it will not be overwritten.{{- if (not (lookup "v1" "Secret" (include "kube-prometheus-stack.namespace" .) $secretName)) }}So at the moment you'll have to delete the secret that's automatically created by the Helm chart...
I'm trying to configure Alertmanager with Mattermost. For the whole monitoring and alerting system we're using the Helmrancher-monitoringcharts. When using the defaultvalues.ymlfile from thisversion of the charteverything will be deployed successfully. After enabling thealertmanagerin thevalues.ymland editing its confi...
Alertmanager configuration does not get updated when values.yml have changed
NSURLCache is broken on iOS 8.0.x - it never purges the cache at all, so it grows without limit. See http://blog.airsource.co.uk/2014/10/11/nsurlcache-ios8-broken/ for a detailed investigation. Cache purging is fixed in the 8.1 betas - but removeCachedResponseForRequest: is not. removeCachedResponsesSinceDate: does ap...
Here is the sample function I call when i need to clear cache and make a new call to URL - (void)clearDataFromNSURLCache:(NSString *)urlString { NSURL *requestUrl = [NSURL URLWithString:urlString]; NSURLRequest *dataUrlRequest = [NSURLRequest requestWithURL: requestUrl]; NSURLCache * cache =[NSURLCache sh...
NSURLCache does not clear stored responses in iOS8
Sonar computes the cyclomatic complexity on its own using our internal Java parser. This is what gets displayed in the complexity widget. The computation may indeed differ from what PMD does. So if you activate the PMD rule about complexity, obviously this will be trigger against measures done by PMD, not by Sonar.FYI,...
We are using Sonar to analyze our code and configured PMD, findbugs and checkstyle rules in a custom quality profile of Sonar. The PMD rule Code style cyclomatic complexity gathers the violations in our code if the threshold has been breached for this rule. Sonar also has a Complexity widget in the Project dashboard wh...
Difference between Sonar Complexity metric values and Complexity reporter by PMD
You must retain the URL either using : self.url = url; in the init method or call the retain after assigning the url in the init method like this. _url = url; [_url retain];
I'm creating a new UIViewController with 2 properties : @property (retain, nonatomic) NSURL *url; @property (retain, nonatomic) NSString *title; and synthetised : @synthesize url = _url; @synthesize title = _title; in my custom init method i'm not using the setter like the Memory Management Guide says but when I nee...
iOS - Why my NSURL isn't retained in the init method?
I would keep in mind that Solr already has a lot of caching built into it in order to speed up common queries. I'd advise you to look into the inherent capabilities in Solr/Lucene before you go off and reinvent the wheel with your own query cache. Here is a good place to start.
We are developing a search engine web application that will enable users to search the content of about 200 portals. Our business partner is taking care of maintaining and feeding a solr/lucene instance that is doing the workhorse job of indexing the data. Our application queries solr and presents the results in a hum...
What caching strategy for search queries
Dispose is always used to control the lifetime of a managed object - accessing an object after calling dispose is such a bad idea that many BCL objects will throw exceptions if you do. Having no references to an object is a prerequisite for garbage collection, but the GC is smart enough to detect graphs. For example, ...
A list of objects A are held in a cache. At one point those objects are passed around and a property of A, B is used. B is a large data structure. A needs to be kept in the cache but at a certain point B is no required - and because its large we want to let it be garbage collected. Would a Dispose method on A that...
Nulling members in dispose to control memory usage
Thanks to @agabrys for the tip.Running this Maven command:mvn clean verify help:evaluate -Dexpression="sonar.password" -Dsonar.login=438fd33be6d6e5c9146c674717fea4675f0ebReturned:adminIn order to accept the token, then password must be empty. It must be the Maven sonar plugin that is setting this default password!! S...
Just stood up a brand new SonarQube6.7.1server and configured it to authenticate users via the LDAP plugin (2.2 build 608). So far so good.However, when users trying to run a command line scan using maven with a token:mvn sonar:sonar -Dsonar.login=438fd33be6d6e5c9146c674717fea4675f0eb...they get the following error:Not...
SonarQube token access when LDAP is enabled
DropwizardExports exposes whatever metrics are using that Dropwizard metrics instrumentation environment, so you should look at the Dropwizard documentation to see what they mean.
I have implemented a web service usingDropwizard. It runs onKubernetesand we usePrometheusfor logging there. The web service exportsDropwizard Metricsusing theJava client implementationinDropwizardExports.java.This is the relevant code:private void registerMetrics(Environment environment) { CollectorRegistry colle...
Which metrics are exported by DropwizardMetrics (Prometheus client)?
The error says you don't have rights to push there.Most probably, you have to fix your repository url.git remote remove origin git remote add origin https://github.com/your-username/your-repository git push origin masterThen it will ask you to provide the credentials. Later you can get rid of that using SSH urls.Hereis...
I am completely new to Github...I have been learning Android from udacity and I cloned one of the forks from the public repository.Now, I want to create my own private repository and push the files to it but it always tries to push them to the udacity repository instead of mine.Here are the commands I used:git remote a...
Push to private repository after clone from another repository fork
Lua patterns are not regular expressions. You cannot translate the^[A-Za-z0-9_]+(\.[A-Za-z0-9_]+)*$to^([%d%a_]+(%.[%d%a_]+)*)$, because you cannot apply quantifiers to groups in Lua (seeLimitations of Lua patterns).Judging by the^[A-Za-z0-9_]+(\.[A-Za-z0-9_]+)*$regex, the rules are:String can consist of one or more alp...
I am currently using this regular expression to loosely validate a DNS address:^[A-Za-z0-9_]+(\.[A-Za-z0-9_]+)*$Which would match things likehello.com,hello, andhello.com.com.com. I was trying to replicate it exactly as it is into a Lua pattern. I came up with the following Lua pattern:^([%d%a_]+(%.[%d%a_]+)*)$So that ...
Lua pattern to validate a DNS address
SageMaker is designed to solve deployment problems in scale, where you want to have thousands of model invocations per seconds. For such use cases, you want to have multiple tasks of the same model on each instance, and often multiple instances for the same model behind a load balancer and an auto scaling group to allo...
I am able to host the models developed inSageMakerby using the deploy functionality. Currently, I see that the different models that I have developed needs to deployed on different ML compute instances.Is there a way to deploy all models on the same instance, using separate instances seems to be very expensive option. ...
AWS SageMaker hosting multiple models on the same machine (ML compute instance)
You can redirect all urls to the index.php with this simple rewrite rule:RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*) index.php?url=$1 [L,QSA]Then split the url with the explode function:$parts = explode("/",$_GET['url']);Now the category name is in $p...
I have below url.http://localhost/testing/images/Latest+Images/In+Golden+Light/goldenNow i need rewrite condition in htaccess for this type of urlNow i want to get category name(Latest+Images) and caption name(In+Golden+Light) and search criteria is (golden) from this url. How can i get this ?Can any one please give me...
How to set rewrite condition for url in htaccess
The .DS_Store file is related to macOS, not to Visual Studio: In the Apple macOS operating system, .DS_Store is a file that stores custom attributes of its containing folder, such as the position of icons or the choice of a background image. The name is an abbreviation of Desktop Services Store, reflecting its purpos...
I notice when I make a small change to the application then a file called <solution>/.DS_Store is modified and I am prompted to push the new version of that in addition to other files. Is this needed and if not then should it be something that's in the .gitignore file and how can I add it there?
What's the .DS_Store file that keeps changing in my Visual Studio project on macOS?
In NVIDIA GPU computing toolkit, one can verify the cuDNN installation, On windows system, Go toC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include\ open cudnn.hTo utilize the Tensorflow-GPU successfully, CUDA and cuDNN are required. Some of the Tensorflow library such astf.keras.layers.GRU(Keras GRU laye...
Windows10-pro, single RTX 2080 Ti. I am new to Tensorflow.I just installed tensorflow-gpu, version 2.1.0, python 3.7.7. Cuda compilation tools, release 10.1, V10.1.105. Nothing self-compiled. And I have not installed cuDNN, nor have I registered. All installation is standard, nothing self-compiled.The tensorflow.or...
tensorflow gpu tests pass--but I don't have cuDNN installed
This would happen if you failed to create a very large object. i.e. the object which you failed to create is not in the dump.
Our code runs with -XX:+HeapDumpOnOutOfMemoryError flag so we get an hprof file on OOM. Recently I got such a file from an installation, I opened it with Eclipse memory analyzer (MAT) and I can see the total size is 46MB, how can it be if the process was started with -Xmx1024m??? Should not the size be much much clos...
why would an hprof file have a much smaller size than the amount of memory given to the jvm
Usehost.docker.internalinstead of0.0.0.0. This will allow docker to decide which IP to use.
I'm having an hard time trying to figure out how to setup a remote debug of a python app (Flask) running in a Docker container. Specifically I'm using docker-compose, PyCharm professional and python 3.5. This is what I've done so far:I copied "pycharm-debug-py3k.egg" into the project folderI added the following lines i...
PyCharm remote debug in a docker container
Please switch to boto3 as there is better support and documentation. As in boto3 documentation, get_policy() doesn't give you policydocument. The best I can get is get_account_authorization_details() http://boto3.readthedocs.org/en/latest/reference/services/iam.html#IAM.Client.get_account_authorization_details I di...
I am trying to get the details of a aws IAM Policy via boto to be able to backup or replicate IAM policies via script. I have searched the docs of boto 2 and 3 but did not find any possibility to get the json data of a configured policy. What I (successfully) did: Created a policy via IAM Management console Assigned...
How to get IAM Policy Document via boto
3 This question is a bit old, but it I just ran into this same issue. You need to output the entire RecordSet, ie: "Outputs" : { "MyDNSRecord" : { "Description": "The DNS Record of ...", "Value" : { "Ref": "MyRecordSet" } } } Which (not intuitively) outputs ...
I am creating some DNS entries in my cloudformation. There is a param passed into the cfn script, which results in the creation of a Route53 entry like hostname-test.example.com: "Host" : { "Type" : "AWS::Route53::RecordSetGroup", "Properties" : { "HostedZoneName" : "example.com.", "RecordSets" : [ ...
How can I reference recordset names in the output section of my cloudformation script?
Seems no, never heard, never found anything like that.As perMutatingWebhookConfiguration docspropertynamespaceSelectorhas a typeLabelSelector [meta/v1]that supports.matchExpressions matchExpressions is a list of label selector requirements. The requirements are ANDed.and.matchLabels matchLabels is a map of {key,value} ...
Does anyone know if there is a way to define static selectors based on the namespace name instead of label selectors? The reason is that some of the namespaces are created by an operator and I don't have any control over the labels.Thanks Essey
mutating admission webhook static namespaceselector
Unfortunately, it seems that the library has been updated since the accepted answer was written and the solution no longer is the same. After some trial and error, this appears to be the more current method of handling the signing (usinghttps://pkg.go.dev/github.com/aws/aws-sdk-go-v2):import ( "context" "net/ht...
Hello StackOverflow AWS Gophers,I'm implementinga CLI with the excellentcobra/viper packages from spf13. We have an Athena database fronted by an API Gateway endpoint, which authenticates with IAM.That is, in order to interact with its endpoints by using Postman, I have to defineAWS Signatureas Authorization method, de...
API Gateway HTTP client request with IAM auth with Go
Generally speaking the "Sonar Way" quality profile is the starting point and should be treated as the baseline . Most teams are expected to learn and evolve and over a period of time should raise the BAR both in terms of security and quality requirements of code .So to answer your question , it is OK to start with the ...
Can I rely on this profile for also checking for well-known security issues (e.g., code injection, weak crypto, xss, etc., or should I rather use another default profile (or is there a 'recommended' profile that I can import?).
In SonarQube, how reliable is the 'Sonar way' quality profile for security reviews?
The solution for this was not to change to https, or setup a self hosted agent. There is a step available called Load an SSH key. I created a new ssh key on github, added the Load SSH Key step to the VSTS tasks. It runs before the Checkout task (despite appearing in the queue afterwards) and loads the required ssh ke...
I have a private bitbucket repo that is connected to the Azure DevOps Build Pipeline. The private repo has a submodule connected to a public Github repo. Both repositories are accessed via SSH. I have ticked the clone submodules box in DevOps. How do I provide an SSH key to Azure DevOps so it will clone the submodule...
Azure DevOps Build Submodule
Lets look at official manual for php docker image Section PHP Core Extensions For example, if you want to have a PHP-FPM image with iconv, mcrypt and gd extensions, you can inherit the base image that you like, and write your own Dockerfile like this: FROM php:7.0-fpm RUN apt-get update && apt-get install -y \ ...
I have a Docker Container with Phalcon3 and php 7. I am trying to install the php extension Mcrypt without luck. If I do ssh to the container, and execute: apt-get update apt-get install php7.0-mcrypt I get the following: E: Unable to locate package php7.0-mcrypt E: Couldn't find any package by regex 'php7.0-mcrypt...
How to install mcrypt on Docker
1 The simple thing you can do is to set an 'expired' date instead of 'obsoletFlag' and consider a backup maximum period less than the expiration period. Adapt your delete job to process only 'expired' items. You will have to store for a longer period but any not expired bac...
I'm currently building a backend application that will need to store and serve a lot of images and videos (> 1 Mio. each). The files will obviously get uploaded and sometimes deleted but not updated. I did some reading on the issue of whether to store the files in my database or in the file system and decided to use ...
Synchronize File Server and Database Backups?
If you're using the default ingress controller of GKE, then theyamllooks good to me. I will suggest you, to recheck the services (i.e. service1, service2) ofNodePorttype and make sure that they are working fine.In case you're using theNGINX Ingress Controllerof the version above or equal tonginx-0.20.0, you need to set...
I'm trying to create an Ingress resource that fans out to two services that are running healthily. This is my very simple config:apiVersion: extensions/v1beta1 kind: Ingress metadata: name: my-ingress namespace: default spec: rules: - http: paths: - path: /* backend: ...
Cannot reach resource through ingress on GKE
Use GrafanaOrganize fieldstransformation and drag/drop fields to achieve desired order. Example:If query consist of a lot of series (A,B,C,D), probably it is necessary to doMergetransformation beforeOrganize fields:
I have table like this:And I need to have "last" column (it isvaluefrom influxDb) in first column. It is InfluxDb version1.7.I have a lot of queries (A,B,C,D):So I can't useorganize fieldstransformation:But if I dojointransformation before (regardless of the field) my table looks like this:
How to change column order in Grafana InfluxDb Table
Don't forget to map port to host port: docker run --name some-mongo -p 27017:27017 -d mongo Then docker-machine ip gives me 192.168.99.100 Type in terminal mongo 192.168.99.100 prints MongoDB shell version: 3.2.4 connecting to: 192.168.99.100/test Server has startup warnings: 2016-08-22T07:35:20.214+0000 I CON...
I am running mongo docker image that I pulled from docker hub mongo image It works ok but when I start Robomongo I cannot connect to localhost. With following error message: Cannot connect to the MongoDB at localhost:27017. Error: Network is unreachable I appreciate any help, thanks. EDIT: I solved the issue by usin...
Cannot connect Robomongo using MongoDB docker image
This error "couldn't find the binary git" is related with not having installed git where the installation is made, Are you running these. commands inside a container? you might as well be installing openssh, is necessary too. for example in an alpine container apk add --no-cache git openssh yarn install If, just in c...
I have a really simple repo in GitHub (/Hooks/), currently containing just 1 file, a simple Hooks.ts typescript file. On my local machine, in my Workspace, I've created a project folder and I can yarn add normal repositories like yarn add fuse.js but I wanted to yarn add my private repo yarn add Hooks using this forma...
Trying to Yarn add a private Github repo and get 'couldn't find the binary git' error
3 Here's how I got PHP Storm to connect to a dockerized php-fpm / nginx application: Inject the remote host IP into the container. In your host, set the variable: XDEBUG_HOST=$(ipconfig getifaddr en0) I'm not too familiar with docker-compose. I'm using a Kubernetes manif...
I have a PHP server running through PHP-FPM which is served with fastcgi through nginx on port 7000. This application has been dockerized and is running as a running container, e.g. my_api. The my_api docker container can be connected to directly via port 7000 (for sanity checking) as well as through another container...
How can I use XDebug with a PHP upstream behind an nginx reverse proxy?
This may be a hard answer to accept, but it's what you should do: Don't worry about it. (in terms of %d/%lu, those specifiers simply expect different data types, and %d (int) has a much smaller and different range from %lu (unsigned long)) Don't worry about it. Don't do it, and especially don't rely on it. It may be...
Based on the following code, please advise NSString *str= [[NSString alloc] initWithString:@"Hello world"]; NSLog(@"Length: %lu\n", [str length]); // 11 NSLog(@"Retain count is %lu\n", [str retainCount]); //1152921504606846975 [str release]; NSLog(@"%lu\n", [str length]); // 11 ...
NSString length and retainCount. Clarification needed
You should go to check GitHub Developer APIhttps://developer.github.com/v3/repos/statistics/#get-contributors-list-with-additions-deletions-and-commit-counts
I have gone through github documentation and not able to find how to get Github Repository's committees and their commit counts. Does anybody have idea about the same ?
How to find Github Repository's committees and their commit counts
Doesnt seem to be I just generated new dashboards for each server using the api
I have about 100 servers which I am monitoring via telegraf. What I want to do is set up an alert so that if one of them gets high cpu usage (<90%). I will receive an email saying [server 5 has high cpu usage] I can do this for one server. Just having trouble setting up alerts accross a muliple series query. Is this ev...
Alert on multiseries from grafana and telegraf
After reading your comments, I agree that I should put more effort towards a more efficient solution.I've decided to use Microsoft Task Scheduler with a VBS script as follows:1)Create a vbs scriptthat loads a specific page and even save the result to a specific file, like this:sSrcUrl = "http://www.this-page-intentiona...
I am trying to achieve the following: I am using MySQL and ASP.NET. I am creating a counter in a table. I want that counter columns to be reset to zero every day. Is there any option to achieve this and how.I don't want to use admin tasks in Windows, and not to create .exe file. I prefer be able to do that in C#, in co...
Clear table in a specific time and only once (every day)
It is better to make it in different way. Your app should provide interface which will be accessible by the prometheus server.Tryprometheus-netlibrary. It will create/metricsendpoint which can be readable by prometheus server.In case if the prometheus team will refuse to connect to it, you can usetelegrafto read your e...
I have a WebAPI where different client applications post some data regarding backlogs and queues in various applications. Basically, every 5 seconds I receive objects containing:NameCountTimeStampProtocolSo for example:App1 Queue532023-11-14 17:43:03AMQPThis data is stored in a database and now I've gotten a request to...
Send custom metrics to remote Prometheus from WebAPI
You are right. you did not allocate or copy an object so you do not have to release it. Just use your code without the autorelease. ;-) The Class method you used looks like this: (Normally it does. We can't know it, because Apple doesn't share the code.) +(id)URLWithString:(NSString *)aString { return [[[self allo...
I am in an argument with a friend who says that I have to put autorelase here: NSURL *url = [[NSURL URLWithString:@"http://origin-www.metrolyrics.com/api/widgets/mac/seeker.php"] autorelease]; But isn't the object automatically autoreleased when it was send to me from NSURL class method? Thanks.
cocoa memory management question
An ARN for an Amazon S3 object is in the form:arn:aws:s3:::BUCKET-NAME/filename-including-pathFor example:arn:aws:s3:::acme-inc/staff_photos/bob.jpgThe generic format for an ARN is:arn:aws:SERVICE-NAME:REGION:ACCOUNT:RESOURCEGiven the name of an Amazon S3 bucket (which is globally unique), the system can determine the ...
How would I be able to getArnString from as3objectI could probably do this myself, but want to use if some methods already exists to do this.
Get ARN string from s3Object
The answer depends on whether you regard the number of processor's as a relevant parameter of your complexity analysis. If yes, then you have to introduce an extra parameter, sayp, for the number of processors.If your algorithm isscalable, this means that the time complexity scales inversely linearly with the number of...
If a GPU is really able to calculate code in parallel. This sorting algorithm must be correct.Create a 2D comparison matrixO(n)values = [ 3, 1, 2 ] # 3 1 2 comparisonMatrix = [ [ 0, 1, 1 ], # 3 [ 0, 0, 0 ], # 1 [ 0, 1, 0 ]] # 2 # Done on GPU comparisonM...
Linear sort on GPU. Does parallel processing change Big-O?
symfony server:ca:installcommand creates and install certificates in user home directory(~)under.symfony5/certsfolder you can replace generated certs with the existing ones here.Note:Before replacing you can backup existing certs for later usage Or you can just regenerate new certs with the same command.ShareFollowansw...
Withserver:ca:installon the Symfony console an SSL certificate can be generated and installed.Is it possible / How to install an existing one, created separately (instead of the auto-generated one)?Background: I need a certificate, that contains a specific IP as "alternative name".
How to install a custom certificate in Symfony server?
So I extended my workflow as follows. There are a few caveats:there is a nice Github Action 'SonarSource/sonarcloud-github-c-cpp@v1'. Is this sufficient to analyze Objective-C projects?Git checkout will remove unnecessary directories. Hence you must install SonarQube AFTER having checkout out your sourceThe build wrapp...
I am trying to setup SonarQube for a project hosted on Github. The settings offered in the SonarQube UI are good, despite the fact that the project uses the Objective-C programming language. The Github Action I am using isjobs: sonarcloud: name: SonarCloud runs-on: ubuntu-latest steps: - uses: actio...
SonarQube Github Action for Objective-C
So after some back and forth in the comments, I think we've come to a solution here.As it turns out, GIT does support the concept of checking out only subtrees of a given repository, through a process called 'sparse checkout' which you can find more information abouthere.The concept is to initialize a new, clean git re...
I am trying to effectively check out only a directory and its contents (a specific wordpress theme directory) inside alarger git repo hosted on Githubon a server. The server has existing WordPress directories in it, and I want to place the new theme directory from the repo into the proper directory on the server. I fir...
Git - checkout a single directory out of a repo - error: pathspec [directory path] did not match any file(s) known to git
Is it possible that you did a git rebase at some point in time? Git commits have two dates attached to them, GIT_COMMITTER_DATE and GIT_AUTHOR_DATE. They usually have the same value. But some commands like git rebase can change the commit date. To view both dates you can run git log --pretty=fuller. In GitHub's netwo...
I did few pushes into master branch on my github project. I've checked it now, it says they were made on 6th of October. Anyone knows why this is happening? And second, smaller question: git config --global user.name - setting this one, does it have any impact on contribution on github? Thanks!
Github contribuition graph incorrect dates
If npm readme html pages are generated (asin this question) withevilstreak/markdown-js, then you have sometable examples, likethis one:| First Header | Second Header | | ------------- | ------------- | | Content 1 | Content 2 | | Content 3 | Content 4 |There isissue 230discussing about the proper supoprt for table with...
I have an Node package up on Github (https://github.com/jrootham/argument-spec) and npm (https://www.npmjs.com/package/argument-spec). There is a specification table where the first cell contains the word 'undefined'. It shows up fine on Github but is blank on npm. Anybody have any idea what is going on. I searched...
Difference between Github and npm markdown
It seems that the correct way is to use$__intervalinstead of the time interval:sum(count_over_time({container="pippo", namespace="family"} |= `fancy logs` [$__interval]))ShareFolloweditedSep 28, 2023 at 7:43answeredSep 28, 2023 at 7:19HAL9000HAL90003,63133 gold badges2626 silver badges4949 bronze badgesAdd a comment|
I have these two queries, fetching Loki logs1: sum(count_over_time({container="pippo", namespace="family"} |= `fancy logs` [5m])) 2: sum(count_over_time({container="pippo", namespace="family"} |= `fancy logs` [1h]))I run them on a 7 days interval (previous 7 days).The first query returns 'No data', while the second r...
Grafana shows inconsistent behavior when changing time interval
You are extremely close. What I would add is, that you have a host specific.envfile, seeEnvironment variables in Compose, on each computer, in the same folder as thedocker-compose.yml, withDATA_PATH=/mnt/shared/dataor whatever value forDATA_PATHyou like. Just add that.envto your.gitignore, so that every host keeps his ...
I'm working on a project with multiple collaborators; to share code and compute environment, we've setup a github repository which includes aDockerfileanddocker-compose.ymlfile. I can work on code and my collaborators can just pull the repository, rundocker-compose upand have access to my jupyter notebooks in the same ...
How to specify site-specific volumes for docker-compose
These steps helped me to push to the original Open PRgit checkout upstream/master -b new_branch (I gave the same branch name I used for the PR) git pull origin branch_name (where I've created a PR).-- make the changes --git pull --rebase upstream master // rebase your branch to avoid merge conflicts git commit -a -m...
I've created a pull request in the upstream with a branch named eg.testbranchNow, Unfortunately, my wholegitfolder from local gets deleted.I've created a newgiton my local where I can see onlymasterwhen I dogit branchI see that I need to push some commits to the open PR. But as the local branch is deleted, How can I do...
git push in the open PR when local branch of it deleted
In Eclipse Neon (where there was a similar problem), what helped there was to go to:Eclipse -> Preferences -> General -> Startup and ShutdownAnd turn offRSE UI.
Whenever I pull or push using GitHub for Windows or PowerShell, Eclipse will start an infinite loop of refreshing projects. (I then have to use the task manager to quit Eclipse and stop the java process.)I have unchecked all auto refresh options in eclipse (searched for refresh in preferences) but that does not seem to...
GitHub for Windows push/pull, results in Eclipse infinite refresh loop
1 Looks like your docker-compose command is returning exit code 0 no matter what. How about using a Jasmine xunit reporter to generate a test report, copy the generated xml test report to outside the container (using docker cp), and then publish it using Jenkins' post-bui...
I'm setting automated protractor tests to run in a docker container with the help of jenkins. But not been able to make a the jenkins build result to reflect the testing outcome (if some test fail, build should fail also). Important to say that all tests should run, even if the first one fails. The tests are initiate...
How to bind Jenkins build output with tests result?
Fromhttp://www.docjar.com/html/api/sun/misc/VM.java.htmli see:163 // A user-settable upper limit on the maximum amount of allocatable direct 164 // buffer memory. This value may be changed during VM initialization if 165 // "java" is launched with "-XX:MaxDirectMemorySize=<size>". 166 // 16...
What is the default value for XX:MaxDirectMemorySize?
Default for XX:MaxDirectMemorySize
Your iptables command only redirects requests from 8080 to 80. But if you have default policy which is deny, this might not be enough.Here is the copy/paste from a working Tomcat server iptables script:# this allows incoming packets to port 80 /sbin/iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT # same as above ...
I have tomcat running on 8080 on a ubuntu lucid server. I am able to access it fro local machine. However I am unable to access the tomcat from any machine outside. Is it due to firewall restrictions. WHat do I need to do to enable accessing tomcat from remote machines. Tried adding this rule to iptables but it did not...
enabling tomcat web apps to be served from Ubuntu lucid
The callback URL values are a bit complicated and not intuitive without reading the documentation for Application Load Balancer use case.The short version is that you will need to add three values to your callback urls:https://{your-load-balancer-domain}/oauth2/idpresponsehttps://myapp.domain.se/oauth2/idpresponse<-- y...
I have a traditional web app (as in a hobby project I made 15 years ago) that I am moving to AWS. It is deployed in ECS with Fargate, behind an Application Loadbalancer. Now, I want to add authentication with FB and Google. I have managed to configure both FB and Google so that I get authenticated, but I am having trou...
AWS Application Loadbalancer and Cognito user pools, redirect_mismatch
The secret is, apparently, to use your GitHub username instead of e-mail.
I want to create an Azure Databricks repository that is linked with my Github repository.This is what I did:Create new GitHub repository with Readme.mdCreate authentication token and add it to DatabricksIn databricks, enable all-file sync for repositoriesClone the repository into Databricks > Repo > My UsernamePull (th...
Cannot push Databricks Repo to GitHub Repository
Be sure you know where your performance bottleneck is.If both instances are in the same Availability Zone, network latency should not be the largest performance issue. In fact if you have instances that are at leastlarge... due to the better NIC... network latency should be a non-issue.To know for sure, measure your n...
I'm actually new on AWS. And I configured 2 EC2 instances.One for my MongoDB database and an other one for my application.I'm using pymongo to make the connection. But If send data through instances each time, it takes too much time. I would like to know if it's possible to have the mongoDB instance as localhost for th...
AWS MongoDB EC2 instance as localhost with EC2 application instance
I just had this issue, and it seems the documentation is out-of-date. They changed the provider name, probably in 15.0.0.Try changing your cli script to:# ... /subsystem=keycloak-server/spi=userProfile/:add /subsystem=keycloak-server/spi=userProfile/provider=declarative-user-profile/:add(properties={},enabled=true) /s...
I've attempted to enable Read-only user attributes in Keycloak as per the docs:https://www.keycloak.org/docs/latest/server_admin/However the documented configuration does not actually prevent a user from changing their attributes.Using Keycloak 15.0.0 with the regular Docker image from docker hub Made a .cli file and a...
Problem enabling Keycloak read-only user attributes
You need to do it in two steps:Removepodlabel. It can be done with aggregation by/without. For your example I'd usemax by (project) (test_coverage{project="a"})Take last value of aggregation withlast_over_time. Notice that since argument is not a instant selector you need ti usesubquerysyntax.Resulting query would look...
I have a service to collect projects' test coverage data from their pull-requests, it was put into different pods internally by the collector. So the data will be like:example input data:test_coverage{project="a", pod="pod-a"} 80@1684921872 82@1684921882 test_coverage{project="a"...
How to query the last value across different pods
Not sure what you are doing wrong, but I'd suggest bypassing the problem altogether and assigning an EC2 Instance role to the vm in question and then you won't have to worry about it; it's a better/more secure solution. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html
I've looked at every answer on here and it seems my problem is a little different or there hasn't been a proper solution. I'm doing the following in my PHP file: use Aws\Route53\Route53Client; $client = Route53Client::factory(array( 'profile' => 'default', 'region' => 'us-east-1', 'version' => '2013-04-01...
Cannot read credentials from /.aws/credentials - PHP script call AWS-SDK
Reserved concurrency doesn't have to be provisioned. If you only setreserved_concurrent_executionson thelambda_functionresource, instead of creating aaws_lambda_provisioned_concurrency_configresource, then it will simply limit the amount of concurrency for the function. This will also guarantee that the other functions...
I don't find the AWS documentation very clear on this, but it seems like there is no way to limit the unreserved concurrency of an AWS Lambda function. Instead it requires a reserved concurrency, which has to be provisioned and therefor comes at an additional costs.Is that correct?And even when I try to add a concurren...
limit unreserved concurrency of a lambda function
Unfortunately, I'm afraid you cannot achieve it. In the limitation of the Azure NetApp file for AKS, it sayshere:Azure NetApp Files service must be created in the same virtual network as your AKS cluster.You know, the virtual network for the AKS should be in the same region with AKS, then it can be available. So you ...
I am using Azure NetApp Files and AKS. Let's say I have a NetApp account together with a NetApp pool on one region, and I want to mount a volume on a pod in a k8s cluster that is in another region. Would that be possible? So far I have been getting an error saying that the pod was unable to mount the volume and it time...
Can you mount a NetApp volume on a AKS Kubernetes Cluster from a different region?
In my case my Lambda and S3 were not in the same region. I found out by, instead of adding the trigger on the Lambda, adding the event from s3.
Unable to create a recurring schedule for lambda.What I did:1) Created the function and successfully tested it.2) Went to event source section in the AWS mgmt console.3) clicked on add event source.4) with default settings of rate(5 minutes) clicked on submit.Got the error:There was an error creating the event source m...
AWS lambda unable to create a scheduled event source
You can instead use an img tag and size your gif accordingly e.g <img src=<MY_GIF> height="275">
I want to make a gif smaller in the readme section. is there a way like "https://user-images.......gif => 250x350"
how can I make a gif in ReadMe.md more smaller
You can test this for yourself. It's quite fun. You spin up a pod running Ubuntu for example and thenkubectl exec -it podname /bin/shinto the pod and from there you can runnslookup mgmt-1(if they're in the same namespace).What you will find is that the service resolves to a single IP. This IP is unique to the service. ...
I'm exploring the nginx container as a load balancer. I'm using a Kubernetes Service in the upstream module.Here is a snippet of my nginx.conf...upstream backend { hash $remote_addr consistent; server mgmt-1; # <-- these entries are Kubernetes Services server mgmt-2; server mgmt-3; }Right now eac...
How does the nginx resolver behave when pointed at a Kubernetes Service?
Yes, we recommend that you check in the .devcontainer folder (or .devcontainer.json file) as they define the environment and tools used to develop your project. Checking in a dev container definition to your repo makes it easier for new contributors to get started with your project and can ensure that all developers ...
I created a new Dev Container in VS Code, and VS Code added .devcontainer folder to my workspace. Should I check this file in to git?
Should I check in the VS Code dev container files? For example, the .devcontainer folder or .devcontainer.json file?
This option is used to fail stage if any pipeline expression like${}inside it failed to be processed even if stage itself was successful.For example forEvaluate Variablesstage this option is enabled by default.
I am working on Spinnaker Pipeline. I noticed there is an option calledFail stage on failed expressionswhen editing the stag through the Web UI. I didn't find any explanation about it in the docs, could somebody give an example about it?
Fail stage on failed expressions in Spinnaker pipeline stag
try using git log by range git log master..feature for example git log origin/master..[forked branch goes here]
Lets say there is project on github and a fork of it which has lagged behind for 3 years. The commits shown on the fork page include commits from upstream and comparing the changes does not help as it shows also commits merged from upstream. Is there a way from github interface or using git commands to inspect only th...
How to find out changes done by a fork (not coming from upstream repo)
For a given repository, you can list its languages throughGitHub API v3GET /repos/:owner/:repo/languagesThat helps on the HTML content generation side.But that still require an up-to-date CSS file, preferably one withallsupported languages, likethis one for instance.TheOP PRRaddsin the comments:I just ended up grabbing...
I am currently building a portfolio website for myself, and I have a section for all my GitHub projects, with public repos fetched automatically from the GitHub API.What I am interested in doing, is displaying a coloured blob next to each repository, depending on the language used in it. If for examplerepo.language = '...
Github language colour based on repo language in a React App
As one other person has suggested, vim is obviously the default editor on your new server. You can test this by running EDITOR=pico crontab -e Substituting whatever is your actual preferred editor (sounds like it may be nano or pico). If that works, you should try one of the following: edit your login script to se...
I have had several Debian servers and always edited cronjobs in this way: crontab -e and Ctrl+x Just got a new server and can not do it in this way anymore. When I enter crontab -e, the file opens but I can't write anything. I can move cursor up and down but can't write. I even can not exit from this file because Ctr+...
Can not edit cronjobs file in Debian with crontab -e
You can create a new ConfigMap from the old ConfigMap and modify it to have desired configuration for eviction threshold and then edit the node’s reference to point to the new ConfigMap with the following command:kubectl edit node ${NODE_NAME}In your text editor, add the following YAML under spec:configSource: conf...
I am currently trying to find a way to reconfigure the evicition thresholds of all of my clusters kubelets. The cluster has been initialized withkubeadm initand the worker nodes have been added withkubeadmin join.Now kubeadm has correctly written the kubelet configuration to thekubelet-config-1.16configmap in thekube-s...
How can I reconfigure my cluster's kubelets with kubeadm
15 You can't use git commit --amend because it's not your most recent commit. You would want to do a rebase, something similar to git rebase -i HEAD~3 Where 3 would be how many commits back you'd like to go. This is doing an interactive rebase. On the screen or text window...
I need to change an old commit message. Considering that I've made a few other commits afterwards, is there a way to change it, via git or directly on GitHub, without interfering with the other commits?
How to change an old commit message?
You cangit initdirectly in your usb key, in order to have your git repo there, and clone that git repo on your laptop and on your company machine.You can then:simply copy your plroject in that local clone, add and commit, and then push back to 'origin' (which is your usb key), making your project always saved on that k...
I took a read of a few similar questions but I have only used git for a few days and my project is moving swiftly so I need to implement the Git ASAP. Closest I saw wasThis PostingI work on my code at work (On breaks OF COURSE!) which is a trailer in the middle of nowhere without internet (I'm gone 4 days a week) I the...
Git On A Keystick & GitHub
If OCI8 is available in command line, but not via a web request then it means you haven't configured the Oracle environment variables and/or LD_LIBRARY_PATH for your webserver to find the Oracle libraries and files. How you set these depends on the webserver (and version of the webserver), and how you installed the Or...
We recently moved our site to a new server using Laravel Forge. Everything went well except we keep getting "Use of undefined constant OCI_CRED_EXT" errors because the oci8 extension doesn't seem to be running correctly. Running "php -m | grep 'oci8'" works and echos out oci8, so the extension seems to be running, bu...
Oracle OCI8 Extension not loading in php 7.4
The first time you generate your site it will take about 10 minutes for it to show up. Subsequent builds take only seconds from the time you push the changes to your GitHub repository.However, depending onhow your have your domain configured, there may be extra time for the CDN cache to break.Note: using a subdomain, s...
I am just wondering how long does it take for GitHub page to show the new items that I have added to the repository.I changedindex.htmlbut after 10 minutes it still showed up the previous page...
How long does it take for GitHub page to show changes after changing index.html
After digging for a while I came to the conclusion, that usingshasum256 <FILE(S)> deployment-files.sha256in combination with a signature using which signs thedeployment-files.sha256via openssl is my best option.ShareFollowansweredAug 17, 2018 at 20:53Bouncing BitBouncing Bit35822 silver badges1414 bronze badges1Could y...
I'm currently faced with the task of signing our internally created docker images stored in an Artifactory docker repository on premise. We have a target environment which (currently) has no access to the internet nor to our internal docker registry.I've learned so far, that by enabling docker content trust with ex...
Docker Content Trust "offline" possible/reasonable?
Assuming that users in users = [[MySingleton sharedClass] getUsers] is an instance variable, you're forgetting to take ownership of the array. When you want to claim ownership of an object (such as this array), you need to send it retain to tell it you want it to stick around. And when you're finished with it, you nee...
I have an instance variable called users defined as NSMutableArray. I use that variable for fill an UITableView. In viewDidLoad I initialize it with: users = [[MySingleton sharedClass] getUsers]; This is the getUsers method: - (NSMutableArray *)getUsers { ... NSMutableArray *listArray = [[NSMutableArray a...
Question about autorelease object in Objective-C
The transactional backup interval likely refers to how often transaction logs for your TFS databases are backed up. The schedule you choose will probably depend on how busy your repository is. At my current client there are six developers, and we share some of the load for source control between VSS and TFS (we're tr...
I'm in the process of setting up a backup plan for a Team Foundation Server. I downloaded Power Tools for TFS and I'm using the Backup Plan Wizard that was included in that pack. I am now at the step where I'm supposed to decide how to schedule the backups and I have no idea what to choose for my setup. I get what eve...
What does Transactional Backup Interval mean in the Backup Plan Wizard for Team Foundation Server?
The second location block is wrong. You probably need everything to be directed to index.html (other than resource files). You might try something like this: map $http_accept_language $lang { default en; ~*^fr fr; } server { listen 80; server_name domain.com www.domain.com; root /usr/share/nginx/h...
i'm having trouble for my config here is how i want to work mydomain.com -> redirect to correct language : mydomain.com/en/ or mydomain.com/fr/ I have two angular build with i18n, one for each language. the redirection with language works, but direct links with angular 2 not : if i go to mydomain.com/fr/connect -> 40...
nginx with angular 4
If you have a specific cluster to run DBs and other private stateful workloads, then ensure that your worker nodes for that EKS cluster are private.Next step would be to create service resource to expose your Redis DB with an internal endpoint. You can achieve it by specifying following:annotations: service.beta.ku...
I have two kubernetes clusters running insideAWS EKS. How can I connect them both so that both can communicate and share data ?On one cluster only stateless applications are running while on another stateful likeRedis DB,RabbitMQetc.Which will be the easiest way to setup communication ?
Cross cluster communication in Kubernetes
I assume you followedthis, that's pretty much the way to do it.Make sure that you update theistio-sidecar-injectorConfigMapon your namespace and restart your pods.
How do you allow all outbound traffic with Istio?I tried the following:Disable the egress gateway and bypass the sidecar with --set global.proxy.includeIPRanges="0.0.0.0/0\,0.0.0.0/0"None of the options work, worth to mention I'm using kubernetes 1.11.2
Istio to allow all egress traffic
Try thisangular/ angular-ui-router/It must be work fine.
I have the following directory structure on a windows machine:.gitignore WebUserApp/ lib/ angular/ angular-ui-router/ typings/.gitignore and WebUserApp are at the same level and under the WebUserApp is a lib direcotry. The lib directory contains three folders and I want to ignore the sending of the...
Why am I unable to specify a relative path in a .gitignore?
Other containers may be requesting CPU from your cluster (including thekube-systemones).You are requesting 1 CPU for eachtestcontainer replica, but keep in mind that each container must be scheduled in one of the nodes (being that every single node only has 2 CPU available). That means: If a node has a singlekube-syste...
I am trying to understand Deployment scaling with Load Balancer. I created Kubernetes cluster on Google Cloud with 6 nodes: 2 cores and 13Gb RAM each (n1-highmem-2) and launch 5 Pods and 1 Load Balancer service. Each Pod has a limit specified to 5.1Gb and 1cpu. When I tried to scale my deployment to 10 Pods I got an er...
Unreasonable not enough CPU for deployment scaling
Unfortunately support for blocking ip addresses is not supported natively by traefik and any requests weredeclinedwith a comment:We want to keep the IP filtering section as simple as possible and we think that your use case could be addressed differently.We think that a blacklisting task can be better achieved using a ...
Whitelisting ips is possible with this annotation:ingress.kubernetes.io/whitelist-source-range: "1.1.1.1/24"Is it possible to dothe same with blacklisting?would be nice to block some suspicous requests.
Traefik Ingress: Is blacklisting possible?
I don't see any const references around here, therefore the answer is "no different in object lifetime between references and pointers". const references bound to temporary expressions have a special rule extending the lifetime of the temporary object, but that doesn't apply to your code. Your confusion probably stems...
Consider the following simple code. struct test { test(int n):numelements(n){ arr = new int[numelements] } int numelements; int* arr; ~test() { delete[] arr; } } void foo_ref(test& x,n) { // set first n elements of the array x.arr to random ...
Scope of an object when passed by references versus passed by pointers
In order to call a file from your published Github Pages repo, the URL should be in this format:https://<user>.github.io/<repository>/assets/README.mdSo if your username is "gene", your file should be available on the URL:https://gene.github.io/gene.github.io/minesweeper.html
I'm creating a personal website for myself so I have my directory uploaded to github. The website is linked to githubusername.github.io and it works fine for me when I open it up but when I click on a post on that website, I get a "404 File not found" error from github.The post has a link tag to minesweeper.html locate...
Github: page not found for post but opens for index.html
Here is my setting: etc/systemd/system/docker.service.d more http-proxy.conf [Service] Environment="HTTP_PROXY=http://user:[email protected]:8080/" "HTTPS_PROXY=http://user:[email protected]:8080/" "NO_PROXY=localhost,127.0.0.1,.mycompany.com" Note that HTTP_PROXY like HTTPS_PROXY both are using an http URL for the...
I am getting following error for docker pull openjdk Using default tag: latest Pulling repository docker.io/library/openjdk Error while pulling image: Get https://index.docker.io/v1/repositories/library/openjdk/images: EOF I have set HTTP_PROXY and HTTPS_PROXY in /etc/systemd/system/docker.service.d/http-proxy.con...
EOF error while pulling images from docker
1 If you want to scrape only postgresdb metrics ,you can just use docker commands instead of docker-compose sudo docker run --name postgres-exporter -e DATA_SOURCE_NAME="postgresql://<postgresdb_user_name>:<postgres_db_password>@<postgres_vm_ip>:<postgresdb_port>/?sslmode=...
I have a server on Debian 8 where docker is installed. The approach is needed in containers. The container is installed postgres 9.6. I want to set up data collection of the pg_stat_statements table in prometheus via postgres_exporter from PostgreSQL, and then look at the graph via grafana. Deployment grafana and Prom...
How to deploy postgres_exporter on the Docker and connect to prometheus
When you use COPY Prepare_Dataset/ . this will copy the content of the directory, not the directory itself so CMD path become invalid /Prepare_Dataset/server_engine/server.py. You need to use COPY Prepare_Dataset/ ./Prepare_Dataset/ so when you copy you can verify Step 5/7 : COPY Prepare_Dataset/ ./Prepare_Dataset/...
I am learning Docker concept and trying to make a Docker image of my project. I have installed Docker Desktop for Windows and build the image successfully by using below command: docker build -t ${IMAGE_NAME} . But when I run following command docker run ${IMAGE_NAME}:${TAG} I am getting following file not found erro...
No such file or directory error while running Docker image
I had a problem where once upon a time I set the git index to 'assume unchanged' on my file.You can tell git to stop ignoring changes to the file with:git update-index --no-assume-unchanged path/to/fileIf that doesn't help aresetmay be enough for other weird cases.In practice I found removing the cached file and resett...
I am trying to push my files to github using bash. They are already on there, and I am uploading a newer version with new lines and code, etc. But when I trygit addand thengit statusit says:On branch masternothing to commit, working directory cleanAnd the file I am using was just modified.
Why doesn't git recognize that my file has been changed, therefore git add not working
I came to understand from this post from a friend of mine that we should not be running multiple docker containers in the same host to generate more load.http://www.testautomationguru.com/jmeter-distributed-load-testing-using-docker/Instead the usage of docker here is to quickly setup the jmeter environment.ShareFollow...
I saw some blog posts where people talk about JMeter and Docker. I understand that Docker will be helpful for setting up a container with all the dependencies. But they all run/create the containers in the same host. So ideally all the containers will share the host resources. It is like you run multiple instances of j...
Jmeter and Docker
Make all three of your nodes managers and use some sort of load balanced DNS to point to all three of your manager nodes. If one of the managers goes down, your DNS will route to one of the other two managers (seamlessly or slightly less seamlessly depending on how sophisticated your DNS routing/health-check/failover s...
I have a 3 node swarm. Each of which has a static ip address. I have a leader node-0 on ip192.168.2.100, a backup manager node-1 on192.1682.101, and a worker node-2 on192.168.2.102. node-0 is the leader that initialized the swarm, so the--advertise-addris192.168.2.100. I can deploy services that can land on any node, a...
Docker Swarm --advertise-addr changing
You have to first switch to thesourcebranch withgit checkout sourceThis branch will exist, as Octopress creates it for you. Then you can continue withgit add . git commit -m "I made a post." -a git pushYour generated files should indeed be in themasterbranch, due to the way that Github pages is set up. Thesourcebranch ...
I'm new to both Github and Ocotopress. I've made a blog, and i have been following a tutorial from:http://schuyler.info/blog/how-to-setup-a-new-octopress-blog-on-github-pages.htmlI've usedrake generateand thenrake deploy- which works a treat. I can see in my repo the files from _deploy. However, it says this is the mas...
Ocotopress with github repo branch
I made some changes and now it's working quite alright for me so thought I share it here to everyone else: Go to Run->Edit Configurations->Android Application->Application->Miscellaneous Uncheck "Skip installtion if APK has not changed" and restart your Android Studio. Now it should build your APK all the time you bui...
I'm working on an app for myself to do the simple act of connecting to bluetooth devices! when I try to build the app to my Nexus 5 phone from Android Studio, it seems to not build the most recent changes I made. It somehow looks like it cached the first build. It fixes the issue when I go to File>Invalidate Cache. Bu...
Android build does not update the apk. Is there a way to prevent caching programatically?
Yes, if it's a new project then create a new repo.If it's a continuation of the same project. You should use the same repo. Make use of tags and branches smartly. Follow thesemantics versioningscheme. Most projects are redisigned partially or completely over time.If you are starting from scratch. I mean really from scr...
Closed. This question isopinion-based. It is not currently accepting answers.Want to improve this question?Update the question so it can be answered with facts and citations byediting this post.Closed6 years ago.Improve this questionOccasionally I'll have a git repo setup for a website and a few years later I do a rede...
Should I create a new git repo every time I start a project redesign? [closed]
You can continue to use engine labels as you have before. Or with the new swarm you can defined node labels on the swarm nodes. Then, with the new docker swarm, you would define a constraint on your service and create 3 separate services, each constrained to run in one of your failure domains.For node labels, you'd use...
I am new to docker swarm mode (and I specifically am talking about swarm mode in docker v1.12, and I do not mean the older non integrated 'docker swarm').I am attempting to evaluate its suitability to build a large distributed containerised platform for a new software project (I'm comparing to similar technologies such...
Deploying Docker Swarm mode services across multiple failure domains
int (*p)[3]; You're true that this is a pointer to an array of three ints, but this pointer could also point to the beginning of an array of arrays of three ints. p = (int(*)[3]) calloc(5*3,sizeof(int)); Here, you allocate 5 * 3 ints to this pointer. As int[3] has 3 ints, you just allocated 5 such int[3] arrays. You...
Watching some code found on internet I came across this piece of code: int (*p)[3]; p = (int(*)[3]) calloc(5*3,sizeof(int)); is it just a way to alloc a matrix? I understand that int (*p)[3] creates a pointer to an array of 3 int, but I'm not sure about the calloc call: I know that calloc allocate and initialize a n...
Matrix allocation in one line
Add a remote to your Git Lab repo. git remote add gitlab https://gitlab.com/user/repo.git git fetch gitlab Add a remote to Git Hub git remote add github https://github.com/user/repo.git git fetch github Checkout a new temp branch to merge based on myServer git checkout -b temp gitlab/myServer Merge Sarah and resolv...
I've been googling for hours, trying to find the way. I got a repo on gitlab, wish to merge one from github into a branch of mine at my gitlab repo. A way of comitting a merge, or likewise example: Merge branch 'Sarah' of https://github.com/repo/server into myServer where myserver is my branch, sarah is the links br...
git - Merge branch from remoteRepo to local branch