Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
1
I want to set this up so that it will test the code in a pull_request. The pull_requests come from forks of the repository, not branches within the repository.
This part is right, but:
My understanding is that the SHA won't be available in the repo because it only ex... |
I have a self-hosted github runner that launches python script. This python script runs a bash shell script on a different machine, and I think I can pass arguments to either script. Right now, I have set it up to clone the main branch of my repo, or I can pass it an argument to check out a different branch. This w... | Pass checkout info in a github actions script |
1
What I usually do is add all patterns I don't want to track into .gitignore and then run:
git add --all
This will add all the files in your project root BUT the ones which pattern match the patterns in .gitignore
In case you need to untrack files without removing them fr... |
Usually when i'm adding a new file to the repository i just right click on the file name and click commit & push.
But when i'm adding a new package, for some reason its not working.
I tried to "add to index" the package and the file , but still nothing changed.
As you can see, the _dfs package is faded.
| Commit and Push a new package to github |
Can you try adding:--config.file=/etc/prometheus/prometheus.ymli.e.docker run --publish=9090:9090 \
--volume=D:/WORK/MyProject/grafana:/etc/prometheus \
prom/prometheus \
--config.file=/etc/prometheus/prometheus.yml \
--enable-feature=promql-at-modifierExplanation: Once you add flags (e.g.--enable-feature), other f... | On Windows
I successfully run Prometheus from a docker image like this.docker run -p 9090:9090 \
-v D:/WORK/MyProject/grafana:/etc/prometheus \
prom/prometheusTheD:/WORK/MyProject/grafanacontainsprometheus.ymlfile with all configs I need.Now I need to enable @ operator usage so I addedpromql-at-modifiertried to rundock... | Run Prometheus with docker failed when --enable-feature=promql-at-modifier |
Try using the.jsextension for your JavaScript files instead of.jsx.I haven't deployed to GitHub pages before but from the error you shared, that may be the issue. Let me know if it works✨ | I am trying to deploy a React.js/Vite project throughGithubbut I am getting a blank page with the following error: "Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/jsx". Strict MIME type checking is enforced for module scripts per HTML spec." Here is ... | Trying to deploy a project on Github Pages using React/Vite but getting a blank page with an error |
2
Its not as easy as just "caching" a file in perl.
vlc or whatever program needs to interpret the content of the data (in your case the .wav file).
Either you stick with calling an external program and just give it a file to execute or you need to implement the whole sta... |
I would like to manually cache files in Perl, so when playing a sound there is little to no delay.
I wrote a program in Perl, which plays an audio file by doing a system call to VLC. When executing it, I noticed a delay before the audio started playing. The delay is usually between about 1.0 and 1.5 seconds. However... | How to cache files with Perl while playing sound files using vlc? |
You could count this with two shaders.Replace all rgb-values with 1 or 0, depending on how the value exceeds the treshold or not.Reduce the size of the texture step by step with a filter-kernel, which sum up the texels.
Let's suppose your texture is 64x64 sized. First you reduce it to 32x32 and sum up the 4 related tex... | Suppose that you have a 2D GPU texture resource. What's the best way to count the number of texels that are smaller than a certain value using the GPU (using DirectX, either with or without shader)? | counting number of pixels smaller than a certain value with GPU |
Knative needs more capabilities out of the HTTP routing layer than are exposed via the Kubernetes Ingress resource. (Percentage splits and header rewrite are two of the big ones.)Unfortunately, so one has written an adapter from Knative's "KIngress" implementation to thenginxingress. In the future, thegateway API (aka ... | I have an existing kind k8s cluster with a bunch of running services andnginx-ingresssetup and I would like to add knative to it.Is there a way of doing this withnginx-ingress, seems like networking for knative is a bit more complex than a normal service installation. | Installing knative on existing kind cluster |
You've asked how to keep multiple local repository clones up-to-date without having to pull each instance individually. Carl-Eric has addressed how to efficiently store multiple repositories on your filesystem. Here are some suggestions on keeping them up-to-date:
One solution would be to set up a post-merge hook in ... |
I have a WordPress parent theme and multiple WordPress website (all on the same filesystem) that use it. So how do I make sure with Git that each instance of the parent theme is synced with the version on Github? Without having to pull each instance individually.
| How to pull from one Github repository to multiple local repositories? |
Use should set thedisplay_github,github_user,github_repo, andgithub_versionvariablesinsidethehtml_contextdict inconf.py. Forexample:html_context = {
'display_github': True,
'github_user': 'buskill',
'github_repo': 'buskill-app',
'github_version': 'master/docs/',
}These variables are intended to be set directly ... | How can I replace theView page sourcehyperlink at the top of my docs pages with aEdit on GitHublink when building a Sphinx site using thesphinx_rtd_themetheme?I'm manually building areadthedocs.io-like siteusing GitHub Pages, but the link in the top-right of all my doc's pages still says "View page source" instead of "... | How do I replace "View page source" with "Edit on GitHub" links in sphinx_rtd_theme? |
dig +tracefollows the whole chain from the beginning - it queries root servers, then .info servers then your namservers. Thus it avoids any caching resolvers, and also avoids propagation issues.dig +notrace(the default) queries your default DNS resolver (on Linux, whatever specified in/etc/resolv.conf).There's some pro... | Here is the main problem:dig maktabkhooneh.info +traceworks perfectly fine and returns the right answer.dig maktabkhooneh.info(without +trace) returns:; <<>> DiG 9.8.1-P1 <<>> maktabkhooneh.info
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 58716
;; flags: qr rd ra; QUE... | dig returns SERVFAIL but +trace works |
Tried removing the extra space between property tags in mybuild.xmlfile. Working fine. Didn't know a single space can be a huge problem .ShareFolloweditedMar 5, 2019 at 5:44answeredMar 4, 2019 at 13:38Tarun MukherjeeTarun Mukherjee1111 silver badge55 bronze badgesAdd a comment| | I am trying to basically build my ant project and check the results in sonarqube .When I am trying to run the ant sonar command at my root directory , this error is thrown . | Why am I getting an error while running ant sonar command in cmd? |
0
I would suggest using spaces over tabs going forward. You can set your editor to input 2, 4 or how many spaces each time you hit Tab.I believe this will save you much headache, because a space is always exactly the same width, whereas tab width can always change dependi... |
When I push my code into github repo and display random files, they contain some strange whitespaces, e.g.:
// 'auth' => MPATH.'auth', // Authentication module
// 'database' => MPATH.'database', // Database access
In my IDE the code is perfectly lined up, on github - it behaves l... | Pushing to github - strange white spaces |
you get 302 when performing URL redirection, any ELB Health check will look for success code 200 for the health check to pass. In ALB, this can be configured under health check in the ELB console.
To modify the health check settings of a target group using the console
Open the Amazon EC2 console at https://console.a... |
Hi i created ALB listener 443 and target group instance on 7070 port (not-ssl)
I can access instanceip:7070 without problem , but with https://elb-dns-name not able to access.. instance health check also failed with 302 code
ALB listener port https and instance is http protocol ,
when i browse with https://dns-name ... | Aws-elb health check failing at 302 code |
As Mark B pointed out in the comments above using a Web Application Firewall (WAF & Shield) solves our issue.
We had a normal EC2 ELB (Elastic Load Balancer) and swapped that out for the new Application Load Balancer (ALB) that is a requirement for the WAF.
Setting up WAF is fairly easy, first create a Web ACL for blo... |
I have an AWS Elastic Beanstalk (Node.js) setup behind an Elastic Load Balancer and alerts setup for the load balancer.
Each night I get tons of alerts for:
Environment health has transitioned from Ok to Severe. 100.0 % of the requests are erroring with HTTP 4xx.
This is due to trawls of different PHP hackz and phpmya... | Block HEAD requests to AWS Elastic Beanstalk and Elastic Load Balancer |
Had the same error while usingSourceTreeconnected toBitBucketrepository.When navigating to repository url onbitbucket.orgthe warning message appeared:This repository is in read-only mode. You caught us doing some quick maintenance.After around 2 hours repository was accessible again.You can check status and uptime of b... | I've been facing problems accessing my git repository lately. It worked perfectly fine earlier but now I cannot run any command on CLI. I can however, access the corresponding Web Page, Could someone help me how to resolve this issue? | git pull error "The requested URL returned error: 503 while accessing" |
Can you be specific on "sometimes", how often you are trying to call URLs? Were you able to get the results sometimes?I am assuming servers are up and running.
Whenever you do a requests.get, a tcp connection is created and when you repeatedly call requests.get, it will create multiple tcp connections, which degrades t... | This is the first time I am trying Python on Windows. I want to download a png file from the web. Here is the Python3 program:import requests
url_1 = 'https://ichef.bbci.co.uk/news/660/cpsprodpb/9FB3/production/_105038804_titled-624-nc.png'
url_2 = 'https://randomuser.me/img/creator_keith.png'
res = requests.get(url_... | HTTP request using Python on Windows sometimes gives WinError 100601 |
By default, the @ExceptionHandler annotation can only handle regular exception types and cannot handle Error types such as OutOfMemoryError. This is because Error types generally indicate serious issues that cannot be recovered by catching and handling them.
You can use monitoring tools like VisualVM or JConsole to mon... | I want to log some extra details like available memory when my spring boot application getsjava.lang.OutOfMemoryError: Java heap spaceI tried using the following controlleradvice class and ran the projcet after limiting available memory. But this method is never called, the application gets OutOfMemoryError and crashes... | java Spring boot - Use @controlleradvice to log outOfMemoryError |
You must clear your cache. My first visit to"minegamer5570.github.io/Filehub/index.html"has no redirect | This is my 2nd question so far. I am making a file share site on git hub with a basic pages domain. To get to it, i type:minegamer5570.github.io/Filehub/, It goes to the home page. I just started using GitHub pages when i inserted a custom domain and later realise you have to buy the domain to use it. So i went back to... | GitHub pages site re-directing to custom domain instead of index.html |
Based on the comment ofy.bedrov, I looked at idea.log, and found several instances of the same SSL certificate related exception:sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested targetTh... | I'm using Intellij IDEA Ultimate 2016.3.4.File / Settings / Plugins / Install JetBrains plugin... opens up a window named Browse JetBrains Plugins, but the main area of the window, which should AFAIK list the plugins available onthe JetBrains repository, only displays a"Nothing to show"message.I am behind a corporate p... | IntelliJ IDEA Browse JetBrains Plugins dialog box is empty |
The url you specified is the following:curl.exe -u "78c2b8628934a6cdc8ae80f5acadaaaafdfsa96" : "https://sonarurl/api/qualitygates/project_status?projectKey=MarUiSonarQube3"The way you've specified the token value looks slightly off. Try changing it to the following (moving the colon to right after the token):curl.exe ... | I am trying to get the status of SonarQube quality gate status using below querycurl.exe -u "78c2b8628934a6cdc8ae80f5acadaaaafdfsa96" : "https://sonarurl/api/qualitygates/project_status?projectKey=MarUiSonarQube3"then system prompted for password, after that I got below error:Did I miss something?<!DOCTYPE html PUBLIC ... | SonarQube quality gate status fetching issue |
Usedocker save -o filename.tar <repo>:<tag>The commanddocker save <image id>removesthe repository and tag names.To solve this, usedocker save <repo>:<tag>it will keep the repository and tag name in the saved file. For example:docker save -o ubutu-18.04.tar ubuntu:18.04 | I'm using Docker 1.12.6.I have pulled an image from the Docker registry.
I have exported the images as tar files using thedocker savecommand.I removed the original image and container and loaded the exported image usingdocker load -i myImage.tar.Now, when runningdocker imagesI notice my image have lost its repository/t... | Docker save/load lose original image repository/name/tag |
I just had to select theTime Seriesformat on the Grafana query editor and then theValue field namedrop-down is properly populated in theTransformtab.Now I’m able to choosepodfor that drop-down and the platform values are rendered as column names as expected with their respective values for each pod. | I have some metrics from a Prometheus data-source like this (the real data contains many more label combinations):status{pod = "A", platform = "X",} 1
status{pod = "C", platform = "X",} 3
status{pod = "A", platform = "Y",} 5
status{pod = "A", platform = "P",} 8
status{pod = "C", platform = "Y",} 7
status{pod = "B", pla... | Table-like visualization with label values as row values and column names |
You doing everything correct, that's just how EF works.You can use.AsNoTracking()for you purposes:var dbOrganisation = repository.DbOrganisation.AsNoTracking().FirstOrDefault(c => c.Id == id);DbExtensions.AsNoTracking Method: Returns a new query where the entities returned will not be cached in the DbContext or ObjectC... | I have a strange issue, which I haven't experienced before. I use Entity Framework to retrieve my records.I have the following call:var dbOrganisation = repository.DbOrganisation.FirstOrDefault(c => c.Id == id);I expect no caching of this call. So when I make this call, I expect it to query the database and retrieve th... | FirstOrDefault call in entity framework is cached but database is changed |
4
I know this question has been resolved in the question comments themselves but I'm place this answer here to help others who may run into this problem and may have alternative problems.
I recently ran into this problem as well. I was using a specific IAM User to send em... |
I am trying to use the Amazon SES driver with Laravel 5.2 My access keys are setup and the sdk installed.
When I go to send an email I get this error:
SesException in WrappedHttpHandler.php line 159:
Error executing "SendRawEmail" on "https://email.us-west-2.amazonaws.com"; AWS HTTP error: Client error: `POST https://... | AWS SES 400 Bad Request response with Laravel 5.2 |
Thanks to Mohamed for sharing and confirming.Summary.Issue description:Azure pipeline is running old commit version files instead of latest commit.Answer:According to Mohamed's description: It worked perfectly after clearing the cache of the pipeline. | I'm trying to run a pipeline with Azure DevOps, I have a problem that it's not running the tests of the current version in the master branch. It's running older files, files from the old commit. I don't know why this is happening. The old files shouldn't be run because they don't exist anymore in the master branch afte... | Azure pipeline is running old version files (before last commit) |
Notice on thehelm tips and tricks pagethey mention thatsprigfunctions have been added, one of which is until, which can be seen in actionhereor in my case:{{- define "mongodb_replicaset_url" -}}
{{- printf "mongodb://" -}}
{{- range $mongocount, $e := until (.Values.mongodbReplicaCount|int) -}}
{{- printf "%s-m... | Closed. This question isopinion-based. It is not currently accepting answers.Want to improve this question?Update the question so it can be answered with facts and citations byediting this post.Closed6 years ago.Improve this questionI am trying to loop for a count in a kubernetes helm chart like this:reaction.mongo_url... | loop in go helm chart templating [closed] |
One possible method is to treat your Docker container as a remote host and use remote debugging: https://www.jetbrains.com/pycharm/help/remote-debugging.html
|
My app is running inside a docker image (My development team never install software in their machines, only the docker images have the dependencies).
I Need to debug something using pycharm debugger, how do I connect pycharm's debugger to the docker image's python?
| Debug django app running inside docker image, using pycharm debugger |
So the question is about running Jobs and not deployments as in the KubernetesDeploymentsabstraction that creates aReplicaSetbut more like KubernetesJobsAJobis created withkubectl runwhen you specify the--restart=OnFailureoption. These jobs are not cleaned up by the cluster unless you delete them manually withkubectl ... | I can delete a deployment with the kubectl cli, but is there a way to make my deployment auto-destroy itself once it has finished? For my situation, we are kicking off a long-running process in a Docker container on AWS EKS. When I check the status, it is 'running', and then sometime later the status is 'completed'. So... | Can you auto destroy a kubernetes pod deployment? |
Did you install your key at GitHub? Have you read help section there?https://help.github.com/articles/reviewing-your-ssh-keys/https://github.com/settings/keysYou can listyour own keys as saved at GitHubby:curl https://github.com/<username>.keysHave you checked that one of the keys is a match to one of your keys? Compar... | ERROR: Permission to durrantm/linker.gitdeniedto kevinzen.
fatal: The remote end hung up unexpectedlyI've tried a lot of things to change/set my identity and get rid of that 'kevinzen'Update - final resolution was that I had added my public key... but... I had missed a few characters so it was invalid. Pasting in th... | git push origin master gives error permission denied (github) |
If the files are relatively smaller, you could just directly load the second file on to the first. SeeMerging two files togetheryq '.a.b += load("toadd.yaml")' sample.yamlTested onmikefarah/yqversion 4.25.1To solve the redundancy requirement, do auniqueoperation before forming the array again.yq 'load("toadd.yaml") as ... | I havesample.yamlfile that looks like the following:a:
b:
- "x"
- "y"
- "z"and I have another file calledtoadd.yamlthat contains the following- "first to add"
- "second to add"I want to modifysample.yamlfile so that it looks like:a:
b:
- "x
- "y"
- "z"
- "first to add"
- "second to a... | Adding multiple lines to yaml file based on key |
you need to commit the code first to the repository:git commit -m "message about the commit"and then you can do the first timegit push origin masterafter the firstgit push origin masteryou just can dogit add .
git commit -m "message"
git pushAnd check your'e.gitignorefile, if there are any folders/files to be ignored | I am making a Django Project usign Python 3.5I have completed my project and I am pushing it toGithubbut the src folder which contains all my main code is just not pushed what should I do ?All that I did is went to my Major Project Directory and typed them-->git init
git add .
git remote add origin[email protected]:vai... | Git not pushing all subfolders or subdirectories |
The solution was to disable IOMMU. On our server, in the BIOS settings
/Advanced/AMD CBS/NBIO Common Options/IOMMU -> IOMMU - Disabled
See the PyTorch issues thread for more information.
|
I am on a workstation with 4 A6000 GPUs. Moving a Torch tensor from one GPU to another GPU corrupts the data, silently!!!
See the simple example below.
x
>tensor([1], device='cuda:0')
x.to(1)
>tensor([1], device='cuda:1')
x.to(2)
>tensor([0], device='cuda:2')
x.to(3)
>tensor([0], device='cuda:3')
Any ideas what is... | Pytorch silent data corruption |
I know nothing about ruby, so this is something of a guess.. but the based on my expertise working directly with the REST API and aquick search of the SDK docsfor a specific string I had in mind, I think you are looking for something like this:bucketlink = s3.bucket(ENV['S3_BUCKET_NAME']).object(asset.uploaded_file.pat... | I'm attempting to access files on my S3 server via my rails app. Currently the app is able to create apresigned_urlthrough the aws-sdk v2 gem and then redirect to display the file (I've mostly been using images as the file). This all works very well but rather than simply displaying the file in the browser, I would R... | Triggering download of S3 file with presigned_url |
It looks like, support for windows is not fully implemented in cro yet. But it seems to be planned for future releases according to theroadmap. At least one of the cro dependencies has also an issue when used with windowsIO::Path::ChildSecure.As a workaround at the moment you can try to use thecacert.pemfrom the curl p... | I just installed perl6 on windows server and windows 7.I want to port a script which is already running on openbsd to a windows machine.I tested this code:my $resp = await Cro::HTTP::Client.get('https://www.perl6.org/');And I'll get is this on both Windows machines:C:\Users\Matthias\CommaProjects\testing>perl6 cro.pl6
... | Problem with Raku and SSL on Windows Machine |
Because, someone has more one pull request, each pull request has own ID. How can I download correct version which corresponds to pull request IDIt is better to clone the original repo, and import thePR branch based on its IDgit clone https://github.com/BVLC/caffe
cd caffe
git remote add christianpayer https://github.c... | I found a source code in github. It has some pull request which indicates the changing code. I would like to download/clone one of them to my PC. Its pull request id is 3983 at the addresshttps://github.com/BVLC/caffe/pull/3983Thank all | How to clone/download code from a pull request |
So the problem was with forwarding of cookies, especially theXSRF_TOKENcookie. Cookies aren't forwarded by default through the cloudfront, you have to set up a whitelist to do that. Just edit the cloudfront distribution it's in Behaviours section. Another cookies to consider forwarding arelaravel_sessionif you use cook... | Alright hello, I have deployed my Laravel app on AWS ELB and I set up Cloudfront distribution for my app. Now I am facing CSRF Token mismatch. I know that this error can be caused by multiple config values that may be wrong. Now I have managed to fix this issue by myself in the past, but it was a long time ago and I do... | AWS Cloudfront causing CSRF Token Mismatch Exception |
Lots of people go these emails yesterday. A few have opened up tickets for clarification, and I suspect there will be a followup email in the near future:https://www.reddit.com/r/aws/comments/7ndvli/anybody_get_spurious_aws_budgets_alarms_early_on/ShareFollowansweredJan 1, 2018 at 15:30E.J. BrennanE.J. Brennan46.2k88 g... | AWS sent this email:Basically it says that i am using 1 cloudwatch alarm, and the forecasted is 31.
The fact is that currently i am not using any AWS services, in fact if i go to cloudwatch of each region this is the output:What else should I check?
Note the billing is at 0$ of course | AWS email "You are approaching your AWS Free Tier limit" but not |
You could use PowerShell'sforeach($request in Get-ChildItem -Path "c:\" -Filer "*.csr"){ & certutil -dump $_; }to list all *.csr-files andcertutil.exe -dumpto process/view them. | I work as a technician for a school in Southern Ohio and recently one of our CA's expired bricking the wireless. I am looking for any possible way to compile a list of all .csr files within Win Server 2019. The previous technical administrator left a mess for us to clean up so we can't use the locate command and none o... | Locating a .CSR in Windows Server 2019 |
Yes that is correct.May want to use /bin/mv if mv doesnt work.Also the directories must exist.ShareFollowansweredMar 28, 2017 at 19:29Mohammad CMohammad C1,33111 gold badge88 silver badges1212 bronze badges2What's the behavior in the different syntax?–thismethodMar 28, 2017 at 19:321Does the exact same thing. It just t... | I'm currently using this to delete files from a specific folder.25 * * * * /bin/rm -rf /var/www/website/current/integration/export/*I want it to continue to be at the same time as well but instead of deleting them i want to migrate them to theexport_completedfolder. So should i just use the syntax below and that's it?2... | Move (mv) files with crontab |
Edit: GitBook has changed significantly since I first wrote this answer. PDF support has been dropped, and the CLI toolchain has been abandoned in favour of a proprietary service:
As the efforts of the GitBook team are focused on the GitBook.com platform, the CLI is no longer under active development.
In mid-2019 md... |
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
... | Using github to write a book [closed] |
There are multiple ways to do this.Using interceptors of your persistence API framework. For eg JPA or Hibernate framework provides facade around your entity operations which runs after DML operations in database.Event Listeners: You should be able to create event listeners inside your persistence framework which will ... | I have an windows service which processes input from xml files. I need to insert new records and update the existing records every time I get a new file. I now need to implement insert\update history every time after an operation has occurred. I am required to maintain this in a separate table by displaying old value ... | Insert\Update - object values history maintenance in ObjectContext |
The way you describe it, you probably still want those items to be accessible so that pages referencing those files will still load. You just don't want Apache to list out the files when navigating to that folder.Apache calls these pages "directory indexes". You can turn it off for a specific folder (and sub folders) b... | I want to block the direct access to directories in the www folder of my wamp server so that no one can directly access the files which are residing there.
Example:
There is a folder in www named "folder". This folder contains a file "page.php" and several images and css files. There is no index file in this folder. N... | how to block access to directories in wamp |
You can now easily inject secrets from SSM or Secrets Manager using the secrets in the containerDefinitions of a task definition. With this solution, you don't have to run/manage your custom scripts to fetch your secrets anymore.
It looks like this:
{
"containerDefinitions": [{
"secrets": [{
"n... |
I'm looking for a way to inject secrets/certificates into Amazon ECS containers. In my case, it's a simple nginx container.
I've been following this post, using AWS Parameter Store:
https://aws.amazon.com/blogs/compute/managing-secrets-for-amazon-ecs-applications-using-parameter-store-and-iam-roles-for-tasks/
Here's t... | Amazon ECS - Permission denied when using IAM role on Docker entrypoint |
NGINX supports also somewhat superior Brotli compression (aside from gzip), via3rd party module.
So having all compression done in NGINX makes more sense.TTFB should not be affected if you keep both (NGINX will figure out that the response is already compressed). But for that same reason (NGINX receiving an already com... | I have an app running on nodeJS/express and also using nginx. If I compress the served files on both systems, I suppose that slows the server response time. Therefore, when combining nginx with expressJS, do you usecompression in expressorcompression in nginx? Or it simply doesn't matter!?I know it may be opinion based... | When combining nginx with expressJS, shall I use compression in express or nginx? |
Themaximum number of valuesthat can be emitted from a script piloting a runtime field is 100 and that limit is not configurable for now. That check is made invarious placesand cannot be bypassed.What you need to do is to modify your script in order to emit less values and not cross the hard limit of 100.ShareFollowansw... | Getting error while loading logs in Kibana dashboard.
"index runtime field is emitting 101 values while the maximum number of values allowed is 100"Stack used:Telegraf to send application logs to ElasticsearchElasticsearch (Ingest pipeline to format logs)
KibanaIngest pipeline code[
{
"remove": {
"field": [... | index runtime field is emitting 101 values while the maximum number of values allowed is 100 |
Not all emoji sequences are glued together with ZWJ. Most notably, people and their skin tone are simply combined without any filler.Unicode maintainsa list of all code points/combinationsit considers an emoji. Theemoji-data.txtfile are all single-cp emojis.emoji-zwj-sequences.txtare all sequences featuring at least on... | I'm attempting to load emojis fromthe GitHub APIand convert the code point(s) to a string in JavaScript. This works fine for emoji comprised of a singe code point but fails for those comprised of multiple points, egfamily_woman_woman_girl_girl. I'm usingzero width joiner (zwj)to concatenate the characters.const list = ... | Translate emoji code points to string in JavaScript |
You should rather consider using a middleware likeRack::Attack. As it's lower in app stack it will filter out malicious request earlier and faster than Rails.Rack middleware for blocking & throttling abusive requestsRack::Attack is a rack middleware to protect your web app from bad
clients. It allows whitelisting, bl... | I have rails3 + nginx stack.Several days ago it was ddos attack with lots of GET requests similar to:GET /?aaa2=bbbbbbb&ccc=1234212
GET /?aaa1=bbbbbbb&ccc=4324233First of all I added to application controller rule:before_filter :ddos_check
def ddos_check
params.each do |param|
if (!param[1].nil? && (param[1].is_a... | Ruby on rails with nginx ddos protection |
After a few mental breakdowns I figured out that I can do what I want using a multiprocessing.Queue. To get it into the objective function I need to define it as a lambda function or as a class (I guess partial also works). E.g.
from contextlib import contextmanager
import multiprocessing
N_GPUS = 2
class GpuQueue:
... |
I am trying to use optuna for searching hyper parameter spaces.
In one particular scenario I train a model on a machine with a few GPUs.
The model and batch size allows me to run 1 training per 1 GPU.
So, ideally I would like to let optuna spread all trials across the available GPUs
so that there is always 1 trial run... | Is there a way to pass arguments to multiple jobs in optuna? |
I think your question stems from some confusion between implementing the Drop trait, and variables being dropped when they go out of scope.When a variable goes out of scope it is dropped (unless it is uninitialized) meaning its destructor is called and its memory can be reused after the destructor has finished. If this... | Do user-defined rust types get an automatic drop implementation for them, if they have a field or variant that might contain an item that needs to be dropped?Consider a struct as follows:struct Guard<T> {
pointer: Box<T>,
locked: bool
}Is this struct going to automatically have drop implemented for it? How about if... | When do user-defined rust types implement drop? |
Shell is responsible for expanding variables, but only variable in double quotes will be expanded.Your error comes from wrong\before$COLOR, in fact it did no meaning for you to get the value from shell, the correct way is next:RUN ["sh", "-c", "echo $COLOR; sed -i -e \"s/red/$COLOR/g\" /var/www/localhost/htdocs/index.h... | I'm building a docker image based on Alpine.FROM alpine
RUN apk update \
&& apk add lighttpd \
&& rm -rf /var/cache/apk/*
ENV COLOR red
COPY ./index.html /var/www/localhost/htdocs
RUN /bin/ash -c 'echo abcd'
#working
RUN /bin/ash -c "echo $COLOR; sed -i -e 's/red/\$COLOR/g' /var/www/localhost/htdocs/index.h... | Docker RUN command in exec form not working |
It seems like you need to use theset-outputcommandI think it would be something like- name: Get current prefix
id: branch-prefix
run: |
prefix=$(echo $GITHUB_REF | sed -E 's/^refs\/heads\/(.*)\/.*/\1/')
echo "::set-output name=prefix::$prefix"And getting it with${{ steps.branch-prefix.output.pre... | This question already has answers here:How do I get the output of a specific step in GitHub Actions?(5 answers)Closed2 years ago.So I have issue because I want to store value of my branch prefix as id but I stumbled across... how to call it in other step?
I have something like this, so far I triedsteps.branch-prefix.ou... | Github Actions steps id, how to call stdout of it? [duplicate] |
0
Firstly talking about the issue that you've pointed out yourself, this is identified as an issue that can't be fixed for Windows.
Please try downgrading to version 1.12.x so that these warnings do not pop-up anymore. This solution is found working for most of us.
level-in... |
So we followed the Docker get started tutorial
(https://docs.docker.com/get-started/part2/). The build works, the command
docker run -p 4000:80 friendlyhello
works but when we go to http://localhost:4000, nothing is reached. We just followed the tutorial step by step but don't see anything.
Yes we also went to local... | Docker run does not deploy |
You can try this wayimport requests
from urllib3.exceptions import InsecureRequestWarning
from urllib3 import disable_warnings
disable_warnings(InsecureRequestWarning)
page = requests.get('http://facebook.com', verify=False)
print(page.content) | I am attempting to scrape text off of websites, and I am using the requests module to do so.With the given code (Facebook as an example here)requests.get('http://facebook.com')I receive back the following error:SSLError: HTTPSConnectionPool(host='facebook.com', port=443): Max retries exceeded with url: / (Caused by SSL... | SSLError: max retries exceeded with url error? How to fix this? |
0
I'm unable to reproduce your issue:
$ docker-compose up -d
Building foo
...
Successfully built 985c899d39fc
Successfully tagged init-issue_foo:latest
WARNING: Image for service foo was built beca... |
I want my dockerized process to handle termination signals correctly, so I am using init:true. I am using the following code in my docker-compose.yml file:
version: '3.7'
services:
foo:
build:
context: ./foo
init: true
However, the signal is not being received by my process.
When I run my process ou... | init: true does not forward signals |
You'll want something like:asPercent(sumSeries(aaa.bbb.*.ccc), timeShift(sumSeries(aaa.bbb.*.ccc), "1mon")) | Given a set of seriesaaa.bbb.*.ccc. I need to sum up all series, and show a single value - the percentage increase of LAST value compared to the last available value 1 month ago. In other words:(last_now - last_1m_ago) / last_1m_ago. I know I can "Override relative time" with "1M" value, but single number calculation ... | Grafana: Calculating single value growth percentage from sum(series) |
The reason is simply because the Amazon Elasticsearch Service is a kind of restricted environment where you don't have access to the full range of services and endpoints provided by a barebone install of Elasticsearch.You can check thelist of endpointsthat you're allowed to use on the Amazon Elasticsearch Service and_r... | I've set my AWS Elasticsearch instance so that anyone can do anything (create, delete, search, etc.) to it.These are my permissions (replace $myARN with my Elasticsearch ARN):{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "es... | Not allowed to reindex Elasticsearch? |
This issue has been fixed in commita49b8f61afbf47b5f7976d0a759cb0efcd6c5bce.For now you cannot download jar with this fix, but you can download sources and build custom version:fetch sources (bygit clone https://github.com/SonarQubeCommunity/sonar-pdf-report.gitordownload zip)execute maven commandmvn clean installcopy ... | I am using Sonar 4.5.1 and sonar-pdfreport-plugin-1.4 to run the build. PDF report is not getting generated an is showing below message : Internal error: Can't retrieve project info. Parent project node is empty. Authentication?.
I saw a bug posted for this (https://jira.sonarsource.com/browse/SONARPLUGINS-3854) but w... | sonar-pdfreport-plugin-1.4 with Sonar 4.5.1 |
At the moment it is not possible to run pytorch on am ARM-GPU:
Github Issue
PyTorch Forum
I think the differences in speed result out of the differnten cpu's!
|
Anyone tried to run object detection or crnn model on Android? I tried to run crnn model (serialized pytorch) but it takes 1s on Huawei P30 lite and 5s on Samsung J4 Core.
Huawei P30 lite
CPU : octa core processor
GPU : Mali-G51 MP4
Samsung J4
CPU : quad core
GPU : Adreno 308
GPU's in the android device ... | How to run Neural Network model on Android taking advantage of GPU? |
As you said it’s up to each individual controller but all of them do that I know of. | I'm reading through:https://github.com/kubernetes/ingress-nginx/issues/8https://github.com/kubernetes/kubernetes/issues/41881But I can't seem to determine a conclusive answer. Does Kubernetes support wildcard domains in it's ingress or not? If not, what are the possible workaround approaches?At least for V1.18 it seems... | Does Kubernetes ingress support wildcard domains? |
git checkout yourbranch
git branch -f master yourbranch
git checkout masterIfyourbranchis not a direct descendant ofmasterthis will require a forced update of the branch and might result in problems for other users who have cloned that repository (essentially it's history rewriting). | I got myself into a right tailspin this morning and had to create a branch to revert to my last commit in. Now the master branch is a mess and the only thing i'm interested in is this new branch with the revert. How can i force master to be the same as the reverted branch? | git mess -overwrite master with branch? |
I am writing a function that will provide you the status of OSX firewall :)-(BOOL)getFirewallStatus{
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSSystemDomainMask, YES);
NSString *path = [paths objectAtIndex:0];
path = [NSString stringWithFormat:@"%@/%@",path,@"Preferences/... | My objective-c app needs to be aware if the firewall in OSX is running, so it can tell the user to turn it off or create a new rule.Also, is it possible to create rules directly from my app so users never need to handle networking issues?John | Objective-C: Check Firewall status in OSX? |
I can definitely reproduce this having a an emptyphpfolder, so missing theDockerfile, with the following minimal example.File hierarchy:.
├── docker-compose.yml
└── php
## ^-- mind this is an empty folder, not a fileAnd the minimaldocker-compose.yml:version: "3.9"
services:
php-apache-environment:
container_name... | On Windows 11, with this rather simpledocker-compose.yamlfileversion: '3.0'
services:
php-apache-environment:
container_name: php-apache
build: ./php
volumes:
- ./php/src:/var/www/html/
ports:
- 8000:80
db:
image: mysql:5.6.27
restart: always
environment:
MYSQL_ROOT_PA... | Docker compose fails with "failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount[...]/Dockerfile: no such file or directory" |
0
There are certain widgets in linux whoch when enabled can show the ram and cup usage in the runtime . Do check it out on the major linux distributions like mint , ubuntu , kali , debian etc.
Share
Follow
... |
The question is about effective way to monitor system RAM usage.
For example i have some Dax DIMM device that can be mmaped to use it's memory in application.
This memory is not always used and i want to give this memory to OS for general use so each application can access it without manual mmap.
How can i catch runni... | How can i effectively detect Linux going low on RAM automatically? |
Create a Rails endpoint that can accept the SNS notifications.Enable S3 event notifications to SNSConfigure the SNS topicthat is receiving the S3 events to push to your Rails application's endpoint. | Disclaimer, I'm a Rails newb. So I may be doing this wrong altogether.I need to display the latest image in the view of a rails app immediately after it is uploaded to an AWS S3 bucket (from another source). Rather than repeatedly updating / polling for latest image, I think it'd be less taxing and costly to get a noti... | How to Receive Push Notifications from AWS S3 to Rails App? |
As soon as you return the address to the system, any future reference of that address is invalid. Once you have made the successful call to VirtualFreeEx, you must not refer to Address again. Once you have returned the address to the system, the system owns it. The only way for that address to become valid in the futu... |
I use VirtualAllocEx on a remote process to reserve some space like this:
VirtualAllocEX (RemoteProcessHandle, nil, SizeInBytes, MEM_COMMIT or MEM_RESERVE, PAGE_EXECUTE_READWRITE);
Then I "fill"/write the allocated addressspace with WriteProcessMemory
Then I properly use
VirtualFreeEx (RemoteProcessHandle, Address, 0... | Check if VirtualFreeEx has been completed/executed |
The correct syntax is to use$(FOO), as is described in thethe documentation; the syntax you have used is "shell" syntax, which isn't the way kubernetes interpolates variables. So:containers:
- env:
- name: POD_ID
valueFrom: # etc etc
- name: LOG_PATH
value: /var/log/mycompany/$(POD_ID)/logsAlso please note ... | I've aDeploymentobject where I expose the POD ID using theDownward API. That works fine. However, I want to set up another env variable, log path, with reference to the POD ID. But, setting that variable value to/var/log/mycompany/${POD_ID}/logsisn't working, no logs are created in the container.
I can make the entrypo... | Kubernetes: How to refer to one environment variable from another? |
I had the same issue and its seems that we have installed the same image (SE2). We must install the EE2 image instead where the partitioning option is enabled by default.Please have a look at this issue:https://github.com/oracle/docker-images/issues/597#issuecomment-335654741Use this image:https://github.com/oracle/doc... | I installedhttps://hub.docker.com/r/sath89/oracle-12c/and I have a little problem. I don't know how to enable partitioning in this image. Is it possible? How can I do that?select * from v$option where parameter='Partitioning';returnsPARAMETER |VALUE |CON_ID |
-------------|------|-------|
Partitioning |FALSE |0 ... | How to enable partitioning in oracle 12c (docker image) |
Figured it out thanks toGNASCHENWENG. Turns out the file-extension separators after .woff and .otf were commas, when they needed to be semi-colons:Fonts uploaded successfully to CloudFront now. | I'm using W3 Total Cache in WordPress to transfer all of my static files to CloudFront. All file types work properly, except for .woff and .otf font files. Here's how W3TC is configured to handle CloudFront:Any idea why I might be missing? | W3 Total Cache: .woff and .otf font files not uploading to CDN? |
There is no way of dynamical setup for both label names and metric names. More than that, this goes against best practices for using Prometheus and can lead to numerous issues including low performance and high maintenance costss because of the big storage needed for TSDB. You can read about that herehttps://www.robust... | For example I am trying to create this prometheus metricconst wishlistReleasesProm = new prometheus.Gauge({
name: path,
help: 'test'
});path is a string. But it does not let me. I tried${path}but it did not work either. Is there a way to do this? | Is there a way to dynamically name prometheus labels in javascript? |
The Drupal Handbook has an entry aboutconfiguring .htaccess to ignore certain subfolders. Namely, given two subfolders/folder1/and/folder2/, you'd add the following immediately afterRewriteEngine On:RewriteCond %{REQUEST_URI} "/folder1/" [OR]
RewriteCond %{REQUEST_URI} "/folder2/"
RewriteRule (.*) $1 [L] | I have a drupal site that was on shared hosting with other non-drupal sites. Of course there's a primary domain and subfolders.I recently moved the drupal site to be the primary domain, so all the other non-drupal sites are as subfolders.Since I've done this however, none of the other non-drupal sites is displaying.But... | PHP sites as subfolders in a Drupal installation |
Your script is probably running in a directory where it doesn't have permission to create or write to a file and so>biprod.txtis failing to create the file or to overwrite an existing file.Ifbiprod.txtis intended to only exist while your script is running then do this instead:biprod=$(mktemp) || exit 1
trap 'rm -f "$bi... | I wrote a shell script to automatically check the status of Oracle Data Guard and send it via mail.If I execute the script manually it works like it should.If I execute the script via a cronjob it just sends empty emails.
This behaviour started only after we updated our servers from oracle linux 7 to oracle linux 8.Thi... | Cron job executing shell script sending empty email |
TO CHANGE GITHUB CREDENTIALSFrom an open project:File > Settings > [Project Settings] > Version Control > GitHubOrFile > Other Settings > Default Settings > [Template Project Settings] > Version Control > GitHubFrom the Welcome ScreenConfigure > Settings > [Template Project Settings] > Version Control > GitHubTO CHANGE... | I've lost access to my previous account on GitHub, so created new one and now, when I am trying to share my project ( which was shared on GitHub before), I get this message:Can't get repository info: {myRepositoryName}
404: Not Found - Not FoundHow to tell IDEA Intellij that I want to share project on different reposit... | How to change GitHub repository in IDEA Intellij? |
2
Use the Leaks or Allocations template and select the Allocations instrument. There is a graph next to the Allocations instrument. Click the timeline above the graph and hold the mouse button down. When you drag along the timeline, Instruments will show you the total amo... |
If there is an app and we started it up, we can use Instruments to look at the memory usage second by second, but what if during initialization, the memory shot up to 60MB for a split second, and then come back down? (such as a few large graphics contexts and bitmaps and CALayers).
Is there a way to see the maximum si... | Is there a way to see the maximum memory use of an iOS app since it started up? |
I think you may use:COPY --from=website-builder:latest ..... | I have created a multi-stage build.Stage 1: use node:16.10-alpine to compile sourcesStage 2: use an alpine nginx image, copy build folder from first stage, move configuration, expose port, add entrypoint.Here's the Dockerfile:# Builder
FROM node:10.16-alpine AS builder
... # Do stuff
# Release
FROM nginx:1.16.0-alpin... | How to use tagged intermediate image for final build? |
The reason for this behaviour probably was related to a recent kernel and docker update. I recognized several other connection issues in other docker-compose setups. Therefore I restarted the server (not just the docker service) and didn't have had any issues like this ever since. | I've created a smalldocker-compose.ymlwhich used to work like a charm to deploy small WordPress instances. It looks like this:wordpress:
image: wordpress:latest
links:
- mysql
ports:
- "1234:80"
environment:
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_PASSWORD: "pass... | docker-compose wordpress mysql connection refused |
It should not, but there could be exceptions here and there:
if you added url like http://user:password@site/git/.. to remotes
if your credential helper stores the data inside .git folder (I have no idea if there is some which do)
if you have ever staged a file with secret information - even not committed, those coul... |
Would sending a entire project to someone by email along with the .git folder exposes security issues? For example can it happen that the receiver uses this to access by ssh or https other projects from the senders GitHub account.
The project is created in Intelij, is it possible that some Intelij files expose a secu... | sending git project by email git security |
Try below mentioned:git reset --soft HEAD~3The last three commits (HEAD, HEAD^, and HEAD~2) were bad and you do not want to ever see them again. Do not do this if you have already given these commits to somebody else. | This question already has answers here:git reset asks 'more?'(5 answers)Closed6 years ago.I'm trying to undo a commit and duplicate the commit, but when I usegit reset --soft HEAD^(as it was explained to me) it appears this question:More?When it was being explained to me, theMore?statement wasn't mentioned. What does t... | git reset --soft HEAD^ is not undoing my commit [duplicate] |
Leveragefuserto determine if the file is in-use; something like:#!/bin/sh
MYFILE=myfile #...change as necessary
while true
do
if [ -z "$(/sbin/fuser ${MYFILE} 2> /dev/null)" ]; then
break
fi
echo "...waiting..."
sleep 10 #...adjust as necessary
done
echo "Process the file..." | Every hour the main machine takes a minute to produce a dump file of
about 100MB.A backup machine copies that, using scp, also hourly.Both actions are triggered by cron to start at the same minutes past the hour.The copy often contains only part of the dump file.Although I could change the cron on the backup machine to... | How to get a full copy of a dump file while it is still being created? |
Source:ReferenceDetails about githubChecklist------------------------------------Move files to git cloned repository if not use git init then move filesconfigure git usernamecheck status --- git status you will see changed filesgit add file to staging for commitgit commitgit push | I have just begun learning the basics of Git.I have installed Git locally and successfully integrated it to clone repos into myxampps/htdocs.Nowlocally, inthisrepo I have moved all the files into thephp_Basicsfolder. But when I try and commit to sync up with my GitHub repo it says no changes added to commit.How do I co... | Git Trying to commit a file restructure, no files have been edited |
+50As a starting point, you could let Management Studio generate the XMLAalterscript for you: In the first dialog of your question, configure the things as you like them to be, and then select "Script" in the top toolbar, and then the target where you want to see the XMLA.If you want to go the .net way, AMO would be th... | I am configuring proactive caching with MSSQL management studio using a wizard (please look at the attached screenshoots below).
It works fine, but I have to configure the same from code (C#, XMLA or any other way).I cannot find enough information how to do this. For example this page from documentation tells about cac... | Configure proactive caching in Analysis Services with XMLA or C# |
Google-managed SSL certificates don't support wildcard mappings:Upgrading to managed SSL certificates | I'm using app engine standard withpythonI added custom domain in app engineapi.octabyte.ioand a wildcard*.api.octabyte.ioI have two servicesdefaultandquranI'm able to access both services like this.default ->api.octabyte.ioquran ->quran.api.octabyte.io/v1/docsSSL work fine for default servicehttps://api.octabyte.iobut ... | Enable SSL for custom domains in App Engine Standard |
Well, I found a solution incodeigniter forums, first I need to add RewriteBase line as follows:RewriteBase /~userdir/myproject/Then, remove the slash before index.php on last line.RewriteRule ^(.*)$ index.php?/$1 [L,QSA]Someone said thatRewriteCond $1 !^(index\.php|(.*)\.swf|forums|images|css|downloads|jquery|js|robots... | I have a little problem with codeigniter, I have a .htaccess for rewrite the index.php it works great if I put my projects on /var/www or if I make a virtual host for it.But I want to use my user directory such ashttp://localhost/~userdir/myproject. If I use my user directory when I'm trying to do request to a controll... | CodeIgniter .htaccess index.php rewrite not working on user directory |
The problem was that i was missing the@javax.ws.rs.Produces(MediaType.TEXT_PLAIN)annotation on the REST interface and the http response header was by default marking the response as octet string.issue got fixed once i put the annotation. | I am exposing my application metrics using simple text based exposition format as specified hereEXPOSITION FORMATS.
The output from my http endpoint is belowuser@host-ubuntu:~/scripts$ curl -X GET http://172.17.0.23:8181/rest/metrics
# HELP my_new_metric my_new_metric
# TYPE my_new_metric gauge
my_new_metric{container... | prometheus server throwing data does not end with # EOF |
The trick is that you need to require both the./bootstrap/autoload.phpand./bootstrap/start.phpscripts for the Laravel environment to start up.Try making a file:./bootstrap/cronloader.php:<?php
// Laravel Autoloader
require __DIR__.'/autoload.php';
// Start Laravel
require_once __DIR__.'/start.php';Then simplyrequire_o... | I'm building a cron-like feature into my Laravel application. To ensure only 1 instance is running across multiple startup requests, I'm making the cron call to a Shell script which finally executes a PHP file.In this PHP file in need of course access to Laravel's built-in functions and Facades. Currently I'm requiring... | Bootstrapping Laravel environment |
The respective REST endpoint is described inthe official API reference. You will find theCronJobresource in thebatch/v1beta1API group. To create a newCronJobresource, you'll need a POST call to the/apis/batch/v1beta1/namespaces/{namespace}/cronjobsURL.A respective HTTP request might look something like this:POST /apis/... | I am trying to schedule Jobs in Kubernetes.https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/The job can be created using the below command.$ kubectl create -f ./cronjob.yaml
cronjob "hello" createdIs there any REST API using which the Job can be created from a Java client?Thanks | Kubernetes - Job scheduling API |
I see you are trying to make sure that k8s will never schedule all pod replicas on the same node.It's not possible to create hard requrement like this for kubernetes scheduler.Scheduler will try its best to schedule your application as evenly as possible but in situation when you have 2 nodes without spare resources an... | I am working on migrating my applications to Kubernetes. I am using EKS.I want to distribute my pods to different nodes, to avoid having a single point of failure.
I read aboutpod-affinityandanti-affinityandrequiredandpreferredmode.This answergives a very nice way to accomplish this.But my doubt is, let's say if I have... | Kubernetes pod distribution amongst nodes with preferred mode |
The chain of events here is:The HorizontalPodAutoscaler decreases thereplicas:on the Deployment it controls.The Deployment decreases thereplicas:on its corresponding ReplicaSet.The ReplicaSet deletes Pods as required.Kubernetes sends each container SIGTERM and waits for it to shut down.If the container hasn't already e... | I'm currently using AWS EBS but switching over to Kubernetes for managing our celery worker pool. According to the Celery documentation when you want to stop a celery worker there aretwo types of signals that can be sent to the worker. One beingTERMand another beingKILL. WhenTERMis used it waits for the worker to finis... | Python Celery Autoscaling Kubernetes |
Resource limits need to be equal to requested resources for GKE autopilotThat is the default behavior of the GKEautopilot.Read MorePerhaps, this restriction is to make it easier for Google to bill you better, withGKEAutopilot, you lose the ability to set a resource limit higher than the requested CPU and memory resourc... | When I launch a pod with the following limits/request:resources:
limits:
cpu: "3500m"
memory: "8192Mi"
ephemeral-storage: "5Gi"
requests:
cpu: "500m"
memory: "512Mi"
ephemeral-storage: "2Gi"Autopilot modifies the resources limits and set them equals to the request ones:autopilot.gke.io/resou... | GKE Autopilot changes the limits/requests resources of a pod in a wrong way |
NAMESPACE is autogenerated only if devtools::document() and roxygen2 is used. Otherwise, you create it by hand. Therefore, I think they consider it as a source file which needs to be versioned. | I've just pushed a package onGithub, which I regularly document, test and install on my machine with the following R commands:library(devtools)
library(testthat)
setwd("bimark")
document() # cheers to roxygen2!
use_testthat() # cheers to testthat!
setwd("..")
install("bimark", build_vignettes=TRUE) # cheers to R-ma... | Run `devtools::document()` before installing |
With your shown samples and attempts, please try following htaccess rules.Please make sure to clear your browser cache before testing your URLs.RewriteEngine ON
##External redirect here.
RewriteCond %{THE_REQUEST} \s/all_users/user\.php\?id=\d+&subtype=p\s [NC]
RewriteRule ^ user/john-doe.html? [R=301,L]
##Internal re... | Original URL:https://www.example.com/all_users/user.php?id=1&subtype=pExpected URL:https://www.example.com/user/john-doe.htmlI tried using following rule, it redirects to expected URL but I can't use parameters (id and subtype) with new URL.RewriteEngine on
RewriteCond %{QUERY_STRING} ^id\=1&subtype\=p$
RewriteRule ^al... | Rewrite parameter url to normal url but it should get original url parameters after redirect |
I finally found the root cause of the issue, unfortunately I didn't provide enough details on the questions for someone to resolve the issue.
The problem was that my configuration-api image, which is used as a Gitlab-CI service was build with CNB buildpacks by calling the lifecycle endpoint. The final Docker image was... |
I'm using Gitlab-CI to build my application and have a weird error on some runners (Docker executors) when my service is starting. Indeed, on some runners, the service crashes at startup with a ClassNotFoundException, and works perfectly on others runners.
This is the part of my .gitlab-ci.yml which is relevant :
mvn-... | Why is my Gitlab-CI service failing on some runners? |
The DockerHub doc mentions:
The build process looks for a README.md in the same directory as your Dockerfile.
(see for instance tombatossals/dockerhub/nodejs)
If you have a README.md file in your repository, it is used in the repository as the full description.
If you change the full description after a build, is o... |
Does anybody know how dockerhub manages the description on automatic build repositories?
Dockerhub has the nice feature that the README.md from the source repository is taken as the repository description. In practise the description of the repository is not always the latest README.md from the master branch. It appea... | Dockerhub Repository Description |
I think your route is wrong. both servers default get should should be same IP. but your output shows different IP.Not sure about your network setup, check and see 192.168.56.105 is your default gateway.default via 192.168.56.105 dev enp0s8I use this script to correct my default route. update correct getway address.cat... | I want to configure the interface of master node and slave node. After running the master node and joining slave node, master shows:vagrant@kube4local:~$ sudo kubectl get nodes
NAME STATUS AGE VERSION
kube4local Ready 6m v1.7.1Why is my slave node is not added in cluster ? I tried to chang... | Kubernetes route |
This happened to me also and found that XDEBUG is not looking for the Docker Daemon Host. Got it fixed by adding:"hostname": "0.0.0.0"As part of the general options of the launch.json on VS Code.Full example:{
"version": "0.2.0",
"configurations": [
{
"name": "XDebug",
"type": "p... | I am not sure what the issue is, it just doesn't work.The routing seems to work, I have a server name in my nginx conf file. e.g. test.com. that works.My project is in the root of ubuntu and not in the mount folders.I am not sure what else to try.xdebug.ini[XDebug]
zend_extension=/usr/local/lib/php/extensions/no-debug-... | xDebug not working using docker, vscode and WSL 2 |
Disclaimer - I work for Oracle on Coherence.
Assuming that the CPU load is going to XML marshaling, you should see reduced CPU consumption by placing the resulting objects in a cache. You'll still pay CPU for serialization, but object serialization takes much less CPU - and if you use POF for serialization you'll see ... |
We started implementing Coherence in our application to improve performance and reduce load on the DB server and reduce web service calls.
We usually experience high CPU usage ( weblogic App server's JVM) during high load, DB servers are usually not an issue.
Other than response time improvement, How would oracle Cohe... | Oracle Coherence Caching and application server's CPU usage |
You can follow below steps for this:-For this you can do the following:-1. Create SSL private key using OPENSSL.sudo openssl genrsa -out your-private-key-name.pem 20482. Next, create a CSR key using OPEN-SSLopenssl req -sha256 -new -key your-private-key-name.pem -out csr.pemThe system will ask for some details, like yo... | I have anAWS ELBonhttpand it works fine.Now I want to addhttpslistener andAWSrequires anSSL:I haveSSLcertificate in my server and I dont know where is the Private Key\Public Key Certificate their.I have read on otherStackOverFlowquestions about it and I saw that you should useOpensslto convert the Certificate toPEMbut ... | AWS set https SSL on Load Balancer Listener |
You can use:RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#rewrite project assets
RewriteCond %{REQUEST_URI} !/assets
RewriteRule (.*)/assets(.*) projects/$1/assets$2 [L]
#rewrite everything else
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
Rewrite... | Thanks in advance.What I am trying to do is rewrite anything with the word "assets" and simply tack on the /projects/ to the beginning. Then rewrite everything else to my index.php file.So,
/phantom-hearts/assets/pdf/cabbot-story.pdf
/allyson-darke/assets/jpg/image1.jpgbecomes
/projects/phantom-hearts/assets/pdf/cabbot... | mod_rewrite - Rules don't work together, but work fine on their own |
If you created HPA you can check current status using command$ kubectl get hpaYou can also use "watch" flag to refresh view each 30 seconds$ kubectl get hpa -wTo check if HPA worked you have to describe it$ kubectl describe hpa <yourHpaName>Information will be inEvents:section.Also your deployment will contain some inf... | I have hpa configured for one of my deployment in Kubernetes.Is there any way to check if HPA scaling happened to the deployment and when it happened?I don't have prometheus or any monitoring solutions deployed. | Is there a way in Kubernetes to check when hpa happened? |
No there is no such way, unless you implement a custom solution for that yourself. For example, have EB rule trigger a lambda function, which is going to save event and its metadata in a dynamodb. Then you can manage invocations of your other target yourself.
|
While I understand EventBridge will retry sending an event - through a rule - to a target, such as an API Destination, is there any way to read the receiving API's response code and any returned messages for the respective invocation (i.e., the original invocation and any subsequent retries)?
What I have: an event tri... | AWS EventBridge API Destination Responses |
The discrepancy could be caused by several factors such as types of CPU utilization metrics such as User-level, System Level or Total CPU utilization. Also the data source could be one of the points to check as it can vary from time to time. Check as well the update frequency or time interval of the refresh since it ca... | I'm debugging CPU utilization in our kubernetes cluster.When I open the page of a specific kubernetes node in a node pool, GCP reports an average of 14%.
But when I open the details of the same node from either Monitoring or Compute Engine -> VM Instances -> Observability I see twice the percentage.Why such difference? | Why is GCP reporting lower CPU utilizations for the same node when monitored from K8S? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.