Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
If you need to export the key (to install the same cert in other server for example) you need to mark private Key as exportable. Otherwise that certificate wont work in any other machine (as the key will be different) I do not think its a best practise tho. | I'm writing to ask for this question: when a new wildcard SSL certificate request is made from IIS (wizard), does the "private key exportable" option enabled ? Because once installed, I need to export the new certificate together with private key.Thank you,
Luca | IIS: SSL certificate request and private key exportable |
We can't fetch the cron expression from database in static block as the Job Classes are loaded before the gorm is initiated. We ran into similar usecase where the cronExpression had to be read from database. Here is how we solved it.Don't define the triggers at Job Level, Means that the job will not be scheduled by def... | Is it possible to assign a property for cronExpression value as below classRecursiveNotificationJob {
def reminderService;
def grailsApplication
String cronValue = "0 0 8 * * ?"
static triggers = {
cron name: 'recursiveNotificationTrigger', cronExpression: cronValue
}
def execute() {
... | Execute sql in grails job groovy file to configure value for cron trigger |
does the compilation create a new costumed editor and I have to use it for the new functionality of the custum module (GodotBluetooth) to be supported?
You can build the editor, following the instructions for your platform (see Compiling).
However, if you have a module you need to build the export templates. Which... |
I am learning GODOT, and I am following this solution below to connect godot to arduino via bluetooth with a custom module, I managed to compile the Android Export Templates successfully, and when I get to the next step I’m stuck and I don’t want to mess up all the work in the source file because I don’t understand t... | GODOT- how to deal with godot source file, custom modules , and how to import projects? |
3
This is how I updated my nginx config file and it worked
server {
listen 80;
root /var/www/html/public;
index index.php index.html index.htm;
server_name myhost.com;
if (!-e $request_filename) {
rewrite ^/(.+)$ /index.ph... |
My website was working fine with Apache .htaccess rules. Now I have sifted it to nginx. I need help to convert following apache rules to nginx directives/configurations
Apache .htaccess rules
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /public
RewriteRule ^(/)?$ index.php/$1 [L]
RewriteCond %{REQUEST_FIL... | Convert .htaccess to Nginx Directives |
Use :RewriteEngine On
RewriteRule ^([0-9]+)/([^/.]+)/([^/.]+)/?$ /index.php?id=$1&category=$2&title=$3 [QSA,L]And add this code to yourhtml <header>:<base href="/">OR<base href="http://www.domain.com/">To fix relative css and js links | I'm trying to convert my app links, so that a link like this:http://localhost/index.php?id=13&category=Uncategorized&title=just-a-linkgets converted to this:http://localhost/13/Uncategorized/just-a-testso far I was able to do it using:RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)/([^/]*)$ /index.php?id=$1&category=$2&t... | mod_rewrite issues and php |
By default, rsync uses the quick check method which only transfers files that differ in size or last-modified time. As you report that the sizes are unchanged, that would seem to indicate that the timestamps differ. Two options to handlel this are:
Use -p to preserve timestamps when transferring files.
Use --size-on... |
I need to compare two directories to validate a backup.
Say my directory looks like the following:
Filename Filesize Filename Filesize
user@main_server:~/mydir/ user@backup_server:~/mydir/
file1000.txt 4182410737 file1000.txt 4182410737
file1001.txt 8241410737 - ... | How can I compare the file sizes match between duplicate directories? |
You could define a mapping between requests and cert functions like so:// delegate definition for cert checking function
private delegate bool CertFunc(X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors);
// mapping between outbound requests and cert checking functions
private static readonl... | I have a multi-threaded application that connects to many URLs and needs to inspect SSL certs on only certain threads.I know that I can useServicePointManager.ServerCertificateValidationCallbackbut that works in async mode and across all threads at the same time.I need need the inspection to happen in the current threa... | Inspect server/SSL certificate in the current thread only (.NET) |
4
I ran into the same issue and it appears to be fixed with the following configuration;
location /grpweburl
{
proxy_pass http://localhost:5000/grpweburl;
proxy_request_buffering off;
proxy_buffering off;
proxy_connect_timeout 600s;
proxy_send_timeout ... |
I am using a unary RPC method. I have a server that I have configured under the Nginx web server. Following is the Nginx configuration:
server {
listen 80 http2;
server_name test.grpc.tester.local;
access_log /var/log/nginx/test.grpc.tester.local.access.log;
error_log /var/log/nginx/t... | Getting 504 timeout error in a GRPC call under Nginx web server |
You can prefix any command with a - to indicate to make that this command is okay to fail:
normal_target:
-gcc -o main main.c
next command here
Another way would be to simply test for failure in the commands:
normal_target:
if gcc -o main main.c; then \
echo succeeded; \
... |
For instance, an error L6220E would be generated during the compilation (since I am using the ARM compiler, this error flag means out of internal flash memory). What I want to do is to continue the compilation even though the error was generated. Is there any way I can catch the command error and run other commands? L... | How can I catch a command error and continue the compilation in a makefile? |
the suspects are neither the Dockerfile nor the docker-compose. The problem is with thenginx. It was missing thewwwin the alias.what works is:server {
listen 80;
server_name localhost;
# serve static files
location /static/ {
alias /www/static/;
}
# serve media files
location /media/ {
alias /ww... | I'm trying to understand what am I doing wrong when trying to copy my static/media folder to staticfiles/medialfiles on docker.This is what I have:settings.pySTATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
MEDIA_URL = '/media/'
MEDIA_ROO... | django static files are not copied to saticfiles folder on docker's container |
0
You have an error in your try_files statement. Remove the =404 so that the /index.php$is_args$args is the last parameter.
For example:
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
The last parameter of try_files statement can be a URI, status code o... |
I'm refactoring a very old application and i'm stuck on Nginx configuration; All my tries ended up the PHP script being downloaded instead of executed, or ended up with "File not found"
Directory Structure
public
│
└─── front
│ │ index.php
│ │
│ │
│ └─── web_www.example.com
│ │ index.php
│ │... | nginx + fpm rules problem; File not found or script is downloaded instead of being executed |
First offneverparse the output ofls, readTHISto understand why. Next, your script can be greatly improved by usingpgreprather than using awk to parse the PID from a grep on 'ps aux'. Also, your script breaks horribly in the case where you have more than one PID returned. And finally, when writing shell scripts try n... | I have a bash script that I am run to check to see if one of my programs has hung, and if it has kill it. The script works fine if ran from the command line, but if I schedule it with cron it does something very strange.Basically the script (below) gets the PID of my program and gets its created date/time from its entr... | Bash script and cron anomaly |
19
I solved the issue with "Credential Helper".
Navigate from Android Studio -> Preferences -> Version Control -> Git,
then tick the check box of "Credential Helper" -> Ok. Now, try to push again
Share
Improve this answer
Follow
... |
I am trying to push within Aptana but am getting the following error. I have successfully pulled, but can't figure out why my push won't work.
/home/jeni/apps/Aptana_Studio_3/plugins/com.aptana.git.core_3.0.0.1350339960/os/linux/askpass. tcl: 3: exec: wish: not found
error: unable to read askpass response from ... | Github push error. unable to read askpass & could not read Username |
Yes, JBoss caches authentication information by default for a few minutes.To disable caching, set DefaultCacheTimeout to 0 in the configuration for the JaasSecurityManagerService. The configuration is in the "jboss-service.xml" file.For more info and various ways to flush the cache, seeCachingLoginCredentialsat jboss.o... | When testing various authentication solutions (my own LoginModule etc) in JBoss, it seemed to me that sometimes when I redeployed a change or otherwise provoked the login form to show, that JBoss didn't actually call the authentication module.Just wondering if there is some type of short term caching going on?I tested ... | Does JBoss cache authentication information? |
You can connect to your DB from local machine using kubectl port-forward command.
If you don't already have a pod running in the cluster, you can create it with the command:kubectl run ${NAME} --image=alpine/socat -it --tty --rm --expose=true --port=${DB_PORT} tcp-listen:${DB_PORT},fork,reuseaddr tcp-connect:${DB_ENDP... | I have a MySql RDS database that is not publicly exposed. I also have a pod that can act as a bastion withkubectl exec. How would I be able to connect my local MySql Workbench to this RDS database? | How to use a local database client against a cloud database if the only access is through a bastion pod |
If your timestamp has enough precision so that you can guarantee it will change any time the resource changes, then you can use an encoding of the timestamp (the header value needs to be ascii).
But bear in mind that ETag may not save you much. It's just a cache revalidation header, so you will still get as many requ... |
So in one of my projects i have to create a http cache to handle multiple API calls to the server. I read about this ETag header that can be used with a conditional GET to minimize server load and enact caching.. However i have a problem with generating the E-Tag.. I can use the LAST_UPDATED_TIMESTAMP of the resource ... | What is the best way to generate a ETag based on the timestamp of the resource |
Just make the target of your ssh tunnellocalhostor127.0.0.1.ssh -L local-port:127.0.0.1:container-port docker-hostWould forward yourlocal-porttolocalhost:container-portondocker-host. No need to expose the container port to the external network.ShareFollowansweredApr 5, 2017 at 20:36Dan LoweDan Lowe53.6k2020 gold badges... | Hopefully straightforward. I know how to bind to the host only with-p 127.0.0.1:$HOSTPORT:$CONTAINERPORTThe issue I'm encountering is that doing this preventing me from accessing the mapped host port over an ssh tunnel to the docker host.Is there way to do this without having to block the port upstream from the docke... | How can I expose a Docker container port only to localhost so that it is also accessible via an ssh tunnel? |
It will be the opposite of your write XML/JSON.
Use openFileInput to get the FileInputStream. Read the stream to a string and then parse it. | I am currently using XML or JSON webservices in my various applications.I just would like to know what would be the easiest way to cache theses answers somehere in text files.I have been thinking about databases, but this seems quite overcomplicated!So, what I would like to do isto store these xml/JSON files in phone m... | Best way to cache an XML/JSON response into my application. Full text file? |
Thechanges()function takesrange-vectoras input. Proper use ofrange-vector-selectorshould fix your problem.Updated query:changes(sh:wls_status_status{prd_pod="cddn-test-mc",wlsname="ess_soaserver_ha"}[7d]) | My Prometheus Query returns me following metrics data Say(Machine status)+-------+------------------------------------------+---------------------------------------------+
| Time | Machine group = "A", Machine name ="one" | Machine group = "A", Machine name = "two" |
+-------+----------------------------------------... | Prometheus Query to identify changes for a metrics |
As other have pointed, probably you are going to find a lot of nasty conflitcs, but in case you want to proceed this is what I would do:
Create a branch and cherry-pick one by one all the commits you want, then merge into master using --squash.
|
I was recently contributing to a repo for first time, and during that I often committed for each milestone, now I want to deliver it in single clean commit.
The commits are not consecutive continuous, it is scattered between commits from different other committers.So doing soft reset wouldn't work here.
Thanks in adv... | git squash all scattered commits by author into a single commit |
The extensions in filenames do not matter.foo.bar.co.uk-key.pemisfoo.bar.co.uk.keyandfoo.bar.co.uk.crtis either justfoo.bar.co.uk-crt.pemor the concatenation offoo.bar.co.uk-crt.pemandfoo.bar.co.uk-chain.pemdepending on where/how it is used.PEM is just the name of the format to encode either the certificate or the key.... | There is a very similar question here that but as far as I can tell it deals with one input PEM file whereas I have three, one of which is a chain file.Convert .pem to .crt and .keyI have these three files generated by a LetsEncrypt helper program (win-acme).foo.bar.co.uk-chain.pem
foo.bar.co.uk-crt.pem
foo.bar.co.uk-k... | How can these PEM files (including chain) be converted to KEY and CRT files? |
Establishing a database connection is a pretty expensive operation. Ideally a web application should be using a connection pool, so that you create create pool of database sessions initially and they remain there for the life of the application. The app tier will ask for a connection from the pool as it needs to intera... | I have a web application built by ASP.NET Web API and the database is Oracle.When I published the site on the IIS and run it, I recognized the following:I found many records in the viewDBA_AUDIT_SESSIONand that's recordsLOGOFF/LOGONin the order.After that, I let the site open for a while on a tab in the Chrome Browser ... | LOGON/LOGOFF in the view DBA_AUDIT_SESSION |
A process' return status (as returned by wait, waitpid and system) contains more or less the following:
Exit code, only applies if process terminated normally
whether normal/abnormal termination occured
Termination signal, only applies if process was terminated by a signal
The exit code is utterly meaningless if you... |
I've wanted to test if with multiply processes I'm able to use more than 4GB of ram on 32bit O.S (mine: Ubuntu with 1GB ram).
So I've written a small program that mallocs slightly less then 1GB, and do some action on that array, and ran 5 instances of this program vie forks.
The thing is, that I suspect that O.S kille... | Return code when OS kills your process |
After carefully tracing theGitFlowdiagram, I convinced myself that there shouldneverbe any conflicts when merging into master (that is if the process is strictly followed). The reason, is because of the timeline:Develop branch is created from MasterFeatures are committed on Develop branchRelease branch is created (whi... | I have been looking for a good branching model in git and foundGitFlowwould fit our development environment pretty well. However, one outstanding question is how and where to test our releases.Release branches sound like a place to run all of the regression tests prior to the release. However, release branches are the... | GitFlow: Properly Testing Release Branches & Master |
+25As the answer ofthisquestion says, an Issue will only close if it's merged into the main branch. There is no such option to do what you said in your question.the referenced issue will automatically be closed when the PR is merged into the default branchThat's why in 4 years nobody could tell you how to do this.I thi... | To close a issue in Github via a PR you just need to add a key phrase like:Closes #100in the body of your PR and as soon as PR is merged into the default branch Github automatically closes the issue.We merge our PR into branches under a version number (say branch2.0.0). but the issue remains open until we merge it into... | How to close issue via PR whose target is not the default branch |
0
I can confirm that
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
is correct.
I have a running location block:
location / {
proxy_pass http://127.0.0.1:3333;
proxy_http_version 1.1;
proxy_cache_bypass $http_upgrade;
proxy_set_header Upgr... |
I have a nginx as a reverse proxy in a containerised application. I have an issues in which when I add proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; my deployment does not work.
here is the part of location block in my nginx.conf file.
location @app {
proxy_pass http://127.0.0.1:3000;
proxy_... | can we place proxy_set_header X-Forwarded-For after proxy_pass |
Forkubectl cpflag--all-namespacesdoesn't exist, you can check it withkubectl cp -h.In your case I would go with simple bash loop like this:for ns in namespace1 namespace2; do kubectl cp ../docker/scripts/upload_javadumps.sh ${POD}:/opt -n $ns;done | Trying to copy and execute a bash script in a POD (which has one container)kubectl cp ../docker/scripts/upload_javadumps.sh ${POD}:/opt -n apmThis commands works perfectly, But we have multiple Namespaces, Hence I wanted to use --all-namespaces like shown below
which errors out saying, Error: unknown flag: --all-nam... | Trying to copy files to Pods with `kubectl cp`, But getting Error: unknown flag: --all-namespaces |
1
Ideally you would describe your entire setup in one or multiple docker compose files. See the documentation for details.
Concerning networking and linking your services:
Docker compose supports networking. You can define networks and all services which are in the same net... |
at the moment of speaking I have a bunch of services running each one on its own container
Every repo of code has its own Docker file and docker compose file in order to bring up the service on my local dev-machine
Everything is fine and I'm able o access each service at
http://localhost:[service mapped/exposed port]
... | How to orchestrate multiple microservices on local env? |
Git was designed to be used with a repository for each developer. Make an account for each person, then designate one as the maintainer of the master branch. Everyone else will fork the master, and they can work on whatever they want on their own. Once they finish something they will send you a pull request and you... |
Does anyone know of a way to allow multiple users work from the exact same repository on github or springloops?? The way that we've tried this is sharing the same key/pair with all 4 machines being used, but it's not working. one account works fine, but then we are unsure how to really coordinate the entire push/pul... | multiple users and a single repository on github or springloops |
There actually isn't a queue, but while an approval action is in-progress it holds the stage "lock" for that stage so that the change in that stage does not change underneath you while you run manual testing.While that stage lock is held, there is a "slot" for the change waiting to be promoted into that stage when the ... | I have been using AWS for more than a year now. Lately, I have been focusing on building a CI/CD Pipeline.My pipeline has 4 stages:Source(Github)Testing(using CodeBuild)Staging(deploys to Staging)Manual ApprovalProd(deploys to Staging)According tothisAWS Doc,If no response is submitted within seven days, the action is ... | How to ignore AWS CodePipeline Approval automatically in less than 7 days |
There appears to be two answers: the exceptionally verbose one that you're trying has a solution, or the more succinct one which doesn't prompt stack overflow questions for future readers to understand:Helm offers--set-stringwhich is the interpolation-free version of--sethelm install traefik traefik/traefik \
--set... | I have a Helm chart withvalues.yamlcontaining:# Elided
tolerations: []I'm trying to pass the tolerations via the command line but it always removes the quotes (or adds double quotes inside single quotes) despite all the below attempts. As a result itfailson install saying it expected a string.# Attempt 0
helm install t... | Helm fails to pass double quotes into values.yaml from the command line? |
Running a docker container requires the user to bea member of thedockergroup. By default, when you install docker, the only user that is added to it isroot. You can add your own user to this group if you want to run docker containers from it. | I am working throughthis tutorialsetting up Docker, and I'm finding that all of their examples are written likedocker run hello-worldbut when I try it, it says permission denied on a socket and I have to dosudo docker run hello-worldto run the examples. Why are root privileges necessary even for these simple examples? | Docker: why do I need to sudo in Linux? |
9
This is available native in the aws cli now:
http://docs.aws.amazon.com/cli/latest/reference/s3/presign.html
Share
Follow
answered Aug 24, 2016 at 13:48
JeroenJeroen
46155 silver badges1... |
I've looked at the documentation for aws s3 and aws s3api but I can't see anything relevant to generating a presigned url. The AWS web docs only show examples for doing this with Java, .Net, and VisualStudio.
http://docs.aws.amazon.com/AmazonS3/latest/dev/ShareObjectPreSignedURLJavaSDK.html
| Is there a way to generate a presigned url for an S3 object using AWS CLI? |
Laravel really isn't designed to be split up like Symfony and their components. You could try installingilluminate/eventsandilluminate/consoleand resolving the task scheduler's dependencies.Task scheduling involves using theartisan schedule:runcommand, so you'd need to reverse engineer the code starting fromIlluminate... | Is there a way (framework, library) to use Task Schedule just the way Laravel works?
Or a way to extract only that funcionality from Laravel Framework? | How to use Laravel Task Schedule out of framework? |
Also, need to share files to thephp:fpmdocker container too. The answer is to run dockerphp:fpmimage with volume too:docker run -it -p 127.168.66.66:9000:9000 -v /var/www/html/:/var/www/html/ php:fpm | I can't configNginxwithphp-fpmcorrectly. When I get any php script, I get Nginx404 Not founderror in browser:File not found.In my php-fpm logs I get:172.17.42.1 - 28/Apr/2015:09:15:15 +0000 "GET /index.php" 404for any php script call and in Nginx logs I get:[error] 28105#0: *1 FastCGI sent in stderr: "Primary script u... | error 28105#0: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream |
There are high posibility that the other person outside your network will access www.mywebsite.com. Change the server_name into.
server {
listen 80;
server_name mywebsite.com www.mywebsite.com;
location / {
proxy_pass http://127.0.0.1:8001;
}
location /static/ {
autoindex on;
... |
I am using nginx and gunicorn for a django application on AWS.
Here is my /etc/nginx/sites-enabled/mywebsite
server {
listen 80;
server_name mywebsite.com;
location / {
proxy_pass http://127.0.0.1:8001;
}
location /static/ {
autoindex on;
alias /home/ubuntu/mywebsite/stat... | nginx not working with gunicorn for external IP's |
the problem was with the rendering loop, with no FPS set the loop had no delay and hence it was rendering at hundred's of FPS. I just had to set a frame rate limit. | I am using TGUI framework which is developed over SFML for C++ for GUI. Recently i had created a GUI application using TGUI, the problem with this application is that it is consuming too much GPU power almost 60% every time I use it, this GPU power is too much for a simple application.
I am not able to figure out why i... | GUI framework taking too much GPU power |
So we also hit this problem, we had to modify our rbac rules, in particular we had to add the resource "pods/exec" with the verbs "create" and "get"---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: airflow-runner
rules:
- apiGroups: [""]
resources: ["deployments", "pods", "pods/log", "p... | When I run a docker image usingKubernetesPodOperatorin Airflow version 1.10Once the pod finishes the task successfullly, airflow tries to get the xcom value by making a connection to the pod via k8s stream client.Following is the error which I encountered:[2018-12-18 05:29:02,209] {{models.py:1760}} ERROR - (0)
Reason:... | Airflow k8s operator xcom - Handshake status 403 Forbidden |
Yes, the spot price can go over the on-demand price - for example, I just checked recent prices for an m1.xlarge image, which costs $0.68 / hour on demand, and the spot price spiked up to as much as $1.00 / hour.
When I was using spot instances heavily about a year ago, I found that it was possible to drive up the spo... |
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 2 months ago.
... | On Amazon EC2, will the Spot Instance price ever be higher than the On-Demand Price? [closed] |
You could use an external volume. See here the official documentation:
if set to true, specifies that this volume has been created outside of
Compose. docker-compose up does not attempt to create it, and raises
an error if it doesn’t exist.
external cannot be used in conjunction with other volume configuration
... |
I have two different docker stacks, one for HBase and one for Spark. I need to get the HBase jars into the spark path. One way that I can do this, without having to modify the spark containers is to use a volume. In my docker-compose.yml for HBase, I have defined a volume that points to the HBase home (it happens to... | Share volumes between docker stacks? |
I believe cedar recognizes django apps by the existance of a requirements.txt file.Pleaee check is to be sure you have created 'requirements.txt' and 'Procfile' in the root of your source tree that is being pushed. The names are case sensitive.This tutorial includes instructions on creating them:https://devcenter.herok... | Here what i am getting :Counting objects: 10, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (10/10), 3.60 KiB, done.
Total 10 (delta 0), reused 0 (delta 0)
-----> Heroku receiving push
! Heroku push rejected, no Cedar-supported app detected
To[email p... | error: failed to push some refs to '[email protected]:dry-plains-3718.git' |
Aliases have to be statically defined, but you could select a 3rd column containing the name coming from your second table (although I don't think it would fix your grafana problem). | I am performing a select query to select time-series values. I select the column with the timestamp and the column with a measured value from two sub-queries that contain the relevant data.SELECT
t1.measured_value as value,
t2.time
FROM (
SELECT measured_value , ROW_NUMBER() OVER () AS rownum
FROM time_series_d... | Alias Name in Postgresql with value from select statement |
Image is just a set of files there are no processes, so question does not make sense. When you start container from image then process will start here - processes exists only in executing container, when container stops there are no processes anymore - only files from container's filesystem. | Is it possible to commit a container with postgresql running so that it is ready immediately? I have tried using a startup script, CMD and bashrc to start postgresql, which all start it fine when usingdocker run -it [containerID]but it takes approximately 3-5 seconds for postgresql to come up once logged in. I unfortu... | Docker - commit container with running processes (postgresql) |
2
If changes need to be done by pull request, you cannot remove commits.
Instead, you will want to revert; this creates a new commit, which reverses the effects of the bad one. Both changes will remain part of history.
Create a new branch as normal, then run the command: gi... |
So the master branch of my upstream repo is in bit of a mess.
Commits on upstream branch looks like below.
A - Latest commit
|
B
|
C - Bad commit
|
D - Commit I want the upstream master branch to be at.
on my forked branch I can do a git reset --hard D. But how can I apply these changes back to the upstream master br... | git reset upstream branch |
There are three different memory buses in a current CPU/GPU system with discrete GPU:the GPU (aka "device") memory bus that connects the GPU to its own RAM.the CPU (aka "host" or "system") memory bus that connects the CPU to its own RAM.the PCI-e bus, which connects the CPU chipset to its peripherals, including the GPU... | I am presently learning CUDA and I keep coming across phrases like"GPUs have dedicated memory which has 5–10X the bandwidth of CPU memory"Seeherefor reference on the second slideNow what does bandwidth really mean here? Specifically, What does one mean bybandwidth of the CPUbandwidth of the GPUbandwidth of the PCI-E sl... | Meaning of the bandwidth of a device |
I read some blogposts by David Heinemeier Hansson on the 37signalsblog.Their take on the problem is to cache all the different objects on the page and then use CSS and JS to customize the view.In thefirst postDHH goes through the technology they used to make the new interface for Basecamp to be so damn fast.In thesecon... | I have a very specific cache situation. We use several solutions for caching and I wonder what is the best solution to invalidate the cache on a user action.The cache is like soFirst layer: CDN caches the full page as HTML for logged-out usersSecond layer: full page cache in memcached for logged-out users
the reason I ... | How can I invalidate cache the right way? |
Your code:
int arr1[4] = new int[];
will not compile. It should be:
int arr1[] = new int[4];
putting [] before the array name is considered good practice, so you should do:
int[] arr1 = new int[4];
in general an array is created as:
type[] arrayName = new type[size];
The [size] part above specifies the size of the... |
When we create a object of a classtype the new operator allocates the memory at the run time.
Say
myclass obj1 = new myclass();
here the myclass() defines a constructur of myclass
but
int arr1[4] = new int[];
new allocates the memory but, what the int[] does here?
| What does the new operator do when creating an array in java? |
There is no RDP support for windows containers at this time.https://social.msdn.microsoft.com/Forums/en-US/f4314bc8-52d0-477c-9ecc-86a578b53814/no-support-expected-for-rdp-in-containers-for-windows-server-2016?forum=windowscontainersI've also been trying to get a container running VNC and have opened a ticket with the ... | Can't see visually a windows 10 container.I have tried to connect via RDP (exposing 3389 port via-p 3389:3389)I know that inside the container there is a virtual monitor (emulated at 1240x768). I have created a node server that return me a sceeenshot from the desktop with this plugin:https://www.npmjs.com/package/scree... | Docker container Windows, connect via RDP or VNC Client |
For cuda, I usedriver API and NVRTCand create kernel string with a global constant array like this:auto kernel = R"(
..
__constant__ @@Type@@ buffer[@@SIZE@@]={
@@elm@@
};
..
__global__ void test(int * input)
{ }
)";then replace @@-pattern words with size and element value informationin run-timeandcompilelike thi... | I have a buffer (array) on the host that should be resided in the constant memory region of the device (in this case, an NVIDIA GPU).So, I have two questions:How can I allocate a chunk of constant memory? Given the fact that I am tracing the available constant memory on the device and I know, for a fact, that we have t... | NVIDIA __constant memory: how to populate constant memory from host in both OpenCL and CUDA? |
Access to ports opened via Docker port publishing is controlled either in thenatPREROUTINGchain or in thefilterFORWARDtable. It's likely that your existing firewall rules are only affecting thefilterINPUTtable.The canonical place to add rules for mediating access to Docker containers isDOCKER_USERchain in thefiltertabl... | I have a Linode setup and I've setup UFW to block ports, particularly 8080. I've reloaded the firewall
and I'm still able to access the webapp through the web.UFW:Status: active
To Action From
-- ------ ----
787/tcp ALLOW Anywhere
8080 ... | Why am I able to access my webapp publicly even when blocking the port in my Linode? |
What you're seeing is the difference betweenLinesandLines of Code. For instance, how many of each are below:public void foo() {
int i = 0;
for (int j=0; j < 10; j++)
doTheThing(j);
}I'd say that's 4 LoC (maybe 5. Don't remember if the '}' counts) but 9 Lines. | I am a newbie to SonarQube and trying to use the tool for measuring my product quality.In some cases, I found that the duplicated lines is reported incorrectly by SonarQube . The number of lines of code is less than the duplicated lines. How can that be ? Either the count of lines of code is incorrect or the count of... | Sonarqube incorrect report for duplicated code |
unfortunately there is no auto-scaling policy attach with Elasticcache out of the box, amazon ElastiCache provides console, CLI, and API support for scaling your Redis (cluster mode disabled) replication group up.
One option that you can try is to set cloud watch alarm base on node memory and then trigger lambda funct... |
There is an redis instance been created in ElasticCache and this will be used to store and retrieve data as usual.
Is there any max memory for this redis instance and how can that be checked?
All I need is say example if the data size in redis reaches above 100 mb then it should be auto scaled without me having to man... | AWS Elasticache - Redis Autoscaling |
I can't explain why this is the solution, but upgrading Docker to the latest version fixed the problem.
|
I'm configuring a Satis Docker image and I encounter an error when trying to refresh the packages:
Failed to execute git clone --mirror -- '[email protected]:amp/support/db.git' '/root/.composer/cache/vcs/git-domain.com-amp-support-db.git/'
... | Git command executed in Docker container fails on server but not locally |
Yes, you can use theSet-AzureRmSqlServerFirewallRulecmdlet.
To retrieve the current IP I use ipify.org. Example:$clientIp = Invoke-WebRequest 'https://api.ipify.org' | Select-Object -ExpandProperty Content
Set-AzureRmSqlServerFirewallRule `
-ResourceGroupName "myrg" `
-ServerName "myserver" `
... | Issue: When i create the new sql server and DB. My next task is to connect with DB but it breaks due Client IP not added in the firewall of sql server.
I don't want to add it manually.
Is there any way to set it using Powershell? and it should be the exact same IP which i am able to see inside azure sql server Firewall... | Set Client IP address to the azure sql server automatically using vso powershell task |
To commit an empty commit, usegit commit --allow-empty. | When handling pull requests on GitHub, often I want to merge in commits from a branch with no changes. However, I would like to commit something just after the merge. I don't want togit commit --amendbecause that would change the commit I'm bringing in, so tracking the change gets more complicated.Is there a way togit ... | Git commit a commit message and nothing else? |
You have to install 2 plugins:Docker pluginandDocker Pipeline.Go to Jenkins root page > Manage Jenkins > Manage Plugins > Available and search for the plugins. (Learnt fromhere). | My JenkinsFile looks like:pipeline {
agent {
docker {
image 'node:12.16.2'
args '-p 3000:3000'
}
}
stages {
stage('Build') {
steps {
sh 'node --version'
sh 'npm install'
sh 'npm run build'
... | Jenkins. Invalid agent type "docker" specified. Must be one of [any, label, none] |
This is almost certainly because your latest deploy has failed the health check. See the contents of /var/log/aws-sqsd/default.log (which can be found via the "Logs" section of the environment). This will give you a more informative error, such as:service healthcheck to URL "http://localhost/" failed with http status... | I have an elastic beanstalk worker environment that has transitioned to health "Severe" as of my latest deployment. The error it gives me is:sqsd is in fault mode on all instancesHow do I fix this/get more information about this? | Elastic Beanstalk Worker sqsd is in fault mode on all instances |
Kuberneetes API server will recreate it. You can check below line in the logs of Kubernetes API Server right after you delete the service.Resetting endpoints for master service "kubernetes" toThis service is used when you want to interact with Kubernetes API Server from pods using a service account.Check thesource code... | I have accidentally deleted all the services in my minikube setup, including "kubernetes" service in the default namespace.But within a few seconds, I noticed the "kubernetes" service created again, automatically.
If I understand corrected, the replica in deployment takes care of only pods, right?
I am wondering how th... | "kubernetes" service in minikube |
0
Based on AbraCadaver's suggestion, I found the answer lied in changing the URL parameters in config.php
Thanks
Share
Follow
answered Aug 6, 2020 at 11:08
GottanoGottano
122 bronze badges... |
I uploaded a php script to a subdomain that I own, for testing and customizing purposes before it goes live (I had planned on moving everything over to the root domain when done).
Someone then suggested that I work on in Xampp instead as it is all locally installed and therefore much faster, etc.
Thing is, I had alrea... | Having trouble running a backup copy of php on Xampp |
the rule is correct but try to add this just before your ruleRewriteBase /
# If the request is not for a valid directory
RewriteCond %{REQUEST_FILENAME} !-d
# If the request is not for a valid file
RewriteCond %{REQUEST_FILENAME} !-f | The project is already running in prod, the developer who added that rule is no longer working with us but it is pretty working in prod, so in order to have the project working locally I tried many options, now I set the SSL in my web server and set virtual host to match exactly the prod so that it can run correctly, i... | Htaccess rewriting rule for localhost |
I started getting a similar error and the reason was that Github recently changed the format of their auth tokens:https://github.blog/changelog/2021-03-31-authentication-token-format-updates-are-generally-available/To resolve the error:Find thecomposer/auth.jsonfile (if you're running the project in a container, you'll... | I am trying to install a Github project using composer and get the following error:Composer [UnexpectedValueException]
Your Github oauth token for github.com contains invalid characters: ""Can anyone explain what I need to do to correct this error?I am using the following command:composer create-project --prefer-dist ... | How to fix github oauth token for invalid characters: "__TOKEN__"? [duplicate] |
This page:https://github.com/rails/rails/issues/8759Suggest using an after_save hook:class Post < ActiveRecord::Base
has_many :assets
after_save -> { self.touch }
end
class Asset < ActiveRecord::Base
belongs_to :post
endShareFollowansweredFeb 26, 2013 at 0:14Taryn EastTaryn East27.6k99 gold badges8787 silver bad... | I have something like this:class Suite < ActiveRecord::Base
has_many :tests
end
class Test < ActiveRecord::Base
belongs_to :suite
endAnd I'm using the cache_digests gem to do fragment caching.
I want that when I update a Suite object, the children tests caches expire.
I tried to put atouch: truein thehas_manyassoc... | Rails cache_digests touch has_many association |
1
I found an answer I consider to be an acceptable one. If someone finds something better I'll update this.
Basically, feature branches are worked off of a team lead or central user's fork. The branch can be pulled into a local repo and pushed back to the fork.
See "Contrib... |
GitFlow is a very popular branching model that has become somewhat of an industry standard (http://nvie.com/posts/a-successful-git-branching-model/). In addition to maintain workflow consistency with the open source community and control repository access Forking Workflow as used where the primary repository is locke... | Private Git Forking Workflow and Collaborative Features |
There is acontent providerfor accessing SMS messages, but it's not documented in the public SDK. If you useContentResolver.query()with aUriofcontent://smsyou should be able to access these messages.You can find more informationon this Google Groups threadorprevious questions on stackoverflow. | I'm creating a backup utility for Android and I need to read content of inbox, outbox and dratfs. How can I accomplish that on SDK v1.5? | Android 1.5: Reading SMS messages |
Cognito does not accept Google token directly. You will need to use auth sdk to interact with authorize/token endpoints:https://github.com/aws/amazon-cognito-auth-js/https://github.com/aws/amazon-cognito-identity-jsYou need to login with Google first. A corresponding user will be created in your user pool and the auth ... | My app currently uses a Cognito user pool for email and password authentication. It works very well. I want to add google authentication now.I've added google as an identity provider by following the documentation herehttp://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-social.html.I've authentic... | Email and Google authentication using AWS Cognito |
Yes, this is possible using placement-new. However, there is no way to guarantee that the content of a memory-location will not be changed between delete and a reallocation. Anyway, placement-new only enables you to construct an object in memory that you already own. So you'd have to allocate a pool of memory and then... |
For example I have an array of 200 integers. What I want to do is convert it to two arrays of 80 integers, removing the 40 integers in between. The goal of course is to use the existing memory block without allocating two new arrays of length 80 integers and copying from the first array, what I want is to cut the init... | Is it possible to partially de-allocate memory from the middle of some object and "split" it? |
We are generating reports in spreadsheet format, where huge data is
coming from database side.
In this kind of use cases, you have at least two things to study that may improve the consumed memory but first you have to identify the culprits.
Mainly causes identified by monitoring tools in this use case are general... |
I know there all lot of questions on java.lang.OutOfMemoryError: Java heap space.
like question 1
But none of the links are not proper answers to my question.
We are generating reports in spreadsheet format, where huge data is coming from database side. We increased the heap memory size from 2 GB to 4 GB, no use.
May... | How to resolve java.lang.OutOfMemoryError: Java heap space without increasing the heap memory size |
it will change all php files to html files likefoo.phptofoo.htmlRewriteEngine On
RewriteBase /
RewriteCond %{THE_REQUEST} (.).php
RewriteRule ^(.*).php $1.html [R=301,L]
RewriteRule ^(.*).html $1.php [L] | I have folder calledPageswhich contains .php files. I want to convert .php extention to .html for this particular folder only.I have the .htaccess code to convert the extentionRewriteRule ^([a-z0-9_]+)\.html$ /index.php$1 [NC,L]But I wanted to make changes for the Particular folder only.Any ideas??? | Convert .php extention to .html for all files in particular folder using htaccess |
Add the following lines to your .gitignore.
#Ignore the 'android and ios' folder
android/
ios/
Then clear git cache git rm -r --cached .
|
I have an app that consists of many small games inside it, and i use windows os for android and macOS for iOS publishing. While i know the main changes are done in the "lib" directory of the flutter, while i code... some of the settings which are platform specific remain on each side. I have some idea of using gitigno... | how to use gitignore in flutter to make sure ios and android versions don't override settings of each other? |
+50I looked everywhere on"How do I find my SSH-Key Passphrase on MacOS?".If you have saved thepasswordto theKeychain, then you can find a solutionhere.If you're tired of searching, I also placedthe steps for it below.Recovering your SSH key passphraseIn Finder, search for theKeychain Accessapp.InKeychain Access, search... | I recently tried to cloned one of my own repos on Github.I haven't cloned a repo in a while, and as such; I forgot my"SSH-Key Passphrase"and couldn't clone it.I am running"macOs Monterey".I looked everywhere and couldn't find it on my Mac.I looked in the~/.ssh/id_rsafile for it,and even checked the~/.ssh/identityfile a... | How do I find my SSH-Key Passphrase on MacOS? |
Prometheus metrics are collected using an in-cluster agents in GKE and sent into Stackdriver. You can check these metrics (includingprocess_virtual_memory_bytes) usingStackdriver Monitoring.For that, yo can go to theMetrics Explorerand use eitherGKE ContainerorKubernetes ContainerasResource type. TheMetricfield should ... | When logged in to a container, top/ps allows us to see VSZ memory statistics for one or more processes. I can not seem to find this same information in stackdriver. Is it available anywhere, or do we need to setup our own Prometheus instance and export process_virtual_memory_bytes data ourselves?Stackdriver has this me... | Are process VSZ memory details visible anywhere in GKE/Stackdriver? |
There is an issue with the version 3.4.1 of react-scripts,
So i added a docker-compose file and i specified this line who solve the problem and save my day :
stdin_open: true
So my docker-compose.yml file looks like this :
version : '3'
services:
web:
build:
context: .
dockerfile... |
I'm new to Docker and I tried to run a container of the create-react-app image so these are the steps that I have done:
npx create-react-app frontend
I created a Dockerfile.dev like below:
FROM node:alpine
WORKDIR '/app'
COPY package.json .
RUN npm install
COPY . .
CMD ["npm" , "run" , "start"]
I used this comman... | I can't run a docker container of my reactjs app |
You can't exclude the databases formongodumpcommand stillin a feature requestaccepted state. I would suggest writing a script to individually backup required databases and usingexcludeCollectionsWithPrefixif you can identify a pattern to exclude the collections | I am usingmongodumpfor daily backups.
In my database server i have many DBs, I want to exclude huge DB from dumping.
e.g : dump all DBs except 'Db_name', something like : mongoump --out /data/backup--excludeDatabase='name_of_db' | Is there a way to exclude a database from mongodump |
0
My first thought is that you can have multiple redis queues and push specific tasks to certain queues.
If you have a queue for the quick tasks and a queue for the slower tasks, then both can run in parallel without the slow tasks holding everything else up.
Share
... |
I'm currently trying to optimize and scale an API built on Ruby on Rails behind an AWS ALB that sends traffic to NGINX and then into Puma to our Rails application. Our API has a timeout option of 30 seconds maximum which is when we eventually timeout the request. Currently we have a controller action that queues a Sid... | Rails long running controller action and scaling to 500-1000 requests per second |
In thedocumentation: you can read the following sentence about HTTPS enforcement through redirect:By default the controller redirects (308) to HTTPS if TLS is enabled for that ingress. If you want to disable this behavior globally, you can usessl-redirect: "false"in the NGINXConfigMap.To configure this feature for spec... | I have a service providing an API that I want to only be accessible overhttps. I don't wanthttpto redirect tohttpsbecause that will expose credentials and the caller won't notice. Better to get an error response.How to do I configure my ingress.yaml? Note that I want to maintain the default 308 redirect fromhttptohttps... | How to disable http access to service using Kubernetes Nginx ingress controller? |
24
You should define this variable as:
'FOOBAR={"foo": "bar"}'
In short:
version: '3.3'
services:
nginx:
ports:
- '80:80'
volumes:
- '/var/run/docker.sock:/tmp/docker.sock:ro'
restart: always
logging:
o... |
Here is my docker-compose yaml file.
version: '2.1'
services:
myservice:
environment:
- MYENVVAR={"1": "Hello"}
This gives me the following parsing error when I run docker-compose
ERROR: yaml.parser.ParserError: while parsing a block mapping
in "./my_docker_compose_.yml", line 6, column 9
expected <blo... | How can I escape this JSON string in Docker Compose file environment variable? |
nginx.conf
location ~ \.php$ {
include fastcgi_params;
}
location ^~ /secret_functions/ {
allow 100.100.100.100;
deny all;
include fastcgi_params;
}
fastcgi_params
...
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/home/gfd-dev/var/run/php5-fpm.sock;
fastcgi_index inde... |
I have a pretty typical php5-fpm setup like so:
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/home/gfd-dev/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
and I just want to just block 1 file by ip address, but the... | IP whitelist a single php file with nginx but still run php |
You only need to dispose images that are created from resources (e.g. from a file). If the copies are created using theclone()method, you don't need to dispose them. All you need is to clear your variables references by setting them tonull. No need to call theGCmanually:private void ResetDataPatient() {
imgBox.Imag... | At first, I have an image (13-15Mb) and other five images that copy from the original image. After finishing my work, I want to dispose all images by click on aClear Databutton.I use Diagnostic tools to know how memory works. As the result, thedisposemethod sometimes work, sometimes does not work. The memory still incr... | Cannot Dispose Image - Out of Memory |
I didn't know any existing module for this. you can do something like this.---
- hosts: localhost
gather_facts: no
tasks:
- name: Wait for nodes to be ready
shell: "/usr/bin/kubectl get nodes"
register: nodes
until:
- '" Ready " in nodes.stdout'
retries: 6
delay: 2 | Is there any existing ansible module I can use for the following.
I can wait forkubectl get nodesSTATUS=Ready?$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
master1 NotReady master 42s v1.8.4 | ansible kubectl wait for nodes to be READY |
Unfortunately, this is not possible out of the box.
All the duration set are final. They can't be changed depending on the container state.
However, according to the documentation, the probe does not seem to wait for the start_period to finish before checking your test. The only thing it does is that any failure hapen... |
I recently set up healthchecks in my docker-compose config.
It is doing great and I like it. Here's a typical example:
services:
app:
healthcheck:
test: curl -sS http://127.0.0.1:4000 || exit 1
interval: 5s
timeout: 3s
retries: 3
start_period: 30s
My container is quite slow to boot... | docker-compose healthcheck retry frequency != interval |
Trying to help with your second problem:I would recommend theAudit.NET/Audit.EFlibraries for this kind of use case (actually I guess you are already using it).You can avoid the information passing from presentation layer to the data layer with the use of aCustom Action. The library gives you the possibility to hook int... | This is my first kind of task and i am using this tutorial.LinkThe differences are that this tutorial is made in a single layer so it is easy accessing the Identity properties.My project hasData Layer, where DB context is located (and all models dbsets)Entities(Models) that has reference to Data, Service and Presentati... | Audit in Data Layer instead of single Layer Application |
in Demeter AIO is deprecated, the new installer is z2a. there is a folder called z2a in system-integration. | I have already installed clio(acumos 3rd version) successfully but I faced some issues in creating pipeline, so I want to upgrade to "demeter" release.In order to install "demeter" release of acumos, I didgit clone --single-branch --branch demeterhttps://gerrit.acumos.org/r/system-integration~/system-integration$ git b... | How to install acumos AI demeter version? |
I was facing a similar issue while running the following command:minikube start --vm-driver="hyperv" --hyperv-virtual-switch="minikube"Then I went through some github and stackoverflow threads and was able to resolve my issue by running following command:minikube delete
minikube start --vm-driver="hyperv"In my case, p... | When I am not connected to the VPN, minikube is starting as expected:PS C:\Windows\system32> minikube start
* minikube v1.9.2 on Microsoft Windows 10 Enterprise 10.0.18363 Build 18363
* Using the hyperv driver based on existing profile
* Starting control plane node m01 in cluster minikube
* Updating the running hyperv ... | minikube not starting once my laptop connects to a VPN |
You may want to consider a multi-tenant operator approach on which you develop a custom operator that creates separate CRDs for Prometheus and Grafana, allowing configurations specific to namespace. You should leverage frameworks like Operator SDk or KUDO to simplify operator development. It may just requires more deve... | I am trying to analyse on how to deploy Prometheus and Grafana instance automatically inside every new namespace that is created inside a Kubernetes cluster to achieve multi-tenancy.I checkedprometheus-operator, but this seems to allow only to create configuration for targets which need to scraped. How can i achieve my... | How to automatically create a Prometheus and Grafana instance inside every new K8s namespace |
It turns out that the answer was easier than I expected. There is a --batch parameter missing, gpg tries to read from /dev/tty that doesn't exist for cron jobs. To debug that I have used --exit-on-status-write-error param. But to use that I was inspired by exit status 2, reported by echoing $? as Cd-Man suggested.
|
I have a script that has a part that looks like that:
for file in `ls *.tar.gz`; do
echo encrypting $file
gpg --passphrase-file /home/$USER/.gnupg/backup-passphrase \
--simple-sk-checksum -c $file
done
For some reason if I run this script manually, works perfectly fine and all files are encrypted. If I run th... | How to run gpg from a script run by cron? |
+50Literal spoiler text as shown in the question is not supported inGitHub Flavored Markdownorthe original Markdown implementation.However Markdown supports inline HTML, and GitHub allows a subset of HTML tags to remain in the rendered output. As described in other answers,<details>works on GitHub.If that's "spoilery" ... | I'm trying to make text which is eitherinvisible until moused over, or,has a "show" / "hide" button, or some other thing, so that it is not visible until the user interacts with it in some way.I'm trying to do this on a github wiki page. (Specifically it's for a short self-quiz.)Basically I want to get a similar effect... | How to make "spoiler" text in github wiki pages? |
There are two types of tags -- annotated and lightweight, you can check the differencehere.AsGithub APIputs,/repos/:owner/:repo/git/tagsonly created an annotated tag object, and then you should manually create a refrence with the sha of this tag object by callingcreate refrence api:curl \
-X POST \
-H "Accept: appl... | I tried to create a tag usingGithub API. I made a POST request to/repos/:owner/:repo/git/tags, and I get this result:HTTP/1.1 201 CreatedBut unfortunately no tag was created. The new tag simply does not exist.
What do I wrong? | Github api tag is not created |
First, confirm you setup access to the repo:https://help.github.com/articles/adding-collaborators-to-a-personal-repository/so you can clone it using your private key. The command:git clone[email protected]:Djevil83/UserBundle.gitshould create a new directoryUserBundlewithout asking password.Then readhttps://getcomposer... | When I'm trying to install dependency from my private repository and I'm getting the following error:> /opt/lampp/bin/php /home/arthur/Sites/audio-video-caption.com/composer.phar install
Loading composer repositories with package information
Failed to clone the[email protected]:Djevil83/UserBundle.git repository, try r... | Composer install \ update authentication errors |
InnoDB doesn't have any option to direct certain tables to stay in memory and other tables to stay out of memory. But it's kind of unnecessary.
InnoDB reads tables by loading them page-by-page into the buffer pool. Your usage of the tables guides InnoDB to keep pages in memory.
Reading a page once in a while is unlike... |
Lets say I have several InnoDB tables:
1. table_a 20Gb
2. table_b 10Gb
3. table_c 1Gb
4. table_d 0.5Gb
And a server with limited memory (8Gb)
I want fast access to table_c and table_d, and can allow slower access to table_a and table_b.
Is there a way to direct MySQL to cache c,d in memory, and NOT a,b?
(I'd move a,b... | How to direct MySQL not to cache a table in memory? |
Using command line, type git commit -a, that will commit the deleted files as well!
|
I've started using git yesterday. I found out that I can remove files by using the command git rm. But isn't that very complicated? When I use SVN and I delete a file in my Windows Explorer, I just have to commit the changes and the file will be removed in the repository. Are there any similar solutions for git? How d... | Git remove all deleted elements |
If you check in crontab.guru, both of these are almost equivalent:
* * * * *
* 1/0 * * *
This is because X/Y means: starting from X, every Y. That is, all X + Yn. So if you say */2 it will do every 2 hours.
In this case: 1/0 means "starting from 1, every hour", so it matches from 1 to 23, whereas * matches from 0 t... |
I am very new to Java. As my first project, I am going to work with cron job scheduler. I want some clarification on scheduling. I have a code which will run every hour.
CronTrigger ct = new CronTrigger("cronTrigger", "group2", "0 1/0 * * * ?");
I have read the documents about scheduling, but I got confused
In on... | Cron Job sixth parameter in Java |
0
It is due to nature of Common Language Runtime. Garbage Collector collects high order generations when there is low memory, but when your app get 100 MB of memory, there is many free memory in system. You should monitor memory usage by yourself and call GC.Collect when u... |
I have an ASP.NET MVC 3 application hosted on a shared server with the following limitations:
100 MB of RAM
15% of CPU
The host admins say that if an application reaches these limitations, the application pool would be restarted.
After deploying, I noticed that application pool is restarting too quickly (after a few... | How to deal with my application's unusual usage of memory? |
The documentation states that it is not possible to use Classic Load Balancer with the Fargate launch type.https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.htmlServices with tasks that use theawsvpcnetwork mode (for example, those with the Fargate launch type) only support Application Load Ba... | It's mentioned in the AWS docs that a Classic Load Balancer is required to connect an ECS Service to multiple ports:https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-load-balancing.htmlBut when using ECS with Fargate, I get the error message that the Classic Load Balancer doesn't support the network m... | AWS Load Balancing multiple ports for an ECS Service with Fargate |
It seems like now they support unsubscribe option, from their docs:Amazon SES provides a subscription management capability, in which
Amazon SES automatically enables the unsubscribe links in every
outgoing email when you specify the contactListName and topicName
within ListManagementOptions in the SendEmail operation ... | Is there a build in Opt-out / Unsubscribe option is available for SES?Like we can include a header in the mail so that an unsubscribe button appears in the mail? | Amazon SES - Is there a build in Opt-out / Unsubscribe option is available |
0
Download the latest PowerShell release (minimum version required is: 1.0.0) and then Verify you have Windows PowerShell version 3.0 or 4.0. To find the version of Windows PowerShell, type this command at a Windows PowerShell command prompt.
$PSVersionTable
Verify that ... |
I'm attempting to install the Azure Recovery Services Agent on a 2016 Standard Server Core machine. It installs fine, but when I try to browse to the vault credential file, I get an exception that appears to be related to visual themes not existing since it's server core:
I've also tried setting up Azure Powershell ... | Azure Recovery Services agent on Server Core 2016 |
-1
Have a look at How do I get the different parts of a Flask request's url?
The path and script_root request variables look correct for what you need.
Share
Follow
edited May 23, 2017 at 10:31
Community... |
I have the following setup:
Main Server:
nginx forwarding "https://example.com/machine1/*" -> "http://machine1/*"
Machine1:
ngnix + uwsgi + flask mounting at /, e.g. /foobar.
That means, https://example.com/machine1/foobar will hit the Machine1 as /foobar.
I have the mounting point /machine1 in an variable, NGINX_MO... | Flask Proxy resolve url_for |
I think you did it wrong way.
How contribute to GitHub repo:
Fork GutHub repo, you get fork of this pero in your GitHub account
Clone your fork (just clicking open in VS)
Commit into your local repo
Push to your fork
Create pull request from your fork
See guide here.
What you can do in your current situation:
... |
Steps already taken
I found a github repository from user X
I clicked "open in visual studio"
I made some changes and did a commit. It committed to my local repository.
I installed github extension for Visual Studio 2017
I created a fork in my own github repository directly from user X's repository.
Question
I want ... | How to do a pull request from my current state |
For PATCH to work you need to send one of theaccepted content-type header values.Your example uses amerge patch, so you should send:Content-Type: application/merge-patch+json | Kubernetes verison: 1.02PATCH /api/v1/namespaces/default/replicationcontrollers/testbody
{"spec":
{"replicas": 3}
}
response
'{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "the server responded with the status code 415 but did not return more information", ... | Fail to patch rc by api? |
As you have already said, a cookie can only be set for a domain from that domain (including its subdomains). And if your domains do not share a common superdomain, you need set each cookie for each domain separately.You can do this with a script that on each domain that sets the cookie for you. But make sure to authent... | I want to create a cookie from one domain once the user is registered in PHP. and make this cookie accessible to 4 other domains not subdomain. I know that cookies are not designed to be accessible for other domains. For example I have set a cookies variable $user_email from domain www.firstdomain.com and want to acces... | PHP Cookies for multiple Domains |
This depends on what version of Helm you have;helm versioncan tell you this.In Helm version 2, it's the value of thehelm install --nameparameter, or absent this, a name Helm chooses itself. If you're checking what might be generated viahelm templatethat also takes a--nameparameter.In Helm version 3, it's the first par... | I have created basic helm template usinghelm createcommand. While checking the template for Ingress its adding the string RELEASE-NAME and appname like thisRELEASE-NAME-microappHow can I change.Release.Namevalue?helm template --kube-version 1.11.1 microapp/
# Source: microapp/templates/ingress.yaml
apiVersion: exten... | Helm how to define .Release.Name value |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.