Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
0
Enable your token is correct. generate new token, refer to:https://help.github.com/articles/creating-an-access-token-for-command-line-use/
test it:
curl https://api.github.com/user?access_token=your token
Share
Improve this answer
Foll... |
I have a problem with Github api.
I parse the access_token but when i try to get the user I get the following error:
Warning: file_get_contents(https://api.github.com/user?access_token=mplamplampla): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden
When I try to get the contents through address bar... | Github api Login - get user |
You have to changeidtonamefor it to work:resource "aws_instance" "twilio-app" {
ami = "ami-2757f631"
instance_type = "t2.micro"
key_name = "${aws_key_pair.twilio_key.key_name}"
security_groups = [ "${aws_security_group.allow_ssh.name}" ]
}It accepts group name and not the id parameter. | I have the following configuration:resource "aws_security_group" "allow_ssh" {
name = "allow_ssh"
vpc_id = "${aws_default_vpc.default.id}"
description = "Allow ssh connections on port 22"
ingress {
from_port = 22
to_port = 22
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
}
}
resource "... | aws configuration: Mismatch of Security group IDs and names |
The problem is that you've installed the script to be executed in the/etc/cron.ddirectory. That directory is for crontab files, not shell commands. (Take a look at the existing files in that directory.)There's a check incrondthat any files in that directory are not readable or writable by anyone other than the owner (... | I have acronjob for backuping my databases:➜ ~ crontab -l
@daily /etc/cron.d/pg_backup.shThere is a problem with setting appropriate permissions, though.When I have:➜ ~ ls -l /etc/cron.d/pg_backup.sh
-rwxr-xr--. 1 root root 1359 Apr 14 21:39 /etc/cron.d/pg_backup.shand then checkgrep "pg_backup.sh" /var/log/cron, I s... | Cron BAD FILE MODE vs permission denied |
Do you put code for each app in separate source control repositories or do they live in a single repository?What is the usual practice?They should be in a single repository each.You can usesubmodulesfor this purpose.Submodule is a project inside project. The benefits of submodules is that it will allow you to have proj... | Closed.This question is seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. It does not meetStack Overflow guidelines. It is not currently accepting answers.We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-si... | How to implement/manage multiple projects in one Git repo? [closed] |
You can put the python script file inAzure Git Repositoryand use the repository as the pipeline source. Then addRun a Python scripttaskin pipeline and specify the script path like below.Torun Python scriptsin your repository, you can also use a script element and specify a filename in YAML pipeline. For example:- scrip... | I am new to DevOps and this whole world, so I would like some help.I have an existing pipeline created. I also have a python script that I have just created, this script gets a json file, replace some stuff and replace the file content (I tested with a local file). Now I need to add this python code to my pipeline task... | Run python script in a CI/CD step |
$_SERVER['REMOTE_ADDR']- It returns the IP address of the user currently visiting the webpage.But sometimes the REMOTE_ADDR does not return the IP address of the client, and the main reason behind is the uses of the proxy. In such type of situation, we will try another way to get the real IP address of the user in PHP.... | I have a system, where several people access it.Yesterday I started receiving emails (lfd on server: Excessive resource usage).Time: Tue Apr 6 03:00:08 2021 -0300
Account: xxxxx
Resource: Process Time
Exceeded: 31331 > 1800 (seconds)
Executable: /usr/local/bin/php-cgi
Command Line: /usr/local/bin/php-cgi/home/xxxx/publ... | ADD IP in email Excessive resource usage |
I think there are some solutions:Anti repack your apk: because if a hacker want to bypass SSL pinning, he have to repack your apk using apktool. You can do that by check your apk signature, if not match, exit your app.Move your code of SSL pining to NDK and build .so lib to use, hacker may be harder to modify .so file ... | I am developing a finance app where I have implemented the SSL pinning. My software testing team bypassed my SSL pinning approach. How can I implement the complex SSL Pinning method in android? | how to implement the un bypassed SSL pinning in android |
From this bountysource (and PR 1595), this might have been fixed in 2.17.
So first, make sure to upgrade to the latest Git for Windows to see if the issue persists.
The OP JeffP confirms in the comments:
Works:
C:\python-projects>git clone github.com/jeffplata/by-ex
Cloning into 'by-example-account'...
remote:... |
From the windows CLI, i run
git clone https://github.com/jef ...
It seems to clone the repository, but not without warnings, and I'm not sure if I should be concerned. This is a second development machine. The original was pushed from another.
This is the output:
C:\python-projects>git clone https://github.com/jeffp... | git clone warning: failed to restrict file handles |
See my answer to this question.
The main reason why is because a subclass might override your accessors and do something different. The subclass's accessors might assume a fully initialised object i.e. that all the code in the subclass's init method has run. In fact, none of it has when your init method is running. S... |
From Apple documentation about Memory Management :
The only places you shouldn’t use accessor methods to set an instance variable are in init methods and dealloc. To initialize a counter object with a number object representing zero, you might implement an init method as follows:
To allow a counter to be initialized ... | Why shoudn't I use accessor methods in init methods |
Sounds like you want the sync command, or the sync() function.
If you want disk cache flushing: echo 3 | sudo tee /proc/sys/vm/drop_caches
|
I need to do it for more predictable benchmarking.
| How to purge disk I/O caches on Linux? |
Please usesummarize()function - orsmartSummarize(), if you have it.
Something likesummarize(nonNegativeDerivative(your counter), '1d', 'sum', false) | I have a counter and would like to display asinglestaton grafana for today's incremental, something likeCurrent MAX(gauge) - MIN(guage), since the gauge is monotone increasing, it also equals to `Current(gauge) - MIDNIGHT(gauge)Which function should I use in graphite? | Graphite function to get "today so far" incremental count? |
There's a specific feature of AWS Systems Manager for that purpose, calledAWS AppConfig. It helps you deploy application configuration just like code deployments, but without the need to re-deploy the code if a configuration value changes.The following article illustrates the integration between containers and AWS AppC... | What is the easiest way to provide one or several external configuration file(s) to an app running as an AWS Fargate task?The files cannot be part of the Docker image because they depend on the stage environment and may contain secrets.Creating an EFS volume just for this seems to be overengineered (we only need read a... | How to provide a config file to a Fargate Task? |
A public repository on GitHub.com will allow anyone to create an Issue. (I'm assuming by bug-tracker you are referring to GitHub Issues.
To resolve your issue, I suggest disabling issues on your public repository and using a private repository for the explicit purpose of tracking bugs. This will narrow the scope of p... |
Is there the ability to make GitHub's bug tracker read-only? I've setup an organization with a public repository. I want only certain people to be able to create new bugs but still want it to be read-only to the public. This is a requirement for an assignment in software-engineering class. I'm supposed to make it writ... | Make GitHub's bug tracker read-only |
You should include this directory in your .gitignore file (and, if appropriate, .dockerignore as well).
Since the PostgreSQL data is opaque binary files, it's not something that can be stored well in source control. The database storage is also specific to your instance of the application. If you and a colleague are... |
When dockerizing my app, a data folder was created with postgresql elements and data. It comes from this docker-compose.yml snippet:
volumes:
- ./data/db:/var/lib/postgresql/data
This folder is being populated with data constantly from running the app (still not in production but running in docker compose), whi... | Should I commit Postgresql data into Github? |
my issue was related to this:
https://github.com/docker/compose/issues/3472
notably:
@kachkaev This isn't a bug, and has nothing to do with caching.
Both your directories are named the same thing (docker), so when you
run docker-compose up in either directory you're working on the same
project. Each time you're u... |
I built a docker image and launched a container using the docker-compose up command. I then modified the container and did a docker commit command. When I try starting a container with the newly created image, it starts the new container but destroys the old container. When i next try to boot up the old container i... | why does docker-compose up remove other running conainters? |
When you download the repo it just gives you all the source files with no .git so you dont have the repo. When you clone you get a copy of the history and it is a functional git repo.
|
This question already has answers here:
What's the difference between cloning and copying a git repo?
(2 answers)
Closed 8 years ago.
I have started using GitHub recently. I would ... | Difference between cloning and downloading [duplicate] |
You might be able to get at some of this information through DirectX. In the .NET world, you'd use XNA or call into native DirectX to get the video card device capabilities.Look for "graphics caps" or "device capabilities" in the DirectX and XNA documentation. | I'm working on a project for my Software Engineering class at my University with a couple teammates. For details about the program we're creatingcheck our website. It's a C# Windows Form Application developed in Visual Studio 2010.We are having trouble retrieving some of the graphics card information we are looking for... | How to find graphics card core speed, memory speed, and shader speed (if applicable) in C#? |
Given some ListItem type and a desired to have a ListItem * value that serves as a sentinel (also see sentinel node), we can simply define a ListItem object to serve that purpose:
ListItem SentinelObject;
ListItem * const SentinelValue = &SentinelObject;
This could also be made static if they will be used only in one... |
It seems common to have the tail pointer at the end of a linked list be null (0).
What if I want to have two possible different "tails"?
My use case is a big integer representation that supports two's complement: I want to have a tail corresponding to "the rest of this number is zeros" and "the rest of this number is ... | Alternative "null" value |
things to editThe problem is, maybe you haven't setup URL in_config.ymlfile that's why incomplete URL making some troubleshoots. You need 2 things to do!URL Set-upImage Tag Set-upURL SetupIn_config.ymljust add 2 lines:#_config.yml
url: 'https://your-github-username.github.io/' # your main domain
baseurl: 'your-repo-na... | I created a simple blog with Jekyll/Github Pages. The directory tree is organized like this:_postspost1.mdassetsUntitled.pngUntitled1.png_config.ymlindex.mdIn post1.md I embed images by:
The Github preview works just fine, but in my website it can't sh... | Github pages with Jekyll not showing images in .md post |
You want to save it in the app's Documents directory:
NSData *imageData = UIImagePNGRepresentation(newImage);
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *imagePath =[documentsDirectory stringByAppe... |
I have the following code:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
//P1
UITableViewCell *cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"Cell Identifier"] autorelease];
cell.textLabel.text = [photoNames objectA... | How to cache images for a tableview? |
You're probably looking forincrease, rather thanrate. Which is the same asrate * <interval_length_in_seconds>.As a side note, in theory Pushgateway persists its state across restarts, but if you're running it within Docker or Kubernetes you would need to set up a persistent volume to be used by your successive Pushgate... | I want to count how often a user opens a dialog in a frontend and send the results to the prometheus pushgateway.The problem is that once the gateway restarts the metrics are gone and I can not sum the values properly.The rate function seems not to fit for this purpose.Is there the possibility to sum over time, no matt... | Prometheus count and sum metric over restart of pushgateway |
'p' will get retained when the NSInvocation is created by "[[undo prepareWithInvocationTarget:self] insertObject:p inEmployeesAtIndex:index]"
|
The following is code for enabling undo from the book cocoa programming for OS X by Aaron Hillegas :
-(void)removeObjectFromEmployeesAtIndex:(NSUInteger)index
{
Person *p = [employees objectAtIndex:index];
NSLog(@"removing %@ from %@", p, employees);
// Add the inverse of this operation to the undo stack
NSUndoManage... | Does NSUndoManager retain its arguments? |
To remove a rule, you just need to edit the quality profile that you're using on your project and remove the rule from this profile.More details here:http://docs.codehaus.org/display/SONAR/Quality+Profiles#QualityProfiles-EditingProfileIf you just want to disable the rule on a specific part of the code, then you can us... | We're using Sonar to perform code analysis. A design decision was made regarding the location of interfaces vs implementation classes that leads to sonar (correctly) finding a package cycle.Since this is known and accepted on the current project, how can I disable the check, preferably in code?I've tried putting//NOSO... | How to disable "avoid cycle between java packages" in Sonar? |
I believe @Scheduled(cron="0 0 9 * * *") should work. Also make sure that you are on right time zone. Have a look atthis videoto know different possible ways to use cron expression with @Scheduled.ShareFollowansweredJan 12, 2021 at 20:12HarishVijayamohanHarishVijayamohan57833 silver badges1414 bronze badges11This fixed... | I am looking to fire off a task everyday at 9am. I am getting some funky results. Currently my job looks like this:@Scheduled(cron = "0 0 9 * * ?")What is going wrong with this? Is this the correct expression? | Spring @Scheduled cron job |
In Dockerfile add this
Docker v19.03ENV REDIS_HOST "redis://host.docker.internal"when i using it on node.jsconst REDIS_HOST = process.env.REDIS_HOST ? process.env.REDIS_HOST : ""
const client = redis.createClient(REDIS_HOST)ShareFollowansweredAug 25, 2020 at 14:05May NoppadolMay Noppadol64888 silver badges1010 bronze b... | I have a Node.js application where I use Redis, I am trying to connect the Docker container and the locally running Redis.Tried solutions:vim /usr/local/etc/redis.confUpdatedbind 127.0.0.1Tobind 0.0.0.0Stopped the redis and start it again and tried running the dockerWith the above thing tried runningdocker run -p 4000:... | Connecting Redis localhost from Docker |
This is from TF Serving documentation:Please note, while the average latency of performing inference with TensorFlow Serving is usually not lower than using TensorFlow directly, where TensorFlow Serving shines is keeping the tail latency down for many clients querying many different models, all while efficiently utiliz... | I am running in the following scenario:Single Node Kubernetes Cluster (1x i7-8700K, 1x RTX 2070, 32GB RAM)1 Tensorflow Serving Pod4 Inference Client PodsWhat the inference clients do is they get images from 4 separate cameras (1 each) and pass it to TF-Serving for inference in order to get the understanding of what is ... | Tensorflow Serving Performance Very Slow vs Direct Inference |
Marketing people do like domains, because it's cooler to print [product].com on a brochure than [something]/[somethingelse]/[product]. Given that domains cost something like $10/year, it's not a big deal.On the other hand, if your brand is already strong, [strongbrand]/[newproduct] could be better than [unknownproduct]... | We are starting out a new project where I work and one of the things being talked about is the name of the product. The rest of the company seem to place great importance on the domain name being available eg. [product].com. I am saying that it does not matter as [product].[companydomain] or [companydomain]/[product] a... | Does every product need its own domain? |
Given the list of address in your sample text these expressions will match the requested ranges by using alternation to match numeric ranges. Unfortunately they'll need to be constructed individually because of how a regular expression doesn't really evaluate the text. To match a182.52or182.53string you'd use a regex w... | I have IP address list like this:180.183.0.0/16
180.210.216.0/22
180.214.192.0/19
182.52.0.0/15
...(400 more)How can I make a regular expression for IP address with Subnetmask?Why I want to get this.I have a website with Load Balancer(I can't change any config in server), my client wants to deny access from specific c... | How can I make a regular expression for IP address with Subnetmask? |
Could it be a different region where the tables created and the console shows? | I have following code written in DynamoDB for table creation. I am running this with Eclise. I have configured Tomcat server. I deployed my app on Tomcat and open the localhost URL.DynamoDB dynamoDB = new DynamoDB(dynamo);
ArrayList<AttributeDefinition> attributeDefinitions = new ArrayList<AttributeDefinition>();
attri... | Creating table does not reflect in DynamoDB console |
IntelliJ uses a custom script to prompt the user for a password in GUI and pass it to command-line git. Seems something affects the script execution (e.g antivirus, or maybe some JVM issue). IDE log should have more details, actually.
Seehttps://youtrack.jetbrains.com/issue/IDEA-150555 | When I wanted to push my changes i got error:Failed with error: unable to read askpass response from 'C:\Users\Ernesto\.IntelliJIdea2017.3\system\tmp\intellij-git-askpass.bat' failed to execute prompt script (exit code 1) could not read Username for 'https://github.com': No errorI reinstalled git, but it did not help. ... | Git push failed, no error |
Click on the "Subdomain" option in cPanel and create your subdomain, pointing the root document to your desired folder/public_html/apiIt might not update right away either. I just did this the other day, then I tried going to the new URL and it wasn't loading, I thought I did it wrong. I checked the subdomain the next ... | I am having a hosting server and i want to create a subdomain for apis hosted on same server.What i want is suppose I have my domain namedomain.comand want to have sub domainapi.domain.comand set a folder path/public_html/apifor it to load APIs.What I did is created a sub domain inDomains/subdomainssection in cpanel an... | Godaddy subdomain not working |
Have you started ssh-agent?
eval `ssh-agent -s`
ssh-add
|
i have spent lot of time to solve but still
my ssh is running
wahyono17@komputer2:~$ ps -e |grep [s]sh-agent
2311 ? 00:00:00 ssh-agent
2343 ? 00:00:00 ssh-agent
but when i add ssh there is error
wahyono17@komputer2:~$ sudo ssh-add ~/.ssh/id_rsa
Could not open a connection to your authentication agent.... | Could not open a connection to your authentication agent, ssh on ubuntu |
SonarQube C# docs says
"Drilldown on Test Execution Results is not supported Tests execution results will be displayed on project level dashboards."There is an open ticket about this problem:https://jira.sonarsource.com/browse/SONARNTEST-17and this another one is also worth to look:https://jira.sonarsource.com/browse/S... | I clonedhttps://github.com/SonarSource/sonar-examples.gitthen opened a command prompt under SonarSource/sonar-examples/tree/master/projects/languages/csharp and run the following commands (based on "Unit Test Execution Results Import (C#, VB.NET)" @ docs.sonarqube.org/pages/viewpage.action?pageId=6389772):MSBuild.Sonar... | "Unit Tests 1" but beneath it the List is empty |
The commit you're seeing is a merge commit; generally these are auto-created by git any time you do a non-fast-forward merge, but you can also force one to always be created. And that is what GitHub does when you use the merge button.
If you don't want merge commits, then you need to cherry-pick commits onto master i... |
At my company we ask developers to squash commits on feature branches before merging into develop. Once squashed, the developer pushes to GitHub and logs into GitHub to create a pull request.
When the pull request is merged, we end up seeing two commits in the history of the develop branch:
A commit saying "merged pu... | Why merged pull request in GitHub creates duplicate commit? |
If you want to backup to your own harddrive, then it needs at least 50% free space.
Typically people do not backup all their binaries, but rather their data (the data that is in the /home directories)
sudo mkdir /homeBackups
sudo cp -a /home /homeBackups/.
sudo tar -cvf homeBackups.tar .
sudo gzip homeBackups.tar
Then... |
I am using Yocto distribution of Linux. And currently, I am looking to back-up my system following the guide:
http://ubuntuforums.org/showthread.php?t=35087
The part I am having trouble with is that
and go to the root of your filesystem (we use this in our example, but
you can go anywhere you want your backup to e... | How do I back up my Linux system |
You don't want to cache the XML document. It would be better to read/parse it into a "configuration" object. Depending on how complex or simple your configuration is, it could be a simple Map or something more complex.One benefit (beyond the concurrency problems from parsing the same doc from multiple threads) is that ... | FromhereI learned thatorg.w3c.dom.Node(and other classes in the same package) are not thread-safe.I am asking myself if and how should I cache those classes?Is there a best approach?Do immutable wrapper classes exist?Should I use aThreadLocalfor theDocumentBuilder/DocumentBuilderFactoryinsteadand recreate theNodeeveryt... | Concurrency and reusage of org.w3c.dom.Node |
You could import your resources in a Terraform template usingterraform import.However, that means you need to know exactly which resources have been used to deploy your EKS cluster. Everything which has been deployed inside the cluster won't be imported though. | A year ago I've configured an AWS EKS cluster for our client. I've created it with help of lots of manuals. There are cluster configuration files present (I've applied all changes to the cluster only using those files), but I'm not 100% sure, that there was no direct command line changes applied to the cluster.Currentl... | Backup AWS EKS cluster configuration |
Azure backup server needs .NET framework 4.6, server should be join to a domain and SQL Server Standard.For more information refer:https://learn.microsoft.com/en-us/azure/backup/backup-azure-microsoft-azure-backupAzure Backup agent needs Microsoft .NET framework 4.5 and windows PowerShellFor more information refer:http... | What are the dependencies of the Azure backup agent, Azure backup server (such as the specific version of ".net framework" and any additional software) Can anyone list out these dependencies I can find it anywhere | Azure MARS agent software dependencies |
Solved!this is myanswer1-Download this file: http://curl.haxx.se/ca/cacert.pem
2-Place this file in the C:\wamp64\bin\php\php7.1.9 folder
3-Open php.iniand find this line: | I am developing app to getjsondata from other site and show in html table inlaravel.I use Guzzle to send request.(stackoverflow question and finally use Guzzle)when i called request based onhttpto External API,it's show me correct data!myproblemis:when i call theHTTPSlink to get data in laravel,it goes tosslerror.some ... | Calling HTTPS request from laravel to external API |
-1I would do the following:Make sure Docker is running is running on whatever OS you are running.Remove docker from sudo as you will have issues running docker scrips.
Code to remove or grantDockernon sudoe privilegessudo usermod -aG docker usernameI am not sure it is your main issue but it could help.ShareFollowanswer... | installing and running docker on Android andsudo docker versionreports that the client and server are available.Attempting to run any other meaningful command (e.g.hello-world,pull,push,build) starts throwing errors.For instance:sudo docker build -t img1results in*ERROR: Get https://registry-1.docker.io/v2/: dial tcp: ... | docker - connection refused on android host |
I've had similar issues before when streaming either raw video (like you are) or from an MJPEG source. There are two input options to try with ffmpeg to get it to stay at 1x speed:
Option 1
ffmpeg -re -i <rest of input options>
-re tells ffmpeg to read at the native input rate
Option 2
ffmpeg -use_wallclock_as_timest... |
Output video:
https://youtu.be/VxfoBQjoY6E
Explanation:
I want to: Process camera stream in Opencv and push it over to RTMP server. I already have NGINX (RTMP module) set up and I have tested streaming videos with both RTMP (Flash Player) and HLS.
I am reading the frames in a loop and using 'subprocess' in python to e... | Processing Camera stream in Opencv, pushing it over RTMP (NGINX RTMP Module) using FFMPEG |
There are 2 places where I can see you could potentially be building up memory usage:
In the buffer reading your input file.
In the buffer writing to your output stream (HTTPOutputStream?)
For #1 I would suggest reading directly from the file via FileInputStream without the BufferedInputStream. Try this first and se... |
When I am trying to download a large file which is of 260MB from server, I get this error: java.lang.OutOfMemoryError: Java heap space. I am sure my heap size is less than 252MB. Is there any way I can download large files without increasing heap size?
How I can download large files without getting this issue? My code... | how to download large files without memory issues in java |
The analysis of C# and VB code is done as part of the MSBuild step, with the issues being written to a report. The report is processed during the ScannerEndstep, with the issues being posted to the SonarQube server. The Scanner for MSBuild does not instrument the binaries in any way.It doesn't make any difference to th... | Does anyone know if the SonarQube Scanner for MSBuild does a scan as part of the build and sends back only the results to SonarQube or is the EXE being instrumented at which point we could send the artifact to SonarQube on a Linux machine for analysis similar to how the java artifacts are scanned using sonar-scanner-cl... | SonarQube Scanner for MSBuild Architecture |
Whenimporting an Eclipse project into IntelliJ, you have the option to:Create module files near .classpath filesKeep project and module files inThe idea is to keep your*.imlfile concurrently with your Eclipse.project/.classpath(and you cankeep them in sync).That way, you can open the project in both IDE.ShareFollowansw... | I want to import a maven project from GitHub into intellij which in of itself I know how to do however, the project this time was created initially also as an eclipse project and I want to be able to work on it in idea while my team members work on it in eclipse without causing conflicts due to differing project file s... | How to import an eclipse based project from GitHub into Intellij properly |
org.springframework.web.servlet.support.WebContentGenerator, which is the base class for all Spring controllers has quite a few methods dealing with cache headers:
/* Set whether to use the HTTP 1.1 cache-control header. Default is "true".
* <p>Note: Cache headers will only get applied if caching is enabled
* (or ex... |
In an annotation-based Spring MVC controller, what is the preferred way to set cache headers for a specific path?
| How do you set cache headers in Spring MVC? |
A clarification: for negative consequences at least some accesses to "falsely shared" variables should be writes. If writes are rare, performance impact of false sharing is rather negligible; the more writes (and so cache line invalidate messages) the worse performance.Even with atomics, cache line sharing (either fals... | When different variables are inside the same cache line, you can experienceFalse Sharing, which means that even if two different threads (running on different cores) are accessing two different variables, if those two variables reside in the same cache line, you will have performance hit, as each time cache coherence w... | False Sharing and Atomic Variables |
You have not mounted any database inside sqlite image. Thereadmeof the sqlite repository says to mount the database at/db/db.dbinside container.You can do this by including volumes in thedocker-compose.ymlfile. Your new file should look like:version: '3'
services:
db:
image: spartakode/sqlite3:latest
volumes... | I am new to docker and I'm trying to host a django project in docker. I tried to follow the tutorial fromherebut instead of postgresql, I use sqlite. I tried to rundocker-compose upbut docker was stuck at this:my Dockerfile:FROM python:3.6
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code
ADD requirements.txt /code/... | docker is not running django server |
Uncheck Enable Zombie Objects option under Edit Scheme. And try again.
A zombie is an object that has been deallocated, but references to it still exist and messages are still being sent to it
I think this link has more info for you
What is NSZombie?
|
What am I doing is I am creating lots of UIView in the background and keep them in a NSMutableArray to use later. But when I dismiss the view controller I check the memory in Xcode and it seems some of memory not being released. I checked; view controller is being deallocated.
Check please:
This happend after severa... | Memory not being released right even dealloc method is called after dismissing view controller |
Yes, this is pretty much how you do blue/green deployment using EB. The cloning is an integral part of it:Lambda functions toclone the blue environment as the green environment, to re-swap the URLs, and to terminate the green environment when deployment and testing for the blue environment are complete.The exact detail... | I started to use theSwap Environment URLsfeature in Elastic Beanstalk (CNAME swap). What is the best approach, if I want to stick to the same environment name?Currently, I swap twice. First I bring up my changedmy-env-newenvironment. I perform the first cname swap frommy-envtomy-env-new. Then I delete the previousmy-en... | Can you rename an Elastic Beanstalk environment? |
I'm trying to gzip compress the [image]You don't typically need to gzip images -- doing so saves very little bandwidth, if any, since virtually all image formats used on the web are already compressed.Also, CloudFront doesn't support it.SeeFile Types that CloudFront Compressesfor the suported file formats. They are te... | I m trying to gzip compress the img I m serving throughCloudFront. My origin isS3Based on several articles/blogs on aws, what I did is:1) Set"Content-Length"header for the object I want to compress. I set the value equal to the size appeared on thesizeproperty box2) Set theCompress Objects Automaticallyvalue toYesin th... | How to enable gzip compression on AWS CloudFront |
To get more than 1000 objects, you must make multiple requests using the Marker parameter to tell S3 where you left off for each request. Using the Iterators feature of the AWS SDK for PHP makes it easier to get all of your objects, because it encapsulates the logic of making multiple API requests. Try this:
$objects ... |
I have an amazon s3 bucket that has tens of thousands of filenames in it. What's the easiest way to get a list of all file or text file that lists all the filenames in the bucket?
I have tried with listObject(), but It seems that it only list 1000 files.
amazon-s3-returns-only-1000-entries-for-one-bucket-and-all-for-a... | Quick way to list all files in Amazon S3 bucket using php? |
I assume that yourprivatekey.pemsomehow doesn't match the certificates within thecompany.pem.My personal script (taken from theLet's Enrypt forum) for importing my SSL certificates fromLet's Encryptinto a keystore for tomcat is the following:openssl pkcs12 -export -in fullchain.pem -inkey privatekey.pem -out fullchain_... | could use a little help. I’m a junior sys admin, I was thrusted into a devops / sys admin role in a 100 person business when our devops guy quit with a weeks notice. Our internal company.org sites are down because our go daddy ssl certs expired. I’m frantically trying to restore everything and having a bit of trouble u... | Installing SSL certificates on Tomcat in AWS Linux Infrastructure |
IMHO, the first thing you need to do is read more about the concept ofmicroservicesand how it works.Basically, the idea is decouple your monolithic application into as many services as your want and deploy it separate of each other. Each of this parts will comminicate with other parts by API calls.There are a lot of be... | I am working on a POC where I had to containerize a part of application for eg - I need to containerize "add to cart" functionality in an e-commerce website, I see a various examplehttps://dzone.com/articles/docker-for-devs-containerizing-your-applicationto containerize whole application,but how to do for a part of it... | how to containerize a part of application |
When you deploy, capistrano creates a folder in the releases folder, and then symlinks that folder to /your_app/current.
Since the part of your rails app that you expose to the public is the public folder, you need to set the root in your nginx config to:
root /path_to_your_app/current/public;
With each deploy the c... |
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
... | How to use Capistrano with Apache or Nginx? [closed] |
URLs specified in index-url variable were repository URLs not index URLs.
Per https://help.sonatype.com/display/NXRM3/PyPI+Repositories#PyPIRepositories-ConfiguringPyPIClientTools, index URLs seem to end in /simple.
|
I have a private PyPi registry using Nexus. I can publish/install from my host machine without any problems (my personal packages as well as common packages via PyPi nexus proxy). When I try to build a docker image using Dockerfile it allows me to install neither my own packages nor public through the nexus proxy regi... | Can't install Python package located in private Nexus repo on docker build |
Create a Dockerfile like this:FROM dockerfile/java
# Install Tomcat
RUN sudo apt-get update && sudo apt-get install tomcat7
# Add your webapp file into your docker image into Tomcat's webapps directory
# Your webapp file must be at the same location as your Dockerfile
ADD mywebapp.war /var/lib/tomcat7/webapps/
# Exp... | I have installed docker in my windows machine and run an image for java installation following instructions from "https://registry.hub.docker.com/u/dockerfile/java/" it allows me to run java commands as expected. But lets say I have a Java application which needs to be run on Jboss or tomcat. How do I create an image f... | running java applications in docker with jboss or tomcat server |
I cannot give comment, so i'll try here instead.you need to remove this line from .htaccessRewriteRule ^(.*)/$ /$1 [L,R=301]or add # in front of it to comment. | This question already has answers here:laravel trailing Slashes redirect to localhost(4 answers)Closed6 years ago.My application url is:http://localhost/my-appAnd my admin panel is here:http://localhost/my-app/adminBut when I try to access the admin panel using this url:http://localhost/my-app/admin/It redirects me to ... | Laravel 5: Prevent redirection when the url ends with “/” [duplicate] |
Your suspicion that it's in C is correct; nd_image.c defines Py_WatershedIFT (exposed as watershed_ift). This calls the actual implementation NI_WatershedIFT in ni_measure.c.
|
I am playing with scipy source code, there.
I am looking to method watershed in ndimage.measurements. Method is calling a mysterious _nd_image.watershed_ift(...) and module measurements.py does import _nd_image. However, I cannot find _nd_image in parent repository, and anywhere else.
I wonder if _nd_image refers to... | SciPy source code - cannot find an imported module |
Letsencrypt still needs to use port 80.
If your ELB is only forwarding port 443 for normal traffic you can use the following approach.Forward port 80 to a small instance only running NGINX and certbot.Initiate the cert renewal process from the this NGINX box.Upload cert from NGINX box to ELB.For extra points you can no... | Problem is that faced was when we pointed the DNS to ELB, It was not able to get certificate validation from LetsEncrypt however it worked when we did edited DNS to EC2 servers IP. --> This is OK if we have one server but what if we have many servers it won't work. Hence, we want this LetsEncrypt to | How we can get LetsEncrypt Certificate validated using ELB? |
You can:browse artifacts in Nexus 3like you would on github.comget an artifactthrough Nexus APIlike you wouldfor GitHub.The difference being in the nature of the artifact browsed/fetched:a binary or large file for Nexus 3a source code or small static binary for GitHub. | I'm comparing different Registries and Repositories at the moment.
Can anybody tell me how to store and access files in a Sonatype nexus3 repository?
Not pretty sure this is possible at all due to the fact nexus3 has another focus..Thanks | Can I store and access files in a Sonatype nexus3 repository like i would do on github or gitlab? |
Provided you are not downloading a file too large (more than 1MB), as seen inPyGithub/PyGithub/issue 661, the idea is to:request the Repository content at a specific commitget the files returned by the first callThat is:contents = repository.get_dir_contents(urllib.parse.quote(server_path), ref=sha)Then:for content in ... | I want to get the file contents of all the files in the repo [changed and unchanged] using the Python [PyGitHub API]. But not sure how to achieve it. Simply, to browse the repo at that specific commit id in history.Is there any other API to get the required data? or can be done with PyGitHub itself.Note: I'm using Git... | Get all the file Contents of a repo at Specific Commit using PyGitHub |
.20.3.2 ThefreefunctionSynopsis#include <stdlib.h>
void free(void *ptr);DescriptionThefreefunction causes the space pointed to byptrto be deallocated, that is, made
available for further allocation. Ifptris a null pointer, no action occurs.SeeISO-IEC 9899.That being said, when looking at different codebases in the ... | Theoretically I can say thatfree(ptr);
free(ptr);is a memory corruption since we are freeing the memory which has already been freed.But what iffree(ptr);
ptr=NULL;
free(ptr);As the OS will behave in an undefined manner I cannot get an actual theoretical analysis for this about what's happening.
Whatever I am doing, is... | Does free(ptr) where ptr is NULL corrupt memory? |
http://is not part of match in{HTTP_HOST}variable .You need to use!='localhost'If you are testing the on a local host or!='example.com'If testing this onexample.com.Full code<If "%{HTTP_HOST} != 'localhost'">
# live configuration
</If>
<Else>
# local configuration
</Else> | i'm currently forcing visitors to access all my websites (mostly Wordpress) over https, witch i do with the following code:RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]Now i was wondering if i can use anif is notstatement, so if i work on my local environment, th... | If is not localhost statement htaccess |
4
I've just checked in our sentry and the current version is newer-v12.18.4 so you can safely use AsyncLocalStorage now on v12 lambdas.
But AWS should really show this in the lambda administration panel. The fact that this is not shown anywhere and we have to use console ... |
I'm relying on Node version 12.17.x to make use of a specific feature (AsyncLocalStorage) in Lambda and Elasticbeanstalk. But for some reason, the Node.js version does not seem to publicly available. Why do they think that platform "12.x" tells me the real Node version? I want to know the exact minor and patch version... | How to check minor Node.js version in AWS Lambda and Elasticbeanstalk? |
As kernel books go, "Linux Kernel Development" is one of the most "friendly" and easy to understand for those new to kernel development, but it has very little detail. I would recommend "Professional Linux Kernel Architecture" by Wolfgang Mauerer: it is far more detailed than LKD, and while it is getting a bit old, mo... |
I was wondering if there is any good documentation available to understand memory management part Linux kernel. I have already gone thorough memory management part of "Linux kernel development" book.
Thanks.
| Documentation to understand mm part of Linux kernel? |
It is going sequentially through your data, and it does not know about all items that were added in the process:Scan operations proceed sequentially; however, for faster performance
on a large table or secondary index, applications can request a
parallel Scan operation by providing the Segment and TotalSegments
p... | When we scan a DynamoDB table, we can/should useLastEvaluatedKeyto track the progress so that we can resume in case of failures. The documentation says thatLastEvaluateKeyisThe primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding t... | Scanning DynamoDB table while inserting |
I ended up just using Spring'sRestTemplateto query prometheus directly. I'm only working against a dev cluster, so I just leveraged Len's install of prometheus, which means the endpoint is something like:http://prometheus.lens-metrics:9090Here's their query, which I've reused below:https://github.com/lensapp/lens/blob/... | What's the proper way to query the prometheus kubelet metrics API using Java, specifically the PVC usage metrics? I can see there's an API to fetch some metrics via the auto-scaler, but my cluster doesn't have an auto-scaler, so this returns an empty list:AutoscalingV2beta2Api autoscalingV2beta2Api = new AutoscalingV2b... | How to query the kubelet metrics API in Java? |
According to thekubernetes v1.8.0 changelogContinuous integration builds use Docker versions 1.11.2, 1.12.6, 1.13.1, and 17.03.2. These versions were validated on Kubernetes 1.8.So any of these version should work fine. | I'm going to upgrade my Kubernetes cluster to the version1.8.7. Does anybody know which docker version is best compatible with it?This is what I found on the Kubernetes official page, but I suppose it might be for the latest k8s release (1.9)?On each of your machines, install Docker. Version v1.12 is
recommended, but... | Docker version supported in Kubernetes 1.8 |
The coloured circle you see does not list technologies used, it shows the repository language. This is usually the language that has the most code in your repository, and only one language will be visible.
The language is determined by the Linguist library, and you have the option of fixing it if it is detected incorr... |
I have added a repository to GitHub with the following 5 files:
README.md
my-php-file-1.php
my-javascript-file-1.js
my-php-file-2.php
my-javascript-file-2.js
Under Manage Topics I have indicated that the repository should include the topics:
PHP
Javascript
Nevertheless, on my Overview and Repositories pages, this ... | How can I give my GitHub repository multiple coloured-circle "technology badges"? |
Since it's a managed add-on, you need todisableit viagcloud:gcloud container clusters update --disable-managed-prometheus ${CLUSTER_NAME}ShareFollowansweredDec 21, 2022 at 9:55Gari SinghGari Singh11.7k22 gold badges1919 silver badges4242 bronze badgesRecognized by Google Cloud CollectiveAdd a comment| | I enabled managed service for prom in GCP consoleIt installed bunch of agents with gmp-system namespace on my gke clusterhow do I uninstall it?i tried kubectl delete all --all -n gmp-systembut it just respawns | How to disable google managed prom? |
end backup basically signals all the vss writers that a successful backup has occurred. You probably don't want to do that until after all data has been successfully moved to a safe location. In your case, you will not want to signal a finished backup until the HyperVBackup.cmd script has finished without errors and... |
I am implementing a backup of Hyper V VMs using diskshadow based on Windows VSS (Volume Shadow Copy Service).
The implementation is pretty much as described in DiskShadow / Xcopy BACKUP of Hyper-V, where the diskshadow script is like the following:
set context persistent
set metadata C:\backup.cab
set verbose on
begi... | Hyper-V Backup with diskshadow - when to call "end backup"? |
Acontextinkubectlis just a local config that contains details (metadata) about a particular cluster or a namespace. This is the config that is needed for cluster/namespace management using thekubectlclient.So, when you typekubectl config <any_command>, it's just doing a lookup in a file stored locally on you computer.
... | I just created a namespace, have done nothing with it and now deleted it. However, when I list contexts I can still see it there. It seems to have been deleted as I can't delete it again. Why can I still see it listed when I get contexts?kubectl config get-contexts
CURRENT NAME CLUSTER AUTHINFO NAMESPACE
*... | Kubernetes: can't delete namespace |
Yes, you can track the.gitignorefile, but you do not have to.The main reason of having this file into repository is to have everyone working on the project, ignoring same files and folders.Also see this:Should you commit .gitignore into the Git repos?ShareFolloweditedJul 24, 2020 at 10:11Giorgi Tsiklauri10.3k88 gold ba... | This question already has answers here:Should you commit .gitignore into the Git repos?(6 answers)Closed10 years ago.After readingproper section of GitHub HelpI got completely lost. It says:This filecan be committedinto the repository, thus sharing the rule list with any other users that clone the repository.Up until n... | Should I commit .gitignore file? [duplicate] |
Before swithcing ti an SSH URL as a workaround, which would also avoid entering any credentials (easier if you have a passphrase-less private key), try first to unlock your key.Seehere as an example, when opening your Keychain access.app.See also "How to Resolve Mac OS X Keychain Problems" for other options.ShareFollow... | I like having my Github username and password cached so I don't have to enter my credentials every time I pull/push to Github. The first time I followedinstructions provided by Githuband it worked great.I then updated from Sierra to High Sierra and this caused the terminal to ask for my username and password once again... | Not receiving Keychain prompt when I try to cache my Github username and password on OSX |
-1yes, your way to configure should work.you can find other ways in answers of this questionHow to customize the configuration file of the official PostgreSQL Docker image?ShareFollowansweredMay 31, 2019 at 16:34Ryabchenko AlexanderRyabchenko Alexander11.3k88 gold badges6666 silver badges9393 bronze badgesAdd a comment... | I have a Rails app that I'm deploying using Docker containers. I'm using PostgreSQL for the database, and I'm trying to set up WAL-E to do continuous backups to an S3 bucket. The setup for this involves making a few changes to the postgresql.conf file.I am using a postgres official image as a base image, and am passing... | How to change postgresql.conf from Postgres docker image |
1
To work with ssh or any asymmetric key encryption protocols, you should get a grasp of the concept of how public and private key pair works. Only until then, what I will say below makes sense:
The command ssh -T [email protected] shows the user who has added your public ... |
I have run ssh -T [email protected] to check my connection SSH connection, and I got the following result -
Hi e***! You've successfully authenticated, but GitHub does not provide shell access.
Now, this is not my GitHub user and I don't know how to change it.
| successfully authenticated into github under wrong user |
You can use theafter_success:option to implementcustom deployments on travis-ci.Something like:after_success:
"cd $subfolder && python setup.py sdist upload -r pypi"You will have to provide your pypi credentials yourself using whichever method you find best. | I have arepository(on GitHub) consisting of a number of modules that can be added to the mainprojectas plugins. I want to set up the repository such that an automatic PyPI deployment is triggered (only for the changed module) every time a pull request is accepted.Is there any way to achieve this?Travis-CI supports auto... | PyPI automatic deployment |
You've placed brackets around the URL, which is not valid syntax, and Git is interpreting the brackets are part of the URL. Consequently, pushes don't work.
You should set the URL such that it doesn't contain the brackets:
git remote set-url origin https://github.com/abdullah-ch/Graphical-User-Interface-in-JAVA.git
I... |
I am re-initializing my rep,adding my code into it but still , when I push it...I get this error....
When I was looking for the solution , I saw in one of stackoverflow's post that after origin , the space is not actually space but some special character, but I had put a space for saafekeeping, still The error is not ... | How to fix this error " fatal: protocol '[https' is not supported "? |
I realized that the deployment setup matcheshttp://coding.smashingmagazine.com/2011/06/28/setup-a-ubuntu-vps-for-hosting-ruby-on-rails-applications-2/When I followed this tutorial(about a year ago), I installed slightly newer versions of nginx and passenger. From what I remember, I think these newer versions prompted m... | I am using Capistrano to deploy my Rails application. whenever I deploy, changes would not be reflected on the browser, and I still need to restart nginx to update the site (running sudo /etc/init.d/nginx restart). I'm not really sure why but isn't it supposed to be updated after restarting application? (using touch /a... | Rails - Nginx needs to be restarted after deploying with Capistrano? |
What happens when you manually re-mount the drive as vfat?
umount /MOUNTPOINT
mount -t vfat -v /dev/sdXX /MOUNTPOINT
|
I am trying to help a friend back up some files to an external USB drive from a machine running Ubuntu. The drive is a 1.36 TB big and is using NTFS. From what I can tell I need to reformat it to FAT32. But FAT32 does not seem to be able handle a drive that big.
I tried mkfs -t vfat but it still shows as NTFS on th... | How to format large USB external drive to FAT32 for Ubuntu |
Undoubtedly, whatever memory is consumed byPythonand the startup of your script will stay in memory for the duration of thesleep, but since you have written the code you can organise things to minimise the memory usage until the sleep is over.As to cpu performance, I'm sure that you will incur no overhead for the durat... | I'm using a cron task to schedule many jobs every 2 min.
Since there are no higher resolution for less than a minute in cron, I make the python code call a randomised sleep command (between 0-60) so it will spread the execution time across a minute.This works out fine for me.I'm just wondering that if I have a process ... | Does sleep command slow the performance? |
Upon inspecting with your image link in Glide, I found the error to be because of signing the server security with Self-signed certificate (making it HTTPS) and server configuration. The exact error would be:
javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certifica... |
i have a strange Problem while using Glide as below
I cannot Load Images From Nginx server
Glide.with(getApplicationContext()).load("https://www.thehellofood.com/uploads/food_categories_images/Tandoori_Starters.jpg").into(holder.mImageView);
But When i use Images fro Some Other Server I can Load them
Glide.with(get... | Https Images in Glide Library for Android |
You can usegit cherry-pickto apply a few different commits from one branch to another.Otherwise, if you merge your staging branch back into your dev branch, git will flag for you all the conflicts that between the commits you have made on your dev branch and the commits that you made on your staging branch. This is the... | In my project I have the following branches:masterstaging (created from master)live (created from staging after initial dev is complete)"staging" is where all the development happens and then before going live the "live" branch is created from "staging". Then on the "live" branch some changes are made to the config fil... | Git branches and merging scenario |
In google code, go to your project, click the "source" tab and then the "browse" link. Find the CSS file you want to link to. Click the "View raw file" link on the right side. This will pull up the raw version of the file. Copy the address out of the URL bar and use it to link your stylesheets.
For example, look at th... |
I'm looking for any website that could host my codes to be accessed from any where for example I want to save "example.css" on that site and then I should able to include that "example.css" in my pages. I already have a Google code account but it's not linking my code.
If it is possible please explain in detailed way... | how to host code on Google code or any other site |
Had the same issue. In case anyone else stumbles into this question, the solution for me was to useSystem.Net.Http'sHttpClientinstead ofWebRequest | First Code,HttpWebRequest req = (HttpWebRequest)WebRequest.Create(formUrl);
req.Method = "GET";
req.KeepAlive = true ;
req.Proxy = WebRequest.GetSystemWebProxy();Simple HttpWebRequest call to a site. Problem lies within Network detection. As this module work on a site for some time, sometimes need to change ip addre... | c# HttpWebRequest doesnt reflect vpn location change |
There are no limits on requests, there is a limit on the amount of traffic per month - 100 GB. After that Github can stop serving the site. | How many times can you GET request to a GitHub Pages (.github.io) site in a particular amount of time before you get ratelimited by GitHub?
I couldn't find this online anywhere, strangely. | What are the ratelimits for GitHub Pages sites? |
You can't add rewrite flags to theRedirectMatchdirective. The rewrite stuff is part of mod_rewrite, the redirect stuff is part of mod_alias. If you want to use 'L', you can use mod_rewrite insteadRewriteEngine On
RewriteRule ^(folder1|folder2)($|/.*) http://fedmich.com/$1$2 [L,R=301]But I'm not understanding the underl... | Need some help to add theLAST or Lflag together with the 301 on that RedirectMatch.The code I'm using, which looks like below works, but only have301statusRedirectMatch 301 ^/(folder1|folder2)($|/.*) http://fedmich.com/$1$2I've tried these variations and they don't work or have Internal server error.RedirectMatch 301 ^... | RedirectMatch and including L flag |
dimension_values(us-east-1, AWS/Billing, EstimatedCharges, LinkedAccount, {"Currency": "USD"})See doc:https://docs.aws.amazon.com/grafana/latest/userguide/cloudwatch-templated-queries.html | How can I query cloudwatch to show only the linked accounts? I want to display linked accounts as a variable but I'm not sure how to query and list the linked accounts.Here is how a query for the graph looks like with linked accounts and currency set. | Grafana Query to list only the AWS Linked accounts |
It's possible to return a status code from Nginx:
location /empty {
return 200;
}
NOTE Generally, HTTP status code 204 No Content is meant to say "I've completed the request, but there is no body to return". You may return it in the same fashion:
location /empty {
return 204;
}
|
I face funny problem: I have an FreeBSD 8.2 server, and I need to set up web server that wil answer zero (0) length answer to any request. Just '200 OK' and zero body.
Ok, I can setup nginx (and already did that) and set 404 error document to /dev/null, but I think maybe there is more optimal and elegant solution? I k... | Howto: the minimal server to serve zero length answers |
So it turned out to be a know problem with the nginx ingress in that when it has to rewrite the URL is decodes it and sends the decoded URL downstream to Tomcat which then blows up.
There's various discussions on this, but as I needed to fix this as part of the K8S ingress definition I used the infodescribed here. I've... | I'm hitting a problem with Tomcat 8.5 when using URL that needs to be encoded. The URL contains [ and ] characters, and those are correctly being encoded as %5B and %5D. I send the request with curl e.g.curl http://somewhere.com/foo%5Bbar%5Dbut Tomcat throws a 400 error stating that "The server cannot or will not proce... | Tomcat not handling encoded URL |
The official documentation for "magic links" orAutolinked references and URLsdoes mention pull request, but not pull request comments.So a comment reference itself might not be supported at the moment. | I have followed the solutionshere, but none worked.If I need to make reference to a PR comment, say a change request, in my commit, how do I go about it? I have triedgit commit -m 'Effect the changes mentioned in https://github.com/team/repo/pull/1#issuecomment-897102875'but on Github it shows the PR number :=Effect th... | How do I reference a PR comment link in a commit message on Github |
git log | tail
will show the initial commits, each with commit id like below:
commit e73188b5512c82290a4070af4afddac20d0b981e
then
git checkout e73188b5512c82290a4070af4afddac20d0b981e
Git will use this commit as its current state, any files before commited will
still exist but be considered "untracked" by git. T... |
Is there way to roll back not every commit but to the very beginning of the project?
Then I want to step forward commit by commit and see what changes the author did?
What is workflow in this case?
| How can I roll back someone's entire project in github to its initial state after forking it to my local drive? |
I am not sure if this tag will also be applied to the submodule mod1
Submodule by definition
Submodules allow foreign repositories to be embedded within a dedicated subdirectory of the source tree, always pointed at a particular commit.
If you will tag your project the tag will not apply to the submodule as well.... |
I have created a submodule in my git repository (repo1) by the following command git submodule add https://github.com/user/mod1. So after adding this command, my repo now contains the sudmodule mod1.
Now I am applying a tag to my repository repo using command - git tag -a baseline -m "tagging baseline code.
I am no... | Do git tags work recursively on submodules? |
From inside the Kubernetes cluster, you can talk to the database by connecting thecockroachdb-publicDNS name. Inthe docs, that corresponds to the example command:kubectl run cockroachdb -it --image=cockroachdb/cockroach --rm --restart=Never -- sql --insecure --host=cockroachdb-publicWhile that command is using the Cock... | I've set up and deployed a Kubernetes stateful set containing three CockroachDB pods,as per docs. My ultimate objective is to query the database without requiring use of kubectl. My intermediate objective is to query the database without actually shelling into the database pod.I forwarded a port from a pod to my local ... | How can I connect to CockroachDB from outside the Kubernetes cluster? |
Finally I find the problem. It's the AllowOverride option in httpd.conf which is located in /etc/httpd/conf/httpd.conf, "sudo find / -name httpd.conf -print" can easily find it.
I changed any AllowOverride NONE->ALL where i can find in the file. It just worked,even without doing any change to .htaccess<IfModule mod_rew... | I installed WordPress on EC2, located in/var/www/html/wordpress. I followed the WordPress guide to copy index.php and .htaccess to root which is/var/www/html, and modified index.php and setting in admin panel. It works pretty well if I stick to only default link, such as:http://www.cubcanfly.com/?p=5, however other per... | Install WordPress in its own directory but permalink fails |
CloudFront provides a easy way to do this, in your distribution configuration go to thecache behaviorscreate a behavior that does only cache *.jpgor if it is in images folder you can set rule to cache requests to that folder alone, its easy as that!but definitelydon't use rewrite rules! then there's no point in using c... | We use Amazon Cloudfront to host all our product images. We set up cloudfront so thatcdn.mydomain.comwill get the images fromwww.mydomain.com.Recently, we have discovered thatcdn.mydomain.comhas been indexed with Google because when we typecdn.mydomain.com, Cloudfront serves full HTML version of our www version.Is ther... | Amazon Cloudfront to serve images only |
Instead of mappinglatandlongas float you shouldgeo-point mapping | I am trying to fetch all the documents within a radius of a particular location (lat,long).Here's the mapping with location as the geo_point:{
"mappings": {
"_doc": {
"properties": {
"color": {
"type": "long"
},
"createdTime": {
"type": "date"
},
"... | Elasticsearch Geo_point query not returning results |
The pod terminated with a non-zero return code (from theexit 1), which is considered a failure. | I am running a CronJob on Kubernetes (version 1.20). These are the relevant details:concurrencyPolicy: Forbid
backoffLimit: 6
- command:
- /bin/bash
- -c
- |
exit 1;
restartPolicy: OnFailureWhen I run the job, the pod that spins up restarts up to six times and then terminates. I describe the job, expecting ... | Why is the pod status for my Kubernetes job not "Failed" when I purposefully ran a command to exit with a non-zero exit code? |
I don't see initialDelaySeconds in the readiness probe. So, I guess that might be the reason the readiness probe is failing. I would set it to the time it takes for the application to come up.initialDelaySeconds: Number of seconds after the container has started before liveness or readiness probes are initiated. Defaul... | We are trying to deploy PingFed in a Kubernetes cluster. We have filesdeployment.ymlandservice.yml, but the pod is throwing CrashBackLoop error after trying to reach the server profile with a readiness probe error. We have tried everything with changing the service type to tinkering with deployment and service YAML fil... | Kubernetes readiness probe failed |
Assuming that's not a real Database URL you've posted and you're using the Heroku Shared 9.1 Beta addon (https://postgres.heroku.com/blog/past/2012/4/26/heroku_postgres_development_plan/ - which is the only shared DB that will let you connect externally you'd just split into the relevant partspostgres://sfbywaqhvj:[ema... | I have deploy a Helloworld django App on Heroku, and a shared database is generated ,My DATEBASE_URL ispostgres://sfbywaqhvj:[email protected]/sfbywaqhvjCan I connect the db through navicat or other local DBMS? THX | Heroku: How to connect the database through navicat |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.