Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
You could usethe caching that is used in ASP.NET and is also available in other .NET applications | Suppose I have a WCF service that is not session or singleton based and is set up as per call. The service needs some information from a file, but this information does not change and only needs to be read once. I don't want every call opening and reading the contents of the file for performance reasons. I would lik... | WCF Per Call Service, needs to implement caching. |
Have you tried after the latest release? For some configuration combination the publish profile was getting generated incorrectly.
|
I am trying to publish a non-modified ASP.NET 5 project to my freshly installed Ubuntu 15.04 server, but I receive the following message:
An error occurred during publish. AspnetPublishHandler with name
"Custom" was not found
I bound the server to the correct port with:
docker daemon -H 0.0.0.0:5555 &
The connect... | AspnetPublishHandler with name "Custom" was not found when publishing ASP.NET 5 project to Docker |
There's now documentation available:https://github.com/kubernetes-sigs/aws-efs-csi-driver/blob/master/examples/kubernetes/access_points/README.md#create-access-points-in-efsYou'll need to be using the updated EFS CSI driver. The access point is defined under PersistentVolume'svolumeHandle. The recent EFS CSI driver no ... | First of all to put some context on that question.I have anEKScluster with version >=1.15TheEFS-EKSsecurity group/mount targetetc. are working properlyTheCSIdriver forEFSinEKSis installed and work as expectedI have deployed a storage class calledefs-scusing theEFS CSIdriver as a provisionerI can access theEFSvolume on ... | Is it possible to use AWS EFS access points to mount a kubernetes persistent volume in EKS? |
I fixed the problem by removing libcurl4-gnutls-dev and installing libcurl4-openssl-dev. If you have the same problem you just need this command :sudo apt-get install libcurl4-openssl-devThis removed libcurl4-gnutls-dev automatically. | I'm trying to send https requests (ssl) to an API server (Last.fm) with libcurl. When i try to send http requests it's OK but when i send https requests it isn't. After many searches in google and stack overflow i get this sample code from internet and try to execute it but it doesn’t work and show this error :curl_eas... | SSL certificate issue C |
Your DNS records don't have to be within the same domain as the one they host. If you are running your own DNS servers, they can live inside your primary domain. But if you're using another DNS provider like zoneedit.com or easydns.com, just use the hostnames they provide."Glue records" are the NS pointers that let t... | I have a server that already has a domain, lets say mysite.com but i want to put another site on it with the domain mysite2.com.So my questions are, how do i set up the nameserver settings.... My first domain i have listedns1.mysite.com
ns2.mysite.comSo would it work if i used:ns1.mysite2.com
ns2.mysite2.comfor my new ... | Linking multiple domains to a server |
You should ask GitHub to merge said pull request: that would be "accepting" it.You can do so from command-line, usinggh, the official GitHub clientSeegh pr mergegh pr merge <number>But that supposes that you did login first (for instance, using a token like yourPAT:gh auth login --with-token < mytoken.txt).Again, from ... | ProblemI received a pull request and I want to approve it via the command line (i.e., without logging into Github with my browser and using the GUI). This PR makes changes to a branch.This is what I tried:# First I go to the correct branch:
git checkout branch-to-be-modified
# Then I pull the changes made by the perso... | How to accept pull requests (PR) from Github using command line git |
FWIR if you leave the defaults then it won't create the profile since the defaults are allNONE.Your format is not quite correct for creating the profile configuration manually.It should be[profile example]
region=eu-west-1
output=textShareFollowansweredAug 7, 2018 at 18:10CheruvianCheruvian5,73711 gold badge2424 silver... | I'm trying to setup an new named profile using the awscliI usedaws configure --profile exampleto set the profile up but I left everything as the defaultNow I'm gettingThe config profile (example) could not be foundI even tried creating and modifying the~\.aws\configfile with the following but to no avail[example]
regio... | AWS CLI: The config profile (example) could not be found |
Your link is about endpoints which is only available in the old portal (https://manage.windowsazure.com). From your screenshot I see that you use the new portal (https://portal.azure.com).What you have to do is the following:1. In the new portal go to your VM and click on "All settings"2. Select "Network interfaces" an... | I have a virtual machine on azure. On the VM with Windows Server 2012 I have a web-site which is published via IIS7. I wrote bindings for the web-site, changed a port to 8080 and now able to access it with it's ip: 10.0.0.4:8080. Now I want to have an access to this web-site via internet. My VM has static ip, for insta... | Azure port-forwarding issue |
SIGEMTIt is the emulator trap. It results from certain some unimplemented instructions (i.e you are trying to give a instruction which is not implemented in GNU library) which might be emulated in software, or the operating system’s failure to properly emulate them.for memory space issue there was a mentioned hack on c... | I get SIGEMT error in the codechef compiler for the following code:
It works fine when I run the same code offline on my PC. I have read this occurs due to high memory usage oflong long int, but when I change it toint, I get SIGTSTP error instead, which indicates a lack of memory.#include <iostream>
using namespace st... | How do I resolve SIGEMT runtime error in codechef? |
0
If you have more than 8 KB of data, you had to switch the Data model to Large:
ProjectProperties / Conf: / Memory model / Data model = Large
Share
Improve this answer
Follow
answered Aug 8, 20... |
I am trying to copy an array into another in PIC24 PIC24FJ256GB206 microcontroller with C30 compiler. Length of my array is more than 1500 bytes.
Here is my code:-
int i=0;
int count = sizeof(rx.data.buff.fields.data);
for(i=0;i<count;i++)
{
rec.data.data_block.data[i] = rx.data.buff.fields.data[i];
}
But when I ... | Unable to copy array in PIC24FJ256GB206 with C30 compiler |
You would need to create the SSL cert like Yu-Ju Hong said, then you would have to tell ruby to use the certificate when connecting something likehttp://makandracards.com/makandra/1701-use-ssl-for-amazon-rds-mysql-and-your-rails-appThe bit about:sslca: /path/to/mysql-ssl-ca-cert.pem | I am usingKubernetesto deploy aRails applicationtoGoogle Container Engine.The database is usingGoogle Cloud SQL.I know the database's ip address and set it into my Kubernetes config file:# web-controller.yml
apiVersion: v1
kind: ReplicationController
metadata:
labels:
name: web
name: web-controller
spec:
repl... | How to connect Google Cloud SQL from Google Container Engine? |
What if you usedirname(__FILE__)(see) to get an absolute path to your "fileDirectory" directory ?Something like this in your script, I guess, if yourfileDirectoryis a child of the directory where your file resides :file_put_contents(dirname(__FILE__) . '/fileDirectory/' . $fileName, $fileContents);That way, you don't d... | I am trying to write a file to a sub folder of the directory my cron script is in using file_ put_ contents. However, I keep getting a warning "failed to open stream: No such file or directory."
I have this directory structure:httpdocs/scripts/fileDirectoryThe cron script lives in the scripts folder. I call it with th... | Writing a file in PHP with a cron |
Did you run the embedded scheduler? SeeRunning the Schedulersection inthe documentation:tab = CronTab(tabfile='MyScripts.tab')
for result in tab.run_scheduler():
print "This was printed to stdout by the process."Because windows doesn't have a crontab process, you have to either feed your crontabs into an existing d... | I want to schedule a python script using the python-crontab module on Windows platform. Found the following snippet to work around but having a hard time to configure. Script namecronTest.py:from crontab import CronTab
file_cron = CronTab(tabfile='filename.tab')
mem_cron = CronTab(tab="""
* * * * * command
""")Let's sa... | Scheduling Python script using Python CronTab on Windows 7 |
Linked lists are good for LRU caches. For indexed lookups inside the linked list (to move the entry to the most recently used end of the linked list), use a HashTable. The least recently used entry will always be last in the linked list.
|
I intended to implement a HashTable to locate objects quickly which is important for my application.
However, I don't like the idea of scanning and potentially having to lock the entire table in order to locate which object was last accessed. Tables could be quite large.
What data structures are commonly used to over... | What data structures are commonly used for LRU caches and quickly locating objects? |
First of all AWS ELB does not provide a A record with an IP address and instead it provides a CName. Unfortunately a CName cannot be mapped to a naked domain in DNS configurations and as a work around, AWS provides an Alias for A record.
However using Godaddy DNS, Alias to AWS resources such as ELB is not possible whi... |
I have registered a domain in goDaddy.com and want the traffic to be sent to AWS route53. I have a ELB created I did the following steps
In Route 53, created a HostedZone for my godaddy domain name which in turn gave me a NS record with 4 amazon DNS server names and an SOA record.
Created a new "A" record with just t... | AWS ELB and GoDaddy Domain working |
Since 1.1.2 (commit), all the $httpConfig options are directly exposed in $resource action objects:return {
Things: $resource('url/to/:thing', {}, {
list : {
method : 'GET',
cache : true
}
})
};ShareFollowansweredApr 18, 2013 at 10:07NarretzNarretz4,8693333 silver badges4040 bronze badgesAdd a ... | I'm new to angularJS and have a question about caching etc.I have a wizard with two steps, I want to be able to click back and next and have the forms still filled out as the user had them.In my page1Partial i have this:<li ng-repeat="pick in picks | orderBy:orderProperty">
<b><span ng-bind="pick.name"/></b>
<input typ... | AngularJS Caching a REST request |
+50AWS provides anopaque implementationfor user context data.encodedDatais to be collected on device and not the server.The CognitoJavascript client SDKexposes a method to achieve this. It is provided for in theAmplify Android SDKYou can get transferencodedDatafrom client to server, then forward that in your request to... | In all AWS Cognito SDKs in most functions you can pass anUserContextDataparameter to feed Cognito's Advanced Security feature:$result = $client->forgotPassword([
'AnalyticsMetadata' => [
'AnalyticsEndpointId' => '<string>',
],
'ClientId' => '<string>', // REQUIRED
'SecretHash' => '<string>',
'UserContextD... | What should I use as Cognito's UserContextData => EncodedData? |
2
For our Django application, we eventually tracked this down to memory exhaustion. This is difficult to track down because the AWS monitoring does not provide memory statistics (at least by default) and even if it did, its not clear how easy a transient spike would be to... |
I have a flask web-app that uses a gunicorn server and I have used the gevent worker class as that previously helped me not get [CRITICAL] WORKER TIMEOUT issues before but since I have deployed it on to AWS behind an ELB, I seem to be getting this issue again.
I have tried eventlet worker class before and that didn't... | CRITICAL WORKER TIMEOUT on gunicorn when deployed to AWS |
How about a simple ip security rule in web.config?<system.webServer>
<security>
<ipSecurity allowUnlisted="false" denyAction="NotFound">
<add allowed="true" ipAddress="192.168.1.0" subnetMask="255.255.255.0"/>
</ipSecurity>
</security>
</system.webServer>Just replace ipAddress and subnetMas... | So heres the two approaches I noticed. Is there any other way that I am missing and is there a favored approach? Pretty much I have a webAPI that i want to run as a webAPP and I am trying to figure out the best way to keep it internal onlyOne way that seems somewhat involved is the followinghttps://azure.microsoft.com/... | Ways to restrict Azure Website / WebApp to only be view-able internally on a vnet |
Found the simplest way to deal with this situation -
Go to "settings" of the repository and change the default branch to the current branch. This will not affect anything unless you have some sort of trigger in place to deploy the current default branch.Once you get that done, dependabot should be able to scan for vuln... | I have a repository which uses ReactJS and has 39 vulnerabilities (all of them are in yarn.lock file) when I am on the master branch. Dev branch and a few other branches are many more commits ahead of this master and there are a ton more dependencies and most of them are outdated as of now.
However, even when I switch ... | How to see dependabot alerts only for the current branch? |
You don't have to wait to fix the errors. Because every commit in GitHub is sealed with a SHA1 hash code. If the project already had build errors, you can easily prove it. But before that, you must be absolutely sure that you are not facing with an environment problem.I would also suggest, asking the latest status of ... | I have a trivial question ongit(I'm not expert in git, but manage to do most of the tasks).I made a fork of a popular project on github, hoping to contribute to it and then request a pull of my changes to the main repo.After I cloned the repo onto my disk, I tried to build it as downloaded and found build errors.If I m... | issue with forking an unstable repo on Github |
I can't test this right now, but this piece of code stolen and modified fromhereusingSetEnvIfmight help:SetEnvIfNoCase Host "a.com" HTTP_MY_HAS_HOST
Order Deny,Allow
Deny from All
Allow from env=HTTP_MY_HAS_HOSTyou can use regular expressions for the host name. | I have searched Google but couldn't figure out how to do this thing:How can I block access to a specific directory if the request is done on a specific host.Let me give an example.
I havea.comandb.cometc. addresses pointing to the same document root (the/).I need to block the access to/sites/private/directoryunlessthe ... | apache .htaccess mod_rewrite - blocking access to a directory unless the request is done using a specific host |
121
Make sure you have the disable cache checkbox unchecked/disabled in the Developer Tools.
Share
Improve this answer
Follow
edited Feb 2, 2021 at 6:36
Rob Bednark
26.8k2424 gold badges8282 silver ba... |
When Chrome loads my website, it checks the server for updated versions of files before it shows them. (Images/Javascript/CSS) It gets a 304 from the server because I never edit external javascript, css or images.
What I want it to do, is display the images without even checking the server.
Here are the headers:
Conne... | Chrome doesn't cache images/js/css |
I've just changed "true" instead of "on", for nginx ingress controller , and workd for me .
As mentioned here :https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-configuration
namespace: ingress-nginx
labels:
app: ingress-ng... | I have a problem with headers not forwarded into my services, I am not sure how support for Ingress was added, however I have the following Ingress service:apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: my-ingress
annotations:
ingress.kubernetes.io/rewrite-target: /
"nginx.org/proxy-pass-heade... | Enable underscores in headers on Azure ingress |
The idea of a certificate for DEP is that Apple don't want to provide you the DEP token over SSL (unlike VPP token).
To retrieve that, they ask that you provide a PEM formatted public key via their portal (this is basically anyopensslself-signed cert, like so:openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert... | I am trying to follow the instructions for creating DEP Server Tokens in Apple's Device Enrollment Program manual (https://developer.apple.com/library/content/documentation/Miscellaneous/Reference/MobileDeviceManagementProtocolRef/4-Profile_Management/ProfileManagement.html) , but I don't really know how to "Generate a... | Generate a public/private key pair in PEM format |
To answer your question, yes you can do this with releases. GitHub releases are really just git tags. You can't (as far as I know) create a release with a PR, but you can use a tag:$ git checkout master
$ git pull origin master
$ git tag v1.2.3
$ git push origin master --tagsYou will now see v1.2.3 in your "Releases" s... | I have a project in Github where all the team uses Pull Request workflow. So each developer has a Fork of the master repository.The process for solving an issue of adding a new feature is the following:The developer creates a branch into his local repository (Fork from master)The developer starts working on the ticket ... | How to use Github releases feature using Pull Request workflow |
Developer variables are variables that will never be visible to the user, but will exist in the generated code. If that's what you're looking for: there's no API for it, but here are some things you can do.
If you want to reserve the name so that users can't accidentally override your variable, call yourGenerator.ad... |
I want to create a Developer Variable to the workspace in Blockly, but I cannot find the necessary function/method.
I do not want to create the variable over a button. The variable should be included even if there is no block in the workspace.
With these two functions I can get the already created variables:
var var... | Blockly How to create a Variable to the workspace (developer variable) |
You can use the HTTP error code from the exception. BigQuery is a REST API, so the response codes that are returned match the description of HTTP error codeshere.Here is some code that handles retryable errors (connection, rate limit, etc), but re-raises when it is an error type that it doesn't expect.except HttpError,... | I have built a pipeline on AppEngine that loads data from Cloud Storage to BigQuery. This works fine, ..until there is any error. How can I can loading exceptions by BigQuery from my AppEngine code?The code in the pipeline looks like this:#Run the job
credentials = AppAssertionCredentials(scope=SCOPE)
http = credential... | How to catch BigQuery loading errors from an AppEngine pipeline |
2
You could have 3 parallel list and store rows id in one, column id in the other, value in the third. Once you are done with all entries, you could reorganize as needed, ex. sort by rows and columns.
What is not described in your question is how do you need/want to repres... |
I know there are quite a few good ways to store a sparse matrix without taking up much memory.
But I'm wondering whether there is a good way to store a sparse matrix during the construction of it? Here is the more detailed scenario: the program constructs a sparse matrix by figuring out where to put a non-zero value o... | How can I economically store a sparse matrix during the process of element filling? |
You need to look at the pod logs for details.kubectl logs xray-daemon-x9m8l -pShould give some ideas if the crash was caused due to application failure. It could be due to many reasons-p option gives you the logs of a previously crashed pod.kubectl describe po xray-daemon-x9m8lMay also give you some ideas | 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, ... | Kubernetes xray-daemon pod give error Back-off restarting failed container [closed] |
This is not related to docker, but just normal behavior in vim. As the file is under user directory /home/cp, hence cp user will have all permissions. What wq! command does is to delete the the old one and put new content into /home/cp/hello.txt.
You can quickly test it by creating one more file in the folder that cp ... |
I was performing some experiments in Docker and found a strange behaviour.
I was able to override the ownership of a file created with the root
user inside the Docker with another user without root permissions.
Below are the steps to reproduce it:
$> docker run -dit ubuntu:16.04 bash
$> docker exec -it cont_id bash
$... | Able to override the root permission of a readonly file with a non-sudo user |
Make sure that npm is readingpackage.jsonfrom the place you're copying it to. | When m trying to craete image of react app with dockerenter image description herefile its saying...The command '/bin/sh -c npm install --silent' returned a non-zero code: 254Here is my dockerfile# Pull official base image
FROM node:13.12.0-alpine
# Set working directory
WORKDIR /app
# Add `/app/node_modules/.bin` t... | The command '/bin/sh -c npm install --silent' returned a non-zero code: 254 |
I was having the same problem while importing the certificate in local keystore. Whenever i issue the keytool command i got the following error.Certificate was added to keystore
keytool error: java.io.FileNotFoundException: C:\Program Files\Java\jdk1.8.0_151\jre\lib\security (Access is denied)Following solution work fo... | I'm trying to connect a Java Web API via HTTPS; however, an exception is thrown:javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorExceptionI followed these steps which I learned from online keytool & SSL cert tutorials:I copied the HTTPS URL into the browser, downloaded the SSL certificates & Install... | Java Keytool error after importing certificate , "keytool error: java.io.FileNotFoundException & Access Denied" |
In short, no: not at the SQL server end; it will of course load the data into memory if possible, and cache the execution plan - so subsequent calls may be faster, but it can't cache the results.
Options:
tune the plan; the sort sounds aggressive - could you perhaps denormalize some data or add an index (perhaps even... |
There is a certain query that is being called from an ASP .NET page. I studied the execution plan of that query in Management Studio and 87% is for a sort. I badly need the sorting or else the data displayed would be meaningless.
Is there anyway that I can request SQL Server to cache a sorted results set so it will r... | Can i request SQL Server to cache a certain result set? |
As mentioned in "How to reach some commands on Github for windows", you best course of action would be to use to git CLI (command line interface), opening a shell from "GitHub for Windows", or using msysgit.
Then a git reset HEAD^2 (or even git reset --hard HEAD^2 if you really want to remove those files as well as an... |
I have two unsynced commits using GitHub (Windows), but don't want to commit them now. How can I revert or drop them?
| How to remove unsynced commits in github for windows? |
Is it possible you do not have mod_headers enabled?Secondly I think you may want to put the IfModule block outside the FilesMatch block. Like so# Allow access from all domains for web fonts
<IfModule mod_headers.c>
<FilesMatch "\.(eot|font.css|otf|ttc|ttf|woff)$">
Header set Access-Control-Allow-Origin "*"
... | Our assets are in a sub domain and in order to overrun security features of our platform so we can add a Json query we have to add the following htaccess code<FilesMatch "\.(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
Header add Access-Contr... | Header add Access-Control-Allow-Origin "*" causes internal server error |
Typically one just follows it with a remote and a branch:git push <remote> <branch>If you cloned it from your own github repo, then the remote you want is likelyoriginand the branch you want is likelymaster, i.e.git push origin masterThe full range of options can be seen withgit push --help | I'm using github to get some code up. However, I'm having trouble with the git commands. To be clear, once I am on my folder, to push it to my repo and branch. I used:git add .
git commit -m "changed xyz"
git push (name of branch?) | I tried looking online, but doesn't specify what follows "git push " |
With your shown samples, could you please try following. Since you are using very generic regex(not giving any uri condition in it) so its not reaching to your last rule of blog page. Keep it as your first rule like as follows. I have also fixed your regex in your all existing rules.Please make sure to clear your brows... | I want to redirect this URLhttp://www.example.com/blog/Title-hereto myblog.phppagePlease noteTitle-herecan be anything.How I can do that ?I am trying following but it's not working.RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^blog/(.*)/?$ blog.php [NC,L]I don't know why.Following is my full .htaccess code, may be h... | Redirect Rule in .htaccess php |
29
Despite the misleading/broken github interface there's actually a way to get what you want. You need to drop one .
Instead of:
https://github.com/account/repo/compare/ath/branchA...branchB
do
https://github.com/account/repo/compare/ath/branchA..branchB
This compares ... |
I am having two branches:
- master and
- develop.
I am trying to merge branch develop into master branch.
I have checked with Tower and Araxis merge, those two branches are identical. But when I do a pull request on Github, I am seeing that there are 381 files changed, like files are not on master at all.
Any ideas wh... | Github pull request shows wrong diff |
I had the same problem for a long time.
Instead of https://hub.docker.com/repository/docker/songkong/songkongdockerdev
use https://hub.docker.com/r/songkong/songkongdockerdev
Fill in your docker hub username and password.
|
Usually I have a public Dockerfile that I build with public DockerHub repository (songkong/songkong), then I can run it on my Synology by just searching for the tag in the registry
but I am making some changes in my private DockerHub repo (songkong/songkongdockerdev) before public release. I have built image okay i... | How do I use a private Dockerhub image from my Synology NAS |
Use the--pushoption ofgit remote set-url.Assuming you'd cloned from the read-only repo:Before$ git remote -v
origin git@<read-only-git>.com:org/repo.git (fetch)
origin git@<read-only-git>.com:org/repo.git (push)Commandgit remote set-url --push origin git@<read-write-git>.com:org/repo.gitAfter$ git remote -v
origin ... | I have a Jenkins project which has a git checkout url. The Jenkins master is configured with git-Jenkins plugin version 2.2.10_2 (https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin).I wanted to check if there is any way to provide different git remotes for fetch and push.e.g: $ git remote -v
origin git@<read-only-... | Jenkins git plugin: How to configure different fetch and push git remotes? |
The official AWS RDS documentation covers this.Read the\copycommand section at the bottom of the page.You can run the \copy command from the psql prompt to import data into
a table on a PostgreSQL DB instance.target-db=> \copy source-table from 'source-table.csv' with DELIMITER ','; | I'm facing the following problem: I have an instance (RDS) on AWS to store some data, and I want to upload some data from my local pc to it! Using PgAdmin it seemed such an easy task, but I have to be a superuser in order to use the command 'COPY' that everywhere in the internet says!Sadly, for security reasons AWS blo... | Upload a local CSV to a Remote Postgre (AWS) |
kubernetes: 1.24.0dashboard: 2.6.0Manually create a service account API token.https://github.com/kubernetes/dashboard/blob/master/docs/user/access-control/creating-sample-user.mdShareFollowansweredJun 14, 2022 at 3:47YcongYcong5611 bronze badgeAdd a comment| | I installed kubernetes according to thismanual + containerd, installed the kubernetes dashboard according tothis manualand created service account forthis manual, but when I try to look at the token, the console does not display it.enter image description here | Kubernetes Dashboard not show admin token |
Most time, you don't need to add this property. It's used to set the user and the SSH Public Keypair when you want to SSH into the nodes to take a check or do something you want.Hereis an example. At this time, you need to deploy the extension to add the SSH Key. So you don't need to add the property, if you need, depl... | I am currently writing an ARM (Azure Resource Manager) template that creates a Kubernetes cluster. Therefore I am using the templates of existing clusters to compare if I am missing anything. This way I discovered that one of my existing Kubernetes clusters (created in the portal) has the linuxProfile property (as show... | When is the linuxProfile Property needed in Azure Resource Manager? |
Ah, I solved the issue. It was not necessary to release any resources after callingtune.run(), the memory issue was due to building a tensorflow graph within each iteration. I realised that, quite annoyingly, the only way to release resources allocated by tensoflow is to terminate the python interpreter (closing the te... | I have a python script that trains a reinforcement learning model using, among others, the librariesrayandrllib. The script uses check-pointing to update anrllib.PPOmodel iteratively. In every iteration, I redefine the configuration and calltune.run(), where I provide the checkpoint of the previous iteration to the res... | Ray: Memory management when calling tune.run() multiple times within python script |
After searching for roughly 7 hours, I was finally able to find a solution to this issue in the Nginx forum:Nginx connet to .sock failed (13:Permission denied) - 502 bad gatewayWhat I simply did was changing the name of the user on the first line in/etc/nginx/nginx.conffile.In my case the default user waswww-dataand I ... | I'm deploying my Djano application on a VPS and I'm following the steps in the below link to configure my app with Gunicorn and Nginx.How To Set Up Django with Postgres, Nginx, and Gunicorn on Ubuntu 16.04Everything went well with the tutorial (gunicorn and nginx are running) but the issue is that when Im' visiting the... | Nginx (13: Permission denied) while connecting to upstream |
This is happening because the files in question are already in source control. You can remove them with git rm --cached myFile.txt. After that, they will indeed be ignored. A word of caution, though: others who pull the repo after you have pushed your changes will have their local copies of said files deleted in their... |
This question already has answers here:
How do I make Git forget about a file that was tracked, but is now in .gitignore?
(35 answers)
Closed 8 years ago.
This is happening and i c... | .gitignore is not working properly with iOS project [duplicate] |
I suggest you have one Stack that creates only the KMS and export its value on the outputs:
Resources:
KmsKey:
Type: AWS::KMS::Key
Properties:
...
Outputs:
S3KmsKeyId:
Description: The KMS Key used
Value: !Ref KmsKey
Export:
Name: S3KmsKeyId
Then you can have a second Stack that ... |
Given a CloudFormation template that defines:
A KMS Key
A KMS Key Alias
An S3 bucket
If for some reason I need to delete the CloudFormation stack and re-deploy, the deletion retains the KMS Key and Alias that was created. (This is sensible, I don't want to lose my key everything was encrypted with).
But this means w... | CloudFormation KMS Encryption Questions |
2
The old large file is likely still part of your local Git history and as you know, the whole history of the branch is pushed.
You'll need to make sure it isn't in an earlier commit either, eg by reset ing back to a commit where the video isn't there, then committing only ... |
I am creating a GitHub pages, I already deploy the react app to GitHub pages with custom domain.
Earlier there is a file over 100MB, but when I came to know that GitHub allows only 100MB, I replaced that file with a 29MB file.
When I am pushing the new changes to GitHub master branch using "git push origin master" I a... | Why 'git push origin master' is pushing old files to GitHub? |
You can set a header value to void and Nginx will drop it :proxy_set_header Sec-WebSocket-Extensions ""; | I have a Nginx websocket reverse proxy and I would like to hide a HTTP header from the client request.proxy_hide_header hides the server response headers and can't be used for hiding client request headers.I would like to do that because the websocket server behind nginx doesn't work well with the websocket extension "... | Hide a client request header with a Nginx reverse proxy server |
I found the solution, The problem was in the line endings. My file had inconsistent Line endings. some lines ends with\r\nand another ending with\ror\n. This hapend because I generated a sql script since SQL Management Studio.normalize inconsistent line endingsThe solution was in SQL Management Studio too. | I'm running this commanddocker run --network=foo --rm -v C:/Users/xxxx/Documents/flyway/sql:/flyway/sql flyway/flyway migrate -user=sa -password=MyPassword001 -url="jdbc:sqlserver://sqlserver-test:1433;databaseName=master"And I've got this error.Flyway Community Edition 6.0.1 by Boxfuse
Database: jdbc:sqlserver://sqlse... | Flyway Error - When I run migrate command. I get "Unable to calculate checksum" |
Thesecrets definition in the docker-compose.yml file, as of version 3.3 of the file format, does not support passing the content of the secret inside the docker-compose.yml file itself. The secret needs to be either external (predefined withdocker secret create secret_name -) or from the contents of a separate file.The... | I need to store the server_key_rsa of my sftpServer in a docker-compose.yml but I don't know how to store itIt's look like that for now :-----BEGIN RSA PRIVATE KEY-----
***********************My Key bla bla bla.......
**********************************************
**********************************************
********... | How to store server_key_rsa in docker-compose.yml? |
This bug is tracked bySONARMSBRU-199which was fixed in the Scanner for MSBuild v4.1.The bug report as mentions a workaround for excluding a single file.FYI support for MSBuild 12 was dropped in the Scanner for MSBuild v4, so if you upgrade the version you will need to make sure you are using a compatible version of MSB... | When analyzing C# project with TFS 2015 vNext build, I get the following error:The folder
'D:\Builds_Agent1_work\4\s\System\IPS\Files\Logo\MasterDesigns\Logo_11_Seal_of_Pinellas_County'
does not exist for
'DEV_ScriptAdvisorPBM_SonarQube:DEV_ScriptAdvisorPBM_SonarQube:9C5E1BB5-E446-45C8-9CE6-5F9896D0D063'
(base ... | File does not exist in SonarQube analysis |
There is no need in TeamCity GitHub hook, you can go with simple VCS trigger.Allactive brancheswill be triggered on first start. Fromdocs:A branch considered active if:it is present in the VCS repository and has recent commits (i.e.
commits with the age less than the value ofteamcity.activeVcsBranch.age.daysparameter... | I want to build each pull request merged with master. I have setup teamcity the following way:http://blog.jetbrains.com/teamcity/2013/02/automatically-building-pull-requests-from-github-with-teamcity/Branch specification:+:refs/pull/(*/merge)Default branch:
masterI have setup github teamcity Service Hook.http://www.jax... | Teamcity trigger builds for github pull-requests |
+25In the previous version of Boto, there was a helper class namedHiveStepwhich made it easy to construct the a job flow step for executing a Hive job. However in Boto3, the approach has changed and the classes are generated at run-time from the AWS REST API. As a result, no such helper class exists. Looking at the sou... | Is it possible to carry out hive steps using boto 3? I have been doing so using AWS CLI, but from the docs (http://boto3.readthedocs.org/en/latest/reference/services/emr.html#EMR.Client.add_job_flow_steps), it seems like only jars are accepted. If Hive steps are possible, where are the resources?Thanks | Boto3 EMR - Hive step |
With this line:Route::controller('faq', 'StaticPagesController@faq');You are telling Laravel that the controller forfaqshoule beStaticPagesController@faq. TheRoute::controllermethod sets an entire controller for a route, it does not specify a method to be used on that route, Laravel handles this internally. Take a look... | I cloned thistodstoychev/Laravel5Starterfrom Github and installed it.After creating thisStaticPagesControllercontroller and updating my routes.php file. The controller does not seem to work. For some reason i keep getting the following error.ReflectionException in ControllerInspector.php line 32:
Class App\Http\Control... | ReflectionException Class App\Http\Controllers\StaticPagesController@faq does not exist Laravel-5 |
Read this threadIs Safari on iOS 6 caching $.ajax results?You could disable the caching on webserver level and by using timestamps in the URL.ShareFolloweditedMay 23, 2017 at 11:47CommunityBot111 silver badgeansweredOct 9, 2012 at 9:05Simon EdströmSimon Edström6,52177 gold badges3232 silver badges5252 bronze badgesAdd ... | This question already has answers here:Closed11 years ago.Possible Duplicate:Is Safari on iOS 6 caching $.ajax results?I have a hybrid application usingPhoneGapthat runs fine on Android and iOS. But when I started testing in iOS 6 I noticed that I am not getting server data for most of my ajax calls - instead I was get... | Prevent iOS 6 from Caching Ajax POST Requests [duplicate] |
You can use this code in yourDOCUMENT_ROOT/.htaccessfile:RewriteEngine On
RewriteBase /xampp/external/proj3
# external redirect from action URL to pretty one
RewriteCond %{THE_REQUEST} /search(?:\.php)?\?query=([^\s&]+) [NC]
RewriteRule ^ search/%1? [R=302,L,NE]
# internal forward from pretty URL to actual URL
Rewrit... | I want when search form submitted, the URL be like this :localhost/xampp/external/proj3/search/searchqueryInstead of this:localhost/xampp/external/proj3/tools/search/search.php?query=searchquery | Rewrite search page query URL with htaccess |
It'll be messy and not very readable, so my recommendation is to put this bash script inside a file on the image if possible, then you can usekubectl exec -it -n {namespace} {pod} -- bash {path/to/script}Otherwise you could do something like this:kubectl exec -it -n {namespace} {pod} -- bash -c 'echo Check running on h... | How to use the bash script's if-else condition with just one command in Kubernetes exec mode?Below is the sample bash script which works well trying to check a VM's connectivity to a remote serverif ! nc -z -w10 prod.example.com 5671 > /dev/null 2>&1; then
echo "Example.com Rabbitmq SSL Port 5671 is not reachab... | How to use bash script's if-else condition with just one command in kubernetes exec mode? |
The earliest commit shown in the file's history was a refactoring, during which the file was moved. The commit you see in the blame output is from before the file moved.
The history will have been generated using a command like git log -- /components/org.wso2.analytics.apim/pom.xml, which doesn't follow file moves. ... |
Here is one problematic file I found. When the blame view is clicked this page is given, when I take a look in to the history of the same file, it does not contain all the commits as shown in the blame view for the same file. For example the commit ce1b694d4a06425f933dfee5e0966349fdb9581d which added the lines from 40... | Why the commits shown in blame view is not in the history view of the same file in github |
you can use thelast_over_timefunction as it is describedhere.last_over_time(range-vector): the most recent point value in specified interval.last_over_time(container_memory_usage_bytes[1h])I didn't findfirst_over_timefor Prometheus. Maybe there is another way to do it in Prometheus. Although, Grafana has thefirst_over_... | I am trying to get the first and last element in a range vector retunred by a query that is similar to this:container_memory_usage_bytes[1h]In the resultset I get a list of timestamps and memory values for each pod in the hour.3863654400 @1629726924.874
3863539712 @1629726955.72
3863900160 @1629726984.032
3863937024 @1... | How to get the first and last element of a range vector in promql |
AFAIK this cannot be done by using a .Net library.
K8 is all about orchestration. SF on the other hand is both an orchestrator + rich programming /application model + state management.
If you want to do something like reliable collection in K8 then you have to eitherA) built your own replication solution with leader el... | We are in the process of migrating our Service Fabric services to Kubernetes. Most of them were "stateless" services and were easy to migrate. However, we have one "stateful" service that uses SF's Reliable Collections pretty heavily.K8s has Statefulsets, but that's not really comparable to SF's reliable collections.Is... | Migrate Service Fabric Reliable Collections to Kubernetes |
/proc and /sys are special filesystems created and maintained by the kernel to provide interfaces into settings and events in the system. The uevent files are used to access information about the devices or send events.If a given subsystem implements functionality to expose information via that interface, you can cat t... | I haveAKScluster deployed(version1.19) on Azure, part of the deployment inkube-systemnamespace there are 2azure-cni-networkmonitorpods, when opening a bash in one of the pods using:kubectl exec -t -i -n kube-system azure-cni-networkmonitor-th6pv -- bashI've noticed that although I'm running as root in the container:uid... | Permission denied while reading file as root in Azure AKS container |
.htaccessfiles should not be used unless you don't have access to the apache config. e.g. shared hosting. Since VPS/Cloud servers are abundant these days at very low costs, there is almost no reason to get shared hosting..htaccessfiles are actually read on every request because it uses per directory context. So using t... | I'm wondering, how .htaccess files are implemented in Apache? Are they really reparsed in each subsequent request or cached somewhere and reparsed only when changed?How change tracking of these files is implemented? stat() for filechanges on each request or via inotify()? | How Apache handles .htaccess file changes? Are they reparsed on each request? |
I use this code in.htaccessto remove.phpextension and redirect.phpextension pages to non.phpextension pages :<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(wp-admin)($|/) - [L] # You don't want to mess with WordPress
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ... | I am rewriting my url to get rid of the.phpextension (and hopefully the get variables too as all the help I have gotten is great, but still wont work.Here is my code:Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /
## hide .php extension
# To externally redirect /dir/foo.php to ... | Removing URL .php extension gives 404 error |
Bower currently looks for tarballs associated with git tags on github. Logic is here:https://github.com/bower/bower/blob/master/lib/core/resolvers/GitHubResolver.js@apatrick is correct, currently best practice is to either have a/distfolder or have a separate shim repo like this:https://github.com/angular/bower-angular... | As far as I understandBoweryou have to provide a pre-build
distribution of your package:Bower works by fetching and installing packages from all over, taking care of hunting, finding, downloading, and saving the stuff you’re looking for.But in many projects such pre-build files are not part of the GitHub repository (f... | Register bower package with GitHub release attachments |
Just heard from GitHub support that this is not currently supported. I have passed it as a feedback as nice to have. | Overview:I have created a Project under a GitHub repository and added some custom columnsReady,In ProgressandDoneGoal:I would like to move the issue fromReadytoIn Progresswhen a branch is created for that issue.Example: If I have an issue #10 inReadyand I create a branch from master called#10-FixBugthen I would like is... | Project - Move issue from one column to another |
4
Yes, both implement the OCI Image Spec. If your image is accessible to your containerd installation, it should work seamless.
One example of running the redis:alpine image from Docker Hub:
ctr image pull docker.io/library/redis:alpine
ctr run docker.io/library/redis:alpin... |
I used to work with docker images and now I am trying to run containers using containerd runtime. So, I want to share my prebuilt docker images with ctr, Is that possible ?
How can I do that please ?
| How can I share my docker images with Conatinerd runtime? |
An Amazon CloudWatch custom metric is only created when data is stored against the custom metric. Therefore, you'll need to push a data value to make appear and then you will be able to create an alarm.You can push some data to CloudWatch with theAWS Command-Line Interface (CLI), eg:aws cloudwatch put-metric-data --nam... | I had already created 7 other metrics based on some log files I send to CloudWatch with no problems.Some time ago we had a problem with MongoDB connection, and I identified that through logs, so I'd like to create a Metric, so that I can create an Alarm based on it. I did create the Metric, but (of course) there are no... | CloudWatch custom metrics not working as expected |
When you say mutableData doesn't seem to be deallocated, do you mean at the point of CGContextRelease(), or do you mean it never deallocates and it leaks every time you run this?
In your first example, you would not expect mutableData to deallocate until the autorelease pool drains (generally at the end of the event ... |
I've been using
NSMutableData* mutableData = [NSMutableData dataWithLength: someLength];
void* bitmapData = [mutableData mutableBytes];
CGContextRef context = CGBitmapContextCreate(bitmapData,...);
// ...use context
CGContextRelease(context);
I have an autorelease pool in place, but when looking at this in Instrumen... | Using the bytes of an NSMutableData instance while allowing it to be autoreleased |
Solved. I used thesumfunction:An alert will fire if the sum is not equal 1. | I have a dashboard in Grafana that I will use to monitor a Kafka instance. I can get the metrics using Prometheus.The metric is calledactive controller countand It is very important to monitor Kafka.I got what I want using the metrickafka_controller_kafkacontroller_activecontrollercount_value{job="kubernetes-service-en... | Grafana alert for Kafka metric Active Controller Count |
0
You can use mysqladmin to start/stop the replication like this:
# mysqladmin -u root -p start-slave
# mysqladmin -u root -p stop-slave
Share
Improve this answer
Follow
answered Jun 26, 2022 ... |
I am using MySQL 8.0.23 docker container to back up an instance using util.dump_instance() from a time delayed replica instance using MySQL shell in Python mode.
How can I stop the replication before I run the instance dump?
I could find no examples in the documentation.
I would run the equivalent of the following sta... | How do you stop MySQL replication using mysql shell 8.0.23? |
Then try one of the PHP gitignore proposed bygitignore.ioIt mainly depends on the editor you are using.For instance:phpstorm+all.In the OP's case, forWordpress:# Created by https://www.gitignore.io/api/wordpress
# Edit at https://www.gitignore.io/?templates=wordpress
### WordPress ###
# ignore everything in the root ex... | Github.com and Github Desktop both asked the format of .gitignore I wanna use when creating a new repo. But PHP is not in the selection.So which should I select? | What .gitignore should I use for PHP in Github? |
ithub Markdown's seems do not support title attribute.Yet,GFM specs mentions:A link contains link text (the visible text), a link destination (the URI that is the link destination), and optionally alink title.[link](/uri "title")Give:<p><a href="/uri" title="title">link</a></p> | I want to add a title attribute to a link, which will show up when the user holds the mouse pointer it. Title attributes are helpful if your link text is not descriptive enough to tell users where they're going. (In reference links, you can use optionally parentheses for the link title instead of quotation marks.)Githu... | Does Github Markdown support title attribute? |
Similar tothis answer, you can:test if afolder exist(File.directory?(directory))delete it, usingFileUtils.rmdir(disks_directory)(as used in thisVagrant script)ShareFollowansweredMar 4, 2022 at 8:30VonCVonC1.3m539539 gold badges4.6k4.6k silver badges5.4k5.4k bronze badgesAdd a comment| | I'm using vagrant to clone my git repository. I deleted my repository from GitHub my git account. now trying to clone a repository couldn't error message is destination path already exist. how do I delete this already existing path and start afresh? | vagrant-Git repository |
So, I was actually able to achieve this by defining a new provider in the module which assumes theOrganizationAccountAccessRoleinside the newly created account.Here's an example:// Define new account
resource "aws_organizations_account" "my_new_account" {
name = "my_new_account"
email = "[email protected]"
}
prov... | My goal is to create a Terraform Module which creates a Child AWS accountandcreates a set of resources inside the account (for example, AWS Config rules).The account is created with the followingaws_organizations_accountdefinition:resource "aws_organizations_account" "account" {
name = "my_new_account"
email = "[e... | Terraform Create resource in Child AWS Account |
First, set up the parent repo:Open your forked repo in SourceTree.SelectRepository➫Repository Settings…in the menu (or press⇧⌘,).In theRemotespane, pressAdd.Enter any name you like (oftenupstreamormaster) and the URL / path to the parent repo.Press OK, then OK.Now, to update:Select Pull in the toolbar.In the "Pull from... | I am using SourceTree (with BitBucket) to manage my code. I have forked a repo, and the parent repo has been updated.How do I use SourceTree to merge the upstream code into my forked repo? | How do I update my forked repo using SourceTree? |
Just a quick answer to some of your question(for others, I will update later).
Some questions can be found here.
1.1 Where are the snapshots stored?
Share snapshots are stored in the same storage account as the file share.
1.2 Will it cost the storage capacity
As per this doc (The Space usage section) metioned: Sn... |
I have some questions about the Azure Files Share snapshot, if you know something about that, please let me know. Thanks.
1, Where are the snapshots stored? Will it cost the storage capacity and how about the cost of creates and delete snapshots?
2, If my snapshot exceeds 200, what will it be? Deleted by itself or the... | Some question about the place to store and the cost of Files Share Snapshot |
Fromthe HTML 4.01 specThe META elementhttp-equiv = name [CI]This attribute may be used in place of the name attribute.HTTP serversuse this attribute to gather information for HTTP response
message headers.That was the idea. It was the job of the server to convert the meta elements into real HTTP headersbeforethey sen... | This is an html metatag example:<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="private">It's set on the html metatag to enable caching.I tried it with Tomcat and Firebig. The server send the information in the html metatag. but there is no information about caching in the http header response.However something like this in ... | What's the difference between setting cache control in the http header response or the html metatag? |
The amount of time I spent on this is embarrassing, but I will share anyway in hopes of saving other people the hours of their lives that would otherwise be stolen by Amazon.
To answer your question, yes, I did get my node/express application running.
In case you were using any kind of process.env method of choosing ... |
As the title suggested, I've been playing around deploying apps with Amazons new OpsWorks management system, however I haven't been able to figure out how to get the node server to start running on the instance. From the ports the application layers have access too I assume I need be listening on port 80, however I fe... | Has anyone been successful deploying a node (express) app with Amazon OpsWorks? |
I'd suggest caching already sent notifications. Before your application sends email, it can check if this error is already reported.And you can set the cache validity to, say 1 minute, so you get maximum 1 same email/minute.
It is quite easy to implement in ASP.NET.ShareFollowansweredMay 14, 2012 at 5:54Bohumil JandaBo... | When a unavailable url is accessed, we internally raise an exception and email to support team. We do this to identify is there is hidden error in our web application. Couple of days back, suddenly there was a huge number of access to unavailable url which added load to server and casued SMTP to queue large exception e... | Bogus URL access causing server to hang |
Compile your code in release mode.
This does two things.
It turns on the optimizations which definitely help.
Also the memory management libraries are different for debug and release.
The debug version of the library are built to allow for debugging and they maintain extra information (like marking de-allocated memor... |
I have a question for which I am unable to find answer on the net...
I have a set declared like this:
set<unsigned int> MySet
I am inserting a million random numbers generated with mersenne twister. Random generation and insertion are really fast (around a second for a million numbers), but deallocation is extremely ... | Why is deallocation slow? |
You have to turn seo urls on from your admin panel.
Go to System>Settings>Edit>Server> check yes for use seo urls.
and be sure that all your products and categories have the right seo-url data and replace any space by '-'. | I have installedopencartversion3.0.2in my localhost. everything works fine except seo friendly url. when i try to removeindex.php?route=...then i got404error. when i tried following code in my.htaccessfileRewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$... | how to remove index.php from opencart v 3.0.2 |
I ended up finding this out with the help of a coworker. It's a little bit harder than just a regular old postgres database, but not much. This is based off this stackoverflow answer.
Generate your heroku database dump download url: heroku pgbackups:url
Start a bash shell on your postgres container. On my system this... |
I'm running boot2docker on OSX 10.10. I have a database container set up so my databases don't get reset every time I start/stop a container. I would like to import a dump of a postgres database from heroku into my docker database. Is this possible to do?
| Import a heroku postgres database dump into a docker database container with boot2docker |
This is the policy that ended up working. When creating the buckets, they get a name such asstandard_prefix-20150101,standard_prefix-20150515, etc. Users with this IAM policy can then do whatever on those buckets, but not modify other buckets in the account.{
"Version": "2012-10-17",
"Statement": [
{
... | I am creating S3 buckets in a program using 'standard-prefix-{variable}'. In trying to create an IAM policy so a user can update, create, delete buckets in an account, but only if the bucket name contains the 'standard-prefix'. IE, I don't want to allow modifying other buckets in the account. I'm finding many ways t... | Variable resource name in AWS IAM policy |
What you are looking for is something that can report back the status from the PipelineRun to GitHub.This can be done in a few different ways. One way to do it is by using thecommit--status-tracker, however it seem to use the "older" concept withPipelineResources, so I would recommend to use e.g.GitHub App Notifierinst... | I'm looking for a way, if existing, of linking Tekton tasks running in Kubernetes cluster to GitHub steps, so that I can mark required steps in GitHub and allow PR merge only if they are passing.I know about Tekton triggers, which solve the other part of the problem, i.e. reacting to events in GitHub, such as the creat... | Tekton - Github integration |
I am not completely clear on the exact problem but another solution would be to have a Cache with softValues() instead of a maximum size or expiry time. Every time you access the cache value (in your example, start the computation), you should maintain state somewhere else with a strong reference to this value. This w... |
I've got a Guava Cache (or rather, I am migrating from MapMaker to Cache) and the values represent long-running jobs. I'd like to add expireAfterAccess behavior to the cache, as it's the best way to clean it up; however, the job may still be running even though it hasn't been accessed via the cache in some time, and ... | Is it safe to reinsert the entry from Guava RemovalListener? |
CloudKitCloudKit provides authentication, a private and a public database, and
structured asset storage services. CloudKit is a framework that allows an app to connect to iCloud APIs.iCloud DriveiCloud Drive is Apple's online storage service — a place to keep user
files and access them from Apple devices, such as a... | What is the difference between iCloud Drive and CloudKit? Which would be better for storing manual, periodic app document backups? I did see this question:iCloud versus iCloud Drive versus CloudKitbut it is about costs and not the differences between the actual services. | What is the difference between iCloud Drive and CloudKit? |
Answer your self with the question following.
So splitting backend, microservices and UI app, android app, ios app(even when they are different parts) is not very sensible, due to the high dependency on each other if your answer is yes to below questions.
Are the multiple parts developed by the same team?
Have the ... |
I have a project which I would like to store on GitHub.
This project contains code to run on an Arduino, Android, iOS as well as server code. Each section of the code interacts with the other, however, development of each section is more or less independent.
Should I have all the code sections in one repository under ... | Multiple orphan branches or separate repositories - git |
If your Jenkins has permission to build/run a Java or Python (or Go) program, it can launch a Beam pipeline.ShareFollowansweredFeb 14, 2022 at 19:39robertwbrobertwb4,9861919 silver badges2121 bronze badgesAdd a comment| | I’ve searched google and stack for this solution in pieces and can’t seem to get a foot hold. My main cloud of unknowing is if Apache beam has the ability to ingest a TFX pipeline config file via git/Jenkins and can kickoff via api or cli the pipeline. For some reason I can’t find clear documentation on it. If anyone h... | How to deploy Tensorflow TFX pipeline with Git/Jenkins Orchestrating in Apache beam |
To clarify ... I want to make a backup of all directories, for example to /home/user file is named backup-2014.02.02.tar and is located in the directory /home/user /backups. I'm doing a backup of the entire /home directory with the following script:
#!/bin/bash
today=$(date '+%Y.%m.%d')
tar czf /var/backup/backup_"$to... |
I want to make a backup of each directory in /home separately and each directory tar (backup) files to enter into a specified directory. Under linux ubuntu.
| Backup directories in home with tar |
If in bash, try git ls-files --recurse-submodules -- **/IJob.java.
If it does not work, run shopt globstar to see if globstar is on or off. If it's off, run shopt -s globstar to turn it on and then the command should work.
find . -name 'IJob.java' should also work.
|
i am trying to find the path of a file given its filename. i tried the command
git ls-files --recurse-submodules -- IJob.java
where IJob.java is the filename.However the command returns empty.
[hema@localhost org.eclipse.jdt.core]$ git ls-files --recurse-submodules -- IJob.java
[hema@localhost org.eclipse.jdt.core]$ ... | git ls-files returns empty |
-eqexpects 2 integers for comparison (seeman test). You should use=there for strings.Or, could you be more tolerant about output from the script?if $SERVICE status | grep -q "not running"; then
$SERVICE start
fiOf course it would be much better to use a process monitoring tool likemonitorsupervisor. | I am using a shell script to start tomcat server if it is not running. I am running this script in cronjob to check it frequently. This is my script#! /bin/sh
SERVICE=/etc/init.d/tomcat7
STOPPED_MESSAGE="Tomcat Servlet Engine is not running."
if [ "`$SERVICE status`" -eq "$STOPPED_MESSAGE" ]; then
$SERVICE start
... | shell script to automatically restart tomcat if stopped |
If I do not set the field to null, that object may be sent to the second generation and will wait more.If you don't have a finalizerat allthen your object will be eligible for garbage collection earlier, and its fields won't be counted as GC roots, so the other objects may be eligible for garbage collection at the same... | When you do something like below,@Override
protected void finalize() throws Throwable {
////////////////////////
this.aVeryBigComponent = null;
////////////////////////
super.finalize();
}Sonar complains aboutBad practice - Finalizer only nulls fieldsfindbugs : FI_FINALIZER_ONLY_NULLS_FIELDST... | What do you think about Sonar's Bad practice - Finalizer only nulls fields? |
Easiest solution probably would be to set up an Alert with CloudWatch.
Have a read at the documentation, which basically describes your use case perfectly:
You can create an alarm that stops an Amazon EC2 instance when a
certain threshold has been met
A condition could be the average CPU utilisation, e.g. CPU utilis... |
Can we stop an AWS windows server EC2 instance of a development environment when there is no activity in it, say after 2 hours of inactivity? I am having trouble identifying whether any user is connected to the server virtually.
I can easily start/stop the EC2 at a fixed time, programmatically, but in order to cut the... | Programmatically Stop AWS EC2 in case of inactivity |
I'd consider usingcron-parser, this allows you to determine previous and future cron times from a cron expression.For example:const parser = require('cron-parser');
const options = {
currentDate: new Date('2020-06-25T13:02:00Z'),
iterator: true
};
const interval = parser.parseExpression('0 */5 * * * *', options);... | I would like to be able to find the times a cron job would have ran given the cron string. For example, with0 */5 * * * *, the job runs every five minutes. If it is 13:02, the next job is at 13:05 and the last job was at 13:00. If there is a library out there that does this, I would like to use that if possible. | How do you calculate past cron jobs schedules? |
For example, if you have two metrics from different exporters:probe_success => Blackbox exporter
node_memory_MemTotal_bytes => Node exporterSuppose they have two common labels: "instance" and "group".If you use the following query:sum by (instance, group) (node_memory_MemTotal_bytes)>20000000000 and sum by... | I'm trying to monitor if a queue in rabbitmq:has messagesdoes not have a consumeris not called .*_retryIf a queue matches all three, I want to create an alert.The individual metrics are no problem to find but I cannot comprehend how I am going to AND the different metrics in one query, grouping them by a set of labels ... | Prometheus query comparing different metrics with same set of labels |
The Delphi IDE has several issues managing memory that were never really fixed by Embarcadero, one of the main issue is that the IDE and compiler have huge memory consumption due
to caches that are not released between compilation runs.
A workaround that I've applied with success with my codebase is to compile all the... |
I use Embarcadero Delphi XE5 Enterprise Edition. I have a project group consisting of 17 projects. When I click 'Compile All' after 7th compiled project IDE throw me an exception:
[Fatal Error] Exception of type 'System.OutOfMemoryException' was thrown.
What is a reason of such error and how to handled with it?
| "Exception of type 'System.OutOfMemoryException' was thrown" when compiling several projects at once |
It indeed looks like a bug in the engine. What is interesting however is, that the underlying function works with a column parameter. So you can use this as a workaround.SELECT at_timezone(date_utc,x.timezone)
FROM
(
SELECT
TIMESTAMP '2018-09-09 12:00:00' as date_utc,
'America/Chicago' as timezone
) x;ShareF... | Here is an operation you can perform in Athena-SELECT date_utc AT TIME ZONE 'America/Chicago'
FROM
(
SELECT TIMESTAMP '2018-09-09 12:00:00' as date_utc
) x;In other sql engines you can changeAmerica/Chicagoto a column-SELECT date_utc AT TIME ZONE x.timezone
FROM
(
SELECT
TIMESTAMP '2018-09-09 12:00:00' as date... | Can you use a column for the timezone parameter of AT TIME ZONE in Presto / Athena? |
CloudFormation gives you the following benefits:You get to version control your infrastructure. You have a full record of all changes made, and you can easily go back if something goes wrong. This alone makes it worth using.You have a full and complete documentation of your infrastructure. There is no need to remember ... | I'm trying to understand the real-world usefulness ofAWS CloudFormation. It seems to be a way of describing AWS infrastructure as aJSON file, but even then I'm struggling to understand what benefits that serves (besides potentially "recording" your infrastructure changes in VCS).Of what use does CloudFormation's JSON f... | AWS CloudFormation vs. Web Console? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.