Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
My guess is that you are confusing the parser with so many slashes (/). Since there is no reasonable way to parsemy/preferred/name, it will be considered as just a name (as a whole) in which case the defaultdocker.io/library/will be prepended to it.Here is how you can specify the name of the image in thenametag.name (m... | I'm trying to build a Docker image for my Spring Boot service usingmvn spring-boot:build-imageasmentioned in the guide here. It also mentionsThe result is an image called docker.io//:latest by default. You can modify the image name in Maven using<build>
<plugins>
<plugin>
<groupId>org.springfram... | Spring Boot 2.3 Maven Docker build adds "docker.io" prefix |
Reusing the HTTP Authorization header for the 3scale keys can be supported with a small tweak in your Nginx configuration files. As you were rightly pointing out, the Lua script that you download is the place to do this.
However, I would suggest a slightly different approach regarding the keys that you import to 3scal... |
I am working with a historic API which grants access via a key/secret combo, which the original API designer specified should be passed as the user name & password in an HTTP Basic auth header, e.g.:
curl -u api_key:api_secret http://api.example.com/....
Now that our API client base is going to be growing, we're look... | Detect and rewrite HTTP Basic user/password headers into custom headers with Nginx/Lua |
Unfortunately, the most straightforward way to do this is to provide the Grafana template data as a raw string in the Helm template, something like this:apiVersion: v1
kind: ConfigMap
name: stackoverflow-example
data:
grafana.template: |-
{{`{{ your-grafana.data.here }}`}}In this case, the Helm template will only... | Grafana braces{{ }}collide with my Helm chart braces{{ }}.Is it possible to change braces inGrafanafrom{{ }}to{% %}?Is it possible to change braces inHelmfrom{{ }}to{% %}? | Is it possible to change braces in Grafana or Helm? |
I have both an answer and a question; mostly because I am unsure of my answer. See this page:https://help.github.com/articles/support-for-subversion-clients/You can use the svn client against github. You kind of are clued into this when you visit a git repository and right above the URL for the repo it says "Use Gitor ... | I have a github repository, to which I push using git. Now, I need to take a particular revision (I know its git hash) and check it out using the svn interface. How do I figure out the corresponding svn revision number for that git revision? | Github - Check svn revision number for git revision |
You can use this rule to redirect URLs fromdomain.com/foobartoold.domain.com/foobar.RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain\.com$
RewriteRule . https://old.domain.com%{REQUEST_URI} [R=302,L]This will redirect all requests received onexample.comtoold.example.com. If you have some files and folders on thedomai... | Closed. This question needsdetails or clarity. It is not currently accepting answers.Want to improve this question?Add details and clarify the problem byediting this post.Closed3 years ago.Improve this questionWe have recently deployed new site as the old site was giving us a lot of problems and its a news site.
We hav... | Redirect to old site if content is not found [closed] |
6
It seems you are using the Openx-JsonSerDe
http://docs.aws.amazon.com/athena/latest/ug/json.html
// properties used in configuration
public static final String PROP_IGNORE_MALFORMED_JSON = "ignore.malformed.json";
public static final String PROP_DOTS_IN_KEYS = "dots.in.... |
I'm testing the Athena product of AWS, so far is working very good. But I want to know the list of SerDe properties. I've searched far and wide and couldn't find it. I'm using this one for example "ignore.malformed.json" = "true", but I'm pretty sure there are a ton of other options to tune the queries.
I couldn't fi... | SerDe properties list for AWS Athena (JSON) |
If you have control over the cron or command, have you considered passing a command-line argument, and reading it with$_SERVER['argv'][0]?* * * * * /usr/bin/php /path/to/script --cronIn the script:<?php
if(isset($_SERVER['argv'][0]) and $_SERVER['argv'][0] == '--cron')
$I_AM_CRON = true;
else
$I_AM_CRON = false... | I need to determine whether the PHP file is being loaded via cron or command line within the code. How can I do this? | How to determine if a PHP file is loaded via cron/command line |
Running this command fixed it for me
php -d memory_limit=-1 /usr/local/bin/composer install
|
This question already has answers here:
Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted
(36 answers)
Closed 10 months ago.
I keep getting this memory error
PHP Fatal ... | Fatal error: Allowed memory size of 1610612736 bytes exhausted but already allocated 1.75G [duplicate] |
But why? If you have a commit, it means you already have those changes applied to your files. Some, files might have been changed since the commit, but then, if you try to get a stash of that commit changes, then the stash would be the diff of your current files and the state of these files at the commit. What I am tr... |
I would like to create a new GIT stash from a commit on a branch. Is this even possible?
| How can I create a GIT Stash from a Commit? |
Just as David has suggested in his comment, you need to add port mapping in docker-compose.yml. So, your modified docker-compose.yml would be something like this:version: '3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PA... | I have created a local docker wordpress instance and I am trying to connect to the database with a SQL Client (in my case TablePlus) but I am having trouble.I created the docker containers from a docker-compose.yml file shown here:version: '3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/... | Connecting to my local docker Database Instance from Table Plus |
0
https://blog.cloudflare.com/the-sad-state-of-linux-socket-balancing/
In the epoll-and-accept the load balancing algorithm differs: Linux seems to choose the last added process, a LIFO-like behavior. The process added to the waiting queue most recently will get the new co... |
I have following configuration with
worker_process 4;
But I noticed that it always hits only 1 worker.
I am testing on a local Centos VM. I am doing curl http call on specific port and added a file with 1000 curl requests and ran them from multiple terminal windows.
But see alll of them hit only 1 worker. Is there a w... | nginx worker process always run only 1 |
4
The solution is to make a simple benchmark where transfer of memory dominates. To check that TensorFlow doesn't optimize your transfer away, you can add a tiny operation on the result. Overhead of tiny operation like fill should be a couple of microseconds, which is insig... |
I would like to perform the following simple experiment.
I am using Tensorflow. I have a large array (5000x5000 float32 elements). How do I measure how long it actually takes to move this array from RAM to GPU memory?
I understand that I could create some very simple computational graph, run it and measure how long it... | Measuring time it takes to move data from RAM to GPU memory in Tensorflow |
Both responses are valid according to HTTP 1.1, so you need to fix your client code that it can handle both. It is a bad idea to try to fix the server so that that it behave in a way that it does not trigger a bug in the client.
The next version of nginx may behave differently, you users may even have proxies that chan... | I'm building an API on Rails version 4.1.7/Nginx that responds to request from an iOS app. We're seeing some weird caching on the client and we think it has something to do with a small difference in the response that Rails is sending back. My questions...1) I want to understand why, for the exact same request (with on... | When does Rails respond with 'transfer-encoding' vs. 'content-length'? |
You should use separate user per application andPassenger/Nginxshould automatically use the directory owner to run the process, never userootuser.ShareFollowansweredOct 8, 2013 at 1:14mpapismpapis52.9k1414 gold badges122122 silver badges158158 bronze badges1@mpapis Could u clarify your solution for "user per applicatio... | I'm new to nginx, what's best practice for user/group permissions, when deploying (Ruby) application, using nginx and passenger?Is better deploy as root or "deployer" user in some group? And how should I set folder/file permissions.On Apache server I have /public /log and some other folders writible by www-data and use... | Nginx & Passenger user permissions. Best practice? |
If you are using Kubernetes 1.7 and above:kubectl taint node mymasternode node-role.kubernetes.io/master:NoSchedule- | I set up Kubernetes on CoreOS on bare metal using thegeneric install scripts. It's running the current stable release, 1298.6.0, with Kubernetes version 1.5.4.We'd like to have a highly available master setup, but we don't have enough hardware at this time to dedicate three servers to serving only as Kubernetes masters... | Allow scheduling of pods on Kubernetes master? |
+100Do you have acache_sweeperdeclaration in your CompaniesController, too? The sweeper must be included in the controller that performs lifecycle actions on the model in question. Unless you do things with Company instances in ReportsController, thecache_sweeperline doesn't belong there.Action caching includes an impl... | I've got a sweeper that's supposed to expire a few action caches. Even though the debugger stops immediately before the call to expire_action, it's not actually expiring the action. Any idea what could be going on?Here are the relevant sweeper and controller.#company_sweeper.rb (in 'models' directory)class CompanySweep... | Action caching is not expiring correctly, even when I can see it's being called |
Each RUN instruction creates a new layer on top of the existing file system. So the new layer after RUN instruction that deletes you app-name-tmp directory just masks the previous layer containing the downloaded libraries. Hence your docker image still has that size from all the layers built.
Remove the separate RUN r... |
I have a Docker file like the following:
FROM openjdk:8
ADD . /usr/share/app-name-tmp
WORKDIR /usr/share/app-name-tmp
RUN ./gradlew build \
mv ./build/libs/app-name*.jar /usr/share/app-name/app-name.jar
WORKDIR /usr/share/app-name
RUN rm -rf /usr/share/app-name-tmp
EXPOSE 8080
RUN chmod +x ./docker-entry.sh... | How to reduce my java/gradle docker image size? |
I believe this is done by calculating a size of all declared fields surely considering its types. For more detaikls see MSDN "Allocating Memory"
Regarding MSDN paper "Automatic Memory Management" all new objects (as Brian Rasmussen noted in comments below - generations are applicable for SOH only, large objects creat... |
I read about CLR in .NET as:
When CLR loads heap is partitioned in SOH and LOH.
when application is started at that time heap is allocated by CLR to application depending on its size.
LOH heap has Gen0,Gen1,and Gen2 regions.
Here all objects for A class are allocated on Gen0,
Questions
How CLR knows the size will o... | Managed heap in CLR |
Its because of $$$. They really want to charge you the $1 auth fee before you are allowed to do anything. Takes 2-8 hours for new accounts.http://www.texient.com/2016/09/failed-to-retrieve-account-attributes-with-new-aws-account.htmlShareFollowansweredSep 19, 2017 at 0:00Aditya Nirvaan RanganathanAditya Nirvaan Rangana... | I am new to AWS. I am utilizing their free Tier which includes the Amazon Relational Database Service (RDS). According tothem, this free tier consist of the following:750 hours of Amazon RDS Single-AZ db.t2.micro Instance usage20 GB of DB Storage10 million I/Os20 GB of backup storageI have signed up and gave my informa... | AWS RDS Error: Failed to retrieve account attributes, certain console functions may be impaired |
0
AFAIK, there's no way to stop it.
However, in order to solve your problem, you can use mv dump.rdb back.rdb to automatically move the dump file before copying.
Share
Follow
answered Jul 27, 2021 ... |
I want to stop bgsave (if exists) before copy dump.rdb file for backup.
My problem is sometimes during cp the dump.rdb file an ongoing bgsave gets completed and dump.rdb file gets updated
| How to stop a BGSAVE in redis? |
TLDR: restart your docker daemon or restart your docker-machine (if you're using that e.g. on a mac).Edit: As there are more recent posts below, they answer the question better then mine. The Network adapter is stuck on the daemon. I'm updating mine as its possibly 'on top' of the list and people might not scroll down.... | I'm getting this strange error, when I try to run a docker with a name it gives me this error.docker: Error response from daemon: service endpoint with name qc.T8 already exists.However, there is no container with this name.> docker ps -a
CONTAINER ID IMAGE COMMAND CREATED ... | Error response from daemon: service endpoint with name |
Looking at the program output, you actually allocate the same number of blocks, 65188 for malloc, 65189 for calloc. Ignoring overhead, that's slightly less than 2GB of memory.
My guess is that you compile in 32 bit mode (pointers are dumped as 32 bits), which limits the amount of memory available to a single user pro... |
So, I have this piece of code:
#include <stdio.h>
#include <stdlib.h>
int main()
{
char *p;
long n = 1;
while(1) {
p = malloc(n * sizeof(char));
//p = calloc(n, sizeof(char));
if(p) {
printf("[%ld] Memory allocation successful! Address: %p\n", n , p);
n++;... | Malloc & calloc: different memory size allocated |
You can use owner references and finalizers to create parent/child relationships between resources that allow you to clean up child resources when parent resources are deleted.Current docs:https://kubernetes.io/docs/concepts/overview/working-with-objects/owners-dependents/ | I am working with someone else's kubernetes application. It has a long-running Deployment whose first action upon beginning to run is to create several additional, non-workload, cluster resources (ValidatingWebhookConfigurationsandMutatingWebhookConfigurationsin this case).I would like for the generated resources to be... | Manage resources generated by other resources |
The problem was in package.json where in homepage field was a dot
"homepage": "."
And you need to change it to a slash
"homepage": "/"
|
I have React website where routing was done with react-router-dom and with localhost everything works fine. But on my production server it doesn't matter which web server I use (Nginx or Apache2 or Apache2 + Nginx) with nested links like https://example.com/admin/list I am getting a error:
Uncaught SyntaxError: Unexpe... | React router and Apache + Nginx giving Unexpected Token < |
Because of the space in write-log it sees them as multiple parameters.Try thisWrite-Log "Var1: $Var1" | ConsoleApplication:class Program
{
static void Main()
{
using (var runSpace = RunspaceFactory.CreateRunspace())
{
runSpace.Open();
runSpace.SessionStateProxy.SetVariable("Var1", "Alex");
using (var pipeline = runSpace.CreatePipeline("C:\\P.ps1"))
{... | PowerShell: RunSpace.SessionStateProxy.SetVariable is not setting variable |
1
It's a good practice to increase the standard max number of files open on your server when it is a web server, the same goes for the number of ephemeral ports.
I think the default number of opened files is 1024 which is way too small for varnish
I am setting it to 131072
... |
I am running varnish with nginx as proxy on ubuntu and I am getting (24: Too many open files) error every few days.
Restarting nginx solves the problem.
After researching about this error I found that the common solution is to increase worker_rlimit_nofile in nginx.conf.
I feel like this is not a real solution since ... | Nginx with varnish error: failed (24: Too many open files) |
OAuth should work just fine over http, using POSTs and GETs and if your client can set the Authorizatioon header. The client should create all the requests and as long as it follows redirects this should be ok - there's never (to my knowledge) a case where an external server initiates an inbound connection.For added c... | I'm trying to construct a webapp to add events to an employee's google calendar and would like to use OAuth for authentication.However, my webapp is forced to be on an intranet behind a firewall; the server has outbound internet access, but blocks in-bound access if you aren't on the intranet or VPNing into the intrane... | OAuth on a webapp behind a firewall -- is it possible? |
No, that is not an option. There is no way for GitHub (or Git) to intrinsically know what a force-push contains or how it was performed. Moreover, a rebase may necessitate resolving conflicts, which would necessarily result in a change to the diff before and afterwards. | we want to turn on the "Dismiss stale pull request approvals when new commits are pushed" setting in Github, but don't want this setting to be activated when an Engineer performs a git rebase. Is this an option? | Github Dismiss Stale approvals and rebasing |
CDKRemovalPolicysets CloudFormationDeletionPolicyandUpdateReplacePolicy, which affect resources removed via CDK/CloudFormation code:DESTROY:usuallythe default, deletes actual resourceRETAIN: retains actual resourceSNAPSHOT: deletes actual resource but snapshots beforehand (for resources like databases)These apply when ... | I am using removalPolicy: cdk.RemovalPolicy.DESTROY.The other two options are RETAIN and SNAPSHOT.If I delete my table from the console and try to create using the cdk it gives an error say could not find resource.Question -- what option I can use if the script is unable to find the table then it should create ? | How does removalPolicy: cdk.RemovalPolicy.DESTROY works? |
From your log message, it seems that the mbstring extension is missing:
/usr/share/phpmyadmin/libraries/common.inc.php(90): PMA_warnMissingExtension('mbstring', true)
Since you are using Debian, please use this to install the extension:
sudo apt-get install php7.0-mbstring
|
I have a problem with phpMyAdmin. When I accessed the page, it gave a white blank page.
Here is the error log
2016/07/26 11:20:16 [error] 2591#2591: *2 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function __() in /usr/share/phpmyadmin/libraries/core.lib.php:235
Stack trace... | Call to undefined function __() error - phpMyAdmin with LNMP |
Send data asapplication/x-www-form-urlencodedor form-data.
SonarQube Web API doesn't handle POST body in raw JSON format. See thisquestionabout Java ServletRequest to know more (Tomcat is used under the hood). | I'm migrating SonarQube from 5.6 version to 6.7. I'm using SonarQube API with my Jenkins jobs and the problem is the API for groups permissions isn't working with 6.7 version...I've tried manually with Postman (POST raw JSON) this :{
"groupName": "project-name-admin",
"permission": "admin",
"projectKey": "p... | SonarQube 6.7 LTS group permissions API doesn't working |
Ok I found two solutions:
VirtualBox port forwarding
https://stackoverflow.com/a/36458215/5076865 -
After that you can access the docker app via 10.0.2.2:<your_port>
VirtualBox bridged adapter
Open docker-machine setting in VirtualBox and enable the 3rd network adapter and set it to the bridge mode. You should be abl... |
I have a Windows laptop with Docker Toolbox installed. So my backend services live in docker containers.
Also, I have an Android Emulator with client application installed.
I know that I can get from Android Emulator to host's loopback by using 10.0.2.2 address. The problem is, that docker machine has its own addres... | How to get from Android Emulator to Docker Machine's container? |
My first recommendation is to downloadthe git cheat sheetand keep it handy on your desktop.The command to accomplish what you want to do isgit mv <source> <destination>.in the shell. Thedocumentation for the commandstates that it will work on directories.In your case, this means, from the /web_app directory, you should... | I've got a git structure like the following:/web_app
-- /static
-- /templates
-- app.pyHaving this, when i push to my repo, its pushed following exactly that folder structure, but what I want in the repo is this structure:/web_app
-- /web
-- /static
-- /template
-- app.pySo what I want to do is somehow, from m... | Git change the repo path of a subfolder |
Finally I got the solution, only we need to put this command in the terminal:
git credential-manager uninstall
And then, when we make pull or push will be requested our credentials, and that's all
|
I get this error when I want to do any operation throught Android Studio Console:
fatal: Authentication failed for (url github repository)
But if I use an git interfaz (in my case I am using Android Studio and Github Desktop) and I make pull or push, works fine, no errors. This error only happens when I use any conso... | Git Authentication Failed when I made push or pull (Only throught console) |
Can you try to "not-cache" index.html only using below nginx configuration?
location = /index.html {
expires -1;
}
|
All my javascript/css stuff gets versioned when run to production so when a new release is out the files are different on the index.html file which should force a reload of the files.
However the index.html file is getting cached. I am not sure how to allow caching of all of the js and css without allowing the index.h... | Vuejs SPA / Gunicorn Nginx / index.html cache |
I would need more informations about the project because it could depend of a variety of factors: goals, time, budget, etc... But in my opinion there are much more differences than only "some files" between a web and mobile projects.
For example:a mobile hybrid app need some plugins to do some specific mobile tasks a... | We have written an angularjs web site/app - optimised for mobileand are using cordova to make an html5 based mobile app.The code (html, css, js) will be the same for both the web app and cordova appbut there will be some files that will be different.How do we set up our git repo to share (only) common files between the... | code share between web app and cordova app |
You have to create a file named _config.yml in your root folder and the value inside is include: [".well-known"]
Reference: https://github.com/wojtek-kalicinski/wojtek-kalicinski.github.io
|
I am adding app deep linking functionality in my app,i followed as per applink assist,i created .well-known folder in github also but still i am facing digital assets link not found
[![<meta-data
android:name="asset_statements"
android:resource="@string/asset_statements" />
<activity... | appdeeplink Github .well-known folder not identifying |
You have to repeatpathsfor each event type.name: Run after changing anything in myPath package
on:
pull_request:
paths:
- 'myPath/**'
push:
paths:
- 'myPath/**' | I have the following action:name: Run after changing anything in myPath package
on:
pull_request:
push:
paths:
- 'myPath/**'This action runs when something is pushed undermyPathbut also on any pull request.How I can limit this action to pull requests that contain changes undermyPath? | How to trigger workflow action if it touches certain file or is a Pull Request with a certan file |
I've posted this on TeamCity official support.
They respondend.Hi Rafal, Thank you for the report. It seems that branch filter in VCS
trigger does not filter out default branch by name. I created the
issuehttps://youtrack.jetbrains.com/issue/TW-42163, please watch/vote
for it. Also did you specify the default bra... | I have problem with TeamCity trigger.
My VCS configuration that is used in my job:+:refs/heads/(*)
+:refs/pull/(*)/headIt means "please inform me on changes made on all branches including master and pull requests".I configured my job to skipmasterandRELEASE_CANDIDATEbanches and build only feature and pull request branc... | TeamCity trigger configuration issue |
1
No, unless you have memlock()ed yourself into memory, you are most likely hitting an OS mapped address space limit. The fact that it's neatly coming out to 32GB, same as your RAM, is likely a coincidence.
Edit: Actually, if you're using MAP_PRIVATE then you may indeed be ... |
Wanted to know what if there is a relationship between the maximum amount of memory that can be used to map a file through mmap() and the size of the RAM in a linux box. I tried to memory map some files , and I found that I am not able to map any more files when the "Mapped" usage comes close to the "MemTotal" ( viewe... | Memory usage when files are loaded via mmap() |
How can I start from scratch on my new repo and what do I need to upload the code (first time and afterwards)?If you don't need the history of the previous repository, you can:clone the new (empty) onecopy the files from the old oneadd, commit, and pushShareFollowansweredMar 24, 2021 at 0:35VonCVonC1.3m539539 gold badg... | I have a new repo that takes over the repo name of another repo, whose name I changed and which I am keeping for backup.I used to upload code to the repo with the following codegit add .
git commit -m 'some title'
git push -u origin masterAnd it would work. For the newly-created repo (which has taken over the old repo'... | New repo with same name - how to reset my git CLI and upload code? |
Right click on the repository, choose "Import Projects..." and then "Import existing projects". | I need to find code smells in the Eclipse project git repository.I am trying to do this via EGit for Eclipse and plugins PMD and JDeodorant. But I seem to be having trouble.I have managed to clone the git repository into Eclipse but I cannot use PMD or JDeodorant on its files. Why is that?If I have a normal Java projec... | Detecting code smells in git repository using Eclipse plugins? |
Try adding these 2 lines to thein to the application tagin the manifestandroid:hardwareAccelerated="false"
android:largeHeap="true"But these are not recommended if you are building a memory efficient App,
But this really works. | I am using some png images for the backgrounds of activities in my application. These png files are mostly very small sized images. For example, I am using one with the size of 768x1024 which is actually 29.6KB on disk. When I run the application on my Samsung Note 1, I realized that the image actually consumes approx.... | Android decompressing PNGs, will cause potential out of memory errors |
Computed properties are much like functions that take no arguments and return a value. For the lifetime of the execution of a computed property, some memory will temporarily be allocated on the stack, to store the local variables of the computed property.
In addition to this, the instructions of the computed property ... |
A basic question and might even be stupid, but it's important to me. I don't know the answer and I appreciate your time.
[Issue]:
In Swift, there isn't any storage allocation for computed property, so it's not really a variable You can find this sentence on page 197 of the second chapter of the book iOS Apprentice (5t... | Computed property does not require storage allocation |
Solution:Install the armhf version of libasound-dev to your Raspbian docker image:apt-get install libasound-dev -y
apt-get install libasound-dev:armhf -y(If you only installlibasound-dev:armhf, it will complain aboutalsa-syslinker errors.)Addalsadependency to Cargo.toml:[dependencies]
alsa = { version = "0.2.1", option... | I'm trying to cross-compile a simple Rust program to record sound with ALSA drivers on a Raspberry Pi Zero using thewavy crateinside a Docker container that has thelibasound-devlibrary installed. However, the linker complains about:note: /opt/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/../lib/gcc/arm-linux-gnueabih... | ALSA linking when cross-compiling Rust program for ARM |
That's not a GitHub URL. If you can cd into the git repo, use git remote show origin (assuming origin is the name of the remote pointing to GitHub) to see the full GitHub clone URL.
It should be something like
[email protected]:username/repo.git
It may also be possible the repo is not hosted on GitHub (for sure that'... |
I have ssh://ninsun/var/git/krymsky Is it possible to find out GitHub url of the repo?
Might it be not a GitHub repo?
| How to get repo GitHub url havig ssh to clone with? |
Your question isn't clear, are you trying to attach another PVC to an existing PV?
If so then that is not possible.If you want to unclaim the previous PVC and claim with a new PVC, that is also not possible, unless the PV is using theRecyclepolicy.In any case, if you remove a PVC while the PV's reclaim policy is delete... | I don't have code for this as i am trying to understand it theoretically.Current state:a PV and PVC get dynamically created by a helm chart. This pv and pvc are using default storage class with delete policyFuture state:I want to attach a new PVC with different storage class (with retain policy) to the existing PV and ... | Is it possible to take an existing PV which has Delete policy and different storage class and attach it to a new PVC with different storage class? |
I assume you are running1.17.7-gke.17on your GKE cluster. Unfortunately this is the latest version you can upgrade to, through therapid channel, at the time of this post.topologySpreadConstraintsis available in Kubernetes v1.18FEATURE STATE: [beta] | We are running an application inside a cluster we created in GKE. We have created required yamls (consisting of Service and Deployment definition). We recently have decided to use Pod Topology for that I have added following piece in my Deployment yaml file under spec section-spec:
topologySpreadConstraints:
- maxS... | Failure in creating service when using "topologySpreadConstraints" in Deployment definition |
To delete the auto-generated cronjobs from your crontab, run whenever against your defintion file with the -c flag:
$ whenever -c theCronJob
Alternatively, open your crontab...
$ crontab -e
... and then manually delete the undesired entries.
|
I'm using the "whenever" gem and got it working by doing:
whenever --set environment=production --update-crontab theCronJob
The interval I'm using is 2 minutes since I'm still trying to figure it out. However, now I get a You have mail message in my terminal window every 2 minutes. I guess the cron runs and lets me k... | How to stop cron jobs created by "whenever" gem |
You should use promise() with await:
await s3.putObject({...}).promise();
|
I'm trying to save a string as a file to an AWS S3 bucket using the AWS SDK for NodeJS. The PUT request gets succeeded, but the file does not get created in the S3 bucket. Following is a snippet from my code.
const s3 = new S3({ apiVersion: '2006-03-01' });
const JS_code = `
let x = 'Hello World';
`;
// I'm using ... | aws - Uploading a string as file to a S3 bucket |
With CDKTF you can specify multiple providers like this:class MyStack extends TerraformStack {
constructor(scope: Construct, ns: string) {
super(scope, ns);
new AwsProvider(this, "aws", {
region: "eu-central-1",
});
const provider = new AwsProvider(this, "aws.two", {
... | I am using CDKTF and python for a project where I am generating JSON output that will be interpreted by Terraform.I have a use case where I need to send in multiple aliased AWS providers. I am able to specify a single provider to the stack by using theadd_providermethod but I cannot add a secondary aliased provider wit... | Multiple AWS providers using CDKTF |
EDITED:Try something like this:*/1 * * * * . /path-to-env/bin/activate && /home/user/Desktop/job/dp/manage.py statisticsThis should be read as: activate the env and if that was successful, excute the manage.py script. Since manage.py is supposed to have a python shebang and the virtual env sets the correct python inter... | How to run in crontab*/1 * * * * /home/user/Desktop/job/dp/ python manage.py statisticswith virtual env? I need to activate virtualenv first(Otherwise it does not work)This is my virtual env:source job/bin/activate | How to run custom manage.py in crontab + virtual env? |
If you want to go down the Valgrind route, Massif is the tool to use:
valgrind --tool=massif your_app -your_options
|
I am running my C program and I want to see the memory used by this. I am using the profiler gprof. Is it possible with gprof? Or maybe I have to study the Valgrind profile?
| See the memory used by a C program with gprof |
Correct.Amazon SNS normally uses a Public/Subscribe model for messages.The one exception is the ability to send an SMS message to a specific recipient.If you wish to send an email to a single recipient, you will need touse your own SMTP server, or use Amazon Simple Email Service (Amazon SES). | I am working on sending OTP messages for user login leveraging Amazon SNS. I am able to send Text message as suggestinghere. For the email notification as well I would like to use a similar approach. But looks like for email notifications, a topic has to be created in SNS and a subscriber has to be created for each ema... | AWS SNS OTP emails |
Enable Dead Letter Queues, and set the DLQ Maximum Receives value to 1. This means that a message can only be received (and not deleted) one time before it is sent to the Dead Letter Queue.
Update, adding screenshots
This field is found into the beanstalk environment admin into Configuration > Worker Configuration > A... |
I am configuring a beanstalk worker environment to deal with periodic tasks
When the requested URL is not responding with status 200 Elastic Beanstalk will put the task again in the queue.
How can I configure the number or retries?
I know the explanation is somewhere hidden behind ErrorVisibilityTimeout, InactivityTim... | Amazon SQS how to control the number of retries |
4
I've had the same issue before. You can fix it by cleaning up /var/lib/docker/swarm/ on the problematic node, then reattach it to the swarm.
1) on problem node
sudo systemctl stop docker
sudo rm -rf /var/lib/docker/swarm
2) on swarm manager
docker node rm <problem-no... |
I am trying to run a service on a swarm composed of three Raspberry PIs.
I have one manager and two worker nodes.
The problem is that sometimes the status of the worker nodes is "Down" even if the nodes are correctly switched on and connected to the network.
I just started using Docker so I might be doing something ... | Swarm node Status down, but node should be Ready |
1
One way is to create a new config.ru file that dispatches the request to the correct app.
# /var/www/apps/config.ru
require './app1/app1'
require './app2/app2'
map ('/') { run App1 }
map ('/foo') { run App2 }
Of course, this means your apps have to be made in a way that... |
So I've got two apps I want to run on a server. One app I would like to be the "default" app--that is, all URLs should be sent this app by default, except for a certain path, lets call it /foo:
http://mydomain.com/ -> app1
http://mydomain.com/apples -> app1
http://mydomain.com/foo -> app2
My two rack apps... | Multiple rack apps on nginx + passenger, one as root, the other not...config help |
To add to the comment, you can consider theGitHub API on Activity WatchingThat API allows to list watchers, or for an authenticated user to "set a repository subscription".But that call cannot be done "for another user", only for the current authenticated account.This assumes, in your case, that account has access to t... | Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchange site, ... | Add someone as watcher to github repo [closed] |
I believe it is a standard output from the inner workings of python lambdas that use boto. None of my python Lambdas have credentials and yet I have the same message in all logs of python lambdas. | I have a lambda function that used to use encrypted environmental variables set in the lambda configuration but I no longer need them. I tried removing the env variable in the UI and it no longer shows up but still seeing in the logs:"Found credentials in environment variables."I also tried using the update-function-co... | AWS Lambda: How To Remove Environmental Variables from Configuration |
I solved this by manually setting the commit status using@myrotvorets/set-commit-status-action. The workflow file ended up being like the followingname: Testing actions
on:
issue_comment:
types: [created, edited]
jobs:
testing-actions:
if: github.event.issue.pull_request && contains(github.event.comment.bo... | I have a Github action workflow which is set to trigger onissue_comment, for example the followingname: Testing actions
on:
issue_comment:
types: [created, edited]
jobs:
testing-actions:
if: github.event.issue.pull_request && contains(github.event.comment.body, '@test')
name: Just testing
runs-on: ... | How to associate status of a Github action workflow with a commit or PR |
You should use a rewrite since you're already using mod_rewrite and it should go before your other rules. If you are redirecting to a new domain, the other rules probably don't need to be there anymore any.RewriteEngine On
RewriteBase /
#redirect to new domain
RewriteRule ^(.*)$ https://www.newdomain.com/$1 [R=301,L]
... | I want to redirect from either http or https to a new website.RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
Redirect /abc https://www.newdomain.com/abcThis works-http://www.olddo... | htaccess redirect from https getting 404 |
I do this regularly as the servers I run on are only provisioned for 30 days. You don't specify the operating system, but for windows it's as simple as:Stop "old" serviceCopy folder from old machine to new machineInstall the windows service with the java wrapperStart the serviceIn my case I change the DNS alias after t... | Need to migrate my SonarQube to a new server (not the remote DB, just the application). Is there any special tool offered by Sonar to do so? is it just a matter of pointing this new installation (if possible) to the old DB?Sonar v5.2
MySQL 5.xThanks! | How to migrate SonarQube to new host |
Appereantly there isn't any answer to this question... so i figured out something else. I saved the certificate in a variable in my pythonic code :P and then before connecting to the server, the client saves the certificate to a temp file, and at the end delete it. | I am coding a program(server-client) in python 2.7, that exchange data through sockets. I use SSL to secure the connection. But here is the thing. I want to make the client and the server executables with pyinstaller, and i want the SSL certificate and the key to be "hidden" somewhere inside the python code... so i can... | Embed SSL certificates |
0
It is usually good to have an endpoint on server which gets called during app initialisation, this way you won't hard code anything on client side which can be viewed by end user.
However, just having that won't be enough as you need to somehow protect them if stored on c... |
I have an Angular 6 application that I'm required to deploy onto a Kubernetes cluster as a Docker container (Nginx Base Image). The same image is built once and used for dev test prod environments.Since the Docker image is created once and reused in other environments, we don't have the environment.ts file anymore. I... | Angular 6 / Nginx / Docker / Kubernetes: configure environment variables for different environments |
1
Git doesn't know what to do with the unexpected string you gave it. Please make a copy of your local repository (always good to have backups in these cases) and then run the following commands:
git remote remove origin
git remote add origin https://<GITHUB_ACCESS_TOKEN>@g... |
Authentication Problem
Any one knows how to solve authentication error while pushing file,I tried to generate token but again failed several times.
| Authentication error while pushing file on github |
This concept is pretty difficult to tackle, there are a lot of options when considering networked services. I'd adviseagainst using awell known portfor your web service in general, although in the case ofRESTthere is a case to be made.As you mentioned, obscure port numbers can be blocked inside certain networks by stri... | I have an app which uses a backend (REST webservice) on a public server. Currently I am using 8080 as the incoming port and asked myself if this is correct. In theory I could choose almost any port. Theoretically... But it is advisable to use a non-reserved port.I once heard that calling a web service with an "exotic" ... | Could I use port 443 for my webservice or is this port reserved? |
The Dockerfile that ended up working was
FROM node
ADD . / frontend/
RUN (cd frontend/; npm install;)
CMD (cd frontend/; npm start;)
Shoutout to @Matt for the lead on . / ./, but I think the only reason that didn't work was because for some reason my application will only run when it is inside a directory, not in the... |
I have a simple web application that I would like to place in a docker container. The angular application exists in the frontend/ folder, which is withing the application/ folder.
When the Dockerfile is in the application/ folder and reads as follows:
FROM node
ADD frontend/ frontend/
RUN (cd frontend/; npm install... | Docker Add every file in current directory |
Try passingRAILS_ENV=productionbeforeshoryuken. If you pass it after, it won't work.RAILS_ENV=production bundle exec shoryuken -r path_to_my_worker.rb -C config/shoryuken.yml --rails | The shoryuken gem is a background worker for rails applications that reads from aws SQS.I can run the shoryuken worker in my local and it's working fine. When I run it in production environment in AWS it does not work. How do you run shoryuken in production environment? I'm also thinking that this might be an issue wit... | Can't run rails shoryuken gem in production environment that reads from SQS |
A somewhat crude solution would be to use thefindshell command to list all files in a given directory with names matching the pattern"*.R"and then pipe|that list of files intoxargs, which then executes theRscriptcommand once for each file in the list.(This is why the-n 1command line flag is necessary)find /home/YourDir... | I want to schedule a cronjob so it executes every R script I put into a certain directory.From another post on this site I've seen the following code:0 0 * * * cd /home/script2; Rscript scriptSecos.R >/dev/null 2>&1This would run the RScriptscriptSecos.Rfrom the path/home/script2.What would I need to change in order to... | How to schedule a Cronjob so it executes all R scripts in a file |
In order to display one or many resources you need to usekubectl getcommand.To show details of a specific resource or group of resources you can usekubectl describecommand.Please check the links I provided for more details and examples.You may also want to useWeb UI (Dashboard)Dashboard is a web-based Kubernetes user i... | We started using Kubernetes, a few time ago, and now we have deployed a fair amount of services. It's becoming more and more difficult to know exactly what is deployed. I suppose many people are facing the same issue, so is there already a solution to handle this issue?
I'm talking of a solution that when connected to ... | Kubernetes Cluster - How to automatically generate documentation/Architecture of services |
Answer on your question:you may see difference between two branches by executinggit log <parent_branch_name>..<your_feature_branch_name>, for instancegit log develop..feature.About your situation:As I see situation, the most likely reason for such behaviour is merging develop branch within your local repo. If while mer... | I have performed the steps below, but when I compare thedevelopbranch with thefeaturebranch I see two commit messages instead of only just 1 commit that I expect to see. One is the previous commit which is already indevelopand the other us the latest commit I made in thefeaturebranch.I have pulled and merged the locald... | How can I compare two Git branches and only list the new commits in the feature/topic (second) branch |
You should add a location = / block to force the root URI to home. For example:
server {
listen 443 ssl;
server_name myapp.io www.myapp.io;
ssl_certificate ...;
ssl_certificate_key ...;
...
location = / {
return 301 /home;
}
location ~ /.well-known {
allow all;
}... |
I have the following nginx server block.
server {
listen 80;
server_name myapp.io www.myapp.io;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name myapp.io www.myapp.io;
ssl_certificate /etc/letsencrypt/live/myapp.io/fullchain.pem;
ssl_certificate_key /etc/lets... | Redirect to the home page in nginx |
Try URL-encoding it: pass%40my
|
My github password includes @ character. In doing git clone, I am getting an error message could not resolve host: [email protected] considering my password is "pass@my". Using backslash too presents the same error.
I am typing:
git clone myusername:pass@[email protected]/myusername/myrepo.git D:/myworkspace
How to ... | Github password has @: Could not resolve host error |
Ultimately, every Java object know its class and has a synchronization primitive optionally attached to it (though this can be synthetic). That's two references which it is difficult to make a java.lang.Object instance do without. Everything else derives from that class, so you've got a floor for costs which worked ou... |
My question is related to memory footprint in java for class without data member. Suppose in java I have a class which doesn't have data member and it only contains methods. So if I am creating instance of particular class then does it occupies memory in primary memory except object reference memory ?
| Does class without data member have memory footprint in java? |
Are you trying to map routes within your app? e.g. cf map-route angular-app mysite.com --hostname www --path some-ng2-router-path
More on https://docs.cloudfoundry.org/devguide/deploy-apps/routes-domains.html#map-route
It should work with http://docs.cloudfoundry.org/buildpacks/staticfile/index.html#pushstate
|
I am using cloud foundry platform to deploy angular2 app using nginx based ststicfile buildpack.
Upon refreshing on a sub route /my-route I am getting 404.
I want any path such as www.mysite.com/some-ng2-router-path to redirect back to www.mysite.com
I have seen several posts about this but I can't figure out how to ... | Angular2 - Nginx route 404 error on cloudfoundry |
Update:Check out Barmanfor an easier way to set up WAL archiving for backup.You can usePostgreSQL's continuous WAL archivingmethod. First you need to setwal_level=archive, then do a full filesystem-level backup (between issuingpg_start_backup()andpg_stop_backup()commands) and then just copy over newer WAL files by conf... | I am currently usingpg_dumppiped togzippiped tosplit. But the problem with this is that all output files are always changed. So checksum-based backup always copies all data.Are there any other good ways to perform an incremental backup of a PostgreSQL database, where a full database can be restored from the backup data... | Best method for PostgreSQL incremental backup |
Since aws_alb_target_group.http is a counted resource you'll need to reference specific instances by index or all of them as a list with [*] (aka Splat Expressions) as follows:
output "target_groups_arn" {
value = aws_alb_target_group.http[*].arn,
}
The target_groups_arn output will be a list of the TG ARNs.
|
I am using Terraform v0.12.26 and set up and aws_alb_target_group as:
resource "aws_alb_target_group" "my-group" {
count = "${length(local.target_groups)}"
name = "${var.namespace}-my-group-${
element(local.target_groups, count.index)
}"
port = 8081
protocol = "HTTP"
vpc_id = var.vpc_id
healt... | Error aws_alb_target_group has "count" set, its attributes must be accessed on specific instances |
There are functions for this that you're supposed to use.If you can't, for whatever reason, then the way this is generally done is by adding the block size to the allocation size, then using integer-math trickery to round the pointer.Something like this:/* Note that alignment must be a power of two. */
void * allocate_... | I need to allocate memory which should be page size aligned. I need to pass this memory to anASMcode which calculates xor of all data blocks. I need to do this withmalloc(). | How allocate memory which is page size aligned? |
You were really close, in case someone interested in te answer it would be- source_labels: [__name__]
regex: "(.*)-(.*)"
action: replace
replacement: "${1}_${2}"
target_label: "__name__"this should do the work.ShareFollowansweredMay 27, 2021 at 15:53MaratMarat3122 bronze badges1can someone exlpain why "... | I am scraping an exporter that gives me metric names with dashes. Prometheus metric names cannot have dashes so I fail to scrape those metrics.Is it possible to replace the dash with an underscore to make the metric name valid?Current:collectd_a-b_derive_total.Desired:collectd_a_b_derive_total.I added this to my confi... | Can you replace dash in metric name with underscore? |
Update 2016As this answer receives some attention, I want to hint to a more recommended way on doing this using Virtual Hosts:Apache: Redirect SSL<VirtualHost *:80>
ServerName mysite.example.com
Redirect permanent / https://mysite.example.com/
</VirtualHost>
<VirtualHost _default_:443>
ServerName mysite.examp... | I have an old url (www1.test.net) and I would like to redirect it tohttps://www1.test.netI have implemented and installed our SSL certificate on my site.This is my old file.htaccess:RewriteEngine On
RewriteRule !\.(js|gif|jpg|png|css|txt)$ public/index.php [L]
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ pu... | .htaccess redirect http to https |
For a pull request, you can now "request a review explicitly from collaborators,making it easier to specify who you'd like to review your pull request."Assignees, on the other hand, "clarify who is working on specific issues and pull requests."In sum, the difference is whether you'd like to ask someone to work on fixin... | This question already has answers here:On GitHub, what's the difference between reviewer and assignee?(7 answers)Closed5 years ago.In GitHub, when creating a pull request,what do reviewer and assignee mean?What are their differences and relations?Thanks. | What do reviewer and assignee mean in pull request? [duplicate] |
Kubernetes actually does do this. The master schedules each pod onto a worker node, and each node communicates with the master to receive the work it should do. The scheduler does bin packing based on resource requests.We're working on improving the scheduler to use resource usage as well (what a process is actually ... | Mesos + Kubernetes is one alternative to achieve Pod orchestration (Kubernetes) and resource allocation (Mesos). But how does Google Container Engine carry out resource/task sharing for Kubernetes? To my understanding, Kubernetes does not itself offer this. | What does Google Container Engine use for Kubernetes node provisioning? |
Try this Gemfilesource 'https://rubygems.org'
gem 'github-pages' | I am following this page:https://help.github.com/articles/using-jekyll-with-pages/I am up to step 3 and I believe I did what they told me to but for some reason it won't go thru.Gemfile syntax error on line 1: syntax error, unexpected ':', expecting
end-of-input
source: 'https://rubygems.org' | Can't get Jekyll to install |
There are a lot to consider in order for you to achieve your goals in monitoring the availability or uptime of ephemeral pod runners for GitHub Action runners. To start off, you need a tool to do this like Grafana. This will help you monitor and visualize Kubernetes metrics. Also you need to define the criteria that y... | I want to calculate the availability/uptime percentage of ephemeral pods runners that belong to GitHub Action runners.How should promql query look like to calculate the uptime percentage of ephemeral runners/pods in kubernetes? | Calculate the uptime percentage/availability of ephemeral pods in kubernetes over a period of time |
It's going to be hard to tell when a file is completely written unless it is renamed when the download is completed, but you could change yourfindcommand and add-mmin +1so that it only looks for files which have been modified more than 1 minutes ago (meaning that download is likely completed). Also, you should use/at ... | I'm using the following crontab, once an hour, to move any files with the .mp3 extension from the dir "webupload" to the dir "complete" :60 * * * * find usr/webupload -type f -maxdepth 1 -name "*.mp3" -exec mv {} usr/webupload/complete \;The problem is that "webupload" contains lots of partial files being transferred.I... | A crontab to move completed uploads from one dir to another? |
will that result in a headache down the line if the PR is merged, other commits come in on top of branch-1's merge commit and then I submit a PR for branch 2?In that case (additional commits done on top of the accepted and merged branch-1), all you need to do is rebase branch-2 on top of the updated upstream/master (up... | I've got a git repo fork.I've made a branchbranch-1and have a pending PR on theorigin/masterI want to fix another issue, which I think needs to be put in a new branchbranch-2branch-1has some fixes that I would like to see inbranch-2(withoutbranch 1, tests will not pass, and life will be annoying)I don't want to wait fo... | git: how to handle multiple branches, and pending pull requests |
I hit the same error today and solved it by adding a CORS rule to the S3 bucket. This rule ensures the Content-Length header is sent to Cloudfront so content can be gzipped:
S3 > Bucket > Permissions > CORS Configuration
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-... |
AWS now supports gzipping files through CloudFront
I've followed along with all of the instructions in Serving Compressed Files, and yet gzipping is not working.
I have an S3 bucket set up as a website that CloudFront is using as the origin.
Compress Objects Automatically is enabled
I am serving files with the corre... | CloudFront with S3 website as origin is not serving gzipped files |
Could you try using this code when the user logged into the app.File[] files = cacheDir.listFiles();
for (File file : files){
file.delete();
} | I created an app that connects to facebook and also downloads some pictures from a server and the profile picture from facebook.Then I created an exit Button in my app that exits from the account that the user has been logged in with. The app then returns to the login page.However, when I connect to facebook again afte... | Clean login data |
1
The getter from 2 and the setter from 1:
- (NSString*) title
{
return title;
}
- (void) setTitle: (NSString*) newTitle
{
if (title != newTitle)
{
[title release];
title = [newTitle retain]; // Or copy, depending on your needs.
}
}
... |
Apple's Memory Management Programming Guide shows three officially sanctioned techniques for writing accessor methods that need to retain or release object references.
In the case of the first two techniques (reproduced below), the Apple documentation says that "[t]he performance of technique 2 is significantly better... | Which of these memory management techniques is better in what situations? |
If you have developed your own custom RoleProvider class, you can do your own data caching, e.g. using the ASP.NET cache. This is more flexible than using Session as a cache, since it will work even on pages that don't have session state enabled.I don't agree with Wyatt Barnett's comment that:The downside for using th... | We have an ASP.NET MVC application for which we have developed our own custom RoleProvider class. Without caching it will access the datastore for every request - bad. The only caching option we can find is (in web.config) via cookies stored on the clients' machines. My two questions are:Is this secure (even with encry... | Role Caching Strategies in ASP.NET MVC |
Try to look if the docker version are compatible
|
So I have a remove server that runs a container.
I manage to connect to it through VsCode and the Remote Docker extension by changing the docker.host property to "ssh://username@server" and then going to the Remote Explorer section and seeing all my containers there.
Now I want to connect to another remote container i... | Remote-Container on one server working, on other doesn't work |
adding the below config is vscode settings.json may resolve this"vs-kubernetes": {
"vscode-kubernetes.minikube-path.mac": "/path/to/minikube",
"vscode-kubernetes.kubectl-path.mac": "/path/to/kubectl",
"vscode-kubernetes.helm-path.mac" : "/path/to/helm"
}ShareFollowansweredDec 1, 2021 at 7:19psadipsadi16488 ... | I restarted my mac (Mac OS High Sierra) and now Visual Studio code can't find kubectl binary even it is installed via brew.$ which kubectl
/usr/local/bin/kubectlThe weird thing is that it could find kubectl before I restarted my laptop. | Why is Visual Studio Code not finding my kubectl binary? |
AWS JavaScript SDK was recently updated with Document Client which does exactly what you need. Check the announce and usage examples here: http://blogs.aws.amazon.com/javascript/post/Tx1OVH5LUZAFC6T/Announcing-the-Amazon-DynamoDB-Document-Client-in-the-AWS-SDK-for-JavaScript
|
I'm using AWS Lambda to scan data from a DynamoDB table. This is what I get in return:
{
"videos": [
{
"file": {
"S": "file1.mp4"
},
"id": {
"S": "1"
},
"canvas": {
"S": "This is Canvas1"
}
},
{
"file": {
"S": "main.mp4"
},
... | Formatting DynamoDB data to normal JSON in AWS Lambda |
Create another Docker container that runs a script controlled by a cron job that executes the backup and stores it onto a shared volume.Also seeCron containers for docker - how do they actually work? | I have deployed an Mongo image in a Docker container via Docker Cloud. It is linked to a Meteor app. Is there any way to backup the data on the container? | Backup Mongo in a Docker container |
it seems you have two machines, development and server. I think you need a key pair between server and github such that the server can access github repo. | I have a private Github repo and am trying to set-up Vlad to deploy it to my server. I am gettingHost key verification failedwhen Irake vlad:update- as I haven't defined any shh keys or entered any passwords. I'm not really sure where to start. What's the easiest and most secure way to do this?My currentdeploy.rbis:set... | Deploying via SSH with Vlad |
You should use/admin/1/in your inner location block as the inner URLs are not relative to the outer URLs. You can see that this is the issue based on the following snippet from the error message you included...location "1/" is outside location "/admin/" | Hi I'm trying to get the following to work!I'm basically trying to allow the following URLs to be passed to the proxy_pass directive by either of these two URLS:http://example.com/admin/1orhttp://example.com/admin/2/I have the following config:location /admin/ {
# Access shellinabox via proxy
location ... | Nested locations in nginx |
Generally speaking, you can use a Logstash JDBC input to read the audit logs from the MySQL database, possibly filter them, and finally send them to Graylog with a GELF output.https://www.elastic.co/guide/en/logstash/6.0/plugins-inputs-jdbc.htmlhttps://www.elastic.co/guide/en/logstash/6.0/plugins-outputs-gelf.html | I have audit logs in my Wordpress server and Wordpress keep them in the MySQL server. I need to send these audit logs to Graylog server and I can't find a solution for how I could send MySQL table to Graylog server.Note: all systems are runing on CentOS 7 . | Send MySQL data to GRAYLOG server |
UPDATED ANSWER:Still yes.Docs for new Dashboard endpointhere.ORIGINAL ANSWER:Yes.Docs for screenboardshere.Docs for timeboardshere. | Is it possible to export or download Datadog dashboards via Datadog REST API?Export and update of Datadog Monitors works fine. I need the same functionality for dashboards. | Can I export Datadog dashboards via Datadog REST API? |
Thank you for using AWS CodeBuild. For pull request scenarios, HEAD_REF filters on the git reference name of the source branch in the webhook payload that triggers the webhook build, you can find the branch name in "pull_request" -> "head" -> "ref" field in the payload. BASE_REF filters on the git reference name of th... |
I want to set a build webhook when a PullRequest is opened from dev branch to master branch. AWS Codebuild has a webhook based on HEAD_REF and BASE_REF which lacks detailed documentation.
What do they stand for?
| What is the difference between HEAD_REF vs BASE_REF in AWS Codebuild git webhook? |
How come this singleton implementation does not leak memory in C++?This singleton implementation does leak memory.That said, the memory is leaked immediately before the program terminates, and thus the leak doesn't really matter. This is a common technique that can be used to speed up the termination time, as well as a... | I'm studying about singletons in design patterns and I saw this singleton implementation and I tested it withfsanitize=address, because there is nodeletekeyword even though there is anewkeyword being use I suspect that this is an incomplete implementation and therefore has memory leak, but after running the program it ... | How does singleton instance implementation in C++ does not leak memory? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.