Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
Either create a locking mechanism so the scripts won't overlap. This is quite simple as scripts only run every minute, a simple .lock file would suffice: <?php if (file_exists("foo.lock")) exit(0); file_put_contents("foo.lock", getmypid()); do_stuff_here(); unlink("foo.lock"); ?> This will make sure scripts...
I'm trying to figure out the most efficient way to running a pretty hefty PHP task thousands of times a day. It needs to make an IMAP connection to Gmail, loop over the emails, save this info to the database and save images locally. Running this task every so often using a cron isn't that big of a deal, but I need ...
What do I use when a cron job isn't enough? (php)
I think your "duplicate" commits might be there because you have pushed to a remote (if not, we need you to show an example of history with duplicate commits). Starting from: --A---B---C - staging \---D - feature - remote/feature After git checkout feature && git rebase staging: /---D' - feature --A...
We have a branch staging which is our master branch. This is the branch that gets deployed. We have two developers. We want to work on features in isolation, but ensure compatibility before we push changes to staging. How are we supposed to do this? Here's what I thought we could do. I branch off from staging to crea...
How should we use git branches cleanly and effectively?
There are two ways to cirumvent this issue.If installing withistioctl installUsingistioctl installprovide asecretwith docker-registry auth details with--set values.global.imagePullSecrets. Like thisistioctl install [other options] --set values.global.imagePullSecrets[0]=<auth-secret>Where<auth-secret>is the secret crea...
Bug descriptionInstallation gets timeout errors and inkubectl get pods -n istio-systemshowsImagePullBackOff.kubectl describe pod istiod-xxx-xxx -n istio-systemFailed to pull image "our-registry:5000/pilot:1.10.3": rpc error: code = Unknown desc = Error response from daemon: Head https://our-registry:5000/v2/pilot/manif...
Istio installation failed with private docker registry
27 I think I have discovered the error. I was using 'service' to run elasticsearch and therefore my environment variables got stripped. I had to update the /etc/default/elasticsearch file with the correcct env variables (specifically the ES_HEAP_SIZE=16g). So far it's run...
I am running an 8 cores, 32g RAM elasticsearch node with 5 shards, 400 million (small) documents. Everything works great until I run an agg search, then shards start failing with: java.lang.OutOfMemoryError: Java heap space I have changed heap size with: export ES_HEAP_SIZE=16g (also ES_MAX_MEM and ES_MIN_MEM to sam...
Elasticsearch OutOfMemoryError Java heap space
Docker's official releaseno longer supports RHEL/Centos 6. I think that stopped with 1.7.1 and the official release is at 1.10. I would suggest updating to Centos 7 or anything with a 3.10+ kernel to use the latestdocker-engineas it has improved quite a bit.If you are stuck with Centos 6.5 then either continue with the...
CentOS version: lsb_release -d Description: CentOS release 6.5 (Final)My repo looks like thiscat /etc/yum.repos.d/docker.repo [dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/ enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpgI have some old version ...
yum install error docker
-Try following command :kubectl get pods <podname> -o jsonpath='{range .spec.containers[*]}{"Container Name: "}{.name}{"\n"}{"Requests:"}{.resources.requests}{"\n"}{"Limits:"}{.resources.limits}{"\n"}{end}'Example: kubectl get pods frontend -o jsonpath='{range .spec.containers[*]}{"Container Name: "}{.name}{"\n"}{"Requ...
can anyone help me with the command to view limits and requests of a pod or containers in a pod? I have triedKubectl describe pod,kubectl get pod --output=yaml,kubectl describe node- shows the current limits but not the configured limits. I want to see the configured limits and requests in the yaml.Thanks.
Check Limits and requests for a pod with kubectl
Definitely not possible, because apps have to be compiled specifically to run on the simulator and iPhone, and such builds are not compatible with each other as they are built to run on different processors.Edit to add: you can copy data/content (and you can, for Apple-supplied apps like the Address Book that are provi...
as the question says, I have a backup of an actual iPhone. Now I want a "copy" of the content in my simulator. The reason is that my real iPhone contains third party application data that I want to have in my simulator too.Is that possible?Thanks, Norbert
iPhone simulator: Is it possible to restore a real iPhone backup to it?
After talking to aws support itself: This feature is not yet supported by aws as of today.
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, ...
Cloud Formation Support for Rate-Based WAF Rule [closed]
2 Since github page doesnt support any Backend languages ,you simply cannot use it for mailing purpose ! Share Improve this answer Follow answered Feb 20, 2017 at 2:59 ShrAwan PoudelShrAwan...
I am currently using Github Pages as a host for my new domain, after I learned that it is free, and that all I needed to purchase was the domain, which I have. My only problem is that GitHub Pages doesn't support PHP and I want to have a mailing list where users keep their email and I save their email for later contac...
Mailing List on GitHub Pages
When using the SonarQube LDAP plugin, you don't actually add users to SonarQube: they get added automatically once they log in for the first time.And then, each time a users logs in again, the LDAP plugin synchronizes his/her information with SonarQube DB.
Hi I've added the LDAP plugin to my new version of SonarQube (4.5.2) and I'm having difficulty adding a user to it.I've checked the logs and it seems to linking up the SonarQube and checking it, but I'm struggling to find how I add a user from LDAP to SonarQube.
How to add users in SonarQube using LDAP
You need to use the method:.jqCronGetInstance()and store the returnedObject. ThisObjectwill offer useful methods.var instanceOfCron = $('.example1') .jqCron( // configuration { enabled_minute: true, multiple_dom: true, multiple_mont...
I am new to jQuery how would I get the cron value that is set?http://jqcron.arnapou.net/demo/#https://github.com/arnapou/jqcron$(function() { $('.example1').jqCron(); }); $('.example1').jqCron({ callback: function(value) { console.log(value) } });<div class="example1"></div>
How do I return the cron value with this jQuery Plugin
In order to access external network, your GCP network must allow all traffics for multiple mac addresses using macvlan from one computer instance. So you should check if promiscuous mode(no filter for mac addresses) is available on the GCP first. AFAIK, public cloud network does not allow that... So you can use ipvlan ...
I brought up openshift container platform on top of Google Cloud Platform.I used Multus for having Multiple networks to pods.I used Macvlan CNI and whereabouts instead of static in ipam to avoid IP conflicts. I deployed three pods , two in same node and one in another node . The pods were assigned net1 interface withou...
Multiple network created using Macvlan CNI plugin with whereabouts ipam - communication not happening across nodes
This command will delete all PODs older than one day :kubectl get pods -o go-template --template '{{range .items}}{{.metadata.name}} {{.metadata.creationTimestamp}}{{"\n"}}{{end}}' | awk '$2 <= "'$(date -d 'yesterday' -Ins --utc | sed 's/+0000/Z/')'" { print $1 }' | xargs --no-run-if-empty kubectl delete podThis comman...
Is it possible to delete POD in kubernetes based on creation time or age?Example : I would like to delete all PODs which are older than 1 day. These PODs are orphaned , therefore no new PODs will be created.
Kubernetes: How to delete PODs based on age/creation time
-2I was not able to reproduce the problem (calling[System.Net.Dns]::GetHostEntry('unusedIP')gave me an exception).If there is in fact an issue with your DNS configuration, it's not clear from the information we have, and it would be more appropriate to post it onServerFault.Is there any other clear code to do a reverse...
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, ...
[System.Net.Dns]::GetHostEntry("ip") returns host entry of another server [closed]
The easiest solution is to decrease the scrape interval to 5 minutes or less.This is something like Prometheus internals.PromQL only looks back for 5 minutes to find samples, so after this amount of time since the last scrape you start seeing the described behavior. It is easy to see on a graph, you will quickly notice...
I'm working on use case where I need to scrape metrics at different scrape intervals. For example,metric_oneneeds to be scraped for every 1 hr andmetric_twois scraped for every 15s. Both of these metrics are from the same target. The solution that I have tried is following:global: scrape_interval: 15s scrape_configs: ...
Multiple scrape jobs running on same target in Prometheus
I had a similar issue on my local WordPress development setup. (Windows 10 + WSL2), here is a link to the git repo:https://github.com/dorumarginean/wordpress-dockerFor uploading images / plugins I updated the owner like you mentioned and for write permissions with Visual Studio Code I edited the PHP container inside my...
I'm using docker-compose in a WSL environment. Currently Wordpress runs in the docker composer. All files in the Projects folder are at www-data group and user which allows Wordpress to create everything and upload plugins.But vs-code has file permission errors as soon as I want to edit files.Switching user to and www...
WSL + Docker file permission issues
golang is compiled to a static binary you can easily use the following libraryhttps://godoc.org/github.com/robfig/cronto create code that will run a given text file as cron data.
I'm working on a proprietary Linux based server which does not have cron and at utilities. Nor does it allow me to install the same Can any one help me out in scheduling a particular task without these two utilities
Scheduling a Script without cron and at commands
Please have a look at the keycloak image manifest to get more details on where exactly the keycloak is getting installed within container.https://quay.io/repository/keycloak/keycloak/manifest/sha256:64fb81886fde61dee55091e6033481fa5ccdac62ae30a4fd29b54eb5e97df6a9As per what i see from manifest JBOSS_HOME points to belo...
I installed keycloak in Redhat openshift and the yaml file link is below:https://raw.githubusercontent.com/keycloak/keycloak-quickstarts/latest/openshift-examples/keycloak.yamlwhat I am confused is that I can not find the full path where the keycloak installed in pod.Can anyone help me out to explain where it config it...
How to get install path in YAML
You should use git revert (docs) Given one or more existing commits, revert the changes that the related patches introduce, and record some new commits that record them. You should use it to revert from HEAD to your specified commit with git revert --no-commit <xxxxxxx>..HEAD git commit It is handy to use --no-comm...
This question already has answers here: How do I undo the most recent local commits in Git? (106 answers) Closed 3 years ago. I am trying to roll back a git commit. On the local ve...
How to push a local git reset to github? [duplicate]
1 I'm a writer on GitHub's documentation team. A colleague pointed me to this post and I wanted to share that I've updated Move a project card (and Move a project column) to describe what we're expecting as the position parameter. When moving a card, you can provide one of ...
I am trying to move a Github project card. But I don't quite understand what "position" mean in the docs "position string body Required. The position of the card in a column" https://docs.github.com/en/rest/reference/projects#move-a-project-card I am trying to do a post request with Postman. But I keep getting a me...
What does "position" mean when doing a Github card move http get request?
2 Assuming you have the repository under an organisation and that the repositories are not public, you should create a new team that only has read access to the repo. If the repos are public, read-only is the default behaviour already and you do not need to do anything sp...
We have a few new team members joining our development team and I was instructed to give them access as the members will be testing the web applications. They will not be contributing yet. My concern is that I would prefer them not to push (even by mistake) until they are completely afay with the application and have ...
Limiting Access to Git Repo for New Team Members?
Yes, you can use git, and you should. Git will allow your team members to work on the same files at the same time. Think Google Docs, but much more clever and for programming. There's a really good Udacity lesson on how to use Git/GitHub. It should only take you a few hours, but it'll dramatically improve your collabor...
Our web development team uses shared folders (Windows) to work on projects together.We never make local copies of project , but always edit the files in-place.Now I've heard we would be much better off using git .Is git a reasonable option is this case? And if so, how can we use it?
How to use git for projects which has shared files
I believe you need either the csrf tag inside your html template,<form action="" method="post">{% csrf_token %}or a decorator above your view method ...@csrf_protect def my_view(request):Read here:https://docs.djangoproject.com/en/dev/ref/contrib/csrf/ShareFolloweditedJul 26, 2016 at 22:31Jules1,70711 gold badge1919 si...
I'm trying to setup django site work ower https with csrf protection. It work on nginx server.nginx works on https and my django app succesful serve GET requests. when i try to make post request it's fail withForbidden (403) CSRF verification failed. Request aborted. CSRF cookie not set.I setfastcgi_param HTTPS on;in...
django https + CSRF
The first server block is also the implicitdefault server, which means that any domain name that does not matchwww.example.comwill be handled by it.If you would like that second server block to handle all domains exceptexample.com, you can make it thedefault serverexplicitly, by adding thedefault_serveroption to thelis...
Currently I'm using setting below to redirect non-www domain to www domain and it's working fine:server { listen 80; server_name example.com; return 301 http://www.example.com$request_uri; } server { listen 80; server_name www.example.com; location / { proxy_pass http://www...
Nginx redirect only root domain but not subdomain to www
If you've described your flow correctly, you did these things in this order:Worked from a remote branchCommitted work that you didn't intend to commitPushed that work to your remoteWish to revert to before you pushedIn that case, you would perform this.WARNING: This is a good way to lose work. If you're working with ...
I have Problem: I wanted to commit something but instead commited the whole location where the folder which was meant to be commited were in. So now I have like way too many Files and folders in my Github and I really just want to get back to where I was before. That's why I tried hard reset, which I found online. So ...
git hard reset - what am I doing wrong?
After some investigation, I think I find the answer to my own question.Adding and deleting zone using rndcto enable rndc to add new zones, add the following code to/etc/bind/named.conf.option:allow-new-zones yes;to add a new zonerndc addzone mydomain.com '{type master; file "/etc/bind/rndc_zones/mydomain.com";};' rndc...
When I use traditional way to manage my zone files, I can put the follow configuration in/etc/bind/named.conf.localto setup the master/slave replication.zone "my_zone.com" { type master; file "/etc/bind/db.my_zone.com"; };andzone "my_zone.com" { type slave; file "db.my_zone.com"; masters { master_ip...
master/slave replication with rndc
the best way is change .htaccess file like this:RewriteEngine OnRewriteRule ^api/([^/])/([^/])/([^/]*)$ /api.php?request=$1&id=$2&state=$3 [L]The original URL:http://www.domain.com/api.php?request=mike&id=3&state=activeThe rewritten URL:http://www.domain.com/api/mike/3/activeupdate:if you don't know the number of param...
I'm building a RestApi and I have a problem with urls. I want to transform "api.php?request=users" into "api/users". But I also want it to be dinamic. For example: If a user types "api/users/13" I want it to be tha same as "api.php?request=users&id=13". Is there any way to make it dinamic? Do I have to create every cas...
ApiRest Beautify url with rewrite paramaters
You can add the changes as a fixup commit but don't rebase while the review is underway. This will allow the PR to continue without losing context. Your reviewers will be able to see just the addition of the signatures in the fixup commit(s).Once the PR is approved, then you can rebase -i --autosquash which will squash...
I want to rebase to add GPG signatures to some historic commits. Can I do this with the preserve merge option and still retain all my PR conversations in GitHub?
Does rebase lose PR conversations on GitHub?
This is because there are some problems with turbolinks and foundation.If you disable turbolinks, taking out from your application.js manifest//= require turbolinksIt should be Ok for you.If you do this you can also remove turbolinks from your gemfile.I haven't still found a solution to get this done using turbolinks.H...
I've recently deployed a Rails 4 site to Heroku and I've noticed a problem with my menu bar. I'm using Foundation so that, on small screens, the menu items on the navbar become a clickable drop-down menu. I'm also using a helper to get a gravatar, shamelessly copied from Michael Hartl's excellent Rails Tutorial book. I...
Issue with Heroku pipeline and javascript
I have answered the question myself.columns = ['id', 'created', 'description', 'followers_count', 'friends_count', 'lang', 'location', 'name', 'statuses_count', 'URL'] df = pd.DataFrame() with open(r'C:\dynamodb-in-s3-file-that-was-downloaded') as s3: for item in s3: newdf = pd.read_json(item) newdf...
I am really struggling figuring out how to move my database values from AWS Dynamodb to a pandas dataframe. My data isn't very large (100,000 rows). I got the data into s3 then downloaded it for simplicity. I tried using boto3 and S3Fs to get the data into a pandas frame without success, so for now I have given into ju...
dynamodb pipe object to pandas dataframe
Make sure your responses are not telling the browser that the content expires in the future. There are two HTTP headers the control this. Expires Cache-Control - There are many possible values for this header, but the one that controls expiration is max-age=foo. In addition, IE may be revalidating. This means that I...
I'm have an action /json that returns json from the server. Unfortunately in IE, the browser likes to cache this json. How can I make it so that this action doesn't cache?
Disable browser caching in pylons
Terraform's splat syntaxis for keeping track of each thing created by a resource using thecountmeta parameter.If you want to be able to get at all of the respoitory URLs you could have a singleaws_ecr_repositoryresource and use thecountmeta parameter with something like this:variable "images" { default = [ "nginx...
I have a bunch ofaws_ecr_repositoriesdefined in my Terraform code:resource "aws_ecr_repository" "nginx_images" { name = "nginx-test" } resource "aws_ecr_repository" "oracle_images" { name = "oracle-test" }I want to be able to have an output that can list all theaws_ecr_repositoryresources into one output. This is ...
How to output all the resources of one type in Terraform?
Well, for one thing, the default shell that comes with GitHub for Windows isPoshGit, which is aWindows Power Shellenvironment for Git. On the other hand,Git Bash/msysGituses theBash shell(Bourne Again Shell) andMinGW, which is a port of a Linux style environment and command line tools.PoshGit will let you use Windows ...
I'm referring to the shell that comes with GitHub for Windows (Github CLI), and Git Bash (which has a stand alone installer).
What is the difference between Git Bash and the GitHub for Windows shell?
Create the page with the specific slug in the Ghost backend.Create the.hbs-file named like this:page-about.hbs.FromGhost Documentation on custom pages:For example, if you have an 'About' page with the url/about/, adding a template calledpage-about.hbswill cause that template to be used for the about page, instead ofpag...
I'm looking to add some more .hbs files to ghost/custom/themes/casper, such as an about page and landing page. This way, all files are using the same default layout and I have a /blog destination for my blog.However, when I create an .hbs file, such as about.hbs, and give it the same code as in page.hbs, and upload it ...
Create custom pages on Ghost
One possible scenario is someone create a branch for development, you run a:git fetchwill fetch all of those branches. When that feature branch had been merged, they were deleted, andgit fetchdidn't remove it. You needgit fetch -porgit fetch --prune
I've got a git repo hosted on github. When I dogit branchlocally I get just the three branches you see in the output below:$ git fetch $ git branch * develop kramer65/feature-branch masterI then logged into github and on there I see it just has 5 branches:So now I did agit branch -alocally, which shows my 3 local b...
Why do I see more remote branches locally then I've got on github?
1 No, this is not possible now. There is a feature request but it is still open (it is more than 4 years old). Share Follow answered Oct 9, 2018 at 20:08 Constantin GalbenuConstantin Galbenu ...
Here an example of a docker-compose.yml : # docker-compose.yml version: '3' services: web: image: ghost:latest ports: - 0:2368 environment: url: http://ghost.localhost:30001 I would like to get service random port and set inside url env variable like this: url: "http://ghost.localhost:{{....
How to get and set random service port as env var inside docker-compose file?
Page metadata isn't the sort of thing that should change very often, but you can manually clear the cache by going to Facebook's Debug Tool and entering the URL you want to scrape There's also an API for doing this, which works for any OG object: curl -X POST \ -F "id={object-url OR object-id}" \ -F "scrape=...
I'm aware you can force update a page's cache by entering the URL on Facebook's debugger tool while been logged in as admin for that app/page: https://developers.facebook.com/tools/debug But what I need is a way to automatically call an API endpoint or something from our internal app whenever somebody from our Sales d...
Is there an API to force Facebook to scrape a page again?
Yes, you can do this. The trick to know is that a "remote" named.refers to your own local repository.1Hence:git push . HEAD:a HEAD:bor:git push . c:a c:b(assumingHEADnames the same commit asc) does this. Note that the adjustment toaand/orbmust be a fast-forward, as would be required with any remote. You can force th...
Instead of pushing to remote repo, is there a way to push changes for a certain branch to other branches in the same repo?The rationale is that I want to avoid having to checkout the other branches and then run merge for each other branchNormally, I would dogit commit -am "making changes to branch c" git checkout a git...
"push" changes on branch A to two other branches in same git repo
Currently we do think that we will try go with Job Cluster approach although we would like to know what is the community trend with this? We would rather not deploy more than one job per Flink cluster.This question is probably better suited on the user mailing list.How can I change the number of task slots per task man...
I'm researching docker/k8s deployment possibilities for Flink 1.9.1.I'm after reading/watching12345.Currently we do think that we will try go with Job Cluster approach although we would like to know what is the community trend with this? We would rather not deploy more than one job per Flink cluster.Anyways, I was wond...
Flink Job Cluster vs Session Cluster - deploying and configuration
1 tl;dr Either: remove the " around $PWD (this will also work fine in directories whose paths happen to contain spaces): docker run -ti --rm -e DEVICEID=0x0065994B921FFA0A -v $PWD/output:/output pablozaiden/deviceid-exosphere-builder:latest Or: enclose the entire argument ...
trying to finish my switch "saves" from bricking. error on last command on powershell: COMMAND: docker pull pablozaiden/deviceid-exosphere-builder NO PROBLEM COMMAND: mkdir -p ./output FINE COMMAND docker run -ti --rm -e DEVICEID=0x0065994B921FFA0A -v "$PWD"/output:/output pablozaiden/deviceid-exosphere-builder:lat...
Docker run: invalid reference format error unbricking switch
0 You can use serveo (or a similar service - ngrok, etc) to expose your local server and have google or other oauth provider callback through it. You can also ignore this problem and login through /admin in local environment. Share Improve this answer ...
I am setting up a technical blog with the following infrastructure: Client <---domain.tld:80---> Nginx Reverse Proxy <---localhost:8001---> Docker container with Django web app I am using Gunicorn as WSGI web server within my container. The problem I am facing is that when I want to include Google authentication for...
Avoid Google oauth redirect to localhost on call from public server with nginx reverse proxy + docker setup
Dynamic refresh the input file is NOT possible (at least withfilesrc).Besides, your sample usefreeze, which will prevent the image change.One possible method is usingmultifilesrcandvideorateinstead.multifilesrccan read many files (with a provided pattern similar to scanf/printf), andvideoratecan control the speed.For e...
I'm trying to use a jpg-File as a virtual webcam for Skype (or similar). The image file is reloading every few seconds and the Pipeline should also transmit always the newest image. I started creating a Pipeline like thisgst-launch filesrc location=~/image.jpg ! jpegdec ! ffmpegcolorspace ! freeze ! v4l2sink device=/de...
Creating a virtual webcam from jpeg using GStreamer
The.gitignorefile allows for ignoring files from commits. Files excluded by the file will be untouched by git, neither uploaded or overwritten.To add a file to the.gitignorefile, which exists in the base directory of any repo, follow instructions like the ones on the GitHub docs:https://help.github.com/articles/ignorin...
I have a folder with unit tests in Python for testing Trello API. I created a separate file calledsettings.py, which contains my key and token:key = my_key token = my_tokenI want to put this file in the same folder, where I have my unit tests. So I would importkeyandtokenfrom 'settings' each time I run the test.I don't...
Where and how should I store a file with key & token on GitHub?
2 Using CreateMemoryResourceNotification and QueryMemoryResourceNotification to check memory status enum MemoryResourceNotificationType : int { LowMemoryResourceNotification = 0, HighMemoryResourceNotification = 1, } [DllImport("kernel32.dll...
How do I subscribe to Windows Low memory notification from c# ? our c# app has substantial unmanaged memory allocation, which we can free if OS memory availability is low.
windows c# low memory notification
0 Your only alternative would be to REMOVE that file from Source Control. git rm --cached P would tell git to stop tracking it altogether. Share Improve this answer Follow answered Dec 24, 2014 a...
I have a project on GitHub. There is a config file P in my project required by one of the components in the project with a specific name and location that cannot be changed. In order to run the JUnit tests locally on my computer, and also by some remote server, we need two different contents and configurations in P. ...
Git: Prevent a local and remote copy of a file from overwriting each other
You can use thetzinfo gemto navigate through different timezones and it supports DST. TheWhenever gemmakes it easy to write your cron jobs in Ruby. I assume your User model has a timezone column which followsThe Time Zone Databasenaming.So, yourschedule.rbwould be something like this:require "tzinfo" def midnight_in_t...
I want to perform some actions on a user when it's midnight in his or her region. Since I want to support time zones instead of basing everything on server time, I want to cover all the possible midnights of every time zone.The idea I had so far is to create a rake task that is triggered every hour with cron, and the r...
How do you run a rake task at midnight of every single time zone?
As mentioned in comments the correct way to do this would be to move the video into the grafana public folder and serve it from there.On the grafana server, move the video to/usr/share/grafana/public/video, you will have to create this folder first (owned by root and perms 755)Then within the panel, your html would sim...
I am trying to embed an MP4 into a Grafana dashboard on an Ubuntu 18.04 server. I have entered this into the "text" dashboard in HTML mode.<video width="320" height="240" controls autoplay loop> <source src="/home/testing/Downloads/video.mp4" type="video/mp4"> Your browser does not support the video tag. </video>Th...
How do you embed video in Grafana?
For me it was helping to add/uncomment the following lines inneo4j-wrapper.conf:wrapper.java.initmemory=4096 wrapper.java.maxmemory=4096The problem is the RAM size.You can find this file in "C:\Program Files\Neo4j Community\neo4j-community-2.1.3\conf" on a Windows system e.g.PS: another good article on what else could ...
I was running a test and I got a "GC overhead limit exceeded" error. I understood that it is because I loaded too many primitives in the cache. Am I wrong?My question then, is how can we prevent ourselves from this? For example, can we evaluate the size of needed memory based on the number of primitives? Is there like ...
Neo4j GC overhead limit exceeded
An easy way I use (and it's not Python specific), is to check whetherkubernetes.default.svc.cluster.localresolves to an IP (you don't need to try to access, just see if it resolves successfully)If it does, the script/program is running inside a cluster. If it doesn't, proceed on the assumption it's not running inside a...
I have a Python script that should have slightly different behaviour if it's running inside a Kubernetes pod.But how can I find out that whether I'm running inside Kubernetes -- or not?
How can a Python app find out that it's running inside a Kubernetes pod?
Whatever 2 is, it's not preferable over anything. It is an accident waiting to happen as soon as you make a copy of a foo object. Why is 1. preferable over 2.? If I instantiate a foo object and dereference it in order to get the value of the small n member, the vector member will be loaded into memory as well, right?...
The following slide is from Bjarne Stroustrups talk "The Essence of C++": Do I understand his techniques with the following simple examples (values, raw pointers, smart pointer for resource members/subobjects)?: 1. class foo{ std::vector<bar> subObj; int n; public: foo(int n) : n(n) { subO...
What motivates Stroustrup's order of preference for resource management techniques?
If you would like to clean up the commit history, you can usegit reset --hard.For example, here is your commit history:commit N+2: "Added important text again" commit N+1: "Removed important text" commit N: "Added important text" ...You would like to make it look like this:commit N: "Added important text" ...Then do ...
I am working on a project on a gitHub with my friends, and I want to know if there is any way we can pull (update) our local repo without a "pulling commit"?Here is the simplified example of the story:My friend and I had the same copy of the source code from remote repo on our local repo.Example Source code:<p> This is...
Pull from remote repo without a commit history?
The problem comes from the line below, you have an indentation problem there.portsshould be at the same level thanname.# indent the port bloc spec: containers: - name: django-react-ecommerce-master_backend_1 ports: - containerPort: 8000
I am new to kubernetes I am writing a yml file to create a deployment. I am crating deployment by running this command "kubectl create -f backend-deployment.yml" but I keep getting this error: "error: error parsing backend-deployment.yml: error converting YAML to JSON: yaml: line 16: did not find expected '-' indicator...
error converting YAML to JSON Line did not find expected '-' indicator
4 s3-streamlogger buffers content before uploading it to s3. By default it will buffer for 20 seconds, or 10kB of content (whichever is less) – so if your lambda function doesn't execute for at least 20 second, or write 10KB of logs nothing will be written before your fun...
const winston = require('winston'); var S3StreamLogger = require('s3-streamlogger').S3StreamLogger; var s3_stream = new S3StreamLogger({ bucket: "bucket_name", access_key_id: "access_key_id", secret_access_key: "secret_access_key" }); var logger = new (winston.Logger)({ transports: [ new (win...
unable to create logs in aws S3 bucket using 'winston' and 's3-streamlogger'
Cast to NSDictionary instead of a Swift Dictionary: return AWSTask(result: tokens! as NSDictionary)
I am using Amazon Cognito and Facebook login in an ios app. Up until beta 5 this code from this SO thread worked: class CustomIdentityProvider: NSObject, AWSIdentityProviderManager { var tokens: [NSString: NSString]? init(tokens: [NSString: NSString]) { self.tokens = tokens } @objc func login...
Unable to compile AWS CustomIdentityProvider on xcode 8 beta 6
Attaching an IAM role to existing EC2 instances is a relatively new feature (announced in Feb 2017). There is no support for that in Ansible currently. If youAWS CLI 1.11.46or higher installed, then you can useshellmodule to invoke the AWS CLI and achieve desired result.See:New! Attach an AWS IAM Role to an Existing Am...
I am trying to attach anIAMrole to multiple EC2 instances based on tags. Is there a module already available which I can use. I have been searching for a bit but couldn't find anything specific.
Ansible module to attach an IAM role to existing EC2 instances
In the future you should provide some more details about your environment in yourquestion.As you did not provide information, I've tried to reproduce your scenario, but could't reproduce your environment behaviour. Issue is related to your Hyper-V configuration. I will post some tips and common mistakes usingMinikubeo...
Minikube setup:I am runningminikubeon my Windows 10 office laptop withHyper-v. A Virtual switch - external mode has been created and checkedAllow management operating system to share this network adapter.VM works perfect and i can do deploymentsProblem:The host windows 10 machine loses internet connection when Virtual ...
Kubernetes Minikube- Host network connection fails when i created a minikube with external switch on Windows 10
Have you tried to run this python script from shell?Is there any exception (Like you posted too frequently led the script to a 403 page which keeps the function from finding any appropriate html element) generated in 2nd tweet() function?
I have a python script which runs aforloop. I made it executable and put it in acronjob.It posts a few tweets on twitter. For each loop, it sleeps a few seconds with random times.However, it appears it only runs the very first loop and then stops. Every time, I only got ONE tweet. I could not figure out why.Here is the...
Python script with cron only finished the first loop
You have to install pcre3:apt-get install libpcre3 libpcre3-devThe library is required for regular expressions support in the location directive and for the ngx_http_rewrite_module module.http://nginx.org/en/docs/install.html
after downloading and trying to configure nginx when um executing the command ./configure um getting this error./configure: error: the HTTP rewrite module requires the PCRE library. You can either disable the module by using --without-http_rewrite_module option, or install the PCRE library into the system, or build the...
nginx ./configure error ubuntu 12.04
Using Taints:Taints allow a node to repel a set of pods.You have not specified the effect in the taint. It should benode-pool=true:NoSchedule. Also your other node need to repel this pod so you need to add a different taint to other nodes and not have that toleration in the pod.Using Node Selector:You can constrain a P...
I have created a GKE Kubernetes cluster and two workloads deployed on that cluster, There are separate node pools for each workload. The node pool for celery workload is tainted withcelery-node-pool=true. The pod's spec has the following toleration:tolerations: - key: "celery-node-pool" operator: "Exists" effect: ...
Kubernetes pods scheduled to non-tainted node
Here is the answer in case someone needs it:There is no API which allows you to create/configure VPN profile. AFAIK if you are in the BES infrastructure it is possible profiles to be created on the server side from administrator and then pushed to clients via Blackberry Push Services. I haven't tried it though!However ...
Is there any way to create a connection to a virtual private network using the BlackBerry APIs?My understanding is that to connect to a VPN on BlackBerry you need to use bes, create a vpn profile, and so on. I am looking for a pure app-driven alternative.Is it possible to do this by using something from theBBOS 5.0 pa...
Connect to VPN from BlackBerry
The DynamoDB Condition Expressions Reference documentation is your friend! In your specific case you can use the contains function to search for a sub-string. Your filter expression might look something like this: "attr1 = :val1 and attr2 = :val2 and (contains(attr3, :val3a) or contains(attr3, :val3b))" /...
Suppose I have a working query such as: ScanRequest scanRequest = new ScanRequest() .withTableName("myTable") .withFilterExpression("attr1 = :val1 and attr2 = :val2") .withExpressionAttributeValues(vm) //contains values for :val1 and :val2 .withLimit(PAGE_SIZE) ...
Using contains filter in DynamoDB scan with Java
Fromhttps://git-scm.com/docs/git-remotegit remote set-url [--push] <name> <newurl> [<oldurl>]so just do e. g.git remote set-url origin <bitbucket url>
I have migrated my repository from Github to Bitbucket. How do I point my local branch from github to bitbucket?
How to migrate from github to bitbucket?
Assuming that thefeature/customerbranch is shared by other people, and that someone else may have already pulled your accidental commit, the best thing to do would be torevertthe commit:# from feature/customer git revert HEADThis will add anewcommit on top of thecustomerbranch which will functionally undo whatever your...
This question already has answers here:Undoing a 'git push'(17 answers)Closed3 years ago.I have manybrancheson my repo. I accidentally pushed to branch namedfeature/customer. Now I want to roll back that push. How can I rollback that push on branchfeature/customerin git?
How to revert back a last push on the git branch? [duplicate]
Angular JS can't use Client Side certificates. Here is why. Client side certificates are used to ensure that the client is one of those limited set of client that have access to the server, hence the access to the client side certificate is limited to certain clients only. Providing it the Angular JS script to any one...
Is it possible for angular js to forward self signed certificates for establishingSSL/HTTPSconnection?We're trying to insert a self signed certificate to establish https connection from a secured server through angularjs https service orXMLHTTPREQUEST, is it possible?
Angular JS SSL client-side authentication
The problem was that I created the token with my repository name in scopes section instead of the word repo.
I created a token like described here - https://help.github.com/articles/git-over-http-using-oauth-token. This was ok. But when I wan to use it like in documentation: git clone https://[email protected]/mylogin/myrepo.git I get: fatal: https://[email protected]/mylogin/myrepo.git/info/refs not found: did you run git ...
Github tokens not working?
ADXGI_FORMAT_R8G8B8A8_UNORMshader is suppose to return afloat4.I really wasn't expecting this. However, if you consider that GPU are designed for 32 bit computations and the display only has 32 bits backing each pixel, it makes to have a built in converter fromfloat4toDXGI_FORMAT_R8G8B8A8.This has also tripped others u...
Edited question:I have aID3D11Texture2DandID3D11UnorderedAccessViewwith formatDXGI_FORMAT_R8G8B8A8_UNORMand shaderRWTexture2d<float4> tex: register(u0); [numthreads(32, 32, 1)] void main(uint3 dtid : sv_dispatchthreadid) { float r; ... tex[dtid.xy] = float4(r, 0.0f, 0.0f, 0.0f); }I assume we must be writin...
Compute Shaders: Why return float4?
2 Are you using Windows? To launch Command Prompt select Start -> Run and type cmd in the box. Then, try typing cf. If that does not work, navigate to where the binary is installed, and try cf again. Share Improve this answer Follow ...
I have installed CF version v6.12.2 , I have installed both Installer and Binaries. It is installed in CloudFoundry directory inside program files, but there is only binary file. I have downloaded and extracted Starter code also. How can i open cf command line interface.
How to open cf command line interface in window
Theproc_macrocrate relies on a couple of features only available to dynamically-linked executables, and sincemuslis anything but that, you cannot useproc_macroonmusl.The issue related to this is here, and Alex describes quite well some of the issues and tradeoffs that'd need to be made to make this crate available on f...
Total rust noob here. Trying to build a sccache binary for linux x64 withRedis: true. I'm starting with an alpine image:FROM rust:alpine3.10 WORKDIR /root RUN apk --no-cache add --update curl RUN curl -L https://github.com/mozilla/sccache/archive/0.2.11.tar.gz \ -o sccache.tar.gz RUN tar xf sccache.tar.gz RU...
Alpine dockerfile: "cannot produce proc-macro...does not support these crate types"
You will need to contact the server in any case, so you might as well pull.If you are on the current branch when you pull, and want to detect whether the current branch has changed, you can always do (note: written in shell)BEFORE=$(git rev-parse HEAD) # git pull here AFTER=$(git rev-parse HEAD) # Changes if $BEFORE is...
I have a server deployed. I am writing a crontab task. It uses a python script that need to check if there is new push into the repository. If it finds a new push, it will pull and update the server code and should restart the server.My problem is how to make the python script know if there is new commit into the repos...
crontab automated git pull
Try increasing the amount of RAM available to VS2010 by using the following link, you can also use it in VS 2012 and it really does makes a difference to performance (especially build times on large projects). Hopefully this will also help you with memory allocation analysis:http://forthosewhomatters.blogspot.co.uk/200...
Running VS2010's .NET Memory Allocation analysis takes ages to complete.The program itself ran for about 3 minutes and generated 35GB of memory allocations. The profiler's output file is about 28GB. The report analysis process took overthree hours(on a dual Xeon with 8GB RAM) to complete.This has happened to me every t...
VS2010 .NET Memory Analysis - extremely slow
stringWithFormat: is a convenience function that returns an autoreleased object. I cannot recomment the Memory Management Guide highly enough. It really is worth reading, probably more than once.
From a related thread, how should I have known the "mailString" below was already autoreleased? // + (void) sendEmail:(NSString *) subject withBody:(NSString *)body { NSString *mailString = [NSString stringWithFormat:@"mailto:?@&subject=%@&body=%@", [subject stringByAddingPercentEscapesUsingEncoding:NSASCIIStr...
Why would this mailString autorelease be redundant?
You may try this in the root .htaccess file ofcurrenthome, below the WP rule-set:Options +FollowSymlinks RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} (?:www\.)?currenthome\.com [NC] RewriteCond %{REQUEST_URI} ^/paper/([^/]+)/? [NC] RewriteRule .* http://www.newhome.com/paper/%1 [R=301,L]Redirects...
I've been searching all over but can't quite find exactly what I'm looking for so here goes.I have quite a large blog and would like to move the posts from a specific category to a new domain and will need the old URL's for just that category redirect to the new domain.For example I have the category 'paper', I plan to...
Redirect posts from a one category to a new URL with .htaccess
I found a way using the aws-sdk. var aws = require('aws-sdk'); var lambda = new aws.Lambda({ region: 'us-west-2' //change to your region }); lambda.invoke({ FunctionName: 'name_of_your_lambda_function', Payload: JSON.stringify(event, null, 2) // pass params }, function(error, data) { if (error) { context....
I have 2 Lambda functions - one that produces a quote and one that turns a quote into an order. I'd like the Order lambda function to call the Quote function to regenerate the quote, rather than just receive it from an untrusted client. I've looked everywhere I can think of - but can't see how I'd go about chaining or...
Can an AWS Lambda function call another
I've already resolved my problem, I had to add: client_max_body_size in the http files: "/etc/nginx/conf.d/proxy.conf" : mode: "000755" owner: root group: root content: | http { client_max_body_size 20M; }
I have problems upload large images in my project, my configuration is with puma and RoR. My user in the elasticbeanstalk is ec2-user. I've tried with many configurations that I saw, but it can't works properly. the file in the .ebextensions is like this one: files: "/etc/nginx/conf.d/proxy.conf" : mode: "000777...
How to resolve error 413 Request Entity Too Large in Nginx and Amazon ElasticBeanstalk?
SDWebImage does some caching by default, so it would be better to use a new URL if the image changes. So, for instance, if you have control over the URL and can change it every time the image has changed, you could do that. If that's not the case, try using SDWebImageRefreshCached in the options field in order to resp...
I am using SDWebImage library to download images from server. https://github.com/rs/SDWebImage SDWebImage not able update the cached image when image updated on server with the same url.
How to update image in cache when image changed on server with SDWebImage
Thanksalexfor helping me out to solve this problem.Here is the solutionDjango app dir- /home/ubuntu/djangoWordpress dir- /var/www/html/blogNGINX Conf fileserver { listen 80 default_server; listen [::]:80 default_server ipv6only=on; server_name example.com; location / { proxy_pass http://127...
I have tried many ways but do not know how to runDjango on example.comandwordpress on example.com/blogThe following running project directory structure for Django and Wordpress.Django app dir- /home/ubuntu/djangoDjango app running successfully on- example.com:8000Wordpress dir- /var/www/html/blogWordpress running succ...
How to run django and wordpress on NGINX server using same domain?
You basically need to print the config prior (The one that contains theInitConfigurationand theClusterConfiguration:$ kubeadm config print-default > cluster.yamlThen:$ kubeadm alpha phase kubelet config write-to-disk --config=cluster.yaml
I'm trying to get kubelet config.yaml file on my broken production cluster with no luck. The command I am using is:kubeadm alpha phase kubelet config write-to-disk --config=/var/lib/kubelet/config.yamlThis returns the following error:no InitConfiguration or ClusterConfiguration kind was found in the YAML fileCould some...
Unable to get kubelet config by alpha phase
<div class="s-prose js-post-body" itemprop="text"> <p>Not all PHP ini directives can be changed at runtime (via ini_set). See <a href="http://www.php.net/manual/en/ini.core.php#ini.sect.file-uploads" rel="nofollow">the file uploads section</a> of the PHP manual and the <a href="http://www.php.net/manual/en/configuratio...
<div class="s-prose js-post-body" itemprop="text"> <p>I am using nginx as web server and when I do phpinfo(); it uses /etc/php5/fpm/php.ini</p> <p>Now in my php code I am trying to set file upload size and max file uploads using following code.</p> <pre><code>ini_set('max_file_uploads', "50"); ini_set('upload_max_...
How to/can not set php.ini values in run time using ini_set() method?
This may not be the most elegant but it worked.Use GitLens in VS Code to find the oldest commit that isn't mine and do a hard reset to that.In the terminal pane,git push --force. Refreshing the github page it now says I'm two commits behind origin (the repo I forked). I'm rid of the unwanted commits. Now to work forwar...
I have a fork of microsoft/vscode-arduino on github. Some time ago I submitted a PR that was accepted. Time passed and now I want to do some more work.At the time my use of git and github weren't very sophisticated and I rather foolishly did all the work on master.On my local repo I pulled from upstream master, merged ...
Rebase master to upstream
This behaviour is not idempotent and is usually a recipe for trouble. What happens if the machine breaks down or the process is killed during the write stage? What happens if a rule is accidentally ran twice?As advised by @Cornelius Roemer in the comment to the question, the safer way is to write to a new file. If the ...
I am building a snakmake pipeline, in the final rule i have an existing files that i want the snakefile to append to:Here is the rule:rule Amend: input: Genome_stats = expand("global_temp_workspace/result/{sample}.Genome.stats.tsv", sample= sampleID), GenomeSNV = expand("global_temp_workspace/resul...
How can I make snakefile rule append the results to the input file of the rule file?
Python is expecting three values to unpack from list, but only one is unpacked.You need tozip()through list. Try replacing to thisforloop:for time, app, avg in zip(result[::3], result[1::3], result[2::3]):Thiszips through adjacent three elements of list simultaneously.
Working on a python list. Below is sampleresult=[{'time': '00:00'}, {'app': 'dgn'}, {'avg': '7717'}, {'time': '00:00'}, {'app': 'pds'}, {'avg': '75.40223463687151'}]I'm creating a gauge metric from above data. Tried the following to yield metric from above data:class EventMetricCollector(object): def avg_response_time_...
creating a gauze metric from a python list
just use .htaccess file Put the following line into your .htaccess file Options -Indexes
I have Apache+Nginx Hybrid server setup running a website with php/mysql backend. And for security reasons, I am trying to restrict access to my website's internal folders/directories like css, Js and other included php files from direct access of users. For example if user types https://mywebsite.com/css or https://m...
How to forbid direct access to website directories in browser url, but allow when website requests them internally?
0 Yes, you can do this with dd. I would probably do it like this: # dd if=/dev/sda2 of=/media/usb/debian-backup.img where /media/usb/ is the mount point of your external hard drive. If you don't resize any of your partitions when doing the reinstall, you won't need to touc...
I want to re-install my Debian install, for various reasons. Before doing this, I would like to backup my Debian partition, if something goes wrong(highly unlikely). I have backupped entire disks before, but not single partitions. My partition layout: sda 8:0 0 232,9G 0 disk ├─sda1 8:1 0 35G 0 part...
Debian install: backup partition
Try following this article:https://www.itexperience.net/2019/04/20/the-account-being-accessed-does-not-support-http-with-blob-sas-url-in-azure/Go to your Storage Account (top level) in AzureGo to Settings – ConfigurationSet “Secure transfer required” to “Disabled“Click SaveRetry to access the URL. The file can now be a...
I recently went through the process of building a static website and hosting it on Azure Blob Storage and configuring a custom domain name and https with CDN. I followed all the steps on learn.microsoft.com and configured the DNS in Azure, using Premium Verizon CDN. Everything seems to be working, but I am seeing some ...
Odd behavior with Static Site hosted in Azure Blob Storage using Custom Domain with CDN
15 Depends what you are trying to do, but this should be enough: double[] d = new double[Integer.MAX_VALUE]; Share Follow answered Apr 5, 2012 at 19:40 Helmuth M.Helmuth M. 54122 silver badg...
I need to create an out of memory instance on purpose for testing purposes. Does anyone know the fastest way to do this?
Java Create Out of Memory Instance
1 This is possible by specifying the ?size parameter and checking if the returned image's resolution is greater than what was specified. This is because the ?size parameter is only supported on non-default profile pictures. For example: A default profile photo has a size gr...
When a GitHub user signs up for an account, GitHub provides a default profile picture that looks something like this: The user can set a custom profile picture based on instructions here. The way I can think of is to download the current profile picture from the GitHub user, then download his default profile picture ...
How to programmatically determine if a GitHub account uses the default profile picture (avatar)?
You can also remotely debug part of your Sonar plugin running on batch side if you executesonar-runnerwith the following java options-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000but indeed there is no way to do hot deployment.
General question that I cannot seem to get an answer for from the SonarQube confluence page.I am looking to write a plugin for Sonar, but am unable to effectively setup my environment in an effective manner. I am able to connect a debugger to a Sonar server instance (by enabling the debug line in the wrapper config fil...
Writing/Debugging Sonar plugin with hot deploy
I got it working! I entered a second line in the CAA record of "foo.com"0 issue "letsencrypt.org"I'm not sure if that is the right thing to do but it works.
I have a public hosted zone at AWS Route 53. Just for the simplicity let's call the domain "foo.com". Which I bought a certificate for from Comodo.I have a CNAME type record for the subdomain "bar.foo.com". In order to renew the Let’s Encrypt certificate for the "bar.foo.com subdomain I need to add a CAA record.I'm ge...
Can't create CAA record for subdomain on AWS Route 53
I've did some test but I am afraid it is not possible. As perdocsAPI supports two types of selectors:Equality-basedSet-basedkubecltallows to use operators like=,==and!=. So it works when you are using$ kubectl get pods --selector property1=dev,property2!=admin.Configuration which you want to apply would work inset-base...
I am trying to create a service for a set of pods based on certain selectors. For example, the belowget podscommand retrieves the right pods for my requirement -kubectl get pods --selector property1=dev,property2!=adminBelow is the extract of the service definition yaml where I am attempting to using the same selectors...
How to specify not equal selector in kubernetes service definition yaml?
The solution is to use a headless service. For example, we can deploy a headless service calledmyservice-discovery. Because the service is headless, it does not do any load-balancing or get a cluster ip address. To get the ip addresses of the pods, you then query the DNS server formyservice-discovery.myclusterto get a ...
I have an application that uses raft to elect a leader out of multiple instances. These instances use the gossip protocol, so it just needs to know another instance to discover the rest.I plan to run each instance as a kubernetes pod, with replication manage by a replication controller. I will also put a service in fro...
How can pods within a kubernetes replica set discover and talk to each other without the kubernetes API?
SolutionIt's doable, but you need to wrap 2 @Cachable annotations in a @Caching annotation.@Caching( cacheable = { @Cacheable(cacheNames = "cache_name_", key = "#name + '_' + #id", condition = "#id != null"), @Cacheable(cacheNames = "cache_name_", key = "#name", condition = "#id == null") ...
I am trying to create a cache key with multiple parameter values.@Cacheable(cacheNames = "cache_name_", key = "#name + '_' + #id") private JSONObject getData(String name, String id) throws Exception {From the above scenario, I name is a mandatory field while id is optional. I want to create key in such a way that,If na...
How to create multiple cache key in @Cacheable when parameter value is null
Are you sure that you have set properly admin folder'sAllowOverridedirective? You can set that in your site's configuration file.
Hi I have an admin folder that has pretty much the same custom system as my root folder so I needhtaccessto make the URL's look nice so in root I have:example.com/homeand admin should beexample.com/admin/home. My root'shtaccessisOptions +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{...
htaccess not working in subdirectory
I looked at the code, you need to update the Update API in the client.go file with the following code:func (f *crdclient) Update(obj *crd.Example) (*crd.Example, error) { var result crd.Example err := f.cl.Put(). Namespace(f.ns).Resource(f.plural). Name(obj.Name). Body(obj).Do().Into(&re...
result, err := crdclient.Create(example) if err == nil { fmt.Printf("CREATED: %#v\n", result) } else if apierrors.IsAlreadyExists(err) { fmt.Printf("ALREADY EXISTS: %#v\n", result) } else { panic(err) } // List all Example objects items, err := crdclient.List(meta_v1.ListOptions{}) if err != nil { pani...
Kubernetes API CRD Update
What is very strange that host is empty. PhpStorm requires this field to be filled as it uses this to recognize what server entry (and therefore path mappings) to use -- IDE supports debugging the same code base running on different domains / remote servers. In this particular case the servername field / parameter o...
Setup: Windows 10; Docker running with Boot2Docker on Hyper-V; PHPStorm 9 Webserver on the VM is Nginx. I've configured the xdebug.ini for php5-fpm as: zend_extension=xdebug.so xdebug.remote_enable=on xdebug.remote_port=9000 xdebug.remote_connect_back=On xdebug.remote_handler=dbgp xdebug.profiler_enable=0 If I set a ...
Xdebug with PHPStorm and a Docker container
3 I actually asked the github team and they informed that it was an issue from their side. Is now working. So something just waiting helps. Thanks everyone, Umberto Share Follow answered Oct 18, 20...
I am facing a very strange issue, and I hope someone can help me. I am working with Jupyter notebooks in Python. The notebooks works fine locally and were rendering perfectly on github until last week. Suddently it seems I cannot see most of the notebooks on github anymore. I always get hte error "Something went wrong...
github not rendering jupyter notebook python
The short answer here is that there is not a generic method for securing the contents of your containers without encrypting the contents.Since the nature of Docker is open, the main security with Docker images is controlling who can access the image (e.g. private image hosting), which depends on the security of your me...
I was wondering if there are any generic procedures to secure content of docker containers to extracting sensible source code.At the moment, I secure my Python application naively by encrypting and decrypting sources based on a licenses.Is there any solution that is independent from the content of the docker container?...
How to encrypt docker containers securely?
You can use isFork: false to exclude fork. In the explorer : { user(login: "furknyavuz") { repositories(first: 50, isFork: false) { nodes { name url } } } } With curl : curl -H "Authorization: bearer token" -d ' { "query": "query { user(login: \"furknyavuz\") { repositori...
I'm trying to get repositories of user with login name "somelogin". It returns all repositories but I'm trying to get repositories owned by him only. Because new API uses GraphQL I couldn't did it. Currently I'm using: { "query": "query { user(login:\"furknyavuz\") {repositories(first: 50) { nodes { name url }}}}" ...
Github GraphQL API: How can I gather specific user's repositories?
Checkout K3s : Lightweight Kubernetes. Easy to install, half the memory, all in a binary less than 50mb.Referhttps://rancher.com/docs/k3s/latest/en/
I want to use tool running k8s in single node for devlopment. But without using VM. I could find tools using vm. But I could not find tools without vm. Microk8s is only tool satisfing my condition.Is there any other options?Not using vmRunning k8s locally (single node)Thank you.
Options for running k8s in local system without vm (single node)
When you create a file in a git repository, by default, it isn't covered by the git tracking. You need to rungit add [FILEPATH]to add it to the list of tracked files. Before you do this, any files like these will appear asuntracked.After this step is completed, the files will show up as beingmodifiedornew filedepending...
My question is about my folders being classified asmodified contentanduntracked contentwhen I use the Terminal on Mac to commit it to Github. I have used Visual Studio Code to edit/create all the files in the folders.This is the message I get in Terminal when I try to commit the files:Changes not staged for commit: mod...
"Modified content" and "Untracked content"
It's neither component.This isn't anything from AWS... it's the browser. It's aninternalredirect the browser is generating, related to HSTS...HTTP Strict Transport Security.If you aren't doing it now, then presumably, in the past, you've generated aStrict-Transport-Security:header in responses from this domain, and th...
I have a domain from GoDaddy, with AWS Route53 for managing DNS records. Route53 sends request to a load-balancer.For webserver I have a load-balancer that routes requests to a single (for now) EC2 instance and the nginx in EC2 instance get the request and sends a response to the client.The problem is that when I useht...
Amazon AWS 307 response and permanent redirect to HTTPS