Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
The storage location for the retain count depends on both the runtime in use and the class implementation.For Apple's Objective-C runtime, you can figure out a lot by digging intothe source code of the Objective-C runtime.For example, if you're using ARC (and I think even if you're not), the reference counts for most o...
I am curious about how retain/release work internally. On the face, it seems like there's an integer related to each instance of anNSObject, which gets increased and decreased when you call-retainand-release, respectively.But taking a look atNSObject, the only instance variable it has is theisavariable, for determinin...
Where is the retain count stored for NSObjects in Objective C
The solution is to use Git-Hooks and feature branches. (The Github-flow is recommended). You have to install this Git-Hook (copy a file to your local repository): https://github.com/ktamas77/git_hooks Before you start working on a particular Pivotal Ticket, you create a branch prefixed with the Pivotal Tracker ID, for...
Pivotal Tracker and Github have great integration: Once it's set up, each commit which is prefixed by the Pivotal Tracker ID will appear under the corresponding Pivotal Ticket automatically, for an example: git commit -am '[#1234567] my new changes' git push origin will add the comment 'my new changes' automatically ...
How can I automate Pivotal Tracker & Github Integration?
You canfiltercontainers which publish or expose a given port:docker ps --filter=expose=3306or use theformatswitch to get a list of container IDs with the used ports:docker ps --format "{{.ID}}: {{.Ports}}"ShareFollowansweredAug 2, 2018 at 19:21Stefan PruggStefan Prugg27422 silver badges55 bronze badges11Thank you for y...
I have a collection of IPv4 traffic recorded by tcpdump, and I am interested in mapping a given outgoing connection to its origin Docker container on the same machine. I can view the TCP source port, but it is unclear to me how to ask Docker which container is using this port. How can this be done? Thanks
Map outgoing TCP connection to Docker container
0 It is clear that, in stable condition with the read cache full, it needs more than 70% of disk cache. Not all queues in read cache contain loaded data. The a1out queue which consumes 50% of disk cache size contains only information about pages which were loaded in a1in ...
I found out from the Docs that, given 100% usage of disk cache by orientdb, it uses a maximum size of 70% for read cache and 30% for write cache (http://orientdb.com/docs/last/plocal-storage-disk-cache.html#interaction-between-read-and-write-caches). Reading more about the read cache, it's divided by 3 queque: a1in, a...
How disk cache in OrientDB is separated by read and write cache (percentages)
As for thesafepart: Always keep a backup of your repository around and make sure you create a backup (by copying the directory to some other location) before you do anything that messes with git history.As long as it is only the order of the commits and the messages you want to change, I find git's interactive rebase (...
I have been working on a complicated github project which involved making many changes to the repository over and over again. Sometimes I ended up making many nasty and some times unnecessary commit messages that are making it it very difficult for new developers to understand how the project works.What would be the sa...
How to safely edit commits on a github repository?
At https://api.github.com/repos/ruby/ruby/tags I dont'see the word ruby in any tags name. The tags are sorted by name in reverse order (the same as a sort -nr) You can download and extract the latest tag ruby tarball by: LAST_URL=`cat ruby.json | grep -Po '(?<="tarball_url": ")[^"]* | egrep -v [a-z]$ | head -1' wget $...
So, I'd like to create a shell script that automates the process of downloading a package, unzipping it, cd'ing into it, configuring it, and compiling it from source. I have started with a simple script below: #!/bin/bash PROJ=ruby curl https://api.github.com/repos/$PROJ/$PROJ/tags -o $PROJ.json cat $PROJ.json | grep ...
Automating package compile process using GitHub API
SonarSource has created a FLOSS migrater for just this case:https://community.sonarsource.com/t/end-of-life-of-mysql-support/8667You will use it to migrate your data from MySQL to Oracle and thus retain all your projects and their history.
How can I migrate the history from one sonarqube server to another in which the first is using MySQL as the database and the second one is using Oracle?I would like to have the history of scans of the old sonarqube in the new sonarqube server along with date and in a sequential manner.
How to migrate history from one sonarqube server to another?
1 Is it possible to make apigateway a target group for an alb? NO As per the existing documentation currently you cannot have apigateway as the target group of ALB. You can get more details here - load-balancer-target-groups.html Is this a reasonable approach? Or would it...
I am in the process of replacing nginx. Currently, my nginx instance routes traffic to an s3 bucket OR to apigateway (apigateway then routes traffic to different lambda functions). Originally, I was considering replacing the nginx routing with an application load balancer, but I can't find any information on how to s...
Application Load Balancer in front of ApiGateway?
Looks like you are confusing the fact that users, browsing online, will trigger standard requests to both "download" your static content,anduse your 2 APIs (book and api). It's not the NGINX service serving the static content that is accessing your APIs, but the users browsers/applications, and they do that exactly the...
I have a smalljavawebapp comprising of three microservices -api-service,book-serviceanddb-serviceall of which are deployed on a kubernetes cluster locally using minikube.I am planning to keep separate UIs forapi-serviceandbook-service, with the common static files served from a separate pod, probably annginx:alpineimag...
How to serve static contents in a kubernetes application
You can build an LRU cache using the standard JDK library using LinkedHashMap: public class MyLRUCache<K, V> extends LinkedHashMap<K, V> { private final int maxEntries; public MyLRUCache(int maxEntries) { // you can be a bit fancy with capacity and load factor super(16, 0.75, true); t...
Are there any implementations of a static size hashtable that limits the entries to either the most recently or most frequently used metadata? I would prefer not to keep track of this information myself. I know most caching components keep track of this, but I would rather not introduce quite a lot of new dependencies...
Frequently Used metadata Hashmap
+50I am sorry because I don't fully understand your requirements, but maybe you could use tools likeskopeoin some way.Among other things, it will allow you to copy your container tar to different registries including AWS ECR without the need to install docker, something like this:skopeo login -u AWS -p $(aws ecr get-lo...
Is there an AWS CLI command to simply load my image tar to AWS? (I do not have docker on my computer at all nor do I want to increase the image size of our CD pipeline as I prefer to keep it very very small since it adds to the time to start in circleCI/githubCI).Is there a way to do this?If not, what is the way to do...
After jibBuildTar, what command to use to load to AWS ECR?
You need to increase the maximum number of CPUs available to containers in the DockerServer. In OS X you can find them in Preferences -> Advanced.
I am currently using a Macbook Pro with i7, which has 8 cores. However, I am not able set the CPU cores to more than 1. When I rundocker run --cpus=2 "my-image"I get the following error:docker: Error response from daemon: Range of CPUs is from 0.01 to 1.00, as there are only 1 CPUs available.What am I missing?
Docker not able to use all of Macbook's CPU cores
6 You need windows 10 Pro or Enterprise to have access to Windows containers. Source The other answer will indeed switch your daemon mode to Windows, but you will not be able to pull any Windows container. Update 2022: The link above now mentions that it should work for Wi...
I have installed latest Docker Desktop. Currently unable to switch to Windows container. The option is blocked from task bar : I am running Windows 10 Home 64-bit Build 19042.
Docker Desktop cannot switch to Windows Container
This is most likely because you're running an https redirect (or another redirect) inside another .htaccess file. So it is asking for the authentication once in http, and once in https. If you do this:<If "%{HTTPS} == 'on'"> AuthType Basic AuthName "Password Area" AuthUserFile "/yourdirectory/.htpasswd" ...
I use .htaccess to ask for credentials to access members only data. The .htaccess file is stored in one of the directories and protects everything in directories below it. The .htaccess file itself is very simple:AuthName "Members Area" AuthType Basic AuthUserFile /home/xxxxx/public_html/xxx/data/.htpasswd require val...
.htaccess requests correct login twice with .htpasswd and wordpress
Your project is under source control.. As you can see the files marked with letters "R" (for Renamed) and "M" (for Modified) and "A" (for Added) By default Xcode creates a local git repository for new project unless you uncheck that option Check this out Xcode will automatically add it under source control. You just...
I have created a project that I would like to push to my GitHub account. Unfortunately, I did not create a GitHub repository when creating the project. When I attempt to create a repository using Xcode by following the path of Source Control -> Create Git Repository, Xcode displays a popup stating that "all projects a...
Cannot create git repository using Xcode 9
There is no problem with the given redirect rule. It seems problem is that OP is executing shown rule from<VirtualHost *:80>section. Those rules will obviously won't fire if request ishttps://. OP can do one of the two thing to fix the problem:Keep same redirect rule in<VirtualHost *:443>section as well -ORKeep rule in...
I'd like to permanently redirect my pages to https + www.I'm using the code below but it doesn't work when I enterhttps://example.com. It does nothing and displays the page without adding the www.RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^ https://www.example.com%{...
Double conditions redirection
There are several, for example lighttpd. Here is a description of how C plugins can be built for it. NOTE I want the source code of web server to be as less as possible. The length of the source code is not a good metric for performance and memory use of a program.
I'm very new to Web server matters, and relatively a naive student of C++. I'm now working on a project where I have to create a Plugin to an existing web server. It is a commercial project for a company, but it's also my bachelor thesis project. I'm not quite sure which web server would be suitable for my project. Th...
C++ compatibility for lightweight web servers
It depends what you want to do; but basically, Redis is much more performant than CouchDB, and it is much more suitable for a cache system. Redis is an in-memory database (with options to sync to disk), with features for expiring data after a certain time.Redis is used often for caching, so it may be better in terms of...
I am using MongoDB for persisting data, and Redis for session storage. I need to cache a complex aggregation query done on MongoDB, so I was wondering what your opinions are on Caching on NodeJS, specifically caching with Redis or CouchDB.Which one is more performant? Correct me if I'm wrong, but is having a different ...
Cache on NodeJS - Redis vs CouchDB vs ..?
Right after this I went to investigate testcontainers-go source code and found that that all I had to do was to define in myContainerRequestSkipReaper: true,
I'm using bitbucket pipelines to run my Go project tests that use Testcontainers. Pipelines fail with message:Error response from daemon: authorization denied by plugin pipelines: --mounts is not allowed: creating reaper failed: failed to create containerSo I setexport TESTCONTAINERS_RYUK_DISABLED=truethat I found from...
Disable RYUK (Testcontainers for Go)
If you use a Dockerfile, first you better to build your image.FROM node:12.17.0-alpine as builder WORKDIR /app COPY . . RUN npm install RUN npx prisma generate RUN npm run build ## this is stage two , where the app actually runs FROM node:12.17.0-alpine COPY --from=builder /app/node_modules ./node_modules COPY -...
I would like to put my Nodejs app into a docker. When deploying it via npm run build and start I can send requests to it.But when creating a docker image I getting problems:First I have an EXPOSE 8080 in my Dockerfile. Then I am runningdocker run -p=3000:8080 --env-file .env my-docker-file. After that I am getting the ...
ConnectionError in Docker with Nodejs (Hapi.js) and Prisma
I found the solution: FROM osgeo/gdal RUN apt-get update RUN apt install -y python3-pip WORKDIR /work COPY requirements.txt ./ RUN pip install -r requirements.txt After that, you can install TF via requirements.txt file and you are done!
I'm using Docker to build and run my projects. I need to use gdal library, but using pip install gdal I have lots of error, so I tried to download from https://github.com/OSGeo/gdal/tree/master/gdal/docker the GDAL docker images. Now I would like to run my .py file but I have to import also TensorFlow and Numpy and ot...
Add TensorFlow and Numpy libraries to osgeo/gdal docker image
The basic abstraction in Spark is theRDD. If you look incore/src/main/scala/org/apache/spark/rdd/RDD.scalayou can findmap(),flatMap(), andfilter(), amongst others.But they are not terribly exciting.
I'm studying about mapreduce and spark, and I curious about how spark process the mapreduce work. Accordingly, I'm searching that in 'https://github.com/apache/spark', but Watching that site, I couldn't get any clue about which directory should I search to see mapreduce source code.I mean in following code, there are ....
What kind of directory shoud I search to look for mapreduce source code in spark?
I faced the same problem after upgrading to PHP 7.Upgrading PhpMyAdmin to the last version fixed the issue.
I am unable to export dbase from PhpMyadmin, on PHP7 and Nginx server.The/var/log/nginx/error.logsays18 FastCGI sent in stderr: "PHP message: PHP Fatal error: Cannot 'break' 2 levels in /usr/share/phpmyadmin/export.php on line 864I have already triedsudo apt install php7.0-mbstringandsudo service nginx restartbut st...
Phpmyadmin Export Dbase getting error on PHP7 Nginx
git log --oneline Copy the commit hash before merge one. git reset --hard <copied-commit-hash> git push --force (be carefully, it rewrites the remote history)
I have done some mess in my repo, which I don't understand at all. A strange commit has appeared: commit 70cc4bd585019286ef64ef591f1b6ab310484eb3 (HEAD, origin/master, origin/HEAD, master) Merge: 960b06a 709f964 Author: DuchSuvaa [email protected] Date: Tue Sep 12 15:46:05 2023 +0200 Merge branch 'master' of https:...
How do I delete a merge commit?
So to fetch all the unused docker images without actually pruning them, you could do the followingFetch all the images belonging to the running containers(which are not stopped or exited)Fetch all the images on the machineThen filter the images in step 1 from step 2Below are the shell commandsrunningImages=$(docker ps ...
This question already has answers here:How to check for unuse images for your docker containers?(5 answers)Closed1 year ago.I've found thatdocker system dfshows the large RECLAIMABLE space for me.In order to save the space, I know thatdocker image prune -awill remove all unused images.However, I'd like to know the list...
docker how to list all unused images without pruning [duplicate]
You are stepping into the shoes of Raymond Chen. He did the exact same thing, writing a Chinese dictionary in unmanaged C++. Rico Mariani did too, writing it in C#. Mr. Mariani made one version. Mr. Chen wrote 6 versions, trying to match the perf of Mariani's version. He pretty much rewrote significant chunks of t...
Last week I wrote a few lines of code in C# to fire up a large text file (300,000 lines) into a Dictionary. It took ten minutes to write and it executed in less than a second.Now I'm converting that piece of code into C++ (because I need it in an old C++ COM object). I've spent two days on it this far. :-( Although the...
C++ string memory management
0 You will still get that head.js speed benefit during the initial cache manifest download event and during cache manifest updates Share Improve this answer Follow answered Aug 15, 2012 at 3:36 ...
There are large speed benefits to using head.js in my own sites. Now I am considering HTML5 cache manifest to improve offline access to sites and improving speed (more things are loaded from cache) Are the benefits of head.js still there (parallel script loading in particular) if I use HTML5 Cache Manifest?
html5 cache manifest compatibility with head.js?
This is an old question, but in case anybody else lands here with this problem, the solution (for me) is to include the github username in each block in ~/.ssh/config. As in:# USERNAME-1 at github: ...
I can manage multiple SSH keys for different GitHub accounts so that I can access multiple accounts and projects, each with different credentials. However, is it possible for me to work on two different projects on two different github accounts (push and pull) in the same RStudio? I searched online but could not find a...
Two different Github accounts in the same RStudio
crontab commands are executed only with minimal environment variables, i.e.PATH=/usr/bin:/bin(on debian anyway),so if you are relying on programs that are in your$PATH, it will fail. Consider specifying an absolute path to the osmosis program wherever it's called from.Alternatively you can change$PATHitself in your scr...
I'm new in Ubuntu and programming. I'm testing a program that I found on github, to download and import OSM data into postgis. It works when I run it from terminal (url and name are fake):make all NAME=dbname URL='http://myurl'using postgres user.Now I need to run this command every day. So I wrote that script:#!/bin/b...
Run Makefile with crontab
I don't think there is any official specification about how long favicons should be cached (and why). You should rather ask browsers developers why they decided to cache them longer.My guess is that since websites change favicons relatively rarely, there's no need to check very frequently if a favicon has been updated.
I would like to know why favicons, unlike images and other resources are stored far longer in cache and seem to be very persistent as well. I'm using Google Chrome, so the question aims this browser, but also browsers in general as I observed this behavior in other browsers, too.This question(related, not a duplicate)t...
Why are favicons cached longer?
You don't need (you can't acctually) to add the unit to the expression, just the number. If your alert is never triggered maybe is something wrong with the expression or maybe the result is always less than 5. Have you tested the expression in the Prometheus console?
- name: app rules: - alert: ServerHighLatency expr: sum by(applicationName) (rate(http_server_requests_seconds_sum{status!~"4..|5.."}[1m]))/sum by(applicationName) (rate(http_server_requests_seconds_count{status!~"4..|5.."}[1m])) >= 5s for: 5s labels: severity: critical ...
How to create an alert in Prometheus with time units? Like "average response time surpasses 5 seconds in the last 2 minutes"
deflateEnd() returning Z_DATA_ERROR means that the deflate operations were left in some intermediate state, i.e. not completed, at the time of that call. So deflate() had never returned a Z_STREAM_END. Regardless, all of the allocated memory for deflate is released by deflateEnd(). So if you're calling deflateEnd(),...
i am trying to compress block of strings in partial_flush mode, moreover there is one case when there is only one string to process. Now i am calling deflateInit2(params...), deflate() and deflateEnd(). I get some correct output in output, witch is uncompressable(tried), but there is an error when trying to deallocat...
Zlib usage - deflateEnd() error
You can do this using the following CLI commands: Register a user aws cognito-idp sign-up --region {your-aws-region} --client-id {your-client-id} --username [email protected] --password password123 Confirm user registration aws cognito-idp admin-confirm-sign-up --region {your-aws-region} --user-pool-id {your-user-poo...
I' using Cognito user pool for securing my API gateway . Now I would like to make requests to my API using postman but I need to pass in Authorization token as the API is secured. Is there any AWS CLI command or REST API to generate auth tokens(by passing username/password)? I have searched documentation but couldn't...
How to generate access token for an AWS Cognito user?
Both the errors are due to date and time mismatch, ie.. try syncing system time settings to your exact location and login,that worked for me.
awsapps login page shows -It's not you, it's us We couldn't complete your request right now. Please try again later oraccess key and secret could not connect aws account with an error message as "An error occurred (InvalidSignatureException) when calling the DescribeCluster operation: Signature expired: 20220801T134645...
It's not you, it's us We couldn't complete your request right now. Please try again later- awsapps login
I have had a similar issue on Azure App Services, the way I solved it was using the links keyword. As I see from your docker-compose you are linking it in the wrong way. The reason why it works locally is because the containers are in the same local network. Have you tried to link reporting.service to messaging.bus in...
I have following docker-compose content: version: '3.4' services: reporting.service: image: xxx.azurecr.io/beta/reporting.service environment: - ASPNETCORE_ENVIRONMENT=Docker ports: - "5003:80" messaging.bus: image: rabbitmq:3-management environment: - RABBITMQ_DEFAULT_USER...
RabbitMQ container not reachable in Azure Web App for Containers
Usually, Git will only allow you to changenewcommits to a remote repository, i.e. commits that only add to what the remote already has. This is mainly to make sure that everybody working with the repository stays in a consistent state and their repositories won’t break.If you knowingly want to remove the commit from yo...
So I am on a branch with a bunch of commits. At a certain point in time I decide that the most recent commit is bad and I want to go back to the second-to-last commit. I did this usinggit reset --hard xxxxxxxxxx, where xxxxxxxxxx is the first ten digits of the commit code. This seems to work fine for reverting my local...
Revert local app to old commit, push it and replace commits further down branch
4 Seems like the From docker docs answers your question pretty exhaustively: By default, all external source IPs are allowed to connect to the Docker daemon. To allow only a specific IP or network to access the containers, insert a negated rule at the top of the DOCKER fil...
I have several web services in different containers and I redirected 80 ports of each server to another port on the host server. (container 1 80 -> 8003, container 2 80 -> 8004, container 3 80 -> 8005) I want to prevent access to these ports except the preconfigured ip list I've added iptables rules to the "docker-us...
How do I prevent redirected docker ports from being open to the outside world?
1 You could write your command more explicitly - this would also ensure you know exactly where commits are coming from or going to. git push (and pull) by default expand to git push origin current_branch_name, which is a shorthand for git push origin current_branch_name:cur...
Is it possible to git push to branch B, while using git pull to pull from branch A, while the local branch is branch C? I realize that git pull pulls all the branches down by default, and would be fine with setting it up to only pull the currently checked out branch. To clarify; the local clone of the repository only ...
Different remote branches for pushing and pulling
Just had the same issue. Open the file with Notepad++. On the bottom right it tells you the encoding the file is in. It has to beUTF-8 without BOM. You can fix that via selecting a new encoding at the top and saving the file.ShareFolloweditedOct 12, 2022 at 8:30answeredMar 5, 2020 at 13:01jaaqjaaq1,2261212 silver badge...
I am setting my systems for codecommit. but getting following errorI followed the below link :https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-ssh-windows.html/c/Users/Prasanna/.ssh/config: line 1: Bad configuration option: \377\376h /c/Users/Prasanna/.ssh/config: terminating, 1 bad configuration opti...
Getting Bad configuration option: \377\376h
Internet Explorer 7: 1,789 Firefox 3: 3,000 Chrome 1: 21,837 Opera 9.62: 10,000 Safari 3.2: 500 This are all the some of limits refer this http://javascriptrules.com/2009/06/30/limitation-on-call-stacks/ and also this http://www.nczonline.net/blog/2009/05/19/javascript-stack-overflow-error/
Here is a recursive function for endless loop. <html> <body> <script type="text/javascript"> function repeat(x){ document.write(x+" "); repeat(x+1); } repeat(1); </script> </body> </html> Using the function, I can see how many recursive calls took place there before out of memory. First time, I run it on firefox. ...
Same function, different behaviour in times
Install pipenv first and then you can run pytest using pipenv. name: Python application on: [push] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Set up Python 3.8 uses: actions/setup-python@v1 with: python-version: 3.8 - name: In...
I have a Python project that uses pipenv to run pytest. I want to create a GitHub Action that will run pytest each time I submit a pull request. I've tried using the python-app.yml starter workflow. name: Python application on: [push] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkou...
How do I setup a GitHub action that runs pytest with pipenv?
You can do that usingTHE_REQUESTvariable that represents complete http request (including REQUEST_URI and QUERY_STRING) as received by Apache:RewriteEngine On RewriteCond %{THE_REQUEST} bar [NC] RewriteRule ^ - [F]
Let's say there are a few URL schemes, like:http://www.example.com/foo/bar/bashttp://www.example.com/foo/fooo/bas/bar/bashttp://www.example.com/foobarbashttp://www.example.com/?foobar=bashttp://www.example.com/?barfoo=bashttp://www.example.com/?bas=foo&bar=basI want to DROP (e.g. returns404) all the URLs whenever it co...
HTACCESS : How to FILTER A STRING anywhere in the full URL string?
Amazon maps-out typical latency between IP addresses and AWS regions. ChooseLatency-based Routingto have the fastest response.Geolocationmaps the IP addresses to geographic locations. This permits rules like "send all users from Côte d'Ivoire to the website in France", so they see a language-specific version. It can re...
AWS implements latency routing policy based on the ip address of resolver or masked ip address of client. It will help to find the region of low latency.If both geolocation policy and latency policy are based on the IP address of client, it comes to several questions:what's the difference between them?What's the purpos...
AWS Route 53 Routing Policy: Geolocation Vs Latency
SSH into your Homestead VM. Edit /etc/nginx/sites-available/your-site.app and add /webroot to the line that looks like: root "/home/vagrant/your-site"; so that it looks like root "/home/vagrant/your-site/webroot"; Restart nginx with: sudo service nginx restart Your should find your CakePHP pages can find their static ...
I'm trying to do some cakePHP development using my existing homestead installation I use for Laravel. I can get the application running but it says that 'URL rewriting is not properly configured on your server.' I tried to use the instructions to configure nginx but did not have much luck. Has anyone gotten url rewri...
CakePHP with Homestead
I achieved by running the querysum by (groupname) (namedprocess_namegroup_context_switches_total{ctxswitchtype="voluntary"})We can use any of tags inside the sum by (use any tag) such as job, groupname, ctxswitchtype to filterShareFolloweditedNov 28, 2019 at 7:47Sebastian Kaczmarek8,41544 gold badges2323 silver badges4...
In my grafana I am tracking the running instance of node exporter and process exporter. In that i have used the querynamedprocess_namegroup_context_switches_total{ctxswitchtype="voluntary"}For this query I am getting multiple process running instance for node exporter and process exporter. For example for the above que...
How to get sum of instance for grafana query
) Your Lambda RoleCreate your Lambda function, rather than use a template, choose to create a new role and give it a name (lets say MyLambdaRole).Go into IAM, go to the Roles menu option and find the MyLambdaRole role. Attach the following policy: AmazonDynamoDBFullAccessNote that the Lambda will already have CloudWatc...
I'm having trouble implementing a post-confirmation lambda function in which I take the user submitted credentials from the sign-up process and write those to a 'Users' DynamoDB table. The specific entries that I'm trying to write to the table are - user name - email - actual nameIn order to distinguish users from one...
Writing Cognito user info to DynamoDB through a post-confirmation lambda function?
Use something like: RUN apk add --no-cache python2 This will install the latest version of Python 2 as python2 or python2.7. Python 3.7.3 will still be available using python3, or simply python.
I am trying to figure out a way that I can install both python2.7 and 3.7 in a lightweight alpine docker image. Currently I am using the FROM python:3.7-alpine3.9 Base image but would like to know how to get python2 installed as well.
How do I get python2.7 and 3.7 both installed in an alpine docker image
You are misunderstanding the concept ofexposed ports.When you expose a port in kubernetes with theportsoption (the same apply with Docker and theEXPOSEtag), nothing is open on this port from the outside world.It's basically just a hint for users of that image to tell them"Hey, you want to use this image ? Ok, you may w...
I'm runningflink run-applicationtargetting Kubernetes, using these options:-Dmetrics.reporter.prom.class=org.apache.flink.metrics.prometheus.PrometheusReporter -Dmetrics.reporter.prom.port=9249I specify a container image which has the Prometheus plugin copied into/opt/flink/plugins. From within the job manager containe...
How do I get the pod to expose the prometheus monitoring port in Flink application mode on Kubernetes?
<div class="s-prose js-post-body" itemprop="text"> <p>It's caused by some bug in GZIP compression vs. WebKit-based browers (Safari, Chrome/Chromium, new Opera). Solution, that worked for me, was disabling content compression in HHVM side and keeping it enabled only in nginx. It's controlled with GzipCompressionLevel HD...
<div class="s-prose js-post-body" itemprop="text"> <p>If you take a look at this page using Safari:</p> <p><a href="http://m2.monetarylane.com/product-category/women/" rel="nofollow noreferrer">http://m2.monetarylane.com/product-category/women/</a></p> <p>You'll see this:</p> <p><img alt="Safari bug" src="https://i.sta...
Why is Safari displaying weird symbols instead of HTML content?
There is no way that I would be aware of to cover this use case.
I want to know how many critical and blocker have been resolved each day/month, but I didn't find how doing it! Does anyone have an idea?
Count resolved critical and blocker issues sonarqube
Gearmanwould be an ideal candidate, and I would use it for exactly the purpose you describe. It has everything you need out of the box to meet your requirements ("background" a long running, CPU-bound process to another machine, e.g. video encoding).There is aGearman PHP library, but you can write your worker code in ...
I have a website, created using PHP and running on Apache. I want a subscriber to be able to log in and start a process on the server. They can then log out or close the browser without interrupting the process. Later they can log in and see the progress or see the results of the original process. What is the best way ...
(having the process run until completion, after browser is closed)
If you want to totally ignore the files, you should add them to your .gitignore. If you wish to "hide" only the credentials, that depends on your deployment and your build process. One way is using a vault (again, depending on your system). Another option would be reading credentials from some environment variable, th...
I'm new to git and github and would like to know how to git push login-credentials.php without Username and Password in it. Suppose, there are just two files on local repository and index.php will include ("login-redentials.php");: index.php login-credentials.php When using git push origin master, both files will ...
How to git push without credentials?
This is because your email address is not properly registered inside your computer's git config. You can set it like so (globally): git config --global user.email "[email protected]" Or locally per repository, execute this inside the directory: git config user.email "[email protected]" Then your icon will show up a...
When committing to Github directly from VSCode (Visual Studio code), my github profile user icon is not visible in the commit history on Github. Eg. There is no avatar shown for my user, while I do have one set on the Github website.
Github commit from VSCode has no profile icon
You can provide the--outputflag to display only the contexts' names, for example:$ kubectl config get-contexts --output=name minikubeIt's then easy to grep for GKE contexts:$ kubectl config get-contexts --output=name | grep "gke_*"
I am trying to get a list of kube-contexts (and filtering for gke clusters) andwith some toolsended up with that:kubectl config get-contexts | tr -s ' ' | cut -d ' ' -f 2 | grep gkeoutput:gke_dev-redacted gke_prod-redactedIs there an easier way to do that (which does not depend on the fact that the command output does ...
How to get a list of kube-contexts using cli
13 I'm trying to do the same (DS920+, DSM 7.1 latest). According to this Reddit: https://www.reddit.com/r/portainer/comments/u1vf1s/how_to_add_ghcr_as_a_registry/ it used to work with 'docker.pkg.github.com' as the repo url, but according to the current Github docs, it was ...
When trying to add the Github Registry to Synology Docker, I always get a prompt saying "Registry returned bad result". The URL I try to connect to is: https://ghcr.io
Adding ghcr (Github Docker Regustry) to Synology docker results in "Registry returned bad result"
I'm not 100% sure what the problem was but I read somewhere that downgrading the multi_json gem to version 1.7.8 would fix this and it did for me. Please note that this is just what fixed my app, it might not be the same for you but hopefully it is! I did the following:Add the following to your Gemfile:gem 'multi_json'...
I am trying to setup rails on aws (Dev env work fine). Can not get production to start up correctly. Can shell in and db looks good. I looked into my log file and I am getting the following error.rake aborted! MultiJson::AdapterError: Did not recognize your adapter specification (cannot load such file -- json/ext/parse...
MultiJson AdapterError Rails 4 Ruby 2 Passenger
<div class="s-prose js-post-body" itemprop="text"> <p>After being helped in the right direction via the comments and finding the real error, I was able to find the solution <a href="https://stackoverflow.com/a/24121256/2124351">here</a>. Needed to supply the mysql socket path in the node-mysql configuration.</p> <pre><...
<div class="s-prose js-post-body" itemprop="text"> <p>I'm running a node app on ubuntu server 14.04 with nginx. I have a mysql database, which was initially running on a different server. Everything worked fine, but in an effort to tune performance I moved it onto the same server and I'm getting an error trying to conn...
node/mysql/nginx - 502 bad gateway
The following code solved my issue# Rewrite rules for Zend Framework RewriteEngine on Redirect permanent /robots.txt /public/robots.txt Redirect permanent /favicon.ico /public/favicon.ico RewriteRule ^(.*)$ /public/$1 [QSA,L]
I have the following .htaccess to rewrite my domain.com/ to domain.com/public/# Rewrite rules for Zend Framework RewriteEngine on RewriteRule ^(.*)$ /public/$1 [QSA,L]It works fine but my logs report me that some bots try to access the file robots.txt and it doesn't exists.If I access the url:http://domain.com/robots...
ZendFramework .htaccess
Node's process.env is an object containing the user environment. Docker's CLI allows you to set the environment variable for the container using the -e or --env options. You can run docker run --env mysql_host=127.0.0.1 -p 80:80 -d myApp To pass the mysql_host into the container.
How to set node ENV process.env.mysql-host with docker run? Can i somehow do like this? docker run --mysql-host:127.0.0.1 -p 80:80 -d myApp I am using FROM node:onbuild as image.
Docker Node JS set env
If your application is read heavy, you can add more reader endpoints in other AZs.If your RDS is single instance and in the different AZ to your EC2 instance, you will need to take a snapshot and create the instance again in order to change the availability zone.
I currently have a EC2 instance working with an MySQL RDS database. They are both in the same region, but in different availability zones. Currently my application is experiencing a bit of lag, and it is my intuition that it is due to this.How can I change the AZ of my RDS database to speed up my application?Locally I ...
How to change a RDS availability zone to a different one within the same region on AWS?
We have solved both the issues with the setup below.FiledirA/main.tfcontains something similar toresource "local_file" "kubeconfig" { content = module.gke_auth.kubeconfig_raw filename = "${path.module}/kubeconfig" } output "kubeconfig_file" { value = "${path.cwd}/kubeconfig" }FiledirB/main.tfcontains something ...
We have the below directory structure on the Linux system./root ├─dirA │ ├─main.tf │ ├─terraform.tfvars │ └─variables.tf └─dirB └─main.tf==FIRST==We used the below snippet inmain.tffile ofdirAto create a local kubeconfig file.resource "local_file" "kubeconfig" { content = module.gke_auth.kube...
How to access files and variables from different directory in Terraform?
If you want the easiest way, then you just execute thecat /some/file/herecommand instead of bash and sending the output to a file on your local machine. Then remove the initial aws cli message from the beginning of the local file, such as:The Session Manager plugin was installed successfully. Use the AWS CLI to start a...
I need to do some heap dumps and it would be great to have an easy (and fast) way to get the files as seamless as possible.Current way doing it is:Create fileOptional: Upload SSH key to EC2 instance if not yet known(depending on security model used)Open SSH session (not using ASM as it has some OsX flaws)copy docker co...
What is the easiest way to download a file out of an ECS container to local machine?
Unlike C/C++ (and others), JavaScript takes care of memory management and garbage collecting. Of course, removing unnecessary data will release some resources used by your browser/server and may slightly improve the overall performance, but this is not an obligation and there will be no memory leaking if you forget ab...
Here is my code: // array of image data var images = [ { url: 'image.jpg' } ]; // function that loads image var loadImage = function(imageObject) { imageObject.img = $('<img src="'+imageObject.url+'"/>').error(function() { // error event handler, that might not always fire imageObject.im...
Should I unbind event listener to prevent memory leaks?
1 yes, if you have local or otherwise access to this GlusterFS storage and eg. assuming it would be mounted under /mnt/backup/ you can list and restore from it using the file target. i'd suggest listing/grepping first and when you found the backup repo containing your folde...
I've multiple virtual machines and every machine is backuping to the same backup storage (GlusterFS; it's mounted using fuse), but into different backup directories. /var/www/ for example will be backuped to this directory: /mnt/backup/server001/duply/www/ /mnt/backup/server002/duply/www/ /mnt/backup/serve...
How-to restore duplicity/duply backup from unknown archive
Creating tables for single files is not supported by Athena. You can only create a table on a directory level.What is possible on the other hand is, creating a table on the directory level and filter the input file while querying.You can filter the input file with the$pathpseudo column.select * from tablename where "$p...
I am trying to use Amazon Athena over S3 bucket which has two kinds of files.a.file.txt b.file.txtI just want athena to target a.file.txt. Is it possible to specify it in console while creation of table?Thanks
Is there any way to specify Prefixes in AWS Athena S3 paths?
It looks like yourmongobackup.shdoesn't have proper rights to be executed.chmod 755 /etc/cron.daily/mongobackup.shshould do the trick, but it wouldn't hurt to see what's inside of the script and results ofls -l /etc/cron.daily.Also, you could manually add a task to root crontab (or any other user thathas rightsto run t...
I want to backup database regularly in my linux server (Ubuntu 12.02),I red some documents and that saying I should use linux cron, and Fortunately, I found this :https://github.com/micahwedemeyer/automongobackup/blob/master/src/automongobackup.shI put my configuration and save itmongobackup.shand put it to/etc/cron.da...
How can I backup mongodb database regularly, the specific time of a day
Yes, first you should add rules.You can directly add routers in KubeSphere. See thedocumentationfor more info.
I installed Kong (Kong proxy+kong ingress controller) over Kubernetes/Kubesphere cluster with Istio mesh inside, and I added annotations and ingress types needed, so am able to access only the Kong Proxy at node exposed IP and port, but am unable neither add rules nor access Admin GUI or do any kind of configuration, e...
Kong LoadBalancer over Kubesphere
You are facing the following bug:VSTS-135TL;DR: version 4 of the extension uses a mechanism that is available only starting with TFS 2017 Update 2.
On TFS 2015, I upgraded from 3.0.0 to 4.0.1, however the new 4.0 tasks are not showing up in the tasks list.When I try to reinstall 4.0, I get confirmation that it is already installed:Shows version is already installedHowever the new 4.0 related tasks are now showing up in the tasks listI do still see the version 3.0 ...
Upgrading to Sonarqube TFS Extension From 3.0.0 to 4.0.1
1 The publisher plugin will work inside of the container, but not if you are trying to access an area inside the container. This means if you need to access something like the /etc of the container, you will not be able to because the plugin will actually be accessing the...
I recently switched to using docker containers in my Jenkins pipelines and it seems that the jenkins HTML publisher plugin doesn't seem to work from within the container. What I mean by that, is that after the build an HTML file is generated, which I wish to be published. I am using the HTML publisher plugin for that ...
Jenkins publish HTML from docker container
I am not sure I have fully understood your question but hopefully this may shed some light.The docker command is just a REST client. By default the client connects to the unix-socket/var/run/docker.sockto send requests to the docker daemon. You can practically achieve the same thing by runningcurl:curl --unix-socket /...
Is there a command that I can evaluate (eval $COMMAND) or an environment variable that I can inspect to get the URI of the locally running docker host? I need to be this an expression to evaluate at runtime, since I need to use it in a script intended to run on hosts where docker engine may not be running on the standa...
How to get the docker host URI on my localhost
Have you had a chance to check outSpeed Traceryet? That should give you more of what you need I think.With memory usage, you probably want to do a heap profile in the Chrome developer tools under the "Profiles" tab. You can compare multiple heap profiles to get a look at memory usage.
I am currently developing an application using Google O3D WebGL framework, and this is the first time I am using JavaScript so intensively. The features are only around 20% complete, but already the application on its own starts off by taking up around 160 meg of memory, whilst leaving the application running it consum...
Javascript Memory Usage & Debugging in Chrome / Firefox (Minefield)
There are two relevant effects at play. The first and major effect is that all data transfers from the 3 locations mentioned happen in blocks bigger than a single integer value. From HDD or SSD to main memory, block sizes are typically 4kB or bigger (file system cluster size). From main memory to cache, data transfers...
I was shown this table in the context of data processing and big data. What are the bars actually measuring? The mechanism of a device for reading always has the same speed: e.g. it's not as if a hard drive thinks "ok, this data is sequential so I'll increase the amount which the head reads". I was told it happens ...
What is this table trying to convey? Why do sequential reads happen faster than random reads?
Just dodevice = torch.device("cuda:0")
I am learning ML and trying to run the model(Pytorch) on my Nvidia GTX 1650.torch.cuda.is_available() => True model.to(device)Implemented the above lines to run the model on GPU, but the task manager shows two GPU1. Intel Graphics 2. Nvidia GTX 1650The fluctuation in CPU usage is shown on Intel and not on Nvidia.How I ...
Pytorch Model set GPU to run on Nvidia gpu
There's no such thing as a "static object". But all static variables in all types loaded in any app domain are treated as GC roots until the app domain is unloaded. If you want to do things when the app domain is unloaded, you could subscribe to AppDomain.DomainUnload and AppDomain.ProcessExit.
I try to avoid using static classes in my production code as they cant be injected, there is no control over default initialization and lastly you can't really clean up your resources implicitly as there is no destructor for static objects. Additionaly, you cannot implement the IDisposable for a static class as well, ...
Why there is no static destructor?
RFC 7234 defines the cache key: The primary cache key consists of the request method and target URI.... If a request target is subject to content negotiation, its cache entry might consist of multiple stored responses, each differentiated by a secondary key for the values of the original request's selecting header fi...
I understand that the browser save the response, to return quickly at next same request. But the question here is, what is same request? Does it mean that same resource uri in the case of Get request? What about the values ​​of headers included in the request or the content of the body? I've seen that the Cache-Contr...
How browser cache determine that request is same or not?
FYI, I ended up doing the query manually, creating an SdkHttpFullRequest and using an AWS4Signer to sign it. Works OK but I wonder why it couldn't be included in the SDK directly... The only gotcha was to make sure to specify the "aps" for the signing name in the Aws4SignerParams creation.
I am using AWS Managed Prometheus service and setup a Prometheus server on my EKS cluster to collect and write metrics on my AMP workspace, using the helm chart, as per tutorial from AWS. All works fine, I am also connecting to a cluster run Grafana and I can see the metrics no problem.However, my use case is to query ...
Send metrics query on AWS AMP
You can use Jekyll variable inside code blocks. Thus try the following:{% raw %} v $ | {%}-:-%& {% endraw %}
Onmy GitHub repoI have this Markdown:blah blah blah text v $ | {%}-:-%&Every time I have pushed with it, GitHub's page build fails because "the{%tag was not properly closed with%}". However, the{%is in a code block, so shouldn't it be ignored in ... whatever the page build is checking (I'm ...
GitHub page build failure due to '{%' in code block
You should be able to stop tracking changes on the file with: git update-index --skip-worktree <file> And you can resume tracking changes with: git update-index --no-skip-worktree <file>
I'm trying to ignore all changes to a very small file in my repo (Github). It is a hidden file (.first_run), which contains a single character (0). I use it (obviously) to detect a first run of my package. I'm encountering these issues: The file is already tracked, so adding it to my .gitignore won't work. I can't us...
git ignore tracked file but keep in repo (assume-unchanged does not work)
3 Install aws Agent #change to root user sudo su - #update the yum package sudo yum update -y #install aws logs sudo yum install -y awslogs Edit the configuration file vim /etc/awslogs/awslogs.conf In this file add configuration like [/var/log/messages] datetime_format ...
I have a Java application deployed on AWS EC2 instance which creates multiple log files named application.log, application.log.1, application.log.2 and so on with increasing logs. The number of log files are not fixed and keeps on increasing with increase in logs. In Cloudwatch Logs conf file, we can specify multiple ...
AWS Cloudwatch logs for multiple files
You can use git reset to point a branch to a different commit. So, on second_branch, git reset --hard master Then git push -f to update GitHub.
I have a project with a master branch and a second_branch. The data in the two branches is different and I want to copy the data from the master branch into second_branch and then update second_branch on GitHub. How can I do that? The status of second_branch is: This branch is 3 commits ahead, 1 commit behind master ...
Copy master branch data into other branch
Answer from @Walfis close but requires some changes e.g. regex anchors andDPIflag.You can use these rules ontop of your site root .htaccess:RewriteEngine On # remove /sub_directory/ when there is no _ left RewriteRule ^sub_directory/([^_]+)$ /$1 [R=301,NC,NE,L] # use recursion based rule to replace _ by - RewriteRule...
I need help creating a rewrite rule/301 redirect for the following link structures in the .httaccess folder.Source URL: www.example.com/sub_directory/product_name_1.htmlDestination URL: www.example.com/prodcut-name-1.htmlThe requirements for the redirect then are as follows:Remove /sub_directory/Change all underscores ...
301 Redirects Rewrite Rule to replace underscore with hyphen and remove subdirectory
I found a solution:location ~ \.xml$ { rewrite ^ /<bucket>/sitemap$request_uri break; proxy_pass https://s3-eu-west-1.amazonaws.com; }ShareFollowansweredApr 11, 2018 at 11:00BntMrxBntMrx2,27744 gold badges2020 silver badges3131 bronze badges3No but it works well on production env with us, do you have any idea ...
All my xml files are stored in a AWS S3, I want to show them via my website :Nginx conf:location ~ \.xml$ { proxy_pass https://s3-eu-west-1.amazonaws.com/bucket-name/sitemap$request_uri; }But I get a 502 and log says[error] 13295#13295: *26 no resolver defined to resolve s3-eu-west-1.amazonaws.comIf I define a re...
no resolver defined to resolve s3-eu-west-1.amazonaws.com
The short answer is:root@debian: yes y y ... ^C root@debian:;-)
This is a pointless task, I know. But I'm just messing around and trying to familiarize myself.I thought this might work, but no:root@debian: Jibberish 2> file.txt && file.txt < /dev/tty0I thought this might generate an error message which would then be sent to file.txt which would in turn be the input back into the sh...
Is an infinite loop possible in Unix shell using just redirection and pipelines?
I was advised to use: Docker Registry HTTP API V2 directly instead of SDK as it is not supported right now:https://docs.docker.com/registry/spec/api/
I am looking to use this library but it does not offer this option. https://cloud.google.com/go/docs/reference/cloud.google.com/go/artifactregistry/latest/apiv1. It seems the struct artifactregistrypb.DockerImage simply does not have the option.
How do you get the manifest of an image in GCP artifact registry using the Go SDK?
I found the answer. Python client does have support for draining a node but it is not a single command. "kubectl drain" operation utilizesEviction APIto safely delete all the workloads running on a node. The python-client has a functioncreate_namespaced_pod_evictionthat safely deletes all the pods in a namespace. Howev...
I am trying to automate kubernetes worker nodes using the officialkubernetes python-client. I am currently looking for a way tosafely move al the running applications to other nodes. We can do so using "kubectl drain". I did not find a way to simulate that functionality using python client. I am currently looking into ...
How to drain a node using kubernetes python client?
The correct syntax is the following:time_intervals: - name: monday-to-friday time_intervals: - weekdays: ['monday:friday']You can use this time interval like shown in the following example:route: group_by: ... ... routes: - receiver: SOME-RECEIVER matchers: - SOME-MATCHER activ...
I tried to add this to my alertmanager.yml in root level, but I got this error:yaml: unmarshall errors: field time_intervals not found in type config.plaintime_intervals: - times: weekdays: ['monday:friday'](I used 0.23 version of Alertmanager)
Alertmanager: how to send alerts only in weekdays?
There is no non-moving memory allocator that can avoid fragmentation of at least a log(M/m) factor, where M = the size of the largest object request, and m = the size of the smallest (this is a classic result due to Robson, 1971).I work with folks who do real-time systems programming (including at Airbus), and they stu...
In many embedded systems, memory fragmentation is a concern. Particularly, for software that runs for long periods of time (months, years, etc...). For many projects, the solution is to simply not use dynamic memory allocation such as malloc/free and new/delete. Global memory is used whenever possible and memory pools ...
Embedded Linux: Memory Fragmentation
No.You can turn off directory listings because nothing needs to see them.You can't turn off display of CSS or JS because the browser has to be able to see them in order to use them for what they are designed for. Anything the browser can see, the user can see too.
Before this question I asked about disabling file and folder listing and I found an answer that this can be done with a file called .htaccess. For disabling folder listing I write Options -Indexes in the .htaccess file and place it in the parent folder, on the other hand for disabling display of files content in the br...
Disable display of .css and .js files content in the browser
You can useLinqToCachefor this.It allows you to use the following code inside your repository:var queryTags = from t in ctx.Tags select t; var tags = queryTags.AsCached("Tags"); foreach (Tag t in tags) { ... }The idea is that you useSqlDependencyto be notified when the result of a query changes. As long as the result...
What I want is pretty simple conceptually but I can't figure out how it would be best to implement such a thing.In my web application I have services which access repositories which access EF which interacts with the SQL Server database. All of these are instanced once per web request.I want to have an extra layer betw...
Cache Entity Framework data and track its changes?
So sorry, it was my misunderstanding. My OS is Redhat Linux. I get to install docker by yum-config-manager --enable rhui-REGION-rhel-server-extras yum -y install docker systemctl start docker systemctl enable docker docker version
I wanna create docker image for Amazon ECR. but yum can't find it in my Amazon Linux2. [root@*** ~]# yum install -y docker Loaded plugins: amazon-id, rhui-lb, search-disabled-repos No package docker available. Error: Nothing to do Next, I tried to use amazon-linux-extras. but amazon-linux-extras is not found, too. [r...
How to install docker on Amazon Linux2
My gut feeling on this is Core Data structured such that each tile element has relationships to the tiles around it. There's some non-trivial overhead here, but the advantage is that you can release tiles that aren't onscreen from memory and fault them back when you need them. As you move in a direction, you can query...
I am coding a 2 dimensional, tile based (orthogonal tiles) iPhone game. All levels are procedurally generated when the app is first played, and then persist until the user wants a new map. Maps are rather large, being 1000 tiles in both width and height, and the terrain is destructible. At the moment it is rather simi...
Efficient way to handle large runtime-generated tile maps?
finally my config looks like this: docker run -v /etc/openvpn:/etc/openvpn --rm kylemanna/openvpn ovpn_genconfig \ -u udp://192.168.10.152:1194 \ -n 10.3.0.10 \ -n 192.168.10.1 \ -n 8.8.8.8 \ -n 75.75.75.75 \ -n 75.75.75.76 \ -s 10.8.0.0/24 \ -N \ -p "route 10.2.0.0 255.255.0.0" \ -p "route 10.3.0.0 255.255.0.0" \ -p ...
I spinned a docker-openvpn container in my (local) Kubernetes cluster to access my Services securely and debug dependent services locally. I can connect to the cluster via the openVPN server. However I can't resolve my Services via DNS. I managed to get to the point where after setting routes on the VPN server: I can...
Kubernetes: VPN server and DNS issues
As shown indocker loadpage, it "restores both images and tags."So an image from the same name doesn't get overwritten.Adocker imageswould simply lists the newly loaded image alongside the existing one, with their respective ids and tags.As explained in "Content trust in Docker", a registry can include multiple images o...
I have a simple question about thedocker loadcommand.If an image exists in the local repository and running thedocker loadcommand loads an image with the same name as the one that is in the repository, does the old image get replaced with the one that is loaded?
Docker load command replaces existing images with same name
I try a different JRE 1.6 and now I could post my application.It is really weird, I don't know why JRE 1.7 doesn't work.
Closed.This question isnot reproducible or was caused by typos. It is not currently accepting answers.This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may beon-topichere, this one was resolved in a way less likely to help future readers.Closed5 years ago.Improve ...
how to deploy java web application to AWS elastic beanstalk? [closed]
In your nginx config setdefault_typedirectiveDefines the default MIME type of a response. Mapping of file name extensions to MIME types can be set with the types directive.server { ... default_type text/html; location /assets/imgs { default_type image/png; } location /assets/imgs { defaul...
I use Docker to package the Angular project (container use Nginx). When running on Docker, the images shows up ok, but when deploying to Kubernetes, using Ingress, all images in theassetsfolder do not appear.Content-Type running on Docker. It's OK:Link ImageBut when running on Kubernetes. Content type always is text/ht...
Kubernetes Ingress deploy Angular assets (image) doesn't show
You shouldn't have permanent js files located in your files folder. Either they should be in your theme or a module that uses them. The files folder is meant for uploaded files and other files that Drupal creates on the fly. The reason to your problem is probably that Drupal has write access to the folder where you ha...
When I delete "Page requisites" cache, my 2 Javascript files that I use for my home page image rotator get deleted. Here is how I'm adding the javascript for those 2 files into a WYSIWYG editor with PHP code enabled: <? drupal_add_js('sites/default/files/js/jquery.jcarousellite.js'); drupal_add_js('sites/default/files...
Drupal flushing "Page requisites" cache also deletes javascript files
Google Drive is included in the Reports API of the Google Apps Admin SDK. It provides similar information to the Google Drive Audit Log, but with additional metadata. That includes the parent folder ID of files which were removed. To restore the files you should first query the Reports API for files removed by the use...
A non-privileged Google Drive user has accidentally removed a large number of files from folders shared across an organisation. They do not have permission to delete the files entirely, because they are not the owner. However, users with edit permissions are able to remove a file from a shared folder. This returns the...
How do I restore deleted documents from shared Google Drive folders?
Use host path:create PV:kind: PersistentVolume apiVersion: v1 metadata: name: task-pv-volume labels: type: local spec: storageClassName: manual capacity: storage: 10Gi accessModes: - ReadWriteOnce hostPath: path: "/mnt/datacreate PVC:kind: PersistentVolumeClaim apiVersion: v1 metadata: nam...
I have a 3-node Kubernetes cluster running on vagrant using the oracle Kubernetes vagrant boxes fromhttp://github.com/oracle/vagrant-boxes.git.I want to add a pod including an Oracle database and persist the data so that in case all nodes go down, I don't lose my data.According to how I read the Kubernetes documentatio...
How do I create a persistent volume on an in-house kubernetes cluster
The only thing that matters is the order in which resources are submitted to the Kubernetes cluster. TheChart.yamlandvalues.yamlfiles do not contain any executable code and they don't "run"per se. Each of the files intemplates/is processed independently, there is no global state, and a template file doesn't produce an...
When I do hel install <app_name> which file or script among the chart.yaml, values.yaml or any other.Thanks in advance.
Which file/script runs first when i do helm install XYZ?
You can define a multiline environment variable as below,read -d '' conf << EOF if ($http_x_azure_fdid !~* "55ce4ed1-4b06-4bf1-b40e-4638452104da" ) { return 403; } 
EOFOnce the environment variable is defined, refer it in the helm--set-string controller.config.server-snippet=arg as below,helm upgrade --install n...
Related Github Issue :https://github.com/kubernetes/ingress-nginx/issues/6519apiVersion: v1 data: server-snippet: | if ($http_x_azure_fdid !~* "55ce4ed1-4b06-4bf1-b40e-4638452104da" ) { return 403; } use-forwarded-headers: "true" kind: ConfigMapHow to achieve the above config using helm when setting...
How to set server snippets Config in Nginx Ingress with Helm