Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
+50It is correct that go-client does not have support for metrics type, but in the metrics package there is a pregeneratedclientthat can be used for fetching metrics objects and assign them right away to the appropriate structure. The only thing you need to do first is to generate a config and pass it to metrics client... | The kubernetes go client has tons of methods and I can't find how I can get the current CPU & RAM usage of a specific (or all pods).Can someone tell me what methods I need to call to get the current usage for pods & nodes?My NodeList:nodes, err := clientset.CoreV1().Nodes().List(metav1.ListOptions{})Kubernetes Go Clien... | Get current resource usage of a pod in Kubernetes with Go client |
27
By forcing curl and apt to use ipv4, download.docker.com is resolved correctly.
in curl, add the -4 argument
Add Docker’s official GPG key:
$ curl -4fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
then to force apt to use ipv4 => https://www.vult... |
I am getting this error while installing docker CE on my ubuntu machine
curl: (6) Could not resolve host: download.docker.com
gpg: no valid OpenPGP data found.
While performing the step
Add Docker’s official GPG key:
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
as mentioned here htt... | "Could not resolve host: download.docker.com" while installing docker CE |
1
After giving it a few tries, I could finally solve the question with the help I found in this post.
First of all, I cleaned up the cache for the public path:
igor@skynet:.../igorcosta$ git rm -r --cached public
Then, I forced a new submodule with:
igor@skynet:.../igorcos... |
My blog is hosted at github.io and it uses Hugo's "m10c" theme. The blog was working fine until today, when I tried to write two posts. I could post the first one, but, when I tried the second one, I could not push to the submodule in main branch. That was the error message:
error: src refspec main does not match any
... | I can't push anymore to a github submodule using Hugo theme |
[[TTURLCache sharedCache] removeAll:YES];? | I have created thumbnail view using Three20 bundle. I have successfully loaded and displayed the images in the view. Now i want to clear the cache images because everytime it shows only the previously cached image and not the updated or latest image. All images are retrieved from the RSS feed.Please help me out.Thanks. | How to clear cache image? |
I simply ignored the issue by tacking on;exit 0on the offending lines. Not great, but does the job.EDIT: This worked for me as I cannot upgrade the version of CemtOS. If you can, check out Alexander Block's answer. | I am trying to build using:FROM mcr.microsoft.com/dotnet/core/sdk:2.1 AS builder
COPY pythonnet/src/ pythonnet/src
WORKDIR /pythonnet/src/runtime
RUN dotnet build -f netstandard2.0 -p:DefineConstants=\"MONO_LINUX\;XPLAT\;PYTHON3\;PYTHON37\;UCS4\;NETSTANDARD\" Python.Runtime.15.csproj
# copy myApp csproj and restore
C... | Why is docker not completely deleting my file? |
I don't know how exactly cAdvisor works but making a parallel with howNode_Exporterdoes, I think there are more CPU modes besides "user" and "system" to add up to the total CPU usage.Look at the all Node_Exporter CPU modes available:# HELP node_cpu_seconds_total Seconds the cpus spent in each mode.
# TYPE node_cpu_seco... | I am struggling to understand some concepts regarding the cAdvisor metrics (when scraped by Prometheus) specifically the cpu usage metrics.It provides the following three metric types concerning CPU usage:container_cpu_system_seconds_total: Cumulative system cpu timeconsumed container_cpu_user_seconds_total: Cumulativ... | PromQL to correctly get CPU usage percentage |
I have opencv-3.4 built with cuda-10.0 and the following code works fine on my ubuntu-16.04 system.
#include <iostream>
#include <iomanip>
#include "opencv2/objdetect.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/cudaobjdetect.hpp"
#include "opencv2/cudaimgproc.hpp"
#include "ope... |
I'm using gpu::rotate from opencv lib to rotate clockwize an image.
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/gpu/gpu.hpp>
int main()
{
cv::Mat im_in = cv::imread( "test.png" );
//upload image to GPU
cv::gpu::GpuMat gp... | Rotate image with opencv GPU |
There are two fundamental mistakes in your observation.
you cannot delete an object, only references. If you delete a you delete the pointer. When you delete all pointers then only the object might get deleted at some point by the garbage collector
sys.getsizeof only gives the size of the container. To get the total... |
I am trying to find a memory efficient way to store data in python variables for quick access and analysis. I initialize an 2d array in numpy and then find its memory usage (using sys so I can compare to other variable types later) via the following:
a = np.zeros((1000,1000), dtype=np.float32)
print('The size of the n... | Does a dictionary of numpy arrays really use less memory than an ndarray? |
docker-compose up -d postgresrefers to this part of thedocker-compose.yamlfile:services:
postgres:
image: "openmaptiles/postgis:2.9"
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- postgres_conn
ports:
- "5432"
env_file: .env
...As you can see in theports:section, there is noconta... | I am currently playing around with openmaptiles (https://github.com/openmaptiles/openmaptiles) and I'd like to figure out how to import my own data into the resulting mbtiles. But first I'd like to look at how the postgres database it is using is structured.
I just can't figure out how I can connect to the postgres dat... | How to connect to OpenMapTiles Docker Postgres DB |
You have a timeout problem.
Tackling it
HTTP/1.1 502 Bad Gateway
Indicates, that nginx had a problem to talk to its configured upstream.
http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#502
2013/02/12 07:36:16 [error] 32401#0: *1948 upstream prematurely closed connection while reading response header from ups... |
Application details :
Rails 3.1.0
Ruby 1.9.2
unicorn 4.2.0
resque 1.20.0
nginx/1.0.14
redis 2.4.8
I am using active_admin gem, for all URL's getting response 200,
but only one URL giving 502 error on production.
rake routes :
admin_links GET /admin/links(.:format) ... | 502 error nginx + ruby on rails application |
I don't believe you're guaranteed to get the info you're looking for, however we can try.Find the latest Helm secret for your Helm release.kubectl get secret -n msgbox-lucyYours might look something like this:sh.helm.release.v1.msgbox-lucy.v5and run this command to view the chart's metadata:SECRET_NAME="sh.helm.release... | I have many helm repositories in my kubernetes,
And I installed a lot of charts,
So How do I know which repository the installed Chart belongs to?
For example:$> helm repo list
NAME URL
lucy-dev https://harbor.mydomain.net/chartrepo/lucy-dev
lucy-prod https://harbor.mydomain.net/chartrepo/... | How do I know which repository the installed Chart belongs to |
3
You might want to look at this article https://help.github.com/articles/remove-sensitive-data
Pretty much says this command
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch Rakefile' \
--prune-empty --tag-name-filter cat -- --all
Will remove t... |
This question already has answers here:
Remove sensitive files and their commits from Git history
(12 answers)
Closed 10 years ago.
I have a file that once contained sensitive conf... | remove sensitive data but not file from git history [duplicate] |
It is now possible to create Athena Table in CloudFormation through the Glue Data Catalog:https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-table.html | Is there any way to create DataBase and Table in Amazon Athena using CloudFormation.
I referred to AWS documentation and there seems to be only one resource which can be created using CloudFormation.Ref :https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.htmlhttps://docs.aws.a... | How can we create database and table in Amazon Athena using CloudFormation |
The main purpose for multi-GPU learning is to enable you train on large data set in shorter time. It is not necessarily better with larger mini-batch, but at least you can finish learning in a more feasible time.
More precisely, those N mini-batches are not trained in a synchronized way if you use Asynchronous SGD al... |
In this TensorFlow tutorial, you can use N number of GPUs to distribute N mini-batches (each containing M training samples) to each GPU and calculate the gradients concurrently.
Then you average the gradients collected from N GPUs and update the model parameters.
But this has the same effect as using a single GPU to c... | What is the advantage of doing a Multi-GPU training in TensorFlow? |
You should to install ROK on Your Kubernetes cluster.
Without ROK you can't use it | I am trying to integrate kubeflow kale in jupyterlab. For that, I have installed the recommeded package using the below commandRUN pip3 --no-cache-dir install \
--upgrade pip \
urllib3==1.24.3 \
jupyter-client==6.1.5 \
nbformat==5.0.2 \
six==1.15 \
numpy==1.17.3 \
jupyter-console==6.0.0 \
... | Kubeflow kale failed to connect Rok module |
curl failed to connect to that host's TCP port number 80. You're either not running the http server on port 80, you've made curl try to connect to the wrong server or there's something else in your network that prevents the connect handshake to succeed. | I have a website (www.example.com | 123.456.789), in that machine i only have 1 web app running. i am trying to use php file_get_content() to a file which in my own server (located on some file like /var/www/my_site/public_html).The PHP code i am referring is:$url = 'http://example.com/282-home_default/short-wallet-tan... | Curl Error Hostname Not Found in DNS Cache |
The following steps solved this problem:Open cmd as administratorLaunch command:"C:\Program Files\Docker\Docker\DockerCli.exe" -SwitchDaemon | I am new to Docker and after writingdocker versionin cmd I got this error,
35026667
error during connect: This error may indicate that the docker daemon is not running.: Get"http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version": open //./pipe/docker_engine: The system cannot find the file specified. | error during connect: This error may indicate that the docker daemon is not running |
Q. If I want to send push notification to my phone, which one should I use?A. Both Amazon SNS and Amazon Pinpoint, support push notification feature and I normally like classifying them as"Mobile Push Messaging"tools however they differ in mechanism as discussed below.The major difference between Amazon SNS & Amazon Pi... | I am new to Push Notification and really interested in it. We have AWS SNS (Simple Push Notification) and AWS Pinpoint.I am confuse about these services from AWS.What is the difference between them?If I want to send push notification to my phone, which one should I
use?If you have any ideas, please let me know.Thank yo... | What is the difference between AWS Pinpoint and AWS SNS? |
It's not a direct answer to how to install the certbot dnsmadeeasy plugin but it worked for me so I went with this solution.I used their Docker image -https://hub.docker.com/r/certbot/dns-dnsmadeeasyIt works the same as certbot with the dnsmadeeasy plugin installed so you can obtain a certificate by running:docker run ... | I'm on Ubuntu 16.04 and I want to get a wildcard certificate and my DNS provider is in the list -https://certbot.eff.org/docs/using.html#dns-pluginsBut when I try to do step5. Install correct DNS pluginsudo apt-get install python3-certbot-dns-dnsmadeeasyI always getUnable to locate package python3-certbot-dns-dnsmadeea... | How to install certbot DNS plugin for DNS Made Easy? |
You are dealing with two levels of abstraction here. Everything accessed within the program is in the virtual address space, and the .data/.bss sections are available at the beginning of program execution. A deeper abstraction is that the virtual address space is backed by physical memory using paging, managed by the ... |
Usually, the static and global variables are both stored in the .data or .bss section according to their initialization condition. It is said their life time is from the beginning to the ending of the program, and it is also known that program is loaded into the memory as a page when demanded in paging management. Do... | Should the static or global data which is stored in .data or .bss section be loaded before the program executing? |
Yes, the tab controller owns an array of view controllers (and everything in an array is retained). You're not creating a leak as long as you properly release or autorelease the items you're adding to the tabBarItems array.
It really helps to think of object relationships as ownerships.
|
This may sound a newbie question ... but however I'm new to iOS development.
I've created UITabController object programmatically like this.
mTabBarController = [[UITabBarController alloc] init];
...
mTabBarController.viewControllers = [NSArray arrayWithArray:tabBarItems];
[tabBarItems release];
And releasing mTabBar... | How correctly release UITabController |
The error was the result of a previous edit that I had made to .Rprofile while creating a website with theblogdownpackage. I didn't remember doing this, but clearly it was interfering with package downloads.After runningfile.edit(".Rprofile"), deleting the single line it contained, and then restarting R, packages are i... | I cannot install any R packages from Github, though I've done this several times before. I've tried this with both R Versions 3.5.0 and 3.5.1.Attempting to install "https://github.com/rstudio/bookdown/bookdown-master.zip" using:devtools::install_github('rstudio/bookdown')
githubinstall::githubinstall("bookdown")or down... | cannot install packages from github - uninterpretable error message |
Or, using plain "docker ps" instead of "awk"... note "--format" is normally used with "docker inspect":docker stats $(docker ps --format '{{.Names}}')2017-02-12 See manat's answer below (https://stackoverflow.com/a/42060599/72717). Docker 1.13.0 "stats" can display the container name in "--format":docker stats --format... | I want to display state of all running container, so I could achieve it like the following:docker stats $(docker ps -q)CONTAINER CPU % MEM USAGE/LIMIT MEM % NET I/O
04cdc87ba3cf 0.03% 468.8 MiB/3.784 GiB 12.10% 6.827 KiB/10.2 KiB
7d30fcbd8b... | Is there any way to display container names in docker stats? |
There's something wrong with routing. This question may solve your issue:PHP Laravel Routing IssueTry all of the suggestions, especially the ones concerning apache config. | I'm trying to get wordpress and laravel to run side-by-side and hitting a small issue.Here's my code# BEGIN Laravel
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?admin/?.*$ index.php [L]
</IfModule... | htaccess - laravel with WordPress |
You need to disable theci triggerfrom the pipeline:# A pipeline with no CI trigger
trigger: none | I am making some changes in my project code and posting it to GitHub. This causes my Azure Pipeline to be triggered every time. How can I restrict pipeline triggering. I'm using Azure DevOps. | How do I restrict pipeline triggering |
PoSh is just a wrapper here. For learning what SMO classes and methods are available, you need to look at the SMO documentation. Start with SQL Server Management Objects (SMO) Programming Guide.
For a list of all classes in SMO, again I reffer you to the product documentation, please look at SQL Server Management Obje... |
I am trying to learn powershell, recently i was struck in the query that how can find out the objects in the assembly's
example:
I have loaded the Powershell sql assembly
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.sqlserver.smo") | Out-Null
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft... | Powershell SMO objects |
The general procedure is:Run nodetool drain (http://www.riptano.com/docs/0.6/utilities/nodetool#nodetool-drain) on the nodeRun nodetool snapshotKill the cassandra processStart the cassandra processWhen running nodetool snapshot, it is very important that you have JNA set up and working. This includes:Having jna.jar in ... | Being a level 1 novice in Linux (Ubuntu 9), shell and cron, I've had some difficulty figuring this out. Each night, I'd like to take a snapshot of our Cassandra nodes and restart the process.Why? Because our team is hunting down a memory leak that requires a process restart every 3 weeks or so. The root cause has been ... | Cassandra Snapshot and Restart |
If yourusername.github.iorepo is public, then you could access the styling file(s) from any other repo.Inusername.github.io, let's say there's a fileusername.github.io/styling/main.css. In your layouts for any other projects, you can link to the file like a regular external css link:<link rel="stylesheet" href="https:/... | I would like all my project pages to have the same custom style. But for now I only see that every project page can be configured separately (choosing default theme from Setting of the project or creatinggh-pagesbranch with the source files).Is there any way to archive what I want? For example, to write custom style in... | Same style for all project github pages? |
No, it's not necessary. Likeeyllanescsaid just make a new branch on the fork and make the PR pulling the changes from that new branch. | I created a pull request from my fork of the repository. I had made 10 commits to my fork for the pull request which was later merged.Now when I want to work on another issue my fork still shows that it is 10 commits ahead of the main repository even though the PR was merged. I deleted my fork of the repository and for... | Is it necessary to fork again for future PRs? |
You can specify--no-fixso that it doesn't autofix errors/warnings and set--max-warningsto0as it seems you have one warning in your project and want it treated as an error.In yourpackage.json:{
....
"scripts": {
"lint": "vue-cli-service lint --no-fix --max-warnings 0",
....
}
}checkout documentationLog out... | I'm usingGithub Actionsfor the first time. I'm usingVue-CLI& I want to create a job that lint my files onpush& breaks the build process if there'sESLint'errors.This is mypackage.json's scripts:"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
},This i... | ESLint doesn't break build with Github Actions |
I intend to keep the two as seperate repos so what are my options?
Clone two times (just copy the 1st local clone to a different directory). In the 1st clone remove server subdirectory, in the 2nd remove client.
cloning locally and uploading to a new repo feels slightly unethical to me.
Shouldn't be a problem if t... |
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
... | Bootstrapping from a fork of a repository [closed] |
The docsheredefine the meaning of what Kubernetes considers as 1 CPU. 1 AWS vCPU is equivalent to 1 CPU unit in Kubernetes. | Im trying to set resource limits on some of the deployments in my k8 cluster in AWS,but i was little confused with the relation between Ec2 vcpu vs actual cores.actaully im running a prometheus components as multiple pods ,so how can i derive the resource limit values for prometheus pods?Like how to derive memory & cpu... | AWS 1 vcpu is equal to how many cores? |
2
A blog post explaining memory leak issue with LinkedHashMap in multi-thread context
https://hoangx281283.wordpress.com/2012/11/18/wrong-use-of-linkedhashmap-causes-memory-leak/
Share
Improve this answer
Follow
... |
I'm trying to use LinkedHashMap as a local FIFO cache solution overwriting its removeEldestEntry method to keep size fixed:
Map lhm = new LinkedHashMap(MAX_CACHE_SIZE + 1, .75F, false) {
protected boolean removeEldestEntry(Map.Entry eldest) {
return size() > MAX_CACHE_SIZE;
}
};
but when I constantly add ... | Fixed size LinkedHashMap memory leak? |
Answer is Yes and No. The question is very similar to Is it possible to add/remove/edit the Environment variables after the container instance has been created?
You can update the variables however it will end up recreating the container or "Redeploying" it with the update variables which in turns terminates the conta... |
I am creating a container so my developers can run some e2e on their created features.
The container have a environment variable that is pointing to their URL that they want to run the test. This URL is randomly generated every time.
I am looking to change this environment variable of an existing container in Azure Co... | Azure Container Instances change environment variable on start |
You would see the same in any file part of a commit referenced by multiple tags.The goal is to list all the tags referencing that commit.You can then see:when said commit was first taggedits most recent tag.Consider for instancegit/gitcommit 799767c:Click on the '...' part and: | I'm currently attempting to migrate a large amount of software releases to GitHub from a legacy system (ClearCase). While doing so, I've created this workflow:Read label from ClearCaseGenerate and apply config spec via labelRobocopy files/directories from ClearCase to pre-cloned/initialized git repositoryStage all fil... | Multiple Git Tags Appear In Software Release on GitHub |
git update-index --no-assume-unchanged application/config/config.php
Notice the --no prefix, stylistically a double negation.
|
I just did the following to to keep a different copy of my config.php file in my localhost vs. my production environment:
$ git update-index --assume-unchanged application/config/config.php
Unfortunately, I didn't write the config.php file exactly as I should and I need to reverse this such that I can make the change... | How to undo git update-index? |
The simplest possible manifest that you need to write in order to run a pod. | What is Minimum Viable Pod (MVP) in kubernetes?i've tried to google it but nothing useful was there...i've heard about the MVP consept when i sawthisyaml file and couldn't get what is MVP and why this pod is a MVP! | what is Minimum Viable Pod (MVP) |
MongoDB is not supported currently. Only a certain set of DBs are supported.Storageoptions in LokiThe following are supported for the index:Single Store (boltdb-shipper) - Recommended for 2.0 and newer index
store which stores boltdb index files in the object storeAmazon DynamoDBGoogle BigtableApache CassandraBoltDB (d... | I was going through the loki documentation. And i came across storage section, where you can set the storage to be any DB/FileSystem/InMemory. Currently, i need to store the logs into MongoDB. How can i do it?Loki ConfigurationI don't see any configuration file to store the logs to MongoDB. Is there any reference/confi... | Loki Configuration for MongoDB storage |
Sometime flannel will change it's subnet configuration... you can tell this if the IP and MTU fromcat /run/flannel/subnet.envdoesn't matchps aux | grep docker(orcat /etc/default/docker)... in which case you will need to reconfigure docker to use the new flannel config.First you have to delete the docker network interfa... | So I have a Kubernetes cluster, and I am using Flannel for an overlay network. It has been working fine (for almost a year actually) then I modified a service to have 2 ports and all of a sudden I get this about a completely different service, one that was working previously and I did not edit:<Timestamp> <host> flann... | L3 miss and Route not Found for flannel |
You can usegit diff --name-only $$CODEBUILD_RESOLVED_SOURCE_VERSION $$CODEBUILD_WEBHOOK_PREV_COMMITWhere$CODEBUILD_WEBHOOK_PREV_COMMITis the commit id of the previous commit. And$CODEBUILD_RESOLVED_SOURCE_VERSIONis the commit id of the actual one.Inside a build phase you can check the change with:- |
if [ "$(git di... | I'm trying to set up an AWS CodeBuild project to run tests to validate PRs and commits on a GitHub repository.Because of the nature of the repo (a monorepo combining several ML models):I need to restrict down to only run tests associated with files changed in the PR/commit to keep time+cost under control, butThe tests ... | How can an AWS CodeBuild job see which files have changed? |
According toFeatures Supported by the Editions of SQL Server 2008 R2auditing is only available in 2008 / 2008 R2 Enterprise / Datacenter.According toFeatures Supported by the Editions of SQL Server 2012auditing has been split up in SQL Server 2012, so that basic auditing is now offered in Standard Edition.So what you'r... | I will pre-cursor this with the fact that I am NOT a DBA!I am trying to set up auditing on an SQL Server 2008 R2 Standard edition, but the Audits folder is missing from the Security section.Is this a version issue associated with the "fine-grained auditing" that is only in the Enterprise and DataCenter editions?Any hel... | SQL Server 2008 R2 standard missing "Audits" folder in SSMS? |
No, there is no magic bullet.
(As an aside, you have to realize that there is no such thing as a "directory" in S3. There are only objects with paths. You can get directory-like listings, but the '/' character isn't magic - you can get prefixes by any character you want.)
As someone pointed out, "pre-zipping" them can... |
If I have a directory with ~5000 small files on S3, is there a way to easily zip up the entire directory and leave the resulting zip file on S3? I need to do this without having to manually access each file myself.
Thanks!
| Zip an entire directory on S3 |
I believe you can roll your own cache dependency and use FileSystemMonitor to monitor the filesystem changes.Update: Sample code belowpublic class FolderCacheDependency : CacheDependency
{
public FolderCacheDependency(string dirName)
{
FileSystemWatcher watcher = new FileSystemWatcher(dirName);
... | In ASP.NET I would like to store an object in the cache which has a dependancy on all the files in specific folder and its sub-folders. Just adding the object with a dependancy on the root folder doesn't work. Is there in any reasonable way to do this other than creating a chain of dependancies on all the files? | Create a cache dependancy on a folder and its sub-folder |
The straight answer to your question is that you are misusing the $FAIL_OUTCOME value in if statements.
There you need to use:
if: steps.evaluation_1.outputs.evaluation-1-outcome == env.FAIL_OUTCOME || steps.evaluation_2.outputs.evaluation-2-outcome == env.FAIL_OUTCOME
...
if: steps.evaluation_1.outputs.evaluation-1-o... |
I have the following steps' sequence in a GitHub Actions job (first one is used more or less for debugging purposes
env:
FAIL_OUTCOME: 'fail'
- name: debug
shell: bash
run: |
echo "evaluation-1 result is ${{ steps.evaluation_1.outputs.evaluation-1-outcome }}
echo "evaluati... | GitHub Actions step executed while it shouldn't, based on a conditional |
This looks like the standard Git on Windows line ending related issue ;-)
Running the following command in the bash command line interface should fix your problem.
$ git config --global core.autocrlf true
See this GitHub help page for more information about this subject.
|
I submitted a commit with some fixes here and there, but github is not correctly showing the differences (e.g this line removed, this one added, etc). It just shows two big walls of code, one red (removed code) and one green (added code).
This is not the first time it happen to me, and this last time I was extra caref... | Github is not showing the differences of my commits correctly |
As previously mentioned, you can edit the file at$HOME\.docker\machine\machines\default\config.jsonand set the HTTP_PROXY, HTTPS_PROXY and NO_PROXY variables (or delete them):"HostOptions": {
"Driver": "",
...
"EngineOptions": {
...
"Env": [
"HTTP_PROXY=http:... | I am trying to use docker-machine to create an instance on a private cloud (Openstack) that is behind a corporate http proxy.Is it possible to tell docker-machine to use the proxy or do I need to have a glance image that is already pre-configure with the http_proxy env variable? | docker-machine behind corporate proxy |
To get the metrics of container we need CADVISOR !!to setup it i just follow the procedure belowhttps://github.com/google/cadvisori installed it on each of my nodes !
i run on eachsudo docker run \
--volume=/:/rootfs:ro \
--volume=/var/run:/var/run:ro \
--volume=/sys:/sys:ro \
--volume=/var/lib/docker/:/var/l... | I've setup Prometheus to monitor Kubernetes. However when i watch the Prometheus dashboard I seekubernetes-cadvisorDOWNI would want to know if we need it to monitor Kubernetes because on Grafana i already get different information as memory usage, disk space ...Would it be used to monitor containers in order to makepre... | do i need kubernertes-cadvisor up to monitor kubernetes |
You can't add more fields to a Reference. In JaVers, a Reference is just a global identifier of an entity. Try to describe the problem you have, maybe there is a better solution than changing javers-core model.ShareFollowansweredAug 24, 2018 at 11:51Bartek WalacikBartek Walacik3,44611 gold badge1010 silver badges1414 b... | I was trying to addJaVerslibrary to my current project. And I wondered Is there any ways to add to reference entity fields some field which will be shown instead of Id when I fetch changes?
For example snapshot of User class:{
"owner": {
"entity": "Owner",
"cdoId": 1
},
"username": "TMP",...
}and if ... | JaVers - how to add extra fields to reference entity in JSON |
Use a fiddler to take a look at the HTTP response - probably Response Header has:Cache-Control: no cache.If you using Web API 2 then:It`s probably a good idea to useStrathweb.CacheOutput.WebApi2instead. Then you code would be:public class ValuesController : ApiController
{
[CacheOutput(ClientTimeSpan = 3600, ServerT... | public class ValuesController : ApiController
{
[System.Web.Mvc.OutputCache(Duration = 3600)]
public int Get(int id)
{
return new Random().Next();
}
}Since caching is set for 1 hour, I would expect the web server keeps returning the same number for every request with the same input without executing ... | Caching of ASP.NET MVC Web API results |
If you simply want a universal file to block robots then you can use something like this. This is not specific to a domain.RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^.*(AltaVista|Googlebot|msnbot|Slurp).*$ [NC]
RewriteRule .* - [F,L]Edit: If you're subdomains are accessible from the main root .htaccess file then ... | Our company has temp development urls that are being indexed by search engines. We need to get this to stop via a global htaccess file. By global, i mean i want to drop this access into our root that will apply the rules for each site. Every time we build a new site, i don't want to drop a htaccess file in that folder.... | Block crawlers from subdomain via htaccess |
Not automtaically, but Docker does know which layers are not used in images, and you can remove those "dangling" image layers like this:
docker rmi $(docker images -f "dangling=true" -q)
While you're clearing up, you can also remove exited containers:
docker rm $(docker ps -a -q)
And dangling volumes:
docker volume ... |
I have a script which I use to build docker images. The script starts up a docker container, executes some commands on it, and then does docker commit to fixturize the image. When I commit with an image name/tag, and then later commit with the same image name/tag, I would like the previous image to be removed, since a... | Remove existing image when using `docker commit`? |
You can preload images which will cause them to be in the cache so they are available immediately for things like mouse events. Seethis postfor sample code that pre-caches an array of images.function preloadImages(srcs) {
if (!preloadImages.cache) {
preloadImages.cache = [];
}
var img;
for (var... | I have this webpage which shows me some images and some images are on a mouseover event and hence it takes time for them to display.
I have worked it around by placing the mouseover image and hidding them through display none property which puts them in browsers cache and display them quickly on mouseover.I was thinkin... | Is it possible to insert images in cache before rendering |
The rate function expect a range vector, for example:rate(NumberOfLogins[5m])That means to calcualte the rate within the last 5 minutes at each time point. You can change the5mto other time range.Therefore this would fit you need:rate(NumberOfLogins[5m]) / rate(NumberOfVisitors[5m]) | I have two metrics, Counters to be precise, lets say they are calledNumberOfVisitorsNumberOfLoginsIn grafana I would like to plot is the number-of-logins divided by the number of visitors (or the other way around) over time. So I triedrate(NumberOfLogins) / rate(NumberOfVisitors)but this results in an errorError execut... | How to divide two Prometheus Counters |
The answer you're looking for issum by(job) (increase(web_latencies_summary_count[1m]))with aMin stepof1m.Unfortunately, due to the wayincrease()/rate()is computed by Prometheus, this will actually give you the number of requests over 45 seconds extrapolated to 1 minute (i.e.increase[45s] / 45 * 60). A more accurate fo... | I have prometheus operator which scrapes a metric every 15 seconds:I would like to "zoom out a bit" and show a sum of my latencies per 1 minute instead. However, I can't find a query to do so. I tried various options withrate()andsum_over_time(), but queries simply error out.I also tried changing this option:to 1 m. Wh... | How to sum 15 second intervals within 1 minute window in prometheus? |
Seems like you have misconfigured yourSettings Repository pluginand it pushes your IDE settings into the project's repository instead of its own.Similar case:https://devnet.jetbrains.com/message/5566999#5566999 | I developed my app, then committed and pushed on GitHub (I'm a newbie in version control). Then due to an unrelated problem I had to manually add my GitHub repo into workplace using CLI.I set up a new project and pushed another change. It appeared OK, but when I checked up the repo, I saw many strange xml files in the ... | IDEA sends "personal data" when pushing on GitHub |
As it turns out this was not a problem with security groups. It was just coincidental, that it worked at the time when I changed the security groups.It seems the containers aren't starting fast enough to accept connections from the alb when it starts the health checks.What helped:changinghealthCheckGracePeriodto two mi... | I have an ecs fargate cluster with an ALB to route the traffic to. The docker containers are listening on port 9000.My containers are accessible over the alb dns name via https. That works. But they keep getting stopped/deregistered from the target group and restarted only to be in unhealthy state immediately after the... | AWS Application Load Balancer health checks fail |
The garbage collector can't be "too slow" and run out of memory. Before throwing an OutOfMemoryError, the garbage collector is guaranteed to run. Only if it cannot free enough memory will the error be thrown.You should use a profiler to see whether you have memory leaks, or if you're just hanging on to too many objects... | I've been playing around with caching objects (by first creating my own cache which turned out a stable implementation but very inefficient) and then trying my hand at using Memcached.Although memcached works beautifully, I've ran into a problem.How I'm using my objects is as follows:I read data from a database into an... | Using memcached with Java and ScheduledFuture objects |
Asexplained here, it can be due to the lack of knowledge from the cron session shell of the ssh agent.If that is the case (ie if you are using private ssh keys with a passphrase),keychainis the usual solution (asmentioned here).More details in this example: "Passwordless connections via OpenSSH using public key
authent... | I'm trying to run agit pushfrom cron. When I do the command interactively on the shell it's going through fine. When running the command from my user's crontab, cron delivers the error messagePermission denied (publickey).I presume it hasn't to do with finding or reading my ~/.ssh/id_rsa, as I can cat the file from cro... | Permission denied (publickey) when using crontab [duplicate] |
These icons are done with the font - 'Octicons Regular', so that won't be loading for you for some reason. It is all done with CSS so shouldn't require js to work. See this page for details:
https://github.com/styleguide/css/7.0
Perhaps try checking that you don't have remote font loading disabled (there is a command ... |
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
... | GitHub icons missing [closed] |
When you forked the project, github created a copy of repository under your account. You should be able to pull it using
git clone [email protected]:[your user name]/[repository name].git
Then when you make your changes, you'd commit them and push the updates to github:
git push origin master
Once you did that, repe... |
This is a noob question, but I forked a project and made few edits to it. So now I wish to do the following,
Step 1:
Update the forked project with my changes from Machine 1. is it possible to update forked project and keep the original (master) untouched?
Step 2:
pull the updated fork to machine 2.
Also when I forked... | update GitHUB forked project not the master |
1
Have you tried increasing the allocated memory, e.g. running node with --max-old-space-size=4096?
Share
Improve this answer
Follow
answered Aug 16, 2016 at 16:12
Kiara GrouwstraKiara Gr... |
I'm currently running a basic website on an amazon EC2 t1.micro instance.
The application is built using meteor js.
After a while I get the following error in the errors log file and the server crashes:
FATAL ERROR: Committing semi space failed. Allocation failed - process out of memory
Could somebody help me with t... | committing semispace failed. allocation failed - process out of memory in meteor js ec2 instance |
Thekubectl auth can-icommand makes the following API request:POST /apis/authorization.k8s.io/v1/selfsubjectaccessreviewsWith aSelfSubjectAccessReviewobject as a body parameter namedbody.You can see this by executing the kubectl command with increased verbosity, for example:kubectl auth can-i create pods -v 6And you can... | kubectlhas theauth can-isubcommand. Which K8s API does the command use? I triedauthorization.k8s.io/v1SelfSubjectAccessReviewbut it requires the extra permissions to perform the request. Does anybody know how it works in thekubectl? | What is Kubernetes API analog for `kubectl auth can-i` |
Depends on how automatic you want it to be. A simple approach would be an initContainer to provision a new token, put that in a shared volume file, and then an entrypoint script in the main container which reads the file and sets the env var.The problem with that is authenticating the initContainer is hard. The big ham... | I am fairly new to kubernetes and learning kubernetes deployments from scratch. For a microservice based projecct that I am working on, each microservice has to authenticate with their own client-id and client-secret to the auth server, before requesting any information (JWT). These ids and secrets are required for eac... | Dynamic token generation before deployment in kubernetes |
It looks like an incorrect setting of vm.vfs_cache_pressure = 1000 was causing this misbehaviour. Setting it to 70 fixed the problem and restored good cache performance.
And the documentation explicitly recommends against increasing the value beyond 100. Unfortunately, the Internet is full of examples with insane valu... |
When linking executables (more than 200) in a large project, I get link rate 0.5 executables per second, even if I have ran the link stage a minute before. vmstat shows more than 20MB/s disk read rate.
But if I pre-cache the build directory using "tar cf /dev/null build-dir" once, I get consistent link rate of 4.8 exe... | Why doesn't Linux cache object and/or ".so" files when using GNU Linker? |
The problem is that you forgot to git commit your changes before switching to the master branch. Git doesn't know to where the changes belong, so it just assumes the changes are for the branch you currently are in.If you specify a branch to where these changes should be documented, the merge would be possible.
|
I created a new branch and removed one file from my local repository. Then checkedin to my master to merge my branch. But during the checkout itself the repository is updated and when try to merge my branch its says 'Already up-to-date'
C:\git\junit [cleanup +0 ~0 -1]> git rm '*.md'
rm 'README.md'
C:\git\junit [cleanu... | GIT checkout to master from branch itself updated my local repository |
While it is true that low occupancy SMs cannot sufficiently hide latency, it is important to understand this:
Higher Occupancy != Higher Throughput!
Occupancy is simply a measure of how much work is available for the SM to choose from at any given instant. Having more resident warps gives the SM more ability to do ... |
I have a question about the throughput of a kernel running on a GPU. Assuming its occupancy is 0.5, block size is 256: the programming guide states that it is better to have many blocks so they can hide the memory latency, etc. But I don't understand why this is correct. Because as soon as the kernel has a number of w... | The peak throughput of cuda Kernel on NVIDA GPU |
1
If it's not showing updates when you pull, that's probably because you forked the project. The origin you've been pushing and pulling from is the one for your forked version.
If you print out .git/config, for your local repository, you can see if this is the case. Just ru... |
I have contributed to a Open Source Project in GitHub. There are only one branch master and in my Local there is also one branch named master. I have contributed about 3-4 times.
When I write git pull it show me Already Up to Date. Now the problem is in Open Source there are some changes but I can't get update with t... | How to get latest code of Open Source Project where I have contributed |
https://prometheus.io/docs/prometheus/latest/querying/functions/#label_replacelabel_replace(database_bootstrapping{instance="host1",job="db"}!=0 or absent(database_bootstrapping{instance="host1",job="db"}), "__name", "database_bootstrapping") | I am doing a union operation on two datapoints.database_bootstrapping{instance="host1",job="db"}!=0. no data
absent(database_bootstrapping{instance="host1",job="db"}).Query isdatabase_bootstrapping{instance="host1",job="db"}!=0 or absent(database_bootstrapping{instance="host1",job="db"})Result is{instance="host1",job... | PromQL Union operator omitting __metric__ label |
1
The problem is that an FTP client opens two random ports—one for control, and one for the actual data. Because of the way that Docker networks work, you cannot dynamically map those ports. The non-secure way to resolve this is to add a flag on the run command which elimin... |
Seemed like a fairly straightforward thing to do , I want to use an FTP client to copy files to and from a local docker container on a windows machine.
I am using a bitnami container ( Magento 2 , but please don't tag this post as magento as it's more of a docker question ) , and I prefer using a GUI Ftp client lik... | How to use FTP Client with Docker containers |
It's complicated and discussed herehttps://aws.amazon.com/premiumsupport/knowledge-center/ec2-sudoers-syntax-errors-sudo/Basically you detach the EBS volume from the EC2, mount it on another EC2, use root privs on that host to fix the file and then reattach it to the EC2 | I am working on AWS EC2 machine.
File permission of sudores file is,-rwxrwxrwx 1 root root 902 Feb 5 12:22 sudoersThere are various question on this , but these not works.
When i am trying to do,sudo chmod 444 sudoersThis show error,sudo: /etc/sudoers is world writable
sudo: no valid sudoers sources found, quitting
su... | How to fix this sudo: /etc/sudoers is world writable? |
If you want to set a header for your response you can do this:
namespace App\Http\Middleware;
use Closure;
class AlwaysReturnJson
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handl... |
I have a route in my web.php that returns a view:
Route::get('/', function () {
return view('welcome');
});
welcome is default Laravel view welcome.blade.php.
I have Middleware called AlwaysReturnJson and it contains:
<?php
namespace App\Http\Middleware;
use Closure;
class AlwaysReturnJson
{
/**
* ... | Return every request as plain json Laravel using Middleware |
19
If you have checked "Lambda Proxy Integration" in your Method Integration Request on API Gateway, you should receive the stage from API Gateway, as well as any stageVariable you have configured.
Here's an example of an event object from a Lambda function invoked by API... |
I have the following Lambda function configured in AWS Lambda :
var AWS = require('aws-sdk');
var DOC = require('dynamodb-doc');
var dynamo = new DOC.DynamoDB();
exports.handler = function(event, context) {
var item = { id: 123,
foo: "bar"};
var cb = function(err, data) {
if(err) {
... | How to get the name of the stage in an AWS Lambda function linked to API Gateway |
It leaks in Objective-C because Objective-C doesn’t take any action on it. It relies on you doing all the work. It doesn’t leak in C# (more precisely, in .NET) because it employs a garbage collector which cleans up objects that are no longer used.
The main advantage of garbage collection is the above: you have far fe... |
SO I already know about memory management in objective C, and I never had to know about it while programming in .net (C#). But i still have some questions about how everything is done.
-Why does the code leak in objective c if we allocate an object and not release it?
-Why doesn't this leak in C#?
-What are some advan... | Memory management - C# VS Objective C? |
3
If your application ignores the X-Forwarded headers for setting the scheme in http 3xx responses, you could try setting one or more proxy_redirect rules:
proxy_redirect http:// $scheme://;
See this document for details.
Share
Improve this answer
... |
I am having some troubles with my application. During redirects my flask application lose the https and redirect to http instead.
I've been trying to find the solution but nothing works.
My nginx configuration for the application (location /) is as follows:
proxy_pass http://localhost:5400;
proxy_set_header Host $host... | Nginx, gunicorn, python-flask application. Https is lost on redirect |
2
If you wish to use Python 3, you're going to have to use the Python 3 docker image, in your case it would be:
FROM tensorflow/tensorflow:latest-gpu-py3
You can see all the py3 tags here. There's also an issue about this, but the tl;dr is that the image size is too big i... |
I have a very basic dockerfile as follows:
FROM gcr.io/tensorflow/tensorflow:latest-gpu
FROM python:3.5
RUN pip install opencv-python
RUN apt-get update && apt-get install -y libsm6 libxext6 libxrender-dev
RUN pip install skll
RUN pip install keras
RUN pip install imutils
ADD . /model1
WORKDIR /model1
VOLUM... | Docker: can't import tensorflow in python3 but can in python2 following dockerfile build |
Problem was fixed with SDK Tools revision 19http://code.google.com/p/android/issues/detail?id=28529 | I have downloaded the entire Android SDK from the official website and I installed a new emulator (Android 4.0.3). As long as I don't have GPU emulation enabled it works (even if it need about 5 minutes to start and then uses a lot of resources) but when I enabled it the emulator enters a loop or something and it never... | Android emulator infinite loading and errors when GPU emulation is enabled |
3
According to official documentation, and the steps I followed to install docker in Ubuntu 22.04 LTS
Visit the following site https://docs.docker.com/engine/install/ubuntu/
Scroll down until you find the Install using the convenience script section.
You will find the foll... |
I am following the docker installation tutorial in ubuntu: https://docs.docker.com/desktop/linux/install/ubuntu/
And when I try this step: sudo apt install ./docker-desktop-4.8.1-amd64.deb I am getting the next error: E: Unsupported file ./docker-desktop-4.8.1-amd64.deb given on commandline
Not sure what that means or... | How to install docker correctly in ubuntu 22.04 is it possible at this time? |
Try git reset --hard to throw out the changes (including conflicts) in the working directory and reset your branch to its pre-merge-attempt state.
From the branch you want to merge into, use git merge <other branch>. If there are conflicts, resolve them by opening the files and merging the lines between the <<<<< and... |
I am experimenting with branching on git and running into nightmare after nightmare. Anyway, the current issue is that I wanted to merge the master into the branch. I tried "git rebase" because some site recommended that, and it did a number of destructive things but definitely did NOT merge my trunk into the branch... | simple checkout in git? |
Kindly remove helm using helm uninstall from default namespace and then install again in specified namespace by using -n (namespace)
e.g helm install grafana grafana/grafana -n monitoringthis will work | I have installed prometheus in namespace monitoring and grafana in default namespace.
can i copy or move any of this in either default namespace or monitoring namespace.
What can be the possible issues i can face going forward ?I tried this : helm install grafana grafana/grafana (installed in default namespace)i want t... | kubernete cluster running on kind , setting up prometheus and grafana for monitoring |
I ran into this issue today. Turns out that I had miss configured SonarQube.Analysis.xml. Essentially, it expects<Property Name="sonar.host.url">http://{server}:9000/sonar</Property>including/sonar(which comes from sonar.web.context setting of sonar.properties on the server).I had missed out /sonar in SonarQube.Analysi... | Unable to execute sonar run for ms build when i change the sonar host from localhost to my machine ip.tried changing the host in sonar.properties file and also in sonarqube_analysis.xml.c:\HID\project-test\PACS\sonar_opencover\Project>MSBuild.SonarQube.Runner.exe end
Default properties file was found at C:\HID\project-... | Doesnt find MSBuild.SonarQube.Internal.PostProcess.exe |
Kubernetes allocates a single IP per pod, so no matter how many sidecars you have, a single pod will only have a single IP. Basically, you dont need to do anything in this regardShareFollowansweredSep 11, 2020 at 4:084c74356b414c74356b4170.4k66 gold badges104104 silver badges145145 bronze badgesAdd a comment| | Our Azure kubernetes cluster is configured with Azure CNI for networking which uses the subnet with CIDR: /21.As we are planning to deploy Istio service mesh and additional sidecars for log shipping, how would those impact the available IPs? Would those consume the IPs? If so, how to avoid the IP congestion? | Azure kubernetes - Azure CNI & Istio, sidecar IP allocation? |
It appears that the repository is set up like this, with five commits and four branches:Every pull request has a source branch and a target branch:The first pull request is from branchYto branchX, which means commitssha1andsha2.The second pull request is from branchBto branchA, which means commitssha3,sha4, andsha1.It'... | I have been doing some mining work, I noticed that sometimes different pull requests may have the same commit (based on the sha, I could tell they are same). I am just wondering what would be the reason behind it?Example:Pull request 1 has two commits: sha1, sha2Pull request 2 has three commits: sha3, sha4, sha1Why doe... | Why would a commit be listed in two different pull requests? |
or should I maybe create the virtual environment first, and then clone the repo into that instead?You don't want to put things into the virtual environment directory; this should be managed exclusively by Python's package management tools.It seems to me that if I create the venv folder inside of the repo, I'll have to ... | I've been using Github to host my own repos for a while, and I'm familiar with pushing changes to my own repos, but I've never worked on someone else's project. I'd like to try that now. I'd like to help someone with a Sphinx / reST documentation project.The tutorial I'm following recommends creating a repo on Github, ... | Create Python virtual environment in forked, cloned repo, or clone repo into virtual environment? |
0
Untar archive to some REPOS_PATH
Check the repo with svnadmin verify REPOS_PATH (and fix it in case of problems with svnadmin recover REPOS_PATH)
OPTIONAL: Upgrade the repository located at REPOS_PATH to the latest supported schema version (2009 is rather old) svnadmin u... |
Sometime back, i took a tarred backup of full svn server directory.
Because at that time, in 2009, i couldn't find a good way to take a real backup.
The svn commands don't work on this as the repository url is not available on this machine.
svn log
svn: E200015: Unable to connect to a repository at URL 'http://192.168... | How to re-create a svn repo out of a tarred backup on another machine |
1
At first glance I'd say allocating 10M of continuous memory is already very suspicious. Why do you need that much?
You're on Android, so that indicates an embedded platform, making 10M of memory even more suspicious.
From the documentation I've found on-line you also need... |
I am working on Camera Driver and whenever I try to allocate the memory around 10M, it fails but 4-5M memory is created. Is there a limit to memory allocation using cma_alloc? If yes, how do I increase it?
| cma_alloc fails to create memory chunk of 10M |
Looks like your rabbitmq node is... down.rabbitmqctlneeds a running node to perform these commands.If you're using systemd, you can check the service status:service rabbitmq-server statusOr just try to restart the node:rabbitmqctl start_appTelnet on port 25672 tells you the rabbitmqctl is running, but RabbitMQ itself d... | I am getting node down error on rabbitmq, this is happening sometimes.Able to see the below error when I execute:sudo rabbitmqctl statusorsudo rabbitmqctl list_queuesError: unable to connect to node : nodedown
connected to epmd (port 4369) on host-name
epmd reports node 'rabbit' running on port 25672
can't establish TC... | Rabbitmq: Node down |
It is best at first to generate ssh keys without a passphrase.Or you would have to deal with ssh-agent, as described in "Adding your SSH key to the ssh-agent"ssh-keygen -t rsa -C "key for xxx access" -q -P ""Publish your public key to your GitLab account, and it should not ask for a passphrase (provided you are using a... | I'm relatively new to git/gitlab. For my school gitlab account, I was trying to setupgit pushto not continuously ask for my rsa passphrase by using:export GIT_ASKPASS="<password goes here>"It did not work, and now I'm stuck trying to push to gitlab with a refused connection. Is there an easy way out? Or do I have to se... | Undo: export GIT_ASKPASS="<password goes here>" |
Sax parsing method doesn't load things in memory itself (as opposed to DOM). Only your way of handling events generated by SAX can cause memory overload.
If you allow your users to chose freely an XML source, you have to either:
build a parsing algorithm which stores in BD or file the result of the parsing one elemen... |
java.lang.OutOfMemoryError
at com.solvoterra.xmlengine.Element.<init>(Element.java:9)
at com.solvoterra.xmlengine.XML_Handler_Main.startElement(XML_Handler_Main.java:71)
at org.apache.harmony.xml.ExpatParser.startElement(ExpatParser.java:146)
at org.apache.harmony.xml.ExpatParser.append(Native Method)
at org.apache.ha... | OutOfMemoryError |
Git is different from SVN in that Git is a DVCS - Distributed Version Control System. That means every "working copy" is a full blown repo. Repos can talk to themselves and there is no need for a main repository ( but usually there is a main or "blessed" repo that is the central.)
So when you created a Git "working c... |
I was using "Tortoisesvn" to take control of my programs's source code. But sometimes, I had problems/bugs while using it. So I decided to use "git"( http://code.google.com/p/msysgit/ ) Also, I'm using git with "Git Source Control Provider" visual studio plugin. Source control is very easy with this extension.
So now ... | Starter Questions for Using Git Windows Version with Git Source Control Provider |
This depends on what your frontend and backend apps expect in terms of paths. Normally the frontend willneed to be able to find the backend on a certain external pathand in your case it sounds like your backend needs to be made available on a different path externally (/api) from what it works on within the cluster (/)... | Here is my situation, I'm on kubernetes (ingress), with two docker images: one dedicated to the web and the second one to the api.Under the next configuration (at the end of the message):/webwill show the front-end that will make some calls to/api,all good there.but/is a 404 since nothing is defined, I couldn't find a ... | Default path on multiple nginx ingress rewrite |
I was able to set up a remote private registry by referring to this:Remote access to a private docker-registrySteps:On registry host, rundocker run -p 5000:5000 registryOn client host, start Docker service bydocker -d --insecure-registry 10.11.12.0:5000(replace 10.11.12.0 with your own registry ip, and you might want t... | I need some tips on setting up a 'remote private Docker registry'.README.mdon Docker-Registry mainly focus on private registry running on the same host, does not specify how other machines can access it remotely (or maybe too complex to understand).So far I found these threads:Docker: Issue with pulling from a private ... | Setting up a remote private Docker registry |
1
When speaking about http, webserver detects which of configured servers was requested by checking Host header. In you case, you tell nginx to proxy requests to another server, but instruct it to pass original Host header to that server. Obviously, there is no configuratio... |
As a Nginx newbie i am trying to get a reverse proxy working to an external domain. Later on I will need to port to an internal domain. When trying to reverse proxy to an external domain i seem to hit a wall and the response is a 404 cannot be found.
The goal is when i try to access http://localhost/example the revers... | Nginx reverse folder location to external website |
Your Python script is trying to access an environment variable called "my-api-key", but it's not found.If you're using bash, you can set the environment variable using theexportcommand before running your Python script:export my-api-key=your_apiJust replaceyour_apiwith your actual Grafana API key. After setting the env... | I have a grafana running in a container on a vm and I expose port 3000 on my localhost. I have a code in python that exports a dashboard information in CSV format, but when I specify the grafana API key I get the following error:File "grafana-exporter.py", line 10, in <module>
API_KEY = os.environ["my-api-key"]
F... | KeyError when trying to export information from Grafana API |
I had the exactly same problem and spent a couple of hours...
I guess you are using older version of nginx (lower than 1.7)?
In nginx 1.7 you can use this directive:
proxy_ssl_server_name on;
This will force nginx to use SNI
Also, you should set the SSL protocols:
proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
For earl... |
NGINX acting as a caching proxy encounters problems when fetching content from CloudFront server over HTTPS:
This is the extract from the NGINX's error log:
2014/08/14 16:08:26 [error] 27534#0: *11560993 SSL_do_handshake() failed (SSL: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure) w... | NGINX caching proxy fails with SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure |
We can consider this from the perspective of your personal computer - I think that this can connect to github when needed, and can connect to the shared drive where the other users have access, right?This repo can have two remotes defined: github and the shared server copy of the repo:git remote add github https://gith... | I have a setup where users (of a server) cannot reach github.com directly, but we can use git (and the GitHub app) with a local repo on a shared drive. That location can be mounted on other computers on our LAN, incl. my personal computer VPNing in. My question is how I could push it up to github.com to allow versionin... | how to use github with two local repos (of the same project) |
TheTLS handshakeprocess sets up asymmetrickey between both parties, potentially usingasymmetriccryptography in the process (the details depend on the exact algorithms that were negotiated between client/server). This way, the communication is encrypted on both ways, not only one-way.The thing that ultimately protects y... | Most of the wiki articles describe how client browser uses the public key (certificate) encrypt sensitive data (such as username/password) and send this encrypted data to server. Server will use private key to decrypt it. I get this part. But no clear information saying how server encrypt data and send back to browser.... | How does SSL encrypt data from server to client? |
If you're trying to use very large lists in 64 bit environments you need to enable large objects in the application configuration.
http://msdn.microsoft.com/en-us/library/hh285054.aspx
The OOM is likely due to the way Lists/ArrayLists allocate memory, which I believe is each time their boundary is reached, they attem... |
Given the opportunity to rewrite, I would, but anyway, the code as it stands:
List<string> foobar;
Then we add a bunch of strings to foobar.
At count=16777216, we hit an out of memory limit.
My understanding is that each string would be a different size. Indeed looking at the data (not my data), most are 2 or 3 chara... | I hit an OutOfMemoryException with List<string> - is this the limit or am I missing something? |
First, use thekinesisvideoclient to obtain an Endpoint:import boto3
kinesis_client = boto3.client('kinesisvideo',region_name='us-west-2')
response = kinesis_client.get_data_endpoint(StreamARN='...ARN...',APIName='GET_MEDIA')Theresponsevariable contains:{'ResponseMetadata': {'RetryAttempts': 0, 'HTTPStatusCode': 200, ... | Under the boto3 docs:https://boto3.readthedocs.io/en/latest/reference/services/kinesis-video-media.html#KinesisVideoMedia.Client.get_mediait says that I need to run theGetDataEndpointAPI first to get an endpoint before I runGetMediabut it doesn't say how to feed that endpoint in?So I have tried to run:import boto3
kin... | Boto3 kinesis video stream: Error when calling the GetMedia operation |
After the increment, they are reboxed usingInteger.valueOf(), and for small absolute values (between-128and127by default), that uses the cached instances. | I've been reading over java caches for class and I'm not exactly sure why this code works.Integer x = new Integer(2);
Integer y = new Integer(2);
assert x != y;
assert x.intValue() == y.intValue();
++x;
assert x != y;
assert x.intValue() != y.intValue();
++y;
assert x == y;
assert x.int... | Java cache and equality |
In Amazon Cognito, the User Pool ID is considered to be a sensitive piece of information, and it is used only inAdminAPI calls. The SignUp API call is not AWS SigV4 Signed, and it is meant to run on the browser side instead of the server side.From the App Client ID, Cognito implicitly understands which User Pool you ar... | In the aws-sdk cognito documentation there is a function listed calledsignUp()that quote "Registers the user in the specified user pool and creates a user name, password, and user attributes." However, there is no parameter for a user pool Id. How exactly does one specify the user pool they want to add to? At first gla... | CognitoIdentityServiceProvider.signUP() doesn't accept user pool id? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.