Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
If you just care about version control on your local machine, then you do not need a GitHub account. If you ever want to work on multiple machines, then you will need a place to host your remote repository. GitHub is the most popular option, but there are other online providers like Bitbucket or GitLab. If you want al...
If I'm just a solo dev working on a personal project but still want to use Git for local versioning, do I need a Github account?
Using Netbeans on solo project, new to Git/GitHub, do I need an account?
There is no difference in squashing if the both commits are from the office or one of them is from a different computer. You can follow your normal squashing procedure as if all commits were done from your desk.Please note that you don't need to squash the commits in the feature branch. You could squash when merging:gi...
Since I started to work on the same project from both my desktop and laptop, I've been facing a super annoying problem regarding the master branch history:So I create a feature branch on the desktop, do work, and commit to remote. Later that day, let's say when I'm at the train, I pull the branch on my laptop and commi...
How to squash commits on that came from 2 different places?
Came across a similar issue, one thing I don't see mentioned here is you need to start docker to listen to both the network and a unix socket. All regular docker (command-line) commands on the host assume the socket.sudo docker -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock -d &will start docker listening to any ...
I'm trying to use the Docker API to connect to docker daemon from another machine. I am able to do this command successfully:docker -H=tcp://127.0.0.1:4243 imagesBut NOT when I use the real IP address:docker -H=tcp://192.168.2.123:4243 images 2013/08/04 01:35:53 dial tcp 192.168.2.123:4243: connection refusedWhy can't ...
How to connect to Docker API from another machine?
Hope you your load balancer forward the traffic from 443 to the backend target port 3190 in case of Istio. Check your Istio gateway file wether you have 443 port mapped with the targets.
I have my app running on EKS which is using istio-ingressgateway service for load balancer and Knative serving I have added ACM to my ELB, but after patching the service withmetadata: annotations: service.beta.kubernetes.io/aws-load-balancer-ssl-cert: "arn:aws:acm:xx-xxxx-1:1234567890:certificate/xxxxxx-xxx-dddd-...
After adding AWS ACM EKS ELB is not opening on HTTPS
NSURLIsExcludedFromBackupKeyshould compile fine on 5.1+ SDK.As the key is not available for 5.0, the following snippet could act as a workaround.if (SYSTEM_VERSION_LESS_THAN_OR_EQUAL_TO(@"5.0.1")) { const char* filePath = [[URL path] fileSystemRepresentation]; const char* attrName = "com.apple.Mobil...
My iPhone application contains approx 500 MB data. and application will use this data offline. So i mark the folder to do not backup/copy on iTunes. so i am using below url :https://gist.github.com/1999985But it says 'NSURLIsExcludedFromBackupKey' undeclared. and i also tried to usedhttps://developer.apple.com/library/...
'NSURLIsExcludedFromBackupKey' undeclared
To use buildx, make sure your Docker runtime is at least version 19.03. buildx actually comes bundled with Docker by default, but needs to be enabled by setting the environment variable DOCKER_CLI_EXPERIMENTAL. export DOCKER_CLI_EXPERIMENTAL=enabled If you're on Linux, you need to set up binfmt_misc. This is pretty e...
I am running a Jenkins Alpine Linux AMD64 docker image, which I'm building myself and want to add linux/arm64 docker buildx support to it, in order to generate multi-platform images and I do not know how it supposed to work. When I check the supported platform I get: + docker buildx ls NAME/NODE DRIVER/ENDPOINT STATUS...
Build linux/arm64 docker image on linux/amd64 host
10 You can do it like this: protected void onCreate(Bundle savedInstanceState) { setContentView(R.layout.high_scores); BitmapFactory.Options opts = new BitmapFactory.Options(); opts.inPreferredConfig = Config.RGB_565; BitmapDrawable highScoresBg = BitmapFa...
I'm trying to lower the memory usage of my app, and I noticed most of it is caused by the activities' backgrounds: in XHDPI, 720*1280*4 = 3.6Mbytes each, and Android doesn't seem to release them as soon as they're not in use anymore. Is there any way to tell Android to load certain resource images as RGB 565 instead o...
Loading image resources as RGB 565
GetFinalFireTimehasn't beenimplemented yet.GetNextValidTimeAftershould be working if you're using one of the latest versions.If you want to generatecron expressionsin c# you can useCronScheduleBuilder.UPDATE:You can find a simple projecthere(QuartzNetCronExpressions.zip) where you can see how it works.NOTE: I've used V...
I have one problem which refers to quartz.net cron expressions. I have read many articles and tried many pieces of code but without any results, so I feel little bit hopeless and that's why I decided to ask You. Maybe somebody also had similar problem. Is any way to parse cron expression for Quartz.Net to DateTime for...
Parse cron expression in Quartz.Net
4 First add the library project as module. File->New->Import module then add this line to your dependencies in gradle compile project(':yourmodule') Share Improve this answer Follow answered D...
I am going to use cognalys (third party library) in my app for mobile verification..I cloned that from git hub and i imported that cognalys in my app as module.How to use that module as library in my project(how to convert that as library)..I dont know how to use that..By using that only i can create a class for mobil...
How to use module as library in android
Well the gcp created for you in the background. I assume you pushed your docker image or CI to cluster and from there you just did few clicks right? same stuff you can do it on openshift environment. but in the background yaml file get's generated. if you edit the pod on your UI you will see that yaml file.as above @Vo...
TLDR: My understanding from learning all about K8s is that you need lots and lots of yaml files, however, I just deployed an app to a K8s clusters with 0 yaml files and it succeeded. Why is that? Does google cloud or K8s have defaults it uses when the app does not have any yaml file settings?Longer:I have a dockerized ...
No YAML Files in K8s Deployment
In my opinion, this is a bad idea to use the Google Drive synchronisation with a Git folder. Git's purpose is to sync your projects already, you should not let another program do that before git ! You have to clone your project and then do commit - push - pull between your PCs. Why do you want to use Google Drive if y...
So I tried to work on a project in two laptops. I've committed this project folder into Git via Github. Then I move this project folder into local Google Drive folder, and let the Google Drive sync it into the new laptop. On the new laptop, I have downloaded Github Desktop and have signed in to my account. Now, the fo...
Github Desktop doesn't recognise my copied folder from external source which contain .git files
Ah well, got the answer myself, after a bit more tries. The key was to encompass the whole app with a firewall rule for the^/pattern, that contains ananonymous: ~as well as aform_loginblock.ShareFollowansweredApr 9, 2015 at 6:48user2335286user2335286111 silver badge22 bronze badgesAdd a comment|
In my Symfony2 project, I want only secured access to any URL under the /user pattern; while the index page (/) and a few other pages (eg. /about ) should be available without signing in. And all this works fine currently. However, after a user has logged in, if he visits the index page, or the about page, he gets sign...
Symfony2 prevent logout on main page
Theuploadedsample.pdf, when downloaded... is opened as a blank page by the pdf reader in Chromium.Check if you have a directive likegit config core.autocrlfset to true. That could have changed eol (end of line) characters in the file.Clone the repository, and check thesha1 of the cloned pdf:git ls-files -s sample.pdfCo...
With reference toPDF to Github Flavored MarkdownNow with PDF support on GitHub, I have a PDF file (generated by my own txt2pdf converter) not shown correctly on GitHub, but okay when using Adobe Reader or Google Chrome.Is it an issue with GitHub PDF preview, or my own converter? (I do not know which channel to report t...
PDF not shown correctly on GitHub
0 This solves the space issue, and should copy the files including folders. @echo off cd\ xcopy "C:\test back\*.*" "D:\new" /s/h/e/k/f/c Share Improve this answer Follow answered Apr 9, 2014 at ...
i want to backup file from C:\ to D:\ but i have some problem about the name of folder .name of folder is "C:\test back" and "D:\new" this is my code @echo off cd\ xcopy C:\test back D:\new a error is invalid number of parameter. when i change name of folder test back to test_back it still ok xcopy C:\test_back D:...
invalid number of parameter Backup file
You can limit what attribute can be edited with a conditional:{ "Version": "2012-10-17", "Statement": [ { "Sid": "Stmt1471613026000", "Effect": "Allow", "Action": [ "ec2:ModifyInstanceAttribute" ], "Resource": [ ...
I'm trying to write a policy that would allow a group of users to change the instance type of any instance, but no other attributes.I currently have:{ "Version": "2012-10-17", "Statement": [ { "Sid": "Stmt1471613026000", "Effect": "Allow", "Action": [ ...
AWS IAM: allow IAM user to change EC2 instance type only
Gitignore files are a specific file type. When you’re working in your copy, Git watches every file in and considers it in three ways: Tracked: You’ve already staged or committed the file. Untracked: You’ve not staged or committed. Ignored: You’ve explicitly told Git to ignore the file(s). The .gitignore file tells G...
I'm new to github and recently created my first repo. I was wondering if gitignore is a completely different file type, or can it be added on to other files. If gitignores can be added on to other files: I have a .txt file called words.txt. How do I change this into a .gitignore.txt file? If gitignores are a completel...
Is gitignore a file types or something that can be added on to files? Can I change a .txt file to .gitignore?
I wouldn't say it's a necessity to use firewalld, however, there's a guide to help you migrate from iptables to firewalld followed by theRHEL 6 --> RHEL 7 guideTL;DR - If you have configured yoursystem-config-firewallafter upgrading to CentOS 7 and installing firewalld, you can use thefirewall-cmd-offlinetool to migrat...
I'm working on setting up vpnserver and I have IPTables rules that need to be converted to Firewalld rulesEnable nat and postrouting:iptables -t nat -A POSTROUTING -s 192.168.7.0/24 -j SNAT --to-source [YOUR SERVER IP ADDRESS] iptables-save > /etc/sysconfig/iptablesThanks for any help!
How to convert iptables-service rules into firewalld rules?
Surely, you should set the core.autocrlf. Git-documentation And to fix the problem, you may need to revert your commit first. Revert to previous Git commit Then, configure it and make a commit again.
This question already has answers here: diff returning entire file for identical files (6 answers) Closed 10 years ago. I'm working on a Mac and pulling a repo from GitHub. I've ma...
Line Ending Problems in GIT [duplicate]
You could use wget on some of the PDFs and look at the headers:wget -S http://host/something.pdfShareFollowansweredApr 12, 2012 at 23:07RobRob1,14377 silver badges1414 bronze badges1Thanks, that's exactly the flag I was looking for.–John DoucetteApr 13, 2012 at 1:24Add a comment|
I want to prevent google from indexing pdf's on my website.I have modified my .htaccess file to include the following lines, as suggested by google's webmaster tools:<Files ~ "\.pdf$"> Header set X-Robots-Tag "noindex, nofollow" </Files>I know that apache is running properly and reading my .htaccess file, becau...
How can I tell whether Apache is using my .htaccess as intended?
In the end, I resolved this by moving the drop processor to the input configuration file from the configuration file.
I’m trying to collect logs from Kubernetes nodes using Filebeat and ONLY ship them to ELK IF the logs originate from a specific Kubernetes Namespace.So far I’ve discovered that you can defineProcessorswhich I think accomplish this. However, no matter what I do I can not get the shipped logs to be constrained. Does this...
How to constrain Filebeat to only ship logs to ELK if they contain a specific field?
Each instance of Microservice runs as a container in a Pod. Is it possible to deploy MongoDB as another container in the same Pod?Nope, then your data would be gone when you upgrade your application.Or what is the best practice for this use case?Databases in a modern production environment are run asclusters- for avail...
I have 2 API backends Microservices in which each Microservice has MongoDB database. I want to deploy 2 or more instances of each of these in Kubernetes cluster on Cloud provider such as AWS.Each instance of Microservice runs as a container in a Pod. Is it possible to deploy MongoDB as another container in the same Pod...
How to deploy Microservices with MongoDB dependency on Kubernetes?
When you do a rebase what git does is use the last common commit on both the branches and applies the upstream changes firstand thenit puts all the local commits that were madeafterthe diverge on top of the upstream changes. During this rebase process, git applies the commits one by one onto the upstream changes.So it ...
Here's my situation: Made various changes to feature-branch with ~ 30 commits Need to pull develop-branch from Github and merge it with the changes on feature-branch.This is what I've attempted:git pull --rebase origin develop CONFLICT (content): Merge conflict in users.pyI resolve the conflict then,git add users.py gi...
git rebase: I'm getting conflicts on the same files from different commits
I highly suggest you use an IntPtr and Marshal.Copy. Here is some code to get you started. memAddr is the memory address you are given, and bufSize is the size. IntPtr bufPtr = new IntPtr(memAddr); byte[] data = new byte[bufSize]; Marshal.Copy(bufPtr, data, 0, bufSize); This doesn't require you to use unsafe code wh...
I am interfacing with an ActiveX component that gives me a memory address and the number of bytes. How can I write a C# program that will access the bytes starting at a given memory address? Is there a way to do it natively, or am I going to have to interface to C++? Does the ActiveX component and my program share...
Access memory address in c#
With SonarQube 5.1.1 you are for sure not using the SCM Activity plugin that was used for 4.5.x and earlier. Instead it is using a standalone SonarQube Git plugin that internally rely on a pure Java implementation (JGit). Unfortunately JGit doesn't support mailmap files. This is a known issuehttp://jira.sonarsource.com...
I'm using:SonarQube Server 5.1.1Sonar Ant Tasks 2.3I have a couple of authors in a Git repository that I want to change the name that is displayed in Sonar.In the log I can see this:Trying to guess scm provider from project layout... Found SCM type: git ... Sensor SCM Sensor (done) | time=5ms"In the SonarQube documen...
SonarQube ignores .mailmap during SCM blame
Your view0 will stay in memory as long as the DOM element #right-block exists. Because the event handlers on the DOM element is pointing to methods of your view, so it won't be garbage collected. Ideally you should invoke view0.remove(), which will remove the element from DOM and also calls stopListening(). But in you...
Consider the following: SomeView = Backbone.View.extend({ render0: function () { var view0 = new View0(); view0.setElement("#right-block"); view0.render(); }, render1: function(event) { var view1 = new View1(); view1.setElement("#r...
Memory Management in Backbone.js
In the first case, you have a single ArrayList instance and you keep adding to it new Object instances until you run out of memory. In the second case, you create a new ArrayList in each iteration of the while loop and add 1000000 Object instances to it, which means the ArrayList created in the previous iteration and ...
Why does this following code List<Object> list = new ArrayList<>(); while (true) { for(int i = 0; i < 1000000; i++){ list.add(new Object()); } } produce an out of memory error But this code doesn't while(true) { List<Object> list = new ArrayList<>(); for(int i = 0; i < 1000000; i++){ l...
Java out of memory errors
CUDA brings together several things: Massively parallel hardware designed to run generic (non-graphic) code, with appropriate drivers for doing so. A programming language based on C for programming said hardware, and an assembly language that other programming languages can use as a target. A software development kit...
I am interested in developing under some new technology and I was thinking in trying out CUDA. Now... their documentation is too technical and doesn't provide the answers I'm looking for. Also, I'd like to hear those answers from people that've had some experience with CUDA already. Basically my questions are those in...
What is CUDA like? What is it for? What are the benefits? And how to start?
When used like this (i. e. by accessing the instance variable directly), then no, it won't. However, if you use the property's accessor method ([self setS:nil]; or self.s = nil;), then yes, it will. Also note that releasing an object and freeing its memory are two completely different things. An object is deallocated ...
when not under ARC, for the following code, .h @property (nonatomic, retain) NSString *s; .m NSString *m = [NSString stringWithString:@"Hellow, World"]; s = [m retain]; // later on s = nil; <-- will this release the ref count on the string and hence get the string released?
Will assigning nil to a retained property release the object associated to it?
If you don't need to run docker container on your local machine, but still on the same remote machine, you can change this in your docker setting.On the local machine:You can control remote host with -H parameterdocker -H tcp://remote:2375 pull ubuntuTo use it with docker-compose, you should add this parameter in /etc/...
I have compose file locally. How to run bundle of containers on remote host likedocker-compose up -dwithDOCKER_HOST=<some ip>?
How to run docker-compose on remote host?
Change folder nameCodeIgniter-3.1.6tociSet yourbase_urlto$config['base_url'] = 'http://localhost/ci/Use this.htaccessRewriteEngine On RewriteBase /ci RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L]
I am working on codeigniter 3.1.6.I added the .htaccess file. I also changed thebase_urlpath to my project path, removed theindex.phpfromindex_pageand changed theurl_protocoltoREQUEST_URI.Still, while I am redirecting the url to any controllers method it throwing an error as 'The page you requested was not found.'I als...
Codeigniter 3.1.6 - How to remove index.php from url
When you do git merge origin/development while having master checked out, you merge the origin/development branch into your master branch. This is why changes you did on github's development branch have appeared in your local master If you want to have changes from github's development to appear on your local develop...
I am going through various tutorials in Git to understand it. I have a remote 'Origin' which has two branches 'master' and 'development'. I made certain changes in development from GitHub and committed it. Then I went to my local master branch using git checkout master and used git fetch origin development:developmen...
Git Fetch/Merge Confusion
kubectl proxywon't give you any way to run a one-off request and terminate the proxy.Generic way to start a command in the background, run a command and terminate the initially started command finally would be to write a bash script like:#!/usr/bin/env bash set -eu kubectl proxy & proxy_pid=$! echo $proxy_pid until c...
Is there any way to runkubectl proxy, giving it a command as input, and shutting it down when the response is received?I'm imagining something with the-u(unix socket) flag, like this:kubectl proxy -u - < $(echo "GET /api/v1/namespaces/default")I don't think it's possible, but maybe my socket fu just isn't strong enough...
Running “kubectl proxy” for a single request
docker stack logsis actually a requested feature inissue 31458request for a docker stack logs which can show the logs for a docker stack much likedocker service logswork in 1.13.docker-composeworks similarly today, showing the interleaved logs for all containers deployed from a compose file.This will be useful for trou...
In Docker 17.03, when executingdocker stack deploy -c docker-compose.yml [stack-name]the only info that is output is:Creating network <stack-name>_myprivatenet Creating service <stack-name>_mysql Creating service <stack-name>_appIs there a way to have Docker output more detailed info about what is happening during depl...
Is there any way to obtain detailed logging info when executing 'docker stack deploy'?
We faced a similar issue long time back. Here's what we ended up doing: We generalized the config files, with ample examples and comments to indicate what each item will represent. Trying to make it easy for someone trying it out for the first time, to understand what each stands for, and how it affects the behaviour ...
We have developed a java website/platform for one of our customers. The database properties (username, password, etc), are stored in the project's src/main/resources/*.properties e.g database-live.properties, database-dev.properties, database-local.properties The customer has decided that they would like to open-sourc...
java webapps and opensourcing existing project to github - properties files
0 I think you are missing configuring the permissions inside your dyno for your Github account. Check this Github integration article to see how to do that. Share Improve this answer Follow answe...
This question already has answers here: Heroku and GitHub: "Items could not be retrieved, Internal server error" (12 answers) Closed 1 year ago. Whenever i try to Deploy, I am gett...
Can't Deploy Github Private Repo in Heroku [duplicate]
You cannot read /dev/mem if you are not root. There is no reason for an ordinary application to access /dev/mem, i.e. the physical RAM, since applications are running in virtual memory ! If you change the permission of /dev/mem to enable that (you should not), you will open a huge security hole in your system. Only tr...
I am working on ubuntu. I am trying to open /dev/mem and i am getting permission denied int32_t open_memdev() { int32_t fd; fd = open("/dev/mem", O_RDONLY); if (fd < 0) { printf("Failed to open /dev/mem : %s\n", strerror(errno)); return-EINVAL; } ...
open /dev/mem - Operation not permitted
What kind of coding standards do you want to enforce?If you want to prevent possible problems that can be found with static code analysis with tools likePMDandcheckstyle, you can integrate these checks within your continuous integration server and make the build fail if specific checks fail.[edit] sorry, my answer is v...
We are using Github as VCS for our Java project. I am figuring out ways to enforce coding standards before pushing to remote repositories for members of my team.On researching, I came across this github pre-commit web hooks.But after research found out that it isn't possible to maintain the scripts centrally within the...
Enforcing Coding standards for Github repositories across team
The default Kubernetes way of doing this is to use an operator.In a nutshell, you have a software running that is watching resources (Namespacesin your case) and react when some namespace changes (deleted in your case).You might want to addfinalizersto Namespaces for proper cleanup.Please refer tothe documentationfor m...
Is there any default options in kubernetes, to trigger some actions when the resource gets deleted from the cluster?
How to trigger some action when K8 namespace is deleted
You can use aStatefulSetin conjunction with aHeadless Service. One of the features of a StatefulSet is a unique consistent naming convention:For a StatefulSet with N replicas, each Pod in the StatefulSet will be assigned an integer ordinal, from 0 up through N-1, that is unique over the Set.So, if you have three copie...
What is the recommended way to communicate between the pods belonging to the same replica-set (deployment)? Is it possible to lookup what are the urls of other pods from a given pod?Or is replica-set not a right approach to follow for that?Looking for a right k8s way to do this. Thanks!
k8s: Communicating between pods of same deployment
This will help you:(?:INTERNET)
I have installed Grafana and integrated into my zabbix server. I need to filter host groups so they don't contain any of the specified groups.In zabbix a host corresponds to several groups, in grafana I want them not to be displayed if they belong to at least one specified group.I tried with the regex:/^((?!INTERNET).)...
Grafana + Zabbix: Filter Host multiple host group
No, you can't do that -CNAMErecords can only exist as single records and not combined with any other resource record (DNSSEC records excepted).There are explicitSOAandNSrecords always present at the top of each domain, so that prevents the use of theCNAMEat the same part of the hierarchy.
Closed.This question isoff-topic. It is not currently accepting answers.Want to improve this question?Update the questionso it'son-topicfor Stack Overflow.Closed12 years ago.Improve this questionWe are hosting the page of many of our customers. We want to be able to provide our customers with a subdomain of our own do...
Is Root domain CNAME to other domain allowed by DNS RFC? [closed]
The current OpenSSH is using SHA256 hashes instead of the ancient MD5 you expect on the first line of your code. To get the legacy fingerprint, there is the-Eswitch to select a hash algorithm:ssh-keygen -E md5 -lf ~/.ssh/key.pub
Looking at the fingerprints on github and of my public ssh key they have different formats (e.g. colon separator) and differGithub a6:f2:09:40...etc As generated by: ssh-keygen -lf ~/.ssh/key.pub 4096 SHA256:neLNT0...etcI can login so can anyone explain what I'm missing?
RSA fingerprints on github don't match ssh-keygen
The file is already inside the container. If you read carefully through the CI/CD build log, you will see at the very top after pulling the image and starting it, your repository is cloned into the running container.You can find it under/builds/<organization>/<repository>(note that these are examples, and you have to a...
How can I add a file from my project into a Docker using in agitlab-cijob. Suppose I have below job in my.gitlab-ci.yml.build:master: image: ubuntu:latest script: - cp sample.txt /sample.txt stage: build only: - masterHow to copy a sample.txt inside Ubuntu image? I was thinking as it is already a runnin...
How to copy a file from the repository, into the Docker container used for a job, in gitlab-ci.yml
to pass this to a helm chart you should use values.Instead of{{env SUPER_SECRET | quote }}use{{ .Values.secret }}and then when you run helm run it as for examplehelm install chart --set secret=${SUPER_SECRET}
I'm pretty new to helm and go templates so please bear with meI have a template called secrets.yaml:apiVersion: v1 kind: Secret metadata: name: fooo-secrets labels: app: {{ template "fooo.name" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage...
function "env" not defined
It's dynamically allocated if the shared memory size is specified at run time. It is statically allocated if the size of the shared memory is determined at compile time. Your example is static shared memory allocation.
I want to know what is the difference between statically allocated shared memory and dynamically allocated shared memory on the GPU? In my device code, I have the following line:__shared__ int temp[THREADS_PER_BLOCK];Is this static or dynamic allocation of shared memory?
Shared Memory Allocation on GPU (Static or Dynamic)
Kubernetes is doing exactly what you are asking, probing the http url but your application pod web server is redirecting it to https, that is causing the error.You can either fix that in pod or useTCP probeapiVersion: v1 kind: Pod metadata: name: goproxy labels: app: goproxy spec: containers: - name: goprox...
We have an http livenessProbe setuplivenessProbe: httpGet: path: /admin port: http initialDelaySeconds: 180 periodSeconds: 20but why in the description the connection is via httpsLiveness probe failed: Get https://10.11.1.7:80/admin: net/http: request canceled while waiting for connection (Clien...
Kubernetes http livenessProbe use https?
If this problem appears, you have to :1 -Go to the Atom menu.2 -Select "Install Shell Commands".3 -Restart the terminalIt's magic it works :D
When I give the command "$git commit" to git bash, then$ git commit hint: Waiting for your editor to close the file... atom --wait: atom: command not found error: There was a problem with the editor 'atom --wait'. Please supply the message using either -m or -F option.this error is thrown by git. I have configured atom...
Git commit command is not working properly with atom editor
Try with removing the./-config/databases.phpand if thevendoris in same folder thenvendor/phpmailer/phpmailer/PHPMailerAutoload.php. No need of./.
INCLUDE './config/databases.php'; require './vendor/phpmailer/phpmailer/PHPMailerAutoload.php';When i execute this script from browser i get no warning / issues . but when i put same script for Cron jobWarning: include(./config/databases.php): failed to open stream: No such file or directory in /home/webdir/public_htm...
Cron Job failed to open stream: No such file or directory
In the Openshift Console you can stop the POD using Deployments Menu.In the left side Menu bar, Expand Workloads menu. Workloads -> DeploymentsIn the right pane for deployments, select relevant project and then under the "Details" tab You see the Colored circle, you can take down the pod using the down arrow symbol nex...
I am a newbie to the Kubernetes world and don't have much context on openshift/Kubernetes.Here is the requirement: when I run the below command which lists the all running jobs:$ oc get podsName READY STATUS RESTARTS AVGabc-job1-dev 1/1 Running 0 38habc-job2-dev 0/1 Completed...
How to stop a pod job in openshift platform?
Take a look at the assets_version parameter, so every asset get a version string without doing extra things in the template
I'd like to force client's cache refresh for modified assets. Is there already a native way to do it with asset() like <script src="{{ asset('js/main.js')|autoversion }}"></script> ? If not, I found this really elegant solution (based on file timestamp & url rewrite) to manage it. Did someone already faced this quest...
Symfony - Assets cache auto versioning
Looks like the connection pool is getting exhausted for some reason. You can monitor the Druid connection pool ( your stacktrace suggests you are using Alibaba Druid connection pool) by configuringDruidStatInterceptoras mentionedhere. Worth checking for any connection leaks happening.
I added Prometheus monitoring to my service.java -server -Xms512m -Xmx512m -XX:SurvivorRatio=8 -javaagent:${base_dir}/jmx_exporter/jmx_prometheus_javaagent-0.11.0.jar=7030:${base_dir}/jmx_exporter/exporter_config.yml -jar ${base_dir}/my-service.jar --spring.profiles.active=testexporter_config.yml--- username: passw...
prometheus occupies the JDBC connection
This feature is known asVLAor variable length array. This is not supported in all C standards. In recent C standards likeC11andC99, it is supported, but not in older C Standards as 'C89'.If you're usinggcc, please have a look at thecompiler documentationregarding this.ShareFolloweditedDec 4, 2014 at 4:50arahan56723722 ...
I wrote a simple code where I am creating array without a fixed size. I tried compiling the code ingccand it is working fine. Please explain why this is working array size should be supposed to be known at compile time.Here's the code I have used.void f(int k) { int a[k]; .....//some operation } int main() { i...
Array size should be known at compile time
+25An important point, that if you need to provide quick access to these files, then Glacier can give you access to the file inup to 12 hours. So the best you can do is to useS3 Standard – Infrequent Access(0,0125 USD per GB with millisecond access) instead ofS3 Standard. And maybe for some really not using dataGlacier...
I have 2 million zipped HTML files (100-150KB) being added each day that I need to store for a long time. Hot data (70-150 million) is accessed semi regularly, anything older than that is barely ever accessed.This means each day I'm storing an additional 200-300GB worth of files.Now, Standard storage costs $0.023 per G...
Storing many small files (on S3)?
You'll need the SSH key-pair for the parent, and for each submodules (if they are private or if you want to make new commits in those submodules).See for instance "Pagoda Box":Private Submodule ReposIf your submodule is in a private repo you'll need to grant Pagoda Box access to pull from that repo. You can do so by ad...
If I want to access a private github repo with its deploy keys system. Do I need a ssh key-pair for the main git repo and all its submodules or just the parent one?
Github deploy keys, submodules, ssh
Chrome does not allow you to export the certificate anymore. You need to either use another browser that supports this feature (e.g. firefox) or just simply copy the generated certificate to the shared directory from your homestead machine, so then you can import and trust it in the keychain.# where I share all homeste...
I followed the following details on creating an SSL certificate, so I can run local test sites via Laravel's Homestead, using https.Adding https cert on homestead vmAll is well but when viewing the test domain overhttps://, I get a red cross on Chrome's address bar. It says that the certificate is untrusted due to bein...
Verifying a self-signed certificate on local Laravel Homestead server
Prometheus doesn't call phone numbers. (Nor does it send SMS, for that matter.) You need to either write your ownwebhook handler(i.e. an HTTP server) that then makes an API call to a 3rd party provider.The other option is to hook up your Alertmanager to a service like Opsgenie/Pagerduty that includes phone calls as an ...
im setting Prometheus as a monitoring system, with Alertmanager. As an alert i need service that will call on selected number or group of numbers.Best solution for us would be not to have an 3rd party provider who is gonna be covering this for us.Thanks a lot.
Call alerts integration with Prometheus Alertmanager
The S3 VPC Endpoint is configured via the routing of the VPC. For this reason you will not be able to resolve to it outside of the VPC.However, you could run a private EC2 instance with a proxy in front to forward traffic to your S3 bucket, then set a resolveable hostname to the EC2 instance itself.Additional linkshttp...
I've been looking for a solution to host internal S3 website that's accessible over VPN. Clearly I don't wanna use CLoudFront + WAF to restrict the IP range.I tried setting up the following,Created a VPC Endpoint for S3 servicesCreated a static S3 website bucket with bucket policy restricting access only through VPC En...
Hosting internal S3 Website that's accessible over VPN and is secured with HTTPS
0 If you plan to keep both endpoints you could do git remote set-url --add origin https://new.url/path/to/repo.git and this will make it so when you push, you will push to both endpoints at the same time. However pulling only comes from one source. If pulling is a concern t...
I have a GitHub repo that I want to copy and push to a new remote URL under a different organization. I'd like to preserve as much history as possible, such as branches and commits, but I'm not sure how to do this. My local copy doesn't have all branches. I've seen similar questions, but I wanted to confirm since it's...
Copying GitHub repo to new remote URL
With recent versions of Docker you can see the space used with: docker system df and prune it with: docker system prune The above command combines the prune command that exists for volumes, containers, images and networks: docker volume prune docker container prune docker image prune docker network prune Each command ...
I have some problem about the storage. The folder /var/lib/docker/devicemapper/ is taking 50% of my storage. In the folder /var/lib/docker/devicemapper/mnt, I have many empty folders. How can I properly clean docker devicemapper and remove all unused mapping ?
How to clean docker devicemapper folder properly ?
Try having this, remember to restart after insertion:location / { try_files $uri $uri.html $uri/ @extensionless-php; index index.html index.htm index.php; } location ~ \.php$ { try_files $uri =404; } location @extensionless-php { rewrite ^(.*)$ $1.php last; }
I'm new in this site and new with NGINX, so be nice, please. I rencently switched to AWS Elasticbeanstalk and need help with NGINX configuration. I wanna do some redirection that I know and tested that works in apache2 with .htaccess but I'm not able to acomplish with NGINX.I want all my URL to end with trainling slash...
Externally redirect URL in NGINX conf to add slashes and use php files
0 Maybe you use pausing or something like this and you target file is locking. It is possible that your security software is scanning and locking the file, which may still be in the system temporary folder after you pause the download. Share Improve this answer...
I have a very simple script for downloading a pdf: $path = __DIR__.'/sample_file.pdf'; $pathinfo = pathinfo($path); $fsize = filesize($path); $filename = $pathinfo['basename']; header('Content-Type: application/pdf'); header("Pragma:public"); header("Content-Disposition:attachment;filename=" . $filename); header('Con...
Download PDF - Failed: Network error, PHP-FPM and Nginx
Depending on the nature (confidential or public) of your project, you could use aGitHub ActionslikeSonarSource/sonarcloud-github-actionThat way, on each push, you would scan your code withSonarCloud.io.But if you have a local SonarQube instance running, then you need theDeveloper edition, and check if your GitHub cred...
I have a repository in my github account and i want to analyse it with sonarqube after each commit I put the repository url in my sonar scanner properties : sonar.sources=https://github.com/rahma/JavaTestbut does not work . any idea about this please ?
sonarqube github project analysis
The problem there is that you started working from a branch that is different from the branch that you are asking your PR to be merged into.... that's why you see those other revisions. You might skip this problem by rebasing your branch... suppose that it's called X and you want to merge it into origin/master: git re...
I would like the ability to build a Pull Request that includes commits from each developer or a specific work item. I typically create a branch for each work item that I am addressing. But I often find that additional commits (from other developers and work items) appear when I create a Pull Request. For example, I h...
Can I create a Git Pull Request that only includes commits for an individual developer or work item?
You are nearly there. In Docker when a container is run, the docker daemon mounts the images layers using a unionfs. It adds a layer on top of the images layers to track changes that are happening inside of that container. Say a log file is written that is tracked as part of this layer.By removing a container you remo...
I am getting my hands dirty with Containers and Docker. In the world of Docker (or the world of Containers in general), I am trying to understand what "removing a container" means. The mental model I have of a container is that it is a running instance of an image. If a container has stopped executing, what resources i...
What does remove container mean/do?
If you are really want to do it all manually you should checkKubernetes The Hard Way. This tutorial does not have any automation process, you need to do all manually. Honestly I would recommend it after a few days/weeks of practicing withKubernetes.Second good place to learnKubernetesisKatakoda. You can find thereKuber...
I am sorry if this question sounds silly.I would like to know any place where I can learn the kubernetes simple to hard way where a beginner can get the whole idea of kubernetes, from scratch until you deploy an application to aws with other tools such asprometheus,stackstormetc.I know there are many Youtube videos and...
Where I can learn the Kubernetes with Hands on
You can use semantic model to get information about symbols (classes, methods, ...) defined in the project. When you analyze class, you have access toClassTree, so you can test if annotation is present on its superclass like thisClassTree classTree = (ClassTree) tree; Symbol.TypeSymbol classSymbol = classTree.symbol();...
So, im currently developing a SonarQube Java Plugin with some custom rules.One of them needs to analyze the Java file for a specific annotation, and if it's missing, it should report an issue UNLESS that annotation is on its superclass.The problem is that i can't analyze another file (the superclass) DURING the current...
Analyze another file during SonarQube analysis (custom rule)
According tohttps://multimediacommons.wordpress.com/yfcc100m-core-dataset/, although the dataset is hosted in an S3 bucket, access to it is restricted, so you need tosubmit a requestand follow further email instructions for access:Getting the YFCC100M: The dataset can be requested atYahoo Webscope. You will need to cre...
I am trying to download a dataset hosted in AWS. I am trying to uses3cmdand configured it with my access key and secret key. I can list the the files in the bucket properly using:s3cmd ls s3://yahoo-webscope/I3set13/I usedgetto download the dataset:s3cmd get --recursive s3://yahoo-webscope/I3set13/But the following er...
Downloading yfcc100m from aws s3 bucket
2 Try to add the full path to the docker-compose inside the script which docker-compose >/usr/bin/some/path/docker-compose Then add this to your script #!/bin/sh set -e /usr/bin/some/path/docker-compose up -d Your local PATH settings are unknown to the script called by d...
I have a Dockerfile which is basically the following: FROM mhart/alpine-node:5 COPY . /project WORKDIR /project ENTRYPOINT ["./startup.sh"] And my startup.sh is quite simple too: #!/bin/sh set -e docker-compose up -d I do have a docker-compose.yml, but there is no point to describe it here. First thing I do is t...
docker-compose not found from script
On windows you can find the containers logs inside:C:\ProgramData\docker\containers\[Your_container_ID]\[Your_container_ID]-json.log
I want to locate a container's log location.I useDocker Desktop for WindowsI know that on linux they are at/var/lib/docker/containers/But where is it. Is it hidden away somewhere in an inaccessible VM?
Docker log (driver json-file) location for Docker for windows
You could try and add a matching '#', followed by one extra '#':### C# #ShareFollowansweredAug 25, 2015 at 6:03VonCVonC1.3m539539 gold badges4.6k4.6k silver badges5.4k5.4k bronze badges16@Maxpm Ascommented above: "because without the extra hash, the parser was mistaking the hash in C# for a closing hash."–VonCMar 26, 2...
I have the following code on aREADME.mdfile on GitHub, where I am trying to display the hash sign on a header (I am trying to escape it using the\symbol) like so:### C\# * [Beginning Game Programming with C#](https://www.coursera.org/course/gameprogramming)However it renders like so:I obviously want the hash sign to ap...
How to escape the (hash) # sign in a GitHub markdown header? (backslash is not working)
2 The numbers returned by java.lang.Runtime are not worth much - ignore them. You'll get better results from the Management API, e.g. MemoryUsage memoryUsage = ManagementFactory.getMemoryMXBean().getMemoryUsage(); ... and related methods, which will likely give you far mor...
I want to gather the heap usage of a program. In particular from a specific start event up to an end event, and with a set interval for example every 10ms. I tried to implement something like this myself, which is the following code. It works for slow intervals, like 1second, but for lower intervals, like 100ms, it be...
Java heap profiling between two events
It's fairly simple actually. If you just want to print stuff using in the build proccess you could just add the following line to your Dockerfile:RUN echo "hello there"And then add these options to yourdocker buildcommand:--progress=plain --no-cacheEDIT:as noted by @SoftwareEngineer, when used for logging or tooling pu...
Suppose you have some Dockerfile. What needs to be added to that file such that a string (ie "Hello World") is printed to the console during build?docker build .RESEARCHThis question is a top hit in Google for this topic. I have researched by googling and landing here.WHAT I HAVE TRIEDFrom the accepted answer:RUN echo ...
How do you print to console from a docker file during build?
I would suggest Web sockets as a method to push the notification back to the browser, instead of let the browser polls (i.e, periodically sending GetObject API call) for the PDF file in S3. This approach will help you to notify the browser if an error occurred when PDF generation.For more details could you please watch...
I would like to know if AWS SQS is the right service for doing browser polling.For example :1) User acesses application through browser, and requests a large PDF to be generated2) API responds back with "OK" to user and forwards the request to SQS3) SQS queue is being read by a lambda which generates the PDF and stores...
Amazon SQS for browser polling?
Currently maximum only 512MB is allowed for eclipse in your ini (-Xmx512m), if you have enough RAM you shall try increasing it to 1GB. More info herehttp://wiki.eclipse.org/FAQ_How_do_I_increase_the_heap_size_available_to_Eclipse%3F
I m using Eclipse Indigo. It becomes unresponsive often and finally prompts saying out of memory error and asks me to exit workbench. I increased the Perm Gen space as told in one of the eclipse forums by editing my eclipse.ini file.Eclipse.ini file contents now is as below,-startup plugins/org.eclipse.equinox.launcher...
Eclipse becomes unresponsive
It is likely that the GitHub web interface has a limit on the size of data that can be uploaded. What you can do is create a gist with some data that you want (such as a README or a portion of the data), clone it, and then add the rest of the data via Git and push.Note that if your log is very large, GitHub may not di...
Is there a limit in the size of a GitHub gist or a maximum number of lines?I am trying to make a gist with a generated file from logs, and receive a 422 validation error once in a while when the logs are getting relatively large.
Limits in Github gists
5 Answering my question. The cleanest approach I end up with is to have a separate Report-To header, taking JSON between single quote. add_header Report-To '{"max_age":31536000,"endpoints":[{"url":"https://example.com/csp-report"}]}'; Then the Content-Security-Policy heade...
According to CSP MDN documentation, report-to takes a JSON object, but I can't find a way to embed JSON in Nginx configuration. I tried this code and all the variants I can think of, escaping the quotes, adding single quotes, etc. add_header Content-Security-Policy "default-src 'self'; report-uri https://exam...
How can I set Content-Security-Policy Report-To header in Nginx +1.17?
1 If you want Phabricator to host the master, you can add a URI with IO type of Mirror for your github repository under Manage Repository / URIs / Add New URI. Phabricator will then automatically push to the mirror when new changes are committed. You will need to be carefu...
I'm using Phabricator in order to manage a project. Thus I have several repos, hosted on a personnal server, on Phabricator. I push (or arc diff) directly in them in order to have information on Phabricator. However this project is opensource, thus I would like to host it on my Github profile at the same time. Indeed ...
Synchronize Phabricator repo with Github
4 Vagrant is a utility to help you automate setting up VMs. Docker is a utility that helps you use containerization in linux. A virtual machine runs a whole system, and emulates hardware. Containers section off processes in a single running kernel without emulating hardware...
Every Docker image, as I understand, is based on base image - for example, Ubuntu. And if I want to isolate any process I should deploy ubuntu docker base image (where is difference with Vagrant here?), and create a necessary subimage after it installing on ubuntu image? So, if Ubuntu is launched on Vagrant and on Doc...
Docker vs Vagrant
I just stumbled on this 4 month old question. It really should be listed on a different StackExchange (such as ServerFault), but sometimes even a developer needs to configure a firewall. As it is, I'm here with an answer for you.For your firewall rules, you'll want to accept packets from your safe IPs first and then dr...
I am setuping my server and I must disable the ping requests for everyone except me and a list of hosts (aaa.bbb.ccc.ddd).I am using the tool ufw, on ubuntu server, I read that I have to comment those lines:ok icmp codes-A ufw-before-input -p icmp --icmp-type destination-unreachable -j ACCEPT -A ufw-before-input -p icm...
UFW: Allow ping requests only for specific host
I find out what is probably happening.The problem is Docker Desktop for Mac. It seems it stops container sometimes like in the situation that you Mac goes to sleep. And it interrupts the listener so it stops receiving new data chunks. I started same container on Ubuntu in VirtualBox and it works fine all the time.
I have following code written in nodejs usinghttpmodule. It's basically listens to event stream (so the connection is permanent).http.get(EVENT_STREAM_ADDRESS, res => { res.on('data', (buf) => { const str = Buffer.from(buf).toString(); console.log(str); }); res.on('error', err => console.log("err: ", err...
Node.js HTTP Get stream freezes inside docker container
It is described in the question. The memory is the actuarial size of the photo and UIImage will not do optimization.
I'd like to know the memory size for a UIImageView object as I need to show some large image and I need to handle the memory. I guess it is decided by the image property. But I'm not sure how to calculate the actuarial memory size,and below is the code I write to test: //1.jpg has a size of 4016X2657 and 2.1MB ...
memory size of UIImageView
As said by @torek:press ENTER (or RETURN or whatever the key is labeled) on your keyboard twice, so that you are using the no-passphrase case [...]It worked!ShareFollowansweredOct 11, 2021 at 9:42montwmontw10511 silver badge1010 bronze badges0Add a comment|
I am tying to generate a SSH key on Git, but I'm stuck in the passphrase part:I'm unable to type it. The passphrase field appears without any characters, even though I'm typing them.$ ssh-keygen -t ed25519 -C "[email protected]" Generating public/private ed25519 key pair. Enter file in which to save the key (/c/Users/m...
How can I type the passphrase for a Git SSH key?
An argument for including databases and other downstream dependencies in the health check is the following:Assume you have a load balancer exposing some number of micro-services to the outside world. If due to a large amount of load the database of one of these micro-services goes down, and this is not included in the ...
We are developing tons of micro-services. They all run in Kubernetes. As ops, I need to define probes for each micro-service. So we will create a health check API for each micro-service. What are the best practices for this API? What are the best practices for probes? Do we need to check the service's health only or th...
What are the best practices for a health check API and probes in micro-services Kubernetes environment?
In Jekyll _layout is where the layout for your Jekyll website is stored. When using a theme it uses the layout file for that theme. Any file which you add in the _layout folder will override the theme layout files.To modify the default layout which came with the theme you are using you need to first make a _layout fold...
Bothhttps://jekyllrb.com/docs/extras/andhttp://www.gastonsanchez.com/visually-enforced/opinion/2014/02/16/Mathjax-with-jekyll/require_layoutdirectory, which couldn't found. Kramdownhttps://kramdown.gettalong.org/syntax.html#block-boundariesalthough has been set in_config.ymldoesn't work either.Can anyone help?
How to use Latex in new Jekyll? (Gem-based theme minima)
I had to change ./db/data user:group to 999:999, so docker user is who is making the changes. sudo chown 999:999 ./db/data
I'm having an issue when starting the db service with docker compose: version: '3' services: # Mysql DB db: image: percona:5.7 #build: ./docker/mysql volumes: - "./db/data:/var/lib/mysql" - "./db/init:/docker-entrypoint-initdb.d" - "./db/backups:/tmp/backup...
Docker-compose : mysqld: Can't create/write to file '/var/lib/mysql/is_writable' (Errcode: 13 - Permission denied)
Yes, that should work fine. As long as your data (all tablespaces) and pg_xlog are on the same device, it should just work. No need for any flushes or locking.
I foundthis articleexplaining how to run MySQL on Amazon EC2. It talks about using XFS as the filesystem and then leveraging EBS snapshots to create backups of the data. Does anyone know if I can do something similar using PostgreSQL? Are there changes to the SQL commands to FLUSH and LOCK the tables? Thanks!
PostgreSQL and Amazon EBS Snapshots?
In github (and in git's mental framework) you clone and fork repositories. There's no way to fork a branch; that doesn't make sense. Just fork the project, and work off the branch you're interested in. You don't lose anything by doing so. "Working off a branch" usually means you clone a repository (e.g. git clone ...
How can I fork a branch instead of a complete repository? I wish to copy only the branch https://github.com/COMSYS/contiki/tree/split-buffer and not the complete repository https://github.com/jenshiller/contiki. How to fork a branch in Git? won't work in my case. I don't want to clone the branch.
How to fork a branch and not the repository?
I suggest you run:openssl s_client -connect remoteserver:443Assuming the remote server requires or requests client certificate authentication, it should send you a list of acceptable CAs.You should send a certificate ultimately signed by one of these CAs. The ssl specification does not require that you send the CA, how...
I am having trouble connecting to a secure site using a Java program. I have imported 3 certificates given from the server that I will be connecting to; public, inter and root certificate. I have properly imported the 3 certs to the java cacerts. And also specified in calling the Java class with the following parameter...
SSL Bad Certificate error
The error is in your port mapping in the original docker run command, you just need to provide the ports, not the IP address: docker run -e MYSQL_ROOT_PASSWORD=password -d -p 3308:3306 mysql You can run docker ps -a to check for the port mapping in the running containers. You should now be able to connect to MySQL us...
First I run mysql image: docker run -e MYSQL_ROOT_PASSWORD=password -d -p 127.0.0.1:3308:3306 mysql Then I use container bash: docker exec -it my_container_name bash In Bash I can successfully connect to MySQL server via command: mysql -uroot -ppassword But when I try to connect to MySQL container from Windows cm...
Cannot connect to MySQL server inside Docker
4 The line you mention will compile fine in C++, save for that fact that if buffer is not a void *, then you may need to cast the return value of malloc in C++, which you don't need to do in C (and probably should not do). EG: uint32_t *buffer = (uint32_t *) malloc(sizeof(u...
I have a buffer in C with this code buffer = malloc(sizeof(uint32_t)*CACHE_LEN*2); How can I change this line to C++? Is it better with malloc or with new[]? I cannot understand the meaning of this sizeof(uint32_t).
How to convert a C statement using malloc() to C++?
In order to know your container runtime version, you can either login to your aks cluster and do akubectl get nodes -o wideFrom portal,To view the container runtime version of an AKS cluster from the Azure portal, click on the name of the AKS cluster for which you want to view the container runtime version. Check Unde...
I am new to azure k8s. I am trying to verify if my container runtime on my aks cluster, I can only see the node detailsnodepoolHow can I get the container runtime details on my aks cluster?I tried checking the nodepool details under the setting section but not able to find the container runtime details
How to know container runtime version in AKS cluster
0 You have created a query and not executed it, try running executeUpdate() on the created query Session session = DatabaseUtil.getSessionFactory().openSession(); session.beginTransaction(); Query query = session.createSQLQuery("BACKUP TO '" + file.getCanonicalPath() + "'")...
I'm little bit confused of how to perform h2 database "BACKUP" & "RESTORE". I have write some code using hibernate and java, but this not working for now. So, how to do backup & restore when database is used by the application. File file = fileChooser.showSaveDialog(tbTabPaneHome.getScene().getWindow()); if (f...
Backup & Restore h2 database
You are explicitly setting the cache to never expire by usingCache.NoAbsoluteExpiration. You want to useCache.NoSlidingExpirationinstead:When used, this field sets theslidingExpirationparameter to theTimeSpan.Zerofield, which has a constant value of zero. The cached item expires in accordance with theabsoluteExpirati...
_cache.Insert(cacheKey, userList, null, Cache.NoAbsoluteExpiration, new TimeSpan(0, 15, 0), CacheItemPriority.High, null);My code above doesn't seem to be expiring the cache after 3 minutes, the userList object pulls data from the database that was updated, but the cache doesn't expire it after 15 minutes.What is wr...
Will the following cached item expire after 15 minutes?
Yes, you can just copy your Firefox/Iceweasel profile over. For Firefox your profiles are in $HOME/.mozilla/firefox, and it's similar for Iceweasel.
I have destroyed my Debian Jessie installation and I need to reinstall it. I want to back up my Iceweasel passwords and bookmarks, but I can't start the desktop environment anymore, so I have to do it from the command line. Will it work if I just copy the iceweasel directories and paste them into my new installation? ...
Backup Iceweasel Bookmarks and Passwords from CL
Assuming you're happy to use Terraform, you can use this:https://github.com/GoogleCloudPlatform/terraform-google-nat-gatewayHowever, there's one caveat and that is it may inbound traffic to other clusters in that same region/zone.ShareFollowansweredAug 8, 2018 at 7:10Blender FoxBlender Fox4,99222 gold badges2121 silver...
I am trying to build a service that needs to be connected to a socket over the internet without downtime. The service will be reading and publishing info to a message queue, messages should be published only once and in the order received.For this reason I thought of deploying it into Kubernetes where I can automatical...
Proxy outgoing traffic of Kubernetes cluster through a static IP
You could uselerna.Lerna will also help you in case you have dependencies between your packages.Basically you just have to add a lerna.json in your root directory and install your dependencies using lerna.lerna.json:{ "lerna": "2.11.0", "packages": [ "lambda-functions/*" ], "version": "0.0.0" }I assume you ...
I am using AWS Cloud Formation for my backend with the following project files structure:| template.yaml | lambda-functions | ---- function-1 |----function.js |----package.json | ---- function-2 |----function.js |----package.jsonIn the AWS buildspec I doaws cloudformation packagefollowed...
How to npm install all functions directories with AWS CodeBuild
You should use the storage-agnostic Storage.exists() method. The storage object should be available on the FieldFile itself, so something like return self.file.storage.exists(self.file.name) should do the trick.
My question is simple as the title clearly describes it. I have FileField in some models, I added a property method to check the existence of file: @property def file_exists(self): # Because sometimes, the field may contain the string path # but the file doesn't exist at all in the server if file: # if the...
How to ensure file exists in Django project?
Ok, stupid me, I found the answer in the docs for boot2dockerhttps://docs.docker.com/installation/mac/#container-port-redirectionI needed to use the ip address of the boot2docker vm, rather than the ip of the container, i.e.$ boot2docker ip 192.168.59.103and I am able to browse my site from the host athttp://192.168.59...
I'm running under boot2docker 1.3.1.I have a Docker container running a web server viauwsgi --http :8080.If I attach to the container I can browse the web site usinglynx http://127.0.0.1:8080so I know the server is working.I ran my container with:$ docker run -itP --expose 8080 uwsgi_app:0.2It has the following details...
How to access Docker container's web server from host
Go tommc.exe. Follow the steps:MMC > File > Add/remove snap-in > Certificates > You get three options:My user accountService accountComputer accountI don't know what it means, so I took My user account. It seems to be my lucky card in other problems.Finish.Then you will need to activate IIS server manager on your syste...
I followed the steps in my answer to create a certificate. I will use this cert on my own computer. The command succeeded, but I see no personal certificate in cert manager (certmgr.msc). Answer -How do I create client certificates for local testing of two-way authentication over SSL?Steps:Launch Vs2010 Command Prompt:...
Cannot see self created certificate in certmanager?
It seems like a recent update of the AWS CLI for windows possibly removed something.Can you try this as a workaround?[credential] helper = !'C:\\Program Files\\Amazon\\AWSCLI\\bin\\aws.cmd' codecommit credential-helper $@ UseHttpPath = true
I have a CodeCommit repo that I'm trying to connect to from the command line of Windows 7.My intention is to use the aws configure / aws credential helper method as I prefer this, in this context, to a username / password.When attempting any git operations I get:aws codecommit credential-helper $@ get: aws: command not...
Amazon CodeCommit credential helper - command not found