Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
Currently, Cloud Endpoints doesn't support WebSockets at all. Btw, what is your use case for WebSockets? WebSocket won't work with gRPC either. If you just want to talk to your gRPC service from Web UI, transcoding should work. It works with JWT from Firebase auth.
I've been developing a mobile app (iOS) with gRPC via Firebase auth(z). My server is using GKE with the NGinx proxy - so now I'm developing the Web UI for the deeper configuration of a user account. I prefer not to fall back to REST API's, so I was wondering if Google Cloud Endpoints supports websockets, and would it ...
Google Cloud Endpoints: Websockets and JWT
No, there is not.You get get user information given the user name by callingAdminGetUserfrom you backend with your developer credentials but not from an Android client.
Is there any way to get information about the user in AWS Cognito pool (on android) who is not logged in, knowing his ID? I tried that code:AppHelper.getPool().getUser(username).getDetailsInBackground(detailsHandler);However it works only for username who is currently logged in.
AWS Cognito- get user information with ID
Based onthis gistit looks like you can add the files you need.
I have a very simple PHP app that is hosted on Heroku (Cedar Stack). I want to turn on basic authentication but I don't know if it is possible. It doesn't look like it supports .htaccess / .htpasswd but I could be wrong. How can I turn on basic auth?
How can I turn on basic authentication on a Heroku PHP app?
14 Most contribution data can be fetched using Github GraphQL API - https://developer.github.com/v4/ I was using this method for doing a widget that shows the last user contributions list. And it works well and offers many of filtering/grouping opportunities a.e you can get...
I've been poking through the GitHub API documentation and I can't seem to find a way to get the data that powers the "Contribution Activity" section and the contribution chart for a user's profile. Is there a way to get this through the API? I know that there are user/:user/events and /recieved_events endpoints, but t...
Get user activity statistics from GitHub API
2 The error for the different histories comes from your local repo and the remote (on GitHub) not having the same commit history. If you initialized a different repo, you may want to just clone the repo from GitHub and then redo any changes locally on top of the new clone....
After my commit, I try to push to Github repo: PS C:\Users\Kevin\Documents\Projects> git push origin master To https://github.com/name/first-project.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://github.com/name/first-project. hint: Updates were rejected becaus...
Git is rejecting push, also unable to pull because of unrelated histories
If you are usingrbenv, you need to create a wrapper for cron, for example as describedhere.Most likely what's happening is you've got 2 ruby interpreters on your computer: the one that's managed byrbenv, which you use for development and to run the script on the console; and then you've got your system ruby, which is m...
Im trying to run this cron49 15 * * * ruby /Users/nikosalt/Desktop/playing/twilio_send_text.rbon my ruby script twilio_send_text.rb which looks like this:require 'rubygems' require 'twilio-ruby' account_sid = 'AC5179a0c973e8a059da8676877887f65' auth_token = 'my twilio auth token' client = Twilio::REST::Client.new acc...
Cant get Cron to work on this Ruby Script
Joomla Docs has a fairly decent step by step checklist for recovering from hacks:http://docs.joomla.org/Security_Checklist/You_have_been_hacked_or_defaced
my Joomla site has been infected with some virus, I managed to take it out but I'm afraid of that the attacker might have left a backdoor inside my server. I'm willing to take everything out of my site and re-install everything. Is there a way I could do it quickly? How can I save the db and configs? thanks a lot
How can I upload my joomla from scratch while keeping everything in place
I hope I've understood your question correctly - but you only want the authentication to work if the user directs from a specific domain.To do this you can use anif directive.So, ifuser xcomes from the domainsomedomain.com/wp-loginthen it will show the authentication, if they do not, then it will not show it.<if "%{HTT...
This is my cpanel directory structure:public_html |--->wordpress installed sudomain-directory |--->wordpress installed addon-domain |--->wordpress installedWhat I have done:Based on user choice thepasswdand.htaccessfile will be created to respective domains insidewp-admindirectory.htaccess fileauthname "m...
how to make the .htaccess rule work for specified domain ,subdomain or addons
You can go the Prometheus route. Usethislink to get started, which would fairly quickly set you up with the ability to monitor RabbitMQ w/ Prometheus. You can useAlertManagerto setup alerts on failed processes and top that with automations to make sure you have service continuity. HTH.
We have a number of rabbitmq consumers running. And I want to make sure that every one of those processes is working.What are the best industry applied approaches for that? We are considering using prometheus for that, is that the right direction?
Monitoring that process runs and active?
It is better to useRewriteMapfor your requirement. Here is an example how to use it:Add following line to yourhttpd.conffile:RewriteMap prodMap txt://path/to/prodMap.txtCreate a text file as/path/to/prodMap.txtlike this:somename nicecar blabla newprosAdd these line in your .htaccess file underDOCUMENT_ROOT:Options +Fol...
I am redesigning my store and so the old structure has been changed with the new structure. So trying to redirect all old products with the new.I have more than 20-25 products and if I write redirect rule for every product than I have to write in this wayRedirect 301 /store/products/somename/ http://store.domain.com/ni...
Multiple 301 Redirect For Multiple Pages or URL
You're dealing with Quality Profiles, soapi/qualityprofilesto the rescue !api/qualityprofiles/add_project(documented here):Associate a project with a quality profileNote that your question mentions:default quality profile for projectThere is no such thing as adefaultQuality Profile for a project. A project has one and ...
I can not deal with changes in the project properties. I need to set default quality profile for project.I use query:curl -X POST -u 'admin:admin' -d 'resource=somedomain:aem' -d 'id=sonar.profile.java' -d 'value=java-sonar-way-aem-rules-22238' 'http://localhost:9000/sonar/api/properties'It does nothing and outputs:{"e...
Sonar 5.3 set quality profile for project via api
value: {{$value}} must be value: "{{$value}}"
prometheus, version 2.7.2 (branch: HEAD, revision: 82f98c8)build user: root@ab86c672c33abuild date: 20190302-14:57:04go version:go1.11.5All program in docker.prometheus.yml# my global config global: scrape_interval: 10s # Set the scrape interval to every 15 seconds. Default is every 1 minute. evaluation_interva...
prometheus can't load rule_files
The short answer that directly addresses your question, in your nginx config, add lines like this: proxy_set_header X-My-Custom-Param-1 $whatever_variable_you_want_to_pass; And to read that in your express route handler function, req.get('X-My-Custom-Param-1'); However, if you explain the larger problem you are tryi...
I would like to pass certain parameters to nodejs over nginx. While I still used fastcgi, I could do that this way: fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_script_name; And now I'm basically searching the exact same functionality, f...
nginx to node.js - pass params
2 In 2022 the simplest way to achieve this task is using AWS Database Migration Services (AWS DMS). You can create a migration task, and set the original database as the source endpoint, and the new database as a destination endpoint. Next create a task with "Full load, o...
We have our web services and database set up on AWS a while back and application is now in production. For some reason, we need to terminate the old AWS and move everything under a newly created AWS account. Application and all the infrastructure are pretty straightforward. It is trickier for data though. The current ...
How do I move data from RDS of one AWS account to another account
In thequeryparameter you can use the same format asGithub search, filter language withlanguage:LANGUAGE:{ search(query: "language:java", type: REPOSITORY, first: 10) { repositoryCount edges { node { ... on Repository { nameWithOwner } } } } }
I'm trying to use GitHub's GraphQL API to find a list of repos matching a query but limited to a specific language. However I can't find anything in the docs relating to the language filter the typical online search supports or how something like this is typically done with GraphQL.{ search(query: "query", type: REPO...
GitHub GraphQL search limited to language
Assume your fork is located atgit://github.com/lulalala/foo.gitand the upstream repo is atgit://github.com/someuser/foo.git.First you need to add their repository as a remote.git remote add upstream git://github.com/someuser/foo.gitNow that you have added their repository you can fetch their branches.git fetch upstream...
I just started to use Github, and practiced it locally on my PC. I then found a Github project and start fixing its bugs.I forked the project and downloaded it to my PCI opened a branch. Start fixing on that branch.I pushed the patch branch back to GithubSwitch to that branch on Github and sent the pull request to deve...
What if I want to work on a different bug after another patch being accepted
You may not have pushed the update to the tag reference. So github has the merge commit, but did not update the tag location.Use the same convention as branches:git push origin v1.0.0Tags don't refer to branches, only commit references.
So I have a project with two branches:masterandstable.masteris where feature and bug branches are split from and merged into. Themasterbranch is merged intostablefor every release. I'm trying to followthisworkflow. So I just released a new version, mergedmasterintostableand tagged the merge commit. Locally,git loglooks...
GitHub tags shown on wrong commit
Its easier to run the training again on SageMaker. Otherwise, here are the steps that you would have to do.Take the checkpoint file generated during the training and convert them into tensorflow serving models.Zip them in a specific format and upload to S3Then create estimator as you have done above and do the inferen...
I have a the following challenge with SageMaker:I've downloaded one of the tutorial notebooks (https://github.com/awslabs/amazon-sagemaker-examples/blob/master/sagemaker-python-sdk/tensorflow_abalone_age_predictor_using_keras/tensorflow_abalone_age_predictor_using_keras.ipynb)I ran the training locally (successfully) w...
AWS SageMaker - training locally but deploying to AWS?
if you want to obtain "/7eb17cc6-b3c9-4ebd-945b-c0e0656a33f0/output/9999.317528060546245771146821638997525068657/" from "/tmp/xjtscpdownload/7eb17cc6-b3c9-4ebd-945b-c0e0656a33f0/output/9999.317528060546245771146821638997525068657/" or let's say 7eb17cc6-b3c9-4ebd-945b-c0e0656a33f0, output and 9999.31752806054624577...
I have a main string as below "/tmp/xjtscpdownload/7eb17cc6-b3c9-4ebd-945b-c0e0656a33f0/output/9999.317528060546245771146821638997525068657/" From the main string i need to extract a substring starting from the uuid part "/7eb17cc6-b3c9-4ebd-945b-c0e0656a33f0/output/9999.317528060546245771146821638997525068657/" I tr...
How to extract a substring from main string starting from valid uuid using lua
"binary" is not a file format. You need to find out what format it is, then, if necessary convert the certificate and key file to PEM (the file you have been supplied with may contain both).You didn't say what OS you are using. On Linux/Unixfile your.crtshould tell you what the current file format is and the openssl co...
I installed some certificates in apache with no worries, but now I've been given a binary crt file to install it in nginx. I am more fond of apache so I tried there before. There is no way I can load it using SSLCertificateFile and SSLCertificateKeyFile.I was guessing the file was wrong and I needed the ascii files I a...
Installing binary crt in nginx
3 If you look at your Jitpack dashboard, you can see that all of your builds have failed: https://jitpack.io/#ludev-studio/colorpicker-android Fix the errors in the logs, and then your library will be resolved correctly. Share Improve this answer ...
I had created a library for android, pushed it to gitub, and build it with Jitpack. Now, my problem is, that Gradle cannot resolve my dependency (failed to resolve com.github.[…]) I tried to import the default android project from jitpack - it works. So my question is, what is wrong with my lib? https://www.github.c...
Gradle cannot resolve github dependency
If you want to cache an action, based on all the query parameters (or say on nearly all of them), you can do: caches_action :my_action, :cache_path => Proc.new { |c| c.params } Or, maybe you want all but some params that you just use for Analytics (but that have no bearing on the records you're fetching): caches_acti...
How can I cache my REST controller with Rails where my actions have query string parameters? Example: GET /products/all.xml?max_price=200 Thx!
Rails action caching with querystring parameters
If you are talking aboutConcurrent executionsthere isn't a limit of 100. The limitdepends on the regionbut by default it's 1000Concurrent executions.To answer your question: As soon as theConcurrent executionslimit is reached the next execution gets throttled. Each throttled invocation increases the Amazon CloudWatchTh...
Lambda has a 100 function limit.What happens when you submit a 101 function when 100 are already running?Will it:fail with an errorqueue up
AWS Lambda > what happens when reach concurrent limit
As pointed out inthe docs, the minimum size for SSD is20Gi, so I'd suggest to changestorage: 64Mitostorage: 20Gito fix it.
I am trying to create a Dynamic storage volume on Kubernetes in Ali cloud. First I have created a storage class.kind: StorageClass apiVersion: storage.k8s.io/v1beta1 metadata: name: alicloud-pv-class provisioner: alicloud/disk parameters: type: cloud_ssd regionid: cn-beijing zoneid: cn-beijing-bThen, tried cre...
PersistentVolumeClaim fails to create on Alicloud Kubernetes
if you followed the instructions given in heroku documentation, you'll see a lineconst s3Params = { Bucket: S3_BUCKET, Key: fileName, Expires: 60, ContentType: fileType, ACL: 'public-read'};As you can see inthis aws documentaion,the Expires metadata means that the number of seconds to expire the pre-signed URL operatio...
I am following this tutorial :https://devcenter.heroku.com/articles/s3-upload-nodeto upload files to Amazon s3 using NodeJS and Jquery. It works fine for small images and files. However it gives a XHR Connection RESET Error.My CORS Configuration looks exactly like this:<?xml version="1.0" encoding="UTF-8"?> <CORSConfig...
ERR_CONNECTION_RESET Error when uploading large files to Amazon S3
I changed it to clone the repository when the java application starts, after that I created a seperate thread that pulls new commits from the repository every 30 seconds and checks if something has changed with the 'FetchResult' returned from the Java method.These helped me:Cloning a repoPulling commits
I want to create a Java application that monitors a GitHub repository, pulls changes to the machine it is running on and triggers a method when something in the repo has changed.while(true) { if(new commits on the remote github repo) { pullChanges(); doSomething(); } }I am currently usingJGi...
Java monitor GitHub repository
maybe your .env file is wrong DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=birdboard DB_USERNAME=pedro DB_PASSWORD=123456
i know there are tons of answer for question like these, but i still not able to connect. I have a local clean installation of laravel 8 and a docker container running mysql. I am able to access the container and manage it, but when run migrate got "SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: ...
How to setup local laravel with containered mysql service
CodePipeline doesn't support running shell in an action, but you may want to use CodeBuild, which can execute shell command to build or just update a file.http://docs.aws.amazon.com/codebuild/latest/userguide/sample-elastic-beanstalk.html#sample-elastic-beanstalk-codepipelineTo set environment variables in ElasticBeans...
I have a PHPproject hosted in Github and Im trying to setup a Continuous Integration using AWS Codepipeline and ElasticBeanstalk.So far, Im able to get the repository contents from github and deploy it to ElasticBeanstalk. But I need to run a shell script before the deployment that will update a config.json file and al...
How to run a shell script in AWS Codepipeline?
You need to assign an Elastic IP to your instance and use that IP to configure the DNS A-record. An Elastic IP is the EC2 equivalent of a static IP. I don't think there is any additional cost to it as long as you don't leave an Elastic IP unassigned. Once you have your Elastic IP, you can use the DNS tool of your doma...
Hi I am new to AWS world. 1) I have domain name bought and registred by some third party (not amazon), where I set DNS values 2) I have EC2 micro instance and in panel I can find Public DNS, and Public IP 3) I have also route53 service with A record binding to IP from 2). I copied dns values from Delegation Set in rou...
do I need route53 to bind domain to ec2?
More context would be required to answer this question. But let me tell you my perspective here:I would use theELKframework here instead of Mongo, asSearch/Aggregationis way faster inElastic Searchthan inMongoDB.Note:The statement above is based on my experience with bothElastic&MongoDbby running aggregation over a dat...
We want to monitor service response times by storing the startime , endtime, user , server node and in case if the service failed, then the exception details also needs to be stored .We do not want to go for an expensive relational DB to store this data . If we go for JSON structure like below , would MongoDB be a good...
Regarding transaction monitoring
Well, I finally find a way to achieve what I wanted.The way to go is to create a GAE flexible, thus, I can find underInstancesmy diffent VM which have an IP and add them to my GCE (where is my MongoDB) firewall rules.What I understand of it, but maybe I'm wrong, is in flexible environement, application of GAE is deploy...
My post has been considered as a duplicate, but this is not... This questionHow to access mongodb on GCE with GAEdoes not answer to how can I edit firewall rules of GCE for an GAE application. It mentioned only about how can how to get te URI to set on an app running on GAE.This is not my issue. I'd like to make a fire...
Add firewall rules on GCE for an application deployed on GAE
You will get that error if$secretexists, but doesn't containstringData.At a Helm level, you can work around this by using thedefaultfunction to force it to exist ("doesn't havestringData" and "doesn't haveuser" are approximately the same error):{{- $secret := lookup "v1" "Secret" .Release.Namespace "secret" | default d...
I need to create template for secret value.This is the secret file:apiVersion: v1 kind: Secret metadata: name: secret type: Opaque stringData: "user": "user" "password": "password"And this is what I have created in the _helpers.tpl{{/* User */}} {{- define "@@chartName@@.user" -}} {{- $secret := lookup "v1" "...
How to create template in the helm chart?
Just change the last line:RewriteRule ^(.*) http://m.%1/$1 [L]
I've inserted code on .htaccess file for mobile redirect:RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} !^.*[^/]$ RewriteCond %{REQUEST_URI} !^.*//.*$ RewriteCond %{REQUEST_METHOD} !POST RewriteCond %{QUERY_STRING} !.*=.* RewriteCond %{HTTP:X-WAP-PROFILE} !^$ [OR] RewriteCond %{HTTP:PROFILE} !^$ [OR] Rewrite...
.htaccess mobile redirect not working with all files of my website
I believe you need to recurse on the submodules when you are cloning.git clone --recurse-submodules https://github.com/myAccount/ProjACheck out the docs for it here:https://git-scm.com/book/en/v2/Git-Tools-Submodules
This question already has answers here:How do I "git clone" a repo, including its submodules?(22 answers)Closed4 years ago.I have a project with the following structure:ProjA Controllers Models Subprojects /SubProject1 /SubProject1I want to make it so that when someone clonesProjAthat it brings down the git r...
How to add a git repository that is a subdirectory of an existing repository? [duplicate]
Unfortunately, Quay.io does not currently support parsing of build arguments to build nodes. There's no mechanism to do so.
I have set up a private repo in quay.io Also, set up a build trigger which is working as expected. The only problem I'm facing is with the build argument. My Dockerfile requires a build argument and that's the reason why currently the build is failing in quay.io. So is there any way I can set build argument in quay.io...
Build argument in quay.io
This seems to be the only current provider of Fedora 32-bit docker images: https://hub.docker.com/r/nickcis/fedora-32 There is a link to a github page there that contains instructions for how to build your own images for 32-bit Fedora >= 24.
The host is Fedora 24 i686 version, kernel version is 4.6.3-300.fc24.i686. Also installed docker. When following the fedora getting started with docker wiki the docker run command failed with errors: $ sudo docker run -i -t fedora /bin/bash Unable to find image 'fedora:latest' locally Trying to pull repository docker...
fedora 24 run docker 32-bit image
As @Leifingson and @Tim mentioned, this behaviour depends on stuff done before. To illustrate memory consumption I'll use following example: Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> a = {} >>> for k in ...
I've just got following output in python console using Windows 7 64-bit and Python 2.7 32-bit: >>> a = {} >>> for k in xrange(1000000): a[k] = k ... Traceback (most recent call last): File "<stdin>", line 1, in <module> MemoryError >>> len(a) 21846 >>> a[21846] Traceback (most recent call last): File "<stdin>", li...
How many elements may python dictionary hold?
Dynos are restarted (cycled) at least every 24 hours, if you restart manually (withherokuCLI for example) will reset the 24 hour period.You could consider restarting you app every X hours to try to manage that, however you must consider:Dynos can be restarted randomly by Heroku (after a platform error)upon restart your...
I have anode.jsapp hosted onHeroku. I am paying the $7 a month hosting for the better plan which has me running with the next tier dynos and SSL. My problem is, I have acronjobrunning in my app that runs every minute. It is VERY important this runs every minute and pretty much never misses. However, it happens to not r...
how to stop heroku from restarting dynos
4 I was curious of this as well and went into the kernel implementation of tf.slice. The only time memory is not allocated is when the slice is the identity slice (so there are no changes), and when the slice is dimension 0 aligned. Identity Lines if (is_identity) { V...
Does b = tf.slice(a, [...], [...]) allocate a new memory buffer and then copy from a's buffer? or do a and b share the same buffer? And, what about ... = tf.nn.convolution(tf.slice(a, [...], [...]), ...) In this case, the slice is not being named. Does this incur an allocation and copy? In general, is there some r...
does tensorflow tf.slice incur allocation and/or memory copy?
Just reset your branch to previous commit:git reset --hard HEAD~Cherry-picked commit will remain there but it won't be visible because no branch or tag will point to it.Eventually it will be removed by git garbage collector.ShareFolloweditedOct 25, 2016 at 15:57answeredOct 25, 2016 at 15:52PaulPaul13.2k33 gold badges42...
I am on master branch, I use cherry-pick merged one commit from another branch:On master branch, I cherry-pick the commit by:git cherry-pick -x e89d1There was no conflicts after cherry-pick. There was no other commits in master branch after this cherry-pick.Now, I want toundothat cherry-pick, what is the correct way to...
undo cherry-pick in master branch
As described in the following article, worked for me in a Windows Server 2019 environment running Docker client and server version 20.10.7.https://www.ntweekly.com/2019/09/20/how-to-change-docker-storage-data-folder-on-windows-server-2016/Stop the docker servicestop-service dockerEdit following file, create it if not a...
I have pulled few windows images from docker hub which are stored in my C-Drive by default. (C:\ProgramData\Docker)Please explain how I can move those to a different drive like D.
Move docker images directory out of C drive on windows
It doesn't matter, if your project is a private fork, or not. Forks are just repositories -- private, or not.What you would typically do is, you'll create a fork and then in it, you'll work on feature branches bases off it'smaster. You will then push your branch to your fork and create a pull request against the upstre...
I want to create a private fork of a public repository and keep it up to date with the commits in the public one.I tried to create a fork of the public repository. After that I was not able to make it private and found out that I will have to clone it.The advice I found online was in regards to a public fork so I decid...
How to sync a private fork?
%{HTTP_HOST}only contains the hostname, not theREQUEST_URI, so you can't test for the presence ofmyprojectin there.I guess something like this would suffice:Options +FollowSymLinks -MultiViews RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^myproject/...
maybe someone can help. I try to redirect:www.example.com/myprojecttowww.example.com/projects/myprojectbut i want that the original url keeping.My current file tree:"/" webspace root"/sites" this directory will called by typing www.example.com"/sites/projects/myproject" in this folder i want to redirect the user if the...
Redirect (htaccess) example.com/myproject to another subfolder but keep original url
You have two options:Node Affinity: property of Pods which attract them to set of nodes.Taints & Toleration: Taints are opposite of Node Affinity, they allow node to repel set of Pods.Using Node AffinityYou need to label your nodes:kubectl label nodes node1 mylabel=specialpodsThen when you launch Pods specify theaffini...
I want one of my node only accepts some kind of pods. So I wonder, is there a way to make one node only accept those pods with some specific labels?
In k8s, how to let the nodes choose by itself what kind of pods they would accept
Since this behavior does not seem configurable, I wouldmove those files in a custom folder (outside ~/.gnupg, and reference it with theGNUPGHOMEenvironment variablewrite a remote VSCode starter script which would launch VSCode after a localexport GNUPGHOME=""That way, VSCode would search for gnupg files to share in the...
The following paragraph in the official docs describes how to enable GPG key sharing (from localhost to Remote Container) in VSCode (https://code.visualstudio.com/docs/remote/containers#_sharing-gpg-keys).The instructions (for Linux) simply state that to share GPG keys, installgnupg2locally and in the container. But wh...
Prevent GPG key sharing in VSCode Remote Container
I think you got the allow and deny the wrong way around:order allow,deny allow from 192.168.1.7 deny from allwhich first processes all the allow statements and next the deny statements.
i want to protect some folders from a normal user but i (from localhost or my IP address) m unable to see the folder structure...so i do thiswrite a.htaccessfile in that folder(eg.project/cms/js) and write below code# no nasty crackers in here! order deny,allow deny from all allow from 192.168.1.7but by using this proh...
protect folders via htaccess
I believe that correct URL will look like : scm:integrity|myuser@mkssvr1:7001|#/SonarScm/TestCode
According to to the SCM Activity plugin info from the Sonar Webiste (http://docs.codehaus.org/display/SONAR/SCM+Activity+Plugin), a connection to MKS should be possible. On the Maven site, MKS provider code also exists.However, when I run mvn sonar:sonar in my command line, I get the error:[ERROR] Failed to execute goa...
use Maven to add info from MKS to Sonar
www to non www with httpsRewriteEngine on RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L] RewriteCond %{ENV:HTTPS} !on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
I've got several domains operating under a single.htaccessfile, each having an SSL certificate.I need to force ahttpsprefix on every domain while also ensuringwwwversions redirect tono-wwwones.Below is my code; it doesn't work:RewriteCond %{HTTP_HOST} ^www.%{HTTP_HOST} RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI...
.htaccess redirect www to non-www with SSL/HTTPS
"command" is an array, so each argument has to be a separate element, not all on one lineShareFollowansweredMar 8, 2016 at 9:41DavidODavidO1,7071111 silver badges77 bronze badges0Add a comment|
kubectl describe podslogspods logslogscommand: - bundle exec unicorn -c config/unicorn/production.rb -E productionThe container can't start on k8s and some errors occured .But when I execdocker run -d image [CMD]The container works well.
API error (500): Container command not found or does not exist
From memory of my experience using DOM classes, you don't have to delete anything that you append to the DOM tree. For example, you append the child secondElement to the element firstElement. When the latter gets freed, it will also free secondElement. However, I see two things here that will leak. First, you don't in...
Question about DOM* class createXXX methods in C++. Do I have to do anything special to free memory returned from DOM* createXXX methods? For example (the transcodes were removed for simplification and the associated releases for the vars associated with the transcode operations, I know about those): pImplement = DOM...
DOMDocument C++ memory management
As mentioned in other answers, you could move the directories under a common parent directory and track it as one repository or use the sub-modules approach.In case you don't want to move the existing directories, you could treat the root directory/as your parent directory (provided you have the necessary permissions)....
I am working on a asterisk project and would like to put the code in Git for version tracking.Here are the 3 directories that the code is in:Asterisk Dialplans:/etc/asterisk/customAsterisk AGI Code:/var/lib/asterisk/agi-binWeb Interface:/var/www/html/I don't want to track these as 3 separate repo's in Git. How would I ...
How do i create a Git Repo from multiple directories
4 Here is the link that you might find interesting: LabVIEW GPU Computing Share Improve this answer Follow answered Sep 28, 2011 at 12:01 Adnan ZAdnan Z 39433 silver badges1010 bronze badg...
I want to perform CUDA operation in LabVIEW to transfer multiple files in GPU in parallel and then perform arithmetic operations on GPU and then save the data in new file. I learnt that in order to perform operations in GPU, we need to create a DLL file and then import it to LabVIEW but I don't know how. Can you give ...
Performing CUDA in LabVIEW
Apple provides afull listof ports used by its software and products.The ports 2195, 2196 and 5223 are used by APNS according to this list.But you still have to open port 443 for wi-fi only network, according to this Applesupport page:If you use Wi-Fi behind a firewall or a private Access Point Name (APN) for cellular d...
I try to setupparseon my own server. I got it up and running.Which ports do I need to open in my firewall for ios push notifications via APNS?I found this info on the web:TCP port 5223 (used by devices to communicate to the APNs servers)TCP port 2195 (used to send notifications to the APNs)TCP port 2196 (used by the AP...
Parse Server: Which ports do I need to open in my firewall for ios push notifications? (APNS)
I have to get the linked "issue" for the PR. The Reactions are there.
The UI is allowing users to add reactions to the “body” of a pull request. However I don’t seem to be able to find a way to get the reactions on a pull request?I can see how to get the reactions to comments, but can’t see how to do it in the “body” which is just a string.
Get Pull Request Reactions using Github API
s3 rm cannot delete multiple files, but you can use s3api delete-objects to achieve what you want here. Example aws s3api delete-objects --bucket x.y.z --delete '{"Objects":[{"Key":"worksheet.xlsx"},{"Key":"purple.gif"}]}'
Suppose I have an S3 bucket named x.y.z In this bucket, I have hundreds of files. But I only want to delete 2 files named purple.gif and worksheet.xlsx Can I do this from the AWS command line tool with a single call to rm? This did not work: $ aws s3 rm s3://x.y.z/worksheet.xlsx s3://x.y.z/purple.gif Unknown options:...
How to delete multiple files in S3 bucket with AWS CLI
Try this,for setting up the job scheduling you can create custom commands for each task usingkernel.phpan example shows below for sending sms from queue table.In the kernel file add the command in to the array.protected $commands = [ \App\Console\Commands\Inspire::class, \App\Console\Commands\SmsProcess...
I'm following Laravel's basic tutorial for scheduled jobs, using the Kernel.php file directly from the documentation.My crontab file is:* * * * * date >> CRONTRACK.txt * * * * * /usr/bin/php /home/vagrant/Code/sample/artisan schedule:run >> /home/vagrant/Code/laravel_cron_output.txtThe cron is running. I get a new date...
Cron won't run Laravel scheduled jobs
If your MongoDB is deployed as K8s Deployment, plus you are not worried aboutdowntime, simply delete the Pods and they will get recreated.For aninterruption-free restartby Kubernetes, make an non-invasive change to your Deployment or StatefulSet yaml, e.g. add a label or environment variable and K8s will do the restart...
We have mongodb running as container on K8S, and while trying to connect this mongodb from a pod we are getting an exception below.state is {type=UNKNOWN, servers=[{address=10.0.62.187:30007, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net....
how to restart mongodb container after config changes
You should be able to simply pass an Instance ID, using the following:ec2.create_image(InstanceId=instance_id, Name="abc").Note that this will attempt to reboot your EC2 instance. If you don't want the instance to reboot, use:ec2.create_image(InstanceId=instance_id, NoReboot=True, Name="abc")
I am using boto3 with python3 for aws usage, in the aws console there is a very simple option for creating an image from a running / stopped ec2 instance. I am looking for something similar in the boto3 SDK, the closest this I found is how to create an image from the EBS volume like so:session = boto3.Session(...) ec2 ...
boto3 create image using instance id
Running shell scripts that have contain sudo commands in them from jenkins might not run as expected. To fix this, follow along Simple steps: 1. On ubuntu based systems, run " $ sudo visudo " 2. this will open /etc/sudoers file. 3. If your jenkins user is already in that file, then modify to look like this:jenkins ALL=...
I am setting up a deployment server. I installed docker and running docker container with adocker-composer.yamlgenerated by phpdocker.io. And I also installed jenkins. All setup is on EC2 instance. Everything works perfectly.During a push to master in github, jenkins need to make a pull and run some commands in EC2 ins...
Docker composer command failed during install composer dependencies
No, you can't have different requests per node type. What you can do is create a pod manifest with a node affinity for a specific kind of node, and requests which makes sense for that node type. For a second kind of node, you will need a second pod manifest which makes sense for that node type. These pod manifests will...
Kubernetes allows to specify the cpulimit and/or requestfor a POD.Limits and requests for CPU resources are measured incpu units. One cpu, in Kubernetes, is equivalent to:1 AWS vCPU 1 GCP Core 1 Azure vCore 1 IBM vCPU 1 Hyperthread on a bare-metal Intel processor with HyperthreadingUnfortunately, when using an heteroge...
Kubernetes cpu requests/limits in heterogeneous cluster
Can you run the join in SQL on the database server?If not, you're probably stuck with iterating through each of your 200,000 results joining it to the 50,000 rows and writing out the results (so you aren't storing more than 1*50,000 results in memory at any one time)Or, if you have access to multiple machines, you coul...
I have written a very complex database migration script in Groovy, that runs just fine on my workstation but produces "Caught: java.lang.OutOfMemoryError: Java heap space" when run on the server's JVM. JVM is stuck as is (limited resources as an intern), so I need to figure out another way to fix this besides increasin...
Caught: java.lang.OutOfMemoryError: Java heap space - Using -Xmx not applicable
Git repositories know about other git repositories withremotes. A remote is basically just an entry in your.git/configfile that remembers the URL of another git repository somewhere, and gives it a name.When you rungit clone, you're automatically given a remote called "origin" that remembers where you cloned from. You ...
I want to add multiple git servers in my repository and to push data to 1 server and fetching it from another server. I am new to git.
How to add multiple servers in git repository
2 Why guessing? Just check. docker run ubuntu sh -c 'echo "Hello world!"' creates a container one may discover with docker container ls -a and inspect by id. The inspect command reveals that no additional sh -c was added except the explicit one: "Cmd": [ "sh", "-c"...
ERROR: type should be string, got "\nhttps://docs.docker.com/engine/reference/builder/#cmd says that in a Dockerfile\nCMD [\"executable\",\"param1\",\"param2\"]\n\nis the 'exec form' and\nCMD command param1 param2\n\nis the 'shell form', and they are run slightly differently.\n\nNote: Unlike the shell form, the exec form does not invoke a command shell\n\nBut when you are passing in the command with docker run, I can find any way to make it run without a command shell.\ndocker run container-name echo test # shell form I guess\n\nWhat is the exec form?\n"
pass in command in 'exec form' with docker run
TheLoadbalancerusually takes some seconds or a few minutes to provision you an IP.If after 5 minutes the IP isn't provisioned: - runkubectl get svc <SVC_NAME> -o yamland if there is any different annotation set.By default services withType:LoadBalancerare provisioned with Classic Load Balancers automatically. Learn mor...
I Installed K8S with Helm Charts on EKS but the Loadbalancer EXTERNAL IP is in pending state , I see that EKS does support the service Type : LoadBalancer now.Is it something I will have to check at the network outgoing traffic level ? Please share your experience if any.Tx,
LoadBalancer 'EXTERNAL IP" is in pending state after I installed k8s using helm Charts
In your resource blocks, insert an asterisk between the two ":" in the arn lines, to specify all accounts, or replace it with your account number."arn:aws:ec2:us-east-1:*:instance/*" "arn:aws:ec2:us-east-1:*:image/ami-*", "arn:aws:ec2:us-east-1:*:subnet/*", "arn:aws:ec2:us-east-1:*:network-interface/*", "arn:aws:ec2:u...
I am using the policy to limit RunIstances only to a specific instance types and a specific region. When I run the launch wizard or simulation under a test user I am getting "implicitly denied" error.Here is the policy:{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "ec2:Run...
how to limit instance launch by instance type in AWS using IAM service
That probably depends on the version of Ruby you're talking about. The MRI 1.8.x line used the heap. See Engine Yard blog post for more information.
It is more of a hypothetical question, but I was eagerly searching for the answer in web for a while. I read that programming languages uses heap for storing references and stack for values / data. In ruby everything is an object and we may have to save only references, does ruby use stack for memory management or on...
Does ruby use stack for memory management?
0 I had a similar problem 4 years ago doing the same user session management in Redis, and I think the client library, specifically Netty, was using non-heap memory. Also, when stuff starts to use non-heap memory, you may want to lower the allocation of tomcat, so it doesn'...
I have a Java 8 application deployed on Tomcat 8.5, which has been running smoothly until recently when Tomcat abruptly stopped. After examining the logs, I identified an "out of memory" error: java invoked oom-killer: gfp_mask=0x100dca(GFP_HIGHUSER_MOVABLE|__GFP_ZERO), order=0, oom_score_adj=0 The application had be...
Tomcat 8.5 Java 8 Out of Memory Error After Introducing Redis for Session Management
You can do it of course but it will results in a new commit chain which will make the original repositoryuseless.You do it usingfilter-branchwhich will execute rebase, and again it will modify all your commit history which is actually a reabse.If you don't know what rebase is - don't do it.Filter branch to rename autho...
How do you change the 'author' and 'email address' of all the commits after cloning a repository from github?And, can this also be done via tortoise git or by a gui or only command line?
how to change username of all git commits after cloning a repo via gui or cmd
It is too late answer the question even though , I would like to give alternative operation with minimal operation andwithout Cron JobIf you want remove product document after creation of 5 day's interval then you can achieve with 2 line of code in model itself. You have add one property i.e(expireAt) in model and pass...
Let's take the following example:I have twomongoDbcollections nameduserandproducts. A user can add unlimited products, but each product expires in 5 days and it has to be dynamically removed from the db when it expires.user.jsconst UserSchema = mongoose.Schema( { username: { type: String }, email: { type: Str...
Cron job that checks for date expiration
Some browsers will optimize things by detecting when there isn't a fetch handler in a service worker and not block navigations on service worker startup. (Chrome is pretty aggressive about this.) Other browsers don't. You don't mention which browser you're testing this on, but I'm not particularly surprised that there...
A very simple setup. Importing service worker file within <script> tag in index.html like so: if ('serviceWorker' in navigator) { window.addEventListener('load', function() { navigator.serviceWorker.register('/app/static/js/service-worker.js', { scope: '/' }); }); } Service worker itself is empty (...
Why does an empty service worker significantly slow down page load speed?
I just wrote a library to do this called Domainatrix. You can find it here:http://github.com/pauldix/domainatrixrequire 'rubygems' require 'domainatrix' url = Domainatrix.parse("http://www.pauldix.net") url.public_suffix # => "net" url.domain # => "pauldix" url.canonical # => "net.pauldix" url = Domainatrix....
I'm looping over a series of URLs and want to clean them up. I have the following code:# Parse url to remove http, path and check format o_url = URI.parse(node.attributes['href']) # Remove www new_url = o_url.host.gsub('www.', '').stripHow can I extend this to remove the subdomains that exist in some URLs?
Remove subdomain from string in ruby
I think, this is an expensive way to replace underscores with dashes. But this works at least in my test environment. The first rule replaces dashes one by one. The second rule then removes the prefix from the requested URL.RewriteBase / # replace underscores with dashes RewriteRule ^(news/index.php/.+?)_(.*) $1-$2 [...
I have a hard time to create rewrite rule for a redirect using part of an old URL for WP. Example:Old URL:http://www.example.com/news/index.php/2014/11/07/my-blog-post-from-old-siteorhttp://www.example.com/news/index.php/2014/11/07/my_blog_post_from_old_siteNew URL:http://www.example.com/2014/11/07/my-blog-postNew URL ...
htaccess rewrite rules with regexp and inifite redirect
Generally that is done using the .htaccess file on your host. Here is an example cut and pasted from HTTP cache headers with .htaccess <IfModule mod_headers.c> # WEEK <FilesMatch "\.(jpg|jpeg|png|gif|swf)$"> Header set Cache-Control "max-age=604800, public" </FilesMatch> </IfModule> If delivering materials from a...
This question already has answers here: How do you set the expiry date or a maximum age in the HTTP headers for static resources in IIS (3 answers) Closed 10 years ago. I just fini...
Setting an expiry date or a maximum age in the HTTP headers [duplicate]
1 You can probably simplify it by moving the try_files directive out of the location sub-block so that your config file ends up looking like: location /app { index index.php; try_files $uri $uri/ /app/index.php?path=$uri; access_log /{path}/access.log; ...
I am trying to achieve the following result with an nginx configuration: A PHP app is running in a subdirectory of a server, lets say server.com/app/. Files in images/ and styles/ (for example) should be accessible, php files in api/ should be executed, and in all other cases nginx should pass the whole string after a...
nginx rewrite rules by subdirectory
If you don't have a published vsix file to work with, for example if the source code has had recent changes that have not yet been published in a release, you can do the following to package the vsix and install it yourself:Install node.js if you don't have it already, you can download binaries for your operating syste...
So i was using SFTP but the maintainer didnt update it anymore and it stopped working.The community thankfully took over and fixed it here:https://github.com/viperet/vscode-sftp-revivedI only know how to install a Extension by searching it in VSCode and press install - but have no clue how to do it with the source code...
How to install a VSCode Extension from Source Code
This error occurs because the function install_github sets username='hadley' by default (see install-github.r source) In this case, there is no github branch hadley/roxygen, and now download from https://github.com/hadley/roxygen/zipball/master This will work: install_github('roxygen',username = 'klutometis') note: e...
when I run the following: library(devtools) install_github('roxygen2') I get the following error: with devtools 0.51: Installing roxygen2 from hadley Error in unzip(src, list = TRUE) : zip file '/tmp/Rtmp2b44Ug/hadley-roxygen2.zip' cannot be opened I installed a more recent version (0.6) of devtools: install_gith...
install_github returning error: zip file can't be opened
Actually the Host header is used for determining the certificate. The server never sees the complete URL. IIRC, NSURLSession and friends don't normally override a user-specified Host header if the URL contains an IP address. However, it should be a capital "H" in "Host". Because that headerisin the list of headers ...
What I want:Specify server IP for NSMutableURLRequest to avoid localDNS query.Common method:Replace host field in URL and specify the HOST Header field for the HTTP request.request = [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://1.1.1.1/path"]]; [request setValue:@"www.a.com" forHTTPHeaderFiel...
How to specify server IP for a HTTP request instead of DNS
In that case you could choose synchronous receive call i.e.consumer.receive(timeout)instead of message listener. You can make the receive call only when you want.I am also wondering a bit as the onMessage method should be invoked by SQS messaging provider only when there is a message in the queue. There should be no po...
I am using amazon sqs queues to consume message asynchronously. I have started consuming the messages using amazon sqs JMS api's. So I have implemented MessageListener and doing my work once message arrive in onMessage method. Since amazon sqs is charged based on request made to the server I would like to restrict poll...
Polling Interval for JMS MessageListener with SQS Provider
Finally, I move the X-Accel part from $request to $response, and just set X-Accel-Redirect header.If we want limit the download speed, we can use$request->headers->set('X-Accel-Limit-Rate', 10000);, it works well, the number is in bytes.Then I've change the$response->headers->set('Content-Disposition', 'attachment;file...
I would want to use Nginx X-Accel with Symfony, for the moment I've this code.$request->headers->set('X-Sendfile-Type', 'X-Accel-Redirect'); $request->headers->set('X-Accel-Mapping', '/var/www/html/files/=/protected-files/'); $request->headers->set('X-Accel-Limit-Rate', '1k'); BinaryFileResponse::trustXSen...
How to use Nginx X-Accel with Symfony?
Yes. I even made a test to be sure: @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(classes = CacheableTest.CacheConfigurations.class) public class CacheableTest { public static class Customer { final private String id; final private String name; public Customer(String id, ...
@CachePut or @Cacheable(value = "CustomerCache", key = "#id") public Customer updateCustomer(Customer customer) { sysout("i am inside updateCustomer"); .... return customer; } I found below documentation under CachePut source code CachePut annotation does not cause the target method to be skipped - rath...
Spring Cacheable vs CachePut?
Assuming you have an SSIS variable named @[User::DatabaseName] Given that a backup command would look something like BACKUP DATABASE [MyDB] TO DISK = N'\\Server\backup\MyDB\MyDB_backup_2020_05_06_020003.bak' WITH NOFORMAT, NOINIT, NAME = N'MyDb-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10 I'd creat...
I have an SSIS flow that creates a database from a variable (and alters a couple of settings). Now, I need to create an initial backup of that database (and then add it to a backup plan). Ask: How do I use the variable I used to create the database to also run the initial backup? (I am trying to use the Backup task.....
Backup in SSIS using a Variable db name
Salt uses a zeromq pub/sub interface to communicate with the minions. Indeed, you only need to open ports 4505 and 4506 on the master's firewall.The minions listen on one port on the master, which is the "pub" port, and then return results to the master on the other port.The master never actually "pushes" commands to t...
The documentation on saltstack appears to be unclear regarding what ports are required from the salt-master -> salt-minion (apparently none are required). It suggests that ports only need to be opened from the salt-minion -> salt-master. (See:http://docs.saltstack.com/en/latest/topics/tutorials/firewall.html)If however...
What open ports are required on firewall to allow for salt-stack remote execution?
A submodule is a way of linking repositories together, but each submodule is it's own complete self-contained repository. When you add a repository as a submodule of another repository you are only linking the repositories together, you are not moving the data into the parent repository. For this reason you can't dele...
I'm a happy user of Github. Over time I have accrued a number of little unrelated toy repos. I would now like to create a container repo - call it playpen, pull my various toy projects underneath the parent playpen as git submodules, and blow away to source toy repos. The toys should only live in the playpen. When I t...
Git Submodules. How do I make them entirely self-contained?
I need to update my tls secrets, there is any best practices to do that?, by now, I think, I have to create new secrets and update my ingress definition in order it could take the new tls secrets.Yes you are right Or else you can update the existing secret directly and no changes will be required to do the ingress side...
Closed. This question isopinion-based. It is not currently accepting answers.Want to improve this question?Update the question so it can be answered with facts and citations byediting this post.Closed2 years ago.Improve this questionI need to update my tls secrets, there is any best practices to do that?,The steps cons...
Rotate tls secret - Ingress - kubernetes [closed]
I reached out to AWS support and got the following answer: ECS' run-task API, when launching a Fargate task, is throttled at 1 TPS by default with a burst rate of 10. This means that you can--at most--launch 10 tasks every 10 seconds. As such, we recommend that [you] use some backoff strategy on [your] end when...
I am attempting to run 30 Fargate tasks at once and I am receiving "ThrottlingException: Rate exceeded". In the ECS Service Limits, it mentions that the default limit for concurrent Fargate tasks is 50. Am I being throttled for something other than the number of concurrent Fargate tasks? For example, is Fargate regist...
Fargate ThrottlingException Rate exceeded
This question is too broad. What happens with the Dockerfile you've created? You don't need docker compose unless you have multiple containers that need to interact. Some general observations from your current Dockerfile: It would be better to collapse the pip install commands into a single statement. In docker, each...
I can't wrap my head around how to dockerize existing Django app. I've read this official manual by Docker explaining how to create Django project during the creation of Docker image, but what I need is to dockerize existing project using the same method. The main purpose of this approach is that I have no need to b...
Dockerize existing Django project
This feature is not yet supported.Hereis an open feature request on kubernetes.Though there arefewworkarounds.You can also refersthis, where they make use ofinitContainerto get node label and assign it to pod label.Hope this helps.
Can I inherit node labels to pod labels?i.e I want to havezoneandinstance-typelabels from node to pods
how to inherit Node-Labels to Pod-Labels in kubernetes?
When you push to a repository, the credentials used don't have anything to do with theuser.nameanduser.emailsettings. These settings are used to write the author and committer information into commits, but are not used in any way for authentication.If you're not being prompted for credentials, then the likely issue is...
So, I'm practicing git on my computer on a single repo with two different users as collaborators.User1created a repo, invited another user to collaborate.pushed a simpleindex.htmlfile to the remote master.checked out a branchinput1from master, pushed to the local branch, send pull request, and merged to the remote mast...
Pull request button missing
With the key link provided by @Luke Deluccia, this is what worked for me.docker buildx create --use --name larger_log --driver-opt env.BUILDKIT_STEP_LOG_MAX_SIZE=50000000 docker buildx build --progress plain .This creates a buildx instance, and sets buildx to use the instance when building. This did not clip the logs d...
In the output when building, I am getting this message:[output clipped, log limit 1MiB reached]from the commanddocker build --progress plain .The current workaround I have is to pipe larger sections of the RUN command in the dockerfile to /dev/null i.e.RUN \ echo "**** install packages ****" && \ apt-get update && \ ...
Is there a way to increase the log size in docker when building a container?
The Docker image can optionally include a default command to run when none is given on the command-line. If no default command is given, then it has to be provided by the caller. If you look at the Dockerfile for ubuntu, they have CMD ["/bin/bash"] So if you don't say otherwise, it will run bash for you. No such set...
I find when using docker run I sometimes don't need to add a "command", while sometimes a "command" is a must. E.g. when running the ubuntu image a command isn't required: # docker run ubuntu # While when running mstormo/suse: # docker run mstormo/suse Error response from daemon: No command specified # docker run...
Why do some docker images require a command when run?
You have to click the raw button, and copy that link (direct link). wget https://raw.githubusercontent.com/zellij-org/zellij/main/example/themes/tokyo-night-storm.yaml
I'm trying to download the tokyo-night-storm.yaml colorscheme file from zellij. I thought that I just could do wget https://github.com/zellij-org/zellij/blob/main/example/themes/tokyo-night-storm.yaml but I got the webpage instead of the theme-file. How can I retrieve the just the actual file and not the webpage?
Download file from github in CLI?
Programming languages such as Ruby, Node and Python should run on Apple M1 Chip but Docker is not supported as of now (They are working on it)Docker for Mac Issuehttps://github.com/docker/for-mac/issues/4733Docker team might be working on fixing the issue as per this:https://github.com/docker/roadmap/issues/142My Recom...
Closed. This question needs to be morefocused. It is not currently accepting answers.Want to improve this question?Update the question so it focuses on one problem only byediting this post.Closed2 years ago.Improve this questionHow do you get a Ruby, Python and Node.js development environments running on Apple Silicon ...
Running Ruby, Node, Python and Docker on the new Apple Silicon architecture? [closed]
you can find the list of exceptions forpublish(**kwargs)->here<- (bottom ofpublish(**kwargs)part)Every exception is linked to its documentationSNS.Client.exceptions.InvalidParameterException SNS.Client.exceptions.InvalidParameterValueException SNS.Client.exceptions.InternalErrorException SNS.Client.exceptions.NotFoundE...
I’m reading AWS Python docs such asSNS Client Publish()but can’t find the details of what exceptions a function can throw.E.g.,publish()can throwEndpointDisabledExceptionbut I can’t find this documented.Where can I look up the list of exceptions a BOTO3 function can throw (for Python)
Where to look-up what exceptions a BOTO3 function can throw?
2 For tile based render architecture passes are: Binning pass - generates stream\map between frame tiles & corresponding geometry which should be rendered into particular tile Rendering pass - takes map between tiles & geometry and renders the appropriate pixels per tile. ...
As I'm reading VideoCoreIV-AG100-R spec of BCM vc4 chip, there is a paragraph talking about: All rendering by the 3D system is in tiles, requiring separate binning and rendering passes to render a frame. In normal operation the host processor creates a control list in memory defining all the operations and supplyin...
What exactly is a GPU binning pass
So I solved the issue by using the devicemapper storage backend, as suggested by @jpetazzo. Steps I carried out: Stopped the docker deamon Started the docker deamon with command docker -d -s="devicemapper" Ran the docker run on the Dockerfile command again. And it worked without any problems.
When running mysqld in this Dockerfile (on my Linux box, Linux 12.04) Dockerfile: FROM ubuntu:precise RUN apt-get update RUN apt-get install -y mysql-server CMD ["/usr/sbin/mysqld"] I get mysqld: error while loading shared libraries: libz.so.1: cannot open shared object file: Permission denied Whereas running it on...
Docker and Mysql: libz.so.1: cannot open shared object file: Permission denied
I think you are on the right track with putting version numbers on your js css files. And you may want to use a build tool to put all of this together for you like http://ant.apache.org/ or http://nant.sourceforge.net/
What are your tricks on getting the caching part of web application just right? Make the expiry date too long and we'll have a lot of stale caches, too short and we risk the servers overloaded with unnecessary requests. How to make sure that all changes will refresh all cache? How to embed SVN revision into code/url? ...
How to deal with browser cache?
scoremethod is alwaysaccuracyfor classification andr2score for regression. There is no parameter to change that. It comes from theClassifiermixinandRegressorMixin.Instead, when we need other scoring options, we have to import it fromsklearn.metricslike the following.from sklearn.metrics import balanced_accuracy y_pred...
I can do this:model=linear_model.LogisticRegression(solver='lbfgs',max_iter=10000) kfold = model_selection.KFold(n_splits=number_splits,shuffle=True, random_state=random_state) scalar = StandardScaler() pipeline = Pipeline([('transformer', scalar), ('estimator', model)]) results = model_selection.cross_validate(pipelin...
Sklearn: Is there a way to define a specific score type to pipeline?
As shown in the Firebase documentation onFCM ports and your firewall:Ports to open for incoming messages:522852295230443My guess is that most messages come in on that last port 443, which is HTTPS. Since you're not blocking that in your Firewall rules, the messages on port 443 are allowed.
I'm trying to setup a Windows Firewall rule to block inbound messages from Firebase (FCM).The firebase documentation says that inbound messages are received by UDP on ports 5228-5230. I've therefore setup a rule to block the connection on these ports.However, I still receive the messages.This is obviously great for the...
How to block inbound messages from Firebase in Windows Firewall
A simple workaround would be to add second query constantLine(1) then add a third query that divide the second by the first then hide the first 2 queries and you should be good to go with the third query.
How can I plot the1/seriesin Grafana? Thedocsshowscale, which allows multiplying by a constant, anddivideSerieswhich allows you to divide two series by each other, but there doesn't seem to be a way to divide a constant by a series.
How can I plot the reciprocal of a value in Grafana?
I was able to create a linked project by using the api along with following installing this Vercel via https://github.com/apps/vercel, e.g. something like this: ## Create a project curl -X "POST" "https://api.vercel.com/v9/projects?teamId=team_XXXXX" \ -H 'Authorization: Bearer AUTHORISATION_TOKEN' \ -H 'Con...
I have a button on my website which says create website. I want it to clone a github repo, then link that github repo to a new vercel project and deploy. I have a problem where I can clone the repo and create a vercel project fine via their API - the issue i have is trying to link that github repo to my vercel projec...
Is it possible to connect a github repo to a vercel project via their API