Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
This issue i faced was in Ubuntu 18.04 instance,Current/usr/bin/crontabpermission was as below,-rwxr-sr-x 1 root crontab 39352 Nov 16 2017 /usr/bin/crontabHad to change the group user from crontab to root and file permission to as below,sudo chmod 4755 /usr/bin/crontab
sudo chown root:root /usr/bin/crontab
-rwsr-xr-x... | In my open vpn server, i am ensuring cron file permission to be only accessable from root user.I have removed theat.denyandcron.denyfiles and have createdat.allowandcron.allowand0600 permissionsare applied for files, both files are empty and file permissions are as below, which clearly says root has read and write acce... | Cron files /etc/at.allow and /etc/cron.allow files, root permission abnormal behaviour? |
Assuming your work uses a Github organization, you can block your personal account which will prevent it from doing anything in the organization.See instructions:https://help.github.com/en/github/building-a-strong-community/blocking-a-user-from-your-organization | I have two github accounts (personal and work) and somehow managed to commit and push into my work repository (private) using my personal GitHub account (not a contributor). I am using Github desktop, I know this shouldn't be happening as it's a private repository and I am not a contributor. So is there a way for me to... | Pushing to a private repository without being a contributor |
It turns out the nginx configuration file described two servers, and I was adding the location snippet to the wrong one.When I added it to the correct one and reloaded nginx, the file was returned with the expected content-type:HTTP/1.1 200 OK
Server: nginx/1.10.1
Content-Type: application/pkcs7-mime
Content-Length: 24... | In order to set up universal links for an iOS app, I have created an apple-app-site-association file, and placed it in the /public directory of my Rails app.I can curl it at the correct address, but it returns the wrong content type. Instead ofapplication/jsonorapplication/pkcs7-mimeit returnsapplication/octet-stream, ... | How to set correct content-type for apple-app-site-association file on Nginx/Rails |
@MathieuK is correct, but it's worth digging deeper into this, because it's a very important concept in ObjC. You should never call-releaseon an object you didn't-retainexplicitly or implicitly (by calling one of theThree Magic Words). You don't call-releasein order to deallocate an object. You call it to release the h... | for(UIView *subview in [scrollView subviews]) {
NSLog(@"subviews Count=%d",[[scrollView subviews]count]);
//[subview release];
[subview removeFromSuperview];
}in the above method if i use[subview removeFromSuperview];it works fine...but if i use[subview release];It crashes..i want to know that if both are s... | does removefromsuperview releases the objects of scrollview? |
I had the same error (under other circumstances) a while ago.
It turned out to be a problem with a non existant java version.
Check the path specified in your eclipse.ini points to the javaw.exe you really want to use.
|
This occurs after i have been running Oracle Pack Eclipse with Weblogic 12 after about 2 hours, repeatedly...what went wrong, and how can i fix this?
| Unexpected Error in Eclipse |
Add this
location = / {
rewrite ^(.*)$ /index.htm last;
}
underneath the root line to do a rewrite of the URI before further processing.
PS. You have probably sorted this out during the year since your asked, but here it is for other to see.
|
I use such Nginx configuration for the domain:
server_name_in_redirect off;
listen 80;
server_name ~^(www\.)?(.+)$;
root /var/www/$2/htdocs;
location / {
try_files $uri $uri/ $uri/index.htm @django;
index index.html index.htm;
}
location @django {
fastcgi_pass 127.0.0.1:8801;
fastcgi_param PATH_... | Django and Nginx try_files 403 for site root page |
If by one line you mean one command you can use a heredoc:kubectl apply -f - <<EOF
apiVersion: v1
kind: ServiceAccount
metadata:
name: test-role
namespace: utility
annotations:
eks.amazonaws.com/role-arn: arn:aws:iam::xxx:role/rolename
EOFUsing the imperative kubectl commands, requires running two commands:ku... | How can i create a service Account as a one liner using kubectl create serviceAccount test-role and then how to pass the metadata?apiVersion: v1
kind: ServiceAccount
metadata:
name: test-role
namespace: utility
annotations:
eks.amazonaws.com/role-arn: arn:aws:iam::xxx:role/rolename
kubectl version
Client V... | Create service Account in one liner |
The issue was with the maptasks not running efficiently. The core node was hitting 100% CPU usage. I upgraded the cluster instance types to one of the compute C series available and the export worked with no issues. | I have a DynamoDB table that has 1.5 million records / 2GB. How to export this to an S3?The AWS data pipeline method to do this worked with a small table. But i am facing issues with exporting the 1.5 million record table to my S3.At my initial trial, the pipeline job took 1 hour and failed withjava.lang.OutOfMemoryErr... | How to export an AWS DynamoDB table to an S3 Bucket? |
Of course, the ideal solution is to not have configuration data tracked in the repository, or at least make it possible to override via some untracked file.However, there's no problem with what you want to do in git. You just locally make multiple clones of your GitHub repository. In each, you can make your changes s... | Switching to GitHub and can't seem to find information on how to do something I used to do with SVN:First of al I'm a tester so I never commit changes, but I do need to keep a number of local copies of the project each with a small difference to trunk - staging, production, decreased timer values etcI used to use Corne... | Updating multiple local working copies using a single GitHub source? |
1
Github Pages are for static websites, Wordpress uses php code in it which is not supported by Github Pages, Netlify, Firebase, etc.
Share
Improve this answer
Follow
answered Aug 22, 2020 at 18:... |
Is it possible to host a WordPress site on GitHub pages? I don't know enough about the subject to get it to work... I tried uploading the wordpress 5.5 contents from wordpress.org but it still doesn't work
| Wordpress on github pages? |
0
Based on your Renovate configuration file, it is defined to only create Pull Requests (PRs) for major updates. However, you also defined another package rule right after the first one, which includes rules for both minor and patch updates, which could be the cause why you... |
Problem
I am trying to manage package versions in my monorepo. (repository link is below.)
Now, renovate create only PR when package major update.
Sometimes renovate create minor update PRs, but I don't know what caused it.
This is my config files. (It was only recently changed, but I still can't even create a PR from... | renovate create only PR when packages major update |
MemFreein/proc/meminfois a count of how many pages are free in the buddy allocator. This buddy allocator is the fundamental unit of physical memory allocation in the kernel; however there are a lot of ways pages can be returned to the buddy allocator in time of need - for example, freeing empty SLABs, discarding cache/... | I am trying to understand my embedded linux memory usage.By using the top utility and the process file /proc/meminfo I can see how much virtual memory a process is using, and how much physical memory is available to the system. But it would seem for any given process the virtual memory can be very much higher than th... | How is the Linux calculating MemFree |
The problem may be because of thatPATHenvironment variable hasn't been set when the cron job is being executed and this is why your shell script can't findpm2. You have to enter the complete address ofpm2.Example ifpm2is in/usr/bin/:#!/bin/bash
/usr/bin/pm2 start server.jsOr you may want to just setPATHenv before the c... | my shell script#!/bin/bash
pm2 start server.jsmy crontab task* * * * * /home/ec2-user/abcd/test.sh > /home/ec2-user/cron.log 2>&1What I got from the log:home/ec2-user/abcd/test.sh: line 2: pm2: command not foundhow to fix it?Remark:1.When I execute ./test.sh, it runs normally2.which pm2 - shows~/.nvm/versions/node/... | (shell script file) pm2: command not found in crontab task |
Just use local git commands:git commit -a -m 'xxx'
git tag v1.0.2
git push origin v1.0.2 | I make repository in github. Register it in packagist.org
Set up in github integrations&services Packagist
to track changes in repo.In local comp I set this commands in console:
Add some changes, then add and commit it.
Set tag like v1.0.2 :git tag v1.0.2
and push it to github: git push origin v1.0.2In github I crea... | How to change version (dev-master) in packagist.org to version like v1.0.2? |
2
The lambda can have many concurrent executions.
So, more than one connection can be through by the lambda.
To fix this you need to change sequelize:
var sequelize = new Sequelize('DB','username', 'password' ,{
dialect: 'mysql',
port: port,
host: host,
pool: {
... |
I have connected an AWS Lambda function to Amazon RDS (MySQL). When the Lambda function is invoked 100 times simultaneously, there are almost 400 connections opened in RDS (as shown in RDS console). Why is this?
I checked the active connections using:
SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST WHERE DB = "MYDB";
A... | AWS Lambda RDS too many connections |
Simply sending a GET request tohttps://source-es-ip:port/index_name/_mappingsand PUT the output tohttps://destination-es-ip:port/index_nameCopying the data can be achieved by the Elasticsearch Reindex API,
For reference you can see thislink.
For example, To achieve this I would use this python Script-from elasticsearch... | I am working on elastic search and I want to create same index on local elastic search instance as it is created on production instance, with same type of mapping and settings,
one way I can think of is setting same mappings, is there any other better way of copying index metadata to local, thanks | How to duplicate index in elastic search? |
Instructions for migrating from Node.js v8 to v10 are documented atNode Version Update.Amplify doesn't control the runtime; you do, through configuration. | As we all know, AWS have done a good job at informing us that the NodeJS 8.10 EOL is approaching. However, there is limited information on how to update the runtime if we have been using AWS Amplify and the Lambda functions have been automatically created using the Amplify CLI.I have an autogenerated lambda function, "... | Update NodeJS runtime from 8.10 to 10.x or 12.x - AWS Amplify |
Accordingdocumentation, The Network Security Configuration feature uses an XML file where you specify the settings for your app. You must include an entry in the manifest of your app to point to this file. The following code excerpt from a manifest demonstrates how to create this entry:<?xml version="1.0" encoding="utf... | I have a server running HTTPS with a certificate from my own certificate authority. I have the CA certificate as a.pemfile (for example, I can pass this to CURL with--cacertto get it to talk to my server).I'm writing an Android application which will need to talk to this server. I need to be able to somehow give it thi... | How can I make all HTTP requests from my Android application accept a given certificate authority? |
OK, so let me see if I get this straight:you have 2 machines (let's call themPC1andPC2)you create a regular git repository onPC1namedprojectyou create a bare repository onPC1(project.git) by cloningprojectonPC2you clone fromproject.git(the bare repo)make changes onPC2and push toproject.gitonPC1checkproject(the repo fro... | i've read some tutorials about how installing a git depot (repository) and i start on it , i've create a project (of example with a readme.txt file) , then the above commands :cd project
git init
git add .
git commit -m 'first commit'
cd ..
git clone --bare project project.gitthen in the client side , i try to get th... | Git Can't set the first depot |
All you have to do is place that.htaccessfile within that specific cache folder..htaccessfiles provide a way to make configuration changes on aper-directory basis.Apache HTTP Server Tutorial: .htaccess filesPlacing that rule in your.htaccessfile in the root of your website will enable those rules on your entire site.If... | I have a site where I want to disable certain extensions of file execution just for that folder.EG: www.yoursite.com/cache/test.phpshould not be executed.I tried this code :<FilesMatch "\.(htaccess|htpasswd|ini|phps|fla|psd|log|sh|zip|exe|pl|jsp|asp|htm|sh|cgi|py|php)$">
Order Allow,Deny
Deny from all
</FilesMatch>... | Disable a file execution inside a folder .htaccess rule |
Okay everyone. With the assistance of Passenger's author on their IRC channel, I was able to resolve the problem.
I had passenger installed twice.
From articles I followed that didn't cover the topic thoroughly enough, I was under the assumption Passenger is an installable module of Nginx, which caused me to install N... |
I know there are about 100 questions about this, but after hours of research, I couldn't find my solution. Here's my nginx config:
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /home/LucyRb/public;
passenger_enabled on;
passenger_app_env production;
index ... | "Access Forbidden" - Passenger, Nginx, Rails |
You could, as illustrated inOpenShift Container Platform bug 1467776, add.svctono_proxy(as inPR 4678).svcdomain was added into service env file after installation.[root@qe-gpei-etcd-sc-master-1 sysconfig]# grep NO_PROXY * -r
atomic-openshift-master:NO_PROXY=.cluster.local,.svc,qe-gpei-etcd-sc-master-1,172.30.0.0/16,10.... | I want to set http/https proxy in pods and pass these variables via environment. However, I need to set no_proxy as well. Which values should I put it to not break somethings in k8s-inside-communication? As far as I know, there are some default services as "kubernetes.default.svc". | Setting no_proxy in kubernetes cluster |
In git:If you pull from feature's origin, you will not receive the new changes.
If you pull from development's origin, you will receive the new changes.In Github Desktop:In order to update from development's origin go into Branch -> Update from development or press CTRL+SHIFT+U | I am new to Github and Github Desktop.I have a branch "development", and another branch created "feature" based on "development".Once another person pushes the updated code in the "development" branch - if I am at the "development" branch, fetch origin then pull, of course I will have the updated code locally. But what... | Github desktop - branch dependency (update automatically?) |
0
I tried it in Directory C:\ which is a shared driver.It throws the same error with yours.
Then I move Dockerfile to a sub directory like C:\Intel and cd it to run docker build ., it works
So I guess Dockerfile should not be placed in shared dirver root directory.
... |
I run a Docker build, using a Dockerfile to build an image. But I get an error on npm install:
Dockerfile :
# Download Runnable-web Repo
RUN eval $(ssh-agent) > /dev/null && ssh-add /.ssh/id_rsa && git clone [email protected]:CodeNow/runnable-web.git
WORKDIR runnable-web
RUN npm install
RUN bower install --allow-... | Dockerfile build error on RUN npm install |
By default celery-prometheus-exporter connect to redis://redis:6379/0.
But my airflow-instance use database named "1", not "0", so I use envBROKER_URL=redis://redis:[email protected]:6379/1172.17.0.1 - is default docker0 ip-address.Chech name of you redis database. | I could see flower is showing worker count as 1, But in exporter metrics, i see a worker count as zero.
i am following the below urlhttps://github.com/zerok/celery-prometheus-exporterhere is my docker-compose and prometheus.yml file:docker-compoe.yml
....
celery-exporter:
image: zerok/celery-prometheus-exporter
... | zerok/celery-prometheus-exporter gives celery_workers count as 0 |
You want cAdvisor:https://github.com/google/cadvisorBut if you're running CoreOS, that means Kubernetes, right? cAdvisor is built into the Kubelet, so you just need to scrape each node on the right port - seehttps://www.weave.works/blog/aggregating-pod-resource-cpu-memory-usage-arbitrary-labels-prometheus/ | I have coreos machines which are monitored by prometheus server.I wish to check the container performance and other parameters. for example, check the container cpu or if container is stopped/restarting/running.Im trying to find exporter for that, but didn't find anything. How can I achieve it? | prometheus / monitor docker container performance |
+50Usingphpinfo()I determined the environment variable ends up not being set at all on the rewritten request, so the problem isn't the order of the request, it's that it seems to toss the variable out. Using the query string instead of the URL andnotrewriting seemed to be the only way I could get this working. I do a... | I want to conditionally set cache headers depending on what path files are accessed from. Basically, accessinghttp://www.example.com/cache/$cache_key/*should serve files with far in the future cache headers.I'm using a rewrite rule to set an environment variable and then attempting to set cache control headers based on... | Conditionally setting cache headers in apache |
You could use aGitHub actionwhich, on push, would automatically mirror the pushed content to BitBucket:actions/mirroring-repository.name: Mirroring
on: [push, delete]
jobs:
to_gitlab:
runs-on: ubuntu-latest
steps: # <-- must use actions/checkout before mirroring!... | I have a project that I imported to Bitbucket from Github. But pushing to my Github doesn't automatically push that to the imported repository on Bitbucket. Is there a way to do that, through vscode? | Is it possible to push one project to both Github and Bitbucket using vscode? |
There are few possible solutions here that I will try to list:Thedocker-entrypoint.shshould be in the same folder as the Dockerfile. You need to adjust the COPY path, for example:COPY ./docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]Permissions set thro... | I tried to create a kubernetes deployment to EKS but I encounter this errorContainers:
locust-master:
Container ID: docker://abc3a719222289774988bad3b1b1cfcc04c5b37559038aed49d3d00827fcc94c
Image: mosesliao/locust:1.3.2
Image ID: docker-pullable://mosesliao/locust@sha256:74368de2e5cf9e9a6... | OCI runtime create failed in EKS |
Yes, you should never share it with anyone or post it online. Someone could use your Ad Unit ID to spam requests and get your AdMob account flagged or banned.Your Ad Unit ID also contains your AdMob developer ID. For example,ca-app-pub-[developerID]/[adID]. I'm not sure how that information could harm you exactly, but ... | I don't know about this, really. I have never heard people talking about their ad unit ids, so I think itiskind of "private" and should not be disclosed?Is my ad unit ids a piece of private information? What will happen if Idodisclose my id? Is it ok? | Is my AdMob ad unit id a piece of "private information" |
Installcondacolabpackage:!pip install -q condacolab
import condacolab
condacolab.install()After auto restarting kernel do importingcondacolab:import condacolab
condacolab.check()Installtheanoandpygpupackages:!mamba install -y theano pygpuConfigurate and importtheano:import os
os.environ["THEANO_FLAGS"] = "device=cuda,... | I'm trying to train a model based on the Theano library. As my computer havn't enough memory to train this model, I need to do it in Google Colab.
But I can't activate the GPU support of Theano.This is how I installed Theano and Lasagne!pip install --upgrade https://github.com/Theano/Theano/archive/master.zip
!pip inst... | Theano support GPU is not working on google Colab |
6
Enabling "persistence mode" with nvidia-smi -pm 1 might solve the problem.
ECC in combination with non persistence mode can lead to 100% GPU utilization.
Alternatively you can disable ECC with nvidia-smi -e 0.
Note: I'm not sure if the performance actually is worse. I c... |
I've just started an instance on a Google Compute Engine with 2 GPUs (Nvidia Tesla K80). And straight away after the start, I can see via nvidia-smi that one of them is already fully utilized.
I've checked a list of running processes and there is nothing running at all. Does it mean that Google has rented out that sam... | 100% GPU utilization on a GCE without any processes |
0
Use the latest version of Jenkins to roll out this error.
I am using Jenkins-2.89.3.
Hope that helps
Share
Improve this answer
Follow
answered May 29, 2018 at 7:07
Sunny SrivastavaSunny... |
Why there is no credential field after the Repository URL?
I tried a local jenkin install and it do ask me for the username/password.
What then I try on our remote(already setup) jenkin there is no password field.
| No credential field in jenkins while creating job with git |
The function being applied is [, with extra blank argument , and an extra argument "sctid". This is saying "extract the "sctid" column from each element of conjunctionAttributeSet.
The code results = lapply(conjunctionAttributeSet, "[", , "sctid") is equivalent to
results = list()
for(i in seq_along(conjunctionAttrib... |
I have been converting an R script into python script and I stumbled upon this strange way of calling lapply() function in R. It's a github project (SnoLyze) that I am converting into python.
lapply(conjunctionAttributeSet, "[", , "sctid")
Let's suppose the first argument is a list with values, named conjunctionAttri... | lapply function arguments in R |
I saw that the Sanity.io project has a webhook that gets triggered when changes occur (under 'Settings' tab --> 'API' sub-tab).
I guess this could be set to call a service that gets all documents and save their ID with the current timestamp.
|
Question #1: is it possible to restore deleted items from backup in Sanity.io?
To my understanding, restoring a backup is done by exporting all documents from a dataset's history, and importing it.
Restore - there's one way to do it: https://www.sanity.io/docs/importing-data.
Export - there're two ways to export data... | Sanity.io backup and restore (or auto-saving doc IDs) |
If you have such a low traffic, I am not sure you need to go through the troubles of changing your webserver : kind of looks like "premature optimisation" to me.Well, at least, if those 1,000 visitors don't visit too many pages, and don't all arrive at exactly the same time.You'd probably have way better gains for your... | What kind of performance gain will I get from ditching Apache for NGINX if I have a very low traffic web site (e.g. 1000 unique visitors a day, approx 5 requests/sec at highest load, and approx 50 MB of traffic per day since lots of photos are being displayed).Specifically, what gains (if any) would I have for:Loading ... | What kind of performance gain will I get from ditching Apache for NGINX? |
Yes you can do that by leaving your Triggers menu empty...
Go to Build --> Edit settings --> Triggers and make shore that there are no triggers. You can alway manually run build by clicking on icon RUN
If you want trigger just for couple of branches you can add trigger to your VCS like this
so my list contains bran... |
I want to trigger a build in Teamcity by doing a manual action(not a commit or pullrequests). Like if i click a button in github it should trigger a build config in teamcity or something similar(by passing the branch). I dont want the process to be automatic for every commits, instead just manually trigger for custom ... | Manually trigger a teamcity build from github |
You can find the docker image platforms using the commanddocker image inspect <image id>Look for the "Os" attribute valueTo list all the images and their respective OSsfor i in `docker images --format {{.ID}}`; do echo $i `docker image inspect $i |grep Os`; done | I am using LCOW and WCOW at the same time on a Windows 10 machine. There are lots of images in both platforms. I want to see all the images of a specific platform.Is there a way to makedocker imagesshow only the images that are for e.g. Linux? | How to filter Docker images by platform? |
Inside root .htaccess have this redirect rule as the first rule:RewriteEngine On
RewriteCond %{HTTP_HOST} ^(?:www\.)?abc\.com$ [NC]
RewriteRule ^ http://xyz-site.com%{REQUEST_URI} [R=301,L,NE]Then inside/new/.htaccesshave this redirect rule as the first rule:RewriteEngine On
RewriteCond %{HTTP_HOST} ^(?:www\.)?abc\.c... | I have 2 WordPress installation for example abc.com and abc.com/new/Now I am planning to move the site to their own domain, i.e abc.com >> xyz.com and abc.com/new/ >> KLM.com.So I was wondering how to accomplish this using .htaccess and where we should have this redirect .htaccess? | 301 redirect for a WordPress site and subfolder to different domains |
Emojis are supported. Simply embed the characters directly in your.gitlab-ci.ymlfile.For example:stages:
- 📦 build
- 🤞 test
"build 🏗 job":
stage: 📦 build
script:
- echo 'build'
"test 🧪 job":
stage: 🤞 test
script:
- echo 'test'When viewed in GitLab, will show the emojis in the same places sta... | Good morning,Anyone know how to add emoji in a gitlab pipeline?In my gitlab-ci.yml file, I tried:To add the emoji hard -> it does not workTo use the unicode of the emoji -> it doesn't workUse icon key -> Not workingUse emojis key -> Not workingObviously it is possible to do this:https://gitlab.com/gitlab-org/gitlab-fos... | Using emojis in a gitlab-ci |
You can useinvoke()to directly execute an AWS Lambda function from an AWS SDK. You can also pass it apayload, which will be accessible within the function.Here is a syntax example in Python:response = client.invoke(
ClientContext='MyApp',
FunctionName='MyFunction',
InvocationType='Event',
LogType='Tail'... | I am developing a simple Lambda function on AWS to get and put data into Dynamo DB. I wanted to call this function from the Windows Client desktop application. My question is, do I really need AWS Gateway API here or can I call the lambda function directly using AWS SDK? | Can I call AWS Lambda directly without Gateway API? |
Try clearing out the old cached copy -- if you changed the git repository in deploy.rb, Capistrano doesn't automatically update the repository in the cached copy on the server.
$ ssh {production server}
$ rm -rf /home/rails/apps/imagesite/shared/cached-copy
$ exit
$ cap production deploy
|
My capistrano script cannot connect to my github private repository.
here is some of my deploy.rb file:
set :scm, :git
set :repository, "[email protected]:ohenrik/imagesite.git"
set :ssh_options, { :forward_agent => true }
set :deploy_to, "/home/rails/apps/#{application}"
I have tested agent forwariding on my serve... | Capistrano deploy not finding private github repo (key forwarding working) |
Here is a solution:{
search(first: 3, type: REPOSITORY, query: "user:MyOrg pushed:>2017-04-01T06:00:00Z") {
edges {
node {
... on Repository{
name
pushedAt
}
}
}
repositoryCount
}
} | Here is a GitHub GraphQL query:query Foo($login:String!) {
repositoryOwner(login: $login){
repositories(first: 3){
totalCount,
nodes{
name
pushedAt
}
}
}
}Is there a way to modify this query so that results that come back are already filtered (limited) bypushedAtdate?pushed... | How to limit repositories of an organization by pushedAt date? |
It means, Fire every 10 seconds.For 10th second of every minute, use "10 * * * * *" expression. It fires once a minute where as " */10 * * * * *" fires 6 times a minute. | Java spring scheduler quartzI have old code with expressschedule="*/10 * * * * *"i do not understand what does that mean ?Even after readying the following file can't figure out what does above Cron expression do.http://quartz-scheduler.org/api/2.0.0/org/quartz/CronTrigger.html | Spring quartz schedule expression |
The issues with the SCM sync configuration plugin sadden me, too. What we do with our Jenkins instances, is: we use thinBackup to run regular backups and store them in the default folder on the same HDD. Then we have a daily cron job rsync them with a folder on another HDD. So if Jenkins is running on Windows, you woul... | I am setuping a Jenkins environment to manage workflows of Python projects. This Jenkins install is running on a Windows 7 machine and I need to backup the Jenkins config to avoid potential loss of work in case of HDD failure (for example).I tried theSCM sync configuration pluginbut this one is not compatible with theS... | How to securely backup Jenkins configuration? |
Spot instances are notalwayscheaper than on demand, they can and do sometimes fluctuate wildly, even to very high per hour amounts, higher than the on demand price at times...but in general, if you bid as you say ($1/hour) and your application can handle being turned off without any notice or consequences, you can save... | Let's say the on-demand instance cost is $1/hour. I assume the spot instance is always cheaper than the on-demand instance. Amazon says that a spot instance can only be shutdown when your bid price is inferior to the spot price.Instead of buying an on-demand instance, why wouldn't you bid $1 for the spot instance and e... | Why use an on-demand instance when I can use a spot instance |
This is included in MVC 2 Futures. See http://blogs.msdn.com/rickandy/archive/2009/12/17/session-less-mvc-controller.aspx for more info.
|
We are building an ASP.NET MVC application which will be deployed behind a hardware load balancer that supports, among other things, caching.
Our proposal is to manually define which URL patterns should be cached by the load balancer. This will be quite an easy process for us as we have 'catalogue' pages which are rel... | Enable / disable session state per controller / action method |
3
Use Github's Repositories API. Everything you want is done there, without scraping or weird hacks. JSON formatted responses by default.
Share
Improve this answer
Follow
answered Jul 11, 2011 at... |
I am new to programming and I have a project where I have to write a Ruby script to retrieve info on a specified repository from github, parsing the data from JSON format, and printing it in a usable format on the command line.
I have checked out mechanize guide. Any documentation that I can check in order to complete... | Web scraping using ruby |
2
Re:
it is possible to detect when a user closes the console and then
execute a function that frees the memory allocated by previous malloc
calls?
Yes, it's possible to catch the signal.
On POSIX-compliant¹ systems, the process is sent SIGHUP.
Macro: int SIGHUP
The SIG... |
I would like to know if it is possible to detect when a user closes the console and then execute a function that frees the memory allocated by previous malloc calls.
I know that the main OS like Windows/Linux/MacOS are supposed to free this memory when the console closes, but I think it is better to make a program to ... | Is it possible to detect when an user closes the console in C? |
Override PodCIDR parameter on the all k8s Node resource with a IP source range10.244.0.0/16$ kubectl edit nodes nodenameReplace "Network" field under net-conf.json header in the relevant Flannel ConfigMap with a new network IP range:$ kubectl edit cm kube-flannel-cfg -n kube-system
net-conf.json: | { "Network": "10.244... | I usedkubeadmto initialize my K8 master. However, I missed the--pod-network-cidr=10.244.0.0/16flag to be used with flannel. Is there a way (or a config file) I can modify to reflect this subnet without carrying out the re-init process again? | Is there a way to assign pod-network-cidr in kubeadm after initialization? |
Edit: this solution is for angular 5
When I had the flickering problem I just added BrowserTransferStateModule to the client app
//app.module.ts
import {BrowserModule, BrowserTransferStateModule} from '@angular/platform-browser';
imports: [
//...
BrowserModule.withServerTransition({appId: 'my-app'}),
BrowserTransferSt... |
Angular 4.4.6
Angular CLI 1.3.2
Node 6.x.x
NPM 3.10.10
Webpack 3.4.1
In Angular Universal application when server view sift to client view there is flicker of screen, because all the API's which were called in server side rendering, also called in client side rendering, due to there was a flicker.
To remove this flic... | angular universal app performance, APP_BOOTSTRAP_LISTENER, flicker |
Note: you may want to include failover in your critical data management.Backup is often used for copy of your data ready to be restored.Failover and DRPrestore theservice(not just the data), since a new server is available:within few minutes for failover, since it is generally on the same nettwork, and its name does no... | I've got a multi-user application having some critical data of the users. I am working on the backup and disaster recovery plan for the application..Would like to know some best practices regarding this..Thanks. | Backup and disaster management plans for mysql database |
Luigi support the concepts of resources that will take it when the task is Scheduled and run, and then released when the taks is finished. Why do you need a more advanced approach.From thedoc:This section can contain arbitrary keys. Each of these specifies the amount of a global resource that the scheduler can allow wo... | I have a Luigi pipeline which consists of a graph of tasks that I run in batch. Some of those tasks rely on a costly resource (for example AWS EC2 cluster of machines, or other costly resource).I am trying to use thisresourcein a smart way, so that Iacquireit prior to running the tasks andreleaseit as soon as all tasks... | Release `resource` in a Luigi pipeline |
TL;DR Compile with -z execstack to enable Linux's read-implies-exec feature for your executable. Despite the name, it applies to all pages, not just the stack.
The program is faulting because the buffer symbol goes into the .data section that in turns goes, along with other sections, into an ELF segment mapped Read-... |
I am working on this c program. I am compiling it with gcc on a 64 bits x64 linux:
#include <stdio.h>
char buffer[]={0x90,0x90,0xC3};
int main(int argc, char *argv[])
{
void (*fct)();
fct=buffer;
fct();
return 0;
}
0x90 opcode is NOP
0xC3 opcode is RET
I want to know what i should do in order to run... | Running data shellcode in c executable |
import boto3
glue_client = boto3.client('glue', region_name='us-east-1')
glue_client.start_crawler(Name='name_of_crawler')
Copy this code snippet at the end of your code.
|
For example I run ETL and new fields or columns may be added for target table. To detect table changes a crawler should be run but it has only manual or schedule run.
Can crawler be triggered after job is finished?
| Is there a way to run aws glue crawler after job is finished? |
First, don't forget that ADD <src>... <dest> can invalidate the cache for all following instructions from the Dockerfile if the contents of <src> have changed. See "Best practices" and use COPY instead of ADD.
In both cases (ADD or COPY), if <dest> doesn’t exist, it is created along with all missing directories in its... |
I have docker file
FROM java:8
# Install maven
RUN apt-get update
RUN apt-get install -y maven
WORKDIR /code/
# Prepare by downloading dependencies
#ADD pom.xml /mmt/CouchBaseClient/CB-RestAPI/CacheService/pom.xml
#RUN ["mvn", "dependency:resolve"]
#RUN ["mvn", "verify"]
ADD cacheService-0.0.1-SNAPSHOT.jar /code/ca... | Files not getting added in docker workspace |
I don't know about the "right" approach but the most common solution is to use versioning of the static files e.g app.js will become app-14gd54646rfw3.js the number is usually a MD5 of the content thus it will only change when the file changeswith spring you achieve it by built-in mechanism as described at the followin... | A little background about the app that I'm working in: Spring MVC, Java EE Web application, Maven.Basically, what I'm looking for is a mechanism to refresh all JS and CSS files upon each deployment of our application. As it stands right now, the application is referencing static files (e.g. "js/app.js"). Every time the... | Cache busting mechanism for Java/SpringMVC/Maven project |
Shall I recreate the Nginx container after each update? if so, how?No, You just need to reload nginx service most of the time.
You can use:docker exec nginxcontainername/id nginx -s reloadordocker kill -s HUP nginxcontainername/idAnother optionwould be using a custom image and check nginx config checksum and reload ngi... | We are using Nginx as a reverse proxy for docker-cloud services. A script is implemented to update the config file of Nginx whenever new service deploys on docker cloud or if service gets new url on docker-cloud.The Nginx and the script have been run in a docker container separately.
The Nginx config file is mounted in... | Update Nginx config file in a container with zero down time |
0
use --exclude='pattern' where pattern can be file or directory eg '/dir/file*'
there is another option too, ie --exclude-from
Share
Follow
answered Dec 14, 2020 at 21:56
v-nodev-node
211... |
We take every day the backup of a folder from production to uat with rsync.
That folder, among others, contains the physical files of a mysql database.
Is it possible to exclude some tables during the backup process?
Edit: If yes, which files should I exclude in the mysql directory?
Thank you!
| mysql : Is it possible to ignore some tables in cold backup? |
seems it is translated by PHP as$_SERVER['HTTP_X_HUB_SIGNATURE']but when in doubt as to how PHP will name a header, set up a page with<?php phpinfo(~0);, and run curl with the url likecurl http://ratma.net/phpinfo.php --header "X-Hub-Signature: test" -v 2>&1 | grep -i test, and you should see what the header is called.... | I've setup a GitHub webhook with a secret and selected application/x-www-form-urlencoded for the content type.I tried to search around but there does not seem to be much info on how to use the post data, such as what does GitHub include in the POST request, can I just do:$_POST["secret"]or is there more to it than tha... | How to get web hook data with GitHub using PHP |
Yes, you can use a git-hook on the remote to trigger some action on your local machine, but that would require:a process running locally that listens for a network message, and does some carefully-crafted automaticgit pullthat handles any and all errors that will come upexposing that process to the remote git server, v... | Say we have a remote repo 'HelloWorldRemote' and I already cloned a local repo from the same, say 'HelloWorldLocal'. Is it possible to set up an automatic git sync HelloWorldLocal with changes from HelloWorldRemote whenever any new changes/commits happen on HelloWorldRemote?
Is this possible in either GitHub or GitLab? | Automatically sync a local repo when changes occur in remote repo |
Note:GitHub Desktophas been rewritten, andreleased in Sept. 2017, almost three years after your question.I just downloaded (March 2018) itsGitHubDesktopSetup.exe, and I confirm: the installation process seems offline. Meaning once you have downloaded the 80MB of the setup, you are good to go. | By now, I can only download aGitHubSetup.exeand wait for it to finish downloading the total program.But my Internet connection is not steady and it would break frequently. Can I get a complete version of Github for Windows so that even if the connection breaks I can still finish installing?There is a questionHow to ins... | How can I install Github for Windows offline? |
According to your logs, this seems to be due to case sensitivity: you show the repository to contain src/WebClient (camel cased!), but then you try to cd src/webclient (lowercase).
On macOS, this would work because the filesystem is by default case insensitive; not sure why it works on your Ubuntu system, unless you u... |
I am trying to test out Github Actions for a small web project. I have two projects in the repository, and I want to create a deployment script for only the web client.
The repository looks like this:
root
|
|-src
| |-API
| |
| |-WebClient
|
|-docs
I want to run scripts in the WebClient directory. When I try to cd... | Github Actions - No Such File or Directory on Any Run Step |
Port 3306 is already in use on the host by the container mysql, hence you cannot allocate the same port on the host for mysql2 container. Change your mysql2 service config to something as below and it should work -
mysql2:
build: ./docker-configs/mysql2
ports:
- "3307:3307"
environment:
MYSQ... |
Docker newbie here.
What I'm trying to achieve is to run multiple MySQL containers with docker compose.
This is my docker-compose.yml:
version: '2'
services:
mysql:
build: ./docker-configs/mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: admin
volumes:
- ./data/mysql:/va... | Docker with Multiple Mysql Container not working |
Do your clone--no-checkoutaka-n, then set up your sparsity rules exactly as you want. To get really minimal clone traffic, don't useblob:none, usetree:0. Smoketest:git clone -n --depth=1 --filter=tree:0 \
https://github.com/cirosantilli/test-git-partial-clone-big-small
cd !$:t:r
git sparse-checkout set --no-co... | As explained atHow do I clone a subdirectory only of a Git repository?the best way I've found so far to download all files in a Git subdirectory only is:git clone --depth 1 --filter=blob:none --sparse \
https://github.com/cirosantilli/test-git-partial-clone-big-small
cd test-git-partial-clone-big-small
git sparse-che... | How to prevent git clone --filter=blob:none --sparse from downloading files on the root directory? |
Github provide a useful help page on removing files like this. There are also other questions on StackOverflow which cover this
Completely remove unwanted file from Git repository history
How can I completely remove a file from a git repository?
See also this section of the Pro Git book, an example given there:
To ... |
Using git for a project, I accidentally added to a commit a big .zip file. I didn't notice until I started uploading it to github. When I noticed, I hit ctrl-c, git remove, git commit and uploaded it again (now with the file untracked).
I know that this wasn't the right choice to do, because once I committed the .zip,... | Completely remove a file from whole git repository |
It looks like you are getting a true merge this time round and fast-forward merges previously.Take a peek atgit docsfor the difference between the two.PS: It is completely normal to do a true merge. However many collaborated environments tend to disallow them since these are the merges which can actually result in conf... | I have 2 branches - master and develop
While I am on the develop branch, I have commit and pushed a change (Added in a file) and it is successful.However, when I typegit checkout master, followed bygit merge develop... Instead of getting the output messages like (I am copying this message from a previous merge that I d... | Git merging and commit issue |
You need to set the 0.0.0.0 IP to 'db', because the postgres runs in another container called 'db', this is the name of your service. So your conn will look like this:conn = psycopg2.connect(database="ps_db", user="ps_user", password="ps_pass", host="db", port=5432)ShareFollowansweredOct 21, 2021 at 13:17Máté TősérMáté... | I'm trying to set up two communicating containers as different servicesPostgreSQL for holding the dataPython with Jupyter notebook for querying the databaseHere's myDockerfileFROM python:3.8.8-slim-buster
RUN mkdir /project
WORKDIR /project
COPY . /project/
RUN apt-get update && \
apt-get install --no-install-rec... | Error when connecting to postgres from a Python container |
Check the content of your.gitmodulesfile:If it includes only one entry[submodule "dist"], with a module pathdist, without URL,then delete the.gitmodulesfile entirely, add, and commit.(Note:as in here, check if you have adist(no trailing slash) entry, and remove it if you do:git rm --cached -- dist).Then try again the d... | I am trying to deploy my app to git pages and I have status failure for GitHub pages.When I am start "pages build and deployment" in Action, I have a next problems:1) Build > Checkout > Fetching submodules:
/usr/bin/git submodule sync --recursive
/usr/bin/git -c protocol.version=2 submodule update --init --force --... | fatal: No url found for submodule path 'dist' in .gitmodules |
your variable is trainX_M and not trainX_M0 , cahgne totrainX_M0[j] = mldata_pd[(mldata_pd.sample_id == i) & (mldata_pd.training_set_band == j)].drop(['conv_gv_band','sample_id','training_set_band'], axis=1)or crete a list trainX_M and df append to it all of the matrixes per class | I am trying to automate a training pipeline and having some troubles to rename the input dataframes over changing model classes.sample_train = [9]
sample_test = [18]
model_class = [0]
for i in sample_train:
for j in model_class:
# Define the training datasets -Filter the datasets with model selections
... | looping a training model over model classes and changing dataframe name by model class |
1
This is very well explained in the official documentation:
https://help.talend.com/r/en-US/8.0/studio-user-guide/how-to-define-user-component-folder-talend-components
TLDR: Create a folder such as
C:/Talend/CustomComponents/
Unzip the component here, i.e: C:/Talend/Custom... |
since Talend has deprecated the exchange functionality, custom components have to be installed via Github. However, i followed the instructions from Talend here which is simple enough using the following component: https://github.com/jlolling/talendcomp_tGoogleAnalytics4Management
According to the Talend instruction, ... | Talend Installation of Custom Components from Github |
Don't worry, if your certificate is valid and contains the right domain name then you've already done everything needed.A "man in the middle attack" is an attack done on the client.The client think the attacker is the website by compromising his DNS
Then the attacker relay in and out traffic from/to the real server.The... | I have installed a SSL certificate (comodo PositiveSSL) for my domain and forced NGINX to only use HTTPS.I run the test on SSL analyzerhttps://sslanalyzer.comodoca.com/?url=domain.comValidation Type Domain Validated (DV)
Trusted by Microsoft? Yes
Trusted by Mozilla? YesWe have our mobile app for Android and IOS gett... | Installed SSL certificate but still exposed to man in the middle attack |
Docker Desktop for Mac uses HyperKit (seehttps://docs.docker.com/docker-for-mac/install/), which in turn uses xhy.ve that requires CPU EPT (https://en.wikipedia.org/wiki/Second_Level_Address_Translation#EPT,https://github.com/moby/hyperkit).People say that nested virtualization is not yet supported by VB - seehttps://... | I have a Mac Sierra 10.12 OS virtual machine, hosted on Windows 10 Home using VirtualBox.I would like to run Docker inside this Mac VM, but when I try, I get the below error message:ErrorIncompatible CPU detected.We are sorry, but your hardware is incompatible with Docker Desktop.Docker requires a processor with virtua... | Can I install Docker inside a Mac VirtualBox VM? |
You should not confuse test results with coverage.The SonarQube JavaScript plugin does not import test results:this feature was dropped.It canimport coverage reportswhich use the LCOV format.ShareFollowansweredJun 27, 2016 at 9:45Pierre-YvesPierre-Yves1,5061111 silver badges1616 bronze badgesAdd a comment| | Our project uses Maven as the build tool and we are using Sonar to track quality. JUnit tests are executed by SureFire and the results are displayed in Sonar. We also have lots of javascripts code and for which we are using Jasmine to generate unit test reports, but I don't know the way to import this Jasmine data to s... | Sonar to import unit test coverage for both Java and JavaScripts |
Apparently some AWS regions do have connection problems with npm (as related in thisissue) and I solved it by forcing npm to download modules viahttpinstead ofhttps.To do that I added a.npmrcfile to the root directory of my project with the following content:registry=http://registry.npmjs.org/Thanks@Jason Livesayfor th... | I am having some trouble to deploy my Node.JS application to AWS using ElasticBeanStalk.As soon as the deploy starts, while running thenpm installscript (default by AWS), I get the following weird error:[email protected]node_modules/material-ui
├──[email protected]├──[email protected]├──[email protected]├──[email pro... | Callback called more than once while running npm install |
You must have a connection to the SonarQube server to run an analysis.
The interface was simplified in version 3.3. Local analysis did not mean without connection to the server. | I have asonarQubeserver running on my work location.
I use theeclipse pluginto connect to the server and see the issues and run analyis.My only problem is that I would like to be able to run analysis locally as well, when not connected to the network.I looked up on the internet andfoundseveral placeswith screenshots sh... | Not possible to analyze locally in SonarQube |
Finally found a solution. I had to tell my env mode when starting pm2 aspm2 start server --env production. And it works perfectly on my browser. | I've just deployed my first Next.js app in production through Nginx and pm2. Everything seems okay but the app frequently reloads after some interval on browser. I'm seeing thewebpack-hmris also running in myproductionserver. (Which I think isn't necessary in production)I am using a customserver.jsand I run my app on p... | Next.js App reloads frequently in production |
STL usesRAII idiom,, it allocates memory when necessary and deallocate automatically.You don't need to manually deallcoatemyvar, just letmyvargo out of scope, all memory will be deallocate automatically.// new scope, maybe function, maybe if/while scope:
{
const std::vector<unsigned char> myvar = getData();
}
// m... | I am using one library api which returns const std::vector . Below is the codeconst std::vector<unsigned char> myvar = getData();Now i have cleanup memory for myvar. How to do this with c++.I am trying something likestd::for_each(myvar.begin(), myvar.end(), [&](unsigned char mychar)
{
cout<<mychar<<",";
dele... | How to deallocate memory for const std::vector<unsigned char> |
Notice the question mark next to the number of results, which links to this part of the documentation:
https://help.github.com/articles/searching-github/#potential-timeouts
Does that answer your question about different numbers in search results?
Also, http://githut.info/ is not developed by GitHub, so I don't think ... |
I was trying to fetch the number of active repositories in GitHub filtering by language. The http://githut.info/ informs that for JavaScript for example, the number of active repositories is almost 324k at actual date, but the advanced search ( https://github.com/search/advanced ) fetchs different results. Every time ... | Númber of active repositories in GitHub info site differs from advanced search tool result |
0
if you load your UIImage with imageNamed: then you cant release this.
cause imageNamed: caches the image till the application closes.
you may try to load ur Image with imageWithContentsOfFile: or imageWithData:
Hope that helps
Share
Improve this answer
... |
Using the Allocations Instrument on my Iphone Device, I notice in my heapshots that all my heap growth is caused by the _dyld_start caller (of dyld library).
Here is an example:
Snapshot: UIImageView
Heap Growth: 4.83 Kb
Still Alive: 103
When I look in the details, all I see is several instances of the following:
Ob... | _dyld_start causing leaks in iphone apps |
I copied your command into a command prompt and got the same error. However, I retyped the command and it worked. I suspect one of the characters in the name argument"CN=MyCert CA"is a special character, possibly copied from a word processor. | I am trying to create Self-Signed CA Certificate on 32bit Windows 7 (virtual).
The makecert is v7.1 located inC:\Program Files\Microsoft SDKs\Windows\v7.1\Bin>.Whenever i try to execute this command (elevated) ...makecert.exe -r -n “CN=MyCert CA” -pe -sv MyCert.pvk -a sha1 -len 2048
-b 09/04/2012 -e 09/04/... | Creating Self-Signed CA Certificate with makecert.exe |
There are a couple of options you can look into for this migration:Use AWS Database Migration Service to use Aurora PostgreSQL as source, and Postgres(RDS or any other) as target. Refer to the documentation to check on version support and configurations.https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Postg... | Due to high i/o cost we want to migrate from aurora(Postgres engine) to Postgres. Is there any way to do this.
If no is rebuilding the entire dataset is the only option? | Migrate from aws rds aurora(postgres engine) to regular rds postgres |
Please define "crashes". If the window just disappears, it usually means the JVM bug and there will behs_err_pidXXX.logfiles in the IDEA working directory (usually IDEA_HOME/bin). In some cases updating JDK to the new version or changing Garbage Collector strategy (via vmoptions file) can workaround such issues.If the ... | SometimesIntellij IDEAcrashes for no obvious reason.First, it becomes quite slow,CTRL + N(class search) often takes a bit longer than usual time to respond when you type something into it, jumping between files takes more time. And then it crashes..What is the usual route to diagnoseIntellijcrash? I've been monitoring ... | Intellij diagnosing crash problem |
Cloud load balancer does not compress or decompress responses itself. They serve responses generated by the backend instances that are compressed using gzip.You need to enable gzip proxied.
In order to contain this header in the load balancer’s response, in you nginx configuration file, you may have to set up an Acce... |
I'm using google cloud Load balancer that sits in front of an nginx backend service (in google cloud terms).
When i'm accessing the nginx server directly i can see the 'Content-Encoding: gzip' header (left side).
But the response from the Load balancer doesn't contain this header (right side).
I've enabled gzip_prox... | Google cloud load balancer not returning Content-Encoding: gzip |
EDIT:
Below answer is now outdated.
Please seeBrendan Forster's answeras to why and a proposed
alternative.GithubDesktop install a Git shell with their desktop application. It seem to be locate in a same directory than their RIA application.If you have a shortcut created by installer GitHubDesktop you can retrieve the ... | According tohttps://git-scm.com/book/en/v2/Getting-Started-Installing-GitThe installer includes a command line version of Git as well as the GUI. It also works well with Powershell, and sets up solid credential caching and sane CRLF settings.When I'm launching the latest download fromhttps://desktop.github.com/, it jus... | Where does Github desktop install command line version of Git |
0
I guess you could get all commits by the method mentioned by this doc:
https://developer.github.com/v3/repos/commits/
If you're trying to retrieve a large ammount of commits, you can check the since and until parameters
Share
Improve this answer
... |
I'm trying to download all commits for a project using the GitHub API. I'm currently attempting to get all commits via branches and via pull requests:
I read all commits returned by the commit API method (e.g., api.github.com/repos/mojombo/grit/commits). I take pagination into account.
For each branch as returned by ... | Read all commits for a project using the GitHub API |
The most basic method would be to simply usekubectl logscommand:Print the logs for a container in a pod or specified resource. If the
pod has only one container, the container name is optional.Hereyou can find more details regarding the command and it's flags alongside some useful examples.Also, you may want to use:L... | Have few developer logs in kubernetes pods, what is the best method to get the logs for the developers to see it.Any specific tools that we can use?I have the option of graylog, but not sure if that can be customized to get the developer logs into it. | Options for getting logs in kubernetes pods |
I think you're looking for git filter-branch: https://gitirc.eu/git-filter-branch.html
This question is related: How do you fix a bad merge, and replay your good commits onto a fixed merge?
|
Is it possible to remove historical file references for files not in head? I have a repository that has 109,000 commits and working through that many commits with a Rewrite is terrible.
Renaming directiories done following logic from here
https://gist.github.com/emiller/6769886
I'm trying to clean up a git repository ... | Remove history for files not in master::head |
You should not connect through localhost but by the container name as host name.
So change your .env to contain
DB_CONNECTION=[what the name is in the config array]
DB_HOST=pgsql
DB_PORT=5432
DB_DATABASE=laravel
DB_USERNAME=[whatever you want]
DB_PASSWORD=[whatever you want]
|
I created a docker container using the standard "image: postgres:13", but inside the container it doesn't start postgresql because there is no cluster. What could be the problem?
Thx for answers!
My docker-compose:
version: '3'
services:
laravel.test:
build:
context: ./vendor/laravel/sail/runti... | Creating a docker container for postgresql with laravel sail |
Does the certificate have a corresponding private key?X509Certificate.CreateFromCertFiledoesn't support loading certificates with a private key. You need to get the certificate from a certificate store with the private key or maybe from a PFX file -http://msdn.microsoft.com/en-us/library/ms148420.aspx | We have a function to send files to a public server usin X509 cert in C#, but the issue is on the receiving end the cert is not being picked up. we get a 403.7 message saying cert not supplied.
the code to add the cert is as followed:try
{
X509Certificate certificate = X509Certificate.CreateFromCer... | X509Certificate not getting transmitted to the server |
Found yipee.io that supports all the options and resources:# Generated 2018-10-18T11:07:27.621Z by Yipee.io
# Application: nginx
# Last Modified: 2018-10-18T11:07:27.621Z
apiVersion: v1
kind: Service
metadata:
namespace: webprod
name: nginx
spec:
selector:
app: nginx
ports:
- port: 80
targetPort: 808... | Closed.This question is seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. It does not meetStack Overflow guidelines. It is not currently accepting answers.We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-si... | Kubernetes Yaml Generator UI , yaml builder for kubernetes [closed] |
The reason the commit message can't be empty is two-fold:You're not allowed because you're not allowed. An empty commit message doesn't tell anybody anything about why the commit happened, so git doesn't permit them.The commit message is one of the components that gets hashed in order to generate the commit's SHA1 comm... | I have just started using github and wanted to ask a few questions about it, instead of posting like 5 individual questions.Question 1. How can I commit without a message or description? It seems the commit button is disabled when the text box is empty.Question 2. How do I change the user I commit as? I have changed it... | A few questions about github |
You can use the internal directive to prevent a location from being accessed directly. See this document for details.
For example:
location = /myfile.php {
internal;
include fcgi.conf;
fastcgi_pass unix:/var/run/ajenti-v-php7.0-fcgi-drnou-php7.0-fcgi-0.sock;
}
|
I've created a simple php file to display info fetched from my MYSQL database. Right after that i use a rewrite rule in Nginx to make the link seo friendly and to mask the .php file that fetches it.
Ex: http://localhost/myfile.php?seo=how-to-install-linux
After rewrite rule the i can access it like:
http://localhost/h... | Nginx block access to php files |
If you want to install CUDA 8.0 with Visual Studio 2017 you need to install additional components for Visual Studio 2017.Click on the Start Menu and type Visual Studio Installer. Open Visual Studio InstallerOpen Individual components tab and select VC++ 2015.3 v140 toolset
under Compilers, build tools and runtimes.
... |
I'm trying to install CUDA, but I get a message saying "No supported version of visual studio was found". I think that this is because I am using Visual Studio 2017 (Community), and CUDA currently only supports up to Visual Studio 2015. Unfortunately, Microsoft will not allow me to download old versions of Visual Stud... | Using CUDA with Visual Studio 2017 |
I believe that you should place only absolute paths in your cronjobs. As seen in your question, you wrote:./aws-cron-job/Ap_Hourly_xxxDelete.shand I think you should write:/<rootpath>/aws-cron-job/Ap_Hourly_xxxDelete.sh | I get this error while running thru crontab/aws-cron-job/Ap_Hourly_xxxDelete.sh: 1: ./aws-cron-job/Ap_Hourly_xxxDelete.sh: ec2-describe-snapshots: not found./aws-cron-job/Ap_Hourly_xxxDelete.sh: 1: ./aws-cron-job/Ap_Hourly_xxxDelete.sh: ec2-delete-snapshot: not foundThis is my script: filename =xxx.shec2-delete-snapsho... | Sh Script runs fine manually, fails in crontab |
Looks like you have encounteredhttp://jira.codehaus.org/browse/SONAR-5575andhttp://jira.codehaus.org/browse/SONAR-5574, they will be fixed in the upcoming 4.5.1 | When I create a new custom rules on 4.4.1.I add the xPath query to the textbox but when I save it doesn't really save as when I try to edit the rule, the xquery textbox is empty. Then after when I type it again and save, the xquery textbox disapears from the edit panel, see below screen shot.Also, when I try to analyze... | Xquery textbox disapears after typing xpath query |
try:RewriteEngine On
RewriteCond %{HTTP_HOST} oldsite.com$ [NC]
RewriteRule ^site/(.*)$ http://www.newsite.com/$1 [R=301,L]This redirects something likehttp://www.oldsite.com/site/some-page.htmltohttp://www.newsite.com/some-page.html(the matching bit of the URIafter/site/ gets carried over in the 301 redirect), but if ... | I have looked but can't find anything that works. I have an old site that we have updated. They had everything under a folder called site under the root. Now all the customers who have this bookmarked I would like to redirect them, regardless of what is after the folder site (subfolders, files), to the main page of the... | htaccess URL rewrite rule for everything under a folder |
There's nothing I know of and I also didn't find anything with Google. You may be able to hack something together on your own though:>> cron = "*/10 * * * 1,3 foo"
#=> "*/10 * * * 1,3 foo"
>> min, hour, dom, month, dow, command = cron.split
#=> ["*/10", "*", "*", "*", "1,3", "foo"]Once you have the vars, you can star... | Is there a ruby gem/plugin which will convert something like */10 * * * 1,3 to "Triggers every 10 minutes on Monday, Wednesday" ? | ruby plugin/gem to convert cron into a human readable format |
There are no options to control logging in aPod spec. Instead, you need a cluster-wide log collector.Logging Architecturein the Kubernetes documentation describes the setup. As a programmer this isn't something you control, you'll have to ask your cluster administrator or your local DevOps team to configure it for yo... | I am using hybrid approach where in for few services I am using simple docker compose approach and for others I am using kubernetes for deployment. For both approaches I want to keep my centralized logging same ( fluentd ).
Here is my docker compose file ,version: "2.1"
services:
inventory:
image: SOME_SERVICE
... | Kubernetes equivalent for docker compose configuration of logging ( fluentd ) |
Those two lines are equivalent. In both cases objects are created that you have a reference to but not an owning reference. However, they'll be on the autorelease pool. That means they'll last as long as the pool does, which if you've not done anything special will be until control returns to the run loop. Objects lik... |
Consider the following two allocations of arrays.
NSMutableArray* alpha = [[[NSMutableArray alloc] init] autorelease];
NSMutableArray* beta = [NSMutableArray array];
Assuming nothing else retains alpha or beta, my understanding is that the result of both is the same. The retain count on both will 0 and therefor they... | Objective-C Object Allocation |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.