Response
stringlengths
15
2k
Instruction
stringlengths
37
2k
Prompt
stringlengths
14
160
You can specify anAWS::Serverless::Apiresource in your SAM template that is configured with anAuthobject which in turn should haveAWS_IAMasDefaultAuthorizer. In other words, something like:Resources: ApiWithIamAuth: Type: AWS::Serverless::Api Properties: StageName: Prod Auth: DefaultAuth...
I'm trying to create an API Gateway which invokes a Lambda function using SAM. I want to restrict access to the API in such a way that only certain IAM accounts/users can access the API. How should I do that? I couldn't find a proper way to attach a resource access policy to an API endpoint in SAM.
Specify which account/user can invoke the API using SAM and API Gateway
If you just want to execute e2e tests without setting up the whole cluster, you can compile them from kubernetes repository:make all WHAT=test/e2e/e2e.test, and then run this compiled e2e binary against your cluster:./e2e.test --host="<your apiserver>" --provider=local --kubeconfig=<kubeconfig location> -ginkgo.Focus="...
https://github.com/kubernetes/community/blob/master/contributors/devel/e2e-tests.md#testing-against-local-clustersI have been following the above guide, but I keep getting this error:2017/07/12 09:53:58 util.go:131: Step './cluster/kubectl.sh version --match-server-version=false' finished in 20.604745ms 2017/07/12 09:5...
How to run e2e tests on custom cluster within Kubernetes.
This has nothing to do with a segue, so don't confuse the issue for yourself. The basic deal with reference counted objects is that as long as there is at least one reference to the object, it will not be deallocated. However, once the reference count reaches zero, the object will be deallocated. So, if you want an o...
I have a iPhone app with a table view and an add button in the navigation bar. The table view has a custom NSObject that holds it's data called dataBase. dataBase is a (strong, nonatomic) @property of this table view. The table view has a public method that allows new data to be added to dataBase. On clicking the add ...
Do strong objects get destroyed on segue?
4 I think I know what's wrong. Your loop is not working because you said {% for blogpost in site.posts%} and then you call the loop by post and not blogpost. Try changing the for loop to: {% for post in site.posts %} and you should be fine! If this answer is correct or us...
I want to show latest posts in my bolg.html page. So i used Liquid syntax But when i used the liquid shown below and run locally, the page shows the code as it is and it doesn't fetch posts from my _posts folder. The liquid syntax is given below: liquid syntax and then the out put is as given below output Please help ...
jekyll post loop not working on home page. Showing code as it is
Try increasing time interval of these parametersinitialDelaySeconds: 300 periodSeconds: 10 successThreshold: 1 failureThreshold: 5Reference :Original PostHoping it will work for you.
pod failed to startup once. What could be the reason? container started later than LivenessProbe had been activated?liveness probe configured as:livenessProbe: exec: command: - /usr/bin/commandA - --is-alive initialDelaySeconds: 5 periodSeconds: 2 successThreshold: 1 failureThresho...
Liveness probe failed: OCI runtime exec failed: exec failed: EOF: unknown
The output from @@VERSION from the Managed Instance is misleading. Because a Managed Instance is an evergreen deployment (it is ALWAYS the latest version) this means that it is always a newer version than any version of SQL Server you will get on a VM. You will need to consider other methods such as BACPACs or replica...
I am trying to restore a backup from an Azure Managed Instance to an SQL Server running on an Azure VM. When running the Backup Script, I get this error Message: Meldung 3169, Ebene 16, Status 1, Zeile 2 The database was backed up on a server running version 15.00.2000. That version is incompatible with this server, w...
Why can't I restore a SQL Backup on a newer Version? Error 3169
Go to File > Project Structure Click the green + button on top left. Import existing project > tell where module is located > hit next Till now you have added the module to your project. Now put that module as a dependency in your app module (or mobile module) Way 1 : again go to File > Project Structure ...
I'm new to Android Studio, and I want to include an OAuth2 client implementation to use in my application. The client is just posted as a collection of source files. Ideally, I'd like to be able to include the classes automatically using gradle, but it doesn't seem like that's possible if it's not at least supporting...
Right way to include existing code in Android Studio project?
externalis to use an existing network. If you want compose to make networks you simply do:networks: network1: network2:.. to instruct compose to make the networks. They will be named<compose-dir>-<network name>Verify the creation by usingdocker network ls.You can also override the default network or specify more pr...
When using custom networks in Docker likenetworks: default: external: name: service-tierAnd try to run that, I´m getting the errorERROR: Network service-tier declared as external, but could not be found. Please create the network manually usingdocker network create service-tierand try again.Is it possib...
Create networks automatically in Docker Compose
I don't want to useModRewrite.You can useRedirectMatchto block access to a known path:Redirectmatch 403 ^/subfolder/ShareFollowansweredAug 1, 2022 at 19:42anubhavaanubhava771k6666 gold badges582582 silver badges649649 bronze badges3It works surely. But I don't want to useModRewriteand alsoRedirectmatchto obtain the for...
I'm going mad over Apache .htaccessI'm trying to setting as protected my subfolders using relative address, but it seems impossible.The path of Apache folder is structured like this:/var/www/apachedirnow I want to protect/var/www/apachedir/subfolder/*What I tryied is putting in/var/www/apachedir/an.htaccessfile like th...
Apache .htaccess <FilesMatch> // Setting as forbidden subfolder files
Python 2.7 and 3.1 have OrderedDict and there are pure-Python implementations for earlier Pythons. from collections import OrderedDict class LimitedSizeDict(OrderedDict): def __init__(self, *args, **kwds): self.size_limit = kwds.pop("size_limit", None) OrderedDict.__init__(self, *args, **kwds) ...
I'd like to work with a dict in python, but limit the number of key/value pairs to X. In other words, if the dict is currently storing X key/value pairs and I perform an insertion, I would like one of the existing pairs to be dropped. It would be nice if it was the least recently inserted/accesses key but that's not c...
How to limit the size of a dictionary?
PWD is an environment variable that your shell will expand to your current working directory. So in this example, it would mount the current working directory, from where you are executing this command, to /usr/src/app inside your container. E.g. assuming your current working directory is /home/youruser/somedir, your ...
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by prog...
Meaning of "$PWD":/path/to/directory" [closed]
You can disable the TOC title by combining the:local:optionwith omission of the TOC title:Your h2 level title here ------------------------ .. contents:: :local:But note that the local optionlocalizes the TOC to only list subsections of the section in which it is placedrather than listing every section in the docume...
I needed a table of contents for a reStructuredText (.rst) document I was editing, so I added.. contents:: Table of Contentsin the appropriate place and it works fine.Problem is, at least in GitHub's RST parser/renderer/whatever, the "Table of Contents" title displays just like normal, non-header text would, when I wan...
Display TOC title as a heading (or hide it altogether) in reStructuredText
7 Unfortunately You can not append to object in S3 , Please Refer this. Once an object has been uploaded, there is no way to modify it in place; your only option is to upload a new object to replace it, which doesn't meet your requirements. You could have entries sent to...
Wanted to insert multiple rows into single csv file stored in s3 bucket. Each post form data should be saved in the same csv file in s3 bucket in a new row.Currently, new entry is saving as an individual file. exports.handler = (event, context, callback) => { var fs = require('fs'); var AWS = require('aws-sdk'...
How to append csv file in s3 bucket
You may try to use "kubectl replace" like that:kubectl replace -f storage-class.yaml --forceJust make sure that you use Heketi Service name as a REST URL to avoid further such issues.
Heketi pod was restarted on our Kubernetes Cluster and now I'm struggling with how to change glusterfs storage class resturl with new heketi endpoint.What are the safest options without any data loss on our PVCs? I was able to recreate Kubernetes Cluster v1.11.10 on our test environment and start investigating on it. W...
How can I safely change resturl for glusterfs storage class on my Kubernetes cluster?
To send only zip files that were created today: MPUT_ZIPS="$(find $BACKDIR -iname '*.zip' -type f -maxdepth 1 -mtime 1 | sed -e 's/^/mput /')" [...] $LFTP << EOF open ${FTPUSER}:${FTPPASS}@${FTPHOST} mkdir $FTPDIR cd $FTPDIR mkdir ${TODAY} cd ${TODAY} ${MPUT_ZIPS} cd .. rm -rf ${RMDATE} bye EOF Hope this helps =)
I'm writing a bash script to send backups to a remote ftp server. The backup files are generated with a WordPress plugin so half the work is done for me from the start. The script does several things. It looks in the local backup dir for any files older than x and deletes them It connects to FTP and puts the backup ...
Bash script to backup files to remote FTP. Deleting old files
You just switch back and forth between master, etc. and gh-pages with git checkout. More details below. Your original workflow (from above): git add --all git status // to check which changes are to be commited git commit -m "Some changes I've made" git push origin master Now when you want to work on your GH-pages: ...
I have a local repository on which I work on a daily basis. Typically, after a day's work, I commit locally and I push everything to a github repo by doing: git add --all git status // to check which changes are to be commited git commit -m "Some changes I've made" git push origin master Recently I've created a gith...
How to modify my git workflow now that I created github pages?
IPv6 is not supported at this time, and it's very clearly state in the docs that it's a work in progress:https://github.com/kubernetes/community/blob/master/contributors/design-proposals/networking.md
I am trying to installkubernetes on Bare Metal with IPv6 only networks. I have stuck saying thatInvalid Argumentswhenever I put IPv6 address instead of IPv4 address.Can anyone suggest any guidelines how to install Kubernetes on IPv6 only networks. I know, it's not IPv6 production ready but in the source code, it seems,...
Guidelines to install Kubernetes with IPv6 only
Maybe you have Echo module. It's compiled in Debian/Ubuntu builds by default. In that case you could use echo -n ""; instead of return 200;. If you want “pure” solution without third party module, you could use proxy_pass: location /test { proxy_pass http://127.0.0.1:11111; } ... server { listen 127.0.0.1:11111;...
I'm seeing this behavior in Nginx 1.4.6. When I have a deny clause, return will override it. I set up this trivial example: server { deny all; location = /test { return 200; } } It returns 200. I'm looking for (and expecting) the oposite behavior—for deny to take precedence. I considered if (...) ...
Nginx return takes prescedence over deny?
as per this documentationhttps://www.atlassian.com/git/tutorials/git-hooksMaintaining hooks for a team of developers can be a little tricky because the .git/hooks directory isn’t cloned with the rest of your project, nor is it under version control. A simple solution to both of these problems is to store your hooks in ...
This question already has answers here:Putting Git hooks into a repository(10 answers)Closed4 years ago.I have a case where I need to create a post-receive hook under$REPO_NAME/.git/hooks/post-receive.What I'm trying to do is to make this file$REPO_NAME/.git/hooks/post-receivepart of my repository and can be cloned as ...
Commit and Push changes under .git dir in git repositry [duplicate]
Try to addnginx.ingress.kubernetes.io/backend-protocol: httpsannontation to your ingress definition.Usingbackend-protocolannotations is possible to indicate how NGINX should communicate with the backend service. By default NGINX usesHTTP.Take a look:ingress-tls,backend-protocol.ShareFollowansweredSep 2, 2020 at 10:34co...
I enabled in my backend tls. So every traffic needs to go through "https://.....". I am able to access it locally or with Port-Forwarding in Kubernetes. But I cannot access it through the DNS (e.g.https://hostname.net/backend/....).I get as answer:Bad Request This combination of host and port requires TLS.I read that t...
Access spring security through kubernetes ingress
Newer version 2.1 has some issue. They are probably working on it. Revert back to 2.0.1.Reinstall Github pages with a specific version:npm uninstall gh-pages npm i[email protected]npm run deploy // as usualShareFollowansweredAug 4, 2019 at 12:36TejasTejas17322 silver badges88 bronze badgesAdd a comment|
getting errors in the terminal when trying to use npm to deploy a website on githubI have no idea what to tryPS C:\Users\user\modern_portfolio> npm run deploy>[email protected]deploy C:\Users\user\modern_portfolio > gh-pages -d dist The "file" argument must be of type string. Received type undefined npm ERR! code ELIF...
npm errors when I try to deploy website to github
git commit -m "this is my project" I checked the status using git status -s and it turns out my files have not even been staged. Can someone point out what I'm doing wrong here? The files were staged to the staging index, but then you committed them with git commit. This removes them from the staging index, and adds...
I'm trying to add my entire project directory to my github repo, but am unable to stage them (let along push them to the repo). This is what I have done so far. cd masterfolder git init mkdir projectfolder //add all my files + whatnot git add projectfolder git commit -m "this is my project" git remote add origin https...
Cannot stage or add my directory + files
Getting "Bind for 0.0.0.0:8080 failed: port is already allocated".you have duplicated port allocations.when not specifying a connection type,the port defaults totcp:meaning"0.0.0.0:8080:8080"and"0.0.0.0:8080:8080/tcp"both trying to bind to the same port and hence your error.sincedocker uses0.0.0.0for default binding, s...
I have been trying to get a socketio server moved over from EC2 to Docker.I have been able to connect to the socket via a web (http) client, but connecting directly to the socket via iOS or Android seems to be impossible.I read one of the issues can be the ports exposed are not actually published when using Docker. Sin...
Docker compose bind failed: port is already allocated
0 If you are using Android Studio 3+, then when you click git on the bottom-right menu and you open it, you have a Seetings button. Then disable the checkbox with the text: Execute branch operations on all roots. Share Improve this answer ...
I have looked up how to create a local branch (and I have done it before), but it won't let me. Please let me know how to fix this problem or if I am missing something. I am already connected to the github repository, but I am currently using the master branch and I wan't to use a local branch. so I click on VCS --> G...
Can't create a local branch of already existing github repository in Android Studio
You cannot set host in config file, however you can override it from your code with boto3. import boto3 session = boto3.session.Session() s3_client = session.client( service_name='s3', aws_access_key_id='aaa', aws_secret_access_key='bbb', endpoint_url='http://localhost', ) Then you can interact as u...
OVERVIEW: I'm trying to override certain variables in boto3 using the configuration file (~/aws/confg). In my use case I want to use fakes3 service and send S3 requests to the localhost. EXAMPLE: In boto (not boto3), I can create a config in ~/.boto similar to this one: [s3] host = localhost calling_format = boto.s3.c...
Override S3 endpoint using Boto3 configuration file
Finally, I solved it!the Nginx config must look like this:upstream backend { server localhost:3000; } server { server_name example.com; client_max_body_size 300M; root /var/www/app/dist; location /p-sw.js { try_files $uri @backend; add_header 'Cache-Control' 'no-store, no-cache, mu...
I have a NUXT js application on Ubuntu 20.04 Server. I used Nginx to serve my nuxt application as follow:server { client_max_body_size 300M; root /var/www/app/dist; server_name example.com; location / { proxy_pass http://localhost:8080; proxy_http_version 1.1; proxy_set_header Upgrade $http_u...
How to use nginx for nuxt js as proxy and http server?
You want to have a look at theuser_registeredcolumn in thewp_userstable. Since you're using WordPress, I'll assume that you're also using MySQL — in which case you can use theDATEDIFF()function in your SQL to work out how many days ago they registered.The SQL to delete everyone who is 30 days old (or older) is:DELETE F...
On a basic Wordpress 3.1 setup with User Access Manager, is it possible to automatically delete users that are x days old?I have found no plugins for this feature. How would one go about implementing this? Would I be able to set up a cron job with an sql or php query whereby users that are for example 3 days old are au...
Auto delete Wordpress users according to time since registering?
Currently nested virtualization is available only on GCE as perthis docs.There is already question regarding supportingNested VirtualizationonGKEand it can be foundhere. I'd say it's not introduced yet, thats why you cannot find proper documentation about GKE andnested virtualization.Also please consider thatGCPandGKEa...
I am trying to use KubeVirt with GKE cluster.I found I am able to create a nested virtualization enabled GCP VM, but I didn't find a way to achieve the same thing for GKE cluster node.If I cannot enable nested virtualization for GKE cluster node, I can only use the kubevirt with debug.useEmulation which is not what I w...
Is there a way to enable nested virtualization in GKE cluster node?
Try clearing your DNS (on Windows useipconfig /flushdnsin a command prompt) andBrowser cache, when visiting your site I am not redirected, and the site seems to work fine. If you don't clear it or clearing it doesn't help it should resolve itself within a few days.
So I recently deleted the CNAME file off of my github page. But it still points to the same site, how would your recommend I fix this?For example, say my CNAME was www.google.com. My github page is progdude.github.io.I deleted the CNAME file, but it still redirects. How do I stop this?
Github pages redirect issue
For your issue, you can create the service with Load Balancer type and use a static Load Balancer IP which you create with the DNS name as you wish before. Then there is an FQDN for the external IP and both the IP and FQDN can access the application in the AKS pod.Follow the steps inUse a static public IP address with ...
What is the process to assign a DNS record to a Load balanced service.I have created a simple service of Type LoadBalancer on AKS. The service gets a external IP assigned and points to pods hosting a sample hello world application.How do I browse my application using a DNS name, or setup the DNS name for the service in...
How to set a Domain Name for a Load Balancer Service on AKS
Spark will automatically un-persist/clean the RDD or Dataframe if the RDD is not used any longer. To check if a RDD is cached, check into the Spark UI and check the Storage tab and look into the Memory details.From the terminal, we can use ‘rdd.unpersist() ‘or ‘sqlContext.uncacheTable("sparktable") ‘to remove t...
The RDD, which have been cached used the rdd.cache() method from the scala terminal, are being stored in the memory.That means it will consume some part of the ram being available for the Spark process itself.Having said that if the ram is being limited, and more and more RDDs have been cached, when will spark clean th...
When will Spark clean the cached RDDs automatically?
Update your kubernetes cluster that you are using. You see the api server version there.
I would like to upgrade kubectl server version to be compatible with client version to get rid of Selflink issue that has been deprecated after kubernetes v1.21. How can I do this?PS C:\> kubectl version Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.2", GitCommit:"092fbfbf53427de67cac1e9fa54aaa0...
How to upgrade kubectl server version to v1.21
Sorry to say this but it's really your own fault. Not only are you using an unsupported version of Joomla, but an old version in that series as well. The latest version of the Joomla 1.5 series is 1.5.26 so there should be no reason why you weren't using that. I answered a question regarding being hacked and gave some...
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 11 years ago. Improve this question ...
How to migrate joomla 1.5.18 to 1.5.20 - hacked [closed]
1 First your second question. A good reason to use a private repository is if your images are, well... private. The most common practice I guess is that people that do not have a private repository use the public index, simply because it's easy. If you want to open source...
I'm trying to understand how Docker is supposed to be used. It's not clear whether I should put everything I need in a single Dockerfile. I've read some people saying that the current best practice is to have one container per process, eg: web server, database, and language interpreter would make 3 containers. But how...
How to deploy a full (web) application using Docker, if each process must be a container?
And what's aboutsubmittedonpull_request_reviewon: pull_request_review: types: [submitted]Or maybe I misunderstood youShareFollowansweredJan 26, 2021 at 17:29Krzysztof MadejKrzysztof Madej36.5k1010 gold badges9090 silver badges119119 bronze badges1ahhh, no this doesn't quite solve my issue. Thepull_request_reviewr...
I'm using GitHub actions to automate pull requests to my repositories. In particular, I'd like to run actions whenever a pull request gets a review to automatically label it. Because of this, I'd like to run code from the context of my base branch (similarly to howpull_request_targetworks as a counterpart topull_reques...
How do I trigger a github action from the target branch on incoming pull-request reviews?
No, it is not possible to change the timeout for a running build. Instead of using different stages, you could try using multiple test jobs on your one stage as each job has the timeout of 60 minutes. One possible way to break it down could be one job per test suite.
I'm running e2e tests in a stage in my Bluemix DevOps pipeline but it is exceeding the 60 minutes limit:The execution exceeded the time limit of 60 minutes. One possible solution is to split up your execution. Finished: ERROREDIs there a way of increasing the stage timeout? I do not want to split my tests across dif...
Timeout when running stage on Bluemix DevOps pipeline
Based on my experience you can fix this by adding this to the plugins section of the pom.xml:<plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.6.3.201306030806</version> <executions> <execution> <id>prepare-agent</id> <goals> ...
I have a very weird problem with the Jacoco plugin for Sonar. I have a multi-maven project were I wrote an "Event" class and an "EventTest" class in Spock. The Jacoco plugin for Sonar doesn't give me any code coverage for the test I made. If I put a dummy Junit test in the same package, that is not testing anything, th...
Jacoco plugin for Sonar doesn't support Spock test
Because most programs require small allocations, for relatively short periods, in a variety of sizes? That's why malloc and friends exist: To subdivide the larger allocations from the OS into smaller pieces with sub-page-size granularity. Want a linked list (commonly needed in OS kernels)? You need to be able to alloc...
I'm reading Operating System: Internals and Design Principles by William Stallings, 7th edition. In section 8.4 Linux Memory Management, when talking about kernel memory management, it goes like: The foundation of kernel memory allocation for Linux is the page allocation mechanism used for user virtual memory manag...
Why does the Linux kernel require small short-term memory chunks in odd sizes?
You can make the liveness and readiness probes to execute a bash script:livenessProbe: exec: command: - /bin/sh - /health.sh initialDelaySeconds: 60 periodSeconds: 100And add the part were you login to the Redis instance from inside with the redis cli and if fails e...
I need to change the liveness probe we have for our Redis instances and make it fail in case it is not able to return keys (due to being overloaded). Currently, we are just checking if it accepts TCP connections.livenessProbe: initialDelaySeconds: 20 periodSeconds: 10 tcpSocket: port: "redis"One solut...
Customized liveness probe for Redis instances
I finally worked around this limitation by manually editing both the project.pbxproj and Packages.resolved files, so that they point to the specific commit in the fork of the repository.To do this,close Xcodeand then open the two files with a plain text editor.In the project.pbxproj file, change the url of the repo and...
I recently forked a Swift Package library from GitHub in order to implement a functionality that I've been missing. However, when I try to add my version of the package in a Xcode project (by adding the url of my fork), Xcode can't find any results.Is this an intended limitation of Swift Package Manager or am I missing...
Add forked Swift Package in Xcode project
Yes, that is correct, you need to add the cron job to crontab as described in step 5 here:https://www.pimcore.org/docs/latest/Getting_Started/Installation.htmlYou need either a shell access or a control panel like cPanel or Plesk to set this up. The process is different for each operating system, but for most of the Li...
In Pimcore when I schedule an object to publish, it didn't work. I see that we require to enable cron job in some file. I didn't get complete details on this any where. Is there any step to enable this process? Can we use scheduling as part of workflow?
Pimcore scheduling
I would change the remote origin to the private repo: git remote delete origin git remote add origin git@server:user/repo.git Now you can push to the private repo using git push origin BRANCH_NAME To pull (and merge) from the public repo I would create another remote, lets call it upstream: git remote add upstream ...
I have cloned a public github repo and started modifying some of the files locally. Now I'd like to commit and push these changes into a private repository, but still be able to pull and merge changes from the public repo. How can I setup git for doing that ? I know I could fork the public project and work off the fo...
How to push into a repository different from the repository I'm pulling from
Thedocker run -itcommand brings up a bash shell in a container where TensorFlow is installed. Once you are at theroot@2e87064f0743:/#prompt you can start an interactive TensorFlow session by startingipythonas the following example shows:$ docker run -it b.gcr.io/tensorflow/tensorflow root@2e87064f0743:/# ipython Pyth...
I followed the directions to install TensorFlow on Docker on Google Cloud here :http://tensorflow.org/get_started/os_setup.html#docker-based-installationThe first time, it did work and showed the tensorflow prompt. Now that I have logged out and back in, I get this:technologiclee@docker-playground:~$ docker run -it b.g...
Starting TensorFlow on Docker on Google Cloud
Try to usetempfile.NamedTemporaryFile():import requests import tempfile cert = """--- cert file in string format ---""" key = """--- key file in string format ---""" with tempfile.NamedTemporaryFile() as f_cert, tempfile.NamedTemporaryFile() as f_key: f_cert.write(cert.encode("utf-8")) f_cert.seek(0) f_k...
I am trying to embed the cert in the file and not call it via the file, because where I need to drop the script, calling files might not work.Here is the current code:cert = (r"example.crt",r"example.key") r = requests.post("https://example.com",headers=pHeaders,json=data,cert=cert,verify=False)This is working, however...
Python Request with Cert
Simply run git rebase 5 my-branch --onto 4
I have 2 branches: 4 and 5, which represent 4 and 5 versions of my application (5 is continuation of 4). By my fault I created new branch from branch 5 (instead of 4) and do one commit. How to change my branch in that way: ostensibly I created my branch from branch 4 and added one commit? Now: 4 -> \ 5 -> \ m...
How to rebase branch
1 From the documentation for GitHub Desktop: You can add any Git repository to GitHub Desktop, even if it's not a GitHub repository. 1. In the top left corner of the app, click +. 2. At the top of the menu, click Add. 3. Click Browse and, using Windows Explorer, navigate t...
As the title, I clone a project which host on SourceForge(SF). But when I use Github Desktop to commit code to SF, a error appear The repository doesn't seem to exist anymore. You may not have access, or it may have been deleted or renamed .That project is private, I can only commit when I use Git Shell and enter SF p...
Access Sourceforge Git via Github Desktop
it can surely help you with reverse proxy as well as serving multiple apps:https://gist.github.com/soheilhy/8b94347ff8336d971ad0
I'm looking for the way to serve multiple rails apps on one server. I uploaded one of the apps and it works just fine. But as soon as I create nginx configuration for a new app, it crashes first one. I can't find an appropriate guide for this. If you have any advice, please share.
Multiple rails apps on single IP (nginx + passenger)
Ideally, your pull request is done from a dedicated branch, not frommaster.That means all you need to do is:git fetch upstream git checkout my_PR_branch git rebase upstream/master git push --forceIf you want, you can alsoreset your localmasterbranch toupstream/master(assuming again that you have developpped your PR ...
I'm sending in a pull request but the repo owner is rejecting it because my master is out of sync. I'm not sure how to bring it into sync.I did a git pull to merge the original repo and my forked repo. Then I fixed any merge conflicts.git pull upstream masterNot sure if this is fully accurate. Just need to know if ther...
My pull request is being rejected because my master branch is out of sync. How do I get it in sync?
I'm assuming the backups are generated by your scripts, and not the user. (Extracting arbitrary user created tar files are never ever a good idea).If your backups have to be store in a directory writeable by users, I would suggest you digitally sign each backup file so that it's integity can be validated. You can then ...
The directory of which users have their backups for their files is located in a directory which they can access and upload to.If they get the naming scheme right and cause an error on purpose that makes the system try to restore the last 5 or so backups, they could potentially put files they want onto the server by usi...
Preventing harmful gzip files from being extracted
You can take a look at the code yourself. Most of the relevant stuff is inLocalCache.Anyway, from my understanding (I'm not an expert on the cache stuff), reads (on a non-LoadingCache) should generally be lock-free (on aLoadingCacheit depends on whether they need to load a value, in which case the read becomes a write ...
I am using Guava's Cache and have setconcurrencyLevelto1so the maximum capacity is utilized w.r.t. eviction is concerned. Following is my code:CacheBuilder.newBuilder() .maximumWeight(maxWeight) .concurrencyLevel(1) .expireAfterWrite(expireDuration, TimeUnit.M...
Is Guava Cache's read lock free
1 This is expected. Since sqlite doesn’t support multiple connections it can only be used with SequentialExecutor. This is also explained in the docs. If you want to use LocalExecutor please set MySQL or PostgreSQL as backend. Share Improve this answer ...
I am trying to restart the airflow scheduler using the following command airflow scheduler I am using docker. I went inside my docker image for airflow and opened the CLI for my airflow image. That is where I used this command. It throws an exception Traceback (most recent call last): File "/usr/local/bin/airflow",...
Cannot use sqlite with the LocalExecutor [AIrflow]
Use of the following plugin (SonarJS) helped resolve my confusion and begin analysis - docs.sonarqube.org/display/PLUG/SonarJS
I have a front end project (AngularJS - not latest version) and want to analyze the code with SonarQube.Here is what I did so far.1) Grabbed my project from GitHub and cloned to desktop.2) Downloaded SonarQube-6.5 and extracted to desktop.3) Opened sonarqube-6.5\extensions\plugins (in my extracted directory) and pas...
SonarQube / AngularJS - How to I get SonarQube up and running to get my Angular project integrated / analyzed?
Do not use the-tiflags to start an interactive session, just execute the script directly via thedocker execcommanddocker exec website powershell -command "C:\inetpub\wwwroot\addApplication.ps1"
I have a powershell script in host which copy some files and starts the container.#Copy File docker cp "D:\addApplication.ps1" website:/inetpub/wwwroot/ #Start Container docker start website Write-Host 'Process has started' #Execute Container docker exec -ti website powershell #Run Script Invoke-Expression "C:\inetp...
RUN Powershell Script in Docker Container From Host Powershell Script
You have to clone the entire repo, not just the folder. From command line, do git clone https://github.com/google/android-ui-toolkit-demos.git
I trying to clone this repo, but I can't get the bash command line correctly: https://github.com/google/android-ui-toolkit-demos/tree/master/RecyclerView/RecyclerViewAnimations according to this thread there should be URL button, but I can't find it. https://help.github.com/articles/cloning-a-repository/ where is the...
cloning a repo from github
I have recently come across the same problem and here's what I did to fix it.In Server Config:I had to addrewrite ^/myNodeApp/(.*)$ /$1 break;to the NGINX config, in thelocation /myNodeApp/ {...}block, under what you already have in your example.In client side:I addedto the of my html files (or pug layout file in my c...
I'm running a Koa app on port 5000, and i'd like Ngnix to serve the app in a sub-directory - e.g:http://example.com/myNodeAppHere's what I've currently got in/etc/nginx/sites-enabled/defaultlocation ^~ /myNodeApp/ { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy...
Node JS - Nginx - proxy_pass to a subdirectory - Koa
+25You can use webContentInterceptor resource to allow static resource caching.<mvc:interceptors> <mvc:interceptor> <mvc:mapping path="/static/*"/> <bean id="webContentInterceptor" class="org.springframework.web.servlet.mvc.WebContentInterceptor"> <property name="cacheSeconds" value="3155692...
I wish to enable HTTP caching for some static resources such as images, for which access is restricted by Spring Security. (These resources are not security critical, but shouldn't be publicly accessible either). How do I avoid having Spring Security add HTTP response headers that disable caching?If I addsetCachePeriod...
How to enable HTTP caching for the resource handler with Spring MVC and Spring Security
When using a host name it's possible to fall back to the Common Name in the Subject DN of the server certificate instead of using the Subject Alternative Name.When using an IP address there must be a Subject Alternative Name entry (of type IP address, not DNS name) in the certificate.You'll find more details about the ...
I am try to generate self sign SSL certificate but get following error in cas sso:java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names presentI am using open jdk 7 and used following commands:keytool -genkey -alias axyz -keypass changeit ...
SSL Cerficate - No subject alternative names present
To communicate between services you can communicate with cluster IP or with Service Name.Using the ServiceName will be easier.The service discovery add a DNS for each of your service. So if you have api, app and database you will have a DNS entry for each of those services.So within your services, you can refer directl...
can i ping one workload from other workload by workloadname?I accustomed on rancher 1.0, where if i created stack with more conteiner so i can ping one from other conteiner by name.for example: I have api and database and I need api to communicate with databases. When i click on execute shell on api and write "ping dat...
rancher 2.0 networking in project namespace
As a first attempt to figure out what's going wrong, you could usegit config -lto print all global and local configuration to make sure there are no more proxy settings active (perhaps locally, since you passed the--globalon theunset). (if you plan to put the output here please keep in mind to redact personal or confid...
D:\rsetau-management λ git config --global --unset http.proxyD:\rsetau-management λ git clonehttps://github.com/aramali0/restaurant-management-system.gitCloning into 'restaurant-management-system'... fatal: unable to access 'https://github.com/aramali0/restaurant-management-system.git/': Unsupported proxy syntax in 'ap...
Cannot clone a GitHub repo
in this video MS-container-developer Taylor Brown says that they break up with RDP from TP3 to TP4 and willvery probably do not support RDP in RTM Version Server 2016:https://channel9.msdn.com/Events/TechNetVirtualConference/TechNetVC2016/Day-3-Containers-Session-with-QAUpdate as of Dez. 2018:Server 2019 is out and RDP...
I need to use Docker / Windows containers on Windows 2016 Server and prepare it Windows applications to run on it. Configuring Windows via Powershell just is not as convenient though as it is on Ubuntu, especially if you never worked with Windows Server really and need to learn all the Powershell commands ;)Is there a ...
Access Windows 2016 Server Container (Docker container) via GUI?
The identity of a commit (or, for that matter,anyobject inside Git) is a cryptographic checksum of its contents. The contents of a commit include the author's and commiter's name and email addresses. If you make another commit that's otherwise exactly the same as a commit that has an un-obscured name and/or email add...
Our company has a project that we want to release as open source. The repository is hosted internally, and it contains a history that includes the names and emails of our team.The open source project would be hosted on an external repository, Github. For illustration purposes, let us assume that the team members are Al...
How to protect the identity of committers, when a git repository has several remotes?
it still remains in the old generation and the overall heap usage increases until a full/major GC comes along. The ops team is monitoring the heap usage and they are concerned of the growing heap. If your goal is monitoring the population of live objects, e.g. to detect leaks, then you should measure heap occupancy...
I am trying to understand how garbage collection works. I am clear on the following points: JVM will trigger minor GC when it fails to allocate objects to the young generation. List item JVM will trigger full GC(both minor+major GC) when the heap is full. But, how about objects in the young generation and old g...
When will JVM trigger major garbage collection?
5 The resource module can give you this. Works in both Python 2 and Python 3. import resource resource.getrusage(resource.RUSAGE_SELF).ru_maxrss This is peak memory in kilobytes. The user and system time is also included in the value from getrusage. Share ...
I'm doing some extensive scientific python calculations and whant to know execution time and memory footprint of python script. So how to get peak memory usage of python script? If it matters I'm on Windows and use python 2.7.
How to get peak memory usage of python script?
Terraform is usually setup using API credentials. By default, MFA does not apply to API calls. You should setup and assume a role provisioned exclusively for this if you would like to enable multi-factor authentication on API calls for specific requests (TerminateInstancesfor example).For more information, see:AWS Blog...
I use Terraform to manage AWS Resources.Terraform calls an administrative IAM User who has been MFA locked. But theterraform applyandterraform destroycommands from my local computer succeed without inputting a unique authentication code.So, does Terraform bypass the multi-factor authentication?
Terraform can bypass MFA constraint on AWS IAM
Your problem is that thelambda.invoke()function is non-blocking, so Lambda_A is finishing its execution before it gets to call Lambda_B. You can use promises to deal with that. If you'reusing Node.js 8.10+, you can do this:Lambda_A:let AWS = require('aws-sdk'); let lambda = new AWS.Lambda(); exports.handler = async (e...
How can I invoke a Lambda function within a Lambda function?for example,infunction 1, it will be triggered by an API Gateway request and will invoke a second lambda function as an event (InvocationType = Event).infunction 2, it will do an http request to an endpoint.also, am I going to code in serverless.yml? or code o...
Invoking a Lambda function from within another Lambda function not getting invoked
If you want to map $http_x_target first and $arg_target second, there are a couple of solutions. You could create a complex string value like "$http_x_target:$arg_target" and use regular expressions to check each side of the separating character. For example: map "$http_x_target:$arg_target" $destination { default...
I have a scenario where I want to proxy_pass requests to one of several upstream destinations based on a value which can appear in a header or as a query parameter. Right now, I've got the header-based mapping mostly figured out: map $http_x_destination $destination { default upstream0; something upstr...
Conditionally map values in nginx config
It works for me:$ docker run -d \ -p 3000:3000 \ --name=grafana \ -e "GF_AUTH_SIGV4_AUTH_ENABLED=true" \ -e "AWS_SDK_LOAD_CONFIG=true" \ grafana/grafana:7.4.5You didn't provideminimal reproducible example, so it's hard to say what is a problem in your case.
we have a problem setting up aws-sigv4 and connecting an AWS AMP workspace via docker images.TAG: grafana/grafana:7.4.5Main problem is that in the UI the sigv4 configuration screen does not appear. Installinggrafana:7.4.5locally via Standalone Linux Binaries works.Just setting the environment variables,export AWS_SDK_L...
Grafana SigV4 Authentication - Docker image?
With help from thewget documentation on spanning hosts, I was able to make this work with the -H and -D flags:wget -r -l5 -H -D.us,.gov http://www.lawlib.state.ma.us/source/mass/cmr/index.html
Is it possible to recursively download files from specific TLDs with wget?Specifically, I'm trying to download the full text of theCode of Massachusetts Regulations. The actual text of the regulations is stored in multiple files across multiple domains—so I'd like to start the recursive download from theindex page, but...
How to wget recursively on specific TLDs?
To record and add new methods and controls into a UI Map other than the default, right-click on the UI Map's.uitestfile in solution explorer and select the "Edit with Coded UI test builder" menu entry. By contrast, if you right-click in a method within the test sources and select the "Generate code for Coded UI test" m...
I have a question about Coded UI and how to best use it together with others. We are a team(of 3) who are testing a large web application(which is hard by itself) but we also want to make all the tests in one solution and share that solution through GIT(or TFS). What is the best way of doing this?We have tried a few th...
Collaborative Coded UI tests
My missing organization appeared over night. So it seems to be due simply to time-lapse topography.
As a GitHub user I have three public organizations, my own one in my name, and two others. Several months ago I opened up Travis, looked around a bit and, apparently, added my three organizations. A few days ago I created a 4th organization and have created several repos there, but now I find I cannot see that org in...
How to add a new GitHub organization to Travis?
Yes, Its possible. You can create a tightly coupled pod with one container which contains MySQL and spring boot application in it, Or you can run two separate containers in single pod asSidecar.If you have docker-compose file, just convert it into kubernetes manifest file usingKomposeOnce your docker-compose file is co...
Is it possible to use docker-compose MySQL + spring boot container on Kubernetes instead of creating two pods for MySQL and spring application? If so how?
Can I use docker compose mysql + spring boot container on kubernetes?
Don't mixRedirectrules withmod_aliasones.Keep redirect rules before internal rewrite ones.You can use this code:Options +FollowSymlinks RewriteEngine on RewriteRule ^testurl/?$ /home/? [L,NC,R=301] RewriteCond $1 !^(index\.php|assets|uploads|tt|application/modules/.*/assets|resources|robots\.txt|favicon\.ico) Rewrite...
Options +FollowSymlinks RewriteEngine on RewriteCond $1 !^(index\.php|assets|uploads|tt|application/modules/.*/assets|resources|robots\.txt|favicon\.ico) RewriteRule ^(.*)$ /index.php?/$1 [L] Redirect 301 /testurl /home/This is my.htaccessfile for checking301redirection in my CodeIgniter project.The301redirection...
301 redirection in CodeIgniter having ? issue
You're using Docker Machine in your Windows VM, which is actually going to create a Linux VM inside the Windows VM on your Mac. You can do that, but you need toenable nested virtualization- which I'm not sure you can do in Parallels 7.Instead you can run Docker Machine on the Mac directly anduse Parallels to create the...
I tried to run Docker on a virtual machine.Host : MacBook VM : Parallels Windows 7And error occurs:Is it possible?
Can I run Docker in a Virtual Machine?
Classic: The server configuration wasn't correct so that the directives didn't work. Grrr. My solution is now like I said in my first 'answer': Change the paths to use the sub directory and then redirect old files to that folder:RewriteCond %{HTTP_HOST} site-1.com RewriteCond %{REQUEST_URI} !^/files/site-1/.*$ Rewrit...
I am 'merging' two Drupal sites into one multisite installation. But one of the sites has the files saved at<drupal root>/fileswhile the other one saves them at<drupal root>/files/site-2(which actually is a symlink to<drupal root>/sites/site-2/files). Now I'm looking for a way to 'merge' them without loosing the url st...
Rewrite Drupal files directory to sub folder
It should look something like the default .htaccess for Laravel, which will always serve everything through the/index.phppage without the actual/index.phpin the url ex/index.php/loginwill be just/login, but it's worth noting that this will not force it through the/index.phppage if the file exists.# Checks if the rewri...
I have written a frontendSPAin Javascript. It uses Ember with its routing, fake URL, authentication and all the amazing stuff Ember handles almost implicitly.The backend is written in PHP and the page shall be served by an Apache server.Now, the page works just fine if the request is sent to the root file (aka index) a...
Tell Apache to always serve index.php, no matter what is in the URL
How to differentiate pid 1,17 etc of docker containers with host's 1,17By default, those pid are in different namespace.Sinceissue 10080and--pid host, the container pids can stay in the host's pid namespace.There alsoissue 10163: "Allow shared PID namespaces", requesting a--pid=container:idwhat all the kernel changes a...
How to differentiate pid 1,17 etc of docker containers with host's 1,17 etc pid's and what all the kernel changes are happening when we create a new process inside the docker container?How the process inside the docker can be seen in the host?
Docker Namespace in kernel level
Docker recommends to use a system with odd number of manager nodes. So your initial setup of 4 manager is as good as having 3 manager nodes. It is recommended that you start with 5 nodes, as you are loosing 2 nodes. Also, isn't there any serious issue to be addressed in the way you are using? (loosing so many nodes is ...
Lets say we have a test setup of 10 nodes, 4 managers and 6 workers.When the leader manager fails, the other 3 managers will chose another manager as leader.When this leader as well fails, we only have 2 managers left out of 4. The other managers then sayError response from daemon: rpc error: code = Unknown desc = The ...
Why to chose role as worker for nodes in docker swarm clusters at all?
2 As far as I know: CacheStoreMode.USE should be used if a given EntityManagerFactory has an exclusive write-access to the underlying database thus it implies that there is no chance for an entity instance stored in the shared cache to be stale. CacheStoreMode.REFRESH shou...
The javadocs for CacheStoreMode differentiate in a point I cannot really grasp: The javadocs for the USE mode: Insert/update entity data into cache when read from database and when committed into database: this is the default behavior. Does not force refresh of already cached items when reading from database. Th...
What is the difference between CacheStoreMode USE and REFRESH
There are a couple of reasons why you could get a 404 "Not Found" error.First reason is of course that the endpoint you are trying to use does not exists, but from thedocsit seems like you are using it correctly.Additionally, the GitHub API returns 404 even in cause of authorization errors, instead of returning a 403 a...
I try to use github api to star a repo:curl -X PUT -H "Authorization: token *****************" https://api.github.com/user/starred/fulldecent/system-bus-radiobut the response is always{ "message": "Not Found", "documentation_url": "https://developer.github.com/v3" }And I also try alamofireAlamofire.request(.PUT, ...
how to star a repo with github api
What you're looking for is rolling restarts. Phusion Passenger Enterprise supports this:http://www.modrails.com/documentation/Users%20guide%20Nginx.html#PassengerRollingRestarts
When I push new code from my Sinatra application to my production server, I am currently triggering a restart of passenger by touchingtmp/restart.txt, which loads the new changes. The problem is that the site is essentially down for about 10 seconds during this process.How can I setup my server so that I can completel...
Sinatra: Hot Code Pushes In Production?
It seems to work in place of my password, but is there a way to make it stop asking for my credentials?If you are using the latest Git, you can use:git config --global credential.helper manager-core printf "protocol=https\nhost=github.com\nusername=<me>\npassword=<my_token>" |\ git-credential-manager-core storeThen, ...
I have a bot hosted on another computer. I have cloned the repo onto the second computer and whenever I want to update the files in it, I do agit pull.At this point, it asks for my credentials (username and password).However, recently Github has been sending me emails saying that this method is becoming deprecated and ...
Github git pull asking for credentials. Trying to use the personal access token it keeps bugging me about, can't figure out how
Because you've already pushed those commits to Github, they are public commits and it is generally not recommended to amend them. With that being said, if you are currently the only person who is contributing to this repository, it is an option. I'll leave it up to you to decide if it is a good option.You can amend whi...
When I first created my repository many months ago, I was an amateur and committed the files of the libraries I was using into source control because apparently I hadn't learned about .gitignore yet. I eventually realized my mistake, added the line to .gitignore and removed the libraries from the repo.Everything is fin...
How to remove old commit from Git/Github graphs?
Found the answer after using google in theappropriateway.https://github.com/tdryer/hangups/issues/350#issuecomment-323553771
I'm trying to login to my google account using hangups. Yet I'm getting the following error:Login Failed (Unknown verification code input)I know the password is correct since when I input an invalid password I get:Login Failed (Authorization code cookie not found)Please help! I tried generating an app password, doesn't...
Hangups [github] failed login attempt
Is there a way to run a script right before a process is killed for OOM?No.
Is there a way to run a script right before a process is killed for OOM?My go process is slowly accumulating memory and eventually the kernel kills it because the host is going out of memory.The process exposes pprof metrics over an http socket, and the script I want to run wouldcurlto that socket and save the pprof me...
Execute script or process right before kernel kills app with OOM
. Postgres with Dockerdocker run \ -p 5432:5432 \ --name container-postgresdb \ -e POSTGRES_PASSWORD=admin \ -d postgres2. PgAdmin with Dockerdocker run \ -p 5050:80 \ -e "[email protected]" \ -e "PGADMIN_DEFAULT_PASSWORD=admin" \ -d dpage/pgadmin43. Connection string for PgAdminEnter PgAdmin onlocalhos...
I have created an ubuntu image with nginx, php and postgres.I want to connect the postgres database in my current image withpgadminlocated on my local machine.I have tried using docker inspector to try to use the image ip to make a connection with my local pgadmin but without much success. I've also tried configuring s...
PgAdmin Connecting to Postgres through Docker-compose results in "Unable to connect to server : timeout expired" [duplicate]
1 tonumber is a Lua function for an example like this: tonumber("10") or tonumber(10) I'm sorry I couldn't be of more help. If you could show us the line where the error is located, I can most likely determine a fix for you. Share Follow ...
Im using lapis framework and torch, sometimes the website showing internal server error when trying to load page, and the error from lapis is: [error] 3726#81246: *19 lua entry thread aborted: runtime error: ...s/MyUser/torch/install/share/lua/5.1/xlua/init.lua:227: bad argument #2 to 'tonumber' (number expected, got ...
Lua entry thread aborted: runtime error bad argument #2 to 'tonumber' (number expected, got string)
I found the answer myself after I have tried for 7 days.Dialogflow fulfilment webhook url doesn't support self signed certificates.so, I used heroku and aws lambda.they support https and worked fine with Dialogflow webhook.I hope it will be helpful for everyone.
I am using Dialogflow fulfilment webhook for weather.Dialogflow says "You can use only https:// in fulfillment url when "Google Assistant" integration enabled"so, I tried Self-Signed certificates for https url. but I can't get webhook response.I can't use Self-Signed certificates for webhook url?thank you for anyhelp!
Dialogflow fulfilment webhook url support self signed certificates?
While it's a bit difficult to provide an answer without looking at the manifests, events, or other traces from your cluster, I've often seen this case happens when people misunderstand/misconfigure readiness and liveness probes and/or not scaling correctly.For example, it is possible that you have a probe:readinessProb...
We are running flask microservices on GKE. The main application that accepts all traffic and divides it in other services is restarting.POD's readiness & liveness start going timeout at random intervals. however, we are running 5 pods of particular service and it's stateless application. One thing I have noticed memory...
Rediness & Livenesss failing at random interval
What I have understood from your question is when you enter into the docker environment, you are unable to autocomplete filenames and folders.Usually when you enter into the container via shell, the autocomplete not works properly. Tried to enter into the container using bash environment i.e.,docker exec -it <container...
I created a docker image for my FastAPI application then I created a container from that image. Now When I connect to that container usingdocker exec -it <container-id>through my terminal, I am able to access it but the problem is that autocomplete doesn't work when I press TAB.
How to enable autocomplete when connect to docker container through CLI?
2 When you set memory_limit to -1 the actual limit is memory available to operating system. By available memory I mean sum of physical memory(RAM) and virtual memory(SWAP) minus memory currently used by others processes, and operating system itself. This is hardware limi...
Background I understand how PHP's memory_limit setting can be used to control how much memory is available for PHP to use. As well as using this property to raise/lower the memory limit for your script, you can also set it to -1 to disable the memory limit altogether. However, as we all know, a computer does not have ...
What limits PHP memory when memory_limit is set to -1?
Hopefully you have this solved by now but for anyone else who is struggling with a similar issue. You need to include a space between the if statement and the opening parenthesis.So in your example you need to change the lineif($domain = "co") {toif ($domain = "co") {And everything should work fine.
Nginx Complains about the following part of my configuration:nginx: [emerg] unknown directive "if($domain" in /etc/nginx/nginx.conf:38 nginx: configuration file /etc/nginx/nginx.conf test failedHere is the bit it is talking about:server_name ~^(?:(?\w*)\.)?(?\w+)\.(?(?:\w+\.?)+)$; if($domain = "co") { set ...
Nginx unknown directive "if($domain"
Editing this answer with a more streamlined approach (memory-wise). You have to configure each parameter to accumulate gradients, run your 4 forward passes, run backwards, and then manually zero your gradients.As perhttps://discuss.mxnet.io/t/aggregate-gradients-manually-over-n-batches/504/2"This is very straightforwar...
When training MXNet, if the batch size is large(say 128), and the number of GPUs is small(say 2), and each GPU can only handle a few samples each iteration(say 16). By default, the maximum batch size of this configuration is 16 * 2 = 32.In theory, we can run 4 iterations before updating the weights, to make effective b...
Training MXNet with large batch size and small number of GPUs
It would be faster to have one thread in each block perform anatomicAdd()operation, adding the per-block-value to a single, grid-wide variable in global memory.See therelevant sectionof theCUDA C Programming guide.For a deeper exploration of optimizing reductions (= summation), albeit not necessarily the one you want t...
Hello I am new to cuda programming and I got a problem.I have a variable, let's callfoostored in the shared memory of each block with different value from one block to another. And I want only one thread to sum all of them across blocks. I thought to sendfooto global memory then compute the sum, but is there any functi...
CUDA sum across blocks
Select the Remotes node in the git repository view, use create remote, enter "upstream" as name, select configure fetch. In the following dialog you can specify the refspec exactly as you did when you fetched manually. Afterwards you have 2 entries under Remote and can easily fetch from one by using the context menu o...
I'm using EGit (as provided within the new Eclipse 4.2 Juno release). I have a repository on GitHub which I have forked from another upstream repository. When I create a project in Eclipse from the repository on Github, it correctly sets origin to point to the GitHub repository. But it doesn't yet know anything about ...
Configuring Eclipse / EGit to track an upstream repository
In this case, addinghostNetwork:trueunderspec.template.specto theistiodDeployment may help. This seems to be a workaround when using Calico CNI for pod networking (see:failed calling webhook "sidecar-injector.istio.io)As we can find in theKubernetes Host namespaces documentation:HostNetwork - Controls whether the pod m...
I have successfully installed Istio in k8 cluster.Istio version is 1.9.1Kubernetes CNI plugin used: Calico version 3.18 (Calico POD is up and running)kubectl get pod -A istio-system istio-egressgateway-bd477794-8rnr6 1/1 Running 0 124m istio-system istio-ingressgateway-79df...
Istio Installation successful but not able to deploy POD
1 On a debian server I followed these steps. It might not be the most secure solution as I read here, but it works (wordpress can edit, upload and upgrade - and I can upload using sftp). Create a new user "user" Create a new group "group" (you can choose to use www-data as...
I am trying to manage file permissions on a debian webserver that runs nginx, so that wordpress can edit, upload and upgrade without having to use ftp. I also want to be able to login using sftp with my user account. I am aware of the fact that this question has been asked before, see here or here, but following the s...
LEMP + wordpress file permissions to be able to edit, upgrade and use sftp client
The stars*are probably placeholders to hide the credentials (username and/or password). So most likely the stars are not used (passed to the server), but only shown in the input to hide security sensitive credentials.As to why it doesn't work, one explanation is that maybe pip, ssh, and/or git figured out that you have...
I'm trying to install a certain package from github repository by runningpip install git+ssh://[email protected]/username/package.gitResult is as following:Collecting git+ssh://****@github.com/username/package.git Cloning ssh://****@github.com/username/package.git to /some_local_path/ ERROR: Command errored out with ...
Why does pip install replaces the "git@" part of path with "****@" when trying to install from github repository?
23 Iterating through a user's repositories is sub-optimal because it misses any commits they make in other repositories. A better way is to use the Events API instead. The first step is to get the user's events: GET /users/:username/events Next you need to iterate through ...
I'm trying to build a method in which I can access a Github user name, and publish either all commits or at least a number of commits from that user. Is there a call to GET user/repo/commit association or a direct user/commit? Right now, I think what it will take is the following: Obtain repos associated with a parti...
Github API - retrieve user commits?
If df_1 and df2 both use 500MB of memory, then df_append = df_1.append(df_2, ignore_index = True) will build a new dataframe which will use more or less 1000 new MB, for a 2000MB total. But beware, if a dataframe can be serialized into a 500MB file (for example in cdv format), it is likely to use far more memory...
If you append 2 pandas dataframes and assign to a variable, will it take space in memory? For instance, if I have df_1 which weights 500MB and df2 also weighting 500MB, after running this code below: df_append = df_1.append(df_2, ignore_index = True) Will my memory usage be 2000MB (500 + 500 + 1000), or will it be 10...
If you append 2 pandas dataframes and assign to a variable, will it take space in memory?
11 There are a few options here - you can go directly with bash and do something like this: if test -f "$FILE"; then #file exists fi or use one of the existing actions like this: - name: Check file existence id: check_files uses: andstor/file-existence-action@v1 ...
I have the following git action which allows me to download an image. I have to make sure if the file already exists to skip the "Commit file" and the "Push changes" How can I check if the file already exists if it already exists nothing is done. on: workflow_dispatch: name: Scrape File jobs: build: name: ...
Github action check if a file already exists