Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
Mailgun verification is independent of Google App Engine. You need to go to the company that you bought the domain from and add the TXT CNAME and DNS settings a lahttps://help.mailgun.com/hc/en-us/articles/202052074-How-do-I-verify-my-domain-If you are not using a custom domain, I don't think google allows you to acces... | Am using google appengine to develop and send mails, using the sandbox domain from mail gun approved test domain, was working. Now, am moving to production added the domain to mail gun from the dashboard , followed the doc fromhttps://cloud.google.com/compute/docs/tutorials/sending-mail/using-mailgun, followed the docu... | How to make google appengine endpoint to be verified in mail gun domains |
6
There are commercial tools such as ANTS Memory Profiler or .NET Memory Profiler or dotTrace. Secondly, take a look at this MSDN article. Lastly, Maoni Stephens has many blog posts on garbage collection and memory management in .NET. They are all linked here.
Share... |
Is there a way to check what memory has been allocated to in a program coded in VS 2010?
I've been noticing that a recent program I've been making keeps using more and more memory over time without releasing any.
Also, are there any articles on code design that teaches you good memory management? I seem to be searchi... | How to analyse program's memory usage in Visual Studio 2010? |
The problem with your justfile is not the percent sign, it's that you're using the same type of quotes for the outer string and for the inner one.justis interpreting the second quote as ending the string, and then doesn't know what to do with the bare%.In this case, because the format is just a single string token long... | My justfile looks like this:export GIT_COMMIT:="$(git show --format="%h" --no-patch)"
docker_build:
docker build -t some/tag:$GIT_COMMIT -t some/tag:latest .when I run it then I get the following error:export GIT_COMMIT:="$(git show --format="%h" --no-patch)"
^So basicallyj... | justfile Unknown start of token in an exported variable |
4
You are using Mac OS right? sudo brew services list shows php error root, so it seems like php-fpm is failing to start.
I had a similar problem, but I found this github issue:
https://github.com/laravel/valet/issues/269
At first, I changed php version of valet by:
$ val... |
Hi I have try to update php to 8.0 but always there a problem with valet to read the new version
and I try to solve it without specific instructions but this time is stucked
I will abbreviated my question and print valet diagnose
valet --version
Laravel Valet 2.14.1
brew services list
dnsmasq error root ... | Valet is not working with php.8 Nginx return Bad Gateway |
The paper you posted tries to microbenchmark to find out the details of the Cray T3D. It reaches to the following conclusions:
The cache line / block size is 32B
The cache is direct mapped
There is no L2 cache (just an L1)
The page size is probably 8KB.
The next interesting remark is that they surround the most inne... |
In this picture:pic
I don't really understand this plot. It basically shows the performance of reading and writing from different size array with different stride. Each color show different size of array. T know why it encrease but i don't know why it decrease?. So, for example for L (length of Array) = 64MB, and afte... | Understand a microbenchmark for Cache/RAM access latency |
I believe i have figured out what the error was. I had containers built without enabled WSL 2 within my Docker for Windows so when I have switched to WSL2 the containers weren't rebuilt. After pruning containers and rebuilding them it works OK. | i was trying lately to use thecodingmachine/php:7.1-v3-fpm-node10 image as my fpm container for local development and was surprised by this error message:php-fpm_1 | [24-Sep-2020 20:05:32] ALERT: [pool www] user has not been defined
php-fpm_1 | [24-Sep-2020 20:05:32] ALERT: [pool www] user has not been defined
php-... | ALERT: [pool www] user has not been defined when using thecodingmachine/php:7.1-v3-fpm-node10 |
You need to change the parameters forcrontab.Example: If you want the task to be run once at 5AM everyday:@periodic_task(run_every=(crontab(minute='0', hour='5')), name='greeting_task')
def greeting_task():
print('hello Dias!')crontab(minute='*/1')will run the task at every minute. Read about crontab syntax here:ht... | from __future__ import absolute_import, unicode_literals
from celery import shared_task
from celery.task import periodic_task
from celery.schedules import crontab
from datetime import timedelta
@periodic_task(run_every=(crontab(minute='*/1')), name='greeting_task')
def greeting_task():
print('hello Dias!')Can I... | how can I run celery task only once in django? |
The time range you define it is converted into:9 50
10 40
11 30
12 20
13 10
14 00
15 50 -
16 40
17 30
18 20
19 10
20 00
20 50 -
21 40
22 30So that you need to define these different cronjobs:50 9,15,20 * * *
40 10,16,21 * * *
30 11,17,22 * * *
20 12,18 * * *
10 13,19 * * *
00 14,20 * * * | I need to configure cronjob at specific time, like every 50 minutes from 9 to 23 pm.
And I am trying*/50 9-23 ***But it runs at 9:50 and also at 10:00, I need some help.
Thanks. | Cronjob every x minutes from 9 to 23 hours |
0
Check what you email on github are same in jira
Share
Improve this answer
Follow
answered May 16, 2016 at 15:28
Ya YuraYa Yura
62155 silver badges33 bronze badges
Add a com... |
I am not able to transition any issue or update their state from github state.
I tried following commands :-
git commit -m "NDA-113 #time 1w 2d 4h 30m Total work logged"
git commit -m "NDA-113 #comment Total work logged"
Those commits are coming in development section but smart commit actions are not working.
I trie... | JIRA github smartcommit |
When you reeboot your PC, what the docker daemon does is try to stop the running containers. This is like running docker stop on all running container, and this is what happens (taken from here):
When you issue a docker stop command Docker will first ask nicely for
the process to stop and if it doesn't comply withi... |
I have two Docker containers, one to run a Jenkins instance, and one to run YouTrack. Their respective starting scripts look like the following:
Jenkins: docker run --name jenkins_master --restart on-failure -p 8080:8080 -p 50000:50000 -v /home/ci/jenkins_home/:/var/jenkins_home -d jenkins:latest
YouTrack: docker run... | Why does one of my Docker containers not start automatically on machine boot? |
A few quick suggestions:install PHP 5.5.x (faster)Usemod_fcgidinstead ofmod_phpwith ApacheRaiserealpath_cache_sizeandrealpath_cache_ttlin yourphp.inidisableXDebug...Seethis question,this questionandthis question. | I have set up Symfony but every page load requires 40 seconds.If I have an empty controller it takes 8 seconds to load. If I start to make some complex queries on the database, it's worse. What can I do?deactivate the profiler? (will this change a lot?)activate APC on dev mode? (but will this not be a problem for chang... | Symfony on Xampp is very slow in development, what can I do? |
Right now those files will not be committed as they areuntrackedand thus git will simply ignore them.I your casegit statussimply informs you that you could track (and thus add those files to your next commit) should you wish to. | I was messing around and now I don't want to commit these files. How do I remove these from being committed?git status
On branch sign-up
Untracked files:
(use "git add <file>..." to include in what will be committed)
HEAD
description
hooks/
info/
sample_app/
nothing added to commit but untracke... | How do you NOT add untracked files in git? |
You can referthisblog for more helpThe JDK JavaDoc forjava.security.KeyStoreis pretty useful too.If you want to import from external server refer the sunimplementation | I added the self signed certificate using keystore from command prompt.I found several links which tells how to add certificate to keystore, but they all say to store the certificate locally before running program and do the rest via code. I need to add certificate to keystore dynamically.How can I add a certificate pr... | java add self signed certificate to keystore programatically |
I struggled with the same problem using Pycharm in Intellij.Boto3 couldn't locate the credentials file and I didn't have a default profile set.> os.environ["AWS_SHARED_CREDENTIALS_FILE"]
None
> os.environ["AWS_DEFAULT_PROFILE"]
NoneSolution, I set the variables explicitly> import boto3
> import os
> os.environ["AWS_SHA... | I am developing AWS DynamoDb tables in Pycharm. For this I have created a virtual environment with Python 3.6 and installed required libraries like boto3. I have also set my AWS credentials using AWS CLI tool in ~/.aws/credentials file.Problem is when I simply run the code, it works like a charm and is able to read the... | PyCharm: Why "Python Console" is not accessing ~\.aws\credentials file? How to set it within "Python Console" |
If you absolutely have to use an array, then Array.Copy is probably your friend:
int[] smallerArray = new int[array.Length - 2000];
Array.Copy(array, 2000, smallerArray, 0, smallerArray.Length);
I'd expect that to be a bit more efficient than using Take followed by ToArray.
|
I have an array with total 5000 elements and at one functionality, I only need last 3000 elements only to proceed further.
for that I have tried following solution.
//skipping first 2000 elements
list = list.Skip(5000 - 3000).ToArray();
This solution is actually giving me desired solution, but when I ran profiler on ... | How to skip first few elements from array? |
Skip the secondgit remotecommand (the one withremote set-url serverrepo --push --add).You don't need it.If you already typed that command, make sure to clean every remote entry in your local.git/config, and start over.Simply type:git remote add serverrepo username@serverip:/path/to/repo/project.git
git push -u serverre... | My project consists of:A git repository stored on bitbucketA local copyA development copy on a serverOn my server, I ran the following command to create a bare repogit init --bare project.gitTo create the ability to push to my server, I ran the following commands out of the repository on my local machine:git remote add... | Correct process for performing multiple git remote pushes |
Is your goal to delete all the commits after "some fit & upd," or just get a working tree in that state? I'm assuming you tried
git rest --hard 97f962f
If that failed, I would download the entire package from github at the specific commit you want and replace your working tree with those files. Probably not recomm... |
I have a list of commits. Need to roll back to some fit & upd (97f962f143b136d0d6dcbdfc02afc8253c767d7f). Need to do this so that all files that have been created in subsequent commits are deleted.
git checkout 97f962f143b136d0d6dcbdfc02afc8253c767d7f
upd
| How to roll back to a certain commit? |
The PHP SDK expects the 'state' field to be in $_REQUEST (I believe as a GET param) after the redirect before you can exchange the 'code' for an access token. From base_facebook.php:protected function getCode() {
if (isset($_REQUEST['code'])) {
if ($this->state !== null &&
isset($_REQUEST['state']) &&
... | I did some searches and I didn't find anything that was related to my problem.I'm currently trying to implement a Facebook login to my website and I'm having problems with the login authentication due to htaccess mod rewrite URLs?The code works perfectly and I get logged in if I use it without the mod rewrite rules lik... | Problem with Facebook login not matching CSRF state token |
1
IMHO you cannot do this.
When you're running git merge you're just merging branches in git, you're not merging a Pull Request in GitHub. Git is the underlying version control system used by GitHub, but git itself has no concept of pull requests.
If you want to trigger a... |
I'm looking on a way to trigger a GitHub pipeline ONLY on successful pull request merge.
I have to move from Azure DevOps where I had some arguments like these:
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
But I can't seem to find a way to do something similar on GitHub
EDIT:
So
on:
pul... | Github Actions CI pipeline that triggers ONLY when merge is successful |
Applying sonarqube to remote repositoryThat means a remote process running Sonar on the GitHub side.For now, you haveGitHub Actionswhich allow, on push, to run specific programs.For instance:sonarsource/sonarcloud-github-actionwill runSonarCloud(you can sign up an account for free) in order to detects bugs, vulnerabili... | I have a project in my github.Sonarqube was running in local machine(windows).Now I want to apply sonarqube on my repository project in my local machine only without using jenkins.I have applied the sonarqube when that project is in local machine.Two requirements I want to do
1)Applying sonarqube to remote repository
2... | Applying sonarqube for remote repository |
Indeed, configure your server to require client certificate authentication. You will receive the client authenticator details in the headers.You can force to only accept specific certificates by configuring the public root certificate of those client certificates on the server and removing all others that you are not i... | A number of Countries have implemented electronic id cards, that their citizens can use to securely access online facilities like banking.I am interested in learning how to support these cards, but tracking down documentation on how to do this from an IIS hosted website is a real PITA: In MSDN for example the bulk of t... | Accessing Smartcards from a Web Site |
No it doesn't have the same flag I think because it does not even do the same behaviour of downloading recommended packages.However there is another flag--virtualwhich helps keep your images smaller:apk add --virtual somename package1 package2and thenapk del somenameThis is useful for stuff needed for only build but no... | I'm trying to make the absolute smallest Docker image I can get away with, so I have switched from ubuntu as my base to alpine.Forapt, I used to use--no-install-recommendsto minimize "dependencies" installed with my desired packages. Is there an equivalent flag I need to pass along withapkor is this the default behavio... | Does alpine `apk` have an ubuntu `apt` `--no-install-recommends` equivalent |
Git has a limit of 4096 characters for a filename, except on Windows when Git is compiled with msys. It uses an older version of the Windows API and there's a limit of 260 characters for a filename.
So as far as I understand this, it's a limitation of msys and not of Git. You can read the details here:
https://github.... |
I'm using Git-1.9.0-preview20140217 for Windows. As I know, this release should fix the issue with too long filenames. But not for me.
Surely I'm doing something wrong: I did git config core.longpaths true and git add . and then git commit. Everything went well. But when I now do a git status, I get a list of files wi... | git diff "Filename too long" [duplicate] |
You can just rebase this branch on master:src/myproject (branch2)$ git rebase masterAny changes in contains that are already in master will be "swallowed" into those master changes, and you'll remain with just the distinct changes this branch contains. | I am working on a feature in a repo. I have created a feature branch (saybranch_1) and another branch (saybranch_2) on top ofbranch_1. I used to rebasebranch_2every timebranch_1was updated, but now thebranch_1is being merged intomasterso I want to rebasebranch_2intomaster, so thatbranch_2have only its own changes. How ... | git - rebase branch, built on top of another, on master |
You can download report plugin hereand add it to sonarqube_folde/extensions/plugins/If you have older version you can Click on "More versions" underBy SonarSource – SonarSource – Issue Tracker – Supported by SonarSourceNote: You have to buy Enterprise licenseShareFolloweditedApr 17, 2018 at 12:26answeredApr 17, 2018 at... | Is there a way to generate report using SonarQube6.7.
I tried using sonar-pdfreport-plugin-1.4 plugin, sonar server started - but while running sonar-scanner throws,"java.lang.NoSuchMethodError:`org.sonar.api.resources.Project.getConfiguration()Lorg/apache/commons/configuration/Configuration;"`error.How can i get a rep... | How to generate report for sonarQube6.7 |
Could this be of any help?
Quote:
Did you forget to add your public key to the github project settings?
Also check to make sure your private key is in your .ssh directory.
Goto https://github.com/[username here]/[project name here]/edit and
make sure your public key is set.
Read this too: http://help.github.com/m... |
I am just trying to create my first repo from Ubuntu 11.10 with this command:
I was about to finish sudo git push -u origin master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
How can this be fixed?
I tried this too. i.e git push -u origin master. I got this error.
error: could not l... | Github push error. Permission denied |
Prometheus is the one who makes distinction between this series.Prometheus considers two timeseries different if they have different label set.To avoid this distinction you need to use query, that will remove labelec2_vpc_idfrom consideration.For example, this can be done withsum without(ec2_vpc_id) (node_load1{instanc... | I have Prometheus configured to scrape metrics from an ec2 instance. At some point I wrote an extra relabeling rule that populates the newec2_vpc_idvalue.- job_name: ec2
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
relabel_configs:
- source_labels: [__meta_ec2_vpc_id] <-- newly added
... | How to combine Grafana/Prometheus series after relabeling |
Check thePATHyou have when you login against the onecrontabgives you. It may be quite different.rvmdoes other things as well as set the path. You'll need to make sure ourPATHis correct, and run the script that rvm puts in yourloginprofile[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm". You could tr... | Currently i have blog site which works withOctopressin relationship with Git but currently facing a problm that i can't update the site automatically via a cron triggered script. I'm using a script (update.sh) with the following contents:#!/bin/bash -x
export PATH=/usr/local/rvm/gems/ruby-2.0.0-p247@global/bin/:/usr/lo... | Update of blog site via cron does not work |
After a more thorough research, I found out that the "DescribeInstanceStatus" routine doesn't support searching by tag, but I found a somewhat "simple" way of doing so. I'll post it in here in case anyone goes through the same situation.Here's how:DescribeInstancesRequest req = new DescribeInstancesRequest ();
req.Filt... | I'm trying to filter EC2 instances using the AWS SDK in .NET and, although I have seen inumerous threads on SO and on other websites of people resolving this issue, nothing I've tried on my end worked.So, as a last resource, I'm coming to you guys for help. Can anyone shed some light on what I'm missing ? I know it's v... | Filter EC2 Instance with "DescribeInstanceStatus" routine - AWS SDK |
The usual way to deal with this is checking out the branchfeature/my-changes, then make the changes according to the review comments, create a new commit and push your branch. | I have a branchfeature/my-changeswhich I have made changes to. I pushed these changes, created a pull request, and have gotten feedback on my changes through a code review. My question is: Now that I see the changes I need to make in github (from code review comments), do I simply go back to my code editor and make tho... | Making changes to branch after code review in git |
In theory you could write all the needed policies for it to work. But the Selinux subsystem doesn’t really understand namespaces and this only barely understands containers. So if you’re already running a minimalist host OS it gets you very little added security for a great deal of complexity, most people skip it.Share... | Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchange site, ... | Why we need to disable SELinux during kubernetes installation [closed] |
Ok, now it can easily be done in github by looking at/network/dependenciespath likehttps://github.com/jekuno/milia/network/dependencies | I am trying to use a gem. Let's say,gem "milia", and want to find other people that use it in their apps in order to benchmark. Is there a way to search for apps that have this line of code in theirGemfile? | How to find apps on Github, that use a specific Ruby gem?/contain a specific line of code? |
The pre-defined variableBuild.Repository.Nameis the name of the triggering repository not the name of the repo that triggered the build. See:Build variables (DevOps Services)for details.In addition, by reference to this doc:Check out multiple repositories in your pipeline, thecheckoutstep is validated when queuing this... | I am using Azure git, and my Pipeline is using multi-repo triggers.I want to checkout the repo that triggered the build. I see thatcheckout: selfuses the repository where the .yml file lives, not the one that triggered the build.I found that$(Build.Repository.Name)holds the name of the repo that triggered the build.So ... | In Azure can I dynamically checkout a repo when using multi-repo triggers? |
From what I can understand, you want to update your working branch "match" with the new files / changes that have been made on the master "dev" branch.
You can either git merge (creating a new merge commit) or rebase, as is described in the below answer:
Update Git branches from master
|
On my git repository, i have 2 branch :
dev
match
My "dev" branch is like my master, i merge my other branch on it.
I work on "match", and to merge on my dev, i had switch on it and make "git merge match". The merge is done now.
My question is, how copy/past the files on the "dev" branch on my "match" branch ? 2 oth... | What do I have to do after a merge? |
The ECU (Elastic Compute Unit) was a unit of measure designed to provide a relative measure of performance between Amazon EC2 instance types. For example, anm1.smallinstance had1 ECU, anm1.largehad2 ECUs, etc.However, it is no longer possible to summarize the power of an instance in asingle number. Some instances have ... | I did a test performance for my server(1 ECU), but My server only arrived 1000 users in testing, how many ECU I need for 15000 users? | What is ECU(AWS)? What does that mean? |
Actually no, but since November of 2018 AWS announced the Lambda layer which is basically the way to you run your own runtime such as PHP. You have two simple ways to run lambda with PHP1 - Create your own cloudformation stack passing the PHP layer for examplearn:aws:lambda:us-east-1:887080169480:layer:php73:2Something... | Closed.This question does not meetStack Overflow guidelines. It is not currently accepting answers.This question does not appear to be abouta specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic onanother Stack Exchange site, ... | Does AWS Lambda supports PHP? [closed] |
You want to see if that range includes the hour:if (6..14).include?(Time.now.hour)
puts "I did the rake job"
end | I have a cron job on Heroku that needs to run for 8 hours a day. (Once an hour, eight times, each day.).These do work as expected:
(all code in /lib/tasks/cron.rake)if Time.now.hour == 6
puts "Ok it's 6am and I printed"
puts "6:00 PST put is done."
end
if Time.now.hour == 7
puts "Ok it's 7am and I printed"
pu... | How can Heroku:cron handle a range of hours? |
Here's how you do it.
First navigate to the commit in question, and then click on the <> button next to the commit in your history. This will show the web interface for browsing that particular commits snapshot of the repository.
Then, you see a small button with the commit id, just above the contents, like this:
The... |
This deals : How do I create a new Git branch from an old commit? about creating new branch needed from command line on a repository based on commit-id
pretty much,
git checkout -b ini_commit_ref_branch cf05eed4fbd76e30615e3876ead9ddb7c5593cd8 # eg commit
git push --set-upstream origin ini_commit_ref_branch
But how ... | creating a branch from Git commit ID within Github web UI |
As per the GCPdocTo request GPU quota, use Cloud Console. For more information about requesting quotas, refer toRequesting additional quotain the Compute Engine documentation.ShareFollowansweredJan 17, 2021 at 4:04MahboobMahboob1,90755 silver badges1919 bronze badges2Yeah, that's what I did, incurring in the issue abov... | I'm new to Google Cloud and I'm trying to set up a VM to do some deep learning experimenting, exploiting Google free credits.I set up a Linux VM with a Tesla K80 attached and I now have to request a GPU quota increase in the same region the VM is located in (us-central1-a, in my case). So, I navigate to the Quotas tab,... | How to increase Google Cloud GPU quotas |
You can use^gallery/country/(?:.*[/.])?([a-zA-Z]{2})/?$See theregex demo. Details:^- start of inputgallery/country/- a literal string(?:.*[/.])?- an optional pattern matching.*- any zero or more chars other than line break chars as many as possible[/.]- a/or.([a-zA-Z]{2})- Group 1: two ASCII letters/?- an optional/$- e... | I want to pick up the ISO code (two letters) of a country using a REGEX expressionFor example, for the countryIrelandthe ISO code isie. The ISO code could be found after the slash/or after thelast.This is myRewriteRule:RewriteRule ^gallery/country(?:/[^/]*([a-zA-Z-9]{2}))?/?$ gallery/gallery.php?country=$1 [L,QSA]Here ... | REGEX expression: get the two letters after the slash or after the last dot |
There are a few options, depending on your exact use case:
1. COPY directive inside Dockerfile
See documentation, this command allows you to, well, copy the file from host into your image into specified path. So every time a new container is up, it will be there (obviously, as it's part of the image).
2. Mounting a vo... |
I'm having a scenario wherein I need to copy a .tar file into docker container and extract the content to a specific folder inside the container. So do we have any specific commands to handle this Scenario?
| How to Copy and Extract a .tar file inside a Docker Container |
In order to make your host files visible within your container, you need to specify:
<host_path>:<container_path>
So in your case:
docker run -it --name <whatever> -v /opt:/opt
|
Docker allows a directory to be shared among other containers with the -v option.
But it shadows any existing directory on the host.
How can a host directory be made visible to the docker instance?
For example, this creates a mountpoint at /opt:
nvidia-docker run -i -t --name x nvidia/cuda:7.5-runtime-ubuntu14.04 -v /... | Share Existing Host Directory with Docker Container? |
There are several options, but compared to the reboot strategy all these options have a performance degradation.One possibility is to check the last update time of the cert file on every request (or at regular basis). If the timestamp changed (compare to the one you have in memory), you can reload the content of the ke... | My SSL certificates expire after 90 days, and I can generate a fresh certificate on request. (I get free certificates usingLet's Encrypt Without Sudo.)At the moment I have a simple HTTPS server which I need to reboot to update the certificates:require('https').createServer({
key: fs.readFileSync('./ssl/key.pem'),
... | Zero-downtime SSL certificate update |
Pros for storing files in the database:transactional consistencysecurity (assuming you need it and that your database isn't wide open anyway)Cons for storing files in the database:much larger database files + backups (which can be costly if you are hosting on someone else's storage)much more difficult to debug (you can... | Whats the advantage/disadvantage between storing files as a byte array in a SQL table and using something like Amazon S3 to store them? Whats the advantage of S3 that makes it so I should use that instead of SQL? | Storing files in SQL server vs something like Amazon S3 |
Try this rule:RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
RewriteCond %{HTTP_HOST} ^(www\.)?([a-z0-9-]+)\.example\.com$ [NC]
RewriteCond %2%{REQUEST_URI} !^([^/]+)/\2
RewriteRule (.*) %2/$1 [L]The addtionalRewriteCond %2%{REQUEST_URI} !^([^/]+)/\2should avoid infinite loops caused by theLflag.ShareFolloweditedJu... | Basically I want *.domain.com to pull up domain.com/*/ (not redirect).I went into the subdomains section of cPanel and set a wildcard for this domain. It appears to be resolving correctly, ie *.domain.com is bringing up domain.com.I've now made a htaccess file in the public_html directory containing:Options +FollowSymL... | Mod ReWrite Catch-All Subdomain |
AWS Control Tower needs trusted access to be disabled for both Cloudtrail and Config. To disable this you need to login into the Organization management account, and go toAWS Organizations > Services > Disable Config/Cloudtrail.Trusted access enabled at an Organization level enables these services to inject service rol... | I'm trying to create an AWS Control Tower landing zone for my AWS organization, and am getting a message sayingYou must unsubscribe your organization from AWS CloudTrail so that AWS Control Tower can proceed. During the setup process, AWS Control Tower creates a new trail in the audit account that's part of your landin... | How do I unsubscribe my AWS organization from CloudTrail? |
Unfortunately, the only real resolution is to set a duplications exclusion for those two classes (assuming this is 1 class/file).Go to Project Settings -> General Settings -> Analysis Scope -> C. Duplication Exclusions | Sonarqube block my build due to Duplicated blocks for this two classes :@Entity
@Table(name = "my_table")
public class Employee {
@Id
@Column(name = "ID")
Integer id;
@Column(name = "NAME")
String name;
@Column(name = "AGE")
Integer age;
public void setName(String name) {
this.nam... | SonarQube Major Issue: Duplicated blocks of code must be removed same class with different annotations |
You can try and first change your username and email in the GitHub for Windows option (click on the Tools icon)
The OP Dinesh does insist that the default username and host is displaying the profile and the system name.
He asks if it is possible to change the default one to his custom username and host, because the ... |
I have installed the github for windows and I am unable to change the user@hostname in the git bash. I am new to git please let me know how to change the user and the hostname. I am trying to connect via gitbash to a private git hosting server.
| Gitbash - How to change default user@hostname |
Massive facepalm moment.
I had index.php in the .gitignore, I needed to have /index.php to ignore only the index.php in the main directory.
|
Have a very odd and annoying issue with Git/GitHub.
In a certain branch, any file that has the path as /views/admin/index.php, /views/teacher/index.php, /views/parents/index.php, /views/student/index.php won't detect any changes to the files no matter what. Deleting the file, removing all the code, or just making a sm... | Git won't pick up changes to certain files |
Those are designed for use from the JVM, such as on a desktop or server. They contain main() methods for use with the java command. They are not Android apps and cannot be run from within Android Studio on Android devices.
|
I downloaded this git repository: https://github.com/jitsi/libjitsi
It contains two examples, but when I try to run them, the run button is disabled:
When I select in the menu "Run" -> "Run", it tells me to add the edit configurations for the app and this window opens, but I don't know what to select there:
I found ... | How to run this android studio app from github? |
With respect to #1, yes you must release myArray before setting a new value to it, otherwise you'll leak. Note the property, it's labelled as a copy, meaning that myArray will hold an object with a reference count of one once its set.
And with regards to #2, because if you don't mutableCopy, you're not getting a copy ... |
The following code is on Apple's website.
1) Inside the setMyArray method, is it necessary to release myArray before setting a new value to it? I thought setting the value of an object to a new object, will release the old object from memory.
2) Why does it say myArray = [newArray mutableCopy];, instead of simply sayi... | Objective-C memory management: Inside the `setMyArray` method, is it necessary to release `myArray` before setting a new value to it? |
I apologize; I've retracted my earlier answer because I missed the fact that you already have privileged: true in your docker-compose.yml. You have a different problem.
First, the error from RPi.GPIO is misleading: it doesn't really want access to /dev/mem; it wants access to /dev/gpiomem, which on the host has the f... |
I am a complete beginner at Docker, so please do easy on me.
I am trying to deploy a Django project in a Docker container on a Raspberry Pi 3B, but I am running into a problem accessing the GPIO ports.
Every time I try to initialise Docker with “sudo docker-compose up”
I get the error: “RuntimeError: No access to /dev... | Docker Django GPIO Rasbian buster |
Ingress controllers and loadbalancers usually rely on the NodePort functionality which in turn relies on Kubernetes network layer. Kubernetes has some networkrequirementsto ensure all its functionalities work as expected.Because SoftEther VPNsupportsLayer2 connectivity it's possible to use it for connecting cluster nod... | I have a softether Vpn server hosted on ubuntu server 16.04, I can connect to the vpn from other linux/windows machines. My goal is to use the vpn only for Kubernetes networking or when the server is making a web request. but I don't want to use the vpn to expose my nodePorts/Ingress/loadbalancers. I want to use the de... | Use softEther VPN (virtual adapter) for kubernetes network and default adapter for ingress |
You need to escape "%" characters in crontab entries with backslashes- see the crontab(5) manpage. I've had exactly the same problem.For example:0 7 * * * mysqldump usblog | bzip2 -c > usblog.$(date --utc +\%Y-\%m-\%dT\%H-\%M-\%SZ).sql.bz2Do you not get emails of cron errors? Not even if you put "[email protected]" in ... | I have an entry in my crontab that looks like this:0 3 * * * pg_dump mydb | gzip > ~/backup/db/$(date +%Y-%m-%d).psql.gzThat script works perfectly when I execute it from the shell, but it doesn't seem to be running every night. I'm assuming there's something wrong with the permissions, maybe crontab is running under a... | How to test crontab entry? |
Definitely not, and with in any version of SonarQube. Doing so will confuse both SonarQube instances and will mess them both.
Olivier | Is it possible to run two sonarqube 5.3 instances on different machines which points single database.Thanks | Is it possible to run two sonarqube instances on different machines which points single database |
Maybe the container-to-container feature can be used but I believe it would require collaboration from the cloud operators:http://docs.openstack.org/developer/swift/overview_container_sync.htmlAlternativelyrclonemay come in handy. | I have two OpenStack services, hosted by different providers and I'm trying to figure out the best way to copy an entire container from one service to the other.Right now I'm looking at two options:Somehow use the swift cli to copy the container from one service to anotherDownload the entire container to my local envir... | Copy Swift object storage container to new openstack service |
BuildingDockerimages manually - is not so good idea...
It's no surprise you spend too much time for this. Better way - is configure and deploy any CI/CD System, which could build image or make any other action automatically per commit or merge request. Of course, this is going to take your hours, but you'll have to do ... | I'm new in GKE.Is there anyway to update new version of my code without re-building the docker image?
Because I had to rebuild the docker image and uploaded it on GKE every single time I changed even a bit in my source code and it took me a lot of time.
Thank you. | Can I update my code in Google Kubernetes Engine(GKE) without re-building the docker image? |
I found an answer maybe its not the best solution but it works.
Problem is storage.cache that holds layers. When I removed this sections from config.yaml everything worked as it should. If you need cache then you should find way to clear layers from cache after GC. | So I have private docker registry and all I want to do is to be able to delete manifests and dangling layers.
What I am doing is finding digest of the manifest in Registry API, then sending DELETE on /v2/NAME/manifests/SHA256 which is working perfectly fine. Then I run garbage collector by docker exec -it CONTAINERID ... | Docker registry garbage collector does not delete layers |
Don't create NoImageIcon all the time. Use only one referenceDon't try to store all images in memory. It's a mobile.Limit your app for devices with at least 512MB RAMStore lower resuolution pictures. 800*600 is full screen on many devicesLoad images on demandCall GC right after you release an image | I got a OutOfmemory error when i create a list of bitmapimage...What am i supposed to do...?Thanks for your help ;)Here is my code :foreach (var bytearray in imageDataBlocksPresta)
{
if (bytearray != null)
{
MemoryStream ms;
using (ms =... | System.OutOfMemory BitmapImage WP8 |
Why should they go through the pipeline if there are no subscribers? If one of your intermediate steps is useful for their side-effects (You want them to run even if there are no other subscribers), you should rewrite the side-effect operation to be a subscriber.You could also make the step with a side-effect as a pas... | Currently, I'm using the RX Framework to implement a workflow-like message handling pipeline. Essentially I have a message producer (deserializes network messages and calls OnNext() on a Subject) and I have several consumers.NOTE: If and transform are extension methods I have coded that simply return an IObservable.A c... | RX IObservable as a Pipeline |
usesis used to select an action that is already defined and can be reused. It can be defined in the same repository, a public repository or the Docker hub.Below is from the GitHub Actionsdocumentationregardinguses(iejobs.{job_id}.steps.uses) keywordSelects an action to run as part of a step in your job. An action is a
... | I can't event find it in documentation -uses. For what is it used? Where I can read about this command? | What is "uses" directive in github actions used for? |
The MassTransit.Prometheus package uses the prometheus.net library. You should be able to set the static labels that you want by calling the function Metrics.DefaultRegistry.SetStaticLabels as described here:https://github.com/prometheus-net/prometheus-net#static-labels | I am using the "MassTransit.Prometheus" NuGet package to add metrics to my Asp.net core project.
Now I need to add some static labels to those metrics but could not find a suitable way to do it.
Note: I prefer to keep using the default "UsePrometheusMetrics" extension and don't create custom metrics.
Will somebody advi... | Add prometheus static labels to masstransit metrics |
I added the java arguments to the execution jobs which seems to solve the problem .
java -Xmx64m -Xss256k -jar abc.jar
After this even though I had 13 jars deployed on the same server I had 10GB worth of memory left and which was 1.7GB before I added the arguments.
Memory Before JAVA arguments:
free -m
... |
I have about 8 API's JAR and 4 from spring cloud (Zuul,Hystrix,Config-Server,Eureka). I am running all the jars in one server right now though we will scale up later when going to production.
The AWS Linux server has a 16GB memory. The problem I am having is the server constantly runs out of memory for some reason and... | Memory issue during JAR execution |
Indeed, as pointed out by Bogdan Gavril, since SonarQube 5.2, the analysis results are not immediately available on the server: There is a background task running on the server that does some further analysis - the project only becomes visible when that background task is completed.You can see the status of the backgro... | I am using SonarQube 5.2 integrated with Team Build being executed using an on prem agent connected to Visual Studio Online. The build completes and shows a summary of SonarQube results in build summary, screen shot below. However, when I navigate to it the results are not available in SonarQube dashboard.I am trying t... | SonarQube not showing analysis results from Team Build |
Assuming you have a local build system to build your Docker images: you could include the build number from your local build job in your tag. With that you assure your requirement:
... it is necessary that a certain tagged docker image always refer to the same image.
When your local build automatically pushes to doc... |
Is there any way to prevent images being uploaded to docker hub with the same tags as existing images? Our use case is as follows.
We deploy to production with a docker-compose file with the tags of images as version numbers. In order to support roll-back to previous environments and idempotent deployment it is necess... | How to prevent docker images on docker hub from being overwritten? |
Check to make sure thatdisable cacheis not checked on the network tab.Google Chrome Manifest fetch failed (6)Is the error that Chrome throws when the appcache triggers anerrorevent (seethisfor a decent primer on appcache events). This is normal when the browser detects that you are offline.In that event, however, the b... | I am reworking an app I made a while ago to also work offline. When the page loads, thecache.manifestis found and it caches all the pages correctly. However, when I refresh the page when not connected, I get a ton of errors.One of the errors isManifest fetch failed (6), which, according tothisanswer means aNETWORK_ERRO... | Google Chrome Manifest fetch failed (6) |
After tons of research, I started printing print(sys.path) to find out where "I was working". From there I created an exception handler
try:
sys.path.insert(0, os.path.abspath('..')) #Works for local
from sheetmaker import html_builder
from data import test_html_constants
except:
sys.path.insert(0, os.... |
This is my first time using Travis and "test" in general.
I created a few test and now I want to add them to Travis but I'm having trouble with PATHs.
Here is what I have:
sheetmaker/
html_builder.py
constants.py
sheetmaker.py
tests/
test_html_builder.py
data/
test_html_con... | [Python]Can't make Travis CI work. PATHs problems |
In general please have a look at the SonarQube rule descriptions to understand what they mean, whether they are relevant for your usecase and how to fix the issues. In this case therule descriptionshows how this can be solved:// since Java 8, we can use Supplier, which will be evaluated lazily
logger.log(Level.SEVERE, ... | My code looks like:logger.debug("Message:Request", new Gson().toJson(req));Sonar issue says:Invoke method(s) only conditionally.How do I fix this line of code? | How to resolve Sonar "Invoke method(s) only conditionally" |
This appears to be where gradle stores the results of unpacking all of the AAR (Android library files with .aar extension) that are listed as dependencies in your project. When gradle builds your project, it would seem that it creates a corresponding .gradle/caches/transforms-1/files-1.1[your dependency].aar directory... | Would anyone happen to know or have documentation to what the transforms-1 folder is for gradle's caches? For instance on Mac the folders path is ~/.gradle/caches/transforms-1. It seems Android studio uses it but I was wondering what else it is used for? | What is the transforms-1 folder inside of the .gradle caches folder |
You can use the individual pipeline variables likepipeline run time,copied rows count,copy statusas they are (without creating a json document consisting of all values) and use the copy activity in adf to insert the values in cosmos db container. Below is the approach.Three pipeline variablespipeline run time,copied ro... | In ADF, I generate pipeline variables such as the pipeline run time, rows copied count, copy status etc. from various activities. I then use Set Variable to create a JSON string consisting of the above values. Now I want to store this string into an existing CosmosDB as a new record.I cannot use Azure Functions or a No... | Inserting value stored in a pipeline variable as a new row of sink dataset data |
The limit means the site as a whole; that is, all of the pages taken together.
Since a GitHub Pages site is designed to be used as a website for your open source project or as a personal site, and as a practical matter 1 GB for a single web page is too large to render in a modern web browser efficiently, it wouldn't b... |
Citing github page limits:
"Published GitHub Pages sites may be no larger than 1 GB"
Does this means 1GB overall my pages or 1GB for each github page?
| Github page limits for each or overall? |
In default configuration rails does not have caching enabled/configured in development.
Starting with rails 5 you can touch tmp/caching-dev.txt or rm tmp/caching-dev.txt and restart server to toggle it (for earlier versions you can backport this to your app, see config/development.rb of 5.2.1).
Note that you also have... |
I'm using a render partial: 'fragment', locals:{obj:item} for every row in table.
It takes long time to process the whole page.
Is there a way to save all fragments for each item at first loading and don't render them again each time during the server works?
UPDATED
card/index.html.haml
%table
=render partial: 'ca... | Rails how to cache partial? |
For now, I'm just usinggc.collect()It solved the problem. | I was running a script and memory usage was increasing like crazy, so I wonder do python kill memory after each function when reading files.So I did this:import update_lib as upd
from time import sleep
import trading as td
def open_z():
df = td.open_stock('poloniex/BTC_ETH')
while(True):
open_z()The memory i... | Python memory usage reading files |
You should put the root element outside the location block.
server {
listen 80;
root /var/www/dist;
index index.html index.htm
location / {
try_files $uri $uri/ =404;
}
}
After change the configuration remember to restart your nginx instance (if using docker force build image).
|
I'm hosting a vue history site using nginx docker and the nginx config is the following
server {
listen 80;
location / {
root /var/www/dist/;
index index.html index.htm;
try_files $uri $uri/ index.html;
}
}
I can access "http://the.ip.of.serv... | Nginx try_files points to wrong folder |
That post makes it clear:Add the following to the .gitconfig file in your $HOME directory.That means$HOME/.gitconfig(e.g. /home/felipec/.gitconfig).But precisely for this reason is why the--editoption was added:git config --global --editNow you don't have to know or care where is the file, just edit it. | Trying to set up some aliases for git config, i know i can do it through terminal but I would like to setup a git config file as given here.http://gitimmersion.com/lab_11.html. But I dont understand exactly what i need to do, i have tried saving that exact text in a file ".gitconfig" through sublime 2 but it does not w... | How to set up a gitconfig file |
No, this isn't possible. Max heap size is device dependent. See also thisquestion.The total memory of the handset is irrelevant. The JVM (or better the KVM) has only access to a part of it. The total amount varies from handset to handset. It could also be a restriction for the total memory a single MIDlet can access.Sh... | I've a JME application running in a samsung i617 cell phone, and the applications is throwing OutOfMemoryError when its heap goes over 7.1 MB (and the cell phone has 64 mb)...Is it possible to use the -Xmx and -Xms parameters in JME | Using -Xmx and -Xms in a JME application in a cell phone |
The node part of your docker-compose.yml doesn't declare any volumes - how should docker know which part of your node image should be shared! Try adding something like this to the node service in your compose yaml:
volumes:
- /usr/src/app
|
I have the below compose file which starts 2 containers
services:
nginx:
container_name: nginx
build: ./nginx/
ports:
- "80:80"
links:
- node:node
volumes_from:
- node
node:
container_name: node
build: .
env_file: .env
command: npm run package
The dockerfile... | volume not getting mounted in nginx container |
That's what i want. Thanks @gnasher729.Put data cache files in the Library/Caches/ directory. Cache data can be used for any data that needs to persist longer than temporary data, but not as long as a support file. Generally speaking, the application does not require cache data to operate properly, but it can use cache... | I'm storing image files in Documents directory for file caching.var paths = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)[0] as String
var path = paths.stringByAppendingPathComponent(imagePath!)
data.writeToFile(path, atomically: true)What will happen when so many file stored? Is there ... | iOS Physical Memory Management (File Cache) |
Don't know what type of OS you're using, but most of the times a linux distro is shipped with firewall iptables. When you Google on iptables and accept ip-address you get a lot of hits. I think this link will solve your issue:https://wiki.centos.org/HowTos/Network/IPTablesShareFollowansweredOct 12, 2015 at 9:27JordyJor... | I would need to add an IP address to na NAT table in Linux Debian, with accept policy. I have no idea how to NAT an IP address... | How to add an IP address to NAT table (Linux Debian) - POSTROUTING chain |
There's an open ticket for this:https://github.com/kubernetes/kubernetes/issues/63214A short term solution is to run your job like this:kubectl run migrate --stdin --tty --rm --restart=Never --image=example.org/app/php:v-$(VERSION) --overrides="$(cat kubernetes/migrate.pod.yaml | y2j)"Usingy2jto convert YAML to JSON so... | I've found 2 different ways to run a one-off command in my kubernetes cluster:Method 1kubectl apply -f kubernetes/migrate.job.yaml
kubectl wait --for=condition=complete --timeout=600s job/migrate-job
kubectl delete job/migrate-jobThe problem with this is (a) it doesn't show me the output which I like to see, and (b) it... | How to run one-off job? |
You can use:RewriteEngine on
# redirect http to https with 0 or 1 subdomain
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^([^.]+\.){1,2}[^.]+$ [NC]
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [NE,L,R=301]
# redirect https to http with 2 or more subdomains
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^(... | I can't afford a wildcard SSL certificate for an infinite level of subdomains, I only have a*.domain.tldwildcard. So I want HTTPS requests to be re-written to HTTP requestsifthere is more than one level of subdomains in the%{HTTP_HOST}variable. And HTTP requests should be rewritten to HTTPS requests if there is none or... | .htaccess HTTP or HTTPS depending on subdomain level |
It is not possible to send files directly via API. It is only AWS Management Console which converts files (.txt, .pdf, .csv etc) to SDF (Search Data Format) during upload. Here is the official reference http://docs.amazonwebservices.com/cloudsearch/latest/developerguide/senddata.html
But you can covert your files to S... |
can we upload files(text, pdf etc.) on AWS Cloud Search using API? I read its documentation but I didn't get any reference on
http://docs.amazonwebservices.com/cloudsearch/latest/developerguide/SvcIntro.html?r=130.
Or do I have to create SDF which contains extracted text from documents.
| Uploading documents on amazon cloud search? |
I haven't tried this, but from what I gather you should be able to add aLICENSE-XXX(.md)whereXXXis the abbreviation of the license type you want, soLICENSE-MIT,LICENSE-GPL. Each file will be detected as a licensen. | I could not find answer by googling. I want to add several free licenses for them to be easily seen on project page.https://github.blog/changelog/2022-05-26-easily-discover-and-navigate-to-multiple-licenses-in-repositories/seems to suggest a project can have at least two licenses as its "property".https://docs.github.c... | Github - how to add several discoverable licenses? |
Based on the comments.
The issue turned out to be due to django setting: django.middleware.security.SecurityMiddleware:
The django.middleware.security.SecurityMiddleware provides several security enhancements to the request/response cycle. Each one can be independently enabled or disabled with a setting.
Removal of ... |
I'm facing ERR_CONNECTION_TIMED_OUT while deploying django using aws elastic beanstalk.
Current status
Console shows that it's properly deployed. (shows OK status to me)
Allow inbound traffic for security group.
However, when I tried to connect instance using the url the elastic beanstalk provide, I've been always s... | ERR_CONNECTION_TIMED_OUT while deploying django using AWS elastic beanstalk(with nginx + gunicorn) |
It seems that GitHub repository can work as working repository and bare repository at the same time, does that mean GitHub repository is developed from git bare repository
No, Git repos on GitHub are bare, like any remote repo to which you want to push.
Their web interface shows you a representation of the git rep... |
In github repository, we can git push git pull operations, at the same time, we can commit to the repository through the web UI. It seems that the github repository works as bare repository and working repository at the same time?
However, in git bare repository, we cannot commit directory to the repository.
So, my qu... | what's the difference between github repository and git bare repository? |
git reset --hard 0d1d7fc32will reset you to the desired commit and all the changes will be lost so be care full while doing it. | i have the below commands to update my repository, which will update my library using TortoiseSVN and source with Git.But i want to undo all the changes i made and replace it with what's there in the master repo.cd lib\win64_vc12
svn update
cd ..\..\project
git pull --rebase
git submodule foreach git pull --rebase orig... | Git and TortoiseSVN, how do i undo my changes in local repository without cloning the remote repo again |
What Azure Service offering are you using?
Most App Service based offerings, including Azure Functions in consumption plan maxxes out at 1.5GB memory per process/app regardless of the app service pricing plan you choose. Azure functions in consumption plan have a max memory limit of 1.5GB per function app instance (sc... |
I have the following code which uses a third party library called Aspose.Words:
SaveOptions saveOptions = SaveOptions.CreateSaveOptions(SaveFormat.Docx);
saveOptions.MemoryOptimization = true;
saveOptions.TempFolder = Path.GetTempPath();
var mm = new RecyclableMemoryStreamManager();
using (RecyclableMemoryStream ms = ... | System.OutOfMemoryException in Azure but not locally |
Specifying a command at the end of thedocker runcommand line supplies (or overrides)CMD; similarly, thedocker run --entrypointoption supplies (or overrides)ENTRYPOINT. In your example you gave a command/bin/shso there's something for the container to do; if you leave it off, you'll get an error.As a matter of style yo... | I have read the docs about CMD and ENTRYPOINThttps://docs.docker.com/engine/reference/builder/#entrypointHere, they have mentioned in the table that "NO CMD and NO ENTYRPOINT is not allowed", But I created a Dockerfile without CMD and ENTRYPOINT and the image was built successfully.
Download alpine tar from hereAlpine... | Is CMD or ENTRYPOINT necessary to mention in Dockerfile? |
1
Check technet>
Back up and restore an entire farm (Office SharePoint Server 2007): http://technet.microsoft.com/en-us/library/cc262412(v=office.12).aspx
Share
Improve this answer
Follow
answer... |
I'm currently trying to move a single-server farm to an other server.
The old server is a windows 2003 32-bit with sql server 2005.
The new one is a windows 2008 32-bit with sql server 2008 r2 (32 bit).
Both MOSS 2007 have the same versions.
What I'm trying to do is to use a farm backup from the old server to restore... | Restore a MOSS 2007 farm on a new server |
I could recreate what you saw with a simple test program, but if you let the monitor track a little longer...
CPU was at 0% the whole time (just an open JFileChooser sitting there). The memory fluctuations are curious, but I think the JVM must be doing all kinds of background management and maintenance tasks. That ... |
There are plenty of questions on this issue, but no answer satisfied me; I'm coding a simple GUI window using Swing. Currently it only contains 4 buttons and one of them is opening a file chooser.
When I use VisualVM Monitoring tool to look at memory usage, the result is shown below:
memory usage http://img17.imagesha... | Java Swing memory usage |
I found some clue from thisHiveMQ blog post comment, hope this help. I copied them as below:Hi Sourav,the load balancer doesn’t have any knowledge of MQTT; at least I don’t
know any MQTT-aware load balancer.HiveMQ replicates its state automatically in the cluster. If a cluster
node goes down and the client reconnec... | Hi,I am using nginx stream mode to proxy tcp connection. Could this be possible if I restart my app on the upstream, nginx could auto reconnect to upstream without lost the tcp connection on the downstream? | nginx stream mode reconnect to upstream without close downstream connection |
What is your CPU load during the upload? If you have SSL turned on, then it could be that your are maxing out the tiny amount of CPU that your EC2 instance is allowed to consume. | I upload files from .NET environment using aws .net sdk.
The code runs on EC2 small instance server.
The code is very straightforward and standard.The problem is that uploading ~10Mb file takes about 10 minutes, which in my opinion is not good
File at about 7-8Mb takes about 7-8 minutes respectively.What can be done t... | upload to Amazon S3 extremely slow |
The template you use should work. Make sure you replace <revision-id> with the correct commit hash. In the GitHub UI, go to Revisions, find the proper one, on the file under ... click View file, and then the Raw button.
|
I try to use the following link template to reference different revisions of a gist:
https://gist.githubusercontent.com/<username>/<gist-id>/raw/<revision-id>/<filename>
but I can only get the latest <revision-id> when accessing the 'raw' version of the file.
How to get the <revision-id> of an arbitrary revision?
| How to get the ID of a specific gist revision? |
Although we have released version 0.1.2, we haven't completed redis cache support. So, redis cache isn't available at the moment. We're sorry for any inconvenience.
We have been implementing client. Please check out our repository to find more details. https://github.com/Cetsoft/imcache/tree/master/imcache-redis/src/m... |
I've specified dependency as follows but I can't build a new redis cache.
<dependency>
<groupId>com.cetsoft</groupId>
<artifactId>imcache</artifactId>
<version>0.1.2</version><!--Can be updated for later versions-->
</dependency>
My code is simply as follows but I get build failure.
Cache<String, User> cache = ... | Can't build redis cache with the latest imcache release(0.1.2) |
If you want alternative metric paths for the same set of IP addresses, you can just create another job using a different metric path:scrape_configs:
- job_name: 'MAP-map-health-test_probe-a'
scrape_interval: 5s
metrics_path: /probe-a
params:
module: [prod-map-servers]
file_sd_configs:
- f... | I am trying to simplify the Prometheus configuration so that when we add/remove servers, we can easily replace the IP address.Here is my prometheus.yml filescrape_configs:
- job_name: 'MAP-map-health-test'
scrape_interval: 5s
metrics_path: /probe
params:
module: [prod-map-servers]
file_sd_config... | How can I add/set multiple IPs in Prometheus with different targets |
Looking at this from strictly memory centric point of view, what are the pro’s and con’s of using a System.IO.MemoryStream versus a System.String as my in memory representation.
Some factors I am trying to research are:
How these objects act in a [hypothetical] highly fragmented low memory environment
IMO, a Memor... |
I need to pull large Unicode textual strings (e.g. 200Mb) from a Database (nvarchar) and store in memory for processing. i.e. I need random access to all parts of the strings.
Looking at this from strictly memory centric point of view, what are the pro’s and con’s of using a System.IO.MemoryStream versus a System.Stri... | .NET Strings vs. Streams - Memory Profile and Characteristics |
0
Try removing all of your ${DOCKER_*} environment variables and running it. Many docker utilities manipulate these variables and sometimes they get inconsistent values. I found out that just removing them solved my problems for running the docker command from the propmt.
H... |
I'm using gradle-docker plugin from Palantir. When I try to build docker I receive following error message:
Starting process 'command 'docker''. Working directory: /Users/msolomkin/Projects/glossary/discovery-server/build/docker Command: docker build --build-arg JAR_FILE=discovery-server-0.0.1-SNAPSHOT.jar -t solomkin... | Gradle can't run docker task on Mac |
STDIN_FILENOis aconstant defined inunistd.h:The following symbolic constants are defined for file streams:STDIN_FILENOFile number ofstdin. It is 0.STDOUT_FILENOFile number ofstdout. It is 1.STDERR_FILENOFile number ofstderr. It is 2.As it is a constant, youcan'treassign them. | Documentation of dup says that return value in new file descriptor or on error -1.I'm getting this error, and I really don't know why:mav@mav-MS-7592:~/FRI/OSIZPIZ$ gcc pipe.c -o pipe
pipe.c: In function ‘main’:
pipe.c:26:16: error: lvalue required as left operand of assignment
STDIN_FILENO = dup(fd[0]);Here is my ... | dup error: lvalue required as left operand of assignment |
0
Just print what you do:
DECLARE @table NVARCHAR(MAX) = 'tab';
DECLARE @sql NVARCHAR(MAX) = 'select * into '+@table+'_'
+'convert(date, getdate()) from '+@table;
SELECT @sql;
you will get: select * into tab_convert(date, getdate()) from tab
You need to pass date wit... |
I am looking to backup a table and auto add the date to the end of the table name.
Here is what I have
declare @table char(36)= 'template_fields'
EXEC('select * into '+@table+'_'+'convert(date, getdate()) from '+@table)
And I want the end result to look something like
template_fields_09-09-2015
What am I missing h... | SQL Server EXEC backup table with date dynamically |
Your PHP is probably using a different php.ini file when called through the CLI (Command Line Interface).Usephp_sapi_name()to detect whether you're running in CLI mode, andset_include_path()to force the correct include path. | I am creating a php script that would be called as a cron job. However I need to use the functionalities of the Zend framework. The thing is that relative referencing of files especially in includes don't work when programming for being run via command line so I'm stuck with how do I use the zend libraries here. I don'... | Creating a php script to run as cron job - using the Zend Framework library |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.