Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
There is no way to automate the configuration of the identity source and user provisioning via Terraform (currently).Once you configure that manually, you can use Terraform to provision Permission Sets and Account Assignments. | I am new to terraform. I was experimenting with AWS IAM Identity Center, but could not find a solution.Context - I have a directory service - example.com and Active Directory on EC2 (domain join completed) with my users and groups.(Achieved this with terraform till this point). Now I want to bring those users and group... | AWS IAM Identity Center Configuration using terraform |
This is not supported yet in the current ver of IBM Containers.You can consider, in the mean time, creating yourself the environment vars, that linking creates. | Note: This is a question related to Docker support in Bluemix.I know how to link a Container with a Container, using --link parameter when starting the second Container with ice run command.But I haven't found a way to link them, when using a Container Group. I read the docs and check ice command help with no luck.The ... | How can I link a Container Group with a Container? |
In that post you linked, in theUPDATEsection of my answer, I indicated that the GPU scheduler has changed in Pascal and beyond (your Tesla P100 is a Pascal GPU).MPS is supported on all current NVIDIA GPUs.The results you got are expected (in the non-MPS case) because the GPU scheduler allows both kernels to run, in a t... | I came across from this post:How do I use Nvidia Multi-process Service (MPS) to run multiple non-MPI CUDA applications?But when I run./mps_runbefore I launch the MPS, I gotkernel duration: 4.999370s
kernel duration: 5.012310sAnd when I checknvidia-smiin 5 secs:+----------------------------------------------------------... | How do I know my GPU supports multiprocessing by default? |
Regarding Concern1, you can isolate those micro changes in a branch.
Basically, your local repo has two branches:
one dedicated to your granular commits
one (master) for GitHub
You can push everything to:
your website, on a bare repo, and then clone it and checkout the "granular" branch.
GitHub, with master updated... |
I'd like to apply revision control - using git - to my WordPress-based website development.
Based on my concerns below, how do I go about?
Concern 1: Pushing "granular changes"
In this specific case, it is hard to mimic the webserver environment locally. Therefore, I would like to push changes very often. Could I push... | Git and WordPress (+ managing plugins and media) |
The AWS APIs use reflection to figure out what AWS service they're connecting to based on the class name. If that's the case you might try calling your class SqsClient, eguse Aws\Sqs\SqsClient as BaseSqsClient;
class SqsClient extends BaseSqsClient
{
//...
} | I'm extending my custom Sqs class like this:class Sqs extends SqsClient
{
public function __construct()
{
parent::__construct(array(
'credentials' => array(
'key' => $_ENV['AWS_ACCESS_KEY_ID'],
'secret' => $_ENV['AWS_SECRET_ACCESS_KEY'],
),
... | Error on instantiating class extended from AwsClient subclass |
What counts is not how much memory the system has available, rather what matters is how much memory your process has available. Since your process is a 32 bit process there is a hard limit of 4GB.
So you don't have 4GB free memory, the system does. You have used your allocation of 4GB and you are out of memory.
The... |
I have an application running on Windows 2003 x86 with PAE. OS has 8 GB RAM.
During application running some memory is allocated and after the host process grows up to ~1GB and total system memory grows up more than 4GB I got an OOM exception.
At that time there is about 4GB RAM free, about 1GB to 2GB limit for a sing... | .NET OutOfMemory exception with PAE |
The package list grabbed by the curl command references the architecture of your system, and as there are no mssql-tools or msodbcsql17 packages for arm64 architecture at the moment, I was getting the unable to locate error. Current solution is changing the first line of the Dockerfile to specify the platform withFROM ... | I'm having an issue adding Microsoft package list to apt-get in my Dockerfile running on my M1 macbook pro. I was able to run this on my old windows laptop, but now on my mac, I get theUnable to locate package msodbcsql17error. Just as a sanity check I also tried installing mssql-tools first, but that package was not f... | M1 Mac Docker Issues with apt-get update |
+50I am hosting multiple domains so when I setup a wildcard it always points to the rootI'm assuming you meant that you get the same content forexample.domain.comas if you were visitingwww.domain.com. This can surely be handled throughhtaccessrewrite rules.If a sub-domain namedsubsitewas to be served out of${DOCUMENT_R... | I am setting up an existing wordpress install to use multisite. I have successfully set up the network and since it was an existing install it uses subdomains (which I wanted anyways).I have created a new site/subdomain on my network so it would look something like this example.domain.comThe issue I am running into is... | Using wildcard subdomain on specific directory |
3
As mentioned above by Rajith Delantha, this solved the problem for me:
Add: DOCKER_OPTS=' -G jenkins' directly in /etc/default/docker.
Then restart docker service by sudo service docker restart.
Share
Follow
... |
I am running Jenkins in a docker container and Jenkins tries to run my maven build. As part of the build, the docker maven plugin instructs it to build a docker image.
That part of the POM is below.
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.3.8</versio... | What is happening when docker-maven plugin tries to build image? |
InstallNode.jsClone the repository to somewhere on your hard driveOpen a command prompt and go to that directoryTypenpm installto install any dependenciesTypenpm start???PROFITThe reason you can usenpm startis because if you look inside of theirpackage.jsonfile you'll see a"start"option under"scripts". That command wil... | Before I say anything else, I am a complete noob to node.js and I just want to see what this web application looks like. I noticed this project at a hackathon and I wanted to test it out. They gave the github repo:https://github.com/android-fanatic/WebBut I can't run it from my computer. I understand that I would need ... | How to run a Node.JS app that is forked from github? |
When deleting a branch, git is not case sensitive, meaning your branch "Exif" would be deleted if you executedgit branch -d exifYou didn't even create a branch "Exif" in the first place, because by pushing to a different branch, you don't create that branch in your local repository automatically.To go back to your orig... | Ok, so the context is that im working on my own branch, creating a feature for a certain project.My branch is called Exif (capital E) and today i accidentally didgit push origin exif (lowercase e)so it created a new branch for me called exifAfter I realized this , I did$ git push origin --delete exif
$ git branch -d e... | Remote branch exists, local branch disappeared |
docker-compose.override.yml is good solution in this case. You may override only build block and this is not hard to mantain as two independent files.docker-compose.override.yml:version: '3'
services:
my-service:
build:
context: foodocker-compose.ymlversion: '3'
services:
my-service:
con... | I have docker-compose.yml file withbuild contextproperty specified like this:version: '3'
services:
my-service:
container_name: my-service
image: my-service
build:
context: foo
ports:
- 8088:8088
# other servicesWhen I rundocker-compose uplocally, build contextdoesexist and everything wor... | docker compose - ignore build context path |
As noted by David, thePuppet Pluginprovides a rule for README.md, but you appear to have a number of files you want to check. IMO, this is an excellent candidate for custom coding, but I would recommend implementing aRule Template, rather than a straight rule. That way you write the rule once and simply configure the v... | Something which is a consistent problem in projects I've been working on is a lack of a README (of any form). I'd like to have Sonar verify that either a README file exists in a project root or that adocs/folder exists which has at least one file in it.I haven't seen these options as a Sonar rule.I am more than willing... | Is there a way to get Sonar to verify that a file exists? |
No, they don't. They persist until the pointer returned by malloc() is passed to the corresponding free() function. There would be no point in the existence of the malloc() function if it worked the same way as automatic arrays.
Edit: sidenote. As @Ancurio pointer it out, you're incorrectly freeing the memory behind t... |
Lets say I have the following situation (some rough pseudocode):
struct {
int i;
} x
main(){
x** array = malloc(size of x pointer); // pointer to an array of pointers of type x
int* size = current size of x // (initally 0)
add(array, size);
}
add(x** array, int* size){ // adds one actual element to the arra... | C - allocating values in an array of pointers in outside function |
Docker volumes
You can use Docker volumes to create a new volume in your container and to mount it to a folder of your host. E.g. you could mount the folder /var/log of your Linux host to your container like this:
docker run -d -v /var/log:/opt/my/app/log:rw some/image
This would create a folder called /opt/my/app/lo... |
Why does docker have docker volumes and volume containers? What is the primary difference between them. I have read through the docker docs but couldn't really understand it well.
| why does docker have docker volumes and volume containers |
0
As the linked stack questions says
"Google crawlers now executes javascript - you can use the Google
Webmaster Tools to better understand how your sites are rendered by
Google."
Check it out here
That means you don't need to go through a lot of the painful steps ... |
After going through some existing question and it's answers, I am not able to come perfect strategy to be followed to achieve SEO in AngularJs.
Ways I Found to achieve it are-
Create Nginx intermediate layer that will serve crawlers request with differently.
Convert AngularJS application to support HTML5 mode. But it... | How to achieve SEO in AngularJS SPA |
I would have to specify something there. I also faced such an issue, and if the solution to remove the volume is working, you can't delete a volume in use, which means you are to remove the container using the volume first...for most container / volumes, that's not an issue, but regarding to redis, if for example you a... | I can't start redis container in my docker-compose file. I know that docker-compose file is OK, because my colleagues can start the project successfully. I read that there is a solution to delete dump.rdb file. But I can't find it. I use Windows machine. Any suggestions will be very helpful.Error
2023-02-09 16:41:28 1:... | Redis Docker compose Can't handle RDB format version 10 |
0
Hmm this is quite difficult to understand. Sounds like you should make a new MySQL table containing snapshots of the calculations and the time they were saved?
What kind of data are you looking to snapshot?
Share
Improve this answer
... |
We have a web application that creates a dynamic PHP page with all the MySQL stored details a user has entered via a number a forms. So far so good, but we want this information stored some how to be refereed to at a later date, as an administrator can make changes to the data, which reflects on calculations that are ... | How to create a snapshot or clone of PHP, MySQL page... Inspiration needed |
"Is there a way for me to just have crontab run a script as if I ran it myself from my terminal?"Yes:bash -li -c /path/to/scriptFrom the man page:[vindaloo:pgl]:~/p/test $ man bash | grep -A2 -m1 -- -i
-i If the -i option is present, the shell is interactive.
-l Make bash act as if it had been invok... | This keeps happening to me all the time:
1) I write a script(ruby, shell, etc).
2) run it, it works.
3) put it in crontab so it runs in a few minutes so I know it runs from there.
4) It doesnt, no error trace, back to step 2 or 3 a 1000 times.When I ruby script fails in crontab, I can't really know why it fails cause w... | How to test things in crontab |
There is a plugin for sublime text 2 that will do this for you, it is pretty darn accuratehttps://github.com/revolunet/sublimetext-markdown-previewThere is also a github markdown API which you might be interested in:https://developer.github.com/v3/markdown/And the CSS:https://github.com/sindresorhus/github-markdown-css | I have a README.md file (describing a Node app) that I need to convert to a self-contained Github-styled README.html.Note that this is not the same as finding an HTML converter for Github-flavored markdown. The precise style is important, and so is the self-contained part. (This is how my question is different fromthis... | How do I convert README.md to Github-styled HTML? |
6
You can include other public and local actions in your workflow, which lets you reuse common steps. Using versioned actions with {owner}/{repo}@{ref}:
steps:
- uses: actions/setup-node@74bc508 # Reference a specific commit
- uses: actions/setup-node@v1 # Re... |
Problem: We use github actions workflow for CI and we have many github repositories. I need to be able change everything repeatable for every repository at once.
Is it possible to use in github action workflow yml file some snippet that located mb in different repository.
| How to use snippets in Github action workflow file to avoid duplicates? |
AddRUN for i in /etc/ssl/certs/*.pem; do HASH=$(openssl x509 -hash -noout -in $i); ln -s $(basename $i) /etc/ssl/certs/$HASH.0; donebefore using wget.I don't know what is the problem with certificates update but apparently this could be a workaround. Found the workaroundhereShareFollowansweredJan 19, 2022 at 13:30afvmi... | I have this basic dockerfile which downloadwgetet use it.FROM ubuntu:20.04
RUN apt-get update && apt-get install -y --no-install-recommends \
wget libssl-dev ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN wget -nv https://boostorg.jfrog.io/artifactory/main/release/1.75.0/source/boost_1_75_0.tar.bz2W... | docker certificate error when building for arm/v7 platform |
The commanddotnet buildfail with this error message (line 26 on the capture in the question) :MSBUILD : error MSB1011 : Specify wich project or solution file to use because this folder contains more than one project or solution fileNothing is build and SonarQube can't analyze.In the CI task, you need precise the csproj... | I am using sonarcloud forhttps://github.com/fatihyildirim1o/aspnet-starter-kitbut it is not working because of below error.enter image description herewhere am i doing wrong? | Sonarcloud review for Github repository failed |
Try this:scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:8000']
proxy_url: http://placeholderForProxy | I'm trying to set up my Prometheus YAML file to include the proxy option. As shown in the configuration documentation, it should be:[ proxy_url: <string> ]I've tried to add this in various ways to my very basic YAML file but promtool check configprometheus.ymlgives me either:FAILED: parsing YAML file prometheus.yml: jo... | unmarshal errors: cannot unmarshal !!seq into config.ScrapeConfig |
I commented on the docker / kitematic Github issues page and one of the participants told me to simply clickUSE VIRTUALBOXbutton to use VirtualBox on Windows since they are in favor of Docker for Windows.https://github.com/docker/kitematic/issues/1029#issuecomment-226974739ShareFollowansweredJun 21, 2016 at 16:15kimbau... | Starting Kitematic on Windows 10 gives me this errorError: connect ETIMEDOUT 198.105.254.24:2375I'm already running 'default' vm in VirtualBox. The only way to start Kitematic is to hit the 'USE VIRTUALBOX' button.Why won't Kitematic start unless I click 'USE VIRTUALBOX' button? I've already got VirtualBox running the ... | Docker Kitematic connect ETIMEDOUT error |
The uswitch/kiam (https://github.com/uswitch/kiam) service is a good example of a use case.it has an agent process that runs on the hostnetwork of all worker nodes because it modifies a firewall rule to intercept API requests (from containers running on the host) to the AWS api.it also has a server process that runs on... | I have deployed two POD-s with hostnetwork set to true. When the POD-s are deployed on same OpenShfit node then everything works fine since they can discover each other using node IP.When the POD-s are deployed on different OpenShift nodes then they cant discover each other, I get no route to host if I want to point on... | OpenShift and hostnetwork=true |
9
Github for Windows uses a Windows port of GNU bash which is provided by the MSYS project which is, in turn, a part of the MinGW project. As Andrew pointed out, this piece of software is really a part of Git for Windows which Github for Windows includes and uses internall... |
Sorry if this is the wrong place to be posting but I am using the git bash program for windows downloaded from github.
It pretty much functions the same as a linux / mac terminal and I was wondering if there was any software out there that does the same thing?
The problem is that I can only have one git bash window ... | Does anyone know what the git bash program for windows uses for its shell? |
Maybe a bit overdue, but:you probably are mapping with something like3000:3000. This is very much the equivalent of0.0.0.0:3000:3000.What you want is to map only to your localhost. You can achieve this by listening to a specific IP address, such as127.0.0.1(localhost).Change your configuration to127.0.0.1:[host_port]:... | I have on centos7 docker container with nginx.Port 80 is available from outside despite on that this port NOT opened in firewalld.
here rules for public zone:# firewall-cmd --zone=public --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: eno3
sources:
services: dhcpv6-client ssh
... | docker makes port of container open to public |
Caching works this way by default. Different URLs give different cache locations. Perhaps there is something missing from your question, but, as stated, it already works this way. | Is there any way I can vary caching by a controller action parameter using theoutputcacheattribute? We havevarybyparamwhich will not work if my parameters are embedded within the URL in a REST manner. | ASP.NET MVC Caching vary by controller action parameter |
Try this:On GitHub:Log in -> Click on your avatar in the top right hand cornerChoose Settings -> Developer settings -> Personal access tokensClick on the "Generate new token" buttonAdd a note if you want, like "Android Studio"Select repo(all), read:org (under admin:org), gist, workflowClick on the "Generate token" butt... | I can't sign in to GitHub on Android studio, as the picture shows.I have reset my password, tried to put ' https:// ' in the server box, and still doesn't let me in and shows the same message.I can no longer update the project I am working on with my team.For some reason I was still able to commit and push to the repo ... | Can't log in to GitHub on Android Studio |
Because there is no serialization and deserialization overhead making it low cost operation and cached data can be load without additional memory. SerDe is expensive and significantly increase overall cost. And keeping serialized and deserialized objects (particularly with standard Java serialization) can double memor... |
I am learning Apache Spark and trying to clear out the concepts related to caching and persistence of RDDs in Spark.
So according to the documentation of persistence in book "Learning Spark":
To avoid computing an RDD multiple times, we can ask Spark to persist the data.
When we ask Spark to persist an RDD, the nod... | Why does the default persist() will store the data in the JVM heap as unserialized objects? |
Does cloning something down over SSH change the permissions on the directories or somehow lock it down more?No, it does not change anything locally.And 2FA is only impacting HTTPS URL (where your password must be a PAT, Persoanl Access Token)It has no bearing on SSH URLS.Check firstssh -Tv[email protected]output. | I've got a Django project which works great. Previously we just cloned down and used password authentication. I changed the remote to[email protected]:myteam/our_repo.gitRecently we started requiring 2FA, so now we can only clone down over SSH.For this project, I created an access key (read-only, which is all I need fo... | Git clone causing issues with Windows permissions over SSH with django project |
You may create backup files in /tmp, and than use:
# Name of the buckup file
$filename = 'BACKUP_' . date('Y.m.d') . '.tar.gz';
# Target path where to save the file
$targetPath = '/path/to/backup/';
# Directory to backup
$dir = "/path/to/files/";
# Execute the tar command and save file
system( "tar -pczf ".$targetPa... |
I'd like to create a backup script for files and folders on my server and I found this:
# Name of the buckup file
$filename = 'BACKUP_' . date('Y.m.d') . '.tar.gz';
# Target path where to save the file
$targetPath = '/path/to/backup/';
# Directory to backup
$dir = "/path/to/files/";
# Execute the tar command and s... | PHP Backup & Download |
The performance of the application and/or the speed do not depend on the number of master nodes. It resolves High Availability issues, but not performance. Now, you should still consider having at least 3 masters for this implementation you are working on. If the master goes down, your cluster is useless.In Kubernetes,... | I am trying to implement CI/CD pipeline using Kubernetes and Jenkins. In my application I have 25 Micro services. And need to deploy it for 5 different clients. The microservice code is unique. But configuration for each client is different.So here I am configuring Spring cloud config server with 5 different Profiles/C... | Feasibility of using multi master Kubernetes cluster architecture |
The Distributor has not been installed correctly. Could not enable database for publishing.", which indicates that source is not correctly configured to allow for ongoing replication based on Distributor has not been installed correctly.To check if distribution has already been configured, run the following command whe... | I am using anAWS-DMS instance to migrate and replicate an on-premises databaseto another SQL instance in the AWS cloud.When I use a migration task of type Full load, the instance successfully executes the migration, but with the same Mapping rules and Tasks migrations of types Full load and/or ongoing replication they ... | The Distributor has not been installed correctly. Could not enable database for publishing |
I found that this works:*/1 * * * * : testing; /sbin/initctl status my-service > ~/status 2>&1/usr/sbin/serviceworks with SystemV jobs (e.g. those in /etc/init.d), and under Ubuntu it also sees Upstart jobs (e.g. those in /etc/init)./sbin/initctlworks directly with Upstart jobs. So my guess is that the mechanism that a... | I'm running Ubuntu 14 and I added the following line to my crontab:*/1 * * * * : testing; /usr/sbin/service my-service status > ~/status 2>&1After the next minute rolls around, I see this in ~/status:my-service: unrecognized serviceIf I run this from the terminal, it does recognize the service:~$ /usr/sbin/service my-s... | can't query upstart service status from cron job |
kubectl get customresourcedefinitions, orkubectl get crd.You can then usekubectl describe crd <crd_name>to get a description of the CRD. And of coursekubectl get crd <crd_name> -o yamlto get the complete definition of the CRD.To remove you can usekubectl delete crd <crd_name>. | I recently applied this CRD filehttps://raw.githubusercontent.com/jetstack/cert-manager/release-0.11/deploy/manifests/00-crds.yamlWithkubectl applyto install this:https://hub.helm.sh/charts/jetstack/cert-managerI think I managed to apply it successfully:xetra11@x11-work configuration]$ kubectl apply -f ./helm-charts/ce... | How to list applied Custom Resource Definitions in kubernetes with kubectl |
Try updating array controller driver and firmware. That worked for me.ShareFollowansweredJun 14, 2023 at 3:01SteveSteve11Your answer could be improved with additional supporting information. Pleaseeditto add further details, such as citations or documentation, so that others can confirm that your answer is correct. You... | I have admin rights to Windows server 2016(on virtual machine) with two partitions C:/ and D:/. On local disk D:/ web server is started.The problem is that in event viewer security logs are spammed with Audit Success for every file in D:/.
One more thing C:/ is on Disk0 and D:/ is in Disk1 causing event viewer to see t... | How to disable Audit Removable Storage on partition D:\ |
Replace your rule with this:RewriteEngine on
RewriteCond %{REQUEST_URI} !/(store|Email-Blasts)/ [NC]
RewriteRule ^(.*)$ /store/$1 [R=301,L]ShareFollowansweredApr 9, 2014 at 17:15anubhavaanubhava771k6666 gold badges582582 silver badges649649 bronze badges0Add a comment| | Right now, my current .htaccess in my root directory looks like this;RewriteEngine on
RewriteRule !^Email-Blasts($|/) http://example.com/store/%{REQUEST_URI} [R=301]
RewriteCond %{REQUEST_URI} !/store/$
RewriteRule (.*) /store/ [R=301,L]I am looking for any going to example.com/ to goto example.com/store/ but allow ac... | .htaccess directory exception |
The rule has been deprecated and the replacement (S3649) is available only in:paid versions (example: Developer Edition)server 7.X or newerRead more here:S2077 has been deprecated but documentation doesn't include a justificationDeprecated rule squid:S2077 still on Sonar way and causing false positivesRule S3649 Not Fo... | In SonarCube 6.7.5, rule squid:S2077 (SQL binding mechanisms should be used) is depreciated. The replacement rule is listed as S3649 (/coding_rules#rule_key=squid%3AS3649). That link is not resolving to an actual rule.How do I get this issue resolved?Thanks! | SonarQube deprecated rule suggestion missing |
My problem finally got resolved.. Not sure which one truly resolved it - i upgraded to Cuda 4.1 and upgraded my nVidia driver and the combination of the two solved the problem. | I have a very simple CUDA program. The program when compiled with -arch=sm_11 option, works correctly as expected. However, when compiled with -arch=sm_12, the results are unexpected.
Here is the kernel code :__global__ void dev_test(int *test) {
*test = 100;
}I invoke the kernel code as below :int *dev_int, val;
val =... | CUDA 3.0 version compatibility with compiler option -arch=sm_12 |
There's severalexamplesof people implementing their own activity graph, one would assume GitHub itself uses a similar algorithm.In terms of the commit volumes: remember that committing to GitHub, like most things, can be scripted - for either nefarious, orawesomepurposes. | Everyone knows that the more you commit to github in a single day, the darker green your square is on your profile.But the more you commit it seems that GitHub retroactively goes back and lightens your dark green squares.Does anyone know the formula for how GitHub does this?Bonus question: One of the most active people... | GitHub makes my green squares less green the more I commit. Why? |
You can do two thingsvia.htaccess(Not Tested)viaindex.html1. .htaccessadd.htaccessinside the assets folder<IfModule authz_core_module>
Require all denied
</IfModule>
<IfModule !authz_core_module>
Deny from all
</IfModule>2. index.htmlCreateindex.htmlfile inside the directory and add this<!DOCTYPE html>
<html>
<... | I just wanna protect my assets folder in client side. All of my files can access public. I wanna protect it. I have rules.htaccesslike below, any wrong rules there?RewriteEngine on
RewriteCond $1 !^(index\.php|assets|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$... | How to protect ASSETS FOLDER in codeigniter |
The issue here is that the environment variable will be just available when the CronJob is created and inside the job itself, but it is failing to create because the variable $JobFrequencyInMinutes does not exists in the node level.I would say that to achieve what you are trying to do, you would need to have an environ... | I have an yaml. I want to parameterize the schedule of that kubernetes cronjob. On environment file I declared JobFrequencyInMinutes: "10"apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: scheduled-mongo-cronjob
spec:
schedule: "*/$(JobFrequencyInMinutes) * * * *"
concurrencyPolicy: "Forbid"
jobTemplate:
spec... | Want to parameterize cronjob schedule on Kubernetes |
The problem is related to the syntax used on thecontinue-on-error:field.I made it worked updating it tocontinue-on-error: ${{ contains( '${{ env.FULLY_SUPPORTED_SCALA_VERSIONS }}', '${{ matrix.scalaVersion }}') }}So that the workflow didn't return the error anymore.Here is therelated workflow fileHere is therelated wor... | If I have the following section in my github action workflow yaml:env:
fullySupportedScalaVersions: "2.13.6"
test:
runs-on: ubuntu-latest
continue-on-error: ${{ contains(env.fullySupportedScalaVersions, matrix.scalaVersion) }}I receive an error message like this:Invalid workflow file : .github/workflows/m... | How to use environment variable in github action job/continue-on-error section? |
I wish I had an answer for you as I am going through the same ordain. Linter sees the correct image but facebook does not uses this image when sharing. It does it uses the right image when using the like button, weird.Best input I can give you it is to wait for facebook to fix this problem as it sounds to me that they ... | unfortunately i am un able to share any URLS with you guys but hoepfully someone has come accross this beforeok so when i use the Linter to check my page everythign is perfect and is working as exspected.when i share what i want to share on my website its ignoring the og:imagewe have recently moved servers and it worke... | facebook og:image - correct on URL Linter but not working on my site |
very easy just go to your main directori example
home/example
go to the directory public html and then go to you setting by the fault the system goes to 754 you will have to change to 755 the last 5 is go ing to allow to get to the site. cheers | I have moved to a new host and setup everything, but when I try to access the site, I get the following403 ForbiddenerrorForbiddenYou don't have permission to access /webfiles on this server. Server
unable to read htaccess file, denying access to be safeAdditionally, a404 Not Founderror was encountered while trying t... | Magento new host - 403 Forbidden - Server unable to read htaccess file |
Yes you can, but that is not recommended at all.
You can delete everything in .gitignore file and push them from a working project. Then it will work perfectly where you git clone them.
But there are so many drawbacks in this way.
I recommend you not to do that.
|
I'm new to GitHub and I found this site very useful for a lot of us. I came upon storing my Laravel project here in GitHub, but there's a problem every time I will clone it to be able to go to production, when I'm about to clone it at first, it always shows this error.
Warning: require(C:\xampp\htdocs\tourismPortal\bo... | cloning laravel project from github |
You need to go to the Preferences - System and than change the Cycles Rendering Devices to CUDA. CUDA uses the graphics card of the system (if they support it, but most NVidia cards can do that). If you render your image make sure to select Cycles as render engine under the render tab. | Closed.This question isnot about programming or software development. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchan... | Rendering in blender wont use GPU [closed] |
If the file you are trying to ignore is already on the index, you need to remove it first with git rm --cached <file> then you can ignore it in .gitignore
|
I have a lot of subfolders and files like node_modules>yargs-parser>README.md. And I wrote node_modules in .gitignore file but when I change something in a file like README.md, git is not ignoring the changes. How can I ignore?
| How can I ignore subfiles in .gitignore? |
I don't know about possibility of loging something by .htacess command. I think the easiest is to analyse the apache access.log files. It should contain the REFERER already, if not, use theLogFormat directive. | I have a couple of lines in my .htaccess that block hot linking of images.
This works great. I am curious however to find out who is doing it.Is there a possibility for me to log the HTTP_REFERER when the RewriteRule is triggered?ThanksRewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com/.*$ [NC]
RewriteRule \.(gif... | htaccess log forbidden access |
Example:package main
import (
"github.com/prometheus/client_golang/prometheus"
)
var c = prometheus.NewCounterVec(prometheus.CounterOpts{
Name: "example",
Help: "Example.",
}, []string{"label", "type"})
type Handler struct {
}
type Event struct {
Label string
Type string
}
func (h *Handler) On... | I have a function, which handles some events:func (h *Handler) OnEvent(e *Event) {
log.Printf("%s, %s", e.Label, e.Type)
}I want to create a Prometheus counter which will tick on each event. There are two caveats:OnEventruns in goroutinee.Labelande.Typecould be different in different periods of time, so I can't pre... | What is the proper way to update Prometheus counters from goroutine? |
What about replacingprintWriter.print(buffer);with:for (int i = 0; i < buffer.length; i += 100) {
int end = i + 100;
if (end >= buffer.length) {
end = buffer.length;
}
printWriter.print(buffer.substring(i, end);
printWriter.flush();
} | I'm trying to write a file with some amount of data using this:public static <T extends SomeClass> void writeFile(String buffer, Class<T> clazz, int fileNumber) {
String fileType = ".txt";
File file = new File(clazz.getName()+fileNumber+fileType);
PrintWriter printWriter = null;
try {
FileWrit... | What's the most efficient way to write large text file in java? |
Although a counter is not the best solution for this use case, you can use the operator increase.Increase(tempin{instance="localhost:9999"}[5m])This will tell you how much the counter increased in the last five minutes | I'm trying to visualize my weather data using grafana. I've already made the prometheus part and now I face an issue that hunts me for quite a while.I created an counter that adds temperature indoor every five minutes.var tempIn = prometheus.NewCounter(prometheus.CounterOpts{
Name: "tempin",
Help: "Temperature ... | Using grafana counter to visualize weather data |
I apologize if the question was confusing. I lacked some important git/github understanding to explain it properly.But anyways, I've come up with a solution by doing these 4 main steps.Created a repository on github and linked it to a folder inside xampp\htdocs\codeigniter3\Inside the project's folder, I've put all the... | I'm working on my first project using Xampp, Code Igniter 3 and MariaDB.The project is working fine on my machine, but I would like to correctly upload this project to github.And by correctly I mean:Upload all (and only!) the necessary files of the project (to run on someone else's PC).I believe (and I might be wrong) ... | What is the ideal way to push a Xampp Code Igniter 3 + MariaDB project to github? |
It seems thatporthas renamed thegit-corepackage to justgit. So changing the command toPOSIXLY_CORRECT=1 sudo port install gmake libsdl git gnupgshould work. | I want to run "repo" command on Mac (And download the code from Git repo). I was following the aboveguide:http://threadeds.blogspot.com/2009/02/getting-started-with-google-android-on.htmlWhen I execute the command,POSIXLY_CORRECT=1 sudo port install gmake libsdl git-core gnupgI get this error:I'm having the following i... | git-core has been made obsolete by the port git |
IMO this is almost as false positive.The result ofdateA.compareTo(dateB)couldconceivably beInteger.MIN_VALUEin which case-dateA.compareTo(dateB)wouldalsoevaluate toInteger.MIN_VALUE, thus not producing the result you want.Realistically that call isextremely likelyto return either-1,0or1(i.e. it'snot specifiedto only ev... | I got this Sonar Bug:Use the original value instead. Rule: Neither "Math.abs" nor negation
should be used on numbers that could be "MIN_VALUE"in this method of compare date:public int compareDates(MyDto a, MyDto b) {
SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy hh:mm");
try {
Date... | SonarQUBE and compareTo Dates |
I assume that your additional domain has a different host: addondomain.com ?In this case, simply add this condition to your .htaccess:RewriteCond %{HTTP_HOST} maindomain.com$ [NC]So the full redirection rule would look like this:RewriteCond %{HTTP_HOST} maindomain.com$ [NC]
RewriteRule /index.php$ http://www.maindomain... | I have a domain name maindomain.comIn the main domain I have a blog. The main domain is not active now. So all requests to site root index.php is redirected to maindomain.com/blog using htaccess.I have this in htaccess for redirectionRedirect /index.php http://www.maindomain.com/blog/
Options All -IndexesEverything wor... | .htaccess redirect main domain and addon domain issue |
You are already doing it the right way.
The docker image should always be created for each build so you have history as well. It won't be a good practice to change something inside a running pod and restart it somehow.If you still want to do it that way, you could mount an external volume to your pod and configure your... | I have an application war which reads an API implementation jar file to load some data in memory. What I am doing currently is that I COPY that jar inside my "application-war/lib" directory using docker file while generating my applications images.The downside of this is that whenever the jar needs to be changed; I nee... | Is there a way to give classpath in Kubernetes deployment/pod definition? |
You can create a custom API ID using tags on api-gateway setup in localstack.Per theAPI Gateway LocalStack docs:You can assign custom IDs to API Gateway REST and HTTP APIs using thecustom_idtag during resource creation. This can be useful to ensure a static endpoint URL for your API, simplifying testing and integration... | I'm using a localstack for local AWS development. The lambdas are exposed via API Gateway.
Whenever localstack is restarted (or when it is started for the first time on another machine) I have to create that gateway again and it's gonna have a new generated ID.Like this console output:endpoints:
http://localhost:4566... | How to give a permanent url to API gateway in Localstack |
What type of auditing do you require?See,http://wiki.eclipse.org/EclipseLink/Examples/JPA/Auditing | I have a problem with the creation of an audit using JPA / EclipseLink
I have found a lot of tutorials for Hibernate, but very little useful tuts about achieving this with EclipseLink.Could you give me the pattern / idea how to achieve audit using JPA / EclipseLink or
helpful links to connect EclipseLink and Hibernate ... | Eclipselink audit |
You receive the mail any time the cron command has some output (stdout or stderr).
The message"Null message body; hope that's ok"is a warning from themailxcommand. The following modification will suppress all the warnings from mailx:00 16 * * * /path/script.sh 2> /dev/null | mailx[email protected]> /dev/null 2>&1Notes... | I have a script, which we will callscript.shthat writes to bothstdoutandstderr.I want to pipe the output (stdout) of this script tomailx, but I don't want any email fromcron.Here's my crontab, set to 4:00 PM daily:00 16 * * * /path/to/script.sh | mailx[email protected]>/dev/null 2&>1ViamailxI get the script'sstdoutoutp... | How to prevent cron emails when script writes to stdout and stderr |
I use rbenv for my ruby and gem management. When I pull in a gem from a git repo, it places the files for the gem here:/usr/local/var/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/bundler/gems/gem-name-SHA/ShareFollowansweredMay 17, 2016 at 17:09craig.kaminskycraig.kaminsky5,5882828 silver badges3131 bronze badges7Ah I see,... | I want to put a debugger in a file for testing, but can't find where Bundler installs gems pulled from Github on my local machine.I've looked at this threadhttp://bundler.io/v1.5/git.htmlwhich shows how to setup a local file repo to pull from, but I would rather avoid this as my situation is a one off debugging scenari... | Where does Bundler install gems pulled from Github? |
Strictly speaking I want to implement analogue of c++ "new" operator.
It is ALLOCATE. The thing you are trying to do should be simply this:
subroutine f(p)
type(tra), pointer :: p
! you can actually leak memory this way! caution required.
if(associated(p)) then
stop "possible memory leak - p... |
I am trying to create a subroutine that returns data as a pointer:
I want something like that:
subroutine f(p)
type(tra), pointer p
type(tra), target :: instance
p=>instance
do_work(instance)
end subroutine
Strictly speaking I want to implement analogue of c++ "new" operator.
I want then to use s... | Fortran dynamic objects |
Github has aGithub importer.It can take any git, Hg, and TFS repository and make it into a git repo for you.There's also a project made to convert locally calledgit-tfs.ShareFolloweditedApr 19, 2016 at 18:04answeredApr 17, 2016 at 19:23grepsedawkgrepsedawk3,35422 gold badges2626 silver badges4949 bronze badges1Thanks f... | I'm looking for help on how to move a project from Visual Studio Team Services (was Visual Studio Online) with TFS over to GitHub?I'm new to Git/GitHub but I want to get more familiar with it. I've got a personal project that I've been working on and have been using Team Services with TFS. I've installed the GitHub plu... | How to move project from TFS to GitHub? |
You got pretty close to solving it -- the only problem is that you are not specifying a valid filter for describe-vpcs. Here's the filter that would be relevant to your use case:
tag:key=*value* - The key/value combination of a tag assigned to the resource.
So when it is asking for Name=string1,Values=string1..., it... |
I am trying to understand a aws ec2 cli call. I am looking to describe all VPC then filer on a custom tag (vpcname=myvpc, however after trying multiple combinations I keep getting conflicting errors about the format and use of --filters. using as a reference [http://docs.aws.amazon.com/cli/latest/reference/ec2/describ... | What is the correct syntax for filtering by tag in describe-vpcs? |
ERROR: type should be string, got "\nhttps://forums.docker.com/t/docker-run-cannot-be-killed-with-ctrl-c/13108/2\n\nSo there are two factors at play here:\nIf you specify a string for an entrypoint, like this:\nENTRYPOINT /go/bin/myapp\nDocker runs the script with /bin/sh -c 'command'. This intermediate\n script gets the SIGTERM, but doesn’t send it to the running server\n app.\nTo avoid the intermediate layer, specify your entrypoint as an array\n of strings.\nENTRYPOINT [\"/go/bin/myapp\"]\n\n" |
I am experimenting with a nginx-based Dockerfile. The last line currently looks like this:
FROM nginx:alpine
... # not really relevant
CMD /bin/sh -c "envsubst < /etc/nginx/conf.d/site.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
Now when I run the container with docker run my-nginx-image, I n... | Why does CTRL-C no longer stop my nginx container anymore? |
Java has its ownkeystoredatabase which holds these client certificates, this is controlled by 3 variables;-Djavax.net.ssl.keyStore=<client_keystore_file_path>
-Djavax.net.ssl.keyStorePassword=<password to access the client keystore file>
-Djavax.net.ssl.keyStoreType=<keystore_type>for example;-Djavax.net.ssl.keyStore=c... | We have a java applet that communicates with a spring application running on tomcat and using spring's http invoker.We want to secure the applet using ssl with client authentication, we have a jsp page for login, after successful login the applet loads.The jsp page is secured with ssl, when the applet loads the http in... | make java plugin use the browser certificates |
You should be able to doX509Certificate2 cer = new X509Certificate2(cerFile);and thenstring tprint = cer.thumbprint;to get its thumbprint.Note that there is a constructor forX509Certificate2that takes a file path, if you can avoid doing the read into the array yourself. | I use the following code to get certificate (x.509) from file upload,
how should I compare this certificate ,i.e. I need to get the certificate thumbprint or something to compare it with other certificate and see if they are equal,
how should I do that ?HttpPostedFileBase myFile = Request.Files[FileName];
byte[] cerFil... | How to compare certificate thumbprint |
I figure it out. I was setting the acl in the request (and inside policy) to public-read, which requires addition permissions in the bucket policy. I added the "s3:PutObjectAcl" to the list of Actions and it worked. | I'm trying to upload files to an S3 bucket directly from a browser using POST AWS signature version 4. Initially, I was getting signature validation errors, which I managed to resolve but now I'm getting this error:<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>9343E20EAA0FD14E</Req... | AWS S3 browser upload getting Access Denied error |
Unless you have an htaccess file in/views/with rewrite rules in it, this rule will cause a rewrite loop:RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /views/$1 [QSA,L]If you go to/not-existthe two conditions will pass, and the URI gets rewritten to/views/not-exist, and the rew... | I tried to configure my htacess for multiples reasons :First I have my views pages in this path :mywebsite.fr/views/contact-us.php(for example). I want access to files in the/viewswithout being in the url and without extention format; like this :mywebsite.fr/contact-usI written this lines and it working very nicely :<I... | 500 Internal Server Error due to htacess config |
This is incorrectInvocationType: 'RequestResponse'You should useInvocationType: 'Event'Fromhttp://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html#API_Invoke_RequestSyntaxBy default, the Invoke API assumes "RequestResponse" invocation type. You can optionally request asynchronous execution by specifying "Event" as ... | I have an AWS Lambda function, that need's ~ 30 seconds.
When I connect it to the API Gateway, it's sending a 504 because of the 5 second timeout. So my easyCron Job is failing and will not try it again (I only have a free plan)So I need an API, that sends a correct 200 status.
My Idea:Invoke the long term lambda via a... | aws lambda: invoke function via other lambda function |
You could setup a workflow withgit-flow.Or you could setup a manual process where commit rights to those branches reside with one person who is responsible for pulling in changes and merging them in the right order.One thing to remember with Git is these controls will only apply at your 'central' repo. You can't contro... | I have a github repo that contains three protected branches; master, staging & uat. Anyone may make other branches to make changes but I would like a way make sure that people merge in this order:users_branch -> uat -> staging -> master.I have looked at pre-receive hooks using python but cant seem to get information I ... | Can I enforce the order branches are merged on GitHub |
You should probably use Apache as a reverse proxy to tomcat. This way, everything will go through Apache. Resources will be served directly, and requests to the appication will be proxied to your tomcat server:http://httpd.apache.org/docs/current/mod/mod_proxy.htmlShareFollowansweredSep 4, 2014 at 10:52Daniel ScottDani... | We have created spring application, this is running in tomcat and resources(css, images and js) are coming from apache. We are trying to enable ssl but we are not able to get resources from apache. In console getting exception like resources could not be loaded. Can any one please help me. | how to enable https if application running in tomcat and resources are comming from apache? |
expires should be a date+timestamp and cache-control"s "must-revalidata" & "max-age" might help as well?Expires: Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control: no-cache, must-revalidate, max-age=0ShareFollowansweredMar 25, 2010 at 5:28futttafuttta5,93722 gold badges2222 silver badges3333 bronze badges3Actually the answer... | I found out that when pressing back button it gets previous page from browser cache even if I send following headers:Test1.aspxServer ASP.NET Development Server/9.0.0.0
Date Wed, 24 Mar 2010 17:49:40 GMT
X-AspNet-Version 2.0.50727
Location Test2.aspx
Cache-Control no-cache, no-store
Pragma ... | Can I disable FF3 back button cache? |
You could, in theory, add and commit fileswith their merge markers, for future resolution.git checkout -b merge_RV20.1_into_master master
git merge RELEASE_VERSION_20.1
# add everything, including files with conflict markers in them
git add .
git commit -m "merge with conflicts"But:you wouldn't be able to see them in a... | In our project we have quarterly release out which 2 months are for development and 1 months is for UAT. Our is a very big project and there are around 20 teams in our project each working on some different module.So how we follow is that we keep working on master and after 2 months we create a release branch with rele... | Push a merge conflicted branch |
That's nano–a text editor–and it is used as default commit message editor in git. To close it is very simple: press Ctrl and X same time. What you see in the screenshot is a commit message on a merge commit (because of the git pull).
If you want to change it into another editor, you have to run:
git config --global co... |
hello I have linux mint and when I type and press enter terminal always show this dialog how can I fix this problem
| Merge branch 'master' Can't git pull |
Yes.Optional chaining returnsundefinedin case of an invalid reference. MDN docs state:The ?. operator is like the . chaining operator, except that instead
of causing an error if a reference is nullish (null or undefined), the
expression short-circuits with a return value of undefined. When used
with function calls, it ... | I am trying to reduce the function cognitive complexity required by SonarQube, I am wondering, are these two if statements equivalent?The first statement:if (
currentRef &&
currentRef.current &&
currentRef.current.value.length === 0
)I want to replace it by :if (
... | Are these two if statements equivalent? |
Github provides an option to rename a repository under 'settings'. Once you have renamed the project on github you can clone it again.ShareFollowansweredFeb 5, 2013 at 21:20DaveJohnstonDaveJohnston10.1k1010 gold badges5656 silver badges8383 bronze badges1Thanks, looks like that did the job!–user1971065Feb 5, 2013 at 2... | I need to rename the root repository folder, for example:github.com/Org/projectXtogithub.com/Org/projectYShould I be using 'git mv'? or this can only be done by cloning and creating a newprojectY? | How to rename root repository folder? |
The only way I found is to read from the registry:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\\{Network_Adaptor_GUID}\NameServerIfNameServeris empty - then DNS is dynamic, otherwise - static. | When I get my servers DNS settings using the DNSServerSearchOrder property of my network card's settings, it returns the DNS server that it automatically resolves to, rather than a value that would indicate it is dynamic (such as null).for example, to set my DNS servers to 'Obtain Automatically' I do:ManagementBaseObje... | How to check if DNS server is set to 'obtain automatically' |
1
I believe that this has to do with the cache size, page size and records per page. If you try the following code
objRecordset.Open "SELECT * FROM " & CSV_FILE, objConnection, adOpenStatic, adLockOptimistic, adCmdText
If Not objRecordset.EOF Then
intpagecount = objRecordse... |
When importing multiple txt files via VBA into Excel I run into the an out of memory warning related to .Refresh BackgroundQuery:=False. At exactly 723 properly imported text files the error pops up.
This is the VBA code I use:
Sub Sample()
Dim myfiles
Dim i As Integer
myfiles = Application.GetOpenFilename(filefilter... | Excel out of memory warning when importing text files with VBA |
Since everything is rewritten to go throughindex.php, a common pattern with a lot of routing engines, you may see multiple executions fordifferent paths, so pay very close attention to your access log. The most common offender here is the browser asking for/favicon.icowithout any prompting. | I have following .htaccess, to format get info..htaccess:RewriteCond %{HTTP_HOST} ^(www\.)?csbuilder\.io [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?params=$1 [NC,L]The problem is when I apply this rule, it starts to run php script twice!
I figured that out,... | Htaccess forces php to run twice |
Short answer, you can't.
If you don't like default diffs calculated by git, you can try to use --patience (Generate a diff using the "patience diff" algorithm.) and --histogram (Generate a diff using the "histogram diff" algorithm.) options of git diff.
Also this might help Customizing-Git-Git-Attributes#Binary-Files... |
I'm using Git to keep track of the changes I make to my project. I often move entire sections around within my files.
When I view diffs using Sourcetree and GitHub for OSX, it shows me those moved lines as deleted (and shows them as new lines elsewhere). This is confusing visually.
How do I instruct Sourcetree or Gi... | ask github or sourcetree to ignore moved lines? |
Take a look athere.You can use metadata:- name: <name>
image: <image>
env:
- name: KUBERNETES_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name | I'd like to know wether I'm able to restart a pod or do a deploy using api.I'm running a container in a pod it's watching out on a directory. When a change is made on a directory, I need to restart the pod, or do a deploy.This is my shell script snippet:while inotifywait -e modify $ENV_LOCATION; do
curl -k \
... | Openshift: Get current pod name |
Not a direct answer, but I am not sure if there is a problem here:
If your swfs and image files do not move, they will have the same SHA1 commit after commit. They will occupy the same disk space and refer to the same blob.
according to GitPro book:
A "blob" object is nothing but a chunk of binary data. It doesn't re... |
Say I have a huge git repository and it has a number of swfs and images in there. I want them to be included in the hosted github repository, but they don't need to be versioned, and I don't want to have to store them somewhere else.
What is the simplest way I can remove their history every time I commit to a reposit... | Script to remove history for all binary files in Git, without removing file itself |
The first crontab entry looks correct. Since there is no#! /bin/bashline, you might need to put bash in front of the invocation, e.g.*/2 * * * * /bin/bash /root/todo-api/workspace/docker.sh c4e842c79337According todocker inspectUsagedocker inspect [OPTIONS] NAME|ID [NAME|ID...]the second invocation without$CONTAINERmus... | I want to execute a script with some parameters as a cron job. I have configured the crontab usingcrontab -ewith the following content*/2 * * * * /root/todo-api/workspace/docker.sh c4e842c79337but it is not working. When I used*/2 * * * * /root/todo-api/workspace/docker.shit worked. How to pass parameters while invokin... | How to pass parameters while invoking script in cron? |
New branches start out with all the files from original branch (in your case, the content of gh-pages branch is basically copied from the master branch). So the index.html file is already in gh-pages branch. Try add a new file and you'll see it in git status output.
|
I created a gh-pages branch of my repo, looking to create a github page for a project, as described at http://pages.github.com/. The branch was created, but now I'm stucked on how to proceed. For example, how do I add the file index.html that currently lives in the master branch to the gh-pages branch? And what do I ... | Trying to add files to a branch |
As you can see from description:
path - A file, directory or wildcard pattern that describes what to upload.
So, wildcard option will work for you:
- uses: actions/upload-artifact@v1
with:
path: app/build/**/*
|
I'm trying to migrate my Android project from CircleCI to Github Actions and I have followed guide on Github page. When I reach this part
- name: Upload math result for job 1
uses: actions/upload-artifact@v1
with:
name: homework
path: math-homework.txt
the problem I encountered is that I used to have mul... | Github Actions yml config multiple paths in a step? |
Issue has been fixed by correctly setting sonar.java.test.libraries/binaries attributes as answered inhttps://stackoverflow.com/a/32197912/343806. They were not not in the runner configuration and after adding raised issues in sonarqube results marked as fixed. | Sonarqube generates issues asTestCases should contain testsregarding that test classes does not have any tests inside but there are methods marked with@Testannotation and classes annotated with@RunWith(SpringJunit4ClassRunner.class).I have no problem running TestSuites and importing unit test and coverage reports into ... | Sonarqube test case rule does not take @Test annotation into account |
How should i free the allocated memory that was used after calling malloc?
Consider below example,
struct datastore1 *obj1 = malloc(sizeof(struct datastore1));
free(obj1);
Here obj1 is pointing to the block of memory of size same as size of datastore1 in order to free you need to send the address which is allocated... |
I've been working on a project that uses structs as storage for strings. I declared a struct consists of char type members:
struct datastore1
{
char name[50];
char address[50];
char email[50];
char number[50];
char idnum[50];
};
I'm aware that I can just do char *name, char *address... but let's s... | How to free() an array of structs allocated by malloc()? |
There is no direct way to stop the ongoing process of docker pull as of now. You should restart the docker service by using,
sudo service docker restart
This will stop the ongoing pull of docker. For more details please check this github docker issue, https://github.com/docker/docker/issues/6928
CAUTION: This command... |
I have just started learning docker. In a tutorial, I saw the docker pull command which can be used like docker pull container-name to pull the respective container from the docker hub repository.
But in case, if you cancel the pull by using "Ctrl + C", it is exiting from the ongoing progress but not stopping the dow... | How to stop docker pull |
For anyone who may not know how.response = client.add_permission(
FunctionName='<YOUR_FUNCTION_NAME>',
StatementId='AlexaFunctionPermission',
Action='lambda:InvokeFunction',
Principal='alexa-appkit.amazon.com',) | How do I create an Alexa trigger for a Lambda function using boto3 in Python? | Create trigger for Lambda function using Boto3 |
/24(hours)/60(minutes)/60(seconds)/1000(ms)/1000(us)/1000ns=35I would say that's3024000000000000 ns=35 days. | Looking at theirusage-limits documentationit says that the default log retention is 744 hours or 31 days, but when I query thegrafanacloud-usagedata source I see a value of3024000000000000I'm not sure what to make of that.Querygrafanacloud_logs_instance_limits{limit_name="retention_period"} | What is the default log retention for Grafana Cloud? |
Thelocationdirectivematches the requested URI, but does not decide if the file exists. The contents of thelocationblock determines the action if the file exists or not, and the simplest way to accomplish that is usingtry_files.Thetry_filesdirectivewill test if the file exists and internally redirect to another URI if i... | I think I have a problem understanding how I can check if a file exists in a specific folder with nginx.for example, I use this url:www.domain.tld/folder/filename.pdfnow, I think I have to check it like that:location /folder/.(pdf)$ {
}is that correct?and then, if it is the right way, how can I redirect if the fil... | nginx check if *.pdf file exists in folder |
Meanwhile we accept that behaviour as a feature and see near caches as a separate cache layer.
From this perspective it makes sense to design it like this. So the cluster has some rules for TTL oder IdleTime but the client can have different requirements for the topicality of items.
|
I have a cache cluster with multiple nodes containing a cache map config which is only valid for 10 minutes (TTL = 600s). Additionally I have some client nodes with near caches configured for that cache.
While debugging I see the following behaviour:
If I explicitly evict an entry in that cache on the cluster node, th... | TTL-Expiration on a cluster node does not update my clients NearCache |
You can useForever. From their page:A simple CLI tool for ensuring that a given script runs continuously (i.e. forever).The usage is quite simple:forever start your_app.jsYou can read the documentation in their page:Forever - Github. You have several examples here:Forever examples.There are other alternatives:Monit:htt... | I have made a service which contains some redis operations and node scripts on a ubuntu Amazon Ec2 instance. However when there are any errors the service stops with a pid.I need a cron job to do the following :detect when service has faileddelete the pidrestart the serviceI have seen that cron can be created for time ... | Cron for restarting a service when it fails on Amazon EC2 Ubuntu instance |
-2You can try ingress.. if there is an external traffic terminating on your k8s cluster, your ingress rules will direct it to a service and a port (like node port etc)apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: demo-ingress
spec:
rules:
- host: mysite.com
http:
paths:
- backend:
... | I have a kubernetes 1.5 cluster (with flannel network) and with server port range from 50000 - 55000. What I would like to do is to redirect traffic from VIP:80 to NODE_IP:55000.VIP: 10.66.122.115NODE_IP: 10.66.122.116 (both IP addresses are
assigned to same host, but VIP can move if host is down)iptables rule:iptables... | Redirect http port to nodePort |
most likely the CA bundle is wrongful. verify the path & access permissions, maybe try setting an absolute path. if this not helps, get aCA bundleand set it alikecurl_setopt($soap_do, CURLOPT_CAINFO,'cacert.pem'); | I'm trying to send an SSL certificate with a soap message to a server and have only just managed to make cURL accept the certificate (.pem file spit out by putting a .pfx file through OpenSSL) and not return "unable to set private key file" (evidently the private key must keep its 'bag attributes'), however it's now re... | cURL SSL Certificate error "Bad Certificate" |
0
While JSON Schema supports the null type, the OpenAPI specification (previously Swagger) does not.
Primitive data types in the OAS are based on the types supported by
the JSON Schema Specification Wright Draft 00. Note that integer as a
type is also supported and i... |
This question already has an answer here:
How to define a property that can be string or null in OpenAPI (Swagger)?
(1 answer)
Closed 5 years ago.
I am having an issue while export... | AWS API Gateway: Documentation Swagger export model type null ignored [duplicate] |
4 byte boundaries on x86. Possibly 8 byte boundaries on x64.
There's an 8 byte overhead on x86, for a type reference and a sync block. I wouldn't be surprised to find that's 12 or 16 bytes on x64.
For some reason, on x86 an instance of just System.Object appears to take 12 bytes, making 12 bytes the absolute minimum s... |
What is the size of a heap-allocated Object in .net, including management overhead? I'm assuming Objects are allocated along 4-byte boundaries, or is a different approach used?
| .NET Object size |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.