Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
Problem is that nginx tries to resolve any DNS names you define in the configuration at startup time (rather than request time) and it fails if it cannot resolve one of the names. Check this answer for possible solutions/workarounds: https://stackoverflow.com/a/32846603/1078969
OVERVIEW Nginx runs in Docker container, also NodeJS application (worker) runs in another one, all managed by Docker Compose. Configuration has an upstream: container of worker 1 is also up and running, while node with worker 2 is not. upstream nodeapp { server appconfig_host-nodejs-app-worker_1:3000; server ...
Nginx container exits with code 1 when upstream node is not available
The repository you linked to is owned by the user ghettonet. The commits are linked to your "andrewcooke" account by email address. Your "andrewcooke" account does not own the ghettonet/GhettoNet repository. Did you perhaps create the "ghettonet" account and then forget about it? Have you tried password recovery on th...
About 18 months ago I wrote some code and stuck it on GitHub. The commits there are under my name. And I if I log in and then click on "andrew cooke" (from a commit message) I end up at a page which says "this is you". So it's me, I guess. But the "member from" date is Feb this year. And on that same page it says ...
How do I "claim" a GitHub repo? Or find out the owner?
apache can't create a rewrite with an arbitrary number of parameters since it has to work off of a PCRE expression. You would have to use PHP to do this. However, apache, is still involved:RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php/$0 [PT]This will route all nonex...
how can i use htaccess to catch a friendly url like/error/access/notallowedand break it down toerror.php?$1=$2but the real question is what if i have another url/something/name/joe/address/123_Maples_Lane/city/somewhereand do the same thing dynamically if all the odd segments are key value pairs to the even segments.wo...
htaccess and php to dissect REQUEST_URI or QUERY_STRING
I found the answer hereSecuring Your Istio Ingress Gateway with HTTPSThere is istiodocumentationabout that.
I am using ISTIO for service mesh in Azure kubernetes. I have configured private DNS to setup the FQDN. Currently the application is accessible over http protocol(eg:http://myapp.contoso.com) and I would like to be secured with https protocol(eg:https://myapp.contoso.com).I know I have to change the service port to 443...
Azure kubernetes - Istio certificate installation?
We have been using htaccess to determine the caching rules of the clients. We explicitly give the cache a 24h lifetime and we put no-cache rules the day before we do the update. It has helped but it is tedious and not so reliable.Just posting it to give you ideas if no one answers, but I would really love to get the an...
I'm developing sites and some visitor's browsers appear with old cache.Is there a way we can clear visitor's browser cache using codes from the server side or even javascript so they don't have to clear themselves?I cannot find the direct answer to this.There must be a way big companies do like Facebook, Ebay etc
Clearing cache after development for visitor
You can add network security group to allow outbound traffic https 443 like below:You can allow traffic for SSH, HTTP, HTTPS, and other protocols that are required for your applications to function like below.In Aks cluster configuration under networking allow inbound traffic from specific Ip address. This will allow y...
I'm working with Azure Kubernetes Service (AKS) and want to ensure that my network security is in line with industry standards and best practices. By default, AKS generates a set of network security group without specific rules, but I'd like to add additional rules to improve security.What are the common security rules...
Security rules to enhance a public facing Azure Kubernetes Service (AKS) default network security group
0 I had a similar error with mediawiki: It is more or less like upgrading the DB (by reconfiguring the mw-config) but, this time, you will provide the $wgUpgradeKey from your LocalSettings.php current config file. I re-ran the mw-config http://server-name:8080/mw-config and...
I'm trying to create 2 Docker containers, one containing a MySQL database and another containing Apache/PHP and MediaWiki. I'm using the latest images up on Docker Hub for MySQL and MediaWiki. I'm creating the 2 containers using: docker container run -d --name mediawiki --restart always -p 8080:80 mediawiki docker co...
MediaWiki Docker container can't access MySQL Docker container
1 This might work for you. Just a simple if statement to check for an empty string. for repo_dict in repo_dicts: ... if not repo_dict['description']: print('No description') else: print('Description:', repo_dict['description']) Share ...
Very simple question that I have tried multiple ways to fix but I think I am passing over something that is extremely easy to fix. import requests # Make an API call and store the response. url = 'https://api.github.com/search/repositories?q=language:python&sort=stars' r = requests.get(url) print("Status code:", r.st...
How to get through error when looping through API
It's basically a Kubernetes "API object description". A config file can include one or more of these. (i.e. Deployment, ConfigMap, Secret, DaemonSet, etc)As perthis:Specification of a Kubernetes API object in JSON or YAML format.A manifest specifies the desired state of an object that Kubernetes will maintain when you ...
I've searched online and most links seem to mention manifests without actually explaining what they are. What are Manifests?
What is a Kubernetes Manifest?
You need to set up both a domain name registration and a server configuration. The cname will send the request chris.example.com to your servers actual location on the internet 192.168.1.1 (or what ever its IP is). Then you need to set chris.example.com in the server's configuration folder so it loads the chris.exampl...
I'm hosting a API server using Docker Nginx server with Lumen, let say example.com, but now I want to change it to api.example.com. I tried editing my nginx.conf by adding server_name: api.example.com but it didn't work, but I still able to access example.com. server { listen 80; server_name api.example.com; ro...
subdomain is created via domain regitrar or web server?
You could mount your custom nginx.conf into the container in development via e.g. --volume ./nginx/nginx.conf:/etc/nginx/nginx.conf and simply omit this parameter to docker run in production. If using docker-compose, the two options I would recommend are: Employ the limited support for environment variable interpolat...
I'm just getting started with Docker. With the official NGINX image on my OSX development machine (with Docker Machine as the Docker host) I ran up against the bug with sendfile and VirtualBox which means the server fails to show changes I make to files. The workaround for this is to use a modified nginx.conf file th...
Docker: how to manage development and production settings?
I know this is an old question but this seems to be supported now.PostgreSQL versions 9.4.9 and later and version 9.5.4 and later support event triggers, and Amazon RDS supports event triggers for these versions. The master user account can be used to create, modify, rename, and delete event triggers. Event trigg...
I need aneventtrigger on my RDS Postgres database. Ultimately, I need to be notified whenever there is a change to the schema. In plain old Postgres (i.e. a non-RDS instance) this works fine. However, in RDS running the following:CREATE EVENT TRIGGER audit ON ddl_command_start EXECUTE PROCEDURE stat_audit();Results in:...
Create Postgres Event Trigger in AWS-RDS
11 I had the same problem but in docker-compose context. Here is how I managed to make it work: # docker-compose.yml version: '3' services: my_service: image: my/image environment: - "PS1=$$(whoami):$$(pwd) $$ " Just pass PS1 value as an environment variab...
I want to set $PS1 environment variable to the container. It helps me to identify multilevel or complex docker environment setup. Currently docker container prompts with: root@container-id# If I can change it as following , I can identify the container by looking at the $PS1 prompt itself. [Level-1]root@container-id...
How to set PS1 in Docker Container
By default,kubectlcommands operate in thedefaultnamespace. But you created your pod in themynamespacenamespace.Try one of the following:kubectl get pods -n mynamespace kubectl get pods --all-namespaces
I am running the commandkubectl create -f mypod.yaml --namespace=mynamespaceas I need to specify the environment variables through a configMap I created and specified in the mypod.yaml file. Kubernetes returnspod/mypod createdbutkubectl get podsdoesn't show it in my list of pods and I can't access it by name as if it d...
kubectl create doesn't seem to do anything
Solved in comments, deleting a namespaced object (which is most of them) requires specifying the namespace.
I have created a StorageClass and PersistentVolume but when I try to create a PersistentVolumeClaim I get the following error, "The PersistentVolumeClaim "esp-pv" is invalid: spec: Forbidden: is immutable after creation except resources.requests for bound claims". I have tried to delete the StorageClass PersistentVolu...
Kubernetes: PersistentVolumeClaim error, Forbidden: is immutable after creation except resources.requests for bound claims
According tohttps://code.visualstudio.com/blogs/2016/11/30/hot-exit-in-insiders,The way hot exit works is to periodically make backups of unsaved files. If VS Code happens to crash, a backup restore will occur the next time the folder is opened.On Windows, the backup folder isC:\Users\<username>\AppData\Roaming\Code\Ba...
I'm interested in the backup mechanics provided by VS Code. "Crash" includes both sudden power outages and handled exceptions. As examples of what I mean,Notepad++ has a backup folder which periodically saves copies of your files. Nothing is lost beyond the last 7 seconds even if the power goes out.Atom keeps an Indexe...
How does Visual Studio Code recover data after a crash?
Geographically isolated in this documentation refers to Availability Zones and not Regions. As per AWS documentation when you create a table in one region, it's replicated in others zones to ensure the high availability. If you do some activity in the table it's updated in the replicas. The AZ's are interconnected with...
I am new to AWS. Sorry if my question is basic, got stuck with this term.AWS Global Infrastructuresays "18 geographic Regions" -> Geographic term is used along with Regions, that makes sense.DynamoDB FAQs3rd questions says, "Amazon DynamoDB storesthree geographically distributed replicasof each table to enable high ava...
Amazon DynamoDB - geographically distributed?
Istio and gRPC do work well together, when declaring your services ports' to istio just make sure to name themgrpc-somethingso the proxy knows it is h2/grpc traffic and route it properlyYou mention that gRPC adds an extra container - why not having your service speak gRPC natively ?We do have future plans with protocol...
Istio and gRPC seem complementary and I'd like to use both in the clusters.The thing is that they both add an extra container which receives/proxy communication between pods / microservices.Is it advised or not to use both in parallel in all pods?Are there particular adaptations to do if one uses both?
Is it possible to run both Istio and gRPC in a GKE cluster
Your expression"0 1 0 * * ?"means: At 00:01:00am every dayAs per your requirement : At 01:00:00am, on every Sunday, every monthUse:0 0 1 ? * SUN *Follow thishttps://www.freeformatter.com/cron-expression-generator-quartz.htmlfor more detail.
I have this code.Thiscronmessage means "do this method every Sunday in 01.00 a.m." or I make a mistake translating this?@Scheduled(cron = "0 1 0 * * ?") private void notificationsScheduler() { //implementation }
Translating and understanding the @Scheduled cron message
You just need one rule:RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/.]+)/?$ /account.php?id=$1 [L,QSA]
I got a website that using osCommerce which all the page can be access directly withhttp://www.example.com/pagename.php, but now I would like to tweak the htaccess file so that it can supportshttp://www.example.com/usernameand then redirecting tohttp://www.example.com/account.php?id=username, while other pages still ca...
htaccess Rewrite URL Without .php Extension To File
just to clarify, install via Docker file means build and image based on ubuntu plus packages you need in it. Like myssql.meanwhile container is a running instance of any docker image (which can be started and stopped like any pc).so in you case it looks like you want to build an image with mysql in it.since you want ub...
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.Closed3 years ago.Improve this questionI want to install MySQL in an Ubuntu docker container but I cant find clear instructions in ...
Is there a way to install MySQL via Dockerfile in an Ubuntu docker container? [closed]
As of CuPy version8.0.0b2, the functioncupy.lexsortis correctly implemented. This function can be used as a workaround (albeit probably not the most efficient) forcupy.uniquewith the axis argument.Assuming the array is 2D, and that you want to find the unique elements along axis 0 (else transpose/swap as appropriate):#...
I'm looking for a GPU CuPy counterpart of numpy.unique() with axis option supported.I have a Cupy 2D array that I need to remove its duplicated rows. Unfortunately, cupy.unique() function flattens the array and returns 1D array with unique values. I'm looking for a function like numpy.unique(arr, axis=0) to solve this ...
Is there a CuPy version supporting (axis) option in cupy.unique() function? Any workaround?
Thebeginandendcommands of the SonarQube Scanner for MSBuild, as well as allmsbuildcommandsMUSTbe launched from the same current working directory. Indeed, they will all need access to the.sonarqubefolder that is created by thebegincommand.Other than that, you can launch MSBuild on a *.csproj file instead of a *.sln if ...
I have a TFS xaml Build template that runs the msbuild.sonarqube.runner start (and end) before and (after the) msbuild task in the xaml.It all works well enough with a .sln file. As the file under build.However, when I attempt to use this on a build that runs msbuild on a .csproj file the end process reports that it ca...
Is it possible to run the MSBUILD.SONARQUBE.RUNNER on a CSProj file as opposed to a solution?
I ended up using the previous version of Boto (2)
I am trying to connect to a Amazon SQS via the python boto library. import boto3 sqs= boto3.resource('sqs') for queue in sqs.queues.all(): print(queue.url) I have stored my credentials on the ~/.aws/credentials file [default] aws_access_key_id=XXX aws_secret_access_key=YYY region=us-west-2 But when I execute t...
Connecting to Amazon SQS using boto
0 See 127 Return code from $?. Check if busybox is installed. Share Improve this answer Follow edited May 23, 2017 at 10:24 CommunityBot 111 silver badge answered May 3, 2015 at 11...
I need to create a customized flashable ROM, by customized i mean i will add some apps into it and redistribute this new ROM. Now, first of all I've read that I could create a flashable ROM through Nandroid backups. but somehow when installed and execute a Clockwork backup it returns just this: Starting backup... Runn...
Nandroid backup failed exitcode[127]
You defined text color as white but didn't defined background color so your browser uses default background which is also white rendering your text invisible. Text color and background color must be defined together. Define non-white background color. Or define white background with non-white text color.
I'm a beginner of GitHub page. I wrote some article about user experience. And this article is consist of Korean and English. When I commit my change, But article is invisible. In github, the article is visible, but in my domain article is not visible. Does anybody know about this problem? Could it be because the ...
Github page, post is not visible
As thedocumentationsays:Velero only supports a single set of credentials per provider. It's not yet possible to use different credentials for different locations, if they're for the same provider.So I am afraid it is not possible at the moment to add new credentials.
Velero is installed in the cluster. At the installation velero was given credentials to s3 provider with--secret-fileparameter and everything works fine.Now I would like to create a new backup-location which will use buckets from a different s3 provider. When creating a backup location I pass to--configa key/value pair...
How to provide credentials for s3 bucket provider to Velero when creating a new backup-location
Is there a way to implement scheduling inside Rails without using Cron or a better way of managing regular tasks that works well with Rails?Cron is pretty much the go to tool for running scheduled activities on *nix system and most gems actually leverage cron under the hood, in fact avoiding cron is probably a lot mo...
I'm new to Rails so I'm not sure if this is a stupid question but...I have to run regular tasks to populate data to my Rails app. Today I use the whenever gem to create Cron entries to run these tasks on my system. I want to migrate my Rails app to Docker so that I can scale it more easily. I know that in Drupal(PHP) t...
Rails 5 Regular Tasks Without Cron
The reason was the version of sonarcube server. After upgrading to 8.6.1 the issue was gone.
I am trying to integrate pylint results with SonarQube. To generate a report I usepylint ./console/**/*.py --exit-zero --rcfile=.pylintrc > pylint-report.outInsonar-project.propertiesI have:sonar.python.pylint.reportPaths=pylint-report.out(I triedsonar.python.pylint.reportPath=pylint-report.outalso, as I saw some examp...
SonarQube ignores pylint results
The issue arose due to relative paths used in the script for importing files and objects. Changing this to absolute path resolved the described issue.
I am attempting to automate a R script using Rstudio Server on ec2 machine.The R script is working without errors. I then navigated to the terminal on RStudio Sever and attempted to run the R script using the command - Rscript "Rfilename" and it works.At this point I created a shell script and placed the command above ...
Use crontab to automate R script
Thisis a very nice description how to add an existing project to github.For your issue that files are not added:What I could see from your trial you maybe forgot to usegit addon the files you want to add. To be sure you could post the output ofgit statusShareFollowansweredOct 4, 2018 at 13:08FreshDFreshD2,97222 gold ba...
I am using codeigniter framework. I want to upload my project to github. I have username and password. In github i have a repository. I want to upload my project to that repository. I tried with git desktop. My system is 32-bit. So I tried with git bash using command promt. My project folder is on my desktop. I don't k...
How to add a project to already existing repository
Update Jun 2016 The answer below is outdated starting with docker 1.10. See this other similar answer for the new solution. https://stackoverflow.com/a/34476794/1556338 Old answer Create a network: $ docker network create --driver bridge my-net Reference that network as an environment variable (${NETWORK})in the do...
This question already has answers here: Communication between multiple docker-compose projects (20 answers) Closed 1 year ago. I have a dockerized application with a few services r...
Connect two instances of docker-compose [duplicate]
If the distributed cache is on the local server, then there should be very little difference.Since the main time usage accessing the distributed cache is the transport across the network.It may be that it takes a bit longer to access the distributed cache than the local on the same machine, since local cache is in proc...
I'm currently testing out AppFabric Distributed Cache, it's been working great.When performance testing the Local Cache feature however, I find there is no difference in performance.For the purposes of the performance test I am storing large pages generated from OutputCache into AppFabric and am noticing the same perfo...
AppFabric Local Cache Performance
How to use referenced-style links(See Link and Image examples)How to convert inline links to referenced-style links using Pandoc
How to convert duplicate links to references in markdown? Rather than duplicate the same link many times in markdown, it would be much better to use a reference.
convert duplicate links to references in markdown
You can useOptions->SSL Manageroption, where you can select your.p12file to be used in current Test plan.
I try to add ap12file toJMeter 3.3configuration to reach a site. I added following lines tosystem.propertiesfile:javax.net.ssl.keyStoreType=pkcs12 javax.net.ssl.keyStore=C:\certs\mycert.p12 javax.net.ssl.keyStorePassword=mypasswordAfter that I restartedJMeter, but got the same error,javax.net.ssl.SSLHandshakeExcept...
JMeter load client-side certificate
First of all you can use Bitbucket to host your stuff. Its like github without the open source community.I'm using it on a similar project I'm working on with some guys. It's important you understand that git is version control software developed by Linus Torvalds (creator of the Linux kernel). Git can be used to "comm...
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...
Game development with multiple people in Unity3D: How could we work on the same project simultaneously? [closed]
Try to reach out to the billing support:https://azure.microsoft.com/en-us/support/create-ticket/
I have been allowed to use Github Education Student Benefits but I can't apply Azure for Student authentication From the link which set in benefits list webpagepicture the github account has been allowed for education benefitspicture:link of benefits list webpagepicture:error returned
I can't apply Azure for Student with Github Education Student Benefits
for using other partition as osd you should change cluster.yml and addnodes: - name: "kube-node1" devices: - name: "sdb" - name: "kube-node2" devices: - name: "sdb" - name: "kube-node3" devices: - name: "sdb"
Using Rook 0.9.3 I was able to bring up a Ceph-based directory for a MySQL-database on a three-node Kubernetes cluster (1 master, two workers) simply as follows:kubectl create -f cluster/examples/kubernetes/ceph/operator.yaml kubeclt create -f cluster/examples/kubernetes/ceph/cluster.yaml vim cluster/examples/kubernete...
Able to get basic Rook/Ceph example to work, but all data apparently sits on a single node
Hover your mouse over the2 years agoand you'll get the timestamp.ShareFolloweditedJan 3, 2019 at 18:15loopbackbee22.6k1010 gold badges6363 silver badges102102 bronze badgesansweredDec 10, 2013 at 16:55Matt S.Matt S.13.6k1515 gold badges7373 silver badges130130 bronze badges4I had no idea you could do this...this helped...
Is there a way to see the date of a commit in github, with day/hour precision? Older commits appear in a "human readable" format, such as "2 years ago" instead of showing the actual date.If it's not possible to see the actual date on github, is there a easier workaround thangit clone?
See "real" commit date / time in github (hour/day)
I had the exact same problem. Basically you need to specify -sharedDb when starting up dynamojava -jar DynamoDBLocal.jar -sharedDbI hope that solves your problem.
I've created the local instance of DynamoDb by next steps: in Visual Studio I installed AWS explorer and create a new local instance on localhost:82. I can successfully work with it from my c# code using AWS library. I created the table and even put into it some data. I can even see that data in AWS explorer in Visual ...
Can't connect to local DynamoDb instance via AWS CLI
Hereis a solution.pipeline { agent any triggers { GenericTrigger( genericVariables: [ [key: 'ref', value: '$.ref'] ], causeString: 'Triggered on $ref', token: 'abc123', printContributedVariables: true, printPostContent: true, silentResponse: false, regexpFilter...
There is possible to set a token in job properties in jenkins web interface, but i didn't find it in pipeline documentation. I talking about that one:
How to set a job token in declarative pipeline?
Those results in Java are fed by the Unit Test execution report, which is separate from the coverage report.The docstell you how to feed that data into an analysis.ShareFollowansweredFeb 13, 2017 at 17:30G. Ann - SonarSource TeamG. Ann - SonarSource Team22.5k44 gold badges4242 silver badges8484 bronze badgesAdd a comme...
We've been adding an increasing number of Groovy (Spock) unit tests to our existing suite of Java (JUnit) tests.We've configured things correctly to get Spock code coverage listed in Sonar, but the "Unit Test Success" listings - Tests, Failures, Errors, Skipped tests - only shows for the Java tests.What configuration d...
How to report number of Groovy tests to SonarQube
...run as root. Is this necessary?If some of them do, you can assume there should be quite a good reason for that. I believe that creators ofkubernetesare quite familiar with the concept ofleast privilege principle. So I would say: yes, most probably it is necessary to be able to perform required operations on the node...
I have assessed the security configuration of Docker containers within a Kubernetes cluster usingdocker-bench. I have noted that all Kubernetes containers such askube-proxy kubelet kube-apiserver k8s_kube-flannel_canal k8s_POD_canal k8s_trident-main_trident-csi ...run asroot. Is this necessary?Furthermore, some Kuberne...
Assessing the security of Docker in Kubernetes (+Rancher)
A subfolder inside a git repository is not a git repository itself. You have to clone the top level repository, because it contains the (hidden).gitfolder, which is theactualrepository containing the commit history etc.What you want is a sparse checkout:https://stackoverflow.com/a/60729017/1221661
When I am trying to clone a public repository I am getting below errorfatal: repository 'https://github.com/kubernetes/examples/tree/master/staging/volumes/nfs.git/' not found.I am trying to clone the following URLhttps://github.com/kubernetes/examples/tree/master/staging/volumes/nfs.git/instead of copying the reposito...
Is it possible to clone subdirectory of github repo? error 'fatal: repository '<https://github.com/username/repositoryname>' not found'
The most obvious solution would be calling docker login -u username -p password server (or any pendant from library if your wizard uses some sort of library like Docker.DotNet or similar) from your wizard and check the resultcode. If it's 0 the login is ok, otherwise it's not.
we have some wizard with automation tool, the wizard have 3 simple step 1 provide docker registry user provide registry password provide the domain to upload the image it could be artifactory or dockerhub. The problem is that sometimes user provide wrong credentials and the wizard says login success(using do...
Check docker connection for user and password
After hours of trying out different things, here is what finally helped me:Restore Docker to Factory Default settings and Quit Docker for DesktopDelete the folderC:\ProgramData\DockerDesktop\pki(Make a backup of it just in case). Note that many have reported the folder to be located elsewhere:C:\Users\<user_name>\AppDa...
I recently updated my Docker for Desktop to latest Edge channel version: 2.1.1.0 on a Windows 10 machine. Unfortunately, after updating, Kubernetes was no longer working as it is always stuck at "Kubernetes is Starting".I have tried the following so far.Restarting DockerResetting the Kubernetes ClusterRestoring Factory...
Docker for Windows stuck at "Kubernetes is Starting" after updating to version 2.1.1.0 Edge (or Stable)
Pod is the minimal kubernetes resources, and it doesn't not support editing as you want to do.I suggest you to usedeploymentto run your pod, since it is a "pod manager" where you have a lot of additional features, like pod self-healing, pod liveness/readness etc...You can define the resources in your deployment file li...
i would want to know how can i assign memory resources to a running pod ?i triedkubectl get po foo-7d7dbb4fcd-82xfr -o yaml > pod.yamlbut when i run the commandkubectl apply -f pod.yamlThe Pod "foo-7d7dbb4fcd-82xfr" is invalid: spec: Forbidden: pod updates may not change fields other than `spec.containers[*].image`, `...
assign memory resources to a running pod?
Kubernetes implements this using image pull secrets. This doc does a better job at walking through the process. Using the Docker config.json: kubectl create secret generic regcred \ --from-file=.dockerconfigjson=<path/to/.docker/config.json> \ --type=kubernetes.io/dockerconfigjson Or you can pass the settings...
We've just bought a docker hub pro user so that we don't have to worry about pull rate limits. Now, I'm currently having a problem trying to to set the docker hub pro user. Is there a way to set the credentials for hub.docker.com globally? In the kubernetes docs I found following article: Kubernetes | Configure nodes ...
Is there a way to configure docker hub pro user in kubernetes?
There was a bug in the way TimerTrigger manages schedule tracking when slots are used (seeissue here). It has been fixed, and there is a pre-release build with the fixes that others have confirmed fixed the issue for them.Please verify that the new release fixes the issue for you, and feel free to add any more issues/c...
I am using an Azure WebJob function with the "TimerTrigger" attribute to queue up emails for some users every morning at a certain time. Based on reading, I understand this should behave as a Singleton and only ever trigger once across all scale-out instances. However, users report getting two emails, and logging sho...
Why is TimerTrigger in AzureWebJob is being triggered twice?
There's two places where git stores user information. Your $HOME/.gitconfig file. You can see the configuration contained in there by executing the following command: git config -l --global A .git/config file, under each of your repositories. You can see the configuration contained there by executing the following...
When I want to push, I use git push and it gives me the following: remote: Permission to fjhjc01/heihei.git denied to diana4sb. fatal: unable to access 'https://github.com/fjhjc01/heihei.git/': The requested URL returned error: 403 And I don't know who diana4sb is. I used git config -l to check the user name. It was ...
Github push returned a strange username
I had to fake up your Secrets endpoint but this test endpoint returns the same json:So in tf...data "external" "secret_string" { program = ["curl", "http://echo.jsontest.com/Test/Testpassword"] } output "json_data_key" { value = "${data.external.secret_string.result}" } output "PASSWORD" { value = "${lookup(dat...
I have the following code..data "aws_secretsmanager_secret" "db_password" { name = "${var.db_secret}" } data "aws_secretsmanager_secret_version" "db_password" { secret_id = "${data.aws_secretsmanager_secret.db_password.id}" } master_password = "${data.aws_secretsmanager_secret_version.db_password.secret_string}"w...
Interpreting aws secrets in Terraform
when I try to pull the image manually I shows me an error that no image foundThe method you're following provides private registry credentials to the ECS Agent, but not the Docker CLI (the Docker CLI stores its credential data in a different place). Since you've configured credentials for the Agent, you should be able...
I am writing a terraform script for creating a ECS auto scaling cluster. I have created a cluster and added ec2 container instances in to it.My task definition file contains a image that is from a Private docker repository.I go through the aws official documentation and find a page forPrivate Registry Authenticationand...
Private docker registry authentication in aws ecs optimized AMI is not successful
35 To fix the problem, rename the parameter name_of_abc to nameofabc in the params.json file and the Parameters section of the CloudFormation template. From the AWS documentation: Each parameter must be given a logical name (also called logical ID), which must be alphanu...
I am using aws cloudformation validate-template --template-body file://template.json and then getting error: CloudFormation Parameter Template Error : Parameter is non alphanumeric Following code shows my params.json and template.json files. params.json [ { "ParameterKey": "name_for_abc", "Parame...
CloudFormation Parameter Template Error : Parameter is non alphanumeric
Yes this is entirely possible.Kubernetes network policies support both ingress/egress rules. Also there are three types of traffic selectors:Based on ipBlockBased on namespace selectorBased on pod selectorYou can create labels on your pods and used those label selectors for identifying the pods to apply the policies.He...
I have many namespaces and multiple services running on each namespace.We are using calico plugin in our Kubernetes ckuster. I am looking for a way to restrict access b/w services/ingress.Say, Service A, Service B and Service C are running in Namespace A.I want Service B to access Service A, but not Service C. Can this...
Kubernetes networking policy for service restriction
Access SSH: Go to edit your apache .confsudo nano /etc/apache2/apache2.conf<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride ALL <----(edit from none) Require all granted </Directory>Then restart apache2 using:sudo service apache2 restart
I migrated a website from one web host to another (which is Google Cloud), but I'm having problems changing my permalinks from plain to post name. I want to have the website show the name of the page on the url, but I can't figure out how to get access to my .htaccess files on Google Cloud to see if this is the cause o...
How do I get access to my .htaccess files on Google Cloud for my Wordpress Website?
After some research and if anyone is interested, it is possible to use ebtables.# Authorize DNS queries ebtables -A INPUT -p IPV4 --ip-protocol TCP --ip-destination-port 53 --ip-destination 192.168.1.1 --ip-source 172.18.0.0/16 -j ACCEPT ebtables -A INPUT -p IPV4 --ip-protocol UDP --ip-destination-port 53 --ip-destinat...
I would like to be able to prevent docker containers connected to a bridge network from accessing my local network in order to add extra security since they will be accessible from outside (in case a container is compromised). I saw that I should probably useebtablesor thephysdevmodule ofiptablesbut I can't create a ru...
How to prevent docker containers from accessing my local network
0 I'm pretty sure no RDBMS can be configured to do this, and I doubt they ever will. First, SimpleDb is a quasi-competitor to commercial databases so it wouldn't make sense for most companies to build this. Second, it would have a huge negative effect on transaction perfo...
Is there any solution (RDBMS or NoSQL) that can use SimpleDB as a backup? Thanks, A.
SimpleDB as backup?
The answer did turn out to be on the docs, don't know how I missed it! It represents the Unix epoch time in seconds. When the time reaches that epoch time, you're rate limit resets. In my case,1566344009inUnix Epoch Timerepresents Tuesday, August 20, 2019 11:33:29 PM, GMT.If you have a time given in Unix Epoch Time and...
I'm making unauthenticated calls to the GitHub Gist API, and I've exceeded the rate limit. Trying to browse tohttps://api.github.com/users/seisvelas/gists?page=1&per_page=100, I receive:{ "message": "API rate limit exceeded for 187.188.105.159. (But here's the good news: Authenticated requests get a higher rate limit...
When does the GitHub Gist API rate limit reset?
As you can see, there are 2 request instead of one when using HTTP requests. All modern browsers attempt to retrieve the favicon.ico file from the server, and, even if it does not exist, it is counted in the graph.
I wrote a program to send mails from GAE. It can be run in two ways:-as a http requestas a scheduled cron job (by writing job desc. in cron.yaml)Requests per second for the latter case is almost half the former.Why could be the possible reason for this?
Requests per second comparision in http versus cron job on GAE
This can be done with combination of functionschanges,timestampandlast_over_time.Querylast_over_time( timestamp( changes( prometheus_http_requests_total{}[1m] ) > 0 )[1d:] )will return timestamp of last change in metricprometheus_http_requests_totalif it happened within last day.Adjust query for your metric an...
I'm trying to determine when a specific metric was last checked or updated for a project. I'm attempting to achieve this by making an API call, but I'm having trouble getting the correct date and time value.The API call I'm using looks like this:http://localhost:9090/api/v1/query_range?query=metric_name&start=start_tim...
Find the timestamp of last metrics value change
If "Team > Switch To... > Other..." does not list your branch, check withThe Git repositories view if you really cannot find said branch, when you unfold the References or Remotes section.command line of that other branch actually exist, with:git branch -avvIf it does not, see if you find the commit you used before wit...
I wanna to switch to another branch I created previously, but when I click switch in eclipse, there is only a master.What is the problem?
The branch created in git does not display in eclipse
I did a bit of testing and it seems there is an issue with Cmder not executing$()properly - either not working at all, or treating newlines asEnter, and thus executing a commant before entire JSON is passed.You may want to try running your commands in PowerShell:kubectl run -i tmp-pod --rm -n=my-scripts --image=placeho...
I am trying to run my pod using below command but keep getting error:error: Invalid JSON Patchkubectl run -i tmp-pod --rm -n=my-scripts --image=placeholder --restart=Never --overrides= "$(cat pod.json)"Here is mypod.jsonfile:{ "apiVersion": "v1", "kind": "Pod", "metadata": { "name": "test", ...
kubectl create pod using override return error: Invalid JSON Patch
I don't think it's a good idea for git-clone to do this job. It's unsafe and unreasonable to modify a local existing file or override the local config without the user's awareness or permission.I don't know why you'd like to do so but I think you can do it through other means. For your team members, you could tell them...
We would like to change the git config file globally, such that new file get downloaded from git repo on every git clone. Is there a way to do so? Any user who does git clone of the project should get this customized git config file in ./git/config file instead of standard one?
Modify git config file globally
One thing you could do is just separately download the version of Cassandra compatible with the one that packaged with your Titan version. I routinely do that to get nodetool and the cassandra-cli.
I have the Titan server, with Cassandra, installed here, with multiple keyspaces configured. I've read many threads about how to back up and restore a keyspace, but all talk about using sstableloader. However, I didn't find this tool, since the Titan installation I've used came with Cassandra, and there is not an ex...
How to backup and restore data in Titan-Server (with Cassandra and Elastic Search) without sstableloader
The reason why differentials aren't working is because SharePoint cannot find the spbrtoc.xml file. This file records a history of the backups taken and is updated whenever you perform a backup. Renaming the backup directory is preventing SharePoint from finding this file, so it can't work out how to perform a differe...
currently I have a full backup running daily in SharePoint. The automated process for further copying, renames the full backup directory to backup_((date in yyyymmdd))_full. I'd like to rework to a daily incremental/weekly full schedule, but the differentials can't seem to find the last full backup to work with. I ...
stsadm differential backups when directories are renamed?
Today I worked one of the issues out with my domain host. My cron jobs were running but I was getting no email notice. The answer: "...cron jobs that produce no output will not send an email. As cron won't just discard output generated by a job, If a cron job generates output that is otherwise not handled (eg, by maili...
This is pretty much my last resort as I am about to give up after fighting it for the laast 3 weeks. Just took a stab that someone might be able to help or been in this situation before. I bought the "Appointment Scheduler" script from PHPJabbers and it works great EXCEPT for the e-mailing a reminder 24 hours before th...
Cron job not sending emails - PHPJabbers script
gpu::StereoBM_GPUis the GPU version ofcv::StereoBM(documentation link).cv::StereoSGBMuses another algorithm (documentation link), hence the different results.In order to determine why the result ofgpu::StereoBM_GPUis wrong, it would be useful to know how you rectified your pair of images.
I try to generate disparity of stereo image by using OpenCV and optimize performance by using GPU but the results of them are different.StereoSGBM initializeStereoSGBM sbm; sbm.SADWindowSize = 3; sbm.numberOfDisparities = 144; sbm.preFilterCap = 63; sbm.minDisparity = -39; sbm.uniquenessRatio = 10; sbm.speckleWindowSiz...
OpenCV Big difference between StereoSGBM and gpu::StereoBM_GPU
You can try reuse query resulthttps://grafana.com/blog/2020/10/14/learn-grafana-share-query-results-between-panels-to-reduce-load-time/and apply transformations.
So, I have grafana, where my underlying database is AWS Timestream. I have around 20 widgets (panes) in my dashboard, which makes 20 calls to the datasource.AWS prices 10mb minimum per query, which causes me to pay 200mb worth of queries instead of few MB which is the amount of data scanned.What I want to do, is to run...
Is it possible in grafana to use one datasource query for several panels?
I want to create a follow up Issue from one of a review comment.2 years later (Sept. 2018), that is possible.See "Open a new issue from a comment":Sometimes a conversation in an issue or a pull request can move off in a tangential direction.Now you can click Open new issue within the comment’s options menu to open a ne...
I'm in a PR and I want to create a follow up Issue from one of a review comment. Basically, I'm sort of looking for right click on the comment and getting a 'Create Issue' option.Please help me if there's any way to achieve this on GitHub.
How to create an Issue from GitHub review comment?
0 You’re using 200 record batches. You can try reducing the batch size to 10 or even 1 and check if it stops throwing OOM - then increase it gradually while watching the memory metrics to find the right batch size for one application instance. Then you can scale up or scale...
I am using KafkaTemplate to produce message to a topic but getting OOM Error while KafkaProducer calls doSend(). Not sure it's related. Pod is given 2Gi of memory and we are processing around 10K messages in a batch of 200. Below code is where it all goes wrong. final ProducerRecord<String, byte[]> record = new Pr...
org.apache.kafka.clients.producer.KafkaProducer#doSend throws OOM error | KafkaTemplate
You should move the@NotNullannotations to the constructor and setter parameters:public Dummy(@NotNull Integer dummyField) { this.dummyField = dummyField; } public void setDummyField(@NotNull Integer dummyField) { this.dummyField = dummyField; }If you verify that all possible mutators of that value only set it t...
Consider the below code. When I analyze the code for sonar rule, it complains about"javax.validation.constraints.NotNull" but is not initialized in this constructor.I can resolve it by initializing the field with default value (see example here) but it will make @NotNull annotation redundant. So my question is how to r...
What is the best way to handle SonarQube error "javax.validation.constraints.NotNull"
It turns out we just had to switch to a different Paypal URL and it worked. This is the URL we used and it worked like a charm -https://api-aa-3t.paypal.com/2.0/
We are using ASP.net 3.5 and have integrated Paypal Pro in one of our customer's website. the staging environment & credentials work fine, however when we move it to Live environment we start getting "Could not establish secure channel for SSL/TLS with authority 'api-aa.paypal.com'." exception.we have got our certifica...
SSL/TLS issue with Paypal
You can definegrafana.iniin thevalues.ymlof Helm chart ofkube-prometheus-stackbecause it usesdefault values from Helm chart of Grafanait hasgrafana.inidefined in it.grafana: nodeSelector: beta.kubernetes.io/os: linux namespaceOverride: "monitoring" grafana.ini: users: viewers_can_edit: true auth...
I want to add Google OAuth2 authentication for Grafana that was deployed inside kube-prometheus-stack, and I was trying to followthis documentation, but I cannot find the way how to editgrafana.iniif deployed in that helm package.How can I access it?
How to edit grafana.ini in kube-prometheus-stack
I see you have added handler ashandler: public/index.phpin serverless.yml file, but your file name is test.php. It seems to me like a typing mistake.
I'm using the Serverless framework to deploy my PHP functions on the AWS Lambda. I have tried with a simple example but I can see inside cloudwatch this error:Handler `/var/task/public/test.hello` doesn't existThis is my serverless file:service: symfony-bref provider: name: aws region: eu-central-1 runtime...
Serverless framework, handler doesn't exists
To clone docker volumes, you can transfer your files from one volume to another one. For that, you have to manually create a new volume and then spin up a container to copy the contents.Here is an example on how to do that:# Supplement "old_volume" and "new_volume" for your real volume names docker volume create --nam...
I want to update some container. For testing, I want to create a copy of the corresponding volume. Set up a new container for this new volume.Is this as easy as doingcp -r volumeOld volumeNew?Or do I have to pay attention to something?
Copy docker volumes
Users can create and edit their own crontabs withcrontab -e. They can view their crontab withcrontab -l. They can remove their crontab withcrontab -r.man -s1 crontabfor more information.ShareFollowansweredDec 4, 2011 at 16:53TrottTrott68.2k2626 gold badges180180 silver badges215215 bronze badges11is there a physical ...
On my RHEL5 box, I have so far set up cron jobs by placing entries in the /etc/crontab file which is for safely reasons, only editable by root.Are there other ways to set up cron jobs for individual users? Preferably, I would like each user to have their own cron file that they can edit at will without requiring root p...
crontab entry for individual user
The problem here appears to be with the retention of object data. Adding a select reduces the size of the returned object data so much so that searching 100GB+ did not cause it to crash. Solution is as followed: Workflow Test-Me { Param ( $Path = "c:\temp", $Days = 0 ) $Files = Inline...
I'm dabbling with workflows in powershell and I'm noticing some odd behavior. The below script will work when the directory doesn't contain a lot of files. After some point it will hold on line 6 (when run in the ise you'll see the workflow status bar), munch up memory, then eventually crash (after at least half an ...
Powershell Workflow Chugging at Memory and Crashing
Tryos.date("!%Y-%m-%dT%TZ")oros.date("!%Y-%m-%dT%TZ",t)ifthas the date in seconds since the epoch.
How would you convert a timestamp to an ISO 8601 format (such as2009-01-28T21:49:59.000Z) in Lua?I'm specifically trying to do it by using theHttpLuaModulein Nginx.
Timestamp to ISO 8601 in Lua
You can check the expression in CloudWatch rules. The correct one is:0 /6 ? * * *ShareFollowansweredOct 25, 2021 at 5:45MarcinMarcin227k1414 gold badges267267 silver badges322322 bronze badgesAdd a comment|
I want to run AWS Glue Crawler every 6 hours automatically daily.Can I use Cron Expression available on Crawler as below :Minutes Hours Day of month Month Day of week Year * 0/6 * * ? *
How can I run AWS Glue Crawler every 6 hours daily?
Thank u for all ur comments... its very useful to me... But i try the all the way, But my hosting domain ll not support, thats y i tried,php -q /path/to/the/script.phplike that, its working fine,My cron now working fine... Thank u all...Regards, Vinoth S
$_SERVER['DOCUMENT_ROOT']/file.php: line 1: ?php: No such file or directory $_SERVER['DOCUMENT_ROOT']/file.php: line 2: syntax error near unexpected token `0' $_SERVER['DOCUMENT_ROOT']/file.php: line 2: `set_time_limit(0);'the above error, i got while run cron,how to fixed that?and the path from document rootshall i gi...
I got error while run cron job using php, How to i fixed it?
is your HUB url is working ?http://[your host]:4444Sometimes this error will be thrown when any OS patch upgrade happened on your driver machine. so please restart your docker image.docker-compose -f docker-compose-v3.yml restartAny OS upgrade happened or patch happened, I suggest to restart.Still not working, please u...
I'm hoping someone will offer some help here.I tried following the similar questions asked before but no change in the results.I'm trying to run a VS 2019 .Net 5.0 project in a bitbucket pipeline but I'm getting the following error when I try initialise a new chromeDriver (OpenQA.Selenium.WebDriverException : Cannot st...
Cannot start the driver service on http://localhost:34811/
Check first if you have multiple .git folderone for you main local repositoryone for some subfolders inside your local repositoryThat would means "nested Git repositories", which would be uploaded to GitHub as a "gitlink" (a reference to the root tree SHA1 of the nested repo)Removing those nested.gitsubfolders (assumin...
Every time I push a file to Github it uploads as a submodule! How do I keep this from happening? Is there a way to reverse the submodule and upload like the rest of the files inside of the folder?
Unwanted submodules pushing to GitHub
If "randomness" is part of your application behaviour, then you should contain this logic inside one of services / containers, so this is no-brainer. You are running entire stack withdocker-composeand it just works.Other than thatCrontabor other external scheduler (like kubernetes cron jobs) is the way of doing that if...
I have 3 vps with docker installed. I have created a docker image and I would like to know if there is a possibility to configure docker or docker-compose in such a way that these 3 containers run only once a day at random hours.I have not found any way other than to configure the command to start the docker in a bash ...
Docker - start a container at random time
I don't think there's a way to set MST as the default time zone in Data Fusion; however, I tried to replicate the scenario and I was able to useparse-as-date DATE_COLUMN MSTto parse the column and insert it into BigQuery with the correct time in UTCMar 11, 2020, 11:45:40 AM UTC.
I'm am building a pipeline in Data Fusion where we use the Database Plugin to ingest data from our on-prem Oracle DB and insert into a BigQuery table. The Database Plugin correctly inferstimestampdata types for date fields in our Oracle tables. The issue is, however, that the date fields are actually in MST timezone. D...
How to assume timestamp is MST (US/Mountain) instead of UTC
I like to separate out machine provisioning from environment provisioning. In general, I use the following as a guide: Build Phase Build a Base Machine Image with something like Packer, including all software required to run your application. Create an AMI out of this. Install the application(s) onto the Base Machin...
I'm using AWS Cloudformation to setup numerous elements of network infrastructure (VPCs, SecurityGroups, Subnets, Autoscaling groups, etc) for my web application. I want the whole process to be automated. I want click a button and be able to fire up the whole thing. I have successfully created a Cloudformation templat...
What to bake into an AWS AMI and what to provision using cloud-init?
1 Run the file generation process in "offline" batch mode. PayPal does this for some reports - you request the report, get immediate notification that it is in process and when it is done (typically a few seconds but could be much longer) the status page is updated and yo...
environment:php+nginx; I use PHPExcel for export and import excel file,and this operation would take about two minutes for a big data size,which leading to 504 gateway timeout. And the nginx factcgi_connect/read/send_timeout is 30s; Do not change nginx settings,how can I do?
Export excel file using PHPExcel,take about 2 minutes,lead to 504
The method will be called only once in both cases.The first method has a readability advantage as you can name the variable and describe what's in it with its name. It will make the code more self-documenting and improves maintainability.To quote the authoritative source on this:C# Language Specification - 8.8.4 Thefor...
I end up with a lot of code like this:List<string> dates = someMethodCall(); foreach (string dateStr in dates) { }I usually declare the object over which I'm iterating and then use it in theforeachcondition out of worry thatsomeMethodCall()would happen for each iteration of the loop. Is this the case? I would prefer ...
C# better to initialize list then loop over it, or just initialize in loop condition?
As said before, CLI scripts by default have no time limit. But I would also like to mention an alternative to your cron job approach: You can fork a CLI PHP script from a PHP script under webserver control. I have done this many times. It is especially useful if you have a script with long execution time which must be...
I am coding a php script that does some back end stuff and needs to run every 8 hours or so. The script takes a while to execute. For the hell of it, I tried it from my browser and the connection to the server gets reset well before the script terminates. My question is - if I run it directly, ie. php -a file.php as a...
Running php script as cron job - timeout issues?
thanks for answering guys,anyway that was a wrong nginx conf resolved by following this article :http://articles.slicehost.com/2009/3/13/ubuntu-intrepid-nginx-rails-and-thinShareFollowansweredOct 8, 2012 at 12:15Luca G. SoaveLuca G. Soave12.4k1313 gold badges5959 silver badges109109 bronze badgesAdd a comment|
I followed thisarticleto have an Ubuntu Nginx, Rails, and Thin server, but when access the home page I get500 Internal Server Errorand the folloing error log :2012/09/29 18:43:14 [alert] 15917#0: *1013 socket() failed (24: Too many open files) while connecting to upstream, client: 50.57.229.222, server: 50.57.229.222, ...
Ubuntu Nginx, Rails, and Thin
It seems that your email, and name parameters in global config are empty. Probably you have executed something like this, that has dropped the values: git config --global user.name "" git config --global user.email "" Just fill them with commands again: git config --global user.name "Your Name" git config --global us...
I was working in branch master, and committing to Git repository. Everything worked fine. I connected new app to this repository on Heroku. I was committing to both Heroku and Git. Everything worked fine again (except I cannot run db:migrate on Heroku but that is another question...). After my last commit I run git s...
git error "Please tell me who you are." and Heroku
Nope. You shouldn't rely on it. And EFS isn't an option either.Also, the time taken to download a file more than 500MB depends on network conditions and you won't able to predict before hand how long will it take for the function to complete.Your lambda function must complete execution within 300 seconds.Moreover, if m...
Is it possible to add temporary storage space to AWS Lambda so I can write files larger than 500 MB before I upload those to S3? Is NFS/EFS possible?Thank you.
Work around for AWS Lambda 500MB /tmp storage limit
You can remove the "Server: Apache/2.2.22 (Unix) ..." line in the header as follows:Download the Apache httpd tarball and unpack it in the usual way.Change include/ap_release.h from:#define AP_SERVER_BASEVENDOR "Apache Software Foundation" #define AP_SERVER_BASEPROJECT "Apache HTTP Server" #define AP_SERVER_BASEPRODUCT...
I cannot remove the "Server" header from the response headers. I am using Amazon EC2. I have added this in Apache config:ServerSignature Off Header unset Server RequestHeader unset ServerIt does not do anything. I can still see the server header saying "Apache (Amazon)" in the response headers. Any clue?
Cannot remove server in response headers (Amazon AWS)
Answer that I discovered was below. By usingjsonpathto retrieve andxargsto pass the secret name/output to second command. Will need to decode the encrypted token withbase64at the end.$ kubectl get serviceaccount default -o=jsonpath='{.secrets[0].name}' | xargs kubectl get secret -ojsonpath='{.data.token}' | base64 --de...
What's the one liner command to replace 2 commands like below to get the Kubernetes secret's token? Example usecase will be getting token from kubernetes-dashboard-admin's secret to login and view kubernetes-dashboard.Command example:$ kubectl describe serviceaccount default Name: default Namespace: ...
One liner command to get secret name and secret's token
Try fixing the URL so your server doesn't have to redirecturl: "/jsontest/randomdata/" // there was a missing trailing / // i.e. https://larsendt.com/jsontest/randomdata?ymax=500&count=32&t=0.9604179110508643 // was going to https://larsendt.com/jsontest/randomdata/?ymax=500&count=32&t=0.9604179110508643
I'm doing some pretty basic jQuery ajax stuff on my website, and I'm having a boatload of trouble.Here's the relevant code:$(document).ready( function() { $("#getdatabutton").click( function() { $.ajax({ url: "/jsontest/randomdata", type: "get", data: [{name:"ymax", value...
jQuery ajax won't make HTTPS requests
5 My first guess: static initizations in some of the libraries you are linking. Insert a long pause as the very first line of main() and look through the /proc/<pid>/ to see where the memory is allocated. For example: /proc/12345/task/12345/maps /proc/12345/task/12345/sm...
I have a program that, when queried on initialisation, is immediately using > 2 GB of RAM. Basically the code is like this: #include <blah> int main() { cout << get_mem_usage() << endl; //Lots of things happen, but no significant memory usage return 0; } Output: [2013-02-15 18:38:05.865283] 2147.71 Mb I ...
C++ Program immediately using 2 GB of RAM: how to find culprit?
Copy the configuration file that has the authentication to the production boxes. It should be in ~/.dockercfg.
So, I'm trying to figure something out, and I haven't seen anything so far. I setup a docker hub account, and I want to push to a private repo from a CI server, and pull from it on boxes in production. As far as I can see, though, the only way to do this is to go to every machine and put in my password, the same one I...
Docker Hub Login Without Password
/** * Get the full path for the given cache key. * * @param string $key * @return string */ protected function path($key) { $parts = array_slice(str_split($hash = md5($key), 2), 0, 2); //return $this->directory.'/'.join('/', $parts).'/'.$hash; return Config::get('cache.path') .'/'.join('/', $parts)....
Lets say I use remember function to store the data in cache.And when user is in the site, I want him to be able to know how old the data is which he see. And so he will have option to get fresh data if he does not like old.One thing - I could try to check the cached file date, but I am not sure how the folder structure...
Laravel - how much time passed since cache
It is possible to run Crate in such an environment. I wouldn't recommend it, though. In any case you need to take a few precautions: Select a lean Linux distribution that actually boots and runs with such a small memory footprint. Alpine might be one choice. Install Java. You need at least openjdk7 (update 55 and up)...
I can find cheap VPS hosts with 128MB RAM, and I wonder if that is enough to run a crate node for a tiny database, initially for testing. (I'm not looking for recommended memory, but the minimum one, for not running into out-of-memory exceptions. Crate is supposed to be the only service in the node.)
Crate - What is the minimum memory requirement for a node host?
It is required for docker containers in their marathon spec to specify a boolean value for oom-kill-disable flag for executor to run properly.So the spec would include:"parameters": [ { "key": "oom-kill-disable", "value": "true" } ]
I have been using docker to run images along with some options like:docker run --net host --oom-kill-disable -d -p <port>:<port> imageHow do I set values like --oom-kill-disable on marathon?
How to set docker run arguments on marathon spec
If you are testing through CloudFront, have you made sure you have invalidated the cached objects? Can you try to upload a completely new file and then try accessing it via CF and see if the header is still not there? Update Seems like custom metadata will not work as expected as per DOC. Any metadata other than the o...
I'm trying to set a Content-Security-Policy header for an html file I'm serving via s3/cloudfront. I'm using the web-based AWS console. Whenever I try to add the header: it doesn't seem to respect it. What can I do to make sure this header is served?
Is it possible to set Content-Security-Policy headers in Amazon S3?