Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
My logic thinking, try it : metadata: annotations: nginx.ingress.kubernetes.io/configuration-snippet: | rewrite /preview https://test.app.example.com$uri permanent; spec: rules: - host: test.example.io http: paths: - path: / backend: ...
i want to redirect domain in nginx ingress kubernete. https://test.example.io/preview/qLxiVcDGxCaQ134650121853FTg4 if in url preview comes change domain redirect https://test.app.example.io/preview/qLxiVcDGxCaQ134650121853FTg4 what i was trying apiVersion: extensions/v1beta1 kind: Ingress metadata: annotations: ...
Kubernetes ingress domain redirect
If you create an AMI from an EC2 instance, you can terminate the instance and create a new one from the AMI. If you have taken a snapshot of the EBS boot volume the instances is using, you will need to register it as an AMI before you can create a new instance. If you take a snapshot of a volume, and then delete the...
I've setup a EC2 instance with EBS root. As part of the process, the system has created a snapshot of its EBS volume. My doubt is what happens when I remove the EC2 instance (and its EBS volume). After deleting the EBS volume, will the snapshot still have the full copy of my system? Will I be able to restore a copy of...
Can I delete original EC2 instance after creating an image out of it?
If you simply want the visual and don't care how it is delivered you can keep it github and link toencharmsrepo using an<img>I guess if you were worried about the repo disappearing you could fork your own version with just the icons you need.|a|b||Most icons are available in most sizes.Not got the reputation to post an...
How would I display a Font-Awesome icon in a github wiki?I tried to link to the source from the Font-Awesome site, but it just creates a linkeg:| Element | Icon Name | Icon Image| | ------- | ----------| ----------| | chart | fa-line-chart | http://fortawesome.github.io/Font-Awesome/icon/line-chart | | trash | fa-trash...
Font-awesome icons in github wiki
The string sent to MQTT must be formatted as follows to be parsed correctly by the default influxdb telegraf parser:seriesName,tag1=tagname1,tag2=tagname2 value1=123,value2=456for example using the client utils:mosquitto_pub -t smartmeter -m "energy,location=basement value=5"will write to the smartmeter topic (which ne...
I have an ESP8266 that sends MQTT data (float values) to my MQTT broker (mosquitto). I cannot get telegraf to write into the InfluxDB database. Do anyone have a sample configuration for telegraf? Using a python script I can successfully overcome telegraf but I prefer to use a maintained software, like telegraf, instead...
How to properly configure telegraf to write into InfluxDB data coming from MQTT
[I'm using the Manhattan distance in the solution] For simplicity, let start assuming 3D arrays of odd dimension ([2N+1, 2N+1, 2N+1]) Using manhattan distance the greatest distance between the center ([0,0,0]) and a point is 3N ([N,N,N], [N,N,-N], ...) So, basically the idea is find a way to generate all coordinates t...
I'm trying to find a traversal order for a 3d array with uniform dimension n.The traversal order should hereby be sorted ascending by it's distance to the cube's center (order of cells with equal indices is arbitrary). Example for a 2d-Array: 7 4 8 3 0 1 6 2 5 Which basically is the distance in Manhattan metric: 2 1 ...
3d array traversal originating from center
Yes, TheDeploybutton is updating the code, TheTestbutton just Invoke your lambda with a test Event (That can be configured)
I'm writing some Python code on AWS Lambda. I haven't used AWS for a few months and I noticed that when I hit the TEST button the test no longer runs on the latest code that I've entered into the Lambda editor, even when I save the code. After some playing around I've found I need to press the DEPLOY button first, then...
Is it right that I need to deploy my lambda in order to test it?
Verify that the user under which the cronjob is executed can write to the file.
I have a cron job runningevery 1 minuteto send push messages to mobile phones.1.I perform fetch query in database to get all messages that I need to send2.With the data in that array I perform another fetch query.I use file_put_contents to write data to some file.3.Then I send push messages using some services.Message ...
file_put_contents does not work properly in cron job
Pull Request is a GitHub feature and not a native Git command. However, if you have the source and target branch names, you can get the files changed using,git diff --name-status firstbranch..yourBranchNameShowing which files have changed between two revisions
I need a git command that will list all of the changed files in a pull request.I only want the file path of the changed files, no extra info.I've tried: git diff --name-only but that doesn't return anything for a PR.
How do i get a list of files changed in a pull request via the git command line tool?
To fetch all the upstream changes from the original repository, you have to make sure that the upstream ist set correctly to the original repository to fetch the changes withgit remote add original https://github.com/{author}/{repo}.gitYou can than load all the original changes withgit fetch originalandgit rebase origi...
I got myself in a sticky situation here. I am trying to bring the changes from a master repo which has been modified by others into a forked copy which is slightly behind but this forked copy has commits not found in the master repo.So basically: Master (ahead) --> Fork (older, modified)Whenever, I follow the github in...
Merging master repo with an older modified forked copy
.0.0.1is only for local computer "loopback". They arerequired to be droppedif they come from outside the local computer. So no firewall is required if the app is only listening on127.0.0.1.ShareFolloweditedJun 5, 2015 at 5:02answeredJun 5, 2015 at 4:06Neil SmithlineNeil Smithline1,55699 silver badges2121 bronze badges4...
I run a "private" service on my computer, which I do not want to be accessible from other computers. I configured it to only listen on127.0.0.1. Do I still need a restrictive firewall? For example, is it possible to receive a packet oneth1, which would somehow have127.0.0.1as its destination address? Then, if my FORWA...
server listens on 127.0.0.1, do I need firewall?
Because Docker manages the /etc/hosts file for you, making changes to /etc/hosts isn't going to work. You can, however, add additional hosts to Docker's DNS service discovery with the --add-host option when running docker create or docker run. This is from the output of docker run --help: --add-host value ...
Dockerfile how to add localhost alias ? Hi i need to add localhost alias in the Dockerfile I do the following: RUN echo '127.0.0.1 locdev' >> /etc/hosts But when i then go to image bash console $ docker exec -it my-image bash and try to ping that host it does throw error $ ping locdev ping: unknown host What /etc/ho...
Dockerfile how to add localhost alias
Big thanks to @graham, I could reuse the existing container with just this minor modification to the pod config:initContainers: - args: - cp -r /var/www / && ls -altr /www/ command: - /bin/sh - -c image: example imagePullPolicy: Always name: example-init volumeMounts: - mountPath: ...
I have a directory within container A that I would like to share with container B.For example I have a directory/dataabcon container A.I've tried using a sharedhostPathvolume, however as this is empty when mounted - it makes the existing files non accessible. (/dataabcwould be mounted on top of the existing/dataabc/fro...
How can I share a directory between containers in Kubernetes that originates from a container?
It should work:RewriteRule ^articles/keyword/(.*)/?$ index.php?keyword=$1If not, please tell me ;)
I'm sure that's been asked zillions times but i can't get it to work, i'm trying to rewrite a url with querystring, my url is for example:http://example.com/articles/index.php?keyword=bookand i want to be accessible fromhttp://example.com/articles/keyword/book/I google it and i didn't have any luck, am i on the right ...
mod_rewrite {QUERY_STRING}
I am glad to tell you that we've released VisualSVN Server 4.0.0. You can now add links to line numbers and highlight lines of code. Please, see theRelease Notesand thechangelogfor more information.You cantry this feature on the demo server. You can download VisualSVN Server 4.0.0 for free from themain download page(no...
I have an svn repository, and have java files in it. I can access files in the repository through url in web browser. e.g.https://serverName/svn/repositoryName/file1.javaThis java file has 100 lines. Is there a way I can navigate to any line number/ highlight any line number in this file through the url?In git, there i...
highlight/ navigate line number in visual svn through url
The Docker daemon does not run natively on a Mac. Until it does, there will never be a socket for communicating with the daemon at /var/run/. You must therefore use TCP to communicate with the daemon because the daemon must be running on another machine (or a VM). Unix sockets only talk to processes running on the loc...
I have following error when I try to use docker on my Mac: FATA[0000] Get http:///var/run/docker.sock/v1.17/version: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS? It doesn't matter if I use sudo or not... It doesn't matter which docker comman...
Docker FATA[0000] on Mac
You can remove arbitrary child constructs by ID, using thetryRemoveChildescape hatchmethod:// remove the role taskDefinition.Node().TryRemoveChild(jsii.String("TaskRole")) // remove the reference to the role t := taskDefinition.Node().DefaultChild().(awsecs.CfnTaskDefinition) t.AddPropertyDeletionOverride(jsii.String(...
In AWS CDK v2 the ECS TaskDefinition L2 construct has an optional property TaskRole if not specified CDK default behavior is to create a task role. However I do not want a task role set for this resource, it is not actually required in AWS - the Task Definition can function without this property. How can i manage that ...
AWS CDK ECS Task Definition Without Task Role
0 From this answer, it would be better to use https://android.googlesource.com/platform/manifest instead of the GitHub one: repo init --repo_url='https://android.googlesource.com/tools/repo' -u https://android.googlesource.com/platform/manifest -b android-4.4_r1 Note: I ...
I want to know how to configure repo tool to download android source from GitHub. I created the repository for the source code using the repo script repo init --repo_url='https://github.com/android/tools_repo.ig' -u https://github.com/android/platform_manifest.git -b android-4.4_r1 When I try to repo sync, I got the ...
How to checkout android source from GitHub
I resolved the issue on a whim by going to my custom CA settings here chrome://settings/certificates?search=cert and then Authorities and "edit"ing my CA, unchecking all the boxes, pressing okay, then re-editing and re-checking them and pressing okay, no browser restart needed. Next page refresh and my Certificate erro...
Ran into an issue earlier today with errors on our internal certificate. Other users/consumers/clients were not getting the errors. Was getting an error "there are issues with the sites certificate chain" and then when viewing the certificate, sure enough just the end certificate was listed, not the whole chain tree. T...
Certificate Chain Error with Custom CA in Chrome
By default, memcached will only store objects up to 1MB by default:Many people have asked for memcached to be able to store items larger than 1MB, while it's generally recommended that one not do this, it is now supported on the commandline.you canuse the -I option to increase this.In your case you'd need to set-Ito be...
I'm storing an object of size 7-10MB in Memcached and just after putting the object, trying to retrieve it. I get cache misses in that case. Any idea why? This solution works for smaller object sizes.Background Info:I'm using Memcached to store a set of large objects of approximately 7-10 MB size. For some reason, it's...
Storing large objects in Memcached
As Jobs can't natively spawn new objects once finished (and if exited gracefully, usingPreStopto invoke further actions won't work), you might want to monitor the API objects instead.Programatically accessing the APIto determine when the Job is finished and then,create your Deployment objectmight be a feasible, automat...
I have a Neo4j service, but before the deployment starts up, I need to pre-fill it with data (about 2GB of data). Currently, I wrote a KubernetesJobto transform the data from a CSV and format it for the database using theneo4j-admintool. It saves the formatted data to apersistent volume. After waiting for the job to co...
Kubernetes - Best way to initialize persistent volume for a database deployment
I don't really understand what you want, but if you want the actual full URL i think you can use this$http_host$request_uri;
If request URL istest.com/gifts.If i am usingngx.var.urioutput is/gifts/expected output istest.com/giftsCode :location /gifts { try_files $uri @url_change; } location @url_change { default_type text/html; content_by_lua ' ...
get complete url using nginx and lua with openresty
So in production I guess I can't use minikube, right?Not really advisable, minikube is ment to support learning/local single machine dev tasks.do I have to switch to cloud to use Kubernetes or can I use it in my Windows Server machine without any cloud environment?IMHO Windows and kubernetes are not really there yet. I...
I just started messing with containers and managing them. Then I came across with Kubernetes. I've already installed Docker and tried out a few examples. But when it came to managing them with Kubernetes, I've kinda stuck.I've found out that I can run Kubernetes with minikube on Windows on my laptop for development. Bu...
Kubernetes on Windows for Production
Well you are right you should not use collect(), the 1 GB data you see will have much higher memory footprint once it gets into the memory because data would be deserialized.You can try :-Print the data, instead of collecting it.Increase the driver memory.Write it to disk.
I'm currently having some issues when collecting results when running ~100 aggregations on parquet data.What I've currently done is to run the aggregation for each stat and thenjointhat result onto a result DataFrame. So at the end of all my calculations, this result DataFrame will have ~100 or so entries in it all in ...
OOM when collecting small result set from Pyspark
Connect to MariaDB from the MySQL command line client The following command starts another mariadb container instance and runs the mysql command line client against your original mariadb container, allowing you to execute SQL statements against your database instance:$ docker run -it --link some-mariadb:mysql --rm mari...
My main question is that after I have created a docker container for my mariadb with the commanddocker run --name db -e MYSQL_ROOT_PASSWORD=test -d -p 3306:3306 mariadbhow can I access the sql db?Somewhere I have seen a solution using a temporal (after exit the container is deleted) container, but cannot find it anymor...
How can I access my docker maria db?
I think you'll want to make use of SUBSTRING.e.g.SELECT SUBSTRING(Col1,0 CHARINDEX('(',Col1)), Col2, Col3 FROM MyTable
I have a table like below. Col1 values has parenthesis like val1(12). But when I write a InfluxQL query I want to remove parenthesis and just get remaining. When the InfluxQL query runs in the outputVal1(12)will beVal1mytable:Col1Col2Col3Col4val1(12)33201val2(4234)22201val3(221)11101If i writeselect * from mytableit wi...
Trimming column values while selecting with InfluxQL in Grafana Dashboard
It looks like the cache-manager does all the "check it exists, if not run the lambda then store". If so, the only way to make that async is to have a GetAsync method that returns a Task<Store> rather than a Store, i.e. public virtual Task<Store> GetStoreByUsernameAsync(string username) { return _cacheManager.GetAs...
My service layer is caching alot of Db requests to memcached, does this make it impossible to use Async/Await?? For example how could I await this? public virtual Store GetStoreByUsername(string username) { return _cacheManager.Get(string.Format("Cache_Key_{0}", username), () => { retur...
Async/Await and Caching
yes, you can!useuncssthat's a pretty nice tool, you'll need to install node.js,grunt,bower, git and install it by using npm.then you just need to do a npm install -g uncssthat apply with any technology you can just use the dev node.js environment which is awesome!
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...
Merge CSS and JS files with only used code [closed]
While the normal approach would be to run your Python script in a shell where the ssh agent is already running, you can also consider an alternative approach withsshify.py# This utility will execute the given command (by default, your shell) # in a subshell, with an ssh-agent process running and your # private key adde...
I'm pulling and pushing to a github repository with a python script. For the github repository, I need to use a ssh key.If I do this manually before running the script:eval $(ssh-agent -s) ssh-add ~/.ssh/myprivkeyeverything works fine, the script works. But, after a while, apparently the key expires, and I have to run ...
Using the ssh agent inside a python script
You need this permission :recommender.containerDiagnosisRecommendations.get. It's available in one of the roles shown the capture below
We have observed that in GKE, user with GKE admin role does not get cluster api upgrade notification as shown below and they need to have viewer access to view these notifications.what could be the reason behind it ? Ideally user having GKE admin permissions should also be able to view any upgrade notifications for the...
User with GKE admin role not able to view cluster api upgrade notifications and needs viewer role to view the same
Here is an example URL for a wiki: https://github.com/golang/go/wiki On the same page you will find a clone link: https://github.com/golang/go.wiki.git Then run the Markdown files through Hugo or even create a new repository to the host site based on the Wiki.
I've used GitHub pages to generate a beautiful website for my project (this one). Now I want to keep the documentation of my project up to date, and having everything in a single README.md file is probably not scalable to the many features we are adding. So, I thought that the best place to keep the documentation is t...
How to generate a website from GitHub wiki pages
they are instead being treated as if /user is a real directory and as if /user/username is a valid file and exists (which it does not).What exactly do you mean like this? What does it show?Do you want torewriteor **redirect?Rewrite = call www.site.com/index.php?Agent=username when the user enters www.site.com/user/user...
I have the following code:RewriteEngine on RewriteRule ^user/([a-z]+)$ index.php?Agent=$1 [QSA]theoretically any visitor to my site using the format:www.site.com/user/usernameshould be directed to:www.site.com/index.php?Agent=usernamethey are instead being treated as if /user is a real directory and as if /user/usernam...
mod_rewrite does not rewrite
Assuming you have generated a private key and a certificate request for your user and signed it with your client CA. You need to get the private key and the signed certificate into the list of personal certificates in the browser.I have found that the best way is to create a password protected PKCS#12 (as some browsers...
I´m trying to use nginx as a reverse proxy to an internal webserver running Tomcat, which hosts a front-end to our ERP system.It is already working fine: I can perfectly connect to the nginx server (which is locked up on our network, different VLAN, firewall, etc etc etc) and then reverse proxy to my ERP server.However...
nginx - reverse proxy certificate authentication
From Github'sStatussite:Some users may experience a delay in pushes or other changes appearing on the site.That is as of 10:53 Mountain Daylight Time
I made some changes involving a reset to the penultimate commit, followed by a change, a re-commit, and a tag change. Whereas I had just releasedv1.0on GitHub, I needed to fix something. So after cloning, I rangit reset HEAD^ git tag -d v1.0 # changed my file git commit -am "Move to version 1.0" # the same commit messa...
GitHub repo doesn't update
You should set the appropriate HTTP cache headers for that generated XML file so any client request past that time will get the new version and cache it locally, like any other static content.
I have an ajax application where the client might lookup bunch of data frequently(say by key stroke), the data gets updated on the server side once or twice a day at fixed times by a demon process. To avoid visiting the server frequently, I store the data in a xml file, so the client downloads it once when the page f...
cache or not to cache
Custom domains are do supported by Windows Azure Websites. However, you have to have your website in at leastSharedorReservedwebsite mode.Freemode does not allow to have custom domains. I think the same applies to free trial account asSharedandReservedwebsite mode are not free of charge.If you have your website in one ...
I am new on Windows Azure. I have a free trial account of Windows Azure. I have created a web application in asp.net and have published it on Windows Azure. The URL looks like it below.http://ssoimplenentation.azurewebsites.net/It is possible to give custom domain name of Windows Azure hosted site with free trial accou...
how to give custom domain name of windows azure hosted site
Oh it's straight forward with aws sdk CognitoIdentityServiceProvider class.Can use the same access token that we are getting from the user authenticationvar params = { AccessToken: "string" }; var cognitoidentityserviceprovider = new AWS.CognitoIdentityServiceProvider(); cognitoidentityserviceprovider.getUser(par...
I'm using amazon-cognito-identity-js to authenticate my user pool users.And after authenticating it's passing access token, id token and refresh token.And also the user id is there(user's id in user pool).Is there any way to get user attributes like(nick name,birthday,address) with these tokens or the with the user id ...
How to get extra attributes of a user in user pool in AWS Cognito
Yes is doable. Just define your application in one container and nginx in another container, both in the same docker-compose.yml. Link them. And only expose the 443 port in nginx container. docker-compose.yml nginx: image: nginx links: - node1:node1 - node2:node2 - node3:node3 ports...
I'd like to know if it's possible to use nginx with docker compose as an api gateway / reverse proxy / ssl termination point without exposing any ports on the containers behind it. I.e. I want to use only the intranet created by docker compose when the containers are linked to communicate past nginx. Ideally the only ...
Can you use nginx reverse proxy to docker containers without exposing any ports?
Bad News:UsingErrorDocumentyou cannot do it.Good News:It is possible usingmod_rewriterules.In each of the .htaccess shown in your question you can have a rule like this:RewriteEngine On # Determine the RewriteBase automatically/dynamically RewriteCond $0#%{REQUEST_URI} ^([^#]*)#(.*)\1$ RewriteRule ^.*$ - [E=BASE:%2] ...
I have a website where each of my users have a cms installed in a different directory, the structure is like:/ (root) /cms_user1/ /cms_user1/404.php /cms_user1/.htaccess /cms_user2/ /cms_user2/404.php /cms_user2/.htaccessIn each .htaccess file there is:ErrorDocument 404 /404.phpThe problem is that in this way the page ...
htaccess custom directory for error 404
Just change your env variables in your docker-compose file. And docker-compose up -d will updates your variables without rebuild images. Rebuild images is necessary if you change your dockerfile. Check this How to reload environment variables in docker-compose container with minimum downtime?
So as I sit and develop my Rails application and I move more settings into the environment section of my docker compose file. I then shut down all containers and rebuild the image. Seems like a lot of work. Can it be updated without rebuilding the image?
Can I change the enviroment setting without re building the docker image?
One can use theConfigureblock of Job DSL to define custom elements. A related question isUsing Jenkins Job-DSL Configure block to place custom steps in particular positions.The following script worked for me,configure { project -> project / publishers / 'quality.gates.jenkins.QGPublisher' (plugin:'[email protected]...
Does someone know Jenkins' Job-DSL syntax to configure SonarQube's quality gate plugin section?
Configure SonarQube's Quality Gate section using Jenkins' Job-DSL
Finally, I have resolved this by recreating that old person's email-Id again. From the command line, the email verification link sent on new account and I verified that.By the way, I was having three option to do that:-By Claiming Pods: -I didn't take it appropriate and was not sure that I will get help from Cocoapods ...
I have a custom framework that is already pushed on cocoaPods by some other developer and his email id is removed now. But he didn't add anyone owner of it. Now I have some changes in that framework and I want to push it on cocoaPods. Now when I am pushing it on Cocoapods from command "pod trunk pushPodspec_file_name.p...
Unable to Push Custom Framework on Cocoapods
Use following to determine from where irb is being executed:type irbTo make bash shell to forget all remembered locations use:hash -rIt appears that bash shell has previous location ofirbsaved in an internal hash.Check here fore details about hash in bash:http://linux.about.com/library/cmd/blcmdl1_hash.htm
Under OS X 10.8.3, have an environment like this:$ bash --version GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin12) Copyright (C) 2007 Free Software Foundation, Inc. $ echo $PATH /Users/r/Desktop/Beryl/usr/bin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:~/bin:/usr/local/bin:/usr/X11R6/binThere are two ...
Bash not honoring $PATH?
My issue was that, in addition to enabling auditing, I also needed to specify what to audit with theAUDITcommand. In my case, I wanted everything, so I added the following (commands mentioned inthis tutorial):SQL> AUDIT ALL; # note: it seems like the next two statements would be included with "all", but I didn't verif...
I enabled auditing on my Oracle XE server via the following run by thesysuser:SQL> ALTER SYSTEM SET audit_sys_operations=true SCOPE=spfile; SQL> ALTER SYSTEM SET audit_trail=XML,EXTENDED SCOPE=spfile; SQL> SHUTDOWN IMMEDIATE SQL> STARTUPWhen I run queries as thesysuser, an xml file records the queries in the default lo...
Oracle XE audit_trail not saving for all users
The way you have it, you should : delete [] matrix[0]; delete [] matrix; But this is a very unconventional way of allocating a dynamic 2D array. Normally you allocate an array of pointers, and then you allocate an array of your actual type for every row (column). // allocate int **matrix = new int*[3]; for(int i = 0...
I've a 3x3 2D dynamic array allocated as below: int** matrix = new int* [3]; matrix[0] = new int [3*3]; for (int i = 1; i < 3; ++i) matrix[i] = matrix[i-1] + 3; How should I deallocate it? Is this correct: delete [] matrix; delete [] matrix[0]; Or should I also delete matrix[1], [2]
Is this deallocation correct?
An alternative solution (since you could argue thatcellfunkind of loops implicitly as well: Use the fact that[A1*B1, A2*B2, ..., Ai*Bi] = [A1, A2, ..., Ai] * blkdiag(B1, B2, ..., Bi)(alternatively,blkdiag(A1,...,Ai)*[B1,...,Bi]).If the number of marices (i) is fixed, you can directly write it this way. If not and you h...
I have two matrix groupA1, A2... Ai N x K B1, B2... Bi K x Mand I wanna get matrixC = [A1 * B1; A2 * B2; ... Ai * Bi];Can it be done in Matlab without loop? Can I efficiently use GPU for this operation?
How efficiently multiply two sequences of matrixes in Matlab without loop?
I think the issue comes from the fact that when it works on your local dev machine, you had used--priviledged.In you deployment manifest you set hostPath to the worker node docker socket which is right, BUT neither the pod securityContext does not grant any elevated access to the mountPath, nor the container securityCo...
m getting the docker daemon issue ,dial unix /var/run/docker.sock: connect: permission denied Update docker fileFROM jenkins/jenkins:lts-jdk11 LABEL maintainer ashish<[email protected]> USER root RUN apt-get update && \ apt-get install sudo && \ yes |apt-get install vim # system preparation RUN sudo apt-ge...
In jenkins pipeline getting issue Docker daemon socket at unix when doing docker build in Kubernetes pod of azure kubernetes services
The $5 Amazon LightSail plan includes: A CPU that appears similar to a t2.nano ($0.0059c/hr in US regions) = approximately $4.25/month 20GB SSD storage, similar to Amazon EBS general purpose SSD (10c/GB/month) = $2/month 1TB data transfer (9c/GB = approximately $92 in US regions) So, the real saving appears to be in...
There is only one apparently abstract upside of using Lightsail, simplicity, or significantly simplified interface. Also, the first page of Lightsail talks about lower charges. My question is how is it considered to reduce charges compared to EC2? Consider $5 Lightsail plan which charges $0.0067/hour of an instance (...
How is Amazon Lightsail cheaper than EC2?
This is a known issue of SonarQube java analyzer :https://jira.sonarsource.com/browse/SONARJAVA-583This is due to a lack of semantic analysis to resolve properly method reference (thus identify to which method this::isActive refers to).ShareFollowansweredFeb 26, 2016 at 14:19benzonicobenzonico10.7k55 gold badges4444 si...
I have the following logic;.. if(list.stream() .filter(MyClass::isEnabled) .filter(this::isActive) .count() > 0) { //do smth } .. private boolean isActive(MyClass obj) { return bool; }As you see,isActivemethod is being used in the stream structure, but when I build this class on Jenkins, I ...
SonarQube giving unused private method issue for lambda usage
The cost of the samples will be extremely small as it'll compress well, the main cost will be the overheard of having a series at all which is about 2KB of RAM for ingestion. For a single time series this is so cheap that it's not worth worrying about.
I want to understand how Prometheus compresses data, and what are the cost of repetitive metric. Are they cheap? Does Prometheus has overhead in compressing?Let's say I have a service that exports metrics. And i want to add another metric called "ok" This metric will have the value "1", what would be the cost of adding...
Prometheus Cost of Repetitive samples
... both domains belong to the same account.You'll need to use mod_rewrite in that case, since you can't differentiate domains/hosts with mod_alias (ie.RedirectMatch). Also, note that 301 redirects will be cached by the browser, so it's quite possible that the browser has cached your earlier (erroneous) attempts.Rewrit...
I'm trying to redirect all the content fromdomain.com/subfoldertonewdomain.com.Currently using this in.htaccessondomain.com/subfolder:RedirectMatch 301 ^/subfolder/$ http://newdomain.com/The problem is it only works withhttp://newdomain.com/, but when browsing ex.http://newdomain.com/page1a 500 error pops up.Also tried...
Redirect subfolder content to different domain with htaccess (500 Internal Server Error)
This looks like calloc hitting a threshold where it makes an OS request for zeroed memory and doesn't need to initialize it manually. Looking through the source code, numpy.zeros eventually delegates to calloc to acquire a zeroed memory block, and if you compare to numpy.empty, which doesn't perform initialization: In...
I just noticed that the zeros function of numpy has a strange behavior : %timeit np.zeros((1000, 1000)) 1.06 ms ± 29.8 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) %timeit np.zeros((5000, 5000)) 4 µs ± 66 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) On the other hand, ones seems to have ...
Strange behavior during array allocation in numpy [duplicate]
Static classes should be avoided in ASP.NET. They stay in memory until the application is restarted and are subject to many concurrency errors and race conditions. And closing a user session (browser session) does not restart the application ! They stay in memory even if a user leaves and comes back. So really really ...
I was just wondering this the other day. I am not exactly sure how ASPX manages the garbage disposal, but as far as I can tell the "finished loading" does not remove static memory values or after the page has been reloaded. Static at least in terms of C means that the memory allocation follows your program until the p...
Static objects in ASP.NET a waste of memory?
Can a single GPU be called by two host threads concurrently, if I didn't use CUDA Stream?Basically no. Threads from the same process share a common context. Contexts only expose concurrency when using streams. Youmightbe able to get some degree of concurrency if you build your code to use aper thread default stream, bu...
Now I'm using ROS to develop a CUDA Project. There are two nodes corresponding to 2 host threads that need to launch 2 different CUDA kernels concurrently.So I'm wondering:Can a single GPU be called by two host threads concurrently, if I didn't use CUDA Stream?(let's say the GPU resources are enough for launching these...
Use Multiple Host Threads on a Single GPU
Put the argument toechoin single quotes rather than double quotes, so there won't be any evaluation of$(...)inside it.There's also no need to includecrontab -rin the command that's piped tocrontab -.bash -c "crontab -r; echo '* * * * * /usr/bin/wget -o /backups/\$(date +\%F_\%R).sql 127.0.0.1:8000/api/export/full' | cr...
I'm using a bash oneliner to create a cronjob that saves files to a path that depends on the current time, hence I'm usingdate. However, thedateexpression is evaluated when I insert the cronjob, while I want thedateexpression to be evaluated when cron runs the job.My command is like this:bash -c "(crontab -r; echo \"* ...
How to insert cronjobs using bash without evaluating command?
You can simply do the following.steps { script { def time = new Date().getTime() echo "$time" } }
im working on Jenkins to automate my test runs in my project and as a task/stage where i need to fetch or use epoch timestamp in stage. Could you please help me with your suggestions how can i achieve it?Required Format: 1656166890987
How to get Epoch(unix) timestamp in Jenkins declarative pipeline code
Is there any more error text? The log shows the HTTP status code 302 which means the hit is being redirected. It appears to be redirecting the cron script to the login page at "/".
I am trying to create a cron job in GAE using java but it is failing with below error message.2013-07-22 18:46:13.336 /cron/addCount/1 302 184ms 0kb AppEngine-Google; (+http://code.google.com/appengine) 0.1.0.1 - - [22/Jul/2013:18:46:13 -0700] "GET /cron/addCount/1 HTTP/1.1" 302 148 - "AppEngine-Google; (+http://code.g...
Cron job failing with error code 302
Have you tried emailing github support and explaining your problem?Failing that, either the system will timeout and you can upload the old ones again or you will need new keys - I don't know exactly what github's restrictions on old keys are.
I removed my SSH Keys in an effort to backtrack a little bit. When I went to re-add them I got "Oops! The key has already been taken. " Even though I obviously just removed the key it was referring to.It seems the system just doesn't update itself right away. Anyone know how long it takes to remove the keys from my acc...
Re-Adding Keys to Github
First, go back and reread the memory management rules just to make sure you are not missing anything obvious in your use of delegate elsewhere. Next, turn on NSZombieEnabled (in your executable settings, Arguments panel, add an environment variable NSZombieEnabled set to YES). Then add a dealloc method to your delagat...
I am really puzzled by this. I believe I am managing memory the correct way but executing the code suggests that I am double releasing the object. Here is the code and then I'll explain what is happening. @protocol SomeDelegate <NSObject> @required - (id)initWithCols:(NSUInteger)Cols Rows:(NSUInteger)Rows; @end @int...
Double releasing when it shouldn't be happening
How I solved it:I created a secondary volume on my EC2 instance to have space for the file x3 or so, to also include space for the extracted files. See guide here:http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-add-volume-to-instance.htmlBy being connected to the EC2 instance by SSH, I used theunzipcommand to un...
I have a zip file that is about 20 GB large and contains about 400'000 images that I was able to move to my EC2 instance by usingwget. Now I want to unzip the files and save them to my S3.Preferably it would be great if I didnt need to unzip them to the ec2 first. Can I by SSH somehow useunzip -optionsto extract each f...
Unzip file on ec2 and save it on S3?
You can do this with theJSON.GETcommand and JSON path syntax (docs here)First, save the document in Redis at key "jsondoc":127.0.0.1:6379> json.set jsondoc $ '{ "name": "Michael \u0027Mike D\u0027 Diamond", "employeeID": "E#101", "role": "Cleaner", "location": { "longitude": -2.552079, "latitude": 51.501335 }, "numberO...
I am trying to update a complex object via a path value which it appear ReJson can do. I have used it as a Cache just fine, I want to use it as a json collection store for real time data (similar to mongodb).for example: { "name": "Michael \u0027Mike D\u0027 Diamond", "employeeID": "E#101", "role": "Cleaner", "location...
How do you update a value with a path in complex object in Redis/ReJson on Kubernetes?
1 After you set link->head to temp in the else part of your if statement, you don't set temp->next to NULL, thus making any use of temp->next as if it had a value in undefined behavior. Add this to your else part: else { link->head = temp; temp->next = NULL; // or n...
I'm trying to create a linked list, but I have a problem about memory access. I debug the code, see where it gives error, but cannot solve it. With using 'Add watch', can see the next has unable to read memory error. struct Node { string Name; Node* next; }; struct LinkedList { Node* head = NULL; bool...
Linkedlist Memory Read Error
0 It is a good practice to use custom autorelease pool blocks if you are creating lot of temporary objects using convenience constructors. Since objects created using convenience constructors are autoreleased they may not be released immediately. This is the reason for ...
I'm checking the memory usage of my IOS application using instruments, and found that CFString keeps on being allocated and growing. I used StringWithFormat method, not something like [[NSString alloc] init] when creating NSString object in my code. How can I stop this? The following image is the screen capture of i...
CFString (immutable) memory usage keeps on growing in IOS application
When you mark a volume in the dockerfile, say VOLUME /site/uploads,it makes it very easy to later run another container with --volumes-from <container-name> and have /site/uploads available in the new container with all the data that has been written and that will be written (if the first container is still running). ...
I'm building a web application that needs to allow users to upload profile pictures. I want the application to be self-contained, so that people don't need to have an s3 or other cloud storage service account. It's best to keep docker containers as disposable as possible, so I guess I should create a volume. So I wan...
Where should a dockerized web application store uploaded files?
As soon as I posted this it occurred to me that maybe apt wasn't updating first. Sure enough, I needed to have the apt cookbook installed and in the run list ahead of nginx. This solves the problem.
I am trying to get an nginx/unicorn ruby app server configured with chef. The problem I am running into is a dependency on the build-essential cookbook which when run, results in the output:================================================================================ Error executing action `install` on resource 'pa...
Error with Chef build-essential cookbook on ubuntu 12.04
No, you shouldn't have to do that. When cloning the code from the github on the second machine, it should have created a local master branch tracking origin/master. So, just work on thismasterbranch (which is the default one) on your second machine, and when ready,pushit on the server.When going back to your first mach...
So I finally set up my first Github repo, and the reason is that I have multiple working machines, and I'd like to have a way to sync up all my work somewhere. I have my project set up on Eclipse so I'm using EGit to connect to github.I first shared my project on my main working machine(call this machine 1) to github, ...
Github - Is it possible to work with only one branch on different computers
Here are a few reasons that come to mind:A shell isn't publicly accessible, where a url (generally) isA shell doesn't hit your webserverThe shell dispatch process has less overheadShell output is easier to log error vs. outputI could go into separation of concerns, but that's usually opinion-driven. I think the first t...
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened,visit the help ...
Which is the advantage of using CakePHP Console / Shell for programmed tasks [closed]
You can at least try: git update-index --skip-worktree -- README.md As I mentioned here, that would resist a git pull. And you would keep a local version of README.md, different from the tracked one from GitHub. I don't presume to know if it is a good idea or not, in your particular situation.
I want to have two separate versions of a file: One on github and one on my local machine. More specifically, how do I ignore a commit coming from the remote server. In this particular case, I modified the file on github, committed it, but I want it to not change on my local machine. I put the readme file on .gitignor...
How to ignore an incoming commit
When the hosting providers themselves procure the traffic capacity wholesale for their clients, they usually have to pay on a 95th percentile utilisation scale, which means that if a 5-minute average utilisation is at or below 5Gbps 95% of the time, then they'll pay at a rate for 5Gbps for all of their traffic, even i...
I have a streaming setup using ngnix and i would like to know how to fine tune the data transfer, say i have the following in this diagram. You can see one person is connected via a media player but nobody is watching their stream but it remains connected constantly even if i reboot ngnix it will reconnect. So it is ...
Tuning the cost of data transfer with NGINX
It'si possible MacVim has issue opening files inbundle/ShowMarkbecause the actual repo name on GitHub isShowMark**s**(.git).It might be better if that submodule was register to be inbundle/ShowMarks.See "How do I move an existing git submodule within a git repository?" for more on that step.ShareFolloweditedMay 23, 201...
I am using submodule to control my plugin in MacVim. When I tried to update the submodule usinggit update submoduleIt comes out:fatal: destination path 'bundle/ShowMark' already exists and is not an empty directory. Clone of 'git://github.com/vim-scripts/ShowMarks.git' into submodule path 'bundle/ShowMark' failedI trie...
Unable to update submodule in github due to exist directory
Certificates are verified against a truststore somewhere on your system. This truststore should be updated once in a while; e.g. Firefox and Windows do this when updating the software. The error is a bit unclear; it actually means your curl client gets a certificate for which it doesnothave a trusted (root) certificate...
Fatal error: Uncaught CurlException: 60: Peer certificate cannot be authenticated with known CA certificates thrown in/home/ldr/public_html/src/base_facebook.phpon line886See:http://ldr.x10.bz/examples/with_js_sdk.phpI've been getting this error for 2 days now and can't find any information on where it has come from? ...
curl exception 60: Certificate Security api exception
If you are using Sql Server, there's also another option to consider:Use theSqlCacheDependencyclass to have your cache invalidated when the underlying data is updated. Obviously this achieves a similar outcome to option 2.I might actually have to agree with Agileguy though - your query descriptions seem pretty simplist...
I'm still yet to find a decent solution to my scenario. Basically I have an ASP.NET MVC website which has a fair bit of database access to make the views (2-3 queries per view) and I would like to take advantage of caching to improve performance.The problem is that the views contain data that can change irregularly, li...
ASP.NET MVC Caching scenario
Elastic IPs become disassociated with EC2 instances (in EC2-Classic) when you stop them. You will need to re-associate them again on startup, which can be done through the API (via AssociateAddress), CLI (via ec2-associate-address), or via the AWS Console. Here's what the Elastic IP documentation has to say on the ma...
So, I don't understand what is going on here... I have (3) Micro EC2 Instances which are launched (without elastic ip) I then go to Network Security->Elastic IPs and click associate IP address. I chose a running EC2 instance, that instance then uses the elastic ip. If I stop, then start this SAME ec2 instance, it does...
EC2 Instances will not keep elastic IP
Based on docshttps://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html, its not-shareDbbut-sharedDbShareFollowansweredApr 11, 2019 at 13:54libiklibik22.6k99 gold badges4848 silver badges9090 bronze badges2Wow. I won't comment on how much time I spent looking into the iss...
I'm trying to start a DynamoDB Local Docker container with the -shareDb option but it failes with the message "Error while parsing options. Unrecognized option: -shareDb".The docker image is from amazon/dynamodb-local and I'm starting using a docker-compose file.The container starts okay without the -shareDb option.Be...
Why doesn't DynamoDB local recognize -shareDB option?
You should just do:v1 = client.CoreV1Api() w = Watch() for e in w.stream(v1.read_namespaced_pod_log, name=pod, namespace=namespace): print(e)
Trying to use the python kubernetes API to stream the output of kubernetes pod logs. (eventual goal is to stream the logs out via websocket)Based off thisPRthat was merged into python kubernetes module, i thought watch would work with read_namespaced_pod_log?v1 = client.CoreV1Api() w = watch.Watch() for e in w.stream(v...
python kubernetes watch pod logs not working
git added files are stored under.git/objectsfor a while, even if they have not been committed. You may be able to recover them if it is not GC'd.To find out files you lost:git fsckto list dangling blobs and trees (means "files and directories not ended up in any commit" in git jargon)git cat-file -p SHA1-of-the-file-or...
I have work on my project and backup only with "git add .". Unfortunately, I forget to commit my code and I loss the file. Right now, I git clone the previous code I have last time. How can I track the history on my previous "git add" and able to restore the code I miss? Thank you.
How to find out "git add ." history
InH 5 * * 7the H means hash. You can have digit in the first place, but H allows to distribute the load better.H= minute when less load is expected, Jenkins will propose it the first time, after that it will stay more or less the same, if there are available agents to handle it.5= hour,*= any value (every day),*= any v...
I am trying to understand when this trigger runs in Jenkins groovy script. Seems to me that Jenkins groovy script has some DSL for cron. Does anyone know when this cron job is triggered?triggers { cron('H 5 * * 7') }
"H 5 * * 7" cron in Jenkins groovy script
The push stream module will technically do what you want it to do -- set up a url in which you can push updates to that in turn can be polled by a pubsub in your client side code.In order to install the push stream module, you need to get the latest source of nginx, get the source for that module, compile that, then re...
I'm creating a simple chat app. Have installed nginx on Ubuntu 11.10, with PHP via fast-cgi. To get a feel for performance, I made a simple PHP file that sleeps 10 seconds then reports the time. Calling this with several browser instances (different browsers, different machines) the response becomes sluggish after abou...
how to configure nginx for long poll (and php)
Yes. Each lambda invocation will get record from one tableReferUsing AWS Lambda with Amazon DynamoDBFollowing is an extract from that web pageThe event your Lambda function receives is the table update information AWS Lambda reads from your stream. When you configure event source mapping, the batch size you specify is ...
If I have a Lambda function that has multiple DynamoDB Stream triggers, is it guaranteed that each Lambda invocation only contains records from one table?
Multiple DynamoDB triggers for Lambda - Separate invocation per table?
There is still at least one outstanding issue relating to memory leaks with logs:https://github.com/docker/docker/issues/9139
I have the following setup:Perl service running in a container and writing logs out toSTDERRlogspoutto ship those logs out to a remote server for archivingin a 600 MB RAM machine.I also truncate the logs periodically at:/var/lib/docker/containers/CID/CID-json.logas suggestedhereto avoid 100% disk scenarios.ProblemDocke...
Docker daemon memory leak due to logs from long running process
You didn't add a remote calledupstream. You can add it by executinggit remote add upstream <git-repository-url>. When you are at the project page on GitHub you can find the git-repository-url on the right, there it is calledclone URL. After you added theupstreamremote you can execute the steps you originally found. Whe...
I've just recently started working with git and github.I forked a project, contributed to it and created a pull request. That pull request was merged.In the mean time, the project I forked has had new changes pulled into it. Now I want to grab those changes so that my forked project is identical to the project head.Ho...
Github, how do I sync my branch to the master?
If its due to out of memory, try to increase the heap memory as below-Xms512m -Xmx1gYou may need to change in the eclipse.ini file.
I want to use AptanaStudio,Eclipse and after running that i get this error.JVM terminated. Exit code=1 /usr/bin/java -Xms40m -Xmx512m -Declipse.p2.unsignedPolicy=allow -Declipse.log.size.max=10000 -Declipse.log.backup.max=5 -Djava.awt.headless=true -jar /home/tux-world/Desktop/Home/packages/Aptana_Studio_3//plugins/org...
Java JVM terminate in Aptana and Ecplise
I did not test it myself yet but from thedocsI could found that statementIf you use a schedule-driven task that must run as a single instance, be aware of the following:If the compute instance that is running the scheduler (such as a virtual machine using Windows scheduled tasks) is scaled, you will have multiple...
Let's assume a job triggerd via CRON every five minutes. For some reason, one execution at 10:00 lasts significantly longer, e.g. 8 minutes. Is a second instance triggered at 10:05?If yes, what's the right strategy to make sure the job is running as singleton and never twice?
Is a frequently triggered CRON Azure web job triggered a second time when it runs longer than the configured frequency
4 Because your request contains an If-Modified-Since header, the browser triggers CORS preflight. However, the resource, despite responding to GET requests with Access-Control-Allow-Origin: *, doesn't seem to support preflight: if you try to spoof a preflight request, it in...
In background.js, my browser extension periodically fetches a JSON file published in a GitHub public repository. Now I want it to be nicer to GitHub and its bandwidth limits, and only fetch file again if it was modified since last update: url='https://raw.githubusercontent.com/LearnWebCode/json-example/master/pets-dat...
How my browser extension can periodically refresh file from GitHub rawcontent?
Seems like passing the body option is an existing bug in travis-ci deploys that hasn't been fixed yet: https://github.com/travis-ci/dpl/issues/155
I need help or explanation in deployment to github releases via Travis-CI I have part of .travis.yml configuration file jobs: include: - stage: publish if: env(BRANCH_IS_TAG) != true name: "Create Github Release" script: - yarn build - bash ./prepare-publish.sh deploy: ...
Problem with creating github release via travis-ci with body content
The "updated" column contains the date when the issue has been updated (status has changed, resolution has changed, etc...)
(source:testlead.se)In SonarQube UI, when you list issues based on Severity, you will get a list of issues to drilldown. These are the coloumns in the UI. Severity, Status, Description, Component, Assignee, Action plan and Updated. I wonder what actually "Updated" shows?
What does updated means in this picture in SonarQube web UI
-1As @florianb pointed out, I shoulduse git.Originally my .travis.yml was something like:before_install: - curl -L https://raw.githubusercontent.com/greghendershott/travis-racket/master/install-racket.sh | bashThis would automatically get whatever the latest version is, from the repo.But someone pointed out to me that ...
Although this question issimilartoGitHub latest release, it's actually different -- it's about a link that means "the latest version of the download file itself".GitHub provides a "Latest" URL that redirects to theinformation pagefor the latest release. For example:https://github.com/reactiveui/ReactiveUI/releases/late...
GitHub URL for latest release of the _download file_?
0 What is the equivalent way to view a list of feature branches in my fork on Github? Online (as opposed to my old answer with local command git ls-remote), you would simply click on the branches link of your fork. for instance: https://github.com/rratliff/gnucash/branche...
I've forked a repository on Github that I would like to contribute to. I've already developed several features as feature branches. On my local machine, I can view the list of feature branches I've written by doing git branch. What is the equivalent way to view a list of feature branches in my fork on Github? If I jus...
Github: View feature branches unique to this fork (not in upstream)
You don't need to hide the whole folder. you can add the following to your git ignore to hide all the necessary files# Flutter/Dart/Pub related **/doc/api/ **/ios/Flutter/.last_build_id .dart_tool/ .flutter-plugins .flutter-plugins-dependencies .packages .pub-cache/ .pub/ /build/ # Web related # Symbolication related...
I was planning to push my app to git hub as a public repository but i wanted to know weather android/ ios/ linux/ windows/ linux/ folders are safe to pushI had seen repositories which had those files pushed but I'm still not sure weather to make it public or no
What are the files which are not safe to push to GitHub as Public Repository
7 When we push an image into a registry, We create a manifest that defines the image - layers inside it, and push both the manifest and layers independently. We compress the layers and only then push them. So in our host the hashes we have are the hashes of the content pr...
I am trying to understand the connection between the image ID as reported by docker images (or docker inspect) and the actual layers or images in the registry or manifest (using v2). I run docker images, I get (abbreviated and changed to protect the not-so-innocent): REPOSITORY ...
What is the relationship between a docker image ID and the IDs in the manifests?
Yes, you can specify using a Spring-EL expression along these lines: @Override @Cacheable(key="#bar.name.concat('-').concat(#bar.id)") public int foo(Bar bar) { .... } or define a modified hashCode on bar and call that: @Override @Cacheable(key="#bar.hashCodeWithIdName") public int foo(Bar bar) { .... }
I have a service that takes in a DTO and returns some result: @Override public int foo(Bar bar) { .... } Bar is as follows (simplified): public class Bar { public int id; public String name; public String baz; @Override public int hashCode() { //this is already being defined for somet...
@Caching With Multiple Keys
0 If .github folder is used for github, I think you should push it on the repo. Concerning .npmignore files, it's useful to push it or if you clone your repo on another place, it will not be available on his npm command. Hope it helps Share Improve this answer ...
Should I npmignore .github folder which contains stuff need for Github Actions? Also side question. Do I need to push .npmignore to github?
Should I npmignore ".github" folder?
To set up both your apex/root domain andwwwsubdomain with Railway, follow these steps.On RailwayGo to the 'Settings' tab of your project, and scroll down to the 'Domains' section.Add your root domain andwwwsubdomain as follows:On Domain RegistrarGo to your domain manager, and add the following DNS records:TypeHostname...
Closed.This question isnot about programming or software development. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchan...
Adding custom godaddy domain to railway web app [closed]
Assuming you have a recent version of Nignx 1.0.x+ (I think), this should work: location = / { if ($is_args = '?') { return 301 $scheme://$host/index.php$is_args$args; } rewrite ^ /clientarea/ permanent; } location ~ ^(.*)$ { try_files $uri $uri/ /index.php?$1; }
At the bottom of this post is my current nginx rewrite rule and for the most part it is working as it should. The only issue I seem to be coming across is in the example of a link such as example.com/?action=cmd, this action is being processed as example.com/clientarea/?action=cmd I am looking for a way that when the ...
nginx rewrite rule with try_files
You can see this error if the EC2 instance does not have the correct IAM role. Create an IAM role with the policy "AmazonEC2RoleforAWSCodeDeploy". You can't add an IAM role to an existing instance, so you'll have to launch a fresh one.Also make sure you've installed the CodeDeploy agent for the correct region, e.g. for...
I am working on a scenario, where I need to push the code from a GIT repository to AWS Instance. To achieve this I am usingAWS CodeDeployfeature. But in the final step of the process to deploy the code, I am receiving the below error.Deployment Failed The overall deployment failed because too many individual instance...
AWS Deployment Failed due to "HEALTH_CONSTRAINTS"
I would create a new .conf file specifically your mobile site, e.g. inm.reviewer24.com.confwith a new server block then reload your nginx config.This way if you need to make specific changes to your subdomain configuration, it's easier to manage. Alternatively, you could append the new server block the into your existi...
My reviewer24.com.conf file looks like this:server { server_name reviewer24.com www.reviewer24.com; access_log /home/nginx/domains/reviewer24.com/log/access.log combined buffer=32k; error_log /home/nginx/domains/reviewer24.com/log/error.log; root /home/nginx/domains/reviewer24.com/public; location / { #...
Subdomain setup nginx
Resolved by using the following command:kubeadm init --kubernetes-version=v1.6.4(Note the "v" in the version number.)
Is it possible to run "kubeadm init" without Internet access?When executing kubeadm init on isolated networks where the host is not allowed to make external connections, it fails on download of a stable version check of some sort, as it tries to retrievehttps://storage.googleapis.com/kubernetes-release/release/stable-1...
How to execute "kubeadm init" v1.6.4 behind firewall
Ok, so I finally got it to work: Installing CygWin 64-bit and then using the 64-bit version of git (just choose to install git when you select components) it works flawlessly. A drawback is than you cannot use graphical clients like TortoiseGit with it. Some people have gotten it to work using a wrapper but I'm havi...
For a game development project we have a git repo which has large binary files. They vary between 10-70MB and ~700MB in total checkout size. I'm using the following software: Windows 7 64-bit Git [git version 1.9.4.msysgit.2] + open-ssh Tortoise windows client 64-bit When I try to push (initial push) to github I get...
Git push - select: Not enough memory
Okay so I got this working. Cron does not load the profile settings. I had to load the bash_profile as part of the commands and now it works.0/5 * * * * /bin/bash -l -c 'source ~/.bash_profile && cd /home/mss/ruby/example && RAILS_ENV=development bin/rake check_me_out --silent >> /tmp/cron_log.log 2>&1'
0/5 * * * * /bin/bash -l -c 'cd /home/mss/ruby/example && RAILS_ENV=development /usr/local/bin/bundle exec rake check_me_out --silent >> /tmp/cron_log.log 2>&1'Above cron throws an error "bash: bundle: command not found..."The command works just fine from the command lineAny help will be appreciated.
Rake Cron job error
51 Expanding on other answers, these are the steps I took on a fork I had of tsc-watch: git remote add upstream https://github.com/gilamran/tsc-watch.git git fetch upstream git merge upstream/master git push Explained: adding the remote server as upstream (alias) fetch al...
How do you pull changes from the parent of a fork in Git, specifically in a github configured project? For example, say I forked http://github.com/originaluser/originalproject into http://github.com/myuser/myproject. I don't plan on myproject on being a permanent fork, as I only want to maintain a "dev" branch to test...
Pulling changes from fork parent in Git
According to Lambda best practices you should : Keep alive and reuse connections (HTTP, database, etc.) that were established during a previous invocation. So your current code is right. Regarding the finalize() function, I don't think it is relevant. Lambda execution context will be deleted at some point freeing ...
I implement AWS Lambda function with Java and face with the question - how to release used resources correctly? In my function I make different calls of some resources: execute queries to DB, make REST-calls to third-party services (send StatsD metrics, invoke Slack webhooks, etc), interact with Kinesys stream. Not g...
Release of resources in AWS Lambda