Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
The problem is that non-source files fromgrails-app/servicesaren't copied into the classpath. This is the case forsrc/javathough, but notsrc/groovy. It's also the case forgrails-app/conf, but that's the onlygrails-appfolder that this happens for, since it's the configuration file folder.So your best bet is to move the ...
I want to make a post to an url with SSL validation in Grails. I've imported the certificates, and I've generated the jks files. But it seems Grails does not found those jks files. Below is the code I'm executing (it's in a Grails Service Class):def certificate = "mycert.jks" def http = new HTTPBuilder(url) def keySt...
Errors with SSL validation in Grails
All you have to do is pod repo remove master pod setup Check the attached image.
I made cocoa pod repository with 'SayHello2' name successfully. Like this: And update my GitHub : SayHello2 Github Address I think everything is correct. but when search my project in cocoapods.org not found it. and when try to add this pod to Xcode project get this error: and this is my spec file: # # Be sure t...
How to fix error: [!] Unable to find a specification for `My Own Cocoapods repo`?
You can useInit Containersto ping for the server until it is online. An example would be:apiVersion: apps/v1 kind: Deployment metadata: name: web spec: selector: matchLabels: app: web replicas: 1 template: metadata: labels: app: web spec: initContainers: - name: wait-...
We had configured a kubernetes cluster where we deploy various services using spring boot and we have one service that is Spring Cloud Config Server.Our trouble is that when we start the cluster all the services try to connect to the config server to download the configuration, and since the Config Server has not yet s...
Clean deploy of Spring boot microservices with Config Server
Doesc:/GrafanaDataexist on his system? Is it writeable?When you run the image without the volume mounted at/var/lib/grafana/, Grafana will be able to write into the empty directory that's there in the image.
I have a docker-compose file which creates a volume and grafana... it is working fine on my system, but when a friend executes the script, it says:GF_PATHS_DATA=/var/lib/grafana/ is not writeableThe volume is created with this code:volumes: - c:/GrafanaData/:/var/lib/grafana/If we change it tovolumes: - c:/GrafanaD...
Created a volume: permission denied to write to /var/foo/
At the moment of writing this answer, that feature is not supported by Sonar. If separate metrics needed you need to create a separate project and trigger a separate build from Jenkins and providing specific pom.xml file for desired module.
I have a multi-module maven project and have it's modules as Sonar components.Is it possible to set alerts separate per module/component, or Sonar considers the whole project? If not, what's the best way of having my maven modules as separate projects in Sonar, so that mvn sonar:sonar is only executed once. I use cober...
Sonar separate quality profile per component
Well, it's definitely not a Prometheus metric. It's a metric collected by Prometheus from some job or exporter. Check the documentation of that job/exporter for your answer. Or its/metricspage, maybe there is a useful description there.
Does anyone know in what units the OpenEBS_read_latency prometheus metric is?
What is the units used for the `OpenEBS_read_latency` prometheus metric?
If you are using TensorFlow with GPU, you need to install CUDA and cuDNN. Please follow instructions onhttps://www.tensorflow.org/install/If you have already install CUDA and cuDNN, but still get this error, then you probably forgot to export your libraries: for Linux, you may need to set LD_LIBRARY_PATH to include CUD...
ImportError: libcuda.so.1: cannot open shared object file: No such file or directory Failed to load the native TensorFlow runtime.This error is appeared when importtensorflow. I need to know steps to solve this problem.
Import error when trying to import tensorflow with gpu
The short answer is no, but that's because you've gone down the wrong road with your container.This is why your imageshouldn'tinclude static data. Keep the static things in the image, and they dynamic things in a data container. (And a startup script to dynamically evaluate anything that needs it)You can probably use a...
I have a MySQL image that I launch a container from. I set up dbs , import sql-dump files and create users every time the container is created.When I work on the container I create various data that are stored in MySQL.I would like to save these extra data in a data volume container [DVC] so I could give the DVC to a c...
Create Docker volume with preexisting data in it
It happens because the slave is not authenticated within GCPPrivate registriesmay require keys to read images from them. Credentials can be provided in several ways:Per-clusterautomatically configured on Google Compute Engine or Google Kubernetes Engineall pods can read the project’s private registryThose 2 toutorials ...
I'm running Jenkins on GKE and having issue when running job - it can't download image for slave - anyone met similar issue - it happens whether I use private Container Registry on GCP or officialjenkins/jnlp-slaveimagejenkins-agent-dz3kg 0/1 ErrImagePull 0 66s ...
GKE Jenkins can't download image for slave
I tested in my environment, and it is working fine for me. I am using nginx images and pushed to container registry. Created container instance using image from container registry which recently pushed.I am using the same command which you have used to create container. Would suggest you use FDQN or Public IPAddres...
I have docker image which locally listens port 5000. I have deployed images to Azure Container Registry. I have then created Azure Container Instance with: az container create --resource-group myResourceGroup --name aci-tutorial-app --image <acrLoginServer>/aci-tutorial-app:v1 --cpu 1 --memory 1 --registry-login-serve...
Azure Container Instance does not respond with dns name on browser
Thedocumentation of theTracingparameter forAWS::Serverless:Functionlinks to a page explaining how to use AWS X-Ray with AWS Lambda. Unfortunatelythat pagedoesn't state anything about the tracing mode at all, so it's probably just linking to the wrong page.The correct page would be the API documentation of AWS Lambda wh...
What is the difference betweenActiveandPassThroughinTracingparameter ofAWS::Serverless::Function?IsPassThroughthe default value?
AWS SAM X-Ray Tracing: Active vs PassThrough
Can you put a conditional in your script? I would do that. And in your cron you can comment that it won't run on the first per your script directionsAs an example, in bash you can do this:#!/bin/bash dayofmonth=`date +"%d"` if [ $dayofmonth == "01" ]; then # do not run, exit exit fi # otherwise go on echo "it is n...
I made a cron to execute a task every tuesday at 3:50 AM - except a tuesday which coincides with the first day of the month:50 3 * * 2 MyCommandbut I don't know how I can translate my exception into the cron syntax, any tips?
special cron expression: how to make an exception?
If you only need public-read access you can replace SSH access with https: !git clonehttps://github.com/CliMT/climt.gitIf you're using SSH because you have plans to write to that github repo from the colaboratory runtime then you'll have to set up SSH keys and probably a known_hosts file manually. Or script typing "yes...
I'm trying to clone from Github using Google Colaboratory, the command I'm using is:!git clone[email protected]:CliMT/climt.gitBut I get the following:Cloning into 'climt'... The authenticity of host 'github.com (192.30.255.112)' can't be established. RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6...
Answer "yes" to terminal on Google Colaboratory
Ok, I found the problem/solution. I only had to assign themy.hostname.comhostname to the private network's IP in the company Domain Controller. This way in the company network the hostname is resolvable to the IP
I'm using the Azure Kubernetes Service to deploy a web application on k8s and I'm using theApplication Gateway Ingress Controllerto forward the requests from the outside of the k8s cluster.I defined the Ingress in this way:apiVersion: extensions/v1beta1 kind: Ingress metadata: name: my-ingress annotations: kube...
How to assign an hostname to an Azure Application Gateway with AGIC
Replace your code with this:Options -Indexes RewriteEngine On RewriteBase /subfold/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . public/index.php [L]Note target ofpublic/index.phpinRewriteRule.
I have this structure:www/subfold www/subfold/public/index.php www/subfold/.htaccess www/subfold/...etceteraI'm using wamp64. I need to redirect all the requests to public/index.php.When i had index.php on www/subfold/, this .htaccess worked like a charm.Options -Indexes RewriteEngine On RewriteBase /subfold/ RewriteC...
Fastroute, htaccess and subfolders on windows
The API search functionality is from v2 of the API. At that time, GitHub search was really suboptimal and it has since significantly improved thanks to the awesome team over there. Unfortunately, that hasn't improved the API search so, that is still tied to other functionality.
I am trying to use the GitHub search repository API, but I want to use optional search keywords (e.g. include mutltiple terms and match on best match, rather than only match on repos that have all terms - so if i search java,node,javascript, if no project is marked as all three it returns repos with partial matches).No...
GitHub API search optional keywords
SageMaker has a higher price mark but it is taking a lot of the heavy lifting of deploying a machine learning model, such as wiring the pieces (load balancer, gunicorn, CloudWatch, Auto-Scaling...) and it is easier to automate the processes such as A/B testing.If you have a strong team of DevOps that have nothing more ...
I have pretrained model artifacts stored in S3 buckets. I want to create a service that loads this model and uses it for inference.I am working in AWS ecosystem and confused between using ECS vs Sagemaker for model deployment? What are some pros/cons for choosing one over other?
AWS Sagemaker vs ECS for model hosting
1 See Container networking for Docker and the principle is applied consistently across other container runtimes too. Using --net=host or network_mode: host binds container(s) to the host's network. Rather than broadly publishing all of a container's or service's ports to ...
I'm trying to build and run a simple Docker container (using docker-compose to do this) on a GCP Instance (Ubuntu 20.04), and it seems that the container cannot access the internet, unless I run it using docker run --net=host [...] or use in my docker-compose.yml something like: service: build: ... network:...
Issues with Docker networking on a GCP instance
It depends on the nature of levels.if they are all related to the codebase, they should all be in the same repo, same branch.if they are related to the development lifecycle (dev, QA, staging, production), the same codebase can be duplicated in different repositories.Branches are more for isolating different parallel d...
I want to differentiate a repository into different levelsFor developmentFor testing andFor implementation etc.One solution I found is branching, but there will be issues when merging two branches.Is there any effective ways, please let me know.
dividing a project Repository
+50Solution is to define horizontal pod autoscaler for your deployment.The Horizontal Pod Autoscaler automatically scales the number of pods in a replication controller, deployment or replica set based on observed CPU utilization (or, with custom metrics support, on some other application-provided metrics). Note that H...
I have deployed 5 apps using Azure container instances, these are working fine, the issue I have is that currently, all containers are running all the time, which gets expensive.What I want to do is to start/stop instances when required using for this a Master container or VM that will be working all the time.E.G.This ...
Manage Docker containers at low scale
You can do:script.ksh $(date -d yesterday "+\%d \%m \%y")%is quoted because that is a new-line symbol in a crontab.ShareFolloweditedMay 12, 2019 at 9:33answeredMay 12, 2019 at 9:27Maxim EgorushkinMaxim Egorushkin133k1717 gold badges188188 silver badges278278 bronze badges2This old version doesn't support date -d yester...
I'm using old version of Unix and i want to run script everyday using yesterday date My script lets say30 08 * * * script.ksh dd mm yy How to make it
Crontab using yesterday date
The issue is when you alloc the object it's retainCount will be 1, you are assigning that object to a retain property object. Then it'll again retain the object hence the retainCount will be 2. The setter code of a retain property is something like: - (void)setAudioplayer: (id)newValue { if (audioplayer != newValu...
I am trying to play a click sound on every button click in my app For that i created a Utility class whose .h and .m is as follows .h file @interface SoundPlayUtil : NSObject<AVAudioPlayerDelegate,AVAudioSessionDelegate> { AVAudioPlayer *audioplayer; } @property (retain, nonatomic) AVAudioPlayer *audioplayer; -...
Memory Leak when retaining property
Allocate memory for all 3 strings is better.But if you are100%(bolded because it is very important) sure that the string never exceed the fixed length, then go ahead. You have to foresee whether you may add things in the future that may exceed the max length, and you have to consider whether user input in any way can o...
Its memory wastage vs cpu utilization question.If I want to merge 3 strings:Approach 1: Should I take all string lengths (strlen) and then allocate.char *s = malloc(strlen(s1)+strlen(s2)+strlen(s3)+1);ORApproach 2: I should assume1025and allocate considering the fact that I know the strings will never go beyond 1025.#d...
Allocating memory in C Function
Whoops, found the problem!cdk.Fnis unnecessary (the CDK should resolve the dynamic "token" anyway in string formatting), but as noted inthe StringParameter docthesimple_nameparameter is required, when using a tokenizedparameter_name.input_bucket_ssm_param = ssm.StringParameter( self, "MyCoolResourceSSMParam", ...
I have a CDK app with a CloudFormation Stack Parameter something like:project_name_param = cdk.CfnParameter( self, "ProjectName", default="MyCoolProject", )Since multiple instances of this stack can be deployed, I'd like to create anSSM Parameterwith name based on this project name, to keep things organized...
Name an SSM parameter from a stack parameter within an SSM parameter name in AWS CDK
It may be occur due to generate huge pdf file. you can useJRFileVirtualizerJRFileVirtualizer virtualizer = new JRFileVirtualizer(REPORT_CHUNK_SIZE,tempReportPath); parameters.put(JRParameter.REPORT_VIRTUALIZER,virtualizer);hereREPORT_CHUNK_SIZErefers that how many pages you want to chunk over full record andtempReportP...
We are trying to setup Jasper report on Ubuntu server.java version is 1.7.0_79Tomcat version is -7.0.67When we start the tomcat server and try to access the home page for the jasper server,we get the below exceptionHandler processing failed; nested exception is java.lang.OutOfMemoryError: PermGen spaceI tried changin...
jasper report server OutOfMemoryError: PermGen space error
Most likely your Nginx server is overloaded therefore request cannot be processed in the timely fashion causing the error.It might be caused by several issues:Nginx server simply lacks hardware resources (CPU, RAM, Network or Disk). Make sure it has enough headroom to operate by monitoring the aforementioned resources ...
I have been working on performing the load test on jmeter for 500 users per second. I am using JMeter for the same. While running the load test I am continuously getting the error on login API. Below is the request and response which I am sending and receiving timeout.Sample RequestPOST https://example.com//9000/v1/api...
504 gateway timeout while runnning the Load Test jmeter
As long as you don't commit the changes, they will come with you to other branches that you checkout (either on the working tree or on index if you have already added something there). Now, this question, I don't understand what you mean: How can I have a branch that is independent from the master? Just in case, you c...
I create a branch from my master. However, when I checkout into the branch and make changes, these changes appear in my master branch when I checkout back to master. Another very weird thing is that git does not force me to commit when I make changes and do checkout. How can I have a branch that is independent from th...
Git branches is not independent from master
I just had this issue myself. I had remove my current install of git and reinstall it. Fortunately it only takes a few minutes to do this.Go here:http://git-scm.com/downloadsDownload the latest version of git. Open it, and inside you'll see a few files. Open uninstall.sh in a text editor. Go down to the block of code t...
I'm having major problems getting git to run on my Mac OSX10.8.2. I installed git, and was following the tutorialhere. I followed the step to do password caching, but now whenever I type in "git" to terminal, I get the following statement back:Usage: git credential-osxkeychain <get|store|erase>When I run another comma...
Remove Git Credential-osxkeychain
I found a solution:count by (teamName) (kube_pod_labels * on(namespace) group_left(teamName) kube_namespace_labels{teamName=~"$nsTeamName"}).Thegroup_left(teamName)copies the label's value from namespace to pod label. After that counting overteamNameworks correctly.If there's a better solution, please add it. Thanks
I'd like to ask how to count all pods in namespaces by namespaces' label value.The structure is:namespace has 'teamName' label to specify a team the ns belongs topod has 'teamName' label to specify a team within the team the pod belongs toI'd like to count all pods over all namespaces which are belongs to ns.teamName.I...
grafana: count pods by namespace and namespaces' label
What about deploying it into the Azure cloud? Believing what they say, scalability will be no more your concern.Instead of creating a DB cluster, what about splitting players to different "servers", "worlds" or however you might call it in your game. I don't know what type of game you'r talking about, but most browser ...
Some friends and I have written a game for Facebook without much thought into the actual architecture of the game - and imagine our surprise when we reached over 300,000 unique players per month and as our servers melted down.Now we're working on redesigning the entire server side of the game in order to make it much m...
Server architecture for a scalable Facebook game
FINAL SOLUTIONSo that's what I found out:Flush would not work under Apache's mod_gzip or Nginx's gzip because, logically, it is gzipping the content, and to do that it must buffer content to gzip it. Any sort of web server gzipping would affect this. In short, at the server side, we need to disable gzip and decrease th...
Is it possible to echo each time the loop is executed? For example:foreach(range(1,9) as $n){ echo $n."\n"; sleep(1); }Instead of printing everything when the loop is finished, I'd like to see it printing each result per time.
PHP Flush that works... even in Nginx
A bit late, just saw this question referenced from another one.I guess you've went and solved it something like this?DynamoDB tablesProjects (ProjectID [HashKey], ...)Files (ProjectID [HashKey], FileID [RangeKey], ...)Tags (Tag [HashKey], FileID [RangeKey], ProjectID [LSI Sort Key])On the FileTags, you need the FileID ...
I am rather new to DynamoDB and currently we are thinking about migrating an existing project to a serverless application using DynamoDB where we want to adapt the following setup from a RDMS database:Tables:Projects (ProjectID)Files (FileID,ProjectID, Filename)Tags (FileID, Tag)We want to make a query with DynamoDB to...
DynamoDB Query with multiple tags
You need to open a new browser session (in private mode) and log in as B on github.comIn that separate session, you will be able to delete B's repository, through its settings.
I am working with my github account A where I have deployed a website via github pages. Accidentally, I committed all changes using account B. How can I delete this repo from account A now? I don't see any option of "Settings"
Delete Repo Where Someone Else Comitted Changes
For those of you wondering: All I had to do was merge from master to XYZ branch so I could get the latest commits then revert the commit that reverted my code. Then the files in that previously reverted commits showed up in the new PR.
Here's what's happening:created branch XYZ from mastercommitted changes in branch XYZmade PR of XYZ branch to masterPR got accepted and code merged into masterPR got reverted (it broke stuff)made some commits in branch XYZ in order to fix what commit on item #2 had brokenwent to Github.com and created new PR, but I onl...
Why reverted commit won't show in new PR?
I fixed this by changing the repo in SourceTree to use SSH url rather than https. Try this (or switching to https if you're using SSH url)
I am trying to push changes in my project but sourcetree is loading for hours but it does not work out. it´s not frozen but can´t push the changes.
frozen sourcetree pushing commit
You could link the necessary files! Windows (Elevated Command Prompt): mklink <<gmfile>> <<gitfile>> Unix/Linux: ln -s <<gitfile>> <<gmfile> Thank you to Enkidu from the Greasespot discussion group for his response! Using Windows and a .bat file, this code is used to link all the files from you git folder to the Gr...
I am working on a userscript for Firefox, so I use GreaseMonkey. Moreover, to facilitate the development, I use git to update the different versions of my code. Now, let me try to explain the issue. When I add to GreaseMonkey the userscript from my local git directory, then new files are created in the gm_scripts fold...
How to correctly work on a GreaseMonkey userscript using git?
0 yum or apt-get install docker-io will install the docker-io then you build it from source and it replace the existing docker or set your path to point to the new docker. Share Improve this answer Follow ...
I download the docker and want to compile it from the source code: [root@localhost docker-1.5.0]# make mkdir bundles docker build -t "docker" . /bin/sh: docker: command not found make: *** [build] Error 127 Per my understanding, if I want to compile docker, I need to get a docker firstly. Is it right? If it is true...
Need docker to build docker?
Have you considered usinggit subtree. Here is link to a short tutorial of its usage:git subtrees: a tutorialHave a look and see if it is to your liking.ShareFollowansweredFeb 5, 2015 at 15:22Sebastian StiglerSebastian Stigler6,99922 gold badges3131 silver badges3232 bronze badges1Thanks, subtree worked fine. The follo...
i have git repo like folloingxyz abc def sample1.py sample2.pyi want to create separate git repo for "def" folder share it as another git repo and also want to use the same code as in my original git (xyz). likedef sample1.py sample2.pyit is like having two git repo for the same folder. so i wil...
How to use same folder for multiple git repos?
Based on theDocker documentation:Compose uses Docker links to expose services containers to one another. Each linked container injects a set of environment variables,each of which begins with the uppercase name of the container.Docker Compose would create an Environment Variable representing theFull URLof the contain...
I have a Spring boot app that connects to a Redis instance that works as a cache. When I'm in dev environment, I have the following:--- spring: profiles: default redis: host: localhost port: 6379And my cache configuration class is like this:@Configuration @EnableCaching public class CacheConfiguration { @Va...
Environment variables and @Value can't work together on Spring Boot
You are not assigning the object returned to _sharedUserStockInfo so you are losing reference and leaking. Over that _sharedUserStockInfo will remain nil and method will return nil too.
I am hitting the memory leak warning message as seen in the screenshot below. I need some advise on how I can resolve this memory leak. Can I just do a [self release] at the end of the method?
Objective C: Memory Leak issue in Class Method
Try this:Login into Sonar as administratorClick on 'Rules'and select C#Under Repository section search for FxCop and add it (it should show a certain number of rules)With C# and FxCop selected, click on 'Bulk Change' or 'Settings icon' (depends on which version of sonar you're running), and select 'Activate in.."In the...
Executing Sonar (version 4.5.4) analysis on a C# sln using the C# built in plugin (version 4.0). I've set in the settings the location of the FxCopCmd.exe, but I get the following in the execution: "All FxCop rules are disabled, skipping its execution" How do I enable the rules?Thanks,Ariel
Unable to execute FXCop analysis in SonarQube
3 Good answer - The blog post is out of date now as their naming has changed, but it's probably still based on MD5. Share Improve this answer Follow answered Dec 26, 2014 at 15:24 TobyAll...
How does Instagram name files, are the file names random? based on some sort of hash? or is there some meaning to them? for example http://distilleryimage2.instagram.com/21a9ca729bf511e2985c22000a1f9ad3_7.jpg
How does Instagram name files
That auto-deploy mechanism is implemented withGit Hooks. The most likely hook used ispost-update.It's a simple bash script that is executed on agit push; put one in a git repository on your EC2 server including the code to re-run NPM (if needed) and restart your code.That's should do it. :)
I am a node.js developer. I have used Heroku and Joyent's no.de platform before .For both of these platforms , the deployment used to be simplegit push heroku master ( Heroku ) git push joyent master ( Joyent's node)The above commands used to do the magic . They enabled me to push the code from my local machine to the...
How do I enable continuous deployment of Node.js applications to Amazon EC2?
4 The \r in node\r is probably the key: you saved some file using Windows line endings (CRLF) whereas Linux expect LF line endings. As I'm not accustomed with NodeJs, I can't really tell you which file use wrong line ending here. Share Improve this answer ...
I'm having this issue when running the following command: docker-compose run npm run dev I'm in cmd terminal in win10 and I think the error is related to CRLF/LF end of lines. The following is the whole error : > @ dev /var/www > npm run development > @ development /var/www > cross-env NODE_ENV=development node_mod...
/usr/bin/env: 'node\r': No such file or directory
4 What you have encountered is the many patterns for approaching version control. A model that works well for a few projects I've worked on is this one: http://nvie.com/posts/a-successful-git-branching-model/ The summary is thus: master branch (Always production-ready to d...
Hi i am learning about version controlling , trunks and branches . i have read some articles and i am confused now one of them says . Developers commit all new work to the trunk. Day-to-day changes are committed to /trunk: new features, bug fixes, and so on. The trunk is copied to a “release” branch. When the team ...
New work should be done in trunk or branches in Version Control?
It's possible to suggest an account to connect to in the Github Oauth2 authentication page, according to Github Oauth documentation : GET https://github.com/login/oauth/authorize You have the login field : | Name | Type | Description | |-------|---------|-------------| | login | string | Suggests a specific acco...
I am implementing functionality that allows the user to SignUp and SignIn with GitHub using Passport.js and mongoose. But every time I try to SignUp, it takes my default browser account and Signs me up using that account, rather I want to create a prompt that asks the user to enter his GitHub id and password so that h...
How to get a prompt asking the user to enter his account details while login?
FromRelease Notesfor pip 1.5 (2014-01-01)BACKWARD INCOMPATIBLE pip no longer respects dependency links by default. Users may opt into respecting them again using--process-dependency-links.ShareFollowansweredApr 9, 2016 at 17:31Piotr DobrogostPiotr Dobrogost41.9k4141 gold badges238238 silver badges370370 bronze badges...
We wrote an application for ourselves which calls us on the phone, if our telescope has a problem. One can install this application (without prior cloning) like this:pip install git+https://github.com/fact-project/shifthelperand we like that our non-developer friends can install the app without prior cloning it. So far...
pip install python app from github, with non pypi dependecy
Thank you for guidance Filip and leandrojmp!Just using a grok filter for this, would make it very complex and also it wont support dynamic key-value pairs.So I went with a combination of grok followed by kv filter. And this approach worked for me.Sample Log:[INFO] [3b1d04f219fc43d18ccb6cb22db6cff4] 2021-10-13_13:43:09....
I am working on a spring boot project and using ELK stack for logging and auditing. I need a logstash.conf file which will process logs and the output can have dynamic key-value pairs. This output data will be used for auditing.Adding an example for better clarityExample:Sample log:[INFO] [3b1d04f219fc43d18ccb6cb22db6c...
Have a key value pair as logstash output, by only using grok filter
Add a condition to the bucket policy listing your AWS Organization, and allow all principals access. SeeAWS Global Condition Context Keys, search foraws:PrincipalOrgID. "When you add and remove accounts, policies that includeaws:PrincipalOrgIDautomatically include the correct accounts and don't require manual updating....
My company has an organization set up in AWS (CompanyA as example). Each team has an account joined to this organization (HR, ProductA, ProductB, ect..). We in ProductA are attempting to grant read-only access to an S3 bucket which serves as a yum repository we own to anyone under this organization from their ec2 inst...
AWS S3 bucket organization access policy
It seems that your repo is filled with files that have extensions that Github doesn't recognize. If your files don't have extensions used by common programming languages, Github won't be able to label them since it doesn't know what they are.
My github repo is not showing the language statistics [in the form of the bar under 'packages'] and the most used language. I've done some testing with the same files and it seems like Github's Linguist just starts to break after a couple of commits. I've also looked into problems that might arise with vendored code an...
Github Repo is not showing the Language Bar as well as most used Language
You can try something along these lines:RewriteCond %{HTTP_HOST} !^(www\.)?main-domain\.com$ [NC] RewriteRule ^(.*) http://www.main-domain.com/$1?domain=%{HTTP_HOST} [R=301,L]With this any requestNOTfor domainwww.main-domain.comwill be redirected towww.main-domain.comwith the domain name in query stringdomain.
I have a client that has a good amount of domain alias' and wants them all redirected to the one main domain on the site. They also want to know which of the domain alias' is doing the redirecting. I have that part down but I want to optimize the code to the best most proper way it should be and to eliminate the amou...
.htaccess redirecting domain alias'
As already noted, first consider whether you really need the duplication. Maybe they should be in a common object that gets passed around. Maybe they aren't needed.Now lets assume they really are needed. Which can be the case of course. PMD's copy paste detector lets you set the minimum number of lines before it co...
Let's say we have 3 classes: A, B and C. Each class has the others in parameter. Like this: EDIT:+-----+ +-----+ +-----+ | A | | B | | C | ------- ------- ------- | X x | | X x | | Z z | | Z z | | Y Y | | Y y | ------- ------- -------Getters and setters will be duplicated. So, is it a bad practi...
Avoid duplicate code in POJO Class
I think you may be conflating Git with a source code editor.It looks like you're usingGitHub for Windowswhich I do not believe includes any type of editor.Git for windowsactually does include an editor - but it is Vi, which is not for everyone.You want something likeNotepad++orEclipseto do your actual development in. T...
I've been searching the web for tutorials on how to effectively use the github desktop application I downloaded on my windows computer.. I didn't find much. More specifically, I want to be able to edit multiple files in the repository I copied from github, then upload/commit the changes in a single commit (for networki...
Github Application Can't See How To Edit Files
ARC doesn't addcopy, that's still your responsibility if you need copies. It only managesretainandreleasefor you. If you manuallycopysomething though it knows that you get a new object that it will have to release at some time.ShareFollowansweredJun 28, 2012 at 6:36SvenSven22.6k44 gold badges5252 silver badges7171 bron...
As LLVM compiler with ARC option add retain, copy,release and autorelease for us automatically, but how does ARC determine whether to use retain or copy? Thanks in advance:)
How does ARC determine whether to use retain or copy?
You have quite a few unnecessary optional capturing groups in your regex. You can convert "optional groups" to non-capturing groups i.e.(?:...)to bring count of capturing groups to less than 10.You can use this rule:RewriteRule ^s/([^/.]+)/(\d+)(?:,(\d+?))?(?:,(\d+?))?/(?:([^/]+)/)?(?:([^/]+)/)?(?:([^/]+)/)?(?:([^/]+)/...
Hello iam trying to match more then 10 variables in my htaccess , but after the 10th variable it doesnt recognize and begin with the first $1 - but i expect "$11" not $1Browser Url:http://localhost/s/adobe+cs5/58058,18793/111/666/htaccess Rewrite:Array ( [search] => adobe cs5 [categories] => Array ( [0] => 58058 [1] =...
htaccess match more then 10
I could have done this with File java file class directly, but the problem was that I have not a java File class, instead I had to implement PartSource to read my special file class and set it to read after joining all of my file parts in one single file obligatorily. Usually you should do this: parts[0] = new FilePar...
I'm actually trying to upload a file (>5M) using apache HttpClient 3.1 via MultipartRequestEntity with java 1.4 in a low memory environment, so increasing java heap is not possible I have a file splitted in many parts, I just need to append all the data of each part into the request, I could get the file without split...
OutOfMemory on big HTTP MultipartRequestEntity via apache HttpClient 3.1
You will need to re-initialize the boot2docker VM with the new memory settings:$ boot2docker delete $ boot2docker init -m 5555 ... lots of output ... $ boot2docker info { ... "Memory":5555 ...}You can nowboot2docker upand the image will always use the configured amount of memory.
I've been playing around with docker on a mac so I need to install boot2docker to make it work.I have a pretty powerful machine and a very resource hungry app so I want to up the available memory from the default which is1GBto something like 8GB.This is what I've triedBooting boot2dock with the --memory paramboot2docke...
Change boot2docker memory assignment
According to this article:https://social.technet.microsoft.com/Forums/windowsserver/en-US/4d8678e2-5653-4fd2-b275-62e0e7008ff9/conflicting-display-of-windows-firewall-setting-from-gui-and-netsh-advfirewall?forum=winserverGPThere are 2 stores for this setting, a local and a Group Policy store. A resulting firewall state...
When I runGet-NetFirewallProfileI see that the Domain profile Enabled is set to True. However, when I go to Control Panel > Windows Firewall the Domain profile is turned off by the GPO. Also, in Windows Firewall with Advanced Settings, the Firewall state is "Off".I'm not sure why the powershell output is different th...
Windows Firewall state different between Powershell output and GUI
That's the way that SQS queues work by default (short polling). If you haven't changed any settings after setting up your queue, the default is to get messages from a weighted random sampling of machines. If you're using more than one machine and want all the messages you can consume at that moment (across all machines...
I am very new to AWS SQS queues and I am currently playing around with boto. I noticed that when I try to read a queue filled with messages in a while loop, I see that after 10-25 messages are read, the queue does not return any message (even though the queue has more than 1000+ messages). It starts populating another ...
Reading data consecutively in a AWS SQS queue
I've found a solution.In the root directory for the subdomain, in the .htaccess add the following:RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f Rewrite Rule ^([^.]+)$ $1.php [NC,L]This is how you can get rid of .php from the end of URL.Replace .php with .html and it also gets rid of .htmlFor some reason, this fi...
I know that this question has been asked a lot, but nothing I've seen so far worked.I have a wp in root, running from subdirectory (I like things clean). I also a few subdomains running from subdirectories in root (eg. public_html/sample.com). I get the error only on subdomains that are pure HTML and CSS. They don't us...
Request exceeded the limit of 10 internal redirects due to probable configuration error
0 It's hard to tell if this is a memory fragmentation problem. But you may want to consider allocating a fixed amount of memory for your frames as a ring buffer at the beginning, so that during runtime you won't run into any fragmentation (and also save the time for memory ...
I have the following problem.I run a loop for 3000 times. On every pass I allocate a byte buffer on the heap: uint8_t* frameDest; try { frameDest= new uint8_t[numBytes * sizeof(uint8_t)]; memcpy(frameDest, frameSource, _numBytes); } catch(std::exception &e) { printf(e.what()); } So the allocated frame se...
C++ bad allocation from heap fragmentation?
I guess you have a JS error related to CORS security (https://developer.mozilla.org/fr/docs/Web/HTTP/CORS). This is preventing one website to interact with another one through JS.You can check that by using Developer tools in :chrome (https://developers.google.com/web/tools/chrome-devtools/console/)firefox (https://dev...
Good afternoon,I'm trying to use minikube in order to deploy a multi-page nodejs-mongoDB web app. I have created my app, I have dockerized it and now I'm trying to deploy it locally using minikube. When I execute minikubeminikube service my-app --urlin a Unix shell I obtain an IP. Putting the IP in the browser I obtain...
Deployment of multi-page web app with minikube
Variables are stored in the session, so if you close your powershell console and open a new one, all custom variables will be gone. If you want to see what variables exists, use Get-Variable . To delete a specific variable(to make sure it's gone), you could use: Remove-Variable varname. As for you question. A variable...
This morning, I copied a directory from my local, networked drive to temp folder for testing. This error appeared. Get-Content : Cannot find path 'C:\users\xxxxx\desktop\cgc\Automatic_Post-Call_Survey_-_BC,_CC.txt' because it does no t exist. At C:\users\xxxxx\desktop\cgc\testcountexcl1.ps1:55 char:12 + Get-Content <...
Does Powershell have a cache that needs to be cleared?
Option 01Access the ETCD for minikube , find and clean up the key.Detailed procedure is herecommands:https://gist.github.com/iahmad-khan/5d32b4070b6faf3836b932a7177095ffOption 02 ( will lose the existing stuff )Stop minikubeRemove the kube direcotry in user home ~/.minikubeStart a fresh minikube
I wanted to bring up zookeeper usinghelm install ., but it saysError: release <servicename> failed: services "zookeeper" already exists. I don't see anything if I executehelm listtoo. Before installing the service, I checked usinghelm listif it already exists, and it doesn't.How to check the reason for failure?
How to check reason for Helm install failure
3 You don't have mime.types file at /usr/local/Cellar/nginx/1.2.8/. Change 17 line at your /usr/local/Cellar/nginx/1.2.8/nginx.conf to refer the right file path. include /usr/local/Cellar/nginx/1.2.8/mime.types; to include /usr/local/Cellar/nginx/1.2.8/conf/mime.types; mi...
I use the following to run Nginx : sudo /usr/local/Cellar/nginx/1.2.8/bin/nginx -c /usr/local/Cellar/nginx/1.2.8/nginx.conf It shoots out a error : nginx: [emerg] open() "/usr/local/Cellar/nginx/1.2.8/mime.types" failed (2: No such file or directory) in /usr/local/Cellar/nginx/1.2.8/nginx.conf:17 What is need for th...
Nginx could not open mime.types . What changes are required?
I would suggest you revisit your issue, most probably there is a better way to do this.If not you can try macvlan as discribedhere.ShareFollowansweredOct 2, 2018 at 17:10Farhad FarahiFarhad Farahi37.2k77 gold badges7777 silver badges7272 bronze badges3I saw the link and I am struck at first step which says "Download th...
I am trying to assign an Ip address to docker container using dhcp. Has anyone used dhcp to assign ip address to docker containers on rhel/ubuntu? Any help would be appreciated. I couldn't find any proper documentation for this. Thanks
How to use ip address from Dhcp on Docker containers
What you are looking for is called EBS (Elastic Block Store). You can attach an EBS drive to any server, and start logging there. If your server dies, the EBS disk will still be around and you can look at the data later. Even better, just create a central syslog server (with an EBS drive), and have all your (stateless...
I need to create a log file in AWS S3 (or any other AWS service that can help here). AFAIU there is no way to append a line to an existing log file in S3. This means that I would either need to retrieve and resend the whole log each time a new message comes, or that I will need to create a new object per message. The ...
Append to a log file in S3 (or any other AWS service)
1 Odoo.sh is a automated deployment system, you don't need to do configuration, addons copying by yourself because Odoo.sh deployment system does that automatically. You have to ensure that your addons are in the root directory of your github repo. Whenever you push your co...
I have my configuration files uploaded to a repository in GiThub. However I am not sure how to migrate the new addons to my Odoo.sh. I expect i would copy these to the Odoo addon folder but I am not able to see or access this from my Odoo.sh console. HAs anyone done this before and can share how I can achieve this
how to Migrate Addons from Github respository to Odoo.sh
from the manual:Every * means something:minute 0-59 hour 0-23 day of month 1-31 month 1-12 (or names, see below) day of week 0-7 (0 or 7 is Sun, or use names)if you want every minute use this */1example:*/15 * * 1 * means every 15 minutes on the 1st day of the monthEdit/etc/crontabor usecrontab...
I'm trying to set the cron jobs to run on a specific timezone, but I think I'm missing something.I've tried to add TZ (And CRON_TZ) on top of the jobs in the /var/spool/cron/ file, but it doesn't seem to work.TZ=Europe/Rome * * * * * /usr/local/bin/php /home/user/folder/file.phpI've installed CWP7pro
Set a cron job to a specific timezone on Centos 7
try the below grok,filter { grok { match => { "message" => "\"@timestamp\":\"%{TIMESTAMP_ISO8601:logTime}\",\"@version\":\"%{INT:version}\",\"message\":\"\[\D*\[%{WORD:login}]\] \(%{IPV4:forwardedFor}\, %{IPV4:remoteAddr}\|%{IPV4:remoteAddr}\) %{WORD:identificator} %{WORD:methodName} %{TIMESTAMP_ISO8601:acti...
I have such message to be parsed by grok filters:"@timestamp":"2019-12-16T08:57:33.804Z","@version":"1","message":"[Optional[admin]] (0.0.0.0, 0.0.0.0|0.0.0.0) 9999 approve 2019-12-16T08:57:30.414732Z","logger_name":"com.company.asd.asd.web.rest.MyClass","thread_name":"XNIO-1 task-5","level":"INFO","level_value":...
How to parse logs using logstash
nginx-ingress-controller supports this use-case.As mentioned in the documentation for exposing tcp services(https://kubernetes.github.io/ingress-nginx/user-guide/exposing-tcp-udp-services/). A configmap needs to be created for this purpose. eg.apiVersion: v1 kind: ConfigMap metadata: name: tcp-services namespace: i...
I want to allows SSH access(port 22) to my Kubernetes services from outside the Kubernetes cluster. because my deployed application contain git server.Could you please suggest me a solution because it's blocking situation for me.I was able to do clone/push using http/https, But it seems that SSH protocol is not covered...
NGINX Ingress Controller Configuration In AKS (SSH/GIT)
You can mask a value so that it will appear in the log as***. See thedocumentation here.echo "::add-mask::Mona The Octocat"
GitHub Actions allows you to pass environmental variables from one step to the other by doingecho "::set-env name=YOUR_VARIABLE_NAME::YOUR_VALUE"in one step, and then accessing the value in the next step${{ env.YOUR_VARIABLE_NAME }}However, this prints the variable value to the GitHub Actions runner's console. This is ...
How to pass variables beween steps secretly?
I see you've also askedj2me wtk find memory leakIn my experience, memory leaks don't causeOutOfMemoryExceptions. All they do is to slowly use up all the memory in the device. And when it's all nearly used up, the device is then forced to callSystem.gc()itself.System.gc()is a blocking call, meaning it'll make your whole...
I'm making a game using J2ME and sometimes while testing it I'm getting out of memory exception, I know what it means but how can I solve it ? if I'll call System.gc() in my game loop every time will it help somehow ? Any tips on how to prevent this would be appreciated !
j2me out of memory exception
For pods, you dont need to randomize ports as each of them has its own networking namespace. Unless you use hostNetwork.For services, NodePort type of service will be assigned random high ports regardless of the port numbers your pods listen on
Is it possible to dynamically assign port numbers in kubernetes?Use Case: I have logstash, Kafka, Cassandra and other services running in kubernetes and I create multiple pipelines in different namespaces.Everytime I create a pipeline, I need to change the container ports for each pod so that there won't be any port co...
Dynamically assign port numbers in Kubernetes?
I resolved this issue by deleting the entire.sonarqubefolder.ShareFolloweditedJul 6, 2020 at 11:41Cody Gray - on strike♦242k5050 gold badges496496 silver badges575575 bronze badgesansweredJul 6, 2020 at 10:19Rohan MohapatraRohan Mohapatra10111 silver badge44 bronze badges3I emptied the.sonarqubefolder in 2 places: Unde...
I'm having random problems during my build process in TeamCity. I've got two configurations: First for Rebuild + Unit test. Second as artifact dependency, with SonarQube analyzer. When Teamcity is executing first configuration, I'm receiving random error messages every 5-10 builds:CSC error CS0006: Metadata file 'E:\...
CSC error CS0006: Metadata file 'SonarAnalyzer.dll' could not be found
I randomly stumbled upon this post, and it looks like youcandisable scaledown.The documentationincludes this example at the bottom. Potentially this feature wasn't available when the question was initially asked.The selectPolicy value of Disabled turns off scaling the given direction. So to prevent downscaling the fol...
By our product's design we would like to disable the scale down in HPA, can it be disabled?
Kubernetes HPA disable scale down
If you have access (SSH) to the server - you can usersync,scpscp -r[email protected]:/home/user/repo.git /home/user/Desktop/repo.gitIf you haveftponly access usencftpncftpget –R –v –u "user" ftp.example.com /home/user/repo.gitYou will copy the folder with your repo to local (remote) machine.
is it possible to mirror GIT repository on an FTP server? If not, what is the best solution to backup repositories with FTP?Thanks in advance, Etam.
GIT mirror with FTP
While the latest dotnet SDK can target any previous SDK versions,dotnet test requires the particular dotnet runtime. There are many ways to install dotnet sdk/runtimes into a base docker image, but the easiest is to just copy the SDK and/or runtimes from existing base images. Here's an example for dotnet 6, should you...
I have a library that targets .NET Standard 2.0. To verify compatibility, I would like to run my unit tests with the current and long term support (LTS) versions of .NET Core. When this question was written, those were: Target Framework Target framework moniker (TFM) .NET 5.0 (current) net5.0 .NET Core 3.1 (...
How can I target multiple .NET Core versions from a single Docker image?
This is the rule you'll need to hide .php extension. This goes into your .htaccess in the DOCUMENT_ROOT directory:Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On # To internally redirect /dir/foo to /dir/foo.php RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^ %{REQUEST_URI}.php [L]
I'm trying to remove file extensions with htaccess, sowww.mysite.com/file.phpbecomeswww.mysite.com/file.I'm using the following code in the.htaccessfile:Options +FollowSymLinks Options +Indexes RewriteEngine on RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^([^\.]+)$ $1.php [NC,L]So far, so good. Where it falls down i...
Remove file extensions using htaccess in subdirectories
Since you are using multiple repositories within your runner (repo1/repo1 and repo1/repo2), you can use the path option from actions/checkout. path Relative path under $GITHUB_WORKSPACE to place the repository https://github.com/actions/checkout#usage - name: Checkout uses: actions/checkout@v4 with: path: re...
I have github actions in repo knowyrtech/repo1 where I check-out knowyrtech/repo2 like below: - name: Checkout code from a specific repository and branch uses: actions/checkout@v3 with: repository: knowyrtech/repo2 # Replace with the repository you want to checkout ref: release/valtech I wish to get to th...
How to get checked out remote repository directory in github actions
Well it seems that at least one programmatic way to do this is to query the AWS Pricing API: #!/bin/bash curl https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonEC2/current/index.json | jq -r '.products[].attributes["instanceType"]' | sort -u | grep '\.' A gist for this is here, in case of future tweaks: ...
Closed. This question is seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. It does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions see...
List all EC2 instance types in a region or AZ [closed]
One solution is use Proxy over JDBC Driver and get user name from your ThreadLocal context.
I have a requirement to log or write into database the queries (select, update, insert, delete) of the logged user to the database. I've seen tutorials in the internet, but they doesn't cover this case. I need to log queries to the datasource but also append the name of the user in the session wich is logged to the app...
Best way to log queries using datasource
I turned on debugging and found that the script was actually erroring out before it to my parameters. I googled the error and it turned out to be this:Cakephp 3 bin/cake bake - Undefined variable: argvTweaked the php.ini config and it worked perfectly.ShareFolloweditedMay 23, 2017 at 10:28CommunityBot111 silver badgean...
I have written a shell script that works perfectly when I test it locally.bin/cake myshell methodBut when I assign it as a crob it's not working. Instead I see the default cake output:Welcome to CakePHP v3.1.4 Console --------------------------------------------------------------- App : src Path: /home/fantastagram/pub...
CakePHP shell script won't run as cron job
Your link is working, but you're on separate networks inside of Docker. From thedocker-compose.yml docs:Note: If you’re using the version 2 file format, the externally-created containers must be connected to at least one of the same networks as the service which is linking to them.To solve this, you can create your own...
I have started a docker container with the following commanddocker run --name mysql --restart always -p 3306:3306 -v /var/lib/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password -d mysql:5.7.14and then would like to connect a wordpress site with the following docker-compose.yml fileversion: '2' services: wordpres...
docker-compose + external container
It may happen due toservice.kubernetes.io/load-balancer-cleanupfinalizer.CheckAzure-k8s: Not able to delete Load Balancer service?, it can happen LB type service stuck in such way.I would suggest you open service by runningkubectl edit svc service_name, remove below part and saving it again.finalizers: - service.ku...
I uninstalled nginx-ingress from my AKS cluster and almost all the resources got deleted my main service which is a type of LoadBalancer is still there I tried deleting manually by using the delete command but still, it's not deleting. I don't know what is the issue please help me out with this.Thanks in advance
"ingress-nginx-controller" service is still not removed after uninstalling chart
As stated bya recent change to the GitHub API, it's now possible tocreate and initialize a repo a the same timethrough your preferred shell."Today we’ve made it easier to add commits to a repository via the GitHub API. Until now, you could create a repository, but you would need to initialize it locally via your Git cl...
This question already has answers here:Closed11 years ago.Possible Duplicate:Is it possible to create a remote repo on GitHub from the CLI without ssh?Every time I create to a new repo on github, I need to firstly go to the github website to create a repository, then using command line to push my code to that repo on m...
Is that possible to create a new github repository all from command line without browser? [duplicate]
Annoyingly it seems checking out a previous commit doesn't remove files from the directory of the most recent commit. So that means files that didn't exist in the prior commit will still be there, and so uploaded via eb deploy.
I want to test how a previous version of a project deploys to my Elastic Beanstalk environment. I've used git checkout xxxxx to revert to my previous version, but when I used eb deploy I get the following response: WARNING: Git is in a detached head state. Using branch "default". WARNING: Git is in a detached head ...
Deploy previous git commit to AWS
The<refspec>you gave here as a parameter for your push ismaster, where the full canonical form would have been<src>:<dst>,<src>being the source of the push and<dst>the destination ref. When you omit one, git assumes your parameter is<src>and that no<dst>has been given. In that case, and if the branch has a<repository>....
I created a local Git branch off master (lets call it BranchB). I then committed my changes on that branch (to BranchB). But when it came for the time to push to the remote repository, too much coffee got to me, and I wrotegit push origin masterinstead of justgit pushto push the new branch to the repository.I then went...
Accidentally executed "Git push origin master" while on branch off master
Github have enabledkramdown’s GFM parserby default in the update to Pages. One of the changes this parser makes is to require whitespace between the#and the text of the header for it to be considered as a header.I don’t know if you are able to change this default back in your configuration. TheJekyll docsdescribe how t...
This week,GitHub announced that it willonlysupport kramdownfor its productPages.Per their suggestion - Iremovedmarkdown: redcarpetand updatedhighlightervalue torougein the_configofmy project.Now the only problem is that#is unable to render as a heading on any of the pages on themain websiteWhat is the workaround for th...
# not rendering HTML heading tags after GitHub's recent update for pages and Jekyll
3 After many hours of searching, I think found the answer. I put here the answer, for those who would fall on the same problem. It looks like Docker have changed is the name of his app. Rename from Docker Hub Registry to Docker Hub Builder For repair it, so I cut the applic...
Since two days, i don't know why, i cannot build a docker image from Docker Hub Registry with linked github projects (it's working previously) Many answers were about a github submodule It was not my case. Here are the logs Building in Docker Cloud's infrastructure... Cloning into '.'... Warning: Permanently added the...
Docker Hub Registry cannot build docker image from Github repository
+25First thing clear your browser cache completely and restart your browser. Then replace your .htaccess with this:Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^MYDOMAIN\.com$ [NC] RewriteRule ^ http://www.MYDOMAIN.com%{REQUEST_URI} [L,R] RewriteCon...
I have:RewriteCond %{HTTP_HOST} ^MYDOMAIN\.com$ [NC] RewriteRule ^(.*)$ http://www.MYDOMAIN.com/$1 [L,R=301] RewriteCond %{HTTPS} !=on RewriteCond %{REQUEST_URI} ^/(user|admin|cart) RewriteRule ^(.*)$ https://www.MYDOMAIN.com/$1 [R=301,L]This effectively routes all /user and /admin and /cart paths to use SSL. My probl...
.htaccess for SSL?
RewriteCond %{REQUEST_FILENAME}.html -f RewriteRule ^ %{REQUEST_URI}.html [NC,L]The problem with this code, is that when the request ends in a slash (eg.http://example.com/er_trends_download/) then theREQUEST_FILENAMEserver variable does not include the trailing slash, but theREQUEST_URIvariable does. So, you end up re...
I currently have a static HTML file hosted in the root folder of my Wordpress install. I can access the URLhttp://example.com/er_trends_downloadbut get an internal server error when the trailing slash is added to the URL:http://example.com/er_trends_download/I have added lines to the.htaccessfile to drop the.htmlfrom m...
htaccess redirect to static html hosted within Wordpress root
My solution that worked is to download Google fonts and install it manually. Image size grows up to 1GB. FROM zenika/alpine-chrome USER root RUN apk add --no-cache msttcorefonts-installer fontconfig RUN update-ms-fonts # Google fonts RUN wget https://github.com/google/fonts/archive/master.tar.gz -O gf.tar.gz RUN ta...
How to install fonts for all languages? This is what I do, but no Japanese fonts in Chrome. From this image: https://github.com/Zenika/alpine-chrome/blob/master/Dockerfile FROM zenika/alpine-chrome USER root RUN apk add --no-cache msttcorefonts-installer fontconfig RUN update-ms-fonts # Installs latest Chromium pac...
How to install fonts in Docker?
Short answer: No. If you actually have text files with data you want to analyze I'd suggest you to write the data to another TMDB (InfluxDB for example) or a plain old SQL database and then connect it with Grafana. Also take a look at PowerBI. I prefer it for data that is scoped more towards business analytics than mon...
I am just starting to get the concept of whatPrometheusis, and I have done a couple of examples already. I can understand how Prometheus monitors some data, even the one generated by itself and also some data related to a python application for example.My question is more simple though. If I have a text file of data al...
Prometheus for some data already generated
Don't useRewriteRuleto convert pathinfo to query parameters, but just enable MultiViews in Apache HTTP Server and use$_SERVER['PATH_INFO']inindex.phpwith little help ofexplode().ShareFollowansweredJan 17, 2010 at 4:18BalusCBalusC1.1m374374 gold badges3.6k3.6k silver badges3.6k3.6k bronze badgesAdd a comment|
First, let me say this: I suck at regex and htaccess. I'm trying to make a rule that will properly parse url segments into variables. So far I have this:RewriteRule ^([^/]+)/?$ index.php?query[]=$1 [QSA,L] RewriteRule ^([^/]+)/([^/]+)/?$ index.php?query[]=$1&query[]=$2 [QSA,L] RewriteRule ^([^/]+)/([^/]+)/([^/]+)/?$ in...
Combining multiple htaccess rewrite rules into one
It can be done by on: release: types: [published] Reference
I'm attempting to create a GitHub Action which builds and pushes an image to Docker Hub. Easy enough since there's already a standard workflow for that. However, is there a way to have the action be triggered whenever I create a release for my repository?
Trigger workflow when creating a release
1 You have probably been reading older textbooks from back when the stack was a few kilobytes and "stack overflow" was a common error, not a web site. The stack on a modern PC will be several MB by default; on a Linux box, try ulimit -s. Last I checked on my netbook, I coul...
Tiny structures that represent some variables in the calculations should definitely be stored on the stack, but what about more common structures like this one: typedef struct { int number_of_nodes; int number_of_edges; char *adjacency_matrix; } graph_t; For now I store graph_t structures on the stack: graph_t ...
Is it a good practice to store C structures on the stack?
Can you give me how install it step for step? The project you are trying to install does not utilise go modules. If you run go build you will receive instructions covering how to rectify this. In short: $ cd geomag /geomag$ go mod init github.com/westphae/geomag go: creating new go.mod: module github.com/westphae/ge...
im new in Go and i can't install the next repository in git:https://github.com/westphae/geomag. This repo has written in Go. I have the next trouble: (base) soporte@CI-93:~/geomag/cmd/wmm_point$ go build main.go main.go:81:2: no required module provides package github.com/westphae/geomag/internal/util; to add it: ...
How I install repository in Go when i have the next trouble "no required module provides package"?
#!/bin/bash shopt -s extglob OLD=$(exec date -d "now - 7 days" '+%s') cd /backup || exit 1 ## If necessary. while read DIR; do if read DATE < <(exec date -d "${DIR#*folder_}" '+%s') && [[ $DATE == +([[:digit:]]) && DATE -lt OLD ]]; then echo "Removing $DIR." ## Just an example message. Or we could jus...
I have a bash script that rsyncs files onto my NAS to the directory below: mkdir /backup/folder_`date +%F` How would I go about writing a cleanup script that removes directories older than 7 days old based upon the date in directories name?
Removing old folders in bash backup script
This error might suggest that the docker daemon has died. Just restart the docker-desktop, it should resolve the issue.
I installed Docker on my Windows 10 PC and I'm attempting to pull "AndroPyTool" (linkhere). I tried pulling it in the IDE to no luck, so I opened Powershell (with admin permissions) and continue to get the following error:request returned Internal Server Error for API route and version http://%2F%2F.%2Fpipe%2Fdocker_en...
Docker Error when Pulling Due to API Version