Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
Given the output you included above, I suspect that Skaffold is copying the file across:Syncing 1 files for test/test-> auth:941b197143f22988459a0484809ee213e22b4366264d163fd8419feb07897d99 Watching for changes...but your app is not set up to respond to file changes. You need to use a tool likenodemonto watch for file...
When I change inside index.js file inside auth directory then skaffold stuck onwatching for changes...I restarted but every time when I change it stuckSyncing 1 files for test/test-auth:941b197143f22988459a0484809ee213e22b4366264d163fd8419feb07897d99Watching for changes...> auth > node_modules > src > signu...
Skaffold is not detecting js file changes
Wrap the S3 upload() function with the node.js stream.PassThrough() stream. Here's an example: inputStream .pipe(uploadFromStream(s3)); function uploadFromStream(s3) { var pass = new stream.PassThrough(); var params = {Bucket: BUCKET, Key: KEY, Body: pass}; s3.upload(params, function(err, data) { console...
I'm currently making use of a node.js plugin called s3-upload-stream to stream very large files to Amazon S3. It uses the multipart API and for the most part it works very well. However, this module is showing its age and I've already had to make modifications to it (the author has deprecated it as well). Today I ran...
Pipe a stream to s3.upload()
This is not a bug, but rather a configuration issue. Rulesquid:S110can be configured to filter out classes from the inheritance tree. By default, no class is ignored and the rule simply count the number of inheritance levels till reachingObjectclass. In order to configure filtered classes, you have to set up thefiltere...
This is my setup:SonarQube 5.6.6SonarJava plugin 4.8.0.9441Code:public class BaseActivity extends android.app.Activity {} public class FooActivity extends BaseActivity {}SonarQube thinks thatFooActivityviolatessquid:MaximumInheritanceDepth:This class has 6 parents which is greater than 5 authorized.android.app.Activit...
Sonarqube error : This class has 10 parents which is greater than 5 authorized [duplicate]
This is what made my day (am forever grateful to Mr C. Eastwood) :) The nginx container doubles as a reverse proxy in my design - and handles the 443 security end of things - allowing 'ordinary' application servers to deal with the business logic: # ./docker-compose.yml version: '2' services: proxy: build: ./sha...
I have a very peculiar issue with this set of docker files: docker run will do what I want whereas docker-compose will not I'm quite noob'ed with Docker hence this probably rather simple question - and I apologise in advance! but I just cannot pinpoint my err docker run -p 80:8080 -i -t lakrids_devlakrids 172.17.0....
docker vs docker-compose nginx: [emerg] host not found in upstream "httpstat.us" in /etc/nginx/nginx.conf:21
3 Note that if you are using docker toolbox (meaning docker through a VirtualBox VM), only /c/users/mylogin is available by default. You need to declare other mount locations if your path does not include c:\Users\myLogin. You access more of the C drive only through HyperV ...
I'm using Windows 7 Enterprise Docker Client version: Version: 1.12.2 API version: 1.24 Go version: go1.6.3 Git commit: bb80604 Built: Tue Oct 11 17:00:50 2016 OS/Arch: windows/amd64 Docker Server version: Version: 1.12.3 API version: 1.24 Go version: go1.6.3 Git commit: 6b64...
how to mount localhost volume to a docker container using docker-compose
You can use Fluentd as adaemonseton your cluster.see this repo and docker images ->fluent/fluentd-docker-imageand use this filter to addKubernetes metadatato every log collected by Fluentd and then use a grep filter to exclude logs that are not in your namespaces.something like this:# Collect pod logs <source> @type ...
My company has a cluster that's already been monitoring by a datadog agent. But my team needs a monitoring just for us. I already looked on fluentd, prometheus and so on, but I cound't find an option for use a tool that I don't need to install in my namespace.Does anyone know an option that I can collect the logs of my...
Monitoring pods on namespace without create a new namespace
make sure that your pod has a label called "app"Labels: app=<appname>if you are using helpm chart add the label in the helper in {{chart-name}}\templates_helpers.tpl{{/* Selector labels */}} {{- define "<appname>.selectorLabels" -}} app.kubernetes.io/name: {{ include "<appname>.name" . }} app.kubernetes.io/insta...
My Pod is not appearing in the prometheus targetsthe application is exposing metrics '/metrics'I added a service monitor to expose the serviceapiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: abc # Change this to the namespace the Prometheus instance is running in # namespace: default l...
My Pod is not appering in the prometheus targets
There are two ways that I would do this. Both are ways of adding 'C:\xampp\htdocs\k2' to your include pathUse.htaccessAdd this line to you.htaccessfile in the web root. You can add other directories as desiredphp_value include_path '.;C:\xampp\php\PEAR;C:\xampp\htdocs\k2'Makse sure Apache is configured to allow htacess...
I have created a website using mvc framework, but I cant include php files in files that are from another folder. For example, I have model, view, controller and core folders, if I do the followingrequire 'Core/User.php'; in a view file in view folder, then I get the following error:Warning: require(Core/User.php): fai...
Require(): Failed opening required (include_path='.;C:\xampp\php\PEAR')
I had the same problem but withgeoklibrary. I checked syntax of dependencies declaration lines onJitPackwebsite and there were different than I had on my build.gradle file. Finally I changedfrom:implementation "com.github.piruin:geok:$geokVersion" implementation "com.github.piruin.geok-gson:$geokVersion"to:implementati...
I added this library from GitHub into my android app:implementation 'com.github.quiin:unifiedContactPicker:1.0'Now, this library uses other libraries from GitHub. When I run my app, it tells me that these internal libraries are not found, so I dig them up and find their dependencies and add them to my app's Gradle file...
Execution failed for task ':app:dataBindingMergeDependencyArtifactsDebug'
If you want to push your master branch on the (local) repo A to a new branch called branch1 on a (remote) repo B, you need to Make sure that B is listed as a remote repository for repository A at at the correc URL: while within repo A, run git remote -v If you don't see the URL corresponding to repo B in the list, y...
I have a local repo A, with only one branch (master) and a remote repo B. Each of those repos has its own history. I want to push repo A's master branch to a new branch called branch1 in repo B. How can I do that?
How can I push a branch into a separate remote repo?
You can get such events with creating hooks in linux compatible languages (such as go,python etc.) to relevant k8s object's watch endpoint. i.e./apis/apps/v1/watch/namespaces/{namespace}/deployments/{name}is the watch endpoint ofDeploymentobject. You may find the watch endpoint of the object you desire from the API ref...
I'd like to receive a notification whenever there are any changes to the kubernetes cluster. Pods are created/deleted, etc. This can be a in a form of a webhook, or a message in a pub/sub, etc anything that can be used in autonomous manner.Running the kubernetes cluster in gcp.
K8s Pod Lifecycle Hooks
ThenohupWikipedia page can help; you need to redirect all three IO streams (stdout, stdin and stderr) - an example withyes:kubectl exec pod -- bash -c "yes > /dev/null 2> /dev/null &"nohupis not required in the above case because I did not allocate a pseudo terminal (no-tflag) and the shell was not interactive (no-ifla...
I am trying to execute a Python program as a background process inside a container withkubectlas shown below (thekubectlcommand is ran from the local machine):kubectl exec -it <container_id> -- bash -c "cd some-dir && (python xxx.py --arg1 abc &)"When I login into the container and checkps -efI do not see this process ...
How to run a background process on a container with kubectl exec?
It is very tough to predict the kind of back-end you would need without knowing the inside out of what you are building. Even after knowing all those, you will have to change things on the fly.I would suggest you get started, then measure and improve on the fly. I can just give you some guiding points, though:Try this...
I would like to use amazon web services for my website. But I am very confused about aws. My website will enable users to write blogs, share pictures, videos, and music from soundcloud. And I am hoping for 20,000 users (fingers crossed!). These are the things that I am confused about:What ec2 instance should I start wi...
Confused about hosting in amazon web services
The problem is launcher icon in the library clashes with the one in your project.Rebuild the project after removingandroid:icontag from your project's manifest file. I tested the library in my project and got the same error. Here is Gradle Build Messages from my build.Attribute application@icon value=(@drawable/lefo_ic...
I want to useSuperSaiyanScrollViewin my Android project (Android Studio)https://github.com/nolanlawson/SuperSaiyanScrollViewWhen I add this line in mybuild.gradle:compile 'com.nolanlawson:supersaiyan-scrollview:1.2.0@aar'I get an error:Error:Execution failed for task ':app:processDebugManifest'. Manifest merger failed ...
Add a library from GitHub
Not only forbindbut to any other command, withinFreeBSDyou could usektrace, it is very verbose but could help you to get a quick overview of how the program is behaving.For example, in latest FreeBSD's you havedrillcommand instead ofdigso if you would like to know what is happening behind scenes when you run the comman...
I want to know how does the DIG (Domain Information Groper) command really works when it comes to code and implementation. I mean when we enter a DIG command, which part of the code in FreeBSD or BIND hits first.Currently, I see that when I hit the DIG command, I see the control going to a fileclient.c. Inside this fil...
How does DIG utility work in FreeBSD and BIND?
0 I don't sure that I understand what you ask, but I'll try to answer and hope it will help. In general, for clear value from stack, there is an operation called pop. So to remove a value of value type or a value of reference type, you popping it. The vice versa is push to ...
I'm trying to study the details inside CLR and one of the things that might sound obvious to me doesn't fit for me: How is a value type cleared from the Stack? I understand the GC clears all heap without an address in the stack but I read it doesn't clear stack assign value type. any ideas?
How to remove a value type from the stack?
The short answer is yes. The longer answer is that you can set (for example) a texture as the render target, which deposits your results there.Unless you're really set on using a shader to do the calculation, you might want to consider using something that's actually designed for this kind of job such as Cuda or OpenCL...
As far as I know, certain mathematical functions like FFTs and perlin noise, etc. can be much faster when done on the GPU as a pixel shader. My question is, if I wanted to exploit this to calculate results and stream to bitmaps, could I do it without needing to actually display it in Silverlight or something?More speci...
Offloading to HLSL/GPU without displaying?
2 Most probably these details are added by Gitlens extension. This specific feature is called Current Line Blame and can be disabled by tweaking Gitlens settings. All you need to do is simply go to Preferences and Search for gitlens current line. Under Gitlens settings you'...
This question already has answers here: Disable annoying source code modification indication (13 answers) Closed 3 months ago. I want to hide the details next to the code. I tried...
How to hide the name of the last person edited the line? [duplicate]
it does not work because your last condition is not matching only the root but any uri that has / in it, which is basically everything. Try the following instead:RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d [OR] RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^(.*)$ /my/subfolder...
I would like mod_rewrite to redirect all requests to non existing files and folders, and all requests to the main folder ("root") to a subfolder. So i've set it up like this:RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f [NC] RewriteCond %{REQUEST_FILENAME} !-d [NC,OR] RewriteCond %{REQUEST_URI} / [NC] RewriteRu...
.htaccess redirect root to subfolder
1 You may need to update .bashrc file in $HOME directory (~/.bashrc), not /etc/profile or /etc/profile.d/myvars.sh export PATH: export PATH=$PATH:/opt/bin To set it permanently, and system wide (all users, all processes) set variable in /etc/environment PATH=$PATH:/opt/bin...
I have a container based on Ubuntu 16.04 and installed some custom stuff into /opt/bin. Now I want to add /opt/bin to $PATH. However, no matter what I try, the path variable isn't available after the Docker container restarts. So far I tried to add export PATH=$PATH:/opt/bin to /etc/profile and /etc/profile.d/myvars...
Correct way to set PATH variable within a Ubuntu docker container
The event payload does not include thetemplate_repositoryproperty you are looking for. But you can retrieve the information by retrieving the repository's information using a REST API call or a GraphQL query. For example, try thisconst { template_repository } = await context.github.repos.get(context.repo())Iftemplate_r...
I have an Github Bot (Probot) that I use to handle automation for things like naming conventions etc etc.I also have a number of teams that we use for controlling visibility and I was wondering if it's possible to use the Probot to assign certain teams access when a Repo is created from a particular template.However I ...
Check if a Github repo was created using a template from Probot
The easiest way is to use tensorflow image with dockerhttps://hub.docker.com/r/tensorflow/tensorflow/and for GPU you can use the nvidia tools with preinstalled existing image or add it up with the docker file..
Tensorflow GPU version, nvidia driver version, cudnn version has special compatibility matrix. This compatibility matrix creates problem in packaging and ditributing tensorflow model which can run by others without any hassle when I pass them.Container based technologies(e.g. docker) would also have problem as it won't...
How to package tensorflow-gpu model to run on most of the machines?
there is an error in the parameters, try this insteadminikube start --v=7
Is it possible to run the kubernetes api-server in minikube with maximum log verbosity?$ minikube start --v 4didn't work for me. When I exec into the api-server container and do ps, the api-server commandline didn't have --v=4 in it. So, minikube is not passing the --v = 4 down to the api-server.Thanks.
Run Kubernetes api server in minikube in verbose mode
Are you running parcel from/? Try making aWORKDIRand then run parcel, works for me.
When I run my nodejs application in a docker container, the parcel build step fails with an error message that isn't helpful. The app runs fine locally without Docker.I created a simple app to test my problem out. My package.json is{ "name": "test", "version": "1.0.0", "scripts": { "start": "parcel index.html...
Docker error: Parcel (Parceljs) won't work in Docker
Well, netlify is critical unless you want to host your website with GitHub pages. So you could follow the netlify documentation to set up your site and point to your GitHub repository. Alternatively, you could stick with GitHub pages, which means you need to change your repository name to nknauer.github.io and switch...
I am following the instructions here: https://alison.rbind.io/post/up-and-running-with-blogdown/ I did everything except for the Netlify section which I am assuming is optional. Here is my issue: I was able to deploy what I have to github in the link here: https://github.com/nknauer/nknauer How do I view my blog no...
deploy blogdown in R
Using mod_rewrite:RewriteEngine On RewriteCond %{QUERY_STRING} ^(option=com_oldtoys&.*)&start=[0-9]+(.*)$ RewriteRule ^index\.php$ /index.php?%1%2 [L,R=301]
Need help on 301 redirection for all string matches 'start' parameter in oldtoysIncorrect URL been generatedhttp://www.abc.com/index.php?option=com_oldtoys&view=category&Itemid=2&start=45&limitstart=300 http://www.abc.com/index.php?option=com_oldtoys&view=category&Itemid=2&start=30&limitstart=275 http://www.abc.com/ind...
Htaccess Redirection for url with matching string
You can use shell script and order crontab, on /scripts/postwwwacct After each create account this scripts (/scripts/postwwwacct) insert your desire cron jobs on user cron.man cron & man crontabcrontab -u user file_with_cronjobsAfter this cron of user contents cronjobs on file_with_cronjobs
I have a WHM/cPanel account and each hosting account that is created requires a list of cron jobs to be entered in cPanel.Is there an easier way to create these cron jobs each time instead of inputting each one manually into cPanel >> Cron Jobs on every new cPanel account creation?Thanks for any help with this.
Easiest way to import/export a list of cron jobs per hosting account?
You can find println's in a few places:Resource Manager -> Your Application -> Logs -> stdoutYour S3 log directory ->containers/application_.../container_.../stdout(though this takes a few minutes to populate after the application)SSH into the EMR,yarn logs -applicationId <Application ID> -log_files <log_file_type>Shar...
I am running my Spark application on EMR, and have several println() statements. Other than the console, where do these statements get logged?My S3 aws-logs directory structure for my cluster looks like:node ├── i-0031cd7a536a42g1e │   ├── applications │   ├── bootstrap-actions │   ├── daemons │   ├── provision-node │ ...
Where does EMR store Spark stdout?
Sorry, But if I understand your question correctly. You want to move everything to a different location. So, first of all there is no concept of undoing any checkout. When you checkout to a different branch in git. It just points your HEAD to another commit. That's it. So, if you want to move back to the master branch...
I was suppose to copy files on my CentOS 7 machine from a remote branch of git repo. I created a new folder at incorrect location and clone the repo. After this I have checkout the remote branch also. I did following steps: 1. Git Clone ( Worked fine) 2. Git Checkout branch name ( worked fine) U...
Undo the Git remote branch checkout
There are some misunderstandings here.There terminology aboutmicroserviceisnot about sizebut more an organizational thing. Ten years ago, the whole system was deployed as amonolithbut now it is recommended that teams should not be bigger than 5-8 persons - and those teams should work in their own pace with their owndep...
Considering the following scenario:I have one mainheavy serviceand many othersmall microservices.Thesmall microservicesare consumed only theheavy service.Only the mainheavy serviceis exposed to the public internet.What is the best practice to deploy those services into ?All together in the same kubernetes cluster:The m...
Best practice to deploy microservices into kubernetes
docker-machineis used as a part of Docker Toolbox.Docker Toolbox isVirtual Box + Docker Machine + boot2docker unix image with docker + KitematicDocker for Windows isHyper-V based Moby Linux with Docker. So you are not using docker toolbox that is whydocker-machine lsis empty. Whiledocker psis showing you results. Docke...
I have docker for windows running on windows 10. I think its working correctly. I saw something interesting and wanted to ask if anyone had any thoughts on this.I have two docker images running. The command "docker ps" lists them (below). When I run "docker-machine ls" I get nothing. Shouldn't "docker-machine ls" ...
Is empty 'docker-machine ls' output valid when 'docker ps' shows running containers?
To squish the commit together:git rebase -i upstream/masterThe-iwill activate interactive mode, and you will be able to decide for each commit if you want to squish it with its parent (called "fixup"), or if you want to edit the commit message (called "reword"), or if you want to add/remove/update files in the commit (...
We're learning Git and we're using GitHub as our hosting site.We all fork theupstreamrepo and PR our commits up toupstreamto get our changes in.We're trying to learn how to squish our commits to keep the upstream commit history nice and clean(ish).We commit often :)So ... if we submit a Pull Request .. and then the pro...
Is it possible to squash Git commits after a PR has been submitted and changes then committed?
Add the following line in your Dockerfile and build again.RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tzdataShareFollowansweredJul 20, 2020 at 11:12raviktravikt1,02277 silver badges1616 bronze badges8Ok, but why the second dockerfile does work fine, without that envDEBIAN_FRONTEND?–mnjJul 20, 2020 at 11:23By ...
I have 2 dockerfiles:FROM ubuntu:20.04 RUN apt-get update && apt-get install -y \ software-properties-common \ python3FROM ubuntu:20.04 RUN apt-get update RUN apt-get install -y software-properties-common RUN apt-get update && apt-get install -y \ python3The thing is: when I run the first of them (withdocke...
Docker build stops on software-properties-common when run with `apt update`
Copy the following into a file, save it as cron_caller.php PHP Code:<?php file_get_contents('http://night-city.comeze.com/cron.php'); ?>Upload that file into your '/public_html/' folder.Next, login to 000Webhost.com (http://members.000Webhost.com), select 'Go to cPanel' for the appropriate site.Scroll towards the botto...
I'm trying to set up a cronjob on the 000webhost servers.This is the command line for the cronjob I use. It should refresh every hour but it doesn't (I set up a write do my database to check)NOTE: For some strange reason I can't change the "php -f /home/a2902119/" part.php -f /home/a2902119/public_html/database/Klassem...
Setting up cronjob 000webhost
To perform sonar scan onAngular Project, you need to installtypescriptfirst. So, we need nodejs >=8 and npm installed. Check this post onHow to install nodejs and npm in Jenkins.and also,How to integrate sonarqube in JenkinsSample Pipeline:pipeline { agent any tools {nodejs "node_v10"} stages { stage('Git ...
I'm trying to integrate Jenkins and Sonarqube. I'm using the Sonarqube-Scanner plugin in jenkins. When I build the job, I get the following errors:-Failed to get Node.js version. No CSS files will be analyzed.Failed to get Node.js version. No TypeScript files will be analyzed. You can exclude TypeScript files from anal...
Error while to integrating Jenkins and Sonarqube for analysing my Angular project
Istio works by limiting the network connectivity using firewall rules to force traffic through the mesh network. This is (currently) based on kubernetes services not concrete pods.Hazelcast should not work with istio yet, according to:https://groups.google.com/forum/#!topic/istio-users/d-THsO19oAMAlthough I assume that...
I am usingistio 1.0.2 versionwithistio-demo-auth.yaml, and I usedhazelcast-kubernetesin the k8s cluster environment.I was using hazelcast-kubernetes in the k8s cluster before, when scale two hazelcast-kubernetes StatefulSet, they can join together, and working with my services. Not using istio that time.Recently our se...
Does Istio support hazelcast-kubernetes?
I guess you mean you don't want to add a Service of typeNodePortas for your case that seems like an additional proxy layer. I can see how it is an additional layer in your case. Typically Kubernetes would be doing the orchestration and the Service would be part of the service-discovery mechanism. It sounds like you cou...
We have an old service discovery system that requires processes to register its ip:port during startup. On a kubernetes cluster, we exposed a service that enables NodePort. The processes within container can register to the old system with their Pod Ip:port + HostIp. For the clients within the same kubernetes cluster, ...
Access a specific pod from external
2 When asking for sensitive information, terminal applications tend not to show what you're typing -- this way they don't give away the length of your password. Don't worry, even if it's not showing up, it's still registering what you're typing. Share ...
I'm using the anaconda prompt to clone my public git repo I've just created. No problem cloning and committing a test file locally, but when I try and push the changes I get the following: error: failed to execute prompt script (exit code 255) Username for 'https://github.com': Never seen this before but fine. I ente...
I'm trying to push to public repository I've just created but it's failing
As others have pointed out, you need to generate two key pairs. And then when you need to work using your personal key on personal projects, clone the repo as follows.ssh-agent bash -c 'ssh-add /home/<user>/.ssh/personal; git clone[email protected]:user/project.git'For employer projects, clone as follows.ssh-agent bash...
I use my computer for many different things, as I’m sure many devs do. But I only have one public ssh key, and I hope to keep it that way. I have two accounts for github.com: one for personal use, and one for my employer.So, when I am using the account with my employer, I’m trying to add my ssh key as I usually do,...
How to use same ssh public key again for another on github account same laptop computer?
You need to listen on port 443 (HTTPS) and redirect to HTTP. You don't have anything showing that you're listening on 443. Try this instead: server { listen 443; server_name exapmle.com; rewrite ^(.*) http://example.com$1 permanent; }
I try to redirect HTTPS request to HTTP using NGINX. This how I edited /etc/nginx/sites-available/default on my VPS: server { listen 443; server_name exapmle.com; rewrite ^(.*) http://example.com$1 permanent; } server { listen 80 default_server; listen [::]:80 default_server; ...
NGINX redirect HTTPS to HTTP
Try: $ bitbake -c cleansstate gcc-cross ; bitbake -k gcc-cross How much you have memory of ram? Report log error here.
I have a BitBake build process that runs on a Docker container (CentOS 7). The BitBake fails during recipe gcc-cross-i586-5.2.0-r0: task do_compile on each run that I try it in. An example of bitbake's output: NOTE: recipe gcc-cross-i586-5.2.0-r0: task do_compile: Started ERROR: Worker process (367) exited unexpecte...
What causes BitBake worker processes to exit unexpectedly?
The response fromsts:AssumeRoleincludes a property calledExpiration:{ "AssumedRoleUser": { "AssumedRoleId": "AROA3XFRBF535PLBIFPI4:s3-access-example", "Arn": "arn:aws:sts::123456789012:assumed-role/xaccounts3access/s3-access-example" }, "Credentials": { "SecretAccessKey": "9drTJvcXLB...
I imagine this is likely, but I haven't found any explicit information saying that it's true.When receiving a Credentials object from AssumeRole, is the Expiration in UTC time?
AWS temporary credentials — is the Expiration time in UTC?
This answer explain exactly what I want to obtain in a very simple way. The idea is to have different IP addresses on the host machine, for example using IP aliasing on a single network interface and then launch each container specifying the IP address to where they will be reachable in addition to the exposed port (s...
I have a host machine with multiple IP addresses assigned to one network interface. I'd like to configure Docker in order to have containers "responding" each one to a single IP of these IP addresses assigned to the host machine. Can this be done with libcontainer or do I have to use the LXC driver and run my containe...
How to configure a Docker container to be reachable by container_ip:port from outside the host machine?
The gem command line tool automatically caches gems. From the documentation: Gem::Installer does the work of putting files in all the right places on the filesystem including unpacking the gem into its gem dir, installing the gemspec in the specifications dir, storing the cached gem in the cache dir, and installing e...
When using Python with pip we can specify an environment variable which says to also download the packages to a cache location: "How do I install from a local cache with pip?". export PIP_DOWNLOAD_CACHE=$HOME/.pip_download_cache pip install numpy How can we do the same for bundler as well?
How to install Ruby Gems, also caching them along the way?
5 Try deleting C:/somelocation/.git/index.lock. More on that You may then need to do a reset: git reset Share Improve this answer Follow edited May 23, 2017 at 12:00 CommunityBot 111 silver badge ...
Im currently using git repository. Unable to push my files to the remote repository. It says "Discard Changes - Cannot unlock" for C:/somelocation/.git/index. No other details to figure out the problem. Even tried to reset. git reset But gives the below error. An internal error occurred during: "Resetting to refs...
Git error when trying to push: Discard Changes - Cannot unlock
What if this application that is adding items to the queue crashes? Kubernetes would be able to reboot the application, but I do not want to add in file paths that are already in the queue. The app would need to know what exists in the queue before adding in filesif you are looking for searching option also i would su...
I want to read file paths from a persistent volume and store these file paths into a persistent queue of sorts. This would probably be done with an application contained within a pod. This persistent volume will be updated constantly with new files. This means that I will need to constantly update the queue with new fi...
How to read in file paths into a queue that is in a Kubernetes cluster?
4 This command should work I believe sudo docker exec fluentd pkill -1 -x fluentd I tested it on sleep command inside fluentd container and it works. Share Improve this answer Follow answered Au...
Supposing my container is named fluentd, I'd expect this command to reload the config: sudo docker kill -s HUP fluentd Instead it kills the container. Seems there is some spawning of a few processes from the entrypoint: PID USER TIME COMMAND 1 root 0:00 {entrypoint.sh} /usr/bin/dumb-init /bin/sh /bin/e...
reload containerized fluentd configuration
I suggest using the hex notation for each of the whitespace chars:pattern = "^[^,&*\\x0A\\x0D\\x09]*"This way, the pattern will be passed as^[^,&*\x0A\x0D\x09]*text and\xNNregex escapes will be parsed by the regex engine itself, not by the language engine.
I'm having the regex in one of the file as shown below.pattern = "^[^,&*\n\t\r]*"But when i check-in that to github, it's getting converted to invalid characters as shown in the below image.I have added the .gitattributes as shown below. Still getting this error. Any help would be appreciated.* text=auto *.proto text
Regex getting converted when checked-in to github
For the succesful execution of thetarcommand in Docker is required sufficient temporary storage.It can either be a SWAP or RAM.Thus, the easiest way how to fix this issue is (temporary) increasing the RAM available to Docker in Preferences/Advanced setup of Docker to amount higher than is size of the repository (assumi...
Attempts to pull (docker pull <image>) large Docker images (over 3 GB), e.g.:blang/latex:ctanfull; orsumdoc/texlive-2017;end on MacBook Pro (16GB RAM, macOS High Sierra, Docker Version 17.12.0-ce-mac49) with message:failed to register layer: Error processing tar file(exit status 1): unexpected EOF. Pulling smaller imag...
Docker Pull - failed to register layer: Error processing tar file(exit status 1): unexpected EOF
I solved a similar problem by settingSystem.setProperty("http.keepAlive", "false");before I did my HTTP calls. There seems to be a problem with Android keep closed connections in its connection pool and trying to reuse them.
In the app I'm working on, I have to make an HTTPS connection to a web server. I was getting certificate not trusted errors and after consulting stackoverflow, I found this blog posting:http://blog.antoine.li/index.php/2010/10/android-trusting-ssl-certificates/It seems like the CA for this server is not included in An...
Android SSL error: certificate not trusted...sometimes
First you'll need to register the netdata instances in Consul. if you're running netdata in Docker containers you can use something likehttps://github.com/gliderlabs/registratorfor zero effort registration, if not, use service definition files or Consul's catalog API.Here's an example for scraping Consul services with ...
According to the document:https://github.com/firehol/netdata/wiki/Netdata,-Prometheus,-and-Grafana-StackWe can use Consul as the registry where all the Netdata agents will be registering and later Prometheus will scrape the Consul registry to get the registered endpoints and scrap the data out.I tried looking for docum...
Setting up Netdata -> Consul -> Prometheus Stack
Yes, you can not use the php artisan config:cache with your Lumen project, because it is not available out of the box.You can add it by addingthis package (orumad/lumen-config-cache)to your project:composer require orumad/lumen-config-cache
I'm trying out the PHP micro Framework Lumen (from laravel). When I set up Lumen and I try to use thephp artisan config:cachecommand like in Laravel, I get this error :[InvalidArgumentException]There are no commands defined in the "config" namespace.So I have problem when I try to deploy the files to server, so I have...
Lumen php artisan config:cache not found
You can set expire for the static files in nginx configuration. For example if you don't want to cache css, js and png files. you can define sth. like: location ~* \.(css|js|png)$ { expires 0; break; } so they won't been cached. But i assume you are making ./manage.py collectstatic after you change your stati...
This is a pretty core question. I have a django app that I run in an nginx/gunicorn configuration. Nginx is responsible for proxying to gunicorn, but it also serves the static files of the project directly. The issue is, when I update the static files, the browser doesn't load the latest version. Sometimes a refresh f...
Proper way to serve updated files without user refreshing on nginx
You need to put the key file in the .ssh directory beneath your home directory, not the root directory of your project. Linux On a linux based machine you can get to the right directory with cd ~/.ssh This is where you need to put your key file. Windows On a Windows machine, the directory you need to put the key file...
I'm trying to logon to an EBElastic Beanstalkinstance. eb ssh I then get the error: ERROR: NotFoundError - The EB CLI cannot find your SSH key file for keyname "myName". Your SSH key file must be located in the .ssh folder in your home directory. In the root directory of my project I have a directory: .ssh In it...
Elastic Beanstalk ssh says it can't find my SSH key file
2 No, you cannot do this presently on Github. Share Improve this answer Follow answered Jun 22, 2016 at 15:26 expezexpez 39933 silver badges1515 bronze badges Add a comment  ...
I have a repository with a few open issues. In a commit you can reference an issue will be closed, and these are noted in GitHub that they will be closed when a pull request is complete. Once these are checked in, I'd like to be able to ignore them while looking for new bugs to address. For clarification, there are fo...
Filter issues on Github that will be closed by a pull request?
If that's the only rules you have in your htaccess file and it's in your document root then you need to check a few things because the rules are fine.Make sure mod_rewrite is loaded. There should be a line in yourhttpd.conffile that looks something like:LoadModule rewrite_module modules/mod_rewrite.soMake sure it's unc...
I'm trying to use.htaccessto send all traffic tohttps. I'm using the example in this answer:Need to redirect all traffic to httpsRewriteEngine on RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}This isn't redirecting anything for me. I placed it invar/wwwbut it doesn't seem to have any effec...
how do I force all traffic to https?
Could it be that git uses "its own" openssh for signing commits instead of window's openssh, even though I configured the ssh command?Yes. Use:git config --global gpg.ssh.program "C:\Program Files\OpenSSH\ssh-keygen.exe"with the appropriate path, if you want to be using Windows OpenSSH and SSH agent. Do not forget to c...
When I sign commits or tags with my ssh key (git commitorgit tag -s), git keeps asking for the passphrase of that key. However, I do not want to enter the passphrase for every commit.I use two different keys for authentication and for signing. Both keys are added to the ssh-agent and I do not have to enter the passphra...
How can I prevent git from asking for the passphrase for a ssh signing key when signing commits or tags?
This is a known bug:https://bugzilla.mozilla.org/show_bug.cgi?id=1129806Be sure to upgrade to the latest Firefox release, as some aspects of the bug have been fixed already.ShareFolloweditedApr 19, 2016 at 13:27answeredOct 8, 2015 at 10:39Daniel DarabosDaniel Darabos27.2k1010 gold badges104104 silver badges117117 bronz...
I'm using FirefoxDeveloperEdition 36 on OSX 10.10.1. I've enabled the "Disable Cache (when toolbox is open)" option in the toolbox's settings panel:However, I'm not seeing my changes until I manually clear the cache viaPreferences=>Privacy=>clear your recent history, even if I have the toolbox open.I'm usingRequireJSt...
Firefox and RequireJS still pulling from cache even with toolbox open
$ apt-get install -y liblzma-dev
I'm trying to install docker-registry. I got stuck after this:$ apt-get install python-pip python-dev $ pip install -r requirements.txt [...] backports/lzma/_lzmamodule.c:115:18: fatal error: lzma.h: No such file or directoryThe docker-registry I downloaded is v0.6.7
backports/lzma/_lzmamodule.c:115:18: fatal error: lzma.h: No such file or directory
The load balancer can serve the expired certificate if the certificate is still associated. Once you upload a new self-managed certificate, remove the older ones.When the SNI hostname matches CNs or SANs in more than one certificate, the certificate selection is based on client-specific and internal factors that cannot...
We have updated and installed our new SSL certificate on GCP. Everything looks OK. The previous SSL certificate is still valid and assigned to a proxy group.Question:How can we assign the new certificate to the proxy groups?Or does the certificate switch as soon as the previous expires and we don't have to take any act...
Question on assigning new SSL certificate before expiration GCP
I would suggest looking into NVidia NVAPI.ShareFollowansweredAug 3, 2010 at 18:13JoseJose31111 silver badge33 bronze badgesAdd a comment|
I have a NVIDIA GeForce 8400GS graphics card which has a DVI output and I would like to take a video or series of frames and display them as the DVI output for WUXGA (1,920 × 1,200) @ 120 Hz with GTF (2 x 154 MHz), which is a possible display mode for DVI according to the wikipedia article. I want to do this because I ...
Programming GPU to control DVI output
28 Removing [profile default] from ~/.aws/config solved it for me. Share Improve this answer Follow edited Jun 14, 2020 at 19:17 answered Dec 3, 2019 at 10:31 milanmilan 12...
I am trying to run CDK commands to check the diff of my local and remote stack. I am using the following command. cdk diff --profile saml I am getting the following error message Unable to resolve AWS account to use. It must be either configured when you define your CDK or through the environment I am looking for w...
How to resolve: 'Unable to resolve AWS account to use. It must be either configured when you define your CDK or through the environment'
The following Java options might help diagnose your problem: -XX:+UnlockDiagnosticVMOptions The UnlockDiagnosticVMOptions options logs the garbage collection actions so that you can see what happens before your out of memory error. I use the following options to help make garbage collection run better for my Java ser...
I am using pentaho pdi version 4.1. I am getting java.lang.OutOfMemoryError: Java heap space error. My input is salesforce step and it would have more than 40000 rows. I tried setting -Xmx JVM option [in both spoon and kitchen] from 512M to 1048M. I got the same failure again.
Java Heap Space error In Pentaho
A “Not Supported” message will show because PHP is not able to run under root using cPanel.To allow scripts to run firstly install and enable suPHP, then set the PHP Handler to use suPHP and it should allow you to run .php scripts under temp URLs.Login to cPanel WHM and install suPHP (Choose EasyApache 4 from the menu ...
I access the web from an IP address likehttp://xx.xx.xx.xx/~cpaneluser. With this I'm able to access the html file but when I try to open a .php file it's showsNot Supported Error. Please help me to solve this issue.Hear I havecPanel/WHMBoth Access and it's hosted on theAmazon AWS EC2.
Cpanel Apache mod_userdir Showing Not Supported Error on PHP File Execution
You can use rolling update mechanism to update the service without outage which will update one pod at a time until the desired state match, and still your services are up and running. Of course we must have to update our containers inside the pod to protect our data and to get latest features out. Kubernetes makes it...
I'm very new to kubernetes and all I want to do at this point is restart my cluster and have it run an updated dockerfile. I'm running kubernetes in google-cloud-platform by the way.
How do I redeploy everything in kubernetes after updating a dockerfile?
Most programming languages have a "sleep" function that you can call to make the program stop doing stuff. You are in control of the memory usage; you can deallocate your memory before going to sleep and reallocate it when coming awake, but... It might be better to just set up some recurring job. I don't know how to ...
I am doing a delphi application that will run on my pc 24/7 in the background and will check if it has to do some actions or not, wait 30 minutes and check again, and so on. How can I make sure the application will not overload cpu or memory because of being running all the time.
Safest way to idle delphi application to wait for timer?
From Quarkus guide:https://quarkus.io/guides/scheduler-reference#concurrent_executionNote that only executions within the same application instance are considered. This feature is not intended to work across the clusterso I suppose you have to move to Quartz to get cluster support out-of-the-box or create your custom s...
In Quarkus framework how to schedule a job to execute only in one pod rather running in all pods. I tried (concurrentExecution = SKIP) that didn't help.Run the job only in one pod on multi instant application.
Quarkus scheduler in multiple pods (other than concurrentExecution = SKIP)
No it is not possible. Having an SSL connection between two entities in which one accepts all data defeats the purpose of having a secure connection. Either use a non-SSL port for convenience or configure the trust stores for security. Can't have both. Sorry.ShareFollowansweredApr 19, 2013 at 8:38XargosXargos64388 silv...
I want to implement a client application to get some information of a weblogic server. The communication has to be secure because the weblogic server is configure secure.Now I'm able to establish a ssl communication. With following settings:System.setProperty("weblogic.security.TrustKeyStore", "CustomTrust"); System.se...
It is possible that a weblogic ssl communication accept all certificates?
The solution is to set the externalTrafficPolicy of the service to Local. In this way, the request will stay in the targeted node.
I deploy prometheus-node-exporter helm chart (https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus-node-exporter), the installation is working, this is a DaemonSet, so one pod per node.My prometheus server is outside of my k8s cluster, so I need to expose the service to give access to metrics...
Kubernetes Prometheus node exporter not targeting good one
Use Rewrite:RewriteEngine on RewriteRule (.*) http://www.newdomain.com/ [R=301,L]ShareFollowansweredJul 15, 2010 at 13:40Sven KoschnickeSven Koschnicke6,60322 gold badges3434 silver badges4949 bronze badges42This takes every request tohttp://www.newdomain.combut does not forward them.–StarxDec 13, 2012 at 23:20Why do y...
How can I redirect all requests (irrespective of what page is being requested) on sub.domain.com to newdomain.com? Currently I haveRedirect 301 / http://www.newdomain.com/When a requests comes in for domain.com/shop/product the redirect goes to newdomain.com/shop/product while it should just go to newdomain.com
htaccess: redirect all requests to different domain (without query arguments)
The problem was coming from the carriage return at the end of the input stream in the openssl command.I changed to this instead:#!/bin/bash while read oldrev newrev refname; do tmpfile=$(mktemp --suffix=.json) data="{\"ref\": \"${refname}\"}" sig=$(echo -n "${data}" | openssl dgst -sha1 -hmac "%{WEBHOOK_SECRET...
I have a need similar toEmulate github service hooks wih curl, but I'm also using a secret in my webhook, and it's not working properly.Here is what I'm doing as a post-receive hook:#!/bin/bash while read oldrev newrev refname; do tmpfile=$(mktemp --suffix=.json) cat << EOF > $tmpfile { "ref": "${refname}" ...
Emulate github hook with curl with secret
Usenetsh.exe. Averysimple batch file that takes a port argument:@echo off rem -- open port (first argument passed to batch script) netsh advfirewall firewall add rule name="Open Port %1" dir=in action=allow protocol=TCP localport=%1 remoteip=10.15.97.0/24,10.17.0.0/16
Is there any way within a batch file to open up specific ports on Windows through a batch file? It would be nice to have the installer do this for our server application rather than having the user manually do it.
How to open ports on Windows firewall through batch file
SecurityGroupscanonly be used for default VPC. Since you are explicitly assigningVPCIDtoInstanceSecurityGroup, this will be considered as non-default, resulting in failed deployment.YoumustuseSecurityGroupIds(notSecurityGroups) in your case as your VPC use will be considered asnon-default:SecurityGroupIds: - !G...
I am trying to EC2 instance (new), Security group (new) and VPC(existing). Here is my cloudformation template.When I run the template in Stack, I got error as*"Value () for parameter groupId is invalid. The value cannot be empty"*. How to solve this?Template:Parameters: VPCID: Description: Name of an existing VPC...
How to use existing VPC in AWS CloudFormation template for new SecurityGroup
After closely looking at the GitHub WebHook configuration and the payload output, there was a mismatch. GitHub WebHook was configured to pass request in content type : x-www-form-urlencoded. Further the payload print also looks like urlencoded and not json. But my helper function in AWS Lambda that parses the webhook ...
While parsing the payload received from a GitHub WebHook, facing this issue JSONDecodeError: Expecting value: line 1 column 1 (char 0) payload looks like payload=%7B%22action%22%3A%22created%22%2C%22issue%22%3A%7B%22url%22%3A%22https%3A%2F%2Fapi.github.com%2Frepos%2FChaiBapchya%2Fincubator-mxnet%2Fissues%2F13%22%2C%22...
Parsing a GitHub WebHook payload results in Json decode error
Yes, it's possible. The easiest way is that you could using Export to backup the database to blob storage outside of the resource group the databases is located in On portal. For example: Export: Export database: Choose the blob storage out of the resource group which the databases is located in: For more details, ...
I'm trying to figure out if there is a way to backup Azure SQL Databases (Not SQL on Azure VMs) to a service vault or a blob storage outside of the resource group the databases is located in. So far I have not found any resources on the topic. Can anyone confirm that this is not possible?
Backup of Azure SQL Database to Recovery Services vault
try this:put this on your Model:public class NoCache : ActionFilterAttribute { public override void OnResultExecuting(ResultExecutingContext filterContext) { filterContext.HttpContext.Response.Cache.SetExpires(DateTime.UtcNow.AddDays(-1)); filterContext.HttpContext.Response.Cache.SetValidUntilEx...
This question already has answers here:Closed11 years ago.Possible Duplicate:How to programmatically clear outputcache for controller action methodHow to clear cache in specified controller?I try to use several approaches:Response.RemoveOutputCacheItem(); Response.Cache.SetExpires(DateTime.Now);There is no any effect, ...
How to clear cache in specified controller in asp mvc? [duplicate]
As the error message says, there are problems validating the SSL certificate ofb.com.I see you're usingrequestlibrary, so as a workaround you could passstrictSSL: falsein options:{ url: 'https://b.com', method: 'GET', ... strictSSL: false }
I have this website (let's call it a.com) which is on AWS. It is done using NodeJs backend and view front end. It is calling another system API (let's call it b.com) for the DATA from some other URL.This site was working fine. We updated SSL certificate of site b.com and now site a.com is not able to receive data from ...
"RequestError: Error: unable to verify the first certificate" error after updating certificate of API server
Your code prints the memory location of thekid1variable, and that does not change if you assign a new value to the variable.IfKidis a reference type (class) then you can useObjectIdentifierto get a unique identifier for the classinstancethat the variable references:var kid1 = Kid(name: "A") var kid2 = Kid(name: "B") p...
I'm a little confused regarding Swift's memory management. Can someone explain to me how come kid1 always stays at the same memory address? Even when I do kid1=kid2 or initialize a new object?
Swift's memory management
Update:The flexible environment now supports theUpdated health checks, consisting of separately configurableliveness checksand/orreadiness checks, both with a configurablepathcapability.Note that these updated health checks are not compatible and cannot coexit with the legacy health checks:You must enable updated healt...
My service uses a url like this:/v1/lookup_stuff/v1/is the base url for everything in the service, so when the health check pingsit gets a 404. I need to update to ping/v1/(Possibly useful information, the service is in Docker, and is accessible when I manually go to the right URL)How do I point gcloud's health service...
Docker in Google App Engine Flexible health check has wrong URL
1 The issue was indeed related to a difference between Application Pool settings. In my initial comparison between Site A and Site B, I missed that Site A had Enable 32 Bit Applications set to True and Site B had Enable 32 Bit Applications set to False. The lesson here is ...
I have two .NET 4.6.1 MVC web applications, with identical code, that are running on IIS 10.0.14393.0 on Windows Server 2016. When viewing the worker process in IIS, the memory is around 150mb for Site A but 350mb for Site B. I know the code is identical because I copied the directory for Site A to create Site B. I...
IIS Worker Process has High Memory Usage for Identical Sites on Same server
Check out github repo from Heroku? from the command line you can pull from heroku easily: git pull heroku master have set up a hook on Github to hit a Django Heroku app url after each push, but I don't know how to run a git pull in python from a Django app running on Heroku? Is it a different heroku App (from the ...
I would like to be able to log the number of words in certain files in a Github repo whenever there is a new push to the repo. I have set up a hook on Github to hit a Django Heroku app url after each push, but I don't know how to run a git pull in python from a Django app running on Heroku. Is it possible to write to ...
How can I check out a github repo from Heroku?
The docker compose documentation specifies thatlinksis deprecated and should be replaced withdepends_on.It does not. The docs only say, thatlinksalso express dependency between services in the same way asdepends_on, so they determine the order of service startup.I fail to see how this concludes, that you should usedepe...
Thedocker compose documentationspecifies thatlinksis deprecated and should be replaced withdepends_on. I can't figure exactly how.Here is the working docker-compose file (withlinksinstructions) of an application which has 3 services:a nginx reverse proxya nodejs appa php apiversion: "3.1" services: nginx: image...
how to replace `links` with `depends_on` in a docker-compose file?
What you can do is have some conditional logic on the manifest-attribute in the html-tag, so you don't set the manifest for that page you don't want cached. I used that for login screens etc.e.g.:<html <?php if(!dontCacheThisPage) echo 'manifest="yourmanifest.appcache"'; ?> >
I am trying to use appcache to cache most of my webpage resources files (js, css) to speed up webpage loading. However, the problem is that appcache also cache the current webpage. This brings problem that the viewed webpage is not up to date. How can I prevent appcache from caching the current page, but only the resou...
Prevent appcache cache current page
+100The only way to achieve that withprometheusthat I know is to userecording rules:groups: - name: my group interval: 30s rules: - record: my_metric_name:new # name of new metric expr: my_metric_name{instance="foo:9100"} labels: instance: fooThis is far from ideal because you...
Using prometheus it's nice to keep the number of values a label holds low, to make querying faster.So, for a metric I'm collecting from several (hundreds) of targets I'd like to have a list of allowed values, all other would end as "other".I can ofcourse do this on my targets but I would much prefer to have it done cen...
Limit number of allowed values for a label whan scraping targets
The producer/consumer model is a good way to proceed. And Microsoft has their newParallel Extensionswhich should provide most of the ground work for you. Look into theTaskobject. There's a preview release available for .NET 3.5 / VS2008.Your first task should read blocks of data from your stream and then pass them onto...
I have an appliction right now that is a pipeline design. In one the first stage it reads some data and files into a Stream. There are some intermediate stages that do stuff to the stream of data. And then there is a final stage that writes the stream out to somewhere. This all happens serially, one stage completes and...
C# Stream Design Question
The problem was that both sites used the same DATABASE inside mySQL, the solution was to create different databases in mySQL and assign each website to it.Then the wordpress sites will take the info from different databases and not route.
I built two WordPress websites, one bound to port9000and one to8000. They are both connected to the same MySQL database.When I access the port8000it works perfectly and connects to both the website and the database.On the other side, when I access the port9000it just automatically redirects me to the port8000and to its...
Docker automatically changes port in URL
0 You could simply create a new remote repository, which would be this time not a fork, but a new empty one. From there, you can locally change the remote URL cd /path/to/local/repo git remote set-url origin /new/url git push --mirror In that new remote repo, any PR will n...
I am using GitHub Enterprise Server 2.18.7. I have set the default branch in the branch settings to something other than master. However all my pull requests still default to upstream's master branch. If that is not possible, is there a way to cut ties with upstream altogether? We do not plan on pushing any code upstr...
Github all pull requests go to upstream instead of current fork
0 You can run the svn checkout command to checkout a working copy of your project and schedule to svn update to bring the working copy up to date with the repository's state. Alternatively, you can run svn export. You can use Windows Task Scheduler to automatically run your...
Let me start by saying we already backup the repository on the file system, I also create a dump of the repository which is also backed up. Just tested hotcopy and all it does is create a copy of the repository, which we already backup. I've been requested to create an automated export of working copies for all projec...
Automatically export a working copy from SVN
Not a direct answer to your question, but one of the key selling points of swarm mode is the built-in service discovery mechanism, which in my opinion works really nicely. More related, I don't think it's possible to specify the desired interface for an overlay network. However, when creating a network, it is possible...
When using Docker swarm mode and exposing ports outside, you have at least three networks, the ingress network, the bridge network and the overlay network (used for internal cluster communications). The container joins these networks using one of eth0-2 (randomically each time) interfaces and from an application point...
Is there a way to rename network interfaces in Docker swarm?
1 i must say at first i would have thought like you about the differential backup size ... so i had to check it up... from what i could read : The downside is if you run multiple differential backups after your full backup, you're probably including some files in each diffe...
For my backup plan for SQL Server 2005, I want to do a full on Sunday: BACKUP DATABASE myDatabase TO DISK = 'D:\Database Backups\myDatabase_full.bak' WITH FORMAT GO Then I want to do a differential nightly the rest of the week: BACKUP DATABASE myDatabase TO DISK = 'D:\Database Backups\myDatabase_Diff.bak' WITH DIFFE...
Database backup - differential file size question
3 A good way to capture a heap dump when a OOME happens is to add the VM parameter -XX:+HeapDumpOnOutOfMemoryError. You will get a HPROF heap dump that can be opened by JProfiler and other tools. In JProfiler, the first stop for checking excessive memory consumption is the ...
I am using play framework with JAVA for my application. My application consuming more memory than allocated memory. Sometimes I am getting the exception like java.lang.OutOfMemoryException. please help me, how to find the memory leak in java and how to reduce the memory usage of java? I am using jProfiler to find the ...
Memory leak in Play framework application
1 You could launch the whole setup using docker compose. A good starting point for the docker-compose file is the one given here: https://airflow.apache.org/docs/apache-airflow/stable/start/docker.html You can choose either the default UID=50000 and GID=0 or a custom UID. C...
I'm working on a project that is using apache airflow to schedule different scripts. Airflow itself and the scripts setting up the DAGs are bundled up in one Dockerfile. The central part of each DAG is a dockeroperator which starts the appropiate container on the host system. (Note: It is a requirement that each airfl...
Using apache airflow docker operator with rootless docker
0 Use retrofit with proper annotation. And debug the code set by step.The you get the problem. Share Improve this answer Follow answered Oct 30, 2017 at 7:38 umeshumesh 1122 bronze badg...
URL url = new URL(link); connection1 = (HttpsURLConnection) url.openConnection(); String auth = username + ":" + access_token; String token = "Basic " + (Base64.encodeToString(auth.getBytes(), Base64.NO_WRAP)); connection1.setRequestProperty("Content-Length", "0"); connection1.setRequestMethod("PUT"); connection1.setR...
Github "PUT" request in Android studio
When youask your model for prediction, you can specify options likerunning on CPU only. One possible reason why your model isn't running on GPU might be that you have something likelet options = MLPredictionOptions() options.usesCPUOnly = truein your code and you passoptionsto the prediction method. Put theusesCPUOnlyp...
I am really new to Coreml and Metal.Now I am working on a project testing performance of Core Ml model. I implemented a CNN model based on tensorflow and convert this model to .mlmodel using tf-coreml tool.But in my CNN model, it has an op named 'equal', which Coreml does not support. It converted into a custom layer o...
why I enabled Metal API but my Coreml custom layer still run on CPU
I found from this article that Requester-managed: Indicates whether the network interface is managed by AWS. A requester-managed network interface is a network interface that an AWS service creates in your VPC on your behalf. The network interface is associated with a resource for another service, such as a DB instan...
I am trying to determine what is using a network interface. It is not being used by any of the instances, NAT gateways, or elastic IPs that are in my account. It shows as The instance section doesn't list the instance ID, but it does list an Instance Owner that is not my own account: How can I find more details on w...
How to determine what is using this AWS network interface?
TheGitHub repositorycontains the following two examples:top.jstop_pods.jsThe essential parts:const kc = new k8s.KubeConfig(); kc.loadFromDefault(); const k8sApi = kc.makeApiClient(k8s.CoreV1Api); // node k8s.topNodes(k8sApi).then(...); // pods const metricsClient = new k8s.Metrics(kc); k8s.topPods(k8sApi, metricsClie...
I am using the nodejs kubernetes client@kubernetes/client-nodein a current project and I want to collect metrics (memory, network, cpu) from podsnow with the cli I'd just usekubectl top podsor exec /sys/fs/cgroups/cpu/...However I was unable to find the correct API or call in the npm package. Unfortunately the document...
How to get kubernetes pod metrics with nodejs
It depends on the programming style (and on the language, but you are referring to C).If you work a lot with pointers (or you have a lot of references in some languages), RAM consumption goes up.If you use a lot of data with fixed size, such asdoubleorint32_t, RAM consumption does not go up.For types likeintorlong, it ...
From what I have found so far it's clear that programs compiled for a 64-bit architecture use twice as much RAM for pointers as their 32-bit alternatives -https://superuser.com/questions/56540/32-bit-vs-64-bit-systems.Does that mean that code compiled for 64-bit uses on average two times moreRAMthan the 32-bit version...
What is the memory usage overhead for a 64-bit application?
In Traefik 1.7, there is an option to add custom headers, and define a host header for the backend healthcheck:https://docs.traefik.io/v1.7/configuration/backends/docker/For exampletraefik.backend.healthcheck.hostname=foobar.comPlease note that 1.7 is still in RC, but you can test it out to see if it resolves your issu...
Traefik Version:1.6.4My company uses Docker Swarm to present applications as services, using Traefik for routing. All has been working fine so far, but we're having trouble implementing backend health checks in Traefik.All of our applications expose a health check, which works fine and returns 200 via a simple curl or...
Traefik backend health checks not working
Is there a way to configure github to copy the entire pull request description into the merge commit?No, as GitHub uses by default agit merge--log, where a a shortlog of the commits being merged will be appended to the specified message.That is a convention you would find on the repository for Git itself, where:one mer...
Let's say I have a pull request on github. I've spent a tonne of time on it and so enter a long, meaningful description for the PR explaining exactly what happened and why:Immanentises the eschaton. This eschaton is righteously immanentised by to rapidly frobnicating the plurglewhatsits.I then merge the pull request a...
Can I get the full pull request text in a Github merge commit?
I have same issue. By checking the Maven .m2 repo the required file name ends asFinalinstead ofFINAL- Case Sensitive. I have removed the folder (eg :/Users/knaller/.m2/repository/org/hibernate/hibernate-core/4.1.8.Final) and rebuild again. The new folder4.1.8.FINALgot downloaded by maven and issue got resolved.
I'm trying to upload my project to a remote sonarqube server.The project is a multi-module project.I'm getting an error on the parent project. Sonar's log:[INFO] cv-parent ......................................... FAILURE [ 2.962 s] [INFO] cv-common ......................................... SUCCESS [ 1.236 s] [INFO] ...
Eclipse / Maven / SonarQube : Invalid value of sonar.libraries