Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
The privacy implications are what you make of them; if you put your personal email address as part of those commits, you're pretty much bound to them.For instance, usinggit shortlog -eswill give you a listing of both the user's name and email address as provided by what you filled out foruser.nameanduser.email.29 <Mak...
Closed. This question needs to be morefocused. It is not currently accepting answers.Want to improve this question?Update the question so it focuses on one problem only byediting this post.Closed8 years ago.Improve this questionGit'suser.nameanduser.emailvalues request your actual name and email address.For the sake of...
What are the privacy implications for honestly setting Git's user.name and user.email values? [closed]
Try to use the following yaml file as I used to sync Github to Azure Repos: name: Sync Azure with Github variables: REMOTE_ADDR: 'https://github.com/{user{/{repo.git}' stages: - stage: syncing Repos displayName: syncing Repos jobs: - job: run_Git_Commands displayName: run_Git_Commands...
OK, so the main question here is: How to Sync Github with Azure? Now, I had main reference source: How to synchronize Azure Repos with External Git Repos https://faun.pub/how-to-synchronize-azure-repos-with-external-git-repos-70ff92e51c63 And that is perfect match, but here is a catch, it is kind of abstract and you h...
How to Sync Azure with Github, issues: Cannot find path 'D:\a\1\s\ because it does not exist; Repository not found fetch failed; Filename too long
Ingress controllers are designed for HTTP connections, as the error hinted, the ingress is not the way to access mongodb.None of the information in an ingress definition makes much sense for a plain TCP connection,hostnames and http URLpathsdon't apply to plain TCP connections.Some ingress controllers (likenginx-ingres...
I deployed mongodb in a Kubernetes cluster with this helm chart :https://github.com/helm/charts/tree/master/stable/mongodb. All is right. I can connect to mongo from within a replicatset container or from outside the cluster with a port-forward, or with a NodePort service. But I can't connect via an ingress.When the in...
How access MongoDB in Kubernetes from outside the cluster
It turned out that after adding a login page to the system, the health check was getting a 302 redirect to /login at /, which was failing the health check. So the container was periodically killed. Amazon support is awesome!
I have a Python/Flask web application that I am deploying via Gunicorn in a docker image on Amazon ECS. Everything is going fine, and then suddenly, including the last successful request, I see this in the logs: [2017-03-29 21:49:42 +0000] [14] [DEBUG] GET /heatmap_column/e4c53623-2758-4863-af06-91bd002e0107/ADA [2017...
Why are my gunicorn Python/Flask workers exiting from signal term?
the underlying OIDC token issued by Github has only 5 minutes of lifetime hence it doesnt matter if oAuth tokens have 1h lifetime.my workaround is to refresh Azure Cli auth everytime I need to use it until anything can be done about this (at least I dont see a way to extend token lifetime:https://docs.github.com/en/act...
I'm running a GH actions pipeline which is configured to login Azure cli using federated credentials (and this works fine):env: ARM_USE_OIDC: true steps: - name: az login uses: azure/login@v1 with: client-id: ${{ env.ARM_CLIENT_ID }} tenant-id: ${{ env.ARM_TENANT_ID }} subscription-id: ${{ env.ARM_SU...
Issues with azure.identity when using federated credentials
Do you mean you want the job to start at the given time and then run once hourly forever? If so, I don't think a cron expression is the right approach.If you're using a scheduler it should be straightforward to start the job and run forever at a given interval. For example, here's a snippet from the Quartz scheduler do...
I want to run a cron job every hour after a certain start time. Currently my cron job expression iscronExpression = seconds + " " + minutes + " " + hours +"/1" + " " + " * * ? *" ;(seconds, minutes, hours are passed in by the user selection)The job starts at the right time and runs every hour until midnight but then...
Cron Expression - Run every hour after a start time
As @torek points out, in this case539f065446a993825d61dddc5d9dc72ae54d7a29is not a commit hash but a ref to annotated tag object (vs lightweight tags) so it is not among commits refs. For this exactopencvproject$ cat .git/refs/tags/4.2.0 539f065446a993825d61dddc5d9dc72ae54d7a29You can see the tagged commit ref and tag...
I was exploring GitHub projects using git. Some things don't make sense to me.For example inOpencvI can checkout to commit539f065446a993825d61dddc5d9dc72ae54d7a29(which is version 4.2.0). However when I usegit rev-list --allto view the list of all commits, I don't find this hash (539f...).Why is this the case? This is ...
Commit hash does not exist in git log
I can see three variables (even in a seemingly simple chunk of code):What dof()andg()do? Can one of them invalidate all of the instruction cache lines (effectively pushing the other one out)? Can that happen in L2 instruction cache too (unlikely)? Then keeping only one of them in it might be beneficial.Note:The inverse...
I have long wondered what is more efficient with regards to making better use of CPU caches (which are known to benefit from locality of reference) - two loops each iterating over the same mathematical set of numbers, each with a different body statement (e.g. a call to a function for each element of the set), or havin...
Use two loop bodies or one (result identical)?
One approach is to run a Fluentd agent on each cluster node. The agent collects all pod sysouts, decorates the logs with pod attributes and pipes them into ElasticSearch or some other searchable store. alakubernetes-fluentd
This question already has answers here:Programmatically get the name of the pod that a container belongs to in Kubernetes?(2 answers)Closed5 years ago.I have a SpringBoot application, dockerized, and deployed in a kubernetes cluster. There is any way to log the pod name and pod ip from the springboot application inside...
Get pod name and ip from Springboot application [duplicate]
Well, as part of the image file you'll simply have to install openssh-server: sudo apt-get install openssh-server The problem then is that traditionally, a running docker container will only run a single command. You can get around this problem by using something like supervisord. There's an example in the docker doc...
i have a ubuntu machine that hosts a docker container. and in the docker container i am running a web service which must validate the user's password with the docker host's /etc/password. my view is to ssh into docker host from the docker container. so when i run command ssh in the docker container its sa...
installing ssh in the docker containers
You've to run two commands in your terminal:echo "Option DisableLEDryRun" >> /usr/local/mgr5/etc/ispmgr.conf/usr/local/mgr5/sbin/mgrctl -m ispmgr exitThen try to create a new one certificate. Hope it helps!
When I try to issue Let's Encrypt certificate on my ispmanager panel I see this strange error:Certificate request failed Return code: 403 Details: Order's status ("valid") is not acceptable for finalizationLooks like something wrong with ACME protocol request or something else. Can someone give me a hint?I want to und...
Can't request Let's Encrypt certificate on ispmanager
In general:Follow the download instructions for your targetArgo Workflows release.Specific to 2.4.0:The download links were incorrect for 2.4.0.The binaries have been replaced by gzipped binaries. You can use the download/gunzip process from your original post now.Original answer (OUTDATED):Thedownload instructionsfor ...
I want to use Argo v2.4.0 and I ran the following command:oc apply -n <my_ns> -f https://raw.githubusercontent.com/argoproj/argo/v2.4.0/manifests/install.yamlThis did not change the output ofargo version(v2.3.0) notibly because it is installing Argo on the cluster andargo versionpoints to my local binary. In order to u...
How to update Argo CLI?
If you have the root permission you can try this way.* 22 * * * /root/sbin/allDomainsCron.shWhere allDomainsCron.sh contains your domains cron.php one by one:#!bin/bash php /var/www/domain1/cron.php php /var/www/domain2/cron.php php /var/www/domain3/cron.php php /var/www/domain4/cron.php ...So you can ensure that only ...
I have a crontab that looks like the following* 22 * * * php /var/www/domain1/cron.php * 22 * * * php /var/www/domain2/cron.php * 22 * * * php /var/www/domain3/cron.php * 22 * * * php /var/www/domain4/cron.php ...However the scrips shown above seems to mess up and run op to a hundred times each! Im not sure why this ha...
Multiple PHP scripts run at same time in Cron
Ifrewrite_log on;is used then the rewrite information will be logged toerror_logatnoticelevel. There is no separate log file.
When you turn on the nginx rewrite log withrewrite_log on;, where does the system actually log that info? It doesn't seem to be in the documentation, and a decent search through google doesn't turn anything up.I have also tried enabling and looking in both the access and error logs. No luck.
Where does nginx store the rewrite_log?
You will need an additional rule to fix css, js, images links:# your rewrite rule RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^post/([0-9]+)/?$ post.php?id=$1 [QSA,NC,L] # fix css, js, image links RewriteRule ^post/(.+?\.(?:jpe?g|gif|bmp|png|tiff|css|js))$ /$1 [NC,L]Alternatively make sure to just use absolute pat...
I'm creating a standard rewrite with.htaccessto do thishttp://www.myurl.com/post/{id}/RewriteRule ^post/([0-9]+)/?$ post.php?id=$1 [NC,L]Now, it works perfectly but all others external URL ( for example CSS and JavaScript ) do not work, rightly. Is there a way to prevent it without having to change all the url...
Prevent CSS URL from htaccess rewrite
.Mapping a module to custom domainLet's suppose you are admin for domainexample.comand you want to map subdomainwww.example.comto modulewebmodulein your applicationmyapp.appspot.comwww.example.com->webmodule.myapp.appspot.comWhat you can do is going to admin.google.com and in App Engine Apps section configure your appl...
Suppose I have a Google App Engine application which has several modules which have several versions. Can I map a custom domain name to a specific version of a specific module of the application?For example:http://www.example.comshould be mapped tohttp://module1-dot-app1.appspot.com
Custom domain mapping to Google App Engine module or version
4 At first I was skeptical about the order being fixed but you're correct: Extensions registered declaratively via @ExtendWith will be executed in the order in which they are declared in the source code. Regarding the MyDockerExtension, you may want to look at the extensi...
I'm trying to implement integration testing in my app and have test class like that: @ExtendWith(value={MyDockerExtension.class}) @ExtendWith(value={SpringExtension.class}) @WebAppConfiguration @ContextConfiguration(classes={...}) @TestInstance(TestInstance.LifeCycle.PER_CLASS) public class TestClass{ ... } Is there ...
Executing extension before SpringExtension
1 Pretty simple. What you are looking for is to import the 'os' module. import os Then you can get the "name" of the current running Operating System by checking: os.name. You can then base if or case statements, or however you want to manage your code, on what OS is report...
The question I'm asking is a bit unclear, I think it's a bit hard to explain it with only one line. Here's my situation: I have a Bitbucket repertory which is cloned in both an Linux environment and Windows environment. The problem I have is: 1- I need to read and write from files and the paths to the different locati...
How to write a program that works on different OS?
Try runningcount_over_timefunction in the following fashion:count_over_time(pipeline_status{branch="master", status="success", source!="schedule", passed_with_warnings="no",project_repo="nik"}[4w])count_over_time(series_selector[d])is a rollup function, which calculates the number of raw samples on the given lookbehind...
I want to get the number of pipelines that passed that are happening within my gitlab repo. I am trying to get the total number of data points within a 4w(1 month). I am using grafana to see the data visually. I first start getting the points individually and start counting them manually and checking them them in our r...
Promql / prometheus query to grab the total number of data points within a range
A couple things:First, you most likely want to use.gitignoreinstead of.git/info/exclude. It does the same thing, except it gets checked into the repo and versioned along with all the working files. In most situations this would be the desired behavior.(If you use.git/info/excludethen only that particular clone of the...
I'm still learning git and getting the hang of it. I want to ignore files locally to my workflow only. I've read numerous Q&As on here as and as well as the git documentation, but none of them actually mention or explain how to create and access the.git/info/excludefile in order to modify it. I don't have the file or a...
How do I create/ add to a .git/info/exclude file to ignore files locally?
If there isn't a hard requirement on writing something like this from scratch, why not simply use an already existing interface without having to reinvent the wheel? A simpleGoogle search for the keywords bind dns web interfaceyields an entire list of good open source projects in the very first result link.
I whant to make a web interface on a server that will manage a few dns servers on another servers.How can i remotely manage a bind dns server programmaticly ?I would like to add/edit/delete zones.I see that there is rndc but that only allows reloading of zones and not adding/deleting.I could NFS mount zones from dns se...
How to manage a DNS server remotely?
Aptibleare working on a platform to do exactly that, i.e. automating HIPAA compliance where possible, training you on the stuff you need to do yourself, and letting you build systems on standard databases and ecosystems. They're in private beta at the moment.Disclaimer: I'm not associated with them, but I did meet the ...
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.Closed9 years ago.Improve this questionThere's a recent startup out of YC which seems interesting called Truevault.com, which ...
HIPAA compliance cloud server setups [closed]
6 For other persons, I my case, I use mutiples account of google, and my account of GCP is a seccond, when i auth in github, the callback redirect to first account. For resolve, I log-out all account and log-in only in my gcp account. :) Share Improve this answe...
I want to deploy a private GitHub repository with Cloud Run on Google Cloud Plattform. In GitHub, I properly installed Google Cloud Build Application by clicking "Authenticate" in Cloud Run. But somehow, Google tells me "Currently not authenticated" even though I clicked it another time. In Cloud Build I checked and i...
Cloud Build "Google Cloud Platform was not authorised to list repositories"
Provided you have correctly guessed the meaning of "GPR":For NVIDIA GPUs, the official source of such information used to be Appendix A to the CUDA Programming Guide. But if you don't feel like downloading a PDF just to look up the number of registers, go toWikipediaand scroll down to the line "Number of 32-bit registe...
Working with an undisclosed API, I found a function that can set the number of "GPRs" allocated to a different phase of the graphics pipeline.My guess is that GPR means "General Purpose Register", but I could not find really detailed documentation about their usage in widespread GPUs (also, their number, etc).Does it m...
In the context of GPU architecture, what does "GPR" stand for?
var arr = []; $('#menu').children().each(function(){ arr.push($(this).width()) }); console.log(arr);
var arr = []; $('#menu').children().each(function(){ arr = $(this).width(); }); console.log(arr); It doesn't work that way, why? How could I make it to work, so that element propertiers would cache in array for later use?
jQuery collect element properties in an array?
Are you using PHP's standard file-based sessions? PHP locks the session when you do asession_start()and keeps the file locked until the script exits, or you do asession_write_close().This has the effect of preventing any OTHER session-enabled pages from being served up, as they can't get at the session file until the l...
When I try to load two of the same page from my server in different tabs of the same browser, it waits for one to finish before starting the other. This is fine but I have a cron process which needs to call several calls to the same script and I can't have this type of blocking behavior. I think it is because the pro...
Apache same orgin request blocking
It depends on your browser, but it is possible to ignore all certificate errors. For example, in Chrome, you can use the--ignore-certificate-errorscommand-line switch:"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --ignore-certificate-errors(change that to match whereverchrome.exeis on your computer)Howe...
I have a SSL site hosted in IIS, with server certificate validity from 01/11/2019. But due to business constraints my client machine has date of June 2019. Because of which i getUnable to make a private connection to servername because the date and time (Monday, June 8, 2019 15:42:14) set on the computer are incorrect....
How to use Server certificate before its validity starts
Have a look at: http://dev.mysql.com/doc/refman/5.1/en/innodb-backup.html I think that the mysqldump is locking each table during the dump process. There should be no limitation in restoring the data, because you will get the data as SQL files
I need to perform a backup of entire innodb-database into local file with possibility to restore data from it. Currently I use MySQL Community Edition, but it doesn’t have innodb hot-backup features. So I’m wondering, which negative aspects should I expect using mysqldump for hotbackup instead of innodb hot-backup fe...
mysqldump vs innodb hot-backup
It tells you how to fix your issue in the link you provided. Change:domain->asciiName ?>:server->webserver->httpsPort : $VAR->server->webserver->httpPort ?>"todomain->asciiName ?>"You have to fix this in your application rather than in Nginx.Your application is generating links that point to port 50493like this. Unless...
I'm having an issue where some redirects on a website have the proxy-pass port included, rendering them useless. My configuration is as follows:Physical server 1:server { server_name example.com www.example.com; location / { proxy_pass http://1.1.1.1:50493; proxy_set_header...
Removing port from nginx redirect
I'm assuming you've edited the proper .htaccess file in the website's DocumentRoot folder.Options -IndexesThe above will only work if your particular WAMP's configuration and the website's VirtualHost file has the proper AllowOverride value set, such as...AllowOverride AllCheck the website's VirtualHost file, and/or ht...
I'm running WAMP on my Win7 box and trying to configure an htaccess folder to restrict my guests from browsing the directory structure.Right now, if you head to, it will list the directory structure which I do not want. They should be only able to get to the .html site.I've already modified the httpd.conf file to remov...
htaccess file not working windows 7 using wamp
This question is unclear. You cant disable schema craeation in JaVers SQLRepository but even if you could, what would be a purpose for that? If you create different tables than JaVers expects, it crashes.
In Javers and Spring, is can disable the automatic creation sql schema? So I can create the schema with Liquibase for use multi-tenancy
Javers - Disable sql schema
You can follow the URL for instagramm API. I use this for instagram login and its work for me but you can also check for follow a User & Relationship but I think it will work for you as well.
at the Moment i try to implent the Instagramm API in a Website. Which is able to get Access Token and then follow a User. I searched Google but i wasnt able to find a usefull code Example for PHP ? Only thing i found was this https://github.com/cosenary/Instagram-PHP-API Now i coded this one here error_reportin...
Instagramm API PHP Follow User
It's trying to append the port to the ip address, but is formatting incorrectly when the IP Address is IPv6Github Issue. Looks like there have been similar issues in the past and the solution has been to try again on a later version.If you can force the VM to have an ipv4 address, that may work around this issue (hyper...
I installed minikube successfully on my windows machine and was using it. All of a sudden minikube start command failed to work one day, so I force-deleted .minikube directory and also removed minikube from Hyper-V Manager on Windows.After this, I am unable to create/start minikube on my windows machine. I can see that...
Unable to start minikube in windows using hyperv
While this would be thrown off by large binary files in the repository, you could try using github'ssearch criteriato start. You can filter based on latest push, language, and size among other criteria."size:>=30000Matches repositories that are at least 30 MB.""css pushed:<2013-02-01Matches repositories with the word "...
I am looking for a way to analyze GitHub projects. I am especially interested in size of code and lines of code metrics.Before I decide if I go for a library or reinvent the wheel it would be great to find comparable projects and look at those metrics to decide how much afford it is to well reinvent the wheel.Often I w...
Way to analyzing projects on github without downloading them?
Seethis:Multiuser cronAs Unix is a multiuser OS, some of the apps have to be able to support multiple users, cron is one of these. Each user can have their own crontab file, which can be created/edited/removed by the command crontab. This command creates an individual crontab file and although this is a text fil...
I know the proper way to add cron job for the user www-data is to runcrontab -u www-data -eSo to do that in dockerfile I should add a line likeRUN crontab -u www-data /some_where/crontab.confBut I found if I do this, it works too (the docker image is based on alpine3.7).ADD /some_where/crontab /etc/crontabs/www-data RU...
Why adding a file /etc/crontabs/www-data in dockerfile will make the cron job for www-data when run the container (alpine based)
The best way is to use some dependency management system like npm or yarn
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago. ...
Best way to include other CSS/JS libraries in a Github repo? [closed]
Ignore controllers completely for this. Models serve as an abstraction layer for accessing data. In your case, you have some locally persisted data in the form of a database, and you have remote data you're retrieving as JSON over HTTP. So you have your regular ActiveRecord models, and you have a model for your JSON da...
following situation (ror 3, ruby 1.9).i've got a model with some fields.now i want to grab a json feed (f.e. every hour) compare the content with my stored model objects and put in a new model object if there is a new item in this json feed.i'm not shure where to put this automated action. i don't think doing this in a...
RoR - where to put a automated process
A synthesized retained setter looks like : - (void)setValue: (id)newValue { if (value != newValue) { [value release]; value = newValue; [value retain]; } } In your case, you have two valid methods : 1) Create a temp var, alloc/init (= retained), set to property, release. IView *tem...
I have the following in the header: @property (nonatomic, retain) UIView *overlay; And in the implementation: @synthesize overlay; Then: UIView *tempOverlay = [[UIView alloc] initWithFrame:CGRectMake(160.0f, 70.0f, 150.0f, 310.0f)]; self.overlay = tempOverlay; [tempOverlay release]; Isn't the tempOverlay variable a...
How is retain setter implemented with @synthesize?
Move-Itemdoes not output to the pipeline by default. Use the-PassThruswitch:-PassThruReturns an object representing the item with which you are working. By default, this cmdlet does not generate any output.That will pipe it directly intoRename-Itemand you have to specify-NewNameonly:Get-ChildItem -Path $folderpath -Fil...
In this script, everything is working as I expect for the most part. However, the rename operation will only work outside of these piped commandsGet-ChildItem -Path $folderpath -Filter $folderfile | Move-Item - Destination $destination | sleep 5 | Out-File -FilePath $logpath -AppendIf I try to do the rename as part o...
Powershell: Why does Rename-Item not work as a piped command?
Looks like in that final Pod you are trying to deploy is aNodeAffinityrule that does not match any of your nodes and would alsonot match if the autoscaler would add an additional node. You might want to remove that rule.
I tried to create new node in k8s with the process of autoscalarIt is working well if I have 1 node and then it create new nodepod triggered scale-up: [{shoot--system-z1 1->2 (max: 20)}]when I tried to do it in the second time when I have 2 nodes and it try to create the 3 node then I got an errorpod didn't trigger sca...
How to run AutoScalling more then one time?
The issue seems to be caused by the fact that there is no version field in package.json. While the fork that has no issue contains the field. This was apparently a bug that was fixed in NPM 5.x.
I have problems installing some NPM packages. This happens when NPM package (angular2-materialize for example) is installed from the repo: npm i InfomediaLtd/angular2-materialize Also happens with its forks, too. I've tried to to create own forks with same results. Installing it results in error, Error: Command fail...
'Could not read from remote repository' on NPM install from GitHub public repo
Thank you for using AWS CodeBuild. For builds set with git based sources, the Git SHA can be found in resolvedSourceVersion field in CodeBuild.batchGetBuilds() output, or the CODEBUILD_RESOLVED_SOURCE_VERSION environment variable during the build. The resolvedSourceVersion in the API output is only available after the ...
How can I get the Git SHA of a commit from a CodeBuild build when the source code is managed by CodeCommit?Like any other Git repository, each CodeCommit commit gets a unique Git SHA. When CodeBuild executes abuildspec.ymlthe Git SHA can be read from theCODEBUILD_RESOLVED_SOURCE_VERSIONenvironment variable.However, I w...
Git SHA in CodeBuild?
As it is mentioned in links I have provided in comment section - read more: docker-desktop-pv, docker-desktop-pv-local - solution/workaround is to use different volume type. Change hostPath volume to local. Your PV yaml file should look like: apiVersion: v1 kind: PersistentVolume metadata: name: pvolume labels: ...
I have problem with PersistentVolume in local K8s cluster. When I am rebooting PC or close and open Desktop Docker I lose data in my PV. This is my PV config: apiVersion: v1 kind: PersistentVolume metadata: name: pvolume labels: name: pvolume spec: storageClassName: manual volumeMode: Filesystem capacity...
K8s local Persistent Volume on Docker Desktop loses data after Docker Desktop restart
Certificates can be compared in many ways, but the two most common are byBy ThumbprintCryptographic hash of the public keyCalculated on request – not stored in the certificate itselfUnique across all certificatesDifficult to fake when using a collision resistant hash algorithm(http://en.wikipedia.org/wiki/Preimage_atta...
I use this code to install a self-signed certificate (user has to confirm the installation).// Constructor public MainPage() { this.Loaded += new RoutedEventHandler(MainPage_Loaded); } private async void MainPage_Loaded(object sender, RoutedEventArgs e) { try { S...
How can I check whether a ssl certificate is installed?
One option is to add an invisible (i.e. transparent) view on top of all the others. Ideally, you reduce its alpha value to make it sort of gray out the underlying user interface and display a spinner or something like that to indicate that the device is working.
I am writing an application for a 2g device and I am receiving memory errors. The errors are created by saving a large file to the device while searching sql libraries and displaying popups (picker view mostly).I know this is a bit vague but I was wondering if there was a way to pause user interaction while letting th...
Iphone memory warning pause application
By default, you don't have a logging system on Istio. I mean, besides the native logging of Kubernetes.Zipkin and Jaeger are tracing systems, meaning for latency, not for logging.You can definitely get this info through Istio components, but you will have to set it up first. I foundthisarticles; in Istio website about ...
I have a project with microservices in kubernetes connected though rest swagger clients. I want to make logging of all request and response payloads. So that for each request there is an id and information about where it came from with full payload. And for each service to service call as well.Is it possible to do that...
Logging with istio
Do functions go to the heap or stack if the class is on the heap? The C++ language does not have such thing as "heap" or "stack". Automatic variables have automatic storage. Dynamic objects have dynamic storage. Static variables have static storage. Thread local variables have thread local storage. Functions do not ...
class Foo{ public: void foo(){ int x, y; // go to the HEAP or the stack? } }; int main(){ Foo *f = new Foo(); f -> foo(); delete f; } if I create a class instance on the HEAP and activate a "class method" where is the function local variables and "metadata" stored? on th...
Do functions go to the heap or stack if the class is on the heap?
The purpose of Kubernetes is to make it easier to organize and schedule your application across a fleet of machines. At a high level it is an operating system for your cluster.Basically, it allows you to not worry about what specific machine in your datacenter each application runs on. Additionally it provides generi...
Closed.This question is seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. It does not meetStack Overflow guidelines. It is not currently accepting answers.We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-si...
What does Kubernetes actually do? [closed]
If you are running Cassandra in a container then with the sufficient port mappings you should be fine for that one container. However, other Cassandra nodes should be made aware of the IP change of the container.TheCASSANDRA_BROADCAST_ADDRESSis meant for this. It specifies which IP address to advertise to other nodes. ...
I often observe that container IPs change during run time, hence I was wondering if these occurrences have any consequences especially when it comes to Cassandra containers in a cluster.Are there any precautions to consider or does Docker resolve everything?For example, is it possible for a container cluster node to be...
Are there precautions that one should take when a Cassandra Docker container changes IP?
Use theapi/rules/searchto get this data. You'll find the default severity in the "severity" field. To also get activated severity per profile, addactivitiesto yourf(field list) parameter value.
Is there a way to get information about a rule's default severity (the one that is set by the language plugin) through the Web Service API?
Default rule severity in SonarQube Web Service API?
I had the same problem when creating a client using thelocalhosturl. I replacedhttp://localhost:5001withhttp://host.docker.internal:5001and it worked.
I'm new to docker and I have a visual studio solution with 2 dotnet core projects - UI and API. I've added docker support for both projects and they worked normally anytime I debug. Now they have an http client to call the api from the web and it suddenly starts giving the "Cannot assign requested address" error.The we...
System.Net.Http.HttpRequestException: Cannot assign requested address - error while communicating between 2 .net core web apps in localhost
Having a closer look to the console, you'll see the following message :You must install a plugin that supports the language 'php'.So all you need to do is to install the SonarPHP plugin:https://docs.sonarqube.org/display/PLUG/SonarPHP
Trying to setupSonarqubefor PHP code base for codecoverage analysis. I have modified the sonar-scanner.properties file with the following configuration.Path = sonar-scanner-2.8\conf\sonar-scanner.properties sonar.projectKey=PhpProject sonar.projectName=PhpProject sonar.language=php sonar.sources=C:/Users/Hameetha/Downl...
How to configure Sonarqube for PHP projects?
While running data source as browser mode all request from browser directly goes to data sourceBut while choosing server mode request goes from browser to grafana backend (Server node where grafana is installed ) and from there it redirect to data source.If you are using server mode then make sure if you are able to ac...
I'm trying to use Elastic Cloud(Elasticsearch) as data source in Grafana. In the below, I'm trying to type a url for that Elastic server(service) in the cloud.My Elastic Cloud has these three applications running.I tried copying endpoint URL in Grafana. And It doesn't seem to work. so I'm trying to figure out the reas...
How to specify a URL in Grafana for DB applications(Elasticsearch) on Cloud
1 How is GitHub authenticating my user By the public key registered to the GitHub account, matching the private key used locally. Try a ssh -Tv [email protected] to understand which private key is actually used. I prefer changing the remote URL to make sure I am using one...
I have 2 GitHub users, for work and personal. Each has their own ssh key: the personal one happens to be id_rsa, and the work one is id_ed25519. Each key is associated with the correct account in GitHub. When working on work stuff, I changed ~/.ssh/config to use the work SSH key for everything (such as pushing to [ema...
GitHub authenticates as the wrong SSH user
HTMLParser is not designed to be stopped. For that you want to use a streaming parser likexml.saxorxml.etree.cElementTree.Is it really a problem to digest the entire HTML file? The expected use case goes like:extractor = Extractor() ... feed html to extractor using one or more .feed() calls ... extractor.close() if ex...
I have a use case telling that when a tag islinkand it's attributes arerel=dns-prefetchthen just say that pre resolving dns is enabled.I have made a flag aspre_resolve_dns_enabledand set it to true as follows.class Extractor(HTMLParser): def __init__(self): HTMLParser.__init__(self) self.pre_resolv...
How to tell python HTMLParser to stop
I would recommend writing anactualtemplate:https://docs.okd.io/latest/dev_guide/templates.html#writing-templatesSpecifically it would look something like:apiVersion: v1 kind: Template metadata: name: multiple-pvcs objects: - apiVersion: "v1" kind: "PersistentVolumeClaim" metadata: name: "claim1" spec: a...
Here is the sample template for single PersistentVolumeClaim with name : claim1apiVersion: "v1" kind: "PersistentVolumeClaim" metadata: name: "claim1" spec: accessModes: - "ReadWriteOnce" resources: requests: storage: "5Gi" volumeName: "pv0001"How can i add multiple PersistentVolumeClaim in the sa...
How to have multiple object types in a single openshift yaml template?
The 'oracle sqldeveloper' stores all the connection details in an xml file ie. connections.xml.If you want to have a backup for the connection details, you will have to navigate toIn Windows 7 / 10C:\Users\<YourUserName>\AppData\Roaming\SQL Developer\systemX.X.X.X.X\o.jdeveloper.db.connection.X.X.X.X.X.X.X\In old windo...
What is the process to take a backup of all the connection-details (viz. host,port,sid,etc.) in 'oracle sqldeveloper' software.How can we import these connection details to some other machine ?
How to take a backup for the 'connection details' in sqldeveloper?
I went back to the Kibana documentation and I found that that it was just necessary to modify the Kibana yaml file to:apiVersion: kibana.k8s.elastic.co/v1 kind: Kibana metadata: name: kibana labels: various... spec: version: 7 http: service: spec: type: LoadBalancer tls: selfSign...
I have installed the ECK crds and operator following the Elasticsearch documentation, the cluster is up and runs fine, I can also port forward the kibana service and I am able to use the ui with this command:kubectl port-forward service/kibana-kb-http 5601However, if I write an Ingress I just cannot access it, at the v...
Ingress for ECK Kibana
Apparently, when using the default S3 bucket as the origin - it won't respect the redirection rules.By default, it tries to use:example.com.s3.amazonaws.com, but you should force it to a custom origin:example.com.s3-website-us-east-1.amazonaws.cominstead.Once I forced it, it started to work.
I have a custom redirection rule for my bucket on S3:<RoutingRules> <RoutingRule> <Condition> <KeyPrefixEquals/> <HttpErrorCodeReturnedEquals>404</HttpErrorCodeReturnedEquals> </Condition> <Redirect> <Protocol>https</Protocol> <HostName>example2.com</HostName> <ReplaceKeyPref...
Custom redirection rules on S3 returns 403 when using CloudFront
You must not have read thengx_http_ssi_module documentationproperly (especially its'SSI Commands' section): it explains the commands format.You need to set thessidirective toonin the context you wish SSI commands to be parsed, then you need to serve files there which contains those commands.For example:server { lis...
According tothe docsyou can set the date format in nginx with the commandconfig timefmtbut I can't find any documentation/example on where or how to set that.The default shows a string like "Sunday, 26-Oct-2014 21:05:24 Pacific Daylight Time" and I want to change it toyyyyMMddI'm running nginx on Windows if that makes ...
How to set date format for nginx $date_local
14 The short answer is that it is not supported. From the Docker docs: The <src> path must be inside the context of the build; you cannot ADD ../something /something, because the first step of a docker build is to send the context directory (and subdirectories) to the dock...
when i add a file or directory to docker image by a Dockerfile, I use ADD or COPY , but the file path i want to add or copy must a relative path to the Dockerfile's directory. Is there a method for adding a file or directory from localhost to docker image by using absolute path? by the way, why the "docker cp" can on...
How can I copy a directory or file to a docker image from localhost on ubuntu14.04?
m4.4xlarge instances have 16 logical CPUs, so it looks like your EC2 instance is reporting it as having a single socket, with 1 physical CPU that has 8 cores. Each core can execute two threads simultaneously (Intel Hyperthreading technology) so each core is presented as 2 logical CPUs. CPU(s): 16 <- lo...
I have recently set up an instance (m4.4xlarge). when I execute 'lscpu' command, the output looks something like the following: CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 16 On-line CPU(s) list: 0-15 Thread(s) per core: 2 Core(s) per socket: 8 CPU socket(s...
AWS EC2: The number of cpu cores available on an instance
1 I'd suggest you fork Dep, so that you can make changes into it, make pull requests, etc. Share Improve this answer Follow answered May 29, 2020 at 18:48 Alexei DanchenkovAlexei Danchenkov...
I have a repository that I'm working on, let's call it Super. I need code from an open-source repository, let's call it Dep, in Super's repository. I need to be able to pull from Dep's original repository in case there are any changes, and I need to be able to make additions to Dep's code and push them to Super's repo...
What is the best way to work with another repository in my repository?
This error means that your program is not listening on0.0.0.0portXYZ.Check to see if your program is instead listening onlocalhost. If it is change to0.0.0.0which means all available networks.localhostmeans do not listen on any network interfaces and only accept connections from inside the computer.Then double check th...
SituationI wrote a simple program in python. It's a simple socket chatting program. In my program, the client just connect to an address (ip, port) and send a message, while at this time the server is ready and receives the message and prints it. I can assure the program is correct, since I tried on my computer.I have ...
Can't connect to my google cloud VM instance through tcp using python
1 You can add a limit in the SQL query depending on what SQL database you use. Or you can try using jdbcTemplate.maxRows=1000 to use that option. But it depends on the JDBC driver if it supports limiting using that option or not. And also mind you need some way to mark/dele...
I am trying to cache some static data in Ignite cache in order to query faster so I need to read the data from DataBase in order to insert them into cache cluster. But number of rows is like 3 million and it causes OutOfMemory error normally because SqlComponent is trying to process all the data as one and it tries t...
Camel Sql Consumer Performance for Large DataSets
5 See Application Verifier, LeakDiag, UMDH, and Debugging Tools for Windows in general. All of which are free. For a guide on how to use them, see Advanced Windows Debugging. Share Improve this answer Follow ...
This question already exists: Closed 13 years ago. Possible Duplicate: Memory leak tool for C++ under Windows I used to work on a Mac project and one thing I really enjoyed about XCode was its profiler. I found many a bug by just running my ...
How to do memory profiling on Windows? [duplicate]
If you are only using newLaser inside of fireLaser you should define it as a local variable. This will seem like a insignificant change, but when you do onComplete = function() display.remove(newLaser) end you are creating a enclosed function. When a function is written enclosed in another function, it has f...
I'm making a shooting game with solar 2d, everything was working fine but after some time I feel that the games frame rate is dropping, but I did steps to delete my laser when the task finishes local function fireLaser() audio.play( fire sound ) newLaser = display.newImageRect( mainGroup, objectSheet, 5, 14, ...
There is a problem in memory-management of object in lua programming
We found out what happens: The old node.js server doesn't send all the required ssl certificates. The nginx sends all certificates (intermediate, etc.) with every request.
we are using node-http-proxy for a while and it works fine. But as our system grows bigger, we want to move to nginx. We consume about 100 request per second at the moment, which produce an outgoing traffic of about 1mb/s. Our tests with nginx (same amount of requests, same backend servers and same responses) produce ...
nginx produces four times more traffic than node-http-proxy
To set the meta space to 100M, use-XX:MetaspaceSize=100M.https://blogs.oracle.com/poonam/entry/about_g1_garbage_collector_permanent
I have the problem, that the default Metaspace size is too small.Right after the startup of my (Tomcat and Spring based) web application, there is a major collection, because the Metaspace is exhausted. Before Java 8, I could set the initial PermGen size with-XX:PermSize. Now, I'm searching for a Java 8 equivalent for ...
How to set the minimum Metaspace in Java 8
You can usegeneric-webhook-plugin,For instance, GitHub webhooks in Jenkins are used to trigger the build whenever a developer commits something to the branch, in each webhook we have following infogit repository name branch which was changed commit id commit message commit author etc ...To avoid loopsave Jenkins commit...
I'm attempting to create a Jenkins pipeline which does the following steps at a high level:Send build notificationsRun lint testsRun CI testsUpdate version information in a couple of filesUse git to commit the updates to the files, create tags, and push changes to originUpload files in project to another systemSend not...
Prevent Jenkins job from launching additional jobs with git commit
If that bad code is the result of one or several commits, usegit revertto cancel them locally.That will create anewcommit cancelling the bad code, and you can push that commit.Given one or more existing commits, revert the changes that the related patches introduce, and record some new commits that record themPushing t...
I'm using something likethison my production server, setup as a post-receive hook on github, and it's basically set to pull changes on a specific branch whenever it gets a properly formatted request from github.Now, let's say someone pushed bad code to master, which automatically pulled on production and broke everythi...
Github post-receive hook auto-pull rollback
So far, it seems there is no ideal solution for your problem However, it is possible to do some workaround to have something like that workingYou cannot have per branch environment variables, but you can have per branch commandsSo, you can define different variables for different branches and run the appropriate comman...
I'm currently using AWS Amplify to manage my front-end. I've been manually injecting the environment variables throughout the console.While I have seen that (at least in this case), the environment variables are correctly protected as mentioned in theAWS docs. I wanted to know if it was possible to set in theamplify.ym...
Is it possible to set environment variables per branch in the Amplify.yml file (AWS Amplify)?
If you're on 64-bit Windows (or you're happy to run 32-bit Windows with the /3GB switch), then you can configure Visual Studio to be /LARGEADDRESSAWARE, which, rather than 2GB, will give it 4GB (or 3GB on /3GB) of address space to play with. See, for example, http://old.stevenharman.net/blog/archive/2008/04/29/hacking...
IDE Configuration: Visual Studio 2008 + Resharper 4.5.1 + Agent Smith 1.1.8. There is no any sophisticated configuration for last to add-ins. Solution description: 33 class libraries + web site with 200+ pages. Symptoms: After an hour of work under tuned on Resharper the IDE starts to throw the OutOfMemoryExection e...
Resharper throws OutOfMemoryException on big solution
As you are using ingress already it does not make much sense to use NodePort. As you already have a way to access your application. Its totally fine to have a service type you need at service level that you need for the internal access(within Kubernets) purpose.
I have a Kubernetes services that I would like to be accessible from outside the cluster.I've setup Traefik and have created an Ingress file for that service and am able to go to 'somemadeupdomain.com' and access the service fine. (Having locally added a line in my hosts file).However my question is with the servicetyp...
Kubernetes - Have an ingress on a service - is it ok for its type to be ClusterIP
I figured out that I can get it to work by usingcdk deploy --app 'cdk.out/' <my-stack>Then it will refer to the CDK assets in cdk.out and build from there, so there is no need to upload all the files and do a "cdk synth" all over again
I would like to know if its possible to do something like this:Do a CDK synth locally which will create a cdk.out folder (it should have all the required files for a cdk deploy?)Upload the cdk.out folder to a S3 bucketDo a CDK deployment based on the content of the cdk.out folder in S3 using "cdk deploy" in CodeBuildI ...
Deploying CDK Stack from cdk.out folder on S3 bucket (AWS)
Just had this issue on iOS too and fixed it by setting the DNS refresh timeout:System.Net.ServicePointManager.DnsRefreshTimeout = 0;It's a temporary fix, but works for now. Haven't tested it on Android yet. Will do that too shortly.Edit: Android tested successfully.
So a rather peculiar issue, but a pretty bad one nonetheless. When a user enters our app with no internet at all, we get back aNameResolutionFailureas the error message for trying to make a API call viaHttpClient. Okay, that's fine. The issue though is, when the user then connects to internet, goes back to app, and att...
NameResolutionFailure vs ConnectFailure issue
You could use:Order Allow,Deny Deny from 66.249.74.0/24 Allow from allOr you could use this:RewriteEngine on RewriteCond %{REMOTE_ADDR} ^66\.249\.74\. RewriteRule ^ - [F]ShareFolloweditedAug 28, 2013 at 8:52answeredAug 28, 2013 at 8:43PrixPrix19.5k1616 gold badges7575 silver badges134134 bronze badges9I want to tell yo...
I have detected that a range of IP addresses may be used in a malicious way and I don't know how to block it.I would like to block the range 66.249.74.* from accessing my website by using the .htaccess file.
How to Block an IP address range using the .htaccess file
$aws configure AWS Access Key ID [****************LT6U]: AWS Secret Access Key [****************iGrm]: Default region name [ap-south-1]: Default output format [json]: specify: Default region name [ap-south-1]:Mine isap-south-1. Yours may be different.
botocore.exceptions.NoRegionError: You must specify a region. During handling of the above exception, another exception occurred: -----------------------------------------------------------------------------I've already configured my AWS region in[~/.aws/config]but this problem arises again and again.How can I solve th...
botocore.exceptions.NoRegionError: You must specify a region
It is possible to read the data in small chunks as it is available in read_sql function. try something like: import pandas as pd import awswrangler as wr path='s3://bucket/prefix' def write_parquet_chunk(chunk, path, index=False): wr.s3.to_parquet( df=chunk, path=path, dataset=True, ...
I am looking for a way to extract data from a database and push that data into a parquet dataset in S3 in a environment with limited memory. If I proceed like this: with someDB.connect() as connect: df = pd.read_sql("SELECT * FROM table", connect) wr.s3.to_parquet(df, dataset=True, path="s3://flo-bucket/") Th...
AWS Wrangler - Pandas red_sql to S3 in a limited memory environment
For killing the job:0 18 * * 0,1,2,3,4 /usr/bin/pkill -f MotionDetector.pypkillkills a process by name. While the default search criteria is to find the process by its full name,-fargument allows you to search by any of the parts in the process name.Updated solution to account for the scenario raised by@håken-lid:When ...
My goal is to run my python script each day (besides Friday and Saturday) at 10:00 and terminate it by 18:00.I added the following to the crontab but the second command isn't working.0 10 * * 0,1,2,3,4 /home/pi/MotionDetector.py 0 18 * * 0,1,2,3,4 /home/pi/MotionDetector.py killall -9 MotionDetector.pyUsing Linux 2.7.9...
Stop / Kill a Python script using cron
You're using version 4.15 of the SonarJava code analyzer. Version 4.3 of that analyzerdropped the relevant metrics. That's why your widget has no data.EditI've inadvertently suggested that you regress your version of SonarJava. As a rule, you always want to move forward, never back. Each subsequent version of a code an...
Our Sonarqube Version – 5.6.7 Java Plugin Version - sonar-java-plugin-4.15.0.12310Problem:We have configured (Documentation & Comments) widgets, But on sonarqube dashboard documentation information like (Public API & Pub. undoc. API) counts are not showing whereas comments counts are showing for java language. Does th...
Sonarqube Documentation & Comments - widgets and for java language
https://docs.aws.amazon.com/lambda/latest/dg/services-cloudwatchevents-expressions.htmlOne of the day-of-month or day-of-week values must be a question mark (?).cron(0 9-17 ? * MON-FRI *)should work.
I'm building a Cloudwatch Trigger to trigger every HOUR between the hours of 9-17 (9am-5pm) during the working week (MON-FRI)Terraform throws this error at me:ValidationException: Parameter ScheduleExpression is not valid.This is my Schedule Expression:schedule_expression = "cron(0 9-17 * * MON-FRI *)"Does anyone know ...
CRON Failed Expression
Enablingversioningon your bucket is the right solution. It can be used to protect both against accidental deletes and overwrites as well.There's a question on the S3 FAQ, under "Data Protection", that discusses exactly this issue (accidental deletes/overwrites):http://aws.amazon.com/s3/faqs/#Why_should_I_use_Versioning
I am currently using S3 to store large quantities of account level data such as images, text files and other forms of durable content that users upload in my application. I am looking to take an incremental snapshot of this data (once per week) and ship it off to another S3 bucket. I'd like to do this in order to prote...
S3 Incremental Backups
Okay, looks like I found the answer...two things about the backend servers, at least for the above scenario when using IP addressses:a port must be specifiedthe port cannot be :80 (according to @karliwsn the port can be 80 it's just that the upstream servers cannot listen to the same port as the reverse proxy. I haven'...
I'm having trouble figuring out load balancing on Nginx. I'm using: - Ubuntu 16.04 and - Nginx 1.10.0.In short, when I pass my ip address directly into "proxy_pass", the proxy works:server { location / { proxy_pass http://01.02.03.04; } }When I visit my proxy computer, I can see the content from the...
Nginx Reverse Proxy upstream not working
-2When a server has a certificate signed by a sub-ca-A which is signed by a root CA (e.g. Verisign), then the server will send all the certificates as part of the server hello so that the server's certificate can be validated.In your case you only have the root CA in the truststore.As a result it is impossible to get u...
Is it possible to connect to a site using SSL where the client only has the root certificate, but the server has both the root and the intermediate certificates?I am trying to connect using HttpUrlConnection with a TrustManager containing my roots, and I get the usual handshake error:javax.net.ssl.SSLHandshakeException...
Making SSL connections without intermediate certificates using HttpUrlConnection
I think the question you're trying to ask is "How can I use CacheBuilder without having to specify a CacheLoader?" If that's the case, then there will be support for this in Guava release 11.0. In the meantime a build() method on CacheLoader is already checked into trunk (as of this morning):http://docs.guava-libraries...
The question says it all I'd like to use CacheBuilder, but my values are pulled in asynchronously. This worked previously with MapMaker as the CacheLoader wasn't a requirement. Now I'd like to know if I can hack this up or if there are any non deprecated alternatives. Thank you.
How does someone use Guava's CacheLoader asynchronously
If this is something that needs to be regularly run for maintenance look into Kubernetes daemon set object.
So like you said I created a another pod which is of kind:job and included the script.sh.In the script.sh file, I run "kubectl exec" to the main pod to run few commandsThe script gets executed, but I get the error "cannot create resource "pods/exec in API group"So I created a clusterrole with resources: ["pods/exec"] a...
How to execute shell script from POD A to another POD B
The cron in your trigger will execute at 02:00 on the 1st of every month.If you wish to execute it at 00:02 every day using the 7 field Quartz contrab format, use:0 2 0 * * * * ?Here's a quick summary of how crons are formed, snipped from theCron How To on Ubuntu's site:Each of the sections is separated by a space, wit...
public static ITrigger FireEveryDayAtMidnight() { ITrigger trigger = TriggerBuilder.Create() .WithIdentity("trigger3", "group1") .WithCronSchedule("0 02 01 * * ?") .ForJob("myJob", "group1") .Build(); return trigger; }I have a problem thoroughly u...
Is this Cron Trigger Expression valid?
You need a strategy to deal with large data sets. Possibilities are:Use a system with enough memoryReduce precision of your data set. For clustering small errors and scaling are not important, change attributes to scaled uint8 or uint16 if possible. (And obviously, delete all irrelevant data)Use more appropriate algori...
I have a really large file, around 10GB. I can't load it to the memory, so I managed to transfer it to .mat file. But 'out of memory' problem still comes up when I tried clustering. The ultimate solution to it I think is put those memory thing to the disk. But I need to call kmeans() method from matlab. Is there a way ...
matlab out of memory ultimate solution
Since you are using Gradle you would be on a better position if you useFROM gradle:X.Y.Z-jdk8-branch– replaceX.Y.Zwith your project's Gradle version andbranchwithalpine,slim, etc.; have a lookherefor the available tags and/or releases.And I know this is off topic, again, but using "Docker inside Docker" doesn't work qu...
I am creating a docker image with following Dockerfile:FROM java:openjdk-8-jdk-alpine USER root RUN apk update && apk add docker COPY . /liveboard-tests WORKDIR /liveboard-tests ENTRYPOINT ["./gradlew", ":integration-tests:test", "--tests", "*Foo*"]For some reason the docker container does not contain javac or tools....
Docker: java:openjdk-8-jdk-alpine image missing javac and tools.jar
Following theissue, it's maybe worth to summarize how to find the correct container pid / proc for a pod:Run some application:$ kubectl run bootcamp --image=docker.io/jocatalin/kubernetes-bootcamp:v1Find the containerID:$ kubectl get pods --output=jsonpath='{.items[*].status.containerStatuses[*].containerID}' docker://...
Create a deployment as below:apiVersion: extensions/v1beta1 kind: Deployment metadata: labels: owt: hello pdl: com app: world idc: xg add: parameters-48 name: parameters-48 spec: replicas: 2 template: metadata: labels: name: parameters-48 spec: containers: -...
create a "Best-effort" pod and its oom score not 1000 but -999
So figured out the reason. It was directory structure that was incorrect. In my first one i had the index.html inside the html folder, but it has to be outside the folder.
I am trying to deploy a website on vercel. Link to the repository:https://github.com/Adam-Simon1/Price-Saver. Its my first 'bigger' project i am working on. Its far from finished, but i just want to try deploying it. I have never used vercel or any service like that so appreciate any help given.The problem is its retur...
Vercel not registering html, css, js files from a repository
Try the following in public_html/.htaccessRewriteEngine on #if the request is not for and existent file RewriteCond %{REQUEST_FILENAME} !-f #and the request is not for and existent directory RewriteCond %{REQUEST_FILENAME} !-d #then rewrite it to /a/b/c/request RewriteRule ^(?:xxx/)?(.*)$ /xxx/a/b/c/$1 [NC,L]This will ...
I have web project where index file is on deep folder.Lets say my project index is onlocalhost/xxx/a/b/c/index.php, but I want to hide/a/b/cpath becomelocalhost/index.php.How to code.htaccessand where I should put it?Thank you.
How to hide path to real index.php
0 To backup your database I suggest to use mysqldump, that is more safer then a simple file copy. For volume backup you can also run a container, link the volume and tar the contents together. In both cases you can use additional containers or process injection via docker e...
I am in the process of building a simple web application using NodeJS that persists data to a MySQL database and saves images that have been uploaded to it. With my current setup, I have 4 Docker containers - 1 for the NodeJS application, 1 for the MySQL server, 1 Volume Container for the MySQL Data and 1 Volume conta...
What's the correct way to take automatic backups of docker volume containers?
You could use Google Cloud Builder to achieve this goal. Create a trigger on your repository, and the triggered build deploys the new code to Google Cloud Function.I made a quick example:https://github.com/Philmod/auto-deploy-gcfCheers, Philmod
I can't figure out how to automatically deploy newly pushed commits of Cloud Functions either from Cloud Source Control or from GitHub directly. I have found a similar solution by creating another function and GitHub webhook, but since Functions can't SSH (and have SSH keys installed), it is only working with Public Re...
Auto deploy Google Cloud Functions from Google Cloud Source Control
Nginx does not resolve resolve at runtime if your server is specified as part of an upstream group or in certain other situations, seethis SF postfor more details. This means that Nginx never becomes aware of new containers being registered for service discovery.You haven't posted your Nginx config so it's hard to say ...
I am running 2 services in AWS ECS fargate. One is with nginx containers running behind the application load balancer. And the other is running with a node.js application. Node application is running with service discovery and Nginx containers proxy to the "service discovery endpoint" of node application containers.My ...
AWS Service discovery, nginx and node issue
Well I figured out thataws ecs describe-task-definition ${TASK_FAMILY}was working whileaws ecs describe-task-definition ${TASK_FAMILY}:${TASK_REVISION}was throwing the sameInvalid revision number error.So I tried the update-service command without using ${TASK_REVISION} variable like this:aws ecs update-service --clust...
I've been trying to setup CI/CD for my ECS cluster using jenkins. I followed thisblogto do the same. But I'm getting this error:An error occurred (InvalidParameterException) when calling the UpdateService operation: Invalid revision number. Number: 49The command used to update the service is:aws ecs update-service --...
AWS ECS InvalidParameterExcpetion when calling the UpdateService Operation
Containers are merely an instance of the image you use to run them. The state of mind when creating a containerized app is not by taking a fresh, clean ubuntu container for instance, and downloading the apps and configurations you wish to have in it, and then let it run.You should treat the container as an instance of ...
I am trying Docker for the first time and do not yet have a "mental model". Total beginner.All the examples that I am looking at have included the--rmflag to run, such asdocker run -it --rm ... docker container run -it --rm ...Question:Why do these commands include the--rmflag? I would think that if I were to go throug...
What is the '--rm' flag doing?
Have you looked intoForeman? Foreman makes it easy to start and stop your application if it has multiple processes. Incidentally it also provides anexportfunction that can generate somesystemdorupstartscripts for you to (re)start and stop your application.As you are already using capistrano you can usecapistrano-forema...
I've been struggling with this a week now and really can't seem to find an answer. I've deployed my Rails App with Capistrano. I use Puma as a server.When I deploy, everything works ok. The problem is to get Puma to start at reboot and/or when it crashes.To get the deployment setup, I've used thistutorial. I'm also usi...
How to get systemd to restart Rails App with Puma
Message_Header_type inside of Raw_Message_Type is still taking 2 bytes as you would expect, but the compiler is padding the structure for alignment reasons, so your Raw_Message_Type is 132 bytes long instead of the 130 bytes you expected. This is probably because 32-bit aligned accesses are more efficient on your pro...
I have the following structs in a C program. typedef struct { unsigned char msg_id : 8; unsigned char msg_num : 8; } Message_Header_Type; typedef struct { Message_Header_Type header; int msg[32]; } Raw_Message_Type; What I'm seeing is that the header in the Raw_Message_Type is taking up 4 bytes but I only wan...
Byte allocation in struct containing struct within C