Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
3
By saying:
var o = {x:1 , y:2 };
in the top level scope, you are declaring a global variable, which can not be deleted. It does create a property on the global object (which is aliased to the window object in browsers), but it is a special property indeed. However, if yo... |
I read a book about javascript that said:
var o = {x:1 , y:2 };
delete o ; // Can't delete a declared variable so returns false;
However, the book also states that the variables declared outside any function scope are properties of the global object.
Why aren't we allowed to delete it then if it is a property of the... | Javascript delete operator |
You can use the following nugetNager.PublicSuffixpackage. It uses the same data source that browser vendors use.nugetPM> Install-Package Nager.PublicSuffixExamplevar domainParser = new DomainParser(new WebTldRuleProvider());
var domainInfo = domainParser.Parse("sub.test.co.uk");
//domainInfo.Domain = "test";
//domainI... | I am using C# and ASP.NET for this.We receive a lot of "strange" requests on our IIS 6.0 servers and I want to log and catalog these by domain.Eg. we get some strange requests like these:http://www.poker.winner4ever.example.com/http://www.hotgirls.example.com/http://santaclaus.example.com/http://m.example.com/http://wa... | Top level domain from URL in C# |
You cronjob line should look like this:00 00 * * * /fullpath/to/your/script.php(00 00 indicates midnight--0 minutes and 0 hours--and the *s mean every day of every month.)Syntax:
mm hh dd mt wd command
mm minute 0-59
hh hour 0-23
dd day of month 1-31
mt month 1-12
wd day of week 0-7 (Sunday = 0 or 7)
c... | I have created cronjob but if I set it in once a day at midnight its not working. But if I set in every 5 min then its working. I dont understand whats the problem ?Here I am attaching the screenshot ofmidnight cron:I have tried to debug it by adding my mail id but I am not getting any mail if I set it on midnight. | CronJob not working at midnight but its working if i set it at every 5 min |
Your browser requests favicon.ico. And likely you don't have one - so request is being rewritten toindex.phpthus you have more than 1 record added.Just look at your access.log and see the actual urls requested. | i created a log class. All works fine and the method "add" appends data to X.log. The problem is, when i turn on htaccess, file_put_contents wrote 2 lines (not one).Basically, i tryed without class, only writing a file_put_contents in index + htaccess, and ever duplicate the log.The problem looks like a htaccess routin... | htaccess duplicate file_put_contents |
Are you familiar with object IDs? This might be what you're looking for:http://msdn.microsoft.com/en-us/library/aa363997.aspxYou may also want to use file IDs. You can get this from theFileIdfield ofFILE_ID_BOTH_DIR_INFOyou get by callingGetFileInformationByHandleExor thenFileIndexLowandnFileIndexHighfields ofBY_HANDLE... | I haven't found a backup (synchronization) program which does what I want so I'm thinking about writing my own.What I have now does the following: It goes through the data in the source and for every file which has its archive bit set OR does not exist in the destination, copies it to the destination, overwriting a pos... | Uniquely identify files/folders in NTFS, even after move/rename |
1
The error is due to a wrong identation in your cloudbuild.yaml file. The correct identation is (mind the 2 spaces before args):
steps:
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t','us-central1-docker.pkg.dev/$PROJECT_ID/${_REPOSITORY}/${_IMAGE}','.']
i... |
This is my cloudbuild.yaml
steps:
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t','us-central1-docker.pkg.dev/$PROJECT_ID/${_REPOSITORY}/${_IMAGE}','.']
images:
- 'us-central1-docker.pkg.dev/$PROJECT_ID/${_REPOSITORY}/${_IMAGE}'
and when i try to run this command
gcloud builds submit --config=cloudbuild... | ERROR: (gcloud.builds.submit) interpreting cloudbuild.yaml as build config: .args: unused |
In general,Security groupsshould be configured with:Inbound rules that permit access to the desired ports (eg port 80 for HTTP, port 443 for HTTPS, port 22 for SSH) from as few IP addresses as possible. For example, HTTP would be open to the Internet (0.0.0.0/0) but while SSH should be open only toyourIP addressOutboun... | when I ran$ git clone https://github.com/aliscie/autodoxit took too long to respond to this command and then it showsfatal: unable to access 'https://github.com/<whatever>': Failed to connect to github.com port 443: Connection timed out. Also, when I triedsudo yum install dockerI got the same issue but different error ... | my ec2 linux is not connect to the internet? |
You need to create a clusterrolekubectl create cluserrole rolename --verb=get,proxy --resource=nodesand a clusterrolebindingkubectl create clusterrolebinding rolebindingname --clusterrole=rolename --user=kubernetesShareFollowansweredJan 26, 2020 at 14:09Arghya SadhuArghya Sadhu42.4k1010 gold badges8787 silver badges112... | I am deploy a pod in kubernetes cluster,but when I check the pod logs in Kubernetes dashboard it shows:Forbidden (user=kubernetes, verb=get, resource=nodes, subresource=proxy) ( pods/log soa-room-service-df54f5cdb-5htnp)and I check the log from kubectl it also give the same tips,how to give the permission to user kuben... | kubernetes pods logs shows forbidden |
We just needed to add some positive value in the buffering and the problem was solved. Code will buffer 555444333 Bytes and then process 111222333 bytes each time. Since our files are in Json, we can easily convert incoming bytes to string and then clean strings by removing incomplete json parts. Final code looks like:... | I am using my own algorithm and loading data in json format from s3. Because of the huge size of data, I need to setup pipe mode. I have followed the instructions as given in:https://github.com/awslabs/amazon-sagemaker-examples/blob/master/advanced_functionality/pipe_bring_your_own/train.py.
As a result, I am able to ... | aws sagemaker training pipe mode reading random number of bytes |
If you do not like to use cronjob I guess your best option is to write a daemon. I like coding in Perl and if I were you I would write a daemon in Perl.However, If I were to write the daemon in PHP, I would run another backup script in cronjob (10 min interval for example) that will check if my php daemon is running or... | I have some background tasks in my php-project. It shoud do some job if some condition satisfied. For example: if there are some orders than not yet delivered and time left to estimate delivery is less than 15 minutes, system sends notification to courier that he's probably late.The simpliest solution - create cron tas... | Background php task, cron alternatives |
For those who have already read the question the answer is because the output is a .mexw64 file which can not be debugged explicitly neither with classic cpu nor with gpu debug. You must attach matlab in visual studio and then the debug will work. Unfortunately, this is an other problem I am encountering when working w... | I have aVS 2010project where I have a.cufile that adds two vectors. It is the one from cuda sdk 5.5 samples. Also, I have replaced the main function with a mexfunction and made the correct changes in order to run the function via matlab and works fine. Then I tried to run theCUDA Debuggingbut did not start. It returns ... | Nsight Debug %1 is no a valid Win32 application |
With Loki v2.0 there is a new way for alerting:https://grafana.com/docs/loki/latest/alerting/You can now configure it directly in Loki and send it to the Alertmanager.Update:As requested a simple example for an alert:groups:
- name: NumberOfErrors
rules:
- alert: logs_error_count_kube_system
expr: rate(... | I'm using Promtail + Loki to collect my logs and I can't figure how can I alert foreveryerror in my log files. I'm also using Prometheus, Alertmanager and Grafana. I've seen some people have managed to achieve that, but none of them explained the details. Just to be clear, I'm not looking for alerts that stay in FIRING... | How to send alert for every error in my logs using Promtail / Loki - AlertManager? |
In the old days (about 2000), an idle timeout was up to 5 minutes standard. These days it tends to be 5secondsto 50 seconds. Apache's default is 5 seconds. With some special apps defaulting to 120 seconds.So my assumption is, that with AJAX, long held-open HTTP connections are no longer needed. | In an embedded device, What is a practical amount time to allow idle HTTP connections to stay open?I know back in the olden days of the net circa 1999 internet chat rooms would sometimes just hold the connection open and send replies as they came in. Idle timeouts and session length of HTTP connections needed to be lon... | In-practice ideal timeout length for idle HTTP connections |
0
nope
free tools for recovering your files http://www.techradar.com/news/software/applications/best-free-recovery-software-1141256
Share
Improve this answer
Follow
answered Feb 16, 2015 at 1:04
... |
I deleted the file project of my website, but I have only my ftp file, so now my site works, but I can't edit it anymore. Can I create a new file project from my file on the ftp?
Ps
My abobe CC account had not created a backup
| Recover adobe muse file project |
I had the very same problem and found a trick that need to be applied server side. It seems that jars aren't cached if their mime type is incorrect. Please check your server reply using the application/java-archive mime type.Another problem I found is related to a specific jar. My archive parameter was listing many jar... | I'm having a problem with a Java applet I've deployed that is refusing to be cached in the jvm's "sticky" cache (or by the browser). For some reason every time a user loads the page this applet is on, the jvm re-downloads the jar file from the server which causes a long delay.The webpage containing the applet is being... | Java Applet not caching |
It won't work the way you have configured.if I have 5 rows in my database that the cron job will process. I want it to process the first row, then process the next row 5 minutes later, then process the next row 5 minutes later, etcWrite a shell scrip to achieve above goal. Cron won't do it for you.Hint:usesleepfunction... | I have a cron job that processes an action for several records in my database. I want it to process each record with a 5 minute delay, then repeat the process every 12 hours. What is the syntax that I need to use to make this happen? For example, if I have 5 rows in my database that the cron job will process. I want it... | Cron job time syntax |
Create aallow-get.yamlfile with the next content and changemy-userby your user, and runkubectl apply -f allow-get.yamlapiVersion: rbac.authorization.k8s.io/v1
metadata:
name: allow-get
rules:
- apiGroups:
- ""
resources:
- "*"
verbs:
- get
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metad... | I would like to grant one user only the "get" privilege of "kubectl" command. I suppose it should be done with RBAC, anyone can advise it, thanks. | How to restrict the privilege of kubectl command |
1
I assume this code is in python. If so, then if they have a requirements.txt file you can run pip install -r requirements.txt to install them all. If not you will manually have to pip install each one.
Share
Follow
... |
Looking to run someone else's code from a Github repo that i've cloned onto my local machine.
Quite a few packages and I was wondering if there was a way to 'automatically' (or at most using a few lines in terminal) set up my conda environment so that I can run the files without having to manually go and download each... | Is there a way to automatically download all the packages(and the correct versions) needed to run the code in github repo that I've cloned? |
Page frame is a physical property of the main memory. Whereas, virtual page is... virtual.frame 0 frame 1 frame 2 frame 3 frame 4
----------------------------------------------
| | | | | |
| | | | | |
---------------------------------------------... | From what I understand pages come from overlays which are clusters of memory spaces generated by Virtual Memory. But I don't understand what frames are or how they relate.Can anyone explain what page and frame is and how it works? | Difference between virtual page and page frame? |
HTTTPS is to protect the connection between server and client and you don't control this connection fully just by controlling both server and client. If you accept any self-signed certificate just because you control server and client then you would also accept a certificate from a man in the middle, i.e. this would b... | I have an app going into production. It has a java client and a java server, both of which are always the same, and under my team's control. We are using https.Is it OK in this situation to issue a self-signed certificate and accept it on the client? Is there any risk there? | Ok to accept self-signed certificate if I control both server and client? |
In a word - no. Deleting a branch will automatically close any outstanding pull request issued from it.Restoring the branch won't automatically restore the pull request, but will allow you to manually do so. | If I delete a private github branch, does an associated pull request remain? | Does a PR remain after its associated branch is deleted? |
0
Try to change your default location to this (didn't check if works):
location / {
absolute_redirect off;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
try_files $fastcgi_script_name $uri $uri/ /index.php?$query_string;
}
And check your access.log and error.log... |
I'am running ddev under macos with apple silicon m1.
I'am trying to open a phar (Contao-Manager.phar.php) file in the browser but got a 404.
webroot is correctly set, because its is possible to open a test.php in same webroot in the browser.
Here Is My nginx-conf:
server {
listen 80 default_server;
listen 443 ... | How to open a phar.php file under nginx? |
According to thedocumentation, you can't runsvnadminfrom a remote machine:Since svnadmin works via direct repository access (and thus can only be used on the machine that holds the repository), it refers to the repository with a path, not a URL.ShareFollowansweredJan 15, 2012 at 15:53Eli AcherkanEli Acherkan6,41122 gol... | I try to create a backup of my SVN repository, located on Linux server, from Windows command-line Subversion Client:C:\project>svnadmin hotcopy svn://"URL_of_my_SVN_repository"/ C:/BACKUPand receive following error:
svnadmin: E205000: 'svn://"URL_of_my_SVN_repository"/' is a URL when it should be a local pathHow I can ... | Backup of SVN repository, located on Linux server, to Windows Client |
1
The attempts
So I went ahead and tried
remotes::install_local("C:\\[path]\\GitHub\\papaja",dependencies=FALSE)
It gave me the error:
ERROR: dependencies 'bookdown', 'rmdfiltr' are not available for package 'papaja'
The answer
So I installed these separately from CRAN ... |
I thought I would post this as an answer to anyone having problems installing papaja (or other packages) when behind a firewall that doesn't allow github
The problem
For reasons I dont fully understand, the only way I am able to use github R packages is to download them into my github desktop and then use them using t... | How to install R packages when github is blocked using papaja as an example |
Regarding the bootstrapping, if you setup an environment variable for an Elastic Beanstalk environment (docs here), then you never have to touch it again when you re-deploy your code with your script. You only need to add the environment variable if you create a new environment.Thus when starting up, you can just check... | So I have a web service (flask + MySQL + celery) and I'm trying to figure out the proper way to deploy it on Elastic Beanstalk into separate Web Server and Worker environments/tiers. I currently have it working by launching the worker (usingthis answer) on the same instance as the web server, but obviously I want to ha... | What is the proper way to deploy the same application/code to Elastic Beanstalk server and worker environments? |
You would use theGetAccountSummaryAPI call in IAM which is available as theget_account_summarymethod call inboto.iam.IAMConnection.import boto.iam
conn = boto.iam.connect_to_region('us-east-1')
summary = conn.get_account_summary()This returns a Python dictionary containing a lot of information about your account. Spec... | I am working on trusted advisor and need to check whether MFA is enabled for root level also?
Its in Security section of Trusted advisor Dashboard.
I am working in Python using Boto. | How to check whether MFA is enabled for root account in AWS using boto? |
You can use DynamoDB with TTL, DynamoDB Streams and AWS Lambda for this. No need forcron.When you create a new row or update an existing row, set that row's TTL to 30 minutes in the future.When that 30 minutes is reached, it will fire up a DynamoDB stream which you can use as a trigger for a Lambda function.This Lambda... | I have to set up a management on an AWS process.
To keep things simple I have some clients that sends me heartbeat, let's say every 5 minutes, via SOAP requests to my SOAP server deployed on an Elastic Beanstalk NodeJS app. Every time I receive a heartbeat, I store the last time I received it on a DynamoDB table by upd... | AWS: Trigger event if DynamoDB table row is not updated in the last 30 minutes |
3
git doesn't care what kind of files you upload, it just handles text more efficiently. .mat files are binary files, and you can upload them just as well as any other binary file. The github web gui just doesn't have any facilities to show you the contents. Catering for al... |
Any of you have any idea how to upload matlab files onto github?
I can copy paste the code from .m files onto github repository file, but i can't upload the .mat file. There is no matlab language facility in github available for code highlighting which I know. But is there any way that I can upload the .mat files (tra... | Uploading Matlab files in github |
Sub Main()
Dim objAuthApp As Object
Dim objAuthDoc As Object
Dim objLAEConfig As Object
Dim objDSConfig As Object
Dim laef
laef = "\\backupsserver\backups\LAEBackup-" & Year(Now) & "-" & Month(Now) & "-" & Day(Now) & ".lae"
objAuthApp = CreateObject("Authenticator2.Appli... |
Within Cognos 7.4 security.. one would create an LAE file to export all their users...
directions here... http://www.cognos-install.co.uk/articles/backups/access_manager_export_to_lae.asp
Now you'll notice at the bottom "Finally, it is possible to build an automated process for this task, however this is outside of t... | Cognos LAE Backup Automation (Batch File?) |
try this0 0 1 ? 1/1 SUN#1 *it will run at 1 PM every first sunday of month | I have a cron line for running a command each first Sunday of the month, which looks like this:0 19 1-7 * 0 command.sh
Minutes=0
Hours=19
Day= 1st to 7th
* = any month
0 = first day of the week (Sunday)However, I had the surprise command.sh has run last Sunday (16th of June). Can anyone explain why my cron line is m... | Cron for job to run on first Sunday of the month |
+25You should use SDWebImage instead of downloading images it will cache and you can customise that caching option also .Iam using this SDWebImage for caching 150 +images in UICollectionview and same in UITableview and its work perfect.Initially we need to add a placeholder then it will appear one by one.implementation... | I have created an app in which users will be able to upload the images and they can also see all the images uploaded by other users. I have integrated the code for the pagination and downloading the 10 images at a time and showing them on the UITableView. I have used AFNetworking for this task which is saving the image... | How to handle memory when many images has to be downloaded? |
Could you change this config in the grafana.ini file toreporting_enabled = false | I have installed grafana locally in a heavily closed networked node. As it didnt have any outbound network provision, I had to install grafana and all of it's dependencies manually there. Now after successful installation when it try to access it I am getting this in its GUI:There is no reverse proxy set in the server ... | grafana GUI issues with "context deadline exceeded" error |
GitHub has a feature preview available to diff notebooks in a rich format, but at the time of writing, you cannot add comments to the diff.GitNotebooksis free and enables notebook reviews. | Reading the reviews of ipynb files is too hard, so what can you suggest? what is common practice to deal with these kinds of problems? somebody told me to use command-line tools or ipy files but I don't know why what can you suggest? | How to easily review files with ipynb extension on github |
There are two ways to solve that:The first option is to use a cloudsql proxy using the instructions available in:https://cloud.google.com/sql/docs/sql-proxyIn your docker image you need to ensure that fuse is available in your installation, in wasn't my case (using a ubuntu:trusty-20160119 as base image). If you need t... | I'm creating a container with a connection to a cloudsql database, when I run the image with kubernetes It does not have an external IP that I can use to allow the new image to connect to the database. But as this is part of the init configuration I can't wait to know what is the public IP to add to the whitelist datab... | How to connect to your Cloud SQL instance with a kubernetes service? |
Somewhat dated question, but maybe still useful: if you need a .net multi-level cache with a local in memory layer and an optional distributed one (eg: Redis) all managed transparently for you may I suggest you to take a look atFusionCache?I just released it and it would be great if you find it helpful in some ways.You... | StackExchange.Redis Seems to be a popular Redis C# Client. I am unclear on whether StackExchange.Redis uses Multi-Level Caching?That is If I call the following code numerous times from Asp.net WebSite; Does the Redis Client skip traveling over the wire and instead use the local (Asp.net Built-in Memory Cache)? Or is it... | Does StackExchange.Redis Use Local in Memory Cache? |
This seems to be a bug in ASP.NET Core 2.1:what you need to do is go move your added certificates from your certificate manager.go to start menu > Type "Win + R" type "certlm.msc", this will open your certificate manager.go to Personal/Certificatesyou will find a certificate named "localhostthere.Move that to "Trusted ... | I am following an online tutorial to create an ASP.NET Core Web application. I followed everything but had trouble with trusting the local HTTPS certificate.When I first run the application, I got an error saying:the access control list (acl) structure is invalidI tried googling this error but couldn't find anything re... | Trouble trusting local HTTPs certificate in ASP.NET Core |
3
Not the Docker side, just some VS code considerations
VS Code relies on two mechanisms for resolving python highlighing: environment and linter.
For environment you can check https://code.visualstudio.com/docs/python/environments, which basically says either python is av... |
I'm trying to make Python linters to work in VS Code when Python and all packages are installed in a Docker container.
I didn't use linters before. But as far as I understand how linters work (at least in VS Code), I need to point VS Code to Python interpreter and set paths to packages if needed. And this becomes a pr... | Using Python linters with Docker in VS Code |
I recommend you to go for docker tool box if it is for development purpose. I too faced few issues when i was trying to install docker on my Windows 10.Before go for further investigation about your problem, i want you to check the following;Make sure Virtualization enabled. you can check it in BIOS configuration.In fi... | I am new to DOCKER. I am using Community Edition, stable version on Windows 10 64bit OS.Docker is installed successfully and it is showing status as running. However when i try below command i get error :C:\Program Files\Docker\Docker>docker run hello-worlddocker: error during connect: Posthttp://C:2375/Program%20Files... | Error while running docker run hello-world |
This linein the source code you linked gives a hint about the current situation.TODO(rmlarsen, volunteers): Implement the kernels below. | I can see it's referenced inhttps://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/cuda_solvers.h(Geqrf), but the tensorflow QR op athttps://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/qr_op_float.ccisn't registered for GPU usage. Can I somehow make my own op using Geqrf, ... | Can you use the GPU QR factorization algorithm from cuSOLVER in tensorflow? |
This is admittedly a little bit elusive in the documentation, but it is mentioned here:
An S3 Lifecycle configuration can have up to 1,000 rules. This limit is not adjustable. The <ID> element uniquely identifies a rule. ID length is limited to 255 characters.
Source: https://docs.aws.amazon.com/AmazonS3/latest/dev/... |
I want to move some millions of s3 objects to glacier.
path/to/object1/1.jpg
path/to/object2/2.jpg
...
So I will set s3 lifecyle rules like this.
Rule 1
prefix: path/to/object1/1.jpg
Rule 2
prefix: path/to/object2/2.jpg
...
Rule n
prefix: ...
Is there any limitation on number of lifecyle rules?
Target objects hav... | Any limitation on number of s3 lifecycle rules? |
Can you not just refer to your certificate as a .pfx file using a appsettings file like:{
"Kestrel": {
"Endpoints": {
"Https": {
"Url": "https://identityservice.local:6001",
"Certificate": {
"Path": "identityservice.local.pfx",
"Password": "changeit"
}
}
... | I have an asp.net core app with IdentityServer4.In production it requires a key.On Windows Server, I deployed it OK - created a self-signed certificate and addedLocalMacine/myas the key location.How can I do the same on Linux?appsettings.jsonconfig on Windows -need syntax for Linux:"IdentityServer": {
"Clients": {
... | How to configure Key for IdentityServer4 on Linux |
Yes it will leak memory. You assign p to NULL before freeing the contents it's pointing to. One quick change will fix it:int* p = malloc(sizeof(int));
free(p);
p = NULL;The difference here is we give free the address allocated by malloc before setting p to NULL. In general setting a pointer to NULL will not free the co... | I've got the following faulty piece of code in C and I am wondering if there will be a memory leak or if there will be a pointer which is pointing to a free memory location.int* p = (int*) malloc(sizeof(int));
p = NULL;
free(p); | memory leak in malloc? |
This is because it is looking for a variable name NOW_website_files which does not exist, and thus the resulting file name evaluates to .tar.gz.
To solve it, do:
#!/bin/sh
NOW=$(date +"%F")
FILE="${NOW}_website_files.tar.gz"
^ ^
instead of
FILE="$NOW_website_files.tar.gz"
This way it will concatenate the va... |
Hello I am trying to write a simple shell script to use in a cronjob to copy a backup archive of website files to a remote server via FTP.
The script below works when I type the file name in by hand manually, but with the date and filename specified as a variable it returns that it can't find ".tar.gz" as if it is ign... | Shell Script Not Finding File |
11
I'd suggest to use a ~/.ssh/config file similar to this answer. Something like:
Host github1
User git
Hostname github.com
IdentityFile ~/.ssh/mygithubkey
Host github2
User git
Hostname github.com
IdentityFile ~/.ssh/myothergithubkey
That way you... |
I am in a situation, where I need my msysgit to talk to github with different keys. However git bash insists on using the keyfile named id_rsa ONLY. If I do ssh -vT [email protected] I see only id_rsa being offered.
So whenever I need to use any other key I have to do all this,
ssh-agent bash
ssh-add ~/.ssh/mygithubke... | Adding an SSH-key permanently in msysgit windows |
The problem here is usingCMDinstead ofRUNatCMD ["yarn", "run", "build"]FROM node:14.9-stretch-slim AS build
WORKDIR /usr/src/app
COPY ./package.json ./
RUN yarn
COPY . .
RUN yarn run build
FROM nginx:alpine
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=build /usr/src/app/dist /usr/share/nginx/htmlHere are the docs... | FROM node:14.9-stretch-slim AS build
WORKDIR /usr/src/app
COPY ./package.json ./
RUN yarn
COPY . .
CMD ["yarn", "run", "build"]
FROM nginx:alpine
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=build /usr/src/app/dist /usr/share/nginx/htmlThis is my dockerfile. When I build it I get an error saying that dist not fou... | Docker Nodejs Multi Stage build Error. Dist not found |
writing this code at the bottom ofurls.pysomehow worked:admin.site.site_header = 'My admin' | I followedthis question's answers to change my django admin panel title header.I tried this:There is an easy way to set admin site header - assign it to current
admin instance in urls.py like thisadmin.site.site_header = 'My admin'But it just works when I'mrunning the page viaPython manage.py runserverMy question is ... | Change header 'Django administration' text on nginx |
You need to do a pre-emptive check against the%{REQUEST_FILENAME}with a .php after it to see if that existsbeforeyou try to rewrite it, otherwise URI's likedellwill get blindly rewritten:RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^([^\.]+)$ $1.php [L]ShareFollowansweredAug 10, 2012 at 8:29Jon LinJon Lin143k2929... | I am beginner in PHP and Apache. I am trying to use URL Rewriting for my website, which can have following URIs.1. http://localhost:8080/home
2. http://localhost:8080/dellFor the first URI, there ishome.phpfile available and I edited .htaccess file with following rewrite rule.RewriteRule ^([^\.]+)$ $1.php [NC]Second UR... | Multiple RewriteRule in htaccess |
If no service is running on port 80, nmap will not show it as open. Try to run an httpd service on port 80 and then try nmap, you will see the port as open | I've searched around, watched the quick start videos and I'm not seeing many accepted answers.I'm running Centos 7 on google compute engine. I'm using the default firewall and I've selected to allow http and https traffic during the setup. However I am not able to connect to the webservice and I believe the port is sti... | Google Compute Engine default firewall port 80 |
Theenv_fileconfiguration passes environment variables from an external file to the service's container. SeeThe “env_file” configuration option.Theextra_hostsin yourdocker-compose.ymlfile usesvariable substitution.Compose uses the variable values from the shell environment in which
docker-compose is run.To configure t... | I am using version 2 of docker-compose files.Is it possible to read extra_hosts from env_file?I have already defined common variables for all docker-compose in one environment variable file.Sample :-version: '2'
workspace:
env_file:
- "../shared_environment/shared_variables.env"
extra_hosts:
- "dockerhost:$... | Docker Compose extra_hosts from env_file and not from default .env file |
0
Solution :
Try the following command
repo init -u ssh://[email protected]:29418/repo
repo sync
The default.xml should be present on the repo link
instead of
repo init \-u ssh://website.com:29418/repo
repo sync
Share
Improve this answer
... |
I'm trying to repo a link. These are some of the commands I want to execute:
repo init \-u ssh://website.com:29418/repo
repo sync
I get the following error when I do it.
M-70NN:bin rda$ repo init \-u ssh://website.com:29418/repo
error: in `init -u ssh://website.com:29418/cmx-ng-repo`:
[Errno 2] No such file or dir... | Git: manifest missing or unreadable |
This is because Github removed weak cryptophic standard support (TLSv1 and TLSv1.1) - source
All you have to do on Windows devices (mostly on Windows 7) is set default TLS version to 1.2 - link
Step-by-step fix
Download the kb3140245 update from Microsoft, which is necessary to enable TLS 1.1 and TLS 1.2.
Download th... |
I am getting this error message from GitKraken whenever I try to clone/fetch/push/push to any of my Github repositories:
failed to get server certificate: The handle is in the wrong state for the requested operation
I have no idea why this is happening, everything was working fine with my current setup until yesterd... | GitKraken And Github - failed to get server certificate: The handle is in the wrong state for the requested operation |
From my experience, a status code0with an HTTP probe means that an error has occurred before the blackbox exporter has received an answer with the actual status code. Most often this is either a "connection timeout" or "connection refused" error. You can find out what it is by making a request like this:curl 'http://my... | In Prometheus with black box exporter for website monitoring getting http status code of 0 (zero) in the some datapoints.
Any comments pleasetried to Corelated "https 0" for any actaull error/issue with infra & at the same time instances dint found any issues. | Prometheus with blackbox exporter http status code of 0 |
You're not going to be able to access your app via port 7000. Check outWhat external ports are available on OpenShift?ShareFollowansweredMay 21, 2015 at 15:12luciddreamzluciddreamz2,0831414 silver badges1515 bronze badgesAdd a comment| | I have set up a openshift server (free) with php cartridge. During the operation, I want to call a service hosted with port 7000. Ex. www.mydomain.com:7000/serviceWhen I try this with curlcurl -v www.mydomain.com:7000/serviceI am getting "Failed to connect (IP)....Permission denied" message. Even I can't telnet as "tel... | Accessing port 7000 from openshift server |
i don't know if you fixed it already, but i will answer anyways. It might help others. Here's the solution i found here:https://github.com/axios/axios/issues/1650Seeing your code, you should have the agent config outside of the header. Like that:// At instance level
const instance = axios.create({
httpsAgent: new htt... | I'm trying to request an API from a third party server from a shared hosting server, so i don't have root access, and receive this error, but when i try it from my insomnia, it works normally, aparently its something due to proxy or certificates. Already tried usinghttpsAgent: new https.Agent({ rejectUnauthorized: fals... | Nodejs Axios Error: Hostname/IP doesn't match certificate's altnames: "Host: (URL). is not in the cert's altnames: DNS:*.sa-east-1.es.amazonaws.com" |
I've always used this method in my main root HTACCESS file and it works like a charm:<Files ~ "^.*\.([Hh][Tt][Aa])">
order allow,deny
deny from all
satisfy all
</Files>More info on this method from one of my bookmarks:http://perishablepress.com/press/2008/05/20/improve-site-security-by-protecting-htaccess-files/ | I added a .htaccess file to a folder to make it password protected. I would like to prevent all users from being able to read that .htaccess file, because it reveals the location of my .htpasswd (I don't have permissions on this server to put this file outside of the html tree).I tried the suggestions athttp://www.java... | How do I prevent someone from reading my .htaccess file? |
The problem here is that you know your intention... but Git doesn't.
This is how Git looks at what you did: you made two independent changes to the same line. When you merge the first one, your intention is clear: you want the change to become part of master. Since there haven't been any changes in master itself since... |
For example:
I have a master branch.
I create a file file.txt and I write Master branch in it, and then I commit it.
I create another branch called fix20, and modify the text of file.txt to This is fix20 branch. Then I commit it.
I switch to the master branch and then I create a branch hotfix and switch to it.
I mod... | Why do merge conflicts happen? |
Use the maven-release plugin which is supposed to do that for you. Releases involve two steps:
mvn release:prepare which will ask you for the released version, tag name, and next development version
mvn release:perform which will build the release artifacts and publish them on a remote maven repository
To make this ... |
I'm trying to work out the optimal way of managing my workflow to allow version numbering and releases with Maven and Git.
Currently my workflow is:
Edit pom.xml to indicate a new snapshot version "1.2.3-SNAPSHOT"
Commit to git with message "start work on 1.2.3-SNAPSHOT"
Do coding work, commit after each successful "... | Version numbering / release mechanics with Maven and GitHub |
SETTING UP THE ENVIRONMENT (run it only once!)
N.B. To start ready environment after computer reboot, use AFTER LOCAL MACHINE REBOOT instruction in the second answer.
Steps:
Download and setup Docker Toolbox:
https://www.docker.com/products/docker-toolbox
Docker is a tool to deploy preconfigured virtual learning ... |
I believe many of those interested in studying DL heard of this course:
https://www.udacity.com/course/deep-learning--ud730
I am taking the course now and would like to share step-by-step instruction on how to setup learning environment on Windows from scratch.
The first answer named SETTING UP THE ENVIRONMENT is abo... | How to setup learning environment for Udacity Deep Learning class with TensorFlow (Windows) |
1
I suggest using lookaside lists since you buffers are always the same size. This will reduce kernel heap fragmentation significantly.
Share
Improve this answer
Follow
answered Jun 6, 2015 at 14... |
I am writing kernel-mode tests for an IO filter driver. When I run my tests they all pass, but if I run them 3 times in a row, the tests start to fail. I narrowed the issue to ExAllocatePoolWithTag which after some time starts returning STATUS_INSUFFICIENT_RESOURCES. To reproduce the problem I wrote a dedicated test
s... | How to correctly use ExAllocatePoolWithTag so that it doesn't return STATUS_INSUFFICIENT_RESOURCES? |
Like Nasreddine says, it's because your key is encrypted with a passphrase to prevent others from reading it.
The most convenient way of using passphrased keys is by using ssh-agent to start an authentication agent (which runs in the background):
$ eval "$(ssh-agent)"
Agent pid 44304
...and then using ssh-add to regi... |
I have a problem that occurs when using git.
When I use the command git pull origin my_branch or git fetch or git push origin my_branch, git always asks for my passphrase for key. I don't understand why this occurs?
Can someone please explain why and how to avoid entering the passphrase each time.
$ git fetch
Enter pa... | Git always asks for my ssh-key passphrase |
The solution I used was the docker-sync utility.
It runs in a container and keeps a Docker volume sync'd using rsync. The updates hit Docker's filesystem listener so you can "watch" instead of "polling".
|
I am running webpack-dev-server inside of a Docker container. For development purposes, I have a local directory bound to the Docker container. It's my understanding that webpack's standard "watch" abilities don't work inside Docker, or at least with volumes bound to the host machine.
But if I turn on polling (watchOp... | webpack-dev-server polling inside docker container - heavy CPU usage |
When you set the value of a numeric index higher than the currentlengthof your array, thelengthproperty is affected.In brief, you should use anObject:var data = {};
data[year] = "some data";
// or
var data = {
2009: "2009 data",
2010: "2010 data"
};Now I answer the question title: "Does JavaScript populate empty a... | I am coding a lot of annual data in JavaScript, and I was considering adding it to arrays, using the year as the array index and putting the data into the array. However, Firebug seems to be indicating that JavaScript handles this by populating two thousand odd entries in the array with "undefined." With hundreds of su... | Does JavaScript populate empty array items? |
I figured out a workaround. Instead of usingasPercent(movingAverage(#A, '5min'),movingAverage(#B, '5min'))as my derived metric I needed to use the full paths in place of the reference ids.This worked:asPercent(movingAverage(stats.counters.stg.some.full.path.unfound_users.count, '5min'),
movingAverage(stats.counters.stg... | I am sending two regular metrics toGrafanathroughstatsDand plotting them as two series (A and B). The metrics are "total_users" and "unfound_users".I am then creating a third series (C) which uses this expression:asPercent(movingAverage(#A, '5min'),movingAverage(#B, '5min'))Then I am attempting to create an alert on C ... | Grafana: Can't alert on a function metric? |
System node pools in AKS does not contain Master nodes. Master nodes in AKS are 100% managed by Azure and are outside your VNet. A system node pool contains worker nodes on which AKS automatically assigns the labelkubernetes.azure.com/mode: system, that's about it. AKS then use that label to deploy critical pod liketun... | I know that with Azure AKS , master components are fully managed by the service. But I'm a little confused here when it comes to pick the node pools. I understand that there are two kind of pools system and user, where the user nodes pool offer hosting my application pods. I read on official documentation thatSystem no... | On AKS are System node pool the same as master node? |
DynamoDB is a hosted solution but that doesn't mean you need to be inside AWS to use it.
There are cases, especially for storing user information for clients making queries against DynamoDB - outside of "AWS region".
So to answer your question - best performance will be achieved when you mitigate the geo barrier, but ... |
I haven't been able to find a clear answer on this from the documentation.
Is is discouraged to access DynamoDB from outside the region it is hosted in? For example, I want to do a lot of writes to a DynamoDB table in us-west-2, from a cluster in us-east-1 (or even ap-southeast-1). My writes are batched and non-real-t... | Cross-Region DynamoDB Access |
The easiest way would be to use labels and issuekubectl waitbased on that.kubectl wait --for delete pod --selector=<label>=<value>but, since you don't want that, you can use the script below#!/bin/bash
deployment_uid=$(kubectl get deployments ${1} -o=jsonpath='{.metadata.uid}')
rs_uids=$(kubectl get rs -o=json | jq -r... | When deleting a pod manuallykubectl deletewait for the pod to be deleted and one can include akubectl wait --for....condition in a script to wait for the pod to be deleted.I would like to perform the same wait condition but when scaling down (replicas: 0) a deployment.From the deployment json, the available/unavailable... | Is there a way to wait for all pod from a k8s deployment to be stopped? |
Yes, you can do it. You can find more information about ithereThe Helm charts repo is aweb server that serves files, it could also be something like Amazon S3 or Google Cloud Storage bucket and then you can add anindex.yamlfile and then all your charts. So you could also integrate that with Spinnaker. | I want to use Artifactory as private Helm repository and deploy my app using helm chart to Kubernetes everytime a new version of helm chart gets uploaded to Artifactory. | How can I use private helm repository with Spinnaker? |
GitHub search is based on elasticsearch, which has reserved characters than you can escape.
'>' and '<' are optional operators used for intervals, and it doesn't seem for that character to be escaped (in the way GitHub is using or has configured ealasticsearch).
|
How do I escape the > so I can search for all instances of -> in a github repository?
I have attempted using "->" but that still sees the > as an operator. Is there an escape character I can add so that the search will work?
| Searching for -> on Github |
Try:git rm --cached config/db.js | This question already has answers here:How do I make Git forget about a file that was tracked, but is now in .gitignore?(35 answers)Ignore files that have already been committed to a Git repository [duplicate](21 answers)Closed7 years ago.I created .gitignore and within it I putconfig/db.jsbecause I want to connect to ... | gitignore doesn't work in my case [duplicate] |
The documentation lists the dimensions you need to use:
API Name - the name of the API. You already have this.
Stage - the name of the stage of the API. You already have this.
Method - The HTTP method (e.g. GET, PUT, DELETE)
Resource - The resource path (e.g. /foo/bar)
|
I have an api say apifortest which has at 10 methods under different paths. Those methods are GET, PUT and POST. What I want to do is create a CloudWatch monitor for these.
I was looking at documentation here
http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/api-gateway-metrics-dimensions.html
This is wha... | Setting up CloudWatch dimensions for APIGateway methods in CloudFormation |
Open your Netbeans project.Open an internet browser, log in to your GitHub account and create a "Personal access token" (see GitHub doc, super easy), copy it.Then in Netbeans select your project and use the Git menu to push or pull from the GitHub repo: Netbeans will prompt you for a user and a password. Use your GitHu... | The connection between my NetBeans project and its respective GitHub repo has always been seamless, until now. I understand that GitHub implemented an update on August 14th which requires users to use a Personal Access Token to access their GitHub repositories. I have never used this before as I am relatively new to Gi... | Clone a Private Github Repo with a Personal Access Token Netbeans |
3
You need to tell the worker groups to use a specific AMI image, and install the NVIDIA device plugin.
There is an image_id property for the worker_groups block.
Find the appropriate AMI image here, selecting the x86 accelerated link under the appropriate kubernetes vers... |
Using the terraform EKS module, how do you use GPU nodes?
The EKS docs suggest that GPU support is automatic, but some guides/tutorials suggest that the user has to install the nvidia-device-plugin and configure AMIs themselves?
| EKS GPU worker group using Terraform |
Restart stops the service and starts it again (with new configuration changes).
However reload doesn't stop the service but merely re-reads its configuration file.Be warned though, not all services behave as expected which makes restarting the service a safer/assured option.For 500 errors, you might not want to restart... | When I pull my php code to multiple Amazon ec2 instance at a same time and want that modified code to run on servers so which is the best way to do without affecting users to get 5XX errors:service php5-fpm restart
and
service php-fpm reloadAnd what is the difference between them? I'd appreciate a detailed explanatio... | Which is best way and difference between service php5-fpm restart and reload? |
Run two instances of php-fpm, describe it in oneupstreamsection.upstream fast_cgi {
server localhost:9000;
server localhost:9001 backup;
}Change nginx.conf, to usefastcgi_pass fast_cgi;.
After that, if you restart one instance, nginx will process request through second php-fpm instance. | When restarting the php-fpm service on my Linux system, the PHP CGI process take a while to shutdown completely. Until it does, trying to start a new PHP CGI instance fails because port 9000 is still held by the terminating process. Accessing the site during this time results in a 502 Gateway Error, which I'd like to a... | How can I avoid getting a 502 Gateway Error while restarting php-fpm? |
That's normal and it's pretty simple why you have the error.A ClusterIP service is an internal only service inside of your Kubernetes cluster and what you are trying to create (from what I undestood) is a publicly exposed service using ingress, meaning you are going to create a Google Load balancer.Now the why it doesn... | Before I begin, I would like to mention that I am on the free trial version of GKE.
I have a simple server running in a GKE cluster. I have a service that I use to expose the server. I am trying to configure an Ingress Controller and attach it to this service.Everything works perfectly if my service is of type LoadBal... | Why can't I attach a service type ClusterIP to Ingress on GKE? |
As of today, it is not possible to specify either the default value for cache-control header on a blob or setting a value at container level that is applied to all blobs in that container. You would need to manually set the cache control header on the blobs either at the time of upload (for new blobs) or on existing bl... | I want to set a default cache header on all existingandfuture blobs in an Azure storage container.I can only find tutorials on how to set cache headers for existing blobs:https://azure.microsoft.com/nl-nl/documentation/articles/cdn-manage-expiration-of-blob-content/How can I make sure future blobs also get that same he... | Set default cache header for Azure storage container |
Did you set the properregionwhen you created a new S3 instance in Node?Say for example, your s3 bucket is inus-east-1. For optimal transfer speeds you'd want to make sure your S3 instance was set to that region, like:const s3 = new AWS.S3({
accessKeyId: "xxx",
secretAccessKey: "xxx",
region: 'us... | Been trying to figure out why uploading to Amazon S3 is amazingly slow using the putObject command (node.js library). The code below reads an entire directory of files and puts them to S3 asynchronously.//Read a directory of files
fs.readdir(dir,function(err,files){
//Read each file within the folder
for(var ... | Upload to Amazon S3 using API for node.js Extremely Slow |
What I finally ended up doing was to load the pull to refresh's function on beforeEnter like this:$scope.$on('$ionicView.beforeEnter', function () {
$scope.doRefresh();
});You never know, it might help someone else who finds themselves in the same situation as me :)ShareFolloweditedFeb 24, 2016 at 11:17Elie Faës3,2... | I have an app that reads the latest posts from my Wordpress website and displays it in a list. The problem is every time the user reopens the app it loads an old (cached) list of articles even though there are new posts on my website.I've been through it all in terms of disabling caching in ionic:I've set$ionicConfigPr... | Remove caching completely in Ionic |
I'm unfamiliar with GitHub Desktop, but hopefully there are simple equivalents in the GUI for these commands. If not, you can try with a backup branch in Git Bash (the command line).First, stage and commit your changes by doinggit add file1 file2etc. followed bygit commit -m "change x"Then, here are a few possible opti... | I'm currently in a course where the professor intermittently releases assignments on a public repo. I have this repo cloned on my computer, but I don't know how to go about getting the newly released assignments.Essentially, I want to pull the new files without deleting my work on the old files which I have edited. Do ... | How to get new files on a GitHub master repo |
This is a known limitation. At present windows only supports one NAT network. Removing Netnat by invoke Remove-Netnat is not supported.Run this in powerhell.Get-NetNat | Remove-NetNat | I am making a docker containerized application using visual studio 2017.
When running docker through visual studio first, I got an error that "ERROR: client version 1.22 is too old".This error was resolved by updating docker compose to version 2.1Below link contains further instruction about this specific errorERROR: c... | HNS failed with error : The parameter is incorrect |
There's currently no way to have overall coverage for JavaScript (besides coding a custom plugin).
According to thecurrent plan, SonarQube 5.4 will compute overall coverage for all languages based on unit and integration test coverage. | I'm currently providing JavaScript lcov reports for both unit and integration tests and they're properly displayed. However SonarQube doesn't seem to calculate the overall coverage for some reason - I have a Java project where this functionality works for my Java code.Is this functionality supported? If not is there a ... | SonarQube overall coverage for JavaScript |
4
I just faced the same issue. I can ping 8.8.8.8 via:
docker run mcr.microsoft.com/dotnet/core/sdk:3.0-nanoserver-1803 ping 8.8.8.8
but cannot ping google.com or any domains.
Then I try to find the virtual network that the container use via:
docker run mcr.microsoft.com/d... |
Assuming, my machine is named
workstation-mine.company.network, with IP 10.11.12.13
I can't resolve it from any Docker, Edge version 2.0.3.0, container (with Kubernetes in the background), for example:
docker run -it --rm busybox
ping workstation-mine.company.network
fails with a "Bad Address" message, but
ping work... | How to make Docker Desktop Windows resolve the host name? |
Depending on how often you need to do this you might look at thedf-pvplugin forkubectlhttps://github.com/yashbhutwala/kubectl-df-pvIt does exactly what you are asking across all the pvs in a namespace or cluster. Once you've got it installed, just runkubectl df-pvand you are set. | For example, I have 50 Gib PV/PVC and grant to one Pod, I just want to check usage of the storageThe way I am just following is to set up abusyboxpod with mounting the same PVC, then exec into thebusyboxto rundf -hto check the storage.I just want to know if there is an efficient way to do the same thing. | Is there an efficient way to check the usage for PV/PVC in Kubernetes |
I cannot spot the error in your configuration file; I'm an nginx-newbie as well.But here is my full nginx.conf config file which redirectshttp://myhost/cabaret/foo/bartohttp://myhost:8085/foo/bar:user www-data;
worker_processes 1;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker... | I have running nginx on my server ansel.ms and a node.js app on ansel.ms:46156.I want to setup nginx so it redirects everything fromansel.ms/rhythmtoansel.ms:46156.
ansel.ms/rhythm/sub/pathshould becomeansel.ms:46156/sub/pathThis is my file in sites-available:upstream rhythm {
server ansel.ms:46156;
}
server {
... | How to redirect address.com/foo/bar to address.com:port/bar with nginx? |
4
Best way to do it would be to first fetch the new branch from upstream into your cloned local repo and then push it to origin.
Below are the git commands:
git fetch upstream
Above command will fetch the new upstream branch.
git checkout -b feature upstream/feature
T... |
Suppose, I've repo - https://server/tests/ui and when I forked it, it has two branches - master and release.
Suppose after few days, someone adds new branch say feature to upstream. If I want to take that new branch into my fork, which git commands should I use?
| How to get newly added branches from upstream into origin? |
In the end the problem was with the driver. It seams that it affects only the functions that are used for PTX code loading with GPUs that have CUDA Capability 5.0.I removed all the nvidia driver packages that were updated recently and installed the driver and OpenGL libraries that comes with the CUDA SDK. The driver ve... | I am trying to use the ptxjit sample from the CUDA SDK as the basis for instrument the interaction with the GPU device.I've managed to successfully compile the instrumentation code, and control the device to load and execute a PTX module with a Geforce GT440 that has CUDA capability 2.0.When compiling the same instrume... | Loading a PTX programatically returns error 209 when run against device with CUDA capability 5.0 |
After comments I could suggest you the following workaround:private Boolean isSuccess = true;
@Override
public void run() throws InterrupException{
int i = 0;
int k = 3000 /*k is 3 seconds*/
while( isSuccess ){
i++;
Thread.sleep( k );
doSomething();
... | According to theMSC01-JAn infinite loop is one that will never end while the program is running, i.e., you have to kill the program to get out of the loop. Whether it is by meeting the loop's end condition or via a break, every loop should have an end condition.This criterium is used bySonarQubeto detect some suspicion... | How much time is spent on computation for limited while-loops using end's condition restriction MSC01-J (SonarQube) |
Googlesite:github.com routes.rband you'll get page upon page of Rails app repos.I think that's a good starting point. There are many ways to further refine the search.Hope that helps!ShareFollowansweredSep 18, 2015 at 23:42madcowmadcow2,5931515 silver badges3131 bronze badgesAdd a comment| | Is there a simple way to find projects that use a certain library (say django / rails) on github or bitbucket? Just typing "rails" in the search returns projects with "rails" being part of the name, but those are not necessarily rails applications. | finding projects on github / bitbucket |
This question is very broad but for dev environments you can use as your creativity spans.So one scenario that I can think of is that you are running sayUbuntuin your production environment with Docker containers. Say your developers have Mac OS X machines runningVirtualBox, but you want want their environment to be a... | So this weekend I installed bothVagrantandDockeron my laptop and played around with them a little bit. Itotallyunderstand that they are different beasts with different intentions in mind. But I can't help to think: how could they be used to complement each other?If you Google "Docker vs Vagrant" you'll get an ocean of ... | Using Vagrant and Docker together, by example |
+50After some investigation, I found the root cause of the problem. Basically, the communication wasn't working properly because there is something called ip masquerade (https://cloud.google.com/kubernetes-engine/docs/how-to/ip-masquerade-agent) that is used for NAT translation.As GKE has some default addresses that ar... | I am using Google Kubernetes Engine to deploy some applications that need to connect to a DB on premises. In order to do that, I have configured a VPN tunnel and created a VPC.Then, I created a GKE cluster (1 node) that is using that VPC and I can confirm that the DB is accessible by connecting to the node and try to p... | Google Kubernetes Engine & VPN |
same Problem for Windows. Some people wrote to delete dns 8.8.8.8 from resolve.conf
But i added this dns to my Settings (right click on docker icon -> Network -> Set DNS to Fixed (8.8.8.8) | I get the following error when I try to do "docker run" on my Windows 2016.PS C:\Users\Administrator> docker run microsoft/sample-dotnet
Unable to find image 'microsoft/sample-dotnet:latest' locally
C:\Program Files\Docker\docker.exe: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request c... | Docker error on Windows 2016 "Client.Timeout exceeded while awaiting headers" |
I saw the linked answer on the question,the answer in the linked question is incorrect, look at the comments there!As of March 2019, in Gitlab Wikis, you still need to use "|" inside the markup code. – knb Mar 22 '19 at 13:52You should use|.If you do not like the jumble of characters, use this!(Although it te... | I uploaded a table in a Jupyter notebook (ipynb file). The table contains some pipes '|', and it is in a markdown-formatted cell of course. It looks normal on my local Jupyter notebook:The codes for the table are:||**hash table**|**direct-address table**|
|:-|:--------------:|:------------------------:|
|Storage requir... | Display pipe in table in jupyter notebook on Github |
At the end of your first rule, try adding a[L], then for the second rule, include the same!-fand!-dconditions:Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www.)?example.com$
RewriteCond %{REQUEST_URI} !^/dir1/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST... | Here is the site, I'm working on: example.com My all Codeigniter files are in sub directory "dir1".For my root directory, here the .htaccess file:Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www.)?example.com$
RewriteCond %{REQUEST_URI} !^/dir1/
RewriteCond %{REQUEST... | CodeIgniter not loading assets due to .htaccess rewrite for subdirectory |
+50I don't know another cloud provider than AWS, so I'll answer based on AWS. I always use AWS Lambda whenever I can except when the running time is greater than 15 minutes. In this case, I useAWS Batch(AWS Batch – Run Batch Computing Jobs on AWS).You can also useAWS Fargate, but you'll have to configure clusters and a... | We are using NodeJS to process long transcripts using the Google Speech-to-Text API. Many of the functions take over 10 minutes to process. The usual ratio of processing/audio time is around 50%. So a 20 minute FLAC audio file takes around 10 minutes to process (therefore failing on Google Cloud Functions, max time is ... | Timeout issues on Google Cloud Functions and AWS Lambda |
Use streaming inserts, your limit there is 100.000 items / seconds.https://cloud.google.com/bigquery/streaming-data-into-bigquery | I have built a distributed (celery based) parser that deal with about30K files per day. Each file (edifile) is parsed as JSON and save in a file. The goal is to populate a Big Query dataset.The generated JSON is Biq Query schema compliant and can be load as is to our dataset (table).But we are limited by 1000 load jobs... | Batch processing from N producers to 1 consumer |
To understand the answer, we need to understand how kernel mode drivers create devices.
To see a list of drivers, invoke msinfo32 from the run dialog, the select Software Environment-->System Drivers. From there you can see all registered drivers on your system, and their start mode (Manual / Boot / System) and state... |
My goal is to detect discrete GPU on multi-gpu systems (for example integrated Intel HD Graphics + discrete AMD Radeon card) with C#
I've usually use that code:
String gpuName = String.Empty;
ManagementObjectCollection objectCollection =
new ManagementObjectSearcher("SELECT Name FROM Win32_VideoController").Get();
... | Detect discrete GPU |
As comment from @RomainValeri says , maybe you have line difference with some signs.I usually paste the code fromGit consoleinNotepad++for example and do:View -> Show Simbol -> Show White Spaces and Tabs / or All Characters..Try to check if there is difference and then usually just delete one of the lines and leave the... | BASE_API=http://127.0.0.1/transport // <<==== (in red indicating delete)
<<<<<<<
BASE_API=http://127.0.0.1/transport
=======
BASE_API=http://127.0.0.1/transport
>>>>>>>I have a very weird situation above. Basically I'm trying to merge from one branch to another via pull request, and the above case happened, saying ther... | Git weird conflict issue? |
Creating an issue to GitHub wouldn't be done by "sending an email", but only by using the GitHub v3 issue API (like this script, for example, to migrate issues to GitHub)
That means in your case having a trigger on FreshDesk (or an "Observer" to call a webhook) which would parse the ticket and create the appropriate b... |
We are currently using Freshdesk for our customer support and GitHub for our code. On receiving a bug or an improvement feature request via Freshdesk, we would like to forward that ticket (with all the details + screenshots) to an email in GitHub so an issue is created automatically on GitHub. That would save us a man... | Create GitHub issue from Freshdesk (via email) |
You can try to disable hinted handoff, or try to truncate hints after the drain:nodetool truncatehintsIf you care about consistency, run repair after the process.Warning:If you are working with ANY consistency setting or RF=1, this may lead to some data loss. | We're running multiple Kubernetes clusters, which run Cassandra.
Our usual procedure when doing a rolling restart of the Cassandra pods is to log into each and submit anodetool drainand then trigger a recreation of that pod. But often when the pods restart we get errors likeERROR [HintsDispatcher:2] 2017-08-07 11:09:32... | Why do my Cassandra hints files keep getting corrupted |
I think you got one too many*'s there. And yes you can set the PATH variable in cron. A couple of ways. But your problem is the extra*. | I have made a simple cron job by typing the following commandscrontab -ethen in the vi file opened I types* * * * * * echo 'leon trozky' >> /Users/whitetiger/Desktop/foo.txt 2>&1the filefoo.txtindeed gets created, but its content is/bin/sh: Applications: command not foundI'm guessing this has to do with the PATH value ... | cron problems running very basic commands |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.