Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
Running into a similar issue with a similar set upThe way I temporarily fixed it was by manually going into the folder containing mynode_modulesfolder and runningnode_modules/.bin/install, from there you should be able to open it withnode_modules/.bin/openor$(npm bin)/cypress open.Tried setting up a separate cypress co... | I have got a docker-compose.yml file:version: '2'
services:
web:
build: .
command: npm run dev
volumes:
- .:/usr/app
- /usr/app/node_modules
ports:
- "8080:8080"
expose:
- "8080"And a DockerfileFROM node:7.7.2-alpine
WORKDIR /usr/app
COPY package.json .
RUN npm install ... | How to add cypress into my current docker? |
There are currently several pull requests on the github linguist repo for recognising .q files. Unfortunately it seems that everytime a PR gains traction another comes along and steals the limelight, in addition to some other issues.
In short, if you want .q files recognised you'd have to get one of those PRs approved... |
I am not sure if it's possible , i want to get .q file extension recognized by GitHub so that :
GitHub can highlight the keywords of q language (by providing the full list of keywords somehow ; e.g. sum,diff,avg) while viewing the files in the repo ; currently the files are treated as simple text.
Popular repositori... | How to get .q extension recognised in github |
Amazon seem to handle this stuff on a case-by-case basis. They have always been reasonable with us. We have upgraded and moved regions in the past without any problems but it will require a phonecall. | I know you can upgrade on-demand RDS instances. But is it possible to upgrade a reserved RDS instance?Is it also possible to move a reserved RDS instance from one region to another? | Is it possible to upgrade and/or move Amazon RDS reserved instances? |
You should not save the token in the URL. That's insecure, because anybody who can read the configuration file can see your credentials. TheGit FAQ explains how to set up and use a credential helper.To remove the token from your URL, do this:$ git remote set-url origin https://github.com/myuser/myrepor.gitThen, after... | My personal access token has expired for GitHub, I really can't work figure out how to update the personal access token on the command line.git push
Password for 'https://[email protected]':
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: ... | Update personal token for github |
with 2FA you have to create a personal access token to use as a password when authenticating to GitHub on the command line with HTTPS URLs: https://help.github.com/articles/which-remote-url-should-i-use/#when-2fa-is-enabled
or you can clone with ssh https://help.github.com/articles/which-remote-url-should-i-use/#cloni... |
I've clone a project on GitHub on my Raspberry Pi, create a new branch and push everything to the repository. For this I needed next commands:
git clone https://www.github.com/heinpauwelyn/my_repo
git checkout -b raspberry
git push origin raspberry
The problem I've got is that I can't push the branch to GitHub.com. I... | 2FA give problems when pushing to GitHub |
git diff --name-only XXXXXX master where XXXXXX is the branch you're comparing against master
Edit:
To get a list of changed files in an array in node
const sh = require("run-sh");
sh("git diff --name-only XXXXXX master").then(function(res) {
const changed = res.stdout.split("\n");
});
|
I needed the list of files which are changed in a new from the current local master. Is there any git command to produce the results or any node packages to make the thing simple?
I have tried https://github.com/clakech/committed-git-files which was quite confusing. Can someone suggest me some node packages to do the ... | List all the files between master and current branch int git? It would be great if there is any node package to push out the result in an array :) |
You can also look at Redis (http://redis.io/), which is rumored to play very nicely with .NET applications thanks to an open source client for it written in C#:http://code.google.com/p/servicestack/wiki/ServiceStackRedis. | I am looking for a distributed Cache/Session solution, below is what I found. I hope anyone could share information regarding pros and cons of using it:NCacheWindows Server AppFabricMemCachedas recommended by @TFDI am using ASP.NET 4 and SQL Server 2008.Any idea would be very much appreciated! | Distributed Cache/Session Solution for ASP.NET Web App |
2
docker run -it image_name /bin/sh works for me! (Docker image, like Alpine, does not have /bin/bash).
Share
Improve this answer
Follow
edited Aug 18, 2017 at 19:37
Chris
132k116116 gold badges284284... |
I have created a docker image which is a python script based on a centos image. This image is working in the host system. Then I converted that image in tar.gz format. After that when I imported that tar.gz file into docker host(in a ubuntu system), it is done properly and the docker images list shows me the image lis... | Docker container not running |
I'm in the middle of doing this same thing. Based on what I've read so far, copying a directory itself using Laravel doesn't seem to be possible. The suggestions I've seen so far suggest looking through and copying each image, however I'm not at all satisfied with the speed (since I'm doing this on lots of images sev... | I am trying to copy a folder which is already on s3 and save it with different name on S3 in laravel 5.4 . What I have found so far is that I can copy an Image, Not folder. I have tried to copy folder like ie:$disk->copy("admin/form/$old_form","admin/form/$new_form");But it doesnot work like that. It give me an error. ... | Aws s3 copy and replicate folder in laravel |
I couldn't find a way to do this using the built in NUnit runner. I managed to get it working by using a powershell build step to manually call the required commands.First step is to run the NUnit tests via Gallio within a dotCover cover call:& dotCover cover `
/TargetExecutable="C:\Program Files\Gallio\bin\Gallio.Ech... | I'm trying to integrate the sonar analysis into by TeamCity build process. I have a NUnit build step which runs my unit tests and then runs dotCover for the coverage.My next step is the sonar-runner. The configuration that currently exists is; gallio.mode=dotCover, sonar.gallio.mode=reuseReport but I also need sonar.ga... | TeamCity dotCover report path for Sonar |
Since it works correctly when you relaunch the app it sounds like you are probably asking for permissions at the same time you are displaying the view controller/collection view. The problem is that the collection view doesn't know to reload once the user has selected to give your app access to their photos. In the PHP... | I'm using thisGitHub project's controllerfor displaying user's Photo Gallery inside of UICollectionView. Everything is okay there, but except one: If I run it for the first time, it asks me about permissions. I accept it, but after that I cannot get my images from the gallery. It displays nothing.But when I close my ap... | Why photos from gallery does not appear after permissions giving? |
Technically, thestatus.txtfile is stored in your Git repository. So if you want to change its state and be able to retrieve it next time, you should:modify its contentgit commit / push it to store its new contentBut functionally it doesn't seem a good idea to use your Git repo to store your latest GitLab CI pipeline st... | I am trying to update a file in my repository via job within the pipeline.my pipeline:stages:
- check_url
standardCheck:
stage: check_url
image: mcr.microsoft.com/powershell:latest
script:
- pwsh -File ./variable.ps1my script variable.ps1#read status from file, initial "true"
$status = Get-Content -Path "... | GitLab CI/CD | How to Update a txt-File from a job within a pipeline |
Found the answer:// (This is CPU code)
// define the dimensions of a cubical 1GB 3D buffer
var fieldSize = new Index3D(1000, 1000, 1000);
// allocate that buffer in the GPU
using var field = accelerator.Allocate3DDenseXY<VoxelType>(fieldSize);
// run the kernel
kernel(fieldSize, ...);
// wait for it to complete
acc... | I want to quickly copy a small piece (several bytes) of a huge GPU buffer to the CPU. ILGPU CopyToCpu takes a long time because it copies the entire buffer. Is there a way in ILGPU to copy a small slice of an array, for speed sake? | ILGPU CopyToCpu slice |
OK I have a workaround for this, it's the best I can do but it works to some degree ...
I made use of CRON jobs and acustom script/jobrunner file.I created thejobrunnerscript located atscript/jobrunnerwhich contains the following#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/environment'
Delayed::Work... | I am currently using a site5 server and would likerake jobs:workpretty much running all the time.
I currently cannot send out the jobs unless i'm logged into the server. I hope that someone out there can help me with this. Had alot of trouble withar_mailerand thewhenevergem ... but have about another 5 gems working per... | Delayed_Job - on site5 server |
Due to the way Google handles client IDs, we actually recommend that customers use ourgeneric OpenId Connect supportwhen configuring their identity pool for Google login.Go to AWS IAM Console'sidentity provider section.Create an OpenId Connect Identity Provider with provider URL ashttps://accounts.google.comand Audienc... | I have an Android project and i am trying to authenticate with AWS Cognito with Google Plus. I have set up Facebook authentication and that is working, but when i login with Google Plus i get a 400 : Unauthorized errorAt the moment i have to set my app to 'Enable access to unauthenticated identities' so that Google Pl... | Why Doesn't AWS let me authenticate with Google Plus? |
4
The problem is that you might not have added your modification to the index before making:
your "commit" (which committed nothing as a result) and
your sync (which might have reset your index to the latest fetched commit)
It is always preferable, in case of trouble, to... |
I am using Sublime text and a Github plugin.
When I tried to Commit and Sync it reverted all my files to the version in the online (from three days ago).
The commit is not showing up in the history.
Is there any way that I can get my files back?
| Github Commit and Sync Deleted All Files - All work lost |
Terraform only makes changes to the remote objects when it detects a difference between the configuration and the remote object attributes. In the configuration as you've written it so far, the configuration includes only the filename. It includes nothing about the content of the file, so Terraform can't react to the ... |
I need to upload a folder to S3 Bucket. But when I apply for the first time. It just uploads. But I have two problems here:
uploaded version outputs as null. I would expect some version_id like 1, 2, 3
When running terraform apply again, it says Apply complete! Resources: 0 added, 0 changed, 0 destroyed. I would expe... | Terraform - Upload file to S3 on every apply |
My problem was in that I rewrite...
USER root
...in child image as a result HEALTHCHECK run from root.ShareFollowansweredNov 23, 2018 at 9:36burtsevygburtsevyg3,99022 gold badges3030 silver badges4747 bronze badgesAdd a comment| | I have Dockerfile:...
USER oracle
HEALTHCHECK CMD "$ORACLE_BASE/$CHECK_DB_FILE" >/dev/null || exit 1
...Why does healthcheck process run as root? Is it normal that some process run as root in container?Docker version 1.13 | User that run Docker health check |
You can do that using AWS CLI (v1.11.46or newer).You can disassociate an IAM instance profile from a running or stopped instance using thedisassociate-iam-instance-profilecommand.See thedisassociate-iam-instance-profileCLI command documentation for more details.ShareFolloweditedyesterdayAli1,14111 gold badge1212 silver... | I launched an instance with an iam roleI now want to remove the role from the instance via powershellI must be confused about the terminology here because I'm readingthis docand I don't see how to remove a role from an instance.I want to run this command on the EC2 instance that the role will be removed from.There can ... | How do I remove a role from an EC2 instance? |
-1
git diff commit1 commit2 folder_path
Share
Improve this answer
Follow
answered Jan 20, 2016 at 12:08
sachinsachin
16511 silver badge1616 bronze badges
1
9
This answers... |
I can view the changes between 2 commits with a url like this
https://github.com/jquery/jquery/compare/0e2f8f9...250fd80
But I'm interested in showing only the changes that affect a certain path like "src/css" for example. Is there a way to do this?
| Github compare view for a specific path only? |
1
After a sleep / wake cycle, Windows detects the Host-Only network as a "duplicate" and changes its IP. After that, docker-machine (or the Quickstart terminal) doesn't work anymore.
It is probably caused by this VirtualBox bug (from 5 years ago): so there doesn't seem to b... |
I am a newbie about docker.
This morning I have just download and install docker 1.9.1 to my computer (OS: windows)
After install it, I run 'Docker Quickstart Terminal' but it fail
The console keep print like this:
Machine default already exists in VirtualBox.
Starting machine default...
(default) Starting VM...
Machi... | Can not start Docker 1.9.1 |
Your could choice any name of initial branches at present.
Beginning with sprint 176’s deployment, folks with Edit policies at the project level may choose the name of the initial branch for new repositories in that project. The setting won’t change anything for existing, populated repositories.
It will change the fi... |
Unlike many organizations, our company use product's name as main/default branch. For now, it's still master by default when we create a new Git Repo in Azure DevOps.
We have noticed this is available in GitHub--Renaming the default branch from master.
Many communities, both on GitHub and in the wider Git community,... | How to change default branch name for Azure DevOps host Git Repo |
Have you tried this plugin for Notepad++?http://forum.lowyat.net/topic/1358320/allYou can not save directly on github but you can save and then commit these modified files. | 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... | Github - Notepad++ [closed] |
I've figured out what was wrong. It were settings (System/Configuration/System/Cron).
When I set up"Schedule Ahead for" to 60it started to work properly (every hour and every day schedules).
For now schedule in database is appearing at 15:20 when I need to execute it 16:00.Settings:Generate Schedules Every: 15Schedule ... | I have a problem with Magento cron expression. It works fine with minutes:<crontab>
<jobs>
<namespace_module_cron>
<schedule>
<cron_expr>*/15 * * * *</cron_expr>
</schedule>
<run>
<model>namespace_module/observer::myMethod</model>
... | Cron job on Magento doesn't work properly |
5
I think what you want is docker run and not docker exec command. Docker exec is to launch something on an already deployed up and running container... and what you want is to launch a script once upon deployed.
Modify your Dockerfile. Use this instead of entrypoint on las... |
I'm trying to run a shell script as entrypoint in my docker container. For this, I defined an entrypoint in my Dockerfile like this
abc.Dockerfile
FROM ubuntu
COPY abc.sh /
RUN chmod +x /abc.sh
ENTRYPOINT /abc.sh
Dockerfile gets built successfully, but on doing exec into the container I'm getting an error:
$ docker e... | Docker container restarting on defining an entrypoint |
Let's me recommend this push-to-all-remotes alias:
git config [--global] alias.push-to-all-remotes '!git remote | xargs -I% -n1 git push %'
Usage: git push-to-all-remotes master.
Taken from gitalias.com (full disclosure: I'm a contributor there).
|
I want to push and syncronize my code in two different remote repository, to Gitlab and Github at the same command, is it possible?
| Can i push into two remote repository in the same command line? |
finally found a workaround: runningsudo /sbin/iptables -A OUTPUT -t mangle -p tcp --dport 22 -j TOS --set-tos 0x00fixes the problem for the current session | It's a few days that whenever I try to push a commit to the remote branch, pull, clone with ssh (http clone works fine): it just gets stuck, without any error message or so on, nothing, just stuckI tried reinstalling Git, removing and purging it and reinstalling, removing the.gitconfigfolder, removing the ssh key and c... | Git stuck on push, pull, clone, everything |
Yes, you can use S3 object lifecycle rules to delete objects having a given tag.Based on my experience, lifecycle rules based on time are approximate, so it's possible that you need to wait longer. I have also found that complex lifecycle rules can be tricky -- my advice is to start with a simple test in a test bucket... | I need object level auto deletion after some time in my s3 bucket, but only for some objects. I want to accomplish this by having a lifecycle rule that auto deletes objects with a certain (Tag, Value) pair. For example, I am adding the tag pair (AutoDelete, True) for objects I want to delete, and I have a lifecycle rul... | Does using tags for object-level deletion in AWS S3 work? |
You can toggle the memory up, save and reset it back again.
You can also add a new environment variable.
This forces all existing warm lambda's to be disposed and a new cold start on the next invocation of the lambda.
|
I have a lambda function written in Python that uses a couple of heavyweight dependencies (NumPy, pandas, goodtables, etc.) and is also connected to a VPC (for access to a Postgres RDS instance)
The cold start execution time of this function is huge (16.2 seconds) when it's executed after a while (> 4-6 hours)
However... | How do I force a complete cold start of an AWS lambda function on a VPC? |
forever, like standard node, simply logs to stdout as well so you shouldn't have to do anything special. Of course, if you start your container with docker run -d you'll have to run docker logs -f myNodeContainer to actually see the output live.
|
I'm running node app under forever in a docker container, how do I get all console.log output to show up on the console? I'm a beginner to docker so I assume the best way to log with docker is to simply log to stdout. If there's a better more proper way to do this I'm open to alternative solutions.
| How to get forever to print child process output to stdout. |
The problem was inappropriate settings in thelimits.conf. Changing the run command to include the --ulimit option where the nofile was increased fixed the problem:docker run --name=oracledb --ulimit nofile=1048576:1048576 \
-p 1521:1521 \
-e ORACLE_SID=XE -e ORACLE_PDB=foo -e ORACLE_PWD=bar \
oracle/database:18.4.0-xN... | Running an oracle container based on theofficial dockerfile. Container is running on an EC2 instance (Amazon Linux 2) which is RHEL derivative, I am getting:Configuring Oracle Listener.
su: cannot open session: Permission denied
Listener configuration failed. Check log '/opt/oracle/cfgtoollogs/netca/netca_configure_out... | su: permission denied despite being root in oracle container |
0
With GitHub Pages, you can have either the /docs/ or the root / of a selected branch to served .html files and it will be accessible through the regular github.io link: https://<user_or_organization>.github.io/<repository>/ (it will be public regardless of your repo priva... |
I have Doxygen style XML comments for a c++ project I am working on, and would like to take it and make a GitHub wiki page from these comments. What would be the best way to do so? I cannot use GitHub pages. I have tried pandoc, but the pages it generates do not wind up looking nice, but I am not sure if that is becau... | Generating GitHub wiki pages from Doxygen style XML comments in c++ |
Starting frommaterial:1.11.0it is not finding thesystem_background_darkresource. Check ifmaterial:1.10.0worksShareFollowansweredFeb 10 at 18:49GerardoGerardo30033 silver badges99 bronze badgesAdd a comment| | I have written a library for Android. When I run the Java with Gradle workflow on Github, I'm getting this error:"A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed
ERROR: /home/runner/work/ExampleLibrary/ExampleLibrary/ExampleLibrary/buil... | How to fixed "A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action " |
This was driving meMAD!but I found the answer, for those who are getting confused like I was.Look at line 4:Options +FollowSymlinks
RewriteEngine on
RewriteRule ^404.html$ 404.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.phpTaken from:easymodrewrite:The [L] flag can have unexpected results if yo... | This seems so simple, but I can't figure it out... I would like all requests to be rewritten to index.php (which will interpret the request)apart from404.html which should be rewritten directly to 404.php.The following code does work at rewriting everything to index.php, but 404.php never gets triggered.I have left lin... | Simple RewriteRule question |
You can use AWS CloudFront for your use case. Setup the S3 bucket behind CloudFront and add index.html as the default route.Still if the page is refreshed in a angular route (e.g /home), AWS CloudFront will search for a /home.html file in S3 and return 404: Not Found Response. However there is a workaround for this, wh... | How do I redirect all requests to my static AWS S3 website to index.html so I can use AngularJS' HTML5 Mode?I recently learned (to my unending delight) that it is possible to use AngularJS without the#in the URL by usingHTML5 Mode. However, I know fromthis answerthat this requires some setup on the server, since all r... | Redirect all AWS S3 http requests to index.html for AngularJS HTML5Mode |
From Amazon ES limits
Custom plugins The service does not support custom plugins. However,
the service does support several standard plugins, including Kibana,
ICU, and Kuromoji.
There are few (necessary) plugins that are installed by deafult but you cannot install your own
|
How to install elasticsearch-river-mongodb plugin to Amazon Elasticsearch Service?
| Can I install plugin on Amazon Elasticsearch Service? |
This is a bug in the sonarqube java plugin that won't be fixed as the feature is planned to be dropped :http://jira.sonarsource.com/browse/SONARJAVA-1184 | I use SonarQube 4.5.4 to scan Java project and find out the dependency file number in dependency structure matrix is not correct. For example the number shows 3, but click it, there are only 2 files. All of numbers are equals to actual number +1. Why? | Dependency Structure Matrix issue of SonarQube 4.5.4 |
0
I was reading this unanswered question which suggests that one potential source is from impatient clients hitting the refresh button.
This seems to be consistent with your observation that clients are alive, and there are requests after getting 499.
Share
Improv... |
Recently we've switched apache to nginx with http2 support for our web application, and we're seeing quite a lot of 499 errors.
Our setup:
Ubuntu machine running on Amazon AWS
Nginx/1.9.12 acting as proxy (and ssl offload) for node application (same machine)
Single Page App on the client side
My initial thought wa... | nginx 499 errors with node upstream and http2 |
2
So it turns out this problem came from my webpack build.
In my package.json, i had homepage: "./", which caused the path resolving issues.
Just removing this field seemed to fix this issue ! Nginx config was fine :)
Share
Improve this answer
... |
So I have a SPA that I built using Create-React-App. It works completely fine for local dev, and I wanted to deploy the built app using nginx.
I set up my Dockerfile and nginx.conf, and at first all seemed to run fine. But then, I noticed weirdest issue.
Most of the app is working fine, but when I try to access a nest... | Invalid path for js bundles in nginx served react app |
Lambda writes logs to a buffer which should be flushed after completing the lambda. But looks like for some reason lambda cannot flush it.
I have notified AWS team about it few weeks ago, but the issue still not fixed. | I have made a simpleAWS lambdaand deployed it to withAWSLambdaFullAccesspermissions. There was some logs after invocation. Next day I invoked the lambda again multiple times, all executions were successful but I didn't see any new logs intoCloudWatch.
I saw some logs only after redeploy the lambdaThere is the code:pub... | AWS lambda does not write logs in the CloudWatch |
2
You have to push images to the GitHub repo. Images cannot be viewed because they are missing.
Share
Follow
edited Mar 30, 2021 at 12:19
answered Mar 30, 2021 at 12:10
Cyrus ... |
I created a R markdown file on R Studio enter image description here and used the Knit function to create an html file. Eventually, .md file and html files were created in my working directory. Also, a figures folder/directory was created automatically. And hence, I pushed all the changes made to my GitHub repository.... | Unable to view plots on GitHub using md file |
You can add newlines after the pipe, and bash will continue to see it as a single pipeline:foo | bar | baz | quxcan be written asfoo |
bar |
baz |
quxOr, use line continuations, if the look appeals more:foo \
| bar \
| baz \
| quxNewlines are acceptable after|,&&and|| | I have plenty of bash scripts with various files being piped into various scripts and it does my head in a bit.I wondered if there was a way of visualising the pipeline in a bash script so I can easily see the flow. | Is there a visual bash pipeline editor |
In your Dockerfile, run the following command:RUN groupadd -r -g 1234 newusername && useradd -r -u 1234 -g newusername newusername
USER newusernameThis will create a usernewusernamewith GID 1234 and UID 1234, then run the container with a default usernewusername. | Where can I configure the start user UID for Docker containers? By default it uses UID 999 which conflicts with some other users on my system. | Where can I configure the start user UID for Docker containers? |
The purpose of your cache layer should be pretty much that : reflecting the corresponding data in your database, but providing it faster than the database would, or at least providing it without keeping the database busy.
To achieve this, you have two solutions :
know the exact lifespan of everything you store in cac... |
Just wondering how you guys manage your cache invalidations. Given that there might objects (hundreds and thousands) in the cache that might be triggered by different algorithms or rules. How do you keep track of it all?
Is there anyway you can reference the relationships from a table in the database and enforce it s... | Managing Cache Invalidation |
OutOfMemoryError is an error not an exception, you should not catch it.
see http://mindprod.com/jgloss/exception.html
EDIT: known problem see this issue
|
So I've got a lazy image loader for my ListView. I also use this tutorial for better memory management and have SoftReference Bitmap images stored in my ArrayList.
My ListView works loads 8 images from a DB then once the user scrolls all the way to the bottom it loads another 8 etc etc. There was no issue when there w... | java.lang.OutOfMemoryError: bitmap size exceeds VM budget |
I managed to print the available indexes of elastic with the command below:def print_indices(es):
print(es.indices.get_alias("*"))Then i got all the data by executing the below query:query = {"query": {
"multi_match": {
"query" : "*",
"type" : "cross_fields",
... | I connected to an elastic search client by using:es = Elasticsearch(
hosts = myip,
port = myport,
http_auth = (myname, mycode),
connection_class = RequestsHttpConnection,
scheme = 'https',
use_ssl = True,
ver... | Elasticsearch explore data |
When it comes to creating user, as you said, most charts and containers will have environment variables for creating a user at boot time. However, most of them do not consider the possibility of creating multiple users at boot time.What other containers do is, as you said, have the root credentials in k8s secrets so th... | We are planning to use Kube for Postgres deployments. Our applications will be microservices with separated schema (or logical database). For security sake, we'd like to have separate users for each schema/logical_db.I suppose that the db/schema&user should be created by Kube, so the application itself does not need to... | Kubernetes: Databases & DB Users |
Use the-R-switch:hg pull -u -R /path/to/repositorySeehg -v help pullfor all command line options ofhg pull(the-vswitch tells help to include global options). | I have multiple mercurial repositories and usedhg cloneto create backups of them on our file server. Now I want to write a batch file that updates them once a day by runninghg pull -uon each subdirectory.I want to keep this backup script as generic as possible, so it should update all backup repositories stored in my H... | Does hg pull only operate on the current working directory? |
Please validate if you have enabledcustom cachemodeIn the build project configuration, under Artifacts, expand Additional Configuration. For Cache type, choose Local. | I'm trying to use AWS Codebuild - Local Custom Cache. I'm failing to perform the simplest task of caching a file between builds. What's explained here:AWS CodeBuild local cache failing to actually cache?doesn't work for me.This is my buildspec.ymlversion: 0.2
phases:
pre_build:
commands:
- CACHE_DIR='docke... | Why AWS Codebuild Local - Custom Cache is not caching file? |
1
You could accomplish this by using the task scheduler like this:
schtasks /create /sc DAILY /tn Backup /tr C:\backup.bat
Note: Type schtasks /create /? for more options.
You can rename the file with the date by using this:
ren C:\file.txt *. && ren C:\file. *%date:~-10,2... |
I want to create a .bat file to create a daily backup of a file. This should also update the file name with the date or time. How can create this file? I ve tried a lot of different ways.. mcopy, xcopy.. etc. somehow.. it does'nt work.
| Bat file to copy a file everyday with the time stamp |
After a lot of research I discovered the following Nextjs prop which makes sure all the tags have thecross-originattribute.// next.config.js
module.exports = {
crossOrigin: 'anonymous'
}Also, make sure you set S3 CORS permissions to:[
{
"AllowedHeaders": [
"*"
],
"AllowedMethod... | My current Nextjs app is pulling its static files from Cloudfront. (I upload the /static folder to S3 during the deployment)Since updating to version 9 I am facing a weird issue where some of my CSS files are getting the following CORS error:Access to fetch at 'https://xxx.cloudfront.net/assets/_next/static/css/b1a6e83... | Nextjs static files CORS issue - Causing links to break on version 10.1.4 |
I've exeprienced the same issue and the main problem for me was sublime-text not able to edit the files owned by root. So my solution was to use sublime-text as root for I could comfortably edit any project files. To do this execute in your shell:
gksu subl
That solved my problem. Hope it solved yours.
UPDATED
Ok. I ... |
I'm experimenting with Ruby on Rails and Docker, following this tutorial. In Build the Project section You can see that Rails scaffold is run with
docker-compose run web rails new . --force --database=postgresql --skip-bundle
And immediately after, the:
sudo chown -R $USER:$USER .
To get access to generated files, ... | Rails scaffolding with docker and file ownership |
Can you post the error received when you are trying to deploy and refer to this officialdocFrom the above official doc you will learn how to deploy and configure
cert-manager on Google Kubernetes Engine (GKE). You will learn how to
configure cert-manager to get a signed SSL certificate from Let's
EncryptCreate a Kubern... | How to deploy cert manager in gke? How to create ssl certificate for ingress?I try to deploy but getting errorHow to deploy the cert manager in gke and create ssl certificate for ingress? | Getting error while deploying cert manager in gke |
0
I strongly recommend you to keep track of user's data on your server.
That way, even if the user deletes the app, the data will still be available after retrieving it from the server. Also, this will make you able to sync the same data between different platforms, not ... |
I have implemented in-app-purchases like Mission packs or "full version" before. However, I am now looking into selling in-game credits.
What are some ways of keeping track of spent and total credits, even after removing and reinstalling the app
Is it common to sync these totals between the different iOS devices of ... | Backing up in app purchases like gold or credits |
When I hit your site, it does appear as ifmod_rewriteis working, things are just kinda off.Whether I hithttp://www.mommy-info.com/about.phporhttp://www.mommy-info.com/about/I am presented with the same content,This can be seen with$ curl http://www.mommy-info.com/about/ | md5
1105b8f6dbf1a2c52bddd8e5f9046653
$ curl ht... | My htaccess isOptions -Multiviews
RewriteEngine On
RewriteBase /
# Force search engines to use www.mommy-info.com
RewriteCond %{HTTP_HOST} !^www\.mommy-info\.com$
RewriteRule ^(.*) http://www.mommy-info.com/$1 [R=301,L]
# Specify search friendly URLs
RewriteRule ^about/$ /about.php [L]I've saved it, but it's not rew... | Why is my .htaccess file not working in cPanel? |
The two rules you wrote are the same. Try this for the secondRewriteCond %{THE_REQUEST} /dveri\?start=14$
RewriteRule ^ https://anothersite.ru/blog/? [L,R=301] | I need to write two redirects:Fromhttps://site.ru/dveritohttps://anothersite.ru/dveri-iz-dereva/Fromhttps://site.ru/dveri?start=14tohttps://anothersite.ru/blog/I wrote two rules in htaccess:#1RewriteCond %{THE_REQUEST} \s/+dveri[?\s/] [NC]
RewriteRule ^ https://anothersite.ru/dveri-iz-dereva/ [L,R=301]#2RewriteCond %{T... | How to redirect almost similar links? |
If this is a one-time operation, useatcommand scheduler to remove thecronentry at a later time.DESCRIPTION
at and batch read commands from standard input or a specified file which are to be executed at a later time.$ at -f "/usr/local/etc/remove-cron-entry.sh" 6:30 PM "2018-02-10"Above will use-foption to read... | It is straightforward to execute a task for every 6 hours using the following cron pattern :* */6 * * *Is it possible to stop the above cron job on particular date, say,2018-02-10? | How to tell a crontab to expire on particular date? |
So the problem turned out to be permission-based. The CloudWatch config wizard defaults to using cwagent as the user that runs CloudWatch, this is also reiterated in official guides.Changing the running using to root resolved the issue even though the files in question all had 777 permissions at the time of trying to g... | I am trying to send two lots of logs up to CloudWatch.Here are the two logs:/var/log/apache2/access.log/var/log/apache2/error.logI used the amazon-cloudwatch-agent-config-wizard to create the config file, and here is a snippet of the file showing the correct file path:"collect_list": [
{
"file_path": "/var... | Cloudwatch agent not sending logs to cloudwatch |
if the log format is always the same, you can use this pattern:info: %{GREEDYDATA:text}$In your examples, it will create a field named text with this values:authentication successful...
external apiresponse time: 3 ms
{"path":"/route1","originalUrl":"/media/auth/route1?id=601&userId=9e2681-a188-4978-94b0-04c1d50ad056",... | This is first time i am using grok filter , what i want extract useful keys from my log.I am not able to create grok pattern.I have access.log file and I use logstash to put log data in elsticsearch.Sample logSeptember 6th 2020, 10:30:37:759 am [f657a07c-8c62-46ee-78a3-e7c2a04328b0] info: authentication successful...
S... | not able to use grok filter properly to find useful info from my log file to be pushed in elastic search : logstash |
Create an executable hookpost-checkoutin/foo/hooks/.A sample:#!/bin/bash
git remote add upstream <url>When you are going to clone a repository and you want theupstreamto be automatically configured, add an option to specify the hook path:git -c core.hookspath=/foo/hooks/ clone <url>So thatpost-checkoutunder/foo/hoo... | I have a repository I with two different remotes:originandupstream. However every time I clone the repository I have to manually configure theupstreamby:git remote add upstream <url>Is there a way to configure a git repository such that its already configured withupstreamupon cloning ? | Git: Automatically configure remotes when cloning |
4
The APIC address is a physical memory address, but you are trying to access it as a linear memory address - that's why your first approach doesn't work. The memory is marked as "reserved" precisely because it belongs to the APIC, rather than real memory.
You should use t... |
I'm trying to play around with the local APIC functions in the 2.6.32.40 linux kernel, but I am having some issues. I want to try to send a Non-Maskable Interrupts (NMI) to all of the processors on my system (I am using a Intel i7 Q740). First I read the documentation in Intel's Software Developer's Manual Volume 3 ... | Help with APIC functions in Linux |
You will have to persist the value of the variable to a non-volatile source between calls to the script. Furthermore, you'll have to consider race conditions if (as is often the case) the script can be called at almost the same time.The best bet for this, is to store your variable in a database that maintains transact... | Is it possible to increment a variable or array by 1 each time the script is executed.An example would be, I execute the script and it sets a variable to$increment = '1';I then close the script and come back 30 min later to execute the script again.This time the variable needs to be$increment = '2';The script will be r... | PHP function to increment variable by 1 each time script is executed |
The SSL certificate will do the trick as long as it can be validated. That means that the root certificate of the certificate chain needs to be within the trusted certificate store of the browser.Furthermore, the certificate will have to be for the right address (URL), must not be revoked, CRL's and OCSP must be config... | I am developing browser extension, that sends some data from currently browsed page to my backend server. User is aware of it, it is intended.I don't want to cause any user-data exposure, when the user is e.g. on unsecured wifi. So I just want to ensure, the data and the url goes over the net encrypted and only my back... | StartSSL just for encrypted data transfer |
0
You could check the effect of git add by using:
man git add
git add [-n] [-v] [--force | -f] [--interactive | -i] [--patch | -p]
[--edit | -e] [--[no-]all | --[no-]ignore-removal | [--update | -u]]
[--intent-to-add | -N] [--refresh] [--ignore-... |
I have an appengine connected android project, so that the project consists of two directoris: CatProj and CatProj-AppEngine. Instead of having the two in the eclipse /workspace I put them in cats directory. Anyway, I create a git account and buy micro level so I can save private projects. Now I am following the instr... | creating git repo from existing dir with content |
Check the size of the batches you're passing in todev_stepcompared to the size of batches you're running intrain_step. You may have to evaluate the test set (which I guess is the same asdev?) in batches as well. | I'm using theDenny Britz implementationofYoon Kims CNNfor sentiment analysis in slightly modified form (I added the word2vec approach, so that the weight matrix is not calculated from scratch).With small datasets (like 10MB) it works fine, but if I try to train on datasets of size >50MB (still not very large) my GPU ru... | GPU runs during the dev step out of memory |
I would fetch proposed changes directly:git fetch -f[email protected]:user/repo.git branch:tmp/remote-user-branchand then mergemasterwith thetmp/remote-user-branchwith regulargit merge-fis required to forcibly overridetmp/remote-user-branchif it exists already | I handle a lot of github pull requests all day long and use the following pattern to checkout associated branches in order to test the changes:git checkout -b user-branch master
git pull[email protected]:user/repo.git branchNow sometimes the developer who made the PR amends some revisions and I would like to reset my l... | Git - How to reset local branch to remote branch without adding a remote |
My question might have been abit vague, but I wasnt sure myself what happened. I solved it by finding .git/config file on my laptop using Windows search , and deleting it. Then I deleted content of my github folder and cloned the repo again and it worked after :)
|
Im using GitHub on Windows and after working fine for the whole time, when I opened it today, it says:
Failed to load commit history for this repository. You might need to
open a shell and debug the state of this repo.
And then:
Failed to get list of branches.
When I open shell and try git status or whatever ot... | GitHub error "fatal: bad config file line 1 in .git/config" when in git shell |
Found a solution using simple bash script, so I didn't even alter the template.#!/bin/sh
cat > /etc/sphinxsearch/sphinx.conf
for LOCALE in ru en de ;
do
sed "s/{{ locale }}/${LOCALE}/g" ./template/index.conf.template >> /etc/sphinxsearch/sphinx.conf
done | We have been usingansibleto set up application, but now we're moving todocker, so I have a question about generatingsphinx.conf(or any text file) from template.I have template like this forjinja2(which is supported inansible):{% for locale in locales %}
answers_{{ locale }}
{% endfor %}Andlocalesvar which is defined by... | Templating config file with docker |
After investigating my service withkubectl describe svccommand. I fogure out that my service has noEndpoints- endpoints section should list pod's IP.$ kubectl describe svc cge-frontend
Name: cge-frontend
Namespace: default
Labels: app=cge-frontend
Annotations: <none>
Selector: ... | I deployed my application using deployment construct. State of my pod isRunningand makingcurlagainst pod's IP returns application content. However when I created service usingkubectl expose deploymentand Icurlservice's IP then curl throwsConnection refusederror. Why is that?My podNAME READY ... | Kubernetes service created via exposed deployment is not responding to curl |
23
You have to escape the % character. man 5 crontab says:
Percent-signs (%) in the command, unless escaped with backslash (\),
will be changed into newline characters, and all data after the first %
will be sent to the command as standard input.
Sh... |
I can see that this is "usual" error, but can not find solution in my case...
Running Crontab job with:
expr `date +%W` % 2 > /dev/null && curl https://mysite.com/myscript
It causes errors:
/bin/sh: -c: line 0: unexpected EOF while looking for matching ``'
/bin/sh: -c: line 1: syntax error: unexpected end of file
Ca... | Running cron job creates an error unexpected EOF while looking for matching ``' |
Cron could be running it in a different python version / environment. I'd do both of what Spinor8 and Dan-Dev said, and I'll explain why.As Spinor8 said you could log the python verison at the head of the program.Here's a great link explaining how.As Dan-Dev said you should define the path to the python that you want t... | glad that someone can help.The python script (a.py) run well inserting into Mysql (mydatabase/table1) from Terminal but mysql (mydatabase/table1) not able to be inserted or updated when run as cron job.a.py parse all *.htm files in documents directory and the result lst_url insert into mydatabase/table1 field lst_url.a... | MAC | Python Script Run Well Inserting Into Mysql table at Terminal but Not Working Running as Cron Job | MAC |
logrotatewill only run the scripts (prerotate, postrotate, firstaction, lastaction) if at least one log file has been rotated. Bootstrapping the process by running backup.sh once would work, but if it were to fail in the future you would have no new backups until you intervene.I would create a separate logrotate config... | I have a backup script (backup.sh) that ssh's into another machine, compresses a file, and then scp's this file (backup_data.tar.gz) back to my local machine. I also have a logrotate file on my local machine:/opt/backups/backup_data.tar.gz {
nocompress
daily
rotate 7
extension .tar.gz
missingok
... | logrotate: can you run postrotate even if log isn't rotated? |
From man curl:
--snip--
-m, --max-time <seconds>
Maximum time in seconds that you allow the whole operation to take. This is useful for preventing your batch jobs from hanging for hours due to slow networks or links going down. Since 7.32.0, this option accepts decimal values, but the actual timeout will decre... |
I have found following in crontab
* * * * * sleep 5; curl -s -m 10 http://url > /dev/null 2>&1
* * * * * sleep 10; curl -s -m 10 http://url > /dev/null 2>&1
* * * * * sleep 15; curl -s -m 10 http://url > /dev/null 2>&1
* * * * * sleep 20; curl -s -m 10 http://url > /dev/null 2>&1
* * * * * sleep 25; curl -s -m 10 http... | whats the meaning of curl "-s" and "-m" |
What you are describing isstatefulworkload, where each instance of your application containstate.Normalworkload in Kubernetes isstatelessand deployed withDeploymentandReplicaSet. However, Kubernetes now hassomesupport forstatefulworkloads by usingStatefulSetIt may be possible to implement your use case, but it depends.... | I have multiple pods of the same app deployed using Kubernetes. The app manages multiple 'Project' objects. When Marry is working on 'Project 1' on pod-01, Tom logs on pod-02. Here is the requirement, if Tom tries to open 'Project 1' on pod-02, we need to route him to pod-01 where 'Project 1' is already open by Marry. ... | Route multiple users to a specific Kubernetes pod based on the data they access |
0
The IBM object storage currently does not have all the options as AWS S3, the valid API operations are listed here https://ibm-public-cos.github.io/crs-docs/api-reference
As you can see there is not support for control cache
Share
Improve this answer
... |
I did upload an object with Cache-Control as parameter and it does not take effect in object storage bucket but it does in AWS S3 bucket using the same code:
$s3Client->putObject([
'ACL' => 'public-read',
'Bucket' => config('filesystems.disks.object-storage.bucket_name'),
'CacheCont... | Storing object with Control-Cache header in object storage is unachievable |
merged:2021-07-01..2021-08-01mergedqualifier shouldn't be used twice as that won't be a valid query.This query should work for you:is:pr review:approved reviewed-by:user merged:2021-07-01..2021-08-01 archived:false is:closed | I'm usinghttps://github.com/pullsto run some queries to find PRs reviewed by team members following examples athttps://docs.github.com/en/search-github/searching-on-github/searching-issues-and-pull-requestsThis is what I'm using right now,is:pr review:approved reviewed-by:user merged:>=2021-07-01 archived:false is:clos... | How to use Github search for pull request within a time range |
You can use this rule:Options +FollowSymLinks
RewriteEngine On
RewriteBase /
# external redirect from /category.php?id=name&phrase=something to /name/something
RewriteCond %{THE_REQUEST} \s/+category\.php\?id=([^&]+)&phrase=([^\s&]+) [NC]
RewriteRule ^ %1/%2? [R=302,L]
# skip files and directories from rewrites
Rewri... | Say if I had a url that looked like:localhost/category.php?id=name&phrase=somethingWhat .htaccess rewrite rule code can I use to make it look like:localhost/name/somethingThe following is what my .htaccess file currently looks like:Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCon... | How to use 2 Passed Parameters to Change URL With htaccess? |
The problem is the file index.php is in the same directory as htaccess and is included and handled by the rewrite. Try adding rewrite conditions:RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-dAlso, the input you are passing to the id paramater is very insecure. Assuming you use numeric ids, you ... | I'm trying to do the basic mod_rewrite clean URL trick, where/category/itemrewrites to/category/index.php?id=item. In the/categorydirectory, I have this in my .htaccess file:Options +FollowSymLinks
RewriteEngine on
RewriteBase /category/
RewriteRule ^(.+)$ index.php?id=$1 [L]It sends the request to theindex.phpscr... | Rewrite redirects the simple regex to base file |
First, log in to the VM using the technique in thisarticle. Once logged in to a Unix shell, execute:cd /var/lib/kubeadm/manifests.. then edit thekube-apiserver.yamlusing an editor such as:vi kube-apiserver.yamlAdd a new line,--v=4in thespecsection that determines the command:spec: ... | When running Docker for Windows, the level of detail in the logs forkube-apiserveris relatively low. Since the k8s node is hosted in a VM it is not obvious where to make changes to the default configuration. | How do I increase log verbosity in Docker for Windows Kubernetes API server? |
According toman 7 signal, signal 25 isSIGXFSZ, which means "File size limit exceeded".man 2 setrlimitsays this:RLIMIT_FSIZE
This is the maximum size in bytes of files that the process
may create. Attempts to extend a file beyond this limit
result in delivery of a SIGXFSZ signa... | Following error message is displayed when I try to clone a specific repository. This happened only when cloning that repository.remote: Enumerating objects: 991, done.
remote: Counting objects: 100% (991/991), done.
remote: Compressing objects: 100% (422/422), done.
error: index-pack died of signal 25, 60.96 MiB | 5.56... | Git clone: index-pack died of signal 25 |
On profile pages, the age of the account is shown for the first 30 days e.g. "Joined 2 days ago". Filling in other profile information such as location or company doesn't have any effect on this.Once the account is older than that the join date is no longer shown in the sidebar of the profile but will still be visible ... | Is it possible to hide the joined date of GitHub?
It seems to not appear on an old account, but it displays on a new account. | Is it possible to hide joined date of GitHub? |
ThirdPartyResources were namespace-scoped alpha objects in 1.2, and they are now cluster-scoped in 1.3 (see the1.3.0 Known Issues). Unfortunately, that means that a 1.2.x client will not know the right place to look for them (hence the 404 on the/namespaces/default/thirdpartyresourcespath).You can either wait for kubec... | I'm trying to create a new ThirdPartyResource as per Kelsey Hightowerskube-cert-manager guidebut I'm getting this error:Error from server: error when creating "certificate.yaml": the server could not find the requested resourceSomething interesting from the verbose log:POST https://104.155.48.255/apis/extensions/v1beta... | Cannot create ThirdPartyResource |
As is often the case, this error is often misinterpreted (maybe we should address this as a bug on the octave tracker already ;) )
>> 60000*60000
ans = 3.6000e+09
>> intmax
ans = 2147483647
>> 60000*60000 > intmax
ans = 1
I.e. the number of elements of the resulting 60000x60000 matrix is larger than the maximum in... |
I'm aware of the fact that there are 3 questions with a similar exception message. Unfortunately none of the questions is answered and the comments could not solve my problem.
I use Octave 4.2.1 in the 64 bit version on a Windows 10 System with 16 GB RAM in total and ~11 GB free during runtime.
When i try to multiply ... | Octave - out of memory or dimension too large for Octave's index type |
There are so calledquality gatesin Sonarqube which can be configured to fail the build if necessary.You will have to configure awebhookbetween Sonarqube and Jenkins so that you pipeline can ask for the quality gate status.
Further information can be found here:https://jenkins.io/doc/pipeline/steps/sonar/Note: Especiall... | I'm trying to write a pipeline as a code and in this pipeline I want to return the result of sonarqube analyze and do a filter if the general note is >=97 continue if it is less return a Notif in slack.
but how can I return a result a of sonarqube | return the results of sonarqube |
Are you encrypting, or hashing? If you are using md5 or sha1 hashes, an attacker could easily find a hash collision and make you slip on a banana skin. If you are encrypting without a random initialization vector, an attacker might be able to deduce your key after uploading a few hundred files, and encryption is prob... | My app users upload their files to one bucket. How can I ensure that each object in my S3 bucket has a unique key to prevent objects from being overwritten?At the moment I'm encrypting filenames with a random string in my php script before sending the file to S3.For the sake of the discussion let's suppose that the upl... | Amazon S3 creating unique keys for every object |
your secret name should be like : {clusterName}-es-elastic-userkubectl create secret generic my-cluster-es-elastic-user --from-literal=elastic=foobarsecret/my-cluster-es-elastic-user created$ cat <<'EOFTEST' | kubectl apply -f -
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: my-cluste... | I am using eck, and on every installation, the eck operator set a new password. Possible to fix the password to a constant value? anyone tried this? | Elastic cloud on kubernetes to set password to a constant value and not change on every installation |
It is not possible unless you use host networking inside the container. When you create a container, the container gets it's own network namespace. The loopback interface is accessible only to the processing running in the same network namespace i.e., the processes inside the container only and hence cannot be accessed... | I am running docker on mac and am trying to set up a development environment for an angular project in a docker container.My docker-compose setup currently looks like this:version: '3.7'
services:
dev:
build:
context: .
dockerfile: "${DOCKERFILE_DIR}"
working_dir: "${CONTAINER_DIR}"
ports:
... | Access localhost of Docker container |
2
If you want to put both master and develop branches from a new remote repo into the same folder, git read-tree can’t do that, especially you have the same .bowerrc file in master and develop branches. git read-tree command will refuse to overwrite component entries that a... |
Could really use some help here. I have created a repo and within that repo have done a subtree merge of different repos following these steps:
http://nuclearsquid.com/writings/subtree-merging-and-you/
So my structure looks like this:
Parent Folder
Component
masterbranch
Tests
testapi... | Merging remote repo via git fetch into another repo |
The three options are:1) Use a base tag (this will affect every relative URI on your page, including links, images, scripts, stylesheets and so on)<base href="http://yoursite/">2) Change all of your links to fully qualified URIs<a href="http://yoursite/yourpage.html">3) Use the "/" prefix to show that the path is relat... | I have successfully created rewrite rules to handle URLs likehttp://example.com/xyzhttp://example.com/xyz/http://example.com/xyz/abchttp://example.com/xyz/abc/Here is the mod rewrite & regex:Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
... | Mod Rewrite path issues |
I know in general, tasks should targeting at develop branch,That is mainly true for the populargit-flowworkflow. There is no "should" about it, andgititself has no opinion about how you use it.git-flowworks when you have just a single "next" release, if you pretty well know what goes into the next release, and if you u... | I have a simple question about git branching practice :Say there aremaster&developbranches. All feature development tasks are working on corresponding feature branches, targeting atdevelopbranch. (feature branch is branched off fromdevelop)I have tasks for the release of app version 1.0.0 , in the meantime, I have also... | Git branching practice with two release targets |
Thanks @jordanm for answering in the comments. I'm expanding into a more detailed answer.Theclientdocumentation contains a section called "Service Resource" that I had not noticed before.Highlighted the service resource in the table of contents:Clicking this heading shows me the methods and properties of an EC2 resourc... | I have learned thatboto3offers two levels of abstraction: a low-level API calledclientthat is a thin wrapper around the AWS HTTP API, and a high-level client calledresourcethat offers real Python objects. My question is, where is the API documentation for theresourceAPI?I found this:https://boto3.readthedocs.io/en/stab... | Where is the API documentation for boto3 resources? |
You can add this code for BASIC authentication inHttpPostobject:HttpPost request = new HttpPost("http://olbolb.org/Hihi/"+page);
request.setHeader("Authorization", "Basic " +
new Base64().encodeToString("username:password".getBytes("UTF-8"), Base64.DEFAULT) );ShareFolloweditedMar 17, 2014 at 19:23answeredMar 17, 20... | i've a locked php page (username and password) by .htaccess file, how can i do to connect to this php with my android application? My function to connect is :String conn(JSONObject json,String page){
String result = "";
String stringaFinale = "";
InputStream is = null;
final int TIM... | Connect to php page using .htaccess with android application |
Personally I find if you build in the container there's fewer surprises as slight differences between developer machines become irrelevant, but there's a case to be made for both approaches. Sometimes the container build is slower, so you have to settle for a sub-optimal situation.A build on your dev machine will have ... | I need to create a docker container for an Asp.Net Core application (though the idea is the same for any application in any language) and there are 2 different approaches from what I can see:From Microsoft docs:FROM mcr.microsoft.com/dotnet/core/aspnet:3.1
COPY bin/Release/netcoreapp3.1/publish/ App/
WORKDIR /App
ENTRY... | What is the practical difference between full build in Docker file versus only copying output from CI/CD? |
Thelabel_replace()insiderate()triggerssubquery processing, which may return unexpected results, since therate()starts working withcalculatedsamples returned fromlabel_replace()instead of raw samples stored in the database.MetricsQLat VictoriaMetrics (this is Prometheus-like monitoring solution I work on) provides more ... | In Prometheus sometimes we need to plot several metrics at onces (say, having name, fitting the same regex) like that PromQL query:{name=~"camel_proxy.*count"}and it works fine, the same labelset lines are plotted with the different names.When we want to plot the rate() of them, we face the error from the title:rate({n... | How to avoid "vector cannot contain metrics with the same labelset" error when plotting rate() from several metrics (same labelset, different names) |
Setting DOCKER_CERT_PATH to the location of ca.pem fixed it for me:export DOCKER_CERT_PATH=D:\\users\\me\\.docker\\machine\\machines\\default(This is from the docker bash shell)ShareFolloweditedMar 3, 2016 at 16:07answeredFeb 24, 2016 at 13:03andreaandrea49122 gold badges88 silver badges2727 bronze badgesAdd a comment| | I've moved my docker location from my C:\ drive to another drive. I did this initially by removing the docker machine (docker-machine rm) and creating a new one ($ docker-machine --storage-path "D:\users\me\.docker\machine" create --driver virtualbox default).I also set the environment variable MACHINE_STORAGE_PATH="D:... | Certificate errors after changing docker location on windows |
This is invalid syntax:
RUN sudo apt-get update &&
sudo apt-get -yf install &&
sudo apt-get install -y wget &&
sudo apt-get install -y git
If you want to extend a Dockerfile command across multiple lines, you need to backslash-escape the end of each line to be continued:
RUN sudo apt-get update && \
sudo apt-get -yf ... |
I'm running Vagrant 1.7.2, building a Docker image via the docker provider. My Vagrantfile looks like this:
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagr... | Building a Dockerfile with Vagrant and the Docker provider: multi-line command chaining returns error |
since you use the term "webservice" I assume that you are using HTTP as the transport layer. If you are using RESTful architecture for your webservices, all you need is a standard http caching proxy in-between your app and the services. | My application heavily uses webservices and doesn't use database atall. there is a webservice layer which gets data from database and sends it to php UI. so the phpUI doesn't directly interact with the databases. I want to improve the performance of this application what is a better approach to improve the performance?... | better way of caching webservice responses |
You need to modify your nginx_vhost file to allow arguments to be passed to Slim as required.
Taken from their Documentation:
server {
#.....
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
#....
}
|
I made a very basic slim app with just a basic hello world GET endpoint.
<?php
require 'vendor/autoload.php';
$app = new Slim\App();
$app->get('/hello/{name}', function ($request, $response, $args) {
$response->write("Hello, " . $args['name']);
return $response;
});
$app->run();
The /hello/world endpoint ... | Slim endpoint works with php's own server but not nginx |
Block storageis backed by block device. It can be physical disk or it can be network-attached device (iSCSI, FC or AWS EBS volume) or even Ceph RBD. In most cases pods don't need to work with raw block devices (with exception of Kube native storages like Ceph, Portworx) and Kubernetes instead creates filesystem on top ... | In the context of Kubernetes, I've come across the termsBlock Storage,File StorageandObject Storagebut I don't understand how they are really used (mounted) inside a container. I have a few questions,Are these all storage types backed by raw block devices?IsBlock Storagea term used to mean alogical abstraction of block... | How kubernetes block, file and object storage types are used inside containers |
Fromthe documentation:versionWhat version of the repository to check out. This can be the full 40-character SHA-1 hash, the literal string HEAD,a branch name, or a tag name.(emphasis mine)ShareFollowansweredOct 31, 2015 at 9:58JB NizetJB Nizet685k9292 gold badges1.2k1.2k silver badges1.3k1.3k bronze badges1Note: the do... | I am using ansible to deploy my app. I am cloning the app from github using the following:- name: Deploy site files from Github repository
sudo: yes
git:[email protected]:xyz/abc.git dest=/home/{{deploy_user}}/{{app_name}} key_file=/home/ubuntu/.ssh/id_rsa accept_hostkey=yes force=yesI want to clone a specific bran... | clone a specific branch from git through ansible playbook |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.