Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
Make it so that CSS makes up the majority of your repository. One approach could be having your examples as full CSS files in their own right and linking in from the markdown. Documentation on how GitHub decides language for a repois here.
I have a GitHub repo that is just a Markdown file, although it's reference material specifically about CSS. I don't have any .css files for the repo but I'd like GitHub to be able to flag the repo as a CSS repo the same as it tracks other languages in repos. Any suggestions on how to best do this?
Marking a Non-Language GitHub Repo With a Language?
By the link suggested in comments I ran Gunicorn from command line and send big data request. I saw Gunicorn was experiencing : Request body exceeded settings.DATA_UPLOAD_MAX_MEMORY_SIZE error. As documentations says default value is set to about 2.5MB. https://docs.djangoproject.com/en/dev/ref/settings/#data-upload-m...
I have setup my server to use nginx plus gunicorn for hosting a project. When I send POST request of small sizes everything is OK. But when I send POST requests of size about 5MB I get 400 error from server. I had set client_max_body_size in my nginx configuration to 100M. Can anyone help with this error? Following is...
nginx + gunicorn 400 error
You need to obtain a promise for each page when the previous one completes, rather than all at once. i.e function fetchAndProcessPages(i, handlePage) { retrievePage(pages[i]).then(page => { handlePage(page); if (i+1 < pages.length) fetchAndProcessPages(i+1, handlePage); }); } fetchAndProcessPag...
I'm having some issues with what I think is a basic problem regarding use of Promises in my node.JS server side application - unfortunately I can't see how to resolve it despite seeing other similar questions (I think). Basically my issue is this: I am trying to retrieve some external data and then process it. There i...
Iterating through expensive async function - memory constraints, recursion?
In addition to "NodePort" types of services there are some additional ways to be able to interact with kubernetes services from outside of cluster:Use service type "LoadBalancer". It works only for some cloud providers and will not work for virtualbox, but I think it will be good to know about that feature.Link to the ...
I run the CoreOS k8s cluster on Mac OSX, which means it's running inside VirtualBox + VagrantI have in my service.yaml file:spec: type: NodePortWhen I type:kubectl get servicesI see:NAME CLUSTER_IP EXTERNAL_IP PORT(S) SELECTOR kubernetes 10.100.0.1 <n...
How to expose a Kubernetes service externally using NodePort
The way pull requests work is to apply a commit from a fork on top of the upstream repo.For that, the easiest way is to make your fix onthe same branchthan the one you intend to apply it (by making a pull request) on the upstream repo.In other words, all your changes should be done in a custom branch, except for the fi...
I've forked a repo on github to do my own customistations.However, along the way, I discovered a bug and fixed it and would like to send a pull request upstream.I followed the guide at:http://gun.io/blog/how-to-github-fork-branch-and-pull-request/And have created a branch with just the bugfix on it - but when I go to s...
How to push a bug upstream on github
Have it like this:# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wordpress/ RewriteRule ^bob/?$ /about [R,NC,L] RewriteRule ^properties/([a-zA-Z]+)/([a-zA-Z+'.]+)/?$ /properties/?prov=$1&city=$2 [R,NC,QSA,L] RewriteRule ^(?:properties/)?([0-9]+)/?$ /properties/?id=$1 [R,QSA,NC,L] RewriteRule...
I have a wordpress site set up with some custom redirect rules set up. The weird thing is I am sure these all of these were working before but now some of them no longer function.Here is the complete htaccess file:RewriteRule ^properties/([a-zA-Z]+)/([a-zA-Z\+\'.]+) /properties/?prov=$1&city=$2&%{QUERY_STRING} [R,NC] R...
htaccess regex wordpress not working
2 You can use rewrite of nginx. Something like this should work location /app/ { rewrite /app/(.*) /$1 break; proxy_pass http://localhost:8084; } Share Improve this answer Follow a...
Usually, when doing a reverse proxy setup, you have a server on your backend which looks like this: http://localhost:8084/app-root and you can proxy_pass location /app-root { proxy_pass http://localhost:8084; } It will proxy www.my-domain.com/app-root to the internal server http://localhost:8084/app-root. Great! ...
NGINX reverse proxy to a host with no root subdirectory
yes, the intuition for these scenario is to use multi-thread / even GPUs to accelerate. Butthe important thing is to figure out whether the scenario is suited for parallel computation.As you suggested that these datasets are independent of each other, but when you run multi-threaded version on 8 cores there's no obviou...
I am creating a database using C#. The problem is I have close to 4 million datapoints and it takes a lot of time to complete the database (maybe several month). The code looks like something like this.int[,,,] Result1=new int[10,10,10,10]; int[,,,] Result2=new int[10,10,10,10]; int[,,,] Result3=new int[10,10,10,10]; i...
Parallel computing of array elements on GPU
I would remove theproviderkey. Thecarrierwave-awsgemreadme(I'm guessing you are using that or something similar) does not even mention theproviderkey. That might have been an old requirement that has been deprecated.ShareFollowansweredNov 13, 2015 at 3:01Ryan KRyan K3,99544 gold badges4040 silver badges4343 bronze badg...
I have been bumping my head on the wall trying to get this working on production. For some reason, it works locally but not up on heroku.I keep getting this error messageArgumentError in Sessions#indexinvalid configuration option :providerAt first I assume it was because of this!but later after further digging I found ...
invalid configuration option `:provider'
Usedocker run -i -t <your-options>So here, -i stands for interactive mode and -t will allocate a pseudo terminal for us.Which in your scenario would bedocker run -p 4000:80 -it newappHope it helps!
I am new to Docker.I have a script named ApiClient.py. The ApiClient.py script asks the user to input some data such as user's email,password,the input file(where the script will get some input information) and the output file(where the results will be output).I have used this Dockerfile:FROM python:3 WORKDIR /Users/us...
Docker-Python script input error
After struggling on this same issue for some days I found that the problem was that the Firewall was preventing the websocket from working. I had Pandas Antivirus installed and Firewall was enabled in it. When I turned it off and used Windows firewall and opened that incoming port then it started working.Hope it helps
I'm new to front end web app development. I'm receiving a WebSocket connection failure as follows:WebSocket connection to 'ws://127.0.0.1:7983/websocket/' failed: Error in connection establishment: net::ERR_EMPTY_RESPONSEI looked up this WebSocket error and found diverted to the following pages.Shiny & RStudio Server: ...
Shiny Websocket Error
Upgrading to the latest mongodb (3.0.2) helped resolve this issue for me.P.S. - Make sure you kill the mongod process already running using killall -15 instead of pkill -9 as the latter could cause damage.ShareFolloweditedApr 21, 2015 at 5:20answeredApr 20, 2015 at 14:59Harshil GurhaHarshil Gurha7111 silver badge88 bro...
We just migrated our infrastructure on AWS from one account to another. The mongo version installed on the server is 2.4.9 I am new to MongoDb and faced the following 2 errors when I ran the web app -{"name":"MongoError","errmsg":"exception: FieldPath field names may not start with '$'.","code":16410,"ok":0}and{"name"...
MongoError exception: FieldPath field names may not start with '$'
That's expected. If you really want what's in theentrypoint.shyou can do something like this:kubectl exec -it <pod-name> -c <container-name> -- /path/to/entrypoint.shHope it helps!
I have an entrypoint defined in my container image, and it runs before the args specified in my deployment manifest, as it should. But when I execute a command on that container usingkubectl exec, it seems to bypass the container entrypoint. Is this the expected behavior? Can I somehow force it to always use the ent...
Does kubectl exec bypass the container's defined entrypoint?
No, it is not possible.The twitter API, as well as more or less every other web site API, do not allow you to set up such a feature. They only let you request data. It is up to you to request this data regularly and do something with it.In theory, twitter could allow you to set up a command to be run when you do make a...
I have a PHP script on my server that I want to run every time I post a new tweet to Twitter. Is there a way to automate this?I could of course set up a cron job to run the script every five minutes, or run the script manually every time after tweeting, but neither of those is instant — and that’s exactly what I’m look...
Use the Twitter API to run a script every time I post a new tweet
2 Use the following command to import from another ACR from a different subscription. az acr import --name <DESTINATION-ACR> --force\ --source <SOURCE-ACR-NAME>/IMAGE-NAME:IMAGE-TAG \ --image IMAGE-NAME:IMAGE-TAG \ --username <USERNAME> \ --password <PASSWORD> Sh...
When building my docker image locally and import it to Azure Container Registry (ACR), the Image platform is Windows. It should be Linux. How can I import my image as a Linux platform? I am using this command to import the image to my ACR. az acr import
How can I import a container to ACR and configure it to be a linux platform container?
Nothing much to do there: Create an empty directory and add it to git or create a project on github and clone it to get the empty directory Add your projects one by one to that directory and checkin NOTE: Tracking changes will become a bit tedious with this appropriate. You will need to be careful if you are workin...
I have several projects on my laptop. I would like to upload all of them to GitHub and in one repository called Android-projects. After searching the web and being bombarded by different material I got confused. How can I do that? I didn't quite understand the answers found on this website. All my attempts failed. I h...
Upload all projects to one github repository
You can cache blocks in twig with this extension:https://github.com/asm89/twig-cache-extensionIt allows you to cache blocks of a template based on TTL, a changing cache key, etc.ShareFollowansweredDec 10, 2013 at 19:23asm89asm897611 silver badge55 bronze badges3is it compatible with ZF2 modules?–Oscar FanelliDec 10, 20...
I've switched from Phptal to Twig: very better experience. However, in phptal I did "tal:cache" to cache some blocks of code... with Twig, how can I accomplish that?
Cache block with twig
In short: Yes.Typically, you'd overwrite the existing config file(s) in place while nginx is running, test it usingnginx -tand once everything is fine, reload nginx usingnginx -s reload. This will cause nginx to spawn new worker processes which use your new config while old worker processes are being shut down graceful...
I have nginx that I am using to receive traffic for multiple domains on port 80 each with upstream to different application servers on application specific portse.gabc.com:80 --> :3345 xyz.com:80 --> :3346Is it possible to 1. add/delete domains (abc/xyz) without downtime 2. change application level port mapping (3345,...
Can Nxingx do Reverse Proxy updates without downtime
And it seems that just after I asked this, I made a trivial change. This was picked up and pushed. So it seems that you have to wait until you've made a new commit in order for hg-git to pick it up.
I'm trying to get the hg-git extension working under Windows and after hours of fiddling, I finally seem to have it working. However, nothing shows up in my git repository even though the output of hg push reads: importing Hg objects into Git creating and sending data github::refs/heads/master => GIT:8d946209 [com...
No changes are pushed when using hg-git
Solution 1: usethis answeras a template to see how to configure the whole node to that sysctl value; you can use something likeecho 4096 >/proc/sys/net/core/somaxconn. Thereafter you can put a label on the nodes that use a VM with the needed sysctl configuration and use nodeSelector in the Pod spec to force scheduling ...
Scanario: I have a container image that needs to run withnet.core.somaxconn> default_value. I am using Kubernetes to deploy and run in GCE.The nodes (vms) in my cluster are configured with correctnet.core.somaxconnvalue. Now the challenge is to start the docker container with flag--sysctl=net.core.somaxconn=4096from ku...
How to pass `sysctl` flags to docker from k8s?
0 If this page was created newly, it might not show up in the google search result immediately because google has not indexed the page yet. Apart from this, there are multiple other factors which might be the reason your page is not showing up in the google. Read here for m...
I created my repository with GitHub. When I try to google it, its not listing in the search. https://github.com/Subathra19/An-innovative-packet-labelling-scheme-TCP-PLATO-for-Data-Center-Networks Thanks in advance
My GitHub repositories are not known by Google
With Nodejs 10 it's bad, because on 64bits OS it could exceed your limit value. It should be fine with Nodejs 12, however If you want scale pods using CPU activity, setting max old memory is a good idea. The GC will try to stay under this value, (so under your k8s request memory) and the CPU activity will grow up. I've...
I have nodejs application running on Kubernetes with limits:apiVersion: apps/v1 kind: Deployment .. spec: .. template: .. spec: containers: - name: mynodejsapp .. resources: requests: memory: "1000Mi" cpu: "500m" limits: mem...
Should I pass any memory options to nodejs application running on Kubernetes pod with limits?
If you have already typed$ git remote add origin[email protected]:<username>/<reponame>.gityou can not type it again, because origin is exist now. And it will respondfatal: remote origin already exists.but the address which link to origin may wrong. Try to type$ git remote remove originand type$ git remote add origin[e...
I've checked stackoverflow a lot trying to figure out why I could be receiving this error because I do have a repo on github for what I am trying to push to. I even regenerated my ssh key and added it to github. I also see:Please make sure you have the correct access rightsand the repository exists.When I try to add th...
Repo not found fatal error while using git and unable to push to github
Motion Chart Plugin 1.7 is not compatible with SonarQube 6.0. For the time being, there's no plan to make it compatible.Edit:Nevertheless, I think that 2 new core features may help you manage your team on a day to day basis:the Leak Periodthe new Quality ModelThis features are central in the way we use our software eve...
Since I updated sonarqube to version 6.0, I can't get motionchart plugin to work ... All I get is a blank widget and a red top band with a [hide] button. Besides, I have found errors like this in the server log:2016.08.26 14:23:19 ERROR web[rails] undefined method `snapshot' for #MeasureFilter::Row:0x641ff8d3Has someon...
sonarqube 6.0 and motion chart plugin
?is a special char in regex, so you need to escape it in the cond's pattern to match?literally :RewriteCond %{THE_REQUEST} /entrar-na-sua-conta.html\?redirecionar=/([^\s&]+) [NC] RewriteRule ^ https://www.portal-gestao.com/%1? [L,R=302]ShareFollowansweredApr 19, 2016 at 12:59Amit VermaAmit Verma41k2121 gold badges9595 ...
How do I redirect:https://www.portal-gestao.com/entrar-na-sua-conta.html?redirecionar=/f%C3%B3rum-perguntas-e-respostas/conversation/read.html?id=25To:https://www.portal-gestao.com/f%C3%B3rum-perguntas-e-respostas/conversation/read.html?id=25Using.htaccessandregex?I'm trying:RewriteCond %{THE_REQUEST} /entrar-na-sua-co...
Redirect URL with htaccess and regular expression
You've most likely run into the WebSocket connection limit. The Javascript client of Gremlin is not managing a connection pool. The documentation recommends using a single connection per Lambda lifetime and manually handling retry. (If the gremlin client doesn't do it for you).Neptune LimitsAWS Documentation
I am working on an app that uses AWS Lambda which eventually updates Neptune. I noticed, that in some cases I get a 429 Error from Neptune: Too Many Requests. Well, as descriptive as it might sound, I would love to hear an advice on how to deal with it. What would be the best way to handle that?Although I am using a de...
AWS Neptune access from Lambda - Error 429 "Too Many Requests"
I believe if you set thedomainattribute on theformselement in you web.config, to the same as the one in your custom cookie, it should work. (EDIT:that approach won't work because the SignOut method on FormsAuthentication sets other flags on the cookie that you are not, likeHttpOnly) TheSignOutmethod basically just sets...
Title should say it all.Here's the code to set the cookie:// snip - some other code to create custom ticket var httpCookie = new HttpCookie(FormsAuthentication.FormsCookieName, encodedTicket); httpCookie.Domain = "mysite.com"; httpContextBase.Response.Cookies.Add(httpCookie);Here's my code to signout of my website:Form...
FormsAuthentication.SignOut Not Working With Custom-Domain Cookie
I used to virtualize all my development eviroments using VirtualBox.Basically, i have a Debian vbox image file stamped in a DVD. When i have a new project i copy it to one of my external hdds and customize it to my project.Once my project was delivery, then i copy the image from my external hdd to a blank DVD and file ...
I'm getting pretty tired of my development box dying and then I end up having to reinstall a laundry list of tools that I use in development.This time I think I'm going to set the development environment up on a Virtual Box VM and save it to an external HDD so that way I can bring the development environment back up qu...
Does anyone use Virtualization to create a quicker disaster recovery of a development environment?
The only way to allow an app on subdomain.example.com to read a cookie from www.example.com would be for www.example.com to set a top-level example.com cookie.This would allow subdomain.example.com to read it, but it would also allow every other subdomain of example.com to see this - which you said you don't want.To fo...
In order to store some Google Analytics data, I would like to access to GA "__utmz" domain's cookie (domain=.example.com) from my www subdomain (domain=www.example.com). Is it possible to read this domain's cookie from a subdomain ? If yes, how can I do that with Rails ?cookies[:__utmz]doesn't seem to work with all bro...
Read domain's cookie from subdomain with Rails
...dns.lookup('http://my-service'...Thelookupfunction (with example usage) takes the first parameter as the host name that you want to lookup, eg. google.com. You should remove "http://" from the name you passed in.
I've try yo measure DNS latency in my docker-compose/kubernetes cluster.setInterval(() => { console.time('dns-test'); dns.lookup('http://my-service', (_, addresses, __) => { console.log('addresses:', addresses); console.timeEnd('dns-test'); }); }, 5000);But getaddresses: undefined, any ideas?
Node.js dns.lookup() to internal docker-compose service
If it's deleted on the remote as well, you can simply usegit fetch --pruneand it will simplypruneall the branches that are not in the remotes anymore.On the other hand if it's not deleted on the remote repository and you won't ever fetch again, you can simply usegit branch -rd <branch_name>
I have fetched a few remote branches e.g.git fetch jason sprint-36. I have attached a screenshot (reds are remotes):How would I stop tracking/delete a remote from my list? For example 4 months ago I didgit fetch ken retain-cycle-fixand I will never fetch or look at this branch again, how do I remove it?
How to remove fetched remote branches from Git?
Github Wikis allow you to embed HTML, but not all HTML tags are supported. To embed supported HTML: Edit a wiki page. Ensure the edit mode is on "Markdown". Type the html directly into the main content area (there's no "code" view, like you often see in tools like Wordpress). Which tags aren't supported? I couldn't ...
I would like to create a wiki page that is a preamble (standard markdown) followed by an HTML/JS code listing followed by (in a frame I suppose) the page that this code would generate. Is this possible? PS The code is: http://pipad.org/MathBox/slides_simple.html
Can a GitHub wiki embed HTML
I didn't see any pattern for your requirement, but you can thisvar CronJob = require('cron').CronJob; var x = 1; new CronJob('0 35 14 * * 0', async function () { if (x / 2 != 1) { x++; //do somthing } else { x = 1; } }, null, true, 'America/Los_Angeles');
Below cron job runs every Sunday 14:35:00, but I want to run the run job every 2 Sunday 14:35:00.Is it possible to do that?var CronJob = require('cron').CronJob; new CronJob('0 35 14 * * 0', async function () { }, null, true, 'America/Los_Angeles');
Nodejs - How to set cron job to run on every 2 Sunday
11 I know this question is old, but I thought it was worth adding that if you are using Docker For Mac, you can navigate to Docker > Preferences > Resources > Advanced, and on that page are several options to control resource settings such as: Number of CPUs Memory Swap Di...
Closed. This question is not about programming or software development. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily use...
Why docker container is consuming lot of memory? [closed]
0 The problem is that if User B has a right to commit, you cannot remove its access to the merge button. The only way to remove user B's right to press the button is to remove it for everyone using branch protections, and only allow a GitHub App to merge. You could levera...
I want to allow only the pull request author to merge it. I have a GitHub repository with branch protection, ownership to request mandatory reviews, and a minimum number of reviews set for pull requests. However, all these checks happen before someone click on merge. Here is an example: User A create a pull request. ...
How to allow only the pull request author to merge it?
Copy the main.dart file into the lib folder:Navigate to the 'lib' folder in your project.Paste the main.dart file into this folder.Set Dart path in Android Studio:Open Android Studio.Go to 'File' > 'Settings' > 'Languages & Frameworks' > 'Dart'.Set the Dart SDK path to the appropriate location.Run the Code:Open the mai...
Some of the things I find very pretty confusing as a beginner in flutter.As described in github about using the usage but don't know anything about it.I don't find main file in the source code and also showing so much error in code which I don't know how to resolve it.Overall don't have any idea how to run this project...
trying to run a project from github but unable to do it in andoird studio flutter
Hi so let me tell you the basic steps on how to use git to push something. Just check if you are following all these.If you have a new project and it does not have git initialized then do: -git initthen whenever you do some changes in the project folder and save it just go back to git and do:-git statusif it shows some...
I am unable to add any files to git when I give command 'git add .' in a Git bash session.It shows error:'EG' does not have a commit checked out. fatal : adding files failed.I am unable to do any operation in Git now.I tried allgit checkoutcommands, deleted branches.I even deleted git bash from my system.Tried to sea...
Unable to add files due to git due to a checkout issue
I think a more illustrative version of your flow would be something like thisGithub / | \ Staging Server | Production Server \ | / \ | / \ | / Development MachineSo you would push to github from your dev machine, then when you de...
I am new to all this so my apologies if this sounds very basic but I am looking to use github and a staging server (staging.example.com) for my RoR app and then will be moving the staging code to example.com. So I will be having something like this -Local System <----> Github <---- >staging server <---> Live Server/sit...
How to use staging server and github for my RoR App ?
Many projects have:help modelineoptions in the comments at the bottom of the file. For example,# vim: noetThese kind of options will override the options in your ~/.vimrc. Project maintainers often put these in for consistency across the code. Some projects don't have these but still conform to a set of rules. For exam...
I am pretty new to "contributing to a github project" but excited to do so, I am wondering how do I get the indentation similar to the existing one while contributing to a github project. For example I use VIM and I have my own .vimrc file but when I fork and then clone a ruby project to contribute, how do I use the sa...
Indentation of code while contributing to a github project
synchronizedensures you have a consistent view of the data. This means you will read the latest value and other caches will get the latest value. Caches are smart enough to talk to each other via a special bus (not something required by the JLS, but allowed) This bus means that it doesn't have to touch main memory to...
When a synchronized method is completed, will it push only the data modified by it to main memory, or all the member variables, similarly when a synchronized method executes, will it read only the data it needs from main memory or will it clear all the member variables in the cache and read their values from main memor...
Synchronized data read/write to/from main memory
Serialization of 'Closure' is not allowedYou can use thePHP SuperClosure libraryto get rid of this.Also you can try other memory storages likeRedisorMemcacheto cache your objects. See thisresolved stackoverflow question.
I use some php library, and generate element of class$elnew = new LibClass();I want to save this variable to cache. If I make like this$elem = $cache->getItem($ig_name); if (!$elem->isHit()) { $elem->set($elnew); $cache->save($ig); }$elem->isHit()is always false. I checked how cache works with string - all is ok. A...
Symfony cache dont work with class/object
4 Like you did: clone the repo $ git clone https://github.com/adityai/dashboards.git This repo does contain a Dockerfile (which is a file which describes the setup of your docker image). You can build a docker image from the file $ cd dashboards $ docker build -t my-dashbo...
I forked the keen/dashboards github repo and I am trying to create a Dockerfile for running the dashboard in a Docker container. My fork: https://github.com/adityai/dashboards I am not familiar with node and npm. The Docker image was built successfully. https://hub.docker.com/r/adityai/dashboards/ I am not sure if I a...
How-to install and run keen/dashboards
The /tmp filesystem is often backed by tmpfs, which stores files in memory rather than on disk. My guess is that is the case on your nodes, and the memory is being correctly charged to the container. Can you use an emptydir volume instead?
I have a Kubernetes cluster that takes jobs for processing. These jobs are defined as follows: apiVersion: batch/v1 kind: Job metadata: name: process-item-014 labels: jobgroup: JOB_XXX spec: template: metadata: name: JOB_XXX labels: jobgroup: JOB_XXX spec: restartPolicy: OnF...
Kubernetes pod running out of memory when writing to a volume mount
I think there is only one assumption you can relay on: This is the interface provided by AWS and what is not worded specifically in the AWS documentation is not supported.When a new programmatic access key is created it always differs, so it does not make much sense that it will "stay the same between calls". I think t...
aws sts assume-rolereturns three fields as the issued Temporary Security Credentials.AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYAWS_SESSION_TOKENThe first two are with the same format of a user'sAccess Key, but the 3rd field,AWS_SESSION_TOKEN,is special to the temporary credential.I have two questions:IfAWS_SESSION_TOKENis ...
What's the functionality of AWS_SESSION_TOKEN returned from STS API?
OK, got this done. The problem is in the smart http buffer chunking mechanism and whoever stuck at this ever just run this git guy: git config http.postBuffer 104857600 or any other number of bytes, but pls not a very big one, up to 50MB as they suggest on their website.
spent all day tryin' to sucessfully push a piece of code into our Git repo. When i generate public key for SSH I get a Git fatal error saying "Access denied" and I've read it's better for VS to go with Http. Now, when I switch to Http everything works well but the final git push origin master this time ending up with...
How to properly set up Visual Studio 2013 Git Source Control Provider for Http?
Actually, as in absolutely? On a modern operating system, no. In some environments, yes. It's always a good plan to clean up everything you allocate as this makes it very easy to scan for memory leaks. If you have outstanding allocations just prior to your exit you have a leak. If you don't free things because the OS ...
This question already has answers here: What REALLY happens when you don't free after malloc before program termination? (20 answers) Is freeing allocated memory needed when exiting ...
Should you free at the end of a C program [duplicate]
Nginx would not normally specify the port as part of an external redirect if the port number is the same as the default port for the scheme. Port 80 for http and port 443 for https. You can specify the port explicitly in the rewrite statement. For example: location = /order.pl { return 301 $scheme://$host:$server_...
I am having difficulty rewriting url and reverse proxy the request to a spring boot app. Rewrite works but i am losing port number and cause of that it is not working. For example localhost:80/order.pl converts into localhost/home. The port gets lost and app is not receiving the request Similar examples online don't w...
NGINX: Rewrite url and reverse proxy to a different port
My understanding of thisto request certificates with multiple identifiersis that you will be able to associate multiple domains to one certificate. These domains will most likely be stated in subject alternative name extension of the certificate.Each domain will be validated by CA and only validated domains will be pla...
I'm interested in the upcomingAutomated Certificate Management Environment (ACME). I download the demos & tried it out with my main domain. I still have a question though: Using the regular certification process, I'm able to get a certificate with SAN so I can set it on my server (Node.js) and serve it for all the subd...
ACME - Acquire certificate for subdomains with SAN
The first solution that comes to my mind is to volume mount your external directory (storage base path) to an internal directory in your container. Then, you can create the directories in that internal directory, and these directories will also be created in your storage base path. The code will then need to use this...
what I'm trying to do is simply write files to a path private string CreateIfMissing(string path) { path = Path.Combine(_options.baseBath, path); if (!Directory.Exists(path)) Directory.CreateDirectory(path); return path; } Suppose my storage base path is D:\STORAGE_ROOT...
Docker: writing a file to physical or shared path, using docker and netcore3.1
You need to use the repository's URL when you clone a github project. You can find this by clicking on the Code tab at the top of the project's web page. For the project you linked, the URL is https://github.com/playframework/Play20.git. If you are using the command line, you can type git clone https://github.com/play...
I want to clone the files from here: https://github.com/playframework/Play20/tree/master/samples/java/forms and it's the first time I use github. I couldn't understand what .git file should I try and clone? Many thanks.
Cloning from github - how do you find the .git?
Hi Configure the key store along with the request testStep .select the request test stepgo to properties and select keystore which you want to sendI hope the key store you are using have the server certificate imported.
There is one soap web service its working with 2 way SSL. Our client certificate(public key) has been shared with web service provider.We are trying to call this soap web service on a latest SOAPUI 5.5 on Windows 2012 R2 machine.We have configured our certificate (private key) in soapui and we are capturing the logs wi...
Client certificate is not being sent to the server
2 The .virtualenv/ directory should not be included in the zip file. If the directory is located in the same directory as serverless.yml then it should be added to exlude in the serverless.yml file, else it gets packaged along with other files: package: exclude: - ....
I have a python script that I want to run as a lambda function on AWS. Unfortunately, the package is unzipped bigger than the allowed 250 MB, mainly due to numpy (85mb) and pandas (105mb) I have already done the following but the size is still too big: 1) Excluded not used folders: package: exclude: - test...
Reduce size of serverless deploy package
It greatly depends on the requirements of your app.Roomallows you to save andorganisethe data. Specific queries and extraction of distinct objects is very powerful if needed. Besides that you can be sure the data won't be deleted, when the device needs storage and clears the cache folders. One problem however is data i...
I looked into solving the problem of accessing data offline in Android and came across Room library and HTTP cache-control. I already have all of the Retrofit / OkHttp responses done in my app. Which is better to implement when there is no Internet connection?
For accessing data offline, better to use Room library or HTTP cache-control?
1 If you need automation, you can consider Argo CD Image Updater, which does include in its update strategies: latest/newest-build - Update to the most recently built image found in a registry It is important to understand, that this strategy will consider the build date...
I have started to learn GitOps ArgoCD. I have one basic doubt. I am unable to test ArgoCD because I do not have any Cluster. It will be so kind of you if you can clear my doubts. As an example currently I am running my deployment using test:1 docker image. Then using Jenkins I upload test:2 and then put test:2 in pla...
Deploy through ArgoCD with same image name and tag ( image:latest )
With a LOT of help from AWS paid support, I got this working. The reality is I was not far off it was down to some SED syntaxt.Here's what currently works (Gist):option_settings: - option_name: AWS_SECRET_KEY value: - option_name: AWS_ACCESS_KEY_ID value: - option_name: PORT value: 8081 - opti...
I am running Meteor on AWS Elastic Beanstalk. Everything is up and running except that it's not running Websockets with the following error:WebSocket connection to 'ws://MYDOMAIN/sockjs/834/sxx0k7vn/websocket' failed: Error during WebSocket handshake: Unexpected response code: 400My unstanding was to add something ...
How do I customize nginx on AWS elastic beanstalk to loadbalance Meteor?
I have also run into this problem many times, by default MySQL allows root to be accessed bylocalhostuser that means even if you have opened the port 3306:3306, you will still need to add the user.Follow these commands and the error will resolve!https://stackoverflow.com/a/11225588
I'm creating a laravel project in a docker container, along with MySQL and phpmyadmin, when trying to migrate (or access the database from phpmyadmin) I get access denied error.I've tried several SOF solutions but none of them worked, also tried ones in GitHub issues.here is my docker-compose.ymlversion: "3" services:...
How to fix "Access denied for user 'root'@'172.22.0.4' (using password: YES)" when connecting to mysql container?
For anyone coming into this error, the correct way to get the Hosted Zone ID varies for different target types. To find the correct hosted Zone ID, go tothe official documentation, scroll down to HostedZoneId and look for your target type.In this particular case, if you're using an ALB or NLB, you need the CanonicalHos...
I am trying to update existing alias_dns_name to different new elb using python boto '2.38.0'def a_record_alias_update(myRegion, myDomain, elbName, elbZone): dnsConn = route53.connect_to_region(myRegion) myZone = dnsConn.get_zone(myDomain+'.') changes = route53.record.ResourceRecordSets(dnsConn,myZone.id) add_change_ar...
AWS Route 53 with Boto: alias target name does not lie within the target zone
descheduler, a kuberenets incubator project could be helpful. Following is the introductionAs Kubernetes clusters are very dynamic and their state change over time, there may be desired to move already running pods to some other nodes for various reasons:Some nodes are under or over utilized.The original scheduling dec...
What should I do with pods after adding a node to the Kubernetes cluster?I mean, ideally I want some of them to be stopped and started on the newly added node. Do I have to manually pick some for stopping and hope that they'll be scheduled for restarting on the newly added node?I don't care about affinity, just semi-ev...
Redistribute pods after adding a node in Kubernetes
First point is: do not use regular expressions for HTML parsing. Use HTML parser instead. Second, if you already have this pattern and just want to fix it a little bit try to understand what does it do.It actually replacescharset=GBK2312orcharset=GBK18030bycharset=UTF-8using very not optimized way.So, first change you...
i use httpclient to crawl htmls. In my code, i foundhtml = html.replaceFirst("[cC][hH][aA][rR][sS][eE][tT]\\s*?=\\s*?([gG][bB]2312|[gG][bB][kK]|[gG][bB]18030)","charset=utf-8");above code cause java.lang.OutOfMemoryError. The total program use 251MB, replaceFirst method use 64.8%, 157MB, and is growing. How can i avoi...
how to optimize "replaceFirst" method in java
Work group sizes can be a tricky concept to grasp.If you are just getting started and you don't need to share informationbetweenwork items, ignore local work size and leave it NULL. The runtime will pick one itself.Hardcoding a local work size of 10*8 is wasteful and won't utilize the hardware well. Some hardware, for ...
I use opencl for image processing. For example, I have one 1000*800 image.I use a 2D global size as 1000*800, and the local work size is 10*8.In that case, will the GPU give 100*100 computing units automatic?And do these 10000 units works at the same time so it can be parallel?If the hardware has no 10000 units, will o...
how can opencl local memory size works?
(Extend from the comment:) Github Actions docs use actions/setup-python@v2: - name: Setup Python uses: actions/setup-python@v2 with: python-version: ${{ matrix.python }} Also you can try python -m tox.
I am new to tox and GitHub actions, and I am looking for a simple way to make them work together. I wrote this simple workflow: name: Python package on: [push] jobs: build: runs-on: ubuntu-latest strategy: max-parallel: 4 matrix: python-version: [3.7] steps: - uses: actions/ch...
How to run tox from github actions
I think you can delete the entire folder using the following code: AmazonS3Config cfg = new AmazonS3Config(); cfg.RegionEndpoint = Amazon.RegionEndpoint.EUCentral1; string bucketName = "your bucket name"; AmazonS3Client s3Client = new AmazonS3Client("your access key", "your secret key", cfg); S3DirectoryInfo dire...
I am trying to delete all the files inside a folder which is basically the date. Suppose, if there are 100 files under folder "08-10-2015", instead of sending all those 100 file names, i want to send the folder name. I am trying below code and it is not working for me. DeleteObjectsRequest multiObjectDeleteReq...
Delete a folder from Amazon S3 using API
GitHub doesn't expose a user interface to do this. You can contact GitHub support, explain to them the situation, and they can fix it for you manually. They are friendly and pretty fast (give it a day or 2), even if you don't have a paid subscription with them.
There is repository B which I forked from, original repository A. There are many commits I made on B. However, I am only supposed to send pull requests to repository A' which is also a forked repository of A.Can I change my original forked repo? I noticed that since I have forked from A, I am not allowed to fork from A...
Changing forked repository
Apache does have some stuff for this, like RewriteMap or RewriteProg. I think htaccess files are read on every request, so I wouldn't want to make the size of it explode with 3000 lines of text - although I gut tells me it would handle it just fine. I think RewriteMap is only loaded once per server start or somethign l...
I am working on a site overhaul. As a result I am moving several pages over to a new format. They aren't keeping the same file name as before so the migration is a little tricky.Example:news.alpinezone.com/93467/ is becominghttp://alpinezone.com/still-more-skiing-and-riding-at-whiteface/The news subdomain has accumulat...
Handling several thousand redirects with .htaccess
Generally your flow seems to be right. But since it is an absolute requirement to do a fast-forward only, you should pass --ff-only to enforce it. git checkout master git fetch origin git merge --ff-only origin/develop git push origin master --ff is not needed, since fast-forward is a default behavior. I tried git ...
I am using master as a production branch which is fetched nightly onto many servers as read only. Master should never be ahead of develop because I only push to develop. When develop is stable, I want to fast forward master to match it. I am currently doing this with: git checkout master git pull origin develop git pu...
Sync commit history of master and develop
This can happen when the cluster already exists.Check the portal to make sure it doesn't already exist.ShareFolloweditedDec 18, 2021 at 0:46Henry Ecker♦34.9k1919 gold badges4343 silver badges6060 bronze badgesansweredNov 16, 2021 at 20:28hemisphirehemisphire1,22599 silver badges2020 bronze badgesAdd a comment|
I am trying to create Kubernetes cluster on Microsoft Azure, but the operations fail and the following error message comes up (I use PUTTY on windows to generate the required ssh public key). Has anyone seen this before? Thanks!"error": { "code": "PropertyChangeNotAllowed", "target": "linuxProfile.ssh.publicKey...
Error when creating Kubernetes cluster on Azure - error: "code": "PropertyChangeNotAllowed"
The issue was nginx was caching the page on the browser, hence any modification in nginx.conf file was not reflecting on browser. Here is the final working version of my nginx.conf worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-...
I have three Spring boot applications running on embedded tomcat on ports 8080, 8081, 8082. I am trying to configure reverse proxy for all of them, When hitting the url I am getting 401 error which is from Spring security. I have configured the nginx as follows: worker_processes 1; events { worker_connections ...
nginx - multiple reverse proxy for spring boot applications (enabled spring security)
Answering my own question:This ended up not being a version issue, but user error. Unfortunately the suds documentation isn't as clear as it could be. Reading it, one would think the code above would work, but (on suds v0.39+) it should be written as:imp = Import('http://domain2.com/url') imp.filter.add('http://domai...
I'm using suds 0.3.8, Python 2.4.3, and Django 1.1.1. The code I inherited has a long duration for the cached files, but it's expiring on the default cadence of once every 24 hours. The external servers hosting the schemas are spotty, so the site is going down nightly and I'm at the end of my rope.Any idea what is ja...
Suds ignoring cache setting?
git flow initdoes not actually create any release, hotfix or feature branches, because as opposed to the develop and master branch, these arenotsingle, everlasting branches. They are created as feature/abc, release/42.0 or hotfix/foo for every feature, hotfix or realease you create, and are merged and then deleted once...
I have a cloned repo I wanna commit to using git flow, but it's not initialized as a git flow repo and it has no branches like 'release' or 'hotfix'.Can I somehow "partially" initialize it as a git flow repo?I mean, I actually need only 'develop' branch and branches for my features, but when I rungit flow initit also a...
"Partially" init a git flow repo
ngx_http_ssl_module is installed in official OpenResty docker image by default. You don't need to care about RESTY_CONFIG_OPTIONS_MORE.IMO the best solution would be usingnginx-ssl-variablesas reference implementation and set variables you need, for example:set_by_lua_block $ssl_client_issuer { if ngx.var.https...
I am trying to create a router for internal testing. I am using openresty image RESTY_CONFIG_OPTIONS_MORE. As the messages we are sending from the client are binary and don't have any request headers, we are trying to extract the issuer and serial number from the cert and set them as request headers. We want to use the...
Set client ssl cert variables as request headers of the message in openresty
Did you try adding the www.ourcompany.com to the list ofIIS Bindings for the site?ShareFollowansweredJul 29, 2011 at 10:15Michael BrownMichael Brown9,09911 gold badge3030 silver badges3737 bronze badges1Doing some searching it seems that your firewall/proxy isn't forwarding the hostname to IISstackoverflow.com/question...
An internal mvc3 webapp is hosted (iis7) on a local serverlocalserver/ourwebappWe are trying to expose the webapp external through a firewall route:www.ourcompany.com/thewebappis mapped tolocalserver/ourwebapp.Nevertheless the route is working, all links in the rendered html still containourwebapp/controller/action, wh...
MVC3 routing(??) problem when making webserver public through a firewall rout
I used gsutil signed url to solve the issue. 1. gsutil signurl -d 10m -r eu /home/centos/private-key.json gs://bucket-name/spark-examples_2.11-2.4.5.jar . (where -r eu is my region (europe multi region).did some awk transformation : awk -F '\t' ‘FNR==2 {print $4}' by piping the 1st output.This signed url can be used f...
I am running spark on k8s version 2.4.5. I have stored the spark images in GCS which could be accessed by spark.kubernetes.container.image.pullSecrets config. I am also storing the spark application jar in GCP buckets.When making the bucket public the spark submit works fine. My question is how can I access the private...
unable to pull jar from GCP bucket when running spark jobs on k8s
as far as i know there's no automated way. but you can do it by editing the html of the github page.the automatic page generator creates a 'gh-pages' branch with the html, css & js files for the github page you created. you can checkout this branch, edit it as normal and push it back to github.
I'd like to add social buttons (share on twitter, like on Facebook, share on google+) to a github page, which was created using the automatic page generator. Is there an easy way to do that?
How do i add social buttons to my github page using the automatic page generator?
"Ephemeral storage" here refers to space being used in the container filesystem that's not in a volume. Something inside your process is using a lot of local disk space. In the abstract this is relatively easy to debug: usekubectl execto get a shell in the pod, and then use normal Unix commands likeduto find where th...
I am running a k8 cluster with 8 workers and 3 master nodes. And my pods are evicting repetively with the ephemeral storage issues. Below is the error I am getting on Evicted pods:Message: The node was low on resource: ephemeral-storage. Container xpaas-logger was using 30108Ki, which exceeds its request of 0. C...
My kubernetes pods are Evicting with ephemeral-storage issue
Creating a docker that runs the development webserver will leave you with a very slow solution as the webserver is single threaded and will also serve all static files. It's meant for development.As you don't use https it will also disable the web2py admin interface: that's only available over http if you access it fro...
I'm trying to build a docker image of web2py on top of ubuntu. Given the docker file####################### # Web2py installation # ####################### # Set the base image for this installation FROM ubuntu # File Author/ Mainteainer MAINTAINER sandilya28 #Update the repository source...
create a web2py docker image and access it through browser
To configure fail2ban, make a 'local' copy the jail.conf file in /etc/fail2bancd /etc/fail2bansudo cp jail.conf jail.localTry to restart with default configuration also before editing anything.ShareFolloweditedJun 20, 2020 at 9:12CommunityBot111 silver badgeansweredNov 18, 2014 at 17:13SatishSatish16.9k3030 gold badges...
I have installed fail2ban on my Linux server versionRHEL5.4. Its not blocking IP after max retry limit as described in jail.conf. When I try to restart the fail2ban I got following error message./etc/init.d/fail2ban restart Stopping fail2ban: [ OK ] Starting fail2ban: ERROR NOK: (2, 'No such file or directory') [ ...
Fail2Ban is unable to block ip after multiple try
I will assume you already have 2Services defined for your apps (s1ands2below).KubernetesIngresssupportsnamed based virtual hosting(and much more):The following Ingress tells the backing loadbalancer to route requests based on the Host header.apiVersion: extensions/v1beta1 kind: Ingress metadata: name: test spec: ru...
I have a cluster of Kubernetes with two web apps deployed , I can't understand the way of assign same port 80 and 443 for this apps for access everyone with you own domain, web1.com and web2.com redirects to specific service. Looking in the web i found topics like a : Ingress Controller with Nginx Proxy reverse and tra...
Kubernetes like Apache or Nginx Virtual Host
Part of the solution is the response of the user:Esmaeil Mazahery, but a few more steps must be taken.First, I changed the Angular application Dockerfile (passed additional build parameters like: base-href and deploy-url)RUN npm run ng build -- --prod --base-href /projects/sample-app1/ --deploy-url /projects/sample-app...
I have created a reverse proxy using Nginx which redirects in various applications (ASP.NET API's and Angular app's).Reverse proxy nginx.conf (the most important settings):... server { listen 80; server_name localhost 127.0.0.1; location /projects/sample-app1/api { proxy_pass http://sample-app1-api...
Nginx reverse proxy for Angular apps
1 As the error implies that it's not able to find the domain name you are referring for PostgreSQL. try to change the kong-database to exact hostname i.e "localhost" if you are running all docker containers on same VM. The command should be as below : docker run --rm --netw...
this is docker me 0e60f32df539 pantsel/konga:legacy "/app/start.sh" 3 days ago Up 1 second 0.0.0.0:1337->1337/tcp konga da8fe5294057 kong ...
how to fix konga_db
Data is not exact, the above samples for example aren't exactly aligned to the second. This means that we need to extrapolate a bit when the data doesn't exactly cover the 10s range, which can cause artifacts like this. On average however, the result will be correct.Counting with Prometheusgoes into this in more detail...
The query:increase(Application_hystrix_command_count_success[10s])This seems to be the query I need, from my understanding of the function, however the data it returns does not seems to be correct, sometimes.The data for the counter looks something like:101 @1507897406.565 101 @1507897407.565 101 @1507897408.56...
Attempting to graph changes per second in counter
I found out that it was a bug within QNetworkAccessManager. In Wireless environment, QNetworkAccessManager scans the wifi status every few seconds. Those little spikes were the evidence for that. Check the following bug report. https://bugreports.qt.io/browse/QTBUG-40332 To solve this problem, either compile with -D...
It seems like after I create a QNetworkAccessManager object in Qt, it makes other applications (those who heavily uses network, such as multiplayer game) run slow. For example, if I run Dota2 while running my app as a background, the game starts to lag even if my Qt app is very light (I checked through process explore...
(Qt) QNetworkAccessManager slows down other application
You can get YAML from thekubectl create configmapcommand and pipe it tokubectl apply, like this:kubectl create configmap foo --from-file foo.properties -o yaml --dry-run=client | kubectl apply -f -ShareFolloweditedFeb 24, 2023 at 5:01captncraig22.5k1717 gold badges109109 silver badges152152 bronze badgesansweredJul 6, ...
I've been using K8S ConfigMap and Secret to manage our properties. My design is pretty simple, that keeps properties files in a git repo and use build server such as Thoughtworks GO to automatically deploy them to be ConfigMaps or Secrets (on choice condition) to my k8s cluster.Currently, I found it's not really effici...
Update k8s ConfigMap or Secret without deleting the existing one
Your question is related to the difference betweenSIGTERMandSIGKILL.SIGTERM:When a process receives this signal, it has the chance to perform cleanup. That's the so-called "graceful" exit; it corresponds todocker stop.SIGKILL:The process doesn't even know it has received this signal and it has no chance to ignore or do...
I'm trying outDockerand came acrossdocker container stop <hash> # Gracefully stop the specified containerI'm not asking about the difference between docker stop and docker kill. I'm wondering about the term"gracefully"What does "gracefully stop" mean in this context?
What does "gracefully stop" mean?
18 Took me a minute to figure out too. Open up CloudFormation in AWS and delete the aws-sam-cli-managed-default stack then try to redeploy. Every time your deploy fails you'll likely have to do this again. Share Improve this answer Fol...
I'm currently working on AWS serverless lambda function deployment and try to distribute and test with AWS SAM. However, when I followed the AWS SAM hello world template tutorial on official website, I can't really deploy my code to AWS. I've already Assigned a working IAM account Install every package we need for AW...
AWS SAM deployed Error under hello world template
You can only free() something you got from malloc(),calloc() or realloc() function. freeing something on the stack yields undefined behaviour, you're lucky this doesn't cause your program to crash, or worse.Consider that a serious bug, and delete that line asap.
I'm supporting some c code on Solaris, and I've seen something weird at least I think it is:char new_login[64]; ... strcpy(new_login, (char *)login); ... free(new_login);My understanding is that since the variable is a local array the memory comes from the stack and does not need to be freed, and moreover since no mall...
free() on stack memory
#standardSQL SELECT COUNT(*) naive_count, COUNT(DISTINCT actor.id) unique_by_actor_id, COUNT(DISTINCT actor.login) unique_by_actor_login FROM `githubarchive.month.*` WHERE repo.name = 'angular/angular' AND type = "WatchEvent"Naive count: Some people star and un-star, and star again. This creates duplicate Wat...
My goal is to track over time the popularity of my BigQuery repo.I want to use publicly available BigQuery datasets, likeGitHub Archiveorthe GitHub datasetThe GitHub datasetsample_reposdoes not contain a snapshot of the star counts:SELECT watch_count FROM [bigquery-public-data:github_repos.sample_repos] WHERE rep...
How to get total number of GitHub stars for a given repo in BigQuery?
You are most likely using justnodeor/usr/local/bin/nodeto refer to node, instead of/usr/.nvm/versions/node/v9.11.1/bin/node
I regularly at version 8.4.0, then I installed nvm and used it to upgrade to version 9.11.1. When running the terminal, I have version 9.11.1, however if a conjob runs a script, node 8.4.0 is still used. The same ec2-user is running the cron so for me it is strange that the user ec2-user has version 9.11.1 if used via ...
Node version inconsistent in crontab
It will run on the merged code if you, f.e., use thecheckoutaction with default values.If you look at theevent dataof a pull request you get something like the following (shortened){ "ref": "refs/pull/1/merge", "sha": "<sha-1>", "event": { "number": 1, "pull_request": { "head": { "ref": "<ba...
I've tried to read the GitHub documentation on this and tried to google some information about it, but either the information is missing or I'm just unable to understand it :)Either way, I'll use an example (python) to illustrate the problem:foo.pyonmaster:my_list = [ 1, 2, ] assert len(my_list) == 2So far, so ...
During a PR action on GitHub, what version of the code is actually run?
This should work for you:RewriteCond %{REQUEST_URI} ^/slide$ RewriteCond %{QUERY_STRING} ^page=(.*)$ RewriteRule ^(.*) /slide/issue57?page=%1 [R=301,L]
Im trying to redirect this,example.com/slide?page=4to example.com/slide/issue43?page=4But it cannot effect other URL's like, example.com/slide/issue57?page=4Im really stuck, these regular expressions are so weird. Here's the rewriterule that I've come up with,This is not working RewriteRule ^slide?page(.*)$ http://...
Rewrite specific URL to different directory
Simply add--reloadto entrypoint worked for me:ENTRYPOINT ["uvicorn", "main:app", "--reload","--host", "0.0.0.0", "--port", "5000"]
Following the documentation inuvicorn-gunicorn-fastapi-dockerI should run my image by running:docker run -d -p 80:80 -v $(pwd):/app myimage /start-reload.shBut I get:Usage: uvicorn [OPTIONS] Try 'uvicorn --help' for help. Error: Got unexpected extra argument (/start-reload.sh)I managed to mount a volume by using what...
Error: Got unexpected extra argument (/start-reload.sh) When setting Development live reload for FastAPI docker
First of all, I don't have any experience with PrestaShop. This is an example which you can use for every docker container (from which you want to persist the data). With the new version of docker (1.11) it's pretty easy to 'persist' your data. First create your named volume: docker volume create --name prestashop-vol...
There is something I'm missing in many docker examples and that is persistent data. Am I right if I conclude that every container that is stopped will lose it's data? I got this Prestashop image running with it's internal database: https://hub.docker.com/r/prestashop/prestashop/ You just run docker run -ti --name some...
Howto run a Prestashop docker container with persistent data?
I write my own HostBackup Faraday middleware for this case. You are welcome to use it! https://github.com/dpsk/faraday_middleware Here is an article: http://nikalyuk.in/blog/2013/06/25/faraday-using-backup-host-for-remote-request/
In my project i'm using following small library for interacting with the external serivce: class ExternalServiceInteraction include Singleton URL = Rails.env.production? ? 'https://first.production.url.com' : 'http://sandbox.url.com' API_KEY = Rails.env.production? ? 'qwerty' : 'qwerty' DOMAIN = Rails.e...
Use another source if external service is down
There is a multiple way to do this. If a continious access is needed :AWatcheraccess with polling events ( WatchService API )AStream BufferFileObservablewith Java rxThen creating anNFSstorage could be a possible way with exposing the remote logs and make it as apersistant volumeis better for this approach.Else, if the ...
I have an app (java, Spring boot) that runs in a container in openshift. The application needs to go to a third-party server to read the logs of another application. How can this be done? Can I mount the directory where the logs are stored to the container? Or do I need to use some Protocol to remotely access the file ...
How to read a file on a remote server from openshift
The below solution is working fine :prom_metric2 {some_label="value"} and on (label2 ) prom_metric1 {label1='A'}References:https://www.robustperception.io/exposing-the-software-version-to-prometheushttps://prometheus.io/docs/prometheus/latest/querying/operators/#many-to-one-and-one-to-many-vector-matchesShareFollowansw...
I am looking for the output of metric 'prom_metric2' where input label is 'label2' the value of which has to be taken from metric 'prom_metric1'.i.e. for followng input query:prom_metric1{label1="A"}Output time series is :prom_metric1{label1="A",label2="B",label3="C"} prom_metric1{label1="A",label2="D",label3="E"}Now, ...
Nesting query in promQL
It's now working. As expected it took re-installing the operating system, as well as the following: http://blog.rstudio.org/2013/10/22/rstudio-and-os-x-10-9-mavericks/ Using the preview version available from the link below solved the Rstudio/Git issue instantly.
I have been trying for a few hours to use git within Rstudio on my macbook. However, the option to use git within version control is missing - the only option remains (none). I have installed github, and then git directly, using the link given in the rstudio website. I have attempted to run the bash script supplie...
Reasons why git is not visible to Rstudio (OSX)
0 Since you've mounted shared Projects directory with read only, you cannot change the permissions. You can try either: Correct permission on your local file then mount it with the right permissions. Try to mount it with write access (-v ~/Projects:/Projects:rw) and chang...
Is it possible to use Docker like a VM and run binaries in it? I have an ELF binary to debug/reverse engineer but I'm on a Mac so I can't run it. I've tried mounting it through a shared volume with docker run -it -v ~/Projects:/Projects ubuntu and chmod +x but it tells me no such file or directory when I tried to exec...
Running binaries inside docker
Seedjango-audit-logShareFollowansweredMay 3, 2012 at 11:49Burhan KhalidBurhan Khalid172k1919 gold badges247247 silver badges287287 bronze badges3will it save changes in some kind of table?–Andrey BaryshnikovMay 3, 2012 at 11:52Yes. See theusage instructions.–Burhan KhalidMay 3, 2012 at 11:56Ok, i see now, thank you. Bu...
How can i track changes on data done by django users and save them in audit tables with user_ID? Is there is any application what can do that? I'am using postgres and now for audit i'am using this util :http://dklab.ru/lib/dklab_rowlog/but in this case i cant pass USER_ID into trigger..
Django tracking data changes done by users
You need to configure this option in the Gateway API panel. Choose your API and click Resources. Choose the method and see the URL Query String session. If there is no query string, add one. Mark the "caching" option of the query string. Perform the final tests and finally, deploy changes. Screenshot
I'm configuring the caching on AWS API Gateway side to improve performance of my REST API. The endpoint I'm trying to configure is using a query parameter. I already enabled caching on AWS API Gateway side but unfortunately had to find out that it's ignoring the query parameters when building the cache key. For insta...
AWS API Gateway caching ignores query parameters
never mind... apparently SMS only works on us-east region, you need to change the region from the sns management page. All seem normal now.
I'm trying to use the amazon AWS to send a text message to my phone. In particular, I'm using the SNS service and got stuck in the process of creating a new subscription. In the online tutorial they see this: How come I see this? Sorry my screenshot won't work while in the drop-down menu, so I took a ghetto picture...
amazon aws sns, sms option not available?
This is something that comes up quite often, see e.g.this document,this forum threadorthis stackoverflow question.The answer is basically no. What I would do in your situtation is to run the job every Tuesday and have the first build step check whether to actually run by e.g. checking whether a file exists and only run...
I want to schedule Jenkins to run a certain job at 8:00 am every Monday, Wednesday Thursday and Friday and 8:00 amevery otherTuesday.Right now, the best I can think of is:# 8am every Monday, Wednesday, Thursday, and Friday: 0 8 * * 1,3-5 # 8am on specific desired Tuesdays, one line per month: 0 8 13,27 3 2 0 8 10,24 4...
Can I set Jenkins' "Build periodically" to build every other Tuesday starting March 13?