Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
1 The GITHUB_TOKEN has a specific scope os permissions, and it doesn't have the one(s) you need here. Instead, you need to use a Personal Access Token and add it as a secret (for example ACCESS_TOKEN as you can't use the GITHUB_ prefix) and call it in your workflow using ...
I have a problem with running github actions on branches created automatically from within other action. Config file triggers them on push to branches that start with feature-. Then I have a python script using PyGithub and create_git_ref for branch creation. Everything works fine if I do it from local terminal, branc...
Github actions workflows are canceled right away
Some CDN services has a cors configuration that need to be configured. In my case i added a cors authorized domain on my digitalocean space. This solved on firefox and chrome.
My Nginx Kubernetes ingress I think is not properly configured to serve .ttf file.On safari work properly, but on chrome I have an error about cors allow. I checked my .conf Nginx file on my deployed ingress and "more_set_headersAccess-Control-Allow-Origin: *is configured.I think I need to add some annotations on mime...
Nginx Kubernetes Ingress does not serve .ttf or .woff files
Looking at your GitHub account, I don't see a "Hello-World" repo. You need to click "New Repository" in your account and add one named "Hello-World".ShareFollowansweredAug 12, 2012 at 5:00sgress454sgress45424.9k44 gold badges7474 silver badges9292 bronze badges1Oh I guess I didn't see that on the tutorial. Wow... nvm....
I'm on Mac OS X Mountain Lion using git version:git version 1.7.11.3I am following exactly what this tutorial says (except the part about the passwords) and keep getting an error when using the 'push' command.Tutorial:https://help.github.com/articles/set-up-gitTutorial 2:https://help.github.com/articles/create-a-repoWh...
Git not working w/ HTTPS method
It's not a bug but rather inherent limitation of the method SonarQube uses to check the code (static code analysis): SonarQube cannot generally evaluate the expressions (imagine if the condition depended on user input), so it cannot know whether the "else" branch will be executed or not.All it sees is that you initiali...
for below codesdouble total = 0.0; //do something for total, anyway return total < 10E-6 ? 0 : (1.0 / total);Then sonar indicates me "Make sure "total" can't be zero before doing this division.". But if total is zero, it even won't reach 1.0/total. Is this a sonar bug, or my fault?
Why I violate SonarQube java rule "Zero should not be a possible denominator"
6 TL;DR: new free Travis CI accounts are now created on the professional server. Hard to diagnose, easy to fix! The instructions for creating a secure environment variable on Travis CI fail to mention that all new accounts are now created on the professional server (travis...
Every time I deploy to Github, Travis CI says at the end of its report: Dashboard report has not been sent: neither INFECTION_BADGE_API_KEY nor STRYKER_DASHBOARD_API_KEY were found in the environment I've tried setting the environment variable at least four times: At first my .travis.yml file looked like this: langu...
Why does my secure Travis CI environment variable not work?
Try the following sample, invoking HTTP GET or POST request in nodejs from AWS lambda const data = { "data": "your data" }; const options = { hostname: 'hostname', port: port number, path: urlpath, method: 'method type' }; const req = https.request(options, (res) => { res.setEncoding('utf8...
I'm relatively new to AWS lambda function and nodejs. I'm working on to try and get the list of 5 cities in a country by using HTTP POST request from this website: "http://www.webservicex.net/globalweather.asmx?op=GetCitiesByCountry" I've been searching about how to do a HTTP POST request in lambda function but I can'...
AWS Lambda HTTP POST Request (Node.js)
If both lists are sorted, binary search is not the best algorithm you can do. Binary search will giveO(n lg n), but just doing a merge-like algorithm, only taking intersections, isO(n).This is a silly algorithm to use a GPU for. The only case I see is that you've just generated the data in the GPU. In which case, yo...
The application is to intersect two sorted list of integers (set intersection), say list1 and list2.Each element of list1 will be assigned a GPU thread, and do binary search to check whether it appears in the list2. It is easy to see that there will be huge amount thread divergences in this application. I wonder if the...
How to reduce the branch divergence of binary search using CUDA
I highly recommend you to upgrade to latest LTS of SonarQube (currently 6.7) in order to get feedbacks, as 4.3.3 is more than 3 years old.ShareFollowansweredNov 29, 2017 at 13:10Julien L. - SonarSource TeamJulien L. - SonarSource Team2,5771717 silver badges1515 bronze badgesAdd a comment|
We had a back up of our sonar db and for some reason we had to restore it back on the same host but this time with a different ORACLE_SID. Now after restoring we tried couple of upload and accessing the various dashboard on sonar and things were seamlessly working as earlier.Its only when we try to access Quality gates...
Quality gates are getting displayed as a blank page in sonar 4.3.3
0 Be sure to use the following format: Share Improve this answer Follow edited Oct 11, 2023 at 0:20 Jeremy Caney 7,3758383 gold badges5252 silver badges8080 bronze badges answered...
I am new to Cyberpanel and would like to integrate it with my existing github repo but I get You are not authorized to access this resource. when I try manage git on cyberpanel user interface. I tried following following docs and added the new ssh key to github but again it's not connected. https://cyberpanel.net/doc...
Cyberpanel You are not authorized to access this resource
LinearDiscriminantAnalysisis a is a dimensionality reduction technique that can be compared toPCA. Therefore it can be used within a pipeline as preprocessing.It is possible that classifier that used its result end up with the same score as LDA project inputs to the most discriminative directions.Below is an example of...
So this is what I put together to run the data through variance threshold for feature selection, then normalizer and LDA for dimensionality reduction.The LDA element I'm not too sure about as I can't find any examples of this being used in a pipeline (as dimensionality reduction / data transformation technique as oppos...
Can you use LDA (Linear Discriminant Analysis) as part of sklearn pipeline for preprocessing?
Ok, I've found the way. Looks like script itself can be defined like this:pipelineJob('name') { definition { cps { script(''' pipeline { agent { kubernetes { } } stages { stage("name")...
I'm trying to configure Jenkins as a code, and trying to put pipeline code in configuration. So far I've found in doc (https://github.com/jenkinsci/job-dsl-plugin/tree/master/docs) that I can do it if I pull the script from Git, but since my pipeline is a simple groovy script, I'm trying to figure out how it can be def...
JCasC. Pipeline code in jobs.jcasc.yaml file
You can't stop a DB instance that is in a Multi-AZ deployment.http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_StopInstance.htmlModify the instance so that it is no longer Multi-AZ. After this modification is complete, you should be able to stop it. You can switch it back to being Multi-AZ after it is resta...
I spun up two RDS instances in the same VPC. Both are postgresql.While the m4.xlarge one has multi-AZ enabled and is encrypted. The t2.micro has either. That is the only difference between the two instances. It is strange that t2.micro instance can be stopped but m4.xlarge can't. The "stop" option is grayed out for m4....
Why can't I stop RDS instance?
As far as I can tell,docker-compose uponly builds images that don't exist already; it will not rebuild an image whose source has changed. If you want to rebuild your image, rundocker-compose buildbeforedocker-compose up.
I am working on a project that usesdocker-compose upto start up and run. I am not very familiar with docker-compose and I couldn't really find an answer in the docs. According to the docs theupcommand rebuilds the container from the docker file, however this does not seem to happen.When I try to addprintcommands for de...
docker-compose not showing any changes to code
There are 2 type of distroless images which can be used in production:with latest tagThis image say,gcr.io/distroless/baseby default has "Config.User: 0" and "Config.WorkingDir: /" config in it and if you don't useUSERfor switching the user tononrootuser which is defined in it or it will start container withrootuser.wi...
Distroless imagescomes with 3 users :> docker run --rm --entrypoint cat gcr.io/distroless/nodejs:debug /etc/passwd root:x:0:0:root:/root:/sbin/nologin nobody:x:65534:65534:nobody:/nonexistent:/sbin/nologin nonroot:x:65532:65532:nonroot:/home/nonroot:/sbin/nologinIf you run the image without aUSERinstruction in yourDock...
nobody & nonroot user in distroless images
4 As mentioned in a comment, AWS has announced EFS (http://aws.amazon.com/efs/) a shared network file system. It is currently in very limited preview, but based on previous AWS services I would hope to see it generally available in the next few months. In the meantime th...
I have a service hosted on Amazon Web Services. There I have multiple EC2 instances running with the exact same setup and data, managed by an Elastic Load Balancer and scaling groups. Those instances are web servers running web applications based on PHP. So currently there are the very same files etc. placed on every ...
How to setup shared persistent storage for multiple AWS EC2 instances?
Using MATLAB R2013a on a Tesla C2070, I see this:A = gpuArray.randn(1000); tic; [l,u,p]=lu(A); toc Elapsed time is 0.016663 seconds.which is about 2x faster than my CPU. As the matrix size increases further, the speedup increases, on my machine peaking at about 5x faster on the GPU - this is typical for a high-end (alb...
I am trying to run LU Decomposition on MATLAB such that it will use the GPU. According to NVidia/MATLAB documentation, LU is supposed to be supported by CUDA (see, for examplehttp://www.nvidia.com/content/GTC-2010/pdfs/2267_GTC2010.pdf).Now, I have compared the speeds between CPU and GPU, and while GPU is indeed faster...
LU Decomposition on GPU MATLAB
This might be caused by the new GitHub limits on file sizes, or possibly the packing process is crashing out due to large data (like in this other SO question from 2011: Alternative way to do an initial push of a large repo) before those particular limits can even be reported. A few weeks ago on a colleague's Mac OS X...
I'm having trouble pushing my local folder to my remote repository on GitHub. After I push it gets to around 96% then shows this.. Counting objects: 4145, done. Delta compression using up to 2 threads. Connection to github.com closed by remote host. fatal: The remote end hung up unexpectedly Compressing objects: 98% ...
Can't push to GitHub error: pack-objects died of signal 13
I'm a grafana beginner!I do not complain, the security audit listed the two topics (DoS/SQL injection). I didn't found any configuration possibilities (grafana.ini) about closing the proxy API interface (only data_source_whitelist-ing).So, I added some rules into the NGIX config in front of the grafana server to forbid...
Close proxy API accessHi community,Grafana 8.2.5We have a Grafana system 8.2.5. He had a security audit, where the API access is criticized. We have enabled an anonymous acess for users without login.[auth.anonymous] enabled =true org_name = IT.NRW org_role = ViewerWhen I try to access the Grafana like:curl http://<fqd...
Close proxy API access
You map or edit the configmap likeyou can map the domain to the service name usingrewrite,rewrite name example.io service.default.svc.cluster.localrewrite name example.io service.default.svc.cluster.local loadbalance round_robin prometheus {$POD_IP}:9153 forward . /etc/resolv.conf reloadYAML for refapiVersion: v1 data:...
I'm using rke2 cluster, i.e. a k8s distribution.And I want to add a nameserver for '*.example.org' to the cluster DNS system, for which I should change the core file of coredns like below..:53 { errors health kubernetes cluster.local in-addr.arpa ip6.arpa { pods insecure fa...
how to manipulate coredns corefile in rke2 k8s cluster?
Installing RTools solved that issue.
I tried to download R package directly from github: library(devtools) install_github("R-Websockets",username = "zeenogee") however I always end up with an error: Installing github repo(s) R-Websockets/master from zeenogee Installing R-Websockets.zip from https://github.com/zeenogee/R-Websockets/archive/master.zip...
install_github doesn't work
I resolved the issue by setting a Disable Transition between the tasks.
I'm trying to delete an automatically start of my CodePipeline in AWS. My code is hosted in GitHub and the first step in my Pipeline is getting the source from there. Every push to the branch that was configured in the Pipeline is triggering a new pipeline execution. How can I remove this Webhook? I try I removed all...
AWS CodePipeline - Remove Github Webhook
It seems profiles with incorrect credentials where stored in AWS. These where listed using Get-AWSCredentials: Get-AWSCredentials -ListStoredCredentials Then cleared using Remove-AWSCredentialProfile: Remove-AWSCredentialProfile -ProfileName {MyProfileName} If using an old version of AWS Powershell Tools you can use...
In my Jenkins build job I'm using this command to assume an AWS role: $Creds = (Use-STSRole -Region us-east-1 -RoleArn arn:aws:iam::$IAM_ACCOUNT_ID`:role/$IAM_ROLE -RoleSessionName jenkins).Credentials I'm getting the following error: Use-STSRole : The security token included in the request is invalid. Changing the...
AWS PowerShell Use-STSRole : The security token included in the request is invalid
Each project should have their own folder inside data/www.So you have:data/www/project1/htdocs data/www/project2/htdocsThen in your /etc/hosts your should have127.0.0.1 project1.loc 127.0.0.1 project2.locThen if those two projects will work on different PHP versions what you can do and have two environment files wi...
It is a very simple newbie question but I can get my head around it.I have my Devilbox working great with my project in/etc/hostsas127.0.0.1 myproject.testin a folder called data/www/myproject.Now I want to collaborate with a github project that has its own.envfile and so on.What should I do to have both projects in my...
Devilbox: two projects
Make sure you have the SonarQube Server URL set to HTTPs in the SonarQube settings.Check also for the group name in both Azure AD and SonarQube.
I tried to configure my SonarQube with active directory and once its done. It is showing this message. When i put the debug mode on , it is showing me these logs. Kindly share what i am missing.You’re not authorized to access this page. Please contact the administratorHere are Logs:2019.12.10 14:33:21 ERROR web[AW7v2dt...
You’re not authorized to access this page. Please contact the administrator. After Integrating with SAML Active directory
1 Please look at these Stackoverflow Questions: Can the JVM recover from an OutOfMemoryError without a Restart and Does JVM terminate itself after OutOfMemoryError. They have all the description that you need I feel. Share Improve this answer ...
This question already has answers here: Can the JVM recover from an OutOfMemoryError without a restart (7 answers) Closed 10 years ago. the application I'm responsible for wrote an...
JVM OutOfMemoryError: Can VM continue or not? [duplicate]
You can follow this steps. stage('Git Clone') { steps { git branch: 'master', credentialsId: 'git_credential', #suggest to use credential on Jenkins. url: 'git_URL' } }
I used to know how to do this, but that was 3 years ago. I have this Jenkins Pipeline Groovy ... pipeline { agent any stages { stage("Checkout") { steps { withCredentials([sshUserPrivateKey(credentialsId: 'mySshUserCred', keyFileVariable: 'key_...
How does one clone a GitHub git repo with Groovy?
11 Click on edited in the top bar of the edited issue Click on the revision you want to remove in the popup menu Click on Options Click on Delete revision from history Note The most recent revision cannot be deleted. Need to delete sensitive information? Go to the specif...
I am using a public GitHub repository to collaborate on a project. Because I am an idiot, I created an issue with some sensitive information that I can't share. Because I need the overall issue information, and the sensitive information could be withdrawn with no meaningful effects, is there a way to remove it from th...
How to remove sensitive information from issue history on GitHub
I found the problem. In the multi-stage build of the docker image, I accidentally copied the nginx.conf file into the builder image, not the production one.The fixed Dockerfile now looks like this:# build environment FROM node:11.13 as builder RUN mkdir /usr/src/app WORKDIR /usr/src/app ENV PATH /usr/src/app/node_mod...
I'm trying to create a docker-compose using two services, a Spring Boot backend (running on port 8080) and React frontend running on Nginx.The react app calls backend API like /api/tests. However, when I run the docker compose and frontend makes a request, it always fails with 404 error:GET http://localhost/api/tests 4...
Set up nginx proxy for react application
Andy Lester's response is accurate but I found an important extra step I needed to make to get this to work. In trying to get two profiles set up, one for personal and one for work, my~/.ssh/configwas roughly as follows:Host me.github.com HostName github.com PreferredAuthentications publickey IdentityFile ~...
I'm having some trouble getting two different SSH keys/GitHub accounts to play well together. I have the following setup:Repos accessible from one account using[email protected]:accountnameRepos accessible from another account using[email protected]:anotheraccountEach account has its own SSH key. Both SSH keys have b...
Wrong Github username during SSH session [duplicate]
Assuming that you are storing the ringtone as a content:// Uri value, I would use either openInputStream() or getType() on ContentResolver. getType() is probably "the most lightweight", but it might be prone to false negatives (e.g., ringtone exists but the MIME type cannot be determined for some reason).
In my app, I'm storing the user's choice of a ringtone in a SharedPreference file. When the app is reinstalled and the backup is restored, I want to check if the ringtone still exists on the device, because if it doesn't I would want to use the default ringtone (as opposed to playing nothing). So to do so, I plan on o...
How can I check if a Ringtone exists?
Have you tried git push origin my_new_branch?
I created 2 new branches using the command line, and when I use the command 'git branch' I can see all of my branches in the window, but when I used the command 'git push' I get a message that says, "nothing to commit, working directory clean' and so I'm not seeing my new branches on github.com. Can anyone shed some ...
Github Windows: New branch created from command line not showing up on github.com
You can usehelm upgrade --set-stringto force Helm to interpret the value as a string.helm upgrade --install someService someChart \ --set-string coredns...=trueNote thathelm install --sethas somewhat unusual syntax and quoting rules; you're already seeing this with the need to escape periods within a value...
I'm running ahelm upgradecommand to install a certain chart. Of one the values I need to set is like this:helm upgrade --install someService someChart ` --set coredns.service.annotations."service\.beta\.kubernetes\.io/azure-load-balancer-internal"="true"I have used this successfully with other charts but o...
How to prevent helm upgrade from treating string as bool?
S3 CNAMEs require the bucket name to match the host name. If you want S3 to serve fromimgs.langpai.me, you need to create a bucket namedimgs.langpai.me. Seethe S3 documentationfor more.You could create a CloudFront distribution to answer toimgs.langpai.me(seeCloudFront CNAME support) have it and forward requests tolang...
I need the following urlhttp://liangpai.s3.amazonaws.com/uploadImage/shareImage/2012-10/506dc1ef71dcf.pngshowing as:http://imgs.liangpai.me/uploadImage/shareImage/2012-10/506dc1ef71dcf.pngMy S3 bucket name is “liangpai”. On Route 53, I created a new CNAME named “imgs”, the value I entered is “liangpai.s3.amazonaws.com”...
Setting up a CNAME for an S3 bucket using Amazon Route 53
For the X-Frame option, this has been fixed in SQ 5.1 and you can actually verify this on ourNemo instance.For the CSRF protection, we have an open ticket about this:SONAR-5040. Note that when an XSS vulnerability is discovered, we always fix it in the upcoming version as well as in the latest LTS version (currently 4....
I am running aSonarqube 4.2instance on a linux box. Since in our system we have a central portal page from where we navigate to all the child pages, I need to have sonarqube inside a frame. When I have an href, Sonarqube is denying which I guess is due toX-Frame optionsset asSAMEORIGIN. Any clue how we can modify this?...
Sonarqube 4.2 X-Frame options and Cross site scripting vulnerabilities
Checkout this answer to another question which want to do something very similar to what you are trying to achieve. It describe your situation like this: newcommit -> the new pull request commit oldcommit -> the old pull request commit upstream -> the base branch commit the new pull request is based on Now do this: g...
Frequently, my colleagues will make some changes to an open pull request, rebase their local branch against the base branch - often squashing their changes into previous commits as well - and force-push. How can I see what changed between the old version of the PR and the new version of the PR? I guess I could do a gi...
Compare old and new versions of force-pushed GitHub pull request
The answer that solves this question can be found here:https://stackoverflow.com/a/22740184/1224232I have flagged this question as a duplicate. I have tested it and it works perfectly.Special thanks toKevin Bfor directing me to the answer, and toRajasaurfor providing the answer.
When loading a page using Angular an Apachemyserver.comeverything works fine, when going to a subroute from the main pagemyserver.com/creditsby clicking a link it'll work as well.However, if I try to go directly tomyserver.com/creditsfrom the browser navigation bar it'll return a404 errormessage:I'm aware that by worki...
AngularJS navigating to a route gives 404 in Apache
To reduce the dex code just use less libraries. Sometimes it is sufficient to attach only some parts of a framework. Check all your build.gradle files for unneeded inclusions. .so libraries are native dynamically linked libraries, usually written in C or C++ which can be used in Android application, see NDK.
I'm monitoring the memory usage of my Android application through the Android Profiler and I see that my app is using more than 30MB of RAM for the code. But I don't have a clue on how to reduce the memory used by this code. Quoting the android documentation: Code: Memory that your app uses for code and resources, s...
Reduce "code" memory usage
Solved the task by using X-Sendfile feature. More here:https://www.nginx.com/resources/wiki/start/topics/examples/xsendfile/
I have nginx web-server and PHP business logic. I want to allow access static files (images, media) only for certain users.The authentication rules are defined in PHP.I understand that it is easily achievable via serving static files through PHP. But it will cost in low performance.Is there an alternative approach?
Restrict access to static files in NGINX by PHP business logic?
I found the solution: in linux server works different that windows, we need use //for linux server String[] cmdarray = {"/bin/sh","-c",command}; process = Runtime.getRuntime().exec(cmdarray);
I'm working in a linux-server with wilfly. when java is train to execute the command: String command = "mysqldump -h "+ hostDB +" -u "+ dbUsername +" "+ dbPassword +" "+ nameDB +" -r \""+ path + backUpFile+"\""; Process process = Runtime.getRuntime().exec(command); it's returning mysqldump: Can't create/writ...
mysqldump (Errcode: 2) trying do backup from java in linux (server) with wildfly
9 There is no functional difference in and of itself. Any difference for your workflow stems from the way you use and design your repo. The git documentation states in the options for git init (i.e. creating a new repo): --initial-branch= Use the specified name for the ini...
This question already has answers here: Why does "git push main" work on GitHub when "git push master" does not? Also what is difference between "Main branch" and "Master branch"? (7 answers) ...
What is the difference of main and master branch? [duplicate]
There is no latency limitation between nodes in kubernetes cluster. They are configurable parameters.Forkubeleton worker node it is:--node-status-update-frequency duration Specifies how often kubelet posts node status to master. Note: be cautious when changing the constant, it must work with nodeMonitorGracePeriod i...
I want to create a kubernetes cluster.I want to have a single cluster with master, worker and proxy nodes in High Availability with nodes in both locations.Is it documented the maximum distance or latency supported between locations? Additionally I would appreciate links to official documentation, I couldn't find anyth...
kubernetes. What is the maximum distance/latency supported between kubernetes nodes?
Objects take a few (should be somewhere around 32 but depends highly on the JVM version, system, ...) bytes in memory, even if you create a very much empty new Object(). class SomeClass { Object someField; } If you add a field to that class, every instance of that object needs to have space for an extra reference...
I tried finding it, but I don't have suitable knowledge on terminology and can't really ask proper question on Google. First: I am making a structure similar to Tree, where one Object has Map of children, same for child and next... public class Attribute { private String key; private int value; private Has...
Few questions about memory-allocation
You will get 403 FORBIDDEN if you have throttling enabled. Based on this issue:https://github.com/tomchristie/django-rest-framework/issues/667, turning off the lazy evaluation of request.user/request.auth is probably the best thing to do.
Using django-rest-framework. I'm getting HTTP 403 errors when running in production behind nginx. When I call a particular view, which inherits from APIView to support a GET operation, I get:{"detail": "Invalid username/password"}But... I only get this in a browser. I don't get it when I use curl for the very same U...
django rest framework gives 403 when behind nginx but not directly
0 The error logs said unable to open database "home/ec2-user/project/db/production.sqlite3": unable to open database file Please check your production.sqlite3 path. I think it should be "/home/ec2-user..." Share Follow ...
I had a problem to backup database by using backup gem in rails. this is my daily_db_backup.rb Model.new(:daily_db_backup, 'Description for daily_db_backup') do database SQLite do |db| db.path = "home/ec2-user/project/db/production.sqlite3" db.sqlitedump_utility = "/usr/bin/sqlite3" end ...
backup database using gem "backup" in rails
You can use binary conversion.Get its IP address (216.178.39.74), by pinging the name (if you have a direct internet connection) or if you only have access via a web proxy then find it out by using a networking website like network-tools. com.Start your PC's calculator, and change it to scientific mode (using the "View...
I am trying to block/unblock some of website on windows xp using NDIS Hooking.I am new for this NDIS Hooking on windows xp. so can you please tell whether is there any sample in msdn or do you have any sample application whick can Block/Unblock website.Thanks, Kamal.
NDIS Hooking for Blocking/Unblocking website on windows xp
After fighting with this same issue on our local machines for almost two months, we finally had some forward progress today. It turns out the problem is related to IPv6. If you're using IPv6, then the secrets manager domain will resolve to an IPv6 address. For some reason the cli is unable to make a secure connection ...
I'm writing a flask API in pycharm. When I run my code locally, requests using boto3 to get secrets from secrets manager take less than a second. However, when I put my code on an EC2, it takes about 3 minutes (tried in both t2.micro and m5.large). At first I thought it could be a Python issue, so I ran it in my EC2s ...
Secrets manager extremely slow in EC2s via awscli and boto3
If the project has a.mailmapunder the root, you can add this line to it:Yathartha Joshi <oldmail@xxx> yathartha <newmail@xxx>The second name and email will be replaced by the first. If the mail is not changed, thenewmailpart can be omitted.Not sure if it works for the number on Github..mailmapis used to helpgit shortlo...
I have been contributing to an open source project. At first, all my commits were under nameyathartha. But after a while, I changed the name toYathartha Joshiand now my new commits are under this name. So is it possible to combine the number of commits? If so how, otherwise what can I do to combine them.I have 8 commit...
How to combine number of commits of same author
You should remove the .phpA simple example to capture the first parameter.RewriteRule ^products/([0-9]+)/?$ show_a_product.php?product_id=$1More herehttps://www.addedbytes.com/articles/for-beginners/url-rewriting-for-beginners/ShareFollowansweredMay 23, 2015 at 11:08Njuguna MureithiNjuguna Mureithi3,68611 gold ba...
I have url coming on my web page like:www.abc.com/product_list.php?id=12&pId=1&gpId=0I want it to show like:www.abc.com/product_list.php/12/1/0i know this is very basic question but i am new in php.your help will be really appreciated.I did experiment like this but its not working: (in my htaccess file by googling)Rewr...
basic URL Rewriting in php issue
I afraid that the answer is no, there isn't a way to configure Azure Audit and filter what to capture and not to capture in the audit.Azure SQL database Auditing doesn't provide the way to customize the audit actives.HTH.
I have enabled Azure Auditing in Azure SQL Database, the audit is capturing all activities in the database and store it in Storage Account. My question is, is there away to configure Azure Audit and filter what to capture and not to capture in the audit?By default it is capturing DDL, DML, security role, etc and this i...
How to filter Azure Auditing
For expose ports try to change lineports: - 8080:8080intoports: - "8080:8080"indocker-compose.ymlfileMore details about expose ports here:https://docs.docker.com/compose/compose-file/#portsFor check if you call a correct IP check with commanddocker inspect <container_name>in "NetworkSettings" and look at IP...
I have a properly installed copy of Docker CE on my Windows 10 Pro machine.I am trying to run a simple node app usingdocker-composeand be able to dynamically update the code while running in docker. I followedthis websiteto build it out, and my code can be foundhere.When I navigate tolocalhost:8080while running the cod...
How do I expose ports in Docker on Windows 10?
You should use thewhenstep in your pipeline. There you use the environment variable which contains you branch name from the generic webhook trigger plugin.ShareFollowansweredSep 30, 2019 at 19:56HolleomanHolleoman27111 silver badge77 bronze badgesAdd a comment|
I am trying to trigger a build on the master branch when a specific branch is merged into it i.e., To trigger a Jenkins pipeline build when a release branch is merged to the master branch.What I am able to do is if any branch is merged to master, it is triggering the Jenkins build, but what I want is to build to be onl...
How to trigger Jenkins build on specific branch(release branch) merges to master in Jenkins
According tohttps://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/To run a command in a Shellcommand: ["/bin/sh"] args: ["-c", "while true; do echo hello; sleep 10; done"]Acommandis required withargs. OrIf you do not supply command or args for a Container, the defaults defined in th...
What is the difference between the below three declarations in a Pod YAML file:containers:name: busyboximage: busyboxargs:-sleep-"1000"containers:name: busyboximage: busyboxcommand: ["/bin/sh", "-c", "sleep 1000"]containers:name: busyboximage: busyboxargs:-/bin/sh--c-sleep 1000Also, would 1, 2 and 3 above produce same ...
Kubernetes command and args in YAML file
I think this happens because you're using the https remote url.According tothisexplanation from GitHub:Using an HTTPS remote URL has some advantages: it's easier to set up than SSH, and usually works through strict firewalls and proxies. However, it also prompts you to enter your GitHub credentials every time you pull ...
So, here's what we're trying to do:$ git config --global credential.helper store $ git config --global user.name myname $ git config --global user.password mypassword $ tmpdir=`mktemp -d` $ cd $tmpdir $ git init $ git remote add origin <https github URL ending in .git> $ git pullWhen$ git pullruns, I'm prompted for use...
Why does git pull ask for password despite setting it before?
You cannot, ConfigMaps cannot contain binary data on their own. You will need to encode it yourself and decode it on the other side, usually base64. Or just a Secret instead, which can handle binary data.
How can i upload Binary file like cert file as Config-mapI am trying to upload Cert file like .p12 as config map but it's failing every time. After upload i do not see the file just entry.Command that i used:oc create configmap mmx-cert --from-file=xyz.p12Failed.Also used:oc create configmap mmx-cert--from-file=game-sp...
How can i upload Binary file like cert file as Config-map
There is no in-built technique for sharing data between Lambda functions. Each function runs independently and there is no shared datastore.You will need to use an external datastore -- that is, something outside of Lambda that can persist the data.Some options include:Amazon S3:You could store information in an S3 obj...
I have 8 different AWS Lambda functions that need to share some common data. (like common configuration for database, etc)
How to share data among many AWS Lambda functions?
0 This is reinventing the wheel sort of thing. There are some utility written for this kind of purpose, to name a few. rsync GNU cp(1) has the -u flag. cp For comparing files cmp diff For finding duplicates fdupes rmlint Here is what I've come up with re-inventing th...
I want to implement incremental backup in Ubuntu, so I am thinking of finding md5sum of all files from source and target and check if any two files have same md5sum then keep that file in destination else if different copy the file from source into directory. I am thinking of doing this in bash Can anyone help me with...
How to write script for incremental backup in Ubuntu?
You can disable it in your html by setting the autocomplete attribute to off:<input name="whatever" type="text" autocomplete="off">You could also disable it for the entire form:<form name="form1" id="form1" method="post" autocomplete="off">https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning...
I am working on a site locally, which has a lot of<textarea>elements.However, everytime I reload the site the content in the<textarea>is still there. This only happens when I hit reload / F5.What can I do to stop the site from being cached,without using any in-browser functions.I am looking for a solution within the si...
How can I stop Firefox from caching the contents of a textarea on localhost?
It is not the same at all. git merge origin/master will merge your remote-tracking branch master to your current head. git merge origin master will attempt to create an octopus merge with branches origin and master to the current head. It will probably fail, because most likely you do not have a branch named origin (w...
Is git merge origin master the same as git merge origin/master. If not how is it different? the objective is to merge the latest remote master to a local branch.
Is git merge origin master same as git merge origin/master?
try this to force GPU rendering:-webkit-backface-visibility:hidden;ShareFollowansweredMar 25, 2013 at 21:38vsyncvsync123k5858 gold badges321321 silver badges409409 bronze badges3It seems, that no matter what, if only non transform css is render, then GPU isn't triggered. So I'm using GreenSock Tween's for now. It's not...
So, I can't usescale()because it requires too much power from GPU when I render my 3200x3200 territory. So I decided to go withheight/width/left/top, as I suspected it requires less performance and even FF can render it very good.Problem:When I transitionwidth/height/top/left-webkit-won't use GPU for rendering anymore,...
Can't force webkit to render with GPU
You needFOR Ffor capture the output of a program.set "cmd=echo list disk | diskpart | find /C "Disk"" setlocal EnableDelayedExpansion FOR /F "usebackq delims=" %%A in (`!cmd!`) do ( set var=%%A ) echo !var!
Trying to get the number of disks in a system using diskpart without using a temp file. This works on the command line:echo list disk | diskpart | find /C "Disk"but I can't figure out how to redirect the result into a batch var. Of course the number printed by the above pipeline is higher due to labels, but they are co...
How can the results of a pipeline be captured in a batch var without temp file?
Server restart fix my issue. Not sure why this was required with hot-reloading. The code was correct.
I have the following component that mutates data. Apollo provides functionality to update the store automatically. I would like to control the way the data is added to the store using the update function. The documentation is straightforward enough, but I can't get it working. What is wrong in the code below that woul...
Update method in mutation not running
If you want to go through the API, you may be interested in the following entry pointSyntax:GET /repos/:owner/:repo/commits/:shaDocumentation:Get a single commitExample:https://api.github.com/repos/libgit2/libgit2sharp/commits/096293c4It exposes a neatstatsmember which gives the number of added and removed lines for th...
What's the best way to determine the total size of a repository (lines of code) on GitHub by commit? For example, say the first commit introduces 1000 lines of code. Starting from that point, after each commit, the total size might change. How can I track this without using the API to grab the commit list and then grab...
Total lines of code in a repository by commit
You can't do this anymore. Google only permits us to use our local machine in the local runtime.
I also looked atGoogle Colab : Local Runtime usebut not found an answer for my needs.I am interested in making use of local runtime to access my data. I can also import my local .py files, to make use of functions already created. Good.Now, thing is, I would like to install GPU based libraries to exploit CUDA and Colab...
Making Use of Local RunTime on Colab only for accessing data, use remote GPU
You can try to remove Lifestyle.Singleton to see if you still have memory leak. Also check the site for example.https://docs.simpleinjector.org/en/latest/quickstart.html
I am using Simple Injector DI in .NET web api (.net 4.8 framework) and have a wrapper class(my own implementation) around the telemetry client.public class MyAppInsights : IMyAppInsights { private static TelemetryClient telemetry; public MyAppInsights () { if (telemetry == null) { telemetry = new TelemetryClient(); } }...
App Insights memory leak in background tasks
+50Due diligence - I work at Redis Labs, the company that provides the Memcached Cloud addon.I'm not familiar with anyone running any datastore/database directly off a dyno - Heroku's and 3rd-party addons are available exactly for that.Yes, using a remote Memcached is the common way to go with a web app that needs to s...
We need a Rails caching solution that works with a multi-dyno formation on Heroku. Specifically, we need worker dynos processing long-running tasks to write to a cache that our web dynos can read from.Apparently the only way to implement a shared cache across dynos isby using Memcached. However I'm having trouble findi...
Rails 4 + Memcached on Heroku
The Rate feature is a OpenTSDB query feature. According to theOpenTSDB docsThe rate is the first derivative of the values. It's defined as (v2 - v1) / (t2 - t1). Therefore you will get the rate of change per second. Currently the rate of change between millisecond values defaults to a per second calculation.Shar...
Let's say I have a byte counter metric that increments once per second. If I plot it, I will get a monotonically increasing plot. The Y-axis is labeled 'bytes'.I want to plot the rate of change of my counter, so I click the "Rate" checkbox. Rate is change per unit time, but what is that unit? What label should the Y-ax...
What are the units for OpenTSDB's Rate function?
There is an option to set maximum number of runs per dag in the global airflow.cfg file. The parameter to set is max_active_runs_per_dag.
When i backfill a dag for specific dates, i want to run it by sequentially, i.e. i want it to be run day by daycompleting all the tasks for the specific day and then next day so on.. I have used the depends_on_past argument, but it is only helping me to set the dependency on tasks not in dag runs.example :- Dag_A have ...
airflow backfilling dag run dependancy
Well, I finally got this fixed. Which I couldn't have done without the help of @iamkhush, who with his great questions directed me to the fix. The problem was solved setting up the Memcache. The key of this was on the Django session doc itself: You should only use cache-based sessions if you’re using the Memcached cac...
I'm facing a strange issue when I switch the language on a Django 1.8.4 project that I have deployed on production with Nginx + uWSGI. The problem is that when I switch the language, somehow every language I change is "remembered", and every time I refresh the page the site language changes to a different language tha...
Language switching issue with Django 1.8.4 and uWSGI config with several processes
JavaScript will keep on stack whatever it knows at compile time the size of (primitives have a fixed size so they can be put on the stack, as well as references to objects -- this is why you have size limitations). Objects and functions on the other hand don't have a known fixed size at compilation time so they need t...
I am confused about how memory allocation and function calls tracking happen in Javascript. One thing I am quite sure about is that there is a call stack in JS, where function calls are stored in LIFO manner. But when it comes to memory allocation, I am confused which of the following arguments is correct: Primitive ...
Confusion between stack, call stack and memory heap in Javascript
Update: npm run build && npm run start fixed it
I tried creating a new method inside AppController but it's not reflecting changes. I even tried to change the default getHello() method but it's outputting "Hello World!". How is this possible? Insomnia AppController AppService
Nest.Js not accepting any changes
My understanding is that Kubernetes itself dedups events, documented here:https://github.com/kubernetes/kubernetes/blob/master/docs/design/event_compression.mdOnce that happens, there is no way to get the individual events back.Seehttps://github.com/kubernetes/kubernetes/issues/36304for complaints how that loses info.h...
I would like to be able to see all of the various things that happened to a kube cluster on a timeline, including when nodes were found to be dead, when new nodes were added, when pods crashed and when they were restarted.So far the best that we have found iskubectl get eventbut that seems to have a few limitations:it ...
Timeline of kubernetes events
The Spring Boot application is running inside your IDE and is accessible by the local host. If we configure Prometheus to use the local host to communicate the spring boot application, it won't work because the Prometheus container has its own local host while it is running in Docker. It gives the error. You can do the...
I have a running Spring Boot application to which I added the actuator and micrometer-prometheus dependencies.When using Postman, I can successfully reach the Prometheus endpoint/actuator/prometheus.Prometheus is started with the docker-compose file I copied below.The problem: By using the UI, I see that the endpoint i...
Local prometheus can't reach Spring Boot App running in IDE
Following rule should work from/cache/.htaccess:AddEncoding gzip .gz RewriteEngine On # Determine the RewriteBase automatically/dynamically RewriteCond $0#%{REQUEST_URI} ^([^#]*)#(.*)\1$ RewriteRule ^.*$ - [E=BASE:%2] RewriteCond %{HTTP:Accept-encoding} gzip RewriteCond %{HTTP_USER_AGENT} !Safari RewriteCond %{DOCUME...
I have a simple rewrite rule that checks if a *.gz version of the requesting file exists, and if so returns that file to the browser (it's based around this technique for serving compressed CSS & JS:https://blog.jcoglan.com/2007/05/02/compress-javascript-and-css-without-touching-your-application-code/).Assume that my C...
mod_rewrite help when .htaccess is located in subdirectory
I'm afraid that even the development branch of thefirewallmodule doesn't acceptsecurityas a value for thetableparameter of thefirewallresource.https://github.com/puppetlabs/puppetlabs-firewall/blob/master/lib/puppet/type/firewall.rb#L579That said, thefirewallchainresource does acceptsecurityas a table name, so the modu...
Trying to add a firewall rule to the security ip table. Support for the security table was added in version 1.8.0 and I'm running 1.9.0 so everything should be okay. However, the following error is spat outInvalid value "security". Valid values are nat, mangle, filter, raw, rawpost
Puppet firewall module does not recognise the 'security' table
If you look at the code that generates that message (line 933 in oauth2client/client.py, you can see that the message is coming from the http response from the server. That's part of the _do_refresh_request method, which starts with: resp, content = http_request( self.token_uri, method='POST', body=bo...
For a python script I am working with, I received this error: Traceback (most recent call last): File "label2.py", line 52, in <module> main(args.image_file) File "label2.py", line 40, in main response = service_request.execute() File "C:\Program Files\Python35-32\lib\site-packages\oauth2client\util.py",...
How to locate an error message at Github?
The following relabeling rules should createtypeandenvlabels based on the__meta_filepathlabel value:- source_labels: [__meta_filepath] regex: "etc/prometheus/targets/hostname_([^_]+)_(dev|tst|uat|prod)\\.yml" replacement: "$1" target_label: type - source_labels: [__meta_filepath] regex: "etc/prometheus/targets/...
I'm using Prometheus withfile_sd_configssources. Using this approach labels can be extracted from the filename. E.g.:file_sd_configs: - files: - /etc/prometheus/targets/hostname_http_prod.yml - /etc/prometheus/targets/hostname_http_dev.yml relabel_configs: - source_labels: [__meta_filepath] regex: "/e...
Prometheus relabel_configs - multiple target labels
You need a Rakefile like:desc "This task is called by the Heroku cron add-on" task :cron do # Do something endHeroku periodically executes rake cron in your app depending on whether you have selected the "cron add-on" to be hourly or daily.
I'm writing a tiny Sinatra app, and I want to host it onHerokufor simplicity sake. But, what I have is a task that scraps some sites and adds some data into my database every hour. Currently this is just written as a ruby script that needs to be executed. What Heroku has is arake based cron job. Now if this was a r...
How to run a cron job in Heroku, with a Sinatra app
I missunderstood the docs as the CLI promts with this line:This will create '<remote-name>' in your current directory. Continue?So I thought this creates an new local repo inside your repo with the name of the remote one.This is wrong as the docs says this:Inside a git repository, and with no arguments,ghwill automatic...
I know gh cli creates a local and remote repo withgh repo create. But I created and worked on my local repo with git init and so on. Then I want to create a remote repo and add that remote repo to my local one just to push it.So if I usegh repo create, it tries to create a local <> repo inside the one im working on. I...
Can I create remote github repo without local one with gh cli?
Thejavadocis quite explicit:Closing a StringWriter has no effect.And a quick look atthe codeconfirms it:public void close() throws IOException { }
I realize that in java the GC will eventually cleanup objects, but I'm asking if it is bad practice to not close your string writer, currently I am doing this:private static String processTemplate(final Template template, final Map root) { StringWriter writer = new StringWriter(); try { temp...
Will not closing a stringwriter cause a leak?
You didn't allocate models and names using new, so you cannot delete them. Both arrays are allocated on the stack and are automatically deleted, when the function returns. The contents of the (string) arrays (i.e. the strings itselves) are stored in the global data segment and cannot be freed at all. This would also ...
How do I delete the memory that have been allocated for array models, names? I tried every method but it always crashes when I run it. int main() { vector<Person*> people; const int PERSON_SZ = 4; char * names[] = {"Jim", "Fred", "Harry", "Linda"}; int ages[] = { 23, 35, 52, 59 }; for (int i = 0...
Delete array pointer?
No, you have to remember to call destroy() yourself. The allocator doesn't know which objects have been constructed and which have merely been allocated. For example, in a vector, objects 0 through v.capacity()-1 have been allocated, but only objects 0 through v.size()-1 have been constructed.
More specificly, in C++, does std::allocator_traits<T>::deallocate imply std::allocator_traits<T>::destroy?
Does deallocation imply destruction?
JAVA_HOME was still set to Java 8 jre folder. So I change the JAVA_HOME path to java 11 then it was working fine.export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
I'm using ELasticsearch on ubuntu 18.04 (AWS). While i try to run "./elasticsearch-setup-passwords" script it is showing following error.future versions of Elasticsearch will require Java 11; your Java version from [/usr/lib/jvm/java-8-openjdk-amd64/jre] does not meet this requirementBut while I check for Jaa version i...
ELK Prompting to upgrade java version even after upgraded to latest on ubuntu
To change MardiaDB timezone you need to edit/etc/my.cnf.d/server.conf# this is read by the standalone daemon and embedded servers [server] default-time-zone=-06:00The value is a string and you would need to figure out for your timezone to do so look uphere.As for helm andmariaDB chart, I was unable to find any timezone...
The helm chart we are using for a particular microservice has the following dependency:dependencies: - name: mariadb version: 7.x.x. repository: "abc" condition: mariadb.enabled tags: - databaseWhen we login to the microservice pod, the timezone shown is local as configured in the deployment. However, when ...
Timezone in requirements.yaml to add dependency to a helm chart
If there's a specific image that's tagged, you could use the --tag= (or -t) operator to pull the specific image you're looking for. There's a shorthand form for the command as well, which uses just a colon between the image name and the tag.So if you want the version of ubuntu that's tagged as quantal, you could use:d...
The docker repositories contains multiple images. Is it possible to just pull the specific image from Repository.When I use:docker pull ubuntuIt pulls down around 8-10 different versions of ubuntu.
How to pull a single image from any docker repository?
Use window functions: Create table #Real (RealID int, [Numeric] int) Create table #Backup (BackupID int, RealID int, [Numeric] int) Insert into #Real values(1, 3) Insert into #Real values(2, 19) Insert into #Real values(3, 24) Insert into #Real values(4, 5) Insert into #Real values(5, 23) Insert into #Backup values...
My problem is this: I have two tables. One that carries the real data and another that is used as a backup. Whenever something gets changed on the real data, a trigger copies the original row into the backup-table. What I need is the following: I want to select all the original real data. This means all the entries f...
Select Data from 2 tables where they extend the rows
Thats tricky becausematchLabelsdoes not take multiple key&value pairs andmatchExpressionswill be ANDed. There are two possible ways (workarounds):Create another networkpolicy (along with the existing one) wherematchLabelscontainsfoo:bar.[or]add a new label(common) to both the workloads and use that inpodSelector
We have a default deny-all-egress policy for all pods and we have an egress-internet policy like belowapiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: allow-external-egress-internet spec: podSelector: matchLabels: egress: internet policyTypes: - Egress egress: - to: - ipBlo...
Kubernetes networkpolicy multiple match labels
The main thing is to make sure that you handle only URLs that starts with/view.php. Next, when you useRewriteRulethere is no need to capture the URL using^(.*)$. Finally, divide the logic into smaller handlers.# Correct the wrong case for the "id" parameter RewriteCond %{REQUEST_URI} ^/view.php$ RewriteCond %{QUERY_STR...
I want to have a formatted URL like this:www.mysite.com/view.php?id=1where:"id" range: 1-99 (without leading "0" from 1 to 9) "id": always lowercase, no "Id" or "ID" or "iD"Anything different from this format must redirect it towww.mysite.com/view.phpor formattedIDvalue:Examples:www.mysite.com/view.php?id=1sdeW --> www...
htaccess rewrite rule for URL
Please check if my findings helpful:As per the research, Yes - we can monitor the SSL Certificates Expiration and get alerts using the Azure Monitor.I didn't find any official documents related to Azure Monitor - Creating alerts to SSL Certificates Options.Here is ablog articlewhich shows you workarounds about How to c...
My question is simple:Has someone figured out a way to be alerted when their App Service Environment (ASE) ILB certificate is about to expire? I have set up alerts for SSL certificates associated with my other Azure resources but am having difficulties specifically figuring this out with Azure ILB ASEs. It doesn't help...
Alert for Azure App Service Environment SSL cert expiration
From IAM docs, http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html#Action Some services do not let you specify actions for individual resources; instead, any actions that you list in the Action or NotAction element apply to all resources in that service. In these cases, you use the wildca...
I'm following the instructions from this answer to generate the follow S3 bucket policy: { "Id": "Policy1495981680273", "Version": "2012-10-17", "Statement": [ { "Sid": "Stmt1495981517155", "Action": [ "s3:GetObject" ], "Effect": "Allow", "Resource": "arn:aws:s3:::surpla...
S3 Bucket action doesn't apply to any resources
From the known limitations in documentation from nvidia : NVIDIA Management Library (NVML) APIs are not supported. Consequently, nvidia-smi may not be functional in WSL 2. However you should be able to run https://docs.nvidia.com/cuda/wsl-user-guide/index.html#unique_1238660826 EDIT: since this answer, nvidia-smi su...
I have Ubuntu 18.04LTS install inside WSL2 and I was able to use GPU. I can run $nvidia-smi from window run terminal. However, I can not find any result when I run $nvidia-smi on WSL2
WSL2- $nvidia-smi command not running
1 You should assign the NSArray to a retained property of self, and (auto)release it in viewDidLoad. Then release it in dealloc. In this setup, when viewDidLoad gets called it releases the "current" NSArray, if any. But it sounds like you'd better alloc the NSArray in one o...
I am allocating an NSArray in viewDidLoad (firstly is that alright to do, like is it good pratice?) but where do I release it? In ViewDidUnload, dealloc or didRecieveMemoryWarning? (also should I message it to release, or set it to nil, or empty the array or a combination?)
Memory Managment and viewDidLoad (iphone, objective-c)
I tried with your expression like below and I got same error.Update [dbo].[sample1] set [MaxId]='int(@{variables('MaxRowId')})' where name='Laddu';Here, your expression will result the query like below in the script activity input.Update [dbo].[sample1] set [MaxId]='int(24)' where name='Laddu';where'int(24)'is a varcha...
I have constructed an ADF pipeline with copy data to create a CSV from an Azure SQL DB query. It needs to run as a delta load each time, so I have the following...Lookup- To get the maximum row ID of the last run, which is stored in a table in the databaseSet Variable- To assign that value to a variable (which is a str...
Converting a string to an integer failing in Azure Data Factory pipeline
Got it!!! I just had to mention hostname in ALLOWED_HOSTS of theapi'ssettings.pyfile. Thanks for the help everyone!!!ALLOWED_HOSTS = ['127.0.0.1',]
I have created two apps 'myapi' and 'minombre' where the 'minombre' will make a simple GET request to 'myapi' and put them in two separate docker containers.After I run 'docker-compose up' the containers run but the api don't pass the data. The views.py of the 'minombre' where the GET request is made is given below:def...
How to make connection between two django apps in two different docker containers?
You are not clearing the references of Objects you are using. Ok,you can do this before loading Startup AllAlbumsView page in OnNavigatedTo handler: Deployment.Current.Dispatcher.BeginInvoke(() => { while (NavigationService.CanGoBack) { NavigationService.RemoveBackEntry(); } }); so that on back press w...
I am writing a sample Windows Phone 8.1 app which is just an album maker. From the app, I can choose photos from the gallery and make them into an album. Features:- If albums have been previously created by me, then the first picture of each album is displayed when I start my app.(Lets call this page 'AllAlbumsView'...
Memory usage of Windows Phone app keeps building up when going back and forth between pages
I was running into the same issue, I upgrade JAVA to the latest (17) and this resolved the issue
i installed ELK7 one week ago , it was working fine today i got this error sayingCould not find or load main class Warninghere is Environement variables:important Notei found that Elasticsearch service stops alone after running itwhat i tried :check if any environment variable do not have the correct path.reinstall Ela...
Elasticsearch : Error: Could not find or load main class Warning
All you need is just 1 line rule like this:Options -Indexes -MultiViews +FollowSymLinks RewriteEngine On RewriteRule ^advert/((css|js)/.*)$ /adverts/juneadvert/$1 [L,NC]
I've had a good look on Google but couldn't see any examples of my scenario... or none that I could understand lol.Here's my situation. I have a htaccess rewrite that takes the urlhttp://www.mydomain.com/advertand points tohttp://www.mydomain.com/adverts/juneadvert/index.phpThis works fine, however, I want all the sou...
htaccess - Rewrite root folder?
If you read the documentationUse self-signed certificatesWarning: Using this along with basic authentication requires to also trust the certificate into the OS cert store for some versions of docker (see below) This is more secure than the insecure registry solution.Generate your own certificate:$ mkdir -p certs $ o...
I have set up a docker registry using harbor.I have copied the appropriate certificates in/usr/share/local/ca-certificatesand runsudo update-ca-certificateswith success. (indicated the number of newly certs added).When trying to login to the specific registry:ubuntu@master1:/home/vagrant$ docker login my.registry.url U...
x509 error when trying to login to a trusted (?) docker registry
This should work, assuming that the part of the query string added by Facebook always begins with thefb_action_idsparameter:Options +FollowSymlinks RewriteEngine On RewriteCond %{QUERY_STRING} ^(.*&)?fb_action_ids= RewriteRule ^(.*)$ $1?%1 [R=301]
I'm trying to create a facebook like button on a site and when people click on links my wordpress theme doesn't really understand some of facebook complicated query strings and doesn't show anything.This is the link where "LIKE" button appears:http://somesite/?p=24This is how facebook return the link:http://somesite/?p...
Redirecting with .htaccess removing query strings
1 This can be resolved this by creating a configuration file within .platform/nginx/conf.d, say 10-types-hash.conf: # .platform/nginx/conf.d/10-types-hash.conf types_hash_max_size 4096; During the deployment process, Elastic Beanstalk copies this file to the /etc/nginx/c...
I have created an API and successfully deployed it via AWS Elastic Beanstalk. The server is running and works as expected. However, i downloaded the log file and the error.log shows [warn] xxxx#xxxx: could not build optimal types_hash, you should increase types_hash_max_size: 1024 or types_hash_bucket_size: 64; ignor...
AWS Elastic Beanstalk [warn]: could not build optimal types_hash, you should increase types_hash_max_size..?
kubectlnow has a--prefixoption that allows you to prefix the pod name before the log message.
I'm using the handykubectl logs -l label=valuecommand to get log from all my pods matching a label. I want to see which pod outputted what log, but only the log text is displayed. Is there a way to control the log format, or a command argument which will let me do this?
How to get kubectl logs to output pod name alongside logs?