Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
alternative until i found a solution is to make it by terminalssh <HOST> "pg_dump -U <USERNAME> -W -h localhost -F c <DATABASENAME> | gzip -c" > ./backup.sql.gz | I have a running postgresql server on amazone ec2. I connect with pgAdmin3 to it over ssh tunnel directly configured in pgAdmin3 from my mac.
I can make queries and see the full schema, no problem about that.If I try to make a backup of the database (from pgAdmin3 GUI) then I get (even if the connection is actually ope... | pgAdmin3 backup over ssh tunnel |
No, S3 Static Websites are 100% client side code. So it's basically just html + css + javascript being delivered, as-is from S3. If you want to get dynamic content into your website, you need to look at calling an API accessible from your user's browser, i.e. from the internet.
AWS API Gateway with Private Integratio... |
I've read through quite a few pages of documentation and other StackOverflow questions/answers but can't seem to come across anything that can help me with my scenario.
I'm hosting a public, static site in an S3 bucket. This site makes some calls to an API that I have hosted in an EC2-instance in a VPC. Because of thi... | Can an AWS S3 Static Site access REST API in VPC? |
I struggled to get this working, until I discovered that the Sub function doesn't appear to be available in ebextensions: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/ebextensions-functions.html
This means that you need to fall back to Fn::Join and Ref, at least until support for Sub is introduced to ebextens... |
We are trying to store environment specific application configuration files in s3.
The files are stored in different subdirectories which are named after the environment and also have the environment as part of the file name.
Examples are
dev/application-dev.properties
stg/application-stg.properties
prd/application-... | AWS Elastic Beanstalk: How to use environment variables in ebextensions? |
Don't get hold of it as instance variable of the servlet. Create aServletContextListenerwhich stores it in the application scope and runs a thread which updates it on every interval with help ofScheduledExecutorService.E.g.@WebListener
public class Config implements ServletContextListener {
private ScheduledExecut... | I have a servlet that pulls data from a text file during initialization.
Now I am updating that text file with a cron job(say everyday at 10am) and want to reinitialize the servlet every time this particular file changes.Second approach I can follow is to sync the reinitialization of the servlet to my cron job.Kindly ... | how to re-initialize java servlet on text file change |
RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_HOST} !^217\.20\.17\.210
RewriteCond %{REMOTE_HOST} !^123\.123\.123\.123
RewriteRule (.*) http://google.com/$1 [R=301,L]Added to allow123.123.123.123doesn't work for you?As an alternative, you could try just using theAllow/Deny in mod_authz_host, such as:Order Deny,Al... | Hey guys I want to allow certain ip's to access my webpage, I have it working for one ip but I want to add another how would I go about this.# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_HOST} !^217\.20\.17\.210
RewriteRule (.*) http://google.com/$1 [R=301,L]
RewriteCond... | htaccess specific ip |
I don't think there is a simple answer.Caches work with areas of memory calledcache lines. For modern Intel CPUs a cache line has 64 bytes, and this is what the cache will operate on (load, store). So it won't probably load all you array to cache, even though it fits.There is a separate L1 caches for data and instructi... | As far as I know, in theory if I store data in continuous memory, for example an array, when the first element of the array is read by cpu, because of striding, cpu can load the entire array to its L1 cache(if the array can fit in L1 cache), therefore reducing cache miss when reading the other array elements.But what i... | will storing pointers in array benefit from CPU cache speed up? |
1
add to nginx conf
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
Share
Follow
answered Oct 5, 2019 at 2:15
DenisDenis
1111 bronze badge
Add a comment
|
|
I've recently migrated a WordPress site:
From: Mamp Pro / Apache / PHP 5.6.32 / MySQL 5.5.38
To: Mamp Pro / Nginx / PHP 7.0.14 / MySQL 6.5.38
One issue I've been having is in the WP 'Add New Post' screen, I'm getting a 502 (Bad Gateway) error in the console log coming from wp-admin/admin.ajax.php.
Does anyone know how... | Mamp Pro Nginx 502 Bad Gateway in WordPress admin-ajax.php |
I have made a few changes to get relative file path then combine it with source dir, using file class for file deletion etc..
I have changed the order to file deletion first ,otherwise it will cause consistency issue of file not found because folder was deleted before that in some scenario (as you are getting files li... |
I am trying to make a program to backup my files. I have the copy portion working already but I would like to delete any directory or file not present in the source directory from the destination directory.
I am thinking something along the lines of:
// Get existing files in destination
string[] existingTargetFiles = ... | Delete file in target directory only if not present in source directory |
Don't think of image processing as a remote procedure call, where there's a request and a response -- think of it as a series of tasks being performed by the different components in your distributed system. Solve this problem with two queues:uploaded-imagesandprocessed-images.A web server accepts the image, puts it in ... | Image processing system.User uploads a photo to the S3. Image processing application takes the photo from S3 and starts processing on it and returns an output.Process:Webserver is sending SQS message with info of image to the queue, and the Image processing Server gets the SQS message and starts processing over this im... | Amazon SQS queue: getting a response from queue |
According tonginxdocumentationthere is no syntax for NOT matching a regular expression. Instead, match the target regular expression and assign an empty block, then use location / to match anything elseSo you could define something likelocation ~ (dir1|file2\.php) {
# empty
}
location / {
rewrite ^/(.*) http:... | How do I set alocationcondition in Nginx that responds to anything that isn't equal to the listed locations?I tried:location !~/(dir1|file2\.php) {
rewrite ^/(.*) http://example.com/$1 permanent;
}But it doesn't trigger the redirect. It simply handles the requested URI using the rules in the rest of the server conf... | Nginx location "not equal to" regex |
2
git rebase will linearize your commit history before your merge commit 18bc0ad. That is why it is missing. git rebase has a --preserve-merges switch that you probably know, but I advise against using it.
In your case I'd say it's best to keep the history as-is. From my ex... |
I have a history on my repository like so:
Now I want to fix those 3 commits where my partner did not correctly author it, i've done this before using this answer as a guide. So since I want to change those 3, I figured I would rebase at face866, so I run
git rebase -i face866
But something weird happens, this is the... | Git rebase to previous commit gives wrong list of commits |
1
LocalDB isn't supported to run on Linux. Despite you can run it on your Win PC, but on Docker you run with Linux OS. At this time, Microsoft didn't support to bring LocalDB outside Windows. So you need to change LocalDB to SqlLite if you want to run it on Docker.
It is st... |
I have asp.net core web API project with entityframework ORM connecting to localdb. API works fine if I publish it and run locally. But if I move the published code to a linux container, the API is up and running but it cannot create localdb connection throwing the following error.
System.PlatformNotSupportedExceptio... | cannot connect to localdb from docker container |
The solution was to run crontab with my starting script runningnohup /home/ubuntu/folder/start_server.sh > nohup.outinstead of justnohup /home/ubuntu/folder/start_server.sh& | Im going to have to run a nohup command that will run for months and generate tons of logs, so I want to write the nohup.out file to a directory that contains the rest of the code.
My simple script to execute on every startup is:sudo su ubuntu
cd /home/ubuntu/folder
nohup /home/ubuntu/folder/start_server.sh&If I do a c... | How to run nohup on boot while writing nohup.out to a selected directory |
1
the common practice of loading external images on android is to down sampling the image according to the size of the hosting ImageView.
steps:
1, download the original image.
2, use BitmapFactory.decodeFile(filePath, options) method to get the width and height of the im... |
I'm creating a Drawable from an http stream by doing the following.
HttpClient client = new DefaultHttpClient();
HttpGet get = new HttpGet(url);
HttpResponse response = client.execute(get);
InputStream is = response.getEntity().getContent();
Drawable drawable = Drawable.createFromStream(is, "off... | Android Drawable.createFromStream allocated too much memory |
My HD7970 (3GB version, Sapphire GHz edition) reports 2GB of free memory too. It is quite normal to reports less memory than the total amount (OS and driver have to reserve some memory) however your value looks really too low for a 6GB version.
On older AMD drivers was possible to set the amount of memory reserved to ... |
I'm testing some OpenCL image processing on an AMD HD 7970 (Sapphire GHz edition). This particular card has 6GB of RAM onboard, however this call:
clGetDeviceInfo(device, CL_DEVICE_GLOBAL_MEM_SIZE, sizeof(buf_ulong), &buf_ulong, NULL);
returns a value of 2,147,483,648.
Is there an issue with this OpenCL call for ret... | AMD 7970 reporting incorrect DEVICE_GLOBAL_MEM_SIZE |
+100They are similar, but there is a slight difference. Looking at the MSDN documentation for theOutputCacheProviderclassSet- "Inserts the specified
entry into the output cache,
overwriting the entry if it is
already cached"Add- "Inserts
the specified entry into the output
cache."The remarks for "Add" go on to say"If t... | I am checking out the OutputCacheProvider in ASP.NET 4.0 and using it to store my output cache into the MongoDb database. I am not able to understand the purpose of Add method which is one of the override methods for OutputCacheProvider. The Add method is invoked when you have VaryByParam set to something. So, if I hav... | .NET 4.0 Implementing OutputCacheProvider |
Just create a new git repository based off of the forked content:# After forking repo:
$ cd /path/to/repo
$ rm -rf .git
$ git init
$ git add .
$ git commit -m "Initial commit (forked from parent/repo)"
$ git remote add origin[email protected]:forked/repo
$ git push origin masterAfter removing and recreating the git rep... | So what I am trying to do is fork one of my own repositories on Github. Github does not allow you to do this easily on their site, so I did it this way:http://bitdrift.com/post/4534738938/fork-your-own-project-on-githubThis works out great but when I commit the newly forked repository, all of the past commits show up ... | After cloning/forking a github repo, is there a way to push only new commits? |
1
To exclude URL from the basic authentication of nginx, need to add in your nginx conf something like:
location /sample/ {
auth_basic off;
}
Share
Improve this answer
Follow
edited Nov 9, 2017 at 14:11... |
Am implementing basic authentication on my Ubuntu server. I want to except url and all it follows. example, the url i want to except is sample.com/sample/ and all of it follows like sample.com/sample/1, sample.com/sample/2, sample.com/sample/samdsFFGRwd12, sample.com/sample/FHFEdsa1g65
How to make this possible?
| nginx basic authentication on all pages except a specific URL and it's follow |
I can't figure out what makes the difference, but this combination of Dockerfile and bootstrap works.
#!/bin/sh
set -euo pipefail
source "$LAMBDA_TASK_ROOT"/"$(echo $_HANDLER | cut -d. -f1).sh"
while true
do
# Request the next event from the Lambda runtime
HEADERS="$(mktemp)"
EVENT_DATA=$(curl -sS -LD "$... |
I am trying to create a docker image to run a shell script as aws lambda function. As far as I understood, I need a runtime and a handler.
The default runtime (bootstrap) looks like this:
#!/bin/sh
set -euo pipefail
# Handler format: <script_name>.<bash_function_name>
#
# The script file <script_name>.sh must be lo... | How to specify _HANDLER in AWS Lambda Docker Image |
In any language that provides a similar error, Java, C#, whatever, the message simply means that the type of the variable you are casting is already the type you're trying to cast it to. They're simply telling you to remove the cast, so that instead of:customerViewRootCrm4tModel = results[0] as CustomerViewRootCrm4tMo... | Why is SonarQube giving this error and how could I fix it?Remove this unnecessary cast.Promise.all([
this.customerViewCmr4tProvider.getData(activeNumber),
this.customerBillManagementProvider.getData(individualPublicId, billingAccountId, false),
this.agreementProvider.getData(this.activeCustomerServiceProvider.get... | SonarQube displaying "Remove this unnecessary cast" |
1
docker run --net=host ... might solve your problem, but generally it is not possible.
Share
Improve this answer
Follow
answered Mar 22, 2016 at 17:36
dohntodohnto
58455 silver badges1313... |
I'm using a multi-machine Vagrant setup, and one of the VMs is a docker host that runs some containers built with custom Dockerfiles.
Each one of the container is different, and exposes some ports to the host. Can I force a port mapping directly in the Dockerfile, instead of having to set the mapping with the docker r... | Is it possible to set docker port mappings to host in Dockerfile? |
I agree with the comment however the images can be found at/var/lib/docker/aufs/diff/<id>where is the id of the container which you can find usingdocker inspect <container-name> | grep Id | How can I get the root folder info for theaufssystem underlying the docker container?Say I rundocker run mytag echo 'Done', after that, I believe docker will have an abandoned container built on top ofaufssystem. And I want to make use of thataufsfile system (say with chroot) without doing adocker saveordocker export.H... | docker, where is the aufs root for the docker container |
2
Yes, there is such command -
RESTORE DATABASE myDatabase
FROM DISK = N'E:\Backups\myDatabase.bak;'
But you can check restoring using SSMS.
Share
Improve this answer
Follow
answered Jun 12, ... |
I have a file with a .bak extension.
How can I import this data into a database in SQL Server?
Any command to import data?
| How to import .bak file into SQL Server? |
You should be able to access this information through the GitHub Events API.
Syntax: GET /repos/:owner/:repo/events
Example: https://api.github.com/users/libgit2/events
This will return a JSON array of events. In order to discover who pushed to this repository, you'll have to filter those events and only examine tho... |
I would like to know, if it possible to find out who has pushed a new branch into a remote repository on GitHub?
The problem is that the branch was created by checking out from existing master branch's commit that was made by one developer, so when I select the new branch in "Code" tab I see that he authored the last ... | Is it possible to view who has pushed a new branch to a remote? |
Firewall is implicit deny by default. You just need to open the ports that you need.ShareFollowansweredJun 20, 2020 at 2:35Wilfred L.Wilfred L.17655 bronze badgesAdd a comment| | Closed. This question needsdetails or clarity. It is not currently accepting answers.Want to improve this question?Add details and clarify the problem byediting this post.Closed3 years ago.Improve this questionWill creating a firewall rule, say for allowing ingress TCP on port 80, deny any other ingress traffic in all ... | GCP Firewall rules [closed] |
the cache limit depends on the available system memory and on your worker process if running in 64 bits or 32 bits.
you will be able to use much more memory if running in 64 bits.
ASP.NET Cache will engage garbage collections and starts dropping cache when a w3wp process memory usage is greater than or equal to about ... |
I want to store up to 500 cache keys (one per user) using System.Web.Caching. The cached value wouldn't exceed an 11 character string (ie. 'Los Angeles')
string key = "Location" + userName;
string location = GetUsersLocation();
Cache.Insert(key, location);
Does this surpass the limitations of .NET caching or would th... | What is the limit of .NET Cache keys I can store? |
In a 64-bit system, object references are typically 8-byte long. But in recent JVMs from Sun/Oracle you can enableCompressed Oops, which reduce reference size to 4 bytes at the cost of a smaller limit on heap size. | A reference to an Object on a 32 bit JVM (at least on Hotspot) takes up 4 bytes.Does the 64 bit Hotspot JVM need 8 bytes? Or is some clever compression going on?
If not, everyObject[]would require twice as much heap memory, which I somehow think (hope, expect) is not the case.Update/extra question: Does this really mat... | Memory requirements of an Object reference on a 64 bit JVM |
Every remote defines two1 URLs. Let's look at their example:
$ git remote -v
origin https://github.com/schacon/ticgit (fetch)
origin https://github.com/schacon/ticgit (push)
[snip]
$ git remote add pb https://github.com/paulboone/ticgit
$ git remote -v
origin https://github.com/schacon/ticgit (fetch)
origin http... |
I'm trying to understand forking and contributing to project concepts.
While doing this used the command git remote -v; post setting upstream.
I've couple of related queries
1) what is the meaning of parenthesis (fetch) and (push). The closet answer I got post googling is in https://git-scm.com/book/en/v2/Git-Basics... | git remote -v output tags (fetch) and (push) for origin and upstream query |
You probably checked out a local copy of a branch (like origin/master) or a commit, and are in a detached state (which is in read-only mode).
Delete your local master branch with git branch -D master (or safely rename master branch with git checkout master; git branch -m save; git checkout 615668f)
Recreate master fr... |
Before I use to see my latest commit as master but now I only see the id.
e.g Nicholas ((615668f...)) MirrorMe
What I want
: Nicholas (master) MirrorMe
I've tried to change it using " git branch -m "master" but it says "fatal: A branch named 'master' already exists.".
My question is how do I make all my latest commit... | How to change current commit ID to master: git |
Git commits contain (among other information) 2 dates: the author date and the committer date. When you create a commit, both are at the same value. If you amend a commit, the committer date is changed. Github uses the committer date, which is why all the commits you amended are displayed at the date you amended them.... |
I have a local repository which I had to amend the last 57 commits in order to change the author (fix my email address). I did it this way:
// mark commits as 'edit'
git commit --amend --author="My Name <[email protected]>"
git rebase --continue
Then I forced a push to its Github repository. When visiting Commits Tab... | Commits history appears in one day only |
If youadd your colleague as a collaborator to your repo(no need for organization), he will be able to push to your repo.But he will push whatever he wants in any branch.Unless he is pushing in his dedicated branch, that can be dangerous.The other option is to ask him toforkyour repo.See "What is the difference between ... | I am looking to collaborate with another person, but not able to figure out how GitHub works. I have a private repository, and I have added him as a collaborator, but now what?Does he have to create a branch to which he will work separately?How will the merge take place?How will the merge take place? Who can merge the ... | How do I use collaboration on GitHub? So others can put their code without having access to the master branch? |
Answering a question like this is a little difficult, since the answer really depends on your app. If you're doing any heavy lifting, like image manipulations, then you'll need more memory in those situations.Having said that, from my experience optimizing a Laravel app on Heroku, I've found that a memory limit of64Mis... | developing with Laravel 5 some times I encountered errors like
Allowed memory size of .... bytes exhausted ... trying to allocate ...Usually I faced this kind of error along with long resultsets using Eloquent / Models or using Flysystem to upload large files
(sometimes chunking is not enough to have it solved, Lrvl'... | Laravel 5 is there a minimum/recommended php memory size, Required? |
You are going to need to use a module called fastcgi.
The docs are here FastCGI Module.
An example location
location / {
fastcgi_pass localhost:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/www/scripts/php$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fast... |
I have a .fcgi file that works with Apache, I just point the rewrite rules to the file and it does its job, but it seems Nginx is not able to work like this.
On Apache, I would just redirect the requests to the file. As from the original project .htaccess:
RewriteEngine On
RewriteBase /matrufsc
RewriteRule ^dispatch\.... | How to make Nginx spawn fcgi file |
1
You can't statically generate code which relies on window, because the window property is only available in the browser and the generation happens on a backend. In other terms - it's impossible to know the value of window.innerWidth at the time which you try to access it.... |
I have a component who is using window to calculate the width of the screen like this:
const CardComponent = () => {
const [width, setWidth] = useState(window.innerWidth)
it working fine, all of the test also its working in my local, but when i have deployed with actions github i am getting this error
failed Build... | When i deployed iam getting this error: "window" is not available during server side rendering |
tl;drNo. You can only run a single container per application instance.Longer AnswerMost of the answers are quickly pointing you to PKS, however Cloud Foundry itself is outside of that.Cloud Foundry runs each application via Diego. Each application runs as a standalone container on a diego-cell. This is different from K... | AKubernetes Podand anAWS ECS Task Definitionboth support multiple different container images: each instance of the pod / task will run all images as containers together.Does CloudFoundry support a similar concept to allow apps that consist of multiple, separate processes? | Does CloudFoundry support multiple containers per app? |
scheduler.getCurrentlyExecutingJobs() should work in most case. But remember not to use it in Job class, for it use ExecutingJobsManager(a JobListener) to put the running job to a HashMap, which run before the job class, so use this method to check job is running will definitely return true. One simple approach is to... |
How to check if scheduled Quartz cron job is running or not? Is there any API to do the checking?
| How to check whether Quartz cron job is running? |
If garbage collection is the solution, a simple GC.Collect is often unsufficient and, for performance reason, it should only be called if really required. Try the following procedure that calls the garbage when the available memory is too low (below the threshold provided as procedure parameter).internal static void Co... | I have have an application that has MVC template and uses REST .
Say I have a rest call made and it hits the particular methodvoid sample function() {
// connects to db through entity framework
// retrieves data and embeds in to list
//returns JSON of data received.
}So the problem here is I measured the me... | Out Of memory Exception in IIS |
Since your Values.dbCred spans multiple lines, you need to tell yaml that, by using the pipe character |. Check this out.https://yaml-multiline.info | I am new to Kubernetes and I was playing with it on Google Cloud. I was going through thegoogle-github-repoandstcox-gke-wordpressI am very confused as to what to provide for the secretcloudsql-instance-credentials. After going through some more documentation, I ended up creating a service account and downloaded the JSO... | Connecting Google Cloud SQL Credentials to Kubernetes Secret |
SetEnv msg_2 "%{ENV:msg_1} Second message"You will need to use mod_rewrite (orSetEnvIf- See@anubhava's answer) instead in order to set an environment variable using the value of another env var. Unfortunately,SetEnv(mod_env) andSetEnvIf(mod_setenvif) do not expand the value of env vars using the syntax%{ENV:varname}in ... | I can't find an answer for my question.Can I set an environment variable using another environment variable ?Example:SetEnv msg_1 "First message"
SetEnv msg_2 "%{ENV:msg_1} Second message"To be clear, I don't want to use%{ENV:msg_1}%{ENV:msg_2}.I wan't to use%{ENV:msg_2}.Is that possible, cause doesn't seems to work to... | htaccess set environment variable using another environment variable |
0
I'm not sure if this is all you wanted. But, here is the regex to match alphanumeric characters after '/'
Tested and works for both mysite.com/123456 and mysite.com/somename
/(?<=mysite.com\/)\w+/
Share
Improve this answer
Follow
... |
I have a new installation of wordpress that replaces an old site.
In the old site there was a dynamic referl for users
mysite.com/123456 or mysite.com/somename
Now I have to be able to intercept everything that exists after / then 123456 or somename to save it in a session variable or in a cookie, (I have full access... | Get url parameter and save variable or cookie |
1
You can run use -v to specify the volume against which you want your docker deployment to save your data. Two things you should keep in mind is, one is that the docker that you are running should be exposing the -v and using this to store its data (mongodb does this, and ... |
I'm have mounted 2 containers :
Mongo : as the database -> the volume is mounted on a specified path
docker run --hostname raw-data-mongo --name=raw-data-mongo
--network=our-network -p 27017:27017 -v data/db/raw-data-db:/data/db -d mongo
Nodejs: save some data to mongodb
docker run -d -p 80:3001 --name=raw-d... | docker volume : data lost when container is removed or stopped and then restarted |
0
See if this can help you to rethink the way I want to deploy back-end and front-end seperate apps on the same server with nginx
Like you may do
http {
server {
listen 80 default_server;
root /angular;
location / {
proxy_pass http:/... |
My question is about how to configure Angular to allow maplibregl to work behind an NGINX proxy used for local development.
This is my proxy to the Angular development server and the local API.
http {
server {
listen 80 default_server;
root /angular;
location / {
proxy_pass htt... | maplibregl in Angular gets CORS error behind NGINX proxy |
2
A pull request is not a git concept. It's something that sites like github or bitbucket use to refer to changes that are being developed on a branch to be carried into another. A branch in git is a pointer to a revision.
Share
Follow
... |
What's the difference between a "pull request" and a "branch"?
pull request
branch
| What's the difference between a "pull request" and a "branch"? |
When your lambda receives messages from MyQueue, the messages will go intoinvisibility mode, where it is not visible by others who also read the same queue.Normally, when your function successful processes the msg, the lambda service willautomatically remove the messagefrom the queue. However, if this does not happen, ... | When using SQS w/ Dead letter and Lambda , why do messages remain "in flight" for 5 min after lambda fails w/ runtime exception?I've created 3 resourcesMyQueue(configured to send undeliverable messages to MyQueueDLQ.Default visibility timeout:30 sec )MyQueueDLQLambda(retry attempts set to 0, timeout 30 seconds)I for so... | When using SQS w/ Dead letter and Lambda , why do messages remain "in flight" for 5 min after lambda fails w/ runtime exception? |
Set the environment variableGIT_SSL_CAINFOto your desired CA bundle file path, you could use a command like thatset GIT_SSL_CAINFO="C:\Users\265840645\Desktop\cert\rbc-ca-bundle.cer"thengit cloneshould work.or $env:GIT_SSL_CAINFO="C:\Users\265840645\Desktop\cert\rbc-ca-bundle.cer"
if you use PowerShellIt will only work... | git is managed by my company and I cannot modify the system config.I have set my global SSL certificate path usinggit config --global http.sslCAInfo "C:\Users\265840645\Desktop\cert\rbc-ca-bundle.cer"However, when I try git clone, git is still using the system config.fatal: unable to access 'https://huggingface.co/deca... | git using system rather than global config |
Helm is built on top of the Kubernetes API layer, in that it creates objects like Deployments and Services and stores its state in Secrets; but a Helm release is not itself a Kubernetes object and you can't directly use the Kubernetes API to access it.If your application is in Go, then Helm 3 includes aGo SDK, which es... | Is there a way I can get a list of all helm releases, and then all resources that have been created by this release, using the Kubernetes REST API?I mean something similar to helm and kubectl commandshelm listkubectl get all --all-namespaces -l=release-namebut using REST -https://kubernetes.io/docs/reference/generated/... | Get all resources created by a helm release using k8s rest API |
I solved this issue with run commands specified in deployment config:containers:
- name: redis
image: >-
centos/redis-32-centos7@sha256:7289ff47dd1c5bd24e6eefaf18cfbacf5ad68c0768f1b727a79c026bbef5a038
command:
- /opt/rh/rh-redis32/root/usr/bin/redis-server
... | I have successfully deployedRedis (persistent)image on my OpenShift installation. Now I want to persist the Redis configuration, and I have followedthisinstructions.However, the Redis is started with this command inside a container:/opt/rh/rh-redis32/root/usr/bin/redis-server *:6379I see that itshould be started with t... | OpenShift and persistent Redis config |
I found it was the post-receive file that had wrong path. It should be:#!/bin/sh GIT_WORK_TREE=/var/www/html git checkout -fnot#!/bin/sh GIT_WORK_TREE=/var/www git checkout -fDumb mistake is all!! | I'm having no luck pushing my application files to my digital ocean server. I can successfully push master to the server but it goes into the wrong folder. All files are invar/wwwfolder but it should bevar/www/htmlI don't know what to change to make sure the files get committed tohtml.Here's what I have in terminal:and... | Pushing git repo to digitalocean ubuntu 12 server |
What you need to do is change the project name. By default, compose uses a project named based on the current directory. In your case, you want separate environments, so you need different project names.You can use eitherdocker-compose -p <project_name>or setCOMPOSE_PROJECT_NAMEin the environment.There is also some di... | I understand that you can user docker-compose with the scale command to spin up multiple containers. However, they will all have the same configuration used.Is it possible to launch a container on the same host with different configurations (different.ymlfiles) on the same host?Using the following commands:docker-compo... | Using Docker-Compose to spin up multiple instances of a container with different configurations |
The question does not really contain enough information to give a definitive answer, but you might want to take a look atbloom filters. | I am currently writing a message queue that will require me to keep a history of the messages the server has already seen. I have unique, fixed-size ID fields for each message, which makes it trivial. However, I am concerned about the long-term prospect of storing the ID of every message, and later, the latency in comp... | Storage algorithm for comparison against multiple, arbitrary values |
Reduce your retention time or reduce your number of time series. | Prometheus deployed on kubernetes using prometheus operator is eating too much memory and it is at present at ~12G. I see/prometheus/waldirectory is at ~12G. I have removed all*.tmpfiles but that couldn't help.
Unable to figure out the solution for this problem. Any suggestions ?? | prometheus eating huge memory |
git clone --barehttps://github-dev.assr.com/assr-ghactions/setup-java.gitgit push --mirrorhttps://github-qa.assr.com/assr-ghactions/setup-java.gitShareFollowansweredFeb 1, 2022 at 21:55Ajay ChinthapalliAjay Chinthapalli2133 bronze badges13Welcome to Stack Overflow! While this code may solve the question,including an ex... | We have two hosted GitHub enterprise servers on VMWare servers in a distinct location. We would like to copy all master branch from one GitHub enterprise server to another GHE (maybe every day once). Also, we need to configure alerts to notify in case of copy failure, network issues, etc.Could you please help me to imp... | Copy the entire master branch from one GitHub enterprise server to another GitHub enterprise server in a different location |
I solved the problem on my own.The problem was that I was just working on a wrong directory which has nomy-mailmapfile.I was confused with re-creating a couple of clone copies of the repository for trial and error.
After I changed the correct directory and tried the command again, it succeeded.I'm sorry. | Continued tomy previous question, I need to usegit filter-repoin order tomodify the Author name and Comitter nameof some of the commits recorded in my repository's log .But I have some troubles about this.The problemI have a file namedmy-mailmapin the directory of my local repository, which is formattedCorrectName <[em... | git-filter-repo doesn't read my mailmap file |
Recent docker has added theimage prunecommand so this task only requires a single invocation of dockersudo docker image pruneFor thesudoproblem, bothdockercommands requiresudootherwise thedocker imageslist will run first as your user.sudo docker rmi $(sudo docker images -f "dangling=true" -q)Sometimessudodoesn't work p... | How can I remove dangling Docker images? I triedsudo docker rmi $(docker images -f "dangling=true" -q)but it showsGot permission denied while trying to connect to the Docker daemon
socket at unix:///var/run/docker.sock: Gethttp://%2Fvar%2Frun%2Fdocker.sock/v1.35/images/json?filters=%7B%22dangling%22%3A%7B%22true%22%3... | How to remove dangling images in Docker |
LABELsets image-level metadata, so it will be the same for all containers created from this image.If you want to override a label for a container, you have to specify it using a special--labelkey:docker run --label GROUP=mygroup nginx:test_labelCurrently you're passing the environment variable to the container during r... | I need to pass an environment variable as LABEL in Dockerfile, my Dockerfile looks like below:FROM nginx
LABEL maintainer="blabla"
ENV GROUP="default"
#Checking if Label values can be set from ENV Variables
LABEL group="${GROUP}"below command to pass the build and run the docker file env variable:docker build -t nginx:... | Passing a ENV variable for LABEL in Dockerfile |
You need to set the var folder permissions as suggested bythissymfony article.Run the following commands in your project directory and you will not come across any permission related issues on cache and logsHTTPDUSER=$(ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cu... | I got this continuous error with cache. Something with permissions but I can't figure what's going on. In my local environment when I go aphp bin/console cache:clear -e=devit return me this[Symfony\Component\Filesystem\Exception\IOException] ... | Error with Symfony's cache and permissions |
1
You need to make at least one commit in order for your test branch, which started from master, to have anything to rebase to.
If that test branch has commits not present on master, then the rebase won't tell you that everything is up-to-date.
Share
Improve this ... |
right so here follows the list of an activity i have been trying to work on:
Go to the GitHub website to access the practice project.
Fork the repository to your GitHub account.
Clone the repository with Git on your computer.
Use git log to look at the file structure and commits. Note how, many commits, trees, and b... | Current branch test is up to date |
Managed to get it fixed up. The fix included adding a new user using the Dockerfile . The user automatically receives 1000:1000 as UID and GID but that can be swapped for others if so desired...
The Dockerfile is then run as the user with the USER command
All the directories the USER uses need to be chown -R and to be... |
So, I'm trying to get into creating docker images and I managed to get one going. It was qBittorrent, everything went fine until it started downloading files. All of qBits' directories are owned by 1000:1000 but as soon as it starts downloading a file, my docker-host machine says that the file folder is owned by root:... | Docker container creating directories owned by root, I need them owned by 1000:1000 |
Based on our experience we found 3 possible ways to translate existing manually deployed (from Web Console UI) AWS infra to Cloudformation (CF).
Using a new CloudFormation native introduced feature (since Nov 2019) that allows you to Import existing resources into a CloudFormation stack
Using aws cli execute $aws se... |
I´m using AWS CLI and CloudFormation, and I could not find any reference in the documentation.
Does anybody know if it´s possible to create a CloudFormation template from a current configuration.
Let´s say that I want to get a CloudFormation template from my current security group configuration.
Any idea if it´s possi... | Export AWS configuration as CloudFormation template |
We have done recently a fair amount of comparing of Velocity and Memcached. In the nutshell, we found Velocity to be 3x - 5x slower than Memcached, and (even more crucially) it does not have currently support for a multi-get operation. So at the moment, I would recommend going with Memcached. Also, another lesson we h... |
I've been paying some attention to Microsoft's fairly recent promoting of Velocity as a distributed caching solution that would compete with the likes of Memcached.
I've been looking for a 64bit version of Memcached for Windows for some time now with no luck, and since everything about the ASP.Net MVC project I'm work... | MS Velocity vs Memcached for Windows? |
If you don't care about security and just want to call some https without replacing fingerprint each time it updates, you can use WiFiClientSecure lib and set client.setInsecure() instead.Link | I'm using Arduino library for ESP8266.As for now in order to make SSL request usingHTTPClientyou need to provide SSL fingerprint.
There's no possibility to accept every certificate at the moment (using library's methods).I'm wondering how you guys handle it, because the fingerprint can change over time.Should I get my ... | SSL in ESP8266 (Arduino library) - How to handle certificate changes? |
The Dockerfile for the Nginx image should have the expose instruction for port 80. On the Nginx website, you should be able to find the dockerfile for the image you are using, and should have the expose 80 command.
If you do not want the port 80 exposed, even though it will not be used if you are using port 8080, then... |
I have set a Nginx to listen on a port 8080 in files/etc/nginx/conf.d/default.conf by adding listen 8080; to the only one server block I have.
I run Nginx by docker run with -p 8080:8080
I would like to ask why there is 80/tcp under PORTS of docker ps command as below?
STATUS NAMES IMAGE ... | Nginx remove exposing port 80/tcp on a docker container, leave only 8080 |
Even I don't answer your raw question, this link should answer your goal as a whole.
In a nutshell:
Reload Rails code in development mode only when change is detected
|
I'm trying to speed up my web fronted by caching classes in development,
My::Application.configure do
config.cache_classes = true
end
but I would like to manually reload classes using guard if a file in my model or lib changes.
So the question is this: without restarting my local server, how can i manually trigge... | Manually Reload Rails classes that have been 'cached' by enabling cache_classes = true |
2
In the meantime I found a workaround that will do for me:
The commit Step is left to eclipse, as it works fine.
The push step is by ssh from console. In preparation for console-push I generated an ssh-key and copied it to my settings in my github-account.
The only thing l... |
I'm using github via eclipse since two years. Everything worked fine all time. Today I tried to push to github and get:
cannot open git-receive-pack
as an error message. There is also a huge discussion on github concerning that issue. It seems to me that pushing to github is completly impossible in the moment.
Ho... | cannot open git-receive-pack |
If your source repository is a template repository (https://help.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-template-repository), you can use the following API:
Note: Creating and using repository templates is currently available for developers to preview. To access this new endpoint ... |
I have used the Get Repo API (https://api.github.com/repos/myId/myRepoName)to get the repository details. Now I want to create a new repository with the content and files in my "myRepoName".How can I achieve that.
Create API(Post)(https://api.github.com/user/repos)
| How can we create a Repository in GitHub with other repository content with template using GitHub Rest API |
I know this question is old and unfortunately this answer is a non-answer.I recently ran into this issue, since GitHub now disabled creating classic projects. You're right, it looks like the new projects do not triggerproject_cardlike classic projects did. In my opinion, this is a huge overlook on GitHub's part. I have... | I need a Github action which closes an issue when that issue is moved to a "Done" column on a Github Project.My issue is that theproject_cardtrigger only works on "classic" projects. Github specifies thisin their documentationfor theproject_cardtrigger:"This event only occurs for projects (classic)."I would use a class... | How do I trigger a Github Action on project card movement? |
4
For me, it worked by setting the environment variable JAVA_TOOL_OPTIONS in my ECS Task Definition like this:
Environment Variable
Value
JAVA_TOOL_OPTIONS
-XX:InitialHeapSize=1g -XX:MaxHeapSize=2g
I hope this helps!
BTW, my container was running with Amazon C... |
I have REST API developed in Java SpringBoot. I have deployed this API as a docker container in AWS ECS. I have allocated 2048 MB as hard memory and 1024 as soft memory in the AWS Task. After ECS launches the docker container, I access the docker container and executed the following command
java -XX:+PrintFlagsFinal ... | How to Increase Java Heap Size in AWS ECS? |
<Directory /uploads>
Options +Indexes
</Directory>ShareFolloweditedMar 1, 2019 at 11:17javier_domenech6,10566 gold badges3737 silver badges5959 bronze badgesansweredApr 10, 2012 at 14:51Explosion PillsExplosion Pills190k5454 gold badges332332 silver badges410410 bronze badges1How to remove .htaccess password protect... | I have an images folder at the following URL.www.mysite.com/uploads/On a different page:www.mysite.com/search.php/I am trying to access the images wherein, with a correct tag link, however I get the :Forbidden
You don't have permission to access /uploads/ on this server.So I went and started dabbling with a.htaccessf... | .htaccess file to allow access to images folder to view pictures? |
Is this in a particular browser? I'm not aware of browsers 'caching' certificate fingerprints by default.You should be able to just change the cert and it should be accepted, provided the configuration is correct.If you don't get a full error, just a red 'https', then that means that the cert is valid, but there's an i... | I purchased a new SSL certificate, and want to switch my site over to it. I know that after your browser trusts one ssl certificate for a given host it will appear as invalid if the host is spitting out a different certificate than expected, so I haven't migrated my site to the new cert yet, except for one A record.Is ... | Broken HTTPS after changing SSL certificate on site |
$ git log | grep Author | sort | uniq
Author: Mickael Hebert <OBSCURED>
Author: ehmicky <OBSCURED>
Author: ehmicky <OBSCURED>
Author: ehmicky <OBSCURED>
Author: me <[email protected]>
Unless you are really [email protected], you should not be committing as such.
It seems that ich123 has claimed [email protected] as h... |
Some of the commits I push to my GitHub work repo are not published under my GitHub name but under another GitHub user name called ich123. The strange part is that this user has joined four years ago (way before I did) and (according to its profile) has never committed. It is like a "ghost commit robber".
Extra inform... | Who's stealing my commits? |
(This answer is the formalized version of mycomment.)Try to use%FirefoxVersion%ARG FirefoxVersion
RUN powershell -Command iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'));
RUN choco install -y firefox --version %FirefoxVersion% --ignore-checksumsReason:The error message"The command ... | I would like to pass an argument in my dockerfile to build my docker image. I've seen in other post and docker manual how to do this but it doesn't work in my case.
Here is an extract of my code where i use my argument:ARG FirefoxVersion
RUN powershell -Command iex ((new-object net.webclient).DownloadString('https://c... | How to use the ARG instruction of Dockerfile for Windows image |
Mosaic is the way nvidia handles multiple GPUs and monitors.BaseMosaic is when using separate GPUs without SLI, as there is also SLI Mosaic.SeeMosaic and SLI Mosaicfor more detailed information | Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchange site, ... | What is BaseMosaic (NVidia/X11) [closed] |
glue scala jobval spark: SparkContext = new SparkContext()
val glueContext: GlueContext = new GlueContext(spark)
spark.hadoopConfiguration.set("fs.s3.enableServerSideEncryption", "true")
spark.hadoopConfiguration.set("fs.s3.serverSideEncryption.kms.keyId", args("ENCRYPTION_KEY"))I think syntax should be differ for Pyth... | If you follow the AWS Glue Add Job Wizard to create a script to write parquet files to S3 you end up with generated code something like this.datasink4 = glueContext.write_dynamic_frame.from_options(
frame=dropnullfields3,
connection_type="s3",
connection_options={"path": "s3://my-s3-bucket/datafile.parquet"... | Can a SSE:KMS Key ID be specified when writing to S3 in an AWS Glue Job? |
To avoid having to keep an SSH private key on your EC2 instance, people often use a workflow that involves pushing to that remote server in order to deploy. Essentially, you set up a bare git repository there with apre-receivehook that deploys to another directory. There is a simple example of doing this inthis tutor... | I'm kind of new to both EC2 and Git, and I have just set up my first instance of EC2, using a clean Amazon Linux AMI. I also installed MySQL, Apache and PHP and opened some ports to make it work as a normal web server, responding to an elastic IP as well.Now, my code is on a private repo on GitHub, and I would like to ... | Setting up Git on EC2 to pull from GitHub repo |
First, user authentication has nothing to do with user.name and user.email git config.
And second, compared to the old answer "remove credentials from git", the latest Git for Windows uses Git Credential Manager (Git 2.9.2 => GCM 1.5.0).
Check your config (git config -l) and see if "manager" (or, more recently, 2020+:... |
I'm using Git, on Windows, version 2.9.2.windows.1.
I work on a repository project and when I do a push, it asked me to enter my GitHub username and password. I entered both my GitHub username and password to update the project.
In my next push, it doesn't ask for my username and password any more. All my modification... | How do I sign out in the Git Bash console in Windows? |
You can use tools like pmap or ps_mem.py to get more details about the memory use of running processes than you get from top. You won't get all the fancy features from Valgrind like detecting memory leaks and such.
|
This answer to this question says that there's no way to attach Valgrind to an already running process.
Are there any other tools for Linux that can report on memory usage but can attach to a process that's already running?
| Any tool other than Valgrind to monitor memory usage for running processes in Linux? |
I suggest to configure thekvfilter to remove the single quote and recursively parse the values inside the secondmsgfield using the following configuration:kv {
source => [ "kv_message" ]
remove_char_value => "\\'"
recursive => true
}Additionally, you can then rename themsgarray elementsmutate {
rename => {
... | I have a problem with this kind of log:<183>Apr 26 12:53:53 host.example tag_audit_log: type=USER_ACCT msg=audit(1989212.965:15124458): pid=20982 uid=0 auid=427890281 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='op=PAM:accounting grantors=pam_unix acct="root" exe="/usr/lib/systemd/systemd" hostname=? addr=? ter... | Logstash - Parsing nested KV logs |
The EC2 instance and Elastic IP are fine, or else you wouldn't be able to connect with the IP address. The problem is with DNS.I don't understand how DNS lookup can show everything is fine, but you get "Cannot resolve hostname". That's saying that your local computer cannot convert the name you've assigned to an IP add... | I struggle to connect my domain to my ec2 instance, although I have read every post on the internet i could find about the subject:I am using Route 53 to route my domain to an Elastic IP, which is assigned to an EC2 Ubuntu 13.04 instance. nslookup for the domain from outside shows the Elastic IP address, but returns Se... | domain won't resolve to aws ec2 - using route 53 and elastic ip |
If your domain is www.example.org, you can host your static components on static.example.org. However, if you've already set cookies on the top-level domain example.org as opposed to www.example.org, then all the requests to static.example.org will include those cookies.From:http://developer.yahoo.com/performance/rules... | a mirroring CDN can't have the same hostname as you application server, because you need a way for the CDN to explicitly reference the application.Why, in general, do sites like facebook run their CDN on a totally seperate host, not just a subdomain like cdn.facebook.com? example:http://profile.ak.fbcdn.net/hprofile-ak... | why do CDNs always use a seperate host instead of subdomain? |
0
What is the correct way to clear internal memory
Restart the computer. As you say this might not be the slowest option.
Computers are design to be efficient as possible, making them deliberately inefficient means making some assumption about how inefficient you want to ... |
I am trying to test a Java program that I wrote, in order to prove its efficiency. I have many different tests to run, and I am trying to be precise in the runtime analysis. The problem is that different tests may access information on the disk that is common. So, in order to be "fair" in my experimental results I wou... | java clearing internal memory cache |
no there wasn't commit on the remote that doesn't exist locally, but vice versa is correct I added files aren't in the remote to the local
You might have the same commits, but the SHA1 must have differed somehow.
That can happen if you did a rebase of master at any point (including a rebase --interactive, just to re... |
I am on no branch and the only person who push currently to the stream, why when I do
git push
I get:
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/dsak.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote ch... | Why do I get non-fast-forward error in git? |
You can store or save the certificate in secret and use it also. Instead of creating cert at POD level better to manage for each service level.However, looks like you are looking for something similar toMtls:In mTLS, each microservice in a service mesh verifies the other's certificate and uses the public keys to create... | My problem is very specific and I dont know how to achieve in kubernetes.Im trying to configure an application called prestohttps://prestodb.io/docs/current/security/internal-communication.htmlAll my nodes should have a certificate to talk to each other a wildcard certificate would be much simpler, but in kubernetes I ... | Support wildcard domain, kubernetes |
I have figured it out and wanted to post my solution in case anyone else runs into this issue.
The issue was due to Angular being a SPA (Single Page App) and me using an S3 bucket to store it. When you try to go to a specific page via url access, CloudFront will take (for example, /about) and go to your S3 bucket look... |
For a while, I was simply storing the contents of my website in a s3 bucket and could access all pages via the full url just fine. I wanted to make my website more secure by adding an SSL so I created a CloudFront Distribution to point to my s3 bucket.
The site will load just fine, but if the user tries to refresh the... | Receive AccessDenied when trying to access a page via the full url on my website |
UpdateAs alreadypointed outby frisky (+1), AWS has meanwhile releasedDynamoDB Local for Desktop Development- please seeDynamoDB Localfor details, in particular sectionDifferences Between DynamoDB Local and DynamoDB.As of recently, this initial offering is also fully integrated in theAWS Toolkit for Eclipseand theAWS To... | Since I'm not familiar with cloud services yet, I must ask.If I'll use DynamoDB from AWS, would it needed to be installed on local? Or is everything handled on the server-side? | Can Amazon DynamoDB be used without local database? |
Basic authentication is only supported over HTTPS. The docker client will not send basic auth headers when pushing/pulling on a registry over HTTP. This is done by design to prevent people sending their credentials over insecure channels. Using SSL should get rid of the issue.
Try using below:
https://${ip_address}:42... |
I have followed this post to try to download a Docker image from AWS ECR but I get the following errors:
If I do:
#!/bin/sh
repository="2xxxxxxxxxx.dkr.ecr.us-east-1.amazonaws.com/nexus-pro"
tag="2.13.0-np-1.0"
ecr_token=$(aws ecr get-authorization-token --output text --query authorizationData[].authorizationToken |... | Pull docker image from AWS ECR using remote API |
It depends on how the specific S2I builder you are using is implemented. You need to find where the provider of that S2I builder has their code and documentation.
Seems you can find documentation for it at:
https://hub.docker.com/r/codecentric/springboot-maven3-centos/
and their repo for it is at:
https://github.co... |
OpenShift3 allows to build a container from a Github repository using the concept of "S2I - Source to Image".
For example:
oc new-app codecentric/springboot-maven3-centos~https://github.com/cbelleza/spring-boot-samples.git --context-dir=spring-boot-basewebapp
Is there any way to inform what Maven goals should be exe... | How to inform Maven/JVM options for S2I build in OpenShift3 |
Guava's wiki documentation has a full definition of it: (emphasis is mine)
A LoadingCache is a Cache built with an attached CacheLoader. Creating a CacheLoader is typically as easy as implementing the method V load(K key) throws Exception. So, for example, you could create a LoadingCache with the following code:
[...... |
Google offers a "loading cache", which is described as following:
A semi-persistent mapping from keys to values. Values are automatically loaded by the cache, and are stored in the cache until either evicted or manually invalidated.
Unfortunately, the description above isn't terribly clear. what does it mean to be "... | What is a "LoadingCache"? |
To block all the public access to you S3 bucket you can use the put-public-access-block command. Here is the command:
aws s3api put-public-access-block \
--bucket my-bucket \
--public-access-block-configuration "BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true"
To v... |
I have over 100 files in S3 where some of the files have public access. Is there a cli to set all objects (not bucket) permission to block public access inside one bucket?
| Block all objects' public access in S3 by CLI |
You can specify cache_key for your block:
protected function _construct()
{
$this->addData(array(
'cache_key' => 'some_static_or_dynamic_key', // can be static or dynamic
'cache_lifetime' => 120,
'cache_tags' => array(
Mage_Core_Model_Store::CACHE_TAG,
Mage... |
i cached my custom block inherit of Mage_Core_Block_Template. I cached the bloc with the next constructor:
protected function _construct()
{
$this->addData(array(
'cache_lifetime' => 120,
'cache_tags' => array(Mage_Core_Model_Store::CACHE_TAG, Mage_Cms_Model_Block::CACHE_TAG),
... | Magento: How to know many blocks are cached |
You cannot use thesafe.directoryoption in a local config file. The reason is that a repository which has insecure permissions might be tampered with by an attacker, and if that's the case, the attacker could have modified the configuration file in that repository's directory as well. You must usesafe.directoryin the ... | Git is not able to identify the local .gitconfig of the directory unless marked as a safe directory globally. I have a local .gitconfig set for a directory which is marked as safe inside the local .gitconfig file. But git is not able to identify it as a git directory
When I do git config --list --local
It says says- f... | Is there a way for git to identify the git directory? It says- fatal: --local can only be used inside a git repository |
1
You need to make sure you are placing remove all on the EDT or else your application will experience issues as you encounter.
SwingUtilities.invokeLater(new Runnable() {
public void run() {
this.removeAll();
this.add(panel);
... |
Really hope you can assist. I have built a stock management application with the Java Swing framework. This application has 1 abstract class named GUIRules which extends JPanel implements actionListener, and 8 different classes which extend GUIRules to represent each screen.
public abstract class GUIRules extends JPan... | Java - Preventing Java Heap memory error using Swing framework and abstract classes |
I had the same problem and here is how i resolved it :I put three parameters in the DNS record :CNAME with wwwA with 1st IPA with 2nd IPand then i only add two nameservers i.e.: ns1 & ns2 out of the 4 default Nameservers provided by name.comand now my website is live on firebase.-extra info:it was not going live when i... | My domain verification process is completed and i also update my domain's DNS records to point to Firebase using "CNAME records" method (updated before approx 96 hours) but my site was not "Go Live". In Firebase console Hosting menu that give me below message:Your site will go live when your domain registrar propagates... | Firebase Hosting Custom Domain - site not "Go Live" after update DNS records by "CNAME records" method |
Amazon S3 cannot compress your data.You would need to write a program torun on an Amazon EC2 instancethat would:Download the objectsCompress themUpload the files back to S3An alternative is to use Storage Classes:If the data is infrequently accessed, useS3 Standard - Infrequent Access-- this is available immediately an... | We have lots of files in S3 (>1B), I'd like to compress those to reduce storage costs.
What would be a simple and efficient way to do this?Thank youAlex | Compress billions of files in S3 bucket |
You are correct, the ImagingCore objects underly the presented Image API in PIL.
|
I am performing a memory useage analysis of my Python program using the Python Memory Validator. It appears that a lot of 'ImagingCore' objects are being created and are being held in the program's memory. I just want to check: what exactly are these objects? Are they PIL image instances? Other photo related objects?
| ImagingCore Python Object |
8
That's because "systemctl" talks to the systemd daemon by using the d-bus. In a container there is no systemd-daemon. Asking for a start will probably not quite do what you expect - the dev-mapping need to be a bit longer.
Another solution may be to avoid the usage of a ... |
Trying to run following command in the ubuntu 16.04 docker container
root@mytest:/Linux_Insight_Agent# systemctl start ir_agent.service
I have installed neede packages but at the time of starting the service following issue is coming.
Failed to connect to bus: No such file or directory
| how to solve Docker issue Failed to connect to bus: No such file or directory |
Yes you can replace first rule with:RewriteCond %{HTTP_HOST} ^(www\.)?codeliger\.com$ [NC]
RewriteCond %{THE_REQUEST} \s/(index\.php)?[\s?] [NC]
RewriteRule ^ /home? [L,R]
RewriteRule ^home/?$ /index.php?page=home [L]
RewriteRule ^education/?$ /index.php?page=home&filter=1 [L]
RewriteRule ^skills/?$ /index.php?page=ho... | This is currently my entire .htaccess file:RewriteEngine on
Redirect /index.php /home
RewriteRule ^home$ /index.php?page=home
RewriteRule ^education$ /index.php?page=home&filter=1
RewriteRule ^skills$ /index.php?page=home&filter=2
RewriteRule ^projects$ /index.php?page=home&filter=3
RewriteRule ^experience$... | .htaccess redirecting index.php to home without redirecting subdomain |
Is there any way to retain previous value if the test case is excluded?No | In Jenkins pipeline, 1st we are doing "gradle build" stage, whereif(env.RUN_TEST_CASE.toBoolean()){
bat "gradle clean build --no-daemon --no-build-cache"
} else {
bat "gradle clean build --no-daemon --no-build-cache -x test"
}Then, "Sonar Code Analysis", thereif(env.RUN_TEST_CASE.... | How to retain last test case code coverage in sonar qube report if test is excluded |
Createrobots.txtinside subdomain document root with the following content:User-agent: *
Disallow: / | I am having difficulty finding information on how to completely noindex only one particular subdomain via htaccess (from my understanding, that's the best way?) and it is important for me that only that one subdomain and its files are never indexed or crawlable.I have an Apache server that uses Plesk and the subdomain ... | Noindex Only One Subdomain |
Ok as I mentioned in my comment the issue seems to relate to the pipe characters so I had to evaluate the variable usingevaland escape the pipe character. So in order to ensure the functionproduceinterprets$@correctly I fed the command as follows. Note also that the variables are all now quoted#######
produce() {
loc... | I have a functionproducewhich determines whether a file is present and if not it runs the following command. This works fine when the command output simply writes to stdout. However in the command below I pipe the output to a second command and then to a third command before it outputs to stdout. In this scenario I get... | What is the best way to evaluate two variables representing a single pipeline command in bash? |
You should replace this with the version with the full path to the python interpreter, because whatever is run from thecronlacks the "usual" environment variables setup, namely, PATH is what you're missing the most:def roda_processo(processo):
os.system('/usr/local/bin/python3.7 {}'.format(processo)) | I have one script.py which calls other multiprocessing scripts as follows my scripts.py:import os
from multiprocessing import Pool
scriptspy = [
'/pyscripts/apoiont01.py',
'/pyscripts/access.py',
'/pyscripts/dental.py',
'/pyscripts/cremers.py',
'/pyscripts/delcuritib.py',
'/pyscripts/dtalndes.p... | python multithreading issue in cronjob no execute |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.