Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
In the AWS SDKdocsthere is the following option:s3ForcePathStyle (boolean)Returns whether to force path style URLs for S3 objectsI've tested it works with this config:var config = {
accessKeyId: "123",
secretAccessKey: "abc",
endpoint: "localhost:3000",
sslEnabled: false,
s3ForcePathStyle: true
};
AWS.config.... | I'm trying to usefakes3as an endpoint for some simple S3 code I've written. I can't get beyond the connection stage though.The current error is:NetworkingError: getaddrinfo ENOTFOUND.I've got configuration setup:"aws": {
"accessKeyId": "123",
"secretAccessKey": "ab... | How to configure AWS S3 SDK for Node.JS to be used with localhost? |
When callingReceiveMessage(), you can specify a list ofAttributeNamesthat you would like returned.One of these attributes isApproximateReceiveCount, which returns "the number of times a message has been received across all queues but not deleted".It is an 'approximate' count due to the highly parallel nature of SQS -- ... | I have a use case to know how many times sqs message has been read in my code.For example we read message from SQS, for abc reason/exception we cant process that message . Now the same message available in queue to read after visibility timeout.This will create endless loop. Is there a way to know how many times partic... | is it possible to know how many times sqs messsage has been read |
You can inspect calico-node containers logs across your Kubernetes cluster within this path/var/log/calico, or it can be modified via--log-dirparameter used incalicoctl node runcommand, as described in thislink.However, if you want to observe logs alongCNI Network, please visit thispage.I found it very helpful to log o... | I am new to KubernetesNetworkPolicyand the Network plugincalico.I have successfully implementedcalicoin my Kubernetes cluster:[root@node1 ~]# kubectl get po --all-namespaces -o wide | grep calico
kube-system calico-kube-controllers-5d8b5bc986-sllmk 1/1 Running
kube-system calico-n... | Logging for Kubernetes Calico NetworkPolicy? |
The cronjob is not executing in the same directory/environment as the script.You can address this by adjusting your cronjob:* * * * * cd /home/yourdir; ./loader.pyOR* * * * * /home/mc/dotasks.shdotasks.sh contains:cd /home/yourdir
./loader.py
#anything else you need to do | I have an automated script - I mean, it runs every 10 minutes by a cronjob.
The weird thing is: The file is always found and runs through it when I start the script by hand. But it gives me a lot of troubles when it runs by cron job.these are the rights of the files:-rw-r--r-- 1 dataloader users 181 Dec 19 12:37 F... | Can't find file with python script when run via cron |
Please remove yourErrorDocumentrule and replace it with following code :RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ error.php [L]A suggestion by the way: You should put a[L]behindRewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}, so that no other rule will override the H... | I created custom 404 error page called error.php, now I want to display the error.php content in user entered url.like this link:http://www.youtube.com/asdfasfsdThis is myhtaccesscode:ErrorDocument 404 https ://localhost/path/error.phpI want to show the error.php content in same URL without redirect to error.php pageif... | display custom 404 error page without redirection in PHP |
You can use the/api/resources?resource=project-keyWeb Service from a script to check if the given project key already exists (if not, the WS will answer with a 404).However, as @andre-stannek said: in the end it is your responsibility to make sure that 2 projects don't use the same key. There is no way for SQ to know i... | I am building my projects with Jenkins and analyze them with SonarQube.The problem I am trying to fix without writting my own Plugin is the following:1.) Jenkins starts a build of a new project (never built or analyzed an SonarQube before)2.) SonarQube analysis is triggered3.) SonarQube shell check if a project with th... | SonarQube: Check if a project with the same key already exists while first analysis/build |
Using variables within the proxy_pass statement requires Nginx to use a resolver. See this document for details.
Either specify a resolver statement, or better still, rewrite the block to avoid using variables in the proxy_pass statement.
For example:
location ~ ^/api/v[0-9]+\.[0-9]+/users {
rewrite ^/api(.*)$ $1 ... |
I am serving some services on an Ubuntu VM using Nginx 1.14.0. In my server definition, I'm including a location block designed to forward requests from /api/v{version}/users{suffix} where version is supposed to be a number like 1.0 or 2.1 and suffix can be empty or could be part of the route. My goal is to forward to... | Nginx regex location not matching |
Here is the code to remove "address.street3" attribute.
var docClient = new AWS.DynamoDB.DocumentClient();
var params = {
TableName : "customer",
Key : {
"customerId": "customer_001"
},
UpdateExpression : "REMOVE address.street3",
ReturnValues : "UPDATED... |
Let's say I have this item in DynamoDB:
{
"customerId": "customer_001",
"customerName": "itsme",
"address": {
"city": "Frankfurt",
"country": "Germany",
"street1": "c/o Company xxx",
"street2": "Europe",
"street3": "PO Box 406",
"zip": "12345"
}
}
I need to remove the nested attribute ... | Remove nested attribute in dynamodb |
It seems that Google provides a push notification system.https://developers.google.com/drive/web/pushI still have to test it, but if there is a solution to my problem I think it's this feature ;-)Thanks to @AndréSchild for his help. | Each time a file is uploaded in a specific Google Drive folder, I would like to create a new entry in my CRM.Since I'm using PHP, I think I might have to run a cron to check for the new files in Google Drive, then report them into my CRM.But I was wondering, is there a way to tell Google to run my script each time a fi... | Execute code on Google Drive upload |
Yes.The last CUDA version to supportsm_10was CUDA 6.0.CUDA 6.5 shipped with the PTX ISA 4.1 document, and information coveringsm_10instruction support was dropped from that document.However CUDA 6.5 still supportedsm_11,sm_12, andsm_13, and descriptions of supported instructions in those architectures is still included... | From the NVIDIAwebsite, I didn't find a clue regarding the PTX ISA version in which support for sm_10 is removed. From my experiments, I have an intution that it is PTX ISA 4.1 in which the support for sm_10 is removed. Or in other sense 4.0 is the latest PTX ISA version supporting sm_10. Is this correct? | Latest PTX ISA version for sm_10 |
You're missing the namespace declaration in the topprojectelement of your Ant script.xmlns:sonar="antlib:org.sonar.ant"ought to do it.ShareFollowansweredOct 12, 2012 at 18:45DavidDavid2,62211 gold badge1919 silver badges3232 bronze badges2Is it possible to use the sonar ant task in any way without the specific sonar na... | I have a build.xml-file that looks something like this:<taskdef uri="antlib:org.sonar.ant" resource="org/sonar/ant/antlib.xml" classpath="/path/sonar-ant-task.jar"/>
<target name="sonar">
<sonar:sonar/>
</target>And when I run the file I get:The prefix "sonar" for element "sonar:sonar" is not bound.Any obvi... | The prefix "sonar" for element "sonar:sonar" is not bound |
I'll suggest you to read the docs related to bind mounts to understand --mount option with type=bind parameter.
In your example, the mount option just shares a local directory between your host ($(pwd)/models/mnist) and your container (in path /models/mnist). That means that all files located on your host in $(pwd)/mo... |
docker run -p 8500:8500 \
--mount type=bind,source=$(pwd)/models/mnist,target=/models/mnist \
-e MODEL_NAME=mnist \
-t tensorflow/serving &
What does parameters --mount, type, source, target and symbol & mean or work in docker?
I have run commands docker --help and docker run --help, but still confused wi... | What is the signification of docker run's mount options (type, source, target)? |
1
You can also use built-in Docker swarm mode. This gives you built in encryption for passing your secrets around, such as the database login. Here's an official Docker sample app that shows how to do a Java Spring Boot app connecting to a database with each service separat... |
Let's say I have a Java EE application which requires a database + I would also like to use apache.
Now, is it better to make a single image containing all three pieces or 3 containers for each of these and use the docker networking (linking is deprecated, right?) to connect them?
| Linking many containers in Docker |
Something similar happened to me when the gc mode was server. In this mode the GC collects memory in much bigger chunks, so it might take a while until GC starts collecting memory. In my case the process reached around 20GB. When I changed to workstation mode the process reached around 1GB of memoryhttps://learn.micro... | Working on a .Net Core app that reads data from source, transforms it, stores in in-memory queue, batches transformed data and writes it to a sink. As the process runs for a longer time, we observe that the memory of the VM starts decreasing until it is completely over, and I start getting "Out-of-memory" exceptions. W... | .NetCore App Memory Leak - high Overhead|Unused memory |
Considering continuous deployments, your previous Pods will be terminated & new Pods will be created. Therefore, downtime of service is possible.To avoid this addstrategyin your deployment specexample:apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: api
spec:
replicas: 4
strategy:
type: RollingUpdate... | I have a service and pod in node.js . .consider hello world ..
exposed port : 80 on httpI want to seamlessly restart my service/podpod/service restart is taking a lot of time, thus there is downtime.Using : kubectl delete; then recreate it with kubectl.How can i avoid delay and downtime ? | kubernetes pod restart takes time and downtime |
9
What your Dockerfile is doing is creating an ElasticMQ server. The latter is a "message queue system" which is compatible with SQS. So, you can use it the same exact way you use SQS, except you have to change the endpoint parameter when using the AWS CLI or SDK.
Let's d... |
I am using AWS SQS in my project. I want to use this for local setup. For SQS, I have added docker_local on my project.
I have updated Dockerfile by adding this as suggested in the link.
FROM java:8
ADD https://s3-eu-west-1.amazonaws.com/softwaremill-public/elasticmq-server-0.13.8.jar /
COPY custom.conf /
ENTRYPOINT ... | How to use docker for sqs locally |
CSRF token is always updated with each page load. It has to be served by django since django is the application that provides and validates it. Place the index.html file in your django templates folder, serve it with your index view, translate CSRF token to javascript code and use it in your ReactJS code
index.html
..... |
I have a React SPA with a Django backend. Like most SPAs, there is an index.html file that needs to be served. But the problem is that this file is served with nginx, so user does not obtain csrf token required to make api calls. I don't really want to serve index.html, as it would require separating the file from the... | Acquiring CSRF token from Django when index.html is served by nginix |
3
You have to follow below steps. I am adding rest api way. You can code it to any language.
EXEC CREATE
POST /containers/(id or name)/exec
Body
{
"AttachStdin": false,
"AttachStdout": true,
"AttachStderr": true,
"Cmd": ["bash","-c","echo '*/5 * * * * /usr/bin/p... |
Could someone please help me with remote api for docker exec to run a command?
I am able to run it directly:
# docker exec 941430a3060c date
Fri Apr 29 05:18:03 UTC 2016
| Remote API for docker exec commands |
1
Try
cd sites-enabled
sudo ln -s ../sites-available/foo.conf .
ls -l
instead of
sudo ls -s /etc/nginx/site
Share
Follow
answered Oct 26, 2018 at 11:05
Irtaza WarisIrtaza Waris
13999 bronz... |
I have deleted default and default.save files from both sites-available and sites-enabled. Then I created node-app in sites-available directory. Now I am writing
sudo ls -s /etc/nginx/sites-available/node-app /etc/nginx/sites-enabled/node-app to create link to sites-enabled folder, but somehow I am getting the follo... | unable to create softlink in sites-enabled in nginx |
Just want to update the result here in case anyone interested.The permission of the /home/example.com/public_html folder was incorrect, that's why the web server has no permission to read the file. After fixing the folder permission, there's no 404 issue more, even after server rebooting. | i get404 errorafter reboot my vps that hostwordpressusingopenlitespeed.All version are latest using Digital Ocean Marketplace (just build today). My VPS runCyberPanel(Hosting Control Panel for LiteSpeed), so multiple website can host in my vps.my effort so far:reboot litespeed usingsudo service lsws restartchange.htace... | Wordpress on OpenLiteSpeed CyberPanel get 404 error after VPS reboot |
Keys don't have any inherent notion of expiration. Only certificates do.ShareFollowansweredMay 26, 2022 at 16:09bartonjsbartonjs31.4k22 gold badges7575 silver badges119119 bronze badgesAdd a comment| | Hi i generate 2 file from the certificateThis one in.pemformat, generated usingopenssl pkcs12 -in {{key_pair_file}} -out {{file_name}}.pem -nocerts -nodes -password pass:testThis one in.cerformat, generated usingopenssl pkcs12 -in {{key_pair_file}} -out {{file_name}}.cer -nokeys -nodes -password pass:testSo how to know... | How do i get expiration date from private key on pem format that generated from certificate? |
Managed to make API calls because I exposed only the subpath/swaggerwhere I could access onlymy-domain.com/swaggerand not other paths.Changed configuration such as :...
rules:
- host: my-domain.com
http:
paths:
- path: /
pathType: Prefix
... | I'm exposing an HTTPS service API gateway with Swagger UI hosted on Azure AKS Cluster with ingress-nginx controllerhttps://kubernetes.github.io/ingress-nginx/Exposing the path my-domain.com/swagger works fine but when I try to make API calls( POST, GET, ...) I get a 404 error.My ingress configuration configuration is t... | API calls issue with an HTTPS API with Swagger UI behind ingress-nginx on Azure AKS |
Just stash the changes temporarily and immediately pop them right after switching branches.git stash
git checkout new_branch
git stash pop | How do I switch the branch and still preserve my current branch changes?Consider this scenario.I am working on an issue and as per our development model, I create a separate branch and start working on it. I created my new branch usinggit checkout -b new_branchNow it works fine when I do any changes in this branch.But ... | Switch a branch and preserve current branch changes in Git |
Turns out it was complaining about theAuthor&Committerboxes in theCommit Messagewindow:As soon as I filled out those boxes, the issue disappeared. | I started getting the following when trying to commit in Eclipse (STS) when clicking theCommitbutton:Tried to follow what people are sayingherewithout luck.Eclipse seems to be properly configured:Git works fine from the command line, but this issues really prevents me from using Git integration in Eclipse.It used to wo... | Invalid author specified message in Eclipse |
If your hoster does not support.htaccessnor configuring the webserver with other methods, you would need to implement the whole HTTP stack into your own application to offer configuration of your own.That means sending the appropriate headers for the files in question next to the files itself. You would need to map tho... | I was checking google page speed tool @http://pagespeed.googlelabs.comand my site point was 88. It suggest me to use Leverage browser caching for the site. I searched stackoverflow about it but all it was about htaccess, my hosting doesn't let me to use htaccess, how can I make it in PHP without htaccess?htaccess codes... | Leverage browser caching with php? |
You can write a program to do it, such as this Python script:import boto3
s3 = boto3.client('s3', region_name='ap-southeast-2')
response = s3.list_objects_v2(Bucket='my-bucket')
keys_to_delete = [{'Key': object['Key']}
for object in response['Contents']
if object['LastModified'] ... | Much like inS3-Bucket/Management/Lifecycles using prefixes, I'd like to prune old files that have certain words.I'm looking to remove files that start withScreenshotor hasscreencastin the filename older than 365 days.Examples/Screenshot 2017-03-19 10.11.12.pngfolder1/Screenshot 2019-03-01 14.31.55.pngfolder2/sub_folder... | How can I delete old files by name in S3 bucket? |
Anstd::stringobject is fixed-size; it contains a pointer to an actual buffer of characters along with its length.std::string's definition looks something likeclass string
{
char *buffer;
size_t nchars;
public:
// interface
};It follows that yourAirlineobjects also have a fixed size.Now,newdoes not only a... | I'm a beginner to C++, I've got the following piece of code:struct Airline {
string Name;
int diameter;
int weight;
};
Airline* myPlane = new Airline;my question is when I call the methodnewit allocates memory, if I recall correctly. How does the PC know how much memory to allocate,especially given that th... | C++: struct and new keyword |
For me the solution was to right-click on my project in Eclipse, and correct the invalid entries in the Java Build Path. | I'm trying to do a background video for a banner. When I view the page locally everything works just fine, but when I load it on a server the video won't load. I do get the fallback jpeg properly displayed but for all three video files the console shows a 404 error.<video autoplay loop class="fillWidth" poster="img/Pus... | html5 videos giving 404 errors |
Another option is to decorate your database entities you wish to audit with a custom attribute. Check for the attribute during SaveChanges. For the module and operation fields, you can capture the stack trace at that time - find the calling controller and action from that. This would help keep your controllers clean... | I'm building some sort of an auditing behavior in an MVC3 app with EF, and I've tried several approaches, trying to avoid high impacts on the code, and, of course, trying to avoid as much extra code as I can, since the application is at 35-ish % done.Auditobject looks like this:AuditIdUserIdOperationIdModuleIdTimestamp... | Auditing EF no T4 |
This worked for me
You need to change aws profile to account where repo is created:In windows it can be done with:setx AWS_PROFILE your_profileAfter that you need to config git with credentials helpergit config --global credential.helper '!aws codecommit credential-helper $@'Now you should be able to clone your repo | I'm having problems cloning from an AWS CodeCommit repo.As far as I can see, I've done all of the nescessary setup steps.I've created the repoI've created the git credentialsI've done the following to configure git...git config --global credential.helper "!aws codecommit credential-helper $@"git config --global credent... | Cannot clone from aws code-commit repo. Repo is "not found" |
@Simon Fontana Oscarsson is right.I just want to add a bit more details about that feature for people who will find that question, because it is a common case.Local Persistent Volumes are available only from 1.7 in alpha stage and from 1.10 in beta.It requires pre-configured LVM on nodes, and it should be done before y... | We are trying to deploy Cassandra within Kubernetes. Thinking of the storage and how to make it work its fastest at each datacenter, without the expense of implementing network attached storage at each data center, it would seem reasonable to make use of a Local Persistent Volume at each datacenter and leverage Cassand... | Local Persistent Volume for Cassandra Hosted in Kubernetes |
We don't use tagging for development environment, because we have pretty nice test coverage, but I suggest, you can easily tag container with your CI tool build number (Teamcity, Jenkins), something likedocker build -t{yourserviceName}:{JENKINS BUILD NUMBER}However, production deployments - is a little bit different st... | It is certain, that "latest" tag is not enough (i.e. if you want to rollback/debug).What is the best docker tagging practice? Is it better to tag it with build number or commit number? Or some other option? | What is the best Docker tagging strategy? |
If you didn't remove your branch from your local machine, and you got rights to push to GitHub, you can restore it on Github by pushing it againgit checkout localBranchName
git push origin localBranchNameIt doesn't matter if you make a fetch from Github, git wont remove your local branch until you explicitly tell it to... | I had a branch on a GitHub project that I merged into master. I then clicked the 'delete branch' button on GitHub, and thought I was all set.Turns out I wasn't, and I want to restore/reactivate the branch. I did not delete the branch on my local respository, nor did I run anygit fetch/pullafterward. Just clicked the... | Restore branch deleted from GitHub |
Based on the suggestion of @kuboon, here is a simpler, working version of that script, tested in zsh. The key differences are:Forcing the first command to return json (which is not always the default) by explicitly using--output jsonoptionPassing that result to parameter--ip-permissionsofrevoke-security-group-ingressra... | Is it possible to revoke all the ingress rules in an AWS security group? Is it possible to revoke all the SSH ingress rules? I'm trying with the cli command below, but it's not working:aws ec2 revoke-security-group-ingress --group-id GroupID --protocol tcp --port 22 | Revoke all AWS security group ingress rules |
I figured out:the flag--chmodis anew feature from Docker Buildkit, so it is necessary to run the build enabling it via:DOCKER_BUILDKIT=1 docker build ./However, it is really not clear why Docker swallows the--chmodoption without any error or warn about the non-existing option 😕. | Given thisDockerfile:FROM docker.io/alpine
RUN mkdir test
# RUN umask 0022
COPY README /test/README
COPY --chmod=777 README /test/README-777
COPY --chmod=755 README /test/README-755
COPY FORALL /test/FORALL
COPY --chmod=777 FORALL /test/FORALL-777
COPY --chmod=755 FORALL /test/FORALL-755
RUN ls -la /testI'd expect ... | Why Docker COPY doesn't change file permissions? (--chmod) |
I understand that, forpackage.jsonGitHub URL, As of version 1.1.65, you can refer to GitHub URLs as justfoo:user/foo-project, asseen here.But I would still recommend amore complete URL instead:git+ssh://user@hostname:project.git#commit-ish
git+ssh://user@hostname/project.git#commit-ish
git+http://user@hostname/project/... | Inpackage.json, I have:"vue-search-select": "github:my-github-account/vue-search-select"And then runnpm install, no error.Inapp.js, I try to import the forked package:import { ModelSelect } from 'vue-search-select';When I runnpm run watch, got the below message:Module not found: Error: Can't resolve 'vue-search-select'... | How to import a forked npm package of Github in Laravel Mix? |
Do you want touseEJML, or do you want towork onEJML? It's unlikely you want to clone it.Instead, create a project and add EJML as a dependency. Using Maven, add this to your pom.xml:<dependency>
<groupId>org.ejml</groupId>
<artifactId>ejml-all</artifactId>
<version>0.33</version>
</dependency>Using Ivy, add this ... | I want to create a sparse matrix usingEfficient Java Matrix Library (EJML).This is the link (http://ejml.org/wiki/index.php?title=Main_Page). I am using intellj I Idea for Java coding. In EJML website it is suggested thatThe command to clone it is:
git clonehttps://github.com/lessthanoptimal/ejml.gitI click on check ... | Github Clone in Intellij Idea |
1
could you try this
git remote set-head origin --auto
Better late than never
Share
Improve this answer
Follow
answered Mar 17, 2021 at 14:08
Max RoaMax Roa
50344 silver badges44 bronze ... |
For some reason, when I was in Atom, my master branch suddenly disappeared. And now, I get this error: fatal: cannot lock ref 'HEAD': unable to resolve reference 'refs/heads/master': reference broken
| fatal: cannot lock ref 'HEAD': unable to resolve reference 'refs/heads/master': reference broken |
You need to excludemaintenance.htmlotherwise that gets redirected as well. Try:RewriteCond %{REQUEST_URI} !maintenance.html
RewriteCond %{REQUEST_URI} ^/card/
RewriteRule ^ /card/maintenance.html [R,L] | I'm trying to redirect everything in a specific folder to a file inside the same folder for maintenance.Any type of access in the foldercardwill have the following rules:RewriteCond %{REQUEST_URI} /card/?.?
RewriteRule . /card/maintenance.html [R,L]But I'm getting a weird redirect error, like an endless loop of redirec... | Redirect all requests to the same directory |
<div class="s-prose js-post-body" itemprop="text">
<p>The <code>PATH</code> which Jenkins jobs start with isn't the same as the path which the Jenkins user sees in bash. In the Jenkins UI you can edit the environment varables (from Manage Jenkins/Configure System), and add the Docker folder to <code>PATH</code>:</p>
<p... | <div class="s-prose js-post-body" itemprop="text">
<p>I'm facing this weird problem , struggling to solve since almost couple of days.</p>
<p><strong>Working:</strong>
On mac mini command prompt , I switch to jenkins user and can run docker command without any problem.</p>
<p><strong>Not Working:</strong>
but when I ru... | docker: command not found ( mac mini ) only happens in jenkins shell step but work from command prompt |
Change the owner of all the files on the directory to your used ID within the container running as root, then exit the container and remove the directory.docker run --rm -v /target/new_directory 990210oliver/mycc.docker:v1 chown -R $(id -un):$(id -un) /target/new_directory
exit
rm -rf $HOME/new_directory | I used a docker image to run a program on our school's server using this command.docker run -t -i -v /target/new_directory 990210oliver/mycc.docker:v1 /bin/bashAfter I ran it it created a firectory on my account called new_directory. Now I don't have permissions to delete or modify the files.How do I remove this direct... | Can't Delete file created via Docker |
40
This helped me:
sudo nano /etc/resolv.conf
Set the nameserver to 8.8.8.8.
Restart the docker demon.
sudo systemctl restart docker
Share
Improve this answer
Follow
answered Sep 12, 2020 at 22... |
Since yesterday out of nowhere I'm not able to pull images anymore. And I can't login into docker with docker login. The same error appears:
Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
I'm no... | Docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection |
Try the following query:count(max_over_time(users_active_zipcode[$__range]) != 0)ShareFollowansweredSep 18, 2021 at 20:33Marcelo Ávila de OliveiraMarcelo Ávila de Oliveira20.9k33 gold badges4242 silver badges5353 bronze badgesAdd a comment| | I have a gauge in Prometheus which has a single label "zipcode", in order to track access to the application from various zipcodes. I use the following query to track the total number of series for this metric:count(count by (zipcode) (users_active_zipcode))This works fine but I would like to also track the number of z... | Show increase in Gauge label values over time |
To apply two different Y-axis to your graph you need to utilize field override.Go to panel options,+ Add field overrideselectFields returned by query,select query which produces results that you want to show on the right axis,With+ Add override propertyadd the following:Axis > Placement: RightStandard options > Unit: M... | I want to have two y axis with the same x axis time. For example I have one y axis with power in kW and the other y axis with SoC in percentage % ,This is the code that I have to plot the charging profiles with multiple graphs:with evses as (
Select evse_id
from evses
where cs_name in ($csName)
)
SELECT
$__time... | Two y axis in Grafana |
Revisiting Jenkins Docs:-I found that two params needed to be true in order to get status of triggered job to affect the pipelinepropagate : boolean (optional)
If enabled (default state), then the result of this step is that of the downstream build (e.g., success, unstable, failure, not built, or aborted). If disabled,... | In one of pipline’s stages, In the log I have a message with build failed , and then a little later i have a successful build message. I want the pipeline to stop when it see a failed build message and not continue, because if it continue, it will see it successful and it will not stop and we will not know that there i... | How to exit from the Jenkins pipeline if we have "BUILD FAILED" message |
i had the same issue , to resolve it you need to :Reformatrelease commit message ( remove [skip ci] from the message commit to be more Precisely)lunch a new build to generate new github tag if you use cloud build for it otherwise you need to remove the commit that contains [skip ci] and generate the tag manuallyAfter t... | I tried to configure a GCP cloud build trigger to automatically trigger a new build when a new tag is pushed to a github repository.However, even if a tag is created and pushed, the build won't trigger at all.My tag is automatically created and pushed fromsemantic-release pluginafter a successful merge.Trigger configur... | GCP Cloud Build trigger 'Push new tag' doesn't work properly |
It depends on what you mean by "sync". On the push side, as mentioned in "How to synchronize GitHub and Azure DevOps repository?", you might consider an Azure pipeline on your Azure DevOps project, assuming your Azure VM does push to said DevOps project.If your Git repository (on that Azure VM) is local, all you would ... | I have searched for a solution. No luck.I'm using VSC on MacOS. The HTML and Python code is on an Azure VM. VSC remote connection works just fine. Feels like a local development experience with all the fancy VSC features. However, I cannot configure sync to github. This cost me a day's development when I made a mistake... | Visual Studio Code using SSH to remote server - how to sync code base with github? |
You need to remove nargs=1 from the add_argument call. From the argparse docs:
Note that nargs=1 produces a list of one item. This is different from the default, in which the item is produced by itself.
You want to pass a string to s3.Bucket containing only the bucket name, not a string representation of a one item ... |
I have an input from the terminal being passed in bucket-one, which exists on Amazon Web Services’ S3, and when I attempt the following:
bucket = s3.Bucket(bucket_name)
bucket = object(bucket)
for obj in bucket.objects.all():
I come across an error: Bucket name must match the regex "^[a-zA-Z0-9.\-_]{1,255}$”. I even... | Python + Boto3 for AWS S3: Error - Bucket name must match the regex "^[a-zA-Z0-9.\-_]{1,255}$" |
I just have a big matrix of ints.So use a big matrix ofintint[][] ints = new int[100][500_000]; // uses about 200 MB each.If you haveList<List<Integer>>each one will use about 8x as much.I ran the following with-Xmx300mwhich is 1/7 the heap size you are using.public static void main(String... args) {
int[][] ints =... | This question already has answers here:Java large datastructure for storing a matrix(9 answers)Closed5 years ago.I have a big matrix (around 100x20.000.000) integer elements. I am storing this as an ArrayList of Lists. Unfortunately Java does not like that and I get an OutOfMemoryError.Is there a good way to store a bi... | Large matrixes in Java [duplicate] |
Two suggestions comes to mind, either Use ResultPath to Replace the Input with the Result, which allows you to
If you don't specify a ResultPath, the default behavior is as if you had specified "ResultPath": "$". Because this tells the state to replace the entire input with the result, the state input is completely r... |
How can I pass my input to my output in a task in AWS Step Functions?
I'm aware of this question, and the docs:
If the value of ResultPath is null, that means that the state’s own raw output is discarded and its raw input becomes its result.
But what I need is:
Given my input
{
"input": "my_input"
}
And my lam... | AWS Step Functions - Pass input to another task |
8
you can go to VCS menu then Git, Branches, then in Git Branches dialog click on item below local branches then checkout branches and then accept your default branches.
it will connect your project to it's default branch and you can commit your project.
Share
... |
I am new to Android Studio and have began developing a Navigation Drawer app.
After having made a mistake in a commit, I played around with the Version control's "Checkout Revision" and now I can no longer push my project onto Github due to a "Detached HEAD".
How can I fix this problem? My app runs perfectly fine in t... | Detached HEAD Issue in Android Studio |
As you guessed git can't prompt for your passphrase and hangs. The typical work-around is to use key-based ssh authentication. See http://help.github.com/working-with-key-passphrases/ for more details.
|
I want to work with the git tools integrated into Qt. So far I have set up a project and the git repository, and I can commit, status and all others from the IDE and from command line as well. But when I try to use pull or push from the gui it hangs and after 60 seconds gives me this error:
The command 'C:/Program Fil... | Using git push from Qt Creator |
No, it doesn't seem to be possible:All the tests int0001-init.share expecting a local path for template directoryNothing inbuiltin/init-db.cshows that an url might work.A commit like0c0ead (git 1.6.2, February 2009)only mentions a local path.Makefile: fix misdetection of relative pathnamesThe installation rules wanted ... | So to my understanding there is the possibility to initialize or clone a git repository viagit init --template=<template_dir>orgit clone <repository> --template=<template_dir>, which just copies everything in that given folder in the .git folder, which is useful for hooks, etc.So I was wondering, is there any possibili... | github repository as a git template directory |
When a gem is uploaded to RubyGems.org, the code is packaged with the gemspec in a .gem file (which is essentially an archive like a .zip or .tar.gz file). RubyGems.org then unpacks the gemspec and reads it to get the version information, etc.
When you specify a gem version in Bundler, it checks with RubyGems.org to s... |
I've been researching Bundler's page and RubyGem's page (and SO posts) but can't seem to figure this out.
In the Gemfile, you specify to Bundler which version of the Gem to use. That's about all I know as true...the rest is me guessing at what goes on behind the scenes.
So it looks like Bundler then goes to RubyGems.... | How does Bundler decipher which commit corresponds to a certain Gem version? |
Firstly,.infois a generic TLD, this makes DNS resolution messy.Consider using a protected TLD or your own registered one e.g.api.example.comYou should edit your/etc/hostswith a line similar to:<ip_address> api.infoor changingresolv.confto prioritise your internal DNS. | I have an nginx ingress running in minikube (addon enabled) with a couple pods and services, the ingress has the following configuration:apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: nginx
spec:
rules:
- host: api.info
http:
paths:
- backend:
serviceName: api-service
... | Ingress intra-cluster Kubernetes communication |
So, turns out that this problem arise only on the k8s cluster that's set up with kubeadm. I've fixed this issue by creating my own PersistentVolume and PersistentVolumeClaim as described in the link provided in the comments, but then faced another problems: the mariadb pod's container crashes as it can't create/bitnami... | I'm in the process of learning helm and trying to deploy the mariadb on my k8s cluster running on the DigitalOcean with 1 master and 2 worker nodes with the following command:helm install my-mariadb bitnami/mariadb --version 12.2.2This in turn created multiple resources on the cluster including the PersistenVolumeClaim... | Can't deploy the mariadb on k8s cluster with helm |
You want the equivalent of this in C++/CLI (C# code follows)
class Caller
{
static void Main(string[] args)
{
Callee callee = new Callee();
List<String> s = new List<String>();
callee.DoSomething(ref s);
Console.WriteLine(s.Count); // Prints out 0
}
}
public class Callee
... |
I have a C# .Net console application which calls a C++ .Net class library. However, when the following application is executed, the list becomes empty!!!
If I remove the line as indicated in the comment next to it, the code works. I don't understand the reason for this.
If I want to reallocate the memory for list in ... | Managed C++: Strings in List is not passed back to caller |
Take a look at the documentation here:http://code.google.com/appengine/docs/adminconsole/instances.html#Instance_BillingIn general, instance usage is billed on an hourly basis based on the
instance's uptime. Billing begins when the instance starts and ends
fifteen minutes after the instance shuts down.Min billable ... | I have a google app engine where I have scheduled several cron jobs as database cleanup tasks, but these cron jobs are burning through all my instance hours (front or back), even though the actual processing time of each of these jobs is almost nothing.Am I doing something wrong? Is there a way I can configure these ba... | How can I prevent my Google App Engine cron jobs from burning through all my instance hours? |
Ended up with the following querysum by (instance,name) (windows_service_state{,state!="running"} == 1) + on (instance,name) sum by (instance,name) (windows_service_start_mode{start_mode="auto"} == 1) | Im trying to join two prometheus queries where the goal is to find windows services which are on statenot runningand its start mode isautoI have created the following query but no result:windows_service_state{environment="test",state!="running"} / on(instance) group_left(environment,job,name,operating_system) windows_... | Join two prometheus queries |
Mac OS X 10.6 (and earlier) came with IPFW, a port of FreeBSD’s
stateful firewall[1]. IPFW was deprecated in OS X 10.7, and was
completely removed in OS X 10.10; it was replaced with PF. PF (Packet
Filter) is OpenBSD’s system for filtering TCP/IP traffic and doing
Network Address Translation[2]. PF in OS X, how... | Using Mac OS, how to open port (3005) to specific IP, so only that IP can access it, using CLI and firewall? Doing on Linux Ubuntu server I am using the UFW service which is simple. How to do the same thing using MacOS with Nodejs app using express? | How to open port for specific IP? |
Couchbase Server is a very good replacement for Oracle Coherence particularly for enterprise class applications. Orbitz is a great example where large number of nodes of Coherence were replaced by 70 nodes of Couchbase.You can read more about the Coherence replacement here:http://gigaom.com/cloud/balancing-oracle-and-o... | Closed. This question isopinion-based. It is not currently accepting answers.Want to improve this question?Update the question so it can be answered with facts and citations byediting this post.Closed9 years ago.Improve this questionI'm looking for an opinion on replacing existing Data Grid (i.e. Oracle Coherence) with... | Can NoSQL (e.g. MongoDB) replace Data Grid solutions e.g. Oracle Coherence [closed] |
It was because i created the user using command :
CREATE USER 'user'@'%' IDENTIFIED BY 'passwd';
and i was deleting it using :
drop user 'user'@'localhost';
and i should have used this command :
drop user 'user'@'%';
|
I have created a user in mysql. Now i want to delete the user ? How to do that? I am getting this error :
ERROR 1396 (HY000): Operation DROP USER failed for 'user'@'localhost'
I am using this command :
DROP USER 'user'@'localhost';
Its an amazon machine.
Thanks
| ERROR 1396 (HY000): Operation DROP USER failed for 'user'@'localhost' |
You could usebusyboxto get a shell inside a distroless container:FROM gcr.io/distroless/base
...
COPY --from=amd64/busybox:1.31.1 /bin/busybox /busybox/busybox
RUN ["/busybox/busybox", "--install", "/bin"]
CMD ["/bin/sh", "-c", "java -version"]You can find an example to this kind ofDockerfilehere.But I don't think t... | For context, I'm building a java application compiled to GraalVM native image running on adistrolessdocker image in Kubernetes.I've been trying to do something rather simple and hit a wall: I'd like to set custom heap size limits per environment via-XmxNNN. To do that, the options with which I'd like to run the applica... | Passing customizable options to a GraalVM image execution in a distroless environment |
Try thesingle_value<formater>plugin:https://docs.fluentd.org/formatter/single_value<match app.tom1>
@type file
path /logs/tom1
<format>
@type single_value
message_key message
</format>
</match> | I want to output the kubernetes log to a file.
but, I could only output it as json data.
I want to output only "message" part to file.How do I choose "message" to print?
Which filter should I choose?<match output_tag>
@type rewrite_tag_filter
<rule>
key $['kubernetes']['labels']['app']
pattern ^(.+)$
ta... | Using fluentd, I want to output only one key data from json data |
I enabled CORS in the API Gateway console and added 'Access-Control-Allow-Origin' to "Access-Control-Allow-Headers" and clicked "Enable CORS and replace existing CORS Header" button. It was a success.OK, these are two entirely separate headers.Access-Control-Allow-Originis a response header which must be sent in respon... | I am using AWS API Gateway and Lambda Function for one of my applications.When I send a POST request to API Gateway, it results in an error:'Access-Control-Allow-Origin' header is present on the requested
resource. Origin 'http://localhost:8888' is therefore not allowed
access. The response had HTTP status code 400... | CORS configuration in AWS API Gateway |
If you are using ssh keys to access github and ssh keys to access AWS EC2 instances then you could use the same set of keys to access both resourcesHowever, this is not usually considered to be a great idea for security | In Jenkins, we've setup github.com credentials as a authentication for Jenkins login (using the GitHub Authentication Plugin).Along the same lines, we would like to setup AWS authentication through github.com credentials.Is there an easy way to setup AWS login authentication through github.com credentials? | AWS login authentication through github.com credentails |
It looks as thoughthe project is missing a gemspec and one won't be getting added.You should be able to clone the project into your vendor/gems directory. You will need to create a mechanize.gemspec file, too.
You would then require it in your Gemfile using something like.gem 'mechanize', :path => 'vendor/ge... | Why can'tbundlerlocate the Mechanize gem?The following is in my Rails project's Gemfile:gem 'mechanize', :git => 'git://github.com/tenderlove/mechanize.git'Running bundle install throws the following error:Updating git://github.com/tenderlove/mechanize.git
Fetching source index for http://rubygems.org/
Could not find g... | Why can't Bundler locate this gem? |
If you haven't renamed already, you can just push all pending changes, rename, and just clone again.If you've already renamed, you should just update the origin on your local repos:git remote set-url origin git://github.com/youruser/yourrepoShareFollowansweredJun 24, 2013 at 5:14SheetJSSheetJS22.7k1212 gold badges6565 ... | I recently had an idea for a project. I found a project identical to the one I want to create on Github. I got very lucky because the person just started so there is a base, but everything is very raw and perfect for adding onto.I made a fork of the project and made a big mistake. After I cloned the fork and committed ... | Change Fork Name For Github |
0
A Docker registry is, as said in the Docker documentation :
[...] a hosted service containing repositories of images which responds to the Registry API.
There is no explicit definition in the documentation about a Docker pool. The part of the documentation where you can... |
I was asked this question in one interview and was not able to answer it. Also didn't find any relevant information regarding it.
| What is difference between docker pool and docker registry? |
Open your .htaccess file in your project root.
UncommentRewriteBase /drupaland change it to your project name likeRewriteBase /myprojectname.
CommentRewriteBase /Goto /admin/config/search/clean-urls
There will be an option to Enable clean URLs . | I just installed and started using Drupal 7, and I followed the instructions to turn on Clean Urls. I clicked "Run the Clean URL test" button, but it failed to return any results. It loads up something and then refreshes the page. There is no option to enable clean url as said in the instructions. Can somebody help ? | Enabling clean URLs (Drupal 7) |
1
It is normal to disable SWAP memory in ALL applications or services that are used in production.
SWAP memory is based on using the hard disk as a substitute when the RAM is full. This may seem beneficial but the RAM has a speed from 2.1 GB/s the oldest to 25.6 GB/s the ne... |
I am investigating a topic, which I will call “Docker swarm and memory management”.
It states in this article here that docker does not recommend using swap memory, but I can’t find (googling) a place where disadvantages of using swap memory in docker context is explained.
Can a kind soul enlighten me? :-)
| Why is using host memory recommended by docker |
ServiceAffinity places pods on nodes based on the service running on that pod. Placing pods of the same service on the same or co-located nodes can lead to higher efficiency.It's a concept of openshift and not of open source kubernetes.https://docs.openshift.com/container-platform/3.9/admin_guide/scheduling/scheduler.h... | SituationWhen a deployment fails on our OpenShift 3.11 instance because of aFailed Schedulingerror event, a message comparable to the following shown:Failed Scheduling 0/11 nodes are available: 10 CheckServiceAffinity, 2 ExistingPodsAntiAffinityRulesNotMatch, 2 MatchInterPodAffinity, 5 MatchNodeSelector.In the above er... | What is the concept of Service Affinity in OpenShift? |
Create docker group if not exist :sudo groupadd dockerAdd user to docker group :sudo usermod -aG docker ${USER}Change docker.sock to new permission :sudo chmod 666 /var/run/docker.sockFinally restart docker daemon service :sudo systemctl restart dockerShareFollowansweredJun 22, 2021 at 12:12JavadJavad39144 silver badge... | Trying to transform a project in gitlab to docker image. The gitlab is selfhosted. This is the error I get:Running with gitlab-runner 13.12.0 (7a6612da)
on test -KnwQXuT
Preparing the "docker" executor
ERROR: Failed to remove network for build
ERROR: Preparation failed: Got permission denied while trying to connect to ... | Preparation failed: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock |
As the command to run, try:/bin/bash -c 'test -e failurefile && retrycommand -someflag -etc'It runs retrycommand if failurefile exists | I have a cron job that runs every hour. It accesses an xml feed. If the xml feed is unvailable (which seems to happen once a day or so) it creates a "failure" file. This "failure" file has some metadata in it and is erased at the next hour when the script runs again and the XML feed works again.What I want is to mak... | I want to make a conditional cronjob |
Because RDS is a managed service they limit what you are able to do with it. According to the RDS documentation for MSSQL this includes the following restrictions:
The following server-level roles are not currently available in Amazon
RDS:
bulkadmin
dbcreator
diskadmin
securityadmin
serveradmin
sysadmin
And also:
... |
I started using Amazon RDS and I am trying to link two of my databases together but I don't have the appropriate permissions to do it. When I setup the database for the first time is only letting me setup a regular user without sysadmin rights. Is there anyway of getting sysadmin rights? Also, there is a user rdsa (wi... | How to setup a user with sysadmin rights on Amazon RDS |
3
Fixing your pull request
Are you sure that nobody else has reviewed the changes in the pull request with the unintended commit?
If you're sure, then you can force-push HEAD^ of your local master to your GitHub master, they way you yourself found:
git push -f origin HEAD^:... |
So, I'm new to Git and Github.
I'm contributing to this project and I fixed an issue.
I wasn't aware that I shouldn't make a pull request from master branch.
Now my pull request is pending. And I want to make another pull request of some other issue.
This is what I did.
Pushed changes to master branch and made a pull ... | I made a pull request from my master branch. Now that request is pending and I want to submit another request |
If you are using bundler for your application then you don't need to use "/usr/local/bin/rake" as a path for rake.you can just usebundle exec rakeso your new script will be#!/bin/sh
source /usr/local/rvm/scripts/rvm
cd /home/p1r65759/apps/abbc/
bundle exec rake refresh_events RAILS_ENV=productionbundle exec will work ... | I've upgraded to rails 3.0.9 which has introduced the rake issues. I've gotten it all resolved except for a problem with a cron job.This used to work:#!/bin/sh
source /usr/local/rvm/scripts/rvm
cd /home/p1r65759/apps/abbc/
/usr/local/bin/rake refresh_events RAILS_ENV=productionBut now I get this error:
You have alread... | cron and bundle exec problem |
I believe npm process get killed with error 137 on docker is usually caused by out of memory error. You can try adding swap file (or add more RAM) to test this.
|
Docker noob here so bear with me.
I have a VPS with dokku configured, it has multiple apps already running.
I am trying to add a fairly complex app at present. But docker just fails with the following error.
From what I understand I need to update the packages the error is given. Problem is they are needed by some ot... | Dokku/Docker deploying apps fails |
Line 3 and 4 are for redirecting to https.<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .... | I would like to force https connection through .htaccess in apache for vue.js history:Vue history requires .htaccess like this:<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [... | Force https with vue history in apache |
Type in git status and see what it tells you. It'll either tell you that your local version is ahead and you need to push it first, or that your online-repository is ahead and you need to pull the latest changes first.You may want to switch to your master branch and pull the latest changes firstgit checkout mastergit p... | I am very new to Git and I have done the following:Created a new branch from master usinggit checkout -b vijayvThen, I made changes to my code, now committed the same usinggit commit -a -m "UI Changes"Well, the code changes took so long that the contents in the master branch might have changed by others.Now I need to s... | Further steps required after making local changes in Git |
But when I run it, this is my output (noticed the different IP of the
container)Since this a Windows machine, I assume that you're usingDocker ToolboxDocker for Windows.10.0.75.2is the IP of theboot2dockervirtual machine.If you are using Windows or Mac OS, you will need some form of virtualization in
order to run Doc... | I'm followingDigital Ocean's tutorialon how to start a nginx docker container (Currently on Step 4). Currently this is their output:$ docker run --name docker-nginx -p 80:80 -d nginx
d3ccb73a91985651ec61231bca9f9c716f0dec807e354a29eeef2144f883a01c
$ docker ps
CONTAINER ID IMAGE COMMAND ... | My docker container isn't starting on localhost (0.0.0.0) on Docker for Windows (Native using Hyper-V) |
Update Nov. 2020: you now have "Custom notification controls"
This week we are giving you more control over the types of content that you are notified about on GitHub:
Watching a repository can often be a double-edged sword.
You want to stay up to date with a project, but if you have a specific interest or role with... |
Github provides notifications via mail or web, based on watched repos. But is there a way to get more in detail? Like only watch a specific pull requet or assigned issue? I feel like i get spammed from comments on other pull requests that have nothing to do with me.
| How to get specific github notifications like pull requests or assigned issues? |
According to Steve Ward at GitHub Support:
You should be able to hit F5 in GitHub Desktop to refresh the repository and fetch any new branches from the remote repository. There currently aren't any animations for this process, but it should work without issue. [...] we automatically fetch new branches every five minu... |
When I first clone a repo using GitHub Desktop (windows version), I'm able to see all of the branches and can checkout the branches.
However, if another contributor creates a new remote branch (after I've done the clone), GitHub Desktop isn't able to fetch and checkout the new branches. The branches are visible via th... | Can't checkout remote branch using GitHub Desktop |
Here you go:SELECT CONCAT(
"INSERT INTO `input` (`input_id`, `input_type`) VALUES(",
input_id,
", '",
input_type,
"');"
)
AS data
FROM input | phpMyAdmin has a feature calledexport.
It will export table structure
and its data. The output will be something like this:--
-- Table structure for table `input`
--
CREATE TABLE IF NOT EXISTS `input` (
`input_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`input_type` varchar(255) COLLATE utf8_general_ci DEFAULT ... | How to export sql a table structure and data in mysql? |
Google Container Engine health checks are recognizable by the HTTP request header 'user-agent' having the valueGoogleHC/1.0.Example Hapi.js code:if ((request.headers['user-agent'] || '').toLowerCase().startsWith('googlehc')) {
return reply('Healthy')
} | OnGoogle Container Engine, how do I detect that requests to my Web service, running behind an L7 load balancer, are in fact health checks? | Google Container Engine - How do I detect that requests to my service are health checks? |
To redirect fromolddomain/downloads/foobartonewdomain/downloads/foobaryou can use the following Redirect :Redirect /downloads/ http://newdomain.com/downloads/ | I was just wondering if it is possible to redirect from old domain to new if condition is matched. here is what I am trying to achieve.http://olddomain.com/downloads/anyfile.anyext->http://newdomain.com/downloads/anyfile.anyextORhttp://olddomain.com/downloads/anysubfolder/anyfile.anyext->http://newdomain.com/downloads/... | htaccess: How to redirect from old domain to new with folder condition |
As mentioned in another answer, AWS Data Pipeline only allows you to dump tables and not the entire DB. If you really want to use pg_dump to dump the entire contents of your DB to S3 using AWS CloudFormation, you can
use Lambda-backed custom resources. Going down that route, you'll have to write a Lambda function tha... |
Basically I want to pg_dump my RDS database to S3 using AWS Data Pipeline,
I am not 100% sure if this is possible I got up to the stage where the SqlDataNode wants a selectQuery at which point i am wondering what to do.
Below is my template so far:
AWSTemplateFormatVersion: "2010-05-15"
Description: RDS to S3 Dump
... | Is it possible to dump a RDS database to S3 using AWS Data Pipeline? |
You can run a serverless GraphQL onGoogle Cloud Functionsor Firebase which is the closest thing toAWS AppSyncavailable today on GCP.ShareFolloweditedFeb 2, 2023 at 15:13double-beep5,2531717 gold badges3636 silver badges4343 bronze badgesansweredMay 20, 2020 at 23:22iTechiTech18.3k44 gold badges5959 silver badges8080 br... | I'm using AWS AppSync (GraphQL) for an API that is connected to Lambda and S3. Now, we are planning to migrate this to Google Cloud Platform. Could someone help me understand if there are any Services/options available in Google Cloud Platform that provides similar services like AWS AppSync?Thanks. | AWS AppSync Alternative in GCP |
I have a solution with a patched ClamAV.
Must use ClamAV < 0.102.0 because of the splitting of scanning and detection: detected files can't be scanned because the path is observed from the container point of view
OnAccessMount doesn't work because you have to list each mount in ClamAV config then restart and docker c... |
I need to implement anti-virus on-access scanning solution for files inside docker containers using open-source software. Clamav On-Access works fine but have some requirements and limitations:
require CAP_SYS_ADMIN capability for working inside a container
needs to be run per-container, not per-host
require 850Mb r... | Anti-virus in docker container - does fanotify works between host and container? |
i also meet the trouble as you mentioned above, but i don't know reason. I'm using filebeat 7.8.0. my config is the following:filebeat.autodiscover:
providers:
- type: docker
templates:
- condition:
contains:
docker.container.image: log:latest
config:
... | I am trying to setupfilebeat, but itnot harvesting logsat all from the given log file path.After lot of research, I came to know thatdata.json in registry folder is emptywhich is why filebeat is unable to read logs from log file.Can someone please suggest how to fix this?Note:- there is no error in filebeat logs saying... | Filebeat registry data.json is empty |
The following scenarios can result in this error message:
Instance id is invalid (in the comments you have verified it isn't)
Instance is in a different region (in the comments you have verified it isn't)
Instance is not currently in the Running state
Instance does not have the AWS SSM agent installed and running.
in... |
The below is the code which i am running from python to execute commands in aws ec2 instance
import boto3
ec2 = boto3.client('ssm',region_name='us-east-1',aws_access_key_id='xxxxxxxxxxxxxxx',aws_secret_access_key='xxxxxxxxx')
a = ec2.send_command(InstanceIds=ids, DocumentName='AWS-RunShellScript', Comment='abcdabcd', ... | InvalidInstanceId: An error occurred (InvalidInstanceId) when calling the SendCommand operation |
Look at the implementation ofmake_shared(). It does this allocates a new object and creates ashared_ptrout of it. | Is it possible to write a smart pointer which allocates the object itself in its constructor - instead of the developer having to callnew? In other words, instead of writing:std::unique_ptr<myClass> my_ptr(new myClass(arg1, arg2))...one could write:std::smarter_ptr<myClass> my_ptr(arg1, arg2)Is the language syntax cap... | Why can't a smart pointer call new() for me in its constructor? |
Is there any way I could just simply download theme, upload it on my repository, and make MD file there?A theme contains layouts, assets and collection/.md files. They can be placed in theirrespective directories. So the answer is 'yes'. | I made a repository on Github named username.github.ioThen I uploaded a Jekyll theme that I have downloaded. After that I edited URL on config.yml file.I expected a website with a new theme but it does not show up.My question is do I must go through Ruby and Bundler process using CMD ?
Is there any way I could just s... | How to apply Jekyll theme on Github Pages? |
You need a new rule for that redirect:Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{THE_REQUEST} /(?:index\.php)?\?search=([^\s&]+) [NC]
RewriteRule ^ search/%1? [R=302,L,NE]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^search/(.*)$ /?search=$... | I have following URL [1]:www.domain.com/?search=somequerywhich i want to redirect to [2]www.domain.com/search/somequeryI am using following code in my.htaccess:Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^search/(... | mod_rewrite - force redirecting to rewritten URL |
1
Try this, I hope this may help you.
Dockerfile:
FROM ubuntu:18.10
RUN apt-get update -y && \
apt-get install -y python-pip python-dev
# Set the working directory to /usr/src/app
WORKDIR /usr/src/app
# Copy the current directory contents into the container at /usr/... |
Getting error on Kubernetes container, No module named 'requests' even though I installed it using pip and also test multiple Docker images.
Docker file:-
FROM jfloff/alpine-python:2.7
MAINTAINER "Gaurav Agnihotri"
#choosing /usr/src/app as working directory
WORKDIR /usr/src/app
# Mentioned python module name to ... | No module error requests in docker container |
Your approach isn't far from what you want to achieve. I believe what you are missing is this:
According to: https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-an-image
in order to use the image you have built for your CI you will first need to add it to runner's config.toml file as a service.
Once... |
Could you tell me if I do it in correct way:
I have create Docker image with all stuff which is need for running my tests in gitlab CI
I push it to gitlab registry
I can see on gitlab page in section Registry my image - gitlablogin/projectname
I want to use this image for CI, so in .gitlab-ci.yml I add image: gitlab... | use image from gitlab Registry in CI |
If I get it right, you've got a single cron task for all the users, running at some frequency, trying to process the data of every user in a single shot.Did you try issuingset_time_limit(0);at the beginning of your code?Also, if the task is resource demanding, did you consider creating a separate cron task for every N ... | I have a service likebackupify. Which Downloads data from different social media platforms, Currently i have about 2500 active users, for each user a script runs which gets data from facebook and stores them on Amazon S3, My server is Ec2 Instance on AWS.I have entries in table like 900 entries for facebook users, Ther... | Cron Jobs Managment for large amount of users |
10
You can clone the repo with -n to not checkout any files.
--depth 1 will truncate the history of each file to their last commit
git clone -n git://path/to/repo.git --depth 1
cd repo
Checkout only the files you need to change for your commit
git checkout HEAD file.ex... |
My question is quite simple, however I don't find any answer on StackOverflow or elsewhere (except this question but without being answered):
Does anyone know a way to commit a GIT change "directly" to a remote repository (Github in my case) without cloning the repository in local and having to commit first to local r... | Commit git to remote repository without cloning any local repository |
Something is very odd here. Why do you have the virtualenv content next to your Dockerfile?The image you are building fromcreates the virtualenv on /var/app (within the container, yes?) for you.
I believe that the ONBUILD command copies it (or parts of it) over and corrupt the rest of the process, making the /var/app/b... | Trying to follow a few[1][2] simple Docker tutorials via AWS am and getting the following error:> docker build -t my-app-image .
Sending build context to Docker daemon 94.49 MB
Step 1 : FROM amazon/aws-eb-python:3.4.2-onbuild-3.5.1
# Executing 2 build triggers...
Step 1 : ADD . ... | Docker Build can't find pip |
Solution for this was to create another account and generate a PAT from it with admin access.
Then I cloned the app in a separate directory on the agent. Modified what I needed to and was able to create my tags and everything using git bash.
|
I have a DevOps pipeline that is tasked with updating a file, and committing it back to a protected branch in Github. Checking out from the repo works just fine. I thought I had the right permission setup, but it doesn't work.
I have allowed azure-pipelines the permissions here:
I have specified the following to pres... | Pushing to Protected Github Branch from Azure DevOps pipeline |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.