Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
The PHP scriptWebsite 2 Backupdoes exactly what you want :Backup to Amazon S3Incremental backup of files, only new and modified files are backuped, deleted files are listed.Backup of the database, with auto clean of old archivesClean and easy to setup ajax administrationIt runs with the cron jobAnd it does more, data e... | Closed.This question isoff-topic. It is not currently accepting answers.Want to improve this question?Update the questionso it'son-topicfor Stack Overflow.Closed11 years ago.Improve this questionEDIT:I have completely changed the question.I want to use Amazon S3 for my backups and I am looking for a debian lenny softwa... | Website backups on Amazon s3 [closed] |
Each initialization involves two conversions, first from the decimal numeral in the source text to double, and then from double to long long.
Let’s discuss the second declaration first. Because 2.001 is a double constant, the decimal source text 2.001 must be converted to double. Assuming your C implementation uses IE... |
This question already has answers here:
Is floating point math broken?
(34 answers)
Closed 3 years ago.
"x","y" are two long long type variables in c++ to which i have assigned two... | why c++ is rounding of big numbers to ceil and small numbers to floor [duplicate] |
Logstash reads all the files in your configuration directory and merges them all together into one config.To make one filter or output section only run for one type of input, use conditionals:if [type] == "api" {
....
}ShareFolloweditedDec 29, 2015 at 4:06answeredDec 29, 2015 at 3:18Alain CollinsAlain Collins16.3k22... | I'm using logstash 1.5.6 in Ubuntu.I wrote two config files in the/etc/logstash/conf.d, specifing different input/output location:File A:input {
file {
type => "api"
path => "/mnt/logs/api_log_access.log"
}
}
filter {
...
}
output {
if "_grokparsefailure" not in [tags] {
elasticsearch {
ho... | Logstash mix output when using two config files |
4
The first parameter to calloc() is the number of objects and the second parameter is the size of each object. The total allocation size is the product of those two values. In your case that's n * dim * sizeof(double).
Share
Improve this answer
... |
I am learning C and have this question. Suppose I declare the following buffer:
int n=100, dim=5;
double *buf = calloc(n * dim, sizeof(double));
How do I know the total size of this buffer that is declared in memory (in byte)? I use the following way but I am not sure if it is logically correct: int buf_size_in_byte=... | Determine the total size of a buffer in byte |
Your question is opinion based and cannot be answered unambiguously. I will try to outline a few ways to solve the problem for you, but I cannot say which will be "easier". Everything has its pros and cons. But to the point. First look atthis question:Coderangerwrites:The somewhat convoluted standard answer to this is ... | My scenario looks like this:I have a k8s cluster runningin this k8s cluster i have a statefullset defined, within the statefullset I have a pod running, say it'spodName-0What I would like to achieve is, whenever thepodName-0is not in running status, send a email to someone and someone is going to fix this.I tried using... | what's the simplest way of monitoring whether a pod is running in k8s cluster |
You can use the registry of your gitlab project.
eg.
images:
stage: build
image: docker
services:
- docker:dind
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY # login
# pull the current image or in case the image does not exit, do not stop the script:
... |
A very typical scenario with GitLab CI is to install a few packages you need for your jobs (linters, code coverage tools, deployment-specific helpers and so on) and to then run your actual stages/steps of a building, testing and deploying your software.
The Docker runner is a very neat and clean solution, but it seems... | GitLab Docker Runner to reuse installed software layers |
The first element represents the seconds; to run at second 0 and 30 use the following:
<cron-expression>0/30 0/1 * 1/1 * ? *</cron-expression>
|
I am using Quartz Scheduler to run my jobs. I want to run my job every thirty seconds. What will be my cron expression for that?
For every one minute, I am using below cron expression:
<cron-expression>0 0/1 * 1/1 * ? *</cron-expression>
What it will be for every thirty seconds?
| cron expression for every 30 seconds in quartz scheduler? |
I'm not sure what's happening with the deleting of the content, but you can try to use the graceful command to restart instead.sudo apache2ctl gracefulThis will gracefully reload its configuration!or the reload commandsudo service httpd reload | Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchange site, ... | Restarting httpd on AWS EC2 behaves erratically. Is it supposed to delete the contents of /var/www/html? [closed] |
I think you need a custom kubescheduler, and for your pods to be able to specify whether they want to use the default or the custom scheduler.Kubernetes supports this:https://kubernetes.io/docs/tasks/extend-kubernetes/configure-multiple-schedulers/-- basically, create a .yaml file, runkubectl create -fon it, and you sh... | I am new at Kubernetes and completely new to setting it up inEKS.I am trying to achieve sharing ofGPUbetween multiple pods, but for that going through few of the documents and articles, I found out I should update thekube-scheduler configurationwith parameters which will then allow me the make the necessary changes for... | How to change the behaviour of kube-scheduler in EKS? |
I got a response from AWS support on the topic.The links are indeed one-way, which is an unfortunate limitation. They recommended taking one of two approaches:Use a shared filesystem and write the IP addresses of the containers to a file, which could then be used by your application to access the containers.Use AWS Far... | I'm getting asymmetrical container discoverability with multicontainer docker on AWS. Namely, the first container can find the second, but the second cannot find the first.I have a multicontainer docker deployment on AWS Elastic Beanstalk. Both containers are running Node servers using identical initial code, and are b... | Multicontainer docker (AWS) link is one-way? |
A hard link just creates a new directory entry for the same file (http://en.wikipedia.org/wiki/Hard_link). So a snapshot takes up effectively zero space, but you'll want to clean it up after you're done copying it off to whatever your archive is, because when the "original" sstable is deleted (typically post-compactio... | I have Cassandra 1.2.6 cluster running on datacenter A, each node has a solid state drive with somewhat limited space (aprox 50% of disk space is free).Now I need to implement somehow a way of having automatic backups of each node. Ideally I want to have a way of moving all of the cluster's datafiles to a different di... | moving Cassandra snapshots to a different disk/server/datacenter |
4
This is a not enough privilege error. Either you did not run this:
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
Or there is an admin.conf from previous inits. In this case while running secon... |
I'm following this guide on how to set up a kubernetes swarm.
My swarm will be as follows:
10.0.2.1: swarm1 (master)
10.0.2.2: swarm2 (worker) (currently trying to setup a single node swarm)
10.0.2.3: swarm2 (worker) (not yet provisioned)
I followed it and got up to the part where I enter the command:
kubectl appl... | Kubernetes Setting Up Flannel Pod Network |
Sorry this is not a bug, but happens due to the Apache release process which required us not to change the source during/after voting. This means we need to keep "1.8.2" in version.py while the tag says something else.
If you want rc4 of airflow why don't you install from https://dist.apache.org/repos/dist/dev/incuba... |
I didn't succeed installing the latest airflow release candidate.
Specifically, running pip install -e git://github.com/apache/[email protected]#egg=airflow on the CL ended with:
File "/home/alex/Desktop/urban-physiology-toolkit/src/airflow/setup.py", line 87, in git_version
assert tag == version, (tag, versio... | Unable to install the latest release candidate of a Python library on GitHub |
I have got the solution. First I created a root certificate for the local domain and added it as the trusted root certificate. A certificate signing request is issued via the root SSL certificate I created in the first step. I followedThis nice blog to resolve the problem. You can check my repository where I have inclu... | XMLHttpRequest: Network Error 0x800c0019, Security
certificate required to access this resource is invalid | "Certificate required to access this resource is invalid" |
That should be as easy as adding a castfoo = S_realloc((char*) p, n1, n2, n3);wherepis yourdouble *p.There is also an alternate formTYPE* Calloc(size_t N, TYPE)
TYPE* Realloc(ANY *P, size_t N, TYPE)
void Free(ANY *P)perSection 6.1.2 User-controlled MemoryofWriting R Extensions.Edit:Corrected initial comment re Sectio... | In C code called from R via .Call, I pass adouble *vectorto a function for
fillingvectorwith numbers. I don't know how largevectorwill be in the
end, so I keep track of its number of elementsvector_sizeand useS_realloc(vector, vector_size+64, vector_size, vector_size * sizeof(double))to increase the size by 64 doubles ... | S_realloc: How to increase the length of a *numeric* vector? (first argument not char*) |
RUNin a Dockerfile will fail if the exit code of the command is non-zero. If that happens,docker buildwill also fail with a non-zero exit code.Yournpm testscript needs to return a non-zero exit code when the tests fail.For reference, you can check the exit code like this:$ npm test
$ echo $? | DockerfileFROM node:carbon
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
RUN npm install gulp -g
COPY . .
run gulp build --build
run npm test
EXPOSE 80
CMD [ "npm", "start" ]Tests are ran usingmocha --recursivebuild.shdocker build -t my-app .
echo $?How can I detect that one mocha test fails, thusnpm ... | Make docker build fail if tests fail |
It sounds like the "execute" permission bit is not set on yourscript/runnerfile. If that bit is not set, the unix shells will not try to execute it.chmod +x script/runnercan be used to set it.man chmodfor more details on the chmod command. | When I do justscript/runnerit gives me-bash: script/runner: Permission deniedWhen I dosudo script/runnerit gives mesudo: script/runner: command not foundIt only works when I doruby script/runner. Why? Everywhere else I see people just runscript/runnerwithout therubyin front of it... Is there a "fix" for this? It's caus... | Why do I always need "ruby" in front of "script/runner"? |
php_value upload_max_filesize 30Mis correct.You will have to contact your hosters -- some don't allow you to change values in php.ini | I have try to put these 2 linesphp_value post_max_size 30M
php_value upload_max_filesize 30MIn my root.htaccessfile but that brings me "internal server error" message.php5 is running on the serverI don't have access to php.ini so I thinkhtaccessis my only chance.Can you tell me where the mistake is? | How to set upload_max_filesize in .htaccess? |
nbviewer, provided by the Jupyter community, offers many types of rich output rendering and interactivity for previously run notebooks.nbviewer has several full-featured abilities GitHub doesn't and presents it in a nice way that's not overwhelming for those not as tech savvy as GitHub users. You can point it at any Gi... | I am using Github to create a portfolio. I wrote some code in Google Colab and uploaded it to Github. But I can't see the output. I'd like to see the output appear, so the person who sees my portfolio would understand what I have done.Is there any way to show the output in github?Colab:Github: | How to make the output appear in github using jupyter notebook |
if you are able/permitted to modify the files ininstalldir\web\WEB-INF\app\controllersyou could change the filelanding_controller.rbdef index
if logged_in?
return redirect_to :controller => 'projects', :action => 'favorite'
else
return redirect_to :controller => 'projects' //here was 'about'
en... | The SonarQube 6.2 product has dramatically changed its skin. I am still playing with it, and my first impression is that I like it, but one thing that is bugging me and will surely confuse my users is the default landing page for my host (e.g.http://sonar.example.com) is redirected tohttp://sonar.example.com/aboutinste... | SonarQube 6.2 - Change default landing page to /projects from /about |
The flagallow-insecure-localhostseems to no longer be available on Chrome 88 (apparently flags expire after a certain amount of time) and should be back with v89, according to this:https://bugs.chromium.org/p/chromium/issues/detail?id=1159077 | I just tried to work, but Google works very hard to prevent me to do so. I just wanted to develop my favourite legacy application witch I have to use with HTTPS even during development time on localhost. I set up everything just like I do for a long time now... But suddenly I started to getNET::ERR_CERT_INVALIDerror.I ... | Disable any cert check on localhost on chrome |
No! You can't.Admission is divided into two phases. In the first phase, only mutating admission plugins run. In the second phase, only validating admission plugins run. Theorder of pluginsin which they are passed to this flagdoes not matter.Ref:https://github.com/kubernetes/kubernetes/blob/v1.22.2/pkg/kubeapiserver/opt... | we had an opensource Mutating Webhook at hand, and want to add another webhook before the one mentioned above. Does anybody has an idea of the execution order of different mutating webhooks, and how could we specify one mutating webhook executes before another? | What's the order of different Mutating Webhook, and how can I add a new mutating webhook before another? |
To resolve this it was suggested to run the command from an EC2 instance rather than a remote host.
This enabled a speedy import.
The likely reason is the number of network based operations across the internet rather than a local network resource which has shorter latency between each interaction.
|
There is any way to make this operation faster?
I'm trying to restore my DB to the AWS DocumentDB, and probably it will take some weeks to finish... my overall data is less than 400MB.
dump is Gzipped
| mongorestore is very slow on AWS DocumentDB |
When
Not too quickly. It is generally very cheap to have short lived objects. For a cache to be profitable there would have to be (very) many candiadates and they should live long enough to make it to the next generation.
How can you diagnose if it's an issue?
With a Profiler. I'm not so sure the author of the a... |
I was reading a blog entry by Josh Smith where he used a cache mechanism in order to "reduce managed heap fragmentation". His caching reduces the number of short-lived objects being created at the cost of slightly slower execution speed.
How much of a problem is managed heap fragmentation in a managed language like C#... | When to address managed heap fragmentation |
12
After some research and a lot procrastination I came to the simple conclusion that a ZF-ized cron script should contain all the functionality of you zend framework app - without all the view stuff. I accomplished this by creating a new cronjobfoo.php file in my applic... |
I am trying to write a cronjob controller, so I can call one website and have all modules cronjob.php executed. Now my problem is how do I do that?
Would curl be an option, so I also can count the errors and successes?
[Update]
I guess I have not explained it enough.
What I want to do is have one file which I can cal... | Create cronjob with Zend Framework |
You can find Dockerfile here
cp-kafka-connect does not have the cp-enterprise prefix
cp-enterprise-replicator is the enterprise Kafka Connect image. You can add any other Kafka Connect plugin to it just as you can add them to the other one
The other one contains all the open source Connects on Confluent Github (HD... |
On the docker configuration website of confluent, regarding the open-source/enterprise identity, the naming convention and the table notes seems to be contradictory.
cp-kafka-connect does not have the cp-enterprise prefix, and according to the text description they are presumably open source.
However, in the table, it... | is cp-kafka-connect open source or proprietary components? |
The JVM uses the native stack of the process. This minimise overhead, and allows the stack to be virtual (it can have a maximum size much larger than what is actually used)
As a result most stacks are rarely used much ( << 10% of maximum ) and graphing them might be more confusing than useful.
|
This question already has an answer here:
Is frame in JVM heap allocated or stack allocated?
(1 answer)
Closed 7 years ago.
In Java, objects are stored in the heap but method local... | Is stack a logical memory area in heap? [duplicate] |
If you provision Kubernetes cluster dynamically, as far as you can rebuild cluster environment without any dependencies on the worker Nodes from scratch,Autoscalingdown to zero Nodes will be a good solution, whereas Kubernetes master Nodes (system Pods) are not charged inGKE, according to thePrice page.You can createno... | I have a batch job that I want to run on a Kubernetes cluster on Google Cloud. That job has to be run periodically, say once a week and takes a day to complete. From the doc:Beginning with Kubernetes version 1.7, you can specify a minimum size of zero for your node pool. This allows your node pool to scale down complet... | Google Cloud Kubernetes cost when rescaled to 0 nodes |
What version ofDockerare you using?
I had the same issue usingDocker v19.03, but updating toDocker v24.0.5resolved the problem for me. | I'm using RabbitMQ in a docker swarm which has multiple services, all the other services are starting up fine, but the RabbitMQ container doesn't, and the logs show the following error:Failed to create thread: Operation not permitted (1)
Aborted (core dumped)My docker-compose.yml file looks like this:version: "3.6"
ne... | RabbitMQ & Docker: Failed to create thread: Operation not permitted (1) |
You're looking into the wrong site.
When you create a GitHub page it'll be hosted inhttps://<your-user>.github.io/<project>. So, in your case, the proper link to see the page is in:https://evdokp.github.io/testdocs/ | I made special repository to store documentation. I wanted to use Github automatic pages generation option (not Jekyll).It is said, that as soon as you push to gh-pages branch, html will be generated. But it's not. Why?https://github.com/evdokp/testdocsYou can see there test.md file, and not test.html file. | Github pages automatic page generation doesn't generate html |
<div class="s-prose js-post-body" itemprop="text">
<p>You may be missing a port forwarding rule in the VirtualBox settings.</p>
<pre><code>boot2docker vm > settings > Network > NAT adapter > Port forwarding
</code></pre>
<p>Note the last entry:</p>
<p><img alt="enter image description here" src="https://i.s... | <div class="s-prose js-post-body" itemprop="text">
<p>I am running tomcat in my docker container from the Official Repo.</p>
<pre><code>docker pull tomcat
</code></pre>
<p>And as per guidelines stated in the <a href="https://registry.hub.docker.com/_/tomcat/">homepage</a> I've run the instance and the Tomcat server is ... | How to access tomcat running in docker container from browser? |
Use this to delete outdated caches:
self.addEventListener('activate', function(event) {
event.waitUntil(
caches.keys().then(function(cacheNames) {
return Promise.all(
cacheNames.filter(function(cacheName) {
// Return true if you want to remove this cache,
// but remember that ca... |
So, I have an HTML page with service worker,
the service worker cache the index.html and my JS files.
The problem is when I change the JS, the change doesn't show up directly on the client browser. Of course in chrome dev-tools, I can disable cache. But in chrome mobile, how do I do that?
I tried to access the site se... | How can I force service worker to clear cache? [duplicate] |
Try using ACM (https://aws.amazon.com/certificate-manager/) to issue an AWS issued wildcard certificate for your domain and use that instead?As to why your existing cert won't work - does it have the domain in the cert (eg images.domain.com) as either the primary domain or as a SAN? If not, it won't work.If you don't w... | I am looking for some advice as how to most cost efficiently setup SSL for a subdomain e.ghttps://images.example.com.Images are hosted in AWS S3 and I have a cloudfront distribution pointing to that bucket.I have purchased asingle domain SSL cert from Comodoand successfully added it to my cloudfront distribution. That ... | AWS Cloudfront custom sub domain TSL / SSL: "Not secure / certificate invalid" |
No, state is local to each statefulDoFn, and it is also actually local to each key (and window, if you are using a window) inside thatDoFn. | IsBeam Stateshared across different DoFns?Lets say I have 2 DoFns:StatefulDoFn1: { myState.write(1)}StatefulDoFn2: { myState.read() ; do something ... output}And then the pipeline in pseudocode:pipline = readInput.........applyDoFn(StatefulDoFn1)......map{do something else}.......applyDoFn(StatefulDoFn2)If I annotate m... | Sharing Beam State across different DoFns |
I have same issue and i fix this with install file comman via apt. But still not working yet, i will update when i found a solution.apt-get install -y --no-install-recommends file libmagic1 libglu1-mesa mesa-utils libpci3 pciutils libpulse0Edit:
I found a solution after add packages to your docker fileadd your docker ... | I'm trying to create a android emulator inside a docker container but got some problems.The SDK updates and AVD creation were successful and i try to create the emulator, the following error appears:./emulator -avd test-22 -no-skin -no-audio -no-window
sh: 1: file: not found
sh: 1: file: not found
WARNING: Cannot dec... | 'sh: 1: file: not found' when creating a android emulator inside a docker container |
try this...RewriteEngine On
RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | I am using this code for SSL migration:RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]The problem that I am facing is that it is working is that the redirection is not working for most... | Redirection http to https and non-www to www |
Make sure your plans don't conflict with the license of the project you want to fork.Fork the repositoryon GitHuborGitHub Enterprise.Clone a working copy of your forked repo andcdinto it:git clone https://github.com/your-org/your-repocd your-repoCheckout the branch you want to cherry-pick to:git checkout the-stable-bra... | We want to run the latest stable branch of Airflow but also cherry pick certain changes from master (bleeding edge). How would we go about cloning said repo in our own GitHub Enterprise server?We have no plans of requesting pull requests, we leave that to the community. There may be a time where we would need to make a... | How to clone and cherry pick changes from a git repo |
0
To Disable SQL Server Managed Backup to Microsoft Azure for a specific database:
Connect to the Database Engine.
From the Standard bar, click New Query.
Copy and paste the following example into the query window and click Execute.
EXEC msdb.managed_backup.sp_backup... |
We got a 2019 SQL Server VM in Azure with both Azure Server backups and Azure SQL Database backups configured.
Azure SQL Database backups are configured as FULL backups on Sunday and DIFF backups the other 6 days but I noticed there are frequent (7 times a day) copy-only full backups running. These copy-only full back... | Frequent Copy-only full database backups running on SQL Server VM in Azure |
For a conditional update you need strong consistency. I am going to guess that an update is a separate operation in which consistent read + write happen atomically and fail/succeeded together.
The way to think of Dynamo is like a group of separated entities that all keep track of the state and inform each other of upd... |
I was reading the DynamoDB documentation and found two interesting features:
Eventual consistent reads
Strongly consistent reads
Conditional updates
My question is, how do these three things interact with each other? Mostly I'm wondering if they conditional updates use a strongly consistent reads for checking the co... | How do DynamoDB's conditional updates work with its eventual consistency model? |
Blue labelView 88doesn't represent issue, it representspull request.For example, thisbranchon python-docs-samples has label2091which representsthispull request. | On Github, if we go to a branch, and then look at the top right, we can links to related issues as in the screenshot below.However, when I am in the issue, ie:https://github.com/Noitidart/The-My-App/issues/88. I don't see links to related branches. Is it possible to get this? | View related branches in issue |
The answer is Yes; after setting up and configuring SSL on Windows IIS Server, it's possible to create an image (AMI), and launch it later, assigning the original domain name, and it will continue to work.ShareFollowansweredDec 8, 2020 at 18:09can.docan.do52455 silver badges1515 bronze badgesAdd a comment| | After setting up an EC2 instance, and installing an SSL Certificate for a specific domain, I plan to create an image of the instance (AMI). Then I will terminate the original instance, and launch a new instance from the AMI, replacing the 1st instance, the new instance now having the same domain.My question is whethe... | SSL Certificate use on instances created from AMI and validity |
I got that working with this:App/Console/Kernal.php:protected function schedule(Schedule $schedule)
{
$schedule
->command(Commands\PerformerReminder::class)
->when(fn() => Carbon::parse('last monday of this month')->isToday());
} | I want to run a crononly on last Monday of the monthusing Laravel's Cron API. I have checked this:https://laravel.com/docs/5.3/schedulingI don't get any solution there.At most I can:$schedule->command(Commands\PerformerReminder::class)->monthly()->mondays();But I think it will run the cron on each Monday of the month, ... | Run cron on last monday of the month - Laravel |
Make sure your node server keepAliveTimeout is greater than the ELB idle timeout. ELB and ALB don't like when the target machine closes the connection. To detect this you can check the elb logs, you may see response time of -1 with 502. '-1' means the target did a direct reject of the request.ShareFollowansweredFeb 25,... | I have an ELB in front of a node.js application deployed on 3 EC2 instances.I have startedobserving intermittent HTTP 502 Bad Gateway error.Following is an excerpt from my access logs. There is no pattern to these 502 errors so I am unable to narrow down the cause ?Is it anELBissue or an app issue ?Can access logs help... | AWS ELB Intermittent 502 gateway timeout error |
1
As @talonmies points out, on Intel OpenCL is supported on the integrated GPU, but only on Windows:
http://software.intel.com/en-us/articles/opencl-sdk-frequently-asked-questions/#14
Share
Improve this answer
Follow
... |
What are my choices of technologies, languages and tools to develop general-purpose software running on the integrated GPUs of Intel Ivy Bridge processors? OpenCL (if so, Intel drivers? Whose compiler?)? CUDA? Something based on LLVM?
I believe DirectCompute is not an option for us, because we won't be running wind... | What are my choices of technologies for GP development on Intel integrated GPU's? |
Is your certificate valid and signed by a 3rd party root authority likeThawte, Verisign... etc? | I have a https apache server that needs client verification. But when somebody is browsing this site there is need to select proper cert from list of certificates installed in browsers. What can I do to become client cert default to my webpage (so clients do no need to select cert) | Client certificate selection |
9
I manage to create a ssh tunnel from a docker-compose using this entrypoint:
ssh -4 -i /.ssh/ssh_key -NL *:27017:0.0.0.0:27017 user@remote_ip
and then i was able to use the ssh tunnel from an another container by using the network created with the docker-compose
docker ... |
I have a Docker container, which I would like to be able to interact with a database trough a SSH tunnel.
My Docker image is built on an alpine image and in the Dockerfile I have installed openssh-client and exposed port 27017
When I spin up my Docker image and try to forward the ports with:
ssh -i /.ssh/ssh_key user... | Docker SSH forwarding - bind: Address not available |
Try starting Firefox without any plugin (safe mode), because I just tested several copies from Sublime Text3 to a gist in Firefox (latest version), and I did not reproduce the issue.My file can use CRLF or LF end-of-line characters, in both cases, the lines are preserved.For testing, try thoseArch Linux commandsto put ... | When i copy&paste multi-line text (from sublime3 or terminal) into Github/gist web inputbox i can see my text properly formatted (for a glimpse of a second). Then gist immediately removes all line breaks and fits everything into one line (see pic below). How can i prevent this?Arch Linux, Firefox 58.0.2picture:https://... | github/gist - How to paste multi-line text (without line breaks getting removed) |
We are quite happy usingthis exporterto ingest some of the StackDriver metrics to on of our Prometheus instances. Please note that this Exporter may need careful configuration, or else you might end up ingesting a huge number of metrics from SD. You should probably play around with theSTACKDRIVER_EXPORTER_MONITORING_ME... | I am new to Prometheus. I am running a number of containers in Google cloud platform using Kubernetes. These containers send their logs onto Stackdriver. I would like to create metrics and chart using those logs in Prometheus. How could those logs which are on Stackdriver be scraped by Prometeus?Any advice would be app... | Monitoring Stackdriver using Prometheus |
Solution for path was using regex/path/test/[a-fA-F0-9]+/[a-fA-F0-9]+/ | apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: kong-ingress-test
annotations:
kubernetes.io/ingress.class: "kong-ingress"
konghq.com/strip-path: "true"
namespace: test
spec:
rules:
- host: test.com
http:
paths:
- backend:
serviceName: test
... | Is it possible to have placeholders in kong plugin k8s? |
App Engine supports "Push to Deploy" which can do almost exactly this!
https://developers.google.com/appengine/docs/push-to-deploy
You'll probably have to actually clone your repo, then push from it locally, but that should be easy.
Update 19/09/2016: The previous link is broken, the current way to connect to some ext... |
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they di... | Code push from GitHub to Google App Engine [closed] |
1
You need to look at the following:
Registry: Docker registry image can be configured as caching proxy. Your docker daemons will be configured to use this caching proxy registry for image pulls. Only first image pull will get downloaded from dockerhub and images will be c... |
Docker in it's current form places any docker commands into a work queue and executes them one at a time and sequentially (synchronously). This means if you're creating a single threaded API (node.js) that incorporates docker commands such as standing up containers or downloading images it will very quickly get backed... | How To Run Docker Commands Asynchronously? |
1
It all depends on the nature of the data access. Will the accesses to those 600GB be uniformly distributed? If that's not the case then a solution where you cache part of your content in memory and keep the rest of it on the HDD will likely be sufficient since you have en... |
I have a Go application which requires around 600GB of memory. The machine on which is will run has 128GB of RAM. I'm trying to decide how best to handle this.
The options are:
Just load everything into the memory (pretend like I have 600GB RAM) and let the OS page out the infrequently accessed part of the memory int... | Go: Best way to handle excessive memory application? Mmap, memory or caching? |
export is a shell builtin and xargs expects an actual binary. | Why doesexportfail when used as the last step in a command pipeline?echo FOO=bar | xargs export
# => xargs: export: No such file or directoryI can rewrite it this way to accomplish what I want:export `echo FOO=bar`But why can't I useexportin the first way? | Pipe to export command |
You can't use a[R=301]and expect the URL not to change. R means redirect. So it will change to the URL you told it to. For an internal rewrite you need to leave that off.If you have .htaccess in your document root then you should be able to do this. I don't know how your setup is but this should rewrite the URI.Options... | I want to rewrite some url by using.htaccessrewriteI have url something like this:domain.com/app/index.php/appmedia/default/loginand want to rewrite users todomain.com/app/index.php/zurmo/default/loginSo, what will happen is users will see appmedia in browser but in the backend it will access zurmoI'm new to php and ha... | Php rewrite url through .htaccess |
From the error message, it looks like your Podfile is also depending onAmplifyPluginsCorewhich depends on the originalAmplifyversion which is no longer available because the forked pod does not include that version.ShareFollowansweredNov 19, 2021 at 14:35Paul BeusterienPaul Beusterien28.5k77 gold badges8585 silver badg... | I need to use Amazon's Amplify iOS pod, but because of certain application extension-unsafe code in the pod, I need to modify that code if I want to publish my app.What I've done is:Forkedhttps://github.com/aws-amplify/amplify-iosinto my own repoChecked out a new branch, made my code changes, and then committed and pus... | How to add expected version for a forked and modified public pod? |
step1:Restore the backup to the same server with a different name.Say if your actual database is "MYDB", you can restore the backup and name "MYBD_BKUP" something like that.You can restore database using SQL server management studio
Right click on Databases>Restore DatabaseStep2:Once restore is success full, you can d... | We have this current database which we need to replace some tables by anther tables from backup database. we are using sql server 2008 r2 and I want to know how to do overwrite or replace current tables by new table having same structures. thanks in advance. | replace table by other table |
Apparently Node.JS apps are quite fast on the Raspberry Pi 2.
The app I was test driving had and still has some weird behavior when using a password to encrypt content and starting the server with --password 12345678 made everything run very slow.
Running the app without a password is lightning fast.
PS. The app in qu... |
I have this app I'm developing and I thought of moving the VM I was using to real hardware. My Raspberry Pi 2 came to mind, a quad-core 900mhz ARM v7 with 1GB of ram. This hardware clocks at twice the speed I set my VM to run (a typical low end VPS equivalent) so it should be more than enough.
Installed Raspbian, ngin... | Node.js app takes a long time to start up and connect to? Why? |
Which version of IIS do you have ?
If you use IIS 7, make sure you have the application pool type set to integrated and not classic. The integrated pipeline mode is IIS 7 specific.ShareFollowansweredMay 16, 2013 at 8:15ToXinEToXinE31822 silver badges1414 bronze badgesAdd a comment| | I've recently installed VS 2012 and .net Framework 4.5, and everything is mostly ok, except that I occasionally get the error:
This operation requires IIS integrated pipeline mode.I of course have Managed pipeline mode: Integrated in IIS.protected override void OnLoad(EventArgs e)
{
var st = new StackTrace(true);
... | Since installing VS 2012, I'm getting intermittent PlatformNotSupportedException |
First, to revert changes to tracked files:git reset --hard HEADgit resetalone resets the index; adding--hardresets the working copy as well. If you've already committed, specify a different commit to reset to - eg,HEAD^to revert to the parent commit ofHEAD(ie, to remove the latest commit).Next, to delete all untracked ... | I made a lot of unhelpful changes, and would like to revert to the state my repo was in before any of the changes.Is there a git command for doing that?Thanks! | What is the git command to erase all changes and revert to the state of your last commit? |
In the end I found and used the Octokit SDK for dotnet
https://github.com/octokit/octokit.net
As I for @Nils answer would also need the authorization for the repo to run the GIT commands, i went with a higher level solution more native to Cake
|
I'm working with Cake and Teamcity and I'm trying to access which branch a GitHub PR is targeting
Been trying to find a GitHub API wrapper for Cake do to the job, or a plugin/script to TeamCity to populate some parameter with the value, but no luck so far.
Is there any good wrapper for Github PR in Cake or TeamCity th... | Access target branch name from GitHub Pull Requests in Cake |
You can only keep the files, not the history.checkout the desired branch at that other location.copy the other repo into the target repo.delete.gitfolder and any.git*file from the destination folder.checkin the new folder into the target repoIn thegit shelldo this:/other/location/otherPrepo>git checkout the-branch-wan... | I have just copied a directory to another local git repo. It turns out that directory I copied is also another git repo, so now I have what I assume is called a nested repo.I wanted to keep the outer repo and then to integrate the inner repo as the outer repo (modifying the remote origin, per say). One of my concern is... | How to remove a git nested repo but keep the files from one of the branches? |
My actual need is to check if the wildcard cert used inhttps://abc.xyz/or not.In this example, we'll check if a wildcard cert is used onmsn.com:$url = 'https://www.msn.com'
$req = [Net.HttpWebRequest]::Create($url)
$req.GetResponse() | Out-Null
$cerName = $req.ServicePoint.Certificate.GetName()
$cerName -match 'CN=\*\.... | I have a bash commandcurl -v --silent https://abc.xyz/ 2>&1 | grep "CN=\*.xyz.com" -cthis works fine from a Ubuntu machine but I want to convert or use a similar command in Powershell or in CMD. I tried a bunch of variations like:curl https://abc.xyz/ 2>&1 | Select-String -Pattern "CN=\*.xyz.com"curl -E -Uri https://ab... | Wildcard certificate usage search with Powershell or Command prompt |
Assuming I've understood your question correctly, then no, jQuery won't keep a reference to the selected nodes beyond the statement that uses them:$('.myclass').html('hello'); //Select all .myclass elements, then change their HTML
$('.myclass').html('bye'); //Select all .myclass elements, then change their HTML againIf... | I know jQuery doesn’t cache collections of element, f.ex calling:$('.myclass').html('hello');
$('.myclass').html('bye');Will make jQuery climb the DOM twice.But how about cached DOM nodes?var elems = document.querySelectorAll('.myclass');
$(elems).html('hello');
$(elems).html('bye');Will jQuery cache those internally,... | Does jQuery cache elements internally? |
git pull --allfetches from all configured remotes.git pullonly pulls from the default remote. | I only havemasterbranch locally and i have remote branchesmasterandbranch1.when i rungit pullandgit pull --all, seems these two commands are the same, i have thoughtgit pullonly pull the code on my local current branch.So these two commands are the same?The only difference isFetching originin the log.PS: the loggit pul... | Does git pull and git pull --all the same? |
I see two options:
Use docker -g to configure where your inner docker instance stores its images. Make sure that this is a location outside of the inner docker instance that doesn't get blown away. Also see here.
Run a private docker registry that caches images locally. See here for details.
And a word of warning ab... |
I work in a Docker container that has a bunch of other Docker containers running inside. Every time the outer container is destroyed, I see that the images that were previously pulled from Docker Hub have to be pulled again.
In the example of Redis, I see the following
docker run --name my_redis -p 6379:6379 -d redis
... | Caching docker images locally |
You've tagged your question as Laravel 4, but I don't think the scheduler was introduced until Laravel 5...
Anyway, based on the code snippet you've posted, you could use the cron method.
$schedule->command('catalog:update')->cron('0 */2 * * *'); // every 2 hours
$schedule->command('catalog:update')->cron('0 */5 * * *... |
I undestand that you can create hourly tasks on Laravel by using:
$schedule->command('catalog:update')->hourly();
however is there a way to do for example every 2 hours or 5 hours? I couldn't find it on documentation or here.
| Laravel Task Scheduling Every X Hours |
First, in your file explorer, enableView hidden filesThen check if you see a.gitin theutalkfolder. That would make it a nested git repository, mostly ignored by your parent folder.Switch to command-line and do agit statusinutalk-projectto know more about your current situation.ShareFollowansweredJul 10, 2022 at 6:31Von... | I'm very new to Github and I'm trying to create a new repository that contains 2 folders ("server" and "utalk").The "utalk" folder is my front-end and the "server" folder is my backend.But when I use Github Desktop, it seems I only push theserverfolder and cant push theutalkfolder.I don't know how to push all my folder... | How to upload foders using Github desktop |
You should allocate memory first.char * filename = NULL;
filename = malloc(sizeof(PATH) + sizeof(FILE) + 1);
snprintf (filename, sizeof(PATH) + sizeof(FILE) + 1, "%s/%s", PATH, FILE);ShareFollowansweredJul 20, 2009 at 19:13Sinan TaifourSinan Taifour10.7k33 gold badges3333 silver badges3030 bronze badges31sizeof on stri... | I'm trying to add two strings with snprintf but apparently i dont know what i'm doing.Here is the code block:char * filename = NULL;
(void)snprintf (filename, sizeof(filename), "%s/%s",
PATH, FILE);I also tried:char * filename = NULL;
(void)snprintf (filename, sizeof(PATH)+sizeof(FILE)+1, "%s/%s",
PAT... | Bug trying to add two strings with snprintf |
From github's FAQ:
What counts as a contribution:
On your profile page, certain actions count as contributions:
Committing to a repository's default branch or gh-pages branch
Opening an issue
Opening a discussion
Answering a discussion
Proposing a pull request
Submitting a pull request review
So only commits to th... |
I make React project and save github.
I divide my project different bigger stage.
When i arrived an bigger stage i copy my local folder also and continue from that point.
I also copy my git folder but not copy node modules and package-lock.json ...etc because i'ts recreated after npm install
Now this point I can modif... | Why not appear on my Github profile contributions a commit after i copy my folder local and switch branch? |
You could try to add a time token to the url of your video in your html page.
$filepath = $destination_path.$video_name.".mov";
$videoUrl = $wwwpath . $filepath . "?" . filemtime($filepath);
|
About what I'm doing:
I'm doing a website where you can search videos.
-I show rows of content with a mini-clip embebed for each row that shows a video.
I use jQuery.AJAX for retrieve this videos so I don't need to reload the page.
Everything works fine. I show the videos and I can play them from that rows.
For adm... | Clearing cache doesn't work for videos |
Your regex is incorrect. You're trying to match until first dash then use[^-]instead of[^_](dash != underscore)Try this rule:RewriteRule ^apps/([^-]*)-(.*)$ /app_details.php?id=$1&name=$2 [L,QSA,NC] | A have a problem with url rewriting.
I have this url:http://www.example.com/apps/1-health-directoryWith this rule:RewriteRule ^apps/([^_]*)-([^_]*)$ /app_details.php?id=$1&name=$2 [L,QSA,NC]The problem is that when I want to get the id and name param, this is what is returned:app_details.phpid=1-health&name=directoryAn... | first dash is not recognized as delimiter |
-2
It's possible to vary the Output Caching based on pretty much anything you want by using VaryByCustom, and providing a special function that will return the cache key string. For your case, try a directive like this:
<%@ OutputCache Duration="30" VaryByParam="myParam" V... |
I would like to know if its possible to use outputcache with a querystring parameter AND a session parameter together.
I'm serving location based content and the countryid is stored in a session, while other parameters as categoryid, pageindex are stored in querystring.
| Basing ASP.NET Outputcache on querystring parameter AND session |
The answer isyes, you can restart 5 out of 10 pods of a particular deployment. Though it won't be a single command for this.As you correctly assumedkubectl scalewill help you here.Restart of 5 pods out of 10 contains 2 operations:Scaling down the deployment from 10 to 5 podskubectl scale deployment deployment-name --re... | I am working on an application which is running on the Kubernetes cluster. I want to restart the n number of pods manually in a sequence. Can we do that? Wouldkubectl scale <options>work here? | Restart n number of pods in K8s |
5
In progressIndicatorBuilder of cached network image, there's a parameter called downloadProgress, pass that value to CircularProgressIndicator to display loading.
Note: Replace NetowrkUrl with actual url
CachedNetworkImage(
height: 400.h,
imageUrl: "NetworkUrl",
pro... |
I am displaying an image using cachednetworkimage and when I click to view an image, it first shows the placeholder image and then loads the image. I don't understand why it does not show progress indicator when the image loads. I want to show progress indicator when the image loads. Incase the image is not available,... | Cached Network Image does not show progress indicator when image is loading |
Upgrade yoursupport-v4dependency from 21.0.3 to 22.1.0, because it was added in that version.http://developer.android.com/tools/support-library/index.html#revisions | I cloned a project from a github repository to my personal computer which is using classandroid.support.v4.widget.Spaceand i'm trying to run it but it always gives me the same error:Error:(6, 33) error: cannot find symbol class SpaceIn my gradle.build i have the following dependencies:compile files('libs/pinit-sdk-1.0.... | Class android.support.v4.widget.Space is not found |
Check out thisanswer about the difference between private and public subnets in AWS.In short, the distinction is at the networking layer with the resulting security posture being similar. The instance on the public subnet without a publicly routable address will not be able to receive inbound connections nor make outbo... | I have a VPC created according to scenario 2:http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Scenario2.htmlWhen creating an instance in the public subnet, I'm given the choice of:1- Not associating a public IP to the instance2- Associating a public IP that can change when the instance is restarted3- Associati... | Amazon EC2: instace in public subnetwork without public IP vs instance in private subnetwork |
1
copy /usr/local/android-studio and all its childs to your backup folder
also backup /home/user/.AndroidStudio*.* and /home/user/Android
Share
Improve this answer
Follow
answered Apr 23, 2017 ... |
I don't have that fast internet and need to format my PC. It's running on Ubuntu 16.04 and I want to backup the installation of Android Studio so that when i format my pc and install ubuntu again, i could use it again. Thanks in advance.
| How do I backup Android Studio itself |
The URLs that you specified are proxy endpoints so they are accessed through a proxy that is usually set up on your client with:kubectl proxyI supposed you could access it from the outside if you expose your kube-apiserver to the outside which highly unrecommended.If you want to access the endpoint from the outside you... | I have a Grafana running on an EC2 instance. I installed my Kubernetes cluster k8s.mydomain.com on AWS using kops. I wanted to monitor this cluster with Grafana. Entering the below URL for Prometheus data source and the admin username and password fromkops get secrets kube --type secret -oplaintextin grafana returned a... | Accessing a remote kubernetes cluster with grafana |
3
Ok I finally found the good way...
The code I use (which can be found at many place) use exit(0) function on child process to terminate it. But on php-fpm this also kill the main process... That's why it was not outputing after first child call...
Here is solution (foun... |
I'm issuing a serious problem using php-fpm and pcntl_fork.
Both are working pretty well, but when they are together, I "loose" standard output for web browser. This mean the fork works, but the standard output (client browser) is totally lost for everybody (all children and the parent).
Outside fpm (in command line f... | php-fpm and pcntl_fork |
3
use these 2 in your manifest:
android:allowBackup="true"
android:fullBackupOnly="true"
why we use fullBackuoOnly?
Android versions before Marshmallow had a backup system that required a significant developer effort to implement. If you implemented that system, but you... |
I have in my application Android manifest:
android:allowBackup="true"
But in spite of using an Android 8 device the backup does not work until I manually put in the console:
adb shell bmgr backup @pm@ && adb shell bmgr run
and...
adb shell bmgr fullbackup <PACKAGE>
as says the Android developers guide to test a bac... | Why Android's allowBackup is not working? |
Tests and Sources are treated as different kinds of thing in SonarQube. That's why you have different parameters to specify their locationssonar.sources
sonar.testsand why you have different properties to specify their exclusions.Note also the difference betweensonar.global.exclusionsandsonar.exclusions. The former wil... | I got asked today to explain the difference betweensonar.global.exclusionsandsonar.global.test.exclusionstags. According to the documentation found athttp://docs.sonarqube.org/display/SONAR/Narrowing+the+Focusthe difference should be:sonar.global.exclusions - to exclude source code filessonar.global.test.exclusions - t... | what is the difference bewteen sonar.global.exclusions and sonar.global.test.exclusions |
With find, you can chain together multiple conditions of the same type. This leaves you with a couple of options:You could blacklist other specific files, like this:find ! -name "*$newVer*" ! -name 'script.sh' ! -type d -deleteOr just whitelist the.apkextension:find -name '*.apk' ! -name "*$newVer*" ! -type d -delet... | I have a script (executed periodically via cron) that downloads the latest version of WhatsApp from their server. I would like to retain just the latest version with the filenameWhatsApp_x.x.xxin my server with a softlinklatest.apk.#!/bin/bash
# Get the local version
oldVer=$(ls -v1 | grep -v latest | tail -n 1 | awk... | How to delete all files except the ones with a specific pattern OR a specific type? |
The Kubernetes API doesn't currently expose a way to change the logging behavior. It'll rotate the log files as appropriate to avoid filling up the disk, but if you need more control, you'll have tomodify the docker daemon on each node to change its logging driver.Or if you want to do it for a specific application, cha... | I have triedkubectl create -f x.yaml --logtostderr=truebut it didn't work. | how to disabled kubernetes log to disk file? |
Technically, You can deploy multiple app containers in same POD but you should avoid that asyou want to scale them independently (X replicas of APP1 and Y replicas of APP2)also to keep resource allocation dedicated to one kind of applicationand many more benefits of isolationAs far as communicating them via name (no IP... | I would to deploy, through kubernetes, two applications inlocaldocker images (no docker hub/artifactory). I want them to see each other through name (no ip), so I should deploy them in the same POD and load the name of the first as system environment variable in the second container.They should be both visible from the... | Kubernetes YAML deploy for multiple images in same pod? |
It does seem to work with Puppet4.4.2and3.4.3, so it's safe to assume that both Puppet3.xand4.xdo the right thing here:$ cd /tmp
$ echo foo >foo
$ puppet apply -e 'file { "/tmp/foo": audit => "content" } ~> exec { "/bin/echo DING": refreshonly => true }'
Notice: Compiled catalog for this-box in environment production i... | In my puppet managed environment, one service needs to be restarted each time a file changes. The file itself is not under puppet's control but part of a package, i.e., may gets updated during (yum) updates.Thus, I would like to 'subscribe' to this file and trigger a service restart on changes.Since the file is not man... | Puppet: audit on external file changes? |
Something like this could work (I haven't tested it):RewriteCond %{HTTP_COOKIE} PHPSESSID=([a-zA-Z0-9]+)
RewriteCond %{REQUEST_FILENAME} %{REQUEST_FILENAME}-%1.html
RewriteRule ^ %{REQUEST_FILENAME}-%1.htmlIt assumes that you append"-$session_id.html"to filenames ($session_idis PHP's session ID).It should be safe, and ... | My PHP app uses 404 Documents to generate HTML files so that multiple queries to the same HTML file only cause the generation to run once.I'd like to intercept requests to the HTML files so that the user needs to have an established PHP Session in order to pull up the files.In the best case, SESSION ID would be used in... | Protecting HTML files with .htaccess |
You have to quote the summary as well, then it should work fine. | I want to access lables of the metric which matches the expression to inform the team about which exact queue exceeds the limit:An example of the metricjob_duration_bucket{resource_server="rs1",queue="default",connection="database",le="15"} 445
job_duration_bucket{resource_server="rs1",queue="default",connection="datab... | How can I add metric labels to Prometheus alert manager description? |
This is followed bycli/cliissue 1735(for a similar case), which clearly states:We won't be adding an option to skip certificate verification because that would be insecure and would defeat the point of SSL and certificates being enforced in the first place.So, no, it is not possible to skip SSL check withgh.You would n... | I'm dealing with an Enterprise GitHub server with an expired certificate, and I would like to use the GitHub CLI tools.gh auth loginresponds with:error validating token: Get "https://github.XXXXXX.com/api/v3/": x509: certificate has expired or is not yet valid: current time 2022-01-04T16:06:33-08:00 is after 2018-06-01... | disable SSL verify in GitHub CLI (gh) |
Unfortunately the GitPush event only contains the commit id and the branch name:"eventName": "GitPush",
"awsRegion": "us-east-1",
"sourceIPAddress": "52.21.1.64",
"userAgent": "git/2.20.1 (Apple Git-117)",
"requestParameters": {
"references": [
{
"commit": "758822355756e0badd633debe441792",
... | I would like to know how to customize a slack integration between AWS Code Commit and Slack.Currently my setup uses an SNS topic connected to an AWS Chatbot. I followed instructions at:https://docs.aws.amazon.com/codecommit/latest/userguide/notification-rule-create.htmlCurrently the notifications on slack do not displa... | AWS Code Commit Slack Integration - How to display author and commit message |
12
I've face that problem either while hosting a java app with jenkins, mysql & tomcat on ubuntu on an vm of AWS.
First steps I used to solve the problem with restarting a vm.
AWS doesn't give swap memory on a harddrive by default, so you'd better to make it with your han... |
We have our hosting in aws. Recently after moving our blog from wordpress to aws, we are experiencing noticeable delay in server response time. Mainly while accessing the blog. Below are the logs from the error_log file,
[Wed Feb 25 06:10:10 2015] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[W... | Cannot allocate memory: fork: Unable to fork new process? |
You don't give a lot of details buthereis an answer I gave for a neat way to track all changes to specific fields of specific tables.ShareFollowansweredApr 23, 2018 at 21:17TommCattTommCatt5,54611 gold badge1313 silver badges2020 bronze badgesAdd a comment| | Auditing and traceability is important during web development to be able to know the changes has been made on specific entities or records and by which users to track back changes if needed.One of the ways I have used to do that is to audit data image by storing the before and after json of the modified entities and re... | Efficient database designs for auditing and history tracing purposes |
5
You just can't. Every file pushed on a Github public repo will be readable.
As I understand, using .gitignore won't solve your problem if you need to deploy the config file on heroku using Git.
You can try Atlassian Bitbucket if you need free private repositories.
... |
I have a rails app that I am deploying with heroku. I am also using github. In my app, I have a file (below) that I believe is needed in order for mail to be sent. However this file contains my personal email address and my github repo is public. Is there a way my web app can still use this information but not hav... | How to prevent personal info to be shown in public repo on github? |
Based on the comments.
Calculation of Etag hash for an object is not consistent and can't be fully used for checking integrity of the objects. From AWS blog:
ETag isn't always an MD5 digest, it can't always be used for verifying the integrity of uploaded files.
This is because the calculations of ETag depend on how ... |
I'm trying to perform an S3 sync between prefixes in buckets in different accounts using boto3. My attempt proceeds by listing the objects in the source bucket/prefix in account A, listing the objects in the destination bucket/prefix in account B, and copying those objects in the former that have an ETag not matching... | Why would an S3 object's ETag change under a copy? |
You can merge changes from github to TFS repo by below steps:Move files into subfolder in local github repoAssumeDEVis the subfolder for TFS git repo root directory, you can create the same folderDEVin github repo, and move files in the subfolder:# In local github repo
mkdir DEV
mv * DEV
git add .
git commit -m 'move ... | So I'm working semi-remotely on a project for a company with a small team. We have only a single VPN-enabled laptop to access their TFS which remains in a single secure office. We want to use Github to collaborate and get all our work onto the company Laptop, and then transfer that work to the company's TFS.However I c... | How to merge changes from Github to TFS |
The SAN must match the domain in the URL you use. If you usehttps://localhostthen there must be a SAN of type DNS with valuelocalhost. If you usehttps://127.0.0.1then there must be a SAN of type IP with value127.0.0.1. Not the importance of the correct type and not only of the value.I use localhost as the common name. ... | I am trying to connect to localhost over https so that I can use service workers. I have tried many solutions such as chrome flags as described in posts such asthis, but none have worked. Finally, I used OpenSSL to make myself a certificate authority and sign my own certificate. However, despite everything running corr... | Subject Alternative Names for Localhost |
The old answer, but maybe will be useful for someone,check the using Redis database number.If your data contains in the Redis database with a number different from 0 (default number), first set the DB number in CLI mode, using the commandSELECT <db number>Example:https://redis.io/docs/manual/cli/#interactive-mode | This is chunk of mydocker-compose.yml:redis:
image: redis:alpine
container_name: foo_redis
volumes:
- ./docker/volumes/redis:/data
restart: unless-stopped
ports:
- 6379:6379
networks:
- local_networkI can guarantee that data persists betweenupsanddownsbecause I've definedvolume... | Why my Redis Docker container shows "(empty array)" for KEYS * while I'm absolutely sure it has cached data and it works OK |
A few weeks ago, self hosted runners was made available as a public beta. Here are the details:https://community.atlassian.com/t5/Bitbucket-Pipelines-articles/Bitbucket-Pipelines-Runners-is-now-in-open-beta/ba-p/1691022Additionally, if you're looking to retain some of your files from one build to the next to save doing... | We are currently using bitbucket cloud to host our grails-app repository. We want to set up some pipelines to do things like run unit tests and make sure the app compiles before being able to merge a branch to master.I know this can pretty easily be done by letting them host the pipeline and committing a well written p... | Can you host a bitbucket pipeline internally? |
It is becauseRewriteCondis only applicable to the very nextRewriteRule. Your last 2 rules execute for all the hosts includingbuddiesandbazaarand causes redirection loop.You need these rules:RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?example.com$ [NC]
RewriteRule ^/?market/(.*)$ http://market.example.com/$1 [L,... | I have .htaccess file like:RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?example.com$ [NC]
RewriteRule ^/?market/(.*)$ http://market.example.com/$1 [L,R=301]
RewriteRule ^/?buddies/(.*)$ http://buddies.example.com/$1 [L,R=301]
RewriteRule ^/?bazaar/(.*)$ http://bazaar.example.com/$1 [L,R=301]It works fine in marke... | redirect subdirectory to subdomain issue |
I'm not sure what is the problem. The announcements informs that you have to use Java 11+ to execute scans, but you can still compile your code with Java <11. You didn't provide any information about your project, so let's take a Maven project as an example.It generally means that you have to do something like this:// ... | As the following announcement points out, SonarSource ended support to run code Analyzers with pre-11 Java versions:January 2021 - Move analysis to Java 11The version of Java installed in the scanner environment must be upgraded to at least Java 11 before 1 February 2021. Pre-11 versions of Java are already deprecated ... | Run SonarScanner analysis with Java 11, run target code with Java 8 |
I usually just create a temporary container to run npm inside instead of having to install node and npm on the host. Something like this:docker run --rm -v "$(pwd)":/data -w /data -it node bashand then inside bash I runnpm initto generate a package.json andnpm installto generate package-lock.json. You may want to use-u... | The Node.js docker tutorial (https://nodejs.org/en/docs/guides/nodejs-docker-webapp/) specifies that the npm install should be run on the host prior to starting docker to generate the package-lock.json file.How should this file be generated when npm/node are not available on the host?How should the package-lock.json ge... | How should the package-lock.json file be generated for Node.js docker apps? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.