Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
To redirect all URLs that end withmy-textusing mod_rewrite in .htaccess, try the following:RewriteEngine On RewriteRule .+/(my-text)$ /$1/ [R=302,L]Note that the source URL does not end with a slash, but the destination does (as per your example).Change the302(temporary) redirect to a301(permanent) when you are sure it...
I want to redirect using mod_rewrite all URI's ending with a known name, but the subfolders are not known. Something like this:From:example.com/random1/random2/my-textTo:example.com/my-text/random1andrandom2are not known. I tried.*/.*/^my-text$and many variants but I can't get it to work.Any ideas?UPDATE:Existing .htac...
.htaccess: redirect with not known subfolders
See theRedirect directive's documentation:Then any request beginning with URL-Path will return a redirect request to the client at the location of the target URL. Additional path information beyond the matched URL-Path will be appended to the target URL.Use aRedirectMatchinstead:RedirectMatch 301 ^/$ http:/...
I have a website with a for example (http://example.com). I want any requests for / i.e.http://example.comto be redirected tohttp://example.com/stuff. I added a .htaccess file with the following line:redirect 301 / http://example.com/stuffAny suggestion?
Why am I getting a redirect loop?
find the path of your desidered csv (raw format):csv_url = 'https://raw.githubusercontent.com/owid/covid-19-data/master/public/data/latest/owid-covid-latest.csv'Then read it in python with :df = pd.read_csv(csv_url, error_bad_lines=False) print(df)You can now update your sql db with:df.to_sql('my_SQL_table', con=my_eng...
This question already has answers here:How to download and write a file from Github using Requests(4 answers)Closed7 months ago.I don't know if it was posted before but I could not find it neither on Stackoverflow nor on the rest of the webI'm working on a project where we needa live datasetso we can update our databas...
How to download a file from GitHub using Python [duplicate]
1 To fix your problem: the public key is not available: NO_PUBKEY 7638D0442B90D010 Debian, just try : sudo apt-get install debian-keyring debian-archive-keyring sudo apt-key update sudo apt-get update Or, you should add the below in your Dockerfile: FROM jenkins:1.59...
I'm following this guide for the installation of Docker inside a Jenkins container This is the Dockerfile of the Jenkins container: FROM jenkins:1.596 USER root RUN apt-get update RUN echo "jenkins ALL=NOPASSWD: ALL" >> /etc/sudoers # setup docker repository RUN apt-get install RUN apt-get update RUN echo "deb htt...
GPG error The following signatures couldn't be verified because the public key is not available
Maybe one solution is to exclude all image and CSS files from the rule, like this:Options +FollowSymlinks -MultiViews RewriteEngine On # Add or remove file types in the next line if necessary. RewriteCond %{REQUEST_URI} !\.(css|jpg|png|gif|bmp|js) [NC] RewriteCond %{REQUEST_URI} !underconstruction\.html [NC] RewriteR...
Closed.This question isoff-topic. It is not currently accepting answers.Want to improve this question?Update the questionso it'son-topicfor Stack Overflow.Closed10 years ago.Improve this questionI have been trying to redirect all requests under a domain to an underconstruction folder with the following:RewriteEngine On...
Redirect all requests under a domain to an under construction folder [closed]
WHERE "interface" =~ /^$ifDescr$/lose the brackets around the query in the grafana query when you make the dashboard. That should work. That's how i filter host names anyway, so my full query isSELECT mean("usage_idle") * -1 + 100 FROM "cpu" WHERE "host" =~ /^$Server$/ AND "cpu" = 'cpu-total' AND $timeFilter GROUP BY t...
I'm using grafana to monitor network device. As u can see at screen1 , I got many interfaces for monitor, 28 physical interfaces + many virtual (vlan). Graph show me all interfaces, but I want and opportunity to choose interface from the drop-down list. Then I found that I can solve this problem with "variables". I mak...
Grafana + InfluxDB + telegraf
Turns out the problem was that to use RegLoadKeyW() The loaded hive needs to be somewhere writable. Since the shadow copy is read-only, it failed. When I copied the mounted file outside the shadow copy it worked fine.
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question mo...
RegLoadKey to a hive file from within a Shadow copy [closed]
Check for @Autowired annotation that is left inside the @Component annotated class
Using @Component annotation in Spring Cron, cron is running well, but another configuration is not working, like database connection is not established, loggers are not printing Getting error while login from the web projectBelow is my code@org.springframework.boot.autoconfigure.SpringBootApplication @ComponentScan(bas...
Getting error to connect database after using @Component
If you want to change the history ofmaster, you need togit push -f origin masterin order to make GitHub record the new HEAD for master. (Make sure to warn any collaborator of that change: they need to reset their local master branch to that new HEAD).Pushingdevwasn't enough.origin/HEADreference theHEADof the remote Git...
I have a repo that I've been using with GitHub. Previously, the repo had only 1 branch (i.e. master) and was fully up-to-date with the remote repo, but having done 2 local commits of new experimental work, I decided that what I wanted to do was create a new branch with those 2 commits on a "dev" branch which would stil...
Created new branch from existing commits, now origin and origin/master are out of sync
sonar-scanner(formerlysonar-runner) is useful when you don't have a build automation tool like gradle, maven, ant or jenkins.If you build withgradle, then you only need theorg.sonarqubeplugin.Here is the documentationAnalyzing with SonarQube Scanner for Gradle
I'm in process of setupSonarfor my Android-Kotlin gradle based project. There I setup local system that run./gradlew Sonarqubeand generate report.I come across another tool sonar-runner which need to generate report. I checked sonarqube downloaded folder & that already has some sonar-scanner file & generating report wi...
Relationship between Sonarqube & SonarScanner
1 You seem to be experiencing some sort of critical section problem. But here's the thing. Redis operations are atomic however Laravel does its own checks before calling Redis. The major issue here is that all concurrent requests will all cause a request to be made and th...
I have an API written in Laravel. There is the following code in it: public function getData($cacheKey) { if(Cache::has($cacheKey)) { return Cache::get($cacheKey); } // if cache is empty for the key, get data from external service $dataFromService = $this->makeRequest($cacheKey); $dataMapp...
Laravel cache returns corrupt data (redis driver)
SonarC# started supporting Visual Studio 2017 after version 5.6, I guess you are using older version of the plugin and if you update to the latest, the message will disappear.
I am using Visual Studio 2017 and created Test Project to bind with SonarQube server using SonarLint. When I clicked on project to bind, I am getting below error."Binding solution to SonarQube project: Discovering solution projects Included projects: * TestSonar\TestSonar.csproj Excluded projects: * TestSon...
Failed to install NuGet package 'SonarAnalyzer.CSharp' for project. Message: This package can only be installed on Visual Studio 2015
The .git folder can be safely deleted by anyone; deleting .git will not delete the repository itself. It is merely an indication of Git history for a project that has been pulled down from a repository onto a local machine. As such, the client shouldn't have a .git folder at all, unless they have been working on the p...
I have a private Github repository that I want to now transfer to a client. It looks like one way to do that would be to delete the '.git' folder on their local copy and then have them push the local copy to their own GitHub account or other repository. I don't really like that option because the .git folder would b...
"Transfer" a private GitHub repository to another person / organization
Sounds like you need a CMS, maybe likewordpress. You can schedule an item to publish in the future.
EDIT: I have already set up my website, so using a cms isn't really an option.Is there something that that is "rather" user friendly (as I do plan to use it quite often if there is such a thing) that will basically allow you to schedule a task of say, deleting the text "I am going camping tomorrow" and insert the text ...
Is there a program/application that will easily allow me to update my site frequently?
A cron expression allows certain values per field. For the hour field the values 0-23 are allowed. (Seehttps://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#schedule-syntax)If you want to achieve something that does not run in an interval that can be expressed using the cron expressions you might want to...
I have a kubernetes cronjob object defined as follows:apiVersion: batch/v1 kind: CronJob metadata: name: cloud-backup namespace: test-backup spec: schedule: "0 */50 * * *" .....However, it's running every single day at 8pm which makes no sense to me. Isn't this cron format configured to run once every 50 hours? I...
Kubernetes CronJob run every N hours not working
0 Github allows you to access a repository with different protocols. If a https proxy is your only way outside you should use an https url to access you repository. Just replace the ssh:// with https:// and you should be fine. Share Improve this answer ...
I get this error. Something wrong with the proxy setup, though I can download software updates in eclipse with the same settings, but am not able to push my commits to github.
Tunnel or SSL Forbidden
so a reasonable approach would be to put nginx-ingress into a separate namespace and dont gather logs from that namespace at all:[log_collection_settings.stdout] enabled = true exclude_namespaces = ["kube-system", "nginx-ingress"]you can edit this configmap:name: container-azm-ms-agentconfig n...
I have an AKS (Azure Kubernetes) cluster with a few different namespaces. In one of them I have many different pods, each runs only one container.Azure collects the data and ingest it to Log Analytics.The problem is that in one of the namespaces I'm running nginx-ingress, which creates a lot of sttout logs.I want to s...
Azure kubernetes - disable collecting logs from a specific pod
Firstly:This does not make much sense if you want rewrite/awesomeslash/to/somepage.php:RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$ RewriteRule ^awesomeslash/ /somepage.php [NC,PT] RewriteRule ^([^/\.]*)/?([^/\.]*)/?([^/\.]*)/?$ /templa...
I have the following .htaccess file.RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.mysite\.com$ RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$ RewriteRule ^awesomeslash/ /somepage.php [NC,P...
.htaccess Not Following Rule
Here's some code you could use to get you going:// set user to check $strUser = "username"; $strPassword = "password"; // open $hMail = imap_open ("{mail.yourdomain.com:143/notls}INBOX", "$strUser", "$strPassword"); // get headers $aHeaders = imap_headers( $hMail ); // get message count $objMail = imap_mailboxms...
So I'm trying to figure out how to send an email to an address for example,[email protected]and instead of the e-mail going to there it would be instead sent or forwarded to a script that I create to read the contents of the email and store the contents into a database. Any suggestions on how to do it in PHP?Thanks!
Processing incoming e-mail with PHP Script
I tried pulling etc.pulling should have been enough to solve the issue.But if your local history is correct (git log), and you are the only one pushig to that repository, you could also simply force pushgit push --force -u origin masterThat will override the history on the remote.ShareFollowansweredJun 15, 2020 at 5:47...
The error I am getting:To https://github.com/Git-Username/Repo.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://github.com/user/repo.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remot...
Pushing commit to github repository throwing error
2 You should check Varnish hits with help of Varnishstat. You can also put below code which you can check in browser if it got served from Varnish cache or backend. sub vcl_deliver { if (obj.hits > 0) { set resp.http.X-Cache = "HIT ("+obj.hits+")"; } else { set resp...
I'm newbie to Varnish Cache. I've installed Varnish 4 ( latest version) on Cent OS server successfully and configured perfectly. I'm also getting X-Varnish, Via 1.1 varnish - v4 in Response header. I've found everything working perfectly. If I stop varnish, website stops which seems correct. My question is, eventhough...
Varnish with Magento 1.8.1 Community editon not getting cache results
You don't actually need to copy the data, rather making use of same volume should work. You need to share a named volume between the two containers. Your docker-compose.yaml should be: version: "3" services: nginx-server: image: nginx_server:dev container_name: nginx | | volumes: - .:/r...
Now I am developing a React application. For the deployment I want to use nginx as the web server. I have written a docker-compose file with two services (One for React app and another for nginx webserver). Usually nginx service needs only the 'build' folder from the react project. Now my question is how can I copy th...
How to copy some data from one container to another container by docker-compose.yml
You want to use this... git push remote --delete <branch-name> Although git push remote :branch should have worked. The command says push this branch without a local set, effectively deleting it. Are you sure the name of your remote is remote? Could it be origin? Use git remote -v to list your remotes. Failing that, ...
This question already has answers here: How do I delete a Git branch locally and remotely? (41 answers) Closed 8 years ago. I have removed a branch I have after merging it with the...
Locally deleted branch is not deleted on remote repository [duplicate]
Change your code with this:# redirect phones/tablets to mobile site RewriteCond %{HTTP_USER_AGENT} (android|blackberry|ipad|iphone|ipod|iemobile|opera [NC]mobile|palmos|webos|googlebot-mobile) [NC] RewriteCond %{HTTP_HOST} !mobile\.website\.com$ [NC] RewriteRule ^(?!m/).*$ http://www.mobile.website.com%{REQUEST_URI} [L...
From a phone, if the user tries to accesswebsite.com, they are redirected tomobile.website.com. However,mobile.website.commakes AJAX requests towebsite.com, so I make all requests go throughwebsite.com/m/.... This isn't working:# redirect phones/tablets to mobile site RewriteCond %{HTTP_USER_AGENT} "android|blackberry|...
htaccess RewriteCond to let requests for website.com/m/... stay untouched
Relatively easily.Match anything that does not begin with 'www.' and then redirect to the 'www.' version:RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
Can anyone suggest how I get non www traffic to redirect to the www version of a website using the htaccess file - I know I have one created in my root directory but cannot be sure what to put.. any ideas
htaccess - get all non-www traffic redirected to the www
TheSendMessageBatch - Amazon Simple Queue Servicedocumentation says you can only send up to 10 messages at one time so you will have to write your own logic. Basically split the array in batch of 10 and then send request in a loop. Something like this:const splitArray = require("split-array"); async function sendMessa...
I was thinking with that piece of code they are sending all the messages to my SQS queue, but when using more than 10 values on my array, I always get the error telling that exceed the limit is reached.I can't increase my SQS, so I have to send the messages from 10 to 10.Anyone have a suggestion from the best approach ...
How to use SQS sendMessageBatch() to send more than 10 messages?
In my experience, J2ME switches to chunked encoding if you use OutputStream.flush(). Avoid flush, just write to the OutputStream then close it immediately. I was able to submit a POST to an Apache/Django setup with J2ME just fine. I was getting 411 errors because of using flush(). Once I removed it it worked fine. I d...
We have a web based application in production built using django. It is deployed on nginx proxied with apache which handles the django app via WSGI. OS is Ubuntu. In addition to the web based front-end, we recently developed a J2ME client for uploading files via mobile phone. The J2ME transfers the file with Transfer-...
HTTP 411 error with J2ME -> nginx + apache + django
AWS API Gateway does not offer the functionality that you are looking for but there is a workaround. What you can do is Integrate AWS API gateway with AWS Cloud Front and use AWS Web Application Firewall Rules to limit the API call from a Specific IP address. Check this Guide for implementing the WAF. http://docs.aws...
Does AWS API Gateway allows limiting a number of requests from a single IP? I'm building a public API and would like to prevent it from being abused by establishing a limit on a number of times the API can be called from a single IP address (like 100 requests per minute). Thanks,
AWS API Gateway: limit requests from a single IP
The issue you're seeing is actually a docker issue. Using--insecure-skip-tls-verifyis a valid arg tokubectl, but it only deals with the connecition betweenkubectland the kubernetes API server. The error you're seeing is actually because the docker daemon cannot login to the private registry because the cert it's using ...
I have a private Docker image registry running on a Linux VM (10.78.0.228:5000) and a Kubernetes master running on a different VM running Centos Linux 7.I used the below command to create a POD:kubectl create --insecure-skip-tls-verify -f monitorms-rc.ymlI get this:sample monitorms-mmqhm 0/1 ImagePullBackOff ...
Getting "x509: certificate signed by unknown authority" even with "--insecure-skip-tls-verify" option in Kubernetes
You should use a generatorkubectl run selenium-node-chrome \ --image selenium/node-chrome:latest \ --env="HUB_PORT_4444_TCP_ADDR=selenium-hub" \ --env="HUB_PORT_4444_TCP_PORT=4444" \ --generator=deployment/apps.v1beta1https://v1-17.docs.kubernetes.io/docs/reference/kubectl/conventions/#generators
When I use the kubectl run command instead of creating a deployment it creates a pod/selenium-node-chrome and as a result, I am unable to scale the selenium-node-chrome using the replicas command.PS C:\Users\Test> kubectl run selenium-node-chrome --image selenium/node-chrome:latest --env="HUB_PORT_4444_TCP_ADDR=seleniu...
Run command creates pod instead of deployment on Azure Kubernetes
Putting nginx in the front of your stack not only allows you to route static content requests to your s3 storage but also give you the ability to do things like caching your django requests and lower the hits in your app and database. You can set up fine grain cache policies and have more control of exactly where reque...
I'm building app in django which I want to deploy on aws ec2 server. The app will run on gunicorn, and I want to place static files on s3. So my question is - do I need to use nginx at all?Is there any other benefit of using nginx beside serving static files?Arek
aws, django, unicorn and s3 - do I need nginx then?
You could create a GitHub release with those artifacts.For example (from the action calledGithub Releases)on: push name: Build and release on push jobs: release: name: Release runs-on: ubuntu-latest steps: - name: Release uses: fnkr/github-action-ghr@v1 if: startsWith(github.ref, 're...
Is it possible to allow uesrs to download github artifacts without having a github account?For instance, we publish installers everytime a commit is merged into master of bitcoin-s, but a common problem users have when attempting to obtain the artifact is they have to login to github. There isn't a clear notification s...
Is it possible to allow uesrs to download github artifacts without having a github account
1 We use the following command in AWS ECS powershell -c 'try { if ((iwr -Uri http://localhost:${CONTAINER_PORT}${HEALTHCHECK_PATH} -UseBasicParsing -DisableKeepAlive).StatusCode -eq 200) {return 0} return 1; } catch { return 1 }' We are running windows 2016 and 20H2 contai...
I am working with Docker and I have created a Dockerfile which converts my dotnet application into an image. I can then run this image and everything is working fine. I am using mcr.microsoft.com/dotnet/core/sdk:3.1-nanoserver-1809 AS base. Now, I wanted to add the 'HealthCheck' feature of Docker. In that HealthCheck,...
Docker Healthcheck not running powershell commands?
For some reason Amazon can't deserialize json to a String. You would think String would be as general as input parameter as you can get but rightly or wrongly it's not compatible. To handle JSON you can either use a Map or a custom POJO. public class HelloWorldLambdaHandler { public String handleRequest(Map<String...
I have written following Hello World Lambda which I am executing by uploading on AWS via AWS toolkit for Eclipse. public class HelloWorldLambdaHandler implements RequestHandler<String, String> { public String handleRequest(String input, Context context) { System.out.println("Hello World! executed with inpu...
Error executing "Hello World" for AWS Lambda in Java
Is it possible to enter a container powered by Google Cloud Run? No, the only port you can access the service is $PORT (currently 8080) and only via HTTP/HTTPS requests. You will need to debug the old fashioned way: logging statements to Google Stackdriver - which is already built-in to Cloud Run, just do "logging.i...
Is it possible to enter a container powered by Google Cloud Run? Something in the manner of docker exec -it CONTAINER /bin/bash? I'm facing a bug i can't reproduce running a container based on the very same image neither locally nor using Google Cloud Shell to run that container. I'm not picky regarding whether it c...
Enter a docker container running with Google Cloud Run
To access CodeIgnter via the command line, you want to call theindex.phpfile, not your controller.php /home/mystuff/public_html/index.php scripts release_reviewsDocs:http://ellislab.com/codeigniter/user-guide/general/cli.html
I'm trying to create a cron job on cpanel using this command:/usr/bin/php -q /home/mystuff/public_html/application/controllers/scripts.php scripts release_reviewsMy scripts.php controller is as follows:<?php class Scripts extends CI_Controller { public function __construct() { parent::__construct(); ...
Cron job - Codeigniter - Class 'CI_Controller' not found
Aftergit cloneyou need to enter the cloned repository:cd firesshThen run othergitcommands.You could've cloned with submodules:git clone --recursive git://github.com/mimecuvalo/firessh.gitShareFollowansweredFeb 11, 2020 at 14:46phdphd87.3k1414 gold badges129129 silver badges180180 bronze badges41cd firesshsolved the err...
I am trying to install all these 3 things to make it actually work:https://github.com/MrAlex94/Waterfox(I have installed this but I cant add the firessh as a plugin)https://github.com/mimecuvalo/firessh(after executing in terminal)git clone git://github.com/mimecuvalo/firessh.git git submodule init fatal: not a git rep...
While Installing firessh I get the following ERROR
Thevipecommand from moreutils needs to solve a similar problem and uses this technique:It writes everything from STDIN to a temporary filemy ($fh, $tmp)=tempfile(); print ($fh <STDIN>) || die "write temp: $!"; close STDIN;It redirects STDIN and STDOUT to/dev/ttyopen(STDIN, "</dev/tty") || die "reopen stdin: $!"; open(O...
I have a scriptmyscriptthat collects some information, put them in a temporary file, launches$EDITORon that file and waits for the user to be done. Something similar to what happens withgit commitwhen it opens$EDITORto let you enter a commit message.Basicallymyscriptissalt=$(collect_salt_from_various_sources) password=...
Launching an editor from a pipelined command
You can do something like this withmod_rewrite:RewriteEngine On RewriteCond %{QUERY_STRING} ^view=download$ RewriteRule .*\.pdf$ - [L,T=applicaton/octet-stream]http://httpd.apache.org/docs/current/rewrite/flags.html#flag_tP.S.Depending on your rewrite logic (if you have any) you may need to remove theL,flag.The above ...
I have a PDF section that I want to give users the option to either view the file in their browser, or download it to their computer. I do not want to duplicate the files so have hit upon the idea of using a query string to tell the server the force the file to download, e.g.<a href="/path/to/pdfs/pdf.pdf?view=download...
.htaccess for download of file if query string matches
You can use MVC Action Filter Types. references inhttp://msdn.microsoft.com/en-us/library/dd410209(v=vs.90).aspx
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened,visit the help center.Closed11 years ago.I'm using asp.net MVC3 and I need to sa...
log mvc pipeline [closed]
Check what port your API Server is serving https traffic(controlled by this flag --secure-port int Default: 6443). It may be 6443 instead of 443. Check what is the value of server in your kubeconfig and are you able to connect to your kubernetes via kubectl using that kubeconfig.Another thing to check is whether you h...
I am working on setting up istio in my kubernetes cluster.I downloaded istio-1.4.2 and installed demo profile and did manual sidecar injection.But when I check sidecar pod logs, I am getting the below error.2019-12-26T08:54:17.694727Z error k8s.io/[email protected]+incompatible/tools/cache/reflector.go:98: Failed...
How do we debug networking issues within istio pods?
Unfortunately, it is cached only for that instance of the lambda.Extensions are running inside the same container with the lambda. Therefore, they will not share memory between different instances of the lambda. More specifically, every time that a lambda has a cold start - a fresh process of the extensions is being ex...
I'm trying to improve the cold start performance of a lambda. One of the things that takes time at startup is fetching information from the secrets manager.I've found a few solutions that talk about caching information from secrets manager using lambda extensions.https://docs.aws.amazon.com/prescriptive-guidance/latest...
Are lambda extensions shared across multiple instances of a lambda?
Reorder your rules by keeping redirect rule before WP rules:RewriteEngine On RewriteBase / RewriteCond %{QUERY_STRING} ^name=Farmtoschool$ RewriteRule ^modules\.php$ http://farmtoschoolbc.ca/modules.php?name=Farmtoschool [NC,R=301,L] RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^wp-...
I'm trying to do an .htaccess redirect from /modules.php?name=Farmtoschool to a new URL.I've looked at the other posts here but it doesn't seem to work. (full htaccess below, redirect at the bottom)RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^wp-admin$ ...
.htaccess redirect with query string not working
You're likely going to have to go thru the Github REST API for that information. To git a commit is just a commit, it has no internal concept of a Github pull request. The following script assumes you have curl and jq installed, and that you have set up a personal access token. See Managing Your Personal Access Tokens...
Is it possible to get branch name or PR number of the last merged branch to main, if yes how can we achieve this in github workflow file. Use-case: I am uploading an artifact when a PR is merged to main using a workflow, so while downloading i need to give the workflow and branch name to download it in other PRs. I tr...
Get last merged PR's branch name or PR number
It's not quite clear which side requires params in URL: server or client? Anywway, your server can behave so that the client deals with the same URL and won't need any magic headers that don't exist. ;)If server requires params, you can add that parameter with Apache URL rewrite, if you use Apache:RewriteRule ^style.cs...
Is there a way (an http header) to tell browsers not to distinguish betweenmain.cssandmain.css?someparam=1when performing caching.According tow3c spec:since some applications have traditionally used GETs and HEADs with query URLs (those containing a "?" in the rel_path part) to perform operations with significant side ...
How to instruct browsers to ignore GET parameters when caching a resource
yes we can create a volume with the specific file system in docker.but they didn't expose the json in any of the document.i saw the following hint in the doc and tried creating the json.DriverOpts - A mapping of driver options and values. These options are passed directly to the driver and are driverHere is the working...
Does Docker supports creating volume with specific filesystem ? I can't find any API call for it, but I can see some document which says it can.I am trying this with a curl command:curl -H "Content-Type: application/json" -X POST -d'{ "name":"visadfasfas","scope":"local","driver":local,"type":"tmpfs" }' https://<HOST...
how to create a volume in docker with filesystem?
TZQuery is a class. Therefore it is not safe to pass one across the module boundary unless you use runtime packages. Use a class with DLLs and you actually have two separate types, one in each module. You are correct that interfaces are safe for this but you need to restrict yourself to DLL interop safe types. That i...
I'm trying to figure out a safe way of passing objects from a main app to a DLL (for a plugin system). The idea is to use the main app's TZConnection (database access from Zeos Lib) in the dll's. I'd rather not use Runtime Packages, and DLL must be the way to go (I don't need BPL's need to recompile each time, and hav...
Delphi Interfaces and DLL's
You can introduce temporary step where you use jq to filter out not needed variations like here:jobs: affected-apps: runs-on: ubuntu-latest name: A job to say hello outputs: apps: ${{ steps.step1.outputs.test}} steps: - uses: actions/checkout@v3 - id: step1 run: echo 'test=...
I am using matrix to trigger workflow jobs in github action. Theappsfromaffected-appsoutput gives me the array including all affected app name. There could be a hundred apps returned in this array.But I just want to select a few of them. I tried to useif: ${{ contains(fromJson('["app1", "app2"]'), matrix.app) }}on job ...
How can I skip the whole job for a matrix match in github action?
I would suggest creating a remote repository, and then cloning it to your local machine.Then to create the remote repository, you're going to have to make an API request to theGitHub API, but first, you'll need an access token from GitHub. You can make one of these from their web UI.And then we'll useRequests: HTTP fo...
This question already has answers here:How to create a new repository in an organization with PyGithub(2 answers)Closed4 years ago.I'm new to python. What I'm trying to do is to create a remote git repository on my GitHub account and then be able to clone it locally. I want to do all this in a python program. If it is ...
How do I create a remote git repository on my github account with python or push a local git repo to my github account using python? [duplicate]
In GitHub, when you create an organization and buy extra storage for a repository that uses Git lfs, it's primarily the owner of the organization or repository who pays for the additional storage. Members of the organization, including ones with personal accounts, can collaborate on the repository without needing to pa...
I want to collaborate with one more person who uses a personal account.I want to create an organization and buy extra storage for my project that handles uassets and fbx files with git lfs.My question is, my friend who uses a personal account and doesn't want to pay anything, is he going to be able to join the reposito...
Inviting user with personal account to collaborate on a organization repository
It looks like they're usingAsciiDocand just put the repository on Github.The edit links don't appear to be a special feature of AsciiDoc. They're simple URLs of the formhttps://github.com/<owner>/<repo>/edit/5.x/<path>. Presumably someone regenerates the site after they accept a pull request.This will work with most si...
I was just reading thiselasticsearch link. I found edit option with every heading which was redirecting me to GitHub website. I know git provides wiki option with every account but that is hosted on GitHub only and supports limited features.How can I make documentation like this that is linked to GitHub?
How to create documentation linked with GitHub?
Unfortunately, I do not believe that your chaincode may be on a different network of peers. I tried but when the peer tries to communicate with the chaincode he looks for it on the same network. By cons, I think the orderer may be on another network.
I have a fabric network setup that works through a dockeroverlaynetwork. When I executedocker network inspect fab_overlay_netthe chaincode containers are there along with the peer and orderer containers.My question is whether the chaincode containers should be isolated from the rest of the containers in another network...
What docker network should chaincode containers stay in?
In this question, I guess https://six-wars.github.io/html-resume-template is the saying Site not found GitHub Page which is said "not working". This seems the first time this account using GitHub Pages. As the document of GitHub Pages says, (after you make the first commit of your repository that triggers GitHub Pages...
I've once setup a Github page from a repo I created. Process was go to settings > Github Pages > Source > Select "master branch" > Save And thereafter it goes live. I've cloned a repo for html/css CV https://six-wars.github.io/html-resume-template/ (my clone https://github.com/Six-wars/html-resume-template). Following...
Setting up Github Pages from a forked repo
You have to use AWS ACM API (IAM certificate and ACM certificate are different). Equivalent API is GetCertificate in ACM aws acm get-certificate --certificate-arn arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012 Now, I think you are trying to get the certificate and the chain to use...
This question already has answers here: How to add SSL certificate to AWS EC2 with the help of new AWS Certificate Manager service (4 answers) Closed 6 years ago. I am using AWS an...
How to reference AWS ACM Certificate when using AWS API to get certificate [duplicate]
Thecontainer_cpu_usage_seconds_totalmetric shows cumulative CPU time used by the givencontainersince the start ofcadvisor- seethese docs.This is so calledcounter metric type.If you want obtaining the real CPU usage at the given time, then userate()function. For example, the following command would return the average CP...
I currently have these three PromQL queries:CPU Sum:curl -s -G "http://10.192.248.10:30000/api/v1/query" --data-urlencode "query=sum_over_time(container_cpu_usage_seconds_total{pod='f5ingress-f5ingress-55ff78b955-vqxch', namespace='arka-ingress'}[10m])" | jqCPU Average:curl -s -G "http://10.192.248.10:30000/api/v1/quer...
How to get CPU usage at a specific point in time with PromQL
function firePostMessagesToSubTab() {HerefirePostMessagesToSubTabis the name of the function. Basically the code analysis tool is suggesting that you use an anonymous function or declare the function separately from the setTimeout invocation.Change your code to following and it should pass the rulefunction firePostMess...
const objTimeout = setTimeout( function firePostMessagesToSubTab() { if (boolRemoved) { clearTimeout(objTimeout); } else { soneAsyncMethod.then(function () { setTimeout(firePostMessagesToSubTab, 1000); }); } }, 1000);I have written a recursive setTimeout but our sonar...
Workaround for SonarError for 'Named function expressions should not be used'
Duh, I realized I needed to actually make it a boolean:"coastal": {"BOOL": False}ShareFolloweditedJan 24, 2020 at 11:36Ketouem3,84811 gold badge1919 silver badges2929 bronze badgesansweredFeb 16, 2018 at 20:39Allyl IsocyanateAllyl Isocyanate13.5k1717 gold badges8181 silver badges132132 bronze badges0Add a comment|
I'm trying to put a new entry into a DynamoDB table that has boolean value:const ddb = new AWS.DynamoDB({apiVersion: '2012-10-08'}); ddb.putItem({ "TableName": "states", "Item" : { "name": {"S": "california" }, "coastal": {"BOOL": 1} } })But I'm getting:Expected params.Item['coastal'].BOOL to be a boolean...
How to set a boolean field in Dynamo DB?
Assuming modern operating systems and non-embedded hardware,memcpysimply copies a memory area into another, which has to be in your process' virtual address space and has no knowledge of GPUs or any other hardware.Therefore, the only waymemcpymay work for that purpose is if your GPU drivers mapped some pages of your ad...
I know that this can be done by using cudaMemcpy, but I would like to know if memcpy can do this too.
Can memcpy Cpp function be used to copy data between system memory and gpu memory?
0 I've encountered the same problem and I am currently researching for a solution. I created a backup from CPanel at SiteGround and attempting to move it over to GoDaddy via CPanel restore. Share Improve this answer Follow ...
i have been trying to restore my home directory backup for a while now but i keep getting this error Error: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data it is a .tar.gz file. I don't know what to do. Please help with an answer.
Error: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data cpanel backup restore
For viewing the default upstream repository you can usegit config --edit.This shows you how your git repository is set up.Under the branch you want to check the remote of, there is a line:remote = example. Look for the remote name in that file and you can find out where everything will be sent/pulled from.
How can I see the default remote repository set on my Pycharm? I want to know when I typegit pushwithout specifying the repository name, which of my remote repository is going to be updated, assuming that I have added multiple remote repository with different alias names.
How to determine your default remote git repository?
Provided that the artifact isn't too big, you can use thestashdirective to pass some file(s) between stages in different containers.pipeline { agent none stages { stage('Build Artefact') { agent { docker 'build-agent' } steps { sh 'make' stash in...
I'd like to use a Jenkins declarative pipeline and the agent syntax to build an artefact that I want to then deploy to a side car container, as illustrated in this pseudo-code:pipeline { agent none stages { stage('Build Artefact') { agent { docker 'build-agent' } steps { ...
How to copy an artefact from one agent to another in a Jenkins declarative pipeline?
The key size back then was probably shorter than it is now (currently 250 bytes - and 250 bytes is a pretty huge key name) meaning a sensible key naming convention may not have been possible, so they just used the sensible naming convention and md5'd it.
In thisreddit blog post, the author talks about MD5ing the cache keys and hence the reason why they find it very difficult to scale out.Can someone tell mewhy one would want to md5 cache keys?I didn’t understand the reason even though they explained it as“A few years ago, we decided to md5 all of our cache keys. We d...
Md5 cache keys in Memcache
You have no control over the size of the cache or when objects get cleared (to my knowledge)You cannot set the cache to the SD cardFor small web-service requests theResponseCachewill suffice, and is the standard way of caching the raw response. It is only really when dealing with larger objects that you will need your ...
I'm a bit confused about how to cache data in Android. I've seen many people implementing their own cache (eg, indroidfuproject), but Android seems to have its own caching system withResponseCache.Is there any reason for not using Android cache?What's the standard way to cache URLConnection response (text, data, json.....
Standard method for caching data in Android?
You can create a logstash configuration with input as file. Then use first csv filter. CSV filter should look like this.filter { csv { columns => ["source", "destination", "service", "action", "comment"] separator => ";" } }Next filter will need to be ruby filter.filter { ruby { co...
I am trying to automate/ease a procedure to review firewall rules within ELK (ElasticSearch, Logstash, Kibana). I have some data obtained from a CSV, which is structured like this:Source;Destination;Service;Action;Comment 10.0.0.0/8 172.16.0.0/16 192.168.0.0/24 23.2.20.6;10.0.0.1 10.0.0.2 10.0.0.3;udp:53 tcp:53;accept...
How to parse IP within fields in ELK
1 Eithe rename the repository or clone to a different directory: git clone https://github.com/LautaroMoreira01/tps_laboratorio_ii..git tps_laboratorio_ii # <- No dot at the end Share Follow answer...
$ git clone https://github.com/LautaroMoreira01/tps_laboratorio_ii..git fatal: could not create work tree dir 'tps_laboratorio_ii.': Invalid argument when I try to clone that repository or another with a period at the end of the path, I get an error that does not occur with any other repository. I tried clone from bas...
Error in git trying clone a repo with a dot at the end
I have just overwrite context.xml file in docker using volume path and issue resolved, <?xml version="1.0" encoding="UTF-8"?> <Context antiResourceLocking="true" privileged="true" > <!--<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />--> </Conte...
I am having an issue with accessing rest service with docker as http://192.168.99.100:8080/rest/clients.I am getting HTTP Status 404 – Not Found. While without docker I have access the rest service like http://localhost:8080/rest/clients.Please anybody helps on my issue. here is my docker-compose file, version: '3' ...
JAX-RS Rest service giving "HTTP Status 404 – Not Found" error tomcat while accessing in docker
9 The documentation is pretty poor, though it does contain a few examples. I initially had the impression that it was necessary to create requests (and use the client object) per your solution, but there are alternatives. An example of creating a record can be found in t...
EC2 gives instances a new IP address when they're stopped then restarted, so I need to be able to automatically manage a route53 record set so that I can access things consistently. Sadly the documentation for the route53 portion of the sdk is not nearly as robust as it is for ec2 (understandably) and so I'm a bit stu...
How do I create a route53 record set using the aws sdk for ruby?
You can use one of the gist CLI clients. I can recommend the first one, written in Ruby. Install the gist CLI client: gem install gist For OS X, you can install even from Homebrew: brew install gist Associate it with your account (it doesn’t store your credentials, it just uses them to get an OAuth2 token): gist --...
I'm aware of the major functions that gist and github can offer even not an in-depth control of all commands. Now I need to maintain some historical changes inot my git repository and What I'm lookin for is, Is there any automatic way (command) to push the git changes in some branch as a .diff into a gist file? Let's ...
Send Git commit diffs into gist file
let cookies = "cookiesKey=value;cookiesKey=value...." let config = JWConfig(containtURL:"your url") config.assetOptions = ["AVURLAssetHTTPHeaderFieldsKey":["cookie":cookies]] as above code of cookies, create your cookies string with key and value pair and separated by semicolon and use this as cookie in assetOptions....
As I'm using JWPlayer for HLS Streaming at iOS side. For Streaming we have secure Video url to play content in iOS device. For that we are using cloud front domain. What I want is, our web has integrated cloudfront signed cookie where we need to set cookies for cloudfront domain, Is this we can achieve using JW Playe...
Swift 3: How to set multiple cookies for JWPlayer for HLS Streaming
Well you just need to go to the settings of your cluster and type default/Prometheus-server:80ShareFollowansweredOct 30, 2023 at 19:34Guillermo QuirosGuillermo Quiros41433 silver badges1414 bronze badgesAdd a comment|
Does anybody knows how to configure prometheus metrics in K8Studio?I can not find the service name and the port, the left panel is always black and does not refresh. I also try different namespaces combination, since prometheus installation have many diferent services
K8Studio Prometheus Metric
1 What worked for me was using the -T option with docker-compos exec. This prevents the use of TTY: -T, --no-TTY docker compose exec Disable pseudo-TTY allocation. By default docker compose exec allocates a TTY. This would make it look like the following: cypress test ...
The root of my app project contains my docker-compose and Makefile, plus a folder called apps. Within apps is api and frontend. My Cypress installation is within the frontend folder. I would like to be able to run a command cy.exec('make reset-fixtures') from within Cypress. This returns a "No rule to make target rese...
How to execute a docker-compose command from within a Cypress test
Don't install Python modules withsudo. If you add the--usercommand line option, this will install the package into your home folder (which your user owns) and you won't need to usesudo.If you want this to be default, you can create apip.conffile with the following contents:[install] user = truelocated where it should o...
aI've installed AWS CLI and am trying to use it on Mac OS Sierra. It complains there is is no modulecolorama:$ awsTraceback (most recent call last): File "/usr/local/bin/aws", line 19, in <module> import awscli.clidriver File "/Library/Python/2.7/site-packages/awscli/clidriver.py", line 26, in <module> from...
aws CLI unable to be used due to module colorama
For a system to join a Kubernetes cluster it must have the Kubernetes node agent running on it, called the Kubelet.Once you have installed the Kubelet on the node (how you do that depends on your VM's operating system) you will need toconfigure which API serverit should communicate with.However, with minikube (which is...
I am using docker for mac with kubernetes integrated with it.$kubectl get nodes NAME STATUS ROLES AGE VERSION docker-for-desktop Ready master 13h v1.10.3I have a virtual node created using docker-machine with driver as virtual box (docker-machine create --driver virtualbox vm...
Attaching vm to kubernetes nodes list
For this problem when usingSonarQubeonAzure DevOps Services(VSTS), installing self-hosted agents generally is a better way to solve the problem.To install self-hosted agents on multiple organizations, you can try to set up a shell script that executing the installation command lines in a loop to install a self-hosted a...
As our SonarQube instance was not accessible over internet, I am getting the below error in "Prepare analysis on SonarQube" task during the analysis of a java project.[SQ] API GET '/api/server/version' failed, error was: {"code":"ENOTFOUND","errno":"ENOTFOUND","syscall":"getaddrinfo","hostname":"ABC.XYZ.com","host":"AB...
SonarQube in Azure DevOps wtih Microsoft Hosted Agent
I had this issue as well. This other StackOverflow post fixed it for me. I needed the services: key at the top, with postgres: nested under it. My docker-compose.yml services: postgres: image: postgres:latest environment: POSTGRES_PASSWORD: password1 POSTGRES_USER: postgres POSTGRES_DB: som...
My docker-compose.yml looks like this postgres: container_name: postgres-container-1 image: postgres:latest ports: - "15432:5432" When I try to run docker compose up -d I get following error (root) Additional property postgres is not allowed However when I run docker-compose up -d everything r...
Docker CLI failing to compose with "Additional property postgres is not allowed"
Responding with a past date in theExpiredheader (earlier than theDateheader value) makes no sense and would be a sign of some serious misconfiguration. That being said, clients would treat such response as "already expired" and not cache it. Same applies ifExpiresdate is equal toDateheader value (which is the correct w...
What happens if the origin web server sets the expires value in response header as a time which is passed relatively long ago.For instance, consider current time is Fri, 25 Jan 2013 GMT, and the expire header is set as -->Expires: Thu, 01 Dec 1994 16:00:00 GMTHow will the client respond for the above instance?Any help ...
What happens if the origin web server sets the expires value in response header as a time which is passed relatively long ago?
1 The documentation states: The first user to sign-in and register an account will be automatically placed into the fully privileged Administrators group, permitting server management over the web and over SSH. Subsequent users will be automatically registered as unprivi...
I'm trying to create a docker image of a gerrit instance contening just an admininstator. I have no problem to create gerrit instance but I can't create the admin user. Have you an idea to create this first user ?
Docker first user with docker
Coverage means "code coverage": the amount of code covered by the unit-test cases.As seen inthis issue, each GitHub project can chose to add as a comment to a PR any additional relevant information (like code coverage for instance).Continuous Integration system, like for exampleTravis-CI, canprocess pull requests, and ...
Is it pull request or comment at pull or something else?
"section" at github: what does it mean?
Fetch a copy of the ettore/three20 repository in that exact state with git: # Create a new (empty) repo git clone https://github.com/ettore/three20.git # Enter repo cd three20 # Checkout the commit git checkout 63d03a12a6aac60453c94c12d714965aaca810ae
How do I get these changes from github on my Mac OSX? https://github.com/ettore/three20/commit/63d03a12a6aac60453c94c12d714965aaca810ae
Github get committed changes
I apparently didn't have all the necessary Mylyn dependencies installed. Simply installing the "GitHub Integration" (which included some Mylyn dependencies) wasn't enough.I uninstalled everything related to Mylyn from Eclipse, including the GitHub connector and reinstalled just the base Mylyn package. I then went to Pr...
I cannot find where time spent is in Eclipse Luna with Mylyn.According tohttp://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.mylyn.help.ui%2FMylyn%2FFAQ%2FTask-List.html, it is in the "Personal Planning" tab when looking at an item in Mylyn.However, I see no such tab:(screenshot of an open Mylyn item for me:htt...
Where is 'time spent' shown in Eclipse Mylyn?
this has nothing to do with your code, it has to do with your browser development setup, there is an option somewhere in your development console that is called 'Persist logs' that basically keep old files in the logs for you to compare, if you disable that feature you'll see that there is no load duplication of files,...
I have included all the files just once. I have triple checked it. Here are some screen shots. I noticed that the request headers are different. How do I resolve this issue?<?php require_once("cssheadertop.php");?> <meta property="og:title" content="" /> <meta property="og:description" content="" /> <meta name="descrip...
Why are these CSS files being downloaded twice?
Not a new question here, but looking at your config, make these changes.listen_address: private_ip broadcast_address: public_ip rpc_address: 0.0.0.0Seeds should be public_ip so you're ok there.
I would like to run Cassandra Datastax Enterprise on Amazon EC2 instances using not the node private IP address but Elastic Public IPsMy current configuration looks as follows:/etc/dse/cassandra/cassandra.yaml seed_provider: - class_name: org.apache.cassandra.locator.SimpleSeedProvider parameters: seeds:...
Cassandra Datastax Enterprise using Amazon Elastic IP
1 It happen on device to device I had similar problem. Everything was working fine on my Sony Xperia C(1GB RAM)but it was giving OOM in Xiomi Redmi(2GB RAM). Then I done all sort of painful research on how to load Bitmap efficiently and end up using Glide Library and sin...
I have a 3MB image with resolution 1920*1080, when I try to load this image on a Real Device (441 PPI & 5.5 inch screen : Oneplus2 Device) it works fine. But when I run this code on a emulator device (1GB Ram | 441 PPI density|5.5 inch screen) then i am getting the OutOfMemoryError . I am Loading the image to the Back...
OutOfMemoryError in android emulator devices
Replicas are a sort of backup, and elasticsearch never allocates one on the same node where the original primary shard is. But then there is still the risk of losing data depending on how many shards, replicas and nodes you have in your cluster.I would look at theGatewaymodule, through which you can save the index and ...
It would be interesting if someone could share his best 'hot-backup' strategies forElasticSearch.Also, feel free to share tools and libraries related to this problem and can help.Updated:Thank you @javanna for your response, it's quite complete and provides good direction for further actions.I also did a small research...
Elasticsearch hot-backup strategies
If you want to have just a single process you can run sh -c 'exec myexecutable --host ...' so that it will take over as the single process. Although the "one process per container" generally means that you don't run a process supervisor. It's not that uncommon for one process to start others. To have the command exit ...
I would like to use variable from env-file in docker-compose in entry point: # environment.env HOST=example.com # docker-compose.yml some_service: ... env_file: ['environment.env'] entrypoint: ['myexecutable', '--host', '$HOST'] Is there any way to do that? I found only one solution: # docker-c...
Environment variables from env fiile in entrypoint in docker-compose.yml
It means that object reference is not set to an instance of an object.Here is similar problem:NilReferenceException.Tips to Prevent Nil Reference ExceptionsInitialize variables with valid values.If a variable can be null, then check for nill and handle it appropriatelyUse the ? operator on methods when possible. string...
I'm working on aMutatingAdmissionWebhookmonitoringDeploymentobjects in Go. The webhook is running and receives the request correctly.I am trying to read through the Deployment->Spec->Container->env List.I am able to get the env list, but I haveConfigMapKeyRefdefined for these env vars, which is coming in as nil.When I ...
Not getting ConfigMapKeyRef for env entry in AdmissionController
I'm solving this using a combination of the Choice and Pass states. Given that a state machine at least gets an empty input object, you can check if it has members present using the IsPresent comparison operator in the Choice state. If your variable of desire is not present, you can route to a Pass state to inject a d...
I would like to have a default value for a parameter passed into a step function e.g., "Parameters": { "foo.$": "$.foo" OR "bar" if "$.foo" not specified } is there a way to do this natively with JSONPath or do I have to use a choice + pass state? I'd even settle for using choice/pass if there were a way to not ...
AWS step functions and optional parameters
You must verify the user account trying to run the analysis has write permissions to the cited directory. Until that has been confirmed/corrected, no one can go any further with this.
I have following problem with SonarQube analysis through Bamboo build.[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.1:sonar (default-cli) on project grip: Unable to load component class org.sonar.core.platform.PluginLoader: Unable to load component class org.sonar.core.platform.Pl...
SonarQube - Failed to create working path:
each module need its own tests. Jacoco build each jacoco.exec module after module and cannot go back to a previous one. So you have to set a TestFoo in moduleA.
I have a multi-module project with Gradle(2.2) + JaCoCo + Sonar. I'm using thesonar-runnerplugin, and when I execute the tests, I can see in each module the test report underbuild/jacoco/jacoco.exec. So far so good.The problem is, I have some tests in module A that are testing classes from other module B, and so that J...
JaCoCo configuration when sources and tests classes are in different modules
Your code is correct. Since you allocate using new [], de-allocating with delete [] as you do is required. Also, obviously de-allocating in reverse order - inner arrays first, then outer array - is also required.
I have a dynamically allocated char** array as a private member in one of my classes. The first allocation occurs according to number of words client_interests = new char* [n]; Later each index of the array is allocated according to length of the word + 1 char[i] = new char [strlen(word)+1]; Would this be the proper...
Proper way of deleting a char** array
It is possible usingunlessoperator:item_stock unless item_purchasesResults in a vector consisting of the elements ofitem_stockfor which there are no elements initem_purchaseswith exactly matching label sets. All matching elements in both vectors are dropped.Note that the metrics in question do not have 'exactly matchin...
I am trying to use two metrics (that share some labels, including one that I can use as an UUID) that should describe the same entities, in order to create alerts/dashboard that will alert me one an entity reports in one metric but not the other.For example, for the following metrics:item_purchases{name="item1", count=...
Is there a way to do a "left outer join" like query in PromQL?
So long as you haven't got aSecurityManagerset, you can useRuntime.execto call an executable program. In particular you can run/bin/bash(or whatever path it is to your shell). Note the-coption for shells.As LFSR points out, this is the sort of thing likely to be full of security flaws.
My web page uploads a file. Currently it places that file in a directory which is polled by a cron job. If the file is there, a bash script acts on the file. I hate the fact that I am polling. The upload happens perhaps once a week, but the user wants to see results within minutes from their file, so I end up polli...
Can I execute a shell script from a web page?
There isclaimRoot, you can see the usage in thisexample.kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: cephfs provisioner: ceph.com/cephfs parameters: monitors: 172.24.0.6:6789 adminId: admin adminSecretName: ceph-secret-admin adminSecretNamespace: "kube-system" claimRoot: /pvc-v...
It's working when I use volumes of cephfs . path is /test and user is testapiVersion: v1 kind: Pod metadata: name: cephfs spec: containers: - name: cephfs image: kubernetes/pause volumeMounts: - mountPath: "/mnt/cephfs" name: cephfs volumes: - name: cephfs cephfs: monitors: -...
Cephfs: Dynamic provisioning are not working
After hours of research, I decided to go with git subtree merging. Not git subtree, which is a git contrib tool (talk about jargon overloading) but the strategy Git - Subtree Merging. The reasons behind my decision are as follows: The Web is full of warnings against using git submodule. More importantly, for me, it i...
Consider the following scenario: Remote repo A (master): dir 1 dir 2 file 1 file 2 Remote repo B (branch): dir 1 file 1 What I'd like to do is to keep the common files in the two repos in sync. When I pull, I want to get all changes from Repo B and only changes from the common files from Repo A. Similarl...
How to work with two Git repos, one complete, other partial
Well, after your comment I can say that your friend is wrong. Google bot will never be redirected on the same page (index.php in your case). Of course is not very good that in each page url you have the "index.php" because you are losing important chars which otherwise can be used to put keywords.Said that, your site w...
I made one website xyz.com using php codeigniter framework. This website has modules, so modular extension is used. Now when this website is made live, every link shows index.php. So for this we can use .htaccess for modrewrite command. Till now my knowledge was cool enough. Now when my friend who has good knowledge of...
What .htaccess redirection has effect on Google bot?
There is now way of telling who have cloned your project.But, Github provides basic statistics about visitors and clones in 'Graphs' option on your repository. Here is alink.Also you can see who has forked your project: A number showed on top right corner on your repo present onGithub. Go to Graphs->Members to check ou...
I have my projects ongithub, and they'republic. How would I know that my projects have been cloned, and by whom?
How to check which person clone my project in github
It should let you use the resources for graphics and video, however time-sharing GPU are ideal for workloads that are not using a high amount of the resources all the time.Limitationsfor using Time-Sharing GPU's on GKE'sGKE enforces memory (address space) isolation, performance isolation, and fault isolation between co...
I'm runningnvidia/cuda:11.8.0-base-ubuntu20.04on Google Kubernetes Engine using GPU Timesharing on T4 gpusChecking the driver capabilities I get compute and utility. I was hoping to also get graphics and video. Is this a limitation of Timesharing on GKE?
GKE GPU Timesharing Driver Capabilities
If you don't want the upstream merges you want to git rebase upstream master. You can also do git pull --rebase upstream master. Which will do a fetch before rebase so that you are sure that you are up to date. This will move your commits to after any commits that happened on the upstream repo. And not show the com...
Forking prezto I forked sorin-ionescu/prezto (upstream) from github to my github account (nasenatmer/prezto) (origin), cloned it locally and started configuring it, adding files, while constantly committing and pushing changes back to my github repo. Configuring my local repo Among other things, I modified a prompt th...
How to create a clean theme branch in git which only has one commit (and no pulls from upstream)
1 From this answer, you can move a file from one branch to another with: git checkout otherbranch myfile.txt from the branch where you want the file to end up. In your case, from the hometask_1 branch, you can run: git checkout master .gitignore. Share Improve th...
I have created and pasted a .gitignore file to my master branch, and I want to move it to the hometask_1 branch with the windows 10 command line. I have used the commands below: git checkout master git checkout hometask_1 -- .gitignore After the above commands I am getting the following error: error: pathspec '.gitig...
How to move .gitignore file from one branch to another from commandline
If you have already tracked this file, removing it (and even ignoring it in a.gitignore) before pushing to GitHub willnotremove it from the history of that pushed repository.That means it is important to knowwhyyou do not want that file on GitHub.If it is for security reason, because it includes sensitive information, ...
I have one file that is necessary for my heroku app but that I do not want in my GitHub repository.Is there any way to have a.gitignorethat is only used when pushing to GitHub?Additionally, is there any other way that I can avoid pushing that one file to GitHub?
Separate gitignore files for Heroku and GitHub?