Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
Ended up doing it through another means. My backend developer ended up utilising those very certificates and everything is working nicely now.Regards, MikeShareFollowansweredApr 18, 2013 at 10:49Mackey18Mackey182,33222 gold badges2525 silver badges3939 bronze badgesAdd a comment|
I'm currently trying to enable my server for Push Notifications and I'm at the stage where I need to upload the SSL certificates. I followed the steps in a Ray Wenderlich P.N. tutorial, but I can't get my server to accept the private key file. Tutorial can be found here:http://www.raywenderlich.com/3443/apple-push-noti...
iOS Push Notification Certificate Private Key not being accepted by server
Look up Traefiks forward auth mode or nginx’s mod auth request. They both do what you are looking for. Or more generally this kind of thing is called an API gateway and there are many good ones.ShareFollowansweredJun 8, 2020 at 13:16coderangercoderanger53.1k44 gold badges5454 silver badges7777 bronze badgesAdd a commen...
I want to create external authentication for Service A, which listens to traffic on port8080. What I desire is to have a second container (Service B) running in the same pod asService A, that intercepts, evaluates and (maybe) forwards the traffic going in on port8080"Maybe" means thatService Bshould filter out every re...
Filter traffic/authorise requests with Kubernetes sidecar
i would do something like this: function GetServerStatus($site, $port){ $fp = @fsockopen($site, $port, $errno, $errstr, 2); if (!$fp) { return false; } else { return true; } } $tempfile = '/some/temp/file/path.txt'; if(GetServerStatus('ServerB',80)){ $content = file_get_contents("...
I have a website with the following architecture: End user ---> Server A (PHP) ---> Server B (ASP.NET & Database) web file_get_contents browser Server A is a simple web server, mostly serving static HTML pages. However, some content is ...
Fault-tolerant file_get_contents
To provide an answer, the solution I ended up taking was to rename the package to includetestin the name. e.g.com.project.integration.test;This feels invasive but it was the lesser evil.
In our SonarQube integration I've noticed the use oforg.assertj.core.api.Assertions.assertThatcauses a bug. NamelyAssertions should not be used in production code Bug Major java:S5960 Assertions are intended to be used in test code, but not in production code. It is confusing, and might lead to ClassNotFoundExcep...
SonarQube 'assertThat' causes 'assertions should not be used in production code'
Found an answer myself, this blog helped:http://thingsyoudidntknowaboutjenkins.tumblr.com/post/23596855946/git-plugin-part-3Basically need to execute:git checkout masterbefore modifying any filesthengit commit -am "Updated version number"after modified filesand then usepost build action of Git Publisherwith an option o...
I have a jenkins job that clones the repository from github, then runs the powershell script that increments the version number in the file. I'm now trying to publish that update file back to the original repository on github, so when developer pulls the changes he gets the latest version number.I tried using Git Publi...
How to push changes to github after jenkins build completes?
I don't know if the GitHub app provides this functionality (though I would kind of expect it to), but git has a function called "git stash" which takes all your uncommitted changes and stashes them away in a special place. This leaves you with a pristine working copy (without those changes), where you can do whatever ...
I made a bunch of changes to files in a git repository. Before I committed anything I was asked to commit some other files someone else had for me (coming from an SVN repository). I dropped those files into my project folder, picked them from amongst all of the changed files from earlier and committed them. Now I need...
GitHub - Unsynchronized Commit?
This is because you don't have any public projects in your user namespace. If you want to see your private projects in your namespace, you'll need to authenticate with the API by passing a personal access token in the PRIVATE-TOKEN header.Note, this also won't show projects you work on in other namespaces.headers = {'P...
import requests response = requests.get("https://gitlab.com/api/v4/users/ahmed_sh/projects") print(response.status_code) # 200 print(response.text) # [] print(response.json()) # []I'm trying to get a list of my GitLab repo projects using python API, but the outputs are nothing! Although, when I use the browser, I go...
Python api request to gitlab unexpectedly returns empty result
When you think the wildcard show up in www.domain.tld (instead of the EV) can you check the details of the certificate ? Maybe it's the EV :Due to mixed content, the browser can decide to not show the EV green bar.https://support.mozilla.org/fr/questions/932768https://www.w3.org/TR/mixed-content/
we have for our domain.tld two certificates. One with EV (for domain.tld and www.domain.tld) and wildcard for subdomains.Our website is running on www.domain.tld (always) and subdomains are used for images (img.domain.tld).We are using nginx "virtual hosts":server { # listen 443; listen 443 s...
nginx and two certificates for one domain (EV nad wildcard)
1 Try: proxy_cookie_path / "/; secure; HttpOnly; SameSite=none"; Share Improve this answer Follow answered Oct 11, 2021 at 11:04 AeonMAeonM 30422 silver badges99 bronze badges ...
On an Apache test server, our vendors were able to achieve what we needed by setting Header edit Set-Cookie ^(.*)$ $1;HttpOnly;Secure;SameSite=None in .htaccess. However, our live site is running Nginx and we are having trouble figuring out how to translate this into something we can configure there.
Is there a way to set the SameSite cookie to none with Nginx?
RewriteRule ^admin/admin.([A-Za-z0-9\-]+)/?$ /admin/admin.$1.php [NC,L]fixes the admin part, now i need to fix the profile part..ShareFollowansweredFeb 22, 2013 at 9:54user1927159user1927159Add a comment|
I'm using the following rewrite code in my htaccess, but there's a problem.RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^([A-Za-z0-9-_]+)/?$ /$1.php [NC,L,QSA] RewriteRule ^admin/([A-Za-z0-9\-]+)/?$ /admin/$1....
htaccess not behaving the same on different machines
Update: Since end of 2019, AWS Cloudformation natively supports App Client Settings, Domain and Federated Identities. See other answers. Looks like there is no way to provide App integration -> Domain name and Federation -> Identity providers via CloudFormation. I found only reference for User Pool Client (General set...
I already have my cognito user pool cloudformation template working, and have it integrated to my api gateway. But somehow i still have to manually configure the app client settings, domain, and federated identities to have a working login portal for the users. I have been looking here and there for possible solutions...
Cloudformation Cognito - how to setup App Client Settings, Domain, and Federated Identities via SAM template
0 In your first model, you don't have forks, only clones (see "Git fork is git clone?") And from one clone, you can push as separate users. You only need: the right .netrc (one per user) with the right GitHub credential in it: see "Git - How to use .netrc file on windows t...
I have several git repositories that are hosted on GitHub where the code is meant to control some specific piece of experimental hardware. So I end up with this situation a lot: Myself and some others have personal clones/forks of the repository for development work on our laptops. The workstation attached to the ex...
Git workflow: Single workstation attached to experimental hardware w/ Multiple users
1 In container, prometheus does not know localhost which is on host server. So change localhost to 172.17.0.1 is an IP address of gateway's container network. OR get ipaddress gateway using docker inspect cotainer_ID Share Improve this answer ...
I want to integrate rabbitmq with prometheus on docker. I see rabbitmq metrics on localhost:15692/metrics but in prometheus I get this error: Get "http://localhost:15692/metrics": dial tcp 127.0.0.1:15692: connect: connection refused rabbitmq_prometheus is enabled and this is my prometheus configuration global: s...
How to integrate rabbitmq with prometheus on docker
You have a wrong remote URL -git://is the name of Git protocol (port 9418), and it doesn't need to be followed by a different protocol name.Try this:git remote set-url origin https://[email protected]/anhbui2904/sample_app.gitThis will set youroriginremote URL to use HTTPS.ShareFollowansweredJun 16, 2019 at 13:52Oleksi...
I am trying to push using git using:git push -u origin --allHere is my problem:Fatal: unable to look up https (port 9418) (No such host is known. )I ranping github.comand got the IP, but I do not know what to do with them.
How to fix "fatal :unable to look up https (port 9418) (No such host is known)
Sure you can, as long as your files don't take more than 10% of the available space on the device's storage or 2GB whatever is smaller, you can store any binary file you wish in IndexedDB.ShareFollowansweredOct 25, 2020 at 1:49community wikiKaiidoAdd a comment|
Is it possible to use IndexedDB on a web page to store audio?Currently trying out the Cache API, but looking for something that can be a little more persistent.
IndexedDB to store audio
You need AWS IAM Role mapped to a ServiceAccount. Try using this user guide:https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html
I have a pod which I plan to run under EKS & KOPS managed cluster. The pod does some calculations and I want to write the results to DynamoDB.How can I access AWS DynamoDB from it?Also, say I want to package it using helm, is there an option that all of the required configuration to access AWS would be only pod helm pa...
How can I access AWS from a pod running under EKS/KOPS Cluster?
Unfortunately, you, as a client (who is pulling an image), cannot do that much in order to deal with it (at least for now). The only thing I can suggest is to set the setting: --max-concurrent-downloads to 1. The thing is - Docker daemon, by default, is pulling 3 layers of images at a time (You can observe it in the o...
Sometimes when pulling images I will loose internet for around 3 minutes and then reconnect, but by then it is too late since docker pull usually times out. How can I change this default timeout, to say 10 minutes?
Increase docker pull timeout
2 TLDR: resource.getrusage sometimes misses that Python already removed objects from memory There was a bug in memory profiler (which was using resource.getrusage at that time). In this blog post the different methods for memory measurements are described. I cite: "this app...
I want to check memory consumption of my python code and have therefore added the following rows in the code: import resource print(resource.getrusage(resource.RUSAGE_SELF).ru_maxrss) As an alternative I have also tried this: import psutil process = psutil.Process(os.getpid()) print(process.memory_info().rss) # in b...
psutil gives other result than resource
As described here:github: docker-node best practiceYou can add the--initflag to your docker run command.docker run -it --init -p 3000:3000 --name nodetest mynodeimage
I have just installed dockers and installed node. I am able to run a basic express site. My issue now is I can't stop it. Control-C is not doing anything.Temporarily what I did to exit was:Close the docker's terminal.Open a new one.Search for all docker containers that is running.Thendocker stop [container]Is this the ...
How to stop running node in docker
You can use theSimulatePrincipalPolicyAPI to simulate how a set of IAM policies attached to an IAM entity works with a list of API actions and AWS resources to determine the policies' effective permissions.The entity can be an IAM user, group, or role. If you specify a user, then the simulation also includes all of the...
Given the input of just an AWS Access Key and an AWS Secret Key, how can I use the AWS SDK to lookup what kind of permissions that the account can do?I want do XYZ for a customer so the customer needs to give the access key and secret key to me to perform XYZ programmatically. However, before trying to do any of those ...
Given an AWS Access / Secret Key Pair, how do I retrieve its IAM permissions?
Is it the best way or the only way to resize the array by copying all elements to a new array? Yes, that's the only way to resize an array. For a given size array, only that section of memory is allocated for the array, the surrounding memory could be allocated to other things, so you can't simply expand the memory,...
I read the source code of the class System.Collections.Generic.List<T> of .NET4.0 with Reflector, and I have some questions. Here is the code: [__DynamicallyInvokable] public void Add(T item) { if (this._size == this._items.Length) { this.EnsureCapacity(this._size + 1); ...
Resize capacity of List<T>
20 Use awscli aws s3 ls s3://bucket --recursive --human-readable --summarize Share Improve this answer Follow answered Mar 21, 2017 at 17:47 franklinsijofranklinsijo 18k44 gold badges48...
I'm looking for a solution to recursively get the size of all my folders on a Amazon S3 bucket which has a lot of embedded folders. The perfect example is the Linux du --si command: 12M ./folder1 50M ./folder2 50M ./folder2/subfolder1 etc... I'm also open to any graphical tool. Is there any command or AWS API for th...
Equivalent of "du" command on a Amazon S3 bucket
Rules look fine, the+qualifier in your regex should make it so it won't match just the/request. You can maybe try adding this right belowRewriteEngine OnRewriteCond %{THE_REQUEST} \ /+(?:index\.php|)($|\ ) RewriteRule ^ - [L]
I can not figure out how to exclude home page from rewriting. In other words, .htaccess treats "example.com" as "example.com/user/index.php?name=" so it displays user specific content instead of my main page. I've tried bunch of things and nothing worked as I expected.RewriteEngine on RewriteCond %(REQUEST_FILENAME)...
How to exclude main directory/home page from rewriting rule in htaccess?
It wasn't too hard, but it took me a while to realize what I was looking at. The revisions of a fork include the revisions of the original, so you can see the differences by looking at any revisions after the gist was forked.For example, Eckanakar's fork hasseveral revisionsthat you can see changes in.
I found an interesting gist on GitHub, tried it out, and found a bug. I noticed that there are several forks of the gist, so I wondered if any of them have fixed the bug I found. I can see the list of forks, and some of them are marked as modified, but I can't see how to tell what the differences are between the forks ...
Compare a GitHub gist with its forks
This is the correct command:git config --global user.email "[email protected]"Note that in your example you are using'instead of".Moreover you should learn that when in a shell the first character changes from$to>it means that the command that you where entering in the previous line is still waiting for more inputs/par...
Hey I reinstalled Github completely with all files removed.Now I have installed it again but when I try to set it up i face some problems.git config --global user.email '[email protected]'When I write this the terminal changes the first sign from a "$" to a ">". And no further commands work, how can I set up my email a...
git config --global user.email Wont let me change email after reinstalling
5 You are looking for dotenv gem. Install the gem gem 'dotenv-rails', :groups => [:development, :test], then just create and `.env' file and put the variables into it like this. S3_BUCKET=YOURS3BUCKET SECRET_KEY=YOURSECRETKEYGOESHERE Share Improve this answer ...
I'm trying to figure out what is the best way to set up my credentials in development? I'm able to set up credentials in production because of heroku's configuration variables... but need help doing so if you're just testing app locally. I have this in my development.rb config.paperclip_defaults = { :storage => :s3,...
How to setup AWS credentials in rails for development?
This does not have anything to do with SNI, as you currently only have one HTTPS server. What happens, as you've stated in your comment, is that the alpha.net domain resolves to your server's IP. Your Apache server is set up to listen for requests on port 443 on this IP, and to serve the contents of charlie.net to thes...
I have a Debian server which is running a number of client sites. Most of these are not running SSL so accessing by HTTP is fine.I have one customer with an SSL certificate and accessing their site via HTTPS is fine too.The problem comes if you try to access one of the other sites with HTTPS you get directed to the oth...
Why does an SSL certificate show for a site with no SSL [duplicate]
Have it this way:RewriteEngine On # Unless directory, remove trailing slash RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+?)/$ /$1 [R=301,L] # Redirect external .php requests to extensionless url RewriteCond %{THE_REQUEST} \s/.+?\.php RewriteRule ^(.+)\.php$ /$1 [R=301,L] # Resolve .php file for extensionless ...
I want to access some php files which are located inside some subfolders. I'm using a .htaccess file, which removes all the .php extensions. Here is the file:RewriteEngine On # Unless directory, remove trailing slash RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]+)/$ http://example.net/folder/$1 [R=301,L] # ...
No access to files in subfolders when removing extension in .htaccess
If I create a merge commit locally through pull, will those 3 commits that I'm ahead by affect future pull requests now that they are in my history but not the upstream history?The typical next step you would take, after doing agit pullwhich creates a merge commit, would be togit pushyour local branch to the remote. T...
I have a forked upstream repo that I pulled from twice and a commit that I merged into my origin and was merged into upstream(not my repo) via a pull request. Nowgit statusisYour branch and 'upstream/master' have diverged, and have 3 and 31 different commits each, respectively.When I run git pull a new merge commit i...
Will pulling and pushing to a git Repo with different histories affect pull requests if the Heads are the same?
in.StartAt(DateTimeOffset.UtcNow).WithCronSchedule("0 0 0/4 * * ?").ForJob("Job2").Build();Test with.StartAt(DateTimeOffset.UtcNow).WithCronSchedule("0 0 0/4 * * ?").ForJob(secondJob).Build();
I'm trying to set up 2 and more scheduled tasks to run 4 hours difference since when the first task stared. To do so I'm using Quartz.NET library like following:ITrigger firstTrigger = TriggerBuilder.Create() .WithIdentity("Trigger1") .StartNow() .WithCronS...
Schedule multiple scheduled tasks using Quartz.net
We developed PipeGraph, an extension to Scikit-Learn Pipeline that allows you to get intermediate data, build graph like workflows, and in particular, solve this problem (see the examples in the gallery athttp://mcasl.github.io/PipeGraph)
I am using aPipelinein scikit learn to group some preprocessing together with aOneClassSVMas the final classifier. To compute reasonable metrics, I need a post-processing which transforms the -1,1 output of theOneClassSVMto 0 and 1. Is there any structured way to add such post-processing to aPipeline? Transformers cann...
Post-process classifier output in scikit learn Pipeline
Now, Question is, is this a right way? This is the exact way you should work, you got it all correctly and you have a full understanding on how to work with git. Since you don't have permissions to contribute back to the original repository you need to use pull request to do so, just like you understood you should d...
I will try to explain my Question as clearly as possible. Okay, I am working in a big enterprise financial company and one of the team has worked on some project for their stuffs and has github repository. Now, We (another two new team) want to utilize their work for our need and going to use their repository. We...
GitHub Repository Fork in Enterprise
The passphrase is required to decrypt the key. You can't "skip" it. You couldremovethe passphrase on the key usingssh-keygen -p(see the man page for details).You may want to investigate the use of aGitHub Deploy Key, which is a per-repository ssh key that grants read-only access to the repository. These are meant to...
I'm using private keys for downloading my repository from Github in my Docker file. I have something like this:RUN mkdir -p /root/.ssh && echo "$MY_PRIVATE_KEY" >/root/.ssh/id_rsa && chmod 0600 /root/.ssh/id_rsa && ssh-keyscan github.com >> /root/.ssh/known_hosts && cat /root/.ssh/known_hosts && ssh -vvv[em...
Dockerfile: skip passphrase for private key
No, it is incorrect. Certificate thumbprint is calculated over entire certificate, not just public key. When you renew the certificate, it is changed. At least, validity period will be different as the result, thumbprint on renewed certificate will be different as well.
I have a certificate for one year with PublicKey A, and ThumbPrint B. As long as I know, the ThumbPrint is generated by a hash algorithm from A.If I regenerate the certificate again with PublicKey A, the ThumbPrint should not change and will be B, right?Regards.
Will public thumbprint change on renewing a certificate?
You could yuseVertical Pod AutoscalerinAutoorRecreatemode.It support Jobs, CronJobs, as well as Deployments.Please be aware oflimitations, such as it cannot be used with HPA on CPU or memory, and VPA can't evict pods which are not run under a controller.
I was wondering if there are any ways to spin up another job, on the event that a pod controlled by a job fails, which would update the job controlling that pod’s memory request value, maybe double it, before the pod restarts?I’ve looked up PreStop container lifestyle hooks, operators, etc. Right now the best solution ...
How best, when a pod controlled by a job fails due to out of memory error, to increase the requested memory before rebooting the pod?
As pointed out inthe comments, the typical way to share changes is via pushes and fetches to remote repos, and pull requests.However, if you really want to use diffs as patches instead, then you can send to your friend the diff/patch as a file (or copy and paste into an email or instant messaging, if you're okay with t...
We two friends are working on a project:I have made some local changes in my project, which still needs to be committed. when i take a git diff it lists out the difference between my local repo and staging area.My other friend is working on the same project and want to add the git diff in my local repo to his own local...
Taking a git diff and creating a new branch in different repo
If you can't make the regex more specific, you'd have to create a new blackbox module per set of failure words.
We use blackbox_exporter "fail_if_body_matches_regexp:" to check different internal monitor pages. The problem is when developers use many different "words" for "failed_application". Some of the words are actually present on some of the other monitor pages, when service is OK. Is it possible to differentiate on instanc...
Prometheus Alertmanager: Blackbox exporter alerts based on instance
In your container shell, you should try to look for a log file mentioning the recent installed packages. See "Is it possible to get a list of most recently installed packages?" For instance: grep " install " /var/log/dpkg.log
I have a dockerfile which specified 12 ubuntu dependencies to install. I created a docker image and then spin up a container using that docker image. I just tried to list out the dependencies present in the docker image by "apt list --installed" (by using shell inside running container). I am able to see 409 dependenc...
Through docker Image, how to list out only the dependencies specified in dockerfile and not the ones which are automatically installed?
You need to usebuild-time variables(–build-arg).This flag allows you to pass the build-time variables that are accessed like regular environment variables in the RUN instruction of the Dockerfile. Also, these values don’t persist in the intermediate or final images like ENV values do.So, yourDockerfileis only 3 lines:A...
I am behind a proxy an i need to install something viaapt-get.The best I came with is thisARG PROXY ENV http_proxy=$PROXY ENV https_proxy=$PROXY RUN apt-get update -y && apt-get -y install ... ENV http_proxy= ENV https_proxy=The thing is that I need to unset those environment variables afterwards.Any idea how to do it ...
run apt-get with proxy in Dockerfile
First things first:NAT Gateway in Public Subnet allows Instances from Private Subnet to reach internet for software updates etc via Internet Gateway.NAT Gateway doesn't play any role in SSHing into an Instance.Try this to test:Attach Default NACL(allows all inbound and outbound) on Public and Private Subnet where your ...
I have set up below VPC configuration but the SSH to the instance is not happening at the moment:Created a new VPCCreated a public and private subnetLaunched an ec2 instance to the public subnet updated route tables for internet gatewayLaunched ec2 instance to private subnet.Associated a natgateway to the public subnet...
AWS : SSH to private subnet EC2 instance from public subnet EC2 instance via NAT GATEWAY is not happening
Assuming you are running the script directly through cron (as opposed to from a web server accessed by an HTTP request triggered by a cronjob (e.g. by cron running wget)), then of course it doesn't work. There is no server, so $_SERVER is not set.
I use $_SERVER['DOCUMENT_ROOT']."/lib/sft_required.php"; to include the 'sft_required' file in a PHP script. When I run this file using browser, it works fine but when I run this as a cron job job, it does not work. It seems that the file is not included when we run the script through cron.
$_SERVER['DOCUMENT_ROOT'] does not work in the php script running through cron
2 Another one with the same problem as me :) I ended up with this solution: http://szeryf.wordpress.com/2008/02/02/multilingual-page-caching-in-ruby-on-rails/ I couldn't change the structure to include the language identifier in the URL as suggested here: http://groups.goog...
I have a standard Rails application running with the I18n support. I have extensive caching running for this app. I edited a few strings and confirmed it worked locally. I also confirmed I have the right strings on the file for the live site. Still for some weird reason I do not see these changes for my live site even...
My Rails Application doesn't update the localized strings in production mode
So it turns out you can use metrics_path for the gce discovery. Problem solved.
I've been trying to figure out why the hostname is invalid. I'm also discovering hosts in aws and using the same method. The exception is that the gce sd doesn't have an option for metrics path so I put the metrics path in the replacement field.In order to access the metrics I've created at my endpoint, prometheus need...
Prometheus service discovery for Google Cloud Platform - not a valid hostname error
There is no one-fits-all sharp threshold to when GPU parallelization is better as it depends on the hardware. The data transfer from CPU to GPU and back causes latency in the range of milliseconds and needs large amounts of data to run efficiently at full PCIe bandwidth. However since compute time for matrix multiplica...
So I've been messing around with OpenCL kernels and I'm trying to understand GPU acceleration a bit better and I'm curious to find out how one would find the point at which it would be more computationally efficient to use GPU acceleration in place of tradition CPU computing
How big would a mat multiply be for it to be more effecient to use th gpu
Docker runs a main process in its containers, as such, stopping the main process will also stop the container.I will attempt to answer your question, but I don't think that you should work like that in a Dev environment.Answering your question, you can "trap" the container in a main process, then just bash into the con...
I'm using docker compose for running my application in dev. environment.version: '3.4' services: web: build: context: . target: base ports: - "5000:5000" stdin_open: true tty: true volumes: - ./src:/src command: node src/main/server/index.jsComposer is starting container...
Docker compose - run shell and application inside shell
Generally Amazon Cognito is used from "untrusted" clients like mobile and JavaScript apps to vend temporary AWS Credentials directly to the end user. Since the most common Java client-side apps we see are Android apps, our guides focus on Android rather than plain Java, but the same process will work with the Java SDK...
I want to test custom user authorization with Cognito and do it from a simple java code. The problem is, the CognitoCachingCredentialsProvider requires an Android ApplicationContext and won't accept a null. The whole flow is supposed to go like this: User logs in using an email and password Backend (a Lambda function...
Can I authenticate with AWS Cognito from plain Java?
I would do this with two separate constructs. For after the application starts, use @PostConstuct, and for every night at midnight use @Scheduled with the cron value set. Both are applied to a method. public class MyClass { @PostConstruct public void onStartup() { doWork(); } @Scheduled(cron=...
How to describe Spring scheduler which is run after application is started and after 00:00 ?
Spring scheduler which is run after application is started and after midnight
Perhapsgithub's SVN supportandgithub's SVN write supportmight come in handy in whatever you eventually end up doing.
I want to use Git and Github for the development of a project. But college requisites says that I must use a SVN repo of their own.I think it should be possible to develop using Git–Github and use the SVN as a mirror of the Git Repo. Nobody will commit directly to the SVN repo, only to the git repo.My question is, How ...
Read-only SVN mirror of a Git repository
It depends on how you're storingi. If you copy or retain it ininitWithItem:, you need to release it inSale'sdeallocmethod (see below). If you're storing a weak reference, this is fine.- (id)initWithItem:(Item *)i { if ((self = [super init])) { // If you're retaining i here, you need to release it in dealloc. ...
If I have an object Sale that contains another object Item. Let's say my Sale header looks like this:#import <Foundation/Foundation.h> #import "Item.h" @interface Sale : NSObject { Item *item; } @property (readonly) Item *item; -(id) initWithItem:(Item*)i; @endAnd in my function I c...
Proper way to release objects in Objective-C
Docker and Git are 2 completely different technologies. Git is a Source Control solution, while in docker you can run apps in docker containers. Think of it a sort of 'new' virtualisation technology. You can use both at the same time hower, no problem..... EDIT ...Docker doesn't keep a copy of your source code. With do...
Suppose I have a machine. It can be a single production server, one of production nodes in a cluster, some kind of staging server, a server or a cluster for testing or a developer workstation. Or something different.Now I want to deliver app to the machine and run it. I cangit pull && docker build. Or I can justdocker ...
When to pull from Docker repo and when from Git repo and then build?
By default,git considers as Author and Committer what's on youruser.emailanduser.nameconfig values- and there's no way to set that from config files.However, both valuescan be overridden on a per-commit-basis using environment variables. Thus, if you set these in your shell settings you should be able to set a differen...
I'd like to have a default Committer that's different from my default Author, as I want to differentiate commits made from my local env and those from testing env. How do I do that?
How do I setup a default committer different from my default author on git?
There's really very little advantage to attempting to perform "in-place reallocation", because the common case is for there to be no room to expand an allocated memory block in-place. Any good allocator will aim to avoid fragmentation as one of its top priorities - failure to do so can result in catastrophic explosion...
My understanding of realloc was that, if memory was available contiguously beyond the point allocated, it can try to extend the current allocation without copying. While reading this https://github.com/facebook/folly/blob/master/folly/docs/FBVector.md I came to know that most allocators avoid inplace reallocation . ...
Why do C++ allocators avoid in-place reallocation
Yes you can, option a) split your dockerfile , generate a random result in the uncached command: RUN apt-get update && apt-get -V -y dist-upgrade RUN head -c 23 /dev/urandom > /.randfile && apt-get -V -y --allow-unauthenticated --no-install-recommends --allow-downgrades install -f business=1.1-0 option b) use m...
I have the following dockerfile: FROM debian:buster #Configure apt to look at my Debian repository COPY ./apt /etc/apt #Install the software into the image RUN apt-get update && apt-get -V -y dist-upgrade && apt-get -V -y --allow-unauthenticated --no-install-recommends --allow-downgrades install -f business=1.1-0 ...
Docker cache causes false positive release
0 I know you are C# and Universal Windows Platform (UWP), but thought I would post this, since it may help. My Git-Captain node.js project stands up a server that does calls to the GitHub API. In the GitHub Git-Captain project readme, I explain to store the client_secret an...
For OAuth authorization through applications, you must specify the clientID and clientSecret. This is necessary so that GitHub can identify my application and remove some restrictions. I registered my application and got the id and secret, but! it is not clear where to keep Secret, many people do not recommend storin...
Where and how should I keep Client Secret?
Are there any specific syntax that we need to follow to write a shell script kind of code in the arguments of a POD?No, shell syntax is the same across....how will I know that the while true need to end with a semicolonUsed|for your text block to be treated like an ordinary shell script:... args: - /bin/bash - -c - | ...
I am learning kubernetes and have the following question related to command and argument syntax for POD.Are there any specific syntax that we need to follow to write a shell script kind of code in the arguments of a POD? For exampleIn the following code, how will I know that the while true need to end with a semicolon ...
Kubernetes POD Command and argument
If you want to clone from GitHub and if it's your repository, you can edit file content and rename them right on GitHub.Click on the file you want to edit and you will see at the beginning of a file:Click on thepenicon, rename file and below type commit message and commit. Then you can try to clone.NOTE: If it's not yo...
When I want to clone repository that contain : (colon) in the path I got this error:Clone succeeded, but checkout failed.I tried to use git cli and git gui and I got same error. Is there any solution for this problem?
Error cloning a repository on Windows due to invalid chars in file name
If you allocate a page in the kernel with __get_free_page in the kernel, it is not swappable. In Linux, a struct page tracks a physical page, which is not swappable. Swapping works on the level of userspace mapping and their contents; so if userspace memory is swapped out, the contents may be swapped back into a dif...
Suppose to call __get_free_page in order to request the kernel a free page in ZONE_NORMAL zone, so with GFP_KERNEL flag. We know that the returned address is a kernel logical address so there exists a "permanent" mapping in the page table for that logical address and the physical address is calculated with the macro _...
__get_free_page, physical address and swap
There is a typo in your .spec Section of the yaml. you have written:"contianers"as seen in the error message when it really should be"containers"also for future reference: if there is an issue in your resource definitions yaml it helps if you actually post the yaml on stackoverflow otherwise helping is not an easy task...
I am a beginner and start learning Kubernetes.I'm trying to create a POD with the name of myfirstpodwithlabels.yaml and write the following specification in my YAML file. But when I try to create a POD I get this error.error: error validating "myfirstpodwithlabels.yaml": error validating data: [ValidationError(Pod.spec...
error validating data: [ValidationError(Pod.spec)
Try with:RewriteEngine on RewriteCond %{HTTPS} off RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [NE,L,R]
I want to redirect all of my HTTP requests to my HTTPS (SSL) protocol. Please guys this is not a duplicate. I have already tried every question found on SO which indicate such question but none of them worked. I tried everything I found on the internet but still cannot figure out what the problem is. May be somewhere s...
Redirect not working in Apache, HTTP to HTTPS
Your rule most likely doesn't execute. You are checking iflangexists in the query string, and only then read the first part of the path and use that as a language instead. That doesn't make sense.You can improve this by checking iflangdoesnotexist in the query string, and only match languages your site actually support...
Good day. I am trying to map an URL like "sitename.com/lang-code/pagename" to pagename.php?lang=lang-code using mod_rewrite, so I made this rewrite rule:RewriteEngine On RewriteBase / RewriteCond %{QUERY_STRING} lang RewriteRule ^([a-z]+)/(.+)$ $2.php?lang=$1 [NC,L] ...The thing is, I get an error when trying to change...
How can I use mod_rewrite to link SEO friendly multilingual URL
Written this way, you'll need roughly 6 bytes of memory for every character in the file. Each character is two bytes. You have the raw input, the substituted output (in the buffer), and you are asking for a third copy when you run out of memory. If the file is encoded in something like ASCII or ISO-8859-1 (a single-b...
I'm getting a java outOfMemoryError when I call this method - i'm using it in a loop to parse many large files in sequence. my guess is that result.toString() is not getting garbage collected properly during the loop. if so, how should i fix it? private String matchHelper(String buffer, String regex, String method){ ...
java outOfMemoryError with stringbuilder
i got how pages gets added in free list here is function flow from start_kernel(). start_kernel(); mm_init() mem_init() free_all_bootmem() free_all_bootmem_core() free_all_bootmem_core() __free_pages() __free_pages_ok() free_one_page() __free_one_pa...
I am trying to understand how free_list (of free_area of zones) to points different free pages in the Linux kernel. Can anybody explain how and where in kernel code and how they get initialized? It seems from looking through the kernel code that the only initialization of free_list in code is in zone_init_free_lists(...
how is Linux kernel's free_list initialized to point to free pages?
Your question is a duplicate of a handful of other questions, but I will give an answer so that this question has some clousure.You usedgit filter-branchfromthis question, in order to correct the email on a handful of commits. This succeeded, however you then took the following incorrect actions:Then I did git commit ...
I have a branch, and almost all commits had a wrong email"[email protected]"and I wanted to change that e-mail to my current email"[email protected]".While searching, I found this:git filter-branch --commit-filter 'if [ "$GIT_COMMITTER_EMAIL" = "[email protected]" ]; then export GIT_AUTHOR_NAME="Sandrina Pereira...
Git - branch commits history are duplicated
The key section in the documentation that's relevant to this issues is:Existing Replica Set controlling Pods whose labels match.spec.selectorbut whose template does not match.spec.templateare scaled down. Eventually, the new Replica Set will be scaled to.spec.replicasand all old Replica Sets will be scaled to 0.http://...
Here is my deploment template:apiVersion: extensions/v1beta1 kind: Deployment metadata: labels: name: XXX version: {{ xxx-version }} deploy_time: "{{ xxx-time }}" name: XXX spec: replicas: 1 revisionHistoryLimit : 0 strategy: type : "RollingUpdate" rollingUpdate: maxUnavailable : 0% ...
Kubectl apply for a deployment with revHistoryLimit 0 does not delete the old replica set
I'm going to go ahead and post my own answer to this, in case anyone else ever finds themselves pulling out their hair trying to resolve this. Everything will hint that you can do this, but there's no real, practical way to.If you want to allow mods or additional content to be dropped into your game after the fact, you...
I haven't found a clear-cut answer for if I can do this nor how to go about it. I'd like to allow my game to load additional MGCB into content managers, thus allowing additional content to be made after I release my game.I've seen talk of building them on the fly, but nothing about loading them nor using them. If I mis...
Loading an MGCB at runtime in MonoGame?
You'll need to do a few things:Configure both the client (WP7) and the server (WCF service) touse the basicHttpBinding with Security mode set to Transport. This will allow you to use an HTTPS endpoint.<system.serviceModel> <bindings> <basicHttpBinding> <binding allowCookies="True"> <security...
I'm trying to connect to my azure WCF service using an SSL certificate. I've seen a good few tutorials talking about changing the 'binding' properties in the web.config file but the tutorial I followed results in this not being possible (as far as I can see):http://www.silverlightshow.net/items/Producing-and-Consuming-...
Using SSL with WP7, WCF service and Azure
I have used data.table and DT packages. Using data.table I created a data.table object that can be accessed and analysed quickly. And using renderDataTable function from DT package, I was able to render the table on Shiny dashboard quickly. Thanks all for your help!!
I am quite new to R and I am currently working on a dataset (size: 2 GB size). I have stored this dataset in a workspace and whenever I load this dataset into R it consumes more than 90% main memory and hence it becomes difficult and highly time consuming to perform operations like filtering, processing and analyzing ...
R Memory Management For Large Datasets
What do you mean out-of-the-box for this case? It can be reached just writing a fewbashscripts, which shell be assigned to run withcron. I did the similar arch, it just time-by-time updated the hostgitrepository, from ansvnrepositore with one-side conversion. Of course, you should set up thecron, andbashscript calls fr...
I'm looking for solutions of the following problem. Suppose you have the service and it works with code base of OpenSource projects distributing via GitHub repos. You have server, which periodically updates local working copies from bunch of GitHub repos, on updates issued. You have a lot of machines (developers, appl...
"Git Proxy", not HTTP proxy
Options +FollowSymlinks RewriteEngine on RewriteRule ^PROJECT/first-section/([^/]+)/([^/]+) /PROJECT/first-subpage.php?Page_ID=$1 [NC] RewriteRule ^PROJECT/second-section/([^/]+)/([^/]+) /PROJECT/second-subpage.php?Page_ID=$1 [NC] RewriteRule ^PROJECT/third-section/([^/]+)/([^/]+) /PROJECT/third-subpage.php?Page_ID=$1 ...
I have a project that lives at the following domain:http://www.example.com/PROJECT/within project, there are three subpages, which have pages structured like this:http://www.example.com/PROJECT/first-subpage.php?Page_ID=12345 http://www.example.com/PROJECT/second-subpage.php?Page_ID=12345 http://www.example.com/PROJEC...
.htaccess rewrite multiple domains
Today’s CPUs fetch memory in chunks of (typically) 64 bytes, called cache lines. When you read a particular memory location, the entire cache line is fetched from the main memory into the cache.More here :http://igoro.com/archive/gallery-of-processor-cache-effects/
I am working on a system, written in C++, running on a Xeon on Linux, that needs to run as fast as possible. There is a large data structure (basically an array of structs) held in RAM, over 10 GB, and elements of it need to be accessed periodically. I want to revise the data structure to work with the system's caching...
How many bytes does a Xeon bring into the cache per memory access?
OK, it took long, but I found it all out:TheServer Error (500)response comes from Django'sdjango.views.defaults.server_error(if no500.htmltemplate exists).TheInternal Server Errorfrom the bonus question comes from gunicorn'sgunicorn.workers.base.handle_error.nginx logs the 500 error in the access log file, not the erro...
I have a Django app running on agunicornserver with annginxup front. I need to diagnose a production failure with anHTTP 500outcome, but the error log files do not contain the information I would expect. Thusly:gunicorn hassettingerrorlog = "/somepath/gunicorn-errors.log"nginx hassettingerror_log /somepath/nginx-error...
Django with gunicorn and nginx: HTTP 500 not appearing in log files
This is the command which is passed to the container. $ docker run -d busybox top $docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3eca7c034b21 busybox "top" 6 seconds ago Up 5 seconds recursing_dirac If you check above, top is the command whic...
docker ps or docker container ls returns an overview of all running containers. The meaning of all columns is clear to me, except one. What does the column 'COMMAND' mean?
What does COMMAND in 'docker ps' mean?
What are you going to do with your Nginx? If you just want a web server you can go with only Nginx, that's fine.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by prog...
Nginx only or Nginx(reverse proxy) + Apache [closed]
6 I can recommend two projects: If you have a single Rails app, take a look at Rubber. It's a gem that can provision EC2 instances for you, install software and deploy your app. It's based on Capistrano. There are recipes for the most common components (mysql, apache, pas...
I want to deploy a rails onto amazon ec2. I've had a look at poolparty and ec2onrails but neither seem to be maintained anymore. What are people using to do this? Is it all homebrewed puppet and capistrano or is there a project that will get me going?
Hosting rails on ec2
You can use InfluxDBfill() option:SELECT mean("count") FROM "lettersCount" WHERE ("letter" =~ /^$letter$/) AND $timeFilter GROUP BY time($interval), "letter" fill(previous)ShareFollowansweredNov 15, 2019 at 10:28Jan GarajJan Garaj26.9k33 gold badges4343 silver badges6666 bronze badgesAdd a comment|
I'm learning how to use Graphana with InfluxDB. I've prepared a simple example that displays a graph with the number of letter occurrences across time. I use simple InfluxDB measurement with one tagletterand one fieldcount. To display data I use the query:SELECT mean("count") FROM "lettersCount" WHERE ("letter" =~ /^...
Grafana and InfluxDB Show latest value on null
You would need to create that archive file yourself (with the right naming convention) andadd it as a releaseto your tag.That tag already references the zip/tgz of the repo, but using a naming convention which does not suit you,as seen here.
I want a specific Name to be given when someone Downloads the Zip Package from my GitHub Repo.My Problem is: the Name must have an appended Version Number likeMy_File_1.0.2.But GitHub automagically generates the Name from the Repo name.As a Workaround, I can only think of using multiple branches, but that is a hell of ...
GitHub: How to rename the folder inside a downloaded Zip File?
The operation you're looking for is numpy.add(a, b, out=c) With c[:, :] = a + b, the evaluation of a + b does not have information about the fact that the result will be assigned to c[:, :]. It must allocate a new array to hold the result of a + b. (Recent versions of NumPy do try to perform some C-level stack inspec...
Let's assume two large multidimensional numpy arrays a and b. I want to perform an element-wise operation, e.g. adding them element by element: c = a + b In the above case, new memory is allocated for the result of a + b. A reference to this memory is then stored in c. Now, let's assume that memory for c has already ...
Understanding memory allocation in numpy: Is "temporary" memory being allocated when storing the result of an operation into variable[:, :]?
cAdvisor does provide a rest endpoint to get any stats in real time. By default, it keeps latest two minute of data. You can configure it to keep more or less. It also supports a storage backend to keep dumping stats to an influxdb database. REST Api: eg. /api/v1.3/containers doc: https://github.com/google/cadvisor/bl...
Sorry I just started to learn docker. My question may seem stupid for some of you. In fact, I would like to know if there is a way to collect performance metrics from "CAdvisor" container (not from cgroup) at runtime ? I mean, extract performance values from the curves designed by cadvisor like memory usage or network...
How can we collect performance metrics from CAdvisor docker container?
When you connect TeamCity to GitHub with help of OAuth, you grant TeamCity server permissions to make REST API calls to GitHub on your behalf. But to checkout source code this is not enough. Simply because your git executable knows nothing about OAuth tokens and all these OAuth specific flows. It expects a password or ...
i'm trying to configure teamcity with my github.the first step was to use OAuth in git in order to secure the connection between teamcity and git, that seemed to work ok, and now, when i go to add a new VCS root, i can see all of my git repositories and choose from them.the issue i have is when i try to add this VCS ro...
configure teamcity with github, why do i need a git password if i use OAuth?
It appears that boto has a read() function that can do this. Here's some code that works for me: >>> import boto >>> from boto.s3.key import Key >>> conn = boto.connect_s3('ap-southeast-2') >>> bucket = conn.get_bucket('bucket-name') >>> k = Key(bucket) >>> k.key = 'filename.txt' >>> k.open() >>> k.read(10) 'This text...
I have a csv file in S3 and I'm trying to read the header line to get the size (these files are created by our users so they could be almost any size). Is there a way to do this using boto? I thought maybe I could us a python BufferedReader, but I can't figure out how to open a stream from an S3 key. Any suggestions w...
Read a file line by line from S3 using boto?
No, there isno in-built ability to run commands on a regular basis on Amazon Redshift. You could, however, run a script on another system that connects to Redshift and runs the command.For example, acronjob that callspsqlto connect to Redshift and execute the command. This could be done in a one-line script.Alternative...
I have a redshift table and it is storing a lot of data. Every weekend I go and manually using Workbench TRUNCATE last week of data that I no longer need. I manually have to runDELETE FROM tableName WHERE created_date BETWEEN timeStamp1 AND timeStamp2;Is it possible to have some way to tell the table or have some expi...
Automate redshift truncate/delete data after a retention period
I'd definitely work with memcached. Once it has been setup you can easily decorate your functions/methods like it's done in my example:#!/usr/bin/env python import time import memcache import hashlib def memoize(f): def newfn(*args, **kwargs): mc = memcache.Client(['127.0.0.1:11211'], debug=0) # ...
I need something like a temporary in-memory key-value store. I know there are solutions like Redis. But I wonder if using a python dictionary could work? And potentially be even faster? So think a Tornado (or similar) server running and holding a python dictionary in memory and just return the appropriate value based o...
Using python dictionary as a temporary in-memory key-value database?
Elastic Beanstalk now uses a Service Role to call other AWS services on your behalf. The IAM role is created in your account and you give permissions to launch Service role is optional but recommended for new environments. Especially for enhanced health monitoring (which is what your using based on the error message)...
When I try to launch an Elastic Beanstalk environment from the command line, I get this error during the process: Environment health has transitioned from Pending to Warning. Access denied while accessing Auto Scaling and Elastic Load Balancing using role "arn:aws:iam::XXXXXXXXXX:role/aws-elasticbeanstalk-service...
AWS Beanstalk - getting "Access denied while accessing Auto Scaling and ..." error
The Network Load Balancer manages traffic from the security groups associated with instances in the target group. Referthisanswer for more details. So if X is the ip from where you want to access the NLB you will have to add X as an inbound rule in target group instance.MySQL instance registered on port 32778 has a hea...
I have been working on securing my AWS infrastructure and faced with a difficulty when it come to Network load balancer and Target Groups. Below is the problem.I have an ECS cluster running on EC2 resources. All containers are managed by a Task which is run by a service with dynamic port mapping. Each container is mapp...
AWS EC2 Security group permissions for Network Load Balancer
1 Folders do not need to be created as they only exists implicitly in git. Meaning that if you have a file with path folder/file.txt then your git client knows to create a folder called "folder" where the file "file.txt" is saved, but to git it is just a file with the name ...
I looked all documentation, but it doesn't answer my question. There is a way to write to a repo (upload a file)? Something like create a folder, and upload a readme.md
GitHub API - write to repo
Here is what happens. Stream is always evaluated lazily but already calculated elements are "cached" for later. Lazy evaluation is crucial. Look at this piece of code: a = a.flatMap( v => Some( v ) ) Although it looks as if you were transforming one Stream to another and discarding the old one, this is not what happe...
The following Scala code (on 2.9.2): var a = ( 0 until 100000 ).toStream for ( i <- 0 until 100000 ) { val memTot = Runtime.getRuntime().totalMemory().toDouble / ( 1024.0 * 1024.0 ) println( i, a.size, memTot ) a = a.map(identity) } uses an ever increasing amount of memory on every iteration of the loop....
Unexpected Scala collections memory behaviour
In your workspace add the projects you don't want to be pushed to git with your main workspace to your .gitignore file.# See http://help.github.com/ignore-files/ for more about ignoring files. #ignored standalone projects /projects/project1 /projects/project2This will exclude your defined directories from being pushed...
I am working on an Angular library (its my first one and I did the setup likethis). My folder structure looks like this:My-LibraryProject1_APIdistprojectsproject1project2my-ui-librarypackage.jsonNow I need to init git and I would like to have project1, Project1_API and project2 in their own repository (only for version...
Setup Git for Angular library with several projects
I was able to solve my problem with the following (namespace including restart included for brevity):namespace :deploy do desc 'Restart application' task :restart do on roles(:app), in: :sequence, wait: 5 do # Passenger restart mechanism execute :mkdir, '-p', "#{ release_path }/tmp" execute :t...
I have a production environment configured that deploys and works as it should. Although I have encountered an ancillary problem that I can't figure out.I am running the Whenever gem to execute a couple of cron jobs, the Whenever gem capistrano implementation has them deploying correctly and the scripts are executing. ...
Capistrano + Whenever gems - bin/rails: Permission denied
It depends on the server. GitHub and others will alias the non-.git version to .git. If you're running your own Git server, and name the bare repository with .git (as recommended for bare repos), then you will be required to use .git.
Take a Git repo named myrepo. What is it's real name/filename when referring to it as a remote? I ask because I've noticed that for Github you can use either: https://github.com/lightcc/myrepo https://github.com/lightcc/myrepo.git I've also seen cases where local repos point directly to the .git folder: /c/code/my...
What is a Git repository's real name when defining a remote?
Cron doesn't have it's PATH set. The easiest thing is to change the php command to the full path of the php binary./usr/bin/php /path/to/yourscript.phpI'm fairly certain that's the path in CentOS but you can know for sure by doingwhich phpon the command line and it will tell you.
I have searched hell and high water for a solution to a problem I'm having in CentOS. I'm trying to set up a cron job that executes a PHP script. I was able to get this working usingwget, but now that we are going into production, I need to find a way to do this whilst being more secure, as the cron job itself works wi...
Setting Up Crontab to Execute a PHP Script in CentOS
You can't use theDirectorydirective inside htaccess. Try putting this in an htaccess file insideteen-writersfolder.Order allow,deny Allow from all
I have an .htaccess file and I am trying to allow access to a sub website (within a folder) under our existing site.I'm using the following within my .htaccess file, but when I try to navigate to the folder that I want allowed I get a 403 error.Options +ExecCGI AddType application/x-httpd-php .php .html AddHandler x-ht...
How can I allow access to a specific folder with htaccess?
The real memory defragmentation on a process level is possible only in managed environments such as, for example, Java VMs when you have some kind of an access to objects allocated in memory and can manage them. But if we are talking about the unmanaged applications then there is no possibility to control their memory...
I was reading an article on memory fragmentation when I recalled that there are several examples of software that claim to defragment memory. I got curious, how does it work? Does it work at all? EDIT: xappymah gave a good argument against memory defragmentation in that a process might be very surprised to learn that ...
Memory defragmentation software. How does it work? Does it work?
Which version of eclipse and egit plugin are you using? For me on Kepler Service Release 2 and Egit 3.2.0 it works if I choose: Team->Share Project->Git and then tickbox Use or create repository in parent folder of project BUT then select the project folder . instead of the parent ..
I am trying to move a project into my git repo, using Team -> Share Project -> Git, when I select the repo the error "Cannot move project x to target location...as this location overlaps with location..." My workspace and repo are different folders (this seems to fix it for most people).
Cannot move project as it overlaps... Git/Eclipse
FoundDockerCli.exein theDocker Desktoppackage.
I'm trying to switch Docker to Windows containers on my Windows Server Core 1903 machine (no desktop).Thispage says DockerCli should be able to do so:& $Env:ProgramFiles\Docker\Docker\DockerCli.exe -SwitchDaemonThere is noDockerCli.exeafter fresh Docker installation:Directory: C:\Program Files\Docker Mode ...
Where do I find DockerCli.exe
Took me a while to try and fix this, but when docker for mac was anounced i quickly moved to it, i havent had permission issues since. So i recommend you checkout Docker For Mac
I am using Docker running Laravel 5.1 to generate PDFs so my problem is the file gets generated successfully without errors and is saved to the mounted volume. The problem arises when i try to pull the file back to display it using Storage::disk('local')->get($filename); I get ErrorException in Local.php line 187: fil...
How to change permissions of a docker mounted volume on OSX to work with Nginx web server running Laravel 5.1?
The question is does this port need to be open to the entire world?It depends on your demand. If you want entire world(Internet) to access your app, you need open it.what virtual network is this.An Azure virtual network (VNet) is a representation of your own network in the cloud. It is a logical isolation of the Azure ...
I've been searching for this for days and finally found most of the answer in this documenthttps://learn.microsoft.com/en-us/azure/app-service-web/app-service-app-service-environment-control-inbound-trafficIt says that you can block ports to your web application service in Azure using a network security group. However,...
Controlling inbound traffic to Azure Web Application Service
1 If your container has mapped its port on the VM 12008 port, you would need to make sure you have port forwarded 12008 in your VirtualBox connection settings, as I mention in "How to connect mysql workbench to running mysql inside docker?" VBoxManage controlvm "boot2docker...
I have a service running in a docker container (local machine). I can see the service URL in the Ambari service config. Now I want to connect to that service using my local development environment. I found I can connect to that within the container but when I use that URL outside in my local I get connection refused. ...
Connect to a Service running inside a docker container from outside
Helm is made of two components: the CLI binary namedhelmthat allows you to perform communication with a remote component, namedtillerthat lives inside your Kubernetes cluster that is responsible to perform patches and changes to resources you ask to manage.In fact, once deployedtillerusing the commandhelm init, you can...
Helm is a tool for managing Kubernetes charts. Charts are packages of pre-configured Kubernetes resources.Some time for beginner its very confusing So what is basic difference between Helm,helm and tiller.?
what is the difference between Helm ,helm and tiller in kubernetes
No, the trigger can have only one schedule.One of the main reason why this is done is to prevent a situation when it is not clear for scheduler how to resolve competition between conditions.Imagine you have a job with 2 intersected schedules: let's say you want to run the job every 15 mins and every hour, and it takes...
I am trying to create a windows service that executes twice a day. and I was successfully able to create it using two triggers added to a single job.var job = JobBuilder.Create<Job>().StoreDurably().WithIdentity("Report_Name", "Report_Group").Build(); scheduler.AddJob(job, true); var trigger_1 ...
Quzrtz scheduler with multiple cron schedules in a single trigger
As of now there is no provision as such with either withctrorcrictlcli to copy a host file to a running container as we have withdockercli (eg: docker cp).Though there is a project under containerd known asnerdctlwhich is trying to emulate the same.nerdctlis a Docker-compatible CLI for containerd.Link for reference:ner...
I find that I can usectr snapshot mountto copy a file from a container to a host. But how can I copy a file from a host to the container using containerd? I used golang to write some code to start a container, but I can't find any documentation about copying host files to a running container.
How containerd copy a file from host to a running container?