Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
By adding your self signed certificate as trusted root you won't get the warning page anymore but the red lock will remain. You will need to do this for each certificate you want Chrome to trust.View the certificate by clicking the red lock next to the URL and clicking "Certificate"Go to the "Details" tab and "Copy to ... | I need to bypass/prevent privacy error message of "Your connection is not private" or automatically proceed to (unsafe) .
I can accept unsafe connection by clicking on advance but, it's not permanent.It will again shows after system restart.
Chrome version is "51.0.2704.63 m"I have tried various links but still I don'... | How to stop Security Warnings in Google Chrome for Self-Signed Certificates |
I am going to answer my own question rather than deleting this because maybe someone else will be making the same simple mistake I was.The main mistake I made was having the incorrect CUDA download. you can refer to the what versions are correct at this link:https://www.tensorflow.org/install/source#gpuTLDR: Just follo... | My tensorflow recognizes my gpuHowever, when I call model.fit() on my data it shows:epoch(1/2) and then the kernel dies immediatelyIf I run this in a separate virtual environment with no GPU it works fine:I have simplified the model architecture and number of training points to only ten as a quick test and it still fai... | Python 3.8.8 Jupyter notebook kernel dies when I call model.fit() when I try to use my GPU |
4
OK! I've found 2 solutions for this
1. If you own the repo that you want to watch
In you're repo page, Go to settings
click webhooks, new webhook (top right)
give it your ip/endpoint and setup everything to your liking
use any server (such as in @pigeonhands answer) to g... |
I need an help to create a python watchdog system to monitor a GitHub repo.
The idea is: every time something new is pushed on a repo (master), I'd like to update my repo on a server with the new commits/push.
Any idea how can do this?
| Python watchdog to monitoring github repos changes |
So this is not a multi-stage issue.
It appears ENV variables are only used when running containers (docker-compose up). Not at build time (docker-compose build). So you have to use arguments:
.env:
TEST=11111
docker-compose.yaml:
version: '3'
services:
test:
build:
context: .
args:
TEST: ${T... |
given this .env file:
TEST=33333
given this docker-compose.yml file:
service_name:
image: test
env_file: .env
environment:
TEST: 22222
given this Dockerfile file:
FROM an_image AS builder
FROM another_image
ENV TEST 11111
CMD ["/bin/echo $TEST"]
Whenever I build and run this image in a contain... | Docker environment variables in multi-stage builds |
It definitely does, however I would also remove the chown binary (as well as all admin tools). This would make it harder when someone accesses the container as e.g. root. See here for a related answer.
Also, see this Dockerfile for inspiration.
|
Following docker-node’s best practices, I want to run my node app as non-root user. The recommendation is as follows:
FROM node:6.10.3
...
# At the end, set the user to use when running this image
USER node
My simplified Dockerfile currently looks like this:
FROM node:6.10.3
WORKDIR /opt/app
COPY package.json .
RUN n... | docker-node: Running as non-root user, file permissions |
Use below command to view the release name and namespacenamehelm listAnd uninstall the release byhelm uninstall releasename -n namespacenameIn your case it will be./helm uninstall prometheus-1591246262 -n dabai-pro | I am install promethus-operator using helm v3.2.1 like this:./helm install stable/prometheus-operator --generate-name -n dabai-pronow I want to move the component prometheus-operator fromdabai-pronamespace tomonitoringnamespace and want to delete this installing, I read the docs and doing like this:[miao@MeowK8SMaster1... | how to uninstall component using helm in kuberetes |
Yes, you can use the same set of the certificate to secure www.mywebsite.comIf you have installed the certificate on AZURE for app.mywebsite.com then you need to install the same set of certificate on GoDaddy using C-panel (You will require key, server certificate and intermediate bundle certificate to install it on Go... | 1) I have a godaddy domain with linux hosting that I use for a landing page, let's saywww.mywebsite.com2) I have an azure web app that I configed using a CNAME record and is accessible atapp.mywebsite.com.3) I have a wildcard SSL certificate on Azure that is configured with SSL bindings forapp.mywebsite.com.this works ... | Secure GoDaddy site with Azure SSL Certificate |
You could use Keda autoscaler. Keda is a CNCF project that can scale your deployments based in different streaming/queue services, there is a implemented autoscaler for NATS:https://keda.sh/docs/1.5/scalers/nats-streaming/I've been using Keda autoscaler with rabbitmq and works like a charm. | I am new to both Nats and Kubernetes.
I created a python console application that is subscribed to nats-server and wrapped in a pod with a Deployment object in Kubernetes. Now I want to auto-scale the pod based on the number of events published in nats-server for this python client.
How I can do that ? can anybody give... | Horizontal scaling based on the number of events published in NATS server |
The problem was resolved by deactivating SLI from the NVIDIA Control Panel. | Is there a known issue that prevents the GPU-enabled version of CNTK 2.0 from running in Anaconda 3 4.4.0 64bit, Windows 10 Pro 64bit?I have installed Anaconda 4.4.0, created an environment with Python 3.6.1 and installed CNTK using the precompiled CNTK GPU image for Python 3.6, according to the instructions found unde... | GPU-enabled CNTK 2.0 for Python appears to hang with 100% CPU thread workload in Anaconda 3 4.4.0, Windows 10 Pro 64bit |
+150First of all, expose Prometheus metrics endpoints:As per your endpoint URLmyServerURL/app/metricsit is already exposed so don't need to do anything.Secondly, Create an IAM role that has full access to CloudWatch with the following roles policies attached so you can have access to the logs.CloudWatchAgentServerPolic... | TeamCity has Prometheus logs located at myServerURL/app/metrics. I want to use these metrics in CloudWatch. What are the best steps to take to do this?I think I need to:expose Prometheus metrics endpointcreate AWS Cloudwatch log group where I want to store these metricsWhat else is involved and do I need to format the ... | How to ingest Prometheus logs from TeamCity into Cloudwatch? |
A struct consisting of two u8's is basically a u16. Since u16 implements Copy, you probably want to make your struct implement Copy as well. For such small types a reference will always be larger than the type itself.
#[derive(Copy, Clone)]
struct U16 {
a: u8,
b: u8,
}
|
I am currently a month or two into learning Rust and wanted to make a small program to learn it which consists of objects that have a struct containing two u8’s. My question is, whenever that struct is asked-for immutably, would cloning/copying it be more memory efficient than referencing to it since the reference wou... | Do references take up memory? |
0
You probably did what I did - you double-clicked the token to select it. Unfortunately, on Windows, this also selects the whitespace at the end of the password. Either click the copy button or make sure to remove the space when you paste the token.
This token has been rem... |
I went through the process of creating a PAT on GitHub. I'm trying to run a gitpushcommand. However, whenever I enter the PAT into the terminal when prompted:
Username for 'https://github.com': USERNAME
Password for 'https://[email protected]':
I receive the following messages:
remote: Support for password authentic... | Terminal is recognizing PAT as a password and not a token |
A merge is translated into a commit.
All you need to do is to revert to the commit that preceded the merge.
use the hashtag of the commit or the HEAD~ as a target for the revert.lookhereon how to do a revert. | I made a mistake the other day when doing some commits on a GitHub project for work. I am still a little new to git (an undergrad student) and I need to undo a merge. I accidentally merged the master branch, as seen in the photo below, to the feature branch called 'wav2sig-scal-RMS-vals'.imageI've looked at several gui... | Git - Undo merging master branch into another branch |
After comparing the working app and broken app, several differences were found. The reported issue went away after I removed the token configuration below from the broken app: | I have a web site secured by Azure AD which has recently become broken.When a user logs in, the interaction with AAD works fine but at the last step the browser would decide to block the web site URL with the message below. The URL remains blocked until cookies and site data are cleared.The behavior is not universal bu... | Browser blocks Web site secured by Azure AD |
You need to add 2 more rules to handle 3 query strings (or 4 more if you want to also handle having 2 query strings).The rule that checks%{THE_REQUEST}looks at the URL in the HTTP request, and matches against the query string (theu=([^&\ ]+)) and redirects the browser so that the new URL is displayed in the browser's l... | I askedthisquestion and got a great answer, just that i still don't understant how this happens. Maybe someone can explain this process and what each flag does.So now i have,site.com/index.php?query1=this&query2=that&query3=those and i want this translated into
site.com/song/this/that/thoseHere's the existing code.Opt... | How to flatten url with more than one query string using htacess |
Ultimately, no.Polymorphism only works with non-value types: references and pointers. And since references can only be bound once, you cannot really use them in standard containers. That leaves you with pointers.You're attacking the problem at the wrong end. If you are concerned about the overhead of allocating lots of... | EDIT: A better title for this would be: polymorphism for large collections of objects without individual heap allocations.Suppose that I have a base classAnimalwith virtual functions and some derived classes (Cat,Dog, etc.). The real derived classes contain 4-8 bytes of data. I want to store astd::list<Animal>which act... | C++ polymorphism without pointers |
An exception is thrown because there is a space in the string you want to parse.Solution 1 - Replace Methodstring noSpaceString = spaceString.Replace(" ", String.Empty);Solution 2 - Regexstring noSpaceString = Regex.Replace(spaceString, @"\s", "");After using one of the following methods, you can call a method that par... | I'm trying to convert a negative string to a decimal with this line of code in a dotnet docker container.var foo = Convert.ToDecimal("-1 097,42");Locally I get -1097,42 as expected. But when I run the code in a dotnet container I get:Unhandled exception. System.FormatException: Input string was not in a correct format.... | Convert.ToDecimal throws "System.FormatException: Input string was not in a correct format" inside dotnet core docker container |
don't know this exact environment, but a quick google search suggested this:Consistent .gitignore for Dart and Flutter projects #13892and thisgithub/gitignoreenjoy! :) | I'm pushing my entire Flutter Project to GitHub. But I wonder if there is any safety precautions I should take before bringing it to the public.I usedgit add .and pushed it to my remote repo.Maybe there's some sort of private data that shouldn't be shown? | What files in Flutter project should I NOT push to a remote repo? |
docker execis purely for debugging purposing.docker runis what you want to start a container based on an image.When you run a container, you do so based on an image and parameters like network.Example:docker run -itd --network=multi-host-network busyboxThat being said, an existing running container can be attached to a... | How can start a specific container created linked with my image? exec command? or another command?And: Supposed to have more container to refer single image, what is the command to start a specific container with network?The commanddocker runcan start only image with network (--net=hostfor example), but I don't want ru... | Docker info about images and container |
In a deployment or replicaSet you can use podAffinity and podAntiaffinity.Inter-pod affinity and anti-affinity allow you to constrain which nodes your pod is eligible to be scheduled, based on labels on pods that are already running on the node rather than based on labels on nodes.The rules are of the form “this pod sh... | Is there such a thing as a hybrid between a replicaset and a daemonset.
I want to specify that I always want to have 2 pods up. But those pods must
never be on the same node. (and I have like 10 nodes)
Is there a way I can achieve this? | Hybrid between replicaset and daemonset |
4
Yes, that sounds about right. Probably even more because your 1MB byte array needs to be turned into UTF-16, so depending on the encoding, it may be even bigger (2MB if the input was ASCII).
Note that the garbage collector can reclaim memory as soon as the variables tha... |
I have a simple question.
byte[] responseData = ...;
String str = new String(responseData);
String withKey = "{\"Abcd\":" + str + "}";
in the above code, are these three lines taking 3X memory. for example if the responseData is 1mb, then line 2 will take an extra 1mb in memory and then line 3 will take extra 1mb + x... | Java Strings : how the memory works with immutable Strings |
What you're doing is exactly right. Nilifying an object instance variable under ARC releases the object. Releasing an NSArray, if it causes the NSArray to be deallocated, also releases all its elements.If you're in doubt or confused about memory management and ARC, you might do well to stop and read up on the facts unt... | I'm developing an iOS application using latest SDK and ARC.I have this variable:NSMutableArray* _previewImageBuffer;And this method:- (void)shutdown
{
[self stop];
_previewImageBuffer = nil;
}Is_previewImageBuffer = nil;correct? If I do it, what happens with memory allocated in _previewImageBuffer`? Is this a m... | Release a NSMutableArray when using ARC |
The syntax in .gitignore looks good.
What about your repository: are the.jpg and .jepg files pushed to the repository? If the files stay already in the repository (git push already executed), you must untrack this file. Then after push the file Git will tracked this added files and any skipping matching rules will be ... |
I have this .gitignore file:
.DS_Store
node_modules
/dist
screen
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
# Vue Browser Extension Output
*.pem
*.pub
*.zip
/ar... | .gitignore - ignoring image files not working |
When you're setting a delegate, you should assign it, not retain it (and so the deallocation of the cells should not send a release message to the table view controller).
Delegating objects do not (and should not) retain their delegates.
However, clients of delegating objects (applications, usually) are
responsib... |
I faced a very interesting situation and do not know how to resolve it. I'll outline first the architecture of my program. I have a UITableViewController derived class that also implements a my delegate protocol. The cells in this table view are custom cells, and each of them have a strong (assign) type property to th... | viewDidUnload sent to deallocated instance after memory warning |
I think you need to use two column transformers, so if you set up the minmax this way:minmax = ColumnTransformer([(
"minmax",
MinMaxScaler(),
["age", "sibsp", "parch", "fare"])
],remainder='drop')The output comes without column names, but based on the column names we input, age will be the first, so:imp = ColumnTransfo... | I am working on the Titanic dataset and I wish to handle all the preprocessing activities on a pipeline. So, here is my code:To get the dataset!wget "https://calmcode.io/datasets/titanic.csv"And then read it as below:import numpy as np
import pandas as pd
from sklearn.preprocessing import MinMaxScaler, OneHotEncoder
f... | How to setup the Imputer as part of sklearn pipeline? |
Setting thePYTHONPATHas such works but feels clumsy:ENV PYTHONPATH "${PYTHONPATH}:/app/"Using Docker'sWORKDIRallows for a much cleaner solution:FROM python:3.7
WORKDIR /code
RUN pip install fastapi uvicorn python-osc
EXPOSE 80
COPY app ./app
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"]Note ... | When running my docker image, I get an import error:File "./app/main.py", line 8, in <module>
import wekinator
ModuleNotFoundError: No module named 'wekinator'`How do I import local python modules in Docker? Wouldn't the COPY command copy the entire "app" folder (including both files), hence preserving the correct impo... | Importing python files in Docker container |
Generally you do not need to worry about managing any assets that aren't attached to an outlet -- including UIImageView assets -- in NIBs. They will released when the view is released.
If you have any concerns about how memory is being used and released in your app, your best bet is to use instruments to profile memo... |
I am trying to improve memory management in an iPhone app. It's helped to set IBOutlets to nil in viewDidUnload, but I'm wondering if I need to do any memory management around the static UIImageView's in my nib's which aren't hooked up to any IBOutlet. Or does iOS take care of them well by itself?
| Should I worry about memory management for NIB file resources? |
As the GitHub documentation states, any secrets you push to a repository must be considered to be compromised. There are services which do scan repositories for secrets with the attempt to exploit them immediately.
If you're concerned about whether someone's misused those credentials, you can see if npm has a list of... |
i have question about github.
I published npm secret key in public repository and github deleted this key. But i don't understand, someone could see this key and have time to download my packages?
| Publish npm secret key in public repository |
When you switch from master to gh-pages, is it telling you its up to date with origin/gh-pages ?
If not, have you set up an upstream branch tracking?
if its a new branch do
git push -u origin gh-pages
Keep in mind that message only shows when your local branch is either ahead or behind remote branch, (when doing git... |
Help, please ~
I encountered a question that I cannot see the local commits on git status after i add&commit my files,
$ git status
# On branch gh-pages
nothing to commit, working directory clean
as we know, normally I should see a message on git status, for example,
# On branch master
# Your branch is ahead of 'orig... | cannot see the local commits on git status |
Can you use somesubdomain.yourhost.com:80 instead of yourhost.com:3000? | I am running an online game site in which the users login to the web site and open a game client (Java applet) that communicates with the game server (also written in Java) by opening a socket connection to port 3000 of the same host.There is a problem with this model in that sometimes the client network has firewall r... | Client/server communication is blocked by firewall |
To deal with env variables in my lambdas i use this plugin
https://www.npmjs.com/package/serverless-dotenv-plugin
It looks for a .env file use it as a reference to your env variables.
plugins:
- serverless-dotenv-plugin
Hope it helps.
|
I use serverless framework and I have multilple aws node.js lambdas that share the same layer. I want to define an ENV variable for all of them-is there a way to put that common ENV variable into the layer's serverless.yml? Or do I have to go and put it in each serverles.yml files separately?
| Is there a way to define a common env variable in aws lambda layer? |
You should remove the#infront of the rule.
Every rule that has a hash infront doesn't get executed in .htaccess | I bought an SSL certificate for my domain and when I access the site typinghttp://example.comthe url is being redirected tohttps://example.com, but the url www.example.com unfortunately is not. So I need to redirect the www traffic to nonwww, so the site is secure in both cases for visitors to read. I need to edit the ... | ssl certificate and redirection of traffic from www to nonwww |
According to thedocumentation:JSONPath regular expressions are not supported. If you want to match using regular expressions, you can use a tool such asjq.Run the following command to achieve the desired result:kubectl get pods -o json | jq -r '.items[] | select(.metadata.name | test("test-")).spec.containers[].image'R... | I'm trying to retrieve pods using a JSONPATH query which matches the name with a certain pattern matching as specified below and I get the error as shown. Any reason what would be the reason for the failure.kubectl get po -n sdfd -o jsonpath='{.items[?(@.metadata.generateName =~ /abc.*?/i)].status.podIP}'
error: error ... | kubectl get pods JSONPATH failed to do a pattern match |
) Yes you can specify a limit for a query (1000 in your case).2) No. The time is not the same. More records will mean more time - because you will need to fetch more pages (most time will be spend in network roundtrips)3) If you hit the 1MB limit, Dynamo will provide a LastEvaluatedKey. You repeat the request and pass ... | I'm currently thinking about how I should write my queries for DynamoDB. I have questions below which I hope someone could advise me on it.Given scenarios: I have a million records on a table.Questions:When I query, can I fetch 1000 records in batches instead of 1 million records at one go?Is the time taken to fetch 10... | Questions on dynamoDB query result |
Just belowR=301rule you can add this rule:RewriteRule ^api/ api.php [L,NC] | I've been using Laravel for my API server, however it takes alot of resources for tiny tasks and we want to write our API in a different framework. Unless I completely seperate our API for scalability purposes, can I temporarily redirect all/api/*requests toapi.php?This is our folder structure:app
vendor
public
ind... | How can I redirect /api/* requests to another file? |
Unfortunately it's impossible to use CKEditor 4.5 official embed plugin within a CMS running over https, it's not allowed by the default iframe.ly service according tothis reply.Possible workarounds are:Host the iframely service locallyon your serverUse the public service through theiframe.lydomain with your own API ke... | I'm getting an error in CKEditor Media Embed plugin whenever I use https, If I use http service, it just works fine.The service URL which I am hitting ishttps://ckeditor.iframe.ly/api/oembed?url=https%3A%2F%2Fyoutu.be%2FVN_qxutU_qc&callback=CKEDITOR._.jsonpCallbacks[133] | CKEditor embed getting error { "status": 403, "error": "valid api_key required" } for https |
Ok, reading the Spring Security docs the following solution works. Add a customJwtDecoder(e.g. based onNimbusJwtDecoder) to the security configuration like:@Bean
public JwtDecoder jwtDecoder(RestTemplateBuilder builder, SslBundles sslBundles, OAuth2ResourceServerProperties oAuth2ResourceServerProperties {
RestOperati... | With the Spring Boot 3.1 releasesecuring the application with SSLis getting more comfortable. Although I'm struggling to add a custom SSLContext to the AuthenticationManager (using JwtAuthenticationProvider) in my application (seeSpring Security docs).The AuthenticationManager of my application should communicate with ... | Spring Boot OAuth2: How to access the authentication server with custom SSLContext? |
You must readMono documentationabout ASP.NET MVC Support. Mono can handle your needs, running under Docker Linux Containers.
Using Windows Containers (new feature becomes with Windows Server 2016) you will do that without any trick.
About Mono and Docker, that was useful, stable and can solve your requirements, depend... | I have one project base on asp.net 4.5, now I want run it in Docker. As far as I am known, only asp.net 5 be supported this moment, so has any way let me run my project in Docker? | Run asp.net 4.5 in Docker |
Kubernetes doesn't really think in terms of machines (nodes in k8s jargon). When you set up a Deployment object, you specify a number of replicas to create, that's how many copies of the Pod to run. So rather than deploying on multiple machines, you create/update the Deployment once and set it to have multiple replicas... | I'm trying to automate the process of simultaneously deploying an app onto multiple machines with kubernetes clusters. I'm new to kubernetes.Which tool/technology should I use for this? | How to deploy an app into multiple machines on kubernetes simultaneously? |
2
Just simply DO NOT put "/" in front of folderName1, and things will work out.
Swift:
let listObjectsRequest = AWSS3ListObjectsRequest()
listObjectsRequest.bucket = "(your bucket name)"
listObjectsRequest.prefix = "(subfolder1)/(subfolder2)"
s3.listObjects(l... |
I am using the AWS IOS SDK to download files from S3 and am having trouble listing objects in a specific folder of an S3 bucket. I can list all the files of the ENTIRE bucket using the listObjectsInBucket method but I need to list only the files in a specific folder within a bucket.
So I am trying to use the listObje... | AWS S3: List Objects from a specific S3 folder? |
I can't speak explicitly to node.js architecture decisions, but I can address your CloudFront and ELB questions.CloudFront is a great CDN for static assets, but there are a few gotchas. As the saying goes,"There are only two hard problems in Computer Science: cache invalidation and naming things."If you want to replace... | I did post this on serverfault, but not getting any views or responses.I've read a bunch of posts on here about whether or not you need a webserver when using Node.js, and the answer always seems to be yes to serve up static files.My question is this though. If the site I'm working on is mostly dynamic, couldn't I just... | AWS and Node.js, do I need nginx or apache? |
1
By "through the UI", I presume you mean ... using the OpenStack Dashboard.
Backup in OpenStack is a bit complicated. Services like Nova, Cinder and Trove each have their of mechanisms for backup the resources that they manage.
In addition, there is a service called Freez... |
I need to schedule snapshot of OpenStack instance. I'm wondering if this can be done through the UI. Or is it terminal only?
| How to: Schedule snapshot of OpenStack instance |
If you're sending 250 emails per minute, then you need something more resilient than the cron and the Swiftmailer spool. It will be hard to scale, a nightmare to debug, and not very inflexible. The Swiftmailer spool is great if you're sending no more than a couple of emails a minute, but any bigger than that and it's h... | What is the best approach for sending the highest email rate possible with Swiftmailer?We own an email automation tool and sometimes there are single sendouts of 40.000 emails. Our average rate with the spool:send command is of ~50 emails/min. I've tried copying the same command on the cron 5 times and it worked (i.e. ... | Multiple spools with Swiftmailer and Symfony2 |
It is not possible to set workflow-level environment variables from a job. Each job runs in its own machine and setting an env variable there only affects all of the later steps in that job.
There are currently two ways to share data between jobs; either you create an artifact and use that, or you declare and set job ... |
I currently have two GitHub actions workflow files that are pretty much identical, only one is configured to react to push/pull_requests on branch master the other on production.
The staging workflow starts like this:
env:
GCLOUD_PROJECT: my-project-stg
VERCEL_TARGET: staging
on:
push:
branches: [ master ]
... | How to set workflow env variables depending on branch |
4
There is an open issue addressing this problem.
The easiest workaround I found so far was using "signal": "SIGINT" in my nodemon.json thanks to this comment.
Share
Follow
answered Jul 1, 2019 at ... |
I am using the latest version of docker and the latest node image. I have a gulpfile that starts a nodemon process. I am using the --inspect flag to indicate I want to use the experimental chrome dev tool debugger. But when I make a file change it nodemon picks it up and restarts the process but crashes.
Here is my gu... | docker node app always crashes on file change using nodemon |
You can use the following constructcbind.ffdf2, making sure the column names of the two inputffdf's are not duplicate:library(ff)
ff1 <- as.ffdf(data.frame(letA = letters[1:5], numA = 1:5))
ff2 <- as.ffdf(data.frame(letB = letters[6:10], numB = 6:10))
cbind.ffdf2 <- function(d1, d2){
D1names <- colnames(d1)
D2name... | Suppose twoffdffiles:library(ff)
ff1 <- as.ffdf(data.frame(matrix(rnorm(10*10),ncol=10)))
ff2 <- ff1
colnames(ff2) <- 1:10How can I column bind these without loading them into memory?cbinddoesn't work.There is the same questionhttp://stackoverflow.com/questions/18355686/columnbind-ff-data-frames-in-rbut it does not hav... | How to column bind two ffdf |
Kubernetes does not currently reschedule pods to rebalance them across nodes, butplanning has begun to include a reschedulerfor this purpose in our 1.3 release in a few months. | We have been using AWS-ECS for scheduling our containers. The most pressing problem I see with ECS, is the 'resource fragmentation'.Say I have following task definitions/pods with respective resource requirements:POD CPU Desired Total_CPU
- task1 1024 2 2048
- task2 512 4 2048
- task3 2... | Does Kubernetes consolidate containers/pods in order to minimize resource fragmentation? |
git fetchwill fetch all the remote tracking branches fororigin.But if those new commits don't concern your current local branch,git push githubwon't update anything regarding said (already up-to-date) current branch.(depending on thecurrent git push policy, and your git version)You can try agit push --mirror github, in... | i can sync origin usinggit fetch origini am on master branch, origin is a bare repo.also i can run to push changes to github:git push github --all
git push github --tagsbut why latest commits get using git fetch origin cannot be pushed to github?when i push, git just replies with:
Everything up-to-datethis means that ... | why i cannot push mirror to github? |
Resources:
Service:
Type: "AWS::CloudFormation::Stack"
Properties:
Parameters:
...
...
TaskPolicyArn: !Ref ThisServicePolicy
DynamoTable:
Type: "AWS::DynamoDB::Table"
Properties:
AttributeDefinitions:
...
...
...
ThisServicePolicy:
... | I currently have the following cloudformation .yaml file:Resources:
DynamoTable:
Type: "AWS::DynamoDB::Table"
Properties:
...
...
...How do I give other resources permission to query this table? | DynamoDB Cloudformation Permission |
Follow Naming Convention for variables. The variable names can be representative nouns and not general words. In your case, change like below:@Autowired
ICountryRepository countryRepository; // or countryRepoAnd@Autowired
IPersonRepository personRepository; // or personRepoAnd if you really have a dupicate code, copy ... | Let's say I have two models and for every model, I have a JPA repository interface like so:public interface IPersonJPARepository extends JpaRepository<Person, Long> {
.....
}
public interface ICountryJPARepository extends JpaRepository<Country, Long> {
.....
}Then I would like to have a DAL class for every model where... | How to avoid duplicate lines/blocks of code when implementing JPA repository methods in different DAL classes for every model |
8
The following seems to work:
git config push.default current && git config remote.pushdefault origin
Then, create branches with git checkout -b new-branch upstream/master.
git push pushes to origin/my-branch, git pull pulls from upstream/master.
For branches based on oth... |
I have a local git repo with two remotes: upstream, the original main repo, and origin, my GitHub fork of it.
I want to create new branches based off of upstream/master, push them to origin for PRs, and periodically pull in new changes from upstream/master.
Is there a way to set up my branches so that this happens by ... | How to set up branches with different pull/push upstreams |
First, in docker means each tool is in its own container.They only need to see each other through the network, which is where aDocker Engine in Swarm modecomes in.Second "configure Jenkins to work with SonarQube"... that is what I have done in my shop, and there isn't much to it.Once theJenkins SonarQube pluginis insta... | Currently, I am working in a quality process so as to ensure that the code is acceptable. For that, I'm integrating Jenkins, SonarQube and GitLab, which are running in different servers (actually they are in different docker containers).The idea is to check with SonarQube everytime the code is pushed against GitLab and... | Is it possible to integrate SonarQube, Jenkins and GitLab (all in dockers)? |
kind of a generic answer here, just trying to guide you. In general what you express is the need to 'parameterize' your kubernetes deployment descriptors. There are different ways some are simple, some others are a bit hacky and finally there isgithub.com/kubernetes/helm.Personally I would strongly suggest you go throu... | I have a file for a Job resource, which looks something like below.I need to run multiple instances with this definition with separate arguments for each.apiVersion: batch/v1
kind: Job
metadata:
generateName: abc-
spec:
template:
spec:
containers:
- name: abc
image: index.docker.io/some/imag... | How to pass arguments to a Job resource in Kubernetes |
If you set--network host, you basically disable Docker's entire networking stack. Among other things, that disables normal inter-container communications: if you're using host networking you can't call another container by its name. Host networking is very rarely necessary (and doesn't work well on some host platform... | I'm working with Docker containers for a while now but can't figure out how to ping docker containers which are part of my host network.So until now I created my containers specifing the name and networks flags like described in many tutorials like:https://www.digitalocean.com/community/questions/how-to-ping-docker-con... | How to ping Docker-Container inside host network? |
I do not know a way to make a screenshot WHILE uploading, but I do know how to do it after.
The simplest code is:
ffmpeg -i input.mp4 -ss 00:00:01.000 -vframes 1 output.png
Run this script after you have uploaded the file. It should take only a short amount of time if the screenshot is taken in the beginning of the ... |
I need to create a thumbnail from video while uploading it to CDN.
I have been searching for this found this but I am not able to get the screen shot even after following steps.
I am using jwplayer for playing video
Can someone help me to create thumbnail while uploading video using ffmpeg
| Create thumbnail from video using ffmpeg |
1
If I understand your question correctly, I believe this is what you are looking for:
How to create a repository in github:
In the upper-right corner of any page, click , and then click New
repository.
In the Owner drop-down, select the account you wish to create the
rep... |
Closed. This question is seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. It does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions see... | Next steps after creating virtualenv (new github project)? [closed] |
Constants are usually something that can be evaluated compile time and compiler is likely to replace it with the evaluated value.AlsoConstmeansstatic(see link below)A constant expression is an expression that can be fully evaluated at
compile time. Therefore, the only possible values for constants of
reference type... | This question already has an answer here:Memory allocation for const in C#(1 answer)Closed9 years ago.The title of the question is self explanatory. I wonder if a member that is declaredconstis singleton for all instances of the class or each instance has it's own copy.I've read some questions aboutconstbut most of the... | How are C# const members allocated in memory? [duplicate] |
There is no right or wrong here, and the decision depend on your application the operation and approach to managing security setup.Personally I would always prefer to use a custom trust store (as you are already doing), only containing the trust path for the endpoints that are required for your app.
This way you would ... | We have a local truststore.jks we use for our app. We pass this to the app using VM Options like so:-Djavax.net.ssl.trustStore=<<PATH TO TRUSTSOTRE.JKS>>If we are already using this truststore.jks is there any good reason to import certificates into the cacerts file of our jdk?Couldn't we just import these certs into o... | Should I use either cacerts or local trustore but not both? |
No, it isn't. The fragment is only available to JS running on the browser -- it's never sent to any web server.There's an examplehereof one way to get it, as mentioned inAuthorization@Edge – How to Use Lambda@Edge and JSON Web Tokens to Enhance Web Application Security, which uses Lambda@Edge rather than API Gateway (... | I have an S3 website that I'm trying to password-protect using a Lambda function and CloudFront. When a user tries to access the site, the Lambda function will redirect them to my Cognito login page, then redirect back to the site with a token.When redirecting back, the access token is in the fragment (after "#"). Is i... | Access URL fragment in Lambda Node.js function |
Periodic Backup uses an export method to do that, which store the data in clear text.Actuallybacking up (Raven.Backup.exe)will store the data in encrypted format, but will include the key in the backup (there is an option to prevent that), so you can actually restore the backup on another machine. | We've started using thePeriodic Backup bundlein RavenDB to export data from our Server to an Azure Blob Storage Container incrementally.The source database uses theEncryption bundleto safeguard data at rest, however after testing the restore it's clear the backup files either do not encrypt the data or keep a copy of t... | Encrypted Periodic Backups in RavenDB |
API Key management for GCM has been moved to Firebase Console.
You can create a new Firebase Project (or import an existing cloud project) and you should obtain a new Server Key for Cloud Messaging.
see the updated documentation:
https://developers.google.com/cloud-messaging/android/client#create-an-api-project
and th... |
We have been using Amazon SNS to send Android push notifications since April this year.
Pushes have sent with no problem, however there has never been any record of calls to the Cloud Messaging API in the Cloud Console (seems odd?).
Today I created a new API key for the Static Map service (unrelated) and renamed our C... | Amazon SNS: "Platform credentials are invalid" when re-entering a GCM API key that previously worked |
git config --global core.sshCommand "ssh -p 443"That says always use port 443 for ssh commands.If you remove rust line hit will use the standard ssh which will use port 22 | I want to use port 443 in my github action to install a private repo using deploy keys, the below code works fine when there is[email protected]in package name.- name: Try pip install 443
run: |
ssh-keyscan -p 443 -t rsa ssh.github.com >> ~/.ssh/known_hosts
git config --global core.sshComman... | [email protected]ref not getting converted to[email protected] |
36
The <pre> tag you are seeing is the browser trying to show you the text returned from server. It is not part of the returned from the Lambda function.
To get it working you need to get the lambda function set the response HTTP header with Content-Type: 'text/html'
for ... |
I'm trying to return a webpage from my python lambda ftn, using API GW. Instead, I'm getting my page embeded in a tag within the body, instead of the return value being the full page ( header, body, etc... without the pre>
Any suggestions what I might be doing wrong
Thanks
| AWS API Gateway and Python Lambda returning HTML |
Windows has theScheduled Taskscontrol panel applet (or management console plug-in on later versions of Windows) but you can also access it viaschtasks.exeif you want to automate it from the command line.In addition, you can also useatfrom the command line to schedule a task. | I want to know if there is an equivalentcronin Windows and how I can use it programmatically using PHP. | Is there an equivalent to cron in Windows? |
Yes as Mark Kromer mentioned, you can copy JSON data to the Azure SQL table using thedataflowactivity.Here are the steps to copyJSONtoAzure SQLusing dataflow:Create aJSONdatasetand connect it to the source.Sourcedata preview:Connect the source output toflattentransformation and under Unroll by and Unroll root, select "... | I want to copy a JSON file into Azure SQL table, but it has nested Hierarchy, I only need the fields/values of the fields Ergon_Businessunit_code, KPL, Ergon_Functiegroep_code, Aantal.
How to do that? I tried with lookup en foreach, but got array errors | How to transform JSON file data directly in a Azure Data Factory pipeline |
What are the URLs used to load the mp4 files?You might be able to specify the username and password in the URL:http://username:[email protected]/password-protected-folder/track.mp4 | I am working with a html5 video player in my website using videojs and I found out that the video don't play in Android devices. After few tests and check possible issues over the internet, I found out that the issue is because android cannot access the video as its hosted in a password protected directory. I tried to ... | Android failed to play mp4 files hosted in a password protected directory |
You need to use the decoded pattern, not the encoded one. The URI's get decoded before mod_alias/mod_rewrite get applied.Redirect 301 /קורסים-וסדנאות.htm http://samedomain.co.il/%D7%A4%D7%A8%D7%96%D7%A0%D7%98%D7%A6%D7%99%D7%94-%D7%91%D7%90%D7%A0%D7%92%D7%9C%D7%99%D7%AA/ShareFollowansweredJun 10, 2013 at 12:38Jon LinJon... | I am currently working on a site in Hebrew, a large portion of links in this site have changed and i am now setting up the redirect rules through.htaccess; for some reason the redirect rules are not working. The old website was a static html website and this one a wordpress site.The basic redirect syntax i am using is.... | htaccess 301 redirect with encoded hebrew URLs |
As per information you provided in the comments, it looks like you want bash alias, rather than git.
Following will allow you to make a commit via gco from the command line:
# Add me to your ~/.bashrc
alias gco='git commit -m'
But this is git alias, executed via git gco:
git config --global alias.gco "commit -m"
|
Alright, googling this for 10 minutes and the only examples I find are about aliasing things like commit -m, but how would I alias a command such as git commit -m? I tried using git config --global alias.gco "git commit -m" but this too only worked with the first command (commit -m). I also tried manually adding that ... | How to alias the git command in Git? |
I have faced this issue may be a year ago, I remember that stupid redirect but I was not using Kong Ingress Controller, just a plain Kong. The problem I faced is that Kong runs as unprivileged user and cannot bind to low number ports. So Kong binds to 8443 ssl and places stupid redirect from 443 to 8443. I could not no... | I have Keycloak behind Kong Ingress Controller.
I 'm able to see keycloak welcome page at my {url}/auth/. However, when I click at Administration Console I am redirected to {url}:8443/auth/admin/master/console/When I click at Administration Console I should be redirect to {url}/auth/admin/master/console/When I install ... | Can't access Administration Console page with keycloak behind Kong Ingress Controller |
Actually to do the trick I found a way using an allow whit the NotResource JSON Policy Element (spec). I use this property to match the resources which do NOT have an ARN:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"sns:Publish"
... |
I want to set up IAM policies to allow an user to publish to SNS to send SMS and to publish to a specific SNS arn.
I have found a way to allow SMS publish without allowing any SNS publish :
Authorization when sending a text message using AmazonSNSClient
{
"Version": "2012-10-17",
"Statement": [
{
... | IAM policy allowing SMS publishing but not denying all SNS |
You can write a bash script which executes your php script every 2 seconds for defined amount. And this bash script can be executed via cronjob.Example:#!/bin/bash
count=10
for i in `seq 1 $count`; do
/bin/php /path/to/scrip.php &
sleep 2
done | i have one php file that i want to run every 2 second for a 1 minute. because in my server i can set min cron for 1 minute only. so i made this script.<?php
$start = microtime(true);
set_time_limit(60);
for ($i = 0; $i < 59; ++$i) {
shell_exec('/usr/local/bin/php /usr/local/www/my_file.php');
time_sleep_until($... | run php script exactly every 2 second |
-1
You published your website on a subpath like xyz.github.io/mysubpath but the references on the index page (according to the page source) are absolute to the root.
This is even shown in the console output:
The project was built assuming it is hosted at /.
If you cannot ... |
As of now I want to publish my payment gateway website to GitHub pages but after running all the commands like npm run build as well npm run deploy my page has been published but on GitHub pages it is showing error for resource:
Here is how it looks in my IDE:
| Github Pages Resource 404 |
Thosemetatags have anhttp-equivattribute because they're a document-level placeholder for items that should be in the HTTP response. Instead of sending requests for your bare resource, clients should be sending a "GET if not modified since X" request, and they should be set correctly in your header. Ask your host for... | Here's what I need to get, the version of the page must be the last. It's a price list, no way i want the price from last week.So I got some code from everywhere on the web and paste it to my header, here it is:<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="expires" content="0">I dont know if it's eno... | DO not load a HTML page from cache |
You might need to use an Oauth2 provider like:dexidp/dex, an identity service that uses OpenID Connect to drive authentication for other apps.Dex acts as a portal to other identity providers through "connectors", which do support your targetsorcasdoor, an Identity and Access Management (IAM) / Single-Sign-On (SSO) plat... | I am building a web application where users have to provide my web application access to their repositories in GitHub| Bit bucket| Git Lab | any other code hosting platform.I have implemented it through OAuth2 for which I had to create client applications on all platforms separately.Initially it was scoped only to Git... | Generic OAuth implementation for GitHub | Bit Bucket | Git Lab | Azure DevOps |
This is not a good way of handling memory management. By the time you see MemoryError, you're already in a critical state where the kernel is probably close to killing processes to free up memory, and on many systems you'll never see it because it'll go to swap or just OOM-kill your process rather than fail allocatio... |
Is there a way to globally trap MemoryError exceptions so that a library can clear out caches instead of letting a MemoryError be seen by user code?
I'm developing a memory caching library in Python that stores very large objects, to the point where it's common for users to want to use all available RAM to simplify th... | MemoryError hook in Python? |
2
U need to move passenger_env_var directive to server section.
server {
...
passenger_env_var VAR value;
}
Share
Improve this answer
Follow
answered Apr 22, 2019 at 22:57
DeepsystmD... |
I defined environment variables in nginx.conf like below -
server {
listen 80;
server_name XX.XX.XX.XX; //Masked for this question
location ~ ^/clients/abc(/.*|$) {
alias /home/abc/Project/public$1;
passenger_base_uri /clients/abc;
passe... | nginx.conf - passenger_env_var not loading in rails |
It seems like you're required to sethttp_proxyin your Dockerfile. If you do (e.g. for a specific, temporary reason - say you're building your container behind a corporate proxy) and subsequently don't need it anymore I'd suggest something like the following:RUN export \
http_proxy="http://some.custom.proxy:8080/” \
... | I use mvn clean package docker:build to invoke dockerfile(docker version 18.03.1-ce ) in machine B:FROM openjdk:8-jdk-alpine
RUN apk update && apk upgrade && apk add netcat-openbsd && apk add curlit turns out:Step 2/8 : RUN apk update && apk upgrade && apk add netcat-openbsd && apk add curl
---> Running in 89c9... | config alpine's proxy in dockerfile |
I believe you need to add the cache annotations to tell hibernate how to use the second-level cache (read-only, read-write, etc). This was the case in my app (using spring / traditional hibernate and ehcache, so your mileage may vary). Once the caches were indicated, I started seeing messages that they were in use from... | What are the steps required to enable Hibernate's second-level cache, when using the Java Persistence API (annotated entities)? How do I check that it's working? I'm using JBoss 4.2.2.GA.From the Hibernate documentation, it seems that I need to enable the cache and specify a cache provider inpersistence.xml, like:<prop... | Enabling Hibernate second-level cache with JPA on JBoss 4.2 |
H2 database is not supported for production environments (but you seem to be aware of this fact). Furthermore, it is preventing you from upgrading to a recent version of SonarQube, since database migrations are not supported either on H2.That being said, and if losing your project history is not important, you can try ... | I'm having problem running Sonar analysis through Jenkins. Using a Post Step with "Invoke Standalone Sonar Analysis" to start a Sonar Runner task. I can see the result from the analysis in the dashboard but the build in Jenkins never ends. It seems that the cleanup task in Sonar hangs. I am using H2 database and CANNOT... | Jenkins +Sonar +ANT+Cactus +hangs at clean snapshot |
You will face this problem if you install gh using snap. More about this issuehere.SolutionInstall gh using official sources -https://github.com/cli/cli/blob/trunk/docs/install_linux.md#official-sources | I want to clone my public repository from Github to my local system usingghofficial cli.I copied the following command from the repo (green code button) button and also followed the official documentation -sudo gh repo clone <username>/<repo-name>But the repository does not clone, but instead, the command returns the f... | Github repository not cloning using gh cli |
You have to do:
git remote prune origin
to remove that remote tracking branch in your local git repository ( prune removes any branch that does not exist in the remote origin anymore). After that, you will not see it under git branch -a
|
I have 2 remote branches :
- pending-issues-in-project
- new-issues-in-project
I tried to delete pending-issues-in-project like this :
git push origin :pending-issues-in-project, but i got the error :
error: unable to push to unqualified destination: pending-issues-in-project
The destination refspec neither mat... | How to forcefully delete a remote branch in GitHub? |
The alias directive is fine for static websites but not so useful when PHP is involved. My preferred solution is to internally rewrite the URI without the /basepart and then use root rather than alias.
The problem is that many PHP scripts use $request_uri in order to process the request, which is frozen with the /base... |
This question could also be: "How to modify an NGiNX variable with a RegEx?",
or: "Can RegEx backreference have gaps?"
Either of those would resolve the problem I'm having. Perhaps a really simple solution exists, and after digging the web for few hours, it's time to ask for help.
Here's the scenario:
There's a part o... | How to remove a path segment from NGiNX fastcgi_script_name? |
To cover all possibilities, you probably need to do this in two stages, one redirect if outletID is present, and another redirect if setID is present.
For example:
if ($args ~ ^(.+&|)outletID(=.*)$) {
return 301 "$uri?${1}outletId$2";
}
if ($args ~ ^(.+&|)setID(=.*)$) {
return 301 "$uri?${1}setIds$2";
}
|
I am trying to get an NGINX redirect to take me from:
https://example.com/ui/?outletID=123&setID=456
to:
https://example.com/ui/?outletId=123&setIds=456
So outletID -> outletId AND setID -> setIds
IMPORTANT: I don't know where these params appear inside the URL, so there might be other strings before or after these.... | Rename args in nginx redirect |
Change:
volumeMounts:
- mountPath: /var/lib/postgresql
to
volumeMounts:
- mountPath: /var/lib/postgresql/data
With the wrong mountPoint postgres executables were overridden.
I attach an image with the data I see from inside the pod (on the left) and from inside minikube space (on the right, the little shell from... |
I'm using minikube to run kubernetes locally. My local k8s have two pods which one of them is PostgreSQL and another one is my own app. I've mounted a PersistentVolume and PersistentVolumeClaim in order to make a stateful pod for PostgreSQL:
kind: PersistentVolume
apiVersion: v1
metadata:
name: postgres-pv-volume
... | How to mount PostgreSQL data directory in Kubernetes? |
See meter nametomcat.global.receivedandtomcat.global.sentwhich come from Tomcat JMX BeanGlobalRequestProcessor'sbytesReceivedandbytesSentattributes respectively.See alsothe relevant part of code in Micrometer. | I am setting up graphite / grafana for my spring boot application. I am trying to find how to get network information like bytes in / out (network stats). Can someone tell me how I could derive this information? I am using tomcat as boot server | Spring boot graphite network information |
Yourkube-proxyand flannel daemonsets will have many tolerations defined in their manifest that mean they will get scheduled even on tainted nodes.Here are a couple from my canal daemonset:tolerations:
- effect: NoSchedule
operator: Exists
- key: CriticalAddonsOnly
operator: Exists
- effect: NoExecute
... | I am thinking about paritioning my Kubernetes cluster into zones of dedicated nodes for exclusive use by dedicated sets of users as discussedhere. I am wondering how tainting nodes would affectDaemonSets, including those that are vital to cluster operation (e.g.kube-proxy,kube-flannel-ds-amd64)?Thedocumentationsays dae... | Kubernetes DaemonSets in the presence of tolerations |
What modifications are you exactly introducing to yourkube-proxyand how ? If you are only setting ipvs mode you can do it in a way describedhereand there shouldn't be any problems.If you're also configuring some additionalsysctlsin thesecurityContextof yourkube-proxyPods, you may need to consider the following.Keep in ... | When I modify kube-proxy mode from iptales to ipvs, after restart the kube-proxy,
"kubectl logs kube-proxy" return the following error:server.go:485] unable to create proxier: can't set sysctl net/ipv4/vs/conn_reuse_mode: open /proc/sys/net/ipv4/vs/conn_reuse_mode: no such file or directoryAnd I confirmcon that I have ... | What does it means "can't set sysctl net/ipv4/vs/conn_reuse_mode" when set ipvs mode whith k8s? |
The variable is being passed to your container, but supervisor doesn't let use environment variables like this inside the configuration files.You should review thesupervisor documentation, and specifically the parts about string expressions. For example, for thecommandoption:Note that the value ofcommandmay include Pyt... | I've been trying to pass in an environment variable to a Docker container via the-eoption. The variable is meant to be used in a supervisor script within the container. Unfortunately, the variable does not get resolved (i.e. they stay for instance$INSTANCENAME). I tried${var}and"${var}", but this didn't help either. Is... | Using docker environment -e variable in supervisor |
We can add custom keycloak themes in keycloak operator (v13.0.0) using the below steps:Create a jar file for your custom theme using step shown hereDeploying Keycloak ThemesCreate a kubernetes configmap of the jar using the following commandkubectl create cm customtheme --from-file customtheme.jarTo use above configmap... | I was installing Keycloak usingOperator(version 13.0.0). The updated code has theme related stuffgithub repositoryand supports custom theme integration quite well. All we need an URL where the customthemeis located. I tried it and worked flawlessly.However, what if we have themes in some local directory, not on some pu... | How to use custom themes on Keycloak Operator (v13.0.0)? |
If you have a an address like0x0018F36C, you can:IntPtr ptr = (IntPtr)0x0018F36C;
long longValue = Marshal.ReadInt64(ptr);If from an address you need to read another address, there is anotherMarshalmethod:IntPtr ptr = (IntPtr)0x0018F36C;
IntPtr ptr2 = Marshal.ReadIntPtr(ptr);ShareFolloweditedMay 27, 2015 at 7:51answere... | (Sorry for my bad English )How to read a value address from pointer in C#?Example:
I know my pointer but the value change at application starting.1) Start(Pointer) 0x0018F36C = ( Value) 0x0342AD682) Restart(Pointer) 0x0018F36C = ( Value Changed ) 0x0342AE20Actually i have a base address 0x0018F36C
but need to read ... | C# Read pointer address value |
You cannot do this. By having private key you can restore public key, but not vice versa. It is impossible to recreate private key by having only public key. Otherwise, entire public key world would be broken. | I have a Ubuntu server with .key files for use in https.It's time to renew my certificate which requires that I create a new .csr using a .key file which has a public and private key, but I no longer have the password for the private key which I would have liked to reuse. I want to keep the public key the same but have... | How to extract public key from old key file to use with new private key (lost private key password) |
Not to be an arse, but it sounds like emails is not an array. Is it possibly anull?Log the actual value withLog::debug('WTF IS THIS THEN?!!: '.print_r($emails, true));and see. | Working with a project that uses OAuth user registration through GitHub. Everything is working fine until the last step of confirming the account through my application.Here is the function in question:/**
* Get the primary, verified email address from the Github data.
*
* @param mixed $emails
* @return mixed
*/
... | Laravel: Invalid argument supplied foreach() |
I see you comparing SNS to mailing lists. What you need to realize is that SNS isn't designed for use as a mailing list, and is indeed extremely terrible at sending any sort of nice looking email to end users. I would only recommend using SNS emails for things like system outage alerts to your administrative staff. I t... | I'm using Amazon SNS to send simple messages to users. I'm using several topic with different endpoints including E-Mail.Right now subscribtion to topics is handled by the Java back-end via AWS Java SDK. I get user's address and create a subscription viaAmazonSNSClient. The user has to confirm his subscription. Later o... | How to subscribe to Amazon SNS topic with e-mail endpoint via e-mail? |
LogQL!=PromQLAlertmanager andpromtooluse PromQL. | I've got a loki metric expression, which I can use in grafana without any errors:avg_over_time({filename="/home/obey/var/log/domains.metric"} |= "dns_auth_ns_daemon" | logfmt | unwrap success | __error__="" [10m]) == 0However, if I try to use this expression for an alert, I get an error frompromtool. Here's the alert r... | Prometheus alert rule: parse error: unexpected character: '|' |
You are assigning target parameter by class-casting to other reference. For this reason, you might get an exception. You have to control it which is null or not null or you have to add notnull annotation.ShareFollowansweredAug 6, 2018 at 14:43olgunyldzolgunyldz54133 silver badges88 bronze badges2But this does not seem ... | When below code is run for bugs in Sonarqube@Component
public class SMOCreateSignObjectValidator implements Validator{
private static final Logger LOG = LoggerFactory.getLogger(SMOCreateSignObjectValidator.class);
@Override
public boolean supports(Class<?> clazz) {
LOG.info("Inside create Sign Object validator");
... | The parameter is explicitly annotated as being Nullable. Either the use of the parameter or the annotation is wrong |
Committed space is space that is not virtual. Namely space that is statically assigned to a given partition of the JVM. When you use the optional sizing switches -Xms and -Xmx not everything is initially committed to particular partition of memory. As the generations have a need to expand they are permitted to grow in... |
We are monitoring tomcat servers and i found whenever Committed Heap memory reached Max heap memory my tomcat got crashed or OOM error, But at same time Heap Used memory is under normal used. Could some one explain what is committed used and why its crashing while Heap used is normal.
See following graph so you get s... | What is tomcat memory heap committed? |
This is broad subject and a lot depends on what you actually want to monitor, the size of your deployment and the technical expertise available.The most comprehensive solution isPrometheus. It comes with extensive documentation, getting start guide, etc. The setup is pretty involved though.Depending on how you have set... | At present, there are lots of containers running in kubernetes cluster, is there any good solution to monitor each container and could sent alert when container is in bad status ? | How to monitor all container status in kubernetes? |
The plugin was abandoned and picked up by Fabricio Colombo and relocated to githubhttps://github.com/fabriciocolombo/sonar-delphiLook at 'Releases' to get the latest plugin .jar | Closed.This question is seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. It does not meetStack Overflow guidelines. It is not currently accepting answers.We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-si... | Sonarqube Delphi plugin [closed] |
There is no "central repository", per se. You will typically create one because it works out nicely for working in a team and keeping everything/everyone organized.
When setting up this central repository, you will give it a name of some sort. This is your local reference point to this central repository, not everyone... |
I have been playing around with GIT on my local computer.
As I have gain a bit of knowledge using GIT like add, commit, merge, branch, checkout, status.
I still have more to learn but im confuse one thing.. how does git handle team?
For example:
Developer A computer
Developer B computer
Developer C computer
Central ... | git central repository and Team |
Library/WebKit is included in the backup. With the exception of Library/Caches, everything in the Library directory is backed up.
The data included in an iCloud backup for your app is identical to that included in an iTunes backup, so you can examine the contents by backing up to iTunes and using a tool like iPhone Ba... |
I have a phonegap iOS app using the sqlite DB of Webkit (through UIWebView), and I wonder if the sqlite data will be saved with iCloud Backup (iOS5). The sqlite data are stored in Library/WebKit folder. In the apple doc, they say:
The placement of files in your application’s home directory determines what gets backed ... | Is iOS 5 iCloud Backup save webkit data for app using the storage of a UIWebView? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.