Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
I had to change my work directory away from default/to get this to work. Try below (WORKDIRchanges folder,cdin the commands likely have the same effect) could. This builds and runs withsbtcommand for me.FROM openjdk:8 as build
ENV SBT_VERSION "1.5.8"
ENV APP_HOME /service
WORKDIR $APP_HOME
RUN \
apt-get update && \
... | FROM openjdk:8 as build
ENV SBT_VERSION "1.5.8"
ENV APP_HOME /service
RUN \
apt-get update && \
apt-get install apt-transport-https curl gnupg -yqq && \
echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | tee /etc/apt/sources.list.d/sbt.list && \
echo "deb https://repo.scala-sbt.org/scalasbt/debian... | SBT not running from root directory |
Try to use this... by file extension... change the max-age for your needsand even use DEFLATE to compress the download size# 1 YEAR = 29030400 || 2 DAYS = 172800 || 1 MIN = 60
# 1 WEEK = 604800
<filesMatch "\.(jpg|jpeg|png|gif|swf|xml|txt|css|js|ico|pdf|flv|html|htm)$">
Header set Cache-Control "max-age=604800, public... | The htaccess file looks like this:# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On... | Enable mod_expires for browser caching |
-1Check the following code. It may help you$url = 'http://yourdomain.com/category/subcategory/finalcategory/
topic_identifier/p/2/a/3/f/5/';
preg_match('/p\/\d+\/a\/\d+\/f\/\d+/', $url, $p);
$str = implode('/',$p);
$array = explode('/',$str);
echo 'p=>'.$array[1]."<br/>";
echo 'a=>'.$array[3]."<br/>";
echo 'f=>'.$ar... | I'm building a site with URLs in SEO friendly pattern, likehttp://yourdomain.com/category/subcategory/finalcategory/topic_identifier/etc,here the last value topic_identifier is the one with which I look into database, unique string just replacement of unique IDs, I want to see the hierarchical values though, and I may ... | How to process an URL and retrive segments in PHP |
I could useextendedChoiceas belowagent any
stages {
stage("Release scope") {
steps {
script {
// This list is going to come from a file, and is going to be big.
// for example purpose, I am creating a file with 3 items in it.
... | I found out how to create input parameters dynamically from thisSO answeragent any
stages {
stage("Release scope") {
steps {
script {
// This list is going to come from a file, and is going to be big.
// for example purpose, I am creating a... | How to create dynamic checkbox parameter in Jenkins pipeline? |
The answer you got on your other question also applies here: Provide a unique url for your applet each time. It's not humor, as lots of people are using this technique and it would solve your problem.
|
Is there a way to delete older version of an applet from browser's cache? The things I have already tried to prevent the cache problem in first place are:
1- To set "no-cache" in HTTP response header, I placed following script on the top of my jsp:
<%
if (request.getProtocol().compareTo("HTTP/1.0") == 0) {
... | how to remove old applet from browser's cache programmatically? |
May be Your passed AWS configure region is different from your terraform provider region
e.g:us-east-1in AWS configure,us-east-1ain terraform provider region.Please change those regions to the same. | Error: error configuring Terraform AWS Provider:error validating provider credentials: error calling sts:GetCallerIdentity: operation error STS: GetCallerIdentity, https response error StatusCode: 403, RequestID: 95e52463-8cd7-038-b924-3a5d4ad6ef03, api error InvalidClientTokenId: The security token included in the req... | AWS Terraform: │ Error: error configuring Terraform AWS Provider: error validating provider credentials: error calling sts:GetCallerIdentity: |
0
If you're having trouble with external tools, you could also do rough profiling in code.
You can override the static new operator per-class. This would allow you to log/print typenames, sizes etc, and carry out initial filtering - with your 1MiB limit for example. Alterna... |
I need to review the memory consumption of a certain part of a program. At this point I don't care about leaks but simply about when the program allocates which objects in heap.
I can trace the allocation back to certain methods but now I need to zoom in closer.
Ideally I would like to step debug the code to reach the... | How to check heap allocation while step debugging through the application? |
if I understand correctly (not entirely sure) the word you are looking for is "squash":Squash my last X commits together using Git | I was working only on my master branch (silly, I know!) and I pushed the commit to my repo and then opened a pull request against upstream.Someone wanted me to fix this commit so I've done it and made another commit with pull request but now, there is pull request with 2 commits - how merge that commits together? | Merge two commits which are in pull request already |
There's no guarantee when or if references are stored unpacked or packed, or if some future version of Git will store them in some third way (e.g., a real database). You should generally not look at the files inside the.gitdirectory (except to satisfy curiosity), but rather use the provided APIs (e.g.,git rev-parse).T... | Here is what I have done.I have made a new commit in GitHubDid "git fetch" in my local machineExpectation:Tracking branches would be updated, but local branches would remain as is.What I observed:As per what I read online, git tracking-branches are stored in "packed-refs" file in .git folder. They are still pointing to... | Git Fetch not updating tracking branches in 'packed-refs' |
!address is just showing you address space usage. Some of the memory is paged out. The working set (memory actually paged in and in use) is much smaller.
|
I have a .net application. In task manager it showing 249 MB usage in Memory (private working set) column. Then I attach windb and ran !address –summary command. Below is its result. The memory usage its showing in .NET heap(RegionUsageIsVAD) is 568 MB.
Should these two values be same? Can anyone explain why is so ... | .net memory usage reporting difference between task manager and windbg/sos |
In production, each service is already running on their dedicate server instances. I feel it's inefficient to run them inside a container instead of directly running on the host operating system.
The advantage of docker in production is the ease of deployments. To keep performances at their best, install docker on e... |
We're currently using chef for both production and development environment. I like the concept of docker that launches isolated containers for different service roles. And I think it will work great when building a dev environment. I'm a bit unclear on how we should use it in production environment (or should i use it... | How to use docker in both dev and production environment? |
Have you tried leavingsonar.languageblank? According to thedocumentation,If not set, a multi-language analysis will be triggered.Please ensure yoursonar.sourcesproperty covers the required source directories. You can also usesonar.exclusionsto filter sources you don't need analyzed.More info on this topic:https://blog.... | Java8 - angular2 project.using following maven plugin, sonar cube version 6.7.1org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603my project is using java/angular code written in .ts.can i set multi language in sonar.language=java,ts property ? seems to me does not work and throws an error "java,ts" not a plugin... | java/ angular project sonar multi language support |
It's rare that something is quite simply "2x faster" than something else. It might be 2x faster 90% of the time, and 10x slower 10% of the time. For a general system allocator, you want something that does fairly well all the time, rather than very-good-at-specific-cases. That's probably why the default allocator i... |
benchmarks here:
On the use and abuse of alloca
I assume the same holds for other Unices, when google perftools exists, and it is 2x (a bit more) faster than a standard allocator, why then do distributions still ship with sub-optimal ones ? Bearing in mind that tcmalloc has been available for 5+ years.
| Why does ubuntu ship with a memory allocator that is 2x slower than google tcmalloc? |
No, there is no way to tell if a weak reference has been set to nil because its referent has been deallocated.
The weak reference is set to nil by weak_clear_no_lock in objc-weak.mm.
|
As far as I know, when I dereference a dead weak reference in Objective-C, I get a nil value as the result. I'm wondering if there is any way to actually tell if there was a weak value assigned to the variable once it goes away as opposed to simply having a value of nil (for instance if the reference was never assigne... | Differentiate dead weak reference vs. nil value |
You can check how many elementsHashMaphas allocated with methodcapacityand you can try reserving more memory withtry_reserve. However likely this is not a problem, because you probably are storingStrings in thisHashMap, and they are only 3 words in size. You should therefore track how much memory thisStrings are using,... | Closed.This question needsdebugging details. It is not currently accepting answers.Edit the question to includedesired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.Closed1 year ago.Improve this questionMy Rust program is consu... | Size of Rust Hashmap [closed] |
There is not a way to configure the webhook payload. However, youcoulduse a webhook to notify some intermediate system, which would then useweb servicesto retrieve the other values you're interested in and pass them on to the target system. | i want to send sonarqube code coverage / smells numeric analysis values in addition to the quality gates status. webhooks seem ideal for my task but they only send quality gates status, is there a way to customize/configure webhooks? | is there a way to configure payload sent by sonarqube webhooks? |
I assume you're referring tohttps://github.com/org/repo/pull/123.diffto get the diff for PR 123.The unified diff format has no concept of pagination.Emperical testing says no, it is not paginated. | Naive question for github pull request api.
I found from Github API documentation ProTip that pullrequest.diff gives unified diff.However, going through the documentation forPull requestas well as forPagination, I cannot clearly figure out if for large diff in a pull request, is the response paginated?I hope its not an... | Github pull request diff |
It is plagiarism. Which is perfectly legal, unless it leads to fraud (like getting a job based on the brilliant code in a git repository that the person never wrote). In academia it will have massive consequences if found out.More important, it is copyright infringement. Send a DMCA takedown notice to github, and the r... | Closed. This question isopinion-based. It is not currently accepting answers.Want to improve this question?Update the question so it can be answered with facts and citations byediting this post.Closed3 years ago.Improve this questionSomeone copy my github repository and created another github repository simillar to my ... | If someone copy your github repository and created a similar repository and claimed that it is coded by them. Is thst considered as plagiarism? [closed] |
Using curlYou can use the following to create a webhook:curl "https://api.github.com/repos/<org>/<repo>/hooks" \
-H "Authorization: Token YOUR_TOKEN" \
-d @- << EOF
{
"name": "web",
"active": true,
"events": [
"push"
],
"config": {
"url": "http://some_webhook.ngrok.io/webhook",
"content_... | How do you create a webhook from curl or github cli?This doc. does not help a lot:https://docs.github.com/en/rest/reference/repos#create-a-repository-webhook--code-samplesTried this:curl -u <user>:<token>\
-X POST \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/<org>/<repo>/hook... | How to create a webhook from curl or github cli |
The Subversion repository contains a single unique Revision number which is for the whole repository which is implicit a Tag. So the simplest solution is to use this revision number instead extra tagging step. | I want to automatically tag the daily SVN repository at 6:00 pm so that the daily code snapshot can be maintained and I could at anytime in the future go back to any earlier code repository snapshot. We we do this with a script that runs through a daily cron job ? | automatic daily tagging of the SVN repository |
You haven't shown us your code, so it's hard for us to say, but I've verified that this API endpoint does indeed work as expected. For example, I ran the following command against thegit/gitrepository and got a response:$ curl https://api.github.com/repos/git/git/contents/README.md?ref=274b9cc25322d9ee79aa8e6d4e86f0ff... | I'm looking for a way to read contents of file from a specific commit hash using the GitHub APIs. It’s written in the official documentation that the refs are commits/branch/tags to be used to get contents of a specific file from a specific commit.https://developer.github.com/v3/repos/contents/#get-contentsBut the endp... | How to get a file from specific commit hash using GitHub APIs? |
The clue came fromthis bit of the documentation.You can just put the following codebefore you create any AWS client, and the verbose logs will be printed to console.AWSConfigs.LoggingConfig.LogTo = LoggingOptions.Console; | If I want to debug something in C# that uses the AWS SDK, the verbose logs will be helpful, but the only documentation I can find involves routing through log4net or System.Diagnostics, which involve complex config files. I just want to print the output to the console. | How do I turn on verbose logging in the AWS .NET SDK? |
Create a source for the variant. Create ares/xml/directory in that source set, and put your network security configuration XML in there. Create other stuff in that source set as needed (e.g.,res/raw/and your certificate). In that source set, create anAndroidManifest.xmlfile, with an<application>element that just has th... | I would like to trust certificate only in one build-variant. How to make it? | How to have different network-security-config for different build variants? |
Use this source after you make sureRewriteEngine EnabledandOnRewriteEngine On
RewriteRule ^events/([^/]*)$ /events/landing_event.php?url=$1 [L]The original URL:http://www.example.com/events/landing_event.php?url=text-firstThe rewritten URL:http://www.example.com/events/text-firstUpdated with 500 Internal Server ErrorYo... | i am using godaddy hosting and addon domain. i want to make my long url to short url.for example my url is follwing:
www.example.com/events/landing_event.php?url=text-firstand i want following url:
www.example.com/events/text-firstfor this i am using following rewrite url in .htaccess fileRewriteRule ^([a-zA-Z0-9-/]+)$... | URL rewrite rule is not working in php |
There is theaws_lbdata sourcefor NLBs and ALBs lb data resource that takes the arn:data "aws_lb" "test" {
arn = "${var.lb_arn}"
}This returns the following load balancer attributes:Attributes Reference
The following attributes are exported in addition to the arguments listed above:
id - The ARN of the load balancer... | I've created a Terraform script which deploys Lambda Function and Target Group, and assigning it to existing Load Balancer which is defined in variables:variable "load_balancer_arn" {
default = "arn:aws:elasticloadbalancing:us-east-1:xxxxxxxxxxx:loadbalancer/app/xx-test/xxxxxxxxxxx"
}Is there any way to get DNS nam... | Terraform (AWS): How to get DNS name of Load Balancer by its ARN? |
Your Lambda should be attached to a VPC. Then from the VPC the IP Address(es) of your NAT Gateway(s) will be the one that your Lambda will be coming from.If your sFTP server is also in AWS you may want to also set it up with a Private Route, so you don't have to cross the internet. But this would require your IP ... | I currently have an AWS Lambda function I’m configuring to connect with our sFTP server. I have an account created, but I need a list or range of IP addresses to get whitelisted in our firewall. AWS posts its outbound IP address ranges here…https://ip-ranges.amazonaws.com/ip-ranges.jsonThat’s great, but the only IP add... | Identifying the Correct AWS IP Range for a Firewall Whitelist |
0
Take a look if you need to change https://ghuser:[email protected]/foobar/SparkDataSystem to https://ghuser:[email protected]/foobar/SparkDataSystem.git
Share
Improve this answer
Follow
answere... |
I'm trying to push a Subgit created git local repository to remote GitHub without much luck.
I create the repo using subgit
$ subgit import --authors-file ./authors.txt --username svnuser --password svnpass https://foobar.com:8443/svn/StatDNA/git_migration/SparkDataSystem SparkDataSystem.git
IMPORT SUCCESSFUL
I then ... | Pushing Subgit git repo to remote GitHub repo/server |
21
To guard against restarts you need to create a persistent data stored job.
Something like :
Job = {
_id: Number,
job: String,
dueDate: Date,
completed: Boolean
}
Then have some code as follows:
var createJob = function(url, date) {
var j = db.create(... |
Is there a possibility to periodically call functions at a specific time of the day in node.js? My first implementation was
setInterval(functionName(),(24*60*60*1000));
This is suboptimal, because it will restart every time I restart node. Are there better possibilities to implement this?
| Cronjobs in node.js |
For Github Enterprise this is available since version 3.7.0 (2022-10-25):https://docs.github.com/[email protected]/admin/release-notes#repositoriesFor public Github this is supported since May 2022.
See:Block creation of branches that have matching namesNow, admins can block creation of branches that match a configured... | I was wondering if there is anyway to restrict the branch creation in GitHub. I have 4-5 branches created for a repo and would like to maintain it that way. I have applied branch restriction rules on my master branch and hence the developers cannot merge into master but they can create their own branches . Is there a w... | Github new Branch creation restriction |
It depends on your OS, but the general answer is:First make sure you can create a folder (mkdir test)Once that is working,thenyou can usegit init myNewRepoAnd then you can start linking it to GitHub:cd myNewRepo
git remote add origin https://github.com/<me>/<myNewRepo> | For connecting both git and github. First I entered user mail and username and later created a folder in the git folder and located newly created path in git bash and then I enteredgit initthen am getting PERMISSION DENIED. Can any one help me with this ? | How can i connect Git and Github |
3
RUN docker-php-ext-configure pcntl --enable-pcntl \
&& docker-php-ext-install pcntl;
Share
Improve this answer
Follow
edited Sep 19, 2023 at 4:45
answered Sep 19, 2023 at... |
Trying to install the PHP PCNTL onto the PHP 8.2.4-cli Docker image to utilise SIGTERM.
But it doesn't appear to enable support for it.
Dockerfile
FROM php:8.2.4-cli
RUN docker-php-ext-configure pcntl --enable-pcntl
Testing
docker build -f Dockerfile .
docker run --rm -it --entrypoint bash image_id
php -i | grep p... | Enable PCNTL on Docker PHP 8.2 image |
My experience is, when error or warring happen, follow Git client instruction.commit your changes or stash them before you can merge.therefore,(1)git stash(2) Merge(3)git stash pop | I am getting this error while runninggitcommandgit pull origin masterintomy server repository.please, commit your changes or stash them before you can merge. aborting in
run of pull commandi am facing this many time when run this. For solve this problem i triedgit reset --hard. but there any other solution for this.... | How can i pull new update and ignore existing changes? |
Try setting$config[baseurlpath]tohttp://simplesamlphp.localhost/simplesaml/in/var/simplesamlphp/config/config.php.This should allow SimpleSamlPHP to redirect to valid URI so it can give a more useful error message.ShareFollowansweredJan 31, 2017 at 15:28BenjaminBenjamin1,2211111 silver badges2828 bronze badges1Thanks f... | I'm trying to integrate simpleSAMLphp with my application but I am getting this problem:When I execute the requireAuth method, I get redirected to a 404 page, more specifically "http://test.localhost/simplesaml/module.php/saml/disco.php{lot of params here}"this, of course, gives me a 404 not found, since my Virtual Hos... | Simplesamlphp - Redirect to 404 Not Found on requireAuth |
Don't use a foreach loop when removing items from any collection type- the foreach loop relies on using an enumerator which will NOT allow you to remove items from the collection (the enumerator will throw an exception if the collection it is iterating over has items added or removed from it).Use a simple while to loop... | Caching in ASP.NET looks like it uses some kind of associative array:// Insert some data into the cache:
Cache.Insert("TestCache", someValue);
// Retrieve the data like normal:
someValue = Cache.Get("TestCache");
// But, can be done associatively ...
someValue = Cache["TestCache"];
// Also, null checks can be perform... | Looping through keys in ASP.NET cache object |
2
Consider approaching this differently. If you are using git for your Azure DevOps project, then the Azure DevOps Wiki should be persisted to a hidden, but locatable, git repository. Git clone the source and target repositories locally. Then copy what you want to the tar... |
I have a repository in GitHub and have a bunch of documentation(.md) files there.
I want to migrate the documentations into one of the Azure DevOps Wikis.
I am referring this link.
When I am using the option Publish code as Wiki,it only shows the repositories which are available inside the Azure DevOps project.
Is the... | Migrate GitHub repo files to Azure DevOps Wikis from different project |
9
I installed Docker using the GUI with all default presets and I was having the same issue. I fixed this same issue using Docker's dashboard.
Settings -> Advanced -> Allow the default Docker socket to be used (requires password)
By enabling it, it "Creates /var/run/docke... |
I have Docker up and running on my Mac. But "sam local invoke" command results in Error: Running AWS SAM projects locally requires Docker. Have you got it installed and running?
Anyone knows what could be the reason?
| docker up and running on my Mac but "sam local invoke" command results in Error: Running AWS SAM projects locally requires Docker |
You have to run one instance per target, as this keeps the responsibility of scheduling and service discovery with Prometheus. It's also recommended to use the java agent. | Is it possible to usehttps://github.com/prometheus/jmx_exporteron multiple targets or i need to run multiple instance of the jmx exporter ?I'am using run_sample_httpserver.sh script. | Using Jmx Exporter on multiple targets |
0
You can use environment variables to hide API Keys for Javascript. React and Node examples
You could also use AWS Parameter Store to store the API Keys. There are examples of how to integrate with node.js and other frameworks.
Share
Improve this answer
... |
I have a static website hosted on an S3 bucket. The website takes a file as an input and uploads it to another S3 bucket. I don't want to keep the bucket as public. How can I upload a file to a non-public bucket? Currently, I'm using my access key to upload a file, but I don't want to expose the access key in my Javas... | Best way to upload a file to a non-public S3 bucket without exposing access key |
It's a sine qua non that an ssh key is associated with a user, so you must create a user. See https://developer.github.com/v3/guides/managing-deploy-keys/#machine-users
GitHub says it's "totally cool" to create a single machine user for automation.
|
I'm confused about github machine users. I want to add an ssh key with read only rights to my repo to use for automation and have it tied to my repository/organization. But it seems like I need to create an actual github user that is not scoped to anything. I'm referring to where you add a collaborator by "Search by u... | Create github machine user without creating github user? |
Android apps already run as containers on top of linux, similar to docker, using cgroups/namespaces. To run docker on android, it needs to support docker's highlevel API. There is some discussion on the web, but most of it indicates the aufs file system as a blocker that needs an alternative.
Docker supports alternati... |
Would it be possible to build a Docker app on Android? I noticed there aren't any right now, but the kernel is based on the Linux kernel, after all. If there's a way to do this without rooting, all the better!
Some reasons I could see for not being able to do this are that while Android is based on the Linux kernel, i... | Using Docker on Android |
I've just had the same issue.Usingprettier-ignoreworked for me :// prettier-ignore
export const overviewReducer = (state = initialState, action) => { //NOSONARNot the best solution, but at least it solves the problem.ShareFollowansweredJan 2, 2020 at 13:25c4kc4k4,31955 gold badges4242 silver badges6868 bronze badgesAdd... | Havingeditor.formatOnSave = truein VS code, when trying to ignore some rules and suppress the error using //NOSONAR at the end of the line. The line comment is going down. How and where these rules can be configured?export const overviewReducer = (state = initialState, action) => { //NOSONARcoming to the next line like... | How to use NOSONAR at the end of the line having ESLINT and Prettier configured? |
Clearing the cache will empty:Field data (used by facets, sorting, geo, etc)Filter cacheparent/child cacheBloom filters for posting listsThe effect you are seeing is probably due to the OS file system cache. Elasticsearch and Lucene leverage the OS file system cache heavily due to the immutable nature of lucene segmen... | I ran a search and the first time and it took 3-4 seconds.
I ran the same search second time and it took less than 100 ms (as expected as it used the cache)
Then I cleared the cache by calling "http://host:port/index/_cache/clear"
Next I ran the same search and was expecting it to take 3-4 seconds but it took less than... | Elasticsearch cache clear doesn't seems to do what I expected |
You should define links in docker compose file to link django to nginx, or nginx will not be able to access django container.
links
Link to containers in another service. Either specify both the service
name and a link alias ("SERVICE:ALIAS"), or just the service name.
Official document explain
|
this is my docker-compose.yml file
i want to make a nginx to reverseproxy and django to webserver
and i also separate them each container
version: '2'
services:
django:
build: ./django
container_name: django
nginx:
restart: always
build: ./nginx
container_name: reversproxy
ports:
- ... | host not found in upstream when i use nginx and docker-compose |
The solution is to define the proxy in Variable groups and link that to pipeline.
This way Prepare Analysis Task works perfectly to achieve connection to sonarqube instance through a proxy when we use "Integrate With Maven or Gradle option".For MSBuid and Standalone Scanner options we can use Inline Powershell to defin... | Im stuck with this error for a long time now in Prepare Analysis Task in Azure DevOps .Im using a proxy task defined in Inline powershell before this task where i defined -Dhttps.proxyHost and -Dhttps.proxyPort along with Dhttp.proxyHost and -Dhttp.proxyPort which works fine with Msbuild, But unfortunately i recieve t... | Prepare Analysis Task Failing with ##[error][SQ] API GET '/api/server/version' failed only for Maven Integration in Azure Devops |
The correct syntax of gpg command is:
Syntax: gpg [options] [files]
Sign, check, encrypt or decrypt
Default operation depends on the input data
A command gpg --import requires file, not a link, so gnu-keyring.gpg should be downloaded before the gpg command.
The correct part of Dockerfile is:
RUN ["/bin/ash","-c","\
... |
I have compiled information from GNU.org, blogs and other SO posts, but I am missing a key component to properly validate the version of GDB I'm downloading into my container.
# Install GNU GDB
RUN ["/bin/ash","-c","\
mkdir gdb-build \
&& cd gdb-build \
&& wget https://ftp.gnu.org/gnu/gdb/gdb-8.1.tar.xz \
&& wg... | Using PGP to verify GDB in an Alpine container |
If you want to do it with simple .htacces then you can use following .htacces code:RewriteEngine on
RewriteCond $1 !^(index\.php|css|favicon.ico|fonts|images|js|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]Basically what this code do is overwrite your request to your domain (ex: localhost/mysite), instead accessing ... | I have this URL that give me two main parameters, folder and page, and som other tahat can variable to be present or not:http://www.domain.com/adm/master.php?f=folder&p=page&otherparam1=somthing&otherparm2=somthing&otherparm3=somthing[...]in my master.php-file I include a php-file based on these parameters:$folder = $_... | .htaccess rewrite to access php include in subfolder |
From the error messages, the Tiller, component of helm that running in the cluster, use the default serviceaccount in the kube-system namespace to create resources in istio-system namespace, but don't have enough privilege.So you can configure Tiller to use another serviceaccount, and provide cluster admin privilege to... | I am trying to install istio using helm. I get an error "forbidden: attempt to grant extra privileges". I am using Azure AKS cluster.Here is what I've tried with no luck.Using --set rbac.create=falseUsing a brand new cluster with RBAC turned offCreated cluster role binding for cluster admin for the current user[root@59... | helm install istio returns forbidden error |
You should better stick to one url type! (with or without trailing slash) and redirect the wrong type to the other,this code is for removing slash from the end of url :RewriteRule ^(.*)/$ /$1 [L,R=301]If you addRewriteCond %{REQUEST_FILENAME} !-dandRewriteCond %{REQUEST_FILENAME}.php -fbefore that it works also with su... | I'm trying to rewriteexample.com/news.phptoexample.com/newsorexample.com/news/. With my codeexample.com/newsworks just fine butexample.com/news/gives me a404 Not Found.My code:<Directory /var/www/>
Options -Indexes SymLinksIfOwnerMatch -MultiViews
AllowOverride None
Order allow,deny
allow from all
... | removing extension mod_rewrite is too tolerant |
Which version of SCDF/Skipper you are running?
This looks similar to the issuehttps://github.com/spring-cloud/spring-cloud-skipper/issues/953which was subsequently addressed in Skipper 2.6.0. | Platform used: Kubernetes.I have an issue with Spring cloud stream url. I am launching my spring cloud tasks using spring cloud stream. Streams are deployed in kubernetes platform. Stream containshttp-kafka as sourceandtaskLauncerKafka as sink. I usedhttp-kafka kubernetes service urlto launch tasks. Kubernetes service ... | How to use static spring cloud stream url for launching spring cloud tasks? |
1
You are specifying the environment variable as follows:
INFRA_ACCOUNT: >
${{ fromJson('{
"dev": "12345",
"preprd": "678234",
"prd": "91056"
}')[github.event.inputs.stage] }}
With the > operator, it add... |
I have below workflow with workflow dispatcher
jobs:
deploy_infra:
name: Deploy Infra
env:
INFRA_ACCOUNT: >
${{ fromJson('{
"dev": "12345",
"preprd": "678234",
"prd": "91056"
}')[github.event.inputs.stage] }}
steps:
- name: Cre... | github remove newline from the env |
Thank you @user19702 I was so consumed looking at the backup command with the added -BlockSize that I completely ignored the fact that my data has increased (thanks random process I never heard of before today) and even though the powershell is written to start the backup AFTER the SSIS package the process was not don... |
The process: an Azure agent that runs on a Windows 10 32bit pro machine with SQL Server 2014 Express installed.
The pipeline is built and runs successfully with PowerShell scripts as follows:
Create blank database
Create tables needed
C# application runs and populates the tables executed via a PowerShell script
Cross... | Powershell Backup-SqlDatabase backs up a snapshot instead of a full backup |
I would not consider that an issue, but awarning. That hello-display seems to be using the Knative library that you can find here:https://github.com/knative/eventing/blob/c820f4239730dacf5b2e0e5eed67a496bdc9b424/pkg/adapter/v2/config.go#L36-L48If you want to configure observability without falling back to defaults, you... | I'm running an AKS (Azure Kubernetes Service) cluster, but now when try to reach the logs I'm getting the issue below, which is weird because I wasn't facing it.Issue:kubectl logs -n default hello-display-759947d684-782n5
2021/11/02 08:11:04 Failed to read tracing config, using the no-op default: empty json tracing con... | Not able to load Kubernetes logs |
Ok, found the answer to it. In case anyone else comes across the same problem, just dodocker network lsThis command lists all the docker networks. docker-compose will create a new network when you run docker-compose up. In my case, the network is named as myapp_default.Note: Your app’s network is given a name based on ... | I am setting up my local development environment with docker containers. The docker-compose.yml is like followingversion: '2'
services:
db:
image: mongo:3
mq:
image: rabbitmq:3
api:
build: .
image: my_app/api
ports:
- "3000:3000"
links:
- db
- mq
environment:
... | Cannot link to a running container started by docker-compose |
I experienced the same problem and it was due toSELinux.To check if SELinux is running:# getenforceTo disable SELinux until next reboot:# setenforce PermissiveRestart Nginx and see if the problem persists. If you would like to permanently alter the settings you can edit/etc/sysconfig/selinuxIf SELinux is your problem y... | I have Nginx setup and displaying the test page properly. If I try to change the root path, I get a 403 Forbidden error, even though all permissions are identical. Additionally, the nginx user exists.nginx.conf:user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
events {
... | Why does Nginx return a 403 even though all permissions are set properly? |
All you have to do is configure log4j to send its logs to stdout and/or stderr. That'll cause them to be shipped to whichever central logging service your cluster was configured with (Google Cloud Logging if you're on GKE). | Does anyone know how to redirect log4j logs to central Kubernetes loggingTesting on GKE right now but as I understand Kubernetes uses Fluentd by default, doesn't it?Thanks for help. | log4j container logging on Kubernetes |
Only @username2 will be added as a reviewer. Since the order in which you place the patterns is important. It tries to take the last match.In the docs they givean exampleof a CODEOWNERS file, and they try to explain with an example how inheritance works. | Consider the following CODEOWNERS file:* @username1
/subfolder/ @username2Now if a change is made to/subfolder/somefile.txt... Will only@username2get added as a reviewer OR would both@username1and@username2?PS: Testing this would require me to create three accounts (mine to make the edit, username1 and us... | Does CODEOWNERS inherit owners |
Well, that depend what you want to do.
The simpliest solution is to configure both to use SSL.
Nginx will receive the request, decipher it, process it, send it to Hypercom on port 443 as an HTTPS Client. Hypercom will get the request as any normal HTTPS client.
If your goal is security : go with both
If your goal... |
Suppose I want to use a combination of NGinX (probably another since it doesn't proxy HTTP/2 requests) and Hypercorn. As both can handle SSL certificate files, I wonder who is the best suited to do this for an HTTPS request. It is important to me that Hypercorn could listen to 443 port and I'm not sure it can do that ... | In a reverse proxy server + Python HTTPS Server, who should handle SSL Certificates for HTTPS connections? |
Check to see if the server you are deploying to and doing a git pull from has any changes. Is it possible there are changes on the remote and you aren't seeing the git message of merge conflicts or overwriting changes? | So I was testing outgit revertandgit resetto test how to rollback changes after deploying to server. I made a small change adding the text "test" to a view, added, commited, and deployed.This puts us at commit 2, which has the "test" text and it appears in the dev server as expected. Locally, I ran git reset --hard to ... | Dev server and local code different even though they are on the same commit |
0
I think a good approach (generic) to monitor a (generic) backup is by doing several combined checks, assuming "backup" is a single file or directory:
Be sure the file is present in remote disk (by parsing filename, and using a regexp, for example).
Be sure the last one i... |
Does anyone know any related work about:
1- Monitoring the backup done by HP Data Protector using Nagios or Icinga
2- Monitoring the backup done by HP Data Protector by any other monitoring tool
3- Monitoring the backup in general
| monitoring the backup |
Modify your function like this:const response = {
status: '302',
statusDescription: 'Found',
headers: {
location: [{
key: 'Location',
value: 'http://<domainname>/something/root.html',
}],
'x-lae-region': [ { key: 'x-lae-region',... | I have created the cloud front distribution and attached the lambda with the trigger`Event type: viewer-requestPath pattern: something/index.html`
Event type: origin-requestPath pattern: something/index.htmlWhen i hit the endpoint it's redirecting to the page where i want to redirect, according to my lambda.but i was... | lambda@edge logs and invocation counts are not showing? |
30
To get this right it is important to correctly understand the differences between the environment and env_file properties and the .env file:
environment and env_file let you specify environment variables to be set in the container:
with environment you can specify the ... |
I have an environment file that contain a variable called Database_User.
In my docker-compose, I have this:
services:
database:
container_name: postgres
hostname: db
image: postgres:12-alpine
environment:
- POSTGRES_USER=${Database_User}
ports:
- "54321:5432"
env_file: project/mypro... | Access env file variables in docker-compose file |
The source code of the packages only moved to git, not the package releases themselves.
Github will show newer commits, but commits != releases - you will have to wait for package releases to be made to get the latest source code changes.
This is not different than it was the last 12 years when we used SVN (and previ... |
I just found out (wow) that PEAR packages are being moved to Github, my pear packages have not given any problems, until today when I decided after a long while to update them and there was no update for them (I last did this over a year ago).
Maybe it's because I'm not familiar with how PEAR works to being with, but ... | Make PEAR use github channel |
You're potentially installing a version of NPM that had this problem:
RUN npm install -g npm@5
Try without that line or is there a specific reason for it?
|
When attempting to run docker build -t app . --memory 3G --memory-swap 4G I run into
Step 8/11 : RUN npm install
---> Running in 5283e1139345
npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated [email protected]: Use mz... | npm ERR! write after end. RUN npm install fails in docker, aws |
Hudson will do the trick.We use the HudsonRake pluginandRuby metrics plugin. | In my day work, I work on your classic Java aplication. We use as "software factory" : Maven, Hudson and Sonar.In my night work, I work on personnal ruby on rails stuff. I have a certain number of applications, not much known but that's not my question. My question is :Is there tool like Hudson - Sonar for ruby on rail... | Quality metrics and continuous integration for ruby on rails |
You basically wish you could reverse mount a volume from the container to the host. This is unfortunately not possible with Docker, and there are variants of this question here: How to mount a directory in docker container to host
You're stuck with copying the files from the container to the host. As far as the host p... |
I am using docker for software development, as I can bundle all my dependencies (compilers, libraries, ...) within a nice contained environment, without polluting the host.
The way I usually do things (which I guess is pretty common): I have a directory on the host that only contains the source code, which is mounted ... | Mounting development docker container directory on host |
0
I can only confirm that this is currently not possible.
Most of cloud providers don't offer such option for SaaS databases or even PaaS. In my opinion, the only solution is to use services such as Data Factory or Databricks, and dump your data to a storage.
Copy and tra... |
As a best practice after an environment is de allocated, we delete all the resources from the cloud, but we need the data stored in the cloud and also we are not able find any solution to take the Azure Cosmos DB backup locally
| How to take Azure Cosmos db local backup |
For anyone that stumbles into this, it was eventually resolved in the Github Issue:https://github.com/knative/serving/issues/1996 | I am trying to push an example application to Knative however I am running into the following error message:Revision "..." failed with message: Unable to fetch image "...": unsupported status code 401; body: Not AuthorizedKnative is setup properly on EC2 and I've already created a service account and secret to pull fro... | Unable to Access Private Registry in Knative |
You have to tune your server software first.?user=myusername is apathat the host www.example.comwhile www.myusername.example.com is anotherhostA browser have to know which IP address should be called for www.myusername.example.com domain.Thus, first of all you have to set up aDNS recordto make all subdomains an aliases... | is it possible to create dynamic sub domains for each user using htaccess. for example if there is a user with user name myusername, then add a sub domain for him like htttp://www.myusername.example.com, and when somebody load this page it should come ashttp://www.example.com/?user=myusername( using htaccess ) | PHP : dynamic sub domains for each user using htaccess |
As long as you are using a ~/.ssh/config file which points where your SSH key is, you can put said key pair wherever you want.
Host gh
Hostname github.com
User git
IdentityFile /mnt/usb-device/myKey
In your case, a nix copy --to file:///mnt/usb-device /path/to/key would be needed first.
However, the tutorial yo... |
I'm curious if I can put a GitHub SSH key on a USB flash drive as a singular key and remove the other SSH keys from my GitHub. I've found one source, but it doesn't necessarily specify that it's for GH, here.
Any help is appreciated, thanks!
I have yet to experiment, just reading articles/watching YouTube videos to tr... | GitHub SSH key on a USB drive |
As perdocumentation:Azure Managed Grafana doesn't support personal Microsoft accounts (a.k.a., MSA) currently.You can refer toGrafana role assignment using Azure AD OAuth,Role mapping issue with AzureAD, andManage users globally | I would like to try out Azure Managed Grafana, but I cannot log in with the Microsoft account that owns the resource (and the subscription).I get the error"You can't sign in here with a personal account. Use your work or school account instead.".This is a personal subscription, and this account has theGrafana Adminrole... | How to log into an Azure Managed Grafana with personal account |
I finally solved this problem with the following command :
sudo ffmpeg -y -i "rtmp://127.0.0.1/app/stream" -c:v libx264 -profile:v main -s 1920x1080 -an -preset ultrafast -tune zerolatency -g 50 -f rtp rtp://127.0.0.1:5004
Unfortunately, when I use -c:v copy, it doesn't work. It only works when encoding with libx264 ... |
This is my first post here, even though this platform has already helped me a lot.
So, i'm trying to create a stream and display it in a browser. I have already configured NGINX with the rtmp module and my stream works very well with HLS (between 5 and 10 seconds of latency).
Now I would like to set up a low-latency s... | How to send RTP stream to Janus from NGINX RTMP module? |
0
Using the cron job to run a .sql file can do what you want. To replace all the data you'll have to add the table drop and creation statements to the file being executed. That will force the specific data that you want to be the only data in the database.
Share
I... |
Ok I read this post:
I need to restore a database (mysql) every 30 minutes using a cron job
and the answer was:
mysql -u user -ppassword databasename < /path/to/dump.sql
My question is will that erase the data that is already in the database? I need to overwrite from a stored MySQL file.
I also then need to overwrit... | Restore a MySQL Database and Files every 30 mins for a demo site |
I was able to fix this issue by stopping the agent and purging the /var/lib/amazon/ssm/ipc directoryservice amazon-ssm-agent stop
rm -rf /var/lib/amazon/ssm/ipc
service amazon-ssm-agent start | When registering an Amazon SSM Agent, it registers successfully in the SSM Managed Instances console, but the connection shows "Connection Lost".When I try to start the service manually, I get the following error:Error occurred fetching the seelog config file path: open /etc/amazon/ssm/seelog.xml: no such file or dire... | Unable to start the Amazon SSM Agent - failed to start message bus |
While some third parties such as ACloudGuru provide sandbox accounts with an additional fee, and there are also third party projects such as LocalStack that provide an AWS compatible to selected services, AWS does not provide any free sandbox API endpoints for testing other than free tier. | I'm using the AWS API for Route53 & S3 and I would like to test out some things (like Hosted Zones) that are not free, within some sort of Sandbox, so that I won't need to actually pay for them.Lots of major services give out some sort of a Sandbox or Testing environment (like Stripe), so that you could test the things... | Is there an AWS Sandbox or Testing environment? |
It is the yaml path. You follow the nodes from the parent down to the leaf-node you want to specify.Since you want thepathnode onhttpGetoflivenessProbeit will end withlivenessProbe.httpGet.path.The parent node of livenessProbe is a bit trickier, notice it is an element of the listcontainers. You can specify it either t... | I have deployment and I want to replace "path" value in liveness probe section. What is correct path for this in kustomize?- patch: |-
- op: replace
path: ??????????
value:
https://xyz.staging.something.eu/pingapiVersion: v1
kind: Pod
metadata:
labels:
test: liveness
... | how to replace or find correct path for kustomize |
Instead of putting your posts in subfolders, use categories. From thejekyll docs:Instead of placing posts inside of folders, you can specify one or more categories that the post belongs to. When the site is generated the post will act as though it had been set with these categories normally. Categories (plural key) can... | Recently building my github page with Jekyll.
I wanted to have a few types of post, mainly blog and study note.
I found a way to make the url the way I want them to be, however the connection is way off.I used 2 methods, first I tried with create subfolder under _post folder-_post
--blog
---first_post.md
--studynot... | jekyll github page multiple post type connection |
git branch -rwill also allow you to see all remote branches.git checkout origin/Interfaceshould switch to the Interface branch (is that an option through thatCheckout...menu item?) | I currently have 3 branches in a remote git repo and want to switch to one of them in XS. However XS is only showing the master branch.Similarly doing a 'git branch -a' in terminal only returns one remote branch:git branch -a
* master
remotes/origin/masterHowever doing a git ls-remote returns all the branchesgit ls-r... | Git Branches In Xamarin Studio |
How do you can detect that the test is failing? If command is using the process exit status you could have something like:if ! command ; then
echo "Error" | mail -s "Error"[email protected]fiIf you want to keep the output:if ! command > results 2>&1 ; then
cat results | mail -s "Error"[email protected]"
fi | I am trying to run a test case via automation testing (sahi) , so I am running the command for it repeatedly after 1 hour (via crontab).What I want is that is there any solution thatwhenever my test case fails i should receive the email otherwise not..Right now I am reciving mail whether it passes or fails.In short, c... | How can i control output from crontab? |
When you call (skipsudowhen calling underroot)$ sudo yum install phpyumdoes want to installhttpd(Apache web-server) as a dependency. In your case, since you are planning to usenginxyou definitely do not needhttpd. In order avoidhttpdinstallation, but still have a workingphpcall$ sudo yum install php-fpm php-common php-... | I have nginx installed, and I want to install php, but when I install php withyum install php, it requires httpd. Is there a way I can install php without installing httpd? | Install php without httpd on CentOS 7 |
gDEBugger might help you somewhat (never used it though), but other than that there isn't any tool that I know of that can set breakpoints or inspect variables inside a kernel. Perhaps try to save intermediate outputs from your kernel if it is a long kernel. Sorry I can't give you a magic solution, debugging OpenCL ... |
Is there any way to debug OpenCL kernels on an Nvidia GPU, i.e. set breakpoints and inspect variables? My understanding is that Nvidia's tool does not allow OpenCL debugging, and AMD's and Intel's only allow it on their own devices.
| How to debug OpenCL on Nvidia GPUs? |
18
If you are using buildx >= 0.10 specifying target platform does not work since it also creates multi-platform index by default.
To fix this problem set --provenance=false to docker build.
For more details please see: https://github.com/docker/buildx/issues/1509#issueco... |
I try to deploy container image to lambda function, but this error message appear
The image manifest or layer media type for the source image <image_source> is not supported.
here is my Dockerfile, i believe i have use the proper setup
FROM public.ecr.aws/lambda/python:3.8
# Install dependencies
COPY requirements.t... | Can't deploy container image to lambda function |
You can have your output sent directly to your host. You have to do it at the moment of running your docker image. Here is the step to do it:
Create a folder on your desktop for example and put your inputs data in it. Call it input_dir. The full path of this folder will have it like /path/to/input_dir/ (you can get ... |
I'm trying to build a docker-image, which runs a python script. Basically, it is generating .csv file. I want to have the .csv file in my localhost machine before the docker-container dies out. Following is my dockerfile, can anyone please help me how to store the .csv file without running the docker-container again. ... | Before stopping the docker-container copy one file and store to the host |
As mentioned in thisold (2009) blog post, this refers toUnicorn, an an HTTP server for Ruby, similar to Mongrel or Thin.So this measures the page rendition time.This is illustrated during their2017 move to KubernetesBefore this move, our main Ruby on Rails application (we call it github/github) was configured a lot lik... | What does"0.18417s from unicorn-785bf9c5d8-mgr5g"mean? | GitHub Footer ToolTip |
To see the current configuration of a container, you can use:docker container inspect $container_idYou can then use those configurations to run your container on another machine. There is no easy import/export of these settings to start another container that I'm aware of.Most people use adocker-compose.ymlto define ho... | Im facing the same problem since months now and i dont have an adequate solution.Im running several Containers based on different images. Some of them were started using portainer with some arguments and volumes. Some of them were started using the CLI and docker start with some arguments and parameters.Now all these s... | Docker backup container with startup parameters |
8
The problem you got with docker-entrypoint-initdb.d is that because your source 'data' is a directory and not a file, The destination file (docker-entrypoint-initdb.d) must be a directory too. And vice versa.
So either do
volumes:
- ./data:/docker-entrypoint-initdb.d... |
I am trying to use Docker to create a set of containers (wordpress and MySQL) that will help my local development with Wordpress. As we are running a live database, I want to mount a dump.sql file into the Docker mysql container. Below is my .yml file.
version: '2'
services:
db:
image: mysql:latest
volu... | Docker-compose mysql mount volume turns sql into folder |
Since your metrics have different sets of labels you need to need to explain Prometheus how tomatch them:(ipmi_bmc_info{manufacturer_id="Hewlett-Packard (11)",job="ipmi"} == 1)
and on (instance) (ipmi_temperature_celsius{name="02-CPU 1",job="ipmi"} > 40)In this exampleon (instance)instructs Prometheus to get all time... | I need to create a query to compare which servers have high temperature, but only HP servers.For instance:
If it is HP the temperature should NOT be higher than 40.
If it is Supermicro, it should not be higher than 50.I created a query, but it does not work. I would appreciate to know if it is a bug or I am crossing th... | Fail to compare servers by manufacturer_id with ipmi exporter metrics on prometheus |
In your_includes/breadcrumbs.html, change{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}to{{ crumb | url_decode | replace: '-', ' ' | capitalize }} | I'm app developer in Korea,
I have some problem at Github page with Jekyll.https://sangh518.github.io/%ED%85%8C%EC%8A%A4%ED%8A%B8/%EA%B8%B0%EB%A1%9D/Jekyll-serve-at-window/This is which problem occurred page.enter image description hereWhen you see the page, you could see the url decoding, which worte in Korean is perf... | jekyll breadcrumbs on github page has decoding error |
You can try this in 2 ways:
First(Recommended): Delete the bucket policy and delete the bucket.
Second: Follow these steps
Create a new Bucket(Do not change anything, keep default).
Go to S3 console where all buckets are listed.
Select newly created bucket.
Click on permissions.
Copy the account id under owner access... |
I created a s3 bucket using console, while configuration I removed the default selected user. Now when I am trying to delete the bucket using console it says access denied.
I understand I should have removed the user. However when I click on bucket name in permission it show owner: myUserName and bucket policy: no
How... | Unable to delete S3 bucket |
flannel gives the POD IP address. network range is defined insubnet.envfile# cat /var/run/flannel/subnet.env
FLANNEL_NETWORK=10.244.0.0/16
FLANNEL_SUBNET=10.244.0.1/24
FLANNEL_MTU=1450
FLANNEL_IPMASQ=trueAllocated IPs are stored in etcd database in the Master Node. you can query API server to view themFlannel is a virt... | I am running kubernetes(v1.7) and flannel(v0.9.0) which was installed using kubeadm.I want to know that-How does a node get a subnet?Where are all allocated subnets stored and how I can see them?How does flannel interact with kubernetes?Thanks, | How does a node get a subnet in kubernetes? |
<div class="s-prose js-post-body" itemprop="text">
<ol>
<li>Create a <code>template.yml</code>, which is your <code>docker-compose.yml</code> with environment variable.</li>
<li>Suppose your environment variables are in a file 'env.sh'</li>
<li>Put the below piece of code in a sh file and run it.</li>
</ol>
<pre class=... | <div class="s-prose js-post-body" itemprop="text">
<p>I would like to be able to use environment variables inside <em>docker-compose.yml</em>, with values passed in at the time of <code>docker-compose up</code>. This is the example.</p>
<p>I am doing this today with a basic <code>docker run</code> command, which is wra... | How can I use environment variables in docker-compose? |
Per your request, I'll put my comments into an answer:
Clustering is generally the right approach, but whether or not it helps depends upon where your bottleneck is. You will need to do some measuring and some experiments to determine that. If you are CPU-bound and running on a multi-core computer, then clustering sho... |
I have a very simple nodejs application that accepts json data (1KB approx.) via POST request body. The response is sent back immediately to the client and the json is posted asynchronously to an Apache Kafka queue. The number of simultaneous requests can go as high as 10000 per second which we are simulating using Ap... | Steps to improve throughput of Node JS server application |
You can do it, it's just harder.You don't have maintenence plans, but that doesn't matter becuase they often cause more headaches than they solve. You will want to script the backup yourself.The other issue is you won't have the SQL Server Agent, which is used for scheduling your scripts. You can solve this by using ... | I need some help for executing my planned backup strategy.My database is about 1 gig in size.
I want to perform a full backup once per week, and incremental every hour.Is all of this built into SQL Server 2005 Express?Is it possible to roll over the backups so I only keep 1 months of backups?Meaning the full weekly bac... | Can SQL Server 2005 Express perform full backups? |
In your.htaccessfile, try this to access all,<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php | This question already has an answer here:htaccess rewrite condition not working(1 answer)Closed10 years ago.Basically I'm a .net developer so I have no clue regarding this.I have purchased a php script[site] and configured it overhttp://spicyindia.net/eveything works fine when I append php to the file extension.for eg ... | PHP .htaccess URL Rewriting [duplicate] |
Here's a snippet to force everything to end with a slashrewritecond %{REQUEST_FILENAME} !-f
rewritecond %{REQUEST_URI} !(.*)/$
rewriterule ^(.*)$ http://%{HTTP_HOST}/$1/ [L,R=301] | This is a multi-site problem. I have a lot of sites with .htaccess files with multiple line similar to:rewriterule ^(page-one|page-two|page-three)/?$ /index.php?page=$1 [L]This means that both www.domain.com/page-one and www.domain.com/page-one/ will both load www.domain.com/index.php?page=page-oneHowever I'm always t... | How can I force some pages to end in a slash [.htaccess] |
That's expected, have a look at the datatypes docs for dynamodb: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBMapper.DataTypes.html
The Java type of Boolean will be stored as a number type in dynamodb, 0 or 1.
Alternatively, you can use @DynamoDBNativeBooleanType to map a Java Boolean to the... |
I have a method which is simply storing flag value true for a particular record. My flag attribute has been defined as Boolean which has value true/false in my DynamoDB database.
While running this method, somehow instead of storing true value, it is inserting a new column for the flag attribute as number datatype an... | DyanmoDb is storing value 1 instead of boolean value true |
git reflog | headshould show you the commit ids you need to recover your lost commit.xxxxxxx HEAD@{0}: reset: moving to HEAD~
yyyyyyy Your lost commit?You can try the followinggit checkout yyyyyy -b newbranch
git log newbranchorgit cherry-pick yyyyyy | Quick preface, I have very little experience with git and other console based programs.That being said, the problem at hand is that I usedgit reset --hard HEAD~to roll back to a previous commit due to some corruption, but I ended up going one commit too far. Is there any way to undo the rollback or go forward a commit?... | I accidentally git reset one commit too far. How do I undo this? |
You can view your commits in by addingauthor={username}as a query param in the URL when you view all the commits on the GitHub repo as belowhttps://github.com/{owner}/{repo}/commits/{branch}?author={username}Sohttps://github.com/facebook/react/commits/masterwould list down all commits on themasterbranch ofreactrepo on ... | Is there a way on GitHub Desktop or GitHub Enterprise to see only my changes? Currently, if I create a branch (call it Branch B) from Branch A, make changes to Branch B, and look at the history, I see everything on Branch A that was done before creating my branch. I only want to see the changes I have made. | Viewing History on GitHub |
It actually turns out that the adaptor for kdb+/grafana needs it's search function overloaded to be able to accept variables and return a string (or something that grafana can understand). | I am trying to create a dynamic variable for a graph using a kdb+ database, which requires the Simple-JSON plug in. However, I am struggling to figure out how to write the query in the Query search bar under Variables on my Dashboard.I have looked into the documentation found here but there is only a few mentions of th... | How to make Simple-JSON variable template query in grafana? |
0
There is one way to solve this problem
I was also suffering from this problem.
but I found that how to use "BATCH" file
There are mainly 2 command
X_COPY
ROBO_COPY
According to your need here, (2)robo_copy will be helpfull
robocopy will backup your specific file or fold... |
I have multiple copies of the same database with size of several terabytes. I was looking for a solution where I could upload the very first backup and then, instead of uploading the same entire backup with only few megabytes of changes, only upload the blocks that have changed. I know this process is called deduplica... | Deduplication solution for multiple offline database backups |
hook_cron can be helpful in this regardfunction mymodule_cron(){
global $db_url;
$db_info = parse_url($db_url);
exec("mysqldump -u$db_info[user] -p$db_info[pass] " . substr($db_info[path],1) . " > /path/to/backup/folder/file.sql");
exec("tar -czf /path/to/backup/filename.tar.gz /path/to/webroot");
}Then you... | Does anybody have any idea on the best way to automate the process of creating regular file backups of the whole Drupal installation, and also the mySQL databases.I've used the 'Backup and migrate' module, which is great, but this only backs up the database for Drupal 7. The Backup and migrate files isn't yet built for... | Drupal 7 - creating total system backups database & filesystem |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.