Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
The CSR can be deleted. Whenever your certificate expires, you can generate a new CSR.The private key will be used by your web server along with the certificate to establish the SSL connection. They are used either separately, or together as part of a keystore...it depends on how your web server is configured. You m... | Ok, so you're purchasing an SSL certificate for your web app. After you create the private key with openssl and you use that to create the certificate signing request, you send the CSR to the certificate issuer and they send you the certificate, right? Now what does one do with the CSR and the associated private key af... | Should I save Certificate Signing Requests and associated Private Keys? |
You don't need to use an OAuth client, you just need to store the access token provided to you by the service.
There actually is a wrapper for the Github API: https://github.com/owainhunt/UAGithubEngine.
Make sure that you search around before posting.
|
I was trying to find some already existing Objective-C library / SDK to communicate with GitHub repositories (browsing / posting issues, etc...) from iPhone. I am very much surprised I did not find anything.
Are there any nice Objective-C framework / kit (like facebook-ios-sdk for instance) or do I have to develop ev... | GitHub Objective-C SDK for accessing GitHub API from iPhone |
The regex you're using in theRewriteRulewon't match your example URL, as it excludes both+and&. Sometimes, by allowing specific characters, you implicitly exclude other ones you may want.Try changing the rule to match anythingexcepta slash (/):RewriteRule ^view-([^/]+)/$` post.php?id=$1 | Here is my .htaccess code,<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteCond %{REQUEST_URI} /view-([a-zA-Z0-9_-]+)/$
RewriteRule ^view-([a-zA-Z0-9._-]+)/$ post.php?id=$1
</IfModule>i.e, id=$1 = my-first-&-thread++ from post.php file.the link becomehttp://site.com/view-my-first-&-thread++/and gives error 404.I wan... | Rewrite rule not working as expected |
You cannot change the EC2 instance's region. However, you can create an Amazon Machine Image (AMI) from the instance and then copy that to the desired region. Then launch the instance in the new region from the AMI you created.Similarly with RDS. While you cannot change the region, you can create a snapshot to S3 and r... | I would like to know if I can change the region of my EC2 instance?The region I use is Ohio, the reason I decided to change is that I was studying AWS and I learned about latency. I don't really know if I'm sure what latency is, but I understand that my server is located in Ohio, and if my clients don't reside in Ohio,... | Is it possible to change the EC2 instance region? |
First Delete your .git(hidden folder) folder inside your project directory.
then,
1)git init
2)git remote add origin YOUR_GITPROJECT_URL
3)git add . ->dot after add then space then dot
4)git commit -m "COMMIT_MESSAGE"
4)git push -u origin master
|
I'm starting with Ionic 3, but i have a problem to upload (commit, push) changes from my local machine to my github repository.
I follow those instructions:
step 1:
step 2:
step 3:
step 4:
I got the message "nothing to commit ..."
step 5:
As you can see, there are files inside the project (sorry by the arrows):
s... | How to commit-push ionic 3 blank to my GitHub repository? |
2
i just figure out that is not possible with other protocols to handle dns names, ill just use port redirection provided by docker
Share
Improve this answer
Follow
answered Mar 20, 2016 at 10:46... |
I'm working with a server in the cloud with N dockers containers, in the server I have one nginx that redirect based on the domain to my docker containers, I can perfectly redirect my http traffic, but I'm getting troubles with when it is mysql since it uses a protocol different to http, I tried some solutions like be... | nginx as proxy to my mysql server in docker |
If you are using Eclipse, then do following steps :Open Eclipse > Select Git Repositories Perspective
Right click on yourRepository > Properties > Configuration > AddEntry (Key = https.postBuffer, Value = 52428800000 )Click Ok.
Try push again.ShareFolloweditedJan 22, 2016 at 11:15answeredJan 22, 2016 at 11:12278718... | I'm uploading project on github. But i am getting this error:Can't connect to any repository:
https://github.com/... (https://github.com/..: Error writing request body to server)Is this error normal or What is the solution to solve.? | Getting github project upload error |
I have found out that using graph of type "Text" in grafana, you can add inline access to variables.
Steps:create a variableoptional: set the variable "hide" mode to "variable" (unless u actually need it for your dashboard).create a graph of type "Text" and in the content use $my_variable_name to reference the variable... | Is there any way to create some "info box" which doesn't relate to numbers?For example, querying the following:container_cpu_usage_seconds_total{namespace="test4", pod=~"api.*", container!=""}will return this result:container_cpu_usage_seconds_total{container="api", image="myacr.azurecr.io/api:3.3.0", pod="api-f6b7657c... | Reference variable value using Grafana text graph |
In Nginx, you may use this redirect rule:
rewrite ^(/onglet/.*/alsace)/?$ $1-est permanent;
Please understand that the query string is passed over as is to target after redirect.
Rule Explanation:
^: Start
(: Start capture group #1
/onglet/: Match /onglet/:
.*: Match 0 or of any characters
/alsace: Match /alsace
... |
I'd like to redirect an URL with different query string cases :
/onglet/lycee/alsace ->
/onglet/lycee/alsace-est
/onglet/lycee/alsace?statut[]=sous-contrat&statut[]=catholique ->
/onglet/lycee/alsace-est?statut[]=sous-contrat&statut[]=catholique
/onglet/lycee/alsace?statut[]=catholique ->
/onglet/lycee/alsace-est... | How to redirect an URL with optional unordered query string and keep it with Nginx |
Trouble-shoot with curl from the commandline. For example, http://aws.amazon.com/
$ curl -i http://aws.amazon.com/
HTTP/1.1 200 OK
Date: Tue, 08 May 2012 19:55:14 GMT
Server: Server
x-amz-id-1: 0C8YK9MYJMCCSE8R09E5
x-amz-id-2: zx0HtU9Ub39tobXNBiMRLuE2mvnhQo4Kh1fyj0MdJcg=
Cache-Control: max-age=0
Expires: Tue, 08 May 2... |
Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.
I am getting this error on my amazon EC2 server. This doesn't happen on a specific page on my website. I don't think it is Chrome browser bug either because when I open safari I don't get the error, I get a white page. Not... | Error 324 empty response on Application hosted by AWS |
As based in comments, you are using thejekyll-midnight-theme, copy the default layout file of thejekyll-theme-midnightrepo into_layoutsdirectory in your Jekyll website.Create the/_layoutsdirectoryCopyhttps://github.com/pages-themes/midnight/blob/master/_layouts/default.htmlinto/_layoutsNow edit/_layouts/default.htmland... | I have a GitHub Pages site, and I don't want to use the raw html to develop the site yet because non developers on the team will be pushing.The problem is that thedocument.titlecontains "by [username]" at the end. I want to remove that and just make it be the beginning text.I already triedtitle: [custom title]in Jekyll... | Remove "by [username]" in a GitHub Pages document.title |
Refer to section "Configuring Redis as a cache" inhttp://redis.io/topics/configWe can set maxmemory-policy to allkeys-lru to clear inactive content from redis. This would work for the usecase I have stated.ShareFollowansweredJan 20, 2014 at 11:34vinothsvinoths1,09122 gold badges1010 silver badges1313 bronze badgesAdd a... | I am using redis as a cache and would like to expire data in redis that are not actively used. Currently, setting expiry for an object deletes an object after the expiry time has elapsed. However, I would like to retain the object in redis if it is read atleast once before the object expires.One way I see is to store a... | Redis as cache - reset expiry |
To achieve what you want with the least change to what you are doing, switch to this sequence of commands:
git clone [email protected]:superflycss/utilities-layout.git
cd utilities-layout
(same so far, but then:)
git reset --hard e4ea7bf73124968e2f68012f77837df2046fd6e5
(note the addition of --hard here), then back ... |
I need to revert this repository to the commit e4ea7bf73124968e2f68012f77837df2046fd6e5. In other words I want to completely wipe all commits that come after that.
Based on one of the answers in this post here's what I'm doing:
git clone [email protected]:superflycss/utilities-layout.git
cd utilities-layout
git rese... | Reverting the working copy to an older commit? |
Just in case anyone stumbles upon the same problem. This was abugin SonarQube 4.5.4 that was fixed with4.5.5So just updating the basic SonarQube Installation (this bug was not plugin related) fixes the issue. | This question is based onSonar-Cobertura custom filtersbut as this was about Cobertura and my problem is with jacoco i think a new one is better.Now that i had time to test the suggested property i must say it doesn't seem to work as expected. I wanted to exclude all content in a "command" package from the test coverag... | Sonarqube test-coverage filter (jacoco) |
45
I wouldn't commit any specific IDE configuration into the repository.
2 important reasons are:
IDE configuration almost always involves absolute paths in disk, where different users may not have the same...
You don't want to constraint all users to use the same IDE conf... |
This question already has answers here:
IntelliJ IDEA 9/10, what folders to check into (or not check into) source control?
(7 answers)
Closed 8 years ago.
Should I commit my idea f... | Should I commit my `.idea/` folder? [duplicate] |
You don't need to use crazy escaping. Use[[ ... ]]provided bybashinstead of old (and error prone)[ ... ]:So use:0 0 1-7 3,6,9,12 * [[ $(date +\%a) == Sun ]] && /script.shAnd to install it automatically use:(crontab -l ; echo '0 0 1-7 3,6,9,12 * [[ $(date +\%a) == Sun ]] && /script.sh') | crontab -PS: Make sure to setSH... | I have a Cron Job running quarterly on every first Sunday of the Month:0 0 1-7 3,6,9,12 * [ "$(date '+\%a')" == "Sun" ] && /script.shNow I want to install it automatically using echo like:(crontab -l ; echo "0 0 1-7 3,6,9,12 * [ "$(date '+\%a')" == "Sun" ] && /script.sh") | crontab -while escaping\"Sun"\works fine I ca... | Escape double and single quotes in Bash |
Fork the repo (by clicking Fork on GitHub) and add a new remote:
git remote add hub YOUR-CLONE-URL
Then simply add, commit, push (git push -u hub master).
If you can provide a link to your fork I can give you the exact commands.
|
I am new to git so please go easy on me :)
I have cloned a repo from Github and made some local changes. But now I would like to fork the original repo and push local changes to the forked repo.
Is this possible?
| Github - clone repo then push to my fork |
There is a Microsoft Delta Compression API that will allow you to diff and patch, however I have investigated this route before and found that using rSync or robocopy is a much easier route - especially as it will be quite hard to apply the patch/changes from the server side unless you build your own custom FTP server... |
I am trying to implement a new feature in our Delpi project that will help our users to make backups online on our servers, so I've used Indy FTP component to build a form that will upload / download the user files or folders
But I need to offer the ability to do incremental backups. Where our users can only upload ON... | Incremental online backup using Delphi |
4
Now that Lambda Layers are available you can use one Layer to share a jar file between multiple Lambda Functions.
Similarly to Lambda Functions you create Layers using a zip file. To share your custom code you'll need a zip file like follows:
my-layer.zip
└ java/lib... |
Programming Language - Java
We have 10 different aws lambda function. here we need to have same functionality for all the 10 lambda function. Instead of duplicating the same functionality 10 time. We can create common functionality and packaging as a framework jar and call them in each aws lambda function.
My question... | How to reuse the code in all aws lambda function? |
I created an admin screen where I could easily let every user switch from branch in there personal development environment (without access to the server). I did this by usingexecin PHP and using git client hooks (post-merge)https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooksto update the rights of all folders and ... | We have an application written in Yii 1.1, we maintain and control all aspects of the application and servers. It lives on a variety of servers. We maintain the code base locally through git and publish to our GitHub repo. When we roll out updates or bug fixes we have to go into each box and update them one at a time. ... | Using yiic to update application via github |
In case you are using Helm, you need to add this grafana.ini configuration:## Using default values from https://github.com/grafana/helm-charts/blob/main/charts/grafana/values.yaml
##
grafana:
enabled: true
namespaceOverride: ""
# For mapping a path to ambassador
grafana.ini:
server:
root_url: http://l... | I have deployed Ambassador and grafana, then deployed Grafana service to expose via API gateway[root@am26 granafa-service-21]# kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
ambassador NodePort 10.107.4.224 10.134.136.256 80:3... | Ambassador Gateway : Grafana not redirecting properly in kubernetes environment |
This is most likely due to enabling ofMultiViewswhich runs beforemod_rewriteand rewrites/page to /page.php.Add this line on top of your .htaccess to disable it:Options -MultiViews | I have a simple rewrite that changeshttp://website.com/page.php?id=1intohttp://website.com/page/1using the following rewriteRewriteRule ^page/(\d+)/?$ /page.php?id=$1 [L]The rewrite works, it displays the page (i don't get a 404), but it doesn't appear to be passing through the id from the URL.To test this I basically ... | URL Rewrite - $_GET variable not passing through |
After trying some queries found the solution -My use-case has 2 metrics as below -container_cpu_usage_seconds_totalmachine_cpu_coresIn both metrics I found common label askubernetes_io_hostnameI grouped both the metrics with the above label with the following queries -(sort_desc ( max (rate (container_cpu_usage_seconds... | I'm using prometheus with grafana. I have a usecase where I have to take variables dynamically and need to perform divide operation which to be performed for each variable which is coming dynamically so can plot graph at each variable level.eg. first metrics is -rate(container_cpu_usage_seconds_total{id="/",instance=~'... | Grafana - How To plot the metrics for each variable which is passed dynamically |
Usually means you have an invalid HTTP/2 header. HTTP/2 is more strict than HTTP/1.1 in this regard.So HTTP header names with colons, spaces, new lines (e.g. opening quotes but forgetting to close the quotes in your config) and the like in the name are invalid (these can exist in the header values but not in the names)... | When I deployed my web application to an AWS environment with anApplication Load Balancer (ALB), some of my web service endpoints would not return any data and my Chrome browser would report this error for some http calls:ERR_SPDY_PROTOCOL_ERRORUpon findingthis recommendation, I disabledHTTP/2support in my ALB configur... | Why did I have to disable HTTP/2 in AWS Application Load Balancer to prevent ERR_SPDY_PROTOCOL_ERROR? |
2
Either put http instead of https in your Authorization callback URL
in your GitHub OAuth apps settings.
http://www.example.com/oauth/complete/github/
Another Option
settings.py
SOCIAL_AUTH_REDIRECT_IS_HTTPS = True
Share
Improve this answer
... |
I keep getting this same OAuth error when trying to work with the github api. Sometimes it goes away but most of the time it stays. I have tried resetting my secret key, revoking all tokens, clearing safari cache but no luck. This is the error : error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match... | Github api error redirect_uri_mismatch |
Try to reuse the bitmap and the canvas where you draw. Each time when you redraw the overlay, a new bitmap is allocated. | When I zoom in/zoom out from time to time in my map activity I get in console an "OutOfMemory error:bitmap size exceeds VM budget". The app doesn't crash on my developement phone, but I'm not sure If this issue won't cause a problem in future.Note: I display maximum 30 custom markers on map.The error stack doesn't refe... | Android maps zoom - OutOfMemory |
1
You need to set up a central, bare repository and have everyone clone that. Then they push and pull from that central repository to stay coordinated. There are various workflows of which the feature branch workflow is a good place to start.
Rather than doing this yourself... |
We are a small team doing our own project and we need to somehow add a repository to each participant, so that later we can show what we did, how can this be done correctly?
We tried to google but did not really understand how to do it, leaving just a link like 'I took part in this project' seems to us not such a righ... | How can I clone a repository in which I am developing with someone? |
The map_fn version is not parallel. Hence I used the following (not so clean) code to handle batches:un_3_00, _ = tf.unique(un_2[0,:])
un_3_01, _ = tf.unique(un_2[1,:])
un_3_02, _ = tf.unique(un_2[2,:])
... | I would like to find the size of a set of integers (no repetitions) for many sets. Currently
I use...
un_3 = tf.unique(dataset_iter.get_next())
with tf.Session() as sess:
while True:
result = sess.run(un_3, feed_dict={Y: some_other_data})
...save result..to achieve that. But this works only on 1D tens... | Tensorflow unique on batches |
Answering the two parts separately:1) It is very difficult to say if you should be concerned about not getting an A on this, because the requirements do not seem to be public.BEAST attack is an interesting and somewhat complicated, but effective, attack which uses a vulnerability in SSLv3 and TLSv1.0. The attacker need... | The test is here:https://www.ssllabs.com/ssltestYou can see Heroku's grade here:https://www.ssllabs.com/ssltest/analyze.html?d=heroku.com. It gets a mix of "B"s and "A"s for different servers.My site iswww.wealthypockets.com. You can my test results here:https://www.ssllabs.com/ssltest/analyze.html?d=www.wealthypockets... | Heroku Sites using SSL get a "B" on the SSL Labs Test |
I found a tutorial about the very thing you asked medium.com/git-tips/githubs-reflog-a9ff21ff765f – evolutionxbox 1 hour agoThis fixed it for me. Thank you.Github does log every change you make as a commit, but it's hard to find it via the Web UI. Using cURL works a treat. | I made some changes to my project using the web editor at github.com, and then accidentally ran a force push from my development server, which overwrote the changes I made online.The GitHub.com commit history only shows the pushes I did from my server.
How can I roll back to the online changes I made? | Github - revert to changes made online at github.com |
No, I don't think it's possible. Only the public certificate is shared through the request to verify authenticity, then the private certificate remains in the server thus the name "private". You can checkhttp://www.steves-internet-guide.com/ssl-certificates-explained/for more information on this. | This question already has an answer here:How SSL certificate prevents man-in-the-middle attack? [duplicate](1 answer)Closed2 years ago.As I understand it, an SSL certificate is supposed to authenticate a host as it's signed by a third-party organisation.If a MitM were to intercept this showing of this public certificat... | Can't an SSL certificate just be copied if it's public? [duplicate] |
Two things:You need to pass the flag to the config file you've set: --objstore.config-file=<your_file_location_here>Then, in your config (abbreviated):2)type: S3
config:
sse_config:
type: ""
kms_key_id: ""
kms_encryption_context: {}
encryption_key: ""
sts_endpoint: ""http... | I have started the implementation of thanos store with S3 for prometheus for the first time and I am getting this error message while executing thanos-store configuration.
Can someone please help me debug the error?Message: level=info ts=2022-02-28T16:37:31.940118532Z caller=factory.go:49 msg="loading bucket configur... | Thanos Storage Configuration (S3)- facing issue at thanos-store |
The secret data is stored in encrypted form in etcd only. Upon retrieval the Kubernetes API server decrypts it before it is used downstream, which is, pod in your question. In general, encryption at rest encrypts upon write to the said storage medium and decrypts upon read. The pod is not the reader, api server is.http... | Let's assume that I have implementedencryption at rest using a KMS providerand have encrypted my secrets within the etcd. Furthermore, let's assume that I have specified that secrets shall be mounted as files onto the pods.Are the secrets going to be stored encrypted inside the secrets file in the pod? | Are encrypted at rest Secrets stored encrypted inside the pod in Kubernetes? |
Not that I know of.GitHub supportconfirms (throughOP Joe Gatt'scomment)The only way to do this would be to pass the link through my own service which would use the github's http referrer header to determine which branch is being referenced and then fetch the appropriate image from Travis CII would rather make one Travi... | In my github repo'sreadme.mdfile I have a Travis-CI badge. I use the following link:https://travis-ci.org/joegattnet/joegattnet_v3.png?branch=stagingThe obvious problem is that the branch is hardcoded. Is it possible to use some sort of variable so that the branch is the one currently being viewed? | Referencing current branch in github readme.md |
Forking such a large project might take quite a bit of time.
Interrupting it before completion would mean that HEAD might not have been set.
Try and delete that repo (created in your account), and fork again, this time leaving the fork process running as long as it will need.
Regarding creating a pull request, you do ... |
I am actually new to GitHub and don't know much of its functionality. So my problem may be very fundamental. I googled, and searched in stack-overflow too. But did not find any solution.
Recently, I forked Linux to simply serve my curiosity. But the process was taking too much time to finish. So I pressed the "refresh... | GitHub: Failed to load latest commit information |
After some searching I found out that settings of Docker's user interface are stored in%APPDATA%\Docker\settings.json(e.g.C:\Users\olly\AppData\Roaming\Docker), memory settings are defined inmemoryMiBproperty.The following solved the problem on my environement:quit Dockermodifysettings.jsonfile usingnotepad %APPDATA%\D... | ScenarioWindows 10 ProfessionalDocker 18.06.1-ce running in Windows container mode4GB of available memory on host systemusing Hyper-V virtual machineProblemWhen trying to "switch to Linux containers" via Docker's taskbar item the process fails after a couple of seconds showing an error about "Not enough memory to start... | How to reduce default VM memory for Docker Linux containers on Windows |
If you just want a URL for opening a blank issue, all you need is to provide a link tohttps://github.com/<user-name>/<repo-name>/issues/new.If you want the issue to have prefilled text, you can use query parameters to generate the URL.This help pagedescribes how this can be done.The easy way would be to create an issue... | 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 questionWhen you go tohttps://learn.microsoft.com/en-gb/aspnet/core/getting-started/?view=aspnetcore... | github issue feedback like on microsoft docs [closed] |
That functionality currently does not exist, the major problem with it would be where to store that information between startups, access would have to granted to a directory in the file system, etc.The usual way to speed up startup is to do component scan of subpackages that contain only the set of classes that are sca... | Is there anyway to configure Spring to cache component-scan / autowiring information to improve startup times from one start to another? I'm investigating using GAE for a Spring app for the first time, and according to theGAE docsthey recommend pretty much disabling all the practical features that Spring offers to mak... | Can Spring cache component-scan information / autowire to improve startup times? |
seems like I got the answer, as per the articlehttps://www.elastic.co/guide/en/elasticsearch/reference/6.2/_basic_concepts.htmlBy default, each index in Elasticsearch is allocated 5 primary shards and 1 replica which means that if you have at least two nodes in your cluster, your index will have 5 primary shards and an... | I am trying to install Single Cluster - multi nodes environment of Elastic search Environment on my local machine. Got confused over concept of Shards and replicasCase 1 ) in below pic : emp index no of shards =1 and no of replica =1 , that seems fine as primary node dont contains replica and number of shards should b... | How basically Shards and replicas distribute itself |
The short answer is: no, you don't have to add more Ingress controllers when autoscaling.One Nginx Ingress controller is enough and you don't have to add/configure more in a situation when more application pods will be created. You just need one controller.If you need to know more details regarding the HPA consider vis... | I am going to deploy an application on Azure kubernetes with the following configurationKind : serviceReplicas : 4Horizontal pod scaling : ~8Ingress : Nginx Ingress controllerAs I have the Horizontal Pod scaling, when the load increases number of service Pod will increase automatically. However, should I also need to i... | Azure kubernetes - Number of Nginx controllers? |
Need to add the following to your web.xml<servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.mortbay.jetty.servlet.DefaultServlet</servlet-class>
<init-param>
<param-name>cacheControl</param-name>
<param-value>max-age=3600,public</param-value>
</init-param>
</servlet> | I was reading this:http://docs.codehaus.org/display/JETTY/LastModifiedCacheControlIt saysThe Jetty default servlet allows the cache control header to
be set for static content by using the cacheControl init parameter
using:<init-param>
<param-name>cacheControl</param-name>
<param-value>max-age=3600,public</... | How to configure cache for static resources in web.xml for Jetty? |
It's your proxying. The *_path helpers generate strings of the form
/path
while the *_url helpers generate strings like
http(s)://h.o.s.t/path
So thanks to your proxy setup, by the time a request gets to Rails, it's been tweaked so that the host is listed as http://unicorn_dev_site, which Rails faithfully replicate... |
I have a simple unicorn+nginx setup on cpanel, deployed with capistrano. The nginx.conf server block looks like this:
server {
error_log /var/log/nginx/vhost-error_log warn;
listen 123.456.789.0;
server_name my.dev.site.com www.my.dev.site.com;
access_log /usr/local/apache/domlogs/my.dev.site.com-bytes_log byt... | Unexpected behavior with resource_url on Nginx and Unicorn |
Do it like this:git checkout -b <branch-name> <SHA> | When trying to use git branch, I got "fatal: not a valid branch point".
I didn't find a way to do it remotely in GitHub.
So how can I do it? | Creating a Git branch based on a commit done by someone else |
These architectures usually have one accumulator. Otherwise you'd need a dual port ram to access two operands at the same time.
You could latch one memory value, but that's just a less versatile accumulator.
Memory writes are done on a different clock/ clock flank than reads.
Memory-const operations use a different o... |
I'm doing a theoretical assignment where I design my own ISA. I'm doing a Memory-Memory design where the ALU receives inputs from memory and outputs back to memory without using any registers. This is an outdated method and registers are more effective now, but that doesn't matter for my assignment.
My question:
If th... | Need Clarification on Memory Accessing (ISA/MIPS) |
You should be using PodPreset object to pass common environment variables and other params to all the matching pods.Add labelsetproxy:trueto all podsThe belowPodPresetobject would injectHTTPS_PROXYandHTTP_PROXYenvironment variable to all pods that match labelsetproxy:trueapiVersion: settings.k8s.io/v1alpha1
kind: PodPr... | We have to set https_proxy & http_proxy for internet access from our cluster instances.https_proxy & http_proxy environment variables should be exported to all pods so that application can access external sites.We are using helm charts so is there common place we can set these environment variables so all pods can acce... | Kubernetes - Shared environment variables for all Pods |
<div class="s-prose js-post-body" itemprop="text">
<p>You can use it without doing anything special. If you have a local image called <code>blah</code> you can do <code>FROM blah</code>. If you do <code>FROM blah</code> in your Dockerfile, but <em>don't</em> have a local image called <code>blah</code>, <em>then</em> Do... | <div class="s-prose js-post-body" itemprop="text">
<p>I'm working on a dockerfile.
I just realised that I've been using <code>FROM</code> with indexed images all along.</p>
<p>So I wonder:</p>
<ul>
<li>How can I use one of my local (custom) images as my base (<code>FROM</code>) image without <code>pushing</code> it to ... | How can I use a local image as the base image with a dockerfile? |
This is known issue with docker client 19.03.09. It happens if the daemon version supports only max api-version 1.39. Client is not downgrading the API version to match the server supported version automatically. It should be fixed in 19.03.10.https://github.com/docker/cli/issues/2533As a workaround, you can set the do... | After installing docker 19.03.09, any docker command involving the docker daemon is throwing the following error.Error response from daemon: client version 1.40 is too new. Maximum supported API version is 1.39 | Error response from daemon: client version 1.40 is too new. Maximum supported API version is 1.39 |
I faced the same issue in eclipse.The latest version of SonarLint for IntelliJ (4.0.1) includes a fix for the problem.If not try including it in jenkins, please check and let us know.ShareFollowansweredJun 23, 2019 at 9:12Arun PrasatArun Prasat34011 silver badge99 bronze badges1Hi Arun ! Thanks for answer ! There is ... | I'm trying to set up Sonarqube for the project. I managed to configure it about a month ago but there I encounter an error. The error may occur for other things than Sonarqube, so if you know how to solve it I am a taker. The mistake is when I run the command : "sonar-scanner" in my project folder.Error occurred during... | Sonar-Scanner : Error java/lang/NoClassDefFoundError: java/lang/Object |
1
Check these steps:
-Your repository is public.
(Settings>General>Danger Zone>Change repository visibility>Make public)
-The size of the files are not very large.
-The Repository link is in HTTPS and not in SSH.
EDIT:
I found this question about the private repository and... |
I Have seen several posts regarding this feature to preview HTML file on GitHub. Some suggest prepending https://htmlpreview.github.io/ before the real URL and some suggestions to create GitHub pages that I don't want to do now because then I have to re-create most of the thing on .yml
But my confusion is why this lin... | Github html preview from html file not working |
I just solved my problem! The solution was at the time of registration of the image. It was necessary to convert it to base64_encode. With this PHP script I could generate an INSERT correctly, precisely because the string does not contain any special characters.
|
I am developing a system where the user can register and search for images. These images are saved in a table that has a field MEDIUMBLOB.
The problem I have starts with the fact that the system must also make a backup of the database, that is, it will also need to export and import data.
When I do the backup, for... | How to import / export database with field MEDIUMBLOB? |
Even though RDS hosts themysqldatabase you still need the appropriate packages to talk to the database such asphp-mysql. In addition, themysqlpackage is just the client wheremysql-serverwould actually install the server service which you don't need when using RDS. You can safely installmysqlandphp-mysqland likely achie... | We have AWS Amazon Linux EC2 instances that connect to separate AWS RDS instances running MySQL.We want to run themysqlcommand on the RDS instances to process a number of large SQL files that contain thousands of SQL statements. However, we need to be able to run these commands from a PHP application installed on the E... | How do I run the mysql command from the command line of an AWS RDS instance that is separate from the EC2 instance I am on? |
1
You could use the slack-send GitHub Action to send data into Slack from your GitHub Workflow.
This Action can:
Send data to Slack's Workflow Builder (requires a paid Slack instance).
Send data via a Slack app to post to a specific channel (use an existing custom app or... |
I want to receive result of CI test in github actions to Slack.
Something like this:
Anybody knows how to do this or which tool should be used?
.github/workflows/verify.yml:
name: Verify CI
on: [push]
jobs:
tests:
name: Tests
...
| Send github actions->CI result to Slack |
1
AFAIK, you cannot change the source branch once you have created a PR. Note that you should not rename master. You should keep master so that you can keep up to date with any changes to the main repo. Instead, you will need to create a new branch for your changes and issu... |
I have a fork of a repo which I have made commits to the master branch, then submitted a pull request which is still waiting for approval.
Now, as a git newb, I realize I should have done that in a branch, as I now want to do another change independent of the first change to do a separate PR.
I am wondering how I can ... | Git - Rename branch with pending PR's without breaking things |
0
The GlobalMemoryStatusEx function provides high-level information of that kind. See the documentation for the MEMORYSTATUSEX structure for a description of what is reported.
Share
Improve this answer
Follow
... |
Is there any API's in windows, to get the RAM memory info like...Total RAM, Available RAM , shared RAM, buffered RAM, total swap space size)
I have checked in msdn meorymangement API's, but couldn't find much info.
Can anyone guide me on this.
| windows API's to get the RAM information |
This should work:0 12 * * tue _DV=`date +\%F --date="9 days ago"`; ~/scripts/test.sh $_DVUnfortunately, there are several issues to overcome here. First, the fact that cron now supports "environment settings" can be very misleading. Folks with shell script experience might easily assume that the full power of the sh... | I have a problem using the linux 'date' command within a cronjob.Linux version: CentOS Linux 7 (Core)What i need is the date of 9 days ago as a parameter to my test.sh script.
Today is 10-08-2016, the job that needs to be executed is:/scripts/test.sh 2016-08-01My code in crontab:DATEVAR=$(date +%F --date="9 days ago")
... | Use linux date command in cronjob |
Don't use scope classes. Those are effectively deprecated and remain only as legacy of old days. There is a Phobos helper that achieves similar effect. Your example re-written:
import std.stdio;
import std.typecons;
alias ScopedBar = typeof(scoped!Bar());
class Bar {
this() { writeln("Bar"); }
~this() { wr... |
In D, it's possible to allocate classes on the stack using scope, i.e.
void foo()
{
scope example = new Bar();
}
Now, if class Foo has class Bar as a member, is there any way to store Bar in-place inside Foo and have it tear down with Foo a la C++?
I had hoped that
import std.stdio;
class Foo {
this() { writ... | In D, is it possible for an object to hold a member object internally? |
Yes, as of SAM CLI v1.98.0. That release introduced support for Lambda shareable test events.
Shareable test events are test events that you can share with other users in the same AWS account. You can edit other users' shareable test events and invoke your function with them.
Shareable test events are visible from t... |
I know I can invoke lambdas with sam local and also the command line.
But sometimes it's convenient to test the lambda by invoking it through the UI by configuring a test event there.
Is it possible to include sample/test event in the sam template so when it's deployed the test event is populated in the UI for me? So ... | Can I include a test event in a SAM template that is deployed to the lambda web console? |
One (probably obvious) workaround would be to installunionfswithin the container and then unify all required partitions together with it:docker run -v /path/to/d1:/mnt/d1 -v /path/to/d2:/mnt/d2
# and within docker container:
mkdir -p /mnt/joined
unionfs /mnt/d1=RO:/mnt/d2=RW /mnt/joinedBut it is ugly and I hope there i... | If I have a directory d1/, I know I can mount it at /mountPoint inside a Docker container by doing this:docker run -v /path/to/d1:/mountPoint ...However, I have two directories d1/ and d2/ (let's say they contain files a.txt and b.txt respectively).I want to mount the union of these two directories at /mountPoint in my... | Union mounts into Docker containers |
From the comments in your question, I expect you are running up against the common problem of Alpine base images not being populated with theca-certificatespackage, which contains a number of root CA certificates to anchor your root of trust.Add the following command to yourDockerfileto ensure these are installed in th... | When I deploy a docker image toKubernetes Engine,the pods can't be initialize, pods are just making a simple get request tohttps://jsonplaceholder.typicode.com/I get an error messagecertificate signed by unknown authority | certificate signed by unknown authority Kubernetes Engine |
yes, as thekubectl and kptsays, the first step in getting prepared to install cluster is installinggcloudthat is CLI that manages authentication, local configuration, developer workflow, interactions withGoogle Cloud APIs.
Without is you simply cant work with objects(in your case you need to enablekpt anthoscli beta) a... | I am trying to use KubeFlow on GCP and I am following thiscodelab, but "click-to-deploy" is no longer supported so I followed the documentation of "kubectl and kpt". However, I keep getting this "You cannot perform this action because the Cloud SDK component manager is disabled for this installation." error and none of... | Is KubeFlow still supported on GCP? |
I think I fixed it. For anyone else having similar problems, I used the following rules in/etc/apache2/sites-enabled/000-default.conf:RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]This redirects any URL that starts withwwwto its naked equivalent, which has t... | I have an application that was written using Laravel, and it generates dynamic subdomains. Thus, I have a wildcard(*) routing mechanism. Due to several complications I'm having with SSL, I need to redirect thewww.example.comroutes to the naked domain (example.com), preferrably in the Apache .conf files using RewriteRul... | Apache: Redirect WWW to naked domain |
I ended up using a variable. This solved the problem:
server {
listen 80;
ssl off;
location / {
proxy_http_version 1.1;
proxy_set_header Host 'some-host.s3.amazonaws.com';
proxy_set_header Authorization '';
proxy_hide_header x-amz-id-2;
... |
I have an S3 bucket with the static contents of my site and I have an EC2 instance that receives all of the traffic to the site.
I want to have every request to the EC2 return a specific file from my S3, but I want to keep the URL the same as the user inserted it.
Example: Let's assume that my file is located in /path... | Nginx pass all requests to specific S3 file |
If you could share the code that you put into the yaml file (GHA itself), that would make possible to give you better help.
So I did such things in both personal account and organization accounts, and found the following rules:
the packages scope must be the user/org name. like @mycompany/package-name
when you do set... |
I'm in a private GitHub repository and I need to publish my scoped packages in npm.pkg.github.com.
I haven't created an organization (because what for?) so it's just a private repository representing a monorepo with a scope.
First, I tried to use secrets.GITHUB_TOKEN along with actions/setup-node@v3 but it didn't work... | Can't publish scoped NPM package in the private GH registry using GITHUB_TOKEN or PAT |
After digging for 3 days came to the conclusion that name servers were configured incorrectly.I am using Bigrock for the domain and GoDaddy for hosting, by mistake, I configured actual hosting provider hostname in "Name Server 3" and "Name Server 4". But Facebook looks for the content in first server "bigrocks-1.com"(w... | There is a problem with how Facebook scrapes my page for meta data.When I use the Facebook object debugger I get the following error:I am quite sure this has something to do with how my DNS records are defined. It seems the scraper can't even reach my site. As the error states, it can't turn the host name to a valid IP... | Facebook Object Debugger - Could not resolve the hostname into a valid IP address |
There is now an Azure Managed Grafana service on Azure. When create an instance you can grant it access to Azure Monitor which will serve up statistics from your AKS clusters.ShareFollowansweredApr 21, 2022 at 10:09Mitch DennyMitch Denny2,0951313 silver badges1919 bronze badgesAdd a comment| | I am having the following questions:Actually, I am using grafana open source service in Azure Virtual Machine. I would like to see the Kubernetes SLA Metrics on Grafana. When I had googled for it, then I had got the following page:https://grafana.com/docs/grafana-cloud/kubernetes/When I tried to follow the tutorial, I ... | Grafana-Kubernetes Integration |
I have had success with the URI changing on the backend while processing with the following.location /apps/phpauthentication/1 {
rewrite ^(.*)//(.*)$ /$1/$2 permanent; ##First matches double slash and rewrites
try_files $uri /app_dev.php$is_args$args; ##URI is now /apps/1/signup
if (!-e $request_... | I have a double slash in my URL (which is not ideal).So my app is hit at//signup.Error message:Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET //signin""Anyway to change it to just/signup?I have tried the below in the first location block (which is the one c... | Remove leading slash NGINX |
0
I think this has to do with cashing enabled or not enabled in your tests:
you can set expectations like this with the current implementation in your example method:
expect(Rails).to receive_massage_change(:cashe, :fetch).and_return(expected_value)
you can also inject the... |
I'm having a weird issue where I'm testing a controller that has a procedure that uses caching. The test is failing, but if I do a binding.pry inside the method that does the caching, the test passes.
example of the method containing the caching and the binding.pry:
def method_example:
data = Rails.cache.fetch(cache... | Rspec tests failing when using Rails.cache, but pass if I do a binding.pry |
I had the same issue.Configure your proxy if using one:
File->Settings->System Settings->HTTP ProxyAnother thing to try is to clone the project locally then add as new project in Pycharm. Afterwards I was able to do all git operations under VCS->git including add/commit/push for my project. | I have created a repository on Github. I am using Windows 7 64 bit and Pycharm Community edition. I want to integrate the Github repository with pycharm but I am getting the errorCouldn't get the list of GitHub repositories
Connect to api.github.com:443 [api.github.com/192.30.252.127] failed: connect timed outAlthoug... | Unable to integrate Github with Pycharm |
7
The ID of the default VPC can be obtained using the following AWS CLI command:
$ aws ec2 describe-vpcs \
--filters Name=isDefault,Values=true \
--query 'Vpcs[*].VpcId' \
--output text
vpc-a1b2c3d4
The above command will output something like: vpc-a1b2c3d4
... |
I have a stack which needs resources which need to be deployed in a certain VPC. I want to use the default VPC but I don't want to parameterize this. Is there a way to automatically obtain the default VPC value? (Like for example Fn::GetAZs: region for AZ's in a region).
| How can I reference the Default VPC in CloudFormation? |
Usegit-svnto create a git "mirror" of your Subversion repository. Then cherry-pick or merge changes as needed to your branch in GitHub.Since git-svn operates bi-directionally, you can use the same setup for pushing changes from GitHub into the Subversion repository. | In the company where I work, we are currently in the process of migrating from SVN to git and also updating frameworks and languages version in the process. as a result i currently have 2 repositories, one in svn and another one git which both have received many commits after the initial migration.Our git repository is... | Move SVN changes to git |
UseGET api/issues/searchwithseveritiesparameter.Search for issues.At most one of the following parameters can be provided at the same time: componentKeys and componentUuids.
Requires the 'Browse' permission on the specified project(s).severitiesoptionalComma-separated list of severitiesPossible valuesINFOMINORMAJORCR... | Is there a SonarQube API available that will give me the security vulnerabilities and bugs of specific criticality (Ex: Blocker). | SonarQube API for getting critical security vulnerabilities |
By default, kubectl only shows resources that are in thedefaultnamespace, whereas that REST endpoint will return replication controllers from all namespaces.To get the same output from kubectl, run it with the--all-namespacesflag, as inkubectl get rc --all-namespaces.If you only want kubectl to return resources from a ... | I am using kubernetes for container orchestration,I dont get any output while runningkubectl get rcon the master node while I get a list of replication controllers when using their REST APIcurl -X GET masterurl/api/v1/replicationcontrollers.What am I missing | kubectl output different than remote API |
As your golang application depends on the account service, you should define this dependency in your setup and use docker’s networking features to connect both services. Doing so will also give you the ability to run an arbitrary number of instances as a docker swarm or inside another scalable cluster infrastructure li... | This is my code:func Login(w http.ResponseWriter, r *http.Request) {
fmt.Println("Login prccessing")
email := r.FormValue("email")
password := r.FormValue("password")
fmt.Println(email + password)
var netTransport = &http.Transport{
Dial: (&net.Dialer{
Timeout: 50 * time.Second,
... | Get net/http: TLS handshake timeout when run golang app on docker container host |
The redirect you need is incredibly simple.RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(home\.php)?\?rid=888601032\ HTTP/
RewriteRule ^(home\.php)?$ http://www.example.com/examplepage.php? [R=301,L]It redirects any root request with the RID within it. | How to redirect my url - www.example.com/home.php?rid=888601032to www.example.com/examplepage.phpi have tried several htaccess codes 7 Im new to htccess, I would appreciate if someone can give me the correct redirect code. | Dynamic URL redirect |
Assuming you have aws cli setup with suitable keys, this long line of shell should list the ELBs with a count of instances attached to them. If it says zero then there are no instances attachedfor i in `aws elb describe-load-balancers|sed -ne 's/"LoadBalancerName": "\(.*\)",/\1/gp'`; do echo -n "$i "; aws elb describe... | I am pretty much new to AWS. I was trying to list the load balances which are not attached to any of the instances. I was trying describe-load-balancers using aws cli but was not able to get an option that filters the elbs.Please provide some suggestions on how to achieve this. | AWS cli List unused elb |
It would work, given it's just a nvidia-docker container (or probably something equivalent).Only that you will have to manually install the compatible CUDA, cuDNN and other packages.
It can be a hectic process and I have not personally tried it. Also, you are installing tensorflow package, which is not gpu enabled. Try... | when I checked the version of tensorflow in google colab notebook it was 1.8.0 which is pre-installed I guess.
I enabled GPU from notebook settings and checked for it through this commandimport tensorflow as tf
device_name = tf.test.gpu_device_name()
if device_name != '/device:GPU:0':
raise SystemError('GPU device no... | Does google colab's GPU work with tensorflow 1.0.0? |
The problem is that your docker is listening only on localhost.
Change the metrics-addr to listen on 0.0.0.0:9323.
|
I have two virtual machines, one hosting Prometheus, Grafana, etc 192.15.15.10 and the other hosting an application from a series of Docker containers 192.15.15.20.
I have configured the Docker daemon.json to contain:
{
"metrics-addr" : "127.0.0.1:9323",
"experimental" : true
}
My Prometheus.yml now contains: ... | Prometheus Docker - Connecting to external machine |
In order to push your changes to git you first need to create the branch on the remote server holding your repository. Assuming that you have set up a repository and connected visual studio to it, open Team Explorer, hit home (the "House" button), click "Sync" and then "Publish".
If you have not set up the repositor... |
In visual studio 2015, When I commit and sync a change I get the following error
Unable to sync because the current branch does not track a remote branch. Publish the branch to sync changes with the remote.
But I have no idea why this is happening.
| Visual studio git sync throwing error |
1
Redis provides support for pipelining, which involves sending multiple commands to the server without waiting for the replies and then reading the replies in a single step. Pipelining can improve performance when you need to send several commands in a row, such as adding ... |
We are planning to use Redis cache in our app , our requirement is first we need to load some 6 month data into Redis cache before actual app starts , i am thinking that if we execute one command at a time in loop like to insert key values into Redis , it will take too much time , is their way we can retrieve the dat... | how to load data into redis cache from database? |
When you do
RUN cd /app/
RUN pip install -r requirements.txt
Docker will enter the /app/project, and then, will come back to the previous folder, then, the second command will fail.
You have to use it like this:
RUN cd /app/ && pip install -r requirements.txt
You can visualize how Django works when using Docker on t... |
This is my Dockerfile
FROM python:3.6-slim
COPY app/ /app
EXPOSE 8000
RUN cd /app/
RUN pip install -r requirements.txt
WORKDIR /app/project/
RUN python manage.py makemigrations
RUN python manage.py migrate
RUN export DJANGO_SETTINGS_MODULE="project.settings"
CMD [ "python", "manage.py", "server"]
When I try to ... | Docker cannot find file when building the image |
How can I change GitHub so that Repo C is only a fork of Repo A?It would be easier to:create repo D, as a fork of repo A, and clone it locallyadd local-D as a remote in repo Cpush your branch you were working on to local-Dpush that branch from local-D to origin/D, and do on working from there in D. | This is what the current situation is...Repo C is a fork of Repo BRepo B is a fork of Repo AInside Repo C, I worked on a branch that only exists in Repo B.How can I change github so that Repo C is only a fork of Repo A? | I forked someone's forked repo. How can I change my repo to go to the original repo? |
I have seen the second method used when you wish to provide specific credentials without using the standard Credentials Provider Chain.For example, when assuming a role, you can use the new temporary to create a session, then create a client from the session.Fromboto3 sessions and aws_session_token management:import bo... | By default boto3 creates sessions whenever required, according to the documentationit is possible and recommended to maintain your own session(s) in some
scenariosMy understanding is if I use a session created by me I can reuse the same session across the application instead of boto3 automatically creating multiple s... | When to use boto3 sessions explicitly |
The SonarQube platform is going to process the analysis reports in the order it receives them. It has no way of knowing anything about your Jenkins build number.Your best bet is to enable the Throttle Concurrent Builds option to make sure that each new job waits its turn. That's the only way to ensure the order you exp... | I am publishing build results to Sonarqube, with jenkins.
Each commit on git is triggering a jenkins build.My problem is that build duration is not deterministic so build #2 can finish before build #1.
Consequently, results are published to Sonar in wrong order and differential view shows wrong results.
For example, if... | Sonarqube: reordering published build results |
Actually, I just found a very good overview of available sdks and libraries for Android in the AppBrain website. If someone knows a better resource, please share
|
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to ... | Overview of 3rd party platform sdks or libraries for Android [closed] |
-1If you're using docker run:Use --network to connect containers:docker run --rm --network app django
docker run --rm --network app mycaddydockerimageIf you're using docker-compose:Use --links:version: '2.1'
services:
django:
image: django
mycaddydockerimage:
image: something
links:
- djangoShar... | I have a site set up with caddy that serves a react app. But the proxy part of it doesn't seem to be forwarding requests to the other docker container. It still shows me the react page onexample.com/api.My caddyfile:example.com {
gzip
root /app/build # directory of public pages # Single-page react app
... | Caddy not forwarding proxy |
There is nothing like this in the Prestashop Core and module, but anyway, things can be simply done :Call a function in module constructor, so it will be executed each time$this->mySuperCron();Then store a time and just check time before executing your request :private function mySuperCron() {
$check_time = strtot... | I am making a prestashop module in which I need to run cron job after every 20 minutes. I didn't find any hook for that. All I found is "Cron task manager" module but I don't want to use a module for that. | Which hook should be used to run a cron job in prestashop? |
First, don't usewincredas suggested in your first link: usemanager-core(theGit Credential Managerpackaged with aGit For Windows).git config --global credential.helper manager-coreSecond, make sure your Git for Windows is up-to-date (2.35.1.windows.2 in Q2 2022)Third,clean the old URL from the credential managerprintf "... | I want to change the git account used in my VSCode. I made a new account and don't want to use the old one anymoreWhat I have tried so far:-Did everything in this StackOverflow questionChange Git Account in VSCodeAnd in this oneChang git account on VScodeI also have unchecked theGitHub Authenticationin VSCode settings!... | Change the git account in VScode |
2
You're missing the http port:
server {
listen 80;
...
}
Share
Follow
answered Mar 23, 2011 at 22:30
Pablo B.Pablo B.
1,83311 gold badge1717 silver badges2727 bronze badges
0
... |
I have simple application which works well on Apache but gives me error 403 after moving to Nginx.
Here is my configuration:
server {
server_name myapp.com;
access_log off;
root /home/www/myapp/public;
autoindex on;
passenger_enabled on;
rails_env production;
}
Nginx is running from www-da... | 403 error with nginx + passenger + rails 3 |
0
I think problem is not on VM but on machine from which you are trying to connect to VM. Does other connections on this machine works properly?
Take a look at this:
foo@bar:~$ curl 159.203.0.5 -v
* Rebuilt URL to: 159.203.0.5/
* Hostname was NOT found in DNS cache
* Tryi... |
On a hosted Ubuntu VM, I have nginx running for http and https, and can access those using the public IP from within the VM:
curl http://159.203.0.5
Doing the same outside the VM fails -- the connection times out.
The ports are open:
root@production01:~# ufw status
Status: active
To Action ... | External http connections fail (ports open) |
This work for me in TYPO3 11 used in a middleware.public function getLink($t3Urn)
{
// $t3Urn = 't3://page?uid=500#5996';
return GeneralUtility::makeInstance(
\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::class
)->typoLink_URL(['parameter'=>$t3Urn]);
}ShareFollowans... | With TYPO3 9.5 we were able to generate Typolinks from within our Scheduler Class this way:$objectManager = GeneralUtility::makeInstance(ObjectManager::class);
$contentRenderer = $objectManager->get(\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::class);
$command = $this->linkCommand($uid, 0);
$uri = $contentR... | Generate Typolink in Backend Environment with Cronjob |
I just stumble across this today, you need to disable Postman default behaviour of sendingCache-Controlasnone. To do this just go to settings changeSend no-cache headertoNo. | I am optimizing an Express JSON API for consumption by iOS & Android Apps and do not seem to be able to get Express to respond with the correct 304 header when the Apps specify an etag within the If-None-Match header.I needn't setup Etag generation as Express was already providing those; however when the Apps specify t... | 304 Not Modified When If-None-Match is valid |
Because you are at the beginning of your kubernetes journey I would go with separate clusters for each stage you have (or at least separate dev and prod). You can very easily take your cluster down (I did it several times with resource starvation). Also not setting correctly those network policies you might find that s... | I'm migrating a number of applications from AWS ECS to Azure AKS and being the first production deployment for me in Kubernetes I'd like to ensure that it's set up correctly from the off.The applications being moved all use resources at varying degrees with some being more memory intensive and others being more CPU int... | Kubernetes - Single Cluster or Multiple Clusters |
Yes so the correct answer is that an outdated sdk version was used.
To fix it set aws-sdk to * in your package.json file and run
npm install aws-sdk
With the latest version this code will run fine!
|
I want to send an SMS with the AWS javascript sdk with a verification code.
var AWS = require('aws-sdk');
AWS.config.region = 'us-east-1';
var sns = new AWS.SNS();
var params = {
Message: 'this is a test message',
MessageStructure: 'string',
PhoneNumber: '+12346759845'
};
sns.publish(params, function(err, data... | Send SMS with AWS Javascript SDK |
Check your java version - I had XML problems when I switched from Java 8 to Java 11. | I dockerized a spring boot application with Jib. When I run the docker image, I get this error.Caused by: java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/ObjectMapper
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.la... | ClassNotFoundException when Dockerizing a spring boot application |
With further research into problem, I found this solution which seems to work:
git config --global sendpack.sideband false
Now git push works fine.
|
The scenario is like this:
I have android source code (aosp) synced up. I want to make a "fork" of it in my repository. But since I was unable to find a way to fork just a specific branch and not the whole repo, I decided to manually push it. For this, I created a new bare repository on github.
My project has two remo... | Git push hangs up leading to internet problems |
reboot the machine its likely still running in the background | I have a weird situation here.I'm using Laravel 4 and linux crontab to run my cronjob, which is to send an email.For testing purpose, I set every minute to run the cronjob so that I could get my result instantly.crontab commands as below:* * * * * php /xx/xx/xx/artisan user:activeactual output: received emails every mi... | Laravel 4 CronJob Keeps Running |
13
Calls to malloc and free typically require somewhere between a few 100's and a few 1,000's of instructions on average depending on implementation, current fragmentation of the heap, and other details.
Allocating and deallocating the stack frame for a function requires on... |
Compare the following two:
int arr[10]; // stack memory
int* x = malloc(sizeof(int)*10); // heap memory
Both are essentially allocating 10 integer variables. However, we often say that the first one is much cheaper (faster to alloc and dealloc) b/c it simply moves ahead the stack pointer.
We know that all programs r... | Why is stack memory "cheaper" than heap memory in C? |
The response will only be used for other users if theCache-Controlresponse header contains thepublicdirective. Apart from that, the proxy must not cache a response to an authorized request.Read thesection Authorization of the HTTP 1.1 standardfor all the details.ShareFollowansweredJul 24, 2009 at 16:10Patrice NeffPatri... | Given a URI which has headers for caching properly configured.If two users make a request to the same URI but provide two different sets of credentials, will a proxy cache the response per user+URI, or per URI, or not at all? | Will proxies cache HTTP Responses when authentication is provided? |
The ListObjects Amazon S3 API call can be used to obtain a list of objects in a given bucket.
The list of files returned includes a StorageClass field. It can be one of:
STANDARD
REDUCED_REDUNDANCY
GLACIER
The GLACIER storage class indicates that the contents of the object is currently in Glacier.
|
I have configured life cycle policy in S3, some of objects in S3 are stored in Glacier class, some of object are still in S3, now I am trying to restore objects from Glacier, I can get object list in S3 by java AWS SDK, how can I know which object is in Glacier storage by AWS SDK? The reason is when I try restore an o... | Restore object from AWS Glacier to S3 |
If thedeletestatement in the destructor of your class is executed, the memory allocated in the constructor will be released and available for future use.This doesn't inherently mean that the memory allocated by the OS for the actual process that instantiates your class will be reduced.As an additional hint: To detect '... | I have a problem deleting class attributes inside the destructor of the class, if I try to do the same thing in a classic procedural program it works perfectly.But if I try to execute the code below the destructor doesn'tdelete"array" and doesn't free the memory:class MyClass
{
private:
int *array;
int n = 2000... | delete doesn't work in destructor? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.