Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
I solved my problem by usinglaravel-auditing, tagging my ContractLine with the Contract's id (using generateTags) and adding a method 'getAllAudits' to my Contract model. This method concatenates the Contract audits and its underlying ContractLine audits. In my audits presentation I check the 'auditable_type' field of ... | I have a model 'Contract' and a model 'ContractLine' in a classic master-detail relationship. In Laravel terms: the contractlines have a belongsTo relationship with a contract. I would like to audit all changes a user makes to his contracts. Not just the changes in the general 'contracts' table but also changes/additio... | Audit belongsTo relationship in Laravel Eloquent |
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.
RewriteRule ^/?test\.htm$ http://shop.example.com/test.htm [R,L]For any URL it will beRewriteRule ^/?(.*)$ http://shop.example.com/$1 [R,L]and/?allows to use this rule in.htaccessor in server's config. | I'm trying to redirect just the subdirectory pages on a domain to the subdomain. For example, I want:http://www.example.com/test.htmTohttp://shop.example.com/test.htmThe RedirectMatch I'm using in the htaccess file is:RedirectMatch 301 http://www.example.com/(.*) http://shop.example.com/$1I'm unsure why that is not wor... | htaccess 301 Redirect to Subdomain |
With Git, read access limitation means a repository is "private" for some users.
And a monorepo with submodules:
is not really a monorepo
would fail cloning for those users, because it would try cloning each submodules
One authorization system which can limit at least write access per folder is gitolite (if you have... |
If you're working on a large monorepo, and you wanna limit some users' access to specific directories (packages) in that monorepo, is there a better way to do this than using git submodules?
For example if you have that monorepo structure
- packages
- package A
- package B
- package C
- common
And you wanna a... | Limiting uses' access in a monorepo |
67
It is easy using the aws-cli:
aws ec2 describe-instances --query 'Reservations[*].Instances[*].[InstanceId]' --filters Name=instance-state-name,Values=running --output text
Share
Improve this answer
Follow
... |
How can I get list of only running instances when using ec2-describe-tags. I am using my command like this:
ec2-describe-tags --filter "resource-type=instance" --filter "value=somevalue" --filter "key=key"
| How can I get list of only running instances when using ec2-describe-tags |
2
take a look at the local.xml.additional in the same folder hints on how to configure it properly.
also, http://www.fabrizio-branca.de/magento-caching-internals.html gives a good overview about the magento caches.
Share
Improve this answer
... |
Heard some talk about this being something that can be set in apt/etc/local.xml but I didnt see any of it there by default.. Maybe you can add it?
Anyway. It was described to me that the fast_backend gets some of the magento stuff while the slow_backend get the other stuff and if fast_backend fails, then it will fai... | magento: fast_backend vs slow_backend vs backend - What is going on here? |
I am using web Service not WebView
and finally I found the solution
HttpGet httpget = new HttpGet("http://example.com/dir/page.php?"+r.nextInt(1000));
putting a random number as a parameter make the request Different
thanx all
|
I'am making a game and make a website to store the Score Board when I call the webservise the old Score Board appears !!! I tried to open the webServise from the android browser but the browser appears the old Score Board when i "refresh" android web Browser the new one appears
how can I Solve this Problem?
this i... | android cache my webServise results |
This .htaccess file will redirecthttp://example.com/file.htmltohttp://example.com/cars/file.htmlandhttp://example.tk/file.htmltohttp://example.tk/bikes/file.html:Filename: .htaccess
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} example.com$ [NC]
RewriteCond %{HTTP_HOST} !cars
RewriteRule ^(.*)$ htt... | I want to redirect all the requests coming from specific domain to specific directory. To be more precise I have two different domains i.eexample.com,example.tkand both the domains point to a same server. The sever has two different directories i.ecars,bikes. I have created.htaccessfile on root but not able to do the c... | Redirect all the requests coming from specific domain |
You have to use a placeholder and pass the value separately. Here's somedocumentationand aPost from AWS forums | I am trying to do a simple dynamoDB scan with a filter expression (documentation here)This is my expression string:"attribute_exists("my_db_key") AND ("my_db_key" = 1)"This simply states:"If a value for my_db_key exists AND my_db_key EQUALS 1, return it in the results"However it does not work and I get a this error:Inv... | AWS DynamoDB Scan filterExpression - simple number comparison |
Import the remote library as a submodule. If you need to make your own changes to it, put them in your own Git repository that pulls from the GitHub repository.XXLib-GitHub
|
XXLib-Your-Fork
|
Your-app | One of our current applications relies on a cloned read-only library from github (let's call it XXLib). When I cut and release a build of my application, I tag it as a specific version (say, v1.1), however, given that XXLib can and will change over time, how can I tag the specific version of XXLib into my central repo... | Pushing and tagging cloned repositories into my git server |
In the case of splunk logging in ECS (with EC2 instances as hosts with the ECS optimized image, and not Fargate), you had to explicitly boot the instance with splunk logging enabled, by setting ENV variable ECS_AVAILABLE_LOGGING_DRIVERS at boot time (you can use userdata for this). There is a similar option for logent... |
I'm trying to configure logentries for a Task Definition on AWS ECS
As you can see here "logentries" is available for container instances.
However I can not find any documentation or example about how to configure it. I've seen examples of other drivers: https://docs.aws.amazon.com/AmazonECS/latest/userguide/example_t... | How to configure logentries in AWS ECS Task definition |
S3 Pricing is basically is based upon three factors:The amount of storage.The amount of data transferred every month.The number of requests made monthly.The cost for data transfer between S3 and AWS resources within the same region is zero.According to Cloudwatch pricing for logs :All log types. There is no Data Transf... | I have an ec2 instance which is running apache application.I have to store my apache log somewhere. For this, I have used two approaches:Cloudwatch Agent to push logs to cloudwatchCronJob to push log file to s3I have used both of the methods. Both methods suit fine for me. But, here I am little worried about the costin... | Cloudwatch log store costing vs S3 costing |
There are two ways to provide your values file.helm install -f myvals.yaml ./mycharthelm install --set foo=bar ./mychartThe order of specificity: values.yaml is the default, which can be overridden by a parent chart’s values.yaml, which can in turn be overridden by a user-supplied values file, which can in turn be over... | I am creating a helm chart that uses multiple dependencies. For some of those dependencies I would like to use their values-production.yaml instead of the default values.yaml. I have tried adding atagsection to the dependencies to call the production values but that doesn't seem to work. For example theredis charthas p... | Use values-production.yaml instead of values.yaml for Helm Dependencies |
4
You can't copy the user_data value from the state, as it is an encoded string and if you copy it into the resource configuration, it'll get encoded again before it is compared to the current state, and it won't match.
But you can copy the current user data value from th... |
I am attempting to import an existing EC2 instance into Terraform. I have taken the EC2 instance User Data, and added it to my TF config file e.g.
user_data = <<EOF
<powershell>
& $env:SystemRoot\System32\control.exe "intl.cpl,,/f:`"UKRegion.xml`""
& tzutil /s "GMT Standard Time"
Set-Culture en-GB
... | Terraform EC2 instance import - user data different |
According to theCronTrigger Tutorialdocumentation:/- used to specify increments. For example, "0/15" in the seconds field means "the seconds 0, 15, 30, and 45". And "5/15" in the seconds field means "the seconds 5, 20, 35, and 50". You can also specify '/' after the '' character - in this case '' is equivalent to havin... | As a part of a input validation I was thinking whether this is a really valid cron expression and how it would executed:0 0/0 * * * ?Quartz validation returns trueorg.quartz.CronExpression.isValidExpression("0 0/0 * * * ?")So, does this run all the time, never, every hour or every minute...? | Quartz cron expression of 0/0 |
According to this blog post, it's not a "No" but more of a "We can't be sure" (emphasis mine):NGINX tests and verifies that NGINX Plus operates correctly when it is run on a FIPS‑enabled OS that is running in FIPS mode.NGINX cannot make similar statements for NGINX Open Source...https://www.nginx.com/blog/achieving-fip... | I am investigating FIPS compliance for our platform. nginx is one of the components and we use nginx 1.15.1. I found the documentation about nginx plus being FIPS compliant.When NGINX Plus is executed on an operating system where a FIPS‑validated OpenSSL cryptographic module is present and FIPS mode is enabled, NGINX P... | Is Nginx open source FIPS compliant? |
You could go down this route:
On the other hand, multiple instances of numerous fixed-sized
pools can be used to produce a general overall flexible
general solution to work in place of the current system
memory manager.
And treat each different-sized request as a request for a new pool, i.e. your "object size" is act... |
I have a pool allocator I wrote as an exercise, which implements the C++11 std::allocator requirements up and running which works OK, but the policy I used as a reference (based on the following paper):
https://pdfs.semanticscholar.org/4321/a91d635d023ab25a743c698be219edcdb1a3.pdf
is only really good for allocating a... | Adapting a fixed-sized chunk pool allocator to certain STL containers |
1
Looks like OSG keeps cached instances of your data, either as CPU-side or GPU-side objects.
You could have a look at osgDB's options to disable caching in first place (CACHE_NONE, CACHE_ALL & ~CACHE_ARCHIVES), but this can actually increase your memory consumption as data... |
I have spent a great deal of time trying to figure out OSG's memory management.
I have a scene graph with several children (actually a LOD based on an octree).
However, when I need to reset my scene (I just want to wipe ALL nodes from de scene and also wipe the memory), I use
// Clear main osg::Group root node
m_rootN... | OpenSceneGraph memory usage when resetting scene |
-1i found it easy processing all the packets in port 53 and so i used this filterudp dst port 53tanx jack for ur hint | I want to log the websites visited in a system. So i decided to record the packets send by the system. I am using Jpcap API. I am able to record a lot of packets. Now what i want to do is i want to filter only DNS packets. I think that will be able to log the websites.I want a way to filter the DNS packets. How can I d... | capturing dns packets using java |
To configure a private repo, you first need to generate a public/private RSA key pair on your dev machine to be able to establish an ssh connection to your repo instead of an HTTP connection.
Just install Git for Windows in your development environment. During installation, please make sure that you have checked the o... |
A novice here, please type a small instruction describes how to use a private GitHub repo in VSCode
| How to use а private repository with VSCode? |
Groups are determined by the configured authentication method. Seehttps://kubernetes.io/docs/reference/access-authn-authz/authentication/for details about how each authenticator determines the group membership of the authenticated user. | I can't find documentation on how to create user group on Kubernetes withyamlfile. I'd like gather some authenticated users in group using their e-mail accounts.I'd like to write inyamlsomething like :kind: GoupBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: "frontend-developers"
namespace... | Create user group using RBAC API? |
4
I would advise you to use the AwsLambdaHook:
https://airflow.apache.org/docs/stable/_api/airflow/contrib/hooks/aws_lambda_hook/index.html#module-airflow.contrib.hooks.aws_lambda_hook
There's a test showing its use in triggering a Lambda function:
https://github.com/apac... |
I have created a function in AWS lambda which looks like this:
import boto3
import numpy as np
import pandas as pd
import s3fs
from io import StringIO
def test(event=None, context=None):
# creating a pandas dataframe from an api
# placing 2 csv files in S3 bucket
This function queries an external API and pl... | Triggering AWS Lambda function from Airflow |
New AlternativeBecause the given accepted answer does not work anymore, I thought I would explain how I was able to do it with the new changes in the github API.The new Download Api LinkFirst, I found information about downloading the archive here:https://developer.github.com/v3/repos/contents/#get-archive-linkPublic R... | We got a necessity to fetch a zipball of a private repo. For public ones it's pretty easy either through GitHub API or manually (https://github.com/user/repo/zipball/master). But what about private repos? Not exactly obvious how to do it even having oAuth token. | Is there anyway to programmatically fetch a zipball of private github repo? |
I think you should be able to name your detached branch and then merge itgit checkout -b my-new-awesome-branch
git checkout master
git merge my-new-awesome-branchYou might also want to consider, in the future, not just doing everything in the master branch and only merging things to master when you feel they've reached... | So I am using git and github. I made some poor commits and pushed them to github. I then reverted back to the most recent good commit, and started working from that branch. I did this using a command likegit checkout last_good_commit_hashI checked out to a commit, not to a branch that I had made myself.I then changed a... | I how to make an edit from a rolled back git commit the new master head? |
When you run the resulting image, ENTRYPOINT and CMD are combined into a single command. The CMD you describe will be wrapped in sh -c and then passed as command-line arguments to the program you name as the ENTRYPOINT.
(In your application, try printing out sys.argv. You should see this contain ["app.py", "/bin/sh"... |
I built a flask app and launch it in docker with the Dockerfile as below.
FROM python:3.7
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
WORKDIR /app
CMD export FLASK_ENV=production
ENTRYPOINT [ "python", "-u", "app.py" ]
In the flask app, I specified some configuration for development & ... | Flask in Docker unable to detect FLASK_ENV |
AnswerYes you can have multiple hostnames point to the same Pod(s).You can achieve this by creating multiple Services with the same label selectors.BackgroundA service creates endpoints to Pod IPs based on label selectors.Services will match their selectors against Pod labels.If multiple Services (with different names)... | In Kubernetes, one communicates with a specific serviceXby doing http requests tohttp://X:9999.Xhere is the application name. I wonder, can one add multiple names, or alias, to which it will point tohttp://X:9999? I.e can I forward/pointhttp://Y:9999tohttp://X:9999? | Can I use multiple names for a Kubernetes service? |
Solution is found to be:
run-name: >-
${{ github.event.repository.name == 'ci-systems'
&& format('My Regression tests: drv:{0} + ci-systems:{1}',
inputs.my_version,
github.head_ref || github.ref_name)
|| format('My Regression tests: {0}', inputs.my_version) }}
|
Is it possible to conditionally set run-name in a github workflow? My workflow can either be triggered from the current repo (ci-systems) with the use of workflow_dispatch, or through the use of workflow_call from another repo's workflow_dispatch.
I would love to do something like the following to have the run-name se... | How to set `run-name` conditionally in a github workflow |
Seems i got this problem since the data to stdout was buffered. According tothispost i just changed my cron job to31 10 * * 1-5 cd /home/alpha/IBpy && stdbuf -i0 -o0 -e0 python ShortData.py >> /home/alpha/logs/Shortdata.op 2>> /home/alpha/logs/Shortdata.erand every thing is working fine now.ShareFolloweditedApr 13, 20... | I have 2 python codes which i schedule using cron. My codes actually runs from 10:30am to 4:20pm everyday. from 10:30am to 11:00am my codes outputs 2-3 lines every minute and after that they start outputting 30-40 lines every minute. I have scheduled my codes like this.30 10 * * 1-5 cd /home/alpha/IBpy && python LongD... | Cron job is writing the error to error log but fails to write outputs to output log file |
1
You can try this approach:
in Gemfile:
group :test do
gem 'capybara', '~> 3.31'
gem 'capybara-screenshot', '~> 1.0'
gem 'selenium-webdriver', '~> 3.142'
in spec/rails_helper.rb:
Capybara.register_driver :headless_chrome do |app|
options = ::Selenium::WebDriver::... |
I've currently got a Rails application trying to get headless chrome working for testing.
Capybara Version: 2.15.1
Selenium Webdriver: 3.11.0
Using docker image below:
https://github.com/SeleniumHQ/docker-selenium**
Without the headless option, I see the browser boots up and the tests run without a problem. However, w... | Headless Chrome Blank White Screen |
Yes, the transfered data is still sent encrypted.-k/--insecurewill "only make"curlskip certificate validation, it will not turn off SSL all together.More information regarding the matter is available under the following link:curl.haxx.se - Details on Server SSL Certificates | I have a situation where the client makes a call through curl to a https url. The SSL certificate of the https url is self signed and therefore curl cannot do certificate validation and fails. curl provides an option-k/--insecurewhich disables certificate validation.My question is that on using--insecureoption, is the ... | curl - Is data encrypted when using the --insecure option? |
There are two ways to do this. You could use the VirtualHost section of yourhttpd.confor you could do it in your.htaccess. (assuming that the subdomains resolve to the same IP as your webserver)Inhttpd.conf:<VirtualHost *:80>
ServerName subsonic.mydomain.com
redirect / http://mydomain.com:4040/
</VirtualHost>In... | Closed.This question isoff-topic. It is not currently accepting answers.Want to improve this question?Update the questionso it'son-topicfor Stack Overflow.Closed11 years ago.Improve this questionI have a NAS/Server running at home 24/7 and run many different services on it. I have got a domain name pointing to it now,... | How to forward a subdomain to a new port on the same IP address using Apache? [closed] |
4
It's a bad practice to pass 0 or NULL as the first argument of cudaBindTexture. CUDA texture binding requires that the pointer to be bound must be aligned. The alignment requirement can be determined by cudaDeviceProp::textureAlignment device property.
cudaBindTexture can... |
I am having problem binding to texture memory a sub-portion of global device memory.
I have a large global device array filled with memory as follows:
double * device_global;
cudaMalloc((void **)&device_global, sizeof(double)*N));
cudaMemcpy(device_global, host, sizeof(double)*N, cudaMemcpyHostToDevice) );
I a... | CUDA texture memory to bind a sub-portion of global memory |
I haven't checked if these are accessible in plugins but you can try usingis_admin?orhas_role?(:admin)See below links for usage,https://github.com/SonarSource/sonarqube/blob/master/server/sonar-web/src/main/webapp/WEB-INF/app/views/components/index.html.erbhttps://github.com/SonarSource/sonarqube/blob/master/server/son... | I am writing a Sonar plugin and need to display certain elements in my widget (html.erb) according to user roles (i.e. admin).What is the recommended way to check permissions of the current user? | How to check user permissions in Sonar plugin |
I figured this one out. I was usinghttpinstead ofhttps. Here's the working code:var https = require("https");
username = "myusername";
password = "mypassword";
var options = {
host: "api.github.com",
port: 443,
path: "/repos/myusername/myreponame/issues",
headers: {
"Authorization": "Basic " +... | I'm making the following request:var options = {
host: "api.github.com",
port: 443,
path: "/repos/myusername/myreponame/issues",
headers: {Authorization: "Basic " + new Buffer(username + ":" + password).toString("base64")}
};
var request = http.get(options, function(response) {
response.on("data", ... | Socket hang up error from GitHub API using Node HTTP request |
Gotcha!!! If the error message said "This Lambda function is not authorized to perform: CreateNetworkInterface" then it would have made more sense that the Lambda role needs to be modified with appropriate policy.
Fixed the problem by adding the policy to the role that the Lambda was using:
{
"Version": "2012-10-1... |
I am trying to setup my Lambda to access my Mongo server on one of the EC2 instances in VPC. After selecting all the subnets and security groups, I get the following error when saving
"You are not authorized to perform: CreateNetworkInterface."
I believe, I need some sort of policy setup in AWS IAM to allow this.
I ... | How to setup IAM policy for AWS Lambda in VPC to resolve error "You are not authorized to perform: CreateNetworkInterface." |
The nginx.conf code you have is a bit confusing and incomplete, because you don't actually show any code that does the actual serving ofhttps, so, it's unclear how the whole setup would be working at all.Theproxy_redirectshould generally be left at its default value ofdefault, unless you specifically know what you want... | I'm using Nginx toredirect all HTTP requests to HTTPSin my spring boot application.This is the nginx configuration that i'm using,with that i was able to redirect all requests to Https but when i do it i get thestatus codereturned correctly but it doesnt have thestatus code nameanymore.if i remove nginx and run spring ... | HTTP status code names are missing when using Nginx |
This is quite easy: Use a flag fileScript running without user interaction (may be started by cron or shell, including PHP shell execute):<?php
while (true) {
while (file_exists('/path/to/flagfile')) sleep(1); //Can even use microsleep
include ('/path/to/worker/script');
touch('/path/to/flagfile');
}
?>Script to ... | I have a quite slow script that need to be executed frequently (about 30 times in a minute) so the user can't execute it and the cron job runs at most every minute.So, is there a way (using PHP) to let the server works instead of the user? | PHP - Start a cron job manually / let the server works instead of the user |
Image signing hasbroken before in the pastso I suspect this is just something down upstream at Docker (I'm pinging some of my contacts on this, but the weekend has already started for many so it might be a bit until they respond).Notary version 1 hasn't had much uptake, which is why this can go so long with so few noti... | I'm trying to determine which alpine image version on DockerHub I should use.I saw the latest tag for alpine on DockerHub (as of 04/23/2021) is 3.13.5 so I ran this command:$ docker trust inspect --pretty alpine:3.13.5
No signatures for alpine:3.13.5I checked an older version of alpine and got this:$ docker trust insp... | Docker image has no signer when running "docker trust inspect" |
A workaround would be to use https addresses for GitHub repo (https://github.com/username/yourRepo), and putting your GitHub credentials in a %HOME%/_netrc file: see "Syncing with github".
The other alternative would be to check out http://windows.github.com, and see if that setup works.
It will create its own ssh pub... |
I successfully installed git bash on my windows 7, and it worked for quite a few days. But in the recent days I'm always getting the same error:
Disconnected: No supported authentication methods available.
Running the command "ssh [email protected]", I get a success message:
Hi xxxx, You've successfuly authenticated... | My git bash doesn't work with github |
Yes, it is possible usingHttpResponse.RemoveOutputCacheItem Method. Check this question:SO - How to programmatically clear outputcache for controller action methodShareFolloweditedMay 23, 2017 at 12:34CommunityBot111 silver badgeansweredJul 29, 2009 at 18:10eu-ge-neeu-ge-ne28.1k66 gold badges7171 silver badges6262 bron... | I'm using the OutputCache attribute to cache my action's html output at the server-side.Fine, it works, but now I have a situation where the content changes rarely, but when it does, it's critical for the user to see the new data the very next request.So, is there a way to abort the page cache duration programmatically... | Abort OutputCache duration programmatically in asp.net mvc |
I just find out that the problem was because the nodes that I used.I used 3 micro-type server and it failed to give resources to mysql instance and when I upgrade it small or to normal server It works as it should. | I have tried multiple times to install Mysql with kubernetes 1.8 in Google Container Engine by following the tutorial fromKubernetes Page. The PV, PVC and the Service are created succesfully, but the POD is always giving me errorPersistentVolumeClaim is not bound: "mysql-pv-claim" (repeated 3 times)When I runkubectl ge... | How to Install Mysql in Kubernetes with GCE |
but also changed the files within master to match branch1.That shouldn't have happened. Probably you haven't properly added the modified files and/or committed them tobranch1in the first place.Usegitk --allcommand to review what you have uploaded to git so far and search for files that you have changed but are not show... | Assuming I create a project, and create a branch calledbranch1.After a enough modifications thatbranch1andmasterare both very obviously different, i want to go back tomasterand test the two independently.I usedgit checkout masterand it brought me to the master branch but also changed the files within master to matchbra... | Github: using checkout wrong? |
My experience: I was trying to create single HTTPS contact point for my application, so I tried setting up internal load-balancer hoping when I point it to A Record in Route 53 it would work with just A Record url.To answer your question :Internal Load Balancers do list in Load Balancer listing for Route 53.You can not... | I've setup an internal load balancer for my SQL read servers in EC2, but I can't figure out how to point DNS at it. I have a private hosted zone in Route 53. When I attempt to setup an ALIAS record to the LB, the internal load balancer does not appear in the dropdown, though all the public LBs do, which leads me to b... | AWS Route 53 DNS alias for internal load balancer |
How about you track your memory manually? In every constructor:
global_size += sizeof(*this);
and in every destructor:
global_size -= sizeof(*this);
Caveats:
If you use inheritance, you need to make sure not to count object size multiple times.
Only structures you modify with the above code will be counted, not any... |
Hi and thanks beforehand for your help.
First of all, this is for a homework, but I've done almost everything I need. We were asked to implement a linked list class, do some adding and deleting on it, and calculate it's memory usage.
I have the lists done, and the adding and deleting (from a text file). All of that is... | C++ Find out dynamic memory in use |
Ok I found the correct steps to keep the UID attribute:1)Open the file/etc/pki/tls/openssl.cnfand add these lines[ new_oids ]...UID=0.9.2342.19200300.100.1.1...[ policy_match ]...UID = optional...[ policy_anything ]...UID = optional...2)In theopenssl reqcommand add the option-sub... | I have a certificate signing request generated with this command:openssl req -config extensions -new -newkey rsa:4092 -nodes -keyout certificate.key -out certificate.csrThe extensions file contains these fields (among other)[req_distinguished_name ]
UID = ABC1234
CN = MyCertificateCNIf I dump the csr subject I get:open... | UID attribute is missing from the subject after that the certificate signing request is signed |
this gives you the PVC for each podkubectl get pods --all-namespaces -o=json | jq -c '.items[] | {name: .metadata.name, namespace: .metadata.namespace, claimName: .spec | select( has ("volumes") ).volumes[] | select( has ("persistentVolumeClaim") ).persistentVolumeClaim.claimName }'ShareFollowansweredAug 25, 2022 at 5... | I have several Persistent Volume Claims in Google Kubernetes Engine that I am not sure if they are still used or not. How can I find out which pod they are attached to or is safe to delete them?Google Kubernetes UI tells me they are bound but not to which container. Or maybe it means they are bound to a Volume Claim.ku... | How to find which pod is using a Persistent Volume Claim in GKE |
The problem is both directories are git repositories in which case you would have asubmodule.You can see a submodule is added by this commitSubproject commit 395ee793f20a65d483a50cb1d11b67e7f80729d0.Toremove git submodule but keep filesfollow this instructions.mv client subfolder_tmp
git submodule deinit client
git rm ... | I pushed go & react codes to github.Go codes are successfully commited but React codes are not.React content is created bycreate-react-app.article
├ api
│ └ main.go
└ client
└ React content made by create-react-appimage of githubHere is target githubhttps://github.com/jpskgc/articleI trid following command, but not... | Content of create-react-app is not pushed in github |
Curl and Postman seem to be automatically Base64 encoding your Authentication credentials.The responses are the same. The latter response is a Base64-encoded token of the first response. | I'm trying to add a POST HTTP method to my AWS API Gateway. I'm using SAM framework with Python.I find that there is a difference in the "body" of the response when it is generated from my desktop (curl or postman) and the AWS API Gateway 'TEST'Right now, the "POST" command only prints the 'event' object received by th... | Difference in request body in aws api gateway test and curl |
You can do it like that, many used Bolt 2 that way. But of course, it's more secure when you move some parts out of the web accessible folder. But for that, I would suggest using Bolt with a subdomain like blog.yourdomain.com. | I installed (via FTP) Bolt CMS only for a blog section of a website as I don't want to re-create the entire site in Bolt, just add a blog. I did this by adding all of Bolt's files in a folder www.mysite.com.au/blog and used the index page of Bolt as the blog page. It all works perfectly, however I am now concerned beca... | Installing Bolt CMS within a subfolder |
You can create a library project which contains the jar file, and then add this library to your project.
Create library project in eclipse:
File->New->Android application project->Next->Check Mark this porject as a library,
uncheck Create custom launcher icon and Create activity->Finish
Add the library to your project... |
I added the Google Gson jar file to my Android project by copying and pasting the gson-2.2.4 jar file to the libs folder and then right clicked on the Jar file and then select Build Path > Add to Build Path(I followed this tutorial). Then everything worked fine for me with this jar file, but after pushing to github, w... | Android project jar file missing after pushing to github |
Make sure you have created a local git repo at the root of your Hugo project: there should be a .git subfolder.Make sure there is no other .git folder in the children or parent folders of that project.Check yourgit remote -voutput: you can use an SSH or HTTPS URL for your remote.Check if you have any .gitignore files w... | I have been going in circles for days and would appreciate your help.I used the Hugo quickstart guide to create a repo on my local machine:https://gohugo.io/getting-started/quick-start/I cannot figure out how to push this to either Github or Bitbucket. My preference is Bitbucket bc they have private repos, but I ran in... | How do I set up a Hugo site on Github or Bitbucket? |
The link to the github repo you provided gives information on how to add it as a maven dependency, so assuming you're using gradle (which is standard for new projects in Android Studio) you should just have to add
compile 'ws.wamp.jawampa:jawampa-core:0.4.0'
to the dependencies section of the build.gradle file under ... |
I need to install a library from java with source on GIT jawampa
Im not sure how to install in my android intelliJ project, I think I have to import jar, but where is the jar here?
| install Java library [GIThub source code] on android |
Install the nvidia-driver-440 from thenvidia deb repowill fix it.The nvidia driver and client library should come from the same repository or the version most likely mismatch. | I have installednvidia driver 440.64.After reboot, I get a black screen instead of the login screen. I pressed CTRL+ALT+F3 to console login and typedsudo prime-select intel. The login screen appears and I can login.After login, I typenvidia-smi:NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA drive... | NVRM: API mismatch despite having the same version on client and kernel |
1
+50
As long as your code is in C, easiest solution would be to write simple nginx module which provides a variable with the decrypted value. Relatively simple example of how to provide a variable may be found in ngx_http_secure_link_modu... |
This may be better servered on ServerFault, however, I'm evaluating nginx to determine if it's able to solve a particular problem.
Problem
I want to use nginx response caching with FastCGI Cache. But I need to set the cache key with a value from a cookie. The problem is the cookie needs to be decrypted before I can ge... | Set cache key by calling an external C code in nginx configuration |
<div class="s-prose js-post-body" itemprop="text">
<p>According to the MySQL Docker image <a href="https://hub.docker.com/_/mysql/" rel="noreferrer">README</a>, the part that is relevant to data initialization on container start-up is to ensure all your initialization files are mount to the container's <code>/docker-en... | <div class="s-prose js-post-body" itemprop="text">
<p>I want to set initial data on MySQL of container.
In docker-compose.yml, such code can create initial data when running container.</p>
<pre><code>volumes:
- db:/var/lib/mysql
- "./docker/mysql/conf.d:/etc/mysql/conf.d"
- "./docker/mysql/init.d:/docker-entrypoi... | How to initialize mysql container when created on Kubernetes? |
To undo changes that have been made, first checkout the rollout historykubectl rollout history sts <name> -n <namespace if not default>.Get more details about a revisionkubectl rollout history sts <name> --revision <number> -n <namespace if not default>.Undo the changeskubectl rollout undo sts <name> --to-revision <num... | I have a PostgreSQL Kubernetes Service based onPatroni/Spilo.
This Kubernetes service deploys a cluster of three PostgreSQL pods + three Etcd pods.
During maintenance, I had a failure and I wasn't able to restore the old configuration that worked fine before the rolling update.I searched for documentation and it seems ... | How to cancel a broken StatefulSets rolling update? |
These arebytes of codeper language in this repo. | I am getting some data from Github API and I encountered that to get languages for a particular repository I get following object. I want to know that what do these value numbers mean?{
"JavaScript": 1300078,
"CSS": 71202,
"Shell": 2513
} | Github API languages endpoint |
I think you need to create another output it's HLS output group and setup destination to MediaStore.AWS Elemental MediaStore is an AWS storage service optimized for
media. It gives you the performance, consistency, and low latency
required to deliver live streaming video content. AWS Elemental
MediaStore acts as ... | I'm using AWS MediaLive to push video content in real-time from mobile devices.
Then I'm using AWS MediaPackage to digest the input, i.e. the output from AWS MediaLive.
With AWS MediaLive I create origin endpoints to let users/viewers watch live streamings.Now, I don't know how to store the live streaming video to S3 a... | AWS MediaLive MediaPackage - How to store realtime streaming videos to S3? |
I'm not too familiar with Webview. but in ordinary websites you can use the querystring to emulate a unique adress, while still loading same image. this is often used on webpages on css files.
example: http://www.webpage.com/image.jpg?cachekey=23456456754
by randomizing the cachekey every time the image loaded, it is ... |
I have a WebView that just displays an image from the external SD-card. This works well, however if the image is overwritten with new data, the WebView does not update the image.
This is even more curious because the WebView is created totally new in the onCreate method of the activity. Here is my code:
@Override
publ... | WebView loading outdated local images. How to update? |
There is one GC thread per .NET process and therefore one Heap per process. However, the objects are mapped to the individual AppDomains in order to provide process isolation benefits. While there can be more than one AppDomain within a process, by default there is only one per process.
Terminal Services:
What this ... |
Is there
one Garbage Collector for an entire system
one instance of a garbage collector for each user that is logged in
one garbage collector for each running .NET application
Or is it none of the above (please explain)?
| .NET Garbage Collector - Terminal Services |
A PR refers to a branch you want merged into master (or any other branch it's raised against). Pushing additional commits to the branch you opened the PR on will add them to the PR. | Am asking this question because, after raising PR and send it for review to multiple teammates, I see the necessity of creating new commits, before PR is closed with merge or no-merge.Is PR request mainly indicating a feature branch to review?OrIs PR request mainly indicating a specific commit on a branch for review? | Does PR request relate to a branch or a specific commit in a branch? |
This looks to be caused by a patch done in Version 3.3.2 of Helm for security based issues.Reference Issue:https://github.com/helm/helm/issues/8761Security Patch:https://github.com/helm/helm/pull/8762 | According tocert-manager installation docsjetstack repository should be added:$ helm repo add jetstackhttps://charts.jetstack.ioIt gives error message:Error: looks like "https://charts.jetstack.io" is not a valid chart repository or cannot be reached: error unmarshaling JSON: while decoding JSON: json: unknown field "s... | Kubernetes Helm: not a valid chart repository |
This was an SSH error. For anyone with a similar issue, please ensure that Git is looking for yourid_rsain the correct place :)ShareFollowansweredMar 6, 2018 at 13:24CheapApples12CheapApples129711 silver badge88 bronze badgesAdd a comment| | I apologise if any part of this is confusing; it's currently 11:21PM, and I've been trying to get this working since 1PM.I'm cloning a private Github repository to my working directory usinggit clone[email protected]:username/repo.git /var/www. This works perfectly! No troubles.I have setup a webhook on Github's side t... | Update cloned repo from Github |
Pass theregion_namewhen creating the clients3client = boto3.client('s3', region_name='eu-central-1')Then list objects from the bucketobjects = s3client.list_objects(Bucket='sentinel-s2-l1c')ShareFollowansweredFeb 7, 2017 at 13:42franklinsijofranklinsijo18k44 gold badges4848 silver badges6565 bronze badges22Someone bett... | I'm trying to list files from a public bucket on AWS but the best I got was list my own bucket and my own files. I'm assuming that boto3 is using my credentials configured in the system to list my things.How can I force it to list from a specific bucket, rather than my own bucket?#http://sentinel-s2-l1c.s3-website.eu-c... | Use boto3 to download from public bucket |
Well, thatblog postis ofDecember 6, 2016, so might be outdated.As of now, according toGitHub Helpthe diff limits areBecause diffs can become very large, we impose these limits on diffs
for commits, pull requests, and compare views:No single file's diff may exceed 20,000 lines that you can load or 1
MB of raw diff d... | Instead of the commit diff -- concerning one of my commits -- github just tells me:Sorry, this diff is taking too long to generate.
It may be too large to display on GitHub.If I append.patchto the end of the URL, I get the following message:error: too big or took too long to generateI admit that the diff size is 3.6 mi... | github does not display commit diff, too large |
Sincejustjavafolder turned out to be a submodule, in the super directory, I calledgit rm -rf --cached justjavaassuggestedby @fusiongate and answered inthis question.This works in that it allows the file to be added and committed, but the commit history on this file is lost. | Git seems to be tracking the java folder, but I can't commit changes to the specific fileMainActivity.java. I get a "Changes not staged for commit"
The diff shows the changes, but I can't commit it.Also, I can't go down into the folder in Github.That folder is not clickable.Edit:When I dogit statusin the command line, ... | Getting "detached HEAD" error despite deleting git submodule |
Storing an actual database in git will not work at all.However, you should store the SQL / DDL code used to generate the database in git.You should be able to recreate the base state of the database from your git repo. | I'm new to GitHub and have a Java application in my local GitHub folder. It works like a charm to commit and push etc. Now I would like to add a MySQL database to this folder as well.Is this wise, or should I keep it in the default Workbench folder that I normally use. I just figured it would make sense to have all the... | MySQL database in GitHub folder |
The following discussion covers setting up SonarQube for a javascript project:https://community.sonarsource.com/t/sonarcloud-analysis-for-javascript-application/10591/3I just went through the process for the first time. The key is getting the lcov.info file, which Elena mentioned can be produced by Karma. The following... | I am kinda newbie in using Sonar and plugins for javascript code coverage.Which are the possibilities to find out the quality (including code coverage) of javascript code when analyzed with Sonar?Currently I am using karma runner which delivers a code coverage report. Is it possible to use it in Sonar?Thanks. | javascript code coverage in Sonar |
You are being very inefficient in managing bitmaps in memory and you likely have a memory leak (not freeing bitmaps from memory when you are done with them or keeping them around in activities that don't get garbage collected). The Android Developers have a page for proper bitmap management:http://developer.android.co... | I have a routine that manipulates a Bitmap to convert form RGB to Grayscale.It works fine usually, but when I try to use it on a Bitmap which is 1088kb in size it gives me this Error:java.lang.OutOfMemoryErrorI am using the Emulator. 1088kb is not a very big picture, how can it be exhausting the memory?To be precise t... | Android Emulator: java.lang.OutOfMemoryError when manipulating a Bitmap |
git://github.comis not an SSH URL, it is a Git-protocol URL.Trygit config --global url."[email protected]/".insteadOf git://github.com/Anygit://github.com/will be replaced by the SSH URL[email protected]/... | I cloned the application commcare-hq after installing python and django in my cpanel. here's the link:https://github.com/dimagi/commcare-hqbut whenever i enter the following commandgit submodule update --init --recursivei get the following errorfatal: clone of 'git://github.com/dimagi/xml2json.git' into submodule path ... | git submodule update via ssh error |
1
Your docker-compose.yml file had problems. such as:
#- --providers.docker=true
you should open it.
- --providers.docker.endpoint=tcp://127.0.0.1:2375
- "/var/run/docker.sock:/var/run/docker.sock:ro"
you told traefik to use tcp://127.0.0.1:2375, but you set /var/run/doc... |
I'm currently learning how to use Traefik and Docker Swarm, and to that end I've been trying to set up a simple whoami service that Traefik can route to. However, no matter what I try, I can't get Traefik to see any Docker Swarm services. Here is my compose file:
version: "3.7"
services:
traefik:
... | Traefik not seeing Docker Swarm services |
I guess these should do:RESET QUERY CACHE;
FLUSH STATUS, TABLES WITH READ LOCK;Please read the appropriate manual sections and make sure you know what you are doing ;)http://dev.mysql.com/doc/refman/5.1/en/reset.htmlhttp://dev.mysql.com/doc/refman/5.1/en/flush.html | i am reading here on mysql.com, there are multiple variants of this FLUSH / RESET command.what is the most aggressive method of flushing EVERYTHING POSSIBLE (caches, buffers, EVERYTHING) from mysqld?we want to get as close to 'just started' as possible, without shutting down the daemon.thanks! | what is the most aggresive FLUSH / RESET mysql command to clear query cache (and anything else...) |
Each individual value is not stored whenGetMetric().TrackValue()API is used with the default aggregations, one value is produced after 1 minute and that value is sent to AI with sum/count/min/max/... distribution. Therefore, it's not possible to plot percentiles of the original data points in Analytics later on.There a... | I've used Prometheus to storeperformance metricsand query the results as percentiles (ex. 95th percentile response timing). I usedprometheus-netto emit them.What is the equivalent in Azure AppInsights?I see there arepercentile functionsin AppInsights/Kusto but when I use GetMetric("blah").TrackValue(42) it stores Count... | How to do percentiles on custom metrics in Azure AppInsights? |
When you consider the history:
If nponeccop contains commits already present on kayuri, then, when on repo nponeccop, a simple:
git checkout master
git fetch kayuri
git rebase kayuri/master
git push -f origin master
should be enough to replay only the delta on top of the remote named nponeccop (ie you add nponecco... |
What I have:
https://github.com/kayuri/HNC/network
The two repositories are in sync.
How we can make kayuri repo containing a linear history of commits without any merges, and nponeccop repo containing no commits at all (because they are all already in the upstream kayuri repo?
My local repo was created by git clone... | Duplicate commits in the network on GitHub |
The solution is to use only mod_rewrite. When you mix mod_alias (Redirect Permanent) and mod_rewrite (RewriteRule) directives together, both modules will get applied to every URL, and in cases where both get applied, you end up with some unexpected behavior.The first thing you need to do is change theRedirecttoRewrite:... | i have a webshop where we switch the subdirectory. From "/shop" to the root "/". Also some Product- and category-names change.I want to redirect some specific URLs to newer ones. For Example:www.domainname.de/shop/product_abctowww.domainname.de/product_abc_v2For this, I use theRedirect Permanentdeclaration in the .htac... | .htaccess: "redirect permanent" with fallback to a "RewriteRule" |
Try this:kubectl get pods -A --field-selector spec.nodeName=<node name> | awk '{print $2" "$4}' | I want to list a node's pods and pod statues, eg.Node A
Pod1 Status
Pod2 Status
Node B
Pod1 Status
Pod2 StatusIs there akubectlcommand I can use for this? | Kubernetes: list a node's all pods and pod statuses |
It sounds like you need to tweak your rolling update strategy. You can find similar discussionshereandhereconcerning performing rolling updates without getting errors.The upgrade strategy is important to define how many unavailable pods you can have during the update. For now downtime, you may want to set this to 0 and... | I am usingHelmCharts for deployments ongoogle-kubernetes-engineand using rolling-update in it.Currently I am running 10 pods. When I make deployment usingrolling-update, I expect a new pod comes up and traffic is stopped from the old pod going down and then it is gracefully taken down. And so on for next pods.But in my... | Deployment via google-kubernetes-engine: Internal Server Error[500] (Google Cloud Platform) |
4
I have tried this in my project and it works very well. It hides navigation bar so the playController's view doesn't shift down by a navigationbar height (about 64 pixels).
- (void) jumpToPlayVCversion1
{
UIViewController *viewController = [self.storyboard instantiateVi... |
This question is about a very popular Github sidemenucontroller project named RESideMenu.
I started coding an application using REFrostedViewController and it is working mostly fine.
However, by the arrival of IOS8, I think RESideMenu looks more modern and is a better option for me.
I have got a small problem which I ... | How to jump to desired UIViewController using RESideMenu or REFrostedViewController |
As I describe here, the Allocations instrument does not show the total memory usage of your application. The 5 MB you are seeing in that instrument is only the tip of the iceberg.
Instead, you'll need to use the Memory Monitor instrument to see your application's overall memory size. I think you'll be surprised at... |
I've looked carefully at leaks and I have none (very few - all under 400 bytes). I've read a few posts about not using imageNamed calls as they cache the images. I'm not using any of those. I'm using imageWithContentsOfFile.
I AM using lots and lots of images. Mostly rendered myself using graphics contexts. I'm releas... | iPad application out of memory after only 5MB |
0
As long as you follow the expected layout structure, it shouldn't be a problem.
Just push your artifacts at the right location.
Check this layout structure -> https://svn.codehaus.org/grails/trunk/grails-plugins/
In your project, you would a repository definition such as ... |
Is it possible to integrate sources from github in Grails BuildConfig.groovy? Normally, you would use the dependancy or the plugin section to integrate sources, but how can I integrate snapshots from Github?
| How to integrate dependencies from Github in Grails? |
4
The problem is that maxAge option of express.static use the Cache-Control header.
maxAge: Set the max-age property of the Cache-Control header in milliseconds or a string in ms format.
In the Expires header docs you can find the following:
If there is a Cache-Control h... |
I'm trying to setup browser caching on my website without any success
There is my code on my server.js file
app.use(function(req, res, next){
res.set({
Expires: new Date(Date.now() + 2592000000).toUTCString()
});
next();
})
app.use(express.static(path.join(__dirname, '../build/public'),{maxAge:2592000000}));
Wh... | browser caching express nodejs |
Don't to this:
[self.postResultsArray release];
When you do this, the ivar is still assigned to the old array's memory address. If you want to release the array, there are two safe ways to do it:
[postResultsArray release];
postResultsArray = nil;
Or
self.postResultsArray = nil;
What's happening is that the code for ... |
I try to understand the memory management in ObjectiveC and still some things are a misery for me.
I've got an instance variable:
NSMutableArray *postResultsArray;
when a button is clicked in the UI I create new array:
self.postResultsArray = [NSMutableArray array];
then I add some objects to the array and when... | Can a variable bu used 2nd time after releasing it? |
0
This issue is mainly caused by the working directory. Please check the project directory name, it should not contain any path, only the folder name is allowed. You can check with below steps:
Check default working directory. In the console window of RStudio, input get... |
I am trying to commit in RStudio, but am running into a 'Directory Name is Invalid' error. This happens every time I attempt to commit my changes. I have successfully committed before from this same PC to the same github repository I am attempting to now.
Initially, I cloned the repository through Rstudio by creating ... | RStudio, directory name is invalid |
Since ID generation for the built in users collection is always'STRING'and cannot be altered, you can do:check(userId, String);If you are using'MONGO'ID generation for other collections, you'll want to do:check(docId, Meteor.Collection.ObjectID); | When doing checks with theaudit-argument-checkspackage, how should you do the matching when checking aMeteor.userId()? Does the userId needs to be really checked?Meteor.publish('scores', function(userId) {
check(userId, Match.any)
return Scores.find({userId: userId})
}) | audit-argument-checks and Subscriptions in Meteor.js |
Answering my own question. It seems that docker keeps adding layer to the base image whenever one commits to the image. However little you make your container committing it to the base is going only to add a new layer over the existing image which is always going to inflate the image. The problem with this approach is... |
Recently I created a docker container from a centos base image which ran a jboss. Originally I had installed the jdk (and committed) which made the container bulky (about 850M). Later, I uninstalled jdk and installed jre. From inside the container a
du -xsh /
shows only 440M. But after committing the changes to the ... | Docker image size not matching the container size after a commit |
There are two related problems with your use of the command line, neither of which is specific to Git:Parentheses need to be escaped. Your command line shell is actually an interpreter, and parentheses are significant to it.Spaces need to be escaped. Spaces separate commands and arguments. Assuming you've escape the pa... | I have this file:Default (OSX).sublime-keymapand when I trygit add Default (OSX).sublime-keymapI get the following error:sh: syntax error near unexpected token('` is there a workaround...or I need to rename the file... | Git can't add file |
The only reliable solution will be:acquire new certificate now (in advance), get its details (thumbpring, public key, whatever else properties you use for pinning)make mobile application (external endpoint) update to trust existing and newly acquired certificate.push update to appropriate stores (where clients can get ... | We have the following situation and need an advice, since nobody ha a previous experience with pinned mobile applications.We have one wildcard SSL certificate for the domain, maintained at Azure - *.example.comThere are multiple endpoints that the cert had been applied to, including the the one that is used by mobile a... | Best practice for wildcard SSL certificate renewal in Azure, having pinned mobile application |
If you want start./foo bar -a=A -b=Bin container, your deployment should contains- name: foo
image: username/image:tag
command: ["foo"]
args: ["bar", "-a=A", "-b=B"]https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/Be sure you have path tofoobinary in your$PATHenviroment v... | I have to write a deployment file for my application which takes run time commands and arguments at runtime.
e.g../foo bar -a=A -b=BThis is my deployment file :apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: foo
spec:
replicas: 1
template:
metadata:
labels:
name: foo
spec:
... | How to pass command and argument to a container in deployment file of kubernetes |
You need to pass the build argument in docker composeversion '2'
services:
php:
build:
dockerfile: php7-fpm
args:
TIMEZONE: ${TIMEZONE}
volumes:
- ${APP_PATH}:/var/www/app
- ./logs:/var/www/logsTheenvironmentare passed to the running containe... | I'm using Docker and Docker-compose to build a stack of nginx+php.I'm trying to set the timezone in my.envfile and use it in a Dockerfile, but I might be missunderstanding something from thedocumentation..env# Timezone
TIMEZONE=Europe/Madriddocker-compose.ymlversion '2'
services:
php:
build: php7-fpm
... | Docker-compose: Set a variable in env file and use it in Dockerfile |
SonarQube 6.7 was released on Nov 2017 and we generally release LTS every ~18 months.
Our plan is to have a new SonarQube 7.x LTS around Q2 2019, and the current schedule targets end of May. | My team want to upgrate a global project environment, including sonarQube.
Will be there another LTS sonarQube in 2019 ? | Will be another LTS sonarQube in 2019? |
Sealed Secretscan be created by anyone but can only be decrypted by the controller where the secrets are created, follow thisblogauthored by Vidushi Bansal for more information. So in order to usesealed secretsfor multiple kubernetes clusters you need to maintain helm directories or repositories and set the target clus... | What is the common way to deploy a chart(which contains sealed secrets) to different clusters?Because the clusters contains different sealed-secret controller (with different secret key) it seems unfeasible.Or is there any way to install a sealed-secret controller with the same secret key as the other clusters? | Sealed secret on different clusters |
There is someinformation on this on the docker-registry website. In short, it seems designed to support multiple registries talking to the same data-store so you shouldn't see any problems.If reliability is a real issue for you, it might be wise to look at one of the commercial offerings e.g.enterprise Hubor theCoreOS ... | We are currently running a private registry on one server hosting all our images on it.
If the server crash, we basically loose all our images. We would like to find a way to enable high availability on our images.
An easy solution I see would be to have a registry instance per server.
A load balancer would redirect(R... | Private docker registry and high availability |
The URL to static images are hardcoded to the old GitHub source repository (SonarCommunity/sonar-github). GitHub used to provide a redirection, but it is no more working.There's a ticket to fix this (SONARGITUB-32) and we're going to make a release soon. | Lately our SonarQube PR analyses have been with broken images, as it seems that the requests tohttps://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.pnggenerate404: Not Found.And our PRs look like this:I could not open up ticket as it seems SonarQube community requires that the issu... | SonarQube icons are not showing correctly |
The version number shown describes the version of the JRE the class file is compatible with.The reported major numbers are:Java SE 21 = 65,
Java SE 20 = 64,
Java SE 19 = 63,
Java SE 18 = 62,
Java SE 17 = 61,
Java SE 16 = 60,
Java SE 15 = 59,
Java SE 14 = 58,
Java SE 13 = 57,
Java SE 12 = 56,
Java SE 11 = 55,
Java SE 1... | I am trying to useNotepad++as my all-in-one tool edit, run, compile, etc.I haveJREinstalled, and I have setup my path variable to the.../bindirectory.When I run my "Hello world" in Notepad++, I get this message:java.lang.UnsupportedClassVersionError: test_hello_world :
Unsupported major.minor version 51.0
at java.... | Jenkins job fails while integrating the sonarqube [duplicate] |
If you look at the documentation, you will see that Gtk pointers are all derived from gobjects. Consult the docs ong_object_refandg_object_unrefbut, basically, they hold a count of how many copies are being held. Ifg_object_unrefresults in a usage count of zero then the object is automatically deleted.Creating the wind... | So I'm programming an application in GTK+ in C++ (I should probably be using GTKmm, but I'm not) and with GTK+ all widgets and such are pointers which isn't really ideal, but it doesn't make programming really any more difficult. However, what happens to those pointers when the window is closed? Does GTK+ pull a Java... | How does GTK+ deal with pointers? |
-1
log to the file /proc/1/fd/1 (or fd/2)
monolog:
handlers:
...
stdout_unfiltered:
type: stream
level: debug
path: '/proc/1/fd/1'
stderr:
type: stream
level: warning
channel... |
I have a PHP/Symfony app running in Docker which uses Monolog to log to stdout/stderr. This all works great, except when running Symfony console commands inside a container.
monolog:
handlers:
stdout:
type: filter
handler: stdout_unfiltered
max_level: notice
... | Monolog stdout/stderr logs to current terminal process in Docker |
Pod priority feature is not available prior to Kubernetesv1.7Fromv1.8+, you can add pod's priority in PodSpec. You need to create PriorityClass object with priority value and use that PriorityClass name in Pod.But uptov1.9, PriorityClass is still in alpha phase.apiVersion: scheduling.k8s.io/v1alpha1
kind: PriorityClass... | I have some burstable pods running in cluster, which I do not want to be killed in case of memory/cpu pressure.Is there any way to increase it's priority or something, so that we do not have to change it's namespace (kube-system for making it critical) and it can be saved?I have found someissuesregarding adding priorit... | Priorities in Pods in Kubernetes |
1
In SQL Server 2000, you can use this query to list out the complete text of stored procedures, they can span multiple rows.
SELECT
o.name,o.id,o.xtype, c.colid, c.text
FROM dbo.sysobjects o
INNER JOIN dbo.syscomments c ON o.id = c.id
WHERE o... |
What is the query to backup the stored procedure of a database in SQL Server 2000?
| Backup Stored Procedures |
One possible workaround is to add the username of anyone you want to be allowed to trigger the job to theAdmin Listwithin the GitHub Pull Request Builder plugin section of Build Triggers in your Jenkins job.Also, if the repository is part of a GitHub organization you can simply add your organization name to theList of ... | When triggering a job on a pull request this comment "Can one of the admins verify this patch?" is automatically added to the pull request how can we disable this on the GitHub Pull Request Builder plugin?thanks! | How can we disable this "Can one of the admins verify this patch? "on the GitHub Pull Request Builder plugin? |
We can use.mailmapto write all the commits but I think this is a bit difficult solution.
The simpler solution that I found very useful is as follows:--> First of all, usegit shortlog -sneinto your project directory to check all the users' commits with their emails.Now, if your project has the only user that is used for... | I've started to work on some projects in the past without giving my correct GitHub email address in the credentials of git from Terminal. So every commit was showed as follows:These commits are made without my user name so these commits are also not showing in the contributions section:As it is shown in image 1 that I'... | Git change user's credentials in past commits without changing the history (date of commits) |
The problem is wrong set of permissions on the file.
Easily solved by executing -
chmod 400 mykey.pem
Taken from AWS instructions -
Your key file must not be publicly viewable for SSH to work. Use this
command if needed: chmod 400 mykey.pem
400 protects it by making it read only and only for the owner.
|
Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily use... | "UNPROTECTED PRIVATE KEY FILE!" Error using SSH into Amazon EC2 Instance (AWS) [closed] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.