Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
I dug a bit deeper in this issue as I found it as an interesting feature ofspring-boot-actuator.
From my research I found out that this feature withlivenessandreadinesshas been introduced inspring-boot:2.3.0so if you're using an older version this might be the reason you're not receiving the expected result when you do... | So this is my configuration in application.yaml:management:
endpoint:
health:
show-details: "ALWAYS"
probes:
enabled: true
endpoints:
enabled-by-default: true
web:
exposure:
include: metrics, health, caches, restartAnd according to documentations this should be enough f... | Spring actuator's liveness and readiness are returning 404 |
There isno build-in mechanismto lock DynamoDB table to safeguard from concurrent overwriting. But there are design patterns which you can implement yourself, or depending on your programing language, find an existing implementation ready to be used, even provided by AWS.InAWS docsyou can find information how to impleme... | I am updating dynamodb table from a lambda function. In a high throughput case, there could be multiple lambda instances running at the same time to update the same table. Is there a way to safe guard the table? Whether I can lock the table? | How can I avoid overwriting dynamodb from two lambdas? |
Did you run git-lfs install inside your repository ? If you cant do it that way, downlaod git-lfshere. | I've installed LFS through Homebrew but when I set it up it returnsError: unknown command "install" for "git-lfs"
Run 'git-lfs --help' for usage.If I try to have it track a file type it returns.swf is outside repository | Trouble installing git LFS |
IIRC the version attribute only applies to the nginx::source recipe. So instead of:chef.add_recipe "nginx"try:chef.add_recipe "nginx::source"Then the correct version should be installed | Getting started with using Vagrant for some Rails development. Going one step at a time, so I'm first trying to install nginx via a Chef recipe in the vagrant file. However, while I set the nginx version in theVagrantfileto1.20.0, Vagrant does not seem to recognize it and keeps installing version1.1.19.I'm going to go ... | Vagrantfile not respecting nginx version using Chef for provisioning |
33
On Dec 11, 2012 "Upload Releases" functionality aka "Downloads" was deprecated.
https://github.com/blog/1302-goodbye-uploads
Update: On July 2, 2013 GitHub team announced a new "Releases" feature as a replacement for "Downloads"
https://github.com/blog/1547-release-your-... |
Github has this download link on the repositories. How can I add binary distributions to this list?
I cannot find any info on help.github, so a link to some documentation would be helpful.
| Add binary distribution to github's download link |
Chances are your crontab is working but you just don't see the output because by default cronmailsthestandardanderroroutput to the owner of the cron job. So what you can do is redirect them to a file and check it out manually.
You can do that by editing the crontab entry so that it looks like this:* * * * * /usr/local/... | I am trying to run an automated tasks from php script which I couldn't run. For testing purpose, I created test.php and still nothing is working.These are the lines I executed in the flowcrontab -eThis opened nano with#.............hint text were here
#.............hint text were here
* * * * * /usr/local/bin/php -f te... | Crontab is not working... Tried all possible solutions |
try this exit code will be 1:
docker rm -f CONTAINER_NAME 2> /dev/null
this with exit code 0:
docker rm -f CONTAINER_NAME 2> /dev/null || true
|
How can I delete a docker container with force ignore that means if there is no running docker container it should do nothing and if there is a running docker container with the name then it should stop and remove that container.
I am executing the following code to stop and remove the container.
docker rm -f CONTAINE... | Stop and remove docker container with force ignore |
IMHO, unless you've got other evidence, that's probably a healthy server. There's a bunch of background process in ColdFusion/Tomcat which clear things up and record monitoring data (including feeding data to your monitoring tool: perhaps making this a Heisenbehaviour). These all allocate memory as they go and will gr... |
Using server monitoring on CF-10, I noticed a strange behavior on one of my company's test servers. Here's a screenshot of the JVM's memory usage on the server, with nothing happening on the CF site at all, no traffic whatsoever.
As you can see, the used memory just goes up steadily, until GC kicks in (I assume) and b... | ColdFusion JVM using memory for no apparent reason |
You can use a PullSecret to tell Kubernetes what registry to get your containers from. Please see:http://releases.k8s.io/release-1.0/docs/user-guide/images.md#specifying-imagepullsecrets-on-a-pod | I know how to run a registry mirrordocker run -p 5000:5000 \
-e STANDALONE=false \
-e MIRROR_SOURCE=https://registry-1.docker.io \
-e MIRROR_SOURCE_INDEX=https://index.docker.io \
registryand how to use itdocker --registry-mirror=http://10.0.0.2:5000 -dBut how can I use multiple registry mirror.This is ... | How to run or use multiple registry mirror? |
You can't. Git operates on the entire repository, not on individual directories. You can:
Create a new branch, and on that branch only modify things in your target directory.
You could obviously follow william.eyidi's suggestion and delete the other directories, but this will make things difficult if you want to me... |
I have a git repository on GitHub, with 3 different folders and only the master branch. How can i create a new branch on one single directory instead of all the three?
| Git add branch on one single directory? |
3
In any of the workstations where you have pulled the git repository, perform the following actions,
git remote add origin https://github.com/user/repo.git
git push --all
git push --tags
This SO question and answer might help.
Make sure you pull the latest code from the s... |
I have some products with all codebase on a git server now, I want to take all this code for each product to Github. How can I do this with all the commit history?
| Migration from git server to Github |
Normally, the components view should not include the test files by default. Check our demo Sonar instance, for instance:classes of the Sonar Code Colorizer module:http://nemo.sonarsource.org/components/index/182946(no test classes are displayed)test classes of this module can be found here:http://nemo.sonarsource.org/d... | I am using Sonar on Java and Ant. I use static code analysis and import test results from our CI server.When looking at the "Components" view in Sonar, that view contains both source code and test code. Rules and test coverage are displayed correctly for source code, but nothing is displayed for tests. I am wondering i... | Sonar includes test files in the Components view. Is this right? |
Just throw an exception and do not catch it anywhere. Any uncatched exception causes Lambda failure. You can see more information about how to report failures in AWS Lambda with Java: https://docs.aws.amazon.com/lambda/latest/dg/java-exceptions.html
public TestResponse handleRequest(TestRequest request, Context contex... |
How do I make a lambda function report a failure in Java 8?
I see this is possible in Node.js.
http://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-handler.html
Using the Callback Parameter
The Node.js runtime v4.3 supports the optional callback parameter. You
can use it to explicitly return informatio... | AWS Lambda - callback("some error type") equivalent in Java 8 |
18
Apparently all the comments about your problem were right. You should use CacheEvict. I found solution here: https://www.baeldung.com/spring-boot-evict-cache and it looks like this:
All you have to do is create class called e.g. CacheService and create method that will e... |
I am using Spring Boot and for caching I am using Ehcache. It's working fine till now. But now I have to reload / refresh so how can I do this so that my application will not be having any downtime.
I have tried many ways in Spring Ehcache but it didn't work or Else have to write a scheduler and reload the data... | Reload/Refresh cache in spring boot |
Answers:
Yes, you are correct
Yes, you are correct
Yes - as long as X509_STORE_add_cert succeded. In other words: if X509_STORE_add_cert returned value greater than zero - ownership of the X509 object is passed on the the certificate store; if X509_STORE_add_cert returned zero - ownership of the X509 object is not pa... |
I'm loading certificates from memory, adding it to the certificate store, and then performing validation:
char base64EncodedCert[] = "...";
const int autoDetermineLength = -1;
BIO* memoryCert = BIO_new_mem_buff(base64EncodedCert, autoDetermineLength);
X509* certificate = PEM_read_bio_X509(memoryCert, nullptr, 0, nullp... | Releasing OpenSSL resources: SSL_CTX_free |
Maybe the go install directory is not in your path. Have you tried running vtctlclient manually (just like kvtctl.sh does)?PS: You may want to join our Vitess Slack channel where you may get more prompt answers for your questions. Let me know if you need an invite. | I am trying to run Vitess on Minikube and I'm going through the 'Getting Started' steps found here:http://vitess.io/getting-started/#set-up-google-compute-engine-container-engine-and-cloud-toolsI have installed everything I need to including 'vtctlclient'. I have verified that all the correct directories were created w... | vtctlclient: command not found |
Hi check out this documentation
It describes how to run programs on startup on CentOS systems (which is what Amazon Linux is). Basically you want to do this
sudo vi /etc/rc.d/rc.local
then add your command to the bottom of it.
|
I am using the Amazon Linux AMI. I want to ensure that monit on system startup always calls
monit -c $CONFIG
where $CONIFG is the default monit configuration file location (usually /etc/monit.conf). I want to ensure it is always monitoring my services on startup.
How do I do this? I'd rather not use upstart because ... | How do I ensure monit starts on system startup? |
A while back I had wrote a client library for communicating with Amazon's ECS (A2S) services. Seems that Amazon hates their developers and keeps changing their service name and framework. Well, my client is now completely broken because ofRecent API Changes.Your best bet would be to look at their sampleshere.Good luc... | I must have run through 10 different sample C# projects that are out of date, and no longer work.All I'm after is a way to get a book's information back based on an ISBN or title.The Amazon Web Service site is an absolutely miserable morass.Update:I've managed to usethisas a starting point, and have successfully comple... | Amazon Product API - are there any valid, up-to-date examples in C#? |
It doesn't work because www.subdomain.domain.com doesn't exist. You have to add a CNAME record in your zone subdomain.domain.com the same way you've added the host subdomain to domain.com. | I have purchased My Domain name from one registrar & hosted in another hosting company.
I have created a sub domain from my hosting domain manager liehttp://subdomain.domain.comand it works fine. But when someone types inwww.subdomain.domain.comthe site is not working.Do I need to make changes in my DNS Manager of host... | Subdomains not working when www is added? |
3
Your problem is that iPad 1 has less memory than iPad2 or iPad3 so memory warning is provoked before. If you want to run your App in iPad 1 you need to improve your memory management. I recommend you that you watch the "Fixing Memory Issue" in https://developer.apple.co... |
Recently i have updated my app to support iOS 7.0 but now my app is not working in iPad 1(iOS 5.1.1) and its working fine in iPad 2(iOS 6.1.3) and iPad 3(iOS 7.0).
Right now i am running my app with instruments to improve performance but i am not able to understand that same code not generating memory in iPad 2 & 3 a... | Received Memory warning in iPad 1 but working fine in iPad 2 & 3 |
4
After install nvm command put:
SHELL ["/bin/bash", "--login" , "-c"]
RUN nvm install 17
SHELL ["/bin/sh", "-c"]
Default shell is sh and first command switches it to bash. Parameter --login is required as you want to source .bashrc.
As all subsequent commands would be e... |
I am trying to build a Dockerfile that can make use of Azure functions. After unsuccessfully trying to build it using alpine:3.9 because of library issues, I swapped to ubuntu:18.04. Now I have a problem in that I can't install nvm (node version manager) in such a way that I can install node. My Dockerfile is below. I... | How to refresh your shell when using a Dockerfile? |
If you look atthe documentation, you will see thatclientIdis one of the parameters you can supply to thedevice()method. You should be generating a client ID for each connected device that is unique to your application (i.e. unique to your AWS IoT account). | I use AWS IoT for real-time update in my web application.
The application connects to AWS IoT usingaws-iot-device-sdk:const client = awsIot.device({
region: awsConfig.region,
protocol: 'wss',
accessKeyId: <accessKey>,
secretKey: <secretKey>,
sessionToken: <sessionToken>,
port: 443,
host: <io... | How to get AWS IOT client id? |
You can use an interactivegit rebase -ias described here:Git-Tools-Rewriting-History. This way you'll create 4 new commits (C', D', E', F') and the original commits will be deleted. If you've not pushed the changes anywhere outside your local git repository then it is okay, otherwise you haven't to do that at all costs... | I have incorrectly added a zip file to one of my commits which is not the last commit. It is a big file and I get stuck when I try to push these changes to server, because git tries to push the file on remote branch.How can I remove this particular file.A --> B --> C --> D --> E --> Fmy remote is at A and I incorrectly... | how to remove a file from local commit which is not my last commit |
An update to previous answers, current docker build
accepts --build-arg that pass environment variables like http_proxy
without saving it in the resulting image.
Example:
# get squid
docker run --name squid -d --restart=always \
--publish 3128:3128 \
--volume /var/spool/squid3 \
sameersbn/squid:3.3.8-11
# opt... |
I want to optimize my Dockerfile. And I wish to keep cache file in disk.
But, I found when I run docker build . It always try to get every file from network.
I wish to share My cached directory during build (eg. /var/cache/yum/x86_64/6).
But, it works only on docker run -v ....
Any suggestion?(In this example, only 1 ... | How to rebuild dockerfile quick by using cache? |
It worked for me by using SSL instead of HTTPS.I simply added another remote repo using the following commandgit remote add org[email protected]:***/***.gitReplace *** with your SSH path detailsThen add an SSH to your GitLab account fromhereTo add an SSH key you need togenerate oneor use anexisting key.Once the key has... | Everything was working fine from months I was able to clone/fetch/push/pull from my Gitlab repo on my mac:Suddenly started to get this error on mac:When I run the command:git fetch "repo_link" I get the following errorunable to access : SSL peer handshake failed, the server most likely requires a client certificate to ... | Gitlab SSL Handshake failed server most likely require client certificate |
+500Initially, you will see your graphql in Network tab failed because of Authorization."My case is App Sync API key is expried. – Freddie Jun 26"This is the answer, go to Appsync / Settings / API keys.You will see the "red" key. That means it has expired.You just need to create a new key. Then replace this new key for... | I have integrated aws amplify into and android app by followinghttps://docs.amplify.aws/lib/q/platform/androidin my mac book pro.Now I check-out the same project into another machine mac mini. and trying to run.I am getting this error, not sure how to fix it.AmplifyException {message=Failure performing sync query to Ap... | AWS Amplify: AmplifyException 'You are not authorized to make this call.' |
Your web.service is not able to start. You might be missing a manifest in your jar, or you might be missing the main class in your manifest file. | I would like to deploy a JAVA application (based on PlayFramework 1.x) on AWS Beanstalk.
I am using a web server environment based on Corretto 8 running on 64bit Amazon Linux 2/3.1.6.I also added a load balancer in the environment.
During the deployment, my hooks work well (database schema evolutions for example) then ... | elasticbeanstalk fail to deploy web environment /var/pids/web.pid: no such file or directory |
aclis a internal plugin. It's already installed.There are currently about 30 plugins included in the default CoreDNS install, but there are also a whole bunch of external plugins that you can compile into CoreDNS to extend its functionality.https://coredns.io/manual/plugins/#what-is-corednsList of intenral plugins:http... | I am a newbie to kubernetes. Do I need to installcore dns pluginseparately if I already have coredns default pod running to have dns service implemented? | Coredns dependency for dns service in kubernetes |
Yes and no. Kind of.
Current GPUs are designed to render triangles because triangles are nice to work with. And because current GPUs are designed to work with triangles, people use triangles and so GPUs only need to process triangles, and so they're designed to process only triangles.
As you say, triangles just have a... |
To preface this question, I have a competent understanding of OpenGL and the maths behind it, and while I have never touched anything related to DirectX I imagine the concepts are similar.
There is plenty of information around about why triangles are used for 3D graphics (they are necessarily planar, are indivisible e... | Are triangles a gpu restriction or are there other rendering pathways? |
The branch shown in #2 is the branch a pull request is sent against. We show slightly different details on Travis for builds that originated in a pull request and builds that are the result of normal branch pushes.For branch pushes we show the branch that was pushed to, and for pull requests we show the branch the pull... | Travis-CI detects wrong trigger?Travis detects wrong commit as trigger? Github send wrong hook? Where is mistake in my workflow?My workflow$ git fetch origin
$ git checkout -b feature-foo origin/master
(edit, delete, commit…)
$ git push origin feature-foo:feature-foo
(sometimes time passed)
$ git fetch origin
$ git ... | Travis-CI detects wrong trigger? Github send wrong hook? |
1
After asking this question I wrote a playground with analogous code. I found that there is no issue deinitializing instances of the class UNLESS the class instance with the non-empty array contains itself, in which case you do have a strong reference cycle.
Share
... |
I have the following class:
class Circle: CustomStringConvertible, Hashable, Equatable
{
...
var bonus5Circles = [Circle]()
...
}
Now, in most cases the bonus5Circles array will be empty, but in some cases it will contain some subset of Circles. This seems to function properly in code, but my question is ... | Will referencing an array of instances of a class in a class create a strong reference cycle? |
Here's two methods that might work for you...Amazon S3 has a new feature calledS3 Selectthat allows you to query files stored on S3.You can perform a count of the number of records (lines) in a file and it can even work on GZIP files. Results may vary depending upon your file format.Amazon Athenais also a similar optio... | Does anyone have a quick way of getting the line count of a file hosted in S3? Preferably using the CLI, s3api but I am open to python/boto as well.
Note: solution must run non-interactively, ie in an overnight batch.Right no i am doing this, it works but takes around 10 minutes for a 20GB file:aws cp s3://foo/bar - | ... | s3 - how to get fast line count of file? wc -l is too slow |
There are 2 possible solutions to fix this issue:Setgrafana.assertNoLeakedSecretstofalsein thevalues.ymlfile.Ifauth.generic.oauth.client_secretis specified in thevalues.ymlfile, remove it from that file and setGF_AUTH_GENERIC_OAUTH_CLIENT_SECRETas the environment variable for Grafana.References:Grafana - Sensitive Key ... | I recently tried upgrading kube-prometheus-stack on my AWS EKS Kubernetes cluster via Helm to chartv56.2.1using Terraform and it failed while upgrading Grafana with the following error:Sensitive key ‘auth.generic_oauth.client_secret’ should not be defined explicitly in values. Use variable expansion instead.I'm not spe... | Upgrading kube-prometheus-stack via Helm to chart v56.2.1 fails on Grafana with Sensitive key error |
You can revert to a previous commit by usingcheckoutcommand,git checkoutaccepts commit hash/ID, just rungit logsearch for the commit you want to revert to and copy the previous commit hash and run the following command:git checkout COMMIT_HASH # This will revert back git history just before the commitAnd after that i... | I'm currently working with git on building aosp. The task I wish to perform is removing a commit from my local that's already been pushed to the remote by someone else.After some heavy Googling I came acrossgit reset --hard HEAD~1, which I thought did what I wanted it to do after typinggit logand not seeing the commit.... | Removing a commit in remote from local |
Oops, memory allocation and deallocation is often a grey zone, where few things are guaranteed, either at Python level, or even at OS one. Specifically you cannot know whether deleting something at Python level will put the freed memory into a (process) local free list or will return it to the OS.
That local free list... |
I'm currently struggling to find out how much memory I actually have left on my device after I have deleted an instance of a class. I have tried to use the library psutil but it doesn't correctly show the memory I actually have available. In particular:
import psutil
x = torch.randint(0,255,size=(300,3,200,200),d... | Why doesn't psutil accurately represent available memory after deleting a class instance in Python? |
Extended resources are custom resources your nodes canadvertiseto the cluster, to make sure pods scheduled on them are able to have enough of them when scheduling.Thedefault limit/requestallows you to assign these resources implicitly, even if the pod spec did not explicitly specify them. | Kubernetes have a feature namedextended resource. but I do not know the effects of what it brings.In other words, what arethe differencesbetween I use it and I no use it?Besides, Is the feature similar tothe default limitordefault request? | kubernetes Extended resource for pod |
You should tell Nginx to pass the host to Gunicorn like this:proxy_set_header Host $host;Additionally I would pass these values (example) also so you have access to the IP of the request:proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarde... | I'm trying to run my server with Django, nginx and gunicorn. On the development Server, everything went fine. But on the production server, gunicorn always returns a Bad Request (400).I'm aware that I need to set myALLOWED_HOSTSvariable, and I did. I tried the correct domain, an asterisk, or even setting DEBUG to True.... | Django + Gunicorn + Nginx: Bad Request (400) in Debug=True |
What makes you think that you consume 5Gb ?
You create an array of 46657 vector<char*>. Each vector has in average 100 char* pointing to a newly allocated string of 255 bytes. That's at least sizeof(buckets)+46657*100*(sizeof(char*)+255) bytes. Depending on the implementation, this could be around 1.2 Gb. The vector... |
I am writing a code for sorting a Large chunk of strings (~ 2GB) and I am using a method similar to bucket sort. I have about 47000 vectors and each of them will have ~100 elements (char*) on average. (Due to input, some of them could have a lot of elements and some could be empty)
My code for getting input is somethi... | C++ loading 500MB of data with vector use 5GB of RAM |
I had a similar issue and solved it by closing the folder, then on the Recent workspaces list click More at the bottom, and from the list click the 'x' (remove) button to remove the workspace. Then, after loading the project's folder, it build normally. So probably there is some cache and that is probably one way to cl... | I’m getting the following error in VSCode in my Angular 6 application:ERROR in src/app/providers/dynamic-data/dynamic-data.service.ts(5,26): error TS1149: File name '/Users/gibranshah/repos/eva/EVA/src/app/model/endpoint.ts' differs from already included file name '/Users/gibranshah/repos/eva/EVA/src/app/model/Endpoint... | File name ... differs from already included file name ... only in casing |
try describing the deployment and see the eventskubectl describe <deployment-name> --namespace=myapporkubectl get events --namespace=myappto understand what is happening.try checking whether new replicas has been created for changed deployment container image.kubectl get rs -n myappcheck the number of replicas expected... | I have existing deployments in k8s, I would like to update container, I updated docker image tag (new unique id) in deployment and run:kubectl apply -f testdeploy.yml --namespace=myappOutput is:deployment.apps/fakename configuredBut nothing happens.When I runkubectl get pods --namespace=myappI can see only one old pod ... | kubectl kubectl apply do nothing |
You can use:RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [NE,L,R=301] | If I have multiple domains (*.net, *.org, *.com) pointing to the same dir on the server with a single .htaccess file, how can I write a redirect that changes the url as well as redirects to the https:// secure connection of the site?So if they visithttp://korell.com, it goes tohttps://korell.comand if they visithttp://... | .htaccess, redirect to https of http url |
With data.table, we can use
nm1 <- c("Petal.Length", "Petal.Width", "color", "letter")
nm2 <- c("Sepal.Length", "Sepal.Width")
as.data.table(iris)[, c(lapply(.SD[, nm1, with = FALSE], first),
lapply(.SD[, nm2, with = FALSE], last)), .(Species, year)]
-output
# Species year Petal.Length Petal.Width color let... |
dplyr is not liking my large dataset so I'm try to convert the following simple code to the most efficient data.table equivalent:
library(tidyverse)
data(iris)
iris$year <- rep(c(2000, 3000), each = 25)
iris$color <- rep(c("red", "green","blue"), each = 50)
iris$letter <- as.factor(rep(c("A", "B", "C"), each = 50)) ... | dplyr::across performance and dplyr::summarise to data.table efficiency |
To just run myapp.jar in docker (e.g. to avoid installing java on the host) you can just run:docker run -v `pwd`:/mnt java:8 java -jar /mnt/myapp.jarShareFollowansweredApr 8, 2018 at 8:33Reto GmürReto Gmür2,57722 gold badges2020 silver badges2525 bronze badges1I like this example because for me it is the first one whic... | I write the docker file for run the jar file and it does not create the log file for see the console below is my docker fileFrom ubuntu
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:webupd8team/java -y && \
apt-get update && \... | How to run jar file using docker file in docker container |
I just pulled your project and tested it with a local server. I think there was a mistake in the documentation. If you set--base-hrefto anxvalue, your application will use/xas the based path. See thebasetag.The solution is simple, let it have the default value by removing the optionng build --prod --output-path docsor ... | I tried to build and deploy angular-tou-of-heroes application to github, but always got duplicate app name in the path. Could anybody help me with this issue?My build command is ng build --prod --output-path docs --base-href angular-tour-of-heroes
I deployed from Github /doc directory.
When click the link, it keep red... | Angular github pages path has duplicate app names |
From the OpenCL Spec 1.2 section 6.5.4:
all variables inside non-kernel functions, and all function arguments are in the __private or private address space.
As the non-kernel functions are inlinded so I am not sure what you would want to accomplish by doing this anyway.
|
I want to pass the local memory declared in my kernel function to another function for some processing. I would like to control it so that all my pointers are declared in local space as well:
void funcB(__local float * __local p)
{
}
__kernel void funcA()
{
__local float data[256];
__local float * __local pt... | OpenCL Pointer to Local Memory in Local Memory as Function Argument? |
Google Identity platform looks like amazon Cognito.
|
We are migrating an application from AWS to GCP. In AWS, we use Cognito service for maintaining different types of users inside userpools (for example: SSO users has different userpool and users with email and password are configured in different userpool, for MFA users, they have different user pool) In AWS Cognito, ... | what is the equivalent component of AWS Cognito in GCP for features like userpools, triggers and appclients? |
You should provide where thepipelinefunction comes from. It might be a third party library or from node'sstreamIf it is thestream.pipelinethan the return of it is a stream, soawait pipeline(...will not wait since it is not aPromise. You can turn the stream into aPromisewith util,Referenceconst util = require('util');
c... | i am using a for..of loop with pipeline, but the statements after the loop are executed even before the pipeline finish exection, this happens even if i add await to pipelinehere is my relevant codefor(const m of metadata) {
if(m.path) {
let dir = `tmp/exports/${exportId}/csv_files_tranformed/${m.type}`;
... | Node.js: for..of with pipeline not waiting for completion |
If you're open to a non-Sonar solution, I foundhttps://github.com/kucherenko/jscpdto work well. Here is an example output:jscpd --pattern=**/*.ts src/Produced:Clone found (typescript):
- src/file1.ts [146:12 - 153:6] (7 lines, 93 tokens)
src/file2.ts [122:2 - 130:6]
...lots of lines like that...
┌────────────┬───... | I am using SonarQube version 5.6. Using TypeScript plugin fromhttps://github.com/Pablissimo/SonarTsPlugin. Code coverage and Code Smells are working but not duplicates though. Based on the following log, it seems like it is not supported. Does anyone know of a way to check for duplicates in TypeScript code?Here's the... | Does code duplicate detection work for TypeScript language in SonarQube? |
The issue in your case is that you mistakenly usestatus.succeededinstead ofstatus.successful, so right command iskubectl delete jobs.batch --field-selector status.successful==1
No resources foundRegarding your question about all the fields: my suggestion is to deep into the code and search for proper resources types in... | I've recently learned about kubectl--field-selectorflag, but ran into errors when trying to use it with various objects.For example :$ kubectl delete jobs.batch --field-selector status.succeeded==1
Error from server (BadRequest): Unable to find "batch/v1, Resource=jobs" that match label selector "", field selector "sta... | How can I find the list of field selectors supported by kubectl for a given resource type? |
You need to tell sharepoint where your new database is. just go to the content database management page on central administration. there you will see your previous database mapped to the web application. remove it and and the new database. it will map the web app to it and your sites will come back. be careful when en... |
I have sharepoint sites provisioned on two machines A and B. I would like to take the content database from machine A and restore it into the site on machine B.
I used SQL backup to backup machine A's database, and restored it to machine B, overwriting the existing content database. However, my sharepoint site became ... | Backing up and restoring a sharepoint content database across two machines, hosed my sharepoint app |
You haven't provided enough information - this depends on the specifics of the object you are creating and what else you're doing with it in the loop. If the object does not create circular references, it should be deallocated on the next iteration. For example, the codefor x in range(100000):
obj = " " * 10000000wil... | I have created some python code which creates an object in a loop, and in every iteration overwrites this object with a new one of the same type. This is done 10.000 times, and Python takes up 7mb of memory every second until my 3gb RAM is used. Does anyone know of a way to remove the objects from memory? | Python garbage collection |
Go to the self hosted runner directory, list folders, you should see the bin and externals directory with the version suffix bin.2.288.1, externals.2.288.1- most current should have symlink with full directory. Also you can check version of each component listener, plugin-host,worker in /bin directory json files. There... | Self-hosted GitHub actions runner installed on Linux, Windows and Mac systems.I need to upgrade the runner version to latest on Linux, Windows and MacOS.How to check the currently installed Runner version?In runnerlogandservice statusside, I can't find the information.How to upgrade the runner to latest version?Please ... | How to upgrade Self-hosted action runner? |
With the default logging driver,json-file, your logs are stored in/var/lib/docker/containers//. Do note that what gets logged here is the output of stdout and stderr from PID 1 of your container.As for "log rotate", the json-file driver has some options you can pass to it to limit the size per log file, and the maximum... | Like most people who downvoted the sparseDocker docs page hereandhere, I'm confused by whatdocker-compose logsdoes.When I runcd /apps/laradock/ && docker-compose logs -f nginx, I see a very long output from many days ago til now.What file or files is that pulling from?The only nginx log file I could find was/apps/larad... | Where does `docker-compose logs` pull from? |
3
The format of a URI has nothing to do with cacheability, other than noting that requests with query parameters are not cacheable by default. Everything about the cacheability of a GET request is driven by the Cache-Control, Expires, and Last-Modified (for heuristic cachin... |
I am curious how other developers reconcile http://www.w3.org/DesignIssues/Axioms.html#opaque in the context of web caching. I prefer the Rails' approach of suffixing resource requests based on the format I want, i.e. .json or .xml, rather than relying on the accepts header, despite the fact that it is not URI-opaque.... | Axiom of URI Opacity and Caching |
We can usePod Topology Constraintsto decide how the pods need to spread across yourcluster.For Example as per you question we can deploy2 pods in 1 nodeand other2 pods in different node. To make this possible we need to set thetopologyKeyfor nodes and use them while deploying the pod. This sample yaml shows the syntax ... | I understand that the nodeSelector will help to move the pods to specific nodes with labels. But, say if I know the names for pods in advance and based on these names, how do I move these pods to different nodes having specific labels.
I am unable to understand as to how to use nodeSelector, affinity, antiAffinity in t... | How to install pods (based on pod name) to specific nodes in K8s cluster? |
The note that says "This will change your global gitconfig" is a strong hint: those fields are for setting the user.name and user.email, which is part of every minimal git configuration.
The client could infer initial values from your GitHub account information, but the app authors evidently decided that it's preferab... |
(Disclaimer: I am new to Git and GitHub.)
I am running 2.11.0.5 version of the GitHub Windows client. In the Options page (please see below), there is the Account information (my GitHub account), and below it, there is the "Configure git" section with fields for full name and e-mail.
Why is the "Configure git" sect... | Difference b/w Account vs "Configure git" section in the GitHub for Windows client |
16
If you are using Route53 for your domain management, you may have forgotten to set up MX record for it.
Here is an instruction of how to do it.
https://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-mx-record.html
Share
Improve this answer
... |
I tried to access the email and tried to store email in S3 bucket but it is not working.
SES configuration:
domain verified
email address verified
created rule set in rule set Recipient has provided
In S3 action bucket name given
AMAZON_SES_SETUP_NOTIFICATION has received.
After that if I receive any email from pa... | Receiving Email is not working in Amazon SES |
The solution is posted here :https://msdn.microsoft.com/en-us/library/windows/apps/hh780593.aspxGet installed packages:get-appxpackage | ?{$_.PackageFamilyName -like '*<filter>*'} | select packagefamilynameAdds an exemptions for the package:CheckNetIsolation.exe LoopbackExempt –a –n=<PackageFamilyName>Deletes an exempt... | We need to ensure that fiddler is exempting all apps for every build.What we’re noticing is after we do the initial exempt all, and after a couple of builds, our tests fail because some apps are no longer exempted.We want a programmatic way to check and set the exemptions before each test run to ensure all apps are in... | How to programmatically set Fiddler Win8 Loopback Exemptions? |
I will never recommend a hard memory limit while running container in ECS.
Plus you can not determine memory for the idle state of the container so better to have look on some benchmark for Nginx while node memory vary from application to the application also poor code might consume more memory than good and managed a... |
I want to create a task definition in aws ecs.
How much memory and cpu I need to run nginx in conatiner? and nodejs in another container?
nginx - just a proxy from 80 to 3000.
nodejs - simple services that call to atlas mongodb
| How much memory and cpu nginx and nodejs in each container needs? |
<div class="s-prose js-post-body" itemprop="text">
<blockquote>
<p>curl: command not found</p>
</blockquote>
<p>is a big hint, you have to install it with :</p>
<pre><code>apt-get -y update; apt-get -y install curl
</code></pre>
</div> | <div class="s-prose js-post-body" itemprop="text">
<p>I created a docker container from my OS X VM Docker host. I created it using the run command and created the container based off the <code>ubuntu:xenial</code> image off docker hub.</p>
<p>I'm now connected to my container after it's created and logged in as root a... | Can't run Curl command inside my Docker Container |
I highly suggest to (possibly) use ARC, and if you can't use it (or maybe you just want to understand how memory management works?), to don't send retain and release messages from outside the class. Instead you should do this in the accessors.
So you should create a retain or copy property (usually with immutable st... |
I would like some help better understanding the memory characteristics of Strings in Cocoa.
The app I am working with uses one view controller and n tool objects. The View controller lives for the life of the program but the tool objects are allocated and released.
Suppose I have a string toolName_ and in my implement... | Best allocation for NSString when alternating between constant and non constant strings |
The config should roughly look like this (not tested):route:
group_wait: 30s
group_interval: 5m
repeat_interval: 2h
receiver: 'default-receiver'
routes:
- match:
alertname: A_down
receiver: X
- match:
alertname: B_down
receiver: Y
The idea... | I have 2 servicesAandBwhich I want to monitor. Also I have 2 different notification channelsXandYin the form ofreceiversin the AlertManager config file.I want to send to notifyXif serviceAgoes down and want to notifyYif serviceBgoes down. How can I achieve this my configuration?My AlertManager YAML file is:route:
rec... | Prometheus AlertManager - Send Alerts to different clients based on routes |
An Amazon S3 lifecycle policy can be used to archive objects from S3 into Amazon Glacier.
When archived (as indicated by a Storage Class of Glacier), the object still "appears" to be in S3 (it appears in listings, you can see its size and metadata) but the contents of the object is kept in Glacier. Therefore, the cont... |
I wrote a piece of (java) software that downloads objects (archives) from an S3 bucket, extracts the data locally and does operations on it.
A few days back, I set the lifecycle policy of all the objects in the "folder" within S3 to be moved to glacier automatically 2 days after creation, so that I have the time to DL... | Accessing S3 Objects with storage class Glacier |
The method a co-worker came up with is to usedocker runanddocker commit:docker run --name=$name --volume=$PWD/ToInstall/:/scratch --workdir=/scratch centos /scratch/install-script.sh
echo Status is $(docker wait $name)
echo
docker commit $name myname-base
docker rm -f $nameTheinstall-script.shwould something like:set -... | I'm trying to build a Docker image using the Dockerfile method. Minimizing the image size and number of layers is very important for this specific application. However, the rpm needed for installation is fairly large and I don't want to bake that into the image. It seems that if I use the ADD command in the Dockerfile,... | Is it possible to mount a directory while building from Dockerfile? |
You shouldn't have to worry about separating the jobs onto different instances because the containers the jobs run in are limited in how many vCPUs they can use. For example, if you launch two jobs that each require 4 vCPUs, Batch might spin up an instance that has 8 vCPUs and run both jobs on the same instance. Each j... | I have setup a batch environment withManaged Compute environmentJob QueueJob DefinitionsThe actual job(docker container) does a lot of video encoding and hence uses up most of the CPU. The process itself takes a few minutes (close to 5 minutes to get all the encoders initialized). Ideally I would want one job per insta... | AWS batch to always launch new ec2 instance for each job |
Unfortunately, Amazon doesn't offer an API for automatic deletion based on a specific set of criteria.You'll need to write a daemon that goes through all of the photos and and selects just those that meet your criteria, and then delete them one by one. | I am storing many images in Amazon S3,
using a ruby lib (http://amazon.rubyforge.org/)I don't care the photos older than 1 week, then to free the space in S3 I have to delete those photos.I know there is a method to delete the object in a certain bucket:S3Object.delete 'photo-1.jpg', 'photos'Is there a way to automatic... | Automatically deleting objects older than n days in Amazon S3 (How ?) |
You should use%{REQUEST_URI}instead as it is the correct variable that will have path relative to the site root and not physical file name like others.RewriteCond %{REQUEST_URI} !^/publish/
RewriteRule ^(.*)$ publish/$1 [L] | I am trying to follow Paul Irish's example of how to have a built minified version of my site inside/publish. I have successfully integrated the automated build process but can't get the .htaccess file to point to the correct folder.My Aim:When on live server to redirect all normal site traffic to the/publishfolder to ... | Htaccess Rewrite Condition Issue |
By usinggit rmyou actually deleted the files, but you still have to apply your changes to the local and the remote repositories.To do so, use the following commands:git commit -m "clean up"
git push origin masterThe first one commits your changes on your local repository and make them available for the next push to the... | I am wanting to delete some old files on my repository due to some refactoring. Git is saying my local repo is up-to-date. However when I rungit statusI get the following:# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# deleted: app/foo1.php
# deleted: ... | Git changes to be committed files marked as deleted |
The best way is compiling nginx from source to supportstreamdirective:./configure --prefix=/opt/nginx --sbin-path=/usr/sbin/nginx --conf-path=/opt/nginx/nginx.conf --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --with-http_ssl_module --with-threads --with-stream --with-http_slice_module
make
sudo make i... | I want to use Nginx 1.9 to be a TCP load balancer. I followed the tutorial inhttps://www.nginx.com/resources/admin-guide/tcp-load-balancing/but it didn't work.Every time I tried to start nginx, I've got errors:nginx: [emerg] unknown directive "stream" in /opt/nginx/nginx.confHere is my nginx.conf file:events {
work... | Configure Nginx to be a TCP load balancer |
1
It turns out that one needs to install nginx-extras:
apt-get install nginx-extras
then configure /etc/nginx/sites-enabled/default using more_set_headers instead of add_headers, as in the listing below. With these changes, there are no CORS errors.
location ~ \.php$ {
... |
I am making a POST request to NGINX but getting a CORS error:
Failed to load https://knode.work/save.php: Response to preflight
request doesn't pass access control check: No
'Access-Control-Allow-Origin' header is present on the
requested resource. Origin 'https://www.knode.io'
is therefore not allowed access.
On ... | CORS error requesting php file on NGINX |
Exporting the role using the Arn instead of RoleId resolved the issue Thanks @MarcinFailing output:CodeBuildRemoveRoleId:
Description: ID of role used by remove codebuild project
Value: !GetAtt CodeBuildRole.RoleId
Export:
Name: cb-remove-role-idPassing output:CodeBuildRemoveRoleId:
Description: I... | I have a cloudformation stack which exports this role with some policies attached:CodeBuildRole:
Type: AWS::IAM::Role
Properties:
RoleName: codebuild-role
AssumeRolePolicyDocument:
Statement:
- Action: ['sts:AssumeRole']
Effect: Allow
... | CodeBuild is not authorized to perform: sts:AssumeRole on arn:aws:iam/ ...... InvalidInputException; why? |
Do this in your Dockerfile to enable MySQLi:RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli | I build some containers with the following code:version: '3'
services:
db:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: test
MYSQL_DATABASE: test
MYSQL_USER: test
MYSQL_PASSWORD: test
ports:
- "9906:3306"
web:
image: php:7.3-apache
container_name: php_web
... | Enable mysqli in docker container |
You cannot filter out collections via collection name from the piepline itself. According to mongo'smanual,pipelineis used to "Specify a pipeline to filter/modify the change eventsoutput". If you notice within yourchange events, there is annsproperty that gives the namespace of the change. You can use your pipeline to ... | I am using MongoDB's changeStreams to watch for changes in my database. I'd like to watch every collection for changes except two. Something like this:const pipeline = [{ $match: { name: { $ne: "excludedCollection1" } } },
{ $match: { name: { $ne: "excludedCollection2" } } }];
const db = client.db("myDatabase");
c... | Aggregate Pipeline to exclude collections from db.watch() MongoDB |
pathspec '–-recursive'means it interprets what should be an option as a filename/filepath instead.Double-check your '-' (in case they are'minus' instead of the regular 'hyphen-minus')Make sure you are using the latestGit for Windows(2.33.0 from today) | I am trying to update submodules in a repo. I have successfully cloned the repo and used git checkout to successfully switch to the correct branch I need to be on. When I rungit submodule update --init -–recursivein that branch I get the following:error: pathspec '–-recursive' did not match any file(s) known to git.I h... | Error " pathspec '–-recursive' did not match any file(s) known to git" when running submodule update |
rate(http_client_requests_seconds_count{}[1m])will provide you the number of request your service received at a per-second rate.However by using[1m]it will only look at the last minute to calculate that number, and requires that you collect samples at a rate quicker than a minute. Meaning, you need to have collected 2 ... | I have a Spring boot app throwing out open metric stats using micrometer.For each of my HTTP endpoints, I can see the following metric which I believe tracks the number of requests for the given endpoint:http_server_requests_seconds_countMy question is how do I use this in a Grafana query to present the number number o... | Grafana graphing HTTP requests per minute with http_server_requests_seconds_count |
i don't think, that is possible ...localhost:8080/long_pollingis aURI... more exactly, it should behttp://localhost:8080/long_polling... inHTTPtheURIwould be resolved as requesting/long_polling, to port 80 to the server with at the domain 'localhost' ... that is, opening a tcp-connection to 127.0.0.1:80, and sendingGET... | I need some help from some linux gurus. I am working on a webapp that includes a comet server. The comet server runs on localhost:8080 and exposes the url localhost:8080/long_polling for clients to connect to. My webapp runs on localhost:80.I've used nginx to proxy requests from nginx to the comet server (localhost:80/... | nginx proxy to comet |
How are you planning to install these applications? Since you say you're using Ubuntu, then I would assume that you'll be installing apps via either the graphical manager or by apt-get or aptitude.
If you're using the graphical program manager, then it should prompt you for your password; this performs a sudo under t... |
I herd that it would be better to use a sub-user for installing NGiNX. Is it true? I am thinking to use NGiNX to install virtual-host that my clients could use for there website and I don't want them to have to much control over NGiNX...
I am using Ubuntu Linux distro.
Thanks in advance for any help and/or tips.
| Should I use another user than the root when installing NGiNX |
1
Independently from being a Personal or an Enterprise account, it can be achieved by using the push event:
Runs your workflow when you push a commit or tag.
Example:
on:
push
Observation: To trigger every single time a push is made, be sure to configure the push eve... |
I want to trigger a workflow whenever a commit is done on any branch in Repo, what event shall I use?
| In GitHub enterprise, how can I trigger workflow on any commit done on any branch |
I think you might have missed the step of installing CRD and the operator for ElasticSearch. Have you followed this stephttps://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-deploy-eck.html?Service,Pod,Deploymentetc are Kubernetes native resources. Kubernetes provides a way to write custom resources also, usingCRDs.... | I installedminikubeon my Mac and I'd like to deploy elasticsearch on this k8s cluster. I followed this instruction:https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-deploy-elasticsearch.htmlThe file I created is:apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: quickstart
spec:
... | How can I deploy elasticsearch to kubernete? |
I solved the problem after time and time. It was so strange by the way after an accuratly check of the network i find the problem.
It was the firewall that blocked some request after login page, i hope this can help those in this same situation.. | i need help with SonarQube.
I’m trying to use the latest verions (8.9) on CentOS 7, i did all but i’m not able to see the main page because it gets stuck in the loading page after login.
There aren’t error in log file, the unique “error” that i found, if i inspect the source, is:
Application failed to start! SyntaxErro... | SonarQube 8.9 doesn’t start, it’s blocked in loading page after login |
How is that possible if on the console I get something elseFirst, make sure to do a git fetch, in order to be sure to have the local history of the remote repo origin up-to-date.Second,git cherry, used tosee which commits in one branch aren't in the other, works with thecontentof the commits, not their metadata (date, ... | I have a git repo in which some changes went into a release branch, but I've lost track if these are also in master branch.Using git cherry I get only 3 commits as missing between master and the release branch.However, on the github page if I go to the release branch, it says that it is 10 commits ahead of master (and ... | commits missing in master from branch |
2
You are probably running out of some system resources during the test execution. This error message may appear due to file opened descriptors limit being reached or number of processes ran per user. While this is a really broad issue these links may guide you through th... |
ours is maven project, our framework was desinged in such a way that entire project will be checkedout in to test environment[Virtual Linux Machine] and from there maven command will be executed with mentioned suite file. every thing triggerd in jenkins.
As a beginner i dont understand this particular suite is gettin... | "java.lang.OutOfMemoryError" i am getting this error whenever i am running one particualar testng suite file in jenkins |
15
I have been struggling with this error message as well with my development environment that uses more than ten containers executed through docker-compose.
WARNING: Connection pool is full, discarding connection: localhost
I think I've discovered the root cause of this i... |
My team and I are converting some of our infrastructure to docker using docker-compose. Everything appears to be working great the only issue I have is doing a restart it gives me a connection pool is full error. I am trying to figure out what is causing this. If I remove 2 containers or (1 complete setup) it works fi... | docker-compose restart connection pool full |
1
You cannot change the "source branch" in a GitHub PR, but you could change the "target branch". If you want a PR for a different source branch, you have to create a new PR.
You are not losing any of the discussion; simply create a new PR and link to the initial PR saying ... |
I created a pull request (PR) for a git repository I forked on github. I made the mistake of making the changes and creating the PR from the master branch (the repo is still using the old naming convention, I know the new convention is to call it main).
I waited a bit to see if the owner would merge the PR, but instea... | Switch github PR from master to branch |
I understand your pain-point, but AFAIK this is just not possible to attain because of the simple fact that the virtualization technologies you mentioned here are of different types.Hyper-V is a "Type 1" hyper-visor which runs on host machine hardware. Other examples in this category include Citrix XenServer and VmWare... | Docker uses the Hyper V functionality so it has to be enabled for Docker to work properly.
However, the Hyper V functionality has to be disabled for VirtualBox to work properly (it's possible to create guests and emulate them but only if they're 32bits machines it seems).Is there any way to have an healthy cohabitatio... | Cohabitation Docker & VirtualBox on Windows |
Instead of deleting the.git(which removes the history of past commits), you can simply change theoriginand point it to a new GitHub repository that you have first created.git remote set-url origin https://github.com/me/myNewEmptyRepository
git push --mirrorThat way, you have a full copy of the original repository, with... | I have cloned a repository to download the code, now I want to work on it and save it in my own private repository on GitHub. I don't want to contribute to the original project or submit changes or anything, it's just a personal project. When I try to do this, however, my git isn't working because I think it's already ... | Clone a project and then how to upload it to my own repo |
nginxlocation block doesn't match query stringat all. So it's impossible.LocationThis directive allows different configurations depending on the URI.In nginx, there is a built-in variable$uri, which the location block is matched against. For example, give a requesthttp://www.example.com/app/login.php?username=xyz&passw... | I'd like to match question mark "?" as regexp on nginx.conf location.For example, a URL pattern which I'd like to match is /something?foo=5 or /something?bar=8 (parameter only changeable).Because nginx adoptsRCPE, I can write the location on nginx.conf as follows:location ~ ^/something\?.* {
}The above doesn't match th... | How to match question mark "?" as regexp on nginx.conf location |
I guess you're getting theunix timestamp( 1450569600 GMT: Sun, 20 Dec 2015 00:00:00 GMT. Use datetime module to convert withstrptime | I'm importing the number of weekly commits using the Github API and the following code:import requests
import json
import pandas as pd
r = requests.get('https://api.github.com/repos/d3/d3/stats/commit_activity')
raw = r.text
results = json.loads(raw)
df = pd.DataFrame(results)
print df.sort(['total','week'], ascending... | Parsing JSON date (that includes week number) in python |
this works for me:
In the job config activate "Permission to Copy Artifact" "Projects to allow copy artifacts" : *In the job config, Post build actions, Archive the artifacts, Files to archive: result.htmlIn the pipeline script:stage("foo-stage") {
steps {
script {
catch... | I run a Jenkins pipeline which executes jobs on a (always the same) virtual machine usingagent.jar.These jobs produce artifacts on theVM-workspacedirectory and these files are successfully transferred to Jenkins.Now I want the pipeline to retrieve data from thatVM-workspacetoo.
How can I configure the "archiveArtifacts... | Poststep archiveArtifacts: how to retrieve files from other machine? |
Directly translating your requirements to rewrite rules:RewriteEngine On
RewriteCond %{QUERY_STRING} ^mod=(.*)$
RewriteRule ^$ %1But you probably want something more flexible like:RewriteEngine On
RewriteCond %{QUERY_STRING} (?:^|&)mod=([^&]+)
RewriteRule /?(.*) %1/$1 [QSA]These rules apply to the root of your domain.I... | I'm having a problem in.htaccess, specifically on redirection.I wanted to rewrite this url:http://www.domain.com/?mod=countrytohttp://www.domain.com/countryI already tried this.htaccesscode:RewriteEngine on
RewriteRule ^\?mod=(.*)$ $1I tried working on it without the question mark character and it works fine.
I have es... | htaccess url rewrite with question mark |
Very generic error, Possibly some certificates are missing(java.security.cert.CertPathValidatorException: Certificate chaining error) in the trust store.Please include more info about what you are doing. | I am frequently getting below exceptions. Please advise what to do..javax.mail.MessagingException: Can't send command to SMTP host;
nested exception is:
javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.j: PKIX path validation failed: java.security.cert.CertPathValidatorException: Fail to verify issuer; int... | Certificate chaining error : PKIX path validation failed |
Add this before the last rule:RewriteBase /
RewriteCond %{HTTP_HOST} !=""
RewriteRule ^index.php(/.*)?$ http://%{HTTP_HOST}$1 [R=301]or to deny access:RewriteRule ^index.php(/.*)?$ - [R=404] | I created a CodeIgniter application and now I'm trying to redirect the urls with index.php to urls without it.My current .htaccess is:RewriteEngine On
RewriteBase /
# Removes trailing slashes (prevents SEO duplicate content issues)
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ $1 [L,R=301]
# Enforce www
# I... | Redirect index.php in CodeIgniter |
maven-surefire-plugin spins a new JVM by default, MAVEN_OPTS you set are not applicable for this or not passed.Please do as below.Use argLine parameter as below.http://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#argLineprobably you might have memory leak which is causing this , use Eclipse Memory An... | I got a multi project setup , which requires to be invoke using one root project pom.When run each project separately all works fine, Tests executed successfully , BUT when projects been invoked using maven-invoker-plugin all projects failed with OtOfMemory upon start executing the Testing .MAVEN_OPTS are -Xmx2048m ,
... | when call projects poms using maven-invoker-plugin it throws OutOfMemoryException |
After running an intermediate commit of the docker image I could see, that/archive.tar.gzindeed is a directory.
This means that docker automatically extracts archives when adding them during image creation.Now I could also find this documented indocker documentation.(edit: files, e.g..sql.gz, are not decompressed on ad... | I want to add an archive (.tar.gz) and unpack it during image creation using a Dockerfile.ADD archive.tar.gz /archive.tar.gz
RUN tar xzf archive.tar.gzWhen I want to unpack the archive, I get following message:tar: /archive.tar.gz: Cannot read: Is a directory
tar: At beginning of tape, quitting now
tar: Error is not re... | tar: Cannot read: Is a directory in docker |
Istio 1.2.4 hasn't been tested for kubernetes 1.11 as per docs.Reference:https://istio.io/docs/setup/kubernetes/https://web.archive.org/web/20190827164324/https://istio.io/docs/setup/kubernetes/ | I'm experiencing the same error that was answered hereIstio manual sidecar injection gives an errorI can't manually inject istio sidecar into an existing deployment. The solution of making sure the versions match doesn't help me.# kubectl apply -f <(istioctl kube-inject -f apps_deployment.yml --log_output_level debug) ... | Missing values in istio-sidecar-injector kube configmap |
By default a Maven analysis is not going to include resources files into the analysis. You need to do that manually by overridingsonar.sourceseither as a property in your pom or by defining (-D) it on the command line. I would guess that has been done in a property in the pom of the project that's being scanned like yo... | We have two Java web application projects being analyzed by the same instance of SonarQube (version 6.4). Both of these projects have Java, JavaScript, and CSS components and we would like to run analysis for those profiles.Project A is successfully being analyzed for all three languages while Project B is only being a... | SonarQube Project Does Not Get Analyzed by JavaScript Profile |
The most notable impact with having multiple JavaScript files is the time required to render the page. Each script tag is processed separately and adds time to the overall render process.
A pretty good answer can be found here @ multiple versus single script tags
If we are talking a large number of scripts then you ... |
I'm working on improving the page performance of my company's intranet page. We're looking to (dynamically) combine our javascript files as well as cache them for 30+ days. The page launches on login for everyone.
One of my coworkers asked if it's worth the time to combine the JS files if we're already caching them ... | Aggressive Caching vs Combining of Javascript files for an Intranet Site |
6
Which RDS are you using? I have been using RDS for MySQL for a long time. I create an RDS instance of MySQL and then connect to it from my laptop where I have install MySQL client program. Once I am connected, I can run all the MySQL commands just as if I ma connected t... |
I am using AWS Amazon Web Service RDS for database. I have set up a database instance but how should I add the tables in that database instance or create any new tables in the database? Any idea how to add table?
| How to create table in RDS database on amazon web service |
When you have a string value and change it in your program, then the previous value will remain in a part of memory and the changed string will be placed in a new part of RAM.As a result, the old values in RAM remain unused.For this purpose, Garbage Collector is used and cleans your RAM from old, unused values But it w... | I am working with strings that are recursively concatenated to lengths of around 80 million characters. Python slows down dramatically as the string length increases.Consider the following loop:s = ''
for n in range(0,r):
s += 't'I measure the time it takes to run to be 86ms for r = 800,000, 3.11 seconds for r = 8,0... | Is there away to allocate memory to a long string in python? |
mysqldump create the dump of foreign keys as well...
it adds syntax like:mysql> SET foreign_key_checks = 0;
mysql> SOURCE dump_file_name;
mysql> SET foreign_key_checks = 1;You can read the manual at:http://dev.mysql.com/doc/refman/5.6/en/create-table-foreign-keys.htmlfor mysqldump of foreign keys | I created my MySQL schema that consists of multiple tables and I decided that I would add the foreign key constraints afterwards for each table, using the command:ALTER TABLE Orders
ADD FOREIGN KEY (P_Id)
REFERENCES Persons(P_Id)How can I get a backup of the schema (containing the foreign keys) so that I can duplicate ... | Backup MySQL schema with foreign key table constraints |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.