Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
A few things (integrating also comments above).Out of the box (unless you turn them off), all endpoint requests are already measured using a timer called "http.server.requests", as noted in the guide here:https://quarkus.io/guides/micrometer#review-automatically-generated-metrics. If you look at prometheus output (usin... | I have gone through the guide athttps://quarkus.io/guides/micrometer. I want to capture a basic metric telling me how many times a particular endpoint is called, and have usedMeterRegistryfor my purpose.registry.counter("request").increment();I am able to see this metric at http://localhost:8080/hello/q/metrics. Now I ... | Quarkus - Pushing Micrometer metrics to prometheus |
You need some way of providing a route to show those files.
One way of doing so would be to install nginx on the remote servers and proxy to it just as you do with the app itself.
An alternative, since you say this is all within the same local network. would be to use something like NFS to mount the static directories... |
I am configuring a server with Nginx that redirect subdomains to websites (made with Django) on distant servers (on the same local network). It is working fine to serve the content of each site, but I have trouble to serve static and media files (for instance css). Here is the content of the configuration file :
serve... | Serving static and media files on a distant server with Django and Nginx |
Lazy allocation simply means not allocating a resource until it is actually needed. This is common with singleton objects, but strictly speaking, any time a resource is allocated as late as possible, you have an example of lazy allocation.By delaying allocation of a resource until you actually need it, you can decreas... | What does lazy allocation of objects mean and how is it useful? | what is lazy allocation? |
0
This should help with retrofit2
OkHttpClient okHttpClient = new OkHttpClient()
.newBuilder()
.cache(new Cache(WaterGate.getAppContext().getCacheDir(), 10 * 1024 *1024))
.addInterceptor(chain -> {
Request request = chai... |
I am following the Android guide for using LiveData: https://developer.android.com/jetpack/docs/guide, I can make calls and get a list of objects back, but I don't understand how I could cache that list of objects, on the example I am not really sure how is defined the class UserCache and also, I don't know how can I ... | How to cache data during 30 minutes using LiveData + Retrofit? |
Your scenario maynot be directly supported. I presume you reviewedImporting Issues from Third-Party Roslyn
Analyzers (C#, VB.NET)SonarQube analyzes code based on (mapped) extension. Just guessing now ...We have.cshtmlmapped to language typeHTML(YMMV). This is underAdministration | Configuration | General Settings | HTM... | We are developing an MVC .NET Core project with VS19.
We are also using Devextreme.
We have several cshtml files with devextreme components and templates.Templates in DevExtreme ASP.NET MVC Controls support ERB-style syntax. The following constructions are available.<% code %> - executes the code.<%= value %> - prints ... | custom code analysis on cshtml files with sonarqube |
2
Your CORSConfiguration must contain the port number, because the port number is part of the origin, see e.g. http://en.wikipedia.org/wiki/Same_origin_policy
Share
Improve this answer
Follow
a... |
I have the following S3 bucket: http://my-bucket.s3-website-eu-west-1.amazonaws.com/
I have added a CORS configuration, as per http://docs.amazonwebservices.com/AmazonS3/latest/dev/cors.html :
<CORSConfiguration>
<CORSRule>
<AllowedHeader>x-requested-with</AllowedHeader>
<AllowedHeader>*</AllowedHeader>
<AllowedO... | S3 CORS not working with JQuery Ajax request in Chrome |
Access levels in GitHub are configured per Team inside the Organization.
Log into GitHub.
Switch your account context to the organization using the dropdown near the top-left of the screen:
Click on "View organization":
Click the Teams tab in the top navigation bar:
Decide whether you want to change the permis... |
I need to transfer a repository from a user account to an organization the user is a member of. Per GitHUb's docs, I need to make the user account an admin of the organization first.
GitHub's docs describe the different levels of access to an organization, but I can't find out how to actually change a user's level of... | GitHub: how do I make a user an admin of an organization? |
If you want to debug your cron expressions before deploying them, you can go to CloudWatch -> Rules and test them there. It's a very useful playground if you're unsure about what may be going on.If we grab the expression provided in @Stargazer's answer (which, by the way, is very accurate) and paste it in CloudWatch Ru... | I want to trigger my AWS lambda function on 15th of every month but my function is triggering after every 30 minutes. My function in Serverless.yml ismonthlyTbAlert:
warmup: true
handler: handlers/monthly-tbalert/index.monthlyTbAlert
timeout: 60
events:
- schedule: cron(0 0 10 15 1/1 ? *)
... | Cron Job to trigger AWS Lambda not working as expected |
You need to import_ "k8s.io/client-go/pkg/apis/extensions/install"otherwise the schema is empty, see alsodocs.The complete working example is:$ go get -u github.com/golang/dep/cmd/dep
$ dep init
$ go run main.goWith the followingmain.go:package main
import (
"fmt"
"k8s.io/client-go/pkg/api"
_ "k8s.io/clie... | How can I deserialize a Kubernetes YAML file into an Go struct? I took a look into thekubectlcode, but somehow I get an error for every YAML file:no kind "Deployment" is registered for version "apps/v1beta1"This is an MWE:package main
import (
"fmt"
"k8s.io/client-go/pkg/api"
)
var service = `
apiVersion: ap... | How to deserialize Kubernetes YAML file |
I ended up splitting the GUI tests off using JUnit@Tags, and then adding separate gradle tasks:task nonGuiTest(type: Test) {
useJUnitPlatform {
excludeTags 'gui'
}
}
task guiTest(type: Test) {
useJUnitPlatform {
includeTags 'gui'
}
}then in the workflowI runbuild -x testinitiallythen ru... | I've got some basic automated GUI tests for my Java desktop application that work when running on my Windows desktop. On GitHub they fail withjava.awt.AWTError at X11GraphicsEnvironment.java:-2I started from the defaultJava CI with Gradleworkflow, and have added some steps attempting to set up xvfb so it has a display ... | Running Java GUI tests on GitHub using xvfb |
Java programs are "well" known for eating up memory if your code has some design issues. First, try to configure the maximum heap memory and see how that's coming through.
Since you said,
Sometimes I can't even SSH back into the instance.
I would try limiting Docker containers memory usage as well:
Limit a container... |
I have some Docker containers running on an AWS EC2 instance. The containers are running Java Spring Boot applications. Intermittently, (every couple of weeks so far), it seems Docker runs out of memory. Sometimes, I can't even SSH back into the instance.
I've tried to look at the application log files within each of ... | Docker running out of memory |
Your rule only rewrites the nicer looking URL to the one with a query string. Rules only work from a "pattern" -> "target" way, the mapping won't magically work the other way. You'll have to create a separate rule in order to redirect the browser:RewriteCond %{THE_REQUEST} ^(GET|HEAD)\ /filmdetails\.html\?var=([^&\ ]+)... | I want to change alle dynamic url's to static ones,
but after rewriting the dynamic url's are still responding/available.What did I do =>I found this Tool for SEO:http://www.webconfs.com/url-rewriting-tool.phpI entered this:
.../filmdetails.html?var=ich_einfach_unverbesserlich_iiThen I put into my .htaccess this:Rewri... | dynamic to static url AND removing the dynamic |
Try to add this:[connectionManager.requestSerializer setCachePolicy:NSURLRequestReturnCacheDataElseLoad];Editcheck the headers again maybe you are missing something on the API if you've done everything!
maybe you should use"Cache-Control" = "public, max-age=14400";addpublickeyword to theCache-Controlheader?publicIndica... | On the server side, I'm setting Cache-Control: max-age=14400.From my iOS client, I'm setting up a shared instance of AFHTTPSessionManager like follows:+ (TKClient *)sharedInstance {
static TKClient *instance = nil;
static dispatch_once_t token;
dispatch_once(&token, ^ {
instance = [[TKClient alloc] initWithBaseURL... | Cache-Control: max-age does not make AFNetworking cache the response |
(The trait you're referring to is actually called select_on_container_copy_construction.)
The copy constructors of standard library containers are in fact overloaded and provide an allocator-extended version:
A a1 = f(), a2 = g(); // allocators
std::vector<int, A> v1(a1);
std::vector<int, A> v2(v1, a2); // allocato... |
For allocators why is select_on_container_copy_construction needed opposed to just overloading the copy-constructor?
Are there instances when we want to define two seperate copy-construction implementations depending on if we are copying the actual allocator vs container?
| Why is select_on_container_copy_construction needed? |
In a reasonably large cluster deploying ingress as deployment with multiple replicas is suitable compared to daemonset. When you are using deployment just make sure that replicas gets deployed in different nodes.You don't need a high number of NGINX instances to handle high volumes of traffic and most importantly, you ... | That is my current solution:LoadBalancer Instance with cloud -> Cluster NodePort Service -> Ingress Controller Service -> Ingress Controller Pod.is it necessary to deploy the Ingress Controller using DaemonSet? | Is it necessary to deploy the Ingress Controller using DaemonSet? |
4
I know it is an old question, but I'd like to leave an answer in case anyone else shows up.
TL;DR: Cognito does not have this feature, you need to workaround it, and only if you use MFA as optional. If MFA is set to required on the user pool, you will need an admin to r... |
I have implemented TOTP MFA with AWS Cognito with boto3 python. Everything is working fine, But I would like to know how to reset MFA in case a device is lost.
I did not find any mechanism in the documentation. Kindly advice.
| Recovering in Amazon Cognito MFA |
Your missing the parameter for the cache option they are as follows
The cache_option attribute can take one of three values:
No - Disable applet installation. Always download the file from the web server.
Browser - Run applets from the browser cache (default).
Plugin - Run applets from the new Java Plug-in cache.
B... |
I am trying to update the cache for an applet. The applet properly caches, but afterwards, no matter how stale the cache is, it won't update. If I manually delete the cache, a new one will be created upon the next page load, and all changes to the .jar file I am trying to cache take effect. Having to do this, thoug... | How do I update the cache for an applet? |
Scripts have to go into the /scripts folder. Of course there's almost always the confusion as to how to differentiate a script from a regular ruby file that is 'required' by a controller/model. If your script is required to start/sustain your application, then yes its a script. Or else if its a ruby file that is need a... | I have seen examples where it is put in the lib folder, and another example in the app folder. Is there standard place where it should be put for Rails 2.3.8 and Rails 3 convention? | Where to put Ruby scripts for script/runner on a Rails project? |
The problem is with the&in the URL, it's interperted by your command line prompt as:Let me run this command:curl -u admin:admin -X POST http://localhost:9512/api/properties/?id=sonar.exclusionsand then run this command:resource=org.myProject:myProject -v -T "D:\sonar-exclusions.xml"The first one returns{"err_code":200,... | I am using SonarQube 5.1.2 on Windows 7 Professional. I am using Web Service API over cURL 7.32.0 (x86_64-pc-win32). I want to upload sonar.exclusions and few more such properties for a specific project using POST.I usecurl -u admin:admin -X POST http://localhost:9512/api/prop
erties/?id=sonar.exclusions -v -T "D:\sona... | "'resource' is not recognized as an internal or external command" while POSTing using Web Service API in SonarQube 5.1.2 |
If you do not have any critical data you can blow away the docker volume.docker volume lsdocker volume rm your_volume | postgres:9.5I try rebooting,docker-compose build --no-cachedelete image and container and build againI have many proyects and anybody starts, keeps the same configuration...
Mac osx SierraApparently the containers were not deleted well, I tried with this and after rebuild works ok.# Delete all containers
docker rm $(do... | Docker FATAL: could not write lock file "postmaster.pid": No space left on device |
Why don't you use an already-developed and proven app in the first place? If you really want to develop a filtering layer then what you need is aFilter driverand more specificallyNDIS filter. A sample solution can be foundhere. But unless you are absolutely sure what you are doing and what you want to achieve I'd stron... | I'm developing an app for filtering network connections from clients to my server (deny or allow to connect to my server).I'm researching and found some resources like Windows Firewall API.But I don't know if it's necessary for me or not.What's the best API or solution to resolve it?Thank so much.regards, | Solution for creating a firewall filter layer (c/c++) on Windows? |
Technically I see coupe of options:
Comments # are the way to go.
Create two separate docker files. Like Dockerfile.dev or Dockerfile.prod and specify them via build (which I personally do not like and do not practice)
Pls describe your initial intent (why do you need it) and maybe we will figure out an appropriate... |
I use # to comment out the commands that I don't need in a Dockerfile. Does anybody know if there is a command (something like exit) to terminate a Dockfile so that all the lines below it won't be run? Thanks.
| How to terminate a dockerfile? |
Try README.md (lowercase extension)
|
I have a file README.MD but I still get a message:
We recommend adding a README to this repository. Visit github/markup
for details on what formats we support.
| Why does github say it can't find my readme? |
The primary objection in that article to using a single entry point seems to be:...what about when you have hundreds of Page Controllers? You end up with
a massive switch statment or perhaps something disguised in an array,
an XML document or whatever. For every page request, PHP will have to
reload a bunch of da... | I came across this article,How to implement a front controller. The article suggests that a better way to load controllers is to leave it to apache as this is what it was designed for.So I have a few questions...Is using .htaccess a viable alternative to using php for routing requests to controllers?Which way is bette... | Is it better to have a php front loader or use .htaccess to load controllers? |
You should use aCDNfor sourcing your Javascript dependencies.For example if you usedcdnjs.com, instead of:<script src="http://twitter.github.com/typeahead.js/releases/latest/typeahead.min.js">you would use:<script src="//cdnjs.cloudflare.com/ajax/libs/typeahead.js/0.9.3/typeahead.min.js"></script> | I implemented a search bar dropdown using bootstrap v3.0.0 and typeahead.js. At the time of completion of my project(2 months ago). I used the following to include the template engine and typeahead.min.js<link href="http://raw.github.com/jharding/typeahead.js-bootstrap.css/master/typeahead.js-bootstrap.css" rel="styles... | typeahead.min.js Github link not working |
Update 2021: you can also use theGitHub CLIgh, instead ofcurl.2018:Considering theGitHub API for Issuesdoes include an "edit issue" which does allow for the title to be modified, this should be possible.Try (using anOAuth tokenasshown here):curl -H 'Authorization: Bearer <your OAuth token>' \
-H "Content-Type: app... | I made a generic title while making a github issue. While trying to explain the issue, I discovered some more details underneath which I could add to the title to explain to the developer better.I tried to change the title but wasn't able to do that, can modify the body of the message but not the title apparently :(I t... | how to change/modify title of an issue when you learn more about the issue/underlying issue itself. |
The Spring Boot starter provides a simple cache provider which stores values in an instance of ConcurrentHashMap. This is the simplest possible thread-safe implementation of the caching mechanism.
If the @EnableCaching annotation is present in your app, Spring Boot checks dependencies available on your class path and ... |
I have implemented caching in my SpringBootApplication as shown below
@SpringBootApplication
@EnableCaching
public class SampleApplication extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(Sa... | Default Cache Manager with Spring Boot using @EnableCaching |
After profiling the app, I figured out that two issues were at play:
1) I was saving large UIImages as binarydata into coredata, which should not be done if NSFetchedResultsControllers are used, as they pulled out all of the image data and kept it in memory.
2) iOS6 has changed the way viewDidUnload works - it is nev... |
I'm working with a fairly complex storyboard based iPad app. My workflow is as follows A collection view pushes another view, which presents another view modally.
The 3rd view which is presented modally is fairly complex and has 19 subviews, some of them are image views. The app does a lot to organize the view hierarc... | iPad, iOS6 very long delay between viewWIllAppear and view appearing on the screen |
The current path while acronexecution is thehomedirectory of the user which is running thecronprocess. See also thispost.Just change the relative path to an absolute and the issue is fixed.ShareFolloweditedApr 13, 2017 at 12:36CommunityBot111 silver badgeansweredApr 1, 2016 at 21:49Peter VARGAPeter VARGA5,05833 gold ba... | rename() runs fine from the command line, but when run from cron job, the rename() does not. Since the connect.php file works I assume the cron job is in the right directory, but can't figure out why rename() doesn't work. I tried absolute paths and they didn't work:<?php
include 'connect.php';
$oldlocation='xxx/xxx/... | rename() not working in cron job |
I too came across this issue deploying Rancher, found a workaround for now.
Error message by Rancher is not helpful.All of cluster nodes are Rocky-Linux-8 with firewalld enabled, Checked firewalld logs for dropped packages and found out some requests are being dropped for port 6443 sayingkernel: STATE_INVALID_DROP.Here... | I tried to add user privileges to a cluster, but fail to add, received the following error message:Internal error occurred: failed calling webhook "rancherauth.cattle.io":
Post https://rancher-webhook.cattle-system.svc:443/v1/webhook/validation?timeout=10s:
dial tcp 10.43.48.11:443: connect: connection refused.I searc... | Failed to add the cluster permission of a user |
If it is indeed a public open repo, use https instead of ssh:#!/bin/bash
git clone https://github.com/computersarecool/dotfiles.git documents/gitprojects/dotfilesIf you want to stick to ssh, you should let ssh-agent know about your id_rsa key:#!/bin/bash
eval `ssh-agent -s`
ssh-add /home/<Your username>/.ssh/id_rsa
git... | I want to clone an open, public repo into a different directory. To do this from the command line I type:git clone[email protected]:computersarecool/dotfiles.git documents/gitprojects/dotfileswhich works.However, now I want to do it from abashscript. In the script I have literally the exact same code:#!/bin/bash
git ... | Why can I clone from the command line but not a bash script? |
It looks like that forpersonal accountsthere are only two types of permission levels:repository ownerandcollaborators. To get more roles, you have to have anorganization account. It might be the case that their documentation hasn't been updated. | I should have a role option as it is in GitHub tutorial.Instead I have this:How can I unlock this option?I tried to make a repository public. It didn't work. | I don't have role option in my GitHub repository |
SSL/TLS has some issues, and the root of those issues is the CA system. By default, your browser trusts a bunch of CAs. Other than a few basic checks such as hostname, etc, the real power of the SSL comes from the verification of the certificate via the intermediaries until you get to a certificate that you trust.Cer... | You hear a lot about how you can use SSL pinning to increase the security in your app. I was always under the assumption that SSL pinning is only helpful if you use a self-signed cert. Are there benefits of SSL pinning when using a cert signed by a cert authority, or does the CA make that unnecessary? | SSL pinning a signed cert on iOS |
You can now!git clone https://github.com/user/project.wiki.gitor if you use sshgit clone[email protected]:username/project.wiki.git | I want to modify and view github wikis with local editor like Emacs, and Google Code wikis can be checked out just like code. Is there any way to checkout github wikis? Or is there any other git repository provider offers such feature? | Can I checkout github wikis like a git repository? |
Your linked list implementation, ideally, shouldn't use any of the above. It should be up to the caller to allocate and destroy memory. Think about functions like sprintf, fgets, etc... Do they allocate any memory? No. There's a reason for that: Simplicity. Imagine if you had to free everything you got from fgets (or ... |
Location
in the heap, fragmented (malloc for every node) -inefficient in several different ways (slow allocation, slow access, memory fragmentation)
in the heap, in one large chunk - all the flexibility, gained by the data structure is lost, when needing to realloc
in the stack - the stack tends to be rather limite... | Linked lists. Where to allocate and how to cope with fragmentation? |
Actually... it's a firefox tendency to add a trailing slash to everything.Your nginx config is removing it and firefox is adding it back to the request. Use 'curl -I' to check your config. Trying to enforce having or not having a trailing slash is going to cause you a lot of headaches.If you absolutely need that, you n... | I'm using nginx for the first time and I can't seem to figure this out. I'm trying to rewrite my nginx config so that all of my URLs no longer have the trailing slash that nginx defaults to.I've been trying the following, but it still results in a redirect loop ("Firefox has detected that the server is redirecting the ... | nginx trailing slash rewrite results in a redirect loop |
It seems your expression has an extra '.', please try this expression:@activity('Get ids from Data Lake').output['group-id']. | I am using a pipeline to get data from a CSV and compare it to a SQL table. I have data about groups coming from an API, which we're storing in SQL for reporting. One of the column names from the API is "group-id". I need to get all the values of this column and store them in an array variable for comparison with the S... | Azure Synapse pipeline - get array from CSV column with dash in column name |
From storage and processing standpoint there is no much difference in those two approaches.Butrecommendationson instrumenting your application with Prometheus metrics contains the following:Metric names should never be procedurally generated, except when writing a custom collector or exporter.Consider following: if you... | I am new to Prometheus. And need your guidance for below scenario:I am working on Bot provider product in which customer can come and configure different bot provider like Amazon Lex, Google Dialogue flow or Omilia.There is a common api, which responds to request of patron. Here it will use the bot configured by the cu... | Prometheus - Should we create separate counter or should we add label to single counter for distinguish |
0
Maybe the page you are trying to write to is read only?
On Intel architecture you can set write protect, see http://badishi.com/kernel-writing-to-read-only-memory/
Share
Follow
answered Aug 4, 20... |
I am writing a kernel module that is to be called by process p1 to overwrite a data page that belongs to a target process p2.
First, inside the kernel module and while responding to a write event to proc file system issued by p1. I used the process id of the target process (p2) to search for the latter's task struct ... | kernel module, while being called from one process, writes to a page from another process |
You create a regular controller that performs the actions you wish the be executed, and then set up the cronjob in for example cPanel like this:/usr/local/bin/php /home/sitefolder/public_html/index.php/controller/function | How To Create CronJob in codeigniter?I am basically insert values to a table of database at 6pm everyday through cronjob
So how can i do that. Help me!Thanks in Advance | How To Create CronJob in codeigniter? |
Luckily the aws-sdk should automatically detect credentials set as environment variables and use them for requests
To get access to secrets in your action, you need to set them in the repo. Then you can expose them to the step as an env var.
For more details see GitHub Encrypted secrets
On GitHub, navigate to the mai... |
At my unit tests, I'm using aws-sdk to test the SES, which needs some credentials, we are facing a problem to access the secrets with GitHub Actions.
At beginning I was trying to set the values to ~/.aws/credentials using the run command from github workflows:
# .github/workflows/nodejs.yml
steps:
...
- name: Unit... | How AWS Credentials works at GitHub Actions? |
Per theOracle docs, in Java 8, the class metadata is stored in native memory and by default is unlimited.MaxMetaspaceSizeputs an upper limit on the native memory that's used for class metadata.If you also haveUseCompressedOopsandUseCompressedClassesPointersenabled, thenMaxMetaspaceSizesets the upper limit on the sum of... | I am getting metaspace issue in Wildfly.Currently XX:MaxMetaspaceSize is 256M. But i am getting following issue multiple times in multiple server groups in different projects (50 projects in total distributed among server groups). And facing following exception daily.failed to define class: OutOfMemoryException: Metasp... | Wildfly 16 : What is benefit of changing XX:MaxMetaspaceSize in Java8? |
1
To MAP the application, the application folder in the server or container and in the machine that will act as debugger have to be in the same location, if not we can debug the application.
Do not forget to expose port in container.
Share
... |
Hi stackoverflow users,
I am using:
- Perl
- Dancer
- Starman
- Camelcade
- Intellij
I built a container with the web application. I configure the environment variables requires by Camelcade.
when I run the debug:
perl -d:Camelcadedb web.pl
It only debug the startup perl file, that calls Dancer and then finish... | Remote Debuging Perl, Dancer, Starman, Docker |
Simply add the-kswitch somewhere before the url.Disclaimer: Use this at your own risk.man curl | less +/--insecure-k, --insecure
(TLS) By default, every SSL connection curl makes is verified to be secure. This option allows curl to proceed and operate
even for server connections otherwise considered insecure.The serv... | This question already has answers here:curl - Is data encrypted when using the --insecure option?(2 answers)php curl -k or --insecure, -X(1 answer)How do I set cURL to always use the -k option?(1 answer)Closed6 years ago.Hello i want to use an API for a website but there an error with my curl command.I want todisableSS... | How to disable cURL SSL certificate verification [duplicate] |
The correct usage would be$SOME_IP_from_env, but environment variables set from nginx.conf cannot be used in server, location or http blocks.You can use environment variables if you use theopenresty bundle, which includes Lua. | I have the following scenario: I have an env variable$SOME_IPdefined and want to use it in a nginx block. Referring to thenginx documentationI use theenvdirective in thenginx.conffile like the following:user www-data;
worker_processes 4;
pid /run/nginx.pid;
env SOME_IP;Now I want to use the variable for aproxy_pass. I... | nginx: use environment variables |
This looks like it might still be indevelopment. If/when it works, I believe you could use thethemonitoredResourceDimensionswith anexpressionforuriValue. | How can I control the data being sent to the Istio Mixer? For example, my service has a health url (/health) that gets called every few seconds and the call goes through the side car which end up reporting data to the mixer. How can I configure the side car to skip metrics/reports related to certain URLs like the healt... | How can I control which data gets reported to the Istio Mixer by the side car? |
I fixed it by changing uses value to
uses: google-github-actions/setup-gcloud@v0
|
Github Actions were working in my repository till yesterday. I didnt make any changes in .github/workflows/dev.yml file or in DockerFile.
But, suddenly in recent pushes, my Github Actions fail with the error
Setup, Build, Publish, and Deploy
Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under
'/home/runner/w... | Github Actions Failing |
Your redirect is misconfigured:$ curl -v madmind.ir
...
> Connected to madmind.ir (95.38.61.126) port 80 (#0)
> GET / HTTP/1.1
> Host: madmind.ir
...
< HTTP/1.1 302 Found
< Location: http://https://www.madmind.ir/Notice thehttp://https://Also, your certificate is self signed, that will cause something like:www.madmind.... | i cant resolve my site
and in console i got this errorhttp://https//www.madmind.ir/net::ERR_NAME_NOT_RESOLVEDwhy my address have http and https both ?
i active my ssl cetificate and got this errorvhost panel : Pleskframe work : mvc 5 | cant resolve my site url net::ERR_NAME_NOT_RESOLVED |
As the TLS applies on a router, you cannot have only one IngressRoute to handle the 2 cases.apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: example-backend
namespace: example
spec:
entryPoints:
- websecure
routes:
- match: Host(`api.example.com`)
kind: Rule
priority: 10... | My problem is that my traefik ingress controller in my kubernetes cluster does response404 page not foundoverhttp,BUToverhttpsI get the real response from the service.This happened after I added the TLS section toIngressRoute.This is my IngressRoute:apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
... | Why does Traefik v2 response 404 only over http |
I think the easiest thing is to use Emscripten, and use its built-in malloc / free. Then export a function which, in C++, allocates the memory requested through that malloc / free, and returns the pointer. That way JavaScript can call into WebAssembly to get a usable memory region which isn't already used.
I've detail... |
At present, Webassembly only supports a handful of parameter types, namely fixed sized integers and floating point numbers. This means that I can only define and export functions from my C/Rust modules that accept and return numeric values.
However, according to the Mozilla Developer Network, I can manipulate the modu... | How can I coordinate Memory access between the host JS and the Wasm module? |
Docker images are created in layers, with each layer appearing as another image. You can run a docker inspect on the image you want to delete, and then run an inspect on other images on the same hosts to see which images are based on this unnamed image.
Note that this image could be something like Debian itself, with... |
I am using docker 1.12.5 as below:
$ docker --version
Docker version 1.12.5, build 7392c3b
I have below images:
$ docker images|grep 5000
hoth.southbanksoftware.com:5000/dbenvy-controller <none> d1e229866063 4 days ago 919.4 MB
I use below command to remove this image but fa... | Failed to remove docker images whose tag are <none> |
OK, I found out the issue after a very long time...MongoDB authentication stopped working after I deleted the release and created a new release. The reason was that I used the same persistent storage for both releases. So, when I deleted the first release the data was not deleted, and when I started a new release, it g... | I installed mongodb on kubernetes using helm:helm install mongo bitnami/mongodbnow i'm trying to connect using the root password I got using this command# kubectl get secret --namespace default mongo-mongodb -o jsonpath="{.data.mongodb-root-pa
ssword}" | base64 --decode
AXMCSkdNm6using the root password, with the user ... | Can't login to mongo using root password after installing from helm |
Yes, I would suggest to add users when the container runs for the first time.Instead of starting RabbitMQ directly, you can run a wrapper script that will take care of all the setup, and then start RabbitMQ. If the last step of the wrapper script is a process start, remember that you can useexecso that the new process ... | I am build an image using Dockerfile, and I would like to add users to RabbitMQ right after installation. The problem is that during build hostname of the docker container is different from when I run the resultant image. RabbitMQ loses that user; because of changed hostname it uses another DB.I connot change/etc/hosts... | docker rabbitmq hostname issue |
Try:RewriteCond %{DOCUMENT_ROOT}/robots/%{HTTP_HOST}.txt -f
RewriteRule ^robots\.txt$ robots/%{HTTP_HOST}.txt [L]
RewriteRule ^robots\.txt$ robots/domain.txt [L]The condition in the first rule checks that the destination robots file exists, and if it does,robots.txtgets rewritten. Thus, the second rule only gets appli... | I want to have domain-specific robots.txt and so far this works:RewriteRule ^robots\.txt$ robots/%{HTTP_HOST}.txt [L]But I would like to have a fallback so if the domain.txt file doesn't exist then go to default.txtAnd this doesn't really work out as it will redirect all non-existent filenames, plus I already have a !-... | domain-specific robots file with htaccess rewrite robots.txt to example.com.txt or fallback to default.txt |
You need both the IGW and the NAT gateway for this to work.
In the public subnets (ones you want to reach from outside) point the 0.0.0.0/0 traffic to the IGW gateway. The NAT gateway itself needs to sit in one of these public subnets.
In the private subnets that you want to NAT point 0.0.0.0/0 traffic to the NAT gat... |
As per this document, if I need to access internet resources from my Lambda function with VPC access, I need to set up a NAT gateway.
So I followed this guide to set up a NAT gateway. However, at the stage when I need to edit the route tables of my subnet to add an entry with destination: 0.0.0.0/0 and target as my N... | AWS Lambda: How to set up a NAT gateway for a lambda function with VPC access |
To useheroku pluginsyou need to specify the plugins git repository URL. For instance, if you wanted to install theheroku accountsplugin you might say:heroku plugins:install https://github.com/ddollar/heroku-accounts.gitHere's what happens when I run this command locally myself:$ heroku plugins:install https://github.co... | I gaveheroku plugins:install heroku-first-blogon terminal.I got an error something like thisInstalling plugin heroku-first-blog... !
▸ Plugin not found
! error installing plugin heroku-first-blog | How can I add plugin to heroku repo? |
No 'obvious simple method' that I can think of. One approach could be to have a small script picking the version from the .plist and setting it as an environment variable. Environment variable which can thenbe referencedfromsonar-project.properties. | Starting from version 2.9 of the SonarQube scanner it is possible to reference variables from withinsonar-project.properties:https://www.sonarsource.com/resources/product-news/2017/03/2017-03-15-sonarqube-scanner-2.9-released.htmlTo me, the obvious use case of this feature is to avoid having to declare the version of t... | Using the external property feature in SonarQube scanner |
The question is old, but still someone comes here looking for answer.
It happens when the data source you are using to generate the charts response very slowly ~ > 30s. In that case graph throws the error execution time out.ShareFollowansweredSep 18, 2020 at 13:29rushi47rushi4710811 silver badge99 bronze badgesAdd a co... | I am using Grafana to set up email alerts. I have all my panels on my dashbboard created, and just turned the alerts on. However, I am now getting the following error. Alert execution exceeded the timeout. This is sending emails for all the servers on that dashboard to everyone associated with the email alert. Why is t... | Grafana alert execution exceeded timeout, why is this happening? |
Your question can be paraphrased as 'how can we show HTTPS content to our users without needing to serve HTTPS content' - it's not possibleIt shouldn't be difficult to buy a certificate for your domain and install it to the server - costs $15-$100 for the cert depending on where you get it and a few minutes (or hours, ... | Closed.This question isoff-topic. It is not currently accepting answers.Want to improve this question?Update the questionso it'son-topicfor Stack Overflow.Closed11 years ago.Improve this questionMy organization has created a Facebook tab but because our site is not SSL certified the tab only works on some computers. We... | We don't have an SSL site and will be unable to get one. How do I work around this? [closed] |
3
The following code snippit will allow you to prepare a commit with multiple files, then associate a new branch to it, using the Java library from Kohsuke
// start with a Repository ref
GHRepository repo = ...
// get a sha to represent the root branch to start your commit... |
I already use the GitHub API to make automated commits.
For this I'm using a Java Library from Kohsuke
It works with this API command:
Create a file
This method creates a new file in a repository
PUT /repos/:owner/:repo/contents/:path
But is it possible to include multiple files in 1 Commit per GitHub API?
| Not possible to pass multiple files per commit per GitHub API? |
Playgrounds are the work of the devil. Test in a real app project, not a playground, and you will see that this works as you expect.
|
This question already has answers here:
Weak references in Swift playground don't work as expected
(5 answers)
Closed 7 years ago.
The following code defines Person and Apartment. ... | Property is unable to set to nil via weak reference [duplicate] |
There is no way to automatically subscribe an endpoint to a topic, but you can accomplish all through code.
You can directly call the Subscribe API after you have created your endpoint. Unlike other kinds of subscription, no confirmation is necessary with SNS Mobile Push.
Here is some example Objective-C code that cre... |
I'm implementing push notifications in an iOS app using Amazon SNS and Amazon Cognito services.
Cognito saves tokens successfully, my app gets notified, everything's working well, but there is a thing.
Now, when still in development, I need to manually add endpoints to an SNS topic, so all subscribers can get notifica... | AMAZON AWS How do i subscribe an endpoint to SNS topic? |
You caninstall Sourcertree:https://www.sourcetreeapp.com/.It will use your ssh keys and it should work without any problems.Make sure to set the ssh to openssh and not to putty. | I'm hitting a weird roadblock with Git. I'm trying to push some code to GitHub using Git Gui. I've done this many times before, but this is the first time on this machine. I've set up the keys like I've done on my other machines, and added the public key to my GitHub account. But, here's where things get weird. I ... | Push with Git Bash works, but fails with Git Gui |
You need to update your build command to:docker.build("test-alpine:123", "test-alpine:latest .")It will produce the following bash command underhood:docker build -t test-alpine:123 -t test-alpine:latest .So probably need to put this code in your Jenkinsfile:docker.build("artifactory/docker/${IMAGE_NAME}:${BUILD_NO}","-... | How can I set another tag for docker build step in the Jenkins pipeline which usesdocker.build()script?As for now I have:docker.build("artifactory/docker/${IMAGE_NAME}:${BUILD_NO}")and thenrtDockerPush(
serverId: "Artifactory",
image: "artifactory/docker/${IMAGE_NAME}:${BUILD_NO}",
targetRepo: 'docker',
)
rtPubli... | docker.build() in Jenkins pipeline with two tags |
Containers that run in the same pod can connect to each other vialocalhost. TryURL: "ws://localhost:4000/"in your ConfigMap. Otherwise, you need to specify the service name likeURL: "ws://proxy-service.<namespace>:4000". | I have been trying to port over some infrastructure to K8S from a VM docker setup.In a traditional VM docker setup I run 2 docker containers: 1 being a proxy node service, and another utilizing the proxy container through an.envfile via:docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' proxy-c... | Kubernetes env referencing a pod/service |
You can allocate as much bytes as typesize_thas different values. So in 32-bit application it is 4GB in 64-bit 16I don't even know how to call that sizeAll in all you can allocate all memory of machine.ShareFollowansweredOct 14, 2013 at 19:52ST3ST38,85044 gold badges7070 silver badges9696 bronze badges5Just for giggles... | How much memorycallocandmalloccan allocate?Asmallocandcalloccan allocate memory dynamicallyExamplevoid *malloc (size_in_bytes);Andcalloccan allocate memory depending on the number of blocksExamplevoid *calloc (number_of_blocks, size_of_each_block_in_bytes); | How much memory calloc and malloc can allocate? |
Ok this was dumb of me, @Chris I think you were going to stumble upon it. I had done aheroku rollbackand didn't realize that when you rollback on Heroku, the git repo head commit doesn't change.This is the thread that solved it:heroku rollback didn't update the HEAD remote branch, did it? | I'm literally falling apart at the seams with angry, nervous laughter. Someone PLEASE help me...Screenshots:https://medium.com/p/4ff0a5af7f53Rungit status, I am on working branchRedesignwith nothing to commit and a clean working directory.Runrails serverand navigate tolocalhost:3000. Yay pretty website, let's just deno... | Heroku and Git are not updating, pushing, or pulling properly |
Although the default API's allow the network stack to select a local port for client connections, clients may specify a fixed port for various reasons.Some specifications (FTP) specify a fixed port for clients. Most servers don't care if clients get this correct.Some clients use a fixed pool of ports for egress from a... | some guys use a firewall on their laptops which not only blocks their ownlocalincoming ports (except those they need for their application) but also blocks messages unless they are issuedfroma distinct port number. We're talking about a local UDP server which is listening to UDP broadcasts.
The problem is that the remo... | Remote port blocking in firewalls? |
Take pull after adding remote:
1. git init
2. git add .
3. git commit "Fresh update after changing db"
4. git remote add origin <repo_url>
5. git checkout -b staging
6. git fetch
7. git push -f origin staging
Avoid using force push if possible. Let me know exact scenario for better solution.
|
I have a project directory(without git folder) where I am working and trying to update an existing remote branch forcefully.
Steps I have taken -
1. git init
2. git add .
3. git commit "Fresh update after changing db"
4. git remote add origin <repo_url>
5. git push origin staging
And I get the below error -
error: sr... | Git push force to update a branch |
According to mozilla's developer documents, delete does not work that way.
The delete operator deletes a property from an object, it does not delete the object itself.
So instead of using it as you have demonstrated, you would use it more like the following:
myGlobalObject = {};
var myObject = {};
myObject.propertyA =... |
I just found out that javascript has a delete statement. I've read a bit about it and am not much the wiser.
So I am hoping to get a functional definition of when I should use it, if at all. So I know I can delete properties of an object; as is made obvious by this fiddle:
var myData = {a:"hello",b:"world"};
alert(myD... | When/If to use Delete in Javascript |
Because that repository doesn't actually have any releases. It only has tags that GitHub is presenting in the releases page.For a more clear example, see:https://github.com/hashicorp/terraform/releasesWhich has both releases and tags showing on that page, but the API only shows the releases:https://api.github.com/repos... | So as per the documentationhttps://developer.github.com/v3/repos/releases/#list-releases-for-a-repositoryGET /repos/:owner/:repo/releasesshould list all relases , sohttps://api.github.com/repos/jquery/jquery/releasesshould list allreleasesin JQuery project , but its not , why ? | How to list all releases of public repository with GitHub API V3 |
I believe the cells in the tableview are recycled.
cache the images in memory and assign from your cache rather than loading the images directly into the tableview
I don't know if this is best practice or not but I think you could use an NSArray or NSDictionary of UIImage and load into there first and just assign refe... |
I have a UI Table View Controller. Each Cell Loads an image from my webserver.
If I scroll the TableView so that a particular cell scrolls out of view and then scroll back again the image for that cell has vanished and I have to wait for it to reload.
I'm guessing this is some performance/ memory management thing buil... | Stop Images Disappearing when scrolling UITableView |
Slighly nicer version of my above comment:#!perl -T
use warnings;
use strict;
scalar(@ARGV) > 0 or die "Use: $0 <pid>";
my $pid = $ARGV[0];
$pid = oct($pid) if $pid=~/^0/; # support hex and octal PIDs
$pid += 0; $pid = abs(int($pid)); # make sure we have a number
open(my $maps, "<", "/proc/".$pid."/ma... | I want to enter the pid at the command line and get back the largest contiguous address space that has not been reserved. Any ideas?Our 32 bit app, running on 64 bit RHEL 5.4, craps out after running for a while, say 24 hours. At that time it is only up to 2.5 gb of memory use, but we get out of memory errors. We th... | Linux: how to check the largest contiguous address range available to a process |
SeePrometheus count query for a particular periodJust usesum_over_time(x[1h])instead and 3600 as resolution/step.ShareFollowansweredOct 13, 2020 at 19:59sskrljsskrlj30911 silver badge44 bronze badgesAdd a comment| | I have a metric say x, of type gauge, And the values are reported every 5m.Now I want to make a query such that, I get sum of values in each hour in a day.Exmaple: from 3PM to 5PM, the gauge values are 1,1,1,1,1,2,2,2,2,2,1,1,1,1,1,2,2,2,2,2,1,1,1,1,1,2,2,2,2,2,1,1,1,1,1,2,2,2,2,2,1,1,1,1,1,2,2,2,2,2,1,1,1,1,1,2,2,2,2,... | Group by time and aggregate in PromQL/MetricsQL |
You might be happier withVerverica Platform: Community Edition, which raises the level of abstraction to the point where you don't have to deal with the details at this level. It has an API that was designed with CI/CD in mind.I'm not sure I understand your second point, but it's normal that your job will rewind and re... | I want to run an apache flink (1.11.1) streaming application on kubernetes. With a filesystem state backend saving to s3. Checkpointing to s3 is workingargs:
- "standalone-job"
- "-s"
- "s3://BUCKET_NAME/34619f2862ce3e5fc91d80eae13a434a/chk-4/_metadata"
- "--job-classname"
- "com.abc.def.MY_JOB"
-... | continuous deployment for stateful apache flink application on kubernetes |
Try this:
void drawInitialNim(int num1, int num2, int num3){
int board[3][50] = {0}; // This is a local variable. It is not possible to use it after returning from this function.
int i, j, k;
for(i=0; i<num1; i++)
board[0][i] = 'O';
for(i=0; i<num2; i++)
board[1][i] = 'O';
for(i=... |
I have this code:
void drawInitialNim(int num1, int num2, int num3)
{
int board[2][50]; //make an array with 3 columns
int i; // i, j, k are loop counters
int j;
int k;
for(i=0;i<num1+1;i++) //fill the array with rocks, or 'O'
board[0][i] = 'O'; //for example, if num1 is 5, fill t... | abort trap 6 error in C [duplicate] |
Your application is able to allocate more memory than is physically installed on your computer because it supports virtual memory. Allocation, paging and releasing virtual memory is handled by the operating system to allow your application to run without having to worry about exhausting physical memory.
Keep in mind t... |
I have implemented a system which takes as an input some data, and produces as a result a very big vector< vector< vector<int> > > which I then output to a file.
After calculating the result I decided to count the total amount of numbers inside this final 3d vector and it was: 1386502951
that means that the total amou... | Why does my program produce correct output when my vector< vector< vector<int> > > is larger than the RAM? |
You'll have to create a separate init script to create the second database. Assuming you are usingPOSTGRES_DB=apias listed, you can create a scriptcreate_second_db.shlike so:#!/bin/bash
set -e
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
CREATE DATABASE testing;
EOSQLThen, ... | I'm building an app using PostgreSQL ... But I need 2 DB's ... Is there an easy way to add 2 DB's using the same username / password / host? One called API and one called TESTINGMy current docker-compose DB setup is as follows;# PostgreSQL Service
postgresql:
image: postgres
container_name: postgresql
restart: unless-s... | Multiple PostgreSQL database creation in a docker-compose file |
Ok, here's what I found thanks to @sebsto suggesting the Policy Simulator: I need bothPutObjectAclandPutBucketAcl. Now sync works. | I can't figure out why I get a 403 permission denied error when viewing a page. I am using AWS CLI with the following command:aws s3 sync [source] [s3 destination] --acl public-read --recursive --delete --profile [my_profile]On IAM my policy is as follows:{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "All... | AWS S3 CLI ACL public-read gives me 403 with sync command |
1
There are several potential issues here. Your current issue is the disconnect between /scripts and scripts/do_something -- one assumes a full path from root, the other is a relative path. Pick one and use it in both places.
You may also have permissions issues if your doc... |
I have a python project that's working fine. This is its setup.py:
from setuptools import setup
setup(
name='project',
version='0.4.2',
packages=['project', 'project.models', 'project.modules', 'project.transforms'],
url='http://12.3.4.100/team/project',
license='',
author='author1, author2',
... | docker: Error response from daemon: OCI runtime create failed: no such file or directory": unknown |
Have it like this:RewriteEngine On
# skip all files and directories from rewrite rules below
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^admin/(.*)$ admin/index.php?action=$1 [L,NC,QSA]
RewriteRule ^(.*)$ index.php?action=$1 [L,QSA] | I read tons of topics about this here on SO, but for some reason it not works for me, and I am totally confused. I know, I mess up something, I just cant figure it what.I have a site, and theindex.phpis calling the router, and show the content that I want.I've created an admin' page, and I want the webserver to use the... | .htaccess in subfolders |
7
Step 1: Terminate the Provisioned Product that launched, created or enrolled the member account, from the Service Catalog Console. This process is also known as unmanaging an account from Control Tower.
When you terminate an Account Factory account in AWS Service Catalo... |
How can I remove an enrolled account from AWS Control Tower? After removing a member account from AWS organization (in the master account), it still appears in Control Tower as "not found".
Removed member account listed as not found in Control Tower (I have not enough reputation points to post images directly)
How can... | Remove enrolled account from AWS Control Tower |
Instead of disabling caching for each single GET-request, I disable it globally in the $httpProvider:
myModule.config(['$httpProvider', function($httpProvider) {
//initialize get if not there
if (!$httpProvider.defaults.headers.get) {
$httpProvider.defaults.headers.get = {};
}
// Answ... |
All the ajax calls that are sent from the IE are cached by Angular and I get a 304 response for all the subsequent calls. Although the request is the same, the response is not going be the same in my case. I want to disable this cache. I tried adding the cache attribute to $http.get but still it didn't help. How can t... | Angular IE Caching issue for $http |
Your regex:^database/(w+)_(d+)/?$matches "database", then a "/", then one or more "w"'s (literally the letter "w"), a "_", then one or more "d"'s (literally the letter "d"). You want to escape the "w" and "d":^database/(\w+)_(\d+)/?$ | If I write.htaccessfile like this :RewriteEngine on
RewriteRule ^(.+)$ test.phpIt make127.0.0.1/everyword---->127.0.0.1/test.phpBut if I change.htaccessfile like this:RewriteEngine on
RewriteRule ^database/(w+)_(d+)/?$ database.php?$1=$2It can not make127.0.0.1/database/league_1---->127.0.0.1/database.php?league=1T... | why my apache rewriterule does not work? |
It would likely crash when the object would normally be autoreleased. autorelease means "delayed release", so it will be released: just later. Since the object won't exist later as you are manually releasing it, you will likely crash due to the runtime sending the -release message to your now-deallocated object.
Edit:... |
i.e. would cause the object to be released immediately and not have to be released by the pool if I did this?
[[NSArray arrayWithCapacity:100] release];
Can't find a clear explanation in the docs about this.
| Can I early-release an autorelease object? |
I think there are good gc related reasons to avoid this sort of allocation behaviour. Depending on the size of the heap & the free space in eden at the time of allocation, simply allocating a 30000 element byte[] could be a serious performance hit given that it could easily be bigger than the TLAB (hence allocation is ... | As part of a memory analysis, we've found the following:percent live alloc'ed stack class
rank self accum bytes objs bytes objs trace name
3 3.98% 19.85% 24259392 808 3849949016 1129587 359697 byte[]
4 3.98% 23.83% 24259392 808 3849949016 1129587 359698 byte[]You'll notice ... | Repetitive allocation of same-size byte arrays, replace with pools? |
You declare char inputCopy[255] inside of each function, and then return a pointer to it. However, the array exists only in the scope of the function, causing undefined behavior.
You can avoid this by creating the array in the main, and passing it as an argument to the functions. Also, use malloc to dynamically alloc... |
I'm trying to get the second word from a string in C using strtok:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
char* GetFirstToken(char str[])
{
const char delim[] = " ";
char inputCopy [255];
strcpy(inputCopy, str);
return strtok(inputCopy, delim);
}
char* ... | Get second word from string |
0
Well, it appears that those views were not really independent, but rather
calling each other in a multi-hyerarchy of layers.
Since (being careful) I started removing only the truly, really useless of them,
I broke one or two of the remaining ones. Now I'll have to reconst... |
I have a mySQL database that I backup everyday like this:
/usr/bin/mysqldump --all-databases --events > "some_file_name"
This db contained a number of obsolete and useless views that I DROPped 2 days ago,
after which my backup started complaining:
mysqldump: Got error: 1356: View 'xyz' references invalid table(s) or c... | mysql broken after dropping useless views |
The certificate shouldn't need to be imported on the client machine. If you are using a self-signed certificate, or a certificate from an internal CA, you need to make sure that the issuing chain for the certificate is ultimately trusted on the client machine.You'll also want to make sure that the DC is listening on 63... | I am new to LDAP and SSL and AD. Trying to understand how to go about with it but could not find answers to some questions even after a lot of search on google.When AD Certificate authority is installed it generates a certificate which has to be imported in the AD Domain Controller. Is this correct?
This import is a on... | Should LDAPS certificate be imported into every client machine if it has to authenticate with Active Directory? |
Actually found a solution here:UIWebView to view self signed websites (No private api, not NSURLConnection) - is it possible?What it actually does is to intercept the UIWebView to launch a NSURLConnection to allow the server to be authenticated, therefore then continue the connection using UIWebView, and cancels out th... | I have a page with UIWebView, it was working well until recently some of the redirection changed, with the URL from HTTP to HTTPS. The page could not be displayed.Error logged:Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid.Now, I wish to bypass all the cert checks and allow all the... | Loading HTTPS in UIWebView |
A Service of typeExternalNamewill not be useful. Its main purpose is to present as native cluster services,services that are hosted externally. For example, with anExternalName, you can expose an AWS service as a regular service hosted on GKE. Seehttps://github.com/kubernetes/community/blob/master/contributors/design-p... | I want to access a PostgreSQL component deployed in Kubernetes on GCP from the internet.I wrote Pulumi code for a service with an external name.
The service looks like this:import * as k8s from "@pulumi/kubernetes";
import {clusterProvider} from './cluster'
export const postgresService = new k8s.core.v1.Service('postgr... | Why is Kubernetes service external name not accessible on the internet? |
No -- it's not possible to complete the GitHub OAuth flow from client-side JavaScript. You need to use a server component.ShareFollowansweredJul 1, 2015 at 15:08Ivan ZuzakIvan Zuzak18.4k33 gold badges7272 silver badges6161 bronze badgesAdd a comment| | I'm trying to create a github app using just static pages with no server side logic. Is there a way to get an access token without having to make the access token post with a secret key?This code is going to be on a public repo served withgh-pages, so I can't store the secret key. I know dropbox and other oauth provid... | Get github OAuth token without secret |
Create a .gitignore file at the root of your project. Add node_modules to it. Remove the node_modules folder from your local repo. Recommit the changes. Then push up again.
Then run npm i on your terminal/command line to get the eslint packages back on your local computer. Now the directory will no longer be pushed on... |
I have a javascript application with eslint set-up and the needed Node modules, all in the same project folder. Node is only used so that eslint works.
The whole thing is pushed to GitHub and I'm noticing now the whole node-modules is getting uploaded with it (17mb approx), again I'm just using node for eslint only.
... | Use of node with eslint in a javascript webapp |
Users can install digital identities (certificates plus their
associated private keys) onto their iOS devices by downloading them
from within Safari, by opening them as email attachments, and by
installing them with configuration profiles. Or, identities can be
pushed from a Mobile Device Management (MDM) serve... | I am trying to secure a iOS app by checking the installed SSL certificate exists or not. First I created a self-signed certificate with OpenSSL, and then install it to my iPhone. Right now I need to programmatically check this certificate is installed or not. If it exists, the app can run without limit, if not, use won... | How to use installed SSL certificate to secure iOS app? |
However I find that postHash is an empty string (@"") for some users some of the time.
Can anyone explain why?
Because hash is an empty string (hash[0] == '\0').
|
I have some code in my application that looks something like this:
char *hash = (char*) sqlite3_column_text(get_bookmark, 0);
NSString* postHash = [NSString stringWithUTF8String:hash];
This works for me every time; I've never seen it not work. Most of my users do not experience problems (as far as I know). However I ... | Why does Cocoa return an empty string occasionally? |
11
bundle update --bundler will update the BUNDLED_WITH version.
Share
Follow
answered May 12, 2022 at 17:10
JaredJared
2,94522 gold badges2828 silver badges3333 bronze badges
... |
I had two versions of bundler installed locally 1.15.2 and 1.16.1. I had pushed my code and soon realized that the gemfile.lock BUNDLED WITH, updated the version to 1.16.1 and that is not what we want.
I then removed 1.16.1 locally and now my default is 1.15.2 which is exactly what I want and ran bundle install in th... | How to change the version a gemfile.lock is bundled with |
Copy contents ofcluster-kubeconfig.yamlfile to$HOME/.kube/configThis will be the default kubernetes context file.You can also override and point to any other custom kubernetes context using$Env:KUBECONFIG=("/path/to/cluster-kubeconfig.yaml")as mentionedhere.For more info checkthisout.Hope this helps. | I've setup a K8s cluster and got the config file which I have placed in the
username/.kube directoryI can't seem to workout how to link my Powershell Kubectl to this config file by default. For instance if I try and run the following command I don't get the cluster I've setup.kubectl config get-contextsIf however, I r... | Kubectl how to connect to config file |
Mark Crameraddsin the comments(July 2014):With GitHub for Windows 2.0 the drop-down menu has changed slightly.Select the repository you wish to work with (on the left) and then from then "Open in Git Shell" from the drop-down and you'll get a window that will enable you to enter command line commands.Original answer (... | I want to pass github for windows because of easy usage and its user friendly design.
But I have to know some codes which i used classical version of Github.For example how to reach these commands?"gitk -all""git reset --hard HEAD""git diff"Thanks for your help. | How to reach some commands on Github for windows |
It is possible but not trivial to establish direct connections between clients with the centralized server's help. This is calledNat Traversaland works by punching holes in the firewalls using "fake" UDP packets.
The technique was pioneered (or at least brought to the forefront) by Skype.See the Wiki article for links... | I'm a pretty simple question. I implemented a system where can send data between two clients without using a direct connection between them (without opening ports in the firewall on clients), following this model:Client 1 ------> Server ------> Client2
Or
Client 1 <------ Server <------ Client2There is nothing wrong wi... | Winsock + C + Client to Client + Send And Receive Data |
In your Dockerfile, run this first:apt-get update && apt-get install -y gnupg2orapt-get update && apt-get install -y gnupg | I have installed docker on windows 10 pro. I am facing an issue while running the following command in git-bash.docker-compose up -d --buildand got following error.E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
(23) Failed writing body
Error executing command, ex... | E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.