Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
You need to set up a separate query on a Grafana graph per each neededpercentile. For example, if you needp50,p75,p90andp100latencies over the last 5 minutes, then the following four separate queries should be set up in Grafana:histogram_quantile(0.50, sum(rate(nginx_request_time_bucket[5m])) by (le))histogram_quantile...
I need to plot latency graph on prometheus by the histogram time-series, but I've been unsuccessful to display a histogram in grafana.What I expect is to be able to show: Y-axis is latency, x-axis is timeseries.Each line representing the p50,p75,p90,p100 - aggregated for a given time window. A sample metric would be th...
Prometheus latency graph in histogram and calculate percentile
Thanks to the guys over at the #httpd channel on IRC. I've finally found the htaccess block of code to prevent people from hotlinking to my fonts.SetEnvIfNoCase Referer "^https?://([^/]*)?example\.com/" local_ref=1 SetEnvIf Referer ^$ local_ref=1 <FilesMatch "\.(eot|svg|ttf|woff)$"> Order Allow,Deny Allow from env...
Im not sure if this is a duplicate, if it is, please accept my apologies in advance. How can I prevent others from leaching/downloading my@font-facefonts(eot, svg, ttf, woff)using.htaccessand only allowing my domain to use them?
Prevent others from leaching/downloading fonts using htaccess?
Regarding stems: Stems are specified as a collection of term and stem pairs. When you configure stemming options, the existing stemming dictionary is replaced with the mappings you specify. By default, Amazon CloudSearch does not define any stems. However, some basic algorithmic stemming is always performed, ...
In the CloudSearch admin console, I see that you can add your own stems and synonyms. Does this override an internal default list of stems and synonyms or is there no such default list and you are required to add stems and synonyms before CloudSearch uses these features?
Does AWS CloudSearch have default stems and synonyms?
Of course it is faster as you use local memory to store the data. For limited cache size this is good, but can quickly eat up all your process memory.I would advise to use modules as there is a considerable amount of collaborative brainpower invested in them. Alternatively you can use a dedicated instance to run someth...
I am trying to find the best caching solution for a node app. There a few modules which can manage this. Most popular being:https://www.npmjs.com/package/node-cacheBut I found that responses are faster if I just save some results into a variable like:var cache = ["Kosonsoy","Pandean","Ḩadīdah","Chirilagua","Chattanooga...
Best way to cache in Node.js
By default crontab executes usingshshell. You can change it tobashusing the information from the link below:https://unix.stackexchange.com/questions/94456/how-to-change-cron-shell-sh-to-bashAlso read this Stack Overflow question aboutthe difference between[and[[in BashWhile[is POSIX,[[is only supported by some shells i...
I have .sh script in UbuntuServer (VM):response=$(curl -H 'Accept: application/vnd.twitchtv.v5+json' -H 'Authorization: OAuth 9f65dd6onr07vhpdqblbiix5rl0tch' -X GET 'https://api.twitch.tv/kraken/streams/127060528' | jq -r '.stream'); now=$(date +"%Y-%m-%d %T"); echo "$now" >> log.txt; echo "$response" >> log.txt; if [[...
Why does the script launched through Crontab behave differently?
There seems to be something wrong with the certificates. You could try to fetch the packages from hhtp instead using something like:sudo gem sources -r https://rubygems.org sudo gem sources -a http://rubygems.orgRefthisShareFolloweditedMay 23, 2017 at 12:20CommunityBot111 silver badgeansweredJan 1, 2015 at 21:39David K...
When I try to start a new project - my command I'm using is:rails new testprojectBut when it tries to install the bundle I end up with the error message:Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed <https://rubygems.org/gems/rake-10.4.2....
Update bash error for ruby on rails
Make sure you create that view in your view controller's -loadView or -viewDidLoad, not in its initializer. When the controller's view goes offscreen it usually gets released, which in turn releases its subviews; thus, you should not expect your reference to imageView to remain valid. If you for some reason need the i...
I am going over my code and trying to get a handle on proper memory management. This code: imageView = [[[UIImageView alloc] initWithImage:myImage] autorelease]; Causes my application to crash. I am using multiple view controllers within a nav bar controller. The app works fine: I can select a person from the first v...
iPhone - Memory Management problems
Hello sorry for saying that caching is not the problem. Caching is the problem! I fixed this by putting this code in the index.php file of the codeigniter.header("Expires: Thu, 19 Nov 1981 08:52:00 GMT"); header("Cache-Control: no-store, no-cache, must-revalidate");ShareFollowansweredJul 31, 2012 at 18:03Kevin LeeKevin...
After I logout from my app, when I press the back button, all of the login options for the user is still showed on the page.After I login, when I press the back button it will show the logout version of the page.I tried setting this in my logout controllerfunction logout() { $this->output->set_header('cache-Control...
PHP Codeigniter is showing the cache when i press the back button after I logout
In general, network routers need Port Forwardng enabled for the listening port, and firewalls need the listening port opened. If you are using a uPNP-enabled firewall/router, then you can dynamically set up those settings programmmably via the uPNP API. But more times than not, uPNP is either disabled or unavailable,...
I have a local server written in C++ listening to inbound TCP connects using plain socket ::accept() and UDP recvfrom(). I have two problems with this that I wish to solve:Can I programatically make Windows let me open the accept socket without it automatically being blocked by the Windows (software) firewall?Are there...
Creating a local server visible through firewalls
When you are not on HTTPS, then this causes anexternalredirect, because the protocols don’t match – and since your browser is explicitly told by the server to make a new request forhttps://server.com/login.php, this is what you see in the address bar.You should do this in two steps: If/signinis requested and you’re not...
I am using this line of code to redirect a specific url to the ssl version and at the same time to show a short SEO friendly name:RewriteRule ^signin$ https://server.com/login.php [L]This works when the https is on, but when the user is on http the redirect occurs without the rewrite, and the address bar shows the full...
Redirect particular URL to an SSL version with SEO name
This should work:Header add Access-Control-Allow-Origin "*" Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type" Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"
I can't figure out why my.htaccessheader settings doesn't work.My.htaccessfile content:Header set Access-Control-Allow-Origin * Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT" Header always set Access-Control-Allow-Headers "*" RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f Rewrite...
Header set Access-Control-Allow-Origin in .htaccess doesn't work
After a bit more research, it seems that the best way to accomplish this would be using a continuous integration tool such as Travis. There are several possible approaches to this, including:https://harshjv.com/blog/setup-latex-pdf-build-using-travis-ci/https://github.com/PHPirates/travis-ci-latex-pdfhttps://gist.githu...
I'm usinghugo(academictheme) to build a website from sources ongithub, built and hosted onnetlify.In this site I have one particular page which is rendered from amarkdownfile (.md) and which I would also like to have available as.pdf. Currently I have to manually generate and push the.pdfevery time an edit is made to t...
Automatically build PDF from markdown using hugo on github/netlify
From my knowledge, this is not possible with Docker. The alternative solution is to use a Dockerfile "template", and then parse it using the template library of your choice. (Or even using sed command)
I have to execute the same script to two docker images. My Dockerfile are: FROM centos:6 ... and FROM centos:7 ... Is it possibile to have a single file and pass a parameter, something like: FROM centos:MYPARAMS and during the build somethings like that: docker build --no-cache MYPARAMS=6 . Thank you
Docker Conditional build image
This works<cron-expression>0 0 6 1,16 1/1 ? *</cron-expression>
The following cron expression :<cron-expression>0 0 6 1 1/1 ? *</cron-expression>will run 06:00 AM on the 1-st day every month. But how to set this cron expression to run on the 1st day, and on the 16th day of every month?
Cron expression two times per month
I did not update my security groups correctly so web traffic wasn't allowed.ShareFollowansweredDec 14, 2018 at 6:07Ten Digit GridTen Digit Grid1,80855 gold badges2828 silver badges4848 bronze badgesAdd a comment|
I created an AMI of my server on AWS, and spun up a new instance.When I point my elastic IP address to my new instance and type in my domain name I get a timeout error when going to my website.I have done backups before and just re-pointed my elastic IP but this time it does not seem to be working, any ideas?Steps I ta...
AWS Elastic IP pointed to new instance does not work
Imagine you ordered a meal. The meal came in disposable boxes. You took out out the food, ate it. Now the boxes are useless to you.What do you do with them..? Discard them. Same goes with Java GC. When any object is not referenced through any object, or is unapproachable, it gets next time gc is fired. One good way to ...
What does the JVM when a non-void method is invoked without a recipient object for the returned value? It just destroy the returned object in the moment that doesn't find a recipient? or it leaves the returned object to be managed with the trash collector? Or something else?. For example:public class PrincipalClass { ...
Non void Method invoking without assigning return value in Java
Grafana has a transformation called "Labels to fields" which does the following:Group series by time and return labels or tags as fields. Useful for showing time series with labels in a table where each label key becomes a separate column.This transformation solves the issue I had.
I have a histogram metric in Prometheus, and I use that metric on Grafana to display the histogram. I think my question is best explained with an example. If I have a label A and insert the value 10 using the label A. On Grafana, I would see this data point inserted and in the legend I would see the label A with some c...
How to use the same colors for duplicate labels when inserting into histogram
I assume that your are usingofficial Grafana Docker images.By default docker run as root userYou are not right. Official Grafana Docker images usegrafanauser - you are running more secure rootless Grafana container:https://github.com/grafana/grafana/blob/ee405ef0693def6e8c227bbe5b99e062fc072212/Dockerfile#L84So when yo...
Why grafana not able to create directories at /var/lib/grafana when mounted to a path on the linux machine while running in docker container? By default docker run as root user, so grafana should be able to create any directory as root user
Why grafana not able to create directories at /var/lib/grafana
You can create storage classes like any other Kubernetes resource. For thest1storage class, the following should work:kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: st1 provisioner: kubernetes.io/aws-ebs parameters: type: st1You can find more information on storage classesin the documentation, and...
I deployed a cluster with kops, and then I listed the storage class:kubectl get storageclass --all-namespaces NAME PROVISIONER AGE default kubernetes.io/aws-ebs 2h gp2 (default) kubernetes.io/aws-ebs 2hI want to make a PVC of typest1, how shall I do that?
how to create st1 storageclass within a cluster deployed by kops?
The only way I can find to show how much disk space is being used by docker container logs on macOS is by usingnsenter.For a single container:docker inspect --format='{{.LogPath}}' CONTAINER_NAME_HERE | xargs docker run --rm --privileged --pid=host justincormack/nsenter1 /bin/ls -lhOr for all containers, while the curr...
Docker's default logging driver is theJSON File logging driver, which by default has nomax-size. This means that it stores logs as files on disk, with no rotation and no limit to how much disk space they will use.On Linux the logs are stored on the filesystem of the host machine, and can be inspected viadocker inspect ...
How can I inspect the disk usage of docker container logs on macOS?
Let me describe how I was managed to resolve the issue:In the YAML settings, as you can seenginx.ingress.kubernetes.io/rewrite-target: /$1So, for root path directories and applications - it should be:nginx.ingress.kubernetes.io/rewrite-target: /For example.com/example/It should be:nginx.ingress.kubernetes.io/rewrite-ta...
Let me describe the situation what I faced today:I received NodeJS application image from Developers and published it to AKS(Azure Kubernetes Services)There is nothing specific in manifest of this application, this is simple deployment with service on 80 port.I have configured Ingress using helm package and installed c...
Kubernetes Ingress: NodeJS application shows blank page
You can't do it the way you are imagining in the general case with thrust. Thrust does not execute algorithms in a mixed backend. You must either use the device backend, in which case all data needs to be on the device (or accessible from device code, see below), or else the host backend in which case all data needs ...
I have to contiguous ranges (pointer + size), one in the GPU and one in the CPU and I want to compare if they are equal.What the canonical way to compare these ranges for equality?my_cpu_type cpu; // cpu.data() returns double* my_gpu_type gpu; // gpu.data() returns thrust::cuda::pointer<double> thrust::equal(cpu.dat...
What is the canonical way to compare memory ranges in the CPU and in the GPU
I don't know how I can fix that with a good approach, but for now I suppressed this warning by adding the variable to AzureDevopsBROWSERSLIST_IGNORE_OLD_DATA=true.variables: ... - name: 'BROWSERSLIST_IGNORE_OLD_DATA' value: true ...
This error started appearing in the build task "Run Code Analysis" for a web project build. I have performed the commandnpx browserslist@latest --update-db, but it did not resolve the issue.The "Run Code Analysis" appears to complete. Any suggestions on how I can get rid of the message concerning "caniuse-lite is outda...
TFS task "Run Code Analysis" displays ERROR: Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db
Basically, labels are key/value pairs that we can give to k8s objects. By using labels we can identify attributes of objects and also can select those objects by the selector. For example:apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment labels: app: nginxOn the other hand, you there are bas...
Hello I've been learning about Kubernetes but in a YAML file I found k8s-app as a label but when looking for an answer I really didn't find an accurate answer. Please if someone has what does k8s-app stands for in YAML file help.
what k8s-app label represent ? and how to use it?
My problem was a wrong configuration of IAM; these video may help to other users... https://www.youtube.com/watch?v=JuffWMBeJkw
I installed django-storages with pip (pip install django-storages) got settings with AWS preferences: DEFAULT_FILE_STORAGE = 'storages.backends.s3.S3Storage' AWS_STORAGE_BUCKET_NAME = 'bar.media' AWS_ACCESS_KEY_ID = 'MyAwesomeKeyId' AWS_SECRET_ACCESS_KEY = 'BlahBlahBlah' i got my model like this: def Bar(Model): i...
Using Amazon S3 on django to upload Images with ImageField
I think you want to create a Pull Request. Push your fixes to a branch of your fork on GitHub Visit the GitHub page of the original project Click on Pull Requests, it's somewhere in the top-right Click on New pull request Click on compare across forks Select your own fork + branch Review the differences. Make sure it...
I have cloned someone's open source code hosted on github and made some changes to fix things on various platforms. I'd like to feed this back into the system. How do I contribute this into github so that others get the benefits?
How to patch code in someone else's project hosted on github
Take a look at what you are doing: #include <iostream> int main(){ int m = 36840; int n = 833841; unsigned long total = 0; total += (sizeof(int) * (m+1)); for(int i = 0; i < m+1; ++i){ total += (sizeof(int) * (n+1)); } std::cout << total << '\n'; } You're simply consuming too much memory. If...
I am trapped in a wired situation; my c++ code keeps consuming more memory (reaching around 70G), until the whole process got killed. I am invoking a C++ code from Python, which implements the Longest common subsequence length algorithm. The C++ code is shown below: #define MAX(a,b) (((a)>(b))?(a):(b)) #include <std...
Memory occupation increase
The latency metric on ELB is comparable to theTargetResponseTimemetric on ALB.ELB Latency definition:(source)The total time elapsed, in seconds, from the time the load balancer sent the request to a registered instance until the instance started to send the response headers.ALB TargetResponseTime definition:(source...
Is there any way to get latency from AWS/ApplicationELB namespace? I know it is available in the AWS/ELB namespace, but I need it for AWS/ApplicationELB, as this is what I use.
How to get latency metric from AWS CloudWatch Application ELB?
You might want to push what you have added/committed locally.So if you have changes in progress, as reported bygit status, make sure to add/commit first, before pushing.Check also, still withgit status, that you are on a branch (and not adetached HEAD), as that would explain the "up to date" error messsage.
I'm trying to commit an update to GitHub through gitbash, but it doesn't seem to work. The pictures below showChanges done in the files, but gitbash says it's up to date:My repository:
Unable to commit and push files in a folder to GitHub
Check the remote setting for the repository.git remote -vWill show you where you're pushing to.ShareFollowansweredSep 24, 2019 at 11:07gnuchugnuchu1,4961313 silver badges2121 bronze badges2i did check, pushing to the correct right directory but with the wrong github username–Insane DASep 24, 2019 at 11:10What is in you...
For some reason, I had to use my personal and official github user account in the same machine. After this, whenever I commit from my local git to github, the name of the user is my another account's username. I dont understand how this account is still linked to my local git. I've checked the username in git but that ...
Whenever I commit, it links to my another github account's username
git describetells you the most recent tag that your working copy refers to.Excerpt from the man page:git-describe - Show the most recent tag that is reachable from a commit
If there are multiple tags available in a Git project, how can we check, which is the checked out tag out of all the present ones.git tagwill list all the tags, and entries will be present in .git/refs/tagssay for example: - today we did a repository sync from master repository and got tag 1 and we checkouted tag 1 and...
Git tag - Checkout issue
You can useHttpsURLConnection.getServerCertificatesand cast the result to X509CertificateHttpsURLConnection connection = ... Certificate chain[] = connection.getServerCertificates(); X509Certificate cert = (X509Certificate)chain[0];ShareFollowansweredJul 11, 2018 at 5:53pedrofbpedrofb38.2k55 gold badges9898 silver badg...
I would like to use OCSP checking for the certificate which is coming from the server during TLS handshake.I am using Bouncy Castle as provider for OCSP implementation and BC verification methods want X509Certificate as parameter generally.So; how can I follow and get incoming certificate chain at Java side and fetch i...
Getting certificate chain from TLS for using OCSP
Many areas in WordPress create links to content and references as relative (site independent)<a href="/mypage">like this</a>However other places in the code are site specific and reference the full URL. If you upload an image (for example) it will be referenced athttp://www.example.com/wp-content/uploads/2013/03/image1...
I have added an SSL certificate to my site on WordPress. When I added the following code to the htaccess file I lost the dropdowns in my navigation menu and different things happened in various browsers.Here's the code I added to htacces to force site from http to https:RewriteCond %{HTTPS} !=on RewriteRule ^.*$ https...
http to https using htaccess leaves site menu without dropdowns
The scheduler ensures that, for each resource type, the sum of the resource requests of the scheduled Containers is less than the capacity of the node.If a Container exceeds its memory limit, it might be terminated. If it is restartable, the kubelet will restart it, as with any other type of runtime failure. If a Conta...
I have a node with 6gb memory. I want to run 2 pods on it.Question 1:POD1 have Request of 4GB and limits of 6GB and POD2 has no limit.POD1 is working at 4GB and that leaves 2GB of memory free on node.Can Kubernetes allocate POD2 in this node?or will it be in Pending withYou don’t have enough resources?If Kubernetes run...
How to set Memory limit for a pod in Kubernetes
If you do get didReceiveMemoryWarning, the default implementation will unload its view if it is ok to do so and then call viewDidUnload. I don't know how you have setup your controller, but you might have to store the current coordinate and then when viewDidLoad / Appear gets called, you can then ensure that the map is...
My root view controller is a map with several annotations. When an annotation is selected and the accessory button is tapped, I display a modal view that looks like so:https://i.stack.imgur.com/hACyH.pngIn this modal view, you can get a street view look at the annotations coordinate (I do this using a UIWebview). You...
Received memory warning in modal view -- parent view controller's objects get released. How to prevent?
Yes, you can create a PHP script that will download the data from the second server and then call it from using a cron job. Cron jobs allow you to run code at specific times. More info on thathere.It would probably look something like this:0 0 * * * php path/to/file.phpThis basically tells it to run file.php at minute ...
Is it possible to automaticly download xml files from one server to another server on a daily basis with PHP?The goal is to create a webapplication in CakePHP which makes use of an xml report that comes from a online accountingserver.So it can be done using a cronjob? But is cron supported with PHP?Where can i configur...
Automatic file transfer (daily)
How can I have myapplication.cloudapp.net be shown as subdomain.mydomain.com?Yes - this is just the CNAME forwarding and ensuring that the appropriate SSL certificate is installed on the server.Will doing that make it possible for wildcard SSL certificate to be used for Azure application too?Well as you're already ex...
I'm developing an application on Azure VM and would like to secure it by using the wildcard SSL certificate that I'm already using with my main domain. The SSL cert works with any *.mydomain.com and the application on Azure VM is accessible through myapplication.cloudapp.netBased on the research that I've done, CNAME s...
Installing Wildcard SSL Certificate on Azure VM
Sonar 3.3 has a new feature for combine code coverage metrics generated by both unit tests and integration tests. This is done by using two properties to detail the two different report files generated by thejacocotoo:#Tells Sonar where the unit tests code coverage report is sonar.jacoco.reportPath=reports/jacoco/jacoc...
I am running Sonar task through Ant, triggered by Jenkins in RHEL environment. I am successfully using Cobertura for Junit code coverage and Surefire for reporting. Sonar imports the Surefire reports fine.However, now I am running Selenium tests using Ant in Jenkins. I would like to report code coverage and test resul...
JaCoCo Selenium test code coverage and import to Sonar using Ant
Received an e-mail from github that explained the functionality is no longer active and that they are working on bringing it back again.It has been restored.
Did the "outdated diff functionality" get removed or are we just using comments wrong now?Whenever a updated a review comment I no longer get the "outdated diff functionality". This makes it extremely hard to keep track of what was updated when working with a team.Cheers.EditReceived an e-mail from github that explaine...
Github outdated diff functionality
1 What ended up working for me was to run the container as the default GitHub user 1001: jobs: foo: runs-on: ubuntu-latest container: image: foo/bar:latest options: --user 1001 Share Improve this answer Follow ...
I'm trying to run a build step inside a Docker container during my Github Action but running into some permission errors. Here are the relevant bits from my action file: jobs: tests: runs-on: ubuntu-latest container: image: chilio/laravel-dusk-ci:latest steps: - uses: actions/checkout@v2 -...
Webpack cannot write build files in Github Action Docker container
It looks like your ssh client might be confused by the Cyrillic characters in your home directory name: Failed to add the host to the list of known hosts (/c/Users/\200\253\245\252\341\245\251 \220\245\247\255\250\252\256\242/.ssh/known_hosts). Your ssh client will try to write an entry to the $HOME/.ssh/known_hosts ...
I am very new to git/versioning I create a git repository with netbeans, commit the project and when i try to "upload" (?) it (using command line): git remote add origin git@github:my_username/my_project_name.git git push -u origin master I get this error: C:\Users\Алексей Резников\My Projects\netbeans\CourseProject2...
Netbeans and Git
Note that multiple/arestripped down to single/while matching a URL regex inRewriteRule. That's the reason you are seeing this behavior.If you want to match multiple/(let's say 2 or more) then you should use:RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+check/[^/]+/{2,}
I have the following Rewrite Rule:RewriteEngine on RewriteRule ^check/([^\/]+)/?$ check.php?id=$1 [L]When I go to check/connected////, check.php displays it as connected. But, from my understanding of the rewrite rule, if I add more than 1 trailing slash to connected, it should not match.Check.php:<?php echo $_GET['...
Why RegEx lets add more than 1 slash?
I have a non-committed change and 16 changes ready to be pulled, but no idea how to find this change,Committed change actually: you have one local commit.You can:do a backup of your local repositorymake sure you have autostash and rebase in placethen pull through the GitHub Desktop interface.That is (Git 2.9+):git conf...
I have a project my friend and I are working on. He made some changes and added them to the project on github. I hit clone on the project in github and then it opened up the github desktop and now I have 1 arrow pointing up and 16 pointing down.I believe this means I have a non-committed change and 16 changes ready to ...
How to clone Github repository to local device with Github Desktop
try this:m = 10000 x=zeros([],1); i=0 some_criteria = 10 while x<some_criteria i = i+1 x(i,1) = i some_criteria = f(x) endif you write x(i) instead of x(i,1), the result will be a row vector.
I want to preallocate a matrix in matlab to get rid of out of memory error, but how can i use preallocating for a while loop? we use preallocating for a for loop like this:m=10000; x=zeros(m,1) for i = 1:m x(i) = i endbut what if i want to do this for a while loopm = 10000 x = 1 i=0 some_criteria = 10 while x<some...
how to preallocate a matrix in Matlab for a 'while' loop?
This is not really a right approach. Right approach is creating a kubernetes services of type LoadBalancer:kind: Service apiVersion: v1 metadata: name: my-service spec: selector: app: MyApp ports: - protocol: TCP port: 80 targetPort: 9376 type: LoadBalancerthat will create a load balancer and a pu...
I have an aks cluster deployed and assigned with an internal ip, but no external ip:NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes ClusterIP 10.0.0.1 <none> 443/TCP 11hI may be going about this the wrong way, but the goal is to create th...
AKS Cluster External IP - Azure SDK for Python
You could use inherit doc./** * {@inheritDoc} */ @Override
Is there any way to tell SonarQube not to count an overriding method into the public documented api statistics if the overridden method is documented? SonarQube finds many methods lacking annotation due to the case below.I know there is an annotation to ignore certain rules of SonarQube, however we don't want to add co...
Ignore missing documentation if superclass has documentation
You can install from PPA and use it as usual:FROM nvidia/cuda RUN apt-get update && apt-get install -y --no-install-recommends software-properties-common \ libsm6 libxext6 libxrender-dev curl \ && rm -rf /var/lib/apt/lists/* RUN echo "**** Installing Python ****" && \ add-apt-repository ppa:deadsnakes/ppa...
I want to create a docker image with specifically python 3.5 on a specific base image which is the nvidia/cuda (9.0-base image) the latter has no python environment.The reason I need specific versions is to support running cuda10.0 python3.5 and a gcc version<7 to compile the driver all together on the same boxWhen I ...
Setting specific python version in docker file with specfic non-python base image
I found the solution to my problem. But I don't really understand the details of why it works: When trying to choose a batch_size at first, I chose 90. 64 was slow, I was worried 128 was going to be too large, and a quick googling let me to believe keeping to powers of 2 shouldn't matter much. Turns out, it does matter...
I'm having a problem with a pytorch-ignite classification model. The code is quite long, so I'd like to first ask if anyone can explain this behavior in theory.I am doing many classifications in a row. In each iteration, I select a subset of my data randomly and perform classification. My results were quite poor (accur...
Data shuffling changes gpu memory use drastically
2 It is actually a known issue: https://github.com/github/linguist/issues/394 It's been submitted 6 month ago but GitHub still doesn't bother fixing it... Do you think of any workaround ? Share Improve this answer Follow ...
I use GitHub for a C++ / Qt project. GitHub automatically determines the languages of the project from the file extentions. Problem: Qt has a file name ProjectName.pro, which is interpreted to be Prolog by GitHub. How can I indicate it is NOT Prolog, but C++ ?
GitHub fails to determine the repository language
Read here how to "reset" your changes How to move HEAD back to a previous location? (Detached head) Once you have the code you want it push it again to the repository. Since you did a revert and not reset you can simply push the code without any problem. If you have done a reset and you wish to update the remote branc...
Lets say I have two branches A and B (A)--------(A+B)--------------(A+B+R) \ / merge \ revert / \ / \ / (B)----(B+) (R)---- First, I merged branch B to A, Then I reverted the merge request with GitHub's revert feature. Now when I fix some code on branch B and need to merge t...
Github: Changes ignored after revert (git cherrypick, git rebase)
I assume you are connected through SSH to the machine where you then want execute git commands.And since 140.82.121.4 references GitHub, you might be trying to push to GitHub using a Git remote repository SSH URL like[email protected]:aUser/aProject.Depending of your environment, egress SSH request might be blocked (I ...
Connection reset by 140.82.121.4 port 22. I connected with SHH terminal. Basically everything is working. But when I do (PUSH) all the connection is broken and again this error is coming. (Connection reset by 140.82.121.4 port 22.)I couldn't find the answer to this anywhere.
Connection reset by 140.82.121.4 port 22. How can I fix this error in Git
You don't. Just don't bind your Gunicorn server to anything outside localhost. Only other things on the machine will be able to talk to it. This is the default, so you shouldn't have to do anything, or you can be explicit about it.gunicorn -b localhost:8000 --workers 2 module:appYou could bind a Unix socket instead ...
How can I configure my Gunicorn server to accept requests only from my Nginx proxy, denying any direct requests to the Gunicorn port?
How to prevent Gunicorn from accepting connections from anything other than Nginx?
A good practice would be to always pull the latest changes first from your upstream ,which is master in your case . This will make sure that both branches are in Sync and point to the same HEAD. then when you create a PR, it will only show to the changes to files you have modified.
Suppose I fork a repository and create a branch from the forked master repository. Now while I am working on the file on Github itself without cloning it to the local disk other people commit to the master repository so like now I see this message on the top - This branch is 1 commits ahead, 15 commits behind pandas-d...
When to commit your changes?
You should just have Init_Pallet return a Point** and then do return Pallet_Matrix;. Currently you're copying one of the Point*s that you allocated out of the function, so the copy is no longer part of a contiguous array that you can index. Don't forget to delete[] the dynamically arrays in your destructor. However, y...
I have created a dynamic matrix of class objects but i have made a big mess with handling the returned pointers. My intention is to create a matrix of class Point( Int x,Int y) and later to use it in different ways in the program. Everything is working but i can't figure out the returned pointers game between the func...
How to access a dynamically allocated matrix in c++?
So my question is, do we use both of these tools in conjunction? It seems like there is some overlap?You seem to have mixed a few concepts. Don't look to much on the number of IP addresses, but more on theroleof the different components.Load Balancer / Gateway / NginxYou probably want some form of Gateway or reverse pr...
I am learning about highly available distributed systems and some of the concepts that keep coming up are load balancing (Nginx) and container orchestration (Kubernetes). Right now my simplified understanding of them is as so:NginxWeb server that handles Http requestsPerforms load balancing via reverse proxy to other s...
Using a Load Balancer with Kubernetes
You need to delete the deployment:kubectl delete deploy nginxOtherwise Kubernetes will recreate the pod on every shutdown.You can see all your deployments withkubectl get deploy
I was setting up a nginx cluster on google cloud, and I entered a wrong image name; instead of entering:kubectl create deploy nginx --image=nginx:1.17.10I entered:kubectl create deploy nginx --image=1.17.10and eventually after runningkubectl get pods, It showed ImagePullBackOff as the status for the pod.When I tried ru...
How do I undo a kubectl create deploy?
I may be wrong, but to me, it sounds well-intentioned but unnecessary. If your server is configured correctly, the HTML output will be gzipped. If we're not talking aboutmegabytesof HTML, every image on your page will take more bandwidth than the document's markup.In my experience, the greater worry about really huge c...
I have a web application where the masterPage/template contains some static HTML that never changes but is sent with every request. (a lot of this HTML are hidden elements that are shown after a user does something)I'm wondering if there is some way of caching it?I was considering putting the HTML inside a javascript v...
Cache HTML Content by storing inside javascript variable in external js file?
The reason your kibana Web UI doesn't working is quite obvious - the assets URIs requested by kibana (/bundles/app/core/bootstrap.js on the second line of the log you supplied) does not fall under the location /app/home/ { ... } and are trying to be served via your root location (location / { ... }). To made kibana ad...
I am new to nginx and writing the config files I am editing the default file present at location /etc/nginx/sites-available/default, I am using Ubuntu OS. I am facing issue to access the kibana web UI hosted at http://localhost:5601 on server on my web browser I am doing http://server-name/ and I am able to access th...
Location context not working in NGINX config file
Debugging help:FireBug/Console- look into the headers if the cookie gets set and sentRewriteLog- Find missconfiguration of the Rewriteenable by:RewriteLog /tmp/rewrite.log RewriteLogLevel 3(suggested is level 3 for debugging)See also this question:https://serverfault.com/questions/499246/how-do-i-make-rewritecond-http-...
I have the following code in .htaccess file that is not working in Firefox 25. It's works ok with Chrome, IE, Safari.Header unset Cache-Control Header append Cache-Control "no-cache, must-revalidate" RewriteEngine on RewriteCond %{HTTP_COOKIE} !^.*userloggedin.*$[OR] RewriteCond %{HTTP_COOKIE} userloggedin=x RewriteRul...
htaccess cannot read cookies in Firefox
Static methods are just methods, they are not stored on the heap, they just don't get to use a "this" parameter.Static variables serve as "roots" to the GC. As a result, unless you explicitly set them to null, they will live as long as the program lives, and so is everything reachable from them.A situation is only cons...
If my application has too many static variables or methods, then as per definition they will be stored in heap. Please correct me if I am wrong1) Will these variables be on heap until application is closed?2) Will they be available for GC at any time? If not can I say it is a memory leak?
Can using too many static variables cause a memory leak in Java?
In passive mode the client will connect to the server with a second connection, that is used to transfer "things" (directory listings, files). In your case:227 Entering Passive Mode (192,168,0,7,219,202)The server requested the client to connect to it on port 219 * 256 + 202 = 56266.This port is choosen by vsftpd dynam...
I would like to run an ftp server on a nixos host. I am using vsftpd, though could use something else if that would make a difference.The ftp works fine on localhost, but the firewall is blocking me for remote usage. I have allowed TCP port 21, but that is not enough.How should I configure the firewall to allow ftp c...
Running an ftp server on nixos
Session and Cache are different concepts. If you want to share the object between all users of your site you should use Cache while Session is for storing user specific data. So your question should not be: Is there any reason to use Microsoft.Practices.EnterpriseLibrary.Caching over standard ASP.NET Session? ...
Working on a legacy ASP.NET application we've found that ASP.NET session gets used for caching some objects, but for some objects Microsoft.Practices.EnterpriseLibrary.Caching gets used. Is there any reason to use Microsoft.Practices.EnterpriseLibrary.Caching over standard ASP.NET Session? Edit In my scenario, the Ent...
Is it appropriate to use Microsoft.Practices.EnterpriseLibrary.Caching with ASP.NET?
When you createdyour repository on GitHub, you created aREADME.md, which isa new commit.Your local repository doesn't know about this commit yet. Hence:Updates were rejected because the remote contains work that you do not have locally.You may want to find to follow this advice:You may want to first merge the remote ...
I created a new repository on Github which has only Readme.md file now.I have a newly created RoR project which I wanted to push to this repository. Following are the commands I gave in my Terminal to execute this along with the error I am getting.git remote add origin https://github.com/aniruddhabarapatre/learn-rails....
Issue pushing new code in Github
0 Worst case, if someone hasn't written a thing to do that yet, is to use the post-receive webhooks https://help.github.com/articles/post-receive-hooks You'd need an internet-visible web server to do this, and some code to recognize the merge (it will have two parents) and ...
Is there a way to trigger an automatic, custom tagging of a repository every time a pull request is merged in github ? for example... After merging "pull request 8", id like to automatically tag the repository at that state as "$Major_Version.$pr_id". The result might be "0.1.8". Is this possible?
Github : Automated tagging on Merging of Pull Requests
Assuming you want to re-initialize the file every sunday (you can change this to your favorite day of the week) you can use the following: declare @init_option nvarchar(50) declare @cmd nvarchar(1000) set @init_option = 'NOINIT' IF (datename(dw, getdate())) = 'Sunday' set @init_option = 'INIT' set @cmd ='BACKUP DATAB...
I have everyday schedule to backup my database in sqlserver 2005. Now it's looks like this: BACKUP DATABASE [db1] TO DISK = N'D:\SqlServer\Backup\db1.bak' WITH NOINIT , NOUNLOAD , NAME = N'db1backup', NOSKIP , STATS = 10, NOFORMAT But in this case, it's will grow infinitely and I want to store only last 7 back...
How to store certain number of backups in backup file
There are two parts to this.you want the data in time bucketsyou can set Grafana to auto refresh every so often but this is not related to the time bucketsYou can use something like the following to achieve 1).SELECT to_timestamp(trunc( extract(epoch from created_at) / 60000) * 60000) AS time, count(*) FROM meas...
I am trying to use Grafana to chart the output of a query similar to:SELECT count(*) FROM myschema.table1 WHERE status_id = 2Essentially I just want Grafana to run this query every X minutes and then chart the output over time, but from what I can see Grafana requires a specific column to be used as the time series.Is ...
Can Grafana chart time series for PostgreSQL without specifying a column?
Yes, it's possible, but only in Gitlab Enterprise Edition.Support for multiple Kubernetes clusterswas introduced inGitlab Premium/Ultimate10.3.With GitLab Premium, you can associate more than one Kubernetes clusters to your project. That way you can have different clusters for different environments, like dev, stag...
I have already added a Kubernetes cluster to my project in Gitlab. The cluster is hosted on AWS. This configuration works fine and I am able to deploy my apps. I want to add another Kubernetes cluster that is also hosted on AWS but in a different region to the same project. So far I am unable to find a way to add anoth...
Adding another Kubernetes cluster to Gitlab
You want to add "QSA" (="query string append") in the square brackets:RewriteRule ^/(v[0-9]+)/(resource)/?$ /$1/file.php?resource=$2 [NC,L,QSA]You may read this for further reference:Apache Doc
I have the following rules in my htaccess file:RewriteRule ^/(v[0-9]+)/(resource)/?$ /$1/file.php?resource=$2 [NC,L] RewriteRule ^/(v[0-9]+)/(resource)/([A-z0-9_]+)/?$ /$1/file.php?resource=$2&resource_id=$3 [NC,L]This rewrites URLs like/v1/resource/ to /v1/file.php?resource=resourceand/v1/resource/resource_id to /v1/f...
mod_rewrite rule to capture query parameters if present
As far as I know you can really use filtering metricsbased on pod labels. Look at the original answer:You can use+operator to join metrics. Here,group_left()will include the extra label:label_sourcefrom the right metrickube_pod_labels. The metric you're joining is forced to zero ( i.e.0 * kube_pod_labels) so that it do...
Closed.This question isnot about programming or software development. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchan...
Prometheus kubelet metrics with pod labels [closed]
No, clusterIP is only reachable from within the cluster. An Ingress is essentially just a set of layer 7 forwarding rules, it does not handle the layer 4 requirements of exposing the internals of your cluster to the outside world. At least 1 NAT step is required.For Ingress to work, though, you need to have at least on...
Is it possible to expose the service by ingress with the type of ClusterIP?apiVersion: v1 kind: Service metadata: name: my-service spec: selector: app: my-service ports: - name: my-service-port port: 4001 targetPort: 4001 --- apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: app-...
Ingress expose the service with the type clusterIP
Don't reinvent the wheel, use guava'sLoadingCacheormemoizing supplier.If you are using Ehcache, read aboutread-through, this is the pattern you are asking for. You must implement theCacheEntryFactoryinterface to instruct the cache how to read objects on a cache miss, and you must wrap theEhcacheinstance with an instanc...
How to prevent loading the value that is not present in the cache many times simultanously, in theefficientway?A typical cache usage is the following pseudocode:Object get(Object key) { Object value = cache.get(key); if (value == null) { value = loadFromService(key); cache.set(key,value); } return value; }The p...
How to prevent loading non-cached value simultanously many times?
since helm 2.2.0, you can store the mongodb chart at the same directory and in yourrequirements.yamlfile refer to it as:dependencies: - name: mongodb version: "<the_mongo_chart_version>" repository: "file://../mongodb"thats way you can play with the values and deploy the whole thing with 1 helm command.for more in...
I've created a chart which requires a helm chart fromstable/charts, lets saymongodb. Although you can define arequirements.yamlfile I was wondering if it is possible to define a chart in here?Furthermore, to make things easier (not) I need to replace some values for the mongodb chart as well. Not sure if I'm pushing th...
Custom helm chart requires another stable/chart
We have AzureAD oauth enabled on Grafana and access within the organization is limited to specific AD security groups. To grant access to Grafana, set the object ID of the relevant AD group as shown below in yourgrafana.ini.allowed_groups: "<group1_object_id>", "<group2_object_id>"This configuration permits only users ...
We are facing issue while configuring the Grafana SSO .Currently we had configured it with using Azure AD .All the active directory level configuration and user are already added but it is authenticated everyone with SSO with defined domain who has that email id .I need to know is there is any Grafana level configu...
Grafana SSO login
It really is not possible to directly access your own database running on GKE.The only option which will definitely work is to replicate the data from your TimeScaleDB instance to BigQuery tables. Google Cloud providesCloud Data Fusion, but there are other change data capture / replication products as well.One other o...
Did some research but I can't find anything on this topic. So here goes:What I'm trying to do is to add a k8s (on GKE) hosted TimescaleDB (so basically PostgreSQL) as an external datasource on BigQuery. However, asBQ's docsstate:BigQuery supports the following external data sources:BigtableCloud SpannerCloud SQLCloud S...
BigQuery integration with GKE hosted PostgreSQL
The exception message comes frommeteoritelib/sources/git.js:GitSource.prototype._clone = function(fn) { var self = this; if (!fs.existsSync(this.sourcePath)) { exec('git clone ' + self.url + ' ' + this.sourcePath, function(err, stdout, stderr) { if (err) throw "There was a problem cloning repo: " ...
I am facing problems in installingMeteorite.I'm currently going to start working onTelescope Projectwhich is hostedhere.I have downloaded the Telescope intoD:\Meteor\Telescope, and installed Meteorite usingnpm install -g meteoritein command prompt.But when I rum meteorite usingmrtcommand I get following errors:Stand ba...
Meteor: Error while cloning repo from Github
2 Looks like you need to run a deploy script. You would do this in .travis.yml deploy: provider: script script: bash scripts/deploy.sh on: branch: master And scripts/deploy.sh would contain what you currently have in after_success. Share Improve this an...
I have set up travis to test my project, and to deploy a docker build for every commit. What I really want to do, is to test every commit I have, and only when it is being rebased to master, deploy it (it's for my staging environment, in which I always want master up and running) Is there a way I can separate these ta...
Travis-CI deploy every master commit, but not branch commits
2 In your task definition, specify the logging configuration as the following: "logConfiguration": { "logDriver": "awslogs", "options": { "awslogs-group": "LogGroup", "awslogs-region": "us-east-1", "awslogs-stream-prefix": "Prefix" } } awslogs-stream-...
I am using Amazon ECS and docker image is using php application. Everything is running fine. In the entry point i am using supervisord in foreground and those logs are currently send to cloudwatch logs. In my docker image i have logs send to files /var/log/apache2/error.log /var/log/apache2/access.log /var/app/logs/d...
How can i setup aws cloudwatch logs with docker ecs container
When you use tilde (~) in your location block, location is interpreted as a regular expression match. Remove that and it should process without error.See documentation here:https://nginx.org/en/docs/http/ngx_http_core_module.html#location
I read and reread thenginx proxy_pass docs. I thought I understood it until I spent the last hour getting a nondescript error that doesn't make sense. Other people with the same problem don't seem related to this. Yesterday was my first day with nginx. I'm running nginx v1.12.2.When someone requestshttps://example1.com...
nginx proxy_pass from a specific path to another specific path throws an error
35 You have to distinguish between the object reference and the actual object. For the reference your field modifier is relevant. When you change the reference to a different object (i.e. reference a different String) the change might not be noticed by a different Thread. ...
We often use volatile to ensure that a condition variable can be visible to every Thread. I see the volatile fields are all primitive type in code so far. Does object field has this problem? For example: class a { public String str; public List list; } If there are some threads which will access str and list...
Do I need volatile for variables of reference types, too?
Grafana does no calculations itself, it just queries a backend and draws nice charts. So aggregating abilities depends solely on your backend. While Graphite supports windowing functions such as moving average, InfluxDB currently doesn't support it.There are quite a lot requests for moving average in influxdb on the we...
I didn't find a 'moving average' feature and I'm wondering if there's a workaround.I'm using influxdb as the backend.
Is there a way to have a moving average in Grafana?
9 The AWS Lambda FAQ says: Each Lambda function receives 500MB of non-persistent disk space in its own /tmp directory. It is possible that your environment is being reused, so your temp files might be accumulating and eventually passing the limit: To improve performanc...
Amazon Lambda function invocations sporadically fail with no space left on device when downloading 20M file to /tmp. The lambda limits page clearly says that the limit for Ephemeral disk capacity (“/tmp” space) is 512M, presumably per lambda invocation, not per lambda function across all its invocation. Below are the...
AWS Lambda Sporadic "No space left on device" error
0 I got this error when git ran out of memory. Freeing up some memory (in this case: letting a compile job finish) and trying again worked for me. Maybe your UK machine has less free memory? Share Improve this answer Follow ...
I tried cloning a git repository to my local folder and I get this error. I used TortoiseGIT version 1.8.5 (64 bit) git.exe clone --recursive --progress -v --depth 1000000 "https://github.com/myrep/dotnet.git" "C:\Projects\PFM\dn1\dotnet" Cloning into 'C:\Projects\PFM\dn1\dotnet'... POST git-upload-pack (221 byt...
Git fatal: index-pack failed
Short answer isNO.Two things to note about Step Function state input/output and state InputPath/OutputPathInput processing doesn't support default property values. All the properties have to come either from the previous state or as input to step function invocation. (Input and Output processing)JsonPath can be used on...
Is there a way to make AWS Step function parameter optional? or accept an expression to say if the value is passed pick the value else default it to a certain value?Example:Lets say my Parameters are defined as follows:"Parameters": { "comment": "Selecting what I care about.", "MyDetails": { "...
Make AWS Step function Parameter Optional
Github tries to parse you site as aJekyllsite.You must indicate that you're not using Jekyll by creating an empty.nojekyllfile at the root of your repository.
I'm working on a Rails app that allows users to publish datasets via Github and access it via GitHub pages. I'm using the Github API to act as the user, create a repo and add the files, and everything works as expected, the only issue is that the GitHub pages page build doesn't seem to be happening. The datasets can be...
Github API - create contents api method not triggering GitHub Pages build
I encountered the same but it was solved after I installed Visual Studio Tools for Kubernetes by Visual Studio installer.
I'm trying to add Kubernetes/helm support to a dot net core 3.0 project but I only see Docker Compose in the dropdown. What am I missing? I can start a new project with Kubernetes support just not able to convert a project.https://github.com/MicrosoftDocs/visualstudio-docs/issues/4029
visual studio 2019 `add container orchestration support` Only shows Docker Compose
Some discussions here:https://github.com/docker/docker/issues/8902What I got from above discussion isaddSYS_ADMINcap when run the container:https://github.com/docker/docker/issues/8902#issuecomment-218911749usensenterhttps://github.com/docker/docker/issues/8902#issuecomment-241129543
I am new to docker, i am using docker version 1.12. I am trying to modify the hostname of a running container, however thehostnamecommand returnshostname: you must be root to change the host name. Is there any way to achieve that after running the container and not in the docker run command?
Change hostname after running a container
after some more digging I finally found the solution. It's a bit hinted in the url_for method: In particular, a leading slash ensures no namespace is assumed. Thus, while url_for :controller => 'users' may resolve to Admin::UsersController if the current controller lives under that module, url_for :controller => '/use...
My application is using a namespace for administrative purposes. I recently tried to start using action caching however I ran into some problems trying to expire the cache using expire_action. Basically I have a index action in my default namespace newsposts controller that is cached using action caching like this: cl...
rails caching: expire_action in another namespace
The--stop-grace-periodvalue is the amount of time that Docker will wait after sending a sigterm and give up waiting for the container to exit gracefully. Once the grace period is complete, it will kill the container with a sigkill.The sequence of events seem to happen as is designed based on your description of your se...
I am running Docker in swarm mode with several nodes in the cluster. According to the documentation written here:https://docs.docker.com/engine/reference/commandline/service_update/and here:https://docs.docker.com/engine/reference/commandline/service_create/, --stop-grace-period command sets the time to wait before for...
Docker swarm stop grace period doesn't work as expected
With your shown samples/attempts, please try following htaccess rules file. Make sure to keep yourindex.phpfile is present in website folder and htaccess is present along side with website folder(not inside it).Please make sure to clear your browser cache before testing your URLs.##Enabling rewrite engine here. Rewrite...
So I have included an htaccess file to my server in the root directory and changed all of the ./ I could find set the absolutes. However, when I search by URL into one of the directories pressing the home button does not take me home. Instead, it appends the index onto the end:/website/book/index.php?p=homeInstead of/w...
Started implementing .htaccess but when navigating from the reduced URL, when going into a directory it then can't get back
This command will copy all files starting with 2015-08-15: aws s3 cp s3://BUCKET/ folder --exclude "*" --include "2015-08-15*" --recursive If your goal is to synchronize a set of files without copying them twice, use the sync command: aws s3 sync s3://BUCKET/ folder That will copy all files that have been added or m...
I have files in S3 bucket. I was trying to download files based on a date, like 08th aug, 09th Aug etc. I used the following code, but it still downloads the entire bucket: aws s3 cp s3://bucketname/ folder/file \ --profile pname \ --exclude \"*\" \ --recursive \ --include \"" + "2015-08-09" + "*\" I ...
Selective file download in AWS CLI
YournamespaceSelectorshould be at the same level asselector.
I'm trying to create a servicemonitor that will instruct prometheus to scrape the metrics from my spring-boot service, but can't find the right way to do that.I have a simple micro service with prometheus enabled,see github for sourceI can run it locally, or deployed into openshift. In both cases I can see the metrics ...
How to monitor a spring-boot service by creating a ServiceMonitor?
Use branches. "Development A", "Production" and "Development B" are particular branches. People that collaborate work on the same branch. Development branches that are ready get merged into the production branch. The above should work regardless of the VCS you decide to use as long as branches are supported. My s...
I'm currently using subversion and tourtiseSVN. I am looking to revamp the way my web development team works. We work on inhouse developments for inhouse websites. We don't outsource. We would like to increase the number of team members working on an individual development on a particular product. At the moment, our s...
How to setup the ideal collaboration repository setup?
OutOfMemoryExceptionis the worst kind of issue you can have (unless you're trying to load a 50MB image into RAM.Basically, the way to handle those is to use theMemory Analyzing Tooland check what is preventing your memory from clearing when the GC is running.In my case it was mostly the following issues:cyclic referenc...
I have almost finish my app. but here is a problem puzzle me for a long time sometimes It come outOutOfMemeryError Exception. it's sometimes appeared but not always.so ,I guess my app must manage memory for itself. but how to manager it?
android outofmemeryerror when start an activity
Options +FollowSymlinks RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} !^/(fingertools|static)(/|$) RewriteRule ^(.*)$ fingertools/$1 [L,QSA]
I have a server running with the following directory structure:/public_html | - /fingertools | - /css | - /static | - /media | - /js | - .htaccessMy .htaccess is in the root of the "public_html" folder, and the main files of the website are in the "fingertools" folder, which is a Django project.I want...
.htaccess redirecting all URLs except one
Provided you are using bash you can run the following script: #!/bin/bash for i in $(seq 20000 -900 0) do git push origin master~$i:master done git push origin master:master it will iterate from 20000 to 0 and iteratively push commits to the remote branch master. master~n is Git syntax and denotes the n'th commit ...
We want to push a 20.00+ commit local Git repository to GitHub but it turns out that although the transfer itself is no problem GitHub doesn't actually process more than a 1000 commits at a time ("process" meaning that they'll link commits to issues etc). So to be able to correctly transfer this repository and have it...
Do "chunked" pushes to remote Git repo?
You should use hooks. I wrotea noteabout it some months ago (only hungarian).Preparation:cd /path/to/git/ git svn init -s http://svn.yourdomain.com/repos/project_name project_name cd project_name git svn fetch git remote add origin[email protected]:USERNAME/PROJECT git push --set-upstream origin masterThepost-commitho...
I want to do auto commit on github when i did commit on svn.We have SVN and one repo for other project on github. And i read many documentation about this. commands like "git svn" and other.For example i have project "myproject" on github[email protected]:directory/myproject.gitAnd i have directory on SVN like this:htt...
SVN commit automatically commit on github
Per app memory limits can be as low as 16 megabytes currently. If you have several large bitmaps it is easy to exceed this limit.I recommend to loading a scaled down / subsampled version of each bitmap as described here:http://developer.android.com/training/displaying-bitmaps/load-bitmap.htmlMore info on working with ...
I have recently been developing a game for android. On my Samsung S3 Neo+ with 1.5GB memory, my app, with a total of ~14MB of picture assets (PNGs). My app loads all of these PNGs into Bitmap objects which are, of course, stored in the RAM. After loading all the assets into a hashmap (HashMap<String, Bitmap>) where the...
Preventing OutOfMemoryError on android
The first sentence is important:The Job is considered complete when there is one successfully completed Podfor each index.There can be duplicated index but for each index, onlyone(the one that reached Completed first) will be counted forspec.completions.
A bit unclear sentencein the doco:Note that, although rare, more than one Pod could be started for the same index, but only one of them will count towards the completion count.So say it happens, there are two pods in an Indexed job with the same index. Now, one of them is failed (therestartPolicy = "Never"), another su...
Indexed fixed completion count job, more than one pod with the same index
3 Since you don't know which transformation is causing the problem, I would suggest injecting actions between the transformations, to see which action will recreate the problem. this is a small utility function I use to make this easy: (I call it break, since it breaks the ...
I am trying to analyze an issue in my spark job which is failing with an OutOfMemory error. I am trying to analyze the issue by looking at the Spark ApplicationMaster's UI. The UI shows the Stage and Task breakdown of the job, and I'm focusing my analysis on a stage that is experiencing task failures. The Stage UI has...
How to know what line of code causing OutOfMemory from UI's Stage DAG?
0 Create Procedure ArchiveEmployeeTranactions ( @SaleNumber int, @EmployeeNumber int ) AS BEGIN IF @SaleNumber is null BEGIN RAISERROR ('Please enter valid Sale Number',16,1) END Else IF @...
i've got a question about raising errors and copying the contents from a table into a stored procedure. What i need to do is move employee information to an Archive table for storage and backup,Raise Error Messages when employee number does not exist, and only move the employee records that have no sales, currently i'...
copy content from table into stored procedure for backup and storage