Response stringlengths 15 2k | Instruction stringlengths 37 2k | Prompt stringlengths 14 160 |
|---|---|---|
Amazon Web Servicesoffers severalAWS datacenter Regionsfor most of theirProducts & Serviceswithin theirsteadily expanding global infrastructure, amongst those theAsia Pacific (Singapore) Region(usually referred to asap-southeast-1).Furthermore they do offer even more so called edge locations forAmazon CloudFront, which... | Closed.This question isoff-topic. It is not currently accepting answers.Want to improve this question?Update the questionso it'son-topicfor Stack Overflow.Closed11 years ago.Improve this questionMy portal will be mainly accessed in India and it involves uploading/viewing of images which means good data transfer will be... | Will it be fast if I use amazon web services for India? [closed] |
On most hardware architectures you can only change protection attributes on entirememory pages; you can't mark a fragment of a page read-only.The relevant APIs are:mprotect()on Unix;VirtualProtect()on Windows.You'll need to ensure that the memory page doesn't contain anything that you don't want to make read-only. To d... | if I allocate some memory usingmalloc()is there a way to mark it readonly. So memcpy() fails if someone attempt to write to it?This is connected to a faulty api design where users are miss-using a const pointer returned by a methodGetValue()which is part of large memory structure. Since we want to avoid copying of lar... | Is there a way to mark a chunk of allocated memory readonly? |
You can't, sorry...
AWS do not provide an IP Address that you can add as the Apex A Record. This causes issues using S3, CloudFront, ELB, and API Gateway.If you are using AWS Route53, you can set the Apex A Record as an "alias" to those other services in your AWS account. This is an AWS bespoke service to get around on... | I have the static website hosted on S3 which is displaying correctly using the Amazon s3 link.As per Amazon docs, I created two buckets, example.io & www.example.io. The example.io has the content (files) for the website; the www.example.io bucket is redirecting to the phlo.io bucket.I am trying to configure Godaddy Ap... | Configure domain on Godaddy to Amazon S3 bucket |
You don't need dind to run a docker-compose stack. You can run multiple docker-compose up commands.
acceptance_testing:
stage: test
before_script:
- docker-compose -p $CI_JOB_ID up -d
script:
- docker-compose -p $CI_JOB_ID exec -T /run/your/test/suite.sh
after_script:
- docker-compose -p $CI_JOB_ID... |
I recently got into CI/CD, and a good starting point for me was GitLab, since they provide an easy interface for that and i got started about what pipelines and stages are, but i have run into some kind of contradictory thought about GitLab CI running on Docker.
My app runs on Docker Compose. It contains (blah blah) t... | How to push multiple images needed for docker-compose to GitLab registry in GitLab CI? |
+50As you said thatGoogle Photo Backupdo the (upload) job, in my opinion the best way then is to use directly aGoogle Apps Scriptstored inside yourGoogle Drive(running periodicaly) in order to push each new detected pictures inside a particular album.If you need relative documentation, you may take a look at thealbum c... | I'm trying to automatically upload JPG photo files from a particular directory on my computer to a particular album on Google Photos. I'd like the photos to periodically get pushed up to Google Photos (every day or so is frequent enough). Google Photos Backupalmostdoes what I want, but it just uploads the files -- it d... | Automatically upload photos to a particular Google Photos album |
You cannot change variables in a different process like that. Probably the nearest you can do is to use a file, something like this.Incrontab:* * * * * /bin/date > /tmp/value.txtIn some other script:#!/bin/bash
while :; do
v=$(cat /tmp/value.txt)
echo $v
sleep 1
done | This question has boring me a whole day...I want to modify root's environment variables $bai automatically, and I write a shell script and add it to root's crontab. but $bai is not changed.here is my script /root/111.sh:#!/bin/bash
time=`date`
export bai=$timehere is the crontab:*/1 * * * * . /root/111.shThenecho $bai... | Use crontab job to modify global environment variables |
No, there isn't. GitHub doesn't garbage-collect objects by default, so the size of the repository it has on disk may contain many objects which are not used. As a result, GitHub can't know until it serves a request what data it has on disk will be used to satisfy that request and how it will be deltified and compres... |
For getting the size using github api, I'm able to do a curl and extract size from it as below.
curl -H "Authorization: token <token>" https://api.github.com/repos/<org>/<repo> | jq | grep size
But, when I do mirror clone of that repo and do du -sh . in the repo directory, I see different value.
What am I missing her... | Is there a way to get repo size of a mirror clone using github api? |
I've been using EBS snapshots to back up my MySQL data dir for more than a year. It's been working perfectly. I've never had a problem using these snapshots as the basis for a replacement (or cloned) MySQL setup.Best practice is to format the EBS volume with a filesystem that allows freezing, such as XFS. This allows y... | What are your experiences using Amazons EBS snapshot features for MySql hot backups.I have a database running a batch processing job in ec2. I backup with EBS snapshot. So far the backups looks consistent. But I am afraid they "will stop being consistent as soon as I stop checking" (Uncertainty principle).What are your... | Using Amazon's EBS for MySQL hot backup |
This is a workaround by adding a custom attribute during passwordless loginActually, the authenticationUser function needs to identify whether the user is adding email or phone during loginStep 1: during login process, before calling initiateAuthCommand, First set a custom attribute in Cognito user object - logged_in_b... | We have implemented the Custom Auth Triggers as describedhere. We have the user pool set up to let users login with either phone number or email.The problem I am having is determining what medium (email or phonenumber) the user signed in as. I am usingCognitoIdentityServiceProvider#signUpto reg / login a user.When obse... | AWS Cognito - How to determine if a user signed up with email or phone number |
1
I think you probably are passing the JVM arg successfully - you could try running ant with -verbose to confirm. It seems likely that the issue though is with the the use of the jar attribute.
According to the Ant java task docs (see also):
When you use this option, the ... |
We're working on a java project and we use ant to build and run the program. Now we are doing some performance tests and we wanted to use classmexer. The problem is that we can't get ant and classmexer work together.
Since it's necessary to pass to the jvm the argument
-javaagent:classmexer.jar
we have tried the foll... | Make classmexer and ant working together |
3
Well, local vairables just work differently then global/static ones.
Local vairables are "allocated" on the stack, which in turn is a chunk of memory allocated by the system for your running program. There's a "pointer" held by the CPU that points into that stack, called ... |
I have recently came across a text "Deep C Secrets" that discusses about compiler resolving variables at compile time. This is possible for global and static variables as they occupy space till the end of the program but what is the case with local variable which gets space on stack? Do they get space allocated at run... | Does compiler knows relocatable address of local variables |
3
If I click the button once, it creates that a DOM tree under that ul element, and then assigns it to the global detachedNodes variable (i.e. detachedNodes will reference that object in memory).
If I click it again, it'll assign a new ul element tree to detachedNodes, but ... |
UPDATE: I guess I have to assume my understanding is right(probably, but if you have a better explanation, please let me know), it just needs to take a little more time for Chrome to GC the detached DOMs(I do not know how long it should take, a lot of times it does not GC at all for pretty long time)
All:
I am prett... | How this memory leak caused? |
I was in a similar situation with a webserver environment. The typical size of the uploads were ~150k rows and it wouldn't have been good to consume a ton of memory from a single request. The Apache POI Streaming API works well for this, but it requires a total redesign of your read logic. I already had a bunch of rea... |
I have a large .xlsx file (141 MB, containing 293413 lines with 62 columns each) I need to perform some operations within.
I am having problems with loading this file (OutOfMemoryError), as POI has a large memory footprint on XSSF (xlsx) workbooks.
This SO question is similar, and the solution presented is to increas... | How to load a large xlsx file with Apache POI? |
Let me show you a common pattern for cross-application authentications you can use with Nginx:1) Build standalone service called auth_service, work independently from the web applications as required2) Each subdomain apps will have an individual location that proxies to the same authentication servicelocation = /auth {... | I'm building an ecosystem of applications under a common domain, with each application under a separate subdomain. I have built an authentication application for the ecosystem, but it requires each other application to be specially configured to use it. Is there a way to configure nginx to manage user sessions, possi... | How can I set up an automatic authentication layer in nginx? |
If you have deleted the remote one, on GitHub, and created a new empty one (still on GitHub), you can redirect your existing local commits with:
cd /path/to/existing/local/repository
git remote set-url origin https://github.com/MyAccount/MyNewRepo
git push
|
I had a reactjs project which I had already uploaded to a GitHub repository, with git init, git add ., git commit and push.
I deleted this repository and created another one where now I want to make the commits in this new one.
How can I do this?
| Upload project to different repository |
Seems to be no. There is no way to restore rman backupset from Linux to Windows directly.
|
I have copy of backup set (level 0 and level 1 incremental backups) from Oracle 11g running on Linux.
Can I restore data from this set on other machine which running Windows without connection to source database?
| Can I restore data from copied backup set in Oracle? |
GitHub associates your username with a commit by the email addresses associated with your account. So if the commit email address is associated with a GitHub account, that account will be used. If there's no account associated with that email, the full name as listed in the commit will be used instead.So you can eith... | Most likely an easy question here. When I share a github link, my full name is displaying in the bar that contains the commit message. I would like to change that to be just my username. I've been over the settings and I can't seem to find where to change that in the display.Is it pulling my name from the origin and if... | How can I prevent my name from showing up in github commit messages? |
Why does it not crash?Because the objects in question areobject literals, which are treated somewhat differently. Basically, such objects are never deallocated. SeeObjective C NSString* property retain count oddityfor a full explanation.If you change the second line like this:[array addObject:[stringWithFormat:@"1"]];y... | This question already has answers here:Objective C NSString* property retain count oddity(9 answers)Closed10 years ago.The following code should crash under "Manual reference count" since the objects inside the array are getting released twice. Why does it not crash?NSMutableArray *array = [NSMutableArray array];
[arra... | Objective C - Crash due to double release? [duplicate] |
You will need to do it manually.
There are probably two different core-problems here:
A: holding your training-data
B: training the regressor
For A, you can try numpy's memmap which abstracts swapping away.
As an alternative, consider preparing your data to HDF5 or some DB. For HDF5, you can use h5py or pytables, bo... |
I'm trying to analyze text, but my Mac's RAM is only 8 gigs, and the RidgeRegressor just stops after a while with Killed: 9. I recon this is because it'd need more memory.
Is there a way to disable the stack size limiter so that the algorithm could use some kind of swap memory?
| Python - go beyond RAM limits? |
The expiry duration is the time between an entry is stored in the cache (e.g. via put or a get() and read through) until the entry is considered expired. Expired entries are no longer valid and not returned any more by the cache. Whether an expired entry is removed from the internal cache data depends on other configur... | I can't find an answer in the API docs, that's why I'd like to ask here:Given I have a cache2k cacheimport org.cache2k.Cache;
import org.cache2k.CacheBuilder;
import java.util.concurrent.TimeUnit;
....
Cache<String, Integer> cache =
CacheBuilder.newCache(String.class, Integer.class)
.expiryDuration(1, TimeUnit.M... | Does cache2k put() update the expiry time |
RIPZoneDataAlloc is apparently responsible for a high amount of memory allocations, especially those that deal with UIColor's colorWithPatternImage: method, which is known to be a memory hog.
10mb is a perfectly reasonable amount of memory consumption for an application. I have a fairly complicated app that consumes ... |
I have an RSS reader-type app that I'm running through instruments and I'm seeing alot of allocations from RIPZoneDataAlloc:
What does RIPZoneDataAlloc do exactly?
Also after maybe a dozen page transitions including alot of UIWebViews, I'm seeing almost 10mb live bytes. If I run leaks I see trivial leaks. Does 10mb ... | iOS memory allocation issue & RIPZoneDataAlloc |
In most cases, Lambda functions are triggered within half a second after you make an update to a small item in a Streams-enabled DynamoDB table. But event source changes, updates to the Lambda function, changing the Lambda execution role, etc. may introduce additional latency when the Lambda function is run for the fir... | We are experimenting with a new serverless solution where external provider writes to DynamoDB, DynamoDB Stream reacts to a new write event, and triggers AWS Lambda function which propagates changes down the road?So far it works well, however, sometimes we notice that data is being delayed e.g. no updates would come fr... | How "Real-Time" DynamoDB stream is? |
SeeRuntime Configurationin theDancer::Plugin::Databasedocs:You can pass a hashref to thedatabase()keyword to provide configuration details to override any in the config file at runtime if desired, for instance:my $dbh = database({ driver => 'SQLite', database => $filename });You're adding a->, which causes an error. Th... | I'm new to Dancer, but I'm trying to configure it to work within a Docker container. As a result, I need to pick up my database settings from the environment.In my case, I haveDB_PORT_3306_TCP_ADDR, andDB_PORT_3306_TCP_PORTcoming from Docker. Unfortunately, theDancer::Plugin::Databasemodule is erroring before I can c... | Configure Dancer from environment variables? |
You can scale a statefulset in different ways:kubectl scale --replicas=1 statefulset/my-set
kubectl scale sts my-set --replicas=1
kubectl patch sts my-set -p '{"spec":{"replicas":1}}' | I used this command to start my statefulset:kubectl scale statefulset my-set --replicas=1But pod is not running.How could I start pod with existing stateful set "my-set"? | How to run pod with existing statefulset in kubernetes cluster? |
4
You can do this by changing file location in docker.
You can go to Preferences->Advanced, and under the storage path change the location to your external hard drive.
View the screenshot for reference
Share
Follow
... |
I'm using docker on my macbook air which unfortunately has quite limited hard drive space (120gb).
Was wondering how I could store containers on my external drive instead of the default (which I believe is /var/lib/docker/) ?
EDIT: It is in fact not /var/lib/docker - when using boot2docker I believe the files are stor... | Storing local docker images on External HDD boot2docker |
Basically, SonarQube server accepts reporting in a certain format and hence you could upload different reports to SonarQube server. JaCoCo exec-files can also be uploaded into SonarQube server.You could get good set of stepshere. | Does Sonar use Jacoco plugin for the code coverage?? Or is it possible if Sonarqube can handle independently the code coverage without using the jacoco plugin?? | Does Sonar use Jacoco plugin for the code coverage |
The interpolation is the step Fragment ProcessorAlgorithm is very simple they just interpolate the color according to their UVShareFollowansweredFeb 22, 2014 at 7:38SungSung1,04611 gold badge88 silver badges2323 bronze badgesAdd a comment| | I know using a very simple vertex shader likeattribute vec3 aVertexPosition;
attribute vec4 aVertexColor;
uniform mat4 uMVMatrix;
uniform mat4 uPMatrix;
varying vec4 vColor;
void main(void) {
gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);
vColor = aVertexColor;
}and a very simple fragment sha... | Fragment shader color interpolation: details and hardware support |
TheloadBalancerservice type require a cloud provider's load Balancer (https://kubernetes.io/docs/concepts/services-networking/service/)LoadBalancer: Exposes the Service externally using a cloud provider's load balancer. NodePort and ClusterIP Services, to which the external load balancer routes, are automatically creat... | I am trying to deploy a docker image which is in public repository. I am trying to create a loadbalancer service, and trying to expose the service in my system ip address, and not 127.0.0.1.
I am using a windows 10 , and my docker has WSL2 instead of hyper-v.Below is my .yaml file. So, the service inside will run in po... | Unable to expose docker LoadBalancer service |
I've managed to fix it by myself, it's a library bug.
If someone has the same problem, you have to add the following additional IF statment at line 110 of BasicNetwork.java
// If request method is HEAD, there is no need to allocate
// memory
if (request.getMethod() == Request.Method.HEAD) {
responseContents = ne... |
Regarding Volley library for Android:
If I make a lot of HEAD requests, my device will quickly run ouf of memory.
The reason why this happens seems to be that Volley allocates memory based on Content-Length even in HEAD requests, for example at row 212 of BasicNetwork.java.
new PoolingByteArrayOutputStream(mPool, (... | Volley memory leak on HEAD requests |
If the images are not loaded when you call them, jQuery will return an empty object. Move your assignment inside your document.ready function:
$(document).ready(function() {
var $one = $('#image1');
var $two = $('#image2');
animate1();
animate2();
});
// ... etc.
If you need to cache them for later u... |
I need to cache about 100 different selections for animating. The following is sample code. Is there a syntax problem in the second sample? If this isn't the way to cache selections, it's certainly the most popular on the interwebs. So, what am I missing?
note: p in the $.path.bezier(p) below is a correctly declared o... | How do I cache jQuery selections? |
Sounds like you are trying to do something that can only be run in RStudio. Maybe one of you functions is trying to call a fucntion that can only be run in RStudio, for example one of the functions fromhere?In that case, as suggestedhere, you can make the behavior of your script dependent on whether it's run in Rstudio... | My R script works as intended when I run it on its own, but when I try to run it as a cron job, it keeps failing sayingError: RStudio not running
Execution haltedThis is the log file for the cron job.Loading required package: methods
Attaching package: ‘lubridate’
The following object is masked from ‘package:base’:
... | Cron job for an R script failing |
Append somethign to the URL as parameter, e.g.myresource.css?version=1. The file will be servered correctly, that's a trick to force reloading the cache. You only need to generate the html page dynamically.ShareFollowansweredJan 12, 2010 at 17:04ewernliewernli38.3k55 gold badges9393 silver badges123123 bronze badges3+1... | I have a quite troublesome issue which I didn't find a good solution for yet.I allow caching of all my application static files (JS, CSS and images) by browser for performance.Problem is, when I'm doing upgrades, the users still use the old version from their cache, which often breaks the application, and requires clea... | Preventing browser caching on web application upgrades |
Every pod has its own networking setup so two replicas (i.e. two pods) can both listen on the same port.Unlessyou've enabled host networking mode which should not be used here.Not directly, the ingress controller can be a lot of things. If you're using a self-hosted one (I see the ingress-nginx tag so assuming you are ... | I'm new to DevOps work and am having a though time figuring out how the whole final architecture should look like. My project currently runs on a single Kubernetes Cluster and a single node with a single pod, in the very common Nginx reverse proxy + UWSGI Django app. I have to implement a scaling architecture. My under... | K8s: how to deploy multiple Django services inside the same node |
You have two options
- Use the automatically generated certificates if you have installed k8s with kubeadm
- Create your own certificates.Once you have the certificates, you can follow these steps to manually configure themhttps://kubernetes.io/docs/setup/certificates/#configure-certificates-manuallyTo create your own ... | When we setup a kubernetes master using kubeadm init . At the end of the procedure we have to copy the /etc/kubernetes/admin.conf to $home/.kube/config .When I opened the file , I found the below details .certificate authority dataclient certificate dataclient key dataI am aware the file is used for authentication when... | How does KubeConfig file is used? |
1
It is a bit of a crummy explanation. I'll give you a rough edition.
var o = {
a: {
b:2
}
};
// 2 objects are created. One (the value of the property named "a")
// is referenced by the other (the value of the variable named "o")
// as its property.
// The other (... |
I'm new to JavaScript and trying to understand the memory management related to objects using this Mozilla reference: MDN Memory Management.
I am following an example, but having issues in understanding the references.
var o = {
a: {
b:2
}
};
// 2 objects are created. One is referenced by the other as one ... | Understanding Memory Management in JavaScript, Mozilla |
Are these error coming from automatic health check performed by Load
balancer or some one trying to hack my aws instance system?
The load balancer is certainly not going to be setting the HTTP_HOST header to values like "check.proxyradar.com" and "testp2.czar.bielawa.pl" so I think we can definitely rule out the E... |
I have deployed my Django application at AWS Elastic Bean Stalk server. Now I am getting too many invalid http host error from different IP addresses including localhost and http as following
SuspiciousOperation: Invalid HTTP_HOST header (you may need to set ALLOWED_HOSTS): 172.31.0.67
SuspiciousOperation: Invalid HT... | Django in Elastic BeanStalk getting too many Invalid HTTP_HOST header errors |
Try to replacessl=SSLbyssl=1[Edited]It has now been documented athttps://docs.bitnami.com/general/apps/redmine/#how-to-convert-incoming-email-to-issues-in-redmine | I am running below rake command to read email using IMAP from use_redmine.bat in which my working directory is \Bitnami\redmine-3.4.2-0\apps\redmine\htdocs> and the command isCALL C:\Bitnami\redmine-3.4.2-0\scripts\setenv.bat
cd C:\Bitnami\redmine-3.4.2-0\apps\redmine\htdocs
CALL rake redmine:email:receive_imap RAILS_E... | Rake abort! while trying to read email from gmail server using IMAP |
You probably need to use an absolute path on 'somefile.php'. It is probably getting created in the pwd of cron. Or you could do a chdir at the beginning of the script of in the cron statement. | I'm experiencing some problems withob_*function when it runs as a cronjob:<?php
function getLayout($file, $extract=array()) {
if (is_file($file)) {
if (count($extract) > 0) {
extract($extract);
}
ob_start();
include $file;
$contents = ob_get_contents();
... | PHP ob_* from cronjob? |
You can use thetimestamp()function in combination withhour()andday_of_month()to filter for samples falling within a given hour/day; or in combination withtime()to filter for samples falling within the current hour/day.Here's a brain teaser to get you started:up{job="prometheus"} + ignoring(year, month, day_of_month) gr... | I would like to have aggregates from specific time ranges. E.g. hourly, daily, but hourly to be from e.g. 09:00-10:00 (tumbling window), not 1h ago (hopping window).That would be possible if we could substract counters offsetted by variable time, e.g.:x_count offset (minutes()m) - x_count offset ((minutes()+60)m)but of... | Prometheus tumbling window aggrgeates |
Not sure what you mean by time series vector vs. scalar. Prometheusdefinesthe concepts ofinstant vector, e.g.up{instance="foo"}: (1, t1), up{instance="bar"}: (0, t1);range vectors, e.g.up{instance="foo"}: [(1, t0), (1, t1)], up{instance="bar"}: [(0, t1), (1, t2)]; andscalar, e.g.5.sum(increase(http_request_duration_ms_... | I want to get total number of request in a time interval as scalar values.I have tried various solution but all give me back a time series vector. I want a single value. Does any one know how to do that.I have tried. sum(increase(http_request_duration_ms_count[1m]))) orhere | How to get total request within a time range as single scalar value in prometheus? |
After having imported crontab try :crontab.SYSTEMV = TrueShareFollowansweredSep 22, 2017 at 15:51LoïcLoïc11.9k11 gold badge3333 silver badges5050 bronze badges0Add a comment| | I am working with python crontab, and have the ability to save crontabs for specific users.However the python crontab package is saving crontabs with keywords (i.e @hourly rather than 0 * * * *). I want to save without keywords as we have a couple scripts that run on the current format of our crons.I searched through ... | Save Python Crontab without Keywords |
0
I haven't found a direct solution, but one could mirror the svn repo to GitHub and trigger a rebuild from there.
Share
Improve this answer
Follow
answered Dec 16, 2019 at 12:23
RainerRain... |
Is it possible to run travis-ci using a svn repo the same way as github is used?
It seems that I can only trigger a rebuild when there is a push to github - but would it be possible to setup a script which triggers a push or a rebuild whenever the svn repo has changed, or mirror the svn repo automatically to github? ... | Automatically run Travis-ci with svn repo? |
9
Old question, but for future reference:
Make sure you did setup a push remote. It worked for me when I got both the Cannot get remote repository refs-problems ("... Passphrase for..." and "Auth fail" in the "Push..." dialog).
Provided that you already:
Setup your SSH key... |
I followed the steps from Egit user guide, but I get an error message with auth fail.
What I do:
I have copied the public key from Window > Preferences > Network Connections > SSH2 > Key Management to GitHub under account settings
Then I do
Team > Push...
I enter the [email protected]:.... uri and click next. But then... | Problems with pushing to github repository from Eclipse: Auth fail |
Try:sudo ufw allow 8000Not:sudo ufw 8000 allow | I am running an ubuntu 16.04 cloud VPS server. I've set up a venv and activated it, and installed django.
I run the server withpython3 manage.py runserver 0.0.0.0:8000I am trying to access this application from a remote computer (not inside the same LAN); I'm trying to make the application visible to the world outside ... | Django Application running on Ubuntu VPS: This site can’t be reached |
1
The node process needs to be restarted every time you change files for them to take effect, your volume mount is correct.
Execute this to enter your container:
docker exec -ti <your-container-name> /bin/bash
and then navigate to your files (cd /www) - You should see the ... |
I have simple express app that I created in my host and mount with volume to the running container:
docker run -d -p 80:8080 -v $(pwd):/www -w "/www" node
When I change my code in the host and refresh the web page, the changes not reflected in the browser.
What am I doing wrong?
| Docker node express volume changes in the host not reflected in the container |
You need to make sure your post titles (i.e. the URL-encoded versions) are unique. You can then set up your .htaccess using mod_rewrite:RewriteEngine On
RewriteRule ^(.*)\.html$ more.php?book=$1And ensure your PHP script usesPDOto avoid SQL injection:$db = new PDO('mysql:dbname=my_db;host=127.0.0.1', 'user', 'password'... | I have page www.mysite.com/more.php?book=1
and I want create link like www.mysite.com/book-title.html
How I can do that?In my page www.mysite.com/more.php?book=1 I generating url like this$res = mysql_query("SELECT * FROM book WHERE id_book={$_GET['book']}");
while ($rw = mysql_fetch_object($res)){
$title = strtol... | how i can rewrite url with my page title |
It is working when doing like this..
using (MemoryStream ms = new MemoryStream())
{
serializer.Serialize(ms, data);
ms.Position = 0;
XmlReader reader = XmlReader.Create(ms, schemaReaderSettings);
}
|
I am getting an OutOfMemoryException when calling ToString on my StringWriter:
StringWriter stringWriter = new System.IO.StringWriter();
XmlSerializer serializer = new XmlSerializer(typeof(T));
serializer.Serialize(stringWriter, data);
string xmlString = stringWriter.ToString(); // <-- Exception occurs here
How can I... | OutOfMemoryException at StringWriter.ToString() |
Restarting the current activity all of a sudden is not going to be a great User experience.
If possible try clearing Images from memory that are not not shown to the user(so it releases memory that it has occupied).If still you want to restart the current activity, use the following:void restartActivity()
{
Current... | I have an App, where I load images from a server. Because of this my app leads to Outofmemory Error.
I have caught the exception so that my app is now prevented from being force closed. But my app stops loading images in the place where the exception has occurred. So is there a way I could restart my activity after th... | How to restart an activity after an exception has occured |
Git itself doesn't provide file manager integration (and in fact neither does Mercurial).You've asked for a feature from TortoiseHg, a graphical tool built on top of Mercurial that provides integration with Windows Explorer. There are several similar tools for Git, each with slightly different features, but I suspect y... | In tortoisehg if a directory is not synched with the repository, the folder icon adds a red exclamation mark. If the folder is synched it displays a red check-mark (image below). How to active such a feature for git?I am using git now and if the files of the folder are not synched it does not change the folder icon at ... | How to make git change folder icon if the contents are not synched |
Yes, strictly when you use delete[] the static type of the pointer that you delete[] must match the type of the array that you originally allocated or you get undefined behaviour.
Typically, in many implementations, delete[] called on a void* which is actually an array of a type that has no non-trivial destructor work... |
Is it true that the following yields undefined behavior:
void * something = NULL;
char * buffer = new char[10];
something = buffer;
buffer = NULL;
delete [] something; // undefined??
Do I first need to cast something to char * ?
| Undefined behavior on deleting char array trought void * |
The -m switch is considered only if there are uncommitted changes in the working directory.
And if there are changes in working directory, the result is not an automatic merge of content, but rather a merge conflict.
|
Please consider a git repo with a single file file.txt. that contains a single word: "something" (no quotes). Then, git add and git commit (hash, let's say, 111a) the new file. Here is my master. Tag: v1.0.
Modify file.txt by adding new line "else" (no quotes). git add and git commit (hash 111b). Tag: v1.1.
Modify fil... | Merging with git checkout |
1
There are various options available.
The newest version of the spec includes an address parameter for http-01. You can use it, so the validation authority will choose that address to verify the domain ownership. I don't know if that's already implemented in Boulder, the... |
I configured NGINX as a reverse proxy and also use it to handle HTTPS with Let’s Encrypt. Well, Let’s Encrypt certificate is about to expire within 3 months and administrator needs to configure to renew it automatically in a production environment.
This scenario works well for a single instance. But what about if I w... | Renewal Let's Encrypt certificate in multiple NGINX reverse proxy instances |
Another option would be going for a horizontally scalable, distributed Prometheus implementation:https://github.com/weaveworks/cortex(NB I wrote this.)Its not ready for prime time yet, but we're using it internally and getting pretty good results. It will be more effort to setup and operate than upstream Prometheus, b... | I have reached moment when I need to split my prometheus into smaller ones.
I have been reading about itherebut it does not say anything about scaling in kubernetes. Below is my setup:one node of prometheusone node ofkube state metricsnode exporteron each cluster nodeand there are about 50 namespaces which produces tho... | How to scale prometheus in kubernetes environment |
I've written a Python script to migrate issues. It's at https://github.com/ttencate/sf2github.
Beware: Sunday afternoon software. Use at your own risk, etc. etc. Pull requests welcome!
|
I'm thinking about migrating a project from Sourceforge to Github. Besides the svn to git, what about migrating things like the issue tracker? Is there an easy way to do that?
| Migrate from Sourceforge to Github |
Try:curl https://my.example.com --cert client.crt --key client.key -k -v -o /dev/nullto see the headers -- you can then see what it is redirecting to. A possibility is that it's redirectinghttps://my.example.comtohttps://my.example.com/ | I am trying to test mTLS but I am getting 302 when I curl the host defined in ingress resource.$ curl https://my.example.com --cert client.crt --key client.key -k
<html>
<head><title>302 Found</title></head>
<body>
<center><h1>302 Found</h1></center>
<hr><center>nginx</center>
</body>
</html>Here's the ingress:kind: In... | Kubernetes NGINX Ingress Controller - 302 error |
The problem of out of memory exceptions is the loading of the images. The Adapter shouldn't have a problem in populating itself in a ListView.
In a business application I am loading a ListView with 9000 records with 2 TextViews in each row. So I guess the size of the data should not be a problem.
Use an AsyncTask to f... |
I am having an activity with a listview in it. The listview is populated from a large XML pulled from a server.
My scenario usually is to have a SAX parser, parse the XML and return a Vector(or similar structure) with the parsed data.
The problem is that the xml is too big and the Vector has too many elements which c... | Populate ListView from large XML |
Yes, you need to keep the nodes updated. But this has recently became easier with the newBottlerocket- container optimized OS for nodes in EKS.Updates to Bottlerocket can be automated using container orchestration services such as Amazon EKS, which lowers management overhead and reduces operational costs.See also the b... | Let's say we're using EKS on AWS, would we need to manually manage the underlying Node's OS, installing patches and updates?I would imagine that the pods and containers running inside the Node could be updated by simply version bumping the containers OS in your Dockerfile, but I'm unsure about how that would work for t... | Do you need to manage Node level OS updates when using Kubernetes? |
4
There is not currently a trigger that would allow you do this. However, there is a feature of GitHub's branch protection rule intended to solve this problem: When selecting to "Require Status Checks to pass before merging" there is the additional option to "Require bra... |
Is it possible to trigger Github Actions workflow when the base branch of the pull request has new code pushed?
Details with example: the pull request branch is feature1 and the base is development, so is it possible to trigger workflow on PR for feature1 branch when the development branch updated with new code after ... | How to rerun Github Actions workflow when the pull request base branch updated |
After not finding any answer to this on StackOverflow I scoured some other resources. You need to specify the proxy using driver opts, but you need to specify the IP of the bridge, e.g.docker buildx create --use --driver-opt env.http_proxy=172.17.0.1:3128 --driver-opt env.https_proxy=172.17.0.1:3128 --driver-opt '"env.... | My organization uses a http/https proxy. Traffic to the internet must be routed via this proxy.We're adding multi-architecture support to our jenkins pipelines which build and push the docker images. The HTTP_PROXY and HTTPS_PROXY environment variables are set for docker and working for a regular docker build, but when... | Running BuildKit using docker buildx behind a proxy |
If you use basic authentication with http you are basically sending your username and password unencrypted over the wire. So to answer the question: No your current approach is not secure. You should buy a ssl certificate or look into Lets encrypt if you dont want to buy another certificate again. | I have small website project on a managed hosting server where https is used.Now I would like to know if it is still secure to use a http subdomain (without https) in combination with a basic auth restriction defined in .htaccess. I have only one security certificate that is used for the main website. Shell I buy a se... | Basic Auth for subdomain without https or shall I buy a second ssl certificate for subdomain? |
You say that you are the only one who push on that repository, but Github tells you that your head is older (behind) the remote one.
Before of all, I suggest you to inspect the remote history to check if somebody (?) pushed something else.
If you will discover some remote changes you should do a git pull with a rebase... |
I have an online repository on which I am the only person that can push commits, and there are no more branches than the main one. I have been working on it these days, and pushed commits without an issue, including folders and files etc.
Except today, when I try to push changes to update the repository with the lates... | Pushing changes to Git repository results in 'Updates were rejected' error, how to fix it? |
You might findmirrorduseful. It lets you run a local process in connection to a remote Kubernetes cluster, so that you can iterate on a one or two components locally while having everything else running in the cloud. | I'm a MEAN stack developer who primarily works on basic development tasks. I've recently started using Kubernetes, Docker, and microservices for my projects. However, I've encountered performance issues on my local machine when trying to balance the load. To address this, I've purchased a cluster on DigitalOcean.My que... | Optimizing Performance: Developing MEAN/MERN Stack Applications with Remote Clusters and Skaffold |
AWS:The certificate, private key, and certificate chain must all be PEM-encoded.I have 2 files from GoDaddy (some_hex_chars.crt and
gd-g2_iis_intermediates.p7b) how should I put these 2 files in the
above command?some_hex_chars.crt= Certificate bodygd-g2_iis_intermediates.p7b= Certificate chainThe private keyyou cr... | I am followingthis guideand want to upload my SSL Certificate to IAM (on AWS).The guide says:To use the following example command, replace these file names with
your own and replace ExampleCertificate with a name for your uploaded
certificate. Type the command on one continuous line. The following
example include... | How to upload a SSL certificate to IAM |
Assuming you know the number of elements to be stored on a GPU you can easily compute the amount of memory required to store those elements.
A simple example:
import numpy as np
import theano.tensor as T
T.config.floatX = 'float32'
dataPoints = np.random.random((5000, 256 * 256)).astype(T.config.floatX)
#float32 data ... |
I am experimenting with different Theano models and use a curriculum of ever increasing sequence length. How can I predict ahead of time how big to make the batch size for any given sequence length and model in order to fill the GPU's memory?
To make matters worse, if I ever accidentally use too much memory, I get a ... | How to calculate GPU memory usage in Theano? |
The only way you could do this would be by having aDockerfile.herokufile which contains:FROM Then, inheroku.yml:build:
docker:
worker: Dockerfile.herokuWith this process, Heroku will always build from source. But it will do so by pulling the image from DockerHub, discarding everything else.There is no way to use... | I want to create a 'Deploy to Heroku' button for an open source project. When the button is clicked, I want Heroku to deploy the latest image from Docker hub. How can I achieve this via myapp.jsonmanifest?Theapp.json schemaallows me to set"stack": "container"to specify that I want to run a container, yet all I have bee... | How can I run a Docker Hub container on Heroku via app.json? |
The line from the error log is very informative in my opinion. It says the connection was refused by the upstream, it contains client IP, Nginx server config, request line, hostname, upstream URL and referrer.
It is pretty clear you must look at the upstream (or firewall) to find out the reason.
In case you'd like to ... |
I have a Python Tornado server sitting behind a nginx frontend. Every now and then, but not every time, I get a 502 error. I look in the nginx access log and I see this:
127.0.0.1 - - [02/Jun/2010:18:04:02 -0400] "POST /a/question/updates HTTP/1.1" 502 173 "http://localhost/tagged/python" "Mozilla/5.0 (X11; U; Linux... | How do I debug a HTTP 502 error? |
There is not a way to update the backend authentication via the management console, but you can use the command line interface to do this.The process is documented athttp://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/config-backend-auth.html, in the "Using the Command Line Interface" section.The link... | How do I update the certificate used for backend authentication in my AWS elastic load balancer?I can't find anything in the AWS console or docs that explains how to do it. | How do I update the certificate used for backend authentication in my AWS elastic load balancer? |
Start your Vault server with the following command:vault server -dev -dev-listen-address="0.0.0.0:8200"You can also specify the address via theVAULT_DEV_LISTEN_ADDRESSenvironment variable.Documentationhere | I have a Hashicorp Vault server running on an AWS EC2 instance at 127.0.0.1:8200.In my Security Group's inbound rules, I have TCP 8200 enabled. But, I can't access Vault server from my local machine. I think it's because dev server is only available from inside EC2 instance (because it's running at 120.0.0.1, am I righ... | Is it possible to start Vault dev server on 0.0.0.0 instead of 127.0.0.1? |
I had the same problem. In your Apache's httpd.conf uncomment below lines and then restart Apache.#LoadModule deflate_module modules/mod_deflate.soAlternatively you can update your .htaccess compression section as displayed below:<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterB... | here i am going to maintain the website .. where i transfer the whole file of site from server to localhost.. but website is not showing in the list of localhost...
What can be the issue?? Is this issue of .htaccess??? my .htaccess has ..#Options +FollowSymlinks
RewriteEngine On
Options -Indexes
#RewriteBase /
#Rewrite... | Project folder is not showing on localhost project list |
4
What you are seeing is that origin/master is currently pointing to the bottom commit 37e0e292, while HEAD is pointing to the latest top commit 532d55b8. All this means is that since you have synched your local branch with the remote, you have made three additional local ... |
I pushed some project files to a repository on GitHub by using GIT from the command line. I modified them and added a new file on my local folder. I commit it (I did git add newFile and git commit -m "some text"), therefore there's nothing more to commit now and the working tree is clean. I typed Git log and got the f... | Which is the difference between HEAD and Origin on GIT? |
MySQL has aperformance_schemanamed database default. It can be usefull for you. If it not exists on your server try to turn on this feature. Here's a description:http://dev.mysql.com/doc/refman/5.5/en/performance-schema-quick-start.html | I have a 25 million row MySQL 5.6 table. I'm in the process of refining my indexes on the table. When I execute a simple query the first time it takes 10 seconds and it only takes 0.1 seconds every subsequent time. When I filter on a different key the execution time jumps back up to 10 seconds.This behavior tells me I'... | How do I prime MySQL so I can benchmark the performance of my query / index? |
28
Elastic Beanstalk looks in this folder for configuration files regarding which logs to tail:
/opt/elasticbeanstalk/tasks/taillogs.d/
On my box there are a handful of files there
[ec2-user@ip taillogs.d]$ ls -al
total 32
drwxr-xr-x 2 root root 4096 Sep 27 05:49 .
drwxr... |
When I request the log files for an elastic beanstalk environment either through the web interface or "eb logs" I get the contents of the log files /var/log/eb-version-deployment.log, /opt/python/log/httpd.out, /var/log/cfn-hup.log, and several others.
Is there a way to add an additional log such as test_output.log t... | Can I add custom log files to the logs captured by elastic beanstalk's 'eb logs' command? |
Perhaps --gc-sections together with --print-gc-sections and/or --print-map-discarded?
If everything is in separate sections, then you have all your sections as input, and list of discarded sections. Then simple script shall produce list of used sections, their size and file mapping.
|
Recently I meet a problem when trying to link my program. It report .text can't fit in specified memory region. Obviously the source code grows too large to be linked in limited memory region.
What I want to do now is to analyze which file contribute most significantly to the ".text" section so that follow up code opt... | GCC Linker : how to generate a report of per file contribution on output sections |
Ok I just found out how I can get the information that I want.public void certInformation(String aURL) throws Exception{
URL destinationURL = new URL(aURL);
HttpsURLConnection conn = (HttpsURLConnection) destinationURL.openConnection();
conn.connect();
Certificate[] certs = conn.getServe... | I am trying to get and read a certificate only in Java. What code or examples should I look at to get the certificates of a website.For examples the websites:https://google.comhttps://www.ssllabs.com/Do I use the URL class?URL url = new URL("https://google.com"); | How to get the Certificate Information in Java |
Like the Tree explainer, the GPUTree explainer is specifically designed for tree-based machine learning models, but it is designed to accelerate the computations using NVIDIA GPUs.sourceTo run it, one needs:shappackageinstalledon a machine with a GPUMachinehavinga GPU at runtime.Otherwise, tryKernelExplainer, which you... | AWS databricks GPU instances seem only to offer the CPU version of the shap library. Following thedocumentation, I can replace it with the GPU version (finishes without errors). Unfortunately when using it on a single dummy sample, it throws the unhelpfulConnectException: Connection refused (Connection refused) Error w... | How can I use GPUTree (the shap explainer) on AWS databricks? |
I posted a ticket with the corefx team here (which I have now closed):https://github.com/dotnet/corefx/issues/35163The exception was caused by the file actually containing a chain of certificates (it contained multiple-----END CERTIFICATE-----markers) - the underlying Interop doesn't support this on macOS.Apparently, W... | I have a simple method that loads a pem certificate from a resource file:/// <summary>
/// Helper method to load a .pem and return it as a X509Certificate2
/// </summary>
private static X509Certificate2 GetX509Certificate2(string path)
{
using (var stream = Assembly.GetExecutingAssembly().GetMan... | Unable to load a .pem from a resource file on macOS |
If you're on Linux, you should consider using the POSIX shared memory system (shm_open, shm_unlink), which mostly uses the standard POSIX file API (mmap, ftruncate, etc.) to interact with shared memory regions. It's also noted as being more modern as the old SYSV interface that you're using.
Anyway, the way to destroy... |
I have code tht does
int shmId = shmget(key, shmBytes, IPC_CREAT | 0666 );
shmAddress = (char *) shmat(shmId, NULL, 0);
/* do some stuff */
/* detach */
shmdt(shmAddress);
My question is, do I ever need to de-allocate the segment I got with shmget? or does shmdt take care of this?
Thanks!
| deallocating shared memory segment |
Probably nothing wrong with your API usage, I guess all we can do is infer that using the AssetManager involves less behind-the-scenes heap allocation than opening a random file from the SD card.
800KB is a serious allocation in anybody's book... this will doubtless be for the decompressed image pixels. Given that you... |
In my application I load a couple of images from JPEG and PNG files. When I place all those files into assets directory and load it in this way, everything is ok:
InputStream stream = getAssets().open(path);
Bitmap bitmap = BitmapFactory.decodeStream(stream, null, null);
stream.close();
return new BitmapDrawable(bitma... | OutOfMemory exception when loading bitmap from external storage |
1
You can do something like this:
args:
- ${{ inputs.myfield && '--myfield' }}
In case myfield has any value, this will result in:
entrypoint "--myfield"
otherwise:
entrypoint ""
Share
Follow
edite... |
I am building a GitHub Actions workflow, and my application has some optional flags.
Is there any way to create a condition in the arguments if an input exists?
Something like:
args:
- if ${{ inputs.myfield }}' --myfield
| How to set a flag from an input value |
I added notification object in my json.
I found out that in my remoteMessage.getNotification().getBody() it returns null that's why it doesn't receive any notification send by my cron.
Edit
Here's my json object
$message = array(
'registration_ids' => $registrationIDs,
'notification' => arra... |
After migrating to Firebase, i tested sending notification by using the firebase console it works fine, but i need a daily notification on a specific time so instead of using the firebase console i use my former cron job to send notification daily. I changed https://android.googleapis.com/gcm/send to https://fcm.googl... | How to implement firebase cloud messaging in server side? |
There is currently no option that we are aware of.You are right that Governance is indeed not compatible with SonarQube 6.3.1 because it's not a LTS (Long Term Supported) version - and Governance is released only for LTS versions of SonarQube.ShareFollowansweredApr 24, 2017 at 8:00Fabrice - SonarSource TeamFabrice - So... | The Governance plugin is not working with the version. And pdf-report plugin is also not supported. | What are the options for generating a report in SonarQube v6.3.1 |
There is an option in Postman if you download it fromhttps://www.getpostman.cominstead of the chrome store (most probably it has been introduced in the new versions and the chrome one will be updated later) not sure about the old ones.In the settings, turn off the SSL certificate verification optionBe sure to remember ... | Please read this carefully. Please do not send me a link on how to import a certificate.I am using Postman for QA and testing work. I have a test system I frequently rebuild myself and so it is completely trusted. It has a custom self-signed certificates and I import them as detailed here:http://blog.getpostman.com/201... | How to turn off all SSL checks on Postman for a specific site? |
With your shown samples please try following htaccess rules file here. Please make sure to clear your browser cache before testing your URLs. In case you have further more rules(apart from shown ones) then make sure these Rules are before those rules.RewriteEngine On
##Apply https to uris here..
RewriteCond %{HTTPS} !o... | I'm trying to accomplish the following:non-http force to https -workswww force to non-www -workswebsite loaded from subfolder (/web) -workstest.example.com load different subfolder (/test) - does not work4, Does not work, the condition is met to go to /web. Can't understand how to change this into /testthe .htaccess co... | RewriteRule for subdomain to subfolder .htaccess |
If I understood correctly, you're asking if you should merge the three "multiplybyElement" kernels into one, where each of those kernels reads an entire (different) matrix, multiplying each element by a constant, and storing the new scaled matrix.Given that these kernels will be memory bandwidth bound (practically no c... | I have four CUDA kernels working on matrices in the following way:convolution<<<>>>(A,B);
multiplybyElement1<<<>>>(B);
multiplybyElement2<<<>>>(A);
multiplybyElement3<<<>>>(C);
// A + B + C with CUBLAS' cublasSaxpyevery kernel basically (except the convolution first) performs a matrix each-element multiplication by a ... | Calling multiple kernels, global memory performances - CUDA |
For pandas being compiled on Elastic Beanstalk, make sure to have both packages: gcc-c++ and python-devel
packages:
yum:
gcc-c++: []
python-devel: []
|
Getting the following error when trying to install Pandas (0.16.0), which is in my requirements.txt file, on AWS Elastic Beanstalk EC2 instance:
building 'pandas.msgpack' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4... | 'gcc' failed during pandas build on AWS Elastic Beanstalk |
This is standard Maven stuff, seehttp://maven.40175.n5.nabble.com/Final-Memory-tp114897p114902.htmlFirst number is the actual memory used within the heap, second number is the total heap size allocated to Java. | After running sonar annalyzer, under successfully execution message its showing final memory 8m/453m what does it mean. | In Sonar after execution it showing final memory:8m/453m what is it? |
You could create individual signing subkeys for each developer, and use those to track down who signed a commit. To do so, rungpg --edit-key [key-id]and runaddkeyfor each user, selecting the "signing" capability only (you will have issues with more than one encryption subkey). Export those subkeys one by one throughgpg... | Is there a way to set up git so that multiple users can use the same deploy key to a repository, but still have their commits tagged under their usernames? I'm asking because our company needs to be able to track exactly who makes changes to our repositories, but it'd be preferable to have them all be able to use the s... | How to deploy OpenPGP keys for multiple developers signing git commits? |
time-range is last 8 Hours and the data must be showed every 1 secondI guess you mean data with 1 sec time aggregation.Math: 8 hours x 60 minutes x 60 seconds x 1 datapoint/sec = 28800 data pointsTop display has 4k resolution usually, so it is impossible to visualize 28.8k time series datapoints with 4k pixels properly... | I am using Status map Panel in Grafana in order to visualize states of some machines in real time. the wanted time-range is last 8 Hours and the data must be showed every 1 second.
I am using MySQL as database und my query looks like this:SELECT
$__timeGroupAlias(creation_date,1s,previous),
Workplace AS metric,
M... | Grafana dashboard causing Firefox browser crash |
If you just want to allow user3 to push/pull from original repo :
How do I change which GitHub project I forked from?
If you want to also change the "forked from ..." message in the repo :
Manually set 'forked from' to GitHub project
|
I have the following scenario:
.../orig-user/repo # the original repo
.../user2/repo # a fork of above
.../user3/repo # a fork of .../user2/repo
is there any convenient way to "re-home" .../user3/repo so it becomes a 'direct' fork of .../orig-user/repo?
Alternatively, is there a simple way for user3 to ... | Github: I have a fork of a fork.. can I make it a fork of the original repo instead? |
Your JSON override is specified incorrectly. Unfortunately kubectl run just ignores fields it doesn't understand.kubectl run -i --rm --tty ubuntu --overrides='
{
"apiVersion": "batch/v1",
"spec": {
"template": {
"spec": {
"containers": [
{
"name": "ubuntu",
"image... | I understand that you can create a pod with Deployment/Job using kubectl run. But is it possible to create one with a volume attached to it? I tried running this command:kubectl run -i --rm --tty ubuntu --overrides='{ "apiVersion":"batch/v1", "spec": {"containers": {"image": "ubuntu:14.04", "volumeMounts": {"mountPat... | Create kubernetes pod with volume using kubectl run |
Technically, if you do
git checkout origin/master
you immediately get into detached HEAD state.
For better or worse, this is exactly what repo sync does by default - such that every one of your repositories listed in manifest is in detached HEAD state after fresh repo sync.
Detached HEAD is perfectly normal state for... |
I'm used to using git with a single repository. However, I've lately been dabbling with Android development and am trying to wrap my head around repo. I have set up some custom git repos by creating xmls in the .repo/local_manifests directory (I'm using repo 1.19) and repo sync works fine.
When I look at the custom gi... | How does git push work with android's repo tool? |
From this question looks like you do this (c# version) for iOS 9 and it will print out which records are deleted:
var websiteDataTypes = new NSSet<NSString>(new []
{
//Choose which ones you want to remove
WKWebsiteDataType.Cookies,
WKWebsiteDataType.DiskCache,
WKWebsiteDataType.IndexedDBDatabases,
... |
I am doing following to clear the cache from the WkWebView. I would like to know how do I confirm that the cache is cleared
var request = new NSUrlRequest (webURL, NSUrlRequestCachePolicy.ReloadIgnoringLocalAndRemoteCacheData, 0);
NSUrlCache.SharedCache.RemoveAllCachedResponses ();
NSUrlCache.SharedCache.MemoryCap... | Xamarin iOS clear cache from WKWebView |
You cannot respond with a Zip(any binary type) file using API Gateway so far. (As stated inAWS official forum)As a work around, you can store your file on S3 and dispatch the link of the file using API Gateway. | Is it possible for AWS Gateway API to respond with a file (zip file) from a HTTP endpoint integration? I heard somewhere AWS Gateway API doesn't support binary formats but wasn't sure if that was for input or input and output.I have an existing HTTP endpoint and I want to add AWS Gateway API over it; it currently retur... | AWS Gateway API and file response |
.NET uses a string intern pool to store string.
The common language runtime conserves string storage by maintaining a table, called the intern pool, that contains a single reference to each unique literal string declared or created programmatically in your program. Consequently, an instance of a literal string with a... |
Do we reduce memory consumption when storing a String value that we use very frequently?
As far as I know, every time we do a "some text" declaration in code, a new String object is constructed, instead of using the address of an existing one with the same value. Is this correct?
Is there anything that can be done to ... | Java/.NET - reusing values |
Actual problem isantiResourceLocking="true".Looks like there is a conflict withcachingAllowed="false". | how to disable tomcat caching?
I use this -<Context antiJARLocking="true" antiResourceLocking="true" cachingAllowed="false" cacheMaxSize ="0" cacheTTL="1">in Tomcat/conf/context.xmlbut it not helps | how to disable tomcat caching? |
It's likely that you have credentials stored in your credential helper. You should try invalidating them. You can also review all your current config settings with the command:git config -l | I have--globalgit config under~/.gitconfighas email1andI also have--localgit config under a git repo's.git/confighas email2Both have different emails.Now when I push to my remote repo from under the repo clone that has --local config I get an error saying"remote: Permission to abc/def.git denied to email1."Why so and h... | Git config issue and git push error |
Thanks to the above answer by Ivan Shatsky: I changed to the following and it worked:location /subdomain {
alias /www/mydirectory;
index index.html;
client_max_body_size 10g;
}(I also noted that other than I thought before, using/subdomaini.e. without a trailing slash does not mean that/subdomain2also mat... | [UPDATE/Note:"subdomain" in the following description actually means asubpathin the URL, sorry for the confusion. I changed the title but left the description as it was.]I would like to serve static content from a subdomain:location /subdomain/ {
root /www/mydirectory;
index index.html;
client_max_body_si... | Nginx: Serve static files for a subpath |
Zach Holmanis a GitHubber.He gave a talk atScaleConfand shared some insights about the technical challenges GitHub had to face to host projects in an efficient way. His talk also covers organizational scaling.The slides of this talk are available on hiswebsite.Unfortunately, the videos aren't availableyet.His pitch is ... | 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.Closed11 years ago.I am researching on how project hosting... | How does GitHub host source code? [closed] |
According tohttps://github.com/dear-github/dear-github/issues/209you might be looking for anorganisationas higher level entity:However, the search interface in "Add cards" is limited to the current organization.Referenceshttps://help.github.com/en/enterprise/2.16/admin/user-management/creating-organizationshttps://help... | I want to create a higher level (orginization) project that contains the cards from multiple individual repositories projects. Is that possible? | Can github create a project based off of individual repo projects? |
The php code you have will insert into the database once that fragment of code is processed.If you execute it more than once, you will see more inserts in the database.However rewrite rules are executed once only, too.So what you experience is likely totally unrelated with your rewrite rules. If you do not trust me, en... | I have a problem with understanding mod_rewrite behavior.
I'll illustrate this with an example.
I have 3 files in my root directory:.htaccess,index.phpandtest.php.
The content of files:.htaccessRewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.+) ?li... | Strange behavior in apache mod_rewrite |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.