Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
Our developer builds are set to keep the versions at "0.0.0.0", but our build server marks the build based on a pre-configured version and automagically generated build string. "1.0.3.xxx". Your build server doesn't allow for this?ShareFollowansweredMar 10, 2011 at 20:38Ritch MeltonRitch Melton11.5k44 gold badges4141 s...
We have an automated build and QA process for our software, using tfs/teambuild and msbuild, and we want to be able to know (for audit purposes) whether a component has gone through that process or not.For example, if a library is installed on a user's machine, I'd like to be able to inspect it in some way to tell that...
Teambuild / MSBuild and stamping QA-approved builds
Re-creating dataset and running exact same query works.I think queries that has been ran on existing dataset transforms the data. Please let me know if anyone knows why this is so.
I am running a query that works perfectly on AWS Athena however when I use athena as a data source from quicksight and tries to run query it keeps on giving meQuickSight could not generate any output column after applying transformationerror message.Here is my query:WITH register as ( select created_at as register_...
QuickSight could not generate any output column after applying transformation Error
You can't useSystem.arraycopyto store data in something that's not an array. As it statesin the documentation:... if any of the following is true, anArrayStoreExceptionis thrown and the destination is not modified:Thesrcargument refers to an object that is not an array.Thedestargument refers to an object that is not an...
My java code:public class TestArray { public static void main(String[] args) { final String[] cols = { "a", "b", "c", "d" }; List<String> columns = new ArrayList<>(4); // for (int i = 1; i < cols.length - 1; i++) { // columns.add(cols[i]); // } System.arraycopy(col...
Java - Sonar - Arrays should not be copied using loops
using the “=” modifier it is possible to define an exact match of URI and location. If an exact match is found, the search terminates.so you can use this configure :location =/index.html { add_header "Cache-Control" "no-cache" ; } location / { rewrite ^(.*) /index.html break; }you can find more informa...
I have the following config (for an Angular app):location / { try_files $uri /index.html; add_header "Cache-Control" "no-cache" ; }Now I would like to add that header only forindex.html, but not for any other files. How to do that?
Nginx - how to add header for index.html when using try_files
Yes, that is possible. For writing in BigQuery without using a window, you will need tousemethodequal STREAMING_INSERTS or STORAGE_WRITE_API (maybe withuse_at_least_onceset toTruefor even lower latency, but with risk of duplicates).For the rest of the pipeline, you just need to have two branches. Something like this:ms...
I am trying to think of how to architect some data pipeline needs, and I simply want to know if the following is possible:Can I create an Apache Beam pipeline that can stream data fully real time while also aggregating into windows? Specifically, I would like to:Read data in from a Pub/Sub subscription.Send that data o...
Is it possible to create a Beam pipeline with multiple windowing needs
2 Read mlock(2) man page. It requires root privilege or at least CAP_IPC_LOCK capability. See capabilities(7) On most Android systems it is not easy to root them. And mlock apply only to the current process virtual space (not to other processes address space). Read about...
a-swapper enables swap in android devices in which it uses the SD card as the swap space (http://code.google.com/p/a-swapper/). Can I make an application that prevents specific current running applications to be swapped into the swap space using mlock() or is there any other approach on this? also, the busybox default...
Utilizing mlock() in android applications
3 You are missing git commit to commit your files. Share Improve this answer Follow edited May 12, 2013 at 16:11 Samy Dindane 18.3k33 gold badges4141 silver badges5050 bronze badges ...
I am new on GitHub, trying to push one of my projects to it. This is what I did (I have done with SSH and git config --global such things) # cd to my project dir git init # Created a readme.txt git add readme.txt git add . git remote add origin <address of repository> git push origin master t...
Problems on pushing my project to Github
7 According to the Docker compose releases the latest version is 1.22.0 which is the one you have installed. You have installed the latest docker compose, it was released 8 days ago. Update: In order to change your Docker compose file version just replace the line version, ...
I have docker and docker toolbox installed on Win10 machine. docker -v Docker version 18.06.0-ce, build 0ffa825 docker-compose -v docker-compose version 1.22.0, build f46880fe My docker version is up-to-date but the composer is not. Any idea how can I update the composer version.
How to update docker-compose version on windows 10
Personal access tokenis a way to go
I'm trying to use docker-compose to fetch, build and run multiple services from their git repositories. I made a simple docker-compose.yml to test it:version: '3' services: test-service: build:[email protected]:dan-poltherm/partservicego.git ports: - 8005:443It seems that docker-compose can't fetch rep...
Docker Compose: cannot run ssh: No such file or directory
you just have to activate one of the following rules on your Java quality profile, and the files w/o a header will have a violation after the next analysis:"Header" (Checkstyle: com.puppycrawl.tools.checkstyle.checks.header.HeaderCheck)"Regexp Header" (Checkstyle: com.puppycrawl.tools.checkstyle.checks.header.RegexpHea...
Is there a Sonar plugin available, which is able to identify Java files without a license/copyright header?
Sonar violation to show Java files without license/copyright information?
Assuming these URLs don't map to physical directories.Using mod_rewrite near the top of the.htaccessfile:RewriteEngine On # Remove trailing slash from URL of the form "/<string>/<number>/" RewriteRule ^([\w-]+/\d+)/$ /$1 [R=302,L]
i need to remove the last / from all urlswhats is the .htaccess code why i need to use to: From this:> alerta-estafa.com/numeros-de-telefono/699511414/To this:> alerta-estafa.com/numeros-de-telefono/699511414How i can do it?Thanks you!
how to redirect with htaccess from url.com/folder/path/ to url.com/folder/path
/home/user/demo.my-example.com/sinatra/config.rurequire 'rubygems' Gem.clear_paths require "./stripe" run StripeApp
I'm trying to run a very simple Sinatra app using my existing Nginx & Passenger setup. I'm familiar with running Rails on Passenger but this is my first time setting up Sinatra.I've installed Sinatra through bundler and RVM. Take a look at my configuration and tell me what I'm doing wrong.Nginx conf:server { listen ...
How to run Sinatra App in Passenger with Nginx?
5 rabbitmqadmin uses the HTTP API, so it is enough to reach the http endpoint. rabbitmqctl uses the erlang distribution, and in order to work it needs the same .erlang.cookie installed on the remote machine. you can use -n paramenter in this way: rabbitmqctl -n rabbit@remot...
I have rabbitmq docker container, running on different machine. What I want to do is execute rabbitmqctl command using shell script from another machine. I am newbie to rabbitmq, need guidance of experts I have used rabbitmqadmin with the option of -H to connect to remote server. I am able to connect and perform rabbi...
How to run rabbitmqctl commands on remote machine?
6 Interesting problem; don't think I've tried to solve this before. I'm thinking you'll need to have a second request going from your front-facing PHP script to your server. This could be a simple call to http://localhost/test.php. If you use fopen-wrappers, you could u...
So, I'm looking for something more efficient than this: <?php ob_start(); include 'test.php'; $content = ob_get_contents(); file_put_contents('test.html', $content); echo $content; ?> The problems with the above: Client doesn't receive anything until the entire page is rendered File might be enormous, so I'd rathe...
Streaming output to a file and the browser
+100So fork/pull should be kept separate from git flow?Yes:one (Gitflow) is amerge workflow(what to merge from where to where)the other (GitHub fork/pull request) is apublication workflow(what to push and where)TheAtlassian tutorial on workflowshas therefore two sections:one forgitflowone forforking workflowJust want t...
I am struggling to understand how Git flow works with Github.Github allows the fork/pull request model of integrating changes, where the entire upstream repo and all its branches are copied into the fork.Then using git flow, I would branch off of a dev branch say and then when finished my changes would be merged into t...
Git flow and Github
You don't declarestages order, so gitlab pipeline don't know what order are expected.At the beginning of.gitlab-ci.yamlfile add something like this (or whatever order you want):stages: - deploy - test - build # rest of you file...Alternatively you can useneedsto build jobs relation.ShareFollowansweredFeb 5, 2021...
I have the problem, that I want to trigger another pipeline (B) in antoher project (B), only when the deploy job in pipeline (A) is finished. But my configuration starts the second pipeline as soon as the deploy job in pipeline (A) starts. How can I do it, that the second pipeline is triggered, only when the deploy job...
How to trigger pipelines in GitLab CI
So, eventually what I found, after trying all the answers and more, was that while the site.conf #1 was working with the logged-in users for PDF files with URLs starting with https://, it was not working with previous uploads that used to have the http:// in the URL. I had to update the wp_posts table tohttps://example...
I am running a website and I would like to protect all the PDF files inside the WordPress uploads folder from external access and hotlinking.I am already using a user authentication to protect the posts attached to these files, but the user authentication doesn't protect the direct link to the PDF file or the indexing ...
PDF files protection from external access. Accessible only to authenticated users. WordPress uploads directory
at this point, there's nothing native to Elasticsearch that would provide this sorry to sayShareFollowansweredAug 23, 2021 at 3:11warkolmwarkolm1,98911 gold badge44 silver badges1212 bronze badgesAdd a comment|
I am aware of the ingest pipeline for ingested documents, or the workaround of marking documents as deleted / moving them to a different index with a rollover policy.But is there a way to directly get notified and react upon deleted documents? (without making changes to the application side)
Is there a way to get notified of deleted documents in ElasticSearch?
That list looks about right. The advantage of splitting up your stack to separate containers is that you can (in many cases) use off-the-shelf official images, and only have to provide the right configuration to make them work together. In addition, you'd be able to upgrade the components (containers) separately. Note...
I'm trying to "dockerize" my java web application and finally run the docker image on EC2. My application is a WAR file and connects to a database. There is also a python script which the application calls via REST. The python side uses the tornado webserver Question 1: Should I have the following Docker containers? ...
how many docker containers should a java web app w/ database have?
Try:RewriteCond %{THE_REQUEST} \ /([^\?\ .]*)\.(?:\?|\ |$) RewriteRule ^ /%1 [L,R=301]
Having a Drupal here. In that Drupal is a folder with another Drupal. So in another Drupal's .htacces the base was rewritten like thisRewrite Base /another-drupaland everything's fine.Now, printed invitations were send to customers to look at the another Drupal via its URLadrupal.com/another-drupal.And like right now t...
How to redirect from URL with a trailing dot?
I think InfluxDB and Grafana are really a good starting point to collect data from your services. You'll also need to integrate some type of metrics library and an exporter in your code. On Java you could use Micrometer (https://micrometer.io/) and Prometheus. Here you can find more information about them:https://micro...
we have a lot of jobs (for example batch jobs), that are executed each day. Therefor we’d like to have an overview of all jobs.→ track start time and end time (–> complete runtime).All of these infos should be available in a visualisation.Is InflixDB with Grafana a good solution for this or do you recommend another app...
track a lot of batch jobs (start and end time)
Found it.curl https://kubernetes.default.svc/api/v1/namespaces/XXX/pods?labelSelector=my-label%3Dyes --silent --header "Authorization: Bearer $TOKEN" --insecure
I have namespace with few deployments. One of the deployments has a specific label (my-label=yes). I want to get all the pods with this label.This is how it done withkubectl:kdev get pods -l my-label=yesit's working.Now I want to do it with Kubernetes API. This is the closest point I get:curl https://kubernetes.default...
Kubernetes API: list pods with a label
1 You appear to have your ports back-to-front. In your docker-compose.yml file, you've set host port 8080 and container port 80 (👍) but your v-host is listening on container port 8080. I'm not actually seeing any reason for you to override the default site config nor for...
I'm new to Docker. I'm trying to change Document Root for my app. my-app directory has my php codes. Tree Project - docker-compose.yml - html - my-app - php - 000-default.conf - Dockerfile docker-compose.yml version: "3" services: php: build: ./php/ # image: php:7.2-apache volumes: ...
How to change Document Root with Docker
This doesn't do what you think it does: v->assign(2, new float[2]); One array of size 2 is allocated, then two pointers to it are stored in the vector. When you delete, the same pointer is deleted twice. If you want a multidimensional array, you could try std::vector< std::array< float, 2 > >. Doing new and delete yo...
I have a problem when trying to delete a vector of pointers: std::vector<float*> *v; v = new std::vector<float*>; v->assign(2, new float[2]); for (int i = 0; i < 2; ++i) { delete[] v->at(i); } delete v; I'm deleting each element from the whole vector, but I still get an assert. Can you please tell me what I'm d...
std::vector memory allocation issue
I think I figured it out. It looks like the issue is that VaryByParam, when the input parameter is an object, uses ToString() on that object to determine it's uniqueness. So this leaves two options: Overriding ToString() to provide a unique identifier. Passing a unique identifier as an additional parameter: <% Html...
I'm attempting to use the new partial page caching available in ASP.NET MVC 3. In my view, I'm using: <% Html.RenderAction("RenderContent", Model); %> Which calls the controller method: [Authorize] [OutputCache(Duration = 6000, VaryByParam = "*", VaryByCustom = "browser")] public ActionResult RenderContent(Content c...
Partial Page Caching and VaryByParam in ASP.NET MVC 3
The pod gcp-spring-app-67767bd649-jvg9h is from your first invocation of the command. (Look at the 'age') The second pod is from your second invocation.Actually the deprecation notice does not prevent the execution, creating a job, which then creates the pod with the random suffix.
I am learning kubernetes ing GCP. I was trying out steps given in thistutorial.While doing deployment to cluster , we are doingkubectl run gcp-spring-app --image=gcr.io/secondproject-275119/gcp-app-image --port=9080which gives below errorkubectl run --generator=deployment/apps.v1 is DEPRECATED and will be removed in a ...
kubectl run command creates mulitple pods instead of one
In your .ebextensions/myoptions.config file: option_settings: - option_name: MyServiceUrl value: change me This will add the "MyServiceUrl" option in your EB Environment Properties section (as you're seeing already). When deployed, this will add the following to your Web.Config file: <appSettings> <add key="M...
How can I read the Environment Properties from my AWS Elastic Beanstalk Application found here: Configuration > Software Configuration > Environment Properties None of the following approaches work: ConfigurationManager.AppSettings["MyServiceUrl"] ConfigurationManager.AppSettings["aws:elasticbeanstalk:application:en...
How to read Elastic Beanstalk Environment Properties in .net?
There is no simple solution for this. The browsers from social apps will not download the files.You will have to check the user agent of the browser and not display the download buttons (hiding the UI when needed).
A website I work on has a download pdf functionality, sending the proper HTTP headers in the response, to download the PDF file.It works smoothly across the browsers (Safari, Chrome, Firefox etc), but recently we discovered it fails in the Facebook browser.The scenario is that people would eventually open the website w...
Cannot download files via the Facebook browser
3 CORS cannot help you there, because CORS doesn't apply to image tags that lack a crossorigin attribute. You have two options: a cross-origin resource policy, or a resource isolation policy. Cross-origin resource policy You can specify a cross-origin resource policy (COR...
I have a web-site with images stored on my own server. Some other web-sites use links to these images on their pages, so the server have to handle extra traffic. Can I forbid loading images and other media for external sites with Nginx config? Maybe CORS settings could help me? Thanks!
How can one block downloading media from my server by other web-pages?
You can get the path to a particular page (.mdfile) using thepage.pathvariable.That path is relative to the branch directory in your repo.So you can link to the.mdsource file using this URL:https://github.com/YourUsername/YourRepo/blob/your-branch/{{ page.path }}For my purposes, I use this URL:https://github.com/KevinW...
I am using GitHub Pages to create a static web site. It does a great job processing links such thatfile1.mdbecomesfile1.htmlin the rendered output:For example:[Link text](https://github.com/some-repo/some-file.md)in the Markdown source becomes this when rendered using GitHub Pages:<a href="https://github.com/some-repo/...
GitHub Pages - How to prevent conversion of file names to *.html in links
You can use multiplesetblocks, as SamRoch08indicates, but you don't need to use dynamic blocks to take advantage of that. In fact, it's as simple as:resource "helm_release" "cluster_autoscaler" { name = "cluster-autoscaler" chart = "cluster-autoscaler" repository = "https://kubernetes.github.io/autosca...
I am running out of ideas of how can I set object type var as helm variable in terraform. I want to set the following variable and pass it to helm chart:resource "helm_release" "cluster_autoscaler" { name = "cluster-autoscaler" chart = "cluster-autoscaler" repository = "https://kubernetes.github.io/aut...
How to pass object type variable into helm_release resource in terraform
If you are using the GitHub GUI to Squash and Merge, then GitHub is taking your commits and creating a new commit out of them. When it does this, it collects the author name and author email information from your GitHub account, which is presumably set to John Smith and not jsmith. If you want to work around this, yo...
I have a repo with two branches: master and fix-tests. Remotely, I've already created a PR and did a Squash and Merge on fix-tests so that all of the changes from fix-tests are in master. That's all fine and good. But, when I have fix-tests checked out and do a git show it says: Author: jsmith <[email protected]> But...
Git has different author name on master than other branches
yes. The way I did it was to configure the jvm to create a heap dump on OOM, then I pulled the heap down and ran it thru jvisualvm. You can compute the retained sizes (took a long time) but it will be very clear what the offender is. You can also attach jvisualvm to a running instance, but you need to configure the ...
Oflate our Weblogic server is frequently crashing with OutOfMemory error. Is there any way I can monitor the JVM to find out which Classes are are hogging the memory and have the maximum number of objects?
How to find which Class is causing OutOfMemory for the JVM?
As @beny23 wrote you should use -XX:+HeapDumpOnOutOfMemoryError and as is stated here: The -XX:HeapDumpOnOutOfMemoryError Option This option tells the Java HotSpot VM to generate a heap dump when an allocation from the Java heap or the permanent generation cannot be satisfied. There is no overhead in running wi...
I have some memory leak issue in my web app which is deployed in tomcat. To find the root cause I enabled the HeapDumpOnOutOfMemory error by setting: -XX:-HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/usr/local/tomcat/logs and the memory settings in the tomcat is: -Xms256m -Xmx768m -XX:PermSize=128m -XX:MaxPermSize...
tomcat not generating hprof file on outofmemory error
2 I'm afraid that git push --force might be needed after you remove the file from the repo history following the "Removing sensitive data from a repository" guide. Share Improve this answer Follow ...
So I accidentally pushed some big files to Github on master branch. After I did that, I tried doing: git reset --soft HEAD~2 then I removed the big files, committed, then tried pushing to the remote master, but I get an error saying my local branch is missing commits from the remote master branch. What should I do? W...
git reset --soft to save face with big files
3 Have you considered turning sendfile on? Sendfile allows nginx to use the kernel directly to send static files, so it should be faster than any other option. Share Improve this answer Follow edited Nov ...
I'm trying to figure out the correct tuning for nginx on an AWS server that is wholly backed by EBS. The basic issue is that when downloading a ~100MB static file, I'm seeing consistent download rates of ~60K/s. If I use scp to copy the same file from the AWS server, I'm seeing rates of ~1MB/s. (So, I'm not sure EBS ...
nginx large static file serving slow on AWS EBS-backed server
Prometheus has only 4metric types:Counter,Gauge,HistogramandSummary.I guessHistogramis that what you needAhistogramsamples observations (usually things like request durations or response sizes) and counts them in configurable buckets. It also provides a sum of all observed values.A histogram with a base metric name of<...
Hi everyone,I have a cluster based onkubeadmhaving 1 master and 2 workers. I have already implemented built-in horizontalPodAutoscaling (based on cpu_utilization and memory) and now i want to perform autoscaling on the basis of custom metrics (response timein my case).I am usingPrometheus Adapterfor custom metrics.And,...
how to perform HorizontalPodAutoscaling in Kubernetes based on response time (custom metric) using Prometheus adapter?
You should put only the local path src, not the 'repo/src' ('graphlab/src') in the sparse-checkout file. echo src/*> .git/info/sparse-checkout That is because git read-tree reads local path from within the repo, defined in the skip-worktree bitmap $GIT_DIR/info/sparse-checkout. I managed to copy src only with the sr...
I am trying to clone a git subdirectory https://github.com/graphlab-code/graphlab/src ... I am trying to checkout only src subdirectory mkdir git-src cd git-src git init git config core.sparsecheckout true echo graphlab/src/ >> .git/info/sparse-checkout git remote add origin https://github.com/graphlab-code/graphlab ...
Unable to checkout git directory
@VonC answer's explains how to do it using Basic Auth. The below answer explains how to do it using the token Authorization header and Node.js. const response = await fetch(GITHUB_API_LIST_PROJECT_WORKFLOWS, { headers: { Authorization: `token ${process.env.GITHUB_TOKEN}`, }, }); Where GITHUB_API_LIST_PROJECT_...
Following this documentation: https://docs.github.com/en/free-pro-team@latest/rest/reference/actions#list-repository-workflows Fetching /repos/{owner}/{repo}/actions/workflows should return the list of all workflows for a repository. This works fine for public repositories. But, I couldn't figure out how to do it for ...
How to fetch the list of workflows for a GitHub private repository?
Yes, the answer lies inside the .htaccess file.You need to set up a catchall rule, which will serveindex.phpfile for all routes instead of trying to find a matching php file for the route which is happening now.You should be able to use this config to achieve such behaviour:# BEGIN WordPress <IfModule mod_rewrite.c> R...
I'm building a react SPA with Wordpress running as the backend, but it'snot headless, so the entire frontend is included in the theme. I simply run npm build and enqueue the production files in the functions.php file. The application is rendered into a<div id="root"></div>inside a template file. My wordpress install is...
React routing in wordpress
This is not convenient withGitHub REST API v3.This is more convenient withGitHub GraphQL API v4, asshown here:{ user(login: "lee-dohm") { commitComments(first: 100) { nodes { commit { repository { nameWithOwner } abbreviatedOid } body }...
GitHub provides quite a convenient API (REST, v3) to see everything on repository level. To see one's comments on code review, I need to know which repositories were reviewed by him/her and crawl all PRs in these repositories. However, sometimes I don't remember all repositories where I was doing code review. If I need...
Is it possible to get all my GitHub code review comments?
I tested it with my github reposumanbarick.github.io.Finding:Repository (github pages) will get priority in case of name conflict.Test 1:http://sumanbarick.github.io/test/First I made a repository nametestwith an index.html inside it. Created branch gh-pages. I tried the urlhttp://sumanbarick.github.io/test/and I got t...
Say I have an index.html put on my username.github.io, which I can visit by the url,http://username.github.ioNow consider 2 conflicting casesSay, I have a repository namedrepo1with gh-pages activated. So, it should be available athttp://username.github.io/repo1I also have put a folder namedrepo1with an index.html insid...
Which will get Priority between "github pages" and "directory kept at root" in case of name conflicts and why
Loki cannot correlate multiple lines. (There is afeatureannounced for Loki 2.2 but that is not yet released).What you could do (if you have the chance to change how the log file is written) is put all the information in one line like1/1/2021 10:01:23 AM Memory 2300 Mb 23%
I am using Loki (Promtail) to collect log. The information I need is grouped by every three lines (their timestamp are the same).log example:1/1/2021 10:01:23 AM Memory1/1/2021 10:01:23 AM 2300 Mb1/1/2021 10:01:23 AM 23%1/1/2021 10:01:13 AM Memory1/1/2021 10:01:13 AM 2310 Mb...I can already capture the values for these...
How do I show label value on Grafana dashboard?
If you do: delete head->next; Then head->next is invalid. If you try to dereference it in the next line (remember the right hand side will be evaluated before the assignment), your program will crash. head->next = head->next->!next; // dereference of the bad pointer happens where I put the !, and you crash there. If ...
I am implementing a stack using a singly linked list where the Head is at the top of the stack and the Tail is at the bottom of the stack. I am implementing a pop operation. In order to do this, I must make the head equal to the second node in the linked list. But before I do this, I need to delete the first node in t...
Deleting a node from the start of a linked list
Python worksheets are intended for writing the code directly in the worksheet in the Snowflake UI and running Snowpark Python directly in the worksheet. As it stands now, there isn't an integration available between git and a Python worksheet. You would need to copy your code into the worksheet, or put your .py code i...
I have some custom code in https://git..../function.py I want to fetch this code from git and run it within a python worksheet in snowpark. How do I set this up? I am new with Snowpark. I find it very difficult to find useful or clear instructions on this.
How do I Run python code from github in snowpark?
1 Let me see if I understand correctly. You have some php code that is saved into a github project and you run that code via Azure websites. If my above line is correct, then this is what (I think) is happening: Azure is connected to your github project and pulls your ph...
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help oth...
Record information from the site after the button is clicked, in a txt file on the githab [closed]
First and foremost, the MX records for your domain are used only to specify the hostnames of the servers to handle INCOMING mail for your domain - i.e. the MX records have nothing to do with the servers that are used to send outgoing mail. You can use both Gmail's outgoing mail servers and Sendgrid's outgoing mail ser...
I have a question that I guess is not just related to SendGrid.Say, I own themydomain.comdomain, and I want to be able to send emails from, for example,[email protected].Right now, when I go and manage my domain, I can see that I have added some MX record values added there. By doing this, I am able to send email using...
Sending emails from my domain with SendGrid
Janos's answer will work for GKE clusters that have been created with a password, but I'd recommend avoiding using that password wherever possible (or creating your GKE clusters without a password).Using IAM: To create thatClusterRoleBinding, the caller must have thecontainer.clusterRoleBindings.createpermission. Only ...
I've just created a new cluster using Google Container Engine running Kubernetes 1.7.5, with the new RBAC permissions enabled. I've run into a problem allocating permissions for some of my services which lead me to the following:Thedocsfor using container engine with RBAC state that the user must be granted the ability...
GKE clusterrolebinding for cluster-admin fails with permission error
0 udacity/responsive-images is: a GitHub page project, visible at udacity.github.io/responsive-images/ with a page dedicated to responsive images, with examples. For instance: "Two images, 50% width with margin", seen in examples/1-07/twoImages50pcWithMargin Check in thei...
I have a GitHub project with README.md file. I embed an image in the following way <img src="./logo.svg" align="right" width="180px"> Here is an example of such an image. Note: GitHub allows using embedded HTML but not CSS, that's why I am using width property instead of css. This way the image occupies the right sid...
Make GitHub's README look different on smartphones and desktops using only HTML (CSS is restricted)
Here is my setup that works on a subdomain.server { listen 80; server_name gitlab.example.com; root /home/gitlab/gitlab/public; # individual nginx logs for this gitlab vhost access_log /var/log/nginx/gitlab_access.log; error_log /var/log/nginx/gitlab_error.log; location / { # serve static files f...
I was using Apache2 before I installed GitLab on my VPS. I just want to make GitLab a subdomain of my site (git.example.com) and have my main site (www.example.com) look at /var/www/html/index.htmlHere is my nginx.conf file as of now:user www-data; worker_processes 1; error_log /var/log/nginx/error.log; pid ...
How to configure GitLab as a subdomain in nginix.conf
1 When VirtualAlloc function is given NULL for lpAddress parameter, the function will allocate in another Virtual Page ahead, and the allocation size will be rounded to that page boundary. Resources: VirtualAlloc function reference A stackoverflow post that has related use...
When the lpAddress parameter to a VirtualAlloc function call is null, how does the OS determine which virtual address space region to allocate?
How does the operating system determine which region to allocate when lpAddress is null in VirtualAlloc
kubectl get --raw='/readyz?verbose'is probing the/readyzendpoint of the Kubernetes apiserver.If you want to check the current running and ready state of a Pod and its containers, you can look at the Pod'sstatus.Conditionsandstatus.ContainerStatusesfield.If you want to probe the health endpoints of a container directly,...
I'm seeking the answer regarding how to use the Kubernetes Python API to check healthI am using:kubectl get --raw='/readyz?verbose'
How can I use Kubernetes Python API to check health endpoints?
I would suggest branching b2 off b1. that way, b2 will have your implementation and the translation file. now you can just delete the translation file while keeping the implementation file. you can do this: git checkout b1 and then: git checkout -b b2 #this will lead to b2 branching off from b1
This question already has answers here: git partial merge, not whole branch (4 answers) Closed 5 years ago. disclaimer: I am relatively new to Git so this may seem to be a confusin...
How to commit partial changes from another branch than the original - git [duplicate]
Here is a sample example of a minimal server block for nginx + passenger server { listen 80; server_name client1.foobar.com; root /var/www/rails/client1/current/public; passenger_enabled on; } The usual way of configuring nginx is to make a subdirectory "sites-available" where you put a f...
Note : i am newbie to ruby on rails and server hosting , i unable to express my vision as question , please forgive me if i am wrong or correct me. Hi , i am having an one product developed using ruby on rails , going to host in an dedicated server with 32 GB Ram and 8 Core Server Processor. Each client should have s...
(Using phusion passenger + Nginx) running same rails app with multiple instance names with same port (80)
Sounds like your Grafana isn't able to create any security cookie for your login. Please check that your browser doesn't deny any cookie management.Otherwise did you do any changes to the config files in ./grafana/grafana/conf? You should have there a sample.ini and defaults.ini. In some cases you have a third .ini fil...
Grafana id pass correct but i can not login. I share screenshot.Log:lvl=info msg="Successful Login" logger=http.server User=admin@localhost,lvl=info msg="Request Completed" logger=context userId=0 orgId=0 uname= method=GET path=/ status=302 remote_addr=x.x.x.x time_ms=22 size=29 referer=,lvl=info msg="Request Completed...
Grafana Login Succes But Not Login
Check the problem may be that the CSS and JavaScript files have not been loaded.This mostly happens because you may be using a proxy. Check theauth.proxysection in your config. Likeserver.domain configvalue and theserver.root_urlvalue, refer toRun Grafana behind a reverse proxyfor additional details.Check when you are ...
I am unable to see the logs in grafana dashboards for k8s cluster, logs are generating but not showing on dashbord. Also i can see the Non Formatted Logs but not able to see the formatted logs and some matric. Please let me know how i can resolve this issue.I have checked the config file for grafana and also configmap ...
Unable to see the logs in grafana dashboard for kubernetes
GitHub actions use shallow clones by default, as an optimization: there's no point in fetching the whole history if you're not going to use it! In your use case, however, you are using the history, so you can ask for it with fetch-depth: 0. That will fetch the full history. Solution, found in a different question with...
I have a checkout/v3 action that pulls from a remote repository - uses: actions/checkout@v3 with: repository: myorg/myrepo ref: mybranch token: ${{ secrets.ACCESS_TOKEN }} And then trying to merge in a remote branch - run: | git config --global user.email "[email protected]" git c...
Github Actions - Checkout another repo and merge a remote branch - strange behavior
Hive on MR3 runs on Kubernetes, as MR3 (a new execution engine for Hadoop and Kubernetes) provides a native support for Kubernetes.https://mr3docs.datamonad.com/docs/k8s/ShareFolloweditedSep 26, 2020 at 13:00Tibebes. M7,19855 gold badges1515 silver badges3636 bronze badgesansweredFeb 19, 2019 at 5:16glaparkglapark8633 ...
Is it possible to run Apache Hive on Kubernetes (without YARN running on Kubernetes)?I could not find any reasonable information on the web -- is running Hive on Kubernetes such a uncommon thing to do?
Running Apache Hive on Kubernetes (without YARN)
No, currently it is not possible todirectlyuse URL as source for a configMap property.But this will do the trick:kubectl create configmap config-from-url --from-literal=propkey="$(curl -k https://url-to-file-location)"You can specify the namespace where to create the configMap with-nor--namespace- seekubectl options.Th...
How can we use url of datasource in kubernetes while creating configmap like ex. kubectl create configmap config-from-file --from-file=https://url-to-file-location
How can we use url of datasource in kubernetes while creating configmap
Downloads/pull: not really, because:there isno downloads statisticsthere is nopull eventwhich would have allowed you to monitor them through webhooks.
Our org is running out of space on our account, and we've been trying to cull some older repos. The trouble is that some of the older repos may still be dependencies of active services (even if they have not been updated in years).I know we can track clones, but as far as I've been able to see, we can't see direct down...
Any way to see the last/number of times a repo has been accessed/downloaded on github?
0 Could be your firewall (pf) is blocking it. Check the firewall rules on the host and check the route. Share Improve this answer Follow answered Aug 24, 2018 at 19:07 LoguLogu 96411 gold...
I am trying to reach host-x.com from docker container running on MacOS but it fails: $ docker run ubuntu:latest \ /bin/bash -c \ 'apt-get update && apt-get -y install netcat && nc -v -z -w 3 host-x.com 443 &> /dev/null && echo "Online" || echo "Offline"' Offline It works fine when: I run a docker ...
Investigating Docker connectivity issue
alloc alloc is a Class selector (that is for exemple called like) [NSObject alloc] It returns a non initialized pointer of type NSObject*. Init To complete the initialization, you must call the proper designated initializer on the instance itself: [[NSObject alloc] init] Will return a usable NSObject* pointer. ...
What are the actual difference among alloc,copy and new and also what about the assign and nonatomic Property.
what is the difference among alloc ,copy and new?
You can use port 0. Applications pass 0 to kernel and kernel assigns unused port to the application. docker run --name frontend -p 0:80 frontend:latest Or: docker run --name frontend -p 80 frontend:latest In second example I'm just specifying container port, Host port will be assigned automatically. To verify: dock...
As part of a build pipeline I would like to start containers with a free port. Looking for something like this: docker run --name frontend -p $(gimme-a-free-port):80 frontend:latest
Bash command to return a free port
From your configuration we can clearly see that your service is of type: ClusterIP.This means that you have an error in the configuration and you should try modifying the service type to LoadBalancer.For a more precise debug you could generate a yaml from your chart and post-it in your post.From what you said and the c...
I have created ahelmchart forredashand deployed on GKE.All my services are up and running.The service that is created asLoadBalancerpoints to mynginx:▶ k get svc nginx -o yaml apiVersion: v1 kind: Service metadata: annotations: helm.sh/created: "1574525412" creationTimestamp: "2019-11-23T16:10:12Z" labels: ...
Nginx service not accessible via Load Balancer
4 I stumbled on this link OpenXML libraries (alternatives to ClosedXML) And EPPlus https://epplus.codeplex.com/ works much better than ClosedXML when large amount of data is being exported to Excel. Atleast no more "OutOfMemory" exceptions since EPPlus seems to steer clear...
A webpage when trying to write datatable from memory stream to output stream is throwing System.OutOfMemoryException while trying to deliver excel file to user. I'm using Closed XML for saving file in Excel and the datatable is about 40K rows and 150 columns large containing mostly decimals, exported file is usually 1...
Export to excel throwing System.OutOfMemoryException
This is a community wiki answer posted for better visibility. Feel free to expand it.As mentioned in comments:you need to check whichtagis used - he same or different than in the previous version of the image;update your Deployment with actual image;check, if your image available in Docker hub, otherwise you will getEr...
I have an image on docker hub that I using in a kubernetes deployment. I'm try to debug the application but whenever I make a change to the image, even with a change in the tag, when I deploy the app it still uses the old image? It does update occasionally but without any rhyme or reason. This is with the imagePullPoli...
kubernetes keeps on pulling old image, even with imagePullPolicy set to Always
ok. I figured it out. there was aapoc-3.1.3.6-all.jarfile in the plugins/ directory but it did not contain a jar file! I must have downloaded it withcurland it failed but instead of letting me know, it wrote an HTML file with the error. grr...did the download correctly and now everything works
I'm running Neo4j (v 3.1.3) within a Docker (v17.05.0-ce-rc1) container on OSX (v10.11.6) and I've "installed" the APOC jar file, see:$ docker exec -it sandbox-db ls /plugins apoc-3.1.3.6-all.jarI also see the container is properly configured to pick up plugins from that location:$ docker exec -it sandbox-db grep plugi...
There is no procedure with the name `apoc.periodic.iterate`
One way would be settingassets_base_urlsinapp/config.ymle.gframework: #.. templating: engines: ['twig'] assets_base_urls: http://your.site.com/web/
I've been working on this for quite a while to no avail.. I've got symfony installed on a shared web-host where I have zero access to change the DocumentRoot to the web/ folder so that is not an option to me...I've written my htaccessRewriteEngine On RewriteBase / RewriteRule ^$ web/app.php [QSA] RewriteRule ^(.*)$ we...
symfony2 on shared hosting
I'd use Symfony's built-in Command component here. You're probably familiar with the normal Commands that come packaged with Symfony... Things likeapp/console generate:bundle, etc.You can use the ContainerAwareCommand class to write your own.Here are the steps you'll need to take:Keep a queue of emails that need to be ...
I am working on a mailing tool with Symfony 2.1 framework and SwiftMailer.This tool needs to handle thousands of emails, but by groups of 500 because of a smtp server constraint (I can't modify it). It needs to wait few minutes between each wave.I totally don't know how to do this.The server running the app is on a Win...
Handle thousands emails sending by groups of 500 with Symfony 2
That was introduced incommit 426ef93, Jan. 2016 for Kubernetes v1.2.0-alpha.8.The generatorswere described as:Generators arekubectlcommands that generate resources based on a set of inputs (other resources, flags, or a combination of both).The point of generators is:to enable users usingkubectlin a scripted fashion to ...
When I want to generate yaml by runningkubectl, it denotes that I should denote--generator=somethingflag within the command.For example, to get the deployment template viakubectl, I should run the below command:kubectl run --generator=deployment/v1beta1 nginx --image=nginx --dry-run -o yamlWithout mentioning--generator...
What are generators in kubernetes kubectl?
If you haven't made your own changes and just want to reference an existing revision, you can rungit logat the command line, and copy the SHA hash appearing after the word "commit" for the revision you're looking for.On github, you can get the same information by clicking Commits, hovering over the desired revision, an...
I have a very basic question. Say I've cloned a public repository, e.g., one available on github. I now want to communicate with other developers, e.g., to file a bug. What's the best way to communicate the code version to other developers? Can I somehow interrogate my local copy of the repo and send them something lik...
Succinctly specify exact state of git repository
This could be useful, however it stated:"It may make more sense to have each of your databases in its own cluster if you want to have them spread out over your Kubernetes topology."https://github.com/CrunchyData/postgres-operator/issues/2655ShareFollowansweredDec 2, 2021 at 11:47NurhunNurhun53411 gold badge99 silver ba...
Is it possible to have multiple databse in a cluster with Crunchydata (postgres)? When I create a cluster with "pgo create cluster" command I can specify only one database.-d, --database string If specified, sets the name of the initial database that is created for the user. Defaults to the value ...
Multiple Database in a postgres cluster on Kubernetes?
To add dashboards to a folder on server startup you need to add the dashboard configuration through provisioninghttps://grafana.com/docs/grafana/latest/administration/provisioning/#dashboardsYou need to specify the folder attribute in the dashboard.yml provider configexample: dashboard.ymlapiVersion: 1 providers: - nam...
Trying to group Grafana dashboards in to a folder when grafana server starts, i can get dashboard and folder id/name, but need to configure it to move dashboards to a specific folder, please suggest me.
How to load Grafana dashboards to a folder on startup?
Unfortunately you cannot use "IN" when filtering TAGs youll need to do something like this (i.e only show 23 and 24)Your query should beSHOW TAG VALUES WITH KEY "measurementPoint" where ("measurementPoint" = '23') or ("measurementPoint" = '24')Ofcourse if you know its only going to be 23 or something else you could jus...
all. I'm new to Grafana and I want to get only tag values what I want. For example,As you can see,"23" is a value of tags, I just want to get template variable by "23".But now I get so many template variables so that every time I have to seek it for long time.I'd like to get some tags like "23" rather than seek it from...
How to filter tag values in template variable of Grafana?
You could maintain a "release" branch which you can use to push from DEV to LIVE. All you would then need to do (when you want to update LIVE) is to merge master into release (which generates one commit), and push that release branch. git remote add LIVE /url/to/LIVE/repo.git git fetch LIVE git checkout master # woul...
We've got two separate git repos, let's call them DEV and LIVE. Lots of commits happen in DEV. Occasionally, we want to take DEV and overwrite LIVE with it, in a single commit (not preserving the entire history and seeing all the historical commits in LIVE). What is the simplest and safest way to proceed?
How to "overwrite" in a single commit a git repo with another repo
All the constant memory in a .cu file is allocated at launch (When the .cubin is generated and run, each .cu belongs to a different module)! Therefore, to use many different kernels that use constant memory, you have to divide them in .cu files as to not get a const memory overflow. The usual max is 64kb. Source: http...
I'm building a toolkit that offers different algorithms in CUDA. However, many of these algorithms use static constant global data that will be used by all threads, declared this way for example: static __device__ __constant__ real buf[MAX_NB]; My problem is that if I include all the .cuh files in the library, when t...
CUDA global static data alternative?
This feature doesn't seem to be exposed within the API. Similarquestion / answerfound.
How to get GitHub clone count using api. The below api helped me to get fork count and watcher count (https://www-github.com/api/v3/repos/Community/reponame) . but couldn't find clone count. Is it possible to get fork ,watcher and clone count from single rest api?
How to get the clone count in github api
The reason behind my problem was I have selected db.t2.micro for which encryption is not enabled. Availability of RDS Encrypted Instances is given in the below link : http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Encryption.html
I am trying to launch a MySQL Database Engine in RDS with encryption enabled. I am unable to enable encryption as the options YES and NO are not getting highlighted. May I know the reason for this ? Here is the snap of my AWS console.
Unable to enable encryption on RDS instance
2 The official Jenkins image defines an ENTRYPOINT rather than a CMD. However, specinfra looks for a CMD and uses /bin/sh if it does not find any. IOW, specinfra does not run Jenkins. Reason why my test was failing. By specifying proper docker_container_create_options, spec...
I am trying to prove that Jenkins is running in a container built from the official docker hub jenkins image. require "serverspec" require "docker" describe "Dockerfile" do before(:all) do image = Docker::Image.build_from_dir('./images/jenkins') set :os, family: :debian set :backend, :docker set :d...
How can I test with serverspec that Jenkins is running in a jenkins docker container?
You could just exclude the namespaces from which alerts are not needed inexprof youralert_rule, for example:... alert: you_alert_name expr: sum(kube_pod_init_container_status_restarts_total{namespace!~"kube-public|kube-system|default|..."}[10s]) > 5 ...
I would like to get prometheus alerts only for the namespaces that I deploy and exclude those ones from default namespaces like kube-system . Could some one help me how to achieve this
How to send Prometheus Alerts only for custom namespaces
Indeed, while Kubernetes metadata usually includes creationTimestamp, there would not be anything tracking previous or last edition timestamp. For deployments, you could track changes using their replicasets. Or querying etcd directly, you may find about previous revisions for any object, that were not yet removed by e...
In Kubernetes secrets I can only retrieve creation timestampmetadata: creationTimestamp:However I don't find a way to check modified/updated timestampIs this a lacking feature or I am not able to find it ?
Modified or Updated Timestamp in Kubernetes Secrets
I had the same issue and found a solution. the idea is simple you have to access the base DN and get that attribute:SearchRequest _search_request = new SearchRequest(_server._base_dn, SearchScope.BASE, "(objectClass=*)","maxPwdAge");with this you should get the result with that attribute, if you getSearchRequest...
I need to evaluate an user's password expiration time against an Active Directory.I'm using Android and Unboundid sdk. I can successfully connect to server using this codefinal SocketFactory _socket_factory; final SSLUtil _ssl_util = new SSLUtil(new TrustAllTrustManager()); try { _socket_factory = _ss...
Unboundid LDAP domain attributes
5 I had the same problem, the solution was to create a VERSION from the Lambda and NOT to use the $LATEST Version, but a 'fixed' one. It is not possible to use the latest ever-changing version to build a trigger upon. Place to do that: Lambda / Functions / YourLambdaName ...
I'm experimenting with dynamo db and lambda and am having trouble with the following flow: Lambda A is triggered by a put to S3 event. It takes the object, an audio file, calculates its duration and writes a record in dynamoDB for each 30 second segment. Lambda B is triggered by dynamoDB, downloads the file from S3 a...
DynamoDB not triggering lambda
That is not possible. CloudFront signed URLs do not use IAM -- it's a different system -- so using IAM roles is not possible when generating CloudFront signed URLs. You can use them for S3 signed URLs, but not CloudFront.One option I have used is to store the CloudFront key pair ID and the private key -- encrypted --...
Currently, we use theCloudFront Key Pair ID and Private Keyto generate the cloudFront signed url which we use to upload the file into s3. CloudFront Key Pair ID and Private Key are being kept in property file which we inject using Spring and construct the signed url. We wanted to change this, instead of keeping CloudFr...
How to get CloudFront Key Pair ID and Private Key using IAM role JAVA
TheWORKDIRdirective is really justcdfor your Dockerfile.Your original working directory inside the container is/. You can get back there by:WORKDIR /Remember, this is affecting the context of the containerized build environment, and has nothing to do with where your Dockerfile is located.
There is no explanation in docker doc or seemingly any builtin variable in docker to find the original working directory where the image is being built. I want to run commands on different directories and at some point get back to where i launched docker build from. Am I missing something obvious? Thanks.Dockerfile ex...
Docker: how to get back to initial directory after issuing a WORKDIR command
Downgrade your version from 18.06.3 to 18.06.1 and follow the instruction from this link.It will helpfullhttps://medium.com/@dirk.avery/docker-error-response-from-daemon-1d46235ff61dthis error was resolved in my ubuntu 14.04lts systemShareFollowansweredSep 17, 2019 at 12:18MathanKumarMathanKumar56311 gold badge44 silve...
I am on Ubuntu and docker version:Docker version 18.06.3-ce, build d7080c1I got this error:OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:297: copying bootstrap data to pipe caused \"write init-p: broken pipe\"": unknownwhen I ran:docker build \ --build-arg ...
OCI runtime create failed - copying bootstrap data to pipe caused write init-p: broken pipe
I haven't found any method to just take the s3 url and get the object. I ended up with parsing it by myself.ShareFollowansweredMay 23, 2018 at 18:34nunuh89nunuh8955311 gold badge55 silver badges1111 bronze badgesAdd a comment|
I am looking to rename (or move) my S3 objects, I have their URLs likehttps://s3.eu-west-2.amazonaws.com/sample-bucket/temp/sample-picture.jpgIs there any standard way in Ruby SDK to get Aws::S3::Object by only URL or I have to parse it by regular expression for example ?In Java SDK there isAmazonS3URI.java
Amazon S3 get S3 Object by URL in Ruby SDK
The actual uploading and the tests that are doing it are part of your integration testing, not the unit testing. If you wrap the S3 API in a very thin class, you will mock that class for unit testing of your business classes, and you will use the real implementation for integration testing. If you have decided, your ...
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago. The community reviewe...
How do you test code written against AWS API [closed]
Fixed it with using artifacts. Uploaded the artifact in the first job and then downloaded the artifact all jobs following. Example:jobs: setup: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 - name: Artifact Code uses: acti...
I am working with GitHub Actions and am attempting to create GitHub Pipeline that deploy terraform to AWS and pushes docker containers. The only thing is that I want to see if it is possible to only checkout the code in the first job for terraform and docker jobs to reference later. All I know is that I would have then...
How do I write a GitHub Action so code is only pulled in the first job and is referenced in later jobs
The instructions have now been updated and the next section has the solution:sudo chown -R $USER:$USER .This happens because the user inside the container is root. You can set the user inside the container, but you'd have to create a new user with the same uid as your user on the host for the permissions/ownership to m...
I followed all steps described here:https://docs.docker.com/compose/django/Everything runs, but the problem is that created files are owned byroot. I have no idea how to change it.I'm able to rundocker run hello-world- nosudorequired.The command I run:docker-compose run web django-admin.py startproject composeexample ....
docker-compose creates file owned by root
POSThttps://github.com/login/oauth/access_token( I am always receving CORS error in production server)Then you're doing the POST from a browser, which is a serious error. You cannot do that. The POST happens from your server, to Github's server. As it stands, you're exposing yourclient_secretto the browser which is a s...
Lately Github updated the Oauth apis and documentation. I am unable to get the access_token from this apiPOSThttps://github.com/login/oauth/access_token( I am always receving CORS error in production server)I have tried both post calls passing correct client_id, client_secret and the code as url param as well as as pay...
how to get the github oauth access_token
I had the same issue and found the solution to this. You will need to change the default listening hostname. By default, the app will listen to the localhost, ignoring any incoming requests from outside the container. Change your code inprogram.csto listen for all incoming calls:public class Program { public static...
I've created a app in asp.net core and create a dockerfile to generate a local image and run it.FROM microsoft/dotnet:latest COPY . /app WORKDIR /app RUN ["dotnet", "restore"] RUN ["dotnet", "build"] EXPOSE 5000/tcp ENTRYPOINT ["dotnet", "run", "--server.urls", "http://0.0.0.0:5000"]Then, I've builded my image wi...
Cannot acces Asp.Net Core on local Docker Container
You should add new commits addressing the reviewer's concerns. The reviewer, if they have notifications on, will be e-mailed everytime you make new changes. Their old comments will then be invalidated (they'll be hidden from view in Github) if the commit changed the part of the file they commented on. They can then co...
I am having some lack of clarity on how to handle PR /MR process workflow.. Let us say, I am creating a feature branch in github or gitlab and submitting a PR/MR to my reviewer. Assuming that my PR is not accepted (the reviewer has given comments that I need to resolve), should he/she close the PR, and subsequently, d...
git pull requests -- Should new PR be created, if old PR is not accepted
Ijustran into this, and adding the scheduling to Bootstrap.groovy worked just fine. In your MyJob class, set triggers to an empty closure:class MyJob { static triggers = { // Job is scheduled in Bootstrap.groovy so that it can be externalized } def execute() { println "do some work" } }The...
This question already has answers here:Quartz job triggering from Config.groovy(2 answers)Closed10 years ago.Am using the Quartz plugin for Grails and have a simple job:class MyJob{ static triggers = { cron name: 'MyJobTrigger', cronExpression: '0 0/1 * * * ?' } def execute(){ println "do some w...
Grails - using property value for cron expression in scheduled job [duplicate]
19 I submitted a case to AWS and they answer with this: That error response typically gets returned when the API cannot perform the MFA Delete task due to the request being made with non-root credentials. The only way to turn on MFA Delete is to use the credentials...
I'm trying to add MFA-deletion to my S3 bucket with the AWS-cli with the following command: aws s3api put-bucket-versioning --bucket <my-bucket-name> --versioning-configuration '{"MFADelete":"Enabled","Status":"Enabled"}' --mfa 'arn:aws:iam::<code-found-at-iam-page>:mfa/root-account-mfa-device <my-google-authenticato...
DevPay and Mfa are mutually exclusive authorization methods
This is a pretty common problem, usually met when passing projects around Solution Press the folder icon under 'Location' and choose the folder the contains your .xcodeproj
I'm pretty new to Git and Bitbucket etc so am hoping this is something easily fixed although after Googling around I can't find anything similar. I have an XCode Workspace (project and pod stuff) which I have made a git repository for. I've then created a new remote repository on Bitbucket and pushed the local reposit...
Wrong XCode Project Location After Git Clone
0 The tutorial does use an access key, that is a PAT (Personnal Access Token): that means it should net require username/password for GitHub. Try that (using a key) first. On BitBucket, the same notion of access token applies. Share Improve this answer ...
On this tutorial, I am stuck at first page where I am supposed to connect to a Git repository. I have tried Github and Bitbucket. For both when I press ok after inputing my credentials, it waits for a few seconds then nothing happens. Not even an error message. I am sure that my bitbucket credentials are correct. Any ...
Blue Ocean Pipeline editor doesn't start as can't connect to git
Unfortunately, github-flavoured markdown doesn't support rendering of mermaid graphs. See this issue for more information and finding comfort in other peoples quest of this feature ;) If your are using VS Code, you can use this extension to preview your mermaid code blocks inside markdown but note that this does not r...
I'm trying to render a flowchart in a markdown file using Mermaid to place into a ReadMe.md file in my GitHub repository. In this link (https://unpkg.com/[email protected]/README.md), there's an example code snippet for the Mermaid installation: ``` https://unpkg.com/[email protected]/dist/ ``` I included...
How to install Mermaid to render flowcharts in markdown?
In a nutshell, use '|' instead of ','.E.g..products[].attributes.artifactDetails.url = "abc" | .products[].cookbookName = "cookbook"
i have below json file, i need to update all the key values using one jq command.{ "changeDetails": { "chgNumber": "$ASKNOW_CRQ" }, "environmentType": "$ENV_TYPE", "fqdn": "$FQDN.visa.com", "products": [{ "action": "deploy", "attributes": { "artifactDetails": { "url": "$ARTIFACT_URL" ...
jq: one jq command to update multiple values in Json file
1 I'm supposing there is no way to find these exact strings using the API? Correct, that's not possible currently. Share Follow answered Jun 15, 2015 at 15:05 Ivan ZuzakIvan Zuzak 18.4k33 ...
I want to find the exact strings, throw ' and throw " in javascript files in a given repo using the Github API. It says: You can't use the following wildcard characters as part of your search query: . , : ; / \ ` ' " = * ! ? # $ & + ^ | ~ < > ( ) { } [ ]. The search will simply ignore these symbols. I'm supposin...
Using Github API code search, find the exact string `throw "`