Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
1
Simply do mapping port for your PostgreSQL (which is running inside Docker). and from your pgAdmin4 you'll connect using localhost:<mapped_port>
If you're using docker-compose
services:
postgre:
ports:
- "8080:5432"
If you're using docker-cli
docker run postg... |
I have installed one open-source project from docker and that project has a database in PostgreSQL. Now I want to see the database from pgAdmin 4 and when I am trying to connect with "host.docker.internal" I am getting an error see image below.
| How can i see PostgreSQL UI in pgAdmin if the db is in Docker? |
Some RewriteRule should handle that quite well.
In a Drupal configuration file I found:
# AddEncoding allows you to have certain browsers uncompress information on the fly.
AddEncoding gzip .gz
#Serve gzip compressed CSS files if they exist and the client accepts gzip.
RewriteCond %{HTTP:Accept-encoding} gzip
Rewrite... |
I have simple question. I have webdirectory /css and inside is file style.css. I have manually gzipped this file and saved it as style.css.gz. I want to save CPU cycles to not have CSS file compressed at each request. How do I configure Apache to look for this .gz file and serve it instead of compressing .css file ove... | How to force Apache to use manually pre-compressed gz file of CSS and JS files? |
Tiller creates resources in a specific order (find it in the source code here:https://github.com/kubernetes/helm/blob/master/pkg/tiller/kind_sorter.go#L26)So for this specific user case there is no need for hooks or any other mechanism, just include your secret and your pods and magic will happen ;)That said, there is ... | I am creating some secrets whenhelm installis executed viapre-installhooks.Everything works great. However whenhelm deleteis performed the secrets created are not deleted. This is because any resource installed usingpre-installis considered to be self managed. So I read this could be done usingpost-deletehooks.So quest... | Delete Kubernetes secret on Helm delete |
Can you try the below. I provide below the sequence.Get the date now.Add 10 mins to the date and get a new updated dateUpdate the like triggerContext.update(null, null, date in which you have added 10 mins);ShareFollowansweredMay 16, 2019 at 19:36SambitSambit7,87577 gold badges3838 silver badges7070 bronze badges6Unfor... | I have job that will run every 10 mins. I don't want to use Spring Scheduler based on last job run next job will schedule to run. Suppose First job ran at 10:15 AM, Subsequent job needs to run at 10:25 AM. When i googled i saw posts withnextExecutionTime. When i usenextExecutionTimemy subsequent job is running at 10:20... | Spring SimpleTriggerContext get proper nextExecutionTime |
Changing MAIL_HOST in.envfile fromsmtp.mydomain.comto the name provided by your host for outgoing emails. You can find it in your email configuration settings. | I am trying to send emails using Laravel. Actually on my localhost mail is sent and works fine. But fails on production server with the following exception.stream_socket_enable_crypto(): Peer certificate CN=*.bluehost.com'
did not match expected CN=smtp.mydomain.com'Configurations1) SSL certificate is installed on th... | Mail not being sent - Laravel |
You need to also make sure you changedAllowOverride NonetoAllowOverride Allin your httpd.conf file wherever you find it.Try doing it this way.RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^page/(.+)/?$ /?cmd=$1 [NC,L] | I have the following URL on my localhost:http://localhost/?cmd=causeListByCourtName
http://localhost/?cmd=here could be any other page nameI have tried to rewrite the URL like =http://localhost/page/causeListByCourtNameI have tried this:RewriteEngine On
RewriteRule ^pages/(.+)/?$ .+/?cmd=$1 [NC,L]
# Handle p... | .htaccess file in XAMPP is not working on windows 7 |
When using theCLIformat you're using a generator of the YAML before posting it to the server-side.Since Kubernetes is a client-server app with a REST API in between, and all actions need to be atomic, the posted YAML needs to contain the content of the linked file(s), and the best way to do that is by embedding them in... | I want to store files in Kubernetes Secrets but I haven't found how to do it using ayamlfile.I've been able to make it using the cli withkubectl:kubectl create secret generic some-secret --from-file=secret1.txt=secrets/secret1.txtBut when I try something similar in ayaml:apiVersion: v1
kind: Secret
metadata:
name: so... | How to set secret files to kubernetes secrets by yaml? |
Typically, your workflow in GitHub will go something like this:
git pull origin master
# work work work
git commit -m 'I made some changes to android-topeka'
git pull origin master
# resolve merge conflicts
git push origin master
The general strategy is to commit your local changes, then git pull the remote to br... |
I've forked a version of this
https://github.com/googlesamples/android-topeka
a few days ago.
I'm making changes to it in Android Studio. Now changes have been committed to the original project at
https://github.com/googlesamples/android-topeka
I want to merge my changes I've been making locally with that version. Bu... | How to keep forked version of github sycned |
To make all HTTP requests go to HTTPS all you will need to use is:RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]It basically says, if HTTPS is not ON, then it will change it to https:// | After setting up letsencrypt on a vps my these are the rewrite conditions set by letsencrypt:RewriteEngine on
RewriteCond %{SERVER_NAME} =xy.com [OR]
RewriteCond %{SERVER_NAME} =www.xy.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]It works fine, but I would like to redirect requests to 'ht... | apache mod rewrite (all HTTP requests to HTTPs) |
. Building Cron ExpressionUsing the Spring cron job expression@Scheduled(cron = "[Seconds] [Minutes] [Hours] [Day of month] [Month] [Day of week] [Year]")NB year field is optional#used to specify day of the week and week the task should start.eg first Saturday of every month(7#1)?represents no specific value and can be... | I'm writing a scheduled task that need to run every 1st Saturday of each month.
I came up with this:@Scheduled(cron = "0 0 23 1-7 * SAT")
// Runs on 1st Saturday of each month at 23:00
public void CleanUpScheduledTask() {
}How did I come uo with this:0 0 23means at 11:00 PM everyday1-7 *means between 1-7 every monthSAT... | Spring scheduled task cron expression validation |
Yes, you don't need an instance ofDataContext, only the type.MappingSource mappingSource = new AttributeMappingSource();
MetaModel mapping = mappingSource.GetModel(typeof(MyDataContext));Here I'm usingAttributeMappingSource, you could useXmlMappingSourceor other implementations ofMappingSource. | Is it possible to access Linq to SQL mapping data without a DataContext instance?I ask because I am writing some audit data generation code that will only trigger for some entities and some entity columns. I would like to fix up this meta data in a static constructor prior to any Linq DB access.For example from a perfo... | Linq to SQL mapping data without a DataContext |
Based on the comments, I can add a little bit of more info.Official CB docker images are listedhere. Thetwo newest onesareaws/codebuild/amazonlinux2-x86_64-standard:3.0for Amazon Linux 2aws/codebuild/standard:4.0for Ubuntu 18.04Both these images are also open sourced (links above). Thus, we caninspecttheirDockerfilefil... | We are building our project and we have to use AWS CLI v2 to deploy our project.The runtime version that we use is this one:phases:
install:
runtime-versions:
nodejs: 12.xIs there an official AWS CodeBuild nodejs image that we can use that has AWS CLI v2 installed or do we need to create our own. Is there a... | AWS CodeBuild nodejs image with aws cli v2 installed |
The application inside Docker container by default is accepting network traffic onhttp://127.0.0.1:3000. This interface does not accept external traffic so no wonder that it does not work. In order to make it work we need to set HOST environmental variable for nuxt app to0.0.0.0(all ip addresses). We can do this either... | I'm trying to run nuxt application in docker container. In order to do so, I created the following Dockerfile:FROM node:6.10.2
RUN mkdir -p /app
EXPOSE 3000
COPY . /app
WORKDIR /app
RUN npm install
RUN npm run build
CMD [ "npm", "start" ]However, when I build the image and run the container (docker run -p 3000:3000... | Running nuxt js application in Docker |
That document is likely going to be removed soon, there's a maintained best practices document here:https://github.com/operator-framework/community-operators/blob/master/docs/best-practices.mdUsing labels and ownerRefs is a good way to connect related resources (we even enforce ownerRefs for Ansible-based Operators), s... | According to theoperator-sdk docThis is a common mistake made by operator developers.Methods for connecting Kubernetes objects through labels, OwnerRefs, status etc that may be incompatible with future updates or too restrictive in the long term.What is the right way then?
How to connect related objects whithoutlabelsa... | How to correctly connect K8S objects? |
For achieving your goal, you will need to look for two files (appengine-web.xml, cron.xml), As you already said the target tag of your cron.xml will allow you to set the module or version name, So to be able to do what you need, you can set the app name and module version in appengine-web.xml, Then you can define the m... | How can I specify both module and version in GAE/J cron?I readthispage.The target string is prepended to your app's hostname.
It is usually the name of a module.
The cron job will be routed to the default version of the named module.
Note that if the default version of the module changes,
the job will run i... | Module and Version in GAE/J Cron |
1
You refer to your process. Is this a program you wrote, for which you have control of and access to the source code? Or is this some third party provided program?
If this is some third party program, you have little choice but to file a bug, and hope they can address it... |
We have some sort of a huge memory leak going on and our process' resident memory is increasing exponentially.
pmap -x shows something like:
...
00007f4ad85cd000 10530276 9129608 9129608 rw--- [ anon ]
....
this anon is the one that is responsible for the leak
similarly cat /proc//smaps showed something like:
7... | linux pmap understanding what is running in specific virtual address space |
If you give every job a unique name, you won't have to wait for the asynchronous deletion to make a new one. This is how the cron scheduler works in k8s - it creates uniquely named jobs every time.To find and manage the jobs, you can use labels instead of the job name. | // Delete a Batch Job by name
func (k K8sClient) DeleteBatchJob(name string, namespace string) error {
return k.K8sCS.BatchV1().Jobs(namespace).Delete(context.TODO(), name, metav1.DeleteOptions{})
}I am deleting a job if already exists and then starting a new Job, but the operation here is asynchronous and job crea... | Delete a Job and wait until job is deleting in client-go |
Edit: (For non ASP.NET MVC apps)How about this:Make the OutputCache definition this:<%@ OutputCache Duration="120" VaryByParam="None" VaryByCustom="listingtype;propertytype;location" %>In the Global.asax.cs add these methods:public override string GetVaryByCustomString(HttpContext context, string custom)
{
if (cust... | I haven't found a clear answer to this, so can someone help me?If we have a URL like thiswww.website.com/results.aspx?listingtype=2&propertytype=1&location=alaskaThen we can set<%@ OutputCache Duration="120" VaryByParam="listingtype;propertytype;location" %>But I use routing, so my url looks like this:www.website.com/b... | Output Caching By Url (Route) ASP.NET 4 |
Just as you said:
... I've got two independent commits - the new squashed one and old master's one
which is what you should expect, since git rebase works by copying commits (perhaps with some modifications along the way, such as squashing), then having your Git point your own branch name to the new copies.
But orig... |
I have a local commit after origin master's head, and want to combine last two commits. So suppose the history is as follows:
* e9199ba - (HEAD -> master)
| test
* c4e3b53 - (origin/master, origin/HEAD)
| Saturn ring angle change in X and Y
And want to make one commit instead of e9199ba and c4e3b5... | Git rebase - i squashing didn't remove commit |
1
Yes it is. On Linux there are various techniques (mostly involving binding / forwarding the X11 socket). Check out some of Jessie Frazelle's Dockerfiles.
Share
Improve this answer
Follow
answer... |
From this other question about docker, I've thought about a new question: is it possible to run a "gui app", and interact with it, during a docker mean?
The context is: in Dockerfile, you define a RUN command to exec a GUI installer (in that question, it was qt-android), and then, when you build image, it does not wor... | Running GUI during docker build |
This is for the case where the file has more columns than the target load table.Assuming that CustomerName and ProductName can be NULL fields you have two options.Load the data in a staging table. Then join the staging table with the reference data to insert data intoCOPY staging-tablename
FROM 's3://<<YOUR-BUCKET>>/<<... | I have a file in S3 with columns likeCustomerID CustomerName ProductID ProductName Price DateNow the existing SQL table structure in Redshift is likeDate CustomerID ProductID PriceIs there a way to copy the selected data into the existing table structure? The S3 database doesn't have any headers, just ... | Copying specific Columns in Amazon Redshift from S3 databucket |
No, your user.name does not matter.
However your user.email should match one of the addresses in your GitHub settings.
git config --global user.email "YOUR EMAIL"
You can also keep your email private
|
I am installing Git on an Ubuntu system. I need to set user.name. I already have a GitHub account. If my full name is John Doe, and I've set up my GitHub account with the username "Jon-D", do I need to use that name for the Git user.name or can I (should I) use my full name?
| Does user.name in Git need to match my GitHub username? |
You are looking at it from the wrong angle. In the end, it is not static or being a bean that determines whether the garbage collector collects an object.
The only criteria is: is that object still considered alive?!
Objects are considered alive when they can be "reached" from the context of the running thread(s).
In ... |
So I'm still learning about memory management in general, not only in Java. I've read in this Baeldung article.
The article shows an example of the following code:
public class StaticTest {
public static List<Double> list = new ArrayList<>();
public void populateList() {
for (int i = 0; i < 10000000; ... | Java Memory Leak - Static vs Beans |
You cannot - period. Backups of SQL Server canonlybe saved to a local disk - local to the SQL Server itself.Youcannotwith any tricks or tools backup a remote SQL Server to your local harddisk. Just can't do it. | My question is straight forward, how can I program SQL SMO to take local backup, by connecting to a remote server. I want to save the bak file to a local machine which is connecting to the remote server. Also I want users with only certain privilege to be able to save backups locally. | SQL Server SMO take back up locally from remote server |
-2Added port 80 in Expose and it worked!!ShareFollowansweredMay 13, 2021 at 10:17ankur sumanankur suman15122 gold badges33 silver badges1010 bronze badges2What do you mean Expose? Thanks.–Qinqing LiuNov 4, 2021 at 3:10Expose is the port you publish to while using docker run. For example: docker run --publish [image por... | this is my docker file# stage1 - build react app first
FROM node:12.16.1-alpine3.9 as build
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
COPY ./package.json /app/
COPY ./package-lock.json /app/
RUN npm i --silent
COPY . /app
RUN npm run build
# stage 2 - build the final image and copy the react build ... | cannot load certificate "/etc/ssl/ServerCertificate.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory |
1
You would use git rebase -i <hash of first commit before merge>, you can then choose to squash the relevant commits. Beware that this is re-writing the actual commit history, so in case you share the repository with others then you will have different commits after doing ... |
I have a merged and closed pull request. After that I deleted that branch. And all the commits of that branch now shows in the history of merged branch. Now There is an option to restore the branch in Git, but what I really want is to squash some commits of that PR so that it will not be shown in the commit history of... | Squash commits of a closed pull request |
1
I know this question is pretty old, but I just faced the exact same problem and adding --threaded option to thin seems to have solved it.
Share
Follow
answered Nov 24, 2019 at 21:57
Sergey ... |
I am trying to build a Docker image of Ruby application based on Thin server. First, let me show you my dockerfile:
FROM centos:7.4.1708
WORKDIR /opt/myapp
ENV PATH=/opt/myapp/ruby/bin:${PATH}
ENV GEM_HOME=/opt/myapp/vendor/bundle/ruby/2.4.0
CMD /opt/myapp/vendor/bundle/ruby/2.4.0/bin/bundle exec thin -C /opt/myapp/co... | Ruby Thin app in Docker |
Resolved this issue by setting execution goals as 'repackage' in spring-boot-maven-plugin.
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plu... |
I am trying to deploy my spring boot application on a docker. I have created a docker file as follows.
FROM registry.gitlab.com/client/micro/micro-services/baseimage/database-baseimage/tmo-main:database-baseimage-1.0.1f28a87b
ADD ./target/*.jar app.jar
ENV TZ=America/Los_Angeles
ENTRYPOINT ["java","-XX:+UnlockExperi... | Application build is successful but getting error: 'no main manifest attribute, in app.jar' while running the image |
Runphp artisan listcommand in cmd and find your cron.Runphp artisan yourcron.You can readthis blog post on our websitefor more details about cron jobs. | I create a cron job on laravel 5.3 by editing app\Console\Kernel.php like this :<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
use DB;
class Kernel extends ConsoleKernel
{
protected $commands = [
//
];
protected... | How can I test my cron job in localhost windows? (laravel 5.3) |
AzureTFVC (Team Foundation Version Control)has the notion ofFolder and BranchThere is no such notion with Git, where branches are:the HEADs of a graph of commitstransient (they can be renamed/moved/deleted at any time)If you really need to have one branch per folder, you would usegit worktree.The focus of this question... | This article suggests options for how to organize git branches:https://dev.to/hardkoded/how-to-organize-your-git-branches-4dciIs there any way to have a hierarchy view of branches in Github?In AzureDevOps we can use "/" and get a folder view. Not sure how to do it in GitHubUpdate # 1The focus of this question is GitHub... | Is there any way to have a hierarchy (folder) view of branches? |
Because it is part of an Auto Scaling group.According to AWS Support, it is normal behavior to Terminate an instance when you tell it to Stop if it is part of an Auto Scaling group.
My Termination Protection was set to Stop but apparently it overrides this setting.In order to Stop an instance that's part of a Auto Scal... | Everytime I stop my AWS EC2 instance, it terminates automatically with a few seconds. Additionally a new instance is created. Can anyone suggest why this would be happening? | Why does my AWS EC2 Instance terminates when stopped? |
2
Found the mistake
There was a problem with my token and the query format was wrong it should have been
"{\"query\": \"query { search ( type : USER, query : \\\"location:lagos\\\" ) { userCount }}\"}"
Thank for your suggestion
Share
Improve this answer
... |
I don't know what is wrong with my code I keep getting error 401 when I try making a request to the GitHub. My app uses the REST API before now I and to convert it to the Graphql but I am finding it difficult
private static String makeHttpRequest(URL url) throws IOException {
String jsonResponse = "";
// If th... | How to query Github graphql API with java using HttpUrlConnect |
As Patrick pointed out the issue I had was due to SSL context in non-blocking mode didn't have server cert so verification immediately after establishing a connection always succeeded. To fix the issue I added cert validation (if it is the same I expect to see) after first read-write data exchange.SSL_CTX_new(SSLv23_cl... | I changed BIO to a non-blocking mode withBIO_set_nbio(m_bio, 1)forBIO_do_connectto not hang (and usingBIO_should_retryandselectto retry to reconnect). It solved my problem with connection to the wrong listener now fails immediately instead of timing out in 2 hours.But now I have a new problem -SSL_get_verify_resultalwa... | In non-blocking mode openssl allows to use any certificate on client side |
I think this is the Simplest way to enable gzip.
Open Traefik v2 docker-compose.yml and add these lines:
version: '3.7'
services:
traefik:
image: traefik:v2.2.7
container_name: traefik
labels:
.
.
.
// paste on the last line to enable gzip compression
- "traefik.http.routers.traefik.middlewares=traefik-com... |
I am using Traefik v2 to running a Docker container. This container is serving with Nginx and I need to enable gzip compression on Traefik v2.
I couldn't achieve it by changing the Nginx app.config file.
I added these kinds of tags but it didn't work.
gzip on;
gzip_types images, CSS, js etc.
How can I enable gzip on ... | Traefik v2 - Enable gzip compression |
Why doesn't 'Sonar way' contain all SonarJava rules.Because some of the rules are:too restrictive - not suited for many types of applications and should be enabled after some discussions in teamsmutually exclusive (example:RSPEC-1105says that opening{character should be at the same line andRSPEC-1106that should be at a... | My company is using SonarQube for quite some time, and now that we installed latest SonarQube verzion 6.4, we would like to upgrade quality profiles that we are using.As far as I can understand there is no need to use FindBugs, PMD and Checkstyle plugins any more because rules from SonarJava plugin contain all rules fr... | in SonarQube, why 'Sonar way' quality profile doesn't contain all the rules from SonarJava repository |
You should update your NVIDIA Driver to latest fromhere | Hello,I am trying to use Opencv GPU with CUDA.I ahve used the CMake for compiling the opencv 2.3.1 with cuda 4.0 But when I am trying to use the function cv::gpu:getCudaEnabledDevice() it returns me zero means no device available.Though I have CUDA enabled gpu in my system.Anybody please help me with this I have tried ... | Not able to detect CUDA enabled device in Opencv GPU |
The original order is in fact backwards. Certs should befollowed bythe issuing cert until the last cert is issued by a known root perIETF's RFC 5246 Section 7.4.2This is a sequence (chain) of certificates. The sender's certificate
MUST come first in the list. Each following certificate MUST directly
certify the one p... | I've created a chain hierarchy like this.root-ca ==> signing-ca ==> subordinate-ca ==> serverIt is mentioned to create chain bundle, the lowest should go first.$ cat server.crt subordinate-ca.crt signing-ca.crt > server.pemBut verification fails.$ openssl verify -CAfile root-ca.crt server.pem
error 20 at 0 depth lookup... | How does an SSL certificate chain bundle work? |
As SonarQueb does not correctly support multi-language projects, the Android plugin indeed only reports issues on Java files.Our goal is obviously to report also issues on XML files as soon as the multi-language support is ready. You can vote for the following ticket and watch it to know the progress:http://jira.codeha... | I'm adding a job in Jenkins to analyze an android project, but I can't get it to take into account the xml files (in res/ and subdirectories).My sonar.properties:# required metadata
sonar.projectKey=AndroidProj
sonar.projectName=AndroidProj
sonar.projectVersion=1.0
# path to source directories (required)
sonar.sources... | Sonar not analyzing Android xml files |
You can use theSearch users endpoint. There is a query parameter (q) that allows you to use multiple search criteria documentedhereHere's an example usingOctokit, but if you still want to use fetch, the endpoint should behttps://api.github.com/search/usersNote: I really hope the client secret you are exposing here is f... | Hello I am using github api to create github user finder. my question is how to manipulate on api link to get users which include e.target.value of the searchbar and not only that one that exactly matches.here is my codeconst [finalData, setFinalData] = useState([]);
const handleSearch = async (e) => {
try {
const U... | Github user finder api, how to return multiple users per search? JS |
The CDK v2's L2HttpApiconstruct is in@aws-cdk/aws-apigatewayv2-alpha. In CDK V2, experimental modules are publishedin separate "alpha" packages.CfnHttpApiis theL1 constructthat represents theCloudFormationAWS::ApiGatewayV2::Apiresource. Under the hood,HttpApihas aCfnHttpApias a child node.Cfn-prefixed constructs are ... | I'm trying to add an HttpApi to my project that already uses CDK v2.
I'm able to retrieve the HttpApi class from@aws-cdk/aws-apigatewayv2:https://docs.aws.amazon.com/cdk/api/v1/docs/@aws-cdk_aws-apigatewayv2.HttpApi.htmlBut I'm not able to retrieve the construct in the new v2aws-cdk-libmodule:https://docs.aws.amazon.co... | Cannot find HttpApi construct in CDK v2 |
The DNS for all the hostnames in your given example (e.g.testsvc.k8s.privatecloud.com) would point to the machine or load-balancer through which traffic will reach the Ingress controller's nginx, as is described inthe kuberetes Ingress documentationSubdomain routing is traditionally done via "virtual-hosting", sometime... | I saw some example where the Kubernetes cluster is installed with ingress controller and then the ingress class is added with annotations and host as below.apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: nginx
spec:
rules:
- host: testsvc.k8s.privatecloud.com
... | Kubernetes - How ingress routing works |
The below code is working for me,
for (String cacheName : getCacheManager().getCacheNames()) {
logger.info("Clearing cache: " + cacheName);
Cache cache = getCacheManager().getCache(cacheName);
Object obj = cache.getNativeCache();
if (obj instanceof net.sf.ehcache.Ehcache) {
Ehcache ehCa = (Ehcache)obj;
List<Object> ke... |
I want to remove particular cache keys. I am using java spring.
I have different keys under same cache name. I have to remove some particular keys, not the whole cache.
The cache code is as below,
@CacheEvict(value="MyCache", key="CACHE_LIST_COLUMNS + #accountId + '_' + #formType")
public void addListColumn(){.. my co... | How can I remove a particular key from Cache using Java Spring |
You're seeing this problem because you're using a cloud-based syncing service, which in this case is iCloud. Such services can recreate files like this in an unwanted way.
In addition, cloud-based file syncing services sync file by file, which works great for things like word-processing documents, but can corrupt rep... |
its very strange behaviour I have noticed while using git
only in my GitHub projects ,
my project start creating duplicate files on its own.
I am really fed up of that now .
what I have tried to resolve it ?
ans : 1. cleared git cache .
2. removed git and added git again
3. manually deleted all duplicate files (agai... | Automatic creation of Duplicate files in git |
I tried to get as much info as possible. But I am not able to find the exact information as what I need to do.
This is what I did and is all finePurchase the SSL certificate from a SSL ProviderConfigure SSL in your webserverChange the NSURLConnection HTTP to HTTPSThats it. All is working fine now.Hope this helps some ... | In my app I am using HTTP connection to communicate between client and server. All is fine. Now I wish to make the connection secure. I am an absolute beginner and I am clueless where I need to start with when it comes to SSL and iOS. I read many of the SO questions. But not able to get a complete clear picture like wh... | SSL in iOS - Basic steps |
If you don't mind not using the.envfile (maybe that environment variable is used only in a single container). You can define environment variables directly insidedocker-compose.ymland there, you can make full use of YAML formatting options. I.e.:myservice:
build: .
environment:
SSH_KEY: >
--------- WHATEV... | I have an installer which pumps out some values to a .env file to be used by docker-compose. All of this has worked so far with the exception of an SSH key which cannot be seemingly used.I have so far tried with both the correctly formatted private key and also replacing new lines with\n. However, this breaks the work ... | Using multi-line value in .env file in docker-compose |
To connect containers to each other you should use networks.First you create a networkdocker network create my-networkRun mongodb specyfing the network.docker container run -d --name mongodb -p 27017:27017 --network my-network mongodb:latestModify your app to connect tomongodbas host instead of localhost. Containers th... | I have built a docker image for a flask app I have with some html templates and after running my image I go tolocalhost:5000which takes me to the start page in my flask app . I press a register button to register a user using a flask endpoint but I getpymongo.errors.ServerSelectionTimeoutError: localhost:27017: [Errno ... | unable to run docker flask image -pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [Errno 111] Connection refused |
31
There isn't any need. From Backing up and restoring an Amazon RDS DB instance:
In addition to the daily automated backup, Amazon RDS archives database change logs. This enables you to recover your database to any point in time during the backup retention period, up to... |
Currently the database on Amazon RDS is automatically backed up once a day - that seems to be a default behavior.
When I look on the "Backup retention period", 1 day is the smallest option. How do I do an hourly (or every 30 minutes) backup and (ideally) save the backup to my Amazon S3? Is this supported by Amazon RDS... | How do I do a database backup on Amazon RDS every hour? |
You can disable adding or modifying of “Expires” and “Cache-Control” response header usingexpiresparam:expires off;nginx docs | I am trying to serve a website with nginx. I have noticed that when I make changes to my/etc/nginx/sites-available/game, runsudo service nginx restart, it is not reflected when I try to pull it up in the browser.The browser just hangs and waits for a response and then timesout.However, it works perfectly fine if I try ... | Nginx configuration not updating for browser |
The ca-bundle should be the chain. If it is rejected as invalid, then the file is most likely built upside down, so you need to completely reverse the ordering of the blocks in the file. You can do this in a text editor. There are usually only 2 or 3 blocks there, so reversing them is straightforward. I have no ide... | I have working PositiveSSL certs that I registered via Namecheap through Comodo.What do I upload to ELB's Certificate Body and Certifcate Chain fields?The email Comodo sent only contains the .ca-bundle + .crt files. A lot of the tutorials that exist reference 4 files in that email. | How do I port my PositiveSSL certs to Elastic Load Balancer? |
Ok it looks like you've moved on a bit now and this has become another question. If you want to communicate with mysql from your Spring boot app, you'll need to put them on a network. You can declare the network in your docker compose file anywhere (I like to do it all the bottom) but then for each service you need to... |
I created the following Dockerfile in my project to containerize Spring app
FROM java:8
EXPOSE 8080
VOLUME /tmp
ADD ./spring-boot-app.jar /app/app.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app/app.jar"]
Whether or not I try providing the complete project path of jar file in ADD ./s... | Docker error when containerizing a spring boot app |
11
You can use Contributions Importer for GitHub
It copies all commits from source git repositories to a mock git repository. Each copied commit will report the same commit date, but the original code is not copied, neither the commit message.
The mock code is generated usi... |
I just got a new job recently, and all repos of their projects are on BitBucket.
I used to use a lot GitHub, so I was wondering if there is a way to sync contribution between the two.
I have already tried https://github.com/jrm2k6/contwidgetor. It seems like a way to do it but didn't work for me somehow, and there is... | Import contribution to github from bitbucket |
You can and should query this using the OpenCL clGetDeviceInfo API, with the parameter CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE. The OpenCL 1.1 spec says that a conforming implementation has to provide at least 64K bytes, which is probably what your device is implementing.
If you exceed this limit, then OpenCL should eithe... |
I ran some tests on my kernel which uses constant cache. If I use 16,000 floats (16,000 * 4KB = 64KB) then everything runs smoothly. If I use 16,200 it still runs smoothly. I get errors in my results (not from OpenCL) if I use 16,400 floats. Could it just be that technically there is 64.x KB of constant cache availabl... | Why doesn't my kernel fail when I use a little more than 64kb of constant cache? (OpenCL/CUDA) |
Default communication between different containers running on the same host
I solved the problem, not by running the container in a different port though, but by learning one new feature in docker-compose version 2 and that is we do not need to specify links or networks. The newly created containers by default will be... |
The short question is can I run mongo from mongo:latest image on a different port than 27017 (for example on 27018?)
If yes, how can I do this inside a docker-compose.yml file in order ro be able to type the following command:
docker-compose run
The longer story:
I have an app running in AWS EC2 instance. The app con... | docker run mongo image on a different port |
You may expose service directly to clients using Load Balancer and add wildcard dns CNAME record*.company.compointing to Load Balancer. In that case you don't need Nginx Ingress which reduces latency for your clients and removes one possible bottleneck.If you still want Nginx Ingress then you may usehostname wildcardsl... | I'm pretty new to K8s in general and I'm a developer not exactly a network guy so I would like some ideas on how to reach my goal so I could research a bit on it.Let's say I have my app (hosted on k8s), let's say myapp.domain.com.
Let's imagine I have a new customer, they want their own URL... let's say backoffice.comp... | K8s ingress responding to multiple server names without having them configured? |
Although the code had been updated in the package /R directory, it was part of the roxygen documentation. When the /man documentation files are created their code is taken from the roxygen docs in the main /R files.BUTthe /man documentation files are not updated with each change to the roxygen in the /R files. The buil... | I have an R package that I'm testing on travis-ci. I've tried several times to make code corrections based on the job log from the previous build. When I make the appropriate changes and push to the GitHub repo and new build is triggered but ends up halting on the same error.checking examples ... ERROR
Running examples... | How to make sure Travis-CI is correctly synced with GitHub repo? |
It can depend on the shell you are using (for instance,fish shell would only be supported in docker toolbox 1.8.2a)Issue 138tried:Deleted anything in the system that mentions docker.Installed toolbox 1.8.1c.Ran the Docker Quickstart Terminal (which failed).Deleted ~/.dockerInstalled docker usingCheckalso the permission... | I use to haveboot2dockerinstalled but recently installed the Docker ToolBox app for the Mac (running 10.11). When I open up iTerm and typedocker psI get the following message.Get http:///var/run/docker.sock/v1.20/containers/json: dial unix /var/run/docker.sock: no such file or directory.
* Are you trying to connect to ... | Docker error dial unix /var/run/docker.sock: no such file or directory |
2
Objects are sampled, so there is no way you can be sure to see the largest object before OOM.
That said, 60 samples are usually sufficient to find a memory leak, at least if the application has been running for some time and the leak is not negligible in size.
Samples tha... |
I have some code that throws an OutOfMemoryError.
I set the JVM to dump on OOM and I opened the dump in Java Flight Recorder.
When inspecting the Live Objects in JFR, I see very few objects (less than 60).
How can I find out the largest object(s) being held in memory and noncollectable at the moment the OOM was trigg... | Java OutOfMemoryError, but very few Live Objects seen in JFR? |
Standard .NET framework does not know how to translatehttp://www.w3.org/2001/04/xmldsig-more#rsa-sha256to algorithm.To solve this you needSecurity.Cryptography.dll. Followthis guide. You will have toregister the algorithm in .NET machine.configadd Security.Cryptography.dll to GAC (but it worked if I referenced it direc... | i am trying to digitaliy sign XML File (SHA-256)static void Main(string[] args)
{
XmlTextReader reader = new XmlTextReader(@"F:\dev.xml");
XmlDocument doc = new XmlDocument();
doc.Load(reader);
string pfxpath = @"F:\dec.pfx";
X509Certificate2 cert = new X509Certificate2(File... | XML Signed withSHA-256 |
The solution was to remove the existing docker and dockerd files in the docker folder and then follow exactly the instructions here:build-your-first-docker-windows-server-container. I believe this installed the Windows-native Docker engine directly. This ensured Docker Engine was running as a Windows service.Archive li... | Problem:I am unable to install thewindowsservercoreimage indocker.This is similar to that posed here:windowsservercore container image not installingSet-up:macOS SierrawithWindows Server 2016 TP5running insideVirtualBoxalongsidedocker.Steps taken:In advance i have successfully run:Install-WindowsFeature containers
Enab... | How to install the windowsservercore image in docker from blob or saved file? |
1
So the problem is solvable in this way. Works now.
Y_= T.concatenate([Y_[c:Y_.shape[0]+c-left_ctx-right_ctx] for c in range(left_ctx+right_ctx+1)], axis=1)
Share
Improve this answer
Follow
ans... |
I am using theano.scan for creating stacked vector of contexts like this:
Y_, scan_updates = theano.scan(fn=lambda *args,**kwargs: T.concatenate(args, axis=0),outputs_info=None, sequences=dict(input = Y_, taps=range(-left_ctx,right_ctx+1)))
It seems that scan is so slow, that this slows down whole processing.
In sig... | How to stack vectors in Theano without using scan? |
Basically, your k8s log (pods) will gone after the pods has been terminated (although you can somehow keep it for a little while). For debug purpose or any other purpose you want, you need toCentralized loggingyour k8s log (use some tools: filebeat, fluentd, fluent-bit to forward your k8s log to elasticsearch).EX: Some... | I have an azuredevops build job to get the log of a deployment pod.command:kubectl logs deployment/myappI am getting the output in the summary page of azure devops pipeline, but the same I want to send a team with a log as an attachment. I am not getting any option in azure devops for that | how to send kubectl logs output over mail in azure devops |
The Git FAQ covers this topic thoroughly, both for SSH and for HTTPS. For SSH, the FAQ suggests the following in your ~/.ssh/config:
# This is the account for author on git.example.org.
Host example_author
HostName git.example.org
User git
# This is the key pair registered for author with git.example.org.... |
I have two SSH keys. One is for my company github account and the other one is for my personal github account.
My company account SSH key had been working well before I created another SSH key for my personal account.
The last SSH key pair I created was for my personal account and it worked well. Now, I am trying to p... | How to switch between SSH keys to use in a github account |
You have a few options there :
1 - You actually want to pull the image after the DockerHub build is done, not after travis is done, in that case you can use DockerHub webhooks to call some kind of service (it can boil down to any kind of script) on your server, which will pull the image and run it.
From https://docs.d... |
My current setup:
When changed code pushed to Github, Travis trigger build.
Travis build the container using the Dockerfile and push to dockerhub.
What I need to achieve:
Pull the container from docker hub inside production environment.
Run the container exposing required ports.
Approaches:
SSH into product... | How to build my docker (nodejs) container in travis and run in production |
The command 'docker' could not be found in this WSL 1 distro.We recommend to convert this distro to WSL 2 and activatethe WSL integration in Docker Desktop settings.This means inWSL2, it has a real linux kernel which is required to install docker daemon, then indocker-desktopyou could have chance to set docker daemon i... | Exactly the same problem asUbuntu WSL with docker could not be found$ docker
The command 'docker' could not be found in this WSL 1 distro.
We recommend to convert this distro to WSL 2 and activate
the WSL integration in Docker Desktop settings.
See https://docs.docker.com/docker-for-windows/wsl/ for details.But my re... | Docker for Windows and WSL1 to Work together |
0
You will have to import OAuthSwift at places you are planning to use OAuth.
Before doing so, you need to add OAuthSwift into Linked Frameworks and Libraries.
However, I would prefer using cocoa pods to add dependencies to you project.
Here is a link "how to install Coco... |
I'm trying to use the OAuthSwift Framework in my swift app and I get the error "No such module 'OAuthSwift' " when I import swift.
I followed the following instructions from the github read:
Drag OAuthSwift.xcodeproj to your project in the Project Navigator.
Select your project and then your app target. Open the Build... | OAuthSwift - "No Such Module OAuthSwift" |
Simply use kompose described in "Translate a Docker Compose File to Kubernetes Resources": it will translate your docker-compose.yml file into kubernetes yaml files.
You will then see how the selenium/hub container declaration is translated into kubernetes config files.
Note though that docker link are obsolete.
Try ... |
I want to link my selenium/hub container to my chrome and firefox node containers in a POD.
In docker, it was easily defined in the docker compose yaml file.
I want to know how to achieve this linking in kubernetes.
This is what appears on the log.:
This is the error image:
apiVersion: v1
kind: Pod
metadata:
name:... | Linking Containers in POD in K8S |
There are multiple ways to access Kubernetes Services from the statping EC2 Instance.All of them are discussed inhttps://kubernetes.io/docs/tasks/access-application-cluster/access-cluster/https://kubernetes.io/docs/tasks/access-application-cluster/access-cluster/#so-many-proxieskubectl proxyhttps://kubernetes.io/docs/t... | I want statping to be independent of the infra it is monitoring. But I want to check the services uptime which are on clusterIP inside the k8s EKS cluster. Will setting up kubeconfig on the EC2 instance help ? | How can I give access to statping deployed outside k8s cluster to monitor k8s services uptime? |
0
What I do is that my CI runs npm version patch to update the package version. minor, major, specific version number, ... can also be used instead of patch.
By default this will also create a git tag with the version number. You can disable this with --no-git-tag-version.
... |
Is there any way I could Auto Increment the Project version number (in Package.json) after the pull request from Develop to Master has been approved ?
Once the pull request is approved from Develop to Master I am looking for a way to automatically increment the version number in my projects Package.json file.
We are a... | Stash auto increment project version number |
You've installed the intel opencl SDK, which gives you the compiler and maybe the CPU runtime. You're trying to create a context consisting of GPU devices, which means that you need the runtime for intel HD graphics. Grab the 64-bit driver from the link below.https://software.intel.com/en-us/articles/opencl-drivers#lat... | I am struggling with the following Python code:import pyopencl as cl
ctx = cl.Context(dev_type=cl.device_type.GPU)It gives the following exception:RuntimeError: clcreatecontextfromtype failed: DEVICE_NOT_FOUNDMy OS is Linux Mint Debian Edition 2, running on a laptop with i7-5600U. It also has a graphic card, but I do n... | DEVICE_NOT_FOUND while calling pyopencl.Context |
The things I can think of are:One of them is not a Spring Boot 3 app and the property name is different.Something overrides the property value.You have aMeterFilterthat changes the value of theDistributionConfig.Something else other than Spring Boot produces that output so the Spring Boot property has no effect. Do you... | There are two springboot2.3 services using micrometer and expose metrics to prometheus.
Their metric configs are the same, and both have this linemanagement.metrics.distribution.percentiles-histogram.http.server.requests=truebut only one service exposed this metrichttp_server_requests_seconds_bucketsuccessfully while t... | Prometheus/Micrometer | http_server_requests_seconds_bucket is not shown |
The database connection countis exactly what it sounds like: "The number of database connections in use."It's a count, so it shouldn't be summed. Maximum or averaging are recommended. It may be registering low because you have a very efficient database pool, have server-level caching, or are looking at the wrong databa... | What is meaning of DB Connections(Count) report on AWS RDS?
I have gone through their documentation but didn't find my answer there.I am quite confused withDB Connection reporton my AWS. I can see their only 1 connection available but I am sure that there are always 100-150 concurrent users on my website on different ... | Whats is DB Connections(Count) in AWS? |
1
We can get the list of changed files to the text file from PR. Then we can run the git command below to get the list of users included in last version's blame. For each file we get from file list, run the blame command. This might be also simple script.
Generate txt file... |
Is there any way (for on premise github) to :
For N number of files in the Pull Request.
Look at the history of those files.
And add any/all github users (on the history) .. to the code reviewers list of users?
I have searched around.
I found "in general" items like this:
https://www.freecodecamp.org/news/how-to-autom... | Pull Request "reviewers" using github "history" |
You can try:public function get($url){
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
if(curl_errno($ch)){
throw new Exception(curl_error($ch));
}
return $result;
}
try{
$object->get('http://example.com');
} catch(Exception $e... | Sometimes my PHP Curl users don't have the trusted certs installed.When my php app attempts to use curl to contact an HTTPS server ("curl out"), the attempt fails.If I set PHP Curl to verbose mode, I can see the error messageSSL certificate problem: unable to get local issuer certificateBut how can I detect that proble... | PHP Curl: detect "unable to get local issuer certificate" error |
This should work:<?php
$message = "Hey, lol.";
?>
<!doctype html>
<html lang="en-us">
<head>
<title>title</title>
</head>
<body>
<? echo $message; ?>
</body>
</html>EDIT:Hack cannot be used as a mix with html the way above.
Try this in stead:<?hh
$message = "Hey, lol.";
echo ... | I'm using Hack, which can be found athacklang.org.Why doesn't the following code :<?hh
$message = "Hey, lol.";
?>
<!doctype html>
<html lang="en-us">
<head>
<title>title</title>
</head>
<body>
<?= $message ?>
</body>
</html>output the following text?Hey, lol.There are no errors in th... | Simple code - not outputting message |
I will write my decision. I have a Synology NAS. The shared folder uses the smb protocol.
I managed to connect it in the following way. The most important thing was to write version 1.0 (vers=1.0). It didn't work without it! I tried to solve the issue for 2 days.version: "3"
services:
redis:
image: redis
res... | We're working to create a standard "data science" image in Docker in order to help our team maintain a consistent environment. In order for this to be useful for us, we need the containers to have read/write access to our company's network. How can I mount a network drive to a docker container?Here's what I've tried us... | How to mount network Volume in Docker for Windows (Windows 10) |
You have to define your foldername inside the directoryCOPY folder /usr/share/nginx/html/folderorADD folder /usr/share/nginx/html/folderShareFollowansweredJan 19, 2016 at 8:09lvthillolvthillo29.3k1414 gold badges9898 silver badges131131 bronze badgesAdd a comment| | I want to copy my/folderinside/usr/share/nginx/html/So in my dockerfile:COPY folder /usr/share/nginx/html/But this is copying the content of myfolderinside/usr/share/nginx/htmlHow can I just copy the whole folder? | Dockerfile: COPY folder inside folder |
This is not yet available (mid 2019)
In March 2019, you can pin your gists to your profile
In May 2019, you can receive notifications for new conversations occurring on gists
So maybe Gist will still evolve soon.
|
I'm creating gists for the first time to embed code in my medium article, and would like to organize gists in different folders with different private / public settings.
I've tried to click on the link to create new gist on github profile from right upper corner, but couldn't find any options to create / put in certa... | Is it possible to create and organize gists in different folders in github? |
Normally Alpine linux doesn't contain bash.
Have you tried executing into the container with any of the following?/bin/ash
/bin/sh
ash
shso for examplekubectl exec -it my-alpine-shell-293fj2fk-fifni2 -- shshould do the job.ShareFollowansweredJun 4, 2018 at 15:49iomviomv2,5191919 silver badges2828 bronze badges11Apol... | Everytime I try and exec into a pod through the minikube dashboard running alpine linux it crashes and closes the connection with the following errorrpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:262: starting container process caused "exec: \"bash\": executable file not found in $PATH"
... | Minikube crashes exec'ing into Pod using Alpine linux |
Can we compare Jenkins and Sonar?No.Jenkinsis a tool to implementContinuous Integration. The quick summary of which is integrating, building and testing code every time a change is made.Sonaris "a tool for managing code quality." It focuses on analyzing code.BTW, as a note that they play different roles in developmen... | As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened,visit the help ... | Sonar Vs Jenkins [closed] |
Patrick McManus answered almost exactly this in theFirefox bugzilla a while ago- and the reason for this is that there is still a lack of UI for this in Firefox:You can do a TOFU exception for the proxy case, but you have to do it
a little differently.turn off the proxy use in firefox.puthttps://PROXYNAME:PROXYPORT/i... | I'm trying to get Firefox nightly to use a secure HTTP/2 proxy, but it's refusing to accept a self-signed certificate.The proxy is composed of nghttp2 as the HTTP/2 front-end and a simple Twisted proxy as the back-end. The Twisted code is fromhttps://wiki.python.org/moin/Twisted-Examplesand works on its own as a HTTP/1... | Generating a Certificate for Local HTTP/2 Proxy |
step1: Ctrl+savestep2: Refresh the webpage from the web browser.That's it. You are good to go now. | I am trying to use codesandbox by importing the github repository. I am not able to edit the contents of thepackage.jsonfile. It sayscannot edit in ready only editor. How to solve this error? | Cannot Edit in read only editor Codesandbox |
This code can get you started./**
* Implementation of hook_cron()
*/
function [YOUR_MODULE]_cron() {
variable_set('YOUR_VARIABLE', 'change this value to your liking');
}
/**
* Implementation of hook_init()
*/
function [YOUR_MODULE]_init() {
$yourVariable = variable_get('YOUR_VARIABLE', '');
drupal_add_js(a... | I have a module namedmy_moduleand it uses for running cron. I am using hook_cron() to run cron in my module. I want to change the value of a javascript veriable when cron runs. This javascript variable has already present in the footer. I am using drupal 7. Can any one help me to write codes for this? | Change content dynamically when my module cron runs |
CoreOS uses systemd to manage long running services:https://coreos.com/os/docs/latest/getting-started-with-systemd.html | Assuming the Docker daemon is restarted automatically by whatever init.d or systemd like process when the OS is restarted, what is the preferred way to restart one or more Docker containers? For example I might have a number of web servers behind a reverse proxy or a database server. | How to auto restart a Docker container after a reboot in CoreOS? |
You can use this code in yourDOCUMENT_ROOT/.htaccessfile:RewriteEngine On
RewriteBase /
# external redirect from actual URL to pretty one
RewriteCond %{THE_REQUEST} \s/+fr/transporter/transporterPublicProfile\.php\?profil=([^\s&]+) [NC]
RewriteRule ^ fr/profil-des-transporteurs/%1? [R=302,L,NE]
# internal forward fro... | I want to rewrite my URLFrom:https://example.com/fr/transporter/transporterPublicProfile.php?profil=1927To:https://example.com/fr/profil-des-transporteurs/1927When ever a user visit this URL:https://example.com/fr/transporter/transporterPublicProfile.php?profil=1927It should appear like this:https://example.com/fr/prof... | URL rewriting without changing URL .htaccess |
GitHub has a limit on the maximum size of a pack that's transmitted during a push to prevent denial of service attacks. That limit is 2 GB, and you're trying to push more data than that.You should try to push data more incrementally. For example, if you were trying to push twelve commits withgit push origin main, you... | Enumerating objects: 18, done.
Counting objects: 100% (18/18), done.
Delta compression using up to 4 threads
Compressing objects: 100% (15/15), done.
remote: fatal: pack exceeds maximum allowed size
error: RPC failed; curl 55 Send failure: Connection was aborted
fatal: the remote end hung up unexpectedly2.20 Mi... | error: RPC failed; curl 55 Send failure: Connection was aborted |
Create a separate account and use one as the maintainer and one as the contributer | Short and sweet:How can I practice forking a GitHub repo, making changes toboththe forked and original repo, submitting a pull request, merging the changes, rebasing, etc.?More details:The difficulty is that you cannot fork your own repo on GitHub. So (it seems?) you cannot submit a pull request to a repo that you also... | How to practice managing (submitting changes, accepting changes, etc.) a repo? |
There was no problem in code. I changed the port eveything is working now.func openDB() (*sqlx.DB, error) {
q := url.Values{}
q.Set("sslmode", "disable")
q.Set("timezone", "utc")
u := url.URL{
Scheme: "postgres",
User: url.UserPassword("postgres", "postgres"),
Host: "l... | Trying to open Database but it is saying password authentication failed for user "postgres"
I am not able to find the root cause of this problem.First time,i am using Docker. Pleas helpfunc openDB() (*sqlx.DB, error) {
q := url.Values{}
q.Set("sslmode", "disable")
q.Set("timezone", "utc")
u := url.URL{... | Getting an error while connecting to postgres running in Docker: pq: password authentication failed for user "postgres" |
This is alimitation in Windowsnot Docker, (See:https://github.com/docker/for-win/issues/1155).The issue referenced above provides thisMicrosoft Developer Blog on Windows Subsystem for Linux (WSL), and Case Sensitivitywhich states the following:Since Windows applications treat the file system as case insensitive, they c... | i have a base windows image and want to change one of the assemblies in app'sbinfolder.FROM baseImage
COPY ./files/ ./Application/binbut i saw two strange behavior in result when navigated to destination path:if source files are existed in destination, files overwrote in uppercase filenames!if source files are not exis... | How Docker Copies files to windows? |
I found the following gitDSL functions to access information in individual files//This should make it really easy to do work when specific keypaths have changed inside a JSON file.
JSONDiffForFile(filename: string) => Promise
// Provides a JSON patch (rfc6902) between the two versions of a JSON file, returns null if y... | We are trying to set a max line change in our prs but are noticing there are some meta files that will easily exceed this limit such as yarn.lock.does anyone know how to exclude files from the additions and deletions?// ...
const linesAdded = danger.github.pr.additions || 0;
const linesRemoved = danger.github.pr.delet... | Exclude files from Danger.js addittions and deletions |
You can add aRewriteCondin your redirect rule for exceptions:RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/(folder/|images/|js/) [NC]
RewriteCond %{HTTP_HOST} !^mysite\.com\.au$ [NC]
RewriteRule ^ http://mysite.com.au%{REQUEST_URI} [NE,L,R=301] | I tried searching in first here in stackoverflow and google for the best answer but I could not find a solution to my problem.My question is can I add a condition where a specific sets of folder/files in my server will not be affected by a htaccess 301 redirection from old domain to new domain?this is the htaccess I ad... | htaccess 301 redirect domain but not a specific folder and files |
It might become easier to understand if you replace "route table" with "router" in the steps. The Router in your diagram is the one actually routing the traffic. The route table is only part of the configuration of the Router. The Router also knows about all the subnet CIDR ranges. They are subsets of the VPC CIDR rang... | Here is an AWS typical VPC, which is composed of the following componentstwo subnetsInternet GatewayRoute tableInstancesImagine a scenariostep1, instance (private IP 172.31.0.5) in subnet1 send a packet to IP 172.31.16.5 (in subnet2).step2, the packet reaches the route table, the route table redirect the packet to the ... | AWS VPC: How does route table redirect local traffic to the right subnet and instance? |
nginxalways has adefault server, the one that is used if theserver_namedoes not match. If you only have one server block withlisten 443, then that is the implicit default server for allhttpsconnections irrespective of server name.You will need to set up an explicitcatch-allserver forhttpsconnections, or addlisten 443 s... | I have two domains set up on a Digital Ocean droplet (with nginx). I've installed a SSL certificate in one of them (domain1) and everything is fine with that one. The second domain (domain2), does not require a SSL certificate but if I try to accesshttps://domain2is showing me the content of domain1 and giving me a cer... | Domain without ssl certificate redirecting to different ssl domain |
If you want a simple linux solution you could either use anacron (which doesn't assume that the system is working 24/7 and schedules the required jobs when it is booted again), checkhttp://www.thegeekstuff.com/2011/05/anacron-examples/, or rcronhttps://code.google.com/p/rcron/for a bit more complex stuff. | Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.Questions asking us torecommend or find a tool, library or favorite off-site resourceare off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead,describe the problemand what has been don... | Automated jobs with failover written in PHP [closed] |
Boom Themeplugin worked for me with Grafana 6.7.1Installation:grafana-cli plugins install yesoreyeram-boomtheme-panel
service grafana-server restartGo to certain Dashboard and add new Panel. Select "Boom Plugin".Enter this under "Custom Style / CSS Override".panel-container {
background-color: #000000;
}
.dashboard-... | I want to modify the dark theme in Grafana so that it uses#000000as the background colour.I have seen "How to change default black color of Grafana", however those answers only tell you how to choose between the light and the dark themes.I also see thatHow to Customize Your Grafana Themerecommends editing the_variables... | How do you change the background colour in Grafana? |
In the run configuration you want to customize (just click on it) open the tabArgumentsand add-Xmx2048min the VM arguments section.
You might want to set the-Xmsas well (small heap size).ShareFollowansweredMar 9, 2013 at 17:03benzonicobenzonico10.7k55 gold badges4444 silver badges5151 bronze badges1it didnt work. its s... | Some say I need to do that in Run Configurations for my application. When I open that window, could you please tell me how to set the right argument and the amount of memory? Say how to set 2GB or 1.5GB? | OutOfMemoryError: Java heap space and CPU-Usage 100% [duplicate] |
You would need to write a GitHub Action, similar totibdex/auto-update(which is about keeping pull requests with auto-merge enabled up to date with their base branch)(I did not see anyexisting GitHub Actionfor your specific use case)In your case, those are not PR branches, but the idea remains the same.You canrun a GitH... | Is there a way to auto-merge from staging/dev branch into main every like 6 hours on github?Let's say I push into staging from a feature/issue branch, then push some more. Though, it only gets auto merged into main in 6 hours intervals for example... | Auto-Merge from staging branch to main every set period of time |
You get this blame error because you are trying to analyze a set of files on which you have uncommitted changes.To fix this:Either you make sure that you a running an analysis on source code that has been freshly checked out from your version control system (and not changed since then-Or you tell SonarQube to not try t... | I have set up SonarQube server on my local system and run sonar runner. it will run good with .html file but when i am trying to run with php file, it failed and showing error like:java illegal language exception blame sample.php file.I installed all plugin as below.gitjavajavascriptwebphpc#but it is not working. | Sonarqube analysis not working |
A couple things to try:if it's just a fairly small app in which you will be doing all the deploys, I would suggest to use the 'forward_agent' option to access the github repo, this will access github using the ssh key on your local machine, removing the need to setup server keys.ssh_options[:forward_agent] = trueAdd th... | I can't seem to get capistrano deploy working.Here's a bit of background:The server is currently running, and has a deploy on it that worked successfully yesterday (this was the first deploy I've done).Today, I wake up, write up a fix for a few bugs, and try to deploy, but I get the following authentication related err... | Capistrano Deploy (cap deploy) failing, Authentication errors |
40
This helped me:
sudo nano /etc/resolv.conf
Set the nameserver to 8.8.8.8.
Restart the docker demon.
sudo systemctl restart docker
Share
Follow
answered Sep 12, 2020 at 22:09
Dmitry Krivo... |
Since yesterday out of nowhere I'm not able to pull images anymore. And I can't login into docker with docker login. The same error appears:
Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
I'm no... | Docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection |
It looks possible. For your models, you use "with tf.device.." and specify different gpus for different models. And then run both the program and see what happens. I tried with a simple program on different gps, it ran. let us know the output you find. | Python 2.7TensorFlowUbuntuHello my dear friends, have question. Is it possible to use multi GPU for training different models at same time? It's not a problem to use them for one training with simply code manipulation, but what if I want try to do 2 of them at the same time with different parameters at same time?
I am ... | Using 2 GPU at same time for different traning's TensorFlow\Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.