Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
2
If you keep -Xms the same as -Xmx then a couple of things happen:
Right from the start you will get the same heap size committed to the virtual machine (JVM).
Since it is a fixed heap so JVM will never grow or shrink the heap, which is what usually happens after each GC ... |
This question already has answers here:
Is there any advantage in setting Xms and Xmx to the same value?
(5 answers)
Is it good to set the max and min JVM heap size the same?
... | What is the advantage of fixed heap size i.e. -Xms = -Xmx [duplicate] |
You can call the Detach method on the context passing it the object you no longer need:
http://msdn.microsoft.com/en-us/library/system.data.objects.objectcontext.detach%28v=vs.90%29.aspx
|
I am working on a batch process which dumps ~800,000 records from a slow legacy database (1.4-2ms per record fetch time...it adds up) into MySQL which can perform a little faster. To optimize this, I have been loading all of the MySQL records into memory which puts usage to about 200MB. Then, I start dumping from the ... | Entity framework remove object from context, but not from database |
No, you can't.ShareFollowansweredDec 18, 2009 at 1:33SLaksSLaks877k177177 gold badges1.9k1.9k silver badges2k2k bronze badges1Google found it almost instantly.–SLaksDec 18, 2009 at 2:39Add a comment| | does anyone know if the Marshal class is available on the xbox360, specifically the AllocHGlobal method.Unfortunately I don't have access to an xbox right now, otherwise I would test it myself!Basically I want to be able to allocate unmanaged memory myself, ie. this piece of code should work:IntPtr ptr = Marshal.AllocH... | C# Marshal class available on Xbox? |
You can only buy an SSL certificate for a domain name under your control. You will have to get your own domain name, or at least your own subdomain, otherwise you can't buy a certificate.The Common Name field should be the full domain name for your web service (including subdomain). | I have a Web Service hosted on the amazon cloud using their EC2 technology. The domain to that service is "amazonaws.com". When I create a CSR what do I add to the "Common Name" field?In the end I like to have a certificate which doesn't throw any errors or warnings like "Server's certificate does not match the URL", e... | SSL Certificate for Web Service in the Cloud |
Based on information from thedocumentation:By default, this chart will use Kubernetes Secrets as a credential manager. For a given Concourse team, a pipeline will look for secrets in a namespace named [namespacePrefix][teamName]. The namespace prefix is the release name hyphen by default, and can be overridden with the... | I'm receiving the following error when the runner is trying to retrieve a resource:checking failed -
Expected to find variables: gitmy resource looks similar to:- name: resource-repo
type: git
source:
uri: https://[url]
branch: master
tag_filter: '*'
username: ((git.username))
password: ((git.pa... | Concourse CI can't find kubernetes secrets |
Well, I found a solution. I'm using "rsnapshot" wich does exactly what I want.
https://rsnapshot.org/
|
I have two hard drive of 4Tb connected to my raspberry pi.
Let's call them A and B.
I have some folders on A that have to be copied on B. At all the time, something like a RAID10 on some folder. So, if I copy test.jpg in disk A, test.jpg has to be copied on disk B. If I copy test2.jpg on B, test2.jpg has to be copied ... | Clone a folder / raid on a folder? |
Did you recently upgrade from a previous Laravel version? TheFailed to clear cache. Make sure you have the appropriate permissions.may be caused by the missing folderstorage/framework/cache/data. You can create it manually with:mkdir -p storage/framework/cache/dataCheck theCache paragraphin the Upgrade to 5.7 guide for... | I think I am facing cache issue on LaravelI have the fileI kept gettingView [layouts.fe.wedding-us.index] not found.I've tried clear the cachecomposer dumpauto
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Generating autoload files
> Illuminate\Foundation\ComposerScripts::postAuto... | "Failed to clear cache. Make sure you have the appropriate permissions" in Laravel 5.7 |
Reinstalling Git for windows version 2.9.0.windows.1That doesn't change anything forGitHub Desktop: it uses its own embedded distro of git for Windows, andyou cannot change it.Try first to see if the issue persits with:another new repo (git init test2, make a few commits)another cloned repo (git clonehttps://github.com... | I am using GitHub Desktop version 3.1.1.4 on Windows 7 Professional 64 BitFor some reason, history tab does not work. It shows changes tab display only.Sync button is not there any more.I tried following:Restarting PCReinstalling Git for windows version 2.9.0.windows.1Closed all other applicationI have attached screens... | Github Desktop windows sync button disappears and history tab is not working |
I have found answer from github.com. It may be useful for someone so I am posting the link.https://github.com/openssl/openssl/issues/12077Thank you!!ShareFollowansweredJun 9, 2020 at 16:37RanganadhanRanganadhan133 bronze badgesAdd a comment| | I am very new to python and as well as sto this forum. I had to create Http Server supported with tls1.2 security. Earlier we had python 2.6. Now we need tls1.2 security. python 2.6 does not support tls1.2 security. So we updated to python 3.6.3.I have written sample code for http server handler but it is not working. ... | SSLContext is hanging in python 3.6.3 |
3
The page is still cached. You need to add the following response header:
cache-control : no-cache
which doesn't actually prevent caching.
The cache-control response header's no-cache directive means that the browser
MUST NOT use the response to satisfy a subsequent requ... |
It's quite common topic I think, but I can't resolve my problem. In my application build with ASP.NET MVC 3, I'm using form authentication along with output caching:
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" name=".CMS" protection="All" timeout="43200" cookieless="UseCookies"/>
</authentication... | Issue with cleaning browser cache and cookies on logout in ASP.NET MVC 3 |
On SMP architectures values that are cached are not updated across all cores so a thread on another core can be using a stale value.Another issue you can have is concurrent access between threads that means Thread 1 read x before Thread 2 was able write x but Thread 2 continued and said x = 10 but Thread 1 is still usi... | I'm experimenting with memory management in linux kernel modules and I was wondering why a thread does not see the same memory as the module's functions. What I mean is,I have aint *xdeclared globally. I allocate space using kmalloc and assign 10 to it. Now when I try and access it from within a thread, I get a totally... | linux kernel module memory management |
It is possible to maintain a separate branch just for deployment, but it takes much discipline to maintain it properly:
Add a commit to a production branch that adds the config file (git add -f to bybass your excludes).
To update your production branch, merge other branches (e.g. master) into it.
However, you must th... |
I made a Sinatra app, that will be hosted on Heroku, and the source will be up on GitHub. The problem is that i have a file with API keys, that is currently in .gitignore. Is there a way, that I can push my repo to heroku with the key file and exclude the file when pushing to GitHub?
Thanks in advance!
| Pushing .gitignore files to specific remote |
It is possible to have dependent variables in a Grafana dashboard. For example, let's say that on a variable$instancewe have a list of instances coming from theupmetric in Prometheus. We can set it up as a query with using thelabel_valuesfunction from Grafana:label_values(up, instance)Now if we were to have a second va... | On my /metrics page I have strings similar tomy_metric{controller="cont_a",action="act_a",le="1"} 5
my_metric{controller="cont_a",action="act_b",le="1"} 4
my_metric{controller="cont_b",action="act_c",le="1"} 3
my_metric{controller="cont_b",action="act_d",le="1"} 2On my Grafana dashboard I want to see two variables:c... | Dependent variables to get prometheus labels |
window.location = self.location;This JavaScript is executing.When it executes, the browser is being told to replace the value ofwindow.locationwith a new value.Not all browserswill react the same way here. Some will probably work as you expect, but others will get smart about it and compare the two values.The browser k... | On my homepage I got:<ul id="login">
<li> <a id="loginswitch" href="./login-page">log-in</a> | </li>
<li> <a id="signupswitch" href="./signup-page">sign-up</a> </li>
</ul>Via MooTools, I get these anchor elements by id so that once they're clicked, a flashy div will popup below them that contains the login or signu... | Reloading a page via AJAX when window.location=self.location doesn't work |
RewriteCond %{REQUEST_FILENAME} !index.php$
RewriteRule ^(.*)\/$ $1.php [L]edit: i guess this is better | Assuming I have the following file structure:www.example.com/index.php (home page)
www.example.com/about.php
www.example.com/services.php
www.example.com/contact.phpHow can I use mod_rewrite in an .htaccess file so when the browser points to:
www.example.com/about.phpthe actual URL displayed will be:
www.example.com/ab... | Complex .htaccess question |
If you just want to have a single line per day, you can useGROUP BY time(1d)in your query.To hide the time part inside of the label, define an Override:ShareFollowansweredFeb 17, 2023 at 21:01StefanRStefanR59855 silver badges1414 bronze badges11Yes this works in v10.1.1. Had to rotate the labels -45 degrees otherwise t... | I am trying to use transformation "Convert field type" to strip time from timestamp,
but it seems not to work as I expect. Any idea how to get rid of time?
I need only date in order to group by day | Grafana, how to transform time column from timestamp to date |
You could use anther map to capture the $name variable. These happen early in the cycle and can help avoid regex locations which can cause problems when your config scales.
map $uri $name {
~^/([^/]+)/foo$ $1;
}
map $name $id {
Bob 1;
Joe 2;
}
server {
if ($id) {
return 302 /bar?param=$id;
... |
I want a mapping like
map $name $id {
Bob 1;
}
(scheme+domain is $scheme://$host).
I want to redirect /$name/foo to /bar?param=$id.
How can I do this? In examples I only see full URIs in the map. I would prefer not to have
map $uri $mapped_uri {
/Bob/foo /bar?param=1;
/Joe/foo /bar?param=2;
}
because... | Nginx map for part of URI |
binaryDataexepcts amapbut you are passing astringto it.When debugging the template we can seeError: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(ConfigMap.binaryData): invalid type for io.k8s.api.core.v1.ConfigMap.binaryData: ... | I am trying to add a zip file to our configmap due to the amount of files exceeding the 1mb limit. I deploy our charts with helm and was looking into binaryData but cannot get it to work properly. I wanted to see if anyone had any suggestions on how I could integrate this with helm so when the job is finished it delete... | Add Zip / Binary file to configmap |
21
Complete information about your billing in details you may receive on a page https://console.aws.amazon.com/billing/home
Also, check the following - have you launched one more t2.micro instance? You have possibility to use free t2.micro instance for 750 hours per month... |
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 8 years ago.
... | On Demand Linux t2.micro Instance Hour [closed] |
3
When You've once committed any file/folder and THEN you gitignore it, it won't work unless you clean up the cache. Here's how to clean the cache. Try after removing the cache.
Share
Improve this answer
Follow
... |
I am pulling my hair out over this, I have a .gitignore file I coded up in vscode to ignore a venv and a few other things and literally nothing works. It works fine for Background.mp4 and Music.mp4, but for the life of me, I can't seem to get it to ignore the rest. Would really appreciate some answers.
Also, just a si... | .gitignore will not ignore folders |
According to https://discuss.linuxcontainers.org/t/having-trouble-using-docker/383 it sounds like you might need to set security.nesting=true. Stop the container (lxc stop deploy-container), configure nesting on (lxc config set deploy-container security.nesting true as per https://insights.ubuntu.com/2015/10/30/nested... |
I'm using meteor-up to deploy to docker instances inside an LXD container. When it attempts to bring up a MongoDB docker instance, it fails with the following error:
docker: Error response from daemon: oci runtime error: container_linux.go:265: starting container process caused "process_linux.go:368: container init ca... | Docker rootfs_linux.go permission denied when mounting /proc |
There are two methods you could use:Addbefore_scriptto your current current docker-compose:webserver:
(...)
before_script:
- pip install dockerCreate aDockerfilewhich uses the one from puckel and install the required package in there. | I'm setting up a new airflow server using docker-compose and the airflow image puckel/docker-airflow.BashOperatorsandPythonOperatorare working well, but when I'm trying to useDockerOperatorI'm getting[/usr/local/airflow/dags/XXXXXXX.py]No module named 'docker'.How do I need to change my docker-compose file in order to ... | How to run DockerOperator on Airflow? |
I met this problem recently too.
rm -f ./.git/index.lock
try this commend in your git bash, then you can solve your problem.
|
I was committing my git process and thought that it would be okay if I ignore comments so I used this code
git commit filename
Bash was strange and thus i closed the console
now when I use proper command
git commit -m"THIRD COMMIT" filename
It give the following response:
Another git process seems to be running in ... | Another git process seems to be running and thus cant commit |
I have isolated the problem further and came to the sad realization that my problem was in factnotthe user provider.The configured password for the memory provider had an old encoding, and thus the newer encoding algorithm produced a hashsum that didn't match. One reason might be the migration from 3.4 to 4.2, as there... | For mytestenvironment, I have configured a memory-based user provider:config/packages/test/security.yamlsecurity:
providers:
unit_testing:
memory:
users:
test1: { password: $testpwd1, roles: ['ROLE_SUPER_ADMIN'] }
test2: { password: $testpwd2, roles: ['ROLE_SPECIAL1_ADMIN'] }
... | Symfony 4.2: Firewall configuration doesn't load memory user provider |
You don't have to explicitly "create" topics in AWS IoT (MQTT). You would simply subscribe to, or start posting to a topic and if the topic doesn't already exist the IoT service will create it automatically.ShareFollowansweredOct 16, 2017 at 13:55Mark BMark B191k2525 gold badges310310 silver badges307307 bronze badges1... | Is it possible to create a AWS IoT topic dynamically .For example, Is it possible to set aRULEwhere once the message is received, It creates a topic dynamically or through lambda function.Or is it possible through AWS-SDKAny suggestion would be helpful | Dynamically create AWS IoT topic |
In the code you have posted, obj does not maintain any state between iterations.
for(int i = 0; i < 10; i++)
{
MyObject obj(file); //obj enters scope, constructor is called with 'file'
obj.doSomething();
} //obj loses scope, destructor is called
In that example, obj is a different object every time. It ma... |
While doing an assignment for a course and learning C++ while doing it, I was reading up on when to use stack allocation and dynamic allocation. I'm aware that in a lot of cases it is easier and better to use stack allocation. But there is a simple situation I'm puzzeled about.
Lets say you have a for loop:
for(int i ... | C++ loop stack allocation |
Can it be that your test repo was on BDB fs?As described in the section called “Berkeley DB”, hot-copied Berkeley DB repositories are not portable across operating systems, nor will they work on machines with a different “endianness” than the machine where they were created.If you attempt to use Berkeley DB on a noncom... | I'm implementing a backup strategy for a Subversion repository.I chose incremental backup on local NAS. I mounted the NAS over Samba and tried tohotcopymy test repository (that has few commits and weighs 320KB).svnadmin hotcopy --incremental /path/to/original /path/to/backupThe problem is that the program hangs indefin... | svnadmin hotcopy hangs indefinitely |
AFAIK there is no way to measure the number of labels in metrics.The issue is not the number of labels but thecardinality of the metric. Even if you have 10 labels and 3 of them are constant (__name__,job,instance) and if the 7 others have 2 values each, you reach a cardinality of 128 for a single metric which is alrea... | Prometheus recommends not using too many labels for timeseries and VictoriaMetrics is even dropping labels if you have more than 30.But how can I find timeseries that have too many / more than a certain amount of labels?
Is that even possible with PromQL? | finding timeseries in prometheus that have the most labels |
Not sure you mean it when you say thisCluster 1: 10 containers in one PodCluster 2: 10 containers in different PodsAt very first you are not following best practice, ideally, you should be keeping the single container in a single PODRunning 10 containers in one pod that too much, if there is interdependency your code s... | For the needs of a project i have created 2 Kubernetes clusters on GKE.Cluster 1: 10 containers inone PodCluster 2: 10 containers in 10different PodsAll containers are connected and constitute an application.What i would like to do is to generate some load and observe how the vpa will autoscale the containers..Until no... | Kubernetes Autoscaling using VPA - Off or Auto update mode? |
If both the models need to be jointly optimized, you could run a SageMaker HPO job in script mode and define both the models in the script. Or you could run two HPO jobs, optimize each model, and then create the Pipeline Model. There is no native support for doing an HPO job on a PipelineModel.I work at AWS and my opin... | We want to tune a SageMakerPipelineModelwith aHyperparameterTuner(or something similar) whereseveralcomponents of the pipeline have associated hyperparameters. Both components in our case are realized via SageMaker containers for ML algorithms.model = PipelineModel(..., models = [ our_model, xgb_model ])
deploy = Estim... | SageMaker: PipelineModel and Hyperparameter Tuning |
What you're probably looking for is theHTTP Proxy Integration as described hereThe basic idea is this:Set up your API-Gateway with a greedy path like/{proxy+}on theANYMethodSet the backend-endpoint tohttps://my-alb-endpoint.com/ecs-service-bla/{proxy}(hopefully) successTo make this work, your backend needs to be expose... | How to integrate API gateway with application load balancer? I have integrated ECS with ALB, now I want to add API gateway in front without lambda. But I got confused how to connect API gateway with ALB.. | how to add AWS API gateway with application load balancer for ECS? |
UsinghostPortis rather not recommended, so you'd be better off by specifying aserviceand access your Pod via a service. In your case you can defineNodePortservice and let Kubernetes decide on the port. Then, fetch the service port using Kubernetes API. | I am currently designing a system where users should be able to start a simulation through a Web Portal and then connect to it with a gRPC client (amongst other things). After the user is finished the simulation then terminates. I want to run the whole system in a kind of microservice architecture in a kubernetes clust... | Launch a specific Pod via API and connect from outside |
It may only have an effect on mac。
detail
|
Does adding :cached on a volume mount for mac performance tuning effect docker for windows volume mounts?
I'm working on a team with both mac and windows machines and it seems to still work but want to see if anyone has more to add on this.
Here is the docker docs link https://docs.docker.com/docker-for-mac/osxfs-cac... | docker volume mounts with cached option |
the issue was the kops was unable to install ebtables and conntrack so i installed it manually by :sudo apt-get -o Acquire::Check-Valid-Until=false update
sudo apt-get install -y ebtables --allow-unauthenticated
sudo apt-get install --yes conntrackand everything is running fine now | I have running k8s cluster using kops. the autoscaling policy terminate the master machine and recreated a new one since then every time i try to run kubectl command it returns "The connection to the server refused, did you specify the right host or port". i tried to ssh to the master machine but the did not found any ... | Kops, autoscale policy did not configure the master node correctly? |
I see only two options:Application is data-aware so after rollback, it will delete/revert dataRestore data from snapshot/backup | From here:https://stackoverflow.com/a/59558640/10894456the rollback could be performed by:UsingHelmhelm rollback release-name 0Usingkubectlkubectl rollout undo deployment/deployment-nameorkubectl rollout undo deployment/deployment-name --to-revision=0My question is: how to also rollback data which was involved while fa... | How to rollback data when perform release rollback from prod? |
You are including angular.js with<script src="http://code.angularjs.org/1.2.13/angular.js"></script>When your browser is loading assets for a https website it will block http only scripts. So you should change your link to have no protocol, just//and the browser will insert whatever the rest of the page is loaded with.... | My default file in nginxhttps://github.com/NatuMyers/nginxSSL-setup/blob/master/defaultI used that, then my node app doesn't allow Angular to work, it just serves the static index page, but the routing etc doesn't work. When it was straight http it worked.In my file with the node app I have app.js, node modules, and /... | Angular not working under SSL via NgineX |
You have cached the entire parent view for 10 seconds. This means that during those 10 seconds the child action wouldn't ever be hit and the entire view will be served from cache. Even if the cache of the child action expires after 5 seconds it still won't be hit.
In ASP.NET MVC 3 only donut hole caching is supported ... |
When attempting to set a different OutputCache property on a partial view I find that the PartialView cache is using the parents output cache duration. With the following code I would hope that the RenderPartial would result in a shorter OutputCache duration but I find that it is the same as the parent view (10 second... | MVC3 Partial View OutputCache overridden by parent view |
You should usesubPathin theVolumeMountsclause.For example:apiVersion: v1
kind: Pod
metadata:
name: my-lamp-site
spec:
containers:
- name: apachephp
image: php:7.0-apache
volumeMounts:
- mountPath: /var/www/html
name: apachephp-data
subPath: html
- mountPath: /var/www/up... | In a Kubernetes cluster, I need to have aStatefulSetbound to a volume (volume 0in the picture) and for each replica, it should claim on a subPath folder (replica1 on folder node0, replica 2 on folder node1, ...).I could not do such a thing. Any suggestion?I thought it was possible to instruct the statefulset to use a s... | VolumeClaimTemplates with subPath |
The challenge you're going to run into is that you really can't make a repository any smaller without rewriting its history. If you're OK with rewriting history, you can usegit filter-branchto modify history in bulk, e.g.--index-filter 'git rm --cached --ignore-unmatch path/to/big/file'(or use--subdirectory-filterto li... | I added several ~1M files to (an already large) repo. Upon the next add/commit/push, I received this error:Git LFS: (0 of 1 files) 0 B / 28.35 KB
batch response: http: This repository is over its data quota. Purchase more data packs to restore access.
Docs: https://help.github.com/articles/purchasing-additional-stor... | When exceeding the data quota, what is the best way to "split up" this github repo? |
Does not work here anymore with ALL github repositories!
Using latest TortoiseSVN 1.11.0.I've tried with version 1.10 of TortoiseSVN which still works, so this looks like a problem with TortoiseSVN 1.11 (which is linked against SVN 1.11). | GitHubdocumentsto support Subversion clients and I'm using that for many projects to include them in one of my working copies usingsvn:externals. Since yesterday I get the following error for all of those projects:The server at '[...]' does not support the HTTP/DAV protocol.This happens to a long list of projects, some... | Did GitHub shut down its support for Subversion clients? |
There is some documentation in the Grafana docs about Table Panels here:https://grafana.com/docs/features/panels/table_panel/#table-panelThe particular transform you showed in the example doesn't appear to be supported in the above documentation unfortunately.If possible, a change to the structure of the prometheus dat... | When i make a table panel and go to "Options" tab, columns parameter set to Auto: Columns and their order are determined by the data query.Is there a doc on how write prometheus queries for grafana tables?My prometheus data is a metric with 2 labelsmy_colandmy_row:my_metric{instance="lh",job="job",my_col="1",my_row="A"... | Prometheus query for table in grafana |
Believe you have an extra newline in last rule. Also make sure to useL(Last) flag in all of your rules.RewriteEngine on
# Where it's all about
RewriteRule ^users/([a-zA-Z0-9]+)/?$ users.php?user=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.p... | I've got this as my .htaccess:RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html
# Where it's all about
RewriteRule ^users/([a-zA-Z0-9]+)$ us... | .htaccess - Clean URL, 500 Internal Server Error |
<div class="s-prose js-post-body" itemprop="text">
<p>Minikube creates a network for itself and the VM. You need to externally expose your service.</p>
<p><strong>From Op's comment:</strong> You get port <code>30370</code> for your Service. You need to expose this port.</p>
<pre><code>ssh -i ~/.minikube/machines/miniku... | <div class="s-prose js-post-body" itemprop="text">
<p>I'm still new to Kubernetes and Lagom. </p>
<p>I need to invoke my Lagom microservice from an external server. To do that, I think that I need to expose my nginx-ingress for an external access, but I don't know how. Should I configure an "externalIPs"?</p>
<pre><cod... | Configure Kubernetes nginx for an external access |
RedisLabs provides a managed Redis with modules support on both AWS and GCP.See: Cloud PROhttps://redislabs.com/redis-enterprise-cloud/ | As AWS & GCP is not providing managed service for any of the modules of Redis. I am looking forward to runningRedis ReJsonwith HA configuration on AWS.Is it best way to set it up on EC2 with RDB backup? How EBS storage will work as i want multi AZ also auto failover.Right now somewhere i am planning for deploy it on Ku... | Best way to run Redis/Rejson with HA on AWS |
1
Well i am not sure as i didn't used php5 for homestead or changed but this could help you.
If you look folder Homestead that you cloned from git this url :
git clone https://github.com/laravel/homestead.git Homestead
In this directory you can find directory called scri... |
I'm developing laravel app on homestead latest version.
I needed to add ImageMagick, as you know newest homestead is running on php7.0 but imagemagick is compatible so far with php5. So when I was installing it like this
vagrant ssh
sudo apt-get update
sudo apt-get install imagemagick
sudo apt-get install php5-imagick... | Change vagrant php starting version |
I could not find a way to get laravel to parse a string as a blade template so I developed this work around that stores the remote template as a local file.RemoteViewFinder Gist | I need to cache a remote blade template generated by a CMS to keep an application's public interface up to date. Ideally I would be able to use file_get_contents and a cache to check for updates to this once a week. Is there any way to get Laravel to use the contents of a variable instead of a file as a blade template... | Parse a string instead of a file for a Laravel Blade template |
7
In my case it was because the god damn index file was left in the /var/www directory. So the NGINX was running though it showed the apache html file :) So once I removed index.html from the directory it showed the correct one.
Share
Improve this answer
... |
I have tried all the steps in the given in the AskUbuntu forums but all in vain.I removed entire LAMP Stack as well.But Apache2 Ubuntu Default Page loads up.I want to shift to Nginx and try and test my website on to that first.
AskUbuntu Solutions: https://askubuntu.com/questions/50101/how-do-i-remove-the-lamp-stack-... | How to completely remove Apache from Ubuntu 16.04 LTS |
The following code snippet gets all objects under specific folder and check if the file last modified is created after the time you specify :
Replace YEAR,MONTH, DAY with your values.
import boto3
import datetime
#bucket Name
bucket_name = 'BUCKET NAME'
#folder Name
folder_name = 'FOLDER NAME'
#bucket Resource
s3 = bo... |
Is there a way to filter s3 objects by last modified date in boto3? I've constructed a large text file list of all the contents in a bucket. Some time has passed and I'd like to list only objects that were added after the last time I looped through the entire bucket.
I know I can use the Marker property to start from... | How to filter s3 objects by last modified date with Boto3 |
1
The go-runtime doesn't immediately release unused memory to the OS (it might be needed again soon).
So looking at the OS-level, you see only a part of the overall picture.
Using http://golang.org/pkg/runtime/#ReadMemStats you can see another part of the picture.
pkg/runti... |
I have a Go program that allocates lots of maps and slices. Generally a lot of usage, allocation overhead etc. I run it, it loads a lot of data in, and then I query it with a web service.
After I leave it running, when it's read in all its data and isn't doing any queries (i.e should be stable) I see memory fluctuatio... | Why does my Go program's memory fluctuate so much? |
It turns out this was caused by opcache in PHP. Opcache was enabled in the wordpress docker image as follows:
RUN { \
echo 'opcache.memory_consumption=128'; \
echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.max_accelerated_files=4000'; \
echo 'opcache.revalidate_freq=60'; \
... |
I'm on OS X using the Virtualbox driver for docker. Using the official WordPress docker image, I setup a volume from my local machine to map to the container
/Users/gezimhome/projects/zr/src:/var/www/html/wp-content/plugins/zr
When I update files in the host, they show updated in the container but changes don't reflec... | Apache, PHP, WordPress caching issue in Docker container |
The standard escape character for .htaccess regular expressions is the slash ("\").RewriteRule ^([a-z0-9/-]+)-c-([0-9_]+)\.html$ index.php [NC,L,QSA]
^^
RewriteRule ^([a-z0-9/-]+)-m-([0-9]+)\.html$ index.php [NC,L,QSA]
^^The slash will pre... | I have a.htaccessfile that is used by an advanced SEO URL php system installed on my osCommerce site.It has the following rules that work just fine for most cases, but removing periods from my GET parameters:RewriteRule ^([a-z0-9/-]+)-c-([0-9_]+).html$ index.php [NC,L,QSA]
RewriteRule ^([a-z0-9/-]+)-m-([0-9]+).html$ ... | Safely escape period/dot (.) character in .htaccess mod_rewrite regex |
Based on what I have tested, It seems that sed is causing the issue where the output of this command tail --follow "/var/log/my-log" | sed -e 's/^/prefix:/' & does not appear while running the container. The issue can be solved by passing -u to sed which disables the buffering.
The final working boot.sh will be as fo... |
I want to output a logfile from a Docker container and stumbled across something that I don't understand. These two lines don't fail, but only the first one works as I would like it to:
tail --follow "/var/log/my-log" &
tail --follow "/var/log/my-log" | sed -e 's/^/prefix:/' &
Checking inside the running container, I... | Running a background process versus running a pipeline in the background |
It is random bytes, hex encoded. This is the short form returned byhttps://github.com/moby/moby/blob/0eefae8e0db0c3c567e8807f09434a0da3fc1261/utils/utils.go#L171and generated byhttps://github.com/moby/moby/blob/0eefae8e0db0c3c567e8807f09434a0da3fc1261/utils/utils.go#L180. It is not a checksum and once again is random. ... | I am trying to debug a Docker cache issue and I want to check if the cache should match.Step 7 : COPY myfile /home/me/myfile
---> daa0799b47dfWhat does the above ID represent? It doesn't seem to be part of a md5 or sha1 checksum. Can I run a command to check this? | What checksum does Docker use for caching COPY? |
Finally found out the answer thanks to this thread:How to mount a host directory in a Docker containerTurns out the easiest way (on Windows) is to make sure to mount your folders from yourUsersdirectory, and use the--mountcommand when starting the container.i.e.docker run -P -it --name organizr --mount src="/c/Users/My... | New to Docker, and runningDocker Toolboxon Win 10 x64.I'm trying to share (mount) a local Windows path with a container (Portainer in this case) so that the container will save all of it's config settings, locally on my PC, so that I can always upgrade the container while still having it's configuration persistant.I ha... | Unable to share a local windows path with a container in Docker |
So I fgured out there is no way to do this without actually defining schemas for all the objects I want to manage in my own code.
I suppose it would be a good idea for anyone providing open source CRDs to also provide a go library that defines the types for them | I'm writing a custom controller that would listen to a CR I defined and update/create other resources (ones defined by Istio). All the examples out there show either how to handle native resources or custom ones created in the same package. But the resources I want to manage already exist and are registered in the clus... | How to manage existing custom objects with kubernetes go client? |
If you get OutOfMemoryError: heap space, there is nothing you can do. JVM will never throw this before GCing the last byte out of the heap.
However, if you get OutOfMemoryError: GC overhead limit exceeded, then there may be something you can still do about it because this is a "soft" error and there may be a config se... |
Is specifying GC flags a possible solution to OutOfMemory exceptions, or does it have no impact or whether the program will run out of memory?
The GC flags in question are: -XX:+UseConcMarkSweepGC and -XX:+CMSIncrementalMode
I'm asking because I thought the above flags (and GC flags in general) are there to tune JVM ... | Is it possible to fix OutOfMemory error by specify GC flags? |
The answer is it depends.
Typically backups are made to some sort of network storage, so loosing a node doesn't affect the backups. If for some reason the backups are stored locally to the system, then it would depend on if you have HA enabled, and whether you are backing up thee replica forests along with the primar... |
According to ML 9 doco, a database is backed up onto all nodes in the cluster, but the backup process appears to backup the forests that are only local to each node. So for a database with 6 forests across 3 nodes, I may have 2 forests backup files on each node.
If I have a 3 node cluster and lose one node ( so that... | What happens to Marklogic database backup if one cluster node is lost? |
The entire flow for a NiFi instance is stored in a file calledflow.xml.gzin the conf directory (flow.xml.tarin a cluster). The back-up functionality is essentially taking a snapshot of that file at the given point in time and saving it to theconf/archivedirectory. At a later point in time you could stop NiFi and replac... | Using NiFi v0.6.1 is there a way to import backups/archives?And by backups I mean the files that are generated when you callPOST /controller/archiveusing the REST api or "Controller Settings" (tool bar button) and then "Back-up flow" (link).I tried unzipping the backup and importing it as a template but that didn't wor... | Is there a way to import backups in NiFi? |
Browsers differ in the way they handle new protocols.
Check documentation here where they have documented various Operating Systems.http://kb.mozillazine.org/Register_protocolIts actually trivial to register a new protocol in Windows and hook it to a executable. I have done this for some apps:http://msdn.microsoft.com/... | I've noticed that GitHub launched a new "Clone in Mac" button a couple of months ago, which - when clicked - perform an external protocol request:github-mac://openRepo/REPOURLAssuming I want to implement a similar feature for my application, I wonder:how do buttons degrade if the user browser doesn't support external p... | External Protocol Handlers and Modern Browsers |
bytes is 181 MB. That means eitherYour server is physically RAM constrained. You can set whatever you like in your php.ini, but it doesn't matter is the RAM isn't available to the OSSomething (.htaccess, ini_set calls, different php.ini) is overriding the 512 MB you setThe errors you're seeing in your log are related... | We added few products in Magento admin and uploaded few product images as well.After that my product listing page is blank.So i checked my error_log file i saw the below error.PHP Fatal error: Out of memory (allocated 190578688) (tried to allocate 7896 bytes) in /public_html/lib/Varien/Image/Adapter/Gd2.php on line 44... | Magento fatal error lib/Varien/Image/Adapter/Gd2.php |
From Facebook Oct.1 deadline blog post, SSL is not required for sandbox apps. So you can continue to develop apps without SSL certificate as long as you enable sandbox in your app. | I am developing an application in my local machine.I let users invite their Facebook friends with a Facebook request Dialogue.The friends then click the link in their Facebook and are directed to the canvas page and then redirected out of Facebook to my local site.Do I need to have an SSL certificate and if so how can ... | Is the Secure Canvas URL required for Localhost apps in development |
10
Change in syntax helped configure base image size
{
"storage-opts": ["dm.basesize=20G"],
"graph": "/home/ashwaghmare/docker/docker-data"
}
Share
Improve this answer
Follow
answered Jan 5,... |
Moving docker daemon configuration from CMDto /etc/docker/daemon.json. I placed below to change base image size from default 10.7G to 20G but daemon failed to start
{
"storage-opts": [
{"dm.basesize": "10G" }
],
"graph": "/home/ashwaghmare/docker/docker-data"
}
~
| Docker Base Image Size configured in daemon.json |
In order to do that you need to add the following lines to /etc/hosts on your computer (%WindowsDir%\system32\drivers\etc\hosts for Windows, seehttp://en.wikipedia.org/wiki/Hosts_%28file%29fore more):127.0.0.1 domain.tld www.domain.tld domain2.tld www.domain2.tld | I have some nginx directives containing server_name. I want to test my config on localhost.I thought all I would need to do is to spoof the HTTP host header (using tamperdata firefox extension) but that doesn't seem to be working correctly (I'm getting hits on the wrong handler, not sure if my config is broken or my te... | How do I test Nginx using server_name on localhost? |
The Singularity equivalent of docker image ls is ls *.sif.
This is one of the key differences between Docker and Singularity: a service with a centralized collection of local images available to all group members vs. images as files that can be run by anyone on any computer with singularity installed. The cache listin... |
Is there a singularity equivalent to docker image list?
The Singularity 3.8 documentation states that
All cache entries are named using a content hash
which makes sense when checking for identical layers/images, but has no semantic meaning whatsoever. Compare this to docker's docker image list which lists the images... | Singularity equivalent to "docker image list" |
Try adding this to your Root/.htaccess :RewriteEngine On
RewriteBase /
RewriteRule ^en/?$ index.html [NC,L]
RewriteRule ^(ru|ua)$ index.$1.html [NC,L]This will redirect "/en" to "/index.html" and "/ru" to "index.ru.html". | I have a small portfolio landing page based on js/css/html. No frameworks/CMS, just pure static html. Entry point isindex.htmlfile with content on English language.I want to use translations on my site:index.ru.html,index.ua.html, but I don't want to see any*.htmlorindex.uain the address bar. User can change a language... | Routing in static html landing page |
After a while I want to return back to this question and leave an answer with a reference to official kubernetesdocs:echo -n 'admin' | base64
YWRtaW4=
echo -n '1f2d1e2e67df' | base64
MWYyZDFlMmU2N2RmPay extra attention to-n, because it guaranties that after decoding your secret key will not contain 'new line symbol'.Sh... | I want to create a secret for my kubernetes cluster. So I composed followingdummy-secret.yamlfile:apiVersion: v1
kind: Secret
metadata:
name: dummy-secret
type: Opaque
data:
API_KEY: bWVnYV9zZWNyZXRfa2V5
API_SECRET: cmVhbGx5X3NlY3JldF92YWx1ZTE=When I runkubectl create -f dummy-secret.yamlI receive back following ... | Can't create Secret in Kubernetes: illegal base64 data at input |
I got a support answer today that "Other" cronjobs are no longer working and menu entry will be gone soon. | I'm trying to setup cron on OVH web host.
The script to be executed is located in :
/home/[login ftp]/www/script.shSo I've created a cron on the OVH interface with this setup:Command to execute : ./www/script.shLanguage : OtherThe script contains :#!/bin/bash
echo "Hello World"If I execute the script on ssh console, ev... | OVH - Executing cron |
-1I have found something to avoid this error:io.set('transports', ['xhr-polling']);So socket.io does now AJAX calls, it does the job but certainly a way much more slowly, so if someone has the real key to this issue i am still very interested!ShareFollowansweredMay 15, 2013 at 2:40LudoLudo5,1401515 gold badges5555 silv... | I am trying to make running my app (using socket.io) under nginx, and i get anWebSocket connection to 'ws://...' failed: Unexpected response code: 502error on the server side.
I have read that nginx suport the websockets since thev.1.3so i just have upgrade to the nginxv1.4.1 (stable).Here is my conf:server {
li... | "response code: 502" using socket.io and nginx 1.4.x (stable) with proxy_pass |
Is there a way to check if there is still more memory that needs to be freed?
Use a memory debugger. If you are working in Linux (or similar), then the canonical example is Valgrind.
If I leak memory in my program, is the memory automatically freed when my program dies?
On most modern OSes, yes, the OS reclaims a... |
I have code that looks something like,
#include<stdlib.h>
#include<string.h>
char** someArray = NULL;
size_t numberOfEntriesInArray = 0;
void addToArray(char* someString){
someArray = realloc(someArray, (numberOfEntriesInArray+1) * sizeof(char*));
someArray[numberOfEntriesInArray] = malloc( (strlen(someString) + 1... | Is it possible for me to know if I have cleaned up properly in C? |
I got it working by adding acontainer_namefor db container. Mydbcontainer have different name (app_name_db_1) and I was connecting to a container nameddb.After giving the hard-codedcontainer_name(db), it gets working. | I'm running a ruby on rails application in docker container. I want to create and then restore the database dump in postgres container.
But I'mBelow is what I've done so far:1)Added bash script in/docker-entrypoint-initdb.dfolder. Script is just to create database:psql -U docker -d postgres -c 'create database dbname;'... | Error: Postgres database import in docker container |
In your dockerfile try using ubuntu:jammy, that worked fine for me. | I am creating a docker image FROM ubuntu:21.10All worked fine a couple of weeks ago but today I get:Step 3/76 : RUN apt-get update && apt-get -y upgrade
---> Running in 7f2afb2074e8
Ign:1 http://archive.ubuntu.com/ubuntu impish InRelease
Ign:2 http://security.ubuntu.com/ubuntu impish-security InRelease
Ign:3 http://ar... | Docker image ubuntu:21.10 produces The repository 'http://security.ubuntu.com/ubuntu impish-security Release' does not have a Release file |
<div class="s-prose js-post-body" itemprop="text">
<p>The issue is here: <code>CMD service apache2 start</code> When you execute this command process <code>apache2</code> will be detached from the shell. But Docker works only while main process is alive.</p>
<p>The solution is to run Apache in the <strong>foreground</s... | <div class="s-prose js-post-body" itemprop="text">
<p>I am trying to create a Dockerfile that will start apache automatically. Nothing has worked. But If I log into the container and run <code>service apache2 start</code> it works. Why can I not run that command from my Dockerfile?</p>
<pre><code>FROM ubuntu
# File Au... | How to start apache2 automatically in a ubuntu docker container? |
When you are assigning the CodeBuild project to a subnet, it must be a private subnet with a NAT gateway that is connected to the internet gateway.
I had this same issue, but I was quite early in the project so I could tear it down and start again.
From the VPC Dashboard I used the 'Start VPC Wizard' button where I ... |
I am experimenting with CodeBuild but have reached a dead-end. My build always fails with the error message:
Build does not have internet connectivity. Please check subnet network configuration.
I checked the VPC configuration (subnet, security groups), and they seem okay. To test internet connectivity, I launched a... | AWS CodeBuild – Build does not have internet connectivity. Please check subnet network configuration |
Just don't pass the MONGO_INITDB_ROOT_USERNAME and MONGO_INITDB_ROOT_PASSWORD
env vars when creating the container.
|
I want to disable the default auth
(avoid to use mongo --authenticationDatabase "auth_db").
in mongo using docker-compose, here is my docker-compose file:
version: "2"
services:
mongodb:
image: mongo:latest
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
- MONGO_INITDB_... | disable default authentication in mongo docker |
Found the answer, so I'll post it here.
The problem was I was not providing the right path to gsutil and I didn't have the rest of the syntax correct.Find the correct gsutil path by running:
gsutil version -lIn my case, the corrected cron was:
00 13 * * 1-5 /snap/google-cloud-sdk/147/bin/gsutil cp gs://mybucket/myfile.... | I'm using a virtual machine on GCP, and every day I upload a new file (same name) to Storage, then use the Cloud Shell Terminal to upload the file to the virtual machine using:
gsutil cp gs://my_bucket/my_file .I want to create a cronjob that will load the file to the VM at a scheduled time.Here's my cron:
00 13 * * 1-... | Crontab to upload file from Google Cloud (gsutil) |
It turned out that Kaspersky was responsible for this: I upgraded my Kaspersky to a new version (21.2.16.590) and now my problem is fixedKaspersky SSL issue on localhostShareFolloweditedAug 22, 2022 at 9:21answeredNov 18, 2020 at 18:25TheMahTheMah43077 silver badges2020 bronze badgesAdd a comment| | I'm working on my project with SSL-enabled in Visual Studio 2019 16.7.3, everything was ok; Yesterday I updated my Windows 10 to version 2004 build 19041.508 and after that, any projects with localhost certificate goes wrong! I created a project with default asp.net core template and it has the same error.Testing with ... | Weird localhost certificate problem after windows 10 update 2004 in all of my browsers! How can I fix this? |
Maybe your model can't generalize well. Maybe your are training too much, which can cause over-fitting or even your dataset is small.You can try testing on a never seen data (a new tomato picture) and sees if it does well.Double-check your config files, if something is incorrect there, like you are using a yolov4 cfg i... | I am implementing YOLOv3 and have trained the model on my custom class ( which is tomato). I have used the darknet model 53 weights (https://pjreddie.com/media/files/darknet53.conv.74) to start my training as per the instructions provided by many sites on training and object detection using YOLOv3 . I thought it was no... | YOLOV3 object detection not detecting the object and bounding boxes are not bounding the objects |
You are correct, it shouldn't make any difference in terms of memory - you must have another reference tooldMapfloating around that's preventing it from being GC'd (if object1 and object2 both point tooldMap, and you update object1 to point tonewMap, then object2 will still be pointing tooldMapwhich will prevent it fro... | I have an old and new map that contain hundred thousand entries:Map<State, CostAndIndex> oldMap = new LinkedHashMap<State, CostAndIndex>();
Map<State, CostAndIndex> newMap = new LinkedHashMap<State, CostAndIndex>();At the end of each iteration of a loop, I was simply doing this:oldMap = newMap;With that approach I was ... | Why does a hashmap clear() free more memory than a pointer reassignment |
I believe theAWS X-Ray servicemay be able to provide this type of monitoring.In the past I've usedNew Relicfor this sort of thing.You could probably also pull this information from your ELB logs, and build reports using theAthenaandQuickSightservices. That's a lot to set up though. | I've been using AWS only for a while and wasn't even looking at other cloud platforms but recently I saw a demo of Application Insights in Azure where a guy showed how he was monitoring the performance of a web application. I need the same for my application in Amazon: to have tools which would allow me to understand w... | Web app performance monitoring on AWS |
The upcoming Podman 3.0 supports the Docker REST API well enough to be used as back-end for docker-compose. It is planned to be released in a few weeks (seePodman releases).Caveats:Running Podman as root is supported, but not yet running as a normal user, i.e. running "rootless". (Seefeature request)Functionality relat... | How i use docker-composer file in podman?This examples:version: '3.7'
services:
gitea:
image: gitea/gitea:latest
environment:
- DB_TYPE=postgres
- DB_HOST=db:5432
- DB_NAME=
- DB_USER=
- DB_PASSWD=
restart: always
volumes:
- git_data:/data
ports:
- 3000:30... | Docker-compose with podman? |
locations are mutually exclusive, i.e. only one may match at a time. When the first location (regex) matches, directives in the second location / are ignored, and Nginx will proceed with whatever defined outside of this location block (if not defined). In your case, it's apparent that root /usr/share/nginx/html is def... |
my application is working fine at
location / {
include uwsgi_params;
uwsgi_pass unix:/tmp/socket_file.sock;
}
but when i include static assets location location ~* .\(css|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rtf)it gives 404 not found error for css,js files
server {
listen 8080;
server_name your... | how to resolve nginx static assets not found error |
You can't. GitHub does not have a web API call to do this.The full API can be foundhere.What can you do?Since we don't have shell access on the Chromebooks...You can always revert locally and then push your code with-fto force the code to be pushed, but since you don't have command line to do it you will need to manual... | I'm teaching a HTML class on Chromebooks. We're using GitHub for both revision control and I'd like to show my students how to revert a commit. Since we don't have shell access on the Chromebooks I was hoping to find a way to do this online, through the GitHub website. Is that possible? I'm starting to think it might n... | Is it possible to revert a commit through GitHub's web interface |
I think you got the answer, but to confirm that its a disk try this commanddf -hyou will see thatFilesystem Size Used Avail Use% Mounted onTo confirm your memory try this command.free -h | I'm trying to figure out what size instance I need for my webapp, but am confused by this:A t2.micro only has 1 gig of memory, but yet this looks like I have 8.There's no swap usage so how much memory does my instance actually have?Thanks. | AWS - Why does AWS EC2 t2.micro instance show 8GB RAM? |
To solve this issue, open the file, save it without further changes to a the same file but now with UTF-8 encoding. One editor that let you do this isVisual Studio. See alsothisSO question. Start the analysis again and your warnings should be gone. | Our Sonar Build Environment details as follows:• SonarQube Server Version - 5.6.6 (64-Bit).
• Sonar-scanner- Version - 3.0.3.778.
• SonarQube Server Operating System – Ubuntu 14.04.5 LTS (64-Bit).
• sonar-csharp-plugin-5.11.0.1761.jar
• Sonar Build Machine OS – Windows-7(64-bit)Problem Description:I am scanning.csfil... | SonarQube shows Warn - Roslyn encoding is 'UTF-8' for C-Sharp |
0
NO – AWS RDS does not give a direct/automatic option of creating a .bak file which you can get in to your local system and audit.
YES – There are ways to do this. If your database is :
small – Generate script from SSMS, with all schema and data. this will create a .sql ... |
we need make regular backup and bring it localy for auditing porpouse.
How we can have ms sql server backup from an aws rds ms sql server database ?
Any automatic way to do it?
| Ms sql server, backup and bring it local from aws rds ms sql server database |
4
busyBox is not support Wrapping line .
see: https://en.wikibooks.org/wiki/Learning_the_vi_Editor/BusyBox_vi
"No wrapping of long lines. Long lines are displayed via side-scrolling."
Share
Improve this answer
Follow
... |
I use command line in docker,the os is alpine linux, when use vi command,if a line is too long,it can't auto wrap, so the end of the line cannot be displayed.
I tried several settings, such as: set columns=,set wrap,stty columns... all settings are not in effect.
Does anyone know how to set it up? Thanks a lot.
| How to set busybox vi auto wrap when a line too long? |
after digging docs, came to know that"helm.sh/hook-delete-policy": "before-hook-creation"is not available in Helm version2.7.2it is available in2.9.0 | I have the below annotation for my secretsannotations:
"helm.sh/hook": "pre-install,pre-upgrade"
"helm.sh/hook-weight": "1"
"helm.sh/hook-delete-policy": "before-hook-creation"it's giving me the following error when I try to upgrade.Error: UPGRADE FAILED: secrets "my-secret" already existsMy expectation ... | Helm hook not deleting previous release resource on upgrade |
+50I think you're right, there are two options. The first is to create a secure connection between the two servers and use the .Net app to proxy the traffic, but that defeats the point.The second is to authenticate the use with both servers. You could do this by having the .Net server somehow pass data about the active... | I have two applications.R Shiny app hosted on EC2Asp.net application hosted on Azure.The asp.net app preforms user authentication and is used to organize a whole data science pipeline. A user provides data, the data scientist transforms the data and delivers a shiny app. Finally, the user opens the Shiny app within the... | How to securely integrate EC2 hosted Shiny app into asp.net project |
Apparently the only way to deal with this is to never to use the GitHub repo browser and amend any commits where emojis have been added. | I can find plenty of information aboutaddingthem. However,I do not want them in the first place. It seems like Github is adding these to my commits at random as I am most certainlynotputting them in myself. I do not want "boom" or "camel" icons in front my commits...Is there a way to completely disable this "feature" a... | How to remove emojis from my Github commits? |
The WP-SMTP plugin is trying to communicate with whatever SMTP server you have configured over SSL V3. Recently the web has been moving away from SSL V3 due to security concerns. You will want to see if there is another way you can configure your WP-SMTP plugin to connect to your mail server. That plugin does have a "... | I have 8 websites on wordpress on a shared hosting, from last few days, my send inquiry page is not working due to SSL V3 error, i am usingWP-SMTPandCONTACT FORM 7plugins. can any one suggest me what is the issue.I asked to the host provider, and they replied me to contact Plugin Developer.error is like as mentioned be... | sslv3 alert handshake failure on wordpress |
cronman cronIntroduction to cron:http://www.unixgeeks.org/security/newbie/unix/cron-1.htmlFrom this intro:In the /etc directory you will probably find some sub directories called 'cron.hourly', 'cron.daily', 'cron.weekly' and 'cron.monthly'. If you place a script into one of those directories it will be run either hour... | I have a working registration component purchased for Joomla that stores the users information in a database. I have a few hidden fields that need to match up exactly with the inputs of other fields, however the component does not allow fields to change dynamically on registration.I'd like to use a cron job to select t... | PHP Script to Edit Database Fields |
40
Here are the commands:
git branch –D branch-name (delete from local)
git push origin :branch-name (delete from stash)
Note the colon (:) in the last command.
Share
Improve this answer
Follow
edited Aug 5... |
I want to delete a branch from Atlassian Stash (a sort of github clone) in order to revert my changes. Please let me know what command will do this?
What I know is git branch –D prod-652 deletes the branch from local. How can I delete it from Atlassian Stash?
| How to remove branch from a remote (on Atlassian Stash/Bitbucket) |
The clients for all the AWS services use HTTP calls under the hood. So irrespective of which service you are working with, DynamoDB in case of this question, the answer is the same, thatAWS recommends using a single clientinstance for multiple requests.Here is an AWS forums questionhttps://forums.aws.amazon.com/thread.... | We have a server application that read/write a lot and in parallel in DynamoDB.Today we inject a newDynamoDBwith newAmazonDynamoDBClientfor every injection point (CDI dependent scope). Mostly, a new request in our app, injects aDynamoDBinstance.I knowDynamoDBis thread-safe and I can change it's scope to@ApplicationScop... | AWS Java SDK - What's faster? A single instance of DynamoDB client (@ApplicationScoped) or creating a new one for every request? |
Usually when I merge my feature branch into master after a successful code review I run:git branch -d <branch-name>
git push origin :<branch-name>Note: don't forget the:before the branch name when you push.The first command deletes your branch locally and the second one deletes the remote one.If this becomes a common p... | I'm working on improving team processes around merging and consolidating changes and would like to use Pull Requests in GitHub as a way to better manage changes.My one concern about this is that I want to ensure that after merging a pull request, that the branch that has been merged is removed (I want the commits to st... | Github - Cleaning up branches after they're merged as part of a pull request |
7
This topic is old but thought I would share my solution. To get Firefox, Chrome and Safari to behave consistently, you have to set an unload handler on the page that needs to be reloaded when going back, and also use cache busting headers.
Example
In HTTP Headers
Cache-Co... |
I have two pages, A and B. The flow is as follows:
Go to A
javascript Ajaxes a bunch of content to add to A, forming A'
go to B
pressing [Back] goes back to A, not A', without all the Ajaxed content
Has anyone else noticed this, and if so, how do you fix it?
If Chrome was caching the A' state just before going to B... | Chrome back button: only giving cached version of initial page, without any Ajaxed content |
No. You cannot associate an Elastic IP (EIP) address with an AWS Lambda function.
Well, actually you can, but I wouldn't recommend it. When a Lambda function is associated with a VPC, it connects via an Elastic Network Interface (ENI). It is possible to attach an EIP to an ENI. This also grants access to the Internet ... |
I want to select specific Elastic IP my own when my lambda function executed.
my service has to respond to several situations, and by user's attributes.
Could I write code in a lambda function, that can choose specific my own elastic IP?
I had searched for this. but old information says it cannot do.
but recently I ... | How to choose Elastic IP when my aws lambda function execute |
For CA certificates you definePathinstead ofFileSSLCACertificatePath "c:/wamp/bin/apache/apache2.4.9/conf/key/gd_bundle-g2-g1.crt"should beSSLCACertificateFile "c:/wamp/bin/apache/apache2.4.9/conf/key/gd_bundle-g2-g1.crt"ShareFollowansweredJan 27, 2019 at 11:07Romeo NinovRomeo Ninov6,98711 gold badge2525 silver badges3... | I'm setting up a SSL certificate in WAMP 2.5 and Apache 2.4.9. As I un comment
Include conf/extra/httpd-ssl.conf in http.conf, Wamp not starting. Here is my ssl confg file and httpd.conf. Please have a look and help.SSL Conf FileHttpd.conf fileError in Apache error log
[Sun Jan 27 10:04:35.018678 2019] [ssl:warn] [... | Wamp not start after configured SSL conf file |
SonarJSis a plugin for analysing JavaScript code. Anyway it does not provide any rules specific for AngularJS framework.ShareFolloweditedFeb 6, 2017 at 13:22István5,1071010 gold badges3939 silver badges6767 bronze badgesansweredDec 22, 2016 at 12:21Elena VilchikElena Vilchik1,09066 silver badges1212 bronze badgesAdd a ... | I need to analyse angularJS code with sonarqube, but how? there is no plugin available for angularJS in sonarqube.I have tried to find possible solution but it is not helping anymore. | sonarqube code analysis with angularJS |
Ad 1. You are looking for S1448 and S1820. Check:https://rules.sonarsource.com/java/RSPEC-1448https://rules.sonarsource.com/java/RSPEC-1820Ad 2. You can change default value with sql update on database. Check this sql select:SELECT TOP 1 * FROM [dbo].[rules_parameters]
WHERE rule_id =
(SELECT TOP 1 [id] FROM [dbo].[ru... | Is there any sonar rule to control the maximum number of functions inside a Java or .Net class?I saw ruleFiles should not have too many lines of code : squid:S00104It has the default value 750. Can anybody please tell me how to change the default value? | Sonarrule to control maximum number of functions inside a class |
0
You need to change the regex for graphql path like the following:
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: polls-ingress
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/rewrite-target: /$1
nginx.ingr... |
I have nginx-ingress setup for both frontend and backend using below yaml file.
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: polls-ingress
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/rewrite-target: /$1
nginx.ingress.kubernetes.io/service-upstrea... | Kubernetes Ingress Path |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.