Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
In yourroles, you are providing role ARN, not role name.Therefore, instead of ARN, you should use its name:resource "aws_iam_policy_attachment" "example-attach" {
name = "example-attach"
roles = [
aws_iam_role.managed-role.name,
"unmanaged-role"
]
policy_arn = aws_iam_policy.example-policy.arn
}You... | Terraform version: 12We have a legacy, unmanaged by Terraform IAM role that I'd like to reference from anaws_iam_policy_attachmentblock and I attempted the following:resource "aws_iam_policy_attachment" "example-attach" {
name = "example-attach"
roles = [
aws_iam_role.managed-role.name,
"arn:aws:iam::123... | Terraform: Attaching an unmanaged IAM role |
1
As of Julia 1.9, sizehint! shrinks dictionaries (see https://github.com/JuliaLang/julia/blob/8e630552924eac54c809aa7bc30871c7df1582d3/base/dict.jl#L219).
Share
Improve this answer
Follow
answer... |
I'm interested in using dictionaries in an application where the contents of the dictionaries are modified very frequently, i.e. key => value pairs are created, deleted, and moved from one dictionary to another. An issue I see is that Julia dictionaries don't shrink, and am afraid of the memory usage getting very bad ... | Shrinking dictionaries in Julia |
9
Once you are logged in to GitHub, you can view the GitHub actions minutes usage for your account at https://github.com/settings/billing under GitHub Actions as shown below
The above is documented in GitHub help too.
Share
Improve this answer
... |
Each time I create a PR or make commits, I have some workflows running.
But since I have a private repo and I get only 2000 min/month for running workflows on Github Actions, I wanted to track the time used. How do I know how much total time I used out of 2000 free min that Github provides?
Is there a place in Github... | How do I know the total time I used to run workflow in github action? |
Problem is with :
flashsets = [listofsetsstring componentsSeparatedByString:@"\n"];
change it to
flashsets = [[listofsetsstring componentsSeparatedByString:@"\n"] retain];
edit: the retain in property is only used if you use the setter, so it will only work if you use the following line:
[self setFlashsets:[listofse... |
I'm having a problem with my iPhone app crashing when I scroll down on a UITableView. I set NSZombieEnabled to YES, and found out that the NSArray I'm using to fill the table is getting dealloced somehow.
#import "RootViewController.h"
@implementation RootViewController
@synthesize flashsets;
- (void)viewDidLoad
{
... | NSArray released early |
Looks like this is a simple case of poor documentation. It seems you're not able to edit or delete anonymous Gists, despite having the ID provided to you. | For the past couple hours I've been trying to update a GitHub Gist via their API to no avail. I can easily POST tohttps://api.github.com/gistsand create a new Gist, but I can't ever get a PATCH tohttps://api.github.com/gists/:idto work. How do I update Gists via their API? Am I missing some important detail?Here's a JS... | How do I update a Gist via the GitHub API? |
You can instruct the browser not to cache using themax-agecache-control directive, while instructing CloudFront to cache using thes-maxagedirective.You can also use an ETag to have the browser always check with CloudFront, but not transfer any actual bytes if the content is unchanged.https://developer.mozilla.org/en-US... | Basically the question is in the title.My browser serves the data from local cache every time, instead of going to CloudFront for it.Invalidation on CloudFront side doesn't help (as expected).Theageheader in response (from local cache) is stuck at value of1796. Is it because it's loaded from cache, not CF? I thought it... | AWS CloudFront - Is there a way to force browser to always get data from CloudFront instead of using local cache? |
1
Thanks to Igor Tandetnik and M.M. in the comments. The parentheses initialize the chars in the array to 0 instead of garbage. This means that cout will stop printing chars at the first 0 it encounters instead of printing all the garbage contained in the string.
Sh... |
tldr; What is the difference between allocating memory for a primitive array with the parenthesis vs without them? e.g.
char * text = new char[size];
vs.
char * text = new char[size]();
Full Story:
I came across a strange issue today with some code I was writing. I created a class that contained a cstring member var... | C++ Difference between new char[size] and new char[size]() |
Docker joinsENTRYPOINTandCMDinto single command line, if both useJSONnotation, like in your example.This is JSON notation:CMD [ "dotnet", "/app/netcore/Somename.dll"]This is shell notation:CMD dotnet /app/netcore/Somename.dllAnother thing you need to know - what is written indocker run ... ...after- considered asCMD.... | Working on my first Docker image. It is a dotnet program that uses CMD to launch (only one CMD allowed in Docker). I would like to pass the program an argument (an API key) at runtime. After some googling, not finding a clear answer. Entrypoint doesn't seem helpful. Maybe ENV, but it seems ENV is only for Docker. My Do... | How to pass command line arguments to a dotnet dll in a Docker image at run time? |
I had to run this on build server:
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
apt-get update
apt-get install -y google-chrome-stable xvfb
npm i -g @angular/cli
All the instructio... |
I'm running Angular unit tests in a Docker container and getting this error:
21 01 2021 01:51:10.057:INFO [launcher]: Launching browsers ChromeHeadless with concurrency unlimited
21 01 2021 01:51:10.063:INFO [launcher]: Starting browser Chrome
21 01 2021 01:51:10.097:ERROR [launcher]: No binary for Chrome browser on y... | Docker container gives No binary for Chrome browser on your platform |
The application config is for the whole application, while request headers are for just one request. The same application generally handles many requests. Therefore you can not set the config based on request headers.Your code at the module level is executed at server start-up when no request as reached the application... | I am running nginx + gunicorn + flaskMy nginx config looks like:...
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header Stage "development";
proxy_redirect off;
...My flask app looks like:from... | How can I choose a Config based on a server variable in Flask? |
Most of the discussions on cache line alignment deal with high-performance computing working with many threads, and keeping scalability as close to linear as possible. In those discussions the reason for cache line alignment is to prevent a write to one data variable invalidating the cache line that also contains anot... |
I just know basic ideas on aligned memory allocation. But I didn't cared much about align issue because I am not an assembly programmer, also didn't have experience with MMX/SIMD. And I think this is the one of the the premature optimizations.
These days people saying more and more about cache hit, cache coherent, opt... | Will the cache line aligned memory allocation pay off? |
Check outhttp://docs.heroku.com/config-vars, the first example on the page is exactly what you are trying to do.Edit '2015: page now athttps://devcenter.heroku.com/articles/config-varsand it's the second page you're looking for. | I'm using S3 in this application for uploaded files, as Heroku has a read-only filesystem. How can I give my s3.yml to Heroku, but avoid checking it into the main repository? | Amazon secret keys and Heroku |
You chose a old version for your cluster.
The current default version 1.11.7-gke.12 does not support it.
Just upgrade your cluster. | I've been following the document (https://cloud.google.com/kubernetes-engine/docs/how-to/managed-certs) to get Google managed ssl.It was successfully before. However, after I completely deleted my cluster and started it over, I received this error message fromkubectl apply -f example-certificate.yamlerror: unable to re... | How to get a Google managed certificate (ingress)? I received no matches for "ManagedCertificate" |
I've encountered this problem before as well. if you use: ```php it isn't enough. it requires a php open block <?php before it starts code highlighting. Its cross browser and is a pygments setting on the github servers. Put a ticket in on github.
Pygments has a "startinline" option which is only relevant for the
Ph... |
So, I know how to do color coding in the github wiki. For example json:
```json
{}
````
But for PHP this doesn't work
```php
// code here
```
I'll have to do this:
```
<?php
// code here
```
Or this:
php
<?php
// code here
Which looks ugly, because you'll see the <?php in every block of code. Is ther... | How to syntax highlight PHP in the Github Wiki |
Yes, this Apache acting as a proxy terminates SSL. It then makes or reuses a pooled SSL connection to the backend.There's no way to truly let the backend think it's handshaking with the client unless it accessed apache as a forward proxy using the mod_proxy_connect module.Some application servers accept the body of the... | I've got a question regarding ssl config for apache 2.4. I got the following ssl settings for my vhost. There are more than 1 Directory but the config is mostly the same, only IPs are different. If I active the the three commented lines the apache should check the requests against the cert and not just pass the request... | Apache 2.4 SSL Config |
Themod_alias Redirectdirective doesn't look at the parameter string, so your Redirect statement will never match. Instead, you'll need to use mod_rewrite. You can do something like the following:Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^suma\.ir$ [NC]
RewriteRule ^(.*)$ http://www.suma.ir/$1 ... | I want to redirect "http://www.suma.ir/product.php?id_product=12" to "http://www.suma.ir/product.php?id_product=508" but I'm having trouble. The URL path should stay the same, all I want to do is change the ID in the query string. What do I need to do to make this work?Options +FollowSymlinks
RewriteEngine on
Rewrite... | How can I change the value of a query string parameter with a redirect? |
0
I had a similar issue. It seems allright what you have there in the server block.Although you might be better off if you add a proper server name.
Check this question and see if it helps. It has to do with the symlink to var/www/html for your crm, if you used one.
Laravel... |
Laravel 5.5 fresh
nginx version: nginx/1.10.3 (Ubuntu)
When I go to: http://<my-ip>/crm/ all is working great, I get the Laravel welcome page, all js and css are loading correctly.
When I go to http://<my-ip>/crm/register - I get 404 for css and js.
This is my conf:
server {
listen 80 default_server;
... | Laravel + NGINX CSS/JS 404 not found |
Consider the belowDockerfileFROM php:5.6-apache
RUN apt-get update -y && apt-get install -y libpng-dev curl libcurl4-openssl-dev
RUN docker-php-ext-install pdo pdo_mysql gd curl
RUN a2enmod rewrite
RUN service apache2 restart
RUN echo 'PassEnv FIRST_NAME' > /etc/apache2/conf-enabled/expose-env.conf
RUN echo '<?ph... | I've created a PHP/Apache/MySQL development environment with Docker and would like to set variable that I can use with$_SERVERin PHP.Usually I will configure something like that in my virtual hostSetEnv ENV "developement"Is there a way to do it with my docker_compose.yml file ?
I'll try by usingenvironment: - ENV=deve... | How to set PHP $_SERVER variable with Docker? |
0
You could achieve such a field based memoization by using the percflow Per Clause. This will create an instance of your aspect for each method that is woven.
This of course should only be used if the method has no parameter. when a method uses parameter, you'll still nee... |
I've seen some implementations of method result caching using AspectJ. For example, one in jcabi-aspects or some older examples.
The idea is that instead of writing bolierplate code for caching result of a method in a field, like this:
public Mesh someComplexGeometry() {
if (this.geometry == null) {
this.... | Is it possible to implement method result caching based on field injection instead of a Map? |
Ok answer was way simpler, just runningkubectl get ingress <name> -o jsonshowed full annotation list | I'v created ingress on gke with annotation that have a list of whitelisted ips - the problem is list got too big and cant see whats at the end of it (that's how I see it onkubectl describe ingress <name>with the 3 dots at the end)nginx.ingress.kubernetes.io/whitelist-source-range:
xx,... | kubectl annotation is too big |
I hope you have taken573mstime from browser's network timeline.
It is not only including server's processing time of the request but also includes,DNS resolutionNetwork connectivitySo, 573ms is the combination of DNS resolution + Network connectivity + Server's processing time.It might increase if your local network i... | I am rendering a blank page for profiling reasons, it displays the following:Completed 200 OK in 67ms (Views: 0.8ms | ActiveRecord: 27.6ms)However, the request took 573ms.How can I know what's going on before rendering the route ?
I am running the app on a laptop with a Core i7-2620MQ and accessing it locally, could th... | Knowing why a request is slow inside a Rails application before it renders the route |
It seems the key if to both delete the release id and tag, that iscurl -u user:pw --request DELETE "$URL/releases/$RELEASE_ID_TO_DELETE"
curl -u user:pw --request DELETE "$URL/git/refs/tags/$TAG_TO_DELETE" | I'm trying to use the GitHub web API to delete and existing release if present like:curl -u user:pw --request DELETE "https://api.github.com/repos/user/repo/releases/RELEASE_ID"this deletes the release message, but leaves a tag with the assets which seems to require manual removal. Is there some way to completely delet... | Completely delete release with GitHub API |
After a couple of trials, I figured out what was wrong:
Just type:xgb._best_estimator_.named_steps['xgb'].predict(test_final) | I developed a pipeline usingXGBoostwhich returned me a best estimator.
However, trying to use this best estimator to predict my test set the following error is raised:"ValueError: Specifying the columns using strings is only supported for pandas DataFrames".Below is my code for the pipeline that I have used:
Note:ctis ... | How to use best estimator from pipeline to predict test set? |
minimum sdk must be set 29.
it was set to 27 earlier, so was not working | Trying to Access GPU using Android C++ NNAPIs ANeuralNetworksCompilation_createForDevices gives error
ANeuralNetworksCompilation_createForDevices gives errorLinking fails. | Access Android C++ NNAPIs - ANeuralNetworksCompilation_createForDevices gives error |
First of all, you need to put an space between php and /var:
From
* * * * * php/var/www/html/welcome.php
to
* * * * * php /var/www/html/welcome.php
^
Then, you'd better use /bin/php instead of just php. To determine where the php executable is located, type which php in your console, it will give you th... |
I've created a cron job in AWS EC2 but it is not working.
I followed below steps to create cron tab:
Step 1: I logged in to AWS EC2 Instace
step 2: crontab -e
Step 3: Insert mode
Step 4: I entered * * * * * php/var/www/html/welcome.php (To run every min.)
Step 5: :wq
Cron tab is created but not running.
Please can... | How to write cron job in AWS EC2 server |
2
The link you provided from GitHub specifies the name of the lib for referenced it on your project. Take a look at the Installation section. This code is for using on the Nuget Package Console on your project.
PM> Install-Package hidlibrary
Take a look on how to use the N... |
I am just starting to learn C# so excuse me if this is a basic question.
I am trying to develop an application that reads values for a USB-HID scale into Excel. To start I am going to use this github library (already downloaded it):
https://github.com/mikeobrien/HidLibrary
then use closedxml.codeplex.com to create a ... | Referencing Hid Library from GitHub library in C# and use it |
TheAPI documentationnames this operation "Get Connect Proxy Path" and more specifically describes the URL asGET /api/v1/nodes/{name}/proxy/{path}The.../proxy/...part is the interesting part. It indicates that you're not using basic CRUD operations on a Node object, but rather accessing somesubresourceof the Node. The... | What RBAC role resource type would I use for raw type?ex.kubectl get --raw "/api/v1/nodes/(your-node-name)/proxy/stats/summary"kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: k8s-ephemeral-storage-metrics-debug
rules:
- apiGroups: [""]
resources: ["*"]
verbs: ["*"]or go raw API k8... | Kubernetes Raw API resource type |
First, the -copy and -release should be unnecessary. The -asyncStuffWithFinishedBlock: method must copy the block that's passed to it. When a block is copied and it references other block objects, it copies those block objects, too. You need to figure out the real nature of the crash you were seeing.
Second, you ar... |
I have a method which takes a block:
- (void)methodWithBlock:(blockType)block
The method starts out by copying block, because it does asynchronous things before using it, and it would be discarded otherwise. It then calls the method within another block, and then releases it, within that block. Summarily:
- (void)met... | Copied blocks and CLANG leak warnings |
Thanks for your help, I wanted to post the solution I found in a wordpress forum here:https://wordpress.org/support/topic/htaccess-help-301-redirects-not-working/Thanks to @markrh for his answer. The problem was that I needed to move my 301 redirects above the WordPress section at the top. My rules were never getting r... | I have two identical versions of a website, both using different AWS EC2 instances(staging xx.xx.xx.xx and production xxx.xxx.xxx.xxx). I want to create a 301 redirect that redirects all users from the staging site to the production site, UNLESS they are visiting from my IP. I thought this was a relatively simple tas... | Why is this .htaccess redirect not working? |
To get the code from the remote repository:
git pull origin master
To send code to the remote repository:
git push origin master
In both commands:
origin is the remote (git remote -v)
master is the remote branch to get/send code of/to
You may get some divergences between the local and the remote code.
Putting back... |
I cloned a repository from GITHUB onto my local machine. And then I made a few direct commits to the GITHUB copy itself. Now I want to sync my local copy with the remote one. How should I proceed?
| How to sync a repository with github? |
You can upgrade managers, in place, one at a time. During this upgrade process, you would drain the node withdocker node update, and run the upgrade to the docker engine with the normal OS commands, and then return the node to active. What will not work is to add or remove nodes to the cluster while the managers have m... | I'd like to upgrade the Docker engine on my Docker Swarm managed nodes (both manager and worker nodes) from18.06to19.03, without causing any downtime.
I see there are many tutorials online for rolling update of a Dockerized application without downtime, but nothing related to upgrading the Docker engine on all Docker S... | Docker Engine version upgrade on Docker Swarm managed nodes, without downtime |
According tothis answer, it is possible, but rarely used.As for how to get it: I would tend to simply try and order one with the provider of your choice, and enter the IP address instead of a domain during the ordering process.However, running a site on an IP address to avoid the DNS lookup sounds awfully like unnecess... | Closed.This question does not meetStack Overflow guidelines. 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 Exchange site, ... | Is it possible to have SSL certificate for IP address, not domain name? [closed] |
You can check the reflog of theremotebranch to view the commit it was on before you pulled :$ git reflog origin/master # <- 'origin/master', not 'master'
3ab2281 refs/remotes/origin/master@{0}: pull: fast-forward # <-last pull
3cdd5d1 refs/remotes/origin/master@{1}: fetch: fast-forward # <-previous pull
c... | How to view changes made by last pull to my local files in github, in windows? The changes made by last pull may include changes made by multiple commits pulled at once. | How to view changes made by last pull to my local files in github? |
Prometheus is for getting and monitoring the metrics it's monitoring tools. For you can use the tools like Graylog, Loki with Grafana dashboard, Cloudwatcch logging AWS, Stackdriver logging GCP.i would recommend checking out theLoki:https://github.com/grafana/lokiYou can check out the ELK stack andFluentd. | We have an application running in Kubernetes (AWS EKS) and are able to log in to the bastion host and able to get the logs of the PODS.Currently, our application is having problems and we would like to debug the application logs for issues on an hourly basis.We are able to fetch the logs from the pods when we run the c... | Application logs to prometheus |
if your apache instance allows you to override flags through.htaccessyou can put the following in your file:php_flag register_globals off | I have 2 scritpts on 2 different folders.
One on them need the register globals to On and the other to Off.Is it possible to enable regsiter globals on one folder and disable it on another one ?
(maybe with a .htaccess ?)regards | php register globals on/off through .htaccess |
The query you are looking for is, just enter the following in the Global Search:
lazyModules filename:angular.json
And that query currently returns 61 results. You can see them here
Hope this helps.
|
In my example im searching for repos that have
code snippet:"lazyModules": inside file: angular.json
Any suggestions?
| Is it possible to search for code snippet in specific file on Github |
If you create your own class VideoTableViewCell as a subclass of UITableViewCell and you give your cell a property for an image this image will be released as soon as the cell goes off the screen. The cell and the image will be recreated as soon as the Cell come back on the view.
For the videos I would store all downl... |
Short Explanation
Currently I have a UITableView which contains cells of videos from a website. In addition each cell (which represents a video) has a specific thumbnail image. These images are downloaded asynchrounously using NSURLConnection (so I do not have to worry about threading myself). When these image objects... | Memory Handling for thumbnail images in UITableViewCells |
Solved. Rule for iptables was added at end and was never executed.
Correct syntax to add it first:iptables -I INPUT 1 -i eth0 -p tcp --dport 60200 -j ACCEPT | Trying to open port 60200 (for example) in CentOS 7. Virtual machine works via Proxmox hosted on SoYouStart/OVH dedicated. Other ports are working fine.Running this commands:iptables -A INPUT -i eth0 -p tcp --dport 60200 -j ACCEPT
service iptables save
service iptables restartChecking configuration:[root@s1 ~]# iptable... | How to open port in CentOS 7? (Proxmox, OVH) |
server_namemust match hostname inlink/scriptURLs. Either declare your configuration as default for this interface:port pair (listen 8000 default)Nginx must listen on the interface where your host's IP is bound (seems ok in your case) | I'm using apache+mod_wsgi for django.And all css/js/images are served throughnginx.For some odd reason, when others/friends/colleagues try accessing the site, jquery/css is not getting loaded for them, hence the page looks jumbled up.My html files use code like this -
My nginx configuration insites-availableis like thi... | django : Serving static files through nginx |
SonarQube allows you toadd custom rules.Assuming there is no existing enum related rule warning on incomplete switch case coverage, you can simply add your own rule on SQ and have it enforced on all the SonarLint instances connected to your SQ server.. | Using Java, SonarQube is complaining about switch statements on enum values not having adefault:case.The reasoning given is:"The requirement for a final default clause is defensive programming.
The clause should either take appropriate action, or contain a
suitable comment as to why no action is taken. When the swi... | Is there any way to get SonarQube to only warn about incomplete Switch statements? |
I can't figure out how to make it also match files with no extension.You may use it like this:RewriteCond %{REQUEST_URI} ^/(?:[^.]+|.*(/|\.(?:htaccess|htpasswd|ini|log)))$[^.]+match 1 or more of any character that doesn't have dot. | I have a rewrite condition for specific file types like so:RewriteCond %{REQUEST_URI} .*(\/|.htaccess|.htpasswd|.ini|.log)$This works fine for files with those file extensions however I can't figure out how to make it also match files with no extension.Eg.cats.com/regularfile.iniandcats.com/regularfileshould both trigg... | Htaccess rewrite condition for files with no file extension |
As far as I understand kops design, it's meant to be end to end tool for provisioning you with k8s clusters. If you want to provision your nodes separately and deploy k8s on them I would suggest to use other tool, such as kubespray or kubeadm:https://github.com/kubernetes-incubator/kubesprayhttps://kubernetes.io/docs/s... | According to documentation of bothkopsandaws, the dedicatedkopsuser needsIAMFullAccesspermission to operate properly.Why is this permission needed?Is there a way to avoid (i.e. restrict) this, given that it is a bit too intrusive to create a user with such a permission?edit: one could assume that the specific permissio... | kubernetes: kops and IAMFullAccess policy |
That's normal behavior because you told Chrome before that it can cache your file. So it has no reason to ask the server because it already knows your file was not updated (which you know is wrong but you can't tell the browser).You have to delete the cache in your browser.
The same effect will happen with all current ... | There was a static site with no cache control: site.com/index.htmlnow there is: site.com/index.php
(index.html is deleted)On chrome (where the old website has been opened before)
chrome shows cached version index.htmlSeems chrome loads the site without contacting the server.htaccess<FilesMatch ".(css|html|swf)$">
... | chrome has cached html file that no longer exists on server |
It depends on whether you have pushed the repository changes or the changes are local.
If you already pushed the changes to the remote repository then you are not supposed to rewrite history.
If your changes are only local you use git log .sln.docstates to find out the history of the files and locate the commit where ... |
Somehow I accidentally committed a .sln.docstates file. Now I added it to the gitignore, however it won't be ignored. I think this is because I already committed it once. Don't know when!
Is there a possibility to make this gitignore rule working?
How can I delete it from my repository?
*.sln.docstates
| Git remove *.sln.docstates from repository |
Inside location block you have not mention portlocation / {
proxy_pass http://cfssl;it should be something likeserver {
listen 80 default_server;
listen [::]:80 default_server;
server_name localhost;
location / {
proxy_pass http://cfssl:8888;
proxy_set_header ... | I haveCFSSLservice running in kubernetes on port8888. I can access it API's from another pod directly referringcfssl:8888. I want to expose it via Nginx and I have Nginx running in separate pod with following configupstream cfssl {
server cfssl:8888;
}
server {
listen 80 default_server;
listen ... | Nginx proxy to CFSS Connection refused |
Adding the following lines to the settings.xml configuration file should fix this issue :<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>2.1</version>
</plugin>
</plugins>
</pluginMana... | Sonar 3.5.1, Jekins Sonar Plugin 2.1. Plugin is installed in Jenkins.
I have added the Post Build Action with Sonar and default settings.
I got this error at building-time.I am not sure what to do. Do I have to modify the pom.xml?[ERROR] No plugin found for prefix 'sonar' in the current project and in the plugin
groups... | Setting up a SONAR Post Build Action in Jenkins (Maven Job) |
If you are in a initial phase or you can manage to move your testing cluster I would advise you to set up the clusters in two different projects.This will create two completely different environments and you will not have any kind of issues in the future and you automatically forbid the access to half of your resources... | We have created 2 different Kubernetes clusters on Google Cloud Platform, one for Development and the other for Production.
Our team members have the "editor" role (so they can create, update delete and list pods)We want to limit access to the production cluster by using RBAC authorization provided by Kubernetes. I've ... | Limit access to a a kubernetes cluster on google cloud platform |
1
Have you used the
Set Web Viewer [Object Name: "wbvName"; Action:Reset]
script step?
You may want to drop a script that does that in your OnRecordChange script trigger.
Share
Improve this answer
Follow
... |
My company has developed a pretty massive FileMaker app. Instead of using FileMaker's Container object to handle pictures, I more or less wrote my own version of 360Works SuperContainer in Rails and I have it running on a server in our office; pictures show up through the Web Viewer.
The app seemed to work fine at fir... | FIleMaker + Windows 7: Web Viewer Memory Issues |
Have you tried having an alerting rule withfor: 2m:- alert: PodIsInPendingState
expr: kube_pod_status_phase{phase="Pending"} > 0
for: 2mThis would fire if there are some pods in Pending state for more than 2m.ShareFollowansweredOct 27, 2022 at 18:44hagen1778hagen177874933 silver badges1010 bronze badgesAdd a co... | We have a system that launches short-lived pods in the Kubernetes cluster and waits up to 2 minutes when they start running, otherwise, it kills them.
I would like to have alerts when this happens using Prometheus.I created the following alert expression:min_over_time(sum by (namespace, pod) (kube_pod_status_phase{phas... | Prometheus alert when pod is in Pending for more than 2 minutes |
Your cron job doesn't have access to the same $PATH variable that you as a user have.The easiest way to fix this is to open up a terminal, and run this command:which javaThat's going to give you the absolute path of your java executable. For example:/opt/Oracle/Java/bin/javaReplace your 'java' command with the whole p... | I have an executable jar and I have written a shell script to execute it. When I run the shell script manually, it runs fine but when schedule to run it weekly using crontab, it gives the following error -log_process.sh: line 16: java: command not foundLine 16 in my shell script is -java -jar $jar_path $logDirectory $l... | shell script fails when executed by cronjob, works fine otherwise |
You should probably use a View for each of your Pivot
From MS documentation
After a unique clustered index is created on the view, the view's
result set is materialized immediately and persisted in physical
storage in the database, saving the overhead of performing this costly
operation at execution time.
|
My problem is that in our application we do complex SELECT on our MS SQL Server (2008) database which is made up of several joins (3 and more) to be used between the tables created using PIVOT (every pivot table has about 10 000 rows).
Only a SELECT is quite fast (select returns only a few rows from the total as 50... | Faster count(*) with pivot tables |
In all likelihood, it means, that you have deleted the manifest, and this is right first step. To delete actual data from disk, you need to run docker registry garbage collector on registry host machine.docker exec -it registry bin/registry garbage-collect /etc/docker/registry/config.ymlThe info is fromthat commentAlso... | Hi I want to delete a docker image from my private registry the steps that I did was:I already did what the solution ofHow can I use the Docker Registry API V2 to delete an image from a private registry?recommended and it did not workI did a HEAD request to get the Docker-Content-Digestcurl --cacert ~/Documents/certifi... | Can't delete Docker Image from Registry |
Read up on HttpContext.Request.PathBase and a new extension called UsePathBase. These help isolate the app root URL so it doesn't mess up your routes.
|
This are my first baby steps in Nginx, so any help would be great.
I have a small docker-compose application consisting of two containers:
nginx
upload
The Nginx port 80 is exposed on the host machine so that the Nginx is reachable from our intranet like so: www.mytest.net
I would now expose the asp.net core site "upl... | How to locate an Asp.net core site on subpath |
1
If you installed the compatible versions of CUDA and cuDNN (relative to your GPU), Tensorflow should use that since you installed tensorflow-gpu. If you want to be sure, run a simple demo and check out the usage on the task manager.
Share
Improve this answer
... |
I tried a lot of things before I could finally figure out this approach. There are a lot of videos and blogs asking to install the Cuda toolkit and cuDNN from the website. Checking the compatible version. But this is not required anymore all you have to do is the following
pip install tensorflow-gpu
pip install cuda
... | How to use system GPU in Jupyter notebook? |
The easiest way would be to:git fetch upstream(with 'upstream' being a remote name for the github bootstrap repo)That fetches everything, but keep it in the remote namespace "remotes/upstream"merge the folders that you want (as in "How do I merge a sub directory in git?"), withgit read-tree. | I'd like to maintain a mirror version ofTwitter's Bootsrapfor my development environment. Now I'm not interested in polluting my work directory with all the contents of Bootstrap. I rather only want to mirror certain directories in their appropriate places. Consider this example:./myComputer github.com/twb... | Mirroring certain files/directories of a git repository |
If you want to pass an environment variable, you'd have to run your node app as:
NODE_PATH=./src NODE_ENV=production SERVER_NAME=servername PORT=3010 APIPORT=3012 /node/path/node bin/server.js >> /log/path/mydomain.log 2>&1
It would be available as process.env.SERVER_NAME but that way you'd have to hardcode the serve... |
I have multiple domain names pointing to the same node server using nginx. The node server needs to know which domain it is running the current request for. How do I pass this information through.
An nginx setup for each domain:
server {
listen 443;
ssl on;
ssl_certificate /etc/letsencrypt/live/mydomain/... | How do I get the server_name in nginx to use as a server variable in node |
As mentionedin this question, try and do agit submodules update --initjust before the merge, in order to add that submodule.Note that a submodule would by default only display the exact SHA1 it represents, in adetached HEAD way.Agit submodule update --remotewould update that reference to the latest commit.See more at "... | I have the same question posed atHow to maintain a Github fork of a popular projectSo, I wish to make a fork of a popular project, make a few minor tweaks, and throughout time I want to keep in sync with the changes going on in the master project.Except that my popular project that I am working with has a bunch of subm... | How to maintain a Github fork of a popular project with submodules |
It sounds like you want to create a work job which backup the data of your MarkLogic Database to Azure Blob Storage and trigger by a time schedule. Right? I do not completely understand what you said, so here just my suggestion below.I'm not familar with MarkLogic, but I think you can write a script for NodeJS or a Jav... | We want to configure schedule backup for database.We have set storage account and access key for Azure Blob in security-> Credentials for Azure.In backup directory, when enter azure://containName
This container name is exist in given storage account.In response it says
The directory azure://backup/ does not exist on ho... | MarkLogic - Can we configure scheduled backup on Azure Blob |
As far as I know there isn't any way to use GitHub's built in search feature for Wiki pages. I guess it may be something they add in the future.
You can use the GitHub Wiki Search Chrome plugin to achieve the same thing.
|
I added a wiki page to a github repository
but when I do a search in github for a sample text from it "this is a very nice wiki page can we search it" no results are found, instead, I get We couldn't find any repositories matching 'this is a very nice wiki page can we search it'. Is there a way to tell github that th... | Is there a way to search github wiki pages? |
3
Faced the same problem but with PHP. copyObject() method is automatically encoding destination parameters (Bucket and Key) parameters, but not source parameter (CopySource) so it has to be encoded manually. In php it looks like this:
$s3->copyObject([
'Bucket' => ... |
I have objects in an S3 bucket, and I do not have control over the names of the keys. Some of these keys have special characters and AWS SDK does not like them.
For example, one object key is: folder/Johnson, Scott to JKL-Discovery.pdf, it might look fine at first glance, but if I URL encode it: folder%2F%E2%80%8DJo... | How to copy S3 object with special character in key |
I don't think there is any tangible difference whether this will be accomplished with filtering on Prometheus' side or on Grafana's.Filtering on Prometheus will result in slightly less data transferred, but difference is negligible.Regarding your query: you are using regex selector in a wrong way. Your selectormustmatc... | i am using Prometheus as a data source to display metrics in a Grafana dashboard. I want to filter variables to return me specific outputs. I am not sure if i should use Regex or the filtering is supposed to be within the query itself . Here is the output that i get :i only want it to return me services that include "w... | How to filter variable query in grafana? |
In VCS menu, you choose git and click branch to choose which branch you want to use.
Or click right bottom corner git menu.
|
We have a repo in GitHub which has 3 branches. For example, say master, developer and preview.
When I checkout this repo in Android Studio, it seems to checkout the master branch only, ignoring all other branches. (Eclipse used to ask us which branch to checkout/import when we are cloning a repo from GitHub)
The quest... | Android Studio - checkout a *branch* from GitHub |
Try not to create it from snapshot. If it doesn't help re-create it.
Thisissuehasn't been fixed yet | After I installed HAXM and enabled HOST GPU, my screen for my virtual machine looks a bit off. The physical menu bar is now on the top, and to click any button you have to hover approx 10px above the button. So to click the top HOME button, i have to click 10px above the BOTTOM of the screen because the screen seems to... | Android use Host GPU wraps screen and puts menu bar on top? |
You can install the library usingBrewbrew install freeimageShareFolloweditedJun 9, 2017 at 8:32peter.bartos12k33 gold badges5252 silver badges6262 bronze badgesansweredJun 9, 2017 at 8:28Juraj PauloJuraj Paulo34322 silver badges77 bronze badges1I fixed it earlier by installing the stand alone version.–PreprocezzorJun 9... | I started a new project and I use Monogame (Pipeline) and the Xamarin Studio on my Mac. I installed Mono, Xamarin Studio and the latest version of Monogame (including Pipeline) for Mac. I've created a new Monogame project via Xamarin and everything worked fine.Now I want to add a picture to my project via Pipeline. I a... | Monogame Pipeline Error on Mac: System.DllNotFoundException: libfreeimage.dylib |
1
You can create different branchs for each version. You can have your current version in a generic especific branch and before you change to a new version, create a new branch named after the version of your choice.
If the current version is 1.2, for example, and you nee... |
I have already did my first commit of my app on Github. Now I want to maintain several versions (like 1.0, 1.1, 1.2 etc.) of my app, whenever I add a new module to my app, on Github. How to do that using android-studio VCS or using terminal?
| Android : Maintaining several versions of my Android app on Github |
I also followed the Scenario 2 in theAWS Documentationwithout the NAT parts. But now I can't access the RDS instance from my computer because RDS is in a private subnet.To solve the accessibility problem I got the idea from thistutorial. I actually did not follow it, so I cannot recommend it.What I actually did was:1) ... | I am new in AWS VPC. I have question about how to connect mySQLworkbench to RDS in AWS private subnet.I use VPC wizard to create scenario 2 : VPC with public and private subnets. From a lot of blogs and forums, most of the people recommend the database should be in private subnet, so I created the database in private s... | How to use mySQLworkbench to connect to RDS in AWS private subnet VPC |
1
The advice in the other answer may work, but I would advise that you don't do it. These instructions will arguably create an "evil merge". This makes the true history impossible to trace. Never introduce external alterations into a merge commit. The merge commit should c... |
Suppose I have a branch from another repo (yyy), which I want to merge into the current one (xxx).
But I want to exclude some files, like config.js, options.js and views/home.ejs, so that they stay as they were in my current repo xxx even if they have been changed in yyy.
How do I do that?
I figured out how I could me... | How to merge a branch from another repo and exclude some files? |
6
One option would be to have a separate, named cache in your configuration just for this data type, and then call its clear() method.
Otherwise, Django LocMemCache stores items in a simple dict, in the instance's _cache attribute. Since they don't give you an API for this,... |
I need to iterate through my server's cache, which is a LocMemCache object, and remove every key in the cache that begins with the string 'rl:'. From what I understand, the only functions that the caching API django provides are get, set, and delete. Here is a rough example of what I am trying to do:
def clear_ratelim... | Remove all matching keys from Django cache |
The problem is inSELECT *. I highly doubt that you need all the table. Display data from it in chunks.
Pagination will help.UPDEven better idea than pagination - treat files as files. That means to store them as files. And keep only filename(or some other identifier) in your entities. | I have a table which has a Blob field. Sometimes, when loading the overview page for this data (which displays all the data, a usualSELECT *statement in the backend) I get an out of memory error - the latest one is shown below (split over multiple lines for reading):request.Critical: Uncaught PHP Exception
Symfony\Comp... | Doctrine Blob Type out of memory error |
This is from the ruleThe purpose of checked exceptions is to ensure that errors will be
dealt with, either by propagating them or by handling them,but some
believethat checked exceptions negatively impact the readability of
source code, by spreading this error handling/propagation logic
everywhere.This rule ver... | There is a SonarQube rule that states that "...no method throws a new checked exception."And it gives the following code example:public void myMethod1() throws CheckedException {
...
throw new CheckedException(message); // Noncompliant
...
throw new IllegalArgumentException(message); // Compliant; IllegalArgu... | How can you throw a checked exception without violating SonarQube? |
It worked , I set the same config in remote side as well. it worked now..
git config --global pack.windowMemory "100m"
git config --global pack.SizeLimit "100m"
git config --global pack.threads "1"
git config --global pack.window "0"
|
git clone is aborting due to possible repository corruption on the remote side
even though memory settings are done properly
I would able to fetch and push my codes to same repo. when I try to clone in another machine it says error.
Here is .gitconfig settings
[pack]
windowMemory = 1000m
SizeLimit = 1000m
... | git clone is aborting due to possible repository corruption on the remote side even though memory settings are done properly |
This seemed to be solved with the following put in the nginx config:
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
So far no side effects, I will give it a few days to see that all functions well before confirming this as a fix.
|
On my Laravel app, I have a form that is validated using standard Laravel validation. If it fails, it simply redirects back to the same form and displays the errors. This is working perfectly fine on my local machine as well as on the dev site (which is hosted on the same server as production).
However, in my producti... | Laravel on Cloudflare produces 502 Bad Gateway on form errors |
you will be needing four queries to achieve it. You can also do it in one.#A icinga2.$server.services.Memory_Load.memory-windows.perfdata.memory.value
#B icinga2.$server.services.Memory_Load.memory-windows.perfdata.memory.max
#C divideSeries(#A,#B)
#D scale(#C,100)in the end turnoff all the queries visibility except... | I'm struggling with calculating the percentage of a list of servers.What I have is:icinga2.$server.services.Memory_Load.memory-windows.perfdata.memory.valueandicinga2.$server.services.Memory_Load.memory-windows.perfdata.memory.maxI can't figure out how to calculate a percentage from those values.Anyone can help me out?... | Calculating percentage with Grafana/Graphite |
No, you're missing something - you end up with your old partition size.
Here's how you do it (pay attention to resize2fs / xfs_growfs commands):
Resizing the Root Disk on a Running EBS Boot EC2 Instance.
Example:
# In case your Filesystem is either ext2, ext3, or ext4
$ sudo resize2fs /dev/sda1
# Or if you have XFS
... |
i have a ubuntu instance(CRON server) of volume size 50gb. I want to increase its size to 100gb+
Here are the steps i want to follow,
1) create a snapshot of the volume attached to CRON server.
2) create a volume with the newly created snapshot, by specifying the size you need. In my case 100gb.
3) detach the existin... | Increasing AWS EC2 ubuntu instance disk space |
This looks like expected behaviour, are you expecting the crontab to be picked up and used by the system's cron process? If so your new crontab file needs to be saved somewhere where it will be processed by the system. Of course if there is no active cron process on the system, nothing will happen.On a Unix system, you... | I have a Python script which I want to launch every 5 minutes despite the user who launchs it. My idea is to generate a code which can be downloaded from a repository and used by anyone, so I don't want to specify any user in the crontab as I don't know what will be its name.I have a Luigi pipeline which makes a compro... | Crontab for Python script every 5 minutes |
0
my guess is that your cpu units is too high. https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#container_definition_environment
it's a harder metric to guess if you haven't really measured it much on your app.
anyway, i'm hitti... |
I cannot figure out why my ecs service will not launch, and keep being given the error "service unable to place a task because the resources could not be found".
In my task definition, I have 500 cpu units dedicated and 250 memory, for just a very small sample node app that's just serving up my static assets.
I am lau... | ECS will not launch instance, "unable to place a task because the resources could not be found." |
So basically I simply added a cron to the application running inside the container to update the virus definitions.ShareFollowansweredMar 29, 2019 at 14:54ZukeZuke3155 bronze badgesAdd a comment| | I have a spring-boot application running on a container. One of the APIs is a file upload API and every time a file is uploaded it has to be scanned for viruses. We have uvscan to scan the uploaded file. I'm looking at adding uvscan to the base image but the virus definitions need to be updated on a daily basis. I've c... | How do I run a cron inside a kubernetes pod/container which has a running spring-boot application? |
You can find mappings in the official repohttps://github.com/apache/airflow/blob/master/chart/dockerfiles/statsd-exporter/mappings.ymlThere's also this slightly tweaked version which drops unmatched metricshttps://github.com/astronomer/ap-vendor/blob/main/statsd-exporter/include/mappings.yml | I have tried to use statsd_exporter as a bridge to export airflow metrics to prometheus.Airflow.cfg:statsd_on = True
statsd_host = localhost
statsd_port = 9132
statsd_prefix = airflowprometheus.yml- job_name: 'airflow'
scrape_interval: 5s
static_configs:
- targets: ['localhost:9135']start statsd_exporter as... | airflow statsd prometheus mapping rules |
Although documentation is clear that this is not supported, there is a workaround. You can create a bootstrap_ecs.sh file and override the container ENTRYPOINT to reference this at runtime (or else add the below to your own bootstrap script). You can use this when running from ECS. Otherwise, use your standard ENTRYPOI... | We are migrating from ECS to Fargate. In ECS, we could set the hostname in the task definition like this:"hostname": "%HOST_NAME%"It fails to create with the error 'hostname is not supported on container when networkMode=awsvpc'
Is there any way to set hostname ? | How to configure hostname in ECS Fargate task definition |
YES
Project management Sublime Style:
apm install project-manager
|
Recently I moved from Sublime Text to GitHub Atom editor. I wanted to create new project in Atom editor. How do I do it?
Is there any way to migrate Sublime Text project files to Atom project files?
| Create Project in Atom Editor |
I was using the wrong type for thebodyobject in that method. I got it to work followingthis example.const patch = [
{
"op": "replace",
"path":"/metadata/labels",
"value": {
"foo": "bar"
}
}
];
const options = { "headers": { "Content-type": k8s.PatchUtils.PATCH_FORMAT_JSON_PATCH}};
k8sApi.patch... | I'm building Istio/K8s-based platform for controlling traffic routing with NodeJS. I need to be able to programmatically modify Custom Resources and I'd like to use the@kubernetes/node-clientfor that. I wasn't able to find the right API for accessing Custome Resources in docs and the repo. Am I missing something? Thx i... | Patch K8s Custom Resource with @kubernetes/client-node |
From the message it sounds like there are commits in the remote that you are missing in your local. Try comparing:git fetch origin
git diff origin/masterThat should show you what you are missing. If your current branch can be brought up to sync, you should be able to just do:git pull origin masterThen, unless there are... | I tried all duplicated questions, but none of them worked. Please can you write correct syntax respectively for me?I tried respectively:git add .
git commit -m "comment"
git remote add origin https://github.com/dgknca/DogukanCavus_H5180005-MuhammetFurkanAydogdu_H5180045
git push -u origin masterpush -fworks, but I d... | error: failed to push some refs to 'URL' Git Bash Error Don't Solved |
Integers don't have leading zeros. Octet strings representing integers
(in non-DER form) might have leading zeros, but you should not confuse
the data type with its representation. OpenSSL outputs the correct DER
form of the serialnumberin certificates.Leading zeros are needed in the DER representation of posit... | This question already has answers here:Missing leading zeroes while retrieving serial number of a x509 cert(2 answers)Closed6 years ago.I'm trying to get the SSL serial number from a certificate but windows is displaying leading zeros but unix is not, I'm using openssl x509 in unix to extract the serial number, do you ... | SSL Certificates leading zeros are displayed in Windows but not Unix | ksh shell [duplicate] |
You need to specify theassume-role-policy-documentasfile://task-execution-assume-role.json.From the documentation you linkedaws iam --region us-west-2 create-role --role-name ecsTaskExecutionRole --assume-role-policy-document file://task-execution-assume-role.jsonit's not a very intuitive error that the cli throws beca... | I am following this tutorial:https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-cli-tutorial-fargate.htmlthe json for a policy is as shown:{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"Service": "ecs-tasks.amazonaws.com"
},... | Invalid policy role JSON |
From the ILE RPG Programmer's Reference Guide:
Storage is implicitly freed when the
activation group ends. Setting LR on
will not free any heap storage
allocated by the module, but any
pointers to heap storage will be lost.
If your RPG program is in its own activation group, then the memory will be freed whe... |
I'm putting into production some RPGLE code which uses %alloc and dealloc to allocate memory. Programmers should be able to ensure there are no resulting memory leaks but I'm worried about what happens if they don't.
My question is: if programmers mess up and there are memory leaks then when will this memory be recl... | How long can memory leaks persist in RPGLE programs? |
Sure, there are open source codes, which you can use and customize for your case (example).IMHO there are better implementations, which you can use as an "auth proxy" in front of your application. My favorite iskeycloak-gatekeeper(you can use it with any OpenID IdP, not only with the Keycloak), which can provide authen... | I have a basic Nginx docker image, acting as a reverse-proxy, that currently uses basic authentication sitting in front of my application server. I'm looking for a way to integrate it with our SSO solution in development that uses JWT, but all of the documentation says it requires Nginx+. So, is it possible to do JWT v... | Does Nginx open source support OpenID and JWT |
4
Dependent on your SQL Database version you may be able to use SqlCacheDependency.
Very briefly in your web.config
<caching>
<sqlCacheDependency pollTime="10000" enabled="true" >
<databases>
<add connectionStringName="ConnectionString" n... |
I have a data set storing all continents with their respective countries. I am caching the data table:
DataSet dset = new DataSet();
string cacheKey = "CoverageDataTable";
object cacheItem = Cache[cacheKey] as DataTable;
if (cacheItem == null)
{
dset = (DataSet)_obj.GetAllContinent();
cacheItem = dset.Tables[0... | Update the cache when dataset is updated |
I had a similar issue getting Fedora 20, Nginx, Node.js, and Ghost (blog) to work. It turns out my issue was due to SELinux.This should solve the problem:setsebool -P httpd_can_network_connect 1
Details
I checked for errors in the SELinux logs:sudo cat /var/log/audit/audit.log | grep nginx | grep denied
And found that ... | I'm installing nodejs and nginx on my centos 7. My app works fine on my_domain:3000 but error on my_domain.com with message The page you are looking for is temporarily unavailable. Please try again later. This is my nginx.conf. Pls help
nginx.confserver {
listen 80 default_server;
listen [::... | Config Nginx running Nodejs on Centos 7 |
This is an API Gateway feature/convention NOT from Serverless Framework so serverless can't do anything about it.
API Gateway requires you with a stage and it is appended at the end of your endpoint.
API Gateway endpoints are meant for developers though so it is not meant to be user-friendly.
If you want it to be user... |
I'm using Serverless Framework to deploy functions in AWS Lambda, but I can't find where/how I can remove the stage specifier from the URL endpoints created. The documentation does not seem to cover this part.
For example, this is my serverless.yml (with irrelevant parts omitted):
service: cd-mock
provider:
name: aw... | How to remove stage from URLs for AWS Lambda functions + Serverless framework? |
Remember to redirect stderr as well:nohup php /var/www/html/cron.php > dir/stdout.log 2> dir/stderr.logor if you prefer to merge them all in the same file:nohup php /var/www/html/cron.php > dir/stdout.log 2>&1The2>&1means redirect stderr to the same file stdout is using.The rest is all fine, putting the command inside ... | I have a PHP script that takes about 15 hours to run and I have to run it once a week. The script downloads and extracts the contents of a massive (70gb) CSV file into our database.I need the script to start running every Sunday at 6 PM and to keep running until it's finished processing the file.My plan is to create a ... | Having Cron job execute script in background and run for 15 hours |
The best idea is to put a load balancer (e.g. using Elastic Load Balancer) in front of your server and spin up another server which replicates your existing site. You can also use an Elastic IP Address to reroute traffic if a particular server falls offline.
You can then use a shared MySQL server (e.g. AWS RDS in a M... |
We all know that CloudFlare has a feature where if your server is offline, it will start serving up a cached version of your website - whether something has gone terribly wrong, or whether you're doing a simple restart.
I've been searching the net high and low, of how to do the same thing with CloudFront but I just ca... | Surviving a reboot with AWS CloudFront |
Have a look at yourAllowOverridedirectives. I had this problem too but the following config work for me:<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride AuthConfig Limit
Require all granted
</Directory>AllowOverride Allwill probably also work, just depends on how much you want to allow.Che... | I am trying to put authentication for accessing my document root directory in apache2...
Here's my config file<VirtualHost *:80>
ServerAdmin webmaster@localhost
AccessFileName .htaccess
DocumentRoot /home/user/workspace
<Directory />
Options FollowSymLinks
... | .htaccess:order not allowed here |
0
If you can write a job for them that does the restore and train them to run your job instead of a manual restore using SMS, then you can add a final step in the job that updates a "LastRestoreDateTime" column in a new table that you create... perhaps named "RestoreHistory... |
I have 2 SQL Server databases, Parent and Child. Both are not always in the same server, but there is always a reference to Parent in the Child database using linked server. Child database makes changes to Parent database through stored procedures and synonyms, so both databases always are in the same 'state'.
The pr... | Backup and restore depending databases in SQL Server |
5
The problem is that you are using the SSH remote URL:
[email protected]:myUserName/myProject.git
You will need to switch to the HTTPS remote URL.
git remote set-url origin https://bitbucket.org/myUserName/myProject.git
Alternatively, just give up. Stop trying to use X... |
I could commit to this repository without problem with Xcode 6. git still works fine in terminal, i can commit both locally and to the remote. In Xcode 7, I can commit locally but not remotely. it says authentication fails and it is impossible to reset the username. (it's greyed out). I have the proper username in my ... | Xcode 7 GM can not authenticate git repository |
After further researching I was able to determine that there are two modes to php running: cgi or cli. Upon testing withphp -vin shell I confirmed it was configured for cli, but running the same with a Cron job I saw the result being php running as cgi.To resolve this I reconfigured my Cron job as follows:/usr/local/bi... | I am running a new site on Codeigniter 2.1.0 and have configured the following Cron job:php -q /home/overstoc/www/admin/index.php cron updateThe output sent to me shows that only the default controller and default action are being called. Any parameters being sent are ignored.Any suggestions on the way to debug this o... | How can I debug a Codeigniter Cron job that only runs the default controller and action when called? |
the Kubernetes-Approach would be adding anService-Layeraround the Pods (the instances) of your application. To do this, write a YAML-Spec like this:apiVersion: v1
kind: Service
metadata:
name: my-service
spec:
selector:
app: MyApp # << Replace with a matching Label
ports:
- protocol: TCP
port: 80
ta... | I have two simple applications that I have to deploy in Minikube on two different pods. The two applications must communicate via REST calls, so I need an IP address. How can I create a Minikube pod that I can reach locally via a hostname such ashttp://name:portwithout writing the IP address? | How can I create a pod that can be reached by another pod via hostname in minikube? |
The graphitenonNegativeDerivativefunction isn't a "true" derivative, it will return the delta between successive points, which seems to be what you're looking for.The "true" derivative function in graphite isperSecondwhich returns the delta normalized to a per-second rate.So, try usingnonNegativeDerivativewithout thesu... | I'm trying to get the delta of a metric in the edges of a time interval in Graphite, but I couldn't find anything related to it in the documentation.I'm not looking for the derivation, but the absolute difference.Is usingsummarize(nonNegativeDerivative(a.metric), "30mins")will do the job ?I be glad if someone can point... | How to get the delta of a metric in a time interval |
@ is used in Logstash( part of Elastic stack) like @timestamp. @timestamp variable is set as default, but you can change that and some other fields can be used instead of timestamp( you need a field that can be used as time or date for your graph to work). For example, if you have a time variable, you can use it inste... | i have just started to deal with grafana and elastic. in the dokus i see things like @timestamp or @value again and again. Is that a variable that you set somewhere?can this be used for any elasticsearch database? i connected elastic without metricbeats… and only get to the timestamp when i walk over an object. Means :... | What does the @ mean in the grafana metrics? |
Why does the remote owner not want you to set up keys?The key is the same as a password, or even better because it's easier to track where it's used. The right solution is, without a doubt, to generate a keypair and use that for unattended authentication.Now, if you really need to usescpwithout public-key auth, you ca... | I have a nightly database backup which I would like to scp to a remote server. As near as I can tell scp cannot be invoked with a password in the command and instead you need to set up keys for the servers?Per this:http://www.spaceprogram.com/knowledge/cron_scp.htmlThe remote box owner does not want me to set up the k... | Can scp be used non-interactively in cron without generating keys? |
You can't change the name of a load balancer, because that would break the sites that use the load balancer.
ELBs have an associated hostname, that looks like this:
${balancer_name}-${opaque_identifier}.${region}.elb.amazonaws.com
(The ${opaque_identifier} is assigned by the ELB provisioning infrastructure to disambi... |
After navigating to Menu > EC2 > Load Balancing > Load Balancers, I found that an important load balancer I inherited was named "testing", where it should be named something more meaningful for future dev ops (i.e. "search"). This load balancer is currently in use with a few instances running.
I'd like to change the ... | Changing the name of a Load Balancer on AWS Console |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.